diff --git a/.github/workflows/gcp_wif_test.yml b/.github/workflows/gcp_wif_test.yml new file mode 100644 index 0000000..3e75be0 --- /dev/null +++ b/.github/workflows/gcp_wif_test.yml @@ -0,0 +1,37 @@ +# Minimal workflow to verify GCP Workload Identity Federation (WIF) auth works end-to-end. +# TODO: Replace with repo secrets for generic use (GCP_WIF_PROVIDER, GCP_SERVICE_ACCOUNT, AKEYLESS_ACCESS_ID, AKEYLESS_API_URL) +name: gcp_wif_test + +on: + workflow_dispatch: + +jobs: + test_gcp_wif: + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Authenticate to GCP via WIF + uses: google-github-actions/auth@v2 + with: + workload_identity_provider: "projects/717477426588/locations/global/workloadIdentityPools/akeyless-gh-action-test/providers/github-oidc" + service_account: "akeyless-gh-action-test@akeyless-test-env.iam.gserviceaccount.com" + create_credentials_file: true + token_format: id_token + id_token_audience: akeyless.io + + - name: Akeyless Auth via GCP + uses: ./ + with: + access-id: "p-27xqnb0jl0segm" + access-type: gcp + api-url: "https://api.akeyless.io" + gcp-audience: akeyless.io + static-secrets: | + - name: "/gcp-wif-test" + output-name: "my_secret" diff --git a/.github/workflows/test_gcp_wif_auth.yml b/.github/workflows/test_gcp_wif_auth.yml new file mode 100644 index 0000000..15ff18d --- /dev/null +++ b/.github/workflows/test_gcp_wif_auth.yml @@ -0,0 +1,108 @@ +name: Test GCP WIF Auth (Reproduce ASM-17037) +on: + workflow_dispatch: + +jobs: + test_gcp_wif: + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + env: + ACTIONS_RUNNER_DEBUG: "true" + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + # Step 1: Authenticate to GCP using Workload Identity Federation + - name: Authenticate to GCP via WIF + id: gcp-auth + uses: google-github-actions/auth@v2 + with: + workload_identity_provider: "projects/717477426588/locations/global/workloadIdentityPools/akeyless-gh-action-test/providers/github-oidc" + service_account: "aviv-gh-action-test@akeyless-test-env.iam.gserviceaccount.com" + create_credentials_file: true + token_format: "id_token" + id_token_audience: "akeyless.io" + + # Step 1b: Print input params BEFORE Akeyless auth + - name: Print Akeyless auth input params + run: | + echo "=== BEFORE Akeyless auth - input params ===" + echo "access-id: p-t0d5hos7sfxqgb" + echo "access-type: gcp" + echo "api-url: https://api.dbk.akeyless.dev" + echo "gcp-audience: akeyless.io" + echo "GOOGLE_APPLICATION_CREDENTIALS: $GOOGLE_APPLICATION_CREDENTIALS" + echo "Credentials file exists: $([ -f "$GOOGLE_APPLICATION_CREDENTIALS" ] && echo yes || echo no)" + echo "============================================" + + # Step 2: This step FAIL — reproduces the bug + - name: Akeyless Auth via GCP (fail) + id: akeyless-gcp + uses: ./ + continue-on-error: true + with: + access-id: "p-t0d5hos7sfxqgb" + access-type: gcp + api-url: "https://api.dbk.akeyless.dev" + gcp-audience: "akeyless.io" + static-secrets: | + - name: "/gcp-wif-test" + output-name: "my_secret" + + # Step 2b: Print error pointer when auth fails + - name: Error summary (see failed step above for details) + if: steps.akeyless-gcp.outcome == 'failure' + run: | + echo "=== ERROR: Akeyless auth failed ===" + echo "The error is in the 'Akeyless Auth via GCP (fail)' step output above." + echo "Source: akeyless-js-cloud-id (GCP token fetch) or auth.js (Akeyless API)." + echo "Look for: 'Cannot fetch ID token' = cloudid.js ; 'Failed to login to Akeyless' = auth.js" + echo "==========================" + + - name: Check if Akeyless auth failed as expected + run: | + if [ "${{ steps.akeyless-gcp.outcome }}" == "failure" ]; then + echo "REPRODUCED: Akeyless GCP auth failed under WIF as expected" + echo "This confirms the bug in ASM-17037" + else + echo "UNEXPECTED: Akeyless GCP auth succeeded — the bug may already be fixed" + fi + + # Step 3: Manual workaround — proves the token itself is valid + - name: Manual auth workaround (using ID token directly) + if: always() + run: | + CRED_FILE="${{ steps.gcp-auth.outputs.credentials_file_path }}" + echo "Credentials file: $CRED_FILE" + echo "Credentials type:" + cat "$CRED_FILE" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('type','unknown'))" + + echo "" + echo "Attempting to get ID token via gcloud..." + gcloud auth login --cred-file="$CRED_FILE" --quiet 2>&1 || true + ID_TOKEN=$(gcloud auth print-identity-token --audiences=akeyless.io 2>&1) || true + + if echo "$ID_TOKEN" | grep -q "eyJ"; then + CLOUD_ID=$(echo -n "$ID_TOKEN" | base64 -w0) + echo "Got ID token, length: ${#ID_TOKEN}" + + RESPONSE=$(curl -s -X POST https://api.dbk.akeyless.dev/auth \ + -H "Content-Type: application/json" \ + -d "{ + \"access-id\": \"p-t0d5hos7sfxqgb\", + \"access-type\": \"gcp\", + \"cloud-id\": \"${CLOUD_ID}\", + \"gcp-audience\": \"akeyless.io\" + }") + if echo "$RESPONSE" | grep -q "token"; then + echo "WORKAROUND SUCCESS: Manual auth with ID token worked" + else + echo "WORKAROUND FAILED: $RESPONSE" + fi + else + echo "Could not get ID token: $ID_TOKEN" + echo "(This is expected — gcloud may not support WIF credential files for print-identity-token)" + fi \ No newline at end of file diff --git a/dist/325.index.js b/dist/325.index.js new file mode 100644 index 0000000..0fbe37f --- /dev/null +++ b/dist/325.index.js @@ -0,0 +1,750 @@ +"use strict"; +exports.id = 325; +exports.ids = [325]; +exports.modules = { + +/***/ 27325: +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + apps: () => (/* binding */ apps), + "default": () => (/* binding */ node_modules_open), + openApp: () => (/* binding */ openApp) +}); + +// EXTERNAL MODULE: external "node:process" +var external_node_process_ = __webpack_require__(1708); +// EXTERNAL MODULE: external "node:buffer" +var external_node_buffer_ = __webpack_require__(4573); +// EXTERNAL MODULE: external "node:path" +var external_node_path_ = __webpack_require__(76760); +// EXTERNAL MODULE: external "node:url" +var external_node_url_ = __webpack_require__(73136); +// EXTERNAL MODULE: external "node:util" +var external_node_util_ = __webpack_require__(57975); +// EXTERNAL MODULE: external "node:child_process" +var external_node_child_process_ = __webpack_require__(31421); +// EXTERNAL MODULE: external "node:fs/promises" +var promises_ = __webpack_require__(51455); +// EXTERNAL MODULE: external "node:os" +var external_node_os_ = __webpack_require__(48161); +// EXTERNAL MODULE: external "node:fs" +var external_node_fs_ = __webpack_require__(50643); +;// CONCATENATED MODULE: ./node_modules/is-docker/index.js + + +let isDockerCached; + +function hasDockerEnv() { + try { + external_node_fs_.statSync('/.dockerenv'); + return true; + } catch { + return false; + } +} + +function hasDockerCGroup() { + try { + return external_node_fs_.readFileSync('/proc/self/cgroup', 'utf8').includes('docker'); + } catch { + return false; + } +} + +function isDocker() { + // TODO: Use `??=` when targeting Node.js 16. + if (isDockerCached === undefined) { + isDockerCached = hasDockerEnv() || hasDockerCGroup(); + } + + return isDockerCached; +} + +;// CONCATENATED MODULE: ./node_modules/is-inside-container/index.js + + + +let cachedResult; + +// Podman detection +const hasContainerEnv = () => { + try { + external_node_fs_.statSync('/run/.containerenv'); + return true; + } catch { + return false; + } +}; + +function isInsideContainer() { + // TODO: Use `??=` when targeting Node.js 16. + if (cachedResult === undefined) { + cachedResult = hasContainerEnv() || isDocker(); + } + + return cachedResult; +} + +;// CONCATENATED MODULE: ./node_modules/is-wsl/index.js + + + + + +const isWsl = () => { + if (external_node_process_.platform !== 'linux') { + return false; + } + + if (external_node_os_.release().toLowerCase().includes('microsoft')) { + if (isInsideContainer()) { + return false; + } + + return true; + } + + try { + if (external_node_fs_.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft')) { + return !isInsideContainer(); + } + } catch {} + + // Fallback for custom kernels: check WSL-specific paths. + if ( + external_node_fs_.existsSync('/proc/sys/fs/binfmt_misc/WSLInterop') + || external_node_fs_.existsSync('/run/WSL') + ) { + return !isInsideContainer(); + } + + return false; +}; + +/* harmony default export */ const is_wsl = (external_node_process_.env.__IS_WSL_TEST__ ? isWsl : isWsl()); + +;// CONCATENATED MODULE: ./node_modules/wsl-utils/index.js + + + + +const wslDrivesMountPoint = (() => { + // Default value for "root" param + // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config + const defaultMountPoint = '/mnt/'; + + let mountPoint; + + return async function () { + if (mountPoint) { + // Return memoized mount point value + return mountPoint; + } + + const configFilePath = '/etc/wsl.conf'; + + let isConfigFileExists = false; + try { + await promises_.access(configFilePath, promises_.constants.F_OK); + isConfigFileExists = true; + } catch {} + + if (!isConfigFileExists) { + return defaultMountPoint; + } + + const configContent = await promises_.readFile(configFilePath, {encoding: 'utf8'}); + const configMountPoint = /(?.*)/g.exec(configContent); + + if (!configMountPoint) { + return defaultMountPoint; + } + + mountPoint = configMountPoint.groups.mountPoint.trim(); + mountPoint = mountPoint.endsWith('/') ? mountPoint : `${mountPoint}/`; + + return mountPoint; + }; +})(); + +const powerShellPathFromWsl = async () => { + const mountPoint = await wslDrivesMountPoint(); + return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`; +}; + +const powerShellPath = async () => { + if (is_wsl) { + return powerShellPathFromWsl(); + } + + return `${external_node_process_.env.SYSTEMROOT || external_node_process_.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`; +}; + + + +;// CONCATENATED MODULE: ./node_modules/define-lazy-prop/index.js +function defineLazyProperty(object, propertyName, valueGetter) { + const define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true}); + + Object.defineProperty(object, propertyName, { + configurable: true, + enumerable: true, + get() { + const result = valueGetter(); + define(result); + return result; + }, + set(value) { + define(value); + } + }); + + return object; +} + +;// CONCATENATED MODULE: ./node_modules/default-browser-id/index.js + + + + +const execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +async function defaultBrowserId() { + if (external_node_process_.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const {stdout} = await execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']); + + // `(?!-)` is to prevent matching `LSHandlerRoleAll = "-";`. + const match = /LSHandlerRoleAll = "(?!-)(?[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout); + + const browserId = match?.groups.id ?? 'com.apple.Safari'; + + // Correct the case for Safari's bundle identifier + if (browserId === 'com.apple.safari') { + return 'com.apple.Safari'; + } + + return browserId; +} + +;// CONCATENATED MODULE: ./node_modules/run-applescript/index.js + + + + +const run_applescript_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +async function runAppleScript(script, {humanReadableOutput = true, signal} = {}) { + if (external_node_process_.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const outputArguments = humanReadableOutput ? [] : ['-ss']; + + const execOptions = {}; + if (signal) { + execOptions.signal = signal; + } + + const {stdout} = await run_applescript_execFileAsync('osascript', ['-e', script, outputArguments], execOptions); + return stdout.trim(); +} + +function runAppleScriptSync(script, {humanReadableOutput = true} = {}) { + if (process.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const outputArguments = humanReadableOutput ? [] : ['-ss']; + + const stdout = execFileSync('osascript', ['-e', script, ...outputArguments], { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'ignore'], + timeout: 500, + }); + + return stdout.trim(); +} + +;// CONCATENATED MODULE: ./node_modules/bundle-name/index.js + + +async function bundleName(bundleId) { + return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`); +} + +;// CONCATENATED MODULE: ./node_modules/default-browser/windows.js + + + +const windows_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// TODO: Fix the casing of bundle identifiers in the next major version. + +// Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake +// ones that look real and match the macOS/Linux versions for cross-platform apps. +const windowsBrowserProgIds = { + MSEdgeHTM: {name: 'Edge', id: 'com.microsoft.edge'}, // The missing `L` is correct. + MSEdgeBHTML: {name: 'Edge Beta', id: 'com.microsoft.edge.beta'}, + MSEdgeDHTML: {name: 'Edge Dev', id: 'com.microsoft.edge.dev'}, + AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {name: 'Edge', id: 'com.microsoft.edge.old'}, + ChromeHTML: {name: 'Chrome', id: 'com.google.chrome'}, + ChromeBHTML: {name: 'Chrome Beta', id: 'com.google.chrome.beta'}, + ChromeDHTML: {name: 'Chrome Dev', id: 'com.google.chrome.dev'}, + ChromiumHTM: {name: 'Chromium', id: 'org.chromium.Chromium'}, + BraveHTML: {name: 'Brave', id: 'com.brave.Browser'}, + BraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'}, + BraveDHTML: {name: 'Brave Dev', id: 'com.brave.Browser.dev'}, + BraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'}, + FirefoxURL: {name: 'Firefox', id: 'org.mozilla.firefox'}, + OperaStable: {name: 'Opera', id: 'com.operasoftware.Opera'}, + VivaldiHTM: {name: 'Vivaldi', id: 'com.vivaldi.Vivaldi'}, + 'IE.HTTP': {name: 'Internet Explorer', id: 'com.microsoft.ie'}, +}; + +const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds)); + +class UnknownBrowserError extends Error {} + +async function defaultBrowser(_execFileAsync = windows_execFileAsync) { + const {stdout} = await _execFileAsync('reg', [ + 'QUERY', + ' HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice', + '/v', + 'ProgId', + ]); + + const match = /ProgId\s*REG_SZ\s*(?\S+)/.exec(stdout); + if (!match) { + throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`); + } + + const {id} = match.groups; + + // Windows can append a hash suffix to ProgIds using a dot or hyphen + // (e.g., `ChromeHTML.ABC123`, `FirefoxURL-6F193CCC56814779`). + // Try exact match first, then try without the suffix. + const dotIndex = id.lastIndexOf('.'); + const hyphenIndex = id.lastIndexOf('-'); + const baseIdByDot = dotIndex === -1 ? undefined : id.slice(0, dotIndex); + const baseIdByHyphen = hyphenIndex === -1 ? undefined : id.slice(0, hyphenIndex); + + return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? {name: id, id}; +} + +;// CONCATENATED MODULE: ./node_modules/default-browser/index.js + + + + + + + + + +const default_browser_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// Inlined: https://github.com/sindresorhus/titleize/blob/main/index.js +const titleize = string => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, x => x.toUpperCase()); + +async function default_browser_defaultBrowser() { + if (external_node_process_.platform === 'darwin') { + const id = await defaultBrowserId(); + const name = await bundleName(id); + return {name, id}; + } + + if (external_node_process_.platform === 'linux') { + const {stdout} = await default_browser_execFileAsync('xdg-mime', ['query', 'default', 'x-scheme-handler/http']); + const id = stdout.trim(); + const name = titleize(id.replace(/.desktop$/, '').replace('-', ' ')); + return {name, id}; + } + + if (external_node_process_.platform === 'win32') { + return defaultBrowser(); + } + + throw new Error('Only macOS, Linux, and Windows are supported'); +} + +;// CONCATENATED MODULE: ./node_modules/open/index.js + + + + + + + + + + + + +const execFile = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// Path to included `xdg-open`. +const open_dirname = external_node_path_.dirname((0,external_node_url_.fileURLToPath)(require("url").pathToFileURL(__filename).href)); +const localXdgOpenPath = external_node_path_.join(open_dirname, 'xdg-open'); + +const {platform, arch} = external_node_process_; + +/** +Get the default browser name in Windows from WSL. + +@returns {Promise} Browser name. +*/ +async function getWindowsDefaultBrowserFromWsl() { + const powershellPath = await powerShellPath(); + const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`; + const encodedCommand = external_node_buffer_.Buffer.from(rawCommand, 'utf16le').toString('base64'); + + const {stdout} = await execFile( + powershellPath, + [ + '-NoProfile', + '-NonInteractive', + '-ExecutionPolicy', + 'Bypass', + '-EncodedCommand', + encodedCommand, + ], + {encoding: 'utf8'}, + ); + + const progId = stdout.trim(); + + // Map ProgId to browser IDs + const browserMap = { + ChromeHTML: 'com.google.chrome', + BraveHTML: 'com.brave.Browser', + MSEdgeHTM: 'com.microsoft.edge', + FirefoxURL: 'org.mozilla.firefox', + }; + + return browserMap[progId] ? {id: browserMap[progId]} : {}; +} + +const pTryEach = async (array, mapper) => { + let latestError; + + for (const item of array) { + try { + return await mapper(item); // eslint-disable-line no-await-in-loop + } catch (error) { + latestError = error; + } + } + + throw latestError; +}; + +// eslint-disable-next-line complexity +const baseOpen = async options => { + options = { + wait: false, + background: false, + newInstance: false, + allowNonzeroExitCode: false, + ...options, + }; + + if (Array.isArray(options.app)) { + return pTryEach(options.app, singleApp => baseOpen({ + ...options, + app: singleApp, + })); + } + + let {name: app, arguments: appArguments = []} = options.app ?? {}; + appArguments = [...appArguments]; + + if (Array.isArray(app)) { + return pTryEach(app, appName => baseOpen({ + ...options, + app: { + name: appName, + arguments: appArguments, + }, + })); + } + + if (app === 'browser' || app === 'browserPrivate') { + // IDs from default-browser for macOS and windows are the same + const ids = { + 'com.google.chrome': 'chrome', + 'google-chrome.desktop': 'chrome', + 'com.brave.Browser': 'brave', + 'org.mozilla.firefox': 'firefox', + 'firefox.desktop': 'firefox', + 'com.microsoft.msedge': 'edge', + 'com.microsoft.edge': 'edge', + 'com.microsoft.edgemac': 'edge', + 'microsoft-edge.desktop': 'edge', + }; + + // Incognito flags for each browser in `apps`. + const flags = { + chrome: '--incognito', + brave: '--incognito', + firefox: '--private-window', + edge: '--inPrivate', + }; + + const browser = is_wsl ? await getWindowsDefaultBrowserFromWsl() : await default_browser_defaultBrowser(); + if (browser.id in ids) { + const browserName = ids[browser.id]; + + if (app === 'browserPrivate') { + appArguments.push(flags[browserName]); + } + + return baseOpen({ + ...options, + app: { + name: apps[browserName], + arguments: appArguments, + }, + }); + } + + throw new Error(`${browser.name} is not supported as a default browser`); + } + + let command; + const cliArguments = []; + const childProcessOptions = {}; + + if (platform === 'darwin') { + command = 'open'; + + if (options.wait) { + cliArguments.push('--wait-apps'); + } + + if (options.background) { + cliArguments.push('--background'); + } + + if (options.newInstance) { + cliArguments.push('--new'); + } + + if (app) { + cliArguments.push('-a', app); + } + } else if (platform === 'win32' || (is_wsl && !isInsideContainer() && !app)) { + command = await powerShellPath(); + + cliArguments.push( + '-NoProfile', + '-NonInteractive', + '-ExecutionPolicy', + 'Bypass', + '-EncodedCommand', + ); + + if (!is_wsl) { + childProcessOptions.windowsVerbatimArguments = true; + } + + const encodedArguments = ['Start']; + + if (options.wait) { + encodedArguments.push('-Wait'); + } + + if (app) { + // Double quote with double quotes to ensure the inner quotes are passed through. + // Inner quotes are delimited for PowerShell interpretation with backticks. + encodedArguments.push(`"\`"${app}\`""`); + if (options.target) { + appArguments.push(options.target); + } + } else if (options.target) { + encodedArguments.push(`"${options.target}"`); + } + + if (appArguments.length > 0) { + appArguments = appArguments.map(argument => `"\`"${argument}\`""`); + encodedArguments.push('-ArgumentList', appArguments.join(',')); + } + + // Using Base64-encoded command, accepted by PowerShell, to allow special characters. + options.target = external_node_buffer_.Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64'); + } else { + if (app) { + command = app; + } else { + // When bundled by Webpack, there's no actual package file path and no local `xdg-open`. + const isBundled = !open_dirname || open_dirname === '/'; + + // Check if local `xdg-open` exists and is executable. + let exeLocalXdgOpen = false; + try { + await promises_.access(localXdgOpenPath, promises_.constants.X_OK); + exeLocalXdgOpen = true; + } catch {} + + const useSystemXdgOpen = external_node_process_.versions.electron + ?? (platform === 'android' || isBundled || !exeLocalXdgOpen); + command = useSystemXdgOpen ? 'xdg-open' : localXdgOpenPath; + } + + if (appArguments.length > 0) { + cliArguments.push(...appArguments); + } + + if (!options.wait) { + // `xdg-open` will block the process unless stdio is ignored + // and it's detached from the parent even if it's unref'd. + childProcessOptions.stdio = 'ignore'; + childProcessOptions.detached = true; + } + } + + if (platform === 'darwin' && appArguments.length > 0) { + cliArguments.push('--args', ...appArguments); + } + + // This has to come after `--args`. + if (options.target) { + cliArguments.push(options.target); + } + + const subprocess = external_node_child_process_.spawn(command, cliArguments, childProcessOptions); + + if (options.wait) { + return new Promise((resolve, reject) => { + subprocess.once('error', reject); + + subprocess.once('close', exitCode => { + if (!options.allowNonzeroExitCode && exitCode > 0) { + reject(new Error(`Exited with code ${exitCode}`)); + return; + } + + resolve(subprocess); + }); + }); + } + + subprocess.unref(); + + return subprocess; +}; + +const open_open = (target, options) => { + if (typeof target !== 'string') { + throw new TypeError('Expected a `target`'); + } + + return baseOpen({ + ...options, + target, + }); +}; + +const openApp = (name, options) => { + if (typeof name !== 'string' && !Array.isArray(name)) { + throw new TypeError('Expected a valid `name`'); + } + + const {arguments: appArguments = []} = options ?? {}; + if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) { + throw new TypeError('Expected `appArguments` as Array type'); + } + + return baseOpen({ + ...options, + app: { + name, + arguments: appArguments, + }, + }); +}; + +function detectArchBinary(binary) { + if (typeof binary === 'string' || Array.isArray(binary)) { + return binary; + } + + const {[arch]: archBinary} = binary; + + if (!archBinary) { + throw new Error(`${arch} is not supported`); + } + + return archBinary; +} + +function detectPlatformBinary({[platform]: platformBinary}, {wsl}) { + if (wsl && is_wsl) { + return detectArchBinary(wsl); + } + + if (!platformBinary) { + throw new Error(`${platform} is not supported`); + } + + return detectArchBinary(platformBinary); +} + +const apps = {}; + +defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({ + darwin: 'google chrome', + win32: 'chrome', + linux: ['google-chrome', 'google-chrome-stable', 'chromium'], +}, { + wsl: { + ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe', + x64: ['/mnt/c/Program Files/Google/Chrome/Application/chrome.exe', '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe'], + }, +})); + +defineLazyProperty(apps, 'brave', () => detectPlatformBinary({ + darwin: 'brave browser', + win32: 'brave', + linux: ['brave-browser', 'brave'], +}, { + wsl: { + ia32: '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe', + x64: ['/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe', '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe'], + }, +})); + +defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({ + darwin: 'firefox', + win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`, + linux: 'firefox', +}, { + wsl: '/mnt/c/Program Files/Mozilla Firefox/firefox.exe', +})); + +defineLazyProperty(apps, 'edge', () => detectPlatformBinary({ + darwin: 'microsoft edge', + win32: 'msedge', + linux: ['microsoft-edge', 'microsoft-edge-dev'], +}, { + wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe', +})); + +defineLazyProperty(apps, 'browser', () => 'browser'); + +defineLazyProperty(apps, 'browserPrivate', () => 'browserPrivate'); + +/* harmony default export */ const node_modules_open = (open_open); + + +/***/ }) + +}; +; \ No newline at end of file diff --git a/dist/470.index.js b/dist/470.index.js new file mode 100644 index 0000000..fb8c1fc --- /dev/null +++ b/dist/470.index.js @@ -0,0 +1,750 @@ +"use strict"; +exports.id = 470; +exports.ids = [470]; +exports.modules = { + +/***/ 58470: +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + apps: () => (/* binding */ apps), + "default": () => (/* binding */ node_modules_open), + openApp: () => (/* binding */ openApp) +}); + +// EXTERNAL MODULE: external "node:process" +var external_node_process_ = __webpack_require__(1708); +// EXTERNAL MODULE: external "node:buffer" +var external_node_buffer_ = __webpack_require__(4573); +// EXTERNAL MODULE: external "node:path" +var external_node_path_ = __webpack_require__(76760); +// EXTERNAL MODULE: external "node:url" +var external_node_url_ = __webpack_require__(73136); +// EXTERNAL MODULE: external "node:util" +var external_node_util_ = __webpack_require__(57975); +// EXTERNAL MODULE: external "node:child_process" +var external_node_child_process_ = __webpack_require__(31421); +// EXTERNAL MODULE: external "node:fs/promises" +var promises_ = __webpack_require__(51455); +// EXTERNAL MODULE: external "node:os" +var external_node_os_ = __webpack_require__(48161); +// EXTERNAL MODULE: external "node:fs" +var external_node_fs_ = __webpack_require__(73024); +;// CONCATENATED MODULE: ./node_modules/is-docker/index.js + + +let isDockerCached; + +function hasDockerEnv() { + try { + external_node_fs_.statSync('/.dockerenv'); + return true; + } catch { + return false; + } +} + +function hasDockerCGroup() { + try { + return external_node_fs_.readFileSync('/proc/self/cgroup', 'utf8').includes('docker'); + } catch { + return false; + } +} + +function isDocker() { + // TODO: Use `??=` when targeting Node.js 16. + if (isDockerCached === undefined) { + isDockerCached = hasDockerEnv() || hasDockerCGroup(); + } + + return isDockerCached; +} + +;// CONCATENATED MODULE: ./node_modules/is-inside-container/index.js + + + +let cachedResult; + +// Podman detection +const hasContainerEnv = () => { + try { + external_node_fs_.statSync('/run/.containerenv'); + return true; + } catch { + return false; + } +}; + +function isInsideContainer() { + // TODO: Use `??=` when targeting Node.js 16. + if (cachedResult === undefined) { + cachedResult = hasContainerEnv() || isDocker(); + } + + return cachedResult; +} + +;// CONCATENATED MODULE: ./node_modules/is-wsl/index.js + + + + + +const isWsl = () => { + if (external_node_process_.platform !== 'linux') { + return false; + } + + if (external_node_os_.release().toLowerCase().includes('microsoft')) { + if (isInsideContainer()) { + return false; + } + + return true; + } + + try { + if (external_node_fs_.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft')) { + return !isInsideContainer(); + } + } catch {} + + // Fallback for custom kernels: check WSL-specific paths. + if ( + external_node_fs_.existsSync('/proc/sys/fs/binfmt_misc/WSLInterop') + || external_node_fs_.existsSync('/run/WSL') + ) { + return !isInsideContainer(); + } + + return false; +}; + +/* harmony default export */ const is_wsl = (external_node_process_.env.__IS_WSL_TEST__ ? isWsl : isWsl()); + +;// CONCATENATED MODULE: ./node_modules/wsl-utils/index.js + + + + +const wslDrivesMountPoint = (() => { + // Default value for "root" param + // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config + const defaultMountPoint = '/mnt/'; + + let mountPoint; + + return async function () { + if (mountPoint) { + // Return memoized mount point value + return mountPoint; + } + + const configFilePath = '/etc/wsl.conf'; + + let isConfigFileExists = false; + try { + await promises_.access(configFilePath, promises_.constants.F_OK); + isConfigFileExists = true; + } catch {} + + if (!isConfigFileExists) { + return defaultMountPoint; + } + + const configContent = await promises_.readFile(configFilePath, {encoding: 'utf8'}); + const configMountPoint = /(?.*)/g.exec(configContent); + + if (!configMountPoint) { + return defaultMountPoint; + } + + mountPoint = configMountPoint.groups.mountPoint.trim(); + mountPoint = mountPoint.endsWith('/') ? mountPoint : `${mountPoint}/`; + + return mountPoint; + }; +})(); + +const powerShellPathFromWsl = async () => { + const mountPoint = await wslDrivesMountPoint(); + return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`; +}; + +const powerShellPath = async () => { + if (is_wsl) { + return powerShellPathFromWsl(); + } + + return `${external_node_process_.env.SYSTEMROOT || external_node_process_.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`; +}; + + + +;// CONCATENATED MODULE: ./node_modules/define-lazy-prop/index.js +function defineLazyProperty(object, propertyName, valueGetter) { + const define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true}); + + Object.defineProperty(object, propertyName, { + configurable: true, + enumerable: true, + get() { + const result = valueGetter(); + define(result); + return result; + }, + set(value) { + define(value); + } + }); + + return object; +} + +;// CONCATENATED MODULE: ./node_modules/default-browser-id/index.js + + + + +const execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +async function defaultBrowserId() { + if (external_node_process_.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const {stdout} = await execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']); + + // `(?!-)` is to prevent matching `LSHandlerRoleAll = "-";`. + const match = /LSHandlerRoleAll = "(?!-)(?[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout); + + const browserId = match?.groups.id ?? 'com.apple.Safari'; + + // Correct the case for Safari's bundle identifier + if (browserId === 'com.apple.safari') { + return 'com.apple.Safari'; + } + + return browserId; +} + +;// CONCATENATED MODULE: ./node_modules/run-applescript/index.js + + + + +const run_applescript_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +async function runAppleScript(script, {humanReadableOutput = true, signal} = {}) { + if (external_node_process_.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const outputArguments = humanReadableOutput ? [] : ['-ss']; + + const execOptions = {}; + if (signal) { + execOptions.signal = signal; + } + + const {stdout} = await run_applescript_execFileAsync('osascript', ['-e', script, outputArguments], execOptions); + return stdout.trim(); +} + +function runAppleScriptSync(script, {humanReadableOutput = true} = {}) { + if (process.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const outputArguments = humanReadableOutput ? [] : ['-ss']; + + const stdout = execFileSync('osascript', ['-e', script, ...outputArguments], { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'ignore'], + timeout: 500, + }); + + return stdout.trim(); +} + +;// CONCATENATED MODULE: ./node_modules/bundle-name/index.js + + +async function bundleName(bundleId) { + return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`); +} + +;// CONCATENATED MODULE: ./node_modules/default-browser/windows.js + + + +const windows_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// TODO: Fix the casing of bundle identifiers in the next major version. + +// Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake +// ones that look real and match the macOS/Linux versions for cross-platform apps. +const windowsBrowserProgIds = { + MSEdgeHTM: {name: 'Edge', id: 'com.microsoft.edge'}, // The missing `L` is correct. + MSEdgeBHTML: {name: 'Edge Beta', id: 'com.microsoft.edge.beta'}, + MSEdgeDHTML: {name: 'Edge Dev', id: 'com.microsoft.edge.dev'}, + AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {name: 'Edge', id: 'com.microsoft.edge.old'}, + ChromeHTML: {name: 'Chrome', id: 'com.google.chrome'}, + ChromeBHTML: {name: 'Chrome Beta', id: 'com.google.chrome.beta'}, + ChromeDHTML: {name: 'Chrome Dev', id: 'com.google.chrome.dev'}, + ChromiumHTM: {name: 'Chromium', id: 'org.chromium.Chromium'}, + BraveHTML: {name: 'Brave', id: 'com.brave.Browser'}, + BraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'}, + BraveDHTML: {name: 'Brave Dev', id: 'com.brave.Browser.dev'}, + BraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'}, + FirefoxURL: {name: 'Firefox', id: 'org.mozilla.firefox'}, + OperaStable: {name: 'Opera', id: 'com.operasoftware.Opera'}, + VivaldiHTM: {name: 'Vivaldi', id: 'com.vivaldi.Vivaldi'}, + 'IE.HTTP': {name: 'Internet Explorer', id: 'com.microsoft.ie'}, +}; + +const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds)); + +class UnknownBrowserError extends Error {} + +async function defaultBrowser(_execFileAsync = windows_execFileAsync) { + const {stdout} = await _execFileAsync('reg', [ + 'QUERY', + ' HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice', + '/v', + 'ProgId', + ]); + + const match = /ProgId\s*REG_SZ\s*(?\S+)/.exec(stdout); + if (!match) { + throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`); + } + + const {id} = match.groups; + + // Windows can append a hash suffix to ProgIds using a dot or hyphen + // (e.g., `ChromeHTML.ABC123`, `FirefoxURL-6F193CCC56814779`). + // Try exact match first, then try without the suffix. + const dotIndex = id.lastIndexOf('.'); + const hyphenIndex = id.lastIndexOf('-'); + const baseIdByDot = dotIndex === -1 ? undefined : id.slice(0, dotIndex); + const baseIdByHyphen = hyphenIndex === -1 ? undefined : id.slice(0, hyphenIndex); + + return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? {name: id, id}; +} + +;// CONCATENATED MODULE: ./node_modules/default-browser/index.js + + + + + + + + + +const default_browser_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// Inlined: https://github.com/sindresorhus/titleize/blob/main/index.js +const titleize = string => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, x => x.toUpperCase()); + +async function default_browser_defaultBrowser() { + if (external_node_process_.platform === 'darwin') { + const id = await defaultBrowserId(); + const name = await bundleName(id); + return {name, id}; + } + + if (external_node_process_.platform === 'linux') { + const {stdout} = await default_browser_execFileAsync('xdg-mime', ['query', 'default', 'x-scheme-handler/http']); + const id = stdout.trim(); + const name = titleize(id.replace(/.desktop$/, '').replace('-', ' ')); + return {name, id}; + } + + if (external_node_process_.platform === 'win32') { + return defaultBrowser(); + } + + throw new Error('Only macOS, Linux, and Windows are supported'); +} + +;// CONCATENATED MODULE: ./node_modules/open/index.js + + + + + + + + + + + + +const execFile = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// Path to included `xdg-open`. +const open_dirname = external_node_path_.dirname((0,external_node_url_.fileURLToPath)(require("url").pathToFileURL(__filename).href)); +const localXdgOpenPath = external_node_path_.join(open_dirname, 'xdg-open'); + +const {platform, arch} = external_node_process_; + +/** +Get the default browser name in Windows from WSL. + +@returns {Promise} Browser name. +*/ +async function getWindowsDefaultBrowserFromWsl() { + const powershellPath = await powerShellPath(); + const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`; + const encodedCommand = external_node_buffer_.Buffer.from(rawCommand, 'utf16le').toString('base64'); + + const {stdout} = await execFile( + powershellPath, + [ + '-NoProfile', + '-NonInteractive', + '-ExecutionPolicy', + 'Bypass', + '-EncodedCommand', + encodedCommand, + ], + {encoding: 'utf8'}, + ); + + const progId = stdout.trim(); + + // Map ProgId to browser IDs + const browserMap = { + ChromeHTML: 'com.google.chrome', + BraveHTML: 'com.brave.Browser', + MSEdgeHTM: 'com.microsoft.edge', + FirefoxURL: 'org.mozilla.firefox', + }; + + return browserMap[progId] ? {id: browserMap[progId]} : {}; +} + +const pTryEach = async (array, mapper) => { + let latestError; + + for (const item of array) { + try { + return await mapper(item); // eslint-disable-line no-await-in-loop + } catch (error) { + latestError = error; + } + } + + throw latestError; +}; + +// eslint-disable-next-line complexity +const baseOpen = async options => { + options = { + wait: false, + background: false, + newInstance: false, + allowNonzeroExitCode: false, + ...options, + }; + + if (Array.isArray(options.app)) { + return pTryEach(options.app, singleApp => baseOpen({ + ...options, + app: singleApp, + })); + } + + let {name: app, arguments: appArguments = []} = options.app ?? {}; + appArguments = [...appArguments]; + + if (Array.isArray(app)) { + return pTryEach(app, appName => baseOpen({ + ...options, + app: { + name: appName, + arguments: appArguments, + }, + })); + } + + if (app === 'browser' || app === 'browserPrivate') { + // IDs from default-browser for macOS and windows are the same + const ids = { + 'com.google.chrome': 'chrome', + 'google-chrome.desktop': 'chrome', + 'com.brave.Browser': 'brave', + 'org.mozilla.firefox': 'firefox', + 'firefox.desktop': 'firefox', + 'com.microsoft.msedge': 'edge', + 'com.microsoft.edge': 'edge', + 'com.microsoft.edgemac': 'edge', + 'microsoft-edge.desktop': 'edge', + }; + + // Incognito flags for each browser in `apps`. + const flags = { + chrome: '--incognito', + brave: '--incognito', + firefox: '--private-window', + edge: '--inPrivate', + }; + + const browser = is_wsl ? await getWindowsDefaultBrowserFromWsl() : await default_browser_defaultBrowser(); + if (browser.id in ids) { + const browserName = ids[browser.id]; + + if (app === 'browserPrivate') { + appArguments.push(flags[browserName]); + } + + return baseOpen({ + ...options, + app: { + name: apps[browserName], + arguments: appArguments, + }, + }); + } + + throw new Error(`${browser.name} is not supported as a default browser`); + } + + let command; + const cliArguments = []; + const childProcessOptions = {}; + + if (platform === 'darwin') { + command = 'open'; + + if (options.wait) { + cliArguments.push('--wait-apps'); + } + + if (options.background) { + cliArguments.push('--background'); + } + + if (options.newInstance) { + cliArguments.push('--new'); + } + + if (app) { + cliArguments.push('-a', app); + } + } else if (platform === 'win32' || (is_wsl && !isInsideContainer() && !app)) { + command = await powerShellPath(); + + cliArguments.push( + '-NoProfile', + '-NonInteractive', + '-ExecutionPolicy', + 'Bypass', + '-EncodedCommand', + ); + + if (!is_wsl) { + childProcessOptions.windowsVerbatimArguments = true; + } + + const encodedArguments = ['Start']; + + if (options.wait) { + encodedArguments.push('-Wait'); + } + + if (app) { + // Double quote with double quotes to ensure the inner quotes are passed through. + // Inner quotes are delimited for PowerShell interpretation with backticks. + encodedArguments.push(`"\`"${app}\`""`); + if (options.target) { + appArguments.push(options.target); + } + } else if (options.target) { + encodedArguments.push(`"${options.target}"`); + } + + if (appArguments.length > 0) { + appArguments = appArguments.map(argument => `"\`"${argument}\`""`); + encodedArguments.push('-ArgumentList', appArguments.join(',')); + } + + // Using Base64-encoded command, accepted by PowerShell, to allow special characters. + options.target = external_node_buffer_.Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64'); + } else { + if (app) { + command = app; + } else { + // When bundled by Webpack, there's no actual package file path and no local `xdg-open`. + const isBundled = !open_dirname || open_dirname === '/'; + + // Check if local `xdg-open` exists and is executable. + let exeLocalXdgOpen = false; + try { + await promises_.access(localXdgOpenPath, promises_.constants.X_OK); + exeLocalXdgOpen = true; + } catch {} + + const useSystemXdgOpen = external_node_process_.versions.electron + ?? (platform === 'android' || isBundled || !exeLocalXdgOpen); + command = useSystemXdgOpen ? 'xdg-open' : localXdgOpenPath; + } + + if (appArguments.length > 0) { + cliArguments.push(...appArguments); + } + + if (!options.wait) { + // `xdg-open` will block the process unless stdio is ignored + // and it's detached from the parent even if it's unref'd. + childProcessOptions.stdio = 'ignore'; + childProcessOptions.detached = true; + } + } + + if (platform === 'darwin' && appArguments.length > 0) { + cliArguments.push('--args', ...appArguments); + } + + // This has to come after `--args`. + if (options.target) { + cliArguments.push(options.target); + } + + const subprocess = external_node_child_process_.spawn(command, cliArguments, childProcessOptions); + + if (options.wait) { + return new Promise((resolve, reject) => { + subprocess.once('error', reject); + + subprocess.once('close', exitCode => { + if (!options.allowNonzeroExitCode && exitCode > 0) { + reject(new Error(`Exited with code ${exitCode}`)); + return; + } + + resolve(subprocess); + }); + }); + } + + subprocess.unref(); + + return subprocess; +}; + +const open_open = (target, options) => { + if (typeof target !== 'string') { + throw new TypeError('Expected a `target`'); + } + + return baseOpen({ + ...options, + target, + }); +}; + +const openApp = (name, options) => { + if (typeof name !== 'string' && !Array.isArray(name)) { + throw new TypeError('Expected a valid `name`'); + } + + const {arguments: appArguments = []} = options ?? {}; + if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) { + throw new TypeError('Expected `appArguments` as Array type'); + } + + return baseOpen({ + ...options, + app: { + name, + arguments: appArguments, + }, + }); +}; + +function detectArchBinary(binary) { + if (typeof binary === 'string' || Array.isArray(binary)) { + return binary; + } + + const {[arch]: archBinary} = binary; + + if (!archBinary) { + throw new Error(`${arch} is not supported`); + } + + return archBinary; +} + +function detectPlatformBinary({[platform]: platformBinary}, {wsl}) { + if (wsl && is_wsl) { + return detectArchBinary(wsl); + } + + if (!platformBinary) { + throw new Error(`${platform} is not supported`); + } + + return detectArchBinary(platformBinary); +} + +const apps = {}; + +defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({ + darwin: 'google chrome', + win32: 'chrome', + linux: ['google-chrome', 'google-chrome-stable', 'chromium'], +}, { + wsl: { + ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe', + x64: ['/mnt/c/Program Files/Google/Chrome/Application/chrome.exe', '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe'], + }, +})); + +defineLazyProperty(apps, 'brave', () => detectPlatformBinary({ + darwin: 'brave browser', + win32: 'brave', + linux: ['brave-browser', 'brave'], +}, { + wsl: { + ia32: '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe', + x64: ['/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe', '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe'], + }, +})); + +defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({ + darwin: 'firefox', + win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`, + linux: 'firefox', +}, { + wsl: '/mnt/c/Program Files/Mozilla Firefox/firefox.exe', +})); + +defineLazyProperty(apps, 'edge', () => detectPlatformBinary({ + darwin: 'microsoft edge', + win32: 'msedge', + linux: ['microsoft-edge', 'microsoft-edge-dev'], +}, { + wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe', +})); + +defineLazyProperty(apps, 'browser', () => 'browser'); + +defineLazyProperty(apps, 'browserPrivate', () => 'browserPrivate'); + +/* harmony default export */ const node_modules_open = (open_open); + + +/***/ }) + +}; +; \ No newline at end of file diff --git a/dist/721.index.js b/dist/721.index.js new file mode 100644 index 0000000..087c6f8 --- /dev/null +++ b/dist/721.index.js @@ -0,0 +1,750 @@ +"use strict"; +exports.id = 721; +exports.ids = [721]; +exports.modules = { + +/***/ 55721: +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + apps: () => (/* binding */ apps), + "default": () => (/* binding */ node_modules_open), + openApp: () => (/* binding */ openApp) +}); + +// EXTERNAL MODULE: external "node:process" +var external_node_process_ = __webpack_require__(1708); +// EXTERNAL MODULE: external "node:buffer" +var external_node_buffer_ = __webpack_require__(4573); +// EXTERNAL MODULE: external "node:path" +var external_node_path_ = __webpack_require__(76760); +// EXTERNAL MODULE: external "node:url" +var external_node_url_ = __webpack_require__(73136); +// EXTERNAL MODULE: external "node:util" +var external_node_util_ = __webpack_require__(57975); +// EXTERNAL MODULE: external "node:child_process" +var external_node_child_process_ = __webpack_require__(31421); +// EXTERNAL MODULE: external "node:fs/promises" +var promises_ = __webpack_require__(51455); +// EXTERNAL MODULE: external "node:os" +var external_node_os_ = __webpack_require__(48161); +// EXTERNAL MODULE: external "node:fs" +var external_node_fs_ = __webpack_require__(73024); +;// CONCATENATED MODULE: ./node_modules/is-docker/index.js + + +let isDockerCached; + +function hasDockerEnv() { + try { + external_node_fs_.statSync('/.dockerenv'); + return true; + } catch { + return false; + } +} + +function hasDockerCGroup() { + try { + return external_node_fs_.readFileSync('/proc/self/cgroup', 'utf8').includes('docker'); + } catch { + return false; + } +} + +function isDocker() { + // TODO: Use `??=` when targeting Node.js 16. + if (isDockerCached === undefined) { + isDockerCached = hasDockerEnv() || hasDockerCGroup(); + } + + return isDockerCached; +} + +;// CONCATENATED MODULE: ./node_modules/is-inside-container/index.js + + + +let cachedResult; + +// Podman detection +const hasContainerEnv = () => { + try { + external_node_fs_.statSync('/run/.containerenv'); + return true; + } catch { + return false; + } +}; + +function isInsideContainer() { + // TODO: Use `??=` when targeting Node.js 16. + if (cachedResult === undefined) { + cachedResult = hasContainerEnv() || isDocker(); + } + + return cachedResult; +} + +;// CONCATENATED MODULE: ./node_modules/is-wsl/index.js + + + + + +const isWsl = () => { + if (external_node_process_.platform !== 'linux') { + return false; + } + + if (external_node_os_.release().toLowerCase().includes('microsoft')) { + if (isInsideContainer()) { + return false; + } + + return true; + } + + try { + if (external_node_fs_.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft')) { + return !isInsideContainer(); + } + } catch {} + + // Fallback for custom kernels: check WSL-specific paths. + if ( + external_node_fs_.existsSync('/proc/sys/fs/binfmt_misc/WSLInterop') + || external_node_fs_.existsSync('/run/WSL') + ) { + return !isInsideContainer(); + } + + return false; +}; + +/* harmony default export */ const is_wsl = (external_node_process_.env.__IS_WSL_TEST__ ? isWsl : isWsl()); + +;// CONCATENATED MODULE: ./node_modules/wsl-utils/index.js + + + + +const wslDrivesMountPoint = (() => { + // Default value for "root" param + // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config + const defaultMountPoint = '/mnt/'; + + let mountPoint; + + return async function () { + if (mountPoint) { + // Return memoized mount point value + return mountPoint; + } + + const configFilePath = '/etc/wsl.conf'; + + let isConfigFileExists = false; + try { + await promises_.access(configFilePath, promises_.constants.F_OK); + isConfigFileExists = true; + } catch {} + + if (!isConfigFileExists) { + return defaultMountPoint; + } + + const configContent = await promises_.readFile(configFilePath, {encoding: 'utf8'}); + const configMountPoint = /(?.*)/g.exec(configContent); + + if (!configMountPoint) { + return defaultMountPoint; + } + + mountPoint = configMountPoint.groups.mountPoint.trim(); + mountPoint = mountPoint.endsWith('/') ? mountPoint : `${mountPoint}/`; + + return mountPoint; + }; +})(); + +const powerShellPathFromWsl = async () => { + const mountPoint = await wslDrivesMountPoint(); + return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`; +}; + +const powerShellPath = async () => { + if (is_wsl) { + return powerShellPathFromWsl(); + } + + return `${external_node_process_.env.SYSTEMROOT || external_node_process_.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`; +}; + + + +;// CONCATENATED MODULE: ./node_modules/define-lazy-prop/index.js +function defineLazyProperty(object, propertyName, valueGetter) { + const define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true}); + + Object.defineProperty(object, propertyName, { + configurable: true, + enumerable: true, + get() { + const result = valueGetter(); + define(result); + return result; + }, + set(value) { + define(value); + } + }); + + return object; +} + +;// CONCATENATED MODULE: ./node_modules/default-browser-id/index.js + + + + +const execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +async function defaultBrowserId() { + if (external_node_process_.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const {stdout} = await execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']); + + // `(?!-)` is to prevent matching `LSHandlerRoleAll = "-";`. + const match = /LSHandlerRoleAll = "(?!-)(?[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout); + + const browserId = match?.groups.id ?? 'com.apple.Safari'; + + // Correct the case for Safari's bundle identifier + if (browserId === 'com.apple.safari') { + return 'com.apple.Safari'; + } + + return browserId; +} + +;// CONCATENATED MODULE: ./node_modules/run-applescript/index.js + + + + +const run_applescript_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +async function runAppleScript(script, {humanReadableOutput = true, signal} = {}) { + if (external_node_process_.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const outputArguments = humanReadableOutput ? [] : ['-ss']; + + const execOptions = {}; + if (signal) { + execOptions.signal = signal; + } + + const {stdout} = await run_applescript_execFileAsync('osascript', ['-e', script, outputArguments], execOptions); + return stdout.trim(); +} + +function runAppleScriptSync(script, {humanReadableOutput = true} = {}) { + if (process.platform !== 'darwin') { + throw new Error('macOS only'); + } + + const outputArguments = humanReadableOutput ? [] : ['-ss']; + + const stdout = execFileSync('osascript', ['-e', script, ...outputArguments], { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'ignore'], + timeout: 500, + }); + + return stdout.trim(); +} + +;// CONCATENATED MODULE: ./node_modules/bundle-name/index.js + + +async function bundleName(bundleId) { + return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`); +} + +;// CONCATENATED MODULE: ./node_modules/default-browser/windows.js + + + +const windows_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// TODO: Fix the casing of bundle identifiers in the next major version. + +// Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake +// ones that look real and match the macOS/Linux versions for cross-platform apps. +const windowsBrowserProgIds = { + MSEdgeHTM: {name: 'Edge', id: 'com.microsoft.edge'}, // The missing `L` is correct. + MSEdgeBHTML: {name: 'Edge Beta', id: 'com.microsoft.edge.beta'}, + MSEdgeDHTML: {name: 'Edge Dev', id: 'com.microsoft.edge.dev'}, + AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {name: 'Edge', id: 'com.microsoft.edge.old'}, + ChromeHTML: {name: 'Chrome', id: 'com.google.chrome'}, + ChromeBHTML: {name: 'Chrome Beta', id: 'com.google.chrome.beta'}, + ChromeDHTML: {name: 'Chrome Dev', id: 'com.google.chrome.dev'}, + ChromiumHTM: {name: 'Chromium', id: 'org.chromium.Chromium'}, + BraveHTML: {name: 'Brave', id: 'com.brave.Browser'}, + BraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'}, + BraveDHTML: {name: 'Brave Dev', id: 'com.brave.Browser.dev'}, + BraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'}, + FirefoxURL: {name: 'Firefox', id: 'org.mozilla.firefox'}, + OperaStable: {name: 'Opera', id: 'com.operasoftware.Opera'}, + VivaldiHTM: {name: 'Vivaldi', id: 'com.vivaldi.Vivaldi'}, + 'IE.HTTP': {name: 'Internet Explorer', id: 'com.microsoft.ie'}, +}; + +const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds)); + +class UnknownBrowserError extends Error {} + +async function defaultBrowser(_execFileAsync = windows_execFileAsync) { + const {stdout} = await _execFileAsync('reg', [ + 'QUERY', + ' HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice', + '/v', + 'ProgId', + ]); + + const match = /ProgId\s*REG_SZ\s*(?\S+)/.exec(stdout); + if (!match) { + throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`); + } + + const {id} = match.groups; + + // Windows can append a hash suffix to ProgIds using a dot or hyphen + // (e.g., `ChromeHTML.ABC123`, `FirefoxURL-6F193CCC56814779`). + // Try exact match first, then try without the suffix. + const dotIndex = id.lastIndexOf('.'); + const hyphenIndex = id.lastIndexOf('-'); + const baseIdByDot = dotIndex === -1 ? undefined : id.slice(0, dotIndex); + const baseIdByHyphen = hyphenIndex === -1 ? undefined : id.slice(0, hyphenIndex); + + return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? {name: id, id}; +} + +;// CONCATENATED MODULE: ./node_modules/default-browser/index.js + + + + + + + + + +const default_browser_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// Inlined: https://github.com/sindresorhus/titleize/blob/main/index.js +const titleize = string => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, x => x.toUpperCase()); + +async function default_browser_defaultBrowser() { + if (external_node_process_.platform === 'darwin') { + const id = await defaultBrowserId(); + const name = await bundleName(id); + return {name, id}; + } + + if (external_node_process_.platform === 'linux') { + const {stdout} = await default_browser_execFileAsync('xdg-mime', ['query', 'default', 'x-scheme-handler/http']); + const id = stdout.trim(); + const name = titleize(id.replace(/.desktop$/, '').replace('-', ' ')); + return {name, id}; + } + + if (external_node_process_.platform === 'win32') { + return defaultBrowser(); + } + + throw new Error('Only macOS, Linux, and Windows are supported'); +} + +;// CONCATENATED MODULE: ./node_modules/open/index.js + + + + + + + + + + + + +const execFile = (0,external_node_util_.promisify)(external_node_child_process_.execFile); + +// Path to included `xdg-open`. +const open_dirname = external_node_path_.dirname((0,external_node_url_.fileURLToPath)(require("url").pathToFileURL(__filename).href)); +const localXdgOpenPath = external_node_path_.join(open_dirname, 'xdg-open'); + +const {platform, arch} = external_node_process_; + +/** +Get the default browser name in Windows from WSL. + +@returns {Promise} Browser name. +*/ +async function getWindowsDefaultBrowserFromWsl() { + const powershellPath = await powerShellPath(); + const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`; + const encodedCommand = external_node_buffer_.Buffer.from(rawCommand, 'utf16le').toString('base64'); + + const {stdout} = await execFile( + powershellPath, + [ + '-NoProfile', + '-NonInteractive', + '-ExecutionPolicy', + 'Bypass', + '-EncodedCommand', + encodedCommand, + ], + {encoding: 'utf8'}, + ); + + const progId = stdout.trim(); + + // Map ProgId to browser IDs + const browserMap = { + ChromeHTML: 'com.google.chrome', + BraveHTML: 'com.brave.Browser', + MSEdgeHTM: 'com.microsoft.edge', + FirefoxURL: 'org.mozilla.firefox', + }; + + return browserMap[progId] ? {id: browserMap[progId]} : {}; +} + +const pTryEach = async (array, mapper) => { + let latestError; + + for (const item of array) { + try { + return await mapper(item); // eslint-disable-line no-await-in-loop + } catch (error) { + latestError = error; + } + } + + throw latestError; +}; + +// eslint-disable-next-line complexity +const baseOpen = async options => { + options = { + wait: false, + background: false, + newInstance: false, + allowNonzeroExitCode: false, + ...options, + }; + + if (Array.isArray(options.app)) { + return pTryEach(options.app, singleApp => baseOpen({ + ...options, + app: singleApp, + })); + } + + let {name: app, arguments: appArguments = []} = options.app ?? {}; + appArguments = [...appArguments]; + + if (Array.isArray(app)) { + return pTryEach(app, appName => baseOpen({ + ...options, + app: { + name: appName, + arguments: appArguments, + }, + })); + } + + if (app === 'browser' || app === 'browserPrivate') { + // IDs from default-browser for macOS and windows are the same + const ids = { + 'com.google.chrome': 'chrome', + 'google-chrome.desktop': 'chrome', + 'com.brave.Browser': 'brave', + 'org.mozilla.firefox': 'firefox', + 'firefox.desktop': 'firefox', + 'com.microsoft.msedge': 'edge', + 'com.microsoft.edge': 'edge', + 'com.microsoft.edgemac': 'edge', + 'microsoft-edge.desktop': 'edge', + }; + + // Incognito flags for each browser in `apps`. + const flags = { + chrome: '--incognito', + brave: '--incognito', + firefox: '--private-window', + edge: '--inPrivate', + }; + + const browser = is_wsl ? await getWindowsDefaultBrowserFromWsl() : await default_browser_defaultBrowser(); + if (browser.id in ids) { + const browserName = ids[browser.id]; + + if (app === 'browserPrivate') { + appArguments.push(flags[browserName]); + } + + return baseOpen({ + ...options, + app: { + name: apps[browserName], + arguments: appArguments, + }, + }); + } + + throw new Error(`${browser.name} is not supported as a default browser`); + } + + let command; + const cliArguments = []; + const childProcessOptions = {}; + + if (platform === 'darwin') { + command = 'open'; + + if (options.wait) { + cliArguments.push('--wait-apps'); + } + + if (options.background) { + cliArguments.push('--background'); + } + + if (options.newInstance) { + cliArguments.push('--new'); + } + + if (app) { + cliArguments.push('-a', app); + } + } else if (platform === 'win32' || (is_wsl && !isInsideContainer() && !app)) { + command = await powerShellPath(); + + cliArguments.push( + '-NoProfile', + '-NonInteractive', + '-ExecutionPolicy', + 'Bypass', + '-EncodedCommand', + ); + + if (!is_wsl) { + childProcessOptions.windowsVerbatimArguments = true; + } + + const encodedArguments = ['Start']; + + if (options.wait) { + encodedArguments.push('-Wait'); + } + + if (app) { + // Double quote with double quotes to ensure the inner quotes are passed through. + // Inner quotes are delimited for PowerShell interpretation with backticks. + encodedArguments.push(`"\`"${app}\`""`); + if (options.target) { + appArguments.push(options.target); + } + } else if (options.target) { + encodedArguments.push(`"${options.target}"`); + } + + if (appArguments.length > 0) { + appArguments = appArguments.map(argument => `"\`"${argument}\`""`); + encodedArguments.push('-ArgumentList', appArguments.join(',')); + } + + // Using Base64-encoded command, accepted by PowerShell, to allow special characters. + options.target = external_node_buffer_.Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64'); + } else { + if (app) { + command = app; + } else { + // When bundled by Webpack, there's no actual package file path and no local `xdg-open`. + const isBundled = !open_dirname || open_dirname === '/'; + + // Check if local `xdg-open` exists and is executable. + let exeLocalXdgOpen = false; + try { + await promises_.access(localXdgOpenPath, promises_.constants.X_OK); + exeLocalXdgOpen = true; + } catch {} + + const useSystemXdgOpen = external_node_process_.versions.electron + ?? (platform === 'android' || isBundled || !exeLocalXdgOpen); + command = useSystemXdgOpen ? 'xdg-open' : localXdgOpenPath; + } + + if (appArguments.length > 0) { + cliArguments.push(...appArguments); + } + + if (!options.wait) { + // `xdg-open` will block the process unless stdio is ignored + // and it's detached from the parent even if it's unref'd. + childProcessOptions.stdio = 'ignore'; + childProcessOptions.detached = true; + } + } + + if (platform === 'darwin' && appArguments.length > 0) { + cliArguments.push('--args', ...appArguments); + } + + // This has to come after `--args`. + if (options.target) { + cliArguments.push(options.target); + } + + const subprocess = external_node_child_process_.spawn(command, cliArguments, childProcessOptions); + + if (options.wait) { + return new Promise((resolve, reject) => { + subprocess.once('error', reject); + + subprocess.once('close', exitCode => { + if (!options.allowNonzeroExitCode && exitCode > 0) { + reject(new Error(`Exited with code ${exitCode}`)); + return; + } + + resolve(subprocess); + }); + }); + } + + subprocess.unref(); + + return subprocess; +}; + +const open_open = (target, options) => { + if (typeof target !== 'string') { + throw new TypeError('Expected a `target`'); + } + + return baseOpen({ + ...options, + target, + }); +}; + +const openApp = (name, options) => { + if (typeof name !== 'string' && !Array.isArray(name)) { + throw new TypeError('Expected a valid `name`'); + } + + const {arguments: appArguments = []} = options ?? {}; + if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) { + throw new TypeError('Expected `appArguments` as Array type'); + } + + return baseOpen({ + ...options, + app: { + name, + arguments: appArguments, + }, + }); +}; + +function detectArchBinary(binary) { + if (typeof binary === 'string' || Array.isArray(binary)) { + return binary; + } + + const {[arch]: archBinary} = binary; + + if (!archBinary) { + throw new Error(`${arch} is not supported`); + } + + return archBinary; +} + +function detectPlatformBinary({[platform]: platformBinary}, {wsl}) { + if (wsl && is_wsl) { + return detectArchBinary(wsl); + } + + if (!platformBinary) { + throw new Error(`${platform} is not supported`); + } + + return detectArchBinary(platformBinary); +} + +const apps = {}; + +defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({ + darwin: 'google chrome', + win32: 'chrome', + linux: ['google-chrome', 'google-chrome-stable', 'chromium'], +}, { + wsl: { + ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe', + x64: ['/mnt/c/Program Files/Google/Chrome/Application/chrome.exe', '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe'], + }, +})); + +defineLazyProperty(apps, 'brave', () => detectPlatformBinary({ + darwin: 'brave browser', + win32: 'brave', + linux: ['brave-browser', 'brave'], +}, { + wsl: { + ia32: '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe', + x64: ['/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe', '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe'], + }, +})); + +defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({ + darwin: 'firefox', + win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`, + linux: 'firefox', +}, { + wsl: '/mnt/c/Program Files/Mozilla Firefox/firefox.exe', +})); + +defineLazyProperty(apps, 'edge', () => detectPlatformBinary({ + darwin: 'microsoft edge', + win32: 'msedge', + linux: ['microsoft-edge', 'microsoft-edge-dev'], +}, { + wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe', +})); + +defineLazyProperty(apps, 'browser', () => 'browser'); + +defineLazyProperty(apps, 'browserPrivate', () => 'browserPrivate'); + +/* harmony default export */ const node_modules_open = (open_open); + + +/***/ }) + +}; +; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index a1d44f3..efd8e80 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,14 +1,18 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 82690: +/***/ 39841: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -21,14 +25,14 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.issue = exports.issueCommand = void 0; -const os = __importStar(__nccwpck_require__(22037)); -const utils_1 = __nccwpck_require__(30353); +const os = __importStar(__nccwpck_require__(70857)); +const utils_1 = __nccwpck_require__(8197); /** * Commands * @@ -83,13 +87,13 @@ class Command { } } function escapeData(s) { - return utils_1.toCommandValue(s) + return (0, utils_1.toCommandValue)(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A'); } function escapeProperty(s) { - return utils_1.toCommandValue(s) + return (0, utils_1.toCommandValue)(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A') @@ -100,14 +104,18 @@ function escapeProperty(s) { /***/ }), -/***/ 9935: +/***/ 25589: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -120,7 +128,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -134,13 +142,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; -const command_1 = __nccwpck_require__(82690); -const file_command_1 = __nccwpck_require__(85898); -const utils_1 = __nccwpck_require__(30353); -const os = __importStar(__nccwpck_require__(22037)); -const path = __importStar(__nccwpck_require__(71017)); -const oidc_utils_1 = __nccwpck_require__(57901); +exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +const command_1 = __nccwpck_require__(39841); +const file_command_1 = __nccwpck_require__(11804); +const utils_1 = __nccwpck_require__(8197); +const os = __importStar(__nccwpck_require__(70857)); +const path = __importStar(__nccwpck_require__(16928)); +const oidc_utils_1 = __nccwpck_require__(80283); /** * The code to exit an action */ @@ -154,7 +162,7 @@ var ExitCode; * A code indicating that the action was a failure */ ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +})(ExitCode || (exports.ExitCode = ExitCode = {})); //----------------------------------------------------------------------- // Variables //----------------------------------------------------------------------- @@ -165,13 +173,13 @@ var ExitCode; */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); + const convertedVal = (0, utils_1.toCommandValue)(val); process.env[name] = convertedVal; const filePath = process.env['GITHUB_ENV'] || ''; if (filePath) { - return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val)); + return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val)); } - command_1.issueCommand('set-env', { name }, convertedVal); + (0, command_1.issueCommand)('set-env', { name }, convertedVal); } exports.exportVariable = exportVariable; /** @@ -179,7 +187,7 @@ exports.exportVariable = exportVariable; * @param secret value of the secret */ function setSecret(secret) { - command_1.issueCommand('add-mask', {}, secret); + (0, command_1.issueCommand)('add-mask', {}, secret); } exports.setSecret = setSecret; /** @@ -189,10 +197,10 @@ exports.setSecret = setSecret; function addPath(inputPath) { const filePath = process.env['GITHUB_PATH'] || ''; if (filePath) { - file_command_1.issueFileCommand('PATH', inputPath); + (0, file_command_1.issueFileCommand)('PATH', inputPath); } else { - command_1.issueCommand('add-path', {}, inputPath); + (0, command_1.issueCommand)('add-path', {}, inputPath); } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } @@ -267,10 +275,10 @@ exports.getBooleanInput = getBooleanInput; function setOutput(name, value) { const filePath = process.env['GITHUB_OUTPUT'] || ''; if (filePath) { - return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value)); + return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value)); } process.stdout.write(os.EOL); - command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value)); + (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); } exports.setOutput = setOutput; /** @@ -279,7 +287,7 @@ exports.setOutput = setOutput; * */ function setCommandEcho(enabled) { - command_1.issue('echo', enabled ? 'on' : 'off'); + (0, command_1.issue)('echo', enabled ? 'on' : 'off'); } exports.setCommandEcho = setCommandEcho; //----------------------------------------------------------------------- @@ -310,7 +318,7 @@ exports.isDebug = isDebug; * @param message debug message */ function debug(message) { - command_1.issueCommand('debug', {}, message); + (0, command_1.issueCommand)('debug', {}, message); } exports.debug = debug; /** @@ -319,7 +327,7 @@ exports.debug = debug; * @param properties optional properties to add to the annotation. */ function error(message, properties = {}) { - command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.error = error; /** @@ -328,7 +336,7 @@ exports.error = error; * @param properties optional properties to add to the annotation. */ function warning(message, properties = {}) { - command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.warning = warning; /** @@ -337,7 +345,7 @@ exports.warning = warning; * @param properties optional properties to add to the annotation. */ function notice(message, properties = {}) { - command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.notice = notice; /** @@ -356,14 +364,14 @@ exports.info = info; * @param name The name of the output group */ function startGroup(name) { - command_1.issue('group', name); + (0, command_1.issue)('group', name); } exports.startGroup = startGroup; /** * End an output group. */ function endGroup() { - command_1.issue('endgroup'); + (0, command_1.issue)('endgroup'); } exports.endGroup = endGroup; /** @@ -401,9 +409,9 @@ exports.group = group; function saveState(name, value) { const filePath = process.env['GITHUB_STATE'] || ''; if (filePath) { - return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value)); + return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value)); } - command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value)); + (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); } exports.saveState = saveState; /** @@ -425,25 +433,29 @@ exports.getIDToken = getIDToken; /** * Summary exports */ -var summary_1 = __nccwpck_require__(29050); +var summary_1 = __nccwpck_require__(87700); Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); /** * @deprecated use core.summary */ -var summary_2 = __nccwpck_require__(29050); +var summary_2 = __nccwpck_require__(87700); Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); /** * Path exports */ -var path_utils_1 = __nccwpck_require__(31341); +var path_utils_1 = __nccwpck_require__(51225); Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } })); Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } })); Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } })); +/** + * Platform utilities exports + */ +exports.platform = __importStar(__nccwpck_require__(29889)); //# sourceMappingURL=core.js.map /***/ }), -/***/ 85898: +/***/ 11804: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -451,7 +463,11 @@ Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: funct // For internal use, subject to change. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -464,7 +480,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -472,10 +488,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ -const fs = __importStar(__nccwpck_require__(57147)); -const os = __importStar(__nccwpck_require__(22037)); -const uuid_1 = __nccwpck_require__(41368); -const utils_1 = __nccwpck_require__(30353); +const crypto = __importStar(__nccwpck_require__(76982)); +const fs = __importStar(__nccwpck_require__(79896)); +const os = __importStar(__nccwpck_require__(70857)); +const utils_1 = __nccwpck_require__(8197); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; if (!filePath) { @@ -484,14 +500,14 @@ function issueFileCommand(command, message) { if (!fs.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, { encoding: 'utf8' }); } exports.issueFileCommand = issueFileCommand; function prepareKeyValueMessage(key, value) { - const delimiter = `ghadelimiter_${uuid_1.v4()}`; - const convertedValue = utils_1.toCommandValue(value); + const delimiter = `ghadelimiter_${crypto.randomUUID()}`; + const convertedValue = (0, utils_1.toCommandValue)(value); // These should realistically never happen, but just in case someone finds a // way to exploit uuid generation let's not allow keys or values that contain // the delimiter. @@ -508,7 +524,7 @@ exports.prepareKeyValueMessage = prepareKeyValueMessage; /***/ }), -/***/ 57901: +/***/ 80283: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -524,9 +540,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OidcClient = void 0; -const http_client_1 = __nccwpck_require__(93658); -const auth_1 = __nccwpck_require__(52660); -const core_1 = __nccwpck_require__(9935); +const http_client_1 = __nccwpck_require__(56393); +const auth_1 = __nccwpck_require__(79215); +const core_1 = __nccwpck_require__(25589); class OidcClient { static createHttpClient(allowRetry = true, maxRetry = 10) { const requestOptions = { @@ -558,7 +574,7 @@ class OidcClient { .catch(error => { throw new Error(`Failed to get ID Token. \n Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); + Error Message: ${error.message}`); }); const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { @@ -576,9 +592,9 @@ class OidcClient { const encodedAudience = encodeURIComponent(audience); id_token_url = `${id_token_url}&audience=${encodedAudience}`; } - core_1.debug(`ID token url is ${id_token_url}`); + (0, core_1.debug)(`ID token url is ${id_token_url}`); const id_token = yield OidcClient.getCall(id_token_url); - core_1.setSecret(id_token); + (0, core_1.setSecret)(id_token); return id_token; } catch (error) { @@ -592,14 +608,18 @@ exports.OidcClient = OidcClient; /***/ }), -/***/ 31341: +/***/ 51225: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -612,13 +632,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; -const path = __importStar(__nccwpck_require__(71017)); +const path = __importStar(__nccwpck_require__(16928)); /** * toPosixPath converts the given path to the posix form. On Windows, \\ will be * replaced with /. @@ -657,7 +677,108 @@ exports.toPlatformPath = toPlatformPath; /***/ }), -/***/ 29050: +/***/ 29889: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; +const os_1 = __importDefault(__nccwpck_require__(70857)); +const exec = __importStar(__nccwpck_require__(36493)); +const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, { + silent: true + }); + const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, { + silent: true + }); + return { + name: name.trim(), + version: version.trim() + }; +}); +const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + var _a, _b, _c, _d; + const { stdout } = yield exec.getExecOutput('sw_vers', undefined, { + silent: true + }); + const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ''; + const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ''; + return { + name, + version + }; +}); +const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], { + silent: true + }); + const [name, version] = stdout.trim().split('\n'); + return { + name, + version + }; +}); +exports.platform = os_1.default.platform(); +exports.arch = os_1.default.arch(); +exports.isWindows = exports.platform === 'win32'; +exports.isMacOS = exports.platform === 'darwin'; +exports.isLinux = exports.platform === 'linux'; +function getDetails() { + return __awaiter(this, void 0, void 0, function* () { + return Object.assign(Object.assign({}, (yield (exports.isWindows + ? getWindowsInfo() + : exports.isMacOS + ? getMacOsInfo() + : getLinuxInfo()))), { platform: exports.platform, + arch: exports.arch, + isWindows: exports.isWindows, + isMacOS: exports.isMacOS, + isLinux: exports.isLinux }); + }); +} +exports.getDetails = getDetails; +//# sourceMappingURL=platform.js.map + +/***/ }), + +/***/ 87700: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -673,8 +794,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; -const os_1 = __nccwpck_require__(22037); -const fs_1 = __nccwpck_require__(57147); +const os_1 = __nccwpck_require__(70857); +const fs_1 = __nccwpck_require__(79896); const { access, appendFile, writeFile } = fs_1.promises; exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; @@ -947,7 +1068,7 @@ exports.summary = _summary; /***/ }), -/***/ 30353: +/***/ 8197: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -994,7 +1115,742 @@ exports.toCommandProperties = toCommandProperties; /***/ }), -/***/ 52660: +/***/ 36493: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getExecOutput = exports.exec = void 0; +const string_decoder_1 = __nccwpck_require__(13193); +const tr = __importStar(__nccwpck_require__(68276)); +/** + * Exec a command. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code + */ +function exec(commandLine, args, options) { + return __awaiter(this, void 0, void 0, function* () { + const commandArgs = tr.argStringToArray(commandLine); + if (commandArgs.length === 0) { + throw new Error(`Parameter 'commandLine' cannot be null or empty.`); + } + // Path to tool to execute should be first arg + const toolPath = commandArgs[0]; + args = commandArgs.slice(1).concat(args || []); + const runner = new tr.ToolRunner(toolPath, args, options); + return runner.exec(); + }); +} +exports.exec = exec; +/** + * Exec a command and get the output. + * Output will be streamed to the live console. + * Returns promise with the exit code and collected stdout and stderr + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code, stdout, and stderr + */ +function getExecOutput(commandLine, args, options) { + var _a, _b; + return __awaiter(this, void 0, void 0, function* () { + let stdout = ''; + let stderr = ''; + //Using string decoder covers the case where a mult-byte character is split + const stdoutDecoder = new string_decoder_1.StringDecoder('utf8'); + const stderrDecoder = new string_decoder_1.StringDecoder('utf8'); + const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; + const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; + const stdErrListener = (data) => { + stderr += stderrDecoder.write(data); + if (originalStdErrListener) { + originalStdErrListener(data); + } + }; + const stdOutListener = (data) => { + stdout += stdoutDecoder.write(data); + if (originalStdoutListener) { + originalStdoutListener(data); + } + }; + const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener }); + const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners })); + //flush any remaining characters + stdout += stdoutDecoder.end(); + stderr += stderrDecoder.end(); + return { + exitCode, + stdout, + stderr + }; + }); +} +exports.getExecOutput = getExecOutput; +//# sourceMappingURL=exec.js.map + +/***/ }), + +/***/ 68276: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.argStringToArray = exports.ToolRunner = void 0; +const os = __importStar(__nccwpck_require__(70857)); +const events = __importStar(__nccwpck_require__(24434)); +const child = __importStar(__nccwpck_require__(35317)); +const path = __importStar(__nccwpck_require__(16928)); +const io = __importStar(__nccwpck_require__(61351)); +const ioUtil = __importStar(__nccwpck_require__(19240)); +const timers_1 = __nccwpck_require__(53557); +/* eslint-disable @typescript-eslint/unbound-method */ +const IS_WINDOWS = process.platform === 'win32'; +/* + * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way. + */ +class ToolRunner extends events.EventEmitter { + constructor(toolPath, args, options) { + super(); + if (!toolPath) { + throw new Error("Parameter 'toolPath' cannot be null or empty."); + } + this.toolPath = toolPath; + this.args = args || []; + this.options = options || {}; + } + _debug(message) { + if (this.options.listeners && this.options.listeners.debug) { + this.options.listeners.debug(message); + } + } + _getCommandString(options, noPrefix) { + const toolPath = this._getSpawnFileName(); + const args = this._getSpawnArgs(options); + let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool + if (IS_WINDOWS) { + // Windows + cmd file + if (this._isCmdFile()) { + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; + } + } + // Windows + verbatim + else if (options.windowsVerbatimArguments) { + cmd += `"${toolPath}"`; + for (const a of args) { + cmd += ` ${a}`; + } + } + // Windows (regular) + else { + cmd += this._windowsQuoteCmdArg(toolPath); + for (const a of args) { + cmd += ` ${this._windowsQuoteCmdArg(a)}`; + } + } + } + else { + // OSX/Linux - this can likely be improved with some form of quoting. + // creating processes on Unix is fundamentally different than Windows. + // on Unix, execvp() takes an arg array. + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; + } + } + return cmd; + } + _processLineBuffer(data, strBuffer, onLine) { + try { + let s = strBuffer + data.toString(); + let n = s.indexOf(os.EOL); + while (n > -1) { + const line = s.substring(0, n); + onLine(line); + // the rest of the string ... + s = s.substring(n + os.EOL.length); + n = s.indexOf(os.EOL); + } + return s; + } + catch (err) { + // streaming lines to console is best effort. Don't fail a build. + this._debug(`error processing line. Failed with error ${err}`); + return ''; + } + } + _getSpawnFileName() { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + return process.env['COMSPEC'] || 'cmd.exe'; + } + } + return this.toolPath; + } + _getSpawnArgs(options) { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; + for (const a of this.args) { + argline += ' '; + argline += options.windowsVerbatimArguments + ? a + : this._windowsQuoteCmdArg(a); + } + argline += '"'; + return [argline]; + } + } + return this.args; + } + _endsWith(str, end) { + return str.endsWith(end); + } + _isCmdFile() { + const upperToolPath = this.toolPath.toUpperCase(); + return (this._endsWith(upperToolPath, '.CMD') || + this._endsWith(upperToolPath, '.BAT')); + } + _windowsQuoteCmdArg(arg) { + // for .exe, apply the normal quoting rules that libuv applies + if (!this._isCmdFile()) { + return this._uvQuoteCmdArg(arg); + } + // otherwise apply quoting rules specific to the cmd.exe command line parser. + // the libuv rules are generic and are not designed specifically for cmd.exe + // command line parser. + // + // for a detailed description of the cmd.exe command line parser, refer to + // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912 + // need quotes for empty arg + if (!arg) { + return '""'; + } + // determine whether the arg needs to be quoted + const cmdSpecialChars = [ + ' ', + '\t', + '&', + '(', + ')', + '[', + ']', + '{', + '}', + '^', + '=', + ';', + '!', + "'", + '+', + ',', + '`', + '~', + '|', + '<', + '>', + '"' + ]; + let needsQuotes = false; + for (const char of arg) { + if (cmdSpecialChars.some(x => x === char)) { + needsQuotes = true; + break; + } + } + // short-circuit if quotes not needed + if (!needsQuotes) { + return arg; + } + // the following quoting rules are very similar to the rules that by libuv applies. + // + // 1) wrap the string in quotes + // + // 2) double-up quotes - i.e. " => "" + // + // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately + // doesn't work well with a cmd.exe command line. + // + // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app. + // for example, the command line: + // foo.exe "myarg:""my val""" + // is parsed by a .NET console app into an arg array: + // [ "myarg:\"my val\"" ] + // which is the same end result when applying libuv quoting rules. although the actual + // command line from libuv quoting rules would look like: + // foo.exe "myarg:\"my val\"" + // + // 3) double-up slashes that precede a quote, + // e.g. hello \world => "hello \world" + // hello\"world => "hello\\""world" + // hello\\"world => "hello\\\\""world" + // hello world\ => "hello world\\" + // + // technically this is not required for a cmd.exe command line, or the batch argument parser. + // the reasons for including this as a .cmd quoting rule are: + // + // a) this is optimized for the scenario where the argument is passed from the .cmd file to an + // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule. + // + // b) it's what we've been doing previously (by deferring to node default behavior) and we + // haven't heard any complaints about that aspect. + // + // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be + // escaped when used on the command line directly - even though within a .cmd file % can be escaped + // by using %%. + // + // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts + // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing. + // + // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would + // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the + // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args + // to an external program. + // + // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file. + // % can be escaped within a .cmd file. + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; // double the slash + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '"'; // double the quote + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse + .split('') + .reverse() + .join(''); + } + _uvQuoteCmdArg(arg) { + // Tool runner wraps child_process.spawn() and needs to apply the same quoting as + // Node in certain cases where the undocumented spawn option windowsVerbatimArguments + // is used. + // + // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV, + // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details), + // pasting copyright notice from Node within this function: + // + // Copyright Joyent, Inc. and other Node contributors. All rights reserved. + // + // Permission is hereby granted, free of charge, to any person obtaining a copy + // of this software and associated documentation files (the "Software"), to + // deal in the Software without restriction, including without limitation the + // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + // sell copies of the Software, and to permit persons to whom the Software is + // furnished to do so, subject to the following conditions: + // + // The above copyright notice and this permission notice shall be included in + // all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + // IN THE SOFTWARE. + if (!arg) { + // Need double quotation for empty argument + return '""'; + } + if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) { + // No quotation needed + return arg; + } + if (!arg.includes('"') && !arg.includes('\\')) { + // No embedded double quotes or backslashes, so I can just wrap + // quote marks around the whole thing. + return `"${arg}"`; + } + // Expected input/output: + // input : hello"world + // output: "hello\"world" + // input : hello""world + // output: "hello\"\"world" + // input : hello\world + // output: hello\world + // input : hello\\world + // output: hello\\world + // input : hello\"world + // output: "hello\\\"world" + // input : hello\\"world + // output: "hello\\\\\"world" + // input : hello world\ + // output: "hello world\\" - note the comment in libuv actually reads "hello world\" + // but it appears the comment is wrong, it should be "hello world\\" + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '\\'; + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse + .split('') + .reverse() + .join(''); + } + _cloneExecOptions(options) { + options = options || {}; + const result = { + cwd: options.cwd || process.cwd(), + env: options.env || process.env, + silent: options.silent || false, + windowsVerbatimArguments: options.windowsVerbatimArguments || false, + failOnStdErr: options.failOnStdErr || false, + ignoreReturnCode: options.ignoreReturnCode || false, + delay: options.delay || 10000 + }; + result.outStream = options.outStream || process.stdout; + result.errStream = options.errStream || process.stderr; + return result; + } + _getSpawnOptions(options, toolPath) { + options = options || {}; + const result = {}; + result.cwd = options.cwd; + result.env = options.env; + result['windowsVerbatimArguments'] = + options.windowsVerbatimArguments || this._isCmdFile(); + if (options.windowsVerbatimArguments) { + result.argv0 = `"${toolPath}"`; + } + return result; + } + /** + * Exec a tool. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param tool path to tool to exec + * @param options optional exec options. See ExecOptions + * @returns number + */ + exec() { + return __awaiter(this, void 0, void 0, function* () { + // root the tool path if it is unrooted and contains relative pathing + if (!ioUtil.isRooted(this.toolPath) && + (this.toolPath.includes('/') || + (IS_WINDOWS && this.toolPath.includes('\\')))) { + // prefer options.cwd if it is specified, however options.cwd may also need to be rooted + this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + } + // if the tool is only a file name, then resolve it from the PATH + // otherwise verify it exists (add extension on Windows if necessary) + this.toolPath = yield io.which(this.toolPath, true); + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + this._debug(`exec tool: ${this.toolPath}`); + this._debug('arguments:'); + for (const arg of this.args) { + this._debug(` ${arg}`); + } + const optionsNonNull = this._cloneExecOptions(this.options); + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL); + } + const state = new ExecState(optionsNonNull, this.toolPath); + state.on('debug', (message) => { + this._debug(message); + }); + if (this.options.cwd && !(yield ioUtil.exists(this.options.cwd))) { + return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`)); + } + const fileName = this._getSpawnFileName(); + const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName)); + let stdbuffer = ''; + if (cp.stdout) { + cp.stdout.on('data', (data) => { + if (this.options.listeners && this.options.listeners.stdout) { + this.options.listeners.stdout(data); + } + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(data); + } + stdbuffer = this._processLineBuffer(data, stdbuffer, (line) => { + if (this.options.listeners && this.options.listeners.stdline) { + this.options.listeners.stdline(line); + } + }); + }); + } + let errbuffer = ''; + if (cp.stderr) { + cp.stderr.on('data', (data) => { + state.processStderr = true; + if (this.options.listeners && this.options.listeners.stderr) { + this.options.listeners.stderr(data); + } + if (!optionsNonNull.silent && + optionsNonNull.errStream && + optionsNonNull.outStream) { + const s = optionsNonNull.failOnStdErr + ? optionsNonNull.errStream + : optionsNonNull.outStream; + s.write(data); + } + errbuffer = this._processLineBuffer(data, errbuffer, (line) => { + if (this.options.listeners && this.options.listeners.errline) { + this.options.listeners.errline(line); + } + }); + }); + } + cp.on('error', (err) => { + state.processError = err.message; + state.processExited = true; + state.processClosed = true; + state.CheckComplete(); + }); + cp.on('exit', (code) => { + state.processExitCode = code; + state.processExited = true; + this._debug(`Exit code ${code} received from tool '${this.toolPath}'`); + state.CheckComplete(); + }); + cp.on('close', (code) => { + state.processExitCode = code; + state.processExited = true; + state.processClosed = true; + this._debug(`STDIO streams have closed for tool '${this.toolPath}'`); + state.CheckComplete(); + }); + state.on('done', (error, exitCode) => { + if (stdbuffer.length > 0) { + this.emit('stdline', stdbuffer); + } + if (errbuffer.length > 0) { + this.emit('errline', errbuffer); + } + cp.removeAllListeners(); + if (error) { + reject(error); + } + else { + resolve(exitCode); + } + }); + if (this.options.input) { + if (!cp.stdin) { + throw new Error('child process missing stdin'); + } + cp.stdin.end(this.options.input); + } + })); + }); + } +} +exports.ToolRunner = ToolRunner; +/** + * Convert an arg string to an array of args. Handles escaping + * + * @param argString string of arguments + * @returns string[] array of arguments + */ +function argStringToArray(argString) { + const args = []; + let inQuotes = false; + let escaped = false; + let arg = ''; + function append(c) { + // we only escape double quotes. + if (escaped && c !== '"') { + arg += '\\'; + } + arg += c; + escaped = false; + } + for (let i = 0; i < argString.length; i++) { + const c = argString.charAt(i); + if (c === '"') { + if (!escaped) { + inQuotes = !inQuotes; + } + else { + append(c); + } + continue; + } + if (c === '\\' && escaped) { + append(c); + continue; + } + if (c === '\\' && inQuotes) { + escaped = true; + continue; + } + if (c === ' ' && !inQuotes) { + if (arg.length > 0) { + args.push(arg); + arg = ''; + } + continue; + } + append(c); + } + if (arg.length > 0) { + args.push(arg.trim()); + } + return args; +} +exports.argStringToArray = argStringToArray; +class ExecState extends events.EventEmitter { + constructor(options, toolPath) { + super(); + this.processClosed = false; // tracks whether the process has exited and stdio is closed + this.processError = ''; + this.processExitCode = 0; + this.processExited = false; // tracks whether the process has exited + this.processStderr = false; // tracks whether stderr was written to + this.delay = 10000; // 10 seconds + this.done = false; + this.timeout = null; + if (!toolPath) { + throw new Error('toolPath must not be empty'); + } + this.options = options; + this.toolPath = toolPath; + if (options.delay) { + this.delay = options.delay; + } + } + CheckComplete() { + if (this.done) { + return; + } + if (this.processClosed) { + this._setResult(); + } + else if (this.processExited) { + this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this); + } + } + _debug(message) { + this.emit('debug', message); + } + _setResult() { + // determine whether there is an error + let error; + if (this.processExited) { + if (this.processError) { + error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`); + } + else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) { + error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`); + } + else if (this.processStderr && this.options.failOnStdErr) { + error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`); + } + } + // clear the timeout + if (this.timeout) { + clearTimeout(this.timeout); + this.timeout = null; + } + this.done = true; + this.emit('done', error, this.processExitCode); + } + static HandleTimeout(state) { + if (state.done) { + return; + } + if (!state.processClosed && state.processExited) { + const message = `The STDIO streams did not close within ${state.delay / + 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`; + state._debug(message); + } + state._setResult(); + } +} +//# sourceMappingURL=toolrunner.js.map + +/***/ }), + +/***/ 79215: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -1082,7 +1938,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ }), -/***/ 93658: +/***/ 56393: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1090,7 +1946,11 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /* eslint-disable @typescript-eslint/no-explicit-any */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -1103,7 +1963,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -1118,10 +1978,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; -const http = __importStar(__nccwpck_require__(13685)); -const https = __importStar(__nccwpck_require__(95687)); -const pm = __importStar(__nccwpck_require__(49697)); -const tunnel = __importStar(__nccwpck_require__(47477)); +const http = __importStar(__nccwpck_require__(58611)); +const https = __importStar(__nccwpck_require__(65692)); +const pm = __importStar(__nccwpck_require__(21825)); +const tunnel = __importStar(__nccwpck_require__(48079)); +const undici_1 = __nccwpck_require__(66201); var HttpCodes; (function (HttpCodes) { HttpCodes[HttpCodes["OK"] = 200] = "OK"; @@ -1151,16 +2012,16 @@ var HttpCodes; HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; -})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +})(HttpCodes || (exports.HttpCodes = HttpCodes = {})); var Headers; (function (Headers) { Headers["Accept"] = "accept"; Headers["ContentType"] = "content-type"; -})(Headers = exports.Headers || (exports.Headers = {})); +})(Headers || (exports.Headers = Headers = {})); var MediaTypes; (function (MediaTypes) { MediaTypes["ApplicationJson"] = "application/json"; -})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +})(MediaTypes || (exports.MediaTypes = MediaTypes = {})); /** * Returns the proxy URL, depending upon the supplied url and proxy environment variables. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com @@ -1529,6 +2390,15 @@ class HttpClient { const parsedUrl = new URL(serverUrl); return this._getAgent(parsedUrl); } + getAgentDispatcher(serverUrl) { + const parsedUrl = new URL(serverUrl); + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (!useProxy) { + return; + } + return this._getProxyAgentDispatcher(parsedUrl, proxyUrl); + } _prepareRequest(method, requestUrl, headers) { const info = {}; info.parsedUrl = requestUrl; @@ -1576,7 +2446,7 @@ class HttpClient { if (this._keepAlive && useProxy) { agent = this._proxyAgent; } - if (this._keepAlive && !useProxy) { + if (!useProxy) { agent = this._agent; } // if agent is already assigned use that agent. @@ -1608,16 +2478,12 @@ class HttpClient { agent = tunnelAgent(agentOptions); this._proxyAgent = agent; } - // if reusing agent across request and tunneling agent isn't assigned create a new agent - if (this._keepAlive && !agent) { + // if tunneling agent isn't assigned create a new agent + if (!agent) { const options = { keepAlive: this._keepAlive, maxSockets }; agent = usingSsl ? new https.Agent(options) : new http.Agent(options); this._agent = agent; } - // if not using private agent and tunnel agent isn't setup then use global agent - if (!agent) { - agent = usingSsl ? https.globalAgent : http.globalAgent; - } if (usingSsl && this._ignoreSslError) { // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options @@ -1628,6 +2494,30 @@ class HttpClient { } return agent; } + _getProxyAgentDispatcher(parsedUrl, proxyUrl) { + let proxyAgent; + if (this._keepAlive) { + proxyAgent = this._proxyAgentDispatcher; + } + // if agent is already assigned use that agent. + if (proxyAgent) { + return proxyAgent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { + token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` + }))); + this._proxyAgentDispatcher = proxyAgent; + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, { + rejectUnauthorized: false + }); + } + return proxyAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -1707,7 +2597,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa /***/ }), -/***/ 49697: +/***/ 21825: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -1729,11 +2619,11 @@ function getProxyUrl(reqUrl) { })(); if (proxyVar) { try { - return new URL(proxyVar); + return new DecodedURL(proxyVar); } catch (_a) { if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) - return new URL(`http://${proxyVar}`); + return new DecodedURL(`http://${proxyVar}`); } } else { @@ -1792,898 +2682,41508 @@ function isLoopbackAddress(host) { hostLower.startsWith('[::1]') || hostLower.startsWith('[0:0:0:0:0:0:0:1]')); } +class DecodedURL extends URL { + constructor(url, base) { + super(url, base); + this._decodedUsername = decodeURIComponent(super.username); + this._decodedPassword = decodeURIComponent(super.password); + } + get username() { + return this._decodedUsername; + } + get password() { + return this._decodedPassword; + } +} //# sourceMappingURL=proxy.js.map /***/ }), -/***/ 23677: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { +/***/ 19240: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; }; -const events_1 = __nccwpck_require__(82361); -const debug_1 = __importDefault(__nccwpck_require__(4703)); -const promisify_1 = __importDefault(__nccwpck_require__(82635)); -const debug = debug_1.default('agent-base'); -function isAgent(v) { - return Boolean(v) && typeof v.addRequest === 'function'; -} -function isSecureEndpoint() { - const { stack } = new Error(); - if (typeof stack !== 'string') - return false; - return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1); -} -function createAgent(callback, opts) { - return new createAgent.Agent(callback, opts); -} -(function (createAgent) { - /** - * Base `http.Agent` implementation. - * No pooling/keep-alive is implemented by default. - * - * @param {Function} callback - * @api public - */ - class Agent extends events_1.EventEmitter { - constructor(callback, _opts) { - super(); - let opts = _opts; - if (typeof callback === 'function') { - this.callback = callback; - } - else if (callback) { - opts = callback; - } - // Timeout for the socket to be returned from the callback - this.timeout = null; - if (opts && typeof opts.timeout === 'number') { - this.timeout = opts.timeout; - } - // These aren't actually used by `agent-base`, but are required - // for the TypeScript definition files in `@types/node` :/ - this.maxFreeSockets = 1; - this.maxSockets = 1; - this.maxTotalSockets = Infinity; - this.sockets = {}; - this.freeSockets = {}; - this.requests = {}; - this.options = {}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; +const fs = __importStar(__nccwpck_require__(79896)); +const path = __importStar(__nccwpck_require__(16928)); +_a = fs.promises +// export const {open} = 'fs' +, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; +// export const {open} = 'fs' +exports.IS_WINDOWS = process.platform === 'win32'; +// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691 +exports.UV_FS_O_EXLOCK = 0x10000000; +exports.READONLY = fs.constants.O_RDONLY; +function exists(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + try { + yield exports.stat(fsPath); } - get defaultPort() { - if (typeof this.explicitDefaultPort === 'number') { - return this.explicitDefaultPort; + catch (err) { + if (err.code === 'ENOENT') { + return false; } - return isSecureEndpoint() ? 443 : 80; + throw err; } - set defaultPort(v) { - this.explicitDefaultPort = v; + return true; + }); +} +exports.exists = exists; +function isDirectory(fsPath, useStat = false) { + return __awaiter(this, void 0, void 0, function* () { + const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); + return stats.isDirectory(); + }); +} +exports.isDirectory = isDirectory; +/** + * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: + * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). + */ +function isRooted(p) { + p = normalizeSeparators(p); + if (!p) { + throw new Error('isRooted() parameter "p" cannot be empty'); + } + if (exports.IS_WINDOWS) { + return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello + ); // e.g. C: or C:\hello + } + return p.startsWith('/'); +} +exports.isRooted = isRooted; +/** + * Best effort attempt to determine whether a file exists and is executable. + * @param filePath file path to check + * @param extensions additional file extensions to try + * @return if file exists and is executable, returns the file path. otherwise empty string. + */ +function tryGetExecutablePath(filePath, extensions) { + return __awaiter(this, void 0, void 0, function* () { + let stats = undefined; + try { + // test file exists + stats = yield exports.stat(filePath); } - get protocol() { - if (typeof this.explicitProtocol === 'string') { - return this.explicitProtocol; + catch (err) { + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); } - return isSecureEndpoint() ? 'https:' : 'http:'; } - set protocol(v) { - this.explicitProtocol = v; - } - callback(req, opts, fn) { - throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); - } - /** - * Called by node-core's "_http_client.js" module when creating - * a new HTTP request with this Agent instance. - * - * @api public - */ - addRequest(req, _opts) { - const opts = Object.assign({}, _opts); - if (typeof opts.secureEndpoint !== 'boolean') { - opts.secureEndpoint = isSecureEndpoint(); - } - if (opts.host == null) { - opts.host = 'localhost'; - } - if (opts.port == null) { - opts.port = opts.secureEndpoint ? 443 : 80; - } - if (opts.protocol == null) { - opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; - } - if (opts.host && opts.path) { - // If both a `host` and `path` are specified then it's most - // likely the result of a `url.parse()` call... we need to - // remove the `path` portion so that `net.connect()` doesn't - // attempt to open that as a unix socket file. - delete opts.path; - } - delete opts.agent; - delete opts.hostname; - delete opts._defaultAgent; - delete opts.defaultPort; - delete opts.createConnection; - // Hint to use "Connection: close" - // XXX: non-documented `http` module API :( - req._last = true; - req.shouldKeepAlive = false; - let timedOut = false; - let timeoutId = null; - const timeoutMs = opts.timeout || this.timeout; - const onerror = (err) => { - if (req._hadError) - return; - req.emit('error', err); - // For Safety. Some additional errors might fire later on - // and we need to make sure we don't double-fire the error event. - req._hadError = true; - }; - const ontimeout = () => { - timeoutId = null; - timedOut = true; - const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`); - err.code = 'ETIMEOUT'; - onerror(err); - }; - const callbackError = (err) => { - if (timedOut) - return; - if (timeoutId !== null) { - clearTimeout(timeoutId); - timeoutId = null; - } - onerror(err); - }; - const onsocket = (socket) => { - if (timedOut) - return; - if (timeoutId != null) { - clearTimeout(timeoutId); - timeoutId = null; - } - if (isAgent(socket)) { - // `socket` is actually an `http.Agent` instance, so - // relinquish responsibility for this `req` to the Agent - // from here on - debug('Callback returned another Agent instance %o', socket.constructor.name); - socket.addRequest(req, opts); - return; - } - if (socket) { - socket.once('free', () => { - this.freeSocket(socket, opts); - }); - req.onSocket(socket); - return; + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // on Windows, test for valid extension + const upperExt = path.extname(filePath).toUpperCase(); + if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) { + return filePath; } - const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``); - onerror(err); - }; - if (typeof this.callback !== 'function') { - onerror(new Error('`callback` is not defined')); - return; } - if (!this.promisifiedCallback) { - if (this.callback.length >= 3) { - debug('Converting legacy callback function to promise'); - this.promisifiedCallback = promisify_1.default(this.callback); - } - else { - this.promisifiedCallback = this.callback; + else { + if (isUnixExecutable(stats)) { + return filePath; } } - if (typeof timeoutMs === 'number' && timeoutMs > 0) { - timeoutId = setTimeout(ontimeout, timeoutMs); - } - if ('port' in opts && typeof opts.port !== 'number') { - opts.port = Number(opts.port); - } + } + // try each extension + const originalFilePath = filePath; + for (const extension of extensions) { + filePath = originalFilePath + extension; + stats = undefined; try { - debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); - Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); + stats = yield exports.stat(filePath); } catch (err) { - Promise.reject(err).catch(callbackError); + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); + } } - } - freeSocket(socket, opts) { - debug('Freeing socket %o %o', socket.constructor.name, opts); - socket.destroy(); - } - destroy() { - debug('Destroying agent %o', this.constructor.name); - } - } - createAgent.Agent = Agent; - // So that `instanceof` works correctly - createAgent.prototype = createAgent.Agent.prototype; -})(createAgent || (createAgent = {})); -module.exports = createAgent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 82635: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -function promisify(fn) { - return function (req, opts) { - return new Promise((resolve, reject) => { - fn.call(this, req, opts, (err, rtn) => { - if (err) { - reject(err); + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // preserve the case of the actual file (since an extension was appended) + try { + const directory = path.dirname(filePath); + const upperName = path.basename(filePath).toUpperCase(); + for (const actualName of yield exports.readdir(directory)) { + if (upperName === actualName.toUpperCase()) { + filePath = path.join(directory, actualName); + break; + } + } + } + catch (err) { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`); + } + return filePath; } else { - resolve(rtn); + if (isUnixExecutable(stats)) { + return filePath; + } } - }); - }); - }; -} -exports["default"] = promisify; -//# sourceMappingURL=promisify.js.map - -/***/ }), - -/***/ 17525: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - - -const AWS = __nccwpck_require__(61210) -const aws4 = __nccwpck_require__(27410) -const axios = __nccwpck_require__(46605) -const { GoogleAuth } = __nccwpck_require__(86885); - -async function getCloudId(acc_type, param) { - if (acc_type === "aws_iam") { - return getAWsCloudId() - } else if (acc_type === "azure_ad") { - return getAzureCloudID(param) - } else if (acc_type === "gcp") { - return getGcpCloudID(param) - } else if (acc_type === "access_key") { - return "" - } else { - throw new Error("Invalid access type") - } -} - -async function getAzureCloudID(object_id) { - const headers = { 'user-agent': 'AKEYLESS', 'Metadata': 'true' } - const params = { 'api-version': '2018-02-01', 'resource': 'https://management.azure.com/', 'object_id': object_id } - - const res = await axios.get('http://169.254.169.254/metadata/identity/oauth2/token', { params, headers }) - - return Buffer.from(res.data.access_token).toString('base64') -} - - -async function getGcpCloudID(audience) { - if (!audience) { - audience = "akeyless.io" - } - - const googleAuth = new GoogleAuth(); - const client = await googleAuth.getClient(); - - const token = await client.fetchIdToken(audience); - const res = Buffer.from(token).toString('base64') - - return res -} - -function getAWsCloudId() { - return new Promise((resolve, reject) => { - AWS.config.getCredentials(function (err) { - if (err) { - reject(err) - } else { - const result = stsGetCallerIdentity(AWS.config.credentials) - resolve(result) } - }) - }) + } + return ''; + }); } - -function stsGetCallerIdentity(creds) { - - const opts3 = { method: 'POST', service: 'sts', body: 'Action=GetCallerIdentity&Version=2011-06-15', region: 'us-east-1' } - opts3.headers = { - "Content-Length": opts3.body.length, - "Content-Type": 'application/x-www-form-urlencoded; charset=utf-8', - } - aws4.sign(opts3, creds) - - const h = { - 'Authorization': [opts3.headers['Authorization']], - 'Content-Length': [opts3.body.length.toString()], - 'Host': [opts3.headers['Host']], - 'Content-Type': [opts3.headers['Content-Type']], - 'X-Amz-Date': [opts3.headers['X-Amz-Date']], - } - if (creds.sessionToken) { - h['X-Amz-Security-Token'] = [creds.sessionToken]; - } - const myheaders = JSON.stringify(h); - - const obj = { - 'sts_request_method': 'POST', - 'sts_request_url': Buffer.from('https://sts.amazonaws.com/').toString('base64'), - 'sts_request_body': Buffer.from('Action=GetCallerIdentity&Version=2011-06-15').toString('base64'), - 'sts_request_headers': Buffer.from(myheaders).toString('base64') - }; - const awsData = JSON.stringify(obj) - return Buffer.from(awsData).toString('base64') +exports.tryGetExecutablePath = tryGetExecutablePath; +function normalizeSeparators(p) { + p = p || ''; + if (exports.IS_WINDOWS) { + // convert slashes on Windows + p = p.replace(/\//g, '\\'); + // remove redundant slashes + return p.replace(/\\\\+/g, '\\'); + } + // remove redundant slashes + return p.replace(/\/\/+/g, '/'); } - - -module.exports = { - getAWsCloudId: getAWsCloudId, - getAzureCloudID: getAzureCloudID, - getGcpCloudID: getGcpCloudID, - getCloudId: getCloudId, +// on Mac/Linux, test the execute bit +// R W X R W X R W X +// 256 128 64 32 16 8 4 2 1 +function isUnixExecutable(stats) { + return ((stats.mode & 1) > 0 || + ((stats.mode & 8) > 0 && stats.gid === process.getgid()) || + ((stats.mode & 64) > 0 && stats.uid === process.getuid())); } - +// Get the path of cmd.exe in windows +function getCmdPath() { + var _a; + return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`; +} +exports.getCmdPath = getCmdPath; +//# sourceMappingURL=io-util.js.map /***/ }), -/***/ 28906: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 61351: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; - -Object.defineProperty(exports, "__esModule", ({ - value: true +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; })); -exports["default"] = void 0; - -var _superagent = _interopRequireDefault(__nccwpck_require__(15699)); - -var _querystring = _interopRequireDefault(__nccwpck_require__(63477)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; +const assert_1 = __nccwpck_require__(42613); +const path = __importStar(__nccwpck_require__(16928)); +const ioUtil = __importStar(__nccwpck_require__(19240)); /** -* @module ApiClient -* @version 3.3.16 -*/ - + * Copies a file or folder. + * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js + * + * @param source source path + * @param dest destination path + * @param options optional. See CopyOptions. + */ +function cp(source, dest, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const { force, recursive, copySourceDirectory } = readCopyOptions(options); + const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; + // Dest is an existing file, but not forcing + if (destStat && destStat.isFile() && !force) { + return; + } + // If dest is an existing directory, should copy inside. + const newDest = destStat && destStat.isDirectory() && copySourceDirectory + ? path.join(dest, path.basename(source)) + : dest; + if (!(yield ioUtil.exists(source))) { + throw new Error(`no such file or directory: ${source}`); + } + const sourceStat = yield ioUtil.stat(source); + if (sourceStat.isDirectory()) { + if (!recursive) { + throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`); + } + else { + yield cpDirRecursive(source, newDest, 0, force); + } + } + else { + if (path.relative(source, newDest) === '') { + // a file cannot be copied to itself + throw new Error(`'${newDest}' and '${source}' are the same file`); + } + yield copyFile(source, newDest, force); + } + }); +} +exports.cp = cp; /** -* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an -* application to use this class directly - the *Api and model classes provide the public API for the service. The -* contents of this file should be regarded as internal but are documented for completeness. -* @alias module:ApiClient -* @class -*/ -var ApiClient = /*#__PURE__*/function () { - function ApiClient() { - _classCallCheck(this, ApiClient); - - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default https://api.akeyless.io - */ - this.basePath = 'https://api.akeyless.io'.replace(/\/+$/, ''); - /** - * The authentication methods to be included for all API calls. - * @type {Array.} - */ - - this.authentications = {}; - /** - * The default HTTP headers to be included for all API calls. - * @type {Array.} - * @default {} - */ - - this.defaultHeaders = {}; - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - - this.timeout = 60000; - /** - * If set to false an additional timestamp parameter is added to all API GET calls to - * prevent browser caching - * @type {Boolean} - * @default true - */ - - this.cache = true; - /** - * If set to true, the client will save the cookies from each server - * response, and return them in the next request. - * @default false - */ - - this.enableCookies = false; - /* - * Used to save and return cookies in a node.js (non-browser) setting, - * if this.enableCookies is set to true. - */ - - if (typeof window === 'undefined') { - this.agent = new _superagent["default"].agent(); - } - /* - * Allow user to override superagent agent - */ - - - this.requestAgent = null; - /* - * Allow user to add superagent plugins - */ - - this.plugins = null; - } - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - - - _createClass(ApiClient, [{ - key: "paramToString", - value: function paramToString(param) { - if (param == undefined || param == null) { - return ''; - } - - if (param instanceof Date) { - return param.toJSON(); - } - - return param.toString(); - } - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @param {String} apiBasePath Base path defined in the path, operation level to override the default one - * @returns {String} The encoded path with parameter values substituted. - */ - - }, { - key: "buildUrl", - value: function buildUrl(path, pathParams, apiBasePath) { - var _this = this; - - if (!path.match(/^\//)) { - path = '/' + path; - } - - var url = this.basePath + path; // use API (operation, path) base path if defined - - if (apiBasePath !== null && apiBasePath !== undefined) { - url = apiBasePath + path; - } - - url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { - var value; - - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; + * Moves a path. + * + * @param source source path + * @param dest destination path + * @param options optional. See MoveOptions. + */ +function mv(source, dest, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + if (yield ioUtil.exists(dest)) { + let destExists = true; + if (yield ioUtil.isDirectory(dest)) { + // If dest is directory copy src into dest + dest = path.join(dest, path.basename(source)); + destExists = yield ioUtil.exists(dest); + } + if (destExists) { + if (options.force == null || options.force) { + yield rmRF(dest); + } + else { + throw new Error('Destination already exists'); + } + } } - - return encodeURIComponent(value); - }); - return url; - } - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- *
    - *
  • application/json
  • - *
  • application/json; charset=UTF8
  • - *
  • APPLICATION/JSON
  • - *
- * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - - }, { - key: "isJsonMime", - value: function isJsonMime(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - } - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - - }, { - key: "jsonPreferredMime", - value: function jsonPreferredMime(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; + yield mkdirP(path.dirname(dest)); + yield ioUtil.rename(source, dest); + }); +} +exports.mv = mv; +/** + * Remove a path recursively with force + * + * @param inputPath path to remove + */ +function rmRF(inputPath) { + return __awaiter(this, void 0, void 0, function* () { + if (ioUtil.IS_WINDOWS) { + // Check for invalid characters + // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file + if (/[*"<>|]/.test(inputPath)) { + throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows'); + } } - } - - return contentTypes[0]; - } - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - - }, { - key: "isFileParam", - value: function isFileParam(param) { - // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) - if (true) { - var fs; - try { - fs = __nccwpck_require__(57147); - } catch (err) {} - - if (fs && fs.ReadStream && param instanceof fs.ReadStream) { - return true; + // note if path does not exist, error is silent + yield ioUtil.rm(inputPath, { + force: true, + maxRetries: 3, + recursive: true, + retryDelay: 300 + }); } - } // Buffer in Node.js - - - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } // Blob in browser - - - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } // File in browser (it seems File object is also instance of Blob, but keep this for safe) - - - if (typeof File === 'function' && param instanceof File) { - return true; - } - - return false; - } - /** - * Normalizes parameter values: - *
    - *
  • remove nils
  • - *
  • keep files and arrays
  • - *
  • format to string with `paramToString` for other cases
  • - *
- * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - - }, { - key: "normalizeParams", - value: function normalizeParams(params) { - var newParams = {}; - - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } + catch (err) { + throw new Error(`File was unable to be removed ${err}`); } - } - - return newParams; - } - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - - }, { - key: "buildCollectionParam", - value: function buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - - case 'ssv': - return param.map(this.paramToString).join(' '); - - case 'tsv': - return param.map(this.paramToString).join('\t'); - - case 'pipes': - return param.map(this.paramToString).join('|'); - - case 'multi': - //return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - } - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - - }, { - key: "applyAuthToRequest", - value: function applyAuthToRequest(request, authNames) { - var _this2 = this; - - authNames.forEach(function (authName) { - var auth = _this2.authentications[authName]; - - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); + }); +} +exports.rmRF = rmRF; +/** + * Make a directory. Creates the full path with folders in between + * Will throw if it fails + * + * @param fsPath path to create + * @returns Promise + */ +function mkdirP(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + assert_1.ok(fsPath, 'a path argument must be provided'); + yield ioUtil.mkdir(fsPath, { recursive: true }); + }); +} +exports.mkdirP = mkdirP; +/** + * Returns path of a tool had the tool actually been invoked. Resolves via paths. + * If you check and the tool does not exist, it will throw. + * + * @param tool name of the tool + * @param check whether to check if tool exists + * @returns Promise path to tool + */ +function which(tool, check) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // recursive when check=true + if (check) { + const result = yield which(tool, false); + if (!result) { + if (ioUtil.IS_WINDOWS) { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`); + } + else { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`); + } } - - break; - - case 'bearer': - if (auth.accessToken) { - request.set({ - 'Authorization': 'Bearer ' + auth.accessToken - }); + return result; + } + const matches = yield findInPath(tool); + if (matches && matches.length > 0) { + return matches[0]; + } + return ''; + }); +} +exports.which = which; +/** + * Returns a list of all occurrences of the given tool on the system path. + * + * @returns Promise the paths of the tool + */ +function findInPath(tool) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // build the list of extensions to try + const extensions = []; + if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) { + for (const extension of process.env['PATHEXT'].split(path.delimiter)) { + if (extension) { + extensions.push(extension); + } } - - break; - - case 'apiKey': - if (auth.apiKey) { - var data = {}; - - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } + } + // if it's rooted, return it if exists. otherwise return empty. + if (ioUtil.isRooted(tool)) { + const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions); + if (filePath) { + return [filePath]; } - - break; - - case 'oauth2': - if (auth.accessToken) { - request.set({ - 'Authorization': 'Bearer ' + auth.accessToken - }); + return []; + } + // if any path separators, return empty + if (tool.includes(path.sep)) { + return []; + } + // build the list of directories + // + // Note, technically "where" checks the current directory on Windows. From a toolkit perspective, + // it feels like we should not do this. Checking the current directory seems like more of a use + // case of a shell, and the which() function exposed by the toolkit should strive for consistency + // across platforms. + const directories = []; + if (process.env.PATH) { + for (const p of process.env.PATH.split(path.delimiter)) { + if (p) { + directories.push(p); + } } - - break; - - default: - throw new Error('Unknown authentication type: ' + auth.type); } - }); - } - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - - }, { - key: "deserialize", - value: function deserialize(response, returnType) { - if (response == null || returnType == null || response.status == 204) { - return null; - } // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - - - var data = response.body; - - if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - - return ApiClient.convertToType(data, returnType); - } - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. - * @param {String} apiBasePath base path defined in the operation/path level to override the default one - * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. - */ - - }, { - key: "callApi", - value: function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, apiBasePath) { - var _this3 = this; - - var url = this.buildUrl(path, pathParams, apiBasePath); - var request = (0, _superagent["default"])(httpMethod, url); - - if (this.plugins !== null) { - for (var index in this.plugins) { - if (this.plugins.hasOwnProperty(index)) { - request.use(this.plugins[index]); - } + // find all matches + const matches = []; + for (const directory of directories) { + const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions); + if (filePath) { + matches.push(filePath); + } } - } // apply authentications - - - this.applyAuthToRequest(request, authNames); // set query parameters - - if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); - } - - request.query(this.normalizeParams(queryParams)); // set header parameters - - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set requestAgent if it is set by user - - if (this.requestAgent) { - request.agent(this.requestAgent); - } // set request timeout - - - request.timeout(this.timeout); - var contentType = this.jsonPreferredMime(contentTypes); - - if (contentType) { - // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if (contentType != 'multipart/form-data') { - request.type(contentType); + return matches; + }); +} +exports.findInPath = findInPath; +function readCopyOptions(options) { + const force = options.force == null ? true : options.force; + const recursive = Boolean(options.recursive); + const copySourceDirectory = options.copySourceDirectory == null + ? true + : Boolean(options.copySourceDirectory); + return { force, recursive, copySourceDirectory }; +} +function cpDirRecursive(sourceDir, destDir, currentDepth, force) { + return __awaiter(this, void 0, void 0, function* () { + // Ensure there is not a run away recursive copy + if (currentDepth >= 255) + return; + currentDepth++; + yield mkdirP(destDir); + const files = yield ioUtil.readdir(sourceDir); + for (const fileName of files) { + const srcFile = `${sourceDir}/${fileName}`; + const destFile = `${destDir}/${fileName}`; + const srcFileStat = yield ioUtil.lstat(srcFile); + if (srcFileStat.isDirectory()) { + // Recurse + yield cpDirRecursive(srcFile, destFile, currentDepth, force); + } + else { + yield copyFile(srcFile, destFile, force); + } } - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(_querystring["default"].stringify(this.normalizeParams(formParams))); - } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); + // Change the mode for the newly created directory + yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode); + }); +} +// Buffered file copy +function copyFile(srcFile, destFile, force) { + return __awaiter(this, void 0, void 0, function* () { + if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { + // unlink/re-link it + try { + yield ioUtil.lstat(destFile); + yield ioUtil.unlink(destFile); } - } + catch (e) { + // Try to override file permission + if (e.code === 'EPERM') { + yield ioUtil.chmod(destFile, '0666'); + yield ioUtil.unlink(destFile); + } + // other errors = it doesn't exist, no work to do + } + // Copy over symlink + const symlinkFull = yield ioUtil.readlink(srcFile); + yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null); } - } else if (bodyParam !== null && bodyParam !== undefined) { - if (!request.header['Content-Type']) { - request.type('application/json'); + else if (!(yield ioUtil.exists(destFile)) || force) { + yield ioUtil.copyFile(srcFile, destFile); } + }); +} +//# sourceMappingURL=io.js.map - request.send(bodyParam); - } - - var accept = this.jsonPreferredMime(accepts); - - if (accept) { - request.accept(accept); - } - - if (returnType === 'Blob') { - request.responseType('blob'); - } else if (returnType === 'String') { - request.responseType('string'); - } // Attach previously saved cookies, if enabled - - - if (this.enableCookies) { - if (typeof window === 'undefined') { - this.agent._attachCookies(request); - } else { - request.withCredentials(); - } - } +/***/ }), - return new Promise(function (resolve, reject) { - request.end(function (error, response) { - if (error) { - var err = {}; +/***/ 65653: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - if (response) { - err.status = response.status; - err.statusText = response.statusText; - err.body = response.body; - err.response = response; - } +/* module decorator */ module = __nccwpck_require__.nmd(module); +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. - err.error = error; - reject(err); - } else { - try { - var data = _this3.deserialize(response, returnType); +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ - if (_this3.enableCookies && typeof window === 'undefined') { - _this3.agent._saveCookies(response); - } + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); - resolve({ - data: data, - response: response - }); - } catch (err) { - reject(err); - } - } - }); - }); - } - /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ + /* CommonJS */ else if ( true && module && module.exports) + module.exports = factory((__nccwpck_require__(32766).protobufMinimal)); - }, { - key: "hostSettings", +})(this, function($protobuf) { + "use strict"; - /** - * Gets an array of host settings - * @returns An array of host settings - */ - value: function hostSettings() { - return [{ - 'url': "https://api.akeyless.io/", - 'description': "No description provided" - }]; - } - }, { - key: "getBasePathFromSettings", - value: function getBasePathFromSettings(index) { - var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var servers = this.hostSettings(); // check array index out of bound + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots._google_cloud_iam_credentials_protos || ($protobuf.roots._google_cloud_iam_credentials_protos = {}); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.iam = (function() { + + /** + * Namespace iam. + * @memberof google + * @namespace + */ + var iam = {}; + + iam.credentials = (function() { + + /** + * Namespace credentials. + * @memberof google.iam + * @namespace + */ + var credentials = {}; + + credentials.v1 = (function() { + + /** + * Namespace v1. + * @memberof google.iam.credentials + * @namespace + */ + var v1 = {}; + + v1.GenerateAccessTokenRequest = (function() { + + /** + * Properties of a GenerateAccessTokenRequest. + * @memberof google.iam.credentials.v1 + * @interface IGenerateAccessTokenRequest + * @property {string|null} [name] GenerateAccessTokenRequest name + * @property {Array.|null} [delegates] GenerateAccessTokenRequest delegates + * @property {Array.|null} [scope] GenerateAccessTokenRequest scope + * @property {google.protobuf.IDuration|null} [lifetime] GenerateAccessTokenRequest lifetime + */ + + /** + * Constructs a new GenerateAccessTokenRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateAccessTokenRequest. + * @implements IGenerateAccessTokenRequest + * @constructor + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest=} [properties] Properties to set + */ + function GenerateAccessTokenRequest(properties) { + this.delegates = []; + this.scope = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateAccessTokenRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.name = ""; + + /** + * GenerateAccessTokenRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.delegates = $util.emptyArray; + + /** + * GenerateAccessTokenRequest scope. + * @member {Array.} scope + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.scope = $util.emptyArray; + + /** + * GenerateAccessTokenRequest lifetime. + * @member {google.protobuf.IDuration|null|undefined} lifetime + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.lifetime = null; + + /** + * Creates a new GenerateAccessTokenRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest instance + */ + GenerateAccessTokenRequest.create = function create(properties) { + return new GenerateAccessTokenRequest(properties); + }; + + /** + * Encodes the specified GenerateAccessTokenRequest message. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} message GenerateAccessTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenRequest.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.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.delegates[i]); + if (message.scope != null && message.scope.length) + for (var i = 0; i < message.scope.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.scope[i]); + if (message.lifetime != null && Object.hasOwnProperty.call(message, "lifetime")) + $root.google.protobuf.Duration.encode(message.lifetime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GenerateAccessTokenRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} message GenerateAccessTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateAccessTokenRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateAccessTokenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 4: { + if (!(message.scope && message.scope.length)) + message.scope = []; + message.scope.push(reader.string()); + break; + } + case 7: { + message.lifetime = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateAccessTokenRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateAccessTokenRequest message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateAccessTokenRequest.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.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.scope != null && message.hasOwnProperty("scope")) { + if (!Array.isArray(message.scope)) + return "scope: array expected"; + for (var i = 0; i < message.scope.length; ++i) + if (!$util.isString(message.scope[i])) + return "scope: string[] expected"; + } + if (message.lifetime != null && message.hasOwnProperty("lifetime")) { + var error = $root.google.protobuf.Duration.verify(message.lifetime); + if (error) + return "lifetime." + error; + } + return null; + }; + + /** + * Creates a GenerateAccessTokenRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest + */ + GenerateAccessTokenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateAccessTokenRequest) + return object; + var message = new $root.google.iam.credentials.v1.GenerateAccessTokenRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + if (object.scope) { + if (!Array.isArray(object.scope)) + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.scope: array expected"); + message.scope = []; + for (var i = 0; i < object.scope.length; ++i) + message.scope[i] = String(object.scope[i]); + } + if (object.lifetime != null) { + if (typeof object.lifetime !== "object") + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.lifetime: object expected"); + message.lifetime = $root.google.protobuf.Duration.fromObject(object.lifetime); + } + return message; + }; + + /** + * Creates a plain object from a GenerateAccessTokenRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.GenerateAccessTokenRequest} message GenerateAccessTokenRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateAccessTokenRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.delegates = []; + object.scope = []; + } + if (options.defaults) { + object.name = ""; + object.lifetime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + if (message.scope && message.scope.length) { + object.scope = []; + for (var j = 0; j < message.scope.length; ++j) + object.scope[j] = message.scope[j]; + } + if (message.lifetime != null && message.hasOwnProperty("lifetime")) + object.lifetime = $root.google.protobuf.Duration.toObject(message.lifetime, options); + return object; + }; + + /** + * Converts this GenerateAccessTokenRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + * @returns {Object.} JSON object + */ + GenerateAccessTokenRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateAccessTokenRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateAccessTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateAccessTokenRequest"; + }; + + return GenerateAccessTokenRequest; + })(); + + v1.GenerateAccessTokenResponse = (function() { + + /** + * Properties of a GenerateAccessTokenResponse. + * @memberof google.iam.credentials.v1 + * @interface IGenerateAccessTokenResponse + * @property {string|null} [accessToken] GenerateAccessTokenResponse accessToken + * @property {google.protobuf.ITimestamp|null} [expireTime] GenerateAccessTokenResponse expireTime + */ + + /** + * Constructs a new GenerateAccessTokenResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateAccessTokenResponse. + * @implements IGenerateAccessTokenResponse + * @constructor + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse=} [properties] Properties to set + */ + function GenerateAccessTokenResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateAccessTokenResponse accessToken. + * @member {string} accessToken + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @instance + */ + GenerateAccessTokenResponse.prototype.accessToken = ""; + + /** + * GenerateAccessTokenResponse expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @instance + */ + GenerateAccessTokenResponse.prototype.expireTime = null; + + /** + * Creates a new GenerateAccessTokenResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse instance + */ + GenerateAccessTokenResponse.create = function create(properties) { + return new GenerateAccessTokenResponse(properties); + }; + + /** + * Encodes the specified GenerateAccessTokenResponse message. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse} message GenerateAccessTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accessToken != null && Object.hasOwnProperty.call(message, "accessToken")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessToken); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GenerateAccessTokenResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse} message GenerateAccessTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateAccessTokenResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateAccessTokenResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.accessToken = reader.string(); + break; + } + case 3: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateAccessTokenResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateAccessTokenResponse message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateAccessTokenResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.accessToken != null && message.hasOwnProperty("accessToken")) + if (!$util.isString(message.accessToken)) + return "accessToken: string expected"; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + return null; + }; + + /** + * Creates a GenerateAccessTokenResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse + */ + GenerateAccessTokenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateAccessTokenResponse) + return object; + var message = new $root.google.iam.credentials.v1.GenerateAccessTokenResponse(); + if (object.accessToken != null) + message.accessToken = String(object.accessToken); + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenResponse.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + return message; + }; + + /** + * Creates a plain object from a GenerateAccessTokenResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.GenerateAccessTokenResponse} message GenerateAccessTokenResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateAccessTokenResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.accessToken = ""; + object.expireTime = null; + } + if (message.accessToken != null && message.hasOwnProperty("accessToken")) + object.accessToken = message.accessToken; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + return object; + }; + + /** + * Converts this GenerateAccessTokenResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @instance + * @returns {Object.} JSON object + */ + GenerateAccessTokenResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateAccessTokenResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateAccessTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateAccessTokenResponse"; + }; + + return GenerateAccessTokenResponse; + })(); + + v1.SignBlobRequest = (function() { + + /** + * Properties of a SignBlobRequest. + * @memberof google.iam.credentials.v1 + * @interface ISignBlobRequest + * @property {string|null} [name] SignBlobRequest name + * @property {Array.|null} [delegates] SignBlobRequest delegates + * @property {Uint8Array|null} [payload] SignBlobRequest payload + */ + + /** + * Constructs a new SignBlobRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignBlobRequest. + * @implements ISignBlobRequest + * @constructor + * @param {google.iam.credentials.v1.ISignBlobRequest=} [properties] Properties to set + */ + function SignBlobRequest(properties) { + this.delegates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignBlobRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + */ + SignBlobRequest.prototype.name = ""; + + /** + * SignBlobRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + */ + SignBlobRequest.prototype.delegates = $util.emptyArray; + + /** + * SignBlobRequest payload. + * @member {Uint8Array} payload + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + */ + SignBlobRequest.prototype.payload = $util.newBuffer([]); + + /** + * Creates a new SignBlobRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.ISignBlobRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest instance + */ + SignBlobRequest.create = function create(properties) { + return new SignBlobRequest(properties); + }; + + /** + * Encodes the specified SignBlobRequest message. Does not implicitly {@link google.iam.credentials.v1.SignBlobRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.ISignBlobRequest} message SignBlobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobRequest.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.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.delegates[i]); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.payload); + return writer; + }; + + /** + * Encodes the specified SignBlobRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignBlobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.ISignBlobRequest} message SignBlobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignBlobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignBlobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 5: { + message.payload = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignBlobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignBlobRequest message. + * @function verify + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignBlobRequest.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.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.payload != null && message.hasOwnProperty("payload")) + if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) + return "payload: buffer expected"; + return null; + }; + + /** + * Creates a SignBlobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest + */ + SignBlobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignBlobRequest) + return object; + var message = new $root.google.iam.credentials.v1.SignBlobRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.SignBlobRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + 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; + return message; + }; + + /** + * Creates a plain object from a SignBlobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.SignBlobRequest} message SignBlobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignBlobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.delegates = []; + if (options.defaults) { + object.name = ""; + if (options.bytes === String) + object.payload = ""; + else { + object.payload = []; + if (options.bytes !== Array) + object.payload = $util.newBuffer(object.payload); + } + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + 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; + return object; + }; + + /** + * Converts this SignBlobRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + * @returns {Object.} JSON object + */ + SignBlobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignBlobRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignBlobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignBlobRequest"; + }; + + return SignBlobRequest; + })(); + + v1.SignBlobResponse = (function() { + + /** + * Properties of a SignBlobResponse. + * @memberof google.iam.credentials.v1 + * @interface ISignBlobResponse + * @property {string|null} [keyId] SignBlobResponse keyId + * @property {Uint8Array|null} [signedBlob] SignBlobResponse signedBlob + */ + + /** + * Constructs a new SignBlobResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignBlobResponse. + * @implements ISignBlobResponse + * @constructor + * @param {google.iam.credentials.v1.ISignBlobResponse=} [properties] Properties to set + */ + function SignBlobResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignBlobResponse keyId. + * @member {string} keyId + * @memberof google.iam.credentials.v1.SignBlobResponse + * @instance + */ + SignBlobResponse.prototype.keyId = ""; + + /** + * SignBlobResponse signedBlob. + * @member {Uint8Array} signedBlob + * @memberof google.iam.credentials.v1.SignBlobResponse + * @instance + */ + SignBlobResponse.prototype.signedBlob = $util.newBuffer([]); + + /** + * Creates a new SignBlobResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.ISignBlobResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse instance + */ + SignBlobResponse.create = function create(properties) { + return new SignBlobResponse(properties); + }; + + /** + * Encodes the specified SignBlobResponse message. Does not implicitly {@link google.iam.credentials.v1.SignBlobResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.ISignBlobResponse} message SignBlobResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyId); + if (message.signedBlob != null && Object.hasOwnProperty.call(message, "signedBlob")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signedBlob); + return writer; + }; + + /** + * Encodes the specified SignBlobResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignBlobResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.ISignBlobResponse} message SignBlobResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignBlobResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignBlobResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyId = reader.string(); + break; + } + case 4: { + message.signedBlob = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignBlobResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignBlobResponse message. + * @function verify + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignBlobResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyId != null && message.hasOwnProperty("keyId")) + if (!$util.isString(message.keyId)) + return "keyId: string expected"; + if (message.signedBlob != null && message.hasOwnProperty("signedBlob")) + if (!(message.signedBlob && typeof message.signedBlob.length === "number" || $util.isString(message.signedBlob))) + return "signedBlob: buffer expected"; + return null; + }; + + /** + * Creates a SignBlobResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse + */ + SignBlobResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignBlobResponse) + return object; + var message = new $root.google.iam.credentials.v1.SignBlobResponse(); + if (object.keyId != null) + message.keyId = String(object.keyId); + if (object.signedBlob != null) + if (typeof object.signedBlob === "string") + $util.base64.decode(object.signedBlob, message.signedBlob = $util.newBuffer($util.base64.length(object.signedBlob)), 0); + else if (object.signedBlob.length >= 0) + message.signedBlob = object.signedBlob; + return message; + }; + + /** + * Creates a plain object from a SignBlobResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.SignBlobResponse} message SignBlobResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignBlobResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyId = ""; + if (options.bytes === String) + object.signedBlob = ""; + else { + object.signedBlob = []; + if (options.bytes !== Array) + object.signedBlob = $util.newBuffer(object.signedBlob); + } + } + if (message.keyId != null && message.hasOwnProperty("keyId")) + object.keyId = message.keyId; + if (message.signedBlob != null && message.hasOwnProperty("signedBlob")) + object.signedBlob = options.bytes === String ? $util.base64.encode(message.signedBlob, 0, message.signedBlob.length) : options.bytes === Array ? Array.prototype.slice.call(message.signedBlob) : message.signedBlob; + return object; + }; + + /** + * Converts this SignBlobResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignBlobResponse + * @instance + * @returns {Object.} JSON object + */ + SignBlobResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignBlobResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignBlobResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignBlobResponse"; + }; + + return SignBlobResponse; + })(); + + v1.SignJwtRequest = (function() { + + /** + * Properties of a SignJwtRequest. + * @memberof google.iam.credentials.v1 + * @interface ISignJwtRequest + * @property {string|null} [name] SignJwtRequest name + * @property {Array.|null} [delegates] SignJwtRequest delegates + * @property {string|null} [payload] SignJwtRequest payload + */ + + /** + * Constructs a new SignJwtRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignJwtRequest. + * @implements ISignJwtRequest + * @constructor + * @param {google.iam.credentials.v1.ISignJwtRequest=} [properties] Properties to set + */ + function SignJwtRequest(properties) { + this.delegates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignJwtRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + */ + SignJwtRequest.prototype.name = ""; + + /** + * SignJwtRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + */ + SignJwtRequest.prototype.delegates = $util.emptyArray; + + /** + * SignJwtRequest payload. + * @member {string} payload + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + */ + SignJwtRequest.prototype.payload = ""; + + /** + * Creates a new SignJwtRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.ISignJwtRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest instance + */ + SignJwtRequest.create = function create(properties) { + return new SignJwtRequest(properties); + }; + + /** + * Encodes the specified SignJwtRequest message. Does not implicitly {@link google.iam.credentials.v1.SignJwtRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.ISignJwtRequest} message SignJwtRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtRequest.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.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.delegates[i]); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.payload); + return writer; + }; + + /** + * Encodes the specified SignJwtRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignJwtRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.ISignJwtRequest} message SignJwtRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignJwtRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignJwtRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 5: { + message.payload = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignJwtRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignJwtRequest message. + * @function verify + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignJwtRequest.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.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.payload != null && message.hasOwnProperty("payload")) + if (!$util.isString(message.payload)) + return "payload: string expected"; + return null; + }; + + /** + * Creates a SignJwtRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest + */ + SignJwtRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignJwtRequest) + return object; + var message = new $root.google.iam.credentials.v1.SignJwtRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.SignJwtRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + if (object.payload != null) + message.payload = String(object.payload); + return message; + }; + + /** + * Creates a plain object from a SignJwtRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.SignJwtRequest} message SignJwtRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignJwtRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.delegates = []; + if (options.defaults) { + object.name = ""; + object.payload = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = message.payload; + return object; + }; + + /** + * Converts this SignJwtRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + * @returns {Object.} JSON object + */ + SignJwtRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignJwtRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignJwtRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignJwtRequest"; + }; + + return SignJwtRequest; + })(); + + v1.SignJwtResponse = (function() { + + /** + * Properties of a SignJwtResponse. + * @memberof google.iam.credentials.v1 + * @interface ISignJwtResponse + * @property {string|null} [keyId] SignJwtResponse keyId + * @property {string|null} [signedJwt] SignJwtResponse signedJwt + */ + + /** + * Constructs a new SignJwtResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignJwtResponse. + * @implements ISignJwtResponse + * @constructor + * @param {google.iam.credentials.v1.ISignJwtResponse=} [properties] Properties to set + */ + function SignJwtResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignJwtResponse keyId. + * @member {string} keyId + * @memberof google.iam.credentials.v1.SignJwtResponse + * @instance + */ + SignJwtResponse.prototype.keyId = ""; + + /** + * SignJwtResponse signedJwt. + * @member {string} signedJwt + * @memberof google.iam.credentials.v1.SignJwtResponse + * @instance + */ + SignJwtResponse.prototype.signedJwt = ""; + + /** + * Creates a new SignJwtResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.ISignJwtResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse instance + */ + SignJwtResponse.create = function create(properties) { + return new SignJwtResponse(properties); + }; + + /** + * Encodes the specified SignJwtResponse message. Does not implicitly {@link google.iam.credentials.v1.SignJwtResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.ISignJwtResponse} message SignJwtResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyId); + if (message.signedJwt != null && Object.hasOwnProperty.call(message, "signedJwt")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.signedJwt); + return writer; + }; + + /** + * Encodes the specified SignJwtResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignJwtResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.ISignJwtResponse} message SignJwtResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignJwtResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignJwtResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyId = reader.string(); + break; + } + case 2: { + message.signedJwt = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignJwtResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignJwtResponse message. + * @function verify + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignJwtResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyId != null && message.hasOwnProperty("keyId")) + if (!$util.isString(message.keyId)) + return "keyId: string expected"; + if (message.signedJwt != null && message.hasOwnProperty("signedJwt")) + if (!$util.isString(message.signedJwt)) + return "signedJwt: string expected"; + return null; + }; + + /** + * Creates a SignJwtResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse + */ + SignJwtResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignJwtResponse) + return object; + var message = new $root.google.iam.credentials.v1.SignJwtResponse(); + if (object.keyId != null) + message.keyId = String(object.keyId); + if (object.signedJwt != null) + message.signedJwt = String(object.signedJwt); + return message; + }; + + /** + * Creates a plain object from a SignJwtResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.SignJwtResponse} message SignJwtResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignJwtResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyId = ""; + object.signedJwt = ""; + } + if (message.keyId != null && message.hasOwnProperty("keyId")) + object.keyId = message.keyId; + if (message.signedJwt != null && message.hasOwnProperty("signedJwt")) + object.signedJwt = message.signedJwt; + return object; + }; + + /** + * Converts this SignJwtResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignJwtResponse + * @instance + * @returns {Object.} JSON object + */ + SignJwtResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignJwtResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignJwtResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignJwtResponse"; + }; + + return SignJwtResponse; + })(); + + v1.GenerateIdTokenRequest = (function() { + + /** + * Properties of a GenerateIdTokenRequest. + * @memberof google.iam.credentials.v1 + * @interface IGenerateIdTokenRequest + * @property {string|null} [name] GenerateIdTokenRequest name + * @property {Array.|null} [delegates] GenerateIdTokenRequest delegates + * @property {string|null} [audience] GenerateIdTokenRequest audience + * @property {boolean|null} [includeEmail] GenerateIdTokenRequest includeEmail + */ + + /** + * Constructs a new GenerateIdTokenRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateIdTokenRequest. + * @implements IGenerateIdTokenRequest + * @constructor + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest=} [properties] Properties to set + */ + function GenerateIdTokenRequest(properties) { + this.delegates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateIdTokenRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.name = ""; + + /** + * GenerateIdTokenRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.delegates = $util.emptyArray; + + /** + * GenerateIdTokenRequest audience. + * @member {string} audience + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.audience = ""; + + /** + * GenerateIdTokenRequest includeEmail. + * @member {boolean} includeEmail + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.includeEmail = false; + + /** + * Creates a new GenerateIdTokenRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest instance + */ + GenerateIdTokenRequest.create = function create(properties) { + return new GenerateIdTokenRequest(properties); + }; + + /** + * Encodes the specified GenerateIdTokenRequest message. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} message GenerateIdTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenRequest.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.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.delegates[i]); + if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.audience); + if (message.includeEmail != null && Object.hasOwnProperty.call(message, "includeEmail")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeEmail); + return writer; + }; + + /** + * Encodes the specified GenerateIdTokenRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} message GenerateIdTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateIdTokenRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateIdTokenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 3: { + message.audience = reader.string(); + break; + } + case 4: { + message.includeEmail = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateIdTokenRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateIdTokenRequest message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateIdTokenRequest.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.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.audience != null && message.hasOwnProperty("audience")) + if (!$util.isString(message.audience)) + return "audience: string expected"; + if (message.includeEmail != null && message.hasOwnProperty("includeEmail")) + if (typeof message.includeEmail !== "boolean") + return "includeEmail: boolean expected"; + return null; + }; + + /** + * Creates a GenerateIdTokenRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest + */ + GenerateIdTokenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateIdTokenRequest) + return object; + var message = new $root.google.iam.credentials.v1.GenerateIdTokenRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.GenerateIdTokenRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + if (object.audience != null) + message.audience = String(object.audience); + if (object.includeEmail != null) + message.includeEmail = Boolean(object.includeEmail); + return message; + }; + + /** + * Creates a plain object from a GenerateIdTokenRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.GenerateIdTokenRequest} message GenerateIdTokenRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateIdTokenRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.delegates = []; + if (options.defaults) { + object.name = ""; + object.audience = ""; + object.includeEmail = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + if (message.audience != null && message.hasOwnProperty("audience")) + object.audience = message.audience; + if (message.includeEmail != null && message.hasOwnProperty("includeEmail")) + object.includeEmail = message.includeEmail; + return object; + }; + + /** + * Converts this GenerateIdTokenRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + * @returns {Object.} JSON object + */ + GenerateIdTokenRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateIdTokenRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateIdTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateIdTokenRequest"; + }; + + return GenerateIdTokenRequest; + })(); + + v1.GenerateIdTokenResponse = (function() { + + /** + * Properties of a GenerateIdTokenResponse. + * @memberof google.iam.credentials.v1 + * @interface IGenerateIdTokenResponse + * @property {string|null} [token] GenerateIdTokenResponse token + */ + + /** + * Constructs a new GenerateIdTokenResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateIdTokenResponse. + * @implements IGenerateIdTokenResponse + * @constructor + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse=} [properties] Properties to set + */ + function GenerateIdTokenResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateIdTokenResponse token. + * @member {string} token + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @instance + */ + GenerateIdTokenResponse.prototype.token = ""; + + /** + * Creates a new GenerateIdTokenResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse instance + */ + GenerateIdTokenResponse.create = function create(properties) { + return new GenerateIdTokenResponse(properties); + }; + + /** + * Encodes the specified GenerateIdTokenResponse message. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse} message GenerateIdTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenResponse.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).string(message.token); + return writer; + }; + + /** + * Encodes the specified GenerateIdTokenResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse} message GenerateIdTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateIdTokenResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateIdTokenResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.token = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateIdTokenResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateIdTokenResponse message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateIdTokenResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + /** + * Creates a GenerateIdTokenResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse + */ + GenerateIdTokenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateIdTokenResponse) + return object; + var message = new $root.google.iam.credentials.v1.GenerateIdTokenResponse(); + if (object.token != null) + message.token = String(object.token); + return message; + }; + + /** + * Creates a plain object from a GenerateIdTokenResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.GenerateIdTokenResponse} message GenerateIdTokenResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateIdTokenResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.token = ""; + if (message.token != null && message.hasOwnProperty("token")) + object.token = message.token; + return object; + }; + + /** + * Converts this GenerateIdTokenResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @instance + * @returns {Object.} JSON object + */ + GenerateIdTokenResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateIdTokenResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateIdTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateIdTokenResponse"; + }; + + return GenerateIdTokenResponse; + })(); + + v1.IAMCredentials = (function() { + + /** + * Constructs a new IAMCredentials service. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a IAMCredentials + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IAMCredentials(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IAMCredentials.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IAMCredentials; + + /** + * Creates new IAMCredentials service using the specified rpc implementation. + * @function create + * @memberof google.iam.credentials.v1.IAMCredentials + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IAMCredentials} RPC service. Useful where requests and/or responses are streamed. + */ + IAMCredentials.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|generateAccessToken}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef GenerateAccessTokenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.GenerateAccessTokenResponse} [response] GenerateAccessTokenResponse + */ + + /** + * Calls GenerateAccessToken. + * @function generateAccessToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} request GenerateAccessTokenRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.GenerateAccessTokenCallback} callback Node-style callback called with the error, if any, and GenerateAccessTokenResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.generateAccessToken = function generateAccessToken(request, callback) { + return this.rpcCall(generateAccessToken, $root.google.iam.credentials.v1.GenerateAccessTokenRequest, $root.google.iam.credentials.v1.GenerateAccessTokenResponse, request, callback); + }, "name", { value: "GenerateAccessToken" }); + + /** + * Calls GenerateAccessToken. + * @function generateAccessToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} request GenerateAccessTokenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|generateIdToken}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef GenerateIdTokenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.GenerateIdTokenResponse} [response] GenerateIdTokenResponse + */ + + /** + * Calls GenerateIdToken. + * @function generateIdToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} request GenerateIdTokenRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.GenerateIdTokenCallback} callback Node-style callback called with the error, if any, and GenerateIdTokenResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.generateIdToken = function generateIdToken(request, callback) { + return this.rpcCall(generateIdToken, $root.google.iam.credentials.v1.GenerateIdTokenRequest, $root.google.iam.credentials.v1.GenerateIdTokenResponse, request, callback); + }, "name", { value: "GenerateIdToken" }); + + /** + * Calls GenerateIdToken. + * @function generateIdToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} request GenerateIdTokenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|signBlob}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef SignBlobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.SignBlobResponse} [response] SignBlobResponse + */ + + /** + * Calls SignBlob. + * @function signBlob + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignBlobRequest} request SignBlobRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.SignBlobCallback} callback Node-style callback called with the error, if any, and SignBlobResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.signBlob = function signBlob(request, callback) { + return this.rpcCall(signBlob, $root.google.iam.credentials.v1.SignBlobRequest, $root.google.iam.credentials.v1.SignBlobResponse, request, callback); + }, "name", { value: "SignBlob" }); + + /** + * Calls SignBlob. + * @function signBlob + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignBlobRequest} request SignBlobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|signJwt}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef SignJwtCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.SignJwtResponse} [response] SignJwtResponse + */ + + /** + * Calls SignJwt. + * @function signJwt + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignJwtRequest} request SignJwtRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.SignJwtCallback} callback Node-style callback called with the error, if any, and SignJwtResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.signJwt = function signJwt(request, callback) { + return this.rpcCall(signJwt, $root.google.iam.credentials.v1.SignJwtRequest, $root.google.iam.credentials.v1.SignJwtResponse, request, callback); + }, "name", { value: "SignJwt" }); + + /** + * Calls SignJwt. + * @function signJwt + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignJwtRequest} request SignJwtRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IAMCredentials; + })(); + + return v1; + })(); + + return credentials; + })(); + + return iam; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + * @property {number} IDENTIFIER=8 IDENTIFIER value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + values[valuesById[8] = "IDENTIFIER"] = 8; + return values; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.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.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.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.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.pattern = []; + object.style = []; + } + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.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.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.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.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + + return ResourceReference; + })(); + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + + return CustomHttpPattern; + })(); + + api.CommonLanguageSettings = (function() { + + /** + * Properties of a CommonLanguageSettings. + * @memberof google.api + * @interface ICommonLanguageSettings + * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri + * @property {Array.|null} [destinations] CommonLanguageSettings destinations + */ + + /** + * Constructs a new CommonLanguageSettings. + * @memberof google.api + * @classdesc Represents a CommonLanguageSettings. + * @implements ICommonLanguageSettings + * @constructor + * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set + */ + function CommonLanguageSettings(properties) { + this.destinations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CommonLanguageSettings referenceDocsUri. + * @member {string} referenceDocsUri + * @memberof google.api.CommonLanguageSettings + * @instance + */ + CommonLanguageSettings.prototype.referenceDocsUri = ""; + + /** + * CommonLanguageSettings destinations. + * @member {Array.} destinations + * @memberof google.api.CommonLanguageSettings + * @instance + */ + CommonLanguageSettings.prototype.destinations = $util.emptyArray; + + /** + * Creates a new CommonLanguageSettings instance using the specified properties. + * @function create + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance + */ + CommonLanguageSettings.create = function create(properties) { + return new CommonLanguageSettings(properties); + }; + + /** + * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * @function encode + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommonLanguageSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri); + if (message.destinations != null && message.destinations.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.destinations.length; ++i) + writer.int32(message.destinations[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CommonLanguageSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.CommonLanguageSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommonLanguageSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.referenceDocsUri = reader.string(); + break; + } + case 2: { + if (!(message.destinations && message.destinations.length)) + message.destinations = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.destinations.push(reader.int32()); + } else + message.destinations.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CommonLanguageSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CommonLanguageSettings message. + * @function verify + * @memberof google.api.CommonLanguageSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CommonLanguageSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) + if (!$util.isString(message.referenceDocsUri)) + return "referenceDocsUri: string expected"; + if (message.destinations != null && message.hasOwnProperty("destinations")) { + if (!Array.isArray(message.destinations)) + return "destinations: array expected"; + for (var i = 0; i < message.destinations.length; ++i) + switch (message.destinations[i]) { + default: + return "destinations: enum value[] expected"; + case 0: + case 10: + case 20: + break; + } + } + return null; + }; + + /** + * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CommonLanguageSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + */ + CommonLanguageSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CommonLanguageSettings) + return object; + var message = new $root.google.api.CommonLanguageSettings(); + if (object.referenceDocsUri != null) + message.referenceDocsUri = String(object.referenceDocsUri); + if (object.destinations) { + if (!Array.isArray(object.destinations)) + throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected"); + message.destinations = []; + for (var i = 0; i < object.destinations.length; ++i) + switch (object.destinations[i]) { + default: + if (typeof object.destinations[i] === "number") { + message.destinations[i] = object.destinations[i]; + break; + } + case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": + case 0: + message.destinations[i] = 0; + break; + case "GITHUB": + case 10: + message.destinations[i] = 10; + break; + case "PACKAGE_MANAGER": + case 20: + message.destinations[i] = 20; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CommonLanguageSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.destinations = []; + if (options.defaults) + object.referenceDocsUri = ""; + if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) + object.referenceDocsUri = message.referenceDocsUri; + if (message.destinations && message.destinations.length) { + object.destinations = []; + for (var j = 0; j < message.destinations.length; ++j) + object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j]; + } + return object; + }; + + /** + * Converts this CommonLanguageSettings to JSON. + * @function toJSON + * @memberof google.api.CommonLanguageSettings + * @instance + * @returns {Object.} JSON object + */ + CommonLanguageSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CommonLanguageSettings + * @function getTypeUrl + * @memberof google.api.CommonLanguageSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CommonLanguageSettings"; + }; + + return CommonLanguageSettings; + })(); + + api.ClientLibrarySettings = (function() { + + /** + * Properties of a ClientLibrarySettings. + * @memberof google.api + * @interface IClientLibrarySettings + * @property {string|null} [version] ClientLibrarySettings version + * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage + * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums + * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings + * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings + * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings + * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings + * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings + * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings + * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings + * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings + */ + + /** + * Constructs a new ClientLibrarySettings. + * @memberof google.api + * @classdesc Represents a ClientLibrarySettings. + * @implements IClientLibrarySettings + * @constructor + * @param {google.api.IClientLibrarySettings=} [properties] Properties to set + */ + function ClientLibrarySettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ClientLibrarySettings version. + * @member {string} version + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.version = ""; + + /** + * ClientLibrarySettings launchStage. + * @member {google.api.LaunchStage} launchStage + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.launchStage = 0; + + /** + * ClientLibrarySettings restNumericEnums. + * @member {boolean} restNumericEnums + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.restNumericEnums = false; + + /** + * ClientLibrarySettings javaSettings. + * @member {google.api.IJavaSettings|null|undefined} javaSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.javaSettings = null; + + /** + * ClientLibrarySettings cppSettings. + * @member {google.api.ICppSettings|null|undefined} cppSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.cppSettings = null; + + /** + * ClientLibrarySettings phpSettings. + * @member {google.api.IPhpSettings|null|undefined} phpSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.phpSettings = null; + + /** + * ClientLibrarySettings pythonSettings. + * @member {google.api.IPythonSettings|null|undefined} pythonSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.pythonSettings = null; + + /** + * ClientLibrarySettings nodeSettings. + * @member {google.api.INodeSettings|null|undefined} nodeSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.nodeSettings = null; + + /** + * ClientLibrarySettings dotnetSettings. + * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.dotnetSettings = null; + + /** + * ClientLibrarySettings rubySettings. + * @member {google.api.IRubySettings|null|undefined} rubySettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.rubySettings = null; + + /** + * ClientLibrarySettings goSettings. + * @member {google.api.IGoSettings|null|undefined} goSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.goSettings = null; + + /** + * Creates a new ClientLibrarySettings instance using the specified properties. + * @function create + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.IClientLibrarySettings=} [properties] Properties to set + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance + */ + ClientLibrarySettings.create = function create(properties) { + return new ClientLibrarySettings(properties); + }; + + /** + * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * @function encode + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientLibrarySettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage); + if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums); + if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings")) + $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings")) + $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings")) + $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings")) + $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings")) + $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings")) + $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings")) + $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings")) + $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ClientLibrarySettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.ClientLibrarySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientLibrarySettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.string(); + break; + } + case 2: { + message.launchStage = reader.int32(); + break; + } + case 3: { + message.restNumericEnums = reader.bool(); + break; + } + case 21: { + message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32()); + break; + } + case 22: { + message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32()); + break; + } + case 23: { + message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32()); + break; + } + case 24: { + message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32()); + break; + } + case 25: { + message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32()); + break; + } + case 26: { + message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32()); + break; + } + case 27: { + message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32()); + break; + } + case 28: { + message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ClientLibrarySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ClientLibrarySettings message. + * @function verify + * @memberof google.api.ClientLibrarySettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClientLibrarySettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + switch (message.launchStage) { + default: + return "launchStage: enum value expected"; + case 0: + case 6: + case 7: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) + if (typeof message.restNumericEnums !== "boolean") + return "restNumericEnums: boolean expected"; + if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) { + var error = $root.google.api.JavaSettings.verify(message.javaSettings); + if (error) + return "javaSettings." + error; + } + if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) { + var error = $root.google.api.CppSettings.verify(message.cppSettings); + if (error) + return "cppSettings." + error; + } + if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) { + var error = $root.google.api.PhpSettings.verify(message.phpSettings); + if (error) + return "phpSettings." + error; + } + if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) { + var error = $root.google.api.PythonSettings.verify(message.pythonSettings); + if (error) + return "pythonSettings." + error; + } + if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) { + var error = $root.google.api.NodeSettings.verify(message.nodeSettings); + if (error) + return "nodeSettings." + error; + } + if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) { + var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings); + if (error) + return "dotnetSettings." + error; + } + if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) { + var error = $root.google.api.RubySettings.verify(message.rubySettings); + if (error) + return "rubySettings." + error; + } + if (message.goSettings != null && message.hasOwnProperty("goSettings")) { + var error = $root.google.api.GoSettings.verify(message.goSettings); + if (error) + return "goSettings." + error; + } + return null; + }; + + /** + * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ClientLibrarySettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + */ + ClientLibrarySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ClientLibrarySettings) + return object; + var message = new $root.google.api.ClientLibrarySettings(); + if (object.version != null) + message.version = String(object.version); + switch (object.launchStage) { + default: + if (typeof object.launchStage === "number") { + message.launchStage = object.launchStage; + break; + } + break; + case "LAUNCH_STAGE_UNSPECIFIED": + case 0: + message.launchStage = 0; + break; + case "UNIMPLEMENTED": + case 6: + message.launchStage = 6; + break; + case "PRELAUNCH": + case 7: + message.launchStage = 7; + break; + case "EARLY_ACCESS": + case 1: + message.launchStage = 1; + break; + case "ALPHA": + case 2: + message.launchStage = 2; + break; + case "BETA": + case 3: + message.launchStage = 3; + break; + case "GA": + case 4: + message.launchStage = 4; + break; + case "DEPRECATED": + case 5: + message.launchStage = 5; + break; + } + if (object.restNumericEnums != null) + message.restNumericEnums = Boolean(object.restNumericEnums); + if (object.javaSettings != null) { + if (typeof object.javaSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected"); + message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings); + } + if (object.cppSettings != null) { + if (typeof object.cppSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected"); + message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings); + } + if (object.phpSettings != null) { + if (typeof object.phpSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected"); + message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings); + } + if (object.pythonSettings != null) { + if (typeof object.pythonSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected"); + message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings); + } + if (object.nodeSettings != null) { + if (typeof object.nodeSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected"); + message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings); + } + if (object.dotnetSettings != null) { + if (typeof object.dotnetSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected"); + message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings); + } + if (object.rubySettings != null) { + if (typeof object.rubySettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected"); + message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings); + } + if (object.goSettings != null) { + if (typeof object.goSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected"); + message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings); + } + return message; + }; + + /** + * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClientLibrarySettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.version = ""; + object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0; + object.restNumericEnums = false; + object.javaSettings = null; + object.cppSettings = null; + object.phpSettings = null; + object.pythonSettings = null; + object.nodeSettings = null; + object.dotnetSettings = null; + object.rubySettings = null; + object.goSettings = null; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage; + if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) + object.restNumericEnums = message.restNumericEnums; + if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) + object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options); + if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) + object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options); + if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) + object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options); + if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) + object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options); + if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) + object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options); + if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) + object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options); + if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) + object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options); + if (message.goSettings != null && message.hasOwnProperty("goSettings")) + object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options); + return object; + }; + + /** + * Converts this ClientLibrarySettings to JSON. + * @function toJSON + * @memberof google.api.ClientLibrarySettings + * @instance + * @returns {Object.} JSON object + */ + ClientLibrarySettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ClientLibrarySettings + * @function getTypeUrl + * @memberof google.api.ClientLibrarySettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ClientLibrarySettings"; + }; + + return ClientLibrarySettings; + })(); + + api.Publishing = (function() { + + /** + * Properties of a Publishing. + * @memberof google.api + * @interface IPublishing + * @property {Array.|null} [methodSettings] Publishing methodSettings + * @property {string|null} [newIssueUri] Publishing newIssueUri + * @property {string|null} [documentationUri] Publishing documentationUri + * @property {string|null} [apiShortName] Publishing apiShortName + * @property {string|null} [githubLabel] Publishing githubLabel + * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams + * @property {string|null} [docTagPrefix] Publishing docTagPrefix + * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization + * @property {Array.|null} [librarySettings] Publishing librarySettings + * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri + */ + + /** + * Constructs a new Publishing. + * @memberof google.api + * @classdesc Represents a Publishing. + * @implements IPublishing + * @constructor + * @param {google.api.IPublishing=} [properties] Properties to set + */ + function Publishing(properties) { + this.methodSettings = []; + this.codeownerGithubTeams = []; + this.librarySettings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Publishing methodSettings. + * @member {Array.} methodSettings + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.methodSettings = $util.emptyArray; + + /** + * Publishing newIssueUri. + * @member {string} newIssueUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.newIssueUri = ""; + + /** + * Publishing documentationUri. + * @member {string} documentationUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.documentationUri = ""; + + /** + * Publishing apiShortName. + * @member {string} apiShortName + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.apiShortName = ""; + + /** + * Publishing githubLabel. + * @member {string} githubLabel + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.githubLabel = ""; + + /** + * Publishing codeownerGithubTeams. + * @member {Array.} codeownerGithubTeams + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.codeownerGithubTeams = $util.emptyArray; + + /** + * Publishing docTagPrefix. + * @member {string} docTagPrefix + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.docTagPrefix = ""; + + /** + * Publishing organization. + * @member {google.api.ClientLibraryOrganization} organization + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.organization = 0; + + /** + * Publishing librarySettings. + * @member {Array.} librarySettings + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.librarySettings = $util.emptyArray; + + /** + * Publishing protoReferenceDocumentationUri. + * @member {string} protoReferenceDocumentationUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.protoReferenceDocumentationUri = ""; + + /** + * Creates a new Publishing instance using the specified properties. + * @function create + * @memberof google.api.Publishing + * @static + * @param {google.api.IPublishing=} [properties] Properties to set + * @returns {google.api.Publishing} Publishing instance + */ + Publishing.create = function create(properties) { + return new Publishing(properties); + }; + + /** + * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * @function encode + * @memberof google.api.Publishing + * @static + * @param {google.api.IPublishing} message Publishing message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Publishing.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.methodSettings != null && message.methodSettings.length) + for (var i = 0; i < message.methodSettings.length; ++i) + $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri); + if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri); + if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName")) + writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName); + if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel); + if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length) + for (var i = 0; i < message.codeownerGithubTeams.length; ++i) + writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]); + if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix); + if (message.organization != null && Object.hasOwnProperty.call(message, "organization")) + writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization); + if (message.librarySettings != null && message.librarySettings.length) + for (var i = 0; i < message.librarySettings.length; ++i) + $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri")) + writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri); + return writer; + }; + + /** + * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Publishing + * @static + * @param {google.api.IPublishing} message Publishing message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Publishing.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Publishing message from the specified reader or buffer. + * @function decode + * @memberof google.api.Publishing + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Publishing} Publishing + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Publishing.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.methodSettings && message.methodSettings.length)) + message.methodSettings = []; + message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32())); + break; + } + case 101: { + message.newIssueUri = reader.string(); + break; + } + case 102: { + message.documentationUri = reader.string(); + break; + } + case 103: { + message.apiShortName = reader.string(); + break; + } + case 104: { + message.githubLabel = reader.string(); + break; + } + case 105: { + if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length)) + message.codeownerGithubTeams = []; + message.codeownerGithubTeams.push(reader.string()); + break; + } + case 106: { + message.docTagPrefix = reader.string(); + break; + } + case 107: { + message.organization = reader.int32(); + break; + } + case 109: { + if (!(message.librarySettings && message.librarySettings.length)) + message.librarySettings = []; + message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32())); + break; + } + case 110: { + message.protoReferenceDocumentationUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Publishing message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Publishing + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Publishing} Publishing + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Publishing.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Publishing message. + * @function verify + * @memberof google.api.Publishing + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Publishing.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) { + if (!Array.isArray(message.methodSettings)) + return "methodSettings: array expected"; + for (var i = 0; i < message.methodSettings.length; ++i) { + var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]); + if (error) + return "methodSettings." + error; + } + } + if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) + if (!$util.isString(message.newIssueUri)) + return "newIssueUri: string expected"; + if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) + if (!$util.isString(message.documentationUri)) + return "documentationUri: string expected"; + if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) + if (!$util.isString(message.apiShortName)) + return "apiShortName: string expected"; + if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) + if (!$util.isString(message.githubLabel)) + return "githubLabel: string expected"; + if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) { + if (!Array.isArray(message.codeownerGithubTeams)) + return "codeownerGithubTeams: array expected"; + for (var i = 0; i < message.codeownerGithubTeams.length; ++i) + if (!$util.isString(message.codeownerGithubTeams[i])) + return "codeownerGithubTeams: string[] expected"; + } + if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) + if (!$util.isString(message.docTagPrefix)) + return "docTagPrefix: string expected"; + if (message.organization != null && message.hasOwnProperty("organization")) + switch (message.organization) { + default: + return "organization: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) { + if (!Array.isArray(message.librarySettings)) + return "librarySettings: array expected"; + for (var i = 0; i < message.librarySettings.length; ++i) { + var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]); + if (error) + return "librarySettings." + error; + } + } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + if (!$util.isString(message.protoReferenceDocumentationUri)) + return "protoReferenceDocumentationUri: string expected"; + return null; + }; + + /** + * Creates a Publishing message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Publishing + * @static + * @param {Object.} object Plain object + * @returns {google.api.Publishing} Publishing + */ + Publishing.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Publishing) + return object; + var message = new $root.google.api.Publishing(); + if (object.methodSettings) { + if (!Array.isArray(object.methodSettings)) + throw TypeError(".google.api.Publishing.methodSettings: array expected"); + message.methodSettings = []; + for (var i = 0; i < object.methodSettings.length; ++i) { + if (typeof object.methodSettings[i] !== "object") + throw TypeError(".google.api.Publishing.methodSettings: object expected"); + message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]); + } + } + if (object.newIssueUri != null) + message.newIssueUri = String(object.newIssueUri); + if (object.documentationUri != null) + message.documentationUri = String(object.documentationUri); + if (object.apiShortName != null) + message.apiShortName = String(object.apiShortName); + if (object.githubLabel != null) + message.githubLabel = String(object.githubLabel); + if (object.codeownerGithubTeams) { + if (!Array.isArray(object.codeownerGithubTeams)) + throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected"); + message.codeownerGithubTeams = []; + for (var i = 0; i < object.codeownerGithubTeams.length; ++i) + message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]); + } + if (object.docTagPrefix != null) + message.docTagPrefix = String(object.docTagPrefix); + switch (object.organization) { + default: + if (typeof object.organization === "number") { + message.organization = object.organization; + break; + } + break; + case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": + case 0: + message.organization = 0; + break; + case "CLOUD": + case 1: + message.organization = 1; + break; + case "ADS": + case 2: + message.organization = 2; + break; + case "PHOTOS": + case 3: + message.organization = 3; + break; + case "STREET_VIEW": + case 4: + message.organization = 4; + break; + case "SHOPPING": + case 5: + message.organization = 5; + break; + case "GEO": + case 6: + message.organization = 6; + break; + case "GENERATIVE_AI": + case 7: + message.organization = 7; + break; + } + if (object.librarySettings) { + if (!Array.isArray(object.librarySettings)) + throw TypeError(".google.api.Publishing.librarySettings: array expected"); + message.librarySettings = []; + for (var i = 0; i < object.librarySettings.length; ++i) { + if (typeof object.librarySettings[i] !== "object") + throw TypeError(".google.api.Publishing.librarySettings: object expected"); + message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]); + } + } + if (object.protoReferenceDocumentationUri != null) + message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri); + return message; + }; + + /** + * Creates a plain object from a Publishing message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Publishing + * @static + * @param {google.api.Publishing} message Publishing + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Publishing.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.methodSettings = []; + object.codeownerGithubTeams = []; + object.librarySettings = []; + } + if (options.defaults) { + object.newIssueUri = ""; + object.documentationUri = ""; + object.apiShortName = ""; + object.githubLabel = ""; + object.docTagPrefix = ""; + object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0; + object.protoReferenceDocumentationUri = ""; + } + if (message.methodSettings && message.methodSettings.length) { + object.methodSettings = []; + for (var j = 0; j < message.methodSettings.length; ++j) + object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options); + } + if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) + object.newIssueUri = message.newIssueUri; + if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) + object.documentationUri = message.documentationUri; + if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) + object.apiShortName = message.apiShortName; + if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) + object.githubLabel = message.githubLabel; + if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) { + object.codeownerGithubTeams = []; + for (var j = 0; j < message.codeownerGithubTeams.length; ++j) + object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j]; + } + if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) + object.docTagPrefix = message.docTagPrefix; + if (message.organization != null && message.hasOwnProperty("organization")) + object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization; + if (message.librarySettings && message.librarySettings.length) { + object.librarySettings = []; + for (var j = 0; j < message.librarySettings.length; ++j) + object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options); + } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri; + return object; + }; + + /** + * Converts this Publishing to JSON. + * @function toJSON + * @memberof google.api.Publishing + * @instance + * @returns {Object.} JSON object + */ + Publishing.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Publishing + * @function getTypeUrl + * @memberof google.api.Publishing + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Publishing"; + }; + + return Publishing; + })(); + + api.JavaSettings = (function() { + + /** + * Properties of a JavaSettings. + * @memberof google.api + * @interface IJavaSettings + * @property {string|null} [libraryPackage] JavaSettings libraryPackage + * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames + * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common + */ + + /** + * Constructs a new JavaSettings. + * @memberof google.api + * @classdesc Represents a JavaSettings. + * @implements IJavaSettings + * @constructor + * @param {google.api.IJavaSettings=} [properties] Properties to set + */ + function JavaSettings(properties) { + this.serviceClassNames = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * JavaSettings libraryPackage. + * @member {string} libraryPackage + * @memberof google.api.JavaSettings + * @instance + */ + JavaSettings.prototype.libraryPackage = ""; + + /** + * JavaSettings serviceClassNames. + * @member {Object.} serviceClassNames + * @memberof google.api.JavaSettings + * @instance + */ + JavaSettings.prototype.serviceClassNames = $util.emptyObject; + + /** + * JavaSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.JavaSettings + * @instance + */ + JavaSettings.prototype.common = null; + + /** + * Creates a new JavaSettings instance using the specified properties. + * @function create + * @memberof google.api.JavaSettings + * @static + * @param {google.api.IJavaSettings=} [properties] Properties to set + * @returns {google.api.JavaSettings} JavaSettings instance + */ + JavaSettings.create = function create(properties) { + return new JavaSettings(properties); + }; + + /** + * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * @function encode + * @memberof google.api.JavaSettings + * @static + * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JavaSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage); + if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames")) + for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.JavaSettings + * @static + * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JavaSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a JavaSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.JavaSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.JavaSettings} JavaSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JavaSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.libraryPackage = reader.string(); + break; + } + case 2: { + if (message.serviceClassNames === $util.emptyObject) + message.serviceClassNames = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.serviceClassNames[key] = value; + break; + } + case 3: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a JavaSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.JavaSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.JavaSettings} JavaSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JavaSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a JavaSettings message. + * @function verify + * @memberof google.api.JavaSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + JavaSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) + if (!$util.isString(message.libraryPackage)) + return "libraryPackage: string expected"; + if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) { + if (!$util.isObject(message.serviceClassNames)) + return "serviceClassNames: object expected"; + var key = Object.keys(message.serviceClassNames); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.serviceClassNames[key[i]])) + return "serviceClassNames: string{k:string} expected"; + } + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.JavaSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.JavaSettings} JavaSettings + */ + JavaSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.JavaSettings) + return object; + var message = new $root.google.api.JavaSettings(); + if (object.libraryPackage != null) + message.libraryPackage = String(object.libraryPackage); + if (object.serviceClassNames) { + if (typeof object.serviceClassNames !== "object") + throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected"); + message.serviceClassNames = {}; + for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i) + message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]); + } + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.JavaSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a JavaSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.JavaSettings + * @static + * @param {google.api.JavaSettings} message JavaSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + JavaSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.serviceClassNames = {}; + if (options.defaults) { + object.libraryPackage = ""; + object.common = null; + } + if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) + object.libraryPackage = message.libraryPackage; + var keys2; + if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) { + object.serviceClassNames = {}; + for (var j = 0; j < keys2.length; ++j) + object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]]; + } + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this JavaSettings to JSON. + * @function toJSON + * @memberof google.api.JavaSettings + * @instance + * @returns {Object.} JSON object + */ + JavaSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for JavaSettings + * @function getTypeUrl + * @memberof google.api.JavaSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.JavaSettings"; + }; + + return JavaSettings; + })(); + + api.CppSettings = (function() { + + /** + * Properties of a CppSettings. + * @memberof google.api + * @interface ICppSettings + * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common + */ + + /** + * Constructs a new CppSettings. + * @memberof google.api + * @classdesc Represents a CppSettings. + * @implements ICppSettings + * @constructor + * @param {google.api.ICppSettings=} [properties] Properties to set + */ + function CppSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CppSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.CppSettings + * @instance + */ + CppSettings.prototype.common = null; + + /** + * Creates a new CppSettings instance using the specified properties. + * @function create + * @memberof google.api.CppSettings + * @static + * @param {google.api.ICppSettings=} [properties] Properties to set + * @returns {google.api.CppSettings} CppSettings instance + */ + CppSettings.create = function create(properties) { + return new CppSettings(properties); + }; + + /** + * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * @function encode + * @memberof google.api.CppSettings + * @static + * @param {google.api.ICppSettings} message CppSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CppSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CppSettings + * @static + * @param {google.api.ICppSettings} message CppSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CppSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CppSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.CppSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CppSettings} CppSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CppSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CppSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CppSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CppSettings} CppSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CppSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CppSettings message. + * @function verify + * @memberof google.api.CppSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CppSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a CppSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CppSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.CppSettings} CppSettings + */ + CppSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CppSettings) + return object; + var message = new $root.google.api.CppSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.CppSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a CppSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CppSettings + * @static + * @param {google.api.CppSettings} message CppSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CppSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this CppSettings to JSON. + * @function toJSON + * @memberof google.api.CppSettings + * @instance + * @returns {Object.} JSON object + */ + CppSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CppSettings + * @function getTypeUrl + * @memberof google.api.CppSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CppSettings"; + }; + + return CppSettings; + })(); + + api.PhpSettings = (function() { + + /** + * Properties of a PhpSettings. + * @memberof google.api + * @interface IPhpSettings + * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common + */ + + /** + * Constructs a new PhpSettings. + * @memberof google.api + * @classdesc Represents a PhpSettings. + * @implements IPhpSettings + * @constructor + * @param {google.api.IPhpSettings=} [properties] Properties to set + */ + function PhpSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PhpSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.PhpSettings + * @instance + */ + PhpSettings.prototype.common = null; + + /** + * Creates a new PhpSettings instance using the specified properties. + * @function create + * @memberof google.api.PhpSettings + * @static + * @param {google.api.IPhpSettings=} [properties] Properties to set + * @returns {google.api.PhpSettings} PhpSettings instance + */ + PhpSettings.create = function create(properties) { + return new PhpSettings(properties); + }; + + /** + * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * @function encode + * @memberof google.api.PhpSettings + * @static + * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PhpSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.PhpSettings + * @static + * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PhpSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PhpSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.PhpSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.PhpSettings} PhpSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PhpSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PhpSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.PhpSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.PhpSettings} PhpSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PhpSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PhpSettings message. + * @function verify + * @memberof google.api.PhpSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PhpSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.PhpSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.PhpSettings} PhpSettings + */ + PhpSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.PhpSettings) + return object; + var message = new $root.google.api.PhpSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.PhpSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a PhpSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.PhpSettings + * @static + * @param {google.api.PhpSettings} message PhpSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PhpSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this PhpSettings to JSON. + * @function toJSON + * @memberof google.api.PhpSettings + * @instance + * @returns {Object.} JSON object + */ + PhpSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PhpSettings + * @function getTypeUrl + * @memberof google.api.PhpSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.PhpSettings"; + }; + + return PhpSettings; + })(); + + api.PythonSettings = (function() { + + /** + * Properties of a PythonSettings. + * @memberof google.api + * @interface IPythonSettings + * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common + */ + + /** + * Constructs a new PythonSettings. + * @memberof google.api + * @classdesc Represents a PythonSettings. + * @implements IPythonSettings + * @constructor + * @param {google.api.IPythonSettings=} [properties] Properties to set + */ + function PythonSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PythonSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.PythonSettings + * @instance + */ + PythonSettings.prototype.common = null; + + /** + * Creates a new PythonSettings instance using the specified properties. + * @function create + * @memberof google.api.PythonSettings + * @static + * @param {google.api.IPythonSettings=} [properties] Properties to set + * @returns {google.api.PythonSettings} PythonSettings instance + */ + PythonSettings.create = function create(properties) { + return new PythonSettings(properties); + }; + + /** + * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * @function encode + * @memberof google.api.PythonSettings + * @static + * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PythonSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.PythonSettings + * @static + * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PythonSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PythonSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.PythonSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.PythonSettings} PythonSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PythonSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PythonSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.PythonSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.PythonSettings} PythonSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PythonSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PythonSettings message. + * @function verify + * @memberof google.api.PythonSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PythonSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.PythonSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.PythonSettings} PythonSettings + */ + PythonSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.PythonSettings) + return object; + var message = new $root.google.api.PythonSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.PythonSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a PythonSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.PythonSettings + * @static + * @param {google.api.PythonSettings} message PythonSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PythonSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this PythonSettings to JSON. + * @function toJSON + * @memberof google.api.PythonSettings + * @instance + * @returns {Object.} JSON object + */ + PythonSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PythonSettings + * @function getTypeUrl + * @memberof google.api.PythonSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.PythonSettings"; + }; + + return PythonSettings; + })(); + + api.NodeSettings = (function() { + + /** + * Properties of a NodeSettings. + * @memberof google.api + * @interface INodeSettings + * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common + */ + + /** + * Constructs a new NodeSettings. + * @memberof google.api + * @classdesc Represents a NodeSettings. + * @implements INodeSettings + * @constructor + * @param {google.api.INodeSettings=} [properties] Properties to set + */ + function NodeSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.NodeSettings + * @instance + */ + NodeSettings.prototype.common = null; + + /** + * Creates a new NodeSettings instance using the specified properties. + * @function create + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings=} [properties] Properties to set + * @returns {google.api.NodeSettings} NodeSettings instance + */ + NodeSettings.create = function create(properties) { + return new NodeSettings(properties); + }; + + /** + * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @function encode + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.NodeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.NodeSettings} NodeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.NodeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.NodeSettings} NodeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeSettings message. + * @function verify + * @memberof google.api.NodeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.NodeSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.NodeSettings} NodeSettings + */ + NodeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.NodeSettings) + return object; + var message = new $root.google.api.NodeSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.NodeSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a NodeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.NodeSettings + * @static + * @param {google.api.NodeSettings} message NodeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this NodeSettings to JSON. + * @function toJSON + * @memberof google.api.NodeSettings + * @instance + * @returns {Object.} JSON object + */ + NodeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodeSettings + * @function getTypeUrl + * @memberof google.api.NodeSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.NodeSettings"; + }; + + return NodeSettings; + })(); + + api.DotnetSettings = (function() { + + /** + * Properties of a DotnetSettings. + * @memberof google.api + * @interface IDotnetSettings + * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common + * @property {Object.|null} [renamedServices] DotnetSettings renamedServices + * @property {Object.|null} [renamedResources] DotnetSettings renamedResources + * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources + * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases + * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures + */ + + /** + * Constructs a new DotnetSettings. + * @memberof google.api + * @classdesc Represents a DotnetSettings. + * @implements IDotnetSettings + * @constructor + * @param {google.api.IDotnetSettings=} [properties] Properties to set + */ + function DotnetSettings(properties) { + this.renamedServices = {}; + this.renamedResources = {}; + this.ignoredResources = []; + this.forcedNamespaceAliases = []; + this.handwrittenSignatures = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DotnetSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.common = null; + + /** + * DotnetSettings renamedServices. + * @member {Object.} renamedServices + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedServices = $util.emptyObject; + + /** + * DotnetSettings renamedResources. + * @member {Object.} renamedResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedResources = $util.emptyObject; + + /** + * DotnetSettings ignoredResources. + * @member {Array.} ignoredResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.ignoredResources = $util.emptyArray; + + /** + * DotnetSettings forcedNamespaceAliases. + * @member {Array.} forcedNamespaceAliases + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray; + + /** + * DotnetSettings handwrittenSignatures. + * @member {Array.} handwrittenSignatures + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray; + + /** + * Creates a new DotnetSettings instance using the specified properties. + * @function create + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.IDotnetSettings=} [properties] Properties to set + * @returns {google.api.DotnetSettings} DotnetSettings instance + */ + DotnetSettings.create = function create(properties) { + return new DotnetSettings(properties); + }; + + /** + * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * @function encode + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DotnetSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices")) + for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim(); + if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources")) + for (var keys = Object.keys(message.renamedResources), 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.renamedResources[keys[i]]).ldelim(); + if (message.ignoredResources != null && message.ignoredResources.length) + for (var i = 0; i < message.ignoredResources.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]); + if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length) + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]); + if (message.handwrittenSignatures != null && message.handwrittenSignatures.length) + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]); + return writer; + }; + + /** + * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DotnetSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.DotnetSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.DotnetSettings} DotnetSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DotnetSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + if (message.renamedServices === $util.emptyObject) + message.renamedServices = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.renamedServices[key] = value; + break; + } + case 3: { + if (message.renamedResources === $util.emptyObject) + message.renamedResources = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.renamedResources[key] = value; + break; + } + case 4: { + if (!(message.ignoredResources && message.ignoredResources.length)) + message.ignoredResources = []; + message.ignoredResources.push(reader.string()); + break; + } + case 5: { + if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length)) + message.forcedNamespaceAliases = []; + message.forcedNamespaceAliases.push(reader.string()); + break; + } + case 6: { + if (!(message.handwrittenSignatures && message.handwrittenSignatures.length)) + message.handwrittenSignatures = []; + message.handwrittenSignatures.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DotnetSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.DotnetSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.DotnetSettings} DotnetSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DotnetSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DotnetSettings message. + * @function verify + * @memberof google.api.DotnetSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DotnetSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) { + if (!$util.isObject(message.renamedServices)) + return "renamedServices: object expected"; + var key = Object.keys(message.renamedServices); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedServices[key[i]])) + return "renamedServices: string{k:string} expected"; + } + if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) { + if (!$util.isObject(message.renamedResources)) + return "renamedResources: object expected"; + var key = Object.keys(message.renamedResources); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedResources[key[i]])) + return "renamedResources: string{k:string} expected"; + } + if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) { + if (!Array.isArray(message.ignoredResources)) + return "ignoredResources: array expected"; + for (var i = 0; i < message.ignoredResources.length; ++i) + if (!$util.isString(message.ignoredResources[i])) + return "ignoredResources: string[] expected"; + } + if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) { + if (!Array.isArray(message.forcedNamespaceAliases)) + return "forcedNamespaceAliases: array expected"; + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + if (!$util.isString(message.forcedNamespaceAliases[i])) + return "forcedNamespaceAliases: string[] expected"; + } + if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) { + if (!Array.isArray(message.handwrittenSignatures)) + return "handwrittenSignatures: array expected"; + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + if (!$util.isString(message.handwrittenSignatures[i])) + return "handwrittenSignatures: string[] expected"; + } + return null; + }; + + /** + * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.DotnetSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.DotnetSettings} DotnetSettings + */ + DotnetSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.DotnetSettings) + return object; + var message = new $root.google.api.DotnetSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.DotnetSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + if (object.renamedServices) { + if (typeof object.renamedServices !== "object") + throw TypeError(".google.api.DotnetSettings.renamedServices: object expected"); + message.renamedServices = {}; + for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i) + message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]); + } + if (object.renamedResources) { + if (typeof object.renamedResources !== "object") + throw TypeError(".google.api.DotnetSettings.renamedResources: object expected"); + message.renamedResources = {}; + for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i) + message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]); + } + if (object.ignoredResources) { + if (!Array.isArray(object.ignoredResources)) + throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected"); + message.ignoredResources = []; + for (var i = 0; i < object.ignoredResources.length; ++i) + message.ignoredResources[i] = String(object.ignoredResources[i]); + } + if (object.forcedNamespaceAliases) { + if (!Array.isArray(object.forcedNamespaceAliases)) + throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected"); + message.forcedNamespaceAliases = []; + for (var i = 0; i < object.forcedNamespaceAliases.length; ++i) + message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]); + } + if (object.handwrittenSignatures) { + if (!Array.isArray(object.handwrittenSignatures)) + throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected"); + message.handwrittenSignatures = []; + for (var i = 0; i < object.handwrittenSignatures.length; ++i) + message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]); + } + return message; + }; + + /** + * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.DotnetSettings} message DotnetSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DotnetSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ignoredResources = []; + object.forcedNamespaceAliases = []; + object.handwrittenSignatures = []; + } + if (options.objects || options.defaults) { + object.renamedServices = {}; + object.renamedResources = {}; + } + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + var keys2; + if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) { + object.renamedServices = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]]; + } + if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) { + object.renamedResources = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]]; + } + if (message.ignoredResources && message.ignoredResources.length) { + object.ignoredResources = []; + for (var j = 0; j < message.ignoredResources.length; ++j) + object.ignoredResources[j] = message.ignoredResources[j]; + } + if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) { + object.forcedNamespaceAliases = []; + for (var j = 0; j < message.forcedNamespaceAliases.length; ++j) + object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j]; + } + if (message.handwrittenSignatures && message.handwrittenSignatures.length) { + object.handwrittenSignatures = []; + for (var j = 0; j < message.handwrittenSignatures.length; ++j) + object.handwrittenSignatures[j] = message.handwrittenSignatures[j]; + } + return object; + }; + + /** + * Converts this DotnetSettings to JSON. + * @function toJSON + * @memberof google.api.DotnetSettings + * @instance + * @returns {Object.} JSON object + */ + DotnetSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DotnetSettings + * @function getTypeUrl + * @memberof google.api.DotnetSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.DotnetSettings"; + }; + + return DotnetSettings; + })(); + + api.RubySettings = (function() { + + /** + * Properties of a RubySettings. + * @memberof google.api + * @interface IRubySettings + * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common + */ + + /** + * Constructs a new RubySettings. + * @memberof google.api + * @classdesc Represents a RubySettings. + * @implements IRubySettings + * @constructor + * @param {google.api.IRubySettings=} [properties] Properties to set + */ + function RubySettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RubySettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.RubySettings + * @instance + */ + RubySettings.prototype.common = null; + + /** + * Creates a new RubySettings instance using the specified properties. + * @function create + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings=} [properties] Properties to set + * @returns {google.api.RubySettings} RubySettings instance + */ + RubySettings.create = function create(properties) { + return new RubySettings(properties); + }; + + /** + * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @function encode + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RubySettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RubySettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RubySettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.RubySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.RubySettings} RubySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RubySettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RubySettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.RubySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.RubySettings} RubySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RubySettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RubySettings message. + * @function verify + * @memberof google.api.RubySettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RubySettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a RubySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.RubySettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.RubySettings} RubySettings + */ + RubySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.RubySettings) + return object; + var message = new $root.google.api.RubySettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.RubySettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a RubySettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.RubySettings + * @static + * @param {google.api.RubySettings} message RubySettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RubySettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this RubySettings to JSON. + * @function toJSON + * @memberof google.api.RubySettings + * @instance + * @returns {Object.} JSON object + */ + RubySettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RubySettings + * @function getTypeUrl + * @memberof google.api.RubySettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.RubySettings"; + }; + + return RubySettings; + })(); + + api.GoSettings = (function() { + + /** + * Properties of a GoSettings. + * @memberof google.api + * @interface IGoSettings + * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common + */ + + /** + * Constructs a new GoSettings. + * @memberof google.api + * @classdesc Represents a GoSettings. + * @implements IGoSettings + * @constructor + * @param {google.api.IGoSettings=} [properties] Properties to set + */ + function GoSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GoSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.GoSettings + * @instance + */ + GoSettings.prototype.common = null; + + /** + * Creates a new GoSettings instance using the specified properties. + * @function create + * @memberof google.api.GoSettings + * @static + * @param {google.api.IGoSettings=} [properties] Properties to set + * @returns {google.api.GoSettings} GoSettings instance + */ + GoSettings.create = function create(properties) { + return new GoSettings(properties); + }; + + /** + * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * @function encode + * @memberof google.api.GoSettings + * @static + * @param {google.api.IGoSettings} message GoSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.GoSettings + * @static + * @param {google.api.IGoSettings} message GoSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.GoSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.GoSettings} GoSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.GoSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.GoSettings} GoSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoSettings message. + * @function verify + * @memberof google.api.GoSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a GoSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.GoSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.GoSettings} GoSettings + */ + GoSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.GoSettings) + return object; + var message = new $root.google.api.GoSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.GoSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a GoSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.GoSettings + * @static + * @param {google.api.GoSettings} message GoSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this GoSettings to JSON. + * @function toJSON + * @memberof google.api.GoSettings + * @instance + * @returns {Object.} JSON object + */ + GoSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GoSettings + * @function getTypeUrl + * @memberof google.api.GoSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.GoSettings"; + }; + + return GoSettings; + })(); + + api.MethodSettings = (function() { + + /** + * Properties of a MethodSettings. + * @memberof google.api + * @interface IMethodSettings + * @property {string|null} [selector] MethodSettings selector + * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning + * @property {Array.|null} [autoPopulatedFields] MethodSettings autoPopulatedFields + */ + + /** + * Constructs a new MethodSettings. + * @memberof google.api + * @classdesc Represents a MethodSettings. + * @implements IMethodSettings + * @constructor + * @param {google.api.IMethodSettings=} [properties] Properties to set + */ + function MethodSettings(properties) { + this.autoPopulatedFields = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodSettings selector. + * @member {string} selector + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.selector = ""; + + /** + * MethodSettings longRunning. + * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.longRunning = null; + + /** + * MethodSettings autoPopulatedFields. + * @member {Array.} autoPopulatedFields + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.autoPopulatedFields = $util.emptyArray; + + /** + * Creates a new MethodSettings instance using the specified properties. + * @function create + * @memberof google.api.MethodSettings + * @static + * @param {google.api.IMethodSettings=} [properties] Properties to set + * @returns {google.api.MethodSettings} MethodSettings instance + */ + MethodSettings.create = function create(properties) { + return new MethodSettings(properties); + }; + + /** + * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * @function encode + * @memberof google.api.MethodSettings + * @static + * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) + $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoPopulatedFields != null && message.autoPopulatedFields.length) + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]); + return writer; + }; + + /** + * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.MethodSettings + * @static + * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.MethodSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.MethodSettings} MethodSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.autoPopulatedFields && message.autoPopulatedFields.length)) + message.autoPopulatedFields = []; + message.autoPopulatedFields.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.MethodSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.MethodSettings} MethodSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodSettings message. + * @function verify + * @memberof google.api.MethodSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.longRunning != null && message.hasOwnProperty("longRunning")) { + var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning); + if (error) + return "longRunning." + error; + } + if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) { + if (!Array.isArray(message.autoPopulatedFields)) + return "autoPopulatedFields: array expected"; + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + if (!$util.isString(message.autoPopulatedFields[i])) + return "autoPopulatedFields: string[] expected"; + } + return null; + }; + + /** + * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.MethodSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.MethodSettings} MethodSettings + */ + MethodSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.MethodSettings) + return object; + var message = new $root.google.api.MethodSettings(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.longRunning != null) { + if (typeof object.longRunning !== "object") + throw TypeError(".google.api.MethodSettings.longRunning: object expected"); + message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning); + } + if (object.autoPopulatedFields) { + if (!Array.isArray(object.autoPopulatedFields)) + throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected"); + message.autoPopulatedFields = []; + for (var i = 0; i < object.autoPopulatedFields.length; ++i) + message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]); + } + return message; + }; + + /** + * Creates a plain object from a MethodSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.MethodSettings + * @static + * @param {google.api.MethodSettings} message MethodSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.autoPopulatedFields = []; + if (options.defaults) { + object.selector = ""; + object.longRunning = null; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.longRunning != null && message.hasOwnProperty("longRunning")) + object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options); + if (message.autoPopulatedFields && message.autoPopulatedFields.length) { + object.autoPopulatedFields = []; + for (var j = 0; j < message.autoPopulatedFields.length; ++j) + object.autoPopulatedFields[j] = message.autoPopulatedFields[j]; + } + return object; + }; + + /** + * Converts this MethodSettings to JSON. + * @function toJSON + * @memberof google.api.MethodSettings + * @instance + * @returns {Object.} JSON object + */ + MethodSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodSettings + * @function getTypeUrl + * @memberof google.api.MethodSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.MethodSettings"; + }; + + MethodSettings.LongRunning = (function() { + + /** + * Properties of a LongRunning. + * @memberof google.api.MethodSettings + * @interface ILongRunning + * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay + * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier + * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay + * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout + */ + + /** + * Constructs a new LongRunning. + * @memberof google.api.MethodSettings + * @classdesc Represents a LongRunning. + * @implements ILongRunning + * @constructor + * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set + */ + function LongRunning(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LongRunning initialPollDelay. + * @member {google.protobuf.IDuration|null|undefined} initialPollDelay + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.initialPollDelay = null; + + /** + * LongRunning pollDelayMultiplier. + * @member {number} pollDelayMultiplier + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.pollDelayMultiplier = 0; + + /** + * LongRunning maxPollDelay. + * @member {google.protobuf.IDuration|null|undefined} maxPollDelay + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.maxPollDelay = null; + + /** + * LongRunning totalPollTimeout. + * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.totalPollTimeout = null; + + /** + * Creates a new LongRunning instance using the specified properties. + * @function create + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set + * @returns {google.api.MethodSettings.LongRunning} LongRunning instance + */ + LongRunning.create = function create(properties) { + return new LongRunning(properties); + }; + + /** + * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @function encode + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LongRunning.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay")) + $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier); + if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay")) + $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout")) + $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LongRunning.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LongRunning message from the specified reader or buffer. + * @function decode + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.MethodSettings.LongRunning} LongRunning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LongRunning.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.pollDelayMultiplier = reader.float(); + break; + } + case 3: { + message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LongRunning message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.MethodSettings.LongRunning} LongRunning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LongRunning.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LongRunning message. + * @function verify + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LongRunning.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) { + var error = $root.google.protobuf.Duration.verify(message.initialPollDelay); + if (error) + return "initialPollDelay." + error; + } + if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) + if (typeof message.pollDelayMultiplier !== "number") + return "pollDelayMultiplier: number expected"; + if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) { + var error = $root.google.protobuf.Duration.verify(message.maxPollDelay); + if (error) + return "maxPollDelay." + error; + } + if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) { + var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout); + if (error) + return "totalPollTimeout." + error; + } + return null; + }; + + /** + * Creates a LongRunning message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {Object.} object Plain object + * @returns {google.api.MethodSettings.LongRunning} LongRunning + */ + LongRunning.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.MethodSettings.LongRunning) + return object; + var message = new $root.google.api.MethodSettings.LongRunning(); + if (object.initialPollDelay != null) { + if (typeof object.initialPollDelay !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected"); + message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay); + } + if (object.pollDelayMultiplier != null) + message.pollDelayMultiplier = Number(object.pollDelayMultiplier); + if (object.maxPollDelay != null) { + if (typeof object.maxPollDelay !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected"); + message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay); + } + if (object.totalPollTimeout != null) { + if (typeof object.totalPollTimeout !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected"); + message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout); + } + return message; + }; + + /** + * Creates a plain object from a LongRunning message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.LongRunning} message LongRunning + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LongRunning.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.initialPollDelay = null; + object.pollDelayMultiplier = 0; + object.maxPollDelay = null; + object.totalPollTimeout = null; + } + if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) + object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options); + if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) + object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier; + if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) + object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options); + if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) + object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options); + return object; + }; + + /** + * Converts this LongRunning to JSON. + * @function toJSON + * @memberof google.api.MethodSettings.LongRunning + * @instance + * @returns {Object.} JSON object + */ + LongRunning.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LongRunning + * @function getTypeUrl + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.MethodSettings.LongRunning"; + }; + + return LongRunning; + })(); + + return MethodSettings; + })(); + + /** + * ClientLibraryOrganization enum. + * @name google.api.ClientLibraryOrganization + * @enum {number} + * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value + * @property {number} CLOUD=1 CLOUD value + * @property {number} ADS=2 ADS value + * @property {number} PHOTOS=3 PHOTOS value + * @property {number} STREET_VIEW=4 STREET_VIEW value + * @property {number} SHOPPING=5 SHOPPING value + * @property {number} GEO=6 GEO value + * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value + */ + api.ClientLibraryOrganization = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD"] = 1; + values[valuesById[2] = "ADS"] = 2; + values[valuesById[3] = "PHOTOS"] = 3; + values[valuesById[4] = "STREET_VIEW"] = 4; + values[valuesById[5] = "SHOPPING"] = 5; + values[valuesById[6] = "GEO"] = 6; + values[valuesById[7] = "GENERATIVE_AI"] = 7; + return values; + })(); + + /** + * ClientLibraryDestination enum. + * @name google.api.ClientLibraryDestination + * @enum {number} + * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value + * @property {number} GITHUB=10 GITHUB value + * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value + */ + api.ClientLibraryDestination = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0; + values[valuesById[10] = "GITHUB"] = 10; + values[valuesById[20] = "PACKAGE_MANAGER"] = 20; + return values; + })(); + + /** + * LaunchStage enum. + * @name google.api.LaunchStage + * @enum {number} + * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value + * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value + * @property {number} PRELAUNCH=7 PRELAUNCH value + * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value + * @property {number} ALPHA=2 ALPHA value + * @property {number} BETA=3 BETA value + * @property {number} GA=4 GA value + * @property {number} DEPRECATED=5 DEPRECATED value + */ + api.LaunchStage = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0; + values[valuesById[6] = "UNIMPLEMENTED"] = 6; + values[valuesById[7] = "PRELAUNCH"] = 7; + values[valuesById[1] = "EARLY_ACCESS"] = 1; + values[valuesById[2] = "ALPHA"] = 2; + values[valuesById[3] = "BETA"] = 3; + values[valuesById[4] = "GA"] = 4; + values[valuesById[5] = "DEPRECATED"] = 5; + return values; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + + return FileDescriptorSet; + })(); + + /** + * Edition enum. + * @name google.protobuf.Edition + * @enum {number} + * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value + * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value + * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value + * @property {number} EDITION_2023=1000 EDITION_2023 value + * @property {number} EDITION_2024=1001 EDITION_2024 value + * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value + * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value + * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value + * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value + * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value + * @property {number} EDITION_MAX=2147483647 EDITION_MAX value + */ + protobuf.Edition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EDITION_UNKNOWN"] = 0; + values[valuesById[998] = "EDITION_PROTO2"] = 998; + values[valuesById[999] = "EDITION_PROTO3"] = 999; + values[valuesById[1000] = "EDITION_2023"] = 1000; + values[valuesById[1001] = "EDITION_2024"] = 1001; + values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1; + values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2; + values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997; + values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998; + values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999; + values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647; + return values; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * FileDescriptorProto edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = 0; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.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["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 14: { + message.edition = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.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["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.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.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.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.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.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).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.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)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.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).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.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)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + * @property {Array.|null} [declaration] ExtensionRangeOptions declaration + * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features + * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + this.declaration = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ExtensionRangeOptions declaration. + * @member {Array.} declaration + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.declaration = $util.emptyArray; + + /** + * ExtensionRangeOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.features = null; + + /** + * ExtensionRangeOptions verification. + * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.verification = 1; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.declaration != null && message.declaration.length) + for (var i = 0; i < message.declaration.length; ++i) + $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.verification != null && Object.hasOwnProperty.call(message, "verification")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.declaration && message.declaration.length)) + message.declaration = []; + message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32())); + break; + } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.verification = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message.declaration != null && message.hasOwnProperty("declaration")) { + if (!Array.isArray(message.declaration)) + return "declaration: array expected"; + for (var i = 0; i < message.declaration.length; ++i) { + var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]); + if (error) + return "declaration." + error; + } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.verification != null && message.hasOwnProperty("verification")) + switch (message.verification) { + default: + return "verification: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object.declaration) { + if (!Array.isArray(object.declaration)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected"); + message.declaration = []; + for (var i = 0; i < object.declaration.length; ++i) { + if (typeof object.declaration[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected"); + message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]); + } + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + switch (object.verification) { + case "DECLARATION": + case 0: + message.verification = 0; + break; + default: + if (typeof object.verification === "number") { + message.verification = object.verification; + break; + } + break; + case "UNVERIFIED": + case 1: + message.verification = 1; + break; + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.declaration = []; + object.uninterpretedOption = []; + } + if (options.defaults) { + object.verification = options.enums === String ? "UNVERIFIED" : 1; + object.features = null; + } + if (message.declaration && message.declaration.length) { + object.declaration = []; + for (var j = 0; j < message.declaration.length; ++j) + object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options); + } + if (message.verification != null && message.hasOwnProperty("verification")) + object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + + ExtensionRangeOptions.Declaration = (function() { + + /** + * Properties of a Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @interface IDeclaration + * @property {number|null} [number] Declaration number + * @property {string|null} [fullName] Declaration fullName + * @property {string|null} [type] Declaration type + * @property {boolean|null} [reserved] Declaration reserved + * @property {boolean|null} [repeated] Declaration repeated + */ + + /** + * Constructs a new Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @classdesc Represents a Declaration. + * @implements IDeclaration + * @constructor + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + */ + function Declaration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Declaration number. + * @member {number} number + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.number = 0; + + /** + * Declaration fullName. + * @member {string} fullName + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.fullName = ""; + + /** + * Declaration type. + * @member {string} type + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.type = ""; + + /** + * Declaration reserved. + * @member {boolean} reserved + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.reserved = false; + + /** + * Declaration repeated. + * @member {boolean} repeated + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.repeated = false; + + /** + * Creates a new Declaration instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance + */ + Declaration.create = function create(properties) { + return new Declaration(properties); + }; + + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number); + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved); + if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated); + return writer; + }; + + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.number = reader.int32(); + break; + } + case 2: { + message.fullName = reader.string(); + break; + } + case 3: { + message.type = reader.string(); + break; + } + case 5: { + message.reserved = reader.bool(); + break; + } + case 6: { + message.repeated = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Declaration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Declaration message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Declaration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.fullName != null && message.hasOwnProperty("fullName")) + if (!$util.isString(message.fullName)) + return "fullName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.reserved != null && message.hasOwnProperty("reserved")) + if (typeof message.reserved !== "boolean") + return "reserved: boolean expected"; + if (message.repeated != null && message.hasOwnProperty("repeated")) + if (typeof message.repeated !== "boolean") + return "repeated: boolean expected"; + return null; + }; + + /** + * Creates a Declaration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + */ + Declaration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); + if (object.number != null) + message.number = object.number | 0; + if (object.fullName != null) + message.fullName = String(object.fullName); + if (object.type != null) + message.type = String(object.type); + if (object.reserved != null) + message.reserved = Boolean(object.reserved); + if (object.repeated != null) + message.repeated = Boolean(object.repeated); + return message; + }; + + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Declaration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.number = 0; + object.fullName = ""; + object.type = ""; + object.reserved = false; + object.repeated = false; + } + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.fullName != null && message.hasOwnProperty("fullName")) + object.fullName = message.fullName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.reserved != null && message.hasOwnProperty("reserved")) + object.reserved = message.reserved; + if (message.repeated != null && message.hasOwnProperty("repeated")) + object.repeated = message.repeated; + return object; + }; + + /** + * Converts this Declaration to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + * @returns {Object.} JSON object + */ + Declaration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Declaration + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration"; + }; + + return Declaration; + })(); + + /** + * VerificationState enum. + * @name google.protobuf.ExtensionRangeOptions.VerificationState + * @enum {number} + * @property {number} DECLARATION=0 DECLARATION value + * @property {number} UNVERIFIED=1 UNVERIFIED value + */ + ExtensionRangeOptions.VerificationState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DECLARATION"] = 0; + values[valuesById[1] = "UNVERIFIED"] = 1; + return values; + })(); + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.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.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 3: + case 2: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + 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.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.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.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.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.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.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 && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.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 (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.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).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.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)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.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.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.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.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.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.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.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.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.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.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.features = null; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; + } + } + return null; + }; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FileOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + object.features = null; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions deprecatedLegacyJsonFieldConflicts. + * @member {boolean} deprecatedLegacyJsonFieldConflicts + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + + /** + * MessageOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.features = null; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 11: { + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + } + case 12: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") + return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.deprecatedLegacyJsonFieldConflicts != null) + message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MessageOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {boolean|null} [debugRedact] FieldOptions debugRedact + * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention + * @property {Array.|null} [targets] FieldOptions targets + * @property {Array.|null} [editionDefaults] FieldOptions editionDefaults + * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.targets = []; + this.editionDefaults = []; + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions debugRedact. + * @member {boolean} debugRedact + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.debugRedact = false; + + /** + * FieldOptions retention. + * @member {google.protobuf.FieldOptions.OptionRetention} retention + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.retention = 0; + + /** + * FieldOptions targets. + * @member {Array.} targets + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.targets = $util.emptyArray; + + /** + * FieldOptions editionDefaults. + * @member {Array.} editionDefaults + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.editionDefaults = $util.emptyArray; + + /** + * FieldOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.features = null; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); + if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); + if (message.targets != null && message.targets.length) + for (var i = 0; i < message.targets.length; ++i) + writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]); + if (message.editionDefaults != null && message.editionDefaults.length) + for (var i = 0; i < message.editionDefaults.length; ++i) + $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 16: { + message.debugRedact = reader.bool(); + break; + } + case 17: { + message.retention = reader.int32(); + break; + } + case 19: { + if (!(message.targets && message.targets.length)) + message.targets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.targets.push(reader.int32()); + } else + message.targets.push(reader.int32()); + break; + } + case 20: { + if (!(message.editionDefaults && message.editionDefaults.length)) + message.editionDefaults = []; + message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32())); + break; + } + case 21: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (typeof message.debugRedact !== "boolean") + return "debugRedact: boolean expected"; + if (message.retention != null && message.hasOwnProperty("retention")) + switch (message.retention) { + default: + return "retention: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.targets != null && message.hasOwnProperty("targets")) { + if (!Array.isArray(message.targets)) + return "targets: array expected"; + for (var i = 0; i < message.targets.length; ++i) + switch (message.targets[i]) { + default: + return "targets: 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.editionDefaults != null && message.hasOwnProperty("editionDefaults")) { + if (!Array.isArray(message.editionDefaults)) + return "editionDefaults: array expected"; + for (var i = 0; i < message.editionDefaults.length; ++i) { + var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]); + if (error) + return "editionDefaults." + error; + } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.debugRedact != null) + message.debugRedact = Boolean(object.debugRedact); + switch (object.retention) { + default: + if (typeof object.retention === "number") { + message.retention = object.retention; + break; + } + break; + case "RETENTION_UNKNOWN": + case 0: + message.retention = 0; + break; + case "RETENTION_RUNTIME": + case 1: + message.retention = 1; + break; + case "RETENTION_SOURCE": + case 2: + message.retention = 2; + break; + } + if (object.targets) { + if (!Array.isArray(object.targets)) + throw TypeError(".google.protobuf.FieldOptions.targets: array expected"); + message.targets = []; + for (var i = 0; i < object.targets.length; ++i) + switch (object.targets[i]) { + default: + if (typeof object.targets[i] === "number") { + message.targets[i] = object.targets[i]; + break; + } + case "TARGET_TYPE_UNKNOWN": + case 0: + message.targets[i] = 0; + break; + case "TARGET_TYPE_FILE": + case 1: + message.targets[i] = 1; + break; + case "TARGET_TYPE_EXTENSION_RANGE": + case 2: + message.targets[i] = 2; + break; + case "TARGET_TYPE_MESSAGE": + case 3: + message.targets[i] = 3; + break; + case "TARGET_TYPE_FIELD": + case 4: + message.targets[i] = 4; + break; + case "TARGET_TYPE_ONEOF": + case 5: + message.targets[i] = 5; + break; + case "TARGET_TYPE_ENUM": + case 6: + message.targets[i] = 6; + break; + case "TARGET_TYPE_ENUM_ENTRY": + case 7: + message.targets[i] = 7; + break; + case "TARGET_TYPE_SERVICE": + case 8: + message.targets[i] = 8; + break; + case "TARGET_TYPE_METHOD": + case 9: + message.targets[i] = 9; + break; + } + } + if (object.editionDefaults) { + if (!Array.isArray(object.editionDefaults)) + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected"); + message.editionDefaults = []; + for (var i = 0; i < object.editionDefaults.length; ++i) { + if (typeof object.editionDefaults[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected"); + message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]); + } + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FieldOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; + case "IDENTIFIER": + case 8: + message[".google.api.fieldBehavior"][i] = 8; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.targets = []; + object.editionDefaults = []; + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object.unverifiedLazy = false; + object.debugRedact = false; + object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; + object.features = null; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + object.debugRedact = message.debugRedact; + if (message.retention != null && message.hasOwnProperty("retention")) + object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; + if (message.targets && message.targets.length) { + object.targets = []; + for (var j = 0; j < message.targets.length; ++j) + object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j]; + } + if (message.editionDefaults && message.editionDefaults.length) { + object.editionDefaults = []; + for (var j = 0; j < message.editionDefaults.length; ++j) + object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options); + } + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + return object; + }; + + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + /** + * OptionRetention enum. + * @name google.protobuf.FieldOptions.OptionRetention + * @enum {number} + * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value + * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value + * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value + */ + FieldOptions.OptionRetention = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETENTION_UNKNOWN"] = 0; + values[valuesById[1] = "RETENTION_RUNTIME"] = 1; + values[valuesById[2] = "RETENTION_SOURCE"] = 2; + return values; + })(); + + /** + * OptionTargetType enum. + * @name google.protobuf.FieldOptions.OptionTargetType + * @enum {number} + * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value + * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value + * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value + * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value + * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value + * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value + * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value + * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value + * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value + * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value + */ + FieldOptions.OptionTargetType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "TARGET_TYPE_FILE"] = 1; + values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2; + values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3; + values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4; + values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5; + values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6; + values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7; + values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8; + values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9; + return values; + })(); + + FieldOptions.EditionDefault = (function() { + + /** + * Properties of an EditionDefault. + * @memberof google.protobuf.FieldOptions + * @interface IEditionDefault + * @property {google.protobuf.Edition|null} [edition] EditionDefault edition + * @property {string|null} [value] EditionDefault value + */ + + /** + * Constructs a new EditionDefault. + * @memberof google.protobuf.FieldOptions + * @classdesc Represents an EditionDefault. + * @implements IEditionDefault + * @constructor + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + */ + function EditionDefault(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.edition = 0; + + /** + * EditionDefault value. + * @member {string} value + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.value = ""; + + /** + * Creates a new EditionDefault instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance + */ + EditionDefault.create = function create(properties) { + return new EditionDefault(properties); + }; + + /** + * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EditionDefault message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.edition = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EditionDefault message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EditionDefault message. + * @function verify + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EditionDefault.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + */ + EditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault) + return object; + var message = new $root.google.protobuf.FieldOptions.EditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EditionDefault.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.value = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this EditionDefault to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + * @returns {Object.} JSON object + */ + EditionDefault.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EditionDefault + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault"; + }; + + return EditionDefault; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.features = null; + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.OneofOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.features = null; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions deprecatedLegacyJsonFieldConflicts. + * @member {boolean} deprecatedLegacyJsonFieldConflicts + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + + /** + * EnumOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.features = null; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 6: { + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + } + case 7: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") + return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.deprecatedLegacyJsonFieldConflicts != null) + message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features + * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.features = null; + + /** + * EnumValueOptions debugRedact. + * @member {boolean} debugRedact + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.debugRedact = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deprecated = reader.bool(); + break; + } + case 2: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.debugRedact = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (typeof message.debugRedact !== "boolean") + return "debugRedact: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.debugRedact != null) + message.debugRedact = Boolean(object.debugRedact); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object.features = null; + object.debugRedact = false; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + object.debugRedact = message.debugRedact; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.features = null; + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 34: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ServiceOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object.features = null; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; + + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.features = null; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 35: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + return null; + }; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MethodOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object.features = null; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.FeatureSet = (function() { + + /** + * Properties of a FeatureSet. + * @memberof google.protobuf + * @interface IFeatureSet + * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence + * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType + * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding + * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation + * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding + * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat + */ + + /** + * Constructs a new FeatureSet. + * @memberof google.protobuf + * @classdesc Represents a FeatureSet. + * @implements IFeatureSet + * @constructor + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + */ + function FeatureSet(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureSet fieldPresence. + * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.fieldPresence = 0; + + /** + * FeatureSet enumType. + * @member {google.protobuf.FeatureSet.EnumType} enumType + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.enumType = 0; + + /** + * FeatureSet repeatedFieldEncoding. + * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.repeatedFieldEncoding = 0; + + /** + * FeatureSet utf8Validation. + * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.utf8Validation = 0; + + /** + * FeatureSet messageEncoding. + * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.messageEncoding = 0; + + /** + * FeatureSet jsonFormat. + * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.jsonFormat = 0; + + /** + * Creates a new FeatureSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + * @returns {google.protobuf.FeatureSet} FeatureSet instance + */ + FeatureSet.create = function create(properties) { + return new FeatureSet(properties); + }; + + /** + * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence); + if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType); + if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding); + if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation); + if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding); + if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat); + return writer; + }; + + /** + * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.fieldPresence = reader.int32(); + break; + } + case 2: { + message.enumType = reader.int32(); + break; + } + case 3: { + message.repeatedFieldEncoding = reader.int32(); + break; + } + case 4: { + message.utf8Validation = reader.int32(); + break; + } + case 5: { + message.messageEncoding = reader.int32(); + break; + } + case 6: { + message.jsonFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSet message. + * @function verify + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + switch (message.fieldPresence) { + default: + return "fieldPresence: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.enumType != null && message.hasOwnProperty("enumType")) + switch (message.enumType) { + default: + return "enumType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + switch (message.repeatedFieldEncoding) { + default: + return "repeatedFieldEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + switch (message.utf8Validation) { + default: + return "utf8Validation: enum value expected"; + case 0: + case 2: + case 3: + break; + } + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + switch (message.messageEncoding) { + default: + return "messageEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + switch (message.jsonFormat) { + default: + return "jsonFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSet} FeatureSet + */ + FeatureSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSet) + return object; + var message = new $root.google.protobuf.FeatureSet(); + switch (object.fieldPresence) { + default: + if (typeof object.fieldPresence === "number") { + message.fieldPresence = object.fieldPresence; + break; + } + break; + case "FIELD_PRESENCE_UNKNOWN": + case 0: + message.fieldPresence = 0; + break; + case "EXPLICIT": + case 1: + message.fieldPresence = 1; + break; + case "IMPLICIT": + case 2: + message.fieldPresence = 2; + break; + case "LEGACY_REQUIRED": + case 3: + message.fieldPresence = 3; + break; + } + switch (object.enumType) { + default: + if (typeof object.enumType === "number") { + message.enumType = object.enumType; + break; + } + break; + case "ENUM_TYPE_UNKNOWN": + case 0: + message.enumType = 0; + break; + case "OPEN": + case 1: + message.enumType = 1; + break; + case "CLOSED": + case 2: + message.enumType = 2; + break; + } + switch (object.repeatedFieldEncoding) { + default: + if (typeof object.repeatedFieldEncoding === "number") { + message.repeatedFieldEncoding = object.repeatedFieldEncoding; + break; + } + break; + case "REPEATED_FIELD_ENCODING_UNKNOWN": + case 0: + message.repeatedFieldEncoding = 0; + break; + case "PACKED": + case 1: + message.repeatedFieldEncoding = 1; + break; + case "EXPANDED": + case 2: + message.repeatedFieldEncoding = 2; + break; + } + switch (object.utf8Validation) { + default: + if (typeof object.utf8Validation === "number") { + message.utf8Validation = object.utf8Validation; + break; + } + break; + case "UTF8_VALIDATION_UNKNOWN": + case 0: + message.utf8Validation = 0; + break; + case "VERIFY": + case 2: + message.utf8Validation = 2; + break; + case "NONE": + case 3: + message.utf8Validation = 3; + break; + } + switch (object.messageEncoding) { + default: + if (typeof object.messageEncoding === "number") { + message.messageEncoding = object.messageEncoding; + break; + } + break; + case "MESSAGE_ENCODING_UNKNOWN": + case 0: + message.messageEncoding = 0; + break; + case "LENGTH_PREFIXED": + case 1: + message.messageEncoding = 1; + break; + case "DELIMITED": + case 2: + message.messageEncoding = 2; + break; + } + switch (object.jsonFormat) { + default: + if (typeof object.jsonFormat === "number") { + message.jsonFormat = object.jsonFormat; + break; + } + break; + case "JSON_FORMAT_UNKNOWN": + case 0: + message.jsonFormat = 0; + break; + case "ALLOW": + case 1: + message.jsonFormat = 1; + break; + case "LEGACY_BEST_EFFORT": + case 2: + message.jsonFormat = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.FeatureSet} message FeatureSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0; + object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0; + object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0; + object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0; + object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0; + object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0; + } + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence; + if (message.enumType != null && message.hasOwnProperty("enumType")) + object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType; + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding; + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation; + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding; + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat; + return object; + }; + + /** + * Converts this FeatureSet to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSet + * @instance + * @returns {Object.} JSON object + */ + FeatureSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSet + * @function getTypeUrl + * @memberof google.protobuf.FeatureSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSet"; + }; + + /** + * FieldPresence enum. + * @name google.protobuf.FeatureSet.FieldPresence + * @enum {number} + * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value + * @property {number} EXPLICIT=1 EXPLICIT value + * @property {number} IMPLICIT=2 IMPLICIT value + * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value + */ + FeatureSet.FieldPresence = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0; + values[valuesById[1] = "EXPLICIT"] = 1; + values[valuesById[2] = "IMPLICIT"] = 2; + values[valuesById[3] = "LEGACY_REQUIRED"] = 3; + return values; + })(); + + /** + * EnumType enum. + * @name google.protobuf.FeatureSet.EnumType + * @enum {number} + * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value + * @property {number} OPEN=1 OPEN value + * @property {number} CLOSED=2 CLOSED value + */ + FeatureSet.EnumType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "OPEN"] = 1; + values[valuesById[2] = "CLOSED"] = 2; + return values; + })(); + + /** + * RepeatedFieldEncoding enum. + * @name google.protobuf.FeatureSet.RepeatedFieldEncoding + * @enum {number} + * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value + * @property {number} PACKED=1 PACKED value + * @property {number} EXPANDED=2 EXPANDED value + */ + FeatureSet.RepeatedFieldEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "PACKED"] = 1; + values[valuesById[2] = "EXPANDED"] = 2; + return values; + })(); + + /** + * Utf8Validation enum. + * @name google.protobuf.FeatureSet.Utf8Validation + * @enum {number} + * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value + * @property {number} VERIFY=2 VERIFY value + * @property {number} NONE=3 NONE value + */ + FeatureSet.Utf8Validation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0; + values[valuesById[2] = "VERIFY"] = 2; + values[valuesById[3] = "NONE"] = 3; + return values; + })(); + + /** + * MessageEncoding enum. + * @name google.protobuf.FeatureSet.MessageEncoding + * @enum {number} + * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value + * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value + * @property {number} DELIMITED=2 DELIMITED value + */ + FeatureSet.MessageEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "LENGTH_PREFIXED"] = 1; + values[valuesById[2] = "DELIMITED"] = 2; + return values; + })(); + + /** + * JsonFormat enum. + * @name google.protobuf.FeatureSet.JsonFormat + * @enum {number} + * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value + * @property {number} ALLOW=1 ALLOW value + * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value + */ + FeatureSet.JsonFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0; + values[valuesById[1] = "ALLOW"] = 1; + values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2; + return values; + })(); + + return FeatureSet; + })(); + + protobuf.FeatureSetDefaults = (function() { + + /** + * Properties of a FeatureSetDefaults. + * @memberof google.protobuf + * @interface IFeatureSetDefaults + * @property {Array.|null} [defaults] FeatureSetDefaults defaults + * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition + * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition + */ + + /** + * Constructs a new FeatureSetDefaults. + * @memberof google.protobuf + * @classdesc Represents a FeatureSetDefaults. + * @implements IFeatureSetDefaults + * @constructor + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + */ + function FeatureSetDefaults(properties) { + this.defaults = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureSetDefaults defaults. + * @member {Array.} defaults + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.defaults = $util.emptyArray; + + /** + * FeatureSetDefaults minimumEdition. + * @member {google.protobuf.Edition} minimumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.minimumEdition = 0; + + /** + * FeatureSetDefaults maximumEdition. + * @member {google.protobuf.Edition} maximumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.maximumEdition = 0; + + /** + * Creates a new FeatureSetDefaults instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance + */ + FeatureSetDefaults.create = function create(properties) { + return new FeatureSetDefaults(properties); + }; + + /** + * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaults != null && message.defaults.length) + for (var i = 0; i < message.defaults.length; ++i) + $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition); + if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition); + return writer; + }; + + /** + * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.defaults && message.defaults.length)) + message.defaults = []; + message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32())); + break; + } + case 4: { + message.minimumEdition = reader.int32(); + break; + } + case 5: { + message.maximumEdition = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSetDefaults message. + * @function verify + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSetDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaults != null && message.hasOwnProperty("defaults")) { + if (!Array.isArray(message.defaults)) + return "defaults: array expected"; + for (var i = 0; i < message.defaults.length; ++i) { + var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]); + if (error) + return "defaults." + error; + } + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + switch (message.minimumEdition) { + default: + return "minimumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + switch (message.maximumEdition) { + default: + return "maximumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + return null; + }; + + /** + * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + */ + FeatureSetDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults) + return object; + var message = new $root.google.protobuf.FeatureSetDefaults(); + if (object.defaults) { + if (!Array.isArray(object.defaults)) + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected"); + message.defaults = []; + for (var i = 0; i < object.defaults.length; ++i) { + if (typeof object.defaults[i] !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected"); + message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]); + } + } + switch (object.minimumEdition) { + default: + if (typeof object.minimumEdition === "number") { + message.minimumEdition = object.minimumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.minimumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.minimumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.minimumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.minimumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.minimumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.minimumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.minimumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.minimumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.minimumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.minimumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.minimumEdition = 2147483647; + break; + } + switch (object.maximumEdition) { + default: + if (typeof object.maximumEdition === "number") { + message.maximumEdition = object.maximumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.maximumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.maximumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.maximumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.maximumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.maximumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.maximumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.maximumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.maximumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.maximumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.maximumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.maximumEdition = 2147483647; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSetDefaults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.defaults = []; + if (options.defaults) { + object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.defaults && message.defaults.length) { + object.defaults = []; + for (var j = 0; j < message.defaults.length; ++j) + object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options); + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition; + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition; + return object; + }; + + /** + * Converts this FeatureSetDefaults to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSetDefaults + * @instance + * @returns {Object.} JSON object + */ + FeatureSetDefaults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSetDefaults + * @function getTypeUrl + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults"; + }; + + FeatureSetDefaults.FeatureSetEditionDefault = (function() { + + /** + * Properties of a FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @interface IFeatureSetEditionDefault + * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition + * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features + */ + + /** + * Constructs a new FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @classdesc Represents a FeatureSetEditionDefault. + * @implements IFeatureSetEditionDefault + * @constructor + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set + */ + function FeatureSetEditionDefault(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureSetEditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + */ + FeatureSetEditionDefault.prototype.edition = 0; + + /** + * FeatureSetEditionDefault features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + */ + FeatureSetEditionDefault.prototype.features = null; + + /** + * Creates a new FeatureSetEditionDefault instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance + */ + FeatureSetEditionDefault.create = function create(properties) { + return new FeatureSetEditionDefault(properties); + }; + + /** + * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetEditionDefault.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetEditionDefault.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.edition = reader.int32(); + break; + } + case 2: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSetEditionDefault message. + * @function verify + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSetEditionDefault.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + return null; + }; + + /** + * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + */ + FeatureSetEditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) + return object; + var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + return message; + }; + + /** + * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSetEditionDefault.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.features = null; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this FeatureSetEditionDefault to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + * @returns {Object.} JSON object + */ + FeatureSetEditionDefault.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSetEditionDefault + * @function getTypeUrl + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"; + }; + + return FeatureSetEditionDefault; + })(); + + return FeatureSetDefaults; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; + + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Duration + * @function getTypeUrl + * @memberof google.protobuf.Duration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Duration"; + }; + + return Duration; + })(); + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + + return Timestamp; + })(); + + return protobuf; + })(); + + return google; + })(); + + return $root; +}); + + +/***/ }), + +/***/ 62995: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** +// ** All changes to this file may be overwritten. ** +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.protos = exports.IAMCredentialsClient = exports.v1 = void 0; +const v1 = __nccwpck_require__(70185); +exports.v1 = v1; +const IAMCredentialsClient = v1.IAMCredentialsClient; +exports.IAMCredentialsClient = IAMCredentialsClient; +exports["default"] = { v1, IAMCredentialsClient }; +const protos = __nccwpck_require__(65653); +exports.protos = protos; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 7833: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IAMCredentialsClient = void 0; +const jsonProtos = __nccwpck_require__(41530); +/** + * Client JSON configuration object, loaded from + * `src/v1/i_a_m_credentials_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +const gapicConfig = __nccwpck_require__(10289); +const version = (__nccwpck_require__(73486)/* .version */ .rE); +/** + * A service account is a special type of Google account that belongs to your + * application or a virtual machine (VM), instead of to an individual end user. + * Your application assumes the identity of the service account to call Google + * APIs, so that the users aren't directly involved. + * + * Service account credentials are used to temporarily assume the identity + * of the service account. Supported credential types include OAuth 2.0 access + * tokens, OpenID Connect ID tokens, self-signed JSON Web Tokens (JWTs), and + * more. + * @class + * @memberof v1 + */ +class IAMCredentialsClient { + /** + * Construct an instance of IAMCredentialsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new IAMCredentialsClient({fallback: true}, gax); + * ``` + */ + constructor(opts, gaxInstance) { + var _a, _b, _c, _d, _e; + this._terminated = false; + this.descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + // Ensure that options include all the required fields. + const staticMembers = this.constructor; + if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) && + (opts === null || opts === void 0 ? void 0 : opts.universeDomain) && + (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object' + ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] + : undefined; + this._universeDomain = + (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com'; + this._servicePath = 'iamcredentials.' + this._universeDomain; + const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath; + this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint)); + const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port; + const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {}; + const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function'); + opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = __nccwpck_require__(83697); + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + // Save options to use in initialize() method. + this._opts = opts; + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } + else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } + else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings('google.iam.credentials.v1.IAMCredentials', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.iAMCredentialsStub) { + return this.iAMCredentialsStub; + } + // Put together the "service stub" for + // google.iam.credentials.v1.IAMCredentials. + this.iAMCredentialsStub = this._gaxGrpc.createStub(this._opts.fallback + ? this._protos.lookupService('google.iam.credentials.v1.IAMCredentials') + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + this._protos.google.iam.credentials.v1.IAMCredentials, this._opts, this._providedCustomServicePath); + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const iAMCredentialsStubMethods = [ + 'generateAccessToken', + 'generateIdToken', + 'signBlob', + 'signJwt', + ]; + for (const methodName of iAMCredentialsStubMethods) { + const callPromise = this.iAMCredentialsStub.then(stub => (...args) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err) => () => { + throw err; + }); + const descriptor = undefined; + const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback); + this.innerApiCalls[methodName] = apiCall; + } + return this.iAMCredentialsStub; + } + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && + typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'iamcredentials.googleapis.com'; + } + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && + typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'iamcredentials.googleapis.com'; + } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + get universeDomain() { + return this._universeDomain; + } + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback) { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + generateAccessToken(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.generateAccessToken(request, options, callback); + } + generateIdToken(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.generateIdToken(request, options, callback); + } + signBlob(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.signBlob(request, options, callback); + } + signJwt(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.signJwt(request, options, callback); + } + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close() { + if (this.iAMCredentialsStub && !this._terminated) { + return this.iAMCredentialsStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} +exports.IAMCredentialsClient = IAMCredentialsClient; +//# sourceMappingURL=i_a_m_credentials_client.js.map + +/***/ }), + +/***/ 70185: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IAMCredentialsClient = void 0; +var i_a_m_credentials_client_1 = __nccwpck_require__(7833); +Object.defineProperty(exports, "IAMCredentialsClient", ({ enumerable: true, get: function () { return i_a_m_credentials_client_1.IAMCredentialsClient; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 257: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.registerAdminService = registerAdminService; +exports.addAdminServicesToServer = addAdminServicesToServer; +const registeredAdminServices = []; +function registerAdminService(getServiceDefinition, getHandlers) { + registeredAdminServices.push({ getServiceDefinition, getHandlers }); +} +function addAdminServicesToServer(server) { + for (const { getServiceDefinition, getHandlers } of registeredAdminServices) { + server.addService(getServiceDefinition(), getHandlers()); + } +} +//# sourceMappingURL=admin.js.map + +/***/ }), + +/***/ 21400: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BackoffTimeout = void 0; +const constants_1 = __nccwpck_require__(84623); +const logging = __nccwpck_require__(26239); +const TRACER_NAME = 'backoff'; +const INITIAL_BACKOFF_MS = 1000; +const BACKOFF_MULTIPLIER = 1.6; +const MAX_BACKOFF_MS = 120000; +const BACKOFF_JITTER = 0.2; +/** + * Get a number uniformly at random in the range [min, max) + * @param min + * @param max + */ +function uniformRandom(min, max) { + return Math.random() * (max - min) + min; +} +class BackoffTimeout { + constructor(callback, options) { + this.callback = callback; + /** + * The delay time at the start, and after each reset. + */ + this.initialDelay = INITIAL_BACKOFF_MS; + /** + * The exponential backoff multiplier. + */ + this.multiplier = BACKOFF_MULTIPLIER; + /** + * The maximum delay time + */ + this.maxDelay = MAX_BACKOFF_MS; + /** + * The maximum fraction by which the delay time can randomly vary after + * applying the multiplier. + */ + this.jitter = BACKOFF_JITTER; + /** + * Indicates whether the timer is currently running. + */ + this.running = false; + /** + * Indicates whether the timer should keep the Node process running if no + * other async operation is doing so. + */ + this.hasRef = true; + /** + * The time that the currently running timer was started. Only valid if + * running is true. + */ + this.startTime = new Date(); + /** + * The approximate time that the currently running timer will end. Only valid + * if running is true. + */ + this.endTime = new Date(); + this.id = BackoffTimeout.getNextId(); + if (options) { + if (options.initialDelay) { + this.initialDelay = options.initialDelay; + } + if (options.multiplier) { + this.multiplier = options.multiplier; + } + if (options.jitter) { + this.jitter = options.jitter; + } + if (options.maxDelay) { + this.maxDelay = options.maxDelay; + } + } + this.trace('constructed initialDelay=' + this.initialDelay + ' multiplier=' + this.multiplier + ' jitter=' + this.jitter + ' maxDelay=' + this.maxDelay); + this.nextDelay = this.initialDelay; + this.timerId = setTimeout(() => { }, 0); + clearTimeout(this.timerId); + } + static getNextId() { + return this.nextId++; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '{' + this.id + '} ' + text); + } + runTimer(delay) { + var _a, _b; + this.trace('runTimer(delay=' + delay + ')'); + this.endTime = this.startTime; + this.endTime.setMilliseconds(this.endTime.getMilliseconds() + delay); + clearTimeout(this.timerId); + this.timerId = setTimeout(() => { + this.trace('timer fired'); + this.running = false; + this.callback(); + }, delay); + if (!this.hasRef) { + (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + } + /** + * Call the callback after the current amount of delay time + */ + runOnce() { + this.trace('runOnce()'); + this.running = true; + this.startTime = new Date(); + this.runTimer(this.nextDelay); + const nextBackoff = Math.min(this.nextDelay * this.multiplier, this.maxDelay); + const jitterMagnitude = nextBackoff * this.jitter; + this.nextDelay = + nextBackoff + uniformRandom(-jitterMagnitude, jitterMagnitude); + } + /** + * Stop the timer. The callback will not be called until `runOnce` is called + * again. + */ + stop() { + this.trace('stop()'); + clearTimeout(this.timerId); + this.running = false; + } + /** + * Reset the delay time to its initial value. If the timer is still running, + * retroactively apply that reset to the current timer. + */ + reset() { + this.trace('reset() running=' + this.running); + this.nextDelay = this.initialDelay; + if (this.running) { + const now = new Date(); + const newEndTime = this.startTime; + newEndTime.setMilliseconds(newEndTime.getMilliseconds() + this.nextDelay); + clearTimeout(this.timerId); + if (now < newEndTime) { + this.runTimer(newEndTime.getTime() - now.getTime()); + } + else { + this.running = false; + } + } + } + /** + * Check whether the timer is currently running. + */ + isRunning() { + return this.running; + } + /** + * Set that while the timer is running, it should keep the Node process + * running. + */ + ref() { + var _a, _b; + this.hasRef = true; + (_b = (_a = this.timerId).ref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /** + * Set that while the timer is running, it should not keep the Node process + * running. + */ + unref() { + var _a, _b; + this.hasRef = false; + (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /** + * Get the approximate timestamp of when the timer will fire. Only valid if + * this.isRunning() is true. + */ + getEndTime() { + return this.endTime; + } +} +exports.BackoffTimeout = BackoffTimeout; +BackoffTimeout.nextId = 0; +//# sourceMappingURL=backoff-timeout.js.map + +/***/ }), + +/***/ 26159: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CallCredentials = void 0; +const metadata_1 = __nccwpck_require__(89173); +function isCurrentOauth2Client(client) { + return ('getRequestHeaders' in client && + typeof client.getRequestHeaders === 'function'); +} +/** + * A class that represents a generic method of adding authentication-related + * metadata on a per-request basis. + */ +class CallCredentials { + /** + * Creates a new CallCredentials object from a given function that generates + * Metadata objects. + * @param metadataGenerator A function that accepts a set of options, and + * generates a Metadata object based on these options, which is passed back + * to the caller via a supplied (err, metadata) callback. + */ + static createFromMetadataGenerator(metadataGenerator) { + return new SingleCallCredentials(metadataGenerator); + } + /** + * Create a gRPC credential from a Google credential object. + * @param googleCredentials The authentication client to use. + * @return The resulting CallCredentials object. + */ + static createFromGoogleCredential(googleCredentials) { + return CallCredentials.createFromMetadataGenerator((options, callback) => { + let getHeaders; + if (isCurrentOauth2Client(googleCredentials)) { + getHeaders = googleCredentials.getRequestHeaders(options.service_url); + } + else { + getHeaders = new Promise((resolve, reject) => { + googleCredentials.getRequestMetadata(options.service_url, (err, headers) => { + if (err) { + reject(err); + return; + } + if (!headers) { + reject(new Error('Headers not set by metadata plugin')); + return; + } + resolve(headers); + }); + }); + } + getHeaders.then(headers => { + const metadata = new metadata_1.Metadata(); + for (const key of Object.keys(headers)) { + metadata.add(key, headers[key]); + } + callback(null, metadata); + }, err => { + callback(err); + }); + }); + } + static createEmpty() { + return new EmptyCallCredentials(); + } +} +exports.CallCredentials = CallCredentials; +class ComposedCallCredentials extends CallCredentials { + constructor(creds) { + super(); + this.creds = creds; + } + async generateMetadata(options) { + const base = new metadata_1.Metadata(); + const generated = await Promise.all(this.creds.map(cred => cred.generateMetadata(options))); + for (const gen of generated) { + base.merge(gen); + } + return base; + } + compose(other) { + return new ComposedCallCredentials(this.creds.concat([other])); + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof ComposedCallCredentials) { + return this.creds.every((value, index) => value._equals(other.creds[index])); + } + else { + return false; + } + } +} +class SingleCallCredentials extends CallCredentials { + constructor(metadataGenerator) { + super(); + this.metadataGenerator = metadataGenerator; + } + generateMetadata(options) { + return new Promise((resolve, reject) => { + this.metadataGenerator(options, (err, metadata) => { + if (metadata !== undefined) { + resolve(metadata); + } + else { + reject(err); + } + }); + }); + } + compose(other) { + return new ComposedCallCredentials([this, other]); + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof SingleCallCredentials) { + return this.metadataGenerator === other.metadataGenerator; + } + else { + return false; + } + } +} +class EmptyCallCredentials extends CallCredentials { + generateMetadata(options) { + return Promise.resolve(new metadata_1.Metadata()); + } + compose(other) { + return other; + } + _equals(other) { + return other instanceof EmptyCallCredentials; + } +} +//# sourceMappingURL=call-credentials.js.map + +/***/ }), + +/***/ 91494: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.InterceptingListenerImpl = void 0; +exports.statusOrFromValue = statusOrFromValue; +exports.statusOrFromError = statusOrFromError; +exports.isInterceptingListener = isInterceptingListener; +const metadata_1 = __nccwpck_require__(89173); +function statusOrFromValue(value) { + return { + ok: true, + value: value + }; +} +function statusOrFromError(error) { + var _a; + return { + ok: false, + error: Object.assign(Object.assign({}, error), { metadata: (_a = error.metadata) !== null && _a !== void 0 ? _a : new metadata_1.Metadata() }) + }; +} +function isInterceptingListener(listener) { + return (listener.onReceiveMetadata !== undefined && + listener.onReceiveMetadata.length === 1); +} +class InterceptingListenerImpl { + constructor(listener, nextListener) { + this.listener = listener; + this.nextListener = nextListener; + this.processingMetadata = false; + this.hasPendingMessage = false; + this.processingMessage = false; + this.pendingStatus = null; + } + processPendingMessage() { + if (this.hasPendingMessage) { + this.nextListener.onReceiveMessage(this.pendingMessage); + this.pendingMessage = null; + this.hasPendingMessage = false; + } + } + processPendingStatus() { + if (this.pendingStatus) { + this.nextListener.onReceiveStatus(this.pendingStatus); + } + } + onReceiveMetadata(metadata) { + this.processingMetadata = true; + this.listener.onReceiveMetadata(metadata, metadata => { + this.processingMetadata = false; + this.nextListener.onReceiveMetadata(metadata); + this.processPendingMessage(); + this.processPendingStatus(); + }); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + /* If this listener processes messages asynchronously, the last message may + * be reordered with respect to the status */ + this.processingMessage = true; + this.listener.onReceiveMessage(message, msg => { + this.processingMessage = false; + if (this.processingMetadata) { + this.pendingMessage = msg; + this.hasPendingMessage = true; + } + else { + this.nextListener.onReceiveMessage(msg); + this.processPendingStatus(); + } + }); + } + onReceiveStatus(status) { + this.listener.onReceiveStatus(status, processedStatus => { + if (this.processingMetadata || this.processingMessage) { + this.pendingStatus = processedStatus; + } + else { + this.nextListener.onReceiveStatus(processedStatus); + } + }); + } +} +exports.InterceptingListenerImpl = InterceptingListenerImpl; +//# sourceMappingURL=call-interface.js.map + +/***/ }), + +/***/ 50256: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getNextCallNumber = getNextCallNumber; +let nextCallNumber = 0; +function getNextCallNumber() { + return nextCallNumber++; +} +//# sourceMappingURL=call-number.js.map + +/***/ }), + +/***/ 9812: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = void 0; +exports.callErrorFromStatus = callErrorFromStatus; +const events_1 = __nccwpck_require__(24434); +const stream_1 = __nccwpck_require__(2203); +const constants_1 = __nccwpck_require__(84623); +/** + * Construct a ServiceError from a StatusObject. This function exists primarily + * as an attempt to make the error stack trace clearly communicate that the + * error is not necessarily a problem in gRPC itself. + * @param status + */ +function callErrorFromStatus(status, callerStack) { + const message = `${status.code} ${constants_1.Status[status.code]}: ${status.details}`; + const error = new Error(message); + const stack = `${error.stack}\nfor call at\n${callerStack}`; + return Object.assign(new Error(message), status, { stack }); +} +class ClientUnaryCallImpl extends events_1.EventEmitter { + constructor() { + super(); + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } +} +exports.ClientUnaryCallImpl = ClientUnaryCallImpl; +class ClientReadableStreamImpl extends stream_1.Readable { + constructor(deserialize) { + super({ objectMode: true }); + this.deserialize = deserialize; + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } + _read(_size) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); + } +} +exports.ClientReadableStreamImpl = ClientReadableStreamImpl; +class ClientWritableStreamImpl extends stream_1.Writable { + constructor(serialize) { + super({ objectMode: true }); + this.serialize = serialize; + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } + _write(chunk, encoding, cb) { + var _a; + const context = { + callback: cb, + }; + const flags = Number(encoding); + if (!Number.isNaN(flags)) { + context.flags = flags; + } + (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); + } + _final(cb) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); + cb(); + } +} +exports.ClientWritableStreamImpl = ClientWritableStreamImpl; +class ClientDuplexStreamImpl extends stream_1.Duplex { + constructor(serialize, deserialize) { + super({ objectMode: true }); + this.serialize = serialize; + this.deserialize = deserialize; + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } + _read(_size) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); + } + _write(chunk, encoding, cb) { + var _a; + const context = { + callback: cb, + }; + const flags = Number(encoding); + if (!Number.isNaN(flags)) { + context.flags = flags; + } + (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); + } + _final(cb) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); + cb(); + } +} +exports.ClientDuplexStreamImpl = ClientDuplexStreamImpl; +//# sourceMappingURL=call.js.map + +/***/ }), + +/***/ 75591: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FileWatcherCertificateProvider = void 0; +const fs = __nccwpck_require__(79896); +const logging = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +const util_1 = __nccwpck_require__(39023); +const TRACER_NAME = 'certificate_provider'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const readFilePromise = (0, util_1.promisify)(fs.readFile); +class FileWatcherCertificateProvider { + constructor(config) { + this.config = config; + this.refreshTimer = null; + this.fileResultPromise = null; + this.latestCaUpdate = undefined; + this.caListeners = new Set(); + this.latestIdentityUpdate = undefined; + this.identityListeners = new Set(); + this.lastUpdateTime = null; + if ((config.certificateFile === undefined) !== (config.privateKeyFile === undefined)) { + throw new Error('certificateFile and privateKeyFile must be set or unset together'); + } + if (config.certificateFile === undefined && config.caCertificateFile === undefined) { + throw new Error('At least one of certificateFile and caCertificateFile must be set'); + } + trace('File watcher constructed with config ' + JSON.stringify(config)); + } + updateCertificates() { + if (this.fileResultPromise) { + return; + } + this.fileResultPromise = Promise.allSettled([ + this.config.certificateFile ? readFilePromise(this.config.certificateFile) : Promise.reject(), + this.config.privateKeyFile ? readFilePromise(this.config.privateKeyFile) : Promise.reject(), + this.config.caCertificateFile ? readFilePromise(this.config.caCertificateFile) : Promise.reject() + ]); + this.fileResultPromise.then(([certificateResult, privateKeyResult, caCertificateResult]) => { + if (!this.refreshTimer) { + return; + } + trace('File watcher read certificates certificate ' + certificateResult.status + ', privateKey ' + privateKeyResult.status + ', CA certificate ' + caCertificateResult.status); + this.lastUpdateTime = new Date(); + this.fileResultPromise = null; + if (certificateResult.status === 'fulfilled' && privateKeyResult.status === 'fulfilled') { + this.latestIdentityUpdate = { + certificate: certificateResult.value, + privateKey: privateKeyResult.value + }; + } + else { + this.latestIdentityUpdate = null; + } + if (caCertificateResult.status === 'fulfilled') { + this.latestCaUpdate = { + caCertificate: caCertificateResult.value + }; + } + else { + this.latestCaUpdate = null; + } + for (const listener of this.identityListeners) { + listener(this.latestIdentityUpdate); + } + for (const listener of this.caListeners) { + listener(this.latestCaUpdate); + } + }); + trace('File watcher initiated certificate update'); + } + maybeStartWatchingFiles() { + if (!this.refreshTimer) { + /* Perform the first read immediately, but only if there was not already + * a recent read, to avoid reading from the filesystem significantly more + * frequently than configured if the provider quickly switches between + * used and unused. */ + const timeSinceLastUpdate = this.lastUpdateTime ? (new Date()).getTime() - this.lastUpdateTime.getTime() : Infinity; + if (timeSinceLastUpdate > this.config.refreshIntervalMs) { + this.updateCertificates(); + } + if (timeSinceLastUpdate > this.config.refreshIntervalMs * 2) { + // Clear out old updates if they are definitely stale + this.latestCaUpdate = undefined; + this.latestIdentityUpdate = undefined; + } + this.refreshTimer = setInterval(() => this.updateCertificates(), this.config.refreshIntervalMs); + trace('File watcher started watching'); + } + } + maybeStopWatchingFiles() { + if (this.caListeners.size === 0 && this.identityListeners.size === 0) { + this.fileResultPromise = null; + if (this.refreshTimer) { + clearInterval(this.refreshTimer); + this.refreshTimer = null; + } + } + } + addCaCertificateListener(listener) { + this.caListeners.add(listener); + this.maybeStartWatchingFiles(); + if (this.latestCaUpdate !== undefined) { + process.nextTick(listener, this.latestCaUpdate); + } + } + removeCaCertificateListener(listener) { + this.caListeners.delete(listener); + this.maybeStopWatchingFiles(); + } + addIdentityCertificateListener(listener) { + this.identityListeners.add(listener); + this.maybeStartWatchingFiles(); + if (this.latestIdentityUpdate !== undefined) { + process.nextTick(listener, this.latestIdentityUpdate); + } + } + removeIdentityCertificateListener(listener) { + this.identityListeners.delete(listener); + this.maybeStopWatchingFiles(); + } +} +exports.FileWatcherCertificateProvider = FileWatcherCertificateProvider; +//# sourceMappingURL=certificate-provider.js.map + +/***/ }), + +/***/ 22377: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChannelCredentials = void 0; +exports.createCertificateProviderChannelCredentials = createCertificateProviderChannelCredentials; +const tls_1 = __nccwpck_require__(64756); +const call_credentials_1 = __nccwpck_require__(26159); +const tls_helpers_1 = __nccwpck_require__(99619); +const uri_parser_1 = __nccwpck_require__(70210); +const resolver_1 = __nccwpck_require__(30842); +const logging_1 = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function verifyIsBufferOrNull(obj, friendlyName) { + if (obj && !(obj instanceof Buffer)) { + throw new TypeError(`${friendlyName}, if provided, must be a Buffer.`); + } +} +/** + * A class that contains credentials for communicating over a channel, as well + * as a set of per-call credentials, which are applied to every method call made + * over a channel initialized with an instance of this class. + */ +class ChannelCredentials { + /** + * Returns a copy of this object with the included set of per-call credentials + * expanded to include callCredentials. + * @param callCredentials A CallCredentials object to associate with this + * instance. + */ + compose(callCredentials) { + return new ComposedChannelCredentialsImpl(this, callCredentials); + } + /** + * Return a new ChannelCredentials instance with a given set of credentials. + * The resulting instance can be used to construct a Channel that communicates + * over TLS. + * @param rootCerts The root certificate data. + * @param privateKey The client certificate private key, if available. + * @param certChain The client certificate key chain, if available. + * @param verifyOptions Additional options to modify certificate verification + */ + static createSsl(rootCerts, privateKey, certChain, verifyOptions) { + var _a; + verifyIsBufferOrNull(rootCerts, 'Root certificate'); + verifyIsBufferOrNull(privateKey, 'Private key'); + verifyIsBufferOrNull(certChain, 'Certificate chain'); + if (privateKey && !certChain) { + throw new Error('Private key must be given with accompanying certificate chain'); + } + if (!privateKey && certChain) { + throw new Error('Certificate chain must be given with accompanying private key'); + } + const secureContext = (0, tls_1.createSecureContext)({ + ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined, + key: privateKey !== null && privateKey !== void 0 ? privateKey : undefined, + cert: certChain !== null && certChain !== void 0 ? certChain : undefined, + ciphers: tls_helpers_1.CIPHER_SUITES, + }); + return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); + } + /** + * Return a new ChannelCredentials instance with credentials created using + * the provided secureContext. The resulting instances can be used to + * construct a Channel that communicates over TLS. gRPC will not override + * anything in the provided secureContext, so the environment variables + * GRPC_SSL_CIPHER_SUITES and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH will + * not be applied. + * @param secureContext The return value of tls.createSecureContext() + * @param verifyOptions Additional options to modify certificate verification + */ + static createFromSecureContext(secureContext, verifyOptions) { + return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); + } + /** + * Return a new ChannelCredentials instance with no credentials. + */ + static createInsecure() { + return new InsecureChannelCredentialsImpl(); + } +} +exports.ChannelCredentials = ChannelCredentials; +class InsecureChannelCredentialsImpl extends ChannelCredentials { + constructor() { + super(); + } + compose(callCredentials) { + throw new Error('Cannot compose insecure credentials'); + } + _isSecure() { + return false; + } + _equals(other) { + return other instanceof InsecureChannelCredentialsImpl; + } + _createSecureConnector(channelTarget, options, callCredentials) { + return { + connect(socket) { + return Promise.resolve({ + socket, + secure: false + }); + }, + waitForReady: () => { + return Promise.resolve(); + }, + getCallCredentials: () => { + return callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty(); + }, + destroy() { } + }; + } +} +function getConnectionOptions(secureContext, verifyOptions, channelTarget, options) { + var _a, _b; + const connectionOptions = { + secureContext: secureContext + }; + let realTarget = channelTarget; + if ('grpc.http_connect_target' in options) { + const parsedTarget = (0, uri_parser_1.parseUri)(options['grpc.http_connect_target']); + if (parsedTarget) { + realTarget = parsedTarget; + } + } + const targetPath = (0, resolver_1.getDefaultAuthority)(realTarget); + const hostPort = (0, uri_parser_1.splitHostPort)(targetPath); + const remoteHost = (_a = hostPort === null || hostPort === void 0 ? void 0 : hostPort.host) !== null && _a !== void 0 ? _a : targetPath; + connectionOptions.host = remoteHost; + if (verifyOptions.checkServerIdentity) { + connectionOptions.checkServerIdentity = verifyOptions.checkServerIdentity; + } + if (verifyOptions.rejectUnauthorized !== undefined) { + connectionOptions.rejectUnauthorized = verifyOptions.rejectUnauthorized; + } + connectionOptions.ALPNProtocols = ['h2']; + if (options['grpc.ssl_target_name_override']) { + const sslTargetNameOverride = options['grpc.ssl_target_name_override']; + const originalCheckServerIdentity = (_b = connectionOptions.checkServerIdentity) !== null && _b !== void 0 ? _b : tls_1.checkServerIdentity; + connectionOptions.checkServerIdentity = (host, cert) => { + return originalCheckServerIdentity(sslTargetNameOverride, cert); + }; + connectionOptions.servername = sslTargetNameOverride; + } + else { + connectionOptions.servername = remoteHost; + } + if (options['grpc-node.tls_enable_trace']) { + connectionOptions.enableTrace = true; + } + return connectionOptions; +} +class SecureConnectorImpl { + constructor(connectionOptions, callCredentials) { + this.connectionOptions = connectionOptions; + this.callCredentials = callCredentials; + } + connect(socket) { + const tlsConnectOptions = Object.assign({ socket: socket }, this.connectionOptions); + return new Promise((resolve, reject) => { + const tlsSocket = (0, tls_1.connect)(tlsConnectOptions, () => { + var _a; + if (((_a = this.connectionOptions.rejectUnauthorized) !== null && _a !== void 0 ? _a : true) && !tlsSocket.authorized) { + reject(tlsSocket.authorizationError); + return; + } + resolve({ + socket: tlsSocket, + secure: true + }); + }); + tlsSocket.on('error', (error) => { + reject(error); + }); + }); + } + waitForReady() { + return Promise.resolve(); + } + getCallCredentials() { + return this.callCredentials; + } + destroy() { } +} +class SecureChannelCredentialsImpl extends ChannelCredentials { + constructor(secureContext, verifyOptions) { + super(); + this.secureContext = secureContext; + this.verifyOptions = verifyOptions; + } + _isSecure() { + return true; + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof SecureChannelCredentialsImpl) { + return (this.secureContext === other.secureContext && + this.verifyOptions.checkServerIdentity === + other.verifyOptions.checkServerIdentity); + } + else { + return false; + } + } + _createSecureConnector(channelTarget, options, callCredentials) { + const connectionOptions = getConnectionOptions(this.secureContext, this.verifyOptions, channelTarget, options); + return new SecureConnectorImpl(connectionOptions, callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); + } +} +class CertificateProviderChannelCredentialsImpl extends ChannelCredentials { + constructor(caCertificateProvider, identityCertificateProvider, verifyOptions) { + super(); + this.caCertificateProvider = caCertificateProvider; + this.identityCertificateProvider = identityCertificateProvider; + this.verifyOptions = verifyOptions; + this.refcount = 0; + /** + * `undefined` means that the certificates have not yet been loaded. `null` + * means that an attempt to load them has completed, and has failed. + */ + this.latestCaUpdate = undefined; + /** + * `undefined` means that the certificates have not yet been loaded. `null` + * means that an attempt to load them has completed, and has failed. + */ + this.latestIdentityUpdate = undefined; + this.caCertificateUpdateListener = this.handleCaCertificateUpdate.bind(this); + this.identityCertificateUpdateListener = this.handleIdentityCertitificateUpdate.bind(this); + this.secureContextWatchers = []; + } + _isSecure() { + return true; + } + _equals(other) { + var _a, _b; + if (this === other) { + return true; + } + if (other instanceof CertificateProviderChannelCredentialsImpl) { + return this.caCertificateProvider === other.caCertificateProvider && + this.identityCertificateProvider === other.identityCertificateProvider && + ((_a = this.verifyOptions) === null || _a === void 0 ? void 0 : _a.checkServerIdentity) === ((_b = other.verifyOptions) === null || _b === void 0 ? void 0 : _b.checkServerIdentity); + } + else { + return false; + } + } + ref() { + var _a; + if (this.refcount === 0) { + this.caCertificateProvider.addCaCertificateListener(this.caCertificateUpdateListener); + (_a = this.identityCertificateProvider) === null || _a === void 0 ? void 0 : _a.addIdentityCertificateListener(this.identityCertificateUpdateListener); + } + this.refcount += 1; + } + unref() { + var _a; + this.refcount -= 1; + if (this.refcount === 0) { + this.caCertificateProvider.removeCaCertificateListener(this.caCertificateUpdateListener); + (_a = this.identityCertificateProvider) === null || _a === void 0 ? void 0 : _a.removeIdentityCertificateListener(this.identityCertificateUpdateListener); + } + } + _createSecureConnector(channelTarget, options, callCredentials) { + this.ref(); + return new CertificateProviderChannelCredentialsImpl.SecureConnectorImpl(this, channelTarget, options, callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); + } + maybeUpdateWatchers() { + if (this.hasReceivedUpdates()) { + for (const watcher of this.secureContextWatchers) { + watcher(this.getLatestSecureContext()); + } + this.secureContextWatchers = []; + } + } + handleCaCertificateUpdate(update) { + this.latestCaUpdate = update; + this.maybeUpdateWatchers(); + } + handleIdentityCertitificateUpdate(update) { + this.latestIdentityUpdate = update; + this.maybeUpdateWatchers(); + } + hasReceivedUpdates() { + if (this.latestCaUpdate === undefined) { + return false; + } + if (this.identityCertificateProvider && this.latestIdentityUpdate === undefined) { + return false; + } + return true; + } + getSecureContext() { + if (this.hasReceivedUpdates()) { + return Promise.resolve(this.getLatestSecureContext()); + } + else { + return new Promise(resolve => { + this.secureContextWatchers.push(resolve); + }); + } + } + getLatestSecureContext() { + var _a, _b; + if (!this.latestCaUpdate) { + return null; + } + if (this.identityCertificateProvider !== null && !this.latestIdentityUpdate) { + return null; + } + try { + return (0, tls_1.createSecureContext)({ + ca: this.latestCaUpdate.caCertificate, + key: (_a = this.latestIdentityUpdate) === null || _a === void 0 ? void 0 : _a.privateKey, + cert: (_b = this.latestIdentityUpdate) === null || _b === void 0 ? void 0 : _b.certificate, + ciphers: tls_helpers_1.CIPHER_SUITES + }); + } + catch (e) { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to createSecureContext with error ' + e.message); + return null; + } + } +} +CertificateProviderChannelCredentialsImpl.SecureConnectorImpl = class { + constructor(parent, channelTarget, options, callCredentials) { + this.parent = parent; + this.channelTarget = channelTarget; + this.options = options; + this.callCredentials = callCredentials; + } + connect(socket) { + return new Promise((resolve, reject) => { + const secureContext = this.parent.getLatestSecureContext(); + if (!secureContext) { + reject(new Error('Failed to load credentials')); + return; + } + if (socket.closed) { + reject(new Error('Socket closed while loading credentials')); + } + const connnectionOptions = getConnectionOptions(secureContext, this.parent.verifyOptions, this.channelTarget, this.options); + const tlsConnectOptions = Object.assign({ socket: socket }, connnectionOptions); + const closeCallback = () => { + reject(new Error('Socket closed')); + }; + const errorCallback = (error) => { + reject(error); + }; + const tlsSocket = (0, tls_1.connect)(tlsConnectOptions, () => { + var _a; + tlsSocket.removeListener('close', closeCallback); + tlsSocket.removeListener('error', errorCallback); + if (((_a = this.parent.verifyOptions.rejectUnauthorized) !== null && _a !== void 0 ? _a : true) && !tlsSocket.authorized) { + reject(tlsSocket.authorizationError); + return; + } + resolve({ + socket: tlsSocket, + secure: true + }); + }); + tlsSocket.once('close', closeCallback); + tlsSocket.once('error', errorCallback); + }); + } + async waitForReady() { + await this.parent.getSecureContext(); + } + getCallCredentials() { + return this.callCredentials; + } + destroy() { + this.parent.unref(); + } +}; +function createCertificateProviderChannelCredentials(caCertificateProvider, identityCertificateProvider, verifyOptions) { + return new CertificateProviderChannelCredentialsImpl(caCertificateProvider, identityCertificateProvider, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); +} +class ComposedChannelCredentialsImpl extends ChannelCredentials { + constructor(channelCredentials, callCredentials) { + super(); + this.channelCredentials = channelCredentials; + this.callCredentials = callCredentials; + if (!channelCredentials._isSecure()) { + throw new Error('Cannot compose insecure credentials'); + } + } + compose(callCredentials) { + const combinedCallCredentials = this.callCredentials.compose(callCredentials); + return new ComposedChannelCredentialsImpl(this.channelCredentials, combinedCallCredentials); + } + _isSecure() { + return true; + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof ComposedChannelCredentialsImpl) { + return (this.channelCredentials._equals(other.channelCredentials) && + this.callCredentials._equals(other.callCredentials)); + } + else { + return false; + } + } + _createSecureConnector(channelTarget, options, callCredentials) { + const combinedCallCredentials = this.callCredentials.compose(callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); + return this.channelCredentials._createSecureConnector(channelTarget, options, combinedCallCredentials); + } +} +//# sourceMappingURL=channel-credentials.js.map + +/***/ }), + +/***/ 63301: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.recognizedOptions = void 0; +exports.channelOptionsEqual = channelOptionsEqual; +/** + * This is for checking provided options at runtime. This is an object for + * easier membership checking. + */ +exports.recognizedOptions = { + 'grpc.ssl_target_name_override': true, + 'grpc.primary_user_agent': true, + 'grpc.secondary_user_agent': true, + 'grpc.default_authority': true, + 'grpc.keepalive_time_ms': true, + 'grpc.keepalive_timeout_ms': true, + 'grpc.keepalive_permit_without_calls': true, + 'grpc.service_config': true, + 'grpc.max_concurrent_streams': true, + 'grpc.initial_reconnect_backoff_ms': true, + 'grpc.max_reconnect_backoff_ms': true, + 'grpc.use_local_subchannel_pool': true, + 'grpc.max_send_message_length': true, + 'grpc.max_receive_message_length': true, + 'grpc.enable_http_proxy': true, + 'grpc.enable_channelz': true, + 'grpc.dns_min_time_between_resolutions_ms': true, + 'grpc.enable_retries': true, + 'grpc.per_rpc_retry_buffer_size': true, + 'grpc.retry_buffer_size': true, + 'grpc.max_connection_age_ms': true, + 'grpc.max_connection_age_grace_ms': true, + 'grpc-node.max_session_memory': true, + 'grpc.service_config_disable_resolution': true, + 'grpc.client_idle_timeout_ms': true, + 'grpc-node.tls_enable_trace': true, + 'grpc.lb.ring_hash.ring_size_cap': true, + 'grpc-node.retry_max_attempts_limit': true, + 'grpc-node.flow_control_window': true, + 'grpc.server_call_metric_recording': true +}; +function channelOptionsEqual(options1, options2) { + const keys1 = Object.keys(options1).sort(); + const keys2 = Object.keys(options2).sort(); + if (keys1.length !== keys2.length) { + return false; + } + for (let i = 0; i < keys1.length; i += 1) { + if (keys1[i] !== keys2[i]) { + return false; + } + if (options1[keys1[i]] !== options2[keys2[i]]) { + return false; + } + } + return true; +} +//# sourceMappingURL=channel-options.js.map + +/***/ }), + +/***/ 59737: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChannelImplementation = void 0; +const channel_credentials_1 = __nccwpck_require__(22377); +const internal_channel_1 = __nccwpck_require__(9487); +class ChannelImplementation { + constructor(target, credentials, options) { + if (typeof target !== 'string') { + throw new TypeError('Channel target must be a string'); + } + if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { + throw new TypeError('Channel credentials must be a ChannelCredentials object'); + } + if (options) { + if (typeof options !== 'object') { + throw new TypeError('Channel options must be an object'); + } + } + this.internalChannel = new internal_channel_1.InternalChannel(target, credentials, options); + } + close() { + this.internalChannel.close(); + } + getTarget() { + return this.internalChannel.getTarget(); + } + getConnectivityState(tryToConnect) { + return this.internalChannel.getConnectivityState(tryToConnect); + } + watchConnectivityState(currentState, deadline, callback) { + this.internalChannel.watchConnectivityState(currentState, deadline, callback); + } + /** + * Get the channelz reference object for this channel. The returned value is + * garbage if channelz is disabled for this channel. + * @returns + */ + getChannelzRef() { + return this.internalChannel.getChannelzRef(); + } + createCall(method, deadline, host, parentCall, propagateFlags) { + if (typeof method !== 'string') { + throw new TypeError('Channel#createCall: method must be a string'); + } + if (!(typeof deadline === 'number' || deadline instanceof Date)) { + throw new TypeError('Channel#createCall: deadline must be a number or Date'); + } + return this.internalChannel.createCall(method, deadline, host, parentCall, propagateFlags); + } +} +exports.ChannelImplementation = ChannelImplementation; +//# sourceMappingURL=channel.js.map + +/***/ }), + +/***/ 50379: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0; +exports.unregisterChannelzRef = unregisterChannelzRef; +exports.getChannelzHandlers = getChannelzHandlers; +exports.getChannelzServiceDefinition = getChannelzServiceDefinition; +exports.setup = setup; +const net_1 = __nccwpck_require__(69278); +const ordered_map_1 = __nccwpck_require__(10570); +const connectivity_state_1 = __nccwpck_require__(63827); +const constants_1 = __nccwpck_require__(84623); +const subchannel_address_1 = __nccwpck_require__(95080); +const admin_1 = __nccwpck_require__(257); +const make_client_1 = __nccwpck_require__(79364); +function channelRefToMessage(ref) { + return { + channel_id: ref.id, + name: ref.name, + }; +} +function subchannelRefToMessage(ref) { + return { + subchannel_id: ref.id, + name: ref.name, + }; +} +function serverRefToMessage(ref) { + return { + server_id: ref.id, + }; +} +function socketRefToMessage(ref) { + return { + socket_id: ref.id, + name: ref.name, + }; +} +/** + * The loose upper bound on the number of events that should be retained in a + * trace. This may be exceeded by up to a factor of 2. Arbitrarily chosen as a + * number that should be large enough to contain the recent relevant + * information, but small enough to not use excessive memory. + */ +const TARGET_RETAINED_TRACES = 32; +/** + * Default number of sockets/servers/channels/subchannels to return + */ +const DEFAULT_MAX_RESULTS = 100; +class ChannelzTraceStub { + constructor() { + this.events = []; + this.creationTimestamp = new Date(); + this.eventsLogged = 0; + } + addTrace() { } + getTraceMessage() { + return { + creation_timestamp: dateToProtoTimestamp(this.creationTimestamp), + num_events_logged: this.eventsLogged, + events: [], + }; + } +} +exports.ChannelzTraceStub = ChannelzTraceStub; +class ChannelzTrace { + constructor() { + this.events = []; + this.eventsLogged = 0; + this.creationTimestamp = new Date(); + } + addTrace(severity, description, child) { + const timestamp = new Date(); + this.events.push({ + description: description, + severity: severity, + timestamp: timestamp, + childChannel: (child === null || child === void 0 ? void 0 : child.kind) === 'channel' ? child : undefined, + childSubchannel: (child === null || child === void 0 ? void 0 : child.kind) === 'subchannel' ? child : undefined, + }); + // Whenever the trace array gets too large, discard the first half + if (this.events.length >= TARGET_RETAINED_TRACES * 2) { + this.events = this.events.slice(TARGET_RETAINED_TRACES); + } + this.eventsLogged += 1; + } + getTraceMessage() { + return { + creation_timestamp: dateToProtoTimestamp(this.creationTimestamp), + num_events_logged: this.eventsLogged, + events: this.events.map(event => { + return { + description: event.description, + severity: event.severity, + timestamp: dateToProtoTimestamp(event.timestamp), + channel_ref: event.childChannel + ? channelRefToMessage(event.childChannel) + : null, + subchannel_ref: event.childSubchannel + ? subchannelRefToMessage(event.childSubchannel) + : null, + }; + }), + }; + } +} +exports.ChannelzTrace = ChannelzTrace; +class ChannelzChildrenTracker { + constructor() { + this.channelChildren = new ordered_map_1.OrderedMap(); + this.subchannelChildren = new ordered_map_1.OrderedMap(); + this.socketChildren = new ordered_map_1.OrderedMap(); + this.trackerMap = { + ["channel" /* EntityTypes.channel */]: this.channelChildren, + ["subchannel" /* EntityTypes.subchannel */]: this.subchannelChildren, + ["socket" /* EntityTypes.socket */]: this.socketChildren, + }; + } + refChild(child) { + const tracker = this.trackerMap[child.kind]; + const trackedChild = tracker.find(child.id); + if (trackedChild.equals(tracker.end())) { + tracker.setElement(child.id, { + ref: child, + count: 1, + }, trackedChild); + } + else { + trackedChild.pointer[1].count += 1; + } + } + unrefChild(child) { + const tracker = this.trackerMap[child.kind]; + const trackedChild = tracker.getElementByKey(child.id); + if (trackedChild !== undefined) { + trackedChild.count -= 1; + if (trackedChild.count === 0) { + tracker.eraseElementByKey(child.id); + } + } + } + getChildLists() { + return { + channels: this.channelChildren, + subchannels: this.subchannelChildren, + sockets: this.socketChildren, + }; + } +} +exports.ChannelzChildrenTracker = ChannelzChildrenTracker; +class ChannelzChildrenTrackerStub extends ChannelzChildrenTracker { + refChild() { } + unrefChild() { } +} +exports.ChannelzChildrenTrackerStub = ChannelzChildrenTrackerStub; +class ChannelzCallTracker { + constructor() { + this.callsStarted = 0; + this.callsSucceeded = 0; + this.callsFailed = 0; + this.lastCallStartedTimestamp = null; + } + addCallStarted() { + this.callsStarted += 1; + this.lastCallStartedTimestamp = new Date(); + } + addCallSucceeded() { + this.callsSucceeded += 1; + } + addCallFailed() { + this.callsFailed += 1; + } +} +exports.ChannelzCallTracker = ChannelzCallTracker; +class ChannelzCallTrackerStub extends ChannelzCallTracker { + addCallStarted() { } + addCallSucceeded() { } + addCallFailed() { } +} +exports.ChannelzCallTrackerStub = ChannelzCallTrackerStub; +const entityMaps = { + ["channel" /* EntityTypes.channel */]: new ordered_map_1.OrderedMap(), + ["subchannel" /* EntityTypes.subchannel */]: new ordered_map_1.OrderedMap(), + ["server" /* EntityTypes.server */]: new ordered_map_1.OrderedMap(), + ["socket" /* EntityTypes.socket */]: new ordered_map_1.OrderedMap(), +}; +const generateRegisterFn = (kind) => { + let nextId = 1; + function getNextId() { + return nextId++; + } + const entityMap = entityMaps[kind]; + return (name, getInfo, channelzEnabled) => { + const id = getNextId(); + const ref = { id, name, kind }; + if (channelzEnabled) { + entityMap.setElement(id, { ref, getInfo }); + } + return ref; + }; +}; +exports.registerChannelzChannel = generateRegisterFn("channel" /* EntityTypes.channel */); +exports.registerChannelzSubchannel = generateRegisterFn("subchannel" /* EntityTypes.subchannel */); +exports.registerChannelzServer = generateRegisterFn("server" /* EntityTypes.server */); +exports.registerChannelzSocket = generateRegisterFn("socket" /* EntityTypes.socket */); +function unregisterChannelzRef(ref) { + entityMaps[ref.kind].eraseElementByKey(ref.id); +} +/** + * Parse a single section of an IPv6 address as two bytes + * @param addressSection A hexadecimal string of length up to 4 + * @returns The pair of bytes representing this address section + */ +function parseIPv6Section(addressSection) { + const numberValue = Number.parseInt(addressSection, 16); + return [(numberValue / 256) | 0, numberValue % 256]; +} +/** + * Parse a chunk of an IPv6 address string to some number of bytes + * @param addressChunk Some number of segments of up to 4 hexadecimal + * characters each, joined by colons. + * @returns The list of bytes representing this address chunk + */ +function parseIPv6Chunk(addressChunk) { + if (addressChunk === '') { + return []; + } + const bytePairs = addressChunk + .split(':') + .map(section => parseIPv6Section(section)); + const result = []; + return result.concat(...bytePairs); +} +function isIPv6MappedIPv4(ipAddress) { + return (0, net_1.isIPv6)(ipAddress) && ipAddress.toLowerCase().startsWith('::ffff:') && (0, net_1.isIPv4)(ipAddress.substring(7)); +} +/** + * Prerequisite: isIPv4(ipAddress) + * @param ipAddress + * @returns + */ +function ipv4AddressStringToBuffer(ipAddress) { + return Buffer.from(Uint8Array.from(ipAddress.split('.').map(segment => Number.parseInt(segment)))); +} +/** + * Converts an IPv4 or IPv6 address from string representation to binary + * representation + * @param ipAddress an IP address in standard IPv4 or IPv6 text format + * @returns + */ +function ipAddressStringToBuffer(ipAddress) { + if ((0, net_1.isIPv4)(ipAddress)) { + return ipv4AddressStringToBuffer(ipAddress); + } + else if (isIPv6MappedIPv4(ipAddress)) { + return ipv4AddressStringToBuffer(ipAddress.substring(7)); + } + else if ((0, net_1.isIPv6)(ipAddress)) { + let leftSection; + let rightSection; + const doubleColonIndex = ipAddress.indexOf('::'); + if (doubleColonIndex === -1) { + leftSection = ipAddress; + rightSection = ''; + } + else { + leftSection = ipAddress.substring(0, doubleColonIndex); + rightSection = ipAddress.substring(doubleColonIndex + 2); + } + const leftBuffer = Buffer.from(parseIPv6Chunk(leftSection)); + const rightBuffer = Buffer.from(parseIPv6Chunk(rightSection)); + const middleBuffer = Buffer.alloc(16 - leftBuffer.length - rightBuffer.length, 0); + return Buffer.concat([leftBuffer, middleBuffer, rightBuffer]); + } + else { + return null; + } +} +function connectivityStateToMessage(state) { + switch (state) { + case connectivity_state_1.ConnectivityState.CONNECTING: + return { + state: 'CONNECTING', + }; + case connectivity_state_1.ConnectivityState.IDLE: + return { + state: 'IDLE', + }; + case connectivity_state_1.ConnectivityState.READY: + return { + state: 'READY', + }; + case connectivity_state_1.ConnectivityState.SHUTDOWN: + return { + state: 'SHUTDOWN', + }; + case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: + return { + state: 'TRANSIENT_FAILURE', + }; + default: + return { + state: 'UNKNOWN', + }; + } +} +function dateToProtoTimestamp(date) { + if (!date) { + return null; + } + const millisSinceEpoch = date.getTime(); + return { + seconds: (millisSinceEpoch / 1000) | 0, + nanos: (millisSinceEpoch % 1000) * 1000000, + }; +} +function getChannelMessage(channelEntry) { + const resolvedInfo = channelEntry.getInfo(); + const channelRef = []; + const subchannelRef = []; + resolvedInfo.children.channels.forEach(el => { + channelRef.push(channelRefToMessage(el[1].ref)); + }); + resolvedInfo.children.subchannels.forEach(el => { + subchannelRef.push(subchannelRefToMessage(el[1].ref)); + }); + return { + ref: channelRefToMessage(channelEntry.ref), + data: { + target: resolvedInfo.target, + state: connectivityStateToMessage(resolvedInfo.state), + calls_started: resolvedInfo.callTracker.callsStarted, + calls_succeeded: resolvedInfo.callTracker.callsSucceeded, + calls_failed: resolvedInfo.callTracker.callsFailed, + last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), + trace: resolvedInfo.trace.getTraceMessage(), + }, + channel_ref: channelRef, + subchannel_ref: subchannelRef, + }; +} +function GetChannel(call, callback) { + const channelId = parseInt(call.request.channel_id, 10); + const channelEntry = entityMaps["channel" /* EntityTypes.channel */].getElementByKey(channelId); + if (channelEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No channel data found for id ' + channelId, + }); + return; + } + callback(null, { channel: getChannelMessage(channelEntry) }); +} +function GetTopChannels(call, callback) { + const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; + const resultList = []; + const startId = parseInt(call.request.start_channel_id, 10); + const channelEntries = entityMaps["channel" /* EntityTypes.channel */]; + let i; + for (i = channelEntries.lowerBound(startId); !i.equals(channelEntries.end()) && resultList.length < maxResults; i = i.next()) { + resultList.push(getChannelMessage(i.pointer[1])); + } + callback(null, { + channel: resultList, + end: i.equals(channelEntries.end()), + }); +} +function getServerMessage(serverEntry) { + const resolvedInfo = serverEntry.getInfo(); + const listenSocket = []; + resolvedInfo.listenerChildren.sockets.forEach(el => { + listenSocket.push(socketRefToMessage(el[1].ref)); + }); + return { + ref: serverRefToMessage(serverEntry.ref), + data: { + calls_started: resolvedInfo.callTracker.callsStarted, + calls_succeeded: resolvedInfo.callTracker.callsSucceeded, + calls_failed: resolvedInfo.callTracker.callsFailed, + last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), + trace: resolvedInfo.trace.getTraceMessage(), + }, + listen_socket: listenSocket, + }; +} +function GetServer(call, callback) { + const serverId = parseInt(call.request.server_id, 10); + const serverEntries = entityMaps["server" /* EntityTypes.server */]; + const serverEntry = serverEntries.getElementByKey(serverId); + if (serverEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No server data found for id ' + serverId, + }); + return; + } + callback(null, { server: getServerMessage(serverEntry) }); +} +function GetServers(call, callback) { + const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; + const startId = parseInt(call.request.start_server_id, 10); + const serverEntries = entityMaps["server" /* EntityTypes.server */]; + const resultList = []; + let i; + for (i = serverEntries.lowerBound(startId); !i.equals(serverEntries.end()) && resultList.length < maxResults; i = i.next()) { + resultList.push(getServerMessage(i.pointer[1])); + } + callback(null, { + server: resultList, + end: i.equals(serverEntries.end()), + }); +} +function GetSubchannel(call, callback) { + const subchannelId = parseInt(call.request.subchannel_id, 10); + const subchannelEntry = entityMaps["subchannel" /* EntityTypes.subchannel */].getElementByKey(subchannelId); + if (subchannelEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No subchannel data found for id ' + subchannelId, + }); + return; + } + const resolvedInfo = subchannelEntry.getInfo(); + const listenSocket = []; + resolvedInfo.children.sockets.forEach(el => { + listenSocket.push(socketRefToMessage(el[1].ref)); + }); + const subchannelMessage = { + ref: subchannelRefToMessage(subchannelEntry.ref), + data: { + target: resolvedInfo.target, + state: connectivityStateToMessage(resolvedInfo.state), + calls_started: resolvedInfo.callTracker.callsStarted, + calls_succeeded: resolvedInfo.callTracker.callsSucceeded, + calls_failed: resolvedInfo.callTracker.callsFailed, + last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), + trace: resolvedInfo.trace.getTraceMessage(), + }, + socket_ref: listenSocket, + }; + callback(null, { subchannel: subchannelMessage }); +} +function subchannelAddressToAddressMessage(subchannelAddress) { + var _a; + if ((0, subchannel_address_1.isTcpSubchannelAddress)(subchannelAddress)) { + return { + address: 'tcpip_address', + tcpip_address: { + ip_address: (_a = ipAddressStringToBuffer(subchannelAddress.host)) !== null && _a !== void 0 ? _a : undefined, + port: subchannelAddress.port, + }, + }; + } + else { + return { + address: 'uds_address', + uds_address: { + filename: subchannelAddress.path, + }, + }; + } +} +function GetSocket(call, callback) { + var _a, _b, _c, _d, _e; + const socketId = parseInt(call.request.socket_id, 10); + const socketEntry = entityMaps["socket" /* EntityTypes.socket */].getElementByKey(socketId); + if (socketEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No socket data found for id ' + socketId, + }); + return; + } + const resolvedInfo = socketEntry.getInfo(); + const securityMessage = resolvedInfo.security + ? { + model: 'tls', + tls: { + cipher_suite: resolvedInfo.security.cipherSuiteStandardName + ? 'standard_name' + : 'other_name', + standard_name: (_a = resolvedInfo.security.cipherSuiteStandardName) !== null && _a !== void 0 ? _a : undefined, + other_name: (_b = resolvedInfo.security.cipherSuiteOtherName) !== null && _b !== void 0 ? _b : undefined, + local_certificate: (_c = resolvedInfo.security.localCertificate) !== null && _c !== void 0 ? _c : undefined, + remote_certificate: (_d = resolvedInfo.security.remoteCertificate) !== null && _d !== void 0 ? _d : undefined, + }, + } + : null; + const socketMessage = { + ref: socketRefToMessage(socketEntry.ref), + local: resolvedInfo.localAddress + ? subchannelAddressToAddressMessage(resolvedInfo.localAddress) + : null, + remote: resolvedInfo.remoteAddress + ? subchannelAddressToAddressMessage(resolvedInfo.remoteAddress) + : null, + remote_name: (_e = resolvedInfo.remoteName) !== null && _e !== void 0 ? _e : undefined, + security: securityMessage, + data: { + keep_alives_sent: resolvedInfo.keepAlivesSent, + streams_started: resolvedInfo.streamsStarted, + streams_succeeded: resolvedInfo.streamsSucceeded, + streams_failed: resolvedInfo.streamsFailed, + last_local_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastLocalStreamCreatedTimestamp), + last_remote_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastRemoteStreamCreatedTimestamp), + messages_received: resolvedInfo.messagesReceived, + messages_sent: resolvedInfo.messagesSent, + last_message_received_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageReceivedTimestamp), + last_message_sent_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageSentTimestamp), + local_flow_control_window: resolvedInfo.localFlowControlWindow + ? { value: resolvedInfo.localFlowControlWindow } + : null, + remote_flow_control_window: resolvedInfo.remoteFlowControlWindow + ? { value: resolvedInfo.remoteFlowControlWindow } + : null, + }, + }; + callback(null, { socket: socketMessage }); +} +function GetServerSockets(call, callback) { + const serverId = parseInt(call.request.server_id, 10); + const serverEntry = entityMaps["server" /* EntityTypes.server */].getElementByKey(serverId); + if (serverEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No server data found for id ' + serverId, + }); + return; + } + const startId = parseInt(call.request.start_socket_id, 10); + const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; + const resolvedInfo = serverEntry.getInfo(); + // If we wanted to include listener sockets in the result, this line would + // instead say + // const allSockets = resolvedInfo.listenerChildren.sockets.concat(resolvedInfo.sessionChildren.sockets).sort((ref1, ref2) => ref1.id - ref2.id); + const allSockets = resolvedInfo.sessionChildren.sockets; + const resultList = []; + let i; + for (i = allSockets.lowerBound(startId); !i.equals(allSockets.end()) && resultList.length < maxResults; i = i.next()) { + resultList.push(socketRefToMessage(i.pointer[1].ref)); + } + callback(null, { + socket_ref: resultList, + end: i.equals(allSockets.end()), + }); +} +function getChannelzHandlers() { + return { + GetChannel, + GetTopChannels, + GetServer, + GetServers, + GetSubchannel, + GetSocket, + GetServerSockets, + }; +} +let loadedChannelzDefinition = null; +function getChannelzServiceDefinition() { + if (loadedChannelzDefinition) { + return loadedChannelzDefinition; + } + /* The purpose of this complexity is to avoid loading @grpc/proto-loader at + * runtime for users who will not use/enable channelz. */ + const loaderLoadSync = (__nccwpck_require__(48481)/* .loadSync */ .Yi); + const loadedProto = loaderLoadSync('channelz.proto', { + keepCase: true, + longs: String, + enums: String, + defaults: true, + oneofs: true, + includeDirs: [__nccwpck_require__.ab + "proto"], + }); + const channelzGrpcObject = (0, make_client_1.loadPackageDefinition)(loadedProto); + loadedChannelzDefinition = + channelzGrpcObject.grpc.channelz.v1.Channelz.service; + return loadedChannelzDefinition; +} +function setup() { + (0, admin_1.registerAdminService)(getChannelzServiceDefinition, getChannelzHandlers); +} +//# sourceMappingURL=channelz.js.map + +/***/ }), + +/***/ 13388: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0; +exports.getInterceptingCall = getInterceptingCall; +const metadata_1 = __nccwpck_require__(89173); +const call_interface_1 = __nccwpck_require__(91494); +const constants_1 = __nccwpck_require__(84623); +const error_1 = __nccwpck_require__(27116); +/** + * Error class associated with passing both interceptors and interceptor + * providers to a client constructor or as call options. + */ +class InterceptorConfigurationError extends Error { + constructor(message) { + super(message); + this.name = 'InterceptorConfigurationError'; + Error.captureStackTrace(this, InterceptorConfigurationError); + } +} +exports.InterceptorConfigurationError = InterceptorConfigurationError; +class ListenerBuilder { + constructor() { + this.metadata = undefined; + this.message = undefined; + this.status = undefined; + } + withOnReceiveMetadata(onReceiveMetadata) { + this.metadata = onReceiveMetadata; + return this; + } + withOnReceiveMessage(onReceiveMessage) { + this.message = onReceiveMessage; + return this; + } + withOnReceiveStatus(onReceiveStatus) { + this.status = onReceiveStatus; + return this; + } + build() { + return { + onReceiveMetadata: this.metadata, + onReceiveMessage: this.message, + onReceiveStatus: this.status, + }; + } +} +exports.ListenerBuilder = ListenerBuilder; +class RequesterBuilder { + constructor() { + this.start = undefined; + this.message = undefined; + this.halfClose = undefined; + this.cancel = undefined; + } + withStart(start) { + this.start = start; + return this; + } + withSendMessage(sendMessage) { + this.message = sendMessage; + return this; + } + withHalfClose(halfClose) { + this.halfClose = halfClose; + return this; + } + withCancel(cancel) { + this.cancel = cancel; + return this; + } + build() { + return { + start: this.start, + sendMessage: this.message, + halfClose: this.halfClose, + cancel: this.cancel, + }; + } +} +exports.RequesterBuilder = RequesterBuilder; +/** + * A Listener with a default pass-through implementation of each method. Used + * for filling out Listeners with some methods omitted. + */ +const defaultListener = { + onReceiveMetadata: (metadata, next) => { + next(metadata); + }, + onReceiveMessage: (message, next) => { + next(message); + }, + onReceiveStatus: (status, next) => { + next(status); + }, +}; +/** + * A Requester with a default pass-through implementation of each method. Used + * for filling out Requesters with some methods omitted. + */ +const defaultRequester = { + start: (metadata, listener, next) => { + next(metadata, listener); + }, + sendMessage: (message, next) => { + next(message); + }, + halfClose: next => { + next(); + }, + cancel: next => { + next(); + }, +}; +class InterceptingCall { + constructor(nextCall, requester) { + var _a, _b, _c, _d; + this.nextCall = nextCall; + /** + * Indicates that metadata has been passed to the requester's start + * method but it has not been passed to the corresponding next callback + */ + this.processingMetadata = false; + /** + * Message context for a pending message that is waiting for + */ + this.pendingMessageContext = null; + /** + * Indicates that a message has been passed to the requester's sendMessage + * method but it has not been passed to the corresponding next callback + */ + this.processingMessage = false; + /** + * Indicates that a status was received but could not be propagated because + * a message was still being processed. + */ + this.pendingHalfClose = false; + if (requester) { + this.requester = { + start: (_a = requester.start) !== null && _a !== void 0 ? _a : defaultRequester.start, + sendMessage: (_b = requester.sendMessage) !== null && _b !== void 0 ? _b : defaultRequester.sendMessage, + halfClose: (_c = requester.halfClose) !== null && _c !== void 0 ? _c : defaultRequester.halfClose, + cancel: (_d = requester.cancel) !== null && _d !== void 0 ? _d : defaultRequester.cancel, + }; + } + else { + this.requester = defaultRequester; + } + } + cancelWithStatus(status, details) { + this.requester.cancel(() => { + this.nextCall.cancelWithStatus(status, details); + }); + } + getPeer() { + return this.nextCall.getPeer(); + } + processPendingMessage() { + if (this.pendingMessageContext) { + this.nextCall.sendMessageWithContext(this.pendingMessageContext, this.pendingMessage); + this.pendingMessageContext = null; + this.pendingMessage = null; + } + } + processPendingHalfClose() { + if (this.pendingHalfClose) { + this.nextCall.halfClose(); + } + } + start(metadata, interceptingListener) { + var _a, _b, _c, _d, _e, _f; + const fullInterceptingListener = { + onReceiveMetadata: (_b = (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(interceptingListener)) !== null && _b !== void 0 ? _b : (metadata => { }), + onReceiveMessage: (_d = (_c = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _c === void 0 ? void 0 : _c.bind(interceptingListener)) !== null && _d !== void 0 ? _d : (message => { }), + onReceiveStatus: (_f = (_e = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _e === void 0 ? void 0 : _e.bind(interceptingListener)) !== null && _f !== void 0 ? _f : (status => { }), + }; + this.processingMetadata = true; + this.requester.start(metadata, fullInterceptingListener, (md, listener) => { + var _a, _b, _c; + this.processingMetadata = false; + let finalInterceptingListener; + if ((0, call_interface_1.isInterceptingListener)(listener)) { + finalInterceptingListener = listener; + } + else { + const fullListener = { + onReceiveMetadata: (_a = listener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultListener.onReceiveMetadata, + onReceiveMessage: (_b = listener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultListener.onReceiveMessage, + onReceiveStatus: (_c = listener.onReceiveStatus) !== null && _c !== void 0 ? _c : defaultListener.onReceiveStatus, + }; + finalInterceptingListener = new call_interface_1.InterceptingListenerImpl(fullListener, fullInterceptingListener); + } + this.nextCall.start(md, finalInterceptingListener); + this.processPendingMessage(); + this.processPendingHalfClose(); + }); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessageWithContext(context, message) { + this.processingMessage = true; + this.requester.sendMessage(message, finalMessage => { + this.processingMessage = false; + if (this.processingMetadata) { + this.pendingMessageContext = context; + this.pendingMessage = message; + } + else { + this.nextCall.sendMessageWithContext(context, finalMessage); + this.processPendingHalfClose(); + } + }); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessage(message) { + this.sendMessageWithContext({}, message); + } + startRead() { + this.nextCall.startRead(); + } + halfClose() { + this.requester.halfClose(() => { + if (this.processingMetadata || this.processingMessage) { + this.pendingHalfClose = true; + } + else { + this.nextCall.halfClose(); + } + }); + } + getAuthContext() { + return this.nextCall.getAuthContext(); + } +} +exports.InterceptingCall = InterceptingCall; +function getCall(channel, path, options) { + var _a, _b; + const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a : Infinity; + const host = options.host; + const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null; + const propagateFlags = options.propagate_flags; + const credentials = options.credentials; + const call = channel.createCall(path, deadline, host, parent, propagateFlags); + if (credentials) { + call.setCredentials(credentials); + } + return call; +} +/** + * InterceptingCall implementation that directly owns the underlying Call + * object and handles serialization and deseraizliation. + */ +class BaseInterceptingCall { + constructor(call, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + methodDefinition) { + this.call = call; + this.methodDefinition = methodDefinition; + } + cancelWithStatus(status, details) { + this.call.cancelWithStatus(status, details); + } + getPeer() { + return this.call.getPeer(); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessageWithContext(context, message) { + let serialized; + try { + serialized = this.methodDefinition.requestSerialize(message); + } + catch (e) { + this.call.cancelWithStatus(constants_1.Status.INTERNAL, `Request message serialization failure: ${(0, error_1.getErrorMessage)(e)}`); + return; + } + this.call.sendMessageWithContext(context, serialized); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessage(message) { + this.sendMessageWithContext({}, message); + } + start(metadata, interceptingListener) { + let readError = null; + this.call.start(metadata, { + onReceiveMetadata: metadata => { + var _a; + (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, metadata); + }, + onReceiveMessage: message => { + var _a; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let deserialized; + try { + deserialized = this.methodDefinition.responseDeserialize(message); + } + catch (e) { + readError = { + code: constants_1.Status.INTERNAL, + details: `Response message parsing error: ${(0, error_1.getErrorMessage)(e)}`, + metadata: new metadata_1.Metadata(), + }; + this.call.cancelWithStatus(readError.code, readError.details); + return; + } + (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, deserialized); + }, + onReceiveStatus: status => { + var _a, _b; + if (readError) { + (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, readError); + } + else { + (_b = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(interceptingListener, status); + } + }, + }); + } + startRead() { + this.call.startRead(); + } + halfClose() { + this.call.halfClose(); + } + getAuthContext() { + return this.call.getAuthContext(); + } +} +/** + * BaseInterceptingCall with special-cased behavior for methods with unary + * responses. + */ +class BaseUnaryInterceptingCall extends BaseInterceptingCall { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + constructor(call, methodDefinition) { + super(call, methodDefinition); + } + start(metadata, listener) { + var _a, _b; + let receivedMessage = false; + const wrapperListener = { + onReceiveMetadata: (_b = (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(listener)) !== null && _b !== void 0 ? _b : (metadata => { }), + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage: (message) => { + var _a; + receivedMessage = true; + (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, message); + }, + onReceiveStatus: (status) => { + var _a, _b; + if (!receivedMessage) { + (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, null); + } + (_b = listener === null || listener === void 0 ? void 0 : listener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(listener, status); + }, + }; + super.start(metadata, wrapperListener); + this.call.startRead(); + } +} +/** + * BaseInterceptingCall with special-cased behavior for methods with streaming + * responses. + */ +class BaseStreamingInterceptingCall extends BaseInterceptingCall { +} +function getBottomInterceptingCall(channel, options, +// eslint-disable-next-line @typescript-eslint/no-explicit-any +methodDefinition) { + const call = getCall(channel, methodDefinition.path, options); + if (methodDefinition.responseStream) { + return new BaseStreamingInterceptingCall(call, methodDefinition); + } + else { + return new BaseUnaryInterceptingCall(call, methodDefinition); + } +} +function getInterceptingCall(interceptorArgs, +// eslint-disable-next-line @typescript-eslint/no-explicit-any +methodDefinition, options, channel) { + if (interceptorArgs.clientInterceptors.length > 0 && + interceptorArgs.clientInterceptorProviders.length > 0) { + throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as options ' + + 'to the client constructor. Only one of these is allowed.'); + } + if (interceptorArgs.callInterceptors.length > 0 && + interceptorArgs.callInterceptorProviders.length > 0) { + throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as call ' + + 'options. Only one of these is allowed.'); + } + let interceptors = []; + // Interceptors passed to the call override interceptors passed to the client constructor + if (interceptorArgs.callInterceptors.length > 0 || + interceptorArgs.callInterceptorProviders.length > 0) { + interceptors = [] + .concat(interceptorArgs.callInterceptors, interceptorArgs.callInterceptorProviders.map(provider => provider(methodDefinition))) + .filter(interceptor => interceptor); + // Filter out falsy values when providers return nothing + } + else { + interceptors = [] + .concat(interceptorArgs.clientInterceptors, interceptorArgs.clientInterceptorProviders.map(provider => provider(methodDefinition))) + .filter(interceptor => interceptor); + // Filter out falsy values when providers return nothing + } + const interceptorOptions = Object.assign({}, options, { + method_definition: methodDefinition, + }); + /* For each interceptor in the list, the nextCall function passed to it is + * based on the next interceptor in the list, using a nextCall function + * constructed with the following interceptor in the list, and so on. The + * initialValue, which is effectively at the end of the list, is a nextCall + * function that invokes getBottomInterceptingCall, the result of which + * handles (de)serialization and also gets the underlying call from the + * channel. */ + const getCall = interceptors.reduceRight((nextCall, nextInterceptor) => { + return currentOptions => nextInterceptor(currentOptions, nextCall); + }, (finalOptions) => getBottomInterceptingCall(channel, finalOptions, methodDefinition)); + return getCall(interceptorOptions); +} +//# sourceMappingURL=client-interceptors.js.map + +/***/ }), + +/***/ 46503: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Client = void 0; +const call_1 = __nccwpck_require__(9812); +const channel_1 = __nccwpck_require__(59737); +const connectivity_state_1 = __nccwpck_require__(63827); +const constants_1 = __nccwpck_require__(84623); +const metadata_1 = __nccwpck_require__(89173); +const client_interceptors_1 = __nccwpck_require__(13388); +const CHANNEL_SYMBOL = Symbol(); +const INTERCEPTOR_SYMBOL = Symbol(); +const INTERCEPTOR_PROVIDER_SYMBOL = Symbol(); +const CALL_INVOCATION_TRANSFORMER_SYMBOL = Symbol(); +function isFunction(arg) { + return typeof arg === 'function'; +} +function getErrorStackString(error) { + var _a; + return ((_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').slice(1).join('\n')) || 'no stack trace available'; +} +/** + * A generic gRPC client. Primarily useful as a base class for all generated + * clients. + */ +class Client { + constructor(address, credentials, options = {}) { + var _a, _b; + options = Object.assign({}, options); + this[INTERCEPTOR_SYMBOL] = (_a = options.interceptors) !== null && _a !== void 0 ? _a : []; + delete options.interceptors; + this[INTERCEPTOR_PROVIDER_SYMBOL] = (_b = options.interceptor_providers) !== null && _b !== void 0 ? _b : []; + delete options.interceptor_providers; + if (this[INTERCEPTOR_SYMBOL].length > 0 && + this[INTERCEPTOR_PROVIDER_SYMBOL].length > 0) { + throw new Error('Both interceptors and interceptor_providers were passed as options ' + + 'to the client constructor. Only one of these is allowed.'); + } + this[CALL_INVOCATION_TRANSFORMER_SYMBOL] = + options.callInvocationTransformer; + delete options.callInvocationTransformer; + if (options.channelOverride) { + this[CHANNEL_SYMBOL] = options.channelOverride; + } + else if (options.channelFactoryOverride) { + const channelFactoryOverride = options.channelFactoryOverride; + delete options.channelFactoryOverride; + this[CHANNEL_SYMBOL] = channelFactoryOverride(address, credentials, options); + } + else { + this[CHANNEL_SYMBOL] = new channel_1.ChannelImplementation(address, credentials, options); + } + } + close() { + this[CHANNEL_SYMBOL].close(); + } + getChannel() { + return this[CHANNEL_SYMBOL]; + } + waitForReady(deadline, callback) { + const checkState = (err) => { + if (err) { + callback(new Error('Failed to connect before the deadline')); + return; + } + let newState; + try { + newState = this[CHANNEL_SYMBOL].getConnectivityState(true); + } + catch (e) { + callback(new Error('The channel has been closed')); + return; + } + if (newState === connectivity_state_1.ConnectivityState.READY) { + callback(); + } + else { + try { + this[CHANNEL_SYMBOL].watchConnectivityState(newState, deadline, checkState); + } + catch (e) { + callback(new Error('The channel has been closed')); + } + } + }; + setImmediate(checkState); + } + checkOptionalUnaryResponseArguments(arg1, arg2, arg3) { + if (isFunction(arg1)) { + return { metadata: new metadata_1.Metadata(), options: {}, callback: arg1 }; + } + else if (isFunction(arg2)) { + if (arg1 instanceof metadata_1.Metadata) { + return { metadata: arg1, options: {}, callback: arg2 }; + } + else { + return { metadata: new metadata_1.Metadata(), options: arg1, callback: arg2 }; + } + } + else { + if (!(arg1 instanceof metadata_1.Metadata && + arg2 instanceof Object && + isFunction(arg3))) { + throw new Error('Incorrect arguments passed'); + } + return { metadata: arg1, options: arg2, callback: arg3 }; + } + } + makeUnaryRequest(method, serialize, deserialize, argument, metadata, options, callback) { + var _a, _b; + const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); + const methodDefinition = { + path: method, + requestStream: false, + responseStream: false, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + argument: argument, + metadata: checkedArguments.metadata, + call: new call_1.ClientUnaryCallImpl(), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + callback: checkedArguments.callback, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const emitter = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + emitter.call = call; + let responseMessage = null; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata: metadata => { + emitter.emit('metadata', metadata); + }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + if (responseMessage !== null) { + call.cancelWithStatus(constants_1.Status.UNIMPLEMENTED, 'Too many responses received'); + } + responseMessage = message; + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + if (status.code === constants_1.Status.OK) { + if (responseMessage === null) { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)({ + code: constants_1.Status.UNIMPLEMENTED, + details: 'No message received', + metadata: status.metadata, + }, callerStack)); + } + else { + callProperties.callback(null, responseMessage); + } + } + else { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + emitter.emit('status', status); + }, + }); + call.sendMessage(argument); + call.halfClose(); + return emitter; + } + makeClientStreamRequest(method, serialize, deserialize, metadata, options, callback) { + var _a, _b; + const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); + const methodDefinition = { + path: method, + requestStream: true, + responseStream: false, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + metadata: checkedArguments.metadata, + call: new call_1.ClientWritableStreamImpl(serialize), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + callback: checkedArguments.callback, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const emitter = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + emitter.call = call; + let responseMessage = null; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata: metadata => { + emitter.emit('metadata', metadata); + }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + if (responseMessage !== null) { + call.cancelWithStatus(constants_1.Status.UNIMPLEMENTED, 'Too many responses received'); + } + responseMessage = message; + call.startRead(); + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + if (status.code === constants_1.Status.OK) { + if (responseMessage === null) { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)({ + code: constants_1.Status.UNIMPLEMENTED, + details: 'No message received', + metadata: status.metadata, + }, callerStack)); + } + else { + callProperties.callback(null, responseMessage); + } + } + else { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + emitter.emit('status', status); + }, + }); + return emitter; + } + checkMetadataAndOptions(arg1, arg2) { + let metadata; + let options; + if (arg1 instanceof metadata_1.Metadata) { + metadata = arg1; + if (arg2) { + options = arg2; + } + else { + options = {}; + } + } + else { + if (arg1) { + options = arg1; + } + else { + options = {}; + } + metadata = new metadata_1.Metadata(); + } + return { metadata, options }; + } + makeServerStreamRequest(method, serialize, deserialize, argument, metadata, options) { + var _a, _b; + const checkedArguments = this.checkMetadataAndOptions(metadata, options); + const methodDefinition = { + path: method, + requestStream: false, + responseStream: true, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + argument: argument, + metadata: checkedArguments.metadata, + call: new call_1.ClientReadableStreamImpl(deserialize), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const stream = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + stream.call = call; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata(metadata) { + stream.emit('metadata', metadata); + }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + stream.push(null); + if (status.code !== constants_1.Status.OK) { + const callerStack = getErrorStackString(callerStackError); + stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + stream.emit('status', status); + }, + }); + call.sendMessage(argument); + call.halfClose(); + return stream; + } + makeBidiStreamRequest(method, serialize, deserialize, metadata, options) { + var _a, _b; + const checkedArguments = this.checkMetadataAndOptions(metadata, options); + const methodDefinition = { + path: method, + requestStream: true, + responseStream: true, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + metadata: checkedArguments.metadata, + call: new call_1.ClientDuplexStreamImpl(serialize, deserialize), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const stream = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + stream.call = call; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata(metadata) { + stream.emit('metadata', metadata); + }, + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + stream.push(null); + if (status.code !== constants_1.Status.OK) { + const callerStack = getErrorStackString(callerStackError); + stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + stream.emit('status', status); + }, + }); + return stream; + } +} +exports.Client = Client; +//# sourceMappingURL=client.js.map + +/***/ }), + +/***/ 52303: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CompressionAlgorithms = void 0; +var CompressionAlgorithms; +(function (CompressionAlgorithms) { + CompressionAlgorithms[CompressionAlgorithms["identity"] = 0] = "identity"; + CompressionAlgorithms[CompressionAlgorithms["deflate"] = 1] = "deflate"; + CompressionAlgorithms[CompressionAlgorithms["gzip"] = 2] = "gzip"; +})(CompressionAlgorithms || (exports.CompressionAlgorithms = CompressionAlgorithms = {})); +//# sourceMappingURL=compression-algorithms.js.map + +/***/ }), + +/***/ 39415: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CompressionFilterFactory = exports.CompressionFilter = void 0; +const zlib = __nccwpck_require__(43106); +const compression_algorithms_1 = __nccwpck_require__(52303); +const constants_1 = __nccwpck_require__(84623); +const filter_1 = __nccwpck_require__(95674); +const logging = __nccwpck_require__(26239); +const isCompressionAlgorithmKey = (key) => { + return (typeof key === 'number' && typeof compression_algorithms_1.CompressionAlgorithms[key] === 'string'); +}; +class CompressionHandler { + /** + * @param message Raw uncompressed message bytes + * @param compress Indicates whether the message should be compressed + * @return Framed message, compressed if applicable + */ + async writeMessage(message, compress) { + let messageBuffer = message; + if (compress) { + messageBuffer = await this.compressMessage(messageBuffer); + } + const output = Buffer.allocUnsafe(messageBuffer.length + 5); + output.writeUInt8(compress ? 1 : 0, 0); + output.writeUInt32BE(messageBuffer.length, 1); + messageBuffer.copy(output, 5); + return output; + } + /** + * @param data Framed message, possibly compressed + * @return Uncompressed message + */ + async readMessage(data) { + const compressed = data.readUInt8(0) === 1; + let messageBuffer = data.slice(5); + if (compressed) { + messageBuffer = await this.decompressMessage(messageBuffer); + } + return messageBuffer; + } +} +class IdentityHandler extends CompressionHandler { + async compressMessage(message) { + return message; + } + async writeMessage(message, compress) { + const output = Buffer.allocUnsafe(message.length + 5); + /* With "identity" compression, messages should always be marked as + * uncompressed */ + output.writeUInt8(0, 0); + output.writeUInt32BE(message.length, 1); + message.copy(output, 5); + return output; + } + decompressMessage(message) { + return Promise.reject(new Error('Received compressed message but "grpc-encoding" header was identity')); + } +} +class DeflateHandler extends CompressionHandler { + constructor(maxRecvMessageLength) { + super(); + this.maxRecvMessageLength = maxRecvMessageLength; + } + compressMessage(message) { + return new Promise((resolve, reject) => { + zlib.deflate(message, (err, output) => { + if (err) { + reject(err); + } + else { + resolve(output); + } + }); + }); + } + decompressMessage(message) { + return new Promise((resolve, reject) => { + let totalLength = 0; + const messageParts = []; + const decompresser = zlib.createInflate(); + decompresser.on('data', (chunk) => { + messageParts.push(chunk); + totalLength += chunk.byteLength; + if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { + decompresser.destroy(); + reject({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` + }); + } + }); + decompresser.on('end', () => { + resolve(Buffer.concat(messageParts)); + }); + decompresser.write(message); + decompresser.end(); + }); + } +} +class GzipHandler extends CompressionHandler { + constructor(maxRecvMessageLength) { + super(); + this.maxRecvMessageLength = maxRecvMessageLength; + } + compressMessage(message) { + return new Promise((resolve, reject) => { + zlib.gzip(message, (err, output) => { + if (err) { + reject(err); + } + else { + resolve(output); + } + }); + }); + } + decompressMessage(message) { + return new Promise((resolve, reject) => { + let totalLength = 0; + const messageParts = []; + const decompresser = zlib.createGunzip(); + decompresser.on('data', (chunk) => { + messageParts.push(chunk); + totalLength += chunk.byteLength; + if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { + decompresser.destroy(); + reject({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` + }); + } + }); + decompresser.on('end', () => { + resolve(Buffer.concat(messageParts)); + }); + decompresser.write(message); + decompresser.end(); + }); + } +} +class UnknownHandler extends CompressionHandler { + constructor(compressionName) { + super(); + this.compressionName = compressionName; + } + compressMessage(message) { + return Promise.reject(new Error(`Received message compressed with unsupported compression method ${this.compressionName}`)); + } + decompressMessage(message) { + // This should be unreachable + return Promise.reject(new Error(`Compression method not supported: ${this.compressionName}`)); + } +} +function getCompressionHandler(compressionName, maxReceiveMessageSize) { + switch (compressionName) { + case 'identity': + return new IdentityHandler(); + case 'deflate': + return new DeflateHandler(maxReceiveMessageSize); + case 'gzip': + return new GzipHandler(maxReceiveMessageSize); + default: + return new UnknownHandler(compressionName); + } +} +class CompressionFilter extends filter_1.BaseFilter { + constructor(channelOptions, sharedFilterConfig) { + var _a, _b, _c; + super(); + this.sharedFilterConfig = sharedFilterConfig; + this.sendCompression = new IdentityHandler(); + this.receiveCompression = new IdentityHandler(); + this.currentCompressionAlgorithm = 'identity'; + const compressionAlgorithmKey = channelOptions['grpc.default_compression_algorithm']; + this.maxReceiveMessageLength = (_a = channelOptions['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; + this.maxSendMessageLength = (_b = channelOptions['grpc.max_send_message_length']) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH; + if (compressionAlgorithmKey !== undefined) { + if (isCompressionAlgorithmKey(compressionAlgorithmKey)) { + const clientSelectedEncoding = compression_algorithms_1.CompressionAlgorithms[compressionAlgorithmKey]; + const serverSupportedEncodings = (_c = sharedFilterConfig.serverSupportedEncodingHeader) === null || _c === void 0 ? void 0 : _c.split(','); + /** + * There are two possible situations here: + * 1) We don't have any info yet from the server about what compression it supports + * In that case we should just use what the client tells us to use + * 2) We've previously received a response from the server including a grpc-accept-encoding header + * In that case we only want to use the encoding chosen by the client if the server supports it + */ + if (!serverSupportedEncodings || + serverSupportedEncodings.includes(clientSelectedEncoding)) { + this.currentCompressionAlgorithm = clientSelectedEncoding; + this.sendCompression = getCompressionHandler(this.currentCompressionAlgorithm, -1); + } + } + else { + logging.log(constants_1.LogVerbosity.ERROR, `Invalid value provided for grpc.default_compression_algorithm option: ${compressionAlgorithmKey}`); + } + } + } + async sendMetadata(metadata) { + const headers = await metadata; + headers.set('grpc-accept-encoding', 'identity,deflate,gzip'); + headers.set('accept-encoding', 'identity'); + // No need to send the header if it's "identity" - behavior is identical; save the bandwidth + if (this.currentCompressionAlgorithm === 'identity') { + headers.remove('grpc-encoding'); + } + else { + headers.set('grpc-encoding', this.currentCompressionAlgorithm); + } + return headers; + } + receiveMetadata(metadata) { + const receiveEncoding = metadata.get('grpc-encoding'); + if (receiveEncoding.length > 0) { + const encoding = receiveEncoding[0]; + if (typeof encoding === 'string') { + this.receiveCompression = getCompressionHandler(encoding, this.maxReceiveMessageLength); + } + } + metadata.remove('grpc-encoding'); + /* Check to see if the compression we're using to send messages is supported by the server + * If not, reset the sendCompression filter and have it use the default IdentityHandler */ + const serverSupportedEncodingsHeader = metadata.get('grpc-accept-encoding')[0]; + if (serverSupportedEncodingsHeader) { + this.sharedFilterConfig.serverSupportedEncodingHeader = + serverSupportedEncodingsHeader; + const serverSupportedEncodings = serverSupportedEncodingsHeader.split(','); + if (!serverSupportedEncodings.includes(this.currentCompressionAlgorithm)) { + this.sendCompression = new IdentityHandler(); + this.currentCompressionAlgorithm = 'identity'; + } + } + metadata.remove('grpc-accept-encoding'); + return metadata; + } + async sendMessage(message) { + var _a; + /* This filter is special. The input message is the bare message bytes, + * and the output is a framed and possibly compressed message. For this + * reason, this filter should be at the bottom of the filter stack */ + const resolvedMessage = await message; + if (this.maxSendMessageLength !== -1 && resolvedMessage.message.length > this.maxSendMessageLength) { + throw { + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Attempted to send message with a size larger than ${this.maxSendMessageLength}` + }; + } + let compress; + if (this.sendCompression instanceof IdentityHandler) { + compress = false; + } + else { + compress = (((_a = resolvedMessage.flags) !== null && _a !== void 0 ? _a : 0) & 2 /* WriteFlags.NoCompress */) === 0; + } + return { + message: await this.sendCompression.writeMessage(resolvedMessage.message, compress), + flags: resolvedMessage.flags, + }; + } + async receiveMessage(message) { + /* This filter is also special. The input message is framed and possibly + * compressed, and the output message is deframed and uncompressed. So + * this is another reason that this filter should be at the bottom of the + * filter stack. */ + return this.receiveCompression.readMessage(await message); + } +} +exports.CompressionFilter = CompressionFilter; +class CompressionFilterFactory { + constructor(channel, options) { + this.options = options; + this.sharedFilterConfig = {}; + } + createFilter() { + return new CompressionFilter(this.options, this.sharedFilterConfig); + } +} +exports.CompressionFilterFactory = CompressionFilterFactory; +//# sourceMappingURL=compression-filter.js.map + +/***/ }), + +/***/ 63827: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConnectivityState = void 0; +var ConnectivityState; +(function (ConnectivityState) { + ConnectivityState[ConnectivityState["IDLE"] = 0] = "IDLE"; + ConnectivityState[ConnectivityState["CONNECTING"] = 1] = "CONNECTING"; + ConnectivityState[ConnectivityState["READY"] = 2] = "READY"; + ConnectivityState[ConnectivityState["TRANSIENT_FAILURE"] = 3] = "TRANSIENT_FAILURE"; + ConnectivityState[ConnectivityState["SHUTDOWN"] = 4] = "SHUTDOWN"; +})(ConnectivityState || (exports.ConnectivityState = ConnectivityState = {})); +//# sourceMappingURL=connectivity-state.js.map + +/***/ }), + +/***/ 84623: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = exports.Propagate = exports.LogVerbosity = exports.Status = void 0; +var Status; +(function (Status) { + Status[Status["OK"] = 0] = "OK"; + Status[Status["CANCELLED"] = 1] = "CANCELLED"; + Status[Status["UNKNOWN"] = 2] = "UNKNOWN"; + Status[Status["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT"; + Status[Status["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED"; + Status[Status["NOT_FOUND"] = 5] = "NOT_FOUND"; + Status[Status["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS"; + Status[Status["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED"; + Status[Status["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED"; + Status[Status["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION"; + Status[Status["ABORTED"] = 10] = "ABORTED"; + Status[Status["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE"; + Status[Status["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED"; + Status[Status["INTERNAL"] = 13] = "INTERNAL"; + Status[Status["UNAVAILABLE"] = 14] = "UNAVAILABLE"; + Status[Status["DATA_LOSS"] = 15] = "DATA_LOSS"; + Status[Status["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED"; +})(Status || (exports.Status = Status = {})); +var LogVerbosity; +(function (LogVerbosity) { + LogVerbosity[LogVerbosity["DEBUG"] = 0] = "DEBUG"; + LogVerbosity[LogVerbosity["INFO"] = 1] = "INFO"; + LogVerbosity[LogVerbosity["ERROR"] = 2] = "ERROR"; + LogVerbosity[LogVerbosity["NONE"] = 3] = "NONE"; +})(LogVerbosity || (exports.LogVerbosity = LogVerbosity = {})); +/** + * NOTE: This enum is not currently used in any implemented API in this + * library. It is included only for type parity with the other implementation. + */ +var Propagate; +(function (Propagate) { + Propagate[Propagate["DEADLINE"] = 1] = "DEADLINE"; + Propagate[Propagate["CENSUS_STATS_CONTEXT"] = 2] = "CENSUS_STATS_CONTEXT"; + Propagate[Propagate["CENSUS_TRACING_CONTEXT"] = 4] = "CENSUS_TRACING_CONTEXT"; + Propagate[Propagate["CANCELLATION"] = 8] = "CANCELLATION"; + // https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/propagation_bits.h#L43 + Propagate[Propagate["DEFAULTS"] = 65535] = "DEFAULTS"; +})(Propagate || (exports.Propagate = Propagate = {})); +// -1 means unlimited +exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = -1; +// 4 MB default +exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = 4 * 1024 * 1024; +//# sourceMappingURL=constants.js.map + +/***/ }), + +/***/ 14519: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.restrictControlPlaneStatusCode = restrictControlPlaneStatusCode; +const constants_1 = __nccwpck_require__(84623); +const INAPPROPRIATE_CONTROL_PLANE_CODES = [ + constants_1.Status.OK, + constants_1.Status.INVALID_ARGUMENT, + constants_1.Status.NOT_FOUND, + constants_1.Status.ALREADY_EXISTS, + constants_1.Status.FAILED_PRECONDITION, + constants_1.Status.ABORTED, + constants_1.Status.OUT_OF_RANGE, + constants_1.Status.DATA_LOSS, +]; +function restrictControlPlaneStatusCode(code, details) { + if (INAPPROPRIATE_CONTROL_PLANE_CODES.includes(code)) { + return { + code: constants_1.Status.INTERNAL, + details: `Invalid status from control plane: ${code} ${constants_1.Status[code]} ${details}`, + }; + } + else { + return { code, details }; + } +} +//# sourceMappingURL=control-plane-status.js.map + +/***/ }), + +/***/ 27168: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.minDeadline = minDeadline; +exports.getDeadlineTimeoutString = getDeadlineTimeoutString; +exports.getRelativeTimeout = getRelativeTimeout; +exports.deadlineToString = deadlineToString; +exports.formatDateDifference = formatDateDifference; +function minDeadline(...deadlineList) { + let minValue = Infinity; + for (const deadline of deadlineList) { + const deadlineMsecs = deadline instanceof Date ? deadline.getTime() : deadline; + if (deadlineMsecs < minValue) { + minValue = deadlineMsecs; + } + } + return minValue; +} +const units = [ + ['m', 1], + ['S', 1000], + ['M', 60 * 1000], + ['H', 60 * 60 * 1000], +]; +function getDeadlineTimeoutString(deadline) { + const now = new Date().getTime(); + if (deadline instanceof Date) { + deadline = deadline.getTime(); + } + const timeoutMs = Math.max(deadline - now, 0); + for (const [unit, factor] of units) { + const amount = timeoutMs / factor; + if (amount < 1e8) { + return String(Math.ceil(amount)) + unit; + } + } + throw new Error('Deadline is too far in the future'); +} +/** + * See https://nodejs.org/api/timers.html#settimeoutcallback-delay-args + * In particular, "When delay is larger than 2147483647 or less than 1, the + * delay will be set to 1. Non-integer delays are truncated to an integer." + * This number of milliseconds is almost 25 days. + */ +const MAX_TIMEOUT_TIME = 2147483647; +/** + * Get the timeout value that should be passed to setTimeout now for the timer + * to end at the deadline. For any deadline before now, the timer should end + * immediately, represented by a value of 0. For any deadline more than + * MAX_TIMEOUT_TIME milliseconds in the future, a timer cannot be set that will + * end at that time, so it is treated as infinitely far in the future. + * @param deadline + * @returns + */ +function getRelativeTimeout(deadline) { + const deadlineMs = deadline instanceof Date ? deadline.getTime() : deadline; + const now = new Date().getTime(); + const timeout = deadlineMs - now; + if (timeout < 0) { + return 0; + } + else if (timeout > MAX_TIMEOUT_TIME) { + return Infinity; + } + else { + return timeout; + } +} +function deadlineToString(deadline) { + if (deadline instanceof Date) { + return deadline.toISOString(); + } + else { + const dateDeadline = new Date(deadline); + if (Number.isNaN(dateDeadline.getTime())) { + return '' + deadline; + } + else { + return dateDeadline.toISOString(); + } + } +} +/** + * Calculate the difference between two dates as a number of seconds and format + * it as a string. + * @param startDate + * @param endDate + * @returns + */ +function formatDateDifference(startDate, endDate) { + return ((endDate.getTime() - startDate.getTime()) / 1000).toFixed(3) + 's'; +} +//# sourceMappingURL=deadline.js.map + +/***/ }), + +/***/ 23168: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.durationMessageToDuration = durationMessageToDuration; +exports.msToDuration = msToDuration; +exports.durationToMs = durationToMs; +exports.isDuration = isDuration; +exports.isDurationMessage = isDurationMessage; +exports.parseDuration = parseDuration; +exports.durationToString = durationToString; +function durationMessageToDuration(message) { + return { + seconds: Number.parseInt(message.seconds), + nanos: message.nanos + }; +} +function msToDuration(millis) { + return { + seconds: (millis / 1000) | 0, + nanos: ((millis % 1000) * 1000000) | 0, + }; +} +function durationToMs(duration) { + return (duration.seconds * 1000 + duration.nanos / 1000000) | 0; +} +function isDuration(value) { + return typeof value.seconds === 'number' && typeof value.nanos === 'number'; +} +function isDurationMessage(value) { + return typeof value.seconds === 'string' && typeof value.nanos === 'number'; +} +const durationRegex = /^(\d+)(?:\.(\d+))?s$/; +function parseDuration(value) { + const match = value.match(durationRegex); + if (!match) { + return null; + } + return { + seconds: Number.parseInt(match[1], 10), + nanos: match[2] ? Number.parseInt(match[2].padEnd(9, '0'), 10) : 0 + }; +} +function durationToString(duration) { + if (duration.nanos === 0) { + return `${duration.seconds}s`; + } + let scaleFactor; + if (duration.nanos % 1000000 === 0) { + scaleFactor = 1000000; + } + else if (duration.nanos % 1000 === 0) { + scaleFactor = 1000; + } + else { + scaleFactor = 1; + } + return `${duration.seconds}.${duration.nanos / scaleFactor}s`; +} +//# sourceMappingURL=duration.js.map + +/***/ }), + +/***/ 46927: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0; +exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = ((_a = process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) !== null && _a !== void 0 ? _a : 'false') === 'true'; +//# sourceMappingURL=environment.js.map + +/***/ }), + +/***/ 27116: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getErrorMessage = getErrorMessage; +exports.getErrorCode = getErrorCode; +function getErrorMessage(error) { + if (error instanceof Error) { + return error.message; + } + else { + return String(error); + } +} +function getErrorCode(error) { + if (typeof error === 'object' && + error !== null && + 'code' in error && + typeof error.code === 'number') { + return error.code; + } + else { + return null; + } +} +//# sourceMappingURL=error.js.map + +/***/ }), + +/***/ 51578: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = exports.createCertificateProviderChannelCredentials = exports.FileWatcherCertificateProvider = exports.createCertificateProviderServerCredentials = exports.createServerCredentialsWithInterceptors = exports.BaseSubchannelWrapper = exports.registerAdminService = exports.FilterStackFactory = exports.BaseFilter = exports.statusOrFromError = exports.statusOrFromValue = exports.PickResultType = exports.QueuePicker = exports.UnavailablePicker = exports.ChildLoadBalancerHandler = exports.EndpointMap = exports.endpointHasAddress = exports.endpointToString = exports.subchannelAddressToString = exports.LeafLoadBalancer = exports.isLoadBalancerNameRegistered = exports.parseLoadBalancingConfig = exports.selectLbConfigFromList = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = exports.BackoffTimeout = exports.parseDuration = exports.durationToMs = exports.splitHostPort = exports.uriToString = exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = exports.createResolver = exports.registerResolver = exports.log = exports.trace = void 0; +var logging_1 = __nccwpck_require__(26239); +Object.defineProperty(exports, "trace", ({ enumerable: true, get: function () { return logging_1.trace; } })); +Object.defineProperty(exports, "log", ({ enumerable: true, get: function () { return logging_1.log; } })); +var resolver_1 = __nccwpck_require__(30842); +Object.defineProperty(exports, "registerResolver", ({ enumerable: true, get: function () { return resolver_1.registerResolver; } })); +Object.defineProperty(exports, "createResolver", ({ enumerable: true, get: function () { return resolver_1.createResolver; } })); +Object.defineProperty(exports, "CHANNEL_ARGS_CONFIG_SELECTOR_KEY", ({ enumerable: true, get: function () { return resolver_1.CHANNEL_ARGS_CONFIG_SELECTOR_KEY; } })); +var uri_parser_1 = __nccwpck_require__(70210); +Object.defineProperty(exports, "uriToString", ({ enumerable: true, get: function () { return uri_parser_1.uriToString; } })); +Object.defineProperty(exports, "splitHostPort", ({ enumerable: true, get: function () { return uri_parser_1.splitHostPort; } })); +var duration_1 = __nccwpck_require__(23168); +Object.defineProperty(exports, "durationToMs", ({ enumerable: true, get: function () { return duration_1.durationToMs; } })); +Object.defineProperty(exports, "parseDuration", ({ enumerable: true, get: function () { return duration_1.parseDuration; } })); +var backoff_timeout_1 = __nccwpck_require__(21400); +Object.defineProperty(exports, "BackoffTimeout", ({ enumerable: true, get: function () { return backoff_timeout_1.BackoffTimeout; } })); +var load_balancer_1 = __nccwpck_require__(23863); +Object.defineProperty(exports, "createChildChannelControlHelper", ({ enumerable: true, get: function () { return load_balancer_1.createChildChannelControlHelper; } })); +Object.defineProperty(exports, "registerLoadBalancerType", ({ enumerable: true, get: function () { return load_balancer_1.registerLoadBalancerType; } })); +Object.defineProperty(exports, "selectLbConfigFromList", ({ enumerable: true, get: function () { return load_balancer_1.selectLbConfigFromList; } })); +Object.defineProperty(exports, "parseLoadBalancingConfig", ({ enumerable: true, get: function () { return load_balancer_1.parseLoadBalancingConfig; } })); +Object.defineProperty(exports, "isLoadBalancerNameRegistered", ({ enumerable: true, get: function () { return load_balancer_1.isLoadBalancerNameRegistered; } })); +var load_balancer_pick_first_1 = __nccwpck_require__(72074); +Object.defineProperty(exports, "LeafLoadBalancer", ({ enumerable: true, get: function () { return load_balancer_pick_first_1.LeafLoadBalancer; } })); +var subchannel_address_1 = __nccwpck_require__(95080); +Object.defineProperty(exports, "subchannelAddressToString", ({ enumerable: true, get: function () { return subchannel_address_1.subchannelAddressToString; } })); +Object.defineProperty(exports, "endpointToString", ({ enumerable: true, get: function () { return subchannel_address_1.endpointToString; } })); +Object.defineProperty(exports, "endpointHasAddress", ({ enumerable: true, get: function () { return subchannel_address_1.endpointHasAddress; } })); +Object.defineProperty(exports, "EndpointMap", ({ enumerable: true, get: function () { return subchannel_address_1.EndpointMap; } })); +var load_balancer_child_handler_1 = __nccwpck_require__(33569); +Object.defineProperty(exports, "ChildLoadBalancerHandler", ({ enumerable: true, get: function () { return load_balancer_child_handler_1.ChildLoadBalancerHandler; } })); +var picker_1 = __nccwpck_require__(12313); +Object.defineProperty(exports, "UnavailablePicker", ({ enumerable: true, get: function () { return picker_1.UnavailablePicker; } })); +Object.defineProperty(exports, "QueuePicker", ({ enumerable: true, get: function () { return picker_1.QueuePicker; } })); +Object.defineProperty(exports, "PickResultType", ({ enumerable: true, get: function () { return picker_1.PickResultType; } })); +var call_interface_1 = __nccwpck_require__(91494); +Object.defineProperty(exports, "statusOrFromValue", ({ enumerable: true, get: function () { return call_interface_1.statusOrFromValue; } })); +Object.defineProperty(exports, "statusOrFromError", ({ enumerable: true, get: function () { return call_interface_1.statusOrFromError; } })); +var filter_1 = __nccwpck_require__(95674); +Object.defineProperty(exports, "BaseFilter", ({ enumerable: true, get: function () { return filter_1.BaseFilter; } })); +var filter_stack_1 = __nccwpck_require__(5427); +Object.defineProperty(exports, "FilterStackFactory", ({ enumerable: true, get: function () { return filter_stack_1.FilterStackFactory; } })); +var admin_1 = __nccwpck_require__(257); +Object.defineProperty(exports, "registerAdminService", ({ enumerable: true, get: function () { return admin_1.registerAdminService; } })); +var subchannel_interface_1 = __nccwpck_require__(45631); +Object.defineProperty(exports, "BaseSubchannelWrapper", ({ enumerable: true, get: function () { return subchannel_interface_1.BaseSubchannelWrapper; } })); +var server_credentials_1 = __nccwpck_require__(2272); +Object.defineProperty(exports, "createServerCredentialsWithInterceptors", ({ enumerable: true, get: function () { return server_credentials_1.createServerCredentialsWithInterceptors; } })); +Object.defineProperty(exports, "createCertificateProviderServerCredentials", ({ enumerable: true, get: function () { return server_credentials_1.createCertificateProviderServerCredentials; } })); +var certificate_provider_1 = __nccwpck_require__(75591); +Object.defineProperty(exports, "FileWatcherCertificateProvider", ({ enumerable: true, get: function () { return certificate_provider_1.FileWatcherCertificateProvider; } })); +var channel_credentials_1 = __nccwpck_require__(22377); +Object.defineProperty(exports, "createCertificateProviderChannelCredentials", ({ enumerable: true, get: function () { return channel_credentials_1.createCertificateProviderChannelCredentials; } })); +var internal_channel_1 = __nccwpck_require__(9487); +Object.defineProperty(exports, "SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX", ({ enumerable: true, get: function () { return internal_channel_1.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX; } })); +//# sourceMappingURL=experimental.js.map + +/***/ }), + +/***/ 5427: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FilterStackFactory = exports.FilterStack = void 0; +class FilterStack { + constructor(filters) { + this.filters = filters; + } + sendMetadata(metadata) { + let result = metadata; + for (let i = 0; i < this.filters.length; i++) { + result = this.filters[i].sendMetadata(result); + } + return result; + } + receiveMetadata(metadata) { + let result = metadata; + for (let i = this.filters.length - 1; i >= 0; i--) { + result = this.filters[i].receiveMetadata(result); + } + return result; + } + sendMessage(message) { + let result = message; + for (let i = 0; i < this.filters.length; i++) { + result = this.filters[i].sendMessage(result); + } + return result; + } + receiveMessage(message) { + let result = message; + for (let i = this.filters.length - 1; i >= 0; i--) { + result = this.filters[i].receiveMessage(result); + } + return result; + } + receiveTrailers(status) { + let result = status; + for (let i = this.filters.length - 1; i >= 0; i--) { + result = this.filters[i].receiveTrailers(result); + } + return result; + } + push(filters) { + this.filters.unshift(...filters); + } + getFilters() { + return this.filters; + } +} +exports.FilterStack = FilterStack; +class FilterStackFactory { + constructor(factories) { + this.factories = factories; + } + push(filterFactories) { + this.factories.unshift(...filterFactories); + } + clone() { + return new FilterStackFactory([...this.factories]); + } + createFilter() { + return new FilterStack(this.factories.map(factory => factory.createFilter())); + } +} +exports.FilterStackFactory = FilterStackFactory; +//# sourceMappingURL=filter-stack.js.map + +/***/ }), + +/***/ 95674: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseFilter = void 0; +class BaseFilter { + async sendMetadata(metadata) { + return metadata; + } + receiveMetadata(metadata) { + return metadata; + } + async sendMessage(message) { + return message; + } + async receiveMessage(message) { + return message; + } + receiveTrailers(status) { + return status; + } +} +exports.BaseFilter = BaseFilter; +//# sourceMappingURL=filter.js.map + +/***/ }), + +/***/ 95367: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseCIDR = parseCIDR; +exports.mapProxyName = mapProxyName; +exports.getProxiedConnection = getProxiedConnection; +const logging_1 = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +const net_1 = __nccwpck_require__(69278); +const http = __nccwpck_require__(58611); +const logging = __nccwpck_require__(26239); +const subchannel_address_1 = __nccwpck_require__(95080); +const uri_parser_1 = __nccwpck_require__(70210); +const url_1 = __nccwpck_require__(87016); +const resolver_dns_1 = __nccwpck_require__(10104); +const TRACER_NAME = 'proxy'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +function getProxyInfo() { + let proxyEnv = ''; + let envVar = ''; + /* Prefer using 'grpc_proxy'. Fallback on 'http_proxy' if it is not set. + * Also prefer using 'https_proxy' with fallback on 'http_proxy'. The + * fallback behavior can be removed if there's a demand for it. + */ + if (process.env.grpc_proxy) { + envVar = 'grpc_proxy'; + proxyEnv = process.env.grpc_proxy; + } + else if (process.env.https_proxy) { + envVar = 'https_proxy'; + proxyEnv = process.env.https_proxy; + } + else if (process.env.http_proxy) { + envVar = 'http_proxy'; + proxyEnv = process.env.http_proxy; + } + else { + return {}; + } + let proxyUrl; + try { + proxyUrl = new url_1.URL(proxyEnv); + } + catch (e) { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `cannot parse value of "${envVar}" env var`); + return {}; + } + if (proxyUrl.protocol !== 'http:') { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `"${proxyUrl.protocol}" scheme not supported in proxy URI`); + return {}; + } + let userCred = null; + if (proxyUrl.username) { + if (proxyUrl.password) { + (0, logging_1.log)(constants_1.LogVerbosity.INFO, 'userinfo found in proxy URI'); + userCred = decodeURIComponent(`${proxyUrl.username}:${proxyUrl.password}`); + } + else { + userCred = proxyUrl.username; + } + } + const hostname = proxyUrl.hostname; + let port = proxyUrl.port; + /* The proxy URL uses the scheme "http:", which has a default port number of + * 80. We need to set that explicitly here if it is omitted because otherwise + * it will use gRPC's default port 443. */ + if (port === '') { + port = '80'; + } + const result = { + address: `${hostname}:${port}`, + }; + if (userCred) { + result.creds = userCred; + } + trace('Proxy server ' + result.address + ' set by environment variable ' + envVar); + return result; +} +function getNoProxyHostList() { + /* Prefer using 'no_grpc_proxy'. Fallback on 'no_proxy' if it is not set. */ + let noProxyStr = process.env.no_grpc_proxy; + let envVar = 'no_grpc_proxy'; + if (!noProxyStr) { + noProxyStr = process.env.no_proxy; + envVar = 'no_proxy'; + } + if (noProxyStr) { + trace('No proxy server list set by environment variable ' + envVar); + return noProxyStr.split(','); + } + else { + return []; + } +} +/* + * The groups correspond to CIDR parts as follows: + * 1. ip + * 2. prefixLength + */ +function parseCIDR(cidrString) { + const splitRange = cidrString.split('/'); + if (splitRange.length !== 2) { + return null; + } + const prefixLength = parseInt(splitRange[1], 10); + if (!(0, net_1.isIPv4)(splitRange[0]) || Number.isNaN(prefixLength) || prefixLength < 0 || prefixLength > 32) { + return null; + } + return { + ip: ipToInt(splitRange[0]), + prefixLength: prefixLength + }; +} +function ipToInt(ip) { + return ip.split(".").reduce((acc, octet) => (acc << 8) + parseInt(octet, 10), 0); +} +function isIpInCIDR(cidr, serverHost) { + const ip = cidr.ip; + const mask = -1 << (32 - cidr.prefixLength); + const hostIP = ipToInt(serverHost); + return (hostIP & mask) === (ip & mask); +} +function hostMatchesNoProxyList(serverHost) { + for (const host of getNoProxyHostList()) { + const parsedCIDR = parseCIDR(host); + // host is a CIDR and serverHost is an IP address + if ((0, net_1.isIPv4)(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) { + return true; + } + else if (serverHost.endsWith(host)) { + // host is a single IP or a domain name suffix + return true; + } + } + return false; +} +function mapProxyName(target, options) { + var _a; + const noProxyResult = { + target: target, + extraOptions: {}, + }; + if (((_a = options['grpc.enable_http_proxy']) !== null && _a !== void 0 ? _a : 1) === 0) { + return noProxyResult; + } + if (target.scheme === 'unix') { + return noProxyResult; + } + const proxyInfo = getProxyInfo(); + if (!proxyInfo.address) { + return noProxyResult; + } + const hostPort = (0, uri_parser_1.splitHostPort)(target.path); + if (!hostPort) { + return noProxyResult; + } + const serverHost = hostPort.host; + if (hostMatchesNoProxyList(serverHost)) { + trace('Not using proxy for target in no_proxy list: ' + (0, uri_parser_1.uriToString)(target)); + return noProxyResult; + } + const extraOptions = { + 'grpc.http_connect_target': (0, uri_parser_1.uriToString)(target), + }; + if (proxyInfo.creds) { + extraOptions['grpc.http_connect_creds'] = proxyInfo.creds; + } + return { + target: { + scheme: 'dns', + path: proxyInfo.address, + }, + extraOptions: extraOptions, + }; +} +function getProxiedConnection(address, channelOptions) { + var _a; + if (!('grpc.http_connect_target' in channelOptions)) { + return Promise.resolve(null); + } + const realTarget = channelOptions['grpc.http_connect_target']; + const parsedTarget = (0, uri_parser_1.parseUri)(realTarget); + if (parsedTarget === null) { + return Promise.resolve(null); + } + const splitHostPost = (0, uri_parser_1.splitHostPort)(parsedTarget.path); + if (splitHostPost === null) { + return Promise.resolve(null); + } + const hostPort = `${splitHostPost.host}:${(_a = splitHostPost.port) !== null && _a !== void 0 ? _a : resolver_dns_1.DEFAULT_PORT}`; + const options = { + method: 'CONNECT', + path: hostPort, + }; + const headers = { + Host: hostPort, + }; + // Connect to the subchannel address as a proxy + if ((0, subchannel_address_1.isTcpSubchannelAddress)(address)) { + options.host = address.host; + options.port = address.port; + } + else { + options.socketPath = address.path; + } + if ('grpc.http_connect_creds' in channelOptions) { + headers['Proxy-Authorization'] = + 'Basic ' + + Buffer.from(channelOptions['grpc.http_connect_creds']).toString('base64'); + } + options.headers = headers; + const proxyAddressString = (0, subchannel_address_1.subchannelAddressToString)(address); + trace('Using proxy ' + proxyAddressString + ' to connect to ' + options.path); + return new Promise((resolve, reject) => { + const request = http.request(options); + request.once('connect', (res, socket, head) => { + request.removeAllListeners(); + socket.removeAllListeners(); + if (res.statusCode === 200) { + trace('Successfully connected to ' + + options.path + + ' through proxy ' + + proxyAddressString); + // The HTTP client may have already read a few bytes of the proxied + // connection. If that's the case, put them back into the socket. + // See https://github.com/grpc/grpc-node/issues/2744. + if (head.length > 0) { + socket.unshift(head); + } + trace('Successfully established a plaintext connection to ' + + options.path + + ' through proxy ' + + proxyAddressString); + resolve(socket); + } + else { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to ' + + options.path + + ' through proxy ' + + proxyAddressString + + ' with status ' + + res.statusCode); + reject(); + } + }); + request.once('error', err => { + request.removeAllListeners(); + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to proxy ' + + proxyAddressString + + ' with error ' + + err.message); + reject(); + }); + request.end(); + }); +} +//# sourceMappingURL=http_proxy.js.map + +/***/ }), + +/***/ 58046: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.experimental = exports.ServerMetricRecorder = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = exports.addAdminServicesToServer = exports.getChannelzHandlers = exports.getChannelzServiceDefinition = exports.InterceptorConfigurationError = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.StatusBuilder = exports.getClientChannel = exports.ServerCredentials = exports.Server = exports.setLogVerbosity = exports.setLogger = exports.load = exports.loadObject = exports.CallCredentials = exports.ChannelCredentials = exports.waitForClientReady = exports.closeClient = exports.Channel = exports.makeGenericClientConstructor = exports.makeClientConstructor = exports.loadPackageDefinition = exports.Client = exports.compressionAlgorithms = exports.propagate = exports.connectivityState = exports.status = exports.logVerbosity = exports.Metadata = exports.credentials = void 0; +const call_credentials_1 = __nccwpck_require__(26159); +Object.defineProperty(exports, "CallCredentials", ({ enumerable: true, get: function () { return call_credentials_1.CallCredentials; } })); +const channel_1 = __nccwpck_require__(59737); +Object.defineProperty(exports, "Channel", ({ enumerable: true, get: function () { return channel_1.ChannelImplementation; } })); +const compression_algorithms_1 = __nccwpck_require__(52303); +Object.defineProperty(exports, "compressionAlgorithms", ({ enumerable: true, get: function () { return compression_algorithms_1.CompressionAlgorithms; } })); +const connectivity_state_1 = __nccwpck_require__(63827); +Object.defineProperty(exports, "connectivityState", ({ enumerable: true, get: function () { return connectivity_state_1.ConnectivityState; } })); +const channel_credentials_1 = __nccwpck_require__(22377); +Object.defineProperty(exports, "ChannelCredentials", ({ enumerable: true, get: function () { return channel_credentials_1.ChannelCredentials; } })); +const client_1 = __nccwpck_require__(46503); +Object.defineProperty(exports, "Client", ({ enumerable: true, get: function () { return client_1.Client; } })); +const constants_1 = __nccwpck_require__(84623); +Object.defineProperty(exports, "logVerbosity", ({ enumerable: true, get: function () { return constants_1.LogVerbosity; } })); +Object.defineProperty(exports, "status", ({ enumerable: true, get: function () { return constants_1.Status; } })); +Object.defineProperty(exports, "propagate", ({ enumerable: true, get: function () { return constants_1.Propagate; } })); +const logging = __nccwpck_require__(26239); +const make_client_1 = __nccwpck_require__(79364); +Object.defineProperty(exports, "loadPackageDefinition", ({ enumerable: true, get: function () { return make_client_1.loadPackageDefinition; } })); +Object.defineProperty(exports, "makeClientConstructor", ({ enumerable: true, get: function () { return make_client_1.makeClientConstructor; } })); +Object.defineProperty(exports, "makeGenericClientConstructor", ({ enumerable: true, get: function () { return make_client_1.makeClientConstructor; } })); +const metadata_1 = __nccwpck_require__(89173); +Object.defineProperty(exports, "Metadata", ({ enumerable: true, get: function () { return metadata_1.Metadata; } })); +const server_1 = __nccwpck_require__(27323); +Object.defineProperty(exports, "Server", ({ enumerable: true, get: function () { return server_1.Server; } })); +const server_credentials_1 = __nccwpck_require__(2272); +Object.defineProperty(exports, "ServerCredentials", ({ enumerable: true, get: function () { return server_credentials_1.ServerCredentials; } })); +const status_builder_1 = __nccwpck_require__(55544); +Object.defineProperty(exports, "StatusBuilder", ({ enumerable: true, get: function () { return status_builder_1.StatusBuilder; } })); +/**** Client Credentials ****/ +// Using assign only copies enumerable properties, which is what we want +exports.credentials = { + /** + * Combine a ChannelCredentials with any number of CallCredentials into a + * single ChannelCredentials object. + * @param channelCredentials The ChannelCredentials object. + * @param callCredentials Any number of CallCredentials objects. + * @return The resulting ChannelCredentials object. + */ + combineChannelCredentials: (channelCredentials, ...callCredentials) => { + return callCredentials.reduce((acc, other) => acc.compose(other), channelCredentials); + }, + /** + * Combine any number of CallCredentials into a single CallCredentials + * object. + * @param first The first CallCredentials object. + * @param additional Any number of additional CallCredentials objects. + * @return The resulting CallCredentials object. + */ + combineCallCredentials: (first, ...additional) => { + return additional.reduce((acc, other) => acc.compose(other), first); + }, + // from channel-credentials.ts + createInsecure: channel_credentials_1.ChannelCredentials.createInsecure, + createSsl: channel_credentials_1.ChannelCredentials.createSsl, + createFromSecureContext: channel_credentials_1.ChannelCredentials.createFromSecureContext, + // from call-credentials.ts + createFromMetadataGenerator: call_credentials_1.CallCredentials.createFromMetadataGenerator, + createFromGoogleCredential: call_credentials_1.CallCredentials.createFromGoogleCredential, + createEmpty: call_credentials_1.CallCredentials.createEmpty, +}; +/** + * Close a Client object. + * @param client The client to close. + */ +const closeClient = (client) => client.close(); +exports.closeClient = closeClient; +const waitForClientReady = (client, deadline, callback) => client.waitForReady(deadline, callback); +exports.waitForClientReady = waitForClientReady; +/* eslint-enable @typescript-eslint/no-explicit-any */ +/**** Unimplemented function stubs ****/ +/* eslint-disable @typescript-eslint/no-explicit-any */ +const loadObject = (value, options) => { + throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); +}; +exports.loadObject = loadObject; +const load = (filename, format, options) => { + throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); +}; +exports.load = load; +const setLogger = (logger) => { + logging.setLogger(logger); +}; +exports.setLogger = setLogger; +const setLogVerbosity = (verbosity) => { + logging.setLoggerVerbosity(verbosity); +}; +exports.setLogVerbosity = setLogVerbosity; +const getClientChannel = (client) => { + return client_1.Client.prototype.getChannel.call(client); +}; +exports.getClientChannel = getClientChannel; +var client_interceptors_1 = __nccwpck_require__(13388); +Object.defineProperty(exports, "ListenerBuilder", ({ enumerable: true, get: function () { return client_interceptors_1.ListenerBuilder; } })); +Object.defineProperty(exports, "RequesterBuilder", ({ enumerable: true, get: function () { return client_interceptors_1.RequesterBuilder; } })); +Object.defineProperty(exports, "InterceptingCall", ({ enumerable: true, get: function () { return client_interceptors_1.InterceptingCall; } })); +Object.defineProperty(exports, "InterceptorConfigurationError", ({ enumerable: true, get: function () { return client_interceptors_1.InterceptorConfigurationError; } })); +var channelz_1 = __nccwpck_require__(50379); +Object.defineProperty(exports, "getChannelzServiceDefinition", ({ enumerable: true, get: function () { return channelz_1.getChannelzServiceDefinition; } })); +Object.defineProperty(exports, "getChannelzHandlers", ({ enumerable: true, get: function () { return channelz_1.getChannelzHandlers; } })); +var admin_1 = __nccwpck_require__(257); +Object.defineProperty(exports, "addAdminServicesToServer", ({ enumerable: true, get: function () { return admin_1.addAdminServicesToServer; } })); +var server_interceptors_1 = __nccwpck_require__(9520); +Object.defineProperty(exports, "ServerListenerBuilder", ({ enumerable: true, get: function () { return server_interceptors_1.ServerListenerBuilder; } })); +Object.defineProperty(exports, "ResponderBuilder", ({ enumerable: true, get: function () { return server_interceptors_1.ResponderBuilder; } })); +Object.defineProperty(exports, "ServerInterceptingCall", ({ enumerable: true, get: function () { return server_interceptors_1.ServerInterceptingCall; } })); +var orca_1 = __nccwpck_require__(845); +Object.defineProperty(exports, "ServerMetricRecorder", ({ enumerable: true, get: function () { return orca_1.ServerMetricRecorder; } })); +const experimental = __nccwpck_require__(51578); +exports.experimental = experimental; +const resolver_dns = __nccwpck_require__(10104); +const resolver_uds = __nccwpck_require__(16317); +const resolver_ip = __nccwpck_require__(27590); +const load_balancer_pick_first = __nccwpck_require__(72074); +const load_balancer_round_robin = __nccwpck_require__(98951); +const load_balancer_outlier_detection = __nccwpck_require__(8384); +const load_balancer_weighted_round_robin = __nccwpck_require__(83409); +const channelz = __nccwpck_require__(50379); +(() => { + resolver_dns.setup(); + resolver_uds.setup(); + resolver_ip.setup(); + load_balancer_pick_first.setup(); + load_balancer_round_robin.setup(); + load_balancer_outlier_detection.setup(); + load_balancer_weighted_round_robin.setup(); + channelz.setup(); +})(); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 9487: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.InternalChannel = exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = void 0; +const channel_credentials_1 = __nccwpck_require__(22377); +const resolving_load_balancer_1 = __nccwpck_require__(9809); +const subchannel_pool_1 = __nccwpck_require__(26224); +const picker_1 = __nccwpck_require__(12313); +const metadata_1 = __nccwpck_require__(89173); +const constants_1 = __nccwpck_require__(84623); +const filter_stack_1 = __nccwpck_require__(5427); +const compression_filter_1 = __nccwpck_require__(39415); +const resolver_1 = __nccwpck_require__(30842); +const logging_1 = __nccwpck_require__(26239); +const http_proxy_1 = __nccwpck_require__(95367); +const uri_parser_1 = __nccwpck_require__(70210); +const connectivity_state_1 = __nccwpck_require__(63827); +const channelz_1 = __nccwpck_require__(50379); +const load_balancing_call_1 = __nccwpck_require__(95231); +const deadline_1 = __nccwpck_require__(27168); +const resolving_call_1 = __nccwpck_require__(83170); +const call_number_1 = __nccwpck_require__(50256); +const control_plane_status_1 = __nccwpck_require__(14519); +const retrying_call_1 = __nccwpck_require__(45355); +const subchannel_interface_1 = __nccwpck_require__(45631); +/** + * See https://nodejs.org/api/timers.html#timers_setinterval_callback_delay_args + */ +const MAX_TIMEOUT_TIME = 2147483647; +const MIN_IDLE_TIMEOUT_MS = 1000; +// 30 minutes +const DEFAULT_IDLE_TIMEOUT_MS = 30 * 60 * 1000; +const RETRY_THROTTLER_MAP = new Map(); +const DEFAULT_RETRY_BUFFER_SIZE_BYTES = 1 << 24; // 16 MB +const DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES = 1 << 20; // 1 MB +class ChannelSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { + constructor(childSubchannel, channel) { + super(childSubchannel); + this.channel = channel; + this.refCount = 0; + this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime) => { + channel.throttleKeepalive(keepaliveTime); + }; + } + ref() { + if (this.refCount === 0) { + this.child.addConnectivityStateListener(this.subchannelStateListener); + this.channel.addWrappedSubchannel(this); + } + this.child.ref(); + this.refCount += 1; + } + unref() { + this.child.unref(); + this.refCount -= 1; + if (this.refCount <= 0) { + this.child.removeConnectivityStateListener(this.subchannelStateListener); + this.channel.removeWrappedSubchannel(this); + } + } +} +class ShutdownPicker { + pick(pickArgs) { + return { + pickResultType: picker_1.PickResultType.DROP, + status: { + code: constants_1.Status.UNAVAILABLE, + details: 'Channel closed before call started', + metadata: new metadata_1.Metadata() + }, + subchannel: null, + onCallStarted: null, + onCallEnded: null + }; + } +} +exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = 'grpc.internal.no_subchannel'; +class ChannelzInfoTracker { + constructor(target) { + this.target = target; + this.trace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.state = connectivity_state_1.ConnectivityState.IDLE; + } + getChannelzInfoCallback() { + return () => { + return { + target: this.target, + state: this.state, + trace: this.trace, + callTracker: this.callTracker, + children: this.childrenTracker.getChildLists() + }; + }; + } +} +class InternalChannel { + constructor(target, credentials, options) { + var _a, _b, _c, _d, _e, _f; + this.credentials = credentials; + this.options = options; + this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; + this.currentPicker = new picker_1.UnavailablePicker(); + /** + * Calls queued up to get a call config. Should only be populated before the + * first time the resolver returns a result, which includes the ConfigSelector. + */ + this.configSelectionQueue = []; + this.pickQueue = []; + this.connectivityStateWatchers = []; + /** + * This timer does not do anything on its own. Its purpose is to hold the + * event loop open while there are any pending calls for the channel that + * have not yet been assigned to specific subchannels. In other words, + * the invariant is that callRefTimer is reffed if and only if pickQueue + * is non-empty. In addition, the timer is null while the state is IDLE or + * SHUTDOWN and there are no pending calls. + */ + this.callRefTimer = null; + this.configSelector = null; + /** + * This is the error from the name resolver if it failed most recently. It + * is only used to end calls that start while there is no config selector + * and the name resolver is in backoff, so it should be nulled if + * configSelector becomes set or the channel state becomes anything other + * than TRANSIENT_FAILURE. + */ + this.currentResolutionError = null; + this.wrappedSubchannels = new Set(); + this.callCount = 0; + this.idleTimer = null; + // Channelz info + this.channelzEnabled = true; + /** + * Randomly generated ID to be passed to the config selector, for use by + * ring_hash in xDS. An integer distributed approximately uniformly between + * 0 and MAX_SAFE_INTEGER. + */ + this.randomChannelId = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER); + if (typeof target !== 'string') { + throw new TypeError('Channel target must be a string'); + } + if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { + throw new TypeError('Channel credentials must be a ChannelCredentials object'); + } + if (options) { + if (typeof options !== 'object') { + throw new TypeError('Channel options must be an object'); + } + } + this.channelzInfoTracker = new ChannelzInfoTracker(target); + const originalTargetUri = (0, uri_parser_1.parseUri)(target); + if (originalTargetUri === null) { + throw new Error(`Could not parse target name "${target}"`); + } + /* This ensures that the target has a scheme that is registered with the + * resolver */ + const defaultSchemeMapResult = (0, resolver_1.mapUriDefaultScheme)(originalTargetUri); + if (defaultSchemeMapResult === null) { + throw new Error(`Could not find a default scheme for target name "${target}"`); + } + if (this.options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + } + this.channelzRef = (0, channelz_1.registerChannelzChannel)(target, this.channelzInfoTracker.getChannelzInfoCallback(), this.channelzEnabled); + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Channel created'); + } + if (this.options['grpc.default_authority']) { + this.defaultAuthority = this.options['grpc.default_authority']; + } + else { + this.defaultAuthority = (0, resolver_1.getDefaultAuthority)(defaultSchemeMapResult); + } + const proxyMapResult = (0, http_proxy_1.mapProxyName)(defaultSchemeMapResult, options); + this.target = proxyMapResult.target; + this.options = Object.assign({}, this.options, proxyMapResult.extraOptions); + /* The global boolean parameter to getSubchannelPool has the inverse meaning to what + * the grpc.use_local_subchannel_pool channel option means. */ + this.subchannelPool = (0, subchannel_pool_1.getSubchannelPool)(((_a = this.options['grpc.use_local_subchannel_pool']) !== null && _a !== void 0 ? _a : 0) === 0); + this.retryBufferTracker = new retrying_call_1.MessageBufferTracker((_b = this.options['grpc.retry_buffer_size']) !== null && _b !== void 0 ? _b : DEFAULT_RETRY_BUFFER_SIZE_BYTES, (_c = this.options['grpc.per_rpc_retry_buffer_size']) !== null && _c !== void 0 ? _c : DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES); + this.keepaliveTime = (_d = this.options['grpc.keepalive_time_ms']) !== null && _d !== void 0 ? _d : -1; + this.idleTimeoutMs = Math.max((_e = this.options['grpc.client_idle_timeout_ms']) !== null && _e !== void 0 ? _e : DEFAULT_IDLE_TIMEOUT_MS, MIN_IDLE_TIMEOUT_MS); + const channelControlHelper = { + createSubchannel: (subchannelAddress, subchannelArgs) => { + const finalSubchannelArgs = {}; + for (const [key, value] of Object.entries(subchannelArgs)) { + if (!key.startsWith(exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX)) { + finalSubchannelArgs[key] = value; + } + } + const subchannel = this.subchannelPool.getOrCreateSubchannel(this.target, subchannelAddress, finalSubchannelArgs, this.credentials); + subchannel.throttleKeepalive(this.keepaliveTime); + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Created subchannel or used existing subchannel', subchannel.getChannelzRef()); + } + const wrappedSubchannel = new ChannelSubchannelWrapper(subchannel, this); + return wrappedSubchannel; + }, + updateState: (connectivityState, picker) => { + this.currentPicker = picker; + const queueCopy = this.pickQueue.slice(); + this.pickQueue = []; + if (queueCopy.length > 0) { + this.callRefTimerUnref(); + } + for (const call of queueCopy) { + call.doPick(); + } + this.updateState(connectivityState); + }, + requestReresolution: () => { + // This should never be called. + throw new Error('Resolving load balancer should never call requestReresolution'); + }, + addChannelzChild: (child) => { + if (this.channelzEnabled) { + this.channelzInfoTracker.childrenTracker.refChild(child); + } + }, + removeChannelzChild: (child) => { + if (this.channelzEnabled) { + this.channelzInfoTracker.childrenTracker.unrefChild(child); + } + }, + }; + this.resolvingLoadBalancer = new resolving_load_balancer_1.ResolvingLoadBalancer(this.target, channelControlHelper, this.options, (serviceConfig, configSelector) => { + var _a; + if (serviceConfig.retryThrottling) { + RETRY_THROTTLER_MAP.set(this.getTarget(), new retrying_call_1.RetryThrottler(serviceConfig.retryThrottling.maxTokens, serviceConfig.retryThrottling.tokenRatio, RETRY_THROTTLER_MAP.get(this.getTarget()))); + } + else { + RETRY_THROTTLER_MAP.delete(this.getTarget()); + } + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Address resolution succeeded'); + } + (_a = this.configSelector) === null || _a === void 0 ? void 0 : _a.unref(); + this.configSelector = configSelector; + this.currentResolutionError = null; + /* We process the queue asynchronously to ensure that the corresponding + * load balancer update has completed. */ + process.nextTick(() => { + const localQueue = this.configSelectionQueue; + this.configSelectionQueue = []; + if (localQueue.length > 0) { + this.callRefTimerUnref(); + } + for (const call of localQueue) { + call.getConfig(); + } + }); + }, status => { + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_WARNING', 'Address resolution failed with code ' + + status.code + + ' and details "' + + status.details + + '"'); + } + if (this.configSelectionQueue.length > 0) { + this.trace('Name resolution failed with calls queued for config selection'); + } + if (this.configSelector === null) { + this.currentResolutionError = Object.assign(Object.assign({}, (0, control_plane_status_1.restrictControlPlaneStatusCode)(status.code, status.details)), { metadata: status.metadata }); + } + const localQueue = this.configSelectionQueue; + this.configSelectionQueue = []; + if (localQueue.length > 0) { + this.callRefTimerUnref(); + } + for (const call of localQueue) { + call.reportResolverError(status); + } + }); + this.filterStackFactory = new filter_stack_1.FilterStackFactory([ + new compression_filter_1.CompressionFilterFactory(this, this.options), + ]); + this.trace('Channel constructed with options ' + + JSON.stringify(options, undefined, 2)); + const error = new Error(); + if ((0, logging_1.isTracerEnabled)('channel_stacktrace')) { + (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'channel_stacktrace', '(' + + this.channelzRef.id + + ') ' + + 'Channel constructed \n' + + ((_f = error.stack) === null || _f === void 0 ? void 0 : _f.substring(error.stack.indexOf('\n') + 1))); + } + this.lastActivityTimestamp = new Date(); + } + trace(text, verbosityOverride) { + (0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, 'channel', '(' + this.channelzRef.id + ') ' + (0, uri_parser_1.uriToString)(this.target) + ' ' + text); + } + callRefTimerRef() { + var _a, _b, _c, _d; + if (!this.callRefTimer) { + this.callRefTimer = setInterval(() => { }, MAX_TIMEOUT_TIME); + } + // If the hasRef function does not exist, always run the code + if (!((_b = (_a = this.callRefTimer).hasRef) === null || _b === void 0 ? void 0 : _b.call(_a))) { + this.trace('callRefTimer.ref | configSelectionQueue.length=' + + this.configSelectionQueue.length + + ' pickQueue.length=' + + this.pickQueue.length); + (_d = (_c = this.callRefTimer).ref) === null || _d === void 0 ? void 0 : _d.call(_c); + } + } + callRefTimerUnref() { + var _a, _b, _c; + // If the timer or the hasRef function does not exist, always run the code + if (!((_a = this.callRefTimer) === null || _a === void 0 ? void 0 : _a.hasRef) || this.callRefTimer.hasRef()) { + this.trace('callRefTimer.unref | configSelectionQueue.length=' + + this.configSelectionQueue.length + + ' pickQueue.length=' + + this.pickQueue.length); + (_c = (_b = this.callRefTimer) === null || _b === void 0 ? void 0 : _b.unref) === null || _c === void 0 ? void 0 : _c.call(_b); + } + } + removeConnectivityStateWatcher(watcherObject) { + const watcherIndex = this.connectivityStateWatchers.findIndex(value => value === watcherObject); + if (watcherIndex >= 0) { + this.connectivityStateWatchers.splice(watcherIndex, 1); + } + } + updateState(newState) { + (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'connectivity_state', '(' + + this.channelzRef.id + + ') ' + + (0, uri_parser_1.uriToString)(this.target) + + ' ' + + connectivity_state_1.ConnectivityState[this.connectivityState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); + } + this.connectivityState = newState; + this.channelzInfoTracker.state = newState; + const watchersCopy = this.connectivityStateWatchers.slice(); + for (const watcherObject of watchersCopy) { + if (newState !== watcherObject.currentState) { + if (watcherObject.timer) { + clearTimeout(watcherObject.timer); + } + this.removeConnectivityStateWatcher(watcherObject); + watcherObject.callback(); + } + } + if (newState !== connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + this.currentResolutionError = null; + } + } + throttleKeepalive(newKeepaliveTime) { + if (newKeepaliveTime > this.keepaliveTime) { + this.keepaliveTime = newKeepaliveTime; + for (const wrappedSubchannel of this.wrappedSubchannels) { + wrappedSubchannel.throttleKeepalive(newKeepaliveTime); + } + } + } + addWrappedSubchannel(wrappedSubchannel) { + this.wrappedSubchannels.add(wrappedSubchannel); + } + removeWrappedSubchannel(wrappedSubchannel) { + this.wrappedSubchannels.delete(wrappedSubchannel); + } + doPick(metadata, extraPickInfo) { + return this.currentPicker.pick({ + metadata: metadata, + extraPickInfo: extraPickInfo, + }); + } + queueCallForPick(call) { + this.pickQueue.push(call); + this.callRefTimerRef(); + } + getConfig(method, metadata) { + if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN) { + this.resolvingLoadBalancer.exitIdle(); + } + if (this.configSelector) { + return { + type: 'SUCCESS', + config: this.configSelector.invoke(method, metadata, this.randomChannelId), + }; + } + else { + if (this.currentResolutionError) { + return { + type: 'ERROR', + error: this.currentResolutionError, + }; + } + else { + return { + type: 'NONE', + }; + } + } + } + queueCallForConfig(call) { + this.configSelectionQueue.push(call); + this.callRefTimerRef(); + } + enterIdle() { + this.resolvingLoadBalancer.destroy(); + this.updateState(connectivity_state_1.ConnectivityState.IDLE); + this.currentPicker = new picker_1.QueuePicker(this.resolvingLoadBalancer); + if (this.idleTimer) { + clearTimeout(this.idleTimer); + this.idleTimer = null; + } + if (this.callRefTimer) { + clearInterval(this.callRefTimer); + this.callRefTimer = null; + } + } + startIdleTimeout(timeoutMs) { + var _a, _b; + this.idleTimer = setTimeout(() => { + if (this.callCount > 0) { + /* If there is currently a call, the channel will not go idle for a + * period of at least idleTimeoutMs, so check again after that time. + */ + this.startIdleTimeout(this.idleTimeoutMs); + return; + } + const now = new Date(); + const timeSinceLastActivity = now.valueOf() - this.lastActivityTimestamp.valueOf(); + if (timeSinceLastActivity >= this.idleTimeoutMs) { + this.trace('Idle timer triggered after ' + + this.idleTimeoutMs + + 'ms of inactivity'); + this.enterIdle(); + } + else { + /* Whenever the timer fires with the latest activity being too recent, + * set the timer again for the time when the time since the last + * activity is equal to the timeout. This should result in the timer + * firing no more than once every idleTimeoutMs/2 on average. */ + this.startIdleTimeout(this.idleTimeoutMs - timeSinceLastActivity); + } + }, timeoutMs); + (_b = (_a = this.idleTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + maybeStartIdleTimer() { + if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN && + !this.idleTimer) { + this.startIdleTimeout(this.idleTimeoutMs); + } + } + onCallStart() { + if (this.channelzEnabled) { + this.channelzInfoTracker.callTracker.addCallStarted(); + } + this.callCount += 1; + } + onCallEnd(status) { + if (this.channelzEnabled) { + if (status.code === constants_1.Status.OK) { + this.channelzInfoTracker.callTracker.addCallSucceeded(); + } + else { + this.channelzInfoTracker.callTracker.addCallFailed(); + } + } + this.callCount -= 1; + this.lastActivityTimestamp = new Date(); + this.maybeStartIdleTimer(); + } + createLoadBalancingCall(callConfig, method, host, credentials, deadline) { + const callNumber = (0, call_number_1.getNextCallNumber)(); + this.trace('createLoadBalancingCall [' + callNumber + '] method="' + method + '"'); + return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials, deadline, callNumber); + } + createRetryingCall(callConfig, method, host, credentials, deadline) { + const callNumber = (0, call_number_1.getNextCallNumber)(); + this.trace('createRetryingCall [' + callNumber + '] method="' + method + '"'); + return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials, deadline, callNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget())); + } + createResolvingCall(method, deadline, host, parentCall, propagateFlags) { + const callNumber = (0, call_number_1.getNextCallNumber)(); + this.trace('createResolvingCall [' + + callNumber + + '] method="' + + method + + '", deadline=' + + (0, deadline_1.deadlineToString)(deadline)); + const finalOptions = { + deadline: deadline, + flags: propagateFlags !== null && propagateFlags !== void 0 ? propagateFlags : constants_1.Propagate.DEFAULTS, + host: host !== null && host !== void 0 ? host : this.defaultAuthority, + parentCall: parentCall, + }; + const call = new resolving_call_1.ResolvingCall(this, method, finalOptions, this.filterStackFactory.clone(), callNumber); + this.onCallStart(); + call.addStatusWatcher(status => { + this.onCallEnd(status); + }); + return call; + } + close() { + var _a; + this.resolvingLoadBalancer.destroy(); + this.updateState(connectivity_state_1.ConnectivityState.SHUTDOWN); + this.currentPicker = new ShutdownPicker(); + for (const call of this.configSelectionQueue) { + call.cancelWithStatus(constants_1.Status.UNAVAILABLE, 'Channel closed before call started'); + } + this.configSelectionQueue = []; + for (const call of this.pickQueue) { + call.cancelWithStatus(constants_1.Status.UNAVAILABLE, 'Channel closed before call started'); + } + this.pickQueue = []; + if (this.callRefTimer) { + clearInterval(this.callRefTimer); + } + if (this.idleTimer) { + clearTimeout(this.idleTimer); + } + if (this.channelzEnabled) { + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + } + this.subchannelPool.unrefUnusedSubchannels(); + (_a = this.configSelector) === null || _a === void 0 ? void 0 : _a.unref(); + this.configSelector = null; + } + getTarget() { + return (0, uri_parser_1.uriToString)(this.target); + } + getConnectivityState(tryToConnect) { + const connectivityState = this.connectivityState; + if (tryToConnect) { + this.resolvingLoadBalancer.exitIdle(); + this.lastActivityTimestamp = new Date(); + this.maybeStartIdleTimer(); + } + return connectivityState; + } + watchConnectivityState(currentState, deadline, callback) { + if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { + throw new Error('Channel has been shut down'); + } + let timer = null; + if (deadline !== Infinity) { + const deadlineDate = deadline instanceof Date ? deadline : new Date(deadline); + const now = new Date(); + if (deadline === -Infinity || deadlineDate <= now) { + process.nextTick(callback, new Error('Deadline passed without connectivity state change')); + return; + } + timer = setTimeout(() => { + this.removeConnectivityStateWatcher(watcherObject); + callback(new Error('Deadline passed without connectivity state change')); + }, deadlineDate.getTime() - now.getTime()); + } + const watcherObject = { + currentState, + callback, + timer, + }; + this.connectivityStateWatchers.push(watcherObject); + } + /** + * Get the channelz reference object for this channel. The returned value is + * garbage if channelz is disabled for this channel. + * @returns + */ + getChannelzRef() { + return this.channelzRef; + } + createCall(method, deadline, host, parentCall, propagateFlags) { + if (typeof method !== 'string') { + throw new TypeError('Channel#createCall: method must be a string'); + } + if (!(typeof deadline === 'number' || deadline instanceof Date)) { + throw new TypeError('Channel#createCall: deadline must be a number or Date'); + } + if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { + throw new Error('Channel has been shut down'); + } + return this.createResolvingCall(method, deadline, host, parentCall, propagateFlags); + } + getOptions() { + return this.options; + } +} +exports.InternalChannel = InternalChannel; +//# sourceMappingURL=internal-channel.js.map + +/***/ }), + +/***/ 33569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2020 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChildLoadBalancerHandler = void 0; +const load_balancer_1 = __nccwpck_require__(23863); +const connectivity_state_1 = __nccwpck_require__(63827); +const TYPE_NAME = 'child_load_balancer_helper'; +class ChildLoadBalancerHandler { + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + this.currentChild = null; + this.pendingChild = null; + this.latestConfig = null; + this.ChildPolicyHelper = class { + constructor(parent) { + this.parent = parent; + this.child = null; + } + createSubchannel(subchannelAddress, subchannelArgs) { + return this.parent.channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); + } + updateState(connectivityState, picker, errorMessage) { + var _a; + if (this.calledByPendingChild()) { + if (connectivityState === connectivity_state_1.ConnectivityState.CONNECTING) { + return; + } + (_a = this.parent.currentChild) === null || _a === void 0 ? void 0 : _a.destroy(); + this.parent.currentChild = this.parent.pendingChild; + this.parent.pendingChild = null; + } + else if (!this.calledByCurrentChild()) { + return; + } + this.parent.channelControlHelper.updateState(connectivityState, picker, errorMessage); + } + requestReresolution() { + var _a; + const latestChild = (_a = this.parent.pendingChild) !== null && _a !== void 0 ? _a : this.parent.currentChild; + if (this.child === latestChild) { + this.parent.channelControlHelper.requestReresolution(); + } + } + setChild(newChild) { + this.child = newChild; + } + addChannelzChild(child) { + this.parent.channelControlHelper.addChannelzChild(child); + } + removeChannelzChild(child) { + this.parent.channelControlHelper.removeChannelzChild(child); + } + calledByPendingChild() { + return this.child === this.parent.pendingChild; + } + calledByCurrentChild() { + return this.child === this.parent.currentChild; + } + }; + } + configUpdateRequiresNewPolicyInstance(oldConfig, newConfig) { + return oldConfig.getLoadBalancerName() !== newConfig.getLoadBalancerName(); + } + /** + * Prerequisites: lbConfig !== null and lbConfig.name is registered + * @param endpointList + * @param lbConfig + * @param attributes + */ + updateAddressList(endpointList, lbConfig, options, resolutionNote) { + let childToUpdate; + if (this.currentChild === null || + this.latestConfig === null || + this.configUpdateRequiresNewPolicyInstance(this.latestConfig, lbConfig)) { + const newHelper = new this.ChildPolicyHelper(this); + const newChild = (0, load_balancer_1.createLoadBalancer)(lbConfig, newHelper); + newHelper.setChild(newChild); + if (this.currentChild === null) { + this.currentChild = newChild; + childToUpdate = this.currentChild; + } + else { + if (this.pendingChild) { + this.pendingChild.destroy(); + } + this.pendingChild = newChild; + childToUpdate = this.pendingChild; + } + } + else { + if (this.pendingChild === null) { + childToUpdate = this.currentChild; + } + else { + childToUpdate = this.pendingChild; + } + } + this.latestConfig = lbConfig; + return childToUpdate.updateAddressList(endpointList, lbConfig, options, resolutionNote); + } + exitIdle() { + if (this.currentChild) { + this.currentChild.exitIdle(); + if (this.pendingChild) { + this.pendingChild.exitIdle(); + } + } + } + resetBackoff() { + if (this.currentChild) { + this.currentChild.resetBackoff(); + if (this.pendingChild) { + this.pendingChild.resetBackoff(); + } + } + } + destroy() { + /* Note: state updates are only propagated from the child balancer if that + * object is equal to this.currentChild or this.pendingChild. Since this + * function sets both of those to null, no further state updates will + * occur after this function returns. */ + if (this.currentChild) { + this.currentChild.destroy(); + this.currentChild = null; + } + if (this.pendingChild) { + this.pendingChild.destroy(); + this.pendingChild = null; + } + } + getTypeName() { + return TYPE_NAME; + } +} +exports.ChildLoadBalancerHandler = ChildLoadBalancerHandler; +//# sourceMappingURL=load-balancer-child-handler.js.map + +/***/ }), + +/***/ 8384: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OutlierDetectionLoadBalancer = exports.OutlierDetectionLoadBalancingConfig = void 0; +exports.setup = setup; +const connectivity_state_1 = __nccwpck_require__(63827); +const constants_1 = __nccwpck_require__(84623); +const duration_1 = __nccwpck_require__(23168); +const experimental_1 = __nccwpck_require__(51578); +const load_balancer_1 = __nccwpck_require__(23863); +const load_balancer_child_handler_1 = __nccwpck_require__(33569); +const picker_1 = __nccwpck_require__(12313); +const subchannel_address_1 = __nccwpck_require__(95080); +const subchannel_interface_1 = __nccwpck_require__(45631); +const logging = __nccwpck_require__(26239); +const TRACER_NAME = 'outlier_detection'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'outlier_detection'; +const OUTLIER_DETECTION_ENABLED = ((_a = process.env.GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION) !== null && _a !== void 0 ? _a : 'true') === 'true'; +const defaultSuccessRateEjectionConfig = { + stdev_factor: 1900, + enforcement_percentage: 100, + minimum_hosts: 5, + request_volume: 100, +}; +const defaultFailurePercentageEjectionConfig = { + threshold: 85, + enforcement_percentage: 100, + minimum_hosts: 5, + request_volume: 50, +}; +function validateFieldType(obj, fieldName, expectedType, objectName) { + if (fieldName in obj && + obj[fieldName] !== undefined && + typeof obj[fieldName] !== expectedType) { + const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; + throw new Error(`outlier detection config ${fullFieldName} parse error: expected ${expectedType}, got ${typeof obj[fieldName]}`); + } +} +function validatePositiveDuration(obj, fieldName, objectName) { + const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; + if (fieldName in obj && obj[fieldName] !== undefined) { + if (!(0, duration_1.isDuration)(obj[fieldName])) { + throw new Error(`outlier detection config ${fullFieldName} parse error: expected Duration, got ${typeof obj[fieldName]}`); + } + if (!(obj[fieldName].seconds >= 0 && + obj[fieldName].seconds <= 315576000000 && + obj[fieldName].nanos >= 0 && + obj[fieldName].nanos <= 999999999)) { + throw new Error(`outlier detection config ${fullFieldName} parse error: values out of range for non-negative Duaration`); + } + } +} +function validatePercentage(obj, fieldName, objectName) { + const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; + validateFieldType(obj, fieldName, 'number', objectName); + if (fieldName in obj && + obj[fieldName] !== undefined && + !(obj[fieldName] >= 0 && obj[fieldName] <= 100)) { + throw new Error(`outlier detection config ${fullFieldName} parse error: value out of range for percentage (0-100)`); + } +} +class OutlierDetectionLoadBalancingConfig { + constructor(intervalMs, baseEjectionTimeMs, maxEjectionTimeMs, maxEjectionPercent, successRateEjection, failurePercentageEjection, childPolicy) { + this.childPolicy = childPolicy; + if (childPolicy.getLoadBalancerName() === 'pick_first') { + throw new Error('outlier_detection LB policy cannot have a pick_first child policy'); + } + this.intervalMs = intervalMs !== null && intervalMs !== void 0 ? intervalMs : 10000; + this.baseEjectionTimeMs = baseEjectionTimeMs !== null && baseEjectionTimeMs !== void 0 ? baseEjectionTimeMs : 30000; + this.maxEjectionTimeMs = maxEjectionTimeMs !== null && maxEjectionTimeMs !== void 0 ? maxEjectionTimeMs : 300000; + this.maxEjectionPercent = maxEjectionPercent !== null && maxEjectionPercent !== void 0 ? maxEjectionPercent : 10; + this.successRateEjection = successRateEjection + ? Object.assign(Object.assign({}, defaultSuccessRateEjectionConfig), successRateEjection) : null; + this.failurePercentageEjection = failurePercentageEjection + ? Object.assign(Object.assign({}, defaultFailurePercentageEjectionConfig), failurePercentageEjection) : null; + } + getLoadBalancerName() { + return TYPE_NAME; + } + toJsonObject() { + var _a, _b; + return { + outlier_detection: { + interval: (0, duration_1.msToDuration)(this.intervalMs), + base_ejection_time: (0, duration_1.msToDuration)(this.baseEjectionTimeMs), + max_ejection_time: (0, duration_1.msToDuration)(this.maxEjectionTimeMs), + max_ejection_percent: this.maxEjectionPercent, + success_rate_ejection: (_a = this.successRateEjection) !== null && _a !== void 0 ? _a : undefined, + failure_percentage_ejection: (_b = this.failurePercentageEjection) !== null && _b !== void 0 ? _b : undefined, + child_policy: [this.childPolicy.toJsonObject()], + }, + }; + } + getIntervalMs() { + return this.intervalMs; + } + getBaseEjectionTimeMs() { + return this.baseEjectionTimeMs; + } + getMaxEjectionTimeMs() { + return this.maxEjectionTimeMs; + } + getMaxEjectionPercent() { + return this.maxEjectionPercent; + } + getSuccessRateEjectionConfig() { + return this.successRateEjection; + } + getFailurePercentageEjectionConfig() { + return this.failurePercentageEjection; + } + getChildPolicy() { + return this.childPolicy; + } + static createFromJson(obj) { + var _a; + validatePositiveDuration(obj, 'interval'); + validatePositiveDuration(obj, 'base_ejection_time'); + validatePositiveDuration(obj, 'max_ejection_time'); + validatePercentage(obj, 'max_ejection_percent'); + if ('success_rate_ejection' in obj && + obj.success_rate_ejection !== undefined) { + if (typeof obj.success_rate_ejection !== 'object') { + throw new Error('outlier detection config success_rate_ejection must be an object'); + } + validateFieldType(obj.success_rate_ejection, 'stdev_factor', 'number', 'success_rate_ejection'); + validatePercentage(obj.success_rate_ejection, 'enforcement_percentage', 'success_rate_ejection'); + validateFieldType(obj.success_rate_ejection, 'minimum_hosts', 'number', 'success_rate_ejection'); + validateFieldType(obj.success_rate_ejection, 'request_volume', 'number', 'success_rate_ejection'); + } + if ('failure_percentage_ejection' in obj && + obj.failure_percentage_ejection !== undefined) { + if (typeof obj.failure_percentage_ejection !== 'object') { + throw new Error('outlier detection config failure_percentage_ejection must be an object'); + } + validatePercentage(obj.failure_percentage_ejection, 'threshold', 'failure_percentage_ejection'); + validatePercentage(obj.failure_percentage_ejection, 'enforcement_percentage', 'failure_percentage_ejection'); + validateFieldType(obj.failure_percentage_ejection, 'minimum_hosts', 'number', 'failure_percentage_ejection'); + validateFieldType(obj.failure_percentage_ejection, 'request_volume', 'number', 'failure_percentage_ejection'); + } + if (!('child_policy' in obj) || !Array.isArray(obj.child_policy)) { + throw new Error('outlier detection config child_policy must be an array'); + } + const childPolicy = (0, load_balancer_1.selectLbConfigFromList)(obj.child_policy); + if (!childPolicy) { + throw new Error('outlier detection config child_policy: no valid recognized policy found'); + } + return new OutlierDetectionLoadBalancingConfig(obj.interval ? (0, duration_1.durationToMs)(obj.interval) : null, obj.base_ejection_time ? (0, duration_1.durationToMs)(obj.base_ejection_time) : null, obj.max_ejection_time ? (0, duration_1.durationToMs)(obj.max_ejection_time) : null, (_a = obj.max_ejection_percent) !== null && _a !== void 0 ? _a : null, obj.success_rate_ejection, obj.failure_percentage_ejection, childPolicy); + } +} +exports.OutlierDetectionLoadBalancingConfig = OutlierDetectionLoadBalancingConfig; +class OutlierDetectionSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { + constructor(childSubchannel, mapEntry) { + super(childSubchannel); + this.mapEntry = mapEntry; + this.refCount = 0; + } + ref() { + this.child.ref(); + this.refCount += 1; + } + unref() { + this.child.unref(); + this.refCount -= 1; + if (this.refCount <= 0) { + if (this.mapEntry) { + const index = this.mapEntry.subchannelWrappers.indexOf(this); + if (index >= 0) { + this.mapEntry.subchannelWrappers.splice(index, 1); + } + } + } + } + eject() { + this.setHealthy(false); + } + uneject() { + this.setHealthy(true); + } + getMapEntry() { + return this.mapEntry; + } + getWrappedSubchannel() { + return this.child; + } +} +function createEmptyBucket() { + return { + success: 0, + failure: 0, + }; +} +class CallCounter { + constructor() { + this.activeBucket = createEmptyBucket(); + this.inactiveBucket = createEmptyBucket(); + } + addSuccess() { + this.activeBucket.success += 1; + } + addFailure() { + this.activeBucket.failure += 1; + } + switchBuckets() { + this.inactiveBucket = this.activeBucket; + this.activeBucket = createEmptyBucket(); + } + getLastSuccesses() { + return this.inactiveBucket.success; + } + getLastFailures() { + return this.inactiveBucket.failure; + } +} +class OutlierDetectionPicker { + constructor(wrappedPicker, countCalls) { + this.wrappedPicker = wrappedPicker; + this.countCalls = countCalls; + } + pick(pickArgs) { + const wrappedPick = this.wrappedPicker.pick(pickArgs); + if (wrappedPick.pickResultType === picker_1.PickResultType.COMPLETE) { + const subchannelWrapper = wrappedPick.subchannel; + const mapEntry = subchannelWrapper.getMapEntry(); + if (mapEntry) { + let onCallEnded = wrappedPick.onCallEnded; + if (this.countCalls) { + onCallEnded = (statusCode, details, metadata) => { + var _a; + if (statusCode === constants_1.Status.OK) { + mapEntry.counter.addSuccess(); + } + else { + mapEntry.counter.addFailure(); + } + (_a = wrappedPick.onCallEnded) === null || _a === void 0 ? void 0 : _a.call(wrappedPick, statusCode, details, metadata); + }; + } + return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel(), onCallEnded: onCallEnded }); + } + else { + return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel() }); + } + } + else { + return wrappedPick; + } + } +} +class OutlierDetectionLoadBalancer { + constructor(channelControlHelper) { + this.entryMap = new subchannel_address_1.EndpointMap(); + this.latestConfig = null; + this.timerStartTime = null; + this.childBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler((0, experimental_1.createChildChannelControlHelper)(channelControlHelper, { + createSubchannel: (subchannelAddress, subchannelArgs) => { + const originalSubchannel = channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); + const mapEntry = this.entryMap.getForSubchannelAddress(subchannelAddress); + const subchannelWrapper = new OutlierDetectionSubchannelWrapper(originalSubchannel, mapEntry); + if ((mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.currentEjectionTimestamp) !== null) { + // If the address is ejected, propagate that to the new subchannel wrapper + subchannelWrapper.eject(); + } + mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.subchannelWrappers.push(subchannelWrapper); + return subchannelWrapper; + }, + updateState: (connectivityState, picker, errorMessage) => { + if (connectivityState === connectivity_state_1.ConnectivityState.READY) { + channelControlHelper.updateState(connectivityState, new OutlierDetectionPicker(picker, this.isCountingEnabled()), errorMessage); + } + else { + channelControlHelper.updateState(connectivityState, picker, errorMessage); + } + }, + })); + this.ejectionTimer = setInterval(() => { }, 0); + clearInterval(this.ejectionTimer); + } + isCountingEnabled() { + return (this.latestConfig !== null && + (this.latestConfig.getSuccessRateEjectionConfig() !== null || + this.latestConfig.getFailurePercentageEjectionConfig() !== null)); + } + getCurrentEjectionPercent() { + let ejectionCount = 0; + for (const mapEntry of this.entryMap.values()) { + if (mapEntry.currentEjectionTimestamp !== null) { + ejectionCount += 1; + } + } + return (ejectionCount * 100) / this.entryMap.size; + } + runSuccessRateCheck(ejectionTimestamp) { + if (!this.latestConfig) { + return; + } + const successRateConfig = this.latestConfig.getSuccessRateEjectionConfig(); + if (!successRateConfig) { + return; + } + trace('Running success rate check'); + // Step 1 + const targetRequestVolume = successRateConfig.request_volume; + let addresesWithTargetVolume = 0; + const successRates = []; + for (const [endpoint, mapEntry] of this.entryMap.entries()) { + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + trace('Stats for ' + + (0, subchannel_address_1.endpointToString)(endpoint) + + ': successes=' + + successes + + ' failures=' + + failures + + ' targetRequestVolume=' + + targetRequestVolume); + if (successes + failures >= targetRequestVolume) { + addresesWithTargetVolume += 1; + successRates.push(successes / (successes + failures)); + } + } + trace('Found ' + + addresesWithTargetVolume + + ' success rate candidates; currentEjectionPercent=' + + this.getCurrentEjectionPercent() + + ' successRates=[' + + successRates + + ']'); + if (addresesWithTargetVolume < successRateConfig.minimum_hosts) { + return; + } + // Step 2 + const successRateMean = successRates.reduce((a, b) => a + b) / successRates.length; + let successRateDeviationSum = 0; + for (const rate of successRates) { + const deviation = rate - successRateMean; + successRateDeviationSum += deviation * deviation; + } + const successRateVariance = successRateDeviationSum / successRates.length; + const successRateStdev = Math.sqrt(successRateVariance); + const ejectionThreshold = successRateMean - + successRateStdev * (successRateConfig.stdev_factor / 1000); + trace('stdev=' + successRateStdev + ' ejectionThreshold=' + ejectionThreshold); + // Step 3 + for (const [address, mapEntry] of this.entryMap.entries()) { + // Step 3.i + if (this.getCurrentEjectionPercent() >= + this.latestConfig.getMaxEjectionPercent()) { + break; + } + // Step 3.ii + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + if (successes + failures < targetRequestVolume) { + continue; + } + // Step 3.iii + const successRate = successes / (successes + failures); + trace('Checking candidate ' + address + ' successRate=' + successRate); + if (successRate < ejectionThreshold) { + const randomNumber = Math.random() * 100; + trace('Candidate ' + + address + + ' randomNumber=' + + randomNumber + + ' enforcement_percentage=' + + successRateConfig.enforcement_percentage); + if (randomNumber < successRateConfig.enforcement_percentage) { + trace('Ejecting candidate ' + address); + this.eject(mapEntry, ejectionTimestamp); + } + } + } + } + runFailurePercentageCheck(ejectionTimestamp) { + if (!this.latestConfig) { + return; + } + const failurePercentageConfig = this.latestConfig.getFailurePercentageEjectionConfig(); + if (!failurePercentageConfig) { + return; + } + trace('Running failure percentage check. threshold=' + + failurePercentageConfig.threshold + + ' request volume threshold=' + + failurePercentageConfig.request_volume); + // Step 1 + let addressesWithTargetVolume = 0; + for (const mapEntry of this.entryMap.values()) { + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + if (successes + failures >= failurePercentageConfig.request_volume) { + addressesWithTargetVolume += 1; + } + } + if (addressesWithTargetVolume < failurePercentageConfig.minimum_hosts) { + return; + } + // Step 2 + for (const [address, mapEntry] of this.entryMap.entries()) { + // Step 2.i + if (this.getCurrentEjectionPercent() >= + this.latestConfig.getMaxEjectionPercent()) { + break; + } + // Step 2.ii + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + trace('Candidate successes=' + successes + ' failures=' + failures); + if (successes + failures < failurePercentageConfig.request_volume) { + continue; + } + // Step 2.iii + const failurePercentage = (failures * 100) / (failures + successes); + if (failurePercentage > failurePercentageConfig.threshold) { + const randomNumber = Math.random() * 100; + trace('Candidate ' + + address + + ' randomNumber=' + + randomNumber + + ' enforcement_percentage=' + + failurePercentageConfig.enforcement_percentage); + if (randomNumber < failurePercentageConfig.enforcement_percentage) { + trace('Ejecting candidate ' + address); + this.eject(mapEntry, ejectionTimestamp); + } + } + } + } + eject(mapEntry, ejectionTimestamp) { + mapEntry.currentEjectionTimestamp = new Date(); + mapEntry.ejectionTimeMultiplier += 1; + for (const subchannelWrapper of mapEntry.subchannelWrappers) { + subchannelWrapper.eject(); + } + } + uneject(mapEntry) { + mapEntry.currentEjectionTimestamp = null; + for (const subchannelWrapper of mapEntry.subchannelWrappers) { + subchannelWrapper.uneject(); + } + } + switchAllBuckets() { + for (const mapEntry of this.entryMap.values()) { + mapEntry.counter.switchBuckets(); + } + } + startTimer(delayMs) { + var _a, _b; + this.ejectionTimer = setTimeout(() => this.runChecks(), delayMs); + (_b = (_a = this.ejectionTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + runChecks() { + const ejectionTimestamp = new Date(); + trace('Ejection timer running'); + this.switchAllBuckets(); + if (!this.latestConfig) { + return; + } + this.timerStartTime = ejectionTimestamp; + this.startTimer(this.latestConfig.getIntervalMs()); + this.runSuccessRateCheck(ejectionTimestamp); + this.runFailurePercentageCheck(ejectionTimestamp); + for (const [address, mapEntry] of this.entryMap.entries()) { + if (mapEntry.currentEjectionTimestamp === null) { + if (mapEntry.ejectionTimeMultiplier > 0) { + mapEntry.ejectionTimeMultiplier -= 1; + } + } + else { + const baseEjectionTimeMs = this.latestConfig.getBaseEjectionTimeMs(); + const maxEjectionTimeMs = this.latestConfig.getMaxEjectionTimeMs(); + const returnTime = new Date(mapEntry.currentEjectionTimestamp.getTime()); + returnTime.setMilliseconds(returnTime.getMilliseconds() + + Math.min(baseEjectionTimeMs * mapEntry.ejectionTimeMultiplier, Math.max(baseEjectionTimeMs, maxEjectionTimeMs))); + if (returnTime < new Date()) { + trace('Unejecting ' + address); + this.uneject(mapEntry); + } + } + } + } + updateAddressList(endpointList, lbConfig, options, resolutionNote) { + if (!(lbConfig instanceof OutlierDetectionLoadBalancingConfig)) { + return false; + } + trace('Received update with config: ' + JSON.stringify(lbConfig.toJsonObject(), undefined, 2)); + if (endpointList.ok) { + for (const endpoint of endpointList.value) { + if (!this.entryMap.has(endpoint)) { + trace('Adding map entry for ' + (0, subchannel_address_1.endpointToString)(endpoint)); + this.entryMap.set(endpoint, { + counter: new CallCounter(), + currentEjectionTimestamp: null, + ejectionTimeMultiplier: 0, + subchannelWrappers: [], + }); + } + } + this.entryMap.deleteMissing(endpointList.value); + } + const childPolicy = lbConfig.getChildPolicy(); + this.childBalancer.updateAddressList(endpointList, childPolicy, options, resolutionNote); + if (lbConfig.getSuccessRateEjectionConfig() || + lbConfig.getFailurePercentageEjectionConfig()) { + if (this.timerStartTime) { + trace('Previous timer existed. Replacing timer'); + clearTimeout(this.ejectionTimer); + const remainingDelay = lbConfig.getIntervalMs() - + (new Date().getTime() - this.timerStartTime.getTime()); + this.startTimer(remainingDelay); + } + else { + trace('Starting new timer'); + this.timerStartTime = new Date(); + this.startTimer(lbConfig.getIntervalMs()); + this.switchAllBuckets(); + } + } + else { + trace('Counting disabled. Cancelling timer.'); + this.timerStartTime = null; + clearTimeout(this.ejectionTimer); + for (const mapEntry of this.entryMap.values()) { + this.uneject(mapEntry); + mapEntry.ejectionTimeMultiplier = 0; + } + } + this.latestConfig = lbConfig; + return true; + } + exitIdle() { + this.childBalancer.exitIdle(); + } + resetBackoff() { + this.childBalancer.resetBackoff(); + } + destroy() { + clearTimeout(this.ejectionTimer); + this.childBalancer.destroy(); + } + getTypeName() { + return TYPE_NAME; + } +} +exports.OutlierDetectionLoadBalancer = OutlierDetectionLoadBalancer; +function setup() { + if (OUTLIER_DETECTION_ENABLED) { + (0, experimental_1.registerLoadBalancerType)(TYPE_NAME, OutlierDetectionLoadBalancer, OutlierDetectionLoadBalancingConfig); + } +} +//# sourceMappingURL=load-balancer-outlier-detection.js.map + +/***/ }), + +/***/ 72074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LeafLoadBalancer = exports.PickFirstLoadBalancer = exports.PickFirstLoadBalancingConfig = void 0; +exports.shuffled = shuffled; +exports.setup = setup; +const load_balancer_1 = __nccwpck_require__(23863); +const connectivity_state_1 = __nccwpck_require__(63827); +const picker_1 = __nccwpck_require__(12313); +const subchannel_address_1 = __nccwpck_require__(95080); +const logging = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +const subchannel_address_2 = __nccwpck_require__(95080); +const net_1 = __nccwpck_require__(69278); +const call_interface_1 = __nccwpck_require__(91494); +const TRACER_NAME = 'pick_first'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'pick_first'; +/** + * Delay after starting a connection on a subchannel before starting a + * connection on the next subchannel in the list, for Happy Eyeballs algorithm. + */ +const CONNECTION_DELAY_INTERVAL_MS = 250; +class PickFirstLoadBalancingConfig { + constructor(shuffleAddressList) { + this.shuffleAddressList = shuffleAddressList; + } + getLoadBalancerName() { + return TYPE_NAME; + } + toJsonObject() { + return { + [TYPE_NAME]: { + shuffleAddressList: this.shuffleAddressList, + }, + }; + } + getShuffleAddressList() { + return this.shuffleAddressList; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + static createFromJson(obj) { + if ('shuffleAddressList' in obj && + !(typeof obj.shuffleAddressList === 'boolean')) { + throw new Error('pick_first config field shuffleAddressList must be a boolean if provided'); + } + return new PickFirstLoadBalancingConfig(obj.shuffleAddressList === true); + } +} +exports.PickFirstLoadBalancingConfig = PickFirstLoadBalancingConfig; +/** + * Picker for a `PickFirstLoadBalancer` in the READY state. Always returns the + * picked subchannel. + */ +class PickFirstPicker { + constructor(subchannel) { + this.subchannel = subchannel; + } + pick(pickArgs) { + return { + pickResultType: picker_1.PickResultType.COMPLETE, + subchannel: this.subchannel, + status: null, + onCallStarted: null, + onCallEnded: null, + }; + } +} +/** + * Return a new array with the elements of the input array in a random order + * @param list The input array + * @returns A shuffled array of the elements of list + */ +function shuffled(list) { + const result = list.slice(); + for (let i = result.length - 1; i > 1; i--) { + const j = Math.floor(Math.random() * (i + 1)); + const temp = result[i]; + result[i] = result[j]; + result[j] = temp; + } + return result; +} +/** + * Interleave addresses in addressList by family in accordance with RFC-8304 section 4 + * @param addressList + * @returns + */ +function interleaveAddressFamilies(addressList) { + if (addressList.length === 0) { + return []; + } + const result = []; + const ipv6Addresses = []; + const ipv4Addresses = []; + const ipv6First = (0, subchannel_address_2.isTcpSubchannelAddress)(addressList[0]) && (0, net_1.isIPv6)(addressList[0].host); + for (const address of addressList) { + if ((0, subchannel_address_2.isTcpSubchannelAddress)(address) && (0, net_1.isIPv6)(address.host)) { + ipv6Addresses.push(address); + } + else { + ipv4Addresses.push(address); + } + } + const firstList = ipv6First ? ipv6Addresses : ipv4Addresses; + const secondList = ipv6First ? ipv4Addresses : ipv6Addresses; + for (let i = 0; i < Math.max(firstList.length, secondList.length); i++) { + if (i < firstList.length) { + result.push(firstList[i]); + } + if (i < secondList.length) { + result.push(secondList[i]); + } + } + return result; +} +const REPORT_HEALTH_STATUS_OPTION_NAME = 'grpc-node.internal.pick-first.report_health_status'; +class PickFirstLoadBalancer { + /** + * Load balancer that attempts to connect to each backend in the address list + * in order, and picks the first one that connects, using it for every + * request. + * @param channelControlHelper `ChannelControlHelper` instance provided by + * this load balancer's owner. + */ + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + /** + * The list of subchannels this load balancer is currently attempting to + * connect to. + */ + this.children = []; + /** + * The current connectivity state of the load balancer. + */ + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + /** + * The index within the `subchannels` array of the subchannel with the most + * recently started connection attempt. + */ + this.currentSubchannelIndex = 0; + /** + * The currently picked subchannel used for making calls. Populated if + * and only if the load balancer's current state is READY. In that case, + * the subchannel's current state is also READY. + */ + this.currentPick = null; + /** + * Listener callback attached to each subchannel in the `subchannels` list + * while establishing a connection. + */ + this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime, errorMessage) => { + this.onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage); + }; + this.pickedSubchannelHealthListener = () => this.calculateAndReportNewState(); + /** + * The LB policy enters sticky TRANSIENT_FAILURE mode when all + * subchannels have failed to connect at least once, and it stays in that + * mode until a connection attempt is successful. While in sticky TF mode, + * the LB policy continuously attempts to connect to all of its subchannels. + */ + this.stickyTransientFailureMode = false; + this.reportHealthStatus = false; + /** + * The most recent error reported by any subchannel as it transitioned to + * TRANSIENT_FAILURE. + */ + this.lastError = null; + this.latestAddressList = null; + this.latestOptions = {}; + this.latestResolutionNote = ''; + this.connectionDelayTimeout = setTimeout(() => { }, 0); + clearTimeout(this.connectionDelayTimeout); + } + allChildrenHaveReportedTF() { + return this.children.every(child => child.hasReportedTransientFailure); + } + resetChildrenReportedTF() { + this.children.every(child => child.hasReportedTransientFailure = false); + } + calculateAndReportNewState() { + var _a; + if (this.currentPick) { + if (this.reportHealthStatus && !this.currentPick.isHealthy()) { + const errorMessage = `Picked subchannel ${this.currentPick.getAddress()} is unhealthy`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.READY, new PickFirstPicker(this.currentPick), null); + } + } + else if (((_a = this.latestAddressList) === null || _a === void 0 ? void 0 : _a.length) === 0) { + const errorMessage = `No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else if (this.children.length === 0) { + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + } + else { + if (this.stickyTransientFailureMode) { + const errorMessage = `No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); + } + } + } + requestReresolution() { + this.channelControlHelper.requestReresolution(); + } + maybeEnterStickyTransientFailureMode() { + if (!this.allChildrenHaveReportedTF()) { + return; + } + this.requestReresolution(); + this.resetChildrenReportedTF(); + if (this.stickyTransientFailureMode) { + this.calculateAndReportNewState(); + return; + } + this.stickyTransientFailureMode = true; + for (const { subchannel } of this.children) { + subchannel.startConnecting(); + } + this.calculateAndReportNewState(); + } + removeCurrentPick() { + if (this.currentPick !== null) { + this.currentPick.removeConnectivityStateListener(this.subchannelStateListener); + this.channelControlHelper.removeChannelzChild(this.currentPick.getChannelzRef()); + this.currentPick.removeHealthStateWatcher(this.pickedSubchannelHealthListener); + // Unref last, to avoid triggering listeners + this.currentPick.unref(); + this.currentPick = null; + } + } + onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage) { + var _a; + if ((_a = this.currentPick) === null || _a === void 0 ? void 0 : _a.realSubchannelEquals(subchannel)) { + if (newState !== connectivity_state_1.ConnectivityState.READY) { + this.removeCurrentPick(); + this.calculateAndReportNewState(); + } + return; + } + for (const [index, child] of this.children.entries()) { + if (subchannel.realSubchannelEquals(child.subchannel)) { + if (newState === connectivity_state_1.ConnectivityState.READY) { + this.pickSubchannel(child.subchannel); + } + if (newState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + child.hasReportedTransientFailure = true; + if (errorMessage) { + this.lastError = errorMessage; + } + this.maybeEnterStickyTransientFailureMode(); + if (index === this.currentSubchannelIndex) { + this.startNextSubchannelConnecting(index + 1); + } + } + child.subchannel.startConnecting(); + return; + } + } + } + startNextSubchannelConnecting(startIndex) { + clearTimeout(this.connectionDelayTimeout); + for (const [index, child] of this.children.entries()) { + if (index >= startIndex) { + const subchannelState = child.subchannel.getConnectivityState(); + if (subchannelState === connectivity_state_1.ConnectivityState.IDLE || + subchannelState === connectivity_state_1.ConnectivityState.CONNECTING) { + this.startConnecting(index); + return; + } + } + } + this.maybeEnterStickyTransientFailureMode(); + } + /** + * Have a single subchannel in the `subchannels` list start connecting. + * @param subchannelIndex The index into the `subchannels` list. + */ + startConnecting(subchannelIndex) { + var _a, _b; + clearTimeout(this.connectionDelayTimeout); + this.currentSubchannelIndex = subchannelIndex; + if (this.children[subchannelIndex].subchannel.getConnectivityState() === + connectivity_state_1.ConnectivityState.IDLE) { + trace('Start connecting to subchannel with address ' + + this.children[subchannelIndex].subchannel.getAddress()); + process.nextTick(() => { + var _a; + (_a = this.children[subchannelIndex]) === null || _a === void 0 ? void 0 : _a.subchannel.startConnecting(); + }); + } + this.connectionDelayTimeout = setTimeout(() => { + this.startNextSubchannelConnecting(subchannelIndex + 1); + }, CONNECTION_DELAY_INTERVAL_MS); + (_b = (_a = this.connectionDelayTimeout).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /** + * Declare that the specified subchannel should be used to make requests. + * This functions the same independent of whether subchannel is a member of + * this.children and whether it is equal to this.currentPick. + * Prerequisite: subchannel.getConnectivityState() === READY. + * @param subchannel + */ + pickSubchannel(subchannel) { + trace('Pick subchannel with address ' + subchannel.getAddress()); + this.stickyTransientFailureMode = false; + /* Ref before removeCurrentPick and resetSubchannelList to avoid the + * refcount dropping to 0 during this process. */ + subchannel.ref(); + this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); + this.removeCurrentPick(); + this.resetSubchannelList(); + subchannel.addConnectivityStateListener(this.subchannelStateListener); + subchannel.addHealthStateWatcher(this.pickedSubchannelHealthListener); + this.currentPick = subchannel; + clearTimeout(this.connectionDelayTimeout); + this.calculateAndReportNewState(); + } + updateState(newState, picker, errorMessage) { + trace(connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + this.currentState = newState; + this.channelControlHelper.updateState(newState, picker, errorMessage); + } + resetSubchannelList() { + for (const child of this.children) { + /* Always remoev the connectivity state listener. If the subchannel is + getting picked, it will be re-added then. */ + child.subchannel.removeConnectivityStateListener(this.subchannelStateListener); + /* Refs are counted independently for the children list and the + * currentPick, so we call unref whether or not the child is the + * currentPick. Channelz child references are also refcounted, so + * removeChannelzChild can be handled the same way. */ + child.subchannel.unref(); + this.channelControlHelper.removeChannelzChild(child.subchannel.getChannelzRef()); + } + this.currentSubchannelIndex = 0; + this.children = []; + } + connectToAddressList(addressList, options) { + trace('connectToAddressList([' + addressList.map(address => (0, subchannel_address_1.subchannelAddressToString)(address)) + '])'); + const newChildrenList = addressList.map(address => ({ + subchannel: this.channelControlHelper.createSubchannel(address, options), + hasReportedTransientFailure: false, + })); + for (const { subchannel } of newChildrenList) { + if (subchannel.getConnectivityState() === connectivity_state_1.ConnectivityState.READY) { + this.pickSubchannel(subchannel); + return; + } + } + /* Ref each subchannel before resetting the list, to ensure that + * subchannels shared between the list don't drop to 0 refs during the + * transition. */ + for (const { subchannel } of newChildrenList) { + subchannel.ref(); + this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); + } + this.resetSubchannelList(); + this.children = newChildrenList; + for (const { subchannel } of this.children) { + subchannel.addConnectivityStateListener(this.subchannelStateListener); + } + for (const child of this.children) { + if (child.subchannel.getConnectivityState() === + connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + child.hasReportedTransientFailure = true; + } + } + this.startNextSubchannelConnecting(0); + this.calculateAndReportNewState(); + } + updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { + if (!(lbConfig instanceof PickFirstLoadBalancingConfig)) { + return false; + } + if (!maybeEndpointList.ok) { + if (this.children.length === 0 && this.currentPick === null) { + this.channelControlHelper.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); + } + return true; + } + let endpointList = maybeEndpointList.value; + this.reportHealthStatus = options[REPORT_HEALTH_STATUS_OPTION_NAME]; + /* Previously, an update would be discarded if it was identical to the + * previous update, to minimize churn. Now the DNS resolver is + * rate-limited, so that is less of a concern. */ + if (lbConfig.getShuffleAddressList()) { + endpointList = shuffled(endpointList); + } + const rawAddressList = [].concat(...endpointList.map(endpoint => endpoint.addresses)); + trace('updateAddressList([' + rawAddressList.map(address => (0, subchannel_address_1.subchannelAddressToString)(address)) + '])'); + const addressList = interleaveAddressFamilies(rawAddressList); + this.latestAddressList = addressList; + this.latestOptions = options; + this.connectToAddressList(addressList, options); + this.latestResolutionNote = resolutionNote; + if (rawAddressList.length > 0) { + return true; + } + else { + this.lastError = 'No addresses resolved'; + return false; + } + } + exitIdle() { + if (this.currentState === connectivity_state_1.ConnectivityState.IDLE && + this.latestAddressList) { + this.connectToAddressList(this.latestAddressList, this.latestOptions); + } + } + resetBackoff() { + /* The pick first load balancer does not have a connection backoff, so this + * does nothing */ + } + destroy() { + this.resetSubchannelList(); + this.removeCurrentPick(); + } + getTypeName() { + return TYPE_NAME; + } +} +exports.PickFirstLoadBalancer = PickFirstLoadBalancer; +const LEAF_CONFIG = new PickFirstLoadBalancingConfig(false); +/** + * This class handles the leaf load balancing operations for a single endpoint. + * It is a thin wrapper around a PickFirstLoadBalancer with a different API + * that more closely reflects how it will be used as a leaf balancer. + */ +class LeafLoadBalancer { + constructor(endpoint, channelControlHelper, options, resolutionNote) { + this.endpoint = endpoint; + this.options = options; + this.resolutionNote = resolutionNote; + this.latestState = connectivity_state_1.ConnectivityState.IDLE; + const childChannelControlHelper = (0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { + updateState: (connectivityState, picker, errorMessage) => { + this.latestState = connectivityState; + this.latestPicker = picker; + channelControlHelper.updateState(connectivityState, picker, errorMessage); + }, + }); + this.pickFirstBalancer = new PickFirstLoadBalancer(childChannelControlHelper); + this.latestPicker = new picker_1.QueuePicker(this.pickFirstBalancer); + } + startConnecting() { + this.pickFirstBalancer.updateAddressList((0, call_interface_1.statusOrFromValue)([this.endpoint]), LEAF_CONFIG, Object.assign(Object.assign({}, this.options), { [REPORT_HEALTH_STATUS_OPTION_NAME]: true }), this.resolutionNote); + } + /** + * Update the endpoint associated with this LeafLoadBalancer to a new + * endpoint. Does not trigger connection establishment if a connection + * attempt is not already in progress. + * @param newEndpoint + */ + updateEndpoint(newEndpoint, newOptions) { + this.options = newOptions; + this.endpoint = newEndpoint; + if (this.latestState !== connectivity_state_1.ConnectivityState.IDLE) { + this.startConnecting(); + } + } + getConnectivityState() { + return this.latestState; + } + getPicker() { + return this.latestPicker; + } + getEndpoint() { + return this.endpoint; + } + exitIdle() { + this.pickFirstBalancer.exitIdle(); + } + destroy() { + this.pickFirstBalancer.destroy(); + } +} +exports.LeafLoadBalancer = LeafLoadBalancer; +function setup() { + (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, PickFirstLoadBalancer, PickFirstLoadBalancingConfig); + (0, load_balancer_1.registerDefaultLoadBalancerType)(TYPE_NAME); +} +//# sourceMappingURL=load-balancer-pick-first.js.map + +/***/ }), + +/***/ 98951: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RoundRobinLoadBalancer = void 0; +exports.setup = setup; +const load_balancer_1 = __nccwpck_require__(23863); +const connectivity_state_1 = __nccwpck_require__(63827); +const picker_1 = __nccwpck_require__(12313); +const logging = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +const subchannel_address_1 = __nccwpck_require__(95080); +const load_balancer_pick_first_1 = __nccwpck_require__(72074); +const TRACER_NAME = 'round_robin'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'round_robin'; +class RoundRobinLoadBalancingConfig { + getLoadBalancerName() { + return TYPE_NAME; + } + constructor() { } + toJsonObject() { + return { + [TYPE_NAME]: {}, + }; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + static createFromJson(obj) { + return new RoundRobinLoadBalancingConfig(); + } +} +class RoundRobinPicker { + constructor(children, nextIndex = 0) { + this.children = children; + this.nextIndex = nextIndex; + } + pick(pickArgs) { + const childPicker = this.children[this.nextIndex].picker; + this.nextIndex = (this.nextIndex + 1) % this.children.length; + return childPicker.pick(pickArgs); + } + /** + * Check what the next subchannel returned would be. Used by the load + * balancer implementation to preserve this part of the picker state if + * possible when a subchannel connects or disconnects. + */ + peekNextEndpoint() { + return this.children[this.nextIndex].endpoint; + } +} +function rotateArray(list, startIndex) { + return [...list.slice(startIndex), ...list.slice(0, startIndex)]; +} +class RoundRobinLoadBalancer { + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + this.children = []; + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + this.currentReadyPicker = null; + this.updatesPaused = false; + this.lastError = null; + this.childChannelControlHelper = (0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { + updateState: (connectivityState, picker, errorMessage) => { + /* Ensure that name resolution is requested again after active + * connections are dropped. This is more aggressive than necessary to + * accomplish that, so we are counting on resolvers to have + * reasonable rate limits. */ + if (this.currentState === connectivity_state_1.ConnectivityState.READY && connectivityState !== connectivity_state_1.ConnectivityState.READY) { + this.channelControlHelper.requestReresolution(); + } + if (errorMessage) { + this.lastError = errorMessage; + } + this.calculateAndUpdateState(); + }, + }); + } + countChildrenWithState(state) { + return this.children.filter(child => child.getConnectivityState() === state) + .length; + } + calculateAndUpdateState() { + if (this.updatesPaused) { + return; + } + if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.READY) > 0) { + const readyChildren = this.children.filter(child => child.getConnectivityState() === connectivity_state_1.ConnectivityState.READY); + let index = 0; + if (this.currentReadyPicker !== null) { + const nextPickedEndpoint = this.currentReadyPicker.peekNextEndpoint(); + index = readyChildren.findIndex(child => (0, subchannel_address_1.endpointEqual)(child.getEndpoint(), nextPickedEndpoint)); + if (index < 0) { + index = 0; + } + } + this.updateState(connectivity_state_1.ConnectivityState.READY, new RoundRobinPicker(readyChildren.map(child => ({ + endpoint: child.getEndpoint(), + picker: child.getPicker(), + })), index), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.CONNECTING) > 0) { + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) > 0) { + const errorMessage = `round_robin: No connection established. Last error: ${this.lastError}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + } + /* round_robin should keep all children connected, this is how we do that. + * We can't do this more efficiently in the individual child's updateState + * callback because that doesn't have a reference to which child the state + * change is associated with. */ + for (const child of this.children) { + if (child.getConnectivityState() === connectivity_state_1.ConnectivityState.IDLE) { + child.exitIdle(); + } + } + } + updateState(newState, picker, errorMessage) { + trace(connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + if (newState === connectivity_state_1.ConnectivityState.READY) { + this.currentReadyPicker = picker; + } + else { + this.currentReadyPicker = null; + } + this.currentState = newState; + this.channelControlHelper.updateState(newState, picker, errorMessage); + } + resetSubchannelList() { + for (const child of this.children) { + child.destroy(); + } + this.children = []; + } + updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { + if (!(lbConfig instanceof RoundRobinLoadBalancingConfig)) { + return false; + } + if (!maybeEndpointList.ok) { + if (this.children.length === 0) { + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); + } + return true; + } + const startIndex = (Math.random() * maybeEndpointList.value.length) | 0; + const endpointList = rotateArray(maybeEndpointList.value, startIndex); + this.resetSubchannelList(); + if (endpointList.length === 0) { + const errorMessage = `No addresses resolved. Resolution note: ${resolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: errorMessage }), errorMessage); + } + trace('Connect to endpoint list ' + endpointList.map(subchannel_address_1.endpointToString)); + this.updatesPaused = true; + this.children = endpointList.map(endpoint => new load_balancer_pick_first_1.LeafLoadBalancer(endpoint, this.childChannelControlHelper, options, resolutionNote)); + for (const child of this.children) { + child.startConnecting(); + } + this.updatesPaused = false; + this.calculateAndUpdateState(); + return true; + } + exitIdle() { + /* The round_robin LB policy is only in the IDLE state if it has no + * addresses to try to connect to and it has no picked subchannel. + * In that case, there is no meaningful action that can be taken here. */ + } + resetBackoff() { + // This LB policy has no backoff to reset + } + destroy() { + this.resetSubchannelList(); + } + getTypeName() { + return TYPE_NAME; + } +} +exports.RoundRobinLoadBalancer = RoundRobinLoadBalancer; +function setup() { + (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, RoundRobinLoadBalancer, RoundRobinLoadBalancingConfig); +} +//# sourceMappingURL=load-balancer-round-robin.js.map + +/***/ }), + +/***/ 83409: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WeightedRoundRobinLoadBalancingConfig = void 0; +exports.setup = setup; +const connectivity_state_1 = __nccwpck_require__(63827); +const constants_1 = __nccwpck_require__(84623); +const duration_1 = __nccwpck_require__(23168); +const load_balancer_1 = __nccwpck_require__(23863); +const load_balancer_pick_first_1 = __nccwpck_require__(72074); +const logging = __nccwpck_require__(26239); +const orca_1 = __nccwpck_require__(845); +const picker_1 = __nccwpck_require__(12313); +const priority_queue_1 = __nccwpck_require__(60066); +const subchannel_address_1 = __nccwpck_require__(95080); +const TRACER_NAME = 'weighted_round_robin'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'weighted_round_robin'; +const DEFAULT_OOB_REPORTING_PERIOD_MS = 10000; +const DEFAULT_BLACKOUT_PERIOD_MS = 10000; +const DEFAULT_WEIGHT_EXPIRATION_PERIOD_MS = 3 * 60000; +const DEFAULT_WEIGHT_UPDATE_PERIOD_MS = 1000; +const DEFAULT_ERROR_UTILIZATION_PENALTY = 1; +function validateFieldType(obj, fieldName, expectedType) { + if (fieldName in obj && + obj[fieldName] !== undefined && + typeof obj[fieldName] !== expectedType) { + throw new Error(`weighted round robin config ${fieldName} parse error: expected ${expectedType}, got ${typeof obj[fieldName]}`); + } +} +function parseDurationField(obj, fieldName) { + if (fieldName in obj && obj[fieldName] !== undefined && obj[fieldName] !== null) { + let durationObject; + if ((0, duration_1.isDuration)(obj[fieldName])) { + durationObject = obj[fieldName]; + } + else if ((0, duration_1.isDurationMessage)(obj[fieldName])) { + durationObject = (0, duration_1.durationMessageToDuration)(obj[fieldName]); + } + else if (typeof obj[fieldName] === 'string') { + const parsedDuration = (0, duration_1.parseDuration)(obj[fieldName]); + if (!parsedDuration) { + throw new Error(`weighted round robin config ${fieldName}: failed to parse duration string ${obj[fieldName]}`); + } + durationObject = parsedDuration; + } + else { + throw new Error(`weighted round robin config ${fieldName}: expected duration, got ${typeof obj[fieldName]}`); + } + return (0, duration_1.durationToMs)(durationObject); + } + return null; +} +class WeightedRoundRobinLoadBalancingConfig { + constructor(enableOobLoadReport, oobLoadReportingPeriodMs, blackoutPeriodMs, weightExpirationPeriodMs, weightUpdatePeriodMs, errorUtilizationPenalty) { + this.enableOobLoadReport = enableOobLoadReport !== null && enableOobLoadReport !== void 0 ? enableOobLoadReport : false; + this.oobLoadReportingPeriodMs = oobLoadReportingPeriodMs !== null && oobLoadReportingPeriodMs !== void 0 ? oobLoadReportingPeriodMs : DEFAULT_OOB_REPORTING_PERIOD_MS; + this.blackoutPeriodMs = blackoutPeriodMs !== null && blackoutPeriodMs !== void 0 ? blackoutPeriodMs : DEFAULT_BLACKOUT_PERIOD_MS; + this.weightExpirationPeriodMs = weightExpirationPeriodMs !== null && weightExpirationPeriodMs !== void 0 ? weightExpirationPeriodMs : DEFAULT_WEIGHT_EXPIRATION_PERIOD_MS; + this.weightUpdatePeriodMs = Math.max(weightUpdatePeriodMs !== null && weightUpdatePeriodMs !== void 0 ? weightUpdatePeriodMs : DEFAULT_WEIGHT_UPDATE_PERIOD_MS, 100); + this.errorUtilizationPenalty = errorUtilizationPenalty !== null && errorUtilizationPenalty !== void 0 ? errorUtilizationPenalty : DEFAULT_ERROR_UTILIZATION_PENALTY; + } + getLoadBalancerName() { + return TYPE_NAME; + } + toJsonObject() { + return { + enable_oob_load_report: this.enableOobLoadReport, + oob_load_reporting_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.oobLoadReportingPeriodMs)), + blackout_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.blackoutPeriodMs)), + weight_expiration_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.weightExpirationPeriodMs)), + weight_update_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.weightUpdatePeriodMs)), + error_utilization_penalty: this.errorUtilizationPenalty + }; + } + static createFromJson(obj) { + validateFieldType(obj, 'enable_oob_load_report', 'boolean'); + validateFieldType(obj, 'error_utilization_penalty', 'number'); + if (obj.error_utilization_penalty < 0) { + throw new Error('weighted round robin config error_utilization_penalty < 0'); + } + return new WeightedRoundRobinLoadBalancingConfig(obj.enable_oob_load_report, parseDurationField(obj, 'oob_load_reporting_period'), parseDurationField(obj, 'blackout_period'), parseDurationField(obj, 'weight_expiration_period'), parseDurationField(obj, 'weight_update_period'), obj.error_utilization_penalty); + } + getEnableOobLoadReport() { + return this.enableOobLoadReport; + } + getOobLoadReportingPeriodMs() { + return this.oobLoadReportingPeriodMs; + } + getBlackoutPeriodMs() { + return this.blackoutPeriodMs; + } + getWeightExpirationPeriodMs() { + return this.weightExpirationPeriodMs; + } + getWeightUpdatePeriodMs() { + return this.weightUpdatePeriodMs; + } + getErrorUtilizationPenalty() { + return this.errorUtilizationPenalty; + } +} +exports.WeightedRoundRobinLoadBalancingConfig = WeightedRoundRobinLoadBalancingConfig; +class WeightedRoundRobinPicker { + constructor(children, metricsHandler) { + this.metricsHandler = metricsHandler; + this.queue = new priority_queue_1.PriorityQueue((a, b) => a.deadline < b.deadline); + const positiveWeight = children.filter(picker => picker.weight > 0); + let averageWeight; + if (positiveWeight.length < 2) { + averageWeight = 1; + } + else { + let weightSum = 0; + for (const { weight } of positiveWeight) { + weightSum += weight; + } + averageWeight = weightSum / positiveWeight.length; + } + for (const child of children) { + const period = child.weight > 0 ? 1 / child.weight : averageWeight; + this.queue.push({ + endpointName: child.endpointName, + picker: child.picker, + period: period, + deadline: Math.random() * period + }); + } + } + pick(pickArgs) { + const entry = this.queue.pop(); + this.queue.push(Object.assign(Object.assign({}, entry), { deadline: entry.deadline + entry.period })); + const childPick = entry.picker.pick(pickArgs); + if (childPick.pickResultType === picker_1.PickResultType.COMPLETE) { + if (this.metricsHandler) { + return Object.assign(Object.assign({}, childPick), { onCallEnded: (0, orca_1.createMetricsReader)(loadReport => this.metricsHandler(loadReport, entry.endpointName), childPick.onCallEnded) }); + } + else { + const subchannelWrapper = childPick.subchannel; + return Object.assign(Object.assign({}, childPick), { subchannel: subchannelWrapper.getWrappedSubchannel() }); + } + } + else { + return childPick; + } + } +} +class WeightedRoundRobinLoadBalancer { + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + this.latestConfig = null; + this.children = new Map(); + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + this.updatesPaused = false; + this.lastError = null; + this.weightUpdateTimer = null; + } + countChildrenWithState(state) { + let count = 0; + for (const entry of this.children.values()) { + if (entry.child.getConnectivityState() === state) { + count += 1; + } + } + return count; + } + updateWeight(entry, loadReport) { + var _a, _b; + const qps = loadReport.rps_fractional; + let utilization = loadReport.application_utilization; + if (utilization > 0 && qps > 0) { + utilization += (loadReport.eps / qps) * ((_b = (_a = this.latestConfig) === null || _a === void 0 ? void 0 : _a.getErrorUtilizationPenalty()) !== null && _b !== void 0 ? _b : 0); + } + const newWeight = utilization === 0 ? 0 : qps / utilization; + if (newWeight === 0) { + return; + } + const now = new Date(); + if (entry.nonEmptySince === null) { + entry.nonEmptySince = now; + } + entry.lastUpdated = now; + entry.weight = newWeight; + } + getWeight(entry) { + if (!this.latestConfig) { + return 0; + } + const now = new Date().getTime(); + if (now - entry.lastUpdated.getTime() >= this.latestConfig.getWeightExpirationPeriodMs()) { + entry.nonEmptySince = null; + return 0; + } + const blackoutPeriod = this.latestConfig.getBlackoutPeriodMs(); + if (blackoutPeriod > 0 && (entry.nonEmptySince === null || now - entry.nonEmptySince.getTime() < blackoutPeriod)) { + return 0; + } + return entry.weight; + } + calculateAndUpdateState() { + if (this.updatesPaused || !this.latestConfig) { + return; + } + if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.READY) > 0) { + const weightedPickers = []; + for (const [endpoint, entry] of this.children) { + if (entry.child.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { + continue; + } + weightedPickers.push({ + endpointName: endpoint, + picker: entry.child.getPicker(), + weight: this.getWeight(entry) + }); + } + trace('Created picker with weights: ' + weightedPickers.map(entry => entry.endpointName + ':' + entry.weight).join(',')); + let metricsHandler; + if (!this.latestConfig.getEnableOobLoadReport()) { + metricsHandler = (loadReport, endpointName) => { + const childEntry = this.children.get(endpointName); + if (childEntry) { + this.updateWeight(childEntry, loadReport); + } + }; + } + else { + metricsHandler = null; + } + this.updateState(connectivity_state_1.ConnectivityState.READY, new WeightedRoundRobinPicker(weightedPickers, metricsHandler), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.CONNECTING) > 0) { + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) > 0) { + const errorMessage = `weighted_round_robin: No connection established. Last error: ${this.lastError}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + } + /* round_robin should keep all children connected, this is how we do that. + * We can't do this more efficiently in the individual child's updateState + * callback because that doesn't have a reference to which child the state + * change is associated with. */ + for (const { child } of this.children.values()) { + if (child.getConnectivityState() === connectivity_state_1.ConnectivityState.IDLE) { + child.exitIdle(); + } + } + } + updateState(newState, picker, errorMessage) { + trace(connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + this.currentState = newState; + this.channelControlHelper.updateState(newState, picker, errorMessage); + } + updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { + var _a, _b; + if (!(lbConfig instanceof WeightedRoundRobinLoadBalancingConfig)) { + return false; + } + if (!maybeEndpointList.ok) { + if (this.children.size === 0) { + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); + } + return true; + } + if (maybeEndpointList.value.length === 0) { + const errorMessage = `No addresses resolved. Resolution note: ${resolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: errorMessage }), errorMessage); + return false; + } + trace('Connect to endpoint list ' + maybeEndpointList.value.map(subchannel_address_1.endpointToString)); + const now = new Date(); + const seenEndpointNames = new Set(); + this.updatesPaused = true; + this.latestConfig = lbConfig; + for (const endpoint of maybeEndpointList.value) { + const name = (0, subchannel_address_1.endpointToString)(endpoint); + seenEndpointNames.add(name); + let entry = this.children.get(name); + if (!entry) { + entry = { + child: new load_balancer_pick_first_1.LeafLoadBalancer(endpoint, (0, load_balancer_1.createChildChannelControlHelper)(this.channelControlHelper, { + updateState: (connectivityState, picker, errorMessage) => { + /* Ensure that name resolution is requested again after active + * connections are dropped. This is more aggressive than necessary to + * accomplish that, so we are counting on resolvers to have + * reasonable rate limits. */ + if (this.currentState === connectivity_state_1.ConnectivityState.READY && connectivityState !== connectivity_state_1.ConnectivityState.READY) { + this.channelControlHelper.requestReresolution(); + } + if (connectivityState === connectivity_state_1.ConnectivityState.READY) { + entry.nonEmptySince = null; + } + if (errorMessage) { + this.lastError = errorMessage; + } + this.calculateAndUpdateState(); + }, + createSubchannel: (subchannelAddress, subchannelArgs) => { + const subchannel = this.channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); + if (entry === null || entry === void 0 ? void 0 : entry.oobMetricsListener) { + return new orca_1.OrcaOobMetricsSubchannelWrapper(subchannel, entry.oobMetricsListener, this.latestConfig.getOobLoadReportingPeriodMs()); + } + else { + return subchannel; + } + } + }), options, resolutionNote), + lastUpdated: now, + nonEmptySince: null, + weight: 0, + oobMetricsListener: null + }; + this.children.set(name, entry); + } + if (lbConfig.getEnableOobLoadReport()) { + entry.oobMetricsListener = loadReport => { + this.updateWeight(entry, loadReport); + }; + } + else { + entry.oobMetricsListener = null; + } + } + for (const [endpointName, entry] of this.children) { + if (seenEndpointNames.has(endpointName)) { + entry.child.startConnecting(); + } + else { + entry.child.destroy(); + this.children.delete(endpointName); + } + } + this.updatesPaused = false; + this.calculateAndUpdateState(); + if (this.weightUpdateTimer) { + clearInterval(this.weightUpdateTimer); + } + this.weightUpdateTimer = (_b = (_a = setInterval(() => { + if (this.currentState === connectivity_state_1.ConnectivityState.READY) { + this.calculateAndUpdateState(); + } + }, lbConfig.getWeightUpdatePeriodMs())).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + return true; + } + exitIdle() { + /* The weighted_round_robin LB policy is only in the IDLE state if it has + * no addresses to try to connect to and it has no picked subchannel. + * In that case, there is no meaningful action that can be taken here. */ + } + resetBackoff() { + // This LB policy has no backoff to reset + } + destroy() { + for (const entry of this.children.values()) { + entry.child.destroy(); + } + this.children.clear(); + if (this.weightUpdateTimer) { + clearInterval(this.weightUpdateTimer); + } + } + getTypeName() { + return TYPE_NAME; + } +} +function setup() { + (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, WeightedRoundRobinLoadBalancer, WeightedRoundRobinLoadBalancingConfig); +} +//# sourceMappingURL=load-balancer-weighted-round-robin.js.map + +/***/ }), + +/***/ 23863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createChildChannelControlHelper = createChildChannelControlHelper; +exports.registerLoadBalancerType = registerLoadBalancerType; +exports.registerDefaultLoadBalancerType = registerDefaultLoadBalancerType; +exports.createLoadBalancer = createLoadBalancer; +exports.isLoadBalancerNameRegistered = isLoadBalancerNameRegistered; +exports.parseLoadBalancingConfig = parseLoadBalancingConfig; +exports.getDefaultConfig = getDefaultConfig; +exports.selectLbConfigFromList = selectLbConfigFromList; +const logging_1 = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +/** + * Create a child ChannelControlHelper that overrides some methods of the + * parent while letting others pass through to the parent unmodified. This + * allows other code to create these children without needing to know about + * all of the methods to be passed through. + * @param parent + * @param overrides + */ +function createChildChannelControlHelper(parent, overrides) { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; + return { + createSubchannel: (_b = (_a = overrides.createSubchannel) === null || _a === void 0 ? void 0 : _a.bind(overrides)) !== null && _b !== void 0 ? _b : parent.createSubchannel.bind(parent), + updateState: (_d = (_c = overrides.updateState) === null || _c === void 0 ? void 0 : _c.bind(overrides)) !== null && _d !== void 0 ? _d : parent.updateState.bind(parent), + requestReresolution: (_f = (_e = overrides.requestReresolution) === null || _e === void 0 ? void 0 : _e.bind(overrides)) !== null && _f !== void 0 ? _f : parent.requestReresolution.bind(parent), + addChannelzChild: (_h = (_g = overrides.addChannelzChild) === null || _g === void 0 ? void 0 : _g.bind(overrides)) !== null && _h !== void 0 ? _h : parent.addChannelzChild.bind(parent), + removeChannelzChild: (_k = (_j = overrides.removeChannelzChild) === null || _j === void 0 ? void 0 : _j.bind(overrides)) !== null && _k !== void 0 ? _k : parent.removeChannelzChild.bind(parent), + }; +} +const registeredLoadBalancerTypes = {}; +let defaultLoadBalancerType = null; +function registerLoadBalancerType(typeName, loadBalancerType, loadBalancingConfigType) { + registeredLoadBalancerTypes[typeName] = { + LoadBalancer: loadBalancerType, + LoadBalancingConfig: loadBalancingConfigType, + }; +} +function registerDefaultLoadBalancerType(typeName) { + defaultLoadBalancerType = typeName; +} +function createLoadBalancer(config, channelControlHelper) { + const typeName = config.getLoadBalancerName(); + if (typeName in registeredLoadBalancerTypes) { + return new registeredLoadBalancerTypes[typeName].LoadBalancer(channelControlHelper); + } + else { + return null; + } +} +function isLoadBalancerNameRegistered(typeName) { + return typeName in registeredLoadBalancerTypes; +} +function parseLoadBalancingConfig(rawConfig) { + const keys = Object.keys(rawConfig); + if (keys.length !== 1) { + throw new Error('Provided load balancing config has multiple conflicting entries'); + } + const typeName = keys[0]; + if (typeName in registeredLoadBalancerTypes) { + try { + return registeredLoadBalancerTypes[typeName].LoadBalancingConfig.createFromJson(rawConfig[typeName]); + } + catch (e) { + throw new Error(`${typeName}: ${e.message}`); + } + } + else { + throw new Error(`Unrecognized load balancing config name ${typeName}`); + } +} +function getDefaultConfig() { + if (!defaultLoadBalancerType) { + throw new Error('No default load balancer type registered'); + } + return new registeredLoadBalancerTypes[defaultLoadBalancerType].LoadBalancingConfig(); +} +function selectLbConfigFromList(configs, fallbackTodefault = false) { + for (const config of configs) { + try { + return parseLoadBalancingConfig(config); + } + catch (e) { + (0, logging_1.log)(constants_1.LogVerbosity.DEBUG, 'Config parsing failed with error', e.message); + continue; + } + } + if (fallbackTodefault) { + if (defaultLoadBalancerType) { + return new registeredLoadBalancerTypes[defaultLoadBalancerType].LoadBalancingConfig(); + } + else { + return null; + } + } + else { + return null; + } +} +//# sourceMappingURL=load-balancer.js.map + +/***/ }), + +/***/ 95231: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LoadBalancingCall = void 0; +const connectivity_state_1 = __nccwpck_require__(63827); +const constants_1 = __nccwpck_require__(84623); +const deadline_1 = __nccwpck_require__(27168); +const metadata_1 = __nccwpck_require__(89173); +const picker_1 = __nccwpck_require__(12313); +const uri_parser_1 = __nccwpck_require__(70210); +const logging = __nccwpck_require__(26239); +const control_plane_status_1 = __nccwpck_require__(14519); +const http2 = __nccwpck_require__(85675); +const TRACER_NAME = 'load_balancing_call'; +class LoadBalancingCall { + constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber) { + var _a, _b; + this.channel = channel; + this.callConfig = callConfig; + this.methodName = methodName; + this.host = host; + this.credentials = credentials; + this.deadline = deadline; + this.callNumber = callNumber; + this.child = null; + this.readPending = false; + this.pendingMessage = null; + this.pendingHalfClose = false; + this.ended = false; + this.metadata = null; + this.listener = null; + this.onCallEnded = null; + this.childStartTime = null; + const splitPath = this.methodName.split('/'); + let serviceName = ''; + /* The standard path format is "/{serviceName}/{methodName}", so if we split + * by '/', the first item should be empty and the second should be the + * service name */ + if (splitPath.length >= 2) { + serviceName = splitPath[1]; + } + const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : 'localhost'; + /* Currently, call credentials are only allowed on HTTPS connections, so we + * can assume that the scheme is "https" */ + this.serviceUrl = `https://${hostname}/${serviceName}`; + this.startTime = new Date(); + } + getDeadlineInfo() { + var _a, _b; + const deadlineInfo = []; + if (this.childStartTime) { + if (this.childStartTime > this.startTime) { + if ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.getOptions().waitForReady) { + deadlineInfo.push('wait_for_ready'); + } + deadlineInfo.push(`LB pick: ${(0, deadline_1.formatDateDifference)(this.startTime, this.childStartTime)}`); + } + deadlineInfo.push(...this.child.getDeadlineInfo()); + return deadlineInfo; + } + else { + if ((_b = this.metadata) === null || _b === void 0 ? void 0 : _b.getOptions().waitForReady) { + deadlineInfo.push('wait_for_ready'); + } + deadlineInfo.push('Waiting for LB pick'); + } + return deadlineInfo; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); + } + outputStatus(status, progress) { + var _a, _b; + if (!this.ended) { + this.ended = true; + this.trace('ended with status: code=' + + status.code + + ' details="' + + status.details + + '" start time=' + + this.startTime.toISOString()); + const finalStatus = Object.assign(Object.assign({}, status), { progress }); + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(finalStatus); + (_b = this.onCallEnded) === null || _b === void 0 ? void 0 : _b.call(this, finalStatus.code, finalStatus.details, finalStatus.metadata); + } + } + doPick() { + var _a, _b; + if (this.ended) { + return; + } + if (!this.metadata) { + throw new Error('doPick called before start'); + } + this.trace('Pick called'); + const finalMetadata = this.metadata.clone(); + const pickResult = this.channel.doPick(finalMetadata, this.callConfig.pickInformation); + const subchannelString = pickResult.subchannel + ? '(' + + pickResult.subchannel.getChannelzRef().id + + ') ' + + pickResult.subchannel.getAddress() + : '' + pickResult.subchannel; + this.trace('Pick result: ' + + picker_1.PickResultType[pickResult.pickResultType] + + ' subchannel: ' + + subchannelString + + ' status: ' + + ((_a = pickResult.status) === null || _a === void 0 ? void 0 : _a.code) + + ' ' + + ((_b = pickResult.status) === null || _b === void 0 ? void 0 : _b.details)); + switch (pickResult.pickResultType) { + case picker_1.PickResultType.COMPLETE: + const combinedCallCredentials = this.credentials.compose(pickResult.subchannel.getCallCredentials()); + combinedCallCredentials + .generateMetadata({ method_name: this.methodName, service_url: this.serviceUrl }) + .then(credsMetadata => { + var _a; + /* If this call was cancelled (e.g. by the deadline) before + * metadata generation finished, we shouldn't do anything with + * it. */ + if (this.ended) { + this.trace('Credentials metadata generation finished after call ended'); + return; + } + finalMetadata.merge(credsMetadata); + if (finalMetadata.get('authorization').length > 1) { + this.outputStatus({ + code: constants_1.Status.INTERNAL, + details: '"authorization" metadata cannot have multiple values', + metadata: new metadata_1.Metadata(), + }, 'PROCESSED'); + } + if (pickResult.subchannel.getConnectivityState() !== + connectivity_state_1.ConnectivityState.READY) { + this.trace('Picked subchannel ' + + subchannelString + + ' has state ' + + connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + + ' after getting credentials metadata. Retrying pick'); + this.doPick(); + return; + } + if (this.deadline !== Infinity) { + finalMetadata.set('grpc-timeout', (0, deadline_1.getDeadlineTimeoutString)(this.deadline)); + } + try { + this.child = pickResult + .subchannel.getRealSubchannel() + .createCall(finalMetadata, this.host, this.methodName, { + onReceiveMetadata: metadata => { + this.trace('Received metadata'); + this.listener.onReceiveMetadata(metadata); + }, + onReceiveMessage: message => { + this.trace('Received message'); + this.listener.onReceiveMessage(message); + }, + onReceiveStatus: status => { + this.trace('Received status'); + if (status.rstCode === + http2.constants.NGHTTP2_REFUSED_STREAM) { + this.outputStatus(status, 'REFUSED'); + } + else { + this.outputStatus(status, 'PROCESSED'); + } + }, + }); + this.childStartTime = new Date(); + } + catch (error) { + this.trace('Failed to start call on picked subchannel ' + + subchannelString + + ' with error ' + + error.message); + this.outputStatus({ + code: constants_1.Status.INTERNAL, + details: 'Failed to start HTTP/2 stream with error ' + + error.message, + metadata: new metadata_1.Metadata(), + }, 'NOT_STARTED'); + return; + } + (_a = pickResult.onCallStarted) === null || _a === void 0 ? void 0 : _a.call(pickResult); + this.onCallEnded = pickResult.onCallEnded; + this.trace('Created child call [' + this.child.getCallNumber() + ']'); + if (this.readPending) { + this.child.startRead(); + } + if (this.pendingMessage) { + this.child.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message); + } + if (this.pendingHalfClose) { + this.child.halfClose(); + } + }, (error) => { + // We assume the error code isn't 0 (Status.OK) + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(typeof error.code === 'number' ? error.code : constants_1.Status.UNKNOWN, `Getting metadata from plugin failed with error: ${error.message}`); + this.outputStatus({ + code: code, + details: details, + metadata: new metadata_1.Metadata(), + }, 'PROCESSED'); + }); + break; + case picker_1.PickResultType.DROP: + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); + setImmediate(() => { + this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'DROP'); + }); + break; + case picker_1.PickResultType.TRANSIENT_FAILURE: + if (this.metadata.getOptions().waitForReady) { + this.channel.queueCallForPick(this); + } + else { + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); + setImmediate(() => { + this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'PROCESSED'); + }); + } + break; + case picker_1.PickResultType.QUEUE: + this.channel.queueCallForPick(this); + } + } + cancelWithStatus(status, details) { + var _a; + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); + this.outputStatus({ code: status, details: details, metadata: new metadata_1.Metadata() }, 'PROCESSED'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); + } + start(metadata, listener) { + this.trace('start called'); + this.listener = listener; + this.metadata = metadata; + this.doPick(); + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + if (this.child) { + this.child.sendMessageWithContext(context, message); + } + else { + this.pendingMessage = { context, message }; + } + } + startRead() { + this.trace('startRead called'); + if (this.child) { + this.child.startRead(); + } + else { + this.readPending = true; + } + } + halfClose() { + this.trace('halfClose called'); + if (this.child) { + this.child.halfClose(); + } + else { + this.pendingHalfClose = true; + } + } + setCredentials(credentials) { + throw new Error('Method not implemented.'); + } + getCallNumber() { + return this.callNumber; + } + getAuthContext() { + if (this.child) { + return this.child.getAuthContext(); + } + else { + return null; + } + } +} +exports.LoadBalancingCall = LoadBalancingCall; +//# sourceMappingURL=load-balancing-call.js.map + +/***/ }), + +/***/ 26239: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +var _a, _b, _c, _d; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.log = exports.setLoggerVerbosity = exports.setLogger = exports.getLogger = void 0; +exports.trace = trace; +exports.isTracerEnabled = isTracerEnabled; +const constants_1 = __nccwpck_require__(84623); +const process_1 = __nccwpck_require__(932); +const clientVersion = (__nccwpck_require__(9943)/* .version */ .rE); +const DEFAULT_LOGGER = { + error: (message, ...optionalParams) => { + console.error('E ' + message, ...optionalParams); + }, + info: (message, ...optionalParams) => { + console.error('I ' + message, ...optionalParams); + }, + debug: (message, ...optionalParams) => { + console.error('D ' + message, ...optionalParams); + }, +}; +let _logger = DEFAULT_LOGGER; +let _logVerbosity = constants_1.LogVerbosity.ERROR; +const verbosityString = (_b = (_a = process.env.GRPC_NODE_VERBOSITY) !== null && _a !== void 0 ? _a : process.env.GRPC_VERBOSITY) !== null && _b !== void 0 ? _b : ''; +switch (verbosityString.toUpperCase()) { + case 'DEBUG': + _logVerbosity = constants_1.LogVerbosity.DEBUG; + break; + case 'INFO': + _logVerbosity = constants_1.LogVerbosity.INFO; + break; + case 'ERROR': + _logVerbosity = constants_1.LogVerbosity.ERROR; + break; + case 'NONE': + _logVerbosity = constants_1.LogVerbosity.NONE; + break; + default: + // Ignore any other values +} +const getLogger = () => { + return _logger; +}; +exports.getLogger = getLogger; +const setLogger = (logger) => { + _logger = logger; +}; +exports.setLogger = setLogger; +const setLoggerVerbosity = (verbosity) => { + _logVerbosity = verbosity; +}; +exports.setLoggerVerbosity = setLoggerVerbosity; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +const log = (severity, ...args) => { + let logFunction; + if (severity >= _logVerbosity) { + switch (severity) { + case constants_1.LogVerbosity.DEBUG: + logFunction = _logger.debug; + break; + case constants_1.LogVerbosity.INFO: + logFunction = _logger.info; + break; + case constants_1.LogVerbosity.ERROR: + logFunction = _logger.error; + break; + } + /* Fall back to _logger.error when other methods are not available for + * compatiblity with older behavior that always logged to _logger.error */ + if (!logFunction) { + logFunction = _logger.error; + } + if (logFunction) { + logFunction.bind(_logger)(...args); + } + } +}; +exports.log = log; +const tracersString = (_d = (_c = process.env.GRPC_NODE_TRACE) !== null && _c !== void 0 ? _c : process.env.GRPC_TRACE) !== null && _d !== void 0 ? _d : ''; +const enabledTracers = new Set(); +const disabledTracers = new Set(); +for (const tracerName of tracersString.split(',')) { + if (tracerName.startsWith('-')) { + disabledTracers.add(tracerName.substring(1)); + } + else { + enabledTracers.add(tracerName); + } +} +const allEnabled = enabledTracers.has('all'); +function trace(severity, tracer, text) { + if (isTracerEnabled(tracer)) { + (0, exports.log)(severity, new Date().toISOString() + + ' | v' + + clientVersion + + ' ' + + process_1.pid + + ' | ' + + tracer + + ' | ' + + text); + } +} +function isTracerEnabled(tracer) { + return (!disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer))); +} +//# sourceMappingURL=logging.js.map + +/***/ }), + +/***/ 79364: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.makeClientConstructor = makeClientConstructor; +exports.loadPackageDefinition = loadPackageDefinition; +const client_1 = __nccwpck_require__(46503); +/** + * Map with short names for each of the requester maker functions. Used in + * makeClientConstructor + * @private + */ +const requesterFuncs = { + unary: client_1.Client.prototype.makeUnaryRequest, + server_stream: client_1.Client.prototype.makeServerStreamRequest, + client_stream: client_1.Client.prototype.makeClientStreamRequest, + bidi: client_1.Client.prototype.makeBidiStreamRequest, +}; +/** + * Returns true, if given key is included in the blacklisted + * keys. + * @param key key for check, string. + */ +function isPrototypePolluted(key) { + return ['__proto__', 'prototype', 'constructor'].includes(key); +} +/** + * Creates a constructor for a client with the given methods, as specified in + * the methods argument. The resulting class will have an instance method for + * each method in the service, which is a partial application of one of the + * [Client]{@link grpc.Client} request methods, depending on `requestSerialize` + * and `responseSerialize`, with the `method`, `serialize`, and `deserialize` + * arguments predefined. + * @param methods An object mapping method names to + * method attributes + * @param serviceName The fully qualified name of the service + * @param classOptions An options object. + * @return New client constructor, which is a subclass of + * {@link grpc.Client}, and has the same arguments as that constructor. + */ +function makeClientConstructor(methods, serviceName, classOptions) { + if (!classOptions) { + classOptions = {}; + } + class ServiceClientImpl extends client_1.Client { + } + Object.keys(methods).forEach(name => { + if (isPrototypePolluted(name)) { + return; + } + const attrs = methods[name]; + let methodType; + // TODO(murgatroid99): Verify that we don't need this anymore + if (typeof name === 'string' && name.charAt(0) === '$') { + throw new Error('Method names cannot start with $'); + } + if (attrs.requestStream) { + if (attrs.responseStream) { + methodType = 'bidi'; + } + else { + methodType = 'client_stream'; + } + } + else { + if (attrs.responseStream) { + methodType = 'server_stream'; + } + else { + methodType = 'unary'; + } + } + const serialize = attrs.requestSerialize; + const deserialize = attrs.responseDeserialize; + const methodFunc = partial(requesterFuncs[methodType], attrs.path, serialize, deserialize); + ServiceClientImpl.prototype[name] = methodFunc; + // Associate all provided attributes with the method + Object.assign(ServiceClientImpl.prototype[name], attrs); + if (attrs.originalName && !isPrototypePolluted(attrs.originalName)) { + ServiceClientImpl.prototype[attrs.originalName] = + ServiceClientImpl.prototype[name]; + } + }); + ServiceClientImpl.service = methods; + ServiceClientImpl.serviceName = serviceName; + return ServiceClientImpl; +} +function partial(fn, path, serialize, deserialize) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return function (...args) { + return fn.call(this, path, serialize, deserialize, ...args); + }; +} +function isProtobufTypeDefinition(obj) { + return 'format' in obj; +} +/** + * Load a gRPC package definition as a gRPC object hierarchy. + * @param packageDef The package definition object. + * @return The resulting gRPC object. + */ +function loadPackageDefinition(packageDef) { + const result = {}; + for (const serviceFqn in packageDef) { + if (Object.prototype.hasOwnProperty.call(packageDef, serviceFqn)) { + const service = packageDef[serviceFqn]; + const nameComponents = serviceFqn.split('.'); + if (nameComponents.some((comp) => isPrototypePolluted(comp))) { + continue; + } + const serviceName = nameComponents[nameComponents.length - 1]; + let current = result; + for (const packageName of nameComponents.slice(0, -1)) { + if (!current[packageName]) { + current[packageName] = {}; + } + current = current[packageName]; + } + if (isProtobufTypeDefinition(service)) { + current[serviceName] = service; + } + else { + current[serviceName] = makeClientConstructor(service, serviceName, {}); + } + } + } + return result; +} +//# sourceMappingURL=make-client.js.map + +/***/ }), + +/***/ 89173: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Metadata = void 0; +const logging_1 = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +const error_1 = __nccwpck_require__(27116); +const LEGAL_KEY_REGEX = /^[:0-9a-z_.-]+$/; +const LEGAL_NON_BINARY_VALUE_REGEX = /^[ -~]*$/; +function isLegalKey(key) { + return LEGAL_KEY_REGEX.test(key); +} +function isLegalNonBinaryValue(value) { + return LEGAL_NON_BINARY_VALUE_REGEX.test(value); +} +function isBinaryKey(key) { + return key.endsWith('-bin'); +} +function isCustomMetadata(key) { + return !key.startsWith('grpc-'); +} +function normalizeKey(key) { + return key.toLowerCase(); +} +function validate(key, value) { + if (!isLegalKey(key)) { + throw new Error('Metadata key "' + key + '" contains illegal characters'); + } + if (value !== null && value !== undefined) { + if (isBinaryKey(key)) { + if (!Buffer.isBuffer(value)) { + throw new Error("keys that end with '-bin' must have Buffer values"); + } + } + else { + if (Buffer.isBuffer(value)) { + throw new Error("keys that don't end with '-bin' must have String values"); + } + if (!isLegalNonBinaryValue(value)) { + throw new Error('Metadata string value "' + value + '" contains illegal characters'); + } + } + } +} +/** + * A class for storing metadata. Keys are normalized to lowercase ASCII. + */ +class Metadata { + constructor(options = {}) { + this.internalRepr = new Map(); + this.opaqueData = new Map(); + this.options = options; + } + /** + * Sets the given value for the given key by replacing any other values + * associated with that key. Normalizes the key. + * @param key The key to whose value should be set. + * @param value The value to set. Must be a buffer if and only + * if the normalized key ends with '-bin'. + */ + set(key, value) { + key = normalizeKey(key); + validate(key, value); + this.internalRepr.set(key, [value]); + } + /** + * Adds the given value for the given key by appending to a list of previous + * values associated with that key. Normalizes the key. + * @param key The key for which a new value should be appended. + * @param value The value to add. Must be a buffer if and only + * if the normalized key ends with '-bin'. + */ + add(key, value) { + key = normalizeKey(key); + validate(key, value); + const existingValue = this.internalRepr.get(key); + if (existingValue === undefined) { + this.internalRepr.set(key, [value]); + } + else { + existingValue.push(value); + } + } + /** + * Removes the given key and any associated values. Normalizes the key. + * @param key The key whose values should be removed. + */ + remove(key) { + key = normalizeKey(key); + // validate(key); + this.internalRepr.delete(key); + } + /** + * Gets a list of all values associated with the key. Normalizes the key. + * @param key The key whose value should be retrieved. + * @return A list of values associated with the given key. + */ + get(key) { + key = normalizeKey(key); + // validate(key); + return this.internalRepr.get(key) || []; + } + /** + * Gets a plain object mapping each key to the first value associated with it. + * This reflects the most common way that people will want to see metadata. + * @return A key/value mapping of the metadata. + */ + getMap() { + const result = {}; + for (const [key, values] of this.internalRepr) { + if (values.length > 0) { + const v = values[0]; + result[key] = Buffer.isBuffer(v) ? Buffer.from(v) : v; + } + } + return result; + } + /** + * Clones the metadata object. + * @return The newly cloned object. + */ + clone() { + const newMetadata = new Metadata(this.options); + const newInternalRepr = newMetadata.internalRepr; + for (const [key, value] of this.internalRepr) { + const clonedValue = value.map(v => { + if (Buffer.isBuffer(v)) { + return Buffer.from(v); + } + else { + return v; + } + }); + newInternalRepr.set(key, clonedValue); + } + return newMetadata; + } + /** + * Merges all key-value pairs from a given Metadata object into this one. + * If both this object and the given object have values in the same key, + * values from the other Metadata object will be appended to this object's + * values. + * @param other A Metadata object. + */ + merge(other) { + for (const [key, values] of other.internalRepr) { + const mergedValue = (this.internalRepr.get(key) || []).concat(values); + this.internalRepr.set(key, mergedValue); + } + } + setOptions(options) { + this.options = options; + } + getOptions() { + return this.options; + } + /** + * Creates an OutgoingHttpHeaders object that can be used with the http2 API. + */ + toHttp2Headers() { + // NOTE: Node <8.9 formats http2 headers incorrectly. + const result = {}; + for (const [key, values] of this.internalRepr) { + if (key.startsWith(':')) { + continue; + } + // We assume that the user's interaction with this object is limited to + // through its public API (i.e. keys and values are already validated). + result[key] = values.map(bufToString); + } + return result; + } + /** + * This modifies the behavior of JSON.stringify to show an object + * representation of the metadata map. + */ + toJSON() { + const result = {}; + for (const [key, values] of this.internalRepr) { + result[key] = values; + } + return result; + } + /** + * Attach additional data of any type to the metadata object, which will not + * be included when sending headers. The data can later be retrieved with + * `getOpaque`. Keys with the prefix `grpc` are reserved for use by this + * library. + * @param key + * @param value + */ + setOpaque(key, value) { + this.opaqueData.set(key, value); + } + /** + * Retrieve data previously added with `setOpaque`. + * @param key + * @returns + */ + getOpaque(key) { + return this.opaqueData.get(key); + } + /** + * Returns a new Metadata object based fields in a given IncomingHttpHeaders + * object. + * @param headers An IncomingHttpHeaders object. + */ + static fromHttp2Headers(headers) { + const result = new Metadata(); + for (const key of Object.keys(headers)) { + // Reserved headers (beginning with `:`) are not valid keys. + if (key.charAt(0) === ':') { + continue; + } + const values = headers[key]; + try { + if (isBinaryKey(key)) { + if (Array.isArray(values)) { + values.forEach(value => { + result.add(key, Buffer.from(value, 'base64')); + }); + } + else if (values !== undefined) { + if (isCustomMetadata(key)) { + values.split(',').forEach(v => { + result.add(key, Buffer.from(v.trim(), 'base64')); + }); + } + else { + result.add(key, Buffer.from(values, 'base64')); + } + } + } + else { + if (Array.isArray(values)) { + values.forEach(value => { + result.add(key, value); + }); + } + else if (values !== undefined) { + result.add(key, values); + } + } + } + catch (error) { + const message = `Failed to add metadata entry ${key}: ${values}. ${(0, error_1.getErrorMessage)(error)}. For more information see https://github.com/grpc/grpc-node/issues/1173`; + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, message); + } + } + return result; + } +} +exports.Metadata = Metadata; +const bufToString = (val) => { + return Buffer.isBuffer(val) ? val.toString('base64') : val; +}; +//# sourceMappingURL=metadata.js.map + +/***/ }), + +/***/ 845: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = void 0; +exports.createOrcaClient = createOrcaClient; +exports.createMetricsReader = createMetricsReader; +const make_client_1 = __nccwpck_require__(79364); +const duration_1 = __nccwpck_require__(23168); +const channel_credentials_1 = __nccwpck_require__(22377); +const subchannel_interface_1 = __nccwpck_require__(45631); +const constants_1 = __nccwpck_require__(84623); +const backoff_timeout_1 = __nccwpck_require__(21400); +const connectivity_state_1 = __nccwpck_require__(63827); +const loadedOrcaProto = null; +function loadOrcaProto() { + if (loadedOrcaProto) { + return loadedOrcaProto; + } + /* The purpose of this complexity is to avoid loading @grpc/proto-loader at + * runtime for users who will not use/enable ORCA. */ + const loaderLoadSync = (__nccwpck_require__(48481)/* .loadSync */ .Yi); + const loadedProto = loaderLoadSync('xds/service/orca/v3/orca.proto', { + keepCase: true, + longs: String, + enums: String, + defaults: true, + oneofs: true, + includeDirs: [ + __nccwpck_require__.ab + "xds", + __nccwpck_require__.ab + "protoc-gen-validate" + ], + }); + return (0, make_client_1.loadPackageDefinition)(loadedProto); +} +/** + * ORCA metrics recorder for a single request + */ +class PerRequestMetricRecorder { + constructor() { + this.message = {}; + } + /** + * Records a request cost metric measurement for the call. + * @param name + * @param value + */ + recordRequestCostMetric(name, value) { + if (!this.message.request_cost) { + this.message.request_cost = {}; + } + this.message.request_cost[name] = value; + } + /** + * Records a request cost metric measurement for the call. + * @param name + * @param value + */ + recordUtilizationMetric(name, value) { + if (!this.message.utilization) { + this.message.utilization = {}; + } + this.message.utilization[name] = value; + } + /** + * Records an opaque named metric measurement for the call. + * @param name + * @param value + */ + recordNamedMetric(name, value) { + if (!this.message.named_metrics) { + this.message.named_metrics = {}; + } + this.message.named_metrics[name] = value; + } + /** + * Records the CPU utilization metric measurement for the call. + * @param value + */ + recordCPUUtilizationMetric(value) { + this.message.cpu_utilization = value; + } + /** + * Records the memory utilization metric measurement for the call. + * @param value + */ + recordMemoryUtilizationMetric(value) { + this.message.mem_utilization = value; + } + /** + * Records the memory utilization metric measurement for the call. + * @param value + */ + recordApplicationUtilizationMetric(value) { + this.message.application_utilization = value; + } + /** + * Records the queries per second measurement. + * @param value + */ + recordQpsMetric(value) { + this.message.rps_fractional = value; + } + /** + * Records the errors per second measurement. + * @param value + */ + recordEpsMetric(value) { + this.message.eps = value; + } + serialize() { + const orcaProto = loadOrcaProto(); + return orcaProto.xds.data.orca.v3.OrcaLoadReport.serialize(this.message); + } +} +exports.PerRequestMetricRecorder = PerRequestMetricRecorder; +const DEFAULT_REPORT_INTERVAL_MS = 30000; +class ServerMetricRecorder { + constructor() { + this.message = {}; + this.serviceImplementation = { + StreamCoreMetrics: call => { + const reportInterval = call.request.report_interval ? + (0, duration_1.durationToMs)((0, duration_1.durationMessageToDuration)(call.request.report_interval)) : + DEFAULT_REPORT_INTERVAL_MS; + const reportTimer = setInterval(() => { + call.write(this.message); + }, reportInterval); + call.on('cancelled', () => { + clearInterval(reportTimer); + }); + } + }; + } + putUtilizationMetric(name, value) { + if (!this.message.utilization) { + this.message.utilization = {}; + } + this.message.utilization[name] = value; + } + setAllUtilizationMetrics(metrics) { + this.message.utilization = Object.assign({}, metrics); + } + deleteUtilizationMetric(name) { + var _a; + (_a = this.message.utilization) === null || _a === void 0 ? true : delete _a[name]; + } + setCpuUtilizationMetric(value) { + this.message.cpu_utilization = value; + } + deleteCpuUtilizationMetric() { + delete this.message.cpu_utilization; + } + setApplicationUtilizationMetric(value) { + this.message.application_utilization = value; + } + deleteApplicationUtilizationMetric() { + delete this.message.application_utilization; + } + setQpsMetric(value) { + this.message.rps_fractional = value; + } + deleteQpsMetric() { + delete this.message.rps_fractional; + } + setEpsMetric(value) { + this.message.eps = value; + } + deleteEpsMetric() { + delete this.message.eps; + } + addToServer(server) { + const serviceDefinition = loadOrcaProto().xds.service.orca.v3.OpenRcaService.service; + server.addService(serviceDefinition, this.serviceImplementation); + } +} +exports.ServerMetricRecorder = ServerMetricRecorder; +function createOrcaClient(channel) { + const ClientClass = loadOrcaProto().xds.service.orca.v3.OpenRcaService; + return new ClientClass('unused', channel_credentials_1.ChannelCredentials.createInsecure(), { channelOverride: channel }); +} +exports.GRPC_METRICS_HEADER = 'endpoint-load-metrics-bin'; +const PARSED_LOAD_REPORT_KEY = 'grpc_orca_load_report'; +/** + * Create an onCallEnded callback for use in a picker. + * @param listener The listener to handle metrics, whenever they are provided. + * @param previousOnCallEnded The previous onCallEnded callback to propagate + * to, if applicable. + * @returns + */ +function createMetricsReader(listener, previousOnCallEnded) { + return (code, details, metadata) => { + let parsedLoadReport = metadata.getOpaque(PARSED_LOAD_REPORT_KEY); + if (parsedLoadReport) { + listener(parsedLoadReport); + } + else { + const serializedLoadReport = metadata.get(exports.GRPC_METRICS_HEADER); + if (serializedLoadReport.length > 0) { + const orcaProto = loadOrcaProto(); + parsedLoadReport = orcaProto.xds.data.orca.v3.OrcaLoadReport.deserialize(serializedLoadReport[0]); + listener(parsedLoadReport); + metadata.setOpaque(PARSED_LOAD_REPORT_KEY, parsedLoadReport); + } + } + if (previousOnCallEnded) { + previousOnCallEnded(code, details, metadata); + } + }; +} +const DATA_PRODUCER_KEY = 'orca_oob_metrics'; +class OobMetricsDataWatcher { + constructor(metricsListener, intervalMs) { + this.metricsListener = metricsListener; + this.intervalMs = intervalMs; + this.dataProducer = null; + } + setSubchannel(subchannel) { + const producer = subchannel.getOrCreateDataProducer(DATA_PRODUCER_KEY, createOobMetricsDataProducer); + this.dataProducer = producer; + producer.addDataWatcher(this); + } + destroy() { + var _a; + (_a = this.dataProducer) === null || _a === void 0 ? void 0 : _a.removeDataWatcher(this); + } + getInterval() { + return this.intervalMs; + } + onMetricsUpdate(metrics) { + this.metricsListener(metrics); + } +} +class OobMetricsDataProducer { + constructor(subchannel) { + this.subchannel = subchannel; + this.dataWatchers = new Set(); + this.orcaSupported = true; + this.metricsCall = null; + this.currentInterval = Infinity; + this.backoffTimer = new backoff_timeout_1.BackoffTimeout(() => this.updateMetricsSubscription()); + this.subchannelStateListener = () => this.updateMetricsSubscription(); + const channel = subchannel.getChannel(); + this.client = createOrcaClient(channel); + subchannel.addConnectivityStateListener(this.subchannelStateListener); + } + addDataWatcher(dataWatcher) { + this.dataWatchers.add(dataWatcher); + this.updateMetricsSubscription(); + } + removeDataWatcher(dataWatcher) { + var _a; + this.dataWatchers.delete(dataWatcher); + if (this.dataWatchers.size === 0) { + this.subchannel.removeDataProducer(DATA_PRODUCER_KEY); + (_a = this.metricsCall) === null || _a === void 0 ? void 0 : _a.cancel(); + this.metricsCall = null; + this.client.close(); + this.subchannel.removeConnectivityStateListener(this.subchannelStateListener); + } + else { + this.updateMetricsSubscription(); + } + } + updateMetricsSubscription() { + var _a; + if (this.dataWatchers.size === 0 || !this.orcaSupported || this.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { + return; + } + const newInterval = Math.min(...Array.from(this.dataWatchers).map(watcher => watcher.getInterval())); + if (!this.metricsCall || newInterval !== this.currentInterval) { + (_a = this.metricsCall) === null || _a === void 0 ? void 0 : _a.cancel(); + this.currentInterval = newInterval; + const metricsCall = this.client.streamCoreMetrics({ report_interval: (0, duration_1.msToDuration)(newInterval) }); + this.metricsCall = metricsCall; + metricsCall.on('data', (report) => { + this.dataWatchers.forEach(watcher => { + watcher.onMetricsUpdate(report); + }); + }); + metricsCall.on('error', (error) => { + this.metricsCall = null; + if (error.code === constants_1.Status.UNIMPLEMENTED) { + this.orcaSupported = false; + return; + } + if (error.code === constants_1.Status.CANCELLED) { + return; + } + this.backoffTimer.runOnce(); + }); + } + } +} +class OrcaOobMetricsSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { + constructor(child, metricsListener, intervalMs) { + super(child); + this.addDataWatcher(new OobMetricsDataWatcher(metricsListener, intervalMs)); + } + getWrappedSubchannel() { + return this.child; + } +} +exports.OrcaOobMetricsSubchannelWrapper = OrcaOobMetricsSubchannelWrapper; +function createOobMetricsDataProducer(subchannel) { + return new OobMetricsDataProducer(subchannel); +} +//# sourceMappingURL=orca.js.map + +/***/ }), + +/***/ 12313: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.QueuePicker = exports.UnavailablePicker = exports.PickResultType = void 0; +const metadata_1 = __nccwpck_require__(89173); +const constants_1 = __nccwpck_require__(84623); +var PickResultType; +(function (PickResultType) { + PickResultType[PickResultType["COMPLETE"] = 0] = "COMPLETE"; + PickResultType[PickResultType["QUEUE"] = 1] = "QUEUE"; + PickResultType[PickResultType["TRANSIENT_FAILURE"] = 2] = "TRANSIENT_FAILURE"; + PickResultType[PickResultType["DROP"] = 3] = "DROP"; +})(PickResultType || (exports.PickResultType = PickResultType = {})); +/** + * A standard picker representing a load balancer in the TRANSIENT_FAILURE + * state. Always responds to every pick request with an UNAVAILABLE status. + */ +class UnavailablePicker { + constructor(status) { + this.status = Object.assign({ code: constants_1.Status.UNAVAILABLE, details: 'No connection established', metadata: new metadata_1.Metadata() }, status); + } + pick(pickArgs) { + return { + pickResultType: PickResultType.TRANSIENT_FAILURE, + subchannel: null, + status: this.status, + onCallStarted: null, + onCallEnded: null, + }; + } +} +exports.UnavailablePicker = UnavailablePicker; +/** + * A standard picker representing a load balancer in the IDLE or CONNECTING + * state. Always responds to every pick request with a QUEUE pick result + * indicating that the pick should be tried again with the next `Picker`. Also + * reports back to the load balancer that a connection should be established + * once any pick is attempted. + * If the childPicker is provided, delegate to it instead of returning the + * hardcoded QUEUE pick result, but still calls exitIdle. + */ +class QueuePicker { + // Constructed with a load balancer. Calls exitIdle on it the first time pick is called + constructor(loadBalancer, childPicker) { + this.loadBalancer = loadBalancer; + this.childPicker = childPicker; + this.calledExitIdle = false; + } + pick(pickArgs) { + if (!this.calledExitIdle) { + process.nextTick(() => { + this.loadBalancer.exitIdle(); + }); + this.calledExitIdle = true; + } + if (this.childPicker) { + return this.childPicker.pick(pickArgs); + } + else { + return { + pickResultType: PickResultType.QUEUE, + subchannel: null, + status: null, + onCallStarted: null, + onCallEnded: null, + }; + } + } +} +exports.QueuePicker = QueuePicker; +//# sourceMappingURL=picker.js.map + +/***/ }), + +/***/ 60066: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PriorityQueue = void 0; +const top = 0; +const parent = (i) => Math.floor(i / 2); +const left = (i) => i * 2 + 1; +const right = (i) => i * 2 + 2; +/** + * A generic priority queue implemented as an array-based binary heap. + * Adapted from https://stackoverflow.com/a/42919752/159388 + */ +class PriorityQueue { + /** + * + * @param comparator Returns true if the first argument should precede the + * second in the queue. Defaults to `(a, b) => a > b` + */ + constructor(comparator = (a, b) => a > b) { + this.comparator = comparator; + this.heap = []; + } + /** + * @returns The number of items currently in the queue + */ + size() { + return this.heap.length; + } + /** + * @returns True if there are no items in the queue, false otherwise + */ + isEmpty() { + return this.size() == 0; + } + /** + * Look at the front item that would be popped, without modifying the contents + * of the queue + * @returns The front item in the queue, or undefined if the queue is empty + */ + peek() { + return this.heap[top]; + } + /** + * Add the items to the queue + * @param values The items to add + * @returns The new size of the queue after adding the items + */ + push(...values) { + values.forEach(value => { + this.heap.push(value); + this.siftUp(); + }); + return this.size(); + } + /** + * Remove the front item in the queue and return it + * @returns The front item in the queue, or undefined if the queue is empty + */ + pop() { + const poppedValue = this.peek(); + const bottom = this.size() - 1; + if (bottom > top) { + this.swap(top, bottom); + } + this.heap.pop(); + this.siftDown(); + return poppedValue; + } + /** + * Simultaneously remove the front item in the queue and add the provided + * item. + * @param value The item to add + * @returns The front item in the queue, or undefined if the queue is empty + */ + replace(value) { + const replacedValue = this.peek(); + this.heap[top] = value; + this.siftDown(); + return replacedValue; + } + greater(i, j) { + return this.comparator(this.heap[i], this.heap[j]); + } + swap(i, j) { + [this.heap[i], this.heap[j]] = [this.heap[j], this.heap[i]]; + } + siftUp() { + let node = this.size() - 1; + while (node > top && this.greater(node, parent(node))) { + this.swap(node, parent(node)); + node = parent(node); + } + } + siftDown() { + let node = top; + while ((left(node) < this.size() && this.greater(left(node), node)) || + (right(node) < this.size() && this.greater(right(node), node))) { + let maxChild = (right(node) < this.size() && this.greater(right(node), left(node))) ? right(node) : left(node); + this.swap(node, maxChild); + node = maxChild; + } + } +} +exports.PriorityQueue = PriorityQueue; +//# sourceMappingURL=priority-queue.js.map + +/***/ }), + +/***/ 10104: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DEFAULT_PORT = void 0; +exports.setup = setup; +const resolver_1 = __nccwpck_require__(30842); +const dns_1 = __nccwpck_require__(72250); +const service_config_1 = __nccwpck_require__(16980); +const constants_1 = __nccwpck_require__(84623); +const call_interface_1 = __nccwpck_require__(91494); +const metadata_1 = __nccwpck_require__(89173); +const logging = __nccwpck_require__(26239); +const constants_2 = __nccwpck_require__(84623); +const uri_parser_1 = __nccwpck_require__(70210); +const net_1 = __nccwpck_require__(69278); +const backoff_timeout_1 = __nccwpck_require__(21400); +const environment_1 = __nccwpck_require__(46927); +const TRACER_NAME = 'dns_resolver'; +function trace(text) { + logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); +} +/** + * The default TCP port to connect to if not explicitly specified in the target. + */ +exports.DEFAULT_PORT = 443; +const DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS = 30000; +/** + * Resolver implementation that handles DNS names and IP addresses. + */ +class DnsResolver { + constructor(target, listener, channelOptions) { + var _a, _b, _c; + this.target = target; + this.listener = listener; + this.pendingLookupPromise = null; + this.pendingTxtPromise = null; + this.latestLookupResult = null; + this.latestServiceConfigResult = null; + this.continueResolving = false; + this.isNextResolutionTimerRunning = false; + this.isServiceConfigEnabled = true; + this.returnedIpResult = false; + this.alternativeResolver = new dns_1.promises.Resolver(); + trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); + if (target.authority) { + this.alternativeResolver.setServers([target.authority]); + } + const hostPort = (0, uri_parser_1.splitHostPort)(target.path); + if (hostPort === null) { + this.ipResult = null; + this.dnsHostname = null; + this.port = null; + } + else { + if ((0, net_1.isIPv4)(hostPort.host) || (0, net_1.isIPv6)(hostPort.host)) { + this.ipResult = [ + { + addresses: [ + { + host: hostPort.host, + port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : exports.DEFAULT_PORT, + }, + ], + }, + ]; + this.dnsHostname = null; + this.port = null; + } + else { + this.ipResult = null; + this.dnsHostname = hostPort.host; + this.port = (_b = hostPort.port) !== null && _b !== void 0 ? _b : exports.DEFAULT_PORT; + } + } + this.percentage = Math.random() * 100; + if (channelOptions['grpc.service_config_disable_resolution'] === 1) { + this.isServiceConfigEnabled = false; + } + this.defaultResolutionError = { + code: constants_1.Status.UNAVAILABLE, + details: `Name resolution failed for target ${(0, uri_parser_1.uriToString)(this.target)}`, + metadata: new metadata_1.Metadata(), + }; + const backoffOptions = { + initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], + maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], + }; + this.backoff = new backoff_timeout_1.BackoffTimeout(() => { + if (this.continueResolving) { + this.startResolutionWithBackoff(); + } + }, backoffOptions); + this.backoff.unref(); + this.minTimeBetweenResolutionsMs = + (_c = channelOptions['grpc.dns_min_time_between_resolutions_ms']) !== null && _c !== void 0 ? _c : DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS; + this.nextResolutionTimer = setTimeout(() => { }, 0); + clearTimeout(this.nextResolutionTimer); + } + /** + * If the target is an IP address, just provide that address as a result. + * Otherwise, initiate A, AAAA, and TXT lookups + */ + startResolution() { + if (this.ipResult !== null) { + if (!this.returnedIpResult) { + trace('Returning IP address for target ' + (0, uri_parser_1.uriToString)(this.target)); + setImmediate(() => { + this.listener((0, call_interface_1.statusOrFromValue)(this.ipResult), {}, null, ''); + }); + this.returnedIpResult = true; + } + this.backoff.stop(); + this.backoff.reset(); + this.stopNextResolutionTimer(); + return; + } + if (this.dnsHostname === null) { + trace('Failed to parse DNS address ' + (0, uri_parser_1.uriToString)(this.target)); + setImmediate(() => { + this.listener((0, call_interface_1.statusOrFromError)({ + code: constants_1.Status.UNAVAILABLE, + details: `Failed to parse DNS address ${(0, uri_parser_1.uriToString)(this.target)}` + }), {}, null, ''); + }); + this.stopNextResolutionTimer(); + } + else { + if (this.pendingLookupPromise !== null) { + return; + } + trace('Looking up DNS hostname ' + this.dnsHostname); + /* We clear out latestLookupResult here to ensure that it contains the + * latest result since the last time we started resolving. That way, the + * TXT resolution handler can use it, but only if it finishes second. We + * don't clear out any previous service config results because it's + * better to use a service config that's slightly out of date than to + * revert to an effectively blank one. */ + this.latestLookupResult = null; + const hostname = this.dnsHostname; + this.pendingLookupPromise = this.lookup(hostname); + this.pendingLookupPromise.then(addressList => { + if (this.pendingLookupPromise === null) { + return; + } + this.pendingLookupPromise = null; + this.latestLookupResult = (0, call_interface_1.statusOrFromValue)(addressList.map(address => ({ + addresses: [address], + }))); + const allAddressesString = '[' + + addressList.map(addr => addr.host + ':' + addr.port).join(',') + + ']'; + trace('Resolved addresses for target ' + + (0, uri_parser_1.uriToString)(this.target) + + ': ' + + allAddressesString); + /* If the TXT lookup has not yet finished, both of the last two + * arguments will be null, which is the equivalent of getting an + * empty TXT response. When the TXT lookup does finish, its handler + * can update the service config by using the same address list */ + const healthStatus = this.listener(this.latestLookupResult, {}, this.latestServiceConfigResult, ''); + this.handleHealthStatus(healthStatus); + }, err => { + if (this.pendingLookupPromise === null) { + return; + } + trace('Resolution error for target ' + + (0, uri_parser_1.uriToString)(this.target) + + ': ' + + err.message); + this.pendingLookupPromise = null; + this.stopNextResolutionTimer(); + this.listener((0, call_interface_1.statusOrFromError)(this.defaultResolutionError), {}, this.latestServiceConfigResult, ''); + }); + /* If there already is a still-pending TXT resolution, we can just use + * that result when it comes in */ + if (this.isServiceConfigEnabled && this.pendingTxtPromise === null) { + /* We handle the TXT query promise differently than the others because + * the name resolution attempt as a whole is a success even if the TXT + * lookup fails */ + this.pendingTxtPromise = this.resolveTxt(hostname); + this.pendingTxtPromise.then(txtRecord => { + if (this.pendingTxtPromise === null) { + return; + } + this.pendingTxtPromise = null; + let serviceConfig; + try { + serviceConfig = (0, service_config_1.extractAndSelectServiceConfig)(txtRecord, this.percentage); + if (serviceConfig) { + this.latestServiceConfigResult = (0, call_interface_1.statusOrFromValue)(serviceConfig); + } + else { + this.latestServiceConfigResult = null; + } + } + catch (err) { + this.latestServiceConfigResult = (0, call_interface_1.statusOrFromError)({ + code: constants_1.Status.UNAVAILABLE, + details: `Parsing service config failed with error ${err.message}` + }); + } + if (this.latestLookupResult !== null) { + /* We rely here on the assumption that calling this function with + * identical parameters will be essentialy idempotent, and calling + * it with the same address list and a different service config + * should result in a fast and seamless switchover. */ + this.listener(this.latestLookupResult, {}, this.latestServiceConfigResult, ''); + } + }, err => { + /* If TXT lookup fails we should do nothing, which means that we + * continue to use the result of the most recent successful lookup, + * or the default null config object if there has never been a + * successful lookup. We do not set the latestServiceConfigError + * here because that is specifically used for response validation + * errors. We still need to handle this error so that it does not + * bubble up as an unhandled promise rejection. */ + }); + } + } + } + /** + * The ResolverListener returns a boolean indicating whether the LB policy + * accepted the resolution result. A false result on an otherwise successful + * resolution should be treated as a resolution failure. + * @param healthStatus + */ + handleHealthStatus(healthStatus) { + if (healthStatus) { + this.backoff.stop(); + this.backoff.reset(); + } + else { + this.continueResolving = true; + } + } + async lookup(hostname) { + if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) { + trace('Using alternative DNS resolver.'); + const records = await Promise.allSettled([ + this.alternativeResolver.resolve4(hostname), + this.alternativeResolver.resolve6(hostname), + ]); + if (records.every(result => result.status === 'rejected')) { + throw new Error(records[0].reason); + } + return records + .reduce((acc, result) => { + return result.status === 'fulfilled' + ? [...acc, ...result.value] + : acc; + }, []) + .map(addr => ({ + host: addr, + port: +this.port, + })); + } + /* We lookup both address families here and then split them up later + * because when looking up a single family, dns.lookup outputs an error + * if the name exists but there are no records for that family, and that + * error is indistinguishable from other kinds of errors */ + const addressList = await dns_1.promises.lookup(hostname, { all: true }); + return addressList.map(addr => ({ host: addr.address, port: +this.port })); + } + async resolveTxt(hostname) { + if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) { + trace('Using alternative DNS resolver.'); + return this.alternativeResolver.resolveTxt(hostname); + } + return dns_1.promises.resolveTxt(hostname); + } + startNextResolutionTimer() { + var _a, _b; + clearTimeout(this.nextResolutionTimer); + this.nextResolutionTimer = setTimeout(() => { + this.stopNextResolutionTimer(); + if (this.continueResolving) { + this.startResolutionWithBackoff(); + } + }, this.minTimeBetweenResolutionsMs); + (_b = (_a = this.nextResolutionTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + this.isNextResolutionTimerRunning = true; + } + stopNextResolutionTimer() { + clearTimeout(this.nextResolutionTimer); + this.isNextResolutionTimerRunning = false; + } + startResolutionWithBackoff() { + if (this.pendingLookupPromise === null) { + this.continueResolving = false; + this.backoff.runOnce(); + this.startNextResolutionTimer(); + this.startResolution(); + } + } + updateResolution() { + /* If there is a pending lookup, just let it finish. Otherwise, if the + * nextResolutionTimer or backoff timer is running, set the + * continueResolving flag to resolve when whichever of those timers + * fires. Otherwise, start resolving immediately. */ + if (this.pendingLookupPromise === null) { + if (this.isNextResolutionTimerRunning || this.backoff.isRunning()) { + if (this.isNextResolutionTimerRunning) { + trace('resolution update delayed by "min time between resolutions" rate limit'); + } + else { + trace('resolution update delayed by backoff timer until ' + + this.backoff.getEndTime().toISOString()); + } + this.continueResolving = true; + } + else { + this.startResolutionWithBackoff(); + } + } + } + /** + * Reset the resolver to the same state it had when it was created. In-flight + * DNS requests cannot be cancelled, but they are discarded and their results + * will be ignored. + */ + destroy() { + this.continueResolving = false; + this.backoff.reset(); + this.backoff.stop(); + this.stopNextResolutionTimer(); + this.pendingLookupPromise = null; + this.pendingTxtPromise = null; + this.latestLookupResult = null; + this.latestServiceConfigResult = null; + this.returnedIpResult = false; + } + /** + * Get the default authority for the given target. For IP targets, that is + * the IP address. For DNS targets, it is the hostname. + * @param target + */ + static getDefaultAuthority(target) { + return target.path; + } +} +/** + * Set up the DNS resolver class by registering it as the handler for the + * "dns:" prefix and as the default resolver. + */ +function setup() { + (0, resolver_1.registerResolver)('dns', DnsResolver); + (0, resolver_1.registerDefaultScheme)('dns'); +} +//# sourceMappingURL=resolver-dns.js.map + +/***/ }), + +/***/ 27590: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.setup = setup; +const net_1 = __nccwpck_require__(69278); +const call_interface_1 = __nccwpck_require__(91494); +const constants_1 = __nccwpck_require__(84623); +const metadata_1 = __nccwpck_require__(89173); +const resolver_1 = __nccwpck_require__(30842); +const subchannel_address_1 = __nccwpck_require__(95080); +const uri_parser_1 = __nccwpck_require__(70210); +const logging = __nccwpck_require__(26239); +const TRACER_NAME = 'ip_resolver'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const IPV4_SCHEME = 'ipv4'; +const IPV6_SCHEME = 'ipv6'; +/** + * The default TCP port to connect to if not explicitly specified in the target. + */ +const DEFAULT_PORT = 443; +class IpResolver { + constructor(target, listener, channelOptions) { + var _a; + this.listener = listener; + this.endpoints = []; + this.error = null; + this.hasReturnedResult = false; + trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); + const addresses = []; + if (!(target.scheme === IPV4_SCHEME || target.scheme === IPV6_SCHEME)) { + this.error = { + code: constants_1.Status.UNAVAILABLE, + details: `Unrecognized scheme ${target.scheme} in IP resolver`, + metadata: new metadata_1.Metadata(), + }; + return; + } + const pathList = target.path.split(','); + for (const path of pathList) { + const hostPort = (0, uri_parser_1.splitHostPort)(path); + if (hostPort === null) { + this.error = { + code: constants_1.Status.UNAVAILABLE, + details: `Failed to parse ${target.scheme} address ${path}`, + metadata: new metadata_1.Metadata(), + }; + return; + } + if ((target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host)) || + (target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host))) { + this.error = { + code: constants_1.Status.UNAVAILABLE, + details: `Failed to parse ${target.scheme} address ${path}`, + metadata: new metadata_1.Metadata(), + }; + return; + } + addresses.push({ + host: hostPort.host, + port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : DEFAULT_PORT, + }); + } + this.endpoints = addresses.map(address => ({ addresses: [address] })); + trace('Parsed ' + target.scheme + ' address list ' + addresses.map(subchannel_address_1.subchannelAddressToString)); + } + updateResolution() { + if (!this.hasReturnedResult) { + this.hasReturnedResult = true; + process.nextTick(() => { + if (this.error) { + this.listener((0, call_interface_1.statusOrFromError)(this.error), {}, null, ''); + } + else { + this.listener((0, call_interface_1.statusOrFromValue)(this.endpoints), {}, null, ''); + } + }); + } + } + destroy() { + this.hasReturnedResult = false; + } + static getDefaultAuthority(target) { + return target.path.split(',')[0]; + } +} +function setup() { + (0, resolver_1.registerResolver)(IPV4_SCHEME, IpResolver); + (0, resolver_1.registerResolver)(IPV6_SCHEME, IpResolver); +} +//# sourceMappingURL=resolver-ip.js.map + +/***/ }), + +/***/ 16317: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.setup = setup; +const resolver_1 = __nccwpck_require__(30842); +const call_interface_1 = __nccwpck_require__(91494); +class UdsResolver { + constructor(target, listener, channelOptions) { + this.listener = listener; + this.hasReturnedResult = false; + this.endpoints = []; + let path; + if (target.authority === '') { + path = '/' + target.path; + } + else { + path = target.path; + } + this.endpoints = [{ addresses: [{ path }] }]; + } + updateResolution() { + if (!this.hasReturnedResult) { + this.hasReturnedResult = true; + process.nextTick(this.listener, (0, call_interface_1.statusOrFromValue)(this.endpoints), {}, null, ''); + } + } + destroy() { + this.hasReturnedResult = false; + } + static getDefaultAuthority(target) { + return 'localhost'; + } +} +function setup() { + (0, resolver_1.registerResolver)('unix', UdsResolver); +} +//# sourceMappingURL=resolver-uds.js.map + +/***/ }), + +/***/ 30842: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = void 0; +exports.registerResolver = registerResolver; +exports.registerDefaultScheme = registerDefaultScheme; +exports.createResolver = createResolver; +exports.getDefaultAuthority = getDefaultAuthority; +exports.mapUriDefaultScheme = mapUriDefaultScheme; +const uri_parser_1 = __nccwpck_require__(70210); +exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = 'grpc.internal.config_selector'; +const registeredResolvers = {}; +let defaultScheme = null; +/** + * Register a resolver class to handle target names prefixed with the `prefix` + * string. This prefix should correspond to a URI scheme name listed in the + * [gRPC Name Resolution document](https://github.com/grpc/grpc/blob/master/doc/naming.md) + * @param prefix + * @param resolverClass + */ +function registerResolver(scheme, resolverClass) { + registeredResolvers[scheme] = resolverClass; +} +/** + * Register a default resolver to handle target names that do not start with + * any registered prefix. + * @param resolverClass + */ +function registerDefaultScheme(scheme) { + defaultScheme = scheme; +} +/** + * Create a name resolver for the specified target, if possible. Throws an + * error if no such name resolver can be created. + * @param target + * @param listener + */ +function createResolver(target, listener, options) { + if (target.scheme !== undefined && target.scheme in registeredResolvers) { + return new registeredResolvers[target.scheme](target, listener, options); + } + else { + throw new Error(`No resolver could be created for target ${(0, uri_parser_1.uriToString)(target)}`); + } +} +/** + * Get the default authority for the specified target, if possible. Throws an + * error if no registered name resolver can parse that target string. + * @param target + */ +function getDefaultAuthority(target) { + if (target.scheme !== undefined && target.scheme in registeredResolvers) { + return registeredResolvers[target.scheme].getDefaultAuthority(target); + } + else { + throw new Error(`Invalid target ${(0, uri_parser_1.uriToString)(target)}`); + } +} +function mapUriDefaultScheme(target) { + if (target.scheme === undefined || !(target.scheme in registeredResolvers)) { + if (defaultScheme !== null) { + return { + scheme: defaultScheme, + authority: undefined, + path: (0, uri_parser_1.uriToString)(target), + }; + } + else { + return null; + } + } + return target; +} +//# sourceMappingURL=resolver.js.map + +/***/ }), + +/***/ 83170: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResolvingCall = void 0; +const call_credentials_1 = __nccwpck_require__(26159); +const constants_1 = __nccwpck_require__(84623); +const deadline_1 = __nccwpck_require__(27168); +const metadata_1 = __nccwpck_require__(89173); +const logging = __nccwpck_require__(26239); +const control_plane_status_1 = __nccwpck_require__(14519); +const TRACER_NAME = 'resolving_call'; +class ResolvingCall { + constructor(channel, method, options, filterStackFactory, callNumber) { + this.channel = channel; + this.method = method; + this.filterStackFactory = filterStackFactory; + this.callNumber = callNumber; + this.child = null; + this.readPending = false; + this.pendingMessage = null; + this.pendingHalfClose = false; + this.ended = false; + this.readFilterPending = false; + this.writeFilterPending = false; + this.pendingChildStatus = null; + this.metadata = null; + this.listener = null; + this.statusWatchers = []; + this.deadlineTimer = setTimeout(() => { }, 0); + this.filterStack = null; + this.deadlineStartTime = null; + this.configReceivedTime = null; + this.childStartTime = null; + /** + * Credentials configured for this specific call. Does not include + * call credentials associated with the channel credentials used to create + * the channel. + */ + this.credentials = call_credentials_1.CallCredentials.createEmpty(); + this.deadline = options.deadline; + this.host = options.host; + if (options.parentCall) { + if (options.flags & constants_1.Propagate.CANCELLATION) { + options.parentCall.on('cancelled', () => { + this.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled by parent call'); + }); + } + if (options.flags & constants_1.Propagate.DEADLINE) { + this.trace('Propagating deadline from parent: ' + + options.parentCall.getDeadline()); + this.deadline = (0, deadline_1.minDeadline)(this.deadline, options.parentCall.getDeadline()); + } + } + this.trace('Created'); + this.runDeadlineTimer(); + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); + } + runDeadlineTimer() { + clearTimeout(this.deadlineTimer); + this.deadlineStartTime = new Date(); + this.trace('Deadline: ' + (0, deadline_1.deadlineToString)(this.deadline)); + const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline); + if (timeout !== Infinity) { + this.trace('Deadline will be reached in ' + timeout + 'ms'); + const handleDeadline = () => { + if (!this.deadlineStartTime) { + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); + return; + } + const deadlineInfo = []; + const deadlineEndTime = new Date(); + deadlineInfo.push(`Deadline exceeded after ${(0, deadline_1.formatDateDifference)(this.deadlineStartTime, deadlineEndTime)}`); + if (this.configReceivedTime) { + if (this.configReceivedTime > this.deadlineStartTime) { + deadlineInfo.push(`name resolution: ${(0, deadline_1.formatDateDifference)(this.deadlineStartTime, this.configReceivedTime)}`); + } + if (this.childStartTime) { + if (this.childStartTime > this.configReceivedTime) { + deadlineInfo.push(`metadata filters: ${(0, deadline_1.formatDateDifference)(this.configReceivedTime, this.childStartTime)}`); + } + } + else { + deadlineInfo.push('waiting for metadata filters'); + } + } + else { + deadlineInfo.push('waiting for name resolution'); + } + if (this.child) { + deadlineInfo.push(...this.child.getDeadlineInfo()); + } + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, deadlineInfo.join(',')); + }; + if (timeout <= 0) { + process.nextTick(handleDeadline); + } + else { + this.deadlineTimer = setTimeout(handleDeadline, timeout); + } + } + } + outputStatus(status) { + if (!this.ended) { + this.ended = true; + if (!this.filterStack) { + this.filterStack = this.filterStackFactory.createFilter(); + } + clearTimeout(this.deadlineTimer); + const filteredStatus = this.filterStack.receiveTrailers(status); + this.trace('ended with status: code=' + + filteredStatus.code + + ' details="' + + filteredStatus.details + + '"'); + this.statusWatchers.forEach(watcher => watcher(filteredStatus)); + process.nextTick(() => { + var _a; + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(filteredStatus); + }); + } + } + sendMessageOnChild(context, message) { + if (!this.child) { + throw new Error('sendMessageonChild called with child not populated'); + } + const child = this.child; + this.writeFilterPending = true; + this.filterStack.sendMessage(Promise.resolve({ message: message, flags: context.flags })).then(filteredMessage => { + this.writeFilterPending = false; + child.sendMessageWithContext(context, filteredMessage.message); + if (this.pendingHalfClose) { + child.halfClose(); + } + }, (status) => { + this.cancelWithStatus(status.code, status.details); + }); + } + getConfig() { + if (this.ended) { + return; + } + if (!this.metadata || !this.listener) { + throw new Error('getConfig called before start'); + } + const configResult = this.channel.getConfig(this.method, this.metadata); + if (configResult.type === 'NONE') { + this.channel.queueCallForConfig(this); + return; + } + else if (configResult.type === 'ERROR') { + if (this.metadata.getOptions().waitForReady) { + this.channel.queueCallForConfig(this); + } + else { + this.outputStatus(configResult.error); + } + return; + } + // configResult.type === 'SUCCESS' + this.configReceivedTime = new Date(); + const config = configResult.config; + if (config.status !== constants_1.Status.OK) { + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(config.status, 'Failed to route call to method ' + this.method); + this.outputStatus({ + code: code, + details: details, + metadata: new metadata_1.Metadata(), + }); + return; + } + if (config.methodConfig.timeout) { + const configDeadline = new Date(); + configDeadline.setSeconds(configDeadline.getSeconds() + config.methodConfig.timeout.seconds); + configDeadline.setMilliseconds(configDeadline.getMilliseconds() + + config.methodConfig.timeout.nanos / 1000000); + this.deadline = (0, deadline_1.minDeadline)(this.deadline, configDeadline); + this.runDeadlineTimer(); + } + this.filterStackFactory.push(config.dynamicFilterFactories); + this.filterStack = this.filterStackFactory.createFilter(); + this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then(filteredMetadata => { + this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline); + this.trace('Created child [' + this.child.getCallNumber() + ']'); + this.childStartTime = new Date(); + this.child.start(filteredMetadata, { + onReceiveMetadata: metadata => { + this.trace('Received metadata'); + this.listener.onReceiveMetadata(this.filterStack.receiveMetadata(metadata)); + }, + onReceiveMessage: message => { + this.trace('Received message'); + this.readFilterPending = true; + this.filterStack.receiveMessage(message).then(filteredMesssage => { + this.trace('Finished filtering received message'); + this.readFilterPending = false; + this.listener.onReceiveMessage(filteredMesssage); + if (this.pendingChildStatus) { + this.outputStatus(this.pendingChildStatus); + } + }, (status) => { + this.cancelWithStatus(status.code, status.details); + }); + }, + onReceiveStatus: status => { + this.trace('Received status'); + if (this.readFilterPending) { + this.pendingChildStatus = status; + } + else { + this.outputStatus(status); + } + }, + }); + if (this.readPending) { + this.child.startRead(); + } + if (this.pendingMessage) { + this.sendMessageOnChild(this.pendingMessage.context, this.pendingMessage.message); + } + else if (this.pendingHalfClose) { + this.child.halfClose(); + } + }, (status) => { + this.outputStatus(status); + }); + } + reportResolverError(status) { + var _a; + if ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.getOptions().waitForReady) { + this.channel.queueCallForConfig(this); + } + else { + this.outputStatus(status); + } + } + cancelWithStatus(status, details) { + var _a; + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); + this.outputStatus({ + code: status, + details: details, + metadata: new metadata_1.Metadata(), + }); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); + } + start(metadata, listener) { + this.trace('start called'); + this.metadata = metadata.clone(); + this.listener = listener; + this.getConfig(); + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + if (this.child) { + this.sendMessageOnChild(context, message); + } + else { + this.pendingMessage = { context, message }; + } + } + startRead() { + this.trace('startRead called'); + if (this.child) { + this.child.startRead(); + } + else { + this.readPending = true; + } + } + halfClose() { + this.trace('halfClose called'); + if (this.child && !this.writeFilterPending) { + this.child.halfClose(); + } + else { + this.pendingHalfClose = true; + } + } + setCredentials(credentials) { + this.credentials = credentials; + } + addStatusWatcher(watcher) { + this.statusWatchers.push(watcher); + } + getCallNumber() { + return this.callNumber; + } + getAuthContext() { + if (this.child) { + return this.child.getAuthContext(); + } + else { + return null; + } + } +} +exports.ResolvingCall = ResolvingCall; +//# sourceMappingURL=resolving-call.js.map + +/***/ }), + +/***/ 9809: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResolvingLoadBalancer = void 0; +const load_balancer_1 = __nccwpck_require__(23863); +const service_config_1 = __nccwpck_require__(16980); +const connectivity_state_1 = __nccwpck_require__(63827); +const resolver_1 = __nccwpck_require__(30842); +const picker_1 = __nccwpck_require__(12313); +const backoff_timeout_1 = __nccwpck_require__(21400); +const constants_1 = __nccwpck_require__(84623); +const metadata_1 = __nccwpck_require__(89173); +const logging = __nccwpck_require__(26239); +const constants_2 = __nccwpck_require__(84623); +const uri_parser_1 = __nccwpck_require__(70210); +const load_balancer_child_handler_1 = __nccwpck_require__(33569); +const TRACER_NAME = 'resolving_load_balancer'; +function trace(text) { + logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); +} +/** + * Name match levels in order from most to least specific. This is the order in + * which searches will be performed. + */ +const NAME_MATCH_LEVEL_ORDER = [ + 'SERVICE_AND_METHOD', + 'SERVICE', + 'EMPTY', +]; +function hasMatchingName(service, method, methodConfig, matchLevel) { + for (const name of methodConfig.name) { + switch (matchLevel) { + case 'EMPTY': + if (!name.service && !name.method) { + return true; + } + break; + case 'SERVICE': + if (name.service === service && !name.method) { + return true; + } + break; + case 'SERVICE_AND_METHOD': + if (name.service === service && name.method === method) { + return true; + } + } + } + return false; +} +function findMatchingConfig(service, method, methodConfigs, matchLevel) { + for (const config of methodConfigs) { + if (hasMatchingName(service, method, config, matchLevel)) { + return config; + } + } + return null; +} +function getDefaultConfigSelector(serviceConfig) { + return { + invoke(methodName, metadata) { + var _a, _b; + const splitName = methodName.split('/').filter(x => x.length > 0); + const service = (_a = splitName[0]) !== null && _a !== void 0 ? _a : ''; + const method = (_b = splitName[1]) !== null && _b !== void 0 ? _b : ''; + if (serviceConfig && serviceConfig.methodConfig) { + /* Check for the following in order, and return the first method + * config that matches: + * 1. A name that exactly matches the service and method + * 2. A name with no method set that matches the service + * 3. An empty name + */ + for (const matchLevel of NAME_MATCH_LEVEL_ORDER) { + const matchingConfig = findMatchingConfig(service, method, serviceConfig.methodConfig, matchLevel); + if (matchingConfig) { + return { + methodConfig: matchingConfig, + pickInformation: {}, + status: constants_1.Status.OK, + dynamicFilterFactories: [], + }; + } + } + } + return { + methodConfig: { name: [] }, + pickInformation: {}, + status: constants_1.Status.OK, + dynamicFilterFactories: [], + }; + }, + unref() { } + }; +} +class ResolvingLoadBalancer { + /** + * Wrapper class that behaves like a `LoadBalancer` and also handles name + * resolution internally. + * @param target The address of the backend to connect to. + * @param channelControlHelper `ChannelControlHelper` instance provided by + * this load balancer's owner. + * @param defaultServiceConfig The default service configuration to be used + * if none is provided by the name resolver. A `null` value indicates + * that the default behavior should be the default unconfigured behavior. + * In practice, that means using the "pick first" load balancer + * implmentation + */ + constructor(target, channelControlHelper, channelOptions, onSuccessfulResolution, onFailedResolution) { + this.target = target; + this.channelControlHelper = channelControlHelper; + this.channelOptions = channelOptions; + this.onSuccessfulResolution = onSuccessfulResolution; + this.onFailedResolution = onFailedResolution; + this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; + this.latestChildPicker = new picker_1.QueuePicker(this); + this.latestChildErrorMessage = null; + /** + * This resolving load balancer's current connectivity state. + */ + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + /** + * The service config object from the last successful resolution, if + * available. A value of null indicates that we have not yet received a valid + * service config from the resolver. + */ + this.previousServiceConfig = null; + /** + * Indicates whether we should attempt to resolve again after the backoff + * timer runs out. + */ + this.continueResolving = false; + if (channelOptions['grpc.service_config']) { + this.defaultServiceConfig = (0, service_config_1.validateServiceConfig)(JSON.parse(channelOptions['grpc.service_config'])); + } + else { + this.defaultServiceConfig = { + loadBalancingConfig: [], + methodConfig: [], + }; + } + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + this.childLoadBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler({ + createSubchannel: channelControlHelper.createSubchannel.bind(channelControlHelper), + requestReresolution: () => { + /* If the backoffTimeout is running, we're still backing off from + * making resolve requests, so we shouldn't make another one here. + * In that case, the backoff timer callback will call + * updateResolution */ + if (this.backoffTimeout.isRunning()) { + trace('requestReresolution delayed by backoff timer until ' + + this.backoffTimeout.getEndTime().toISOString()); + this.continueResolving = true; + } + else { + this.updateResolution(); + } + }, + updateState: (newState, picker, errorMessage) => { + this.latestChildState = newState; + this.latestChildPicker = picker; + this.latestChildErrorMessage = errorMessage; + this.updateState(newState, picker, errorMessage); + }, + addChannelzChild: channelControlHelper.addChannelzChild.bind(channelControlHelper), + removeChannelzChild: channelControlHelper.removeChannelzChild.bind(channelControlHelper), + }); + this.innerResolver = (0, resolver_1.createResolver)(target, this.handleResolverResult.bind(this), channelOptions); + const backoffOptions = { + initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], + maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], + }; + this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { + if (this.continueResolving) { + this.updateResolution(); + this.continueResolving = false; + } + else { + this.updateState(this.latestChildState, this.latestChildPicker, this.latestChildErrorMessage); + } + }, backoffOptions); + this.backoffTimeout.unref(); + } + handleResolverResult(endpointList, attributes, serviceConfig, resolutionNote) { + var _a, _b; + this.backoffTimeout.stop(); + this.backoffTimeout.reset(); + let resultAccepted = true; + let workingServiceConfig = null; + if (serviceConfig === null) { + workingServiceConfig = this.defaultServiceConfig; + } + else if (serviceConfig.ok) { + workingServiceConfig = serviceConfig.value; + } + else { + if (this.previousServiceConfig !== null) { + workingServiceConfig = this.previousServiceConfig; + } + else { + resultAccepted = false; + this.handleResolutionFailure(serviceConfig.error); + } + } + if (workingServiceConfig !== null) { + const workingConfigList = (_a = workingServiceConfig === null || workingServiceConfig === void 0 ? void 0 : workingServiceConfig.loadBalancingConfig) !== null && _a !== void 0 ? _a : []; + const loadBalancingConfig = (0, load_balancer_1.selectLbConfigFromList)(workingConfigList, true); + if (loadBalancingConfig === null) { + resultAccepted = false; + this.handleResolutionFailure({ + code: constants_1.Status.UNAVAILABLE, + details: 'All load balancer options in service config are not compatible', + metadata: new metadata_1.Metadata(), + }); + } + else { + resultAccepted = this.childLoadBalancer.updateAddressList(endpointList, loadBalancingConfig, Object.assign(Object.assign({}, this.channelOptions), attributes), resolutionNote); + } + } + if (resultAccepted) { + this.onSuccessfulResolution(workingServiceConfig, (_b = attributes[resolver_1.CHANNEL_ARGS_CONFIG_SELECTOR_KEY]) !== null && _b !== void 0 ? _b : getDefaultConfigSelector(workingServiceConfig)); + } + return resultAccepted; + } + updateResolution() { + this.innerResolver.updateResolution(); + if (this.currentState === connectivity_state_1.ConnectivityState.IDLE) { + /* this.latestChildPicker is initialized as new QueuePicker(this), which + * is an appropriate value here if the child LB policy is unset. + * Otherwise, we want to delegate to the child here, in case that + * triggers something. */ + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, this.latestChildPicker, this.latestChildErrorMessage); + } + this.backoffTimeout.runOnce(); + } + updateState(connectivityState, picker, errorMessage) { + trace((0, uri_parser_1.uriToString)(this.target) + + ' ' + + connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[connectivityState]); + // Ensure that this.exitIdle() is called by the picker + if (connectivityState === connectivity_state_1.ConnectivityState.IDLE) { + picker = new picker_1.QueuePicker(this, picker); + } + this.currentState = connectivityState; + this.channelControlHelper.updateState(connectivityState, picker, errorMessage); + } + handleResolutionFailure(error) { + if (this.latestChildState === connectivity_state_1.ConnectivityState.IDLE) { + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(error), error.details); + this.onFailedResolution(error); + } + } + exitIdle() { + if (this.currentState === connectivity_state_1.ConnectivityState.IDLE || + this.currentState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + if (this.backoffTimeout.isRunning()) { + this.continueResolving = true; + } + else { + this.updateResolution(); + } + } + this.childLoadBalancer.exitIdle(); + } + updateAddressList(endpointList, lbConfig) { + throw new Error('updateAddressList not supported on ResolvingLoadBalancer'); + } + resetBackoff() { + this.backoffTimeout.reset(); + this.childLoadBalancer.resetBackoff(); + } + destroy() { + this.childLoadBalancer.destroy(); + this.innerResolver.destroy(); + this.backoffTimeout.reset(); + this.backoffTimeout.stop(); + this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; + this.latestChildPicker = new picker_1.QueuePicker(this); + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + this.previousServiceConfig = null; + this.continueResolving = false; + } + getTypeName() { + return 'resolving_load_balancer'; + } +} +exports.ResolvingLoadBalancer = ResolvingLoadBalancer; +//# sourceMappingURL=resolving-load-balancer.js.map + +/***/ }), + +/***/ 45355: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RetryingCall = exports.MessageBufferTracker = exports.RetryThrottler = void 0; +const constants_1 = __nccwpck_require__(84623); +const deadline_1 = __nccwpck_require__(27168); +const metadata_1 = __nccwpck_require__(89173); +const logging = __nccwpck_require__(26239); +const TRACER_NAME = 'retrying_call'; +class RetryThrottler { + constructor(maxTokens, tokenRatio, previousRetryThrottler) { + this.maxTokens = maxTokens; + this.tokenRatio = tokenRatio; + if (previousRetryThrottler) { + /* When carrying over tokens from a previous config, rescale them to the + * new max value */ + this.tokens = + previousRetryThrottler.tokens * + (maxTokens / previousRetryThrottler.maxTokens); + } + else { + this.tokens = maxTokens; + } + } + addCallSucceeded() { + this.tokens = Math.min(this.tokens + this.tokenRatio, this.maxTokens); + } + addCallFailed() { + this.tokens = Math.max(this.tokens - 1, 0); + } + canRetryCall() { + return this.tokens > (this.maxTokens / 2); + } +} +exports.RetryThrottler = RetryThrottler; +class MessageBufferTracker { + constructor(totalLimit, limitPerCall) { + this.totalLimit = totalLimit; + this.limitPerCall = limitPerCall; + this.totalAllocated = 0; + this.allocatedPerCall = new Map(); + } + allocate(size, callId) { + var _a; + const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; + if (this.limitPerCall - currentPerCall < size || + this.totalLimit - this.totalAllocated < size) { + return false; + } + this.allocatedPerCall.set(callId, currentPerCall + size); + this.totalAllocated += size; + return true; + } + free(size, callId) { + var _a; + if (this.totalAllocated < size) { + throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > total allocated ${this.totalAllocated}`); + } + this.totalAllocated -= size; + const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; + if (currentPerCall < size) { + throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > allocated for call ${currentPerCall}`); + } + this.allocatedPerCall.set(callId, currentPerCall - size); + } + freeAll(callId) { + var _a; + const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; + if (this.totalAllocated < currentPerCall) { + throw new Error(`Invalid buffer allocation state: call ${callId} allocated ${currentPerCall} > total allocated ${this.totalAllocated}`); + } + this.totalAllocated -= currentPerCall; + this.allocatedPerCall.delete(callId); + } +} +exports.MessageBufferTracker = MessageBufferTracker; +const PREVIONS_RPC_ATTEMPTS_METADATA_KEY = 'grpc-previous-rpc-attempts'; +const DEFAULT_MAX_ATTEMPTS_LIMIT = 5; +class RetryingCall { + constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber, bufferTracker, retryThrottler) { + var _a; + this.channel = channel; + this.callConfig = callConfig; + this.methodName = methodName; + this.host = host; + this.credentials = credentials; + this.deadline = deadline; + this.callNumber = callNumber; + this.bufferTracker = bufferTracker; + this.retryThrottler = retryThrottler; + this.listener = null; + this.initialMetadata = null; + this.underlyingCalls = []; + this.writeBuffer = []; + /** + * The offset of message indices in the writeBuffer. For example, if + * writeBufferOffset is 10, message 10 is in writeBuffer[0] and message 15 + * is in writeBuffer[5]. + */ + this.writeBufferOffset = 0; + /** + * Tracks whether a read has been started, so that we know whether to start + * reads on new child calls. This only matters for the first read, because + * once a message comes in the child call becomes committed and there will + * be no new child calls. + */ + this.readStarted = false; + this.transparentRetryUsed = false; + /** + * Number of attempts so far + */ + this.attempts = 0; + this.hedgingTimer = null; + this.committedCallIndex = null; + this.initialRetryBackoffSec = 0; + this.nextRetryBackoffSec = 0; + const maxAttemptsLimit = (_a = channel.getOptions()['grpc-node.retry_max_attempts_limit']) !== null && _a !== void 0 ? _a : DEFAULT_MAX_ATTEMPTS_LIMIT; + if (channel.getOptions()['grpc.enable_retries'] === 0) { + this.state = 'NO_RETRY'; + this.maxAttempts = 1; + } + else if (callConfig.methodConfig.retryPolicy) { + this.state = 'RETRY'; + const retryPolicy = callConfig.methodConfig.retryPolicy; + this.nextRetryBackoffSec = this.initialRetryBackoffSec = Number(retryPolicy.initialBackoff.substring(0, retryPolicy.initialBackoff.length - 1)); + this.maxAttempts = Math.min(retryPolicy.maxAttempts, maxAttemptsLimit); + } + else if (callConfig.methodConfig.hedgingPolicy) { + this.state = 'HEDGING'; + this.maxAttempts = Math.min(callConfig.methodConfig.hedgingPolicy.maxAttempts, maxAttemptsLimit); + } + else { + this.state = 'TRANSPARENT_ONLY'; + this.maxAttempts = 1; + } + this.startTime = new Date(); + } + getDeadlineInfo() { + if (this.underlyingCalls.length === 0) { + return []; + } + const deadlineInfo = []; + const latestCall = this.underlyingCalls[this.underlyingCalls.length - 1]; + if (this.underlyingCalls.length > 1) { + deadlineInfo.push(`previous attempts: ${this.underlyingCalls.length - 1}`); + } + if (latestCall.startTime > this.startTime) { + deadlineInfo.push(`time to current attempt start: ${(0, deadline_1.formatDateDifference)(this.startTime, latestCall.startTime)}`); + } + deadlineInfo.push(...latestCall.call.getDeadlineInfo()); + return deadlineInfo; + } + getCallNumber() { + return this.callNumber; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); + } + reportStatus(statusObject) { + this.trace('ended with status: code=' + + statusObject.code + + ' details="' + + statusObject.details + + '" start time=' + + this.startTime.toISOString()); + this.bufferTracker.freeAll(this.callNumber); + this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length; + this.writeBuffer = []; + process.nextTick(() => { + var _a; + // Explicitly construct status object to remove progress field + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus({ + code: statusObject.code, + details: statusObject.details, + metadata: statusObject.metadata, + }); + }); + } + cancelWithStatus(status, details) { + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + this.reportStatus({ code: status, details, metadata: new metadata_1.Metadata() }); + for (const { call } of this.underlyingCalls) { + call.cancelWithStatus(status, details); + } + } + getPeer() { + if (this.committedCallIndex !== null) { + return this.underlyingCalls[this.committedCallIndex].call.getPeer(); + } + else { + return 'unknown'; + } + } + getBufferEntry(messageIndex) { + var _a; + return ((_a = this.writeBuffer[messageIndex - this.writeBufferOffset]) !== null && _a !== void 0 ? _a : { + entryType: 'FREED', + allocated: false, + }); + } + getNextBufferIndex() { + return this.writeBufferOffset + this.writeBuffer.length; + } + clearSentMessages() { + if (this.state !== 'COMMITTED') { + return; + } + let earliestNeededMessageIndex; + if (this.underlyingCalls[this.committedCallIndex].state === 'COMPLETED') { + /* If the committed call is completed, clear all messages, even if some + * have not been sent. */ + earliestNeededMessageIndex = this.getNextBufferIndex(); + } + else { + earliestNeededMessageIndex = + this.underlyingCalls[this.committedCallIndex].nextMessageToSend; + } + for (let messageIndex = this.writeBufferOffset; messageIndex < earliestNeededMessageIndex; messageIndex++) { + const bufferEntry = this.getBufferEntry(messageIndex); + if (bufferEntry.allocated) { + this.bufferTracker.free(bufferEntry.message.message.length, this.callNumber); + } + } + this.writeBuffer = this.writeBuffer.slice(earliestNeededMessageIndex - this.writeBufferOffset); + this.writeBufferOffset = earliestNeededMessageIndex; + } + commitCall(index) { + var _a, _b; + if (this.state === 'COMMITTED') { + return; + } + this.trace('Committing call [' + + this.underlyingCalls[index].call.getCallNumber() + + '] at index ' + + index); + this.state = 'COMMITTED'; + (_b = (_a = this.callConfig).onCommitted) === null || _b === void 0 ? void 0 : _b.call(_a); + this.committedCallIndex = index; + for (let i = 0; i < this.underlyingCalls.length; i++) { + if (i === index) { + continue; + } + if (this.underlyingCalls[i].state === 'COMPLETED') { + continue; + } + this.underlyingCalls[i].state = 'COMPLETED'; + this.underlyingCalls[i].call.cancelWithStatus(constants_1.Status.CANCELLED, 'Discarded in favor of other hedged attempt'); + } + this.clearSentMessages(); + } + commitCallWithMostMessages() { + if (this.state === 'COMMITTED') { + return; + } + let mostMessages = -1; + let callWithMostMessages = -1; + for (const [index, childCall] of this.underlyingCalls.entries()) { + if (childCall.state === 'ACTIVE' && + childCall.nextMessageToSend > mostMessages) { + mostMessages = childCall.nextMessageToSend; + callWithMostMessages = index; + } + } + if (callWithMostMessages === -1) { + /* There are no active calls, disable retries to force the next call that + * is started to be committed. */ + this.state = 'TRANSPARENT_ONLY'; + } + else { + this.commitCall(callWithMostMessages); + } + } + isStatusCodeInList(list, code) { + return list.some(value => { + var _a; + return value === code || + value.toString().toLowerCase() === ((_a = constants_1.Status[code]) === null || _a === void 0 ? void 0 : _a.toLowerCase()); + }); + } + getNextRetryJitter() { + /* Jitter of +-20% is applied: https://github.com/grpc/proposal/blob/master/A6-client-retries.md#exponential-backoff */ + return Math.random() * (1.2 - 0.8) + 0.8; + } + getNextRetryBackoffMs() { + var _a; + const retryPolicy = (_a = this.callConfig) === null || _a === void 0 ? void 0 : _a.methodConfig.retryPolicy; + if (!retryPolicy) { + return 0; + } + const jitter = this.getNextRetryJitter(); + const nextBackoffMs = jitter * this.nextRetryBackoffSec * 1000; + const maxBackoffSec = Number(retryPolicy.maxBackoff.substring(0, retryPolicy.maxBackoff.length - 1)); + this.nextRetryBackoffSec = Math.min(this.nextRetryBackoffSec * retryPolicy.backoffMultiplier, maxBackoffSec); + return nextBackoffMs; + } + maybeRetryCall(pushback, callback) { + if (this.state !== 'RETRY') { + callback(false); + return; + } + if (this.attempts >= this.maxAttempts) { + callback(false); + return; + } + let retryDelayMs; + if (pushback === null) { + retryDelayMs = this.getNextRetryBackoffMs(); + } + else if (pushback < 0) { + this.state = 'TRANSPARENT_ONLY'; + callback(false); + return; + } + else { + retryDelayMs = pushback; + this.nextRetryBackoffSec = this.initialRetryBackoffSec; + } + setTimeout(() => { + var _a, _b; + if (this.state !== 'RETRY') { + callback(false); + return; + } + if ((_b = (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.canRetryCall()) !== null && _b !== void 0 ? _b : true) { + callback(true); + this.attempts += 1; + this.startNewAttempt(); + } + else { + this.trace('Retry attempt denied by throttling policy'); + callback(false); + } + }, retryDelayMs); + } + countActiveCalls() { + let count = 0; + for (const call of this.underlyingCalls) { + if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE') { + count += 1; + } + } + return count; + } + handleProcessedStatus(status, callIndex, pushback) { + var _a, _b, _c; + switch (this.state) { + case 'COMMITTED': + case 'NO_RETRY': + case 'TRANSPARENT_ONLY': + this.commitCall(callIndex); + this.reportStatus(status); + break; + case 'HEDGING': + if (this.isStatusCodeInList((_a = this.callConfig.methodConfig.hedgingPolicy.nonFatalStatusCodes) !== null && _a !== void 0 ? _a : [], status.code)) { + (_b = this.retryThrottler) === null || _b === void 0 ? void 0 : _b.addCallFailed(); + let delayMs; + if (pushback === null) { + delayMs = 0; + } + else if (pushback < 0) { + this.state = 'TRANSPARENT_ONLY'; + this.commitCall(callIndex); + this.reportStatus(status); + return; + } + else { + delayMs = pushback; + } + setTimeout(() => { + this.maybeStartHedgingAttempt(); + // If after trying to start a call there are no active calls, this was the last one + if (this.countActiveCalls() === 0) { + this.commitCall(callIndex); + this.reportStatus(status); + } + }, delayMs); + } + else { + this.commitCall(callIndex); + this.reportStatus(status); + } + break; + case 'RETRY': + if (this.isStatusCodeInList(this.callConfig.methodConfig.retryPolicy.retryableStatusCodes, status.code)) { + (_c = this.retryThrottler) === null || _c === void 0 ? void 0 : _c.addCallFailed(); + this.maybeRetryCall(pushback, retried => { + if (!retried) { + this.commitCall(callIndex); + this.reportStatus(status); + } + }); + } + else { + this.commitCall(callIndex); + this.reportStatus(status); + } + break; + } + } + getPushback(metadata) { + const mdValue = metadata.get('grpc-retry-pushback-ms'); + if (mdValue.length === 0) { + return null; + } + try { + return parseInt(mdValue[0]); + } + catch (e) { + return -1; + } + } + handleChildStatus(status, callIndex) { + var _a; + if (this.underlyingCalls[callIndex].state === 'COMPLETED') { + return; + } + this.trace('state=' + + this.state + + ' handling status with progress ' + + status.progress + + ' from child [' + + this.underlyingCalls[callIndex].call.getCallNumber() + + '] in state ' + + this.underlyingCalls[callIndex].state); + this.underlyingCalls[callIndex].state = 'COMPLETED'; + if (status.code === constants_1.Status.OK) { + (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.addCallSucceeded(); + this.commitCall(callIndex); + this.reportStatus(status); + return; + } + if (this.state === 'NO_RETRY') { + this.commitCall(callIndex); + this.reportStatus(status); + return; + } + if (this.state === 'COMMITTED') { + this.reportStatus(status); + return; + } + const pushback = this.getPushback(status.metadata); + switch (status.progress) { + case 'NOT_STARTED': + // RPC never leaves the client, always safe to retry + this.startNewAttempt(); + break; + case 'REFUSED': + // RPC reaches the server library, but not the server application logic + if (this.transparentRetryUsed) { + this.handleProcessedStatus(status, callIndex, pushback); + } + else { + this.transparentRetryUsed = true; + this.startNewAttempt(); + } + break; + case 'DROP': + this.commitCall(callIndex); + this.reportStatus(status); + break; + case 'PROCESSED': + this.handleProcessedStatus(status, callIndex, pushback); + break; + } + } + maybeStartHedgingAttempt() { + if (this.state !== 'HEDGING') { + return; + } + if (!this.callConfig.methodConfig.hedgingPolicy) { + return; + } + if (this.attempts >= this.maxAttempts) { + return; + } + this.attempts += 1; + this.startNewAttempt(); + this.maybeStartHedgingTimer(); + } + maybeStartHedgingTimer() { + var _a, _b, _c; + if (this.hedgingTimer) { + clearTimeout(this.hedgingTimer); + } + if (this.state !== 'HEDGING') { + return; + } + if (!this.callConfig.methodConfig.hedgingPolicy) { + return; + } + const hedgingPolicy = this.callConfig.methodConfig.hedgingPolicy; + if (this.attempts >= this.maxAttempts) { + return; + } + const hedgingDelayString = (_a = hedgingPolicy.hedgingDelay) !== null && _a !== void 0 ? _a : '0s'; + const hedgingDelaySec = Number(hedgingDelayString.substring(0, hedgingDelayString.length - 1)); + this.hedgingTimer = setTimeout(() => { + this.maybeStartHedgingAttempt(); + }, hedgingDelaySec * 1000); + (_c = (_b = this.hedgingTimer).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + } + startNewAttempt() { + const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline); + this.trace('Created child call [' + + child.getCallNumber() + + '] for attempt ' + + this.attempts); + const index = this.underlyingCalls.length; + this.underlyingCalls.push({ + state: 'ACTIVE', + call: child, + nextMessageToSend: 0, + startTime: new Date(), + }); + const previousAttempts = this.attempts - 1; + const initialMetadata = this.initialMetadata.clone(); + if (previousAttempts > 0) { + initialMetadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); + } + let receivedMetadata = false; + child.start(initialMetadata, { + onReceiveMetadata: metadata => { + this.trace('Received metadata from child [' + child.getCallNumber() + ']'); + this.commitCall(index); + receivedMetadata = true; + if (previousAttempts > 0) { + metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); + } + if (this.underlyingCalls[index].state === 'ACTIVE') { + this.listener.onReceiveMetadata(metadata); + } + }, + onReceiveMessage: message => { + this.trace('Received message from child [' + child.getCallNumber() + ']'); + this.commitCall(index); + if (this.underlyingCalls[index].state === 'ACTIVE') { + this.listener.onReceiveMessage(message); + } + }, + onReceiveStatus: status => { + this.trace('Received status from child [' + child.getCallNumber() + ']'); + if (!receivedMetadata && previousAttempts > 0) { + status.metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); + } + this.handleChildStatus(status, index); + }, + }); + this.sendNextChildMessage(index); + if (this.readStarted) { + child.startRead(); + } + } + start(metadata, listener) { + this.trace('start called'); + this.listener = listener; + this.initialMetadata = metadata; + this.attempts += 1; + this.startNewAttempt(); + this.maybeStartHedgingTimer(); + } + handleChildWriteCompleted(childIndex, messageIndex) { + var _a, _b; + (_b = (_a = this.getBufferEntry(messageIndex)).callback) === null || _b === void 0 ? void 0 : _b.call(_a); + this.clearSentMessages(); + const childCall = this.underlyingCalls[childIndex]; + childCall.nextMessageToSend += 1; + this.sendNextChildMessage(childIndex); + } + sendNextChildMessage(childIndex) { + const childCall = this.underlyingCalls[childIndex]; + if (childCall.state === 'COMPLETED') { + return; + } + const messageIndex = childCall.nextMessageToSend; + if (this.getBufferEntry(messageIndex)) { + const bufferEntry = this.getBufferEntry(messageIndex); + switch (bufferEntry.entryType) { + case 'MESSAGE': + childCall.call.sendMessageWithContext({ + callback: error => { + // Ignore error + this.handleChildWriteCompleted(childIndex, messageIndex); + }, + }, bufferEntry.message.message); + // Optimization: if the next entry is HALF_CLOSE, send it immediately + // without waiting for the message callback. This is safe because the message + // has already been passed to the underlying transport. + const nextEntry = this.getBufferEntry(messageIndex + 1); + if (nextEntry.entryType === 'HALF_CLOSE') { + this.trace('Sending halfClose immediately after message to child [' + + childCall.call.getCallNumber() + + '] - optimizing for unary/final message'); + childCall.nextMessageToSend += 1; + childCall.call.halfClose(); + } + break; + case 'HALF_CLOSE': + childCall.nextMessageToSend += 1; + childCall.call.halfClose(); + break; + case 'FREED': + // Should not be possible + break; + } + } + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + const writeObj = { + message, + flags: context.flags, + }; + const messageIndex = this.getNextBufferIndex(); + const bufferEntry = { + entryType: 'MESSAGE', + message: writeObj, + allocated: this.bufferTracker.allocate(message.length, this.callNumber), + }; + this.writeBuffer.push(bufferEntry); + if (bufferEntry.allocated) { + // Run this in next tick to avoid suspending the current execution context + // otherwise it might cause half closing the call before sending message + process.nextTick(() => { + var _a; + (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); + }); + for (const [callIndex, call] of this.underlyingCalls.entries()) { + if (call.state === 'ACTIVE' && + call.nextMessageToSend === messageIndex) { + call.call.sendMessageWithContext({ + callback: error => { + // Ignore error + this.handleChildWriteCompleted(callIndex, messageIndex); + }, + }, message); + } + } + } + else { + this.commitCallWithMostMessages(); + // commitCallWithMostMessages can fail if we are between ping attempts + if (this.committedCallIndex === null) { + return; + } + const call = this.underlyingCalls[this.committedCallIndex]; + bufferEntry.callback = context.callback; + if (call.state === 'ACTIVE' && call.nextMessageToSend === messageIndex) { + call.call.sendMessageWithContext({ + callback: error => { + // Ignore error + this.handleChildWriteCompleted(this.committedCallIndex, messageIndex); + }, + }, message); + } + } + } + startRead() { + this.trace('startRead called'); + this.readStarted = true; + for (const underlyingCall of this.underlyingCalls) { + if ((underlyingCall === null || underlyingCall === void 0 ? void 0 : underlyingCall.state) === 'ACTIVE') { + underlyingCall.call.startRead(); + } + } + } + halfClose() { + this.trace('halfClose called'); + const halfCloseIndex = this.getNextBufferIndex(); + this.writeBuffer.push({ + entryType: 'HALF_CLOSE', + allocated: false, + }); + for (const call of this.underlyingCalls) { + if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE') { + // Send halfClose to call when either: + // - nextMessageToSend === halfCloseIndex - 1: last message sent, callback pending (optimization) + // - nextMessageToSend === halfCloseIndex: all messages sent and acknowledged + if (call.nextMessageToSend === halfCloseIndex + || call.nextMessageToSend === halfCloseIndex - 1) { + this.trace('Sending halfClose immediately to child [' + + call.call.getCallNumber() + + '] - all messages already sent'); + call.nextMessageToSend += 1; + call.call.halfClose(); + } + // Otherwise, halfClose will be sent by sendNextChildMessage when message callbacks complete + } + } + } + setCredentials(newCredentials) { + throw new Error('Method not implemented.'); + } + getMethod() { + return this.methodName; + } + getHost() { + return this.host; + } + getAuthContext() { + if (this.committedCallIndex !== null) { + return this.underlyingCalls[this.committedCallIndex].call.getAuthContext(); + } + else { + return null; + } + } +} +exports.RetryingCall = RetryingCall; +//# sourceMappingURL=retrying-call.js.map + +/***/ }), + +/***/ 65744: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServerDuplexStreamImpl = exports.ServerWritableStreamImpl = exports.ServerReadableStreamImpl = exports.ServerUnaryCallImpl = void 0; +exports.serverErrorToStatus = serverErrorToStatus; +const events_1 = __nccwpck_require__(24434); +const stream_1 = __nccwpck_require__(2203); +const constants_1 = __nccwpck_require__(84623); +const metadata_1 = __nccwpck_require__(89173); +function serverErrorToStatus(error, overrideTrailers) { + var _a; + const status = { + code: constants_1.Status.UNKNOWN, + details: 'message' in error ? error.message : 'Unknown Error', + metadata: (_a = overrideTrailers !== null && overrideTrailers !== void 0 ? overrideTrailers : error.metadata) !== null && _a !== void 0 ? _a : null, + }; + if ('code' in error && + typeof error.code === 'number' && + Number.isInteger(error.code)) { + status.code = error.code; + if ('details' in error && typeof error.details === 'string') { + status.details = error.details; + } + } + return status; +} +class ServerUnaryCallImpl extends events_1.EventEmitter { + constructor(path, call, metadata, request) { + super(); + this.path = path; + this.call = call; + this.metadata = metadata; + this.request = request; + this.cancelled = false; + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } +} +exports.ServerUnaryCallImpl = ServerUnaryCallImpl; +class ServerReadableStreamImpl extends stream_1.Readable { + constructor(path, call, metadata) { + super({ objectMode: true }); + this.path = path; + this.call = call; + this.metadata = metadata; + this.cancelled = false; + } + _read(size) { + this.call.startRead(); + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } +} +exports.ServerReadableStreamImpl = ServerReadableStreamImpl; +class ServerWritableStreamImpl extends stream_1.Writable { + constructor(path, call, metadata, request) { + super({ objectMode: true }); + this.path = path; + this.call = call; + this.metadata = metadata; + this.request = request; + this.pendingStatus = { + code: constants_1.Status.OK, + details: 'OK', + }; + this.cancelled = false; + this.trailingMetadata = new metadata_1.Metadata(); + this.on('error', err => { + this.pendingStatus = serverErrorToStatus(err); + this.end(); + }); + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } + _write(chunk, encoding, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + callback) { + this.call.sendMessage(chunk, callback); + } + _final(callback) { + var _a; + callback(null); + this.call.sendStatus(Object.assign(Object.assign({}, this.pendingStatus), { metadata: (_a = this.pendingStatus.metadata) !== null && _a !== void 0 ? _a : this.trailingMetadata })); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + end(metadata) { + if (metadata) { + this.trailingMetadata = metadata; + } + return super.end(); + } +} +exports.ServerWritableStreamImpl = ServerWritableStreamImpl; +class ServerDuplexStreamImpl extends stream_1.Duplex { + constructor(path, call, metadata) { + super({ objectMode: true }); + this.path = path; + this.call = call; + this.metadata = metadata; + this.pendingStatus = { + code: constants_1.Status.OK, + details: 'OK', + }; + this.cancelled = false; + this.trailingMetadata = new metadata_1.Metadata(); + this.on('error', err => { + this.pendingStatus = serverErrorToStatus(err); + this.end(); + }); + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } + _read(size) { + this.call.startRead(); + } + _write(chunk, encoding, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + callback) { + this.call.sendMessage(chunk, callback); + } + _final(callback) { + var _a; + callback(null); + this.call.sendStatus(Object.assign(Object.assign({}, this.pendingStatus), { metadata: (_a = this.pendingStatus.metadata) !== null && _a !== void 0 ? _a : this.trailingMetadata })); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + end(metadata) { + if (metadata) { + this.trailingMetadata = metadata; + } + return super.end(); + } +} +exports.ServerDuplexStreamImpl = ServerDuplexStreamImpl; +//# sourceMappingURL=server-call.js.map + +/***/ }), + +/***/ 2272: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServerCredentials = void 0; +exports.createCertificateProviderServerCredentials = createCertificateProviderServerCredentials; +exports.createServerCredentialsWithInterceptors = createServerCredentialsWithInterceptors; +const tls_helpers_1 = __nccwpck_require__(99619); +class ServerCredentials { + constructor(serverConstructorOptions, contextOptions) { + this.serverConstructorOptions = serverConstructorOptions; + this.watchers = new Set(); + this.latestContextOptions = null; + this.latestContextOptions = contextOptions !== null && contextOptions !== void 0 ? contextOptions : null; + } + _addWatcher(watcher) { + this.watchers.add(watcher); + } + _removeWatcher(watcher) { + this.watchers.delete(watcher); + } + getWatcherCount() { + return this.watchers.size; + } + updateSecureContextOptions(options) { + this.latestContextOptions = options; + for (const watcher of this.watchers) { + watcher(this.latestContextOptions); + } + } + _isSecure() { + return this.serverConstructorOptions !== null; + } + _getSecureContextOptions() { + return this.latestContextOptions; + } + _getConstructorOptions() { + return this.serverConstructorOptions; + } + _getInterceptors() { + return []; + } + static createInsecure() { + return new InsecureServerCredentials(); + } + static createSsl(rootCerts, keyCertPairs, checkClientCertificate = false) { + var _a; + if (rootCerts !== null && !Buffer.isBuffer(rootCerts)) { + throw new TypeError('rootCerts must be null or a Buffer'); + } + if (!Array.isArray(keyCertPairs)) { + throw new TypeError('keyCertPairs must be an array'); + } + if (typeof checkClientCertificate !== 'boolean') { + throw new TypeError('checkClientCertificate must be a boolean'); + } + const cert = []; + const key = []; + for (let i = 0; i < keyCertPairs.length; i++) { + const pair = keyCertPairs[i]; + if (pair === null || typeof pair !== 'object') { + throw new TypeError(`keyCertPair[${i}] must be an object`); + } + if (!Buffer.isBuffer(pair.private_key)) { + throw new TypeError(`keyCertPair[${i}].private_key must be a Buffer`); + } + if (!Buffer.isBuffer(pair.cert_chain)) { + throw new TypeError(`keyCertPair[${i}].cert_chain must be a Buffer`); + } + cert.push(pair.cert_chain); + key.push(pair.private_key); + } + return new SecureServerCredentials({ + requestCert: checkClientCertificate, + ciphers: tls_helpers_1.CIPHER_SUITES, + }, { + ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined, + cert, + key, + }); + } +} +exports.ServerCredentials = ServerCredentials; +class InsecureServerCredentials extends ServerCredentials { + constructor() { + super(null); + } + _getSettings() { + return null; + } + _equals(other) { + return other instanceof InsecureServerCredentials; + } +} +class SecureServerCredentials extends ServerCredentials { + constructor(constructorOptions, contextOptions) { + super(constructorOptions, contextOptions); + this.options = Object.assign(Object.assign({}, constructorOptions), contextOptions); + } + /** + * Checks equality by checking the options that are actually set by + * createSsl. + * @param other + * @returns + */ + _equals(other) { + if (this === other) { + return true; + } + if (!(other instanceof SecureServerCredentials)) { + return false; + } + // options.ca equality check + if (Buffer.isBuffer(this.options.ca) && Buffer.isBuffer(other.options.ca)) { + if (!this.options.ca.equals(other.options.ca)) { + return false; + } + } + else { + if (this.options.ca !== other.options.ca) { + return false; + } + } + // options.cert equality check + if (Array.isArray(this.options.cert) && Array.isArray(other.options.cert)) { + if (this.options.cert.length !== other.options.cert.length) { + return false; + } + for (let i = 0; i < this.options.cert.length; i++) { + const thisCert = this.options.cert[i]; + const otherCert = other.options.cert[i]; + if (Buffer.isBuffer(thisCert) && Buffer.isBuffer(otherCert)) { + if (!thisCert.equals(otherCert)) { + return false; + } + } + else { + if (thisCert !== otherCert) { + return false; + } + } + } + } + else { + if (this.options.cert !== other.options.cert) { + return false; + } + } + // options.key equality check + if (Array.isArray(this.options.key) && Array.isArray(other.options.key)) { + if (this.options.key.length !== other.options.key.length) { + return false; + } + for (let i = 0; i < this.options.key.length; i++) { + const thisKey = this.options.key[i]; + const otherKey = other.options.key[i]; + if (Buffer.isBuffer(thisKey) && Buffer.isBuffer(otherKey)) { + if (!thisKey.equals(otherKey)) { + return false; + } + } + else { + if (thisKey !== otherKey) { + return false; + } + } + } + } + else { + if (this.options.key !== other.options.key) { + return false; + } + } + // options.requestCert equality check + if (this.options.requestCert !== other.options.requestCert) { + return false; + } + /* ciphers is derived from a value that is constant for the process, so no + * equality check is needed. */ + return true; + } +} +class CertificateProviderServerCredentials extends ServerCredentials { + constructor(identityCertificateProvider, caCertificateProvider, requireClientCertificate) { + super({ + requestCert: caCertificateProvider !== null, + rejectUnauthorized: requireClientCertificate, + ciphers: tls_helpers_1.CIPHER_SUITES + }); + this.identityCertificateProvider = identityCertificateProvider; + this.caCertificateProvider = caCertificateProvider; + this.requireClientCertificate = requireClientCertificate; + this.latestCaUpdate = null; + this.latestIdentityUpdate = null; + this.caCertificateUpdateListener = this.handleCaCertificateUpdate.bind(this); + this.identityCertificateUpdateListener = this.handleIdentityCertitificateUpdate.bind(this); + } + _addWatcher(watcher) { + var _a; + if (this.getWatcherCount() === 0) { + (_a = this.caCertificateProvider) === null || _a === void 0 ? void 0 : _a.addCaCertificateListener(this.caCertificateUpdateListener); + this.identityCertificateProvider.addIdentityCertificateListener(this.identityCertificateUpdateListener); + } + super._addWatcher(watcher); + } + _removeWatcher(watcher) { + var _a; + super._removeWatcher(watcher); + if (this.getWatcherCount() === 0) { + (_a = this.caCertificateProvider) === null || _a === void 0 ? void 0 : _a.removeCaCertificateListener(this.caCertificateUpdateListener); + this.identityCertificateProvider.removeIdentityCertificateListener(this.identityCertificateUpdateListener); + } + } + _equals(other) { + if (this === other) { + return true; + } + if (!(other instanceof CertificateProviderServerCredentials)) { + return false; + } + return (this.caCertificateProvider === other.caCertificateProvider && + this.identityCertificateProvider === other.identityCertificateProvider && + this.requireClientCertificate === other.requireClientCertificate); + } + calculateSecureContextOptions() { + var _a; + if (this.latestIdentityUpdate === null) { + return null; + } + if (this.caCertificateProvider !== null && this.latestCaUpdate === null) { + return null; + } + return { + ca: (_a = this.latestCaUpdate) === null || _a === void 0 ? void 0 : _a.caCertificate, + cert: [this.latestIdentityUpdate.certificate], + key: [this.latestIdentityUpdate.privateKey], + }; + } + finalizeUpdate() { + const secureContextOptions = this.calculateSecureContextOptions(); + this.updateSecureContextOptions(secureContextOptions); + } + handleCaCertificateUpdate(update) { + this.latestCaUpdate = update; + this.finalizeUpdate(); + } + handleIdentityCertitificateUpdate(update) { + this.latestIdentityUpdate = update; + this.finalizeUpdate(); + } +} +function createCertificateProviderServerCredentials(caCertificateProvider, identityCertificateProvider, requireClientCertificate) { + return new CertificateProviderServerCredentials(caCertificateProvider, identityCertificateProvider, requireClientCertificate); +} +class InterceptorServerCredentials extends ServerCredentials { + constructor(childCredentials, interceptors) { + super({}); + this.childCredentials = childCredentials; + this.interceptors = interceptors; + } + _isSecure() { + return this.childCredentials._isSecure(); + } + _equals(other) { + if (!(other instanceof InterceptorServerCredentials)) { + return false; + } + if (!(this.childCredentials._equals(other.childCredentials))) { + return false; + } + if (this.interceptors.length !== other.interceptors.length) { + return false; + } + for (let i = 0; i < this.interceptors.length; i++) { + if (this.interceptors[i] !== other.interceptors[i]) { + return false; + } + } + return true; + } + _getInterceptors() { + return this.interceptors; + } + _addWatcher(watcher) { + this.childCredentials._addWatcher(watcher); + } + _removeWatcher(watcher) { + this.childCredentials._removeWatcher(watcher); + } + _getConstructorOptions() { + return this.childCredentials._getConstructorOptions(); + } + _getSecureContextOptions() { + return this.childCredentials._getSecureContextOptions(); + } +} +function createServerCredentialsWithInterceptors(credentials, interceptors) { + return new InterceptorServerCredentials(credentials, interceptors); +} +//# sourceMappingURL=server-credentials.js.map + +/***/ }), + +/***/ 9520: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseServerInterceptingCall = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = void 0; +exports.isInterceptingServerListener = isInterceptingServerListener; +exports.getServerInterceptingCall = getServerInterceptingCall; +const metadata_1 = __nccwpck_require__(89173); +const constants_1 = __nccwpck_require__(84623); +const http2 = __nccwpck_require__(85675); +const error_1 = __nccwpck_require__(27116); +const zlib = __nccwpck_require__(43106); +const stream_decoder_1 = __nccwpck_require__(78913); +const logging = __nccwpck_require__(26239); +const tls_1 = __nccwpck_require__(64756); +const orca_1 = __nccwpck_require__(845); +const TRACER_NAME = 'server_call'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +class ServerListenerBuilder { + constructor() { + this.metadata = undefined; + this.message = undefined; + this.halfClose = undefined; + this.cancel = undefined; + } + withOnReceiveMetadata(onReceiveMetadata) { + this.metadata = onReceiveMetadata; + return this; + } + withOnReceiveMessage(onReceiveMessage) { + this.message = onReceiveMessage; + return this; + } + withOnReceiveHalfClose(onReceiveHalfClose) { + this.halfClose = onReceiveHalfClose; + return this; + } + withOnCancel(onCancel) { + this.cancel = onCancel; + return this; + } + build() { + return { + onReceiveMetadata: this.metadata, + onReceiveMessage: this.message, + onReceiveHalfClose: this.halfClose, + onCancel: this.cancel, + }; + } +} +exports.ServerListenerBuilder = ServerListenerBuilder; +function isInterceptingServerListener(listener) { + return (listener.onReceiveMetadata !== undefined && + listener.onReceiveMetadata.length === 1); +} +class InterceptingServerListenerImpl { + constructor(listener, nextListener) { + this.listener = listener; + this.nextListener = nextListener; + /** + * Once the call is cancelled, ignore all other events. + */ + this.cancelled = false; + this.processingMetadata = false; + this.hasPendingMessage = false; + this.pendingMessage = null; + this.processingMessage = false; + this.hasPendingHalfClose = false; + } + processPendingMessage() { + if (this.hasPendingMessage) { + this.nextListener.onReceiveMessage(this.pendingMessage); + this.pendingMessage = null; + this.hasPendingMessage = false; + } + } + processPendingHalfClose() { + if (this.hasPendingHalfClose) { + this.nextListener.onReceiveHalfClose(); + this.hasPendingHalfClose = false; + } + } + onReceiveMetadata(metadata) { + if (this.cancelled) { + return; + } + this.processingMetadata = true; + this.listener.onReceiveMetadata(metadata, interceptedMetadata => { + this.processingMetadata = false; + if (this.cancelled) { + return; + } + this.nextListener.onReceiveMetadata(interceptedMetadata); + this.processPendingMessage(); + this.processPendingHalfClose(); + }); + } + onReceiveMessage(message) { + if (this.cancelled) { + return; + } + this.processingMessage = true; + this.listener.onReceiveMessage(message, msg => { + this.processingMessage = false; + if (this.cancelled) { + return; + } + if (this.processingMetadata) { + this.pendingMessage = msg; + this.hasPendingMessage = true; + } + else { + this.nextListener.onReceiveMessage(msg); + this.processPendingHalfClose(); + } + }); + } + onReceiveHalfClose() { + if (this.cancelled) { + return; + } + this.listener.onReceiveHalfClose(() => { + if (this.cancelled) { + return; + } + if (this.processingMetadata || this.processingMessage) { + this.hasPendingHalfClose = true; + } + else { + this.nextListener.onReceiveHalfClose(); + } + }); + } + onCancel() { + this.cancelled = true; + this.listener.onCancel(); + this.nextListener.onCancel(); + } +} +class ResponderBuilder { + constructor() { + this.start = undefined; + this.metadata = undefined; + this.message = undefined; + this.status = undefined; + } + withStart(start) { + this.start = start; + return this; + } + withSendMetadata(sendMetadata) { + this.metadata = sendMetadata; + return this; + } + withSendMessage(sendMessage) { + this.message = sendMessage; + return this; + } + withSendStatus(sendStatus) { + this.status = sendStatus; + return this; + } + build() { + return { + start: this.start, + sendMetadata: this.metadata, + sendMessage: this.message, + sendStatus: this.status, + }; + } +} +exports.ResponderBuilder = ResponderBuilder; +const defaultServerListener = { + onReceiveMetadata: (metadata, next) => { + next(metadata); + }, + onReceiveMessage: (message, next) => { + next(message); + }, + onReceiveHalfClose: next => { + next(); + }, + onCancel: () => { }, +}; +const defaultResponder = { + start: next => { + next(); + }, + sendMetadata: (metadata, next) => { + next(metadata); + }, + sendMessage: (message, next) => { + next(message); + }, + sendStatus: (status, next) => { + next(status); + }, +}; +class ServerInterceptingCall { + constructor(nextCall, responder) { + var _a, _b, _c, _d; + this.nextCall = nextCall; + this.processingMetadata = false; + this.sentMetadata = false; + this.processingMessage = false; + this.pendingMessage = null; + this.pendingMessageCallback = null; + this.pendingStatus = null; + this.responder = { + start: (_a = responder === null || responder === void 0 ? void 0 : responder.start) !== null && _a !== void 0 ? _a : defaultResponder.start, + sendMetadata: (_b = responder === null || responder === void 0 ? void 0 : responder.sendMetadata) !== null && _b !== void 0 ? _b : defaultResponder.sendMetadata, + sendMessage: (_c = responder === null || responder === void 0 ? void 0 : responder.sendMessage) !== null && _c !== void 0 ? _c : defaultResponder.sendMessage, + sendStatus: (_d = responder === null || responder === void 0 ? void 0 : responder.sendStatus) !== null && _d !== void 0 ? _d : defaultResponder.sendStatus, + }; + } + processPendingMessage() { + if (this.pendingMessageCallback) { + this.nextCall.sendMessage(this.pendingMessage, this.pendingMessageCallback); + this.pendingMessage = null; + this.pendingMessageCallback = null; + } + } + processPendingStatus() { + if (this.pendingStatus) { + this.nextCall.sendStatus(this.pendingStatus); + this.pendingStatus = null; + } + } + start(listener) { + this.responder.start(interceptedListener => { + var _a, _b, _c, _d; + const fullInterceptedListener = { + onReceiveMetadata: (_a = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultServerListener.onReceiveMetadata, + onReceiveMessage: (_b = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultServerListener.onReceiveMessage, + onReceiveHalfClose: (_c = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveHalfClose) !== null && _c !== void 0 ? _c : defaultServerListener.onReceiveHalfClose, + onCancel: (_d = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onCancel) !== null && _d !== void 0 ? _d : defaultServerListener.onCancel, + }; + const finalInterceptingListener = new InterceptingServerListenerImpl(fullInterceptedListener, listener); + this.nextCall.start(finalInterceptingListener); + }); + } + sendMetadata(metadata) { + this.processingMetadata = true; + this.sentMetadata = true; + this.responder.sendMetadata(metadata, interceptedMetadata => { + this.processingMetadata = false; + this.nextCall.sendMetadata(interceptedMetadata); + this.processPendingMessage(); + this.processPendingStatus(); + }); + } + sendMessage(message, callback) { + this.processingMessage = true; + if (!this.sentMetadata) { + this.sendMetadata(new metadata_1.Metadata()); + } + this.responder.sendMessage(message, interceptedMessage => { + this.processingMessage = false; + if (this.processingMetadata) { + this.pendingMessage = interceptedMessage; + this.pendingMessageCallback = callback; + } + else { + this.nextCall.sendMessage(interceptedMessage, callback); + } + }); + } + sendStatus(status) { + this.responder.sendStatus(status, interceptedStatus => { + if (this.processingMetadata || this.processingMessage) { + this.pendingStatus = interceptedStatus; + } + else { + this.nextCall.sendStatus(interceptedStatus); + } + }); + } + startRead() { + this.nextCall.startRead(); + } + getPeer() { + return this.nextCall.getPeer(); + } + getDeadline() { + return this.nextCall.getDeadline(); + } + getHost() { + return this.nextCall.getHost(); + } + getAuthContext() { + return this.nextCall.getAuthContext(); + } + getConnectionInfo() { + return this.nextCall.getConnectionInfo(); + } + getMetricsRecorder() { + return this.nextCall.getMetricsRecorder(); + } +} +exports.ServerInterceptingCall = ServerInterceptingCall; +const GRPC_ACCEPT_ENCODING_HEADER = 'grpc-accept-encoding'; +const GRPC_ENCODING_HEADER = 'grpc-encoding'; +const GRPC_MESSAGE_HEADER = 'grpc-message'; +const GRPC_STATUS_HEADER = 'grpc-status'; +const GRPC_TIMEOUT_HEADER = 'grpc-timeout'; +const DEADLINE_REGEX = /(\d{1,8})\s*([HMSmun])/; +const deadlineUnitsToMs = { + H: 3600000, + M: 60000, + S: 1000, + m: 1, + u: 0.001, + n: 0.000001, +}; +const defaultCompressionHeaders = { + // TODO(cjihrig): Remove these encoding headers from the default response + // once compression is integrated. + [GRPC_ACCEPT_ENCODING_HEADER]: 'identity,deflate,gzip', + [GRPC_ENCODING_HEADER]: 'identity', +}; +const defaultResponseHeaders = { + [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_OK, + [http2.constants.HTTP2_HEADER_CONTENT_TYPE]: 'application/grpc+proto', +}; +const defaultResponseOptions = { + waitForTrailers: true, +}; +class BaseServerInterceptingCall { + constructor(stream, headers, callEventTracker, handler, options) { + var _a, _b; + this.stream = stream; + this.callEventTracker = callEventTracker; + this.handler = handler; + this.listener = null; + this.deadlineTimer = null; + this.deadline = Infinity; + this.maxSendMessageSize = constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH; + this.maxReceiveMessageSize = constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; + this.cancelled = false; + this.metadataSent = false; + this.wantTrailers = false; + this.cancelNotified = false; + this.incomingEncoding = 'identity'; + this.readQueue = []; + this.isReadPending = false; + this.receivedHalfClose = false; + this.streamEnded = false; + this.metricsRecorder = new orca_1.PerRequestMetricRecorder(); + this.stream.once('error', (err) => { + /* We need an error handler to avoid uncaught error event exceptions, but + * there is nothing we can reasonably do here. Any error event should + * have a corresponding close event, which handles emitting the cancelled + * event. And the stream is now in a bad state, so we can't reasonably + * expect to be able to send an error over it. */ + }); + this.stream.once('close', () => { + var _a; + trace('Request to method ' + + ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + + ' stream closed with rstCode ' + + this.stream.rstCode); + if (this.callEventTracker && !this.streamEnded) { + this.streamEnded = true; + this.callEventTracker.onStreamEnd(false); + this.callEventTracker.onCallEnd({ + code: constants_1.Status.CANCELLED, + details: 'Stream closed before sending status', + metadata: null, + }); + } + this.notifyOnCancel(); + }); + this.stream.on('data', (data) => { + this.handleDataFrame(data); + }); + this.stream.pause(); + this.stream.on('end', () => { + this.handleEndEvent(); + }); + if ('grpc.max_send_message_length' in options) { + this.maxSendMessageSize = options['grpc.max_send_message_length']; + } + if ('grpc.max_receive_message_length' in options) { + this.maxReceiveMessageSize = options['grpc.max_receive_message_length']; + } + this.host = (_a = headers[':authority']) !== null && _a !== void 0 ? _a : headers.host; + this.decoder = new stream_decoder_1.StreamDecoder(this.maxReceiveMessageSize); + const metadata = metadata_1.Metadata.fromHttp2Headers(headers); + if (logging.isTracerEnabled(TRACER_NAME)) { + trace('Request to ' + + this.handler.path + + ' received headers ' + + JSON.stringify(metadata.toJSON())); + } + const timeoutHeader = metadata.get(GRPC_TIMEOUT_HEADER); + if (timeoutHeader.length > 0) { + this.handleTimeoutHeader(timeoutHeader[0]); + } + const encodingHeader = metadata.get(GRPC_ENCODING_HEADER); + if (encodingHeader.length > 0) { + this.incomingEncoding = encodingHeader[0]; + } + // Remove several headers that should not be propagated to the application + metadata.remove(GRPC_TIMEOUT_HEADER); + metadata.remove(GRPC_ENCODING_HEADER); + metadata.remove(GRPC_ACCEPT_ENCODING_HEADER); + metadata.remove(http2.constants.HTTP2_HEADER_ACCEPT_ENCODING); + metadata.remove(http2.constants.HTTP2_HEADER_TE); + metadata.remove(http2.constants.HTTP2_HEADER_CONTENT_TYPE); + this.metadata = metadata; + const socket = (_b = stream.session) === null || _b === void 0 ? void 0 : _b.socket; + this.connectionInfo = { + localAddress: socket === null || socket === void 0 ? void 0 : socket.localAddress, + localPort: socket === null || socket === void 0 ? void 0 : socket.localPort, + remoteAddress: socket === null || socket === void 0 ? void 0 : socket.remoteAddress, + remotePort: socket === null || socket === void 0 ? void 0 : socket.remotePort + }; + this.shouldSendMetrics = !!options['grpc.server_call_metric_recording']; + } + handleTimeoutHeader(timeoutHeader) { + const match = timeoutHeader.toString().match(DEADLINE_REGEX); + if (match === null) { + const status = { + code: constants_1.Status.INTERNAL, + details: `Invalid ${GRPC_TIMEOUT_HEADER} value "${timeoutHeader}"`, + metadata: null, + }; + // Wait for the constructor to complete before sending the error. + process.nextTick(() => { + this.sendStatus(status); + }); + return; + } + const timeout = (+match[1] * deadlineUnitsToMs[match[2]]) | 0; + const now = new Date(); + this.deadline = now.setMilliseconds(now.getMilliseconds() + timeout); + this.deadlineTimer = setTimeout(() => { + const status = { + code: constants_1.Status.DEADLINE_EXCEEDED, + details: 'Deadline exceeded', + metadata: null, + }; + this.sendStatus(status); + }, timeout); + } + checkCancelled() { + /* In some cases the stream can become destroyed before the close event + * fires. That creates a race condition that this check works around */ + if (!this.cancelled && (this.stream.destroyed || this.stream.closed)) { + this.notifyOnCancel(); + this.cancelled = true; + } + return this.cancelled; + } + notifyOnCancel() { + if (this.cancelNotified) { + return; + } + this.cancelNotified = true; + this.cancelled = true; + process.nextTick(() => { + var _a; + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onCancel(); + }); + if (this.deadlineTimer) { + clearTimeout(this.deadlineTimer); + } + // Flush incoming data frames + this.stream.resume(); + } + /** + * A server handler can start sending messages without explicitly sending + * metadata. In that case, we need to send headers before sending any + * messages. This function does that if necessary. + */ + maybeSendMetadata() { + if (!this.metadataSent) { + this.sendMetadata(new metadata_1.Metadata()); + } + } + /** + * Serialize a message to a length-delimited byte string. + * @param value + * @returns + */ + serializeMessage(value) { + const messageBuffer = this.handler.serialize(value); + const byteLength = messageBuffer.byteLength; + const output = Buffer.allocUnsafe(byteLength + 5); + /* Note: response compression is currently not supported, so this + * compressed bit is always 0. */ + output.writeUInt8(0, 0); + output.writeUInt32BE(byteLength, 1); + messageBuffer.copy(output, 5); + return output; + } + decompressMessage(message, encoding) { + const messageContents = message.subarray(5); + if (encoding === 'identity') { + return messageContents; + } + else if (encoding === 'deflate' || encoding === 'gzip') { + let decompresser; + if (encoding === 'deflate') { + decompresser = zlib.createInflate(); + } + else { + decompresser = zlib.createGunzip(); + } + return new Promise((resolve, reject) => { + let totalLength = 0; + const messageParts = []; + decompresser.on('data', (chunk) => { + messageParts.push(chunk); + totalLength += chunk.byteLength; + if (this.maxReceiveMessageSize !== -1 && totalLength > this.maxReceiveMessageSize) { + decompresser.destroy(); + reject({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Received message that decompresses to a size larger than ${this.maxReceiveMessageSize}` + }); + } + }); + decompresser.on('end', () => { + resolve(Buffer.concat(messageParts)); + }); + decompresser.write(messageContents); + decompresser.end(); + }); + } + else { + return Promise.reject({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received message compressed with unsupported encoding "${encoding}"`, + }); + } + } + async decompressAndMaybePush(queueEntry) { + if (queueEntry.type !== 'COMPRESSED') { + throw new Error(`Invalid queue entry type: ${queueEntry.type}`); + } + const compressed = queueEntry.compressedMessage.readUInt8(0) === 1; + const compressedMessageEncoding = compressed + ? this.incomingEncoding + : 'identity'; + let decompressedMessage; + try { + decompressedMessage = await this.decompressMessage(queueEntry.compressedMessage, compressedMessageEncoding); + } + catch (err) { + this.sendStatus(err); + return; + } + try { + queueEntry.parsedMessage = this.handler.deserialize(decompressedMessage); + } + catch (err) { + this.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Error deserializing request: ${err.message}`, + }); + return; + } + queueEntry.type = 'READABLE'; + this.maybePushNextMessage(); + } + maybePushNextMessage() { + if (this.listener && + this.isReadPending && + this.readQueue.length > 0 && + this.readQueue[0].type !== 'COMPRESSED') { + this.isReadPending = false; + const nextQueueEntry = this.readQueue.shift(); + if (nextQueueEntry.type === 'READABLE') { + this.listener.onReceiveMessage(nextQueueEntry.parsedMessage); + } + else { + // nextQueueEntry.type === 'HALF_CLOSE' + this.listener.onReceiveHalfClose(); + } + } + } + handleDataFrame(data) { + var _a; + if (this.checkCancelled()) { + return; + } + trace('Request to ' + + this.handler.path + + ' received data frame of size ' + + data.length); + let rawMessages; + try { + rawMessages = this.decoder.write(data); + } + catch (e) { + this.sendStatus({ code: constants_1.Status.RESOURCE_EXHAUSTED, details: e.message }); + return; + } + for (const messageBytes of rawMessages) { + this.stream.pause(); + const queueEntry = { + type: 'COMPRESSED', + compressedMessage: messageBytes, + parsedMessage: null, + }; + this.readQueue.push(queueEntry); + this.decompressAndMaybePush(queueEntry); + (_a = this.callEventTracker) === null || _a === void 0 ? void 0 : _a.addMessageReceived(); + } + } + handleEndEvent() { + this.readQueue.push({ + type: 'HALF_CLOSE', + compressedMessage: null, + parsedMessage: null, + }); + this.receivedHalfClose = true; + this.maybePushNextMessage(); + } + start(listener) { + trace('Request to ' + this.handler.path + ' start called'); + if (this.checkCancelled()) { + return; + } + this.listener = listener; + listener.onReceiveMetadata(this.metadata); + } + sendMetadata(metadata) { + if (this.checkCancelled()) { + return; + } + if (this.metadataSent) { + return; + } + this.metadataSent = true; + const custom = metadata ? metadata.toHttp2Headers() : null; + const headers = Object.assign(Object.assign(Object.assign({}, defaultResponseHeaders), defaultCompressionHeaders), custom); + this.stream.respond(headers, defaultResponseOptions); + } + sendMessage(message, callback) { + if (this.checkCancelled()) { + return; + } + let response; + try { + response = this.serializeMessage(message); + } + catch (e) { + this.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Error serializing response: ${(0, error_1.getErrorMessage)(e)}`, + metadata: null, + }); + return; + } + if (this.maxSendMessageSize !== -1 && + response.length - 5 > this.maxSendMessageSize) { + this.sendStatus({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Sent message larger than max (${response.length} vs. ${this.maxSendMessageSize})`, + metadata: null, + }); + return; + } + this.maybeSendMetadata(); + trace('Request to ' + + this.handler.path + + ' sent data frame of size ' + + response.length); + this.stream.write(response, error => { + var _a; + if (error) { + this.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Error writing message: ${(0, error_1.getErrorMessage)(error)}`, + metadata: null, + }); + return; + } + (_a = this.callEventTracker) === null || _a === void 0 ? void 0 : _a.addMessageSent(); + callback(); + }); + } + sendStatus(status) { + var _a, _b, _c; + if (this.checkCancelled()) { + return; + } + trace('Request to method ' + + ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + + ' ended with status code: ' + + constants_1.Status[status.code] + + ' details: ' + + status.details); + const statusMetadata = (_c = (_b = status.metadata) === null || _b === void 0 ? void 0 : _b.clone()) !== null && _c !== void 0 ? _c : new metadata_1.Metadata(); + if (this.shouldSendMetrics) { + statusMetadata.set(orca_1.GRPC_METRICS_HEADER, this.metricsRecorder.serialize()); + } + if (this.metadataSent) { + if (!this.wantTrailers) { + this.wantTrailers = true; + this.stream.once('wantTrailers', () => { + if (this.callEventTracker && !this.streamEnded) { + this.streamEnded = true; + this.callEventTracker.onStreamEnd(true); + this.callEventTracker.onCallEnd(status); + } + const trailersToSend = Object.assign({ [GRPC_STATUS_HEADER]: status.code, [GRPC_MESSAGE_HEADER]: encodeURI(status.details) }, statusMetadata.toHttp2Headers()); + this.stream.sendTrailers(trailersToSend); + this.notifyOnCancel(); + }); + this.stream.end(); + } + else { + this.notifyOnCancel(); + } + } + else { + if (this.callEventTracker && !this.streamEnded) { + this.streamEnded = true; + this.callEventTracker.onStreamEnd(true); + this.callEventTracker.onCallEnd(status); + } + // Trailers-only response + const trailersToSend = Object.assign(Object.assign({ [GRPC_STATUS_HEADER]: status.code, [GRPC_MESSAGE_HEADER]: encodeURI(status.details) }, defaultResponseHeaders), statusMetadata.toHttp2Headers()); + this.stream.respond(trailersToSend, { endStream: true }); + this.notifyOnCancel(); + } + } + startRead() { + trace('Request to ' + this.handler.path + ' startRead called'); + if (this.checkCancelled()) { + return; + } + this.isReadPending = true; + if (this.readQueue.length === 0) { + if (!this.receivedHalfClose) { + this.stream.resume(); + } + } + else { + this.maybePushNextMessage(); + } + } + getPeer() { + var _a; + const socket = (_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket; + if (socket === null || socket === void 0 ? void 0 : socket.remoteAddress) { + if (socket.remotePort) { + return `${socket.remoteAddress}:${socket.remotePort}`; + } + else { + return socket.remoteAddress; + } + } + else { + return 'unknown'; + } + } + getDeadline() { + return this.deadline; + } + getHost() { + return this.host; + } + getAuthContext() { + var _a; + if (((_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket) instanceof tls_1.TLSSocket) { + const peerCertificate = this.stream.session.socket.getPeerCertificate(); + return { + transportSecurityType: 'ssl', + sslPeerCertificate: peerCertificate.raw ? peerCertificate : undefined + }; + } + else { + return {}; + } + } + getConnectionInfo() { + return this.connectionInfo; + } + getMetricsRecorder() { + return this.metricsRecorder; + } +} +exports.BaseServerInterceptingCall = BaseServerInterceptingCall; +function getServerInterceptingCall(interceptors, stream, headers, callEventTracker, handler, options) { + const methodDefinition = { + path: handler.path, + requestStream: handler.type === 'clientStream' || handler.type === 'bidi', + responseStream: handler.type === 'serverStream' || handler.type === 'bidi', + requestDeserialize: handler.deserialize, + responseSerialize: handler.serialize, + }; + const baseCall = new BaseServerInterceptingCall(stream, headers, callEventTracker, handler, options); + return interceptors.reduce((call, interceptor) => { + return interceptor(methodDefinition, call); + }, baseCall); +} +//# sourceMappingURL=server-interceptors.js.map + +/***/ }), + +/***/ 27323: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Server = void 0; +const http2 = __nccwpck_require__(85675); +const util = __nccwpck_require__(39023); +const constants_1 = __nccwpck_require__(84623); +const server_call_1 = __nccwpck_require__(65744); +const server_credentials_1 = __nccwpck_require__(2272); +const resolver_1 = __nccwpck_require__(30842); +const logging = __nccwpck_require__(26239); +const subchannel_address_1 = __nccwpck_require__(95080); +const uri_parser_1 = __nccwpck_require__(70210); +const channelz_1 = __nccwpck_require__(50379); +const server_interceptors_1 = __nccwpck_require__(9520); +const UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31); +const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); +const KEEPALIVE_TIMEOUT_MS = 20000; +const MAX_CONNECTION_IDLE_MS = ~(1 << 31); +const { HTTP2_HEADER_PATH } = http2.constants; +const TRACER_NAME = 'server'; +const kMaxAge = Buffer.from('max_age'); +function serverCallTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'server_call', text); +} +function noop() { } +/** + * Decorator to wrap a class method with util.deprecate + * @param message The message to output if the deprecated method is called + * @returns + */ +function deprecate(message) { + return function (target, context) { + return util.deprecate(target, message); + }; +} +function getUnimplementedStatusResponse(methodName) { + return { + code: constants_1.Status.UNIMPLEMENTED, + details: `The server does not implement the method ${methodName}`, + }; +} +function getDefaultHandler(handlerType, methodName) { + const unimplementedStatusResponse = getUnimplementedStatusResponse(methodName); + switch (handlerType) { + case 'unary': + return (call, callback) => { + callback(unimplementedStatusResponse, null); + }; + case 'clientStream': + return (call, callback) => { + callback(unimplementedStatusResponse, null); + }; + case 'serverStream': + return (call) => { + call.emit('error', unimplementedStatusResponse); + }; + case 'bidi': + return (call) => { + call.emit('error', unimplementedStatusResponse); + }; + default: + throw new Error(`Invalid handlerType ${handlerType}`); + } +} +let Server = (() => { + var _a; + let _instanceExtraInitializers = []; + let _start_decorators; + return _a = class Server { + constructor(options) { + var _b, _c, _d, _e, _f, _g; + this.boundPorts = (__runInitializers(this, _instanceExtraInitializers), new Map()); + this.http2Servers = new Map(); + this.sessionIdleTimeouts = new Map(); + this.handlers = new Map(); + this.sessions = new Map(); + /** + * This field only exists to ensure that the start method throws an error if + * it is called twice, as it did previously. + */ + this.started = false; + this.shutdown = false; + this.serverAddressString = 'null'; + // Channelz Info + this.channelzEnabled = true; + this.options = options !== null && options !== void 0 ? options : {}; + if (this.options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + this.channelzTrace = new channelz_1.ChannelzTraceStub(); + this.callTracker = new channelz_1.ChannelzCallTrackerStub(); + this.listenerChildrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); + this.sessionChildrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); + } + else { + this.channelzTrace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.listenerChildrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.sessionChildrenTracker = new channelz_1.ChannelzChildrenTracker(); + } + this.channelzRef = (0, channelz_1.registerChannelzServer)('server', () => this.getChannelzInfo(), this.channelzEnabled); + this.channelzTrace.addTrace('CT_INFO', 'Server created'); + this.maxConnectionAgeMs = + (_b = this.options['grpc.max_connection_age_ms']) !== null && _b !== void 0 ? _b : UNLIMITED_CONNECTION_AGE_MS; + this.maxConnectionAgeGraceMs = + (_c = this.options['grpc.max_connection_age_grace_ms']) !== null && _c !== void 0 ? _c : UNLIMITED_CONNECTION_AGE_MS; + this.keepaliveTimeMs = + (_d = this.options['grpc.keepalive_time_ms']) !== null && _d !== void 0 ? _d : KEEPALIVE_MAX_TIME_MS; + this.keepaliveTimeoutMs = + (_e = this.options['grpc.keepalive_timeout_ms']) !== null && _e !== void 0 ? _e : KEEPALIVE_TIMEOUT_MS; + this.sessionIdleTimeout = + (_f = this.options['grpc.max_connection_idle_ms']) !== null && _f !== void 0 ? _f : MAX_CONNECTION_IDLE_MS; + this.commonServerOptions = { + maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER, + }; + if ('grpc-node.max_session_memory' in this.options) { + this.commonServerOptions.maxSessionMemory = + this.options['grpc-node.max_session_memory']; + } + else { + /* By default, set a very large max session memory limit, to effectively + * disable enforcement of the limit. Some testing indicates that Node's + * behavior degrades badly when this limit is reached, so we solve that + * by disabling the check entirely. */ + this.commonServerOptions.maxSessionMemory = Number.MAX_SAFE_INTEGER; + } + if ('grpc.max_concurrent_streams' in this.options) { + this.commonServerOptions.settings = { + maxConcurrentStreams: this.options['grpc.max_concurrent_streams'], + }; + } + this.interceptors = (_g = this.options.interceptors) !== null && _g !== void 0 ? _g : []; + this.trace('Server constructed'); + } + getChannelzInfo() { + return { + trace: this.channelzTrace, + callTracker: this.callTracker, + listenerChildren: this.listenerChildrenTracker.getChildLists(), + sessionChildren: this.sessionChildrenTracker.getChildLists(), + }; + } + getChannelzSessionInfo(session) { + var _b, _c, _d; + const sessionInfo = this.sessions.get(session); + const sessionSocket = session.socket; + const remoteAddress = sessionSocket.remoteAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) + : null; + const localAddress = sessionSocket.localAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) + : null; + let tlsInfo; + if (session.encrypted) { + const tlsSocket = sessionSocket; + const cipherInfo = tlsSocket.getCipher(); + const certificate = tlsSocket.getCertificate(); + const peerCertificate = tlsSocket.getPeerCertificate(); + tlsInfo = { + cipherSuiteStandardName: (_b = cipherInfo.standardName) !== null && _b !== void 0 ? _b : null, + cipherSuiteOtherName: cipherInfo.standardName ? null : cipherInfo.name, + localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, + remoteCertificate: peerCertificate && 'raw' in peerCertificate + ? peerCertificate.raw + : null, + }; + } + else { + tlsInfo = null; + } + const socketInfo = { + remoteAddress: remoteAddress, + localAddress: localAddress, + security: tlsInfo, + remoteName: null, + streamsStarted: sessionInfo.streamTracker.callsStarted, + streamsSucceeded: sessionInfo.streamTracker.callsSucceeded, + streamsFailed: sessionInfo.streamTracker.callsFailed, + messagesSent: sessionInfo.messagesSent, + messagesReceived: sessionInfo.messagesReceived, + keepAlivesSent: sessionInfo.keepAlivesSent, + lastLocalStreamCreatedTimestamp: null, + lastRemoteStreamCreatedTimestamp: sessionInfo.streamTracker.lastCallStartedTimestamp, + lastMessageSentTimestamp: sessionInfo.lastMessageSentTimestamp, + lastMessageReceivedTimestamp: sessionInfo.lastMessageReceivedTimestamp, + localFlowControlWindow: (_c = session.state.localWindowSize) !== null && _c !== void 0 ? _c : null, + remoteFlowControlWindow: (_d = session.state.remoteWindowSize) !== null && _d !== void 0 ? _d : null, + }; + return socketInfo; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + this.channelzRef.id + ') ' + text); + } + keepaliveTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'keepalive', '(' + this.channelzRef.id + ') ' + text); + } + addProtoService() { + throw new Error('Not implemented. Use addService() instead'); + } + addService(service, implementation) { + if (service === null || + typeof service !== 'object' || + implementation === null || + typeof implementation !== 'object') { + throw new Error('addService() requires two objects as arguments'); + } + const serviceKeys = Object.keys(service); + if (serviceKeys.length === 0) { + throw new Error('Cannot add an empty service to a server'); + } + serviceKeys.forEach(name => { + const attrs = service[name]; + let methodType; + if (attrs.requestStream) { + if (attrs.responseStream) { + methodType = 'bidi'; + } + else { + methodType = 'clientStream'; + } + } + else { + if (attrs.responseStream) { + methodType = 'serverStream'; + } + else { + methodType = 'unary'; + } + } + let implFn = implementation[name]; + let impl; + if (implFn === undefined && typeof attrs.originalName === 'string') { + implFn = implementation[attrs.originalName]; + } + if (implFn !== undefined) { + impl = implFn.bind(implementation); + } + else { + impl = getDefaultHandler(methodType, name); + } + const success = this.register(attrs.path, impl, attrs.responseSerialize, attrs.requestDeserialize, methodType); + if (success === false) { + throw new Error(`Method handler for ${attrs.path} already provided.`); + } + }); + } + removeService(service) { + if (service === null || typeof service !== 'object') { + throw new Error('removeService() requires object as argument'); + } + const serviceKeys = Object.keys(service); + serviceKeys.forEach(name => { + const attrs = service[name]; + this.unregister(attrs.path); + }); + } + bind(port, creds) { + throw new Error('Not implemented. Use bindAsync() instead'); + } + /** + * This API is experimental, so API stability is not guaranteed across minor versions. + * @param boundAddress + * @returns + */ + experimentalRegisterListenerToChannelz(boundAddress) { + return (0, channelz_1.registerChannelzSocket)((0, subchannel_address_1.subchannelAddressToString)(boundAddress), () => { + return { + localAddress: boundAddress, + remoteAddress: null, + security: null, + remoteName: null, + streamsStarted: 0, + streamsSucceeded: 0, + streamsFailed: 0, + messagesSent: 0, + messagesReceived: 0, + keepAlivesSent: 0, + lastLocalStreamCreatedTimestamp: null, + lastRemoteStreamCreatedTimestamp: null, + lastMessageSentTimestamp: null, + lastMessageReceivedTimestamp: null, + localFlowControlWindow: null, + remoteFlowControlWindow: null, + }; + }, this.channelzEnabled); + } + experimentalUnregisterListenerFromChannelz(channelzRef) { + (0, channelz_1.unregisterChannelzRef)(channelzRef); + } + createHttp2Server(credentials) { + let http2Server; + if (credentials._isSecure()) { + const constructorOptions = credentials._getConstructorOptions(); + const contextOptions = credentials._getSecureContextOptions(); + const secureServerOptions = Object.assign(Object.assign(Object.assign(Object.assign({}, this.commonServerOptions), constructorOptions), contextOptions), { enableTrace: this.options['grpc-node.tls_enable_trace'] === 1 }); + let areCredentialsValid = contextOptions !== null; + this.trace('Initial credentials valid: ' + areCredentialsValid); + http2Server = http2.createSecureServer(secureServerOptions); + http2Server.prependListener('connection', (socket) => { + if (!areCredentialsValid) { + this.trace('Dropped connection from ' + JSON.stringify(socket.address()) + ' due to unloaded credentials'); + socket.destroy(); + } + }); + http2Server.on('secureConnection', (socket) => { + /* These errors need to be handled by the user of Http2SecureServer, + * according to https://github.com/nodejs/node/issues/35824 */ + socket.on('error', (e) => { + this.trace('An incoming TLS connection closed with error: ' + e.message); + }); + }); + const credsWatcher = options => { + if (options) { + const secureServer = http2Server; + try { + secureServer.setSecureContext(options); + } + catch (e) { + logging.log(constants_1.LogVerbosity.ERROR, 'Failed to set secure context with error ' + e.message); + options = null; + } + } + areCredentialsValid = options !== null; + this.trace('Post-update credentials valid: ' + areCredentialsValid); + }; + credentials._addWatcher(credsWatcher); + http2Server.on('close', () => { + credentials._removeWatcher(credsWatcher); + }); + } + else { + http2Server = http2.createServer(this.commonServerOptions); + } + http2Server.setTimeout(0, noop); + this._setupHandlers(http2Server, credentials._getInterceptors()); + return http2Server; + } + bindOneAddress(address, boundPortObject) { + this.trace('Attempting to bind ' + (0, subchannel_address_1.subchannelAddressToString)(address)); + const http2Server = this.createHttp2Server(boundPortObject.credentials); + return new Promise((resolve, reject) => { + const onError = (err) => { + this.trace('Failed to bind ' + + (0, subchannel_address_1.subchannelAddressToString)(address) + + ' with error ' + + err.message); + resolve({ + port: 'port' in address ? address.port : 1, + error: err.message, + }); + }; + http2Server.once('error', onError); + http2Server.listen(address, () => { + const boundAddress = http2Server.address(); + let boundSubchannelAddress; + if (typeof boundAddress === 'string') { + boundSubchannelAddress = { + path: boundAddress, + }; + } + else { + boundSubchannelAddress = { + host: boundAddress.address, + port: boundAddress.port, + }; + } + const channelzRef = this.experimentalRegisterListenerToChannelz(boundSubchannelAddress); + this.listenerChildrenTracker.refChild(channelzRef); + this.http2Servers.set(http2Server, { + channelzRef: channelzRef, + sessions: new Set(), + ownsChannelzRef: true + }); + boundPortObject.listeningServers.add(http2Server); + this.trace('Successfully bound ' + + (0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress)); + resolve({ + port: 'port' in boundSubchannelAddress ? boundSubchannelAddress.port : 1, + }); + http2Server.removeListener('error', onError); + }); + }); + } + async bindManyPorts(addressList, boundPortObject) { + if (addressList.length === 0) { + return { + count: 0, + port: 0, + errors: [], + }; + } + if ((0, subchannel_address_1.isTcpSubchannelAddress)(addressList[0]) && addressList[0].port === 0) { + /* If binding to port 0, first try to bind the first address, then bind + * the rest of the address list to the specific port that it binds. */ + const firstAddressResult = await this.bindOneAddress(addressList[0], boundPortObject); + if (firstAddressResult.error) { + /* If the first address fails to bind, try the same operation starting + * from the second item in the list. */ + const restAddressResult = await this.bindManyPorts(addressList.slice(1), boundPortObject); + return Object.assign(Object.assign({}, restAddressResult), { errors: [firstAddressResult.error, ...restAddressResult.errors] }); + } + else { + const restAddresses = addressList + .slice(1) + .map(address => (0, subchannel_address_1.isTcpSubchannelAddress)(address) + ? { host: address.host, port: firstAddressResult.port } + : address); + const restAddressResult = await Promise.all(restAddresses.map(address => this.bindOneAddress(address, boundPortObject))); + const allResults = [firstAddressResult, ...restAddressResult]; + return { + count: allResults.filter(result => result.error === undefined).length, + port: firstAddressResult.port, + errors: allResults + .filter(result => result.error) + .map(result => result.error), + }; + } + } + else { + const allResults = await Promise.all(addressList.map(address => this.bindOneAddress(address, boundPortObject))); + return { + count: allResults.filter(result => result.error === undefined).length, + port: allResults[0].port, + errors: allResults + .filter(result => result.error) + .map(result => result.error), + }; + } + } + async bindAddressList(addressList, boundPortObject) { + const bindResult = await this.bindManyPorts(addressList, boundPortObject); + if (bindResult.count > 0) { + if (bindResult.count < addressList.length) { + logging.log(constants_1.LogVerbosity.INFO, `WARNING Only ${bindResult.count} addresses added out of total ${addressList.length} resolved`); + } + return bindResult.port; + } + else { + const errorString = `No address added out of total ${addressList.length} resolved`; + logging.log(constants_1.LogVerbosity.ERROR, errorString); + throw new Error(`${errorString} errors: [${bindResult.errors.join(',')}]`); + } + } + resolvePort(port) { + return new Promise((resolve, reject) => { + let seenResolution = false; + const resolverListener = (endpointList, attributes, serviceConfig, resolutionNote) => { + if (seenResolution) { + return true; + } + seenResolution = true; + if (!endpointList.ok) { + reject(new Error(endpointList.error.details)); + return true; + } + const addressList = [].concat(...endpointList.value.map(endpoint => endpoint.addresses)); + if (addressList.length === 0) { + reject(new Error(`No addresses resolved for port ${port}`)); + return true; + } + resolve(addressList); + return true; + }; + const resolver = (0, resolver_1.createResolver)(port, resolverListener, this.options); + resolver.updateResolution(); + }); + } + async bindPort(port, boundPortObject) { + const addressList = await this.resolvePort(port); + if (boundPortObject.cancelled) { + this.completeUnbind(boundPortObject); + throw new Error('bindAsync operation cancelled by unbind call'); + } + const portNumber = await this.bindAddressList(addressList, boundPortObject); + if (boundPortObject.cancelled) { + this.completeUnbind(boundPortObject); + throw new Error('bindAsync operation cancelled by unbind call'); + } + return portNumber; + } + normalizePort(port) { + const initialPortUri = (0, uri_parser_1.parseUri)(port); + if (initialPortUri === null) { + throw new Error(`Could not parse port "${port}"`); + } + const portUri = (0, resolver_1.mapUriDefaultScheme)(initialPortUri); + if (portUri === null) { + throw new Error(`Could not get a default scheme for port "${port}"`); + } + return portUri; + } + bindAsync(port, creds, callback) { + if (this.shutdown) { + throw new Error('bindAsync called after shutdown'); + } + if (typeof port !== 'string') { + throw new TypeError('port must be a string'); + } + if (creds === null || !(creds instanceof server_credentials_1.ServerCredentials)) { + throw new TypeError('creds must be a ServerCredentials object'); + } + if (typeof callback !== 'function') { + throw new TypeError('callback must be a function'); + } + this.trace('bindAsync port=' + port); + const portUri = this.normalizePort(port); + const deferredCallback = (error, port) => { + process.nextTick(() => callback(error, port)); + }; + /* First, if this port is already bound or that bind operation is in + * progress, use that result. */ + let boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); + if (boundPortObject) { + if (!creds._equals(boundPortObject.credentials)) { + deferredCallback(new Error(`${port} already bound with incompatible credentials`), 0); + return; + } + /* If that operation has previously been cancelled by an unbind call, + * uncancel it. */ + boundPortObject.cancelled = false; + if (boundPortObject.completionPromise) { + boundPortObject.completionPromise.then(portNum => callback(null, portNum), error => callback(error, 0)); + } + else { + deferredCallback(null, boundPortObject.portNumber); + } + return; + } + boundPortObject = { + mapKey: (0, uri_parser_1.uriToString)(portUri), + originalUri: portUri, + completionPromise: null, + cancelled: false, + portNumber: 0, + credentials: creds, + listeningServers: new Set(), + }; + const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); + const completionPromise = this.bindPort(portUri, boundPortObject); + boundPortObject.completionPromise = completionPromise; + /* If the port number is 0, defer populating the map entry until after the + * bind operation completes and we have a specific port number. Otherwise, + * populate it immediately. */ + if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { + completionPromise.then(portNum => { + const finalUri = { + scheme: portUri.scheme, + authority: portUri.authority, + path: (0, uri_parser_1.combineHostPort)({ host: splitPort.host, port: portNum }), + }; + boundPortObject.mapKey = (0, uri_parser_1.uriToString)(finalUri); + boundPortObject.completionPromise = null; + boundPortObject.portNumber = portNum; + this.boundPorts.set(boundPortObject.mapKey, boundPortObject); + callback(null, portNum); + }, error => { + callback(error, 0); + }); + } + else { + this.boundPorts.set(boundPortObject.mapKey, boundPortObject); + completionPromise.then(portNum => { + boundPortObject.completionPromise = null; + boundPortObject.portNumber = portNum; + callback(null, portNum); + }, error => { + callback(error, 0); + }); + } + } + registerInjectorToChannelz() { + return (0, channelz_1.registerChannelzSocket)('injector', () => { + return { + localAddress: null, + remoteAddress: null, + security: null, + remoteName: null, + streamsStarted: 0, + streamsSucceeded: 0, + streamsFailed: 0, + messagesSent: 0, + messagesReceived: 0, + keepAlivesSent: 0, + lastLocalStreamCreatedTimestamp: null, + lastRemoteStreamCreatedTimestamp: null, + lastMessageSentTimestamp: null, + lastMessageReceivedTimestamp: null, + localFlowControlWindow: null, + remoteFlowControlWindow: null, + }; + }, this.channelzEnabled); + } + /** + * This API is experimental, so API stability is not guaranteed across minor versions. + * @param credentials + * @param channelzRef + * @returns + */ + experimentalCreateConnectionInjectorWithChannelzRef(credentials, channelzRef, ownsChannelzRef = false) { + if (credentials === null || !(credentials instanceof server_credentials_1.ServerCredentials)) { + throw new TypeError('creds must be a ServerCredentials object'); + } + if (this.channelzEnabled) { + this.listenerChildrenTracker.refChild(channelzRef); + } + const server = this.createHttp2Server(credentials); + const sessionsSet = new Set(); + this.http2Servers.set(server, { + channelzRef: channelzRef, + sessions: sessionsSet, + ownsChannelzRef + }); + return { + injectConnection: (connection) => { + server.emit('connection', connection); + }, + drain: (graceTimeMs) => { + var _b, _c; + for (const session of sessionsSet) { + this.closeSession(session); + } + (_c = (_b = setTimeout(() => { + for (const session of sessionsSet) { + session.destroy(http2.constants.NGHTTP2_CANCEL); + } + }, graceTimeMs)).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + }, + destroy: () => { + this.closeServer(server); + for (const session of sessionsSet) { + this.closeSession(session); + } + } + }; + } + createConnectionInjector(credentials) { + if (credentials === null || !(credentials instanceof server_credentials_1.ServerCredentials)) { + throw new TypeError('creds must be a ServerCredentials object'); + } + const channelzRef = this.registerInjectorToChannelz(); + return this.experimentalCreateConnectionInjectorWithChannelzRef(credentials, channelzRef, true); + } + closeServer(server, callback) { + this.trace('Closing server with address ' + JSON.stringify(server.address())); + const serverInfo = this.http2Servers.get(server); + server.close(() => { + if (serverInfo && serverInfo.ownsChannelzRef) { + this.listenerChildrenTracker.unrefChild(serverInfo.channelzRef); + (0, channelz_1.unregisterChannelzRef)(serverInfo.channelzRef); + } + this.http2Servers.delete(server); + callback === null || callback === void 0 ? void 0 : callback(); + }); + } + closeSession(session, callback) { + var _b; + this.trace('Closing session initiated by ' + ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress)); + const sessionInfo = this.sessions.get(session); + const closeCallback = () => { + if (sessionInfo) { + this.sessionChildrenTracker.unrefChild(sessionInfo.ref); + (0, channelz_1.unregisterChannelzRef)(sessionInfo.ref); + } + callback === null || callback === void 0 ? void 0 : callback(); + }; + if (session.closed) { + queueMicrotask(closeCallback); + } + else { + session.close(closeCallback); + } + } + completeUnbind(boundPortObject) { + for (const server of boundPortObject.listeningServers) { + const serverInfo = this.http2Servers.get(server); + this.closeServer(server, () => { + boundPortObject.listeningServers.delete(server); + }); + if (serverInfo) { + for (const session of serverInfo.sessions) { + this.closeSession(session); + } + } + } + this.boundPorts.delete(boundPortObject.mapKey); + } + /** + * Unbind a previously bound port, or cancel an in-progress bindAsync + * operation. If port 0 was bound, only the actual bound port can be + * unbound. For example, if bindAsync was called with "localhost:0" and the + * bound port result was 54321, it can be unbound as "localhost:54321". + * @param port + */ + unbind(port) { + this.trace('unbind port=' + port); + const portUri = this.normalizePort(port); + const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); + if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { + throw new Error('Cannot unbind port 0'); + } + const boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); + if (boundPortObject) { + this.trace('unbinding ' + + boundPortObject.mapKey + + ' originally bound as ' + + (0, uri_parser_1.uriToString)(boundPortObject.originalUri)); + /* If the bind operation is pending, the cancelled flag will trigger + * the unbind operation later. */ + if (boundPortObject.completionPromise) { + boundPortObject.cancelled = true; + } + else { + this.completeUnbind(boundPortObject); + } + } + } + /** + * Gracefully close all connections associated with a previously bound port. + * After the grace time, forcefully close all remaining open connections. + * + * If port 0 was bound, only the actual bound port can be + * drained. For example, if bindAsync was called with "localhost:0" and the + * bound port result was 54321, it can be drained as "localhost:54321". + * @param port + * @param graceTimeMs + * @returns + */ + drain(port, graceTimeMs) { + var _b, _c; + this.trace('drain port=' + port + ' graceTimeMs=' + graceTimeMs); + const portUri = this.normalizePort(port); + const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); + if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { + throw new Error('Cannot drain port 0'); + } + const boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); + if (!boundPortObject) { + return; + } + const allSessions = new Set(); + for (const http2Server of boundPortObject.listeningServers) { + const serverEntry = this.http2Servers.get(http2Server); + if (serverEntry) { + for (const session of serverEntry.sessions) { + allSessions.add(session); + this.closeSession(session, () => { + allSessions.delete(session); + }); + } + } + } + /* After the grace time ends, send another goaway to all remaining sessions + * with the CANCEL code. */ + (_c = (_b = setTimeout(() => { + for (const session of allSessions) { + session.destroy(http2.constants.NGHTTP2_CANCEL); + } + }, graceTimeMs)).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + } + forceShutdown() { + for (const boundPortObject of this.boundPorts.values()) { + boundPortObject.cancelled = true; + } + this.boundPorts.clear(); + // Close the server if it is still running. + for (const server of this.http2Servers.keys()) { + this.closeServer(server); + } + // Always destroy any available sessions. It's possible that one or more + // tryShutdown() calls are in progress. Don't wait on them to finish. + this.sessions.forEach((channelzInfo, session) => { + this.closeSession(session); + // Cast NGHTTP2_CANCEL to any because TypeScript doesn't seem to + // recognize destroy(code) as a valid signature. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + session.destroy(http2.constants.NGHTTP2_CANCEL); + }); + this.sessions.clear(); + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + this.shutdown = true; + } + register(name, handler, serialize, deserialize, type) { + if (this.handlers.has(name)) { + return false; + } + this.handlers.set(name, { + func: handler, + serialize, + deserialize, + type, + path: name, + }); + return true; + } + unregister(name) { + return this.handlers.delete(name); + } + /** + * @deprecated No longer needed as of version 1.10.x + */ + start() { + if (this.http2Servers.size === 0 || + [...this.http2Servers.keys()].every(server => !server.listening)) { + throw new Error('server must be bound in order to start'); + } + if (this.started === true) { + throw new Error('server is already started'); + } + this.started = true; + } + tryShutdown(callback) { + var _b; + const wrappedCallback = (error) => { + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + callback(error); + }; + let pendingChecks = 0; + function maybeCallback() { + pendingChecks--; + if (pendingChecks === 0) { + wrappedCallback(); + } + } + this.shutdown = true; + for (const [serverKey, server] of this.http2Servers.entries()) { + pendingChecks++; + const serverString = server.channelzRef.name; + this.trace('Waiting for server ' + serverString + ' to close'); + this.closeServer(serverKey, () => { + this.trace('Server ' + serverString + ' finished closing'); + maybeCallback(); + }); + for (const session of server.sessions.keys()) { + pendingChecks++; + const sessionString = (_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress; + this.trace('Waiting for session ' + sessionString + ' to close'); + this.closeSession(session, () => { + this.trace('Session ' + sessionString + ' finished closing'); + maybeCallback(); + }); + } + } + if (pendingChecks === 0) { + wrappedCallback(); + } + } + addHttp2Port() { + throw new Error('Not yet implemented'); + } + /** + * Get the channelz reference object for this server. The returned value is + * garbage if channelz is disabled for this server. + * @returns + */ + getChannelzRef() { + return this.channelzRef; + } + _verifyContentType(stream, headers) { + const contentType = headers[http2.constants.HTTP2_HEADER_CONTENT_TYPE]; + if (typeof contentType !== 'string' || + !contentType.startsWith('application/grpc')) { + stream.respond({ + [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE, + }, { endStream: true }); + return false; + } + return true; + } + _retrieveHandler(path) { + serverCallTrace('Received call to method ' + + path + + ' at address ' + + this.serverAddressString); + const handler = this.handlers.get(path); + if (handler === undefined) { + serverCallTrace('No handler registered for method ' + + path + + '. Sending UNIMPLEMENTED status.'); + return null; + } + return handler; + } + _respondWithError(err, stream, channelzSessionInfo = null) { + var _b, _c; + const trailersToSend = Object.assign({ 'grpc-status': (_b = err.code) !== null && _b !== void 0 ? _b : constants_1.Status.INTERNAL, 'grpc-message': err.details, [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_OK, [http2.constants.HTTP2_HEADER_CONTENT_TYPE]: 'application/grpc+proto' }, (_c = err.metadata) === null || _c === void 0 ? void 0 : _c.toHttp2Headers()); + stream.respond(trailersToSend, { endStream: true }); + this.callTracker.addCallFailed(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); + } + _channelzHandler(extraInterceptors, stream, headers) { + // for handling idle timeout + this.onStreamOpened(stream); + const channelzSessionInfo = this.sessions.get(stream.session); + this.callTracker.addCallStarted(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallStarted(); + if (!this._verifyContentType(stream, headers)) { + this.callTracker.addCallFailed(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); + return; + } + const path = headers[HTTP2_HEADER_PATH]; + const handler = this._retrieveHandler(path); + if (!handler) { + this._respondWithError(getUnimplementedStatusResponse(path), stream, channelzSessionInfo); + return; + } + const callEventTracker = { + addMessageSent: () => { + if (channelzSessionInfo) { + channelzSessionInfo.messagesSent += 1; + channelzSessionInfo.lastMessageSentTimestamp = new Date(); + } + }, + addMessageReceived: () => { + if (channelzSessionInfo) { + channelzSessionInfo.messagesReceived += 1; + channelzSessionInfo.lastMessageReceivedTimestamp = new Date(); + } + }, + onCallEnd: status => { + if (status.code === constants_1.Status.OK) { + this.callTracker.addCallSucceeded(); + } + else { + this.callTracker.addCallFailed(); + } + }, + onStreamEnd: success => { + if (channelzSessionInfo) { + if (success) { + channelzSessionInfo.streamTracker.addCallSucceeded(); + } + else { + channelzSessionInfo.streamTracker.addCallFailed(); + } + } + }, + }; + const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, callEventTracker, handler, this.options); + if (!this._runHandlerForCall(call, handler)) { + this.callTracker.addCallFailed(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); + call.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Unknown handler type: ${handler.type}`, + }); + } + } + _streamHandler(extraInterceptors, stream, headers) { + // for handling idle timeout + this.onStreamOpened(stream); + if (this._verifyContentType(stream, headers) !== true) { + return; + } + const path = headers[HTTP2_HEADER_PATH]; + const handler = this._retrieveHandler(path); + if (!handler) { + this._respondWithError(getUnimplementedStatusResponse(path), stream, null); + return; + } + const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, null, handler, this.options); + if (!this._runHandlerForCall(call, handler)) { + call.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Unknown handler type: ${handler.type}`, + }); + } + } + _runHandlerForCall(call, handler) { + const { type } = handler; + if (type === 'unary') { + handleUnary(call, handler); + } + else if (type === 'clientStream') { + handleClientStreaming(call, handler); + } + else if (type === 'serverStream') { + handleServerStreaming(call, handler); + } + else if (type === 'bidi') { + handleBidiStreaming(call, handler); + } + else { + return false; + } + return true; + } + _setupHandlers(http2Server, extraInterceptors) { + if (http2Server === null) { + return; + } + const serverAddress = http2Server.address(); + let serverAddressString = 'null'; + if (serverAddress) { + if (typeof serverAddress === 'string') { + serverAddressString = serverAddress; + } + else { + serverAddressString = serverAddress.address + ':' + serverAddress.port; + } + } + this.serverAddressString = serverAddressString; + const handler = this.channelzEnabled + ? this._channelzHandler + : this._streamHandler; + const sessionHandler = this.channelzEnabled + ? this._channelzSessionHandler(http2Server) + : this._sessionHandler(http2Server); + http2Server.on('stream', handler.bind(this, extraInterceptors)); + http2Server.on('session', sessionHandler); + } + _sessionHandler(http2Server) { + return (session) => { + var _b, _c; + (_b = this.http2Servers.get(http2Server)) === null || _b === void 0 ? void 0 : _b.sessions.add(session); + let connectionAgeTimer = null; + let connectionAgeGraceTimer = null; + let keepaliveTimer = null; + let sessionClosedByServer = false; + const idleTimeoutObj = this.enableIdleTimeout(session); + if (this.maxConnectionAgeMs !== UNLIMITED_CONNECTION_AGE_MS) { + // Apply a random jitter within a +/-10% range + const jitterMagnitude = this.maxConnectionAgeMs / 10; + const jitter = Math.random() * jitterMagnitude * 2 - jitterMagnitude; + connectionAgeTimer = setTimeout(() => { + var _b, _c; + sessionClosedByServer = true; + this.trace('Connection dropped by max connection age: ' + + ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress)); + try { + session.goaway(http2.constants.NGHTTP2_NO_ERROR, ~(1 << 31), kMaxAge); + } + catch (e) { + // The goaway can't be sent because the session is already closed + session.destroy(); + return; + } + session.close(); + /* Allow a grace period after sending the GOAWAY before forcibly + * closing the connection. */ + if (this.maxConnectionAgeGraceMs !== UNLIMITED_CONNECTION_AGE_MS) { + connectionAgeGraceTimer = setTimeout(() => { + session.destroy(); + }, this.maxConnectionAgeGraceMs); + (_c = connectionAgeGraceTimer.unref) === null || _c === void 0 ? void 0 : _c.call(connectionAgeGraceTimer); + } + }, this.maxConnectionAgeMs + jitter); + (_c = connectionAgeTimer.unref) === null || _c === void 0 ? void 0 : _c.call(connectionAgeTimer); + } + const clearKeepaliveTimeout = () => { + if (keepaliveTimer) { + clearTimeout(keepaliveTimer); + keepaliveTimer = null; + } + }; + const canSendPing = () => { + return (!session.destroyed && + this.keepaliveTimeMs < KEEPALIVE_MAX_TIME_MS && + this.keepaliveTimeMs > 0); + }; + /* eslint-disable-next-line prefer-const */ + let sendPing; // hoisted for use in maybeStartKeepalivePingTimer + const maybeStartKeepalivePingTimer = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); + keepaliveTimer = setTimeout(() => { + clearKeepaliveTimeout(); + sendPing(); + }, this.keepaliveTimeMs); + (_b = keepaliveTimer.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimer); + }; + sendPing = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); + let pingSendError = ''; + try { + const pingSentSuccessfully = session.ping((err, duration, payload) => { + clearKeepaliveTimeout(); + if (err) { + this.keepaliveTrace('Ping failed with error: ' + err.message); + sessionClosedByServer = true; + session.destroy(); + } + else { + this.keepaliveTrace('Received ping response'); + maybeStartKeepalivePingTimer(); + } + }); + if (!pingSentSuccessfully) { + pingSendError = 'Ping returned false'; + } + } + catch (e) { + // grpc/grpc-node#2139 + pingSendError = + (e instanceof Error ? e.message : '') || 'Unknown error'; + } + if (pingSendError) { + this.keepaliveTrace('Ping send failed: ' + pingSendError); + this.trace('Connection dropped due to ping send error: ' + pingSendError); + sessionClosedByServer = true; + session.destroy(); + return; + } + keepaliveTimer = setTimeout(() => { + clearKeepaliveTimeout(); + this.keepaliveTrace('Ping timeout passed without response'); + this.trace('Connection dropped by keepalive timeout'); + sessionClosedByServer = true; + session.destroy(); + }, this.keepaliveTimeoutMs); + (_b = keepaliveTimer.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimer); + }; + maybeStartKeepalivePingTimer(); + session.on('close', () => { + var _b, _c; + if (!sessionClosedByServer) { + this.trace(`Connection dropped by client ${(_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress}`); + } + if (connectionAgeTimer) { + clearTimeout(connectionAgeTimer); + } + if (connectionAgeGraceTimer) { + clearTimeout(connectionAgeGraceTimer); + } + clearKeepaliveTimeout(); + if (idleTimeoutObj !== null) { + clearTimeout(idleTimeoutObj.timeout); + this.sessionIdleTimeouts.delete(session); + } + (_c = this.http2Servers.get(http2Server)) === null || _c === void 0 ? void 0 : _c.sessions.delete(session); + }); + }; + } + _channelzSessionHandler(http2Server) { + return (session) => { + var _b, _c, _d, _e; + const channelzRef = (0, channelz_1.registerChannelzSocket)((_c = (_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress) !== null && _c !== void 0 ? _c : 'unknown', this.getChannelzSessionInfo.bind(this, session), this.channelzEnabled); + const channelzSessionInfo = { + ref: channelzRef, + streamTracker: new channelz_1.ChannelzCallTracker(), + messagesSent: 0, + messagesReceived: 0, + keepAlivesSent: 0, + lastMessageSentTimestamp: null, + lastMessageReceivedTimestamp: null, + }; + (_d = this.http2Servers.get(http2Server)) === null || _d === void 0 ? void 0 : _d.sessions.add(session); + this.sessions.set(session, channelzSessionInfo); + const clientAddress = `${session.socket.remoteAddress}:${session.socket.remotePort}`; + this.channelzTrace.addTrace('CT_INFO', 'Connection established by client ' + clientAddress); + this.trace('Connection established by client ' + clientAddress); + this.sessionChildrenTracker.refChild(channelzRef); + let connectionAgeTimer = null; + let connectionAgeGraceTimer = null; + let keepaliveTimeout = null; + let sessionClosedByServer = false; + const idleTimeoutObj = this.enableIdleTimeout(session); + if (this.maxConnectionAgeMs !== UNLIMITED_CONNECTION_AGE_MS) { + // Apply a random jitter within a +/-10% range + const jitterMagnitude = this.maxConnectionAgeMs / 10; + const jitter = Math.random() * jitterMagnitude * 2 - jitterMagnitude; + connectionAgeTimer = setTimeout(() => { + var _b; + sessionClosedByServer = true; + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by max connection age from ' + clientAddress); + try { + session.goaway(http2.constants.NGHTTP2_NO_ERROR, ~(1 << 31), kMaxAge); + } + catch (e) { + // The goaway can't be sent because the session is already closed + session.destroy(); + return; + } + session.close(); + /* Allow a grace period after sending the GOAWAY before forcibly + * closing the connection. */ + if (this.maxConnectionAgeGraceMs !== UNLIMITED_CONNECTION_AGE_MS) { + connectionAgeGraceTimer = setTimeout(() => { + session.destroy(); + }, this.maxConnectionAgeGraceMs); + (_b = connectionAgeGraceTimer.unref) === null || _b === void 0 ? void 0 : _b.call(connectionAgeGraceTimer); + } + }, this.maxConnectionAgeMs + jitter); + (_e = connectionAgeTimer.unref) === null || _e === void 0 ? void 0 : _e.call(connectionAgeTimer); + } + const clearKeepaliveTimeout = () => { + if (keepaliveTimeout) { + clearTimeout(keepaliveTimeout); + keepaliveTimeout = null; + } + }; + const canSendPing = () => { + return (!session.destroyed && + this.keepaliveTimeMs < KEEPALIVE_MAX_TIME_MS && + this.keepaliveTimeMs > 0); + }; + /* eslint-disable-next-line prefer-const */ + let sendPing; // hoisted for use in maybeStartKeepalivePingTimer + const maybeStartKeepalivePingTimer = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); + keepaliveTimeout = setTimeout(() => { + clearKeepaliveTimeout(); + sendPing(); + }, this.keepaliveTimeMs); + (_b = keepaliveTimeout.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimeout); + }; + sendPing = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); + let pingSendError = ''; + try { + const pingSentSuccessfully = session.ping((err, duration, payload) => { + clearKeepaliveTimeout(); + if (err) { + this.keepaliveTrace('Ping failed with error: ' + err.message); + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped due to error of a ping frame ' + + err.message + + ' return in ' + + duration); + sessionClosedByServer = true; + session.destroy(); + } + else { + this.keepaliveTrace('Received ping response'); + maybeStartKeepalivePingTimer(); + } + }); + if (!pingSentSuccessfully) { + pingSendError = 'Ping returned false'; + } + } + catch (e) { + // grpc/grpc-node#2139 + pingSendError = + (e instanceof Error ? e.message : '') || 'Unknown error'; + } + if (pingSendError) { + this.keepaliveTrace('Ping send failed: ' + pingSendError); + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped due to ping send error: ' + pingSendError); + sessionClosedByServer = true; + session.destroy(); + return; + } + channelzSessionInfo.keepAlivesSent += 1; + keepaliveTimeout = setTimeout(() => { + clearKeepaliveTimeout(); + this.keepaliveTrace('Ping timeout passed without response'); + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by keepalive timeout from ' + clientAddress); + sessionClosedByServer = true; + session.destroy(); + }, this.keepaliveTimeoutMs); + (_b = keepaliveTimeout.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimeout); + }; + maybeStartKeepalivePingTimer(); + session.on('close', () => { + var _b; + if (!sessionClosedByServer) { + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by client ' + clientAddress); + } + this.sessionChildrenTracker.unrefChild(channelzRef); + (0, channelz_1.unregisterChannelzRef)(channelzRef); + if (connectionAgeTimer) { + clearTimeout(connectionAgeTimer); + } + if (connectionAgeGraceTimer) { + clearTimeout(connectionAgeGraceTimer); + } + clearKeepaliveTimeout(); + if (idleTimeoutObj !== null) { + clearTimeout(idleTimeoutObj.timeout); + this.sessionIdleTimeouts.delete(session); + } + (_b = this.http2Servers.get(http2Server)) === null || _b === void 0 ? void 0 : _b.sessions.delete(session); + this.sessions.delete(session); + }); + }; + } + enableIdleTimeout(session) { + var _b, _c; + if (this.sessionIdleTimeout >= MAX_CONNECTION_IDLE_MS) { + return null; + } + const idleTimeoutObj = { + activeStreams: 0, + lastIdle: Date.now(), + onClose: this.onStreamClose.bind(this, session), + timeout: setTimeout(this.onIdleTimeout, this.sessionIdleTimeout, this, session), + }; + (_c = (_b = idleTimeoutObj.timeout).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + this.sessionIdleTimeouts.set(session, idleTimeoutObj); + const { socket } = session; + this.trace('Enable idle timeout for ' + + socket.remoteAddress + + ':' + + socket.remotePort); + return idleTimeoutObj; + } + onIdleTimeout(ctx, session) { + const { socket } = session; + const sessionInfo = ctx.sessionIdleTimeouts.get(session); + // if it is called while we have activeStreams - timer will not be rescheduled + // until last active stream is closed, then it will call .refresh() on the timer + // important part is to not clearTimeout(timer) or it becomes unusable + // for future refreshes + if (sessionInfo !== undefined && + sessionInfo.activeStreams === 0) { + if (Date.now() - sessionInfo.lastIdle >= ctx.sessionIdleTimeout) { + ctx.trace('Session idle timeout triggered for ' + + (socket === null || socket === void 0 ? void 0 : socket.remoteAddress) + + ':' + + (socket === null || socket === void 0 ? void 0 : socket.remotePort) + + ' last idle at ' + + sessionInfo.lastIdle); + ctx.closeSession(session); + } + else { + sessionInfo.timeout.refresh(); + } + } + } + onStreamOpened(stream) { + const session = stream.session; + const idleTimeoutObj = this.sessionIdleTimeouts.get(session); + if (idleTimeoutObj) { + idleTimeoutObj.activeStreams += 1; + stream.once('close', idleTimeoutObj.onClose); + } + } + onStreamClose(session) { + var _b, _c; + const idleTimeoutObj = this.sessionIdleTimeouts.get(session); + if (idleTimeoutObj) { + idleTimeoutObj.activeStreams -= 1; + if (idleTimeoutObj.activeStreams === 0) { + idleTimeoutObj.lastIdle = Date.now(); + idleTimeoutObj.timeout.refresh(); + this.trace('Session onStreamClose' + + ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress) + + ':' + + ((_c = session.socket) === null || _c === void 0 ? void 0 : _c.remotePort) + + ' at ' + + idleTimeoutObj.lastIdle); + } + } + } + }, + (() => { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; + _start_decorators = [deprecate('Calling start() is no longer necessary. It can be safely omitted.')]; + __esDecorate(_a, null, _start_decorators, { kind: "method", name: "start", static: false, private: false, access: { has: obj => "start" in obj, get: obj => obj.start }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + })(), + _a; +})(); +exports.Server = Server; +async function handleUnary(call, handler) { + let stream; + function respond(err, value, trailer, flags) { + if (err) { + call.sendStatus((0, server_call_1.serverErrorToStatus)(err, trailer)); + return; + } + call.sendMessage(value, () => { + call.sendStatus({ + code: constants_1.Status.OK, + details: 'OK', + metadata: trailer !== null && trailer !== void 0 ? trailer : null, + }); + }); + } + let requestMetadata; + let requestMessage = null; + call.start({ + onReceiveMetadata(metadata) { + requestMetadata = metadata; + call.startRead(); + }, + onReceiveMessage(message) { + if (requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received a second request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + requestMessage = message; + call.startRead(); + }, + onReceiveHalfClose() { + if (!requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received no request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + stream = new server_call_1.ServerWritableStreamImpl(handler.path, call, requestMetadata, requestMessage); + try { + handler.func(stream, respond); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + } + }, + }); +} +function handleClientStreaming(call, handler) { + let stream; + function respond(err, value, trailer, flags) { + if (err) { + call.sendStatus((0, server_call_1.serverErrorToStatus)(err, trailer)); + return; + } + call.sendMessage(value, () => { + call.sendStatus({ + code: constants_1.Status.OK, + details: 'OK', + metadata: trailer !== null && trailer !== void 0 ? trailer : null, + }); + }); + } + call.start({ + onReceiveMetadata(metadata) { + stream = new server_call_1.ServerDuplexStreamImpl(handler.path, call, metadata); + try { + handler.func(stream, respond); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveHalfClose() { + stream.push(null); + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + stream.destroy(); + } + }, + }); +} +function handleServerStreaming(call, handler) { + let stream; + let requestMetadata; + let requestMessage = null; + call.start({ + onReceiveMetadata(metadata) { + requestMetadata = metadata; + call.startRead(); + }, + onReceiveMessage(message) { + if (requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received a second request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + requestMessage = message; + call.startRead(); + }, + onReceiveHalfClose() { + if (!requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received no request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + stream = new server_call_1.ServerWritableStreamImpl(handler.path, call, requestMetadata, requestMessage); + try { + handler.func(stream); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + stream.destroy(); + } + }, + }); +} +function handleBidiStreaming(call, handler) { + let stream; + call.start({ + onReceiveMetadata(metadata) { + stream = new server_call_1.ServerDuplexStreamImpl(handler.path, call, metadata); + try { + handler.func(stream); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveHalfClose() { + stream.push(null); + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + stream.destroy(); + } + }, + }); +} +//# sourceMappingURL=server.js.map + +/***/ }), + +/***/ 16980: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.validateRetryThrottling = validateRetryThrottling; +exports.validateServiceConfig = validateServiceConfig; +exports.extractAndSelectServiceConfig = extractAndSelectServiceConfig; +/* This file implements gRFC A2 and the service config spec: + * https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md + * https://github.com/grpc/grpc/blob/master/doc/service_config.md. Each + * function here takes an object with unknown structure and returns its + * specific object type if the input has the right structure, and throws an + * error otherwise. */ +/* The any type is purposely used here. All functions validate their input at + * runtime */ +/* eslint-disable @typescript-eslint/no-explicit-any */ +const os = __nccwpck_require__(70857); +const constants_1 = __nccwpck_require__(84623); +/** + * Recognizes a number with up to 9 digits after the decimal point, followed by + * an "s", representing a number of seconds. + */ +const DURATION_REGEX = /^\d+(\.\d{1,9})?s$/; +/** + * Client language name used for determining whether this client matches a + * `ServiceConfigCanaryConfig`'s `clientLanguage` list. + */ +const CLIENT_LANGUAGE_STRING = 'node'; +function validateName(obj) { + // In this context, and unset field and '' are considered the same + if ('service' in obj && obj.service !== '') { + if (typeof obj.service !== 'string') { + throw new Error(`Invalid method config name: invalid service: expected type string, got ${typeof obj.service}`); + } + if ('method' in obj && obj.method !== '') { + if (typeof obj.method !== 'string') { + throw new Error(`Invalid method config name: invalid method: expected type string, got ${typeof obj.service}`); + } + return { + service: obj.service, + method: obj.method, + }; + } + else { + return { + service: obj.service, + }; + } + } + else { + if ('method' in obj && obj.method !== undefined) { + throw new Error(`Invalid method config name: method set with empty or unset service`); + } + return {}; + } +} +function validateRetryPolicy(obj) { + if (!('maxAttempts' in obj) || + !Number.isInteger(obj.maxAttempts) || + obj.maxAttempts < 2) { + throw new Error('Invalid method config retry policy: maxAttempts must be an integer at least 2'); + } + if (!('initialBackoff' in obj) || + typeof obj.initialBackoff !== 'string' || + !DURATION_REGEX.test(obj.initialBackoff)) { + throw new Error('Invalid method config retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s'); + } + if (!('maxBackoff' in obj) || + typeof obj.maxBackoff !== 'string' || + !DURATION_REGEX.test(obj.maxBackoff)) { + throw new Error('Invalid method config retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s'); + } + if (!('backoffMultiplier' in obj) || + typeof obj.backoffMultiplier !== 'number' || + obj.backoffMultiplier <= 0) { + throw new Error('Invalid method config retry policy: backoffMultiplier must be a number greater than 0'); + } + if (!('retryableStatusCodes' in obj && Array.isArray(obj.retryableStatusCodes))) { + throw new Error('Invalid method config retry policy: retryableStatusCodes is required'); + } + if (obj.retryableStatusCodes.length === 0) { + throw new Error('Invalid method config retry policy: retryableStatusCodes must be non-empty'); + } + for (const value of obj.retryableStatusCodes) { + if (typeof value === 'number') { + if (!Object.values(constants_1.Status).includes(value)) { + throw new Error('Invalid method config retry policy: retryableStatusCodes value not in status code range'); + } + } + else if (typeof value === 'string') { + if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { + throw new Error('Invalid method config retry policy: retryableStatusCodes value not a status code name'); + } + } + else { + throw new Error('Invalid method config retry policy: retryableStatusCodes value must be a string or number'); + } + } + return { + maxAttempts: obj.maxAttempts, + initialBackoff: obj.initialBackoff, + maxBackoff: obj.maxBackoff, + backoffMultiplier: obj.backoffMultiplier, + retryableStatusCodes: obj.retryableStatusCodes, + }; +} +function validateHedgingPolicy(obj) { + if (!('maxAttempts' in obj) || + !Number.isInteger(obj.maxAttempts) || + obj.maxAttempts < 2) { + throw new Error('Invalid method config hedging policy: maxAttempts must be an integer at least 2'); + } + if ('hedgingDelay' in obj && + (typeof obj.hedgingDelay !== 'string' || + !DURATION_REGEX.test(obj.hedgingDelay))) { + throw new Error('Invalid method config hedging policy: hedgingDelay must be a string consisting of a positive integer followed by s'); + } + if ('nonFatalStatusCodes' in obj && Array.isArray(obj.nonFatalStatusCodes)) { + for (const value of obj.nonFatalStatusCodes) { + if (typeof value === 'number') { + if (!Object.values(constants_1.Status).includes(value)) { + throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value not in status code range'); + } + } + else if (typeof value === 'string') { + if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { + throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value not a status code name'); + } + } + else { + throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value must be a string or number'); + } + } + } + const result = { + maxAttempts: obj.maxAttempts, + }; + if (obj.hedgingDelay) { + result.hedgingDelay = obj.hedgingDelay; + } + if (obj.nonFatalStatusCodes) { + result.nonFatalStatusCodes = obj.nonFatalStatusCodes; + } + return result; +} +function validateMethodConfig(obj) { + var _a; + const result = { + name: [], + }; + if (!('name' in obj) || !Array.isArray(obj.name)) { + throw new Error('Invalid method config: invalid name array'); + } + for (const name of obj.name) { + result.name.push(validateName(name)); + } + if ('waitForReady' in obj) { + if (typeof obj.waitForReady !== 'boolean') { + throw new Error('Invalid method config: invalid waitForReady'); + } + result.waitForReady = obj.waitForReady; + } + if ('timeout' in obj) { + if (typeof obj.timeout === 'object') { + if (!('seconds' in obj.timeout) || + !(typeof obj.timeout.seconds === 'number')) { + throw new Error('Invalid method config: invalid timeout.seconds'); + } + if (!('nanos' in obj.timeout) || + !(typeof obj.timeout.nanos === 'number')) { + throw new Error('Invalid method config: invalid timeout.nanos'); + } + result.timeout = obj.timeout; + } + else if (typeof obj.timeout === 'string' && + DURATION_REGEX.test(obj.timeout)) { + const timeoutParts = obj.timeout + .substring(0, obj.timeout.length - 1) + .split('.'); + result.timeout = { + seconds: timeoutParts[0] | 0, + nanos: ((_a = timeoutParts[1]) !== null && _a !== void 0 ? _a : 0) | 0, + }; + } + else { + throw new Error('Invalid method config: invalid timeout'); + } + } + if ('maxRequestBytes' in obj) { + if (typeof obj.maxRequestBytes !== 'number') { + throw new Error('Invalid method config: invalid maxRequestBytes'); + } + result.maxRequestBytes = obj.maxRequestBytes; + } + if ('maxResponseBytes' in obj) { + if (typeof obj.maxResponseBytes !== 'number') { + throw new Error('Invalid method config: invalid maxRequestBytes'); + } + result.maxResponseBytes = obj.maxResponseBytes; + } + if ('retryPolicy' in obj) { + if ('hedgingPolicy' in obj) { + throw new Error('Invalid method config: retryPolicy and hedgingPolicy cannot both be specified'); + } + else { + result.retryPolicy = validateRetryPolicy(obj.retryPolicy); + } + } + else if ('hedgingPolicy' in obj) { + result.hedgingPolicy = validateHedgingPolicy(obj.hedgingPolicy); + } + return result; +} +function validateRetryThrottling(obj) { + if (!('maxTokens' in obj) || + typeof obj.maxTokens !== 'number' || + obj.maxTokens <= 0 || + obj.maxTokens > 1000) { + throw new Error('Invalid retryThrottling: maxTokens must be a number in (0, 1000]'); + } + if (!('tokenRatio' in obj) || + typeof obj.tokenRatio !== 'number' || + obj.tokenRatio <= 0) { + throw new Error('Invalid retryThrottling: tokenRatio must be a number greater than 0'); + } + return { + maxTokens: +obj.maxTokens.toFixed(3), + tokenRatio: +obj.tokenRatio.toFixed(3), + }; +} +function validateLoadBalancingConfig(obj) { + if (!(typeof obj === 'object' && obj !== null)) { + throw new Error(`Invalid loadBalancingConfig: unexpected type ${typeof obj}`); + } + const keys = Object.keys(obj); + if (keys.length > 1) { + throw new Error(`Invalid loadBalancingConfig: unexpected multiple keys ${keys}`); + } + if (keys.length === 0) { + throw new Error('Invalid loadBalancingConfig: load balancing policy name required'); + } + return { + [keys[0]]: obj[keys[0]], + }; +} +function validateServiceConfig(obj) { + const result = { + loadBalancingConfig: [], + methodConfig: [], + }; + if ('loadBalancingPolicy' in obj) { + if (typeof obj.loadBalancingPolicy === 'string') { + result.loadBalancingPolicy = obj.loadBalancingPolicy; + } + else { + throw new Error('Invalid service config: invalid loadBalancingPolicy'); + } + } + if ('loadBalancingConfig' in obj) { + if (Array.isArray(obj.loadBalancingConfig)) { + for (const config of obj.loadBalancingConfig) { + result.loadBalancingConfig.push(validateLoadBalancingConfig(config)); + } + } + else { + throw new Error('Invalid service config: invalid loadBalancingConfig'); + } + } + if ('methodConfig' in obj) { + if (Array.isArray(obj.methodConfig)) { + for (const methodConfig of obj.methodConfig) { + result.methodConfig.push(validateMethodConfig(methodConfig)); + } + } + } + if ('retryThrottling' in obj) { + result.retryThrottling = validateRetryThrottling(obj.retryThrottling); + } + // Validate method name uniqueness + const seenMethodNames = []; + for (const methodConfig of result.methodConfig) { + for (const name of methodConfig.name) { + for (const seenName of seenMethodNames) { + if (name.service === seenName.service && + name.method === seenName.method) { + throw new Error(`Invalid service config: duplicate name ${name.service}/${name.method}`); + } + } + seenMethodNames.push(name); + } + } + return result; +} +function validateCanaryConfig(obj) { + if (!('serviceConfig' in obj)) { + throw new Error('Invalid service config choice: missing service config'); + } + const result = { + serviceConfig: validateServiceConfig(obj.serviceConfig), + }; + if ('clientLanguage' in obj) { + if (Array.isArray(obj.clientLanguage)) { + result.clientLanguage = []; + for (const lang of obj.clientLanguage) { + if (typeof lang === 'string') { + result.clientLanguage.push(lang); + } + else { + throw new Error('Invalid service config choice: invalid clientLanguage'); + } + } + } + else { + throw new Error('Invalid service config choice: invalid clientLanguage'); + } + } + if ('clientHostname' in obj) { + if (Array.isArray(obj.clientHostname)) { + result.clientHostname = []; + for (const lang of obj.clientHostname) { + if (typeof lang === 'string') { + result.clientHostname.push(lang); + } + else { + throw new Error('Invalid service config choice: invalid clientHostname'); + } + } + } + else { + throw new Error('Invalid service config choice: invalid clientHostname'); + } + } + if ('percentage' in obj) { + if (typeof obj.percentage === 'number' && + 0 <= obj.percentage && + obj.percentage <= 100) { + result.percentage = obj.percentage; + } + else { + throw new Error('Invalid service config choice: invalid percentage'); + } + } + // Validate that no unexpected fields are present + const allowedFields = [ + 'clientLanguage', + 'percentage', + 'clientHostname', + 'serviceConfig', + ]; + for (const field in obj) { + if (!allowedFields.includes(field)) { + throw new Error(`Invalid service config choice: unexpected field ${field}`); + } + } + return result; +} +function validateAndSelectCanaryConfig(obj, percentage) { + if (!Array.isArray(obj)) { + throw new Error('Invalid service config list'); + } + for (const config of obj) { + const validatedConfig = validateCanaryConfig(config); + /* For each field, we check if it is present, then only discard the + * config if the field value does not match the current client */ + if (typeof validatedConfig.percentage === 'number' && + percentage > validatedConfig.percentage) { + continue; + } + if (Array.isArray(validatedConfig.clientHostname)) { + let hostnameMatched = false; + for (const hostname of validatedConfig.clientHostname) { + if (hostname === os.hostname()) { + hostnameMatched = true; + } + } + if (!hostnameMatched) { + continue; + } + } + if (Array.isArray(validatedConfig.clientLanguage)) { + let languageMatched = false; + for (const language of validatedConfig.clientLanguage) { + if (language === CLIENT_LANGUAGE_STRING) { + languageMatched = true; + } + } + if (!languageMatched) { + continue; + } + } + return validatedConfig.serviceConfig; + } + throw new Error('No matching service config found'); +} +/** + * Find the "grpc_config" record among the TXT records, parse its value as JSON, validate its contents, + * and select a service config with selection fields that all match this client. Most of these steps + * can fail with an error; the caller must handle any errors thrown this way. + * @param txtRecord The TXT record array that is output from a successful call to dns.resolveTxt + * @param percentage A number chosen from the range [0, 100) that is used to select which config to use + * @return The service configuration to use, given the percentage value, or null if the service config + * data has a valid format but none of the options match the current client. + */ +function extractAndSelectServiceConfig(txtRecord, percentage) { + for (const record of txtRecord) { + if (record.length > 0 && record[0].startsWith('grpc_config=')) { + /* Treat the list of strings in this record as a single string and remove + * "grpc_config=" from the beginning. The rest should be a JSON string */ + const recordString = record.join('').substring('grpc_config='.length); + const recordJson = JSON.parse(recordString); + return validateAndSelectCanaryConfig(recordJson, percentage); + } + } + return null; +} +//# sourceMappingURL=service-config.js.map + +/***/ }), + +/***/ 84437: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SingleSubchannelChannel = void 0; +const call_number_1 = __nccwpck_require__(50256); +const channelz_1 = __nccwpck_require__(50379); +const compression_filter_1 = __nccwpck_require__(39415); +const connectivity_state_1 = __nccwpck_require__(63827); +const constants_1 = __nccwpck_require__(84623); +const control_plane_status_1 = __nccwpck_require__(14519); +const deadline_1 = __nccwpck_require__(27168); +const filter_stack_1 = __nccwpck_require__(5427); +const metadata_1 = __nccwpck_require__(89173); +const resolver_1 = __nccwpck_require__(30842); +const uri_parser_1 = __nccwpck_require__(70210); +class SubchannelCallWrapper { + constructor(subchannel, method, filterStackFactory, options, callNumber) { + var _a, _b; + this.subchannel = subchannel; + this.method = method; + this.options = options; + this.callNumber = callNumber; + this.childCall = null; + this.pendingMessage = null; + this.readPending = false; + this.halfClosePending = false; + this.pendingStatus = null; + this.readFilterPending = false; + this.writeFilterPending = false; + const splitPath = this.method.split('/'); + let serviceName = ''; + /* The standard path format is "/{serviceName}/{methodName}", so if we split + * by '/', the first item should be empty and the second should be the + * service name */ + if (splitPath.length >= 2) { + serviceName = splitPath[1]; + } + const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.options.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : 'localhost'; + /* Currently, call credentials are only allowed on HTTPS connections, so we + * can assume that the scheme is "https" */ + this.serviceUrl = `https://${hostname}/${serviceName}`; + const timeout = (0, deadline_1.getRelativeTimeout)(options.deadline); + if (timeout !== Infinity) { + if (timeout <= 0) { + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); + } + else { + setTimeout(() => { + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); + }, timeout); + } + } + this.filterStack = filterStackFactory.createFilter(); + } + cancelWithStatus(status, details) { + if (this.childCall) { + this.childCall.cancelWithStatus(status, details); + } + else { + this.pendingStatus = { + code: status, + details: details, + metadata: new metadata_1.Metadata() + }; + } + } + getPeer() { + var _a, _b; + return (_b = (_a = this.childCall) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.subchannel.getAddress(); + } + async start(metadata, listener) { + if (this.pendingStatus) { + listener.onReceiveStatus(this.pendingStatus); + return; + } + if (this.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { + listener.onReceiveStatus({ + code: constants_1.Status.UNAVAILABLE, + details: 'Subchannel not ready', + metadata: new metadata_1.Metadata() + }); + return; + } + const filteredMetadata = await this.filterStack.sendMetadata(Promise.resolve(metadata)); + let credsMetadata; + try { + credsMetadata = await this.subchannel.getCallCredentials() + .generateMetadata({ method_name: this.method, service_url: this.serviceUrl }); + } + catch (e) { + const error = e; + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(typeof error.code === 'number' ? error.code : constants_1.Status.UNKNOWN, `Getting metadata from plugin failed with error: ${error.message}`); + listener.onReceiveStatus({ + code: code, + details: details, + metadata: new metadata_1.Metadata(), + }); + return; + } + credsMetadata.merge(filteredMetadata); + const childListener = { + onReceiveMetadata: async (metadata) => { + listener.onReceiveMetadata(await this.filterStack.receiveMetadata(metadata)); + }, + onReceiveMessage: async (message) => { + this.readFilterPending = true; + const filteredMessage = await this.filterStack.receiveMessage(message); + this.readFilterPending = false; + listener.onReceiveMessage(filteredMessage); + if (this.pendingStatus) { + listener.onReceiveStatus(this.pendingStatus); + } + }, + onReceiveStatus: async (status) => { + const filteredStatus = await this.filterStack.receiveTrailers(status); + if (this.readFilterPending) { + this.pendingStatus = filteredStatus; + } + else { + listener.onReceiveStatus(filteredStatus); + } + } + }; + this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener); + if (this.readPending) { + this.childCall.startRead(); + } + if (this.pendingMessage) { + this.childCall.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message); + } + if (this.halfClosePending && !this.writeFilterPending) { + this.childCall.halfClose(); + } + } + async sendMessageWithContext(context, message) { + this.writeFilterPending = true; + const filteredMessage = await this.filterStack.sendMessage(Promise.resolve({ message: message, flags: context.flags })); + this.writeFilterPending = false; + if (this.childCall) { + this.childCall.sendMessageWithContext(context, filteredMessage.message); + if (this.halfClosePending) { + this.childCall.halfClose(); + } + } + else { + this.pendingMessage = { context, message: filteredMessage.message }; + } + } + startRead() { + if (this.childCall) { + this.childCall.startRead(); + } + else { + this.readPending = true; + } + } + halfClose() { + if (this.childCall && !this.writeFilterPending) { + this.childCall.halfClose(); + } + else { + this.halfClosePending = true; + } + } + getCallNumber() { + return this.callNumber; + } + setCredentials(credentials) { + throw new Error("Method not implemented."); + } + getAuthContext() { + if (this.childCall) { + return this.childCall.getAuthContext(); + } + else { + return null; + } + } +} +class SingleSubchannelChannel { + constructor(subchannel, target, options) { + this.subchannel = subchannel; + this.target = target; + this.channelzEnabled = false; + this.channelzTrace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.channelzEnabled = options['grpc.enable_channelz'] !== 0; + this.channelzRef = (0, channelz_1.registerChannelzChannel)((0, uri_parser_1.uriToString)(target), () => ({ + target: `${(0, uri_parser_1.uriToString)(target)} (${subchannel.getAddress()})`, + state: this.subchannel.getConnectivityState(), + trace: this.channelzTrace, + callTracker: this.callTracker, + children: this.childrenTracker.getChildLists() + }), this.channelzEnabled); + if (this.channelzEnabled) { + this.childrenTracker.refChild(subchannel.getChannelzRef()); + } + this.filterStackFactory = new filter_stack_1.FilterStackFactory([new compression_filter_1.CompressionFilterFactory(this, options)]); + } + close() { + if (this.channelzEnabled) { + this.childrenTracker.unrefChild(this.subchannel.getChannelzRef()); + } + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + } + getTarget() { + return (0, uri_parser_1.uriToString)(this.target); + } + getConnectivityState(tryToConnect) { + throw new Error("Method not implemented."); + } + watchConnectivityState(currentState, deadline, callback) { + throw new Error("Method not implemented."); + } + getChannelzRef() { + return this.channelzRef; + } + createCall(method, deadline) { + const callOptions = { + deadline: deadline, + host: (0, resolver_1.getDefaultAuthority)(this.target), + flags: constants_1.Propagate.DEFAULTS, + parentCall: null + }; + return new SubchannelCallWrapper(this.subchannel, method, this.filterStackFactory, callOptions, (0, call_number_1.getNextCallNumber)()); + } +} +exports.SingleSubchannelChannel = SingleSubchannelChannel; +//# sourceMappingURL=single-subchannel-channel.js.map + +/***/ }), + +/***/ 55544: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StatusBuilder = void 0; +/** + * A builder for gRPC status objects. + */ +class StatusBuilder { + constructor() { + this.code = null; + this.details = null; + this.metadata = null; + } + /** + * Adds a status code to the builder. + */ + withCode(code) { + this.code = code; + return this; + } + /** + * Adds details to the builder. + */ + withDetails(details) { + this.details = details; + return this; + } + /** + * Adds metadata to the builder. + */ + withMetadata(metadata) { + this.metadata = metadata; + return this; + } + /** + * Builds the status object. + */ + build() { + const status = {}; + if (this.code !== null) { + status.code = this.code; + } + if (this.details !== null) { + status.details = this.details; + } + if (this.metadata !== null) { + status.metadata = this.metadata; + } + return status; + } +} +exports.StatusBuilder = StatusBuilder; +//# sourceMappingURL=status-builder.js.map + +/***/ }), + +/***/ 78913: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StreamDecoder = void 0; +var ReadState; +(function (ReadState) { + ReadState[ReadState["NO_DATA"] = 0] = "NO_DATA"; + ReadState[ReadState["READING_SIZE"] = 1] = "READING_SIZE"; + ReadState[ReadState["READING_MESSAGE"] = 2] = "READING_MESSAGE"; +})(ReadState || (ReadState = {})); +class StreamDecoder { + constructor(maxReadMessageLength) { + this.maxReadMessageLength = maxReadMessageLength; + this.readState = ReadState.NO_DATA; + this.readCompressFlag = Buffer.alloc(1); + this.readPartialSize = Buffer.alloc(4); + this.readSizeRemaining = 4; + this.readMessageSize = 0; + this.readPartialMessage = []; + this.readMessageRemaining = 0; + } + write(data) { + let readHead = 0; + let toRead; + const result = []; + while (readHead < data.length) { + switch (this.readState) { + case ReadState.NO_DATA: + this.readCompressFlag = data.slice(readHead, readHead + 1); + readHead += 1; + this.readState = ReadState.READING_SIZE; + this.readPartialSize.fill(0); + this.readSizeRemaining = 4; + this.readMessageSize = 0; + this.readMessageRemaining = 0; + this.readPartialMessage = []; + break; + case ReadState.READING_SIZE: + toRead = Math.min(data.length - readHead, this.readSizeRemaining); + data.copy(this.readPartialSize, 4 - this.readSizeRemaining, readHead, readHead + toRead); + this.readSizeRemaining -= toRead; + readHead += toRead; + // readSizeRemaining >=0 here + if (this.readSizeRemaining === 0) { + this.readMessageSize = this.readPartialSize.readUInt32BE(0); + if (this.maxReadMessageLength !== -1 && this.readMessageSize > this.maxReadMessageLength) { + throw new Error(`Received message larger than max (${this.readMessageSize} vs ${this.maxReadMessageLength})`); + } + this.readMessageRemaining = this.readMessageSize; + if (this.readMessageRemaining > 0) { + this.readState = ReadState.READING_MESSAGE; + } + else { + const message = Buffer.concat([this.readCompressFlag, this.readPartialSize], 5); + this.readState = ReadState.NO_DATA; + result.push(message); + } + } + break; + case ReadState.READING_MESSAGE: + toRead = Math.min(data.length - readHead, this.readMessageRemaining); + this.readPartialMessage.push(data.slice(readHead, readHead + toRead)); + this.readMessageRemaining -= toRead; + readHead += toRead; + // readMessageRemaining >=0 here + if (this.readMessageRemaining === 0) { + // At this point, we have read a full message + const framedMessageBuffers = [ + this.readCompressFlag, + this.readPartialSize, + ].concat(this.readPartialMessage); + const framedMessage = Buffer.concat(framedMessageBuffers, this.readMessageSize + 5); + this.readState = ReadState.NO_DATA; + result.push(framedMessage); + } + break; + default: + throw new Error('Unexpected read state'); + } + } + return result; + } +} +exports.StreamDecoder = StreamDecoder; +//# sourceMappingURL=stream-decoder.js.map + +/***/ }), + +/***/ 95080: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EndpointMap = void 0; +exports.isTcpSubchannelAddress = isTcpSubchannelAddress; +exports.subchannelAddressEqual = subchannelAddressEqual; +exports.subchannelAddressToString = subchannelAddressToString; +exports.stringToSubchannelAddress = stringToSubchannelAddress; +exports.endpointEqual = endpointEqual; +exports.endpointToString = endpointToString; +exports.endpointHasAddress = endpointHasAddress; +const net_1 = __nccwpck_require__(69278); +function isTcpSubchannelAddress(address) { + return 'port' in address; +} +function subchannelAddressEqual(address1, address2) { + if (!address1 && !address2) { + return true; + } + if (!address1 || !address2) { + return false; + } + if (isTcpSubchannelAddress(address1)) { + return (isTcpSubchannelAddress(address2) && + address1.host === address2.host && + address1.port === address2.port); + } + else { + return !isTcpSubchannelAddress(address2) && address1.path === address2.path; + } +} +function subchannelAddressToString(address) { + if (isTcpSubchannelAddress(address)) { + if ((0, net_1.isIPv6)(address.host)) { + return '[' + address.host + ']:' + address.port; + } + else { + return address.host + ':' + address.port; + } + } + else { + return address.path; + } +} +const DEFAULT_PORT = 443; +function stringToSubchannelAddress(addressString, port) { + if ((0, net_1.isIP)(addressString)) { + return { + host: addressString, + port: port !== null && port !== void 0 ? port : DEFAULT_PORT, + }; + } + else { + return { + path: addressString, + }; + } +} +function endpointEqual(endpoint1, endpoint2) { + if (endpoint1.addresses.length !== endpoint2.addresses.length) { + return false; + } + for (let i = 0; i < endpoint1.addresses.length; i++) { + if (!subchannelAddressEqual(endpoint1.addresses[i], endpoint2.addresses[i])) { + return false; + } + } + return true; +} +function endpointToString(endpoint) { + return ('[' + endpoint.addresses.map(subchannelAddressToString).join(', ') + ']'); +} +function endpointHasAddress(endpoint, expectedAddress) { + for (const address of endpoint.addresses) { + if (subchannelAddressEqual(address, expectedAddress)) { + return true; + } + } + return false; +} +function endpointEqualUnordered(endpoint1, endpoint2) { + if (endpoint1.addresses.length !== endpoint2.addresses.length) { + return false; + } + for (const address1 of endpoint1.addresses) { + let matchFound = false; + for (const address2 of endpoint2.addresses) { + if (subchannelAddressEqual(address1, address2)) { + matchFound = true; + break; + } + } + if (!matchFound) { + return false; + } + } + return true; +} +class EndpointMap { + constructor() { + this.map = new Set(); + } + get size() { + return this.map.size; + } + getForSubchannelAddress(address) { + for (const entry of this.map) { + if (endpointHasAddress(entry.key, address)) { + return entry.value; + } + } + return undefined; + } + /** + * Delete any entries in this map with keys that are not in endpoints + * @param endpoints + */ + deleteMissing(endpoints) { + const removedValues = []; + for (const entry of this.map) { + let foundEntry = false; + for (const endpoint of endpoints) { + if (endpointEqualUnordered(endpoint, entry.key)) { + foundEntry = true; + } + } + if (!foundEntry) { + removedValues.push(entry.value); + this.map.delete(entry); + } + } + return removedValues; + } + get(endpoint) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + return entry.value; + } + } + return undefined; + } + set(endpoint, mapEntry) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + entry.value = mapEntry; + return; + } + } + this.map.add({ key: endpoint, value: mapEntry }); + } + delete(endpoint) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + this.map.delete(entry); + return; + } + } + } + has(endpoint) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + return true; + } + } + return false; + } + clear() { + this.map.clear(); + } + *keys() { + for (const entry of this.map) { + yield entry.key; + } + } + *values() { + for (const entry of this.map) { + yield entry.value; + } + } + *entries() { + for (const entry of this.map) { + yield [entry.key, entry.value]; + } + } +} +exports.EndpointMap = EndpointMap; +//# sourceMappingURL=subchannel-address.js.map + +/***/ }), + +/***/ 95666: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Http2SubchannelCall = void 0; +const http2 = __nccwpck_require__(85675); +const os = __nccwpck_require__(70857); +const constants_1 = __nccwpck_require__(84623); +const metadata_1 = __nccwpck_require__(89173); +const stream_decoder_1 = __nccwpck_require__(78913); +const logging = __nccwpck_require__(26239); +const constants_2 = __nccwpck_require__(84623); +const TRACER_NAME = 'subchannel_call'; +/** + * Should do approximately the same thing as util.getSystemErrorName but the + * TypeScript types don't have that function for some reason so I just made my + * own. + * @param errno + */ +function getSystemErrorName(errno) { + for (const [name, num] of Object.entries(os.constants.errno)) { + if (num === errno) { + return name; + } + } + return 'Unknown system error ' + errno; +} +function mapHttpStatusCode(code) { + const details = `Received HTTP status code ${code}`; + let mappedStatusCode; + switch (code) { + // TODO(murgatroid99): handle 100 and 101 + case 400: + mappedStatusCode = constants_1.Status.INTERNAL; + break; + case 401: + mappedStatusCode = constants_1.Status.UNAUTHENTICATED; + break; + case 403: + mappedStatusCode = constants_1.Status.PERMISSION_DENIED; + break; + case 404: + mappedStatusCode = constants_1.Status.UNIMPLEMENTED; + break; + case 429: + case 502: + case 503: + case 504: + mappedStatusCode = constants_1.Status.UNAVAILABLE; + break; + default: + mappedStatusCode = constants_1.Status.UNKNOWN; + } + return { + code: mappedStatusCode, + details: details, + metadata: new metadata_1.Metadata() + }; +} +class Http2SubchannelCall { + constructor(http2Stream, callEventTracker, listener, transport, callId) { + var _a; + this.http2Stream = http2Stream; + this.callEventTracker = callEventTracker; + this.listener = listener; + this.transport = transport; + this.callId = callId; + this.isReadFilterPending = false; + this.isPushPending = false; + this.canPush = false; + /** + * Indicates that an 'end' event has come from the http2 stream, so there + * will be no more data events. + */ + this.readsClosed = false; + this.statusOutput = false; + this.unpushedReadMessages = []; + // This is populated (non-null) if and only if the call has ended + this.finalStatus = null; + this.internalError = null; + this.serverEndedCall = false; + this.connectionDropped = false; + const maxReceiveMessageLength = (_a = transport.getOptions()['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; + this.decoder = new stream_decoder_1.StreamDecoder(maxReceiveMessageLength); + http2Stream.on('response', (headers, flags) => { + let headersString = ''; + for (const header of Object.keys(headers)) { + headersString += '\t\t' + header + ': ' + headers[header] + '\n'; + } + this.trace('Received server headers:\n' + headersString); + this.httpStatusCode = headers[':status']; + if (flags & http2.constants.NGHTTP2_FLAG_END_STREAM) { + this.handleTrailers(headers); + } + else { + let metadata; + try { + metadata = metadata_1.Metadata.fromHttp2Headers(headers); + } + catch (error) { + this.endCall({ + code: constants_1.Status.UNKNOWN, + details: error.message, + metadata: new metadata_1.Metadata(), + }); + return; + } + this.listener.onReceiveMetadata(metadata); + } + }); + http2Stream.on('trailers', (headers) => { + this.handleTrailers(headers); + }); + http2Stream.on('data', (data) => { + /* If the status has already been output, allow the http2 stream to + * drain without processing the data. */ + if (this.statusOutput) { + return; + } + this.trace('receive HTTP/2 data frame of length ' + data.length); + let messages; + try { + messages = this.decoder.write(data); + } + catch (e) { + /* Some servers send HTML error pages along with HTTP status codes. + * When the client attempts to parse this as a length-delimited + * message, the parsed message size is greater than the default limit, + * resulting in a message decoding error. In that situation, the HTTP + * error code information is more useful to the user than the + * RESOURCE_EXHAUSTED error is, so we report that instead. Normally, + * we delay processing the HTTP status until after the stream ends, to + * prioritize reporting the gRPC status from trailers if it is present, + * but when there is a message parsing error we end the stream early + * before processing trailers. */ + if (this.httpStatusCode !== undefined && this.httpStatusCode !== 200) { + const mappedStatus = mapHttpStatusCode(this.httpStatusCode); + this.cancelWithStatus(mappedStatus.code, mappedStatus.details); + } + else { + this.cancelWithStatus(constants_1.Status.RESOURCE_EXHAUSTED, e.message); + } + return; + } + for (const message of messages) { + this.trace('parsed message of length ' + message.length); + this.callEventTracker.addMessageReceived(); + this.tryPush(message); + } + }); + http2Stream.on('end', () => { + this.readsClosed = true; + this.maybeOutputStatus(); + }); + http2Stream.on('close', () => { + this.serverEndedCall = true; + /* Use process.next tick to ensure that this code happens after any + * "error" event that may be emitted at about the same time, so that + * we can bubble up the error message from that event. */ + process.nextTick(() => { + var _a; + this.trace('HTTP/2 stream closed with code ' + http2Stream.rstCode); + /* If we have a final status with an OK status code, that means that + * we have received all of the messages and we have processed the + * trailers and the call completed successfully, so it doesn't matter + * how the stream ends after that */ + if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { + return; + } + let code; + let details = ''; + switch (http2Stream.rstCode) { + case http2.constants.NGHTTP2_NO_ERROR: + /* If we get a NO_ERROR code and we already have a status, the + * stream completed properly and we just haven't fully processed + * it yet */ + if (this.finalStatus !== null) { + return; + } + if (this.httpStatusCode && this.httpStatusCode !== 200) { + const mappedStatus = mapHttpStatusCode(this.httpStatusCode); + code = mappedStatus.code; + details = mappedStatus.details; + } + else { + code = constants_1.Status.INTERNAL; + details = `Received RST_STREAM with code ${http2Stream.rstCode} (Call ended without gRPC status)`; + } + break; + case http2.constants.NGHTTP2_REFUSED_STREAM: + code = constants_1.Status.UNAVAILABLE; + details = 'Stream refused by server'; + break; + case http2.constants.NGHTTP2_CANCEL: + /* Bug reports indicate that Node synthesizes a NGHTTP2_CANCEL + * code from connection drops. We want to prioritize reporting + * an unavailable status when that happens. */ + if (this.connectionDropped) { + code = constants_1.Status.UNAVAILABLE; + details = 'Connection dropped'; + } + else { + code = constants_1.Status.CANCELLED; + details = 'Call cancelled'; + } + break; + case http2.constants.NGHTTP2_ENHANCE_YOUR_CALM: + code = constants_1.Status.RESOURCE_EXHAUSTED; + details = 'Bandwidth exhausted or memory limit exceeded'; + break; + case http2.constants.NGHTTP2_INADEQUATE_SECURITY: + code = constants_1.Status.PERMISSION_DENIED; + details = 'Protocol not secure enough'; + break; + case http2.constants.NGHTTP2_INTERNAL_ERROR: + code = constants_1.Status.INTERNAL; + if (this.internalError === null) { + /* This error code was previously handled in the default case, and + * there are several instances of it online, so I wanted to + * preserve the original error message so that people find existing + * information in searches, but also include the more recognizable + * "Internal server error" message. */ + details = `Received RST_STREAM with code ${http2Stream.rstCode} (Internal server error)`; + } + else { + if (this.internalError.code === 'ECONNRESET' || + this.internalError.code === 'ETIMEDOUT') { + code = constants_1.Status.UNAVAILABLE; + details = this.internalError.message; + } + else { + /* The "Received RST_STREAM with code ..." error is preserved + * here for continuity with errors reported online, but the + * error message at the end will probably be more relevant in + * most cases. */ + details = `Received RST_STREAM with code ${http2Stream.rstCode} triggered by internal client error: ${this.internalError.message}`; + } + } + break; + default: + code = constants_1.Status.INTERNAL; + details = `Received RST_STREAM with code ${http2Stream.rstCode}`; + } + // This is a no-op if trailers were received at all. + // This is OK, because status codes emitted here correspond to more + // catastrophic issues that prevent us from receiving trailers in the + // first place. + this.endCall({ + code, + details, + metadata: new metadata_1.Metadata(), + rstCode: http2Stream.rstCode, + }); + }); + }); + http2Stream.on('error', (err) => { + /* We need an error handler here to stop "Uncaught Error" exceptions + * from bubbling up. However, errors here should all correspond to + * "close" events, where we will handle the error more granularly */ + /* Specifically looking for stream errors that were *not* constructed + * from a RST_STREAM response here: + * https://github.com/nodejs/node/blob/8b8620d580314050175983402dfddf2674e8e22a/lib/internal/http2/core.js#L2267 + */ + if (err.code !== 'ERR_HTTP2_STREAM_ERROR') { + this.trace('Node error event: message=' + + err.message + + ' code=' + + err.code + + ' errno=' + + getSystemErrorName(err.errno) + + ' syscall=' + + err.syscall); + this.internalError = err; + } + this.callEventTracker.onStreamEnd(false); + }); + } + getDeadlineInfo() { + return [`remote_addr=${this.getPeer()}`]; + } + onDisconnect() { + this.connectionDropped = true; + /* Give the call an event loop cycle to finish naturally before reporting + * the disconnection as an error. */ + setImmediate(() => { + this.endCall({ + code: constants_1.Status.UNAVAILABLE, + details: 'Connection dropped', + metadata: new metadata_1.Metadata(), + }); + }); + } + outputStatus() { + /* Precondition: this.finalStatus !== null */ + if (!this.statusOutput) { + this.statusOutput = true; + this.trace('ended with status: code=' + + this.finalStatus.code + + ' details="' + + this.finalStatus.details + + '"'); + this.callEventTracker.onCallEnd(this.finalStatus); + /* We delay the actual action of bubbling up the status to insulate the + * cleanup code in this class from any errors that may be thrown in the + * upper layers as a result of bubbling up the status. In particular, + * if the status is not OK, the "error" event may be emitted + * synchronously at the top level, which will result in a thrown error if + * the user does not handle that event. */ + process.nextTick(() => { + this.listener.onReceiveStatus(this.finalStatus); + }); + /* Leave the http2 stream in flowing state to drain incoming messages, to + * ensure that the stream closure completes. The call stream already does + * not push more messages after the status is output, so the messages go + * nowhere either way. */ + this.http2Stream.resume(); + } + } + trace(text) { + logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callId + '] ' + text); + } + /** + * On first call, emits a 'status' event with the given StatusObject. + * Subsequent calls are no-ops. + * @param status The status of the call. + */ + endCall(status) { + /* If the status is OK and a new status comes in (e.g. from a + * deserialization failure), that new status takes priority */ + if (this.finalStatus === null || this.finalStatus.code === constants_1.Status.OK) { + this.finalStatus = status; + this.maybeOutputStatus(); + } + this.destroyHttp2Stream(); + } + maybeOutputStatus() { + if (this.finalStatus !== null) { + /* The combination check of readsClosed and that the two message buffer + * arrays are empty checks that there all incoming data has been fully + * processed */ + if (this.finalStatus.code !== constants_1.Status.OK || + (this.readsClosed && + this.unpushedReadMessages.length === 0 && + !this.isReadFilterPending && + !this.isPushPending)) { + this.outputStatus(); + } + } + } + push(message) { + this.trace('pushing to reader message of length ' + + (message instanceof Buffer ? message.length : null)); + this.canPush = false; + this.isPushPending = true; + process.nextTick(() => { + this.isPushPending = false; + /* If we have already output the status any later messages should be + * ignored, and can cause out-of-order operation errors higher up in the + * stack. Checking as late as possible here to avoid any race conditions. + */ + if (this.statusOutput) { + return; + } + this.listener.onReceiveMessage(message); + this.maybeOutputStatus(); + }); + } + tryPush(messageBytes) { + if (this.canPush) { + this.http2Stream.pause(); + this.push(messageBytes); + } + else { + this.trace('unpushedReadMessages.push message of length ' + messageBytes.length); + this.unpushedReadMessages.push(messageBytes); + } + } + handleTrailers(headers) { + this.serverEndedCall = true; + this.callEventTracker.onStreamEnd(true); + let headersString = ''; + for (const header of Object.keys(headers)) { + headersString += '\t\t' + header + ': ' + headers[header] + '\n'; + } + this.trace('Received server trailers:\n' + headersString); + let metadata; + try { + metadata = metadata_1.Metadata.fromHttp2Headers(headers); + } + catch (e) { + metadata = new metadata_1.Metadata(); + } + const metadataMap = metadata.getMap(); + let status; + if (typeof metadataMap['grpc-status'] === 'string') { + const receivedStatus = Number(metadataMap['grpc-status']); + this.trace('received status code ' + receivedStatus + ' from server'); + metadata.remove('grpc-status'); + let details = ''; + if (typeof metadataMap['grpc-message'] === 'string') { + try { + details = decodeURI(metadataMap['grpc-message']); + } + catch (e) { + details = metadataMap['grpc-message']; + } + metadata.remove('grpc-message'); + this.trace('received status details string "' + details + '" from server'); + } + status = { + code: receivedStatus, + details: details, + metadata: metadata + }; + } + else if (this.httpStatusCode) { + status = mapHttpStatusCode(this.httpStatusCode); + status.metadata = metadata; + } + else { + status = { + code: constants_1.Status.UNKNOWN, + details: 'No status information received', + metadata: metadata + }; + } + // This is a no-op if the call was already ended when handling headers. + this.endCall(status); + } + destroyHttp2Stream() { + var _a; + // The http2 stream could already have been destroyed if cancelWithStatus + // is called in response to an internal http2 error. + if (this.http2Stream.destroyed) { + return; + } + /* If the server ended the call, sending an RST_STREAM is redundant, so we + * just half close on the client side instead to finish closing the stream. + */ + if (this.serverEndedCall) { + this.http2Stream.end(); + } + else { + /* If the call has ended with an OK status, communicate that when closing + * the stream, partly to avoid a situation in which we detect an error + * RST_STREAM as a result after we have the status */ + let code; + if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { + code = http2.constants.NGHTTP2_NO_ERROR; + } + else { + code = http2.constants.NGHTTP2_CANCEL; + } + this.trace('close http2 stream with code ' + code); + this.http2Stream.close(code); + } + } + cancelWithStatus(status, details) { + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + this.endCall({ code: status, details, metadata: new metadata_1.Metadata() }); + } + getStatus() { + return this.finalStatus; + } + getPeer() { + return this.transport.getPeerName(); + } + getCallNumber() { + return this.callId; + } + getAuthContext() { + return this.transport.getAuthContext(); + } + startRead() { + /* If the stream has ended with an error, we should not emit any more + * messages and we should communicate that the stream has ended */ + if (this.finalStatus !== null && this.finalStatus.code !== constants_1.Status.OK) { + this.readsClosed = true; + this.maybeOutputStatus(); + return; + } + this.canPush = true; + if (this.unpushedReadMessages.length > 0) { + const nextMessage = this.unpushedReadMessages.shift(); + this.push(nextMessage); + return; + } + /* Only resume reading from the http2Stream if we don't have any pending + * messages to emit */ + this.http2Stream.resume(); + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + const cb = (error) => { + /* nextTick here ensures that no stream action can be taken in the call + * stack of the write callback, in order to hopefully work around + * https://github.com/nodejs/node/issues/49147 */ + process.nextTick(() => { + var _a; + let code = constants_1.Status.UNAVAILABLE; + if ((error === null || error === void 0 ? void 0 : error.code) === + 'ERR_STREAM_WRITE_AFTER_END') { + code = constants_1.Status.INTERNAL; + } + if (error) { + this.cancelWithStatus(code, `Write error: ${error.message}`); + } + (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); + }); + }; + this.trace('sending data chunk of length ' + message.length); + this.callEventTracker.addMessageSent(); + try { + this.http2Stream.write(message, cb); + } + catch (error) { + this.endCall({ + code: constants_1.Status.UNAVAILABLE, + details: `Write failed with error ${error.message}`, + metadata: new metadata_1.Metadata(), + }); + } + } + halfClose() { + this.trace('end() called'); + this.trace('calling end() on HTTP/2 stream'); + this.http2Stream.end(); + } +} +exports.Http2SubchannelCall = Http2SubchannelCall; +//# sourceMappingURL=subchannel-call.js.map + +/***/ }), + +/***/ 45631: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseSubchannelWrapper = void 0; +class BaseSubchannelWrapper { + constructor(child) { + this.child = child; + this.healthy = true; + this.healthListeners = new Set(); + this.refcount = 0; + this.dataWatchers = new Set(); + child.addHealthStateWatcher(childHealthy => { + /* A change to the child health state only affects this wrapper's overall + * health state if this wrapper is reporting healthy. */ + if (this.healthy) { + this.updateHealthListeners(); + } + }); + } + updateHealthListeners() { + for (const listener of this.healthListeners) { + listener(this.isHealthy()); + } + } + getConnectivityState() { + return this.child.getConnectivityState(); + } + addConnectivityStateListener(listener) { + this.child.addConnectivityStateListener(listener); + } + removeConnectivityStateListener(listener) { + this.child.removeConnectivityStateListener(listener); + } + startConnecting() { + this.child.startConnecting(); + } + getAddress() { + return this.child.getAddress(); + } + throttleKeepalive(newKeepaliveTime) { + this.child.throttleKeepalive(newKeepaliveTime); + } + ref() { + this.child.ref(); + this.refcount += 1; + } + unref() { + this.child.unref(); + this.refcount -= 1; + if (this.refcount === 0) { + this.destroy(); + } + } + destroy() { + for (const watcher of this.dataWatchers) { + watcher.destroy(); + } + } + getChannelzRef() { + return this.child.getChannelzRef(); + } + isHealthy() { + return this.healthy && this.child.isHealthy(); + } + addHealthStateWatcher(listener) { + this.healthListeners.add(listener); + } + removeHealthStateWatcher(listener) { + this.healthListeners.delete(listener); + } + addDataWatcher(dataWatcher) { + dataWatcher.setSubchannel(this.getRealSubchannel()); + this.dataWatchers.add(dataWatcher); + } + setHealthy(healthy) { + if (healthy !== this.healthy) { + this.healthy = healthy; + /* A change to this wrapper's health state only affects the overall + * reported health state if the child is healthy. */ + if (this.child.isHealthy()) { + this.updateHealthListeners(); + } + } + } + getRealSubchannel() { + return this.child.getRealSubchannel(); + } + realSubchannelEquals(other) { + return this.getRealSubchannel() === other.getRealSubchannel(); + } + getCallCredentials() { + return this.child.getCallCredentials(); + } + getChannel() { + return this.child.getChannel(); + } +} +exports.BaseSubchannelWrapper = BaseSubchannelWrapper; +//# sourceMappingURL=subchannel-interface.js.map + +/***/ }), + +/***/ 26224: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SubchannelPool = void 0; +exports.getSubchannelPool = getSubchannelPool; +const channel_options_1 = __nccwpck_require__(63301); +const subchannel_1 = __nccwpck_require__(12077); +const subchannel_address_1 = __nccwpck_require__(95080); +const uri_parser_1 = __nccwpck_require__(70210); +const transport_1 = __nccwpck_require__(62099); +// 10 seconds in milliseconds. This value is arbitrary. +/** + * The amount of time in between checks for dropping subchannels that have no + * other references + */ +const REF_CHECK_INTERVAL = 10000; +class SubchannelPool { + /** + * A pool of subchannels use for making connections. Subchannels with the + * exact same parameters will be reused. + */ + constructor() { + this.pool = Object.create(null); + /** + * A timer of a task performing a periodic subchannel cleanup. + */ + this.cleanupTimer = null; + } + /** + * Unrefs all unused subchannels and cancels the cleanup task if all + * subchannels have been unrefed. + */ + unrefUnusedSubchannels() { + let allSubchannelsUnrefed = true; + /* These objects are created with Object.create(null), so they do not + * have a prototype, which means that for (... in ...) loops over them + * do not need to be filtered */ + // eslint-disable-disable-next-line:forin + for (const channelTarget in this.pool) { + const subchannelObjArray = this.pool[channelTarget]; + const refedSubchannels = subchannelObjArray.filter(value => !value.subchannel.unrefIfOneRef()); + if (refedSubchannels.length > 0) { + allSubchannelsUnrefed = false; + } + /* For each subchannel in the pool, try to unref it if it has + * exactly one ref (which is the ref from the pool itself). If that + * does happen, remove the subchannel from the pool */ + this.pool[channelTarget] = refedSubchannels; + } + /* Currently we do not delete keys with empty values. If that results + * in significant memory usage we should change it. */ + // Cancel the cleanup task if all subchannels have been unrefed. + if (allSubchannelsUnrefed && this.cleanupTimer !== null) { + clearInterval(this.cleanupTimer); + this.cleanupTimer = null; + } + } + /** + * Ensures that the cleanup task is spawned. + */ + ensureCleanupTask() { + var _a, _b; + if (this.cleanupTimer === null) { + this.cleanupTimer = setInterval(() => { + this.unrefUnusedSubchannels(); + }, REF_CHECK_INTERVAL); + // Unref because this timer should not keep the event loop running. + // Call unref only if it exists to address electron/electron#21162 + (_b = (_a = this.cleanupTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + } + /** + * Get a subchannel if one already exists with exactly matching parameters. + * Otherwise, create and save a subchannel with those parameters. + * @param channelTarget + * @param subchannelTarget + * @param channelArguments + * @param channelCredentials + */ + getOrCreateSubchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials) { + this.ensureCleanupTask(); + const channelTarget = (0, uri_parser_1.uriToString)(channelTargetUri); + if (channelTarget in this.pool) { + const subchannelObjArray = this.pool[channelTarget]; + for (const subchannelObj of subchannelObjArray) { + if ((0, subchannel_address_1.subchannelAddressEqual)(subchannelTarget, subchannelObj.subchannelAddress) && + (0, channel_options_1.channelOptionsEqual)(channelArguments, subchannelObj.channelArguments) && + channelCredentials._equals(subchannelObj.channelCredentials)) { + return subchannelObj.subchannel; + } + } + } + // If we get here, no matching subchannel was found + const subchannel = new subchannel_1.Subchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials, new transport_1.Http2SubchannelConnector(channelTargetUri)); + if (!(channelTarget in this.pool)) { + this.pool[channelTarget] = []; + } + this.pool[channelTarget].push({ + subchannelAddress: subchannelTarget, + channelArguments, + channelCredentials, + subchannel, + }); + subchannel.ref(); + return subchannel; + } +} +exports.SubchannelPool = SubchannelPool; +const globalSubchannelPool = new SubchannelPool(); +/** + * Get either the global subchannel pool, or a new subchannel pool. + * @param global + */ +function getSubchannelPool(global) { + if (global) { + return globalSubchannelPool; + } + else { + return new SubchannelPool(); + } +} +//# sourceMappingURL=subchannel-pool.js.map + +/***/ }), + +/***/ 12077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Subchannel = void 0; +const connectivity_state_1 = __nccwpck_require__(63827); +const backoff_timeout_1 = __nccwpck_require__(21400); +const logging = __nccwpck_require__(26239); +const constants_1 = __nccwpck_require__(84623); +const uri_parser_1 = __nccwpck_require__(70210); +const subchannel_address_1 = __nccwpck_require__(95080); +const channelz_1 = __nccwpck_require__(50379); +const single_subchannel_channel_1 = __nccwpck_require__(84437); +const TRACER_NAME = 'subchannel'; +/* setInterval and setTimeout only accept signed 32 bit integers. JS doesn't + * have a constant for the max signed 32 bit integer, so this is a simple way + * to calculate it */ +const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); +class Subchannel { + /** + * A class representing a connection to a single backend. + * @param channelTarget The target string for the channel as a whole + * @param subchannelAddress The address for the backend that this subchannel + * will connect to + * @param options The channel options, plus any specific subchannel options + * for this subchannel + * @param credentials The channel credentials used to establish this + * connection + */ + constructor(channelTarget, subchannelAddress, options, credentials, connector) { + var _a; + this.channelTarget = channelTarget; + this.subchannelAddress = subchannelAddress; + this.options = options; + this.connector = connector; + /** + * The subchannel's current connectivity state. Invariant: `session` === `null` + * if and only if `connectivityState` is IDLE or TRANSIENT_FAILURE. + */ + this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; + /** + * The underlying http2 session used to make requests. + */ + this.transport = null; + /** + * Indicates that the subchannel should transition from TRANSIENT_FAILURE to + * CONNECTING instead of IDLE when the backoff timeout ends. + */ + this.continueConnecting = false; + /** + * A list of listener functions that will be called whenever the connectivity + * state changes. Will be modified by `addConnectivityStateListener` and + * `removeConnectivityStateListener` + */ + this.stateListeners = new Set(); + /** + * Tracks channels and subchannel pools with references to this subchannel + */ + this.refcount = 0; + // Channelz info + this.channelzEnabled = true; + this.dataProducers = new Map(); + this.subchannelChannel = null; + const backoffOptions = { + initialDelay: options['grpc.initial_reconnect_backoff_ms'], + maxDelay: options['grpc.max_reconnect_backoff_ms'], + }; + this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { + this.handleBackoffTimer(); + }, backoffOptions); + this.backoffTimeout.unref(); + this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); + this.keepaliveTime = (_a = options['grpc.keepalive_time_ms']) !== null && _a !== void 0 ? _a : -1; + if (options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + this.channelzTrace = new channelz_1.ChannelzTraceStub(); + this.callTracker = new channelz_1.ChannelzCallTrackerStub(); + this.childrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); + this.streamTracker = new channelz_1.ChannelzCallTrackerStub(); + } + else { + this.channelzTrace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.streamTracker = new channelz_1.ChannelzCallTracker(); + } + this.channelzRef = (0, channelz_1.registerChannelzSubchannel)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); + this.channelzTrace.addTrace('CT_INFO', 'Subchannel created'); + this.trace('Subchannel constructed with options ' + + JSON.stringify(options, undefined, 2)); + this.secureConnector = credentials._createSecureConnector(channelTarget, options); + } + getChannelzInfo() { + return { + state: this.connectivityState, + trace: this.channelzTrace, + callTracker: this.callTracker, + children: this.childrenTracker.getChildLists(), + target: this.subchannelAddressString, + }; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + refTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'subchannel_refcount', '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + handleBackoffTimer() { + if (this.continueConnecting) { + this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); + } + else { + this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.IDLE); + } + } + /** + * Start a backoff timer with the current nextBackoff timeout + */ + startBackoff() { + this.backoffTimeout.runOnce(); + } + stopBackoff() { + this.backoffTimeout.stop(); + this.backoffTimeout.reset(); + } + startConnectingInternal() { + let options = this.options; + if (options['grpc.keepalive_time_ms']) { + const adjustedKeepaliveTime = Math.min(this.keepaliveTime, KEEPALIVE_MAX_TIME_MS); + options = Object.assign(Object.assign({}, options), { 'grpc.keepalive_time_ms': adjustedKeepaliveTime }); + } + this.connector + .connect(this.subchannelAddress, this.secureConnector, options) + .then(transport => { + if (this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.READY)) { + this.transport = transport; + if (this.channelzEnabled) { + this.childrenTracker.refChild(transport.getChannelzRef()); + } + transport.addDisconnectListener(tooManyPings => { + this.transitionToState([connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); + if (tooManyPings && this.keepaliveTime > 0) { + this.keepaliveTime *= 2; + logging.log(constants_1.LogVerbosity.ERROR, `Connection to ${(0, uri_parser_1.uriToString)(this.channelTarget)} at ${this.subchannelAddressString} rejected by server because of excess pings. Increasing ping interval to ${this.keepaliveTime} ms`); + } + }); + } + else { + /* If we can't transition from CONNECTING to READY here, we will + * not be using this transport, so release its resources. */ + transport.shutdown(); + } + }, error => { + this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, `${error}`); + }); + } + /** + * Initiate a state transition from any element of oldStates to the new + * state. If the current connectivityState is not in oldStates, do nothing. + * @param oldStates The set of states to transition from + * @param newState The state to transition to + * @returns True if the state changed, false otherwise + */ + transitionToState(oldStates, newState, errorMessage) { + var _a, _b; + if (oldStates.indexOf(this.connectivityState) === -1) { + return false; + } + if (errorMessage) { + this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState] + + ' with error "' + errorMessage + '"'); + } + else { + this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + } + if (this.channelzEnabled) { + this.channelzTrace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); + } + const previousState = this.connectivityState; + this.connectivityState = newState; + switch (newState) { + case connectivity_state_1.ConnectivityState.READY: + this.stopBackoff(); + break; + case connectivity_state_1.ConnectivityState.CONNECTING: + this.startBackoff(); + this.startConnectingInternal(); + this.continueConnecting = false; + break; + case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: + if (this.channelzEnabled && this.transport) { + this.childrenTracker.unrefChild(this.transport.getChannelzRef()); + } + (_a = this.transport) === null || _a === void 0 ? void 0 : _a.shutdown(); + this.transport = null; + /* If the backoff timer has already ended by the time we get to the + * TRANSIENT_FAILURE state, we want to immediately transition out of + * TRANSIENT_FAILURE as though the backoff timer is ending right now */ + if (!this.backoffTimeout.isRunning()) { + process.nextTick(() => { + this.handleBackoffTimer(); + }); + } + break; + case connectivity_state_1.ConnectivityState.IDLE: + if (this.channelzEnabled && this.transport) { + this.childrenTracker.unrefChild(this.transport.getChannelzRef()); + } + (_b = this.transport) === null || _b === void 0 ? void 0 : _b.shutdown(); + this.transport = null; + break; + default: + throw new Error(`Invalid state: unknown ConnectivityState ${newState}`); + } + for (const listener of this.stateListeners) { + listener(this, previousState, newState, this.keepaliveTime, errorMessage); + } + return true; + } + ref() { + this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount + 1)); + this.refcount += 1; + } + unref() { + this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount - 1)); + this.refcount -= 1; + if (this.refcount === 0) { + this.channelzTrace.addTrace('CT_INFO', 'Shutting down'); + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + this.secureConnector.destroy(); + process.nextTick(() => { + this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING, connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); + }); + } + } + unrefIfOneRef() { + if (this.refcount === 1) { + this.unref(); + return true; + } + return false; + } + createCall(metadata, host, method, listener) { + if (!this.transport) { + throw new Error('Cannot create call, subchannel not READY'); + } + let statsTracker; + if (this.channelzEnabled) { + this.callTracker.addCallStarted(); + this.streamTracker.addCallStarted(); + statsTracker = { + onCallEnd: status => { + if (status.code === constants_1.Status.OK) { + this.callTracker.addCallSucceeded(); + } + else { + this.callTracker.addCallFailed(); + } + }, + }; + } + else { + statsTracker = {}; + } + return this.transport.createCall(metadata, host, method, listener, statsTracker); + } + /** + * If the subchannel is currently IDLE, start connecting and switch to the + * CONNECTING state. If the subchannel is current in TRANSIENT_FAILURE, + * the next time it would transition to IDLE, start connecting again instead. + * Otherwise, do nothing. + */ + startConnecting() { + process.nextTick(() => { + /* First, try to transition from IDLE to connecting. If that doesn't happen + * because the state is not currently IDLE, check if it is + * TRANSIENT_FAILURE, and if so indicate that it should go back to + * connecting after the backoff timer ends. Otherwise do nothing */ + if (!this.transitionToState([connectivity_state_1.ConnectivityState.IDLE], connectivity_state_1.ConnectivityState.CONNECTING)) { + if (this.connectivityState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + this.continueConnecting = true; + } + } + }); + } + /** + * Get the subchannel's current connectivity state. + */ + getConnectivityState() { + return this.connectivityState; + } + /** + * Add a listener function to be called whenever the subchannel's + * connectivity state changes. + * @param listener + */ + addConnectivityStateListener(listener) { + this.stateListeners.add(listener); + } + /** + * Remove a listener previously added with `addConnectivityStateListener` + * @param listener A reference to a function previously passed to + * `addConnectivityStateListener` + */ + removeConnectivityStateListener(listener) { + this.stateListeners.delete(listener); + } + /** + * Reset the backoff timeout, and immediately start connecting if in backoff. + */ + resetBackoff() { + process.nextTick(() => { + this.backoffTimeout.reset(); + this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); + }); + } + getAddress() { + return this.subchannelAddressString; + } + getChannelzRef() { + return this.channelzRef; + } + isHealthy() { + return true; + } + addHealthStateWatcher(listener) { + // Do nothing with the listener + } + removeHealthStateWatcher(listener) { + // Do nothing with the listener + } + getRealSubchannel() { + return this; + } + realSubchannelEquals(other) { + return other.getRealSubchannel() === this; + } + throttleKeepalive(newKeepaliveTime) { + if (newKeepaliveTime > this.keepaliveTime) { + this.keepaliveTime = newKeepaliveTime; + } + } + getCallCredentials() { + return this.secureConnector.getCallCredentials(); + } + getChannel() { + if (!this.subchannelChannel) { + this.subchannelChannel = new single_subchannel_channel_1.SingleSubchannelChannel(this, this.channelTarget, this.options); + } + return this.subchannelChannel; + } + addDataWatcher(dataWatcher) { + throw new Error('Not implemented'); + } + getOrCreateDataProducer(name, createDataProducer) { + const existingProducer = this.dataProducers.get(name); + if (existingProducer) { + return existingProducer; + } + const newProducer = createDataProducer(this); + this.dataProducers.set(name, newProducer); + return newProducer; + } + removeDataProducer(name) { + this.dataProducers.delete(name); + } +} +exports.Subchannel = Subchannel; +//# sourceMappingURL=subchannel.js.map + +/***/ }), + +/***/ 99619: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIPHER_SUITES = void 0; +exports.getDefaultRootsData = getDefaultRootsData; +const fs = __nccwpck_require__(79896); +exports.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES; +const DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH; +let defaultRootsData = null; +function getDefaultRootsData() { + if (DEFAULT_ROOTS_FILE_PATH) { + if (defaultRootsData === null) { + defaultRootsData = fs.readFileSync(DEFAULT_ROOTS_FILE_PATH); + } + return defaultRootsData; + } + return null; +} +//# sourceMappingURL=tls-helpers.js.map + +/***/ }), + +/***/ 62099: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2023 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Http2SubchannelConnector = void 0; +const http2 = __nccwpck_require__(85675); +const tls_1 = __nccwpck_require__(64756); +const channelz_1 = __nccwpck_require__(50379); +const constants_1 = __nccwpck_require__(84623); +const http_proxy_1 = __nccwpck_require__(95367); +const logging = __nccwpck_require__(26239); +const resolver_1 = __nccwpck_require__(30842); +const subchannel_address_1 = __nccwpck_require__(95080); +const uri_parser_1 = __nccwpck_require__(70210); +const net = __nccwpck_require__(69278); +const subchannel_call_1 = __nccwpck_require__(95666); +const call_number_1 = __nccwpck_require__(50256); +const TRACER_NAME = 'transport'; +const FLOW_CONTROL_TRACER_NAME = 'transport_flowctrl'; +const clientVersion = (__nccwpck_require__(9943)/* .version */ .rE); +const { HTTP2_HEADER_AUTHORITY, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_TE, HTTP2_HEADER_USER_AGENT, } = http2.constants; +const KEEPALIVE_TIMEOUT_MS = 20000; +const tooManyPingsData = Buffer.from('too_many_pings', 'ascii'); +class Http2Transport { + constructor(session, subchannelAddress, options, + /** + * Name of the remote server, if it is not the same as the subchannel + * address, i.e. if connecting through an HTTP CONNECT proxy. + */ + remoteName) { + this.session = session; + this.options = options; + this.remoteName = remoteName; + /** + * Timer reference indicating when to send the next ping or when the most recent ping will be considered lost. + */ + this.keepaliveTimer = null; + /** + * Indicates that the keepalive timer ran out while there were no active + * calls, and a ping should be sent the next time a call starts. + */ + this.pendingSendKeepalivePing = false; + this.activeCalls = new Set(); + this.disconnectListeners = []; + this.disconnectHandled = false; + this.channelzEnabled = true; + this.keepalivesSent = 0; + this.messagesSent = 0; + this.messagesReceived = 0; + this.lastMessageSentTimestamp = null; + this.lastMessageReceivedTimestamp = null; + /* Populate subchannelAddressString and channelzRef before doing anything + * else, because they are used in the trace methods. */ + this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); + if (options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + this.streamTracker = new channelz_1.ChannelzCallTrackerStub(); + } + else { + this.streamTracker = new channelz_1.ChannelzCallTracker(); + } + this.channelzRef = (0, channelz_1.registerChannelzSocket)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); + // Build user-agent string. + this.userAgent = [ + options['grpc.primary_user_agent'], + `grpc-node-js/${clientVersion}`, + options['grpc.secondary_user_agent'], + ] + .filter(e => e) + .join(' '); // remove falsey values first + if ('grpc.keepalive_time_ms' in options) { + this.keepaliveTimeMs = options['grpc.keepalive_time_ms']; + } + else { + this.keepaliveTimeMs = -1; + } + if ('grpc.keepalive_timeout_ms' in options) { + this.keepaliveTimeoutMs = options['grpc.keepalive_timeout_ms']; + } + else { + this.keepaliveTimeoutMs = KEEPALIVE_TIMEOUT_MS; + } + if ('grpc.keepalive_permit_without_calls' in options) { + this.keepaliveWithoutCalls = + options['grpc.keepalive_permit_without_calls'] === 1; + } + else { + this.keepaliveWithoutCalls = false; + } + session.once('close', () => { + this.trace('session closed'); + this.handleDisconnect(); + }); + session.once('goaway', (errorCode, lastStreamID, opaqueData) => { + let tooManyPings = false; + /* See the last paragraph of + * https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md#basic-keepalive */ + if (errorCode === http2.constants.NGHTTP2_ENHANCE_YOUR_CALM && + opaqueData && + opaqueData.equals(tooManyPingsData)) { + tooManyPings = true; + } + this.trace('connection closed by GOAWAY with code ' + + errorCode + + ' and data ' + + (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString())); + this.reportDisconnectToOwner(tooManyPings); + }); + session.once('error', error => { + this.trace('connection closed with error ' + error.message); + this.handleDisconnect(); + }); + session.socket.once('close', (hadError) => { + this.trace('connection closed. hadError=' + hadError); + this.handleDisconnect(); + }); + if (logging.isTracerEnabled(TRACER_NAME)) { + session.on('remoteSettings', (settings) => { + this.trace('new settings received' + + (this.session !== session ? ' on the old connection' : '') + + ': ' + + JSON.stringify(settings)); + }); + session.on('localSettings', (settings) => { + this.trace('local settings acknowledged by remote' + + (this.session !== session ? ' on the old connection' : '') + + ': ' + + JSON.stringify(settings)); + }); + } + /* Start the keepalive timer last, because this can trigger trace logs, + * which should only happen after everything else is set up. */ + if (this.keepaliveWithoutCalls) { + this.maybeStartKeepalivePingTimer(); + } + if (session.socket instanceof tls_1.TLSSocket) { + this.authContext = { + transportSecurityType: 'ssl', + sslPeerCertificate: session.socket.getPeerCertificate() + }; + } + else { + this.authContext = {}; + } + } + getChannelzInfo() { + var _a, _b, _c; + const sessionSocket = this.session.socket; + const remoteAddress = sessionSocket.remoteAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) + : null; + const localAddress = sessionSocket.localAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) + : null; + let tlsInfo; + if (this.session.encrypted) { + const tlsSocket = sessionSocket; + const cipherInfo = tlsSocket.getCipher(); + const certificate = tlsSocket.getCertificate(); + const peerCertificate = tlsSocket.getPeerCertificate(); + tlsInfo = { + cipherSuiteStandardName: (_a = cipherInfo.standardName) !== null && _a !== void 0 ? _a : null, + cipherSuiteOtherName: cipherInfo.standardName ? null : cipherInfo.name, + localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, + remoteCertificate: peerCertificate && 'raw' in peerCertificate + ? peerCertificate.raw + : null, + }; + } + else { + tlsInfo = null; + } + const socketInfo = { + remoteAddress: remoteAddress, + localAddress: localAddress, + security: tlsInfo, + remoteName: this.remoteName, + streamsStarted: this.streamTracker.callsStarted, + streamsSucceeded: this.streamTracker.callsSucceeded, + streamsFailed: this.streamTracker.callsFailed, + messagesSent: this.messagesSent, + messagesReceived: this.messagesReceived, + keepAlivesSent: this.keepalivesSent, + lastLocalStreamCreatedTimestamp: this.streamTracker.lastCallStartedTimestamp, + lastRemoteStreamCreatedTimestamp: null, + lastMessageSentTimestamp: this.lastMessageSentTimestamp, + lastMessageReceivedTimestamp: this.lastMessageReceivedTimestamp, + localFlowControlWindow: (_b = this.session.state.localWindowSize) !== null && _b !== void 0 ? _b : null, + remoteFlowControlWindow: (_c = this.session.state.remoteWindowSize) !== null && _c !== void 0 ? _c : null, + }; + return socketInfo; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + keepaliveTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'keepalive', '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + flowControlTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + internalsTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'transport_internals', '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + /** + * Indicate to the owner of this object that this transport should no longer + * be used. That happens if the connection drops, or if the server sends a + * GOAWAY. + * @param tooManyPings If true, this was triggered by a GOAWAY with data + * indicating that the session was closed becaues the client sent too many + * pings. + * @returns + */ + reportDisconnectToOwner(tooManyPings) { + if (this.disconnectHandled) { + return; + } + this.disconnectHandled = true; + this.disconnectListeners.forEach(listener => listener(tooManyPings)); + } + /** + * Handle connection drops, but not GOAWAYs. + */ + handleDisconnect() { + this.clearKeepaliveTimeout(); + this.reportDisconnectToOwner(false); + for (const call of this.activeCalls) { + call.onDisconnect(); + } + // Wait an event loop cycle before destroying the connection + setImmediate(() => { + this.session.destroy(); + }); + } + addDisconnectListener(listener) { + this.disconnectListeners.push(listener); + } + canSendPing() { + return (!this.session.destroyed && + this.keepaliveTimeMs > 0 && + (this.keepaliveWithoutCalls || this.activeCalls.size > 0)); + } + maybeSendPing() { + var _a, _b; + if (!this.canSendPing()) { + this.pendingSendKeepalivePing = true; + return; + } + if (this.keepaliveTimer) { + console.error('keepaliveTimeout is not null'); + return; + } + if (this.channelzEnabled) { + this.keepalivesSent += 1; + } + this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); + this.keepaliveTimer = setTimeout(() => { + this.keepaliveTimer = null; + this.keepaliveTrace('Ping timeout passed without response'); + this.handleDisconnect(); + }, this.keepaliveTimeoutMs); + (_b = (_a = this.keepaliveTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + let pingSendError = ''; + try { + const pingSentSuccessfully = this.session.ping((err, duration, payload) => { + this.clearKeepaliveTimeout(); + if (err) { + this.keepaliveTrace('Ping failed with error ' + err.message); + this.handleDisconnect(); + } + else { + this.keepaliveTrace('Received ping response'); + this.maybeStartKeepalivePingTimer(); + } + }); + if (!pingSentSuccessfully) { + pingSendError = 'Ping returned false'; + } + } + catch (e) { + // grpc/grpc-node#2139 + pingSendError = (e instanceof Error ? e.message : '') || 'Unknown error'; + } + if (pingSendError) { + this.keepaliveTrace('Ping send failed: ' + pingSendError); + this.handleDisconnect(); + } + } + /** + * Starts the keepalive ping timer if appropriate. If the timer already ran + * out while there were no active requests, instead send a ping immediately. + * If the ping timer is already running or a ping is currently in flight, + * instead do nothing and wait for them to resolve. + */ + maybeStartKeepalivePingTimer() { + var _a, _b; + if (!this.canSendPing()) { + return; + } + if (this.pendingSendKeepalivePing) { + this.pendingSendKeepalivePing = false; + this.maybeSendPing(); + } + else if (!this.keepaliveTimer) { + this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); + this.keepaliveTimer = setTimeout(() => { + this.keepaliveTimer = null; + this.maybeSendPing(); + }, this.keepaliveTimeMs); + (_b = (_a = this.keepaliveTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /* Otherwise, there is already either a keepalive timer or a ping pending, + * wait for those to resolve. */ + } + /** + * Clears whichever keepalive timeout is currently active, if any. + */ + clearKeepaliveTimeout() { + if (this.keepaliveTimer) { + clearTimeout(this.keepaliveTimer); + this.keepaliveTimer = null; + } + } + removeActiveCall(call) { + this.activeCalls.delete(call); + if (this.activeCalls.size === 0) { + this.session.unref(); + } + } + addActiveCall(call) { + this.activeCalls.add(call); + if (this.activeCalls.size === 1) { + this.session.ref(); + if (!this.keepaliveWithoutCalls) { + this.maybeStartKeepalivePingTimer(); + } + } + } + createCall(metadata, host, method, listener, subchannelCallStatsTracker) { + const headers = metadata.toHttp2Headers(); + headers[HTTP2_HEADER_AUTHORITY] = host; + headers[HTTP2_HEADER_USER_AGENT] = this.userAgent; + headers[HTTP2_HEADER_CONTENT_TYPE] = 'application/grpc'; + headers[HTTP2_HEADER_METHOD] = 'POST'; + headers[HTTP2_HEADER_PATH] = method; + headers[HTTP2_HEADER_TE] = 'trailers'; + let http2Stream; + /* In theory, if an error is thrown by session.request because session has + * become unusable (e.g. because it has received a goaway), this subchannel + * should soon see the corresponding close or goaway event anyway and leave + * READY. But we have seen reports that this does not happen + * (https://github.com/googleapis/nodejs-firestore/issues/1023#issuecomment-653204096) + * so for defense in depth, we just discard the session when we see an + * error here. + */ + try { + http2Stream = this.session.request(headers); + } + catch (e) { + this.handleDisconnect(); + throw e; + } + this.flowControlTrace('local window size: ' + + this.session.state.localWindowSize + + ' remote window size: ' + + this.session.state.remoteWindowSize); + this.internalsTrace('session.closed=' + + this.session.closed + + ' session.destroyed=' + + this.session.destroyed + + ' session.socket.destroyed=' + + this.session.socket.destroyed); + let eventTracker; + // eslint-disable-next-line prefer-const + let call; + if (this.channelzEnabled) { + this.streamTracker.addCallStarted(); + eventTracker = { + addMessageSent: () => { + var _a; + this.messagesSent += 1; + this.lastMessageSentTimestamp = new Date(); + (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + addMessageReceived: () => { + var _a; + this.messagesReceived += 1; + this.lastMessageReceivedTimestamp = new Date(); + (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + onCallEnd: status => { + var _a; + (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); + this.removeActiveCall(call); + }, + onStreamEnd: success => { + var _a; + if (success) { + this.streamTracker.addCallSucceeded(); + } + else { + this.streamTracker.addCallFailed(); + } + (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); + }, + }; + } + else { + eventTracker = { + addMessageSent: () => { + var _a; + (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + addMessageReceived: () => { + var _a; + (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + onCallEnd: status => { + var _a; + (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); + this.removeActiveCall(call); + }, + onStreamEnd: success => { + var _a; + (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); + }, + }; + } + call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, (0, call_number_1.getNextCallNumber)()); + this.addActiveCall(call); + return call; + } + getChannelzRef() { + return this.channelzRef; + } + getPeerName() { + return this.subchannelAddressString; + } + getOptions() { + return this.options; + } + getAuthContext() { + return this.authContext; + } + shutdown() { + this.session.close(); + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + } +} +class Http2SubchannelConnector { + constructor(channelTarget) { + this.channelTarget = channelTarget; + this.session = null; + this.isShutdown = false; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + ' ' + text); + } + createSession(secureConnectResult, address, options) { + if (this.isShutdown) { + return Promise.reject(); + } + if (secureConnectResult.socket.closed) { + return Promise.reject('Connection closed before starting HTTP/2 handshake'); + } + return new Promise((resolve, reject) => { + var _a, _b, _c, _d, _e, _f, _g, _h; + let remoteName = null; + let realTarget = this.channelTarget; + if ('grpc.http_connect_target' in options) { + const parsedTarget = (0, uri_parser_1.parseUri)(options['grpc.http_connect_target']); + if (parsedTarget) { + realTarget = parsedTarget; + remoteName = (0, uri_parser_1.uriToString)(parsedTarget); + } + } + const scheme = secureConnectResult.secure ? 'https' : 'http'; + const targetPath = (0, resolver_1.getDefaultAuthority)(realTarget); + const closeHandler = () => { + var _a; + (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy(); + this.session = null; + // Leave time for error event to happen before rejecting + setImmediate(() => { + if (!reportedError) { + reportedError = true; + reject(`${errorMessage.trim()} (${new Date().toISOString()})`); + } + }); + }; + const errorHandler = (error) => { + var _a; + (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy(); + errorMessage = error.message; + this.trace('connection failed with error ' + errorMessage); + if (!reportedError) { + reportedError = true; + reject(`${errorMessage} (${new Date().toISOString()})`); + } + }; + const sessionOptions = { + createConnection: (authority, option) => { + return secureConnectResult.socket; + }, + settings: { + initialWindowSize: (_d = (_a = options['grpc-node.flow_control_window']) !== null && _a !== void 0 ? _a : (_c = (_b = http2.getDefaultSettings) === null || _b === void 0 ? void 0 : _b.call(http2)) === null || _c === void 0 ? void 0 : _c.initialWindowSize) !== null && _d !== void 0 ? _d : 65535, + }, + maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER, + /* By default, set a very large max session memory limit, to effectively + * disable enforcement of the limit. Some testing indicates that Node's + * behavior degrades badly when this limit is reached, so we solve that + * by disabling the check entirely. */ + maxSessionMemory: (_e = options['grpc-node.max_session_memory']) !== null && _e !== void 0 ? _e : Number.MAX_SAFE_INTEGER + }; + const session = http2.connect(`${scheme}://${targetPath}`, sessionOptions); + // Prepare window size configuration for remoteSettings handler + const defaultWin = (_h = (_g = (_f = http2.getDefaultSettings) === null || _f === void 0 ? void 0 : _f.call(http2)) === null || _g === void 0 ? void 0 : _g.initialWindowSize) !== null && _h !== void 0 ? _h : 65535; // 65 535 B + const connWin = options['grpc-node.flow_control_window']; + this.session = session; + let errorMessage = 'Failed to connect'; + let reportedError = false; + session.unref(); + session.once('remoteSettings', () => { + var _a; + // Send WINDOW_UPDATE now to avoid 65 KB start-window stall. + if (connWin && connWin > defaultWin) { + try { + // Node ≥ 14.18 + session.setLocalWindowSize(connWin); + } + catch (_b) { + // Older Node: bump by the delta + const delta = connWin - ((_a = session.state.localWindowSize) !== null && _a !== void 0 ? _a : defaultWin); + if (delta > 0) + session.incrementWindowSize(delta); + } + } + session.removeAllListeners(); + secureConnectResult.socket.removeListener('close', closeHandler); + secureConnectResult.socket.removeListener('error', errorHandler); + resolve(new Http2Transport(session, address, options, remoteName)); + this.session = null; + }); + session.once('close', closeHandler); + session.once('error', errorHandler); + secureConnectResult.socket.once('close', closeHandler); + secureConnectResult.socket.once('error', errorHandler); + }); + } + tcpConnect(address, options) { + return (0, http_proxy_1.getProxiedConnection)(address, options).then(proxiedSocket => { + if (proxiedSocket) { + return proxiedSocket; + } + else { + return new Promise((resolve, reject) => { + const closeCallback = () => { + reject(new Error('Socket closed')); + }; + const errorCallback = (error) => { + reject(error); + }; + const socket = net.connect(address, () => { + socket.removeListener('close', closeCallback); + socket.removeListener('error', errorCallback); + resolve(socket); + }); + socket.once('close', closeCallback); + socket.once('error', errorCallback); + }); + } + }); + } + async connect(address, secureConnector, options) { + if (this.isShutdown) { + return Promise.reject(); + } + let tcpConnection = null; + let secureConnectResult = null; + const addressString = (0, subchannel_address_1.subchannelAddressToString)(address); + try { + this.trace(addressString + ' Waiting for secureConnector to be ready'); + await secureConnector.waitForReady(); + this.trace(addressString + ' secureConnector is ready'); + tcpConnection = await this.tcpConnect(address, options); + tcpConnection.setNoDelay(); + this.trace(addressString + ' Established TCP connection'); + secureConnectResult = await secureConnector.connect(tcpConnection); + this.trace(addressString + ' Established secure connection'); + return this.createSession(secureConnectResult, address, options); + } + catch (e) { + tcpConnection === null || tcpConnection === void 0 ? void 0 : tcpConnection.destroy(); + secureConnectResult === null || secureConnectResult === void 0 ? void 0 : secureConnectResult.socket.destroy(); + throw e; + } + } + shutdown() { + var _a; + this.isShutdown = true; + (_a = this.session) === null || _a === void 0 ? void 0 : _a.close(); + this.session = null; + } +} +exports.Http2SubchannelConnector = Http2SubchannelConnector; +//# sourceMappingURL=transport.js.map + +/***/ }), + +/***/ 70210: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2020 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseUri = parseUri; +exports.splitHostPort = splitHostPort; +exports.combineHostPort = combineHostPort; +exports.uriToString = uriToString; +/* + * The groups correspond to URI parts as follows: + * 1. scheme + * 2. authority + * 3. path + */ +const URI_REGEX = /^(?:([A-Za-z0-9+.-]+):)?(?:\/\/([^/]*)\/)?(.+)$/; +function parseUri(uriString) { + const parsedUri = URI_REGEX.exec(uriString); + if (parsedUri === null) { + return null; + } + return { + scheme: parsedUri[1], + authority: parsedUri[2], + path: parsedUri[3], + }; +} +const NUMBER_REGEX = /^\d+$/; +function splitHostPort(path) { + if (path.startsWith('[')) { + const hostEnd = path.indexOf(']'); + if (hostEnd === -1) { + return null; + } + const host = path.substring(1, hostEnd); + /* Only an IPv6 address should be in bracketed notation, and an IPv6 + * address should have at least one colon */ + if (host.indexOf(':') === -1) { + return null; + } + if (path.length > hostEnd + 1) { + if (path[hostEnd + 1] === ':') { + const portString = path.substring(hostEnd + 2); + if (NUMBER_REGEX.test(portString)) { + return { + host: host, + port: +portString, + }; + } + else { + return null; + } + } + else { + return null; + } + } + else { + return { + host, + }; + } + } + else { + const splitPath = path.split(':'); + /* Exactly one colon means that this is host:port. Zero colons means that + * there is no port. And multiple colons means that this is a bare IPv6 + * address with no port */ + if (splitPath.length === 2) { + if (NUMBER_REGEX.test(splitPath[1])) { + return { + host: splitPath[0], + port: +splitPath[1], + }; + } + else { + return null; + } + } + else { + return { + host: path, + }; + } + } +} +function combineHostPort(hostPort) { + if (hostPort.port === undefined) { + return hostPort.host; + } + else { + // Only an IPv6 host should include a colon + if (hostPort.host.includes(':')) { + return `[${hostPort.host}]:${hostPort.port}`; + } + else { + return `${hostPort.host}:${hostPort.port}`; + } + } +} +function uriToString(uri) { + let result = ''; + if (uri.scheme !== undefined) { + result += uri.scheme + ':'; + } + if (uri.authority !== undefined) { + result += '//' + uri.authority + '/'; + } + result += uri.path; + return result; +} +//# sourceMappingURL=uri-parser.js.map + +/***/ }), + +/***/ 48481: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +__webpack_unused_export__ = ({ value: true }); +__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Yi = __webpack_unused_export__ = exports.Ib = __webpack_unused_export__ = __webpack_unused_export__ = void 0; +const camelCase = __nccwpck_require__(86888); +const Protobuf = __nccwpck_require__(85321); +const descriptor = __nccwpck_require__(48939); +const util_1 = __nccwpck_require__(51497); +const Long = __nccwpck_require__(4079); +__webpack_unused_export__ = Long; +function isAnyExtension(obj) { + return ('@type' in obj) && (typeof obj['@type'] === 'string'); +} +__webpack_unused_export__ = isAnyExtension; +var IdempotencyLevel; +(function (IdempotencyLevel) { + IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = "IDEMPOTENCY_UNKNOWN"; + IdempotencyLevel["NO_SIDE_EFFECTS"] = "NO_SIDE_EFFECTS"; + IdempotencyLevel["IDEMPOTENT"] = "IDEMPOTENT"; +})(IdempotencyLevel = exports.Ib || (exports.Ib = {})); +const descriptorOptions = { + longs: String, + enums: String, + bytes: String, + defaults: true, + oneofs: true, + json: true, +}; +function joinName(baseName, name) { + if (baseName === '') { + return name; + } + else { + return baseName + '.' + name; + } +} +function isHandledReflectionObject(obj) { + return (obj instanceof Protobuf.Service || + obj instanceof Protobuf.Type || + obj instanceof Protobuf.Enum); +} +function isNamespaceBase(obj) { + return obj instanceof Protobuf.Namespace || obj instanceof Protobuf.Root; +} +function getAllHandledReflectionObjects(obj, parentName) { + const objName = joinName(parentName, obj.name); + if (isHandledReflectionObject(obj)) { + return [[objName, obj]]; + } + else { + if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') { + return Object.keys(obj.nested) + .map(name => { + return getAllHandledReflectionObjects(obj.nested[name], objName); + }) + .reduce((accumulator, currentValue) => accumulator.concat(currentValue), []); + } + } + return []; +} +function createDeserializer(cls, options) { + return function deserialize(argBuf) { + return cls.toObject(cls.decode(argBuf), options); + }; +} +function createSerializer(cls) { + return function serialize(arg) { + if (Array.isArray(arg)) { + throw new Error(`Failed to serialize message: expected object with ${cls.name} structure, got array instead`); + } + const message = cls.fromObject(arg); + return cls.encode(message).finish(); + }; +} +function mapMethodOptions(options) { + return (options || []).reduce((obj, item) => { + for (const [key, value] of Object.entries(item)) { + switch (key) { + case 'uninterpreted_option': + obj.uninterpreted_option.push(item.uninterpreted_option); + break; + default: + obj[key] = value; + } + } + return obj; + }, { + deprecated: false, + idempotency_level: IdempotencyLevel.IDEMPOTENCY_UNKNOWN, + uninterpreted_option: [], + }); +} +function createMethodDefinition(method, serviceName, options, fileDescriptors) { + /* This is only ever called after the corresponding root.resolveAll(), so we + * can assume that the resolved request and response types are non-null */ + const requestType = method.resolvedRequestType; + const responseType = method.resolvedResponseType; + return { + path: '/' + serviceName + '/' + method.name, + requestStream: !!method.requestStream, + responseStream: !!method.responseStream, + requestSerialize: createSerializer(requestType), + requestDeserialize: createDeserializer(requestType, options), + responseSerialize: createSerializer(responseType), + responseDeserialize: createDeserializer(responseType, options), + // TODO(murgatroid99): Find a better way to handle this + originalName: camelCase(method.name), + requestType: createMessageDefinition(requestType, options, fileDescriptors), + responseType: createMessageDefinition(responseType, options, fileDescriptors), + options: mapMethodOptions(method.parsedOptions), + }; +} +function createServiceDefinition(service, name, options, fileDescriptors) { + const def = {}; + for (const method of service.methodsArray) { + def[method.name] = createMethodDefinition(method, name, options, fileDescriptors); + } + return def; +} +function createMessageDefinition(message, options, fileDescriptors) { + const messageDescriptor = message.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 DescriptorProto', + type: messageDescriptor.$type.toObject(messageDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + serialize: createSerializer(message), + deserialize: createDeserializer(message, options) + }; +} +function createEnumDefinition(enumType, fileDescriptors) { + const enumDescriptor = enumType.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 EnumDescriptorProto', + type: enumDescriptor.$type.toObject(enumDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + }; +} +/** + * function createDefinition(obj: Protobuf.Service, name: string, options: + * Options): ServiceDefinition; function createDefinition(obj: Protobuf.Type, + * name: string, options: Options): MessageTypeDefinition; function + * createDefinition(obj: Protobuf.Enum, name: string, options: Options): + * EnumTypeDefinition; + */ +function createDefinition(obj, name, options, fileDescriptors) { + if (obj instanceof Protobuf.Service) { + return createServiceDefinition(obj, name, options, fileDescriptors); + } + else if (obj instanceof Protobuf.Type) { + return createMessageDefinition(obj, options, fileDescriptors); + } + else if (obj instanceof Protobuf.Enum) { + return createEnumDefinition(obj, fileDescriptors); + } + else { + throw new Error('Type mismatch in reflection object handling'); + } +} +function createPackageDefinition(root, options) { + const def = {}; + root.resolveAll(); + const descriptorList = root.toDescriptor('proto3').file; + const bufferList = descriptorList.map(value => Buffer.from(descriptor.FileDescriptorProto.encode(value).finish())); + for (const [name, obj] of getAllHandledReflectionObjects(root, '')) { + def[name] = createDefinition(obj, name, options, bufferList); + } + return def; +} +function createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options) { + options = options || {}; + const root = Protobuf.Root.fromDescriptor(decodedDescriptorSet); + root.resolveAll(); + return createPackageDefinition(root, options); +} +/** + * Load a .proto file with the specified options. + * @param filename One or multiple file paths to load. Can be an absolute path + * or relative to an include path. + * @param options.keepCase Preserve field names. The default is to change them + * to camel case. + * @param options.longs The type that should be used to represent `long` values. + * Valid options are `Number` and `String`. Defaults to a `Long` object type + * from a library. + * @param options.enums The type that should be used to represent `enum` values. + * The only valid option is `String`. Defaults to the numeric value. + * @param options.bytes The type that should be used to represent `bytes` + * values. Valid options are `Array` and `String`. The default is to use + * `Buffer`. + * @param options.defaults Set default values on output objects. Defaults to + * `false`. + * @param options.arrays Set empty arrays for missing array values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.objects Set empty objects for missing object values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.oneofs Set virtual oneof properties to the present field's + * name + * @param options.json Represent Infinity and NaN as strings in float fields, + * and automatically decode google.protobuf.Any values. + * @param options.includeDirs Paths to search for imported `.proto` files. + */ +function load(filename, options) { + return (0, util_1.loadProtosWithOptions)(filename, options).then(loadedRoot => { + return createPackageDefinition(loadedRoot, options); + }); +} +__webpack_unused_export__ = load; +function loadSync(filename, options) { + const loadedRoot = (0, util_1.loadProtosWithOptionsSync)(filename, options); + return createPackageDefinition(loadedRoot, options); +} +exports.Yi = loadSync; +function fromJSON(json, options) { + options = options || {}; + const loadedRoot = Protobuf.Root.fromJSON(json); + loadedRoot.resolveAll(); + return createPackageDefinition(loadedRoot, options); +} +__webpack_unused_export__ = fromJSON; +function loadFileDescriptorSetFromBuffer(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.decode(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +__webpack_unused_export__ = loadFileDescriptorSetFromBuffer; +function loadFileDescriptorSetFromObject(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.fromObject(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +__webpack_unused_export__ = loadFileDescriptorSetFromObject; +(0, util_1.addCommonProtos)(); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 51497: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.addCommonProtos = exports.loadProtosWithOptionsSync = exports.loadProtosWithOptions = void 0; +const fs = __nccwpck_require__(79896); +const path = __nccwpck_require__(16928); +const Protobuf = __nccwpck_require__(85321); +function addIncludePathResolver(root, includePaths) { + const originalResolvePath = root.resolvePath; + root.resolvePath = (origin, target) => { + if (path.isAbsolute(target)) { + return target; + } + for (const directory of includePaths) { + const fullPath = path.join(directory, target); + try { + fs.accessSync(fullPath, fs.constants.R_OK); + return fullPath; + } + catch (err) { + continue; + } + } + process.emitWarning(`${target} not found in any of the include paths ${includePaths}`); + return originalResolvePath(origin, target); + }; +} +async function loadProtosWithOptions(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + return Promise.reject(new Error('The includeDirs option must be an array')); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = await root.load(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptions = loadProtosWithOptions; +function loadProtosWithOptionsSync(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + throw new Error('The includeDirs option must be an array'); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = root.loadSync(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptionsSync = loadProtosWithOptionsSync; +/** + * Load Google's well-known proto files that aren't exposed by Protobuf.js. + */ +function addCommonProtos() { + // Protobuf.js exposes: any, duration, empty, field_mask, struct, timestamp, + // and wrappers. compiler/plugin is excluded in Protobuf.js and here. + // Using constant strings for compatibility with tools like Webpack + const apiDescriptor = __nccwpck_require__(15434); + const descriptorDescriptor = __nccwpck_require__(93951); + const sourceContextDescriptor = __nccwpck_require__(92939); + const typeDescriptor = __nccwpck_require__(36710); + Protobuf.common('api', apiDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('descriptor', descriptorDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('source_context', sourceContextDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('type', typeDescriptor.nested.google.nested.protobuf.nested); +} +exports.addCommonProtos = addCommonProtos; +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 52808: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.loadFileDescriptorSetFromObject = exports.loadFileDescriptorSetFromBuffer = exports.fromJSON = exports.loadSync = exports.load = exports.IdempotencyLevel = exports.isAnyExtension = exports.Long = void 0; +const camelCase = __nccwpck_require__(86888); +const Protobuf = __nccwpck_require__(85321); +const descriptor = __nccwpck_require__(48939); +const util_1 = __nccwpck_require__(66418); +const Long = __nccwpck_require__(4079); +exports.Long = Long; +function isAnyExtension(obj) { + return ('@type' in obj) && (typeof obj['@type'] === 'string'); +} +exports.isAnyExtension = isAnyExtension; +var IdempotencyLevel; +(function (IdempotencyLevel) { + IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = "IDEMPOTENCY_UNKNOWN"; + IdempotencyLevel["NO_SIDE_EFFECTS"] = "NO_SIDE_EFFECTS"; + IdempotencyLevel["IDEMPOTENT"] = "IDEMPOTENT"; +})(IdempotencyLevel = exports.IdempotencyLevel || (exports.IdempotencyLevel = {})); +const descriptorOptions = { + longs: String, + enums: String, + bytes: String, + defaults: true, + oneofs: true, + json: true, +}; +function joinName(baseName, name) { + if (baseName === '') { + return name; + } + else { + return baseName + '.' + name; + } +} +function isHandledReflectionObject(obj) { + return (obj instanceof Protobuf.Service || + obj instanceof Protobuf.Type || + obj instanceof Protobuf.Enum); +} +function isNamespaceBase(obj) { + return obj instanceof Protobuf.Namespace || obj instanceof Protobuf.Root; +} +function getAllHandledReflectionObjects(obj, parentName) { + const objName = joinName(parentName, obj.name); + if (isHandledReflectionObject(obj)) { + return [[objName, obj]]; + } + else { + if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') { + return Object.keys(obj.nested) + .map(name => { + return getAllHandledReflectionObjects(obj.nested[name], objName); + }) + .reduce((accumulator, currentValue) => accumulator.concat(currentValue), []); + } + } + return []; +} +function createDeserializer(cls, options) { + return function deserialize(argBuf) { + return cls.toObject(cls.decode(argBuf), options); + }; +} +function createSerializer(cls) { + return function serialize(arg) { + if (Array.isArray(arg)) { + throw new Error(`Failed to serialize message: expected object with ${cls.name} structure, got array instead`); + } + const message = cls.fromObject(arg); + return cls.encode(message).finish(); + }; +} +function mapMethodOptions(options) { + return (options || []).reduce((obj, item) => { + for (const [key, value] of Object.entries(item)) { + switch (key) { + case 'uninterpreted_option': + obj.uninterpreted_option.push(item.uninterpreted_option); + break; + default: + obj[key] = value; + } + } + return obj; + }, { + deprecated: false, + idempotency_level: IdempotencyLevel.IDEMPOTENCY_UNKNOWN, + uninterpreted_option: [], + }); +} +function createMethodDefinition(method, serviceName, options, fileDescriptors) { + /* This is only ever called after the corresponding root.resolveAll(), so we + * can assume that the resolved request and response types are non-null */ + const requestType = method.resolvedRequestType; + const responseType = method.resolvedResponseType; + return { + path: '/' + serviceName + '/' + method.name, + requestStream: !!method.requestStream, + responseStream: !!method.responseStream, + requestSerialize: createSerializer(requestType), + requestDeserialize: createDeserializer(requestType, options), + responseSerialize: createSerializer(responseType), + responseDeserialize: createDeserializer(responseType, options), + // TODO(murgatroid99): Find a better way to handle this + originalName: camelCase(method.name), + requestType: createMessageDefinition(requestType, fileDescriptors), + responseType: createMessageDefinition(responseType, fileDescriptors), + options: mapMethodOptions(method.parsedOptions), + }; +} +function createServiceDefinition(service, name, options, fileDescriptors) { + const def = {}; + for (const method of service.methodsArray) { + def[method.name] = createMethodDefinition(method, name, options, fileDescriptors); + } + return def; +} +function createMessageDefinition(message, fileDescriptors) { + const messageDescriptor = message.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 DescriptorProto', + type: messageDescriptor.$type.toObject(messageDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + }; +} +function createEnumDefinition(enumType, fileDescriptors) { + const enumDescriptor = enumType.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 EnumDescriptorProto', + type: enumDescriptor.$type.toObject(enumDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + }; +} +/** + * function createDefinition(obj: Protobuf.Service, name: string, options: + * Options): ServiceDefinition; function createDefinition(obj: Protobuf.Type, + * name: string, options: Options): MessageTypeDefinition; function + * createDefinition(obj: Protobuf.Enum, name: string, options: Options): + * EnumTypeDefinition; + */ +function createDefinition(obj, name, options, fileDescriptors) { + if (obj instanceof Protobuf.Service) { + return createServiceDefinition(obj, name, options, fileDescriptors); + } + else if (obj instanceof Protobuf.Type) { + return createMessageDefinition(obj, fileDescriptors); + } + else if (obj instanceof Protobuf.Enum) { + return createEnumDefinition(obj, fileDescriptors); + } + else { + throw new Error('Type mismatch in reflection object handling'); + } +} +function createPackageDefinition(root, options) { + const def = {}; + root.resolveAll(); + const descriptorList = root.toDescriptor('proto3').file; + const bufferList = descriptorList.map(value => Buffer.from(descriptor.FileDescriptorProto.encode(value).finish())); + for (const [name, obj] of getAllHandledReflectionObjects(root, '')) { + def[name] = createDefinition(obj, name, options, bufferList); + } + return def; +} +function createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options) { + options = options || {}; + const root = Protobuf.Root.fromDescriptor(decodedDescriptorSet); + root.resolveAll(); + return createPackageDefinition(root, options); +} +/** + * Load a .proto file with the specified options. + * @param filename One or multiple file paths to load. Can be an absolute path + * or relative to an include path. + * @param options.keepCase Preserve field names. The default is to change them + * to camel case. + * @param options.longs The type that should be used to represent `long` values. + * Valid options are `Number` and `String`. Defaults to a `Long` object type + * from a library. + * @param options.enums The type that should be used to represent `enum` values. + * The only valid option is `String`. Defaults to the numeric value. + * @param options.bytes The type that should be used to represent `bytes` + * values. Valid options are `Array` and `String`. The default is to use + * `Buffer`. + * @param options.defaults Set default values on output objects. Defaults to + * `false`. + * @param options.arrays Set empty arrays for missing array values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.objects Set empty objects for missing object values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.oneofs Set virtual oneof properties to the present field's + * name + * @param options.json Represent Infinity and NaN as strings in float fields, + * and automatically decode google.protobuf.Any values. + * @param options.includeDirs Paths to search for imported `.proto` files. + */ +function load(filename, options) { + return (0, util_1.loadProtosWithOptions)(filename, options).then(loadedRoot => { + return createPackageDefinition(loadedRoot, options); + }); +} +exports.load = load; +function loadSync(filename, options) { + const loadedRoot = (0, util_1.loadProtosWithOptionsSync)(filename, options); + return createPackageDefinition(loadedRoot, options); +} +exports.loadSync = loadSync; +function fromJSON(json, options) { + options = options || {}; + const loadedRoot = Protobuf.Root.fromJSON(json); + loadedRoot.resolveAll(); + return createPackageDefinition(loadedRoot, options); +} +exports.fromJSON = fromJSON; +function loadFileDescriptorSetFromBuffer(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.decode(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +exports.loadFileDescriptorSetFromBuffer = loadFileDescriptorSetFromBuffer; +function loadFileDescriptorSetFromObject(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.fromObject(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +exports.loadFileDescriptorSetFromObject = loadFileDescriptorSetFromObject; +(0, util_1.addCommonProtos)(); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 66418: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.addCommonProtos = exports.loadProtosWithOptionsSync = exports.loadProtosWithOptions = void 0; +const fs = __nccwpck_require__(79896); +const path = __nccwpck_require__(16928); +const Protobuf = __nccwpck_require__(85321); +function addIncludePathResolver(root, includePaths) { + const originalResolvePath = root.resolvePath; + root.resolvePath = (origin, target) => { + if (path.isAbsolute(target)) { + return target; + } + for (const directory of includePaths) { + const fullPath = path.join(directory, target); + try { + fs.accessSync(fullPath, fs.constants.R_OK); + return fullPath; + } + catch (err) { + continue; + } + } + process.emitWarning(`${target} not found in any of the include paths ${includePaths}`); + return originalResolvePath(origin, target); + }; +} +async function loadProtosWithOptions(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + return Promise.reject(new Error('The includeDirs option must be an array')); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = await root.load(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptions = loadProtosWithOptions; +function loadProtosWithOptionsSync(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + throw new Error('The includeDirs option must be an array'); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = root.loadSync(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptionsSync = loadProtosWithOptionsSync; +/** + * Load Google's well-known proto files that aren't exposed by Protobuf.js. + */ +function addCommonProtos() { + // Protobuf.js exposes: any, duration, empty, field_mask, struct, timestamp, + // and wrappers. compiler/plugin is excluded in Protobuf.js and here. + // Using constant strings for compatibility with tools like Webpack + const apiDescriptor = __nccwpck_require__(15434); + const descriptorDescriptor = __nccwpck_require__(93951); + const sourceContextDescriptor = __nccwpck_require__(92939); + const typeDescriptor = __nccwpck_require__(36710); + Protobuf.common('api', apiDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('descriptor', descriptorDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('source_context', sourceContextDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('type', typeDescriptor.nested.google.nested.protobuf.nested); +} +exports.addCommonProtos = addCommonProtos; +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 10570: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "t", ({ + value: true +})); + +class TreeNode { + constructor(t, e, s = 1) { + this.i = undefined; + this.h = undefined; + this.o = undefined; + this.u = t; + this.l = e; + this.p = s; + } + I() { + let t = this; + const e = t.o.o === t; + if (e && t.p === 1) { + t = t.h; + } else if (t.i) { + t = t.i; + while (t.h) { + t = t.h; + } + } else { + if (e) { + return t.o; + } + let s = t.o; + while (s.i === t) { + t = s; + s = t.o; + } + t = s; + } + return t; + } + B() { + let t = this; + if (t.h) { + t = t.h; + while (t.i) { + t = t.i; + } + return t; + } else { + let e = t.o; + while (e.h === t) { + t = e; + e = t.o; + } + if (t.h !== e) { + return e; + } else return t; + } + } + _() { + const t = this.o; + const e = this.h; + const s = e.i; + if (t.o === this) t.o = e; else if (t.i === this) t.i = e; else t.h = e; + e.o = t; + e.i = this; + this.o = e; + this.h = s; + if (s) s.o = this; + return e; + } + g() { + const t = this.o; + const e = this.i; + const s = e.h; + if (t.o === this) t.o = e; else if (t.i === this) t.i = e; else t.h = e; + e.o = t; + e.h = this; + this.o = e; + this.i = s; + if (s) s.o = this; + return e; + } +} + +class TreeNodeEnableIndex extends TreeNode { + constructor() { + super(...arguments); + this.M = 1; + } + _() { + const t = super._(); + this.O(); + t.O(); + return t; + } + g() { + const t = super.g(); + this.O(); + t.O(); + return t; + } + O() { + this.M = 1; + if (this.i) { + this.M += this.i.M; + } + if (this.h) { + this.M += this.h.M; + } + } +} + +class ContainerIterator { + constructor(t = 0) { + this.iteratorType = t; + } + equals(t) { + return this.T === t.T; + } +} + +class Base { + constructor() { + this.m = 0; + } + get length() { + return this.m; + } + size() { + return this.m; + } + empty() { + return this.m === 0; + } +} + +class Container extends Base {} + +function throwIteratorAccessError() { + throw new RangeError("Iterator access denied!"); +} + +class TreeContainer extends Container { + constructor(t = function(t, e) { + if (t < e) return -1; + if (t > e) return 1; + return 0; + }, e = false) { + super(); + this.v = undefined; + this.A = t; + this.enableIndex = e; + this.N = e ? TreeNodeEnableIndex : TreeNode; + this.C = new this.N; + } + R(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i < 0) { + t = t.h; + } else if (i > 0) { + s = t; + t = t.i; + } else return t; + } + return s; + } + K(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i <= 0) { + t = t.h; + } else { + s = t; + t = t.i; + } + } + return s; + } + L(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i < 0) { + s = t; + t = t.h; + } else if (i > 0) { + t = t.i; + } else return t; + } + return s; + } + k(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i < 0) { + s = t; + t = t.h; + } else { + t = t.i; + } + } + return s; + } + P(t) { + while (true) { + const e = t.o; + if (e === this.C) return; + if (t.p === 1) { + t.p = 0; + return; + } + if (t === e.i) { + const s = e.h; + if (s.p === 1) { + s.p = 0; + e.p = 1; + if (e === this.v) { + this.v = e._(); + } else e._(); + } else { + if (s.h && s.h.p === 1) { + s.p = e.p; + e.p = 0; + s.h.p = 0; + if (e === this.v) { + this.v = e._(); + } else e._(); + return; + } else if (s.i && s.i.p === 1) { + s.p = 1; + s.i.p = 0; + s.g(); + } else { + s.p = 1; + t = e; + } + } + } else { + const s = e.i; + if (s.p === 1) { + s.p = 0; + e.p = 1; + if (e === this.v) { + this.v = e.g(); + } else e.g(); + } else { + if (s.i && s.i.p === 1) { + s.p = e.p; + e.p = 0; + s.i.p = 0; + if (e === this.v) { + this.v = e.g(); + } else e.g(); + return; + } else if (s.h && s.h.p === 1) { + s.p = 1; + s.h.p = 0; + s._(); + } else { + s.p = 1; + t = e; + } + } + } + } + } + S(t) { + if (this.m === 1) { + this.clear(); + return; + } + let e = t; + while (e.i || e.h) { + if (e.h) { + e = e.h; + while (e.i) e = e.i; + } else { + e = e.i; + } + const s = t.u; + t.u = e.u; + e.u = s; + const i = t.l; + t.l = e.l; + e.l = i; + t = e; + } + if (this.C.i === e) { + this.C.i = e.o; + } else if (this.C.h === e) { + this.C.h = e.o; + } + this.P(e); + let s = e.o; + if (e === s.i) { + s.i = undefined; + } else s.h = undefined; + this.m -= 1; + this.v.p = 0; + if (this.enableIndex) { + while (s !== this.C) { + s.M -= 1; + s = s.o; + } + } + } + U(t) { + const e = typeof t === "number" ? t : undefined; + const s = typeof t === "function" ? t : undefined; + const i = typeof t === "undefined" ? [] : undefined; + let r = 0; + let n = this.v; + const h = []; + while (h.length || n) { + if (n) { + h.push(n); + n = n.i; + } else { + n = h.pop(); + if (r === e) return n; + i && i.push(n); + s && s(n, r, this); + r += 1; + n = n.h; + } + } + return i; + } + j(t) { + while (true) { + const e = t.o; + if (e.p === 0) return; + const s = e.o; + if (e === s.i) { + const i = s.h; + if (i && i.p === 1) { + i.p = e.p = 0; + if (s === this.v) return; + s.p = 1; + t = s; + continue; + } else if (t === e.h) { + t.p = 0; + if (t.i) { + t.i.o = e; + } + if (t.h) { + t.h.o = s; + } + e.h = t.i; + s.i = t.h; + t.i = e; + t.h = s; + if (s === this.v) { + this.v = t; + this.C.o = t; + } else { + const e = s.o; + if (e.i === s) { + e.i = t; + } else e.h = t; + } + t.o = s.o; + e.o = t; + s.o = t; + s.p = 1; + } else { + e.p = 0; + if (s === this.v) { + this.v = s.g(); + } else s.g(); + s.p = 1; + return; + } + } else { + const i = s.i; + if (i && i.p === 1) { + i.p = e.p = 0; + if (s === this.v) return; + s.p = 1; + t = s; + continue; + } else if (t === e.i) { + t.p = 0; + if (t.i) { + t.i.o = s; + } + if (t.h) { + t.h.o = e; + } + s.h = t.i; + e.i = t.h; + t.i = s; + t.h = e; + if (s === this.v) { + this.v = t; + this.C.o = t; + } else { + const e = s.o; + if (e.i === s) { + e.i = t; + } else e.h = t; + } + t.o = s.o; + e.o = t; + s.o = t; + s.p = 1; + } else { + e.p = 0; + if (s === this.v) { + this.v = s._(); + } else s._(); + s.p = 1; + return; + } + } + if (this.enableIndex) { + e.O(); + s.O(); + t.O(); + } + return; + } + } + q(t, e, s) { + if (this.v === undefined) { + this.m += 1; + this.v = new this.N(t, e, 0); + this.v.o = this.C; + this.C.o = this.C.i = this.C.h = this.v; + return this.m; + } + let i; + const r = this.C.i; + const n = this.A(r.u, t); + if (n === 0) { + r.l = e; + return this.m; + } else if (n > 0) { + r.i = new this.N(t, e); + r.i.o = r; + i = r.i; + this.C.i = i; + } else { + const r = this.C.h; + const n = this.A(r.u, t); + if (n === 0) { + r.l = e; + return this.m; + } else if (n < 0) { + r.h = new this.N(t, e); + r.h.o = r; + i = r.h; + this.C.h = i; + } else { + if (s !== undefined) { + const r = s.T; + if (r !== this.C) { + const s = this.A(r.u, t); + if (s === 0) { + r.l = e; + return this.m; + } else if (s > 0) { + const s = r.I(); + const n = this.A(s.u, t); + if (n === 0) { + s.l = e; + return this.m; + } else if (n < 0) { + i = new this.N(t, e); + if (s.h === undefined) { + s.h = i; + i.o = s; + } else { + r.i = i; + i.o = r; + } + } + } + } + } + if (i === undefined) { + i = this.v; + while (true) { + const s = this.A(i.u, t); + if (s > 0) { + if (i.i === undefined) { + i.i = new this.N(t, e); + i.i.o = i; + i = i.i; + break; + } + i = i.i; + } else if (s < 0) { + if (i.h === undefined) { + i.h = new this.N(t, e); + i.h.o = i; + i = i.h; + break; + } + i = i.h; + } else { + i.l = e; + return this.m; + } + } + } + } + } + if (this.enableIndex) { + let t = i.o; + while (t !== this.C) { + t.M += 1; + t = t.o; + } + } + this.j(i); + this.m += 1; + return this.m; + } + H(t, e) { + while (t) { + const s = this.A(t.u, e); + if (s < 0) { + t = t.h; + } else if (s > 0) { + t = t.i; + } else return t; + } + return t || this.C; + } + clear() { + this.m = 0; + this.v = undefined; + this.C.o = undefined; + this.C.i = this.C.h = undefined; + } + updateKeyByIterator(t, e) { + const s = t.T; + if (s === this.C) { + throwIteratorAccessError(); + } + if (this.m === 1) { + s.u = e; + return true; + } + const i = s.B().u; + if (s === this.C.i) { + if (this.A(i, e) > 0) { + s.u = e; + return true; + } + return false; + } + const r = s.I().u; + if (s === this.C.h) { + if (this.A(r, e) < 0) { + s.u = e; + return true; + } + return false; + } + if (this.A(r, e) >= 0 || this.A(i, e) <= 0) return false; + s.u = e; + return true; + } + eraseElementByPos(t) { + if (t < 0 || t > this.m - 1) { + throw new RangeError; + } + const e = this.U(t); + this.S(e); + return this.m; + } + eraseElementByKey(t) { + if (this.m === 0) return false; + const e = this.H(this.v, t); + if (e === this.C) return false; + this.S(e); + return true; + } + eraseElementByIterator(t) { + const e = t.T; + if (e === this.C) { + throwIteratorAccessError(); + } + const s = e.h === undefined; + const i = t.iteratorType === 0; + if (i) { + if (s) t.next(); + } else { + if (!s || e.i === undefined) t.next(); + } + this.S(e); + return t; + } + getHeight() { + if (this.m === 0) return 0; + function traversal(t) { + if (!t) return 0; + return Math.max(traversal(t.i), traversal(t.h)) + 1; + } + return traversal(this.v); + } +} + +class TreeIterator extends ContainerIterator { + constructor(t, e, s) { + super(s); + this.T = t; + this.C = e; + if (this.iteratorType === 0) { + this.pre = function() { + if (this.T === this.C.i) { + throwIteratorAccessError(); + } + this.T = this.T.I(); + return this; + }; + this.next = function() { + if (this.T === this.C) { + throwIteratorAccessError(); + } + this.T = this.T.B(); + return this; + }; + } else { + this.pre = function() { + if (this.T === this.C.h) { + throwIteratorAccessError(); + } + this.T = this.T.B(); + return this; + }; + this.next = function() { + if (this.T === this.C) { + throwIteratorAccessError(); + } + this.T = this.T.I(); + return this; + }; + } + } + get index() { + let t = this.T; + const e = this.C.o; + if (t === this.C) { + if (e) { + return e.M - 1; + } + return 0; + } + let s = 0; + if (t.i) { + s += t.i.M; + } + while (t !== e) { + const e = t.o; + if (t === e.h) { + s += 1; + if (e.i) { + s += e.i.M; + } + } + t = e; + } + return s; + } + isAccessible() { + return this.T !== this.C; + } +} + +class OrderedMapIterator extends TreeIterator { + constructor(t, e, s, i) { + super(t, e, i); + this.container = s; + } + get pointer() { + if (this.T === this.C) { + throwIteratorAccessError(); + } + const t = this; + return new Proxy([], { + get(e, s) { + if (s === "0") return t.T.u; else if (s === "1") return t.T.l; + e[0] = t.T.u; + e[1] = t.T.l; + return e[s]; + }, + set(e, s, i) { + if (s !== "1") { + throw new TypeError("prop must be 1"); + } + t.T.l = i; + return true; + } + }); + } + copy() { + return new OrderedMapIterator(this.T, this.C, this.container, this.iteratorType); + } +} + +class OrderedMap extends TreeContainer { + constructor(t = [], e, s) { + super(e, s); + const i = this; + t.forEach((function(t) { + i.setElement(t[0], t[1]); + })); + } + begin() { + return new OrderedMapIterator(this.C.i || this.C, this.C, this); + } + end() { + return new OrderedMapIterator(this.C, this.C, this); + } + rBegin() { + return new OrderedMapIterator(this.C.h || this.C, this.C, this, 1); + } + rEnd() { + return new OrderedMapIterator(this.C, this.C, this, 1); + } + front() { + if (this.m === 0) return; + const t = this.C.i; + return [ t.u, t.l ]; + } + back() { + if (this.m === 0) return; + const t = this.C.h; + return [ t.u, t.l ]; + } + lowerBound(t) { + const e = this.R(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + upperBound(t) { + const e = this.K(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + reverseLowerBound(t) { + const e = this.L(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + reverseUpperBound(t) { + const e = this.k(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + forEach(t) { + this.U((function(e, s, i) { + t([ e.u, e.l ], s, i); + })); + } + setElement(t, e, s) { + return this.q(t, e, s); + } + getElementByPos(t) { + if (t < 0 || t > this.m - 1) { + throw new RangeError; + } + const e = this.U(t); + return [ e.u, e.l ]; + } + find(t) { + const e = this.H(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + getElementByKey(t) { + const e = this.H(this.v, t); + return e.l; + } + union(t) { + const e = this; + t.forEach((function(t) { + e.setElement(t[0], t[1]); + })); + return this.m; + } + * [Symbol.iterator]() { + const t = this.m; + const e = this.U(); + for (let s = 0; s < t; ++s) { + const t = e[s]; + yield [ t.u, t.l ]; + } + } +} + +exports.OrderedMap = OrderedMap; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 12841: +/***/ ((module) => { + +"use strict"; + +module.exports = asPromise; + +/** + * Callback as used by {@link util.asPromise}. + * @typedef asPromiseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {...*} params Additional arguments + * @returns {undefined} + */ + +/** + * Returns a promise from a node-style callback function. + * @memberof util + * @param {asPromiseCallback} fn Function to call + * @param {*} ctx Function context + * @param {...*} params Function arguments + * @returns {Promise<*>} Promisified function + */ +function asPromise(fn, ctx/*, varargs */) { + var params = new Array(arguments.length - 1), + offset = 0, + index = 2, + pending = true; + while (index < arguments.length) + params[offset++] = arguments[index++]; + return new Promise(function executor(resolve, reject) { + params[offset] = function callback(err/*, varargs */) { + if (pending) { + pending = false; + if (err) + reject(err); + else { + var params = new Array(arguments.length - 1), + offset = 0; + while (offset < params.length) + params[offset++] = arguments[offset]; + resolve.apply(null, params); + } + } + }; + try { + fn.apply(ctx || null, params); + } catch (err) { + if (pending) { + pending = false; + reject(err); + } + } + }); +} + + +/***/ }), + +/***/ 67915: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +/** + * A minimal base64 implementation for number arrays. + * @memberof util + * @namespace + */ +var base64 = exports; + +/** + * Calculates the byte length of a base64 encoded string. + * @param {string} string Base64 encoded string + * @returns {number} Byte length + */ +base64.length = function length(string) { + var p = string.length; + if (!p) + return 0; + var n = 0; + while (--p % 4 > 1 && string.charAt(p) === "=") + ++n; + return Math.ceil(string.length * 3) / 4 - n; +}; + +// Base64 encoding table +var b64 = new Array(64); + +// Base64 decoding table +var s64 = new Array(123); + +// 65..90, 97..122, 48..57, 43, 47 +for (var i = 0; i < 64;) + s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++; + +/** + * Encodes a buffer to a base64 encoded string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} Base64 encoded string + */ +base64.encode = function encode(buffer, start, end) { + var parts = null, + chunk = []; + var i = 0, // output index + j = 0, // goto index + t; // temporary + while (start < end) { + var b = buffer[start++]; + switch (j) { + case 0: + chunk[i++] = b64[b >> 2]; + t = (b & 3) << 4; + j = 1; + break; + case 1: + chunk[i++] = b64[t | b >> 4]; + t = (b & 15) << 2; + j = 2; + break; + case 2: + chunk[i++] = b64[t | b >> 6]; + chunk[i++] = b64[b & 63]; + j = 0; + break; + } + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk)); + i = 0; + } + } + if (j) { + chunk[i++] = b64[t]; + chunk[i++] = 61; + if (j === 1) + chunk[i++] = 61; + } + if (parts) { + if (i) + parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode.apply(String, chunk.slice(0, i)); +}; + +var invalidEncoding = "invalid encoding"; + +/** + * Decodes a base64 encoded string to a buffer. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Number of bytes written + * @throws {Error} If encoding is invalid + */ +base64.decode = function decode(string, buffer, offset) { + var start = offset; + var j = 0, // goto index + t; // temporary + for (var i = 0; i < string.length;) { + var c = string.charCodeAt(i++); + if (c === 61 && j > 1) + break; + if ((c = s64[c]) === undefined) + throw Error(invalidEncoding); + switch (j) { + case 0: + t = c; + j = 1; + break; + case 1: + buffer[offset++] = t << 2 | (c & 48) >> 4; + t = c; + j = 2; + break; + case 2: + buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2; + t = c; + j = 3; + break; + case 3: + buffer[offset++] = (t & 3) << 6 | c; + j = 0; + break; + } + } + if (j === 1) + throw Error(invalidEncoding); + return offset - start; +}; + +/** + * Tests if the specified string appears to be base64 encoded. + * @param {string} string String to test + * @returns {boolean} `true` if probably base64 encoded, otherwise false + */ +base64.test = function test(string) { + return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string); +}; + + +/***/ }), + +/***/ 94933: +/***/ ((module) => { + +"use strict"; + +module.exports = codegen; + +/** + * Begins generating a function. + * @memberof util + * @param {string[]} functionParams Function parameter names + * @param {string} [functionName] Function name if not anonymous + * @returns {Codegen} Appender that appends code to the function's body + */ +function codegen(functionParams, functionName) { + + /* istanbul ignore if */ + if (typeof functionParams === "string") { + functionName = functionParams; + functionParams = undefined; + } + + var body = []; + + /** + * Appends code to the function's body or finishes generation. + * @typedef Codegen + * @type {function} + * @param {string|Object.} [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any + * @param {...*} [formatParams] Format parameters + * @returns {Codegen|Function} Itself or the generated function if finished + * @throws {Error} If format parameter counts do not match + */ + + function Codegen(formatStringOrScope) { + // note that explicit array handling below makes this ~50% faster + + // finish the function + if (typeof formatStringOrScope !== "string") { + var source = toString(); + if (codegen.verbose) + console.log("codegen: " + source); // eslint-disable-line no-console + source = "return " + source; + if (formatStringOrScope) { + var scopeKeys = Object.keys(formatStringOrScope), + scopeParams = new Array(scopeKeys.length + 1), + scopeValues = new Array(scopeKeys.length), + scopeOffset = 0; + while (scopeOffset < scopeKeys.length) { + scopeParams[scopeOffset] = scopeKeys[scopeOffset]; + scopeValues[scopeOffset] = formatStringOrScope[scopeKeys[scopeOffset++]]; + } + scopeParams[scopeOffset] = source; + return Function.apply(null, scopeParams).apply(null, scopeValues); // eslint-disable-line no-new-func + } + return Function(source)(); // eslint-disable-line no-new-func + } + + // otherwise append to body + var formatParams = new Array(arguments.length - 1), + formatOffset = 0; + while (formatOffset < formatParams.length) + formatParams[formatOffset] = arguments[++formatOffset]; + formatOffset = 0; + formatStringOrScope = formatStringOrScope.replace(/%([%dfijs])/g, function replace($0, $1) { + var value = formatParams[formatOffset++]; + switch ($1) { + case "d": case "f": return String(Number(value)); + case "i": return String(Math.floor(value)); + case "j": return JSON.stringify(value); + case "s": return String(value); + } + return "%"; + }); + if (formatOffset !== formatParams.length) + throw Error("parameter count mismatch"); + body.push(formatStringOrScope); + return Codegen; + } + + function toString(functionNameOverride) { + return "function " + (functionNameOverride || functionName || "") + "(" + (functionParams && functionParams.join(",") || "") + "){\n " + body.join("\n ") + "\n}"; + } + + Codegen.toString = toString; + return Codegen; +} + +/** + * Begins generating a function. + * @memberof util + * @function codegen + * @param {string} [functionName] Function name if not anonymous + * @returns {Codegen} Appender that appends code to the function's body + * @variation 2 + */ + +/** + * When set to `true`, codegen will log generated code to console. Useful for debugging. + * @name util.codegen.verbose + * @type {boolean} + */ +codegen.verbose = false; + + +/***/ }), + +/***/ 64514: +/***/ ((module) => { + +"use strict"; + +module.exports = EventEmitter; + +/** + * Constructs a new event emitter instance. + * @classdesc A minimal event emitter. + * @memberof util + * @constructor + */ +function EventEmitter() { + + /** + * Registered listeners. + * @type {Object.} + * @private + */ + this._listeners = {}; +} + +/** + * Registers an event listener. + * @param {string} evt Event name + * @param {function} fn Listener + * @param {*} [ctx] Listener context + * @returns {util.EventEmitter} `this` + */ +EventEmitter.prototype.on = function on(evt, fn, ctx) { + (this._listeners[evt] || (this._listeners[evt] = [])).push({ + fn : fn, + ctx : ctx || this + }); + return this; +}; + +/** + * Removes an event listener or any matching listeners if arguments are omitted. + * @param {string} [evt] Event name. Removes all listeners if omitted. + * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted. + * @returns {util.EventEmitter} `this` + */ +EventEmitter.prototype.off = function off(evt, fn) { + if (evt === undefined) + this._listeners = {}; + else { + if (fn === undefined) + this._listeners[evt] = []; + else { + var listeners = this._listeners[evt]; + for (var i = 0; i < listeners.length;) + if (listeners[i].fn === fn) + listeners.splice(i, 1); + else + ++i; + } + } + return this; +}; + +/** + * Emits an event by calling its listeners with the specified arguments. + * @param {string} evt Event name + * @param {...*} args Arguments + * @returns {util.EventEmitter} `this` + */ +EventEmitter.prototype.emit = function emit(evt) { + var listeners = this._listeners[evt]; + if (listeners) { + var args = [], + i = 1; + for (; i < arguments.length;) + args.push(arguments[i++]); + for (i = 0; i < listeners.length;) + listeners[i].fn.apply(listeners[i++].ctx, args); + } + return this; +}; + + +/***/ }), + +/***/ 52248: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = fetch; + +var asPromise = __nccwpck_require__(12841), + inquire = __nccwpck_require__(49570); + +var fs = inquire("fs"); + +/** + * Node-style callback as used by {@link util.fetch}. + * @typedef FetchCallback + * @type {function} + * @param {?Error} error Error, if any, otherwise `null` + * @param {string} [contents] File contents, if there hasn't been an error + * @returns {undefined} + */ + +/** + * Options as used by {@link util.fetch}. + * @typedef FetchOptions + * @type {Object} + * @property {boolean} [binary=false] Whether expecting a binary response + * @property {boolean} [xhr=false] If `true`, forces the use of XMLHttpRequest + */ + +/** + * Fetches the contents of a file. + * @memberof util + * @param {string} filename File path or url + * @param {FetchOptions} options Fetch options + * @param {FetchCallback} callback Callback function + * @returns {undefined} + */ +function fetch(filename, options, callback) { + if (typeof options === "function") { + callback = options; + options = {}; + } else if (!options) + options = {}; + + if (!callback) + return asPromise(fetch, this, filename, options); // eslint-disable-line no-invalid-this + + // if a node-like filesystem is present, try it first but fall back to XHR if nothing is found. + if (!options.xhr && fs && fs.readFile) + return fs.readFile(filename, function fetchReadFileCallback(err, contents) { + return err && typeof XMLHttpRequest !== "undefined" + ? fetch.xhr(filename, options, callback) + : err + ? callback(err) + : callback(null, options.binary ? contents : contents.toString("utf8")); + }); + + // use the XHR version otherwise. + return fetch.xhr(filename, options, callback); +} + +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {FetchCallback} callback Callback function + * @returns {undefined} + * @variation 2 + */ + +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {FetchOptions} [options] Fetch options + * @returns {Promise} Promise + * @variation 3 + */ + +/**/ +fetch.xhr = function fetch_xhr(filename, options, callback) { + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange /* works everywhere */ = function fetchOnReadyStateChange() { + + if (xhr.readyState !== 4) + return undefined; + + // local cors security errors return status 0 / empty string, too. afaik this cannot be + // reliably distinguished from an actually empty file for security reasons. feel free + // to send a pull request if you are aware of a solution. + if (xhr.status !== 0 && xhr.status !== 200) + return callback(Error("status " + xhr.status)); + + // if binary data is expected, make sure that some sort of array is returned, even if + // ArrayBuffers are not supported. the binary string fallback, however, is unsafe. + if (options.binary) { + var buffer = xhr.response; + if (!buffer) { + buffer = []; + for (var i = 0; i < xhr.responseText.length; ++i) + buffer.push(xhr.responseText.charCodeAt(i) & 255); + } + return callback(null, typeof Uint8Array !== "undefined" ? new Uint8Array(buffer) : buffer); + } + return callback(null, xhr.responseText); + }; + + if (options.binary) { + // ref: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data#Receiving_binary_data_in_older_browsers + if ("overrideMimeType" in xhr) + xhr.overrideMimeType("text/plain; charset=x-user-defined"); + xhr.responseType = "arraybuffer"; + } + + xhr.open("GET", filename); + xhr.send(); +}; + + +/***/ }), + +/***/ 77062: +/***/ ((module) => { + +"use strict"; + + +module.exports = factory(factory); + +/** + * Reads / writes floats / doubles from / to buffers. + * @name util.float + * @namespace + */ + +/** + * Writes a 32 bit float to a buffer using little endian byte order. + * @name util.float.writeFloatLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Writes a 32 bit float to a buffer using big endian byte order. + * @name util.float.writeFloatBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Reads a 32 bit float from a buffer using little endian byte order. + * @name util.float.readFloatLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +/** + * Reads a 32 bit float from a buffer using big endian byte order. + * @name util.float.readFloatBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +/** + * Writes a 64 bit double to a buffer using little endian byte order. + * @name util.float.writeDoubleLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Writes a 64 bit double to a buffer using big endian byte order. + * @name util.float.writeDoubleBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Reads a 64 bit double from a buffer using little endian byte order. + * @name util.float.readDoubleLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +/** + * Reads a 64 bit double from a buffer using big endian byte order. + * @name util.float.readDoubleBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +// Factory function for the purpose of node-based testing in modified global environments +function factory(exports) { + + // float: typed array + if (typeof Float32Array !== "undefined") (function() { + + var f32 = new Float32Array([ -0 ]), + f8b = new Uint8Array(f32.buffer), + le = f8b[3] === 128; + + function writeFloat_f32_cpy(val, buf, pos) { + f32[0] = val; + buf[pos ] = f8b[0]; + buf[pos + 1] = f8b[1]; + buf[pos + 2] = f8b[2]; + buf[pos + 3] = f8b[3]; + } + + function writeFloat_f32_rev(val, buf, pos) { + f32[0] = val; + buf[pos ] = f8b[3]; + buf[pos + 1] = f8b[2]; + buf[pos + 2] = f8b[1]; + buf[pos + 3] = f8b[0]; + } + + /* istanbul ignore next */ + exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev; + /* istanbul ignore next */ + exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy; + + function readFloat_f32_cpy(buf, pos) { + f8b[0] = buf[pos ]; + f8b[1] = buf[pos + 1]; + f8b[2] = buf[pos + 2]; + f8b[3] = buf[pos + 3]; + return f32[0]; + } + + function readFloat_f32_rev(buf, pos) { + f8b[3] = buf[pos ]; + f8b[2] = buf[pos + 1]; + f8b[1] = buf[pos + 2]; + f8b[0] = buf[pos + 3]; + return f32[0]; + } + + /* istanbul ignore next */ + exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev; + /* istanbul ignore next */ + exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy; + + // float: ieee754 + })(); else (function() { + + function writeFloat_ieee754(writeUint, val, buf, pos) { + var sign = val < 0 ? 1 : 0; + if (sign) + val = -val; + if (val === 0) + writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos); + else if (isNaN(val)) + writeUint(2143289344, buf, pos); + else if (val > 3.4028234663852886e+38) // +-Infinity + writeUint((sign << 31 | 2139095040) >>> 0, buf, pos); + else if (val < 1.1754943508222875e-38) // denormal + writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos); + else { + var exponent = Math.floor(Math.log(val) / Math.LN2), + mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607; + writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos); + } + } + + exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE); + exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE); + + function readFloat_ieee754(readUint, buf, pos) { + var uint = readUint(buf, pos), + sign = (uint >> 31) * 2 + 1, + exponent = uint >>> 23 & 255, + mantissa = uint & 8388607; + return exponent === 255 + ? mantissa + ? NaN + : sign * Infinity + : exponent === 0 // denormal + ? sign * 1.401298464324817e-45 * mantissa + : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608); + } + + exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE); + exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE); + + })(); + + // double: typed array + if (typeof Float64Array !== "undefined") (function() { + + var f64 = new Float64Array([-0]), + f8b = new Uint8Array(f64.buffer), + le = f8b[7] === 128; + + function writeDouble_f64_cpy(val, buf, pos) { + f64[0] = val; + buf[pos ] = f8b[0]; + buf[pos + 1] = f8b[1]; + buf[pos + 2] = f8b[2]; + buf[pos + 3] = f8b[3]; + buf[pos + 4] = f8b[4]; + buf[pos + 5] = f8b[5]; + buf[pos + 6] = f8b[6]; + buf[pos + 7] = f8b[7]; + } + + function writeDouble_f64_rev(val, buf, pos) { + f64[0] = val; + buf[pos ] = f8b[7]; + buf[pos + 1] = f8b[6]; + buf[pos + 2] = f8b[5]; + buf[pos + 3] = f8b[4]; + buf[pos + 4] = f8b[3]; + buf[pos + 5] = f8b[2]; + buf[pos + 6] = f8b[1]; + buf[pos + 7] = f8b[0]; + } + + /* istanbul ignore next */ + exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev; + /* istanbul ignore next */ + exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy; + + function readDouble_f64_cpy(buf, pos) { + f8b[0] = buf[pos ]; + f8b[1] = buf[pos + 1]; + f8b[2] = buf[pos + 2]; + f8b[3] = buf[pos + 3]; + f8b[4] = buf[pos + 4]; + f8b[5] = buf[pos + 5]; + f8b[6] = buf[pos + 6]; + f8b[7] = buf[pos + 7]; + return f64[0]; + } + + function readDouble_f64_rev(buf, pos) { + f8b[7] = buf[pos ]; + f8b[6] = buf[pos + 1]; + f8b[5] = buf[pos + 2]; + f8b[4] = buf[pos + 3]; + f8b[3] = buf[pos + 4]; + f8b[2] = buf[pos + 5]; + f8b[1] = buf[pos + 6]; + f8b[0] = buf[pos + 7]; + return f64[0]; + } + + /* istanbul ignore next */ + exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev; + /* istanbul ignore next */ + exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy; + + // double: ieee754 + })(); else (function() { + + function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) { + var sign = val < 0 ? 1 : 0; + if (sign) + val = -val; + if (val === 0) { + writeUint(0, buf, pos + off0); + writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1); + } else if (isNaN(val)) { + writeUint(0, buf, pos + off0); + writeUint(2146959360, buf, pos + off1); + } else if (val > 1.7976931348623157e+308) { // +-Infinity + writeUint(0, buf, pos + off0); + writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1); + } else { + var mantissa; + if (val < 2.2250738585072014e-308) { // denormal + mantissa = val / 5e-324; + writeUint(mantissa >>> 0, buf, pos + off0); + writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1); + } else { + var exponent = Math.floor(Math.log(val) / Math.LN2); + if (exponent === 1024) + exponent = 1023; + mantissa = val * Math.pow(2, -exponent); + writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0); + writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1); + } + } + } + + exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4); + exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0); + + function readDouble_ieee754(readUint, off0, off1, buf, pos) { + var lo = readUint(buf, pos + off0), + hi = readUint(buf, pos + off1); + var sign = (hi >> 31) * 2 + 1, + exponent = hi >>> 20 & 2047, + mantissa = 4294967296 * (hi & 1048575) + lo; + return exponent === 2047 + ? mantissa + ? NaN + : sign * Infinity + : exponent === 0 // denormal + ? sign * 5e-324 * mantissa + : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496); + } + + exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4); + exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0); + + })(); + + return exports; +} + +// uint helpers + +function writeUintLE(val, buf, pos) { + buf[pos ] = val & 255; + buf[pos + 1] = val >>> 8 & 255; + buf[pos + 2] = val >>> 16 & 255; + buf[pos + 3] = val >>> 24; +} + +function writeUintBE(val, buf, pos) { + buf[pos ] = val >>> 24; + buf[pos + 1] = val >>> 16 & 255; + buf[pos + 2] = val >>> 8 & 255; + buf[pos + 3] = val & 255; +} + +function readUintLE(buf, pos) { + return (buf[pos ] + | buf[pos + 1] << 8 + | buf[pos + 2] << 16 + | buf[pos + 3] << 24) >>> 0; +} + +function readUintBE(buf, pos) { + return (buf[pos ] << 24 + | buf[pos + 1] << 16 + | buf[pos + 2] << 8 + | buf[pos + 3]) >>> 0; +} + + +/***/ }), + +/***/ 49570: +/***/ ((module) => { + +"use strict"; + +module.exports = inquire; + +/** + * Requires a module only if available. + * @memberof util + * @param {string} moduleName Module to require + * @returns {?Object} Required module if available and not empty, otherwise `null` + */ +function inquire(moduleName) { + try { + var mod = eval("quire".replace(/^/,"re"))(moduleName); // eslint-disable-line no-eval + if (mod && (mod.length || Object.keys(mod).length)) + return mod; + } catch (e) {} // eslint-disable-line no-empty + return null; +} + + +/***/ }), + +/***/ 33531: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +/** + * A minimal path module to resolve Unix, Windows and URL paths alike. + * @memberof util + * @namespace + */ +var path = exports; + +var isAbsolute = +/** + * Tests if the specified path is absolute. + * @param {string} path Path to test + * @returns {boolean} `true` if path is absolute + */ +path.isAbsolute = function isAbsolute(path) { + return /^(?:\/|\w+:)/.test(path); +}; + +var normalize = +/** + * Normalizes the specified path. + * @param {string} path Path to normalize + * @returns {string} Normalized path + */ +path.normalize = function normalize(path) { + path = path.replace(/\\/g, "/") + .replace(/\/{2,}/g, "/"); + var parts = path.split("/"), + absolute = isAbsolute(path), + prefix = ""; + if (absolute) + prefix = parts.shift() + "/"; + for (var i = 0; i < parts.length;) { + if (parts[i] === "..") { + if (i > 0 && parts[i - 1] !== "..") + parts.splice(--i, 2); + else if (absolute) + parts.splice(i, 1); + else + ++i; + } else if (parts[i] === ".") + parts.splice(i, 1); + else + ++i; + } + return prefix + parts.join("/"); +}; + +/** + * Resolves the specified include path against the specified origin path. + * @param {string} originPath Path to the origin file + * @param {string} includePath Include path relative to origin path + * @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized + * @returns {string} Path to the include file + */ +path.resolve = function resolve(originPath, includePath, alreadyNormalized) { + if (!alreadyNormalized) + includePath = normalize(includePath); + if (isAbsolute(includePath)) + return includePath; + if (!alreadyNormalized) + originPath = normalize(originPath); + return (originPath = originPath.replace(/(?:\/|^)[^/]+$/, "")).length ? normalize(originPath + "/" + includePath) : includePath; +}; + + +/***/ }), + +/***/ 37426: +/***/ ((module) => { + +"use strict"; + +module.exports = pool; + +/** + * An allocator as used by {@link util.pool}. + * @typedef PoolAllocator + * @type {function} + * @param {number} size Buffer size + * @returns {Uint8Array} Buffer + */ + +/** + * A slicer as used by {@link util.pool}. + * @typedef PoolSlicer + * @type {function} + * @param {number} start Start offset + * @param {number} end End offset + * @returns {Uint8Array} Buffer slice + * @this {Uint8Array} + */ + +/** + * A general purpose buffer pool. + * @memberof util + * @function + * @param {PoolAllocator} alloc Allocator + * @param {PoolSlicer} slice Slicer + * @param {number} [size=8192] Slab size + * @returns {PoolAllocator} Pooled allocator + */ +function pool(alloc, slice, size) { + var SIZE = size || 8192; + var MAX = SIZE >>> 1; + var slab = null; + var offset = SIZE; + return function pool_alloc(size) { + if (size < 1 || size > MAX) + return alloc(size); + if (offset + size > SIZE) { + slab = alloc(SIZE); + offset = 0; + } + var buf = slice.call(slab, offset, offset += size); + if (offset & 7) // align to 32 bit + offset = (offset | 7) + 1; + return buf; + }; +} + + +/***/ }), + +/***/ 57163: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +/** + * A minimal UTF8 implementation for number arrays. + * @memberof util + * @namespace + */ +var utf8 = exports; + +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +utf8.length = function utf8_length(string) { + var len = 0, + c = 0; + for (var i = 0; i < string.length; ++i) { + c = string.charCodeAt(i); + if (c < 128) + len += 1; + else if (c < 2048) + len += 2; + else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) { + ++i; + len += 4; + } else + len += 3; + } + return len; +}; + +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +utf8.read = function utf8_read(buffer, start, end) { + var len = end - start; + if (len < 1) + return ""; + var parts = null, + chunk = [], + i = 0, // char offset + t; // temporary + while (start < end) { + t = buffer[start++]; + if (t < 128) + chunk[i++] = t; + else if (t > 191 && t < 224) + chunk[i++] = (t & 31) << 6 | buffer[start++] & 63; + else if (t > 239 && t < 365) { + t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 0x10000; + chunk[i++] = 0xD800 + (t >> 10); + chunk[i++] = 0xDC00 + (t & 1023); + } else + chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63; + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk)); + i = 0; + } + } + if (parts) { + if (i) + parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode.apply(String, chunk.slice(0, i)); +}; + +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +utf8.write = function utf8_write(string, buffer, offset) { + var start = offset, + c1, // character 1 + c2; // character 2 + for (var i = 0; i < string.length; ++i) { + c1 = string.charCodeAt(i); + if (c1 < 128) { + buffer[offset++] = c1; + } else if (c1 < 2048) { + buffer[offset++] = c1 >> 6 | 192; + buffer[offset++] = c1 & 63 | 128; + } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) { + c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF); + ++i; + buffer[offset++] = c1 >> 18 | 240; + buffer[offset++] = c1 >> 12 & 63 | 128; + buffer[offset++] = c1 >> 6 & 63 | 128; + buffer[offset++] = c1 & 63 | 128; + } else { + buffer[offset++] = c1 >> 12 | 224; + buffer[offset++] = c1 >> 6 & 63 | 128; + buffer[offset++] = c1 & 63 | 128; + } + } + return offset - start; +}; + + +/***/ }), + +/***/ 45316: +/***/ ((module, exports, __nccwpck_require__) => { + +"use strict"; +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var eventTargetShim = __nccwpck_require__(22024); + +/** + * The signal class. + * @see https://dom.spec.whatwg.org/#abortsignal + */ +class AbortSignal extends eventTargetShim.EventTarget { + /** + * AbortSignal cannot be constructed directly. + */ + constructor() { + super(); + throw new TypeError("AbortSignal cannot be constructed directly"); + } + /** + * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. + */ + get aborted() { + const aborted = abortedFlags.get(this); + if (typeof aborted !== "boolean") { + throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); + } + return aborted; + } +} +eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort"); +/** + * Create an AbortSignal object. + */ +function createAbortSignal() { + const signal = Object.create(AbortSignal.prototype); + eventTargetShim.EventTarget.call(signal); + abortedFlags.set(signal, false); + return signal; +} +/** + * Abort a given signal. + */ +function abortSignal(signal) { + if (abortedFlags.get(signal) !== false) { + return; + } + abortedFlags.set(signal, true); + signal.dispatchEvent({ type: "abort" }); +} +/** + * Aborted flag for each instances. + */ +const abortedFlags = new WeakMap(); +// Properties should be enumerable. +Object.defineProperties(AbortSignal.prototype, { + aborted: { enumerable: true }, +}); +// `toString()` should return `"[object AbortSignal]"` +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortSignal", + }); +} + +/** + * The AbortController. + * @see https://dom.spec.whatwg.org/#abortcontroller + */ +class AbortController { + /** + * Initialize this controller. + */ + constructor() { + signals.set(this, createAbortSignal()); + } + /** + * Returns the `AbortSignal` object associated with this object. + */ + get signal() { + return getSignal(this); + } + /** + * Abort and signal to any observers that the associated activity is to be aborted. + */ + abort() { + abortSignal(getSignal(this)); + } +} +/** + * Associated signals. + */ +const signals = new WeakMap(); +/** + * Get the associated signal of a given controller. + */ +function getSignal(controller) { + const signal = signals.get(controller); + if (signal == null) { + throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`); + } + return signal; +} +// Properties should be enumerable. +Object.defineProperties(AbortController.prototype, { + signal: { enumerable: true }, + abort: { enumerable: true }, +}); +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortController.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortController", + }); +} + +exports.AbortController = AbortController; +exports.AbortSignal = AbortSignal; +exports["default"] = AbortController; + +module.exports = AbortController +module.exports.AbortController = module.exports["default"] = AbortController +module.exports.AbortSignal = AbortSignal +//# sourceMappingURL=abort-controller.js.map + + +/***/ }), + +/***/ 43660: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.req = exports.json = exports.toBuffer = void 0; +const http = __importStar(__nccwpck_require__(58611)); +const https = __importStar(__nccwpck_require__(65692)); +async function toBuffer(stream) { + let length = 0; + const chunks = []; + for await (const chunk of stream) { + length += chunk.length; + chunks.push(chunk); + } + return Buffer.concat(chunks, length); +} +exports.toBuffer = toBuffer; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +async function json(stream) { + const buf = await toBuffer(stream); + const str = buf.toString('utf8'); + try { + return JSON.parse(str); + } + catch (_err) { + const err = _err; + err.message += ` (input: ${str})`; + throw err; + } +} +exports.json = json; +function req(url, opts = {}) { + const href = typeof url === 'string' ? url : url.href; + const req = (href.startsWith('https:') ? https : http).request(url, opts); + const promise = new Promise((resolve, reject) => { + req + .once('response', resolve) + .once('error', reject) + .end(); + }); + req.then = promise.then.bind(promise); + return req; +} +exports.req = req; +//# sourceMappingURL=helpers.js.map + +/***/ }), + +/***/ 94449: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Agent = void 0; +const net = __importStar(__nccwpck_require__(69278)); +const http = __importStar(__nccwpck_require__(58611)); +const https_1 = __nccwpck_require__(65692); +__exportStar(__nccwpck_require__(43660), exports); +const INTERNAL = Symbol('AgentBaseInternalState'); +class Agent extends http.Agent { + constructor(opts) { + super(opts); + this[INTERNAL] = {}; + } + /** + * Determine whether this is an `http` or `https` request. + */ + isSecureEndpoint(options) { + if (options) { + // First check the `secureEndpoint` property explicitly, since this + // means that a parent `Agent` is "passing through" to this instance. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (typeof options.secureEndpoint === 'boolean') { + return options.secureEndpoint; + } + // If no explicit `secure` endpoint, check if `protocol` property is + // set. This will usually be the case since using a full string URL + // or `URL` instance should be the most common usage. + if (typeof options.protocol === 'string') { + return options.protocol === 'https:'; + } + } + // Finally, if no `protocol` property was set, then fall back to + // checking the stack trace of the current call stack, and try to + // detect the "https" module. + const { stack } = new Error(); + if (typeof stack !== 'string') + return false; + return stack + .split('\n') + .some((l) => l.indexOf('(https.js:') !== -1 || + l.indexOf('node:https:') !== -1); + } + // In order to support async signatures in `connect()` and Node's native + // connection pooling in `http.Agent`, the array of sockets for each origin + // has to be updated synchronously. This is so the length of the array is + // accurate when `addRequest()` is next called. We achieve this by creating a + // fake socket and adding it to `sockets[origin]` and incrementing + // `totalSocketCount`. + incrementSockets(name) { + // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no + // need to create a fake socket because Node.js native connection pooling + // will never be invoked. + if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) { + return null; + } + // All instances of `sockets` are expected TypeScript errors. The + // alternative is to add it as a private property of this class but that + // will break TypeScript subclassing. + if (!this.sockets[name]) { + // @ts-expect-error `sockets` is readonly in `@types/node` + this.sockets[name] = []; + } + const fakeSocket = new net.Socket({ writable: false }); + this.sockets[name].push(fakeSocket); + // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` + this.totalSocketCount++; + return fakeSocket; + } + decrementSockets(name, socket) { + if (!this.sockets[name] || socket === null) { + return; + } + const sockets = this.sockets[name]; + const index = sockets.indexOf(socket); + if (index !== -1) { + sockets.splice(index, 1); + // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` + this.totalSocketCount--; + if (sockets.length === 0) { + // @ts-expect-error `sockets` is readonly in `@types/node` + delete this.sockets[name]; + } + } + } + // In order to properly update the socket pool, we need to call `getName()` on + // the core `https.Agent` if it is a secureEndpoint. + getName(options) { + const secureEndpoint = this.isSecureEndpoint(options); + if (secureEndpoint) { + // @ts-expect-error `getName()` isn't defined in `@types/node` + return https_1.Agent.prototype.getName.call(this, options); + } + // @ts-expect-error `getName()` isn't defined in `@types/node` + return super.getName(options); + } + createSocket(req, options, cb) { + const connectOpts = { + ...options, + secureEndpoint: this.isSecureEndpoint(options), + }; + const name = this.getName(connectOpts); + const fakeSocket = this.incrementSockets(name); + Promise.resolve() + .then(() => this.connect(req, connectOpts)) + .then((socket) => { + this.decrementSockets(name, fakeSocket); + if (socket instanceof http.Agent) { + try { + // @ts-expect-error `addRequest()` isn't defined in `@types/node` + return socket.addRequest(req, connectOpts); + } + catch (err) { + return cb(err); + } + } + this[INTERNAL].currentSocket = socket; + // @ts-expect-error `createSocket()` isn't defined in `@types/node` + super.createSocket(req, options, cb); + }, (err) => { + this.decrementSockets(name, fakeSocket); + cb(err); + }); + } + createConnection() { + const socket = this[INTERNAL].currentSocket; + this[INTERNAL].currentSocket = undefined; + if (!socket) { + throw new Error('No socket was returned in the `connect()` function'); + } + return socket; + } + get defaultPort() { + return (this[INTERNAL].defaultPort ?? + (this.protocol === 'https:' ? 443 : 80)); + } + set defaultPort(v) { + if (this[INTERNAL]) { + this[INTERNAL].defaultPort = v; + } + } + get protocol() { + return (this[INTERNAL].protocol ?? + (this.isSecureEndpoint() ? 'https:' : 'http:')); + } + set protocol(v) { + if (this[INTERNAL]) { + this[INTERNAL].protocol = v; + } + } +} +exports.Agent = Agent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 30452: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + + +const AWS = __nccwpck_require__(62538) +const aws4 = __nccwpck_require__(239) +const { GoogleAuth } = __nccwpck_require__(959); +const { DefaultAzureCredential } = __nccwpck_require__(30154); +const { IAMCredentialsClient } = __nccwpck_require__(62995) + +async function getCloudId(acc_type, param) { + if (acc_type === "aws_iam") { + return getAWsCloudId() + } else if (acc_type === "azure_ad") { + return getAzureCloudID(param) + } else if (acc_type === "gcp") { + return getGcpCloudID(param) + } else if (acc_type === "access_key") { + return "" + } else { + throw new Error("Invalid access type") + } +} + +async function getAzureCloudID(object_id) { + + const credential = new DefaultAzureCredential(); + + const scope = "https://management.azure.com/.default"; + const token = await credential.getToken(scope); + + return Buffer.from(token.token).toString('base64') +} + + +async function getGcpCloudID(audience) { + if (!audience) { + audience = "akeyless.io" + } + + const googleAuth = new GoogleAuth(); + const client = await googleAuth.getClient(); + let token; + + if (typeof client.fetchIdToken === 'function') { + token = await client.fetchIdToken(audience); + } else if (client.serviceAccountImpersonationUrl) { + // WIF: get ID token via IAM Credentials API. + // URL format: https://iamcredentials.googleapis.com/v1/{name=projects/*/serviceAccounts/*}:generateAccessToken + const url = client.serviceAccountImpersonationUrl; + const name = url.match(/projects\/[^:]+/)?.[0]; + if (!name) throw new Error('Invalid serviceAccountImpersonationUrl format'); + const [resp] = await new IAMCredentialsClient().generateIdToken({ + name, + audience, + includeEmail: true + }); + token = resp.token; + } else { + // Get ID token via getIdTokenClient (for google-auth-library clients types: JWT, GCE, Impersonated). + const idTokenClient = await googleAuth.getIdTokenClient(audience); + const headers = await idTokenClient.getRequestHeaders(); + token = headers.Authorization.replace('Bearer ', ''); + } + return Buffer.from(token).toString('base64') +} + +function getAWsCloudId() { + return new Promise((resolve, reject) => { + AWS.config.getCredentials(function (err) { + if (err) { + reject(err) + } else { + const result = stsGetCallerIdentity(AWS.config.credentials) + resolve(result) + } + }) + }) +} + +function stsGetCallerIdentity(creds) { + + const opts3 = { method: 'POST', service: 'sts', body: 'Action=GetCallerIdentity&Version=2011-06-15', region: 'us-east-1' } + opts3.headers = { + "Content-Length": opts3.body.length, + "Content-Type": 'application/x-www-form-urlencoded; charset=utf-8', + } + aws4.sign(opts3, creds) + + const h = { + 'Authorization': [opts3.headers['Authorization']], + 'Content-Length': [opts3.body.length.toString()], + 'Host': [opts3.headers['Host']], + 'Content-Type': [opts3.headers['Content-Type']], + 'X-Amz-Date': [opts3.headers['X-Amz-Date']], + } + if (creds.sessionToken) { + h['X-Amz-Security-Token'] = [creds.sessionToken]; + } + const myheaders = JSON.stringify(h); + + const obj = { + 'sts_request_method': 'POST', + 'sts_request_url': Buffer.from('https://sts.amazonaws.com/').toString('base64'), + 'sts_request_body': Buffer.from('Action=GetCallerIdentity&Version=2011-06-15').toString('base64'), + 'sts_request_headers': Buffer.from(myheaders).toString('base64') + }; + const awsData = JSON.stringify(obj) + return Buffer.from(awsData).toString('base64') +} + + +module.exports = { + getAWsCloudId: getAWsCloudId, + getAzureCloudID: getAzureCloudID, + getGcpCloudID: getGcpCloudID, + getCloudId: getCloudId, +} + + +/***/ }), + +/***/ 80420: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _superagent = _interopRequireDefault(__nccwpck_require__(8906)); + +var _querystring = _interopRequireDefault(__nccwpck_require__(83480)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* @module ApiClient +* @version 3.6.3 +*/ + +/** +* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an +* application to use this class directly - the *Api and model classes provide the public API for the service. The +* contents of this file should be regarded as internal but are documented for completeness. +* @alias module:ApiClient +* @class +*/ +var ApiClient = /*#__PURE__*/function () { + function ApiClient() { + _classCallCheck(this, ApiClient); + + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default https://api.akeyless.io + */ + this.basePath = 'https://api.akeyless.io'.replace(/\/+$/, ''); + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + + this.authentications = {}; + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + + this.defaultHeaders = {}; + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + + this.timeout = 60000; + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + + this.cache = true; + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + + this.enableCookies = false; + /* + * Used to save and return cookies in a node.js (non-browser) setting, + * if this.enableCookies is set to true. + */ + + if (typeof window === 'undefined') { + this.agent = new _superagent["default"].agent(); + } + /* + * Allow user to override superagent agent + */ + + + this.requestAgent = null; + /* + * Allow user to add superagent plugins + */ + + this.plugins = null; + } + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + + + _createClass(ApiClient, [{ + key: "paramToString", + value: function paramToString(param) { + if (param == undefined || param == null) { + return ''; + } + + if (param instanceof Date) { + return param.toJSON(); + } + + return param.toString(); + } + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @param {String} apiBasePath Base path defined in the path, operation level to override the default one + * @returns {String} The encoded path with parameter values substituted. + */ + + }, { + key: "buildUrl", + value: function buildUrl(path, pathParams, apiBasePath) { + var _this = this; + + if (!path.match(/^\//)) { + path = '/' + path; + } + + var url = this.basePath + path; // use API (operation, path) base path if defined + + if (apiBasePath !== null && apiBasePath !== undefined) { + url = apiBasePath + path; + } + + url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { + var value; + + if (pathParams.hasOwnProperty(key)) { + value = _this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + + return encodeURIComponent(value); + }); + return url; + } + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
    + *
  • application/json
  • + *
  • application/json; charset=UTF8
  • + *
  • APPLICATION/JSON
  • + *
+ * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + + }, { + key: "isJsonMime", + value: function isJsonMime(contentType) { + return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); + } + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + + }, { + key: "jsonPreferredMime", + value: function jsonPreferredMime(contentTypes) { + for (var i = 0; i < contentTypes.length; i++) { + if (this.isJsonMime(contentTypes[i])) { + return contentTypes[i]; + } + } + + return contentTypes[0]; + } + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + + }, { + key: "isFileParam", + value: function isFileParam(param) { + // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) + if (true) { + var fs; + + try { + fs = __nccwpck_require__(79896); + } catch (err) {} + + if (fs && fs.ReadStream && param instanceof fs.ReadStream) { + return true; + } + } // Buffer in Node.js + + + if (typeof Buffer === 'function' && param instanceof Buffer) { + return true; + } // Blob in browser + + + if (typeof Blob === 'function' && param instanceof Blob) { + return true; + } // File in browser (it seems File object is also instance of Blob, but keep this for safe) + + + if (typeof File === 'function' && param instanceof File) { + return true; + } + + return false; + } + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + + }, { + key: "normalizeParams", + value: function normalizeParams(params) { + var newParams = {}; + + for (var key in params) { + if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { + var value = params[key]; + + if (this.isFileParam(value) || Array.isArray(value)) { + newParams[key] = value; + } else { + newParams[key] = this.paramToString(value); + } + } + } + + return newParams; + } + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + + }, { + key: "buildCollectionParam", + value: function buildCollectionParam(param, collectionFormat) { + if (param == null) { + return null; + } + + switch (collectionFormat) { + case 'csv': + return param.map(this.paramToString).join(','); + + case 'ssv': + return param.map(this.paramToString).join(' '); + + case 'tsv': + return param.map(this.paramToString).join('\t'); + + case 'pipes': + return param.map(this.paramToString).join('|'); + + case 'multi': + //return the array directly as SuperAgent will handle it as expected + return param.map(this.paramToString); + + default: + throw new Error('Unknown collection format: ' + collectionFormat); + } + } + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + + }, { + key: "applyAuthToRequest", + value: function applyAuthToRequest(request, authNames) { + var _this2 = this; + + authNames.forEach(function (authName) { + var auth = _this2.authentications[authName]; + + switch (auth.type) { + case 'basic': + if (auth.username || auth.password) { + request.auth(auth.username || '', auth.password || ''); + } + + break; + + case 'bearer': + if (auth.accessToken) { + request.set({ + 'Authorization': 'Bearer ' + auth.accessToken + }); + } + + break; + + case 'apiKey': + if (auth.apiKey) { + var data = {}; + + if (auth.apiKeyPrefix) { + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + } else { + data[auth.name] = auth.apiKey; + } + + if (auth['in'] === 'header') { + request.set(data); + } else { + request.query(data); + } + } + + break; + + case 'oauth2': + if (auth.accessToken) { + request.set({ + 'Authorization': 'Bearer ' + auth.accessToken + }); + } + + break; + + default: + throw new Error('Unknown authentication type: ' + auth.type); + } + }); + } + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + + }, { + key: "deserialize", + value: function deserialize(response, returnType) { + if (response == null || returnType == null || response.status == 204) { + return null; + } // Rely on SuperAgent for parsing response body. + // See http://visionmedia.github.io/superagent/#parsing-response-bodies + + + var data = response.body; + + if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { + // SuperAgent does not always produce a body; use the unparsed response as a fallback + data = response.text; + } + + return ApiClient.convertToType(data, returnType); + } + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. + */ + + }, { + key: "callApi", + value: function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, apiBasePath) { + var _this3 = this; + + var url = this.buildUrl(path, pathParams, apiBasePath); + var request = (0, _superagent["default"])(httpMethod, url); + + if (this.plugins !== null) { + for (var index in this.plugins) { + if (this.plugins.hasOwnProperty(index)) { + request.use(this.plugins[index]); + } + } + } // apply authentications + + + this.applyAuthToRequest(request, authNames); // set query parameters + + if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { + queryParams['_'] = new Date().getTime(); + } + + request.query(this.normalizeParams(queryParams)); // set header parameters + + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set requestAgent if it is set by user + + if (this.requestAgent) { + request.agent(this.requestAgent); + } // set request timeout + + + request.timeout(this.timeout); + var contentType = this.jsonPreferredMime(contentTypes); + + if (contentType) { + // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) + if (contentType != 'multipart/form-data') { + request.type(contentType); + } + } + + if (contentType === 'application/x-www-form-urlencoded') { + request.send(_querystring["default"].stringify(this.normalizeParams(formParams))); + } else if (contentType == 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + if (this.isFileParam(_formParams[key])) { + // file field + request.attach(key, _formParams[key]); + } else { + request.field(key, _formParams[key]); + } + } + } + } else if (bodyParam !== null && bodyParam !== undefined) { + if (!request.header['Content-Type']) { + request.type('application/json'); + } + + request.send(bodyParam); + } + + var accept = this.jsonPreferredMime(accepts); + + if (accept) { + request.accept(accept); + } + + if (returnType === 'Blob') { + request.responseType('blob'); + } else if (returnType === 'String') { + request.responseType('string'); + } // Attach previously saved cookies, if enabled + + + if (this.enableCookies) { + if (typeof window === 'undefined') { + this.agent._attachCookies(request); + } else { + request.withCredentials(); + } + } + + return new Promise(function (resolve, reject) { + request.end(function (error, response) { + if (error) { + var err = {}; + + if (response) { + err.status = response.status; + err.statusText = response.statusText; + err.body = response.body; + err.response = response; + } + + err.error = error; + reject(err); + } else { + try { + var data = _this3.deserialize(response, returnType); + + if (_this3.enableCookies && typeof window === 'undefined') { + _this3.agent._saveCookies(response); + } + + resolve({ + data: data, + response: response + }); + } catch (err) { + reject(err); + } + } + }); + }); + } + /** + * Parses an ISO-8601 string representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + + }, { + key: "hostSettings", + + /** + * Gets an array of host settings + * @returns An array of host settings + */ + value: function hostSettings() { + return [{ + 'url': "https://api.akeyless.io/", + 'description': "No description provided" + }]; + } + }, { + key: "getBasePathFromSettings", + value: function getBasePathFromSettings(index) { + var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var servers = this.hostSettings(); // check array index out of bound if (index < 0 || index >= servers.length) { throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); @@ -2863,11438 +44363,3007 @@ exports["default"] = _default; /***/ }), -/***/ 72444: +/***/ 976: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AkeylessGatewayConfig = _interopRequireDefault(__nccwpck_require__(74034)); - -var _AllowedAccess = _interopRequireDefault(__nccwpck_require__(3266)); - -var _AssocRoleAuthMethod = _interopRequireDefault(__nccwpck_require__(44828)); - -var _AssocTargetItem = _interopRequireDefault(__nccwpck_require__(64338)); - -var _Auth = _interopRequireDefault(__nccwpck_require__(66499)); - -var _AuthMethod = _interopRequireDefault(__nccwpck_require__(43874)); - -var _AuthOutput = _interopRequireDefault(__nccwpck_require__(6242)); - -var _BastionsList = _interopRequireDefault(__nccwpck_require__(69265)); - -var _Configure = _interopRequireDefault(__nccwpck_require__(6418)); - -var _ConfigureOutput = _interopRequireDefault(__nccwpck_require__(66228)); - -var _Connect = _interopRequireDefault(__nccwpck_require__(99034)); - -var _CreateAWSTarget = _interopRequireDefault(__nccwpck_require__(36718)); - -var _CreateAWSTargetOutput = _interopRequireDefault(__nccwpck_require__(56001)); - -var _CreateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(69748)); - -var _CreateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(35788)); - -var _CreateAuthMethod = _interopRequireDefault(__nccwpck_require__(76236)); - -var _CreateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(47723)); - -var _CreateAuthMethodAWSIAMOutput = _interopRequireDefault(__nccwpck_require__(36759)); - -var _CreateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(41957)); - -var _CreateAuthMethodAzureADOutput = _interopRequireDefault(__nccwpck_require__(26053)); - -var _CreateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(1870)); - -var _CreateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(73412)); - -var _CreateAuthMethodEmail = _interopRequireDefault(__nccwpck_require__(29506)); - -var _CreateAuthMethodEmailOutput = _interopRequireDefault(__nccwpck_require__(46993)); - -var _CreateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(69857)); - -var _CreateAuthMethodGCPOutput = _interopRequireDefault(__nccwpck_require__(95248)); - -var _CreateAuthMethodHuawei = _interopRequireDefault(__nccwpck_require__(97485)); - -var _CreateAuthMethodHuaweiOutput = _interopRequireDefault(__nccwpck_require__(90408)); - -var _CreateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(3002)); - -var _CreateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(5813)); - -var _CreateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(29277)); - -var _CreateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(87856)); - -var _CreateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(90371)); - -var _CreateAuthMethodOAuth2Output = _interopRequireDefault(__nccwpck_require__(70581)); - -var _CreateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(11827)); - -var _CreateAuthMethodOIDCOutput = _interopRequireDefault(__nccwpck_require__(41721)); - -var _CreateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(41331)); - -var _CreateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(68547)); - -var _CreateAuthMethodSAMLOutput = _interopRequireDefault(__nccwpck_require__(56578)); - -var _CreateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(70344)); - -var _CreateAuthMethodUniversalIdentityOutput = _interopRequireDefault(__nccwpck_require__(46912)); - -var _CreateAzureTarget = _interopRequireDefault(__nccwpck_require__(82408)); - -var _CreateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(24672)); - -var _CreateCertificate = _interopRequireDefault(__nccwpck_require__(57598)); - -var _CreateCertificateOutput = _interopRequireDefault(__nccwpck_require__(35159)); - -var _CreateClassicKey = _interopRequireDefault(__nccwpck_require__(254)); - -var _CreateClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(60170)); - -var _CreateDBTarget = _interopRequireDefault(__nccwpck_require__(34977)); - -var _CreateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(84642)); - -var _CreateDFCKey = _interopRequireDefault(__nccwpck_require__(82075)); - -var _CreateDFCKeyOutput = _interopRequireDefault(__nccwpck_require__(27955)); - -var _CreateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(15339)); - -var _CreateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(35729)); - -var _CreateDynamicSecret = _interopRequireDefault(__nccwpck_require__(14871)); - -var _CreateEKSTarget = _interopRequireDefault(__nccwpck_require__(30934)); - -var _CreateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(77298)); - -var _CreateESM = _interopRequireDefault(__nccwpck_require__(477)); - -var _CreateESMOutput = _interopRequireDefault(__nccwpck_require__(32554)); - -var _CreateEventForwarder = _interopRequireDefault(__nccwpck_require__(49168)); - -var _CreateEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(54081)); - -var _CreateGKETarget = _interopRequireDefault(__nccwpck_require__(41820)); - -var _CreateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(81519)); - -var _CreateGcpTarget = _interopRequireDefault(__nccwpck_require__(80384)); - -var _CreateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(7022)); - -var _CreateGithubTarget = _interopRequireDefault(__nccwpck_require__(97613)); - -var _CreateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(52291)); - -var _CreateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(44412)); - -var _CreateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(43747)); - -var _CreateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(27537)); - -var _CreateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(8831)); - -var _CreateKey = _interopRequireDefault(__nccwpck_require__(60073)); - -var _CreateKeyOutput = _interopRequireDefault(__nccwpck_require__(7903)); - -var _CreateLdapTarget = _interopRequireDefault(__nccwpck_require__(70219)); - -var _CreateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(44520)); - -var _CreateLinkedTarget = _interopRequireDefault(__nccwpck_require__(675)); - -var _CreateLinkedTargetOutput = _interopRequireDefault(__nccwpck_require__(53373)); - -var _CreateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(62254)); - -var _CreateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(97584)); - -var _CreatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(29539)); - -var _CreatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(55645)); - -var _CreatePingTarget = _interopRequireDefault(__nccwpck_require__(12056)); - -var _CreatePingTargetOutput = _interopRequireDefault(__nccwpck_require__(72314)); - -var _CreateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(63852)); - -var _CreateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(85199)); - -var _CreateRole = _interopRequireDefault(__nccwpck_require__(11951)); - -var _CreateRoleAuthMethodAssocOutput = _interopRequireDefault(__nccwpck_require__(67799)); - -var _CreateRotatedSecret = _interopRequireDefault(__nccwpck_require__(18755)); - -var _CreateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(52446)); - -var _CreateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(85975)); - -var _CreateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(60309)); - -var _CreateSSHTarget = _interopRequireDefault(__nccwpck_require__(48281)); - -var _CreateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(9128)); - -var _CreateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(35282)); - -var _CreateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(9796)); - -var _CreateSecret = _interopRequireDefault(__nccwpck_require__(34625)); - -var _CreateSecretOutput = _interopRequireDefault(__nccwpck_require__(73489)); - -var _CreateTargetItemAssocOutput = _interopRequireDefault(__nccwpck_require__(1554)); - -var _CreateTokenizer = _interopRequireDefault(__nccwpck_require__(29143)); - -var _CreateTokenizerOutput = _interopRequireDefault(__nccwpck_require__(36903)); - -var _CreateWebTarget = _interopRequireDefault(__nccwpck_require__(21668)); - -var _CreateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(89702)); - -var _CreateWindowsTarget = _interopRequireDefault(__nccwpck_require__(93445)); - -var _CreateWindowsTargetOutput = _interopRequireDefault(__nccwpck_require__(91995)); - -var _CreateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(85328)); - -var _CreateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(5011)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); - -var _Decrypt = _interopRequireDefault(__nccwpck_require__(3280)); - -var _DecryptGPG = _interopRequireDefault(__nccwpck_require__(47204)); - -var _DecryptGPGOutput = _interopRequireDefault(__nccwpck_require__(58733)); - -var _DecryptOutput = _interopRequireDefault(__nccwpck_require__(69386)); - -var _DecryptPKCS = _interopRequireDefault(__nccwpck_require__(97729)); - -var _DecryptPKCS1Output = _interopRequireDefault(__nccwpck_require__(67796)); - -var _DecryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(11874)); - -var _DecryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(42770)); - -var _DeleteAuthMethod = _interopRequireDefault(__nccwpck_require__(17478)); - -var _DeleteAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(61527)); - -var _DeleteAuthMethods = _interopRequireDefault(__nccwpck_require__(42077)); - -var _DeleteAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(13673)); - -var _DeleteEventForwarder = _interopRequireDefault(__nccwpck_require__(72713)); - -var _DeleteGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(47893)); - -var _DeleteGwCluster = _interopRequireDefault(__nccwpck_require__(28427)); - -var _DeleteItem = _interopRequireDefault(__nccwpck_require__(89426)); - -var _DeleteItemOutput = _interopRequireDefault(__nccwpck_require__(7557)); - -var _DeleteItems = _interopRequireDefault(__nccwpck_require__(43758)); - -var _DeleteItemsOutput = _interopRequireDefault(__nccwpck_require__(55802)); - -var _DeleteRole = _interopRequireDefault(__nccwpck_require__(22253)); - -var _DeleteRoleAssociation = _interopRequireDefault(__nccwpck_require__(36698)); - -var _DeleteRoleRule = _interopRequireDefault(__nccwpck_require__(17666)); - -var _DeleteRoleRuleOutput = _interopRequireDefault(__nccwpck_require__(40164)); - -var _DeleteRoles = _interopRequireDefault(__nccwpck_require__(48595)); - -var _DeleteTarget = _interopRequireDefault(__nccwpck_require__(80558)); - -var _DeleteTargetAssociation = _interopRequireDefault(__nccwpck_require__(20037)); - -var _DeleteTargets = _interopRequireDefault(__nccwpck_require__(87093)); - -var _DeriveKey = _interopRequireDefault(__nccwpck_require__(95190)); - -var _DeriveKeyOutput = _interopRequireDefault(__nccwpck_require__(62566)); - -var _DescribeAssoc = _interopRequireDefault(__nccwpck_require__(84832)); - -var _DescribeItem = _interopRequireDefault(__nccwpck_require__(36301)); - -var _DescribePermissions = _interopRequireDefault(__nccwpck_require__(81615)); - -var _DescribePermissionsOutput = _interopRequireDefault(__nccwpck_require__(84471)); - -var _DescribeSubClaims = _interopRequireDefault(__nccwpck_require__(70072)); - -var _DescribeSubClaimsOutput = _interopRequireDefault(__nccwpck_require__(8808)); - -var _Detokenize = _interopRequireDefault(__nccwpck_require__(73561)); - -var _DetokenizeOutput = _interopRequireDefault(__nccwpck_require__(36694)); - -var _Encrypt = _interopRequireDefault(__nccwpck_require__(6318)); - -var _EncryptGPG = _interopRequireDefault(__nccwpck_require__(4808)); - -var _EncryptGPGOutput = _interopRequireDefault(__nccwpck_require__(80692)); - -var _EncryptOutput = _interopRequireDefault(__nccwpck_require__(23247)); - -var _EncryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(33560)); - -var _EsmCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(63074)); - -var _EsmDelete = _interopRequireDefault(__nccwpck_require__(23265)); - -var _EsmDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(90654)); - -var _EsmGet = _interopRequireDefault(__nccwpck_require__(50319)); - -var _EsmGetSecretOutput = _interopRequireDefault(__nccwpck_require__(22540)); - -var _EsmList = _interopRequireDefault(__nccwpck_require__(74849)); - -var _EsmListSecretsOutput = _interopRequireDefault(__nccwpck_require__(1907)); - -var _EsmUpdate = _interopRequireDefault(__nccwpck_require__(12560)); - -var _EsmUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(18466)); - -var _EventAction = _interopRequireDefault(__nccwpck_require__(72018)); - -var _ExportClassicKey = _interopRequireDefault(__nccwpck_require__(65944)); - -var _ExportClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(19726)); - -var _GatewayCreateAllowedAccess = _interopRequireDefault(__nccwpck_require__(13636)); - -var _GatewayCreateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(80817)); - -var _GatewayCreateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(67291)); - -var _GatewayCreateMigration = _interopRequireDefault(__nccwpck_require__(89712)); - -var _GatewayCreateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(85963)); - -var _GatewayCreateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(12283)); - -var _GatewayCreateProducerAws = _interopRequireDefault(__nccwpck_require__(62465)); - -var _GatewayCreateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(22782)); - -var _GatewayCreateProducerAzure = _interopRequireDefault(__nccwpck_require__(11768)); - -var _GatewayCreateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(21509)); - -var _GatewayCreateProducerCassandra = _interopRequireDefault(__nccwpck_require__(46210)); - -var _GatewayCreateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(6297)); - -var _GatewayCreateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(21006)); - -var _GatewayCreateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(29244)); - -var _GatewayCreateProducerCustom = _interopRequireDefault(__nccwpck_require__(24096)); - -var _GatewayCreateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(90062)); - -var _GatewayCreateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(2266)); - -var _GatewayCreateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(21985)); - -var _GatewayCreateProducerEks = _interopRequireDefault(__nccwpck_require__(34886)); - -var _GatewayCreateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(26934)); - -var _GatewayCreateProducerGcp = _interopRequireDefault(__nccwpck_require__(79907)); - -var _GatewayCreateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(66661)); - -var _GatewayCreateProducerGithub = _interopRequireDefault(__nccwpck_require__(68950)); - -var _GatewayCreateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(77723)); - -var _GatewayCreateProducerGke = _interopRequireDefault(__nccwpck_require__(77929)); - -var _GatewayCreateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(3544)); - -var _GatewayCreateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(93694)); - -var _GatewayCreateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(72487)); - -var _GatewayCreateProducerLdap = _interopRequireDefault(__nccwpck_require__(51154)); - -var _GatewayCreateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(19730)); - -var _GatewayCreateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(98069)); - -var _GatewayCreateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(43163)); - -var _GatewayCreateProducerMongo = _interopRequireDefault(__nccwpck_require__(4388)); - -var _GatewayCreateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(31733)); - -var _GatewayCreateProducerMySQL = _interopRequireDefault(__nccwpck_require__(85649)); - -var _GatewayCreateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(11806)); - -var _GatewayCreateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(51088)); - -var _GatewayCreateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(34965)); - -var _GatewayCreateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(64681)); - -var _GatewayCreateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(20411)); - -var _GatewayCreateProducerPing = _interopRequireDefault(__nccwpck_require__(26206)); - -var _GatewayCreateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(8091)); - -var _GatewayCreateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(96462)); - -var _GatewayCreateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(55504)); - -var _GatewayCreateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(99404)); - -var _GatewayCreateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(47454)); - -var _GatewayCreateProducerRdp = _interopRequireDefault(__nccwpck_require__(62294)); - -var _GatewayCreateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(69819)); - -var _GatewayCreateProducerRedis = _interopRequireDefault(__nccwpck_require__(22541)); - -var _GatewayCreateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(73187)); - -var _GatewayCreateProducerRedshift = _interopRequireDefault(__nccwpck_require__(91791)); - -var _GatewayCreateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(26737)); - -var _GatewayCreateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(48963)); - -var _GatewayCreateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(97420)); - -var _GatewayDeleteAllowedAccess = _interopRequireDefault(__nccwpck_require__(87221)); - -var _GatewayDeleteAllowedAccessOutput = _interopRequireDefault(__nccwpck_require__(50892)); - -var _GatewayDeleteK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(87968)); - -var _GatewayDeleteK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(50443)); - -var _GatewayDeleteMigration = _interopRequireDefault(__nccwpck_require__(62288)); - -var _GatewayDeleteProducer = _interopRequireDefault(__nccwpck_require__(50948)); - -var _GatewayDeleteProducerOutput = _interopRequireDefault(__nccwpck_require__(82940)); - -var _GatewayDownloadCustomerFragments = _interopRequireDefault(__nccwpck_require__(85186)); - -var _GatewayDownloadCustomerFragmentsOutput = _interopRequireDefault(__nccwpck_require__(11802)); - -var _GatewayGetAllowedAccess = _interopRequireDefault(__nccwpck_require__(71402)); - -var _GatewayGetConfig = _interopRequireDefault(__nccwpck_require__(11488)); - -var _GatewayGetK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(24545)); - -var _GatewayGetK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(80582)); - -var _GatewayGetLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(87398)); - -var _GatewayGetLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(39357)); - -var _GatewayGetMigration = _interopRequireDefault(__nccwpck_require__(711)); - -var _GatewayGetProducer = _interopRequireDefault(__nccwpck_require__(58440)); - -var _GatewayGetTmpUsers = _interopRequireDefault(__nccwpck_require__(31236)); - -var _GatewayListMigration = _interopRequireDefault(__nccwpck_require__(63966)); - -var _GatewayListProducers = _interopRequireDefault(__nccwpck_require__(71578)); - -var _GatewayListRotatedSecrets = _interopRequireDefault(__nccwpck_require__(9343)); - -var _GatewayMigratePersonalItems = _interopRequireDefault(__nccwpck_require__(80853)); - -var _GatewayMigratePersonalItemsOutput = _interopRequireDefault(__nccwpck_require__(19869)); - -var _GatewayMigrationCreateOutput = _interopRequireDefault(__nccwpck_require__(81336)); - -var _GatewayMigrationDeleteOutput = _interopRequireDefault(__nccwpck_require__(8601)); - -var _GatewayMigrationGetOutput = _interopRequireDefault(__nccwpck_require__(74292)); - -var _GatewayMigrationListOutput = _interopRequireDefault(__nccwpck_require__(10588)); - -var _GatewayMigrationSyncOutput = _interopRequireDefault(__nccwpck_require__(68624)); - -var _GatewayMigrationUpdateOutput = _interopRequireDefault(__nccwpck_require__(94903)); - -var _GatewayRevokeTmpUsers = _interopRequireDefault(__nccwpck_require__(31730)); - -var _GatewayStartProducer = _interopRequireDefault(__nccwpck_require__(66971)); - -var _GatewayStartProducerOutput = _interopRequireDefault(__nccwpck_require__(35356)); - -var _GatewayStatusMigration = _interopRequireDefault(__nccwpck_require__(15771)); - -var _GatewayStopProducer = _interopRequireDefault(__nccwpck_require__(98592)); - -var _GatewayStopProducerOutput = _interopRequireDefault(__nccwpck_require__(89962)); - -var _GatewaySyncMigration = _interopRequireDefault(__nccwpck_require__(47483)); - -var _GatewayUpdateAllowedAccess = _interopRequireDefault(__nccwpck_require__(90085)); - -var _GatewayUpdateItem = _interopRequireDefault(__nccwpck_require__(41036)); - -var _GatewayUpdateItemOutput = _interopRequireDefault(__nccwpck_require__(70950)); - -var _GatewayUpdateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(36558)); - -var _GatewayUpdateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(42841)); - -var _GatewayUpdateLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(21105)); - -var _GatewayUpdateLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(1327)); - -var _GatewayUpdateMigration = _interopRequireDefault(__nccwpck_require__(77167)); - -var _GatewayUpdateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(92518)); - -var _GatewayUpdateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(41597)); - -var _GatewayUpdateProducerAws = _interopRequireDefault(__nccwpck_require__(97621)); - -var _GatewayUpdateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(23775)); - -var _GatewayUpdateProducerAzure = _interopRequireDefault(__nccwpck_require__(36376)); - -var _GatewayUpdateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(10274)); - -var _GatewayUpdateProducerCassandra = _interopRequireDefault(__nccwpck_require__(79476)); - -var _GatewayUpdateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(96398)); - -var _GatewayUpdateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(15441)); - -var _GatewayUpdateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(75159)); - -var _GatewayUpdateProducerCustom = _interopRequireDefault(__nccwpck_require__(40998)); - -var _GatewayUpdateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(54179)); - -var _GatewayUpdateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(65386)); - -var _GatewayUpdateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(55211)); - -var _GatewayUpdateProducerEks = _interopRequireDefault(__nccwpck_require__(76166)); - -var _GatewayUpdateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(77541)); - -var _GatewayUpdateProducerGcp = _interopRequireDefault(__nccwpck_require__(92305)); - -var _GatewayUpdateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(97010)); - -var _GatewayUpdateProducerGithub = _interopRequireDefault(__nccwpck_require__(92280)); - -var _GatewayUpdateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(51383)); - -var _GatewayUpdateProducerGke = _interopRequireDefault(__nccwpck_require__(66834)); - -var _GatewayUpdateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(25406)); - -var _GatewayUpdateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(94130)); - -var _GatewayUpdateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(59500)); - -var _GatewayUpdateProducerLdap = _interopRequireDefault(__nccwpck_require__(573)); - -var _GatewayUpdateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(39019)); - -var _GatewayUpdateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(58554)); - -var _GatewayUpdateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(24635)); - -var _GatewayUpdateProducerMongo = _interopRequireDefault(__nccwpck_require__(60203)); - -var _GatewayUpdateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(89024)); - -var _GatewayUpdateProducerMySQL = _interopRequireDefault(__nccwpck_require__(42729)); - -var _GatewayUpdateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(87739)); - -var _GatewayUpdateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(56986)); - -var _GatewayUpdateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(47169)); - -var _GatewayUpdateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(46969)); - -var _GatewayUpdateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(57452)); - -var _GatewayUpdateProducerPing = _interopRequireDefault(__nccwpck_require__(17839)); - -var _GatewayUpdateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(74723)); - -var _GatewayUpdateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(15455)); - -var _GatewayUpdateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(94150)); - -var _GatewayUpdateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(41343)); - -var _GatewayUpdateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(41570)); - -var _GatewayUpdateProducerRdp = _interopRequireDefault(__nccwpck_require__(13978)); - -var _GatewayUpdateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(4155)); - -var _GatewayUpdateProducerRedis = _interopRequireDefault(__nccwpck_require__(48250)); - -var _GatewayUpdateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(9636)); - -var _GatewayUpdateProducerRedshift = _interopRequireDefault(__nccwpck_require__(78643)); - -var _GatewayUpdateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(85128)); - -var _GatewayUpdateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(92451)); - -var _GatewayUpdateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(24413)); - -var _GatewayUpdateTlsCert = _interopRequireDefault(__nccwpck_require__(78649)); - -var _GatewayUpdateTlsCertOutput = _interopRequireDefault(__nccwpck_require__(61990)); - -var _GatewayUpdateTmpUsers = _interopRequireDefault(__nccwpck_require__(4090)); - -var _GatewaysListResponse = _interopRequireDefault(__nccwpck_require__(42947)); - -var _GenerateCsr = _interopRequireDefault(__nccwpck_require__(53143)); - -var _GenerateCsrOutput = _interopRequireDefault(__nccwpck_require__(86689)); - -var _GetAccountSettings = _interopRequireDefault(__nccwpck_require__(39897)); - -var _GetAccountSettingsCommandOutput = _interopRequireDefault(__nccwpck_require__(41517)); - -var _GetAuthMethod = _interopRequireDefault(__nccwpck_require__(38253)); - -var _GetCertificateValue = _interopRequireDefault(__nccwpck_require__(5265)); - -var _GetCertificateValueOutput = _interopRequireDefault(__nccwpck_require__(55083)); - -var _GetDynamicSecretValue = _interopRequireDefault(__nccwpck_require__(92090)); - -var _GetEventForwarder = _interopRequireDefault(__nccwpck_require__(7218)); - -var _GetEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(27878)); - -var _GetKubeExecCreds = _interopRequireDefault(__nccwpck_require__(58773)); - -var _GetKubeExecCredsOutput = _interopRequireDefault(__nccwpck_require__(76954)); - -var _GetPKICertificate = _interopRequireDefault(__nccwpck_require__(57553)); - -var _GetPKICertificateOutput = _interopRequireDefault(__nccwpck_require__(92901)); - -var _GetProducersListReplyObj = _interopRequireDefault(__nccwpck_require__(68389)); - -var _GetRSAPublic = _interopRequireDefault(__nccwpck_require__(36838)); - -var _GetRSAPublicOutput = _interopRequireDefault(__nccwpck_require__(22685)); - -var _GetRole = _interopRequireDefault(__nccwpck_require__(31113)); - -var _GetRotatedSecretValue = _interopRequireDefault(__nccwpck_require__(71)); - -var _GetSSHCertificate = _interopRequireDefault(__nccwpck_require__(7701)); - -var _GetSSHCertificateOutput = _interopRequireDefault(__nccwpck_require__(29134)); - -var _GetSecretValue = _interopRequireDefault(__nccwpck_require__(247)); - -var _GetTags = _interopRequireDefault(__nccwpck_require__(44711)); - -var _GetTarget = _interopRequireDefault(__nccwpck_require__(75586)); - -var _GetTargetDetails = _interopRequireDefault(__nccwpck_require__(82615)); - -var _GetTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(87280)); - -var _Hmac = _interopRequireDefault(__nccwpck_require__(9330)); - -var _HmacOutput = _interopRequireDefault(__nccwpck_require__(14344)); - -var _ImportPasswords = _interopRequireDefault(__nccwpck_require__(72687)); - -var _ImportPasswordsOutput = _interopRequireDefault(__nccwpck_require__(26509)); - -var _Item = _interopRequireDefault(__nccwpck_require__(20231)); - -var _JSONError = _interopRequireDefault(__nccwpck_require__(40746)); - -var _KMIPClientGetResponse = _interopRequireDefault(__nccwpck_require__(18269)); - -var _KMIPClientListResponse = _interopRequireDefault(__nccwpck_require__(29166)); - -var _KMIPClientUpdateResponse = _interopRequireDefault(__nccwpck_require__(74882)); - -var _KMIPEnvironmentCreateResponse = _interopRequireDefault(__nccwpck_require__(62320)); - -var _KmipClientDeleteRule = _interopRequireDefault(__nccwpck_require__(13881)); - -var _KmipClientSetRule = _interopRequireDefault(__nccwpck_require__(40187)); - -var _KmipCreateClient = _interopRequireDefault(__nccwpck_require__(34026)); - -var _KmipCreateClientOutput = _interopRequireDefault(__nccwpck_require__(20988)); - -var _KmipDeleteClient = _interopRequireDefault(__nccwpck_require__(65045)); - -var _KmipDeleteServer = _interopRequireDefault(__nccwpck_require__(53900)); - -var _KmipDescribeClient = _interopRequireDefault(__nccwpck_require__(95479)); - -var _KmipDescribeServer = _interopRequireDefault(__nccwpck_require__(97642)); - -var _KmipDescribeServerOutput = _interopRequireDefault(__nccwpck_require__(82750)); - -var _KmipListClients = _interopRequireDefault(__nccwpck_require__(58538)); - -var _KmipMoveServer = _interopRequireDefault(__nccwpck_require__(30116)); - -var _KmipMoveServerOutput = _interopRequireDefault(__nccwpck_require__(3564)); - -var _KmipRenewClientCertificate = _interopRequireDefault(__nccwpck_require__(36796)); - -var _KmipRenewClientCertificateOutput = _interopRequireDefault(__nccwpck_require__(23826)); - -var _KmipRenewServerCertificate = _interopRequireDefault(__nccwpck_require__(55419)); - -var _KmipRenewServerCertificateOutput = _interopRequireDefault(__nccwpck_require__(51379)); - -var _KmipServerSetup = _interopRequireDefault(__nccwpck_require__(51976)); - -var _KmipSetServerState = _interopRequireDefault(__nccwpck_require__(42299)); - -var _KmipSetServerStateOutput = _interopRequireDefault(__nccwpck_require__(64209)); - -var _ListAuthMethods = _interopRequireDefault(__nccwpck_require__(42284)); - -var _ListAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(2972)); - -var _ListGateways = _interopRequireDefault(__nccwpck_require__(77100)); - -var _ListItems = _interopRequireDefault(__nccwpck_require__(40313)); - -var _ListItemsInPathOutput = _interopRequireDefault(__nccwpck_require__(95726)); - -var _ListItemsOutput = _interopRequireDefault(__nccwpck_require__(74202)); - -var _ListRoles = _interopRequireDefault(__nccwpck_require__(8340)); - -var _ListRolesOutput = _interopRequireDefault(__nccwpck_require__(60424)); - -var _ListSRABastions = _interopRequireDefault(__nccwpck_require__(51580)); - -var _ListSharedItems = _interopRequireDefault(__nccwpck_require__(66954)); - -var _ListTargets = _interopRequireDefault(__nccwpck_require__(11384)); - -var _ListTargetsOutput = _interopRequireDefault(__nccwpck_require__(80119)); - -var _MigrationStatusReplyObj = _interopRequireDefault(__nccwpck_require__(41309)); - -var _MoveObjects = _interopRequireDefault(__nccwpck_require__(55896)); - -var _RawCreds = _interopRequireDefault(__nccwpck_require__(65435)); - -var _RefreshKey = _interopRequireDefault(__nccwpck_require__(68029)); - -var _RefreshKeyOutput = _interopRequireDefault(__nccwpck_require__(25349)); - -var _RequestAccess = _interopRequireDefault(__nccwpck_require__(6952)); - -var _RequestAccessOutput = _interopRequireDefault(__nccwpck_require__(77499)); - -var _ReverseRBAC = _interopRequireDefault(__nccwpck_require__(11179)); - -var _ReverseRBACOutput = _interopRequireDefault(__nccwpck_require__(73443)); - -var _Role = _interopRequireDefault(__nccwpck_require__(42980)); - -var _RoleAssociationDetails = _interopRequireDefault(__nccwpck_require__(43168)); - -var _RollbackSecret = _interopRequireDefault(__nccwpck_require__(93505)); - -var _RollbackSecretOutput = _interopRequireDefault(__nccwpck_require__(90409)); - -var _RotateKeyOutput = _interopRequireDefault(__nccwpck_require__(60724)); - -var _RotateSecret = _interopRequireDefault(__nccwpck_require__(35025)); - -var _RotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(56244)); - -var _SetItemState = _interopRequireDefault(__nccwpck_require__(24876)); - -var _SetRoleRule = _interopRequireDefault(__nccwpck_require__(51250)); - -var _ShareItem = _interopRequireDefault(__nccwpck_require__(56430)); - -var _SignDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(88377)); - -var _SignGPG = _interopRequireDefault(__nccwpck_require__(43538)); - -var _SignGPGOutput = _interopRequireDefault(__nccwpck_require__(38120)); - -var _SignJWTOutput = _interopRequireDefault(__nccwpck_require__(66950)); - -var _SignJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(7397)); - -var _SignOutput = _interopRequireDefault(__nccwpck_require__(58696)); - -var _SignPKCS = _interopRequireDefault(__nccwpck_require__(36851)); - -var _SignPKCS1Output = _interopRequireDefault(__nccwpck_require__(47998)); - -var _SignPKICertOutput = _interopRequireDefault(__nccwpck_require__(40782)); - -var _SignPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(1646)); - -var _StaticCredsAuth = _interopRequireDefault(__nccwpck_require__(98373)); - -var _StaticCredsAuthOutput = _interopRequireDefault(__nccwpck_require__(80669)); - -var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(44937)); - -var _Target = _interopRequireDefault(__nccwpck_require__(91561)); - -var _TmpUserData = _interopRequireDefault(__nccwpck_require__(52200)); - -var _Tokenize = _interopRequireDefault(__nccwpck_require__(30037)); - -var _TokenizeOutput = _interopRequireDefault(__nccwpck_require__(87380)); - -var _UidCreateChildToken = _interopRequireDefault(__nccwpck_require__(67488)); - -var _UidCreateChildTokenOutput = _interopRequireDefault(__nccwpck_require__(99511)); - -var _UidGenerateToken = _interopRequireDefault(__nccwpck_require__(50272)); - -var _UidGenerateTokenOutput = _interopRequireDefault(__nccwpck_require__(70795)); - -var _UidListChildren = _interopRequireDefault(__nccwpck_require__(21832)); - -var _UidRevokeToken = _interopRequireDefault(__nccwpck_require__(63330)); - -var _UidRotateToken = _interopRequireDefault(__nccwpck_require__(1198)); - -var _UidRotateTokenOutput = _interopRequireDefault(__nccwpck_require__(87463)); - -var _UniversalIdentityDetails = _interopRequireDefault(__nccwpck_require__(61108)); - -var _UpdateAWSTarget = _interopRequireDefault(__nccwpck_require__(68052)); - -var _UpdateAWSTargetDetails = _interopRequireDefault(__nccwpck_require__(77790)); - -var _UpdateAccountSettings = _interopRequireDefault(__nccwpck_require__(15731)); - -var _UpdateAccountSettingsOutput = _interopRequireDefault(__nccwpck_require__(80620)); - -var _UpdateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(25393)); - -var _UpdateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(75315)); - -var _UpdateAssoc = _interopRequireDefault(__nccwpck_require__(66992)); - -var _UpdateAuthMethod = _interopRequireDefault(__nccwpck_require__(16354)); - -var _UpdateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(47929)); - -var _UpdateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(52264)); - -var _UpdateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(61716)); - -var _UpdateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(29461)); - -var _UpdateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(20874)); - -var _UpdateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(58265)); - -var _UpdateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(42044)); - -var _UpdateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(54568)); - -var _UpdateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(86107)); - -var _UpdateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(39705)); - -var _UpdateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(73258)); - -var _UpdateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(28605)); - -var _UpdateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(37117)); - -var _UpdateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(33896)); - -var _UpdateAzureTarget = _interopRequireDefault(__nccwpck_require__(41670)); - -var _UpdateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(84834)); - -var _UpdateCertificateOutput = _interopRequireDefault(__nccwpck_require__(95234)); - -var _UpdateCertificateValue = _interopRequireDefault(__nccwpck_require__(72377)); - -var _UpdateDBTarget = _interopRequireDefault(__nccwpck_require__(19836)); - -var _UpdateDBTargetDetails = _interopRequireDefault(__nccwpck_require__(61052)); - -var _UpdateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(15571)); - -var _UpdateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(81645)); - -var _UpdateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(12162)); - -var _UpdateEKSTarget = _interopRequireDefault(__nccwpck_require__(54649)); - -var _UpdateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(5542)); - -var _UpdateEventForwarder = _interopRequireDefault(__nccwpck_require__(15930)); - -var _UpdateGKETarget = _interopRequireDefault(__nccwpck_require__(59732)); - -var _UpdateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(27089)); - -var _UpdateGcpTarget = _interopRequireDefault(__nccwpck_require__(37362)); - -var _UpdateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(24721)); - -var _UpdateGithubTarget = _interopRequireDefault(__nccwpck_require__(99328)); - -var _UpdateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(69577)); - -var _UpdateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(60176)); - -var _UpdateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(86836)); - -var _UpdateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(57821)); - -var _UpdateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(15010)); - -var _UpdateItem = _interopRequireDefault(__nccwpck_require__(28801)); - -var _UpdateItemOutput = _interopRequireDefault(__nccwpck_require__(24354)); - -var _UpdateLdapTarget = _interopRequireDefault(__nccwpck_require__(32858)); - -var _UpdateLdapTargetDetails = _interopRequireDefault(__nccwpck_require__(23810)); - -var _UpdateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(96167)); - -var _UpdateLinkedTarget = _interopRequireDefault(__nccwpck_require__(92234)); - -var _UpdateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(76287)); - -var _UpdateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(50445)); - -var _UpdatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(24726)); - -var _UpdatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(10710)); - -var _UpdatePingTarget = _interopRequireDefault(__nccwpck_require__(25801)); - -var _UpdateRDPTargetDetails = _interopRequireDefault(__nccwpck_require__(5594)); - -var _UpdateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(60415)); - -var _UpdateRabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(46099)); - -var _UpdateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(73718)); - -var _UpdateRole = _interopRequireDefault(__nccwpck_require__(13542)); - -var _UpdateRoleOutput = _interopRequireDefault(__nccwpck_require__(56152)); - -var _UpdateRotatedSecret = _interopRequireDefault(__nccwpck_require__(730)); - -var _UpdateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(18105)); - -var _UpdateRotationSettings = _interopRequireDefault(__nccwpck_require__(60091)); - -var _UpdateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(44701)); - -var _UpdateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(46641)); - -var _UpdateSSHTarget = _interopRequireDefault(__nccwpck_require__(14931)); - -var _UpdateSSHTargetDetails = _interopRequireDefault(__nccwpck_require__(34064)); - -var _UpdateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(49653)); - -var _UpdateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(18896)); - -var _UpdateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(11932)); - -var _UpdateSecretVal = _interopRequireDefault(__nccwpck_require__(26227)); - -var _UpdateSecretValOutput = _interopRequireDefault(__nccwpck_require__(18268)); - -var _UpdateTarget = _interopRequireDefault(__nccwpck_require__(72265)); - -var _UpdateTargetDetails = _interopRequireDefault(__nccwpck_require__(20882)); - -var _UpdateTargetOutput = _interopRequireDefault(__nccwpck_require__(72514)); - -var _UpdateWebTarget = _interopRequireDefault(__nccwpck_require__(4456)); - -var _UpdateWebTargetDetails = _interopRequireDefault(__nccwpck_require__(72897)); - -var _UpdateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(94745)); - -var _UpdateWindowsTarget = _interopRequireDefault(__nccwpck_require__(25599)); - -var _UpdateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(16735)); - -var _UpdateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(20703)); - -var _UploadRSA = _interopRequireDefault(__nccwpck_require__(34990)); - -var _ValidateToken = _interopRequireDefault(__nccwpck_require__(58671)); - -var _ValidateTokenOutput = _interopRequireDefault(__nccwpck_require__(56979)); - -var _VerifyDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(68973)); - -var _VerifyGPG = _interopRequireDefault(__nccwpck_require__(24998)); - -var _VerifyJWTOutput = _interopRequireDefault(__nccwpck_require__(70967)); - -var _VerifyJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(66629)); - -var _VerifyPKCS = _interopRequireDefault(__nccwpck_require__(52462)); - -var _VerifyPKICertOutput = _interopRequireDefault(__nccwpck_require__(37523)); - -var _VerifyPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(58333)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** +Object.defineProperty(exports, "__esModule", ({value:true}));exports["default"]=void 0;var _ApiClient=_interopRequireDefault(__nccwpck_require__(80420));var _AkeylessGatewayConfig=_interopRequireDefault(__nccwpck_require__(6912));var _AllAnalyticsData=_interopRequireDefault(__nccwpck_require__(47792));var _AllowedAccess=_interopRequireDefault(__nccwpck_require__(91347));var _AssocRoleAuthMethod=_interopRequireDefault(__nccwpck_require__(74469));var _AssocTargetItem=_interopRequireDefault(__nccwpck_require__(41868));var _Auth=_interopRequireDefault(__nccwpck_require__(10323));var _AuthMethod=_interopRequireDefault(__nccwpck_require__(9614));var _AuthOutput=_interopRequireDefault(__nccwpck_require__(9634));var _BastionsList=_interopRequireDefault(__nccwpck_require__(8436));var _Configure=_interopRequireDefault(__nccwpck_require__(69609));var _ConfigureOutput=_interopRequireDefault(__nccwpck_require__(8812));var _Connect=_interopRequireDefault(__nccwpck_require__(8267));var _CreateAWSTarget=_interopRequireDefault(__nccwpck_require__(18225));var _CreateAWSTargetOutput=_interopRequireDefault(__nccwpck_require__(14020));var _CreateArtifactoryTarget=_interopRequireDefault(__nccwpck_require__(78942));var _CreateArtifactoryTargetOutput=_interopRequireDefault(__nccwpck_require__(29835));var _CreateAuthMethod=_interopRequireDefault(__nccwpck_require__(39250));var _CreateAuthMethodAWSIAM=_interopRequireDefault(__nccwpck_require__(71404));var _CreateAuthMethodAWSIAMOutput=_interopRequireDefault(__nccwpck_require__(75469));var _CreateAuthMethodAzureAD=_interopRequireDefault(__nccwpck_require__(27202));var _CreateAuthMethodAzureADOutput=_interopRequireDefault(__nccwpck_require__(23911));var _CreateAuthMethodCert=_interopRequireDefault(__nccwpck_require__(89732));var _CreateAuthMethodCertOutput=_interopRequireDefault(__nccwpck_require__(78805));var _CreateAuthMethodEmail=_interopRequireDefault(__nccwpck_require__(46288));var _CreateAuthMethodEmailOutput=_interopRequireDefault(__nccwpck_require__(60729));var _CreateAuthMethodGCP=_interopRequireDefault(__nccwpck_require__(90506));var _CreateAuthMethodGCPOutput=_interopRequireDefault(__nccwpck_require__(87807));var _CreateAuthMethodHuawei=_interopRequireDefault(__nccwpck_require__(49339));var _CreateAuthMethodHuaweiOutput=_interopRequireDefault(__nccwpck_require__(41018));var _CreateAuthMethodK8S=_interopRequireDefault(__nccwpck_require__(83464));var _CreateAuthMethodK8SOutput=_interopRequireDefault(__nccwpck_require__(54273));var _CreateAuthMethodLDAP=_interopRequireDefault(__nccwpck_require__(31711));var _CreateAuthMethodLDAPOutput=_interopRequireDefault(__nccwpck_require__(87942));var _CreateAuthMethodOAuth=_interopRequireDefault(__nccwpck_require__(36129));var _CreateAuthMethodOAuth2Output=_interopRequireDefault(__nccwpck_require__(57876));var _CreateAuthMethodOCI=_interopRequireDefault(__nccwpck_require__(79097));var _CreateAuthMethodOCIOutput=_interopRequireDefault(__nccwpck_require__(63868));var _CreateAuthMethodOIDC=_interopRequireDefault(__nccwpck_require__(14043));var _CreateAuthMethodOIDCOutput=_interopRequireDefault(__nccwpck_require__(51290));var _CreateAuthMethodOutput=_interopRequireDefault(__nccwpck_require__(49207));var _CreateAuthMethodSAML=_interopRequireDefault(__nccwpck_require__(4907));var _CreateAuthMethodSAMLOutput=_interopRequireDefault(__nccwpck_require__(37610));var _CreateAuthMethodUniversalIdentity=_interopRequireDefault(__nccwpck_require__(89147));var _CreateAuthMethodUniversalIdentityOutput=_interopRequireDefault(__nccwpck_require__(58362));var _CreateAzureTarget=_interopRequireDefault(__nccwpck_require__(6519));var _CreateAzureTargetOutput=_interopRequireDefault(__nccwpck_require__(44078));var _CreateCertificate=_interopRequireDefault(__nccwpck_require__(79990));var _CreateCertificateOutput=_interopRequireDefault(__nccwpck_require__(88627));var _CreateClassicKey=_interopRequireDefault(__nccwpck_require__(37974));var _CreateClassicKeyOutput=_interopRequireDefault(__nccwpck_require__(28339));var _CreateDBTarget=_interopRequireDefault(__nccwpck_require__(53346));var _CreateDBTargetOutput=_interopRequireDefault(__nccwpck_require__(45671));var _CreateDFCKey=_interopRequireDefault(__nccwpck_require__(85323));var _CreateDFCKeyOutput=_interopRequireDefault(__nccwpck_require__(94634));var _CreateDockerhubTarget=_interopRequireDefault(__nccwpck_require__(95215));var _CreateDockerhubTargetOutput=_interopRequireDefault(__nccwpck_require__(82934));var _CreateDynamicSecret=_interopRequireDefault(__nccwpck_require__(39892));var _CreateEKSTarget=_interopRequireDefault(__nccwpck_require__(38097));var _CreateEKSTargetOutput=_interopRequireDefault(__nccwpck_require__(11556));var _CreateESM=_interopRequireDefault(__nccwpck_require__(17838));var _CreateESMOutput=_interopRequireDefault(__nccwpck_require__(20859));var _CreateEventForwarder=_interopRequireDefault(__nccwpck_require__(73847));var _CreateEventForwarderOutput=_interopRequireDefault(__nccwpck_require__(95566));var _CreateGKETarget=_interopRequireDefault(__nccwpck_require__(87913));var _CreateGKETargetOutput=_interopRequireDefault(__nccwpck_require__(84588));var _CreateGcpTarget=_interopRequireDefault(__nccwpck_require__(87182));var _CreateGcpTargetOutput=_interopRequireDefault(__nccwpck_require__(64059));var _CreateGithubTarget=_interopRequireDefault(__nccwpck_require__(96291));var _CreateGithubTargetOutput=_interopRequireDefault(__nccwpck_require__(79666));var _CreateGlobalSignAtlasTarget=_interopRequireDefault(__nccwpck_require__(9913));var _CreateGlobalSignAtlasTargetOutput=_interopRequireDefault(__nccwpck_require__(59100));var _CreateGlobalSignTarget=_interopRequireDefault(__nccwpck_require__(84574));var _CreateGlobalSignTargetOutput=_interopRequireDefault(__nccwpck_require__(40619));var _CreateGodaddyTarget=_interopRequireDefault(__nccwpck_require__(71736));var _CreateGodaddyTargetOutput=_interopRequireDefault(__nccwpck_require__(83473));var _CreateGroup=_interopRequireDefault(__nccwpck_require__(56830));var _CreateGroupOutput=_interopRequireDefault(__nccwpck_require__(80875));var _CreateKey=_interopRequireDefault(__nccwpck_require__(73770));var _CreateKeyOutput=_interopRequireDefault(__nccwpck_require__(94943));var _CreateLdapTarget=_interopRequireDefault(__nccwpck_require__(18825));var _CreateLdapTargetOutput=_interopRequireDefault(__nccwpck_require__(58604));var _CreateLinkedTarget=_interopRequireDefault(__nccwpck_require__(71569));var _CreateLinkedTargetOutput=_interopRequireDefault(__nccwpck_require__(55716));var _CreateNativeK8STarget=_interopRequireDefault(__nccwpck_require__(92429));var _CreateNativeK8STargetOutput=_interopRequireDefault(__nccwpck_require__(33800));var _CreateOidcApp=_interopRequireDefault(__nccwpck_require__(8185));var _CreateOidcAppOutput=_interopRequireDefault(__nccwpck_require__(11324));var _CreatePKICertIssuer=_interopRequireDefault(__nccwpck_require__(44204));var _CreatePKICertIssuerOutput=_interopRequireDefault(__nccwpck_require__(95693));var _CreatePingTarget=_interopRequireDefault(__nccwpck_require__(15224));var _CreatePingTargetOutput=_interopRequireDefault(__nccwpck_require__(57585));var _CreateRabbitMQTarget=_interopRequireDefault(__nccwpck_require__(27074));var _CreateRabbitMQTargetOutput=_interopRequireDefault(__nccwpck_require__(69223));var _CreateRole=_interopRequireDefault(__nccwpck_require__(54533));var _CreateRoleAuthMethodAssocOutput=_interopRequireDefault(__nccwpck_require__(43974));var _CreateRotatedSecret=_interopRequireDefault(__nccwpck_require__(37444));var _CreateRotatedSecretOutput=_interopRequireDefault(__nccwpck_require__(54869));var _CreateSSHCertIssuer=_interopRequireDefault(__nccwpck_require__(8218));var _CreateSSHCertIssuerOutput=_interopRequireDefault(__nccwpck_require__(87119));var _CreateSSHTarget=_interopRequireDefault(__nccwpck_require__(76842));var _CreateSSHTargetOutput=_interopRequireDefault(__nccwpck_require__(93855));var _CreateSalesforceTarget=_interopRequireDefault(__nccwpck_require__(51871));var _CreateSalesforceTargetOutput=_interopRequireDefault(__nccwpck_require__(87654));var _CreateSecret=_interopRequireDefault(__nccwpck_require__(81301));var _CreateSecretOutput=_interopRequireDefault(__nccwpck_require__(44928));var _CreateTargetItemAssocOutput=_interopRequireDefault(__nccwpck_require__(44645));var _CreateTokenizer=_interopRequireDefault(__nccwpck_require__(11404));var _CreateTokenizerOutput=_interopRequireDefault(__nccwpck_require__(42253));var _CreateUSC=_interopRequireDefault(__nccwpck_require__(69728));var _CreateUSCOutput=_interopRequireDefault(__nccwpck_require__(10921));var _CreateUserEvent=_interopRequireDefault(__nccwpck_require__(88948));var _CreateUserEventOutput=_interopRequireDefault(__nccwpck_require__(6789));var _CreateWebTarget=_interopRequireDefault(__nccwpck_require__(18014));var _CreateWebTargetOutput=_interopRequireDefault(__nccwpck_require__(28875));var _CreateWindowsTarget=_interopRequireDefault(__nccwpck_require__(41893));var _CreateWindowsTargetOutput=_interopRequireDefault(__nccwpck_require__(83664));var _CreateZeroSSLTarget=_interopRequireDefault(__nccwpck_require__(54780));var _CreateZeroSSLTargetOutput=_interopRequireDefault(__nccwpck_require__(10493));var _DSProducerDetails=_interopRequireDefault(__nccwpck_require__(75578));var _Decrypt=_interopRequireDefault(__nccwpck_require__(7720));var _DecryptGPG=_interopRequireDefault(__nccwpck_require__(24650));var _DecryptGPGOutput=_interopRequireDefault(__nccwpck_require__(59199));var _DecryptOutput=_interopRequireDefault(__nccwpck_require__(19777));var _DecryptPKCS=_interopRequireDefault(__nccwpck_require__(57476));var _DecryptPKCS1Output=_interopRequireDefault(__nccwpck_require__(81333));var _DecryptWithClassicKey=_interopRequireDefault(__nccwpck_require__(67115));var _DecryptWithClassicKeyOutput=_interopRequireDefault(__nccwpck_require__(80618));var _DeleteAuthMethod=_interopRequireDefault(__nccwpck_require__(55749));var _DeleteAuthMethodOutput=_interopRequireDefault(__nccwpck_require__(53200));var _DeleteAuthMethods=_interopRequireDefault(__nccwpck_require__(20592));var _DeleteAuthMethodsOutput=_interopRequireDefault(__nccwpck_require__(15769));var _DeleteEventForwarder=_interopRequireDefault(__nccwpck_require__(58820));var _DeleteGatewayAllowedAccessId=_interopRequireDefault(__nccwpck_require__(93835));var _DeleteGroup=_interopRequireDefault(__nccwpck_require__(98855));var _DeleteGroupOutput=_interopRequireDefault(__nccwpck_require__(43134));var _DeleteGwCluster=_interopRequireDefault(__nccwpck_require__(964));var _DeleteItem=_interopRequireDefault(__nccwpck_require__(261));var _DeleteItemOutput=_interopRequireDefault(__nccwpck_require__(98224));var _DeleteItems=_interopRequireDefault(__nccwpck_require__(44336));var _DeleteItemsOutput=_interopRequireDefault(__nccwpck_require__(16665));var _DeleteRole=_interopRequireDefault(__nccwpck_require__(25606));var _DeleteRoleAssociation=_interopRequireDefault(__nccwpck_require__(94059));var _DeleteRoleRule=_interopRequireDefault(__nccwpck_require__(55968));var _DeleteRoleRuleOutput=_interopRequireDefault(__nccwpck_require__(34953));var _DeleteRoles=_interopRequireDefault(__nccwpck_require__(60685));var _DeleteTarget=_interopRequireDefault(__nccwpck_require__(82379));var _DeleteTargetAssociation=_interopRequireDefault(__nccwpck_require__(1768));var _DeleteTargets=_interopRequireDefault(__nccwpck_require__(67902));var _DeriveKey=_interopRequireDefault(__nccwpck_require__(19627));var _DeriveKeyOutput=_interopRequireDefault(__nccwpck_require__(30442));var _DescribeAssoc=_interopRequireDefault(__nccwpck_require__(66317));var _DescribeItem=_interopRequireDefault(__nccwpck_require__(69543));var _DescribePermissions=_interopRequireDefault(__nccwpck_require__(19826));var _DescribePermissionsOutput=_interopRequireDefault(__nccwpck_require__(83191));var _DescribeSubClaims=_interopRequireDefault(__nccwpck_require__(95525));var _DescribeSubClaimsOutput=_interopRequireDefault(__nccwpck_require__(38224));var _Detokenize=_interopRequireDefault(__nccwpck_require__(84927));var _DetokenizeOutput=_interopRequireDefault(__nccwpck_require__(52838));var _DynamicSecretCreateArtifactory=_interopRequireDefault(__nccwpck_require__(27524));var _DynamicSecretCreateAws=_interopRequireDefault(__nccwpck_require__(27087));var _DynamicSecretCreateAzure=_interopRequireDefault(__nccwpck_require__(2733));var _DynamicSecretCreateCassandra=_interopRequireDefault(__nccwpck_require__(68128));var _DynamicSecretCreateCustom=_interopRequireDefault(__nccwpck_require__(26511));var _DynamicSecretCreateDockerhub=_interopRequireDefault(__nccwpck_require__(80837));var _DynamicSecretCreateEks=_interopRequireDefault(__nccwpck_require__(88519));var _DynamicSecretCreateGcp=_interopRequireDefault(__nccwpck_require__(50500));var _DynamicSecretCreateGithub=_interopRequireDefault(__nccwpck_require__(73487));var _DynamicSecretCreateGke=_interopRequireDefault(__nccwpck_require__(53847));var _DynamicSecretCreateHanaDb=_interopRequireDefault(__nccwpck_require__(13700));var _DynamicSecretCreateK8s=_interopRequireDefault(__nccwpck_require__(16202));var _DynamicSecretCreateLdap=_interopRequireDefault(__nccwpck_require__(67357));var _DynamicSecretCreateMongoDb=_interopRequireDefault(__nccwpck_require__(96196));var _DynamicSecretCreateMsSql=_interopRequireDefault(__nccwpck_require__(71086));var _DynamicSecretCreateMySql=_interopRequireDefault(__nccwpck_require__(95472));var _DynamicSecretCreateOracleDb=_interopRequireDefault(__nccwpck_require__(56892));var _DynamicSecretCreateOutput=_interopRequireDefault(__nccwpck_require__(2545));var _DynamicSecretCreatePing=_interopRequireDefault(__nccwpck_require__(29748));var _DynamicSecretCreatePostgreSql=_interopRequireDefault(__nccwpck_require__(84126));var _DynamicSecretCreateRabbitMq=_interopRequireDefault(__nccwpck_require__(57518));var _DynamicSecretCreateRdp=_interopRequireDefault(__nccwpck_require__(84556));var _DynamicSecretCreateRedis=_interopRequireDefault(__nccwpck_require__(26937));var _DynamicSecretCreateRedshift=_interopRequireDefault(__nccwpck_require__(13453));var _DynamicSecretCreateSnowflake=_interopRequireDefault(__nccwpck_require__(30490));var _DynamicSecretCreateVenafi=_interopRequireDefault(__nccwpck_require__(77253));var _DynamicSecretDelete=_interopRequireDefault(__nccwpck_require__(32743));var _DynamicSecretDeleteOutput=_interopRequireDefault(__nccwpck_require__(95742));var _DynamicSecretGetValue=_interopRequireDefault(__nccwpck_require__(94869));var _DynamicSecretList=_interopRequireDefault(__nccwpck_require__(74168));var _DynamicSecretTmpCredsDelete=_interopRequireDefault(__nccwpck_require__(23313));var _DynamicSecretTmpCredsGet=_interopRequireDefault(__nccwpck_require__(44088));var _DynamicSecretTmpCredsUpdate=_interopRequireDefault(__nccwpck_require__(47983));var _DynamicSecretUpdateArtifactory=_interopRequireDefault(__nccwpck_require__(39867));var _DynamicSecretUpdateAws=_interopRequireDefault(__nccwpck_require__(15160));var _DynamicSecretUpdateAzure=_interopRequireDefault(__nccwpck_require__(38182));var _DynamicSecretUpdateCassandra=_interopRequireDefault(__nccwpck_require__(51331));var _DynamicSecretUpdateCustom=_interopRequireDefault(__nccwpck_require__(55994));var _DynamicSecretUpdateDockerhub=_interopRequireDefault(__nccwpck_require__(4446));var _DynamicSecretUpdateEks=_interopRequireDefault(__nccwpck_require__(97592));var _DynamicSecretUpdateGcp=_interopRequireDefault(__nccwpck_require__(22219));var _DynamicSecretUpdateGithub=_interopRequireDefault(__nccwpck_require__(19074));var _DynamicSecretUpdateGke=_interopRequireDefault(__nccwpck_require__(88144));var _DynamicSecretUpdateHanaDb=_interopRequireDefault(__nccwpck_require__(30989));var _DynamicSecretUpdateK8s=_interopRequireDefault(__nccwpck_require__(55273));var _DynamicSecretUpdateLdap=_interopRequireDefault(__nccwpck_require__(22416));var _DynamicSecretUpdateMongoDb=_interopRequireDefault(__nccwpck_require__(74019));var _DynamicSecretUpdateMsSql=_interopRequireDefault(__nccwpck_require__(74593));var _DynamicSecretUpdateMySql=_interopRequireDefault(__nccwpck_require__(14567));var _DynamicSecretUpdateOracleDb=_interopRequireDefault(__nccwpck_require__(30421));var _DynamicSecretUpdateOutput=_interopRequireDefault(__nccwpck_require__(31240));var _DynamicSecretUpdatePing=_interopRequireDefault(__nccwpck_require__(52293));var _DynamicSecretUpdatePostgreSql=_interopRequireDefault(__nccwpck_require__(57271));var _DynamicSecretUpdateRabbitMq=_interopRequireDefault(__nccwpck_require__(68943));var _DynamicSecretUpdateRdp=_interopRequireDefault(__nccwpck_require__(42835));var _DynamicSecretUpdateRedis=_interopRequireDefault(__nccwpck_require__(21290));var _DynamicSecretUpdateRedshift=_interopRequireDefault(__nccwpck_require__(43512));var _DynamicSecretUpdateSnowflake=_interopRequireDefault(__nccwpck_require__(27757));var _DynamicSecretUpdateVenafi=_interopRequireDefault(__nccwpck_require__(54828));var _Encrypt=_interopRequireDefault(__nccwpck_require__(41068));var _EncryptGPG=_interopRequireDefault(__nccwpck_require__(9542));var _EncryptGPGOutput=_interopRequireDefault(__nccwpck_require__(39139));var _EncryptOutput=_interopRequireDefault(__nccwpck_require__(80077));var _EncryptWithClassicKey=_interopRequireDefault(__nccwpck_require__(46751));var _EsmCreate=_interopRequireDefault(__nccwpck_require__(24338));var _EsmCreateSecretOutput=_interopRequireDefault(__nccwpck_require__(9331));var _EsmDelete=_interopRequireDefault(__nccwpck_require__(22545));var _EsmDeleteSecretOutput=_interopRequireDefault(__nccwpck_require__(24820));var _EsmGet=_interopRequireDefault(__nccwpck_require__(56056));var _EsmGetSecretOutput=_interopRequireDefault(__nccwpck_require__(66425));var _EsmList=_interopRequireDefault(__nccwpck_require__(21934));var _EsmListSecretsOutput=_interopRequireDefault(__nccwpck_require__(75628));var _EsmUpdate=_interopRequireDefault(__nccwpck_require__(47215));var _EsmUpdateSecretOutput=_interopRequireDefault(__nccwpck_require__(86426));var _EventAction=_interopRequireDefault(__nccwpck_require__(93495));var _EventForwarderCreateEmail=_interopRequireDefault(__nccwpck_require__(78463));var _EventForwarderCreateServiceNow=_interopRequireDefault(__nccwpck_require__(76710));var _EventForwarderCreateSlack=_interopRequireDefault(__nccwpck_require__(99639));var _EventForwarderCreateUpdateOutput=_interopRequireDefault(__nccwpck_require__(21351));var _EventForwarderCreateWebhook=_interopRequireDefault(__nccwpck_require__(57066));var _EventForwarderDelete=_interopRequireDefault(__nccwpck_require__(49548));var _EventForwarderDeleteOutput=_interopRequireDefault(__nccwpck_require__(25869));var _EventForwarderGet=_interopRequireDefault(__nccwpck_require__(76255));var _EventForwarderGetOutput=_interopRequireDefault(__nccwpck_require__(9126));var _EventForwarderUpdateEmail=_interopRequireDefault(__nccwpck_require__(88420));var _EventForwarderUpdateServiceNow=_interopRequireDefault(__nccwpck_require__(26835));var _EventForwarderUpdateSlack=_interopRequireDefault(__nccwpck_require__(86292));var _EventForwarderUpdateWebhook=_interopRequireDefault(__nccwpck_require__(21609));var _ExportClassicKey=_interopRequireDefault(__nccwpck_require__(20312));var _ExportClassicKeyOutput=_interopRequireDefault(__nccwpck_require__(52753));var _GatewayCreateAllowedAccess=_interopRequireDefault(__nccwpck_require__(69865));var _GatewayCreateK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(34979));var _GatewayCreateK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(14034));var _GatewayCreateMigration=_interopRequireDefault(__nccwpck_require__(36831));var _GatewayCreateProducerArtifactory=_interopRequireDefault(__nccwpck_require__(22311));var _GatewayCreateProducerArtifactoryOutput=_interopRequireDefault(__nccwpck_require__(47166));var _GatewayCreateProducerAws=_interopRequireDefault(__nccwpck_require__(73916));var _GatewayCreateProducerAwsOutput=_interopRequireDefault(__nccwpck_require__(8093));var _GatewayCreateProducerAzure=_interopRequireDefault(__nccwpck_require__(16178));var _GatewayCreateProducerAzureOutput=_interopRequireDefault(__nccwpck_require__(64311));var _GatewayCreateProducerCassandra=_interopRequireDefault(__nccwpck_require__(87855));var _GatewayCreateProducerCassandraOutput=_interopRequireDefault(__nccwpck_require__(10166));var _GatewayCreateProducerChef=_interopRequireDefault(__nccwpck_require__(12085));var _GatewayCreateProducerChefOutput=_interopRequireDefault(__nccwpck_require__(800));var _GatewayCreateProducerCustom=_interopRequireDefault(__nccwpck_require__(64366));var _GatewayCreateProducerCustomOutput=_interopRequireDefault(__nccwpck_require__(35003));var _GatewayCreateProducerDockerhub=_interopRequireDefault(__nccwpck_require__(43226));var _GatewayCreateProducerDockerhubOutput=_interopRequireDefault(__nccwpck_require__(68655));var _GatewayCreateProducerEks=_interopRequireDefault(__nccwpck_require__(29980));var _GatewayCreateProducerEksOutput=_interopRequireDefault(__nccwpck_require__(41981));var _GatewayCreateProducerGcp=_interopRequireDefault(__nccwpck_require__(62015));var _GatewayCreateProducerGcpOutput=_interopRequireDefault(__nccwpck_require__(15398));var _GatewayCreateProducerGithub=_interopRequireDefault(__nccwpck_require__(94350));var _GatewayCreateProducerGithubOutput=_interopRequireDefault(__nccwpck_require__(57723));var _GatewayCreateProducerGke=_interopRequireDefault(__nccwpck_require__(26908));var _GatewayCreateProducerGkeOutput=_interopRequireDefault(__nccwpck_require__(75709));var _GatewayCreateProducerHanaDb=_interopRequireDefault(__nccwpck_require__(13185));var _GatewayCreateProducerHanaDbOutput=_interopRequireDefault(__nccwpck_require__(21460));var _GatewayCreateProducerLdap=_interopRequireDefault(__nccwpck_require__(73236));var _GatewayCreateProducerLdapOutput=_interopRequireDefault(__nccwpck_require__(8517));var _GatewayCreateProducerMSSQL=_interopRequireDefault(__nccwpck_require__(89229));var _GatewayCreateProducerMSSQLOutput=_interopRequireDefault(__nccwpck_require__(63880));var _GatewayCreateProducerMongo=_interopRequireDefault(__nccwpck_require__(35565));var _GatewayCreateProducerMongoOutput=_interopRequireDefault(__nccwpck_require__(71784));var _GatewayCreateProducerMySQL=_interopRequireDefault(__nccwpck_require__(30467));var _GatewayCreateProducerMySQLOutput=_interopRequireDefault(__nccwpck_require__(84594));var _GatewayCreateProducerNativeK8S=_interopRequireDefault(__nccwpck_require__(75168));var _GatewayCreateProducerNativeK8SOutput=_interopRequireDefault(__nccwpck_require__(52361));var _GatewayCreateProducerOracleDb=_interopRequireDefault(__nccwpck_require__(5897));var _GatewayCreateProducerOracleDbOutput=_interopRequireDefault(__nccwpck_require__(25132));var _GatewayCreateProducerPing=_interopRequireDefault(__nccwpck_require__(93225));var _GatewayCreateProducerPingOutput=_interopRequireDefault(__nccwpck_require__(9516));var _GatewayCreateProducerPostgreSQL=_interopRequireDefault(__nccwpck_require__(85747));var _GatewayCreateProducerPostgreSQLOutput=_interopRequireDefault(__nccwpck_require__(16994));var _GatewayCreateProducerRabbitMQ=_interopRequireDefault(__nccwpck_require__(96771));var _GatewayCreateProducerRabbitMQOutput=_interopRequireDefault(__nccwpck_require__(9874));var _GatewayCreateProducerRdp=_interopRequireDefault(__nccwpck_require__(63895));var _GatewayCreateProducerRdpOutput=_interopRequireDefault(__nccwpck_require__(75822));var _GatewayCreateProducerRedis=_interopRequireDefault(__nccwpck_require__(84198));var _GatewayCreateProducerRedisOutput=_interopRequireDefault(__nccwpck_require__(8899));var _GatewayCreateProducerRedshift=_interopRequireDefault(__nccwpck_require__(5404));var _GatewayCreateProducerRedshiftOutput=_interopRequireDefault(__nccwpck_require__(989));var _GatewayCreateProducerSnowflake=_interopRequireDefault(__nccwpck_require__(43881));var _GatewayCreateProducerSnowflakeOutput=_interopRequireDefault(__nccwpck_require__(44972));var _GatewayCreateProducerVenafi=_interopRequireDefault(__nccwpck_require__(80288));var _GatewayCreateProducerVenafiOutput=_interopRequireDefault(__nccwpck_require__(42889));var _GatewayDeleteAllowedAccess=_interopRequireDefault(__nccwpck_require__(61432));var _GatewayDeleteAllowedAccessOutput=_interopRequireDefault(__nccwpck_require__(51409));var _GatewayDeleteK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(35530));var _GatewayDeleteK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(77023));var _GatewayDeleteMigration=_interopRequireDefault(__nccwpck_require__(18110));var _GatewayDeleteProducer=_interopRequireDefault(__nccwpck_require__(6902));var _GatewayDeleteProducerOutput=_interopRequireDefault(__nccwpck_require__(56019));var _GatewayDownloadCustomerFragments=_interopRequireDefault(__nccwpck_require__(34610));var _GatewayDownloadCustomerFragmentsOutput=_interopRequireDefault(__nccwpck_require__(80599));var _GatewayGetAllowedAccess=_interopRequireDefault(__nccwpck_require__(48745));var _GatewayGetConfig=_interopRequireDefault(__nccwpck_require__(71450));var _GatewayGetK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(98467));var _GatewayGetK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(39570));var _GatewayGetLdapAuthConfig=_interopRequireDefault(__nccwpck_require__(45214));var _GatewayGetLdapAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(13163));var _GatewayGetMigration=_interopRequireDefault(__nccwpck_require__(49375));var _GatewayGetProducer=_interopRequireDefault(__nccwpck_require__(8465));var _GatewayGetTmpUsers=_interopRequireDefault(__nccwpck_require__(59536));var _GatewayListMigration=_interopRequireDefault(__nccwpck_require__(819));var _GatewayListProducers=_interopRequireDefault(__nccwpck_require__(41680));var _GatewayListRotatedSecrets=_interopRequireDefault(__nccwpck_require__(9805));var _GatewayMigratePersonalItems=_interopRequireDefault(__nccwpck_require__(54180));var _GatewayMigratePersonalItemsOutput=_interopRequireDefault(__nccwpck_require__(55285));var _GatewayMigrationCreateOutput=_interopRequireDefault(__nccwpck_require__(94622));var _GatewayMigrationDeleteOutput=_interopRequireDefault(__nccwpck_require__(4845));var _GatewayMigrationGetOutput=_interopRequireDefault(__nccwpck_require__(27686));var _GatewayMigrationListOutput=_interopRequireDefault(__nccwpck_require__(43554));var _GatewayMigrationSyncOutput=_interopRequireDefault(__nccwpck_require__(82573));var _GatewayMigrationUpdateOutput=_interopRequireDefault(__nccwpck_require__(42419));var _GatewayRevokeTmpUsers=_interopRequireDefault(__nccwpck_require__(39810));var _GatewayStartProducer=_interopRequireDefault(__nccwpck_require__(70633));var _GatewayStartProducerOutput=_interopRequireDefault(__nccwpck_require__(29036));var _GatewayStatusMigration=_interopRequireDefault(__nccwpck_require__(20045));var _GatewayStopProducer=_interopRequireDefault(__nccwpck_require__(31541));var _GatewayStopProducerOutput=_interopRequireDefault(__nccwpck_require__(73024));var _GatewaySyncMigration=_interopRequireDefault(__nccwpck_require__(95462));var _GatewayUpdateAllowedAccess=_interopRequireDefault(__nccwpck_require__(84774));var _GatewayUpdateItem=_interopRequireDefault(__nccwpck_require__(40933));var _GatewayUpdateItemOutput=_interopRequireDefault(__nccwpck_require__(43920));var _GatewayUpdateK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(29412));var _GatewayUpdateK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(27253));var _GatewayUpdateLdapAuthConfig=_interopRequireDefault(__nccwpck_require__(19167));var _GatewayUpdateLdapAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(45606));var _GatewayUpdateMigration=_interopRequireDefault(__nccwpck_require__(53524));var _GatewayUpdateProducerArtifactory=_interopRequireDefault(__nccwpck_require__(31348));var _GatewayUpdateProducerArtifactoryOutput=_interopRequireDefault(__nccwpck_require__(95077));var _GatewayUpdateProducerAws=_interopRequireDefault(__nccwpck_require__(21375));var _GatewayUpdateProducerAwsOutput=_interopRequireDefault(__nccwpck_require__(34694));var _GatewayUpdateProducerAzure=_interopRequireDefault(__nccwpck_require__(17117));var _GatewayUpdateProducerAzureOutput=_interopRequireDefault(__nccwpck_require__(39160));var _GatewayUpdateProducerCassandra=_interopRequireDefault(__nccwpck_require__(84720));var _GatewayUpdateProducerCassandraOutput=_interopRequireDefault(__nccwpck_require__(345));var _GatewayUpdateProducerChef=_interopRequireDefault(__nccwpck_require__(4264));var _GatewayUpdateProducerChefOutput=_interopRequireDefault(__nccwpck_require__(38113));var _GatewayUpdateProducerCustom=_interopRequireDefault(__nccwpck_require__(61215));var _GatewayUpdateProducerCustomOutput=_interopRequireDefault(__nccwpck_require__(96902));var _GatewayUpdateProducerDockerhub=_interopRequireDefault(__nccwpck_require__(34933));var _GatewayUpdateProducerDockerhubOutput=_interopRequireDefault(__nccwpck_require__(44384));var _GatewayUpdateProducerEks=_interopRequireDefault(__nccwpck_require__(10935));var _GatewayUpdateProducerEksOutput=_interopRequireDefault(__nccwpck_require__(32942));var _GatewayUpdateProducerGcp=_interopRequireDefault(__nccwpck_require__(51060));var _GatewayUpdateProducerGcpOutput=_interopRequireDefault(__nccwpck_require__(81061));var _GatewayUpdateProducerGithub=_interopRequireDefault(__nccwpck_require__(25279));var _GatewayUpdateProducerGithubOutput=_interopRequireDefault(__nccwpck_require__(78854));var _GatewayUpdateProducerGke=_interopRequireDefault(__nccwpck_require__(10599));var _GatewayUpdateProducerGkeOutput=_interopRequireDefault(__nccwpck_require__(75697));var _GatewayUpdateProducerHanaDb=_interopRequireDefault(__nccwpck_require__(56756));var _GatewayUpdateProducerHanaDbOutput=_interopRequireDefault(__nccwpck_require__(35269));var _GatewayUpdateProducerLdap=_interopRequireDefault(__nccwpck_require__(35277));var _GatewayUpdateProducerLdapOutput=_interopRequireDefault(__nccwpck_require__(86792));var _GatewayUpdateProducerMSSQL=_interopRequireDefault(__nccwpck_require__(74462));var _GatewayUpdateProducerMSSQLOutput=_interopRequireDefault(__nccwpck_require__(95691));var _GatewayUpdateProducerMongo=_interopRequireDefault(__nccwpck_require__(87970));var _GatewayUpdateProducerMongoOutput=_interopRequireDefault(__nccwpck_require__(78311));var _GatewayUpdateProducerMySQL=_interopRequireDefault(__nccwpck_require__(67872));var _GatewayUpdateProducerMySQLOutput=_interopRequireDefault(__nccwpck_require__(67081));var _GatewayUpdateProducerNativeK8S=_interopRequireDefault(__nccwpck_require__(47503));var _GatewayUpdateProducerNativeK8SOutput=_interopRequireDefault(__nccwpck_require__(30550));var _GatewayUpdateProducerOracleDb=_interopRequireDefault(__nccwpck_require__(26508));var _GatewayUpdateProducerOracleDbOutput=_interopRequireDefault(__nccwpck_require__(85485));var _GatewayUpdateProducerPing=_interopRequireDefault(__nccwpck_require__(29668));var _GatewayUpdateProducerPingOutput=_interopRequireDefault(__nccwpck_require__(39317));var _GatewayUpdateProducerPostgreSQL=_interopRequireDefault(__nccwpck_require__(17998));var _GatewayUpdateProducerPostgreSQLOutput=_interopRequireDefault(__nccwpck_require__(60827));var _GatewayUpdateProducerRabbitMQ=_interopRequireDefault(__nccwpck_require__(52574));var _GatewayUpdateProducerRabbitMQOutput=_interopRequireDefault(__nccwpck_require__(38251));var _GatewayUpdateProducerRdp=_interopRequireDefault(__nccwpck_require__(93628));var _GatewayUpdateProducerRdpOutput=_interopRequireDefault(__nccwpck_require__(95741));var _GatewayUpdateProducerRedis=_interopRequireDefault(__nccwpck_require__(27753));var _GatewayUpdateProducerRedisOutput=_interopRequireDefault(__nccwpck_require__(46028));var _GatewayUpdateProducerRedshift=_interopRequireDefault(__nccwpck_require__(88541));var _GatewayUpdateProducerRedshiftOutput=_interopRequireDefault(__nccwpck_require__(4152));var _GatewayUpdateProducerSnowflake=_interopRequireDefault(__nccwpck_require__(82506));var _GatewayUpdateProducerSnowflakeOutput=_interopRequireDefault(__nccwpck_require__(72895));var _GatewayUpdateProducerVenafi=_interopRequireDefault(__nccwpck_require__(117));var _GatewayUpdateProducerVenafiOutput=_interopRequireDefault(__nccwpck_require__(14816));var _GatewayUpdateTlsCert=_interopRequireDefault(__nccwpck_require__(71695));var _GatewayUpdateTlsCertOutput=_interopRequireDefault(__nccwpck_require__(99862));var _GatewayUpdateTmpUsers=_interopRequireDefault(__nccwpck_require__(71429));var _GatewaysListResponse=_interopRequireDefault(__nccwpck_require__(35713));var _GenerateCsr=_interopRequireDefault(__nccwpck_require__(72228));var _GenerateCsrOutput=_interopRequireDefault(__nccwpck_require__(1109));var _GetAccountSettings=_interopRequireDefault(__nccwpck_require__(28351));var _GetAccountSettingsCommandOutput=_interopRequireDefault(__nccwpck_require__(48759));var _GetAnalyticsData=_interopRequireDefault(__nccwpck_require__(40781));var _GetAuthMethod=_interopRequireDefault(__nccwpck_require__(66058));var _GetCertificateValue=_interopRequireDefault(__nccwpck_require__(63293));var _GetCertificateValueOutput=_interopRequireDefault(__nccwpck_require__(70936));var _GetDynamicSecretValue=_interopRequireDefault(__nccwpck_require__(64275));var _GetEventForwarder=_interopRequireDefault(__nccwpck_require__(39599));var _GetEventForwarderOutput=_interopRequireDefault(__nccwpck_require__(47958));var _GetGroup=_interopRequireDefault(__nccwpck_require__(39734));var _GetGroupOutput=_interopRequireDefault(__nccwpck_require__(89459));var _GetKubeExecCreds=_interopRequireDefault(__nccwpck_require__(61656));var _GetKubeExecCredsOutput=_interopRequireDefault(__nccwpck_require__(3697));var _GetLastUserEventStatus=_interopRequireDefault(__nccwpck_require__(71422));var _GetPKICertificate=_interopRequireDefault(__nccwpck_require__(31150));var _GetPKICertificateOutput=_interopRequireDefault(__nccwpck_require__(44315));var _GetProducersListReplyObj=_interopRequireDefault(__nccwpck_require__(91343));var _GetRSAPublic=_interopRequireDefault(__nccwpck_require__(26250));var _GetRSAPublicOutput=_interopRequireDefault(__nccwpck_require__(59039));var _GetRole=_interopRequireDefault(__nccwpck_require__(92157));var _GetRotatedSecretValue=_interopRequireDefault(__nccwpck_require__(29459));var _GetSSHCertificate=_interopRequireDefault(__nccwpck_require__(66708));var _GetSSHCertificateOutput=_interopRequireDefault(__nccwpck_require__(15045));var _GetSecretValue=_interopRequireDefault(__nccwpck_require__(81888));var _GetTags=_interopRequireDefault(__nccwpck_require__(58912));var _GetTarget=_interopRequireDefault(__nccwpck_require__(68536));var _GetTargetDetails=_interopRequireDefault(__nccwpck_require__(23760));var _GetTargetDetailsOutput=_interopRequireDefault(__nccwpck_require__(32793));var _GetUserEventStatusOutput=_interopRequireDefault(__nccwpck_require__(49439));var _Hmac=_interopRequireDefault(__nccwpck_require__(28566));var _HmacOutput=_interopRequireDefault(__nccwpck_require__(76659));var _ImportPasswords=_interopRequireDefault(__nccwpck_require__(91384));var _ImportPasswordsOutput=_interopRequireDefault(__nccwpck_require__(7249));var _Item=_interopRequireDefault(__nccwpck_require__(3054));var _JSONError=_interopRequireDefault(__nccwpck_require__(34217));var _KMIPClientGetResponse=_interopRequireDefault(__nccwpck_require__(90216));var _KMIPClientListResponse=_interopRequireDefault(__nccwpck_require__(64556));var _KMIPClientUpdateResponse=_interopRequireDefault(__nccwpck_require__(21621));var _KMIPEnvironmentCreateResponse=_interopRequireDefault(__nccwpck_require__(1856));var _KmipClientDeleteRule=_interopRequireDefault(__nccwpck_require__(81302));var _KmipClientSetRule=_interopRequireDefault(__nccwpck_require__(7841));var _KmipCreateClient=_interopRequireDefault(__nccwpck_require__(13031));var _KmipCreateClientOutput=_interopRequireDefault(__nccwpck_require__(55742));var _KmipDeleteClient=_interopRequireDefault(__nccwpck_require__(37128));var _KmipDeleteServer=_interopRequireDefault(__nccwpck_require__(8636));var _KmipDescribeClient=_interopRequireDefault(__nccwpck_require__(66618));var _KmipDescribeServer=_interopRequireDefault(__nccwpck_require__(42350));var _KmipDescribeServerOutput=_interopRequireDefault(__nccwpck_require__(68059));var _KmipListClients=_interopRequireDefault(__nccwpck_require__(5706));var _KmipMoveServer=_interopRequireDefault(__nccwpck_require__(83994));var _KmipMoveServerOutput=_interopRequireDefault(__nccwpck_require__(56175));var _KmipRenewClientCertificate=_interopRequireDefault(__nccwpck_require__(94729));var _KmipRenewClientCertificateOutput=_interopRequireDefault(__nccwpck_require__(75020));var _KmipRenewServerCertificate=_interopRequireDefault(__nccwpck_require__(45781));var _KmipRenewServerCertificateOutput=_interopRequireDefault(__nccwpck_require__(48640));var _KmipServerSetup=_interopRequireDefault(__nccwpck_require__(85466));var _KmipSetServerState=_interopRequireDefault(__nccwpck_require__(11340));var _KmipSetServerStateOutput=_interopRequireDefault(__nccwpck_require__(12269));var _ListAuthMethods=_interopRequireDefault(__nccwpck_require__(61769));var _ListAuthMethodsOutput=_interopRequireDefault(__nccwpck_require__(68940));var _ListGateways=_interopRequireDefault(__nccwpck_require__(14862));var _ListGroups=_interopRequireDefault(__nccwpck_require__(43437));var _ListGroupsOutput=_interopRequireDefault(__nccwpck_require__(71336));var _ListItems=_interopRequireDefault(__nccwpck_require__(14121));var _ListItemsInPathOutput=_interopRequireDefault(__nccwpck_require__(95752));var _ListItemsOutput=_interopRequireDefault(__nccwpck_require__(22828));var _ListRoles=_interopRequireDefault(__nccwpck_require__(51752));var _ListRolesOutput=_interopRequireDefault(__nccwpck_require__(82465));var _ListSRABastions=_interopRequireDefault(__nccwpck_require__(71572));var _ListSharedItems=_interopRequireDefault(__nccwpck_require__(24674));var _ListTargets=_interopRequireDefault(__nccwpck_require__(89399));var _ListTargetsOutput=_interopRequireDefault(__nccwpck_require__(49966));var _MigrationStatusReplyObj=_interopRequireDefault(__nccwpck_require__(81914));var _MoveObjects=_interopRequireDefault(__nccwpck_require__(59130));var _ProvisionCertificate=_interopRequireDefault(__nccwpck_require__(40955));var _ProvisionCertificateOutput=_interopRequireDefault(__nccwpck_require__(17594));var _RawCreds=_interopRequireDefault(__nccwpck_require__(37314));var _RefreshKey=_interopRequireDefault(__nccwpck_require__(69211));var _RefreshKeyOutput=_interopRequireDefault(__nccwpck_require__(8346));var _RenewCertificate=_interopRequireDefault(__nccwpck_require__(12997));var _RenewCertificateOutput=_interopRequireDefault(__nccwpck_require__(7472));var _RequestAccess=_interopRequireDefault(__nccwpck_require__(50874));var _RequestAccessOutput=_interopRequireDefault(__nccwpck_require__(27055));var _ReverseRBAC=_interopRequireDefault(__nccwpck_require__(94227));var _ReverseRBACOutput=_interopRequireDefault(__nccwpck_require__(90274));var _RevokeCertificate=_interopRequireDefault(__nccwpck_require__(28096));var _Role=_interopRequireDefault(__nccwpck_require__(82945));var _RoleAssociationDetails=_interopRequireDefault(__nccwpck_require__(13682));var _RollbackSecret=_interopRequireDefault(__nccwpck_require__(21513));var _RollbackSecretOutput=_interopRequireDefault(__nccwpck_require__(9900));var _RotateKey=_interopRequireDefault(__nccwpck_require__(32451));var _RotateKeyOutput=_interopRequireDefault(__nccwpck_require__(29394));var _RotateOidcClientOutput=_interopRequireDefault(__nccwpck_require__(41421));var _RotateOidcClientSecret=_interopRequireDefault(__nccwpck_require__(82252));var _RotateSecret=_interopRequireDefault(__nccwpck_require__(85362));var _RotatedSecretCreateAws=_interopRequireDefault(__nccwpck_require__(83871));var _RotatedSecretCreateAzure=_interopRequireDefault(__nccwpck_require__(4733));var _RotatedSecretCreateCassandra=_interopRequireDefault(__nccwpck_require__(60560));var _RotatedSecretCreateCustom=_interopRequireDefault(__nccwpck_require__(62527));var _RotatedSecretCreateDockerhub=_interopRequireDefault(__nccwpck_require__(53685));var _RotatedSecretCreateGcp=_interopRequireDefault(__nccwpck_require__(63476));var _RotatedSecretCreateHanadb=_interopRequireDefault(__nccwpck_require__(78964));var _RotatedSecretCreateLdap=_interopRequireDefault(__nccwpck_require__(29101));var _RotatedSecretCreateMongodb=_interopRequireDefault(__nccwpck_require__(96884));var _RotatedSecretCreateMssql=_interopRequireDefault(__nccwpck_require__(60350));var _RotatedSecretCreateMysql=_interopRequireDefault(__nccwpck_require__(33312));var _RotatedSecretCreateOracledb=_interopRequireDefault(__nccwpck_require__(44268));var _RotatedSecretCreateOutput=_interopRequireDefault(__nccwpck_require__(91489));var _RotatedSecretCreatePostgresql=_interopRequireDefault(__nccwpck_require__(70606));var _RotatedSecretCreateRedis=_interopRequireDefault(__nccwpck_require__(87721));var _RotatedSecretCreateRedshift=_interopRequireDefault(__nccwpck_require__(39101));var _RotatedSecretCreateSnowflake=_interopRequireDefault(__nccwpck_require__(66890));var _RotatedSecretCreateSsh=_interopRequireDefault(__nccwpck_require__(79888));var _RotatedSecretCreateWindows=_interopRequireDefault(__nccwpck_require__(40983));var _RotatedSecretGetValue=_interopRequireDefault(__nccwpck_require__(37381));var _RotatedSecretList=_interopRequireDefault(__nccwpck_require__(94472));var _RotatedSecretOutput=_interopRequireDefault(__nccwpck_require__(4617));var _RotatedSecretUpdateAws=_interopRequireDefault(__nccwpck_require__(24136));var _RotatedSecretUpdateAzure=_interopRequireDefault(__nccwpck_require__(22742));var _RotatedSecretUpdateCassandra=_interopRequireDefault(__nccwpck_require__(26195));var _RotatedSecretUpdateCustom=_interopRequireDefault(__nccwpck_require__(60682));var _RotatedSecretUpdateDockerhub=_interopRequireDefault(__nccwpck_require__(92078));var _RotatedSecretUpdateGcp=_interopRequireDefault(__nccwpck_require__(56315));var _RotatedSecretUpdateHanadb=_interopRequireDefault(__nccwpck_require__(79165));var _RotatedSecretUpdateLdap=_interopRequireDefault(__nccwpck_require__(23456));var _RotatedSecretUpdateMongodb=_interopRequireDefault(__nccwpck_require__(64915));var _RotatedSecretUpdateMssql=_interopRequireDefault(__nccwpck_require__(71665));var _RotatedSecretUpdateMysql=_interopRequireDefault(__nccwpck_require__(91735));var _RotatedSecretUpdateOracledb=_interopRequireDefault(__nccwpck_require__(60069));var _RotatedSecretUpdateOutput=_interopRequireDefault(__nccwpck_require__(75288));var _RotatedSecretUpdatePostgresql=_interopRequireDefault(__nccwpck_require__(78599));var _RotatedSecretUpdateRedis=_interopRequireDefault(__nccwpck_require__(35770));var _RotatedSecretUpdateRedshift=_interopRequireDefault(__nccwpck_require__(40264));var _RotatedSecretUpdateSnowflake=_interopRequireDefault(__nccwpck_require__(53949));var _RotatedSecretUpdateSsh=_interopRequireDefault(__nccwpck_require__(31655));var _RotatedSecretUpdateWindows=_interopRequireDefault(__nccwpck_require__(13420));var _SetItemState=_interopRequireDefault(__nccwpck_require__(33993));var _SetRoleRule=_interopRequireDefault(__nccwpck_require__(84215));var _ShareItem=_interopRequireDefault(__nccwpck_require__(22705));var _SignDataWithClassicKey=_interopRequireDefault(__nccwpck_require__(13875));var _SignEcDsa=_interopRequireDefault(__nccwpck_require__(60074));var _SignEcDsaOutput=_interopRequireDefault(__nccwpck_require__(23679));var _SignGPG=_interopRequireDefault(__nccwpck_require__(47626));var _SignGPGOutput=_interopRequireDefault(__nccwpck_require__(82879));var _SignJWTOutput=_interopRequireDefault(__nccwpck_require__(79454));var _SignJWTWithClassicKey=_interopRequireDefault(__nccwpck_require__(92924));var _SignOutput=_interopRequireDefault(__nccwpck_require__(84449));var _SignPKCS=_interopRequireDefault(__nccwpck_require__(11812));var _SignPKCS1Output=_interopRequireDefault(__nccwpck_require__(30325));var _SignPKICertOutput=_interopRequireDefault(__nccwpck_require__(79313));var _SignPKICertWithClassicKey=_interopRequireDefault(__nccwpck_require__(47579));var _SignRsaSsaPss=_interopRequireDefault(__nccwpck_require__(52857));var _SignRsaSsaPssOutput=_interopRequireDefault(__nccwpck_require__(4527));var _StaticCredsAuth=_interopRequireDefault(__nccwpck_require__(74556));var _StaticCredsAuthOutput=_interopRequireDefault(__nccwpck_require__(84349));var _SystemAccessCredentialsReplyObj=_interopRequireDefault(__nccwpck_require__(96719));var _Target=_interopRequireDefault(__nccwpck_require__(17364));var _TmpUserData=_interopRequireDefault(__nccwpck_require__(96175));var _Tokenize=_interopRequireDefault(__nccwpck_require__(91288));var _TokenizeOutput=_interopRequireDefault(__nccwpck_require__(62001));var _UidCreateChildToken=_interopRequireDefault(__nccwpck_require__(88720));var _UidCreateChildTokenOutput=_interopRequireDefault(__nccwpck_require__(23961));var _UidGenerateToken=_interopRequireDefault(__nccwpck_require__(66215));var _UidGenerateTokenOutput=_interopRequireDefault(__nccwpck_require__(13598));var _UidListChildren=_interopRequireDefault(__nccwpck_require__(68336));var _UidRevokeToken=_interopRequireDefault(__nccwpck_require__(82180));var _UidRotateToken=_interopRequireDefault(__nccwpck_require__(59143));var _UidRotateTokenOutput=_interopRequireDefault(__nccwpck_require__(21214));var _UniversalIdentityDetails=_interopRequireDefault(__nccwpck_require__(50166));var _UpdateAWSTarget=_interopRequireDefault(__nccwpck_require__(99286));var _UpdateAWSTargetDetails=_interopRequireDefault(__nccwpck_require__(53070));var _UpdateAccountSettings=_interopRequireDefault(__nccwpck_require__(57356));var _UpdateAccountSettingsOutput=_interopRequireDefault(__nccwpck_require__(50125));var _UpdateArtifactoryTarget=_interopRequireDefault(__nccwpck_require__(13865));var _UpdateArtifactoryTargetOutput=_interopRequireDefault(__nccwpck_require__(28908));var _UpdateAssoc=_interopRequireDefault(__nccwpck_require__(23141));var _UpdateAuthMethod=_interopRequireDefault(__nccwpck_require__(21883));var _UpdateAuthMethodAWSIAM=_interopRequireDefault(__nccwpck_require__(37029));var _UpdateAuthMethodAzureAD=_interopRequireDefault(__nccwpck_require__(88049));var _UpdateAuthMethodCert=_interopRequireDefault(__nccwpck_require__(13313));var _UpdateAuthMethodCertOutput=_interopRequireDefault(__nccwpck_require__(92116));var _UpdateAuthMethodGCP=_interopRequireDefault(__nccwpck_require__(33149));var _UpdateAuthMethodK8S=_interopRequireDefault(__nccwpck_require__(50563));var _UpdateAuthMethodK8SOutput=_interopRequireDefault(__nccwpck_require__(67314));var _UpdateAuthMethodLDAP=_interopRequireDefault(__nccwpck_require__(7966));var _UpdateAuthMethodLDAPOutput=_interopRequireDefault(__nccwpck_require__(61739));var _UpdateAuthMethodOAuth=_interopRequireDefault(__nccwpck_require__(2664));var _UpdateAuthMethodOCI=_interopRequireDefault(__nccwpck_require__(87630));var _UpdateAuthMethodOCIOutput=_interopRequireDefault(__nccwpck_require__(93179));var _UpdateAuthMethodOIDC=_interopRequireDefault(__nccwpck_require__(48022));var _UpdateAuthMethodOutput=_interopRequireDefault(__nccwpck_require__(8314));var _UpdateAuthMethodSAML=_interopRequireDefault(__nccwpck_require__(75902));var _UpdateAuthMethodUniversalIdentity=_interopRequireDefault(__nccwpck_require__(57907));var _UpdateAzureTarget=_interopRequireDefault(__nccwpck_require__(57420));var _UpdateAzureTargetOutput=_interopRequireDefault(__nccwpck_require__(29677));var _UpdateCertificateOutput=_interopRequireDefault(__nccwpck_require__(17004));var _UpdateCertificateValue=_interopRequireDefault(__nccwpck_require__(44420));var _UpdateClassicKeyCertificate=_interopRequireDefault(__nccwpck_require__(94908));var _UpdateDBTarget=_interopRequireDefault(__nccwpck_require__(53451));var _UpdateDBTargetDetails=_interopRequireDefault(__nccwpck_require__(25405));var _UpdateDBTargetOutput=_interopRequireDefault(__nccwpck_require__(64650));var _UpdateDockerhubTarget=_interopRequireDefault(__nccwpck_require__(35588));var _UpdateDockerhubTargetOutput=_interopRequireDefault(__nccwpck_require__(90229));var _UpdateEKSTarget=_interopRequireDefault(__nccwpck_require__(26894));var _UpdateEKSTargetOutput=_interopRequireDefault(__nccwpck_require__(95963));var _UpdateEventForwarder=_interopRequireDefault(__nccwpck_require__(46006));var _UpdateGKETarget=_interopRequireDefault(__nccwpck_require__(65334));var _UpdateGKETargetOutput=_interopRequireDefault(__nccwpck_require__(88371));var _UpdateGcpTarget=_interopRequireDefault(__nccwpck_require__(65793));var _UpdateGcpTargetOutput=_interopRequireDefault(__nccwpck_require__(65620));var _UpdateGithubTarget=_interopRequireDefault(__nccwpck_require__(1806));var _UpdateGithubTargetOutput=_interopRequireDefault(__nccwpck_require__(50715));var _UpdateGlobalSignAtlasTarget=_interopRequireDefault(__nccwpck_require__(77438));var _UpdateGlobalSignAtlasTargetOutput=_interopRequireDefault(__nccwpck_require__(62731));var _UpdateGlobalSignTarget=_interopRequireDefault(__nccwpck_require__(62311));var _UpdateGlobalSignTargetOutput=_interopRequireDefault(__nccwpck_require__(66718));var _UpdateGodaddyTarget=_interopRequireDefault(__nccwpck_require__(3964));var _UpdateGodaddyTargetOutput=_interopRequireDefault(__nccwpck_require__(29110));var _UpdateGroup=_interopRequireDefault(__nccwpck_require__(60561));var _UpdateGroupOutput=_interopRequireDefault(__nccwpck_require__(29764));var _UpdateItem=_interopRequireDefault(__nccwpck_require__(55359));var _UpdateItemOutput=_interopRequireDefault(__nccwpck_require__(68806));var _UpdateLdapTarget=_interopRequireDefault(__nccwpck_require__(47860));var _UpdateLdapTargetDetails=_interopRequireDefault(__nccwpck_require__(52356));var _UpdateLdapTargetOutput=_interopRequireDefault(__nccwpck_require__(2501));var _UpdateLinkedTarget=_interopRequireDefault(__nccwpck_require__(21384));var _UpdateNativeK8STarget=_interopRequireDefault(__nccwpck_require__(1454));var _UpdateNativeK8STargetOutput=_interopRequireDefault(__nccwpck_require__(19259));var _UpdateOidcApp=_interopRequireDefault(__nccwpck_require__(44538));var _UpdatePKICertIssuer=_interopRequireDefault(__nccwpck_require__(36355));var _UpdatePKICertIssuerOutput=_interopRequireDefault(__nccwpck_require__(96434));var _UpdatePingTarget=_interopRequireDefault(__nccwpck_require__(60881));var _UpdateRDPTargetDetails=_interopRequireDefault(__nccwpck_require__(95347));var _UpdateRabbitMQTarget=_interopRequireDefault(__nccwpck_require__(51155));var _UpdateRabbitMQTargetDetails=_interopRequireDefault(__nccwpck_require__(60917));var _UpdateRabbitMQTargetOutput=_interopRequireDefault(__nccwpck_require__(75522));var _UpdateRole=_interopRequireDefault(__nccwpck_require__(69176));var _UpdateRoleOutput=_interopRequireDefault(__nccwpck_require__(66161));var _UpdateRotatedSecret=_interopRequireDefault(__nccwpck_require__(70467));var _UpdateRotatedSecretOutput=_interopRequireDefault(__nccwpck_require__(12498));var _UpdateRotationSettings=_interopRequireDefault(__nccwpck_require__(71651));var _UpdateSSHCertIssuer=_interopRequireDefault(__nccwpck_require__(50705));var _UpdateSSHCertIssuerOutput=_interopRequireDefault(__nccwpck_require__(59748));var _UpdateSSHTarget=_interopRequireDefault(__nccwpck_require__(84357));var _UpdateSSHTargetDetails=_interopRequireDefault(__nccwpck_require__(50311));var _UpdateSSHTargetOutput=_interopRequireDefault(__nccwpck_require__(86768));var _UpdateSalesforceTarget=_interopRequireDefault(__nccwpck_require__(69078));var _UpdateSalesforceTargetOutput=_interopRequireDefault(__nccwpck_require__(81299));var _UpdateSecretVal=_interopRequireDefault(__nccwpck_require__(70985));var _UpdateSecretValOutput=_interopRequireDefault(__nccwpck_require__(81164));var _UpdateTarget=_interopRequireDefault(__nccwpck_require__(66565));var _UpdateTargetDetails=_interopRequireDefault(__nccwpck_require__(78887));var _UpdateTargetOutput=_interopRequireDefault(__nccwpck_require__(33392));var _UpdateWebTarget=_interopRequireDefault(__nccwpck_require__(84717));var _UpdateWebTargetDetails=_interopRequireDefault(__nccwpck_require__(48511));var _UpdateWebTargetOutput=_interopRequireDefault(__nccwpck_require__(52008));var _UpdateWindowsTarget=_interopRequireDefault(__nccwpck_require__(58670));var _UpdateZeroSSLTarget=_interopRequireDefault(__nccwpck_require__(27571));var _UpdateZeroSSLTargetOutput=_interopRequireDefault(__nccwpck_require__(12866));var _UploadRSA=_interopRequireDefault(__nccwpck_require__(46795));var _UscCreateSecretOutput=_interopRequireDefault(__nccwpck_require__(82453));var _UscDelete=_interopRequireDefault(__nccwpck_require__(85003));var _UscDeleteSecretOutput=_interopRequireDefault(__nccwpck_require__(49046));var _UscGet=_interopRequireDefault(__nccwpck_require__(92522));var _UscGetSecretOutput=_interopRequireDefault(__nccwpck_require__(40155));var _UscList=_interopRequireDefault(__nccwpck_require__(40380));var _UscListSecretsOutput=_interopRequireDefault(__nccwpck_require__(66114));var _UscUpdate=_interopRequireDefault(__nccwpck_require__(16705));var _UscUpdateSecretOutput=_interopRequireDefault(__nccwpck_require__(57540));var _ValidateToken=_interopRequireDefault(__nccwpck_require__(62030));var _ValidateTokenOutput=_interopRequireDefault(__nccwpck_require__(14299));var _VerifyDataWithClassicKey=_interopRequireDefault(__nccwpck_require__(65575));var _VerifyEcDsa=_interopRequireDefault(__nccwpck_require__(17398));var _VerifyGPG=_interopRequireDefault(__nccwpck_require__(79430));var _VerifyJWTOutput=_interopRequireDefault(__nccwpck_require__(43858));var _VerifyJWTWithClassicKey=_interopRequireDefault(__nccwpck_require__(21992));var _VerifyPKCS=_interopRequireDefault(__nccwpck_require__(72992));var _VerifyPKICertOutput=_interopRequireDefault(__nccwpck_require__(71173));var _VerifyPKICertWithClassicKey=_interopRequireDefault(__nccwpck_require__(35815));var _VerifyRsaSsaPss=_interopRequireDefault(__nccwpck_require__(53541));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i} and HTTP response + */},{key:"dynamicSecretGetValueWithHttpInfo",value:function dynamicSecretGetValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretGetValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/dynamic-secret-get-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretGetValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"dynamicSecretGetValue",value:function dynamicSecretGetValue(body){return this.dynamicSecretGetValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducersListReplyObj} and HTTP response + */},{key:"dynamicSecretListWithHttpInfo",value:function dynamicSecretListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetProducersListReplyObj["default"];return this.apiClient.callApi('/dynamic-secret-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducersListReplyObj} + */},{key:"dynamicSecretList",value:function dynamicSecretList(body){return this.dynamicSecretListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretTmpCredsDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"dynamicSecretTmpCredsDeleteWithHttpInfo",value:function dynamicSecretTmpCredsDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretTmpCredsDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/dynamic-secret-tmp-creds-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretTmpCredsDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"dynamicSecretTmpCredsDelete",value:function dynamicSecretTmpCredsDelete(body){return this.dynamicSecretTmpCredsDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretTmpCredsGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */},{key:"dynamicSecretTmpCredsGetWithHttpInfo",value:function dynamicSecretTmpCredsGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretTmpCredsGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=[_TmpUserData["default"]];return this.apiClient.callApi('/dynamic-secret-tmp-creds-Get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretTmpCredsGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */},{key:"dynamicSecretTmpCredsGet",value:function dynamicSecretTmpCredsGet(body){return this.dynamicSecretTmpCredsGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretTmpCredsUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"dynamicSecretTmpCredsUpdateWithHttpInfo",value:function dynamicSecretTmpCredsUpdateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretTmpCredsUpdate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/dynamic-secret-tmp-creds-update','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretTmpCredsUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"dynamicSecretTmpCredsUpdate",value:function dynamicSecretTmpCredsUpdate(body){return this.dynamicSecretTmpCredsUpdateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateArtifactoryWithHttpInfo",value:function dynamicSecretUpdateArtifactoryWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateArtifactory");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-artifactory','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateArtifactory",value:function dynamicSecretUpdateArtifactory(body){return this.dynamicSecretUpdateArtifactoryWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateAwsWithHttpInfo",value:function dynamicSecretUpdateAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateAws",value:function dynamicSecretUpdateAws(body){return this.dynamicSecretUpdateAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateAzureWithHttpInfo",value:function dynamicSecretUpdateAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateAzure",value:function dynamicSecretUpdateAzure(body){return this.dynamicSecretUpdateAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateCassandraWithHttpInfo",value:function dynamicSecretUpdateCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateCassandra",value:function dynamicSecretUpdateCassandra(body){return this.dynamicSecretUpdateCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/DynamicSecretUpdateCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateCustomWithHttpInfo",value:function dynamicSecretUpdateCustomWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/DynamicSecretUpdateCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateCustom",value:function dynamicSecretUpdateCustom(opts){return this.dynamicSecretUpdateCustomWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateDockerhubWithHttpInfo",value:function dynamicSecretUpdateDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateDockerhub",value:function dynamicSecretUpdateDockerhub(body){return this.dynamicSecretUpdateDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateEksWithHttpInfo",value:function dynamicSecretUpdateEksWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateEks");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-eks','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateEks",value:function dynamicSecretUpdateEks(body){return this.dynamicSecretUpdateEksWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateGcpWithHttpInfo",value:function dynamicSecretUpdateGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateGcp",value:function dynamicSecretUpdateGcp(body){return this.dynamicSecretUpdateGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateGithubWithHttpInfo",value:function dynamicSecretUpdateGithubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateGithub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-github','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateGithub",value:function dynamicSecretUpdateGithub(body){return this.dynamicSecretUpdateGithubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateGkeWithHttpInfo",value:function dynamicSecretUpdateGkeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateGke");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-gke','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateGke",value:function dynamicSecretUpdateGke(body){return this.dynamicSecretUpdateGkeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateHanaDbWithHttpInfo",value:function dynamicSecretUpdateHanaDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateHanaDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-hana','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateHanaDb",value:function dynamicSecretUpdateHanaDb(body){return this.dynamicSecretUpdateHanaDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateK8s} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateK8sWithHttpInfo",value:function dynamicSecretUpdateK8sWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateK8s");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateK8s} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateK8s",value:function dynamicSecretUpdateK8s(body){return this.dynamicSecretUpdateK8sWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateLdapWithHttpInfo",value:function dynamicSecretUpdateLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateLdap",value:function dynamicSecretUpdateLdap(body){return this.dynamicSecretUpdateLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateMongoDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateMongoDbWithHttpInfo",value:function dynamicSecretUpdateMongoDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateMongoDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-mongo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateMongoDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateMongoDb",value:function dynamicSecretUpdateMongoDb(body){return this.dynamicSecretUpdateMongoDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateMsSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateMsSqlWithHttpInfo",value:function dynamicSecretUpdateMsSqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateMsSql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateMsSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateMsSql",value:function dynamicSecretUpdateMsSql(body){return this.dynamicSecretUpdateMsSqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateMySql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateMySqlWithHttpInfo",value:function dynamicSecretUpdateMySqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateMySql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateMySql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateMySql",value:function dynamicSecretUpdateMySql(body){return this.dynamicSecretUpdateMySqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateOracleDbWithHttpInfo",value:function dynamicSecretUpdateOracleDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateOracleDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-oracle','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateOracleDb",value:function dynamicSecretUpdateOracleDb(body){return this.dynamicSecretUpdateOracleDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdatePing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdatePingWithHttpInfo",value:function dynamicSecretUpdatePingWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdatePing");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-ping','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdatePing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdatePing",value:function dynamicSecretUpdatePing(body){return this.dynamicSecretUpdatePingWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdatePostgreSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdatePostgreSqlWithHttpInfo",value:function dynamicSecretUpdatePostgreSqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdatePostgreSql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdatePostgreSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdatePostgreSql",value:function dynamicSecretUpdatePostgreSql(body){return this.dynamicSecretUpdatePostgreSqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRabbitMq} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRabbitMqWithHttpInfo",value:function dynamicSecretUpdateRabbitMqWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRabbitMq");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-rabbitmq','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRabbitMq} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRabbitMq",value:function dynamicSecretUpdateRabbitMq(body){return this.dynamicSecretUpdateRabbitMqWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRdpWithHttpInfo",value:function dynamicSecretUpdateRdpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRdp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-rdp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRdp",value:function dynamicSecretUpdateRdp(body){return this.dynamicSecretUpdateRdpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRedisWithHttpInfo",value:function dynamicSecretUpdateRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRedis",value:function dynamicSecretUpdateRedis(body){return this.dynamicSecretUpdateRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRedshiftWithHttpInfo",value:function dynamicSecretUpdateRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRedshift",value:function dynamicSecretUpdateRedshift(body){return this.dynamicSecretUpdateRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateSnowflakeWithHttpInfo",value:function dynamicSecretUpdateSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateSnowflake",value:function dynamicSecretUpdateSnowflake(body){return this.dynamicSecretUpdateSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateVenafiWithHttpInfo",value:function dynamicSecretUpdateVenafiWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateVenafi");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-venafi','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateVenafi",value:function dynamicSecretUpdateVenafi(body){return this.dynamicSecretUpdateVenafiWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/Encrypt} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptOutput} and HTTP response - */ - - }, { - key: "encryptWithHttpInfo", - value: function encryptWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling encrypt"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EncryptOutput["default"]; - return this.apiClient.callApi('/encrypt', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"encryptWithHttpInfo",value:function encryptWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling encrypt");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EncryptOutput["default"];return this.apiClient.callApi('/encrypt','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/Encrypt} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptOutput} - */ - - }, { - key: "encrypt", - value: function encrypt(body) { - return this.encryptWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"encrypt",value:function encrypt(body){return this.encryptWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/EncryptGPG} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptGPGOutput} and HTTP response - */ - - }, { - key: "encryptGPGWithHttpInfo", - value: function encryptGPGWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling encryptGPG"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EncryptGPGOutput["default"]; - return this.apiClient.callApi('/encrypt-gpg', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"encryptGPGWithHttpInfo",value:function encryptGPGWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling encryptGPG");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EncryptGPGOutput["default"];return this.apiClient.callApi('/encrypt-gpg','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/EncryptGPG} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptGPGOutput} - */ - - }, { - key: "encryptGPG", - value: function encryptGPG(body) { - return this.encryptGPGWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"encryptGPG",value:function encryptGPG(body){return this.encryptGPGWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/EncryptWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptOutput} and HTTP response - */ - - }, { - key: "encryptWithClassicKeyWithHttpInfo", - value: function encryptWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling encryptWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EncryptOutput["default"]; - return this.apiClient.callApi('/encrypt-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"encryptWithClassicKeyWithHttpInfo",value:function encryptWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling encryptWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EncryptOutput["default"];return this.apiClient.callApi('/encrypt-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/EncryptWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptOutput} - */ - - }, { - key: "encryptWithClassicKey", - value: function encryptWithClassicKey(body) { - return this.encryptWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EsmUpdate} body + */},{key:"encryptWithClassicKey",value:function encryptWithClassicKey(body){return this.encryptWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EsmCreate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmCreateSecretOutput} and HTTP response - */ - - }, { - key: "esmCreateWithHttpInfo", - value: function esmCreateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmCreate"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmCreateSecretOutput["default"]; - return this.apiClient.callApi('/esm-create', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EsmUpdate} body + */},{key:"esmCreateWithHttpInfo",value:function esmCreateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmCreate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmCreateSecretOutput["default"];return this.apiClient.callApi('/esm-create','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EsmCreate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmCreateSecretOutput} - */ - - }, { - key: "esmCreate", - value: function esmCreate(body) { - return this.esmCreateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"esmCreate",value:function esmCreate(body){return this.esmCreateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/EsmDelete} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmDeleteSecretOutput} and HTTP response - */ - - }, { - key: "esmDeleteWithHttpInfo", - value: function esmDeleteWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmDelete"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmDeleteSecretOutput["default"]; - return this.apiClient.callApi('/esm-delete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"esmDeleteWithHttpInfo",value:function esmDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmDeleteSecretOutput["default"];return this.apiClient.callApi('/esm-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/EsmDelete} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmDeleteSecretOutput} - */ - - }, { - key: "esmDelete", - value: function esmDelete(body) { - return this.esmDeleteWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"esmDelete",value:function esmDelete(body){return this.esmDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/EsmGet} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmGetSecretOutput} and HTTP response - */ - - }, { - key: "esmGetWithHttpInfo", - value: function esmGetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmGet"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmGetSecretOutput["default"]; - return this.apiClient.callApi('/esm-get', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"esmGetWithHttpInfo",value:function esmGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmGetSecretOutput["default"];return this.apiClient.callApi('/esm-get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/EsmGet} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmGetSecretOutput} - */ - - }, { - key: "esmGet", - value: function esmGet(body) { - return this.esmGetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"esmGet",value:function esmGet(body){return this.esmGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/EsmList} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmListSecretsOutput} and HTTP response - */ - - }, { - key: "esmListWithHttpInfo", - value: function esmListWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmList"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmListSecretsOutput["default"]; - return this.apiClient.callApi('/esm-list', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"esmListWithHttpInfo",value:function esmListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmListSecretsOutput["default"];return this.apiClient.callApi('/esm-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/EsmList} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmListSecretsOutput} - */ - - }, { - key: "esmList", - value: function esmList(body) { - return this.esmListWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"esmList",value:function esmList(body){return this.esmListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EsmUpdate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmUpdateSecretOutput} and HTTP response - */ - - }, { - key: "esmUpdateWithHttpInfo", - value: function esmUpdateWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _EsmUpdateSecretOutput["default"]; - return this.apiClient.callApi('/esm-update', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"esmUpdateWithHttpInfo",value:function esmUpdateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmUpdate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmUpdateSecretOutput["default"];return this.apiClient.callApi('/esm-update','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EsmUpdate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmUpdateSecretOutput} - */ - - }, { - key: "esmUpdate", - value: function esmUpdate() { - return this.esmUpdateWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"esmUpdate",value:function esmUpdate(body){return this.esmUpdateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/EventAction} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "eventActionWithHttpInfo", - value: function eventActionWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling eventAction"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/event-action', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"eventActionWithHttpInfo",value:function eventActionWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventAction");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/event-action','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/EventAction} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "eventAction", - value: function eventAction(body) { - return this.eventActionWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"eventAction",value:function eventAction(body){return this.eventActionWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateEmailWithHttpInfo",value:function eventForwarderCreateEmailWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateEmail");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-email','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateEmail",value:function eventForwarderCreateEmail(body){return this.eventForwarderCreateEmailWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateServiceNowWithHttpInfo",value:function eventForwarderCreateServiceNowWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateServiceNow");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-servicenow','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateServiceNow",value:function eventForwarderCreateServiceNow(body){return this.eventForwarderCreateServiceNowWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateSlackWithHttpInfo",value:function eventForwarderCreateSlackWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateSlack");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-slack','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateSlack",value:function eventForwarderCreateSlack(body){return this.eventForwarderCreateSlackWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateWebhookWithHttpInfo",value:function eventForwarderCreateWebhookWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateWebhook");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-webhook','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateWebhook",value:function eventForwarderCreateWebhook(body){return this.eventForwarderCreateWebhookWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderDeleteOutput} and HTTP response + */},{key:"eventForwarderDeleteWithHttpInfo",value:function eventForwarderDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderDeleteOutput["default"];return this.apiClient.callApi('/event-forwarder-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderDeleteOutput} + */},{key:"eventForwarderDelete",value:function eventForwarderDelete(body){return this.eventForwarderDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderGetOutput} and HTTP response + */},{key:"eventForwarderGetWithHttpInfo",value:function eventForwarderGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderGetOutput["default"];return this.apiClient.callApi('/event-forwarder-get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderGetOutput} + */},{key:"eventForwarderGet",value:function eventForwarderGet(body){return this.eventForwarderGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateEmailWithHttpInfo",value:function eventForwarderUpdateEmailWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateEmail");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-email','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateEmail",value:function eventForwarderUpdateEmail(body){return this.eventForwarderUpdateEmailWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateServiceNowWithHttpInfo",value:function eventForwarderUpdateServiceNowWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateServiceNow");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-servicenow','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateServiceNow",value:function eventForwarderUpdateServiceNow(body){return this.eventForwarderUpdateServiceNowWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateSlackWithHttpInfo",value:function eventForwarderUpdateSlackWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateSlack");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-slack','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateSlack",value:function eventForwarderUpdateSlack(body){return this.eventForwarderUpdateSlackWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateWebhookWithHttpInfo",value:function eventForwarderUpdateWebhookWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateWebhook");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-webhook','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateWebhook",value:function eventForwarderUpdateWebhook(body){return this.eventForwarderUpdateWebhookWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ExportClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExportClassicKeyOutput} and HTTP response - */ - - }, { - key: "exportClassicKeyWithHttpInfo", - value: function exportClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling exportClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ExportClassicKeyOutput["default"]; - return this.apiClient.callApi('/export-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"exportClassicKeyWithHttpInfo",value:function exportClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling exportClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ExportClassicKeyOutput["default"];return this.apiClient.callApi('/export-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ExportClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExportClassicKeyOutput} - */ - - }, { - key: "exportClassicKey", - value: function exportClassicKey(body) { - return this.exportClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"exportClassicKey",value:function exportClassicKey(body){return this.exportClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response - */ - - }, { - key: "gatewayCreateAllowedAccessWithHttpInfo", - value: function gatewayCreateAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AllowedAccess["default"]; - return this.apiClient.callApi('/gateway-create-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateAllowedAccessWithHttpInfo",value:function gatewayCreateAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllowedAccess["default"];return this.apiClient.callApi('/gateway-create-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} - */ - - }, { - key: "gatewayCreateAllowedAccess", - value: function gatewayCreateAllowedAccess(body) { - return this.gatewayCreateAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateAllowedAccess",value:function gatewayCreateAllowedAccess(body){return this.gatewayCreateAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayCreateK8SAuthConfigWithHttpInfo", - value: function gatewayCreateK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-create-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateK8SAuthConfigWithHttpInfo",value:function gatewayCreateK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-create-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateK8SAuthConfigOutput} - */ - - }, { - key: "gatewayCreateK8SAuthConfig", - value: function gatewayCreateK8SAuthConfig(body) { - return this.gatewayCreateK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateK8SAuthConfig",value:function gatewayCreateK8SAuthConfig(body){return this.gatewayCreateK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationCreateOutput} and HTTP response - */ - - }, { - key: "gatewayCreateMigrationWithHttpInfo", - value: function gatewayCreateMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationCreateOutput["default"]; - return this.apiClient.callApi('/gateway-create-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateMigrationWithHttpInfo",value:function gatewayCreateMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationCreateOutput["default"];return this.apiClient.callApi('/gateway-create-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationCreateOutput} - */ - - }, { - key: "gatewayCreateMigration", - value: function gatewayCreateMigration(body) { - return this.gatewayCreateMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateMigration",value:function gatewayCreateMigration(body){return this.gatewayCreateMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerArtifactory} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerArtifactoryOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerArtifactoryWithHttpInfo", - value: function gatewayCreateProducerArtifactoryWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerArtifactory"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerArtifactoryOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-artifactory', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerArtifactoryWithHttpInfo",value:function gatewayCreateProducerArtifactoryWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerArtifactory");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerArtifactoryOutput["default"];return this.apiClient.callApi('/gateway-create-producer-artifactory','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerArtifactory} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerArtifactoryOutput} - */ - - }, { - key: "gatewayCreateProducerArtifactory", - value: function gatewayCreateProducerArtifactory(body) { - return this.gatewayCreateProducerArtifactoryWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerArtifactory",value:function gatewayCreateProducerArtifactory(body){return this.gatewayCreateProducerArtifactoryWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerAws} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerAwsOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerAwsWithHttpInfo", - value: function gatewayCreateProducerAwsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAws"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerAwsOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-aws', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerAwsWithHttpInfo",value:function gatewayCreateProducerAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerAwsOutput["default"];return this.apiClient.callApi('/gateway-create-producer-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerAws} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerAwsOutput} - */ - - }, { - key: "gatewayCreateProducerAws", - value: function gatewayCreateProducerAws(body) { - return this.gatewayCreateProducerAwsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerAws",value:function gatewayCreateProducerAws(body){return this.gatewayCreateProducerAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerAzure} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerAzureOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerAzureWithHttpInfo", - value: function gatewayCreateProducerAzureWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAzure"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerAzureOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-azure', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerAzureWithHttpInfo",value:function gatewayCreateProducerAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerAzureOutput["default"];return this.apiClient.callApi('/gateway-create-producer-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerAzure} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerAzureOutput} - */ - - }, { - key: "gatewayCreateProducerAzure", - value: function gatewayCreateProducerAzure(body) { - return this.gatewayCreateProducerAzureWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerAzure",value:function gatewayCreateProducerAzure(body){return this.gatewayCreateProducerAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerCassandra} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCassandraOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerCassandraWithHttpInfo", - value: function gatewayCreateProducerCassandraWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerCassandra"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerCassandraOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-cassandra', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerCassandraWithHttpInfo",value:function gatewayCreateProducerCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerCassandraOutput["default"];return this.apiClient.callApi('/gateway-create-producer-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerCassandra} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCassandraOutput} - */ - - }, { - key: "gatewayCreateProducerCassandra", - value: function gatewayCreateProducerCassandra(body) { - return this.gatewayCreateProducerCassandraWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCertificateAutomationOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerCertificateAutomationWithHttpInfo", - value: function gatewayCreateProducerCertificateAutomationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerCertificateAutomation"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerCertificateAutomationOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-certificate-automation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCertificateAutomationOutput} - */ - - }, { - key: "gatewayCreateProducerCertificateAutomation", - value: function gatewayCreateProducerCertificateAutomation(body) { - return this.gatewayCreateProducerCertificateAutomationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerCassandra",value:function gatewayCreateProducerCassandra(body){return this.gatewayCreateProducerCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerChefOutput} and HTTP response + */},{key:"gatewayCreateProducerChefWithHttpInfo",value:function gatewayCreateProducerChefWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerChef");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerChefOutput["default"];return this.apiClient.callApi('/gateway-create-producer-chef','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerChefOutput} + */},{key:"gatewayCreateProducerChef",value:function gatewayCreateProducerChef(body){return this.gatewayCreateProducerChefWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/GatewayCreateProducerCustom} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCustomOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerCustomWithHttpInfo", - value: function gatewayCreateProducerCustomWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerCustomOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-custom', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerCustomWithHttpInfo",value:function gatewayCreateProducerCustomWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerCustomOutput["default"];return this.apiClient.callApi('/gateway-create-producer-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/GatewayCreateProducerCustom} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCustomOutput} - */ - - }, { - key: "gatewayCreateProducerCustom", - value: function gatewayCreateProducerCustom(opts) { - return this.gatewayCreateProducerCustomWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerCustom",value:function gatewayCreateProducerCustom(opts){return this.gatewayCreateProducerCustomWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerDockerhub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerDockerhubOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerDockerhubWithHttpInfo", - value: function gatewayCreateProducerDockerhubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerDockerhub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerDockerhubOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-dockerhub', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerDockerhubWithHttpInfo",value:function gatewayCreateProducerDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerDockerhubOutput["default"];return this.apiClient.callApi('/gateway-create-producer-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerDockerhub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerDockerhubOutput} - */ - - }, { - key: "gatewayCreateProducerDockerhub", - value: function gatewayCreateProducerDockerhub(body) { - return this.gatewayCreateProducerDockerhubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerDockerhub",value:function gatewayCreateProducerDockerhub(body){return this.gatewayCreateProducerDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerEks} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerEksOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerEksWithHttpInfo", - value: function gatewayCreateProducerEksWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerEks"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerEksOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-eks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerEksWithHttpInfo",value:function gatewayCreateProducerEksWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerEks");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerEksOutput["default"];return this.apiClient.callApi('/gateway-create-producer-eks','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerEks} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerEksOutput} - */ - - }, { - key: "gatewayCreateProducerEks", - value: function gatewayCreateProducerEks(body) { - return this.gatewayCreateProducerEksWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerEks",value:function gatewayCreateProducerEks(body){return this.gatewayCreateProducerEksWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerGcp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGcpOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerGcpWithHttpInfo", - value: function gatewayCreateProducerGcpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGcp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerGcpOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-gcp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerGcpWithHttpInfo",value:function gatewayCreateProducerGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerGcpOutput["default"];return this.apiClient.callApi('/gateway-create-producer-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerGcp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGcpOutput} - */ - - }, { - key: "gatewayCreateProducerGcp", - value: function gatewayCreateProducerGcp(body) { - return this.gatewayCreateProducerGcpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerGcp",value:function gatewayCreateProducerGcp(body){return this.gatewayCreateProducerGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerGithub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGithubOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerGithubWithHttpInfo", - value: function gatewayCreateProducerGithubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGithub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerGithubOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-github', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerGithubWithHttpInfo",value:function gatewayCreateProducerGithubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGithub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerGithubOutput["default"];return this.apiClient.callApi('/gateway-create-producer-github','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerGithub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGithubOutput} - */ - - }, { - key: "gatewayCreateProducerGithub", - value: function gatewayCreateProducerGithub(body) { - return this.gatewayCreateProducerGithubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerGithub",value:function gatewayCreateProducerGithub(body){return this.gatewayCreateProducerGithubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerGke} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGkeOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerGkeWithHttpInfo", - value: function gatewayCreateProducerGkeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGke"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerGkeOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-gke', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerGkeWithHttpInfo",value:function gatewayCreateProducerGkeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGke");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerGkeOutput["default"];return this.apiClient.callApi('/gateway-create-producer-gke','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerGke} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGkeOutput} - */ - - }, { - key: "gatewayCreateProducerGke", - value: function gatewayCreateProducerGke(body) { - return this.gatewayCreateProducerGkeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerGke",value:function gatewayCreateProducerGke(body){return this.gatewayCreateProducerGkeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerHanaDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerHanaDbOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerHanaDbWithHttpInfo", - value: function gatewayCreateProducerHanaDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerHanaDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerHanaDbOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-hanadb', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerHanaDbWithHttpInfo",value:function gatewayCreateProducerHanaDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerHanaDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerHanaDbOutput["default"];return this.apiClient.callApi('/gateway-create-producer-hanadb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerHanaDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerHanaDbOutput} - */ - - }, { - key: "gatewayCreateProducerHanaDb", - value: function gatewayCreateProducerHanaDb(body) { - return this.gatewayCreateProducerHanaDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerHanaDb",value:function gatewayCreateProducerHanaDb(body){return this.gatewayCreateProducerHanaDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerLdap} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerLdapOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerLdapWithHttpInfo", - value: function gatewayCreateProducerLdapWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerLdap"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerLdapOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-ldap', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerLdapWithHttpInfo",value:function gatewayCreateProducerLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerLdapOutput["default"];return this.apiClient.callApi('/gateway-create-producer-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerLdap} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerLdapOutput} - */ - - }, { - key: "gatewayCreateProducerLdap", - value: function gatewayCreateProducerLdap(body) { - return this.gatewayCreateProducerLdapWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerLdap",value:function gatewayCreateProducerLdap(body){return this.gatewayCreateProducerLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerMSSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMSSQLOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerMSSQLWithHttpInfo", - value: function gatewayCreateProducerMSSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMSSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerMSSQLOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-mssql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerMSSQLWithHttpInfo",value:function gatewayCreateProducerMSSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMSSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerMSSQLOutput["default"];return this.apiClient.callApi('/gateway-create-producer-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerMSSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMSSQLOutput} - */ - - }, { - key: "gatewayCreateProducerMSSQL", - value: function gatewayCreateProducerMSSQL(body) { - return this.gatewayCreateProducerMSSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerMSSQL",value:function gatewayCreateProducerMSSQL(body){return this.gatewayCreateProducerMSSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerMongo} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMongoOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerMongoWithHttpInfo", - value: function gatewayCreateProducerMongoWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMongo"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerMongoOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-mongo', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerMongoWithHttpInfo",value:function gatewayCreateProducerMongoWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMongo");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerMongoOutput["default"];return this.apiClient.callApi('/gateway-create-producer-mongo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerMongo} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMongoOutput} - */ - - }, { - key: "gatewayCreateProducerMongo", - value: function gatewayCreateProducerMongo(body) { - return this.gatewayCreateProducerMongoWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerMongo",value:function gatewayCreateProducerMongo(body){return this.gatewayCreateProducerMongoWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerMySQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMySQLOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerMySQLWithHttpInfo", - value: function gatewayCreateProducerMySQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMySQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerMySQLOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-mysql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerMySQLWithHttpInfo",value:function gatewayCreateProducerMySQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMySQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerMySQLOutput["default"];return this.apiClient.callApi('/gateway-create-producer-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerMySQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMySQLOutput} - */ - - }, { - key: "gatewayCreateProducerMySQL", - value: function gatewayCreateProducerMySQL(body) { - return this.gatewayCreateProducerMySQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerNativeK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerNativeK8SOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerNativeK8SWithHttpInfo", - value: function gatewayCreateProducerNativeK8SWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerNativeK8S"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerNativeK8SOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-k8s', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerMySQL",value:function gatewayCreateProducerMySQL(body){return this.gatewayCreateProducerMySQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerNativeK8S} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerNativeK8SOutput} and HTTP response + */},{key:"gatewayCreateProducerNativeK8SWithHttpInfo",value:function gatewayCreateProducerNativeK8SWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerNativeK8S");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerNativeK8SOutput["default"];return this.apiClient.callApi('/gateway-create-producer-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerNativeK8S} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerNativeK8SOutput} - */ - - }, { - key: "gatewayCreateProducerNativeK8S", - value: function gatewayCreateProducerNativeK8S(body) { - return this.gatewayCreateProducerNativeK8SWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerNativeK8S",value:function gatewayCreateProducerNativeK8S(body){return this.gatewayCreateProducerNativeK8SWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerOracleDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerOracleDbOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerOracleDbWithHttpInfo", - value: function gatewayCreateProducerOracleDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerOracleDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerOracleDbOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-oracle', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerOracleDbWithHttpInfo",value:function gatewayCreateProducerOracleDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerOracleDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerOracleDbOutput["default"];return this.apiClient.callApi('/gateway-create-producer-oracle','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerOracleDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerOracleDbOutput} - */ - - }, { - key: "gatewayCreateProducerOracleDb", - value: function gatewayCreateProducerOracleDb(body) { - return this.gatewayCreateProducerOracleDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerOracleDb",value:function gatewayCreateProducerOracleDb(body){return this.gatewayCreateProducerOracleDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerPing} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerPingOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerPingWithHttpInfo", - value: function gatewayCreateProducerPingWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPing"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerPingOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-ping', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerPingWithHttpInfo",value:function gatewayCreateProducerPingWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPing");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerPingOutput["default"];return this.apiClient.callApi('/gateway-create-producer-ping','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerPing} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerPingOutput} - */ - - }, { - key: "gatewayCreateProducerPing", - value: function gatewayCreateProducerPing(body) { - return this.gatewayCreateProducerPingWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerPing",value:function gatewayCreateProducerPing(body){return this.gatewayCreateProducerPingWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerPostgreSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerPostgreSQLOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerPostgreSQLWithHttpInfo", - value: function gatewayCreateProducerPostgreSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPostgreSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerPostgreSQLOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-postgresql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerPostgreSQLWithHttpInfo",value:function gatewayCreateProducerPostgreSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPostgreSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerPostgreSQLOutput["default"];return this.apiClient.callApi('/gateway-create-producer-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerPostgreSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerPostgreSQLOutput} - */ - - }, { - key: "gatewayCreateProducerPostgreSQL", - value: function gatewayCreateProducerPostgreSQL(body) { - return this.gatewayCreateProducerPostgreSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerPostgreSQL",value:function gatewayCreateProducerPostgreSQL(body){return this.gatewayCreateProducerPostgreSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerRabbitMQ} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRabbitMQOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRabbitMQWithHttpInfo", - value: function gatewayCreateProducerRabbitMQWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRabbitMQ"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRabbitMQOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-rabbitmq', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerRabbitMQWithHttpInfo",value:function gatewayCreateProducerRabbitMQWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRabbitMQ");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRabbitMQOutput["default"];return this.apiClient.callApi('/gateway-create-producer-rabbitmq','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerRabbitMQ} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRabbitMQOutput} - */ - - }, { - key: "gatewayCreateProducerRabbitMQ", - value: function gatewayCreateProducerRabbitMQ(body) { - return this.gatewayCreateProducerRabbitMQWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerRabbitMQ",value:function gatewayCreateProducerRabbitMQ(body){return this.gatewayCreateProducerRabbitMQWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerRdp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRdpOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRdpWithHttpInfo", - value: function gatewayCreateProducerRdpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRdp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRdpOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-rdp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerRdpWithHttpInfo",value:function gatewayCreateProducerRdpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRdp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRdpOutput["default"];return this.apiClient.callApi('/gateway-create-producer-rdp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerRdp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRdpOutput} - */ - - }, { - key: "gatewayCreateProducerRdp", - value: function gatewayCreateProducerRdp(body) { - return this.gatewayCreateProducerRdpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerRdp",value:function gatewayCreateProducerRdp(body){return this.gatewayCreateProducerRdpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerRedis} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRedisOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRedisWithHttpInfo", - value: function gatewayCreateProducerRedisWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedis"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRedisOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-Redis', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerRedisWithHttpInfo",value:function gatewayCreateProducerRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRedisOutput["default"];return this.apiClient.callApi('/gateway-create-producer-Redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerRedis} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRedisOutput} - */ - - }, { - key: "gatewayCreateProducerRedis", - value: function gatewayCreateProducerRedis(body) { - return this.gatewayCreateProducerRedisWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerRedis",value:function gatewayCreateProducerRedis(body){return this.gatewayCreateProducerRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerRedshift} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRedshiftOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRedshiftWithHttpInfo", - value: function gatewayCreateProducerRedshiftWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedshift"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRedshiftOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-redshift', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerRedshiftWithHttpInfo",value:function gatewayCreateProducerRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRedshiftOutput["default"];return this.apiClient.callApi('/gateway-create-producer-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerRedshift} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRedshiftOutput} - */ - - }, { - key: "gatewayCreateProducerRedshift", - value: function gatewayCreateProducerRedshift(body) { - return this.gatewayCreateProducerRedshiftWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerRedshift",value:function gatewayCreateProducerRedshift(body){return this.gatewayCreateProducerRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayCreateProducerSnowflake} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerSnowflakeOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerSnowflakeWithHttpInfo", - value: function gatewayCreateProducerSnowflakeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerSnowflake"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerSnowflakeOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-snowflake', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayCreateProducerSnowflakeWithHttpInfo",value:function gatewayCreateProducerSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerSnowflakeOutput["default"];return this.apiClient.callApi('/gateway-create-producer-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayCreateProducerSnowflake} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerSnowflakeOutput} - */ - - }, { - key: "gatewayCreateProducerSnowflake", - value: function gatewayCreateProducerSnowflake(body) { - return this.gatewayCreateProducerSnowflakeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayCreateProducerSnowflake",value:function gatewayCreateProducerSnowflake(body){return this.gatewayCreateProducerSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerVenafiOutput} and HTTP response + */},{key:"gatewayCreateProducerVenafiWithHttpInfo",value:function gatewayCreateProducerVenafiWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerVenafi");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerVenafiOutput["default"];return this.apiClient.callApi('/gateway-create-producer-certificate-automation','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerVenafiOutput} + */},{key:"gatewayCreateProducerVenafi",value:function gatewayCreateProducerVenafi(body){return this.gatewayCreateProducerVenafiWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayDeleteAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteAllowedAccessOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteAllowedAccessWithHttpInfo", - value: function gatewayDeleteAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDeleteAllowedAccessOutput["default"]; - return this.apiClient.callApi('/gateway-delete-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayDeleteAllowedAccessWithHttpInfo",value:function gatewayDeleteAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDeleteAllowedAccessOutput["default"];return this.apiClient.callApi('/gateway-delete-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayDeleteAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteAllowedAccessOutput} - */ - - }, { - key: "gatewayDeleteAllowedAccess", - value: function gatewayDeleteAllowedAccess(body) { - return this.gatewayDeleteAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayDeleteAllowedAccess",value:function gatewayDeleteAllowedAccess(body){return this.gatewayDeleteAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayDeleteK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteK8SAuthConfigWithHttpInfo", - value: function gatewayDeleteK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDeleteK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-delete-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayDeleteK8SAuthConfigWithHttpInfo",value:function gatewayDeleteK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDeleteK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-delete-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayDeleteK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteK8SAuthConfigOutput} - */ - - }, { - key: "gatewayDeleteK8SAuthConfig", - value: function gatewayDeleteK8SAuthConfig(body) { - return this.gatewayDeleteK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayDeleteK8SAuthConfig",value:function gatewayDeleteK8SAuthConfig(body){return this.gatewayDeleteK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayDeleteMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationDeleteOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteMigrationWithHttpInfo", - value: function gatewayDeleteMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationDeleteOutput["default"]; - return this.apiClient.callApi('/gateway-delete-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayDeleteMigrationWithHttpInfo",value:function gatewayDeleteMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationDeleteOutput["default"];return this.apiClient.callApi('/gateway-delete-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayDeleteMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationDeleteOutput} - */ - - }, { - key: "gatewayDeleteMigration", - value: function gatewayDeleteMigration(body) { - return this.gatewayDeleteMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayDeleteMigration",value:function gatewayDeleteMigration(body){return this.gatewayDeleteMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayDeleteProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteProducerOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteProducerWithHttpInfo", - value: function gatewayDeleteProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDeleteProducerOutput["default"]; - return this.apiClient.callApi('/gateway-delete-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayDeleteProducerWithHttpInfo",value:function gatewayDeleteProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDeleteProducerOutput["default"];return this.apiClient.callApi('/gateway-delete-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayDeleteProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteProducerOutput} - */ - - }, { - key: "gatewayDeleteProducer", - value: function gatewayDeleteProducer(body) { - return this.gatewayDeleteProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayDeleteProducer",value:function gatewayDeleteProducer(body){return this.gatewayDeleteProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayDownloadCustomerFragments} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDownloadCustomerFragmentsOutput} and HTTP response - */ - - }, { - key: "gatewayDownloadCustomerFragmentsWithHttpInfo", - value: function gatewayDownloadCustomerFragmentsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDownloadCustomerFragments"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDownloadCustomerFragmentsOutput["default"]; - return this.apiClient.callApi('/gateway-download-customer-fragments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayDownloadCustomerFragmentsWithHttpInfo",value:function gatewayDownloadCustomerFragmentsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDownloadCustomerFragments");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDownloadCustomerFragmentsOutput["default"];return this.apiClient.callApi('/gateway-download-customer-fragments','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayDownloadCustomerFragments} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDownloadCustomerFragmentsOutput} - */ - - }, { - key: "gatewayDownloadCustomerFragments", - value: function gatewayDownloadCustomerFragments(body) { - return this.gatewayDownloadCustomerFragmentsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayDownloadCustomerFragments",value:function gatewayDownloadCustomerFragments(body){return this.gatewayDownloadCustomerFragmentsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayGetAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response - */ - - }, { - key: "gatewayGetAllowedAccessWithHttpInfo", - value: function gatewayGetAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AllowedAccess["default"]; - return this.apiClient.callApi('/gateway-get-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayGetAllowedAccessWithHttpInfo",value:function gatewayGetAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllowedAccess["default"];return this.apiClient.callApi('/gateway-get-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayGetAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} - */ - - }, { - key: "gatewayGetAllowedAccess", - value: function gatewayGetAllowedAccess(body) { - return this.gatewayGetAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayGetAllowedAccess",value:function gatewayGetAllowedAccess(body){return this.gatewayGetAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayGetConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AkeylessGatewayConfig} and HTTP response - */ - - }, { - key: "gatewayGetConfigWithHttpInfo", - value: function gatewayGetConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AkeylessGatewayConfig["default"]; - return this.apiClient.callApi('/gateway-get-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayGetConfigWithHttpInfo",value:function gatewayGetConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AkeylessGatewayConfig["default"];return this.apiClient.callApi('/gateway-get-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayGetConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AkeylessGatewayConfig} - */ - - }, { - key: "gatewayGetConfig", - value: function gatewayGetConfig(body) { - return this.gatewayGetConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayGetConfig",value:function gatewayGetConfig(body){return this.gatewayGetConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayGetK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayGetK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayGetK8SAuthConfigWithHttpInfo", - value: function gatewayGetK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayGetK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-get-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayGetK8SAuthConfigWithHttpInfo",value:function gatewayGetK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayGetK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-get-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayGetK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayGetK8SAuthConfigOutput} - */ - - }, { - key: "gatewayGetK8SAuthConfig", - value: function gatewayGetK8SAuthConfig(body) { - return this.gatewayGetK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayGetK8SAuthConfig",value:function gatewayGetK8SAuthConfig(body){return this.gatewayGetK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayGetLdapAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayGetLdapAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayGetLdapAuthConfigWithHttpInfo", - value: function gatewayGetLdapAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetLdapAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayGetLdapAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-get-ldap-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayGetLdapAuthConfigWithHttpInfo",value:function gatewayGetLdapAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetLdapAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayGetLdapAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-get-ldap-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayGetLdapAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayGetLdapAuthConfigOutput} - */ - - }, { - key: "gatewayGetLdapAuthConfig", - value: function gatewayGetLdapAuthConfig(body) { - return this.gatewayGetLdapAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayGetLdapAuthConfig",value:function gatewayGetLdapAuthConfig(body){return this.gatewayGetLdapAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayGetMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationGetOutput} and HTTP response - */ - - }, { - key: "gatewayGetMigrationWithHttpInfo", - value: function gatewayGetMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationGetOutput["default"]; - return this.apiClient.callApi('/gateway-get-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayGetMigrationWithHttpInfo",value:function gatewayGetMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationGetOutput["default"];return this.apiClient.callApi('/gateway-get-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayGetMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationGetOutput} - */ - - }, { - key: "gatewayGetMigration", - value: function gatewayGetMigration(body) { - return this.gatewayGetMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayGetMigration",value:function gatewayGetMigration(body){return this.gatewayGetMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayGetProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DSProducerDetails} and HTTP response - */ - - }, { - key: "gatewayGetProducerWithHttpInfo", - value: function gatewayGetProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DSProducerDetails["default"]; - return this.apiClient.callApi('/gateway-get-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayGetProducerWithHttpInfo",value:function gatewayGetProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DSProducerDetails["default"];return this.apiClient.callApi('/gateway-get-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayGetProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DSProducerDetails} - */ - - }, { - key: "gatewayGetProducer", - value: function gatewayGetProducer(body) { - return this.gatewayGetProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayGetProducer",value:function gatewayGetProducer(body){return this.gatewayGetProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayGetTmpUsers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response - */ - - }, { - key: "gatewayGetTmpUsersWithHttpInfo", - value: function gatewayGetTmpUsersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetTmpUsers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = [_TmpUserData["default"]]; - return this.apiClient.callApi('/gateway-get-producer-tmp-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayGetTmpUsersWithHttpInfo",value:function gatewayGetTmpUsersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetTmpUsers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=[_TmpUserData["default"]];return this.apiClient.callApi('/gateway-get-producer-tmp-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayGetTmpUsers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} - */ - - }, { - key: "gatewayGetTmpUsers", - value: function gatewayGetTmpUsers(body) { - return this.gatewayGetTmpUsersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayGetTmpUsers",value:function gatewayGetTmpUsers(body){return this.gatewayGetTmpUsersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayListMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationListOutput} and HTTP response - */ - - }, { - key: "gatewayListMigrationWithHttpInfo", - value: function gatewayListMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayListMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationListOutput["default"]; - return this.apiClient.callApi('/gateway-list-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayListMigrationWithHttpInfo",value:function gatewayListMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayListMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationListOutput["default"];return this.apiClient.callApi('/gateway-list-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayListMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationListOutput} - */ - - }, { - key: "gatewayListMigration", - value: function gatewayListMigration(body) { - return this.gatewayListMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayListMigration",value:function gatewayListMigration(body){return this.gatewayListMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayListProducers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducersListReplyObj} and HTTP response - */ - - }, { - key: "gatewayListProducersWithHttpInfo", - value: function gatewayListProducersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayListProducers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetProducersListReplyObj["default"]; - return this.apiClient.callApi('/gateway-list-producers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayListProducersWithHttpInfo",value:function gatewayListProducersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayListProducers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetProducersListReplyObj["default"];return this.apiClient.callApi('/gateway-list-producers','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayListProducers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducersListReplyObj} - */ - - }, { - key: "gatewayListProducers", - value: function gatewayListProducers(body) { - return this.gatewayListProducersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayListProducers",value:function gatewayListProducers(body){return this.gatewayListProducersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayListRotatedSecrets} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListItemsOutput} and HTTP response - */ - - }, { - key: "gatewayListRotatedSecretsWithHttpInfo", - value: function gatewayListRotatedSecretsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayListRotatedSecrets"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListItemsOutput["default"]; - return this.apiClient.callApi('/gateway-list-rotated-secrets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayListRotatedSecretsWithHttpInfo",value:function gatewayListRotatedSecretsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayListRotatedSecrets");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListItemsOutput["default"];return this.apiClient.callApi('/gateway-list-rotated-secrets','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayListRotatedSecrets} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListItemsOutput} - */ - - }, { - key: "gatewayListRotatedSecrets", - value: function gatewayListRotatedSecrets(body) { - return this.gatewayListRotatedSecretsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayListRotatedSecrets",value:function gatewayListRotatedSecrets(body){return this.gatewayListRotatedSecretsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/GatewayMigratePersonalItems} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigratePersonalItemsOutput} and HTTP response - */ - - }, { - key: "gatewayMigratePersonalItemsWithHttpInfo", - value: function gatewayMigratePersonalItemsWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigratePersonalItemsOutput["default"]; - return this.apiClient.callApi('/gateway-migrate-personal-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayMigratePersonalItemsWithHttpInfo",value:function gatewayMigratePersonalItemsWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigratePersonalItemsOutput["default"];return this.apiClient.callApi('/gateway-migrate-personal-items','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/GatewayMigratePersonalItems} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigratePersonalItemsOutput} - */ - - }, { - key: "gatewayMigratePersonalItems", - value: function gatewayMigratePersonalItems(opts) { - return this.gatewayMigratePersonalItemsWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayMigratePersonalItems",value:function gatewayMigratePersonalItems(opts){return this.gatewayMigratePersonalItemsWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayRevokeTmpUsers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "gatewayRevokeTmpUsersWithHttpInfo", - value: function gatewayRevokeTmpUsersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayRevokeTmpUsers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/gateway-revoke-producer-tmp-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayRevokeTmpUsersWithHttpInfo",value:function gatewayRevokeTmpUsersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayRevokeTmpUsers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/gateway-revoke-producer-tmp-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayRevokeTmpUsers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "gatewayRevokeTmpUsers", - value: function gatewayRevokeTmpUsers(body) { - return this.gatewayRevokeTmpUsersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayRevokeTmpUsers",value:function gatewayRevokeTmpUsers(body){return this.gatewayRevokeTmpUsersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayStartProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayStartProducerOutput} and HTTP response - */ - - }, { - key: "gatewayStartProducerWithHttpInfo", - value: function gatewayStartProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayStartProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayStartProducerOutput["default"]; - return this.apiClient.callApi('/gateway-start-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayStartProducerWithHttpInfo",value:function gatewayStartProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayStartProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayStartProducerOutput["default"];return this.apiClient.callApi('/gateway-start-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayStartProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayStartProducerOutput} - */ - - }, { - key: "gatewayStartProducer", - value: function gatewayStartProducer(body) { - return this.gatewayStartProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayStartProducer",value:function gatewayStartProducer(body){return this.gatewayStartProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayStatusMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MigrationStatusReplyObj} and HTTP response - */ - - }, { - key: "gatewayStatusMigrationWithHttpInfo", - value: function gatewayStatusMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayStatusMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _MigrationStatusReplyObj["default"]; - return this.apiClient.callApi('/gateway-migration-status', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayStatusMigrationWithHttpInfo",value:function gatewayStatusMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayStatusMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_MigrationStatusReplyObj["default"];return this.apiClient.callApi('/gateway-migration-status','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayStatusMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MigrationStatusReplyObj} - */ - - }, { - key: "gatewayStatusMigration", - value: function gatewayStatusMigration(body) { - return this.gatewayStatusMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayStatusMigration",value:function gatewayStatusMigration(body){return this.gatewayStatusMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayStopProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayStopProducerOutput} and HTTP response - */ - - }, { - key: "gatewayStopProducerWithHttpInfo", - value: function gatewayStopProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayStopProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayStopProducerOutput["default"]; - return this.apiClient.callApi('/gateway-stop-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayStopProducerWithHttpInfo",value:function gatewayStopProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayStopProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayStopProducerOutput["default"];return this.apiClient.callApi('/gateway-stop-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayStopProducer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayStopProducerOutput} - */ - - }, { - key: "gatewayStopProducer", - value: function gatewayStopProducer(body) { - return this.gatewayStopProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayStopProducer",value:function gatewayStopProducer(body){return this.gatewayStopProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewaySyncMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationSyncOutput} and HTTP response - */ - - }, { - key: "gatewaySyncMigrationWithHttpInfo", - value: function gatewaySyncMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewaySyncMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationSyncOutput["default"]; - return this.apiClient.callApi('/gateway-sync-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewaySyncMigrationWithHttpInfo",value:function gatewaySyncMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewaySyncMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationSyncOutput["default"];return this.apiClient.callApi('/gateway-sync-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewaySyncMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationSyncOutput} - */ - - }, { - key: "gatewaySyncMigration", - value: function gatewaySyncMigration(body) { - return this.gatewaySyncMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewaySyncMigration",value:function gatewaySyncMigration(body){return this.gatewaySyncMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response - */ - - }, { - key: "gatewayUpdateAllowedAccessWithHttpInfo", - value: function gatewayUpdateAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AllowedAccess["default"]; - return this.apiClient.callApi('/gateway-update-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateAllowedAccessWithHttpInfo",value:function gatewayUpdateAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllowedAccess["default"];return this.apiClient.callApi('/gateway-update-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateAllowedAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} - */ - - }, { - key: "gatewayUpdateAllowedAccess", - value: function gatewayUpdateAllowedAccess(body) { - return this.gatewayUpdateAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateAllowedAccess",value:function gatewayUpdateAllowedAccess(body){return this.gatewayUpdateAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateItemOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateItemWithHttpInfo", - value: function gatewayUpdateItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateItemOutput["default"]; - return this.apiClient.callApi('/gateway-update-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateItemWithHttpInfo",value:function gatewayUpdateItemWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateItem");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateItemOutput["default"];return this.apiClient.callApi('/gateway-update-item','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateItemOutput} - */ - - }, { - key: "gatewayUpdateItem", - value: function gatewayUpdateItem(body) { - return this.gatewayUpdateItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateItem",value:function gatewayUpdateItem(body){return this.gatewayUpdateItemWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateK8SAuthConfigWithHttpInfo", - value: function gatewayUpdateK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-update-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateK8SAuthConfigWithHttpInfo",value:function gatewayUpdateK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-update-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateK8SAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateK8SAuthConfigOutput} - */ - - }, { - key: "gatewayUpdateK8SAuthConfig", - value: function gatewayUpdateK8SAuthConfig(body) { - return this.gatewayUpdateK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateK8SAuthConfig",value:function gatewayUpdateK8SAuthConfig(body){return this.gatewayUpdateK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateLdapAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateLdapAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateLdapAuthConfigWithHttpInfo", - value: function gatewayUpdateLdapAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateLdapAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateLdapAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-update-ldap-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateLdapAuthConfigWithHttpInfo",value:function gatewayUpdateLdapAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateLdapAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateLdapAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-update-ldap-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateLdapAuthConfig} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateLdapAuthConfigOutput} - */ - - }, { - key: "gatewayUpdateLdapAuthConfig", - value: function gatewayUpdateLdapAuthConfig(body) { - return this.gatewayUpdateLdapAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateLdapAuthConfig",value:function gatewayUpdateLdapAuthConfig(body){return this.gatewayUpdateLdapAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationUpdateOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateMigrationWithHttpInfo", - value: function gatewayUpdateMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationUpdateOutput["default"]; - return this.apiClient.callApi('/gateway-update-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateMigrationWithHttpInfo",value:function gatewayUpdateMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationUpdateOutput["default"];return this.apiClient.callApi('/gateway-update-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateMigration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationUpdateOutput} - */ - - }, { - key: "gatewayUpdateMigration", - value: function gatewayUpdateMigration(body) { - return this.gatewayUpdateMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateMigration",value:function gatewayUpdateMigration(body){return this.gatewayUpdateMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerArtifactory} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerArtifactoryOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerArtifactoryWithHttpInfo", - value: function gatewayUpdateProducerArtifactoryWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerArtifactory"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerArtifactoryOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-artifactory', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerArtifactoryWithHttpInfo",value:function gatewayUpdateProducerArtifactoryWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerArtifactory");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerArtifactoryOutput["default"];return this.apiClient.callApi('/gateway-update-producer-artifactory','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerArtifactory} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerArtifactoryOutput} - */ - - }, { - key: "gatewayUpdateProducerArtifactory", - value: function gatewayUpdateProducerArtifactory(body) { - return this.gatewayUpdateProducerArtifactoryWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerArtifactory",value:function gatewayUpdateProducerArtifactory(body){return this.gatewayUpdateProducerArtifactoryWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerAws} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerAwsOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerAwsWithHttpInfo", - value: function gatewayUpdateProducerAwsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAws"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerAwsOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-aws', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerAwsWithHttpInfo",value:function gatewayUpdateProducerAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerAwsOutput["default"];return this.apiClient.callApi('/gateway-update-producer-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerAws} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerAwsOutput} - */ - - }, { - key: "gatewayUpdateProducerAws", - value: function gatewayUpdateProducerAws(body) { - return this.gatewayUpdateProducerAwsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerAws",value:function gatewayUpdateProducerAws(body){return this.gatewayUpdateProducerAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerAzure} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerAzureOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerAzureWithHttpInfo", - value: function gatewayUpdateProducerAzureWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAzure"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerAzureOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-azure', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerAzureWithHttpInfo",value:function gatewayUpdateProducerAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerAzureOutput["default"];return this.apiClient.callApi('/gateway-update-producer-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerAzure} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerAzureOutput} - */ - - }, { - key: "gatewayUpdateProducerAzure", - value: function gatewayUpdateProducerAzure(body) { - return this.gatewayUpdateProducerAzureWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerAzure",value:function gatewayUpdateProducerAzure(body){return this.gatewayUpdateProducerAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerCassandra} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCassandraOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerCassandraWithHttpInfo", - value: function gatewayUpdateProducerCassandraWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerCassandra"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerCassandraOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-cassandra', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerCassandraWithHttpInfo",value:function gatewayUpdateProducerCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerCassandraOutput["default"];return this.apiClient.callApi('/gateway-update-producer-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerCassandra} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCassandraOutput} - */ - - }, { - key: "gatewayUpdateProducerCassandra", - value: function gatewayUpdateProducerCassandra(body) { - return this.gatewayUpdateProducerCassandraWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCertificateAutomationOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerCertificateAutomationWithHttpInfo", - value: function gatewayUpdateProducerCertificateAutomationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerCertificateAutomation"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerCertificateAutomationOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-certificate-automation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCertificateAutomationOutput} - */ - - }, { - key: "gatewayUpdateProducerCertificateAutomation", - value: function gatewayUpdateProducerCertificateAutomation(body) { - return this.gatewayUpdateProducerCertificateAutomationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerCassandra",value:function gatewayUpdateProducerCassandra(body){return this.gatewayUpdateProducerCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerChefOutput} and HTTP response + */},{key:"gatewayUpdateProducerChefWithHttpInfo",value:function gatewayUpdateProducerChefWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerChef");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerChefOutput["default"];return this.apiClient.callApi('/gateway-update-producer-chef','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerChefOutput} + */},{key:"gatewayUpdateProducerChef",value:function gatewayUpdateProducerChef(body){return this.gatewayUpdateProducerChefWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/GatewayUpdateProducerCustom} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCustomOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerCustomWithHttpInfo", - value: function gatewayUpdateProducerCustomWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerCustomOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-custom', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerCustomWithHttpInfo",value:function gatewayUpdateProducerCustomWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerCustomOutput["default"];return this.apiClient.callApi('/gateway-update-producer-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/GatewayUpdateProducerCustom} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCustomOutput} - */ - - }, { - key: "gatewayUpdateProducerCustom", - value: function gatewayUpdateProducerCustom(opts) { - return this.gatewayUpdateProducerCustomWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerCustom",value:function gatewayUpdateProducerCustom(opts){return this.gatewayUpdateProducerCustomWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerDockerhub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerDockerhubOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerDockerhubWithHttpInfo", - value: function gatewayUpdateProducerDockerhubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerDockerhub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerDockerhubOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-dockerhub', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerDockerhubWithHttpInfo",value:function gatewayUpdateProducerDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerDockerhubOutput["default"];return this.apiClient.callApi('/gateway-update-producer-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerDockerhub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerDockerhubOutput} - */ - - }, { - key: "gatewayUpdateProducerDockerhub", - value: function gatewayUpdateProducerDockerhub(body) { - return this.gatewayUpdateProducerDockerhubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerDockerhub",value:function gatewayUpdateProducerDockerhub(body){return this.gatewayUpdateProducerDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerEks} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerEksOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerEksWithHttpInfo", - value: function gatewayUpdateProducerEksWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerEks"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerEksOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-eks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerEksWithHttpInfo",value:function gatewayUpdateProducerEksWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerEks");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerEksOutput["default"];return this.apiClient.callApi('/gateway-update-producer-eks','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerEks} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerEksOutput} - */ - - }, { - key: "gatewayUpdateProducerEks", - value: function gatewayUpdateProducerEks(body) { - return this.gatewayUpdateProducerEksWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerEks",value:function gatewayUpdateProducerEks(body){return this.gatewayUpdateProducerEksWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerGcp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGcpOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerGcpWithHttpInfo", - value: function gatewayUpdateProducerGcpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGcp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerGcpOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-gcp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerGcpWithHttpInfo",value:function gatewayUpdateProducerGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerGcpOutput["default"];return this.apiClient.callApi('/gateway-update-producer-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerGcp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGcpOutput} - */ - - }, { - key: "gatewayUpdateProducerGcp", - value: function gatewayUpdateProducerGcp(body) { - return this.gatewayUpdateProducerGcpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerGcp",value:function gatewayUpdateProducerGcp(body){return this.gatewayUpdateProducerGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerGithub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGithubOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerGithubWithHttpInfo", - value: function gatewayUpdateProducerGithubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGithub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerGithubOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-github', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerGithubWithHttpInfo",value:function gatewayUpdateProducerGithubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGithub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerGithubOutput["default"];return this.apiClient.callApi('/gateway-update-producer-github','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerGithub} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGithubOutput} - */ - - }, { - key: "gatewayUpdateProducerGithub", - value: function gatewayUpdateProducerGithub(body) { - return this.gatewayUpdateProducerGithubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerGithub",value:function gatewayUpdateProducerGithub(body){return this.gatewayUpdateProducerGithubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerGke} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGkeOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerGkeWithHttpInfo", - value: function gatewayUpdateProducerGkeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGke"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerGkeOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-gke', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerGkeWithHttpInfo",value:function gatewayUpdateProducerGkeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGke");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerGkeOutput["default"];return this.apiClient.callApi('/gateway-update-producer-gke','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerGke} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGkeOutput} - */ - - }, { - key: "gatewayUpdateProducerGke", - value: function gatewayUpdateProducerGke(body) { - return this.gatewayUpdateProducerGkeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerGke",value:function gatewayUpdateProducerGke(body){return this.gatewayUpdateProducerGkeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerHanaDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerHanaDbOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerHanaDbWithHttpInfo", - value: function gatewayUpdateProducerHanaDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerHanaDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerHanaDbOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-hana', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerHanaDbWithHttpInfo",value:function gatewayUpdateProducerHanaDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerHanaDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerHanaDbOutput["default"];return this.apiClient.callApi('/gateway-update-producer-hana','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerHanaDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerHanaDbOutput} - */ - - }, { - key: "gatewayUpdateProducerHanaDb", - value: function gatewayUpdateProducerHanaDb(body) { - return this.gatewayUpdateProducerHanaDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerHanaDb",value:function gatewayUpdateProducerHanaDb(body){return this.gatewayUpdateProducerHanaDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerLdap} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerLdapOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerLdapWithHttpInfo", - value: function gatewayUpdateProducerLdapWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerLdap"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerLdapOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-ldap', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerLdapWithHttpInfo",value:function gatewayUpdateProducerLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerLdapOutput["default"];return this.apiClient.callApi('/gateway-update-producer-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerLdap} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerLdapOutput} - */ - - }, { - key: "gatewayUpdateProducerLdap", - value: function gatewayUpdateProducerLdap(body) { - return this.gatewayUpdateProducerLdapWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerLdap",value:function gatewayUpdateProducerLdap(body){return this.gatewayUpdateProducerLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerMSSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMSSQLOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerMSSQLWithHttpInfo", - value: function gatewayUpdateProducerMSSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMSSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerMSSQLOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-mssql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerMSSQLWithHttpInfo",value:function gatewayUpdateProducerMSSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMSSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerMSSQLOutput["default"];return this.apiClient.callApi('/gateway-update-producer-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerMSSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMSSQLOutput} - */ - - }, { - key: "gatewayUpdateProducerMSSQL", - value: function gatewayUpdateProducerMSSQL(body) { - return this.gatewayUpdateProducerMSSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerMSSQL",value:function gatewayUpdateProducerMSSQL(body){return this.gatewayUpdateProducerMSSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerMongo} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMongoOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerMongoWithHttpInfo", - value: function gatewayUpdateProducerMongoWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMongo"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerMongoOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-mongo', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerMongoWithHttpInfo",value:function gatewayUpdateProducerMongoWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMongo");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerMongoOutput["default"];return this.apiClient.callApi('/gateway-update-producer-mongo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerMongo} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMongoOutput} - */ - - }, { - key: "gatewayUpdateProducerMongo", - value: function gatewayUpdateProducerMongo(body) { - return this.gatewayUpdateProducerMongoWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerMongo",value:function gatewayUpdateProducerMongo(body){return this.gatewayUpdateProducerMongoWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerMySQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMySQLOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerMySQLWithHttpInfo", - value: function gatewayUpdateProducerMySQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMySQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerMySQLOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-mysql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerMySQLWithHttpInfo",value:function gatewayUpdateProducerMySQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMySQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerMySQLOutput["default"];return this.apiClient.callApi('/gateway-update-producer-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerMySQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMySQLOutput} - */ - - }, { - key: "gatewayUpdateProducerMySQL", - value: function gatewayUpdateProducerMySQL(body) { - return this.gatewayUpdateProducerMySQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerMySQL",value:function gatewayUpdateProducerMySQL(body){return this.gatewayUpdateProducerMySQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerNativeK8S} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerNativeK8SOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerNativeK8SWithHttpInfo", - value: function gatewayUpdateProducerNativeK8SWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerNativeK8S"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerNativeK8SOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-k8s', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerNativeK8SWithHttpInfo",value:function gatewayUpdateProducerNativeK8SWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerNativeK8S");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerNativeK8SOutput["default"];return this.apiClient.callApi('/gateway-update-producer-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerNativeK8S} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerNativeK8SOutput} - */ - - }, { - key: "gatewayUpdateProducerNativeK8S", - value: function gatewayUpdateProducerNativeK8S(body) { - return this.gatewayUpdateProducerNativeK8SWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerNativeK8S",value:function gatewayUpdateProducerNativeK8S(body){return this.gatewayUpdateProducerNativeK8SWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerOracleDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerOracleDbOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerOracleDbWithHttpInfo", - value: function gatewayUpdateProducerOracleDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerOracleDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerOracleDbOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-oracle', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerOracleDbWithHttpInfo",value:function gatewayUpdateProducerOracleDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerOracleDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerOracleDbOutput["default"];return this.apiClient.callApi('/gateway-update-producer-oracle','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerOracleDb} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerOracleDbOutput} - */ - - }, { - key: "gatewayUpdateProducerOracleDb", - value: function gatewayUpdateProducerOracleDb(body) { - return this.gatewayUpdateProducerOracleDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerOracleDb",value:function gatewayUpdateProducerOracleDb(body){return this.gatewayUpdateProducerOracleDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerPing} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerPingOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerPingWithHttpInfo", - value: function gatewayUpdateProducerPingWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPing"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerPingOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-ping', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerPingWithHttpInfo",value:function gatewayUpdateProducerPingWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPing");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerPingOutput["default"];return this.apiClient.callApi('/gateway-update-producer-ping','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerPing} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerPingOutput} - */ - - }, { - key: "gatewayUpdateProducerPing", - value: function gatewayUpdateProducerPing(body) { - return this.gatewayUpdateProducerPingWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerPing",value:function gatewayUpdateProducerPing(body){return this.gatewayUpdateProducerPingWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerPostgreSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerPostgreSQLOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerPostgreSQLWithHttpInfo", - value: function gatewayUpdateProducerPostgreSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPostgreSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerPostgreSQLOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-postgresql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerPostgreSQLWithHttpInfo",value:function gatewayUpdateProducerPostgreSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPostgreSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerPostgreSQLOutput["default"];return this.apiClient.callApi('/gateway-update-producer-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerPostgreSQL} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerPostgreSQLOutput} - */ - - }, { - key: "gatewayUpdateProducerPostgreSQL", - value: function gatewayUpdateProducerPostgreSQL(body) { - return this.gatewayUpdateProducerPostgreSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerPostgreSQL",value:function gatewayUpdateProducerPostgreSQL(body){return this.gatewayUpdateProducerPostgreSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerRabbitMQ} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRabbitMQOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRabbitMQWithHttpInfo", - value: function gatewayUpdateProducerRabbitMQWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRabbitMQ"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRabbitMQOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-rabbitmq', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerRabbitMQWithHttpInfo",value:function gatewayUpdateProducerRabbitMQWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRabbitMQ");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRabbitMQOutput["default"];return this.apiClient.callApi('/gateway-update-producer-rabbitmq','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerRabbitMQ} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRabbitMQOutput} - */ - - }, { - key: "gatewayUpdateProducerRabbitMQ", - value: function gatewayUpdateProducerRabbitMQ(body) { - return this.gatewayUpdateProducerRabbitMQWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerRabbitMQ",value:function gatewayUpdateProducerRabbitMQ(body){return this.gatewayUpdateProducerRabbitMQWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerRdp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRdpOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRdpWithHttpInfo", - value: function gatewayUpdateProducerRdpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRdp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRdpOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-rdp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerRdpWithHttpInfo",value:function gatewayUpdateProducerRdpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRdp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRdpOutput["default"];return this.apiClient.callApi('/gateway-update-producer-rdp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerRdp} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRdpOutput} - */ - - }, { - key: "gatewayUpdateProducerRdp", - value: function gatewayUpdateProducerRdp(body) { - return this.gatewayUpdateProducerRdpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerRdp",value:function gatewayUpdateProducerRdp(body){return this.gatewayUpdateProducerRdpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerRedis} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRedisOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRedisWithHttpInfo", - value: function gatewayUpdateProducerRedisWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedis"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRedisOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-redis', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerRedisWithHttpInfo",value:function gatewayUpdateProducerRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRedisOutput["default"];return this.apiClient.callApi('/gateway-update-producer-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerRedis} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRedisOutput} - */ - - }, { - key: "gatewayUpdateProducerRedis", - value: function gatewayUpdateProducerRedis(body) { - return this.gatewayUpdateProducerRedisWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerRedis",value:function gatewayUpdateProducerRedis(body){return this.gatewayUpdateProducerRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerRedshift} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRedshiftOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRedshiftWithHttpInfo", - value: function gatewayUpdateProducerRedshiftWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedshift"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRedshiftOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-redshift', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerRedshiftWithHttpInfo",value:function gatewayUpdateProducerRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRedshiftOutput["default"];return this.apiClient.callApi('/gateway-update-producer-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerRedshift} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRedshiftOutput} - */ - - }, { - key: "gatewayUpdateProducerRedshift", - value: function gatewayUpdateProducerRedshift(body) { - return this.gatewayUpdateProducerRedshiftWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerRedshift",value:function gatewayUpdateProducerRedshift(body){return this.gatewayUpdateProducerRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateProducerSnowflake} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerSnowflakeOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerSnowflakeWithHttpInfo", - value: function gatewayUpdateProducerSnowflakeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerSnowflake"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerSnowflakeOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-snowflake', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateProducerSnowflakeWithHttpInfo",value:function gatewayUpdateProducerSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerSnowflakeOutput["default"];return this.apiClient.callApi('/gateway-update-producer-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateProducerSnowflake} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerSnowflakeOutput} - */ - - }, { - key: "gatewayUpdateProducerSnowflake", - value: function gatewayUpdateProducerSnowflake(body) { - return this.gatewayUpdateProducerSnowflakeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateProducerSnowflake",value:function gatewayUpdateProducerSnowflake(body){return this.gatewayUpdateProducerSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerVenafiOutput} and HTTP response + */},{key:"gatewayUpdateProducerVenafiWithHttpInfo",value:function gatewayUpdateProducerVenafiWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerVenafi");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerVenafiOutput["default"];return this.apiClient.callApi('/gateway-update-producer-certificate-automation','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerVenafiOutput} + */},{key:"gatewayUpdateProducerVenafi",value:function gatewayUpdateProducerVenafi(body){return this.gatewayUpdateProducerVenafiWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateTlsCert} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateTlsCertOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateTlsCertWithHttpInfo", - value: function gatewayUpdateTlsCertWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTlsCert"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateTlsCertOutput["default"]; - return this.apiClient.callApi('/gateway-update-tls-cert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateTlsCertWithHttpInfo",value:function gatewayUpdateTlsCertWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTlsCert");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateTlsCertOutput["default"];return this.apiClient.callApi('/gateway-update-tls-cert','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateTlsCert} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateTlsCertOutput} - */ - - }, { - key: "gatewayUpdateTlsCert", - value: function gatewayUpdateTlsCert(body) { - return this.gatewayUpdateTlsCertWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateTlsCert",value:function gatewayUpdateTlsCert(body){return this.gatewayUpdateTlsCertWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GatewayUpdateTmpUsers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "gatewayUpdateTmpUsersWithHttpInfo", - value: function gatewayUpdateTmpUsersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTmpUsers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/gateway-update-producer-tmp-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"gatewayUpdateTmpUsersWithHttpInfo",value:function gatewayUpdateTmpUsersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTmpUsers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/gateway-update-producer-tmp-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GatewayUpdateTmpUsers} body * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "gatewayUpdateTmpUsers", - value: function gatewayUpdateTmpUsers(body) { - return this.gatewayUpdateTmpUsersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"gatewayUpdateTmpUsers",value:function gatewayUpdateTmpUsers(body){return this.gatewayUpdateTmpUsersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GenerateCsr} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GenerateCsrOutput} and HTTP response - */ - - }, { - key: "generateCsrWithHttpInfo", - value: function generateCsrWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling generateCsr"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GenerateCsrOutput["default"]; - return this.apiClient.callApi('/generate-csr', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"generateCsrWithHttpInfo",value:function generateCsrWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling generateCsr");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GenerateCsrOutput["default"];return this.apiClient.callApi('/generate-csr','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GenerateCsr} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateCsrOutput} - */ - - }, { - key: "generateCsr", - value: function generateCsr(body) { - return this.generateCsrWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"generateCsr",value:function generateCsr(body){return this.generateCsrWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getAccountLogoWithHttpInfo", - value: function getAccountLogoWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/get-account-logo', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getAccountLogoWithHttpInfo",value:function getAccountLogoWithHttpInfo(){var postBody=null;var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=[];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/get-account-logo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getAccountLogo", - value: function getAccountLogo() { - return this.getAccountLogoWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getAccountLogo",value:function getAccountLogo(){return this.getAccountLogoWithHttpInfo().then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetAccountSettings} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAccountSettingsCommandOutput} and HTTP response - */ - - }, { - key: "getAccountSettingsWithHttpInfo", - value: function getAccountSettingsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getAccountSettings"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetAccountSettingsCommandOutput["default"]; - return this.apiClient.callApi('/get-account-settings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getAccountSettingsWithHttpInfo",value:function getAccountSettingsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getAccountSettings");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetAccountSettingsCommandOutput["default"];return this.apiClient.callApi('/get-account-settings','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetAccountSettings} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAccountSettingsCommandOutput} - */ - - }, { - key: "getAccountSettings", - value: function getAccountSettings(body) { - return this.getAccountSettingsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getAccountSettings",value:function getAccountSettings(body){return this.getAccountSettingsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetAnalyticsData} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllAnalyticsData} and HTTP response + */},{key:"getAnalyticsDataWithHttpInfo",value:function getAnalyticsDataWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getAnalyticsData");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllAnalyticsData["default"];return this.apiClient.callApi('/get-analytics-data','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetAnalyticsData} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllAnalyticsData} + */},{key:"getAnalyticsData",value:function getAnalyticsData(body){return this.getAnalyticsDataWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetAuthMethod} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthMethod} and HTTP response - */ - - }, { - key: "getAuthMethodWithHttpInfo", - value: function getAuthMethodWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getAuthMethod"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AuthMethod["default"]; - return this.apiClient.callApi('/get-auth-method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getAuthMethodWithHttpInfo",value:function getAuthMethodWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getAuthMethod");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AuthMethod["default"];return this.apiClient.callApi('/get-auth-method','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetAuthMethod} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthMethod} - */ - - }, { - key: "getAuthMethod", - value: function getAuthMethod(body) { - return this.getAuthMethodWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getAuthMethod",value:function getAuthMethod(body){return this.getAuthMethodWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetCertificateValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCertificateValueOutput} and HTTP response - */ - - }, { - key: "getCertificateValueWithHttpInfo", - value: function getCertificateValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getCertificateValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetCertificateValueOutput["default"]; - return this.apiClient.callApi('/get-certificate-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getCertificateValueWithHttpInfo",value:function getCertificateValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getCertificateValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetCertificateValueOutput["default"];return this.apiClient.callApi('/get-certificate-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetCertificateValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCertificateValueOutput} - */ - - }, { - key: "getCertificateValue", - value: function getCertificateValue(body) { - return this.getCertificateValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getCertificateValue",value:function getCertificateValue(body){return this.getCertificateValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetDynamicSecretValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getDynamicSecretValueWithHttpInfo", - value: function getDynamicSecretValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getDynamicSecretValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/get-dynamic-secret-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getDynamicSecretValueWithHttpInfo",value:function getDynamicSecretValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getDynamicSecretValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/get-dynamic-secret-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetDynamicSecretValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getDynamicSecretValue", - value: function getDynamicSecretValue(body) { - return this.getDynamicSecretValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getDynamicSecretValue",value:function getDynamicSecretValue(body){return this.getDynamicSecretValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetEventForwarder} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventForwarderOutput} and HTTP response - */ - - }, { - key: "getEventForwarderWithHttpInfo", - value: function getEventForwarderWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getEventForwarder"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetEventForwarderOutput["default"]; - return this.apiClient.callApi('/get-event-forwarder', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getEventForwarderWithHttpInfo",value:function getEventForwarderWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getEventForwarder");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetEventForwarderOutput["default"];return this.apiClient.callApi('/get-event-forwarder','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetEventForwarder} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventForwarderOutput} - */ - - }, { - key: "getEventForwarder", - value: function getEventForwarder(body) { - return this.getEventForwarderWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getEventForwarder",value:function getEventForwarder(body){return this.getEventForwarderWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetGroupOutput} and HTTP response + */},{key:"getGroupWithHttpInfo",value:function getGroupWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getGroup");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetGroupOutput["default"];return this.apiClient.callApi('/get-group','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetGroupOutput} + */},{key:"getGroup",value:function getGroup(body){return this.getGroupWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetKubeExecCreds} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetKubeExecCredsOutput} and HTTP response - */ - - }, { - key: "getKubeExecCredsWithHttpInfo", - value: function getKubeExecCredsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getKubeExecCreds"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetKubeExecCredsOutput["default"]; - return this.apiClient.callApi('/get-kube-exec-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getKubeExecCredsWithHttpInfo",value:function getKubeExecCredsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getKubeExecCreds");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetKubeExecCredsOutput["default"];return this.apiClient.callApi('/get-kube-exec-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetKubeExecCreds} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetKubeExecCredsOutput} - */ - - }, { - key: "getKubeExecCreds", - value: function getKubeExecCreds(body) { - return this.getKubeExecCredsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getKubeExecCreds",value:function getKubeExecCreds(body){return this.getKubeExecCredsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetLastUserEventStatus} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetUserEventStatusOutput} and HTTP response + */},{key:"getLastUserEventStatusWithHttpInfo",value:function getLastUserEventStatusWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getLastUserEventStatus");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetUserEventStatusOutput["default"];return this.apiClient.callApi('/user-event-last-status','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetLastUserEventStatus} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetUserEventStatusOutput} + */},{key:"getLastUserEventStatus",value:function getLastUserEventStatus(body){return this.getLastUserEventStatusWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetPKICertificate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPKICertificateOutput} and HTTP response - */ - - }, { - key: "getPKICertificateWithHttpInfo", - value: function getPKICertificateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getPKICertificate"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetPKICertificateOutput["default"]; - return this.apiClient.callApi('/get-pki-certificate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getPKICertificateWithHttpInfo",value:function getPKICertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getPKICertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetPKICertificateOutput["default"];return this.apiClient.callApi('/get-pki-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetPKICertificate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPKICertificateOutput} - */ - - }, { - key: "getPKICertificate", - value: function getPKICertificate(body) { - return this.getPKICertificateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getPKICertificate",value:function getPKICertificate(body){return this.getPKICertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetRSAPublic} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRSAPublicOutput} and HTTP response - */ - - }, { - key: "getRSAPublicWithHttpInfo", - value: function getRSAPublicWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getRSAPublic"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetRSAPublicOutput["default"]; - return this.apiClient.callApi('/get-rsa-public', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getRSAPublicWithHttpInfo",value:function getRSAPublicWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getRSAPublic");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetRSAPublicOutput["default"];return this.apiClient.callApi('/get-rsa-public','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetRSAPublic} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRSAPublicOutput} - */ - - }, { - key: "getRSAPublic", - value: function getRSAPublic(body) { - return this.getRSAPublicWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getRSAPublic",value:function getRSAPublic(body){return this.getRSAPublicWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetRole} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Role} and HTTP response - */ - - }, { - key: "getRoleWithHttpInfo", - value: function getRoleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getRole"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _Role["default"]; - return this.apiClient.callApi('/get-role', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getRoleWithHttpInfo",value:function getRoleWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getRole");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_Role["default"];return this.apiClient.callApi('/get-role','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetRole} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Role} - */ - - }, { - key: "getRole", - value: function getRole(body) { - return this.getRoleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getRole",value:function getRole(body){return this.getRoleWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetRotatedSecretValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getRotatedSecretValueWithHttpInfo", - value: function getRotatedSecretValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getRotatedSecretValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': Object - }; - return this.apiClient.callApi('/get-rotated-secret-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getRotatedSecretValueWithHttpInfo",value:function getRotatedSecretValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getRotatedSecretValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':Object};return this.apiClient.callApi('/get-rotated-secret-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetRotatedSecretValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getRotatedSecretValue", - value: function getRotatedSecretValue(body) { - return this.getRotatedSecretValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getRotatedSecretValue",value:function getRotatedSecretValue(body){return this.getRotatedSecretValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetSSHCertificate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSSHCertificateOutput} and HTTP response - */ - - }, { - key: "getSSHCertificateWithHttpInfo", - value: function getSSHCertificateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getSSHCertificate"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetSSHCertificateOutput["default"]; - return this.apiClient.callApi('/get-ssh-certificate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getSSHCertificateWithHttpInfo",value:function getSSHCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getSSHCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetSSHCertificateOutput["default"];return this.apiClient.callApi('/get-ssh-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetSSHCertificate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSSHCertificateOutput} - */ - - }, { - key: "getSSHCertificate", - value: function getSSHCertificate(body) { - return this.getSSHCertificateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getSSHCertificate",value:function getSSHCertificate(body){return this.getSSHCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetSecretValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getSecretValueWithHttpInfo", - value: function getSecretValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getSecretValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/get-secret-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getSecretValueWithHttpInfo",value:function getSecretValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getSecretValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/get-secret-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetSecretValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getSecretValue", - value: function getSecretValue(body) { - return this.getSecretValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getSecretValue",value:function getSecretValue(body){return this.getSecretValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetTags} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response - */ - - }, { - key: "getTagsWithHttpInfo", - value: function getTagsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getTags"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = ['String']; - return this.apiClient.callApi('/get-tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getTagsWithHttpInfo",value:function getTagsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getTags");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=['String'];return this.apiClient.callApi('/get-tags','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetTags} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} - */ - - }, { - key: "getTags", - value: function getTags(body) { - return this.getTagsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getTags",value:function getTags(body){return this.getTagsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Target} and HTTP response - */ - - }, { - key: "getTargetWithHttpInfo", - value: function getTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _Target["default"]; - return this.apiClient.callApi('/get-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getTargetWithHttpInfo",value:function getTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_Target["default"];return this.apiClient.callApi('/get-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Target} - */ - - }, { - key: "getTarget", - value: function getTarget(body) { - return this.getTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getTarget",value:function getTarget(body){return this.getTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/GetTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTargetDetailsOutput} and HTTP response - */ - - }, { - key: "getTargetDetailsWithHttpInfo", - value: function getTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetTargetDetailsOutput["default"]; - return this.apiClient.callApi('/get-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"getTargetDetailsWithHttpInfo",value:function getTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetTargetDetailsOutput["default"];return this.apiClient.callApi('/get-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/GetTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTargetDetailsOutput} - */ - - }, { - key: "getTargetDetails", - value: function getTargetDetails(body) { - return this.getTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"getTargetDetails",value:function getTargetDetails(body){return this.getTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/Hmac} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HmacOutput} and HTTP response - */ - - }, { - key: "hmacWithHttpInfo", - value: function hmacWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling hmac"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _HmacOutput["default"]; - return this.apiClient.callApi('/hmac', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"hmacWithHttpInfo",value:function hmacWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling hmac");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_HmacOutput["default"];return this.apiClient.callApi('/hmac','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/Hmac} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HmacOutput} - */ - - }, { - key: "hmac", - value: function hmac(body) { - return this.hmacWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"hmac",value:function hmac(body){return this.hmacWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ImportPasswords} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ImportPasswordsOutput} and HTTP response - */ - - }, { - key: "importPasswordsWithHttpInfo", - value: function importPasswordsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling importPasswords"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ImportPasswordsOutput["default"]; - return this.apiClient.callApi('/import-passwords', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"importPasswordsWithHttpInfo",value:function importPasswordsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling importPasswords");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ImportPasswordsOutput["default"];return this.apiClient.callApi('/import-passwords','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ImportPasswords} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImportPasswordsOutput} - */ - - }, { - key: "importPasswords", - value: function importPasswords(body) { - return this.importPasswordsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"importPasswords",value:function importPasswords(body){return this.importPasswordsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipClientDeleteRule} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientUpdateResponse} and HTTP response - */ - - }, { - key: "kmipClientDeleteRuleWithHttpInfo", - value: function kmipClientDeleteRuleWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientUpdateResponse["default"]; - return this.apiClient.callApi('/kmip-client-delete-rule', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipClientDeleteRuleWithHttpInfo",value:function kmipClientDeleteRuleWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientUpdateResponse["default"];return this.apiClient.callApi('/kmip-client-delete-rule','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipClientDeleteRule} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientUpdateResponse} - */ - - }, { - key: "kmipClientDeleteRule", - value: function kmipClientDeleteRule(opts) { - return this.kmipClientDeleteRuleWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipClientDeleteRule",value:function kmipClientDeleteRule(opts){return this.kmipClientDeleteRuleWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipClientSetRule} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientUpdateResponse} and HTTP response - */ - - }, { - key: "kmipClientSetRuleWithHttpInfo", - value: function kmipClientSetRuleWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientUpdateResponse["default"]; - return this.apiClient.callApi('/kmip-client-set-rule', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipClientSetRuleWithHttpInfo",value:function kmipClientSetRuleWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientUpdateResponse["default"];return this.apiClient.callApi('/kmip-client-set-rule','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipClientSetRule} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientUpdateResponse} - */ - - }, { - key: "kmipClientSetRule", - value: function kmipClientSetRule(opts) { - return this.kmipClientSetRuleWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipClientSetRule",value:function kmipClientSetRule(opts){return this.kmipClientSetRuleWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipCreateClient} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipCreateClientOutput} and HTTP response - */ - - }, { - key: "kmipCreateClientWithHttpInfo", - value: function kmipCreateClientWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipCreateClientOutput["default"]; - return this.apiClient.callApi('/kmip-create-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipCreateClientWithHttpInfo",value:function kmipCreateClientWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipCreateClientOutput["default"];return this.apiClient.callApi('/kmip-create-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipCreateClient} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipCreateClientOutput} - */ - - }, { - key: "kmipCreateClient", - value: function kmipCreateClient(opts) { - return this.kmipCreateClientWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipCreateClient",value:function kmipCreateClient(opts){return this.kmipCreateClientWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDeleteClient} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "kmipDeleteClientWithHttpInfo", - value: function kmipDeleteClientWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/kmip-delete-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipDeleteClientWithHttpInfo",value:function kmipDeleteClientWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/kmip-delete-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDeleteClient} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "kmipDeleteClient", - value: function kmipDeleteClient(opts) { - return this.kmipDeleteClientWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipDeleteClient",value:function kmipDeleteClient(opts){return this.kmipDeleteClientWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDeleteServer} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "kmipDeleteServerWithHttpInfo", - value: function kmipDeleteServerWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/kmip-delete-environment', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipDeleteServerWithHttpInfo",value:function kmipDeleteServerWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/kmip-delete-environment','DELETE',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDeleteServer} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "kmipDeleteServer", - value: function kmipDeleteServer(opts) { - return this.kmipDeleteServerWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipDeleteServer",value:function kmipDeleteServer(opts){return this.kmipDeleteServerWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDescribeClient} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientGetResponse} and HTTP response - */ - - }, { - key: "kmipDescribeClientWithHttpInfo", - value: function kmipDescribeClientWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientGetResponse["default"]; - return this.apiClient.callApi('/kmip-get-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipDescribeClientWithHttpInfo",value:function kmipDescribeClientWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientGetResponse["default"];return this.apiClient.callApi('/kmip-get-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDescribeClient} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientGetResponse} - */ - - }, { - key: "kmipDescribeClient", - value: function kmipDescribeClient(opts) { - return this.kmipDescribeClientWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipDescribeClient",value:function kmipDescribeClient(opts){return this.kmipDescribeClientWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDescribeServer} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipDescribeServerOutput} and HTTP response - */ - - }, { - key: "kmipDescribeServerWithHttpInfo", - value: function kmipDescribeServerWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipDescribeServerOutput["default"]; - return this.apiClient.callApi('/kmip-get-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipDescribeServerWithHttpInfo",value:function kmipDescribeServerWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipDescribeServerOutput["default"];return this.apiClient.callApi('/kmip-get-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipDescribeServer} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipDescribeServerOutput} - */ - - }, { - key: "kmipDescribeServer", - value: function kmipDescribeServer(opts) { - return this.kmipDescribeServerWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipDescribeServer",value:function kmipDescribeServer(opts){return this.kmipDescribeServerWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipListClients} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientListResponse} and HTTP response - */ - - }, { - key: "kmipListClientsWithHttpInfo", - value: function kmipListClientsWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientListResponse["default"]; - return this.apiClient.callApi('/kmip-list-clients', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipListClientsWithHttpInfo",value:function kmipListClientsWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientListResponse["default"];return this.apiClient.callApi('/kmip-list-clients','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipListClients} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientListResponse} - */ - - }, { - key: "kmipListClients", - value: function kmipListClients(opts) { - return this.kmipListClientsWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipListClients",value:function kmipListClients(opts){return this.kmipListClientsWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipMoveServer} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipMoveServerOutput} and HTTP response - */ - - }, { - key: "kmipMoveServerWithHttpInfo", - value: function kmipMoveServerWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipMoveServerOutput["default"]; - return this.apiClient.callApi('/kmip-move-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipMoveServerWithHttpInfo",value:function kmipMoveServerWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipMoveServerOutput["default"];return this.apiClient.callApi('/kmip-move-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipMoveServer} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipMoveServerOutput} - */ - - }, { - key: "kmipMoveServer", - value: function kmipMoveServer(opts) { - return this.kmipMoveServerWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipMoveServer",value:function kmipMoveServer(opts){return this.kmipMoveServerWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipRenewClientCertificate} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipRenewClientCertificateOutput} and HTTP response - */ - - }, { - key: "kmipRenewClientCertificateWithHttpInfo", - value: function kmipRenewClientCertificateWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipRenewClientCertificateOutput["default"]; - return this.apiClient.callApi('/kmip-renew-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipRenewClientCertificateWithHttpInfo",value:function kmipRenewClientCertificateWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipRenewClientCertificateOutput["default"];return this.apiClient.callApi('/kmip-renew-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipRenewClientCertificate} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipRenewClientCertificateOutput} - */ - - }, { - key: "kmipRenewClientCertificate", - value: function kmipRenewClientCertificate(opts) { - return this.kmipRenewClientCertificateWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipRenewClientCertificate",value:function kmipRenewClientCertificate(opts){return this.kmipRenewClientCertificateWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipRenewServerCertificate} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipRenewServerCertificateOutput} and HTTP response - */ - - }, { - key: "kmipRenewServerCertificateWithHttpInfo", - value: function kmipRenewServerCertificateWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipRenewServerCertificateOutput["default"]; - return this.apiClient.callApi('/kmip-renew-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipRenewServerCertificateWithHttpInfo",value:function kmipRenewServerCertificateWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipRenewServerCertificateOutput["default"];return this.apiClient.callApi('/kmip-renew-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipRenewServerCertificate} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipRenewServerCertificateOutput} - */ - - }, { - key: "kmipRenewServerCertificate", - value: function kmipRenewServerCertificate(opts) { - return this.kmipRenewServerCertificateWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipRenewServerCertificate",value:function kmipRenewServerCertificate(opts){return this.kmipRenewServerCertificateWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipServerSetup} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPEnvironmentCreateResponse} and HTTP response - */ - - }, { - key: "kmipServerSetupWithHttpInfo", - value: function kmipServerSetupWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPEnvironmentCreateResponse["default"]; - return this.apiClient.callApi('/kmip-create-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipServerSetupWithHttpInfo",value:function kmipServerSetupWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPEnvironmentCreateResponse["default"];return this.apiClient.callApi('/kmip-create-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipServerSetup} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPEnvironmentCreateResponse} - */ - - }, { - key: "kmipServerSetup", - value: function kmipServerSetup(opts) { - return this.kmipServerSetupWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipServerSetup",value:function kmipServerSetup(opts){return this.kmipServerSetupWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/KmipSetServerState} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipSetServerStateOutput} and HTTP response - */ - - }, { - key: "kmipSetServerStateWithHttpInfo", - value: function kmipSetServerStateWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipSetServerStateOutput["default"]; - return this.apiClient.callApi('/kmip-set-environment-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"kmipSetServerStateWithHttpInfo",value:function kmipSetServerStateWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipSetServerStateOutput["default"];return this.apiClient.callApi('/kmip-set-environment-state','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/KmipSetServerState} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipSetServerStateOutput} - */ - - }, { - key: "kmipSetServerState", - value: function kmipSetServerState(opts) { - return this.kmipSetServerStateWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"kmipSetServerState",value:function kmipSetServerState(opts){return this.kmipSetServerStateWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ListAuthMethods} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAuthMethodsOutput} and HTTP response - */ - - }, { - key: "listAuthMethodsWithHttpInfo", - value: function listAuthMethodsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listAuthMethods"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListAuthMethodsOutput["default"]; - return this.apiClient.callApi('/list-auth-methods', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"listAuthMethodsWithHttpInfo",value:function listAuthMethodsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listAuthMethods");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListAuthMethodsOutput["default"];return this.apiClient.callApi('/list-auth-methods','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ListAuthMethods} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAuthMethodsOutput} - */ - - }, { - key: "listAuthMethods", - value: function listAuthMethods(body) { - return this.listAuthMethodsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"listAuthMethods",value:function listAuthMethods(body){return this.listAuthMethodsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ListGateways} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewaysListResponse} and HTTP response - */ - - }, { - key: "listGatewaysWithHttpInfo", - value: function listGatewaysWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listGateways"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewaysListResponse["default"]; - return this.apiClient.callApi('/list-gateways', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"listGatewaysWithHttpInfo",value:function listGatewaysWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listGateways");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewaysListResponse["default"];return this.apiClient.callApi('/list-gateways','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ListGateways} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewaysListResponse} - */ - - }, { - key: "listGateways", - value: function listGateways(body) { - return this.listGatewaysWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"listGateways",value:function listGateways(body){return this.listGatewaysWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListGroups} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListGroupsOutput} and HTTP response + */},{key:"listGroupsWithHttpInfo",value:function listGroupsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listGroups");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListGroupsOutput["default"];return this.apiClient.callApi('/list-group','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListGroups} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListGroupsOutput} + */},{key:"listGroups",value:function listGroups(body){return this.listGroupsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ListItems} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListItemsInPathOutput} and HTTP response - */ - - }, { - key: "listItemsWithHttpInfo", - value: function listItemsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listItems"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListItemsInPathOutput["default"]; - return this.apiClient.callApi('/list-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"listItemsWithHttpInfo",value:function listItemsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listItems");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListItemsInPathOutput["default"];return this.apiClient.callApi('/list-items','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ListItems} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListItemsInPathOutput} - */ - - }, { - key: "listItems", - value: function listItems(body) { - return this.listItemsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"listItems",value:function listItems(body){return this.listItemsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ListRoles} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListRolesOutput} and HTTP response - */ - - }, { - key: "listRolesWithHttpInfo", - value: function listRolesWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listRoles"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListRolesOutput["default"]; - return this.apiClient.callApi('/list-roles', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"listRolesWithHttpInfo",value:function listRolesWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listRoles");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListRolesOutput["default"];return this.apiClient.callApi('/list-roles','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ListRoles} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListRolesOutput} - */ - - }, { - key: "listRoles", - value: function listRoles(body) { - return this.listRolesWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"listRoles",value:function listRoles(body){return this.listRolesWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ListSRABastions} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BastionsList} and HTTP response - */ - - }, { - key: "listSRABastionsWithHttpInfo", - value: function listSRABastionsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listSRABastions"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _BastionsList["default"]; - return this.apiClient.callApi('/list-sra-bastions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"listSRABastionsWithHttpInfo",value:function listSRABastionsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listSRABastions");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_BastionsList["default"];return this.apiClient.callApi('/list-sra-bastions','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ListSRABastions} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BastionsList} - */ - - }, { - key: "listSRABastions", - value: function listSRABastions(body) { - return this.listSRABastionsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"listSRABastions",value:function listSRABastions(body){return this.listSRABastionsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ListSharedItems} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "listSharedItemsWithHttpInfo", - value: function listSharedItemsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listSharedItems"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/list-shared-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"listSharedItemsWithHttpInfo",value:function listSharedItemsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listSharedItems");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/list-shared-items','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ListSharedItems} body * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "listSharedItems", - value: function listSharedItems(body) { - return this.listSharedItemsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"listSharedItems",value:function listSharedItems(body){return this.listSharedItemsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ListTargets} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTargetsOutput} and HTTP response - */ - - }, { - key: "listTargetsWithHttpInfo", - value: function listTargetsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listTargets"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListTargetsOutput["default"]; - return this.apiClient.callApi('/list-targets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"listTargetsWithHttpInfo",value:function listTargetsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listTargets");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListTargetsOutput["default"];return this.apiClient.callApi('/list-targets','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ListTargets} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTargetsOutput} - */ - - }, { - key: "listTargets", - value: function listTargets(body) { - return this.listTargetsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"listTargets",value:function listTargets(body){return this.listTargetsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/MoveObjects} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "moveObjectsWithHttpInfo", - value: function moveObjectsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling moveObjects"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/move-objects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"moveObjectsWithHttpInfo",value:function moveObjectsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling moveObjects");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/move-objects','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/MoveObjects} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "moveObjects", - value: function moveObjects(body) { - return this.moveObjectsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"moveObjects",value:function moveObjects(body){return this.moveObjectsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ProvisionCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProvisionCertificateOutput} and HTTP response + */},{key:"provisionCertificateWithHttpInfo",value:function provisionCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling provisionCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ProvisionCertificateOutput["default"];return this.apiClient.callApi('/provision-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ProvisionCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProvisionCertificateOutput} + */},{key:"provisionCertificate",value:function provisionCertificate(body){return this.provisionCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {Object} opts Optional parameters * @param {module:model/RawCreds} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SystemAccessCredentialsReplyObj} and HTTP response - */ - - }, { - key: "rawCredsWithHttpInfo", - value: function rawCredsWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SystemAccessCredentialsReplyObj["default"]; - return this.apiClient.callApi('/raw-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"rawCredsWithHttpInfo",value:function rawCredsWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SystemAccessCredentialsReplyObj["default"];return this.apiClient.callApi('/raw-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {Object} opts Optional parameters * @param {module:model/RawCreds} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SystemAccessCredentialsReplyObj} - */ - - }, { - key: "rawCreds", - value: function rawCreds(opts) { - return this.rawCredsWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"rawCreds",value:function rawCreds(opts){return this.rawCredsWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/RefreshKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshKeyOutput} and HTTP response - */ - - }, { - key: "refreshKeyWithHttpInfo", - value: function refreshKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling refreshKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RefreshKeyOutput["default"]; - return this.apiClient.callApi('/refresh-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"refreshKeyWithHttpInfo",value:function refreshKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling refreshKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RefreshKeyOutput["default"];return this.apiClient.callApi('/refresh-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/RefreshKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshKeyOutput} - */ - - }, { - key: "refreshKey", - value: function refreshKey(body) { - return this.refreshKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"refreshKey",value:function refreshKey(body){return this.refreshKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RenewCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RenewCertificateOutput} and HTTP response + */},{key:"renewCertificateWithHttpInfo",value:function renewCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling renewCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RenewCertificateOutput["default"];return this.apiClient.callApi('/renew-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RenewCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RenewCertificateOutput} + */},{key:"renewCertificate",value:function renewCertificate(body){return this.renewCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/RequestAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RequestAccessOutput} and HTTP response - */ - - }, { - key: "requestAccessWithHttpInfo", - value: function requestAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling requestAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RequestAccessOutput["default"]; - return this.apiClient.callApi('/request-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"requestAccessWithHttpInfo",value:function requestAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling requestAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RequestAccessOutput["default"];return this.apiClient.callApi('/request-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/RequestAccess} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RequestAccessOutput} - */ - - }, { - key: "requestAccess", - value: function requestAccess(body) { - return this.requestAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"requestAccess",value:function requestAccess(body){return this.requestAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ReverseRBAC} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReverseRBACOutput} and HTTP response - */ - - }, { - key: "reverseRBACWithHttpInfo", - value: function reverseRBACWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling reverseRBAC"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ReverseRBACOutput["default"]; - return this.apiClient.callApi('/reverse-rbac', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"reverseRBACWithHttpInfo",value:function reverseRBACWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling reverseRBAC");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ReverseRBACOutput["default"];return this.apiClient.callApi('/reverse-rbac','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ReverseRBAC} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReverseRBACOutput} - */ - - }, { - key: "reverseRBAC", - value: function reverseRBAC(body) { - return this.reverseRBACWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"reverseRBAC",value:function reverseRBAC(body){return this.reverseRBACWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RevokeCertificate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "revokeCredsWithHttpInfo", - value: function revokeCredsWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/revoke-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"revokeCertificateWithHttpInfo",value:function revokeCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling revokeCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/revoke-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RevokeCertificate} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "revokeCreds", - value: function revokeCreds() { - return this.revokeCredsWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"revokeCertificate",value:function revokeCertificate(body){return this.revokeCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"revokeCredsWithHttpInfo",value:function revokeCredsWithHttpInfo(){var postBody=null;var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=[];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/revoke-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"revokeCreds",value:function revokeCreds(){return this.revokeCredsWithHttpInfo().then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/RollbackSecret} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RollbackSecretOutput} and HTTP response - */ - - }, { - key: "rollbackSecretWithHttpInfo", - value: function rollbackSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling rollbackSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RollbackSecretOutput["default"]; - return this.apiClient.callApi('/rollback-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"rollbackSecretWithHttpInfo",value:function rollbackSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rollbackSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RollbackSecretOutput["default"];return this.apiClient.callApi('/rollback-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/RollbackSecret} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RollbackSecretOutput} - */ - - }, { - key: "rollbackSecret", - value: function rollbackSecret(body) { - return this.rollbackSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateRotationSettings} body + */},{key:"rollbackSecret",value:function rollbackSecret(body){return this.rollbackSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotateKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateKeyOutput} and HTTP response - */ - - }, { - key: "rotateKeyWithHttpInfo", - value: function rotateKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling rotateKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RotateKeyOutput["default"]; - return this.apiClient.callApi('/rotate-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateRotationSettings} body + */},{key:"rotateKeyWithHttpInfo",value:function rotateKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotateKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotateKeyOutput["default"];return this.apiClient.callApi('/rotate-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotateKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateKeyOutput} - */ - - }, { - key: "rotateKey", - value: function rotateKey(body) { - return this.rotateKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"rotateKey",value:function rotateKey(body){return this.rotateKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotateOidcClientSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateOidcClientOutput} and HTTP response + */},{key:"rotateOidcClientSecretWithHttpInfo",value:function rotateOidcClientSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotateOidcClientSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotateOidcClientOutput["default"];return this.apiClient.callApi('/rotate-oidc-client-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotateOidcClientSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateOidcClientOutput} + */},{key:"rotateOidcClientSecret",value:function rotateOidcClientSecret(body){return this.rotateOidcClientSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/RotateSecret} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretOutput} and HTTP response - */ - - }, { - key: "rotateSecretWithHttpInfo", - value: function rotateSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling rotateSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RotatedSecretOutput["default"]; - return this.apiClient.callApi('/gateway-rotate-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"rotateSecretWithHttpInfo",value:function rotateSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotateSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretOutput["default"];return this.apiClient.callApi('/gateway-rotate-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/RotateSecret} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretOutput} - */ - - }, { - key: "rotateSecret", - value: function rotateSecret(body) { - return this.rotateSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"rotateSecret",value:function rotateSecret(body){return this.rotateSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateAwsWithHttpInfo",value:function rotatedSecretCreateAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateAws",value:function rotatedSecretCreateAws(body){return this.rotatedSecretCreateAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateAzureWithHttpInfo",value:function rotatedSecretCreateAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateAzure",value:function rotatedSecretCreateAzure(body){return this.rotatedSecretCreateAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateCassandraWithHttpInfo",value:function rotatedSecretCreateCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateCassandra",value:function rotatedSecretCreateCassandra(body){return this.rotatedSecretCreateCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateCustomWithHttpInfo",value:function rotatedSecretCreateCustomWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateCustom");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateCustom",value:function rotatedSecretCreateCustom(body){return this.rotatedSecretCreateCustomWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateDockerhubWithHttpInfo",value:function rotatedSecretCreateDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateDockerhub",value:function rotatedSecretCreateDockerhub(body){return this.rotatedSecretCreateDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateGcpWithHttpInfo",value:function rotatedSecretCreateGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateGcp",value:function rotatedSecretCreateGcp(body){return this.rotatedSecretCreateGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateHanadbWithHttpInfo",value:function rotatedSecretCreateHanadbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateHanadb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-hanadb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateHanadb",value:function rotatedSecretCreateHanadb(body){return this.rotatedSecretCreateHanadbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateLdapWithHttpInfo",value:function rotatedSecretCreateLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateLdap",value:function rotatedSecretCreateLdap(body){return this.rotatedSecretCreateLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateMongodbWithHttpInfo",value:function rotatedSecretCreateMongodbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateMongodb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-mongodb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateMongodb",value:function rotatedSecretCreateMongodb(body){return this.rotatedSecretCreateMongodbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateMssqlWithHttpInfo",value:function rotatedSecretCreateMssqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateMssql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateMssql",value:function rotatedSecretCreateMssql(body){return this.rotatedSecretCreateMssqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateMysqlWithHttpInfo",value:function rotatedSecretCreateMysqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateMysql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateMysql",value:function rotatedSecretCreateMysql(body){return this.rotatedSecretCreateMysqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateOracledbWithHttpInfo",value:function rotatedSecretCreateOracledbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateOracledb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-oracledb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateOracledb",value:function rotatedSecretCreateOracledb(body){return this.rotatedSecretCreateOracledbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreatePostgresqlWithHttpInfo",value:function rotatedSecretCreatePostgresqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreatePostgresql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreatePostgresql",value:function rotatedSecretCreatePostgresql(body){return this.rotatedSecretCreatePostgresqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateRedisWithHttpInfo",value:function rotatedSecretCreateRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateRedis",value:function rotatedSecretCreateRedis(body){return this.rotatedSecretCreateRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateRedshiftWithHttpInfo",value:function rotatedSecretCreateRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateRedshift",value:function rotatedSecretCreateRedshift(body){return this.rotatedSecretCreateRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateSnowflakeWithHttpInfo",value:function rotatedSecretCreateSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateSnowflake",value:function rotatedSecretCreateSnowflake(body){return this.rotatedSecretCreateSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateSshWithHttpInfo",value:function rotatedSecretCreateSshWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateSsh");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-ssh','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateSsh",value:function rotatedSecretCreateSsh(body){return this.rotatedSecretCreateSshWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateWindowsWithHttpInfo",value:function rotatedSecretCreateWindowsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateWindows");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-windows','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateWindows",value:function rotatedSecretCreateWindows(body){return this.rotatedSecretCreateWindowsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretGetValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + */},{key:"rotatedSecretGetValueWithHttpInfo",value:function rotatedSecretGetValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretGetValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/rotated-secret-get-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretGetValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"rotatedSecretGetValue",value:function rotatedSecretGetValue(body){return this.rotatedSecretGetValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducersListReplyObj} and HTTP response + */},{key:"rotatedSecretListWithHttpInfo",value:function rotatedSecretListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetProducersListReplyObj["default"];return this.apiClient.callApi('/rotated-secret-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducersListReplyObj} + */},{key:"rotatedSecretList",value:function rotatedSecretList(body){return this.rotatedSecretListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateAwsWithHttpInfo",value:function rotatedSecretUpdateAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateAws",value:function rotatedSecretUpdateAws(body){return this.rotatedSecretUpdateAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateAzureWithHttpInfo",value:function rotatedSecretUpdateAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateAzure",value:function rotatedSecretUpdateAzure(body){return this.rotatedSecretUpdateAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateCassandraWithHttpInfo",value:function rotatedSecretUpdateCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateCassandra",value:function rotatedSecretUpdateCassandra(body){return this.rotatedSecretUpdateCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateCustomWithHttpInfo",value:function rotatedSecretUpdateCustomWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateCustom");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateCustom",value:function rotatedSecretUpdateCustom(body){return this.rotatedSecretUpdateCustomWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateDockerhubWithHttpInfo",value:function rotatedSecretUpdateDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateDockerhub",value:function rotatedSecretUpdateDockerhub(body){return this.rotatedSecretUpdateDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateGcpWithHttpInfo",value:function rotatedSecretUpdateGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateGcp",value:function rotatedSecretUpdateGcp(body){return this.rotatedSecretUpdateGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateHanadbWithHttpInfo",value:function rotatedSecretUpdateHanadbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateHanadb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-hanadb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateHanadb",value:function rotatedSecretUpdateHanadb(body){return this.rotatedSecretUpdateHanadbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateLdapWithHttpInfo",value:function rotatedSecretUpdateLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateLdap",value:function rotatedSecretUpdateLdap(body){return this.rotatedSecretUpdateLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateMongodbWithHttpInfo",value:function rotatedSecretUpdateMongodbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateMongodb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-mongodb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateMongodb",value:function rotatedSecretUpdateMongodb(body){return this.rotatedSecretUpdateMongodbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateMssqlWithHttpInfo",value:function rotatedSecretUpdateMssqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateMssql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateMssql",value:function rotatedSecretUpdateMssql(body){return this.rotatedSecretUpdateMssqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateMysqlWithHttpInfo",value:function rotatedSecretUpdateMysqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateMysql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateMysql",value:function rotatedSecretUpdateMysql(body){return this.rotatedSecretUpdateMysqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateOracledbWithHttpInfo",value:function rotatedSecretUpdateOracledbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateOracledb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-oracledb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateOracledb",value:function rotatedSecretUpdateOracledb(body){return this.rotatedSecretUpdateOracledbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdatePostgresqlWithHttpInfo",value:function rotatedSecretUpdatePostgresqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdatePostgresql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdatePostgresql",value:function rotatedSecretUpdatePostgresql(body){return this.rotatedSecretUpdatePostgresqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateRedisWithHttpInfo",value:function rotatedSecretUpdateRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateRedis",value:function rotatedSecretUpdateRedis(body){return this.rotatedSecretUpdateRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateRedshiftWithHttpInfo",value:function rotatedSecretUpdateRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateRedshift",value:function rotatedSecretUpdateRedshift(body){return this.rotatedSecretUpdateRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateSnowflakeWithHttpInfo",value:function rotatedSecretUpdateSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateSnowflake",value:function rotatedSecretUpdateSnowflake(body){return this.rotatedSecretUpdateSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateSshWithHttpInfo",value:function rotatedSecretUpdateSshWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateSsh");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-ssh','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateSsh",value:function rotatedSecretUpdateSsh(body){return this.rotatedSecretUpdateSshWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateWindowsWithHttpInfo",value:function rotatedSecretUpdateWindowsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateWindows");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-windows','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateWindows",value:function rotatedSecretUpdateWindows(body){return this.rotatedSecretUpdateWindowsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/SetItemState} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "setItemStateWithHttpInfo", - value: function setItemStateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling setItemState"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/set-item-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"setItemStateWithHttpInfo",value:function setItemStateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling setItemState");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/set-item-state','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/SetItemState} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "setItemState", - value: function setItemState(body) { - return this.setItemStateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"setItemState",value:function setItemState(body){return this.setItemStateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/SetRoleRule} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "setRoleRuleWithHttpInfo", - value: function setRoleRuleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling setRoleRule"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/set-role-rule', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"setRoleRuleWithHttpInfo",value:function setRoleRuleWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling setRoleRule");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/set-role-rule','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/SetRoleRule} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "setRoleRule", - value: function setRoleRule(body) { - return this.setRoleRuleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"setRoleRule",value:function setRoleRule(body){return this.setRoleRuleWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ShareItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "shareItemWithHttpInfo", - value: function shareItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling shareItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/share-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"shareItemWithHttpInfo",value:function shareItemWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling shareItem");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/share-item','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ShareItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "shareItem", - value: function shareItem(body) { - return this.shareItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"shareItem",value:function shareItem(body){return this.shareItemWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/SignDataWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignOutput} and HTTP response - */ - - }, { - key: "signDataWithClassicKeyWithHttpInfo", - value: function signDataWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signDataWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignOutput["default"]; - return this.apiClient.callApi('/sign-data-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"signDataWithClassicKeyWithHttpInfo",value:function signDataWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signDataWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignOutput["default"];return this.apiClient.callApi('/sign-data-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/SignDataWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignOutput} - */ - - }, { - key: "signDataWithClassicKey", - value: function signDataWithClassicKey(body) { - return this.signDataWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"signDataWithClassicKey",value:function signDataWithClassicKey(body){return this.signDataWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignEcDsaOutput} and HTTP response + */},{key:"signEcDsaWithHttpInfo",value:function signEcDsaWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signEcDsa");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignEcDsaOutput["default"];return this.apiClient.callApi('/sign-ecdsa','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignEcDsaOutput} + */},{key:"signEcDsa",value:function signEcDsa(body){return this.signEcDsaWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/SignGPG} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignGPGOutput} and HTTP response - */ - - }, { - key: "signGPGWithHttpInfo", - value: function signGPGWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signGPG"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignGPGOutput["default"]; - return this.apiClient.callApi('/sign-gpg', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"signGPGWithHttpInfo",value:function signGPGWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signGPG");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignGPGOutput["default"];return this.apiClient.callApi('/sign-gpg','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/SignGPG} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignGPGOutput} - */ - - }, { - key: "signGPG", - value: function signGPG(body) { - return this.signGPGWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"signGPG",value:function signGPG(body){return this.signGPGWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/SignJWTWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignJWTOutput} and HTTP response - */ - - }, { - key: "signJWTWithClassicKeyWithHttpInfo", - value: function signJWTWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signJWTWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignJWTOutput["default"]; - return this.apiClient.callApi('/sign-jwt-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"signJWTWithClassicKeyWithHttpInfo",value:function signJWTWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signJWTWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignJWTOutput["default"];return this.apiClient.callApi('/sign-jwt-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/SignJWTWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignJWTOutput} - */ - - }, { - key: "signJWTWithClassicKey", - value: function signJWTWithClassicKey(body) { - return this.signJWTWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"signJWTWithClassicKey",value:function signJWTWithClassicKey(body){return this.signJWTWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/SignPKCS1} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignPKCS1Output} and HTTP response - */ - - }, { - key: "signPKCS1WithHttpInfo", - value: function signPKCS1WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signPKCS1"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignPKCS1Output["default"]; - return this.apiClient.callApi('/sign-pkcs1', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"signPKCS1WithHttpInfo",value:function signPKCS1WithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signPKCS1");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignPKCS1Output["default"];return this.apiClient.callApi('/sign-pkcs1','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/SignPKCS1} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignPKCS1Output} - */ - - }, { - key: "signPKCS1", - value: function signPKCS1(body) { - return this.signPKCS1WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"signPKCS1",value:function signPKCS1(body){return this.signPKCS1WithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/SignPKICertWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignPKICertOutput} and HTTP response - */ - - }, { - key: "signPKICertWithClassicKeyWithHttpInfo", - value: function signPKICertWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signPKICertWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignPKICertOutput["default"]; - return this.apiClient.callApi('/sign-pki-cert-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"signPKICertWithClassicKeyWithHttpInfo",value:function signPKICertWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signPKICertWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignPKICertOutput["default"];return this.apiClient.callApi('/sign-pki-cert-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/SignPKICertWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignPKICertOutput} - */ - - }, { - key: "signPKICertWithClassicKey", - value: function signPKICertWithClassicKey(body) { - return this.signPKICertWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"signPKICertWithClassicKey",value:function signPKICertWithClassicKey(body){return this.signPKICertWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignRsaSsaPssOutput} and HTTP response + */},{key:"signRsaSsaPssWithHttpInfo",value:function signRsaSsaPssWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signRsaSsaPss");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignRsaSsaPssOutput["default"];return this.apiClient.callApi('/sign-rsassa-pss','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignRsaSsaPssOutput} + */},{key:"signRsaSsaPss",value:function signRsaSsaPss(body){return this.signRsaSsaPssWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/StaticCredsAuth} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/StaticCredsAuthOutput} and HTTP response - */ - - }, { - key: "staticCredsAuthWithHttpInfo", - value: function staticCredsAuthWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling staticCredsAuth"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _StaticCredsAuthOutput["default"]; - return this.apiClient.callApi('/static-creds-auth', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"staticCredsAuthWithHttpInfo",value:function staticCredsAuthWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling staticCredsAuth");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_StaticCredsAuthOutput["default"];return this.apiClient.callApi('/static-creds-auth','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/StaticCredsAuth} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StaticCredsAuthOutput} - */ - - }, { - key: "staticCredsAuth", - value: function staticCredsAuth(body) { - return this.staticCredsAuthWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"staticCredsAuth",value:function staticCredsAuth(body){return this.staticCredsAuthWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/Tokenize} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizeOutput} and HTTP response - */ - - }, { - key: "tokenizeWithHttpInfo", - value: function tokenizeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling tokenize"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _TokenizeOutput["default"]; - return this.apiClient.callApi('/tokenize', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"tokenizeWithHttpInfo",value:function tokenizeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling tokenize");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_TokenizeOutput["default"];return this.apiClient.callApi('/tokenize','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/Tokenize} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizeOutput} - */ - - }, { - key: "tokenize", - value: function tokenize(body) { - return this.tokenizeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"tokenize",value:function tokenize(body){return this.tokenizeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UidCreateChildToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidCreateChildTokenOutput} and HTTP response - */ - - }, { - key: "uidCreateChildTokenWithHttpInfo", - value: function uidCreateChildTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidCreateChildToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UidCreateChildTokenOutput["default"]; - return this.apiClient.callApi('/uid-create-child-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"uidCreateChildTokenWithHttpInfo",value:function uidCreateChildTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidCreateChildToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UidCreateChildTokenOutput["default"];return this.apiClient.callApi('/uid-create-child-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UidCreateChildToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidCreateChildTokenOutput} - */ - - }, { - key: "uidCreateChildToken", - value: function uidCreateChildToken(body) { - return this.uidCreateChildTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"uidCreateChildToken",value:function uidCreateChildToken(body){return this.uidCreateChildTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UidGenerateToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidGenerateTokenOutput} and HTTP response - */ - - }, { - key: "uidGenerateTokenWithHttpInfo", - value: function uidGenerateTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidGenerateToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UidGenerateTokenOutput["default"]; - return this.apiClient.callApi('/uid-generate-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"uidGenerateTokenWithHttpInfo",value:function uidGenerateTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidGenerateToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UidGenerateTokenOutput["default"];return this.apiClient.callApi('/uid-generate-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UidGenerateToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidGenerateTokenOutput} - */ - - }, { - key: "uidGenerateToken", - value: function uidGenerateToken(body) { - return this.uidGenerateTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"uidGenerateToken",value:function uidGenerateToken(body){return this.uidGenerateTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UidListChildren} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UniversalIdentityDetails} and HTTP response - */ - - }, { - key: "uidListChildrenWithHttpInfo", - value: function uidListChildrenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidListChildren"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UniversalIdentityDetails["default"]; - return this.apiClient.callApi('/uid-list-children', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"uidListChildrenWithHttpInfo",value:function uidListChildrenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidListChildren");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UniversalIdentityDetails["default"];return this.apiClient.callApi('/uid-list-children','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UidListChildren} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UniversalIdentityDetails} - */ - - }, { - key: "uidListChildren", - value: function uidListChildren(body) { - return this.uidListChildrenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"uidListChildren",value:function uidListChildren(body){return this.uidListChildrenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UidRevokeToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "uidRevokeTokenWithHttpInfo", - value: function uidRevokeTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidRevokeToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/uid-revoke-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"uidRevokeTokenWithHttpInfo",value:function uidRevokeTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidRevokeToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/uid-revoke-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UidRevokeToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "uidRevokeToken", - value: function uidRevokeToken(body) { - return this.uidRevokeTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"uidRevokeToken",value:function uidRevokeToken(body){return this.uidRevokeTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UidRotateToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidRotateTokenOutput} and HTTP response - */ - - }, { - key: "uidRotateTokenWithHttpInfo", - value: function uidRotateTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidRotateToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UidRotateTokenOutput["default"]; - return this.apiClient.callApi('/uid-rotate-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"uidRotateTokenWithHttpInfo",value:function uidRotateTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidRotateToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UidRotateTokenOutput["default"];return this.apiClient.callApi('/uid-rotate-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UidRotateToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidRotateTokenOutput} - */ - - }, { - key: "uidRotateToken", - value: function uidRotateToken(body) { - return this.uidRotateTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"uidRotateToken",value:function uidRotateToken(body){return this.uidRotateTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAWSTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAWSTargetWithHttpInfo", - value: function updateAWSTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAWSTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-aws-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAWSTargetWithHttpInfo",value:function updateAWSTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAWSTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-aws-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAWSTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAWSTarget", - value: function updateAWSTarget(body) { - return this.updateAWSTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAWSTarget",value:function updateAWSTarget(body){return this.updateAWSTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAWSTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateAWSTargetDetailsWithHttpInfo", - value: function updateAWSTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAWSTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-aws-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAWSTargetDetailsWithHttpInfo",value:function updateAWSTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAWSTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-aws-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAWSTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateAWSTargetDetails", - value: function updateAWSTargetDetails(body) { - return this.updateAWSTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAWSTargetDetails",value:function updateAWSTargetDetails(body){return this.updateAWSTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAccountSettings} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAccountSettingsOutput} and HTTP response - */ - - }, { - key: "updateAccountSettingsWithHttpInfo", - value: function updateAccountSettingsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAccountSettings"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAccountSettingsOutput["default"]; - return this.apiClient.callApi('/update-account-settings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAccountSettingsWithHttpInfo",value:function updateAccountSettingsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAccountSettings");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAccountSettingsOutput["default"];return this.apiClient.callApi('/update-account-settings','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAccountSettings} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAccountSettingsOutput} - */ - - }, { - key: "updateAccountSettings", - value: function updateAccountSettings(body) { - return this.updateAccountSettingsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAccountSettings",value:function updateAccountSettings(body){return this.updateAccountSettingsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateArtifactoryTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateArtifactoryTargetOutput} and HTTP response - */ - - }, { - key: "updateArtifactoryTargetWithHttpInfo", - value: function updateArtifactoryTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateArtifactoryTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateArtifactoryTargetOutput["default"]; - return this.apiClient.callApi('/update-artifactory-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateArtifactoryTargetWithHttpInfo",value:function updateArtifactoryTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateArtifactoryTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateArtifactoryTargetOutput["default"];return this.apiClient.callApi('/update-artifactory-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateArtifactoryTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateArtifactoryTargetOutput} - */ - - }, { - key: "updateArtifactoryTarget", - value: function updateArtifactoryTarget(body) { - return this.updateArtifactoryTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateArtifactoryTarget",value:function updateArtifactoryTarget(body){return this.updateArtifactoryTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAssoc} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAssocWithHttpInfo", - value: function updateAssocWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAssoc"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-assoc', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAssocWithHttpInfo",value:function updateAssocWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAssoc");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-assoc','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAssoc} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAssoc", - value: function updateAssoc(body) { - return this.updateAssocWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAssoc",value:function updateAssoc(body){return this.updateAssocWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethod} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodWithHttpInfo", - value: function updateAuthMethodWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethod"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodOutput["default"]; - return this.apiClient.callApi('/update-auth-method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodWithHttpInfo",value:function updateAuthMethodWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethod");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodOutput["default"];return this.apiClient.callApi('/update-auth-method','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethod} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodOutput} - */ - - }, { - key: "updateAuthMethod", - value: function updateAuthMethod(body) { - return this.updateAuthMethodWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethod",value:function updateAuthMethod(body){return this.updateAuthMethodWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodAWSIAM} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodAWSIAMWithHttpInfo", - value: function updateAuthMethodAWSIAMWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAWSIAM"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-aws-iam', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodAWSIAMWithHttpInfo",value:function updateAuthMethodAWSIAMWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAWSIAM");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-aws-iam','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodAWSIAM} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodAWSIAM", - value: function updateAuthMethodAWSIAM(body) { - return this.updateAuthMethodAWSIAMWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodAWSIAM",value:function updateAuthMethodAWSIAM(body){return this.updateAuthMethodAWSIAMWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodAzureAD} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodAzureADWithHttpInfo", - value: function updateAuthMethodAzureADWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAzureAD"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-azure-ad', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodAzureADWithHttpInfo",value:function updateAuthMethodAzureADWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAzureAD");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-azure-ad','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodAzureAD} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodAzureAD", - value: function updateAuthMethodAzureAD(body) { - return this.updateAuthMethodAzureADWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodAzureAD",value:function updateAuthMethodAzureAD(body){return this.updateAuthMethodAzureADWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodCert} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodCertOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodCertWithHttpInfo", - value: function updateAuthMethodCertWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodCert"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodCertOutput["default"]; - return this.apiClient.callApi('/update-auth-method-cert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodCertWithHttpInfo",value:function updateAuthMethodCertWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodCert");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodCertOutput["default"];return this.apiClient.callApi('/update-auth-method-cert','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodCert} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodCertOutput} - */ - - }, { - key: "updateAuthMethodCert", - value: function updateAuthMethodCert(body) { - return this.updateAuthMethodCertWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodCert",value:function updateAuthMethodCert(body){return this.updateAuthMethodCertWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodGCP} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodGCPWithHttpInfo", - value: function updateAuthMethodGCPWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodGCP"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-gcp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodGCPWithHttpInfo",value:function updateAuthMethodGCPWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodGCP");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodGCP} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodGCP", - value: function updateAuthMethodGCP(body) { - return this.updateAuthMethodGCPWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodGCP",value:function updateAuthMethodGCP(body){return this.updateAuthMethodGCPWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodK8S} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodK8SOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodK8SWithHttpInfo", - value: function updateAuthMethodK8SWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodK8S"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodK8SOutput["default"]; - return this.apiClient.callApi('/update-auth-method-k8s', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodK8SWithHttpInfo",value:function updateAuthMethodK8SWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodK8S");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodK8SOutput["default"];return this.apiClient.callApi('/update-auth-method-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodK8S} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodK8SOutput} - */ - - }, { - key: "updateAuthMethodK8S", - value: function updateAuthMethodK8S(body) { - return this.updateAuthMethodK8SWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodK8S",value:function updateAuthMethodK8S(body){return this.updateAuthMethodK8SWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodLDAP} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodLDAPOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodLDAPWithHttpInfo", - value: function updateAuthMethodLDAPWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodLDAP"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodLDAPOutput["default"]; - return this.apiClient.callApi('/update-auth-method-ldap', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodLDAPWithHttpInfo",value:function updateAuthMethodLDAPWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodLDAP");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodLDAPOutput["default"];return this.apiClient.callApi('/update-auth-method-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodLDAP} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodLDAPOutput} - */ - - }, { - key: "updateAuthMethodLDAP", - value: function updateAuthMethodLDAP(body) { - return this.updateAuthMethodLDAPWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodLDAP",value:function updateAuthMethodLDAP(body){return this.updateAuthMethodLDAPWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodOAuth2} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodOAuth2WithHttpInfo", - value: function updateAuthMethodOAuth2WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOAuth2"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-oauth2', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodOAuth2WithHttpInfo",value:function updateAuthMethodOAuth2WithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOAuth2");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-oauth2','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodOAuth2} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodOAuth2", - value: function updateAuthMethodOAuth2(body) { - return this.updateAuthMethodOAuth2WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodOAuth2",value:function updateAuthMethodOAuth2(body){return this.updateAuthMethodOAuth2WithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodOCI} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodOCIOutput} and HTTP response + */},{key:"updateAuthMethodOCIWithHttpInfo",value:function updateAuthMethodOCIWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOCI");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodOCIOutput["default"];return this.apiClient.callApi('/update-auth-method-oci','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodOCI} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodOCIOutput} + */},{key:"updateAuthMethodOCI",value:function updateAuthMethodOCI(body){return this.updateAuthMethodOCIWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodOIDC} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodOIDCWithHttpInfo", - value: function updateAuthMethodOIDCWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOIDC"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-oidc', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodOIDCWithHttpInfo",value:function updateAuthMethodOIDCWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOIDC");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-oidc','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodOIDC} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodOIDC", - value: function updateAuthMethodOIDC(body) { - return this.updateAuthMethodOIDCWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodOIDC",value:function updateAuthMethodOIDC(body){return this.updateAuthMethodOIDCWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodSAML} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodSAMLWithHttpInfo", - value: function updateAuthMethodSAMLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodSAML"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-saml', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodSAMLWithHttpInfo",value:function updateAuthMethodSAMLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodSAML");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-saml','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodSAML} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodSAML", - value: function updateAuthMethodSAML(body) { - return this.updateAuthMethodSAMLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodSAML",value:function updateAuthMethodSAML(body){return this.updateAuthMethodSAMLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAuthMethodUniversalIdentity} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodUniversalIdentityWithHttpInfo", - value: function updateAuthMethodUniversalIdentityWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodUniversalIdentity"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-universal-identity', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAuthMethodUniversalIdentityWithHttpInfo",value:function updateAuthMethodUniversalIdentityWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodUniversalIdentity");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-universal-identity','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAuthMethodUniversalIdentity} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodUniversalIdentity", - value: function updateAuthMethodUniversalIdentity(body) { - return this.updateAuthMethodUniversalIdentityWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAuthMethodUniversalIdentity",value:function updateAuthMethodUniversalIdentity(body){return this.updateAuthMethodUniversalIdentityWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateAzureTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAzureTargetOutput} and HTTP response - */ - - }, { - key: "updateAzureTargetWithHttpInfo", - value: function updateAzureTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAzureTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAzureTargetOutput["default"]; - return this.apiClient.callApi('/update-azure-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateAzureTargetWithHttpInfo",value:function updateAzureTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAzureTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAzureTargetOutput["default"];return this.apiClient.callApi('/update-azure-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateAzureTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAzureTargetOutput} - */ - - }, { - key: "updateAzureTarget", - value: function updateAzureTarget(body) { - return this.updateAzureTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateAzureTarget",value:function updateAzureTarget(body){return this.updateAzureTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateCertificateValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateCertificateOutput} and HTTP response - */ - - }, { - key: "updateCertificateValueWithHttpInfo", - value: function updateCertificateValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateCertificateValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateCertificateOutput["default"]; - return this.apiClient.callApi('/update-certificate-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateCertificateValueWithHttpInfo",value:function updateCertificateValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateCertificateValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateCertificateOutput["default"];return this.apiClient.callApi('/update-certificate-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateCertificateValue} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateCertificateOutput} - */ - - }, { - key: "updateCertificateValue", - value: function updateCertificateValue(body) { - return this.updateCertificateValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateCertificateValue",value:function updateCertificateValue(body){return this.updateCertificateValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateClassicKeyCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateClassicKeyCertificateWithHttpInfo",value:function updateClassicKeyCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateClassicKeyCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-classic-key-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateClassicKeyCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateClassicKeyCertificate",value:function updateClassicKeyCertificate(body){return this.updateClassicKeyCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateDBTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDBTargetOutput} and HTTP response - */ - - }, { - key: "updateDBTargetWithHttpInfo", - value: function updateDBTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateDBTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateDBTargetOutput["default"]; - return this.apiClient.callApi('/update-db-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateDBTargetWithHttpInfo",value:function updateDBTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateDBTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateDBTargetOutput["default"];return this.apiClient.callApi('/update-db-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateDBTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDBTargetOutput} - */ - - }, { - key: "updateDBTarget", - value: function updateDBTarget(body) { - return this.updateDBTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateDBTarget",value:function updateDBTarget(body){return this.updateDBTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateDBTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateDBTargetDetailsWithHttpInfo", - value: function updateDBTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateDBTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-db-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateDBTargetDetailsWithHttpInfo",value:function updateDBTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateDBTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-db-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateDBTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateDBTargetDetails", - value: function updateDBTargetDetails(body) { - return this.updateDBTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateDBTargetDetails",value:function updateDBTargetDetails(body){return this.updateDBTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateDockerhubTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDockerhubTargetOutput} and HTTP response - */ - - }, { - key: "updateDockerhubTargetWithHttpInfo", - value: function updateDockerhubTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateDockerhubTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateDockerhubTargetOutput["default"]; - return this.apiClient.callApi('/update-dockerhub-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateDockerhubTargetWithHttpInfo",value:function updateDockerhubTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateDockerhubTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateDockerhubTargetOutput["default"];return this.apiClient.callApi('/update-dockerhub-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateDockerhubTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDockerhubTargetOutput} - */ - - }, { - key: "updateDockerhubTarget", - value: function updateDockerhubTarget(body) { - return this.updateDockerhubTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateDockerhubTarget",value:function updateDockerhubTarget(body){return this.updateDockerhubTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateEKSTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateEKSTargetOutput} and HTTP response - */ - - }, { - key: "updateEKSTargetWithHttpInfo", - value: function updateEKSTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateEKSTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateEKSTargetOutput["default"]; - return this.apiClient.callApi('/update-eks-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateEKSTargetWithHttpInfo",value:function updateEKSTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateEKSTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateEKSTargetOutput["default"];return this.apiClient.callApi('/update-eks-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateEKSTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateEKSTargetOutput} - */ - - }, { - key: "updateEKSTarget", - value: function updateEKSTarget(body) { - return this.updateEKSTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateEKSTarget",value:function updateEKSTarget(body){return this.updateEKSTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateEventForwarder} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateEventForwarderWithHttpInfo", - value: function updateEventForwarderWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateEventForwarder"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-event-forwarder', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateEventForwarderWithHttpInfo",value:function updateEventForwarderWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateEventForwarder");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-event-forwarder','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateEventForwarder} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateEventForwarder", - value: function updateEventForwarder(body) { - return this.updateEventForwarderWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateEventForwarder",value:function updateEventForwarder(body){return this.updateEventForwarderWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateGKETarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGKETargetOutput} and HTTP response - */ - - }, { - key: "updateGKETargetWithHttpInfo", - value: function updateGKETargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGKETarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGKETargetOutput["default"]; - return this.apiClient.callApi('/update-gke-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateGKETargetWithHttpInfo",value:function updateGKETargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGKETarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGKETargetOutput["default"];return this.apiClient.callApi('/update-gke-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateGKETarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGKETargetOutput} - */ - - }, { - key: "updateGKETarget", - value: function updateGKETarget(body) { - return this.updateGKETargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateGKETarget",value:function updateGKETarget(body){return this.updateGKETargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateGcpTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGcpTargetOutput} and HTTP response - */ - - }, { - key: "updateGcpTargetWithHttpInfo", - value: function updateGcpTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGcpTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGcpTargetOutput["default"]; - return this.apiClient.callApi('/update-gcp-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateGcpTargetWithHttpInfo",value:function updateGcpTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGcpTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGcpTargetOutput["default"];return this.apiClient.callApi('/update-gcp-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateGcpTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGcpTargetOutput} - */ - - }, { - key: "updateGcpTarget", - value: function updateGcpTarget(body) { - return this.updateGcpTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateGcpTarget",value:function updateGcpTarget(body){return this.updateGcpTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateGithubTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGithubTargetOutput} and HTTP response - */ - - }, { - key: "updateGithubTargetWithHttpInfo", - value: function updateGithubTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGithubTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGithubTargetOutput["default"]; - return this.apiClient.callApi('/update-github-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateGithubTargetWithHttpInfo",value:function updateGithubTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGithubTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGithubTargetOutput["default"];return this.apiClient.callApi('/update-github-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateGithubTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGithubTargetOutput} - */ - - }, { - key: "updateGithubTarget", - value: function updateGithubTarget(body) { - return this.updateGithubTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateGithubTarget",value:function updateGithubTarget(body){return this.updateGithubTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateGlobalSignAtlasTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGlobalSignAtlasTargetOutput} and HTTP response - */ - - }, { - key: "updateGlobalSignAtlasTargetWithHttpInfo", - value: function updateGlobalSignAtlasTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGlobalSignAtlasTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGlobalSignAtlasTargetOutput["default"]; - return this.apiClient.callApi('/update-globalsign-atlas-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateGlobalSignAtlasTargetWithHttpInfo",value:function updateGlobalSignAtlasTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGlobalSignAtlasTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGlobalSignAtlasTargetOutput["default"];return this.apiClient.callApi('/update-globalsign-atlas-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateGlobalSignAtlasTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGlobalSignAtlasTargetOutput} - */ - - }, { - key: "updateGlobalSignAtlasTarget", - value: function updateGlobalSignAtlasTarget(body) { - return this.updateGlobalSignAtlasTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateGlobalSignAtlasTarget",value:function updateGlobalSignAtlasTarget(body){return this.updateGlobalSignAtlasTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateGlobalSignTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGlobalSignTargetOutput} and HTTP response - */ - - }, { - key: "updateGlobalSignTargetWithHttpInfo", - value: function updateGlobalSignTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGlobalSignTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGlobalSignTargetOutput["default"]; - return this.apiClient.callApi('/update-globalsign-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateGlobalSignTargetWithHttpInfo",value:function updateGlobalSignTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGlobalSignTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGlobalSignTargetOutput["default"];return this.apiClient.callApi('/update-globalsign-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateGlobalSignTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGlobalSignTargetOutput} - */ - - }, { - key: "updateGlobalSignTarget", - value: function updateGlobalSignTarget(body) { - return this.updateGlobalSignTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateGlobalSignTarget",value:function updateGlobalSignTarget(body){return this.updateGlobalSignTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGodaddyTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGodaddyTargetOutput} and HTTP response + */},{key:"updateGodaddyTargetWithHttpInfo",value:function updateGodaddyTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGodaddyTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGodaddyTargetOutput["default"];return this.apiClient.callApi('/update-godaddy-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGodaddyTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGodaddyTargetOutput} + */},{key:"updateGodaddyTarget",value:function updateGodaddyTarget(body){return this.updateGodaddyTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGroupOutput} and HTTP response + */},{key:"updateGroupWithHttpInfo",value:function updateGroupWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGroup");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGroupOutput["default"];return this.apiClient.callApi('/update-group','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGroupOutput} + */},{key:"updateGroup",value:function updateGroup(body){return this.updateGroupWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateItemOutput} and HTTP response - */ - - }, { - key: "updateItemWithHttpInfo", - value: function updateItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateItemOutput["default"]; - return this.apiClient.callApi('/update-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateItemWithHttpInfo",value:function updateItemWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateItem");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateItemOutput["default"];return this.apiClient.callApi('/update-item','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateItemOutput} - */ - - }, { - key: "updateItem", - value: function updateItem(body) { - return this.updateItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateItem",value:function updateItem(body){return this.updateItemWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateLdapTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateLdapTargetOutput} and HTTP response - */ - - }, { - key: "updateLdapTargetWithHttpInfo", - value: function updateLdapTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateLdapTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateLdapTargetOutput["default"]; - return this.apiClient.callApi('/update-ldap-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateLdapTargetWithHttpInfo",value:function updateLdapTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateLdapTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateLdapTargetOutput["default"];return this.apiClient.callApi('/update-ldap-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateLdapTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateLdapTargetOutput} - */ - - }, { - key: "updateLdapTarget", - value: function updateLdapTarget(body) { - return this.updateLdapTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateLdapTarget",value:function updateLdapTarget(body){return this.updateLdapTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateLdapTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateLdapTargetDetailsWithHttpInfo", - value: function updateLdapTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateLdapTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-ldap-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateLdapTargetDetailsWithHttpInfo",value:function updateLdapTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateLdapTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-ldap-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateLdapTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateLdapTargetDetails", - value: function updateLdapTargetDetails(body) { - return this.updateLdapTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateLdapTargetDetails",value:function updateLdapTargetDetails(body){return this.updateLdapTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateLinkedTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateLinkedTargetWithHttpInfo", - value: function updateLinkedTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateLinkedTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-linked-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateLinkedTargetWithHttpInfo",value:function updateLinkedTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateLinkedTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-linked-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateLinkedTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateLinkedTarget", - value: function updateLinkedTarget(body) { - return this.updateLinkedTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateLinkedTarget",value:function updateLinkedTarget(body){return this.updateLinkedTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateNativeK8STarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateNativeK8STargetOutput} and HTTP response - */ - - }, { - key: "updateNativeK8STargetWithHttpInfo", - value: function updateNativeK8STargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateNativeK8STarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateNativeK8STargetOutput["default"]; - return this.apiClient.callApi('/update-k8s-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateNativeK8STargetWithHttpInfo",value:function updateNativeK8STargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateNativeK8STarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateNativeK8STargetOutput["default"];return this.apiClient.callApi('/update-k8s-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateNativeK8STarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateNativeK8STargetOutput} - */ - - }, { - key: "updateNativeK8STarget", - value: function updateNativeK8STarget(body) { - return this.updateNativeK8STargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateNativeK8STarget",value:function updateNativeK8STarget(body){return this.updateNativeK8STargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateOidcApp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateOidcAppWithHttpInfo",value:function updateOidcAppWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateOidcApp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-oidc-app','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateOidcApp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateOidcApp",value:function updateOidcApp(body){return this.updateOidcAppWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdatePKICertIssuer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePKICertIssuerOutput} and HTTP response - */ - - }, { - key: "updatePKICertIssuerWithHttpInfo", - value: function updatePKICertIssuerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updatePKICertIssuer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdatePKICertIssuerOutput["default"]; - return this.apiClient.callApi('/update-pki-cert-issuer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updatePKICertIssuerWithHttpInfo",value:function updatePKICertIssuerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updatePKICertIssuer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdatePKICertIssuerOutput["default"];return this.apiClient.callApi('/update-pki-cert-issuer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdatePKICertIssuer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePKICertIssuerOutput} - */ - - }, { - key: "updatePKICertIssuer", - value: function updatePKICertIssuer(body) { - return this.updatePKICertIssuerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updatePKICertIssuer",value:function updatePKICertIssuer(body){return this.updatePKICertIssuerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdatePingTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updatePingTargetWithHttpInfo", - value: function updatePingTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updatePingTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-ping-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updatePingTargetWithHttpInfo",value:function updatePingTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updatePingTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-ping-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdatePingTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updatePingTarget", - value: function updatePingTarget(body) { - return this.updatePingTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updatePingTarget",value:function updatePingTarget(body){return this.updatePingTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateRDPTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateRDPTargetDetailsWithHttpInfo", - value: function updateRDPTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRDPTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-rdp-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateRDPTargetDetailsWithHttpInfo",value:function updateRDPTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRDPTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-rdp-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateRDPTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateRDPTargetDetails", - value: function updateRDPTargetDetails(body) { - return this.updateRDPTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateRDPTargetDetails",value:function updateRDPTargetDetails(body){return this.updateRDPTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateRabbitMQTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRabbitMQTargetOutput} and HTTP response - */ - - }, { - key: "updateRabbitMQTargetWithHttpInfo", - value: function updateRabbitMQTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateRabbitMQTargetOutput["default"]; - return this.apiClient.callApi('/update-rabbitmq-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateRabbitMQTargetWithHttpInfo",value:function updateRabbitMQTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateRabbitMQTargetOutput["default"];return this.apiClient.callApi('/update-rabbitmq-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateRabbitMQTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRabbitMQTargetOutput} - */ - - }, { - key: "updateRabbitMQTarget", - value: function updateRabbitMQTarget(body) { - return this.updateRabbitMQTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateRabbitMQTarget",value:function updateRabbitMQTarget(body){return this.updateRabbitMQTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateRabbitMQTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateRabbitMQTargetDetailsWithHttpInfo", - value: function updateRabbitMQTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-rabbitmq-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateRabbitMQTargetDetailsWithHttpInfo",value:function updateRabbitMQTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-rabbitmq-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateRabbitMQTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateRabbitMQTargetDetails", - value: function updateRabbitMQTargetDetails(body) { - return this.updateRabbitMQTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateRabbitMQTargetDetails",value:function updateRabbitMQTargetDetails(body){return this.updateRabbitMQTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateRole} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRoleOutput} and HTTP response - */ - - }, { - key: "updateRoleWithHttpInfo", - value: function updateRoleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRole"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateRoleOutput["default"]; - return this.apiClient.callApi('/update-role', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateRoleWithHttpInfo",value:function updateRoleWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRole");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateRoleOutput["default"];return this.apiClient.callApi('/update-role','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateRole} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRoleOutput} - */ - - }, { - key: "updateRole", - value: function updateRole(body) { - return this.updateRoleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateRole",value:function updateRole(body){return this.updateRoleWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateRotatedSecret} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRotatedSecretOutput} and HTTP response - */ - - }, { - key: "updateRotatedSecretWithHttpInfo", - value: function updateRotatedSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRotatedSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateRotatedSecretOutput["default"]; - return this.apiClient.callApi('/update-rotated-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateRotatedSecretWithHttpInfo",value:function updateRotatedSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRotatedSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateRotatedSecretOutput["default"];return this.apiClient.callApi('/update-rotated-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateRotatedSecret} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRotatedSecretOutput} - */ - - }, { - key: "updateRotatedSecret", - value: function updateRotatedSecret(body) { - return this.updateRotatedSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateRotatedSecret",value:function updateRotatedSecret(body){return this.updateRotatedSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateRotationSettings} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateKeyOutput} and HTTP response - */ - - }, { - key: "updateRotationSettingsWithHttpInfo", - value: function updateRotationSettingsWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _RotateKeyOutput["default"]; - return this.apiClient.callApi('/update-rotation-settingsrotate-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateRotationSettingsWithHttpInfo",value:function updateRotationSettingsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRotationSettings");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotateKeyOutput["default"];return this.apiClient.callApi('/update-rotation-settings','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateRotationSettings} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateKeyOutput} - */ - - }, { - key: "updateRotationSettings", - value: function updateRotationSettings() { - return this.updateRotationSettingsWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateRotationSettings",value:function updateRotationSettings(body){return this.updateRotationSettingsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateSSHCertIssuer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSSHCertIssuerOutput} and HTTP response - */ - - }, { - key: "updateSSHCertIssuerWithHttpInfo", - value: function updateSSHCertIssuerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSSHCertIssuer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSSHCertIssuerOutput["default"]; - return this.apiClient.callApi('/update-ssh-cert-issuer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateSSHCertIssuerWithHttpInfo",value:function updateSSHCertIssuerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSSHCertIssuer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSSHCertIssuerOutput["default"];return this.apiClient.callApi('/update-ssh-cert-issuer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateSSHCertIssuer} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSSHCertIssuerOutput} - */ - - }, { - key: "updateSSHCertIssuer", - value: function updateSSHCertIssuer(body) { - return this.updateSSHCertIssuerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateSSHCertIssuer",value:function updateSSHCertIssuer(body){return this.updateSSHCertIssuerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateSSHTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSSHTargetOutput} and HTTP response - */ - - }, { - key: "updateSSHTargetWithHttpInfo", - value: function updateSSHTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSSHTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSSHTargetOutput["default"]; - return this.apiClient.callApi('/update-ssh-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateSSHTargetWithHttpInfo",value:function updateSSHTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSSHTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSSHTargetOutput["default"];return this.apiClient.callApi('/update-ssh-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateSSHTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSSHTargetOutput} - */ - - }, { - key: "updateSSHTarget", - value: function updateSSHTarget(body) { - return this.updateSSHTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateSSHTarget",value:function updateSSHTarget(body){return this.updateSSHTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateSSHTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateSSHTargetDetailsWithHttpInfo", - value: function updateSSHTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSSHTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-ssh-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateSSHTargetDetailsWithHttpInfo",value:function updateSSHTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSSHTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-ssh-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateSSHTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateSSHTargetDetails", - value: function updateSSHTargetDetails(body) { - return this.updateSSHTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateSSHTargetDetails",value:function updateSSHTargetDetails(body){return this.updateSSHTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateSalesforceTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSalesforceTargetOutput} and HTTP response - */ - - }, { - key: "updateSalesforceTargetWithHttpInfo", - value: function updateSalesforceTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSalesforceTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSalesforceTargetOutput["default"]; - return this.apiClient.callApi('/update-salesforce-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateSalesforceTargetWithHttpInfo",value:function updateSalesforceTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSalesforceTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSalesforceTargetOutput["default"];return this.apiClient.callApi('/update-salesforce-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateSalesforceTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSalesforceTargetOutput} - */ - - }, { - key: "updateSalesforceTarget", - value: function updateSalesforceTarget(body) { - return this.updateSalesforceTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateSalesforceTarget",value:function updateSalesforceTarget(body){return this.updateSalesforceTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateSecretVal} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSecretValOutput} and HTTP response - */ - - }, { - key: "updateSecretValWithHttpInfo", - value: function updateSecretValWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSecretVal"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSecretValOutput["default"]; - return this.apiClient.callApi('/update-secret-val', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateSecretValWithHttpInfo",value:function updateSecretValWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSecretVal");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSecretValOutput["default"];return this.apiClient.callApi('/update-secret-val','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateSecretVal} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSecretValOutput} - */ - - }, { - key: "updateSecretVal", - value: function updateSecretVal(body) { - return this.updateSecretValWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateSecretVal",value:function updateSecretVal(body){return this.updateSecretValWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateTargetWithHttpInfo", - value: function updateTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateTargetWithHttpInfo",value:function updateTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateTarget", - value: function updateTarget(body) { - return this.updateTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateTarget",value:function updateTarget(body){return this.updateTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateTargetDetailsWithHttpInfo", - value: function updateTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateTargetDetailsWithHttpInfo",value:function updateTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateTargetDetails", - value: function updateTargetDetails(body) { - return this.updateTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateTargetDetails",value:function updateTargetDetails(body){return this.updateTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateWebTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateWebTargetOutput} and HTTP response - */ - - }, { - key: "updateWebTargetWithHttpInfo", - value: function updateWebTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateWebTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateWebTargetOutput["default"]; - return this.apiClient.callApi('/update-web-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateWebTargetWithHttpInfo",value:function updateWebTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateWebTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateWebTargetOutput["default"];return this.apiClient.callApi('/update-web-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateWebTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateWebTargetOutput} - */ - - }, { - key: "updateWebTarget", - value: function updateWebTarget(body) { - return this.updateWebTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateWebTarget",value:function updateWebTarget(body){return this.updateWebTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateWebTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateWebTargetDetailsWithHttpInfo", - value: function updateWebTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateWebTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-web-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateWebTargetDetailsWithHttpInfo",value:function updateWebTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateWebTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-web-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateWebTargetDetails} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateWebTargetDetails", - value: function updateWebTargetDetails(body) { - return this.updateWebTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateWebTargetDetails",value:function updateWebTargetDetails(body){return this.updateWebTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateWindowsTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateWindowsTargetWithHttpInfo", - value: function updateWindowsTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateWindowsTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-windows-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateWindowsTargetWithHttpInfo",value:function updateWindowsTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateWindowsTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-windows-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateWindowsTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateWindowsTarget", - value: function updateWindowsTarget(body) { - return this.updateWindowsTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateWindowsTarget",value:function updateWindowsTarget(body){return this.updateWindowsTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UpdateZeroSSLTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateZeroSSLTargetOutput} and HTTP response - */ - - }, { - key: "updateZeroSSLTargetWithHttpInfo", - value: function updateZeroSSLTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateZeroSSLTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateZeroSSLTargetOutput["default"]; - return this.apiClient.callApi('/update-zerossl-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"updateZeroSSLTargetWithHttpInfo",value:function updateZeroSSLTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateZeroSSLTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateZeroSSLTargetOutput["default"];return this.apiClient.callApi('/update-zerossl-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UpdateZeroSSLTarget} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateZeroSSLTargetOutput} - */ - - }, { - key: "updateZeroSSLTarget", - value: function updateZeroSSLTarget(body) { - return this.updateZeroSSLTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"updateZeroSSLTarget",value:function updateZeroSSLTarget(body){return this.updateZeroSSLTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/UploadRSA} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "uploadRSAWithHttpInfo", - value: function uploadRSAWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uploadRSA"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/upload-rsa', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"uploadRSAWithHttpInfo",value:function uploadRSAWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uploadRSA");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/upload-rsa','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/UploadRSA} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "uploadRSA", - value: function uploadRSA(body) { - return this.uploadRSAWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"uploadRSA",value:function uploadRSA(body){return this.uploadRSAWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscCreateSecretOutput} and HTTP response + */},{key:"uscCreateWithHttpInfo",value:function uscCreateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscCreate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscCreateSecretOutput["default"];return this.apiClient.callApi('/usc-create','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscCreateSecretOutput} + */},{key:"uscCreate",value:function uscCreate(body){return this.uscCreateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscDeleteSecretOutput} and HTTP response + */},{key:"uscDeleteWithHttpInfo",value:function uscDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscDeleteSecretOutput["default"];return this.apiClient.callApi('/usc-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscDeleteSecretOutput} + */},{key:"uscDelete",value:function uscDelete(body){return this.uscDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscGetSecretOutput} and HTTP response + */},{key:"uscGetWithHttpInfo",value:function uscGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscGetSecretOutput["default"];return this.apiClient.callApi('/usc-get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscGetSecretOutput} + */},{key:"uscGet",value:function uscGet(body){return this.uscGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscListSecretsOutput} and HTTP response + */},{key:"uscListWithHttpInfo",value:function uscListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscListSecretsOutput["default"];return this.apiClient.callApi('/usc-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscListSecretsOutput} + */},{key:"uscList",value:function uscList(body){return this.uscListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscUpdateSecretOutput} and HTTP response + */},{key:"uscUpdateWithHttpInfo",value:function uscUpdateWithHttpInfo(){var postBody=null;var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=[];var accepts=['application/json'];var returnType=_UscUpdateSecretOutput["default"];return this.apiClient.callApi('/usc-update','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscUpdateSecretOutput} + */},{key:"uscUpdate",value:function uscUpdate(){return this.uscUpdateWithHttpInfo().then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/ValidateToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ValidateTokenOutput} and HTTP response - */ - - }, { - key: "validateTokenWithHttpInfo", - value: function validateTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling validateToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ValidateTokenOutput["default"]; - return this.apiClient.callApi('/validate-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"validateTokenWithHttpInfo",value:function validateTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling validateToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ValidateTokenOutput["default"];return this.apiClient.callApi('/validate-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/ValidateToken} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ValidateTokenOutput} - */ - - }, { - key: "validateToken", - value: function validateToken(body) { - return this.validateTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"validateToken",value:function validateToken(body){return this.validateTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/VerifyDataWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyPKICertOutput} and HTTP response - */ - - }, { - key: "verifyDataWithClassicKeyWithHttpInfo", - value: function verifyDataWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyDataWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _VerifyPKICertOutput["default"]; - return this.apiClient.callApi('/verify-data-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"verifyDataWithClassicKeyWithHttpInfo",value:function verifyDataWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyDataWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_VerifyPKICertOutput["default"];return this.apiClient.callApi('/verify-data-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/VerifyDataWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyPKICertOutput} - */ - - }, { - key: "verifyDataWithClassicKey", - value: function verifyDataWithClassicKey(body) { - return this.verifyDataWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"verifyDataWithClassicKey",value:function verifyDataWithClassicKey(body){return this.verifyDataWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"verifyEcDsaWithHttpInfo",value:function verifyEcDsaWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyEcDsa");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-ecdsa','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"verifyEcDsa",value:function verifyEcDsa(body){return this.verifyEcDsaWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/VerifyGPG} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "verifyGPGWithHttpInfo", - value: function verifyGPGWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyGPG"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/verify-gpg', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"verifyGPGWithHttpInfo",value:function verifyGPGWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyGPG");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-gpg','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/VerifyGPG} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "verifyGPG", - value: function verifyGPG(body) { - return this.verifyGPGWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"verifyGPG",value:function verifyGPG(body){return this.verifyGPGWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/VerifyJWTWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyJWTOutput} and HTTP response - */ - - }, { - key: "verifyJWTWithClassicKeyWithHttpInfo", - value: function verifyJWTWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyJWTWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _VerifyJWTOutput["default"]; - return this.apiClient.callApi('/verify-jwt-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"verifyJWTWithClassicKeyWithHttpInfo",value:function verifyJWTWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyJWTWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_VerifyJWTOutput["default"];return this.apiClient.callApi('/verify-jwt-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/VerifyJWTWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyJWTOutput} - */ - - }, { - key: "verifyJWTWithClassicKey", - value: function verifyJWTWithClassicKey(body) { - return this.verifyJWTWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"verifyJWTWithClassicKey",value:function verifyJWTWithClassicKey(body){return this.verifyJWTWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/VerifyPKCS1} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "verifyPKCS1WithHttpInfo", - value: function verifyPKCS1WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyPKCS1"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/verify-pkcs1', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"verifyPKCS1WithHttpInfo",value:function verifyPKCS1WithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyPKCS1");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-pkcs1','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/VerifyPKCS1} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "verifyPKCS1", - value: function verifyPKCS1(body) { - return this.verifyPKCS1WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** + */},{key:"verifyPKCS1",value:function verifyPKCS1(body){return this.verifyPKCS1WithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** * @param {module:model/VerifyPKICertWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyPKICertOutput} and HTTP response - */ - - }, { - key: "verifyPKICertWithClassicKeyWithHttpInfo", - value: function verifyPKICertWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyPKICertWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _VerifyPKICertOutput["default"]; - return this.apiClient.callApi('/verify-pki-cert-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** + */},{key:"verifyPKICertWithClassicKeyWithHttpInfo",value:function verifyPKICertWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyPKICertWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_VerifyPKICertOutput["default"];return this.apiClient.callApi('/verify-pki-cert-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** * @param {module:model/VerifyPKICertWithClassicKey} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyPKICertOutput} - */ - - }, { - key: "verifyPKICertWithClassicKey", - value: function verifyPKICertWithClassicKey(body) { - return this.verifyPKICertWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - }]); - - return V2Api; -}(); - -exports["default"] = V2Api; + */},{key:"verifyPKICertWithClassicKey",value:function verifyPKICertWithClassicKey(body){return this.verifyPKICertWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"verifyRsaSsaPssWithHttpInfo",value:function verifyRsaSsaPssWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyRsaSsaPss");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-rsassa-pss','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"verifyRsaSsaPss",value:function verifyRsaSsaPss(body){return this.verifyRsaSsaPssWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}}]);return V2Api;}();exports["default"]=V2Api; /***/ }), -/***/ 36247: +/***/ 57619: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -14303,5572 +47372,44399 @@ exports["default"] = V2Api; Object.defineProperty(exports, "__esModule", ({ value: true })); -Object.defineProperty(exports, "ApiClient", ({ +Object.defineProperty(exports, "ApiClient", ({ + enumerable: true, + get: function get() { + return _ApiClient["default"]; + } +})); +Object.defineProperty(exports, "APIKeyAccessRules", ({ + enumerable: true, + get: function get() { + return _APIKeyAccessRules["default"]; + } +})); +Object.defineProperty(exports, "AWSIAMAccessRules", ({ + enumerable: true, + get: function get() { + return _AWSIAMAccessRules["default"]; + } +})); +Object.defineProperty(exports, "AWSPayload", ({ + enumerable: true, + get: function get() { + return _AWSPayload["default"]; + } +})); +Object.defineProperty(exports, "AWSSecretsMigration", ({ + enumerable: true, + get: function get() { + return _AWSSecretsMigration["default"]; + } +})); +Object.defineProperty(exports, "AWSTargetDetails", ({ + enumerable: true, + get: function get() { + return _AWSTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "AccessOrGroupPermissionAssignment", ({ + enumerable: true, + get: function get() { + return _AccessOrGroupPermissionAssignment["default"]; + } +})); +Object.defineProperty(exports, "AccessPermissionAssignment", ({ + enumerable: true, + get: function get() { + return _AccessPermissionAssignment["default"]; + } +})); +Object.defineProperty(exports, "AccountGeneralSettings", ({ + enumerable: true, + get: function get() { + return _AccountGeneralSettings["default"]; + } +})); +Object.defineProperty(exports, "AccountObjectVersionSettingsOutput", ({ + enumerable: true, + get: function get() { + return _AccountObjectVersionSettingsOutput["default"]; + } +})); +Object.defineProperty(exports, "ActiveDirectoryMigration", ({ + enumerable: true, + get: function get() { + return _ActiveDirectoryMigration["default"]; + } +})); +Object.defineProperty(exports, "ActiveDirectoryPayload", ({ + enumerable: true, + get: function get() { + return _ActiveDirectoryPayload["default"]; + } +})); +Object.defineProperty(exports, "AddGatewayAllowedAccessId", ({ + enumerable: true, + get: function get() { + return _AddGatewayAllowedAccessId["default"]; + } +})); +Object.defineProperty(exports, "AdminsConfigPart", ({ + enumerable: true, + get: function get() { + return _AdminsConfigPart["default"]; + } +})); +Object.defineProperty(exports, "AkeylessGatewayConfig", ({ + enumerable: true, + get: function get() { + return _AkeylessGatewayConfig["default"]; + } +})); +Object.defineProperty(exports, "AllAnalyticsData", ({ + enumerable: true, + get: function get() { + return _AllAnalyticsData["default"]; + } +})); +Object.defineProperty(exports, "AllowedAccess", ({ + enumerable: true, + get: function get() { + return _AllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "AllowedAccessOld", ({ + enumerable: true, + get: function get() { + return _AllowedAccessOld["default"]; + } +})); +Object.defineProperty(exports, "ArtifactoryTargetDetails", ({ + enumerable: true, + get: function get() { + return _ArtifactoryTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "AssocRoleAuthMethod", ({ + enumerable: true, + get: function get() { + return _AssocRoleAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "AssocTargetItem", ({ + enumerable: true, + get: function get() { + return _AssocTargetItem["default"]; + } +})); +Object.defineProperty(exports, "AttributeTypeAndValue", ({ + enumerable: true, + get: function get() { + return _AttributeTypeAndValue["default"]; + } +})); +Object.defineProperty(exports, "Auth", ({ + enumerable: true, + get: function get() { + return _Auth["default"]; + } +})); +Object.defineProperty(exports, "AuthMethod", ({ + enumerable: true, + get: function get() { + return _AuthMethod["default"]; + } +})); +Object.defineProperty(exports, "AuthMethodAccessInfo", ({ + enumerable: true, + get: function get() { + return _AuthMethodAccessInfo["default"]; + } +})); +Object.defineProperty(exports, "AuthMethodRoleAssociation", ({ + enumerable: true, + get: function get() { + return _AuthMethodRoleAssociation["default"]; + } +})); +Object.defineProperty(exports, "AuthOutput", ({ + enumerable: true, + get: function get() { + return _AuthOutput["default"]; + } +})); +Object.defineProperty(exports, "AwsS3LogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _AwsS3LogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "AzureADAccessRules", ({ + enumerable: true, + get: function get() { + return _AzureADAccessRules["default"]; + } +})); +Object.defineProperty(exports, "AzureKeyVaultMigration", ({ + enumerable: true, + get: function get() { + return _AzureKeyVaultMigration["default"]; + } +})); +Object.defineProperty(exports, "AzureLogAnalyticsForwardingConfig", ({ + enumerable: true, + get: function get() { + return _AzureLogAnalyticsForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "AzurePayload", ({ + enumerable: true, + get: function get() { + return _AzurePayload["default"]; + } +})); +Object.defineProperty(exports, "AzureTargetDetails", ({ + enumerable: true, + get: function get() { + return _AzureTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "BastionListEntry", ({ + enumerable: true, + get: function get() { + return _BastionListEntry["default"]; + } +})); +Object.defineProperty(exports, "BastionsList", ({ + enumerable: true, + get: function get() { + return _BastionsList["default"]; + } +})); +Object.defineProperty(exports, "CFConfigPart", ({ + enumerable: true, + get: function get() { + return _CFConfigPart["default"]; + } +})); +Object.defineProperty(exports, "CacheConfigPart", ({ + enumerable: true, + get: function get() { + return _CacheConfigPart["default"]; + } +})); +Object.defineProperty(exports, "CertAccessRules", ({ + enumerable: true, + get: function get() { + return _CertAccessRules["default"]; + } +})); +Object.defineProperty(exports, "CertificateAnalyticAggregation", ({ + enumerable: true, + get: function get() { + return _CertificateAnalyticAggregation["default"]; + } +})); +Object.defineProperty(exports, "CertificateChainInfo", ({ + enumerable: true, + get: function get() { + return _CertificateChainInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateExpirationEvent", ({ + enumerable: true, + get: function get() { + return _CertificateExpirationEvent["default"]; + } +})); +Object.defineProperty(exports, "CertificateInfo", ({ + enumerable: true, + get: function get() { + return _CertificateInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateIssueInfo", ({ + enumerable: true, + get: function get() { + return _CertificateIssueInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateTemplateInfo", ({ + enumerable: true, + get: function get() { + return _CertificateTemplateInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateVersionInfo", ({ + enumerable: true, + get: function get() { + return _CertificateVersionInfo["default"]; + } +})); +Object.defineProperty(exports, "CfInfo", ({ + enumerable: true, + get: function get() { + return _CfInfo["default"]; + } +})); +Object.defineProperty(exports, "ChefTargetDetails", ({ + enumerable: true, + get: function get() { + return _ChefTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "ClassicKeyDetailsInfo", ({ + enumerable: true, + get: function get() { + return _ClassicKeyDetailsInfo["default"]; + } +})); +Object.defineProperty(exports, "ClassicKeyStatusInfo", ({ + enumerable: true, + get: function get() { + return _ClassicKeyStatusInfo["default"]; + } +})); +Object.defineProperty(exports, "ClassicKeyTargetInfo", ({ + enumerable: true, + get: function get() { + return _ClassicKeyTargetInfo["default"]; + } +})); +Object.defineProperty(exports, "ClientData", ({ + enumerable: true, + get: function get() { + return _ClientData["default"]; + } +})); +Object.defineProperty(exports, "ClientUsageInfo", ({ + enumerable: true, + get: function get() { + return _ClientUsageInfo["default"]; + } +})); +Object.defineProperty(exports, "ClientsUsageReport", ({ + enumerable: true, + get: function get() { + return _ClientsUsageReport["default"]; + } +})); +Object.defineProperty(exports, "ConfigChange", ({ + enumerable: true, + get: function get() { + return _ConfigChange["default"]; + } +})); +Object.defineProperty(exports, "ConfigHash", ({ + enumerable: true, + get: function get() { + return _ConfigHash["default"]; + } +})); +Object.defineProperty(exports, "Configure", ({ + enumerable: true, + get: function get() { + return _Configure["default"]; + } +})); +Object.defineProperty(exports, "ConfigureOutput", ({ + enumerable: true, + get: function get() { + return _ConfigureOutput["default"]; + } +})); +Object.defineProperty(exports, "Connect", ({ + enumerable: true, + get: function get() { + return _Connect["default"]; + } +})); +Object.defineProperty(exports, "CreateAWSTarget", ({ + enumerable: true, + get: function get() { + return _CreateAWSTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateAWSTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateAWSTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateArtifactoryTarget", ({ + enumerable: true, + get: function get() { + return _CreateArtifactoryTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateArtifactoryTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateArtifactoryTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethod", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAWSIAM", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAWSIAM["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAWSIAMOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAWSIAMOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAzureAD", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAzureAD["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAzureADOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAzureADOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodCert", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodCert["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodCertOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodCertOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodEmail", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodEmail["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodEmailOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodEmailOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodGCP", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodGCP["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodGCPOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodGCPOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodHuawei", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodHuawei["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodHuaweiOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodHuaweiOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodK8S", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodK8S["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodK8SOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodK8SOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodLDAP", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodLDAP["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodLDAPOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodLDAPOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOAuth2", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOAuth["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOAuth2Output", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOAuth2Output["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOCI", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOCI["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOCIOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOCIOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOIDC", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOIDC["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOIDCOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOIDCOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodSAML", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodSAML["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodSAMLOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodSAMLOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodUniversalIdentity", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodUniversalIdentity["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodUniversalIdentityOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodUniversalIdentityOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAzureTarget", ({ + enumerable: true, + get: function get() { + return _CreateAzureTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateAzureTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateAzureTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateCertificate", ({ + enumerable: true, + get: function get() { + return _CreateCertificate["default"]; + } +})); +Object.defineProperty(exports, "CreateCertificateOutput", ({ + enumerable: true, + get: function get() { + return _CreateCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateClassicKey", ({ + enumerable: true, + get: function get() { + return _CreateClassicKey["default"]; + } +})); +Object.defineProperty(exports, "CreateClassicKeyOutput", ({ + enumerable: true, + get: function get() { + return _CreateClassicKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDBTarget", ({ + enumerable: true, + get: function get() { + return _CreateDBTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateDBTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateDBTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDFCKey", ({ + enumerable: true, + get: function get() { + return _CreateDFCKey["default"]; + } +})); +Object.defineProperty(exports, "CreateDFCKeyOutput", ({ + enumerable: true, + get: function get() { + return _CreateDFCKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDockerhubTarget", ({ + enumerable: true, + get: function get() { + return _CreateDockerhubTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateDockerhubTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateDockerhubTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDynamicSecret", ({ + enumerable: true, + get: function get() { + return _CreateDynamicSecret["default"]; + } +})); +Object.defineProperty(exports, "CreateEKSTarget", ({ + enumerable: true, + get: function get() { + return _CreateEKSTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateEKSTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateEKSTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateESM", ({ + enumerable: true, + get: function get() { + return _CreateESM["default"]; + } +})); +Object.defineProperty(exports, "CreateESMOutput", ({ + enumerable: true, + get: function get() { + return _CreateESMOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateEventForwarder", ({ + enumerable: true, + get: function get() { + return _CreateEventForwarder["default"]; + } +})); +Object.defineProperty(exports, "CreateEventForwarderOutput", ({ + enumerable: true, + get: function get() { + return _CreateEventForwarderOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGKETarget", ({ + enumerable: true, + get: function get() { + return _CreateGKETarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGKETargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGKETargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGcpTarget", ({ + enumerable: true, + get: function get() { + return _CreateGcpTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGcpTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGcpTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGithubTarget", ({ + enumerable: true, + get: function get() { + return _CreateGithubTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGithubTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGithubTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignAtlasTarget", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignAtlasTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignAtlasTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignAtlasTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignTarget", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGodaddyTarget", ({ + enumerable: true, + get: function get() { + return _CreateGodaddyTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGodaddyTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGodaddyTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGroup", ({ + enumerable: true, + get: function get() { + return _CreateGroup["default"]; + } +})); +Object.defineProperty(exports, "CreateGroupOutput", ({ + enumerable: true, + get: function get() { + return _CreateGroupOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateKey", ({ + enumerable: true, + get: function get() { + return _CreateKey["default"]; + } +})); +Object.defineProperty(exports, "CreateKeyOutput", ({ + enumerable: true, + get: function get() { + return _CreateKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateLdapTarget", ({ + enumerable: true, + get: function get() { + return _CreateLdapTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateLdapTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateLdapTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateLinkedTarget", ({ + enumerable: true, + get: function get() { + return _CreateLinkedTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateLinkedTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateLinkedTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateNativeK8STarget", ({ + enumerable: true, + get: function get() { + return _CreateNativeK8STarget["default"]; + } +})); +Object.defineProperty(exports, "CreateNativeK8STargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateNativeK8STargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateOidcApp", ({ + enumerable: true, + get: function get() { + return _CreateOidcApp["default"]; + } +})); +Object.defineProperty(exports, "CreateOidcAppOutput", ({ + enumerable: true, + get: function get() { + return _CreateOidcAppOutput["default"]; + } +})); +Object.defineProperty(exports, "CreatePKICertIssuer", ({ + enumerable: true, + get: function get() { + return _CreatePKICertIssuer["default"]; + } +})); +Object.defineProperty(exports, "CreatePKICertIssuerOutput", ({ + enumerable: true, + get: function get() { + return _CreatePKICertIssuerOutput["default"]; + } +})); +Object.defineProperty(exports, "CreatePingTarget", ({ + enumerable: true, + get: function get() { + return _CreatePingTarget["default"]; + } +})); +Object.defineProperty(exports, "CreatePingTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreatePingTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateRabbitMQTarget", ({ + enumerable: true, + get: function get() { + return _CreateRabbitMQTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateRabbitMQTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateRabbitMQTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateRole", ({ + enumerable: true, + get: function get() { + return _CreateRole["default"]; + } +})); +Object.defineProperty(exports, "CreateRoleAuthMethodAssocOutput", ({ + enumerable: true, + get: function get() { + return _CreateRoleAuthMethodAssocOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateRotatedSecret", ({ + enumerable: true, + get: function get() { + return _CreateRotatedSecret["default"]; + } +})); +Object.defineProperty(exports, "CreateRotatedSecretOutput", ({ + enumerable: true, + get: function get() { + return _CreateRotatedSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHCertIssuer", ({ + enumerable: true, + get: function get() { + return _CreateSSHCertIssuer["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHCertIssuerOutput", ({ + enumerable: true, + get: function get() { + return _CreateSSHCertIssuerOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHTarget", ({ + enumerable: true, + get: function get() { + return _CreateSSHTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateSSHTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSalesforceTarget", ({ + enumerable: true, + get: function get() { + return _CreateSalesforceTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateSalesforceTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateSalesforceTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSecret", ({ + enumerable: true, + get: function get() { + return _CreateSecret["default"]; + } +})); +Object.defineProperty(exports, "CreateSecretOutput", ({ + enumerable: true, + get: function get() { + return _CreateSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateTargetItemAssocOutput", ({ + enumerable: true, + get: function get() { + return _CreateTargetItemAssocOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateTokenizer", ({ + enumerable: true, + get: function get() { + return _CreateTokenizer["default"]; + } +})); +Object.defineProperty(exports, "CreateTokenizerOutput", ({ + enumerable: true, + get: function get() { + return _CreateTokenizerOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateUSC", ({ + enumerable: true, + get: function get() { + return _CreateUSC["default"]; + } +})); +Object.defineProperty(exports, "CreateUSCOutput", ({ + enumerable: true, + get: function get() { + return _CreateUSCOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateUserEvent", ({ + enumerable: true, + get: function get() { + return _CreateUserEvent["default"]; + } +})); +Object.defineProperty(exports, "CreateUserEventOutput", ({ + enumerable: true, + get: function get() { + return _CreateUserEventOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateWebTarget", ({ + enumerable: true, + get: function get() { + return _CreateWebTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateWebTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateWebTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateWindowsTarget", ({ + enumerable: true, + get: function get() { + return _CreateWindowsTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateWindowsTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateWindowsTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateZeroSSLTarget", ({ + enumerable: true, + get: function get() { + return _CreateZeroSSLTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateZeroSSLTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateZeroSSLTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CustomTargetDetails", ({ + enumerable: true, + get: function get() { + return _CustomTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "CustomerFragmentConfig", ({ + enumerable: true, + get: function get() { + return _CustomerFragmentConfig["default"]; + } +})); +Object.defineProperty(exports, "CustomerFragmentsConfigJson", ({ + enumerable: true, + get: function get() { + return _CustomerFragmentsConfigJson["default"]; + } +})); +Object.defineProperty(exports, "CustomerFullAddress", ({ + enumerable: true, + get: function get() { + return _CustomerFullAddress["default"]; + } +})); +Object.defineProperty(exports, "DSProducerDetails", ({ + enumerable: true, + get: function get() { + return _DSProducerDetails["default"]; + } +})); +Object.defineProperty(exports, "DataProtectionSection", ({ + enumerable: true, + get: function get() { + return _DataProtectionSection["default"]; + } +})); +Object.defineProperty(exports, "DatadogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _DatadogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "DbTargetDetails", ({ + enumerable: true, + get: function get() { + return _DbTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "Decrypt", ({ + enumerable: true, + get: function get() { + return _Decrypt["default"]; + } +})); +Object.defineProperty(exports, "DecryptFile", ({ + enumerable: true, + get: function get() { + return _DecryptFile["default"]; + } +})); +Object.defineProperty(exports, "DecryptFileOutput", ({ + enumerable: true, + get: function get() { + return _DecryptFileOutput["default"]; + } +})); +Object.defineProperty(exports, "DecryptGPG", ({ + enumerable: true, + get: function get() { + return _DecryptGPG["default"]; + } +})); +Object.defineProperty(exports, "DecryptGPGOutput", ({ + enumerable: true, + get: function get() { + return _DecryptGPGOutput["default"]; + } +})); +Object.defineProperty(exports, "DecryptOutput", ({ + enumerable: true, + get: function get() { + return _DecryptOutput["default"]; + } +})); +Object.defineProperty(exports, "DecryptPKCS1", ({ + enumerable: true, + get: function get() { + return _DecryptPKCS["default"]; + } +})); +Object.defineProperty(exports, "DecryptPKCS1Output", ({ + enumerable: true, + get: function get() { + return _DecryptPKCS1Output["default"]; + } +})); +Object.defineProperty(exports, "DecryptWithClassicKey", ({ + enumerable: true, + get: function get() { + return _DecryptWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "DecryptWithClassicKeyOutput", ({ + enumerable: true, + get: function get() { + return _DecryptWithClassicKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "DefaultConfigPart", ({ + enumerable: true, + get: function get() { + return _DefaultConfigPart["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethod", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethodOutput", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethodOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethods", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethods["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethodsOutput", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethodsOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteEventForwarder", ({ + enumerable: true, + get: function get() { + return _DeleteEventForwarder["default"]; + } +})); +Object.defineProperty(exports, "DeleteGatewayAllowedAccessId", ({ + enumerable: true, + get: function get() { + return _DeleteGatewayAllowedAccessId["default"]; + } +})); +Object.defineProperty(exports, "DeleteGroup", ({ + enumerable: true, + get: function get() { + return _DeleteGroup["default"]; + } +})); +Object.defineProperty(exports, "DeleteGroupOutput", ({ + enumerable: true, + get: function get() { + return _DeleteGroupOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteGwCluster", ({ + enumerable: true, + get: function get() { + return _DeleteGwCluster["default"]; + } +})); +Object.defineProperty(exports, "DeleteItem", ({ + enumerable: true, + get: function get() { + return _DeleteItem["default"]; + } +})); +Object.defineProperty(exports, "DeleteItemOutput", ({ + enumerable: true, + get: function get() { + return _DeleteItemOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteItems", ({ + enumerable: true, + get: function get() { + return _DeleteItems["default"]; + } +})); +Object.defineProperty(exports, "DeleteItemsOutput", ({ + enumerable: true, + get: function get() { + return _DeleteItemsOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteRole", ({ + enumerable: true, + get: function get() { + return _DeleteRole["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoleAssociation", ({ + enumerable: true, + get: function get() { + return _DeleteRoleAssociation["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoleRule", ({ + enumerable: true, + get: function get() { + return _DeleteRoleRule["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoleRuleOutput", ({ + enumerable: true, + get: function get() { + return _DeleteRoleRuleOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoles", ({ + enumerable: true, + get: function get() { + return _DeleteRoles["default"]; + } +})); +Object.defineProperty(exports, "DeleteTarget", ({ + enumerable: true, + get: function get() { + return _DeleteTarget["default"]; + } +})); +Object.defineProperty(exports, "DeleteTargetAssociation", ({ + enumerable: true, + get: function get() { + return _DeleteTargetAssociation["default"]; + } +})); +Object.defineProperty(exports, "DeleteTargets", ({ + enumerable: true, + get: function get() { + return _DeleteTargets["default"]; + } +})); +Object.defineProperty(exports, "DeriveKey", ({ + enumerable: true, + get: function get() { + return _DeriveKey["default"]; + } +})); +Object.defineProperty(exports, "DeriveKeyOutput", ({ + enumerable: true, + get: function get() { + return _DeriveKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "DescribeAssoc", ({ + enumerable: true, + get: function get() { + return _DescribeAssoc["default"]; + } +})); +Object.defineProperty(exports, "DescribeItem", ({ + enumerable: true, + get: function get() { + return _DescribeItem["default"]; + } +})); +Object.defineProperty(exports, "DescribePermissions", ({ + enumerable: true, + get: function get() { + return _DescribePermissions["default"]; + } +})); +Object.defineProperty(exports, "DescribePermissionsOutput", ({ + enumerable: true, + get: function get() { + return _DescribePermissionsOutput["default"]; + } +})); +Object.defineProperty(exports, "DescribeSubClaims", ({ + enumerable: true, + get: function get() { + return _DescribeSubClaims["default"]; + } +})); +Object.defineProperty(exports, "DescribeSubClaimsOutput", ({ + enumerable: true, + get: function get() { + return _DescribeSubClaimsOutput["default"]; + } +})); +Object.defineProperty(exports, "Detokenize", ({ + enumerable: true, + get: function get() { + return _Detokenize["default"]; + } +})); +Object.defineProperty(exports, "DetokenizeOutput", ({ + enumerable: true, + get: function get() { + return _DetokenizeOutput["default"]; + } +})); +Object.defineProperty(exports, "DockerhubTargetDetails", ({ + enumerable: true, + get: function get() { + return _DockerhubTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateArtifactory", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateArtifactory["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateAws", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateAws["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateAzure", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateAzure["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateCassandra", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateCassandra["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateChef", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateChef["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateCustom", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateCustom["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateDockerhub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateDockerhub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateEks", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateEks["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateGcp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateGcp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateGithub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateGithub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateGke", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateGke["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateHanaDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateHanaDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateK8s", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateK8s["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateLdap", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateLdap["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateMongoDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateMongoDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateMsSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateMsSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateMySql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateMySql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateOracleDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateOracleDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateOutput", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateOutput["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreatePing", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreatePing["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreatePostgreSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreatePostgreSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRabbitMq", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRabbitMq["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRdp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRdp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRedis", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRedis["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRedshift", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRedshift["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateSnowflake", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateSnowflake["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateVenafi", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateVenafi["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretDelete", ({ + enumerable: true, + get: function get() { + return _DynamicSecretDelete["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretDeleteOutput", ({ + enumerable: true, + get: function get() { + return _DynamicSecretDeleteOutput["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretGet", ({ + enumerable: true, + get: function get() { + return _DynamicSecretGet["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretGetValue", ({ + enumerable: true, + get: function get() { + return _DynamicSecretGetValue["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretList", ({ + enumerable: true, + get: function get() { + return _DynamicSecretList["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretMaxTtl", ({ + enumerable: true, + get: function get() { + return _DynamicSecretMaxTtl["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretProducerInfo", ({ + enumerable: true, + get: function get() { + return _DynamicSecretProducerInfo["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretTmpCredsDelete", ({ + enumerable: true, + get: function get() { + return _DynamicSecretTmpCredsDelete["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretTmpCredsGet", ({ + enumerable: true, + get: function get() { + return _DynamicSecretTmpCredsGet["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretTmpCredsUpdate", ({ + enumerable: true, + get: function get() { + return _DynamicSecretTmpCredsUpdate["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateArtifactory", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateArtifactory["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateAws", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateAws["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateAzure", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateAzure["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateCassandra", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateCassandra["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateChef", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateChef["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateCustom", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateCustom["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateDockerhub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateDockerhub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateEks", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateEks["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateGcp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateGcp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateGithub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateGithub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateGke", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateGke["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateHanaDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateHanaDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateK8s", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateK8s["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateLdap", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateLdap["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateMongoDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateMongoDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateMsSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateMsSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateMySql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateMySql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateOracleDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateOracleDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateOutput", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateOutput["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdatePing", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdatePing["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdatePostgreSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdatePostgreSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRabbitMq", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRabbitMq["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRdp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRdp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRedis", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRedis["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRedshift", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRedshift["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateSnowflake", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateSnowflake["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateVenafi", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateVenafi["default"]; + } +})); +Object.defineProperty(exports, "EKSTargetDetails", ({ + enumerable: true, + get: function get() { + return _EKSTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "ElasticsearchLogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _ElasticsearchLogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "EmailEntry", ({ + enumerable: true, + get: function get() { + return _EmailEntry["default"]; + } +})); +Object.defineProperty(exports, "EmailPassAccessRules", ({ + enumerable: true, + get: function get() { + return _EmailPassAccessRules["default"]; + } +})); +Object.defineProperty(exports, "EmailTokenizerInfo", ({ + enumerable: true, + get: function get() { + return _EmailTokenizerInfo["default"]; + } +})); +Object.defineProperty(exports, "Encrypt", ({ + enumerable: true, + get: function get() { + return _Encrypt["default"]; + } +})); +Object.defineProperty(exports, "EncryptFile", ({ + enumerable: true, + get: function get() { + return _EncryptFile["default"]; + } +})); +Object.defineProperty(exports, "EncryptFileOutput", ({ + enumerable: true, + get: function get() { + return _EncryptFileOutput["default"]; + } +})); +Object.defineProperty(exports, "EncryptGPG", ({ + enumerable: true, + get: function get() { + return _EncryptGPG["default"]; + } +})); +Object.defineProperty(exports, "EncryptGPGOutput", ({ + enumerable: true, + get: function get() { + return _EncryptGPGOutput["default"]; + } +})); +Object.defineProperty(exports, "EncryptOutput", ({ enumerable: true, get: function get() { - return _ApiClient["default"]; + return _EncryptOutput["default"]; } })); -Object.defineProperty(exports, "APIKeyAccessRules", ({ +Object.defineProperty(exports, "EncryptWithClassicKey", ({ enumerable: true, get: function get() { - return _APIKeyAccessRules["default"]; + return _EncryptWithClassicKey["default"]; } })); -Object.defineProperty(exports, "AWSIAMAccessRules", ({ +Object.defineProperty(exports, "EncryptWithClassicKeyOutput", ({ enumerable: true, get: function get() { - return _AWSIAMAccessRules["default"]; + return _EncryptWithClassicKeyOutput["default"]; } })); -Object.defineProperty(exports, "AWSPayload", ({ +Object.defineProperty(exports, "EsmCreate", ({ enumerable: true, get: function get() { - return _AWSPayload["default"]; + return _EsmCreate["default"]; } })); -Object.defineProperty(exports, "AWSSecretsMigration", ({ +Object.defineProperty(exports, "EsmCreateSecretOutput", ({ enumerable: true, get: function get() { - return _AWSSecretsMigration["default"]; + return _EsmCreateSecretOutput["default"]; } })); -Object.defineProperty(exports, "AWSTargetDetails", ({ +Object.defineProperty(exports, "EsmDelete", ({ enumerable: true, get: function get() { - return _AWSTargetDetails["default"]; + return _EsmDelete["default"]; } })); -Object.defineProperty(exports, "AccessPermissionAssignment", ({ +Object.defineProperty(exports, "EsmDeleteSecretOutput", ({ enumerable: true, get: function get() { - return _AccessPermissionAssignment["default"]; + return _EsmDeleteSecretOutput["default"]; } })); -Object.defineProperty(exports, "AccountGeneralSettings", ({ +Object.defineProperty(exports, "EsmGet", ({ enumerable: true, get: function get() { - return _AccountGeneralSettings["default"]; + return _EsmGet["default"]; } })); -Object.defineProperty(exports, "AccountObjectVersionSettingsOutput", ({ +Object.defineProperty(exports, "EsmGetSecretOutput", ({ enumerable: true, get: function get() { - return _AccountObjectVersionSettingsOutput["default"]; + return _EsmGetSecretOutput["default"]; } })); -Object.defineProperty(exports, "ActiveDirectoryMigration", ({ +Object.defineProperty(exports, "EsmList", ({ enumerable: true, get: function get() { - return _ActiveDirectoryMigration["default"]; + return _EsmList["default"]; } })); -Object.defineProperty(exports, "ActiveDirectoryPayload", ({ +Object.defineProperty(exports, "EsmListSecretsOutput", ({ enumerable: true, get: function get() { - return _ActiveDirectoryPayload["default"]; + return _EsmListSecretsOutput["default"]; } })); -Object.defineProperty(exports, "AddGatewayAllowedAccessId", ({ +Object.defineProperty(exports, "EsmUpdate", ({ enumerable: true, get: function get() { - return _AddGatewayAllowedAccessId["default"]; + return _EsmUpdate["default"]; } })); -Object.defineProperty(exports, "AdminsConfigPart", ({ +Object.defineProperty(exports, "EsmUpdateSecretOutput", ({ enumerable: true, get: function get() { - return _AdminsConfigPart["default"]; + return _EsmUpdateSecretOutput["default"]; } })); -Object.defineProperty(exports, "AkeylessGatewayConfig", ({ +Object.defineProperty(exports, "EventAction", ({ enumerable: true, get: function get() { - return _AkeylessGatewayConfig["default"]; + return _EventAction["default"]; } })); -Object.defineProperty(exports, "AllowedAccess", ({ +Object.defineProperty(exports, "EventForwarderCreateEmail", ({ enumerable: true, get: function get() { - return _AllowedAccess["default"]; + return _EventForwarderCreateEmail["default"]; } })); -Object.defineProperty(exports, "AllowedAccessOld", ({ +Object.defineProperty(exports, "EventForwarderCreateServiceNow", ({ enumerable: true, get: function get() { - return _AllowedAccessOld["default"]; + return _EventForwarderCreateServiceNow["default"]; } })); -Object.defineProperty(exports, "ArtifactoryTargetDetails", ({ +Object.defineProperty(exports, "EventForwarderCreateSlack", ({ enumerable: true, get: function get() { - return _ArtifactoryTargetDetails["default"]; + return _EventForwarderCreateSlack["default"]; } })); -Object.defineProperty(exports, "AssocRoleAuthMethod", ({ +Object.defineProperty(exports, "EventForwarderCreateUpdateOutput", ({ enumerable: true, get: function get() { - return _AssocRoleAuthMethod["default"]; + return _EventForwarderCreateUpdateOutput["default"]; } })); -Object.defineProperty(exports, "AssocTargetItem", ({ +Object.defineProperty(exports, "EventForwarderCreateWebhook", ({ enumerable: true, get: function get() { - return _AssocTargetItem["default"]; + return _EventForwarderCreateWebhook["default"]; } })); -Object.defineProperty(exports, "AttributeTypeAndValue", ({ +Object.defineProperty(exports, "EventForwarderDelete", ({ enumerable: true, get: function get() { - return _AttributeTypeAndValue["default"]; + return _EventForwarderDelete["default"]; } })); -Object.defineProperty(exports, "Auth", ({ +Object.defineProperty(exports, "EventForwarderDeleteOutput", ({ enumerable: true, get: function get() { - return _Auth["default"]; + return _EventForwarderDeleteOutput["default"]; } })); -Object.defineProperty(exports, "AuthMethod", ({ +Object.defineProperty(exports, "EventForwarderGet", ({ enumerable: true, get: function get() { - return _AuthMethod["default"]; + return _EventForwarderGet["default"]; } })); -Object.defineProperty(exports, "AuthMethodAccessInfo", ({ +Object.defineProperty(exports, "EventForwarderGetOutput", ({ enumerable: true, get: function get() { - return _AuthMethodAccessInfo["default"]; + return _EventForwarderGetOutput["default"]; } })); -Object.defineProperty(exports, "AuthMethodRoleAssociation", ({ +Object.defineProperty(exports, "EventForwarderUpdateEmail", ({ enumerable: true, get: function get() { - return _AuthMethodRoleAssociation["default"]; + return _EventForwarderUpdateEmail["default"]; } })); -Object.defineProperty(exports, "AuthOutput", ({ +Object.defineProperty(exports, "EventForwarderUpdateServiceNow", ({ enumerable: true, get: function get() { - return _AuthOutput["default"]; + return _EventForwarderUpdateServiceNow["default"]; } })); -Object.defineProperty(exports, "AwsS3LogForwardingConfig", ({ +Object.defineProperty(exports, "EventForwarderUpdateSlack", ({ enumerable: true, get: function get() { - return _AwsS3LogForwardingConfig["default"]; + return _EventForwarderUpdateSlack["default"]; } })); -Object.defineProperty(exports, "AzureADAccessRules", ({ +Object.defineProperty(exports, "EventForwarderUpdateWebhook", ({ enumerable: true, get: function get() { - return _AzureADAccessRules["default"]; + return _EventForwarderUpdateWebhook["default"]; } })); -Object.defineProperty(exports, "AzureKeyVaultMigration", ({ +Object.defineProperty(exports, "ExportClassicKey", ({ enumerable: true, get: function get() { - return _AzureKeyVaultMigration["default"]; + return _ExportClassicKey["default"]; } })); -Object.defineProperty(exports, "AzureLogAnalyticsForwardingConfig", ({ +Object.defineProperty(exports, "ExportClassicKeyOutput", ({ enumerable: true, get: function get() { - return _AzureLogAnalyticsForwardingConfig["default"]; + return _ExportClassicKeyOutput["default"]; } })); -Object.defineProperty(exports, "AzurePayload", ({ +Object.defineProperty(exports, "Extension", ({ enumerable: true, get: function get() { - return _AzurePayload["default"]; + return _Extension["default"]; } })); -Object.defineProperty(exports, "AzureTargetDetails", ({ +Object.defineProperty(exports, "ExternalKMSKeyId", ({ enumerable: true, get: function get() { - return _AzureTargetDetails["default"]; + return _ExternalKMSKeyId["default"]; } })); -Object.defineProperty(exports, "BastionListEntry", ({ +Object.defineProperty(exports, "GCPAccessRules", ({ enumerable: true, get: function get() { - return _BastionListEntry["default"]; + return _GCPAccessRules["default"]; } })); -Object.defineProperty(exports, "BastionsList", ({ +Object.defineProperty(exports, "GCPPayload", ({ enumerable: true, get: function get() { - return _BastionsList["default"]; + return _GCPPayload["default"]; } })); -Object.defineProperty(exports, "CFConfigPart", ({ +Object.defineProperty(exports, "GCPSecretsMigration", ({ enumerable: true, get: function get() { - return _CFConfigPart["default"]; + return _GCPSecretsMigration["default"]; } })); -Object.defineProperty(exports, "CacheConfigPart", ({ +Object.defineProperty(exports, "GKETargetDetails", ({ enumerable: true, get: function get() { - return _CacheConfigPart["default"]; + return _GKETargetDetails["default"]; } })); -Object.defineProperty(exports, "CertAccessRules", ({ +Object.defineProperty(exports, "GatewayBasicInfo", ({ enumerable: true, get: function get() { - return _CertAccessRules["default"]; + return _GatewayBasicInfo["default"]; } })); -Object.defineProperty(exports, "CertificateChainInfo", ({ +Object.defineProperty(exports, "GatewayCreateAllowedAccess", ({ enumerable: true, get: function get() { - return _CertificateChainInfo["default"]; + return _GatewayCreateAllowedAccess["default"]; } })); -Object.defineProperty(exports, "CertificateExpirationEvent", ({ +Object.defineProperty(exports, "GatewayCreateK8SAuthConfig", ({ enumerable: true, get: function get() { - return _CertificateExpirationEvent["default"]; + return _GatewayCreateK8SAuthConfig["default"]; } })); -Object.defineProperty(exports, "CertificateInfo", ({ +Object.defineProperty(exports, "GatewayCreateK8SAuthConfigOutput", ({ enumerable: true, get: function get() { - return _CertificateInfo["default"]; + return _GatewayCreateK8SAuthConfigOutput["default"]; } })); -Object.defineProperty(exports, "CertificateIssueInfo", ({ +Object.defineProperty(exports, "GatewayCreateMigration", ({ enumerable: true, get: function get() { - return _CertificateIssueInfo["default"]; + return _GatewayCreateMigration["default"]; } })); -Object.defineProperty(exports, "CertificateTemplateInfo", ({ +Object.defineProperty(exports, "GatewayCreateProducerArtifactory", ({ enumerable: true, get: function get() { - return _CertificateTemplateInfo["default"]; + return _GatewayCreateProducerArtifactory["default"]; } })); -Object.defineProperty(exports, "ChefTargetDetails", ({ +Object.defineProperty(exports, "GatewayCreateProducerArtifactoryOutput", ({ enumerable: true, get: function get() { - return _ChefTargetDetails["default"]; + return _GatewayCreateProducerArtifactoryOutput["default"]; } })); -Object.defineProperty(exports, "ClassicKeyDetailsInfo", ({ +Object.defineProperty(exports, "GatewayCreateProducerAws", ({ enumerable: true, get: function get() { - return _ClassicKeyDetailsInfo["default"]; + return _GatewayCreateProducerAws["default"]; } })); -Object.defineProperty(exports, "ClassicKeyStatusInfo", ({ +Object.defineProperty(exports, "GatewayCreateProducerAwsOutput", ({ enumerable: true, get: function get() { - return _ClassicKeyStatusInfo["default"]; + return _GatewayCreateProducerAwsOutput["default"]; } })); -Object.defineProperty(exports, "ClassicKeyTargetInfo", ({ +Object.defineProperty(exports, "GatewayCreateProducerAzure", ({ enumerable: true, get: function get() { - return _ClassicKeyTargetInfo["default"]; + return _GatewayCreateProducerAzure["default"]; } })); -Object.defineProperty(exports, "ClientData", ({ +Object.defineProperty(exports, "GatewayCreateProducerAzureOutput", ({ enumerable: true, get: function get() { - return _ClientData["default"]; + return _GatewayCreateProducerAzureOutput["default"]; } })); -Object.defineProperty(exports, "ConfigChange", ({ +Object.defineProperty(exports, "GatewayCreateProducerCassandra", ({ enumerable: true, get: function get() { - return _ConfigChange["default"]; + return _GatewayCreateProducerCassandra["default"]; } })); -Object.defineProperty(exports, "ConfigHash", ({ +Object.defineProperty(exports, "GatewayCreateProducerCassandraOutput", ({ enumerable: true, get: function get() { - return _ConfigHash["default"]; + return _GatewayCreateProducerCassandraOutput["default"]; } })); -Object.defineProperty(exports, "Configure", ({ +Object.defineProperty(exports, "GatewayCreateProducerChef", ({ enumerable: true, get: function get() { - return _Configure["default"]; + return _GatewayCreateProducerChef["default"]; } })); -Object.defineProperty(exports, "ConfigureOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerChefOutput", ({ enumerable: true, get: function get() { - return _ConfigureOutput["default"]; + return _GatewayCreateProducerChefOutput["default"]; } })); -Object.defineProperty(exports, "Connect", ({ +Object.defineProperty(exports, "GatewayCreateProducerCustom", ({ enumerable: true, get: function get() { - return _Connect["default"]; + return _GatewayCreateProducerCustom["default"]; } })); -Object.defineProperty(exports, "CreateAWSTarget", ({ +Object.defineProperty(exports, "GatewayCreateProducerCustomOutput", ({ enumerable: true, get: function get() { - return _CreateAWSTarget["default"]; + return _GatewayCreateProducerCustomOutput["default"]; } })); -Object.defineProperty(exports, "CreateAWSTargetOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerDockerhub", ({ enumerable: true, get: function get() { - return _CreateAWSTargetOutput["default"]; + return _GatewayCreateProducerDockerhub["default"]; } })); -Object.defineProperty(exports, "CreateArtifactoryTarget", ({ +Object.defineProperty(exports, "GatewayCreateProducerDockerhubOutput", ({ enumerable: true, get: function get() { - return _CreateArtifactoryTarget["default"]; + return _GatewayCreateProducerDockerhubOutput["default"]; } })); -Object.defineProperty(exports, "CreateArtifactoryTargetOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerEks", ({ enumerable: true, get: function get() { - return _CreateArtifactoryTargetOutput["default"]; + return _GatewayCreateProducerEks["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethod", ({ +Object.defineProperty(exports, "GatewayCreateProducerEksOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethod["default"]; + return _GatewayCreateProducerEksOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodAWSIAM", ({ +Object.defineProperty(exports, "GatewayCreateProducerGcp", ({ enumerable: true, get: function get() { - return _CreateAuthMethodAWSIAM["default"]; + return _GatewayCreateProducerGcp["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodAWSIAMOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerGcpOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodAWSIAMOutput["default"]; + return _GatewayCreateProducerGcpOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodAzureAD", ({ +Object.defineProperty(exports, "GatewayCreateProducerGithub", ({ enumerable: true, get: function get() { - return _CreateAuthMethodAzureAD["default"]; + return _GatewayCreateProducerGithub["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodAzureADOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerGithubOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodAzureADOutput["default"]; + return _GatewayCreateProducerGithubOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodCert", ({ +Object.defineProperty(exports, "GatewayCreateProducerGke", ({ enumerable: true, get: function get() { - return _CreateAuthMethodCert["default"]; + return _GatewayCreateProducerGke["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodCertOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerGkeOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodCertOutput["default"]; + return _GatewayCreateProducerGkeOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodEmail", ({ +Object.defineProperty(exports, "GatewayCreateProducerHanaDb", ({ enumerable: true, get: function get() { - return _CreateAuthMethodEmail["default"]; + return _GatewayCreateProducerHanaDb["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodEmailOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerHanaDbOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodEmailOutput["default"]; + return _GatewayCreateProducerHanaDbOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodGCP", ({ +Object.defineProperty(exports, "GatewayCreateProducerLdap", ({ enumerable: true, get: function get() { - return _CreateAuthMethodGCP["default"]; + return _GatewayCreateProducerLdap["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodGCPOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerLdapOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodGCPOutput["default"]; + return _GatewayCreateProducerLdapOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodHuawei", ({ +Object.defineProperty(exports, "GatewayCreateProducerMSSQL", ({ enumerable: true, get: function get() { - return _CreateAuthMethodHuawei["default"]; + return _GatewayCreateProducerMSSQL["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodHuaweiOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerMSSQLOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodHuaweiOutput["default"]; + return _GatewayCreateProducerMSSQLOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodK8S", ({ +Object.defineProperty(exports, "GatewayCreateProducerMongo", ({ enumerable: true, get: function get() { - return _CreateAuthMethodK8S["default"]; + return _GatewayCreateProducerMongo["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodK8SOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerMongoOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodK8SOutput["default"]; + return _GatewayCreateProducerMongoOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodLDAP", ({ +Object.defineProperty(exports, "GatewayCreateProducerMySQL", ({ enumerable: true, get: function get() { - return _CreateAuthMethodLDAP["default"]; + return _GatewayCreateProducerMySQL["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodLDAPOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerMySQLOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodLDAPOutput["default"]; + return _GatewayCreateProducerMySQLOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodOAuth2", ({ +Object.defineProperty(exports, "GatewayCreateProducerNativeK8S", ({ enumerable: true, get: function get() { - return _CreateAuthMethodOAuth["default"]; + return _GatewayCreateProducerNativeK8S["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodOAuth2Output", ({ +Object.defineProperty(exports, "GatewayCreateProducerNativeK8SOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodOAuth2Output["default"]; + return _GatewayCreateProducerNativeK8SOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodOIDC", ({ +Object.defineProperty(exports, "GatewayCreateProducerOracleDb", ({ enumerable: true, get: function get() { - return _CreateAuthMethodOIDC["default"]; + return _GatewayCreateProducerOracleDb["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodOIDCOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerOracleDbOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodOIDCOutput["default"]; + return _GatewayCreateProducerOracleDbOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerPing", ({ enumerable: true, get: function get() { - return _CreateAuthMethodOutput["default"]; + return _GatewayCreateProducerPing["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodSAML", ({ +Object.defineProperty(exports, "GatewayCreateProducerPingOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodSAML["default"]; + return _GatewayCreateProducerPingOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodSAMLOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerPostgreSQL", ({ enumerable: true, get: function get() { - return _CreateAuthMethodSAMLOutput["default"]; + return _GatewayCreateProducerPostgreSQL["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodUniversalIdentity", ({ +Object.defineProperty(exports, "GatewayCreateProducerPostgreSQLOutput", ({ enumerable: true, get: function get() { - return _CreateAuthMethodUniversalIdentity["default"]; + return _GatewayCreateProducerPostgreSQLOutput["default"]; } })); -Object.defineProperty(exports, "CreateAuthMethodUniversalIdentityOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerRabbitMQ", ({ enumerable: true, get: function get() { - return _CreateAuthMethodUniversalIdentityOutput["default"]; + return _GatewayCreateProducerRabbitMQ["default"]; } })); -Object.defineProperty(exports, "CreateAzureTarget", ({ +Object.defineProperty(exports, "GatewayCreateProducerRabbitMQOutput", ({ enumerable: true, get: function get() { - return _CreateAzureTarget["default"]; + return _GatewayCreateProducerRabbitMQOutput["default"]; } })); -Object.defineProperty(exports, "CreateAzureTargetOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerRdp", ({ enumerable: true, get: function get() { - return _CreateAzureTargetOutput["default"]; + return _GatewayCreateProducerRdp["default"]; } })); -Object.defineProperty(exports, "CreateCertificate", ({ +Object.defineProperty(exports, "GatewayCreateProducerRdpOutput", ({ enumerable: true, get: function get() { - return _CreateCertificate["default"]; + return _GatewayCreateProducerRdpOutput["default"]; } })); -Object.defineProperty(exports, "CreateCertificateOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerRedis", ({ enumerable: true, get: function get() { - return _CreateCertificateOutput["default"]; + return _GatewayCreateProducerRedis["default"]; } })); -Object.defineProperty(exports, "CreateClassicKey", ({ +Object.defineProperty(exports, "GatewayCreateProducerRedisOutput", ({ enumerable: true, get: function get() { - return _CreateClassicKey["default"]; + return _GatewayCreateProducerRedisOutput["default"]; } })); -Object.defineProperty(exports, "CreateClassicKeyOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerRedshift", ({ enumerable: true, get: function get() { - return _CreateClassicKeyOutput["default"]; + return _GatewayCreateProducerRedshift["default"]; } })); -Object.defineProperty(exports, "CreateDBTarget", ({ +Object.defineProperty(exports, "GatewayCreateProducerRedshiftOutput", ({ enumerable: true, get: function get() { - return _CreateDBTarget["default"]; + return _GatewayCreateProducerRedshiftOutput["default"]; } })); -Object.defineProperty(exports, "CreateDBTargetOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerSnowflake", ({ enumerable: true, get: function get() { - return _CreateDBTargetOutput["default"]; + return _GatewayCreateProducerSnowflake["default"]; } })); -Object.defineProperty(exports, "CreateDFCKey", ({ +Object.defineProperty(exports, "GatewayCreateProducerSnowflakeOutput", ({ enumerable: true, get: function get() { - return _CreateDFCKey["default"]; + return _GatewayCreateProducerSnowflakeOutput["default"]; } })); -Object.defineProperty(exports, "CreateDFCKeyOutput", ({ +Object.defineProperty(exports, "GatewayCreateProducerVenafi", ({ enumerable: true, get: function get() { - return _CreateDFCKeyOutput["default"]; + return _GatewayCreateProducerVenafi["default"]; } })); -Object.defineProperty(exports, "CreateDockerhubTarget", ({ +Object.defineProperty(exports, "GatewayCreateProducerVenafiOutput", ({ enumerable: true, get: function get() { - return _CreateDockerhubTarget["default"]; + return _GatewayCreateProducerVenafiOutput["default"]; } })); -Object.defineProperty(exports, "CreateDockerhubTargetOutput", ({ +Object.defineProperty(exports, "GatewayDeleteAllowedAccess", ({ enumerable: true, get: function get() { - return _CreateDockerhubTargetOutput["default"]; + return _GatewayDeleteAllowedAccess["default"]; } })); -Object.defineProperty(exports, "CreateDynamicSecret", ({ +Object.defineProperty(exports, "GatewayDeleteAllowedAccessOutput", ({ enumerable: true, get: function get() { - return _CreateDynamicSecret["default"]; + return _GatewayDeleteAllowedAccessOutput["default"]; } })); -Object.defineProperty(exports, "CreateEKSTarget", ({ +Object.defineProperty(exports, "GatewayDeleteK8SAuthConfig", ({ enumerable: true, get: function get() { - return _CreateEKSTarget["default"]; + return _GatewayDeleteK8SAuthConfig["default"]; } })); -Object.defineProperty(exports, "CreateEKSTargetOutput", ({ +Object.defineProperty(exports, "GatewayDeleteK8SAuthConfigOutput", ({ enumerable: true, get: function get() { - return _CreateEKSTargetOutput["default"]; + return _GatewayDeleteK8SAuthConfigOutput["default"]; } })); -Object.defineProperty(exports, "CreateESM", ({ +Object.defineProperty(exports, "GatewayDeleteMigration", ({ enumerable: true, get: function get() { - return _CreateESM["default"]; + return _GatewayDeleteMigration["default"]; } })); -Object.defineProperty(exports, "CreateESMOutput", ({ +Object.defineProperty(exports, "GatewayDeleteProducer", ({ enumerable: true, get: function get() { - return _CreateESMOutput["default"]; + return _GatewayDeleteProducer["default"]; } })); -Object.defineProperty(exports, "CreateEventForwarder", ({ +Object.defineProperty(exports, "GatewayDeleteProducerOutput", ({ enumerable: true, get: function get() { - return _CreateEventForwarder["default"]; + return _GatewayDeleteProducerOutput["default"]; } })); -Object.defineProperty(exports, "CreateEventForwarderOutput", ({ +Object.defineProperty(exports, "GatewayDownloadCustomerFragments", ({ enumerable: true, get: function get() { - return _CreateEventForwarderOutput["default"]; + return _GatewayDownloadCustomerFragments["default"]; + } +})); +Object.defineProperty(exports, "GatewayDownloadCustomerFragmentsOutput", ({ + enumerable: true, + get: function get() { + return _GatewayDownloadCustomerFragmentsOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetAllowedAccess", ({ + enumerable: true, + get: function get() { + return _GatewayGetAllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetConfig", ({ + enumerable: true, + get: function get() { + return _GatewayGetConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetK8SAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayGetK8SAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetK8SAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayGetK8SAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetLdapAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayGetLdapAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetLdapAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayGetLdapAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetMigration", ({ + enumerable: true, + get: function get() { + return _GatewayGetMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetProducer", ({ + enumerable: true, + get: function get() { + return _GatewayGetProducer["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetTmpUsers", ({ + enumerable: true, + get: function get() { + return _GatewayGetTmpUsers["default"]; + } +})); +Object.defineProperty(exports, "GatewayListMigration", ({ + enumerable: true, + get: function get() { + return _GatewayListMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayListProducers", ({ + enumerable: true, + get: function get() { + return _GatewayListProducers["default"]; + } +})); +Object.defineProperty(exports, "GatewayListRotatedSecrets", ({ + enumerable: true, + get: function get() { + return _GatewayListRotatedSecrets["default"]; + } +})); +Object.defineProperty(exports, "GatewayMessageQueueInfo", ({ + enumerable: true, + get: function get() { + return _GatewayMessageQueueInfo["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigratePersonalItems", ({ + enumerable: true, + get: function get() { + return _GatewayMigratePersonalItems["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigratePersonalItemsOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigratePersonalItemsOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationCreateOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationCreateOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationDeleteOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationDeleteOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationGetOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationGetOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationListOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationListOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationSyncOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationSyncOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationUpdateOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationUpdateOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayRevokeTmpUsers", ({ + enumerable: true, + get: function get() { + return _GatewayRevokeTmpUsers["default"]; + } +})); +Object.defineProperty(exports, "GatewayStartProducer", ({ + enumerable: true, + get: function get() { + return _GatewayStartProducer["default"]; + } +})); +Object.defineProperty(exports, "GatewayStartProducerOutput", ({ + enumerable: true, + get: function get() { + return _GatewayStartProducerOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayStatusMigration", ({ + enumerable: true, + get: function get() { + return _GatewayStatusMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayStopProducer", ({ + enumerable: true, + get: function get() { + return _GatewayStopProducer["default"]; + } +})); +Object.defineProperty(exports, "GatewayStopProducerOutput", ({ + enumerable: true, + get: function get() { + return _GatewayStopProducerOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewaySyncMigration", ({ + enumerable: true, + get: function get() { + return _GatewaySyncMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateAllowedAccess", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateAllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateItem", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateItem["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateItemOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateItemOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateK8SAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateK8SAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateK8SAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateK8SAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateLdapAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateLdapAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateLdapAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateLdapAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateMigration", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerArtifactory", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerArtifactory["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerArtifactoryOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerArtifactoryOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAws", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAws["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAwsOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAwsOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAzure", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAzure["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAzureOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAzureOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCassandra", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCassandra["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCassandraOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCassandraOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerChef", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerChef["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerChefOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerChefOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCustom", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCustom["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCustomOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCustomOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerDockerhub", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerDockerhub["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerDockerhubOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerDockerhubOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerEks", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerEks["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerEksOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerEksOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGcp", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGcp["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGcpOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGcpOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGithub", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGithub["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGithubOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGithubOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGke", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGke["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGkeOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGkeOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerHanaDb", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerHanaDb["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerHanaDbOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerHanaDbOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerLdap", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerLdap["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerLdapOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerLdapOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMSSQL", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMSSQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMSSQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMSSQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMongo", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMongo["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMongoOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMongoOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMySQL", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMySQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMySQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMySQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerNativeK8S", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerNativeK8S["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerNativeK8SOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerNativeK8SOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerOracleDb", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerOracleDb["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerOracleDbOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerOracleDbOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPing", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPing["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPingOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPingOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQL", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPostgreSQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPostgreSQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQ", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRabbitMQ["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRabbitMQOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRdp", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRdp["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRdpOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRdpOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedis", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedis["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedisOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedisOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedshift", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedshift["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedshiftOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedshiftOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerSnowflake", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerSnowflake["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerSnowflakeOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerSnowflakeOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerVenafi", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerVenafi["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerVenafiOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerVenafiOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateTlsCert", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateTlsCert["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateTlsCertOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateTlsCertOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateTmpUsers", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateTmpUsers["default"]; + } +})); +Object.defineProperty(exports, "GatewaysListResponse", ({ + enumerable: true, + get: function get() { + return _GatewaysListResponse["default"]; + } +})); +Object.defineProperty(exports, "GcpTargetDetails", ({ + enumerable: true, + get: function get() { + return _GcpTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GenCustomerFragment", ({ + enumerable: true, + get: function get() { + return _GenCustomerFragment["default"]; + } +})); +Object.defineProperty(exports, "GeneralConfigPart", ({ + enumerable: true, + get: function get() { + return _GeneralConfigPart["default"]; + } +})); +Object.defineProperty(exports, "GenerateCsr", ({ + enumerable: true, + get: function get() { + return _GenerateCsr["default"]; + } +})); +Object.defineProperty(exports, "GenerateCsrOutput", ({ + enumerable: true, + get: function get() { + return _GenerateCsrOutput["default"]; + } +})); +Object.defineProperty(exports, "GetAccountSettings", ({ + enumerable: true, + get: function get() { + return _GetAccountSettings["default"]; + } +})); +Object.defineProperty(exports, "GetAccountSettingsCommandOutput", ({ + enumerable: true, + get: function get() { + return _GetAccountSettingsCommandOutput["default"]; + } +})); +Object.defineProperty(exports, "GetAnalyticsData", ({ + enumerable: true, + get: function get() { + return _GetAnalyticsData["default"]; + } +})); +Object.defineProperty(exports, "GetAuthMethod", ({ + enumerable: true, + get: function get() { + return _GetAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "GetCertificateValue", ({ + enumerable: true, + get: function get() { + return _GetCertificateValue["default"]; + } +})); +Object.defineProperty(exports, "GetCertificateValueOutput", ({ + enumerable: true, + get: function get() { + return _GetCertificateValueOutput["default"]; + } +})); +Object.defineProperty(exports, "GetDynamicSecretValue", ({ + enumerable: true, + get: function get() { + return _GetDynamicSecretValue["default"]; + } +})); +Object.defineProperty(exports, "GetEventForwarder", ({ + enumerable: true, + get: function get() { + return _GetEventForwarder["default"]; + } +})); +Object.defineProperty(exports, "GetEventForwarderOutput", ({ + enumerable: true, + get: function get() { + return _GetEventForwarderOutput["default"]; + } +})); +Object.defineProperty(exports, "GetGroup", ({ + enumerable: true, + get: function get() { + return _GetGroup["default"]; + } +})); +Object.defineProperty(exports, "GetGroupOutput", ({ + enumerable: true, + get: function get() { + return _GetGroupOutput["default"]; + } +})); +Object.defineProperty(exports, "GetKubeExecCreds", ({ + enumerable: true, + get: function get() { + return _GetKubeExecCreds["default"]; } })); -Object.defineProperty(exports, "CreateGKETarget", ({ +Object.defineProperty(exports, "GetKubeExecCredsOutput", ({ enumerable: true, get: function get() { - return _CreateGKETarget["default"]; + return _GetKubeExecCredsOutput["default"]; } })); -Object.defineProperty(exports, "CreateGKETargetOutput", ({ +Object.defineProperty(exports, "GetLastUserEventStatus", ({ enumerable: true, get: function get() { - return _CreateGKETargetOutput["default"]; + return _GetLastUserEventStatus["default"]; } })); -Object.defineProperty(exports, "CreateGcpTarget", ({ +Object.defineProperty(exports, "GetPKICertificate", ({ enumerable: true, get: function get() { - return _CreateGcpTarget["default"]; + return _GetPKICertificate["default"]; } })); -Object.defineProperty(exports, "CreateGcpTargetOutput", ({ +Object.defineProperty(exports, "GetPKICertificateOutput", ({ enumerable: true, get: function get() { - return _CreateGcpTargetOutput["default"]; + return _GetPKICertificateOutput["default"]; } })); -Object.defineProperty(exports, "CreateGithubTarget", ({ +Object.defineProperty(exports, "GetProducersListReplyObj", ({ enumerable: true, get: function get() { - return _CreateGithubTarget["default"]; + return _GetProducersListReplyObj["default"]; } })); -Object.defineProperty(exports, "CreateGithubTargetOutput", ({ +Object.defineProperty(exports, "GetRSAPublic", ({ enumerable: true, get: function get() { - return _CreateGithubTargetOutput["default"]; + return _GetRSAPublic["default"]; } })); -Object.defineProperty(exports, "CreateGlobalSignAtlasTarget", ({ +Object.defineProperty(exports, "GetRSAPublicOutput", ({ enumerable: true, get: function get() { - return _CreateGlobalSignAtlasTarget["default"]; + return _GetRSAPublicOutput["default"]; } })); -Object.defineProperty(exports, "CreateGlobalSignAtlasTargetOutput", ({ +Object.defineProperty(exports, "GetRole", ({ enumerable: true, get: function get() { - return _CreateGlobalSignAtlasTargetOutput["default"]; + return _GetRole["default"]; } })); -Object.defineProperty(exports, "CreateGlobalSignTarget", ({ +Object.defineProperty(exports, "GetRotatedSecretValue", ({ enumerable: true, get: function get() { - return _CreateGlobalSignTarget["default"]; + return _GetRotatedSecretValue["default"]; } })); -Object.defineProperty(exports, "CreateGlobalSignTargetOutput", ({ +Object.defineProperty(exports, "GetSSHCertificate", ({ enumerable: true, get: function get() { - return _CreateGlobalSignTargetOutput["default"]; + return _GetSSHCertificate["default"]; } })); -Object.defineProperty(exports, "CreateKey", ({ +Object.defineProperty(exports, "GetSSHCertificateOutput", ({ enumerable: true, get: function get() { - return _CreateKey["default"]; + return _GetSSHCertificateOutput["default"]; } })); -Object.defineProperty(exports, "CreateKeyOutput", ({ +Object.defineProperty(exports, "GetSecretValue", ({ enumerable: true, get: function get() { - return _CreateKeyOutput["default"]; + return _GetSecretValue["default"]; } })); -Object.defineProperty(exports, "CreateLdapTarget", ({ +Object.defineProperty(exports, "GetTags", ({ enumerable: true, get: function get() { - return _CreateLdapTarget["default"]; + return _GetTags["default"]; } })); -Object.defineProperty(exports, "CreateLdapTargetOutput", ({ +Object.defineProperty(exports, "GetTarget", ({ enumerable: true, get: function get() { - return _CreateLdapTargetOutput["default"]; + return _GetTarget["default"]; } })); -Object.defineProperty(exports, "CreateLinkedTarget", ({ +Object.defineProperty(exports, "GetTargetDetails", ({ enumerable: true, get: function get() { - return _CreateLinkedTarget["default"]; + return _GetTargetDetails["default"]; } })); -Object.defineProperty(exports, "CreateLinkedTargetOutput", ({ +Object.defineProperty(exports, "GetTargetDetailsOutput", ({ enumerable: true, get: function get() { - return _CreateLinkedTargetOutput["default"]; + return _GetTargetDetailsOutput["default"]; } })); -Object.defineProperty(exports, "CreateNativeK8STarget", ({ +Object.defineProperty(exports, "GetUserEventStatusOutput", ({ enumerable: true, get: function get() { - return _CreateNativeK8STarget["default"]; + return _GetUserEventStatusOutput["default"]; } })); -Object.defineProperty(exports, "CreateNativeK8STargetOutput", ({ +Object.defineProperty(exports, "GithubTargetDetails", ({ enumerable: true, get: function get() { - return _CreateNativeK8STargetOutput["default"]; + return _GithubTargetDetails["default"]; } })); -Object.defineProperty(exports, "CreatePKICertIssuer", ({ +Object.defineProperty(exports, "GlobalSignAtlasTargetDetails", ({ enumerable: true, get: function get() { - return _CreatePKICertIssuer["default"]; + return _GlobalSignAtlasTargetDetails["default"]; } })); -Object.defineProperty(exports, "CreatePKICertIssuerOutput", ({ +Object.defineProperty(exports, "GlobalSignGCCTargetDetails", ({ enumerable: true, get: function get() { - return _CreatePKICertIssuerOutput["default"]; + return _GlobalSignGCCTargetDetails["default"]; } })); -Object.defineProperty(exports, "CreatePingTarget", ({ +Object.defineProperty(exports, "GodaddyTargetDetails", ({ enumerable: true, get: function get() { - return _CreatePingTarget["default"]; + return _GodaddyTargetDetails["default"]; } })); -Object.defineProperty(exports, "CreatePingTargetOutput", ({ +Object.defineProperty(exports, "GoogleChronicleForwardingConfig", ({ enumerable: true, get: function get() { - return _CreatePingTargetOutput["default"]; + return _GoogleChronicleForwardingConfig["default"]; } })); -Object.defineProperty(exports, "CreateRabbitMQTarget", ({ +Object.defineProperty(exports, "Group", ({ enumerable: true, get: function get() { - return _CreateRabbitMQTarget["default"]; + return _Group["default"]; } })); -Object.defineProperty(exports, "CreateRabbitMQTargetOutput", ({ +Object.defineProperty(exports, "GwClusterIdentity", ({ enumerable: true, get: function get() { - return _CreateRabbitMQTargetOutput["default"]; + return _GwClusterIdentity["default"]; } })); -Object.defineProperty(exports, "CreateRole", ({ +Object.defineProperty(exports, "HashiMigration", ({ enumerable: true, get: function get() { - return _CreateRole["default"]; + return _HashiMigration["default"]; } })); -Object.defineProperty(exports, "CreateRoleAuthMethodAssocOutput", ({ +Object.defineProperty(exports, "HashiPayload", ({ enumerable: true, get: function get() { - return _CreateRoleAuthMethodAssocOutput["default"]; + return _HashiPayload["default"]; } })); -Object.defineProperty(exports, "CreateRotatedSecret", ({ +Object.defineProperty(exports, "Hmac", ({ enumerable: true, get: function get() { - return _CreateRotatedSecret["default"]; + return _Hmac["default"]; } })); -Object.defineProperty(exports, "CreateRotatedSecretOutput", ({ +Object.defineProperty(exports, "HmacOutput", ({ enumerable: true, get: function get() { - return _CreateRotatedSecretOutput["default"]; + return _HmacOutput["default"]; } })); -Object.defineProperty(exports, "CreateSSHCertIssuer", ({ +Object.defineProperty(exports, "HuaweiAccessRules", ({ enumerable: true, get: function get() { - return _CreateSSHCertIssuer["default"]; + return _HuaweiAccessRules["default"]; } })); -Object.defineProperty(exports, "CreateSSHCertIssuerOutput", ({ +Object.defineProperty(exports, "ImportPasswords", ({ enumerable: true, get: function get() { - return _CreateSSHCertIssuerOutput["default"]; + return _ImportPasswords["default"]; } })); -Object.defineProperty(exports, "CreateSSHTarget", ({ +Object.defineProperty(exports, "ImportPasswordsOutput", ({ enumerable: true, get: function get() { - return _CreateSSHTarget["default"]; + return _ImportPasswordsOutput["default"]; } })); -Object.defineProperty(exports, "CreateSSHTargetOutput", ({ +Object.defineProperty(exports, "ImporterInfo", ({ enumerable: true, get: function get() { - return _CreateSSHTargetOutput["default"]; + return _ImporterInfo["default"]; } })); -Object.defineProperty(exports, "CreateSalesforceTarget", ({ +Object.defineProperty(exports, "Item", ({ enumerable: true, get: function get() { - return _CreateSalesforceTarget["default"]; + return _Item["default"]; } })); -Object.defineProperty(exports, "CreateSalesforceTargetOutput", ({ +Object.defineProperty(exports, "ItemGeneralInfo", ({ enumerable: true, get: function get() { - return _CreateSalesforceTargetOutput["default"]; + return _ItemGeneralInfo["default"]; } })); -Object.defineProperty(exports, "CreateSecret", ({ +Object.defineProperty(exports, "ItemSraStatus", ({ enumerable: true, get: function get() { - return _CreateSecret["default"]; + return _ItemSraStatus["default"]; } })); -Object.defineProperty(exports, "CreateSecretOutput", ({ +Object.defineProperty(exports, "ItemTargetAssociation", ({ enumerable: true, get: function get() { - return _CreateSecretOutput["default"]; + return _ItemTargetAssociation["default"]; } })); -Object.defineProperty(exports, "CreateTargetItemAssocOutput", ({ +Object.defineProperty(exports, "ItemVersion", ({ enumerable: true, get: function get() { - return _CreateTargetItemAssocOutput["default"]; + return _ItemVersion["default"]; } })); -Object.defineProperty(exports, "CreateTokenizer", ({ +Object.defineProperty(exports, "JSONError", ({ enumerable: true, get: function get() { - return _CreateTokenizer["default"]; + return _JSONError["default"]; } })); -Object.defineProperty(exports, "CreateTokenizerOutput", ({ +Object.defineProperty(exports, "K8SAuth", ({ enumerable: true, get: function get() { - return _CreateTokenizerOutput["default"]; + return _K8SAuth["default"]; } })); -Object.defineProperty(exports, "CreateWebTarget", ({ +Object.defineProperty(exports, "K8SAuthsConfigLastChange", ({ enumerable: true, get: function get() { - return _CreateWebTarget["default"]; + return _K8SAuthsConfigLastChange["default"]; } })); -Object.defineProperty(exports, "CreateWebTargetOutput", ({ +Object.defineProperty(exports, "K8SAuthsConfigPart", ({ enumerable: true, get: function get() { - return _CreateWebTargetOutput["default"]; + return _K8SAuthsConfigPart["default"]; } })); -Object.defineProperty(exports, "CreateWindowsTarget", ({ +Object.defineProperty(exports, "K8SMigration", ({ enumerable: true, get: function get() { - return _CreateWindowsTarget["default"]; + return _K8SMigration["default"]; } })); -Object.defineProperty(exports, "CreateWindowsTargetOutput", ({ +Object.defineProperty(exports, "K8SPayload", ({ enumerable: true, get: function get() { - return _CreateWindowsTargetOutput["default"]; + return _K8SPayload["default"]; } })); -Object.defineProperty(exports, "CreateZeroSSLTarget", ({ +Object.defineProperty(exports, "KMIPClient", ({ enumerable: true, get: function get() { - return _CreateZeroSSLTarget["default"]; + return _KMIPClient["default"]; } })); -Object.defineProperty(exports, "CreateZeroSSLTargetOutput", ({ +Object.defineProperty(exports, "KMIPClientGetResponse", ({ enumerable: true, get: function get() { - return _CreateZeroSSLTargetOutput["default"]; + return _KMIPClientGetResponse["default"]; } })); -Object.defineProperty(exports, "CustomTargetDetails", ({ +Object.defineProperty(exports, "KMIPClientListResponse", ({ enumerable: true, get: function get() { - return _CustomTargetDetails["default"]; + return _KMIPClientListResponse["default"]; } })); -Object.defineProperty(exports, "CustomerFragment", ({ +Object.defineProperty(exports, "KMIPClientUpdateResponse", ({ enumerable: true, get: function get() { - return _CustomerFragment["default"]; + return _KMIPClientUpdateResponse["default"]; } })); -Object.defineProperty(exports, "CustomerFragmentsJson", ({ +Object.defineProperty(exports, "KMIPConfigPart", ({ enumerable: true, get: function get() { - return _CustomerFragmentsJson["default"]; + return _KMIPConfigPart["default"]; } })); -Object.defineProperty(exports, "CustomerFullAddress", ({ +Object.defineProperty(exports, "KMIPEnvironmentCreateResponse", ({ enumerable: true, get: function get() { - return _CustomerFullAddress["default"]; + return _KMIPEnvironmentCreateResponse["default"]; } })); -Object.defineProperty(exports, "DSProducerDetails", ({ +Object.defineProperty(exports, "KMIPServer", ({ enumerable: true, get: function get() { - return _DSProducerDetails["default"]; + return _KMIPServer["default"]; } })); -Object.defineProperty(exports, "DataProtectionSection", ({ +Object.defineProperty(exports, "KmipClientDeleteRule", ({ enumerable: true, get: function get() { - return _DataProtectionSection["default"]; + return _KmipClientDeleteRule["default"]; } })); -Object.defineProperty(exports, "DatadogForwardingConfig", ({ +Object.defineProperty(exports, "KmipClientSetRule", ({ enumerable: true, get: function get() { - return _DatadogForwardingConfig["default"]; + return _KmipClientSetRule["default"]; } })); -Object.defineProperty(exports, "DbTargetDetails", ({ +Object.defineProperty(exports, "KmipCreateClient", ({ enumerable: true, get: function get() { - return _DbTargetDetails["default"]; + return _KmipCreateClient["default"]; } })); -Object.defineProperty(exports, "Decrypt", ({ +Object.defineProperty(exports, "KmipCreateClientOutput", ({ enumerable: true, get: function get() { - return _Decrypt["default"]; + return _KmipCreateClientOutput["default"]; } })); -Object.defineProperty(exports, "DecryptFile", ({ +Object.defineProperty(exports, "KmipDeleteClient", ({ enumerable: true, get: function get() { - return _DecryptFile["default"]; + return _KmipDeleteClient["default"]; } })); -Object.defineProperty(exports, "DecryptFileOutput", ({ +Object.defineProperty(exports, "KmipDeleteServer", ({ enumerable: true, get: function get() { - return _DecryptFileOutput["default"]; + return _KmipDeleteServer["default"]; } })); -Object.defineProperty(exports, "DecryptGPG", ({ +Object.defineProperty(exports, "KmipDescribeClient", ({ enumerable: true, get: function get() { - return _DecryptGPG["default"]; + return _KmipDescribeClient["default"]; } })); -Object.defineProperty(exports, "DecryptGPGOutput", ({ +Object.defineProperty(exports, "KmipDescribeServer", ({ enumerable: true, get: function get() { - return _DecryptGPGOutput["default"]; + return _KmipDescribeServer["default"]; } })); -Object.defineProperty(exports, "DecryptOutput", ({ +Object.defineProperty(exports, "KmipDescribeServerOutput", ({ enumerable: true, get: function get() { - return _DecryptOutput["default"]; + return _KmipDescribeServerOutput["default"]; } })); -Object.defineProperty(exports, "DecryptPKCS1", ({ +Object.defineProperty(exports, "KmipListClients", ({ enumerable: true, get: function get() { - return _DecryptPKCS["default"]; + return _KmipListClients["default"]; } })); -Object.defineProperty(exports, "DecryptPKCS1Output", ({ +Object.defineProperty(exports, "KmipMoveServer", ({ enumerable: true, get: function get() { - return _DecryptPKCS1Output["default"]; + return _KmipMoveServer["default"]; } })); -Object.defineProperty(exports, "DecryptWithClassicKey", ({ +Object.defineProperty(exports, "KmipMoveServerOutput", ({ enumerable: true, get: function get() { - return _DecryptWithClassicKey["default"]; + return _KmipMoveServerOutput["default"]; } })); -Object.defineProperty(exports, "DecryptWithClassicKeyOutput", ({ +Object.defineProperty(exports, "KmipRenewClientCertificate", ({ enumerable: true, get: function get() { - return _DecryptWithClassicKeyOutput["default"]; + return _KmipRenewClientCertificate["default"]; } })); -Object.defineProperty(exports, "DefaultConfigPart", ({ +Object.defineProperty(exports, "KmipRenewClientCertificateOutput", ({ enumerable: true, get: function get() { - return _DefaultConfigPart["default"]; + return _KmipRenewClientCertificateOutput["default"]; } })); -Object.defineProperty(exports, "DeleteAuthMethod", ({ +Object.defineProperty(exports, "KmipRenewServerCertificate", ({ enumerable: true, get: function get() { - return _DeleteAuthMethod["default"]; + return _KmipRenewServerCertificate["default"]; } })); -Object.defineProperty(exports, "DeleteAuthMethodOutput", ({ +Object.defineProperty(exports, "KmipRenewServerCertificateOutput", ({ enumerable: true, get: function get() { - return _DeleteAuthMethodOutput["default"]; + return _KmipRenewServerCertificateOutput["default"]; } })); -Object.defineProperty(exports, "DeleteAuthMethods", ({ +Object.defineProperty(exports, "KmipServerSetup", ({ enumerable: true, get: function get() { - return _DeleteAuthMethods["default"]; + return _KmipServerSetup["default"]; } })); -Object.defineProperty(exports, "DeleteAuthMethodsOutput", ({ +Object.defineProperty(exports, "KmipSetServerState", ({ enumerable: true, get: function get() { - return _DeleteAuthMethodsOutput["default"]; + return _KmipSetServerState["default"]; } })); -Object.defineProperty(exports, "DeleteEventForwarder", ({ +Object.defineProperty(exports, "KmipSetServerStateOutput", ({ enumerable: true, get: function get() { - return _DeleteEventForwarder["default"]; + return _KmipSetServerStateOutput["default"]; } })); -Object.defineProperty(exports, "DeleteGatewayAllowedAccessId", ({ +Object.defineProperty(exports, "KubernetesAccessRules", ({ enumerable: true, get: function get() { - return _DeleteGatewayAllowedAccessId["default"]; + return _KubernetesAccessRules["default"]; } })); -Object.defineProperty(exports, "DeleteGwCluster", ({ +Object.defineProperty(exports, "LDAPAccessRules", ({ enumerable: true, get: function get() { - return _DeleteGwCluster["default"]; + return _LDAPAccessRules["default"]; } })); -Object.defineProperty(exports, "DeleteItem", ({ +Object.defineProperty(exports, "LastConfigChange", ({ enumerable: true, get: function get() { - return _DeleteItem["default"]; + return _LastConfigChange["default"]; } })); -Object.defineProperty(exports, "DeleteItemOutput", ({ +Object.defineProperty(exports, "LastStatusInfo", ({ enumerable: true, get: function get() { - return _DeleteItemOutput["default"]; + return _LastStatusInfo["default"]; } })); -Object.defineProperty(exports, "DeleteItems", ({ +Object.defineProperty(exports, "LdapConfigPart", ({ enumerable: true, get: function get() { - return _DeleteItems["default"]; + return _LdapConfigPart["default"]; } })); -Object.defineProperty(exports, "DeleteItemsOutput", ({ +Object.defineProperty(exports, "LdapTargetDetails", ({ enumerable: true, get: function get() { - return _DeleteItemsOutput["default"]; + return _LdapTargetDetails["default"]; } })); -Object.defineProperty(exports, "DeleteRole", ({ +Object.defineProperty(exports, "LeadershipConfigPart", ({ enumerable: true, get: function get() { - return _DeleteRole["default"]; + return _LeadershipConfigPart["default"]; } })); -Object.defineProperty(exports, "DeleteRoleAssociation", ({ +Object.defineProperty(exports, "LinkedDetails", ({ enumerable: true, get: function get() { - return _DeleteRoleAssociation["default"]; + return _LinkedDetails["default"]; } })); -Object.defineProperty(exports, "DeleteRoleRule", ({ +Object.defineProperty(exports, "LinkedTargetDetails", ({ enumerable: true, get: function get() { - return _DeleteRoleRule["default"]; + return _LinkedTargetDetails["default"]; } })); -Object.defineProperty(exports, "DeleteRoleRuleOutput", ({ +Object.defineProperty(exports, "ListAuthMethods", ({ enumerable: true, get: function get() { - return _DeleteRoleRuleOutput["default"]; + return _ListAuthMethods["default"]; } })); -Object.defineProperty(exports, "DeleteRoles", ({ +Object.defineProperty(exports, "ListAuthMethodsOutput", ({ enumerable: true, get: function get() { - return _DeleteRoles["default"]; + return _ListAuthMethodsOutput["default"]; } })); -Object.defineProperty(exports, "DeleteTarget", ({ +Object.defineProperty(exports, "ListGateways", ({ enumerable: true, get: function get() { - return _DeleteTarget["default"]; + return _ListGateways["default"]; } })); -Object.defineProperty(exports, "DeleteTargetAssociation", ({ +Object.defineProperty(exports, "ListGroups", ({ enumerable: true, get: function get() { - return _DeleteTargetAssociation["default"]; + return _ListGroups["default"]; } })); -Object.defineProperty(exports, "DeleteTargets", ({ +Object.defineProperty(exports, "ListGroupsOutput", ({ enumerable: true, get: function get() { - return _DeleteTargets["default"]; + return _ListGroupsOutput["default"]; } })); -Object.defineProperty(exports, "DeriveKey", ({ +Object.defineProperty(exports, "ListItems", ({ enumerable: true, get: function get() { - return _DeriveKey["default"]; + return _ListItems["default"]; } })); -Object.defineProperty(exports, "DeriveKeyOutput", ({ +Object.defineProperty(exports, "ListItemsInPathOutput", ({ enumerable: true, get: function get() { - return _DeriveKeyOutput["default"]; + return _ListItemsInPathOutput["default"]; } })); -Object.defineProperty(exports, "DescribeAssoc", ({ +Object.defineProperty(exports, "ListItemsOutput", ({ enumerable: true, get: function get() { - return _DescribeAssoc["default"]; + return _ListItemsOutput["default"]; } })); -Object.defineProperty(exports, "DescribeItem", ({ +Object.defineProperty(exports, "ListRoles", ({ enumerable: true, get: function get() { - return _DescribeItem["default"]; + return _ListRoles["default"]; } })); -Object.defineProperty(exports, "DescribePermissions", ({ +Object.defineProperty(exports, "ListRolesOutput", ({ enumerable: true, get: function get() { - return _DescribePermissions["default"]; + return _ListRolesOutput["default"]; } })); -Object.defineProperty(exports, "DescribePermissionsOutput", ({ +Object.defineProperty(exports, "ListSRABastions", ({ enumerable: true, get: function get() { - return _DescribePermissionsOutput["default"]; + return _ListSRABastions["default"]; } })); -Object.defineProperty(exports, "DescribeSubClaims", ({ +Object.defineProperty(exports, "ListSharedItems", ({ enumerable: true, get: function get() { - return _DescribeSubClaims["default"]; + return _ListSharedItems["default"]; } })); -Object.defineProperty(exports, "DescribeSubClaimsOutput", ({ +Object.defineProperty(exports, "ListTargets", ({ enumerable: true, get: function get() { - return _DescribeSubClaimsOutput["default"]; + return _ListTargets["default"]; } })); -Object.defineProperty(exports, "Detokenize", ({ +Object.defineProperty(exports, "ListTargetsOutput", ({ enumerable: true, get: function get() { - return _Detokenize["default"]; + return _ListTargetsOutput["default"]; } })); -Object.defineProperty(exports, "DetokenizeOutput", ({ +Object.defineProperty(exports, "LogForwardingConfigPart", ({ enumerable: true, get: function get() { - return _DetokenizeOutput["default"]; + return _LogForwardingConfigPart["default"]; } })); -Object.defineProperty(exports, "DockerhubTargetDetails", ({ +Object.defineProperty(exports, "LogstashLogForwardingConfig", ({ enumerable: true, get: function get() { - return _DockerhubTargetDetails["default"]; + return _LogstashLogForwardingConfig["default"]; } })); -Object.defineProperty(exports, "DynamicSecretProducerInfo", ({ +Object.defineProperty(exports, "LogzIoLogForwardingConfig", ({ enumerable: true, get: function get() { - return _DynamicSecretProducerInfo["default"]; + return _LogzIoLogForwardingConfig["default"]; } })); -Object.defineProperty(exports, "EKSTargetDetails", ({ +Object.defineProperty(exports, "MigrationGeneral", ({ enumerable: true, get: function get() { - return _EKSTargetDetails["default"]; + return _MigrationGeneral["default"]; } })); -Object.defineProperty(exports, "ElasticsearchLogForwardingConfig", ({ +Object.defineProperty(exports, "MigrationItems", ({ enumerable: true, get: function get() { - return _ElasticsearchLogForwardingConfig["default"]; + return _MigrationItems["default"]; } })); -Object.defineProperty(exports, "EmailEntry", ({ +Object.defineProperty(exports, "MigrationStatus", ({ enumerable: true, get: function get() { - return _EmailEntry["default"]; + return _MigrationStatus["default"]; } })); -Object.defineProperty(exports, "EmailPassAccessRules", ({ +Object.defineProperty(exports, "MigrationStatusReplyObj", ({ enumerable: true, get: function get() { - return _EmailPassAccessRules["default"]; + return _MigrationStatusReplyObj["default"]; } })); -Object.defineProperty(exports, "EmailTokenizerInfo", ({ +Object.defineProperty(exports, "MigrationsConfigLastChange", ({ enumerable: true, get: function get() { - return _EmailTokenizerInfo["default"]; + return _MigrationsConfigLastChange["default"]; } })); -Object.defineProperty(exports, "Encrypt", ({ +Object.defineProperty(exports, "MigrationsConfigPart", ({ enumerable: true, get: function get() { - return _Encrypt["default"]; + return _MigrationsConfigPart["default"]; } })); -Object.defineProperty(exports, "EncryptFile", ({ +Object.defineProperty(exports, "MockMigration", ({ enumerable: true, get: function get() { - return _EncryptFile["default"]; + return _MockMigration["default"]; } })); -Object.defineProperty(exports, "EncryptFileOutput", ({ +Object.defineProperty(exports, "MockPayload", ({ enumerable: true, get: function get() { - return _EncryptFileOutput["default"]; + return _MockPayload["default"]; } })); -Object.defineProperty(exports, "EncryptGPG", ({ +Object.defineProperty(exports, "MongoDBTargetDetails", ({ enumerable: true, get: function get() { - return _EncryptGPG["default"]; + return _MongoDBTargetDetails["default"]; } })); -Object.defineProperty(exports, "EncryptGPGOutput", ({ +Object.defineProperty(exports, "MoveObjects", ({ enumerable: true, get: function get() { - return _EncryptGPGOutput["default"]; + return _MoveObjects["default"]; } })); -Object.defineProperty(exports, "EncryptOutput", ({ +Object.defineProperty(exports, "Name", ({ enumerable: true, get: function get() { - return _EncryptOutput["default"]; + return _Name["default"]; } })); -Object.defineProperty(exports, "EncryptWithClassicKey", ({ +Object.defineProperty(exports, "NativeK8sTargetDetails", ({ enumerable: true, get: function get() { - return _EncryptWithClassicKey["default"]; + return _NativeK8sTargetDetails["default"]; } })); -Object.defineProperty(exports, "EncryptWithClassicKeyOutput", ({ +Object.defineProperty(exports, "NotiForwarder", ({ enumerable: true, get: function get() { - return _EncryptWithClassicKeyOutput["default"]; + return _NotiForwarder["default"]; } })); -Object.defineProperty(exports, "EsmCreate", ({ +Object.defineProperty(exports, "OAuth2AccessRules", ({ enumerable: true, get: function get() { - return _EsmCreate["default"]; + return _OAuth2AccessRules["default"]; } })); -Object.defineProperty(exports, "EsmCreateSecretOutput", ({ +Object.defineProperty(exports, "OAuth2CustomClaim", ({ enumerable: true, get: function get() { - return _EsmCreateSecretOutput["default"]; + return _OAuth2CustomClaim["default"]; } })); -Object.defineProperty(exports, "EsmDelete", ({ +Object.defineProperty(exports, "OCIAccessRules", ({ enumerable: true, get: function get() { - return _EsmDelete["default"]; + return _OCIAccessRules["default"]; } })); -Object.defineProperty(exports, "EsmDeleteSecretOutput", ({ +Object.defineProperty(exports, "OIDCAccessRules", ({ enumerable: true, get: function get() { - return _EsmDeleteSecretOutput["default"]; + return _OIDCAccessRules["default"]; } })); -Object.defineProperty(exports, "EsmGet", ({ +Object.defineProperty(exports, "OIDCCustomClaim", ({ enumerable: true, get: function get() { - return _EsmGet["default"]; + return _OIDCCustomClaim["default"]; } })); -Object.defineProperty(exports, "EsmGetSecretOutput", ({ +Object.defineProperty(exports, "ObjectVersionSettingsOutput", ({ enumerable: true, get: function get() { - return _EsmGetSecretOutput["default"]; + return _ObjectVersionSettingsOutput["default"]; } })); -Object.defineProperty(exports, "EsmList", ({ +Object.defineProperty(exports, "OidcClientInfo", ({ enumerable: true, get: function get() { - return _EsmList["default"]; + return _OidcClientInfo["default"]; } })); -Object.defineProperty(exports, "EsmListSecretsOutput", ({ +Object.defineProperty(exports, "OnePasswordMigration", ({ enumerable: true, get: function get() { - return _EsmListSecretsOutput["default"]; + return _OnePasswordMigration["default"]; } })); -Object.defineProperty(exports, "EsmUpdate", ({ +Object.defineProperty(exports, "OnePasswordPayload", ({ enumerable: true, get: function get() { - return _EsmUpdate["default"]; + return _OnePasswordPayload["default"]; } })); -Object.defineProperty(exports, "EsmUpdateSecretOutput", ({ +Object.defineProperty(exports, "PKICertificateIssueDetails", ({ enumerable: true, get: function get() { - return _EsmUpdateSecretOutput["default"]; + return _PKICertificateIssueDetails["default"]; } })); -Object.defineProperty(exports, "EventAction", ({ +Object.defineProperty(exports, "PasswordPolicyInfo", ({ enumerable: true, get: function get() { - return _EventAction["default"]; + return _PasswordPolicyInfo["default"]; } })); -Object.defineProperty(exports, "ExportClassicKey", ({ +Object.defineProperty(exports, "PathRule", ({ enumerable: true, get: function get() { - return _ExportClassicKey["default"]; + return _PathRule["default"]; } })); -Object.defineProperty(exports, "ExportClassicKeyOutput", ({ +Object.defineProperty(exports, "PingTargetDetails", ({ enumerable: true, get: function get() { - return _ExportClassicKeyOutput["default"]; + return _PingTargetDetails["default"]; } })); -Object.defineProperty(exports, "Extension", ({ +Object.defineProperty(exports, "Producer", ({ enumerable: true, get: function get() { - return _Extension["default"]; + return _Producer["default"]; } })); -Object.defineProperty(exports, "ExternalKMSKeyId", ({ +Object.defineProperty(exports, "ProducersConfigPart", ({ enumerable: true, get: function get() { - return _ExternalKMSKeyId["default"]; + return _ProducersConfigPart["default"]; } })); -Object.defineProperty(exports, "GCPAccessRules", ({ +Object.defineProperty(exports, "ProvisionCertificate", ({ enumerable: true, get: function get() { - return _GCPAccessRules["default"]; + return _ProvisionCertificate["default"]; } })); -Object.defineProperty(exports, "GCPPayload", ({ +Object.defineProperty(exports, "ProvisionCertificateOutput", ({ enumerable: true, get: function get() { - return _GCPPayload["default"]; + return _ProvisionCertificateOutput["default"]; } })); -Object.defineProperty(exports, "GCPSecretsMigration", ({ +Object.defineProperty(exports, "RabbitMQTargetDetails", ({ enumerable: true, get: function get() { - return _GCPSecretsMigration["default"]; + return _RabbitMQTargetDetails["default"]; } })); -Object.defineProperty(exports, "GKETargetDetails", ({ +Object.defineProperty(exports, "RawCreds", ({ enumerable: true, get: function get() { - return _GKETargetDetails["default"]; + return _RawCreds["default"]; } })); -Object.defineProperty(exports, "GatewayBasicInfo", ({ +Object.defineProperty(exports, "RefreshKey", ({ enumerable: true, get: function get() { - return _GatewayBasicInfo["default"]; + return _RefreshKey["default"]; } })); -Object.defineProperty(exports, "GatewayCreateAllowedAccess", ({ +Object.defineProperty(exports, "RefreshKeyOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateAllowedAccess["default"]; + return _RefreshKeyOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateK8SAuthConfig", ({ +Object.defineProperty(exports, "RegexpTokenizerInfo", ({ enumerable: true, get: function get() { - return _GatewayCreateK8SAuthConfig["default"]; + return _RegexpTokenizerInfo["default"]; } })); -Object.defineProperty(exports, "GatewayCreateK8SAuthConfigOutput", ({ +Object.defineProperty(exports, "RenewCertificate", ({ enumerable: true, get: function get() { - return _GatewayCreateK8SAuthConfigOutput["default"]; + return _RenewCertificate["default"]; } })); -Object.defineProperty(exports, "GatewayCreateMigration", ({ +Object.defineProperty(exports, "RenewCertificateOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateMigration["default"]; + return _RenewCertificateOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerArtifactory", ({ +Object.defineProperty(exports, "RequestAccess", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerArtifactory["default"]; + return _RequestAccess["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerArtifactoryOutput", ({ +Object.defineProperty(exports, "RequestAccessOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerArtifactoryOutput["default"]; + return _RequestAccessOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerAws", ({ +Object.defineProperty(exports, "RequiredActivity", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerAws["default"]; + return _RequiredActivity["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerAwsOutput", ({ +Object.defineProperty(exports, "ReverseRBAC", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerAwsOutput["default"]; + return _ReverseRBAC["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerAzure", ({ +Object.defineProperty(exports, "ReverseRBACClient", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerAzure["default"]; + return _ReverseRBACClient["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerAzureOutput", ({ +Object.defineProperty(exports, "ReverseRBACOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerAzureOutput["default"]; + return _ReverseRBACOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerCassandra", ({ +Object.defineProperty(exports, "RevokeCertificate", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerCassandra["default"]; + return _RevokeCertificate["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerCassandraOutput", ({ +Object.defineProperty(exports, "RevokeCreds", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerCassandraOutput["default"]; + return _RevokeCreds["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerCertificateAutomation", ({ +Object.defineProperty(exports, "Role", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerCertificateAutomation["default"]; + return _Role["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerCertificateAutomationOutput", ({ +Object.defineProperty(exports, "RoleAssociationDetails", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerCertificateAutomationOutput["default"]; + return _RoleAssociationDetails["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerChef", ({ +Object.defineProperty(exports, "RoleAuthMethodAssociation", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerChef["default"]; + return _RoleAuthMethodAssociation["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerChefOutput", ({ +Object.defineProperty(exports, "RollbackSecret", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerChefOutput["default"]; + return _RollbackSecret["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerCustom", ({ +Object.defineProperty(exports, "RollbackSecretOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerCustom["default"]; + return _RollbackSecretOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerCustomOutput", ({ +Object.defineProperty(exports, "RotateKey", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerCustomOutput["default"]; + return _RotateKey["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerDockerhub", ({ +Object.defineProperty(exports, "RotateKeyOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerDockerhub["default"]; + return _RotateKeyOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerDockerhubOutput", ({ +Object.defineProperty(exports, "RotateOidcClientOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerDockerhubOutput["default"]; + return _RotateOidcClientOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerEks", ({ +Object.defineProperty(exports, "RotateOidcClientSecret", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerEks["default"]; + return _RotateOidcClientSecret["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerEksOutput", ({ +Object.defineProperty(exports, "RotateSecret", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerEksOutput["default"]; + return _RotateSecret["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerGcp", ({ +Object.defineProperty(exports, "RotatedSecretCreateAws", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerGcp["default"]; + return _RotatedSecretCreateAws["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerGcpOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateAzure", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerGcpOutput["default"]; + return _RotatedSecretCreateAzure["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerGithub", ({ +Object.defineProperty(exports, "RotatedSecretCreateCassandra", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerGithub["default"]; + return _RotatedSecretCreateCassandra["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerGithubOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateCustom", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerGithubOutput["default"]; + return _RotatedSecretCreateCustom["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerGke", ({ +Object.defineProperty(exports, "RotatedSecretCreateDockerhub", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerGke["default"]; + return _RotatedSecretCreateDockerhub["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerGkeOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateGcp", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerGkeOutput["default"]; + return _RotatedSecretCreateGcp["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerHanaDb", ({ +Object.defineProperty(exports, "RotatedSecretCreateHanadb", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerHanaDb["default"]; + return _RotatedSecretCreateHanadb["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerHanaDbOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateLdap", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerHanaDbOutput["default"]; + return _RotatedSecretCreateLdap["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerLdap", ({ +Object.defineProperty(exports, "RotatedSecretCreateMongodb", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerLdap["default"]; + return _RotatedSecretCreateMongodb["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerLdapOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateMssql", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerLdapOutput["default"]; + return _RotatedSecretCreateMssql["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerMSSQL", ({ +Object.defineProperty(exports, "RotatedSecretCreateMysql", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerMSSQL["default"]; + return _RotatedSecretCreateMysql["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerMSSQLOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateOracledb", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerMSSQLOutput["default"]; + return _RotatedSecretCreateOracledb["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerMongo", ({ +Object.defineProperty(exports, "RotatedSecretCreateOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerMongo["default"]; + return _RotatedSecretCreateOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerMongoOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreatePostgresql", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerMongoOutput["default"]; + return _RotatedSecretCreatePostgresql["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerMySQL", ({ +Object.defineProperty(exports, "RotatedSecretCreateRedis", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerMySQL["default"]; + return _RotatedSecretCreateRedis["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerMySQLOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateRedshift", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerMySQLOutput["default"]; + return _RotatedSecretCreateRedshift["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerNativeK8S", ({ +Object.defineProperty(exports, "RotatedSecretCreateSnowflake", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerNativeK8S["default"]; + return _RotatedSecretCreateSnowflake["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerNativeK8SOutput", ({ +Object.defineProperty(exports, "RotatedSecretCreateSsh", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerNativeK8SOutput["default"]; + return _RotatedSecretCreateSsh["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerOracleDb", ({ +Object.defineProperty(exports, "RotatedSecretCreateWindows", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerOracleDb["default"]; + return _RotatedSecretCreateWindows["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerOracleDbOutput", ({ +Object.defineProperty(exports, "RotatedSecretDetailsInfo", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerOracleDbOutput["default"]; + return _RotatedSecretDetailsInfo["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerPing", ({ +Object.defineProperty(exports, "RotatedSecretGetValue", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerPing["default"]; + return _RotatedSecretGetValue["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerPingOutput", ({ +Object.defineProperty(exports, "RotatedSecretList", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerPingOutput["default"]; + return _RotatedSecretList["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerPostgreSQL", ({ +Object.defineProperty(exports, "RotatedSecretOutput", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerPostgreSQL["default"]; + return _RotatedSecretOutput["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerPostgreSQLOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateAws", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerPostgreSQLOutput["default"]; + return _RotatedSecretUpdateAws["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRabbitMQ", ({ +Object.defineProperty(exports, "RotatedSecretUpdateAzure", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRabbitMQ["default"]; + return _RotatedSecretUpdateAzure["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRabbitMQOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateCassandra", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRabbitMQOutput["default"]; + return _RotatedSecretUpdateCassandra["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRdp", ({ +Object.defineProperty(exports, "RotatedSecretUpdateCustom", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRdp["default"]; + return _RotatedSecretUpdateCustom["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRdpOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateDockerhub", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRdpOutput["default"]; + return _RotatedSecretUpdateDockerhub["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRedis", ({ +Object.defineProperty(exports, "RotatedSecretUpdateGcp", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRedis["default"]; + return _RotatedSecretUpdateGcp["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRedisOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateHanadb", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRedisOutput["default"]; + return _RotatedSecretUpdateHanadb["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRedshift", ({ +Object.defineProperty(exports, "RotatedSecretUpdateLdap", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRedshift["default"]; + return _RotatedSecretUpdateLdap["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerRedshiftOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateMongodb", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerRedshiftOutput["default"]; + return _RotatedSecretUpdateMongodb["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerSnowflake", ({ +Object.defineProperty(exports, "RotatedSecretUpdateMssql", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerSnowflake["default"]; + return _RotatedSecretUpdateMssql["default"]; } })); -Object.defineProperty(exports, "GatewayCreateProducerSnowflakeOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateMysql", ({ enumerable: true, get: function get() { - return _GatewayCreateProducerSnowflakeOutput["default"]; + return _RotatedSecretUpdateMysql["default"]; } })); -Object.defineProperty(exports, "GatewayDeleteAllowedAccess", ({ +Object.defineProperty(exports, "RotatedSecretUpdateOracledb", ({ enumerable: true, get: function get() { - return _GatewayDeleteAllowedAccess["default"]; + return _RotatedSecretUpdateOracledb["default"]; } })); -Object.defineProperty(exports, "GatewayDeleteAllowedAccessOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateOutput", ({ enumerable: true, get: function get() { - return _GatewayDeleteAllowedAccessOutput["default"]; + return _RotatedSecretUpdateOutput["default"]; } })); -Object.defineProperty(exports, "GatewayDeleteK8SAuthConfig", ({ +Object.defineProperty(exports, "RotatedSecretUpdatePostgresql", ({ enumerable: true, get: function get() { - return _GatewayDeleteK8SAuthConfig["default"]; + return _RotatedSecretUpdatePostgresql["default"]; } })); -Object.defineProperty(exports, "GatewayDeleteK8SAuthConfigOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateRedis", ({ enumerable: true, get: function get() { - return _GatewayDeleteK8SAuthConfigOutput["default"]; + return _RotatedSecretUpdateRedis["default"]; } })); -Object.defineProperty(exports, "GatewayDeleteMigration", ({ +Object.defineProperty(exports, "RotatedSecretUpdateRedshift", ({ enumerable: true, get: function get() { - return _GatewayDeleteMigration["default"]; + return _RotatedSecretUpdateRedshift["default"]; } })); -Object.defineProperty(exports, "GatewayDeleteProducer", ({ +Object.defineProperty(exports, "RotatedSecretUpdateSnowflake", ({ enumerable: true, get: function get() { - return _GatewayDeleteProducer["default"]; + return _RotatedSecretUpdateSnowflake["default"]; } })); -Object.defineProperty(exports, "GatewayDeleteProducerOutput", ({ +Object.defineProperty(exports, "RotatedSecretUpdateSsh", ({ enumerable: true, get: function get() { - return _GatewayDeleteProducerOutput["default"]; + return _RotatedSecretUpdateSsh["default"]; } })); -Object.defineProperty(exports, "GatewayDownloadCustomerFragments", ({ +Object.defineProperty(exports, "RotatedSecretUpdateWindows", ({ enumerable: true, get: function get() { - return _GatewayDownloadCustomerFragments["default"]; + return _RotatedSecretUpdateWindows["default"]; } })); -Object.defineProperty(exports, "GatewayDownloadCustomerFragmentsOutput", ({ +Object.defineProperty(exports, "RotationSecretMaxInterval", ({ enumerable: true, get: function get() { - return _GatewayDownloadCustomerFragmentsOutput["default"]; + return _RotationSecretMaxInterval["default"]; } })); -Object.defineProperty(exports, "GatewayGetAllowedAccess", ({ +Object.defineProperty(exports, "Rotator", ({ enumerable: true, get: function get() { - return _GatewayGetAllowedAccess["default"]; + return _Rotator["default"]; } })); -Object.defineProperty(exports, "GatewayGetConfig", ({ +Object.defineProperty(exports, "RotatorsConfigPart", ({ enumerable: true, get: function get() { - return _GatewayGetConfig["default"]; + return _RotatorsConfigPart["default"]; } })); -Object.defineProperty(exports, "GatewayGetK8SAuthConfig", ({ +Object.defineProperty(exports, "RuleAssigner", ({ enumerable: true, get: function get() { - return _GatewayGetK8SAuthConfig["default"]; + return _RuleAssigner["default"]; } })); -Object.defineProperty(exports, "GatewayGetK8SAuthConfigOutput", ({ +Object.defineProperty(exports, "Rules", ({ enumerable: true, get: function get() { - return _GatewayGetK8SAuthConfigOutput["default"]; + return _Rules["default"]; } })); -Object.defineProperty(exports, "GatewayGetLdapAuthConfig", ({ +Object.defineProperty(exports, "SAMLAccessRules", ({ enumerable: true, get: function get() { - return _GatewayGetLdapAuthConfig["default"]; + return _SAMLAccessRules["default"]; } })); -Object.defineProperty(exports, "GatewayGetLdapAuthConfigOutput", ({ +Object.defineProperty(exports, "SAMLAttribute", ({ enumerable: true, get: function get() { - return _GatewayGetLdapAuthConfigOutput["default"]; + return _SAMLAttribute["default"]; } })); -Object.defineProperty(exports, "GatewayGetMigration", ({ +Object.defineProperty(exports, "SSHCertificateIssueDetails", ({ enumerable: true, get: function get() { - return _GatewayGetMigration["default"]; + return _SSHCertificateIssueDetails["default"]; } })); -Object.defineProperty(exports, "GatewayGetProducer", ({ +Object.defineProperty(exports, "SSHTargetDetails", ({ enumerable: true, get: function get() { - return _GatewayGetProducer["default"]; + return _SSHTargetDetails["default"]; } })); -Object.defineProperty(exports, "GatewayGetTmpUsers", ({ +Object.defineProperty(exports, "SalesforceTargetDetails", ({ enumerable: true, get: function get() { - return _GatewayGetTmpUsers["default"]; + return _SalesforceTargetDetails["default"]; } })); -Object.defineProperty(exports, "GatewayListMigration", ({ +Object.defineProperty(exports, "SecretInfo", ({ enumerable: true, get: function get() { - return _GatewayListMigration["default"]; + return _SecretInfo["default"]; } })); -Object.defineProperty(exports, "GatewayListProducers", ({ +Object.defineProperty(exports, "SecureRemoteAccess", ({ enumerable: true, get: function get() { - return _GatewayListProducers["default"]; + return _SecureRemoteAccess["default"]; } })); -Object.defineProperty(exports, "GatewayListRotatedSecrets", ({ +Object.defineProperty(exports, "ServerInventoryMigration", ({ enumerable: true, get: function get() { - return _GatewayListRotatedSecrets["default"]; + return _ServerInventoryMigration["default"]; } })); -Object.defineProperty(exports, "GatewayMessageQueueInfo", ({ +Object.defineProperty(exports, "ServerInventoryPayload", ({ enumerable: true, get: function get() { - return _GatewayMessageQueueInfo["default"]; + return _ServerInventoryPayload["default"]; } })); -Object.defineProperty(exports, "GatewayMigratePersonalItems", ({ +Object.defineProperty(exports, "SetItemState", ({ enumerable: true, get: function get() { - return _GatewayMigratePersonalItems["default"]; + return _SetItemState["default"]; } })); -Object.defineProperty(exports, "GatewayMigratePersonalItemsOutput", ({ +Object.defineProperty(exports, "SetRoleRule", ({ enumerable: true, get: function get() { - return _GatewayMigratePersonalItemsOutput["default"]; + return _SetRoleRule["default"]; } })); -Object.defineProperty(exports, "GatewayMigrationCreateOutput", ({ +Object.defineProperty(exports, "ShareItem", ({ enumerable: true, get: function get() { - return _GatewayMigrationCreateOutput["default"]; + return _ShareItem["default"]; } })); -Object.defineProperty(exports, "GatewayMigrationDeleteOutput", ({ +Object.defineProperty(exports, "SharingPolicyInfo", ({ enumerable: true, get: function get() { - return _GatewayMigrationDeleteOutput["default"]; + return _SharingPolicyInfo["default"]; } })); -Object.defineProperty(exports, "GatewayMigrationGetOutput", ({ +Object.defineProperty(exports, "SignDataWithClassicKey", ({ enumerable: true, get: function get() { - return _GatewayMigrationGetOutput["default"]; + return _SignDataWithClassicKey["default"]; } })); -Object.defineProperty(exports, "GatewayMigrationListOutput", ({ +Object.defineProperty(exports, "SignEcDsa", ({ enumerable: true, get: function get() { - return _GatewayMigrationListOutput["default"]; + return _SignEcDsa["default"]; } })); -Object.defineProperty(exports, "GatewayMigrationSyncOutput", ({ +Object.defineProperty(exports, "SignEcDsaOutput", ({ enumerable: true, get: function get() { - return _GatewayMigrationSyncOutput["default"]; + return _SignEcDsaOutput["default"]; } })); -Object.defineProperty(exports, "GatewayMigrationUpdateOutput", ({ +Object.defineProperty(exports, "SignGPG", ({ enumerable: true, get: function get() { - return _GatewayMigrationUpdateOutput["default"]; + return _SignGPG["default"]; } })); -Object.defineProperty(exports, "GatewayRevokeTmpUsers", ({ +Object.defineProperty(exports, "SignGPGOutput", ({ enumerable: true, get: function get() { - return _GatewayRevokeTmpUsers["default"]; + return _SignGPGOutput["default"]; } })); -Object.defineProperty(exports, "GatewayStartProducer", ({ +Object.defineProperty(exports, "SignJWTOutput", ({ enumerable: true, get: function get() { - return _GatewayStartProducer["default"]; + return _SignJWTOutput["default"]; } })); -Object.defineProperty(exports, "GatewayStartProducerOutput", ({ +Object.defineProperty(exports, "SignJWTWithClassicKey", ({ enumerable: true, get: function get() { - return _GatewayStartProducerOutput["default"]; + return _SignJWTWithClassicKey["default"]; } })); -Object.defineProperty(exports, "GatewayStatusMigration", ({ +Object.defineProperty(exports, "SignOutput", ({ enumerable: true, get: function get() { - return _GatewayStatusMigration["default"]; + return _SignOutput["default"]; } })); -Object.defineProperty(exports, "GatewayStopProducer", ({ +Object.defineProperty(exports, "SignPKCS1", ({ enumerable: true, get: function get() { - return _GatewayStopProducer["default"]; + return _SignPKCS["default"]; } })); -Object.defineProperty(exports, "GatewayStopProducerOutput", ({ +Object.defineProperty(exports, "SignPKCS1Output", ({ enumerable: true, get: function get() { - return _GatewayStopProducerOutput["default"]; + return _SignPKCS1Output["default"]; } })); -Object.defineProperty(exports, "GatewaySyncMigration", ({ +Object.defineProperty(exports, "SignPKICertOutput", ({ enumerable: true, get: function get() { - return _GatewaySyncMigration["default"]; + return _SignPKICertOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateAllowedAccess", ({ +Object.defineProperty(exports, "SignPKICertWithClassicKey", ({ enumerable: true, get: function get() { - return _GatewayUpdateAllowedAccess["default"]; + return _SignPKICertWithClassicKey["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateItem", ({ +Object.defineProperty(exports, "SignRsaSsaPss", ({ enumerable: true, get: function get() { - return _GatewayUpdateItem["default"]; + return _SignRsaSsaPss["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateItemOutput", ({ +Object.defineProperty(exports, "SignRsaSsaPssOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateItemOutput["default"]; + return _SignRsaSsaPssOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateK8SAuthConfig", ({ +Object.defineProperty(exports, "SmInfo", ({ enumerable: true, get: function get() { - return _GatewayUpdateK8SAuthConfig["default"]; + return _SmInfo["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateK8SAuthConfigOutput", ({ +Object.defineProperty(exports, "SplunkLogForwardingConfig", ({ enumerable: true, get: function get() { - return _GatewayUpdateK8SAuthConfigOutput["default"]; + return _SplunkLogForwardingConfig["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateLdapAuthConfig", ({ +Object.defineProperty(exports, "SraInfo", ({ enumerable: true, get: function get() { - return _GatewayUpdateLdapAuthConfig["default"]; + return _SraInfo["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateLdapAuthConfigOutput", ({ +Object.defineProperty(exports, "StaticCredsAuth", ({ enumerable: true, get: function get() { - return _GatewayUpdateLdapAuthConfigOutput["default"]; + return _StaticCredsAuth["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateMigration", ({ +Object.defineProperty(exports, "StaticCredsAuthOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateMigration["default"]; + return _StaticCredsAuthOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerArtifactory", ({ +Object.defineProperty(exports, "StaticSecretDetailsInfo", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerArtifactory["default"]; + return _StaticSecretDetailsInfo["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerArtifactoryOutput", ({ +Object.defineProperty(exports, "SumologicLogForwardingConfig", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerArtifactoryOutput["default"]; + return _SumologicLogForwardingConfig["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerAws", ({ +Object.defineProperty(exports, "SyslogLogForwardingConfig", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerAws["default"]; + return _SyslogLogForwardingConfig["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerAwsOutput", ({ +Object.defineProperty(exports, "SystemAccessCredentialsReplyObj", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerAwsOutput["default"]; + return _SystemAccessCredentialsReplyObj["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerAzure", ({ +Object.defineProperty(exports, "SystemAccessCredsSettings", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerAzure["default"]; + return _SystemAccessCredsSettings["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerAzureOutput", ({ +Object.defineProperty(exports, "Target", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerAzureOutput["default"]; + return _Target["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerCassandra", ({ +Object.defineProperty(exports, "TargetItemAssociation", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerCassandra["default"]; + return _TargetItemAssociation["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerCassandraOutput", ({ +Object.defineProperty(exports, "TargetItemVersion", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerCassandraOutput["default"]; + return _TargetItemVersion["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerCertificateAutomation", ({ +Object.defineProperty(exports, "TargetNameWithHosts", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerCertificateAutomation["default"]; + return _TargetNameWithHosts["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerCertificateAutomationOutput", ({ +Object.defineProperty(exports, "TargetTypeDetailsInput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerCertificateAutomationOutput["default"]; + return _TargetTypeDetailsInput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerChef", ({ +Object.defineProperty(exports, "TmpUserData", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerChef["default"]; + return _TmpUserData["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerChefOutput", ({ +Object.defineProperty(exports, "Tokenize", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerChefOutput["default"]; + return _Tokenize["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerCustom", ({ +Object.defineProperty(exports, "TokenizeOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerCustom["default"]; + return _TokenizeOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerCustomOutput", ({ +Object.defineProperty(exports, "TokenizerInfo", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerCustomOutput["default"]; + return _TokenizerInfo["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerDockerhub", ({ +Object.defineProperty(exports, "UIDTokenDetails", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerDockerhub["default"]; + return _UIDTokenDetails["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerDockerhubOutput", ({ +Object.defineProperty(exports, "UidCreateChildToken", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerDockerhubOutput["default"]; + return _UidCreateChildToken["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerEks", ({ +Object.defineProperty(exports, "UidCreateChildTokenOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerEks["default"]; + return _UidCreateChildTokenOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerEksOutput", ({ +Object.defineProperty(exports, "UidGenerateToken", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerEksOutput["default"]; + return _UidGenerateToken["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerGcp", ({ +Object.defineProperty(exports, "UidGenerateTokenOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerGcp["default"]; + return _UidGenerateTokenOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerGcpOutput", ({ +Object.defineProperty(exports, "UidListChildren", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerGcpOutput["default"]; + return _UidListChildren["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerGithub", ({ +Object.defineProperty(exports, "UidRevokeToken", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerGithub["default"]; + return _UidRevokeToken["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerGithubOutput", ({ +Object.defineProperty(exports, "UidRotateToken", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerGithubOutput["default"]; + return _UidRotateToken["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerGke", ({ +Object.defineProperty(exports, "UidRotateTokenOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerGke["default"]; + return _UidRotateTokenOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerGkeOutput", ({ +Object.defineProperty(exports, "Unconfigure", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerGkeOutput["default"]; + return _Unconfigure["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerHanaDb", ({ +Object.defineProperty(exports, "UniversalIdentityAccessRules", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerHanaDb["default"]; + return _UniversalIdentityAccessRules["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerHanaDbOutput", ({ +Object.defineProperty(exports, "UniversalIdentityDetails", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerHanaDbOutput["default"]; + return _UniversalIdentityDetails["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerLdap", ({ +Object.defineProperty(exports, "Update", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerLdap["default"]; + return _Update["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerLdapOutput", ({ +Object.defineProperty(exports, "UpdateAWSTarget", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerLdapOutput["default"]; + return _UpdateAWSTarget["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerMSSQL", ({ +Object.defineProperty(exports, "UpdateAWSTargetDetails", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerMSSQL["default"]; + return _UpdateAWSTargetDetails["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerMSSQLOutput", ({ +Object.defineProperty(exports, "UpdateAccountSettings", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerMSSQLOutput["default"]; + return _UpdateAccountSettings["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerMongo", ({ +Object.defineProperty(exports, "UpdateAccountSettingsOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerMongo["default"]; + return _UpdateAccountSettingsOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerMongoOutput", ({ +Object.defineProperty(exports, "UpdateArtifactoryTarget", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerMongoOutput["default"]; + return _UpdateArtifactoryTarget["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerMySQL", ({ +Object.defineProperty(exports, "UpdateArtifactoryTargetOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerMySQL["default"]; + return _UpdateArtifactoryTargetOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerMySQLOutput", ({ +Object.defineProperty(exports, "UpdateAssoc", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerMySQLOutput["default"]; + return _UpdateAssoc["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerNativeK8S", ({ +Object.defineProperty(exports, "UpdateAuthMethod", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerNativeK8S["default"]; + return _UpdateAuthMethod["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerNativeK8SOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodAWSIAM", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerNativeK8SOutput["default"]; + return _UpdateAuthMethodAWSIAM["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerOracleDb", ({ +Object.defineProperty(exports, "UpdateAuthMethodAzureAD", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerOracleDb["default"]; + return _UpdateAuthMethodAzureAD["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerOracleDbOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodCert", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerOracleDbOutput["default"]; + return _UpdateAuthMethodCert["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerPing", ({ +Object.defineProperty(exports, "UpdateAuthMethodCertOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerPing["default"]; + return _UpdateAuthMethodCertOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerPingOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodGCP", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerPingOutput["default"]; + return _UpdateAuthMethodGCP["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQL", ({ +Object.defineProperty(exports, "UpdateAuthMethodK8S", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerPostgreSQL["default"]; + return _UpdateAuthMethodK8S["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQLOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodK8SOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerPostgreSQLOutput["default"]; + return _UpdateAuthMethodK8SOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQ", ({ +Object.defineProperty(exports, "UpdateAuthMethodLDAP", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRabbitMQ["default"]; + return _UpdateAuthMethodLDAP["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodLDAPOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRabbitMQOutput["default"]; + return _UpdateAuthMethodLDAPOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRdp", ({ +Object.defineProperty(exports, "UpdateAuthMethodOAuth2", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRdp["default"]; + return _UpdateAuthMethodOAuth["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRdpOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodOCI", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRdpOutput["default"]; + return _UpdateAuthMethodOCI["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRedis", ({ +Object.defineProperty(exports, "UpdateAuthMethodOCIOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRedis["default"]; + return _UpdateAuthMethodOCIOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRedisOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodOIDC", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRedisOutput["default"]; + return _UpdateAuthMethodOIDC["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRedshift", ({ +Object.defineProperty(exports, "UpdateAuthMethodOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRedshift["default"]; + return _UpdateAuthMethodOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerRedshiftOutput", ({ +Object.defineProperty(exports, "UpdateAuthMethodSAML", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerRedshiftOutput["default"]; + return _UpdateAuthMethodSAML["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerSnowflake", ({ +Object.defineProperty(exports, "UpdateAuthMethodUniversalIdentity", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerSnowflake["default"]; + return _UpdateAuthMethodUniversalIdentity["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateProducerSnowflakeOutput", ({ +Object.defineProperty(exports, "UpdateAzureTarget", ({ enumerable: true, get: function get() { - return _GatewayUpdateProducerSnowflakeOutput["default"]; + return _UpdateAzureTarget["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateTlsCert", ({ +Object.defineProperty(exports, "UpdateAzureTargetOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateTlsCert["default"]; + return _UpdateAzureTargetOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateTlsCertOutput", ({ +Object.defineProperty(exports, "UpdateCertificateOutput", ({ enumerable: true, get: function get() { - return _GatewayUpdateTlsCertOutput["default"]; + return _UpdateCertificateOutput["default"]; } })); -Object.defineProperty(exports, "GatewayUpdateTmpUsers", ({ +Object.defineProperty(exports, "UpdateCertificateValue", ({ enumerable: true, get: function get() { - return _GatewayUpdateTmpUsers["default"]; + return _UpdateCertificateValue["default"]; } })); -Object.defineProperty(exports, "GatewaysListResponse", ({ +Object.defineProperty(exports, "UpdateClassicKeyCertificate", ({ enumerable: true, get: function get() { - return _GatewaysListResponse["default"]; + return _UpdateClassicKeyCertificate["default"]; } })); -Object.defineProperty(exports, "GcpTargetDetails", ({ +Object.defineProperty(exports, "UpdateDBTarget", ({ enumerable: true, get: function get() { - return _GcpTargetDetails["default"]; + return _UpdateDBTarget["default"]; } })); -Object.defineProperty(exports, "GenCustomerFragment", ({ +Object.defineProperty(exports, "UpdateDBTargetDetails", ({ enumerable: true, get: function get() { - return _GenCustomerFragment["default"]; + return _UpdateDBTargetDetails["default"]; } })); -Object.defineProperty(exports, "GeneralConfigPart", ({ +Object.defineProperty(exports, "UpdateDBTargetOutput", ({ enumerable: true, get: function get() { - return _GeneralConfigPart["default"]; + return _UpdateDBTargetOutput["default"]; } })); -Object.defineProperty(exports, "GenerateCsr", ({ +Object.defineProperty(exports, "UpdateDockerhubTarget", ({ enumerable: true, get: function get() { - return _GenerateCsr["default"]; + return _UpdateDockerhubTarget["default"]; } })); -Object.defineProperty(exports, "GenerateCsrOutput", ({ +Object.defineProperty(exports, "UpdateDockerhubTargetOutput", ({ enumerable: true, get: function get() { - return _GenerateCsrOutput["default"]; + return _UpdateDockerhubTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetAccountSettings", ({ +Object.defineProperty(exports, "UpdateEKSTarget", ({ enumerable: true, get: function get() { - return _GetAccountSettings["default"]; + return _UpdateEKSTarget["default"]; } })); -Object.defineProperty(exports, "GetAccountSettingsCommandOutput", ({ +Object.defineProperty(exports, "UpdateEKSTargetOutput", ({ enumerable: true, get: function get() { - return _GetAccountSettingsCommandOutput["default"]; + return _UpdateEKSTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetAuthMethod", ({ +Object.defineProperty(exports, "UpdateEventForwarder", ({ enumerable: true, get: function get() { - return _GetAuthMethod["default"]; + return _UpdateEventForwarder["default"]; } })); -Object.defineProperty(exports, "GetCertificateValue", ({ +Object.defineProperty(exports, "UpdateGKETarget", ({ enumerable: true, get: function get() { - return _GetCertificateValue["default"]; + return _UpdateGKETarget["default"]; } })); -Object.defineProperty(exports, "GetCertificateValueOutput", ({ +Object.defineProperty(exports, "UpdateGKETargetOutput", ({ enumerable: true, get: function get() { - return _GetCertificateValueOutput["default"]; + return _UpdateGKETargetOutput["default"]; } })); -Object.defineProperty(exports, "GetDynamicSecretValue", ({ +Object.defineProperty(exports, "UpdateGcpTarget", ({ enumerable: true, get: function get() { - return _GetDynamicSecretValue["default"]; + return _UpdateGcpTarget["default"]; } })); -Object.defineProperty(exports, "GetEventForwarder", ({ +Object.defineProperty(exports, "UpdateGcpTargetOutput", ({ enumerable: true, get: function get() { - return _GetEventForwarder["default"]; + return _UpdateGcpTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetEventForwarderOutput", ({ +Object.defineProperty(exports, "UpdateGithubTarget", ({ enumerable: true, get: function get() { - return _GetEventForwarderOutput["default"]; + return _UpdateGithubTarget["default"]; } })); -Object.defineProperty(exports, "GetKubeExecCreds", ({ +Object.defineProperty(exports, "UpdateGithubTargetOutput", ({ enumerable: true, get: function get() { - return _GetKubeExecCreds["default"]; + return _UpdateGithubTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetKubeExecCredsOutput", ({ +Object.defineProperty(exports, "UpdateGlobalSignAtlasTarget", ({ enumerable: true, get: function get() { - return _GetKubeExecCredsOutput["default"]; + return _UpdateGlobalSignAtlasTarget["default"]; } })); -Object.defineProperty(exports, "GetPKICertificate", ({ +Object.defineProperty(exports, "UpdateGlobalSignAtlasTargetOutput", ({ enumerable: true, get: function get() { - return _GetPKICertificate["default"]; + return _UpdateGlobalSignAtlasTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetPKICertificateOutput", ({ +Object.defineProperty(exports, "UpdateGlobalSignTarget", ({ enumerable: true, get: function get() { - return _GetPKICertificateOutput["default"]; + return _UpdateGlobalSignTarget["default"]; } })); -Object.defineProperty(exports, "GetProducersListReplyObj", ({ +Object.defineProperty(exports, "UpdateGlobalSignTargetOutput", ({ enumerable: true, get: function get() { - return _GetProducersListReplyObj["default"]; + return _UpdateGlobalSignTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetRSAPublic", ({ +Object.defineProperty(exports, "UpdateGodaddyTarget", ({ enumerable: true, get: function get() { - return _GetRSAPublic["default"]; + return _UpdateGodaddyTarget["default"]; } })); -Object.defineProperty(exports, "GetRSAPublicOutput", ({ +Object.defineProperty(exports, "UpdateGodaddyTargetOutput", ({ enumerable: true, get: function get() { - return _GetRSAPublicOutput["default"]; + return _UpdateGodaddyTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetRole", ({ +Object.defineProperty(exports, "UpdateGroup", ({ enumerable: true, get: function get() { - return _GetRole["default"]; + return _UpdateGroup["default"]; } })); -Object.defineProperty(exports, "GetRotatedSecretValue", ({ +Object.defineProperty(exports, "UpdateGroupOutput", ({ enumerable: true, get: function get() { - return _GetRotatedSecretValue["default"]; + return _UpdateGroupOutput["default"]; } })); -Object.defineProperty(exports, "GetSSHCertificate", ({ +Object.defineProperty(exports, "UpdateItem", ({ enumerable: true, get: function get() { - return _GetSSHCertificate["default"]; + return _UpdateItem["default"]; } })); -Object.defineProperty(exports, "GetSSHCertificateOutput", ({ +Object.defineProperty(exports, "UpdateItemOutput", ({ enumerable: true, get: function get() { - return _GetSSHCertificateOutput["default"]; + return _UpdateItemOutput["default"]; } })); -Object.defineProperty(exports, "GetSecretValue", ({ +Object.defineProperty(exports, "UpdateLdapTarget", ({ enumerable: true, get: function get() { - return _GetSecretValue["default"]; + return _UpdateLdapTarget["default"]; } })); -Object.defineProperty(exports, "GetTags", ({ +Object.defineProperty(exports, "UpdateLdapTargetDetails", ({ enumerable: true, get: function get() { - return _GetTags["default"]; + return _UpdateLdapTargetDetails["default"]; } })); -Object.defineProperty(exports, "GetTarget", ({ +Object.defineProperty(exports, "UpdateLdapTargetOutput", ({ enumerable: true, get: function get() { - return _GetTarget["default"]; + return _UpdateLdapTargetOutput["default"]; } })); -Object.defineProperty(exports, "GetTargetDetails", ({ +Object.defineProperty(exports, "UpdateLinkedTarget", ({ enumerable: true, get: function get() { - return _GetTargetDetails["default"]; + return _UpdateLinkedTarget["default"]; } })); -Object.defineProperty(exports, "GetTargetDetailsOutput", ({ +Object.defineProperty(exports, "UpdateNativeK8STarget", ({ enumerable: true, get: function get() { - return _GetTargetDetailsOutput["default"]; + return _UpdateNativeK8STarget["default"]; } })); -Object.defineProperty(exports, "GithubTargetDetails", ({ +Object.defineProperty(exports, "UpdateNativeK8STargetOutput", ({ enumerable: true, get: function get() { - return _GithubTargetDetails["default"]; + return _UpdateNativeK8STargetOutput["default"]; } })); -Object.defineProperty(exports, "GlobalSignAtlasTargetDetails", ({ +Object.defineProperty(exports, "UpdateOidcApp", ({ enumerable: true, get: function get() { - return _GlobalSignAtlasTargetDetails["default"]; + return _UpdateOidcApp["default"]; } })); -Object.defineProperty(exports, "GlobalSignGCCTargetDetails", ({ +Object.defineProperty(exports, "UpdateOutput", ({ enumerable: true, get: function get() { - return _GlobalSignGCCTargetDetails["default"]; + return _UpdateOutput["default"]; } })); -Object.defineProperty(exports, "GoogleChronicleForwardingConfig", ({ +Object.defineProperty(exports, "UpdatePKICertIssuer", ({ enumerable: true, get: function get() { - return _GoogleChronicleForwardingConfig["default"]; + return _UpdatePKICertIssuer["default"]; } })); -Object.defineProperty(exports, "GwClusterIdentity", ({ +Object.defineProperty(exports, "UpdatePKICertIssuerOutput", ({ enumerable: true, get: function get() { - return _GwClusterIdentity["default"]; + return _UpdatePKICertIssuerOutput["default"]; } })); -Object.defineProperty(exports, "HashiMigration", ({ +Object.defineProperty(exports, "UpdatePingTarget", ({ enumerable: true, get: function get() { - return _HashiMigration["default"]; + return _UpdatePingTarget["default"]; } })); -Object.defineProperty(exports, "HashiPayload", ({ +Object.defineProperty(exports, "UpdateRDPTargetDetails", ({ enumerable: true, get: function get() { - return _HashiPayload["default"]; + return _UpdateRDPTargetDetails["default"]; } })); -Object.defineProperty(exports, "Hmac", ({ +Object.defineProperty(exports, "UpdateRabbitMQTarget", ({ enumerable: true, get: function get() { - return _Hmac["default"]; + return _UpdateRabbitMQTarget["default"]; } })); -Object.defineProperty(exports, "HmacOutput", ({ +Object.defineProperty(exports, "UpdateRabbitMQTargetDetails", ({ enumerable: true, get: function get() { - return _HmacOutput["default"]; + return _UpdateRabbitMQTargetDetails["default"]; } })); -Object.defineProperty(exports, "HuaweiAccessRules", ({ +Object.defineProperty(exports, "UpdateRabbitMQTargetOutput", ({ enumerable: true, get: function get() { - return _HuaweiAccessRules["default"]; + return _UpdateRabbitMQTargetOutput["default"]; } })); -Object.defineProperty(exports, "ImportPasswords", ({ +Object.defineProperty(exports, "UpdateRole", ({ enumerable: true, get: function get() { - return _ImportPasswords["default"]; + return _UpdateRole["default"]; } })); -Object.defineProperty(exports, "ImportPasswordsOutput", ({ +Object.defineProperty(exports, "UpdateRoleOutput", ({ enumerable: true, get: function get() { - return _ImportPasswordsOutput["default"]; + return _UpdateRoleOutput["default"]; } })); -Object.defineProperty(exports, "ImporterInfo", ({ +Object.defineProperty(exports, "UpdateRotatedSecret", ({ enumerable: true, get: function get() { - return _ImporterInfo["default"]; + return _UpdateRotatedSecret["default"]; } })); -Object.defineProperty(exports, "Item", ({ +Object.defineProperty(exports, "UpdateRotatedSecretOutput", ({ enumerable: true, get: function get() { - return _Item["default"]; + return _UpdateRotatedSecretOutput["default"]; } })); -Object.defineProperty(exports, "ItemGeneralInfo", ({ +Object.defineProperty(exports, "UpdateRotationSettings", ({ enumerable: true, get: function get() { - return _ItemGeneralInfo["default"]; + return _UpdateRotationSettings["default"]; } })); -Object.defineProperty(exports, "ItemTargetAssociation", ({ +Object.defineProperty(exports, "UpdateSSHCertIssuer", ({ enumerable: true, get: function get() { - return _ItemTargetAssociation["default"]; + return _UpdateSSHCertIssuer["default"]; } })); -Object.defineProperty(exports, "ItemVersion", ({ +Object.defineProperty(exports, "UpdateSSHCertIssuerOutput", ({ enumerable: true, get: function get() { - return _ItemVersion["default"]; + return _UpdateSSHCertIssuerOutput["default"]; } })); -Object.defineProperty(exports, "JSONError", ({ +Object.defineProperty(exports, "UpdateSSHTarget", ({ enumerable: true, get: function get() { - return _JSONError["default"]; + return _UpdateSSHTarget["default"]; } })); -Object.defineProperty(exports, "K8SAuth", ({ +Object.defineProperty(exports, "UpdateSSHTargetDetails", ({ enumerable: true, get: function get() { - return _K8SAuth["default"]; + return _UpdateSSHTargetDetails["default"]; } })); -Object.defineProperty(exports, "K8SAuthsConfigLastChange", ({ +Object.defineProperty(exports, "UpdateSSHTargetOutput", ({ enumerable: true, get: function get() { - return _K8SAuthsConfigLastChange["default"]; + return _UpdateSSHTargetOutput["default"]; } })); -Object.defineProperty(exports, "K8SAuthsConfigPart", ({ +Object.defineProperty(exports, "UpdateSalesforceTarget", ({ enumerable: true, get: function get() { - return _K8SAuthsConfigPart["default"]; + return _UpdateSalesforceTarget["default"]; } })); -Object.defineProperty(exports, "K8SMigration", ({ +Object.defineProperty(exports, "UpdateSalesforceTargetOutput", ({ enumerable: true, get: function get() { - return _K8SMigration["default"]; + return _UpdateSalesforceTargetOutput["default"]; } })); -Object.defineProperty(exports, "K8SPayload", ({ +Object.defineProperty(exports, "UpdateSecretVal", ({ enumerable: true, get: function get() { - return _K8SPayload["default"]; + return _UpdateSecretVal["default"]; } })); -Object.defineProperty(exports, "KMIPClient", ({ +Object.defineProperty(exports, "UpdateSecretValOutput", ({ enumerable: true, get: function get() { - return _KMIPClient["default"]; + return _UpdateSecretValOutput["default"]; } })); -Object.defineProperty(exports, "KMIPClientGetResponse", ({ +Object.defineProperty(exports, "UpdateTarget", ({ enumerable: true, get: function get() { - return _KMIPClientGetResponse["default"]; + return _UpdateTarget["default"]; } })); -Object.defineProperty(exports, "KMIPClientListResponse", ({ +Object.defineProperty(exports, "UpdateTargetDetails", ({ enumerable: true, get: function get() { - return _KMIPClientListResponse["default"]; + return _UpdateTargetDetails["default"]; } })); -Object.defineProperty(exports, "KMIPClientUpdateResponse", ({ +Object.defineProperty(exports, "UpdateTargetDetailsOutput", ({ enumerable: true, get: function get() { - return _KMIPClientUpdateResponse["default"]; + return _UpdateTargetDetailsOutput["default"]; } })); -Object.defineProperty(exports, "KMIPConfigPart", ({ +Object.defineProperty(exports, "UpdateTargetOutput", ({ enumerable: true, get: function get() { - return _KMIPConfigPart["default"]; + return _UpdateTargetOutput["default"]; } })); -Object.defineProperty(exports, "KMIPEnvironmentCreateResponse", ({ +Object.defineProperty(exports, "UpdateWebTarget", ({ enumerable: true, get: function get() { - return _KMIPEnvironmentCreateResponse["default"]; + return _UpdateWebTarget["default"]; } })); -Object.defineProperty(exports, "KMIPServer", ({ +Object.defineProperty(exports, "UpdateWebTargetDetails", ({ enumerable: true, get: function get() { - return _KMIPServer["default"]; + return _UpdateWebTargetDetails["default"]; } })); -Object.defineProperty(exports, "KmipClientDeleteRule", ({ +Object.defineProperty(exports, "UpdateWebTargetOutput", ({ enumerable: true, get: function get() { - return _KmipClientDeleteRule["default"]; + return _UpdateWebTargetOutput["default"]; } })); -Object.defineProperty(exports, "KmipClientSetRule", ({ +Object.defineProperty(exports, "UpdateWindowsTarget", ({ enumerable: true, get: function get() { - return _KmipClientSetRule["default"]; + return _UpdateWindowsTarget["default"]; } })); -Object.defineProperty(exports, "KmipCreateClient", ({ +Object.defineProperty(exports, "UpdateZeroSSLTarget", ({ enumerable: true, get: function get() { - return _KmipCreateClient["default"]; + return _UpdateZeroSSLTarget["default"]; } })); -Object.defineProperty(exports, "KmipCreateClientOutput", ({ +Object.defineProperty(exports, "UpdateZeroSSLTargetOutput", ({ enumerable: true, get: function get() { - return _KmipCreateClientOutput["default"]; + return _UpdateZeroSSLTargetOutput["default"]; } })); -Object.defineProperty(exports, "KmipDeleteClient", ({ +Object.defineProperty(exports, "UploadPKCS12", ({ enumerable: true, get: function get() { - return _KmipDeleteClient["default"]; + return _UploadPKCS["default"]; } })); -Object.defineProperty(exports, "KmipDeleteServer", ({ +Object.defineProperty(exports, "UploadRSA", ({ enumerable: true, get: function get() { - return _KmipDeleteServer["default"]; + return _UploadRSA["default"]; } })); -Object.defineProperty(exports, "KmipDescribeClient", ({ +Object.defineProperty(exports, "UsageEventSetting", ({ enumerable: true, get: function get() { - return _KmipDescribeClient["default"]; + return _UsageEventSetting["default"]; } })); -Object.defineProperty(exports, "KmipDescribeServer", ({ +Object.defineProperty(exports, "UsageReportSummary", ({ enumerable: true, get: function get() { - return _KmipDescribeServer["default"]; + return _UsageReportSummary["default"]; } })); -Object.defineProperty(exports, "KmipDescribeServerOutput", ({ +Object.defineProperty(exports, "UscCreate", ({ enumerable: true, get: function get() { - return _KmipDescribeServerOutput["default"]; + return _UscCreate["default"]; } })); -Object.defineProperty(exports, "KmipListClients", ({ +Object.defineProperty(exports, "UscCreateSecretOutput", ({ enumerable: true, get: function get() { - return _KmipListClients["default"]; + return _UscCreateSecretOutput["default"]; } })); -Object.defineProperty(exports, "KmipMoveServer", ({ +Object.defineProperty(exports, "UscDelete", ({ enumerable: true, get: function get() { - return _KmipMoveServer["default"]; + return _UscDelete["default"]; } })); -Object.defineProperty(exports, "KmipMoveServerOutput", ({ +Object.defineProperty(exports, "UscDeleteSecretOutput", ({ enumerable: true, get: function get() { - return _KmipMoveServerOutput["default"]; + return _UscDeleteSecretOutput["default"]; } })); -Object.defineProperty(exports, "KmipRenewClientCertificate", ({ +Object.defineProperty(exports, "UscGet", ({ enumerable: true, get: function get() { - return _KmipRenewClientCertificate["default"]; + return _UscGet["default"]; } })); -Object.defineProperty(exports, "KmipRenewClientCertificateOutput", ({ +Object.defineProperty(exports, "UscGetSecretOutput", ({ enumerable: true, get: function get() { - return _KmipRenewClientCertificateOutput["default"]; + return _UscGetSecretOutput["default"]; } })); -Object.defineProperty(exports, "KmipRenewServerCertificate", ({ +Object.defineProperty(exports, "UscList", ({ enumerable: true, get: function get() { - return _KmipRenewServerCertificate["default"]; + return _UscList["default"]; } })); -Object.defineProperty(exports, "KmipRenewServerCertificateOutput", ({ +Object.defineProperty(exports, "UscListSecretsOutput", ({ enumerable: true, get: function get() { - return _KmipRenewServerCertificateOutput["default"]; + return _UscListSecretsOutput["default"]; } })); -Object.defineProperty(exports, "KmipServerSetup", ({ +Object.defineProperty(exports, "UscUpdate", ({ enumerable: true, get: function get() { - return _KmipServerSetup["default"]; + return _UscUpdate["default"]; } })); -Object.defineProperty(exports, "KmipSetServerState", ({ +Object.defineProperty(exports, "UscUpdateSecretOutput", ({ enumerable: true, get: function get() { - return _KmipSetServerState["default"]; + return _UscUpdateSecretOutput["default"]; } })); -Object.defineProperty(exports, "KmipSetServerStateOutput", ({ +Object.defineProperty(exports, "ValidateToken", ({ enumerable: true, get: function get() { - return _KmipSetServerStateOutput["default"]; + return _ValidateToken["default"]; } })); -Object.defineProperty(exports, "KubernetesAccessRules", ({ +Object.defineProperty(exports, "ValidateTokenOutput", ({ enumerable: true, get: function get() { - return _KubernetesAccessRules["default"]; + return _ValidateTokenOutput["default"]; } })); -Object.defineProperty(exports, "LDAPAccessRules", ({ +Object.defineProperty(exports, "VaultlessTokenizerInfo", ({ enumerable: true, get: function get() { - return _LDAPAccessRules["default"]; + return _VaultlessTokenizerInfo["default"]; } })); -Object.defineProperty(exports, "LastConfigChange", ({ +Object.defineProperty(exports, "VenafiTargetDetails", ({ enumerable: true, get: function get() { - return _LastConfigChange["default"]; + return _VenafiTargetDetails["default"]; } })); -Object.defineProperty(exports, "LastStatusInfo", ({ +Object.defineProperty(exports, "VerifyDataWithClassicKey", ({ enumerable: true, get: function get() { - return _LastStatusInfo["default"]; + return _VerifyDataWithClassicKey["default"]; } })); -Object.defineProperty(exports, "LdapConfigPart", ({ +Object.defineProperty(exports, "VerifyEcDsa", ({ enumerable: true, get: function get() { - return _LdapConfigPart["default"]; + return _VerifyEcDsa["default"]; } })); -Object.defineProperty(exports, "LdapTargetDetails", ({ +Object.defineProperty(exports, "VerifyGPG", ({ enumerable: true, get: function get() { - return _LdapTargetDetails["default"]; + return _VerifyGPG["default"]; } })); -Object.defineProperty(exports, "LeadershipConfigPart", ({ +Object.defineProperty(exports, "VerifyJWTOutput", ({ enumerable: true, get: function get() { - return _LeadershipConfigPart["default"]; + return _VerifyJWTOutput["default"]; } })); -Object.defineProperty(exports, "LinkedDetails", ({ +Object.defineProperty(exports, "VerifyJWTWithClassicKey", ({ enumerable: true, get: function get() { - return _LinkedDetails["default"]; + return _VerifyJWTWithClassicKey["default"]; } })); -Object.defineProperty(exports, "LinkedTargetDetails", ({ +Object.defineProperty(exports, "VerifyPKCS1", ({ enumerable: true, get: function get() { - return _LinkedTargetDetails["default"]; + return _VerifyPKCS["default"]; } })); -Object.defineProperty(exports, "ListAuthMethods", ({ +Object.defineProperty(exports, "VerifyPKICertOutput", ({ enumerable: true, get: function get() { - return _ListAuthMethods["default"]; + return _VerifyPKICertOutput["default"]; } })); -Object.defineProperty(exports, "ListAuthMethodsOutput", ({ +Object.defineProperty(exports, "VerifyPKICertWithClassicKey", ({ enumerable: true, get: function get() { - return _ListAuthMethodsOutput["default"]; + return _VerifyPKICertWithClassicKey["default"]; } })); -Object.defineProperty(exports, "ListGateways", ({ +Object.defineProperty(exports, "VerifyRsaSsaPss", ({ enumerable: true, get: function get() { - return _ListGateways["default"]; + return _VerifyRsaSsaPss["default"]; } })); -Object.defineProperty(exports, "ListItems", ({ +Object.defineProperty(exports, "WebHookNotiForwarderPublicDetails", ({ enumerable: true, get: function get() { - return _ListItems["default"]; + return _WebHookNotiForwarderPublicDetails["default"]; } })); -Object.defineProperty(exports, "ListItemsInPathOutput", ({ +Object.defineProperty(exports, "WebTargetDetails", ({ enumerable: true, get: function get() { - return _ListItemsInPathOutput["default"]; + return _WebTargetDetails["default"]; } })); -Object.defineProperty(exports, "ListItemsOutput", ({ +Object.defineProperty(exports, "WindowsService", ({ enumerable: true, get: function get() { - return _ListItemsOutput["default"]; + return _WindowsService["default"]; } })); -Object.defineProperty(exports, "ListRoles", ({ +Object.defineProperty(exports, "WindowsServiceAttributes", ({ enumerable: true, get: function get() { - return _ListRoles["default"]; + return _WindowsServiceAttributes["default"]; } })); -Object.defineProperty(exports, "ListRolesOutput", ({ +Object.defineProperty(exports, "WindowsTargetDetails", ({ enumerable: true, get: function get() { - return _ListRolesOutput["default"]; + return _WindowsTargetDetails["default"]; } })); -Object.defineProperty(exports, "ListSRABastions", ({ +Object.defineProperty(exports, "ZeroSSLTargetDetails", ({ enumerable: true, get: function get() { - return _ListSRABastions["default"]; + return _ZeroSSLTargetDetails["default"]; } })); -Object.defineProperty(exports, "ListSharedItems", ({ +Object.defineProperty(exports, "V2Api", ({ enumerable: true, get: function get() { - return _ListSharedItems["default"]; + return _V2Api["default"]; } })); -Object.defineProperty(exports, "ListTargets", ({ - enumerable: true, - get: function get() { - return _ListTargets["default"]; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(97833)); + +var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(80554)); + +var _AWSPayload = _interopRequireDefault(__nccwpck_require__(14652)); + +var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(59663)); + +var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(65927)); + +var _AccessOrGroupPermissionAssignment = _interopRequireDefault(__nccwpck_require__(35765)); + +var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(58545)); + +var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(27189)); + +var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(60845)); + +var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(42422)); + +var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(44888)); + +var _AddGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(95359)); + +var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(62242)); + +var _AkeylessGatewayConfig = _interopRequireDefault(__nccwpck_require__(6912)); + +var _AllAnalyticsData = _interopRequireDefault(__nccwpck_require__(47792)); + +var _AllowedAccess = _interopRequireDefault(__nccwpck_require__(91347)); + +var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(55354)); + +var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(95466)); + +var _AssocRoleAuthMethod = _interopRequireDefault(__nccwpck_require__(74469)); + +var _AssocTargetItem = _interopRequireDefault(__nccwpck_require__(41868)); + +var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(8111)); + +var _Auth = _interopRequireDefault(__nccwpck_require__(10323)); + +var _AuthMethod = _interopRequireDefault(__nccwpck_require__(9614)); + +var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(25620)); + +var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(15615)); + +var _AuthOutput = _interopRequireDefault(__nccwpck_require__(9634)); + +var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(28019)); + +var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(99802)); + +var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(76303)); + +var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(93137)); + +var _AzurePayload = _interopRequireDefault(__nccwpck_require__(83554)); + +var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(69589)); + +var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(21093)); + +var _BastionsList = _interopRequireDefault(__nccwpck_require__(8436)); + +var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(77807)); + +var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(8768)); + +var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(12990)); + +var _CertificateAnalyticAggregation = _interopRequireDefault(__nccwpck_require__(40603)); + +var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(79205)); + +var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(60371)); + +var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(68026)); + +var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(86711)); + +var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(71552)); + +var _CertificateVersionInfo = _interopRequireDefault(__nccwpck_require__(16668)); + +var _CfInfo = _interopRequireDefault(__nccwpck_require__(73036)); + +var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(12608)); + +var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(5626)); + +var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(84276)); + +var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(96191)); + +var _ClientData = _interopRequireDefault(__nccwpck_require__(68470)); + +var _ClientUsageInfo = _interopRequireDefault(__nccwpck_require__(45139)); + +var _ClientsUsageReport = _interopRequireDefault(__nccwpck_require__(16184)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(75263)); + +var _ConfigHash = _interopRequireDefault(__nccwpck_require__(62959)); + +var _Configure = _interopRequireDefault(__nccwpck_require__(69609)); + +var _ConfigureOutput = _interopRequireDefault(__nccwpck_require__(8812)); + +var _Connect = _interopRequireDefault(__nccwpck_require__(8267)); + +var _CreateAWSTarget = _interopRequireDefault(__nccwpck_require__(18225)); + +var _CreateAWSTargetOutput = _interopRequireDefault(__nccwpck_require__(14020)); + +var _CreateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(78942)); + +var _CreateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(29835)); + +var _CreateAuthMethod = _interopRequireDefault(__nccwpck_require__(39250)); + +var _CreateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(71404)); + +var _CreateAuthMethodAWSIAMOutput = _interopRequireDefault(__nccwpck_require__(75469)); + +var _CreateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(27202)); + +var _CreateAuthMethodAzureADOutput = _interopRequireDefault(__nccwpck_require__(23911)); + +var _CreateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(89732)); + +var _CreateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(78805)); + +var _CreateAuthMethodEmail = _interopRequireDefault(__nccwpck_require__(46288)); + +var _CreateAuthMethodEmailOutput = _interopRequireDefault(__nccwpck_require__(60729)); + +var _CreateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(90506)); + +var _CreateAuthMethodGCPOutput = _interopRequireDefault(__nccwpck_require__(87807)); + +var _CreateAuthMethodHuawei = _interopRequireDefault(__nccwpck_require__(49339)); + +var _CreateAuthMethodHuaweiOutput = _interopRequireDefault(__nccwpck_require__(41018)); + +var _CreateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(83464)); + +var _CreateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(54273)); + +var _CreateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(31711)); + +var _CreateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(87942)); + +var _CreateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(36129)); + +var _CreateAuthMethodOAuth2Output = _interopRequireDefault(__nccwpck_require__(57876)); + +var _CreateAuthMethodOCI = _interopRequireDefault(__nccwpck_require__(79097)); + +var _CreateAuthMethodOCIOutput = _interopRequireDefault(__nccwpck_require__(63868)); + +var _CreateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(14043)); + +var _CreateAuthMethodOIDCOutput = _interopRequireDefault(__nccwpck_require__(51290)); + +var _CreateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(49207)); + +var _CreateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(4907)); + +var _CreateAuthMethodSAMLOutput = _interopRequireDefault(__nccwpck_require__(37610)); + +var _CreateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(89147)); + +var _CreateAuthMethodUniversalIdentityOutput = _interopRequireDefault(__nccwpck_require__(58362)); + +var _CreateAzureTarget = _interopRequireDefault(__nccwpck_require__(6519)); + +var _CreateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(44078)); + +var _CreateCertificate = _interopRequireDefault(__nccwpck_require__(79990)); + +var _CreateCertificateOutput = _interopRequireDefault(__nccwpck_require__(88627)); + +var _CreateClassicKey = _interopRequireDefault(__nccwpck_require__(37974)); + +var _CreateClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(28339)); + +var _CreateDBTarget = _interopRequireDefault(__nccwpck_require__(53346)); + +var _CreateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(45671)); + +var _CreateDFCKey = _interopRequireDefault(__nccwpck_require__(85323)); + +var _CreateDFCKeyOutput = _interopRequireDefault(__nccwpck_require__(94634)); + +var _CreateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(95215)); + +var _CreateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(82934)); + +var _CreateDynamicSecret = _interopRequireDefault(__nccwpck_require__(39892)); + +var _CreateEKSTarget = _interopRequireDefault(__nccwpck_require__(38097)); + +var _CreateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(11556)); + +var _CreateESM = _interopRequireDefault(__nccwpck_require__(17838)); + +var _CreateESMOutput = _interopRequireDefault(__nccwpck_require__(20859)); + +var _CreateEventForwarder = _interopRequireDefault(__nccwpck_require__(73847)); + +var _CreateEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(95566)); + +var _CreateGKETarget = _interopRequireDefault(__nccwpck_require__(87913)); + +var _CreateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(84588)); + +var _CreateGcpTarget = _interopRequireDefault(__nccwpck_require__(87182)); + +var _CreateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(64059)); + +var _CreateGithubTarget = _interopRequireDefault(__nccwpck_require__(96291)); + +var _CreateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(79666)); + +var _CreateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(9913)); + +var _CreateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(59100)); + +var _CreateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(84574)); + +var _CreateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(40619)); + +var _CreateGodaddyTarget = _interopRequireDefault(__nccwpck_require__(71736)); + +var _CreateGodaddyTargetOutput = _interopRequireDefault(__nccwpck_require__(83473)); + +var _CreateGroup = _interopRequireDefault(__nccwpck_require__(56830)); + +var _CreateGroupOutput = _interopRequireDefault(__nccwpck_require__(80875)); + +var _CreateKey = _interopRequireDefault(__nccwpck_require__(73770)); + +var _CreateKeyOutput = _interopRequireDefault(__nccwpck_require__(94943)); + +var _CreateLdapTarget = _interopRequireDefault(__nccwpck_require__(18825)); + +var _CreateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(58604)); + +var _CreateLinkedTarget = _interopRequireDefault(__nccwpck_require__(71569)); + +var _CreateLinkedTargetOutput = _interopRequireDefault(__nccwpck_require__(55716)); + +var _CreateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(92429)); + +var _CreateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(33800)); + +var _CreateOidcApp = _interopRequireDefault(__nccwpck_require__(8185)); + +var _CreateOidcAppOutput = _interopRequireDefault(__nccwpck_require__(11324)); + +var _CreatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(44204)); + +var _CreatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(95693)); + +var _CreatePingTarget = _interopRequireDefault(__nccwpck_require__(15224)); + +var _CreatePingTargetOutput = _interopRequireDefault(__nccwpck_require__(57585)); + +var _CreateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(27074)); + +var _CreateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(69223)); + +var _CreateRole = _interopRequireDefault(__nccwpck_require__(54533)); + +var _CreateRoleAuthMethodAssocOutput = _interopRequireDefault(__nccwpck_require__(43974)); + +var _CreateRotatedSecret = _interopRequireDefault(__nccwpck_require__(37444)); + +var _CreateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(54869)); + +var _CreateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(8218)); + +var _CreateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(87119)); + +var _CreateSSHTarget = _interopRequireDefault(__nccwpck_require__(76842)); + +var _CreateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(93855)); + +var _CreateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(51871)); + +var _CreateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(87654)); + +var _CreateSecret = _interopRequireDefault(__nccwpck_require__(81301)); + +var _CreateSecretOutput = _interopRequireDefault(__nccwpck_require__(44928)); + +var _CreateTargetItemAssocOutput = _interopRequireDefault(__nccwpck_require__(44645)); + +var _CreateTokenizer = _interopRequireDefault(__nccwpck_require__(11404)); + +var _CreateTokenizerOutput = _interopRequireDefault(__nccwpck_require__(42253)); + +var _CreateUSC = _interopRequireDefault(__nccwpck_require__(69728)); + +var _CreateUSCOutput = _interopRequireDefault(__nccwpck_require__(10921)); + +var _CreateUserEvent = _interopRequireDefault(__nccwpck_require__(88948)); + +var _CreateUserEventOutput = _interopRequireDefault(__nccwpck_require__(6789)); + +var _CreateWebTarget = _interopRequireDefault(__nccwpck_require__(18014)); + +var _CreateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(28875)); + +var _CreateWindowsTarget = _interopRequireDefault(__nccwpck_require__(41893)); + +var _CreateWindowsTargetOutput = _interopRequireDefault(__nccwpck_require__(83664)); + +var _CreateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(54780)); + +var _CreateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(10493)); + +var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(19641)); + +var _CustomerFragmentConfig = _interopRequireDefault(__nccwpck_require__(71791)); + +var _CustomerFragmentsConfigJson = _interopRequireDefault(__nccwpck_require__(76184)); + +var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(61038)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); + +var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(32891)); + +var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(47638)); + +var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(65590)); + +var _Decrypt = _interopRequireDefault(__nccwpck_require__(7720)); + +var _DecryptFile = _interopRequireDefault(__nccwpck_require__(51030)); + +var _DecryptFileOutput = _interopRequireDefault(__nccwpck_require__(9971)); + +var _DecryptGPG = _interopRequireDefault(__nccwpck_require__(24650)); + +var _DecryptGPGOutput = _interopRequireDefault(__nccwpck_require__(59199)); + +var _DecryptOutput = _interopRequireDefault(__nccwpck_require__(19777)); + +var _DecryptPKCS = _interopRequireDefault(__nccwpck_require__(57476)); + +var _DecryptPKCS1Output = _interopRequireDefault(__nccwpck_require__(81333)); + +var _DecryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(67115)); + +var _DecryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(80618)); + +var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(22479)); + +var _DeleteAuthMethod = _interopRequireDefault(__nccwpck_require__(55749)); + +var _DeleteAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(53200)); + +var _DeleteAuthMethods = _interopRequireDefault(__nccwpck_require__(20592)); + +var _DeleteAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(15769)); + +var _DeleteEventForwarder = _interopRequireDefault(__nccwpck_require__(58820)); + +var _DeleteGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(93835)); + +var _DeleteGroup = _interopRequireDefault(__nccwpck_require__(98855)); + +var _DeleteGroupOutput = _interopRequireDefault(__nccwpck_require__(43134)); + +var _DeleteGwCluster = _interopRequireDefault(__nccwpck_require__(964)); + +var _DeleteItem = _interopRequireDefault(__nccwpck_require__(261)); + +var _DeleteItemOutput = _interopRequireDefault(__nccwpck_require__(98224)); + +var _DeleteItems = _interopRequireDefault(__nccwpck_require__(44336)); + +var _DeleteItemsOutput = _interopRequireDefault(__nccwpck_require__(16665)); + +var _DeleteRole = _interopRequireDefault(__nccwpck_require__(25606)); + +var _DeleteRoleAssociation = _interopRequireDefault(__nccwpck_require__(94059)); + +var _DeleteRoleRule = _interopRequireDefault(__nccwpck_require__(55968)); + +var _DeleteRoleRuleOutput = _interopRequireDefault(__nccwpck_require__(34953)); + +var _DeleteRoles = _interopRequireDefault(__nccwpck_require__(60685)); + +var _DeleteTarget = _interopRequireDefault(__nccwpck_require__(82379)); + +var _DeleteTargetAssociation = _interopRequireDefault(__nccwpck_require__(1768)); + +var _DeleteTargets = _interopRequireDefault(__nccwpck_require__(67902)); + +var _DeriveKey = _interopRequireDefault(__nccwpck_require__(19627)); + +var _DeriveKeyOutput = _interopRequireDefault(__nccwpck_require__(30442)); + +var _DescribeAssoc = _interopRequireDefault(__nccwpck_require__(66317)); + +var _DescribeItem = _interopRequireDefault(__nccwpck_require__(69543)); + +var _DescribePermissions = _interopRequireDefault(__nccwpck_require__(19826)); + +var _DescribePermissionsOutput = _interopRequireDefault(__nccwpck_require__(83191)); + +var _DescribeSubClaims = _interopRequireDefault(__nccwpck_require__(95525)); + +var _DescribeSubClaimsOutput = _interopRequireDefault(__nccwpck_require__(38224)); + +var _Detokenize = _interopRequireDefault(__nccwpck_require__(84927)); + +var _DetokenizeOutput = _interopRequireDefault(__nccwpck_require__(52838)); + +var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(1581)); + +var _DynamicSecretCreateArtifactory = _interopRequireDefault(__nccwpck_require__(27524)); + +var _DynamicSecretCreateAws = _interopRequireDefault(__nccwpck_require__(27087)); + +var _DynamicSecretCreateAzure = _interopRequireDefault(__nccwpck_require__(2733)); + +var _DynamicSecretCreateCassandra = _interopRequireDefault(__nccwpck_require__(68128)); + +var _DynamicSecretCreateChef = _interopRequireDefault(__nccwpck_require__(4408)); + +var _DynamicSecretCreateCustom = _interopRequireDefault(__nccwpck_require__(26511)); + +var _DynamicSecretCreateDockerhub = _interopRequireDefault(__nccwpck_require__(80837)); + +var _DynamicSecretCreateEks = _interopRequireDefault(__nccwpck_require__(88519)); + +var _DynamicSecretCreateGcp = _interopRequireDefault(__nccwpck_require__(50500)); + +var _DynamicSecretCreateGithub = _interopRequireDefault(__nccwpck_require__(73487)); + +var _DynamicSecretCreateGke = _interopRequireDefault(__nccwpck_require__(53847)); + +var _DynamicSecretCreateHanaDb = _interopRequireDefault(__nccwpck_require__(13700)); + +var _DynamicSecretCreateK8s = _interopRequireDefault(__nccwpck_require__(16202)); + +var _DynamicSecretCreateLdap = _interopRequireDefault(__nccwpck_require__(67357)); + +var _DynamicSecretCreateMongoDb = _interopRequireDefault(__nccwpck_require__(96196)); + +var _DynamicSecretCreateMsSql = _interopRequireDefault(__nccwpck_require__(71086)); + +var _DynamicSecretCreateMySql = _interopRequireDefault(__nccwpck_require__(95472)); + +var _DynamicSecretCreateOracleDb = _interopRequireDefault(__nccwpck_require__(56892)); + +var _DynamicSecretCreateOutput = _interopRequireDefault(__nccwpck_require__(2545)); + +var _DynamicSecretCreatePing = _interopRequireDefault(__nccwpck_require__(29748)); + +var _DynamicSecretCreatePostgreSql = _interopRequireDefault(__nccwpck_require__(84126)); + +var _DynamicSecretCreateRabbitMq = _interopRequireDefault(__nccwpck_require__(57518)); + +var _DynamicSecretCreateRdp = _interopRequireDefault(__nccwpck_require__(84556)); + +var _DynamicSecretCreateRedis = _interopRequireDefault(__nccwpck_require__(26937)); + +var _DynamicSecretCreateRedshift = _interopRequireDefault(__nccwpck_require__(13453)); + +var _DynamicSecretCreateSnowflake = _interopRequireDefault(__nccwpck_require__(30490)); + +var _DynamicSecretCreateVenafi = _interopRequireDefault(__nccwpck_require__(77253)); + +var _DynamicSecretDelete = _interopRequireDefault(__nccwpck_require__(32743)); + +var _DynamicSecretDeleteOutput = _interopRequireDefault(__nccwpck_require__(95742)); + +var _DynamicSecretGet = _interopRequireDefault(__nccwpck_require__(72886)); + +var _DynamicSecretGetValue = _interopRequireDefault(__nccwpck_require__(94869)); + +var _DynamicSecretList = _interopRequireDefault(__nccwpck_require__(74168)); + +var _DynamicSecretMaxTtl = _interopRequireDefault(__nccwpck_require__(71774)); + +var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(92142)); + +var _DynamicSecretTmpCredsDelete = _interopRequireDefault(__nccwpck_require__(23313)); + +var _DynamicSecretTmpCredsGet = _interopRequireDefault(__nccwpck_require__(44088)); + +var _DynamicSecretTmpCredsUpdate = _interopRequireDefault(__nccwpck_require__(47983)); + +var _DynamicSecretUpdateArtifactory = _interopRequireDefault(__nccwpck_require__(39867)); + +var _DynamicSecretUpdateAws = _interopRequireDefault(__nccwpck_require__(15160)); + +var _DynamicSecretUpdateAzure = _interopRequireDefault(__nccwpck_require__(38182)); + +var _DynamicSecretUpdateCassandra = _interopRequireDefault(__nccwpck_require__(51331)); + +var _DynamicSecretUpdateChef = _interopRequireDefault(__nccwpck_require__(91777)); + +var _DynamicSecretUpdateCustom = _interopRequireDefault(__nccwpck_require__(55994)); + +var _DynamicSecretUpdateDockerhub = _interopRequireDefault(__nccwpck_require__(4446)); + +var _DynamicSecretUpdateEks = _interopRequireDefault(__nccwpck_require__(97592)); + +var _DynamicSecretUpdateGcp = _interopRequireDefault(__nccwpck_require__(22219)); + +var _DynamicSecretUpdateGithub = _interopRequireDefault(__nccwpck_require__(19074)); + +var _DynamicSecretUpdateGke = _interopRequireDefault(__nccwpck_require__(88144)); + +var _DynamicSecretUpdateHanaDb = _interopRequireDefault(__nccwpck_require__(30989)); + +var _DynamicSecretUpdateK8s = _interopRequireDefault(__nccwpck_require__(55273)); + +var _DynamicSecretUpdateLdap = _interopRequireDefault(__nccwpck_require__(22416)); + +var _DynamicSecretUpdateMongoDb = _interopRequireDefault(__nccwpck_require__(74019)); + +var _DynamicSecretUpdateMsSql = _interopRequireDefault(__nccwpck_require__(74593)); + +var _DynamicSecretUpdateMySql = _interopRequireDefault(__nccwpck_require__(14567)); + +var _DynamicSecretUpdateOracleDb = _interopRequireDefault(__nccwpck_require__(30421)); + +var _DynamicSecretUpdateOutput = _interopRequireDefault(__nccwpck_require__(31240)); + +var _DynamicSecretUpdatePing = _interopRequireDefault(__nccwpck_require__(52293)); + +var _DynamicSecretUpdatePostgreSql = _interopRequireDefault(__nccwpck_require__(57271)); + +var _DynamicSecretUpdateRabbitMq = _interopRequireDefault(__nccwpck_require__(68943)); + +var _DynamicSecretUpdateRdp = _interopRequireDefault(__nccwpck_require__(42835)); + +var _DynamicSecretUpdateRedis = _interopRequireDefault(__nccwpck_require__(21290)); + +var _DynamicSecretUpdateRedshift = _interopRequireDefault(__nccwpck_require__(43512)); + +var _DynamicSecretUpdateSnowflake = _interopRequireDefault(__nccwpck_require__(27757)); + +var _DynamicSecretUpdateVenafi = _interopRequireDefault(__nccwpck_require__(54828)); + +var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(80007)); + +var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(79375)); + +var _EmailEntry = _interopRequireDefault(__nccwpck_require__(14877)); + +var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(38739)); + +var _EmailTokenizerInfo = _interopRequireDefault(__nccwpck_require__(12672)); + +var _Encrypt = _interopRequireDefault(__nccwpck_require__(41068)); + +var _EncryptFile = _interopRequireDefault(__nccwpck_require__(71378)); + +var _EncryptFileOutput = _interopRequireDefault(__nccwpck_require__(98404)); + +var _EncryptGPG = _interopRequireDefault(__nccwpck_require__(9542)); + +var _EncryptGPGOutput = _interopRequireDefault(__nccwpck_require__(39139)); + +var _EncryptOutput = _interopRequireDefault(__nccwpck_require__(80077)); + +var _EncryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(46751)); + +var _EncryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(59526)); + +var _EsmCreate = _interopRequireDefault(__nccwpck_require__(24338)); + +var _EsmCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(9331)); + +var _EsmDelete = _interopRequireDefault(__nccwpck_require__(22545)); + +var _EsmDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(24820)); + +var _EsmGet = _interopRequireDefault(__nccwpck_require__(56056)); + +var _EsmGetSecretOutput = _interopRequireDefault(__nccwpck_require__(66425)); + +var _EsmList = _interopRequireDefault(__nccwpck_require__(21934)); + +var _EsmListSecretsOutput = _interopRequireDefault(__nccwpck_require__(75628)); + +var _EsmUpdate = _interopRequireDefault(__nccwpck_require__(47215)); + +var _EsmUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(86426)); + +var _EventAction = _interopRequireDefault(__nccwpck_require__(93495)); + +var _EventForwarderCreateEmail = _interopRequireDefault(__nccwpck_require__(78463)); + +var _EventForwarderCreateServiceNow = _interopRequireDefault(__nccwpck_require__(76710)); + +var _EventForwarderCreateSlack = _interopRequireDefault(__nccwpck_require__(99639)); + +var _EventForwarderCreateUpdateOutput = _interopRequireDefault(__nccwpck_require__(21351)); + +var _EventForwarderCreateWebhook = _interopRequireDefault(__nccwpck_require__(57066)); + +var _EventForwarderDelete = _interopRequireDefault(__nccwpck_require__(49548)); + +var _EventForwarderDeleteOutput = _interopRequireDefault(__nccwpck_require__(25869)); + +var _EventForwarderGet = _interopRequireDefault(__nccwpck_require__(76255)); + +var _EventForwarderGetOutput = _interopRequireDefault(__nccwpck_require__(9126)); + +var _EventForwarderUpdateEmail = _interopRequireDefault(__nccwpck_require__(88420)); + +var _EventForwarderUpdateServiceNow = _interopRequireDefault(__nccwpck_require__(26835)); + +var _EventForwarderUpdateSlack = _interopRequireDefault(__nccwpck_require__(86292)); + +var _EventForwarderUpdateWebhook = _interopRequireDefault(__nccwpck_require__(21609)); + +var _ExportClassicKey = _interopRequireDefault(__nccwpck_require__(20312)); + +var _ExportClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(52753)); + +var _Extension = _interopRequireDefault(__nccwpck_require__(22116)); + +var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(44851)); + +var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(88158)); + +var _GCPPayload = _interopRequireDefault(__nccwpck_require__(92921)); + +var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(10472)); + +var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(54279)); + +var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(74897)); + +var _GatewayCreateAllowedAccess = _interopRequireDefault(__nccwpck_require__(69865)); + +var _GatewayCreateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(34979)); + +var _GatewayCreateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(14034)); + +var _GatewayCreateMigration = _interopRequireDefault(__nccwpck_require__(36831)); + +var _GatewayCreateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(22311)); + +var _GatewayCreateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(47166)); + +var _GatewayCreateProducerAws = _interopRequireDefault(__nccwpck_require__(73916)); + +var _GatewayCreateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(8093)); + +var _GatewayCreateProducerAzure = _interopRequireDefault(__nccwpck_require__(16178)); + +var _GatewayCreateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(64311)); + +var _GatewayCreateProducerCassandra = _interopRequireDefault(__nccwpck_require__(87855)); + +var _GatewayCreateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(10166)); + +var _GatewayCreateProducerChef = _interopRequireDefault(__nccwpck_require__(12085)); + +var _GatewayCreateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(800)); + +var _GatewayCreateProducerCustom = _interopRequireDefault(__nccwpck_require__(64366)); + +var _GatewayCreateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(35003)); + +var _GatewayCreateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(43226)); + +var _GatewayCreateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(68655)); + +var _GatewayCreateProducerEks = _interopRequireDefault(__nccwpck_require__(29980)); + +var _GatewayCreateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(41981)); + +var _GatewayCreateProducerGcp = _interopRequireDefault(__nccwpck_require__(62015)); + +var _GatewayCreateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(15398)); + +var _GatewayCreateProducerGithub = _interopRequireDefault(__nccwpck_require__(94350)); + +var _GatewayCreateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(57723)); + +var _GatewayCreateProducerGke = _interopRequireDefault(__nccwpck_require__(26908)); + +var _GatewayCreateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(75709)); + +var _GatewayCreateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(13185)); + +var _GatewayCreateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(21460)); + +var _GatewayCreateProducerLdap = _interopRequireDefault(__nccwpck_require__(73236)); + +var _GatewayCreateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(8517)); + +var _GatewayCreateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(89229)); + +var _GatewayCreateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(63880)); + +var _GatewayCreateProducerMongo = _interopRequireDefault(__nccwpck_require__(35565)); + +var _GatewayCreateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(71784)); + +var _GatewayCreateProducerMySQL = _interopRequireDefault(__nccwpck_require__(30467)); + +var _GatewayCreateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(84594)); + +var _GatewayCreateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(75168)); + +var _GatewayCreateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(52361)); + +var _GatewayCreateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(5897)); + +var _GatewayCreateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(25132)); + +var _GatewayCreateProducerPing = _interopRequireDefault(__nccwpck_require__(93225)); + +var _GatewayCreateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(9516)); + +var _GatewayCreateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(85747)); + +var _GatewayCreateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(16994)); + +var _GatewayCreateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(96771)); + +var _GatewayCreateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(9874)); + +var _GatewayCreateProducerRdp = _interopRequireDefault(__nccwpck_require__(63895)); + +var _GatewayCreateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(75822)); + +var _GatewayCreateProducerRedis = _interopRequireDefault(__nccwpck_require__(84198)); + +var _GatewayCreateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(8899)); + +var _GatewayCreateProducerRedshift = _interopRequireDefault(__nccwpck_require__(5404)); + +var _GatewayCreateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(989)); + +var _GatewayCreateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(43881)); + +var _GatewayCreateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(44972)); + +var _GatewayCreateProducerVenafi = _interopRequireDefault(__nccwpck_require__(80288)); + +var _GatewayCreateProducerVenafiOutput = _interopRequireDefault(__nccwpck_require__(42889)); + +var _GatewayDeleteAllowedAccess = _interopRequireDefault(__nccwpck_require__(61432)); + +var _GatewayDeleteAllowedAccessOutput = _interopRequireDefault(__nccwpck_require__(51409)); + +var _GatewayDeleteK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(35530)); + +var _GatewayDeleteK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(77023)); + +var _GatewayDeleteMigration = _interopRequireDefault(__nccwpck_require__(18110)); + +var _GatewayDeleteProducer = _interopRequireDefault(__nccwpck_require__(6902)); + +var _GatewayDeleteProducerOutput = _interopRequireDefault(__nccwpck_require__(56019)); + +var _GatewayDownloadCustomerFragments = _interopRequireDefault(__nccwpck_require__(34610)); + +var _GatewayDownloadCustomerFragmentsOutput = _interopRequireDefault(__nccwpck_require__(80599)); + +var _GatewayGetAllowedAccess = _interopRequireDefault(__nccwpck_require__(48745)); + +var _GatewayGetConfig = _interopRequireDefault(__nccwpck_require__(71450)); + +var _GatewayGetK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(98467)); + +var _GatewayGetK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(39570)); + +var _GatewayGetLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(45214)); + +var _GatewayGetLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(13163)); + +var _GatewayGetMigration = _interopRequireDefault(__nccwpck_require__(49375)); + +var _GatewayGetProducer = _interopRequireDefault(__nccwpck_require__(8465)); + +var _GatewayGetTmpUsers = _interopRequireDefault(__nccwpck_require__(59536)); + +var _GatewayListMigration = _interopRequireDefault(__nccwpck_require__(819)); + +var _GatewayListProducers = _interopRequireDefault(__nccwpck_require__(41680)); + +var _GatewayListRotatedSecrets = _interopRequireDefault(__nccwpck_require__(9805)); + +var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(72593)); + +var _GatewayMigratePersonalItems = _interopRequireDefault(__nccwpck_require__(54180)); + +var _GatewayMigratePersonalItemsOutput = _interopRequireDefault(__nccwpck_require__(55285)); + +var _GatewayMigrationCreateOutput = _interopRequireDefault(__nccwpck_require__(94622)); + +var _GatewayMigrationDeleteOutput = _interopRequireDefault(__nccwpck_require__(4845)); + +var _GatewayMigrationGetOutput = _interopRequireDefault(__nccwpck_require__(27686)); + +var _GatewayMigrationListOutput = _interopRequireDefault(__nccwpck_require__(43554)); + +var _GatewayMigrationSyncOutput = _interopRequireDefault(__nccwpck_require__(82573)); + +var _GatewayMigrationUpdateOutput = _interopRequireDefault(__nccwpck_require__(42419)); + +var _GatewayRevokeTmpUsers = _interopRequireDefault(__nccwpck_require__(39810)); + +var _GatewayStartProducer = _interopRequireDefault(__nccwpck_require__(70633)); + +var _GatewayStartProducerOutput = _interopRequireDefault(__nccwpck_require__(29036)); + +var _GatewayStatusMigration = _interopRequireDefault(__nccwpck_require__(20045)); + +var _GatewayStopProducer = _interopRequireDefault(__nccwpck_require__(31541)); + +var _GatewayStopProducerOutput = _interopRequireDefault(__nccwpck_require__(73024)); + +var _GatewaySyncMigration = _interopRequireDefault(__nccwpck_require__(95462)); + +var _GatewayUpdateAllowedAccess = _interopRequireDefault(__nccwpck_require__(84774)); + +var _GatewayUpdateItem = _interopRequireDefault(__nccwpck_require__(40933)); + +var _GatewayUpdateItemOutput = _interopRequireDefault(__nccwpck_require__(43920)); + +var _GatewayUpdateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(29412)); + +var _GatewayUpdateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(27253)); + +var _GatewayUpdateLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(19167)); + +var _GatewayUpdateLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(45606)); + +var _GatewayUpdateMigration = _interopRequireDefault(__nccwpck_require__(53524)); + +var _GatewayUpdateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(31348)); + +var _GatewayUpdateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(95077)); + +var _GatewayUpdateProducerAws = _interopRequireDefault(__nccwpck_require__(21375)); + +var _GatewayUpdateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(34694)); + +var _GatewayUpdateProducerAzure = _interopRequireDefault(__nccwpck_require__(17117)); + +var _GatewayUpdateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(39160)); + +var _GatewayUpdateProducerCassandra = _interopRequireDefault(__nccwpck_require__(84720)); + +var _GatewayUpdateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(345)); + +var _GatewayUpdateProducerChef = _interopRequireDefault(__nccwpck_require__(4264)); + +var _GatewayUpdateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(38113)); + +var _GatewayUpdateProducerCustom = _interopRequireDefault(__nccwpck_require__(61215)); + +var _GatewayUpdateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(96902)); + +var _GatewayUpdateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(34933)); + +var _GatewayUpdateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(44384)); + +var _GatewayUpdateProducerEks = _interopRequireDefault(__nccwpck_require__(10935)); + +var _GatewayUpdateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(32942)); + +var _GatewayUpdateProducerGcp = _interopRequireDefault(__nccwpck_require__(51060)); + +var _GatewayUpdateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(81061)); + +var _GatewayUpdateProducerGithub = _interopRequireDefault(__nccwpck_require__(25279)); + +var _GatewayUpdateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(78854)); + +var _GatewayUpdateProducerGke = _interopRequireDefault(__nccwpck_require__(10599)); + +var _GatewayUpdateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(75697)); + +var _GatewayUpdateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(56756)); + +var _GatewayUpdateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(35269)); + +var _GatewayUpdateProducerLdap = _interopRequireDefault(__nccwpck_require__(35277)); + +var _GatewayUpdateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(86792)); + +var _GatewayUpdateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(74462)); + +var _GatewayUpdateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(95691)); + +var _GatewayUpdateProducerMongo = _interopRequireDefault(__nccwpck_require__(87970)); + +var _GatewayUpdateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(78311)); + +var _GatewayUpdateProducerMySQL = _interopRequireDefault(__nccwpck_require__(67872)); + +var _GatewayUpdateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(67081)); + +var _GatewayUpdateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(47503)); + +var _GatewayUpdateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(30550)); + +var _GatewayUpdateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(26508)); + +var _GatewayUpdateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(85485)); + +var _GatewayUpdateProducerPing = _interopRequireDefault(__nccwpck_require__(29668)); + +var _GatewayUpdateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(39317)); + +var _GatewayUpdateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(17998)); + +var _GatewayUpdateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(60827)); + +var _GatewayUpdateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(52574)); + +var _GatewayUpdateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(38251)); + +var _GatewayUpdateProducerRdp = _interopRequireDefault(__nccwpck_require__(93628)); + +var _GatewayUpdateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(95741)); + +var _GatewayUpdateProducerRedis = _interopRequireDefault(__nccwpck_require__(27753)); + +var _GatewayUpdateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(46028)); + +var _GatewayUpdateProducerRedshift = _interopRequireDefault(__nccwpck_require__(88541)); + +var _GatewayUpdateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(4152)); + +var _GatewayUpdateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(82506)); + +var _GatewayUpdateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(72895)); + +var _GatewayUpdateProducerVenafi = _interopRequireDefault(__nccwpck_require__(117)); + +var _GatewayUpdateProducerVenafiOutput = _interopRequireDefault(__nccwpck_require__(14816)); + +var _GatewayUpdateTlsCert = _interopRequireDefault(__nccwpck_require__(71695)); + +var _GatewayUpdateTlsCertOutput = _interopRequireDefault(__nccwpck_require__(99862)); + +var _GatewayUpdateTmpUsers = _interopRequireDefault(__nccwpck_require__(71429)); + +var _GatewaysListResponse = _interopRequireDefault(__nccwpck_require__(35713)); + +var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(69042)); + +var _GenCustomerFragment = _interopRequireDefault(__nccwpck_require__(58211)); + +var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(97910)); + +var _GenerateCsr = _interopRequireDefault(__nccwpck_require__(72228)); + +var _GenerateCsrOutput = _interopRequireDefault(__nccwpck_require__(1109)); + +var _GetAccountSettings = _interopRequireDefault(__nccwpck_require__(28351)); + +var _GetAccountSettingsCommandOutput = _interopRequireDefault(__nccwpck_require__(48759)); + +var _GetAnalyticsData = _interopRequireDefault(__nccwpck_require__(40781)); + +var _GetAuthMethod = _interopRequireDefault(__nccwpck_require__(66058)); + +var _GetCertificateValue = _interopRequireDefault(__nccwpck_require__(63293)); + +var _GetCertificateValueOutput = _interopRequireDefault(__nccwpck_require__(70936)); + +var _GetDynamicSecretValue = _interopRequireDefault(__nccwpck_require__(64275)); + +var _GetEventForwarder = _interopRequireDefault(__nccwpck_require__(39599)); + +var _GetEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(47958)); + +var _GetGroup = _interopRequireDefault(__nccwpck_require__(39734)); + +var _GetGroupOutput = _interopRequireDefault(__nccwpck_require__(89459)); + +var _GetKubeExecCreds = _interopRequireDefault(__nccwpck_require__(61656)); + +var _GetKubeExecCredsOutput = _interopRequireDefault(__nccwpck_require__(3697)); + +var _GetLastUserEventStatus = _interopRequireDefault(__nccwpck_require__(71422)); + +var _GetPKICertificate = _interopRequireDefault(__nccwpck_require__(31150)); + +var _GetPKICertificateOutput = _interopRequireDefault(__nccwpck_require__(44315)); + +var _GetProducersListReplyObj = _interopRequireDefault(__nccwpck_require__(91343)); + +var _GetRSAPublic = _interopRequireDefault(__nccwpck_require__(26250)); + +var _GetRSAPublicOutput = _interopRequireDefault(__nccwpck_require__(59039)); + +var _GetRole = _interopRequireDefault(__nccwpck_require__(92157)); + +var _GetRotatedSecretValue = _interopRequireDefault(__nccwpck_require__(29459)); + +var _GetSSHCertificate = _interopRequireDefault(__nccwpck_require__(66708)); + +var _GetSSHCertificateOutput = _interopRequireDefault(__nccwpck_require__(15045)); + +var _GetSecretValue = _interopRequireDefault(__nccwpck_require__(81888)); + +var _GetTags = _interopRequireDefault(__nccwpck_require__(58912)); + +var _GetTarget = _interopRequireDefault(__nccwpck_require__(68536)); + +var _GetTargetDetails = _interopRequireDefault(__nccwpck_require__(23760)); + +var _GetTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(32793)); + +var _GetUserEventStatusOutput = _interopRequireDefault(__nccwpck_require__(49439)); + +var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(98969)); + +var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(82679)); + +var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(47627)); + +var _GodaddyTargetDetails = _interopRequireDefault(__nccwpck_require__(95244)); + +var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(51104)); + +var _Group = _interopRequireDefault(__nccwpck_require__(23762)); + +var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(65883)); + +var _HashiMigration = _interopRequireDefault(__nccwpck_require__(52932)); + +var _HashiPayload = _interopRequireDefault(__nccwpck_require__(72010)); + +var _Hmac = _interopRequireDefault(__nccwpck_require__(28566)); + +var _HmacOutput = _interopRequireDefault(__nccwpck_require__(76659)); + +var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(42767)); + +var _ImportPasswords = _interopRequireDefault(__nccwpck_require__(91384)); + +var _ImportPasswordsOutput = _interopRequireDefault(__nccwpck_require__(7249)); + +var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(20371)); + +var _Item = _interopRequireDefault(__nccwpck_require__(3054)); + +var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(84700)); + +var _ItemSraStatus = _interopRequireDefault(__nccwpck_require__(73342)); + +var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(38148)); + +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(85396)); + +var _JSONError = _interopRequireDefault(__nccwpck_require__(34217)); + +var _K8SAuth = _interopRequireDefault(__nccwpck_require__(3783)); + +var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(92276)); + +var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(27401)); + +var _K8SMigration = _interopRequireDefault(__nccwpck_require__(19797)); + +var _K8SPayload = _interopRequireDefault(__nccwpck_require__(78855)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(76023)); + +var _KMIPClientGetResponse = _interopRequireDefault(__nccwpck_require__(90216)); + +var _KMIPClientListResponse = _interopRequireDefault(__nccwpck_require__(64556)); + +var _KMIPClientUpdateResponse = _interopRequireDefault(__nccwpck_require__(21621)); + +var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(13315)); + +var _KMIPEnvironmentCreateResponse = _interopRequireDefault(__nccwpck_require__(1856)); + +var _KMIPServer = _interopRequireDefault(__nccwpck_require__(22987)); + +var _KmipClientDeleteRule = _interopRequireDefault(__nccwpck_require__(81302)); + +var _KmipClientSetRule = _interopRequireDefault(__nccwpck_require__(7841)); + +var _KmipCreateClient = _interopRequireDefault(__nccwpck_require__(13031)); + +var _KmipCreateClientOutput = _interopRequireDefault(__nccwpck_require__(55742)); + +var _KmipDeleteClient = _interopRequireDefault(__nccwpck_require__(37128)); + +var _KmipDeleteServer = _interopRequireDefault(__nccwpck_require__(8636)); + +var _KmipDescribeClient = _interopRequireDefault(__nccwpck_require__(66618)); + +var _KmipDescribeServer = _interopRequireDefault(__nccwpck_require__(42350)); + +var _KmipDescribeServerOutput = _interopRequireDefault(__nccwpck_require__(68059)); + +var _KmipListClients = _interopRequireDefault(__nccwpck_require__(5706)); + +var _KmipMoveServer = _interopRequireDefault(__nccwpck_require__(83994)); + +var _KmipMoveServerOutput = _interopRequireDefault(__nccwpck_require__(56175)); + +var _KmipRenewClientCertificate = _interopRequireDefault(__nccwpck_require__(94729)); + +var _KmipRenewClientCertificateOutput = _interopRequireDefault(__nccwpck_require__(75020)); + +var _KmipRenewServerCertificate = _interopRequireDefault(__nccwpck_require__(45781)); + +var _KmipRenewServerCertificateOutput = _interopRequireDefault(__nccwpck_require__(48640)); + +var _KmipServerSetup = _interopRequireDefault(__nccwpck_require__(85466)); + +var _KmipSetServerState = _interopRequireDefault(__nccwpck_require__(11340)); + +var _KmipSetServerStateOutput = _interopRequireDefault(__nccwpck_require__(12269)); + +var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(83308)); + +var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(65975)); + +var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(51347)); + +var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(67591)); + +var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(44147)); + +var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(81583)); + +var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(54801)); + +var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(47260)); + +var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(16023)); + +var _ListAuthMethods = _interopRequireDefault(__nccwpck_require__(61769)); + +var _ListAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(68940)); + +var _ListGateways = _interopRequireDefault(__nccwpck_require__(14862)); + +var _ListGroups = _interopRequireDefault(__nccwpck_require__(43437)); + +var _ListGroupsOutput = _interopRequireDefault(__nccwpck_require__(71336)); + +var _ListItems = _interopRequireDefault(__nccwpck_require__(14121)); + +var _ListItemsInPathOutput = _interopRequireDefault(__nccwpck_require__(95752)); + +var _ListItemsOutput = _interopRequireDefault(__nccwpck_require__(22828)); + +var _ListRoles = _interopRequireDefault(__nccwpck_require__(51752)); + +var _ListRolesOutput = _interopRequireDefault(__nccwpck_require__(82465)); + +var _ListSRABastions = _interopRequireDefault(__nccwpck_require__(71572)); + +var _ListSharedItems = _interopRequireDefault(__nccwpck_require__(24674)); + +var _ListTargets = _interopRequireDefault(__nccwpck_require__(89399)); + +var _ListTargetsOutput = _interopRequireDefault(__nccwpck_require__(49966)); + +var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(75643)); + +var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(37915)); + +var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(45466)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); + +var _MigrationItems = _interopRequireDefault(__nccwpck_require__(31445)); + +var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(6591)); + +var _MigrationStatusReplyObj = _interopRequireDefault(__nccwpck_require__(81914)); + +var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(1370)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(83635)); + +var _MockMigration = _interopRequireDefault(__nccwpck_require__(39419)); + +var _MockPayload = _interopRequireDefault(__nccwpck_require__(99993)); + +var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(62146)); + +var _MoveObjects = _interopRequireDefault(__nccwpck_require__(59130)); + +var _Name = _interopRequireDefault(__nccwpck_require__(97822)); + +var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(68947)); + +var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(82007)); + +var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(72725)); + +var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(44117)); + +var _OCIAccessRules = _interopRequireDefault(__nccwpck_require__(61443)); + +var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(51679)); + +var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(38119)); + +var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(13120)); + +var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(17035)); + +var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(88702)); + +var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(6368)); + +var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(61949)); + +var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(7086)); + +var _PathRule = _interopRequireDefault(__nccwpck_require__(42800)); + +var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(11276)); + +var _Producer = _interopRequireDefault(__nccwpck_require__(56263)); + +var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(80937)); + +var _ProvisionCertificate = _interopRequireDefault(__nccwpck_require__(40955)); + +var _ProvisionCertificateOutput = _interopRequireDefault(__nccwpck_require__(17594)); + +var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(49950)); + +var _RawCreds = _interopRequireDefault(__nccwpck_require__(37314)); + +var _RefreshKey = _interopRequireDefault(__nccwpck_require__(69211)); + +var _RefreshKeyOutput = _interopRequireDefault(__nccwpck_require__(8346)); + +var _RegexpTokenizerInfo = _interopRequireDefault(__nccwpck_require__(43939)); + +var _RenewCertificate = _interopRequireDefault(__nccwpck_require__(12997)); + +var _RenewCertificateOutput = _interopRequireDefault(__nccwpck_require__(7472)); + +var _RequestAccess = _interopRequireDefault(__nccwpck_require__(50874)); + +var _RequestAccessOutput = _interopRequireDefault(__nccwpck_require__(27055)); + +var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(37953)); + +var _ReverseRBAC = _interopRequireDefault(__nccwpck_require__(94227)); + +var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(50912)); + +var _ReverseRBACOutput = _interopRequireDefault(__nccwpck_require__(90274)); + +var _RevokeCertificate = _interopRequireDefault(__nccwpck_require__(28096)); + +var _RevokeCreds = _interopRequireDefault(__nccwpck_require__(74726)); + +var _Role = _interopRequireDefault(__nccwpck_require__(82945)); + +var _RoleAssociationDetails = _interopRequireDefault(__nccwpck_require__(13682)); + +var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(20979)); + +var _RollbackSecret = _interopRequireDefault(__nccwpck_require__(21513)); + +var _RollbackSecretOutput = _interopRequireDefault(__nccwpck_require__(9900)); + +var _RotateKey = _interopRequireDefault(__nccwpck_require__(32451)); + +var _RotateKeyOutput = _interopRequireDefault(__nccwpck_require__(29394)); + +var _RotateOidcClientOutput = _interopRequireDefault(__nccwpck_require__(41421)); + +var _RotateOidcClientSecret = _interopRequireDefault(__nccwpck_require__(82252)); + +var _RotateSecret = _interopRequireDefault(__nccwpck_require__(85362)); + +var _RotatedSecretCreateAws = _interopRequireDefault(__nccwpck_require__(83871)); + +var _RotatedSecretCreateAzure = _interopRequireDefault(__nccwpck_require__(4733)); + +var _RotatedSecretCreateCassandra = _interopRequireDefault(__nccwpck_require__(60560)); + +var _RotatedSecretCreateCustom = _interopRequireDefault(__nccwpck_require__(62527)); + +var _RotatedSecretCreateDockerhub = _interopRequireDefault(__nccwpck_require__(53685)); + +var _RotatedSecretCreateGcp = _interopRequireDefault(__nccwpck_require__(63476)); + +var _RotatedSecretCreateHanadb = _interopRequireDefault(__nccwpck_require__(78964)); + +var _RotatedSecretCreateLdap = _interopRequireDefault(__nccwpck_require__(29101)); + +var _RotatedSecretCreateMongodb = _interopRequireDefault(__nccwpck_require__(96884)); + +var _RotatedSecretCreateMssql = _interopRequireDefault(__nccwpck_require__(60350)); + +var _RotatedSecretCreateMysql = _interopRequireDefault(__nccwpck_require__(33312)); + +var _RotatedSecretCreateOracledb = _interopRequireDefault(__nccwpck_require__(44268)); + +var _RotatedSecretCreateOutput = _interopRequireDefault(__nccwpck_require__(91489)); + +var _RotatedSecretCreatePostgresql = _interopRequireDefault(__nccwpck_require__(70606)); + +var _RotatedSecretCreateRedis = _interopRequireDefault(__nccwpck_require__(87721)); + +var _RotatedSecretCreateRedshift = _interopRequireDefault(__nccwpck_require__(39101)); + +var _RotatedSecretCreateSnowflake = _interopRequireDefault(__nccwpck_require__(66890)); + +var _RotatedSecretCreateSsh = _interopRequireDefault(__nccwpck_require__(79888)); + +var _RotatedSecretCreateWindows = _interopRequireDefault(__nccwpck_require__(40983)); + +var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(30316)); + +var _RotatedSecretGetValue = _interopRequireDefault(__nccwpck_require__(37381)); + +var _RotatedSecretList = _interopRequireDefault(__nccwpck_require__(94472)); + +var _RotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(4617)); + +var _RotatedSecretUpdateAws = _interopRequireDefault(__nccwpck_require__(24136)); + +var _RotatedSecretUpdateAzure = _interopRequireDefault(__nccwpck_require__(22742)); + +var _RotatedSecretUpdateCassandra = _interopRequireDefault(__nccwpck_require__(26195)); + +var _RotatedSecretUpdateCustom = _interopRequireDefault(__nccwpck_require__(60682)); + +var _RotatedSecretUpdateDockerhub = _interopRequireDefault(__nccwpck_require__(92078)); + +var _RotatedSecretUpdateGcp = _interopRequireDefault(__nccwpck_require__(56315)); + +var _RotatedSecretUpdateHanadb = _interopRequireDefault(__nccwpck_require__(79165)); + +var _RotatedSecretUpdateLdap = _interopRequireDefault(__nccwpck_require__(23456)); + +var _RotatedSecretUpdateMongodb = _interopRequireDefault(__nccwpck_require__(64915)); + +var _RotatedSecretUpdateMssql = _interopRequireDefault(__nccwpck_require__(71665)); + +var _RotatedSecretUpdateMysql = _interopRequireDefault(__nccwpck_require__(91735)); + +var _RotatedSecretUpdateOracledb = _interopRequireDefault(__nccwpck_require__(60069)); + +var _RotatedSecretUpdateOutput = _interopRequireDefault(__nccwpck_require__(75288)); + +var _RotatedSecretUpdatePostgresql = _interopRequireDefault(__nccwpck_require__(78599)); + +var _RotatedSecretUpdateRedis = _interopRequireDefault(__nccwpck_require__(35770)); + +var _RotatedSecretUpdateRedshift = _interopRequireDefault(__nccwpck_require__(40264)); + +var _RotatedSecretUpdateSnowflake = _interopRequireDefault(__nccwpck_require__(53949)); + +var _RotatedSecretUpdateSsh = _interopRequireDefault(__nccwpck_require__(31655)); + +var _RotatedSecretUpdateWindows = _interopRequireDefault(__nccwpck_require__(13420)); + +var _RotationSecretMaxInterval = _interopRequireDefault(__nccwpck_require__(77256)); + +var _Rotator = _interopRequireDefault(__nccwpck_require__(73124)); + +var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(86112)); + +var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(43453)); + +var _Rules = _interopRequireDefault(__nccwpck_require__(64146)); + +var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(60315)); + +var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(81850)); + +var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(44679)); + +var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(75582)); + +var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(96765)); + +var _SecretInfo = _interopRequireDefault(__nccwpck_require__(70409)); + +var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(83028)); + +var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(40758)); + +var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(21912)); + +var _SetItemState = _interopRequireDefault(__nccwpck_require__(33993)); + +var _SetRoleRule = _interopRequireDefault(__nccwpck_require__(84215)); + +var _ShareItem = _interopRequireDefault(__nccwpck_require__(22705)); + +var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(48379)); + +var _SignDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(13875)); + +var _SignEcDsa = _interopRequireDefault(__nccwpck_require__(60074)); + +var _SignEcDsaOutput = _interopRequireDefault(__nccwpck_require__(23679)); + +var _SignGPG = _interopRequireDefault(__nccwpck_require__(47626)); + +var _SignGPGOutput = _interopRequireDefault(__nccwpck_require__(82879)); + +var _SignJWTOutput = _interopRequireDefault(__nccwpck_require__(79454)); + +var _SignJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(92924)); + +var _SignOutput = _interopRequireDefault(__nccwpck_require__(84449)); + +var _SignPKCS = _interopRequireDefault(__nccwpck_require__(11812)); + +var _SignPKCS1Output = _interopRequireDefault(__nccwpck_require__(30325)); + +var _SignPKICertOutput = _interopRequireDefault(__nccwpck_require__(79313)); + +var _SignPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(47579)); + +var _SignRsaSsaPss = _interopRequireDefault(__nccwpck_require__(52857)); + +var _SignRsaSsaPssOutput = _interopRequireDefault(__nccwpck_require__(4527)); + +var _SmInfo = _interopRequireDefault(__nccwpck_require__(35089)); + +var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(7587)); + +var _SraInfo = _interopRequireDefault(__nccwpck_require__(62365)); + +var _StaticCredsAuth = _interopRequireDefault(__nccwpck_require__(74556)); + +var _StaticCredsAuthOutput = _interopRequireDefault(__nccwpck_require__(84349)); + +var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(90513)); + +var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(22696)); + +var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(74689)); + +var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(96719)); + +var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(8792)); + +var _Target = _interopRequireDefault(__nccwpck_require__(17364)); + +var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(80220)); + +var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(75107)); + +var _TargetNameWithHosts = _interopRequireDefault(__nccwpck_require__(21380)); + +var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(83102)); + +var _TmpUserData = _interopRequireDefault(__nccwpck_require__(96175)); + +var _Tokenize = _interopRequireDefault(__nccwpck_require__(91288)); + +var _TokenizeOutput = _interopRequireDefault(__nccwpck_require__(62001)); + +var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(49572)); + +var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(58338)); + +var _UidCreateChildToken = _interopRequireDefault(__nccwpck_require__(88720)); + +var _UidCreateChildTokenOutput = _interopRequireDefault(__nccwpck_require__(23961)); + +var _UidGenerateToken = _interopRequireDefault(__nccwpck_require__(66215)); + +var _UidGenerateTokenOutput = _interopRequireDefault(__nccwpck_require__(13598)); + +var _UidListChildren = _interopRequireDefault(__nccwpck_require__(68336)); + +var _UidRevokeToken = _interopRequireDefault(__nccwpck_require__(82180)); + +var _UidRotateToken = _interopRequireDefault(__nccwpck_require__(59143)); + +var _UidRotateTokenOutput = _interopRequireDefault(__nccwpck_require__(21214)); + +var _Unconfigure = _interopRequireDefault(__nccwpck_require__(53608)); + +var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(15941)); + +var _UniversalIdentityDetails = _interopRequireDefault(__nccwpck_require__(50166)); + +var _Update = _interopRequireDefault(__nccwpck_require__(67084)); + +var _UpdateAWSTarget = _interopRequireDefault(__nccwpck_require__(99286)); + +var _UpdateAWSTargetDetails = _interopRequireDefault(__nccwpck_require__(53070)); + +var _UpdateAccountSettings = _interopRequireDefault(__nccwpck_require__(57356)); + +var _UpdateAccountSettingsOutput = _interopRequireDefault(__nccwpck_require__(50125)); + +var _UpdateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(13865)); + +var _UpdateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(28908)); + +var _UpdateAssoc = _interopRequireDefault(__nccwpck_require__(23141)); + +var _UpdateAuthMethod = _interopRequireDefault(__nccwpck_require__(21883)); + +var _UpdateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(37029)); + +var _UpdateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(88049)); + +var _UpdateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(13313)); + +var _UpdateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(92116)); + +var _UpdateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(33149)); + +var _UpdateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(50563)); + +var _UpdateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(67314)); + +var _UpdateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(7966)); + +var _UpdateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(61739)); + +var _UpdateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(2664)); + +var _UpdateAuthMethodOCI = _interopRequireDefault(__nccwpck_require__(87630)); + +var _UpdateAuthMethodOCIOutput = _interopRequireDefault(__nccwpck_require__(93179)); + +var _UpdateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(48022)); + +var _UpdateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(8314)); + +var _UpdateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(75902)); + +var _UpdateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(57907)); + +var _UpdateAzureTarget = _interopRequireDefault(__nccwpck_require__(57420)); + +var _UpdateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(29677)); + +var _UpdateCertificateOutput = _interopRequireDefault(__nccwpck_require__(17004)); + +var _UpdateCertificateValue = _interopRequireDefault(__nccwpck_require__(44420)); + +var _UpdateClassicKeyCertificate = _interopRequireDefault(__nccwpck_require__(94908)); + +var _UpdateDBTarget = _interopRequireDefault(__nccwpck_require__(53451)); + +var _UpdateDBTargetDetails = _interopRequireDefault(__nccwpck_require__(25405)); + +var _UpdateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(64650)); + +var _UpdateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(35588)); + +var _UpdateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(90229)); + +var _UpdateEKSTarget = _interopRequireDefault(__nccwpck_require__(26894)); + +var _UpdateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(95963)); + +var _UpdateEventForwarder = _interopRequireDefault(__nccwpck_require__(46006)); + +var _UpdateGKETarget = _interopRequireDefault(__nccwpck_require__(65334)); + +var _UpdateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(88371)); + +var _UpdateGcpTarget = _interopRequireDefault(__nccwpck_require__(65793)); + +var _UpdateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(65620)); + +var _UpdateGithubTarget = _interopRequireDefault(__nccwpck_require__(1806)); + +var _UpdateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(50715)); + +var _UpdateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(77438)); + +var _UpdateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(62731)); + +var _UpdateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(62311)); + +var _UpdateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(66718)); + +var _UpdateGodaddyTarget = _interopRequireDefault(__nccwpck_require__(3964)); + +var _UpdateGodaddyTargetOutput = _interopRequireDefault(__nccwpck_require__(29110)); + +var _UpdateGroup = _interopRequireDefault(__nccwpck_require__(60561)); + +var _UpdateGroupOutput = _interopRequireDefault(__nccwpck_require__(29764)); + +var _UpdateItem = _interopRequireDefault(__nccwpck_require__(55359)); + +var _UpdateItemOutput = _interopRequireDefault(__nccwpck_require__(68806)); + +var _UpdateLdapTarget = _interopRequireDefault(__nccwpck_require__(47860)); + +var _UpdateLdapTargetDetails = _interopRequireDefault(__nccwpck_require__(52356)); + +var _UpdateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(2501)); + +var _UpdateLinkedTarget = _interopRequireDefault(__nccwpck_require__(21384)); + +var _UpdateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(1454)); + +var _UpdateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(19259)); + +var _UpdateOidcApp = _interopRequireDefault(__nccwpck_require__(44538)); + +var _UpdateOutput = _interopRequireDefault(__nccwpck_require__(89325)); + +var _UpdatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(36355)); + +var _UpdatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(96434)); + +var _UpdatePingTarget = _interopRequireDefault(__nccwpck_require__(60881)); + +var _UpdateRDPTargetDetails = _interopRequireDefault(__nccwpck_require__(95347)); + +var _UpdateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(51155)); + +var _UpdateRabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(60917)); + +var _UpdateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(75522)); + +var _UpdateRole = _interopRequireDefault(__nccwpck_require__(69176)); + +var _UpdateRoleOutput = _interopRequireDefault(__nccwpck_require__(66161)); + +var _UpdateRotatedSecret = _interopRequireDefault(__nccwpck_require__(70467)); + +var _UpdateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(12498)); + +var _UpdateRotationSettings = _interopRequireDefault(__nccwpck_require__(71651)); + +var _UpdateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(50705)); + +var _UpdateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(59748)); + +var _UpdateSSHTarget = _interopRequireDefault(__nccwpck_require__(84357)); + +var _UpdateSSHTargetDetails = _interopRequireDefault(__nccwpck_require__(50311)); + +var _UpdateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(86768)); + +var _UpdateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(69078)); + +var _UpdateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(81299)); + +var _UpdateSecretVal = _interopRequireDefault(__nccwpck_require__(70985)); + +var _UpdateSecretValOutput = _interopRequireDefault(__nccwpck_require__(81164)); + +var _UpdateTarget = _interopRequireDefault(__nccwpck_require__(66565)); + +var _UpdateTargetDetails = _interopRequireDefault(__nccwpck_require__(78887)); + +var _UpdateTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(5662)); + +var _UpdateTargetOutput = _interopRequireDefault(__nccwpck_require__(33392)); + +var _UpdateWebTarget = _interopRequireDefault(__nccwpck_require__(84717)); + +var _UpdateWebTargetDetails = _interopRequireDefault(__nccwpck_require__(48511)); + +var _UpdateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(52008)); + +var _UpdateWindowsTarget = _interopRequireDefault(__nccwpck_require__(58670)); + +var _UpdateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(27571)); + +var _UpdateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(12866)); + +var _UploadPKCS = _interopRequireDefault(__nccwpck_require__(53084)); + +var _UploadRSA = _interopRequireDefault(__nccwpck_require__(46795)); + +var _UsageEventSetting = _interopRequireDefault(__nccwpck_require__(51386)); + +var _UsageReportSummary = _interopRequireDefault(__nccwpck_require__(48362)); + +var _UscCreate = _interopRequireDefault(__nccwpck_require__(65636)); + +var _UscCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(82453)); + +var _UscDelete = _interopRequireDefault(__nccwpck_require__(85003)); + +var _UscDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(49046)); + +var _UscGet = _interopRequireDefault(__nccwpck_require__(92522)); + +var _UscGetSecretOutput = _interopRequireDefault(__nccwpck_require__(40155)); + +var _UscList = _interopRequireDefault(__nccwpck_require__(40380)); + +var _UscListSecretsOutput = _interopRequireDefault(__nccwpck_require__(66114)); + +var _UscUpdate = _interopRequireDefault(__nccwpck_require__(16705)); + +var _UscUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(57540)); + +var _ValidateToken = _interopRequireDefault(__nccwpck_require__(62030)); + +var _ValidateTokenOutput = _interopRequireDefault(__nccwpck_require__(14299)); + +var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(39123)); + +var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(35955)); + +var _VerifyDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(65575)); + +var _VerifyEcDsa = _interopRequireDefault(__nccwpck_require__(17398)); + +var _VerifyGPG = _interopRequireDefault(__nccwpck_require__(79430)); + +var _VerifyJWTOutput = _interopRequireDefault(__nccwpck_require__(43858)); + +var _VerifyJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(21992)); + +var _VerifyPKCS = _interopRequireDefault(__nccwpck_require__(72992)); + +var _VerifyPKICertOutput = _interopRequireDefault(__nccwpck_require__(71173)); + +var _VerifyPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(35815)); + +var _VerifyRsaSsaPss = _interopRequireDefault(__nccwpck_require__(53541)); + +var _WebHookNotiForwarderPublicDetails = _interopRequireDefault(__nccwpck_require__(42279)); + +var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(42346)); + +var _WindowsService = _interopRequireDefault(__nccwpck_require__(38985)); + +var _WindowsServiceAttributes = _interopRequireDefault(__nccwpck_require__(71928)); + +var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(66819)); + +var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(55208)); + +var _V2Api = _interopRequireDefault(__nccwpck_require__(976)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +/***/ }), + +/***/ 97833: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The APIKeyAccessRules model module. + * @module model/APIKeyAccessRules + * @version 3.6.3 + */ +var APIKeyAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new APIKeyAccessRules. + * @alias module:model/APIKeyAccessRules + */ + function APIKeyAccessRules() { + _classCallCheck(this, APIKeyAccessRules); + + APIKeyAccessRules.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(APIKeyAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a APIKeyAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/APIKeyAccessRules} obj Optional instance to populate. + * @return {module:model/APIKeyAccessRules} The populated APIKeyAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new APIKeyAccessRules(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + } + + return obj; + } + }]); + + return APIKeyAccessRules; +}(); +/** + * @member {String} alg + */ + + +APIKeyAccessRules.prototype['alg'] = undefined; +/** + * The public key value of the API-key. + * @member {String} key + */ + +APIKeyAccessRules.prototype['key'] = undefined; +/** + * @member {Date} modification_date + */ + +APIKeyAccessRules.prototype['modification_date'] = undefined; +var _default = APIKeyAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 80554: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ListTargetsOutput", ({ - enumerable: true, - get: function get() { - return _ListTargetsOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSIAMAccessRules model module. + * @module model/AWSIAMAccessRules + * @version 3.6.3 + */ +var AWSIAMAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new AWSIAMAccessRules. + * @alias module:model/AWSIAMAccessRules + */ + function AWSIAMAccessRules() { + _classCallCheck(this, AWSIAMAccessRules); + + AWSIAMAccessRules.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSIAMAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSIAMAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSIAMAccessRules} obj Optional instance to populate. + * @return {module:model/AWSIAMAccessRules} The populated AWSIAMAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSIAMAccessRules(); + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], ['String']); + } + + if (data.hasOwnProperty('arn')) { + obj['arn'] = _ApiClient["default"].convertToType(data['arn'], ['String']); + } + + if (data.hasOwnProperty('resource_id')) { + obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], ['String']); + } + + if (data.hasOwnProperty('role_id')) { + obj['role_id'] = _ApiClient["default"].convertToType(data['role_id'], ['String']); + } + + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], ['String']); + } + + if (data.hasOwnProperty('sts_endpoint')) { + obj['sts_endpoint'] = _ApiClient["default"].convertToType(data['sts_endpoint'], 'String'); + } + + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); + } + + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); + } + } + + return obj; + } + }]); + + return AWSIAMAccessRules; +}(); +/** + * The list of account ids that the login is restricted to. + * @member {Array.} account_id + */ + + +AWSIAMAccessRules.prototype['account_id'] = undefined; +/** + * The list of ARNs that the login is restricted to. + * @member {Array.} arn + */ + +AWSIAMAccessRules.prototype['arn'] = undefined; +/** + * The list of resource ids that the login is restricted to. + * @member {Array.} resource_id + */ + +AWSIAMAccessRules.prototype['resource_id'] = undefined; +/** + * The list of role ids that the login is restricted to. + * @member {Array.} role_id + */ + +AWSIAMAccessRules.prototype['role_id'] = undefined; +/** + * The list of role names that the login is restricted to. + * @member {Array.} role_name + */ + +AWSIAMAccessRules.prototype['role_name'] = undefined; +/** + * The sts URL. + * @member {String} sts_endpoint + */ + +AWSIAMAccessRules.prototype['sts_endpoint'] = undefined; +/** + * The list of user ids that the login is restricted to. + * @member {Array.} user_id + */ + +AWSIAMAccessRules.prototype['user_id'] = undefined; +/** + * The list of user names that the login is restricted to. + * @member {Array.} user_name + */ + +AWSIAMAccessRules.prototype['user_name'] = undefined; +var _default = AWSIAMAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 14652: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "LogForwardingConfigPart", ({ - enumerable: true, - get: function get() { - return _LogForwardingConfigPart["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSPayload model module. + * @module model/AWSPayload + * @version 3.6.3 + */ +var AWSPayload = /*#__PURE__*/function () { + /** + * Constructs a new AWSPayload. + * @alias module:model/AWSPayload + */ + function AWSPayload() { + _classCallCheck(this, AWSPayload); + + AWSPayload.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSPayload} obj Optional instance to populate. + * @return {module:model/AWSPayload} The populated AWSPayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSPayload(); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + } + + return obj; + } + }]); + + return AWSPayload; +}(); +/** + * @member {String} key + */ + + +AWSPayload.prototype['key'] = undefined; +/** + * @member {String} region + */ + +AWSPayload.prototype['region'] = undefined; +/** + * @member {String} secret + */ + +AWSPayload.prototype['secret'] = undefined; +var _default = AWSPayload; +exports["default"] = _default; + +/***/ }), + +/***/ 59663: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "LogstashLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _LogstashLogForwardingConfig["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AWSPayload = _interopRequireDefault(__nccwpck_require__(14652)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSSecretsMigration model module. + * @module model/AWSSecretsMigration + * @version 3.6.3 + */ +var AWSSecretsMigration = /*#__PURE__*/function () { + /** + * Constructs a new AWSSecretsMigration. + * @alias module:model/AWSSecretsMigration + */ + function AWSSecretsMigration() { + _classCallCheck(this, AWSSecretsMigration); + + AWSSecretsMigration.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSSecretsMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSSecretsMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSSecretsMigration} obj Optional instance to populate. + * @return {module:model/AWSSecretsMigration} The populated AWSSecretsMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSSecretsMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _AWSPayload["default"].constructFromObject(data['payload']); + } + } + + return obj; + } + }]); + + return AWSSecretsMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +AWSSecretsMigration.prototype['general'] = undefined; +/** + * @member {module:model/AWSPayload} payload + */ + +AWSSecretsMigration.prototype['payload'] = undefined; +var _default = AWSSecretsMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 65927: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "LogzIoLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _LogzIoLogForwardingConfig["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSTargetDetails model module. + * @module model/AWSTargetDetails + * @version 3.6.3 + */ +var AWSTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new AWSTargetDetails. + * @alias module:model/AWSTargetDetails + */ + function AWSTargetDetails() { + _classCallCheck(this, AWSTargetDetails); + + AWSTargetDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSTargetDetails} obj Optional instance to populate. + * @return {module:model/AWSTargetDetails} The populated AWSTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSTargetDetails(); + + if (data.hasOwnProperty('aws_access_key_id')) { + obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); + } + + if (data.hasOwnProperty('aws_region')) { + obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + } + + if (data.hasOwnProperty('aws_secret_access_key')) { + obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('aws_session_token')) { + obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return AWSTargetDetails; +}(); +/** + * @member {String} aws_access_key_id + */ + + +AWSTargetDetails.prototype['aws_access_key_id'] = undefined; +/** + * @member {String} aws_region + */ + +AWSTargetDetails.prototype['aws_region'] = undefined; +/** + * @member {String} aws_secret_access_key + */ + +AWSTargetDetails.prototype['aws_secret_access_key'] = undefined; +/** + * @member {String} aws_session_token + */ + +AWSTargetDetails.prototype['aws_session_token'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +AWSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = AWSTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 35765: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MigrationGeneral", ({ - enumerable: true, - get: function get() { - return _MigrationGeneral["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccessOrGroupPermissionAssignment model module. + * @module model/AccessOrGroupPermissionAssignment + * @version 3.6.3 + */ +var AccessOrGroupPermissionAssignment = /*#__PURE__*/function () { + /** + * Constructs a new AccessOrGroupPermissionAssignment. + * @alias module:model/AccessOrGroupPermissionAssignment + */ + function AccessOrGroupPermissionAssignment() { + _classCallCheck(this, AccessOrGroupPermissionAssignment); + + AccessOrGroupPermissionAssignment.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccessOrGroupPermissionAssignment, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccessOrGroupPermissionAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccessOrGroupPermissionAssignment} obj Optional instance to populate. + * @return {module:model/AccessOrGroupPermissionAssignment} The populated AccessOrGroupPermissionAssignment instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccessOrGroupPermissionAssignment(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('assignment_name')) { + obj['assignment_name'] = _ApiClient["default"].convertToType(data['assignment_name'], 'String'); + } + + if (data.hasOwnProperty('assignment_type')) { + obj['assignment_type'] = _ApiClient["default"].convertToType(data['assignment_type'], 'String'); + } + + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = _ApiClient["default"].convertToType(data['group_id'], 'String'); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return AccessOrGroupPermissionAssignment; +}(); +/** + * @member {String} access_id + */ + + +AccessOrGroupPermissionAssignment.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +AccessOrGroupPermissionAssignment.prototype['access_type'] = undefined; +/** + * @member {String} assignment_name + */ + +AccessOrGroupPermissionAssignment.prototype['assignment_name'] = undefined; +/** + * @member {String} assignment_type + */ + +AccessOrGroupPermissionAssignment.prototype['assignment_type'] = undefined; +/** + * @member {String} group_id + */ + +AccessOrGroupPermissionAssignment.prototype['group_id'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AccessOrGroupPermissionAssignment.prototype['sub_claims'] = undefined; +var _default = AccessOrGroupPermissionAssignment; +exports["default"] = _default; + +/***/ }), + +/***/ 58545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MigrationItems", ({ - enumerable: true, - get: function get() { - return _MigrationItems["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccessPermissionAssignment model module. + * @module model/AccessPermissionAssignment + * @version 3.6.3 + */ +var AccessPermissionAssignment = /*#__PURE__*/function () { + /** + * Constructs a new AccessPermissionAssignment. + * @alias module:model/AccessPermissionAssignment + */ + function AccessPermissionAssignment() { + _classCallCheck(this, AccessPermissionAssignment); + + AccessPermissionAssignment.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccessPermissionAssignment, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccessPermissionAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccessPermissionAssignment} obj Optional instance to populate. + * @return {module:model/AccessPermissionAssignment} The populated AccessPermissionAssignment instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccessPermissionAssignment(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return AccessPermissionAssignment; +}(); +/** + * @member {String} access_id + */ + + +AccessPermissionAssignment.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +AccessPermissionAssignment.prototype['access_type'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AccessPermissionAssignment.prototype['sub_claims'] = undefined; +var _default = AccessPermissionAssignment; +exports["default"] = _default; + +/***/ }), + +/***/ 27189: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MigrationStatus", ({ - enumerable: true, - get: function get() { - return _MigrationStatus["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(32891)); + +var _DynamicSecretMaxTtl = _interopRequireDefault(__nccwpck_require__(71774)); + +var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(7086)); + +var _RotationSecretMaxInterval = _interopRequireDefault(__nccwpck_require__(77256)); + +var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(48379)); + +var _UsageEventSetting = _interopRequireDefault(__nccwpck_require__(51386)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountGeneralSettings model module. + * @module model/AccountGeneralSettings + * @version 3.6.3 + */ +var AccountGeneralSettings = /*#__PURE__*/function () { + /** + * Constructs a new AccountGeneralSettings. + * AccountGeneralSettings describes general settings for an account + * @alias module:model/AccountGeneralSettings + */ + function AccountGeneralSettings() { + _classCallCheck(this, AccountGeneralSettings); + + AccountGeneralSettings.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountGeneralSettings, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccountGeneralSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountGeneralSettings} obj Optional instance to populate. + * @return {module:model/AccountGeneralSettings} The populated AccountGeneralSettings instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountGeneralSettings(); + + if (data.hasOwnProperty('account_default_key_item_id')) { + obj['account_default_key_item_id'] = _ApiClient["default"].convertToType(data['account_default_key_item_id'], 'Number'); + } + + if (data.hasOwnProperty('account_default_key_name')) { + obj['account_default_key_name'] = _ApiClient["default"].convertToType(data['account_default_key_name'], 'String'); + } + + if (data.hasOwnProperty('auth_usage_event')) { + obj['auth_usage_event'] = _UsageEventSetting["default"].constructFromObject(data['auth_usage_event']); + } + + if (data.hasOwnProperty('data_protection_section')) { + obj['data_protection_section'] = _DataProtectionSection["default"].constructFromObject(data['data_protection_section']); + } + + if (data.hasOwnProperty('dynamic_secret_max_ttl')) { + obj['dynamic_secret_max_ttl'] = _DynamicSecretMaxTtl["default"].constructFromObject(data['dynamic_secret_max_ttl']); + } + + if (data.hasOwnProperty('enable_request_for_access')) { + obj['enable_request_for_access'] = _ApiClient["default"].convertToType(data['enable_request_for_access'], 'Boolean'); + } + + if (data.hasOwnProperty('invalid_characters')) { + obj['invalid_characters'] = _ApiClient["default"].convertToType(data['invalid_characters'], 'String'); + } + + if (data.hasOwnProperty('item_usage_event')) { + obj['item_usage_event'] = _UsageEventSetting["default"].constructFromObject(data['item_usage_event']); + } + + if (data.hasOwnProperty('lock_default_key')) { + obj['lock_default_key'] = _ApiClient["default"].convertToType(data['lock_default_key'], 'Boolean'); + } + + if (data.hasOwnProperty('password_policy')) { + obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); + } + + if (data.hasOwnProperty('protect_items_by_default')) { + obj['protect_items_by_default'] = _ApiClient["default"].convertToType(data['protect_items_by_default'], 'Boolean'); + } + + if (data.hasOwnProperty('rotation_secret_max_interval')) { + obj['rotation_secret_max_interval'] = _RotationSecretMaxInterval["default"].constructFromObject(data['rotation_secret_max_interval']); + } + + if (data.hasOwnProperty('sharing_policy')) { + obj['sharing_policy'] = _SharingPolicyInfo["default"].constructFromObject(data['sharing_policy']); + } + } + + return obj; + } + }]); + + return AccountGeneralSettings; +}(); +/** + * AccountDefaultKeyItemID is the item ID of the DFC key item configured as the default protection key + * @member {Number} account_default_key_item_id + */ + + +AccountGeneralSettings.prototype['account_default_key_item_id'] = undefined; +/** + * AccountDefaultKeyName is the name of the DFC key item configured as the default key This is here simply for the response to include the item name in addition to the display ID so the client can properly show this to the user. It will not be saved to the DB, only the AccountDefaultKeyItemID will. + * @member {String} account_default_key_name + */ + +AccountGeneralSettings.prototype['account_default_key_name'] = undefined; +/** + * @member {module:model/UsageEventSetting} auth_usage_event + */ + +AccountGeneralSettings.prototype['auth_usage_event'] = undefined; +/** + * @member {module:model/DataProtectionSection} data_protection_section + */ + +AccountGeneralSettings.prototype['data_protection_section'] = undefined; +/** + * @member {module:model/DynamicSecretMaxTtl} dynamic_secret_max_ttl + */ + +AccountGeneralSettings.prototype['dynamic_secret_max_ttl'] = undefined; +/** + * @member {Boolean} enable_request_for_access + */ + +AccountGeneralSettings.prototype['enable_request_for_access'] = undefined; +/** + * InvalidCharacters is the invalid characters for items/targets/roles/auths/notifier_forwarder naming convention + * @member {String} invalid_characters + */ + +AccountGeneralSettings.prototype['invalid_characters'] = undefined; +/** + * @member {module:model/UsageEventSetting} item_usage_event + */ + +AccountGeneralSettings.prototype['item_usage_event'] = undefined; +/** + * LockDefaultKey determines whether the configured default key can be updated by end-users on a per-request basis true - all requests use the configured default key false - every request can determine its protection key (default) nil - change nothing (every request can determine its protection key (default)) This parameter is only relevant if AccountDefaultKeyItemID is not empty + * @member {Boolean} lock_default_key + */ + +AccountGeneralSettings.prototype['lock_default_key'] = undefined; +/** + * @member {module:model/PasswordPolicyInfo} password_policy + */ + +AccountGeneralSettings.prototype['password_policy'] = undefined; +/** + * @member {Boolean} protect_items_by_default + */ + +AccountGeneralSettings.prototype['protect_items_by_default'] = undefined; +/** + * @member {module:model/RotationSecretMaxInterval} rotation_secret_max_interval + */ + +AccountGeneralSettings.prototype['rotation_secret_max_interval'] = undefined; +/** + * @member {module:model/SharingPolicyInfo} sharing_policy + */ + +AccountGeneralSettings.prototype['sharing_policy'] = undefined; +var _default = AccountGeneralSettings; +exports["default"] = _default; + +/***/ }), + +/***/ 60845: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MigrationStatusReplyObj", ({ - enumerable: true, - get: function get() { - return _MigrationStatusReplyObj["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(13120)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountObjectVersionSettingsOutput model module. + * @module model/AccountObjectVersionSettingsOutput + * @version 3.6.3 + */ +var AccountObjectVersionSettingsOutput = /*#__PURE__*/function () { + /** + * Constructs a new AccountObjectVersionSettingsOutput. + * @alias module:model/AccountObjectVersionSettingsOutput + */ + function AccountObjectVersionSettingsOutput() { + _classCallCheck(this, AccountObjectVersionSettingsOutput); + + AccountObjectVersionSettingsOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountObjectVersionSettingsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccountObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountObjectVersionSettingsOutput} obj Optional instance to populate. + * @return {module:model/AccountObjectVersionSettingsOutput} The populated AccountObjectVersionSettingsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountObjectVersionSettingsOutput(); + + if (data.hasOwnProperty('default-versioning')) { + obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'Boolean'); + } + + if (data.hasOwnProperty('force_new_versions')) { + obj['force_new_versions'] = _ApiClient["default"].convertToType(data['force_new_versions'], 'Boolean'); + } + + if (data.hasOwnProperty('items')) { + obj['items'] = _ApiClient["default"].convertToType(data['items'], [_ObjectVersionSettingsOutput["default"]]); + } + } + + return obj; + } + }]); + + return AccountObjectVersionSettingsOutput; +}(); +/** + * @member {Boolean} default-versioning + */ + + +AccountObjectVersionSettingsOutput.prototype['default-versioning'] = undefined; +/** + * @member {Boolean} force_new_versions + */ + +AccountObjectVersionSettingsOutput.prototype['force_new_versions'] = undefined; +/** + * @member {Array.} items + */ + +AccountObjectVersionSettingsOutput.prototype['items'] = undefined; +var _default = AccountObjectVersionSettingsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 42422: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MigrationsConfigLastChange", ({ - enumerable: true, - get: function get() { - return _MigrationsConfigLastChange["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(44888)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ActiveDirectoryMigration model module. + * @module model/ActiveDirectoryMigration + * @version 3.6.3 + */ +var ActiveDirectoryMigration = /*#__PURE__*/function () { + /** + * Constructs a new ActiveDirectoryMigration. + * @alias module:model/ActiveDirectoryMigration + */ + function ActiveDirectoryMigration() { + _classCallCheck(this, ActiveDirectoryMigration); + + ActiveDirectoryMigration.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ActiveDirectoryMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ActiveDirectoryMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ActiveDirectoryMigration} obj Optional instance to populate. + * @return {module:model/ActiveDirectoryMigration} The populated ActiveDirectoryMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ActiveDirectoryMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ActiveDirectoryPayload["default"].constructFromObject(data['payload']); + } + } + + return obj; + } + }]); + + return ActiveDirectoryMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +ActiveDirectoryMigration.prototype['general'] = undefined; +/** + * @member {module:model/ActiveDirectoryPayload} payload + */ + +ActiveDirectoryMigration.prototype['payload'] = undefined; +var _default = ActiveDirectoryMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 44888: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MigrationsConfigPart", ({ - enumerable: true, - get: function get() { - return _MigrationsConfigPart["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ActiveDirectoryPayload model module. + * @module model/ActiveDirectoryPayload + * @version 3.6.3 + */ +var ActiveDirectoryPayload = /*#__PURE__*/function () { + /** + * Constructs a new ActiveDirectoryPayload. + * @alias module:model/ActiveDirectoryPayload + */ + function ActiveDirectoryPayload() { + _classCallCheck(this, ActiveDirectoryPayload); + + ActiveDirectoryPayload.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ActiveDirectoryPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ActiveDirectoryPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ActiveDirectoryPayload} obj Optional instance to populate. + * @return {module:model/ActiveDirectoryPayload} The populated ActiveDirectoryPayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ActiveDirectoryPayload(); + + if (data.hasOwnProperty('active_directory_target_id')) { + obj['active_directory_target_id'] = _ApiClient["default"].convertToType(data['active_directory_target_id'], 'Number'); + } + + if (data.hasOwnProperty('auto_rotate')) { + obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('auto_rotate_interval_in_days')) { + obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); + } + + if (data.hasOwnProperty('auto_rotate_rotation_hour')) { + obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); + } + + if (data.hasOwnProperty('computer_base_dn')) { + obj['computer_base_dn'] = _ApiClient["default"].convertToType(data['computer_base_dn'], 'String'); + } + + if (data.hasOwnProperty('discover_local_users')) { + obj['discover_local_users'] = _ApiClient["default"].convertToType(data['discover_local_users'], 'Boolean'); + } + + if (data.hasOwnProperty('discover_services')) { + obj['discover_services'] = _ApiClient["default"].convertToType(data['discover_services'], 'Boolean'); + } + + if (data.hasOwnProperty('discovery_types')) { + obj['discovery_types'] = _ApiClient["default"].convertToType(data['discovery_types'], ['String']); + } + + if (data.hasOwnProperty('domain_name')) { + obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], 'String'); + } + + if (data.hasOwnProperty('domain_server_targets_path_template')) { + obj['domain_server_targets_path_template'] = _ApiClient["default"].convertToType(data['domain_server_targets_path_template'], 'String'); + } + + if (data.hasOwnProperty('domain_users_rotated_secrets_path_template')) { + obj['domain_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['domain_users_rotated_secrets_path_template'], 'String'); + } + + if (data.hasOwnProperty('enable_rdp_sra')) { + obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); + } + + if (data.hasOwnProperty('local_users_ignore_list')) { + obj['local_users_ignore_list'] = _ApiClient["default"].convertToType(data['local_users_ignore_list'], { + 'String': 'Boolean' + }); + } + + if (data.hasOwnProperty('local_users_rotated_secrets_path_template')) { + obj['local_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['local_users_rotated_secrets_path_template'], 'String'); + } + + if (data.hasOwnProperty('os_filter')) { + obj['os_filter'] = _ApiClient["default"].convertToType(data['os_filter'], 'String'); + } + + if (data.hasOwnProperty('ssh_port')) { + obj['ssh_port'] = _ApiClient["default"].convertToType(data['ssh_port'], 'String'); + } + + if (data.hasOwnProperty('target_format')) { + obj['target_format'] = _ApiClient["default"].convertToType(data['target_format'], 'String'); + } + + if (data.hasOwnProperty('targets_type')) { + obj['targets_type'] = _ApiClient["default"].convertToType(data['targets_type'], 'String'); + } + + if (data.hasOwnProperty('user_base_dn')) { + obj['user_base_dn'] = _ApiClient["default"].convertToType(data['user_base_dn'], 'String'); + } + + if (data.hasOwnProperty('user_groups')) { + obj['user_groups'] = _ApiClient["default"].convertToType(data['user_groups'], ['String']); + } + + if (data.hasOwnProperty('winrm_over_http')) { + obj['winrm_over_http'] = _ApiClient["default"].convertToType(data['winrm_over_http'], 'Boolean'); + } + + if (data.hasOwnProperty('winrm_port')) { + obj['winrm_port'] = _ApiClient["default"].convertToType(data['winrm_port'], 'String'); + } + } + + return obj; + } + }]); + + return ActiveDirectoryPayload; +}(); +/** + * @member {Number} active_directory_target_id + */ + + +ActiveDirectoryPayload.prototype['active_directory_target_id'] = undefined; +/** + * @member {Boolean} auto_rotate + */ + +ActiveDirectoryPayload.prototype['auto_rotate'] = undefined; +/** + * @member {Number} auto_rotate_interval_in_days + */ + +ActiveDirectoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; +/** + * @member {Number} auto_rotate_rotation_hour + */ + +ActiveDirectoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; +/** + * @member {String} computer_base_dn + */ + +ActiveDirectoryPayload.prototype['computer_base_dn'] = undefined; +/** + * Deprecated + * @member {Boolean} discover_local_users + */ + +ActiveDirectoryPayload.prototype['discover_local_users'] = undefined; +/** + * @member {Boolean} discover_services + */ + +ActiveDirectoryPayload.prototype['discover_services'] = undefined; +/** + * @member {Array.} discovery_types + */ + +ActiveDirectoryPayload.prototype['discovery_types'] = undefined; +/** + * @member {String} domain_name + */ + +ActiveDirectoryPayload.prototype['domain_name'] = undefined; +/** + * @member {String} domain_server_targets_path_template + */ + +ActiveDirectoryPayload.prototype['domain_server_targets_path_template'] = undefined; +/** + * @member {String} domain_users_rotated_secrets_path_template + */ + +ActiveDirectoryPayload.prototype['domain_users_rotated_secrets_path_template'] = undefined; +/** + * @member {Boolean} enable_rdp_sra + */ + +ActiveDirectoryPayload.prototype['enable_rdp_sra'] = undefined; +/** + * @member {Object.} local_users_ignore_list + */ + +ActiveDirectoryPayload.prototype['local_users_ignore_list'] = undefined; +/** + * @member {String} local_users_rotated_secrets_path_template + */ + +ActiveDirectoryPayload.prototype['local_users_rotated_secrets_path_template'] = undefined; +/** + * @member {String} os_filter + */ + +ActiveDirectoryPayload.prototype['os_filter'] = undefined; +/** + * @member {String} ssh_port + */ + +ActiveDirectoryPayload.prototype['ssh_port'] = undefined; +/** + * @member {String} target_format + */ + +ActiveDirectoryPayload.prototype['target_format'] = undefined; +/** + * @member {String} targets_type + */ + +ActiveDirectoryPayload.prototype['targets_type'] = undefined; +/** + * @member {String} user_base_dn + */ + +ActiveDirectoryPayload.prototype['user_base_dn'] = undefined; +/** + * @member {Array.} user_groups + */ + +ActiveDirectoryPayload.prototype['user_groups'] = undefined; +/** + * @member {Boolean} winrm_over_http + */ + +ActiveDirectoryPayload.prototype['winrm_over_http'] = undefined; +/** + * @member {String} winrm_port + */ + +ActiveDirectoryPayload.prototype['winrm_port'] = undefined; +var _default = ActiveDirectoryPayload; +exports["default"] = _default; + +/***/ }), + +/***/ 95359: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MockMigration", ({ - enumerable: true, - get: function get() { - return _MockMigration["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AddGatewayAllowedAccessId model module. + * @module model/AddGatewayAllowedAccessId + * @version 3.6.3 + */ +var AddGatewayAllowedAccessId = /*#__PURE__*/function () { + /** + * Constructs a new AddGatewayAllowedAccessId. + * Responses: default: errorResponse 200: addGatewayAllowedAccessIdResponse + * @alias module:model/AddGatewayAllowedAccessId + * @param accessId {String} The access id that will be able to access to gateway + * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + */ + function AddGatewayAllowedAccessId(accessId, clusterName) { + _classCallCheck(this, AddGatewayAllowedAccessId); + + AddGatewayAllowedAccessId.initialize(this, accessId, clusterName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AddGatewayAllowedAccessId, null, [{ + key: "initialize", + value: function initialize(obj, accessId, clusterName) { + obj['access-id'] = accessId; + obj['cluster-name'] = clusterName; + } + /** + * Constructs a AddGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddGatewayAllowedAccessId} obj Optional instance to populate. + * @return {module:model/AddGatewayAllowedAccessId} The populated AddGatewayAllowedAccessId instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AddGatewayAllowedAccessId(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('cluster-name')) { + obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return AddGatewayAllowedAccessId; +}(); +/** + * The access id that will be able to access to gateway + * @member {String} access-id + */ + + +AddGatewayAllowedAccessId.prototype['access-id'] = undefined; +/** + * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * @member {String} cluster-name + */ + +AddGatewayAllowedAccessId.prototype['cluster-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +AddGatewayAllowedAccessId.prototype['json'] = false; +/** + * key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +AddGatewayAllowedAccessId.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +AddGatewayAllowedAccessId.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +AddGatewayAllowedAccessId.prototype['uid-token'] = undefined; +var _default = AddGatewayAllowedAccessId; +exports["default"] = _default; + +/***/ }), + +/***/ 62242: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MockPayload", ({ - enumerable: true, - get: function get() { - return _MockPayload["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(55354)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AdminsConfigPart model module. + * @module model/AdminsConfigPart + * @version 3.6.3 + */ +var AdminsConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new AdminsConfigPart. + * @alias module:model/AdminsConfigPart + */ + function AdminsConfigPart() { + _classCallCheck(this, AdminsConfigPart); + + AdminsConfigPart.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AdminsConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AdminsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AdminsConfigPart} obj Optional instance to populate. + * @return {module:model/AdminsConfigPart} The populated AdminsConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AdminsConfigPart(); + + if (data.hasOwnProperty('admins_migration_status')) { + obj['admins_migration_status'] = _ApiClient["default"].convertToType(data['admins_migration_status'], 'Number'); + } + + if (data.hasOwnProperty('allowed_access')) { + obj['allowed_access'] = _ApiClient["default"].convertToType(data['allowed_access'], { + 'String': _AllowedAccessOld["default"] + }); + } + } + + return obj; + } + }]); + + return AdminsConfigPart; +}(); +/** + * @member {Number} admins_migration_status + */ + + +AdminsConfigPart.prototype['admins_migration_status'] = undefined; +/** + * @member {Object.} allowed_access + */ + +AdminsConfigPart.prototype['allowed_access'] = undefined; +var _default = AdminsConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 6912: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MongoDBTargetDetails", ({ - enumerable: true, - get: function get() { - return _MongoDBTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(62242)); + +var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(77807)); + +var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(8768)); + +var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(22479)); + +var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(72593)); + +var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(97910)); + +var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(27401)); + +var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(13315)); + +var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(44147)); + +var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(54801)); + +var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(75643)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(83635)); + +var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(80937)); + +var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(86112)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AkeylessGatewayConfig model module. + * @module model/AkeylessGatewayConfig + * @version 3.6.3 + */ +var AkeylessGatewayConfig = /*#__PURE__*/function () { + /** + * Constructs a new AkeylessGatewayConfig. + * @alias module:model/AkeylessGatewayConfig + */ + function AkeylessGatewayConfig() { + _classCallCheck(this, AkeylessGatewayConfig); + + AkeylessGatewayConfig.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AkeylessGatewayConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AkeylessGatewayConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AkeylessGatewayConfig} obj Optional instance to populate. + * @return {module:model/AkeylessGatewayConfig} The populated AkeylessGatewayConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AkeylessGatewayConfig(); + + if (data.hasOwnProperty('admins')) { + obj['admins'] = _AdminsConfigPart["default"].constructFromObject(data['admins']); + } + + if (data.hasOwnProperty('cache')) { + obj['cache'] = _CacheConfigPart["default"].constructFromObject(data['cache']); + } + + if (data.hasOwnProperty('cf')) { + obj['cf'] = _CFConfigPart["default"].constructFromObject(data['cf']); + } + + if (data.hasOwnProperty('config_protection_key_name')) { + obj['config_protection_key_name'] = _ApiClient["default"].convertToType(data['config_protection_key_name'], 'String'); + } + + if (data.hasOwnProperty('general')) { + obj['general'] = _GeneralConfigPart["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('k8s_auths')) { + obj['k8s_auths'] = _K8SAuthsConfigPart["default"].constructFromObject(data['k8s_auths']); + } + + if (data.hasOwnProperty('kmip_clients')) { + obj['kmip_clients'] = _KMIPConfigPart["default"].constructFromObject(data['kmip_clients']); + } + + if (data.hasOwnProperty('ldap')) { + obj['ldap'] = _LdapConfigPart["default"].constructFromObject(data['ldap']); + } + + if (data.hasOwnProperty('leadership')) { + obj['leadership'] = _LeadershipConfigPart["default"].constructFromObject(data['leadership']); + } + + if (data.hasOwnProperty('log_forwarding')) { + obj['log_forwarding'] = _LogForwardingConfigPart["default"].constructFromObject(data['log_forwarding']); + } + + if (data.hasOwnProperty('message_queue_info')) { + obj['message_queue_info'] = _GatewayMessageQueueInfo["default"].constructFromObject(data['message_queue_info']); + } + + if (data.hasOwnProperty('migrations')) { + obj['migrations'] = _MigrationsConfigPart["default"].constructFromObject(data['migrations']); + } + + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ProducersConfigPart["default"].constructFromObject(data['producers']); + } + + if (data.hasOwnProperty('rotators')) { + obj['rotators'] = _RotatorsConfigPart["default"].constructFromObject(data['rotators']); + } + + if (data.hasOwnProperty('saml')) { + obj['saml'] = _DefaultConfigPart["default"].constructFromObject(data['saml']); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return AkeylessGatewayConfig; +}(); +/** + * @member {module:model/AdminsConfigPart} admins + */ + + +AkeylessGatewayConfig.prototype['admins'] = undefined; +/** + * @member {module:model/CacheConfigPart} cache + */ + +AkeylessGatewayConfig.prototype['cache'] = undefined; +/** + * @member {module:model/CFConfigPart} cf + */ + +AkeylessGatewayConfig.prototype['cf'] = undefined; +/** + * @member {String} config_protection_key_name + */ + +AkeylessGatewayConfig.prototype['config_protection_key_name'] = undefined; +/** + * @member {module:model/GeneralConfigPart} general + */ + +AkeylessGatewayConfig.prototype['general'] = undefined; +/** + * @member {module:model/K8SAuthsConfigPart} k8s_auths + */ + +AkeylessGatewayConfig.prototype['k8s_auths'] = undefined; +/** + * @member {module:model/KMIPConfigPart} kmip_clients + */ + +AkeylessGatewayConfig.prototype['kmip_clients'] = undefined; +/** + * @member {module:model/LdapConfigPart} ldap + */ + +AkeylessGatewayConfig.prototype['ldap'] = undefined; +/** + * @member {module:model/LeadershipConfigPart} leadership + */ + +AkeylessGatewayConfig.prototype['leadership'] = undefined; +/** + * @member {module:model/LogForwardingConfigPart} log_forwarding + */ + +AkeylessGatewayConfig.prototype['log_forwarding'] = undefined; +/** + * @member {module:model/GatewayMessageQueueInfo} message_queue_info + */ + +AkeylessGatewayConfig.prototype['message_queue_info'] = undefined; +/** + * @member {module:model/MigrationsConfigPart} migrations + */ + +AkeylessGatewayConfig.prototype['migrations'] = undefined; +/** + * @member {module:model/ProducersConfigPart} producers + */ + +AkeylessGatewayConfig.prototype['producers'] = undefined; +/** + * @member {module:model/RotatorsConfigPart} rotators + */ + +AkeylessGatewayConfig.prototype['rotators'] = undefined; +/** + * @member {module:model/DefaultConfigPart} saml + */ + +AkeylessGatewayConfig.prototype['saml'] = undefined; +/** + * @member {Number} version + */ + +AkeylessGatewayConfig.prototype['version'] = undefined; +var _default = AkeylessGatewayConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 47792: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "MoveObjects", ({ - enumerable: true, - get: function get() { - return _MoveObjects["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CertificateAnalyticAggregation = _interopRequireDefault(__nccwpck_require__(40603)); + +var _ClientsUsageReport = _interopRequireDefault(__nccwpck_require__(16184)); + +var _UsageReportSummary = _interopRequireDefault(__nccwpck_require__(48362)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AllAnalyticsData model module. + * @module model/AllAnalyticsData + * @version 3.6.3 + */ +var AllAnalyticsData = /*#__PURE__*/function () { + /** + * Constructs a new AllAnalyticsData. + * @alias module:model/AllAnalyticsData + */ + function AllAnalyticsData() { + _classCallCheck(this, AllAnalyticsData); + + AllAnalyticsData.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AllAnalyticsData, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AllAnalyticsData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllAnalyticsData} obj Optional instance to populate. + * @return {module:model/AllAnalyticsData} The populated AllAnalyticsData instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AllAnalyticsData(); + + if (data.hasOwnProperty('analytics_data')) { + obj['analytics_data'] = _ApiClient["default"].convertToType(data['analytics_data'], { + 'String': [['String']] + }); + } + + if (data.hasOwnProperty('certificates_expiry_data')) { + obj['certificates_expiry_data'] = _CertificateAnalyticAggregation["default"].constructFromObject(data['certificates_expiry_data']); + } + + if (data.hasOwnProperty('clients_usage_reports')) { + obj['clients_usage_reports'] = _ApiClient["default"].convertToType(data['clients_usage_reports'], { + 'String': _ClientsUsageReport["default"] + }); + } + + if (data.hasOwnProperty('date_updated')) { + obj['date_updated'] = _ApiClient["default"].convertToType(data['date_updated'], 'Number'); + } + + if (data.hasOwnProperty('usage_reports')) { + obj['usage_reports'] = _ApiClient["default"].convertToType(data['usage_reports'], { + 'String': _UsageReportSummary["default"] + }); + } + } + + return obj; + } + }]); + + return AllAnalyticsData; +}(); +/** + * @member {Object.>>} analytics_data + */ + + +AllAnalyticsData.prototype['analytics_data'] = undefined; +/** + * @member {module:model/CertificateAnalyticAggregation} certificates_expiry_data + */ + +AllAnalyticsData.prototype['certificates_expiry_data'] = undefined; +/** + * @member {Object.} clients_usage_reports + */ + +AllAnalyticsData.prototype['clients_usage_reports'] = undefined; +/** + * @member {Number} date_updated + */ + +AllAnalyticsData.prototype['date_updated'] = undefined; +/** + * @member {Object.} usage_reports + */ + +AllAnalyticsData.prototype['usage_reports'] = undefined; +var _default = AllAnalyticsData; +exports["default"] = _default; + +/***/ }), + +/***/ 91347: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Name", ({ - enumerable: true, - get: function get() { - return _Name["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AllowedAccess model module. + * @module model/AllowedAccess + * @version 3.6.3 + */ +var AllowedAccess = /*#__PURE__*/function () { + /** + * Constructs a new AllowedAccess. + * @alias module:model/AllowedAccess + */ + function AllowedAccess() { + _classCallCheck(this, AllowedAccess); + + AllowedAccess.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AllowedAccess, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllowedAccess} obj Optional instance to populate. + * @return {module:model/AllowedAccess} The populated AllowedAccess instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AllowedAccess(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('editable')) { + obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); + } + + if (data.hasOwnProperty('error')) { + obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + + if (data.hasOwnProperty('is_valid')) { + obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('permissions')) { + obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], ['String']); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('sub_claims_case_insensitive')) { + obj['sub_claims_case_insensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_insensitive'], 'Boolean'); + } + + if (data.hasOwnProperty('updated_at')) { + obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date'); + } + } + + return obj; + } + }]); + + return AllowedAccess; +}(); +/** + * @member {String} access_id + */ + + +AllowedAccess.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +AllowedAccess.prototype['access_type'] = undefined; +/** + * @member {Number} cluster_id + */ + +AllowedAccess.prototype['cluster_id'] = undefined; +/** + * @member {Date} created_at + */ + +AllowedAccess.prototype['created_at'] = undefined; +/** + * @member {String} description + */ + +AllowedAccess.prototype['description'] = undefined; +/** + * @member {Boolean} editable + */ + +AllowedAccess.prototype['editable'] = undefined; +/** + * @member {String} error + */ + +AllowedAccess.prototype['error'] = undefined; +/** + * @member {Number} id + */ + +AllowedAccess.prototype['id'] = undefined; +/** + * @member {Boolean} is_valid + */ + +AllowedAccess.prototype['is_valid'] = undefined; +/** + * @member {String} name + */ + +AllowedAccess.prototype['name'] = undefined; +/** + * @member {Array.} permissions + */ + +AllowedAccess.prototype['permissions'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AllowedAccess.prototype['sub_claims'] = undefined; +/** + * @member {Boolean} sub_claims_case_insensitive + */ + +AllowedAccess.prototype['sub_claims_case_insensitive'] = undefined; +/** + * @member {Date} updated_at + */ + +AllowedAccess.prototype['updated_at'] = undefined; +var _default = AllowedAccess; +exports["default"] = _default; + +/***/ }), + +/***/ 55354: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "NativeK8sTargetDetails", ({ - enumerable: true, - get: function get() { - return _NativeK8sTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AllowedAccessOld model module. + * @module model/AllowedAccessOld + * @version 3.6.3 + */ +var AllowedAccessOld = /*#__PURE__*/function () { + /** + * Constructs a new AllowedAccessOld. + * Deprecated: AllowedAccessOld please use Gator allowed_access API structs such as AllowedAccessInput/AllowedAccess + * @alias module:model/AllowedAccessOld + */ + function AllowedAccessOld() { + _classCallCheck(this, AllowedAccessOld); + + AllowedAccessOld.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AllowedAccessOld, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AllowedAccessOld from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllowedAccessOld} obj Optional instance to populate. + * @return {module:model/AllowedAccessOld} The populated AllowedAccessOld instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AllowedAccessOld(); + + if (data.hasOwnProperty('acc_id')) { + obj['acc_id'] = _ApiClient["default"].convertToType(data['acc_id'], 'String'); + } + + if (data.hasOwnProperty('access_permissions')) { + obj['access_permissions'] = _ApiClient["default"].convertToType(data['access_permissions'], ['String']); + } + + if (data.hasOwnProperty('access_rules_type')) { + obj['access_rules_type'] = _ApiClient["default"].convertToType(data['access_rules_type'], 'String'); + } + + if (data.hasOwnProperty('allowed_api')) { + obj['allowed_api'] = _ApiClient["default"].convertToType(data['allowed_api'], 'Boolean'); + } + + if (data.hasOwnProperty('alloweds_login')) { + obj['alloweds_login'] = _ApiClient["default"].convertToType(data['alloweds_login'], 'Boolean'); + } + + if (data.hasOwnProperty('editable')) { + obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); + } + + if (data.hasOwnProperty('err_msg')) { + obj['err_msg'] = _ApiClient["default"].convertToType(data['err_msg'], 'String'); + } + + if (data.hasOwnProperty('hash')) { + obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String'); + } + + if (data.hasOwnProperty('is_valid')) { + obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return AllowedAccessOld; +}(); +/** + * @member {String} acc_id + */ + + +AllowedAccessOld.prototype['acc_id'] = undefined; +/** + * @member {Array.} access_permissions + */ + +AllowedAccessOld.prototype['access_permissions'] = undefined; +/** + * @member {String} access_rules_type + */ + +AllowedAccessOld.prototype['access_rules_type'] = undefined; +/** + * @member {Boolean} allowed_api + */ + +AllowedAccessOld.prototype['allowed_api'] = undefined; +/** + * @member {Boolean} alloweds_login + */ + +AllowedAccessOld.prototype['alloweds_login'] = undefined; +/** + * @member {Boolean} editable + */ + +AllowedAccessOld.prototype['editable'] = undefined; +/** + * @member {String} err_msg + */ + +AllowedAccessOld.prototype['err_msg'] = undefined; +/** + * @member {String} hash + */ + +AllowedAccessOld.prototype['hash'] = undefined; +/** + * @member {Boolean} is_valid + */ + +AllowedAccessOld.prototype['is_valid'] = undefined; +/** + * @member {String} name + */ + +AllowedAccessOld.prototype['name'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AllowedAccessOld.prototype['sub_claims'] = undefined; +var _default = AllowedAccessOld; +exports["default"] = _default; + +/***/ }), + +/***/ 95466: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "NotiForwarder", ({ - enumerable: true, - get: function get() { - return _NotiForwarder["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ArtifactoryTargetDetails model module. + * @module model/ArtifactoryTargetDetails + * @version 3.6.3 + */ +var ArtifactoryTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new ArtifactoryTargetDetails. + * @alias module:model/ArtifactoryTargetDetails + */ + function ArtifactoryTargetDetails() { + _classCallCheck(this, ArtifactoryTargetDetails); + + ArtifactoryTargetDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ArtifactoryTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ArtifactoryTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ArtifactoryTargetDetails} obj Optional instance to populate. + * @return {module:model/ArtifactoryTargetDetails} The populated ArtifactoryTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ArtifactoryTargetDetails(); + + if (data.hasOwnProperty('artifactory_admin_apikey')) { + obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); + } + + if (data.hasOwnProperty('artifactory_admin_username')) { + obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); + } + + if (data.hasOwnProperty('artifactory_base_url')) { + obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); + } + } + + return obj; + } + }]); + + return ArtifactoryTargetDetails; +}(); +/** + * @member {String} artifactory_admin_apikey + */ + + +ArtifactoryTargetDetails.prototype['artifactory_admin_apikey'] = undefined; +/** + * @member {String} artifactory_admin_username + */ + +ArtifactoryTargetDetails.prototype['artifactory_admin_username'] = undefined; +/** + * @member {String} artifactory_base_url + */ + +ArtifactoryTargetDetails.prototype['artifactory_base_url'] = undefined; +var _default = ArtifactoryTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 74469: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OAuth2AccessRules", ({ - enumerable: true, - get: function get() { - return _OAuth2AccessRules["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AssocRoleAuthMethod model module. + * @module model/AssocRoleAuthMethod + * @version 3.6.3 + */ +var AssocRoleAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new AssocRoleAuthMethod. + * assocRoleAuthMethod is a command that creates an association between role and auth method. + * @alias module:model/AssocRoleAuthMethod + * @param amName {String} The auth method to associate + * @param roleName {String} The role to associate + */ + function AssocRoleAuthMethod(amName, roleName) { + _classCallCheck(this, AssocRoleAuthMethod); + + AssocRoleAuthMethod.initialize(this, amName, roleName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AssocRoleAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, amName, roleName) { + obj['am-name'] = amName; + obj['role-name'] = roleName; + } + /** + * Constructs a AssocRoleAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AssocRoleAuthMethod} obj Optional instance to populate. + * @return {module:model/AssocRoleAuthMethod} The populated AssocRoleAuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AssocRoleAuthMethod(); + + if (data.hasOwnProperty('am-name')) { + obj['am-name'] = _ApiClient["default"].convertToType(data['am-name'], 'String'); + } + + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('role-name')) { + obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return AssocRoleAuthMethod; +}(); +/** + * The auth method to associate + * @member {String} am-name + */ + + +AssocRoleAuthMethod.prototype['am-name'] = undefined; +/** + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' + */ + +AssocRoleAuthMethod.prototype['case-sensitive'] = 'true'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +AssocRoleAuthMethod.prototype['json'] = false; +/** + * The role to associate + * @member {String} role-name + */ + +AssocRoleAuthMethod.prototype['role-name'] = undefined; +/** + * key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +AssocRoleAuthMethod.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +AssocRoleAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +AssocRoleAuthMethod.prototype['uid-token'] = undefined; +var _default = AssocRoleAuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 41868: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OAuth2CustomClaim", ({ - enumerable: true, - get: function get() { - return _OAuth2CustomClaim["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AssocTargetItem model module. + * @module model/AssocTargetItem + * @version 3.6.3 + */ +var AssocTargetItem = /*#__PURE__*/function () { + /** + * Constructs a new AssocTargetItem. + * assocTargetItem is a command that creates an association between target and item. + * @alias module:model/AssocTargetItem + * @param name {String} The item to associate + * @param targetName {String} The target to associate + */ + function AssocTargetItem(name, targetName) { + _classCallCheck(this, AssocTargetItem); + + AssocTargetItem.initialize(this, name, targetName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AssocTargetItem, null, [{ + key: "initialize", + value: function initialize(obj, name, targetName) { + obj['name'] = name; + obj['target-name'] = targetName; + } + /** + * Constructs a AssocTargetItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AssocTargetItem} obj Optional instance to populate. + * @return {module:model/AssocTargetItem} The populated AssocTargetItem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AssocTargetItem(); + + if (data.hasOwnProperty('certificate-path')) { + obj['certificate-path'] = _ApiClient["default"].convertToType(data['certificate-path'], 'String'); + } + + if (data.hasOwnProperty('chain-path')) { + obj['chain-path'] = _ApiClient["default"].convertToType(data['chain-path'], 'String'); + } + + if (data.hasOwnProperty('disable-previous-key-version')) { + obj['disable-previous-key-version'] = _ApiClient["default"].convertToType(data['disable-previous-key-version'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-operations')) { + obj['key-operations'] = _ApiClient["default"].convertToType(data['key-operations'], ['String']); + } + + if (data.hasOwnProperty('keyring-name')) { + obj['keyring-name'] = _ApiClient["default"].convertToType(data['keyring-name'], 'String'); + } + + if (data.hasOwnProperty('kms-algorithm')) { + obj['kms-algorithm'] = _ApiClient["default"].convertToType(data['kms-algorithm'], 'String'); + } + + if (data.hasOwnProperty('location-id')) { + obj['location-id'] = _ApiClient["default"].convertToType(data['location-id'], 'String'); + } + + if (data.hasOwnProperty('multi-region')) { + obj['multi-region'] = _ApiClient["default"].convertToType(data['multi-region'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('post-provision-command')) { + obj['post-provision-command'] = _ApiClient["default"].convertToType(data['post-provision-command'], 'String'); + } + + if (data.hasOwnProperty('private-key-path')) { + obj['private-key-path'] = _ApiClient["default"].convertToType(data['private-key-path'], 'String'); + } + + if (data.hasOwnProperty('project-id')) { + obj['project-id'] = _ApiClient["default"].convertToType(data['project-id'], 'String'); + } + + if (data.hasOwnProperty('purpose')) { + obj['purpose'] = _ApiClient["default"].convertToType(data['purpose'], 'String'); + } + + if (data.hasOwnProperty('regions')) { + obj['regions'] = _ApiClient["default"].convertToType(data['regions'], ['String']); + } + + if (data.hasOwnProperty('sra-association')) { + obj['sra-association'] = _ApiClient["default"].convertToType(data['sra-association'], 'Boolean'); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('tenant-secret-type')) { + obj['tenant-secret-type'] = _ApiClient["default"].convertToType(data['tenant-secret-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('vault-name')) { + obj['vault-name'] = _ApiClient["default"].convertToType(data['vault-name'], 'String'); + } + } + + return obj; + } + }]); + + return AssocTargetItem; +}(); +/** + * A path on the target to store the certificate pem file (relevant only for certificate provisioning) + * @member {String} certificate-path + */ + + +AssocTargetItem.prototype['certificate-path'] = undefined; +/** + * A path on the target to store the full chain pem file (relevant only for certificate provisioning) + * @member {String} chain-path + */ + +AssocTargetItem.prototype['chain-path'] = undefined; +/** + * Automatically disable previous key version (required for azure targets) + * @member {Boolean} disable-previous-key-version + * @default false + */ + +AssocTargetItem.prototype['disable-previous-key-version'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +AssocTargetItem.prototype['json'] = false; +/** + * A list of allowed operations for the key (required for azure targets) + * @member {Array.} key-operations + */ + +AssocTargetItem.prototype['key-operations'] = undefined; +/** + * Keyring name of the GCP KMS (required for gcp targets) + * @member {String} keyring-name + */ + +AssocTargetItem.prototype['keyring-name'] = undefined; +/** + * Algorithm of the key in GCP KMS (required for gcp targets) + * @member {String} kms-algorithm + */ + +AssocTargetItem.prototype['kms-algorithm'] = undefined; +/** + * Location id of the GCP KMS (required for gcp targets) + * @member {String} location-id + */ + +AssocTargetItem.prototype['location-id'] = undefined; +/** + * Set to 'true' to create a multi-region managed key. (Relevant only for Classic Key AWS targets) + * @member {String} multi-region + * @default 'false' + */ + +AssocTargetItem.prototype['multi-region'] = 'false'; +/** + * The item to associate + * @member {String} name + */ + +AssocTargetItem.prototype['name'] = undefined; +/** + * A custom command to run on the remote target after successful provisioning (relevant only for certificate provisioning) + * @member {String} post-provision-command + */ + +AssocTargetItem.prototype['post-provision-command'] = undefined; +/** + * A path on the target to store the private key (relevant only for certificate provisioning) + * @member {String} private-key-path + */ + +AssocTargetItem.prototype['private-key-path'] = undefined; +/** + * Project id of the GCP KMS (required for gcp targets) + * @member {String} project-id + */ + +AssocTargetItem.prototype['project-id'] = undefined; +/** + * Purpose of the key in GCP KMS (required for gcp targets) + * @member {String} purpose + */ + +AssocTargetItem.prototype['purpose'] = undefined; +/** + * The list of regions to create a copy of the key in (relevant for aws targets) + * @member {Array.} regions + */ + +AssocTargetItem.prototype['regions'] = undefined; +/** + * Is the target to associate is for sra, relevant only for linked target association for ldap rotated secret + * @member {Boolean} sra-association + * @default false + */ + +AssocTargetItem.prototype['sra-association'] = false; +/** + * The target to associate + * @member {String} target-name + */ + +AssocTargetItem.prototype['target-name'] = undefined; +/** + * The tenant secret type [Data/SearchIndex/Analytics] (required for salesforce targets) + * @member {String} tenant-secret-type + */ + +AssocTargetItem.prototype['tenant-secret-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +AssocTargetItem.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +AssocTargetItem.prototype['uid-token'] = undefined; +/** + * Name of the vault used (required for azure targets) + * @member {String} vault-name + */ + +AssocTargetItem.prototype['vault-name'] = undefined; +var _default = AssocTargetItem; +exports["default"] = _default; + +/***/ }), + +/***/ 8111: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OIDCAccessRules", ({ - enumerable: true, - get: function get() { - return _OIDCAccessRules["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AttributeTypeAndValue model module. + * @module model/AttributeTypeAndValue + * @version 3.6.3 + */ +var AttributeTypeAndValue = /*#__PURE__*/function () { + /** + * Constructs a new AttributeTypeAndValue. + * AttributeTypeAndValue mirrors the ASN.1 structure of the same name in RFC 5280, Section 4.1.2.4. + * @alias module:model/AttributeTypeAndValue + */ + function AttributeTypeAndValue() { + _classCallCheck(this, AttributeTypeAndValue); + + AttributeTypeAndValue.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AttributeTypeAndValue, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AttributeTypeAndValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AttributeTypeAndValue} obj Optional instance to populate. + * @return {module:model/AttributeTypeAndValue} The populated AttributeTypeAndValue instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AttributeTypeAndValue(); + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _ApiClient["default"].convertToType(data['Type'], ['Number']); + } + + if (data.hasOwnProperty('Value')) { + obj['Value'] = _ApiClient["default"].convertToType(data['Value'], Object); + } + } + + return obj; + } + }]); + + return AttributeTypeAndValue; +}(); +/** + * @member {Array.} Type + */ + + +AttributeTypeAndValue.prototype['Type'] = undefined; +/** + * @member {Object} Value + */ + +AttributeTypeAndValue.prototype['Value'] = undefined; +var _default = AttributeTypeAndValue; +exports["default"] = _default; + +/***/ }), + +/***/ 10323: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OIDCCustomClaim", ({ - enumerable: true, - get: function get() { - return _OIDCCustomClaim["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Auth model module. + * @module model/Auth + * @version 3.6.3 + */ +var Auth = /*#__PURE__*/function () { + /** + * Constructs a new Auth. + * @alias module:model/Auth + */ + function Auth() { + _classCallCheck(this, Auth); + + Auth.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Auth, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Auth from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Auth} obj Optional instance to populate. + * @return {module:model/Auth} The populated Auth instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Auth(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } + + if (data.hasOwnProperty('access-type')) { + obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); + } + + if (data.hasOwnProperty('account-id')) { + obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); + } + + if (data.hasOwnProperty('admin-email')) { + obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + } + + if (data.hasOwnProperty('admin-password')) { + obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); + } + + if (data.hasOwnProperty('cert-data')) { + obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); + } + + if (data.hasOwnProperty('cloud-id')) { + obj['cloud-id'] = _ApiClient["default"].convertToType(data['cloud-id'], 'String'); + } + + if (data.hasOwnProperty('debug')) { + obj['debug'] = _ApiClient["default"].convertToType(data['debug'], 'Boolean'); + } + + if (data.hasOwnProperty('gateway-url')) { + obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); + } + + if (data.hasOwnProperty('gcp-audience')) { + obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt')) { + obj['jwt'] = _ApiClient["default"].convertToType(data['jwt'], 'String'); + } + + if (data.hasOwnProperty('k8s-auth-config-name')) { + obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-token')) { + obj['k8s-service-account-token'] = _ApiClient["default"].convertToType(data['k8s-service-account-token'], 'String'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('ldap_password')) { + obj['ldap_password'] = _ApiClient["default"].convertToType(data['ldap_password'], 'String'); + } + + if (data.hasOwnProperty('ldap_username')) { + obj['ldap_username'] = _ApiClient["default"].convertToType(data['ldap_username'], 'String'); + } + + if (data.hasOwnProperty('oci-auth-type')) { + obj['oci-auth-type'] = _ApiClient["default"].convertToType(data['oci-auth-type'], 'String'); + } + + if (data.hasOwnProperty('oci-group-ocid')) { + obj['oci-group-ocid'] = _ApiClient["default"].convertToType(data['oci-group-ocid'], ['String']); + } + + if (data.hasOwnProperty('uid_token')) { + obj['uid_token'] = _ApiClient["default"].convertToType(data['uid_token'], 'String'); + } + } + + return obj; + } + }]); + + return Auth; +}(); +/** + * Access ID + * @member {String} access-id + */ + + +Auth.prototype['access-id'] = undefined; +/** + * Access key (relevant only for access-type=access_key) + * @member {String} access-key + */ + +Auth.prototype['access-key'] = undefined; +/** + * Access Type (access_key/password/saml/ldap/k8s/azure_ad/oidc/aws_iam/universal_identity/jwt/gcp/cert) + * @member {String} access-type + * @default 'access_key' + */ + +Auth.prototype['access-type'] = 'access_key'; +/** + * Account id (relevant only for access-type=password where the email address is associated with more than one account) + * @member {String} account-id + */ + +Auth.prototype['account-id'] = undefined; +/** + * Email (relevant only for access-type=password) + * @member {String} admin-email + */ + +Auth.prototype['admin-email'] = undefined; +/** + * Password (relevant only for access-type=password) + * @member {String} admin-password + */ + +Auth.prototype['admin-password'] = undefined; +/** + * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert) + * @member {String} cert-data + */ + +Auth.prototype['cert-data'] = undefined; +/** + * The cloud identity (relevant only for access-type=azure_ad,aws_iam,gcp) + * @member {String} cloud-id + */ + +Auth.prototype['cloud-id'] = undefined; +/** + * @member {Boolean} debug + */ + +Auth.prototype['debug'] = undefined; +/** + * Gateway URL for the K8S/OAUTH2 authenticated (relevant only for access-type=k8s/oauth2) + * @member {String} gateway-url + */ + +Auth.prototype['gateway-url'] = undefined; +/** + * GCP JWT audience + * @member {String} gcp-audience + * @default 'akeyless.io' + */ + +Auth.prototype['gcp-audience'] = 'akeyless.io'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Auth.prototype['json'] = false; +/** + * The Json Web Token (relevant only for access-type=jwt/oidc) + * @member {String} jwt + */ + +Auth.prototype['jwt'] = undefined; +/** + * The K8S Auth config name (relevant only for access-type=k8s) + * @member {String} k8s-auth-config-name + */ + +Auth.prototype['k8s-auth-config-name'] = undefined; +/** + * The K8S service account token. (relevant only for access-type=k8s) + * @member {String} k8s-service-account-token + */ + +Auth.prototype['k8s-service-account-token'] = undefined; +/** + * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert) + * @member {String} key-data + */ + +Auth.prototype['key-data'] = undefined; +/** + * LDAP password (relevant only for access-type=ldap) + * @member {String} ldap_password + */ + +Auth.prototype['ldap_password'] = undefined; +/** + * LDAP username (relevant only for access-type=ldap) + * @member {String} ldap_username + */ + +Auth.prototype['ldap_username'] = undefined; +/** + * The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci) + * @member {String} oci-auth-type + * @default 'apikey' + */ + +Auth.prototype['oci-auth-type'] = 'apikey'; +/** + * A list of Oracle Cloud IDs groups (relevant only for access-type=oci) + * @member {Array.} oci-group-ocid + */ + +Auth.prototype['oci-group-ocid'] = undefined; +/** + * The universal_identity token (relevant only for access-type=universal_identity) + * @member {String} uid_token + */ + +Auth.prototype['uid_token'] = undefined; +var _default = Auth; +exports["default"] = _default; + +/***/ }), + +/***/ 9614: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectVersionSettingsOutput", ({ - enumerable: true, - get: function get() { - return _ObjectVersionSettingsOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(25620)); + +var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(15615)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthMethod model module. + * @module model/AuthMethod + * @version 3.6.3 + */ +var AuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new AuthMethod. + * @alias module:model/AuthMethod + */ + function AuthMethod() { + _classCallCheck(this, AuthMethod); + + AuthMethod.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthMethod, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthMethod} obj Optional instance to populate. + * @return {module:model/AuthMethod} The populated AuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthMethod(); + + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + } + + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); + } + + if (data.hasOwnProperty('access_info')) { + obj['access_info'] = _AuthMethodAccessInfo["default"].constructFromObject(data['access_info']); + } + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('associated_gw_ids')) { + obj['associated_gw_ids'] = _ApiClient["default"].convertToType(data['associated_gw_ids'], ['Number']); + } + + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); + } + + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + } + + if (data.hasOwnProperty('auth_method_roles_assoc')) { + obj['auth_method_roles_assoc'] = _ApiClient["default"].convertToType(data['auth_method_roles_assoc'], [_AuthMethodRoleAssociation["default"]]); + } + + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + } + + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('is_approved')) { + obj['is_approved'] = _ApiClient["default"].convertToType(data['is_approved'], 'Boolean'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + } + + return obj; + } + }]); + + return AuthMethod; +}(); +/** + * @member {Date} access_date + */ + + +AuthMethod.prototype['access_date'] = undefined; +/** + * @member {String} access_date_display + */ + +AuthMethod.prototype['access_date_display'] = undefined; +/** + * @member {module:model/AuthMethodAccessInfo} access_info + */ + +AuthMethod.prototype['access_info'] = undefined; +/** + * @member {String} account_id + */ + +AuthMethod.prototype['account_id'] = undefined; +/** + * @member {Array.} associated_gw_ids + */ + +AuthMethod.prototype['associated_gw_ids'] = undefined; +/** + * @member {String} auth_method_access_id + */ + +AuthMethod.prototype['auth_method_access_id'] = undefined; +/** + * @member {String} auth_method_name + */ + +AuthMethod.prototype['auth_method_name'] = undefined; +/** + * @member {Array.} auth_method_roles_assoc + */ + +AuthMethod.prototype['auth_method_roles_assoc'] = undefined; +/** + * @member {Array.} client_permissions + */ + +AuthMethod.prototype['client_permissions'] = undefined; +/** + * @member {Date} creation_date + */ + +AuthMethod.prototype['creation_date'] = undefined; +/** + * @member {String} description + */ + +AuthMethod.prototype['description'] = undefined; +/** + * @member {Boolean} is_approved + */ + +AuthMethod.prototype['is_approved'] = undefined; +/** + * @member {Date} modification_date + */ + +AuthMethod.prototype['modification_date'] = undefined; +var _default = AuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 25620: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OidcClientInfo", ({ - enumerable: true, - get: function get() { - return _OidcClientInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(97833)); + +var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(80554)); + +var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(99802)); + +var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(12990)); + +var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(38739)); + +var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(88158)); + +var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(42767)); + +var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(83308)); + +var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(65975)); + +var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(72725)); + +var _OCIAccessRules = _interopRequireDefault(__nccwpck_require__(61443)); + +var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(51679)); + +var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(60315)); + +var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(15941)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthMethodAccessInfo model module. + * @module model/AuthMethodAccessInfo + * @version 3.6.3 + */ +var AuthMethodAccessInfo = /*#__PURE__*/function () { + /** + * Constructs a new AuthMethodAccessInfo. + * @alias module:model/AuthMethodAccessInfo + */ + function AuthMethodAccessInfo() { + _classCallCheck(this, AuthMethodAccessInfo); + + AuthMethodAccessInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthMethodAccessInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthMethodAccessInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthMethodAccessInfo} obj Optional instance to populate. + * @return {module:model/AuthMethodAccessInfo} The populated AuthMethodAccessInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthMethodAccessInfo(); + + if (data.hasOwnProperty('access_expires')) { + obj['access_expires'] = _ApiClient["default"].convertToType(data['access_expires'], 'Number'); + } + + if (data.hasOwnProperty('access_id_alias')) { + obj['access_id_alias'] = _ApiClient["default"].convertToType(data['access_id_alias'], 'String'); + } + + if (data.hasOwnProperty('api_key_access_rules')) { + obj['api_key_access_rules'] = _APIKeyAccessRules["default"].constructFromObject(data['api_key_access_rules']); + } + + if (data.hasOwnProperty('aws_iam_access_rules')) { + obj['aws_iam_access_rules'] = _AWSIAMAccessRules["default"].constructFromObject(data['aws_iam_access_rules']); + } + + if (data.hasOwnProperty('azure_ad_access_rules')) { + obj['azure_ad_access_rules'] = _AzureADAccessRules["default"].constructFromObject(data['azure_ad_access_rules']); + } + + if (data.hasOwnProperty('cert_access_rules')) { + obj['cert_access_rules'] = _CertAccessRules["default"].constructFromObject(data['cert_access_rules']); + } + + if (data.hasOwnProperty('cidr_whitelist')) { + obj['cidr_whitelist'] = _ApiClient["default"].convertToType(data['cidr_whitelist'], 'String'); + } + + if (data.hasOwnProperty('email_pass_access_rules')) { + obj['email_pass_access_rules'] = _EmailPassAccessRules["default"].constructFromObject(data['email_pass_access_rules']); + } + + if (data.hasOwnProperty('force_sub_claims')) { + obj['force_sub_claims'] = _ApiClient["default"].convertToType(data['force_sub_claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gcp_access_rules')) { + obj['gcp_access_rules'] = _GCPAccessRules["default"].constructFromObject(data['gcp_access_rules']); + } + + if (data.hasOwnProperty('gw_cidr_whitelist')) { + obj['gw_cidr_whitelist'] = _ApiClient["default"].convertToType(data['gw_cidr_whitelist'], 'String'); + } + + if (data.hasOwnProperty('huawei_access_rules')) { + obj['huawei_access_rules'] = _HuaweiAccessRules["default"].constructFromObject(data['huawei_access_rules']); + } + + if (data.hasOwnProperty('jwt_ttl')) { + obj['jwt_ttl'] = _ApiClient["default"].convertToType(data['jwt_ttl'], 'Number'); + } + + if (data.hasOwnProperty('k8s_access_rules')) { + obj['k8s_access_rules'] = _KubernetesAccessRules["default"].constructFromObject(data['k8s_access_rules']); + } + + if (data.hasOwnProperty('ldap_access_rules')) { + obj['ldap_access_rules'] = _LDAPAccessRules["default"].constructFromObject(data['ldap_access_rules']); + } + + if (data.hasOwnProperty('oauth2_access_rules')) { + obj['oauth2_access_rules'] = _OAuth2AccessRules["default"].constructFromObject(data['oauth2_access_rules']); + } + + if (data.hasOwnProperty('oci_access_rules')) { + obj['oci_access_rules'] = _OCIAccessRules["default"].constructFromObject(data['oci_access_rules']); + } + + if (data.hasOwnProperty('oidc_access_rules')) { + obj['oidc_access_rules'] = _OIDCAccessRules["default"].constructFromObject(data['oidc_access_rules']); + } + + if (data.hasOwnProperty('product_types')) { + obj['product_types'] = _ApiClient["default"].convertToType(data['product_types'], ['String']); + } + + if (data.hasOwnProperty('rules_type')) { + obj['rules_type'] = _ApiClient["default"].convertToType(data['rules_type'], 'String'); + } + + if (data.hasOwnProperty('saml_access_rules')) { + obj['saml_access_rules'] = _SAMLAccessRules["default"].constructFromObject(data['saml_access_rules']); + } + + if (data.hasOwnProperty('sub_claims_delimiters')) { + obj['sub_claims_delimiters'] = _ApiClient["default"].convertToType(data['sub_claims_delimiters'], ['String']); + } + + if (data.hasOwnProperty('universal_identity_access_rules')) { + obj['universal_identity_access_rules'] = _UniversalIdentityAccessRules["default"].constructFromObject(data['universal_identity_access_rules']); + } + } + + return obj; + } + }]); + + return AuthMethodAccessInfo; +}(); +/** + * @member {Number} access_expires + */ + + +AuthMethodAccessInfo.prototype['access_expires'] = undefined; +/** + * for accounts where AccessId holds encrypted email this field will hold generated AccessId, for accounts based on regular AccessId it will be equal to accessId itself + * @member {String} access_id_alias + */ + +AuthMethodAccessInfo.prototype['access_id_alias'] = undefined; +/** + * @member {module:model/APIKeyAccessRules} api_key_access_rules + */ + +AuthMethodAccessInfo.prototype['api_key_access_rules'] = undefined; +/** + * @member {module:model/AWSIAMAccessRules} aws_iam_access_rules + */ + +AuthMethodAccessInfo.prototype['aws_iam_access_rules'] = undefined; +/** + * @member {module:model/AzureADAccessRules} azure_ad_access_rules + */ + +AuthMethodAccessInfo.prototype['azure_ad_access_rules'] = undefined; +/** + * @member {module:model/CertAccessRules} cert_access_rules + */ + +AuthMethodAccessInfo.prototype['cert_access_rules'] = undefined; +/** + * @member {String} cidr_whitelist + */ + +AuthMethodAccessInfo.prototype['cidr_whitelist'] = undefined; +/** + * @member {module:model/EmailPassAccessRules} email_pass_access_rules + */ + +AuthMethodAccessInfo.prototype['email_pass_access_rules'] = undefined; +/** + * if true the role associated with this auth method must include sub claims + * @member {Boolean} force_sub_claims + */ + +AuthMethodAccessInfo.prototype['force_sub_claims'] = undefined; +/** + * @member {module:model/GCPAccessRules} gcp_access_rules + */ + +AuthMethodAccessInfo.prototype['gcp_access_rules'] = undefined; +/** + * @member {String} gw_cidr_whitelist + */ + +AuthMethodAccessInfo.prototype['gw_cidr_whitelist'] = undefined; +/** + * @member {module:model/HuaweiAccessRules} huawei_access_rules + */ + +AuthMethodAccessInfo.prototype['huawei_access_rules'] = undefined; +/** + * @member {Number} jwt_ttl + */ + +AuthMethodAccessInfo.prototype['jwt_ttl'] = undefined; +/** + * @member {module:model/KubernetesAccessRules} k8s_access_rules + */ + +AuthMethodAccessInfo.prototype['k8s_access_rules'] = undefined; +/** + * @member {module:model/LDAPAccessRules} ldap_access_rules + */ + +AuthMethodAccessInfo.prototype['ldap_access_rules'] = undefined; +/** + * @member {module:model/OAuth2AccessRules} oauth2_access_rules + */ + +AuthMethodAccessInfo.prototype['oauth2_access_rules'] = undefined; +/** + * @member {module:model/OCIAccessRules} oci_access_rules + */ + +AuthMethodAccessInfo.prototype['oci_access_rules'] = undefined; +/** + * @member {module:model/OIDCAccessRules} oidc_access_rules + */ + +AuthMethodAccessInfo.prototype['oidc_access_rules'] = undefined; +/** + * List of product types this auth method will be in use of + * @member {Array.} product_types + */ + +AuthMethodAccessInfo.prototype['product_types'] = undefined; +/** + * @member {String} rules_type + */ + +AuthMethodAccessInfo.prototype['rules_type'] = undefined; +/** + * @member {module:model/SAMLAccessRules} saml_access_rules + */ + +AuthMethodAccessInfo.prototype['saml_access_rules'] = undefined; +/** + * @member {Array.} sub_claims_delimiters + */ + +AuthMethodAccessInfo.prototype['sub_claims_delimiters'] = undefined; +/** + * @member {module:model/UniversalIdentityAccessRules} universal_identity_access_rules + */ + +AuthMethodAccessInfo.prototype['universal_identity_access_rules'] = undefined; +var _default = AuthMethodAccessInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 15615: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OnePasswordMigration", ({ - enumerable: true, - get: function get() { - return _OnePasswordMigration["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _Rules = _interopRequireDefault(__nccwpck_require__(64146)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthMethodRoleAssociation model module. + * @module model/AuthMethodRoleAssociation + * @version 3.6.3 + */ +var AuthMethodRoleAssociation = /*#__PURE__*/function () { + /** + * Constructs a new AuthMethodRoleAssociation. + * AuthMethodRoleAssociation includes details of an association between an auth method and a role. + * @alias module:model/AuthMethodRoleAssociation + */ + function AuthMethodRoleAssociation() { + _classCallCheck(this, AuthMethodRoleAssociation); + + AuthMethodRoleAssociation.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthMethodRoleAssociation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthMethodRoleAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthMethodRoleAssociation} obj Optional instance to populate. + * @return {module:model/AuthMethodRoleAssociation} The populated AuthMethodRoleAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthMethodRoleAssociation(); + + if (data.hasOwnProperty('allowed_ops')) { + obj['allowed_ops'] = _ApiClient["default"].convertToType(data['allowed_ops'], ['String']); + } + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + + if (data.hasOwnProperty('auth_method_sub_claims')) { + obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('is_sub_claims_case_sensitive')) { + obj['is_sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['is_sub_claims_case_sensitive'], 'Boolean'); + } + + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); + } + + if (data.hasOwnProperty('rules')) { + obj['rules'] = _Rules["default"].constructFromObject(data['rules']); + } + } + + return obj; + } + }]); + + return AuthMethodRoleAssociation; +}(); +/** + * @member {Array.} allowed_ops + */ + + +AuthMethodRoleAssociation.prototype['allowed_ops'] = undefined; +/** + * @member {String} assoc_id + */ + +AuthMethodRoleAssociation.prototype['assoc_id'] = undefined; +/** + * @member {Object.>} auth_method_sub_claims + */ + +AuthMethodRoleAssociation.prototype['auth_method_sub_claims'] = undefined; +/** + * @member {Boolean} is_sub_claims_case_sensitive + */ + +AuthMethodRoleAssociation.prototype['is_sub_claims_case_sensitive'] = undefined; +/** + * @member {String} role_name + */ + +AuthMethodRoleAssociation.prototype['role_name'] = undefined; +/** + * @member {module:model/Rules} rules + */ + +AuthMethodRoleAssociation.prototype['rules'] = undefined; +var _default = AuthMethodRoleAssociation; +exports["default"] = _default; + +/***/ }), + +/***/ 9634: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OnePasswordPayload", ({ - enumerable: true, - get: function get() { - return _OnePasswordPayload["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(96719)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthOutput model module. + * @module model/AuthOutput + * @version 3.6.3 + */ +var AuthOutput = /*#__PURE__*/function () { + /** + * Constructs a new AuthOutput. + * @alias module:model/AuthOutput + */ + function AuthOutput() { + _classCallCheck(this, AuthOutput); + + AuthOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOutput} obj Optional instance to populate. + * @return {module:model/AuthOutput} The populated AuthOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOutput(); + + if (data.hasOwnProperty('creds')) { + obj['creds'] = _SystemAccessCredentialsReplyObj["default"].constructFromObject(data['creds']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + } + + return obj; + } + }]); + + return AuthOutput; +}(); +/** + * @member {module:model/SystemAccessCredentialsReplyObj} creds + */ + + +AuthOutput.prototype['creds'] = undefined; +/** + * @member {String} token + */ + +AuthOutput.prototype['token'] = undefined; +var _default = AuthOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 28019: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PKICertificateIssueDetails", ({ - enumerable: true, - get: function get() { - return _PKICertificateIssueDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AwsS3LogForwardingConfig model module. + * @module model/AwsS3LogForwardingConfig + * @version 3.6.3 + */ +var AwsS3LogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new AwsS3LogForwardingConfig. + * @alias module:model/AwsS3LogForwardingConfig + */ + function AwsS3LogForwardingConfig() { + _classCallCheck(this, AwsS3LogForwardingConfig); + + AwsS3LogForwardingConfig.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AwsS3LogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AwsS3LogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AwsS3LogForwardingConfig} obj Optional instance to populate. + * @return {module:model/AwsS3LogForwardingConfig} The populated AwsS3LogForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AwsS3LogForwardingConfig(); + + if (data.hasOwnProperty('aws_access_id')) { + obj['aws_access_id'] = _ApiClient["default"].convertToType(data['aws_access_id'], 'String'); + } + + if (data.hasOwnProperty('aws_access_key')) { + obj['aws_access_key'] = _ApiClient["default"].convertToType(data['aws_access_key'], 'String'); + } + + if (data.hasOwnProperty('aws_auth_type')) { + obj['aws_auth_type'] = _ApiClient["default"].convertToType(data['aws_auth_type'], 'String'); + } + + if (data.hasOwnProperty('aws_region')) { + obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + } + + if (data.hasOwnProperty('aws_role_arn')) { + obj['aws_role_arn'] = _ApiClient["default"].convertToType(data['aws_role_arn'], 'String'); + } + + if (data.hasOwnProperty('aws_use_gateway_cloud_identity')) { + obj['aws_use_gateway_cloud_identity'] = _ApiClient["default"].convertToType(data['aws_use_gateway_cloud_identity'], 'Boolean'); + } + + if (data.hasOwnProperty('bucket_name')) { + obj['bucket_name'] = _ApiClient["default"].convertToType(data['bucket_name'], 'String'); + } + + if (data.hasOwnProperty('log_folder')) { + obj['log_folder'] = _ApiClient["default"].convertToType(data['log_folder'], 'String'); + } + } + + return obj; + } + }]); + + return AwsS3LogForwardingConfig; +}(); +/** + * @member {String} aws_access_id + */ + + +AwsS3LogForwardingConfig.prototype['aws_access_id'] = undefined; +/** + * @member {String} aws_access_key + */ + +AwsS3LogForwardingConfig.prototype['aws_access_key'] = undefined; +/** + * @member {String} aws_auth_type + */ + +AwsS3LogForwardingConfig.prototype['aws_auth_type'] = undefined; +/** + * @member {String} aws_region + */ + +AwsS3LogForwardingConfig.prototype['aws_region'] = undefined; +/** + * @member {String} aws_role_arn + */ + +AwsS3LogForwardingConfig.prototype['aws_role_arn'] = undefined; +/** + * deprecated + * @member {Boolean} aws_use_gateway_cloud_identity + */ + +AwsS3LogForwardingConfig.prototype['aws_use_gateway_cloud_identity'] = undefined; +/** + * @member {String} bucket_name + */ + +AwsS3LogForwardingConfig.prototype['bucket_name'] = undefined; +/** + * @member {String} log_folder + */ + +AwsS3LogForwardingConfig.prototype['log_folder'] = undefined; +var _default = AwsS3LogForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 99802: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PasswordPolicyInfo", ({ - enumerable: true, - get: function get() { - return _PasswordPolicyInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureADAccessRules model module. + * @module model/AzureADAccessRules + * @version 3.6.3 + */ +var AzureADAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new AzureADAccessRules. + * AzureADAccessRules contains access rules specific to Azure Active Directory authentication. + * @alias module:model/AzureADAccessRules + */ + function AzureADAccessRules() { + _classCallCheck(this, AzureADAccessRules); + + AzureADAccessRules.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureADAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureADAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureADAccessRules} obj Optional instance to populate. + * @return {module:model/AzureADAccessRules} The populated AzureADAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureADAccessRules(); + + if (data.hasOwnProperty('ad_endpoint')) { + obj['ad_endpoint'] = _ApiClient["default"].convertToType(data['ad_endpoint'], 'String'); + } + + if (data.hasOwnProperty('bound_group_ids')) { + obj['bound_group_ids'] = _ApiClient["default"].convertToType(data['bound_group_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_groups')) { + obj['bound_resource_groups'] = _ApiClient["default"].convertToType(data['bound_resource_groups'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_ids')) { + obj['bound_resource_ids'] = _ApiClient["default"].convertToType(data['bound_resource_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_names')) { + obj['bound_resource_names'] = _ApiClient["default"].convertToType(data['bound_resource_names'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_providers')) { + obj['bound_resource_providers'] = _ApiClient["default"].convertToType(data['bound_resource_providers'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_types')) { + obj['bound_resource_types'] = _ApiClient["default"].convertToType(data['bound_resource_types'], ['String']); + } + + if (data.hasOwnProperty('bound_service_principal_ids')) { + obj['bound_service_principal_ids'] = _ApiClient["default"].convertToType(data['bound_service_principal_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_subscription_ids')) { + obj['bound_subscription_ids'] = _ApiClient["default"].convertToType(data['bound_subscription_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_tenant_id')) { + obj['bound_tenant_id'] = _ApiClient["default"].convertToType(data['bound_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('jwks_uri')) { + obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); + } + } + + return obj; + } + }]); + + return AzureADAccessRules; +}(); +/** + * The audience in the JWT. + * @member {String} ad_endpoint + */ + + +AzureADAccessRules.prototype['ad_endpoint'] = undefined; +/** + * The list of group ids that login is restricted to. + * @member {Array.} bound_group_ids + */ + +AzureADAccessRules.prototype['bound_group_ids'] = undefined; +/** + * The list of resource groups that login is restricted to. + * @member {Array.} bound_resource_groups + */ + +AzureADAccessRules.prototype['bound_resource_groups'] = undefined; +/** + * The list of full resource ids that the login is restricted to. + * @member {Array.} bound_resource_ids + */ + +AzureADAccessRules.prototype['bound_resource_ids'] = undefined; +/** + * The list of resource names that the login is restricted to (e.g, a virtual machine name, scale set name, etc). + * @member {Array.} bound_resource_names + */ + +AzureADAccessRules.prototype['bound_resource_names'] = undefined; +/** + * The list of resource providers that login is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc). + * @member {Array.} bound_resource_providers + */ + +AzureADAccessRules.prototype['bound_resource_providers'] = undefined; +/** + * The list of resource types that login is restricted to (e.g, virtualMachines, userAssignedIdentities, etc). + * @member {Array.} bound_resource_types + */ + +AzureADAccessRules.prototype['bound_resource_types'] = undefined; +/** + * The list of service principal IDs that login is restricted to. + * @member {Array.} bound_service_principal_ids + */ + +AzureADAccessRules.prototype['bound_service_principal_ids'] = undefined; +/** + * The list of subscription IDs that login is restricted to. + * @member {Array.} bound_subscription_ids + */ + +AzureADAccessRules.prototype['bound_subscription_ids'] = undefined; +/** + * The tenants id for the Azure Active Directory organization. + * @member {String} bound_tenant_id + */ + +AzureADAccessRules.prototype['bound_tenant_id'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +AzureADAccessRules.prototype['issuer'] = undefined; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks_uri + */ + +AzureADAccessRules.prototype['jwks_uri'] = undefined; +var _default = AzureADAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 76303: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PathRule", ({ - enumerable: true, - get: function get() { - return _PathRule["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AzurePayload = _interopRequireDefault(__nccwpck_require__(83554)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureKeyVaultMigration model module. + * @module model/AzureKeyVaultMigration + * @version 3.6.3 + */ +var AzureKeyVaultMigration = /*#__PURE__*/function () { + /** + * Constructs a new AzureKeyVaultMigration. + * @alias module:model/AzureKeyVaultMigration + */ + function AzureKeyVaultMigration() { + _classCallCheck(this, AzureKeyVaultMigration); + + AzureKeyVaultMigration.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureKeyVaultMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureKeyVaultMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureKeyVaultMigration} obj Optional instance to populate. + * @return {module:model/AzureKeyVaultMigration} The populated AzureKeyVaultMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureKeyVaultMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _AzurePayload["default"].constructFromObject(data['payload']); + } + } + + return obj; + } + }]); + + return AzureKeyVaultMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +AzureKeyVaultMigration.prototype['general'] = undefined; +/** + * @member {module:model/AzurePayload} payload + */ + +AzureKeyVaultMigration.prototype['payload'] = undefined; +var _default = AzureKeyVaultMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 93137: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PingTargetDetails", ({ - enumerable: true, - get: function get() { - return _PingTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureLogAnalyticsForwardingConfig model module. + * @module model/AzureLogAnalyticsForwardingConfig + * @version 3.6.3 + */ +var AzureLogAnalyticsForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new AzureLogAnalyticsForwardingConfig. + * @alias module:model/AzureLogAnalyticsForwardingConfig + */ + function AzureLogAnalyticsForwardingConfig() { + _classCallCheck(this, AzureLogAnalyticsForwardingConfig); + + AzureLogAnalyticsForwardingConfig.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureLogAnalyticsForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureLogAnalyticsForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureLogAnalyticsForwardingConfig} obj Optional instance to populate. + * @return {module:model/AzureLogAnalyticsForwardingConfig} The populated AzureLogAnalyticsForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureLogAnalyticsForwardingConfig(); + + if (data.hasOwnProperty('azure_workspace_id')) { + obj['azure_workspace_id'] = _ApiClient["default"].convertToType(data['azure_workspace_id'], 'String'); + } + + if (data.hasOwnProperty('azure_workspace_key')) { + obj['azure_workspace_key'] = _ApiClient["default"].convertToType(data['azure_workspace_key'], 'String'); + } + } + + return obj; + } + }]); + + return AzureLogAnalyticsForwardingConfig; +}(); +/** + * @member {String} azure_workspace_id + */ + + +AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_id'] = undefined; +/** + * @member {String} azure_workspace_key + */ + +AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_key'] = undefined; +var _default = AzureLogAnalyticsForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 83554: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Producer", ({ - enumerable: true, - get: function get() { - return _Producer["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzurePayload model module. + * @module model/AzurePayload + * @version 3.6.3 + */ +var AzurePayload = /*#__PURE__*/function () { + /** + * Constructs a new AzurePayload. + * @alias module:model/AzurePayload + */ + function AzurePayload() { + _classCallCheck(this, AzurePayload); + + AzurePayload.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzurePayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzurePayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzurePayload} obj Optional instance to populate. + * @return {module:model/AzurePayload} The populated AzurePayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzurePayload(); + + if (data.hasOwnProperty('client')) { + obj['client'] = _ApiClient["default"].convertToType(data['client'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + + if (data.hasOwnProperty('tenant')) { + obj['tenant'] = _ApiClient["default"].convertToType(data['tenant'], 'String'); + } + } + + return obj; + } + }]); + + return AzurePayload; +}(); +/** + * @member {String} client + */ + + +AzurePayload.prototype['client'] = undefined; +/** + * @member {String} name + */ + +AzurePayload.prototype['name'] = undefined; +/** + * @member {String} secret + */ + +AzurePayload.prototype['secret'] = undefined; +/** + * @member {String} tenant + */ + +AzurePayload.prototype['tenant'] = undefined; +var _default = AzurePayload; +exports["default"] = _default; + +/***/ }), + +/***/ 69589: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ProducersConfigPart", ({ - enumerable: true, - get: function get() { - return _ProducersConfigPart["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureTargetDetails model module. + * @module model/AzureTargetDetails + * @version 3.6.3 + */ +var AzureTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new AzureTargetDetails. + * @alias module:model/AzureTargetDetails + */ + function AzureTargetDetails() { + _classCallCheck(this, AzureTargetDetails); + + AzureTargetDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureTargetDetails} obj Optional instance to populate. + * @return {module:model/AzureTargetDetails} The populated AzureTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureTargetDetails(); + + if (data.hasOwnProperty('azure_client_id')) { + obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); + } + + if (data.hasOwnProperty('azure_client_secret')) { + obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); + } + + if (data.hasOwnProperty('azure_resource_group_name')) { + obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); + } + + if (data.hasOwnProperty('azure_resource_name')) { + obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); + } + + if (data.hasOwnProperty('azure_subscription_id')) { + obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); + } + + if (data.hasOwnProperty('azure_tenant_id')) { + obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('azure_username')) { + obj['azure_username'] = _ApiClient["default"].convertToType(data['azure_username'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return AzureTargetDetails; +}(); +/** + * @member {String} azure_client_id + */ + + +AzureTargetDetails.prototype['azure_client_id'] = undefined; +/** + * @member {String} azure_client_secret + */ + +AzureTargetDetails.prototype['azure_client_secret'] = undefined; +/** + * @member {String} azure_resource_group_name + */ + +AzureTargetDetails.prototype['azure_resource_group_name'] = undefined; +/** + * @member {String} azure_resource_name + */ + +AzureTargetDetails.prototype['azure_resource_name'] = undefined; +/** + * @member {String} azure_subscription_id + */ + +AzureTargetDetails.prototype['azure_subscription_id'] = undefined; +/** + * @member {String} azure_tenant_id + */ + +AzureTargetDetails.prototype['azure_tenant_id'] = undefined; +/** + * @member {String} azure_username + */ + +AzureTargetDetails.prototype['azure_username'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +AzureTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = AzureTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 21093: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RabbitMQTargetDetails", ({ - enumerable: true, - get: function get() { - return _RabbitMQTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The BastionListEntry model module. + * @module model/BastionListEntry + * @version 3.6.3 + */ +var BastionListEntry = /*#__PURE__*/function () { + /** + * Constructs a new BastionListEntry. + * @alias module:model/BastionListEntry + */ + function BastionListEntry() { + _classCallCheck(this, BastionListEntry); + + BastionListEntry.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(BastionListEntry, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a BastionListEntry from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BastionListEntry} obj Optional instance to populate. + * @return {module:model/BastionListEntry} The populated BastionListEntry instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BastionListEntry(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('allowed_access_ids')) { + obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); + } + + if (data.hasOwnProperty('allowed_urls')) { + obj['allowed_urls'] = _ApiClient["default"].convertToType(data['allowed_urls'], ['String']); + } + + if (data.hasOwnProperty('allowed_urls_per_instance')) { + obj['allowed_urls_per_instance'] = _ApiClient["default"].convertToType(data['allowed_urls_per_instance'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('cluster_name')) { + obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); + } + + if (data.hasOwnProperty('display_name')) { + obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + } + + if (data.hasOwnProperty('last_report')) { + obj['last_report'] = _ApiClient["default"].convertToType(data['last_report'], 'Date'); + } + } + + return obj; + } + }]); + + return BastionListEntry; +}(); +/** + * @member {String} access_id + */ + + +BastionListEntry.prototype['access_id'] = undefined; +/** + * @member {Array.} allowed_access_ids + */ + +BastionListEntry.prototype['allowed_access_ids'] = undefined; +/** + * @member {Array.} allowed_urls + */ + +BastionListEntry.prototype['allowed_urls'] = undefined; +/** + * @member {Object.>} allowed_urls_per_instance + */ + +BastionListEntry.prototype['allowed_urls_per_instance'] = undefined; +/** + * @member {String} cluster_name + */ + +BastionListEntry.prototype['cluster_name'] = undefined; +/** + * @member {String} display_name + */ + +BastionListEntry.prototype['display_name'] = undefined; +/** + * @member {Date} last_report + */ + +BastionListEntry.prototype['last_report'] = undefined; +var _default = BastionListEntry; +exports["default"] = _default; + +/***/ }), + +/***/ 8436: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RawCreds", ({ - enumerable: true, - get: function get() { - return _RawCreds["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(21093)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The BastionsList model module. + * @module model/BastionsList + * @version 3.6.3 + */ +var BastionsList = /*#__PURE__*/function () { + /** + * Constructs a new BastionsList. + * @alias module:model/BastionsList + */ + function BastionsList() { + _classCallCheck(this, BastionsList); + + BastionsList.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(BastionsList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a BastionsList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BastionsList} obj Optional instance to populate. + * @return {module:model/BastionsList} The populated BastionsList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BastionsList(); + + if (data.hasOwnProperty('clusters')) { + obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_BastionListEntry["default"]]); + } + } + + return obj; + } + }]); + + return BastionsList; +}(); +/** + * @member {Array.} clusters + */ + + +BastionsList.prototype['clusters'] = undefined; +var _default = BastionsList; +exports["default"] = _default; + +/***/ }), + +/***/ 77807: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RefreshKey", ({ - enumerable: true, - get: function get() { - return _RefreshKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CFConfigPart model module. + * @module model/CFConfigPart + * @version 3.6.3 + */ +var CFConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new CFConfigPart. + * @alias module:model/CFConfigPart + */ + function CFConfigPart() { + _classCallCheck(this, CFConfigPart); + + CFConfigPart.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CFConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CFConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CFConfigPart} obj Optional instance to populate. + * @return {module:model/CFConfigPart} The populated CFConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CFConfigPart(); + + if (data.hasOwnProperty('customer_fragements')) { + obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], { + 'String': 'String' + }); + } + } + + return obj; + } + }]); + + return CFConfigPart; +}(); +/** + * @member {Object.} customer_fragements + */ + + +CFConfigPart.prototype['customer_fragements'] = undefined; +var _default = CFConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 8768: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RefreshKeyOutput", ({ - enumerable: true, - get: function get() { - return _RefreshKeyOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CacheConfigPart model module. + * @module model/CacheConfigPart + * @version 3.6.3 + */ +var CacheConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new CacheConfigPart. + * @alias module:model/CacheConfigPart + */ + function CacheConfigPart() { + _classCallCheck(this, CacheConfigPart); + + CacheConfigPart.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CacheConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CacheConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CacheConfigPart} obj Optional instance to populate. + * @return {module:model/CacheConfigPart} The populated CacheConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CacheConfigPart(); + + if (data.hasOwnProperty('cache_enable')) { + obj['cache_enable'] = _ApiClient["default"].convertToType(data['cache_enable'], 'Boolean'); + } + + if (data.hasOwnProperty('cache_ttl')) { + obj['cache_ttl'] = _ApiClient["default"].convertToType(data['cache_ttl'], 'String'); + } + + if (data.hasOwnProperty('new_proactive_cache_enable')) { + obj['new_proactive_cache_enable'] = _ApiClient["default"].convertToType(data['new_proactive_cache_enable'], 'Boolean'); + } + + if (data.hasOwnProperty('proactive_cache_dump_interval')) { + obj['proactive_cache_dump_interval'] = _ApiClient["default"].convertToType(data['proactive_cache_dump_interval'], 'String'); + } + + if (data.hasOwnProperty('proactive_cache_enable')) { + obj['proactive_cache_enable'] = _ApiClient["default"].convertToType(data['proactive_cache_enable'], 'Boolean'); + } + + if (data.hasOwnProperty('proactive_cache_minimum_fetching_time')) { + obj['proactive_cache_minimum_fetching_time'] = _ApiClient["default"].convertToType(data['proactive_cache_minimum_fetching_time'], 'String'); + } + } + + return obj; + } + }]); + + return CacheConfigPart; +}(); +/** + * @member {Boolean} cache_enable + */ + + +CacheConfigPart.prototype['cache_enable'] = undefined; +/** + * @member {String} cache_ttl + */ + +CacheConfigPart.prototype['cache_ttl'] = undefined; +/** + * @member {Boolean} new_proactive_cache_enable + */ + +CacheConfigPart.prototype['new_proactive_cache_enable'] = undefined; +/** + * @member {String} proactive_cache_dump_interval + */ + +CacheConfigPart.prototype['proactive_cache_dump_interval'] = undefined; +/** + * @member {Boolean} proactive_cache_enable + */ + +CacheConfigPart.prototype['proactive_cache_enable'] = undefined; +/** + * @member {String} proactive_cache_minimum_fetching_time + */ + +CacheConfigPart.prototype['proactive_cache_minimum_fetching_time'] = undefined; +var _default = CacheConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 12990: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RegexpTokenizerInfo", ({ - enumerable: true, - get: function get() { - return _RegexpTokenizerInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertAccessRules model module. + * @module model/CertAccessRules + * @version 3.6.3 + */ +var CertAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new CertAccessRules. + * @alias module:model/CertAccessRules + */ + function CertAccessRules() { + _classCallCheck(this, CertAccessRules); + + CertAccessRules.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertAccessRules} obj Optional instance to populate. + * @return {module:model/CertAccessRules} The populated CertAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertAccessRules(); + + if (data.hasOwnProperty('allowed_cors')) { + obj['allowed_cors'] = _ApiClient["default"].convertToType(data['allowed_cors'], ['String']); + } + + if (data.hasOwnProperty('bound_common_names')) { + obj['bound_common_names'] = _ApiClient["default"].convertToType(data['bound_common_names'], ['String']); + } + + if (data.hasOwnProperty('bound_dns_sans')) { + obj['bound_dns_sans'] = _ApiClient["default"].convertToType(data['bound_dns_sans'], ['String']); + } + + if (data.hasOwnProperty('bound_email_sans')) { + obj['bound_email_sans'] = _ApiClient["default"].convertToType(data['bound_email_sans'], ['String']); + } + + if (data.hasOwnProperty('bound_extensions')) { + obj['bound_extensions'] = _ApiClient["default"].convertToType(data['bound_extensions'], ['String']); + } + + if (data.hasOwnProperty('bound_organizational_units')) { + obj['bound_organizational_units'] = _ApiClient["default"].convertToType(data['bound_organizational_units'], ['String']); + } + + if (data.hasOwnProperty('bound_uri_sans')) { + obj['bound_uri_sans'] = _ApiClient["default"].convertToType(data['bound_uri_sans'], ['String']); + } + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } + + if (data.hasOwnProperty('revoked_cert_ids')) { + obj['revoked_cert_ids'] = _ApiClient["default"].convertToType(data['revoked_cert_ids'], ['String']); + } + + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CertAccessRules; +}(); +/** + * a list of allowed cors domains if used for browser authentication + * @member {Array.} allowed_cors + */ + + +CertAccessRules.prototype['allowed_cors'] = undefined; +/** + * A list of names. At least one must exist in the Common Name. Supports globbing. + * @member {Array.} bound_common_names + */ + +CertAccessRules.prototype['bound_common_names'] = undefined; +/** + * A list of DNS names. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound_dns_sans + */ + +CertAccessRules.prototype['bound_dns_sans'] = undefined; +/** + * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound_email_sans + */ + +CertAccessRules.prototype['bound_email_sans'] = undefined; +/** + * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values must match. Supports globbing on \"value\". + * @member {Array.} bound_extensions + */ + +CertAccessRules.prototype['bound_extensions'] = undefined; +/** + * A list of Organizational Units names. At least one must exist in the OU field. + * @member {Array.} bound_organizational_units + */ + +CertAccessRules.prototype['bound_organizational_units'] = undefined; +/** + * A list of URIs. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound_uri_sans + */ + +CertAccessRules.prototype['bound_uri_sans'] = undefined; +/** + * Base64 encdoed PEM certificate + * @member {String} certificate + */ + +CertAccessRules.prototype['certificate'] = undefined; +/** + * A list of revoked cert ids + * @member {Array.} revoked_cert_ids + */ + +CertAccessRules.prototype['revoked_cert_ids'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ + +CertAccessRules.prototype['unique_identifier'] = undefined; +var _default = CertAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 40603: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RequestAccess", ({ - enumerable: true, - get: function get() { - return _RequestAccess["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateAnalyticAggregation model module. + * @module model/CertificateAnalyticAggregation + * @version 3.6.3 + */ +var CertificateAnalyticAggregation = /*#__PURE__*/function () { + /** + * Constructs a new CertificateAnalyticAggregation. + * @alias module:model/CertificateAnalyticAggregation + */ + function CertificateAnalyticAggregation() { + _classCallCheck(this, CertificateAnalyticAggregation); + + CertificateAnalyticAggregation.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateAnalyticAggregation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateAnalyticAggregation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateAnalyticAggregation} obj Optional instance to populate. + * @return {module:model/CertificateAnalyticAggregation} The populated CertificateAnalyticAggregation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateAnalyticAggregation(); + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('ca_counts')) { + obj['ca_counts'] = _ApiClient["default"].convertToType(data['ca_counts'], { + 'String': 'Number' + }); + } + + if (data.hasOwnProperty('risk_counts')) { + obj['risk_counts'] = _ApiClient["default"].convertToType(data['risk_counts'], { + 'String': 'Number' + }); + } + } + + return obj; + } + }]); + + return CertificateAnalyticAggregation; +}(); +/** + * @member {String} account_id + */ + + +CertificateAnalyticAggregation.prototype['account_id'] = undefined; +/** + * @member {Object.} ca_counts + */ + +CertificateAnalyticAggregation.prototype['ca_counts'] = undefined; +/** + * @member {Object.} risk_counts + */ + +CertificateAnalyticAggregation.prototype['risk_counts'] = undefined; +var _default = CertificateAnalyticAggregation; +exports["default"] = _default; + +/***/ }), + +/***/ 79205: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RequestAccessOutput", ({ - enumerable: true, - get: function get() { - return _RequestAccessOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(60371)); + +var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(68026)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateChainInfo model module. + * @module model/CertificateChainInfo + * @version 3.6.3 + */ +var CertificateChainInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateChainInfo. + * @alias module:model/CertificateChainInfo + */ + function CertificateChainInfo() { + _classCallCheck(this, CertificateChainInfo); + + CertificateChainInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateChainInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateChainInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateChainInfo} obj Optional instance to populate. + * @return {module:model/CertificateChainInfo} The populated CertificateChainInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateChainInfo(); + + if (data.hasOwnProperty('certificate_chain')) { + obj['certificate_chain'] = _ApiClient["default"].convertToType(data['certificate_chain'], [_CertificateInfo["default"]]); + } + + if (data.hasOwnProperty('certificate_format')) { + obj['certificate_format'] = _ApiClient["default"].convertToType(data['certificate_format'], 'String'); + } + + if (data.hasOwnProperty('certificate_has_private_key')) { + obj['certificate_has_private_key'] = _ApiClient["default"].convertToType(data['certificate_has_private_key'], 'Boolean'); + } + + if (data.hasOwnProperty('certificate_issuer_gw_cluster_url')) { + obj['certificate_issuer_gw_cluster_url'] = _ApiClient["default"].convertToType(data['certificate_issuer_gw_cluster_url'], 'String'); + } + + if (data.hasOwnProperty('certificate_issuer_item_id')) { + obj['certificate_issuer_item_id'] = _ApiClient["default"].convertToType(data['certificate_issuer_item_id'], 'Number'); + } + + if (data.hasOwnProperty('certificate_issuer_name')) { + obj['certificate_issuer_name'] = _ApiClient["default"].convertToType(data['certificate_issuer_name'], 'String'); + } + + if (data.hasOwnProperty('certificate_pem')) { + obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); + } + + if (data.hasOwnProperty('certificate_status')) { + obj['certificate_status'] = _ApiClient["default"].convertToType(data['certificate_status'], 'String'); + } + + if (data.hasOwnProperty('expiration_events')) { + obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); + } + } + + return obj; + } + }]); + + return CertificateChainInfo; +}(); +/** + * @member {Array.} certificate_chain + */ + + +CertificateChainInfo.prototype['certificate_chain'] = undefined; +/** + * @member {String} certificate_format + */ + +CertificateChainInfo.prototype['certificate_format'] = undefined; +/** + * @member {Boolean} certificate_has_private_key + */ + +CertificateChainInfo.prototype['certificate_has_private_key'] = undefined; +/** + * @member {String} certificate_issuer_gw_cluster_url + */ + +CertificateChainInfo.prototype['certificate_issuer_gw_cluster_url'] = undefined; +/** + * @member {Number} certificate_issuer_item_id + */ + +CertificateChainInfo.prototype['certificate_issuer_item_id'] = undefined; +/** + * @member {String} certificate_issuer_name + */ + +CertificateChainInfo.prototype['certificate_issuer_name'] = undefined; +/** + * @member {String} certificate_pem + */ + +CertificateChainInfo.prototype['certificate_pem'] = undefined; +/** + * @member {String} certificate_status + */ + +CertificateChainInfo.prototype['certificate_status'] = undefined; +/** + * @member {Array.} expiration_events + */ + +CertificateChainInfo.prototype['expiration_events'] = undefined; +var _default = CertificateChainInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 60371: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RequiredActivity", ({ - enumerable: true, - get: function get() { - return _RequiredActivity["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateExpirationEvent model module. + * @module model/CertificateExpirationEvent + * @version 3.6.3 + */ +var CertificateExpirationEvent = /*#__PURE__*/function () { + /** + * Constructs a new CertificateExpirationEvent. + * @alias module:model/CertificateExpirationEvent + */ + function CertificateExpirationEvent() { + _classCallCheck(this, CertificateExpirationEvent); + + CertificateExpirationEvent.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateExpirationEvent, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateExpirationEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateExpirationEvent} obj Optional instance to populate. + * @return {module:model/CertificateExpirationEvent} The populated CertificateExpirationEvent instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateExpirationEvent(); + + if (data.hasOwnProperty('seconds_before')) { + obj['seconds_before'] = _ApiClient["default"].convertToType(data['seconds_before'], 'Number'); + } + } + + return obj; + } + }]); + + return CertificateExpirationEvent; +}(); +/** + * @member {Number} seconds_before + */ + + +CertificateExpirationEvent.prototype['seconds_before'] = undefined; +var _default = CertificateExpirationEvent; +exports["default"] = _default; + +/***/ }), + +/***/ 68026: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ReverseRBAC", ({ - enumerable: true, - get: function get() { - return _ReverseRBAC["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _Extension = _interopRequireDefault(__nccwpck_require__(22116)); + +var _Name = _interopRequireDefault(__nccwpck_require__(97822)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateInfo model module. + * @module model/CertificateInfo + * @version 3.6.3 + */ +var CertificateInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateInfo. + * @alias module:model/CertificateInfo + */ + function CertificateInfo() { + _classCallCheck(this, CertificateInfo); + + CertificateInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateInfo} obj Optional instance to populate. + * @return {module:model/CertificateInfo} The populated CertificateInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateInfo(); + + if (data.hasOwnProperty('ExtKeyUsage')) { + obj['ExtKeyUsage'] = _ApiClient["default"].convertToType(data['ExtKeyUsage'], ['Number']); + } + + if (data.hasOwnProperty('KeyUsage')) { + obj['KeyUsage'] = _ApiClient["default"].convertToType(data['KeyUsage'], 'Number'); + } + + if (data.hasOwnProperty('crl_distribution_points')) { + obj['crl_distribution_points'] = _ApiClient["default"].convertToType(data['crl_distribution_points'], ['String']); + } + + if (data.hasOwnProperty('dns_names')) { + obj['dns_names'] = _ApiClient["default"].convertToType(data['dns_names'], ['String']); + } + + if (data.hasOwnProperty('email_addresses')) { + obj['email_addresses'] = _ApiClient["default"].convertToType(data['email_addresses'], ['String']); + } + + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], [_Extension["default"]]); + } + + if (data.hasOwnProperty('ip_addresses')) { + obj['ip_addresses'] = _ApiClient["default"].convertToType(data['ip_addresses'], ['String']); + } + + if (data.hasOwnProperty('is_ca')) { + obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _Name["default"].constructFromObject(data['issuer']); + } + + if (data.hasOwnProperty('issuing_certificate_url')) { + obj['issuing_certificate_url'] = _ApiClient["default"].convertToType(data['issuing_certificate_url'], ['String']); + } + + if (data.hasOwnProperty('key_size')) { + obj['key_size'] = _ApiClient["default"].convertToType(data['key_size'], 'Number'); + } + + if (data.hasOwnProperty('not_after')) { + obj['not_after'] = _ApiClient["default"].convertToType(data['not_after'], 'Date'); + } + + if (data.hasOwnProperty('not_before')) { + obj['not_before'] = _ApiClient["default"].convertToType(data['not_before'], 'Date'); + } + + if (data.hasOwnProperty('ocsp_server')) { + obj['ocsp_server'] = _ApiClient["default"].convertToType(data['ocsp_server'], ['String']); + } + + if (data.hasOwnProperty('public_key_algorithm_name')) { + obj['public_key_algorithm_name'] = _ApiClient["default"].convertToType(data['public_key_algorithm_name'], 'String'); + } + + if (data.hasOwnProperty('serial_number')) { + obj['serial_number'] = _ApiClient["default"].convertToType(data['serial_number'], 'String'); + } + + if (data.hasOwnProperty('sha_1_fingerprint')) { + obj['sha_1_fingerprint'] = _ApiClient["default"].convertToType(data['sha_1_fingerprint'], 'String'); + } + + if (data.hasOwnProperty('sha_256_fingerprint')) { + obj['sha_256_fingerprint'] = _ApiClient["default"].convertToType(data['sha_256_fingerprint'], 'String'); + } + + if (data.hasOwnProperty('signature')) { + obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); + } + + if (data.hasOwnProperty('signature_algorithm_name')) { + obj['signature_algorithm_name'] = _ApiClient["default"].convertToType(data['signature_algorithm_name'], 'String'); + } + + if (data.hasOwnProperty('subject')) { + obj['subject'] = _Name["default"].constructFromObject(data['subject']); + } + + if (data.hasOwnProperty('subject_public_key')) { + obj['subject_public_key'] = _ApiClient["default"].convertToType(data['subject_public_key'], 'String'); + } + + if (data.hasOwnProperty('uris')) { + obj['uris'] = _ApiClient["default"].convertToType(data['uris'], ['String']); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return CertificateInfo; +}(); +/** + * @member {Array.} ExtKeyUsage + */ + + +CertificateInfo.prototype['ExtKeyUsage'] = undefined; +/** + * KeyUsage represents the set of actions that are valid for a given key. It's a bitmap of the KeyUsage* constants. + * @member {Number} KeyUsage + */ + +CertificateInfo.prototype['KeyUsage'] = undefined; +/** + * @member {Array.} crl_distribution_points + */ + +CertificateInfo.prototype['crl_distribution_points'] = undefined; +/** + * @member {Array.} dns_names + */ + +CertificateInfo.prototype['dns_names'] = undefined; +/** + * @member {Array.} email_addresses + */ + +CertificateInfo.prototype['email_addresses'] = undefined; +/** + * @member {Array.} extensions + */ + +CertificateInfo.prototype['extensions'] = undefined; +/** + * @member {Array.} ip_addresses + */ + +CertificateInfo.prototype['ip_addresses'] = undefined; +/** + * @member {Boolean} is_ca + */ + +CertificateInfo.prototype['is_ca'] = undefined; +/** + * @member {module:model/Name} issuer + */ + +CertificateInfo.prototype['issuer'] = undefined; +/** + * @member {Array.} issuing_certificate_url + */ + +CertificateInfo.prototype['issuing_certificate_url'] = undefined; +/** + * @member {Number} key_size + */ + +CertificateInfo.prototype['key_size'] = undefined; +/** + * @member {Date} not_after + */ + +CertificateInfo.prototype['not_after'] = undefined; +/** + * @member {Date} not_before + */ + +CertificateInfo.prototype['not_before'] = undefined; +/** + * @member {Array.} ocsp_server + */ + +CertificateInfo.prototype['ocsp_server'] = undefined; +/** + * @member {String} public_key_algorithm_name + */ + +CertificateInfo.prototype['public_key_algorithm_name'] = undefined; +/** + * @member {String} serial_number + */ + +CertificateInfo.prototype['serial_number'] = undefined; +/** + * @member {String} sha_1_fingerprint + */ + +CertificateInfo.prototype['sha_1_fingerprint'] = undefined; +/** + * @member {String} sha_256_fingerprint + */ + +CertificateInfo.prototype['sha_256_fingerprint'] = undefined; +/** + * @member {String} signature + */ + +CertificateInfo.prototype['signature'] = undefined; +/** + * @member {String} signature_algorithm_name + */ + +CertificateInfo.prototype['signature_algorithm_name'] = undefined; +/** + * @member {module:model/Name} subject + */ + +CertificateInfo.prototype['subject'] = undefined; +/** + * @member {String} subject_public_key + */ + +CertificateInfo.prototype['subject_public_key'] = undefined; +/** + * @member {Array.} uris + */ + +CertificateInfo.prototype['uris'] = undefined; +/** + * @member {Number} version + */ + +CertificateInfo.prototype['version'] = undefined; +var _default = CertificateInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 86711: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ReverseRBACClient", ({ - enumerable: true, - get: function get() { - return _ReverseRBACClient["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(61949)); + +var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(44679)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateIssueInfo model module. + * @module model/CertificateIssueInfo + * @version 3.6.3 + */ +var CertificateIssueInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateIssueInfo. + * @alias module:model/CertificateIssueInfo + */ + function CertificateIssueInfo() { + _classCallCheck(this, CertificateIssueInfo); + + CertificateIssueInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateIssueInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateIssueInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateIssueInfo} obj Optional instance to populate. + * @return {module:model/CertificateIssueInfo} The populated CertificateIssueInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateIssueInfo(); + + if (data.hasOwnProperty('cert_issuer_type')) { + obj['cert_issuer_type'] = _ApiClient["default"].convertToType(data['cert_issuer_type'], 'String'); + } + + if (data.hasOwnProperty('max_ttl')) { + obj['max_ttl'] = _ApiClient["default"].convertToType(data['max_ttl'], 'Number'); + } + + if (data.hasOwnProperty('pki_cert_issuer_details')) { + obj['pki_cert_issuer_details'] = _PKICertificateIssueDetails["default"].constructFromObject(data['pki_cert_issuer_details']); + } + + if (data.hasOwnProperty('ssh_cert_issuer_details')) { + obj['ssh_cert_issuer_details'] = _SSHCertificateIssueDetails["default"].constructFromObject(data['ssh_cert_issuer_details']); + } + } + + return obj; + } + }]); + + return CertificateIssueInfo; +}(); +/** + * @member {String} cert_issuer_type + */ + + +CertificateIssueInfo.prototype['cert_issuer_type'] = undefined; +/** + * @member {Number} max_ttl + */ + +CertificateIssueInfo.prototype['max_ttl'] = undefined; +/** + * @member {module:model/PKICertificateIssueDetails} pki_cert_issuer_details + */ + +CertificateIssueInfo.prototype['pki_cert_issuer_details'] = undefined; +/** + * @member {module:model/SSHCertificateIssueDetails} ssh_cert_issuer_details + */ + +CertificateIssueInfo.prototype['ssh_cert_issuer_details'] = undefined; +var _default = CertificateIssueInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 71552: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ReverseRBACOutput", ({ - enumerable: true, - get: function get() { - return _ReverseRBACOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateTemplateInfo model module. + * @module model/CertificateTemplateInfo + * @version 3.6.3 + */ +var CertificateTemplateInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateTemplateInfo. + * @alias module:model/CertificateTemplateInfo + */ + function CertificateTemplateInfo() { + _classCallCheck(this, CertificateTemplateInfo); + + CertificateTemplateInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateTemplateInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateTemplateInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateTemplateInfo} obj Optional instance to populate. + * @return {module:model/CertificateTemplateInfo} The populated CertificateTemplateInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateTemplateInfo(); + + if (data.hasOwnProperty('common_name')) { + obj['common_name'] = _ApiClient["default"].convertToType(data['common_name'], 'String'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('csr_cnf_base_64')) { + obj['csr_cnf_base_64'] = _ApiClient["default"].convertToType(data['csr_cnf_base_64'], 'String'); + } + + if (data.hasOwnProperty('digest_algo')) { + obj['digest_algo'] = _ApiClient["default"].convertToType(data['digest_algo'], 'String'); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } + + if (data.hasOwnProperty('organization')) { + obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } + + if (data.hasOwnProperty('self_signed_enabled')) { + obj['self_signed_enabled'] = _ApiClient["default"].convertToType(data['self_signed_enabled'], 'Boolean'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + } + + return obj; + } + }]); + + return CertificateTemplateInfo; +}(); +/** + * @member {String} common_name + */ + + +CertificateTemplateInfo.prototype['common_name'] = undefined; +/** + * @member {String} country + */ + +CertificateTemplateInfo.prototype['country'] = undefined; +/** + * @member {String} csr_cnf_base_64 + */ + +CertificateTemplateInfo.prototype['csr_cnf_base_64'] = undefined; +/** + * @member {String} digest_algo + */ + +CertificateTemplateInfo.prototype['digest_algo'] = undefined; +/** + * @member {String} locality + */ + +CertificateTemplateInfo.prototype['locality'] = undefined; +/** + * @member {String} organization + */ + +CertificateTemplateInfo.prototype['organization'] = undefined; +/** + * @member {String} province + */ + +CertificateTemplateInfo.prototype['province'] = undefined; +/** + * @member {Boolean} self_signed_enabled + */ + +CertificateTemplateInfo.prototype['self_signed_enabled'] = undefined; +/** + * @member {Number} ttl + */ + +CertificateTemplateInfo.prototype['ttl'] = undefined; +var _default = CertificateTemplateInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 16668: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RevokeCreds", ({ - enumerable: true, - get: function get() { - return _RevokeCreds["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateVersionInfo model module. + * @module model/CertificateVersionInfo + * @version 3.6.3 + */ +var CertificateVersionInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateVersionInfo. + * @alias module:model/CertificateVersionInfo + */ + function CertificateVersionInfo() { + _classCallCheck(this, CertificateVersionInfo); + + CertificateVersionInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateVersionInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateVersionInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateVersionInfo} obj Optional instance to populate. + * @return {module:model/CertificateVersionInfo} The populated CertificateVersionInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateVersionInfo(); + + if (data.hasOwnProperty('not_after')) { + obj['not_after'] = _ApiClient["default"].convertToType(data['not_after'], 'Date'); + } + + if (data.hasOwnProperty('not_before')) { + obj['not_before'] = _ApiClient["default"].convertToType(data['not_before'], 'Date'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + } + + return obj; + } + }]); + + return CertificateVersionInfo; +}(); +/** + * @member {Date} not_after + */ + + +CertificateVersionInfo.prototype['not_after'] = undefined; +/** + * @member {Date} not_before + */ + +CertificateVersionInfo.prototype['not_before'] = undefined; +/** + * @member {String} status + */ + +CertificateVersionInfo.prototype['status'] = undefined; +var _default = CertificateVersionInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 73036: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Role", ({ - enumerable: true, - get: function get() { - return _Role["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CfInfo model module. + * @module model/CfInfo + * @version 3.6.3 + */ +var CfInfo = /*#__PURE__*/function () { + /** + * Constructs a new CfInfo. + * @alias module:model/CfInfo + */ + function CfInfo() { + _classCallCheck(this, CfInfo); + + CfInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CfInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CfInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CfInfo} obj Optional instance to populate. + * @return {module:model/CfInfo} The populated CfInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CfInfo(); + + if (data.hasOwnProperty('cf_name')) { + obj['cf_name'] = _ApiClient["default"].convertToType(data['cf_name'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('hash')) { + obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + } + + return obj; + } + }]); + + return CfInfo; +}(); +/** + * @member {String} cf_name + */ + + +CfInfo.prototype['cf_name'] = undefined; +/** + * @member {String} description + */ + +CfInfo.prototype['description'] = undefined; +/** + * @member {String} hash + */ + +CfInfo.prototype['hash'] = undefined; +/** + * @member {String} id + */ + +CfInfo.prototype['id'] = undefined; +var _default = CfInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 12608: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RoleAssociationDetails", ({ - enumerable: true, - get: function get() { - return _RoleAssociationDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ChefTargetDetails model module. + * @module model/ChefTargetDetails + * @version 3.6.3 + */ +var ChefTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new ChefTargetDetails. + * ChefTargetDetails + * @alias module:model/ChefTargetDetails + */ + function ChefTargetDetails() { + _classCallCheck(this, ChefTargetDetails); + + ChefTargetDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ChefTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ChefTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChefTargetDetails} obj Optional instance to populate. + * @return {module:model/ChefTargetDetails} The populated ChefTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ChefTargetDetails(); + + if (data.hasOwnProperty('chef_server_host_name')) { + obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); + } + + if (data.hasOwnProperty('chef_server_key')) { + obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); + } + + if (data.hasOwnProperty('chef_server_port')) { + obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); + } + + if (data.hasOwnProperty('chef_server_url')) { + obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); + } + + if (data.hasOwnProperty('chef_server_username')) { + obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); + } + + if (data.hasOwnProperty('chef_skip_ssl')) { + obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); + } + } + + return obj; + } + }]); + + return ChefTargetDetails; +}(); +/** + * @member {String} chef_server_host_name + */ + + +ChefTargetDetails.prototype['chef_server_host_name'] = undefined; +/** + * @member {String} chef_server_key + */ + +ChefTargetDetails.prototype['chef_server_key'] = undefined; +/** + * @member {String} chef_server_port + */ + +ChefTargetDetails.prototype['chef_server_port'] = undefined; +/** + * @member {String} chef_server_url + */ + +ChefTargetDetails.prototype['chef_server_url'] = undefined; +/** + * @member {String} chef_server_username + */ + +ChefTargetDetails.prototype['chef_server_username'] = undefined; +/** + * @member {Boolean} chef_skip_ssl + */ + +ChefTargetDetails.prototype['chef_skip_ssl'] = undefined; +var _default = ChefTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 5626: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RoleAuthMethodAssociation", ({ - enumerable: true, - get: function get() { - return _RoleAuthMethodAssociation["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(96191)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClassicKeyDetailsInfo model module. + * @module model/ClassicKeyDetailsInfo + * @version 3.6.3 + */ +var ClassicKeyDetailsInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClassicKeyDetailsInfo. + * @alias module:model/ClassicKeyDetailsInfo + */ + function ClassicKeyDetailsInfo() { + _classCallCheck(this, ClassicKeyDetailsInfo); + + ClassicKeyDetailsInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClassicKeyDetailsInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClassicKeyDetailsInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClassicKeyDetailsInfo} obj Optional instance to populate. + * @return {module:model/ClassicKeyDetailsInfo} The populated ClassicKeyDetailsInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClassicKeyDetailsInfo(); + + if (data.hasOwnProperty('classic_key_attributes')) { + obj['classic_key_attributes'] = _ApiClient["default"].convertToType(data['classic_key_attributes'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('classic_key_id')) { + obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); + } + + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('has_certificate')) { + obj['has_certificate'] = _ApiClient["default"].convertToType(data['has_certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('is_provided_by_user')) { + obj['is_provided_by_user'] = _ApiClient["default"].convertToType(data['is_provided_by_user'], 'Boolean'); + } + + if (data.hasOwnProperty('is_unexportable')) { + obj['is_unexportable'] = _ApiClient["default"].convertToType(data['is_unexportable'], 'Boolean'); + } + + if (data.hasOwnProperty('key_state')) { + obj['key_state'] = _ApiClient["default"].convertToType(data['key_state'], 'String'); + } + + if (data.hasOwnProperty('key_type')) { + obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); + } + + if (data.hasOwnProperty('last_error')) { + obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); + } + + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); + } + + if (data.hasOwnProperty('target_alias_helper')) { + obj['target_alias_helper'] = _ApiClient["default"].convertToType(data['target_alias_helper'], 'String'); + } + + if (data.hasOwnProperty('target_types')) { + obj['target_types'] = _ApiClient["default"].convertToType(data['target_types'], ['String']); + } + + if (data.hasOwnProperty('targets')) { + obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_ClassicKeyTargetInfo["default"]]); + } + } + + return obj; + } + }]); + + return ClassicKeyDetailsInfo; +}(); +/** + * @member {Object.>} classic_key_attributes + */ + + +ClassicKeyDetailsInfo.prototype['classic_key_attributes'] = undefined; +/** + * @member {String} classic_key_id + */ + +ClassicKeyDetailsInfo.prototype['classic_key_id'] = undefined; +/** + * @member {Number} gw_cluster_id + */ + +ClassicKeyDetailsInfo.prototype['gw_cluster_id'] = undefined; +/** + * @member {Boolean} has_certificate + */ + +ClassicKeyDetailsInfo.prototype['has_certificate'] = undefined; +/** + * @member {Boolean} is_provided_by_user + */ + +ClassicKeyDetailsInfo.prototype['is_provided_by_user'] = undefined; +/** + * @member {Boolean} is_unexportable + */ + +ClassicKeyDetailsInfo.prototype['is_unexportable'] = undefined; +/** + * ItemState defines the different states an Item can be in + * @member {String} key_state + */ + +ClassicKeyDetailsInfo.prototype['key_state'] = undefined; +/** + * @member {String} key_type + */ + +ClassicKeyDetailsInfo.prototype['key_type'] = undefined; +/** + * @member {String} last_error + */ + +ClassicKeyDetailsInfo.prototype['last_error'] = undefined; +/** + * @member {String} public_key + */ + +ClassicKeyDetailsInfo.prototype['public_key'] = undefined; +/** + * @member {String} target_alias_helper + */ + +ClassicKeyDetailsInfo.prototype['target_alias_helper'] = undefined; +/** + * @member {Array.} target_types + */ + +ClassicKeyDetailsInfo.prototype['target_types'] = undefined; +/** + * @member {Array.} targets + */ + +ClassicKeyDetailsInfo.prototype['targets'] = undefined; +var _default = ClassicKeyDetailsInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 84276: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RollbackSecret", ({ - enumerable: true, - get: function get() { - return _RollbackSecret["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClassicKeyStatusInfo model module. + * @module model/ClassicKeyStatusInfo + * @version 3.6.3 + */ +var ClassicKeyStatusInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClassicKeyStatusInfo. + * @alias module:model/ClassicKeyStatusInfo + */ + function ClassicKeyStatusInfo() { + _classCallCheck(this, ClassicKeyStatusInfo); + + ClassicKeyStatusInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClassicKeyStatusInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClassicKeyStatusInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClassicKeyStatusInfo} obj Optional instance to populate. + * @return {module:model/ClassicKeyStatusInfo} The populated ClassicKeyStatusInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClassicKeyStatusInfo(); + + if (data.hasOwnProperty('error_date')) { + obj['error_date'] = _ApiClient["default"].convertToType(data['error_date'], 'Date'); + } + + if (data.hasOwnProperty('last_error')) { + obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); + } + + if (data.hasOwnProperty('last_status')) { + obj['last_status'] = _ApiClient["default"].convertToType(data['last_status'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return ClassicKeyStatusInfo; +}(); +/** + * @member {Date} error_date + */ + + +ClassicKeyStatusInfo.prototype['error_date'] = undefined; +/** + * @member {String} last_error + */ + +ClassicKeyStatusInfo.prototype['last_error'] = undefined; +/** + * ClassicKeyTargetStatus defines status of classic key target + * @member {String} last_status + */ + +ClassicKeyStatusInfo.prototype['last_status'] = undefined; +/** + * @member {Number} version + */ + +ClassicKeyStatusInfo.prototype['version'] = undefined; +var _default = ClassicKeyStatusInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 96191: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RollbackSecretOutput", ({ - enumerable: true, - get: function get() { - return _RollbackSecretOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(84276)); + +var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(44851)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClassicKeyTargetInfo model module. + * @module model/ClassicKeyTargetInfo + * @version 3.6.3 + */ +var ClassicKeyTargetInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClassicKeyTargetInfo. + * @alias module:model/ClassicKeyTargetInfo + */ + function ClassicKeyTargetInfo() { + _classCallCheck(this, ClassicKeyTargetInfo); + + ClassicKeyTargetInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClassicKeyTargetInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClassicKeyTargetInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClassicKeyTargetInfo} obj Optional instance to populate. + * @return {module:model/ClassicKeyTargetInfo} The populated ClassicKeyTargetInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClassicKeyTargetInfo(); + + if (data.hasOwnProperty('external_kms_id')) { + obj['external_kms_id'] = _ExternalKMSKeyId["default"].constructFromObject(data['external_kms_id']); + } + + if (data.hasOwnProperty('key_purpose')) { + obj['key_purpose'] = _ApiClient["default"].convertToType(data['key_purpose'], ['String']); + } + + if (data.hasOwnProperty('key_status')) { + obj['key_status'] = _ClassicKeyStatusInfo["default"].constructFromObject(data['key_status']); + } + + if (data.hasOwnProperty('target_assoc_id')) { + obj['target_assoc_id'] = _ApiClient["default"].convertToType(data['target_assoc_id'], 'String'); + } + + if (data.hasOwnProperty('target_type')) { + obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); + } + } + + return obj; + } + }]); + + return ClassicKeyTargetInfo; +}(); +/** + * @member {module:model/ExternalKMSKeyId} external_kms_id + */ + + +ClassicKeyTargetInfo.prototype['external_kms_id'] = undefined; +/** + * @member {Array.} key_purpose + */ + +ClassicKeyTargetInfo.prototype['key_purpose'] = undefined; +/** + * @member {module:model/ClassicKeyStatusInfo} key_status + */ + +ClassicKeyTargetInfo.prototype['key_status'] = undefined; +/** + * @member {String} target_assoc_id + */ + +ClassicKeyTargetInfo.prototype['target_assoc_id'] = undefined; +/** + * @member {String} target_type + */ + +ClassicKeyTargetInfo.prototype['target_type'] = undefined; +var _default = ClassicKeyTargetInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 68470: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RotateKey", ({ - enumerable: true, - get: function get() { - return _RotateKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClientData model module. + * @module model/ClientData + * @version 3.6.3 + */ +var ClientData = /*#__PURE__*/function () { + /** + * Constructs a new ClientData. + * @alias module:model/ClientData + */ + function ClientData() { + _classCallCheck(this, ClientData); + + ClientData.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClientData, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClientData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientData} obj Optional instance to populate. + * @return {module:model/ClientData} The populated ClientData instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientData(); + + if (data.hasOwnProperty('clientCertificateData')) { + obj['clientCertificateData'] = _ApiClient["default"].convertToType(data['clientCertificateData'], 'String'); + } + + if (data.hasOwnProperty('clientKeyData')) { + obj['clientKeyData'] = _ApiClient["default"].convertToType(data['clientKeyData'], 'String'); + } + + if (data.hasOwnProperty('parentCertificateData')) { + obj['parentCertificateData'] = _ApiClient["default"].convertToType(data['parentCertificateData'], 'String'); + } + } + + return obj; + } + }]); + + return ClientData; +}(); +/** + * @member {String} clientCertificateData + */ + + +ClientData.prototype['clientCertificateData'] = undefined; +/** + * @member {String} clientKeyData + */ + +ClientData.prototype['clientKeyData'] = undefined; +/** + * @member {String} parentCertificateData + */ + +ClientData.prototype['parentCertificateData'] = undefined; +var _default = ClientData; +exports["default"] = _default; + +/***/ }), + +/***/ 45139: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RotateKeyOutput", ({ - enumerable: true, - get: function get() { - return _RotateKeyOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClientUsageInfo model module. + * @module model/ClientUsageInfo + * @version 3.6.3 + */ +var ClientUsageInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClientUsageInfo. + * @alias module:model/ClientUsageInfo + */ + function ClientUsageInfo() { + _classCallCheck(this, ClientUsageInfo); + + ClientUsageInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClientUsageInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClientUsageInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientUsageInfo} obj Optional instance to populate. + * @return {module:model/ClientUsageInfo} The populated ClientUsageInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientUsageInfo(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + } + + if (data.hasOwnProperty('client_unique_id')) { + obj['client_unique_id'] = _ApiClient["default"].convertToType(data['client_unique_id'], 'String'); + } + + if (data.hasOwnProperty('exceeded_clients')) { + obj['exceeded_clients'] = _ApiClient["default"].convertToType(data['exceeded_clients'], 'Number'); + } + } + + return obj; + } + }]); + + return ClientUsageInfo; +}(); +/** + * @member {String} access_id + */ + + +ClientUsageInfo.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +ClientUsageInfo.prototype['access_type'] = undefined; +/** + * @member {String} auth_method_name + */ + +ClientUsageInfo.prototype['auth_method_name'] = undefined; +/** + * @member {String} client_unique_id + */ + +ClientUsageInfo.prototype['client_unique_id'] = undefined; +/** + * @member {Number} exceeded_clients + */ + +ClientUsageInfo.prototype['exceeded_clients'] = undefined; +var _default = ClientUsageInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 16184: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RotateSecret", ({ - enumerable: true, - get: function get() { - return _RotateSecret["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ClientUsageInfo = _interopRequireDefault(__nccwpck_require__(45139)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClientsUsageReport model module. + * @module model/ClientsUsageReport + * @version 3.6.3 + */ +var ClientsUsageReport = /*#__PURE__*/function () { + /** + * Constructs a new ClientsUsageReport. + * @alias module:model/ClientsUsageReport + */ + function ClientsUsageReport() { + _classCallCheck(this, ClientsUsageReport); + + ClientsUsageReport.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClientsUsageReport, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClientsUsageReport from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientsUsageReport} obj Optional instance to populate. + * @return {module:model/ClientsUsageReport} The populated ClientsUsageReport instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientsUsageReport(); + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], [_ClientUsageInfo["default"]]); + } + + if (data.hasOwnProperty('product')) { + obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String'); + } + + if (data.hasOwnProperty('time')) { + obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Date'); + } + + if (data.hasOwnProperty('total_clients')) { + obj['total_clients'] = _ApiClient["default"].convertToType(data['total_clients'], 'Number'); + } + } + + return obj; + } + }]); + + return ClientsUsageReport; +}(); +/** + * @member {String} account_id + */ + + +ClientsUsageReport.prototype['account_id'] = undefined; +/** + * @member {Array.} clients + */ + +ClientsUsageReport.prototype['clients'] = undefined; +/** + * @member {String} product + */ + +ClientsUsageReport.prototype['product'] = undefined; +/** + * @member {Date} time + */ + +ClientsUsageReport.prototype['time'] = undefined; +/** + * @member {Number} total_clients + */ + +ClientsUsageReport.prototype['total_clients'] = undefined; +var _default = ClientsUsageReport; +exports["default"] = _default; + +/***/ }), + +/***/ 75263: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RotatedSecretDetailsInfo", ({ - enumerable: true, - get: function get() { - return _RotatedSecretDetailsInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ConfigHash = _interopRequireDefault(__nccwpck_require__(62959)); + +var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(51347)); + +var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(67591)); + +var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(37953)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ConfigChange model module. + * @module model/ConfigChange + * @version 3.6.3 + */ +var ConfigChange = /*#__PURE__*/function () { + /** + * Constructs a new ConfigChange. + * @alias module:model/ConfigChange + */ + function ConfigChange() { + _classCallCheck(this, ConfigChange); + + ConfigChange.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ConfigChange, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ConfigChange from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfigChange} obj Optional instance to populate. + * @return {module:model/ConfigChange} The populated ConfigChange instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ConfigChange(); + + if (data.hasOwnProperty('config_hash')) { + obj['config_hash'] = _ConfigHash["default"].constructFromObject(data['config_hash']); + } + + if (data.hasOwnProperty('last_change')) { + obj['last_change'] = _LastConfigChange["default"].constructFromObject(data['last_change']); + } + + if (data.hasOwnProperty('last_status')) { + obj['last_status'] = _LastStatusInfo["default"].constructFromObject(data['last_status']); + } + + if (data.hasOwnProperty('required_activity')) { + obj['required_activity'] = _RequiredActivity["default"].constructFromObject(data['required_activity']); + } + + if (data.hasOwnProperty('update_stamp')) { + obj['update_stamp'] = _ApiClient["default"].convertToType(data['update_stamp'], 'Number'); + } + } + + return obj; + } + }]); + + return ConfigChange; +}(); +/** + * @member {module:model/ConfigHash} config_hash + */ + + +ConfigChange.prototype['config_hash'] = undefined; +/** + * @member {module:model/LastConfigChange} last_change + */ + +ConfigChange.prototype['last_change'] = undefined; +/** + * @member {module:model/LastStatusInfo} last_status + */ + +ConfigChange.prototype['last_status'] = undefined; +/** + * @member {module:model/RequiredActivity} required_activity + */ + +ConfigChange.prototype['required_activity'] = undefined; +/** + * @member {Number} update_stamp + */ + +ConfigChange.prototype['update_stamp'] = undefined; +var _default = ConfigChange; +exports["default"] = _default; + +/***/ }), + +/***/ 62959: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RotatedSecretOutput", ({ - enumerable: true, - get: function get() { - return _RotatedSecretOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ConfigHash model module. + * @module model/ConfigHash + * @version 3.6.3 + */ +var ConfigHash = /*#__PURE__*/function () { + /** + * Constructs a new ConfigHash. + * @alias module:model/ConfigHash + */ + function ConfigHash() { + _classCallCheck(this, ConfigHash); + + ConfigHash.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ConfigHash, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ConfigHash from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfigHash} obj Optional instance to populate. + * @return {module:model/ConfigHash} The populated ConfigHash instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ConfigHash(); + + if (data.hasOwnProperty('admins')) { + obj['admins'] = _ApiClient["default"].convertToType(data['admins'], 'String'); + } + + if (data.hasOwnProperty('cache')) { + obj['cache'] = _ApiClient["default"].convertToType(data['cache'], 'String'); + } + + if (data.hasOwnProperty('customer_fragements')) { + obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], 'String'); + } + + if (data.hasOwnProperty('general')) { + obj['general'] = _ApiClient["default"].convertToType(data['general'], 'String'); + } + + if (data.hasOwnProperty('k8s_auths')) { + obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], 'String'); + } + + if (data.hasOwnProperty('kmip')) { + obj['kmip'] = _ApiClient["default"].convertToType(data['kmip'], 'String'); + } + + if (data.hasOwnProperty('ldap')) { + obj['ldap'] = _ApiClient["default"].convertToType(data['ldap'], 'String'); + } + + if (data.hasOwnProperty('leadership')) { + obj['leadership'] = _ApiClient["default"].convertToType(data['leadership'], 'String'); + } + + if (data.hasOwnProperty('log_forwarding')) { + obj['log_forwarding'] = _ApiClient["default"].convertToType(data['log_forwarding'], 'String'); + } + + if (data.hasOwnProperty('m_queue')) { + obj['m_queue'] = _ApiClient["default"].convertToType(data['m_queue'], 'String'); + } + + if (data.hasOwnProperty('migration_status')) { + obj['migration_status'] = _ApiClient["default"].convertToType(data['migration_status'], 'String'); + } + + if (data.hasOwnProperty('migrations')) { + obj['migrations'] = _ApiClient["default"].convertToType(data['migrations'], 'String'); + } + + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ApiClient["default"].convertToType(data['producers'], Object); + } + + if (data.hasOwnProperty('producers_status')) { + obj['producers_status'] = _ApiClient["default"].convertToType(data['producers_status'], 'String'); + } + + if (data.hasOwnProperty('rotators')) { + obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], Object); + } + + if (data.hasOwnProperty('saml')) { + obj['saml'] = _ApiClient["default"].convertToType(data['saml'], 'String'); + } + + if (data.hasOwnProperty('universal_identity')) { + obj['universal_identity'] = _ApiClient["default"].convertToType(data['universal_identity'], 'String'); + } + } + + return obj; + } + }]); + + return ConfigHash; +}(); +/** + * @member {String} admins + */ + + +ConfigHash.prototype['admins'] = undefined; +/** + * @member {String} cache + */ + +ConfigHash.prototype['cache'] = undefined; +/** + * @member {String} customer_fragements + */ + +ConfigHash.prototype['customer_fragements'] = undefined; +/** + * @member {String} general + */ + +ConfigHash.prototype['general'] = undefined; +/** + * @member {String} k8s_auths + */ + +ConfigHash.prototype['k8s_auths'] = undefined; +/** + * @member {String} kmip + */ + +ConfigHash.prototype['kmip'] = undefined; +/** + * @member {String} ldap + */ + +ConfigHash.prototype['ldap'] = undefined; +/** + * @member {String} leadership + */ + +ConfigHash.prototype['leadership'] = undefined; +/** + * @member {String} log_forwarding + */ + +ConfigHash.prototype['log_forwarding'] = undefined; +/** + * @member {String} m_queue + */ + +ConfigHash.prototype['m_queue'] = undefined; +/** + * @member {String} migration_status + */ + +ConfigHash.prototype['migration_status'] = undefined; +/** + * @member {String} migrations + */ + +ConfigHash.prototype['migrations'] = undefined; +/** + * @member {Object} producers + */ + +ConfigHash.prototype['producers'] = undefined; +/** + * @member {String} producers_status + */ + +ConfigHash.prototype['producers_status'] = undefined; +/** + * @member {Object} rotators + */ + +ConfigHash.prototype['rotators'] = undefined; +/** + * @member {String} saml + */ + +ConfigHash.prototype['saml'] = undefined; +/** + * @member {String} universal_identity + */ + +ConfigHash.prototype['universal_identity'] = undefined; +var _default = ConfigHash; +exports["default"] = _default; + +/***/ }), + +/***/ 69609: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Rotator", ({ - enumerable: true, - get: function get() { - return _Rotator["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Configure model module. + * @module model/Configure + * @version 3.6.3 + */ +var Configure = /*#__PURE__*/function () { + /** + * Constructs a new Configure. + * @alias module:model/Configure + */ + function Configure() { + _classCallCheck(this, Configure); + + Configure.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Configure, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Configure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Configure} obj Optional instance to populate. + * @return {module:model/Configure} The populated Configure instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Configure(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } + + if (data.hasOwnProperty('access-type')) { + obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); + } + + if (data.hasOwnProperty('account-id')) { + obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); + } + + if (data.hasOwnProperty('admin-email')) { + obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + } + + if (data.hasOwnProperty('admin-password')) { + obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); + } + + if (data.hasOwnProperty('azure_ad_object_id')) { + obj['azure_ad_object_id'] = _ApiClient["default"].convertToType(data['azure_ad_object_id'], 'String'); + } + + if (data.hasOwnProperty('cert-data')) { + obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); + } + + if (data.hasOwnProperty('gcp-audience')) { + obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-auth-config-name')) { + obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('oci-auth-type')) { + obj['oci-auth-type'] = _ApiClient["default"].convertToType(data['oci-auth-type'], 'String'); + } + + if (data.hasOwnProperty('oci-group-ocid')) { + obj['oci-group-ocid'] = _ApiClient["default"].convertToType(data['oci-group-ocid'], ['String']); + } + } + + return obj; + } + }]); + + return Configure; +}(); +/** + * Access ID + * @member {String} access-id + */ + + +Configure.prototype['access-id'] = undefined; +/** + * Access Key + * @member {String} access-key + */ + +Configure.prototype['access-key'] = undefined; +/** + * Access Type (access_key/password/azure_ad/saml/oidc/aws_iam/gcp/k8s/cert) + * @member {String} access-type + * @default 'access_key' + */ + +Configure.prototype['access-type'] = 'access_key'; +/** + * Account id (relevant only for access-type=password where the email address is associated with more than one account) + * @member {String} account-id + */ + +Configure.prototype['account-id'] = undefined; +/** + * Email (relevant only for access-type=password) + * @member {String} admin-email + */ + +Configure.prototype['admin-email'] = undefined; +/** + * Password (relevant only for access-type=password) + * @member {String} admin-password + */ + +Configure.prototype['admin-password'] = undefined; +/** + * Azure Active Directory ObjectId (relevant only for access-type=azure_ad) + * @member {String} azure_ad_object_id + */ + +Configure.prototype['azure_ad_object_id'] = undefined; +/** + * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert in Curl Context) + * @member {String} cert-data + */ + +Configure.prototype['cert-data'] = undefined; +/** + * GCP JWT audience + * @member {String} gcp-audience + * @default 'akeyless.io' + */ + +Configure.prototype['gcp-audience'] = 'akeyless.io'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Configure.prototype['json'] = false; +/** + * The K8S Auth config name (relevant only for access-type=k8s) + * @member {String} k8s-auth-config-name + */ + +Configure.prototype['k8s-auth-config-name'] = undefined; +/** + * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context) + * @member {String} key-data + */ + +Configure.prototype['key-data'] = undefined; +/** + * The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci) + * @member {String} oci-auth-type + * @default 'apikey' + */ + +Configure.prototype['oci-auth-type'] = 'apikey'; +/** + * A list of Oracle Cloud IDs groups (relevant only for access-type=oci) + * @member {Array.} oci-group-ocid + */ + +Configure.prototype['oci-group-ocid'] = undefined; +var _default = Configure; +exports["default"] = _default; + +/***/ }), + +/***/ 8812: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RotatorsConfigPart", ({ - enumerable: true, - get: function get() { - return _RotatorsConfigPart["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ConfigureOutput model module. + * @module model/ConfigureOutput + * @version 3.6.3 + */ +var ConfigureOutput = /*#__PURE__*/function () { + /** + * Constructs a new ConfigureOutput. + * @alias module:model/ConfigureOutput + */ + function ConfigureOutput() { + _classCallCheck(this, ConfigureOutput); + + ConfigureOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ConfigureOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ConfigureOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfigureOutput} obj Optional instance to populate. + * @return {module:model/ConfigureOutput} The populated ConfigureOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ConfigureOutput(); + + if (data.hasOwnProperty('profile')) { + obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + } + + return obj; + } + }]); + + return ConfigureOutput; +}(); +/** + * @member {String} profile + */ + + +ConfigureOutput.prototype['profile'] = undefined; +/** + * @member {String} token + */ + +ConfigureOutput.prototype['token'] = undefined; +var _default = ConfigureOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 8267: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RuleAssigner", ({ - enumerable: true, - get: function get() { - return _RuleAssigner["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Connect model module. + * @module model/Connect + * @version 3.6.3 + */ +var Connect = /*#__PURE__*/function () { + /** + * Constructs a new Connect. + * Connect is a command that performs secure remote access + * @alias module:model/Connect + */ + function Connect() { + _classCallCheck(this, Connect); + + Connect.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Connect, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Connect from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Connect} obj Optional instance to populate. + * @return {module:model/Connect} The populated Connect instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Connect(); + + if (data.hasOwnProperty('Helper')) { + obj['Helper'] = _ApiClient["default"].convertToType(data['Helper'], Object); + } + + if (data.hasOwnProperty('RcFileOverride')) { + obj['RcFileOverride'] = _ApiClient["default"].convertToType(data['RcFileOverride'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-path')) { + obj['bastion-ctrl-path'] = _ApiClient["default"].convertToType(data['bastion-ctrl-path'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-port')) { + obj['bastion-ctrl-port'] = _ApiClient["default"].convertToType(data['bastion-ctrl-port'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-proto')) { + obj['bastion-ctrl-proto'] = _ApiClient["default"].convertToType(data['bastion-ctrl-proto'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-subdomain')) { + obj['bastion-ctrl-subdomain'] = _ApiClient["default"].convertToType(data['bastion-ctrl-subdomain'], 'String'); + } + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } + + if (data.hasOwnProperty('identity-file')) { + obj['identity-file'] = _ApiClient["default"].convertToType(data['identity-file'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('justification')) { + obj['justification'] = _ApiClient["default"].convertToType(data['justification'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('ssh-command')) { + obj['ssh-command'] = _ApiClient["default"].convertToType(data['ssh-command'], 'String'); + } + + if (data.hasOwnProperty('ssh-extra-args')) { + obj['ssh-extra-args'] = _ApiClient["default"].convertToType(data['ssh-extra-args'], 'String'); + } + + if (data.hasOwnProperty('ssh-legacy-signing-alg')) { + obj['ssh-legacy-signing-alg'] = _ApiClient["default"].convertToType(data['ssh-legacy-signing-alg'], 'Boolean'); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-ssh-agent')) { + obj['use-ssh-agent'] = _ApiClient["default"].convertToType(data['use-ssh-agent'], 'Boolean'); + } + + if (data.hasOwnProperty('via-bastion')) { + obj['via-bastion'] = _ApiClient["default"].convertToType(data['via-bastion'], 'String'); + } + } + + return obj; + } + }]); + + return Connect; +}(); +/** + * @member {Object} Helper + */ + + +Connect.prototype['Helper'] = undefined; +/** + * used to override .akeyless-connect.rc in tests + * @member {String} RcFileOverride + */ + +Connect.prototype['RcFileOverride'] = undefined; +/** + * The Bastion API path + * @member {String} bastion-ctrl-path + */ + +Connect.prototype['bastion-ctrl-path'] = undefined; +/** + * The Bastion API Port + * @member {String} bastion-ctrl-port + * @default '9900' + */ + +Connect.prototype['bastion-ctrl-port'] = '9900'; +/** + * The Bastion API protocol + * @member {String} bastion-ctrl-proto + * @default 'http' + */ + +Connect.prototype['bastion-ctrl-proto'] = 'http'; +/** + * The Bastion API prefix + * @member {String} bastion-ctrl-subdomain + */ + +Connect.prototype['bastion-ctrl-subdomain'] = undefined; +/** + * The Akeyless certificate issuer name + * @member {String} cert-issuer-name + */ + +Connect.prototype['cert-issuer-name'] = undefined; +/** + * The file from which the identity (private key) for public key authentication is read + * @member {String} identity-file + */ + +Connect.prototype['identity-file'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Connect.prototype['json'] = false; +/** + * @member {String} justification + */ + +Connect.prototype['justification'] = undefined; +/** + * The Secret name (for database and AWS producers - producer name) + * @member {String} name + */ + +Connect.prototype['name'] = undefined; +/** + * Path to SSH executable. e.g. /usr/bin/ssh + * @member {String} ssh-command + */ + +Connect.prototype['ssh-command'] = undefined; +/** + * Additional SSH arguments (except -i) + * @member {String} ssh-extra-args + */ + +Connect.prototype['ssh-extra-args'] = undefined; +/** + * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the ssh certificate. + * @member {Boolean} ssh-legacy-signing-alg + * @default false + */ + +Connect.prototype['ssh-legacy-signing-alg'] = false; +/** + * The target + * @member {String} target + */ + +Connect.prototype['target'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Connect.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Connect.prototype['uid-token'] = undefined; +/** + * Enable ssh-agent + * @member {Boolean} use-ssh-agent + */ + +Connect.prototype['use-ssh-agent'] = undefined; +/** + * The jump box server + * @member {String} via-bastion + */ + +Connect.prototype['via-bastion'] = undefined; +var _default = Connect; +exports["default"] = _default; + +/***/ }), + +/***/ 18225: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Rules", ({ - enumerable: true, - get: function get() { - return _Rules["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAWSTarget model module. + * @module model/CreateAWSTarget + * @version 3.6.3 + */ +var CreateAWSTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateAWSTarget. + * @alias module:model/CreateAWSTarget + * @param accessKey {String} AWS secret access key + * @param accessKeyId {String} AWS access key ID + * @param name {String} Target name + */ + function CreateAWSTarget(accessKey, accessKeyId, name) { + _classCallCheck(this, CreateAWSTarget); + + CreateAWSTarget.initialize(this, accessKey, accessKeyId, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAWSTarget, null, [{ + key: "initialize", + value: function initialize(obj, accessKey, accessKeyId, name) { + obj['access-key'] = accessKey; + obj['access-key-id'] = accessKeyId; + obj['name'] = name; + } + /** + * Constructs a CreateAWSTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAWSTarget} obj Optional instance to populate. + * @return {module:model/CreateAWSTarget} The populated CreateAWSTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAWSTarget(); + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } + + if (data.hasOwnProperty('access-key-id')) { + obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('session-token')) { + obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateAWSTarget; +}(); +/** + * AWS secret access key + * @member {String} access-key + */ + + +CreateAWSTarget.prototype['access-key'] = undefined; +/** + * AWS access key ID + * @member {String} access-key-id + */ + +CreateAWSTarget.prototype['access-key-id'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateAWSTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateAWSTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAWSTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateAWSTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateAWSTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateAWSTarget.prototype['name'] = undefined; +/** + * AWS region + * @member {String} region + * @default 'us-east-2' + */ + +CreateAWSTarget.prototype['region'] = 'us-east-2'; +/** + * Required only for temporary security credentials retrieved using STS + * @member {String} session-token + */ + +CreateAWSTarget.prototype['session-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAWSTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAWSTarget.prototype['uid-token'] = undefined; +/** + * Use the GW's Cloud IAM + * @member {Boolean} use-gw-cloud-identity + */ + +CreateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateAWSTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 14020: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SAMLAccessRules", ({ - enumerable: true, - get: function get() { - return _SAMLAccessRules["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAWSTargetOutput model module. + * @module model/CreateAWSTargetOutput + * @version 3.6.3 + */ +var CreateAWSTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAWSTargetOutput. + * @alias module:model/CreateAWSTargetOutput + */ + function CreateAWSTargetOutput() { + _classCallCheck(this, CreateAWSTargetOutput); + + CreateAWSTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAWSTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAWSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAWSTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateAWSTargetOutput} The populated CreateAWSTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAWSTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateAWSTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateAWSTargetOutput.prototype['target_id'] = undefined; +var _default = CreateAWSTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 78942: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SAMLAttribute", ({ - enumerable: true, - get: function get() { - return _SAMLAttribute["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateArtifactoryTarget model module. + * @module model/CreateArtifactoryTarget + * @version 3.6.3 + */ +var CreateArtifactoryTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateArtifactoryTarget. + * @alias module:model/CreateArtifactoryTarget + * @param artifactoryAdminName {String} Artifactory Admin Name + * @param artifactoryAdminPwd {String} Artifactory Admin password + * @param baseUrl {String} Base URL + * @param name {String} Target name + */ + function CreateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + _classCallCheck(this, CreateArtifactoryTarget); + + CreateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateArtifactoryTarget, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + obj['artifactory-admin-name'] = artifactoryAdminName; + obj['artifactory-admin-pwd'] = artifactoryAdminPwd; + obj['base-url'] = baseUrl; + obj['name'] = name; + } + /** + * Constructs a CreateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateArtifactoryTarget} obj Optional instance to populate. + * @return {module:model/CreateArtifactoryTarget} The populated CreateArtifactoryTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateArtifactoryTarget(); + + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } + + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateArtifactoryTarget; +}(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ + + +CreateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ + +CreateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; +/** + * Base URL + * @member {String} base-url + */ + +CreateArtifactoryTarget.prototype['base-url'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateArtifactoryTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateArtifactoryTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateArtifactoryTarget.prototype['json'] = false; +/** + * The name of a key used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateArtifactoryTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateArtifactoryTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateArtifactoryTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateArtifactoryTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateArtifactoryTarget.prototype['uid-token'] = undefined; +var _default = CreateArtifactoryTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 29835: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SSHCertificateIssueDetails", ({ - enumerable: true, - get: function get() { - return _SSHCertificateIssueDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateArtifactoryTargetOutput model module. + * @module model/CreateArtifactoryTargetOutput + * @version 3.6.3 + */ +var CreateArtifactoryTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateArtifactoryTargetOutput. + * @alias module:model/CreateArtifactoryTargetOutput + */ + function CreateArtifactoryTargetOutput() { + _classCallCheck(this, CreateArtifactoryTargetOutput); + + CreateArtifactoryTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateArtifactoryTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateArtifactoryTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateArtifactoryTargetOutput} The populated CreateArtifactoryTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateArtifactoryTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateArtifactoryTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateArtifactoryTargetOutput.prototype['target_id'] = undefined; +var _default = CreateArtifactoryTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 39250: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SSHTargetDetails", ({ - enumerable: true, - get: function get() { - return _SSHTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethod model module. + * @module model/CreateAuthMethod + * @version 3.6.3 + */ +var CreateAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethod. + * @alias module:model/CreateAuthMethod + * @param name {String} Auth Method name + */ + function CreateAuthMethod(name) { + _classCallCheck(this, CreateAuthMethod); + + CreateAuthMethod.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethod} obj Optional instance to populate. + * @return {module:model/CreateAuthMethod} The populated CreateAuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethod(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethod; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethod.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethod.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethod.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethod.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethod.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethod.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethod.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethod.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethod.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethod.prototype['uid-token'] = undefined; +var _default = CreateAuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 71404: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SalesforceTargetDetails", ({ - enumerable: true, - get: function get() { - return _SalesforceTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAWSIAM model module. + * @module model/CreateAuthMethodAWSIAM + * @version 3.6.3 + */ +var CreateAuthMethodAWSIAM = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAWSIAM. + * createAuthMethodAWSIAM is a command that creates a new Auth Method that will be able to authenticate using AWS IAM credentials. + * @alias module:model/CreateAuthMethodAWSIAM + * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to + * @param name {String} Auth Method name + */ + function CreateAuthMethodAWSIAM(boundAwsAccountId, name) { + _classCallCheck(this, CreateAuthMethodAWSIAM); + + CreateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAWSIAM, null, [{ + key: "initialize", + value: function initialize(obj, boundAwsAccountId, name) { + obj['bound-aws-account-id'] = boundAwsAccountId; + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAWSIAM} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAWSIAM} The populated CreateAuthMethodAWSIAM instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAWSIAM(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-arn')) { + obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); + } + + if (data.hasOwnProperty('bound-aws-account-id')) { + obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } + + if (data.hasOwnProperty('bound-role-id')) { + obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); + } + + if (data.hasOwnProperty('bound-role-name')) { + obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); + } + + if (data.hasOwnProperty('bound-user-id')) { + obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + } + + if (data.hasOwnProperty('bound-user-name')) { + obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('sts-url')) { + obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAWSIAM; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodAWSIAM.prototype['access-expires'] = 0; +/** + * A list of full arns that the access is restricted to + * @member {Array.} bound-arn + */ + +CreateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; +/** + * A list of AWS account-IDs that the access is restricted to + * @member {Array.} bound-aws-account-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; +/** + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; +/** + * A list of full role ids that the access is restricted to + * @member {Array.} bound-role-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; +/** + * A list of full role-name that the access is restricted to + * @member {Array.} bound-role-name + */ + +CreateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; +/** + * A list of full user ids that the access is restricted to + * @member {Array.} bound-user-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; +/** + * A list of full user-name that the access is restricted to + * @member {Array.} bound-user-name + */ + +CreateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodAWSIAM.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodAWSIAM.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodAWSIAM.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodAWSIAM.prototype['product-type'] = undefined; +/** + * sts URL + * @member {String} sts-url + * @default 'https://sts.amazonaws.com' + */ + +CreateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodAWSIAM.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodAWSIAM.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodAWSIAM; +exports["default"] = _default; + +/***/ }), + +/***/ 75469: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SecretInfo", ({ - enumerable: true, - get: function get() { - return _SecretInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAWSIAMOutput model module. + * @module model/CreateAuthMethodAWSIAMOutput + * @version 3.6.3 + */ +var CreateAuthMethodAWSIAMOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAWSIAMOutput. + * @alias module:model/CreateAuthMethodAWSIAMOutput + */ + function CreateAuthMethodAWSIAMOutput() { + _classCallCheck(this, CreateAuthMethodAWSIAMOutput); + + CreateAuthMethodAWSIAMOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAWSIAMOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodAWSIAMOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAWSIAMOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAWSIAMOutput} The populated CreateAuthMethodAWSIAMOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAWSIAMOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAWSIAMOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodAWSIAMOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodAWSIAMOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 27202: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SecureRemoteAccess", ({ - enumerable: true, - get: function get() { - return _SecureRemoteAccess["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAzureAD model module. + * @module model/CreateAuthMethodAzureAD + * @version 3.6.3 + */ +var CreateAuthMethodAzureAD = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAzureAD. + * createAuthMethodAzureAD is a command that creates a new auth method that will be able to authenticate using Azure Active Directory credentials. + * @alias module:model/CreateAuthMethodAzureAD + * @param boundTenantId {String} The Azure tenant id that the access is restricted to + * @param name {String} Auth Method name + */ + function CreateAuthMethodAzureAD(boundTenantId, name) { + _classCallCheck(this, CreateAuthMethodAzureAD); + + CreateAuthMethodAzureAD.initialize(this, boundTenantId, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAzureAD, null, [{ + key: "initialize", + value: function initialize(obj, boundTenantId, name) { + obj['bound-tenant-id'] = boundTenantId; + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAzureAD} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAzureAD} The populated CreateAuthMethodAzureAD instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAzureAD(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-group-id')) { + obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-providers')) { + obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-names')) { + obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-types')) { + obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); + } + + if (data.hasOwnProperty('bound-rg-id')) { + obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); + } + + if (data.hasOwnProperty('bound-spid')) { + obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); + } + + if (data.hasOwnProperty('bound-sub-id')) { + obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); + } + + if (data.hasOwnProperty('bound-tenant-id')) { + obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAzureAD; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodAzureAD.prototype['access-expires'] = 0; +/** + * Deprecated (Deprecated) The audience in the JWT + * @member {String} audience + * @default 'https://management.azure.com/' + */ + +CreateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; +/** + * A list of group ids that the access is restricted to + * @member {Array.} bound-group-id + */ + +CreateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodAzureAD.prototype['bound-ips'] = undefined; +/** + * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) + * @member {Array.} bound-providers + */ + +CreateAuthMethodAzureAD.prototype['bound-providers'] = undefined; +/** + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id + */ + +CreateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; +/** + * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). + * @member {Array.} bound-resource-names + */ + +CreateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; +/** + * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) + * @member {Array.} bound-resource-types + */ + +CreateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; +/** + * A list of resource groups that the access is restricted to + * @member {Array.} bound-rg-id + */ + +CreateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; +/** + * A list of service principal IDs that the access is restricted to + * @member {Array.} bound-spid + */ + +CreateAuthMethodAzureAD.prototype['bound-spid'] = undefined; +/** + * A list of subscription ids that the access is restricted to + * @member {Array.} bound-sub-id + */ + +CreateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; +/** + * The Azure tenant id that the access is restricted to + * @member {String} bound-tenant-id + */ + +CreateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodAzureAD.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + * @default 'https://sts.windows.net/---bound_tenant_id---' + */ + +CreateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodAzureAD.prototype['json'] = false; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'https://login.microsoftonline.com/common/discovery/keys' + */ + +CreateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodAzureAD.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodAzureAD.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodAzureAD.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodAzureAD.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodAzureAD; +exports["default"] = _default; + +/***/ }), + +/***/ 23911: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ServerInventoryMigration", ({ - enumerable: true, - get: function get() { - return _ServerInventoryMigration["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAzureADOutput model module. + * @module model/CreateAuthMethodAzureADOutput + * @version 3.6.3 + */ +var CreateAuthMethodAzureADOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAzureADOutput. + * @alias module:model/CreateAuthMethodAzureADOutput + */ + function CreateAuthMethodAzureADOutput() { + _classCallCheck(this, CreateAuthMethodAzureADOutput); + + CreateAuthMethodAzureADOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAzureADOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodAzureADOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAzureADOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAzureADOutput} The populated CreateAuthMethodAzureADOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAzureADOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAzureADOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodAzureADOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodAzureADOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 89732: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ServerInventoryPayload", ({ - enumerable: true, - get: function get() { - return _ServerInventoryPayload["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodCert model module. + * @module model/CreateAuthMethodCert + * @version 3.6.3 + */ +var CreateAuthMethodCert = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodCert. + * createAuthMethodCert is a command that creates a new auth method that will be able to authenticate using a client certificae + * @alias module:model/CreateAuthMethodCert + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodCert(name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodCert); + + CreateAuthMethodCert.initialize(this, name, uniqueIdentifier); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodCert, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodCert} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodCert} The populated CreateAuthMethodCert instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodCert(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('allowed-cors')) { + obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); + } + + if (data.hasOwnProperty('bound-common-names')) { + obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); + } + + if (data.hasOwnProperty('bound-dns-sans')) { + obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); + } + + if (data.hasOwnProperty('bound-email-sans')) { + obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); + } + + if (data.hasOwnProperty('bound-extensions')) { + obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-organizational-units')) { + obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); + } + + if (data.hasOwnProperty('bound-uri-sans')) { + obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); + } + + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('revoked-cert-ids')) { + obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodCert; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodCert.prototype['access-expires'] = 0; +/** + * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. + * @member {String} allowed-cors + */ + +CreateAuthMethodCert.prototype['allowed-cors'] = undefined; +/** + * A list of names. At least one must exist in the Common Name. Supports globbing. + * @member {Array.} bound-common-names + */ + +CreateAuthMethodCert.prototype['bound-common-names'] = undefined; +/** + * A list of DNS names. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-dns-sans + */ + +CreateAuthMethodCert.prototype['bound-dns-sans'] = undefined; +/** + * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-email-sans + */ + +CreateAuthMethodCert.prototype['bound-email-sans'] = undefined; +/** + * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". + * @member {Array.} bound-extensions + */ + +CreateAuthMethodCert.prototype['bound-extensions'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodCert.prototype['bound-ips'] = undefined; +/** + * A list of Organizational Units names. At least one must exist in the OU field. + * @member {Array.} bound-organizational-units + */ + +CreateAuthMethodCert.prototype['bound-organizational-units'] = undefined; +/** + * A list of URIs. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-uri-sans + */ + +CreateAuthMethodCert.prototype['bound-uri-sans'] = undefined; +/** + * The certificate data in base64, if no file was provided + * @member {String} certificate-data + */ + +CreateAuthMethodCert.prototype['certificate-data'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodCert.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodCert.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodCert.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodCert.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodCert.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodCert.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodCert.prototype['product-type'] = undefined; +/** + * A list of revoked cert ids + * @member {Array.} revoked-cert-ids + */ + +CreateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodCert.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodCert.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodCert.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodCert; +exports["default"] = _default; + +/***/ }), + +/***/ 78805: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SetItemState", ({ - enumerable: true, - get: function get() { - return _SetItemState["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodCertOutput model module. + * @module model/CreateAuthMethodCertOutput + * @version 3.6.3 + */ +var CreateAuthMethodCertOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodCertOutput. + * @alias module:model/CreateAuthMethodCertOutput + */ + function CreateAuthMethodCertOutput() { + _classCallCheck(this, CreateAuthMethodCertOutput); + + CreateAuthMethodCertOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodCertOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodCertOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodCertOutput} The populated CreateAuthMethodCertOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodCertOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodCertOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodCertOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodCertOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 46288: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SetRoleRule", ({ - enumerable: true, - get: function get() { - return _SetRoleRule["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodEmail model module. + * @module model/CreateAuthMethodEmail + * @version 3.6.3 + */ +var CreateAuthMethodEmail = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodEmail. + * createAuthMethodEmail is a command that creates a new auth method that will be able to authenticate using email. + * @alias module:model/CreateAuthMethodEmail + * @param email {String} An email address to be invited to have access + * @param name {String} Auth Method name + */ + function CreateAuthMethodEmail(email, name) { + _classCallCheck(this, CreateAuthMethodEmail); + + CreateAuthMethodEmail.initialize(this, email, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodEmail, null, [{ + key: "initialize", + value: function initialize(obj, email, name) { + obj['email'] = email; + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodEmail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodEmail} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodEmail} The populated CreateAuthMethodEmail instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodEmail(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodEmail; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodEmail.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodEmail.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodEmail.prototype['description'] = undefined; +/** + * An email address to be invited to have access + * @member {String} email + */ + +CreateAuthMethodEmail.prototype['email'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodEmail.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodEmail.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodEmail.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodEmail.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodEmail.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodEmail.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodEmail.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodEmail.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodEmail; +exports["default"] = _default; + +/***/ }), + +/***/ 60729: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ShareItem", ({ - enumerable: true, - get: function get() { - return _ShareItem["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodEmailOutput model module. + * @module model/CreateAuthMethodEmailOutput + * @version 3.6.3 + */ +var CreateAuthMethodEmailOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodEmailOutput. + * @alias module:model/CreateAuthMethodEmailOutput + */ + function CreateAuthMethodEmailOutput() { + _classCallCheck(this, CreateAuthMethodEmailOutput); + + CreateAuthMethodEmailOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodEmailOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodEmailOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodEmailOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodEmailOutput} The populated CreateAuthMethodEmailOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodEmailOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodEmailOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodEmailOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodEmailOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 90506: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SharingPolicyInfo", ({ - enumerable: true, - get: function get() { - return _SharingPolicyInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodGCP model module. + * @module model/CreateAuthMethodGCP + * @version 3.6.3 + */ +var CreateAuthMethodGCP = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodGCP. + * createAuthMethodGCP is a command that creates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. + * @alias module:model/CreateAuthMethodGCP + * @param audience {String} The audience to verify in the JWT received by the client + * @param name {String} Auth Method name + * @param type {String} Type of the GCP Access Rules + */ + function CreateAuthMethodGCP(audience, name, type) { + _classCallCheck(this, CreateAuthMethodGCP); + + CreateAuthMethodGCP.initialize(this, audience, name, type); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodGCP, null, [{ + key: "initialize", + value: function initialize(obj, audience, name, type) { + obj['audience'] = audience; + obj['name'] = name; + obj['type'] = type; + } + /** + * Constructs a CreateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodGCP} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodGCP} The populated CreateAuthMethodGCP instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodGCP(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-labels')) { + obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); + } + + if (data.hasOwnProperty('bound-projects')) { + obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); + } + + if (data.hasOwnProperty('bound-regions')) { + obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); + } + + if (data.hasOwnProperty('bound-service-accounts')) { + obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); + } + + if (data.hasOwnProperty('bound-zones')) { + obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('service-account-creds-data')) { + obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodGCP; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodGCP.prototype['access-expires'] = 0; +/** + * The audience to verify in the JWT received by the client + * @member {String} audience + * @default 'akeyless.io' + */ + +CreateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodGCP.prototype['bound-ips'] = undefined; +/** + * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... + * @member {Array.} bound-labels + */ + +CreateAuthMethodGCP.prototype['bound-labels'] = undefined; +/** + * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. + * @member {Array.} bound-projects + */ + +CreateAuthMethodGCP.prototype['bound-projects'] = undefined; +/** + * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. + * @member {Array.} bound-regions + */ + +CreateAuthMethodGCP.prototype['bound-regions'] = undefined; +/** + * List of service accounts the service account must be part of in order to be authenticated. + * @member {Array.} bound-service-accounts + */ + +CreateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; +/** + * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. + * @member {Array.} bound-zones + */ + +CreateAuthMethodGCP.prototype['bound-zones'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodGCP.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodGCP.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodGCP.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodGCP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodGCP.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodGCP.prototype['product-type'] = undefined; +/** + * ServiceAccount credentials data instead of giving a file path, base64 encoded + * @member {String} service-account-creds-data + */ + +CreateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodGCP.prototype['token'] = undefined; +/** + * Type of the GCP Access Rules + * @member {String} type + */ + +CreateAuthMethodGCP.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodGCP.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodGCP; +exports["default"] = _default; + +/***/ }), + +/***/ 87807: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignDataWithClassicKey", ({ - enumerable: true, - get: function get() { - return _SignDataWithClassicKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodGCPOutput model module. + * @module model/CreateAuthMethodGCPOutput + * @version 3.6.3 + */ +var CreateAuthMethodGCPOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodGCPOutput. + * @alias module:model/CreateAuthMethodGCPOutput + */ + function CreateAuthMethodGCPOutput() { + _classCallCheck(this, CreateAuthMethodGCPOutput); + + CreateAuthMethodGCPOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodGCPOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodGCPOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodGCPOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodGCPOutput} The populated CreateAuthMethodGCPOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodGCPOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodGCPOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodGCPOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodGCPOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 49339: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignGPG", ({ - enumerable: true, - get: function get() { - return _SignGPG["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodHuawei model module. + * @module model/CreateAuthMethodHuawei + * @version 3.6.3 + */ +var CreateAuthMethodHuawei = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodHuawei. + * createAuthMethodHuawei is a command that creates a new auth method that will be able to authenticate using Huawei credentials. + * @alias module:model/CreateAuthMethodHuawei + * @param name {String} Auth Method name + */ + function CreateAuthMethodHuawei(name) { + _classCallCheck(this, CreateAuthMethodHuawei); + + CreateAuthMethodHuawei.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodHuawei, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodHuawei from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodHuawei} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodHuawei} The populated CreateAuthMethodHuawei instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodHuawei(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('auth-url')) { + obj['auth-url'] = _ApiClient["default"].convertToType(data['auth-url'], 'String'); + } + + if (data.hasOwnProperty('bound-domain-id')) { + obj['bound-domain-id'] = _ApiClient["default"].convertToType(data['bound-domain-id'], ['String']); + } + + if (data.hasOwnProperty('bound-domain-name')) { + obj['bound-domain-name'] = _ApiClient["default"].convertToType(data['bound-domain-name'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-tenant-id')) { + obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], ['String']); + } + + if (data.hasOwnProperty('bound-tenant-name')) { + obj['bound-tenant-name'] = _ApiClient["default"].convertToType(data['bound-tenant-name'], ['String']); + } + + if (data.hasOwnProperty('bound-user-id')) { + obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + } + + if (data.hasOwnProperty('bound-user-name')) { + obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodHuawei; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodHuawei.prototype['access-expires'] = 0; +/** + * sts URL + * @member {String} auth-url + * @default 'https://iam.myhwclouds.com:443/v3' + */ + +CreateAuthMethodHuawei.prototype['auth-url'] = 'https://iam.myhwclouds.com:443/v3'; +/** + * A list of domain IDs that the access is restricted to + * @member {Array.} bound-domain-id + */ + +CreateAuthMethodHuawei.prototype['bound-domain-id'] = undefined; +/** + * A list of domain names that the access is restricted to + * @member {Array.} bound-domain-name + */ + +CreateAuthMethodHuawei.prototype['bound-domain-name'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodHuawei.prototype['bound-ips'] = undefined; +/** + * A list of full tenant ids that the access is restricted to + * @member {Array.} bound-tenant-id + */ + +CreateAuthMethodHuawei.prototype['bound-tenant-id'] = undefined; +/** + * A list of full tenant names that the access is restricted to + * @member {Array.} bound-tenant-name + */ + +CreateAuthMethodHuawei.prototype['bound-tenant-name'] = undefined; +/** + * A list of full user ids that the access is restricted to + * @member {Array.} bound-user-id + */ + +CreateAuthMethodHuawei.prototype['bound-user-id'] = undefined; +/** + * A list of full user-name that the access is restricted to + * @member {Array.} bound-user-name + */ + +CreateAuthMethodHuawei.prototype['bound-user-name'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodHuawei.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodHuawei.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodHuawei.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodHuawei.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodHuawei.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodHuawei.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodHuawei.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodHuawei.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodHuawei.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodHuawei; +exports["default"] = _default; + +/***/ }), + +/***/ 41018: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignGPGOutput", ({ - enumerable: true, - get: function get() { - return _SignGPGOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodHuaweiOutput model module. + * @module model/CreateAuthMethodHuaweiOutput + * @version 3.6.3 + */ +var CreateAuthMethodHuaweiOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodHuaweiOutput. + * @alias module:model/CreateAuthMethodHuaweiOutput + */ + function CreateAuthMethodHuaweiOutput() { + _classCallCheck(this, CreateAuthMethodHuaweiOutput); + + CreateAuthMethodHuaweiOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodHuaweiOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodHuaweiOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodHuaweiOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodHuaweiOutput} The populated CreateAuthMethodHuaweiOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodHuaweiOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodHuaweiOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodHuaweiOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodHuaweiOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 83464: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignJWTOutput", ({ - enumerable: true, - get: function get() { - return _SignJWTOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodK8S model module. + * @module model/CreateAuthMethodK8S + * @version 3.6.3 + */ +var CreateAuthMethodK8S = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodK8S. + * createAuthMethodK8S is a command that creates a new auth method that will be able to authenticate using K8S. + * @alias module:model/CreateAuthMethodK8S + * @param name {String} Auth Method name + */ + function CreateAuthMethodK8S(name) { + _classCallCheck(this, CreateAuthMethodK8S); + + CreateAuthMethodK8S.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodK8S, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodK8S} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodK8S} The populated CreateAuthMethodK8S instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodK8S(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-namespaces')) { + obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); + } + + if (data.hasOwnProperty('bound-pod-names')) { + obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); + } + + if (data.hasOwnProperty('bound-sa-names')) { + obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('public-key')) { + obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodK8S; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodK8S.prototype['access-expires'] = 0; +/** + * The audience in the Kubernetes JWT that the access is restricted to + * @member {String} audience + */ + +CreateAuthMethodK8S.prototype['audience'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodK8S.prototype['bound-ips'] = undefined; +/** + * A list of namespaces that the access is restricted to + * @member {Array.} bound-namespaces + */ + +CreateAuthMethodK8S.prototype['bound-namespaces'] = undefined; +/** + * A list of pod names that the access is restricted to + * @member {Array.} bound-pod-names + */ + +CreateAuthMethodK8S.prototype['bound-pod-names'] = undefined; +/** + * A list of service account names that the access is restricted to + * @member {Array.} bound-sa-names + */ + +CreateAuthMethodK8S.prototype['bound-sa-names'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodK8S.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodK8S.prototype['force-sub-claims'] = undefined; +/** + * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key + * @default 'true' + */ + +CreateAuthMethodK8S.prototype['gen-key'] = 'true'; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodK8S.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodK8S.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodK8S.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodK8S.prototype['product-type'] = undefined; +/** + * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] + * @member {String} public-key + */ + +CreateAuthMethodK8S.prototype['public-key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodK8S.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodK8S.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodK8S; +exports["default"] = _default; + +/***/ }), + +/***/ 54273: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignJWTWithClassicKey", ({ - enumerable: true, - get: function get() { - return _SignJWTWithClassicKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodK8SOutput model module. + * @module model/CreateAuthMethodK8SOutput + * @version 3.6.3 + */ +var CreateAuthMethodK8SOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodK8SOutput. + * @alias module:model/CreateAuthMethodK8SOutput + */ + function CreateAuthMethodK8SOutput() { + _classCallCheck(this, CreateAuthMethodK8SOutput); + + CreateAuthMethodK8SOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodK8SOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodK8SOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodK8SOutput} The populated CreateAuthMethodK8SOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodK8SOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodK8SOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodK8SOutput.prototype['access_id'] = undefined; +/** + * @member {String} prv_key + */ + +CreateAuthMethodK8SOutput.prototype['prv_key'] = undefined; +var _default = CreateAuthMethodK8SOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 31711: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignOutput", ({ - enumerable: true, - get: function get() { - return _SignOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodLDAP model module. + * @module model/CreateAuthMethodLDAP + * @version 3.6.3 + */ +var CreateAuthMethodLDAP = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodLDAP. + * createAuthMethodLDAP is a command that creates a new auth method that will be able to authenticate using LDAP. + * @alias module:model/CreateAuthMethodLDAP + * @param name {String} Auth Method name + */ + function CreateAuthMethodLDAP(name) { + _classCallCheck(this, CreateAuthMethodLDAP); + + CreateAuthMethodLDAP.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodLDAP, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodLDAP} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodLDAP} The populated CreateAuthMethodLDAP instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodLDAP(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('public-key-data')) { + obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodLDAP; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodLDAP.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodLDAP.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodLDAP.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; +/** + * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key + * @default 'true' + */ + +CreateAuthMethodLDAP.prototype['gen-key'] = 'true'; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodLDAP.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodLDAP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodLDAP.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodLDAP.prototype['product-type'] = undefined; +/** + * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] + * @member {String} public-key-data + */ + +CreateAuthMethodLDAP.prototype['public-key-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodLDAP.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodLDAP.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + * @default 'users' + */ + +CreateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; +var _default = CreateAuthMethodLDAP; +exports["default"] = _default; + +/***/ }), + +/***/ 87942: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignPKCS1", ({ - enumerable: true, - get: function get() { - return _SignPKCS["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodLDAPOutput model module. + * @module model/CreateAuthMethodLDAPOutput + * @version 3.6.3 + */ +var CreateAuthMethodLDAPOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodLDAPOutput. + * @alias module:model/CreateAuthMethodLDAPOutput + */ + function CreateAuthMethodLDAPOutput() { + _classCallCheck(this, CreateAuthMethodLDAPOutput); + + CreateAuthMethodLDAPOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodLDAPOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodLDAPOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodLDAPOutput} The populated CreateAuthMethodLDAPOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodLDAPOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodLDAPOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodLDAPOutput.prototype['access_id'] = undefined; +/** + * @member {String} prv_key + */ + +CreateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; +var _default = CreateAuthMethodLDAPOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 36129: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignPKCS1Output", ({ - enumerable: true, - get: function get() { - return _SignPKCS1Output["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOAuth2 model module. + * @module model/CreateAuthMethodOAuth2 + * @version 3.6.3 + */ +var CreateAuthMethodOAuth2 = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOAuth2. + * createAuthMethodOAuth2 is a command that creates a new auth method that will be able to authenticate using Oauth2. + * @alias module:model/CreateAuthMethodOAuth2 + * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodOAuth2); + + CreateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOAuth2, null, [{ + key: "initialize", + value: function initialize(obj, jwksUri, name, uniqueIdentifier) { + obj['jwks-uri'] = jwksUri; + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOAuth2} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOAuth2} The populated CreateAuthMethodOAuth2 instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOAuth2(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-client-ids')) { + obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('cert')) { + obj['cert'] = _ApiClient["default"].convertToType(data['cert'], 'String'); + } + + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gateway-url')) { + obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwks-json-data')) { + obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); + } + + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOAuth2; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodOAuth2.prototype['access-expires'] = 0; +/** + * The audience in the JWT + * @member {String} audience + */ + +CreateAuthMethodOAuth2.prototype['audience'] = undefined; +/** + * The clients ids that the access is restricted to + * @member {Array.} bound-client-ids + */ + +CreateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodOAuth2.prototype['bound-ips'] = undefined; +/** + * CertificateFile Path to a file that contain the certificate in a PEM format. + * @member {String} cert + */ + +CreateAuthMethodOAuth2.prototype['cert'] = undefined; +/** + * CertificateFileData PEM Certificate in a Base64 format. + * @member {String} cert-file-data + */ + +CreateAuthMethodOAuth2.prototype['cert-file-data'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodOAuth2.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; +/** + * Akeyless Gateway URL (Configuration Management port). Relevant only when the jwks-uri is accessible only from the gateway. + * @member {String} gateway-url + */ + +CreateAuthMethodOAuth2.prototype['gateway-url'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +CreateAuthMethodOAuth2.prototype['issuer'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodOAuth2.prototype['json'] = false; +/** + * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string + * @member {String} jwks-json-data + */ + +CreateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'default_jwks_url' + */ + +CreateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodOAuth2.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodOAuth2.prototype['product-type'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +CreateAuthMethodOAuth2.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodOAuth2.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodOAuth2.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodOAuth2; +exports["default"] = _default; + +/***/ }), + +/***/ 57876: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignPKICertOutput", ({ - enumerable: true, - get: function get() { - return _SignPKICertOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOAuth2Output model module. + * @module model/CreateAuthMethodOAuth2Output + * @version 3.6.3 + */ +var CreateAuthMethodOAuth2Output = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOAuth2Output. + * @alias module:model/CreateAuthMethodOAuth2Output + */ + function CreateAuthMethodOAuth2Output() { + _classCallCheck(this, CreateAuthMethodOAuth2Output); + + CreateAuthMethodOAuth2Output.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOAuth2Output, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOAuth2Output from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOAuth2Output} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOAuth2Output} The populated CreateAuthMethodOAuth2Output instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOAuth2Output(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOAuth2Output; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOAuth2Output.prototype['access_id'] = undefined; +var _default = CreateAuthMethodOAuth2Output; +exports["default"] = _default; + +/***/ }), + +/***/ 79097: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SignPKICertWithClassicKey", ({ - enumerable: true, - get: function get() { - return _SignPKICertWithClassicKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOCI model module. + * @module model/CreateAuthMethodOCI + * @version 3.6.3 + */ +var CreateAuthMethodOCI = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOCI. + * createAuthMethodOCI is a command that Creates a new Oracle Auth Method that will be used in the account using OCI principle and groups. + * @alias module:model/CreateAuthMethodOCI + * @param groupOcid {Array.} A list of required groups ocids + * @param name {String} Auth Method name + * @param tenantOcid {String} The Oracle Cloud tenant ID + */ + function CreateAuthMethodOCI(groupOcid, name, tenantOcid) { + _classCallCheck(this, CreateAuthMethodOCI); + + CreateAuthMethodOCI.initialize(this, groupOcid, name, tenantOcid); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOCI, null, [{ + key: "initialize", + value: function initialize(obj, groupOcid, name, tenantOcid) { + obj['group-ocid'] = groupOcid; + obj['name'] = name; + obj['tenant-ocid'] = tenantOcid; + } + /** + * Constructs a CreateAuthMethodOCI from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOCI} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOCI} The populated CreateAuthMethodOCI instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOCI(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('group-ocid')) { + obj['group-ocid'] = _ApiClient["default"].convertToType(data['group-ocid'], ['String']); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('tenant-ocid')) { + obj['tenant-ocid'] = _ApiClient["default"].convertToType(data['tenant-ocid'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOCI; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodOCI.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodOCI.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodOCI.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodOCI.prototype['force-sub-claims'] = undefined; +/** + * A list of required groups ocids + * @member {Array.} group-ocid + */ + +CreateAuthMethodOCI.prototype['group-ocid'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodOCI.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodOCI.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodOCI.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodOCI.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodOCI.prototype['product-type'] = undefined; +/** + * The Oracle Cloud tenant ID + * @member {String} tenant-ocid + */ + +CreateAuthMethodOCI.prototype['tenant-ocid'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodOCI.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodOCI.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodOCI; +exports["default"] = _default; + +/***/ }), + +/***/ 63868: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SmInfo", ({ - enumerable: true, - get: function get() { - return _SmInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOCIOutput model module. + * @module model/CreateAuthMethodOCIOutput + * @version 3.6.3 + */ +var CreateAuthMethodOCIOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOCIOutput. + * @alias module:model/CreateAuthMethodOCIOutput + */ + function CreateAuthMethodOCIOutput() { + _classCallCheck(this, CreateAuthMethodOCIOutput); + + CreateAuthMethodOCIOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOCIOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOCIOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOCIOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOCIOutput} The populated CreateAuthMethodOCIOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOCIOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOCIOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOCIOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodOCIOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 14043: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SplunkLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _SplunkLogForwardingConfig["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOIDC model module. + * @module model/CreateAuthMethodOIDC + * @version 3.6.3 + */ +var CreateAuthMethodOIDC = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOIDC. + * createAuthMethodOIDC is a command that creates a new auth method that will be available to authenticate using OIDC. + * @alias module:model/CreateAuthMethodOIDC + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodOIDC(name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodOIDC); + + CreateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOIDC, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOIDC} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOIDC} The populated CreateAuthMethodOIDC instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOIDC(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('required-scopes')) { + obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); + } + + if (data.hasOwnProperty('required-scopes-prefix')) { + obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOIDC; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodOIDC.prototype['access-expires'] = 0; +/** + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri + */ + +CreateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; +/** + * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application + * @member {String} audience + */ + +CreateAuthMethodOIDC.prototype['audience'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodOIDC.prototype['bound-ips'] = undefined; +/** + * Client ID + * @member {String} client-id + */ + +CreateAuthMethodOIDC.prototype['client-id'] = undefined; +/** + * Client Secret + * @member {String} client-secret + */ + +CreateAuthMethodOIDC.prototype['client-secret'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodOIDC.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +CreateAuthMethodOIDC.prototype['issuer'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodOIDC.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodOIDC.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodOIDC.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodOIDC.prototype['product-type'] = undefined; +/** + * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve + * @member {Array.} required-scopes + */ + +CreateAuthMethodOIDC.prototype['required-scopes'] = undefined; +/** + * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) + * @member {String} required-scopes-prefix + */ + +CreateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +CreateAuthMethodOIDC.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodOIDC.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodOIDC.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodOIDC.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodOIDC; +exports["default"] = _default; + +/***/ }), + +/***/ 51290: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SraInfo", ({ - enumerable: true, - get: function get() { - return _SraInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOIDCOutput model module. + * @module model/CreateAuthMethodOIDCOutput + * @version 3.6.3 + */ +var CreateAuthMethodOIDCOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOIDCOutput. + * @alias module:model/CreateAuthMethodOIDCOutput + */ + function CreateAuthMethodOIDCOutput() { + _classCallCheck(this, CreateAuthMethodOIDCOutput); + + CreateAuthMethodOIDCOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOIDCOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOIDCOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOIDCOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOIDCOutput} The populated CreateAuthMethodOIDCOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOIDCOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOIDCOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOIDCOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodOIDCOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 49207: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "StaticCredsAuth", ({ - enumerable: true, - get: function get() { - return _StaticCredsAuth["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOutput model module. + * @module model/CreateAuthMethodOutput + * @version 3.6.3 + */ +var CreateAuthMethodOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOutput. + * @alias module:model/CreateAuthMethodOutput + */ + function CreateAuthMethodOutput() { + _classCallCheck(this, CreateAuthMethodOutput); + + CreateAuthMethodOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOutput} The populated CreateAuthMethodOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_key')) { + obj['access_key'] = _ApiClient["default"].convertToType(data['access_key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOutput.prototype['access_id'] = undefined; +/** + * @member {String} access_key + */ + +CreateAuthMethodOutput.prototype['access_key'] = undefined; +/** + * @member {String} name + */ + +CreateAuthMethodOutput.prototype['name'] = undefined; +var _default = CreateAuthMethodOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 4907: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "StaticCredsAuthOutput", ({ - enumerable: true, - get: function get() { - return _StaticCredsAuthOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodSAML model module. + * @module model/CreateAuthMethodSAML + * @version 3.6.3 + */ +var CreateAuthMethodSAML = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodSAML. + * createAuthMethodSAML is a command that creates a new auth method that will be available to authenticate using SAML. + * @alias module:model/CreateAuthMethodSAML + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodSAML(name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodSAML); + + CreateAuthMethodSAML.initialize(this, name, uniqueIdentifier); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodSAML, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodSAML} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodSAML} The populated CreateAuthMethodSAML instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodSAML(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('idp-metadata-url')) { + obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); + } + + if (data.hasOwnProperty('idp-metadata-xml-data')) { + obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodSAML; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodSAML.prototype['access-expires'] = 0; +/** + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri + */ + +CreateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodSAML.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodSAML.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodSAML.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; +/** + * IDP metadata url + * @member {String} idp-metadata-url + */ + +CreateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; +/** + * IDP metadata xml data + * @member {String} idp-metadata-xml-data + */ + +CreateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodSAML.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodSAML.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodSAML.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodSAML.prototype['product-type'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +CreateAuthMethodSAML.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodSAML.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodSAML.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodSAML.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodSAML; +exports["default"] = _default; + +/***/ }), + +/***/ 37610: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "StaticSecretDetailsInfo", ({ - enumerable: true, - get: function get() { - return _StaticSecretDetailsInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodSAMLOutput model module. + * @module model/CreateAuthMethodSAMLOutput + * @version 3.6.3 + */ +var CreateAuthMethodSAMLOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodSAMLOutput. + * @alias module:model/CreateAuthMethodSAMLOutput + */ + function CreateAuthMethodSAMLOutput() { + _classCallCheck(this, CreateAuthMethodSAMLOutput); + + CreateAuthMethodSAMLOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodSAMLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodSAMLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodSAMLOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodSAMLOutput} The populated CreateAuthMethodSAMLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodSAMLOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodSAMLOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodSAMLOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodSAMLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 89147: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SumologicLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _SumologicLogForwardingConfig["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodUniversalIdentity model module. + * @module model/CreateAuthMethodUniversalIdentity + * @version 3.6.3 + */ +var CreateAuthMethodUniversalIdentity = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodUniversalIdentity. + * createAuthMethodUniversalIdentity is a command that creates a new auth method that will be able to authenticate using Akeyless Universal Identity. + * @alias module:model/CreateAuthMethodUniversalIdentity + * @param name {String} Auth Method name + */ + function CreateAuthMethodUniversalIdentity(name) { + _classCallCheck(this, CreateAuthMethodUniversalIdentity); + + CreateAuthMethodUniversalIdentity.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodUniversalIdentity, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodUniversalIdentity} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodUniversalIdentity} The populated CreateAuthMethodUniversalIdentity instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodUniversalIdentity(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('deny-inheritance')) { + obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); + } + + if (data.hasOwnProperty('deny-rotate')) { + obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodUniversalIdentity; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; +/** + * Deny from root to create children + * @member {Boolean} deny-inheritance + */ + +CreateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; +/** + * Deny from the token to rotate + * @member {Boolean} deny-rotate + */ + +CreateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodUniversalIdentity.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodUniversalIdentity.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodUniversalIdentity.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodUniversalIdentity.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodUniversalIdentity.prototype['token'] = undefined; +/** + * Token ttl + * @member {Number} ttl + * @default 60 + */ + +CreateAuthMethodUniversalIdentity.prototype['ttl'] = 60; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodUniversalIdentity; +exports["default"] = _default; + +/***/ }), + +/***/ 58362: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SyslogLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _SyslogLogForwardingConfig["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodUniversalIdentityOutput model module. + * @module model/CreateAuthMethodUniversalIdentityOutput + * @version 3.6.3 + */ +var CreateAuthMethodUniversalIdentityOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodUniversalIdentityOutput. + * @alias module:model/CreateAuthMethodUniversalIdentityOutput + */ + function CreateAuthMethodUniversalIdentityOutput() { + _classCallCheck(this, CreateAuthMethodUniversalIdentityOutput); + + CreateAuthMethodUniversalIdentityOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodUniversalIdentityOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodUniversalIdentityOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodUniversalIdentityOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodUniversalIdentityOutput} The populated CreateAuthMethodUniversalIdentityOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodUniversalIdentityOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodUniversalIdentityOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodUniversalIdentityOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodUniversalIdentityOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 6519: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SystemAccessCredentialsReplyObj", ({ - enumerable: true, - get: function get() { - return _SystemAccessCredentialsReplyObj["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAzureTarget model module. + * @module model/CreateAzureTarget + * @version 3.6.3 + */ +var CreateAzureTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateAzureTarget. + * @alias module:model/CreateAzureTarget + * @param name {String} Target name + */ + function CreateAzureTarget(name) { + _classCallCheck(this, CreateAzureTarget); + + CreateAzureTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAzureTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAzureTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAzureTarget} obj Optional instance to populate. + * @return {module:model/CreateAzureTarget} The populated CreateAzureTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAzureTarget(); + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('resource-group-name')) { + obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); + } + + if (data.hasOwnProperty('resource-name')) { + obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); + } + + if (data.hasOwnProperty('subscription-id')) { + obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); + } + + if (data.hasOwnProperty('tenant-id')) { + obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateAzureTarget; +}(); +/** + * @member {String} client-id + */ + + +CreateAzureTarget.prototype['client-id'] = undefined; +/** + * @member {String} client-secret + */ + +CreateAzureTarget.prototype['client-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateAzureTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateAzureTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAzureTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateAzureTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateAzureTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateAzureTarget.prototype['name'] = undefined; +/** + * The Resource Group name in your Azure subscription + * @member {String} resource-group-name + */ + +CreateAzureTarget.prototype['resource-group-name'] = undefined; +/** + * The name of the relevant Resource + * @member {String} resource-name + */ + +CreateAzureTarget.prototype['resource-name'] = undefined; +/** + * Azure Subscription Id + * @member {String} subscription-id + */ + +CreateAzureTarget.prototype['subscription-id'] = undefined; +/** + * @member {String} tenant-id + */ + +CreateAzureTarget.prototype['tenant-id'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAzureTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAzureTarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateAzureTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 44078: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SystemAccessCredsSettings", ({ - enumerable: true, - get: function get() { - return _SystemAccessCredsSettings["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAzureTargetOutput model module. + * @module model/CreateAzureTargetOutput + * @version 3.6.3 + */ +var CreateAzureTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAzureTargetOutput. + * @alias module:model/CreateAzureTargetOutput + */ + function CreateAzureTargetOutput() { + _classCallCheck(this, CreateAzureTargetOutput); + + CreateAzureTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAzureTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAzureTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateAzureTargetOutput} The populated CreateAzureTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAzureTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateAzureTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateAzureTargetOutput.prototype['target_id'] = undefined; +var _default = CreateAzureTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 79990: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Target", ({ - enumerable: true, - get: function get() { - return _Target["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateCertificate model module. + * @module model/CreateCertificate + * @version 3.6.3 + */ +var CreateCertificate = /*#__PURE__*/function () { + /** + * Constructs a new CreateCertificate. + * @alias module:model/CreateCertificate + * @param name {String} Certificate name + */ + function CreateCertificate(name) { + _classCallCheck(this, CreateCertificate); + + CreateCertificate.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateCertificate, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCertificate} obj Optional instance to populate. + * @return {module:model/CreateCertificate} The populated CreateCertificate instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateCertificate(); + + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } + + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateCertificate; +}(); +/** + * Content of the certificate in a Base64 format. + * @member {String} certificate-data + */ + + +CreateCertificate.prototype['certificate-data'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateCertificate.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateCertificate.prototype['description'] = undefined; +/** + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in + */ + +CreateCertificate.prototype['expiration-event-in'] = undefined; +/** + * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. + * @member {String} format + */ + +CreateCertificate.prototype['format'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateCertificate.prototype['json'] = false; +/** + * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateCertificate.prototype['key'] = undefined; +/** + * Content of the certificate's private key in a Base64 format. + * @member {String} key-data + */ + +CreateCertificate.prototype['key-data'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateCertificate.prototype['metadata'] = undefined; +/** + * Certificate name + * @member {String} name + */ + +CreateCertificate.prototype['name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateCertificate.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateCertificate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateCertificate.prototype['uid-token'] = undefined; +var _default = CreateCertificate; +exports["default"] = _default; + +/***/ }), + +/***/ 88627: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TargetItemAssociation", ({ - enumerable: true, - get: function get() { - return _TargetItemAssociation["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateCertificateOutput model module. + * @module model/CreateCertificateOutput + * @version 3.6.3 + */ +var CreateCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateCertificateOutput. + * @alias module:model/CreateCertificateOutput + */ + function CreateCertificateOutput() { + _classCallCheck(this, CreateCertificateOutput); + + CreateCertificateOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCertificateOutput} obj Optional instance to populate. + * @return {module:model/CreateCertificateOutput} The populated CreateCertificateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateCertificateOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateCertificateOutput; +}(); +/** + * @member {String} name + */ + + +CreateCertificateOutput.prototype['name'] = undefined; +var _default = CreateCertificateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 37974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TargetItemVersion", ({ - enumerable: true, - get: function get() { - return _TargetItemVersion["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateClassicKey model module. + * @module model/CreateClassicKey + * @version 3.6.3 + */ +var CreateClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new CreateClassicKey. + * CreateClassicKey is a command that creates classic key + * @alias module:model/CreateClassicKey + * @param alg {String} Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] + * @param name {String} ClassicKey name + */ + function CreateClassicKey(alg, name) { + _classCallCheck(this, CreateClassicKey); + + CreateClassicKey.initialize(this, alg, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, name) { + obj['alg'] = alg; + obj['name'] = name; + } + /** + * Constructs a CreateClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateClassicKey} obj Optional instance to populate. + * @return {module:model/CreateClassicKey} The populated CreateClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateClassicKey(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } + + if (data.hasOwnProperty('certificate-common-name')) { + obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); + } + + if (data.hasOwnProperty('certificate-country')) { + obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); + } + + if (data.hasOwnProperty('certificate-digest-algo')) { + obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); + } + + if (data.hasOwnProperty('certificate-locality')) { + obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); + } + + if (data.hasOwnProperty('certificate-organization')) { + obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); + } + + if (data.hasOwnProperty('certificate-province')) { + obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); + } + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + } + + if (data.hasOwnProperty('conf-file-data')) { + obj['conf-file-data'] = _ApiClient["default"].convertToType(data['conf-file-data'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('generate-self-signed-certificate')) { + obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('gpg-alg')) { + obj['gpg-alg'] = _ApiClient["default"].convertToType(data['gpg-alg'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('protection-key-name')) { + obj['protection-key-name'] = _ApiClient["default"].convertToType(data['protection-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateClassicKey; +}(); +/** + * Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] + * @member {String} alg + */ + + +CreateClassicKey.prototype['alg'] = undefined; +/** + * Certificate in a PEM format. + * @member {String} cert-file-data + */ + +CreateClassicKey.prototype['cert-file-data'] = undefined; +/** + * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-common-name + */ + +CreateClassicKey.prototype['certificate-common-name'] = undefined; +/** + * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-country + */ + +CreateClassicKey.prototype['certificate-country'] = undefined; +/** + * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. + * @member {String} certificate-digest-algo + */ + +CreateClassicKey.prototype['certificate-digest-algo'] = undefined; +/** + * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-locality + */ + +CreateClassicKey.prototype['certificate-locality'] = undefined; +/** + * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-organization + */ + +CreateClassicKey.prototype['certificate-organization'] = undefined; +/** + * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-province + */ + +CreateClassicKey.prototype['certificate-province'] = undefined; +/** + * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. + * @member {Number} certificate-ttl + */ + +CreateClassicKey.prototype['certificate-ttl'] = undefined; +/** + * The csr config data in base64 encoding + * @member {String} conf-file-data + */ + +CreateClassicKey.prototype['conf-file-data'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateClassicKey.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateClassicKey.prototype['description'] = undefined; +/** + * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. + * @member {Boolean} generate-self-signed-certificate + */ + +CreateClassicKey.prototype['generate-self-signed-certificate'] = undefined; +/** + * gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519] + * @member {String} gpg-alg + */ + +CreateClassicKey.prototype['gpg-alg'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateClassicKey.prototype['json'] = false; +/** + * Base64-encoded classic key value + * @member {String} key-data + */ + +CreateClassicKey.prototype['key-data'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateClassicKey.prototype['metadata'] = undefined; +/** + * ClassicKey name + * @member {String} name + */ + +CreateClassicKey.prototype['name'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection-key-name + */ + +CreateClassicKey.prototype['protection-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateClassicKey.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateClassicKey.prototype['uid-token'] = undefined; +var _default = CreateClassicKey; +exports["default"] = _default; + +/***/ }), + +/***/ 28339: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TargetTypeDetailsInput", ({ - enumerable: true, - get: function get() { - return _TargetTypeDetailsInput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateClassicKeyOutput model module. + * @module model/CreateClassicKeyOutput + * @version 3.6.3 + */ +var CreateClassicKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateClassicKeyOutput. + * @alias module:model/CreateClassicKeyOutput + */ + function CreateClassicKeyOutput() { + _classCallCheck(this, CreateClassicKeyOutput); + + CreateClassicKeyOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateClassicKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/CreateClassicKeyOutput} The populated CreateClassicKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateClassicKeyOutput(); + + if (data.hasOwnProperty('classic_key_id')) { + obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); + } + + if (data.hasOwnProperty('classic_key_name')) { + obj['classic_key_name'] = _ApiClient["default"].convertToType(data['classic_key_name'], 'String'); + } + + if (data.hasOwnProperty('classic_key_type')) { + obj['classic_key_type'] = _ApiClient["default"].convertToType(data['classic_key_type'], 'String'); + } + + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); + } + } + + return obj; + } + }]); + + return CreateClassicKeyOutput; +}(); +/** + * @member {String} classic_key_id + */ + + +CreateClassicKeyOutput.prototype['classic_key_id'] = undefined; +/** + * @member {String} classic_key_name + */ + +CreateClassicKeyOutput.prototype['classic_key_name'] = undefined; +/** + * @member {String} classic_key_type + */ + +CreateClassicKeyOutput.prototype['classic_key_type'] = undefined; +/** + * @member {String} public_key + */ + +CreateClassicKeyOutput.prototype['public_key'] = undefined; +var _default = CreateClassicKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 53346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TmpUserData", ({ - enumerable: true, - get: function get() { - return _TmpUserData["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDBTarget model module. + * @module model/CreateDBTarget + * @version 3.6.3 + */ +var CreateDBTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateDBTarget. + * @alias module:model/CreateDBTarget + * @param connectionType {String} (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @param dbType {String} + * @param name {String} Target name + */ + function CreateDBTarget(connectionType, dbType, name) { + _classCallCheck(this, CreateDBTarget); + + CreateDBTarget.initialize(this, connectionType, dbType, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDBTarget, null, [{ + key: "initialize", + value: function initialize(obj, connectionType, dbType, name) { + obj['connection-type'] = connectionType; + obj['db-type'] = dbType; + obj['name'] = name; + } + /** + * Constructs a CreateDBTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDBTarget} obj Optional instance to populate. + * @return {module:model/CreateDBTarget} The populated CreateDBTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDBTarget(); + + if (data.hasOwnProperty('DBDefinedConnectionType')) { + obj['DBDefinedConnectionType'] = _ApiClient["default"].convertToType(data['DBDefinedConnectionType'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('cloud-service-provider')) { + obj['cloud-service-provider'] = _ApiClient["default"].convertToType(data['cloud-service-provider'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('connection-type')) { + obj['connection-type'] = _ApiClient["default"].convertToType(data['connection-type'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('db-type')) { + obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas')) { + obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } + + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('pwd')) { + obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); + } + + if (data.hasOwnProperty('snowflake-account')) { + obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); + } + + if (data.hasOwnProperty('snowflake-api-private-key')) { + obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('snowflake-api-private-key-password')) { + obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-name')) { + obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDBTarget; +}(); +/** + * @member {String} DBDefinedConnectionType + */ + + +CreateDBTarget.prototype['DBDefinedConnectionType'] = undefined; +/** + * (Optional) Client id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-id + */ + +CreateDBTarget.prototype['azure-client-id'] = undefined; +/** + * (Optional) Client secret (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-secret + */ + +CreateDBTarget.prototype['azure-client-secret'] = undefined; +/** + * (Optional) Tenant id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-tenant-id + */ + +CreateDBTarget.prototype['azure-tenant-id'] = undefined; +/** + * (Optional) Cloud service provider (currently only supports Azure) + * @member {String} cloud-service-provider + */ + +CreateDBTarget.prototype['cloud-service-provider'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateDBTarget.prototype['comment'] = undefined; +/** + * (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @member {String} connection-type + * @default 'credentials' + */ + +CreateDBTarget.prototype['connection-type'] = 'credentials'; +/** + * @member {String} db-name + */ + +CreateDBTarget.prototype['db-name'] = undefined; +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + +CreateDBTarget.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +CreateDBTarget.prototype['db-server-name'] = undefined; +/** + * @member {String} db-type + */ + +CreateDBTarget.prototype['db-type'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDBTarget.prototype['description'] = undefined; +/** + * @member {String} host + */ + +CreateDBTarget.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDBTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateDBTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateDBTarget.prototype['max-versions'] = undefined; +/** + * @member {Boolean} mongodb-atlas + */ + +CreateDBTarget.prototype['mongodb-atlas'] = undefined; +/** + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key + */ + +CreateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; +/** + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key + */ + +CreateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; +/** + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id + */ + +CreateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; +/** + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db + */ + +CreateDBTarget.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ + +CreateDBTarget.prototype['mongodb-uri-options'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateDBTarget.prototype['name'] = undefined; +/** + * @member {String} oracle-service-name + */ + +CreateDBTarget.prototype['oracle-service-name'] = undefined; +/** + * @member {String} port + */ + +CreateDBTarget.prototype['port'] = undefined; +/** + * @member {String} pwd + */ + +CreateDBTarget.prototype['pwd'] = undefined; +/** + * @member {String} snowflake-account + */ + +CreateDBTarget.prototype['snowflake-account'] = undefined; +/** + * RSA Private key (base64 encoded) + * @member {String} snowflake-api-private-key + */ + +CreateDBTarget.prototype['snowflake-api-private-key'] = undefined; +/** + * The Private key passphrase + * @member {String} snowflake-api-private-key-password + */ + +CreateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +CreateDBTarget.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ + +CreateDBTarget.prototype['ssl-certificate'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDBTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDBTarget.prototype['uid-token'] = undefined; +/** + * @member {String} user-name + */ + +CreateDBTarget.prototype['user-name'] = undefined; +var _default = CreateDBTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 45671: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Tokenize", ({ - enumerable: true, - get: function get() { - return _Tokenize["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDBTargetOutput model module. + * @module model/CreateDBTargetOutput + * @version 3.6.3 + */ +var CreateDBTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateDBTargetOutput. + * @alias module:model/CreateDBTargetOutput + */ + function CreateDBTargetOutput() { + _classCallCheck(this, CreateDBTargetOutput); + + CreateDBTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDBTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDBTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateDBTargetOutput} The populated CreateDBTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDBTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateDBTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateDBTargetOutput.prototype['target_id'] = undefined; +var _default = CreateDBTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 85323: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TokenizeOutput", ({ - enumerable: true, - get: function get() { - return _TokenizeOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDFCKey model module. + * @module model/CreateDFCKey + * @version 3.6.3 + */ +var CreateDFCKey = /*#__PURE__*/function () { + /** + * Constructs a new CreateDFCKey. + * @alias module:model/CreateDFCKey + * @param alg {String} DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @param name {String} DFCKey name + */ + function CreateDFCKey(alg, name) { + _classCallCheck(this, CreateDFCKey); + + CreateDFCKey.initialize(this, alg, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDFCKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, name) { + obj['alg'] = alg; + obj['name'] = name; + } + /** + * Constructs a CreateDFCKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDFCKey} obj Optional instance to populate. + * @return {module:model/CreateDFCKey} The populated CreateDFCKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDFCKey(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('certificate-common-name')) { + obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); + } + + if (data.hasOwnProperty('certificate-country')) { + obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); + } + + if (data.hasOwnProperty('certificate-digest-algo')) { + obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); + } + + if (data.hasOwnProperty('certificate-locality')) { + obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); + } + + if (data.hasOwnProperty('certificate-organization')) { + obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); + } + + if (data.hasOwnProperty('certificate-province')) { + obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); + } + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + } + + if (data.hasOwnProperty('conf-file-data')) { + obj['conf-file-data'] = _ApiClient["default"].convertToType(data['conf-file-data'], 'String'); + } + + if (data.hasOwnProperty('customer-frg-id')) { + obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('generate-self-signed-certificate')) { + obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDFCKey; +}(); +/** + * DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @member {String} alg + */ + + +CreateDFCKey.prototype['alg'] = undefined; +/** + * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-common-name + */ + +CreateDFCKey.prototype['certificate-common-name'] = undefined; +/** + * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-country + */ + +CreateDFCKey.prototype['certificate-country'] = undefined; +/** + * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. + * @member {String} certificate-digest-algo + */ + +CreateDFCKey.prototype['certificate-digest-algo'] = undefined; +/** + * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-locality + */ + +CreateDFCKey.prototype['certificate-locality'] = undefined; +/** + * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-organization + */ + +CreateDFCKey.prototype['certificate-organization'] = undefined; +/** + * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-province + */ + +CreateDFCKey.prototype['certificate-province'] = undefined; +/** + * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. + * @member {Number} certificate-ttl + */ + +CreateDFCKey.prototype['certificate-ttl'] = undefined; +/** + * The csr config data in base64 encoding + * @member {String} conf-file-data + */ + +CreateDFCKey.prototype['conf-file-data'] = undefined; +/** + * The customer fragment ID that will be used to create the DFC key (if empty, the key will be created independently of a customer fragment) + * @member {String} customer-frg-id + */ + +CreateDFCKey.prototype['customer-frg-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateDFCKey.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDFCKey.prototype['description'] = undefined; +/** + * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. + * @member {Boolean} generate-self-signed-certificate + */ + +CreateDFCKey.prototype['generate-self-signed-certificate'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDFCKey.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateDFCKey.prototype['metadata'] = undefined; +/** + * DFCKey name + * @member {String} name + */ + +CreateDFCKey.prototype['name'] = undefined; +/** + * The number of fragments that the item will be split into (not includes customer fragment) + * @member {Number} split-level + * @default 3 + */ + +CreateDFCKey.prototype['split-level'] = 3; +/** + * List of the tags attached to this DFC key + * @member {Array.} tag + */ + +CreateDFCKey.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDFCKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDFCKey.prototype['uid-token'] = undefined; +var _default = CreateDFCKey; +exports["default"] = _default; + +/***/ }), + +/***/ 94634: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TokenizerInfo", ({ - enumerable: true, - get: function get() { - return _TokenizerInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDFCKeyOutput model module. + * @module model/CreateDFCKeyOutput + * @version 3.6.3 + */ +var CreateDFCKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateDFCKeyOutput. + * @alias module:model/CreateDFCKeyOutput + */ + function CreateDFCKeyOutput() { + _classCallCheck(this, CreateDFCKeyOutput); + + CreateDFCKeyOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDFCKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateDFCKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDFCKeyOutput} obj Optional instance to populate. + * @return {module:model/CreateDFCKeyOutput} The populated CreateDFCKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDFCKeyOutput(); + + if (data.hasOwnProperty('fragment_results')) { + obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); + } + } + + return obj; + } + }]); + + return CreateDFCKeyOutput; +}(); +/** + * @member {Array.} fragment_results + */ + + +CreateDFCKeyOutput.prototype['fragment_results'] = undefined; +var _default = CreateDFCKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 95215: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UIDTokenDetails", ({ - enumerable: true, - get: function get() { - return _UIDTokenDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDockerhubTarget model module. + * @module model/CreateDockerhubTarget + * @version 3.6.3 + */ +var CreateDockerhubTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateDockerhubTarget. + * @alias module:model/CreateDockerhubTarget + * @param name {String} Target name + */ + function CreateDockerhubTarget(name) { + _classCallCheck(this, CreateDockerhubTarget); + + CreateDockerhubTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDockerhubTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDockerhubTarget} obj Optional instance to populate. + * @return {module:model/CreateDockerhubTarget} The populated CreateDockerhubTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDockerhubTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDockerhubTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateDockerhubTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDockerhubTarget.prototype['description'] = undefined; +/** + * DockerhubPassword is either the user's password to manage the repository + * @member {String} dockerhub-password + */ + +CreateDockerhubTarget.prototype['dockerhub-password'] = undefined; +/** + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username + */ + +CreateDockerhubTarget.prototype['dockerhub-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDockerhubTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateDockerhubTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateDockerhubTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateDockerhubTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDockerhubTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDockerhubTarget.prototype['uid-token'] = undefined; +var _default = CreateDockerhubTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 82934: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidCreateChildToken", ({ - enumerable: true, - get: function get() { - return _UidCreateChildToken["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDockerhubTargetOutput model module. + * @module model/CreateDockerhubTargetOutput + * @version 3.6.3 + */ +var CreateDockerhubTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateDockerhubTargetOutput. + * @alias module:model/CreateDockerhubTargetOutput + */ + function CreateDockerhubTargetOutput() { + _classCallCheck(this, CreateDockerhubTargetOutput); + + CreateDockerhubTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDockerhubTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDockerhubTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateDockerhubTargetOutput} The populated CreateDockerhubTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDockerhubTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateDockerhubTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateDockerhubTargetOutput.prototype['target_id'] = undefined; +var _default = CreateDockerhubTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 39892: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidCreateChildTokenOutput", ({ - enumerable: true, - get: function get() { - return _UidCreateChildTokenOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDynamicSecret model module. + * @module model/CreateDynamicSecret + * @version 3.6.3 + */ +var CreateDynamicSecret = /*#__PURE__*/function () { + /** + * Constructs a new CreateDynamicSecret. + * @alias module:model/CreateDynamicSecret + * @param name {String} Dynamic secret name + */ + function CreateDynamicSecret(name) { + _classCallCheck(this, CreateDynamicSecret); + + CreateDynamicSecret.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDynamicSecret, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateDynamicSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDynamicSecret} obj Optional instance to populate. + * @return {module:model/CreateDynamicSecret} The populated CreateDynamicSecret instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDynamicSecret(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDynamicSecret; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +CreateDynamicSecret.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDynamicSecret.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDynamicSecret.prototype['json'] = false; +/** + * The name of a key that used to encrypt the dynamic secret values (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateDynamicSecret.prototype['key'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateDynamicSecret.prototype['metadata'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +CreateDynamicSecret.prototype['name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateDynamicSecret.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDynamicSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDynamicSecret.prototype['uid-token'] = undefined; +var _default = CreateDynamicSecret; +exports["default"] = _default; + +/***/ }), + +/***/ 38097: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidGenerateToken", ({ - enumerable: true, - get: function get() { - return _UidGenerateToken["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEKSTarget model module. + * @module model/CreateEKSTarget + * @version 3.6.3 + */ +var CreateEKSTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateEKSTarget. + * @alias module:model/CreateEKSTarget + * @param eksAccessKeyId {String} Access Key ID + * @param eksClusterCaCert {String} EKS cluster CA certificate + * @param eksClusterEndpoint {String} EKS cluster URL endpoint + * @param eksClusterName {String} EKS cluster name + * @param eksSecretAccessKey {String} Secret Access Key + * @param name {String} Target name + */ + function CreateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + _classCallCheck(this, CreateEKSTarget); + + CreateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEKSTarget, null, [{ + key: "initialize", + value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + obj['eks-access-key-id'] = eksAccessKeyId; + obj['eks-cluster-ca-cert'] = eksClusterCaCert; + obj['eks-cluster-endpoint'] = eksClusterEndpoint; + obj['eks-cluster-name'] = eksClusterName; + obj['eks-secret-access-key'] = eksSecretAccessKey; + obj['name'] = name; + } + /** + * Constructs a CreateEKSTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEKSTarget} obj Optional instance to populate. + * @return {module:model/CreateEKSTarget} The populated CreateEKSTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEKSTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateEKSTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateEKSTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateEKSTarget.prototype['description'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ + +CreateEKSTarget.prototype['eks-access-key-id'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ + +CreateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +CreateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +CreateEKSTarget.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +CreateEKSTarget.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +CreateEKSTarget.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateEKSTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateEKSTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateEKSTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateEKSTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateEKSTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateEKSTarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateEKSTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 11556: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidGenerateTokenOutput", ({ - enumerable: true, - get: function get() { - return _UidGenerateTokenOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEKSTargetOutput model module. + * @module model/CreateEKSTargetOutput + * @version 3.6.3 + */ +var CreateEKSTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateEKSTargetOutput. + * @alias module:model/CreateEKSTargetOutput + */ + function CreateEKSTargetOutput() { + _classCallCheck(this, CreateEKSTargetOutput); + + CreateEKSTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEKSTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEKSTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateEKSTargetOutput} The populated CreateEKSTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEKSTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateEKSTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateEKSTargetOutput.prototype['target_id'] = undefined; +var _default = CreateEKSTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 17838: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidListChildren", ({ - enumerable: true, - get: function get() { - return _UidListChildren["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateESM model module. + * @module model/CreateESM + * @version 3.6.3 + */ +var CreateESM = /*#__PURE__*/function () { + /** + * Constructs a new CreateESM. + * CreateESM is a command that creates an External Secrets Manager. [Deprecated: Use command create-usc] + * @alias module:model/CreateESM + * @param name {String} External Secrets Manager name + * @param targetToAssociate {String} Target External Secrets Manager to connect + */ + function CreateESM(name, targetToAssociate) { + _classCallCheck(this, CreateESM); + + CreateESM.initialize(this, name, targetToAssociate); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateESM, null, [{ + key: "initialize", + value: function initialize(obj, name, targetToAssociate) { + obj['name'] = name; + obj['target-to-associate'] = targetToAssociate; + } + /** + * Constructs a CreateESM from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateESM} obj Optional instance to populate. + * @return {module:model/CreateESM} The populated CreateESM instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateESM(); + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-to-associate')) { + obj['target-to-associate'] = _ApiClient["default"].convertToType(data['target-to-associate'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateESM; +}(); +/** + * Azure Key Vault name (Relevant only for Azure targets) + * @member {String} azure-kv-name + */ + + +CreateESM.prototype['azure-kv-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateESM.prototype['delete_protection'] = undefined; +/** + * Description of the External Secrets Manager + * @member {String} description + */ + +CreateESM.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateESM.prototype['json'] = false; +/** + * K8s namespace (Relevant to Kubernetes targets) + * @member {String} k8s-namespace + */ + +CreateESM.prototype['k8s-namespace'] = undefined; +/** + * External Secrets Manager name + * @member {String} name + */ + +CreateESM.prototype['name'] = undefined; +/** + * List of the tags attached to this External Secrets Manager + * @member {Array.} tags + */ + +CreateESM.prototype['tags'] = undefined; +/** + * Target External Secrets Manager to connect + * @member {String} target-to-associate + */ + +CreateESM.prototype['target-to-associate'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateESM.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateESM.prototype['uid-token'] = undefined; +var _default = CreateESM; +exports["default"] = _default; + +/***/ }), + +/***/ 20859: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidRevokeToken", ({ - enumerable: true, - get: function get() { - return _UidRevokeToken["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateESMOutput model module. + * @module model/CreateESMOutput + * @version 3.6.3 + */ +var CreateESMOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateESMOutput. + * @alias module:model/CreateESMOutput + */ + function CreateESMOutput() { + _classCallCheck(this, CreateESMOutput); + + CreateESMOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateESMOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateESMOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateESMOutput} obj Optional instance to populate. + * @return {module:model/CreateESMOutput} The populated CreateESMOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateESMOutput(); + + if (data.hasOwnProperty('external_secret_manager_id')) { + obj['external_secret_manager_id'] = _ApiClient["default"].convertToType(data['external_secret_manager_id'], 'Number'); + } + + if (data.hasOwnProperty('external_secret_manager_name')) { + obj['external_secret_manager_name'] = _ApiClient["default"].convertToType(data['external_secret_manager_name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateESMOutput; +}(); +/** + * @member {Number} external_secret_manager_id + */ + + +CreateESMOutput.prototype['external_secret_manager_id'] = undefined; +/** + * @member {String} external_secret_manager_name + */ + +CreateESMOutput.prototype['external_secret_manager_name'] = undefined; +var _default = CreateESMOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 73847: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidRotateToken", ({ - enumerable: true, - get: function get() { - return _UidRotateToken["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEventForwarder model module. + * @module model/CreateEventForwarder + * @version 3.6.3 + */ +var CreateEventForwarder = /*#__PURE__*/function () { + /** + * Constructs a new CreateEventForwarder. + * createEventForwarder is a command that creates a new event forwarder [Deprecated - please use event-forwarder-create-* command] + * @alias module:model/CreateEventForwarder + * @param eventSourceLocations {Array.} Event sources + * @param forwarderType {String} + * @param name {String} EventForwarder name + * @param runnerType {String} + */ + function CreateEventForwarder(eventSourceLocations, forwarderType, name, runnerType) { + _classCallCheck(this, CreateEventForwarder); + + CreateEventForwarder.initialize(this, eventSourceLocations, forwarderType, name, runnerType); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEventForwarder, null, [{ + key: "initialize", + value: function initialize(obj, eventSourceLocations, forwarderType, name, runnerType) { + obj['event-source-locations'] = eventSourceLocations; + obj['forwarder-type'] = forwarderType; + obj['name'] = name; + obj['runner-type'] = runnerType; + } + /** + * Constructs a CreateEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEventForwarder} obj Optional instance to populate. + * @return {module:model/CreateEventForwarder} The populated CreateEventForwarder instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEventForwarder(); + + if (data.hasOwnProperty('admin-name')) { + obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); + } + + if (data.hasOwnProperty('admin-pwd')) { + obj['admin-pwd'] = _ApiClient["default"].convertToType(data['admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('app-private-key-base64')) { + obj['app-private-key-base64'] = _ApiClient["default"].convertToType(data['app-private-key-base64'], 'String'); + } + + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + } + + if (data.hasOwnProperty('event-source-locations')) { + obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('event-source-type')) { + obj['event-source-type'] = _ApiClient["default"].convertToType(data['event-source-type'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('forwarder-type')) { + obj['forwarder-type'] = _ApiClient["default"].convertToType(data['forwarder-type'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); + } + } + + return obj; + } + }]); + + return CreateEventForwarder; +}(); +/** + * Workstation Admin Name + * @member {String} admin-name + */ + + +CreateEventForwarder.prototype['admin-name'] = undefined; +/** + * Workstation Admin password + * @member {String} admin-pwd + */ + +CreateEventForwarder.prototype['admin-pwd'] = undefined; +/** + * The RSA Private Key PEM formatted in base64 to use when connecting to ServiceNow with jwt authentication + * @member {String} app-private-key-base64 + */ + +CreateEventForwarder.prototype['app-private-key-base64'] = undefined; +/** + * The authentication type to use when connecting to ServiceNow (user-pass / jwt) + * @member {String} auth-type + * @default 'user-pass' + */ + +CreateEventForwarder.prototype['auth-type'] = 'user-pass'; +/** + * The client ID to use when connecting to ServiceNow with jwt authentication + * @member {String} client-id + */ + +CreateEventForwarder.prototype['client-id'] = undefined; +/** + * The client secret to use when connecting to ServiceNow with jwt authentication + * @member {String} client-secret + */ + +CreateEventForwarder.prototype['client-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateEventForwarder.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateEventForwarder.prototype['description'] = undefined; +/** + * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) + * @member {String} email-to + */ + +CreateEventForwarder.prototype['email-to'] = undefined; +/** + * Event sources + * @member {Array.} event-source-locations + */ + +CreateEventForwarder.prototype['event-source-locations'] = undefined; +/** + * Event Source type [item, target, auth_method, gateway] + * @member {String} event-source-type + * @default 'item' + */ + +CreateEventForwarder.prototype['event-source-type'] = 'item'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +CreateEventForwarder.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +CreateEventForwarder.prototype['every'] = undefined; +/** + * @member {String} forwarder-type + */ + +CreateEventForwarder.prototype['forwarder-type'] = undefined; +/** + * Workstation Host + * @member {String} host + */ + +CreateEventForwarder.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateEventForwarder.prototype['json'] = false; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateEventForwarder.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +CreateEventForwarder.prototype['name'] = undefined; +/** + * @member {String} runner-type + */ + +CreateEventForwarder.prototype['runner-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateEventForwarder.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateEventForwarder.prototype['uid-token'] = undefined; +/** + * The user email to use when connecting to ServiceNow with jwt authentication + * @member {String} user-email + */ + +CreateEventForwarder.prototype['user-email'] = undefined; +var _default = CreateEventForwarder; +exports["default"] = _default; + +/***/ }), + +/***/ 95566: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UidRotateTokenOutput", ({ - enumerable: true, - get: function get() { - return _UidRotateTokenOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEventForwarderOutput model module. + * @module model/CreateEventForwarderOutput + * @version 3.6.3 + */ +var CreateEventForwarderOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateEventForwarderOutput. + * @alias module:model/CreateEventForwarderOutput + */ + function CreateEventForwarderOutput() { + _classCallCheck(this, CreateEventForwarderOutput); + + CreateEventForwarderOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEventForwarderOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEventForwarderOutput} obj Optional instance to populate. + * @return {module:model/CreateEventForwarderOutput} The populated CreateEventForwarderOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEventForwarderOutput(); + + if (data.hasOwnProperty('event_forwarder_id')) { + obj['event_forwarder_id'] = _ApiClient["default"].convertToType(data['event_forwarder_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateEventForwarderOutput; +}(); +/** + * @member {Number} event_forwarder_id + */ + + +CreateEventForwarderOutput.prototype['event_forwarder_id'] = undefined; +var _default = CreateEventForwarderOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 87913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Unconfigure", ({ - enumerable: true, - get: function get() { - return _Unconfigure["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGKETarget model module. + * @module model/CreateGKETarget + * @version 3.6.3 + */ +var CreateGKETarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGKETarget. + * @alias module:model/CreateGKETarget + * @param name {String} Target name + */ + function CreateGKETarget(name) { + _classCallCheck(this, CreateGKETarget); + + CreateGKETarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGKETarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateGKETarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGKETarget} obj Optional instance to populate. + * @return {module:model/CreateGKETarget} The populated CreateGKETarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGKETarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateGKETarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGKETarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGKETarget.prototype['description'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ + +CreateGKETarget.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ + +CreateGKETarget.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ + +CreateGKETarget.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ + +CreateGKETarget.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +CreateGKETarget.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGKETarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGKETarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGKETarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGKETarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGKETarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGKETarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateGKETarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateGKETarget; +exports["default"] = _default; + +/***/ }), + +/***/ 84588: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UniversalIdentityAccessRules", ({ - enumerable: true, - get: function get() { - return _UniversalIdentityAccessRules["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGKETargetOutput model module. + * @module model/CreateGKETargetOutput + * @version 3.6.3 + */ +var CreateGKETargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGKETargetOutput. + * @alias module:model/CreateGKETargetOutput + */ + function CreateGKETargetOutput() { + _classCallCheck(this, CreateGKETargetOutput); + + CreateGKETargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGKETargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGKETargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGKETargetOutput} The populated CreateGKETargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGKETargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGKETargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGKETargetOutput.prototype['target_id'] = undefined; +var _default = CreateGKETargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 87182: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UniversalIdentityDetails", ({ - enumerable: true, - get: function get() { - return _UniversalIdentityDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGcpTarget model module. + * @module model/CreateGcpTarget + * @version 3.6.3 + */ +var CreateGcpTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGcpTarget. + * @alias module:model/CreateGcpTarget + * @param name {String} Target name + */ + function CreateGcpTarget(name) { + _classCallCheck(this, CreateGcpTarget); + + CreateGcpTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGcpTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateGcpTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGcpTarget} obj Optional instance to populate. + * @return {module:model/CreateGcpTarget} The populated CreateGcpTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGcpTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateGcpTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGcpTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGcpTarget.prototype['description'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +CreateGcpTarget.prototype['gcp-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGcpTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGcpTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGcpTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGcpTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGcpTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGcpTarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateGcpTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 64059: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Update", ({ - enumerable: true, - get: function get() { - return _Update["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGcpTargetOutput model module. + * @module model/CreateGcpTargetOutput + * @version 3.6.3 + */ +var CreateGcpTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGcpTargetOutput. + * @alias module:model/CreateGcpTargetOutput + */ + function CreateGcpTargetOutput() { + _classCallCheck(this, CreateGcpTargetOutput); + + CreateGcpTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGcpTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGcpTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGcpTargetOutput} The populated CreateGcpTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGcpTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGcpTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGcpTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGcpTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 96291: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAWSTarget", ({ - enumerable: true, - get: function get() { - return _UpdateAWSTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGithubTarget model module. + * @module model/CreateGithubTarget + * @version 3.6.3 + */ +var CreateGithubTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGithubTarget. + * @alias module:model/CreateGithubTarget + * @param name {String} Target name + */ + function CreateGithubTarget(name) { + _classCallCheck(this, CreateGithubTarget); + + CreateGithubTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGithubTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateGithubTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGithubTarget} obj Optional instance to populate. + * @return {module:model/CreateGithubTarget} The populated CreateGithubTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGithubTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGithubTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGithubTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGithubTarget.prototype['description'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ + +CreateGithubTarget.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ + +CreateGithubTarget.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +CreateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGithubTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGithubTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGithubTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGithubTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGithubTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGithubTarget.prototype['uid-token'] = undefined; +var _default = CreateGithubTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 79666: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAWSTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateAWSTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGithubTargetOutput model module. + * @module model/CreateGithubTargetOutput + * @version 3.6.3 + */ +var CreateGithubTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGithubTargetOutput. + * @alias module:model/CreateGithubTargetOutput + */ + function CreateGithubTargetOutput() { + _classCallCheck(this, CreateGithubTargetOutput); + + CreateGithubTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGithubTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGithubTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGithubTargetOutput} The populated CreateGithubTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGithubTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGithubTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGithubTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGithubTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 9913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAccountSettings", ({ - enumerable: true, - get: function get() { - return _UpdateAccountSettings["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignAtlasTarget model module. + * @module model/CreateGlobalSignAtlasTarget + * @version 3.6.3 + */ +var CreateGlobalSignAtlasTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignAtlasTarget. + * @alias module:model/CreateGlobalSignAtlasTarget + * @param apiKey {String} API Key of the GlobalSign Atlas account + * @param apiSecret {String} API Secret of the GlobalSign Atlas account + * @param name {String} Target name + */ + function CreateGlobalSignAtlasTarget(apiKey, apiSecret, name) { + _classCallCheck(this, CreateGlobalSignAtlasTarget); + + CreateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignAtlasTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, apiSecret, name) { + obj['api-key'] = apiKey; + obj['api-secret'] = apiSecret; + obj['name'] = name; + } + /** + * Constructs a CreateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignAtlasTarget} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignAtlasTarget} The populated CreateGlobalSignAtlasTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignAtlasTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('api-secret')) { + obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('mtls-cert-data-base64')) { + obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); + } + + if (data.hasOwnProperty('mtls-key-data-base64')) { + obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignAtlasTarget; +}(); +/** + * API Key of the GlobalSign Atlas account + * @member {String} api-key + */ + + +CreateGlobalSignAtlasTarget.prototype['api-key'] = undefined; +/** + * API Secret of the GlobalSign Atlas account + * @member {String} api-secret + */ + +CreateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateGlobalSignAtlasTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGlobalSignAtlasTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGlobalSignAtlasTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGlobalSignAtlasTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGlobalSignAtlasTarget.prototype['max-versions'] = undefined; +/** + * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied + * @member {String} mtls-cert-data-base64 + */ + +CreateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; +/** + * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied + * @member {String} mtls-key-data-base64 + */ + +CreateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGlobalSignAtlasTarget.prototype['name'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGlobalSignAtlasTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; +var _default = CreateGlobalSignAtlasTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 59100: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAccountSettingsOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAccountSettingsOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignAtlasTargetOutput model module. + * @module model/CreateGlobalSignAtlasTargetOutput + * @version 3.6.3 + */ +var CreateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignAtlasTargetOutput. + * @alias module:model/CreateGlobalSignAtlasTargetOutput + */ + function CreateGlobalSignAtlasTargetOutput() { + _classCallCheck(this, CreateGlobalSignAtlasTargetOutput); + + CreateGlobalSignAtlasTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignAtlasTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignAtlasTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignAtlasTargetOutput} The populated CreateGlobalSignAtlasTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignAtlasTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignAtlasTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGlobalSignAtlasTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84574: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateArtifactoryTarget", ({ - enumerable: true, - get: function get() { - return _UpdateArtifactoryTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignTarget model module. + * @module model/CreateGlobalSignTarget + * @version 3.6.3 + */ +var CreateGlobalSignTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignTarget. + * @alias module:model/CreateGlobalSignTarget + * @param contactEmail {String} Email of the GlobalSign GCC account contact + * @param contactFirstName {String} First name of the GlobalSign GCC account contact + * @param contactLastName {String} Last name of the GlobalSign GCC account contact + * @param contactPhone {String} Telephone of the GlobalSign GCC account contact + * @param name {String} Target name + * @param password {String} Password of the GlobalSign GCC account + * @param profileId {String} Profile ID of the GlobalSign GCC account + * @param username {String} Username of the GlobalSign GCC account + */ + function CreateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + _classCallCheck(this, CreateGlobalSignTarget); + + CreateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignTarget, null, [{ + key: "initialize", + value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + obj['contact-email'] = contactEmail; + obj['contact-first-name'] = contactFirstName; + obj['contact-last-name'] = contactLastName; + obj['contact-phone'] = contactPhone; + obj['name'] = name; + obj['password'] = password; + obj['profile-id'] = profileId; + obj['username'] = username; + } + /** + * Constructs a CreateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignTarget} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignTarget} The populated CreateGlobalSignTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('contact-email')) { + obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); + } + + if (data.hasOwnProperty('contact-first-name')) { + obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); + } + + if (data.hasOwnProperty('contact-last-name')) { + obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); + } + + if (data.hasOwnProperty('contact-phone')) { + obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('profile-id')) { + obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGlobalSignTarget.prototype['comment'] = undefined; +/** + * Email of the GlobalSign GCC account contact + * @member {String} contact-email + */ + +CreateGlobalSignTarget.prototype['contact-email'] = undefined; +/** + * First name of the GlobalSign GCC account contact + * @member {String} contact-first-name + */ + +CreateGlobalSignTarget.prototype['contact-first-name'] = undefined; +/** + * Last name of the GlobalSign GCC account contact + * @member {String} contact-last-name + */ + +CreateGlobalSignTarget.prototype['contact-last-name'] = undefined; +/** + * Telephone of the GlobalSign GCC account contact + * @member {String} contact-phone + */ + +CreateGlobalSignTarget.prototype['contact-phone'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGlobalSignTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGlobalSignTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGlobalSignTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGlobalSignTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGlobalSignTarget.prototype['name'] = undefined; +/** + * Password of the GlobalSign GCC account + * @member {String} password + */ + +CreateGlobalSignTarget.prototype['password'] = undefined; +/** + * Profile ID of the GlobalSign GCC account + * @member {String} profile-id + */ + +CreateGlobalSignTarget.prototype['profile-id'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateGlobalSignTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGlobalSignTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGlobalSignTarget.prototype['uid-token'] = undefined; +/** + * Username of the GlobalSign GCC account + * @member {String} username + */ + +CreateGlobalSignTarget.prototype['username'] = undefined; +var _default = CreateGlobalSignTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 40619: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateArtifactoryTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateArtifactoryTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignTargetOutput model module. + * @module model/CreateGlobalSignTargetOutput + * @version 3.6.3 + */ +var CreateGlobalSignTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignTargetOutput. + * @alias module:model/CreateGlobalSignTargetOutput + */ + function CreateGlobalSignTargetOutput() { + _classCallCheck(this, CreateGlobalSignTargetOutput); + + CreateGlobalSignTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignTargetOutput} The populated CreateGlobalSignTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGlobalSignTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGlobalSignTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 71736: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAssoc", ({ - enumerable: true, - get: function get() { - return _UpdateAssoc["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGodaddyTarget model module. + * @module model/CreateGodaddyTarget + * @version 3.6.3 + */ +var CreateGodaddyTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGodaddyTarget. + * @alias module:model/CreateGodaddyTarget + * @param apiKey {String} Key of the api credentials to the Godaddy account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service + * @param name {String} Target name + * @param secret {String} Secret of the api credentials to the Godaddy account + */ + function CreateGodaddyTarget(apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + _classCallCheck(this, CreateGodaddyTarget); + + CreateGodaddyTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name, secret); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGodaddyTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; + obj['name'] = name; + obj['secret'] = secret; + } + /** + * Constructs a CreateGodaddyTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGodaddyTarget} obj Optional instance to populate. + * @return {module:model/CreateGodaddyTarget} The populated CreateGodaddyTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGodaddyTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } + + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } + + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } + + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGodaddyTarget; +}(); +/** + * Key of the api credentials to the Godaddy account + * @member {String} api-key + */ + + +CreateGodaddyTarget.prototype['api-key'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGodaddyTarget.prototype['description'] = undefined; +/** + * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @member {String} imap-fqdn + */ + +CreateGodaddyTarget.prototype['imap-fqdn'] = undefined; +/** + * ImapPassword to access the IMAP service + * @member {String} imap-password + */ + +CreateGodaddyTarget.prototype['imap-password'] = undefined; +/** + * ImapPort of the IMAP service + * @member {String} imap-port + * @default '993' + */ + +CreateGodaddyTarget.prototype['imap-port'] = '993'; +/** + * ImapUsername to access the IMAP service + * @member {String} imap-username + */ + +CreateGodaddyTarget.prototype['imap-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGodaddyTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGodaddyTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGodaddyTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGodaddyTarget.prototype['name'] = undefined; +/** + * Secret of the api credentials to the Godaddy account + * @member {String} secret + */ + +CreateGodaddyTarget.prototype['secret'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateGodaddyTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGodaddyTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGodaddyTarget.prototype['uid-token'] = undefined; +var _default = CreateGodaddyTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 83473: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethod", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethod["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGodaddyTargetOutput model module. + * @module model/CreateGodaddyTargetOutput + * @version 3.6.3 + */ +var CreateGodaddyTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGodaddyTargetOutput. + * @alias module:model/CreateGodaddyTargetOutput + */ + function CreateGodaddyTargetOutput() { + _classCallCheck(this, CreateGodaddyTargetOutput); + + CreateGodaddyTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGodaddyTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGodaddyTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGodaddyTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGodaddyTargetOutput} The populated CreateGodaddyTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGodaddyTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGodaddyTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGodaddyTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGodaddyTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 56830: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodAWSIAM", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodAWSIAM["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGroup model module. + * @module model/CreateGroup + * @version 3.6.3 + */ +var CreateGroup = /*#__PURE__*/function () { + /** + * Constructs a new CreateGroup. + * @alias module:model/CreateGroup + * @param groupAlias {String} A short group alias + * @param name {String} Group name + */ + function CreateGroup(groupAlias, name) { + _classCallCheck(this, CreateGroup); + + CreateGroup.initialize(this, groupAlias, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGroup, null, [{ + key: "initialize", + value: function initialize(obj, groupAlias, name) { + obj['group-alias'] = groupAlias; + obj['name'] = name; + } + /** + * Constructs a CreateGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGroup} obj Optional instance to populate. + * @return {module:model/CreateGroup} The populated CreateGroup instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGroup(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('group-alias')) { + obj['group-alias'] = _ApiClient["default"].convertToType(data['group-alias'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-assignment')) { + obj['user-assignment'] = _ApiClient["default"].convertToType(data['user-assignment'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGroup; +}(); +/** + * Description of the object + * @member {String} description + */ + + +CreateGroup.prototype['description'] = undefined; +/** + * A short group alias + * @member {String} group-alias + */ + +CreateGroup.prototype['group-alias'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGroup.prototype['json'] = false; +/** + * Group name + * @member {String} name + */ + +CreateGroup.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGroup.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGroup.prototype['uid-token'] = undefined; +/** + * A json string defining the access permission assignment for this client + * @member {String} user-assignment + */ + +CreateGroup.prototype['user-assignment'] = undefined; +var _default = CreateGroup; +exports["default"] = _default; + +/***/ }), + +/***/ 80875: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodAzureAD", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodAzureAD["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGroupOutput model module. + * @module model/CreateGroupOutput + * @version 3.6.3 + */ +var CreateGroupOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGroupOutput. + * @alias module:model/CreateGroupOutput + */ + function CreateGroupOutput() { + _classCallCheck(this, CreateGroupOutput); + + CreateGroupOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGroupOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGroupOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGroupOutput} obj Optional instance to populate. + * @return {module:model/CreateGroupOutput} The populated CreateGroupOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGroupOutput(); + + if (data.hasOwnProperty('group_alias')) { + obj['group_alias'] = _ApiClient["default"].convertToType(data['group_alias'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGroupOutput; +}(); +/** + * @member {String} group_alias + */ + + +CreateGroupOutput.prototype['group_alias'] = undefined; +/** + * @member {String} id + */ + +CreateGroupOutput.prototype['id'] = undefined; +/** + * @member {String} name + */ + +CreateGroupOutput.prototype['name'] = undefined; +var _default = CreateGroupOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 73770: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodCert", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodCert["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateKey model module. + * @module model/CreateKey + * @version 3.6.3 + */ +var CreateKey = /*#__PURE__*/function () { + /** + * Constructs a new CreateKey. + * createKey is a command that creates a new key. [Deprecated: Use command create-dfc-key] + * @alias module:model/CreateKey + * @param alg {String} Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @param name {String} Key name + */ + function CreateKey(alg, name) { + _classCallCheck(this, CreateKey); + + CreateKey.initialize(this, alg, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, name) { + obj['alg'] = alg; + obj['name'] = name; + } + /** + * Constructs a CreateKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateKey} obj Optional instance to populate. + * @return {module:model/CreateKey} The populated CreateKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateKey(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('certificate-common-name')) { + obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); + } + + if (data.hasOwnProperty('certificate-country')) { + obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); + } + + if (data.hasOwnProperty('certificate-digest-algo')) { + obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); + } + + if (data.hasOwnProperty('certificate-locality')) { + obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); + } + + if (data.hasOwnProperty('certificate-organization')) { + obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); + } + + if (data.hasOwnProperty('certificate-province')) { + obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); + } + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + } + + if (data.hasOwnProperty('conf-file-data')) { + obj['conf-file-data'] = _ApiClient["default"].convertToType(data['conf-file-data'], 'String'); + } + + if (data.hasOwnProperty('customer-frg-id')) { + obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('generate-self-signed-certificate')) { + obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateKey; +}(); +/** + * Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @member {String} alg + */ + + +CreateKey.prototype['alg'] = undefined; +/** + * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-common-name + */ + +CreateKey.prototype['certificate-common-name'] = undefined; +/** + * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-country + */ + +CreateKey.prototype['certificate-country'] = undefined; +/** + * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. + * @member {String} certificate-digest-algo + */ + +CreateKey.prototype['certificate-digest-algo'] = undefined; +/** + * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-locality + */ + +CreateKey.prototype['certificate-locality'] = undefined; +/** + * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-organization + */ + +CreateKey.prototype['certificate-organization'] = undefined; +/** + * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-province + */ + +CreateKey.prototype['certificate-province'] = undefined; +/** + * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. + * @member {Number} certificate-ttl + */ + +CreateKey.prototype['certificate-ttl'] = undefined; +/** + * The csr config data in base64 encoding + * @member {String} conf-file-data + */ + +CreateKey.prototype['conf-file-data'] = undefined; +/** + * The customer fragment ID that will be used to create the key (if empty, the key will be created independently of a customer fragment) + * @member {String} customer-frg-id + */ + +CreateKey.prototype['customer-frg-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateKey.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateKey.prototype['description'] = undefined; +/** + * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. + * @member {Boolean} generate-self-signed-certificate + */ + +CreateKey.prototype['generate-self-signed-certificate'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateKey.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateKey.prototype['metadata'] = undefined; +/** + * Key name + * @member {String} name + */ + +CreateKey.prototype['name'] = undefined; +/** + * The number of fragments that the item will be split into (not includes customer fragment) + * @member {Number} split-level + * @default 3 + */ + +CreateKey.prototype['split-level'] = 3; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreateKey.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateKey.prototype['uid-token'] = undefined; +var _default = CreateKey; +exports["default"] = _default; + +/***/ }), + +/***/ 94943: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodCertOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodCertOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateKeyOutput model module. + * @module model/CreateKeyOutput + * @version 3.6.3 + */ +var CreateKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateKeyOutput. + * @alias module:model/CreateKeyOutput + */ + function CreateKeyOutput() { + _classCallCheck(this, CreateKeyOutput); + + CreateKeyOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateKeyOutput} obj Optional instance to populate. + * @return {module:model/CreateKeyOutput} The populated CreateKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateKeyOutput(); + + if (data.hasOwnProperty('display_id')) { + obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); + } + + if (data.hasOwnProperty('fragment_results')) { + obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); + } + + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateKeyOutput; +}(); +/** + * @member {String} display_id + */ + + +CreateKeyOutput.prototype['display_id'] = undefined; +/** + * @member {Array.} fragment_results + */ + +CreateKeyOutput.prototype['fragment_results'] = undefined; +/** + * @member {Number} item_id + */ + +CreateKeyOutput.prototype['item_id'] = undefined; +var _default = CreateKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 18825: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodGCP", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodGCP["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLdapTarget model module. + * @module model/CreateLdapTarget + * @version 3.6.3 + */ +var CreateLdapTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateLdapTarget. + * @alias module:model/CreateLdapTarget + * @param bindDn {String} Bind DN + * @param bindDnPassword {String} Bind DN Password + * @param ldapUrl {String} LDAP Server URL + * @param name {String} Target name + */ + function CreateLdapTarget(bindDn, bindDnPassword, ldapUrl, name) { + _classCallCheck(this, CreateLdapTarget); + + CreateLdapTarget.initialize(this, bindDn, bindDnPassword, ldapUrl, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLdapTarget, null, [{ + key: "initialize", + value: function initialize(obj, bindDn, bindDnPassword, ldapUrl, name) { + obj['bind-dn'] = bindDn; + obj['bind-dn-password'] = bindDnPassword; + obj['ldap-url'] = ldapUrl; + obj['name'] = name; + } + /** + * Constructs a CreateLdapTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLdapTarget} obj Optional instance to populate. + * @return {module:model/CreateLdapTarget} The populated CreateLdapTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLdapTarget(); + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('server-type')) { + obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateLdapTarget; +}(); +/** + * Bind DN + * @member {String} bind-dn + */ + + +CreateLdapTarget.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +CreateLdapTarget.prototype['bind-dn-password'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateLdapTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateLdapTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateLdapTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateLdapTarget.prototype['key'] = undefined; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ + +CreateLdapTarget.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ + +CreateLdapTarget.prototype['ldap-url'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateLdapTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateLdapTarget.prototype['name'] = undefined; +/** + * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory]. Default is OpenLDAP + * @member {String} server-type + * @default 'OpenLDAP' + */ + +CreateLdapTarget.prototype['server-type'] = 'OpenLDAP'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateLdapTarget.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +CreateLdapTarget.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateLdapTarget.prototype['uid-token'] = undefined; +var _default = CreateLdapTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 58604: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodK8S", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodK8S["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLdapTargetOutput model module. + * @module model/CreateLdapTargetOutput + * @version 3.6.3 + */ +var CreateLdapTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateLdapTargetOutput. + * @alias module:model/CreateLdapTargetOutput + */ + function CreateLdapTargetOutput() { + _classCallCheck(this, CreateLdapTargetOutput); + + CreateLdapTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLdapTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLdapTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateLdapTargetOutput} The populated CreateLdapTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLdapTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateLdapTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateLdapTargetOutput.prototype['target_id'] = undefined; +var _default = CreateLdapTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 71569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodK8SOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodK8SOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLinkedTarget model module. + * @module model/CreateLinkedTarget + * @version 3.6.3 + */ +var CreateLinkedTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateLinkedTarget. + * @alias module:model/CreateLinkedTarget + * @param name {String} Target name + */ + function CreateLinkedTarget(name) { + _classCallCheck(this, CreateLinkedTarget); + + CreateLinkedTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLinkedTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateLinkedTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLinkedTarget} obj Optional instance to populate. + * @return {module:model/CreateLinkedTarget} The populated CreateLinkedTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLinkedTarget(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('parent-target-name')) { + obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateLinkedTarget; +}(); +/** + * Description of the object + * @member {String} description + */ + + +CreateLinkedTarget.prototype['description'] = undefined; +/** + * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') + * @member {String} hosts + */ + +CreateLinkedTarget.prototype['hosts'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateLinkedTarget.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ + +CreateLinkedTarget.prototype['name'] = undefined; +/** + * The parent Target name + * @member {String} parent-target-name + */ + +CreateLinkedTarget.prototype['parent-target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateLinkedTarget.prototype['token'] = undefined; +/** + * Specifies the hosts type, relevant only when working without parent target + * @member {String} type + */ + +CreateLinkedTarget.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateLinkedTarget.prototype['uid-token'] = undefined; +var _default = CreateLinkedTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 55716: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodLDAP", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodLDAP["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLinkedTargetOutput model module. + * @module model/CreateLinkedTargetOutput + * @version 3.6.3 + */ +var CreateLinkedTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateLinkedTargetOutput. + * @alias module:model/CreateLinkedTargetOutput + */ + function CreateLinkedTargetOutput() { + _classCallCheck(this, CreateLinkedTargetOutput); + + CreateLinkedTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLinkedTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateLinkedTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLinkedTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateLinkedTargetOutput} The populated CreateLinkedTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLinkedTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateLinkedTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateLinkedTargetOutput.prototype['target_id'] = undefined; +var _default = CreateLinkedTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 92429: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodLDAPOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodLDAPOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateNativeK8STarget model module. + * @module model/CreateNativeK8STarget + * @version 3.6.3 + */ +var CreateNativeK8STarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateNativeK8STarget. + * @alias module:model/CreateNativeK8STarget + * @param k8sClusterCaCert {String} K8S cluster CA certificate + * @param k8sClusterEndpoint {String} K8S cluster URL endpoint + * @param k8sClusterToken {String} K8S cluster Bearer token + * @param name {String} Target name + */ + function CreateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + _classCallCheck(this, CreateNativeK8STarget); + + CreateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateNativeK8STarget, null, [{ + key: "initialize", + value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; + obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; + obj['k8s-cluster-token'] = k8sClusterToken; + obj['name'] = name; + } + /** + * Constructs a CreateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateNativeK8STarget} obj Optional instance to populate. + * @return {module:model/CreateNativeK8STarget} The populated CreateNativeK8STarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateNativeK8STarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateNativeK8STarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateNativeK8STarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateNativeK8STarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateNativeK8STarget.prototype['json'] = false; +/** + * K8S auth type [token/certificate] + * @member {String} k8s-auth-type + * @default 'token' + */ + +CreateNativeK8STarget.prototype['k8s-auth-type'] = 'token'; +/** + * Content of the k8 client certificate (PEM format) in a Base64 format + * @member {String} k8s-client-certificate + */ + +CreateNativeK8STarget.prototype['k8s-client-certificate'] = undefined; +/** + * Content of the k8 client private key (PEM format) in a Base64 format + * @member {String} k8s-client-key + */ + +CreateNativeK8STarget.prototype['k8s-client-key'] = undefined; +/** + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + * @default 'dummy_val' + */ + +CreateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; +/** + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + * @default 'dummy_val' + */ + +CreateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; +/** + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + * @default 'dummy_val' + */ + +CreateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateNativeK8STarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateNativeK8STarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateNativeK8STarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateNativeK8STarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateNativeK8STarget.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +CreateNativeK8STarget.prototype['use-gw-service-account'] = undefined; +var _default = CreateNativeK8STarget; +exports["default"] = _default; + +/***/ }), + +/***/ 33800: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodOAuth2", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodOAuth["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateNativeK8STargetOutput model module. + * @module model/CreateNativeK8STargetOutput + * @version 3.6.3 + */ +var CreateNativeK8STargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateNativeK8STargetOutput. + * @alias module:model/CreateNativeK8STargetOutput + */ + function CreateNativeK8STargetOutput() { + _classCallCheck(this, CreateNativeK8STargetOutput); + + CreateNativeK8STargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateNativeK8STargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateNativeK8STargetOutput} obj Optional instance to populate. + * @return {module:model/CreateNativeK8STargetOutput} The populated CreateNativeK8STargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateNativeK8STargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateNativeK8STargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateNativeK8STargetOutput.prototype['target_id'] = undefined; +var _default = CreateNativeK8STargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 8185: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodOIDC", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodOIDC["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateOidcApp model module. + * @module model/CreateOidcApp + * @version 3.6.3 + */ +var CreateOidcApp = /*#__PURE__*/function () { + /** + * Constructs a new CreateOidcApp. + * @alias module:model/CreateOidcApp + * @param name {String} OIDC application name + */ + function CreateOidcApp(name) { + _classCallCheck(this, CreateOidcApp); + + CreateOidcApp.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateOidcApp, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateOidcApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateOidcApp} obj Optional instance to populate. + * @return {module:model/CreateOidcApp} The populated CreateOidcApp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateOidcApp(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('permission-assignment')) { + obj['permission-assignment'] = _ApiClient["default"].convertToType(data['permission-assignment'], 'String'); + } + + if (data.hasOwnProperty('public')) { + obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); + } + + if (data.hasOwnProperty('redirect-uris')) { + obj['redirect-uris'] = _ApiClient["default"].convertToType(data['redirect-uris'], 'String'); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateOidcApp; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +CreateOidcApp.prototype['accessibility'] = 'regular'; +/** + * A comma separated list of allowed audiences + * @member {String} audience + */ + +CreateOidcApp.prototype['audience'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateOidcApp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateOidcApp.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateOidcApp.prototype['json'] = false; +/** + * The name of a key that used to encrypt the OIDC application (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateOidcApp.prototype['key'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateOidcApp.prototype['metadata'] = undefined; +/** + * OIDC application name + * @member {String} name + */ + +CreateOidcApp.prototype['name'] = undefined; +/** + * A json string defining the access permission assignment for this app + * @member {String} permission-assignment + */ + +CreateOidcApp.prototype['permission-assignment'] = undefined; +/** + * Set to true if the app is public (cannot keep secrets) + * @member {Boolean} public + */ + +CreateOidcApp.prototype['public'] = undefined; +/** + * A comma separated list of allowed redirect uris + * @member {String} redirect-uris + */ + +CreateOidcApp.prototype['redirect-uris'] = undefined; +/** + * A comma separated list of allowed scopes + * @member {String} scopes + * @default 'openid' + */ + +CreateOidcApp.prototype['scopes'] = 'openid'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateOidcApp.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateOidcApp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateOidcApp.prototype['uid-token'] = undefined; +var _default = CreateOidcApp; +exports["default"] = _default; + +/***/ }), + +/***/ 11324: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateOidcAppOutput model module. + * @module model/CreateOidcAppOutput + * @version 3.6.3 + */ +var CreateOidcAppOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateOidcAppOutput. + * @alias module:model/CreateOidcAppOutput + */ + function CreateOidcAppOutput() { + _classCallCheck(this, CreateOidcAppOutput); + + CreateOidcAppOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateOidcAppOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateOidcAppOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateOidcAppOutput} obj Optional instance to populate. + * @return {module:model/CreateOidcAppOutput} The populated CreateOidcAppOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateOidcAppOutput(); + + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); + } + + if (data.hasOwnProperty('client_secret')) { + obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateOidcAppOutput; +}(); +/** + * @member {String} client_id + */ + + +CreateOidcAppOutput.prototype['client_id'] = undefined; +/** + * @member {String} client_secret + */ + +CreateOidcAppOutput.prototype['client_secret'] = undefined; +/** + * @member {String} name + */ + +CreateOidcAppOutput.prototype['name'] = undefined; +var _default = CreateOidcAppOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 44204: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodSAML", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodSAML["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePKICertIssuer model module. + * @module model/CreatePKICertIssuer + * @version 3.6.3 + */ +var CreatePKICertIssuer = /*#__PURE__*/function () { + /** + * Constructs a new CreatePKICertIssuer. + * @alias module:model/CreatePKICertIssuer + * @param name {String} PKI certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode + * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + */ + function CreatePKICertIssuer(name, signerKeyName, ttl) { + _classCallCheck(this, CreatePKICertIssuer); + + CreatePKICertIssuer.initialize(this, name, signerKeyName, ttl); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePKICertIssuer, null, [{ + key: "initialize", + value: function initialize(obj, name, signerKeyName, ttl) { + obj['name'] = name; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; + } + /** + * Constructs a CreatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePKICertIssuer} obj Optional instance to populate. + * @return {module:model/CreatePKICertIssuer} The populated CreatePKICertIssuer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePKICertIssuer(); + + if (data.hasOwnProperty('allow-any-name')) { + obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); + } + + if (data.hasOwnProperty('allow-copy-ext-from-csr')) { + obj['allow-copy-ext-from-csr'] = _ApiClient["default"].convertToType(data['allow-copy-ext-from-csr'], 'Boolean'); + } + + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); + } + + if (data.hasOwnProperty('allowed-extra-extensions')) { + obj['allowed-extra-extensions'] = _ApiClient["default"].convertToType(data['allowed-extra-extensions'], 'String'); + } + + if (data.hasOwnProperty('allowed-uri-sans')) { + obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); + } + + if (data.hasOwnProperty('ca-target')) { + obj['ca-target'] = _ApiClient["default"].convertToType(data['ca-target'], 'String'); + } + + if (data.hasOwnProperty('client-flag')) { + obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('code-signing-flag')) { + obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('create-private-crl')) { + obj['create-private-crl'] = _ApiClient["default"].convertToType(data['create-private-crl'], 'Boolean'); + } + + if (data.hasOwnProperty('create-public-crl')) { + obj['create-public-crl'] = _ApiClient["default"].convertToType(data['create-public-crl'], 'Boolean'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('destination-path')) { + obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); + } + + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } + + if (data.hasOwnProperty('gw-cluster-url')) { + obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); + } + + if (data.hasOwnProperty('is-ca')) { + obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-usage')) { + obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('not-enforce-hostnames')) { + obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); + } + + if (data.hasOwnProperty('not-require-cn')) { + obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); + } + + if (data.hasOwnProperty('organizational-units')) { + obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); + } + + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); + } + + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + } + + if (data.hasOwnProperty('protect-certificates')) { + obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } + + if (data.hasOwnProperty('server-flag')) { + obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('street-address')) { + obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreatePKICertIssuer; +}(); +/** + * If set, clients can request certificates for any CN + * @member {Boolean} allow-any-name + */ + + +CreatePKICertIssuer.prototype['allow-any-name'] = undefined; +/** + * If set, will allow copying the extra extensions from the csr file (if given) + * @member {Boolean} allow-copy-ext-from-csr + */ + +CreatePKICertIssuer.prototype['allow-copy-ext-from-csr'] = undefined; +/** + * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains + * @member {Boolean} allow-subdomains + */ + +CreatePKICertIssuer.prototype['allow-subdomains'] = undefined; +/** + * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) + * @member {String} allowed-domains + */ + +CreatePKICertIssuer.prototype['allowed-domains'] = undefined; +/** + * A json string containing the allowed extra extensions for the pki cert issuer + * @member {String} allowed-extra-extensions + */ + +CreatePKICertIssuer.prototype['allowed-extra-extensions'] = undefined; +/** + * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) + * @member {String} allowed-uri-sans + */ + +CreatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; +/** + * The name of an existing CA target to attach this PKI Certificate Issuer to, required in Public CA mode + * @member {String} ca-target + */ + +CreatePKICertIssuer.prototype['ca-target'] = undefined; +/** + * If set, certificates will be flagged for client auth use + * @member {Boolean} client-flag + */ + +CreatePKICertIssuer.prototype['client-flag'] = undefined; +/** + * If set, certificates will be flagged for code signing use + * @member {Boolean} code-signing-flag + */ + +CreatePKICertIssuer.prototype['code-signing-flag'] = undefined; +/** + * A comma-separated list of countries that will be set in the issued certificate + * @member {String} country + */ + +CreatePKICertIssuer.prototype['country'] = undefined; +/** + * Set this to allow the issuer will expose a CRL endpoint in the Gateway + * @member {Boolean} create-private-crl + */ + +CreatePKICertIssuer.prototype['create-private-crl'] = undefined; +/** + * Set this to allow the cert issuer will expose a public CRL endpoint + * @member {Boolean} create-public-crl + */ + +CreatePKICertIssuer.prototype['create-public-crl'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreatePKICertIssuer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreatePKICertIssuer.prototype['description'] = undefined; +/** + * A path in which to save generated certificates + * @member {String} destination-path + */ + +CreatePKICertIssuer.prototype['destination-path'] = undefined; +/** + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in + */ + +CreatePKICertIssuer.prototype['expiration-event-in'] = undefined; +/** + * The GW cluster URL to issue the certificate from, required in Public CA mode or to allow CRLs on private CA + * @member {String} gw-cluster-url + */ + +CreatePKICertIssuer.prototype['gw-cluster-url'] = undefined; +/** + * If set, the basic constraints extension will be added to certificate + * @member {Boolean} is-ca + */ + +CreatePKICertIssuer.prototype['is-ca'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreatePKICertIssuer.prototype['json'] = false; +/** + * key-usage + * @member {String} key-usage + * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' + */ + +CreatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; +/** + * A comma-separated list of localities that will be set in the issued certificate + * @member {String} locality + */ + +CreatePKICertIssuer.prototype['locality'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreatePKICertIssuer.prototype['metadata'] = undefined; +/** + * PKI certificate issuer name + * @member {String} name + */ + +CreatePKICertIssuer.prototype['name'] = undefined; +/** + * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name + * @member {Boolean} not-enforce-hostnames + */ + +CreatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; +/** + * If set, clients can request certificates without a CN + * @member {Boolean} not-require-cn + */ + +CreatePKICertIssuer.prototype['not-require-cn'] = undefined; +/** + * A comma-separated list of organizational units (OU) that will be set in the issued certificate + * @member {String} organizational-units + */ + +CreatePKICertIssuer.prototype['organizational-units'] = undefined; +/** + * A comma-separated list of organizations (O) that will be set in the issued certificate + * @member {String} organizations + */ + +CreatePKICertIssuer.prototype['organizations'] = undefined; +/** + * A comma-separated list of postal codes that will be set in the issued certificate + * @member {String} postal-code + */ + +CreatePKICertIssuer.prototype['postal-code'] = undefined; +/** + * Whether to protect generated certificates from deletion + * @member {Boolean} protect-certificates + */ + +CreatePKICertIssuer.prototype['protect-certificates'] = undefined; +/** + * A comma-separated list of provinces that will be set in the issued certificate + * @member {String} province + */ + +CreatePKICertIssuer.prototype['province'] = undefined; +/** + * If set, certificates will be flagged for server auth use + * @member {Boolean} server-flag + */ + +CreatePKICertIssuer.prototype['server-flag'] = undefined; +/** + * A key to sign the certificate with, required in Private CA mode + * @member {String} signer-key-name + * @default 'dummy_signer_key' + */ + +CreatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; +/** + * A comma-separated list of street addresses that will be set in the issued certificate + * @member {String} street-address + */ + +CreatePKICertIssuer.prototype['street-address'] = undefined; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreatePKICertIssuer.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreatePKICertIssuer.prototype['token'] = undefined; +/** + * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + * @member {Number} ttl + */ + +CreatePKICertIssuer.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreatePKICertIssuer.prototype['uid-token'] = undefined; +var _default = CreatePKICertIssuer; +exports["default"] = _default; + +/***/ }), + +/***/ 95693: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAuthMethodUniversalIdentity", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodUniversalIdentity["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePKICertIssuerOutput model module. + * @module model/CreatePKICertIssuerOutput + * @version 3.6.3 + */ +var CreatePKICertIssuerOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreatePKICertIssuerOutput. + * @alias module:model/CreatePKICertIssuerOutput + */ + function CreatePKICertIssuerOutput() { + _classCallCheck(this, CreatePKICertIssuerOutput); + + CreatePKICertIssuerOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePKICertIssuerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePKICertIssuerOutput} obj Optional instance to populate. + * @return {module:model/CreatePKICertIssuerOutput} The populated CreatePKICertIssuerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePKICertIssuerOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreatePKICertIssuerOutput; +}(); +/** + * @member {String} name + */ + + +CreatePKICertIssuerOutput.prototype['name'] = undefined; +var _default = CreatePKICertIssuerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 15224: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAzureTarget", ({ - enumerable: true, - get: function get() { - return _UpdateAzureTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePingTarget model module. + * @module model/CreatePingTarget + * @version 3.6.3 + */ +var CreatePingTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreatePingTarget. + * @alias module:model/CreatePingTarget + * @param name {String} Target name + */ + function CreatePingTarget(name) { + _classCallCheck(this, CreatePingTarget); + + CreatePingTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePingTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreatePingTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePingTarget} obj Optional instance to populate. + * @return {module:model/CreatePingTarget} The populated CreatePingTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePingTarget(); + + if (data.hasOwnProperty('administrative-port')) { + obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); + } + + if (data.hasOwnProperty('authorization-port')) { + obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('privileged-user')) { + obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreatePingTarget; +}(); +/** + * Ping Federate administrative port + * @member {String} administrative-port + * @default '9999' + */ + + +CreatePingTarget.prototype['administrative-port'] = '9999'; +/** + * Ping Federate authorization port + * @member {String} authorization-port + * @default '9031' + */ + +CreatePingTarget.prototype['authorization-port'] = '9031'; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreatePingTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreatePingTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreatePingTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreatePingTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreatePingTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreatePingTarget.prototype['name'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} password + */ + +CreatePingTarget.prototype['password'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +CreatePingTarget.prototype['ping-url'] = undefined; +/** + * Ping Federate privileged user + * @member {String} privileged-user + */ + +CreatePingTarget.prototype['privileged-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreatePingTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreatePingTarget.prototype['uid-token'] = undefined; +var _default = CreatePingTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 57585: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateAzureTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAzureTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePingTargetOutput model module. + * @module model/CreatePingTargetOutput + * @version 3.6.3 + */ +var CreatePingTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreatePingTargetOutput. + * @alias module:model/CreatePingTargetOutput + */ + function CreatePingTargetOutput() { + _classCallCheck(this, CreatePingTargetOutput); + + CreatePingTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePingTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreatePingTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePingTargetOutput} obj Optional instance to populate. + * @return {module:model/CreatePingTargetOutput} The populated CreatePingTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePingTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreatePingTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreatePingTargetOutput.prototype['target_id'] = undefined; +var _default = CreatePingTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 27074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateCertificateOutput", ({ - enumerable: true, - get: function get() { - return _UpdateCertificateOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRabbitMQTarget model module. + * @module model/CreateRabbitMQTarget + * @version 3.6.3 + */ +var CreateRabbitMQTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateRabbitMQTarget. + * @alias module:model/CreateRabbitMQTarget + * @param name {String} Target name + */ + function CreateRabbitMQTarget(name) { + _classCallCheck(this, CreateRabbitMQTarget); + + CreateRabbitMQTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRabbitMQTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRabbitMQTarget} obj Optional instance to populate. + * @return {module:model/CreateRabbitMQTarget} The populated CreateRabbitMQTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRabbitMQTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-password')) { + obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-user')) { + obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRabbitMQTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateRabbitMQTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateRabbitMQTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateRabbitMQTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateRabbitMQTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateRabbitMQTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateRabbitMQTarget.prototype['name'] = undefined; +/** + * @member {String} rabbitmq-server-password + */ + +CreateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; +/** + * @member {String} rabbitmq-server-uri + */ + +CreateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; +/** + * @member {String} rabbitmq-server-user + */ + +CreateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateRabbitMQTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateRabbitMQTarget.prototype['uid-token'] = undefined; +var _default = CreateRabbitMQTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 69223: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateCertificateValue", ({ - enumerable: true, - get: function get() { - return _UpdateCertificateValue["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRabbitMQTargetOutput model module. + * @module model/CreateRabbitMQTargetOutput + * @version 3.6.3 + */ +var CreateRabbitMQTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateRabbitMQTargetOutput. + * @alias module:model/CreateRabbitMQTargetOutput + */ + function CreateRabbitMQTargetOutput() { + _classCallCheck(this, CreateRabbitMQTargetOutput); + + CreateRabbitMQTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRabbitMQTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRabbitMQTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateRabbitMQTargetOutput} The populated CreateRabbitMQTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRabbitMQTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateRabbitMQTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateRabbitMQTargetOutput.prototype['target_id'] = undefined; +var _default = CreateRabbitMQTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 54533: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateDBTarget", ({ - enumerable: true, - get: function get() { - return _UpdateDBTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRole model module. + * @module model/CreateRole + * @version 3.6.3 + */ +var CreateRole = /*#__PURE__*/function () { + /** + * Constructs a new CreateRole. + * @alias module:model/CreateRole + * @param name {String} Role name + */ + function CreateRole(name) { + _classCallCheck(this, CreateRole); + + CreateRole.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRole, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRole} obj Optional instance to populate. + * @return {module:model/CreateRole} The populated CreateRole instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRole(); + + if (data.hasOwnProperty('analytics-access')) { + obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); + } + + if (data.hasOwnProperty('audit-access')) { + obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('event-center-access')) { + obj['event-center-access'] = _ApiClient["default"].convertToType(data['event-center-access'], 'String'); + } + + if (data.hasOwnProperty('event-forwarders-access')) { + obj['event-forwarders-access'] = _ApiClient["default"].convertToType(data['event-forwarders-access'], 'String'); + } + + if (data.hasOwnProperty('gw-analytics-access')) { + obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('sra-reports-access')) { + obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('usage-reports-access')) { + obj['usage-reports-access'] = _ApiClient["default"].convertToType(data['usage-reports-access'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRole; +}(); +/** + * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} analytics-access + */ + + +CreateRole.prototype['analytics-access'] = undefined; +/** + * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. + * @member {String} audit-access + */ + +CreateRole.prototype['audit-access'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateRole.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateRole.prototype['description'] = undefined; +/** + * Allow this role to view Event Center. Currently only 'none', 'own' and 'all' values are supported + * @member {String} event-center-access + */ + +CreateRole.prototype['event-center-access'] = undefined; +/** + * Allow this role to manage Event Forwarders. Currently only 'none' and 'all' values are supported. + * @member {String} event-forwarders-access + */ + +CreateRole.prototype['event-forwarders-access'] = undefined; +/** + * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} gw-analytics-access + */ + +CreateRole.prototype['gw-analytics-access'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateRole.prototype['json'] = false; +/** + * Role name + * @member {String} name + */ + +CreateRole.prototype['name'] = undefined; +/** + * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. + * @member {String} sra-reports-access + */ + +CreateRole.prototype['sra-reports-access'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateRole.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateRole.prototype['uid-token'] = undefined; +/** + * Allow this role to view Usage Report. Currently only 'none' and 'all' values are supported. + * @member {String} usage-reports-access + */ + +CreateRole.prototype['usage-reports-access'] = undefined; +var _default = CreateRole; +exports["default"] = _default; + +/***/ }), + +/***/ 43974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateDBTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateDBTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRoleAuthMethodAssocOutput model module. + * @module model/CreateRoleAuthMethodAssocOutput + * @version 3.6.3 + */ +var CreateRoleAuthMethodAssocOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateRoleAuthMethodAssocOutput. + * CreateRoleAuthMethodAssocOutput defines output of CreateRoleAuthMethodAssoc operation. + * @alias module:model/CreateRoleAuthMethodAssocOutput + */ + function CreateRoleAuthMethodAssocOutput() { + _classCallCheck(this, CreateRoleAuthMethodAssocOutput); + + CreateRoleAuthMethodAssocOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRoleAuthMethodAssocOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateRoleAuthMethodAssocOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRoleAuthMethodAssocOutput} obj Optional instance to populate. + * @return {module:model/CreateRoleAuthMethodAssocOutput} The populated CreateRoleAuthMethodAssocOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRoleAuthMethodAssocOutput(); + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRoleAuthMethodAssocOutput; +}(); +/** + * @member {String} assoc_id + */ + + +CreateRoleAuthMethodAssocOutput.prototype['assoc_id'] = undefined; +var _default = CreateRoleAuthMethodAssocOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 37444: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateDBTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateDBTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRotatedSecret model module. + * @module model/CreateRotatedSecret + * @version 3.6.3 + */ +var CreateRotatedSecret = /*#__PURE__*/function () { + /** + * Constructs a new CreateRotatedSecret. + * createRotatedSecret is a command that creates a rotated secret [Deprecated: Use rotated-secret-create commands] + * @alias module:model/CreateRotatedSecret + * @param name {String} Secret name + * @param rotatorType {String} Rotator Type + * @param targetName {String} Target name + */ + function CreateRotatedSecret(name, rotatorType, targetName) { + _classCallCheck(this, CreateRotatedSecret); + + CreateRotatedSecret.initialize(this, name, rotatorType, targetName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRotatedSecret, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } + /** + * Constructs a CreateRotatedSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRotatedSecret} obj Optional instance to populate. + * @return {module:model/CreateRotatedSecret} The populated CreateRotatedSecret instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRotatedSecret(); + + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } + + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('application-id')) { + obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); + } + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } + + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); + } + + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); + } + + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-creds-type')) { + obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); + } + + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + } + + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRotatedSecret; +}(); +/** + * @member {String} ProviderType + */ + + +CreateRotatedSecret.prototype['ProviderType'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + +CreateRotatedSecret.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +CreateRotatedSecret.prototype['api-key'] = undefined; +/** + * ApplicationId (used in azure) + * @member {String} application-id + */ + +CreateRotatedSecret.prototype['application-id'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +CreateRotatedSecret.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +CreateRotatedSecret.prototype['auto-rotate'] = undefined; +/** + * Aws Region (relevant only for aws) + * @member {String} aws-region + * @default 'us-east-2' + */ + +CreateRotatedSecret.prototype['aws-region'] = 'us-east-2'; +/** + * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) + * @member {String} custom-payload + */ + +CreateRotatedSecret.prototype['custom-payload'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateRotatedSecret.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateRotatedSecret.prototype['description'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +CreateRotatedSecret.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ + +CreateRotatedSecret.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ + +CreateRotatedSecret.prototype['gcp-service-account-key-id'] = undefined; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ + +CreateRotatedSecret.prototype['grace-rotation'] = undefined; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ + +CreateRotatedSecret.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateRotatedSecret.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateRotatedSecret.prototype['key'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateRotatedSecret.prototype['metadata'] = undefined; +/** + * Secret name + * @member {String} name + */ + +CreateRotatedSecret.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +CreateRotatedSecret.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +CreateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +CreateRotatedSecret.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +CreateRotatedSecret.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC. Default rotation-hour is 14:00 + * @member {Number} rotation-hour + */ + +CreateRotatedSecret.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +CreateRotatedSecret.prototype['rotation-interval'] = undefined; +/** + * @member {String} rotator-creds-type + */ + +CreateRotatedSecret.prototype['rotator-creds-type'] = undefined; +/** + * Custom rotation command (relevant only for ssh target) + * @member {String} rotator-custom-cmd + */ + +CreateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; +/** + * Rotator Type + * @member {String} rotator-type + */ + +CreateRotatedSecret.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ + +CreateRotatedSecret.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users (relevant only for rdp) + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-allow-external-user'] = false; +/** + * The AWS account id (relevant only for aws) + * @member {String} secure-access-aws-account-id + */ + +CreateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +CreateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +CreateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +CreateRotatedSecret.prototype['secure-access-db-name'] = undefined; +/** + * The db schema (relevant only for mssql or postgresql) + * @member {String} secure-access-db-schema + */ + +CreateRotatedSecret.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +CreateRotatedSecret.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +CreateRotatedSecret.prototype['secure-access-host'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) + * @member {String} secure-access-rdp-domain + */ + +CreateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username (relevant only for rdp) + * @member {String} secure-access-rdp-user + */ + +CreateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +CreateRotatedSecret.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-web-proxy'] = false; +/** + * Deprecated: use RotatedPassword + * @member {String} ssh-password + */ + +CreateRotatedSecret.prototype['ssh-password'] = undefined; +/** + * Deprecated: use RotatedUser + * @member {String} ssh-username + */ + +CreateRotatedSecret.prototype['ssh-username'] = undefined; +/** + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) + * @member {String} storage-account-key-name + */ + +CreateRotatedSecret.prototype['storage-account-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateRotatedSecret.prototype['tags'] = undefined; +/** + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target + */ + +CreateRotatedSecret.prototype['target'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +CreateRotatedSecret.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateRotatedSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateRotatedSecret.prototype['uid-token'] = undefined; +/** + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' + */ + +CreateRotatedSecret.prototype['user-attribute'] = 'cn'; +/** + * LDAP User Base DN + * @member {String} user-dn + */ + +CreateRotatedSecret.prototype['user-dn'] = undefined; +var _default = CreateRotatedSecret; +exports["default"] = _default; + +/***/ }), + +/***/ 54869: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateDockerhubTarget", ({ - enumerable: true, - get: function get() { - return _UpdateDockerhubTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRotatedSecretOutput model module. + * @module model/CreateRotatedSecretOutput + * @version 3.6.3 + */ +var CreateRotatedSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateRotatedSecretOutput. + * @alias module:model/CreateRotatedSecretOutput + */ + function CreateRotatedSecretOutput() { + _classCallCheck(this, CreateRotatedSecretOutput); + + CreateRotatedSecretOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRotatedSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRotatedSecretOutput} obj Optional instance to populate. + * @return {module:model/CreateRotatedSecretOutput} The populated CreateRotatedSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRotatedSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRotatedSecretOutput; +}(); +/** + * @member {String} name + */ + + +CreateRotatedSecretOutput.prototype['name'] = undefined; +var _default = CreateRotatedSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 8218: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateDockerhubTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateDockerhubTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHCertIssuer model module. + * @module model/CreateSSHCertIssuer + * @version 3.6.3 + */ +var CreateSSHCertIssuer = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHCertIssuer. + * @alias module:model/CreateSSHCertIssuer + * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu + * @param name {String} SSH certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with + * @param ttl {Number} The requested Time To Live for the certificate, in seconds + */ + function CreateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { + _classCallCheck(this, CreateSSHCertIssuer); + + CreateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHCertIssuer, null, [{ + key: "initialize", + value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { + obj['allowed-users'] = allowedUsers; + obj['name'] = name; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; + } + /** + * Constructs a CreateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHCertIssuer} obj Optional instance to populate. + * @return {module:model/CreateSSHCertIssuer} The populated CreateSSHCertIssuer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHCertIssuer(); + + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } + + if (data.hasOwnProperty('allowed-users')) { + obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('principals')) { + obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-api')) { + obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-ssh')) { + obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-ssh-creds-user')) { + obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-use-internal-bastion')) { + obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSSHCertIssuer; +}(); +/** + * @member {String} ProviderType + */ + + +CreateSSHCertIssuer.prototype['ProviderType'] = undefined; +/** + * Users allowed to fetch the certificate, e.g root,ubuntu + * @member {String} allowed-users + */ + +CreateSSHCertIssuer.prototype['allowed-users'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateSSHCertIssuer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSSHCertIssuer.prototype['description'] = undefined; +/** + * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" + * @member {Object.} extensions + */ + +CreateSSHCertIssuer.prototype['extensions'] = undefined; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ + +CreateSSHCertIssuer.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSSHCertIssuer.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateSSHCertIssuer.prototype['metadata'] = undefined; +/** + * SSH certificate issuer name + * @member {String} name + */ + +CreateSSHCertIssuer.prototype['name'] = undefined; +/** + * Signed certificates with principal, e.g example_role1,example_role2 + * @member {String} principals + */ + +CreateSSHCertIssuer.prototype['principals'] = undefined; +/** + * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 + * @member {String} secure-access-bastion-api + */ + +CreateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; +/** + * Bastion's SSH server. E.g. my.bastion:22 + * @member {String} secure-access-bastion-ssh + */ + +CreateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +CreateSSHCertIssuer.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +CreateSSHCertIssuer.prototype['secure-access-host'] = undefined; +/** + * SSH username to connect to target server, must be in 'Allowed Users' list + * @member {String} secure-access-ssh-creds-user + */ + +CreateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; +/** + * Use internal SSH Bastion + * @member {Boolean} secure-access-use-internal-bastion + */ + +CreateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; +/** + * A key to sign the certificate with + * @member {String} signer-key-name + */ + +CreateSSHCertIssuer.prototype['signer-key-name'] = undefined; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreateSSHCertIssuer.prototype['tag'] = undefined; +/** + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target + */ + +CreateSSHCertIssuer.prototype['target'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSSHCertIssuer.prototype['token'] = undefined; +/** + * The requested Time To Live for the certificate, in seconds + * @member {Number} ttl + */ + +CreateSSHCertIssuer.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSSHCertIssuer.prototype['uid-token'] = undefined; +var _default = CreateSSHCertIssuer; +exports["default"] = _default; + +/***/ }), + +/***/ 87119: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateEKSTarget", ({ - enumerable: true, - get: function get() { - return _UpdateEKSTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHCertIssuerOutput model module. + * @module model/CreateSSHCertIssuerOutput + * @version 3.6.3 + */ +var CreateSSHCertIssuerOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHCertIssuerOutput. + * @alias module:model/CreateSSHCertIssuerOutput + */ + function CreateSSHCertIssuerOutput() { + _classCallCheck(this, CreateSSHCertIssuerOutput); + + CreateSSHCertIssuerOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHCertIssuerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHCertIssuerOutput} obj Optional instance to populate. + * @return {module:model/CreateSSHCertIssuerOutput} The populated CreateSSHCertIssuerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHCertIssuerOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSSHCertIssuerOutput; +}(); +/** + * @member {String} name + */ + + +CreateSSHCertIssuerOutput.prototype['name'] = undefined; +var _default = CreateSSHCertIssuerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 76842: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateEKSTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateEKSTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHTarget model module. + * @module model/CreateSSHTarget + * @version 3.6.3 + */ +var CreateSSHTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHTarget. + * @alias module:model/CreateSSHTarget + * @param name {String} Target name + */ + function CreateSSHTarget(name) { + _classCallCheck(this, CreateSSHTarget); + + CreateSSHTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateSSHTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHTarget} obj Optional instance to populate. + * @return {module:model/CreateSSHTarget} The populated CreateSSHTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-password')) { + obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSSHTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateSSHTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSSHTarget.prototype['description'] = undefined; +/** + * SSH host name + * @member {String} host + */ + +CreateSSHTarget.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSSHTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateSSHTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateSSHTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateSSHTarget.prototype['name'] = undefined; +/** + * SSH port + * @member {String} port + * @default '22' + */ + +CreateSSHTarget.prototype['port'] = '22'; +/** + * SSH private key + * @member {String} private-key + */ + +CreateSSHTarget.prototype['private-key'] = undefined; +/** + * SSH private key password + * @member {String} private-key-password + */ + +CreateSSHTarget.prototype['private-key-password'] = undefined; +/** + * SSH password to rotate + * @member {String} ssh-password + */ + +CreateSSHTarget.prototype['ssh-password'] = undefined; +/** + * SSH username + * @member {String} ssh-username + */ + +CreateSSHTarget.prototype['ssh-username'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSSHTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSSHTarget.prototype['uid-token'] = undefined; +var _default = CreateSSHTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 93855: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateEventForwarder", ({ - enumerable: true, - get: function get() { - return _UpdateEventForwarder["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHTargetOutput model module. + * @module model/CreateSSHTargetOutput + * @version 3.6.3 + */ +var CreateSSHTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHTargetOutput. + * @alias module:model/CreateSSHTargetOutput + */ + function CreateSSHTargetOutput() { + _classCallCheck(this, CreateSSHTargetOutput); + + CreateSSHTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateSSHTargetOutput} The populated CreateSSHTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateSSHTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateSSHTargetOutput.prototype['target_id'] = undefined; +var _default = CreateSSHTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 51871: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGKETarget", ({ - enumerable: true, - get: function get() { - return _UpdateGKETarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSalesforceTarget model module. + * @module model/CreateSalesforceTarget + * @version 3.6.3 + */ +var CreateSalesforceTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateSalesforceTarget. + * @alias module:model/CreateSalesforceTarget + * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') + * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce + * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce + * @param name {String} Target name + * @param tenantUrl {String} Url of the Salesforce tenant + */ + function CreateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { + _classCallCheck(this, CreateSalesforceTarget); + + CreateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSalesforceTarget, null, [{ + key: "initialize", + value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { + obj['auth-flow'] = authFlow; + obj['client-id'] = clientId; + obj['email'] = email; + obj['name'] = name; + obj['tenant-url'] = tenantUrl; + } + /** + * Constructs a CreateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSalesforceTarget} obj Optional instance to populate. + * @return {module:model/CreateSalesforceTarget} The populated CreateSalesforceTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSalesforceTarget(); + + if (data.hasOwnProperty('app-private-key-data')) { + obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); + } + + if (data.hasOwnProperty('auth-flow')) { + obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); + } + + if (data.hasOwnProperty('ca-cert-data')) { + obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); + } + + if (data.hasOwnProperty('ca-cert-name')) { + obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('security-token')) { + obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); + } + + if (data.hasOwnProperty('tenant-url')) { + obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSalesforceTarget; +}(); +/** + * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) + * @member {String} app-private-key-data + */ + + +CreateSalesforceTarget.prototype['app-private-key-data'] = undefined; +/** + * type of the auth flow ('jwt' / 'user-password') + * @member {String} auth-flow + */ + +CreateSalesforceTarget.prototype['auth-flow'] = undefined; +/** + * Base64 encoded PEM cert to use when uploading a new key to Salesforce + * @member {String} ca-cert-data + */ + +CreateSalesforceTarget.prototype['ca-cert-data'] = undefined; +/** + * name of the certificate in Salesforce tenant to use when uploading new key + * @member {String} ca-cert-name + */ + +CreateSalesforceTarget.prototype['ca-cert-name'] = undefined; +/** + * Client ID of the oauth2 app to use for connecting to Salesforce + * @member {String} client-id + */ + +CreateSalesforceTarget.prototype['client-id'] = undefined; +/** + * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) + * @member {String} client-secret + */ + +CreateSalesforceTarget.prototype['client-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateSalesforceTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSalesforceTarget.prototype['description'] = undefined; +/** + * The email of the user attached to the oauth2 app used for connecting to Salesforce + * @member {String} email + */ + +CreateSalesforceTarget.prototype['email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSalesforceTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateSalesforceTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateSalesforceTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateSalesforceTarget.prototype['name'] = undefined; +/** + * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} password + */ + +CreateSalesforceTarget.prototype['password'] = undefined; +/** + * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} security-token + */ + +CreateSalesforceTarget.prototype['security-token'] = undefined; +/** + * Url of the Salesforce tenant + * @member {String} tenant-url + */ + +CreateSalesforceTarget.prototype['tenant-url'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSalesforceTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSalesforceTarget.prototype['uid-token'] = undefined; +var _default = CreateSalesforceTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 87654: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGKETargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGKETargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSalesforceTargetOutput model module. + * @module model/CreateSalesforceTargetOutput + * @version 3.6.3 + */ +var CreateSalesforceTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSalesforceTargetOutput. + * @alias module:model/CreateSalesforceTargetOutput + */ + function CreateSalesforceTargetOutput() { + _classCallCheck(this, CreateSalesforceTargetOutput); + + CreateSalesforceTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSalesforceTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSalesforceTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateSalesforceTargetOutput} The populated CreateSalesforceTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSalesforceTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateSalesforceTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateSalesforceTargetOutput.prototype['target_id'] = undefined; +var _default = CreateSalesforceTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 81301: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGcpTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGcpTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSecret model module. + * @module model/CreateSecret + * @version 3.6.3 + */ +var CreateSecret = /*#__PURE__*/function () { + /** + * Constructs a new CreateSecret. + * @alias module:model/CreateSecret + * @param name {String} Secret name + * @param value {String} The secret value (relevant only for type 'generic') + */ + function CreateSecret(name, value) { + _classCallCheck(this, CreateSecret); + + CreateSecret.initialize(this, name, value); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSecret, null, [{ + key: "initialize", + value: function initialize(obj, name, value) { + obj['name'] = name; + obj['value'] = value; + } + /** + * Constructs a CreateSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSecret} obj Optional instance to populate. + * @return {module:model/CreateSecret} The populated CreateSecret instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSecret(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('change-event')) { + obj['change-event'] = _ApiClient["default"].convertToType(data['change-event'], 'String'); + } + + if (data.hasOwnProperty('custom-field')) { + obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } + + if (data.hasOwnProperty('inject-url')) { + obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('multiline_value')) { + obj['multiline_value'] = _ApiClient["default"].convertToType(data['multiline_value'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-ssh-creds')) { + obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); + } + + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSecret; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +CreateSecret.prototype['accessibility'] = 'regular'; +/** + * Trigger an event when a secret value changed [true/false] (Relevant only for Static Secret) + * @member {String} change-event + */ + +CreateSecret.prototype['change-event'] = undefined; +/** + * For Password Management use, additional fields + * @member {Object.} custom-field + */ + +CreateSecret.prototype['custom-field'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateSecret.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSecret.prototype['description'] = undefined; +/** + * Secret format [text/json] (relevant only for type 'generic') + * @member {String} format + * @default 'text' + */ + +CreateSecret.prototype['format'] = 'text'; +/** + * For Password Management use, reflect the website context + * @member {Array.} inject-url + */ + +CreateSecret.prototype['inject-url'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSecret.prototype['json'] = false; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateSecret.prototype['max-versions'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateSecret.prototype['metadata'] = undefined; +/** + * The provided value is a multiline value (separated by '\\n') + * @member {Boolean} multiline_value + */ + +CreateSecret.prototype['multiline_value'] = undefined; +/** + * Secret name + * @member {String} name + */ + +CreateSecret.prototype['name'] = undefined; +/** + * For Password Management use, additional fields + * @member {String} password + */ + +CreateSecret.prototype['password'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ + +CreateSecret.prototype['protection_key'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +CreateSecret.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +CreateSecret.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +CreateSecret.prototype['secure-access-host'] = undefined; +/** + * Remote Desktop Username + * @member {String} secure-access-rdp-user + */ + +CreateSecret.prototype['secure-access-rdp-user'] = undefined; +/** + * Static-Secret values contains SSH Credentials, either Private Key or Password [password/private-key] + * @member {String} secure-access-ssh-creds + */ + +CreateSecret.prototype['secure-access-ssh-creds'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ + +CreateSecret.prototype['secure-access-ssh-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +CreateSecret.prototype['secure-access-url'] = undefined; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +CreateSecret.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +CreateSecret.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateSecret.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSecret.prototype['token'] = undefined; +/** + * The secret sub type [generic/password] + * @member {String} type + * @default 'generic' + */ + +CreateSecret.prototype['type'] = 'generic'; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSecret.prototype['uid-token'] = undefined; +/** + * For Password Management use + * @member {String} username + */ + +CreateSecret.prototype['username'] = undefined; +/** + * The secret value (relevant only for type 'generic') + * @member {String} value + */ + +CreateSecret.prototype['value'] = undefined; +var _default = CreateSecret; +exports["default"] = _default; + +/***/ }), + +/***/ 44928: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGcpTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGcpTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSecretOutput model module. + * @module model/CreateSecretOutput + * @version 3.6.3 + */ +var CreateSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSecretOutput. + * @alias module:model/CreateSecretOutput + */ + function CreateSecretOutput() { + _classCallCheck(this, CreateSecretOutput); + + CreateSecretOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSecretOutput} obj Optional instance to populate. + * @return {module:model/CreateSecretOutput} The populated CreateSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSecretOutput; +}(); +/** + * @member {String} name + */ + + +CreateSecretOutput.prototype['name'] = undefined; +var _default = CreateSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 44645: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGithubTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGithubTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateTargetItemAssocOutput model module. + * @module model/CreateTargetItemAssocOutput + * @version 3.6.3 + */ +var CreateTargetItemAssocOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateTargetItemAssocOutput. + * CreateTargetItemAssocOutput defines output of CreateTargetItemAssoc operation. + * @alias module:model/CreateTargetItemAssocOutput + */ + function CreateTargetItemAssocOutput() { + _classCallCheck(this, CreateTargetItemAssocOutput); + + CreateTargetItemAssocOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateTargetItemAssocOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateTargetItemAssocOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateTargetItemAssocOutput} obj Optional instance to populate. + * @return {module:model/CreateTargetItemAssocOutput} The populated CreateTargetItemAssocOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateTargetItemAssocOutput(); + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateTargetItemAssocOutput; +}(); +/** + * @member {String} assoc_id + */ + + +CreateTargetItemAssocOutput.prototype['assoc_id'] = undefined; +var _default = CreateTargetItemAssocOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 11404: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGithubTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGithubTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateTokenizer model module. + * @module model/CreateTokenizer + * @version 3.6.3 + */ +var CreateTokenizer = /*#__PURE__*/function () { + /** + * Constructs a new CreateTokenizer. + * createTokenizer is a command that creates a tokenizer item + * @alias module:model/CreateTokenizer + * @param name {String} Tokenizer name + * @param templateType {String} Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] + * @param tokenizerType {String} Tokenizer type + */ + function CreateTokenizer(name, templateType, tokenizerType) { + _classCallCheck(this, CreateTokenizer); + + CreateTokenizer.initialize(this, name, templateType, tokenizerType); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateTokenizer, null, [{ + key: "initialize", + value: function initialize(obj, name, templateType, tokenizerType) { + obj['name'] = name; + obj['template-type'] = templateType; + obj['tokenizer-type'] = tokenizerType; + } + /** + * Constructs a CreateTokenizer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateTokenizer} obj Optional instance to populate. + * @return {module:model/CreateTokenizer} The populated CreateTokenizer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateTokenizer(); + + if (data.hasOwnProperty('alphabet')) { + obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); + } + + if (data.hasOwnProperty('decoding-template')) { + obj['decoding-template'] = _ApiClient["default"].convertToType(data['decoding-template'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('encoding-template')) { + obj['encoding-template'] = _ApiClient["default"].convertToType(data['encoding-template'], 'String'); + } + + if (data.hasOwnProperty('encryption-key-name')) { + obj['encryption-key-name'] = _ApiClient["default"].convertToType(data['encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('pattern')) { + obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('template-type')) { + obj['template-type'] = _ApiClient["default"].convertToType(data['template-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('tokenizer-type')) { + obj['tokenizer-type'] = _ApiClient["default"].convertToType(data['tokenizer-type'], 'String'); + } + + if (data.hasOwnProperty('tweak-type')) { + obj['tweak-type'] = _ApiClient["default"].convertToType(data['tweak-type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateTokenizer; +}(); +/** + * Alphabet to use in regexp vaultless tokenization + * @member {String} alphabet + */ + + +CreateTokenizer.prototype['alphabet'] = undefined; +/** + * The Decoding output template to use in regexp vaultless tokenization + * @member {String} decoding-template + */ + +CreateTokenizer.prototype['decoding-template'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateTokenizer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateTokenizer.prototype['description'] = undefined; +/** + * The Encoding output template to use in regexp vaultless tokenization + * @member {String} encoding-template + */ + +CreateTokenizer.prototype['encoding-template'] = undefined; +/** + * AES key name to use in vaultless tokenization + * @member {String} encryption-key-name + */ + +CreateTokenizer.prototype['encryption-key-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateTokenizer.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateTokenizer.prototype['metadata'] = undefined; +/** + * Tokenizer name + * @member {String} name + */ + +CreateTokenizer.prototype['name'] = undefined; +/** + * Pattern to use in regexp vaultless tokenization + * @member {String} pattern + */ + +CreateTokenizer.prototype['pattern'] = undefined; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreateTokenizer.prototype['tag'] = undefined; +/** + * Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] + * @member {String} template-type + */ + +CreateTokenizer.prototype['template-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateTokenizer.prototype['token'] = undefined; +/** + * Tokenizer type + * @member {String} tokenizer-type + * @default 'vaultless' + */ + +CreateTokenizer.prototype['tokenizer-type'] = 'vaultless'; +/** + * The tweak type to use in vaultless tokenization [Supplied, Generated, Internal, Masking] + * @member {String} tweak-type + */ + +CreateTokenizer.prototype['tweak-type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateTokenizer.prototype['uid-token'] = undefined; +var _default = CreateTokenizer; +exports["default"] = _default; + +/***/ }), + +/***/ 42253: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGlobalSignAtlasTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignAtlasTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateTokenizerOutput model module. + * @module model/CreateTokenizerOutput + * @version 3.6.3 + */ +var CreateTokenizerOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateTokenizerOutput. + * @alias module:model/CreateTokenizerOutput + */ + function CreateTokenizerOutput() { + _classCallCheck(this, CreateTokenizerOutput); + + CreateTokenizerOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateTokenizerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateTokenizerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateTokenizerOutput} obj Optional instance to populate. + * @return {module:model/CreateTokenizerOutput} The populated CreateTokenizerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateTokenizerOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateTokenizerOutput; +}(); +/** + * @member {String} name + */ + + +CreateTokenizerOutput.prototype['name'] = undefined; +var _default = CreateTokenizerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 69728: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGlobalSignAtlasTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignAtlasTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUSC model module. + * @module model/CreateUSC + * @version 3.6.3 + */ +var CreateUSC = /*#__PURE__*/function () { + /** + * Constructs a new CreateUSC. + * CreateUSC is a command that creates a Universal Secrets Connector + * @alias module:model/CreateUSC + * @param name {String} Universal Secrets Connector name + * @param targetToAssociate {String} Target Universal Secrets Connector to connect + */ + function CreateUSC(name, targetToAssociate) { + _classCallCheck(this, CreateUSC); + + CreateUSC.initialize(this, name, targetToAssociate); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUSC, null, [{ + key: "initialize", + value: function initialize(obj, name, targetToAssociate) { + obj['name'] = name; + obj['target-to-associate'] = targetToAssociate; + } + /** + * Constructs a CreateUSC from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUSC} obj Optional instance to populate. + * @return {module:model/CreateUSC} The populated CreateUSC instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUSC(); + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-to-associate')) { + obj['target-to-associate'] = _ApiClient["default"].convertToType(data['target-to-associate'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUSC; +}(); +/** + * Azure Key Vault name (Relevant only for Azure targets) + * @member {String} azure-kv-name + */ + + +CreateUSC.prototype['azure-kv-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateUSC.prototype['delete_protection'] = undefined; +/** + * Description of the Universal Secrets Connector + * @member {String} description + */ + +CreateUSC.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateUSC.prototype['json'] = false; +/** + * K8s namespace (Relevant to Kubernetes targets) + * @member {String} k8s-namespace + */ + +CreateUSC.prototype['k8s-namespace'] = undefined; +/** + * Universal Secrets Connector name + * @member {String} name + */ + +CreateUSC.prototype['name'] = undefined; +/** + * List of the tags attached to this Universal Secrets Connector + * @member {Array.} tags + */ + +CreateUSC.prototype['tags'] = undefined; +/** + * Target Universal Secrets Connector to connect + * @member {String} target-to-associate + */ + +CreateUSC.prototype['target-to-associate'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateUSC.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateUSC.prototype['uid-token'] = undefined; +var _default = CreateUSC; +exports["default"] = _default; + +/***/ }), + +/***/ 10921: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGlobalSignTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUSCOutput model module. + * @module model/CreateUSCOutput + * @version 3.6.3 + */ +var CreateUSCOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateUSCOutput. + * @alias module:model/CreateUSCOutput + */ + function CreateUSCOutput() { + _classCallCheck(this, CreateUSCOutput); + + CreateUSCOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUSCOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateUSCOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUSCOutput} obj Optional instance to populate. + * @return {module:model/CreateUSCOutput} The populated CreateUSCOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUSCOutput(); + + if (data.hasOwnProperty('universal_secrets_connector_id')) { + obj['universal_secrets_connector_id'] = _ApiClient["default"].convertToType(data['universal_secrets_connector_id'], 'Number'); + } + + if (data.hasOwnProperty('universal_secrets_connector_name')) { + obj['universal_secrets_connector_name'] = _ApiClient["default"].convertToType(data['universal_secrets_connector_name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUSCOutput; +}(); +/** + * @member {Number} universal_secrets_connector_id + */ + + +CreateUSCOutput.prototype['universal_secrets_connector_id'] = undefined; +/** + * @member {String} universal_secrets_connector_name + */ + +CreateUSCOutput.prototype['universal_secrets_connector_name'] = undefined; +var _default = CreateUSCOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 88948: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateGlobalSignTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUserEvent model module. + * @module model/CreateUserEvent + * @version 3.6.3 + */ +var CreateUserEvent = /*#__PURE__*/function () { + /** + * Constructs a new CreateUserEvent. + * @alias module:model/CreateUserEvent + * @param eventType {String} + * @param itemName {String} EventItemName Event item name + * @param itemType {String} EventItemType Event item type + */ + function CreateUserEvent(eventType, itemName, itemType) { + _classCallCheck(this, CreateUserEvent); + + CreateUserEvent.initialize(this, eventType, itemName, itemType); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUserEvent, null, [{ + key: "initialize", + value: function initialize(obj, eventType, itemName, itemType) { + obj['event-type'] = eventType; + obj['item-name'] = itemName; + obj['item-type'] = itemType; + } + /** + * Constructs a CreateUserEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUserEvent} obj Optional instance to populate. + * @return {module:model/CreateUserEvent} The populated CreateUserEvent instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUserEvent(); + + if (data.hasOwnProperty('capabilities')) { + obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], ['String']); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('event-source')) { + obj['event-source'] = _ApiClient["default"].convertToType(data['event-source'], 'String'); + } + + if (data.hasOwnProperty('event-type')) { + obj['event-type'] = _ApiClient["default"].convertToType(data['event-type'], 'String'); + } + + if (data.hasOwnProperty('item-name')) { + obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); + } + + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('request-access-ttl')) { + obj['request-access-ttl'] = _ApiClient["default"].convertToType(data['request-access-ttl'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUserEvent; +}(); +/** + * List of the required capabilities options: [read, update, delete,sra_transparently_connect]. Relevant only for request-access event types + * @member {Array.} capabilities + */ + + +CreateUserEvent.prototype['capabilities'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateUserEvent.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateUserEvent.prototype['description'] = undefined; +/** + * @member {String} event-source + */ + +CreateUserEvent.prototype['event-source'] = undefined; +/** + * @member {String} event-type + */ + +CreateUserEvent.prototype['event-type'] = undefined; +/** + * EventItemName Event item name + * @member {String} item-name + */ + +CreateUserEvent.prototype['item-name'] = undefined; +/** + * EventItemType Event item type + * @member {String} item-type + */ + +CreateUserEvent.prototype['item-type'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateUserEvent.prototype['json'] = false; +/** + * For how long to grant the requested access, in minutes + * @member {Number} request-access-ttl + */ + +CreateUserEvent.prototype['request-access-ttl'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateUserEvent.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateUserEvent.prototype['uid-token'] = undefined; +var _default = CreateUserEvent; +exports["default"] = _default; + +/***/ }), + +/***/ 6789: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateItem", ({ - enumerable: true, - get: function get() { - return _UpdateItem["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUserEventOutput model module. + * @module model/CreateUserEventOutput + * @version 3.6.3 + */ +var CreateUserEventOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateUserEventOutput. + * @alias module:model/CreateUserEventOutput + */ + function CreateUserEventOutput() { + _classCallCheck(this, CreateUserEventOutput); + + CreateUserEventOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUserEventOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateUserEventOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUserEventOutput} obj Optional instance to populate. + * @return {module:model/CreateUserEventOutput} The populated CreateUserEventOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUserEventOutput(); + + if (data.hasOwnProperty('response')) { + obj['response'] = _ApiClient["default"].convertToType(data['response'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUserEventOutput; +}(); +/** + * @member {String} response + */ + + +CreateUserEventOutput.prototype['response'] = undefined; +var _default = CreateUserEventOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 18014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateItemOutput", ({ - enumerable: true, - get: function get() { - return _UpdateItemOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWebTarget model module. + * @module model/CreateWebTarget + * @version 3.6.3 + */ +var CreateWebTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateWebTarget. + * @alias module:model/CreateWebTarget + * @param name {String} Target name + */ + function CreateWebTarget(name) { + _classCallCheck(this, CreateWebTarget); + + CreateWebTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWebTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateWebTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWebTarget} obj Optional instance to populate. + * @return {module:model/CreateWebTarget} The populated CreateWebTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWebTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + } + + return obj; + } + }]); + + return CreateWebTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateWebTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateWebTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateWebTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateWebTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateWebTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateWebTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateWebTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateWebTarget.prototype['uid-token'] = undefined; +/** + * The url + * @member {String} url + */ + +CreateWebTarget.prototype['url'] = undefined; +var _default = CreateWebTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 28875: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateLdapTarget", ({ - enumerable: true, - get: function get() { - return _UpdateLdapTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWebTargetOutput model module. + * @module model/CreateWebTargetOutput + * @version 3.6.3 + */ +var CreateWebTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateWebTargetOutput. + * @alias module:model/CreateWebTargetOutput + */ + function CreateWebTargetOutput() { + _classCallCheck(this, CreateWebTargetOutput); + + CreateWebTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWebTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWebTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateWebTargetOutput} The populated CreateWebTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWebTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateWebTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateWebTargetOutput.prototype['target_id'] = undefined; +var _default = CreateWebTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 41893: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateLdapTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateLdapTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWindowsTarget model module. + * @module model/CreateWindowsTarget + * @version 3.6.3 + */ +var CreateWindowsTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateWindowsTarget. + * @alias module:model/CreateWindowsTarget + * @param hostname {String} Server hostname + * @param name {String} Target name + * @param password {String} Privileged user password + * @param username {String} Privileged username + */ + function CreateWindowsTarget(hostname, name, password, username) { + _classCallCheck(this, CreateWindowsTarget); + + CreateWindowsTarget.initialize(this, hostname, name, password, username); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWindowsTarget, null, [{ + key: "initialize", + value: function initialize(obj, hostname, name, password, username) { + obj['hostname'] = hostname; + obj['name'] = name; + obj['password'] = password; + obj['username'] = username; + } + /** + * Constructs a CreateWindowsTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWindowsTarget} obj Optional instance to populate. + * @return {module:model/CreateWindowsTarget} The populated CreateWindowsTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWindowsTarget(); + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('domain')) { + obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); + } + + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-tls')) { + obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return CreateWindowsTarget; +}(); +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} certificate + */ + + +CreateWindowsTarget.prototype['certificate'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateWindowsTarget.prototype['description'] = undefined; +/** + * User domain name + * @member {String} domain + */ + +CreateWindowsTarget.prototype['domain'] = undefined; +/** + * Server hostname + * @member {String} hostname + */ + +CreateWindowsTarget.prototype['hostname'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateWindowsTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateWindowsTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateWindowsTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateWindowsTarget.prototype['name'] = undefined; +/** + * Privileged user password + * @member {String} password + */ + +CreateWindowsTarget.prototype['password'] = undefined; +/** + * Server WinRM port + * @member {String} port + * @default '5986' + */ + +CreateWindowsTarget.prototype['port'] = '5986'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateWindowsTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateWindowsTarget.prototype['uid-token'] = undefined; +/** + * Enable/Disable TLS for WinRM over HTTPS [true/false] + * @member {String} use-tls + * @default 'true' + */ + +CreateWindowsTarget.prototype['use-tls'] = 'true'; +/** + * Privileged username + * @member {String} username + */ + +CreateWindowsTarget.prototype['username'] = undefined; +var _default = CreateWindowsTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 83664: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateLdapTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateLdapTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWindowsTargetOutput model module. + * @module model/CreateWindowsTargetOutput + * @version 3.6.3 + */ +var CreateWindowsTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateWindowsTargetOutput. + * @alias module:model/CreateWindowsTargetOutput + */ + function CreateWindowsTargetOutput() { + _classCallCheck(this, CreateWindowsTargetOutput); + + CreateWindowsTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWindowsTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateWindowsTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWindowsTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateWindowsTargetOutput} The populated CreateWindowsTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWindowsTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateWindowsTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateWindowsTargetOutput.prototype['target_id'] = undefined; +var _default = CreateWindowsTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 54780: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateLinkedTarget", ({ - enumerable: true, - get: function get() { - return _UpdateLinkedTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateZeroSSLTarget model module. + * @module model/CreateZeroSSLTarget + * @version 3.6.3 + */ +var CreateZeroSSLTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateZeroSSLTarget. + * @alias module:model/CreateZeroSSLTarget + * @param apiKey {String} API Key of the ZeroSSLTarget account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service + * @param name {String} Target name + */ + function CreateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { + _classCallCheck(this, CreateZeroSSLTarget); + + CreateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateZeroSSLTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; + obj['name'] = name; + } + /** + * Constructs a CreateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateZeroSSLTarget} obj Optional instance to populate. + * @return {module:model/CreateZeroSSLTarget} The populated CreateZeroSSLTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateZeroSSLTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } + + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } + + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } + + if (data.hasOwnProperty('imap-target-email')) { + obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); + } + + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateZeroSSLTarget; +}(); +/** + * API Key of the ZeroSSLTarget account + * @member {String} api-key + */ + + +CreateZeroSSLTarget.prototype['api-key'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateZeroSSLTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateZeroSSLTarget.prototype['description'] = undefined; +/** + * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @member {String} imap-fqdn + */ + +CreateZeroSSLTarget.prototype['imap-fqdn'] = undefined; +/** + * ImapPassword to access the IMAP service + * @member {String} imap-password + */ + +CreateZeroSSLTarget.prototype['imap-password'] = undefined; +/** + * ImapPort of the IMAP service + * @member {String} imap-port + * @default '993' + */ + +CreateZeroSSLTarget.prototype['imap-port'] = '993'; +/** + * ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username + * @member {String} imap-target-email + */ + +CreateZeroSSLTarget.prototype['imap-target-email'] = undefined; +/** + * ImapUsername to access the IMAP service + * @member {String} imap-username + */ + +CreateZeroSSLTarget.prototype['imap-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateZeroSSLTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateZeroSSLTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateZeroSSLTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateZeroSSLTarget.prototype['name'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateZeroSSLTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateZeroSSLTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateZeroSSLTarget.prototype['uid-token'] = undefined; +var _default = CreateZeroSSLTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 10493: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateNativeK8STarget", ({ - enumerable: true, - get: function get() { - return _UpdateNativeK8STarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateZeroSSLTargetOutput model module. + * @module model/CreateZeroSSLTargetOutput + * @version 3.6.3 + */ +var CreateZeroSSLTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateZeroSSLTargetOutput. + * @alias module:model/CreateZeroSSLTargetOutput + */ + function CreateZeroSSLTargetOutput() { + _classCallCheck(this, CreateZeroSSLTargetOutput); + + CreateZeroSSLTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateZeroSSLTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateZeroSSLTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateZeroSSLTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateZeroSSLTargetOutput} The populated CreateZeroSSLTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateZeroSSLTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateZeroSSLTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateZeroSSLTargetOutput.prototype['target_id'] = undefined; +var _default = CreateZeroSSLTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 19641: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateNativeK8STargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateNativeK8STargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomTargetDetails model module. + * @module model/CustomTargetDetails + * @version 3.6.3 + */ +var CustomTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new CustomTargetDetails. + * @alias module:model/CustomTargetDetails + */ + function CustomTargetDetails() { + _classCallCheck(this, CustomTargetDetails); + + CustomTargetDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomTargetDetails} obj Optional instance to populate. + * @return {module:model/CustomTargetDetails} The populated CustomTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomTargetDetails(); + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + } + + return obj; + } + }]); + + return CustomTargetDetails; +}(); +/** + * @member {String} payload + */ + + +CustomTargetDetails.prototype['payload'] = undefined; +var _default = CustomTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 71791: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateOutput", ({ - enumerable: true, - get: function get() { - return _UpdateOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomerFragmentConfig model module. + * @module model/CustomerFragmentConfig + * @version 3.6.3 + */ +var CustomerFragmentConfig = /*#__PURE__*/function () { + /** + * Constructs a new CustomerFragmentConfig. + * @alias module:model/CustomerFragmentConfig + */ + function CustomerFragmentConfig() { + _classCallCheck(this, CustomerFragmentConfig); + + CustomerFragmentConfig.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomerFragmentConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomerFragmentConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerFragmentConfig} obj Optional instance to populate. + * @return {module:model/CustomerFragmentConfig} The populated CustomerFragmentConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerFragmentConfig(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('fragment_type')) { + obj['fragment_type'] = _ApiClient["default"].convertToType(data['fragment_type'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('key_label')) { + obj['key_label'] = _ApiClient["default"].convertToType(data['key_label'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } + + return obj; + } + }]); + + return CustomerFragmentConfig; +}(); +/** + * @member {String} description + */ + + +CustomerFragmentConfig.prototype['description'] = undefined; +/** + * @member {String} fragment_type + */ + +CustomerFragmentConfig.prototype['fragment_type'] = undefined; +/** + * @member {String} id + */ + +CustomerFragmentConfig.prototype['id'] = undefined; +/** + * @member {String} key_label + */ + +CustomerFragmentConfig.prototype['key_label'] = undefined; +/** + * @member {String} name + */ + +CustomerFragmentConfig.prototype['name'] = undefined; +/** + * @member {String} value + */ + +CustomerFragmentConfig.prototype['value'] = undefined; +var _default = CustomerFragmentConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 76184: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdatePKICertIssuer", ({ - enumerable: true, - get: function get() { - return _UpdatePKICertIssuer["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CustomerFragmentConfig = _interopRequireDefault(__nccwpck_require__(71791)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomerFragmentsConfigJson model module. + * @module model/CustomerFragmentsConfigJson + * @version 3.6.3 + */ +var CustomerFragmentsConfigJson = /*#__PURE__*/function () { + /** + * Constructs a new CustomerFragmentsConfigJson. + * @alias module:model/CustomerFragmentsConfigJson + */ + function CustomerFragmentsConfigJson() { + _classCallCheck(this, CustomerFragmentsConfigJson); + + CustomerFragmentsConfigJson.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomerFragmentsConfigJson, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomerFragmentsConfigJson from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerFragmentsConfigJson} obj Optional instance to populate. + * @return {module:model/CustomerFragmentsConfigJson} The populated CustomerFragmentsConfigJson instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerFragmentsConfigJson(); + + if (data.hasOwnProperty('customer_fragments')) { + obj['customer_fragments'] = _ApiClient["default"].convertToType(data['customer_fragments'], [_CustomerFragmentConfig["default"]]); + } + } + + return obj; + } + }]); + + return CustomerFragmentsConfigJson; +}(); +/** + * @member {Array.} customer_fragments + */ + + +CustomerFragmentsConfigJson.prototype['customer_fragments'] = undefined; +var _default = CustomerFragmentsConfigJson; +exports["default"] = _default; + +/***/ }), + +/***/ 61038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdatePKICertIssuerOutput", ({ - enumerable: true, - get: function get() { - return _UpdatePKICertIssuerOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomerFullAddress model module. + * @module model/CustomerFullAddress + * @version 3.6.3 + */ +var CustomerFullAddress = /*#__PURE__*/function () { + /** + * Constructs a new CustomerFullAddress. + * @alias module:model/CustomerFullAddress + */ + function CustomerFullAddress() { + _classCallCheck(this, CustomerFullAddress); + + CustomerFullAddress.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomerFullAddress, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomerFullAddress from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerFullAddress} obj Optional instance to populate. + * @return {module:model/CustomerFullAddress} The populated CustomerFullAddress instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerFullAddress(); + + if (data.hasOwnProperty('city')) { + obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('postal_code')) { + obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], 'String'); + } + + if (data.hasOwnProperty('street')) { + obj['street'] = _ApiClient["default"].convertToType(data['street'], 'String'); + } + } + + return obj; + } + }]); + + return CustomerFullAddress; +}(); +/** + * @member {String} city + */ + + +CustomerFullAddress.prototype['city'] = undefined; +/** + * @member {String} country + */ + +CustomerFullAddress.prototype['country'] = undefined; +/** + * @member {String} postal_code + */ + +CustomerFullAddress.prototype['postal_code'] = undefined; +/** + * @member {String} street + */ + +CustomerFullAddress.prototype['street'] = undefined; +var _default = CustomerFullAddress; +exports["default"] = _default; + +/***/ }), + +/***/ 75578: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdatePingTarget", ({ - enumerable: true, - get: function get() { - return _UpdatePingTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(38148)); + +var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(83028)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DSProducerDetails model module. + * @module model/DSProducerDetails + * @version 3.6.3 + */ +var DSProducerDetails = /*#__PURE__*/function () { + /** + * Constructs a new DSProducerDetails. + * @alias module:model/DSProducerDetails + */ + function DSProducerDetails() { + _classCallCheck(this, DSProducerDetails); + + DSProducerDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DSProducerDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DSProducerDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DSProducerDetails} obj Optional instance to populate. + * @return {module:model/DSProducerDetails} The populated DSProducerDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DSProducerDetails(); + + if (data.hasOwnProperty('access_token_manager_id')) { + obj['access_token_manager_id'] = _ApiClient["default"].convertToType(data['access_token_manager_id'], 'String'); + } + + if (data.hasOwnProperty('acl_rules')) { + obj['acl_rules'] = _ApiClient["default"].convertToType(data['acl_rules'], ['String']); + } + + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); + } + + if (data.hasOwnProperty('admin_name')) { + obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); + } + + if (data.hasOwnProperty('admin_pwd')) { + obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); + } + + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + } + + if (data.hasOwnProperty('administrative_port')) { + obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); + } + + if (data.hasOwnProperty('artifactory_admin_apikey')) { + obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); + } + + if (data.hasOwnProperty('artifactory_admin_username')) { + obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); + } + + if (data.hasOwnProperty('artifactory_base_url')) { + obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); + } + + if (data.hasOwnProperty('artifactory_token_audience')) { + obj['artifactory_token_audience'] = _ApiClient["default"].convertToType(data['artifactory_token_audience'], 'String'); + } + + if (data.hasOwnProperty('artifactory_token_scope')) { + obj['artifactory_token_scope'] = _ApiClient["default"].convertToType(data['artifactory_token_scope'], 'String'); + } + + if (data.hasOwnProperty('authorization_port')) { + obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); + } + + if (data.hasOwnProperty('aws_access_key_id')) { + obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); + } + + if (data.hasOwnProperty('aws_access_mode')) { + obj['aws_access_mode'] = _ApiClient["default"].convertToType(data['aws_access_mode'], 'String'); + } + + if (data.hasOwnProperty('aws_region')) { + obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + } + + if (data.hasOwnProperty('aws_role_arns')) { + obj['aws_role_arns'] = _ApiClient["default"].convertToType(data['aws_role_arns'], 'String'); + } + + if (data.hasOwnProperty('aws_secret_access_key')) { + obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('aws_session_token')) { + obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); + } + + if (data.hasOwnProperty('aws_user_console_access')) { + obj['aws_user_console_access'] = _ApiClient["default"].convertToType(data['aws_user_console_access'], 'Boolean'); + } + + if (data.hasOwnProperty('aws_user_groups')) { + obj['aws_user_groups'] = _ApiClient["default"].convertToType(data['aws_user_groups'], 'String'); + } + + if (data.hasOwnProperty('aws_user_policies')) { + obj['aws_user_policies'] = _ApiClient["default"].convertToType(data['aws_user_policies'], 'String'); + } + + if (data.hasOwnProperty('aws_user_programmatic_access')) { + obj['aws_user_programmatic_access'] = _ApiClient["default"].convertToType(data['aws_user_programmatic_access'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_app_object_id')) { + obj['azure_app_object_id'] = _ApiClient["default"].convertToType(data['azure_app_object_id'], 'String'); + } + + if (data.hasOwnProperty('azure_client_id')) { + obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); + } + + if (data.hasOwnProperty('azure_client_secret')) { + obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); + } + + if (data.hasOwnProperty('azure_fixed_user_name_sub_claim_key')) { + obj['azure_fixed_user_name_sub_claim_key'] = _ApiClient["default"].convertToType(data['azure_fixed_user_name_sub_claim_key'], 'String'); + } + + if (data.hasOwnProperty('azure_fixed_user_only')) { + obj['azure_fixed_user_only'] = _ApiClient["default"].convertToType(data['azure_fixed_user_only'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_resource_group_name')) { + obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); + } + + if (data.hasOwnProperty('azure_resource_name')) { + obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); + } + + if (data.hasOwnProperty('azure_subscription_id')) { + obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); + } + + if (data.hasOwnProperty('azure_tenant_id')) { + obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('azure_user_groups_obj_id')) { + obj['azure_user_groups_obj_id'] = _ApiClient["default"].convertToType(data['azure_user_groups_obj_id'], 'String'); + } + + if (data.hasOwnProperty('azure_user_portal_access')) { + obj['azure_user_portal_access'] = _ApiClient["default"].convertToType(data['azure_user_portal_access'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_user_programmatic_access')) { + obj['azure_user_programmatic_access'] = _ApiClient["default"].convertToType(data['azure_user_programmatic_access'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_user_roles_template_id')) { + obj['azure_user_roles_template_id'] = _ApiClient["default"].convertToType(data['azure_user_roles_template_id'], 'String'); + } + + if (data.hasOwnProperty('azure_username')) { + obj['azure_username'] = _ApiClient["default"].convertToType(data['azure_username'], 'String'); + } + + if (data.hasOwnProperty('cassandra_creation_statements')) { + obj['cassandra_creation_statements'] = _ApiClient["default"].convertToType(data['cassandra_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('chef_organizations')) { + obj['chef_organizations'] = _ApiClient["default"].convertToType(data['chef_organizations'], 'String'); + } + + if (data.hasOwnProperty('chef_server_access_mode')) { + obj['chef_server_access_mode'] = _ApiClient["default"].convertToType(data['chef_server_access_mode'], 'String'); + } + + if (data.hasOwnProperty('chef_server_host_name')) { + obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); + } + + if (data.hasOwnProperty('chef_server_key')) { + obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); + } + + if (data.hasOwnProperty('chef_server_port')) { + obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); + } + + if (data.hasOwnProperty('chef_server_url')) { + obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); + } + + if (data.hasOwnProperty('chef_server_username')) { + obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); + } + + if (data.hasOwnProperty('chef_skip_ssl')) { + obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('client_authentication_type')) { + obj['client_authentication_type'] = _ApiClient["default"].convertToType(data['client_authentication_type'], 'String'); + } + + if (data.hasOwnProperty('cloud_service_provider')) { + obj['cloud_service_provider'] = _ApiClient["default"].convertToType(data['cloud_service_provider'], 'String'); + } + + if (data.hasOwnProperty('connection_type')) { + obj['connection_type'] = _ApiClient["default"].convertToType(data['connection_type'], 'String'); + } + + if (data.hasOwnProperty('create_sync_url')) { + obj['create_sync_url'] = _ApiClient["default"].convertToType(data['create_sync_url'], 'String'); + } + + if (data.hasOwnProperty('db_client_id')) { + obj['db_client_id'] = _ApiClient["default"].convertToType(data['db_client_id'], 'String'); + } + + if (data.hasOwnProperty('db_client_secret')) { + obj['db_client_secret'] = _ApiClient["default"].convertToType(data['db_client_secret'], 'String'); + } + + if (data.hasOwnProperty('db_host_name')) { + obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); + } + + if (data.hasOwnProperty('db_isolation_level')) { + obj['db_isolation_level'] = _ApiClient["default"].convertToType(data['db_isolation_level'], 'String'); + } + + if (data.hasOwnProperty('db_max_idle_conns')) { + obj['db_max_idle_conns'] = _ApiClient["default"].convertToType(data['db_max_idle_conns'], 'String'); + } + + if (data.hasOwnProperty('db_max_open_conns')) { + obj['db_max_open_conns'] = _ApiClient["default"].convertToType(data['db_max_open_conns'], 'String'); + } + + if (data.hasOwnProperty('db_name')) { + obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + } + + if (data.hasOwnProperty('db_port')) { + obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); + } + + if (data.hasOwnProperty('db_private_key')) { + obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); + } + + if (data.hasOwnProperty('db_private_key_passphrase')) { + obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); + } + + if (data.hasOwnProperty('db_pwd')) { + obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); + } + + if (data.hasOwnProperty('db_server_certificates')) { + obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); + } + + if (data.hasOwnProperty('db_server_name')) { + obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); + } + + if (data.hasOwnProperty('db_tenant_id')) { + obj['db_tenant_id'] = _ApiClient["default"].convertToType(data['db_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('db_user_name')) { + obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); + } + + if (data.hasOwnProperty('dynamic_secret_id')) { + obj['dynamic_secret_id'] = _ApiClient["default"].convertToType(data['dynamic_secret_id'], 'Number'); + } + + if (data.hasOwnProperty('dynamic_secret_key')) { + obj['dynamic_secret_key'] = _ApiClient["default"].convertToType(data['dynamic_secret_key'], 'String'); + } + + if (data.hasOwnProperty('dynamic_secret_name')) { + obj['dynamic_secret_name'] = _ApiClient["default"].convertToType(data['dynamic_secret_name'], 'String'); + } + + if (data.hasOwnProperty('dynamic_secret_type')) { + obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); + } + + if (data.hasOwnProperty('eks_access_key_id')) { + obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); + } + + if (data.hasOwnProperty('eks_assume_role')) { + obj['eks_assume_role'] = _ApiClient["default"].convertToType(data['eks_assume_role'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_ca_certificate')) { + obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_endpoint')) { + obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_name')) { + obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('eks_region')) { + obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); + } + + if (data.hasOwnProperty('eks_secret_access_key')) { + obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('enforce_replay_prevention')) { + obj['enforce_replay_prevention'] = _ApiClient["default"].convertToType(data['enforce_replay_prevention'], 'Boolean'); + } + + if (data.hasOwnProperty('externally_provided_user')) { + obj['externally_provided_user'] = _ApiClient["default"].convertToType(data['externally_provided_user'], 'String'); + } + + if (data.hasOwnProperty('failure_message')) { + obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); + } + + if (data.hasOwnProperty('fixed_user_only')) { + obj['fixed_user_only'] = _ApiClient["default"].convertToType(data['fixed_user_only'], 'String'); + } + + if (data.hasOwnProperty('gcp_key_algo')) { + obj['gcp_key_algo'] = _ApiClient["default"].convertToType(data['gcp_key_algo'], 'String'); + } + + if (data.hasOwnProperty('gcp_role_bindings')) { + obj['gcp_role_bindings'] = _ApiClient["default"].convertToType(data['gcp_role_bindings'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('gcp_service_account_email')) { + obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key')) { + obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key_base64')) { + obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key_id')) { + obj['gcp_service_account_key_id'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_id'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_type')) { + obj['gcp_service_account_type'] = _ApiClient["default"].convertToType(data['gcp_service_account_type'], 'String'); + } + + if (data.hasOwnProperty('gcp_tmp_service_account_name')) { + obj['gcp_tmp_service_account_name'] = _ApiClient["default"].convertToType(data['gcp_tmp_service_account_name'], 'String'); + } + + if (data.hasOwnProperty('gcp_token_lifetime')) { + obj['gcp_token_lifetime'] = _ApiClient["default"].convertToType(data['gcp_token_lifetime'], 'String'); + } + + if (data.hasOwnProperty('gcp_token_scope')) { + obj['gcp_token_scope'] = _ApiClient["default"].convertToType(data['gcp_token_scope'], 'String'); + } + + if (data.hasOwnProperty('gcp_token_type')) { + obj['gcp_token_type'] = _ApiClient["default"].convertToType(data['gcp_token_type'], 'String'); + } + + if (data.hasOwnProperty('github_app_id')) { + obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); + } + + if (data.hasOwnProperty('github_app_private_key')) { + obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); + } + + if (data.hasOwnProperty('github_base_url')) { + obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); + } + + if (data.hasOwnProperty('github_installation_id')) { + obj['github_installation_id'] = _ApiClient["default"].convertToType(data['github_installation_id'], 'Number'); + } + + if (data.hasOwnProperty('github_installation_token_permissions')) { + obj['github_installation_token_permissions'] = _ApiClient["default"].convertToType(data['github_installation_token_permissions'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('github_installation_token_repositories')) { + obj['github_installation_token_repositories'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories'], ['String']); + } + + if (data.hasOwnProperty('github_installation_token_repositories_ids')) { + obj['github_installation_token_repositories_ids'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories_ids'], ['Number']); + } + + if (data.hasOwnProperty('github_organization_name')) { + obj['github_organization_name'] = _ApiClient["default"].convertToType(data['github_organization_name'], 'String'); + } + + if (data.hasOwnProperty('github_repository_path')) { + obj['github_repository_path'] = _ApiClient["default"].convertToType(data['github_repository_path'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_ca_certificate')) { + obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_endpoint')) { + obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_name')) { + obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('gke_service_account_key')) { + obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); + } + + if (data.hasOwnProperty('gke_service_account_name')) { + obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); + } + + if (data.hasOwnProperty('grant_types')) { + obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); + } + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], 'String'); + } + + if (data.hasOwnProperty('hanadb_creation_statements')) { + obj['hanadb_creation_statements'] = _ApiClient["default"].convertToType(data['hanadb_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb_revocation_statements')) { + obj['hanadb_revocation_statements'] = _ApiClient["default"].convertToType(data['hanadb_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('host_name')) { + obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); + } + + if (data.hasOwnProperty('host_port')) { + obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); + } + + if (data.hasOwnProperty('implementation_type')) { + obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); + } + + if (data.hasOwnProperty('is_fixed_user')) { + obj['is_fixed_user'] = _ApiClient["default"].convertToType(data['is_fixed_user'], 'String'); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('item_targets_assoc')) { + obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); + } + + if (data.hasOwnProperty('jwks')) { + obj['jwks'] = _ApiClient["default"].convertToType(data['jwks'], 'String'); + } + + if (data.hasOwnProperty('jwks_url')) { + obj['jwks_url'] = _ApiClient["default"].convertToType(data['jwks_url'], 'String'); + } + + if (data.hasOwnProperty('k8s_allowed_namespaces')) { + obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); + } + + if (data.hasOwnProperty('k8s_bearer_token')) { + obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { + obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s_cluster_endpoint')) { + obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s_dynamic_mode')) { + obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s_multiple_doc_yaml_temp_definition')) { + obj['k8s_multiple_doc_yaml_temp_definition'] = _ApiClient["default"].convertToType(data['k8s_multiple_doc_yaml_temp_definition'], ['Number']); + } + + if (data.hasOwnProperty('k8s_namespace')) { + obj['k8s_namespace'] = _ApiClient["default"].convertToType(data['k8s_namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s_role_name')) { + obj['k8s_role_name'] = _ApiClient["default"].convertToType(data['k8s_role_name'], 'String'); + } + + if (data.hasOwnProperty('k8s_role_type')) { + obj['k8s_role_type'] = _ApiClient["default"].convertToType(data['k8s_role_type'], 'String'); + } + + if (data.hasOwnProperty('k8s_service_account')) { + obj['k8s_service_account'] = _ApiClient["default"].convertToType(data['k8s_service_account'], 'String'); + } + + if (data.hasOwnProperty('last_admin_rotation')) { + obj['last_admin_rotation'] = _ApiClient["default"].convertToType(data['last_admin_rotation'], 'Number'); + } + + if (data.hasOwnProperty('ldap_audience')) { + obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); + } + + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); + } + + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); + } + + if (data.hasOwnProperty('ldap_certificate')) { + obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); + } + + if (data.hasOwnProperty('ldap_group_dn')) { + obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); + } + + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + } + + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_attr')) { + obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_dn')) { + obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { + obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); + } + + if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { + obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); + } + + if (data.hasOwnProperty('mongodb_atlas_project_id')) { + obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); + } + + if (data.hasOwnProperty('mongodb_custom_data')) { + obj['mongodb_custom_data'] = _ApiClient["default"].convertToType(data['mongodb_custom_data'], 'String'); + } + + if (data.hasOwnProperty('mongodb_db_name')) { + obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); + } + + if (data.hasOwnProperty('mongodb_default_auth_db')) { + obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); + } + + if (data.hasOwnProperty('mongodb_host_port')) { + obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); + } + + if (data.hasOwnProperty('mongodb_is_atlas')) { + obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb_password')) { + obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); + } + + if (data.hasOwnProperty('mongodb_roles')) { + obj['mongodb_roles'] = _ApiClient["default"].convertToType(data['mongodb_roles'], 'String'); + } + + if (data.hasOwnProperty('mongodb_uri_connection')) { + obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); + } + + if (data.hasOwnProperty('mongodb_uri_options')) { + obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); + } + + if (data.hasOwnProperty('mongodb_username')) { + obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); + } + + if (data.hasOwnProperty('mssql_creation_statements')) { + obj['mssql_creation_statements'] = _ApiClient["default"].convertToType(data['mssql_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('mssql_revocation_statements')) { + obj['mssql_revocation_statements'] = _ApiClient["default"].convertToType(data['mssql_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('mysql_creation_statements')) { + obj['mysql_creation_statements'] = _ApiClient["default"].convertToType(data['mysql_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('mysql_revocation_statements')) { + obj['mysql_revocation_statements'] = _ApiClient["default"].convertToType(data['mysql_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('oracle_creation_statements')) { + obj['oracle_creation_statements'] = _ApiClient["default"].convertToType(data['oracle_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('oracle_revocation_statements')) { + obj['oracle_revocation_statements'] = _ApiClient["default"].convertToType(data['oracle_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password_length')) { + obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); + } + + if (data.hasOwnProperty('password_policy')) { + obj['password_policy'] = _ApiClient["default"].convertToType(data['password_policy'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + + if (data.hasOwnProperty('ping_url')) { + obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); + } + + if (data.hasOwnProperty('postgres_creation_statements')) { + obj['postgres_creation_statements'] = _ApiClient["default"].convertToType(data['postgres_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('postgres_revocation_statements')) { + obj['postgres_revocation_statements'] = _ApiClient["default"].convertToType(data['postgres_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('privileged_user')) { + obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_server_password')) { + obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_server_uri')) { + obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_server_user')) { + obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_conf_permission')) { + obj['rabbitmq_user_conf_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_conf_permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_read_permission')) { + obj['rabbitmq_user_read_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_read_permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_tags')) { + obj['rabbitmq_user_tags'] = _ApiClient["default"].convertToType(data['rabbitmq_user_tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_vhost')) { + obj['rabbitmq_user_vhost'] = _ApiClient["default"].convertToType(data['rabbitmq_user_vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_write_permission')) { + obj['rabbitmq_user_write_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_write_permission'], 'String'); + } + + if (data.hasOwnProperty('redirect_uris')) { + obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); + } + + if (data.hasOwnProperty('redshift_creation_statements')) { + obj['redshift_creation_statements'] = _ApiClient["default"].convertToType(data['redshift_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('restricted_scopes')) { + obj['restricted_scopes'] = _ApiClient["default"].convertToType(data['restricted_scopes'], ['String']); + } + + if (data.hasOwnProperty('revoke_sync_url')) { + obj['revoke_sync_url'] = _ApiClient["default"].convertToType(data['revoke_sync_url'], 'String'); + } + + if (data.hasOwnProperty('rotate_sync_url')) { + obj['rotate_sync_url'] = _ApiClient["default"].convertToType(data['rotate_sync_url'], 'String'); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); + } + + if (data.hasOwnProperty('secure_remote_access_details')) { + obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); + } + + if (data.hasOwnProperty('session_extension_warn_interval_min')) { + obj['session_extension_warn_interval_min'] = _ApiClient["default"].convertToType(data['session_extension_warn_interval_min'], 'Number'); + } + + if (data.hasOwnProperty('sf_account')) { + obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); + } + + if (data.hasOwnProperty('sf_user_role')) { + obj['sf_user_role'] = _ApiClient["default"].convertToType(data['sf_user_role'], 'String'); + } + + if (data.hasOwnProperty('sf_warehouse_name')) { + obj['sf_warehouse_name'] = _ApiClient["default"].convertToType(data['sf_warehouse_name'], 'String'); + } + + if (data.hasOwnProperty('should_stop')) { + obj['should_stop'] = _ApiClient["default"].convertToType(data['should_stop'], 'String'); + } + + if (data.hasOwnProperty('signing_algorithm')) { + obj['signing_algorithm'] = _ApiClient["default"].convertToType(data['signing_algorithm'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_certificate')) { + obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_mode')) { + obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); + } + + if (data.hasOwnProperty('subject_dn')) { + obj['subject_dn'] = _ApiClient["default"].convertToType(data['subject_dn'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('timeout_seconds')) { + obj['timeout_seconds'] = _ApiClient["default"].convertToType(data['timeout_seconds'], 'Number'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + + if (data.hasOwnProperty('use_gw_service_account')) { + obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); + } + + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + } + + if (data.hasOwnProperty('user_password')) { + obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); + } + + if (data.hasOwnProperty('user_principal_name')) { + obj['user_principal_name'] = _ApiClient["default"].convertToType(data['user_principal_name'], 'String'); + } + + if (data.hasOwnProperty('user_ttl')) { + obj['user_ttl'] = _ApiClient["default"].convertToType(data['user_ttl'], 'String'); + } + + if (data.hasOwnProperty('username_length')) { + obj['username_length'] = _ApiClient["default"].convertToType(data['username_length'], 'Number'); + } + + if (data.hasOwnProperty('username_policy')) { + obj['username_policy'] = _ApiClient["default"].convertToType(data['username_policy'], 'String'); + } + + if (data.hasOwnProperty('venafi_allow_subdomains')) { + obj['venafi_allow_subdomains'] = _ApiClient["default"].convertToType(data['venafi_allow_subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_allowed_domains')) { + obj['venafi_allowed_domains'] = _ApiClient["default"].convertToType(data['venafi_allowed_domains'], ['String']); + } + + if (data.hasOwnProperty('venafi_api_key')) { + obj['venafi_api_key'] = _ApiClient["default"].convertToType(data['venafi_api_key'], 'String'); + } + + if (data.hasOwnProperty('venafi_auto_generated_folder')) { + obj['venafi_auto_generated_folder'] = _ApiClient["default"].convertToType(data['venafi_auto_generated_folder'], 'String'); + } + + if (data.hasOwnProperty('venafi_base_url')) { + obj['venafi_base_url'] = _ApiClient["default"].convertToType(data['venafi_base_url'], 'String'); + } + + if (data.hasOwnProperty('venafi_root_first_in_chain')) { + obj['venafi_root_first_in_chain'] = _ApiClient["default"].convertToType(data['venafi_root_first_in_chain'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_sign_using_akeyless_pki')) { + obj['venafi_sign_using_akeyless_pki'] = _ApiClient["default"].convertToType(data['venafi_sign_using_akeyless_pki'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_signer_key_name')) { + obj['venafi_signer_key_name'] = _ApiClient["default"].convertToType(data['venafi_signer_key_name'], 'String'); + } + + if (data.hasOwnProperty('venafi_store_private_key')) { + obj['venafi_store_private_key'] = _ApiClient["default"].convertToType(data['venafi_store_private_key'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_tpp_access_token')) { + obj['venafi_tpp_access_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_access_token'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_client_id')) { + obj['venafi_tpp_client_id'] = _ApiClient["default"].convertToType(data['venafi_tpp_client_id'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_password')) { + obj['venafi_tpp_password'] = _ApiClient["default"].convertToType(data['venafi_tpp_password'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_refresh_token')) { + obj['venafi_tpp_refresh_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_refresh_token'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_username')) { + obj['venafi_tpp_username'] = _ApiClient["default"].convertToType(data['venafi_tpp_username'], 'String'); + } + + if (data.hasOwnProperty('venafi_use_tpp')) { + obj['venafi_use_tpp'] = _ApiClient["default"].convertToType(data['venafi_use_tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_zone')) { + obj['venafi_zone'] = _ApiClient["default"].convertToType(data['venafi_zone'], 'String'); + } + + if (data.hasOwnProperty('warn_before_user_expiration_min')) { + obj['warn_before_user_expiration_min'] = _ApiClient["default"].convertToType(data['warn_before_user_expiration_min'], 'Number'); + } + } + + return obj; + } + }]); + + return DSProducerDetails; +}(); +/** + * @member {String} access_token_manager_id + */ + + +DSProducerDetails.prototype['access_token_manager_id'] = undefined; +/** + * @member {Array.} acl_rules + */ + +DSProducerDetails.prototype['acl_rules'] = undefined; +/** + * @member {Boolean} active + */ + +DSProducerDetails.prototype['active'] = undefined; +/** + * @member {String} admin_name + */ + +DSProducerDetails.prototype['admin_name'] = undefined; +/** + * @member {String} admin_pwd + */ + +DSProducerDetails.prototype['admin_pwd'] = undefined; +/** + * @member {Number} admin_rotation_interval_days + */ + +DSProducerDetails.prototype['admin_rotation_interval_days'] = undefined; +/** + * @member {String} administrative_port + */ + +DSProducerDetails.prototype['administrative_port'] = undefined; +/** + * @member {String} artifactory_admin_apikey + */ + +DSProducerDetails.prototype['artifactory_admin_apikey'] = undefined; +/** + * @member {String} artifactory_admin_username + */ + +DSProducerDetails.prototype['artifactory_admin_username'] = undefined; +/** + * @member {String} artifactory_base_url + */ + +DSProducerDetails.prototype['artifactory_base_url'] = undefined; +/** + * @member {String} artifactory_token_audience + */ + +DSProducerDetails.prototype['artifactory_token_audience'] = undefined; +/** + * @member {String} artifactory_token_scope + */ + +DSProducerDetails.prototype['artifactory_token_scope'] = undefined; +/** + * @member {String} authorization_port + */ + +DSProducerDetails.prototype['authorization_port'] = undefined; +/** + * @member {String} aws_access_key_id + */ + +DSProducerDetails.prototype['aws_access_key_id'] = undefined; +/** + * @member {String} aws_access_mode + */ + +DSProducerDetails.prototype['aws_access_mode'] = undefined; +/** + * @member {String} aws_region + */ + +DSProducerDetails.prototype['aws_region'] = undefined; +/** + * @member {String} aws_role_arns + */ + +DSProducerDetails.prototype['aws_role_arns'] = undefined; +/** + * @member {String} aws_secret_access_key + */ + +DSProducerDetails.prototype['aws_secret_access_key'] = undefined; +/** + * @member {String} aws_session_token + */ + +DSProducerDetails.prototype['aws_session_token'] = undefined; +/** + * @member {Boolean} aws_user_console_access + */ + +DSProducerDetails.prototype['aws_user_console_access'] = undefined; +/** + * @member {String} aws_user_groups + */ + +DSProducerDetails.prototype['aws_user_groups'] = undefined; +/** + * @member {String} aws_user_policies + */ + +DSProducerDetails.prototype['aws_user_policies'] = undefined; +/** + * @member {Boolean} aws_user_programmatic_access + */ + +DSProducerDetails.prototype['aws_user_programmatic_access'] = undefined; +/** + * @member {String} azure_app_object_id + */ + +DSProducerDetails.prototype['azure_app_object_id'] = undefined; +/** + * @member {String} azure_client_id + */ + +DSProducerDetails.prototype['azure_client_id'] = undefined; +/** + * @member {String} azure_client_secret + */ + +DSProducerDetails.prototype['azure_client_secret'] = undefined; +/** + * @member {String} azure_fixed_user_name_sub_claim_key + */ + +DSProducerDetails.prototype['azure_fixed_user_name_sub_claim_key'] = undefined; +/** + * @member {Boolean} azure_fixed_user_only + */ + +DSProducerDetails.prototype['azure_fixed_user_only'] = undefined; +/** + * @member {String} azure_resource_group_name + */ + +DSProducerDetails.prototype['azure_resource_group_name'] = undefined; +/** + * @member {String} azure_resource_name + */ + +DSProducerDetails.prototype['azure_resource_name'] = undefined; +/** + * @member {String} azure_subscription_id + */ + +DSProducerDetails.prototype['azure_subscription_id'] = undefined; +/** + * @member {String} azure_tenant_id + */ + +DSProducerDetails.prototype['azure_tenant_id'] = undefined; +/** + * @member {String} azure_user_groups_obj_id + */ + +DSProducerDetails.prototype['azure_user_groups_obj_id'] = undefined; +/** + * @member {Boolean} azure_user_portal_access + */ + +DSProducerDetails.prototype['azure_user_portal_access'] = undefined; +/** + * @member {Boolean} azure_user_programmatic_access + */ + +DSProducerDetails.prototype['azure_user_programmatic_access'] = undefined; +/** + * @member {String} azure_user_roles_template_id + */ + +DSProducerDetails.prototype['azure_user_roles_template_id'] = undefined; +/** + * @member {String} azure_username + */ + +DSProducerDetails.prototype['azure_username'] = undefined; +/** + * @member {String} cassandra_creation_statements + */ + +DSProducerDetails.prototype['cassandra_creation_statements'] = undefined; +/** + * @member {String} chef_organizations + */ + +DSProducerDetails.prototype['chef_organizations'] = undefined; +/** + * @member {String} chef_server_access_mode + */ + +DSProducerDetails.prototype['chef_server_access_mode'] = undefined; +/** + * @member {String} chef_server_host_name + */ + +DSProducerDetails.prototype['chef_server_host_name'] = undefined; +/** + * @member {String} chef_server_key + */ + +DSProducerDetails.prototype['chef_server_key'] = undefined; +/** + * @member {String} chef_server_port + */ + +DSProducerDetails.prototype['chef_server_port'] = undefined; +/** + * @member {String} chef_server_url + */ + +DSProducerDetails.prototype['chef_server_url'] = undefined; +/** + * @member {String} chef_server_username + */ + +DSProducerDetails.prototype['chef_server_username'] = undefined; +/** + * @member {Boolean} chef_skip_ssl + */ + +DSProducerDetails.prototype['chef_skip_ssl'] = undefined; +/** + * @member {String} client_authentication_type + */ + +DSProducerDetails.prototype['client_authentication_type'] = undefined; +/** + * @member {String} cloud_service_provider + */ + +DSProducerDetails.prototype['cloud_service_provider'] = undefined; +/** + * @member {String} connection_type + */ + +DSProducerDetails.prototype['connection_type'] = undefined; +/** + * @member {String} create_sync_url + */ + +DSProducerDetails.prototype['create_sync_url'] = undefined; +/** + * @member {String} db_client_id + */ + +DSProducerDetails.prototype['db_client_id'] = undefined; +/** + * @member {String} db_client_secret + */ + +DSProducerDetails.prototype['db_client_secret'] = undefined; +/** + * @member {String} db_host_name + */ + +DSProducerDetails.prototype['db_host_name'] = undefined; +/** + * @member {String} db_isolation_level + */ + +DSProducerDetails.prototype['db_isolation_level'] = undefined; +/** + * @member {String} db_max_idle_conns + */ + +DSProducerDetails.prototype['db_max_idle_conns'] = undefined; +/** + * @member {String} db_max_open_conns + */ + +DSProducerDetails.prototype['db_max_open_conns'] = undefined; +/** + * @member {String} db_name + */ + +DSProducerDetails.prototype['db_name'] = undefined; +/** + * @member {String} db_port + */ + +DSProducerDetails.prototype['db_port'] = undefined; +/** + * (Optional) Private Key in PEM format + * @member {String} db_private_key + */ + +DSProducerDetails.prototype['db_private_key'] = undefined; +/** + * @member {String} db_private_key_passphrase + */ + +DSProducerDetails.prototype['db_private_key_passphrase'] = undefined; +/** + * @member {String} db_pwd + */ + +DSProducerDetails.prototype['db_pwd'] = undefined; +/** + * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. + * @member {String} db_server_certificates + */ + +DSProducerDetails.prototype['db_server_certificates'] = undefined; +/** + * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. + * @member {String} db_server_name + */ + +DSProducerDetails.prototype['db_server_name'] = undefined; +/** + * @member {String} db_tenant_id + */ + +DSProducerDetails.prototype['db_tenant_id'] = undefined; +/** + * @member {String} db_user_name + */ + +DSProducerDetails.prototype['db_user_name'] = undefined; +/** + * @member {Boolean} delete_protection + */ + +DSProducerDetails.prototype['delete_protection'] = undefined; +/** + * @member {Number} dynamic_secret_id + */ + +DSProducerDetails.prototype['dynamic_secret_id'] = undefined; +/** + * @member {String} dynamic_secret_key + */ + +DSProducerDetails.prototype['dynamic_secret_key'] = undefined; +/** + * @member {String} dynamic_secret_name + */ + +DSProducerDetails.prototype['dynamic_secret_name'] = undefined; +/** + * @member {String} dynamic_secret_type + */ + +DSProducerDetails.prototype['dynamic_secret_type'] = undefined; +/** + * @member {String} eks_access_key_id + */ + +DSProducerDetails.prototype['eks_access_key_id'] = undefined; +/** + * @member {String} eks_assume_role + */ + +DSProducerDetails.prototype['eks_assume_role'] = undefined; +/** + * @member {String} eks_cluster_ca_certificate + */ + +DSProducerDetails.prototype['eks_cluster_ca_certificate'] = undefined; +/** + * @member {String} eks_cluster_endpoint + */ + +DSProducerDetails.prototype['eks_cluster_endpoint'] = undefined; +/** + * @member {String} eks_cluster_name + */ + +DSProducerDetails.prototype['eks_cluster_name'] = undefined; +/** + * @member {String} eks_region + */ + +DSProducerDetails.prototype['eks_region'] = undefined; +/** + * @member {String} eks_secret_access_key + */ + +DSProducerDetails.prototype['eks_secret_access_key'] = undefined; +/** + * @member {Boolean} enable_admin_rotation + */ + +DSProducerDetails.prototype['enable_admin_rotation'] = undefined; +/** + * relevant for PRIVATE_KEY_JWT client authentication type + * @member {Boolean} enforce_replay_prevention + */ + +DSProducerDetails.prototype['enforce_replay_prevention'] = undefined; +/** + * @member {String} externally_provided_user + */ + +DSProducerDetails.prototype['externally_provided_user'] = undefined; +/** + * @member {String} failure_message + */ + +DSProducerDetails.prototype['failure_message'] = undefined; +/** + * @member {String} fixed_user_only + */ + +DSProducerDetails.prototype['fixed_user_only'] = undefined; +/** + * @member {String} gcp_key_algo + */ + +DSProducerDetails.prototype['gcp_key_algo'] = undefined; +/** + * @member {Object.>} gcp_role_bindings + */ + +DSProducerDetails.prototype['gcp_role_bindings'] = undefined; +/** + * GCPServiceAccountEmail overrides the deprecated field from the target + * @member {String} gcp_service_account_email + */ + +DSProducerDetails.prototype['gcp_service_account_email'] = undefined; +/** + * @member {String} gcp_service_account_key + */ + +DSProducerDetails.prototype['gcp_service_account_key'] = undefined; +/** + * @member {String} gcp_service_account_key_base64 + */ + +DSProducerDetails.prototype['gcp_service_account_key_base64'] = undefined; +/** + * @member {String} gcp_service_account_key_id + */ + +DSProducerDetails.prototype['gcp_service_account_key_id'] = undefined; +/** + * @member {String} gcp_service_account_type + */ + +DSProducerDetails.prototype['gcp_service_account_type'] = undefined; +/** + * @member {String} gcp_tmp_service_account_name + */ + +DSProducerDetails.prototype['gcp_tmp_service_account_name'] = undefined; +/** + * @member {String} gcp_token_lifetime + */ + +DSProducerDetails.prototype['gcp_token_lifetime'] = undefined; +/** + * @member {String} gcp_token_scope + */ + +DSProducerDetails.prototype['gcp_token_scope'] = undefined; +/** + * @member {String} gcp_token_type + */ + +DSProducerDetails.prototype['gcp_token_type'] = undefined; +/** + * @member {Number} github_app_id + */ + +DSProducerDetails.prototype['github_app_id'] = undefined; +/** + * @member {String} github_app_private_key + */ + +DSProducerDetails.prototype['github_app_private_key'] = undefined; +/** + * @member {String} github_base_url + */ + +DSProducerDetails.prototype['github_base_url'] = undefined; +/** + * @member {Number} github_installation_id + */ + +DSProducerDetails.prototype['github_installation_id'] = undefined; +/** + * @member {Object.} github_installation_token_permissions + */ + +DSProducerDetails.prototype['github_installation_token_permissions'] = undefined; +/** + * @member {Array.} github_installation_token_repositories + */ + +DSProducerDetails.prototype['github_installation_token_repositories'] = undefined; +/** + * @member {Array.} github_installation_token_repositories_ids + */ + +DSProducerDetails.prototype['github_installation_token_repositories_ids'] = undefined; +/** + * @member {String} github_organization_name + */ + +DSProducerDetails.prototype['github_organization_name'] = undefined; +/** + * @member {String} github_repository_path + */ + +DSProducerDetails.prototype['github_repository_path'] = undefined; +/** + * @member {String} gke_cluster_ca_certificate + */ + +DSProducerDetails.prototype['gke_cluster_ca_certificate'] = undefined; +/** + * @member {String} gke_cluster_endpoint + */ + +DSProducerDetails.prototype['gke_cluster_endpoint'] = undefined; +/** + * @member {String} gke_cluster_name + */ + +DSProducerDetails.prototype['gke_cluster_name'] = undefined; +/** + * @member {String} gke_service_account_key + */ + +DSProducerDetails.prototype['gke_service_account_key'] = undefined; +/** + * @member {String} gke_service_account_name + */ + +DSProducerDetails.prototype['gke_service_account_name'] = undefined; +/** + * @member {Array.} grant_types + */ + +DSProducerDetails.prototype['grant_types'] = undefined; +/** + * @member {String} groups + */ + +DSProducerDetails.prototype['groups'] = undefined; +/** + * @member {String} hanadb_creation_statements + */ + +DSProducerDetails.prototype['hanadb_creation_statements'] = undefined; +/** + * @member {String} hanadb_revocation_statements + */ + +DSProducerDetails.prototype['hanadb_revocation_statements'] = undefined; +/** + * @member {String} host_name + */ + +DSProducerDetails.prototype['host_name'] = undefined; +/** + * @member {String} host_port + */ + +DSProducerDetails.prototype['host_port'] = undefined; +/** + * @member {String} implementation_type + */ + +DSProducerDetails.prototype['implementation_type'] = undefined; +/** + * @member {String} is_fixed_user + */ + +DSProducerDetails.prototype['is_fixed_user'] = undefined; +/** + * relevant for CLIENT_TLS_CERTIFICATE client authentication type + * @member {String} issuer + */ + +DSProducerDetails.prototype['issuer'] = undefined; +/** + * @member {Array.} item_targets_assoc + */ + +DSProducerDetails.prototype['item_targets_assoc'] = undefined; +/** + * @member {String} jwks + */ + +DSProducerDetails.prototype['jwks'] = undefined; +/** + * @member {String} jwks_url + */ + +DSProducerDetails.prototype['jwks_url'] = undefined; +/** + * comma-separated list of allowed namespaces. Can hold just * which signifies that any namespace is allowed + * @member {String} k8s_allowed_namespaces + */ + +DSProducerDetails.prototype['k8s_allowed_namespaces'] = undefined; +/** + * @member {String} k8s_auth_type + */ + +DSProducerDetails.prototype['k8s_auth_type'] = undefined; +/** + * @member {String} k8s_bearer_token + */ + +DSProducerDetails.prototype['k8s_bearer_token'] = undefined; +/** + * For K8s Client certificates authentication + * @member {String} k8s_client_cert_data + */ + +DSProducerDetails.prototype['k8s_client_cert_data'] = undefined; +/** + * @member {String} k8s_client_key_data + */ + +DSProducerDetails.prototype['k8s_client_key_data'] = undefined; +/** + * @member {String} k8s_cluster_ca_certificate + */ + +DSProducerDetails.prototype['k8s_cluster_ca_certificate'] = undefined; +/** + * @member {String} k8s_cluster_endpoint + */ + +DSProducerDetails.prototype['k8s_cluster_endpoint'] = undefined; +/** + * when native k8s is in dynamic mode, user can define allowed namespaces, K8sServiceAccount doesn't exist from the start and will only be created at time of getting dynamic secret value By default dynamic mode is false and producer behaves like it did before + * @member {Boolean} k8s_dynamic_mode + */ + +DSProducerDetails.prototype['k8s_dynamic_mode'] = undefined; +/** + * Yaml definition for creation of temporary objects. Field that can hold multiple docs from which following will be extracted: ServiceAccount, Role/ClusterRole and RoleBinding/ClusterRoleBinding. If ServiceAccount not specified - it will be generated automatically + * @member {Array.} k8s_multiple_doc_yaml_temp_definition + */ + +DSProducerDetails.prototype['k8s_multiple_doc_yaml_temp_definition'] = undefined; +/** + * @member {String} k8s_namespace + */ + +DSProducerDetails.prototype['k8s_namespace'] = undefined; +/** + * Name of the pre-existing Role or ClusterRole to bind a generated service account to. + * @member {String} k8s_role_name + */ + +DSProducerDetails.prototype['k8s_role_name'] = undefined; +/** + * @member {String} k8s_role_type + */ + +DSProducerDetails.prototype['k8s_role_type'] = undefined; +/** + * @member {String} k8s_service_account + */ + +DSProducerDetails.prototype['k8s_service_account'] = undefined; +/** + * @member {Number} last_admin_rotation + */ + +DSProducerDetails.prototype['last_admin_rotation'] = undefined; +/** + * @member {String} ldap_audience + */ + +DSProducerDetails.prototype['ldap_audience'] = undefined; +/** + * @member {String} ldap_bind_dn + */ + +DSProducerDetails.prototype['ldap_bind_dn'] = undefined; +/** + * @member {String} ldap_bind_password + */ + +DSProducerDetails.prototype['ldap_bind_password'] = undefined; +/** + * @member {String} ldap_certificate + */ + +DSProducerDetails.prototype['ldap_certificate'] = undefined; +/** + * @member {String} ldap_group_dn + */ + +DSProducerDetails.prototype['ldap_group_dn'] = undefined; +/** + * @member {String} ldap_token_expiration + */ + +DSProducerDetails.prototype['ldap_token_expiration'] = undefined; +/** + * @member {String} ldap_url + */ + +DSProducerDetails.prototype['ldap_url'] = undefined; +/** + * @member {String} ldap_user_attr + */ + +DSProducerDetails.prototype['ldap_user_attr'] = undefined; +/** + * @member {String} ldap_user_dn + */ + +DSProducerDetails.prototype['ldap_user_dn'] = undefined; +/** + * @member {String} metadata + */ + +DSProducerDetails.prototype['metadata'] = undefined; +/** + * @member {String} mongodb_atlas_api_private_key + */ + +DSProducerDetails.prototype['mongodb_atlas_api_private_key'] = undefined; +/** + * @member {String} mongodb_atlas_api_public_key + */ + +DSProducerDetails.prototype['mongodb_atlas_api_public_key'] = undefined; +/** + * mongodb atlas fields + * @member {String} mongodb_atlas_project_id + */ + +DSProducerDetails.prototype['mongodb_atlas_project_id'] = undefined; +/** + * @member {String} mongodb_custom_data + */ + +DSProducerDetails.prototype['mongodb_custom_data'] = undefined; +/** + * common fields + * @member {String} mongodb_db_name + */ + +DSProducerDetails.prototype['mongodb_db_name'] = undefined; +/** + * @member {String} mongodb_default_auth_db + */ + +DSProducerDetails.prototype['mongodb_default_auth_db'] = undefined; +/** + * @member {String} mongodb_host_port + */ + +DSProducerDetails.prototype['mongodb_host_port'] = undefined; +/** + * @member {Boolean} mongodb_is_atlas + */ + +DSProducerDetails.prototype['mongodb_is_atlas'] = undefined; +/** + * @member {String} mongodb_password + */ + +DSProducerDetails.prototype['mongodb_password'] = undefined; +/** + * common fields + * @member {String} mongodb_roles + */ + +DSProducerDetails.prototype['mongodb_roles'] = undefined; +/** + * mongodb fields + * @member {String} mongodb_uri_connection + */ + +DSProducerDetails.prototype['mongodb_uri_connection'] = undefined; +/** + * @member {String} mongodb_uri_options + */ + +DSProducerDetails.prototype['mongodb_uri_options'] = undefined; +/** + * @member {String} mongodb_username + */ + +DSProducerDetails.prototype['mongodb_username'] = undefined; +/** + * @member {String} mssql_creation_statements + */ + +DSProducerDetails.prototype['mssql_creation_statements'] = undefined; +/** + * @member {String} mssql_revocation_statements + */ + +DSProducerDetails.prototype['mssql_revocation_statements'] = undefined; +/** + * @member {String} mysql_creation_statements + */ + +DSProducerDetails.prototype['mysql_creation_statements'] = undefined; +/** + * @member {String} mysql_revocation_statements + */ + +DSProducerDetails.prototype['mysql_revocation_statements'] = undefined; +/** + * @member {String} oracle_creation_statements + */ + +DSProducerDetails.prototype['oracle_creation_statements'] = undefined; +/** + * @member {String} oracle_revocation_statements + */ + +DSProducerDetails.prototype['oracle_revocation_statements'] = undefined; +/** + * @member {String} password + */ + +DSProducerDetails.prototype['password'] = undefined; +/** + * @member {Number} password_length + */ + +DSProducerDetails.prototype['password_length'] = undefined; +/** + * @member {String} password_policy + */ + +DSProducerDetails.prototype['password_policy'] = undefined; +/** + * @member {String} payload + */ + +DSProducerDetails.prototype['payload'] = undefined; +/** + * @member {String} ping_url + */ + +DSProducerDetails.prototype['ping_url'] = undefined; +/** + * @member {String} postgres_creation_statements + */ + +DSProducerDetails.prototype['postgres_creation_statements'] = undefined; +/** + * @member {String} postgres_revocation_statements + */ + +DSProducerDetails.prototype['postgres_revocation_statements'] = undefined; +/** + * @member {String} privileged_user + */ + +DSProducerDetails.prototype['privileged_user'] = undefined; +/** + * @member {String} rabbitmq_server_password + */ + +DSProducerDetails.prototype['rabbitmq_server_password'] = undefined; +/** + * @member {String} rabbitmq_server_uri + */ + +DSProducerDetails.prototype['rabbitmq_server_uri'] = undefined; +/** + * @member {String} rabbitmq_server_user + */ + +DSProducerDetails.prototype['rabbitmq_server_user'] = undefined; +/** + * @member {String} rabbitmq_user_conf_permission + */ + +DSProducerDetails.prototype['rabbitmq_user_conf_permission'] = undefined; +/** + * @member {String} rabbitmq_user_read_permission + */ + +DSProducerDetails.prototype['rabbitmq_user_read_permission'] = undefined; +/** + * @member {String} rabbitmq_user_tags + */ + +DSProducerDetails.prototype['rabbitmq_user_tags'] = undefined; +/** + * @member {String} rabbitmq_user_vhost + */ + +DSProducerDetails.prototype['rabbitmq_user_vhost'] = undefined; +/** + * @member {String} rabbitmq_user_write_permission + */ + +DSProducerDetails.prototype['rabbitmq_user_write_permission'] = undefined; +/** + * @member {Array.} redirect_uris + */ + +DSProducerDetails.prototype['redirect_uris'] = undefined; +/** + * @member {String} redshift_creation_statements + */ + +DSProducerDetails.prototype['redshift_creation_statements'] = undefined; +/** + * @member {Array.} restricted_scopes + */ + +DSProducerDetails.prototype['restricted_scopes'] = undefined; +/** + * @member {String} revoke_sync_url + */ + +DSProducerDetails.prototype['revoke_sync_url'] = undefined; +/** + * @member {String} rotate_sync_url + */ + +DSProducerDetails.prototype['rotate_sync_url'] = undefined; +/** + * @member {Array.} scopes + */ + +DSProducerDetails.prototype['scopes'] = undefined; +/** + * @member {module:model/SecureRemoteAccess} secure_remote_access_details + */ + +DSProducerDetails.prototype['secure_remote_access_details'] = undefined; +/** + * @member {Number} session_extension_warn_interval_min + */ + +DSProducerDetails.prototype['session_extension_warn_interval_min'] = undefined; +/** + * @member {String} sf_account + */ + +DSProducerDetails.prototype['sf_account'] = undefined; +/** + * generated users info + * @member {String} sf_user_role + */ + +DSProducerDetails.prototype['sf_user_role'] = undefined; +/** + * @member {String} sf_warehouse_name + */ + +DSProducerDetails.prototype['sf_warehouse_name'] = undefined; +/** + * TODO delete this after migration + * @member {String} should_stop + */ + +DSProducerDetails.prototype['should_stop'] = undefined; +/** + * @member {String} signing_algorithm + */ + +DSProducerDetails.prototype['signing_algorithm'] = undefined; +/** + * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field + * @member {String} ssl_connection_certificate + */ + +DSProducerDetails.prototype['ssl_connection_certificate'] = undefined; +/** + * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB + * @member {Boolean} ssl_connection_mode + */ + +DSProducerDetails.prototype['ssl_connection_mode'] = undefined; +/** + * @member {String} subject_dn + */ + +DSProducerDetails.prototype['subject_dn'] = undefined; +/** + * @member {Array.} tags + */ + +DSProducerDetails.prototype['tags'] = undefined; +/** + * @member {Number} timeout_seconds + */ + +DSProducerDetails.prototype['timeout_seconds'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +DSProducerDetails.prototype['use_gw_cloud_identity'] = undefined; +/** + * @member {Boolean} use_gw_service_account + */ + +DSProducerDetails.prototype['use_gw_service_account'] = undefined; +/** + * @member {String} user_name + */ + +DSProducerDetails.prototype['user_name'] = undefined; +/** + * @member {String} user_password + */ + +DSProducerDetails.prototype['user_password'] = undefined; +/** + * @member {String} user_principal_name + */ + +DSProducerDetails.prototype['user_principal_name'] = undefined; +/** + * @member {String} user_ttl + */ + +DSProducerDetails.prototype['user_ttl'] = undefined; +/** + * @member {Number} username_length + */ + +DSProducerDetails.prototype['username_length'] = undefined; +/** + * @member {String} username_policy + */ + +DSProducerDetails.prototype['username_policy'] = undefined; +/** + * @member {Boolean} venafi_allow_subdomains + */ + +DSProducerDetails.prototype['venafi_allow_subdomains'] = undefined; +/** + * @member {Array.} venafi_allowed_domains + */ + +DSProducerDetails.prototype['venafi_allowed_domains'] = undefined; +/** + * @member {String} venafi_api_key + */ + +DSProducerDetails.prototype['venafi_api_key'] = undefined; +/** + * @member {String} venafi_auto_generated_folder + */ + +DSProducerDetails.prototype['venafi_auto_generated_folder'] = undefined; +/** + * @member {String} venafi_base_url + */ + +DSProducerDetails.prototype['venafi_base_url'] = undefined; +/** + * @member {Boolean} venafi_root_first_in_chain + */ + +DSProducerDetails.prototype['venafi_root_first_in_chain'] = undefined; +/** + * @member {Boolean} venafi_sign_using_akeyless_pki + */ + +DSProducerDetails.prototype['venafi_sign_using_akeyless_pki'] = undefined; +/** + * @member {String} venafi_signer_key_name + */ + +DSProducerDetails.prototype['venafi_signer_key_name'] = undefined; +/** + * @member {Boolean} venafi_store_private_key + */ + +DSProducerDetails.prototype['venafi_store_private_key'] = undefined; +/** + * @member {String} venafi_tpp_access_token + */ + +DSProducerDetails.prototype['venafi_tpp_access_token'] = undefined; +/** + * @member {String} venafi_tpp_client_id + */ + +DSProducerDetails.prototype['venafi_tpp_client_id'] = undefined; +/** + * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead + * @member {String} venafi_tpp_password + */ + +DSProducerDetails.prototype['venafi_tpp_password'] = undefined; +/** + * @member {String} venafi_tpp_refresh_token + */ + +DSProducerDetails.prototype['venafi_tpp_refresh_token'] = undefined; +/** + * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead + * @member {String} venafi_tpp_username + */ + +DSProducerDetails.prototype['venafi_tpp_username'] = undefined; +/** + * @member {Boolean} venafi_use_tpp + */ + +DSProducerDetails.prototype['venafi_use_tpp'] = undefined; +/** + * @member {String} venafi_zone + */ + +DSProducerDetails.prototype['venafi_zone'] = undefined; +/** + * @member {Number} warn_before_user_expiration_min + */ + +DSProducerDetails.prototype['warn_before_user_expiration_min'] = undefined; +var _default = DSProducerDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 32891: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRDPTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateRDPTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DataProtectionSection model module. + * @module model/DataProtectionSection + * @version 3.6.3 + */ +var DataProtectionSection = /*#__PURE__*/function () { + /** + * Constructs a new DataProtectionSection. + * We need the fields to be pointers as we use the same struct for partial updates as well + * @alias module:model/DataProtectionSection + */ + function DataProtectionSection() { + _classCallCheck(this, DataProtectionSection); + + DataProtectionSection.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DataProtectionSection, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DataProtectionSection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DataProtectionSection} obj Optional instance to populate. + * @return {module:model/DataProtectionSection} The populated DataProtectionSection instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DataProtectionSection(); + + if (data.hasOwnProperty('enable_classic_key_protection')) { + obj['enable_classic_key_protection'] = _ApiClient["default"].convertToType(data['enable_classic_key_protection'], 'Boolean'); + } + } + + return obj; + } + }]); + + return DataProtectionSection; +}(); +/** + * @member {Boolean} enable_classic_key_protection + */ + + +DataProtectionSection.prototype['enable_classic_key_protection'] = undefined; +var _default = DataProtectionSection; +exports["default"] = _default; + +/***/ }), + +/***/ 47638: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRabbitMQTarget", ({ - enumerable: true, - get: function get() { - return _UpdateRabbitMQTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DatadogForwardingConfig model module. + * @module model/DatadogForwardingConfig + * @version 3.6.3 + */ +var DatadogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new DatadogForwardingConfig. + * @alias module:model/DatadogForwardingConfig + */ + function DatadogForwardingConfig() { + _classCallCheck(this, DatadogForwardingConfig); + + DatadogForwardingConfig.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DatadogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DatadogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DatadogForwardingConfig} obj Optional instance to populate. + * @return {module:model/DatadogForwardingConfig} The populated DatadogForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DatadogForwardingConfig(); + + if (data.hasOwnProperty('datadog_api_key')) { + obj['datadog_api_key'] = _ApiClient["default"].convertToType(data['datadog_api_key'], 'String'); + } + + if (data.hasOwnProperty('datadog_host')) { + obj['datadog_host'] = _ApiClient["default"].convertToType(data['datadog_host'], 'String'); + } + + if (data.hasOwnProperty('datadog_log_service')) { + obj['datadog_log_service'] = _ApiClient["default"].convertToType(data['datadog_log_service'], 'String'); + } + + if (data.hasOwnProperty('datadog_log_source')) { + obj['datadog_log_source'] = _ApiClient["default"].convertToType(data['datadog_log_source'], 'String'); + } + + if (data.hasOwnProperty('datadog_log_tags')) { + obj['datadog_log_tags'] = _ApiClient["default"].convertToType(data['datadog_log_tags'], 'String'); + } + } + + return obj; + } + }]); + + return DatadogForwardingConfig; +}(); +/** + * @member {String} datadog_api_key + */ + + +DatadogForwardingConfig.prototype['datadog_api_key'] = undefined; +/** + * @member {String} datadog_host + */ + +DatadogForwardingConfig.prototype['datadog_host'] = undefined; +/** + * @member {String} datadog_log_service + */ + +DatadogForwardingConfig.prototype['datadog_log_service'] = undefined; +/** + * @member {String} datadog_log_source + */ + +DatadogForwardingConfig.prototype['datadog_log_source'] = undefined; +/** + * @member {String} datadog_log_tags + */ + +DatadogForwardingConfig.prototype['datadog_log_tags'] = undefined; +var _default = DatadogForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 65590: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRabbitMQTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateRabbitMQTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DbTargetDetails model module. + * @module model/DbTargetDetails + * @version 3.6.3 + */ +var DbTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new DbTargetDetails. + * DbTargetDetails + * @alias module:model/DbTargetDetails + */ + function DbTargetDetails() { + _classCallCheck(this, DbTargetDetails); + + DbTargetDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DbTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DbTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DbTargetDetails} obj Optional instance to populate. + * @return {module:model/DbTargetDetails} The populated DbTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DbTargetDetails(); + + if (data.hasOwnProperty('cloud_service_provider')) { + obj['cloud_service_provider'] = _ApiClient["default"].convertToType(data['cloud_service_provider'], 'String'); + } + + if (data.hasOwnProperty('connection_type')) { + obj['connection_type'] = _ApiClient["default"].convertToType(data['connection_type'], 'String'); + } + + if (data.hasOwnProperty('db_client_id')) { + obj['db_client_id'] = _ApiClient["default"].convertToType(data['db_client_id'], 'String'); + } + + if (data.hasOwnProperty('db_client_secret')) { + obj['db_client_secret'] = _ApiClient["default"].convertToType(data['db_client_secret'], 'String'); + } + + if (data.hasOwnProperty('db_host_name')) { + obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); + } + + if (data.hasOwnProperty('db_name')) { + obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + } + + if (data.hasOwnProperty('db_port')) { + obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); + } + + if (data.hasOwnProperty('db_private_key')) { + obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); + } + + if (data.hasOwnProperty('db_private_key_passphrase')) { + obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); + } + + if (data.hasOwnProperty('db_pwd')) { + obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); + } + + if (data.hasOwnProperty('db_server_certificates')) { + obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); + } + + if (data.hasOwnProperty('db_server_name')) { + obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); + } + + if (data.hasOwnProperty('db_tenant_id')) { + obj['db_tenant_id'] = _ApiClient["default"].convertToType(data['db_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('db_user_name')) { + obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); + } + + if (data.hasOwnProperty('sf_account')) { + obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_certificate')) { + obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_mode')) { + obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); + } + } + + return obj; + } + }]); + + return DbTargetDetails; +}(); +/** + * @member {String} cloud_service_provider + */ + + +DbTargetDetails.prototype['cloud_service_provider'] = undefined; +/** + * @member {String} connection_type + */ + +DbTargetDetails.prototype['connection_type'] = undefined; +/** + * @member {String} db_client_id + */ + +DbTargetDetails.prototype['db_client_id'] = undefined; +/** + * @member {String} db_client_secret + */ + +DbTargetDetails.prototype['db_client_secret'] = undefined; +/** + * @member {String} db_host_name + */ + +DbTargetDetails.prototype['db_host_name'] = undefined; +/** + * @member {String} db_name + */ + +DbTargetDetails.prototype['db_name'] = undefined; +/** + * @member {String} db_port + */ + +DbTargetDetails.prototype['db_port'] = undefined; +/** + * (Optional) Private Key in PEM format + * @member {String} db_private_key + */ + +DbTargetDetails.prototype['db_private_key'] = undefined; +/** + * @member {String} db_private_key_passphrase + */ + +DbTargetDetails.prototype['db_private_key_passphrase'] = undefined; +/** + * @member {String} db_pwd + */ + +DbTargetDetails.prototype['db_pwd'] = undefined; +/** + * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. + * @member {String} db_server_certificates + */ + +DbTargetDetails.prototype['db_server_certificates'] = undefined; +/** + * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. + * @member {String} db_server_name + */ + +DbTargetDetails.prototype['db_server_name'] = undefined; +/** + * @member {String} db_tenant_id + */ + +DbTargetDetails.prototype['db_tenant_id'] = undefined; +/** + * @member {String} db_user_name + */ + +DbTargetDetails.prototype['db_user_name'] = undefined; +/** + * @member {String} sf_account + */ + +DbTargetDetails.prototype['sf_account'] = undefined; +/** + * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field + * @member {String} ssl_connection_certificate + */ + +DbTargetDetails.prototype['ssl_connection_certificate'] = undefined; +/** + * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB + * @member {Boolean} ssl_connection_mode + */ + +DbTargetDetails.prototype['ssl_connection_mode'] = undefined; +var _default = DbTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 7720: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRabbitMQTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateRabbitMQTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Decrypt model module. + * @module model/Decrypt + * @version 3.6.3 + */ +var Decrypt = /*#__PURE__*/function () { + /** + * Constructs a new Decrypt. + * decrypt is a command that decrypts ciphertext into plaintext by using an AES key. + * @alias module:model/Decrypt + * @param keyName {String} The name of the key to use in the decryption process + */ + function Decrypt(keyName) { + _classCallCheck(this, Decrypt); + + Decrypt.initialize(this, keyName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Decrypt, null, [{ + key: "initialize", + value: function initialize(obj, keyName) { + obj['key-name'] = keyName; + } + /** + * Constructs a Decrypt from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Decrypt} obj Optional instance to populate. + * @return {module:model/Decrypt} The populated Decrypt instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Decrypt(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('encryption-context')) { + obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('output-format')) { + obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return Decrypt; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +Decrypt.prototype['ciphertext'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +Decrypt.prototype['display-id'] = undefined; +/** + * The encryption context. If this was specified in the encrypt command, it must be specified here or the decryption operation will fail + * @member {Object.} encryption-context + */ + +Decrypt.prototype['encryption-context'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +Decrypt.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Decrypt.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +Decrypt.prototype['key-name'] = undefined; +/** + * If specified, the output will be formatted accordingly. options: [base64] + * @member {String} output-format + */ + +Decrypt.prototype['output-format'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Decrypt.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Decrypt.prototype['uid-token'] = undefined; +/** + * key version (relevant only for classic key) + * @member {Number} version + */ + +Decrypt.prototype['version'] = undefined; +var _default = Decrypt; +exports["default"] = _default; + +/***/ }), + +/***/ 51030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRole", ({ - enumerable: true, - get: function get() { - return _UpdateRole["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptFile model module. + * @module model/DecryptFile + * @version 3.6.3 + */ +var DecryptFile = /*#__PURE__*/function () { + /** + * Constructs a new DecryptFile. + * @alias module:model/DecryptFile + * @param _in {String} Path to the file to be decrypted. If not provided, the content will be taken from stdin + * @param keyName {String} The name of the key to use in the decryption process + */ + function DecryptFile(_in, keyName) { + _classCallCheck(this, DecryptFile); + + DecryptFile.initialize(this, _in, keyName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptFile, null, [{ + key: "initialize", + value: function initialize(obj, _in, keyName) { + obj['in'] = _in; + obj['key-name'] = keyName; + } + /** + * Constructs a DecryptFile from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptFile} obj Optional instance to populate. + * @return {module:model/DecryptFile} The populated DecryptFile instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptFile(); + + if (data.hasOwnProperty('cyphertext-header')) { + obj['cyphertext-header'] = _ApiClient["default"].convertToType(data['cyphertext-header'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('in')) { + obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('out')) { + obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptFile; +}(); +/** + * @member {String} cyphertext-header + */ + + +DecryptFile.prototype['cyphertext-header'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +DecryptFile.prototype['display-id'] = undefined; +/** + * Path to the file to be decrypted. If not provided, the content will be taken from stdin + * @member {String} in + */ + +DecryptFile.prototype['in'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +DecryptFile.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptFile.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +DecryptFile.prototype['key-name'] = undefined; +/** + * Path to the output file. If not provided, the output will be sent to stdout + * @member {String} out + */ + +DecryptFile.prototype['out'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptFile.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptFile.prototype['uid-token'] = undefined; +var _default = DecryptFile; +exports["default"] = _default; + +/***/ }), + +/***/ 9971: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRoleOutput", ({ - enumerable: true, - get: function get() { - return _UpdateRoleOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptFileOutput model module. + * @module model/DecryptFileOutput + * @version 3.6.3 + */ +var DecryptFileOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptFileOutput. + * @alias module:model/DecryptFileOutput + */ + function DecryptFileOutput() { + _classCallCheck(this, DecryptFileOutput); + + DecryptFileOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptFileOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptFileOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptFileOutput} obj Optional instance to populate. + * @return {module:model/DecryptFileOutput} The populated DecryptFileOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptFileOutput(); + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('plain_text')) { + obj['plain_text'] = _ApiClient["default"].convertToType(data['plain_text'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptFileOutput; +}(); +/** + * @member {String} path + */ + + +DecryptFileOutput.prototype['path'] = undefined; +/** + * @member {String} plain_text + */ + +DecryptFileOutput.prototype['plain_text'] = undefined; +var _default = DecryptFileOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 24650: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRotatedSecret", ({ - enumerable: true, - get: function get() { - return _UpdateRotatedSecret["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptGPG model module. + * @module model/DecryptGPG + * @version 3.6.3 + */ +var DecryptGPG = /*#__PURE__*/function () { + /** + * Constructs a new DecryptGPG. + * @alias module:model/DecryptGPG + * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format + * @param keyName {String} The name of the key to use in the decryption process + */ + function DecryptGPG(ciphertext, keyName) { + _classCallCheck(this, DecryptGPG); + + DecryptGPG.initialize(this, ciphertext, keyName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptGPG, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, keyName) { + obj['ciphertext'] = ciphertext; + obj['key-name'] = keyName; + } + /** + * Constructs a DecryptGPG from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptGPG} obj Optional instance to populate. + * @return {module:model/DecryptGPG} The populated DecryptGPG instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptGPG(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('output-format')) { + obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + } + + if (data.hasOwnProperty('passphrase')) { + obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptGPG; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +DecryptGPG.prototype['ciphertext'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +DecryptGPG.prototype['display-id'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +DecryptGPG.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptGPG.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +DecryptGPG.prototype['key-name'] = undefined; +/** + * If specified, the output will be formatted accordingly. options: [base64] + * @member {String} output-format + */ + +DecryptGPG.prototype['output-format'] = undefined; +/** + * Passphrase that was used to generate the key + * @member {String} passphrase + */ + +DecryptGPG.prototype['passphrase'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptGPG.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptGPG.prototype['uid-token'] = undefined; +var _default = DecryptGPG; +exports["default"] = _default; + +/***/ }), + +/***/ 59199: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRotatedSecretOutput", ({ - enumerable: true, - get: function get() { - return _UpdateRotatedSecretOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptGPGOutput model module. + * @module model/DecryptGPGOutput + * @version 3.6.3 + */ +var DecryptGPGOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptGPGOutput. + * @alias module:model/DecryptGPGOutput + */ + function DecryptGPGOutput() { + _classCallCheck(this, DecryptGPGOutput); + + DecryptGPGOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptGPGOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptGPGOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptGPGOutput} obj Optional instance to populate. + * @return {module:model/DecryptGPGOutput} The populated DecryptGPGOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptGPGOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptGPGOutput; +}(); +/** + * @member {String} result + */ + + +DecryptGPGOutput.prototype['result'] = undefined; +var _default = DecryptGPGOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 19777: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateRotationSettings", ({ - enumerable: true, - get: function get() { - return _UpdateRotationSettings["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptOutput model module. + * @module model/DecryptOutput + * @version 3.6.3 + */ +var DecryptOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptOutput. + * @alias module:model/DecryptOutput + */ + function DecryptOutput() { + _classCallCheck(this, DecryptOutput); + + DecryptOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptOutput} obj Optional instance to populate. + * @return {module:model/DecryptOutput} The populated DecryptOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptOutput; +}(); +/** + * @member {String} result + */ + + +DecryptOutput.prototype['result'] = undefined; +var _default = DecryptOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 57476: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSSHCertIssuer", ({ - enumerable: true, - get: function get() { - return _UpdateSSHCertIssuer["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptPKCS1 model module. + * @module model/DecryptPKCS1 + * @version 3.6.3 + */ +var DecryptPKCS1 = /*#__PURE__*/function () { + /** + * Constructs a new DecryptPKCS1. + * @alias module:model/DecryptPKCS1 + * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format + * @param keyName {String} The name of the key to use in the decryption process + */ + function DecryptPKCS1(ciphertext, keyName) { + _classCallCheck(this, DecryptPKCS1); + + DecryptPKCS1.initialize(this, ciphertext, keyName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptPKCS1, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, keyName) { + obj['ciphertext'] = ciphertext; + obj['key-name'] = keyName; + } + /** + * Constructs a DecryptPKCS1 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptPKCS1} obj Optional instance to populate. + * @return {module:model/DecryptPKCS1} The populated DecryptPKCS1 instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptPKCS1(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('output-format')) { + obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return DecryptPKCS1; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +DecryptPKCS1.prototype['ciphertext'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +DecryptPKCS1.prototype['display-id'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +DecryptPKCS1.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptPKCS1.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +DecryptPKCS1.prototype['key-name'] = undefined; +/** + * If specified, the output will be formatted accordingly. options: [base64] + * @member {String} output-format + */ + +DecryptPKCS1.prototype['output-format'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptPKCS1.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptPKCS1.prototype['uid-token'] = undefined; +/** + * key version (relevant only for classic key) + * @member {Number} version + */ + +DecryptPKCS1.prototype['version'] = undefined; +var _default = DecryptPKCS1; +exports["default"] = _default; + +/***/ }), + +/***/ 81333: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSSHCertIssuerOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSSHCertIssuerOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptPKCS1Output model module. + * @module model/DecryptPKCS1Output + * @version 3.6.3 + */ +var DecryptPKCS1Output = /*#__PURE__*/function () { + /** + * Constructs a new DecryptPKCS1Output. + * @alias module:model/DecryptPKCS1Output + */ + function DecryptPKCS1Output() { + _classCallCheck(this, DecryptPKCS1Output); + + DecryptPKCS1Output.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptPKCS1Output, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptPKCS1Output from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptPKCS1Output} obj Optional instance to populate. + * @return {module:model/DecryptPKCS1Output} The populated DecryptPKCS1Output instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptPKCS1Output(); + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptPKCS1Output; +}(); +/** + * @member {String} plaintext + */ + + +DecryptPKCS1Output.prototype['plaintext'] = undefined; +var _default = DecryptPKCS1Output; +exports["default"] = _default; + +/***/ }), + +/***/ 67115: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSSHTarget", ({ - enumerable: true, - get: function get() { - return _UpdateSSHTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptWithClassicKey model module. + * @module model/DecryptWithClassicKey + * @version 3.6.3 + */ +var DecryptWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new DecryptWithClassicKey. + * @alias module:model/DecryptWithClassicKey + * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format + * @param displayId {String} The name of the key to use in the encryption process + * @param version {Number} classic key version + */ + function DecryptWithClassicKey(ciphertext, displayId, version) { + _classCallCheck(this, DecryptWithClassicKey); + + DecryptWithClassicKey.initialize(this, ciphertext, displayId, version); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, displayId, version) { + obj['ciphertext'] = ciphertext; + obj['display-id'] = displayId; + obj['version'] = version; + } + /** + * Constructs a DecryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptWithClassicKey} obj Optional instance to populate. + * @return {module:model/DecryptWithClassicKey} The populated DecryptWithClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptWithClassicKey(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return DecryptWithClassicKey; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +DecryptWithClassicKey.prototype['ciphertext'] = undefined; +/** + * The name of the key to use in the encryption process + * @member {String} display-id + */ + +DecryptWithClassicKey.prototype['display-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptWithClassicKey.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptWithClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptWithClassicKey.prototype['uid-token'] = undefined; +/** + * classic key version + * @member {Number} version + */ + +DecryptWithClassicKey.prototype['version'] = undefined; +var _default = DecryptWithClassicKey; +exports["default"] = _default; + +/***/ }), + +/***/ 80618: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSSHTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateSSHTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptWithClassicKeyOutput model module. + * @module model/DecryptWithClassicKeyOutput + * @version 3.6.3 + */ +var DecryptWithClassicKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptWithClassicKeyOutput. + * @alias module:model/DecryptWithClassicKeyOutput + */ + function DecryptWithClassicKeyOutput() { + _classCallCheck(this, DecryptWithClassicKeyOutput); + + DecryptWithClassicKeyOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptWithClassicKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptWithClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/DecryptWithClassicKeyOutput} The populated DecryptWithClassicKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptWithClassicKeyOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptWithClassicKeyOutput; +}(); +/** + * @member {String} result + */ + + +DecryptWithClassicKeyOutput.prototype['result'] = undefined; +var _default = DecryptWithClassicKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 22479: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSSHTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSSHTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DefaultConfigPart model module. + * @module model/DefaultConfigPart + * @version 3.6.3 + */ +var DefaultConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new DefaultConfigPart. + * @alias module:model/DefaultConfigPart + */ + function DefaultConfigPart() { + _classCallCheck(this, DefaultConfigPart); + + DefaultConfigPart.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DefaultConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DefaultConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DefaultConfigPart} obj Optional instance to populate. + * @return {module:model/DefaultConfigPart} The populated DefaultConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DefaultConfigPart(); + + if (data.hasOwnProperty('certificate_access_id')) { + obj['certificate_access_id'] = _ApiClient["default"].convertToType(data['certificate_access_id'], 'String'); + } + + if (data.hasOwnProperty('default_protection_key_id')) { + obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); + } + + if (data.hasOwnProperty('default_secret_location')) { + obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); + } + + if (data.hasOwnProperty('oidc_access_id')) { + obj['oidc_access_id'] = _ApiClient["default"].convertToType(data['oidc_access_id'], 'String'); + } + + if (data.hasOwnProperty('saml_access_id')) { + obj['saml_access_id'] = _ApiClient["default"].convertToType(data['saml_access_id'], 'String'); + } + } + + return obj; + } + }]); + + return DefaultConfigPart; +}(); +/** + * @member {String} certificate_access_id + */ + + +DefaultConfigPart.prototype['certificate_access_id'] = undefined; +/** + * @member {Number} default_protection_key_id + */ + +DefaultConfigPart.prototype['default_protection_key_id'] = undefined; +/** + * @member {String} default_secret_location + */ + +DefaultConfigPart.prototype['default_secret_location'] = undefined; +/** + * @member {String} oidc_access_id + */ + +DefaultConfigPart.prototype['oidc_access_id'] = undefined; +/** + * @member {String} saml_access_id + */ + +DefaultConfigPart.prototype['saml_access_id'] = undefined; +var _default = DefaultConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 55749: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSalesforceTarget", ({ - enumerable: true, - get: function get() { - return _UpdateSalesforceTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethod model module. + * @module model/DeleteAuthMethod + * @version 3.6.3 + */ +var DeleteAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethod. + * @alias module:model/DeleteAuthMethod + * @param name {String} Auth Method name + */ + function DeleteAuthMethod(name) { + _classCallCheck(this, DeleteAuthMethod); + + DeleteAuthMethod.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethod} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethod} The populated DeleteAuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethod(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethod; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteAuthMethod.prototype['json'] = false; +/** + * Auth Method name + * @member {String} name + */ + +DeleteAuthMethod.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteAuthMethod.prototype['uid-token'] = undefined; +var _default = DeleteAuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 53200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSalesforceTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSalesforceTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethodOutput model module. + * @module model/DeleteAuthMethodOutput + * @version 3.6.3 + */ +var DeleteAuthMethodOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethodOutput. + * @alias module:model/DeleteAuthMethodOutput + */ + function DeleteAuthMethodOutput() { + _classCallCheck(this, DeleteAuthMethodOutput); + + DeleteAuthMethodOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethodOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethodOutput} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethodOutput} The populated DeleteAuthMethodOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethodOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethodOutput; +}(); +/** + * @member {String} name + */ + + +DeleteAuthMethodOutput.prototype['name'] = undefined; +var _default = DeleteAuthMethodOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 20592: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSecretVal", ({ - enumerable: true, - get: function get() { - return _UpdateSecretVal["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethods model module. + * @module model/DeleteAuthMethods + * @version 3.6.3 + */ +var DeleteAuthMethods = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethods. + * deleteAuthMethods is a command that deletes multiple auth methods from a given path. + * @alias module:model/DeleteAuthMethods + * @param path {String} Path to delete the auth methods from + */ + function DeleteAuthMethods(path) { + _classCallCheck(this, DeleteAuthMethods); + + DeleteAuthMethods.initialize(this, path); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethods, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteAuthMethods from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethods} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethods} The populated DeleteAuthMethods instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethods(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethods; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteAuthMethods.prototype['json'] = false; +/** + * Path to delete the auth methods from + * @member {String} path + */ + +DeleteAuthMethods.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteAuthMethods.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteAuthMethods.prototype['uid-token'] = undefined; +var _default = DeleteAuthMethods; +exports["default"] = _default; + +/***/ }), + +/***/ 15769: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateSecretValOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSecretValOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethodsOutput model module. + * @module model/DeleteAuthMethodsOutput + * @version 3.6.3 + */ +var DeleteAuthMethodsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethodsOutput. + * @alias module:model/DeleteAuthMethodsOutput + */ + function DeleteAuthMethodsOutput() { + _classCallCheck(this, DeleteAuthMethodsOutput); + + DeleteAuthMethodsOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethodsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethodsOutput} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethodsOutput} The populated DeleteAuthMethodsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethodsOutput(); + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethodsOutput; +}(); +/** + * @member {String} path + */ + + +DeleteAuthMethodsOutput.prototype['path'] = undefined; +var _default = DeleteAuthMethodsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 58820: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateTarget", ({ - enumerable: true, - get: function get() { - return _UpdateTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteEventForwarder model module. + * @module model/DeleteEventForwarder + * @version 3.6.3 + */ +var DeleteEventForwarder = /*#__PURE__*/function () { + /** + * Constructs a new DeleteEventForwarder. + * deleteEventForwarder is a command that creates a new event forwarder [Deprecated - please use event-forwarder-delete command] + * @alias module:model/DeleteEventForwarder + * @param name {String} EventForwarder name + */ + function DeleteEventForwarder(name) { + _classCallCheck(this, DeleteEventForwarder); + + DeleteEventForwarder.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteEventForwarder, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteEventForwarder} obj Optional instance to populate. + * @return {module:model/DeleteEventForwarder} The populated DeleteEventForwarder instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteEventForwarder(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteEventForwarder; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteEventForwarder.prototype['json'] = false; +/** + * EventForwarder name + * @member {String} name + */ + +DeleteEventForwarder.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteEventForwarder.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteEventForwarder.prototype['uid-token'] = undefined; +var _default = DeleteEventForwarder; +exports["default"] = _default; + +/***/ }), + +/***/ 93835: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGatewayAllowedAccessId model module. + * @module model/DeleteGatewayAllowedAccessId + * @version 3.6.3 + */ +var DeleteGatewayAllowedAccessId = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGatewayAllowedAccessId. + * deleteGatewayAllowedAccessId is a command that deletes access-id + * @alias module:model/DeleteGatewayAllowedAccessId + * @param accessId {String} The access id to be stripped of access to gateway + * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + */ + function DeleteGatewayAllowedAccessId(accessId, clusterName) { + _classCallCheck(this, DeleteGatewayAllowedAccessId); + + DeleteGatewayAllowedAccessId.initialize(this, accessId, clusterName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGatewayAllowedAccessId, null, [{ + key: "initialize", + value: function initialize(obj, accessId, clusterName) { + obj['access-id'] = accessId; + obj['cluster-name'] = clusterName; + } + /** + * Constructs a DeleteGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGatewayAllowedAccessId} obj Optional instance to populate. + * @return {module:model/DeleteGatewayAllowedAccessId} The populated DeleteGatewayAllowedAccessId instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGatewayAllowedAccessId(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('cluster-name')) { + obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGatewayAllowedAccessId; +}(); +/** + * The access id to be stripped of access to gateway + * @member {String} access-id + */ + + +DeleteGatewayAllowedAccessId.prototype['access-id'] = undefined; +/** + * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * @member {String} cluster-name + */ + +DeleteGatewayAllowedAccessId.prototype['cluster-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteGatewayAllowedAccessId.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteGatewayAllowedAccessId.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteGatewayAllowedAccessId.prototype['uid-token'] = undefined; +var _default = DeleteGatewayAllowedAccessId; +exports["default"] = _default; + +/***/ }), + +/***/ 98855: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateTargetDetailsOutput", ({ - enumerable: true, - get: function get() { - return _UpdateTargetDetailsOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGroup model module. + * @module model/DeleteGroup + * @version 3.6.3 + */ +var DeleteGroup = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGroup. + * @alias module:model/DeleteGroup + * @param name {String} Group name + */ + function DeleteGroup(name) { + _classCallCheck(this, DeleteGroup); + + DeleteGroup.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGroup, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGroup} obj Optional instance to populate. + * @return {module:model/DeleteGroup} The populated DeleteGroup instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGroup(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGroup; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteGroup.prototype['json'] = false; +/** + * Group name + * @member {String} name + */ + +DeleteGroup.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteGroup.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteGroup.prototype['uid-token'] = undefined; +var _default = DeleteGroup; +exports["default"] = _default; + +/***/ }), + +/***/ 43134: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGroupOutput model module. + * @module model/DeleteGroupOutput + * @version 3.6.3 + */ +var DeleteGroupOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGroupOutput. + * @alias module:model/DeleteGroupOutput + */ + function DeleteGroupOutput() { + _classCallCheck(this, DeleteGroupOutput); + + DeleteGroupOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGroupOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteGroupOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGroupOutput} obj Optional instance to populate. + * @return {module:model/DeleteGroupOutput} The populated DeleteGroupOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGroupOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGroupOutput; +}(); +/** + * @member {String} name + */ + + +DeleteGroupOutput.prototype['name'] = undefined; +var _default = DeleteGroupOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 964: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateWebTarget", ({ - enumerable: true, - get: function get() { - return _UpdateWebTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGwCluster model module. + * @module model/DeleteGwCluster + * @version 3.6.3 + */ +var DeleteGwCluster = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGwCluster. + * @alias module:model/DeleteGwCluster + * @param clusterName {String} Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + */ + function DeleteGwCluster(clusterName) { + _classCallCheck(this, DeleteGwCluster); + + DeleteGwCluster.initialize(this, clusterName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGwCluster, null, [{ + key: "initialize", + value: function initialize(obj, clusterName) { + obj['cluster-name'] = clusterName; + } + /** + * Constructs a DeleteGwCluster from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGwCluster} obj Optional instance to populate. + * @return {module:model/DeleteGwCluster} The populated DeleteGwCluster instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGwCluster(); + + if (data.hasOwnProperty('cluster-name')) { + obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); + } + + if (data.hasOwnProperty('force-deletion')) { + obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGwCluster; +}(); +/** + * Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * @member {String} cluster-name + */ + + +DeleteGwCluster.prototype['cluster-name'] = undefined; +/** + * Enforce deletion + * @member {Boolean} force-deletion + */ + +DeleteGwCluster.prototype['force-deletion'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteGwCluster.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteGwCluster.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteGwCluster.prototype['uid-token'] = undefined; +var _default = DeleteGwCluster; +exports["default"] = _default; + +/***/ }), + +/***/ 261: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateWebTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateWebTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItem model module. + * @module model/DeleteItem + * @version 3.6.3 + */ +var DeleteItem = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItem. + * @alias module:model/DeleteItem + * @param name {String} Item name + */ + function DeleteItem(name) { + _classCallCheck(this, DeleteItem); + + DeleteItem.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItem, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItem} obj Optional instance to populate. + * @return {module:model/DeleteItem} The populated DeleteItem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItem(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('delete-immediately')) { + obj['delete-immediately'] = _ApiClient["default"].convertToType(data['delete-immediately'], 'Boolean'); + } + + if (data.hasOwnProperty('delete-in-days')) { + obj['delete-in-days'] = _ApiClient["default"].convertToType(data['delete-in-days'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return DeleteItem; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +DeleteItem.prototype['accessibility'] = 'regular'; +/** + * When delete-in-days=-1, must be set + * @member {Boolean} delete-immediately + * @default false + */ + +DeleteItem.prototype['delete-immediately'] = false; +/** + * The number of days to wait before deleting the item (relevant for keys only) + * @member {Number} delete-in-days + * @default 7 + */ + +DeleteItem.prototype['delete-in-days'] = 7; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteItem.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ + +DeleteItem.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteItem.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteItem.prototype['uid-token'] = undefined; +/** + * The specific version you want to delete - 0=last version, -1=entire item with all versions (default) + * @member {Number} version + * @default -1 + */ + +DeleteItem.prototype['version'] = -1; +var _default = DeleteItem; +exports["default"] = _default; + +/***/ }), + +/***/ 98224: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateWebTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateWebTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItemOutput model module. + * @module model/DeleteItemOutput + * @version 3.6.3 + */ +var DeleteItemOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItemOutput. + * @alias module:model/DeleteItemOutput + */ + function DeleteItemOutput() { + _classCallCheck(this, DeleteItemOutput); + + DeleteItemOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItemOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteItemOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItemOutput} obj Optional instance to populate. + * @return {module:model/DeleteItemOutput} The populated DeleteItemOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItemOutput(); + + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); + } + + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); + } + + if (data.hasOwnProperty('item_name')) { + obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); + } + + if (data.hasOwnProperty('version_deleted')) { + obj['version_deleted'] = _ApiClient["default"].convertToType(data['version_deleted'], 'Number'); + } + } + + return obj; + } + }]); + + return DeleteItemOutput; +}(); +/** + * @member {Date} deletion_date + */ + + +DeleteItemOutput.prototype['deletion_date'] = undefined; +/** + * @member {Number} item_id + */ + +DeleteItemOutput.prototype['item_id'] = undefined; +/** + * @member {String} item_name + */ + +DeleteItemOutput.prototype['item_name'] = undefined; +/** + * @member {Number} version_deleted + */ + +DeleteItemOutput.prototype['version_deleted'] = undefined; +var _default = DeleteItemOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 44336: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateWindowsTarget", ({ - enumerable: true, - get: function get() { - return _UpdateWindowsTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItems model module. + * @module model/DeleteItems + * @version 3.6.3 + */ +var DeleteItems = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItems. + * @alias module:model/DeleteItems + * @param path {String} Path to delete the items from + */ + function DeleteItems(path) { + _classCallCheck(this, DeleteItems); + + DeleteItems.initialize(this, path); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItems, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItems} obj Optional instance to populate. + * @return {module:model/DeleteItems} The populated DeleteItems instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItems(); + + if (data.hasOwnProperty('item')) { + obj['item'] = _ApiClient["default"].convertToType(data['item'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteItems; +}(); +/** + * A list of items to delete, To specify multiple items use argument multiple times + * @member {Array.} item + */ + + +DeleteItems.prototype['item'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteItems.prototype['json'] = false; +/** + * Path to delete the items from + * @member {String} path + * @default 'dummy_path' + */ + +DeleteItems.prototype['path'] = 'dummy_path'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteItems.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteItems.prototype['uid-token'] = undefined; +var _default = DeleteItems; +exports["default"] = _default; + +/***/ }), + +/***/ 16665: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateZeroSSLTarget", ({ - enumerable: true, - get: function get() { - return _UpdateZeroSSLTarget["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItemsOutput model module. + * @module model/DeleteItemsOutput + * @version 3.6.3 + */ +var DeleteItemsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItemsOutput. + * @alias module:model/DeleteItemsOutput + */ + function DeleteItemsOutput() { + _classCallCheck(this, DeleteItemsOutput); + + DeleteItemsOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItemsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteItemsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItemsOutput} obj Optional instance to populate. + * @return {module:model/DeleteItemsOutput} The populated DeleteItemsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItemsOutput(); + + if (data.hasOwnProperty('deleted_items')) { + obj['deleted_items'] = _ApiClient["default"].convertToType(data['deleted_items'], ['String']); + } + + if (data.hasOwnProperty('failed_deleted_items')) { + obj['failed_deleted_items'] = _ApiClient["default"].convertToType(data['failed_deleted_items'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteItemsOutput; +}(); +/** + * @member {Array.} deleted_items + */ + + +DeleteItemsOutput.prototype['deleted_items'] = undefined; +/** + * @member {Object.} failed_deleted_items + */ + +DeleteItemsOutput.prototype['failed_deleted_items'] = undefined; +/** + * @member {String} path + */ + +DeleteItemsOutput.prototype['path'] = undefined; +var _default = DeleteItemsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 25606: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UpdateZeroSSLTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateZeroSSLTargetOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRole model module. + * @module model/DeleteRole + * @version 3.6.3 + */ +var DeleteRole = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRole. + * @alias module:model/DeleteRole + * @param name {String} Role name + */ + function DeleteRole(name) { + _classCallCheck(this, DeleteRole); + + DeleteRole.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRole, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRole} obj Optional instance to populate. + * @return {module:model/DeleteRole} The populated DeleteRole instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRole(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRole; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteRole.prototype['json'] = false; +/** + * Role name + * @member {String} name + */ + +DeleteRole.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRole.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRole.prototype['uid-token'] = undefined; +var _default = DeleteRole; +exports["default"] = _default; + +/***/ }), + +/***/ 94059: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UploadPKCS12", ({ - enumerable: true, - get: function get() { - return _UploadPKCS["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoleAssociation model module. + * @module model/DeleteRoleAssociation + * @version 3.6.3 + */ +var DeleteRoleAssociation = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoleAssociation. + * deleteRoleAssociation is a command that deletes an association between role and auth method. + * @alias module:model/DeleteRoleAssociation + * @param assocId {String} The association id to be deleted + */ + function DeleteRoleAssociation(assocId) { + _classCallCheck(this, DeleteRoleAssociation); + + DeleteRoleAssociation.initialize(this, assocId); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoleAssociation, null, [{ + key: "initialize", + value: function initialize(obj, assocId) { + obj['assoc-id'] = assocId; + } + /** + * Constructs a DeleteRoleAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoleAssociation} obj Optional instance to populate. + * @return {module:model/DeleteRoleAssociation} The populated DeleteRoleAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoleAssociation(); + + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoleAssociation; +}(); +/** + * The association id to be deleted + * @member {String} assoc-id + */ + + +DeleteRoleAssociation.prototype['assoc-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteRoleAssociation.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRoleAssociation.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRoleAssociation.prototype['uid-token'] = undefined; +var _default = DeleteRoleAssociation; +exports["default"] = _default; + +/***/ }), + +/***/ 55968: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UploadRSA", ({ - enumerable: true, - get: function get() { - return _UploadRSA["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoleRule model module. + * @module model/DeleteRoleRule + * @version 3.6.3 + */ +var DeleteRoleRule = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoleRule. + * @alias module:model/DeleteRoleRule + * @param path {String} The path the rule refers to + * @param roleName {String} The role name to be updated + */ + function DeleteRoleRule(path, roleName) { + _classCallCheck(this, DeleteRoleRule); + + DeleteRoleRule.initialize(this, path, roleName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoleRule, null, [{ + key: "initialize", + value: function initialize(obj, path, roleName) { + obj['path'] = path; + obj['role-name'] = roleName; + } + /** + * Constructs a DeleteRoleRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoleRule} obj Optional instance to populate. + * @return {module:model/DeleteRoleRule} The populated DeleteRoleRule instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoleRule(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('role-name')) { + obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + } + + if (data.hasOwnProperty('rule-type')) { + obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoleRule; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteRoleRule.prototype['json'] = false; +/** + * The path the rule refers to + * @member {String} path + */ + +DeleteRoleRule.prototype['path'] = undefined; +/** + * The role name to be updated + * @member {String} role-name + */ + +DeleteRoleRule.prototype['role-name'] = undefined; +/** + * item-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule + * @member {String} rule-type + * @default 'item-rule' + */ + +DeleteRoleRule.prototype['rule-type'] = 'item-rule'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRoleRule.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRoleRule.prototype['uid-token'] = undefined; +var _default = DeleteRoleRule; +exports["default"] = _default; + +/***/ }), + +/***/ 34953: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ValidateToken", ({ - enumerable: true, - get: function get() { - return _ValidateToken["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoleRuleOutput model module. + * @module model/DeleteRoleRuleOutput + * @version 3.6.3 + */ +var DeleteRoleRuleOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoleRuleOutput. + * @alias module:model/DeleteRoleRuleOutput + */ + function DeleteRoleRuleOutput() { + _classCallCheck(this, DeleteRoleRuleOutput); + + DeleteRoleRuleOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoleRuleOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteRoleRuleOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoleRuleOutput} obj Optional instance to populate. + * @return {module:model/DeleteRoleRuleOutput} The populated DeleteRoleRuleOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoleRuleOutput(); + + if (data.hasOwnProperty('deleted')) { + obj['deleted'] = _ApiClient["default"].convertToType(data['deleted'], 'Boolean'); + } + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoleRuleOutput; +}(); +/** + * @member {Boolean} deleted + */ + + +DeleteRoleRuleOutput.prototype['deleted'] = undefined; +/** + * @member {String} result + */ + +DeleteRoleRuleOutput.prototype['result'] = undefined; +var _default = DeleteRoleRuleOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 60685: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ValidateTokenOutput", ({ - enumerable: true, - get: function get() { - return _ValidateTokenOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoles model module. + * @module model/DeleteRoles + * @version 3.6.3 + */ +var DeleteRoles = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoles. + * @alias module:model/DeleteRoles + * @param path {String} Path to delete the auth methods from + */ + function DeleteRoles(path) { + _classCallCheck(this, DeleteRoles); + + DeleteRoles.initialize(this, path); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoles, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteRoles from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoles} obj Optional instance to populate. + * @return {module:model/DeleteRoles} The populated DeleteRoles instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoles(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoles; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteRoles.prototype['json'] = false; +/** + * Path to delete the auth methods from + * @member {String} path + */ + +DeleteRoles.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRoles.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRoles.prototype['uid-token'] = undefined; +var _default = DeleteRoles; +exports["default"] = _default; + +/***/ }), + +/***/ 82379: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VaultlessTokenizerInfo", ({ - enumerable: true, - get: function get() { - return _VaultlessTokenizerInfo["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteTarget model module. + * @module model/DeleteTarget + * @version 3.6.3 + */ +var DeleteTarget = /*#__PURE__*/function () { + /** + * Constructs a new DeleteTarget. + * @alias module:model/DeleteTarget + * @param name {String} Target name + */ + function DeleteTarget(name) { + _classCallCheck(this, DeleteTarget); + + DeleteTarget.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTarget} obj Optional instance to populate. + * @return {module:model/DeleteTarget} The populated DeleteTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTarget(); + + if (data.hasOwnProperty('force-deletion')) { + obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('target-version')) { + obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteTarget; +}(); +/** + * Enforce deletion + * @member {Boolean} force-deletion + * @default false + */ + + +DeleteTarget.prototype['force-deletion'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteTarget.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ + +DeleteTarget.prototype['name'] = undefined; +/** + * Target version + * @member {Number} target-version + */ + +DeleteTarget.prototype['target-version'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteTarget.prototype['uid-token'] = undefined; +var _default = DeleteTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 1768: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VenafiTargetDetails", ({ - enumerable: true, - get: function get() { - return _VenafiTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteTargetAssociation model module. + * @module model/DeleteTargetAssociation + * @version 3.6.3 + */ +var DeleteTargetAssociation = /*#__PURE__*/function () { + /** + * Constructs a new DeleteTargetAssociation. + * deleteTargetAssociation is a command that deletes an association between target and item. + * @alias module:model/DeleteTargetAssociation + * @param name {String} Item name + */ + function DeleteTargetAssociation(name) { + _classCallCheck(this, DeleteTargetAssociation); + + DeleteTargetAssociation.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteTargetAssociation, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteTargetAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTargetAssociation} obj Optional instance to populate. + * @return {module:model/DeleteTargetAssociation} The populated DeleteTargetAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTargetAssociation(); + + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteTargetAssociation; +}(); +/** + * The association id to be deleted + * @member {String} assoc-id + */ + + +DeleteTargetAssociation.prototype['assoc-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteTargetAssociation.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ + +DeleteTargetAssociation.prototype['name'] = undefined; +/** + * The target to associate + * @member {String} target-name + */ + +DeleteTargetAssociation.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteTargetAssociation.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteTargetAssociation.prototype['uid-token'] = undefined; +var _default = DeleteTargetAssociation; +exports["default"] = _default; + +/***/ }), + +/***/ 67902: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VerifyDataWithClassicKey", ({ - enumerable: true, - get: function get() { - return _VerifyDataWithClassicKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteTargets model module. + * @module model/DeleteTargets + * @version 3.6.3 + */ +var DeleteTargets = /*#__PURE__*/function () { + /** + * Constructs a new DeleteTargets. + * @alias module:model/DeleteTargets + * @param path {String} Path to delete the targets from + */ + function DeleteTargets(path) { + _classCallCheck(this, DeleteTargets); + + DeleteTargets.initialize(this, path); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteTargets, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteTargets from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTargets} obj Optional instance to populate. + * @return {module:model/DeleteTargets} The populated DeleteTargets instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTargets(); + + if (data.hasOwnProperty('force-deletion')) { + obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteTargets; +}(); +/** + * Enforce deletion + * @member {Boolean} force-deletion + * @default false + */ + + +DeleteTargets.prototype['force-deletion'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteTargets.prototype['json'] = false; +/** + * Path to delete the targets from + * @member {String} path + */ + +DeleteTargets.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteTargets.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteTargets.prototype['uid-token'] = undefined; +var _default = DeleteTargets; +exports["default"] = _default; + +/***/ }), + +/***/ 19627: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VerifyGPG", ({ - enumerable: true, - get: function get() { - return _VerifyGPG["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeriveKey model module. + * @module model/DeriveKey + * @version 3.6.3 + */ +var DeriveKey = /*#__PURE__*/function () { + /** + * Constructs a new DeriveKey. + * @alias module:model/DeriveKey + * @param alg {String} Kdf algorithm + * @param iter {Number} IterationCount the number of iterations + * @param keyLen {Number} KeyLength the byte length of the generated key + * @param name {String} Static Secret full name + */ + function DeriveKey(alg, iter, keyLen, name) { + _classCallCheck(this, DeriveKey); + + DeriveKey.initialize(this, alg, iter, keyLen, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeriveKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, iter, keyLen, name) { + obj['alg'] = alg; + obj['iter'] = iter; + obj['key-len'] = keyLen; + obj['name'] = name; + } + /** + * Constructs a DeriveKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeriveKey} obj Optional instance to populate. + * @return {module:model/DeriveKey} The populated DeriveKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeriveKey(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + } + + if (data.hasOwnProperty('iter')) { + obj['iter'] = _ApiClient["default"].convertToType(data['iter'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-len')) { + obj['key-len'] = _ApiClient["default"].convertToType(data['key-len'], 'Number'); + } + + if (data.hasOwnProperty('mem')) { + obj['mem'] = _ApiClient["default"].convertToType(data['mem'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('parallelism')) { + obj['parallelism'] = _ApiClient["default"].convertToType(data['parallelism'], 'Number'); + } + + if (data.hasOwnProperty('salt')) { + obj['salt'] = _ApiClient["default"].convertToType(data['salt'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeriveKey; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +DeriveKey.prototype['accessibility'] = 'regular'; +/** + * Kdf algorithm + * @member {String} alg + * @default 'pbkdf2' + */ + +DeriveKey.prototype['alg'] = 'pbkdf2'; +/** + * HashFunction the hash function to use (relevant for pbkdf2) + * @member {String} hash-function + * @default 'sha256' + */ + +DeriveKey.prototype['hash-function'] = 'sha256'; +/** + * IterationCount the number of iterations + * @member {Number} iter + */ + +DeriveKey.prototype['iter'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeriveKey.prototype['json'] = false; +/** + * KeyLength the byte length of the generated key + * @member {Number} key-len + */ + +DeriveKey.prototype['key-len'] = undefined; +/** + * MemorySizeInKb the memory paramter in kb (relevant for argon2id) + * @member {Number} mem + * @default 16384 + */ + +DeriveKey.prototype['mem'] = 16384; +/** + * Static Secret full name + * @member {String} name + */ + +DeriveKey.prototype['name'] = undefined; +/** + * Parallelism the number of threads to use (relevant for argon2id) + * @member {Number} parallelism + * @default 1 + */ + +DeriveKey.prototype['parallelism'] = 1; +/** + * Salt Base64 encoded salt value. If not provided, the salt will be generated as part of the operation. The salt should be securely-generated random bytes, minimum 64 bits, 128 bits is recommended + * @member {String} salt + */ + +DeriveKey.prototype['salt'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeriveKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeriveKey.prototype['uid-token'] = undefined; +var _default = DeriveKey; +exports["default"] = _default; + +/***/ }), + +/***/ 30442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VerifyJWTOutput", ({ - enumerable: true, - get: function get() { - return _VerifyJWTOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeriveKeyOutput model module. + * @module model/DeriveKeyOutput + * @version 3.6.3 + */ +var DeriveKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeriveKeyOutput. + * @alias module:model/DeriveKeyOutput + */ + function DeriveKeyOutput() { + _classCallCheck(this, DeriveKeyOutput); + + DeriveKeyOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeriveKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeriveKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeriveKeyOutput} obj Optional instance to populate. + * @return {module:model/DeriveKeyOutput} The populated DeriveKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeriveKeyOutput(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = _ApiClient["default"].convertToType(data['Key'], 'String'); + } + + if (data.hasOwnProperty('Salt')) { + obj['Salt'] = _ApiClient["default"].convertToType(data['Salt'], 'String'); + } + } + + return obj; + } + }]); + + return DeriveKeyOutput; +}(); +/** + * @member {String} Key + */ + + +DeriveKeyOutput.prototype['Key'] = undefined; +/** + * @member {String} Salt + */ + +DeriveKeyOutput.prototype['Salt'] = undefined; +var _default = DeriveKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 66317: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VerifyJWTWithClassicKey", ({ - enumerable: true, - get: function get() { - return _VerifyJWTWithClassicKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeAssoc model module. + * @module model/DescribeAssoc + * @version 3.6.3 + */ +var DescribeAssoc = /*#__PURE__*/function () { + /** + * Constructs a new DescribeAssoc. + * @alias module:model/DescribeAssoc + * @param assocId {String} The association id + */ + function DescribeAssoc(assocId) { + _classCallCheck(this, DescribeAssoc); + + DescribeAssoc.initialize(this, assocId); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeAssoc, null, [{ + key: "initialize", + value: function initialize(obj, assocId) { + obj['assoc-id'] = assocId; + } + /** + * Constructs a DescribeAssoc from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeAssoc} obj Optional instance to populate. + * @return {module:model/DescribeAssoc} The populated DescribeAssoc instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeAssoc(); + + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribeAssoc; +}(); +/** + * The association id + * @member {String} assoc-id + */ + + +DescribeAssoc.prototype['assoc-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DescribeAssoc.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribeAssoc.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribeAssoc.prototype['uid-token'] = undefined; +var _default = DescribeAssoc; +exports["default"] = _default; + +/***/ }), + +/***/ 69543: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VerifyPKCS1", ({ - enumerable: true, - get: function get() { - return _VerifyPKCS["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeItem model module. + * @module model/DescribeItem + * @version 3.6.3 + */ +var DescribeItem = /*#__PURE__*/function () { + /** + * Constructs a new DescribeItem. + * @alias module:model/DescribeItem + * @param name {String} Item name + */ + function DescribeItem(name) { + _classCallCheck(this, DescribeItem); + + DescribeItem.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeItem, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DescribeItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeItem} obj Optional instance to populate. + * @return {module:model/DescribeItem} The populated DescribeItem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeItem(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('bastion-details')) { + obj['bastion-details'] = _ApiClient["default"].convertToType(data['bastion-details'], 'Boolean'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('gateway-details')) { + obj['gateway-details'] = _ApiClient["default"].convertToType(data['gateway-details'], 'Boolean'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('services-details')) { + obj['services-details'] = _ApiClient["default"].convertToType(data['services-details'], 'Boolean'); + } + + if (data.hasOwnProperty('show-versions')) { + obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribeItem; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +DescribeItem.prototype['accessibility'] = 'regular'; +/** + * Indicate if the item should return with ztb cluster details (url, etc) + * @member {Boolean} bastion-details + * @default false + */ + +DescribeItem.prototype['bastion-details'] = false; +/** + * The display id of the item + * @member {String} display-id + */ + +DescribeItem.prototype['display-id'] = undefined; +/** + * Indicate if the item should return with clusters details (url, etc) + * @member {Boolean} gateway-details + * @default false + */ + +DescribeItem.prototype['gateway-details'] = false; +/** + * Item id of the item + * @member {Number} item-id + */ + +DescribeItem.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DescribeItem.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ + +DescribeItem.prototype['name'] = undefined; +/** + * Include all associated services details + * @member {Boolean} services-details + * @default false + */ + +DescribeItem.prototype['services-details'] = false; +/** + * Include all item versions in reply + * @member {Boolean} show-versions + * @default false + */ + +DescribeItem.prototype['show-versions'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribeItem.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribeItem.prototype['uid-token'] = undefined; +var _default = DescribeItem; +exports["default"] = _default; + +/***/ }), + +/***/ 19826: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VerifyPKICertOutput", ({ - enumerable: true, - get: function get() { - return _VerifyPKICertOutput["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribePermissions model module. + * @module model/DescribePermissions + * @version 3.6.3 + */ +var DescribePermissions = /*#__PURE__*/function () { + /** + * Constructs a new DescribePermissions. + * describePermissions is a command that shows which permissions your have to a particular path. + * @alias module:model/DescribePermissions + * @param path {String} Path to an object + * @param type {String} Type of object (item, am, role, target) + */ + function DescribePermissions(path, type) { + _classCallCheck(this, DescribePermissions); + + DescribePermissions.initialize(this, path, type); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribePermissions, null, [{ + key: "initialize", + value: function initialize(obj, path, type) { + obj['path'] = path; + obj['type'] = type; + } + /** + * Constructs a DescribePermissions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribePermissions} obj Optional instance to populate. + * @return {module:model/DescribePermissions} The populated DescribePermissions instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribePermissions(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribePermissions; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DescribePermissions.prototype['json'] = false; +/** + * Path to an object + * @member {String} path + */ + +DescribePermissions.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribePermissions.prototype['token'] = undefined; +/** + * Type of object (item, am, role, target) + * @member {String} type + */ + +DescribePermissions.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribePermissions.prototype['uid-token'] = undefined; +var _default = DescribePermissions; +exports["default"] = _default; + +/***/ }), + +/***/ 83191: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "VerifyPKICertWithClassicKey", ({ - enumerable: true, - get: function get() { - return _VerifyPKICertWithClassicKey["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribePermissionsOutput model module. + * @module model/DescribePermissionsOutput + * @version 3.6.3 + */ +var DescribePermissionsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DescribePermissionsOutput. + * @alias module:model/DescribePermissionsOutput + */ + function DescribePermissionsOutput() { + _classCallCheck(this, DescribePermissionsOutput); + + DescribePermissionsOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribePermissionsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DescribePermissionsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribePermissionsOutput} obj Optional instance to populate. + * @return {module:model/DescribePermissionsOutput} The populated DescribePermissionsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribePermissionsOutput(); + + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + } + } + + return obj; + } + }]); + + return DescribePermissionsOutput; +}(); +/** + * @member {Array.} client_permissions + */ + + +DescribePermissionsOutput.prototype['client_permissions'] = undefined; +var _default = DescribePermissionsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 95525: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "WebTargetDetails", ({ - enumerable: true, - get: function get() { - return _WebTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeSubClaims model module. + * @module model/DescribeSubClaims + * @version 3.6.3 + */ +var DescribeSubClaims = /*#__PURE__*/function () { + /** + * Constructs a new DescribeSubClaims. + * describe-sub-claims Get the sub-claims associated with the provided token or authentication profile + * @alias module:model/DescribeSubClaims + */ + function DescribeSubClaims() { + _classCallCheck(this, DescribeSubClaims); + + DescribeSubClaims.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeSubClaims, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DescribeSubClaims from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeSubClaims} obj Optional instance to populate. + * @return {module:model/DescribeSubClaims} The populated DescribeSubClaims instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeSubClaims(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribeSubClaims; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DescribeSubClaims.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribeSubClaims.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribeSubClaims.prototype['uid-token'] = undefined; +var _default = DescribeSubClaims; +exports["default"] = _default; + +/***/ }), + +/***/ 38224: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "WindowsTargetDetails", ({ - enumerable: true, - get: function get() { - return _WindowsTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeSubClaimsOutput model module. + * @module model/DescribeSubClaimsOutput + * @version 3.6.3 + */ +var DescribeSubClaimsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DescribeSubClaimsOutput. + * @alias module:model/DescribeSubClaimsOutput + */ + function DescribeSubClaimsOutput() { + _classCallCheck(this, DescribeSubClaimsOutput); + + DescribeSubClaimsOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeSubClaimsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DescribeSubClaimsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeSubClaimsOutput} obj Optional instance to populate. + * @return {module:model/DescribeSubClaimsOutput} The populated DescribeSubClaimsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeSubClaimsOutput(); + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return DescribeSubClaimsOutput; +}(); +/** + * @member {Object.>} sub_claims + */ + + +DescribeSubClaimsOutput.prototype['sub_claims'] = undefined; +var _default = DescribeSubClaimsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84927: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ZeroSSLTargetDetails", ({ - enumerable: true, - get: function get() { - return _ZeroSSLTargetDetails["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Detokenize model module. + * @module model/Detokenize + * @version 3.6.3 + */ +var Detokenize = /*#__PURE__*/function () { + /** + * Constructs a new Detokenize. + * detokenize is a command that decrypts text with a tokenizer + * @alias module:model/Detokenize + * @param ciphertext {String} Data to be decrypted + * @param tokenizerName {String} The name of the tokenizer to use in the decryption process + */ + function Detokenize(ciphertext, tokenizerName) { + _classCallCheck(this, Detokenize); + + Detokenize.initialize(this, ciphertext, tokenizerName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Detokenize, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, tokenizerName) { + obj['ciphertext'] = ciphertext; + obj['tokenizer-name'] = tokenizerName; + } + /** + * Constructs a Detokenize from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Detokenize} obj Optional instance to populate. + * @return {module:model/Detokenize} The populated Detokenize instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Detokenize(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('tokenizer-name')) { + obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); + } + + if (data.hasOwnProperty('tweak')) { + obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return Detokenize; +}(); +/** + * Data to be decrypted + * @member {String} ciphertext + */ + + +Detokenize.prototype['ciphertext'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Detokenize.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Detokenize.prototype['token'] = undefined; +/** + * The name of the tokenizer to use in the decryption process + * @member {String} tokenizer-name + */ + +Detokenize.prototype['tokenizer-name'] = undefined; +/** + * Base64 encoded tweak for vaultless encryption + * @member {String} tweak + */ + +Detokenize.prototype['tweak'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Detokenize.prototype['uid-token'] = undefined; +var _default = Detokenize; +exports["default"] = _default; + +/***/ }), + +/***/ 52838: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "V2Api", ({ - enumerable: true, - get: function get() { - return _V2Api["default"]; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DetokenizeOutput model module. + * @module model/DetokenizeOutput + * @version 3.6.3 + */ +var DetokenizeOutput = /*#__PURE__*/function () { + /** + * Constructs a new DetokenizeOutput. + * @alias module:model/DetokenizeOutput + */ + function DetokenizeOutput() { + _classCallCheck(this, DetokenizeOutput); + + DetokenizeOutput.initialize(this); } -})); + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DetokenizeOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DetokenizeOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DetokenizeOutput} obj Optional instance to populate. + * @return {module:model/DetokenizeOutput} The populated DetokenizeOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DetokenizeOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DetokenizeOutput; +}(); +/** + * @member {String} result + */ + + +DetokenizeOutput.prototype['result'] = undefined; +var _default = DetokenizeOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 1581: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(74119)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(54294)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _AWSPayload = _interopRequireDefault(__nccwpck_require__(90509)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(57803)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(30193)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(87326)); +/** + * The DockerhubTargetDetails model module. + * @module model/DockerhubTargetDetails + * @version 3.6.3 + */ +var DockerhubTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new DockerhubTargetDetails. + * DockerhubTargetDetails + * @alias module:model/DockerhubTargetDetails + */ + function DockerhubTargetDetails() { + _classCallCheck(this, DockerhubTargetDetails); -var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(80281)); + DockerhubTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(24149)); -var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(63519)); + _createClass(DockerhubTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DockerhubTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DockerhubTargetDetails} obj Optional instance to populate. + * @return {module:model/DockerhubTargetDetails} The populated DockerhubTargetDetails instance. + */ -var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(33564)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DockerhubTargetDetails(); -var _AddGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(84157)); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } -var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(58307)); + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + } + } -var _AkeylessGatewayConfig = _interopRequireDefault(__nccwpck_require__(74034)); + return obj; + } + }]); -var _AllowedAccess = _interopRequireDefault(__nccwpck_require__(3266)); + return DockerhubTargetDetails; +}(); +/** + * @member {String} password + */ -var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(90264)); -var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(70521)); +DockerhubTargetDetails.prototype['password'] = undefined; +/** + * @member {String} user_name + */ -var _AssocRoleAuthMethod = _interopRequireDefault(__nccwpck_require__(44828)); +DockerhubTargetDetails.prototype['user_name'] = undefined; +var _default = DockerhubTargetDetails; +exports["default"] = _default; -var _AssocTargetItem = _interopRequireDefault(__nccwpck_require__(64338)); +/***/ }), -var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(83895)); +/***/ 27524: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _Auth = _interopRequireDefault(__nccwpck_require__(66499)); +"use strict"; -var _AuthMethod = _interopRequireDefault(__nccwpck_require__(43874)); -var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(68623)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(80866)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _AuthOutput = _interopRequireDefault(__nccwpck_require__(6242)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(44285)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(62843)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(92600)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(20470)); +/** + * The DynamicSecretCreateArtifactory model module. + * @module model/DynamicSecretCreateArtifactory + * @version 3.6.3 + */ +var DynamicSecretCreateArtifactory = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateArtifactory. + * dynamicSecretCreateArtifactory is a command that creates artifactory dynamic secret + * @alias module:model/DynamicSecretCreateArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, DynamicSecretCreateArtifactory); -var _AzurePayload = _interopRequireDefault(__nccwpck_require__(49543)); + DynamicSecretCreateArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(23491)); -var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(43655)); + _createClass(DynamicSecretCreateArtifactory, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateArtifactory from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateArtifactory} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateArtifactory} The populated DynamicSecretCreateArtifactory instance. + */ -var _BastionsList = _interopRequireDefault(__nccwpck_require__(69265)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateArtifactory(); -var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(3717)); + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } -var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(89529)); + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } -var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(62934)); + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); + } -var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(85587)); + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + } -var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(36575)); + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } -var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(9174)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(55006)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(92561)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(79441)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(4244)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(60797)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(77910)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _ClientData = _interopRequireDefault(__nccwpck_require__(17951)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(79508)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _ConfigHash = _interopRequireDefault(__nccwpck_require__(22177)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _Configure = _interopRequireDefault(__nccwpck_require__(6418)); + return obj; + } + }]); -var _ConfigureOutput = _interopRequireDefault(__nccwpck_require__(66228)); + return DynamicSecretCreateArtifactory; +}(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ -var _Connect = _interopRequireDefault(__nccwpck_require__(99034)); -var _CreateAWSTarget = _interopRequireDefault(__nccwpck_require__(36718)); +DynamicSecretCreateArtifactory.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ -var _CreateAWSTargetOutput = _interopRequireDefault(__nccwpck_require__(56001)); +DynamicSecretCreateArtifactory.prototype['artifactory-admin-pwd'] = undefined; +/** + * Token Audience + * @member {String} artifactory-token-audience + */ -var _CreateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(69748)); +DynamicSecretCreateArtifactory.prototype['artifactory-token-audience'] = undefined; +/** + * Token Scope + * @member {String} artifactory-token-scope + */ -var _CreateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(35788)); +DynamicSecretCreateArtifactory.prototype['artifactory-token-scope'] = undefined; +/** + * Base URL + * @member {String} base-url + */ -var _CreateAuthMethod = _interopRequireDefault(__nccwpck_require__(76236)); +DynamicSecretCreateArtifactory.prototype['base-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _CreateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(47723)); +DynamicSecretCreateArtifactory.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _CreateAuthMethodAWSIAMOutput = _interopRequireDefault(__nccwpck_require__(36759)); +DynamicSecretCreateArtifactory.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _CreateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(41957)); +DynamicSecretCreateArtifactory.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _CreateAuthMethodAzureADOutput = _interopRequireDefault(__nccwpck_require__(26053)); +DynamicSecretCreateArtifactory.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _CreateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(1870)); +DynamicSecretCreateArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _CreateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(73412)); +DynamicSecretCreateArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _CreateAuthMethodEmail = _interopRequireDefault(__nccwpck_require__(29506)); +DynamicSecretCreateArtifactory.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _CreateAuthMethodEmailOutput = _interopRequireDefault(__nccwpck_require__(46993)); +DynamicSecretCreateArtifactory.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _CreateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(69857)); +DynamicSecretCreateArtifactory.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _CreateAuthMethodGCPOutput = _interopRequireDefault(__nccwpck_require__(95248)); +DynamicSecretCreateArtifactory.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateArtifactory; +exports["default"] = _default; -var _CreateAuthMethodHuawei = _interopRequireDefault(__nccwpck_require__(97485)); +/***/ }), -var _CreateAuthMethodHuaweiOutput = _interopRequireDefault(__nccwpck_require__(90408)); +/***/ 27087: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _CreateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(3002)); +"use strict"; -var _CreateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(5813)); -var _CreateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(29277)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _CreateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(87856)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _CreateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(90371)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _CreateAuthMethodOAuth2Output = _interopRequireDefault(__nccwpck_require__(70581)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _CreateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(11827)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _CreateAuthMethodOIDCOutput = _interopRequireDefault(__nccwpck_require__(41721)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _CreateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(41331)); +/** + * The DynamicSecretCreateAws model module. + * @module model/DynamicSecretCreateAws + * @version 3.6.3 + */ +var DynamicSecretCreateAws = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateAws. + * dynamicSecretCreateAws is a command that creates aws dynamic secret + * @alias module:model/DynamicSecretCreateAws + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateAws(name) { + _classCallCheck(this, DynamicSecretCreateAws); -var _CreateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(68547)); + DynamicSecretCreateAws.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _CreateAuthMethodSAMLOutput = _interopRequireDefault(__nccwpck_require__(56578)); -var _CreateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(70344)); + _createClass(DynamicSecretCreateAws, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateAws from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateAws} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateAws} The populated DynamicSecretCreateAws instance. + */ -var _CreateAuthMethodUniversalIdentityOutput = _interopRequireDefault(__nccwpck_require__(46912)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateAws(); -var _CreateAzureTarget = _interopRequireDefault(__nccwpck_require__(82408)); + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); + } -var _CreateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(24672)); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } -var _CreateCertificate = _interopRequireDefault(__nccwpck_require__(57598)); + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); + } -var _CreateCertificateOutput = _interopRequireDefault(__nccwpck_require__(35159)); + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); + } -var _CreateClassicKey = _interopRequireDefault(__nccwpck_require__(254)); + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); + } -var _CreateClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(60170)); + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); + } -var _CreateDBTarget = _interopRequireDefault(__nccwpck_require__(34977)); + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); + } -var _CreateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(84642)); + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); + } -var _CreateDFCKey = _interopRequireDefault(__nccwpck_require__(82075)); + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); + } -var _CreateDFCKeyOutput = _interopRequireDefault(__nccwpck_require__(27955)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _CreateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(15339)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _CreateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(35729)); + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } -var _CreateDynamicSecret = _interopRequireDefault(__nccwpck_require__(14871)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _CreateEKSTarget = _interopRequireDefault(__nccwpck_require__(30934)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _CreateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(77298)); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -var _CreateESM = _interopRequireDefault(__nccwpck_require__(477)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _CreateESMOutput = _interopRequireDefault(__nccwpck_require__(32554)); + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } -var _CreateEventForwarder = _interopRequireDefault(__nccwpck_require__(49168)); + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } -var _CreateEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(54081)); + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } -var _CreateGKETarget = _interopRequireDefault(__nccwpck_require__(41820)); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -var _CreateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(81519)); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -var _CreateGcpTarget = _interopRequireDefault(__nccwpck_require__(80384)); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -var _CreateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(7022)); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } -var _CreateGithubTarget = _interopRequireDefault(__nccwpck_require__(97613)); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } -var _CreateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(52291)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _CreateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(44412)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _CreateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(43747)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _CreateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(27537)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _CreateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(8831)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _CreateKey = _interopRequireDefault(__nccwpck_require__(60073)); + return obj; + } + }]); -var _CreateKeyOutput = _interopRequireDefault(__nccwpck_require__(7903)); + return DynamicSecretCreateAws; +}(); +/** + * @member {String} access-mode + */ -var _CreateLdapTarget = _interopRequireDefault(__nccwpck_require__(70219)); -var _CreateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(44520)); +DynamicSecretCreateAws.prototype['access-mode'] = undefined; +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ -var _CreateLinkedTarget = _interopRequireDefault(__nccwpck_require__(675)); +DynamicSecretCreateAws.prototype['admin-rotation-interval-days'] = 0; +/** + * Access Key ID + * @member {String} aws-access-key-id + */ -var _CreateLinkedTargetOutput = _interopRequireDefault(__nccwpck_require__(53373)); +DynamicSecretCreateAws.prototype['aws-access-key-id'] = undefined; +/** + * Secret Access Key + * @member {String} aws-access-secret-key + */ -var _CreateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(62254)); +DynamicSecretCreateAws.prototype['aws-access-secret-key'] = undefined; +/** + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns + */ -var _CreateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(97584)); +DynamicSecretCreateAws.prototype['aws-role-arns'] = undefined; +/** + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false + */ -var _CreatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(29539)); +DynamicSecretCreateAws.prototype['aws-user-console-access'] = false; +/** + * AWS User groups + * @member {String} aws-user-groups + */ -var _CreatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(55645)); +DynamicSecretCreateAws.prototype['aws-user-groups'] = undefined; +/** + * AWS User policies + * @member {String} aws-user-policies + */ -var _CreatePingTarget = _interopRequireDefault(__nccwpck_require__(12056)); +DynamicSecretCreateAws.prototype['aws-user-policies'] = undefined; +/** + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true + */ -var _CreatePingTargetOutput = _interopRequireDefault(__nccwpck_require__(72314)); +DynamicSecretCreateAws.prototype['aws-user-programmatic-access'] = true; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _CreateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(63852)); +DynamicSecretCreateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _CreateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(85199)); +DynamicSecretCreateAws.prototype['description'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ -var _CreateRole = _interopRequireDefault(__nccwpck_require__(11951)); +DynamicSecretCreateAws.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _CreateRoleAuthMethodAssocOutput = _interopRequireDefault(__nccwpck_require__(67799)); +DynamicSecretCreateAws.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _CreateRotatedSecret = _interopRequireDefault(__nccwpck_require__(18755)); +DynamicSecretCreateAws.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var _CreateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(52446)); +DynamicSecretCreateAws.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _CreateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(85975)); +DynamicSecretCreateAws.prototype['producer-encryption-key-name'] = undefined; +/** + * Region + * @member {String} region + * @default 'us-east-2' + */ -var _CreateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(60309)); +DynamicSecretCreateAws.prototype['region'] = 'us-east-2'; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ -var _CreateSSHTarget = _interopRequireDefault(__nccwpck_require__(48281)); +DynamicSecretCreateAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ -var _CreateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(9128)); +DynamicSecretCreateAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -var _CreateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(35282)); +DynamicSecretCreateAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -var _CreateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(9796)); +DynamicSecretCreateAws.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ -var _CreateSecret = _interopRequireDefault(__nccwpck_require__(34625)); +DynamicSecretCreateAws.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ -var _CreateSecretOutput = _interopRequireDefault(__nccwpck_require__(73489)); +DynamicSecretCreateAws.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ -var _CreateTargetItemAssocOutput = _interopRequireDefault(__nccwpck_require__(1554)); +DynamicSecretCreateAws.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _CreateTokenizer = _interopRequireDefault(__nccwpck_require__(29143)); +DynamicSecretCreateAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _CreateTokenizerOutput = _interopRequireDefault(__nccwpck_require__(36903)); +DynamicSecretCreateAws.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _CreateWebTarget = _interopRequireDefault(__nccwpck_require__(21668)); +DynamicSecretCreateAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _CreateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(89702)); +DynamicSecretCreateAws.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _CreateWindowsTarget = _interopRequireDefault(__nccwpck_require__(93445)); +DynamicSecretCreateAws.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateAws; +exports["default"] = _default; -var _CreateWindowsTargetOutput = _interopRequireDefault(__nccwpck_require__(91995)); +/***/ }), -var _CreateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(85328)); +/***/ 2733: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _CreateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(5011)); +"use strict"; -var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(13649)); -var _CustomerFragment = _interopRequireDefault(__nccwpck_require__(59023)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _CustomerFragmentsJson = _interopRequireDefault(__nccwpck_require__(91277)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(75719)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(33221)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(735)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(31548)); +/** + * The DynamicSecretCreateAzure model module. + * @module model/DynamicSecretCreateAzure + * @version 3.6.3 + */ +var DynamicSecretCreateAzure = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateAzure. + * dynamicSecretCreateAzure is a command that creates azure dynamic secret + * @alias module:model/DynamicSecretCreateAzure + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateAzure(name) { + _classCallCheck(this, DynamicSecretCreateAzure); -var _Decrypt = _interopRequireDefault(__nccwpck_require__(3280)); + DynamicSecretCreateAzure.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _DecryptFile = _interopRequireDefault(__nccwpck_require__(90930)); -var _DecryptFileOutput = _interopRequireDefault(__nccwpck_require__(85960)); + _createClass(DynamicSecretCreateAzure, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateAzure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateAzure} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateAzure} The populated DynamicSecretCreateAzure instance. + */ -var _DecryptGPG = _interopRequireDefault(__nccwpck_require__(47204)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateAzure(); -var _DecryptGPGOutput = _interopRequireDefault(__nccwpck_require__(58733)); + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); + } -var _DecryptOutput = _interopRequireDefault(__nccwpck_require__(69386)); + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } -var _DecryptPKCS = _interopRequireDefault(__nccwpck_require__(97729)); + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } -var _DecryptPKCS1Output = _interopRequireDefault(__nccwpck_require__(67796)); + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } -var _DecryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(11874)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _DecryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(42770)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(14740)); + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); + } -var _DeleteAuthMethod = _interopRequireDefault(__nccwpck_require__(17478)); + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); + } -var _DeleteAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(61527)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _DeleteAuthMethods = _interopRequireDefault(__nccwpck_require__(42077)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _DeleteAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(13673)); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -var _DeleteEventForwarder = _interopRequireDefault(__nccwpck_require__(72713)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _DeleteGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(47893)); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -var _DeleteGwCluster = _interopRequireDefault(__nccwpck_require__(28427)); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -var _DeleteItem = _interopRequireDefault(__nccwpck_require__(89426)); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } -var _DeleteItemOutput = _interopRequireDefault(__nccwpck_require__(7557)); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } -var _DeleteItems = _interopRequireDefault(__nccwpck_require__(43758)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _DeleteItemsOutput = _interopRequireDefault(__nccwpck_require__(55802)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _DeleteRole = _interopRequireDefault(__nccwpck_require__(22253)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _DeleteRoleAssociation = _interopRequireDefault(__nccwpck_require__(36698)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _DeleteRoleRule = _interopRequireDefault(__nccwpck_require__(17666)); + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } -var _DeleteRoleRuleOutput = _interopRequireDefault(__nccwpck_require__(40164)); + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } -var _DeleteRoles = _interopRequireDefault(__nccwpck_require__(48595)); + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } -var _DeleteTarget = _interopRequireDefault(__nccwpck_require__(80558)); + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } -var _DeleteTargetAssociation = _interopRequireDefault(__nccwpck_require__(20037)); + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } -var _DeleteTargets = _interopRequireDefault(__nccwpck_require__(87093)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _DeriveKey = _interopRequireDefault(__nccwpck_require__(95190)); + return obj; + } + }]); -var _DeriveKeyOutput = _interopRequireDefault(__nccwpck_require__(62566)); + return DynamicSecretCreateAzure; +}(); +/** + * Azure App Object Id + * @member {String} app-obj-id + */ -var _DescribeAssoc = _interopRequireDefault(__nccwpck_require__(84832)); -var _DescribeItem = _interopRequireDefault(__nccwpck_require__(36301)); +DynamicSecretCreateAzure.prototype['app-obj-id'] = undefined; +/** + * Azure Client ID + * @member {String} azure-client-id + */ -var _DescribePermissions = _interopRequireDefault(__nccwpck_require__(81615)); +DynamicSecretCreateAzure.prototype['azure-client-id'] = undefined; +/** + * Azure Client Secret + * @member {String} azure-client-secret + */ -var _DescribePermissionsOutput = _interopRequireDefault(__nccwpck_require__(84471)); +DynamicSecretCreateAzure.prototype['azure-client-secret'] = undefined; +/** + * Azure Tenant ID + * @member {String} azure-tenant-id + */ -var _DescribeSubClaims = _interopRequireDefault(__nccwpck_require__(70072)); +DynamicSecretCreateAzure.prototype['azure-tenant-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _DescribeSubClaimsOutput = _interopRequireDefault(__nccwpck_require__(8808)); +DynamicSecretCreateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _Detokenize = _interopRequireDefault(__nccwpck_require__(73561)); +DynamicSecretCreateAzure.prototype['description'] = undefined; +/** + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' + */ -var _DetokenizeOutput = _interopRequireDefault(__nccwpck_require__(36694)); +DynamicSecretCreateAzure.prototype['fixed-user-claim-keyname'] = 'false'; +/** + * Fixed user + * @member {Boolean} fixed-user-only + * @default false + */ -var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(38807)); +DynamicSecretCreateAzure.prototype['fixed-user-only'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(65342)); +DynamicSecretCreateAzure.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(98564)); +DynamicSecretCreateAzure.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(77431)); +DynamicSecretCreateAzure.prototype['password-length'] = undefined; +/** + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name + */ -var _EmailEntry = _interopRequireDefault(__nccwpck_require__(36375)); +DynamicSecretCreateAzure.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(42063)); +DynamicSecretCreateAzure.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ -var _EmailTokenizerInfo = _interopRequireDefault(__nccwpck_require__(90438)); +DynamicSecretCreateAzure.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ -var _Encrypt = _interopRequireDefault(__nccwpck_require__(6318)); +DynamicSecretCreateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ -var _EncryptFile = _interopRequireDefault(__nccwpck_require__(72137)); +DynamicSecretCreateAzure.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _EncryptFileOutput = _interopRequireDefault(__nccwpck_require__(13999)); +DynamicSecretCreateAzure.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _EncryptGPG = _interopRequireDefault(__nccwpck_require__(4808)); +DynamicSecretCreateAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _EncryptGPGOutput = _interopRequireDefault(__nccwpck_require__(80692)); +DynamicSecretCreateAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _EncryptOutput = _interopRequireDefault(__nccwpck_require__(23247)); +DynamicSecretCreateAzure.prototype['uid-token'] = undefined; +/** + * User Group Object Id + * @member {String} user-group-obj-id + */ -var _EncryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(33560)); +DynamicSecretCreateAzure.prototype['user-group-obj-id'] = undefined; +/** + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false + */ -var _EncryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(32942)); +DynamicSecretCreateAzure.prototype['user-portal-access'] = false; +/** + * User Principal Name + * @member {String} user-principal-name + */ -var _EsmCreate = _interopRequireDefault(__nccwpck_require__(44195)); +DynamicSecretCreateAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ -var _EsmCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(63074)); +DynamicSecretCreateAzure.prototype['user-programmatic-access'] = false; +/** + * User Role Template Id + * @member {String} user-role-template-id + */ -var _EsmDelete = _interopRequireDefault(__nccwpck_require__(23265)); +DynamicSecretCreateAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _EsmDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(90654)); +DynamicSecretCreateAzure.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateAzure; +exports["default"] = _default; -var _EsmGet = _interopRequireDefault(__nccwpck_require__(50319)); +/***/ }), -var _EsmGetSecretOutput = _interopRequireDefault(__nccwpck_require__(22540)); +/***/ 68128: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _EsmList = _interopRequireDefault(__nccwpck_require__(74849)); +"use strict"; -var _EsmListSecretsOutput = _interopRequireDefault(__nccwpck_require__(1907)); -var _EsmUpdate = _interopRequireDefault(__nccwpck_require__(12560)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _EsmUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(18466)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _EventAction = _interopRequireDefault(__nccwpck_require__(72018)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _ExportClassicKey = _interopRequireDefault(__nccwpck_require__(65944)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _ExportClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(19726)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _Extension = _interopRequireDefault(__nccwpck_require__(37518)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(18398)); +/** + * The DynamicSecretCreateCassandra model module. + * @module model/DynamicSecretCreateCassandra + * @version 3.6.3 + */ +var DynamicSecretCreateCassandra = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateCassandra. + * dynamicSecretCreateCassandra is a command that creates a Cassandra dynamic secret + * @alias module:model/DynamicSecretCreateCassandra + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateCassandra(name) { + _classCallCheck(this, DynamicSecretCreateCassandra); -var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(68968)); + DynamicSecretCreateCassandra.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _GCPPayload = _interopRequireDefault(__nccwpck_require__(52127)); -var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(32232)); + _createClass(DynamicSecretCreateCassandra, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateCassandra from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateCassandra} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateCassandra} The populated DynamicSecretCreateCassandra instance. + */ -var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(68381)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateCassandra(); -var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(52832)); + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); + } -var _GatewayCreateAllowedAccess = _interopRequireDefault(__nccwpck_require__(13636)); + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); + } -var _GatewayCreateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(80817)); + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); + } -var _GatewayCreateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(67291)); + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); + } -var _GatewayCreateMigration = _interopRequireDefault(__nccwpck_require__(89712)); + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + } -var _GatewayCreateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(85963)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _GatewayCreateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(12283)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _GatewayCreateProducerAws = _interopRequireDefault(__nccwpck_require__(62465)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _GatewayCreateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(22782)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _GatewayCreateProducerAzure = _interopRequireDefault(__nccwpck_require__(11768)); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -var _GatewayCreateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(21509)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _GatewayCreateProducerCassandra = _interopRequireDefault(__nccwpck_require__(46210)); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } -var _GatewayCreateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(6297)); + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } -var _GatewayCreateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(21006)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _GatewayCreateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(29244)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _GatewayCreateProducerChef = _interopRequireDefault(__nccwpck_require__(76427)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _GatewayCreateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(98272)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _GatewayCreateProducerCustom = _interopRequireDefault(__nccwpck_require__(24096)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _GatewayCreateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(90062)); + return obj; + } + }]); -var _GatewayCreateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(2266)); + return DynamicSecretCreateCassandra; +}(); +/** + * Cassandra creation statements + * @member {String} cassandra-creation-statements + */ -var _GatewayCreateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(21985)); -var _GatewayCreateProducerEks = _interopRequireDefault(__nccwpck_require__(34886)); +DynamicSecretCreateCassandra.prototype['cassandra-creation-statements'] = undefined; +/** + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts + */ -var _GatewayCreateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(26934)); +DynamicSecretCreateCassandra.prototype['cassandra-hosts'] = undefined; +/** + * Cassandra superuser password + * @member {String} cassandra-password + */ -var _GatewayCreateProducerGcp = _interopRequireDefault(__nccwpck_require__(79907)); +DynamicSecretCreateCassandra.prototype['cassandra-password'] = undefined; +/** + * Cassandra port + * @member {String} cassandra-port + * @default '9042' + */ -var _GatewayCreateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(66661)); +DynamicSecretCreateCassandra.prototype['cassandra-port'] = '9042'; +/** + * Cassandra superuser username + * @member {String} cassandra-username + */ -var _GatewayCreateProducerGithub = _interopRequireDefault(__nccwpck_require__(68950)); +DynamicSecretCreateCassandra.prototype['cassandra-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _GatewayCreateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(77723)); +DynamicSecretCreateCassandra.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _GatewayCreateProducerGke = _interopRequireDefault(__nccwpck_require__(77929)); +DynamicSecretCreateCassandra.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _GatewayCreateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(3544)); +DynamicSecretCreateCassandra.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _GatewayCreateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(93694)); +DynamicSecretCreateCassandra.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var _GatewayCreateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(72487)); +DynamicSecretCreateCassandra.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _GatewayCreateProducerLdap = _interopRequireDefault(__nccwpck_require__(51154)); +DynamicSecretCreateCassandra.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ -var _GatewayCreateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(19730)); +DynamicSecretCreateCassandra.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ -var _GatewayCreateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(98069)); +DynamicSecretCreateCassandra.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _GatewayCreateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(43163)); +DynamicSecretCreateCassandra.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _GatewayCreateProducerMongo = _interopRequireDefault(__nccwpck_require__(4388)); +DynamicSecretCreateCassandra.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _GatewayCreateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(31733)); +DynamicSecretCreateCassandra.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _GatewayCreateProducerMySQL = _interopRequireDefault(__nccwpck_require__(85649)); +DynamicSecretCreateCassandra.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _GatewayCreateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(11806)); +DynamicSecretCreateCassandra.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateCassandra; +exports["default"] = _default; -var _GatewayCreateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(51088)); +/***/ }), -var _GatewayCreateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(34965)); +/***/ 4408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _GatewayCreateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(64681)); +"use strict"; -var _GatewayCreateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(20411)); -var _GatewayCreateProducerPing = _interopRequireDefault(__nccwpck_require__(26206)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _GatewayCreateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(8091)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _GatewayCreateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(96462)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _GatewayCreateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(55504)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _GatewayCreateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(99404)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _GatewayCreateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(47454)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _GatewayCreateProducerRdp = _interopRequireDefault(__nccwpck_require__(62294)); +/** + * The DynamicSecretCreateChef model module. + * @module model/DynamicSecretCreateChef + * @version 3.6.3 + */ +var DynamicSecretCreateChef = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateChef. + * dynamicSecretCreateChef is a command that creates chef dynamic secret + * @alias module:model/DynamicSecretCreateChef + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateChef(name) { + _classCallCheck(this, DynamicSecretCreateChef); -var _GatewayCreateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(69819)); + DynamicSecretCreateChef.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _GatewayCreateProducerRedis = _interopRequireDefault(__nccwpck_require__(22541)); -var _GatewayCreateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(73187)); + _createClass(DynamicSecretCreateChef, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateChef from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateChef} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateChef} The populated DynamicSecretCreateChef instance. + */ -var _GatewayCreateProducerRedshift = _interopRequireDefault(__nccwpck_require__(91791)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateChef(); -var _GatewayCreateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(26737)); + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); + } -var _GatewayCreateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(48963)); + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); + } -var _GatewayCreateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(97420)); + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); + } -var _GatewayDeleteAllowedAccess = _interopRequireDefault(__nccwpck_require__(87221)); + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + } -var _GatewayDeleteAllowedAccessOutput = _interopRequireDefault(__nccwpck_require__(50892)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _GatewayDeleteK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(87968)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _GatewayDeleteK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(50443)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _GatewayDeleteMigration = _interopRequireDefault(__nccwpck_require__(62288)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _GatewayDeleteProducer = _interopRequireDefault(__nccwpck_require__(50948)); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -var _GatewayDeleteProducerOutput = _interopRequireDefault(__nccwpck_require__(82940)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _GatewayDownloadCustomerFragments = _interopRequireDefault(__nccwpck_require__(85186)); + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } -var _GatewayDownloadCustomerFragmentsOutput = _interopRequireDefault(__nccwpck_require__(11802)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _GatewayGetAllowedAccess = _interopRequireDefault(__nccwpck_require__(71402)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _GatewayGetConfig = _interopRequireDefault(__nccwpck_require__(11488)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _GatewayGetK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(24545)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _GatewayGetK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(80582)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _GatewayGetLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(87398)); + return obj; + } + }]); -var _GatewayGetLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(39357)); + return DynamicSecretCreateChef; +}(); +/** + * Organizations + * @member {String} chef-orgs + */ -var _GatewayGetMigration = _interopRequireDefault(__nccwpck_require__(711)); -var _GatewayGetProducer = _interopRequireDefault(__nccwpck_require__(58440)); +DynamicSecretCreateChef.prototype['chef-orgs'] = undefined; +/** + * Server key + * @member {String} chef-server-key + */ -var _GatewayGetTmpUsers = _interopRequireDefault(__nccwpck_require__(31236)); +DynamicSecretCreateChef.prototype['chef-server-key'] = undefined; +/** + * Server URL + * @member {String} chef-server-url + */ -var _GatewayListMigration = _interopRequireDefault(__nccwpck_require__(63966)); +DynamicSecretCreateChef.prototype['chef-server-url'] = undefined; +/** + * Server username + * @member {String} chef-server-username + */ -var _GatewayListProducers = _interopRequireDefault(__nccwpck_require__(71578)); +DynamicSecretCreateChef.prototype['chef-server-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _GatewayListRotatedSecrets = _interopRequireDefault(__nccwpck_require__(9343)); +DynamicSecretCreateChef.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(61174)); +DynamicSecretCreateChef.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _GatewayMigratePersonalItems = _interopRequireDefault(__nccwpck_require__(80853)); +DynamicSecretCreateChef.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _GatewayMigratePersonalItemsOutput = _interopRequireDefault(__nccwpck_require__(19869)); +DynamicSecretCreateChef.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var _GatewayMigrationCreateOutput = _interopRequireDefault(__nccwpck_require__(81336)); +DynamicSecretCreateChef.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _GatewayMigrationDeleteOutput = _interopRequireDefault(__nccwpck_require__(8601)); +DynamicSecretCreateChef.prototype['producer-encryption-key-name'] = undefined; +/** + * Skip SSL + * @member {Boolean} skip-ssl + * @default true + */ -var _GatewayMigrationGetOutput = _interopRequireDefault(__nccwpck_require__(74292)); +DynamicSecretCreateChef.prototype['skip-ssl'] = true; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _GatewayMigrationListOutput = _interopRequireDefault(__nccwpck_require__(10588)); +DynamicSecretCreateChef.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _GatewayMigrationSyncOutput = _interopRequireDefault(__nccwpck_require__(68624)); +DynamicSecretCreateChef.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _GatewayMigrationUpdateOutput = _interopRequireDefault(__nccwpck_require__(94903)); +DynamicSecretCreateChef.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _GatewayRevokeTmpUsers = _interopRequireDefault(__nccwpck_require__(31730)); +DynamicSecretCreateChef.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _GatewayStartProducer = _interopRequireDefault(__nccwpck_require__(66971)); +DynamicSecretCreateChef.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateChef; +exports["default"] = _default; -var _GatewayStartProducerOutput = _interopRequireDefault(__nccwpck_require__(35356)); +/***/ }), -var _GatewayStatusMigration = _interopRequireDefault(__nccwpck_require__(15771)); +/***/ 26511: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _GatewayStopProducer = _interopRequireDefault(__nccwpck_require__(98592)); +"use strict"; -var _GatewayStopProducerOutput = _interopRequireDefault(__nccwpck_require__(89962)); -var _GatewaySyncMigration = _interopRequireDefault(__nccwpck_require__(47483)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _GatewayUpdateAllowedAccess = _interopRequireDefault(__nccwpck_require__(90085)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _GatewayUpdateItem = _interopRequireDefault(__nccwpck_require__(41036)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _GatewayUpdateItemOutput = _interopRequireDefault(__nccwpck_require__(70950)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _GatewayUpdateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(36558)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _GatewayUpdateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(42841)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _GatewayUpdateLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(21105)); +/** + * The DynamicSecretCreateCustom model module. + * @module model/DynamicSecretCreateCustom + * @version 3.6.3 + */ +var DynamicSecretCreateCustom = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateCustom. + * @alias module:model/DynamicSecretCreateCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + */ + function DynamicSecretCreateCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, DynamicSecretCreateCustom); -var _GatewayUpdateLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(1327)); + DynamicSecretCreateCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _GatewayUpdateMigration = _interopRequireDefault(__nccwpck_require__(77167)); -var _GatewayUpdateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(92518)); + _createClass(DynamicSecretCreateCustom, null, [{ + key: "initialize", + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; + obj['name'] = name; + obj['revoke-sync-url'] = revokeSyncUrl; + } + /** + * Constructs a DynamicSecretCreateCustom from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateCustom} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateCustom} The populated DynamicSecretCreateCustom instance. + */ -var _GatewayUpdateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(41597)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateCustom(); -var _GatewayUpdateProducerAws = _interopRequireDefault(__nccwpck_require__(97621)); + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + } -var _GatewayUpdateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(23775)); + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); + } -var _GatewayUpdateProducerAzure = _interopRequireDefault(__nccwpck_require__(36376)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _GatewayUpdateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(10274)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _GatewayUpdateProducerCassandra = _interopRequireDefault(__nccwpck_require__(79476)); + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } -var _GatewayUpdateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(96398)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _GatewayUpdateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(15441)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _GatewayUpdateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(75159)); + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } -var _GatewayUpdateProducerChef = _interopRequireDefault(__nccwpck_require__(56186)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _GatewayUpdateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(61161)); + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + } -var _GatewayUpdateProducerCustom = _interopRequireDefault(__nccwpck_require__(40998)); + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + } -var _GatewayUpdateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(54179)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _GatewayUpdateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(65386)); + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + } -var _GatewayUpdateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(55211)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _GatewayUpdateProducerEks = _interopRequireDefault(__nccwpck_require__(76166)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _GatewayUpdateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(77541)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _GatewayUpdateProducerGcp = _interopRequireDefault(__nccwpck_require__(92305)); + return obj; + } + }]); -var _GatewayUpdateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(97010)); + return DynamicSecretCreateCustom; +}(); +/** + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days + */ -var _GatewayUpdateProducerGithub = _interopRequireDefault(__nccwpck_require__(92280)); -var _GatewayUpdateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(51383)); +DynamicSecretCreateCustom.prototype['admin_rotation_interval_days'] = undefined; +/** + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url + */ -var _GatewayUpdateProducerGke = _interopRequireDefault(__nccwpck_require__(66834)); +DynamicSecretCreateCustom.prototype['create-sync-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _GatewayUpdateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(25406)); +DynamicSecretCreateCustom.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _GatewayUpdateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(94130)); +DynamicSecretCreateCustom.prototype['description'] = undefined; +/** + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false + */ -var _GatewayUpdateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(59500)); +DynamicSecretCreateCustom.prototype['enable_admin_rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _GatewayUpdateProducerLdap = _interopRequireDefault(__nccwpck_require__(573)); +DynamicSecretCreateCustom.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _GatewayUpdateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(39019)); +DynamicSecretCreateCustom.prototype['name'] = undefined; +/** + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload + */ -var _GatewayUpdateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(58554)); +DynamicSecretCreateCustom.prototype['payload'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _GatewayUpdateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(24635)); +DynamicSecretCreateCustom.prototype['producer-encryption-key-name'] = undefined; +/** + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url + */ -var _GatewayUpdateProducerMongo = _interopRequireDefault(__nccwpck_require__(60203)); +DynamicSecretCreateCustom.prototype['revoke-sync-url'] = undefined; +/** + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url + */ -var _GatewayUpdateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(89024)); +DynamicSecretCreateCustom.prototype['rotate-sync-url'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _GatewayUpdateProducerMySQL = _interopRequireDefault(__nccwpck_require__(42729)); +DynamicSecretCreateCustom.prototype['tags'] = undefined; +/** + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 + */ -var _GatewayUpdateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(87739)); +DynamicSecretCreateCustom.prototype['timeout-sec'] = 60; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _GatewayUpdateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(56986)); +DynamicSecretCreateCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _GatewayUpdateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(47169)); +DynamicSecretCreateCustom.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _GatewayUpdateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(46969)); +DynamicSecretCreateCustom.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateCustom; +exports["default"] = _default; -var _GatewayUpdateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(57452)); +/***/ }), -var _GatewayUpdateProducerPing = _interopRequireDefault(__nccwpck_require__(17839)); +/***/ 80837: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _GatewayUpdateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(74723)); +"use strict"; -var _GatewayUpdateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(15455)); -var _GatewayUpdateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(94150)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _GatewayUpdateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(41343)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _GatewayUpdateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(41570)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _GatewayUpdateProducerRdp = _interopRequireDefault(__nccwpck_require__(13978)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _GatewayUpdateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(4155)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _GatewayUpdateProducerRedis = _interopRequireDefault(__nccwpck_require__(48250)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _GatewayUpdateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(9636)); +/** + * The DynamicSecretCreateDockerhub model module. + * @module model/DynamicSecretCreateDockerhub + * @version 3.6.3 + */ +var DynamicSecretCreateDockerhub = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateDockerhub. + * dynamicSecretCreateDockerhub is a command that creates a DOCKERHUB dynamic secret + * @alias module:model/DynamicSecretCreateDockerhub + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateDockerhub(name) { + _classCallCheck(this, DynamicSecretCreateDockerhub); -var _GatewayUpdateProducerRedshift = _interopRequireDefault(__nccwpck_require__(78643)); + DynamicSecretCreateDockerhub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _GatewayUpdateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(85128)); -var _GatewayUpdateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(92451)); + _createClass(DynamicSecretCreateDockerhub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateDockerhub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateDockerhub} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateDockerhub} The populated DynamicSecretCreateDockerhub instance. + */ -var _GatewayUpdateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(24413)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateDockerhub(); -var _GatewayUpdateTlsCert = _interopRequireDefault(__nccwpck_require__(78649)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _GatewayUpdateTlsCertOutput = _interopRequireDefault(__nccwpck_require__(61990)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _GatewayUpdateTmpUsers = _interopRequireDefault(__nccwpck_require__(4090)); + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } -var _GatewaysListResponse = _interopRequireDefault(__nccwpck_require__(42947)); + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); + } -var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(92431)); + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } -var _GenCustomerFragment = _interopRequireDefault(__nccwpck_require__(92120)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(98926)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _GenerateCsr = _interopRequireDefault(__nccwpck_require__(53143)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _GenerateCsrOutput = _interopRequireDefault(__nccwpck_require__(86689)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _GetAccountSettings = _interopRequireDefault(__nccwpck_require__(39897)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _GetAccountSettingsCommandOutput = _interopRequireDefault(__nccwpck_require__(41517)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _GetAuthMethod = _interopRequireDefault(__nccwpck_require__(38253)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _GetCertificateValue = _interopRequireDefault(__nccwpck_require__(5265)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _GetCertificateValueOutput = _interopRequireDefault(__nccwpck_require__(55083)); + return obj; + } + }]); -var _GetDynamicSecretValue = _interopRequireDefault(__nccwpck_require__(92090)); + return DynamicSecretCreateDockerhub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _GetEventForwarder = _interopRequireDefault(__nccwpck_require__(7218)); -var _GetEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(27878)); +DynamicSecretCreateDockerhub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _GetKubeExecCreds = _interopRequireDefault(__nccwpck_require__(58773)); +DynamicSecretCreateDockerhub.prototype['description'] = undefined; +/** + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password + */ -var _GetKubeExecCredsOutput = _interopRequireDefault(__nccwpck_require__(76954)); +DynamicSecretCreateDockerhub.prototype['dockerhub-password'] = undefined; +/** + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes + */ -var _GetPKICertificate = _interopRequireDefault(__nccwpck_require__(57553)); +DynamicSecretCreateDockerhub.prototype['dockerhub-token-scopes'] = undefined; +/** + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username + */ -var _GetPKICertificateOutput = _interopRequireDefault(__nccwpck_require__(92901)); +DynamicSecretCreateDockerhub.prototype['dockerhub-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _GetProducersListReplyObj = _interopRequireDefault(__nccwpck_require__(68389)); +DynamicSecretCreateDockerhub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _GetRSAPublic = _interopRequireDefault(__nccwpck_require__(36838)); +DynamicSecretCreateDockerhub.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _GetRSAPublicOutput = _interopRequireDefault(__nccwpck_require__(22685)); +DynamicSecretCreateDockerhub.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _GetRole = _interopRequireDefault(__nccwpck_require__(31113)); +DynamicSecretCreateDockerhub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _GetRotatedSecretValue = _interopRequireDefault(__nccwpck_require__(71)); +DynamicSecretCreateDockerhub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _GetSSHCertificate = _interopRequireDefault(__nccwpck_require__(7701)); +DynamicSecretCreateDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _GetSSHCertificateOutput = _interopRequireDefault(__nccwpck_require__(29134)); +DynamicSecretCreateDockerhub.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _GetSecretValue = _interopRequireDefault(__nccwpck_require__(247)); +DynamicSecretCreateDockerhub.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateDockerhub; +exports["default"] = _default; -var _GetTags = _interopRequireDefault(__nccwpck_require__(44711)); +/***/ }), -var _GetTarget = _interopRequireDefault(__nccwpck_require__(75586)); +/***/ 88519: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _GetTargetDetails = _interopRequireDefault(__nccwpck_require__(82615)); +"use strict"; -var _GetTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(87280)); -var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(13402)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(97168)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(55349)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(83716)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(6556)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _HashiMigration = _interopRequireDefault(__nccwpck_require__(97395)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _HashiPayload = _interopRequireDefault(__nccwpck_require__(36437)); +/** + * The DynamicSecretCreateEks model module. + * @module model/DynamicSecretCreateEks + * @version 3.6.3 + */ +var DynamicSecretCreateEks = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateEks. + * dynamicSecretCreateEks is a command that creates eks dynamic secret + * @alias module:model/DynamicSecretCreateEks + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateEks(name) { + _classCallCheck(this, DynamicSecretCreateEks); -var _Hmac = _interopRequireDefault(__nccwpck_require__(9330)); + DynamicSecretCreateEks.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _HmacOutput = _interopRequireDefault(__nccwpck_require__(14344)); -var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(10366)); + _createClass(DynamicSecretCreateEks, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateEks from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateEks} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateEks} The populated DynamicSecretCreateEks instance. + */ -var _ImportPasswords = _interopRequireDefault(__nccwpck_require__(72687)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateEks(); -var _ImportPasswordsOutput = _interopRequireDefault(__nccwpck_require__(26509)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(73539)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _Item = _interopRequireDefault(__nccwpck_require__(20231)); + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } -var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(9438)); + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); + } -var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(12160)); + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(97973)); + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } -var _JSONError = _interopRequireDefault(__nccwpck_require__(40746)); + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } -var _K8SAuth = _interopRequireDefault(__nccwpck_require__(81037)); + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } -var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(33903)); + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } -var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(53190)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _K8SMigration = _interopRequireDefault(__nccwpck_require__(39305)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _K8SPayload = _interopRequireDefault(__nccwpck_require__(22693)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(33706)); + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } -var _KMIPClientGetResponse = _interopRequireDefault(__nccwpck_require__(18269)); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -var _KMIPClientListResponse = _interopRequireDefault(__nccwpck_require__(29166)); + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } -var _KMIPClientUpdateResponse = _interopRequireDefault(__nccwpck_require__(74882)); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(86271)); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -var _KMIPEnvironmentCreateResponse = _interopRequireDefault(__nccwpck_require__(62320)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _KMIPServer = _interopRequireDefault(__nccwpck_require__(58838)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _KmipClientDeleteRule = _interopRequireDefault(__nccwpck_require__(13881)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _KmipClientSetRule = _interopRequireDefault(__nccwpck_require__(40187)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _KmipCreateClient = _interopRequireDefault(__nccwpck_require__(34026)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _KmipCreateClientOutput = _interopRequireDefault(__nccwpck_require__(20988)); + return obj; + } + }]); -var _KmipDeleteClient = _interopRequireDefault(__nccwpck_require__(65045)); + return DynamicSecretCreateEks; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _KmipDeleteServer = _interopRequireDefault(__nccwpck_require__(53900)); -var _KmipDescribeClient = _interopRequireDefault(__nccwpck_require__(95479)); +DynamicSecretCreateEks.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _KmipDescribeServer = _interopRequireDefault(__nccwpck_require__(97642)); +DynamicSecretCreateEks.prototype['description'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ -var _KmipDescribeServerOutput = _interopRequireDefault(__nccwpck_require__(82750)); +DynamicSecretCreateEks.prototype['eks-access-key-id'] = undefined; +/** + * IAM assume role + * @member {String} eks-assume-role + */ -var _KmipListClients = _interopRequireDefault(__nccwpck_require__(58538)); +DynamicSecretCreateEks.prototype['eks-assume-role'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ -var _KmipMoveServer = _interopRequireDefault(__nccwpck_require__(30116)); +DynamicSecretCreateEks.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ -var _KmipMoveServerOutput = _interopRequireDefault(__nccwpck_require__(3564)); +DynamicSecretCreateEks.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ -var _KmipRenewClientCertificate = _interopRequireDefault(__nccwpck_require__(36796)); +DynamicSecretCreateEks.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ -var _KmipRenewClientCertificateOutput = _interopRequireDefault(__nccwpck_require__(23826)); +DynamicSecretCreateEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ -var _KmipRenewServerCertificate = _interopRequireDefault(__nccwpck_require__(55419)); +DynamicSecretCreateEks.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _KmipRenewServerCertificateOutput = _interopRequireDefault(__nccwpck_require__(51379)); +DynamicSecretCreateEks.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _KmipServerSetup = _interopRequireDefault(__nccwpck_require__(51976)); +DynamicSecretCreateEks.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _KmipSetServerState = _interopRequireDefault(__nccwpck_require__(42299)); +DynamicSecretCreateEks.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ -var _KmipSetServerStateOutput = _interopRequireDefault(__nccwpck_require__(64209)); +DynamicSecretCreateEks.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(24697)); +DynamicSecretCreateEks.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ -var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(29438)); +DynamicSecretCreateEks.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(46453)); +DynamicSecretCreateEks.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(78985)); +DynamicSecretCreateEks.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(36492)); +DynamicSecretCreateEks.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(33671)); +DynamicSecretCreateEks.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(98339)); +DynamicSecretCreateEks.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(47160)); +DynamicSecretCreateEks.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '15m' + */ -var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(5413)); +DynamicSecretCreateEks.prototype['user-ttl'] = '15m'; +var _default = DynamicSecretCreateEks; +exports["default"] = _default; -var _ListAuthMethods = _interopRequireDefault(__nccwpck_require__(42284)); +/***/ }), -var _ListAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(2972)); +/***/ 50500: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _ListGateways = _interopRequireDefault(__nccwpck_require__(77100)); +"use strict"; -var _ListItems = _interopRequireDefault(__nccwpck_require__(40313)); -var _ListItemsInPathOutput = _interopRequireDefault(__nccwpck_require__(95726)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _ListItemsOutput = _interopRequireDefault(__nccwpck_require__(74202)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _ListRoles = _interopRequireDefault(__nccwpck_require__(8340)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _ListRolesOutput = _interopRequireDefault(__nccwpck_require__(60424)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _ListSRABastions = _interopRequireDefault(__nccwpck_require__(51580)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _ListSharedItems = _interopRequireDefault(__nccwpck_require__(66954)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _ListTargets = _interopRequireDefault(__nccwpck_require__(11384)); +/** + * The DynamicSecretCreateGcp model module. + * @module model/DynamicSecretCreateGcp + * @version 3.6.3 + */ +var DynamicSecretCreateGcp = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateGcp. + * dynamicSecretCreateGcp is a command that creates a GCP dynamic secret + * @alias module:model/DynamicSecretCreateGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] + */ + function DynamicSecretCreateGcp(name, serviceAccountType) { + _classCallCheck(this, DynamicSecretCreateGcp); -var _ListTargetsOutput = _interopRequireDefault(__nccwpck_require__(80119)); + DynamicSecretCreateGcp.initialize(this, name, serviceAccountType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(47217)); -var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(79214)); + _createClass(DynamicSecretCreateGcp, null, [{ + key: "initialize", + value: function initialize(obj, name, serviceAccountType) { + obj['name'] = name; + obj['service-account-type'] = serviceAccountType; + } + /** + * Constructs a DynamicSecretCreateGcp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateGcp} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateGcp} The populated DynamicSecretCreateGcp instance. + */ -var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(9980)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateGcp(); -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _MigrationItems = _interopRequireDefault(__nccwpck_require__(31951)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(59937)); + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); + } -var _MigrationStatusReplyObj = _interopRequireDefault(__nccwpck_require__(41309)); + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } -var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(30120)); + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); + } -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(11237)); + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + } -var _MockMigration = _interopRequireDefault(__nccwpck_require__(99984)); + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + } -var _MockPayload = _interopRequireDefault(__nccwpck_require__(84668)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(33716)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _MoveObjects = _interopRequireDefault(__nccwpck_require__(55896)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _Name = _interopRequireDefault(__nccwpck_require__(47654)); + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } -var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(63497)); + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } -var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(25462)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(69277)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(56909)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(98049)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(41970)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(68437)); + return obj; + } + }]); -var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(54614)); + return DynamicSecretCreateGcp; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(56346)); -var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(87270)); +DynamicSecretCreateGcp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(62463)); +DynamicSecretCreateGcp.prototype['description'] = undefined; +/** + * @member {String} gcp-cred-type + */ -var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(8360)); +DynamicSecretCreateGcp.prototype['gcp-cred-type'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ -var _PathRule = _interopRequireDefault(__nccwpck_require__(23796)); +DynamicSecretCreateGcp.prototype['gcp-key'] = undefined; +/** + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo + */ -var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(7200)); +DynamicSecretCreateGcp.prototype['gcp-key-algo'] = undefined; +/** + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email + */ -var _Producer = _interopRequireDefault(__nccwpck_require__(90145)); +DynamicSecretCreateGcp.prototype['gcp-sa-email'] = undefined; +/** + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes + */ -var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(83988)); +DynamicSecretCreateGcp.prototype['gcp-token-scopes'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(87475)); +DynamicSecretCreateGcp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _RawCreds = _interopRequireDefault(__nccwpck_require__(65435)); +DynamicSecretCreateGcp.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _RefreshKey = _interopRequireDefault(__nccwpck_require__(68029)); +DynamicSecretCreateGcp.prototype['producer-encryption-key-name'] = undefined; +/** + * Role binding definitions in json format + * @member {String} role-binding + */ -var _RefreshKeyOutput = _interopRequireDefault(__nccwpck_require__(25349)); +DynamicSecretCreateGcp.prototype['role-binding'] = undefined; +/** + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' + */ -var _RegexpTokenizerInfo = _interopRequireDefault(__nccwpck_require__(24746)); +DynamicSecretCreateGcp.prototype['service-account-type'] = 'fixed'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _RequestAccess = _interopRequireDefault(__nccwpck_require__(6952)); +DynamicSecretCreateGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _RequestAccessOutput = _interopRequireDefault(__nccwpck_require__(77499)); +DynamicSecretCreateGcp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(97134)); +DynamicSecretCreateGcp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _ReverseRBAC = _interopRequireDefault(__nccwpck_require__(11179)); +DynamicSecretCreateGcp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(65427)); +DynamicSecretCreateGcp.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateGcp; +exports["default"] = _default; -var _ReverseRBACOutput = _interopRequireDefault(__nccwpck_require__(73443)); +/***/ }), -var _RevokeCreds = _interopRequireDefault(__nccwpck_require__(37379)); +/***/ 73487: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _Role = _interopRequireDefault(__nccwpck_require__(42980)); +"use strict"; -var _RoleAssociationDetails = _interopRequireDefault(__nccwpck_require__(43168)); -var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(80950)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _RollbackSecret = _interopRequireDefault(__nccwpck_require__(93505)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _RollbackSecretOutput = _interopRequireDefault(__nccwpck_require__(90409)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _RotateKey = _interopRequireDefault(__nccwpck_require__(35995)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _RotateKeyOutput = _interopRequireDefault(__nccwpck_require__(60724)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _RotateSecret = _interopRequireDefault(__nccwpck_require__(35025)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(99840)); +/** + * The DynamicSecretCreateGithub model module. + * @module model/DynamicSecretCreateGithub + * @version 3.6.3 + */ +var DynamicSecretCreateGithub = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateGithub. + * dynamicSecretCreateGithub is a command that creates github dynamic secret + * @alias module:model/DynamicSecretCreateGithub + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateGithub(name) { + _classCallCheck(this, DynamicSecretCreateGithub); -var _RotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(56244)); + DynamicSecretCreateGithub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _Rotator = _interopRequireDefault(__nccwpck_require__(36897)); -var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(45809)); + _createClass(DynamicSecretCreateGithub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateGithub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateGithub} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateGithub} The populated DynamicSecretCreateGithub instance. + */ -var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(19342)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateGithub(); -var _Rules = _interopRequireDefault(__nccwpck_require__(53284)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(35813)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(31520)); + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } -var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(72797)); + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } -var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(39703)); + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } -var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(98197)); + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); + } -var _SecretInfo = _interopRequireDefault(__nccwpck_require__(55514)); + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); + } -var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(59417)); + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + } -var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(89198)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(45316)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _SetItemState = _interopRequireDefault(__nccwpck_require__(24876)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _SetRoleRule = _interopRequireDefault(__nccwpck_require__(51250)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _ShareItem = _interopRequireDefault(__nccwpck_require__(56430)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(69240)); + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + } -var _SignDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(88377)); + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + } -var _SignGPG = _interopRequireDefault(__nccwpck_require__(43538)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -var _SignGPGOutput = _interopRequireDefault(__nccwpck_require__(38120)); + return obj; + } + }]); -var _SignJWTOutput = _interopRequireDefault(__nccwpck_require__(66950)); + return DynamicSecretCreateGithub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _SignJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(7397)); -var _SignOutput = _interopRequireDefault(__nccwpck_require__(58696)); +DynamicSecretCreateGithub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _SignPKCS = _interopRequireDefault(__nccwpck_require__(36851)); +DynamicSecretCreateGithub.prototype['description'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ -var _SignPKCS1Output = _interopRequireDefault(__nccwpck_require__(47998)); +DynamicSecretCreateGithub.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ -var _SignPKICertOutput = _interopRequireDefault(__nccwpck_require__(40782)); +DynamicSecretCreateGithub.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ -var _SignPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(1646)); +DynamicSecretCreateGithub.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * GitHub application installation id + * @member {Number} installation-id + */ -var _SmInfo = _interopRequireDefault(__nccwpck_require__(69298)); +DynamicSecretCreateGithub.prototype['installation-id'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization + */ -var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(92130)); +DynamicSecretCreateGithub.prototype['installation-organization'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository + */ -var _SraInfo = _interopRequireDefault(__nccwpck_require__(85251)); +DynamicSecretCreateGithub.prototype['installation-repository'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _StaticCredsAuth = _interopRequireDefault(__nccwpck_require__(98373)); +DynamicSecretCreateGithub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _StaticCredsAuthOutput = _interopRequireDefault(__nccwpck_require__(80669)); +DynamicSecretCreateGithub.prototype['name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(31083)); +DynamicSecretCreateGithub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(51441)); +DynamicSecretCreateGithub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(40374)); +DynamicSecretCreateGithub.prototype['token'] = undefined; +/** + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions + */ -var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(44937)); +DynamicSecretCreateGithub.prototype['token-permissions'] = undefined; +/** + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories + */ -var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(6123)); +DynamicSecretCreateGithub.prototype['token-repositories'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _Target = _interopRequireDefault(__nccwpck_require__(91561)); +DynamicSecretCreateGithub.prototype['uid-token'] = undefined; +var _default = DynamicSecretCreateGithub; +exports["default"] = _default; -var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(45419)); +/***/ }), -var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(91938)); +/***/ 53847: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(12989)); +"use strict"; -var _TmpUserData = _interopRequireDefault(__nccwpck_require__(52200)); -var _Tokenize = _interopRequireDefault(__nccwpck_require__(30037)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _TokenizeOutput = _interopRequireDefault(__nccwpck_require__(87380)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(68162)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(44674)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _UidCreateChildToken = _interopRequireDefault(__nccwpck_require__(67488)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _UidCreateChildTokenOutput = _interopRequireDefault(__nccwpck_require__(99511)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _UidGenerateToken = _interopRequireDefault(__nccwpck_require__(50272)); +/** + * The DynamicSecretCreateGke model module. + * @module model/DynamicSecretCreateGke + * @version 3.6.3 + */ +var DynamicSecretCreateGke = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateGke. + * dynamicSecretCreateGke is a command that creates gke dynamic secret + * @alias module:model/DynamicSecretCreateGke + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateGke(name) { + _classCallCheck(this, DynamicSecretCreateGke); -var _UidGenerateTokenOutput = _interopRequireDefault(__nccwpck_require__(70795)); + DynamicSecretCreateGke.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _UidListChildren = _interopRequireDefault(__nccwpck_require__(21832)); -var _UidRevokeToken = _interopRequireDefault(__nccwpck_require__(63330)); + _createClass(DynamicSecretCreateGke, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateGke from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateGke} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateGke} The populated DynamicSecretCreateGke instance. + */ -var _UidRotateToken = _interopRequireDefault(__nccwpck_require__(1198)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateGke(); -var _UidRotateTokenOutput = _interopRequireDefault(__nccwpck_require__(87463)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _Unconfigure = _interopRequireDefault(__nccwpck_require__(47402)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(26285)); + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } -var _UniversalIdentityDetails = _interopRequireDefault(__nccwpck_require__(61108)); + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } -var _Update = _interopRequireDefault(__nccwpck_require__(22071)); + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } -var _UpdateAWSTarget = _interopRequireDefault(__nccwpck_require__(68052)); + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } -var _UpdateAWSTargetDetails = _interopRequireDefault(__nccwpck_require__(77790)); + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } -var _UpdateAccountSettings = _interopRequireDefault(__nccwpck_require__(15731)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _UpdateAccountSettingsOutput = _interopRequireDefault(__nccwpck_require__(80620)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _UpdateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(25393)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _UpdateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(75315)); + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } -var _UpdateAssoc = _interopRequireDefault(__nccwpck_require__(66992)); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -var _UpdateAuthMethod = _interopRequireDefault(__nccwpck_require__(16354)); + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } -var _UpdateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(47929)); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -var _UpdateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(52264)); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -var _UpdateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(61716)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _UpdateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(29461)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _UpdateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(20874)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _UpdateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(58265)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _UpdateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(42044)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _UpdateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(54568)); + return obj; + } + }]); -var _UpdateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(86107)); + return DynamicSecretCreateGke; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _UpdateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(39705)); -var _UpdateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(73258)); +DynamicSecretCreateGke.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _UpdateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(28605)); +DynamicSecretCreateGke.prototype['description'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ -var _UpdateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(37117)); +DynamicSecretCreateGke.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ -var _UpdateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(33896)); +DynamicSecretCreateGke.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ -var _UpdateAzureTarget = _interopRequireDefault(__nccwpck_require__(41670)); +DynamicSecretCreateGke.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ -var _UpdateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(84834)); +DynamicSecretCreateGke.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ -var _UpdateCertificateOutput = _interopRequireDefault(__nccwpck_require__(95234)); +DynamicSecretCreateGke.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _UpdateCertificateValue = _interopRequireDefault(__nccwpck_require__(72377)); +DynamicSecretCreateGke.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _UpdateDBTarget = _interopRequireDefault(__nccwpck_require__(19836)); +DynamicSecretCreateGke.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _UpdateDBTargetDetails = _interopRequireDefault(__nccwpck_require__(61052)); +DynamicSecretCreateGke.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ -var _UpdateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(15571)); +DynamicSecretCreateGke.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -var _UpdateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(81645)); +DynamicSecretCreateGke.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ -var _UpdateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(12162)); +DynamicSecretCreateGke.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -var _UpdateEKSTarget = _interopRequireDefault(__nccwpck_require__(54649)); +DynamicSecretCreateGke.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -var _UpdateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(5542)); +DynamicSecretCreateGke.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _UpdateEventForwarder = _interopRequireDefault(__nccwpck_require__(15930)); +DynamicSecretCreateGke.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _UpdateGKETarget = _interopRequireDefault(__nccwpck_require__(59732)); +DynamicSecretCreateGke.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _UpdateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(27089)); +DynamicSecretCreateGke.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _UpdateGcpTarget = _interopRequireDefault(__nccwpck_require__(37362)); +DynamicSecretCreateGke.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -var _UpdateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(24721)); +DynamicSecretCreateGke.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateGke; +exports["default"] = _default; -var _UpdateGithubTarget = _interopRequireDefault(__nccwpck_require__(99328)); +/***/ }), -var _UpdateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(69577)); +/***/ 13700: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _UpdateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(60176)); +"use strict"; -var _UpdateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(86836)); -var _UpdateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(57821)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _UpdateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(15010)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _UpdateItem = _interopRequireDefault(__nccwpck_require__(28801)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _UpdateItemOutput = _interopRequireDefault(__nccwpck_require__(24354)); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _UpdateLdapTarget = _interopRequireDefault(__nccwpck_require__(32858)); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _UpdateLdapTargetDetails = _interopRequireDefault(__nccwpck_require__(23810)); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _UpdateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(96167)); +/** + * The DynamicSecretCreateHanaDb model module. + * @module model/DynamicSecretCreateHanaDb + * @version 3.6.3 + */ +var DynamicSecretCreateHanaDb = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateHanaDb. + * dynamicSecretCreateHanaDb is a command that creates hanadb dynamic secret + * @alias module:model/DynamicSecretCreateHanaDb + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateHanaDb(name) { + _classCallCheck(this, DynamicSecretCreateHanaDb); -var _UpdateLinkedTarget = _interopRequireDefault(__nccwpck_require__(92234)); + DynamicSecretCreateHanaDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var _UpdateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(76287)); -var _UpdateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(50445)); + _createClass(DynamicSecretCreateHanaDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateHanaDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateHanaDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateHanaDb} The populated DynamicSecretCreateHanaDb instance. + */ -var _UpdateOutput = _interopRequireDefault(__nccwpck_require__(16818)); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateHanaDb(); -var _UpdatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(24726)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _UpdatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(10710)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var _UpdatePingTarget = _interopRequireDefault(__nccwpck_require__(25801)); + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); + } -var _UpdateRDPTargetDetails = _interopRequireDefault(__nccwpck_require__(5594)); + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); + } -var _UpdateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(60415)); + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); + } -var _UpdateRabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(46099)); + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); + } -var _UpdateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(73718)); + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); + } -var _UpdateRole = _interopRequireDefault(__nccwpck_require__(13542)); + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); + } -var _UpdateRoleOutput = _interopRequireDefault(__nccwpck_require__(56152)); + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); + } -var _UpdateRotatedSecret = _interopRequireDefault(__nccwpck_require__(730)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _UpdateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(18105)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _UpdateRotationSettings = _interopRequireDefault(__nccwpck_require__(60091)); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -var _UpdateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(44701)); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -var _UpdateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(46641)); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -var _UpdateSSHTarget = _interopRequireDefault(__nccwpck_require__(14931)); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } -var _UpdateSSHTargetDetails = _interopRequireDefault(__nccwpck_require__(34064)); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -var _UpdateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(49653)); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } -var _UpdateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(18896)); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -var _UpdateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(11932)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _UpdateSecretVal = _interopRequireDefault(__nccwpck_require__(26227)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _UpdateSecretValOutput = _interopRequireDefault(__nccwpck_require__(18268)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _UpdateTarget = _interopRequireDefault(__nccwpck_require__(72265)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -var _UpdateTargetDetails = _interopRequireDefault(__nccwpck_require__(20882)); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -var _UpdateTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(16772)); + return obj; + } + }]); -var _UpdateTargetOutput = _interopRequireDefault(__nccwpck_require__(72514)); + return DynamicSecretCreateHanaDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -var _UpdateWebTarget = _interopRequireDefault(__nccwpck_require__(4456)); -var _UpdateWebTargetDetails = _interopRequireDefault(__nccwpck_require__(72897)); +DynamicSecretCreateHanaDb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _UpdateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(94745)); +DynamicSecretCreateHanaDb.prototype['description'] = undefined; +/** + * HanaDb Name + * @member {String} hana-dbname + */ -var _UpdateWindowsTarget = _interopRequireDefault(__nccwpck_require__(25599)); +DynamicSecretCreateHanaDb.prototype['hana-dbname'] = undefined; +/** + * HanaDb Creation statements + * @member {String} hanadb-create-statements + */ -var _UpdateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(16735)); +DynamicSecretCreateHanaDb.prototype['hanadb-create-statements'] = undefined; +/** + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' + */ -var _UpdateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(20703)); +DynamicSecretCreateHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +/** + * HanaDb Password + * @member {String} hanadb-password + */ -var _UploadPKCS = _interopRequireDefault(__nccwpck_require__(46148)); +DynamicSecretCreateHanaDb.prototype['hanadb-password'] = undefined; +/** + * HanaDb Port + * @member {String} hanadb-port + * @default '443' + */ -var _UploadRSA = _interopRequireDefault(__nccwpck_require__(34990)); +DynamicSecretCreateHanaDb.prototype['hanadb-port'] = '443'; +/** + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements + */ -var _ValidateToken = _interopRequireDefault(__nccwpck_require__(58671)); +DynamicSecretCreateHanaDb.prototype['hanadb-revocation-statements'] = undefined; +/** + * HanaDb Username + * @member {String} hanadb-username + */ -var _ValidateTokenOutput = _interopRequireDefault(__nccwpck_require__(56979)); +DynamicSecretCreateHanaDb.prototype['hanadb-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(86598)); +DynamicSecretCreateHanaDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(95804)); +DynamicSecretCreateHanaDb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var _VerifyDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(68973)); +DynamicSecretCreateHanaDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -var _VerifyGPG = _interopRequireDefault(__nccwpck_require__(24998)); +DynamicSecretCreateHanaDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -var _VerifyJWTOutput = _interopRequireDefault(__nccwpck_require__(70967)); +DynamicSecretCreateHanaDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ -var _VerifyJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(66629)); +DynamicSecretCreateHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -var _VerifyPKCS = _interopRequireDefault(__nccwpck_require__(52462)); +DynamicSecretCreateHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ -var _VerifyPKICertOutput = _interopRequireDefault(__nccwpck_require__(37523)); +DynamicSecretCreateHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -var _VerifyPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(58333)); +DynamicSecretCreateHanaDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(31501)); +DynamicSecretCreateHanaDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(96350)); +DynamicSecretCreateHanaDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(85153)); +DynamicSecretCreateHanaDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _V2Api = _interopRequireDefault(__nccwpck_require__(72444)); +DynamicSecretCreateHanaDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +DynamicSecretCreateHanaDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateHanaDb; +exports["default"] = _default; /***/ }), -/***/ 74119: +/***/ 16202: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -19879,7 +91775,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -19890,19 +91786,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The APIKeyAccessRules model module. - * @module model/APIKeyAccessRules - * @version 3.3.16 + * The DynamicSecretCreateK8s model module. + * @module model/DynamicSecretCreateK8s + * @version 3.6.3 */ -var APIKeyAccessRules = /*#__PURE__*/function () { +var DynamicSecretCreateK8s = /*#__PURE__*/function () { /** - * Constructs a new APIKeyAccessRules. - * @alias module:model/APIKeyAccessRules + * Constructs a new DynamicSecretCreateK8s. + * dynamicSecretCreateK8s is a command that creates k8s dynamic secret + * @alias module:model/DynamicSecretCreateK8s + * @param name {String} Dynamic secret name */ - function APIKeyAccessRules() { - _classCallCheck(this, APIKeyAccessRules); + function DynamicSecretCreateK8s(name) { + _classCallCheck(this, DynamicSecretCreateK8s); - APIKeyAccessRules.initialize(this); + DynamicSecretCreateK8s.initialize(this, name); } /** * Initializes the fields of this object. @@ -19911,145 +91809,139 @@ var APIKeyAccessRules = /*#__PURE__*/function () { */ - _createClass(APIKeyAccessRules, null, [{ + _createClass(DynamicSecretCreateK8s, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a APIKeyAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateK8s from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/APIKeyAccessRules} obj Optional instance to populate. - * @return {module:model/APIKeyAccessRules} The populated APIKeyAccessRules instance. + * @param {module:model/DynamicSecretCreateK8s} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateK8s} The populated DynamicSecretCreateK8s instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new APIKeyAccessRules(); + obj = obj || new DynamicSecretCreateK8s(); - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - } - - return obj; - } - }]); - return APIKeyAccessRules; -}(); -/** - * @member {String} alg - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + } -APIKeyAccessRules.prototype['alg'] = undefined; -/** - * The public key value of the API-key. - * @member {String} key - */ + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } -APIKeyAccessRules.prototype['key'] = undefined; -var _default = APIKeyAccessRules; -exports["default"] = _default; + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } -/***/ 54294: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } -/** - * The AWSIAMAccessRules model module. - * @module model/AWSIAMAccessRules - * @version 3.3.16 - */ -var AWSIAMAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new AWSIAMAccessRules. - * @alias module:model/AWSIAMAccessRules - */ - function AWSIAMAccessRules() { - _classCallCheck(this, AWSIAMAccessRules); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - AWSIAMAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } - _createClass(AWSIAMAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AWSIAMAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSIAMAccessRules} obj Optional instance to populate. - * @return {module:model/AWSIAMAccessRules} The populated AWSIAMAccessRules instance. - */ + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AWSIAMAccessRules(); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], ['String']); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (data.hasOwnProperty('arn')) { - obj['arn'] = _ApiClient["default"].convertToType(data['arn'], ['String']); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('resource_id')) { - obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], ['String']); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = _ApiClient["default"].convertToType(data['role_id'], ['String']); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], ['String']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('sts_endpoint')) { - obj['sts_endpoint'] = _ApiClient["default"].convertToType(data['sts_endpoint'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); } - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -20057,163 +91949,194 @@ var AWSIAMAccessRules = /*#__PURE__*/function () { } }]); - return AWSIAMAccessRules; + return DynamicSecretCreateK8s; }(); /** - * The list of account ids that the login is restricted to. - * @member {Array.} account_id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AWSIAMAccessRules.prototype['account_id'] = undefined; +DynamicSecretCreateK8s.prototype['delete_protection'] = undefined; /** - * The list of ARNs that the login is restricted to. - * @member {Array.} arn + * Description of the object + * @member {String} description */ -AWSIAMAccessRules.prototype['arn'] = undefined; +DynamicSecretCreateK8s.prototype['description'] = undefined; /** - * The list of resource ids that the login is restricted to. - * @member {Array.} resource_id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AWSIAMAccessRules.prototype['resource_id'] = undefined; +DynamicSecretCreateK8s.prototype['json'] = false; /** - * The list of role ids that the login is restricted to. - * @member {Array.} role_id + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces */ -AWSIAMAccessRules.prototype['role_id'] = undefined; +DynamicSecretCreateK8s.prototype['k8s-allowed-namespaces'] = undefined; /** - * The list of role names that the login is restricted to. - * @member {Array.} role_name + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert */ -AWSIAMAccessRules.prototype['role_name'] = undefined; +DynamicSecretCreateK8s.prototype['k8s-cluster-ca-cert'] = undefined; /** - * The sts URL. - * @member {String} sts_endpoint + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint */ -AWSIAMAccessRules.prototype['sts_endpoint'] = undefined; +DynamicSecretCreateK8s.prototype['k8s-cluster-endpoint'] = undefined; /** - * The list of user ids that the login is restricted to. - * @member {Array.} user_id + * K8S cluster Bearer token + * @member {String} k8s-cluster-token */ -AWSIAMAccessRules.prototype['user_id'] = undefined; +DynamicSecretCreateK8s.prototype['k8s-cluster-token'] = undefined; /** - * The list of user names that the login is restricted to. - * @member {Array.} user_name + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace */ -AWSIAMAccessRules.prototype['user_name'] = undefined; -var _default = AWSIAMAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 90509: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; +DynamicSecretCreateK8s.prototype['k8s-namespace'] = undefined; +/** + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name + */ +DynamicSecretCreateK8s.prototype['k8s-predefined-role-name'] = undefined; +/** + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +DynamicSecretCreateK8s.prototype['k8s-predefined-role-type'] = undefined; +/** + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +DynamicSecretCreateK8s.prototype['k8s-rolebinding-yaml-def'] = undefined; +/** + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +DynamicSecretCreateK8s.prototype['k8s-service-account'] = undefined; +/** + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +DynamicSecretCreateK8s.prototype['k8s-service-account-type'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +DynamicSecretCreateK8s.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretCreateK8s.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ +DynamicSecretCreateK8s.prototype['secure-access-allow-port-forwading'] = undefined; /** - * The AWSPayload model module. - * @module model/AWSPayload - * @version 3.3.16 + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -var AWSPayload = /*#__PURE__*/function () { - /** - * Constructs a new AWSPayload. - * @alias module:model/AWSPayload - */ - function AWSPayload() { - _classCallCheck(this, AWSPayload); - AWSPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretCreateK8s.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ +DynamicSecretCreateK8s.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url + * @member {String} secure-access-dashboard-url + */ - _createClass(AWSPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AWSPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSPayload} obj Optional instance to populate. - * @return {module:model/AWSPayload} The populated AWSPayload instance. - */ +DynamicSecretCreateK8s.prototype['secure-access-dashboard-url'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AWSPayload(); +DynamicSecretCreateK8s.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } +DynamicSecretCreateK8s.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } +DynamicSecretCreateK8s.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ - if (data.hasOwnProperty('secret')) { - obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); - } - } +DynamicSecretCreateK8s.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - return obj; - } - }]); +DynamicSecretCreateK8s.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return AWSPayload; -}(); +DynamicSecretCreateK8s.prototype['target-name'] = undefined; /** - * @member {String} key + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +DynamicSecretCreateK8s.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -AWSPayload.prototype['key'] = undefined; +DynamicSecretCreateK8s.prototype['uid-token'] = undefined; /** - * @member {String} region + * Use the GW's service account + * @member {Boolean} use-gw-service-account */ -AWSPayload.prototype['region'] = undefined; +DynamicSecretCreateK8s.prototype['use-gw-service-account'] = undefined; /** - * @member {String} secret + * User TTL + * @member {String} user-ttl + * @default '60m' */ -AWSPayload.prototype['secret'] = undefined; -var _default = AWSPayload; +DynamicSecretCreateK8s.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateK8s; exports["default"] = _default; /***/ }), -/***/ 57803: +/***/ 67357: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -20224,11 +92147,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AWSPayload = _interopRequireDefault(__nccwpck_require__(90509)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -20239,19 +92158,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AWSSecretsMigration model module. - * @module model/AWSSecretsMigration - * @version 3.3.16 + * The DynamicSecretCreateLdap model module. + * @module model/DynamicSecretCreateLdap + * @version 3.6.3 */ -var AWSSecretsMigration = /*#__PURE__*/function () { +var DynamicSecretCreateLdap = /*#__PURE__*/function () { /** - * Constructs a new AWSSecretsMigration. - * @alias module:model/AWSSecretsMigration + * Constructs a new DynamicSecretCreateLdap. + * dynamicSecretCreateLdap is a command that creates ldap dynamic secret + * @alias module:model/DynamicSecretCreateLdap + * @param name {String} Dynamic secret name */ - function AWSSecretsMigration() { - _classCallCheck(this, AWSSecretsMigration); + function DynamicSecretCreateLdap(name) { + _classCallCheck(this, DynamicSecretCreateLdap); - AWSSecretsMigration.initialize(this); + DynamicSecretCreateLdap.initialize(this, name); } /** * Initializes the fields of this object. @@ -20260,132 +92181,103 @@ var AWSSecretsMigration = /*#__PURE__*/function () { */ - _createClass(AWSSecretsMigration, null, [{ + _createClass(DynamicSecretCreateLdap, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AWSSecretsMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateLdap from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSSecretsMigration} obj Optional instance to populate. - * @return {module:model/AWSSecretsMigration} The populated AWSSecretsMigration instance. + * @param {module:model/DynamicSecretCreateLdap} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateLdap} The populated DynamicSecretCreateLdap instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AWSSecretsMigration(); + obj = obj || new DynamicSecretCreateLdap(); - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); } - if (data.hasOwnProperty('payload')) { - obj['payload'] = _AWSPayload["default"].constructFromObject(data['payload']); + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); } - } - - return obj; - } - }]); - - return AWSSecretsMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -AWSSecretsMigration.prototype['general'] = undefined; -/** - * @member {module:model/AWSPayload} payload - */ - -AWSSecretsMigration.prototype['payload'] = undefined; -var _default = AWSSecretsMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 30193: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/** - * The AWSTargetDetails model module. - * @module model/AWSTargetDetails - * @version 3.3.16 - */ -var AWSTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new AWSTargetDetails. - * @alias module:model/AWSTargetDetails - */ - function AWSTargetDetails() { - _classCallCheck(this, AWSTargetDetails); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - AWSTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } - _createClass(AWSTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AWSTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSTargetDetails} obj Optional instance to populate. - * @return {module:model/AWSTargetDetails} The populated AWSTargetDetails instance. - */ + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AWSTargetDetails(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (data.hasOwnProperty('aws_access_key_id')) { - obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); } - if (data.hasOwnProperty('aws_region')) { - obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('aws_secret_access_key')) { - obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); } - if (data.hasOwnProperty('aws_session_token')) { - obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); } - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -20393,133 +92285,138 @@ var AWSTargetDetails = /*#__PURE__*/function () { } }]); - return AWSTargetDetails; + return DynamicSecretCreateLdap; }(); /** - * @member {String} aws_access_key_id + * Bind DN + * @member {String} bind-dn */ -AWSTargetDetails.prototype['aws_access_key_id'] = undefined; +DynamicSecretCreateLdap.prototype['bind-dn'] = undefined; /** - * @member {String} aws_region + * Bind DN Password + * @member {String} bind-dn-password */ -AWSTargetDetails.prototype['aws_region'] = undefined; +DynamicSecretCreateLdap.prototype['bind-dn-password'] = undefined; /** - * @member {String} aws_secret_access_key + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AWSTargetDetails.prototype['aws_secret_access_key'] = undefined; +DynamicSecretCreateLdap.prototype['delete_protection'] = undefined; /** - * @member {String} aws_session_token + * Description of the object + * @member {String} description */ -AWSTargetDetails.prototype['aws_session_token'] = undefined; +DynamicSecretCreateLdap.prototype['description'] = undefined; /** - * @member {Boolean} use_gw_cloud_identity + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' */ -AWSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = AWSTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 87326: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +DynamicSecretCreateLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +DynamicSecretCreateLdap.prototype['group-dn'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +DynamicSecretCreateLdap.prototype['json'] = false; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretCreateLdap.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ +DynamicSecretCreateLdap.prototype['ldap-url'] = undefined; /** - * The AccessPermissionAssignment model module. - * @module model/AccessPermissionAssignment - * @version 3.3.16 + * Dynamic secret name + * @member {String} name */ -var AccessPermissionAssignment = /*#__PURE__*/function () { - /** - * Constructs a new AccessPermissionAssignment. - * @alias module:model/AccessPermissionAssignment - */ - function AccessPermissionAssignment() { - _classCallCheck(this, AccessPermissionAssignment); - AccessPermissionAssignment.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretCreateLdap.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ +DynamicSecretCreateLdap.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ - _createClass(AccessPermissionAssignment, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AccessPermissionAssignment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AccessPermissionAssignment} obj Optional instance to populate. - * @return {module:model/AccessPermissionAssignment} The populated AccessPermissionAssignment instance. - */ +DynamicSecretCreateLdap.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AccessPermissionAssignment(); +DynamicSecretCreateLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } +DynamicSecretCreateLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); - } - } +DynamicSecretCreateLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ - return obj; - } - }]); +DynamicSecretCreateLdap.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return AccessPermissionAssignment; -}(); +DynamicSecretCreateLdap.prototype['uid-token'] = undefined; /** - * @member {String} access_id + * User Attribute + * @member {String} user-attribute */ +DynamicSecretCreateLdap.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ -AccessPermissionAssignment.prototype['access_id'] = undefined; +DynamicSecretCreateLdap.prototype['user-dn'] = undefined; /** - * @member {Object.>} sub_claims + * User TTL + * @member {String} user-ttl + * @default '60m' */ -AccessPermissionAssignment.prototype['sub_claims'] = undefined; -var _default = AccessPermissionAssignment; +DynamicSecretCreateLdap.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateLdap; exports["default"] = _default; /***/ }), -/***/ 80281: +/***/ 96196: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -20530,13 +92427,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(33221)); - -var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(8360)); - -var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(69240)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -20547,20 +92438,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AccountGeneralSettings model module. - * @module model/AccountGeneralSettings - * @version 3.3.16 + * The DynamicSecretCreateMongoDb model module. + * @module model/DynamicSecretCreateMongoDb + * @version 3.6.3 */ -var AccountGeneralSettings = /*#__PURE__*/function () { +var DynamicSecretCreateMongoDb = /*#__PURE__*/function () { /** - * Constructs a new AccountGeneralSettings. - * AccountGeneralSettings describes general settings for an account - * @alias module:model/AccountGeneralSettings + * Constructs a new DynamicSecretCreateMongoDb. + * dynamicSecretCreateMongoDb is a command that creates either mongodb dynamic secret or mongodb atlas dynamic secret + * @alias module:model/DynamicSecretCreateMongoDb + * @param name {String} Dynamic secret name */ - function AccountGeneralSettings() { - _classCallCheck(this, AccountGeneralSettings); + function DynamicSecretCreateMongoDb(name) { + _classCallCheck(this, DynamicSecretCreateMongoDb); - AccountGeneralSettings.initialize(this); + DynamicSecretCreateMongoDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -20569,169 +92461,131 @@ var AccountGeneralSettings = /*#__PURE__*/function () { */ - _createClass(AccountGeneralSettings, null, [{ + _createClass(DynamicSecretCreateMongoDb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AccountGeneralSettings from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateMongoDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AccountGeneralSettings} obj Optional instance to populate. - * @return {module:model/AccountGeneralSettings} The populated AccountGeneralSettings instance. + * @param {module:model/DynamicSecretCreateMongoDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateMongoDb} The populated DynamicSecretCreateMongoDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AccountGeneralSettings(); + obj = obj || new DynamicSecretCreateMongoDb(); - if (data.hasOwnProperty('account_default_key_item_id')) { - obj['account_default_key_item_id'] = _ApiClient["default"].convertToType(data['account_default_key_item_id'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('account_default_key_name')) { - obj['account_default_key_name'] = _ApiClient["default"].convertToType(data['account_default_key_name'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('data_protection_section')) { - obj['data_protection_section'] = _DataProtectionSection["default"].constructFromObject(data['data_protection_section']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('enable_request_for_access')) { - obj['enable_request_for_access'] = _ApiClient["default"].convertToType(data['enable_request_for_access'], 'Boolean'); + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); } - if (data.hasOwnProperty('password_policy')) { - obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); } - if (data.hasOwnProperty('protect_items_by_default')) { - obj['protect_items_by_default'] = _ApiClient["default"].convertToType(data['protect_items_by_default'], 'Boolean'); + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); } - if (data.hasOwnProperty('sharing_policy')) { - obj['sharing_policy'] = _SharingPolicyInfo["default"].constructFromObject(data['sharing_policy']); + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); } - } - - return obj; - } - }]); - - return AccountGeneralSettings; -}(); -/** - * AccountDefaultKeyItemID is the item ID of the DFC key item configured as the default protection key - * @member {Number} account_default_key_item_id - */ - - -AccountGeneralSettings.prototype['account_default_key_item_id'] = undefined; -/** - * AccountDefaultKeyName is the name of the DFC key item configured as the default key This is here simply for the response to include the item name in addition to the display ID so the client can properly show this to the user. It will not be saved to the DB, only the AccountDefaultKeyItemID will. - * @member {String} account_default_key_name - */ - -AccountGeneralSettings.prototype['account_default_key_name'] = undefined; -/** - * @member {module:model/DataProtectionSection} data_protection_section - */ - -AccountGeneralSettings.prototype['data_protection_section'] = undefined; -/** - * @member {Boolean} enable_request_for_access - */ - -AccountGeneralSettings.prototype['enable_request_for_access'] = undefined; -/** - * @member {module:model/PasswordPolicyInfo} password_policy - */ - -AccountGeneralSettings.prototype['password_policy'] = undefined; -/** - * @member {Boolean} protect_items_by_default - */ -AccountGeneralSettings.prototype['protect_items_by_default'] = undefined; -/** - * @member {module:model/SharingPolicyInfo} sharing_policy - */ + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } -AccountGeneralSettings.prototype['sharing_policy'] = undefined; -var _default = AccountGeneralSettings; -exports["default"] = _default; + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } -/***/ 24149: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + } -var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(68437)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -/** - * The AccountObjectVersionSettingsOutput model module. - * @module model/AccountObjectVersionSettingsOutput - * @version 3.3.16 - */ -var AccountObjectVersionSettingsOutput = /*#__PURE__*/function () { - /** - * Constructs a new AccountObjectVersionSettingsOutput. - * @alias module:model/AccountObjectVersionSettingsOutput - */ - function AccountObjectVersionSettingsOutput() { - _classCallCheck(this, AccountObjectVersionSettingsOutput); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - AccountObjectVersionSettingsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } - _createClass(AccountObjectVersionSettingsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AccountObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AccountObjectVersionSettingsOutput} obj Optional instance to populate. - * @return {module:model/AccountObjectVersionSettingsOutput} The populated AccountObjectVersionSettingsOutput instance. - */ + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AccountObjectVersionSettingsOutput(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (data.hasOwnProperty('default-versioning')) { - obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'Boolean'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('items')) { - obj['items'] = _ApiClient["default"].convertToType(data['items'], [_ObjectVersionSettingsOutput["default"]]); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -20739,120 +92593,181 @@ var AccountObjectVersionSettingsOutput = /*#__PURE__*/function () { } }]); - return AccountObjectVersionSettingsOutput; + return DynamicSecretCreateMongoDb; }(); /** - * @member {Boolean} default-versioning + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AccountObjectVersionSettingsOutput.prototype['default-versioning'] = undefined; +DynamicSecretCreateMongoDb.prototype['delete_protection'] = undefined; /** - * @member {Array.} items + * Description of the object + * @member {String} description */ -AccountObjectVersionSettingsOutput.prototype['items'] = undefined; -var _default = AccountObjectVersionSettingsOutput; -exports["default"] = _default; +DynamicSecretCreateMongoDb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +DynamicSecretCreateMongoDb.prototype['json'] = false; +/** + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key + */ -/***/ 63519: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +DynamicSecretCreateMongoDb.prototype['mongodb-atlas-api-private-key'] = undefined; +/** + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key + */ -"use strict"; +DynamicSecretCreateMongoDb.prototype['mongodb-atlas-api-public-key'] = undefined; +/** + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id + */ +DynamicSecretCreateMongoDb.prototype['mongodb-atlas-project-id'] = undefined; +/** + * MongoDB custom data + * @member {String} mongodb-custom-data + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +DynamicSecretCreateMongoDb.prototype['mongodb-custom-data'] = undefined; +/** + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +DynamicSecretCreateMongoDb.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server host and port + * @member {String} mongodb-host-port + */ -var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(33564)); +DynamicSecretCreateMongoDb.prototype['mongodb-host-port'] = undefined; +/** + * MongoDB Name + * @member {String} mongodb-name + */ -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); +DynamicSecretCreateMongoDb.prototype['mongodb-name'] = undefined; +/** + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +DynamicSecretCreateMongoDb.prototype['mongodb-password'] = undefined; +/** + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +DynamicSecretCreateMongoDb.prototype['mongodb-roles'] = '[]'; +/** + * MongoDB server URI + * @member {String} mongodb-server-uri + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +DynamicSecretCreateMongoDb.prototype['mongodb-server-uri'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretCreateMongoDb.prototype['mongodb-uri-options'] = undefined; +/** + * MongoDB server username + * @member {String} mongodb-username + */ +DynamicSecretCreateMongoDb.prototype['mongodb-username'] = undefined; /** - * The ActiveDirectoryMigration model module. - * @module model/ActiveDirectoryMigration - * @version 3.3.16 + * Dynamic secret name + * @member {String} name */ -var ActiveDirectoryMigration = /*#__PURE__*/function () { - /** - * Constructs a new ActiveDirectoryMigration. - * @alias module:model/ActiveDirectoryMigration - */ - function ActiveDirectoryMigration() { - _classCallCheck(this, ActiveDirectoryMigration); - ActiveDirectoryMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretCreateMongoDb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ +DynamicSecretCreateMongoDb.prototype['password-length'] = undefined; +/** + * Encrypt producer with following key + * @member {String} producer-encryption-key-name + */ - _createClass(ActiveDirectoryMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ActiveDirectoryMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActiveDirectoryMigration} obj Optional instance to populate. - * @return {module:model/ActiveDirectoryMigration} The populated ActiveDirectoryMigration instance. - */ +DynamicSecretCreateMongoDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ActiveDirectoryMigration(); +DynamicSecretCreateMongoDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } +DynamicSecretCreateMongoDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ActiveDirectoryPayload["default"].constructFromObject(data['payload']); - } - } +DynamicSecretCreateMongoDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - return obj; - } - }]); +DynamicSecretCreateMongoDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - return ActiveDirectoryMigration; -}(); +DynamicSecretCreateMongoDb.prototype['tags'] = undefined; /** - * @member {module:model/MigrationGeneral} general + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateMongoDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +DynamicSecretCreateMongoDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -ActiveDirectoryMigration.prototype['general'] = undefined; +DynamicSecretCreateMongoDb.prototype['uid-token'] = undefined; /** - * @member {module:model/ActiveDirectoryPayload} payload + * User TTL + * @member {String} user-ttl + * @default '60m' */ -ActiveDirectoryMigration.prototype['payload'] = undefined; -var _default = ActiveDirectoryMigration; +DynamicSecretCreateMongoDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateMongoDb; exports["default"] = _default; /***/ }), -/***/ 33564: +/***/ 71086: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -20863,7 +92778,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -20874,19 +92789,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ActiveDirectoryPayload model module. - * @module model/ActiveDirectoryPayload - * @version 3.3.16 + * The DynamicSecretCreateMsSql model module. + * @module model/DynamicSecretCreateMsSql + * @version 3.6.3 */ -var ActiveDirectoryPayload = /*#__PURE__*/function () { +var DynamicSecretCreateMsSql = /*#__PURE__*/function () { /** - * Constructs a new ActiveDirectoryPayload. - * @alias module:model/ActiveDirectoryPayload + * Constructs a new DynamicSecretCreateMsSql. + * dynamicSecretCreateMsSql is a command that creates mssql dynamic secret + * @alias module:model/DynamicSecretCreateMsSql + * @param name {String} Dynamic secret name */ - function ActiveDirectoryPayload() { - _classCallCheck(this, ActiveDirectoryPayload); + function DynamicSecretCreateMsSql(name) { + _classCallCheck(this, DynamicSecretCreateMsSql); - ActiveDirectoryPayload.initialize(this); + DynamicSecretCreateMsSql.initialize(this, name); } /** * Initializes the fields of this object. @@ -20895,95 +92812,115 @@ var ActiveDirectoryPayload = /*#__PURE__*/function () { */ - _createClass(ActiveDirectoryPayload, null, [{ + _createClass(DynamicSecretCreateMsSql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ActiveDirectoryPayload from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateMsSql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActiveDirectoryPayload} obj Optional instance to populate. - * @return {module:model/ActiveDirectoryPayload} The populated ActiveDirectoryPayload instance. + * @param {module:model/DynamicSecretCreateMsSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateMsSql} The populated DynamicSecretCreateMsSql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ActiveDirectoryPayload(); + obj = obj || new DynamicSecretCreateMsSql(); - if (data.hasOwnProperty('active_directory_target_id')) { - obj['active_directory_target_id'] = _ApiClient["default"].convertToType(data['active_directory_target_id'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('auto_rotate')) { - obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('auto_rotate_interval_in_days')) { - obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('auto_rotate_rotation_hour')) { - obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); } - if (data.hasOwnProperty('computer_base_dn')) { - obj['computer_base_dn'] = _ApiClient["default"].convertToType(data['computer_base_dn'], 'String'); + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); } - if (data.hasOwnProperty('discover_local_users')) { - obj['discover_local_users'] = _ApiClient["default"].convertToType(data['discover_local_users'], 'Boolean'); + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); } - if (data.hasOwnProperty('domain_name')) { - obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], 'String'); + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); } - if (data.hasOwnProperty('domain_server_targets_path_template')) { - obj['domain_server_targets_path_template'] = _ApiClient["default"].convertToType(data['domain_server_targets_path_template'], 'String'); + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); } - if (data.hasOwnProperty('domain_users_rotated_secrets_path_template')) { - obj['domain_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['domain_users_rotated_secrets_path_template'], 'String'); + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); } - if (data.hasOwnProperty('enable_rdp_sra')) { - obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); } - if (data.hasOwnProperty('local_users_ignore_list')) { - obj['local_users_ignore_list'] = _ApiClient["default"].convertToType(data['local_users_ignore_list'], { - 'String': 'Boolean' - }); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('local_users_rotated_secrets_path_template')) { - obj['local_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['local_users_rotated_secrets_path_template'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('ssh_port')) { - obj['ssh_port'] = _ApiClient["default"].convertToType(data['ssh_port'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('targets_type')) { - obj['targets_type'] = _ApiClient["default"].convertToType(data['targets_type'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('user_base_dn')) { - obj['user_base_dn'] = _ApiClient["default"].convertToType(data['user_base_dn'], 'String'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } - if (data.hasOwnProperty('user_groups')) { - obj['user_groups'] = _ApiClient["default"].convertToType(data['user_groups'], ['String']); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('winrm_over_http')) { - obj['winrm_over_http'] = _ApiClient["default"].convertToType(data['winrm_over_http'], 'Boolean'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('winrm_port')) { - obj['winrm_port'] = _ApiClient["default"].convertToType(data['winrm_port'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -20991,105 +92928,158 @@ var ActiveDirectoryPayload = /*#__PURE__*/function () { } }]); - return ActiveDirectoryPayload; + return DynamicSecretCreateMsSql; }(); /** - * @member {Number} active_directory_target_id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -ActiveDirectoryPayload.prototype['active_directory_target_id'] = undefined; +DynamicSecretCreateMsSql.prototype['delete_protection'] = undefined; /** - * @member {Boolean} auto_rotate + * Description of the object + * @member {String} description */ -ActiveDirectoryPayload.prototype['auto_rotate'] = undefined; +DynamicSecretCreateMsSql.prototype['description'] = undefined; /** - * @member {Number} auto_rotate_interval_in_days + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ActiveDirectoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; +DynamicSecretCreateMsSql.prototype['json'] = false; /** - * @member {Number} auto_rotate_rotation_hour + * MSSQL Creation statements + * @member {String} mssql-create-statements */ -ActiveDirectoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; +DynamicSecretCreateMsSql.prototype['mssql-create-statements'] = undefined; /** - * @member {String} computer_base_dn + * MSSQL Name + * @member {String} mssql-dbname */ -ActiveDirectoryPayload.prototype['computer_base_dn'] = undefined; +DynamicSecretCreateMsSql.prototype['mssql-dbname'] = undefined; /** - * @member {Boolean} discover_local_users + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' */ -ActiveDirectoryPayload.prototype['discover_local_users'] = undefined; +DynamicSecretCreateMsSql.prototype['mssql-host'] = '127.0.0.1'; /** - * @member {String} domain_name + * MSSQL Password + * @member {String} mssql-password */ -ActiveDirectoryPayload.prototype['domain_name'] = undefined; +DynamicSecretCreateMsSql.prototype['mssql-password'] = undefined; /** - * @member {String} domain_server_targets_path_template + * MSSQL Port + * @member {String} mssql-port + * @default '1433' */ -ActiveDirectoryPayload.prototype['domain_server_targets_path_template'] = undefined; +DynamicSecretCreateMsSql.prototype['mssql-port'] = '1433'; /** - * @member {String} domain_users_rotated_secrets_path_template + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements */ -ActiveDirectoryPayload.prototype['domain_users_rotated_secrets_path_template'] = undefined; +DynamicSecretCreateMsSql.prototype['mssql-revocation-statements'] = undefined; /** - * @member {Boolean} enable_rdp_sra + * MSSQL Username + * @member {String} mssql-username */ -ActiveDirectoryPayload.prototype['enable_rdp_sra'] = undefined; +DynamicSecretCreateMsSql.prototype['mssql-username'] = undefined; /** - * @member {Object.} local_users_ignore_list + * Dynamic secret name + * @member {String} name */ -ActiveDirectoryPayload.prototype['local_users_ignore_list'] = undefined; +DynamicSecretCreateMsSql.prototype['name'] = undefined; /** - * @member {String} local_users_rotated_secrets_path_template + * The length of the password to be generated + * @member {String} password-length */ -ActiveDirectoryPayload.prototype['local_users_rotated_secrets_path_template'] = undefined; +DynamicSecretCreateMsSql.prototype['password-length'] = undefined; /** - * @member {String} ssh_port + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -ActiveDirectoryPayload.prototype['ssh_port'] = undefined; +DynamicSecretCreateMsSql.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} targets_type + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -ActiveDirectoryPayload.prototype['targets_type'] = undefined; +DynamicSecretCreateMsSql.prototype['secure-access-bastion-issuer'] = undefined; /** - * @member {String} user_base_dn + * The DB schema + * @member {String} secure-access-db-schema */ -ActiveDirectoryPayload.prototype['user_base_dn'] = undefined; +DynamicSecretCreateMsSql.prototype['secure-access-db-schema'] = undefined; /** - * @member {Array.} user_groups + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -ActiveDirectoryPayload.prototype['user_groups'] = undefined; +DynamicSecretCreateMsSql.prototype['secure-access-enable'] = undefined; /** - * @member {Boolean} winrm_over_http + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -ActiveDirectoryPayload.prototype['winrm_over_http'] = undefined; +DynamicSecretCreateMsSql.prototype['secure-access-host'] = undefined; /** - * @member {String} winrm_port + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -ActiveDirectoryPayload.prototype['winrm_port'] = undefined; -var _default = ActiveDirectoryPayload; +DynamicSecretCreateMsSql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateMsSql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateMsSql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateMsSql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateMsSql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateMsSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateMsSql; exports["default"] = _default; /***/ }), -/***/ 84157: +/***/ 95472: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -21100,7 +93090,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -21111,22 +93101,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AddGatewayAllowedAccessId model module. - * @module model/AddGatewayAllowedAccessId - * @version 3.3.16 + * The DynamicSecretCreateMySql model module. + * @module model/DynamicSecretCreateMySql + * @version 3.6.3 */ -var AddGatewayAllowedAccessId = /*#__PURE__*/function () { +var DynamicSecretCreateMySql = /*#__PURE__*/function () { /** - * Constructs a new AddGatewayAllowedAccessId. - * Responses: default: errorResponse 200: addGatewayAllowedAccessIdResponse - * @alias module:model/AddGatewayAllowedAccessId - * @param accessId {String} The access id that will be able to access to gateway - * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * Constructs a new DynamicSecretCreateMySql. + * dynamicSecretCreateMySql is a command that creates mysql dynamic secret + * @alias module:model/DynamicSecretCreateMySql + * @param name {String} Dynamic secret name */ - function AddGatewayAllowedAccessId(accessId, clusterName) { - _classCallCheck(this, AddGatewayAllowedAccessId); + function DynamicSecretCreateMySql(name) { + _classCallCheck(this, DynamicSecretCreateMySql); - AddGatewayAllowedAccessId.initialize(this, accessId, clusterName); + DynamicSecretCreateMySql.initialize(this, name); } /** * Initializes the fields of this object. @@ -21135,42 +93124,115 @@ var AddGatewayAllowedAccessId = /*#__PURE__*/function () { */ - _createClass(AddGatewayAllowedAccessId, null, [{ + _createClass(DynamicSecretCreateMySql, null, [{ key: "initialize", - value: function initialize(obj, accessId, clusterName) { - obj['access-id'] = accessId; - obj['cluster-name'] = clusterName; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a AddGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateMySql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddGatewayAllowedAccessId} obj Optional instance to populate. - * @return {module:model/AddGatewayAllowedAccessId} The populated AddGatewayAllowedAccessId instance. + * @param {module:model/DynamicSecretCreateMySql} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateMySql} The populated DynamicSecretCreateMySql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AddGatewayAllowedAccessId(); + obj = obj || new DynamicSecretCreateMySql(); - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); } - if (data.hasOwnProperty('cluster-name')) { - obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + } + + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); + } + + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); + } + + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -21180,153 +93242,187 @@ var AddGatewayAllowedAccessId = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return AddGatewayAllowedAccessId; + return DynamicSecretCreateMySql; }(); /** - * The access id that will be able to access to gateway - * @member {String} access-id + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -AddGatewayAllowedAccessId.prototype['access-id'] = undefined; +DynamicSecretCreateMySql.prototype['db-server-certificates'] = undefined; /** - * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - * @member {String} cluster-name + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -AddGatewayAllowedAccessId.prototype['cluster-name'] = undefined; +DynamicSecretCreateMySql.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateMySql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateMySql.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -AddGatewayAllowedAccessId.prototype['json'] = false; +DynamicSecretCreateMySql.prototype['json'] = false; /** - * key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims + * MySQL DB Name + * @member {String} mysql-dbname */ -AddGatewayAllowedAccessId.prototype['sub-claims'] = undefined; +DynamicSecretCreateMySql.prototype['mysql-dbname'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' */ -AddGatewayAllowedAccessId.prototype['token'] = undefined; +DynamicSecretCreateMySql.prototype['mysql-host'] = '127.0.0.1'; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * MySQL Password + * @member {String} mysql-password */ -AddGatewayAllowedAccessId.prototype['uid-token'] = undefined; -var _default = AddGatewayAllowedAccessId; -exports["default"] = _default; - -/***/ }), - -/***/ 58307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +DynamicSecretCreateMySql.prototype['mysql-password'] = undefined; +/** + * MySQL Port + * @member {String} mysql-port + * @default '3306' + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +DynamicSecretCreateMySql.prototype['mysql-port'] = '3306'; +/** + * MySQL Revocation statements + * @member {String} mysql-revocation-statements + */ -var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(90264)); +DynamicSecretCreateMySql.prototype['mysql-revocation-statements'] = undefined; +/** + * MySQL Creation statements + * @member {String} mysql-screation-statements + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +DynamicSecretCreateMySql.prototype['mysql-screation-statements'] = undefined; +/** + * MySQL Username + * @member {String} mysql-username + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +DynamicSecretCreateMySql.prototype['mysql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +DynamicSecretCreateMySql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretCreateMySql.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ +DynamicSecretCreateMySql.prototype['producer-encryption-key-name'] = undefined; /** - * The AdminsConfigPart model module. - * @module model/AdminsConfigPart - * @version 3.3.16 + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -var AdminsConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new AdminsConfigPart. - * @alias module:model/AdminsConfigPart - */ - function AdminsConfigPart() { - _classCallCheck(this, AdminsConfigPart); - AdminsConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretCreateMySql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ +DynamicSecretCreateMySql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ - _createClass(AdminsConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AdminsConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdminsConfigPart} obj Optional instance to populate. - * @return {module:model/AdminsConfigPart} The populated AdminsConfigPart instance. - */ +DynamicSecretCreateMySql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AdminsConfigPart(); +DynamicSecretCreateMySql.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ - if (data.hasOwnProperty('admins_migration_status')) { - obj['admins_migration_status'] = _ApiClient["default"].convertToType(data['admins_migration_status'], 'Number'); - } +DynamicSecretCreateMySql.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ - if (data.hasOwnProperty('allowed_access')) { - obj['allowed_access'] = _ApiClient["default"].convertToType(data['allowed_access'], { - 'String': _AllowedAccessOld["default"] - }); - } - } +DynamicSecretCreateMySql.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - return obj; - } - }]); +DynamicSecretCreateMySql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return AdminsConfigPart; -}(); +DynamicSecretCreateMySql.prototype['target-name'] = undefined; /** - * @member {Number} admins_migration_status + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +DynamicSecretCreateMySql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -AdminsConfigPart.prototype['admins_migration_status'] = undefined; +DynamicSecretCreateMySql.prototype['uid-token'] = undefined; /** - * @member {Object.} allowed_access + * User TTL + * @member {String} user-ttl + * @default '60m' */ -AdminsConfigPart.prototype['allowed_access'] = undefined; -var _default = AdminsConfigPart; +DynamicSecretCreateMySql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateMySql; exports["default"] = _default; /***/ }), -/***/ 74034: +/***/ 56892: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -21337,35 +93433,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(58307)); - -var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(3717)); - -var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(89529)); - -var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(14740)); - -var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(61174)); - -var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(98926)); - -var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(53190)); - -var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(86271)); - -var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(36492)); - -var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(98339)); - -var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(47217)); - -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(11237)); - -var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(83988)); - -var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(45809)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -21376,19 +93444,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AkeylessGatewayConfig model module. - * @module model/AkeylessGatewayConfig - * @version 3.3.16 + * The DynamicSecretCreateOracleDb model module. + * @module model/DynamicSecretCreateOracleDb + * @version 3.6.3 */ -var AkeylessGatewayConfig = /*#__PURE__*/function () { +var DynamicSecretCreateOracleDb = /*#__PURE__*/function () { /** - * Constructs a new AkeylessGatewayConfig. - * @alias module:model/AkeylessGatewayConfig + * Constructs a new DynamicSecretCreateOracleDb. + * dynamicSecretCreateOracleDb is a command that creates oracle db dynamic secret + * @alias module:model/DynamicSecretCreateOracleDb + * @param name {String} Dynamic secret name */ - function AkeylessGatewayConfig() { - _classCallCheck(this, AkeylessGatewayConfig); + function DynamicSecretCreateOracleDb(name) { + _classCallCheck(this, DynamicSecretCreateOracleDb); - AkeylessGatewayConfig.initialize(this); + DynamicSecretCreateOracleDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -21397,85 +93467,119 @@ var AkeylessGatewayConfig = /*#__PURE__*/function () { */ - _createClass(AkeylessGatewayConfig, null, [{ + _createClass(DynamicSecretCreateOracleDb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AkeylessGatewayConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateOracleDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AkeylessGatewayConfig} obj Optional instance to populate. - * @return {module:model/AkeylessGatewayConfig} The populated AkeylessGatewayConfig instance. + * @param {module:model/DynamicSecretCreateOracleDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateOracleDb} The populated DynamicSecretCreateOracleDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AkeylessGatewayConfig(); + obj = obj || new DynamicSecretCreateOracleDb(); - if (data.hasOwnProperty('admins')) { - obj['admins'] = _AdminsConfigPart["default"].constructFromObject(data['admins']); + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); } - if (data.hasOwnProperty('cache')) { - obj['cache'] = _CacheConfigPart["default"].constructFromObject(data['cache']); + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); } - if (data.hasOwnProperty('cf')) { - obj['cf'] = _CFConfigPart["default"].constructFromObject(data['cf']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('config_protection_key_name')) { - obj['config_protection_key_name'] = _ApiClient["default"].convertToType(data['config_protection_key_name'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('general')) { - obj['general'] = _GeneralConfigPart["default"].constructFromObject(data['general']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('k8s_auths')) { - obj['k8s_auths'] = _K8SAuthsConfigPart["default"].constructFromObject(data['k8s_auths']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('kmip_clients')) { - obj['kmip_clients'] = _KMIPConfigPart["default"].constructFromObject(data['kmip_clients']); + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); } - if (data.hasOwnProperty('ldap')) { - obj['ldap'] = _LdapConfigPart["default"].constructFromObject(data['ldap']); + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); } - if (data.hasOwnProperty('leadership')) { - obj['leadership'] = _LeadershipConfigPart["default"].constructFromObject(data['leadership']); + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); } - if (data.hasOwnProperty('log_forwarding')) { - obj['log_forwarding'] = _LogForwardingConfigPart["default"].constructFromObject(data['log_forwarding']); + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); } - if (data.hasOwnProperty('message_queue_info')) { - obj['message_queue_info'] = _GatewayMessageQueueInfo["default"].constructFromObject(data['message_queue_info']); + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); } - if (data.hasOwnProperty('migrations')) { - obj['migrations'] = _MigrationsConfigPart["default"].constructFromObject(data['migrations']); + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); } - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ProducersConfigPart["default"].constructFromObject(data['producers']); + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); } - if (data.hasOwnProperty('rotators')) { - obj['rotators'] = _RotatorsConfigPart["default"].constructFromObject(data['rotators']); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('saml')) { - obj['saml'] = _DefaultConfigPart["default"].constructFromObject(data['saml']); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -21483,95 +93587,165 @@ var AkeylessGatewayConfig = /*#__PURE__*/function () { } }]); - return AkeylessGatewayConfig; + return DynamicSecretCreateOracleDb; }(); /** - * @member {module:model/AdminsConfigPart} admins + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -AkeylessGatewayConfig.prototype['admins'] = undefined; +DynamicSecretCreateOracleDb.prototype['db-server-certificates'] = undefined; /** - * @member {module:model/CacheConfigPart} cache + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -AkeylessGatewayConfig.prototype['cache'] = undefined; +DynamicSecretCreateOracleDb.prototype['db-server-name'] = undefined; /** - * @member {module:model/CFConfigPart} cf + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AkeylessGatewayConfig.prototype['cf'] = undefined; +DynamicSecretCreateOracleDb.prototype['delete_protection'] = undefined; /** - * @member {String} config_protection_key_name + * Description of the object + * @member {String} description */ -AkeylessGatewayConfig.prototype['config_protection_key_name'] = undefined; +DynamicSecretCreateOracleDb.prototype['description'] = undefined; /** - * @member {module:model/GeneralConfigPart} general + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AkeylessGatewayConfig.prototype['general'] = undefined; +DynamicSecretCreateOracleDb.prototype['json'] = false; /** - * @member {module:model/K8SAuthsConfigPart} k8s_auths + * Dynamic secret name + * @member {String} name */ -AkeylessGatewayConfig.prototype['k8s_auths'] = undefined; +DynamicSecretCreateOracleDb.prototype['name'] = undefined; /** - * @member {module:model/KMIPConfigPart} kmip_clients + * Oracle Host + * @member {String} oracle-host + * @default '127.0.0.1' */ -AkeylessGatewayConfig.prototype['kmip_clients'] = undefined; +DynamicSecretCreateOracleDb.prototype['oracle-host'] = '127.0.0.1'; /** - * @member {module:model/LdapConfigPart} ldap + * Oracle Password + * @member {String} oracle-password */ -AkeylessGatewayConfig.prototype['ldap'] = undefined; +DynamicSecretCreateOracleDb.prototype['oracle-password'] = undefined; /** - * @member {module:model/LeadershipConfigPart} leadership + * Oracle Port + * @member {String} oracle-port + * @default '1521' */ -AkeylessGatewayConfig.prototype['leadership'] = undefined; +DynamicSecretCreateOracleDb.prototype['oracle-port'] = '1521'; /** - * @member {module:model/LogForwardingConfigPart} log_forwarding + * Oracle Revocation statements + * @member {String} oracle-revocation-statements */ -AkeylessGatewayConfig.prototype['log_forwarding'] = undefined; +DynamicSecretCreateOracleDb.prototype['oracle-revocation-statements'] = undefined; /** - * @member {module:model/GatewayMessageQueueInfo} message_queue_info + * Oracle Creation statements + * @member {String} oracle-screation-statements */ -AkeylessGatewayConfig.prototype['message_queue_info'] = undefined; +DynamicSecretCreateOracleDb.prototype['oracle-screation-statements'] = undefined; /** - * @member {module:model/MigrationsConfigPart} migrations + * Oracle DB Name + * @member {String} oracle-service-name */ -AkeylessGatewayConfig.prototype['migrations'] = undefined; +DynamicSecretCreateOracleDb.prototype['oracle-service-name'] = undefined; /** - * @member {module:model/ProducersConfigPart} producers + * Oracle Username + * @member {String} oracle-username */ -AkeylessGatewayConfig.prototype['producers'] = undefined; +DynamicSecretCreateOracleDb.prototype['oracle-username'] = undefined; /** - * @member {module:model/RotatorsConfigPart} rotators + * The length of the password to be generated + * @member {String} password-length */ -AkeylessGatewayConfig.prototype['rotators'] = undefined; +DynamicSecretCreateOracleDb.prototype['password-length'] = undefined; /** - * @member {module:model/DefaultConfigPart} saml + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -AkeylessGatewayConfig.prototype['saml'] = undefined; +DynamicSecretCreateOracleDb.prototype['producer-encryption-key-name'] = undefined; /** - * @member {Number} version + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -AkeylessGatewayConfig.prototype['version'] = undefined; -var _default = AkeylessGatewayConfig; +DynamicSecretCreateOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + * @default 'false' + */ + +DynamicSecretCreateOracleDb.prototype['secure-access-enable'] = 'false'; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateOracleDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateOracleDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateOracleDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateOracleDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateOracleDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateOracleDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateOracleDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateOracleDb; exports["default"] = _default; /***/ }), -/***/ 3266: +/***/ 2545: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -21582,7 +93756,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -21593,19 +93769,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AllowedAccess model module. - * @module model/AllowedAccess - * @version 3.3.16 + * The DynamicSecretCreateOutput model module. + * @module model/DynamicSecretCreateOutput + * @version 3.6.3 */ -var AllowedAccess = /*#__PURE__*/function () { +var DynamicSecretCreateOutput = /*#__PURE__*/function () { /** - * Constructs a new AllowedAccess. - * @alias module:model/AllowedAccess + * Constructs a new DynamicSecretCreateOutput. + * @alias module:model/DynamicSecretCreateOutput */ - function AllowedAccess() { - _classCallCheck(this, AllowedAccess); + function DynamicSecretCreateOutput() { + _classCallCheck(this, DynamicSecretCreateOutput); - AllowedAccess.initialize(this); + DynamicSecretCreateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -21614,156 +93790,389 @@ var AllowedAccess = /*#__PURE__*/function () { */ - _createClass(AllowedAccess, null, [{ + _createClass(DynamicSecretCreateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a AllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllowedAccess} obj Optional instance to populate. - * @return {module:model/AllowedAccess} The populated AllowedAccess instance. + * @param {module:model/DynamicSecretCreateOutput} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateOutput} The populated DynamicSecretCreateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AllowedAccess(); + obj = obj || new DynamicSecretCreateOutput(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('dynamic_secret_details')) { + obj['dynamic_secret_details'] = _DSProducerDetails["default"].constructFromObject(data['dynamic_secret_details']); } + } - if (data.hasOwnProperty('access_type')) { - obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); - } + return DynamicSecretCreateOutput; +}(); +/** + * @member {module:model/DSProducerDetails} dynamic_secret_details + */ - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); + +DynamicSecretCreateOutput.prototype['dynamic_secret_details'] = undefined; +var _default = DynamicSecretCreateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 29748: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreatePing model module. + * @module model/DynamicSecretCreatePing + * @version 3.6.3 + */ +var DynamicSecretCreatePing = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreatePing. + * dynamicSecretCreatePing is a command that creates ping dynamic secret + * @alias module:model/DynamicSecretCreatePing + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreatePing(name) { + _classCallCheck(this, DynamicSecretCreatePing); + + DynamicSecretCreatePing.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreatePing, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreatePing from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreatePing} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreatePing} The populated DynamicSecretCreatePing instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreatePing(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('editable')) { - obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('error')) { - obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); } - if (data.hasOwnProperty('is_valid')) { - obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); } - if (data.hasOwnProperty('permissions')) { - obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], ['String']); + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); } - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date'); + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + } + + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + } + + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + } + + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } - return obj; - } - }]); + return obj; + } + }]); + + return DynamicSecretCreatePing; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreatePing.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreatePing.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreatePing.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreatePing.prototype['name'] = undefined; +/** + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' + */ + +DynamicSecretCreatePing.prototype['ping-administrative-port'] = '9999'; +/** + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id + */ + +DynamicSecretCreatePing.prototype['ping-atm-id'] = undefined; +/** + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' + */ + +DynamicSecretCreatePing.prototype['ping-authorization-port'] = '9031'; +/** + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn + */ + +DynamicSecretCreatePing.prototype['ping-cert-subject-dn'] = undefined; +/** + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' + */ + +DynamicSecretCreatePing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; +/** + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention + * @default 'false' + */ + +DynamicSecretCreatePing.prototype['ping-enforce-replay-prevention'] = 'false'; +/** + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types + */ - return AllowedAccess; -}(); +DynamicSecretCreatePing.prototype['ping-grant-types'] = undefined; /** - * @member {String} access_id + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn */ +DynamicSecretCreatePing.prototype['ping-issuer-dn'] = undefined; +/** + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks + */ -AllowedAccess.prototype['access_id'] = undefined; +DynamicSecretCreatePing.prototype['ping-jwks'] = undefined; /** - * @member {String} access_type + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url */ -AllowedAccess.prototype['access_type'] = undefined; +DynamicSecretCreatePing.prototype['ping-jwks-url'] = undefined; /** - * @member {Number} cluster_id + * Ping Federate privileged user password + * @member {String} ping-password */ -AllowedAccess.prototype['cluster_id'] = undefined; +DynamicSecretCreatePing.prototype['ping-password'] = undefined; /** - * @member {Date} created_at + * Ping Federate privileged user + * @member {String} ping-privileged-user */ -AllowedAccess.prototype['created_at'] = undefined; +DynamicSecretCreatePing.prototype['ping-privileged-user'] = undefined; /** - * @member {String} description + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris */ -AllowedAccess.prototype['description'] = undefined; +DynamicSecretCreatePing.prototype['ping-redirect-uris'] = undefined; /** - * @member {Boolean} editable + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes */ -AllowedAccess.prototype['editable'] = undefined; +DynamicSecretCreatePing.prototype['ping-restricted-scopes'] = undefined; /** - * @member {String} error + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo */ -AllowedAccess.prototype['error'] = undefined; +DynamicSecretCreatePing.prototype['ping-signing-algo'] = undefined; /** - * @member {Number} id + * Ping URL + * @member {String} ping-url */ -AllowedAccess.prototype['id'] = undefined; +DynamicSecretCreatePing.prototype['ping-url'] = undefined; /** - * @member {Boolean} is_valid + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -AllowedAccess.prototype['is_valid'] = undefined; +DynamicSecretCreatePing.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} name + * Add tags attached to this object + * @member {Array.} tags */ -AllowedAccess.prototype['name'] = undefined; +DynamicSecretCreatePing.prototype['tags'] = undefined; /** - * @member {Array.} permissions + * Target name + * @member {String} target-name */ -AllowedAccess.prototype['permissions'] = undefined; +DynamicSecretCreatePing.prototype['target-name'] = undefined; /** - * @member {Object.>} sub_claims + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -AllowedAccess.prototype['sub_claims'] = undefined; +DynamicSecretCreatePing.prototype['token'] = undefined; /** - * @member {Date} updated_at + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -AllowedAccess.prototype['updated_at'] = undefined; -var _default = AllowedAccess; +DynamicSecretCreatePing.prototype['uid-token'] = undefined; +/** + * The time from dynamic secret creation to expiration. + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreatePing.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreatePing; exports["default"] = _default; /***/ }), -/***/ 90264: +/***/ 84126: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -21774,7 +94183,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -21785,20 +94194,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AllowedAccessOld model module. - * @module model/AllowedAccessOld - * @version 3.3.16 + * The DynamicSecretCreatePostgreSql model module. + * @module model/DynamicSecretCreatePostgreSql + * @version 3.6.3 */ -var AllowedAccessOld = /*#__PURE__*/function () { +var DynamicSecretCreatePostgreSql = /*#__PURE__*/function () { /** - * Constructs a new AllowedAccessOld. - * Deprecated: AllowedAccessOld please use Gator allowed_access API structs such as AllowedAccessInput/AllowedAccess - * @alias module:model/AllowedAccessOld + * Constructs a new DynamicSecretCreatePostgreSql. + * dynamicSecretCreatePostgreSql is a command that creates postgresql dynamic secret + * @alias module:model/DynamicSecretCreatePostgreSql + * @param name {String} Dynamic secret name */ - function AllowedAccessOld() { - _classCallCheck(this, AllowedAccessOld); + function DynamicSecretCreatePostgreSql(name) { + _classCallCheck(this, DynamicSecretCreatePostgreSql); - AllowedAccessOld.initialize(this); + DynamicSecretCreatePostgreSql.initialize(this, name); } /** * Initializes the fields of this object. @@ -21807,67 +94217,119 @@ var AllowedAccessOld = /*#__PURE__*/function () { */ - _createClass(AllowedAccessOld, null, [{ + _createClass(DynamicSecretCreatePostgreSql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AllowedAccessOld from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreatePostgreSql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllowedAccessOld} obj Optional instance to populate. - * @return {module:model/AllowedAccessOld} The populated AllowedAccessOld instance. + * @param {module:model/DynamicSecretCreatePostgreSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreatePostgreSql} The populated DynamicSecretCreatePostgreSql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AllowedAccessOld(); + obj = obj || new DynamicSecretCreatePostgreSql(); - if (data.hasOwnProperty('acc_id')) { - obj['acc_id'] = _ApiClient["default"].convertToType(data['acc_id'], 'String'); + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); } - if (data.hasOwnProperty('access_permissions')) { - obj['access_permissions'] = _ApiClient["default"].convertToType(data['access_permissions'], ['String']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('access_rules_type')) { - obj['access_rules_type'] = _ApiClient["default"].convertToType(data['access_rules_type'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('allowed_api')) { - obj['allowed_api'] = _ApiClient["default"].convertToType(data['allowed_api'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('alloweds_login')) { - obj['alloweds_login'] = _ApiClient["default"].convertToType(data['alloweds_login'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('editable')) { - obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('err_msg')) { - obj['err_msg'] = _ApiClient["default"].convertToType(data['err_msg'], 'String'); + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); } - if (data.hasOwnProperty('hash')) { - obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String'); + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); } - if (data.hasOwnProperty('is_valid')) { - obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); } - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -21875,170 +94337,165 @@ var AllowedAccessOld = /*#__PURE__*/function () { } }]); - return AllowedAccessOld; + return DynamicSecretCreatePostgreSql; }(); /** - * @member {String} acc_id + * PostgreSQL Creation statements + * @member {String} creation-statements */ -AllowedAccessOld.prototype['acc_id'] = undefined; +DynamicSecretCreatePostgreSql.prototype['creation-statements'] = undefined; /** - * @member {Array.} access_permissions + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AllowedAccessOld.prototype['access_permissions'] = undefined; +DynamicSecretCreatePostgreSql.prototype['delete_protection'] = undefined; /** - * @member {String} access_rules_type + * Description of the object + * @member {String} description */ -AllowedAccessOld.prototype['access_rules_type'] = undefined; +DynamicSecretCreatePostgreSql.prototype['description'] = undefined; /** - * @member {Boolean} allowed_api + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AllowedAccessOld.prototype['allowed_api'] = undefined; +DynamicSecretCreatePostgreSql.prototype['json'] = false; /** - * @member {Boolean} alloweds_login + * Dynamic secret name + * @member {String} name */ -AllowedAccessOld.prototype['alloweds_login'] = undefined; +DynamicSecretCreatePostgreSql.prototype['name'] = undefined; /** - * @member {Boolean} editable + * The length of the password to be generated + * @member {String} password-length */ -AllowedAccessOld.prototype['editable'] = undefined; +DynamicSecretCreatePostgreSql.prototype['password-length'] = undefined; /** - * @member {String} err_msg + * PostgreSQL DB Name + * @member {String} postgresql-db-name */ -AllowedAccessOld.prototype['err_msg'] = undefined; +DynamicSecretCreatePostgreSql.prototype['postgresql-db-name'] = undefined; /** - * @member {String} hash + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' */ -AllowedAccessOld.prototype['hash'] = undefined; +DynamicSecretCreatePostgreSql.prototype['postgresql-host'] = '127.0.0.1'; /** - * @member {Boolean} is_valid + * PostgreSQL Password + * @member {String} postgresql-password */ -AllowedAccessOld.prototype['is_valid'] = undefined; +DynamicSecretCreatePostgreSql.prototype['postgresql-password'] = undefined; /** - * @member {String} name + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' */ -AllowedAccessOld.prototype['name'] = undefined; +DynamicSecretCreatePostgreSql.prototype['postgresql-port'] = '5432'; /** - * @member {Object.>} sub_claims + * PostgreSQL Username + * @member {String} postgresql-username */ -AllowedAccessOld.prototype['sub_claims'] = undefined; -var _default = AllowedAccessOld; -exports["default"] = _default; - -/***/ }), - -/***/ 70521: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +DynamicSecretCreatePostgreSql.prototype['postgresql-username'] = undefined; /** - * The ArtifactoryTargetDetails model module. - * @module model/ArtifactoryTargetDetails - * @version 3.3.16 + * Dynamic producer encryption key + * @member {String} producer-encryption-key */ -var ArtifactoryTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new ArtifactoryTargetDetails. - * @alias module:model/ArtifactoryTargetDetails - */ - function ArtifactoryTargetDetails() { - _classCallCheck(this, ArtifactoryTargetDetails); - ArtifactoryTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretCreatePostgreSql.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement + */ +DynamicSecretCreatePostgreSql.prototype['revocation-statement'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - _createClass(ArtifactoryTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ArtifactoryTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArtifactoryTargetDetails} obj Optional instance to populate. - * @return {module:model/ArtifactoryTargetDetails} The populated ArtifactoryTargetDetails instance. - */ +DynamicSecretCreatePostgreSql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ArtifactoryTargetDetails(); +DynamicSecretCreatePostgreSql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (data.hasOwnProperty('artifactory_admin_apikey')) { - obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); - } +DynamicSecretCreatePostgreSql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ - if (data.hasOwnProperty('artifactory_admin_username')) { - obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); - } +DynamicSecretCreatePostgreSql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - if (data.hasOwnProperty('artifactory_base_url')) { - obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); - } - } +DynamicSecretCreatePostgreSql.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ - return obj; - } - }]); +DynamicSecretCreatePostgreSql.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - return ArtifactoryTargetDetails; -}(); +DynamicSecretCreatePostgreSql.prototype['tags'] = undefined; /** - * @member {String} artifactory_admin_apikey + * Target name + * @member {String} target-name */ +DynamicSecretCreatePostgreSql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -ArtifactoryTargetDetails.prototype['artifactory_admin_apikey'] = undefined; +DynamicSecretCreatePostgreSql.prototype['token'] = undefined; /** - * @member {String} artifactory_admin_username + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -ArtifactoryTargetDetails.prototype['artifactory_admin_username'] = undefined; +DynamicSecretCreatePostgreSql.prototype['uid-token'] = undefined; /** - * @member {String} artifactory_base_url + * User TTL + * @member {String} user-ttl + * @default '60m' */ -ArtifactoryTargetDetails.prototype['artifactory_base_url'] = undefined; -var _default = ArtifactoryTargetDetails; +DynamicSecretCreatePostgreSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreatePostgreSql; exports["default"] = _default; /***/ }), -/***/ 44828: +/***/ 57518: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -22049,7 +94506,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -22060,22 +94517,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AssocRoleAuthMethod model module. - * @module model/AssocRoleAuthMethod - * @version 3.3.16 + * The DynamicSecretCreateRabbitMq model module. + * @module model/DynamicSecretCreateRabbitMq + * @version 3.6.3 */ -var AssocRoleAuthMethod = /*#__PURE__*/function () { +var DynamicSecretCreateRabbitMq = /*#__PURE__*/function () { /** - * Constructs a new AssocRoleAuthMethod. - * assocRoleAuthMethod is a command that creates an association between role and auth method. - * @alias module:model/AssocRoleAuthMethod - * @param amName {String} The auth method to associate - * @param roleName {String} The role to associate + * Constructs a new DynamicSecretCreateRabbitMq. + * dynamicSecretCreateRabbitMq is a command that creates rabbitmq dynamic secret + * @alias module:model/DynamicSecretCreateRabbitMq + * @param name {String} Dynamic secret name */ - function AssocRoleAuthMethod(amName, roleName) { - _classCallCheck(this, AssocRoleAuthMethod); + function DynamicSecretCreateRabbitMq(name) { + _classCallCheck(this, DynamicSecretCreateRabbitMq); - AssocRoleAuthMethod.initialize(this, amName, roleName); + DynamicSecretCreateRabbitMq.initialize(this, name); } /** * Initializes the fields of this object. @@ -22084,46 +94540,107 @@ var AssocRoleAuthMethod = /*#__PURE__*/function () { */ - _createClass(AssocRoleAuthMethod, null, [{ + _createClass(DynamicSecretCreateRabbitMq, null, [{ key: "initialize", - value: function initialize(obj, amName, roleName) { - obj['am-name'] = amName; - obj['role-name'] = roleName; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a AssocRoleAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateRabbitMq from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AssocRoleAuthMethod} obj Optional instance to populate. - * @return {module:model/AssocRoleAuthMethod} The populated AssocRoleAuthMethod instance. + * @param {module:model/DynamicSecretCreateRabbitMq} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRabbitMq} The populated DynamicSecretCreateRabbitMq instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AssocRoleAuthMethod(); + obj = obj || new DynamicSecretCreateRabbitMq(); - if (data.hasOwnProperty('am-name')) { - obj['am-name'] = _ApiClient["default"].convertToType(data['am-name'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('case-sensitive')) { - obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('role-name')) { - obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -22133,65 +94650,174 @@ var AssocRoleAuthMethod = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return AssocRoleAuthMethod; + return DynamicSecretCreateRabbitMq; }(); /** - * The auth method to associate - * @member {String} am-name + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AssocRoleAuthMethod.prototype['am-name'] = undefined; +DynamicSecretCreateRabbitMq.prototype['delete_protection'] = undefined; /** - * Treat sub claims as case-sensitive [true/false] - * @member {String} case-sensitive - * @default 'true' + * Description of the object + * @member {String} description */ -AssocRoleAuthMethod.prototype['case-sensitive'] = 'true'; +DynamicSecretCreateRabbitMq.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -AssocRoleAuthMethod.prototype['json'] = false; +DynamicSecretCreateRabbitMq.prototype['json'] = false; /** - * The role to associate - * @member {String} role-name + * Dynamic secret name + * @member {String} name */ -AssocRoleAuthMethod.prototype['role-name'] = undefined; +DynamicSecretCreateRabbitMq.prototype['name'] = undefined; /** - * key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims + * The length of the password to be generated + * @member {String} password-length */ -AssocRoleAuthMethod.prototype['sub-claims'] = undefined; +DynamicSecretCreateRabbitMq.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateRabbitMq.prototype['producer-encryption-key-name'] = undefined; +/** + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-admin-pwd'] = undefined; +/** + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-admin-user'] = undefined; +/** + * Server URI + * @member {String} rabbitmq-server-uri + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-server-uri'] = undefined; +/** + * User configuration permission + * @member {String} rabbitmq-user-conf-permission + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-conf-permission'] = undefined; +/** + * User read permission + * @member {String} rabbitmq-user-read-permission + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-read-permission'] = undefined; +/** + * User Tags + * @member {String} rabbitmq-user-tags + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-tags'] = undefined; +/** + * User Virtual Host + * @member {String} rabbitmq-user-vhost + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-vhost'] = undefined; +/** + * User write permission + * @member {String} rabbitmq-user-write-permission + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-write-permission'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateRabbitMq.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateRabbitMq.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -AssocRoleAuthMethod.prototype['token'] = undefined; +DynamicSecretCreateRabbitMq.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -AssocRoleAuthMethod.prototype['uid-token'] = undefined; -var _default = AssocRoleAuthMethod; +DynamicSecretCreateRabbitMq.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateRabbitMq.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateRabbitMq; exports["default"] = _default; /***/ }), -/***/ 64338: +/***/ 84556: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -22202,7 +94828,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -22213,22 +94839,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AssocTargetItem model module. - * @module model/AssocTargetItem - * @version 3.3.16 + * The DynamicSecretCreateRdp model module. + * @module model/DynamicSecretCreateRdp + * @version 3.6.3 */ -var AssocTargetItem = /*#__PURE__*/function () { +var DynamicSecretCreateRdp = /*#__PURE__*/function () { /** - * Constructs a new AssocTargetItem. - * assocTargetItem is a command that creates an association between target and item. - * @alias module:model/AssocTargetItem - * @param name {String} The item to associate - * @param targetName {String} The target to associate + * Constructs a new DynamicSecretCreateRdp. + * dynamicSecretCreateRdp is a command that creates rdp dynamic secret + * @alias module:model/DynamicSecretCreateRdp + * @param name {String} Dynamic secret name */ - function AssocTargetItem(name, targetName) { - _classCallCheck(this, AssocTargetItem); + function DynamicSecretCreateRdp(name) { + _classCallCheck(this, DynamicSecretCreateRdp); - AssocTargetItem.initialize(this, name, targetName); + DynamicSecretCreateRdp.initialize(this, name); } /** * Initializes the fields of this object. @@ -22237,76 +94862,107 @@ var AssocTargetItem = /*#__PURE__*/function () { */ - _createClass(AssocTargetItem, null, [{ + _createClass(DynamicSecretCreateRdp, null, [{ key: "initialize", - value: function initialize(obj, name, targetName) { + value: function initialize(obj, name) { obj['name'] = name; - obj['target-name'] = targetName; } /** - * Constructs a AssocTargetItem from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateRdp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AssocTargetItem} obj Optional instance to populate. - * @return {module:model/AssocTargetItem} The populated AssocTargetItem instance. + * @param {module:model/DynamicSecretCreateRdp} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRdp} The populated DynamicSecretCreateRdp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AssocTargetItem(); + obj = obj || new DynamicSecretCreateRdp(); - if (data.hasOwnProperty('disable-previous-key-version')) { - obj['disable-previous-key-version'] = _ApiClient["default"].convertToType(data['disable-previous-key-version'], 'Boolean'); + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key-operations')) { - obj['key-operations'] = _ApiClient["default"].convertToType(data['key-operations'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('keyring-name')) { - obj['keyring-name'] = _ApiClient["default"].convertToType(data['keyring-name'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('kms-algorithm')) { - obj['kms-algorithm'] = _ApiClient["default"].convertToType(data['kms-algorithm'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('location-id')) { - obj['location-id'] = _ApiClient["default"].convertToType(data['location-id'], 'String'); + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); } - if (data.hasOwnProperty('multi-region')) { - obj['multi-region'] = _ApiClient["default"].convertToType(data['multi-region'], 'String'); + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); } - if (data.hasOwnProperty('project-id')) { - obj['project-id'] = _ApiClient["default"].convertToType(data['project-id'], 'String'); + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); } - if (data.hasOwnProperty('purpose')) { - obj['purpose'] = _ApiClient["default"].convertToType(data['purpose'], 'String'); + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); } - if (data.hasOwnProperty('regions')) { - obj['regions'] = _ApiClient["default"].convertToType(data['regions'], ['String']); + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('tenant-secret-type')) { - obj['tenant-secret-type'] = _ApiClient["default"].convertToType(data['tenant-secret-type'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -22317,8 +94973,12 @@ var AssocTargetItem = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('vault-name')) { - obj['vault-name'] = _ApiClient["default"].convertToType(data['vault-name'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); } } @@ -22326,114 +94986,170 @@ var AssocTargetItem = /*#__PURE__*/function () { } }]); - return AssocTargetItem; + return DynamicSecretCreateRdp; }(); /** - * Automatically disable previous key version (required for azure targets) - * @member {Boolean} disable-previous-key-version - * @default false + * AllowUserExtendSession + * @member {Number} allow-user-extend-session */ -AssocTargetItem.prototype['disable-previous-key-version'] = false; +DynamicSecretCreateRdp.prototype['allow-user-extend-session'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateRdp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateRdp.prototype['description'] = undefined; +/** + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' + */ + +DynamicSecretCreateRdp.prototype['fixed-user-only'] = 'false'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -AssocTargetItem.prototype['json'] = false; +DynamicSecretCreateRdp.prototype['json'] = false; /** - * A list of allowed operations for the key (required for azure targets) - * @member {Array.} key-operations + * Dynamic secret name + * @member {String} name */ -AssocTargetItem.prototype['key-operations'] = undefined; +DynamicSecretCreateRdp.prototype['name'] = undefined; /** - * Keyring name of the GCP KMS (required for gcp targets) - * @member {String} keyring-name + * The length of the password to be generated + * @member {String} password-length */ -AssocTargetItem.prototype['keyring-name'] = undefined; +DynamicSecretCreateRdp.prototype['password-length'] = undefined; /** - * Algorithm of the key in GCP KMS (required for gcp targets) - * @member {String} kms-algorithm + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -AssocTargetItem.prototype['kms-algorithm'] = undefined; +DynamicSecretCreateRdp.prototype['producer-encryption-key-name'] = undefined; /** - * Location id of the GCP KMS (required for gcp targets) - * @member {String} location-id + * RDP Admin Name + * @member {String} rdp-admin-name */ -AssocTargetItem.prototype['location-id'] = undefined; +DynamicSecretCreateRdp.prototype['rdp-admin-name'] = undefined; /** - * Set to 'true' to create a multi-region managed key. (Relevant only for Classic Key AWS targets) - * @member {String} multi-region - * @default 'false' + * RDP Admin password + * @member {String} rdp-admin-pwd */ -AssocTargetItem.prototype['multi-region'] = 'false'; +DynamicSecretCreateRdp.prototype['rdp-admin-pwd'] = undefined; /** - * The item to associate - * @member {String} name + * Hostname + * @member {String} rdp-host-name */ -AssocTargetItem.prototype['name'] = undefined; +DynamicSecretCreateRdp.prototype['rdp-host-name'] = undefined; /** - * Project id of the GCP KMS (required for gcp targets) - * @member {String} project-id + * Port + * @member {String} rdp-host-port + * @default '22' */ -AssocTargetItem.prototype['project-id'] = undefined; +DynamicSecretCreateRdp.prototype['rdp-host-port'] = '22'; /** - * Purpose of the key in GCP KMS (required for gcp targets) - * @member {String} purpose + * Groups + * @member {String} rdp-user-groups */ -AssocTargetItem.prototype['purpose'] = undefined; +DynamicSecretCreateRdp.prototype['rdp-user-groups'] = undefined; /** - * The list of regions to create a copy of the key in (relevant for aws targets) - * @member {Array.} regions + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false */ -AssocTargetItem.prototype['regions'] = undefined; +DynamicSecretCreateRdp.prototype['secure-access-allow-external-user'] = false; /** - * The target to associate - * @member {String} target-name + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -AssocTargetItem.prototype['target-name'] = undefined; +DynamicSecretCreateRdp.prototype['secure-access-enable'] = undefined; /** - * The tenant secret type [Data/SearchIndex/Analytics] (required for salesforce targets) - * @member {String} tenant-secret-type + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ -AssocTargetItem.prototype['tenant-secret-type'] = undefined; +DynamicSecretCreateRdp.prototype['secure-access-host'] = undefined; +/** + * RD Gateway server + * @member {String} secure-access-rd-gateway-server + */ + +DynamicSecretCreateRdp.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain + */ + +DynamicSecretCreateRdp.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +DynamicSecretCreateRdp.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateRdp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateRdp.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -AssocTargetItem.prototype['token'] = undefined; +DynamicSecretCreateRdp.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -AssocTargetItem.prototype['uid-token'] = undefined; +DynamicSecretCreateRdp.prototype['uid-token'] = undefined; /** - * Name of the vault used (required for azure targets) - * @member {String} vault-name + * User TTL + * @member {String} user-ttl + * @default '60m' */ -AssocTargetItem.prototype['vault-name'] = undefined; -var _default = AssocTargetItem; +DynamicSecretCreateRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ + +DynamicSecretCreateRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = DynamicSecretCreateRdp; exports["default"] = _default; /***/ }), -/***/ 83895: +/***/ 26937: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -22444,7 +95160,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -22455,20 +95171,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AttributeTypeAndValue model module. - * @module model/AttributeTypeAndValue - * @version 3.3.16 + * The DynamicSecretCreateRedis model module. + * @module model/DynamicSecretCreateRedis + * @version 3.6.3 */ -var AttributeTypeAndValue = /*#__PURE__*/function () { +var DynamicSecretCreateRedis = /*#__PURE__*/function () { /** - * Constructs a new AttributeTypeAndValue. - * AttributeTypeAndValue mirrors the ASN.1 structure of the same name in RFC 5280, Section 4.1.2.4. - * @alias module:model/AttributeTypeAndValue + * Constructs a new DynamicSecretCreateRedis. + * dynamicSecretCreateRedis is a command that creates Redis dynamic secret + * @alias module:model/DynamicSecretCreateRedis + * @param name {String} Dynamic secret name */ - function AttributeTypeAndValue() { - _classCallCheck(this, AttributeTypeAndValue); + function DynamicSecretCreateRedis(name) { + _classCallCheck(this, DynamicSecretCreateRedis); - AttributeTypeAndValue.initialize(this); + DynamicSecretCreateRedis.initialize(this, name); } /** * Initializes the fields of this object. @@ -22477,29 +95194,95 @@ var AttributeTypeAndValue = /*#__PURE__*/function () { */ - _createClass(AttributeTypeAndValue, null, [{ + _createClass(DynamicSecretCreateRedis, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AttributeTypeAndValue from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateRedis from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AttributeTypeAndValue} obj Optional instance to populate. - * @return {module:model/AttributeTypeAndValue} The populated AttributeTypeAndValue instance. + * @param {module:model/DynamicSecretCreateRedis} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRedis} The populated DynamicSecretCreateRedis instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AttributeTypeAndValue(); + obj = obj || new DynamicSecretCreateRedis(); - if (data.hasOwnProperty('Type')) { - obj['Type'] = _ApiClient["default"].convertToType(data['Type'], ['Number']); + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); } - if (data.hasOwnProperty('Value')) { - obj['Value'] = _ApiClient["default"].convertToType(data['Value'], Object); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } @@ -22507,25 +95290,128 @@ var AttributeTypeAndValue = /*#__PURE__*/function () { } }]); - return AttributeTypeAndValue; + return DynamicSecretCreateRedis; }(); /** - * @member {Array.} Type + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules */ -AttributeTypeAndValue.prototype['Type'] = undefined; +DynamicSecretCreateRedis.prototype['acl-rules'] = undefined; /** - * @member {Object} Value + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AttributeTypeAndValue.prototype['Value'] = undefined; -var _default = AttributeTypeAndValue; +DynamicSecretCreateRedis.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateRedis.prototype['description'] = undefined; +/** + * Redis Host + * @member {String} host + * @default '127.0.0.1' + */ + +DynamicSecretCreateRedis.prototype['host'] = '127.0.0.1'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateRedis.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateRedis.prototype['name'] = undefined; +/** + * Redis Password + * @member {String} password + */ + +DynamicSecretCreateRedis.prototype['password'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateRedis.prototype['password-length'] = undefined; +/** + * Redis Port + * @member {String} port + * @default '6379' + */ + +DynamicSecretCreateRedis.prototype['port'] = '6379'; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateRedis.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretCreateRedis.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +DynamicSecretCreateRedis.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateRedis.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateRedis.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateRedis.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +DynamicSecretCreateRedis.prototype['username'] = undefined; +var _default = DynamicSecretCreateRedis; exports["default"] = _default; /***/ }), -/***/ 66499: +/***/ 13453: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -22536,7 +95422,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -22547,19 +95433,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Auth model module. - * @module model/Auth - * @version 3.3.16 + * The DynamicSecretCreateRedshift model module. + * @module model/DynamicSecretCreateRedshift + * @version 3.6.3 */ -var Auth = /*#__PURE__*/function () { +var DynamicSecretCreateRedshift = /*#__PURE__*/function () { /** - * Constructs a new Auth. - * @alias module:model/Auth + * Constructs a new DynamicSecretCreateRedshift. + * dynamicSecretCreateRedshift is a command that creates redshift dynamic secret + * @alias module:model/DynamicSecretCreateRedshift + * @param name {String} Dynamic secret name */ - function Auth() { - _classCallCheck(this, Auth); + function DynamicSecretCreateRedshift(name) { + _classCallCheck(this, DynamicSecretCreateRedshift); - Auth.initialize(this); + DynamicSecretCreateRedshift.initialize(this, name); } /** * Initializes the fields of this object. @@ -22568,97 +95456,103 @@ var Auth = /*#__PURE__*/function () { */ - _createClass(Auth, null, [{ + _createClass(DynamicSecretCreateRedshift, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a Auth from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateRedshift from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Auth} obj Optional instance to populate. - * @return {module:model/Auth} The populated Auth instance. + * @param {module:model/DynamicSecretCreateRedshift} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRedshift} The populated DynamicSecretCreateRedshift instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Auth(); + obj = obj || new DynamicSecretCreateRedshift(); - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); } - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('access-type')) { - obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('account-id')) { - obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('admin-email')) { - obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('admin-password')) { - obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); } - if (data.hasOwnProperty('cert-data')) { - obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); } - if (data.hasOwnProperty('cloud-id')) { - obj['cloud-id'] = _ApiClient["default"].convertToType(data['cloud-id'], 'String'); + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); } - if (data.hasOwnProperty('debug')) { - obj['debug'] = _ApiClient["default"].convertToType(data['debug'], 'Boolean'); + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); } - if (data.hasOwnProperty('gateway-url')) { - obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); } - if (data.hasOwnProperty('gcp-audience')) { - obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('jwt')) { - obj['jwt'] = _ApiClient["default"].convertToType(data['jwt'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('k8s-auth-config-name')) { - obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('k8s-service-account-token')) { - obj['k8s-service-account-token'] = _ApiClient["default"].convertToType(data['k8s-service-account-token'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('ldap_password')) { - obj['ldap_password'] = _ApiClient["default"].convertToType(data['ldap_password'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('ldap_username')) { - obj['ldap_username'] = _ApiClient["default"].convertToType(data['ldap_username'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('uid_token')) { - obj['uid_token'] = _ApiClient["default"].convertToType(data['uid_token'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -22666,131 +95560,140 @@ var Auth = /*#__PURE__*/function () { } }]); - return Auth; + return DynamicSecretCreateRedshift; }(); /** - * Access ID - * @member {String} access-id + * Redshift Creation statements + * @member {String} creation-statements */ -Auth.prototype['access-id'] = undefined; +DynamicSecretCreateRedshift.prototype['creation-statements'] = undefined; /** - * Access key (relevant only for access-type=access_key) - * @member {String} access-key + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -Auth.prototype['access-key'] = undefined; +DynamicSecretCreateRedshift.prototype['delete_protection'] = undefined; /** - * Access Type (access_key/password/saml/ldap/k8s/azure_ad/oidc/aws_iam/universal_identity/jwt/gcp/cert) - * @member {String} access-type - * @default 'access_key' + * Description of the object + * @member {String} description */ -Auth.prototype['access-type'] = 'access_key'; +DynamicSecretCreateRedshift.prototype['description'] = undefined; /** - * Account id (relevant only for access-type=password where the email address is associated with more than one account) - * @member {String} account-id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Auth.prototype['account-id'] = undefined; +DynamicSecretCreateRedshift.prototype['json'] = false; /** - * Email (relevant only for access-type=password) - * @member {String} admin-email + * Dynamic secret name + * @member {String} name */ -Auth.prototype['admin-email'] = undefined; +DynamicSecretCreateRedshift.prototype['name'] = undefined; /** - * Password (relevant only for access-type=password) - * @member {String} admin-password + * The length of the password to be generated + * @member {String} password-length */ -Auth.prototype['admin-password'] = undefined; +DynamicSecretCreateRedshift.prototype['password-length'] = undefined; /** - * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert) - * @member {String} cert-data + * Dynamic producer encryption key + * @member {String} producer-encryption-key */ -Auth.prototype['cert-data'] = undefined; +DynamicSecretCreateRedshift.prototype['producer-encryption-key'] = undefined; /** - * The cloud identity (relevant only for access-type=azure_ad,aws_iam,gcp) - * @member {String} cloud-id + * Redshift DB Name + * @member {String} redshift-db-name */ -Auth.prototype['cloud-id'] = undefined; +DynamicSecretCreateRedshift.prototype['redshift-db-name'] = undefined; /** - * @member {Boolean} debug + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' */ -Auth.prototype['debug'] = undefined; +DynamicSecretCreateRedshift.prototype['redshift-host'] = '127.0.0.1'; /** - * Gateway URL for the K8S authenticated (relevant only for access-type=k8s) - * @member {String} gateway-url + * Redshift Password + * @member {String} redshift-password */ -Auth.prototype['gateway-url'] = undefined; +DynamicSecretCreateRedshift.prototype['redshift-password'] = undefined; /** - * GCP JWT audience - * @member {String} gcp-audience - * @default 'akeyless.io' + * Redshift Port + * @member {String} redshift-port + * @default '5439' */ -Auth.prototype['gcp-audience'] = 'akeyless.io'; +DynamicSecretCreateRedshift.prototype['redshift-port'] = '5439'; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Redshift Username + * @member {String} redshift-username */ -Auth.prototype['json'] = false; +DynamicSecretCreateRedshift.prototype['redshift-username'] = undefined; /** - * The Json Web Token (relevant only for access-type=jwt/oidc) - * @member {String} jwt + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -Auth.prototype['jwt'] = undefined; +DynamicSecretCreateRedshift.prototype['secure-access-enable'] = undefined; /** - * The K8S Auth config name (relevant only for access-type=k8s) - * @member {String} k8s-auth-config-name + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -Auth.prototype['k8s-auth-config-name'] = undefined; +DynamicSecretCreateRedshift.prototype['secure-access-host'] = undefined; /** - * The K8S service account token. (relevant only for access-type=k8s) - * @member {String} k8s-service-account-token + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false */ -Auth.prototype['k8s-service-account-token'] = undefined; +DynamicSecretCreateRedshift.prototype['ssl'] = false; /** - * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert) - * @member {String} key-data + * Add tags attached to this object + * @member {Array.} tags */ -Auth.prototype['key-data'] = undefined; +DynamicSecretCreateRedshift.prototype['tags'] = undefined; /** - * LDAP password (relevant only for access-type=ldap) - * @member {String} ldap_password + * Target name + * @member {String} target-name */ -Auth.prototype['ldap_password'] = undefined; +DynamicSecretCreateRedshift.prototype['target-name'] = undefined; /** - * LDAP username (relevant only for access-type=ldap) - * @member {String} ldap_username + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Auth.prototype['ldap_username'] = undefined; +DynamicSecretCreateRedshift.prototype['token'] = undefined; /** - * The universal_identity token (relevant only for access-type=universal_identity) - * @member {String} uid_token + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Auth.prototype['uid_token'] = undefined; -var _default = Auth; +DynamicSecretCreateRedshift.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateRedshift.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateRedshift; exports["default"] = _default; /***/ }), -/***/ 43874: +/***/ 30490: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -22801,11 +95704,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(68623)); - -var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(80866)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -22816,19 +95715,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AuthMethod model module. - * @module model/AuthMethod - * @version 3.3.16 + * The DynamicSecretCreateSnowflake model module. + * @module model/DynamicSecretCreateSnowflake + * @version 3.6.3 */ -var AuthMethod = /*#__PURE__*/function () { +var DynamicSecretCreateSnowflake = /*#__PURE__*/function () { /** - * Constructs a new AuthMethod. - * @alias module:model/AuthMethod + * Constructs a new DynamicSecretCreateSnowflake. + * GatewayCreateProducerSnowflakeCmd is a command that creates a Snowflake dynamic secret + * @alias module:model/DynamicSecretCreateSnowflake + * @param name {String} Dynamic secret name */ - function AuthMethod() { - _classCallCheck(this, AuthMethod); + function DynamicSecretCreateSnowflake(name) { + _classCallCheck(this, DynamicSecretCreateSnowflake); - AuthMethod.initialize(this); + DynamicSecretCreateSnowflake.initialize(this, name); } /** * Initializes the fields of this object. @@ -22837,65 +95738,95 @@ var AuthMethod = /*#__PURE__*/function () { */ - _createClass(AuthMethod, null, [{ + _createClass(DynamicSecretCreateSnowflake, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AuthMethod from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateSnowflake from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthMethod} obj Optional instance to populate. - * @return {module:model/AuthMethod} The populated AuthMethod instance. + * @param {module:model/DynamicSecretCreateSnowflake} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateSnowflake} The populated DynamicSecretCreateSnowflake instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AuthMethod(); + obj = obj || new DynamicSecretCreateSnowflake(); - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); } - if (data.hasOwnProperty('access_info')) { - obj['access_info'] = _AuthMethodAccessInfo["default"].constructFromObject(data['access_info']); + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); } - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); } - if (data.hasOwnProperty('associated_gw_ids')) { - obj['associated_gw_ids'] = _ApiClient["default"].convertToType(data['associated_gw_ids'], ['Number']); + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); } - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('auth_method_roles_assoc')) { - obj['auth_method_roles_assoc'] = _ApiClient["default"].convertToType(data['auth_method_roles_assoc'], [_AuthMethodRoleAssociation["default"]]); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('is_approved')) { - obj['is_approved'] = _ApiClient["default"].convertToType(data['is_approved'], 'Boolean'); + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); } - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + } + + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); } } @@ -22903,70 +95834,125 @@ var AuthMethod = /*#__PURE__*/function () { } }]); - return AuthMethod; + return DynamicSecretCreateSnowflake; }(); /** - * @member {Date} access_date + * Account name + * @member {String} account */ -AuthMethod.prototype['access_date'] = undefined; +DynamicSecretCreateSnowflake.prototype['account'] = undefined; /** - * @member {module:model/AuthMethodAccessInfo} access_info + * Database Password + * @member {String} account-password */ -AuthMethod.prototype['access_info'] = undefined; +DynamicSecretCreateSnowflake.prototype['account-password'] = undefined; /** - * @member {String} account_id + * Database Username + * @member {String} account-username */ -AuthMethod.prototype['account_id'] = undefined; +DynamicSecretCreateSnowflake.prototype['account-username'] = undefined; /** - * @member {Array.} associated_gw_ids + * Database name + * @member {String} db-name */ -AuthMethod.prototype['associated_gw_ids'] = undefined; +DynamicSecretCreateSnowflake.prototype['db-name'] = undefined; /** - * @member {String} auth_method_access_id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AuthMethod.prototype['auth_method_access_id'] = undefined; +DynamicSecretCreateSnowflake.prototype['delete_protection'] = undefined; /** - * @member {String} auth_method_name + * Description of the object + * @member {String} description */ -AuthMethod.prototype['auth_method_name'] = undefined; +DynamicSecretCreateSnowflake.prototype['description'] = undefined; /** - * @member {Array.} auth_method_roles_assoc + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AuthMethod.prototype['auth_method_roles_assoc'] = undefined; +DynamicSecretCreateSnowflake.prototype['json'] = false; /** - * @member {Array.} client_permissions + * Dynamic secret name + * @member {String} name */ -AuthMethod.prototype['client_permissions'] = undefined; +DynamicSecretCreateSnowflake.prototype['name'] = undefined; /** - * @member {Date} creation_date + * The length of the password to be generated + * @member {String} password-length */ -AuthMethod.prototype['creation_date'] = undefined; +DynamicSecretCreateSnowflake.prototype['password-length'] = undefined; /** - * @member {Boolean} is_approved + * RSA Private key (base64 encoded) + * @member {String} private-key */ -AuthMethod.prototype['is_approved'] = undefined; +DynamicSecretCreateSnowflake.prototype['private-key'] = undefined; /** - * @member {Date} modification_date + * The Private key passphrase + * @member {String} private-key-passphrase */ -AuthMethod.prototype['modification_date'] = undefined; -var _default = AuthMethod; +DynamicSecretCreateSnowflake.prototype['private-key-passphrase'] = undefined; +/** + * User role + * @member {String} role + */ + +DynamicSecretCreateSnowflake.prototype['role'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateSnowflake.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateSnowflake.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateSnowflake.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '24h' + */ + +DynamicSecretCreateSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ + +DynamicSecretCreateSnowflake.prototype['warehouse'] = undefined; +var _default = DynamicSecretCreateSnowflake; exports["default"] = _default; /***/ }), -/***/ 68623: +/***/ 77253: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -22977,33 +95963,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(74119)); - -var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(54294)); - -var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(62843)); - -var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(62934)); - -var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(42063)); - -var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(68968)); - -var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(10366)); - -var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(24697)); - -var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(29438)); - -var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(69277)); - -var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(98049)); - -var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(35813)); - -var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(26285)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -23014,19 +95974,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AuthMethodAccessInfo model module. - * @module model/AuthMethodAccessInfo - * @version 3.3.16 + * The DynamicSecretCreateVenafi model module. + * @module model/DynamicSecretCreateVenafi + * @version 3.6.3 */ -var AuthMethodAccessInfo = /*#__PURE__*/function () { +var DynamicSecretCreateVenafi = /*#__PURE__*/function () { /** - * Constructs a new AuthMethodAccessInfo. - * @alias module:model/AuthMethodAccessInfo + * Constructs a new DynamicSecretCreateVenafi. + * dynamicSecretCreateVenafi is a command that creates a Venafi dynamic secret to dynamically create certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi + * @alias module:model/DynamicSecretCreateVenafi + * @param name {String} Dynamic secret name */ - function AuthMethodAccessInfo() { - _classCallCheck(this, AuthMethodAccessInfo); + function DynamicSecretCreateVenafi(name) { + _classCallCheck(this, DynamicSecretCreateVenafi); - AuthMethodAccessInfo.initialize(this); + DynamicSecretCreateVenafi.initialize(this, name); } /** * Initializes the fields of this object. @@ -23035,101 +95997,127 @@ var AuthMethodAccessInfo = /*#__PURE__*/function () { */ - _createClass(AuthMethodAccessInfo, null, [{ + _createClass(DynamicSecretCreateVenafi, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AuthMethodAccessInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretCreateVenafi from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthMethodAccessInfo} obj Optional instance to populate. - * @return {module:model/AuthMethodAccessInfo} The populated AuthMethodAccessInfo instance. + * @param {module:model/DynamicSecretCreateVenafi} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateVenafi} The populated DynamicSecretCreateVenafi instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AuthMethodAccessInfo(); + obj = obj || new DynamicSecretCreateVenafi(); - if (data.hasOwnProperty('access_expires')) { - obj['access_expires'] = _ApiClient["default"].convertToType(data['access_expires'], 'Number'); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); } - if (data.hasOwnProperty('access_id_alias')) { - obj['access_id_alias'] = _ApiClient["default"].convertToType(data['access_id_alias'], 'String'); + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); } - if (data.hasOwnProperty('api_key_access_rules')) { - obj['api_key_access_rules'] = _APIKeyAccessRules["default"].constructFromObject(data['api_key_access_rules']); + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); } - if (data.hasOwnProperty('aws_iam_access_rules')) { - obj['aws_iam_access_rules'] = _AWSIAMAccessRules["default"].constructFromObject(data['aws_iam_access_rules']); + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); } - if (data.hasOwnProperty('azure_ad_access_rules')) { - obj['azure_ad_access_rules'] = _AzureADAccessRules["default"].constructFromObject(data['azure_ad_access_rules']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('cert_access_rules')) { - obj['cert_access_rules'] = _CertAccessRules["default"].constructFromObject(data['cert_access_rules']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('cidr_whitelist')) { - obj['cidr_whitelist'] = _ApiClient["default"].convertToType(data['cidr_whitelist'], 'String'); + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); } - if (data.hasOwnProperty('email_pass_access_rules')) { - obj['email_pass_access_rules'] = _EmailPassAccessRules["default"].constructFromObject(data['email_pass_access_rules']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('force_sub_claims')) { - obj['force_sub_claims'] = _ApiClient["default"].convertToType(data['force_sub_claims'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('gcp_access_rules')) { - obj['gcp_access_rules'] = _GCPAccessRules["default"].constructFromObject(data['gcp_access_rules']); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('gw_cidr_whitelist')) { - obj['gw_cidr_whitelist'] = _ApiClient["default"].convertToType(data['gw_cidr_whitelist'], 'String'); + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); } - if (data.hasOwnProperty('huawei_access_rules')) { - obj['huawei_access_rules'] = _HuaweiAccessRules["default"].constructFromObject(data['huawei_access_rules']); + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); } - if (data.hasOwnProperty('jwt_ttl')) { - obj['jwt_ttl'] = _ApiClient["default"].convertToType(data['jwt_ttl'], 'Number'); + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); } - if (data.hasOwnProperty('k8s_access_rules')) { - obj['k8s_access_rules'] = _KubernetesAccessRules["default"].constructFromObject(data['k8s_access_rules']); + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); } - if (data.hasOwnProperty('ldap_access_rules')) { - obj['ldap_access_rules'] = _LDAPAccessRules["default"].constructFromObject(data['ldap_access_rules']); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('oauth2_access_rules')) { - obj['oauth2_access_rules'] = _OAuth2AccessRules["default"].constructFromObject(data['oauth2_access_rules']); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('oidc_access_rules')) { - obj['oidc_access_rules'] = _OIDCAccessRules["default"].constructFromObject(data['oidc_access_rules']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('rules_type')) { - obj['rules_type'] = _ApiClient["default"].convertToType(data['rules_type'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('saml_access_rules')) { - obj['saml_access_rules'] = _SAMLAccessRules["default"].constructFromObject(data['saml_access_rules']); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } - if (data.hasOwnProperty('universal_identity_access_rules')) { - obj['universal_identity_access_rules'] = _UniversalIdentityAccessRules["default"].constructFromObject(data['universal_identity_access_rules']); + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); + } + + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); + } + + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); + } + + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); } } @@ -23137,117 +96125,176 @@ var AuthMethodAccessInfo = /*#__PURE__*/function () { } }]); - return AuthMethodAccessInfo; + return DynamicSecretCreateVenafi; }(); /** - * @member {Number} access_expires + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 */ -AuthMethodAccessInfo.prototype['access_expires'] = undefined; +DynamicSecretCreateVenafi.prototype['admin-rotation-interval-days'] = 0; /** - * for accounts where AccessId holds encrypted email this field will hold generated AccessId, for accounts based on regular AccessId it will be equal to accessId itself - * @member {String} access_id_alias + * Allow subdomains + * @member {Boolean} allow-subdomains */ -AuthMethodAccessInfo.prototype['access_id_alias'] = undefined; +DynamicSecretCreateVenafi.prototype['allow-subdomains'] = undefined; /** - * @member {module:model/APIKeyAccessRules} api_key_access_rules + * Allowed domains + * @member {Array.} allowed-domains */ -AuthMethodAccessInfo.prototype['api_key_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['allowed-domains'] = undefined; /** - * @member {module:model/AWSIAMAccessRules} aws_iam_access_rules + * Auto generated folder + * @member {String} auto-generated-folder */ -AuthMethodAccessInfo.prototype['aws_iam_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['auto-generated-folder'] = undefined; /** - * @member {module:model/AzureADAccessRules} azure_ad_access_rules + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -AuthMethodAccessInfo.prototype['azure_ad_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['delete_protection'] = undefined; /** - * @member {module:model/CertAccessRules} cert_access_rules + * Description of the object + * @member {String} description */ -AuthMethodAccessInfo.prototype['cert_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['description'] = undefined; /** - * @member {String} cidr_whitelist + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false */ -AuthMethodAccessInfo.prototype['cidr_whitelist'] = undefined; +DynamicSecretCreateVenafi.prototype['enable-admin-rotation'] = false; /** - * @member {module:model/EmailPassAccessRules} email_pass_access_rules + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AuthMethodAccessInfo.prototype['email_pass_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['json'] = false; /** - * if true the role associated with this auth method must include sub claims - * @member {Boolean} force_sub_claims + * Dynamic secret name + * @member {String} name */ -AuthMethodAccessInfo.prototype['force_sub_claims'] = undefined; +DynamicSecretCreateVenafi.prototype['name'] = undefined; /** - * @member {module:model/GCPAccessRules} gcp_access_rules + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -AuthMethodAccessInfo.prototype['gcp_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} gw_cidr_whitelist + * Root first in chain + * @member {Boolean} root-first-in-chain */ -AuthMethodAccessInfo.prototype['gw_cidr_whitelist'] = undefined; +DynamicSecretCreateVenafi.prototype['root-first-in-chain'] = undefined; /** - * @member {module:model/HuaweiAccessRules} huawei_access_rules + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki */ -AuthMethodAccessInfo.prototype['huawei_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['sign-using-akeyless-pki'] = undefined; /** - * @member {Number} jwt_ttl + * Signer key name + * @member {String} signer-key-name */ -AuthMethodAccessInfo.prototype['jwt_ttl'] = undefined; +DynamicSecretCreateVenafi.prototype['signer-key-name'] = undefined; /** - * @member {module:model/KubernetesAccessRules} k8s_access_rules + * Store private key + * @member {Boolean} store-private-key */ -AuthMethodAccessInfo.prototype['k8s_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['store-private-key'] = undefined; /** - * @member {module:model/LDAPAccessRules} ldap_access_rules + * Add tags attached to this object + * @member {Array.} tags */ -AuthMethodAccessInfo.prototype['ldap_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['tags'] = undefined; /** - * @member {module:model/OAuth2AccessRules} oauth2_access_rules + * Target name + * @member {String} target-name */ -AuthMethodAccessInfo.prototype['oauth2_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['target-name'] = undefined; /** - * @member {module:model/OIDCAccessRules} oidc_access_rules + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -AuthMethodAccessInfo.prototype['oidc_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['token'] = undefined; /** - * @member {String} rules_type + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -AuthMethodAccessInfo.prototype['rules_type'] = undefined; +DynamicSecretCreateVenafi.prototype['uid-token'] = undefined; /** - * @member {module:model/SAMLAccessRules} saml_access_rules + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' */ -AuthMethodAccessInfo.prototype['saml_access_rules'] = undefined; +DynamicSecretCreateVenafi.prototype['user-ttl'] = '2160h'; /** - * @member {module:model/UniversalIdentityAccessRules} universal_identity_access_rules + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token */ -AuthMethodAccessInfo.prototype['universal_identity_access_rules'] = undefined; -var _default = AuthMethodAccessInfo; +DynamicSecretCreateVenafi.prototype['venafi-access-token'] = undefined; +/** + * Venafi API key + * @member {String} venafi-api-key + */ + +DynamicSecretCreateVenafi.prototype['venafi-api-key'] = undefined; +/** + * Venafi Baseurl + * @member {String} venafi-baseurl + */ + +DynamicSecretCreateVenafi.prototype['venafi-baseurl'] = undefined; +/** + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' + */ + +DynamicSecretCreateVenafi.prototype['venafi-client-id'] = 'akeyless'; +/** + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token + */ + +DynamicSecretCreateVenafi.prototype['venafi-refresh-token'] = undefined; +/** + * Venafi using TPP + * @member {Boolean} venafi-use-tpp + */ + +DynamicSecretCreateVenafi.prototype['venafi-use-tpp'] = undefined; +/** + * Venafi Zone + * @member {String} venafi-zone + */ + +DynamicSecretCreateVenafi.prototype['venafi-zone'] = undefined; +var _default = DynamicSecretCreateVenafi; exports["default"] = _default; /***/ }), -/***/ 80866: +/***/ 32743: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -23258,9 +96305,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Rules = _interopRequireDefault(__nccwpck_require__(53284)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -23271,20 +96316,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AuthMethodRoleAssociation model module. - * @module model/AuthMethodRoleAssociation - * @version 3.3.16 + * The DynamicSecretDelete model module. + * @module model/DynamicSecretDelete + * @version 3.6.3 */ -var AuthMethodRoleAssociation = /*#__PURE__*/function () { +var DynamicSecretDelete = /*#__PURE__*/function () { /** - * Constructs a new AuthMethodRoleAssociation. - * AuthMethodRoleAssociation includes details of an association between an auth method and a role. - * @alias module:model/AuthMethodRoleAssociation + * Constructs a new DynamicSecretDelete. + * dynamicSecretDelete is a command that deletes dynamic secret + * @alias module:model/DynamicSecretDelete + * @param name {String} Dynamic secret name */ - function AuthMethodRoleAssociation() { - _classCallCheck(this, AuthMethodRoleAssociation); + function DynamicSecretDelete(name) { + _classCallCheck(this, DynamicSecretDelete); - AuthMethodRoleAssociation.initialize(this); + DynamicSecretDelete.initialize(this, name); } /** * Initializes the fields of this object. @@ -23293,47 +96339,39 @@ var AuthMethodRoleAssociation = /*#__PURE__*/function () { */ - _createClass(AuthMethodRoleAssociation, null, [{ + _createClass(DynamicSecretDelete, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AuthMethodRoleAssociation from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretDelete from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthMethodRoleAssociation} obj Optional instance to populate. - * @return {module:model/AuthMethodRoleAssociation} The populated AuthMethodRoleAssociation instance. + * @param {module:model/DynamicSecretDelete} obj Optional instance to populate. + * @return {module:model/DynamicSecretDelete} The populated DynamicSecretDelete instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AuthMethodRoleAssociation(); - - if (data.hasOwnProperty('allowed_ops')) { - obj['allowed_ops'] = _ApiClient["default"].convertToType(data['allowed_ops'], ['String']); - } - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } + obj = obj || new DynamicSecretDelete(); - if (data.hasOwnProperty('auth_method_sub_claims')) { - obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('is_sub_claims_case_sensitive')) { - obj['is_sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['is_sub_claims_case_sensitive'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('rules')) { - obj['rules'] = _Rules["default"].constructFromObject(data['rules']); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -23341,45 +96379,40 @@ var AuthMethodRoleAssociation = /*#__PURE__*/function () { } }]); - return AuthMethodRoleAssociation; + return DynamicSecretDelete; }(); /** - * @member {Array.} allowed_ops - */ - - -AuthMethodRoleAssociation.prototype['allowed_ops'] = undefined; -/** - * @member {String} assoc_id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AuthMethodRoleAssociation.prototype['assoc_id'] = undefined; -/** - * @member {Object.>} auth_method_sub_claims - */ -AuthMethodRoleAssociation.prototype['auth_method_sub_claims'] = undefined; +DynamicSecretDelete.prototype['json'] = false; /** - * @member {Boolean} is_sub_claims_case_sensitive + * Dynamic secret name + * @member {String} name */ -AuthMethodRoleAssociation.prototype['is_sub_claims_case_sensitive'] = undefined; +DynamicSecretDelete.prototype['name'] = undefined; /** - * @member {String} role_name + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -AuthMethodRoleAssociation.prototype['role_name'] = undefined; +DynamicSecretDelete.prototype['token'] = undefined; /** - * @member {module:model/Rules} rules + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -AuthMethodRoleAssociation.prototype['rules'] = undefined; -var _default = AuthMethodRoleAssociation; +DynamicSecretDelete.prototype['uid-token'] = undefined; +var _default = DynamicSecretDelete; exports["default"] = _default; /***/ }), -/***/ 6242: +/***/ 95742: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -23390,9 +96423,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(44937)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -23403,19 +96434,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AuthOutput model module. - * @module model/AuthOutput - * @version 3.3.16 + * The DynamicSecretDeleteOutput model module. + * @module model/DynamicSecretDeleteOutput + * @version 3.6.3 */ -var AuthOutput = /*#__PURE__*/function () { +var DynamicSecretDeleteOutput = /*#__PURE__*/function () { /** - * Constructs a new AuthOutput. - * @alias module:model/AuthOutput + * Constructs a new DynamicSecretDeleteOutput. + * @alias module:model/DynamicSecretDeleteOutput */ - function AuthOutput() { - _classCallCheck(this, AuthOutput); + function DynamicSecretDeleteOutput() { + _classCallCheck(this, DynamicSecretDeleteOutput); - AuthOutput.initialize(this); + DynamicSecretDeleteOutput.initialize(this); } /** * Initializes the fields of this object. @@ -23424,29 +96455,25 @@ var AuthOutput = /*#__PURE__*/function () { */ - _createClass(AuthOutput, null, [{ + _createClass(DynamicSecretDeleteOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a AuthOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretDeleteOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthOutput} obj Optional instance to populate. - * @return {module:model/AuthOutput} The populated AuthOutput instance. + * @param {module:model/DynamicSecretDeleteOutput} obj Optional instance to populate. + * @return {module:model/DynamicSecretDeleteOutput} The populated DynamicSecretDeleteOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AuthOutput(); - - if (data.hasOwnProperty('creds')) { - obj['creds'] = _SystemAccessCredentialsReplyObj["default"].constructFromObject(data['creds']); - } + obj = obj || new DynamicSecretDeleteOutput(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('dynamic_secret_name')) { + obj['dynamic_secret_name'] = _ApiClient["default"].convertToType(data['dynamic_secret_name'], 'String'); } } @@ -23454,25 +96481,20 @@ var AuthOutput = /*#__PURE__*/function () { } }]); - return AuthOutput; + return DynamicSecretDeleteOutput; }(); /** - * @member {module:model/SystemAccessCredentialsReplyObj} creds + * @member {String} dynamic_secret_name */ -AuthOutput.prototype['creds'] = undefined; -/** - * @member {String} token - */ - -AuthOutput.prototype['token'] = undefined; -var _default = AuthOutput; +DynamicSecretDeleteOutput.prototype['dynamic_secret_name'] = undefined; +var _default = DynamicSecretDeleteOutput; exports["default"] = _default; /***/ }), -/***/ 44285: +/***/ 72886: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -23483,7 +96505,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -23494,19 +96516,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AwsS3LogForwardingConfig model module. - * @module model/AwsS3LogForwardingConfig - * @version 3.3.16 + * The DynamicSecretGet model module. + * @module model/DynamicSecretGet + * @version 3.6.3 */ -var AwsS3LogForwardingConfig = /*#__PURE__*/function () { +var DynamicSecretGet = /*#__PURE__*/function () { /** - * Constructs a new AwsS3LogForwardingConfig. - * @alias module:model/AwsS3LogForwardingConfig + * Constructs a new DynamicSecretGet. + * DynamicSecretGet is a command that returns dynamic secret details + * @alias module:model/DynamicSecretGet + * @param name {String} Dynamic secret name */ - function AwsS3LogForwardingConfig() { - _classCallCheck(this, AwsS3LogForwardingConfig); + function DynamicSecretGet(name) { + _classCallCheck(this, DynamicSecretGet); - AwsS3LogForwardingConfig.initialize(this); + DynamicSecretGet.initialize(this, name); } /** * Initializes the fields of this object. @@ -23515,45 +96539,39 @@ var AwsS3LogForwardingConfig = /*#__PURE__*/function () { */ - _createClass(AwsS3LogForwardingConfig, null, [{ + _createClass(DynamicSecretGet, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AwsS3LogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretGet from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AwsS3LogForwardingConfig} obj Optional instance to populate. - * @return {module:model/AwsS3LogForwardingConfig} The populated AwsS3LogForwardingConfig instance. + * @param {module:model/DynamicSecretGet} obj Optional instance to populate. + * @return {module:model/DynamicSecretGet} The populated DynamicSecretGet instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AwsS3LogForwardingConfig(); - - if (data.hasOwnProperty('aws_access_id')) { - obj['aws_access_id'] = _ApiClient["default"].convertToType(data['aws_access_id'], 'String'); - } - - if (data.hasOwnProperty('aws_access_key')) { - obj['aws_access_key'] = _ApiClient["default"].convertToType(data['aws_access_key'], 'String'); - } + obj = obj || new DynamicSecretGet(); - if (data.hasOwnProperty('aws_region')) { - obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('aws_use_gateway_cloud_identity')) { - obj['aws_use_gateway_cloud_identity'] = _ApiClient["default"].convertToType(data['aws_use_gateway_cloud_identity'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('bucket_name')) { - obj['bucket_name'] = _ApiClient["default"].convertToType(data['bucket_name'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('log_folder')) { - obj['log_folder'] = _ApiClient["default"].convertToType(data['log_folder'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -23561,45 +96579,40 @@ var AwsS3LogForwardingConfig = /*#__PURE__*/function () { } }]); - return AwsS3LogForwardingConfig; + return DynamicSecretGet; }(); /** - * @member {String} aws_access_id - */ - - -AwsS3LogForwardingConfig.prototype['aws_access_id'] = undefined; -/** - * @member {String} aws_access_key + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AwsS3LogForwardingConfig.prototype['aws_access_key'] = undefined; -/** - * @member {String} aws_region - */ -AwsS3LogForwardingConfig.prototype['aws_region'] = undefined; +DynamicSecretGet.prototype['json'] = false; /** - * @member {Boolean} aws_use_gateway_cloud_identity + * Dynamic secret name + * @member {String} name */ -AwsS3LogForwardingConfig.prototype['aws_use_gateway_cloud_identity'] = undefined; +DynamicSecretGet.prototype['name'] = undefined; /** - * @member {String} bucket_name + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -AwsS3LogForwardingConfig.prototype['bucket_name'] = undefined; +DynamicSecretGet.prototype['token'] = undefined; /** - * @member {String} log_folder + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -AwsS3LogForwardingConfig.prototype['log_folder'] = undefined; -var _default = AwsS3LogForwardingConfig; +DynamicSecretGet.prototype['uid-token'] = undefined; +var _default = DynamicSecretGet; exports["default"] = _default; /***/ }), -/***/ 62843: +/***/ 94869: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -23610,7 +96623,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -23621,20 +96634,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AzureADAccessRules model module. - * @module model/AzureADAccessRules - * @version 3.3.16 + * The DynamicSecretGetValue model module. + * @module model/DynamicSecretGetValue + * @version 3.6.3 */ -var AzureADAccessRules = /*#__PURE__*/function () { +var DynamicSecretGetValue = /*#__PURE__*/function () { /** - * Constructs a new AzureADAccessRules. - * AzureADAccessRules contains access rules specific to Azure Active Directory authentication. - * @alias module:model/AzureADAccessRules + * Constructs a new DynamicSecretGetValue. + * @alias module:model/DynamicSecretGetValue + * @param name {String} Dynamic secret name */ - function AzureADAccessRules() { - _classCallCheck(this, AzureADAccessRules); + function DynamicSecretGetValue(name) { + _classCallCheck(this, DynamicSecretGetValue); - AzureADAccessRules.initialize(this); + DynamicSecretGetValue.initialize(this, name); } /** * Initializes the fields of this object. @@ -23643,69 +96656,55 @@ var AzureADAccessRules = /*#__PURE__*/function () { */ - _createClass(AzureADAccessRules, null, [{ + _createClass(DynamicSecretGetValue, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a AzureADAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretGetValue from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureADAccessRules} obj Optional instance to populate. - * @return {module:model/AzureADAccessRules} The populated AzureADAccessRules instance. + * @param {module:model/DynamicSecretGetValue} obj Optional instance to populate. + * @return {module:model/DynamicSecretGetValue} The populated DynamicSecretGetValue instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AzureADAccessRules(); - - if (data.hasOwnProperty('ad_endpoint')) { - obj['ad_endpoint'] = _ApiClient["default"].convertToType(data['ad_endpoint'], 'String'); - } - - if (data.hasOwnProperty('bound_group_ids')) { - obj['bound_group_ids'] = _ApiClient["default"].convertToType(data['bound_group_ids'], ['String']); - } - - if (data.hasOwnProperty('bound_resource_groups')) { - obj['bound_resource_groups'] = _ApiClient["default"].convertToType(data['bound_resource_groups'], ['String']); - } - - if (data.hasOwnProperty('bound_resource_ids')) { - obj['bound_resource_ids'] = _ApiClient["default"].convertToType(data['bound_resource_ids'], ['String']); - } + obj = obj || new DynamicSecretGetValue(); - if (data.hasOwnProperty('bound_resource_names')) { - obj['bound_resource_names'] = _ApiClient["default"].convertToType(data['bound_resource_names'], ['String']); + if (data.hasOwnProperty('args')) { + obj['args'] = _ApiClient["default"].convertToType(data['args'], ['String']); } - if (data.hasOwnProperty('bound_resource_providers')) { - obj['bound_resource_providers'] = _ApiClient["default"].convertToType(data['bound_resource_providers'], ['String']); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('bound_resource_types')) { - obj['bound_resource_types'] = _ApiClient["default"].convertToType(data['bound_resource_types'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('bound_service_principal_ids')) { - obj['bound_service_principal_ids'] = _ApiClient["default"].convertToType(data['bound_service_principal_ids'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('bound_subscription_ids')) { - obj['bound_subscription_ids'] = _ApiClient["default"].convertToType(data['bound_subscription_ids'], ['String']); + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); } - if (data.hasOwnProperty('bound_tenant_id')) { - obj['bound_tenant_id'] = _ApiClient["default"].convertToType(data['bound_tenant_id'], 'String'); + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('jwks_uri')) { - obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -23713,87 +96712,65 @@ var AzureADAccessRules = /*#__PURE__*/function () { } }]); - return AzureADAccessRules; + return DynamicSecretGetValue; }(); /** - * The audience in the JWT. - * @member {String} ad_endpoint - */ - - -AzureADAccessRules.prototype['ad_endpoint'] = undefined; -/** - * The list of group ids that login is restricted to. - * @member {Array.} bound_group_ids - */ - -AzureADAccessRules.prototype['bound_group_ids'] = undefined; -/** - * The list of resource groups that login is restricted to. - * @member {Array.} bound_resource_groups - */ - -AzureADAccessRules.prototype['bound_resource_groups'] = undefined; -/** - * The list of full resource ids that the login is restricted to. - * @member {Array.} bound_resource_ids + * Optional arguments as key=value pairs or JSON strings, e.g - \\\"--args=csr=base64_encoded_csr --args=common_name=bar\\\" or args='{\\\"csr\\\":\\\"base64_encoded_csr\\\"}. It is possible to combine both formats.' + * @member {Array.} args */ -AzureADAccessRules.prototype['bound_resource_ids'] = undefined; -/** - * The list of resource names that the login is restricted to (e.g, a virtual machine name, scale set name, etc). - * @member {Array.} bound_resource_names - */ -AzureADAccessRules.prototype['bound_resource_names'] = undefined; +DynamicSecretGetValue.prototype['args'] = undefined; /** - * The list of resource providers that login is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc). - * @member {Array.} bound_resource_providers + * Host + * @member {String} host */ -AzureADAccessRules.prototype['bound_resource_providers'] = undefined; +DynamicSecretGetValue.prototype['host'] = undefined; /** - * The list of resource types that login is restricted to (e.g, virtualMachines, userAssignedIdentities, etc). - * @member {Array.} bound_resource_types + * Set output format to JSON + * @member {Boolean} json + * @default false */ -AzureADAccessRules.prototype['bound_resource_types'] = undefined; +DynamicSecretGetValue.prototype['json'] = false; /** - * The list of service principal IDs that login is restricted to. - * @member {Array.} bound_service_principal_ids + * Dynamic secret name + * @member {String} name */ -AzureADAccessRules.prototype['bound_service_principal_ids'] = undefined; +DynamicSecretGetValue.prototype['name'] = undefined; /** - * The list of subscription IDs that login is restricted to. - * @member {Array.} bound_subscription_ids + * Target Name + * @member {String} target */ -AzureADAccessRules.prototype['bound_subscription_ids'] = undefined; +DynamicSecretGetValue.prototype['target'] = undefined; /** - * The tenants id for the Azure Active Directory organization. - * @member {String} bound_tenant_id + * Timeout in seconds + * @member {Number} timeout + * @default 15 */ -AzureADAccessRules.prototype['bound_tenant_id'] = undefined; +DynamicSecretGetValue.prototype['timeout'] = 15; /** - * Issuer URL - * @member {String} issuer + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -AzureADAccessRules.prototype['issuer'] = undefined; +DynamicSecretGetValue.prototype['token'] = undefined; /** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks_uri + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -AzureADAccessRules.prototype['jwks_uri'] = undefined; -var _default = AzureADAccessRules; +DynamicSecretGetValue.prototype['uid-token'] = undefined; +var _default = DynamicSecretGetValue; exports["default"] = _default; /***/ }), -/***/ 92600: +/***/ 74168: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -23804,11 +96781,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AzurePayload = _interopRequireDefault(__nccwpck_require__(49543)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -23819,19 +96792,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AzureKeyVaultMigration model module. - * @module model/AzureKeyVaultMigration - * @version 3.3.16 + * The DynamicSecretList model module. + * @module model/DynamicSecretList + * @version 3.6.3 */ -var AzureKeyVaultMigration = /*#__PURE__*/function () { +var DynamicSecretList = /*#__PURE__*/function () { /** - * Constructs a new AzureKeyVaultMigration. - * @alias module:model/AzureKeyVaultMigration + * Constructs a new DynamicSecretList. + * dynamicSecretList is a command that returns a list of dynamic secrets + * @alias module:model/DynamicSecretList */ - function AzureKeyVaultMigration() { - _classCallCheck(this, AzureKeyVaultMigration); + function DynamicSecretList() { + _classCallCheck(this, DynamicSecretList); - AzureKeyVaultMigration.initialize(this); + DynamicSecretList.initialize(this); } /** * Initializes the fields of this object. @@ -23840,29 +96814,33 @@ var AzureKeyVaultMigration = /*#__PURE__*/function () { */ - _createClass(AzureKeyVaultMigration, null, [{ + _createClass(DynamicSecretList, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a AzureKeyVaultMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureKeyVaultMigration} obj Optional instance to populate. - * @return {module:model/AzureKeyVaultMigration} The populated AzureKeyVaultMigration instance. + * @param {module:model/DynamicSecretList} obj Optional instance to populate. + * @return {module:model/DynamicSecretList} The populated DynamicSecretList instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AzureKeyVaultMigration(); + obj = obj || new DynamicSecretList(); - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('payload')) { - obj['payload'] = _AzurePayload["default"].constructFromObject(data['payload']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -23870,116 +96848,34 @@ var AzureKeyVaultMigration = /*#__PURE__*/function () { } }]); - return AzureKeyVaultMigration; + return DynamicSecretList; }(); /** - * @member {module:model/MigrationGeneral} general - */ - - -AzureKeyVaultMigration.prototype['general'] = undefined; -/** - * @member {module:model/AzurePayload} payload - */ - -AzureKeyVaultMigration.prototype['payload'] = undefined; -var _default = AzureKeyVaultMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 20470: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AzureLogAnalyticsForwardingConfig model module. - * @module model/AzureLogAnalyticsForwardingConfig - * @version 3.3.16 + * Set output format to JSON + * @member {Boolean} json + * @default false */ -var AzureLogAnalyticsForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new AzureLogAnalyticsForwardingConfig. - * @alias module:model/AzureLogAnalyticsForwardingConfig - */ - function AzureLogAnalyticsForwardingConfig() { - _classCallCheck(this, AzureLogAnalyticsForwardingConfig); - - AzureLogAnalyticsForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AzureLogAnalyticsForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AzureLogAnalyticsForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureLogAnalyticsForwardingConfig} obj Optional instance to populate. - * @return {module:model/AzureLogAnalyticsForwardingConfig} The populated AzureLogAnalyticsForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AzureLogAnalyticsForwardingConfig(); - - if (data.hasOwnProperty('azure_workspace_id')) { - obj['azure_workspace_id'] = _ApiClient["default"].convertToType(data['azure_workspace_id'], 'String'); - } - - if (data.hasOwnProperty('azure_workspace_key')) { - obj['azure_workspace_key'] = _ApiClient["default"].convertToType(data['azure_workspace_key'], 'String'); - } - } - return obj; - } - }]); - return AzureLogAnalyticsForwardingConfig; -}(); +DynamicSecretList.prototype['json'] = false; /** - * @member {String} azure_workspace_id + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ - -AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_id'] = undefined; +DynamicSecretList.prototype['token'] = undefined; /** - * @member {String} azure_workspace_key + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_key'] = undefined; -var _default = AzureLogAnalyticsForwardingConfig; +DynamicSecretList.prototype['uid-token'] = undefined; +var _default = DynamicSecretList; exports["default"] = _default; /***/ }), -/***/ 49543: +/***/ 71774: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -23990,7 +96886,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24001,19 +96897,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AzurePayload model module. - * @module model/AzurePayload - * @version 3.3.16 + * The DynamicSecretMaxTtl model module. + * @module model/DynamicSecretMaxTtl + * @version 3.6.3 */ -var AzurePayload = /*#__PURE__*/function () { +var DynamicSecretMaxTtl = /*#__PURE__*/function () { /** - * Constructs a new AzurePayload. - * @alias module:model/AzurePayload + * Constructs a new DynamicSecretMaxTtl. + * @alias module:model/DynamicSecretMaxTtl */ - function AzurePayload() { - _classCallCheck(this, AzurePayload); + function DynamicSecretMaxTtl() { + _classCallCheck(this, DynamicSecretMaxTtl); - AzurePayload.initialize(this); + DynamicSecretMaxTtl.initialize(this); } /** * Initializes the fields of this object. @@ -24022,37 +96918,29 @@ var AzurePayload = /*#__PURE__*/function () { */ - _createClass(AzurePayload, null, [{ + _createClass(DynamicSecretMaxTtl, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a AzurePayload from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretMaxTtl from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzurePayload} obj Optional instance to populate. - * @return {module:model/AzurePayload} The populated AzurePayload instance. + * @param {module:model/DynamicSecretMaxTtl} obj Optional instance to populate. + * @return {module:model/DynamicSecretMaxTtl} The populated DynamicSecretMaxTtl instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AzurePayload(); + obj = obj || new DynamicSecretMaxTtl(); - if (data.hasOwnProperty('client')) { - obj['client'] = _ApiClient["default"].convertToType(data['client'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('secret')) { - obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); } - if (data.hasOwnProperty('tenant')) { - obj['tenant'] = _ApiClient["default"].convertToType(data['tenant'], 'String'); + if (data.hasOwnProperty('max_ttl_by_minutes')) { + obj['max_ttl_by_minutes'] = _ApiClient["default"].convertToType(data['max_ttl_by_minutes'], 'Number'); } } @@ -24060,35 +96948,25 @@ var AzurePayload = /*#__PURE__*/function () { } }]); - return AzurePayload; + return DynamicSecretMaxTtl; }(); /** - * @member {String} client - */ - - -AzurePayload.prototype['client'] = undefined; -/** - * @member {String} name + * @member {Boolean} enable */ -AzurePayload.prototype['name'] = undefined; -/** - * @member {String} secret - */ -AzurePayload.prototype['secret'] = undefined; +DynamicSecretMaxTtl.prototype['enable'] = undefined; /** - * @member {String} tenant + * @member {Number} max_ttl_by_minutes */ -AzurePayload.prototype['tenant'] = undefined; -var _default = AzurePayload; +DynamicSecretMaxTtl.prototype['max_ttl_by_minutes'] = undefined; +var _default = DynamicSecretMaxTtl; exports["default"] = _default; /***/ }), -/***/ 23491: +/***/ 92142: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -24099,7 +96977,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24110,19 +96988,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The AzureTargetDetails model module. - * @module model/AzureTargetDetails - * @version 3.3.16 + * The DynamicSecretProducerInfo model module. + * @module model/DynamicSecretProducerInfo + * @version 3.6.3 */ -var AzureTargetDetails = /*#__PURE__*/function () { +var DynamicSecretProducerInfo = /*#__PURE__*/function () { /** - * Constructs a new AzureTargetDetails. - * @alias module:model/AzureTargetDetails + * Constructs a new DynamicSecretProducerInfo. + * DynamicSecretProducerInfo The dynamic secret producer info This parameter relevant and required only in case of create update dynamic secret. + * @alias module:model/DynamicSecretProducerInfo */ - function AzureTargetDetails() { - _classCallCheck(this, AzureTargetDetails); + function DynamicSecretProducerInfo() { + _classCallCheck(this, DynamicSecretProducerInfo); - AzureTargetDetails.initialize(this); + DynamicSecretProducerInfo.initialize(this); } /** * Initializes the fields of this object. @@ -24131,49 +97010,57 @@ var AzureTargetDetails = /*#__PURE__*/function () { */ - _createClass(AzureTargetDetails, null, [{ + _createClass(DynamicSecretProducerInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a AzureTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretProducerInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureTargetDetails} obj Optional instance to populate. - * @return {module:model/AzureTargetDetails} The populated AzureTargetDetails instance. + * @param {module:model/DynamicSecretProducerInfo} obj Optional instance to populate. + * @return {module:model/DynamicSecretProducerInfo} The populated DynamicSecretProducerInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new AzureTargetDetails(); + obj = obj || new DynamicSecretProducerInfo(); - if (data.hasOwnProperty('azure_client_id')) { - obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); + if (data.hasOwnProperty('failure_message')) { + obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); } - if (data.hasOwnProperty('azure_client_secret')) { - obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); } - if (data.hasOwnProperty('azure_resource_group_name')) { - obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); + if (data.hasOwnProperty('k8s_allowed_namespaces')) { + obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); } - if (data.hasOwnProperty('azure_resource_name')) { - obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); + if (data.hasOwnProperty('k8s_dynamic_mode')) { + obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); } - if (data.hasOwnProperty('azure_subscription_id')) { - obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); + if (data.hasOwnProperty('producer_last_keep_alive')) { + obj['producer_last_keep_alive'] = _ApiClient["default"].convertToType(data['producer_last_keep_alive'], 'String'); } - if (data.hasOwnProperty('azure_tenant_id')) { - obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); + if (data.hasOwnProperty('producer_metadata')) { + obj['producer_metadata'] = _ApiClient["default"].convertToType(data['producer_metadata'], 'String'); } - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + if (data.hasOwnProperty('producer_status')) { + obj['producer_status'] = _ApiClient["default"].convertToType(data['producer_status'], 'String'); + } + + if (data.hasOwnProperty('producer_type')) { + obj['producer_type'] = _ApiClient["default"].convertToType(data['producer_type'], 'String'); + } + + if (data.hasOwnProperty('user_ttl')) { + obj['user_ttl'] = _ApiClient["default"].convertToType(data['user_ttl'], 'String'); } } @@ -24181,50 +97068,63 @@ var AzureTargetDetails = /*#__PURE__*/function () { } }]); - return AzureTargetDetails; + return DynamicSecretProducerInfo; }(); /** - * @member {String} azure_client_id + * @member {String} failure_message */ -AzureTargetDetails.prototype['azure_client_id'] = undefined; +DynamicSecretProducerInfo.prototype['failure_message'] = undefined; /** - * @member {String} azure_client_secret + * @member {Number} gw_cluster_id */ -AzureTargetDetails.prototype['azure_client_secret'] = undefined; +DynamicSecretProducerInfo.prototype['gw_cluster_id'] = undefined; /** - * @member {String} azure_resource_group_name + * Relevant only for generic k8s producer + * @member {String} k8s_allowed_namespaces */ -AzureTargetDetails.prototype['azure_resource_group_name'] = undefined; +DynamicSecretProducerInfo.prototype['k8s_allowed_namespaces'] = undefined; /** - * @member {String} azure_resource_name + * Relevant only for generic k8s producer + * @member {Boolean} k8s_dynamic_mode */ -AzureTargetDetails.prototype['azure_resource_name'] = undefined; +DynamicSecretProducerInfo.prototype['k8s_dynamic_mode'] = undefined; /** - * @member {String} azure_subscription_id + * @member {String} producer_last_keep_alive */ -AzureTargetDetails.prototype['azure_subscription_id'] = undefined; +DynamicSecretProducerInfo.prototype['producer_last_keep_alive'] = undefined; /** - * @member {String} azure_tenant_id + * @member {String} producer_metadata */ -AzureTargetDetails.prototype['azure_tenant_id'] = undefined; +DynamicSecretProducerInfo.prototype['producer_metadata'] = undefined; /** - * @member {Boolean} use_gw_cloud_identity + * RotationStatus defines types of rotation Status + * @member {String} producer_status */ -AzureTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = AzureTargetDetails; +DynamicSecretProducerInfo.prototype['producer_status'] = undefined; +/** + * @member {String} producer_type + */ + +DynamicSecretProducerInfo.prototype['producer_type'] = undefined; +/** + * @member {String} user_ttl + */ + +DynamicSecretProducerInfo.prototype['user_ttl'] = undefined; +var _default = DynamicSecretProducerInfo; exports["default"] = _default; /***/ }), -/***/ 43655: +/***/ 23313: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -24235,7 +97135,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24246,19 +97146,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The BastionListEntry model module. - * @module model/BastionListEntry - * @version 3.3.16 + * The DynamicSecretTmpCredsDelete model module. + * @module model/DynamicSecretTmpCredsDelete + * @version 3.6.3 */ -var BastionListEntry = /*#__PURE__*/function () { +var DynamicSecretTmpCredsDelete = /*#__PURE__*/function () { /** - * Constructs a new BastionListEntry. - * @alias module:model/BastionListEntry + * Constructs a new DynamicSecretTmpCredsDelete. + * dynamicSecretTmpCredsDelete is a command that deletes dynamic secret temp creds + * @alias module:model/DynamicSecretTmpCredsDelete + * @param name {String} Dynamic secret name + * @param tmpCredsId {String} Tmp Creds ID */ - function BastionListEntry() { - _classCallCheck(this, BastionListEntry); + function DynamicSecretTmpCredsDelete(name, tmpCredsId) { + _classCallCheck(this, DynamicSecretTmpCredsDelete); - BastionListEntry.initialize(this); + DynamicSecretTmpCredsDelete.initialize(this, name, tmpCredsId); } /** * Initializes the fields of this object. @@ -24267,51 +97170,56 @@ var BastionListEntry = /*#__PURE__*/function () { */ - _createClass(BastionListEntry, null, [{ + _createClass(DynamicSecretTmpCredsDelete, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, tmpCredsId) { + obj['name'] = name; + obj['tmp-creds-id'] = tmpCredsId; + } /** - * Constructs a BastionListEntry from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretTmpCredsDelete from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BastionListEntry} obj Optional instance to populate. - * @return {module:model/BastionListEntry} The populated BastionListEntry instance. + * @param {module:model/DynamicSecretTmpCredsDelete} obj Optional instance to populate. + * @return {module:model/DynamicSecretTmpCredsDelete} The populated DynamicSecretTmpCredsDelete instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new BastionListEntry(); + obj = obj || new DynamicSecretTmpCredsDelete(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('allowed_access_ids')) { - obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('allowed_urls')) { - obj['allowed_urls'] = _ApiClient["default"].convertToType(data['allowed_urls'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('allowed_urls_per_instance')) { - obj['allowed_urls_per_instance'] = _ApiClient["default"].convertToType(data['allowed_urls_per_instance'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('revoke-all')) { + obj['revoke-all'] = _ApiClient["default"].convertToType(data['revoke-all'], 'Boolean'); } - if (data.hasOwnProperty('cluster_name')) { - obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); + if (data.hasOwnProperty('soft-delete')) { + obj['soft-delete'] = _ApiClient["default"].convertToType(data['soft-delete'], 'Boolean'); } - if (data.hasOwnProperty('display_name')) { - obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); } - if (data.hasOwnProperty('last_report')) { - obj['last_report'] = _ApiClient["default"].convertToType(data['last_report'], 'Date'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -24319,50 +97227,65 @@ var BastionListEntry = /*#__PURE__*/function () { } }]); - return BastionListEntry; + return DynamicSecretTmpCredsDelete; }(); /** - * @member {String} access_id + * Host + * @member {String} host */ -BastionListEntry.prototype['access_id'] = undefined; +DynamicSecretTmpCredsDelete.prototype['host'] = undefined; /** - * @member {Array.} allowed_access_ids + * Set output format to JSON + * @member {Boolean} json + * @default false */ -BastionListEntry.prototype['allowed_access_ids'] = undefined; +DynamicSecretTmpCredsDelete.prototype['json'] = false; /** - * @member {Array.} allowed_urls + * Dynamic secret name + * @member {String} name */ -BastionListEntry.prototype['allowed_urls'] = undefined; +DynamicSecretTmpCredsDelete.prototype['name'] = undefined; /** - * @member {Object.>} allowed_urls_per_instance + * Revoke All Temp Creds + * @member {Boolean} revoke-all */ -BastionListEntry.prototype['allowed_urls_per_instance'] = undefined; +DynamicSecretTmpCredsDelete.prototype['revoke-all'] = undefined; /** - * @member {String} cluster_name + * Soft Delete + * @member {Boolean} soft-delete */ -BastionListEntry.prototype['cluster_name'] = undefined; +DynamicSecretTmpCredsDelete.prototype['soft-delete'] = undefined; /** - * @member {String} display_name + * Tmp Creds ID + * @member {String} tmp-creds-id + * @default 'demo_default_tmp_creds_id_for_sdk_bc' */ -BastionListEntry.prototype['display_name'] = undefined; +DynamicSecretTmpCredsDelete.prototype['tmp-creds-id'] = 'demo_default_tmp_creds_id_for_sdk_bc'; /** - * @member {Date} last_report + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -BastionListEntry.prototype['last_report'] = undefined; -var _default = BastionListEntry; +DynamicSecretTmpCredsDelete.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretTmpCredsDelete.prototype['uid-token'] = undefined; +var _default = DynamicSecretTmpCredsDelete; exports["default"] = _default; /***/ }), -/***/ 69265: +/***/ 44088: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -24373,9 +97296,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(43655)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24386,19 +97307,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The BastionsList model module. - * @module model/BastionsList - * @version 3.3.16 + * The DynamicSecretTmpCredsGet model module. + * @module model/DynamicSecretTmpCredsGet + * @version 3.6.3 */ -var BastionsList = /*#__PURE__*/function () { +var DynamicSecretTmpCredsGet = /*#__PURE__*/function () { /** - * Constructs a new BastionsList. - * @alias module:model/BastionsList + * Constructs a new DynamicSecretTmpCredsGet. + * dynamicSecretTmpCredsGet is a command that returns dynamic secret temp creds + * @alias module:model/DynamicSecretTmpCredsGet + * @param name {String} Dynamic secret name */ - function BastionsList() { - _classCallCheck(this, BastionsList); + function DynamicSecretTmpCredsGet(name) { + _classCallCheck(this, DynamicSecretTmpCredsGet); - BastionsList.initialize(this); + DynamicSecretTmpCredsGet.initialize(this, name); } /** * Initializes the fields of this object. @@ -24407,25 +97330,39 @@ var BastionsList = /*#__PURE__*/function () { */ - _createClass(BastionsList, null, [{ + _createClass(DynamicSecretTmpCredsGet, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a BastionsList from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretTmpCredsGet from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BastionsList} obj Optional instance to populate. - * @return {module:model/BastionsList} The populated BastionsList instance. + * @param {module:model/DynamicSecretTmpCredsGet} obj Optional instance to populate. + * @return {module:model/DynamicSecretTmpCredsGet} The populated DynamicSecretTmpCredsGet instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new BastionsList(); + obj = obj || new DynamicSecretTmpCredsGet(); - if (data.hasOwnProperty('clusters')) { - obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_BastionListEntry["default"]]); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -24433,20 +97370,40 @@ var BastionsList = /*#__PURE__*/function () { } }]); - return BastionsList; + return DynamicSecretTmpCredsGet; }(); /** - * @member {Array.} clusters + * Set output format to JSON + * @member {Boolean} json + * @default false */ -BastionsList.prototype['clusters'] = undefined; -var _default = BastionsList; +DynamicSecretTmpCredsGet.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretTmpCredsGet.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretTmpCredsGet.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretTmpCredsGet.prototype['uid-token'] = undefined; +var _default = DynamicSecretTmpCredsGet; exports["default"] = _default; /***/ }), -/***/ 3717: +/***/ 47983: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -24457,7 +97414,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24468,19 +97425,24 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CFConfigPart model module. - * @module model/CFConfigPart - * @version 3.3.16 + * The DynamicSecretTmpCredsUpdate model module. + * @module model/DynamicSecretTmpCredsUpdate + * @version 3.6.3 */ -var CFConfigPart = /*#__PURE__*/function () { +var DynamicSecretTmpCredsUpdate = /*#__PURE__*/function () { /** - * Constructs a new CFConfigPart. - * @alias module:model/CFConfigPart + * Constructs a new DynamicSecretTmpCredsUpdate. + * dynamicSecretTmpCredsUpdate is a command that updates dynamic secret temp creds + * @alias module:model/DynamicSecretTmpCredsUpdate + * @param host {String} Host + * @param name {String} Dynamic secret name + * @param newTtlMin {Number} New TTL in Minutes + * @param tmpCredsId {String} Tmp Creds ID */ - function CFConfigPart() { - _classCallCheck(this, CFConfigPart); + function DynamicSecretTmpCredsUpdate(host, name, newTtlMin, tmpCredsId) { + _classCallCheck(this, DynamicSecretTmpCredsUpdate); - CFConfigPart.initialize(this); + DynamicSecretTmpCredsUpdate.initialize(this, host, name, newTtlMin, tmpCredsId); } /** * Initializes the fields of this object. @@ -24489,27 +97451,54 @@ var CFConfigPart = /*#__PURE__*/function () { */ - _createClass(CFConfigPart, null, [{ + _createClass(DynamicSecretTmpCredsUpdate, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, host, name, newTtlMin, tmpCredsId) { + obj['host'] = host; + obj['name'] = name; + obj['new-ttl-min'] = newTtlMin; + obj['tmp-creds-id'] = tmpCredsId; + } /** - * Constructs a CFConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretTmpCredsUpdate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CFConfigPart} obj Optional instance to populate. - * @return {module:model/CFConfigPart} The populated CFConfigPart instance. + * @param {module:model/DynamicSecretTmpCredsUpdate} obj Optional instance to populate. + * @return {module:model/DynamicSecretTmpCredsUpdate} The populated DynamicSecretTmpCredsUpdate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CFConfigPart(); + obj = obj || new DynamicSecretTmpCredsUpdate(); - if (data.hasOwnProperty('customer_fragements')) { - obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], { - 'String': 'String' - }); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-ttl-min')) { + obj['new-ttl-min'] = _ApiClient["default"].convertToType(data['new-ttl-min'], 'Number'); + } + + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -24517,20 +97506,58 @@ var CFConfigPart = /*#__PURE__*/function () { } }]); - return CFConfigPart; + return DynamicSecretTmpCredsUpdate; }(); /** - * @member {Object.} customer_fragements + * Host + * @member {String} host */ -CFConfigPart.prototype['customer_fragements'] = undefined; -var _default = CFConfigPart; +DynamicSecretTmpCredsUpdate.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretTmpCredsUpdate.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretTmpCredsUpdate.prototype['name'] = undefined; +/** + * New TTL in Minutes + * @member {Number} new-ttl-min + */ + +DynamicSecretTmpCredsUpdate.prototype['new-ttl-min'] = undefined; +/** + * Tmp Creds ID + * @member {String} tmp-creds-id + */ + +DynamicSecretTmpCredsUpdate.prototype['tmp-creds-id'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretTmpCredsUpdate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretTmpCredsUpdate.prototype['uid-token'] = undefined; +var _default = DynamicSecretTmpCredsUpdate; exports["default"] = _default; /***/ }), -/***/ 89529: +/***/ 39867: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -24541,7 +97568,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24552,19 +97579,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CacheConfigPart model module. - * @module model/CacheConfigPart - * @version 3.3.16 + * The DynamicSecretUpdateArtifactory model module. + * @module model/DynamicSecretUpdateArtifactory + * @version 3.6.3 */ -var CacheConfigPart = /*#__PURE__*/function () { +var DynamicSecretUpdateArtifactory = /*#__PURE__*/function () { /** - * Constructs a new CacheConfigPart. - * @alias module:model/CacheConfigPart + * Constructs a new DynamicSecretUpdateArtifactory. + * dynamicSecretUpdateArtifactory is a command that updates artifactory dynamic secret + * @alias module:model/DynamicSecretUpdateArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name */ - function CacheConfigPart() { - _classCallCheck(this, CacheConfigPart); + function DynamicSecretUpdateArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, DynamicSecretUpdateArtifactory); - CacheConfigPart.initialize(this); + DynamicSecretUpdateArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); } /** * Initializes the fields of this object. @@ -24573,41 +97604,89 @@ var CacheConfigPart = /*#__PURE__*/function () { */ - _createClass(CacheConfigPart, null, [{ + _createClass(DynamicSecretUpdateArtifactory, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; + obj['name'] = name; + } /** - * Constructs a CacheConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateArtifactory from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CacheConfigPart} obj Optional instance to populate. - * @return {module:model/CacheConfigPart} The populated CacheConfigPart instance. + * @param {module:model/DynamicSecretUpdateArtifactory} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateArtifactory} The populated DynamicSecretUpdateArtifactory instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CacheConfigPart(); + obj = obj || new DynamicSecretUpdateArtifactory(); - if (data.hasOwnProperty('cache_enable')) { - obj['cache_enable'] = _ApiClient["default"].convertToType(data['cache_enable'], 'Boolean'); + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); } - if (data.hasOwnProperty('cache_ttl')) { - obj['cache_ttl'] = _ApiClient["default"].convertToType(data['cache_ttl'], 'String'); + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); } - if (data.hasOwnProperty('proactive_cache_dump_interval')) { - obj['proactive_cache_dump_interval'] = _ApiClient["default"].convertToType(data['proactive_cache_dump_interval'], 'String'); + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); } - if (data.hasOwnProperty('proactive_cache_enable')) { - obj['proactive_cache_enable'] = _ApiClient["default"].convertToType(data['proactive_cache_enable'], 'Boolean'); + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); } - if (data.hasOwnProperty('proactive_cache_minimum_fetching_time')) { - obj['proactive_cache_minimum_fetching_time'] = _ApiClient["default"].convertToType(data['proactive_cache_minimum_fetching_time'], 'String'); + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -24615,40 +97694,113 @@ var CacheConfigPart = /*#__PURE__*/function () { } }]); - return CacheConfigPart; + return DynamicSecretUpdateArtifactory; }(); /** - * @member {Boolean} cache_enable + * Artifactory Admin Name + * @member {String} artifactory-admin-name */ -CacheConfigPart.prototype['cache_enable'] = undefined; +DynamicSecretUpdateArtifactory.prototype['artifactory-admin-name'] = undefined; /** - * @member {String} cache_ttl + * Artifactory Admin password + * @member {String} artifactory-admin-pwd */ -CacheConfigPart.prototype['cache_ttl'] = undefined; +DynamicSecretUpdateArtifactory.prototype['artifactory-admin-pwd'] = undefined; /** - * @member {String} proactive_cache_dump_interval + * Token Audience + * @member {String} artifactory-token-audience */ -CacheConfigPart.prototype['proactive_cache_dump_interval'] = undefined; +DynamicSecretUpdateArtifactory.prototype['artifactory-token-audience'] = undefined; /** - * @member {Boolean} proactive_cache_enable + * Token Scope + * @member {String} artifactory-token-scope */ -CacheConfigPart.prototype['proactive_cache_enable'] = undefined; +DynamicSecretUpdateArtifactory.prototype['artifactory-token-scope'] = undefined; /** - * @member {String} proactive_cache_minimum_fetching_time + * Base URL + * @member {String} base-url */ -CacheConfigPart.prototype['proactive_cache_minimum_fetching_time'] = undefined; -var _default = CacheConfigPart; +DynamicSecretUpdateArtifactory.prototype['base-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateArtifactory.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateArtifactory.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateArtifactory.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateArtifactory.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateArtifactory.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateArtifactory.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateArtifactory.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateArtifactory.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateArtifactory.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateArtifactory; exports["default"] = _default; /***/ }), -/***/ 62934: +/***/ 15160: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -24659,7 +97811,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24670,19 +97822,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CertAccessRules model module. - * @module model/CertAccessRules - * @version 3.3.16 + * The DynamicSecretUpdateAws model module. + * @module model/DynamicSecretUpdateAws + * @version 3.6.3 */ -var CertAccessRules = /*#__PURE__*/function () { +var DynamicSecretUpdateAws = /*#__PURE__*/function () { /** - * Constructs a new CertAccessRules. - * @alias module:model/CertAccessRules + * Constructs a new DynamicSecretUpdateAws. + * dynamicSecretUpdateAws is a command that Updates aws dynamic secret + * @alias module:model/DynamicSecretUpdateAws + * @param name {String} Dynamic secret name */ - function CertAccessRules() { - _classCallCheck(this, CertAccessRules); + function DynamicSecretUpdateAws(name) { + _classCallCheck(this, DynamicSecretUpdateAws); - CertAccessRules.initialize(this); + DynamicSecretUpdateAws.initialize(this, name); } /** * Initializes the fields of this object. @@ -24691,61 +97845,143 @@ var CertAccessRules = /*#__PURE__*/function () { */ - _createClass(CertAccessRules, null, [{ + _createClass(DynamicSecretUpdateAws, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CertAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateAws from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertAccessRules} obj Optional instance to populate. - * @return {module:model/CertAccessRules} The populated CertAccessRules instance. + * @param {module:model/DynamicSecretUpdateAws} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateAws} The populated DynamicSecretUpdateAws instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CertAccessRules(); + obj = obj || new DynamicSecretUpdateAws(); - if (data.hasOwnProperty('allowed_cors')) { - obj['allowed_cors'] = _ApiClient["default"].convertToType(data['allowed_cors'], ['String']); + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); } - if (data.hasOwnProperty('bound_common_names')) { - obj['bound_common_names'] = _ApiClient["default"].convertToType(data['bound_common_names'], ['String']); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); } - if (data.hasOwnProperty('bound_dns_sans')) { - obj['bound_dns_sans'] = _ApiClient["default"].convertToType(data['bound_dns_sans'], ['String']); + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); } - if (data.hasOwnProperty('bound_email_sans')) { - obj['bound_email_sans'] = _ApiClient["default"].convertToType(data['bound_email_sans'], ['String']); + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); } - if (data.hasOwnProperty('bound_extensions')) { - obj['bound_extensions'] = _ApiClient["default"].convertToType(data['bound_extensions'], ['String']); + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); } - if (data.hasOwnProperty('bound_organizational_units')) { - obj['bound_organizational_units'] = _ApiClient["default"].convertToType(data['bound_organizational_units'], ['String']); + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); } - if (data.hasOwnProperty('bound_uri_sans')) { - obj['bound_uri_sans'] = _ApiClient["default"].convertToType(data['bound_uri_sans'], ['String']); + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); } - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); } - if (data.hasOwnProperty('revoked_cert_ids')) { - obj['revoked_cert_ids'] = _ApiClient["default"].convertToType(data['revoked_cert_ids'], ['String']); + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); } - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -24753,75 +97989,204 @@ var CertAccessRules = /*#__PURE__*/function () { } }]); - return CertAccessRules; + return DynamicSecretUpdateAws; }(); /** - * a list of allowed cors domains if used for browser authentication - * @member {Array.} allowed_cors + * @member {String} access-mode */ -CertAccessRules.prototype['allowed_cors'] = undefined; +DynamicSecretUpdateAws.prototype['access-mode'] = undefined; /** - * A list of names. At least one must exist in the Common Name. Supports globbing. - * @member {Array.} bound_common_names + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 */ -CertAccessRules.prototype['bound_common_names'] = undefined; +DynamicSecretUpdateAws.prototype['admin-rotation-interval-days'] = 0; /** - * A list of DNS names. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound_dns_sans + * Access Key ID + * @member {String} aws-access-key-id */ -CertAccessRules.prototype['bound_dns_sans'] = undefined; +DynamicSecretUpdateAws.prototype['aws-access-key-id'] = undefined; /** - * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound_email_sans + * Secret Access Key + * @member {String} aws-access-secret-key */ -CertAccessRules.prototype['bound_email_sans'] = undefined; +DynamicSecretUpdateAws.prototype['aws-access-secret-key'] = undefined; /** - * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values must match. Supports globbing on \"value\". - * @member {Array.} bound_extensions + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns */ -CertAccessRules.prototype['bound_extensions'] = undefined; +DynamicSecretUpdateAws.prototype['aws-role-arns'] = undefined; /** - * A list of Organizational Units names. At least one must exist in the OU field. - * @member {Array.} bound_organizational_units + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false */ -CertAccessRules.prototype['bound_organizational_units'] = undefined; +DynamicSecretUpdateAws.prototype['aws-user-console-access'] = false; /** - * A list of URIs. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound_uri_sans + * AWS User groups + * @member {String} aws-user-groups */ -CertAccessRules.prototype['bound_uri_sans'] = undefined; +DynamicSecretUpdateAws.prototype['aws-user-groups'] = undefined; /** - * Base64 encdoed PEM certificate - * @member {String} certificate + * AWS User policies + * @member {String} aws-user-policies */ -CertAccessRules.prototype['certificate'] = undefined; +DynamicSecretUpdateAws.prototype['aws-user-policies'] = undefined; /** - * A list of revoked cert ids - * @member {Array.} revoked_cert_ids + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true */ -CertAccessRules.prototype['revoked_cert_ids'] = undefined; +DynamicSecretUpdateAws.prototype['aws-user-programmatic-access'] = true; /** - * A unique identifier to distinguish different users - * @member {String} unique_identifier + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CertAccessRules.prototype['unique_identifier'] = undefined; -var _default = CertAccessRules; +DynamicSecretUpdateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateAws.prototype['description'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +DynamicSecretUpdateAws.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateAws.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateAws.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateAws.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateAws.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateAws.prototype['producer-encryption-key-name'] = undefined; +/** + * Region + * @member {String} region + * @default 'us-east-2' + */ + +DynamicSecretUpdateAws.prototype['region'] = 'us-east-2'; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ + +DynamicSecretUpdateAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +DynamicSecretUpdateAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateAws.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretUpdateAws.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretUpdateAws.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretUpdateAws.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateAws.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateAws.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateAws.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateAws; exports["default"] = _default; /***/ }), -/***/ 85587: +/***/ 38182: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -24832,11 +98197,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(36575)); - -var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(9174)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -24847,19 +98208,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CertificateChainInfo model module. - * @module model/CertificateChainInfo - * @version 3.3.16 + * The DynamicSecretUpdateAzure model module. + * @module model/DynamicSecretUpdateAzure + * @version 3.6.3 */ -var CertificateChainInfo = /*#__PURE__*/function () { +var DynamicSecretUpdateAzure = /*#__PURE__*/function () { /** - * Constructs a new CertificateChainInfo. - * @alias module:model/CertificateChainInfo + * Constructs a new DynamicSecretUpdateAzure. + * dynamicSecretUpdateAzure is a command that updates azure dynamic secret + * @alias module:model/DynamicSecretUpdateAzure + * @param name {String} Dynamic secret name */ - function CertificateChainInfo() { - _classCallCheck(this, CertificateChainInfo); + function DynamicSecretUpdateAzure(name) { + _classCallCheck(this, DynamicSecretUpdateAzure); - CertificateChainInfo.initialize(this); + DynamicSecretUpdateAzure.initialize(this, name); } /** * Initializes the fields of this object. @@ -24868,49 +98231,131 @@ var CertificateChainInfo = /*#__PURE__*/function () { */ - _createClass(CertificateChainInfo, null, [{ + _createClass(DynamicSecretUpdateAzure, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CertificateChainInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateAzure from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateChainInfo} obj Optional instance to populate. - * @return {module:model/CertificateChainInfo} The populated CertificateChainInfo instance. + * @param {module:model/DynamicSecretUpdateAzure} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateAzure} The populated DynamicSecretUpdateAzure instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CertificateChainInfo(); + obj = obj || new DynamicSecretUpdateAzure(); - if (data.hasOwnProperty('certificate_chain')) { - obj['certificate_chain'] = _ApiClient["default"].convertToType(data['certificate_chain'], [_CertificateInfo["default"]]); + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); } - if (data.hasOwnProperty('certificate_format')) { - obj['certificate_format'] = _ApiClient["default"].convertToType(data['certificate_format'], 'String'); + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); } - if (data.hasOwnProperty('certificate_issuer_item_id')) { - obj['certificate_issuer_item_id'] = _ApiClient["default"].convertToType(data['certificate_issuer_item_id'], 'Number'); + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); } - if (data.hasOwnProperty('certificate_issuer_name')) { - obj['certificate_issuer_name'] = _ApiClient["default"].convertToType(data['certificate_issuer_name'], 'String'); + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); } - if (data.hasOwnProperty('certificate_pem')) { - obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('certificate_status')) { - obj['certificate_status'] = _ApiClient["default"].convertToType(data['certificate_status'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('expiration_events')) { - obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } + + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } + + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -24918,132 +98363,186 @@ var CertificateChainInfo = /*#__PURE__*/function () { } }]); - return CertificateChainInfo; + return DynamicSecretUpdateAzure; }(); /** - * @member {Array.} certificate_chain + * Azure App Object Id + * @member {String} app-obj-id + */ + + +DynamicSecretUpdateAzure.prototype['app-obj-id'] = undefined; +/** + * Azure Client ID + * @member {String} azure-client-id + */ + +DynamicSecretUpdateAzure.prototype['azure-client-id'] = undefined; +/** + * Azure Client Secret + * @member {String} azure-client-secret + */ + +DynamicSecretUpdateAzure.prototype['azure-client-secret'] = undefined; +/** + * Azure Tenant ID + * @member {String} azure-tenant-id + */ + +DynamicSecretUpdateAzure.prototype['azure-tenant-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateAzure.prototype['description'] = undefined; +/** + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' + */ + +DynamicSecretUpdateAzure.prototype['fixed-user-claim-keyname'] = 'false'; +/** + * Fixed user + * @member {Boolean} fixed-user-only + * @default false + */ + +DynamicSecretUpdateAzure.prototype['fixed-user-only'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false */ - -CertificateChainInfo.prototype['certificate_chain'] = undefined; +DynamicSecretUpdateAzure.prototype['json'] = false; /** - * @member {String} certificate_format + * Dynamic secret name + * @member {String} name */ -CertificateChainInfo.prototype['certificate_format'] = undefined; +DynamicSecretUpdateAzure.prototype['name'] = undefined; /** - * @member {Number} certificate_issuer_item_id + * Dynamic secret new name + * @member {String} new-name */ -CertificateChainInfo.prototype['certificate_issuer_item_id'] = undefined; +DynamicSecretUpdateAzure.prototype['new-name'] = undefined; /** - * @member {String} certificate_issuer_name + * The length of the password to be generated + * @member {String} password-length */ -CertificateChainInfo.prototype['certificate_issuer_name'] = undefined; +DynamicSecretUpdateAzure.prototype['password-length'] = undefined; /** - * @member {String} certificate_pem + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name */ -CertificateChainInfo.prototype['certificate_pem'] = undefined; +DynamicSecretUpdateAzure.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} certificate_status + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -CertificateChainInfo.prototype['certificate_status'] = undefined; +DynamicSecretUpdateAzure.prototype['secure-access-enable'] = undefined; /** - * @member {Array.} expiration_events + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true */ -CertificateChainInfo.prototype['expiration_events'] = undefined; -var _default = CertificateChainInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 36575: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +DynamicSecretUpdateAzure.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +DynamicSecretUpdateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretUpdateAzure.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ +DynamicSecretUpdateAzure.prototype['tags'] = undefined; /** - * The CertificateExpirationEvent model module. - * @module model/CertificateExpirationEvent - * @version 3.3.16 + * Target name + * @member {String} target-name */ -var CertificateExpirationEvent = /*#__PURE__*/function () { - /** - * Constructs a new CertificateExpirationEvent. - * @alias module:model/CertificateExpirationEvent - */ - function CertificateExpirationEvent() { - _classCallCheck(this, CertificateExpirationEvent); - CertificateExpirationEvent.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +DynamicSecretUpdateAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - _createClass(CertificateExpirationEvent, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CertificateExpirationEvent from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateExpirationEvent} obj Optional instance to populate. - * @return {module:model/CertificateExpirationEvent} The populated CertificateExpirationEvent instance. - */ +DynamicSecretUpdateAzure.prototype['uid-token'] = undefined; +/** + * User Group Object Id + * @member {String} user-group-obj-id + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CertificateExpirationEvent(); +DynamicSecretUpdateAzure.prototype['user-group-obj-id'] = undefined; +/** + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false + */ - if (data.hasOwnProperty('seconds_before')) { - obj['seconds_before'] = _ApiClient["default"].convertToType(data['seconds_before'], 'Number'); - } - } +DynamicSecretUpdateAzure.prototype['user-portal-access'] = false; +/** + * User Principal Name + * @member {String} user-principal-name + */ - return obj; - } - }]); +DynamicSecretUpdateAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ - return CertificateExpirationEvent; -}(); +DynamicSecretUpdateAzure.prototype['user-programmatic-access'] = false; /** - * @member {Number} seconds_before + * User Role Template Id + * @member {String} user-role-template-id */ +DynamicSecretUpdateAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -CertificateExpirationEvent.prototype['seconds_before'] = undefined; -var _default = CertificateExpirationEvent; +DynamicSecretUpdateAzure.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateAzure; exports["default"] = _default; /***/ }), -/***/ 9174: +/***/ 51331: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -25054,11 +98553,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Extension = _interopRequireDefault(__nccwpck_require__(37518)); - -var _Name = _interopRequireDefault(__nccwpck_require__(47654)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -25069,19 +98564,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CertificateInfo model module. - * @module model/CertificateInfo - * @version 3.3.16 + * The DynamicSecretUpdateCassandra model module. + * @module model/DynamicSecretUpdateCassandra + * @version 3.6.3 */ -var CertificateInfo = /*#__PURE__*/function () { +var DynamicSecretUpdateCassandra = /*#__PURE__*/function () { /** - * Constructs a new CertificateInfo. - * @alias module:model/CertificateInfo + * Constructs a new DynamicSecretUpdateCassandra. + * dynamicSecretUpdateCassandra is a command that updates a Cassandra dynamic secret + * @alias module:model/DynamicSecretUpdateCassandra + * @param name {String} Dynamic secret name */ - function CertificateInfo() { - _classCallCheck(this, CertificateInfo); + function DynamicSecretUpdateCassandra(name) { + _classCallCheck(this, DynamicSecretUpdateCassandra); - CertificateInfo.initialize(this); + DynamicSecretUpdateCassandra.initialize(this, name); } /** * Initializes the fields of this object. @@ -25090,113 +98587,99 @@ var CertificateInfo = /*#__PURE__*/function () { */ - _createClass(CertificateInfo, null, [{ + _createClass(DynamicSecretUpdateCassandra, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CertificateInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateCassandra from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateInfo} obj Optional instance to populate. - * @return {module:model/CertificateInfo} The populated CertificateInfo instance. + * @param {module:model/DynamicSecretUpdateCassandra} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateCassandra} The populated DynamicSecretUpdateCassandra instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CertificateInfo(); - - if (data.hasOwnProperty('ExtKeyUsage')) { - obj['ExtKeyUsage'] = _ApiClient["default"].convertToType(data['ExtKeyUsage'], ['Number']); - } + obj = obj || new DynamicSecretUpdateCassandra(); - if (data.hasOwnProperty('KeyUsage')) { - obj['KeyUsage'] = _ApiClient["default"].convertToType(data['KeyUsage'], 'Number'); - } - - if (data.hasOwnProperty('dns_names')) { - obj['dns_names'] = _ApiClient["default"].convertToType(data['dns_names'], ['String']); - } - - if (data.hasOwnProperty('email_addresses')) { - obj['email_addresses'] = _ApiClient["default"].convertToType(data['email_addresses'], ['String']); - } - - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], [_Extension["default"]]); + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); } - if (data.hasOwnProperty('ip_addresses')) { - obj['ip_addresses'] = _ApiClient["default"].convertToType(data['ip_addresses'], ['String']); + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); } - if (data.hasOwnProperty('is_ca')) { - obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _Name["default"].constructFromObject(data['issuer']); + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); } - if (data.hasOwnProperty('issuing_certificate_url')) { - obj['issuing_certificate_url'] = _ApiClient["default"].convertToType(data['issuing_certificate_url'], ['String']); + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); } - if (data.hasOwnProperty('key_size')) { - obj['key_size'] = _ApiClient["default"].convertToType(data['key_size'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('not_after')) { - obj['not_after'] = _ApiClient["default"].convertToType(data['not_after'], 'Date'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('not_before')) { - obj['not_before'] = _ApiClient["default"].convertToType(data['not_before'], 'Date'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('ocsp_server')) { - obj['ocsp_server'] = _ApiClient["default"].convertToType(data['ocsp_server'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('public_key_algorithm_name')) { - obj['public_key_algorithm_name'] = _ApiClient["default"].convertToType(data['public_key_algorithm_name'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('serial_number')) { - obj['serial_number'] = _ApiClient["default"].convertToType(data['serial_number'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('sha_1_fingerprint')) { - obj['sha_1_fingerprint'] = _ApiClient["default"].convertToType(data['sha_1_fingerprint'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('sha_256_fingerprint')) { - obj['sha_256_fingerprint'] = _ApiClient["default"].convertToType(data['sha_256_fingerprint'], 'String'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('signature')) { - obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); } - if (data.hasOwnProperty('signature_algorithm_name')) { - obj['signature_algorithm_name'] = _ApiClient["default"].convertToType(data['signature_algorithm_name'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('subject')) { - obj['subject'] = _Name["default"].constructFromObject(data['subject']); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('subject_public_key')) { - obj['subject_public_key'] = _ApiClient["default"].convertToType(data['subject_public_key'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('uris')) { - obj['uris'] = _ApiClient["default"].convertToType(data['uris'], ['String']); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -25204,131 +98687,133 @@ var CertificateInfo = /*#__PURE__*/function () { } }]); - return CertificateInfo; + return DynamicSecretUpdateCassandra; }(); /** - * @member {Array.} ExtKeyUsage - */ - - -CertificateInfo.prototype['ExtKeyUsage'] = undefined; -/** - * KeyUsage represents the set of actions that are valid for a given key. It's a bitmap of the KeyUsage* constants. - * @member {Number} KeyUsage - */ - -CertificateInfo.prototype['KeyUsage'] = undefined; -/** - * @member {Array.} dns_names - */ - -CertificateInfo.prototype['dns_names'] = undefined; -/** - * @member {Array.} email_addresses + * Cassandra creation statements + * @member {String} cassandra-creation-statements */ -CertificateInfo.prototype['email_addresses'] = undefined; -/** - * @member {Array.} extensions - */ -CertificateInfo.prototype['extensions'] = undefined; +DynamicSecretUpdateCassandra.prototype['cassandra-creation-statements'] = undefined; /** - * @member {Array.} ip_addresses + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts */ -CertificateInfo.prototype['ip_addresses'] = undefined; +DynamicSecretUpdateCassandra.prototype['cassandra-hosts'] = undefined; /** - * @member {Boolean} is_ca + * Cassandra superuser password + * @member {String} cassandra-password */ -CertificateInfo.prototype['is_ca'] = undefined; +DynamicSecretUpdateCassandra.prototype['cassandra-password'] = undefined; /** - * @member {module:model/Name} issuer + * Cassandra port + * @member {String} cassandra-port + * @default '9042' */ -CertificateInfo.prototype['issuer'] = undefined; +DynamicSecretUpdateCassandra.prototype['cassandra-port'] = '9042'; /** - * @member {Array.} issuing_certificate_url + * Cassandra superuser username + * @member {String} cassandra-username */ -CertificateInfo.prototype['issuing_certificate_url'] = undefined; +DynamicSecretUpdateCassandra.prototype['cassandra-username'] = undefined; /** - * @member {Number} key_size + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CertificateInfo.prototype['key_size'] = undefined; +DynamicSecretUpdateCassandra.prototype['delete_protection'] = undefined; /** - * @member {Date} not_after + * Description of the object + * @member {String} description */ -CertificateInfo.prototype['not_after'] = undefined; +DynamicSecretUpdateCassandra.prototype['description'] = undefined; /** - * @member {Date} not_before + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CertificateInfo.prototype['not_before'] = undefined; +DynamicSecretUpdateCassandra.prototype['json'] = false; /** - * @member {Array.} ocsp_server + * Dynamic secret name + * @member {String} name */ -CertificateInfo.prototype['ocsp_server'] = undefined; +DynamicSecretUpdateCassandra.prototype['name'] = undefined; /** - * @member {String} public_key_algorithm_name + * Dynamic secret new name + * @member {String} new-name */ -CertificateInfo.prototype['public_key_algorithm_name'] = undefined; +DynamicSecretUpdateCassandra.prototype['new-name'] = undefined; /** - * @member {String} serial_number + * The length of the password to be generated + * @member {String} password-length */ -CertificateInfo.prototype['serial_number'] = undefined; +DynamicSecretUpdateCassandra.prototype['password-length'] = undefined; /** - * @member {String} sha_1_fingerprint + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CertificateInfo.prototype['sha_1_fingerprint'] = undefined; +DynamicSecretUpdateCassandra.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} sha_256_fingerprint + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false */ -CertificateInfo.prototype['sha_256_fingerprint'] = undefined; +DynamicSecretUpdateCassandra.prototype['ssl'] = false; /** - * @member {String} signature + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate */ -CertificateInfo.prototype['signature'] = undefined; +DynamicSecretUpdateCassandra.prototype['ssl-certificate'] = undefined; /** - * @member {String} signature_algorithm_name + * Add tags attached to this object + * @member {Array.} tags */ -CertificateInfo.prototype['signature_algorithm_name'] = undefined; +DynamicSecretUpdateCassandra.prototype['tags'] = undefined; /** - * @member {module:model/Name} subject + * Target name + * @member {String} target-name */ -CertificateInfo.prototype['subject'] = undefined; +DynamicSecretUpdateCassandra.prototype['target-name'] = undefined; /** - * @member {String} subject_public_key + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -CertificateInfo.prototype['subject_public_key'] = undefined; +DynamicSecretUpdateCassandra.prototype['token'] = undefined; /** - * @member {Array.} uris + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -CertificateInfo.prototype['uris'] = undefined; +DynamicSecretUpdateCassandra.prototype['uid-token'] = undefined; /** - * @member {Number} version + * User TTL + * @member {String} user-ttl + * @default '60m' */ -CertificateInfo.prototype['version'] = undefined; -var _default = CertificateInfo; +DynamicSecretUpdateCassandra.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateCassandra; exports["default"] = _default; /***/ }), -/***/ 55006: +/***/ 91777: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -25339,11 +98824,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(62463)); - -var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(72797)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -25354,19 +98835,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CertificateIssueInfo model module. - * @module model/CertificateIssueInfo - * @version 3.3.16 + * The DynamicSecretUpdateChef model module. + * @module model/DynamicSecretUpdateChef + * @version 3.6.3 */ -var CertificateIssueInfo = /*#__PURE__*/function () { +var DynamicSecretUpdateChef = /*#__PURE__*/function () { /** - * Constructs a new CertificateIssueInfo. - * @alias module:model/CertificateIssueInfo + * Constructs a new DynamicSecretUpdateChef. + * dynamicSecretUpdateChef is a command that updates chef dynamic secret + * @alias module:model/DynamicSecretUpdateChef + * @param name {String} Dynamic secret name */ - function CertificateIssueInfo() { - _classCallCheck(this, CertificateIssueInfo); + function DynamicSecretUpdateChef(name) { + _classCallCheck(this, DynamicSecretUpdateChef); - CertificateIssueInfo.initialize(this); + DynamicSecretUpdateChef.initialize(this, name); } /** * Initializes the fields of this object. @@ -25375,37 +98858,91 @@ var CertificateIssueInfo = /*#__PURE__*/function () { */ - _createClass(CertificateIssueInfo, null, [{ + _createClass(DynamicSecretUpdateChef, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CertificateIssueInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateChef from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateIssueInfo} obj Optional instance to populate. - * @return {module:model/CertificateIssueInfo} The populated CertificateIssueInfo instance. + * @param {module:model/DynamicSecretUpdateChef} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateChef} The populated DynamicSecretUpdateChef instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CertificateIssueInfo(); + obj = obj || new DynamicSecretUpdateChef(); - if (data.hasOwnProperty('cert_issuer_type')) { - obj['cert_issuer_type'] = _ApiClient["default"].convertToType(data['cert_issuer_type'], 'String'); + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); } - if (data.hasOwnProperty('max_ttl')) { - obj['max_ttl'] = _ApiClient["default"].convertToType(data['max_ttl'], 'Number'); + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); } - if (data.hasOwnProperty('pki_cert_issuer_details')) { - obj['pki_cert_issuer_details'] = _PKICertificateIssueDetails["default"].constructFromObject(data['pki_cert_issuer_details']); + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); } - if (data.hasOwnProperty('ssh_cert_issuer_details')) { - obj['ssh_cert_issuer_details'] = _SSHCertificateIssueDetails["default"].constructFromObject(data['ssh_cert_issuer_details']); + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -25413,35 +98950,120 @@ var CertificateIssueInfo = /*#__PURE__*/function () { } }]); - return CertificateIssueInfo; + return DynamicSecretUpdateChef; }(); /** - * @member {String} cert_issuer_type + * Organizations + * @member {String} chef-orgs */ -CertificateIssueInfo.prototype['cert_issuer_type'] = undefined; +DynamicSecretUpdateChef.prototype['chef-orgs'] = undefined; /** - * @member {Number} max_ttl + * Server key + * @member {String} chef-server-key */ -CertificateIssueInfo.prototype['max_ttl'] = undefined; +DynamicSecretUpdateChef.prototype['chef-server-key'] = undefined; /** - * @member {module:model/PKICertificateIssueDetails} pki_cert_issuer_details + * Server URL + * @member {String} chef-server-url */ -CertificateIssueInfo.prototype['pki_cert_issuer_details'] = undefined; +DynamicSecretUpdateChef.prototype['chef-server-url'] = undefined; /** - * @member {module:model/SSHCertificateIssueDetails} ssh_cert_issuer_details + * Server username + * @member {String} chef-server-username */ -CertificateIssueInfo.prototype['ssh_cert_issuer_details'] = undefined; -var _default = CertificateIssueInfo; +DynamicSecretUpdateChef.prototype['chef-server-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateChef.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateChef.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateChef.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateChef.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateChef.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateChef.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateChef.prototype['producer-encryption-key-name'] = undefined; +/** + * Skip SSL + * @member {Boolean} skip-ssl + * @default true + */ + +DynamicSecretUpdateChef.prototype['skip-ssl'] = true; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateChef.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateChef.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateChef.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateChef.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateChef.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateChef; exports["default"] = _default; /***/ }), -/***/ 92561: +/***/ 55994: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -25452,7 +99074,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -25463,19 +99085,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CertificateTemplateInfo model module. - * @module model/CertificateTemplateInfo - * @version 3.3.16 + * The DynamicSecretUpdateCustom model module. + * @module model/DynamicSecretUpdateCustom + * @version 3.6.3 */ -var CertificateTemplateInfo = /*#__PURE__*/function () { +var DynamicSecretUpdateCustom = /*#__PURE__*/function () { /** - * Constructs a new CertificateTemplateInfo. - * @alias module:model/CertificateTemplateInfo + * Constructs a new DynamicSecretUpdateCustom. + * @alias module:model/DynamicSecretUpdateCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke */ - function CertificateTemplateInfo() { - _classCallCheck(this, CertificateTemplateInfo); + function DynamicSecretUpdateCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, DynamicSecretUpdateCustom); - CertificateTemplateInfo.initialize(this); + DynamicSecretUpdateCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); } /** * Initializes the fields of this object. @@ -25484,53 +99109,93 @@ var CertificateTemplateInfo = /*#__PURE__*/function () { */ - _createClass(CertificateTemplateInfo, null, [{ + _createClass(DynamicSecretUpdateCustom, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; + obj['name'] = name; + obj['revoke-sync-url'] = revokeSyncUrl; + } /** - * Constructs a CertificateTemplateInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateCustom from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateTemplateInfo} obj Optional instance to populate. - * @return {module:model/CertificateTemplateInfo} The populated CertificateTemplateInfo instance. + * @param {module:model/DynamicSecretUpdateCustom} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateCustom} The populated DynamicSecretUpdateCustom instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CertificateTemplateInfo(); + obj = obj || new DynamicSecretUpdateCustom(); - if (data.hasOwnProperty('common_name')) { - obj['common_name'] = _ApiClient["default"].convertToType(data['common_name'], 'String'); + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); } - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); } - if (data.hasOwnProperty('digest_algo')) { - obj['digest_algo'] = _ApiClient["default"].convertToType(data['digest_algo'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('organization')) { - obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String'); + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); } - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('self_signed_enabled')) { - obj['self_signed_enabled'] = _ApiClient["default"].convertToType(data['self_signed_enabled'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + } + + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -25538,55 +99203,121 @@ var CertificateTemplateInfo = /*#__PURE__*/function () { } }]); - return CertificateTemplateInfo; + return DynamicSecretUpdateCustom; }(); /** - * @member {String} common_name + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days */ -CertificateTemplateInfo.prototype['common_name'] = undefined; +DynamicSecretUpdateCustom.prototype['admin_rotation_interval_days'] = undefined; /** - * @member {String} country + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url */ -CertificateTemplateInfo.prototype['country'] = undefined; +DynamicSecretUpdateCustom.prototype['create-sync-url'] = undefined; /** - * @member {String} digest_algo + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CertificateTemplateInfo.prototype['digest_algo'] = undefined; +DynamicSecretUpdateCustom.prototype['delete_protection'] = undefined; /** - * @member {String} locality + * Description of the object + * @member {String} description */ -CertificateTemplateInfo.prototype['locality'] = undefined; +DynamicSecretUpdateCustom.prototype['description'] = undefined; /** - * @member {String} organization + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false */ -CertificateTemplateInfo.prototype['organization'] = undefined; +DynamicSecretUpdateCustom.prototype['enable_admin_rotation'] = false; /** - * @member {String} province + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CertificateTemplateInfo.prototype['province'] = undefined; +DynamicSecretUpdateCustom.prototype['json'] = false; /** - * @member {Boolean} self_signed_enabled + * Dynamic secret name + * @member {String} name */ -CertificateTemplateInfo.prototype['self_signed_enabled'] = undefined; +DynamicSecretUpdateCustom.prototype['name'] = undefined; /** - * @member {Number} ttl + * Dynamic secret new name + * @member {String} new-name */ -CertificateTemplateInfo.prototype['ttl'] = undefined; -var _default = CertificateTemplateInfo; +DynamicSecretUpdateCustom.prototype['new-name'] = undefined; +/** + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload + */ + +DynamicSecretUpdateCustom.prototype['payload'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateCustom.prototype['producer-encryption-key-name'] = undefined; +/** + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url + */ + +DynamicSecretUpdateCustom.prototype['revoke-sync-url'] = undefined; +/** + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url + */ + +DynamicSecretUpdateCustom.prototype['rotate-sync-url'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateCustom.prototype['tags'] = undefined; +/** + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 + */ + +DynamicSecretUpdateCustom.prototype['timeout-sec'] = 60; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateCustom.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateCustom.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateCustom; exports["default"] = _default; /***/ }), -/***/ 79441: +/***/ 4446: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -25597,7 +99328,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -25608,20 +99339,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ChefTargetDetails model module. - * @module model/ChefTargetDetails - * @version 3.3.16 + * The DynamicSecretUpdateDockerhub model module. + * @module model/DynamicSecretUpdateDockerhub + * @version 3.6.3 */ -var ChefTargetDetails = /*#__PURE__*/function () { +var DynamicSecretUpdateDockerhub = /*#__PURE__*/function () { /** - * Constructs a new ChefTargetDetails. - * ChefTargetDetails - * @alias module:model/ChefTargetDetails + * Constructs a new DynamicSecretUpdateDockerhub. + * dynamicSecretUpdateDockerhub is a command that updates a DOCKERHUB dynamic secret + * @alias module:model/DynamicSecretUpdateDockerhub + * @param name {String} Dynamic secret name */ - function ChefTargetDetails() { - _classCallCheck(this, ChefTargetDetails); + function DynamicSecretUpdateDockerhub(name) { + _classCallCheck(this, DynamicSecretUpdateDockerhub); - ChefTargetDetails.initialize(this); + DynamicSecretUpdateDockerhub.initialize(this, name); } /** * Initializes the fields of this object. @@ -25630,45 +99362,79 @@ var ChefTargetDetails = /*#__PURE__*/function () { */ - _createClass(ChefTargetDetails, null, [{ + _createClass(DynamicSecretUpdateDockerhub, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ChefTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateDockerhub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChefTargetDetails} obj Optional instance to populate. - * @return {module:model/ChefTargetDetails} The populated ChefTargetDetails instance. + * @param {module:model/DynamicSecretUpdateDockerhub} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateDockerhub} The populated DynamicSecretUpdateDockerhub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ChefTargetDetails(); + obj = obj || new DynamicSecretUpdateDockerhub(); - if (data.hasOwnProperty('chef_server_host_name')) { - obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('chef_server_key')) { - obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('chef_server_port')) { - obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); } - if (data.hasOwnProperty('chef_server_url')) { - obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); } - if (data.hasOwnProperty('chef_server_username')) { - obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); } - if (data.hasOwnProperty('chef_skip_ssl')) { - obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -25676,45 +99442,101 @@ var ChefTargetDetails = /*#__PURE__*/function () { } }]); - return ChefTargetDetails; + return DynamicSecretUpdateDockerhub; }(); /** - * @member {String} chef_server_host_name + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -ChefTargetDetails.prototype['chef_server_host_name'] = undefined; +DynamicSecretUpdateDockerhub.prototype['delete_protection'] = undefined; /** - * @member {String} chef_server_key + * Description of the object + * @member {String} description */ -ChefTargetDetails.prototype['chef_server_key'] = undefined; +DynamicSecretUpdateDockerhub.prototype['description'] = undefined; /** - * @member {String} chef_server_port + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password */ -ChefTargetDetails.prototype['chef_server_port'] = undefined; +DynamicSecretUpdateDockerhub.prototype['dockerhub-password'] = undefined; /** - * @member {String} chef_server_url + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes */ -ChefTargetDetails.prototype['chef_server_url'] = undefined; +DynamicSecretUpdateDockerhub.prototype['dockerhub-token-scopes'] = undefined; /** - * @member {String} chef_server_username + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username */ -ChefTargetDetails.prototype['chef_server_username'] = undefined; +DynamicSecretUpdateDockerhub.prototype['dockerhub-username'] = undefined; /** - * @member {Boolean} chef_skip_ssl + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ChefTargetDetails.prototype['chef_skip_ssl'] = undefined; -var _default = ChefTargetDetails; +DynamicSecretUpdateDockerhub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateDockerhub.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateDockerhub.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateDockerhub.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateDockerhub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateDockerhub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateDockerhub.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateDockerhub.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateDockerhub; exports["default"] = _default; /***/ }), -/***/ 4244: +/***/ 97592: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -25725,9 +99547,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(77910)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -25738,19 +99558,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ClassicKeyDetailsInfo model module. - * @module model/ClassicKeyDetailsInfo - * @version 3.3.16 + * The DynamicSecretUpdateEks model module. + * @module model/DynamicSecretUpdateEks + * @version 3.6.3 */ -var ClassicKeyDetailsInfo = /*#__PURE__*/function () { +var DynamicSecretUpdateEks = /*#__PURE__*/function () { /** - * Constructs a new ClassicKeyDetailsInfo. - * @alias module:model/ClassicKeyDetailsInfo + * Constructs a new DynamicSecretUpdateEks. + * dynamicSecretUpdateEks is a command that updates eks dynamic secret + * @alias module:model/DynamicSecretUpdateEks + * @param name {String} Dynamic secret name */ - function ClassicKeyDetailsInfo() { - _classCallCheck(this, ClassicKeyDetailsInfo); + function DynamicSecretUpdateEks(name) { + _classCallCheck(this, DynamicSecretUpdateEks); - ClassicKeyDetailsInfo.initialize(this); + DynamicSecretUpdateEks.initialize(this, name); } /** * Initializes the fields of this object. @@ -25759,71 +99581,115 @@ var ClassicKeyDetailsInfo = /*#__PURE__*/function () { */ - _createClass(ClassicKeyDetailsInfo, null, [{ + _createClass(DynamicSecretUpdateEks, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ClassicKeyDetailsInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateEks from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClassicKeyDetailsInfo} obj Optional instance to populate. - * @return {module:model/ClassicKeyDetailsInfo} The populated ClassicKeyDetailsInfo instance. + * @param {module:model/DynamicSecretUpdateEks} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateEks} The populated DynamicSecretUpdateEks instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ClassicKeyDetailsInfo(); + obj = obj || new DynamicSecretUpdateEks(); - if (data.hasOwnProperty('classic_key_attributes')) { - obj['classic_key_attributes'] = _ApiClient["default"].convertToType(data['classic_key_attributes'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('classic_key_id')) { - obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('gw_cluster_id')) { - obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); } - if (data.hasOwnProperty('is_provided_by_user')) { - obj['is_provided_by_user'] = _ApiClient["default"].convertToType(data['is_provided_by_user'], 'Boolean'); + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); } - if (data.hasOwnProperty('is_unexportable')) { - obj['is_unexportable'] = _ApiClient["default"].convertToType(data['is_unexportable'], 'Boolean'); + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); } - if (data.hasOwnProperty('key_state')) { - obj['key_state'] = _ApiClient["default"].convertToType(data['key_state'], 'String'); + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('key_type')) { - obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); } - if (data.hasOwnProperty('last_error')) { - obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); } - if (data.hasOwnProperty('public_key')) { - obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); } - if (data.hasOwnProperty('target_alias_helper')) { - obj['target_alias_helper'] = _ApiClient["default"].convertToType(data['target_alias_helper'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('target_types')) { - obj['target_types'] = _ApiClient["default"].convertToType(data['target_types'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('targets')) { - obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_ClassicKeyTargetInfo["default"]]); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -25831,76 +99697,157 @@ var ClassicKeyDetailsInfo = /*#__PURE__*/function () { } }]); - return ClassicKeyDetailsInfo; + return DynamicSecretUpdateEks; }(); /** - * @member {Object.>} classic_key_attributes + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -ClassicKeyDetailsInfo.prototype['classic_key_attributes'] = undefined; +DynamicSecretUpdateEks.prototype['delete_protection'] = undefined; /** - * @member {String} classic_key_id + * Description of the object + * @member {String} description */ -ClassicKeyDetailsInfo.prototype['classic_key_id'] = undefined; +DynamicSecretUpdateEks.prototype['description'] = undefined; /** - * @member {Number} gw_cluster_id + * Access Key ID + * @member {String} eks-access-key-id */ -ClassicKeyDetailsInfo.prototype['gw_cluster_id'] = undefined; +DynamicSecretUpdateEks.prototype['eks-access-key-id'] = undefined; /** - * @member {Boolean} is_provided_by_user + * IAM assume role + * @member {String} eks-assume-role */ -ClassicKeyDetailsInfo.prototype['is_provided_by_user'] = undefined; +DynamicSecretUpdateEks.prototype['eks-assume-role'] = undefined; /** - * @member {Boolean} is_unexportable + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert */ -ClassicKeyDetailsInfo.prototype['is_unexportable'] = undefined; +DynamicSecretUpdateEks.prototype['eks-cluster-ca-cert'] = undefined; /** - * ItemState defines the different states an Item can be in - * @member {String} key_state + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +DynamicSecretUpdateEks.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +DynamicSecretUpdateEks.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +DynamicSecretUpdateEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +DynamicSecretUpdateEks.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateEks.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateEks.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateEks.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateEks.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretUpdateEks.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateEks.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretUpdateEks.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -ClassicKeyDetailsInfo.prototype['key_state'] = undefined; +DynamicSecretUpdateEks.prototype['secure-access-enable'] = undefined; /** - * @member {String} key_type + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -ClassicKeyDetailsInfo.prototype['key_type'] = undefined; +DynamicSecretUpdateEks.prototype['secure-access-web'] = false; /** - * @member {String} last_error + * Add tags attached to this object + * @member {Array.} tags */ -ClassicKeyDetailsInfo.prototype['last_error'] = undefined; +DynamicSecretUpdateEks.prototype['tags'] = undefined; /** - * @member {String} public_key + * Target name + * @member {String} target-name */ -ClassicKeyDetailsInfo.prototype['public_key'] = undefined; +DynamicSecretUpdateEks.prototype['target-name'] = undefined; /** - * @member {String} target_alias_helper + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -ClassicKeyDetailsInfo.prototype['target_alias_helper'] = undefined; +DynamicSecretUpdateEks.prototype['token'] = undefined; /** - * @member {Array.} target_types + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -ClassicKeyDetailsInfo.prototype['target_types'] = undefined; +DynamicSecretUpdateEks.prototype['uid-token'] = undefined; /** - * @member {Array.} targets + * User TTL + * @member {String} user-ttl + * @default '15m' */ -ClassicKeyDetailsInfo.prototype['targets'] = undefined; -var _default = ClassicKeyDetailsInfo; +DynamicSecretUpdateEks.prototype['user-ttl'] = '15m'; +var _default = DynamicSecretUpdateEks; exports["default"] = _default; /***/ }), -/***/ 60797: +/***/ 22219: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -25911,7 +99858,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -25922,19 +99869,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ClassicKeyStatusInfo model module. - * @module model/ClassicKeyStatusInfo - * @version 3.3.16 + * The DynamicSecretUpdateGcp model module. + * @module model/DynamicSecretUpdateGcp + * @version 3.6.3 */ -var ClassicKeyStatusInfo = /*#__PURE__*/function () { +var DynamicSecretUpdateGcp = /*#__PURE__*/function () { /** - * Constructs a new ClassicKeyStatusInfo. - * @alias module:model/ClassicKeyStatusInfo + * Constructs a new DynamicSecretUpdateGcp. + * dynamicSecretUpdateGcp is a command that updates a GCP dynamic secret + * @alias module:model/DynamicSecretUpdateGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] */ - function ClassicKeyStatusInfo() { - _classCallCheck(this, ClassicKeyStatusInfo); + function DynamicSecretUpdateGcp(name, serviceAccountType) { + _classCallCheck(this, DynamicSecretUpdateGcp); - ClassicKeyStatusInfo.initialize(this); + DynamicSecretUpdateGcp.initialize(this, name, serviceAccountType); } /** * Initializes the fields of this object. @@ -25943,196 +99893,222 @@ var ClassicKeyStatusInfo = /*#__PURE__*/function () { */ - _createClass(ClassicKeyStatusInfo, null, [{ + _createClass(DynamicSecretUpdateGcp, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, serviceAccountType) { + obj['name'] = name; + obj['service-account-type'] = serviceAccountType; + } /** - * Constructs a ClassicKeyStatusInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateGcp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClassicKeyStatusInfo} obj Optional instance to populate. - * @return {module:model/ClassicKeyStatusInfo} The populated ClassicKeyStatusInfo instance. + * @param {module:model/DynamicSecretUpdateGcp} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateGcp} The populated DynamicSecretUpdateGcp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ClassicKeyStatusInfo(); + obj = obj || new DynamicSecretUpdateGcp(); - if (data.hasOwnProperty('error_date')) { - obj['error_date'] = _ApiClient["default"].convertToType(data['error_date'], 'Date'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('last_error')) { - obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('last_status')) { - obj['last_status'] = _ApiClient["default"].convertToType(data['last_status'], 'String'); + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); } - } - - return obj; - } - }]); - - return ClassicKeyStatusInfo; -}(); -/** - * @member {Date} error_date - */ + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); + } -ClassicKeyStatusInfo.prototype['error_date'] = undefined; -/** - * @member {String} last_error - */ + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + } -ClassicKeyStatusInfo.prototype['last_error'] = undefined; -/** - * ClassicKeyTargetStatus defines status of classic key target - * @member {String} last_status - */ + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + } -ClassicKeyStatusInfo.prototype['last_status'] = undefined; -/** - * @member {Number} version - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -ClassicKeyStatusInfo.prototype['version'] = undefined; -var _default = ClassicKeyStatusInfo; -exports["default"] = _default; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/***/ 77910: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(60797)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(18398)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + return obj; + } + }]); -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + return DynamicSecretUpdateGcp; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretUpdateGcp.prototype['delete_protection'] = undefined; /** - * The ClassicKeyTargetInfo model module. - * @module model/ClassicKeyTargetInfo - * @version 3.3.16 + * Description of the object + * @member {String} description */ -var ClassicKeyTargetInfo = /*#__PURE__*/function () { - /** - * Constructs a new ClassicKeyTargetInfo. - * @alias module:model/ClassicKeyTargetInfo - */ - function ClassicKeyTargetInfo() { - _classCallCheck(this, ClassicKeyTargetInfo); - ClassicKeyTargetInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateGcp.prototype['description'] = undefined; +/** + * @member {String} gcp-cred-type + */ +DynamicSecretUpdateGcp.prototype['gcp-cred-type'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ - _createClass(ClassicKeyTargetInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ClassicKeyTargetInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClassicKeyTargetInfo} obj Optional instance to populate. - * @return {module:model/ClassicKeyTargetInfo} The populated ClassicKeyTargetInfo instance. - */ +DynamicSecretUpdateGcp.prototype['gcp-key'] = undefined; +/** + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ClassicKeyTargetInfo(); +DynamicSecretUpdateGcp.prototype['gcp-key-algo'] = undefined; +/** + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email + */ - if (data.hasOwnProperty('external_kms_id')) { - obj['external_kms_id'] = _ExternalKMSKeyId["default"].constructFromObject(data['external_kms_id']); - } +DynamicSecretUpdateGcp.prototype['gcp-sa-email'] = undefined; +/** + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes + */ - if (data.hasOwnProperty('key_purpose')) { - obj['key_purpose'] = _ApiClient["default"].convertToType(data['key_purpose'], ['String']); - } +DynamicSecretUpdateGcp.prototype['gcp-token-scopes'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (data.hasOwnProperty('key_status')) { - obj['key_status'] = _ClassicKeyStatusInfo["default"].constructFromObject(data['key_status']); - } +DynamicSecretUpdateGcp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ - if (data.hasOwnProperty('target_assoc_id')) { - obj['target_assoc_id'] = _ApiClient["default"].convertToType(data['target_assoc_id'], 'String'); - } +DynamicSecretUpdateGcp.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ - if (data.hasOwnProperty('target_type')) { - obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); - } - } +DynamicSecretUpdateGcp.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ - return obj; - } - }]); +DynamicSecretUpdateGcp.prototype['producer-encryption-key-name'] = undefined; +/** + * Role binding definitions in json format + * @member {String} role-binding + */ - return ClassicKeyTargetInfo; -}(); +DynamicSecretUpdateGcp.prototype['role-binding'] = undefined; /** - * @member {module:model/ExternalKMSKeyId} external_kms_id + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' */ +DynamicSecretUpdateGcp.prototype['service-account-type'] = 'fixed'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -ClassicKeyTargetInfo.prototype['external_kms_id'] = undefined; +DynamicSecretUpdateGcp.prototype['tags'] = undefined; /** - * @member {Array.} key_purpose + * Target name + * @member {String} target-name */ -ClassicKeyTargetInfo.prototype['key_purpose'] = undefined; +DynamicSecretUpdateGcp.prototype['target-name'] = undefined; /** - * @member {module:model/ClassicKeyStatusInfo} key_status + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -ClassicKeyTargetInfo.prototype['key_status'] = undefined; +DynamicSecretUpdateGcp.prototype['token'] = undefined; /** - * @member {String} target_assoc_id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -ClassicKeyTargetInfo.prototype['target_assoc_id'] = undefined; +DynamicSecretUpdateGcp.prototype['uid-token'] = undefined; /** - * @member {String} target_type + * User TTL + * @member {String} user-ttl + * @default '60m' */ -ClassicKeyTargetInfo.prototype['target_type'] = undefined; -var _default = ClassicKeyTargetInfo; +DynamicSecretUpdateGcp.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateGcp; exports["default"] = _default; /***/ }), -/***/ 17951: +/***/ 19074: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -26143,7 +100119,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -26154,19 +100130,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ClientData model module. - * @module model/ClientData - * @version 3.3.16 + * The DynamicSecretUpdateGithub model module. + * @module model/DynamicSecretUpdateGithub + * @version 3.6.3 */ -var ClientData = /*#__PURE__*/function () { +var DynamicSecretUpdateGithub = /*#__PURE__*/function () { /** - * Constructs a new ClientData. - * @alias module:model/ClientData + * Constructs a new DynamicSecretUpdateGithub. + * dynamicSecretUpdateGithub is a command that updates github dynamic secret + * @alias module:model/DynamicSecretUpdateGithub + * @param name {String} Dynamic secret name */ - function ClientData() { - _classCallCheck(this, ClientData); + function DynamicSecretUpdateGithub(name) { + _classCallCheck(this, DynamicSecretUpdateGithub); - ClientData.initialize(this); + DynamicSecretUpdateGithub.initialize(this, name); } /** * Initializes the fields of this object. @@ -26175,190 +100153,211 @@ var ClientData = /*#__PURE__*/function () { */ - _createClass(ClientData, null, [{ + _createClass(DynamicSecretUpdateGithub, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ClientData from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateGithub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClientData} obj Optional instance to populate. - * @return {module:model/ClientData} The populated ClientData instance. + * @param {module:model/DynamicSecretUpdateGithub} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateGithub} The populated DynamicSecretUpdateGithub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ClientData(); + obj = obj || new DynamicSecretUpdateGithub(); - if (data.hasOwnProperty('clientCertificateData')) { - obj['clientCertificateData'] = _ApiClient["default"].convertToType(data['clientCertificateData'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('clientKeyData')) { - obj['clientKeyData'] = _ApiClient["default"].convertToType(data['clientKeyData'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('parentCertificateData')) { - obj['parentCertificateData'] = _ApiClient["default"].convertToType(data['parentCertificateData'], 'String'); + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); } - } - - return obj; - } - }]); - - return ClientData; -}(); -/** - * @member {String} clientCertificateData - */ - -ClientData.prototype['clientCertificateData'] = undefined; -/** - * @member {String} clientKeyData - */ + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } -ClientData.prototype['clientKeyData'] = undefined; -/** - * @member {String} parentCertificateData - */ + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } -ClientData.prototype['parentCertificateData'] = undefined; -var _default = ClientData; -exports["default"] = _default; + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); + } -/***/ }), + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); + } -/***/ 79508: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _ConfigHash = _interopRequireDefault(__nccwpck_require__(22177)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(46453)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(78985)); + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + } -var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(97134)); + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + return obj; + } + }]); -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + return DynamicSecretUpdateGithub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretUpdateGithub.prototype['delete_protection'] = undefined; /** - * The ConfigChange model module. - * @module model/ConfigChange - * @version 3.3.16 + * Description of the object + * @member {String} description */ -var ConfigChange = /*#__PURE__*/function () { - /** - * Constructs a new ConfigChange. - * @alias module:model/ConfigChange - */ - function ConfigChange() { - _classCallCheck(this, ConfigChange); - - ConfigChange.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateGithub.prototype['description'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ - _createClass(ConfigChange, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ConfigChange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigChange} obj Optional instance to populate. - * @return {module:model/ConfigChange} The populated ConfigChange instance. - */ +DynamicSecretUpdateGithub.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigChange(); +DynamicSecretUpdateGithub.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ - if (data.hasOwnProperty('config_hash')) { - obj['config_hash'] = _ConfigHash["default"].constructFromObject(data['config_hash']); - } +DynamicSecretUpdateGithub.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * GitHub application installation id + * @member {Number} installation-id + */ - if (data.hasOwnProperty('last_change')) { - obj['last_change'] = _LastConfigChange["default"].constructFromObject(data['last_change']); - } +DynamicSecretUpdateGithub.prototype['installation-id'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization + */ - if (data.hasOwnProperty('last_status')) { - obj['last_status'] = _LastStatusInfo["default"].constructFromObject(data['last_status']); - } +DynamicSecretUpdateGithub.prototype['installation-organization'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository + */ - if (data.hasOwnProperty('required_activity')) { - obj['required_activity'] = _RequiredActivity["default"].constructFromObject(data['required_activity']); - } +DynamicSecretUpdateGithub.prototype['installation-repository'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (data.hasOwnProperty('update_stamp')) { - obj['update_stamp'] = _ApiClient["default"].convertToType(data['update_stamp'], 'Number'); - } - } +DynamicSecretUpdateGithub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ - return obj; - } - }]); +DynamicSecretUpdateGithub.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ - return ConfigChange; -}(); +DynamicSecretUpdateGithub.prototype['new-name'] = undefined; /** - * @member {module:model/ConfigHash} config_hash + * Add tags attached to this object + * @member {Array.} tags */ +DynamicSecretUpdateGithub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -ConfigChange.prototype['config_hash'] = undefined; +DynamicSecretUpdateGithub.prototype['target-name'] = undefined; /** - * @member {module:model/LastConfigChange} last_change + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -ConfigChange.prototype['last_change'] = undefined; +DynamicSecretUpdateGithub.prototype['token'] = undefined; /** - * @member {module:model/LastStatusInfo} last_status + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions */ -ConfigChange.prototype['last_status'] = undefined; +DynamicSecretUpdateGithub.prototype['token-permissions'] = undefined; /** - * @member {module:model/RequiredActivity} required_activity + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories */ -ConfigChange.prototype['required_activity'] = undefined; +DynamicSecretUpdateGithub.prototype['token-repositories'] = undefined; /** - * @member {Number} update_stamp + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -ConfigChange.prototype['update_stamp'] = undefined; -var _default = ConfigChange; +DynamicSecretUpdateGithub.prototype['uid-token'] = undefined; +var _default = DynamicSecretUpdateGithub; exports["default"] = _default; /***/ }), -/***/ 22177: +/***/ 88144: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -26369,7 +100368,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -26380,19 +100379,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ConfigHash model module. - * @module model/ConfigHash - * @version 3.3.16 + * The DynamicSecretUpdateGke model module. + * @module model/DynamicSecretUpdateGke + * @version 3.6.3 */ -var ConfigHash = /*#__PURE__*/function () { +var DynamicSecretUpdateGke = /*#__PURE__*/function () { /** - * Constructs a new ConfigHash. - * @alias module:model/ConfigHash + * Constructs a new DynamicSecretUpdateGke. + * dynamicSecretUpdateGke is a command that updates gke dynamic secret + * @alias module:model/DynamicSecretUpdateGke + * @param name {String} Dynamic secret name */ - function ConfigHash() { - _classCallCheck(this, ConfigHash); + function DynamicSecretUpdateGke(name) { + _classCallCheck(this, DynamicSecretUpdateGke); - ConfigHash.initialize(this); + DynamicSecretUpdateGke.initialize(this, name); } /** * Initializes the fields of this object. @@ -26401,89 +100402,107 @@ var ConfigHash = /*#__PURE__*/function () { */ - _createClass(ConfigHash, null, [{ + _createClass(DynamicSecretUpdateGke, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ConfigHash from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateGke from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigHash} obj Optional instance to populate. - * @return {module:model/ConfigHash} The populated ConfigHash instance. + * @param {module:model/DynamicSecretUpdateGke} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateGke} The populated DynamicSecretUpdateGke instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ConfigHash(); + obj = obj || new DynamicSecretUpdateGke(); - if (data.hasOwnProperty('admins')) { - obj['admins'] = _ApiClient["default"].convertToType(data['admins'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('cache')) { - obj['cache'] = _ApiClient["default"].convertToType(data['cache'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('customer_fragements')) { - obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], 'String'); + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); } - if (data.hasOwnProperty('general')) { - obj['general'] = _ApiClient["default"].convertToType(data['general'], 'String'); + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); } - if (data.hasOwnProperty('k8s_auths')) { - obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], 'String'); + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('kmip')) { - obj['kmip'] = _ApiClient["default"].convertToType(data['kmip'], 'String'); + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); } - if (data.hasOwnProperty('ldap')) { - obj['ldap'] = _ApiClient["default"].convertToType(data['ldap'], 'String'); + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); } - if (data.hasOwnProperty('leadership')) { - obj['leadership'] = _ApiClient["default"].convertToType(data['leadership'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('log_forwarding')) { - obj['log_forwarding'] = _ApiClient["default"].convertToType(data['log_forwarding'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('m_queue')) { - obj['m_queue'] = _ApiClient["default"].convertToType(data['m_queue'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('migration_status')) { - obj['migration_status'] = _ApiClient["default"].convertToType(data['migration_status'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('migrations')) { - obj['migrations'] = _ApiClient["default"].convertToType(data['migrations'], 'String'); + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); } - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ApiClient["default"].convertToType(data['producers'], Object); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('producers_status')) { - obj['producers_status'] = _ApiClient["default"].convertToType(data['producers_status'], 'String'); + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('rotators')) { - obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], Object); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('saml')) { - obj['saml'] = _ApiClient["default"].convertToType(data['saml'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('universal_identity')) { - obj['universal_identity'] = _ApiClient["default"].convertToType(data['universal_identity'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -26491,100 +100510,144 @@ var ConfigHash = /*#__PURE__*/function () { } }]); - return ConfigHash; + return DynamicSecretUpdateGke; }(); /** - * @member {String} admins + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -ConfigHash.prototype['admins'] = undefined; +DynamicSecretUpdateGke.prototype['delete_protection'] = undefined; /** - * @member {String} cache + * Description of the object + * @member {String} description */ -ConfigHash.prototype['cache'] = undefined; +DynamicSecretUpdateGke.prototype['description'] = undefined; /** - * @member {String} customer_fragements + * GKE Service Account key file path + * @member {String} gke-account-key */ -ConfigHash.prototype['customer_fragements'] = undefined; +DynamicSecretUpdateGke.prototype['gke-account-key'] = undefined; /** - * @member {String} general + * GKE cluster CA certificate + * @member {String} gke-cluster-cert */ -ConfigHash.prototype['general'] = undefined; +DynamicSecretUpdateGke.prototype['gke-cluster-cert'] = undefined; /** - * @member {String} k8s_auths + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint */ -ConfigHash.prototype['k8s_auths'] = undefined; +DynamicSecretUpdateGke.prototype['gke-cluster-endpoint'] = undefined; /** - * @member {String} kmip + * GKE cluster name + * @member {String} gke-cluster-name */ -ConfigHash.prototype['kmip'] = undefined; +DynamicSecretUpdateGke.prototype['gke-cluster-name'] = undefined; /** - * @member {String} ldap + * GKE service account email + * @member {String} gke-service-account-email */ -ConfigHash.prototype['ldap'] = undefined; +DynamicSecretUpdateGke.prototype['gke-service-account-email'] = undefined; /** - * @member {String} leadership + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ConfigHash.prototype['leadership'] = undefined; +DynamicSecretUpdateGke.prototype['json'] = false; /** - * @member {String} log_forwarding + * Dynamic secret name + * @member {String} name */ -ConfigHash.prototype['log_forwarding'] = undefined; +DynamicSecretUpdateGke.prototype['name'] = undefined; /** - * @member {String} m_queue + * Dynamic secret new name + * @member {String} new-name */ -ConfigHash.prototype['m_queue'] = undefined; +DynamicSecretUpdateGke.prototype['new-name'] = undefined; /** - * @member {String} migration_status + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -ConfigHash.prototype['migration_status'] = undefined; +DynamicSecretUpdateGke.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} migrations + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading */ -ConfigHash.prototype['migrations'] = undefined; +DynamicSecretUpdateGke.prototype['secure-access-allow-port-forwading'] = undefined; /** - * @member {Object} producers + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -ConfigHash.prototype['producers'] = undefined; +DynamicSecretUpdateGke.prototype['secure-access-bastion-issuer'] = undefined; /** - * @member {String} producers_status + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint */ -ConfigHash.prototype['producers_status'] = undefined; +DynamicSecretUpdateGke.prototype['secure-access-cluster-endpoint'] = undefined; /** - * @member {Object} rotators + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -ConfigHash.prototype['rotators'] = undefined; +DynamicSecretUpdateGke.prototype['secure-access-enable'] = undefined; /** - * @member {String} saml + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -ConfigHash.prototype['saml'] = undefined; +DynamicSecretUpdateGke.prototype['secure-access-web'] = false; /** - * @member {String} universal_identity + * Add tags attached to this object + * @member {Array.} tags */ -ConfigHash.prototype['universal_identity'] = undefined; -var _default = ConfigHash; +DynamicSecretUpdateGke.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateGke.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateGke.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateGke.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateGke.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateGke; exports["default"] = _default; /***/ }), -/***/ 6418: +/***/ 30989: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -26595,7 +100658,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -26606,19 +100669,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Configure model module. - * @module model/Configure - * @version 3.3.16 + * The DynamicSecretUpdateHanaDb model module. + * @module model/DynamicSecretUpdateHanaDb + * @version 3.6.3 */ -var Configure = /*#__PURE__*/function () { +var DynamicSecretUpdateHanaDb = /*#__PURE__*/function () { /** - * Constructs a new Configure. - * @alias module:model/Configure + * Constructs a new DynamicSecretUpdateHanaDb. + * dynamicSecretUpdateHanaDb is a command that updates hanadb dynamic secret + * @alias module:model/DynamicSecretUpdateHanaDb + * @param name {String} Dynamic secret name */ - function Configure() { - _classCallCheck(this, Configure); + function DynamicSecretUpdateHanaDb(name) { + _classCallCheck(this, DynamicSecretUpdateHanaDb); - Configure.initialize(this); + DynamicSecretUpdateHanaDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -26627,69 +100692,119 @@ var Configure = /*#__PURE__*/function () { */ - _createClass(Configure, null, [{ + _createClass(DynamicSecretUpdateHanaDb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a Configure from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateHanaDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Configure} obj Optional instance to populate. - * @return {module:model/Configure} The populated Configure instance. + * @param {module:model/DynamicSecretUpdateHanaDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateHanaDb} The populated DynamicSecretUpdateHanaDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Configure(); + obj = obj || new DynamicSecretUpdateHanaDb(); - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('access-type')) { - obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); } - if (data.hasOwnProperty('account-id')) { - obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); } - if (data.hasOwnProperty('admin-email')) { - obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); } - if (data.hasOwnProperty('admin-password')) { - obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); } - if (data.hasOwnProperty('azure_ad_object_id')) { - obj['azure_ad_object_id'] = _ApiClient["default"].convertToType(data['azure_ad_object_id'], 'String'); + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); } - if (data.hasOwnProperty('cert-data')) { - obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); } - if (data.hasOwnProperty('gcp-audience')) { - obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('k8s-auth-config-name')) { - obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -26697,90 +100812,164 @@ var Configure = /*#__PURE__*/function () { } }]); - return Configure; + return DynamicSecretUpdateHanaDb; }(); /** - * Access ID - * @member {String} access-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -Configure.prototype['access-id'] = undefined; +DynamicSecretUpdateHanaDb.prototype['delete_protection'] = undefined; /** - * Access Key - * @member {String} access-key + * Description of the object + * @member {String} description */ -Configure.prototype['access-key'] = undefined; +DynamicSecretUpdateHanaDb.prototype['description'] = undefined; /** - * Access Type (access_key/password/azure_ad/saml/oidc/aws_iam/gcp/k8s/cert) - * @member {String} access-type - * @default 'access_key' + * HanaDb Name + * @member {String} hana-dbname */ -Configure.prototype['access-type'] = 'access_key'; +DynamicSecretUpdateHanaDb.prototype['hana-dbname'] = undefined; /** - * Account id (relevant only for access-type=password where the email address is associated with more than one account) - * @member {String} account-id + * HanaDb Creation statements + * @member {String} hanadb-create-statements */ -Configure.prototype['account-id'] = undefined; +DynamicSecretUpdateHanaDb.prototype['hanadb-create-statements'] = undefined; /** - * Email (relevant only for access-type=password) - * @member {String} admin-email + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' */ -Configure.prototype['admin-email'] = undefined; +DynamicSecretUpdateHanaDb.prototype['hanadb-host'] = '127.0.0.1'; /** - * Password (relevant only for access-type=password) - * @member {String} admin-password + * HanaDb Password + * @member {String} hanadb-password */ -Configure.prototype['admin-password'] = undefined; +DynamicSecretUpdateHanaDb.prototype['hanadb-password'] = undefined; /** - * Azure Active Directory ObjectId (relevant only for access-type=azure_ad) - * @member {String} azure_ad_object_id + * HanaDb Port + * @member {String} hanadb-port + * @default '443' */ -Configure.prototype['azure_ad_object_id'] = undefined; +DynamicSecretUpdateHanaDb.prototype['hanadb-port'] = '443'; /** - * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert in Curl Context) - * @member {String} cert-data + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements */ -Configure.prototype['cert-data'] = undefined; +DynamicSecretUpdateHanaDb.prototype['hanadb-revocation-statements'] = undefined; /** - * GCP JWT audience - * @member {String} gcp-audience - * @default 'akeyless.io' + * HanaDb Username + * @member {String} hanadb-username */ -Configure.prototype['gcp-audience'] = 'akeyless.io'; +DynamicSecretUpdateHanaDb.prototype['hanadb-username'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -Configure.prototype['json'] = false; +DynamicSecretUpdateHanaDb.prototype['json'] = false; /** - * The K8S Auth config name (relevant only for access-type=k8s) - * @member {String} k8s-auth-config-name + * Dynamic secret name + * @member {String} name */ -Configure.prototype['k8s-auth-config-name'] = undefined; +DynamicSecretUpdateHanaDb.prototype['name'] = undefined; /** - * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context) - * @member {String} key-data + * Dynamic secret new name + * @member {String} new-name */ -Configure.prototype['key-data'] = undefined; -var _default = Configure; +DynamicSecretUpdateHanaDb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateHanaDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateHanaDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateHanaDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateHanaDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateHanaDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateHanaDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateHanaDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateHanaDb; exports["default"] = _default; /***/ }), -/***/ 66228: +/***/ 55273: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -26791,7 +100980,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -26802,19 +100991,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ConfigureOutput model module. - * @module model/ConfigureOutput - * @version 3.3.16 + * The DynamicSecretUpdateK8s model module. + * @module model/DynamicSecretUpdateK8s + * @version 3.6.3 */ -var ConfigureOutput = /*#__PURE__*/function () { +var DynamicSecretUpdateK8s = /*#__PURE__*/function () { /** - * Constructs a new ConfigureOutput. - * @alias module:model/ConfigureOutput + * Constructs a new DynamicSecretUpdateK8s. + * dynamicSecretUpdateK8s is a command that updates k8s dynamic secret + * @alias module:model/DynamicSecretUpdateK8s + * @param name {String} Dynamic secret name */ - function ConfigureOutput() { - _classCallCheck(this, ConfigureOutput); + function DynamicSecretUpdateK8s(name) { + _classCallCheck(this, DynamicSecretUpdateK8s); - ConfigureOutput.initialize(this); + DynamicSecretUpdateK8s.initialize(this, name); } /** * Initializes the fields of this object. @@ -26823,169 +101014,127 @@ var ConfigureOutput = /*#__PURE__*/function () { */ - _createClass(ConfigureOutput, null, [{ + _createClass(DynamicSecretUpdateK8s, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ConfigureOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateK8s from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigureOutput} obj Optional instance to populate. - * @return {module:model/ConfigureOutput} The populated ConfigureOutput instance. + * @param {module:model/DynamicSecretUpdateK8s} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateK8s} The populated DynamicSecretUpdateK8s instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ConfigureOutput(); + obj = obj || new DynamicSecretUpdateK8s(); - if (data.hasOwnProperty('profile')) { - obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - } - - return obj; - } - }]); - - return ConfigureOutput; -}(); -/** - * @member {String} profile - */ - - -ConfigureOutput.prototype['profile'] = undefined; -/** - * @member {String} token - */ - -ConfigureOutput.prototype['token'] = undefined; -var _default = ConfigureOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 99034: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } -/** - * The Connect model module. - * @module model/Connect - * @version 3.3.16 - */ -var Connect = /*#__PURE__*/function () { - /** - * Constructs a new Connect. - * Connect is a command that performs secure remote access - * @alias module:model/Connect - */ - function Connect() { - _classCallCheck(this, Connect); + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } - Connect.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } - _createClass(Connect, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Connect from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Connect} obj Optional instance to populate. - * @return {module:model/Connect} The populated Connect instance. - */ + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Connect(); + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } - if (data.hasOwnProperty('Helper')) { - obj['Helper'] = _ApiClient["default"].convertToType(data['Helper'], Object); + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); } - if (data.hasOwnProperty('RcFileOverride')) { - obj['RcFileOverride'] = _ApiClient["default"].convertToType(data['RcFileOverride'], 'String'); + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); } - if (data.hasOwnProperty('bastion-ctrl-path')) { - obj['bastion-ctrl-path'] = _ApiClient["default"].convertToType(data['bastion-ctrl-path'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('bastion-ctrl-port')) { - obj['bastion-ctrl-port'] = _ApiClient["default"].convertToType(data['bastion-ctrl-port'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('bastion-ctrl-proto')) { - obj['bastion-ctrl-proto'] = _ApiClient["default"].convertToType(data['bastion-ctrl-proto'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('bastion-ctrl-subdomain')) { - obj['bastion-ctrl-subdomain'] = _ApiClient["default"].convertToType(data['bastion-ctrl-subdomain'], 'String'); + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); } - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('identity-file')) { - obj['identity-file'] = _ApiClient["default"].convertToType(data['identity-file'], 'String'); + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('ssh-command')) { - obj['ssh-command'] = _ApiClient["default"].convertToType(data['ssh-command'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('ssh-extra-args')) { - obj['ssh-extra-args'] = _ApiClient["default"].convertToType(data['ssh-extra-args'], 'String'); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (data.hasOwnProperty('ssh-legacy-signing-alg')) { - obj['ssh-legacy-signing-alg'] = _ApiClient["default"].convertToType(data['ssh-legacy-signing-alg'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('target')) { - obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -26996,8 +101145,12 @@ var Connect = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('via-bastion')) { - obj['via-bastion'] = _ApiClient["default"].convertToType(data['via-bastion'], 'String'); + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -27005,120 +101158,200 @@ var Connect = /*#__PURE__*/function () { } }]); - return Connect; + return DynamicSecretUpdateK8s; }(); /** - * @member {Object} Helper + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -Connect.prototype['Helper'] = undefined; +DynamicSecretUpdateK8s.prototype['delete_protection'] = undefined; /** - * used to override .akeyless-connect.rc in tests - * @member {String} RcFileOverride + * Description of the object + * @member {String} description */ -Connect.prototype['RcFileOverride'] = undefined; +DynamicSecretUpdateK8s.prototype['description'] = undefined; /** - * The Bastion API path - * @member {String} bastion-ctrl-path + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Connect.prototype['bastion-ctrl-path'] = undefined; +DynamicSecretUpdateK8s.prototype['json'] = false; /** - * The Bastion API Port - * @member {String} bastion-ctrl-port - * @default '9900' + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces */ -Connect.prototype['bastion-ctrl-port'] = '9900'; +DynamicSecretUpdateK8s.prototype['k8s-allowed-namespaces'] = undefined; /** - * The Bastion API protocol - * @member {String} bastion-ctrl-proto - * @default 'http' + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert */ -Connect.prototype['bastion-ctrl-proto'] = 'http'; +DynamicSecretUpdateK8s.prototype['k8s-cluster-ca-cert'] = undefined; /** - * The Bastion API prefix - * @member {String} bastion-ctrl-subdomain + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint */ -Connect.prototype['bastion-ctrl-subdomain'] = undefined; +DynamicSecretUpdateK8s.prototype['k8s-cluster-endpoint'] = undefined; /** - * The Akeyless certificate issuer name - * @member {String} cert-issuer-name + * K8S cluster Bearer token + * @member {String} k8s-cluster-token */ -Connect.prototype['cert-issuer-name'] = undefined; +DynamicSecretUpdateK8s.prototype['k8s-cluster-token'] = undefined; /** - * The file from which the identity (private key) for public key authentication is read - * @member {String} identity-file + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace */ -Connect.prototype['identity-file'] = undefined; +DynamicSecretUpdateK8s.prototype['k8s-namespace'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name */ -Connect.prototype['json'] = false; +DynamicSecretUpdateK8s.prototype['k8s-predefined-role-name'] = undefined; /** - * The Secret name (for database and AWS producers - producer name) + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type + */ + +DynamicSecretUpdateK8s.prototype['k8s-predefined-role-type'] = undefined; +/** + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def + */ + +DynamicSecretUpdateK8s.prototype['k8s-rolebinding-yaml-def'] = undefined; +/** + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account + */ + +DynamicSecretUpdateK8s.prototype['k8s-service-account'] = undefined; +/** + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type + */ + +DynamicSecretUpdateK8s.prototype['k8s-service-account-type'] = undefined; +/** + * Dynamic secret name * @member {String} name */ -Connect.prototype['name'] = undefined; +DynamicSecretUpdateK8s.prototype['name'] = undefined; /** - * Path to SSH executable. e.g. /usr/bin/ssh - * @member {String} ssh-command + * Dynamic secret new name + * @member {String} new-name */ -Connect.prototype['ssh-command'] = undefined; +DynamicSecretUpdateK8s.prototype['new-name'] = undefined; /** - * The Use to add offical SSH arguments (except -i) - * @member {String} ssh-extra-args + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -Connect.prototype['ssh-extra-args'] = undefined; +DynamicSecretUpdateK8s.prototype['producer-encryption-key-name'] = undefined; /** - * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the ssh certificate. - * @member {Boolean} ssh-legacy-signing-alg + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretUpdateK8s.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateK8s.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretUpdateK8s.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url + * @member {String} secure-access-dashboard-url + */ + +DynamicSecretUpdateK8s.prototype['secure-access-dashboard-url'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateK8s.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web * @default false */ -Connect.prototype['ssh-legacy-signing-alg'] = false; +DynamicSecretUpdateK8s.prototype['secure-access-web'] = false; /** - * The target - * @member {String} target + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false */ -Connect.prototype['target'] = undefined; +DynamicSecretUpdateK8s.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretUpdateK8s.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateK8s.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateK8s.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -Connect.prototype['token'] = undefined; +DynamicSecretUpdateK8s.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -Connect.prototype['uid-token'] = undefined; +DynamicSecretUpdateK8s.prototype['uid-token'] = undefined; /** - * The jump box server - * @member {String} via-bastion + * Use the GW's service account + * @member {Boolean} use-gw-service-account */ -Connect.prototype['via-bastion'] = undefined; -var _default = Connect; +DynamicSecretUpdateK8s.prototype['use-gw-service-account'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateK8s.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateK8s; exports["default"] = _default; /***/ }), -/***/ 36718: +/***/ 22416: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -27129,7 +101362,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -27140,22 +101373,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAWSTarget model module. - * @module model/CreateAWSTarget - * @version 3.3.16 + * The DynamicSecretUpdateLdap model module. + * @module model/DynamicSecretUpdateLdap + * @version 3.6.3 */ -var CreateAWSTarget = /*#__PURE__*/function () { +var DynamicSecretUpdateLdap = /*#__PURE__*/function () { /** - * Constructs a new CreateAWSTarget. - * @alias module:model/CreateAWSTarget - * @param accessKey {String} AWS secret access key - * @param accessKeyId {String} AWS access key ID - * @param name {String} Target name + * Constructs a new DynamicSecretUpdateLdap. + * dynamicSecretUpdateLdap is a command that updates ldap dynamic secret + * @alias module:model/DynamicSecretUpdateLdap + * @param name {String} Dynamic secret name */ - function CreateAWSTarget(accessKey, accessKeyId, name) { - _classCallCheck(this, CreateAWSTarget); + function DynamicSecretUpdateLdap(name) { + _classCallCheck(this, DynamicSecretUpdateLdap); - CreateAWSTarget.initialize(this, accessKey, accessKeyId, name); + DynamicSecretUpdateLdap.initialize(this, name); } /** * Initializes the fields of this object. @@ -27164,73 +101396,107 @@ var CreateAWSTarget = /*#__PURE__*/function () { */ - _createClass(CreateAWSTarget, null, [{ + _createClass(DynamicSecretUpdateLdap, null, [{ key: "initialize", - value: function initialize(obj, accessKey, accessKeyId, name) { - obj['access-key'] = accessKey; - obj['access-key-id'] = accessKeyId; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateAWSTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateLdap from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAWSTarget} obj Optional instance to populate. - * @return {module:model/CreateAWSTarget} The populated CreateAWSTarget instance. + * @param {module:model/DynamicSecretUpdateLdap} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateLdap} The populated DynamicSecretUpdateLdap instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAWSTarget(); + obj = obj || new DynamicSecretUpdateLdap(); - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); } - if (data.hasOwnProperty('access-key-id')) { - obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('session-token')) { - obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -27238,89 +101504,144 @@ var CreateAWSTarget = /*#__PURE__*/function () { } }]); - return CreateAWSTarget; + return DynamicSecretUpdateLdap; }(); /** - * AWS secret access key - * @member {String} access-key + * Bind DN + * @member {String} bind-dn */ -CreateAWSTarget.prototype['access-key'] = undefined; +DynamicSecretUpdateLdap.prototype['bind-dn'] = undefined; /** - * AWS access key ID - * @member {String} access-key-id + * Bind DN Password + * @member {String} bind-dn-password */ -CreateAWSTarget.prototype['access-key-id'] = undefined; +DynamicSecretUpdateLdap.prototype['bind-dn-password'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAWSTarget.prototype['comment'] = undefined; +DynamicSecretUpdateLdap.prototype['delete_protection'] = undefined; /** * Description of the object * @member {String} description */ -CreateAWSTarget.prototype['description'] = undefined; +DynamicSecretUpdateLdap.prototype['description'] = undefined; +/** + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' + */ + +DynamicSecretUpdateLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ + +DynamicSecretUpdateLdap.prototype['group-dn'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateAWSTarget.prototype['json'] = false; +DynamicSecretUpdateLdap.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * CA Certificate File Content + * @member {String} ldap-ca-cert */ -CreateAWSTarget.prototype['key'] = undefined; +DynamicSecretUpdateLdap.prototype['ldap-ca-cert'] = undefined; /** - * Target name + * LDAP Server URL + * @member {String} ldap-url + */ + +DynamicSecretUpdateLdap.prototype['ldap-url'] = undefined; +/** + * Dynamic secret name * @member {String} name */ -CreateAWSTarget.prototype['name'] = undefined; +DynamicSecretUpdateLdap.prototype['name'] = undefined; /** - * AWS region - * @member {String} region - * @default 'us-east-2' + * Dynamic secret new name + * @member {String} new-name */ -CreateAWSTarget.prototype['region'] = 'us-east-2'; +DynamicSecretUpdateLdap.prototype['new-name'] = undefined; /** - * Required only for temporary security credentials retrieved using STS - * @member {String} session-token + * The length of the password to be generated + * @member {String} password-length */ -CreateAWSTarget.prototype['session-token'] = undefined; +DynamicSecretUpdateLdap.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateLdap.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateLdap.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAWSTarget.prototype['token'] = undefined; +DynamicSecretUpdateLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +DynamicSecretUpdateLdap.prototype['token-expiration'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAWSTarget.prototype['uid-token'] = undefined; +DynamicSecretUpdateLdap.prototype['uid-token'] = undefined; /** - * Use the GW's Cloud IAM - * @member {Boolean} use-gw-cloud-identity + * User Attribute + * @member {String} user-attribute */ -CreateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateAWSTarget; +DynamicSecretUpdateLdap.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ + +DynamicSecretUpdateLdap.prototype['user-dn'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateLdap.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateLdap; exports["default"] = _default; /***/ }), -/***/ 56001: +/***/ 74019: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -27331,7 +101652,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -27342,19 +101663,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAWSTargetOutput model module. - * @module model/CreateAWSTargetOutput - * @version 3.3.16 + * The DynamicSecretUpdateMongoDb model module. + * @module model/DynamicSecretUpdateMongoDb + * @version 3.6.3 */ -var CreateAWSTargetOutput = /*#__PURE__*/function () { +var DynamicSecretUpdateMongoDb = /*#__PURE__*/function () { /** - * Constructs a new CreateAWSTargetOutput. - * @alias module:model/CreateAWSTargetOutput + * Constructs a new DynamicSecretUpdateMongoDb. + * dynamicSecretUpdateMongoDb is a command that updates either mongodb dynamic secret or mongodb atlas dynamic secret + * @alias module:model/DynamicSecretUpdateMongoDb + * @param name {String} Dynamic secret name */ - function CreateAWSTargetOutput() { - _classCallCheck(this, CreateAWSTargetOutput); + function DynamicSecretUpdateMongoDb(name) { + _classCallCheck(this, DynamicSecretUpdateMongoDb); - CreateAWSTargetOutput.initialize(this); + DynamicSecretUpdateMongoDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -27363,144 +101686,123 @@ var CreateAWSTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateAWSTargetOutput, null, [{ + _createClass(DynamicSecretUpdateMongoDb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CreateAWSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateMongoDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAWSTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateAWSTargetOutput} The populated CreateAWSTargetOutput instance. + * @param {module:model/DynamicSecretUpdateMongoDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateMongoDb} The populated DynamicSecretUpdateMongoDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAWSTargetOutput(); + obj = obj || new DynamicSecretUpdateMongoDb(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - - return obj; - } - }]); - - return CreateAWSTargetOutput; -}(); -/** - * @member {Number} target_id - */ - -CreateAWSTargetOutput.prototype['target_id'] = undefined; -var _default = CreateAWSTargetOutput; -exports["default"] = _default; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ 69748: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } -/** - * The CreateArtifactoryTarget model module. - * @module model/CreateArtifactoryTarget - * @version 3.3.16 - */ -var CreateArtifactoryTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateArtifactoryTarget. - * @alias module:model/CreateArtifactoryTarget - * @param artifactoryAdminName {String} Artifactory Admin Name - * @param artifactoryAdminPwd {String} Artifactory Admin password - * @param baseUrl {String} Base URL - * @param name {String} Target name - */ - function CreateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - _classCallCheck(this, CreateArtifactoryTarget); + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } - CreateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + } - _createClass(CreateArtifactoryTarget, null, [{ - key: "initialize", - value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - obj['artifactory-admin-name'] = artifactoryAdminName; - obj['artifactory-admin-pwd'] = artifactoryAdminPwd; - obj['base-url'] = baseUrl; - obj['name'] = name; - } - /** - * Constructs a CreateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateArtifactoryTarget} obj Optional instance to populate. - * @return {module:model/CreateArtifactoryTarget} The populated CreateArtifactoryTarget instance. - */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateArtifactoryTarget(); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -27510,164 +101812,197 @@ var CreateArtifactoryTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateArtifactoryTarget; + return DynamicSecretUpdateMongoDb; }(); /** - * Artifactory Admin Name - * @member {String} artifactory-admin-name + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; +DynamicSecretUpdateMongoDb.prototype['delete_protection'] = undefined; /** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd + * Description of the object + * @member {String} description */ -CreateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; +DynamicSecretUpdateMongoDb.prototype['description'] = undefined; /** - * Base URL - * @member {String} base-url + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateArtifactoryTarget.prototype['base-url'] = undefined; +DynamicSecretUpdateMongoDb.prototype['json'] = false; /** - * Deprecated - use description - * @member {String} comment + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key */ -CreateArtifactoryTarget.prototype['comment'] = undefined; +DynamicSecretUpdateMongoDb.prototype['mongodb-atlas-api-private-key'] = undefined; /** - * Description of the object - * @member {String} description + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key */ -CreateArtifactoryTarget.prototype['description'] = undefined; +DynamicSecretUpdateMongoDb.prototype['mongodb-atlas-api-public-key'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id */ -CreateArtifactoryTarget.prototype['json'] = false; +DynamicSecretUpdateMongoDb.prototype['mongodb-atlas-project-id'] = undefined; /** - * The name of a key used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * MongoDB custom data + * @member {String} mongodb-custom-data */ -CreateArtifactoryTarget.prototype['key'] = undefined; +DynamicSecretUpdateMongoDb.prototype['mongodb-custom-data'] = undefined; /** - * Target name - * @member {String} name + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db */ -CreateArtifactoryTarget.prototype['name'] = undefined; +DynamicSecretUpdateMongoDb.prototype['mongodb-default-auth-db'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * MongoDB server host and port + * @member {String} mongodb-host-port */ -CreateArtifactoryTarget.prototype['token'] = undefined; +DynamicSecretUpdateMongoDb.prototype['mongodb-host-port'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * MongoDB Name + * @member {String} mongodb-name */ -CreateArtifactoryTarget.prototype['uid-token'] = undefined; -var _default = CreateArtifactoryTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 35788: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +DynamicSecretUpdateMongoDb.prototype['mongodb-name'] = undefined; +/** + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password + */ -"use strict"; +DynamicSecretUpdateMongoDb.prototype['mongodb-password'] = undefined; +/** + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' + */ +DynamicSecretUpdateMongoDb.prototype['mongodb-roles'] = '[]'; +/** + * MongoDB server URI + * @member {String} mongodb-server-uri + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +DynamicSecretUpdateMongoDb.prototype['mongodb-server-uri'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +DynamicSecretUpdateMongoDb.prototype['mongodb-uri-options'] = undefined; +/** + * MongoDB server username + * @member {String} mongodb-username + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +DynamicSecretUpdateMongoDb.prototype['mongodb-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +DynamicSecretUpdateMongoDb.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +DynamicSecretUpdateMongoDb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretUpdateMongoDb.prototype['password-length'] = undefined; +/** + * Encrypt producer with following key + * @member {String} producer-encryption-key-name + */ +DynamicSecretUpdateMongoDb.prototype['producer-encryption-key-name'] = undefined; /** - * The CreateArtifactoryTargetOutput model module. - * @module model/CreateArtifactoryTargetOutput - * @version 3.3.16 + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -var CreateArtifactoryTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateArtifactoryTargetOutput. - * @alias module:model/CreateArtifactoryTargetOutput - */ - function CreateArtifactoryTargetOutput() { - _classCallCheck(this, CreateArtifactoryTargetOutput); - CreateArtifactoryTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateMongoDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ +DynamicSecretUpdateMongoDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ - _createClass(CreateArtifactoryTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateArtifactoryTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateArtifactoryTargetOutput} The populated CreateArtifactoryTargetOutput instance. - */ +DynamicSecretUpdateMongoDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateArtifactoryTargetOutput(); +DynamicSecretUpdateMongoDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } +DynamicSecretUpdateMongoDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return obj; - } - }]); +DynamicSecretUpdateMongoDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return CreateArtifactoryTargetOutput; -}(); +DynamicSecretUpdateMongoDb.prototype['token'] = undefined; /** - * @member {Number} target_id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +DynamicSecretUpdateMongoDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -CreateArtifactoryTargetOutput.prototype['target_id'] = undefined; -var _default = CreateArtifactoryTargetOutput; +DynamicSecretUpdateMongoDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateMongoDb; exports["default"] = _default; /***/ }), -/***/ 76236: +/***/ 74593: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -27678,7 +102013,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -27689,20 +102024,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethod model module. - * @module model/CreateAuthMethod - * @version 3.3.16 + * The DynamicSecretUpdateMsSql model module. + * @module model/DynamicSecretUpdateMsSql + * @version 3.6.3 */ -var CreateAuthMethod = /*#__PURE__*/function () { +var DynamicSecretUpdateMsSql = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethod. - * @alias module:model/CreateAuthMethod - * @param name {String} Auth Method name + * Constructs a new DynamicSecretUpdateMsSql. + * dynamicSecretUpdateMsSql is a command that updates mssql dynamic secret + * @alias module:model/DynamicSecretUpdateMsSql + * @param name {String} Dynamic secret name */ - function CreateAuthMethod(name) { - _classCallCheck(this, CreateAuthMethod); + function DynamicSecretUpdateMsSql(name) { + _classCallCheck(this, DynamicSecretUpdateMsSql); - CreateAuthMethod.initialize(this, name); + DynamicSecretUpdateMsSql.initialize(this, name); } /** * Initializes the fields of this object. @@ -27711,53 +102047,109 @@ var CreateAuthMethod = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethod, null, [{ + _createClass(DynamicSecretUpdateMsSql, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateMsSql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethod} obj Optional instance to populate. - * @return {module:model/CreateAuthMethod} The populated CreateAuthMethod instance. + * @param {module:model/DynamicSecretUpdateMsSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateMsSql} The populated DynamicSecretUpdateMsSql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethod(); + obj = obj || new DynamicSecretUpdateMsSql(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); + } + + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); + } + + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); + } + + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -27765,78 +102157,174 @@ var CreateAuthMethod = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateAuthMethod; + return DynamicSecretUpdateMsSql; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethod.prototype['access-expires'] = 0; +DynamicSecretUpdateMsSql.prototype['delete_protection'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Description of the object + * @member {String} description */ -CreateAuthMethod.prototype['bound-ips'] = undefined; +DynamicSecretUpdateMsSql.prototype['description'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethod.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateMsSql.prototype['json'] = false; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * MSSQL Creation statements + * @member {String} mssql-create-statements */ -CreateAuthMethod.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateMsSql.prototype['mssql-create-statements'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * MSSQL Name + * @member {String} mssql-dbname */ -CreateAuthMethod.prototype['json'] = false; +DynamicSecretUpdateMsSql.prototype['mssql-dbname'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' */ -CreateAuthMethod.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateMsSql.prototype['mssql-host'] = '127.0.0.1'; /** - * Auth Method name + * MSSQL Password + * @member {String} mssql-password + */ + +DynamicSecretUpdateMsSql.prototype['mssql-password'] = undefined; +/** + * MSSQL Port + * @member {String} mssql-port + * @default '1433' + */ + +DynamicSecretUpdateMsSql.prototype['mssql-port'] = '1433'; +/** + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements + */ + +DynamicSecretUpdateMsSql.prototype['mssql-revocation-statements'] = undefined; +/** + * MSSQL Username + * @member {String} mssql-username + */ + +DynamicSecretUpdateMsSql.prototype['mssql-username'] = undefined; +/** + * Dynamic secret name * @member {String} name */ -CreateAuthMethod.prototype['name'] = undefined; +DynamicSecretUpdateMsSql.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateMsSql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateMsSql.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateMsSql.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateMsSql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateMsSql.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAuthMethod.prototype['token'] = undefined; +DynamicSecretUpdateMsSql.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAuthMethod.prototype['uid-token'] = undefined; -var _default = CreateAuthMethod; +DynamicSecretUpdateMsSql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateMsSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateMsSql; exports["default"] = _default; /***/ }), -/***/ 47723: +/***/ 14567: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -27847,7 +102335,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -27858,22 +102346,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodAWSIAM model module. - * @module model/CreateAuthMethodAWSIAM - * @version 3.3.16 + * The DynamicSecretUpdateMySql model module. + * @module model/DynamicSecretUpdateMySql + * @version 3.6.3 */ -var CreateAuthMethodAWSIAM = /*#__PURE__*/function () { +var DynamicSecretUpdateMySql = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodAWSIAM. - * createAuthMethodAWSIAM is a command that creates a new Auth Method that will be able to authenticate using AWS IAM credentials. - * @alias module:model/CreateAuthMethodAWSIAM - * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to - * @param name {String} Auth Method name + * Constructs a new DynamicSecretUpdateMySql. + * dynamicSecretUpdateMySql is a command that updates mysql dynamic secret + * @alias module:model/DynamicSecretUpdateMySql + * @param name {String} Dynamic secret name */ - function CreateAuthMethodAWSIAM(boundAwsAccountId, name) { - _classCallCheck(this, CreateAuthMethodAWSIAM); + function DynamicSecretUpdateMySql(name) { + _classCallCheck(this, DynamicSecretUpdateMySql); - CreateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); + DynamicSecretUpdateMySql.initialize(this, name); } /** * Initializes the fields of this object. @@ -27882,84 +102369,119 @@ var CreateAuthMethodAWSIAM = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodAWSIAM, null, [{ + _createClass(DynamicSecretUpdateMySql, null, [{ key: "initialize", - value: function initialize(obj, boundAwsAccountId, name) { - obj['bound-aws-account-id'] = boundAwsAccountId; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateMySql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAWSIAM} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAWSIAM} The populated CreateAuthMethodAWSIAM instance. + * @param {module:model/DynamicSecretUpdateMySql} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateMySql} The populated DynamicSecretUpdateMySql instance. */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodAWSIAM(); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateMySql(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + } - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); } - if (data.hasOwnProperty('bound-arn')) { - obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); } - if (data.hasOwnProperty('bound-aws-account-id')) { - obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); } - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); } - if (data.hasOwnProperty('bound-role-id')) { - obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('bound-role-name')) { - obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('bound-user-id')) { - obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('bound-user-name')) { - obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('sts-url')) { - obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -27969,209 +102491,193 @@ var CreateAuthMethodAWSIAM = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateAuthMethodAWSIAM; + return DynamicSecretUpdateMySql; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -CreateAuthMethodAWSIAM.prototype['access-expires'] = 0; +DynamicSecretUpdateMySql.prototype['db-server-certificates'] = undefined; /** - * A list of full arns that the access is restricted to - * @member {Array.} bound-arn + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -CreateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; +DynamicSecretUpdateMySql.prototype['db-server-name'] = undefined; /** - * A list of AWS account-IDs that the access is restricted to - * @member {Array.} bound-aws-account-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; +DynamicSecretUpdateMySql.prototype['delete_protection'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Description of the object + * @member {String} description */ -CreateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; +DynamicSecretUpdateMySql.prototype['description'] = undefined; /** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; +DynamicSecretUpdateMySql.prototype['json'] = false; /** - * A list of full role ids that the access is restricted to - * @member {Array.} bound-role-id + * MySQL DB Name + * @member {String} mysql-dbname */ -CreateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; +DynamicSecretUpdateMySql.prototype['mysql-dbname'] = undefined; /** - * A list of full role-name that the access is restricted to - * @member {Array.} bound-role-name + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' */ -CreateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; +DynamicSecretUpdateMySql.prototype['mysql-host'] = '127.0.0.1'; /** - * A list of full user ids that the access is restricted to - * @member {Array.} bound-user-id + * MySQL Password + * @member {String} mysql-password */ -CreateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; +DynamicSecretUpdateMySql.prototype['mysql-password'] = undefined; /** - * A list of full user-name that the access is restricted to - * @member {Array.} bound-user-name + * MySQL Port + * @member {String} mysql-port + * @default '3306' */ -CreateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; +DynamicSecretUpdateMySql.prototype['mysql-port'] = '3306'; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * MySQL Revocation statements + * @member {String} mysql-revocation-statements */ -CreateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateMySql.prototype['mysql-revocation-statements'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * MySQL Creation statements + * @member {String} mysql-screation-statements */ -CreateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateMySql.prototype['mysql-screation-statements'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * MySQL Username + * @member {String} mysql-username */ -CreateAuthMethodAWSIAM.prototype['json'] = false; +DynamicSecretUpdateMySql.prototype['mysql-username'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateMySql.prototype['name'] = undefined; /** - * Auth Method name - * @member {String} name + * Dynamic secret new name + * @member {String} new-name */ -CreateAuthMethodAWSIAM.prototype['name'] = undefined; +DynamicSecretUpdateMySql.prototype['new-name'] = undefined; /** - * sts URL - * @member {String} sts-url - * @default 'https://sts.amazonaws.com' + * The length of the password to be generated + * @member {String} password-length */ -CreateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; +DynamicSecretUpdateMySql.prototype['password-length'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateAuthMethodAWSIAM.prototype['token'] = undefined; +DynamicSecretUpdateMySql.prototype['producer-encryption-key-name'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -CreateAuthMethodAWSIAM.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodAWSIAM; -exports["default"] = _default; - -/***/ }), - -/***/ 36759: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretUpdateMySql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ +DynamicSecretUpdateMySql.prototype['secure-access-enable'] = undefined; /** - * The CreateAuthMethodAWSIAMOutput model module. - * @module model/CreateAuthMethodAWSIAMOutput - * @version 3.3.16 + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -var CreateAuthMethodAWSIAMOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodAWSIAMOutput. - * @alias module:model/CreateAuthMethodAWSIAMOutput - */ - function CreateAuthMethodAWSIAMOutput() { - _classCallCheck(this, CreateAuthMethodAWSIAMOutput); - CreateAuthMethodAWSIAMOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateMySql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ +DynamicSecretUpdateMySql.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ - _createClass(CreateAuthMethodAWSIAMOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodAWSIAMOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAWSIAMOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAWSIAMOutput} The populated CreateAuthMethodAWSIAMOutput instance. - */ +DynamicSecretUpdateMySql.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodAWSIAMOutput(); +DynamicSecretUpdateMySql.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } +DynamicSecretUpdateMySql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return obj; - } - }]); +DynamicSecretUpdateMySql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return CreateAuthMethodAWSIAMOutput; -}(); +DynamicSecretUpdateMySql.prototype['token'] = undefined; /** - * @member {String} access_id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +DynamicSecretUpdateMySql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -CreateAuthMethodAWSIAMOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodAWSIAMOutput; +DynamicSecretUpdateMySql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateMySql; exports["default"] = _default; /***/ }), -/***/ 41957: +/***/ 30421: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -28182,7 +102688,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -28193,22 +102699,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodAzureAD model module. - * @module model/CreateAuthMethodAzureAD - * @version 3.3.16 + * The DynamicSecretUpdateOracleDb model module. + * @module model/DynamicSecretUpdateOracleDb + * @version 3.6.3 */ -var CreateAuthMethodAzureAD = /*#__PURE__*/function () { +var DynamicSecretUpdateOracleDb = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodAzureAD. - * createAuthMethodAzureAD is a command that creates a new auth method that will be able to authenticate using Azure Active Directory credentials. - * @alias module:model/CreateAuthMethodAzureAD - * @param boundTenantId {String} The Azure tenant id that the access is restricted to - * @param name {String} Auth Method name + * Constructs a new DynamicSecretUpdateOracleDb. + * dynamicSecretUpdateOracleDb is a command that updates oracle db dynamic secret + * @alias module:model/DynamicSecretUpdateOracleDb + * @param name {String} Dynamic secret name */ - function CreateAuthMethodAzureAD(boundTenantId, name) { - _classCallCheck(this, CreateAuthMethodAzureAD); + function DynamicSecretUpdateOracleDb(name) { + _classCallCheck(this, DynamicSecretUpdateOracleDb); - CreateAuthMethodAzureAD.initialize(this, boundTenantId, name); + DynamicSecretUpdateOracleDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -28217,100 +102722,111 @@ var CreateAuthMethodAzureAD = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodAzureAD, null, [{ + _createClass(DynamicSecretUpdateOracleDb, null, [{ key: "initialize", - value: function initialize(obj, boundTenantId, name) { - obj['bound-tenant-id'] = boundTenantId; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateOracleDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAzureAD} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAzureAD} The populated CreateAuthMethodAzureAD instance. + * @param {module:model/DynamicSecretUpdateOracleDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateOracleDb} The populated DynamicSecretUpdateOracleDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodAzureAD(); + obj = obj || new DynamicSecretUpdateOracleDb(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); } - if (data.hasOwnProperty('bound-group-id')) { - obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('bound-providers')) { - obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('bound-resource-names')) { - obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('bound-resource-types')) { - obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); } - if (data.hasOwnProperty('bound-rg-id')) { - obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); } - if (data.hasOwnProperty('bound-spid')) { - obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); } - if (data.hasOwnProperty('bound-sub-id')) { - obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); } - if (data.hasOwnProperty('bound-tenant-id')) { - obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -28320,153 +102836,181 @@ var CreateAuthMethodAzureAD = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateAuthMethodAzureAD; + return DynamicSecretUpdateOracleDb; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -CreateAuthMethodAzureAD.prototype['access-expires'] = 0; +DynamicSecretUpdateOracleDb.prototype['db-server-certificates'] = undefined; /** - * The audience in the JWT - * @member {String} audience - * @default 'https://management.azure.com/' + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -CreateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; +DynamicSecretUpdateOracleDb.prototype['db-server-name'] = undefined; /** - * A list of group ids that the access is restricted to - * @member {Array.} bound-group-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; +DynamicSecretUpdateOracleDb.prototype['delete_protection'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Description of the object + * @member {String} description */ -CreateAuthMethodAzureAD.prototype['bound-ips'] = undefined; +DynamicSecretUpdateOracleDb.prototype['description'] = undefined; /** - * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) - * @member {Array.} bound-providers + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodAzureAD.prototype['bound-providers'] = undefined; +DynamicSecretUpdateOracleDb.prototype['json'] = false; /** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; +DynamicSecretUpdateOracleDb.prototype['name'] = undefined; /** - * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). - * @member {Array.} bound-resource-names + * Dynamic secret new name + * @member {String} new-name */ -CreateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; +DynamicSecretUpdateOracleDb.prototype['new-name'] = undefined; /** - * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) - * @member {Array.} bound-resource-types + * Oracle Host + * @member {String} oracle-host + * @default '127.0.0.1' */ -CreateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; +DynamicSecretUpdateOracleDb.prototype['oracle-host'] = '127.0.0.1'; /** - * A list of resource groups that the access is restricted to - * @member {Array.} bound-rg-id + * Oracle Password + * @member {String} oracle-password */ -CreateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; +DynamicSecretUpdateOracleDb.prototype['oracle-password'] = undefined; /** - * A list of service principal IDs that the access is restricted to - * @member {Array.} bound-spid + * Oracle Port + * @member {String} oracle-port + * @default '1521' */ -CreateAuthMethodAzureAD.prototype['bound-spid'] = undefined; +DynamicSecretUpdateOracleDb.prototype['oracle-port'] = '1521'; /** - * A list of subscription ids that the access is restricted to - * @member {Array.} bound-sub-id + * Oracle Revocation statements + * @member {String} oracle-revocation-statements */ -CreateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; +DynamicSecretUpdateOracleDb.prototype['oracle-revocation-statements'] = undefined; /** - * The Azure tenant id that the access is restricted to - * @member {String} bound-tenant-id + * Oracle Creation statements + * @member {String} oracle-screation-statements */ -CreateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; +DynamicSecretUpdateOracleDb.prototype['oracle-screation-statements'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Oracle DB Name + * @member {String} oracle-service-name */ -CreateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateOracleDb.prototype['oracle-service-name'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Oracle Username + * @member {String} oracle-username */ -CreateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateOracleDb.prototype['oracle-username'] = undefined; /** - * Issuer URL - * @member {String} issuer - * @default 'https://sts.windows.net/---bound_tenant_id---' + * The length of the password to be generated + * @member {String} password-length */ -CreateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; +DynamicSecretUpdateOracleDb.prototype['password-length'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateAuthMethodAzureAD.prototype['json'] = false; +DynamicSecretUpdateOracleDb.prototype['producer-encryption-key-name'] = undefined; /** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'https://login.microsoftonline.com/common/discovery/keys' + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -CreateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; +DynamicSecretUpdateOracleDb.prototype['secure-access-bastion-issuer'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + * @default 'false' */ -CreateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateOracleDb.prototype['secure-access-enable'] = 'false'; /** - * Auth Method name - * @member {String} name + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -CreateAuthMethodAzureAD.prototype['name'] = undefined; +DynamicSecretUpdateOracleDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateOracleDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateOracleDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateOracleDb.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAuthMethodAzureAD.prototype['token'] = undefined; +DynamicSecretUpdateOracleDb.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAuthMethodAzureAD.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodAzureAD; +DynamicSecretUpdateOracleDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateOracleDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateOracleDb; exports["default"] = _default; /***/ }), -/***/ 26053: +/***/ 31240: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -28477,7 +103021,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -28488,19 +103034,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodAzureADOutput model module. - * @module model/CreateAuthMethodAzureADOutput - * @version 3.3.16 + * The DynamicSecretUpdateOutput model module. + * @module model/DynamicSecretUpdateOutput + * @version 3.6.3 */ -var CreateAuthMethodAzureADOutput = /*#__PURE__*/function () { +var DynamicSecretUpdateOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodAzureADOutput. - * @alias module:model/CreateAuthMethodAzureADOutput + * Constructs a new DynamicSecretUpdateOutput. + * @alias module:model/DynamicSecretUpdateOutput */ - function CreateAuthMethodAzureADOutput() { - _classCallCheck(this, CreateAuthMethodAzureADOutput); + function DynamicSecretUpdateOutput() { + _classCallCheck(this, DynamicSecretUpdateOutput); - CreateAuthMethodAzureADOutput.initialize(this); + DynamicSecretUpdateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -28509,25 +103055,25 @@ var CreateAuthMethodAzureADOutput = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodAzureADOutput, null, [{ + _createClass(DynamicSecretUpdateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateAuthMethodAzureADOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAzureADOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAzureADOutput} The populated CreateAuthMethodAzureADOutput instance. + * @param {module:model/DynamicSecretUpdateOutput} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateOutput} The populated DynamicSecretUpdateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodAzureADOutput(); + obj = obj || new DynamicSecretUpdateOutput(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('dynamic_secret_details')) { + obj['dynamic_secret_details'] = _DSProducerDetails["default"].constructFromObject(data['dynamic_secret_details']); } } @@ -28535,20 +103081,20 @@ var CreateAuthMethodAzureADOutput = /*#__PURE__*/function () { } }]); - return CreateAuthMethodAzureADOutput; + return DynamicSecretUpdateOutput; }(); /** - * @member {String} access_id + * @member {module:model/DSProducerDetails} dynamic_secret_details */ -CreateAuthMethodAzureADOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodAzureADOutput; +DynamicSecretUpdateOutput.prototype['dynamic_secret_details'] = undefined; +var _default = DynamicSecretUpdateOutput; exports["default"] = _default; /***/ }), -/***/ 1870: +/***/ 52293: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -28559,7 +103105,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -28570,22 +103116,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodCert model module. - * @module model/CreateAuthMethodCert - * @version 3.3.16 + * The DynamicSecretUpdatePing model module. + * @module model/DynamicSecretUpdatePing + * @version 3.6.3 */ -var CreateAuthMethodCert = /*#__PURE__*/function () { +var DynamicSecretUpdatePing = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodCert. - * createAuthMethodCert is a command that creates a new auth method that will be able to authenticate using a client certificae - * @alias module:model/CreateAuthMethodCert - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * Constructs a new DynamicSecretUpdatePing. + * dynamicSecretUpdatePing is a command that updates Ping dynamic secret + * @alias module:model/DynamicSecretUpdatePing + * @param name {String} Dynamic secret name */ - function CreateAuthMethodCert(name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodCert); + function DynamicSecretUpdatePing(name) { + _classCallCheck(this, DynamicSecretUpdatePing); - CreateAuthMethodCert.initialize(this, name, uniqueIdentifier); + DynamicSecretUpdatePing.initialize(this, name); } /** * Initializes the fields of this object. @@ -28594,88 +103139,119 @@ var CreateAuthMethodCert = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodCert, null, [{ + _createClass(DynamicSecretUpdatePing, null, [{ key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { + value: function initialize(obj, name) { obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a CreateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdatePing from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodCert} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodCert} The populated CreateAuthMethodCert instance. + * @param {module:model/DynamicSecretUpdatePing} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdatePing} The populated DynamicSecretUpdatePing instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodCert(); + obj = obj || new DynamicSecretUpdatePing(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('allowed-cors')) { - obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('bound-common-names')) { - obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('bound-dns-sans')) { - obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('bound-email-sans')) { - obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('bound-extensions')) { - obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); } - if (data.hasOwnProperty('bound-organizational-units')) { - obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); } - if (data.hasOwnProperty('bound-uri-sans')) { - obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); } - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); } - if (data.hasOwnProperty('revoked-cert-ids')) { - obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -28686,8 +103262,8 @@ var CreateAuthMethodCert = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -28695,132 +103271,183 @@ var CreateAuthMethodCert = /*#__PURE__*/function () { } }]); - return CreateAuthMethodCert; + return DynamicSecretUpdatePing; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodCert.prototype['access-expires'] = 0; +DynamicSecretUpdatePing.prototype['delete_protection'] = undefined; /** - * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. - * @member {String} allowed-cors + * Description of the object + * @member {String} description */ -CreateAuthMethodCert.prototype['allowed-cors'] = undefined; +DynamicSecretUpdatePing.prototype['description'] = undefined; /** - * A list of names. At least one must exist in the Common Name. Supports globbing. - * @member {Array.} bound-common-names + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodCert.prototype['bound-common-names'] = undefined; +DynamicSecretUpdatePing.prototype['json'] = false; /** - * A list of DNS names. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-dns-sans + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodCert.prototype['bound-dns-sans'] = undefined; +DynamicSecretUpdatePing.prototype['name'] = undefined; /** - * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-email-sans + * Dynamic secret new name + * @member {String} new-name */ -CreateAuthMethodCert.prototype['bound-email-sans'] = undefined; +DynamicSecretUpdatePing.prototype['new-name'] = undefined; /** - * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". - * @member {Array.} bound-extensions + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' */ -CreateAuthMethodCert.prototype['bound-extensions'] = undefined; +DynamicSecretUpdatePing.prototype['ping-administrative-port'] = '9999'; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id */ -CreateAuthMethodCert.prototype['bound-ips'] = undefined; +DynamicSecretUpdatePing.prototype['ping-atm-id'] = undefined; /** - * A list of Organizational Units names. At least one must exist in the OU field. - * @member {Array.} bound-organizational-units + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' */ -CreateAuthMethodCert.prototype['bound-organizational-units'] = undefined; +DynamicSecretUpdatePing.prototype['ping-authorization-port'] = '9031'; /** - * A list of URIs. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-uri-sans + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn */ -CreateAuthMethodCert.prototype['bound-uri-sans'] = undefined; +DynamicSecretUpdatePing.prototype['ping-cert-subject-dn'] = undefined; /** - * The certificate data in base64, if no file was provided - * @member {String} certificate-data + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' */ -CreateAuthMethodCert.prototype['certificate-data'] = undefined; +DynamicSecretUpdatePing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention + * @default 'false' */ -CreateAuthMethodCert.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdatePing.prototype['ping-enforce-replay-prevention'] = 'false'; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types */ -CreateAuthMethodCert.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdatePing.prototype['ping-grant-types'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn */ -CreateAuthMethodCert.prototype['json'] = false; +DynamicSecretUpdatePing.prototype['ping-issuer-dn'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks */ -CreateAuthMethodCert.prototype['jwt-ttl'] = 0; +DynamicSecretUpdatePing.prototype['ping-jwks'] = undefined; /** - * Auth Method name - * @member {String} name + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url */ -CreateAuthMethodCert.prototype['name'] = undefined; +DynamicSecretUpdatePing.prototype['ping-jwks-url'] = undefined; /** - * A list of revoked cert ids - * @member {Array.} revoked-cert-ids + * Ping Federate privileged user password + * @member {String} ping-password */ -CreateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; +DynamicSecretUpdatePing.prototype['ping-password'] = undefined; +/** + * Ping Federate privileged user + * @member {String} ping-privileged-user + */ + +DynamicSecretUpdatePing.prototype['ping-privileged-user'] = undefined; +/** + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris + */ + +DynamicSecretUpdatePing.prototype['ping-redirect-uris'] = undefined; +/** + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes + */ + +DynamicSecretUpdatePing.prototype['ping-restricted-scopes'] = undefined; +/** + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo + */ + +DynamicSecretUpdatePing.prototype['ping-signing-algo'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +DynamicSecretUpdatePing.prototype['ping-url'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdatePing.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdatePing.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdatePing.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAuthMethodCert.prototype['token'] = undefined; +DynamicSecretUpdatePing.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAuthMethodCert.prototype['uid-token'] = undefined; +DynamicSecretUpdatePing.prototype['uid-token'] = undefined; /** - * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier + * The time from dynamic secret creation to expiration. + * @member {String} user-ttl + * @default '60m' */ -CreateAuthMethodCert.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodCert; +DynamicSecretUpdatePing.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdatePing; exports["default"] = _default; /***/ }), -/***/ 73412: +/***/ 57271: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -28831,7 +103458,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -28842,19 +103469,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodCertOutput model module. - * @module model/CreateAuthMethodCertOutput - * @version 3.3.16 + * The DynamicSecretUpdatePostgreSql model module. + * @module model/DynamicSecretUpdatePostgreSql + * @version 3.6.3 */ -var CreateAuthMethodCertOutput = /*#__PURE__*/function () { +var DynamicSecretUpdatePostgreSql = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodCertOutput. - * @alias module:model/CreateAuthMethodCertOutput + * Constructs a new DynamicSecretUpdatePostgreSql. + * dynamicSecretUpdatePostgreSql is a command that updates postgresql dynamic secret + * @alias module:model/DynamicSecretUpdatePostgreSql + * @param name {String} Dynamic secret name */ - function CreateAuthMethodCertOutput() { - _classCallCheck(this, CreateAuthMethodCertOutput); + function DynamicSecretUpdatePostgreSql(name) { + _classCallCheck(this, DynamicSecretUpdatePostgreSql); - CreateAuthMethodCertOutput.initialize(this); + DynamicSecretUpdatePostgreSql.initialize(this, name); } /** * Initializes the fields of this object. @@ -28863,141 +103492,111 @@ var CreateAuthMethodCertOutput = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodCertOutput, null, [{ + _createClass(DynamicSecretUpdatePostgreSql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CreateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdatePostgreSql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodCertOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodCertOutput} The populated CreateAuthMethodCertOutput instance. + * @param {module:model/DynamicSecretUpdatePostgreSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdatePostgreSql} The populated DynamicSecretUpdatePostgreSql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodCertOutput(); + obj = obj || new DynamicSecretUpdatePostgreSql(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); } - } - - return obj; - } - }]); - return CreateAuthMethodCertOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodCertOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodCertOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 29506: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); + } -/** - * The CreateAuthMethodEmail model module. - * @module model/CreateAuthMethodEmail - * @version 3.3.16 - */ -var CreateAuthMethodEmail = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodEmail. - * createAuthMethodEmail is a command that creates a new auth method that will be able to authenticate using email. - * @alias module:model/CreateAuthMethodEmail - * @param email {String} An email address to be invited to have access - * @param name {String} Auth Method name - */ - function CreateAuthMethodEmail(email, name) { - _classCallCheck(this, CreateAuthMethodEmail); + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); + } - CreateAuthMethodEmail.initialize(this, email, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); + } + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + } - _createClass(CreateAuthMethodEmail, null, [{ - key: "initialize", - value: function initialize(obj, email, name) { - obj['email'] = email; - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodEmail from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodEmail} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodEmail} The populated CreateAuthMethodEmail instance. - */ + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodEmail(); + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + } - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -29007,84 +103606,181 @@ var CreateAuthMethodEmail = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateAuthMethodEmail; + return DynamicSecretUpdatePostgreSql; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * PostgreSQL Creation statements + * @member {String} creation-statements + */ + + +DynamicSecretUpdatePostgreSql.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdatePostgreSql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdatePostgreSql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdatePostgreSql.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdatePostgreSql.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +DynamicSecretUpdatePostgreSql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdatePostgreSql.prototype['password-length'] = undefined; +/** + * PostgreSQL DB Name + * @member {String} postgresql-db-name + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-db-name'] = undefined; +/** + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-host'] = '127.0.0.1'; +/** + * PostgreSQL Password + * @member {String} postgresql-password + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-password'] = undefined; +/** + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-port'] = '5432'; +/** + * PostgreSQL Username + * @member {String} postgresql-username + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-username'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +DynamicSecretUpdatePostgreSql.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement */ +DynamicSecretUpdatePostgreSql.prototype['revocation-statement'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -CreateAuthMethodEmail.prototype['access-expires'] = 0; +DynamicSecretUpdatePostgreSql.prototype['secure-access-bastion-issuer'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * The DB schema + * @member {String} secure-access-db-schema */ -CreateAuthMethodEmail.prototype['bound-ips'] = undefined; +DynamicSecretUpdatePostgreSql.prototype['secure-access-db-schema'] = undefined; /** - * An email address to be invited to have access - * @member {String} email + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -CreateAuthMethodEmail.prototype['email'] = undefined; +DynamicSecretUpdatePostgreSql.prototype['secure-access-enable'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -CreateAuthMethodEmail.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdatePostgreSql.prototype['secure-access-host'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -CreateAuthMethodEmail.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdatePostgreSql.prototype['secure-access-web'] = false; /** - * Set output format to JSON - * @member {Boolean} json + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl * @default false */ -CreateAuthMethodEmail.prototype['json'] = false; +DynamicSecretUpdatePostgreSql.prototype['ssl'] = false; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Add tags attached to this object + * @member {Array.} tags */ -CreateAuthMethodEmail.prototype['jwt-ttl'] = 0; +DynamicSecretUpdatePostgreSql.prototype['tags'] = undefined; /** - * Auth Method name - * @member {String} name + * Target name + * @member {String} target-name */ -CreateAuthMethodEmail.prototype['name'] = undefined; +DynamicSecretUpdatePostgreSql.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAuthMethodEmail.prototype['token'] = undefined; +DynamicSecretUpdatePostgreSql.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAuthMethodEmail.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodEmail; +DynamicSecretUpdatePostgreSql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdatePostgreSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdatePostgreSql; exports["default"] = _default; /***/ }), -/***/ 46993: +/***/ 68943: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -29095,7 +103791,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -29106,19 +103802,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodEmailOutput model module. - * @module model/CreateAuthMethodEmailOutput - * @version 3.3.16 + * The DynamicSecretUpdateRabbitMq model module. + * @module model/DynamicSecretUpdateRabbitMq + * @version 3.6.3 */ -var CreateAuthMethodEmailOutput = /*#__PURE__*/function () { +var DynamicSecretUpdateRabbitMq = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodEmailOutput. - * @alias module:model/CreateAuthMethodEmailOutput + * Constructs a new DynamicSecretUpdateRabbitMq. + * dynamicSecretUpdateRabbitMq is a command that updates rabbitmq dynamic secret + * @alias module:model/DynamicSecretUpdateRabbitMq + * @param name {String} Dynamic secret name */ - function CreateAuthMethodEmailOutput() { - _classCallCheck(this, CreateAuthMethodEmailOutput); + function DynamicSecretUpdateRabbitMq(name) { + _classCallCheck(this, DynamicSecretUpdateRabbitMq); - CreateAuthMethodEmailOutput.initialize(this); + DynamicSecretUpdateRabbitMq.initialize(this, name); } /** * Initializes the fields of this object. @@ -29127,383 +103825,294 @@ var CreateAuthMethodEmailOutput = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodEmailOutput, null, [{ + _createClass(DynamicSecretUpdateRabbitMq, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CreateAuthMethodEmailOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateRabbitMq from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodEmailOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodEmailOutput} The populated CreateAuthMethodEmailOutput instance. + * @param {module:model/DynamicSecretUpdateRabbitMq} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRabbitMq} The populated DynamicSecretUpdateRabbitMq instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodEmailOutput(); + obj = obj || new DynamicSecretUpdateRabbitMq(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - - return obj; - } - }]); - - return CreateAuthMethodEmailOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodEmailOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodEmailOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 69857: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * The CreateAuthMethodGCP model module. - * @module model/CreateAuthMethodGCP - * @version 3.3.16 - */ -var CreateAuthMethodGCP = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodGCP. - * createAuthMethodGCP is a command that creates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. - * @alias module:model/CreateAuthMethodGCP - * @param audience {String} The audience to verify in the JWT received by the client - * @param name {String} Auth Method name - * @param type {String} Type of the GCP Access Rules - */ - function CreateAuthMethodGCP(audience, name, type) { - _classCallCheck(this, CreateAuthMethodGCP); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - CreateAuthMethodGCP.initialize(this, audience, name, type); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - _createClass(CreateAuthMethodGCP, null, [{ - key: "initialize", - value: function initialize(obj, audience, name, type) { - obj['audience'] = audience; - obj['name'] = name; - obj['type'] = type; - } - /** - * Constructs a CreateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodGCP} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodGCP} The populated CreateAuthMethodGCP instance. - */ + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodGCP(); + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); + } - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); } - if (data.hasOwnProperty('bound-labels')) { - obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); } - if (data.hasOwnProperty('bound-projects')) { - obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); } - if (data.hasOwnProperty('bound-regions')) { - obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); } - if (data.hasOwnProperty('bound-service-accounts')) { - obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); } - if (data.hasOwnProperty('bound-zones')) { - obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('service-account-creds-data')) { - obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateAuthMethodGCP; + return DynamicSecretUpdateRabbitMq; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodGCP.prototype['access-expires'] = 0; +DynamicSecretUpdateRabbitMq.prototype['delete_protection'] = undefined; /** - * The audience to verify in the JWT received by the client - * @member {String} audience - * @default 'akeyless.io' + * Description of the object + * @member {String} description */ -CreateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; +DynamicSecretUpdateRabbitMq.prototype['description'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodGCP.prototype['bound-ips'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['json'] = false; /** - * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... - * @member {Array.} bound-labels + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodGCP.prototype['bound-labels'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['name'] = undefined; /** - * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. - * @member {Array.} bound-projects + * Dynamic secret name + * @member {String} new-name */ -CreateAuthMethodGCP.prototype['bound-projects'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['new-name'] = undefined; /** - * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. - * @member {Array.} bound-regions + * The length of the password to be generated + * @member {String} password-length */ -CreateAuthMethodGCP.prototype['bound-regions'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['password-length'] = undefined; /** - * List of service accounts the service account must be part of in order to be authenticated. - * @member {Array.} bound-service-accounts + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['producer-encryption-key-name'] = undefined; /** - * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. - * @member {Array.} bound-zones + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd */ -CreateAuthMethodGCP.prototype['bound-zones'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-admin-pwd'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user */ -CreateAuthMethodGCP.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-admin-user'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Server URI + * @member {String} rabbitmq-server-uri */ -CreateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-server-uri'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * User configuration permission + * @member {String} rabbitmq-user-conf-permission */ -CreateAuthMethodGCP.prototype['json'] = false; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-conf-permission'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * User read permission + * @member {String} rabbitmq-user-read-permission */ -CreateAuthMethodGCP.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-read-permission'] = undefined; /** - * Auth Method name - * @member {String} name + * User Tags + * @member {String} rabbitmq-user-tags */ -CreateAuthMethodGCP.prototype['name'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-tags'] = undefined; /** - * ServiceAccount credentials data instead of giving a file path, base64 encoded - * @member {String} service-account-creds-data + * User Virtual Host + * @member {String} rabbitmq-user-vhost */ -CreateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-vhost'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * User write permission + * @member {String} rabbitmq-user-write-permission */ -CreateAuthMethodGCP.prototype['token'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-write-permission'] = undefined; /** - * Type of the GCP Access Rules - * @member {String} type + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -CreateAuthMethodGCP.prototype['type'] = undefined; +DynamicSecretUpdateRabbitMq.prototype['secure-access-enable'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Destination URL to inject secrets + * @member {String} secure-access-url */ -CreateAuthMethodGCP.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodGCP; -exports["default"] = _default; - -/***/ }), - -/***/ 95248: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +DynamicSecretUpdateRabbitMq.prototype['secure-access-url'] = undefined; /** - * The CreateAuthMethodGCPOutput model module. - * @module model/CreateAuthMethodGCPOutput - * @version 3.3.16 + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true */ -var CreateAuthMethodGCPOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodGCPOutput. - * @alias module:model/CreateAuthMethodGCPOutput - */ - function CreateAuthMethodGCPOutput() { - _classCallCheck(this, CreateAuthMethodGCPOutput); - - CreateAuthMethodGCPOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateRabbitMq.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ - _createClass(CreateAuthMethodGCPOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodGCPOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodGCPOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodGCPOutput} The populated CreateAuthMethodGCPOutput instance. - */ +DynamicSecretUpdateRabbitMq.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodGCPOutput(); +DynamicSecretUpdateRabbitMq.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } +DynamicSecretUpdateRabbitMq.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return obj; - } - }]); +DynamicSecretUpdateRabbitMq.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return CreateAuthMethodGCPOutput; -}(); +DynamicSecretUpdateRabbitMq.prototype['token'] = undefined; /** - * @member {String} access_id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +DynamicSecretUpdateRabbitMq.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -CreateAuthMethodGCPOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodGCPOutput; +DynamicSecretUpdateRabbitMq.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateRabbitMq; exports["default"] = _default; /***/ }), -/***/ 97485: +/***/ 42835: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -29514,7 +104123,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -29525,21 +104134,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodHuawei model module. - * @module model/CreateAuthMethodHuawei - * @version 3.3.16 + * The DynamicSecretUpdateRdp model module. + * @module model/DynamicSecretUpdateRdp + * @version 3.6.3 */ -var CreateAuthMethodHuawei = /*#__PURE__*/function () { +var DynamicSecretUpdateRdp = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodHuawei. - * createAuthMethodHuawei is a command that creates a new auth method that will be able to authenticate using Huawei credentials. - * @alias module:model/CreateAuthMethodHuawei - * @param name {String} Auth Method name + * Constructs a new DynamicSecretUpdateRdp. + * dynamicSecretUpdateRdp is a command that updates rdp dynamic secret + * @alias module:model/DynamicSecretUpdateRdp + * @param name {String} Dynamic secret name */ - function CreateAuthMethodHuawei(name) { - _classCallCheck(this, CreateAuthMethodHuawei); + function DynamicSecretUpdateRdp(name) { + _classCallCheck(this, DynamicSecretUpdateRdp); - CreateAuthMethodHuawei.initialize(this, name); + DynamicSecretUpdateRdp.initialize(this, name); } /** * Initializes the fields of this object. @@ -29548,79 +104157,111 @@ var CreateAuthMethodHuawei = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodHuawei, null, [{ + _createClass(DynamicSecretUpdateRdp, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateAuthMethodHuawei from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateRdp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodHuawei} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodHuawei} The populated CreateAuthMethodHuawei instance. + * @param {module:model/DynamicSecretUpdateRdp} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRdp} The populated DynamicSecretUpdateRdp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodHuawei(); + obj = obj || new DynamicSecretUpdateRdp(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); } - if (data.hasOwnProperty('auth-url')) { - obj['auth-url'] = _ApiClient["default"].convertToType(data['auth-url'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('bound-domain-id')) { - obj['bound-domain-id'] = _ApiClient["default"].convertToType(data['bound-domain-id'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('bound-domain-name')) { - obj['bound-domain-name'] = _ApiClient["default"].convertToType(data['bound-domain-name'], ['String']); + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('bound-tenant-id')) { - obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('bound-tenant-name')) { - obj['bound-tenant-name'] = _ApiClient["default"].convertToType(data['bound-tenant-name'], ['String']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('bound-user-id')) { - obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('bound-user-name')) { - obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -29630,203 +104271,190 @@ var CreateAuthMethodHuawei = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); + } } return obj; } }]); - return CreateAuthMethodHuawei; + return DynamicSecretUpdateRdp; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * AllowUserExtendSession + * @member {Number} allow-user-extend-session */ -CreateAuthMethodHuawei.prototype['access-expires'] = 0; +DynamicSecretUpdateRdp.prototype['allow-user-extend-session'] = undefined; /** - * sts URL - * @member {String} auth-url - * @default 'https://iam.myhwclouds.com:443/v3' + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodHuawei.prototype['auth-url'] = 'https://iam.myhwclouds.com:443/v3'; +DynamicSecretUpdateRdp.prototype['delete_protection'] = undefined; /** - * A list of domain IDs that the access is restricted to - * @member {Array.} bound-domain-id + * Description of the object + * @member {String} description */ -CreateAuthMethodHuawei.prototype['bound-domain-id'] = undefined; +DynamicSecretUpdateRdp.prototype['description'] = undefined; /** - * A list of domain names that the access is restricted to - * @member {Array.} bound-domain-name + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' */ -CreateAuthMethodHuawei.prototype['bound-domain-name'] = undefined; +DynamicSecretUpdateRdp.prototype['fixed-user-only'] = 'false'; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodHuawei.prototype['bound-ips'] = undefined; +DynamicSecretUpdateRdp.prototype['json'] = false; /** - * A list of full tenant ids that the access is restricted to - * @member {Array.} bound-tenant-id + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodHuawei.prototype['bound-tenant-id'] = undefined; +DynamicSecretUpdateRdp.prototype['name'] = undefined; /** - * A list of full tenant names that the access is restricted to - * @member {Array.} bound-tenant-name + * Dynamic secret name + * @member {String} new-name */ -CreateAuthMethodHuawei.prototype['bound-tenant-name'] = undefined; +DynamicSecretUpdateRdp.prototype['new-name'] = undefined; /** - * A list of full user ids that the access is restricted to - * @member {Array.} bound-user-id + * The length of the password to be generated + * @member {String} password-length */ -CreateAuthMethodHuawei.prototype['bound-user-id'] = undefined; +DynamicSecretUpdateRdp.prototype['password-length'] = undefined; /** - * A list of full user-name that the access is restricted to - * @member {Array.} bound-user-name + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateAuthMethodHuawei.prototype['bound-user-name'] = undefined; +DynamicSecretUpdateRdp.prototype['producer-encryption-key-name'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * RDP Admin Name + * @member {String} rdp-admin-name */ -CreateAuthMethodHuawei.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateRdp.prototype['rdp-admin-name'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * RDP Admin password + * @member {String} rdp-admin-pwd */ -CreateAuthMethodHuawei.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateRdp.prototype['rdp-admin-pwd'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Hostname + * @member {String} rdp-host-name */ -CreateAuthMethodHuawei.prototype['json'] = false; +DynamicSecretUpdateRdp.prototype['rdp-host-name'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Port + * @member {String} rdp-host-port + * @default '22' */ -CreateAuthMethodHuawei.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateRdp.prototype['rdp-host-port'] = '22'; /** - * Auth Method name - * @member {String} name + * Groups + * @member {String} rdp-user-groups */ -CreateAuthMethodHuawei.prototype['name'] = undefined; +DynamicSecretUpdateRdp.prototype['rdp-user-groups'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false */ -CreateAuthMethodHuawei.prototype['token'] = undefined; +DynamicSecretUpdateRdp.prototype['secure-access-allow-external-user'] = false; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -CreateAuthMethodHuawei.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodHuawei; -exports["default"] = _default; - -/***/ }), - -/***/ 90408: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +DynamicSecretUpdateRdp.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ +DynamicSecretUpdateRdp.prototype['secure-access-host'] = undefined; /** - * The CreateAuthMethodHuaweiOutput model module. - * @module model/CreateAuthMethodHuaweiOutput - * @version 3.3.16 + * RD Gateway server + * @member {String} secure-access-rd-gateway-server */ -var CreateAuthMethodHuaweiOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodHuaweiOutput. - * @alias module:model/CreateAuthMethodHuaweiOutput - */ - function CreateAuthMethodHuaweiOutput() { - _classCallCheck(this, CreateAuthMethodHuaweiOutput); - CreateAuthMethodHuaweiOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateRdp.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain + */ +DynamicSecretUpdateRdp.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - _createClass(CreateAuthMethodHuaweiOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodHuaweiOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodHuaweiOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodHuaweiOutput} The populated CreateAuthMethodHuaweiOutput instance. - */ +DynamicSecretUpdateRdp.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodHuaweiOutput(); +DynamicSecretUpdateRdp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } +DynamicSecretUpdateRdp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return obj; - } - }]); +DynamicSecretUpdateRdp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return CreateAuthMethodHuaweiOutput; -}(); +DynamicSecretUpdateRdp.prototype['uid-token'] = undefined; /** - * @member {String} access_id + * User TTL + * @member {String} user-ttl + * @default '60m' */ +DynamicSecretUpdateRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ -CreateAuthMethodHuaweiOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodHuaweiOutput; +DynamicSecretUpdateRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = DynamicSecretUpdateRdp; exports["default"] = _default; /***/ }), -/***/ 3002: +/***/ 21290: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -29837,7 +104465,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -29848,21 +104476,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodK8S model module. - * @module model/CreateAuthMethodK8S - * @version 3.3.16 + * The DynamicSecretUpdateRedis model module. + * @module model/DynamicSecretUpdateRedis + * @version 3.6.3 */ -var CreateAuthMethodK8S = /*#__PURE__*/function () { +var DynamicSecretUpdateRedis = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodK8S. - * createAuthMethodK8S is a command that creates a new auth method that will be able to authenticate using K8S. - * @alias module:model/CreateAuthMethodK8S - * @param name {String} Auth Method name + * Constructs a new DynamicSecretUpdateRedis. + * dynamicSecretUpdateRedis is a command that updates redis dynamic secret + * @alias module:model/DynamicSecretUpdateRedis + * @param name {String} Dynamic secret name */ - function CreateAuthMethodK8S(name) { - _classCallCheck(this, CreateAuthMethodK8S); + function DynamicSecretUpdateRedis(name) { + _classCallCheck(this, DynamicSecretUpdateRedis); - CreateAuthMethodK8S.initialize(this, name); + DynamicSecretUpdateRedis.initialize(this, name); } /** * Initializes the fields of this object. @@ -29871,75 +104499,83 @@ var CreateAuthMethodK8S = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodK8S, null, [{ + _createClass(DynamicSecretUpdateRedis, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateRedis from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodK8S} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodK8S} The populated CreateAuthMethodK8S instance. + * @param {module:model/DynamicSecretUpdateRedis} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRedis} The populated DynamicSecretUpdateRedis instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodK8S(); + obj = obj || new DynamicSecretUpdateRedis(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('bound-namespaces')) { - obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('bound-pod-names')) { - obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('bound-sa-names')) { - obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('public-key')) { - obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -29949,115 +104585,148 @@ var CreateAuthMethodK8S = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } } return obj; } }]); - return CreateAuthMethodK8S; + return DynamicSecretUpdateRedis; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules */ -CreateAuthMethodK8S.prototype['access-expires'] = 0; +DynamicSecretUpdateRedis.prototype['acl-rules'] = undefined; /** - * The audience in the Kubernetes JWT that the access is restricted to - * @member {String} audience + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodK8S.prototype['audience'] = undefined; +DynamicSecretUpdateRedis.prototype['delete_protection'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Description of the object + * @member {String} description */ -CreateAuthMethodK8S.prototype['bound-ips'] = undefined; +DynamicSecretUpdateRedis.prototype['description'] = undefined; /** - * A list of namespaces that the access is restricted to - * @member {Array.} bound-namespaces + * Redis Host + * @member {String} host + * @default '127.0.0.1' */ -CreateAuthMethodK8S.prototype['bound-namespaces'] = undefined; +DynamicSecretUpdateRedis.prototype['host'] = '127.0.0.1'; /** - * A list of pod names that the access is restricted to - * @member {Array.} bound-pod-names + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodK8S.prototype['bound-pod-names'] = undefined; +DynamicSecretUpdateRedis.prototype['json'] = false; /** - * A list of service account names that the access is restricted to - * @member {Array.} bound-sa-names + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodK8S.prototype['bound-sa-names'] = undefined; +DynamicSecretUpdateRedis.prototype['name'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Dynamic secret name + * @member {String} new-name */ -CreateAuthMethodK8S.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateRedis.prototype['new-name'] = undefined; /** - * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key - * @default 'true' + * Redis Password + * @member {String} password */ -CreateAuthMethodK8S.prototype['gen-key'] = 'true'; +DynamicSecretUpdateRedis.prototype['password'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * The length of the password to be generated + * @member {String} password-length */ -CreateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateRedis.prototype['password-length'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json + * Redis Port + * @member {String} port + * @default '6379' + */ + +DynamicSecretUpdateRedis.prototype['port'] = '6379'; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateRedis.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl * @default false */ -CreateAuthMethodK8S.prototype['json'] = false; +DynamicSecretUpdateRedis.prototype['ssl'] = false; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate */ -CreateAuthMethodK8S.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateRedis.prototype['ssl-certificate'] = undefined; /** - * Auth Method name - * @member {String} name + * Add tags attached to this object + * @member {Array.} tags */ -CreateAuthMethodK8S.prototype['name'] = undefined; +DynamicSecretUpdateRedis.prototype['tags'] = undefined; /** - * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] - * @member {String} public-key + * Target name + * @member {String} target-name */ -CreateAuthMethodK8S.prototype['public-key'] = undefined; +DynamicSecretUpdateRedis.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAuthMethodK8S.prototype['token'] = undefined; +DynamicSecretUpdateRedis.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAuthMethodK8S.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodK8S; +DynamicSecretUpdateRedis.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +DynamicSecretUpdateRedis.prototype['username'] = undefined; +var _default = DynamicSecretUpdateRedis; exports["default"] = _default; /***/ }), -/***/ 5813: +/***/ 43512: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30068,7 +104737,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -30079,19 +104748,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodK8SOutput model module. - * @module model/CreateAuthMethodK8SOutput - * @version 3.3.16 + * The DynamicSecretUpdateRedshift model module. + * @module model/DynamicSecretUpdateRedshift + * @version 3.6.3 */ -var CreateAuthMethodK8SOutput = /*#__PURE__*/function () { +var DynamicSecretUpdateRedshift = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodK8SOutput. - * @alias module:model/CreateAuthMethodK8SOutput + * Constructs a new DynamicSecretUpdateRedshift. + * dynamicSecretUpdateRedshift is a command that updates redshift dynamic secret + * @alias module:model/DynamicSecretUpdateRedshift + * @param name {String} Dynamic secret name */ - function CreateAuthMethodK8SOutput() { - _classCallCheck(this, CreateAuthMethodK8SOutput); + function DynamicSecretUpdateRedshift(name) { + _classCallCheck(this, DynamicSecretUpdateRedshift); - CreateAuthMethodK8SOutput.initialize(this); + DynamicSecretUpdateRedshift.initialize(this, name); } /** * Initializes the fields of this object. @@ -30100,152 +104771,95 @@ var CreateAuthMethodK8SOutput = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodK8SOutput, null, [{ + _createClass(DynamicSecretUpdateRedshift, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CreateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateRedshift from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodK8SOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodK8SOutput} The populated CreateAuthMethodK8SOutput instance. + * @param {module:model/DynamicSecretUpdateRedshift} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRedshift} The populated DynamicSecretUpdateRedshift instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodK8SOutput(); + obj = obj || new DynamicSecretUpdateRedshift(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); } - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - - return obj; - } - }]); - - return CreateAuthMethodK8SOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodK8SOutput.prototype['access_id'] = undefined; -/** - * @member {String} prv_key - */ - -CreateAuthMethodK8SOutput.prototype['prv_key'] = undefined; -var _default = CreateAuthMethodK8SOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 29277: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * The CreateAuthMethodLDAP model module. - * @module model/CreateAuthMethodLDAP - * @version 3.3.16 - */ -var CreateAuthMethodLDAP = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodLDAP. - * createAuthMethodLDAP is a command that creates a new auth method that will be able to authenticate using LDAP. - * @alias module:model/CreateAuthMethodLDAP - * @param name {String} Auth Method name - */ - function CreateAuthMethodLDAP(name) { - _classCallCheck(this, CreateAuthMethodLDAP); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - CreateAuthMethodLDAP.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - _createClass(CreateAuthMethodLDAP, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodLDAP} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodLDAP} The populated CreateAuthMethodLDAP instance. - */ + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodLDAP(); + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); + } - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); } - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('public-key-data')) { - obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -30256,8 +104870,8 @@ var CreateAuthMethodLDAP = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -30265,183 +104879,146 @@ var CreateAuthMethodLDAP = /*#__PURE__*/function () { } }]); - return CreateAuthMethodLDAP; + return DynamicSecretUpdateRedshift; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Redshift Creation statements + * @member {String} creation-statements */ -CreateAuthMethodLDAP.prototype['access-expires'] = 0; +DynamicSecretUpdateRedshift.prototype['creation-statements'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodLDAP.prototype['bound-ips'] = undefined; +DynamicSecretUpdateRedshift.prototype['delete_protection'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Description of the object + * @member {String} description */ -CreateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateRedshift.prototype['description'] = undefined; /** - * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key - * @default 'true' + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodLDAP.prototype['gen-key'] = 'true'; +DynamicSecretUpdateRedshift.prototype['json'] = false; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateRedshift.prototype['name'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Dynamic secret name + * @member {String} new-name */ -CreateAuthMethodLDAP.prototype['json'] = false; +DynamicSecretUpdateRedshift.prototype['new-name'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * The length of the password to be generated + * @member {String} password-length */ -CreateAuthMethodLDAP.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateRedshift.prototype['password-length'] = undefined; /** - * Auth Method name - * @member {String} name + * Dynamic producer encryption key + * @member {String} producer-encryption-key */ -CreateAuthMethodLDAP.prototype['name'] = undefined; +DynamicSecretUpdateRedshift.prototype['producer-encryption-key'] = undefined; /** - * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] - * @member {String} public-key-data + * Redshift DB Name + * @member {String} redshift-db-name */ -CreateAuthMethodLDAP.prototype['public-key-data'] = undefined; +DynamicSecretUpdateRedshift.prototype['redshift-db-name'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' */ -CreateAuthMethodLDAP.prototype['token'] = undefined; +DynamicSecretUpdateRedshift.prototype['redshift-host'] = '127.0.0.1'; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Redshift Password + * @member {String} redshift-password */ -CreateAuthMethodLDAP.prototype['uid-token'] = undefined; +DynamicSecretUpdateRedshift.prototype['redshift-password'] = undefined; /** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - * @default 'users' + * Redshift Port + * @member {String} redshift-port + * @default '5439' */ -CreateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; -var _default = CreateAuthMethodLDAP; -exports["default"] = _default; - -/***/ }), - -/***/ 87856: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +DynamicSecretUpdateRedshift.prototype['redshift-port'] = '5439'; /** - * The CreateAuthMethodLDAPOutput model module. - * @module model/CreateAuthMethodLDAPOutput - * @version 3.3.16 + * Redshift Username + * @member {String} redshift-username */ -var CreateAuthMethodLDAPOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodLDAPOutput. - * @alias module:model/CreateAuthMethodLDAPOutput - */ - function CreateAuthMethodLDAPOutput() { - _classCallCheck(this, CreateAuthMethodLDAPOutput); - - CreateAuthMethodLDAPOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateRedshift.prototype['redshift-username'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - _createClass(CreateAuthMethodLDAPOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodLDAPOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodLDAPOutput} The populated CreateAuthMethodLDAPOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodLDAPOutput(); +DynamicSecretUpdateRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } +DynamicSecretUpdateRedshift.prototype['secure-access-host'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); - } - } +DynamicSecretUpdateRedshift.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - return obj; - } - }]); +DynamicSecretUpdateRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return CreateAuthMethodLDAPOutput; -}(); +DynamicSecretUpdateRedshift.prototype['target-name'] = undefined; /** - * @member {String} access_id + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +DynamicSecretUpdateRedshift.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -CreateAuthMethodLDAPOutput.prototype['access_id'] = undefined; +DynamicSecretUpdateRedshift.prototype['uid-token'] = undefined; /** - * @member {String} prv_key + * User TTL + * @member {String} user-ttl + * @default '60m' */ -CreateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; -var _default = CreateAuthMethodLDAPOutput; +DynamicSecretUpdateRedshift.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateRedshift; exports["default"] = _default; /***/ }), -/***/ 90371: +/***/ 27757: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30452,7 +105029,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -30463,23 +105040,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodOAuth2 model module. - * @module model/CreateAuthMethodOAuth2 - * @version 3.3.16 + * The DynamicSecretUpdateSnowflake model module. + * @module model/DynamicSecretUpdateSnowflake + * @version 3.6.3 */ -var CreateAuthMethodOAuth2 = /*#__PURE__*/function () { +var DynamicSecretUpdateSnowflake = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodOAuth2. - * createAuthMethodOAuth2 is a command that creates a new auth method that will be able to authenticate using Oauth2. - * @alias module:model/CreateAuthMethodOAuth2 - * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * Constructs a new DynamicSecretUpdateSnowflake. + * GatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake dynamic secret + * @alias module:model/DynamicSecretUpdateSnowflake + * @param name {String} Dynamic secret name */ - function CreateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodOAuth2); + function DynamicSecretUpdateSnowflake(name) { + _classCallCheck(this, DynamicSecretUpdateSnowflake); - CreateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); + DynamicSecretUpdateSnowflake.initialize(this, name); } /** * Initializes the fields of this object. @@ -30488,73 +105063,83 @@ var CreateAuthMethodOAuth2 = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodOAuth2, null, [{ + _createClass(DynamicSecretUpdateSnowflake, null, [{ key: "initialize", - value: function initialize(obj, jwksUri, name, uniqueIdentifier) { - obj['jwks-uri'] = jwksUri; + value: function initialize(obj, name) { obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a CreateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateSnowflake from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOAuth2} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOAuth2} The populated CreateAuthMethodOAuth2 instance. + * @param {module:model/DynamicSecretUpdateSnowflake} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateSnowflake} The populated DynamicSecretUpdateSnowflake instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodOAuth2(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } + obj = obj || new DynamicSecretUpdateSnowflake(); - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); } - if (data.hasOwnProperty('bound-client-ids')) { - obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('jwks-json-data')) { - obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + } + + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -30565,8 +105150,12 @@ var CreateAuthMethodOAuth2 = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); } } @@ -30574,191 +105163,131 @@ var CreateAuthMethodOAuth2 = /*#__PURE__*/function () { } }]); - return CreateAuthMethodOAuth2; + return DynamicSecretUpdateSnowflake; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Account name + * @member {String} account */ -CreateAuthMethodOAuth2.prototype['access-expires'] = 0; -/** - * The audience in the JWT - * @member {String} audience - */ - -CreateAuthMethodOAuth2.prototype['audience'] = undefined; +DynamicSecretUpdateSnowflake.prototype['account'] = undefined; /** - * The clients ids that the access is restricted to - * @member {Array.} bound-client-ids + * Database Password + * @member {String} account-password */ -CreateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; +DynamicSecretUpdateSnowflake.prototype['account-password'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Database Username + * @member {String} account-username */ -CreateAuthMethodOAuth2.prototype['bound-ips'] = undefined; +DynamicSecretUpdateSnowflake.prototype['account-username'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Database name + * @member {String} db-name */ -CreateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateSnowflake.prototype['db-name'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateSnowflake.prototype['delete_protection'] = undefined; /** - * Issuer URL - * @member {String} issuer + * Description of the object + * @member {String} description */ -CreateAuthMethodOAuth2.prototype['issuer'] = undefined; +DynamicSecretUpdateSnowflake.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateAuthMethodOAuth2.prototype['json'] = false; +DynamicSecretUpdateSnowflake.prototype['json'] = false; /** - * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string - * @member {String} jwks-json-data + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; +DynamicSecretUpdateSnowflake.prototype['name'] = undefined; /** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'default_jwks_url' + * Dynamic secret name + * @member {String} new-name */ -CreateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; +DynamicSecretUpdateSnowflake.prototype['new-name'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * The length of the password to be generated + * @member {String} password-length */ -CreateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateSnowflake.prototype['password-length'] = undefined; /** - * Auth Method name - * @member {String} name + * RSA Private key (base64 encoded) + * @member {String} private-key */ -CreateAuthMethodOAuth2.prototype['name'] = undefined; +DynamicSecretUpdateSnowflake.prototype['private-key'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The Private key passphrase + * @member {String} private-key-passphrase */ -CreateAuthMethodOAuth2.prototype['token'] = undefined; +DynamicSecretUpdateSnowflake.prototype['private-key-passphrase'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * User role + * @member {String} role */ -CreateAuthMethodOAuth2.prototype['uid-token'] = undefined; +DynamicSecretUpdateSnowflake.prototype['role'] = undefined; /** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier + * Add tags attached to this object + * @member {Array.} tags */ -CreateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodOAuth2; -exports["default"] = _default; - -/***/ }), - -/***/ 70581: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +DynamicSecretUpdateSnowflake.prototype['tags'] = undefined; /** - * The CreateAuthMethodOAuth2Output model module. - * @module model/CreateAuthMethodOAuth2Output - * @version 3.3.16 + * Target name + * @member {String} target-name */ -var CreateAuthMethodOAuth2Output = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodOAuth2Output. - * @alias module:model/CreateAuthMethodOAuth2Output - */ - function CreateAuthMethodOAuth2Output() { - _classCallCheck(this, CreateAuthMethodOAuth2Output); - - CreateAuthMethodOAuth2Output.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodOAuth2Output, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodOAuth2Output from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOAuth2Output} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOAuth2Output} The populated CreateAuthMethodOAuth2Output instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodOAuth2Output(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } +DynamicSecretUpdateSnowflake.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return obj; - } - }]); +DynamicSecretUpdateSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return CreateAuthMethodOAuth2Output; -}(); +DynamicSecretUpdateSnowflake.prototype['uid-token'] = undefined; /** - * @member {String} access_id + * User TTL + * @member {String} user-ttl + * @default '24h' */ +DynamicSecretUpdateSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ -CreateAuthMethodOAuth2Output.prototype['access_id'] = undefined; -var _default = CreateAuthMethodOAuth2Output; +DynamicSecretUpdateSnowflake.prototype['warehouse'] = undefined; +var _default = DynamicSecretUpdateSnowflake; exports["default"] = _default; /***/ }), -/***/ 11827: +/***/ 54828: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30769,7 +105298,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -30780,22 +105309,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodOIDC model module. - * @module model/CreateAuthMethodOIDC - * @version 3.3.16 + * The DynamicSecretUpdateVenafi model module. + * @module model/DynamicSecretUpdateVenafi + * @version 3.6.3 */ -var CreateAuthMethodOIDC = /*#__PURE__*/function () { +var DynamicSecretUpdateVenafi = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodOIDC. - * createAuthMethodOIDC is a command that creates a new auth method that will be available to authenticate using OIDC. - * @alias module:model/CreateAuthMethodOIDC - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * Constructs a new DynamicSecretUpdateVenafi. + * dynamicSecretUpdateVenafi is a command that updates a Venafi dynamic secret to dynamically update certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi + * @alias module:model/DynamicSecretUpdateVenafi + * @param name {String} Dynamic secret name */ - function CreateAuthMethodOIDC(name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodOIDC); + function DynamicSecretUpdateVenafi(name) { + _classCallCheck(this, DynamicSecretUpdateVenafi); - CreateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); + DynamicSecretUpdateVenafi.initialize(this, name); } /** * Initializes the fields of this object. @@ -30804,80 +105332,91 @@ var CreateAuthMethodOIDC = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodOIDC, null, [{ + _createClass(DynamicSecretUpdateVenafi, null, [{ key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { + value: function initialize(obj, name) { obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a CreateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. + * Constructs a DynamicSecretUpdateVenafi from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOIDC} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOIDC} The populated CreateAuthMethodOIDC instance. + * @param {module:model/DynamicSecretUpdateVenafi} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateVenafi} The populated DynamicSecretUpdateVenafi instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodOIDC(); + obj = obj || new DynamicSecretUpdateVenafi(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); } - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); } - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); } - if (data.hasOwnProperty('required-scopes')) { - obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); } - if (data.hasOwnProperty('required-scopes-prefix')) { - obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -30888,8 +105427,36 @@ var CreateAuthMethodOIDC = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); + } + + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); + } + + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); + } + + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); } } @@ -30897,202 +105464,182 @@ var CreateAuthMethodOIDC = /*#__PURE__*/function () { } }]); - return CreateAuthMethodOIDC; + return DynamicSecretUpdateVenafi; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days * @default 0 */ -CreateAuthMethodOIDC.prototype['access-expires'] = 0; +DynamicSecretUpdateVenafi.prototype['admin-rotation-interval-days'] = 0; /** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri + * Allow subdomains + * @member {Boolean} allow-subdomains */ -CreateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; +DynamicSecretUpdateVenafi.prototype['allow-subdomains'] = undefined; /** - * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application - * @member {String} audience + * Allowed domains + * @member {Array.} allowed-domains */ -CreateAuthMethodOIDC.prototype['audience'] = undefined; +DynamicSecretUpdateVenafi.prototype['allowed-domains'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Auto generated folder + * @member {String} auto-generated-folder */ -CreateAuthMethodOIDC.prototype['bound-ips'] = undefined; +DynamicSecretUpdateVenafi.prototype['auto-generated-folder'] = undefined; /** - * Client ID - * @member {String} client-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateAuthMethodOIDC.prototype['client-id'] = undefined; +DynamicSecretUpdateVenafi.prototype['delete_protection'] = undefined; /** - * Client Secret - * @member {String} client-secret + * Description of the object + * @member {String} description */ -CreateAuthMethodOIDC.prototype['client-secret'] = undefined; +DynamicSecretUpdateVenafi.prototype['description'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false */ -CreateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; +DynamicSecretUpdateVenafi.prototype['enable-admin-rotation'] = false; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; +DynamicSecretUpdateVenafi.prototype['json'] = false; /** - * Issuer URL - * @member {String} issuer + * Dynamic secret name + * @member {String} name */ -CreateAuthMethodOIDC.prototype['issuer'] = undefined; +DynamicSecretUpdateVenafi.prototype['name'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Dynamic secret new name + * @member {String} new-name */ -CreateAuthMethodOIDC.prototype['json'] = false; +DynamicSecretUpdateVenafi.prototype['new-name'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateAuthMethodOIDC.prototype['jwt-ttl'] = 0; +DynamicSecretUpdateVenafi.prototype['producer-encryption-key-name'] = undefined; /** - * Auth Method name - * @member {String} name + * Root first in chain + * @member {Boolean} root-first-in-chain */ -CreateAuthMethodOIDC.prototype['name'] = undefined; +DynamicSecretUpdateVenafi.prototype['root-first-in-chain'] = undefined; /** - * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve - * @member {Array.} required-scopes + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki */ -CreateAuthMethodOIDC.prototype['required-scopes'] = undefined; +DynamicSecretUpdateVenafi.prototype['sign-using-akeyless-pki'] = undefined; /** - * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) - * @member {String} required-scopes-prefix + * Signer key name + * @member {String} signer-key-name */ -CreateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; +DynamicSecretUpdateVenafi.prototype['signer-key-name'] = undefined; +/** + * Store private key + * @member {Boolean} store-private-key + */ + +DynamicSecretUpdateVenafi.prototype['store-private-key'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateVenafi.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateVenafi.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAuthMethodOIDC.prototype['token'] = undefined; +DynamicSecretUpdateVenafi.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAuthMethodOIDC.prototype['uid-token'] = undefined; +DynamicSecretUpdateVenafi.prototype['uid-token'] = undefined; /** - * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' */ -CreateAuthMethodOIDC.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodOIDC; -exports["default"] = _default; - -/***/ }), - -/***/ 41721: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +DynamicSecretUpdateVenafi.prototype['user-ttl'] = '2160h'; /** - * The CreateAuthMethodOIDCOutput model module. - * @module model/CreateAuthMethodOIDCOutput - * @version 3.3.16 + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token */ -var CreateAuthMethodOIDCOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodOIDCOutput. - * @alias module:model/CreateAuthMethodOIDCOutput - */ - function CreateAuthMethodOIDCOutput() { - _classCallCheck(this, CreateAuthMethodOIDCOutput); - - CreateAuthMethodOIDCOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +DynamicSecretUpdateVenafi.prototype['venafi-access-token'] = undefined; +/** + * Venafi API key + * @member {String} venafi-api-key + */ - _createClass(CreateAuthMethodOIDCOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodOIDCOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOIDCOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOIDCOutput} The populated CreateAuthMethodOIDCOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodOIDCOutput(); +DynamicSecretUpdateVenafi.prototype['venafi-api-key'] = undefined; +/** + * Venafi Baseurl + * @member {String} venafi-baseurl + */ - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } +DynamicSecretUpdateVenafi.prototype['venafi-baseurl'] = undefined; +/** + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' + */ - return obj; - } - }]); +DynamicSecretUpdateVenafi.prototype['venafi-client-id'] = 'akeyless'; +/** + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token + */ - return CreateAuthMethodOIDCOutput; -}(); +DynamicSecretUpdateVenafi.prototype['venafi-refresh-token'] = undefined; /** - * @member {String} access_id + * Venafi using TPP + * @member {Boolean} venafi-use-tpp */ +DynamicSecretUpdateVenafi.prototype['venafi-use-tpp'] = undefined; +/** + * Venafi Zone + * @member {String} venafi-zone + */ -CreateAuthMethodOIDCOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodOIDCOutput; +DynamicSecretUpdateVenafi.prototype['venafi-zone'] = undefined; +var _default = DynamicSecretUpdateVenafi; exports["default"] = _default; /***/ }), -/***/ 41331: +/***/ 80007: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -31103,7 +105650,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -31114,19 +105661,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodOutput model module. - * @module model/CreateAuthMethodOutput - * @version 3.3.16 + * The EKSTargetDetails model module. + * @module model/EKSTargetDetails + * @version 3.6.3 */ -var CreateAuthMethodOutput = /*#__PURE__*/function () { +var EKSTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodOutput. - * @alias module:model/CreateAuthMethodOutput + * Constructs a new EKSTargetDetails. + * EKSTargetDetails defines details related to connecting to a EKS (Elastic Container Service) target + * @alias module:model/EKSTargetDetails */ - function CreateAuthMethodOutput() { - _classCallCheck(this, CreateAuthMethodOutput); + function EKSTargetDetails() { + _classCallCheck(this, EKSTargetDetails); - CreateAuthMethodOutput.initialize(this); + EKSTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -31135,33 +105683,49 @@ var CreateAuthMethodOutput = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodOutput, null, [{ + _createClass(EKSTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EKSTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOutput} The populated CreateAuthMethodOutput instance. + * @param {module:model/EKSTargetDetails} obj Optional instance to populate. + * @return {module:model/EKSTargetDetails} The populated EKSTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodOutput(); + obj = obj || new EKSTargetDetails(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('eks_access_key_id')) { + obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); } - if (data.hasOwnProperty('access_key')) { - obj['access_key'] = _ApiClient["default"].convertToType(data['access_key'], 'String'); + if (data.hasOwnProperty('eks_cluster_ca_certificate')) { + obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('eks_cluster_endpoint')) { + obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_name')) { + obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('eks_region')) { + obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); + } + + if (data.hasOwnProperty('eks_secret_access_key')) { + obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); } } @@ -31169,30 +105733,50 @@ var CreateAuthMethodOutput = /*#__PURE__*/function () { } }]); - return CreateAuthMethodOutput; + return EKSTargetDetails; }(); /** - * @member {String} access_id + * @member {String} eks_access_key_id */ -CreateAuthMethodOutput.prototype['access_id'] = undefined; +EKSTargetDetails.prototype['eks_access_key_id'] = undefined; /** - * @member {String} access_key + * @member {String} eks_cluster_ca_certificate */ -CreateAuthMethodOutput.prototype['access_key'] = undefined; +EKSTargetDetails.prototype['eks_cluster_ca_certificate'] = undefined; /** - * @member {String} name + * @member {String} eks_cluster_endpoint */ -CreateAuthMethodOutput.prototype['name'] = undefined; -var _default = CreateAuthMethodOutput; +EKSTargetDetails.prototype['eks_cluster_endpoint'] = undefined; +/** + * @member {String} eks_cluster_name + */ + +EKSTargetDetails.prototype['eks_cluster_name'] = undefined; +/** + * @member {String} eks_region + */ + +EKSTargetDetails.prototype['eks_region'] = undefined; +/** + * @member {String} eks_secret_access_key + */ + +EKSTargetDetails.prototype['eks_secret_access_key'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +EKSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = EKSTargetDetails; exports["default"] = _default; /***/ }), -/***/ 68547: +/***/ 79375: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -31203,7 +105787,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -31214,22 +105798,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodSAML model module. - * @module model/CreateAuthMethodSAML - * @version 3.3.16 + * The ElasticsearchLogForwardingConfig model module. + * @module model/ElasticsearchLogForwardingConfig + * @version 3.6.3 */ -var CreateAuthMethodSAML = /*#__PURE__*/function () { +var ElasticsearchLogForwardingConfig = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodSAML. - * createAuthMethodSAML is a command that creates a new auth method that will be available to authenticate using SAML. - * @alias module:model/CreateAuthMethodSAML - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * Constructs a new ElasticsearchLogForwardingConfig. + * @alias module:model/ElasticsearchLogForwardingConfig */ - function CreateAuthMethodSAML(name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodSAML); + function ElasticsearchLogForwardingConfig() { + _classCallCheck(this, ElasticsearchLogForwardingConfig); - CreateAuthMethodSAML.initialize(this, name, uniqueIdentifier); + ElasticsearchLogForwardingConfig.initialize(this); } /** * Initializes the fields of this object. @@ -31238,76 +105819,61 @@ var CreateAuthMethodSAML = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodSAML, null, [{ + _createClass(ElasticsearchLogForwardingConfig, null, [{ key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } + value: function initialize(obj) {} /** - * Constructs a CreateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. + * Constructs a ElasticsearchLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodSAML} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodSAML} The populated CreateAuthMethodSAML instance. + * @param {module:model/ElasticsearchLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/ElasticsearchLogForwardingConfig} The populated ElasticsearchLogForwardingConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodSAML(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } + obj = obj || new ElasticsearchLogForwardingConfig(); - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('elasticsearch_api_key')) { + obj['elasticsearch_api_key'] = _ApiClient["default"].convertToType(data['elasticsearch_api_key'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('elasticsearch_auth_type')) { + obj['elasticsearch_auth_type'] = _ApiClient["default"].convertToType(data['elasticsearch_auth_type'], 'String'); } - if (data.hasOwnProperty('idp-metadata-url')) { - obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); + if (data.hasOwnProperty('elasticsearch_cloud_id')) { + obj['elasticsearch_cloud_id'] = _ApiClient["default"].convertToType(data['elasticsearch_cloud_id'], 'String'); } - if (data.hasOwnProperty('idp-metadata-xml-data')) { - obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); + if (data.hasOwnProperty('elasticsearch_enable_tls')) { + obj['elasticsearch_enable_tls'] = _ApiClient["default"].convertToType(data['elasticsearch_enable_tls'], 'Boolean'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('elasticsearch_index')) { + obj['elasticsearch_index'] = _ApiClient["default"].convertToType(data['elasticsearch_index'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('elasticsearch_nodes')) { + obj['elasticsearch_nodes'] = _ApiClient["default"].convertToType(data['elasticsearch_nodes'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('elasticsearch_password')) { + obj['elasticsearch_password'] = _ApiClient["default"].convertToType(data['elasticsearch_password'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('elasticsearch_server_type')) { + obj['elasticsearch_server_type'] = _ApiClient["default"].convertToType(data['elasticsearch_server_type'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('elasticsearch_tls_certificate')) { + obj['elasticsearch_tls_certificate'] = _ApiClient["default"].convertToType(data['elasticsearch_tls_certificate'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('elasticsearch_user_name')) { + obj['elasticsearch_user_name'] = _ApiClient["default"].convertToType(data['elasticsearch_user_name'], 'String'); } } @@ -31315,96 +105881,65 @@ var CreateAuthMethodSAML = /*#__PURE__*/function () { } }]); - return CreateAuthMethodSAML; + return ElasticsearchLogForwardingConfig; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodSAML.prototype['access-expires'] = 0; -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri - */ - -CreateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * @member {String} elasticsearch_api_key */ -CreateAuthMethodSAML.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ -CreateAuthMethodSAML.prototype['force-sub-claims'] = undefined; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_api_key'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * @member {String} elasticsearch_auth_type */ -CreateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_auth_type'] = undefined; /** - * IDP metadata url - * @member {String} idp-metadata-url + * @member {String} elasticsearch_cloud_id */ -CreateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_cloud_id'] = undefined; /** - * IDP metadata xml data - * @member {String} idp-metadata-xml-data + * @member {Boolean} elasticsearch_enable_tls */ -CreateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_enable_tls'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} elasticsearch_index */ -CreateAuthMethodSAML.prototype['json'] = false; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_index'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * @member {String} elasticsearch_nodes */ -CreateAuthMethodSAML.prototype['jwt-ttl'] = 0; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_nodes'] = undefined; /** - * Auth Method name - * @member {String} name + * @member {String} elasticsearch_password */ -CreateAuthMethodSAML.prototype['name'] = undefined; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_password'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} elasticsearch_server_type */ -CreateAuthMethodSAML.prototype['token'] = undefined; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_server_type'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} elasticsearch_tls_certificate */ -CreateAuthMethodSAML.prototype['uid-token'] = undefined; +ElasticsearchLogForwardingConfig.prototype['elasticsearch_tls_certificate'] = undefined; /** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier + * @member {String} elasticsearch_user_name */ - -CreateAuthMethodSAML.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodSAML; + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_user_name'] = undefined; +var _default = ElasticsearchLogForwardingConfig; exports["default"] = _default; /***/ }), -/***/ 56578: +/***/ 14877: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -31415,7 +105950,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -31426,19 +105961,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodSAMLOutput model module. - * @module model/CreateAuthMethodSAMLOutput - * @version 3.3.16 + * The EmailEntry model module. + * @module model/EmailEntry + * @version 3.6.3 */ -var CreateAuthMethodSAMLOutput = /*#__PURE__*/function () { +var EmailEntry = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodSAMLOutput. - * @alias module:model/CreateAuthMethodSAMLOutput + * Constructs a new EmailEntry. + * @alias module:model/EmailEntry */ - function CreateAuthMethodSAMLOutput() { - _classCallCheck(this, CreateAuthMethodSAMLOutput); + function EmailEntry() { + _classCallCheck(this, EmailEntry); - CreateAuthMethodSAMLOutput.initialize(this); + EmailEntry.initialize(this); } /** * Initializes the fields of this object. @@ -31447,25 +105982,29 @@ var CreateAuthMethodSAMLOutput = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodSAMLOutput, null, [{ + _createClass(EmailEntry, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateAuthMethodSAMLOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EmailEntry from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodSAMLOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodSAMLOutput} The populated CreateAuthMethodSAMLOutput instance. + * @param {module:model/EmailEntry} obj Optional instance to populate. + * @return {module:model/EmailEntry} The populated EmailEntry instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodSAMLOutput(); + obj = obj || new EmailEntry(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('to_email')) { + obj['to_email'] = _ApiClient["default"].convertToType(data['to_email'], 'String'); + } + + if (data.hasOwnProperty('to_name')) { + obj['to_name'] = _ApiClient["default"].convertToType(data['to_name'], 'String'); } } @@ -31473,20 +106012,25 @@ var CreateAuthMethodSAMLOutput = /*#__PURE__*/function () { } }]); - return CreateAuthMethodSAMLOutput; + return EmailEntry; }(); /** - * @member {String} access_id + * @member {String} to_email */ -CreateAuthMethodSAMLOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodSAMLOutput; +EmailEntry.prototype['to_email'] = undefined; +/** + * @member {String} to_name + */ + +EmailEntry.prototype['to_name'] = undefined; +var _default = EmailEntry; exports["default"] = _default; /***/ }), -/***/ 70344: +/***/ 38739: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -31497,7 +106041,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -31508,21 +106052,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodUniversalIdentity model module. - * @module model/CreateAuthMethodUniversalIdentity - * @version 3.3.16 + * The EmailPassAccessRules model module. + * @module model/EmailPassAccessRules + * @version 3.6.3 */ -var CreateAuthMethodUniversalIdentity = /*#__PURE__*/function () { +var EmailPassAccessRules = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodUniversalIdentity. - * createAuthMethodUniversalIdentity is a command that creates a new auth method that will be able to authenticate using Akeyless Universal Identity. - * @alias module:model/CreateAuthMethodUniversalIdentity - * @param name {String} Auth Method name + * Constructs a new EmailPassAccessRules. + * @alias module:model/EmailPassAccessRules */ - function CreateAuthMethodUniversalIdentity(name) { - _classCallCheck(this, CreateAuthMethodUniversalIdentity); + function EmailPassAccessRules() { + _classCallCheck(this, EmailPassAccessRules); - CreateAuthMethodUniversalIdentity.initialize(this, name); + EmailPassAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -31531,71 +106073,37 @@ var CreateAuthMethodUniversalIdentity = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodUniversalIdentity, null, [{ + _createClass(EmailPassAccessRules, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a CreateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. + * Constructs a EmailPassAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodUniversalIdentity} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodUniversalIdentity} The populated CreateAuthMethodUniversalIdentity instance. + * @param {module:model/EmailPassAccessRules} obj Optional instance to populate. + * @return {module:model/EmailPassAccessRules} The populated EmailPassAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodUniversalIdentity(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('deny-inheritance')) { - obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); - } - - if (data.hasOwnProperty('deny-rotate')) { - obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } + obj = obj || new EmailPassAccessRules(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('enc_email_with_shared_key')) { + obj['enc_email_with_shared_key'] = _ApiClient["default"].convertToType(data['enc_email_with_shared_key'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('hash_pass')) { + obj['hash_pass'] = _ApiClient["default"].convertToType(data['hash_pass'], 'String'); } } @@ -31603,91 +106111,38 @@ var CreateAuthMethodUniversalIdentity = /*#__PURE__*/function () { } }]); - return CreateAuthMethodUniversalIdentity; + return EmailPassAccessRules; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; -/** - * Deny from root to create children - * @member {Boolean} deny-inheritance - */ - -CreateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; -/** - * Deny from the token to rotate - * @member {Boolean} deny-rotate - */ - -CreateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodUniversalIdentity.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * @member {String} alg */ -CreateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ -CreateAuthMethodUniversalIdentity.prototype['name'] = undefined; +EmailPassAccessRules.prototype['alg'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The Email value + * @member {String} email */ -CreateAuthMethodUniversalIdentity.prototype['token'] = undefined; +EmailPassAccessRules.prototype['email'] = undefined; /** - * Token ttl - * @member {Number} ttl - * @default 60 + * EncEmailWithSharedKey is the email of this auth method, encrypted with the shared auth/uam key (for use in uam) + * @member {String} enc_email_with_shared_key */ -CreateAuthMethodUniversalIdentity.prototype['ttl'] = 60; +EmailPassAccessRules.prototype['enc_email_with_shared_key'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * The password value + * @member {String} hash_pass */ -CreateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodUniversalIdentity; +EmailPassAccessRules.prototype['hash_pass'] = undefined; +var _default = EmailPassAccessRules; exports["default"] = _default; /***/ }), -/***/ 46912: +/***/ 12672: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -31698,7 +106153,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -31709,19 +106164,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAuthMethodUniversalIdentityOutput model module. - * @module model/CreateAuthMethodUniversalIdentityOutput - * @version 3.3.16 + * The EmailTokenizerInfo model module. + * @module model/EmailTokenizerInfo + * @version 3.6.3 */ -var CreateAuthMethodUniversalIdentityOutput = /*#__PURE__*/function () { +var EmailTokenizerInfo = /*#__PURE__*/function () { /** - * Constructs a new CreateAuthMethodUniversalIdentityOutput. - * @alias module:model/CreateAuthMethodUniversalIdentityOutput + * Constructs a new EmailTokenizerInfo. + * EmailTokenizerInfo represents a tokenizer that specifically tokenizes emails + * @alias module:model/EmailTokenizerInfo */ - function CreateAuthMethodUniversalIdentityOutput() { - _classCallCheck(this, CreateAuthMethodUniversalIdentityOutput); + function EmailTokenizerInfo() { + _classCallCheck(this, EmailTokenizerInfo); - CreateAuthMethodUniversalIdentityOutput.initialize(this); + EmailTokenizerInfo.initialize(this); } /** * Initializes the fields of this object. @@ -31730,25 +106186,33 @@ var CreateAuthMethodUniversalIdentityOutput = /*#__PURE__*/function () { */ - _createClass(CreateAuthMethodUniversalIdentityOutput, null, [{ + _createClass(EmailTokenizerInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateAuthMethodUniversalIdentityOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EmailTokenizerInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodUniversalIdentityOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodUniversalIdentityOutput} The populated CreateAuthMethodUniversalIdentityOutput instance. + * @param {module:model/EmailTokenizerInfo} obj Optional instance to populate. + * @return {module:model/EmailTokenizerInfo} The populated EmailTokenizerInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAuthMethodUniversalIdentityOutput(); + obj = obj || new EmailTokenizerInfo(); - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + if (data.hasOwnProperty('domain_suffix_length')) { + obj['domain_suffix_length'] = _ApiClient["default"].convertToType(data['domain_suffix_length'], 'Number'); + } + + if (data.hasOwnProperty('fixed_domain_suffix')) { + obj['fixed_domain_suffix'] = _ApiClient["default"].convertToType(data['fixed_domain_suffix'], 'String'); + } + + if (data.hasOwnProperty('keep_prefix_length')) { + obj['keep_prefix_length'] = _ApiClient["default"].convertToType(data['keep_prefix_length'], 'Number'); } } @@ -31756,20 +106220,33 @@ var CreateAuthMethodUniversalIdentityOutput = /*#__PURE__*/function () { } }]); - return CreateAuthMethodUniversalIdentityOutput; + return EmailTokenizerInfo; }(); /** - * @member {String} access_id + * What length of a random domain suffix to generate used only if FixedDomainSuffix is empty + * @member {Number} domain_suffix_length */ -CreateAuthMethodUniversalIdentityOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodUniversalIdentityOutput; +EmailTokenizerInfo.prototype['domain_suffix_length'] = undefined; +/** + * if FixedDomainSuffix isn't empty, it will be appended to the output + * @member {String} fixed_domain_suffix + */ + +EmailTokenizerInfo.prototype['fixed_domain_suffix'] = undefined; +/** + * How many letters of the plaintext to keep in the output + * @member {Number} keep_prefix_length + */ + +EmailTokenizerInfo.prototype['keep_prefix_length'] = undefined; +var _default = EmailTokenizerInfo; exports["default"] = _default; /***/ }), -/***/ 82408: +/***/ 41068: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -31780,7 +106257,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -31791,20 +106268,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAzureTarget model module. - * @module model/CreateAzureTarget - * @version 3.3.16 + * The Encrypt model module. + * @module model/Encrypt + * @version 3.6.3 */ -var CreateAzureTarget = /*#__PURE__*/function () { +var Encrypt = /*#__PURE__*/function () { /** - * Constructs a new CreateAzureTarget. - * @alias module:model/CreateAzureTarget - * @param name {String} Target name + * Constructs a new Encrypt. + * @alias module:model/Encrypt + * @param keyName {String} The name of the key to use in the encryption process */ - function CreateAzureTarget(name) { - _classCallCheck(this, CreateAzureTarget); + function Encrypt(keyName) { + _classCallCheck(this, Encrypt); - CreateAzureTarget.initialize(this, name); + Encrypt.initialize(this, keyName); } /** * Initializes the fields of this object. @@ -31813,67 +106290,53 @@ var CreateAzureTarget = /*#__PURE__*/function () { */ - _createClass(CreateAzureTarget, null, [{ + _createClass(Encrypt, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, keyName) { + obj['key-name'] = keyName; } /** - * Constructs a CreateAzureTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a Encrypt from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAzureTarget} obj Optional instance to populate. - * @return {module:model/CreateAzureTarget} The populated CreateAzureTarget instance. + * @param {module:model/Encrypt} obj Optional instance to populate. + * @return {module:model/Encrypt} The populated Encrypt instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAzureTarget(); + obj = obj || new Encrypt(); - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + if (data.hasOwnProperty('encryption-context')) { + obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { + 'String': 'String' + }); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('resource-group-name')) { - obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); - } - - if (data.hasOwnProperty('resource-name')) { - obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); - } - - if (data.hasOwnProperty('subscription-id')) { - obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); } - if (data.hasOwnProperty('tenant-id')) { - obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); } if (data.hasOwnProperty('token')) { @@ -31884,8 +106347,8 @@ var CreateAzureTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -31893,96 +106356,235 @@ var CreateAzureTarget = /*#__PURE__*/function () { } }]); - return CreateAzureTarget; + return Encrypt; }(); /** - * @member {String} client-id + * The display id of the key to use in the encryption process + * @member {String} display-id */ -CreateAzureTarget.prototype['client-id'] = undefined; +Encrypt.prototype['display-id'] = undefined; /** - * @member {String} client-secret + * name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the decrypt command or decryption will fail + * @member {Object.} encryption-context */ -CreateAzureTarget.prototype['client-secret'] = undefined; +Encrypt.prototype['encryption-context'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * Select default assumed format for any plaintext input. Currently supported options: [base64] + * @member {String} input-format */ -CreateAzureTarget.prototype['comment'] = undefined; +Encrypt.prototype['input-format'] = undefined; /** - * Description of the object - * @member {String} description + * The item id of the key to use in the encryption process + * @member {Number} item-id */ -CreateAzureTarget.prototype['description'] = undefined; +Encrypt.prototype['item-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateAzureTarget.prototype['json'] = false; +Encrypt.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * The name of the key to use in the encryption process + * @member {String} key-name */ -CreateAzureTarget.prototype['key'] = undefined; +Encrypt.prototype['key-name'] = undefined; /** - * Target name - * @member {String} name + * Data to be encrypted + * @member {String} plaintext */ -CreateAzureTarget.prototype['name'] = undefined; +Encrypt.prototype['plaintext'] = undefined; /** - * The Resource Group name in your Azure subscription - * @member {String} resource-group-name + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -CreateAzureTarget.prototype['resource-group-name'] = undefined; +Encrypt.prototype['token'] = undefined; /** - * The name of the relevant Resource - * @member {String} resource-name + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -CreateAzureTarget.prototype['resource-name'] = undefined; +Encrypt.prototype['uid-token'] = undefined; /** - * Azure Subscription Id - * @member {String} subscription-id + * key version (relevant only for classic key) + * @member {Number} version */ -CreateAzureTarget.prototype['subscription-id'] = undefined; +Encrypt.prototype['version'] = undefined; +var _default = Encrypt; +exports["default"] = _default; + +/***/ }), + +/***/ 71378: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * @member {String} tenant-id + * The EncryptFile model module. + * @module model/EncryptFile + * @version 3.6.3 */ +var EncryptFile = /*#__PURE__*/function () { + /** + * Constructs a new EncryptFile. + * @alias module:model/EncryptFile + * @param _in {String} Path to the file to be encrypted. If not provided, the content will be taken from stdin + * @param keyName {String} The name of the key to use in the encryption process + */ + function EncryptFile(_in, keyName) { + _classCallCheck(this, EncryptFile); -CreateAzureTarget.prototype['tenant-id'] = undefined; + EncryptFile.initialize(this, _in, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptFile, null, [{ + key: "initialize", + value: function initialize(obj, _in, keyName) { + obj['in'] = _in; + obj['key-name'] = keyName; + } + /** + * Constructs a EncryptFile from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptFile} obj Optional instance to populate. + * @return {module:model/EncryptFile} The populated EncryptFile instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptFile(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('in')) { + obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('out')) { + obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EncryptFile; +}(); +/** + * The display id of the key to use in the encryption process + * @member {String} display-id + */ + + +EncryptFile.prototype['display-id'] = undefined; +/** + * Path to the file to be encrypted. If not provided, the content will be taken from stdin + * @member {String} in + */ + +EncryptFile.prototype['in'] = undefined; +/** + * The item id of the key to use in the encryption process + * @member {Number} item-id + */ + +EncryptFile.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EncryptFile.prototype['json'] = false; +/** + * The name of the key to use in the encryption process + * @member {String} key-name + */ + +EncryptFile.prototype['key-name'] = undefined; +/** + * Path to the output file. If not provided, the output will be sent to stdout + * @member {String} out + */ + +EncryptFile.prototype['out'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateAzureTarget.prototype['token'] = undefined; +EncryptFile.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateAzureTarget.prototype['uid-token'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -CreateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateAzureTarget; +EncryptFile.prototype['uid-token'] = undefined; +var _default = EncryptFile; exports["default"] = _default; /***/ }), -/***/ 24672: +/***/ 98404: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -31993,7 +106595,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -32004,19 +106606,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateAzureTargetOutput model module. - * @module model/CreateAzureTargetOutput - * @version 3.3.16 + * The EncryptFileOutput model module. + * @module model/EncryptFileOutput + * @version 3.6.3 */ -var CreateAzureTargetOutput = /*#__PURE__*/function () { +var EncryptFileOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateAzureTargetOutput. - * @alias module:model/CreateAzureTargetOutput + * Constructs a new EncryptFileOutput. + * @alias module:model/EncryptFileOutput */ - function CreateAzureTargetOutput() { - _classCallCheck(this, CreateAzureTargetOutput); + function EncryptFileOutput() { + _classCallCheck(this, EncryptFileOutput); - CreateAzureTargetOutput.initialize(this); + EncryptFileOutput.initialize(this); } /** * Initializes the fields of this object. @@ -32025,25 +106627,25 @@ var CreateAzureTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateAzureTargetOutput, null, [{ + _createClass(EncryptFileOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EncryptFileOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAzureTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateAzureTargetOutput} The populated CreateAzureTargetOutput instance. + * @param {module:model/EncryptFileOutput} obj Optional instance to populate. + * @return {module:model/EncryptFileOutput} The populated EncryptFileOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateAzureTargetOutput(); + obj = obj || new EncryptFileOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -32051,20 +106653,20 @@ var CreateAzureTargetOutput = /*#__PURE__*/function () { } }]); - return CreateAzureTargetOutput; + return EncryptFileOutput; }(); /** - * @member {Number} target_id + * @member {String} result */ -CreateAzureTargetOutput.prototype['target_id'] = undefined; -var _default = CreateAzureTargetOutput; +EncryptFileOutput.prototype['result'] = undefined; +var _default = EncryptFileOutput; exports["default"] = _default; /***/ }), -/***/ 57598: +/***/ 9542: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -32075,7 +106677,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -32086,20 +106688,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateCertificate model module. - * @module model/CreateCertificate - * @version 3.3.16 + * The EncryptGPG model module. + * @module model/EncryptGPG + * @version 3.6.3 */ -var CreateCertificate = /*#__PURE__*/function () { +var EncryptGPG = /*#__PURE__*/function () { /** - * Constructs a new CreateCertificate. - * @alias module:model/CreateCertificate - * @param name {String} Certificate name + * Constructs a new EncryptGPG. + * @alias module:model/EncryptGPG + * @param keyName {String} The name of the key to use in the encryption process + * @param plaintext {String} Data to be encrypted */ - function CreateCertificate(name) { - _classCallCheck(this, CreateCertificate); + function EncryptGPG(keyName, plaintext) { + _classCallCheck(this, EncryptGPG); - CreateCertificate.initialize(this, name); + EncryptGPG.initialize(this, keyName, plaintext); } /** * Initializes the fields of this object. @@ -32108,67 +106711,48 @@ var CreateCertificate = /*#__PURE__*/function () { */ - _createClass(CreateCertificate, null, [{ + _createClass(EncryptGPG, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, keyName, plaintext) { + obj['key-name'] = keyName; + obj['plaintext'] = plaintext; } /** - * Constructs a CreateCertificate from a plain JavaScript object, optionally creating a new instance. + * Constructs a EncryptGPG from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateCertificate} obj Optional instance to populate. - * @return {module:model/CreateCertificate} The populated CreateCertificate instance. + * @param {module:model/EncryptGPG} obj Optional instance to populate. + * @return {module:model/EncryptGPG} The populated EncryptGPG instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateCertificate(); - - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + obj = obj || new EncryptGPG(); - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); } - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); } if (data.hasOwnProperty('token')) { @@ -32184,94 +106768,64 @@ var CreateCertificate = /*#__PURE__*/function () { } }]); - return CreateCertificate; + return EncryptGPG; }(); /** - * Content of the certificate in a Base64 format. - * @member {String} certificate-data - */ - - -CreateCertificate.prototype['certificate-data'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * The display id of the key to use in the encryption process + * @member {String} display-id */ -CreateCertificate.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ -CreateCertificate.prototype['description'] = undefined; +EncryptGPG.prototype['display-id'] = undefined; /** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in + * If specified, the plaintext input is assumed to be formatted accordingly. Current supported options: [base64] + * @member {String} input-format */ -CreateCertificate.prototype['expiration-event-in'] = undefined; +EncryptGPG.prototype['input-format'] = undefined; /** - * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. - * @member {String} format + * The item id of the key to use in the encryption process + * @member {Number} item-id */ -CreateCertificate.prototype['format'] = undefined; +EncryptGPG.prototype['item-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateCertificate.prototype['json'] = false; -/** - * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateCertificate.prototype['key'] = undefined; -/** - * Content of the certificate's private key in a Base64 format. - * @member {String} key-data - */ - -CreateCertificate.prototype['key-data'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateCertificate.prototype['metadata'] = undefined; +EncryptGPG.prototype['json'] = false; /** - * Certificate name - * @member {String} name + * The name of the key to use in the encryption process + * @member {String} key-name */ -CreateCertificate.prototype['name'] = undefined; +EncryptGPG.prototype['key-name'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * Data to be encrypted + * @member {String} plaintext */ -CreateCertificate.prototype['tags'] = undefined; +EncryptGPG.prototype['plaintext'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateCertificate.prototype['token'] = undefined; +EncryptGPG.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateCertificate.prototype['uid-token'] = undefined; -var _default = CreateCertificate; +EncryptGPG.prototype['uid-token'] = undefined; +var _default = EncryptGPG; exports["default"] = _default; /***/ }), -/***/ 35159: +/***/ 39139: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -32282,7 +106836,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -32293,19 +106847,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateCertificateOutput model module. - * @module model/CreateCertificateOutput - * @version 3.3.16 + * The EncryptGPGOutput model module. + * @module model/EncryptGPGOutput + * @version 3.6.3 */ -var CreateCertificateOutput = /*#__PURE__*/function () { +var EncryptGPGOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateCertificateOutput. - * @alias module:model/CreateCertificateOutput + * Constructs a new EncryptGPGOutput. + * @alias module:model/EncryptGPGOutput */ - function CreateCertificateOutput() { - _classCallCheck(this, CreateCertificateOutput); + function EncryptGPGOutput() { + _classCallCheck(this, EncryptGPGOutput); - CreateCertificateOutput.initialize(this); + EncryptGPGOutput.initialize(this); } /** * Initializes the fields of this object. @@ -32314,25 +106868,25 @@ var CreateCertificateOutput = /*#__PURE__*/function () { */ - _createClass(CreateCertificateOutput, null, [{ + _createClass(EncryptGPGOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EncryptGPGOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateCertificateOutput} obj Optional instance to populate. - * @return {module:model/CreateCertificateOutput} The populated CreateCertificateOutput instance. + * @param {module:model/EncryptGPGOutput} obj Optional instance to populate. + * @return {module:model/EncryptGPGOutput} The populated EncryptGPGOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateCertificateOutput(); + obj = obj || new EncryptGPGOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -32340,20 +106894,20 @@ var CreateCertificateOutput = /*#__PURE__*/function () { } }]); - return CreateCertificateOutput; + return EncryptGPGOutput; }(); /** - * @member {String} name + * @member {String} result */ -CreateCertificateOutput.prototype['name'] = undefined; -var _default = CreateCertificateOutput; +EncryptGPGOutput.prototype['result'] = undefined; +var _default = EncryptGPGOutput; exports["default"] = _default; /***/ }), -/***/ 254: +/***/ 80077: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -32364,7 +106918,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -32375,22 +106929,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateClassicKey model module. - * @module model/CreateClassicKey - * @version 3.3.16 + * The EncryptOutput model module. + * @module model/EncryptOutput + * @version 3.6.3 */ -var CreateClassicKey = /*#__PURE__*/function () { +var EncryptOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateClassicKey. - * CreateClassicKey is a command that creates classic key - * @alias module:model/CreateClassicKey - * @param alg {String} Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] - * @param name {String} ClassicKey name + * Constructs a new EncryptOutput. + * @alias module:model/EncryptOutput */ - function CreateClassicKey(alg, name) { - _classCallCheck(this, CreateClassicKey); + function EncryptOutput() { + _classCallCheck(this, EncryptOutput); - CreateClassicKey.initialize(this, alg, name); + EncryptOutput.initialize(this); } /** * Initializes the fields of this object. @@ -32399,100 +106950,122 @@ var CreateClassicKey = /*#__PURE__*/function () { */ - _createClass(CreateClassicKey, null, [{ + _createClass(EncryptOutput, null, [{ key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a CreateClassicKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a EncryptOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateClassicKey} obj Optional instance to populate. - * @return {module:model/CreateClassicKey} The populated CreateClassicKey instance. + * @param {module:model/EncryptOutput} obj Optional instance to populate. + * @return {module:model/EncryptOutput} The populated EncryptOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateClassicKey(); + obj = obj || new EncryptOutput(); - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } + } - if (data.hasOwnProperty('cert-file-data')) { - obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('certificate-common-name')) { - obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); - } + return EncryptOutput; +}(); +/** + * @member {String} result + */ - if (data.hasOwnProperty('certificate-country')) { - obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); - } - if (data.hasOwnProperty('certificate-digest-algo')) { - obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); - } +EncryptOutput.prototype['result'] = undefined; +var _default = EncryptOutput; +exports["default"] = _default; - if (data.hasOwnProperty('certificate-locality')) { - obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); - } +/***/ }), - if (data.hasOwnProperty('certificate-organization')) { - obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); - } +/***/ 46751: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('certificate-province')) { - obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); - } +"use strict"; - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); - } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('generate-self-signed-certificate')) { - obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('gpg-alg')) { - obj['gpg-alg'] = _ApiClient["default"].convertToType(data['gpg-alg'], 'String'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } +/** + * The EncryptWithClassicKey model module. + * @module model/EncryptWithClassicKey + * @version 3.6.3 + */ +var EncryptWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new EncryptWithClassicKey. + * @alias module:model/EncryptWithClassicKey + * @param displayId {String} The name of the key to use in the encryption process + * @param plaintext {String} Data to be encrypted + * @param version {Number} classic key version + */ + function EncryptWithClassicKey(displayId, plaintext, version) { + _classCallCheck(this, EncryptWithClassicKey); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + EncryptWithClassicKey.initialize(this, displayId, plaintext, version); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, displayId, plaintext, version) { + obj['display-id'] = displayId; + obj['plaintext'] = plaintext; + obj['version'] = version; + } + /** + * Constructs a EncryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptWithClassicKey} obj Optional instance to populate. + * @return {module:model/EncryptWithClassicKey} The populated EncryptWithClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptWithClassicKey(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('protection-key-name')) { - obj['protection-key-name'] = _ApiClient["default"].convertToType(data['protection-key-name'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); } if (data.hasOwnProperty('token')) { @@ -32502,148 +107075,62 @@ var CreateClassicKey = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - } - - return obj; - } - }]); - - return CreateClassicKey; -}(); -/** - * Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] - * @member {String} alg - */ - - -CreateClassicKey.prototype['alg'] = undefined; -/** - * Certificate in a PEM format. - * @member {String} cert-file-data - */ - -CreateClassicKey.prototype['cert-file-data'] = undefined; -/** - * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-common-name - */ - -CreateClassicKey.prototype['certificate-common-name'] = undefined; -/** - * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-country - */ - -CreateClassicKey.prototype['certificate-country'] = undefined; -/** - * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. - * @member {String} certificate-digest-algo - */ - -CreateClassicKey.prototype['certificate-digest-algo'] = undefined; -/** - * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-locality - */ - -CreateClassicKey.prototype['certificate-locality'] = undefined; -/** - * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-organization - */ - -CreateClassicKey.prototype['certificate-organization'] = undefined; -/** - * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-province - */ - -CreateClassicKey.prototype['certificate-province'] = undefined; -/** - * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. - * @member {Number} certificate-ttl - */ - -CreateClassicKey.prototype['certificate-ttl'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateClassicKey.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateClassicKey.prototype['description'] = undefined; -/** - * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. - * @member {Boolean} generate-self-signed-certificate - */ - -CreateClassicKey.prototype['generate-self-signed-certificate'] = undefined; -/** - * gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519] - * @member {String} gpg-alg - */ -CreateClassicKey.prototype['gpg-alg'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } -CreateClassicKey.prototype['json'] = false; -/** - * Base64-encoded classic key value - * @member {String} key-data - */ + return obj; + } + }]); -CreateClassicKey.prototype['key-data'] = undefined; + return EncryptWithClassicKey; +}(); /** - * Deprecated - use description - * @member {String} metadata + * The name of the key to use in the encryption process + * @member {String} display-id */ -CreateClassicKey.prototype['metadata'] = undefined; -/** - * ClassicKey name - * @member {String} name - */ -CreateClassicKey.prototype['name'] = undefined; +EncryptWithClassicKey.prototype['display-id'] = undefined; /** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection-key-name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateClassicKey.prototype['protection-key-name'] = undefined; +EncryptWithClassicKey.prototype['json'] = false; /** - * Add tags attached to this object - * @member {Array.} tags + * Data to be encrypted + * @member {String} plaintext */ -CreateClassicKey.prototype['tags'] = undefined; +EncryptWithClassicKey.prototype['plaintext'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateClassicKey.prototype['token'] = undefined; +EncryptWithClassicKey.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateClassicKey.prototype['uid-token'] = undefined; -var _default = CreateClassicKey; +EncryptWithClassicKey.prototype['uid-token'] = undefined; +/** + * classic key version + * @member {Number} version + */ + +EncryptWithClassicKey.prototype['version'] = undefined; +var _default = EncryptWithClassicKey; exports["default"] = _default; /***/ }), -/***/ 60170: +/***/ 59526: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -32654,7 +107141,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -32665,19 +107152,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateClassicKeyOutput model module. - * @module model/CreateClassicKeyOutput - * @version 3.3.16 + * The EncryptWithClassicKeyOutput model module. + * @module model/EncryptWithClassicKeyOutput + * @version 3.6.3 */ -var CreateClassicKeyOutput = /*#__PURE__*/function () { +var EncryptWithClassicKeyOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateClassicKeyOutput. - * @alias module:model/CreateClassicKeyOutput + * Constructs a new EncryptWithClassicKeyOutput. + * @alias module:model/EncryptWithClassicKeyOutput */ - function CreateClassicKeyOutput() { - _classCallCheck(this, CreateClassicKeyOutput); + function EncryptWithClassicKeyOutput() { + _classCallCheck(this, EncryptWithClassicKeyOutput); - CreateClassicKeyOutput.initialize(this); + EncryptWithClassicKeyOutput.initialize(this); } /** * Initializes the fields of this object. @@ -32686,37 +107173,25 @@ var CreateClassicKeyOutput = /*#__PURE__*/function () { */ - _createClass(CreateClassicKeyOutput, null, [{ + _createClass(EncryptWithClassicKeyOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EncryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/CreateClassicKeyOutput} The populated CreateClassicKeyOutput instance. + * @param {module:model/EncryptWithClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/EncryptWithClassicKeyOutput} The populated EncryptWithClassicKeyOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateClassicKeyOutput(); - - if (data.hasOwnProperty('classic_key_id')) { - obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); - } - - if (data.hasOwnProperty('classic_key_name')) { - obj['classic_key_name'] = _ApiClient["default"].convertToType(data['classic_key_name'], 'String'); - } - - if (data.hasOwnProperty('classic_key_type')) { - obj['classic_key_type'] = _ApiClient["default"].convertToType(data['classic_key_type'], 'String'); - } + obj = obj || new EncryptWithClassicKeyOutput(); - if (data.hasOwnProperty('public_key')) { - obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -32724,35 +107199,20 @@ var CreateClassicKeyOutput = /*#__PURE__*/function () { } }]); - return CreateClassicKeyOutput; + return EncryptWithClassicKeyOutput; }(); /** - * @member {String} classic_key_id - */ - - -CreateClassicKeyOutput.prototype['classic_key_id'] = undefined; -/** - * @member {String} classic_key_name - */ - -CreateClassicKeyOutput.prototype['classic_key_name'] = undefined; -/** - * @member {String} classic_key_type + * @member {String} result */ -CreateClassicKeyOutput.prototype['classic_key_type'] = undefined; -/** - * @member {String} public_key - */ -CreateClassicKeyOutput.prototype['public_key'] = undefined; -var _default = CreateClassicKeyOutput; +EncryptWithClassicKeyOutput.prototype['result'] = undefined; +var _default = EncryptWithClassicKeyOutput; exports["default"] = _default; /***/ }), -/***/ 34977: +/***/ 24338: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -32763,7 +107223,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -32774,21 +107234,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateDBTarget model module. - * @module model/CreateDBTarget - * @version 3.3.16 + * The EsmCreate model module. + * @module model/EsmCreate + * @version 3.6.3 */ -var CreateDBTarget = /*#__PURE__*/function () { +var EsmCreate = /*#__PURE__*/function () { /** - * Constructs a new CreateDBTarget. - * @alias module:model/CreateDBTarget - * @param dbType {String} - * @param name {String} Target name + * Constructs a new EsmCreate. + * esmCreate is a command that creates a new secret in an External Secrets Manager + * @alias module:model/EsmCreate + * @param esmName {String} Name of the External Secrets Manager item + * @param secretName {String} Name for the new external secret + * @param value {String} Value of the external secret item, either text or base64 encoded binary */ - function CreateDBTarget(dbType, name) { - _classCallCheck(this, CreateDBTarget); + function EsmCreate(esmName, secretName, value) { + _classCallCheck(this, EsmCreate); - CreateDBTarget.initialize(this, dbType, name); + EsmCreate.initialize(this, esmName, secretName, value); } /** * Initializes the fields of this object. @@ -32797,120 +107259,51 @@ var CreateDBTarget = /*#__PURE__*/function () { */ - _createClass(CreateDBTarget, null, [{ + _createClass(EsmCreate, null, [{ key: "initialize", - value: function initialize(obj, dbType, name) { - obj['db-type'] = dbType; - obj['name'] = name; + value: function initialize(obj, esmName, secretName, value) { + obj['esm-name'] = esmName; + obj['secret-name'] = secretName; + obj['value'] = value; } /** - * Constructs a CreateDBTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmCreate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDBTarget} obj Optional instance to populate. - * @return {module:model/CreateDBTarget} The populated CreateDBTarget instance. + * @param {module:model/EsmCreate} obj Optional instance to populate. + * @return {module:model/EsmCreate} The populated EsmCreate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateDBTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); - } - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } - - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); - } + obj = obj || new EsmCreate(); - if (data.hasOwnProperty('db-type')) { - obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); + if (data.hasOwnProperty('binary-value')) { + obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas')) { - obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); - } - - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('pwd')) { - obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); - } - - if (data.hasOwnProperty('snowflake-account')) { - obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key')) { - obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key-password')) { - obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + if (data.hasOwnProperty('secret-name')) { + obj['secret-name'] = _ApiClient["default"].convertToType(data['secret-name'], 'String'); } - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); } if (data.hasOwnProperty('token')) { @@ -32921,8 +107314,8 @@ var CreateDBTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('user-name')) { - obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); } } @@ -32930,170 +107323,70 @@ var CreateDBTarget = /*#__PURE__*/function () { } }]); - return CreateDBTarget; + return EsmCreate; }(); /** - * Deprecated - use description - * @member {String} comment - */ - - -CreateDBTarget.prototype['comment'] = undefined; -/** - * @member {String} db-name - */ - -CreateDBTarget.prototype['db-name'] = undefined; -/** - * (Optional) DB server certificates - * @member {String} db-server-certificates - */ - -CreateDBTarget.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name + * Use this option if the external secret value is a base64 encoded binary + * @member {Boolean} binary-value */ -CreateDBTarget.prototype['db-server-name'] = undefined; -/** - * @member {String} db-type - */ -CreateDBTarget.prototype['db-type'] = undefined; +EsmCreate.prototype['binary-value'] = undefined; /** - * Description of the object + * Description of the external secret * @member {String} description */ -CreateDBTarget.prototype['description'] = undefined; +EsmCreate.prototype['description'] = undefined; /** - * @member {String} host + * Name of the External Secrets Manager item + * @member {String} esm-name */ -CreateDBTarget.prototype['host'] = undefined; +EsmCreate.prototype['esm-name'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateDBTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateDBTarget.prototype['key'] = undefined; -/** - * @member {Boolean} mongodb-atlas - */ - -CreateDBTarget.prototype['mongodb-atlas'] = undefined; -/** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key - */ - -CreateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; -/** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key - */ - -CreateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; -/** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id - */ - -CreateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; -/** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db - */ - -CreateDBTarget.prototype['mongodb-default-auth-db'] = undefined; -/** - * MongoDB server URI options - * @member {String} mongodb-uri-options - */ - -CreateDBTarget.prototype['mongodb-uri-options'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateDBTarget.prototype['name'] = undefined; -/** - * @member {String} oracle-service-name - */ - -CreateDBTarget.prototype['oracle-service-name'] = undefined; -/** - * @member {String} port - */ - -CreateDBTarget.prototype['port'] = undefined; -/** - * @member {String} pwd - */ - -CreateDBTarget.prototype['pwd'] = undefined; -/** - * @member {String} snowflake-account - */ - -CreateDBTarget.prototype['snowflake-account'] = undefined; -/** - * RSA Private key (base64 encoded) - * @member {String} snowflake-api-private-key - */ - -CreateDBTarget.prototype['snowflake-api-private-key'] = undefined; -/** - * The Private key passphrase - * @member {String} snowflake-api-private-key-password - */ - -CreateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; +EsmCreate.prototype['json'] = false; /** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false + * Name for the new external secret + * @member {String} secret-name */ -CreateDBTarget.prototype['ssl'] = false; +EsmCreate.prototype['secret-name'] = undefined; /** - * SSL connection certificate - * @member {String} ssl-certificate + * Tags for the external secret + * @member {Object.} tags */ -CreateDBTarget.prototype['ssl-certificate'] = undefined; +EsmCreate.prototype['tags'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateDBTarget.prototype['token'] = undefined; +EsmCreate.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateDBTarget.prototype['uid-token'] = undefined; +EsmCreate.prototype['uid-token'] = undefined; /** - * @member {String} user-name + * Value of the external secret item, either text or base64 encoded binary + * @member {String} value */ -CreateDBTarget.prototype['user-name'] = undefined; -var _default = CreateDBTarget; +EsmCreate.prototype['value'] = undefined; +var _default = EsmCreate; exports["default"] = _default; /***/ }), -/***/ 84642: +/***/ 9331: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -33104,7 +107397,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -33115,19 +107408,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateDBTargetOutput model module. - * @module model/CreateDBTargetOutput - * @version 3.3.16 + * The EsmCreateSecretOutput model module. + * @module model/EsmCreateSecretOutput + * @version 3.6.3 */ -var CreateDBTargetOutput = /*#__PURE__*/function () { +var EsmCreateSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateDBTargetOutput. - * @alias module:model/CreateDBTargetOutput + * Constructs a new EsmCreateSecretOutput. + * @alias module:model/EsmCreateSecretOutput */ - function CreateDBTargetOutput() { - _classCallCheck(this, CreateDBTargetOutput); + function EsmCreateSecretOutput() { + _classCallCheck(this, EsmCreateSecretOutput); - CreateDBTargetOutput.initialize(this); + EsmCreateSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -33136,25 +107429,29 @@ var CreateDBTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateDBTargetOutput, null, [{ + _createClass(EsmCreateSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmCreateSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDBTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateDBTargetOutput} The populated CreateDBTargetOutput instance. + * @param {module:model/EsmCreateSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmCreateSecretOutput} The populated EsmCreateSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateDBTargetOutput(); + obj = obj || new EsmCreateSecretOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + } + + if (data.hasOwnProperty('version_id')) { + obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); } } @@ -33162,20 +107459,25 @@ var CreateDBTargetOutput = /*#__PURE__*/function () { } }]); - return CreateDBTargetOutput; + return EsmCreateSecretOutput; }(); /** - * @member {Number} target_id + * @member {String} secret_id */ -CreateDBTargetOutput.prototype['target_id'] = undefined; -var _default = CreateDBTargetOutput; +EsmCreateSecretOutput.prototype['secret_id'] = undefined; +/** + * @member {String} version_id + */ + +EsmCreateSecretOutput.prototype['version_id'] = undefined; +var _default = EsmCreateSecretOutput; exports["default"] = _default; /***/ }), -/***/ 82075: +/***/ 22545: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -33186,7 +107488,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -33197,21 +107499,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateDFCKey model module. - * @module model/CreateDFCKey - * @version 3.3.16 + * The EsmDelete model module. + * @module model/EsmDelete + * @version 3.6.3 */ -var CreateDFCKey = /*#__PURE__*/function () { +var EsmDelete = /*#__PURE__*/function () { /** - * Constructs a new CreateDFCKey. - * @alias module:model/CreateDFCKey - * @param alg {String} DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @param name {String} DFCKey name + * Constructs a new EsmDelete. + * esmDelete is a command that deletes a secret from an External Secrets Manager + * @alias module:model/EsmDelete + * @param esmName {String} Name of the External Secrets Manager item + * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to delete */ - function CreateDFCKey(alg, name) { - _classCallCheck(this, CreateDFCKey); + function EsmDelete(esmName, secretId) { + _classCallCheck(this, EsmDelete); - CreateDFCKey.initialize(this, alg, name); + EsmDelete.initialize(this, esmName, secretId); } /** * Initializes the fields of this object. @@ -33220,92 +107523,36 @@ var CreateDFCKey = /*#__PURE__*/function () { */ - _createClass(CreateDFCKey, null, [{ + _createClass(EsmDelete, null, [{ key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; - obj['name'] = name; + value: function initialize(obj, esmName, secretId) { + obj['esm-name'] = esmName; + obj['secret-id'] = secretId; } /** - * Constructs a CreateDFCKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmDelete from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDFCKey} obj Optional instance to populate. - * @return {module:model/CreateDFCKey} The populated CreateDFCKey instance. + * @param {module:model/EsmDelete} obj Optional instance to populate. + * @return {module:model/EsmDelete} The populated EsmDelete instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateDFCKey(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('certificate-common-name')) { - obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); - } - - if (data.hasOwnProperty('certificate-country')) { - obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); - } - - if (data.hasOwnProperty('certificate-digest-algo')) { - obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); - } - - if (data.hasOwnProperty('certificate-locality')) { - obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); - } - - if (data.hasOwnProperty('certificate-organization')) { - obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); - } - - if (data.hasOwnProperty('certificate-province')) { - obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); - } - - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); - } - - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } + obj = obj || new EsmDelete(); - if (data.hasOwnProperty('generate-self-signed-certificate')) { - obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); } if (data.hasOwnProperty('token')) { @@ -33321,131 +107568,46 @@ var CreateDFCKey = /*#__PURE__*/function () { } }]); - return CreateDFCKey; + return EsmDelete; }(); /** - * DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @member {String} alg - */ - - -CreateDFCKey.prototype['alg'] = undefined; -/** - * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-common-name - */ - -CreateDFCKey.prototype['certificate-common-name'] = undefined; -/** - * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-country - */ - -CreateDFCKey.prototype['certificate-country'] = undefined; -/** - * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. - * @member {String} certificate-digest-algo - */ - -CreateDFCKey.prototype['certificate-digest-algo'] = undefined; -/** - * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-locality - */ - -CreateDFCKey.prototype['certificate-locality'] = undefined; -/** - * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-organization - */ - -CreateDFCKey.prototype['certificate-organization'] = undefined; -/** - * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-province - */ - -CreateDFCKey.prototype['certificate-province'] = undefined; -/** - * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. - * @member {Number} certificate-ttl - */ - -CreateDFCKey.prototype['certificate-ttl'] = undefined; -/** - * The customer fragment ID that will be used to create the DFC key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id - */ - -CreateDFCKey.prototype['customer-frg-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateDFCKey.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description + * Name of the External Secrets Manager item + * @member {String} esm-name */ -CreateDFCKey.prototype['description'] = undefined; -/** - * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. - * @member {Boolean} generate-self-signed-certificate - */ -CreateDFCKey.prototype['generate-self-signed-certificate'] = undefined; +EsmDelete.prototype['esm-name'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateDFCKey.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateDFCKey.prototype['metadata'] = undefined; -/** - * DFCKey name - * @member {String} name - */ - -CreateDFCKey.prototype['name'] = undefined; -/** - * The number of fragments that the item will be split into (not includes customer fragment) - * @member {Number} split-level - * @default 3 - */ - -CreateDFCKey.prototype['split-level'] = 3; +EsmDelete.prototype['json'] = false; /** - * List of the tags attached to this DFC key - * @member {Array.} tag + * The external secret id (or name, for AWS, Azure or K8s targets) to delete + * @member {String} secret-id */ -CreateDFCKey.prototype['tag'] = undefined; +EsmDelete.prototype['secret-id'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateDFCKey.prototype['token'] = undefined; +EsmDelete.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateDFCKey.prototype['uid-token'] = undefined; -var _default = CreateDFCKey; +EsmDelete.prototype['uid-token'] = undefined; +var _default = EsmDelete; exports["default"] = _default; /***/ }), -/***/ 27955: +/***/ 24820: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -33456,7 +107618,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -33467,19 +107629,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateDFCKeyOutput model module. - * @module model/CreateDFCKeyOutput - * @version 3.3.16 + * The EsmDeleteSecretOutput model module. + * @module model/EsmDeleteSecretOutput + * @version 3.6.3 */ -var CreateDFCKeyOutput = /*#__PURE__*/function () { +var EsmDeleteSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateDFCKeyOutput. - * @alias module:model/CreateDFCKeyOutput + * Constructs a new EsmDeleteSecretOutput. + * @alias module:model/EsmDeleteSecretOutput */ - function CreateDFCKeyOutput() { - _classCallCheck(this, CreateDFCKeyOutput); + function EsmDeleteSecretOutput() { + _classCallCheck(this, EsmDeleteSecretOutput); - CreateDFCKeyOutput.initialize(this); + EsmDeleteSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -33488,25 +107650,25 @@ var CreateDFCKeyOutput = /*#__PURE__*/function () { */ - _createClass(CreateDFCKeyOutput, null, [{ + _createClass(EsmDeleteSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateDFCKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmDeleteSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDFCKeyOutput} obj Optional instance to populate. - * @return {module:model/CreateDFCKeyOutput} The populated CreateDFCKeyOutput instance. + * @param {module:model/EsmDeleteSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmDeleteSecretOutput} The populated EsmDeleteSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateDFCKeyOutput(); + obj = obj || new EsmDeleteSecretOutput(); - if (data.hasOwnProperty('fragment_results')) { - obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -33514,20 +107676,20 @@ var CreateDFCKeyOutput = /*#__PURE__*/function () { } }]); - return CreateDFCKeyOutput; + return EsmDeleteSecretOutput; }(); /** - * @member {Array.} fragment_results + * @member {String} name */ -CreateDFCKeyOutput.prototype['fragment_results'] = undefined; -var _default = CreateDFCKeyOutput; +EsmDeleteSecretOutput.prototype['name'] = undefined; +var _default = EsmDeleteSecretOutput; exports["default"] = _default; /***/ }), -/***/ 15339: +/***/ 56056: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -33538,7 +107700,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -33549,20 +107711,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateDockerhubTarget model module. - * @module model/CreateDockerhubTarget - * @version 3.3.16 + * The EsmGet model module. + * @module model/EsmGet + * @version 3.6.3 */ -var CreateDockerhubTarget = /*#__PURE__*/function () { +var EsmGet = /*#__PURE__*/function () { /** - * Constructs a new CreateDockerhubTarget. - * @alias module:model/CreateDockerhubTarget - * @param name {String} Target name + * Constructs a new EsmGet. + * esmGet is a command that gets the value and interal details of a secret from an External Secrets Manager + * @alias module:model/EsmGet + * @param esmName {String} Name of the External Secrets Manager item + * @param secretId {String} The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager */ - function CreateDockerhubTarget(name) { - _classCallCheck(this, CreateDockerhubTarget); + function EsmGet(esmName, secretId) { + _classCallCheck(this, EsmGet); - CreateDockerhubTarget.initialize(this, name); + EsmGet.initialize(this, esmName, secretId); } /** * Initializes the fields of this object. @@ -33571,51 +107735,36 @@ var CreateDockerhubTarget = /*#__PURE__*/function () { */ - _createClass(CreateDockerhubTarget, null, [{ + _createClass(EsmGet, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, esmName, secretId) { + obj['esm-name'] = esmName; + obj['secret-id'] = secretId; } /** - * Constructs a CreateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmGet from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDockerhubTarget} obj Optional instance to populate. - * @return {module:model/CreateDockerhubTarget} The populated CreateDockerhubTarget instance. + * @param {module:model/EsmGet} obj Optional instance to populate. + * @return {module:model/EsmGet} The populated EsmGet instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateDockerhubTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); - } + obj = obj || new EsmGet(); - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); } if (data.hasOwnProperty('token')) { @@ -33631,70 +107780,46 @@ var CreateDockerhubTarget = /*#__PURE__*/function () { } }]); - return CreateDockerhubTarget; + return EsmGet; }(); /** - * Deprecated - use description - * @member {String} comment - */ - - -CreateDockerhubTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateDockerhubTarget.prototype['description'] = undefined; -/** - * DockerhubPassword is either the user's password to manage the repository - * @member {String} dockerhub-password + * Name of the External Secrets Manager item + * @member {String} esm-name */ -CreateDockerhubTarget.prototype['dockerhub-password'] = undefined; -/** - * DockerhubUsername is the name of the user in dockerhub - * @member {String} dockerhub-username - */ -CreateDockerhubTarget.prototype['dockerhub-username'] = undefined; +EsmGet.prototype['esm-name'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateDockerhubTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateDockerhubTarget.prototype['key'] = undefined; +EsmGet.prototype['json'] = false; /** - * Target name - * @member {String} name + * The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager + * @member {String} secret-id */ -CreateDockerhubTarget.prototype['name'] = undefined; +EsmGet.prototype['secret-id'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateDockerhubTarget.prototype['token'] = undefined; +EsmGet.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateDockerhubTarget.prototype['uid-token'] = undefined; -var _default = CreateDockerhubTarget; +EsmGet.prototype['uid-token'] = undefined; +var _default = EsmGet; exports["default"] = _default; /***/ }), -/***/ 35729: +/***/ 66425: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -33705,7 +107830,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -33716,19 +107841,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateDockerhubTargetOutput model module. - * @module model/CreateDockerhubTargetOutput - * @version 3.3.16 + * The EsmGetSecretOutput model module. + * @module model/EsmGetSecretOutput + * @version 3.6.3 */ -var CreateDockerhubTargetOutput = /*#__PURE__*/function () { +var EsmGetSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateDockerhubTargetOutput. - * @alias module:model/CreateDockerhubTargetOutput + * Constructs a new EsmGetSecretOutput. + * @alias module:model/EsmGetSecretOutput */ - function CreateDockerhubTargetOutput() { - _classCallCheck(this, CreateDockerhubTargetOutput); + function EsmGetSecretOutput() { + _classCallCheck(this, EsmGetSecretOutput); - CreateDockerhubTargetOutput.initialize(this); + EsmGetSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -33737,25 +107862,37 @@ var CreateDockerhubTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateDockerhubTargetOutput, null, [{ + _createClass(EsmGetSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmGetSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDockerhubTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateDockerhubTargetOutput} The populated CreateDockerhubTargetOutput instance. + * @param {module:model/EsmGetSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmGetSecretOutput} The populated EsmGetSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateDockerhubTargetOutput(); + obj = obj || new EsmGetSecretOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('binary_value')) { + obj['binary_value'] = _ApiClient["default"].convertToType(data['binary_value'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); } } @@ -33763,20 +107900,35 @@ var CreateDockerhubTargetOutput = /*#__PURE__*/function () { } }]); - return CreateDockerhubTargetOutput; + return EsmGetSecretOutput; }(); /** - * @member {Number} target_id + * @member {Boolean} binary_value */ -CreateDockerhubTargetOutput.prototype['target_id'] = undefined; -var _default = CreateDockerhubTargetOutput; +EsmGetSecretOutput.prototype['binary_value'] = undefined; +/** + * @member {Object} metadata + */ + +EsmGetSecretOutput.prototype['metadata'] = undefined; +/** + * @member {String} name + */ + +EsmGetSecretOutput.prototype['name'] = undefined; +/** + * @member {String} value + */ + +EsmGetSecretOutput.prototype['value'] = undefined; +var _default = EsmGetSecretOutput; exports["default"] = _default; /***/ }), -/***/ 14871: +/***/ 21934: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -33787,7 +107939,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -33798,20 +107950,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateDynamicSecret model module. - * @module model/CreateDynamicSecret - * @version 3.3.16 + * The EsmList model module. + * @module model/EsmList + * @version 3.6.3 */ -var CreateDynamicSecret = /*#__PURE__*/function () { +var EsmList = /*#__PURE__*/function () { /** - * Constructs a new CreateDynamicSecret. - * @alias module:model/CreateDynamicSecret - * @param name {String} Dynamic secret name + * Constructs a new EsmList. + * esmList is a command that lists the secrets of an External Secrets Manager + * @alias module:model/EsmList + * @param esmName {String} Name of the External Secrets Manager item */ - function CreateDynamicSecret(name) { - _classCallCheck(this, CreateDynamicSecret); + function EsmList(esmName) { + _classCallCheck(this, EsmList); - CreateDynamicSecret.initialize(this, name); + EsmList.initialize(this, esmName); } /** * Initializes the fields of this object. @@ -33820,53 +107973,33 @@ var CreateDynamicSecret = /*#__PURE__*/function () { */ - _createClass(CreateDynamicSecret, null, [{ + _createClass(EsmList, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, esmName) { + obj['esm-name'] = esmName; } /** - * Constructs a CreateDynamicSecret from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDynamicSecret} obj Optional instance to populate. - * @return {module:model/CreateDynamicSecret} The populated CreateDynamicSecret instance. + * @param {module:model/EsmList} obj Optional instance to populate. + * @return {module:model/EsmList} The populated EsmList instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateDynamicSecret(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + obj = obj || new EsmList(); - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -33880,70 +108013,124 @@ var CreateDynamicSecret = /*#__PURE__*/function () { } }]); - return CreateDynamicSecret; + return EsmList; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Name of the External Secrets Manager item + * @member {String} esm-name */ -CreateDynamicSecret.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateDynamicSecret.prototype['description'] = undefined; +EsmList.prototype['esm-name'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateDynamicSecret.prototype['json'] = false; +EsmList.prototype['json'] = false; /** - * The name of a key that used to encrypt the dynamic secret values (if empty, the account default protectionKey key will be used) - * @member {String} key + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -CreateDynamicSecret.prototype['key'] = undefined; +EsmList.prototype['token'] = undefined; /** - * Deprecated - use description - * @member {String} metadata + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -CreateDynamicSecret.prototype['metadata'] = undefined; -/** - * Dynamic secret name - * @member {String} name - */ +EsmList.prototype['uid-token'] = undefined; +var _default = EsmList; +exports["default"] = _default; -CreateDynamicSecret.prototype['name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ +/***/ }), + +/***/ 75628: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _SecretInfo = _interopRequireDefault(__nccwpck_require__(70409)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -CreateDynamicSecret.prototype['tags'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The EsmListSecretsOutput model module. + * @module model/EsmListSecretsOutput + * @version 3.6.3 */ +var EsmListSecretsOutput = /*#__PURE__*/function () { + /** + * Constructs a new EsmListSecretsOutput. + * @alias module:model/EsmListSecretsOutput + */ + function EsmListSecretsOutput() { + _classCallCheck(this, EsmListSecretsOutput); -CreateDynamicSecret.prototype['token'] = undefined; + EsmListSecretsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmListSecretsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EsmListSecretsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmListSecretsOutput} obj Optional instance to populate. + * @return {module:model/EsmListSecretsOutput} The populated EsmListSecretsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmListSecretsOutput(); + + if (data.hasOwnProperty('secrets_list')) { + obj['secrets_list'] = _ApiClient["default"].convertToType(data['secrets_list'], [_SecretInfo["default"]]); + } + } + + return obj; + } + }]); + + return EsmListSecretsOutput; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} secrets_list */ -CreateDynamicSecret.prototype['uid-token'] = undefined; -var _default = CreateDynamicSecret; + +EsmListSecretsOutput.prototype['secrets_list'] = undefined; +var _default = EsmListSecretsOutput; exports["default"] = _default; /***/ }), -/***/ 30934: +/***/ 47215: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -33954,7 +108141,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -33965,25 +108152,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateEKSTarget model module. - * @module model/CreateEKSTarget - * @version 3.3.16 + * The EsmUpdate model module. + * @module model/EsmUpdate + * @version 3.6.3 */ -var CreateEKSTarget = /*#__PURE__*/function () { +var EsmUpdate = /*#__PURE__*/function () { /** - * Constructs a new CreateEKSTarget. - * @alias module:model/CreateEKSTarget - * @param eksAccessKeyId {String} Access Key ID - * @param eksClusterCaCert {String} EKS cluster CA certificate - * @param eksClusterEndpoint {String} EKS cluster URL endpoint - * @param eksClusterName {String} EKS cluster name - * @param eksSecretAccessKey {String} Secret Access Key - * @param name {String} Target name + * Constructs a new EsmUpdate. + * esmUpdate is a command that updates a secret in an External Secrets Manager + * @alias module:model/EsmUpdate + * @param esmName {String} Name of the External Secrets Manager item + * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to update + * @param value {String} Value of the external secret item, either text or base64 encoded binary */ - function CreateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - _classCallCheck(this, CreateEKSTarget); + function EsmUpdate(esmName, secretId, value) { + _classCallCheck(this, EsmUpdate); - CreateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); + EsmUpdate.initialize(this, esmName, secretId, value); } /** * Initializes the fields of this object. @@ -33992,72 +108177,51 @@ var CreateEKSTarget = /*#__PURE__*/function () { */ - _createClass(CreateEKSTarget, null, [{ + _createClass(EsmUpdate, null, [{ key: "initialize", - value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - obj['eks-access-key-id'] = eksAccessKeyId; - obj['eks-cluster-ca-cert'] = eksClusterCaCert; - obj['eks-cluster-endpoint'] = eksClusterEndpoint; - obj['eks-cluster-name'] = eksClusterName; - obj['eks-secret-access-key'] = eksSecretAccessKey; - obj['name'] = name; + value: function initialize(obj, esmName, secretId, value) { + obj['esm-name'] = esmName; + obj['secret-id'] = secretId; + obj['value'] = value; } /** - * Constructs a CreateEKSTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmUpdate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEKSTarget} obj Optional instance to populate. - * @return {module:model/CreateEKSTarget} The populated CreateEKSTarget instance. + * @param {module:model/EsmUpdate} obj Optional instance to populate. + * @return {module:model/EsmUpdate} The populated EsmUpdate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateEKSTarget(); + obj = obj || new EsmUpdate(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('binary-value')) { + obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); - } - - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); } if (data.hasOwnProperty('token')) { @@ -34068,8 +108232,8 @@ var CreateEKSTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); } } @@ -34077,100 +108241,70 @@ var CreateEKSTarget = /*#__PURE__*/function () { } }]); - return CreateEKSTarget; + return EsmUpdate; }(); /** - * Deprecated - use description - * @member {String} comment + * Use this option if the external secret value is a base64 encoded binary + * @member {Boolean} binary-value */ -CreateEKSTarget.prototype['comment'] = undefined; +EsmUpdate.prototype['binary-value'] = undefined; /** - * Description of the object + * Description of the external secret * @member {String} description */ -CreateEKSTarget.prototype['description'] = undefined; -/** - * Access Key ID - * @member {String} eks-access-key-id - */ - -CreateEKSTarget.prototype['eks-access-key-id'] = undefined; -/** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert - */ - -CreateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; -/** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint - */ - -CreateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; -/** - * EKS cluster name - * @member {String} eks-cluster-name - */ - -CreateEKSTarget.prototype['eks-cluster-name'] = undefined; -/** - * Region - * @member {String} eks-region - * @default 'us-east-2' - */ - -CreateEKSTarget.prototype['eks-region'] = 'us-east-2'; +EsmUpdate.prototype['description'] = undefined; /** - * Secret Access Key - * @member {String} eks-secret-access-key + * Name of the External Secrets Manager item + * @member {String} esm-name */ -CreateEKSTarget.prototype['eks-secret-access-key'] = undefined; +EsmUpdate.prototype['esm-name'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateEKSTarget.prototype['json'] = false; +EsmUpdate.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * The external secret id (or name, for AWS, Azure or K8s targets) to update + * @member {String} secret-id */ -CreateEKSTarget.prototype['key'] = undefined; +EsmUpdate.prototype['secret-id'] = undefined; /** - * Target name - * @member {String} name + * Tags for the external secret + * @member {Object.} tags */ -CreateEKSTarget.prototype['name'] = undefined; +EsmUpdate.prototype['tags'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateEKSTarget.prototype['token'] = undefined; +EsmUpdate.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateEKSTarget.prototype['uid-token'] = undefined; +EsmUpdate.prototype['uid-token'] = undefined; /** - * @member {Boolean} use-gw-cloud-identity + * Value of the external secret item, either text or base64 encoded binary + * @member {String} value */ -CreateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateEKSTarget; +EsmUpdate.prototype['value'] = undefined; +var _default = EsmUpdate; exports["default"] = _default; /***/ }), -/***/ 77298: +/***/ 86426: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -34181,7 +108315,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -34192,19 +108326,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateEKSTargetOutput model module. - * @module model/CreateEKSTargetOutput - * @version 3.3.16 + * The EsmUpdateSecretOutput model module. + * @module model/EsmUpdateSecretOutput + * @version 3.6.3 */ -var CreateEKSTargetOutput = /*#__PURE__*/function () { +var EsmUpdateSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateEKSTargetOutput. - * @alias module:model/CreateEKSTargetOutput + * Constructs a new EsmUpdateSecretOutput. + * @alias module:model/EsmUpdateSecretOutput */ - function CreateEKSTargetOutput() { - _classCallCheck(this, CreateEKSTargetOutput); + function EsmUpdateSecretOutput() { + _classCallCheck(this, EsmUpdateSecretOutput); - CreateEKSTargetOutput.initialize(this); + EsmUpdateSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -34213,25 +108347,33 @@ var CreateEKSTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateEKSTargetOutput, null, [{ + _createClass(EsmUpdateSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EsmUpdateSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEKSTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateEKSTargetOutput} The populated CreateEKSTargetOutput instance. + * @param {module:model/EsmUpdateSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmUpdateSecretOutput} The populated EsmUpdateSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateEKSTargetOutput(); + obj = obj || new EsmUpdateSecretOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + } + + if (data.hasOwnProperty('version_id')) { + obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); } } @@ -34239,20 +108381,30 @@ var CreateEKSTargetOutput = /*#__PURE__*/function () { } }]); - return CreateEKSTargetOutput; + return EsmUpdateSecretOutput; }(); /** - * @member {Number} target_id + * @member {String} name */ -CreateEKSTargetOutput.prototype['target_id'] = undefined; -var _default = CreateEKSTargetOutput; +EsmUpdateSecretOutput.prototype['name'] = undefined; +/** + * @member {String} secret_id + */ + +EsmUpdateSecretOutput.prototype['secret_id'] = undefined; +/** + * @member {String} version_id + */ + +EsmUpdateSecretOutput.prototype['version_id'] = undefined; +var _default = EsmUpdateSecretOutput; exports["default"] = _default; /***/ }), -/***/ 477: +/***/ 93495: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -34263,7 +108415,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -34274,22 +108426,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateESM model module. - * @module model/CreateESM - * @version 3.3.16 + * The EventAction model module. + * @module model/EventAction + * @version 3.6.3 */ -var CreateESM = /*#__PURE__*/function () { +var EventAction = /*#__PURE__*/function () { /** - * Constructs a new CreateESM. - * CreateESM is a command that creates an External Secrets Manager - * @alias module:model/CreateESM - * @param name {String} External Secrets Manager name - * @param targetToAssociate {String} Target External Secrets Manager to connect + * Constructs a new EventAction. + * @alias module:model/EventAction + * @param action {String} The Event Action [approve/deny] + * @param eventId {Number} The Event ID */ - function CreateESM(name, targetToAssociate) { - _classCallCheck(this, CreateESM); + function EventAction(action, eventId) { + _classCallCheck(this, EventAction); - CreateESM.initialize(this, name, targetToAssociate); + EventAction.initialize(this, action, eventId); } /** * Initializes the fields of this object. @@ -34298,58 +108449,38 @@ var CreateESM = /*#__PURE__*/function () { */ - _createClass(CreateESM, null, [{ + _createClass(EventAction, null, [{ key: "initialize", - value: function initialize(obj, name, targetToAssociate) { - obj['name'] = name; - obj['target-to-associate'] = targetToAssociate; + value: function initialize(obj, action, eventId) { + obj['action'] = action; + obj['event-id'] = eventId; } /** - * Constructs a CreateESM from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventAction from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateESM} obj Optional instance to populate. - * @return {module:model/CreateESM} The populated CreateESM instance. + * @param {module:model/EventAction} obj Optional instance to populate. + * @return {module:model/EventAction} The populated EventAction instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateESM(); - - if (data.hasOwnProperty('azure-kv-name')) { - obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); - } + obj = obj || new EventAction(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('action')) { + obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('event-id')) { + obj['event-id'] = _ApiClient["default"].convertToType(data['event-id'], 'Number'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-to-associate')) { - obj['target-to-associate'] = _ApiClient["default"].convertToType(data['target-to-associate'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -34363,76 +108494,46 @@ var CreateESM = /*#__PURE__*/function () { } }]); - return CreateESM; + return EventAction; }(); /** - * Azure Key Vault name (Relevant only for Azure targets) - * @member {String} azure-kv-name + * The Event Action [approve/deny] + * @member {String} action */ -CreateESM.prototype['azure-kv-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateESM.prototype['delete_protection'] = undefined; +EventAction.prototype['action'] = undefined; /** - * Description of the External Secrets Manager - * @member {String} description + * The Event ID + * @member {Number} event-id */ -CreateESM.prototype['description'] = undefined; +EventAction.prototype['event-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateESM.prototype['json'] = false; -/** - * K8s namespace (Relevant to Kubernetes targets) - * @member {String} k8s-namespace - */ - -CreateESM.prototype['k8s-namespace'] = undefined; -/** - * External Secrets Manager name - * @member {String} name - */ - -CreateESM.prototype['name'] = undefined; -/** - * List of the tags attached to this External Secrets Manager - * @member {Array.} tags - */ - -CreateESM.prototype['tags'] = undefined; -/** - * Target External Secrets Manager to connect - * @member {String} target-to-associate - */ - -CreateESM.prototype['target-to-associate'] = undefined; +EventAction.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateESM.prototype['token'] = undefined; +EventAction.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateESM.prototype['uid-token'] = undefined; -var _default = CreateESM; +EventAction.prototype['uid-token'] = undefined; +var _default = EventAction; exports["default"] = _default; /***/ }), -/***/ 32554: +/***/ 78463: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -34443,7 +108544,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -34454,19 +108555,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateESMOutput model module. - * @module model/CreateESMOutput - * @version 3.3.16 + * The EventForwarderCreateEmail model module. + * @module model/EventForwarderCreateEmail + * @version 3.6.3 */ -var CreateESMOutput = /*#__PURE__*/function () { +var EventForwarderCreateEmail = /*#__PURE__*/function () { /** - * Constructs a new CreateESMOutput. - * @alias module:model/CreateESMOutput + * Constructs a new EventForwarderCreateEmail. + * eventForwarderCreateEmail is a command that creates email event forwarder + * @alias module:model/EventForwarderCreateEmail + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param runnerType {String} */ - function CreateESMOutput() { - _classCallCheck(this, CreateESMOutput); + function EventForwarderCreateEmail(gatewaysEventSourceLocations, name, runnerType) { + _classCallCheck(this, EventForwarderCreateEmail); - CreateESMOutput.initialize(this); + EventForwarderCreateEmail.initialize(this, gatewaysEventSourceLocations, name, runnerType); } /** * Initializes the fields of this object. @@ -34475,29 +108580,85 @@ var CreateESMOutput = /*#__PURE__*/function () { */ - _createClass(CreateESMOutput, null, [{ + _createClass(EventForwarderCreateEmail, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + obj['runner-type'] = runnerType; + } /** - * Constructs a CreateESMOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderCreateEmail from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateESMOutput} obj Optional instance to populate. - * @return {module:model/CreateESMOutput} The populated CreateESMOutput instance. + * @param {module:model/EventForwarderCreateEmail} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateEmail} The populated EventForwarderCreateEmail instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateESMOutput(); + obj = obj || new EventForwarderCreateEmail(); - if (data.hasOwnProperty('external_secret_manager_id')) { - obj['external_secret_manager_id'] = _ApiClient["default"].convertToType(data['external_secret_manager_id'], 'Number'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); } - if (data.hasOwnProperty('external_secret_manager_name')) { - obj['external_secret_manager_name'] = _ApiClient["default"].convertToType(data['external_secret_manager_name'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('override-url')) { + obj['override-url'] = _ApiClient["default"].convertToType(data['override-url'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -34505,25 +108666,105 @@ var CreateESMOutput = /*#__PURE__*/function () { } }]); - return CreateESMOutput; + return EventForwarderCreateEmail; }(); /** - * @member {Number} external_secret_manager_id + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateESMOutput.prototype['external_secret_manager_id'] = undefined; +EventForwarderCreateEmail.prototype['auth-methods-event-source-locations'] = undefined; /** - * @member {String} external_secret_manager_name + * Description of the object + * @member {String} description */ -CreateESMOutput.prototype['external_secret_manager_name'] = undefined; -var _default = CreateESMOutput; +EventForwarderCreateEmail.prototype['description'] = undefined; +/** + * A comma seperated list of email addresses to send event to + * @member {String} email-to + */ + +EventForwarderCreateEmail.prototype['email-to'] = undefined; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderCreateEmail.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +EventForwarderCreateEmail.prototype['every'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderCreateEmail.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderCreateEmail.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderCreateEmail.prototype['json'] = false; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderCreateEmail.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderCreateEmail.prototype['name'] = undefined; +/** + * Override Akeyless default URL with your Gateway url (port 18888) + * @member {String} override-url + */ + +EventForwarderCreateEmail.prototype['override-url'] = undefined; +/** + * @member {String} runner-type + */ + +EventForwarderCreateEmail.prototype['runner-type'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderCreateEmail.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderCreateEmail.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderCreateEmail.prototype['uid-token'] = undefined; +var _default = EventForwarderCreateEmail; exports["default"] = _default; /***/ }), -/***/ 49168: +/***/ 76710: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -34534,7 +108775,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -34545,23 +108786,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateEventForwarder model module. - * @module model/CreateEventForwarder - * @version 3.3.16 + * The EventForwarderCreateServiceNow model module. + * @module model/EventForwarderCreateServiceNow + * @version 3.6.3 */ -var CreateEventForwarder = /*#__PURE__*/function () { +var EventForwarderCreateServiceNow = /*#__PURE__*/function () { /** - * Constructs a new CreateEventForwarder. - * @alias module:model/CreateEventForwarder - * @param eventSourceLocations {Array.} Event sources - * @param forwarderType {String} + * Constructs a new EventForwarderCreateServiceNow. + * eventForwarderCreateServiceNow is a command that creates service-now event forwarder + * @alias module:model/EventForwarderCreateServiceNow + * @param gatewaysEventSourceLocations {Array.} Event sources * @param name {String} EventForwarder name * @param runnerType {String} */ - function CreateEventForwarder(eventSourceLocations, forwarderType, name, runnerType) { - _classCallCheck(this, CreateEventForwarder); + function EventForwarderCreateServiceNow(gatewaysEventSourceLocations, name, runnerType) { + _classCallCheck(this, EventForwarderCreateServiceNow); - CreateEventForwarder.initialize(this, eventSourceLocations, forwarderType, name, runnerType); + EventForwarderCreateServiceNow.initialize(this, gatewaysEventSourceLocations, name, runnerType); } /** * Initializes the fields of this object. @@ -34570,27 +108811,26 @@ var CreateEventForwarder = /*#__PURE__*/function () { */ - _createClass(CreateEventForwarder, null, [{ + _createClass(EventForwarderCreateServiceNow, null, [{ key: "initialize", - value: function initialize(obj, eventSourceLocations, forwarderType, name, runnerType) { - obj['event-source-locations'] = eventSourceLocations; - obj['forwarder-type'] = forwarderType; + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; obj['name'] = name; obj['runner-type'] = runnerType; } /** - * Constructs a CreateEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderCreateServiceNow from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEventForwarder} obj Optional instance to populate. - * @return {module:model/CreateEventForwarder} The populated CreateEventForwarder instance. + * @param {module:model/EventForwarderCreateServiceNow} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateServiceNow} The populated EventForwarderCreateServiceNow instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateEventForwarder(); + obj = obj || new EventForwarderCreateServiceNow(); if (data.hasOwnProperty('admin-name')) { obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); @@ -34600,24 +108840,28 @@ var CreateEventForwarder = /*#__PURE__*/function () { obj['admin-pwd'] = _ApiClient["default"].convertToType(data['admin-pwd'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('app-private-key-base64')) { + obj['app-private-key-base64'] = _ApiClient["default"].convertToType(data['app-private-key-base64'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); } - if (data.hasOwnProperty('email-to')) { - obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); } - if (data.hasOwnProperty('event-source-locations')) { - obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - if (data.hasOwnProperty('event-source-type')) { - obj['event-source-type'] = _ApiClient["default"].convertToType(data['event-source-type'], 'String'); + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('event-types')) { @@ -34628,14 +108872,18 @@ var CreateEventForwarder = /*#__PURE__*/function () { obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); } - if (data.hasOwnProperty('forwarder-type')) { - obj['forwarder-type'] = _ApiClient["default"].convertToType(data['forwarder-type'], 'String'); + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); } if (data.hasOwnProperty('host')) { obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } @@ -34652,6 +108900,10 @@ var CreateEventForwarder = /*#__PURE__*/function () { obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); } + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -34659,13 +108911,17 @@ var CreateEventForwarder = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); + } } return obj; } }]); - return CreateEventForwarder; + return EventForwarderCreateServiceNow; }(); /** * Workstation Admin Name @@ -34673,191 +108929,134 @@ var CreateEventForwarder = /*#__PURE__*/function () { */ -CreateEventForwarder.prototype['admin-name'] = undefined; +EventForwarderCreateServiceNow.prototype['admin-name'] = undefined; /** - * Workstation Admin password + * Workstation Admin Password * @member {String} admin-pwd */ -CreateEventForwarder.prototype['admin-pwd'] = undefined; +EventForwarderCreateServiceNow.prototype['admin-pwd'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * The RSA Private Key to use when connecting with jwt authentication + * @member {String} app-private-key-base64 */ -CreateEventForwarder.prototype['comment'] = undefined; +EventForwarderCreateServiceNow.prototype['app-private-key-base64'] = undefined; /** - * Description of the object - * @member {String} description + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateEventForwarder.prototype['description'] = undefined; +EventForwarderCreateServiceNow.prototype['auth-methods-event-source-locations'] = undefined; /** - * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) - * @member {String} email-to + * The authentication type to use [user-pass/jwt] + * @member {String} auth-type + * @default 'user-pass' */ -CreateEventForwarder.prototype['email-to'] = undefined; +EventForwarderCreateServiceNow.prototype['auth-type'] = 'user-pass'; /** - * Event sources - * @member {Array.} event-source-locations + * The client ID to use when connecting with jwt authentication + * @member {String} client-id */ -CreateEventForwarder.prototype['event-source-locations'] = undefined; +EventForwarderCreateServiceNow.prototype['client-id'] = undefined; /** - * Event Source type [item, target, auth_method] - * @member {String} event-source-type - * @default 'item' + * The client secret to use when connecting with jwt authentication + * @member {String} client-secret */ -CreateEventForwarder.prototype['event-source-type'] = 'item'; +EventForwarderCreateServiceNow.prototype['client-secret'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderCreateServiceNow.prototype['description'] = undefined; /** - * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure] + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] * @member {Array.} event-types */ -CreateEventForwarder.prototype['event-types'] = undefined; +EventForwarderCreateServiceNow.prototype['event-types'] = undefined; /** * Rate of periodic runner repetition in hours * @member {String} every */ -CreateEventForwarder.prototype['every'] = undefined; +EventForwarderCreateServiceNow.prototype['every'] = undefined; /** - * @member {String} forwarder-type + * Event sources + * @member {Array.} gateways-event-source-locations */ -CreateEventForwarder.prototype['forwarder-type'] = undefined; +EventForwarderCreateServiceNow.prototype['gateways-event-source-locations'] = undefined; /** * Workstation Host * @member {String} host */ -CreateEventForwarder.prototype['host'] = undefined; +EventForwarderCreateServiceNow.prototype['host'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderCreateServiceNow.prototype['items-event-source-locations'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateEventForwarder.prototype['json'] = false; +EventForwarderCreateServiceNow.prototype['json'] = false; /** * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -CreateEventForwarder.prototype['key'] = undefined; +EventForwarderCreateServiceNow.prototype['key'] = undefined; /** * EventForwarder name * @member {String} name */ -CreateEventForwarder.prototype['name'] = undefined; +EventForwarderCreateServiceNow.prototype['name'] = undefined; /** * @member {String} runner-type */ -CreateEventForwarder.prototype['runner-type'] = undefined; +EventForwarderCreateServiceNow.prototype['runner-type'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderCreateServiceNow.prototype['targets-event-source-locations'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateEventForwarder.prototype['token'] = undefined; +EventForwarderCreateServiceNow.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateEventForwarder.prototype['uid-token'] = undefined; -var _default = CreateEventForwarder; -exports["default"] = _default; - -/***/ }), - -/***/ 54081: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateEventForwarderOutput model module. - * @module model/CreateEventForwarderOutput - * @version 3.3.16 - */ -var CreateEventForwarderOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateEventForwarderOutput. - * @alias module:model/CreateEventForwarderOutput - */ - function CreateEventForwarderOutput() { - _classCallCheck(this, CreateEventForwarderOutput); - - CreateEventForwarderOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateEventForwarderOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEventForwarderOutput} obj Optional instance to populate. - * @return {module:model/CreateEventForwarderOutput} The populated CreateEventForwarderOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateEventForwarderOutput(); - - if (data.hasOwnProperty('event_forwarder_id')) { - obj['event_forwarder_id'] = _ApiClient["default"].convertToType(data['event_forwarder_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateEventForwarderOutput; -}(); +EventForwarderCreateServiceNow.prototype['uid-token'] = undefined; /** - * @member {Number} event_forwarder_id + * The user email to identify with when connecting with jwt authentication + * @member {String} user-email */ - -CreateEventForwarderOutput.prototype['event_forwarder_id'] = undefined; -var _default = CreateEventForwarderOutput; +EventForwarderCreateServiceNow.prototype['user-email'] = undefined; +var _default = EventForwarderCreateServiceNow; exports["default"] = _default; /***/ }), -/***/ 41820: +/***/ 99639: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -34868,7 +109067,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -34879,20 +109078,24 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGKETarget model module. - * @module model/CreateGKETarget - * @version 3.3.16 + * The EventForwarderCreateSlack model module. + * @module model/EventForwarderCreateSlack + * @version 3.6.3 */ -var CreateGKETarget = /*#__PURE__*/function () { +var EventForwarderCreateSlack = /*#__PURE__*/function () { /** - * Constructs a new CreateGKETarget. - * @alias module:model/CreateGKETarget - * @param name {String} Target name + * Constructs a new EventForwarderCreateSlack. + * eventForwarderCreateSlack is a command that creates slack event forwarder + * @alias module:model/EventForwarderCreateSlack + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param runnerType {String} + * @param url {String} Slack Webhook URL */ - function CreateGKETarget(name) { - _classCallCheck(this, CreateGKETarget); + function EventForwarderCreateSlack(gatewaysEventSourceLocations, name, runnerType, url) { + _classCallCheck(this, EventForwarderCreateSlack); - CreateGKETarget.initialize(this, name); + EventForwarderCreateSlack.initialize(this, gatewaysEventSourceLocations, name, runnerType, url); } /** * Initializes the fields of this object. @@ -34901,51 +109104,50 @@ var CreateGKETarget = /*#__PURE__*/function () { */ - _createClass(CreateGKETarget, null, [{ + _createClass(EventForwarderCreateSlack, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType, url) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; obj['name'] = name; + obj['runner-type'] = runnerType; + obj['url'] = url; } /** - * Constructs a CreateGKETarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderCreateSlack from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGKETarget} obj Optional instance to populate. - * @return {module:model/CreateGKETarget} The populated CreateGKETarget instance. + * @param {module:model/EventForwarderCreateSlack} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateSlack} The populated EventForwarderCreateSlack instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGKETarget(); + obj = obj || new EventForwarderCreateSlack(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); } - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); } - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); } - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); } if (data.hasOwnProperty('json')) { @@ -34960,6 +109162,14 @@ var CreateGKETarget = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -34968,8 +109178,8 @@ var CreateGKETarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); } } @@ -34977,93 +109187,99 @@ var CreateGKETarget = /*#__PURE__*/function () { } }]); - return CreateGKETarget; + return EventForwarderCreateSlack; }(); /** - * Deprecated - use description - * @member {String} comment + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateGKETarget.prototype['comment'] = undefined; +EventForwarderCreateSlack.prototype['auth-methods-event-source-locations'] = undefined; /** * Description of the object * @member {String} description */ -CreateGKETarget.prototype['description'] = undefined; -/** - * GKE Service Account key file path - * @member {String} gke-account-key - */ - -CreateGKETarget.prototype['gke-account-key'] = undefined; +EventForwarderCreateSlack.prototype['description'] = undefined; /** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types */ -CreateGKETarget.prototype['gke-cluster-cert'] = undefined; +EventForwarderCreateSlack.prototype['event-types'] = undefined; /** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint + * Rate of periodic runner repetition in hours + * @member {String} every */ -CreateGKETarget.prototype['gke-cluster-endpoint'] = undefined; +EventForwarderCreateSlack.prototype['every'] = undefined; /** - * GKE cluster name - * @member {String} gke-cluster-name + * Event sources + * @member {Array.} gateways-event-source-locations */ -CreateGKETarget.prototype['gke-cluster-name'] = undefined; +EventForwarderCreateSlack.prototype['gateways-event-source-locations'] = undefined; /** - * GKE service account email - * @member {String} gke-service-account-email + * Items Event sources + * @member {Array.} items-event-source-locations */ -CreateGKETarget.prototype['gke-service-account-email'] = undefined; +EventForwarderCreateSlack.prototype['items-event-source-locations'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateGKETarget.prototype['json'] = false; +EventForwarderCreateSlack.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -CreateGKETarget.prototype['key'] = undefined; +EventForwarderCreateSlack.prototype['key'] = undefined; /** - * Target name + * EventForwarder name * @member {String} name */ -CreateGKETarget.prototype['name'] = undefined; +EventForwarderCreateSlack.prototype['name'] = undefined; +/** + * @member {String} runner-type + */ + +EventForwarderCreateSlack.prototype['runner-type'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderCreateSlack.prototype['targets-event-source-locations'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateGKETarget.prototype['token'] = undefined; +EventForwarderCreateSlack.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateGKETarget.prototype['uid-token'] = undefined; +EventForwarderCreateSlack.prototype['uid-token'] = undefined; /** - * @member {Boolean} use-gw-cloud-identity + * Slack Webhook URL + * @member {String} url */ -CreateGKETarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateGKETarget; +EventForwarderCreateSlack.prototype['url'] = undefined; +var _default = EventForwarderCreateSlack; exports["default"] = _default; /***/ }), -/***/ 81519: +/***/ 21351: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -35074,7 +109290,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -35085,19 +109301,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGKETargetOutput model module. - * @module model/CreateGKETargetOutput - * @version 3.3.16 + * The EventForwarderCreateUpdateOutput model module. + * @module model/EventForwarderCreateUpdateOutput + * @version 3.6.3 */ -var CreateGKETargetOutput = /*#__PURE__*/function () { +var EventForwarderCreateUpdateOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateGKETargetOutput. - * @alias module:model/CreateGKETargetOutput + * Constructs a new EventForwarderCreateUpdateOutput. + * @alias module:model/EventForwarderCreateUpdateOutput */ - function CreateGKETargetOutput() { - _classCallCheck(this, CreateGKETargetOutput); + function EventForwarderCreateUpdateOutput() { + _classCallCheck(this, EventForwarderCreateUpdateOutput); - CreateGKETargetOutput.initialize(this); + EventForwarderCreateUpdateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -35106,25 +109322,29 @@ var CreateGKETargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateGKETargetOutput, null, [{ + _createClass(EventForwarderCreateUpdateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderCreateUpdateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGKETargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGKETargetOutput} The populated CreateGKETargetOutput instance. + * @param {module:model/EventForwarderCreateUpdateOutput} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateUpdateOutput} The populated EventForwarderCreateUpdateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGKETargetOutput(); + obj = obj || new EventForwarderCreateUpdateOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('event_forwarder_id')) { + obj['event_forwarder_id'] = _ApiClient["default"].convertToType(data['event_forwarder_id'], 'Number'); + } + + if (data.hasOwnProperty('event_forwarder_name')) { + obj['event_forwarder_name'] = _ApiClient["default"].convertToType(data['event_forwarder_name'], 'String'); } } @@ -35132,20 +109352,25 @@ var CreateGKETargetOutput = /*#__PURE__*/function () { } }]); - return CreateGKETargetOutput; + return EventForwarderCreateUpdateOutput; }(); /** - * @member {Number} target_id + * @member {Number} event_forwarder_id */ -CreateGKETargetOutput.prototype['target_id'] = undefined; -var _default = CreateGKETargetOutput; +EventForwarderCreateUpdateOutput.prototype['event_forwarder_id'] = undefined; +/** + * @member {String} event_forwarder_name + */ + +EventForwarderCreateUpdateOutput.prototype['event_forwarder_name'] = undefined; +var _default = EventForwarderCreateUpdateOutput; exports["default"] = _default; /***/ }), -/***/ 80384: +/***/ 57066: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -35156,7 +109381,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -35167,20 +109392,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGcpTarget model module. - * @module model/CreateGcpTarget - * @version 3.3.16 + * The EventForwarderCreateWebhook model module. + * @module model/EventForwarderCreateWebhook + * @version 3.6.3 */ -var CreateGcpTarget = /*#__PURE__*/function () { +var EventForwarderCreateWebhook = /*#__PURE__*/function () { /** - * Constructs a new CreateGcpTarget. - * @alias module:model/CreateGcpTarget - * @param name {String} Target name + * Constructs a new EventForwarderCreateWebhook. + * eventForwarderCreateWebhook is a command that creates webhook event forwarder + * @alias module:model/EventForwarderCreateWebhook + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param runnerType {String} */ - function CreateGcpTarget(name) { - _classCallCheck(this, CreateGcpTarget); + function EventForwarderCreateWebhook(gatewaysEventSourceLocations, name, runnerType) { + _classCallCheck(this, EventForwarderCreateWebhook); - CreateGcpTarget.initialize(this, name); + EventForwarderCreateWebhook.initialize(this, gatewaysEventSourceLocations, name, runnerType); } /** * Initializes the fields of this object. @@ -35189,35 +109417,61 @@ var CreateGcpTarget = /*#__PURE__*/function () { */ - _createClass(CreateGcpTarget, null, [{ + _createClass(EventForwarderCreateWebhook, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; obj['name'] = name; + obj['runner-type'] = runnerType; } /** - * Constructs a CreateGcpTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderCreateWebhook from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGcpTarget} obj Optional instance to populate. - * @return {module:model/CreateGcpTarget} The populated CreateGcpTarget instance. + * @param {module:model/EventForwarderCreateWebhook} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateWebhook} The populated EventForwarderCreateWebhook instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGcpTarget(); + obj = obj || new EventForwarderCreateWebhook(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('auth-token')) { + obj['auth-token'] = _ApiClient["default"].convertToType(data['auth-token'], 'String'); + } + + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-cert-data')) { + obj['client-cert-data'] = _ApiClient["default"].convertToType(data['client-cert-data'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); } if (data.hasOwnProperty('json')) { @@ -35232,6 +109486,26 @@ var CreateGcpTarget = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('private-key-data')) { + obj['private-key-data'] = _ApiClient["default"].convertToType(data['private-key-data'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('server-certificates')) { + obj['server-certificates'] = _ApiClient["default"].convertToType(data['server-certificates'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -35240,8 +109514,12 @@ var CreateGcpTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } @@ -35249,151 +109527,142 @@ var CreateGcpTarget = /*#__PURE__*/function () { } }]); - return CreateGcpTarget; + return EventForwarderCreateWebhook; }(); /** - * Deprecated - use description - * @member {String} comment + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateGcpTarget.prototype['comment'] = undefined; +EventForwarderCreateWebhook.prototype['auth-methods-event-source-locations'] = undefined; +/** + * Base64 encoded Token string for authentication type Token + * @member {String} auth-token + */ + +EventForwarderCreateWebhook.prototype['auth-token'] = undefined; +/** + * The Webhook authentication type [user-pass, token, certificate] + * @member {String} auth-type + * @default 'user-pass' + */ + +EventForwarderCreateWebhook.prototype['auth-type'] = 'user-pass'; +/** + * Base64 encoded PEM certificate, relevant for certificate auth-type + * @member {String} client-cert-data + */ + +EventForwarderCreateWebhook.prototype['client-cert-data'] = undefined; /** * Description of the object * @member {String} description */ -CreateGcpTarget.prototype['description'] = undefined; +EventForwarderCreateWebhook.prototype['description'] = undefined; /** - * Base64-encoded service account private key text - * @member {String} gcp-key + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types */ -CreateGcpTarget.prototype['gcp-key'] = undefined; +EventForwarderCreateWebhook.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +EventForwarderCreateWebhook.prototype['every'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderCreateWebhook.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderCreateWebhook.prototype['items-event-source-locations'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateGcpTarget.prototype['json'] = false; +EventForwarderCreateWebhook.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -CreateGcpTarget.prototype['key'] = undefined; +EventForwarderCreateWebhook.prototype['key'] = undefined; /** - * Target name + * EventForwarder name * @member {String} name */ -CreateGcpTarget.prototype['name'] = undefined; +EventForwarderCreateWebhook.prototype['name'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Password for authentication relevant for user-pass auth-type + * @member {String} password */ -CreateGcpTarget.prototype['token'] = undefined; +EventForwarderCreateWebhook.prototype['password'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Base64 encoded PEM RSA Private Key, relevant for certificate auth-type + * @member {String} private-key-data */ -CreateGcpTarget.prototype['uid-token'] = undefined; +EventForwarderCreateWebhook.prototype['private-key-data'] = undefined; /** - * @member {Boolean} use-gw-cloud-identity + * @member {String} runner-type */ -CreateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateGcpTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 7022: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +EventForwarderCreateWebhook.prototype['runner-type'] = undefined; /** - * The CreateGcpTargetOutput model module. - * @module model/CreateGcpTargetOutput - * @version 3.3.16 + * Base64 encoded PEM certificate of the Webhook + * @member {String} server-certificates */ -var CreateGcpTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateGcpTargetOutput. - * @alias module:model/CreateGcpTargetOutput - */ - function CreateGcpTargetOutput() { - _classCallCheck(this, CreateGcpTargetOutput); - - CreateGcpTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - _createClass(CreateGcpTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGcpTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGcpTargetOutput} The populated CreateGcpTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGcpTargetOutput(); +EventForwarderCreateWebhook.prototype['server-certificates'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } +EventForwarderCreateWebhook.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return obj; - } - }]); +EventForwarderCreateWebhook.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return CreateGcpTargetOutput; -}(); +EventForwarderCreateWebhook.prototype['uid-token'] = undefined; /** - * @member {Number} target_id + * Webhook URL + * @member {String} url */ +EventForwarderCreateWebhook.prototype['url'] = undefined; +/** + * Username for authentication relevant for user-pass auth-type + * @member {String} username + */ -CreateGcpTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGcpTargetOutput; +EventForwarderCreateWebhook.prototype['username'] = undefined; +var _default = EventForwarderCreateWebhook; exports["default"] = _default; /***/ }), -/***/ 97613: +/***/ 49548: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -35404,7 +109673,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -35415,20 +109684,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGithubTarget model module. - * @module model/CreateGithubTarget - * @version 3.3.16 + * The EventForwarderDelete model module. + * @module model/EventForwarderDelete + * @version 3.6.3 */ -var CreateGithubTarget = /*#__PURE__*/function () { +var EventForwarderDelete = /*#__PURE__*/function () { /** - * Constructs a new CreateGithubTarget. - * @alias module:model/CreateGithubTarget - * @param name {String} Target name + * Constructs a new EventForwarderDelete. + * eventForwarderDelete is a command that delete event forwarder + * @alias module:model/EventForwarderDelete + * @param name {String} EventForwarder name */ - function CreateGithubTarget(name) { - _classCallCheck(this, CreateGithubTarget); + function EventForwarderDelete(name) { + _classCallCheck(this, EventForwarderDelete); - CreateGithubTarget.initialize(this, name); + EventForwarderDelete.initialize(this, name); } /** * Initializes the fields of this object. @@ -35437,141 +109707,80 @@ var CreateGithubTarget = /*#__PURE__*/function () { */ - _createClass(CreateGithubTarget, null, [{ + _createClass(EventForwarderDelete, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateGithubTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderDelete from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGithubTarget} obj Optional instance to populate. - * @return {module:model/CreateGithubTarget} The populated CreateGithubTarget instance. + * @param {module:model/EventForwarderDelete} obj Optional instance to populate. + * @return {module:model/EventForwarderDelete} The populated EventForwarderDelete instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGithubTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); - } - - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); - } - - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); - } + obj = obj || new EventForwarderDelete(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateGithubTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateGithubTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateGithubTarget.prototype['description'] = undefined; -/** - * Github app id - * @member {Number} github-app-id - */ + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -CreateGithubTarget.prototype['github-app-id'] = undefined; -/** - * App private key - * @member {String} github-app-private-key - */ + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -CreateGithubTarget.prototype['github-app-private-key'] = undefined; -/** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' - */ + return obj; + } + }]); -CreateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; + return EventForwarderDelete; +}(); /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateGithubTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ -CreateGithubTarget.prototype['key'] = undefined; +EventForwarderDelete.prototype['json'] = false; /** - * Target name + * EventForwarder name * @member {String} name */ -CreateGithubTarget.prototype['name'] = undefined; +EventForwarderDelete.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateGithubTarget.prototype['token'] = undefined; +EventForwarderDelete.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateGithubTarget.prototype['uid-token'] = undefined; -var _default = CreateGithubTarget; +EventForwarderDelete.prototype['uid-token'] = undefined; +var _default = EventForwarderDelete; exports["default"] = _default; /***/ }), -/***/ 52291: +/***/ 25869: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -35582,7 +109791,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -35593,19 +109802,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGithubTargetOutput model module. - * @module model/CreateGithubTargetOutput - * @version 3.3.16 + * The EventForwarderDeleteOutput model module. + * @module model/EventForwarderDeleteOutput + * @version 3.6.3 */ -var CreateGithubTargetOutput = /*#__PURE__*/function () { +var EventForwarderDeleteOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateGithubTargetOutput. - * @alias module:model/CreateGithubTargetOutput + * Constructs a new EventForwarderDeleteOutput. + * @alias module:model/EventForwarderDeleteOutput */ - function CreateGithubTargetOutput() { - _classCallCheck(this, CreateGithubTargetOutput); + function EventForwarderDeleteOutput() { + _classCallCheck(this, EventForwarderDeleteOutput); - CreateGithubTargetOutput.initialize(this); + EventForwarderDeleteOutput.initialize(this); } /** * Initializes the fields of this object. @@ -35614,25 +109823,25 @@ var CreateGithubTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateGithubTargetOutput, null, [{ + _createClass(EventForwarderDeleteOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderDeleteOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGithubTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGithubTargetOutput} The populated CreateGithubTargetOutput instance. + * @param {module:model/EventForwarderDeleteOutput} obj Optional instance to populate. + * @return {module:model/EventForwarderDeleteOutput} The populated EventForwarderDeleteOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGithubTargetOutput(); + obj = obj || new EventForwarderDeleteOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('event_forwarder_name')) { + obj['event_forwarder_name'] = _ApiClient["default"].convertToType(data['event_forwarder_name'], 'String'); } } @@ -35640,20 +109849,20 @@ var CreateGithubTargetOutput = /*#__PURE__*/function () { } }]); - return CreateGithubTargetOutput; + return EventForwarderDeleteOutput; }(); /** - * @member {Number} target_id + * @member {String} event_forwarder_name */ -CreateGithubTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGithubTargetOutput; +EventForwarderDeleteOutput.prototype['event_forwarder_name'] = undefined; +var _default = EventForwarderDeleteOutput; exports["default"] = _default; /***/ }), -/***/ 44412: +/***/ 76255: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -35664,7 +109873,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -35675,22 +109884,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGlobalSignAtlasTarget model module. - * @module model/CreateGlobalSignAtlasTarget - * @version 3.3.16 + * The EventForwarderGet model module. + * @module model/EventForwarderGet + * @version 3.6.3 */ -var CreateGlobalSignAtlasTarget = /*#__PURE__*/function () { +var EventForwarderGet = /*#__PURE__*/function () { /** - * Constructs a new CreateGlobalSignAtlasTarget. - * @alias module:model/CreateGlobalSignAtlasTarget - * @param apiKey {String} API Key of the GlobalSign Atlas account - * @param apiSecret {String} API Secret of the GlobalSign Atlas account - * @param name {String} Target name + * Constructs a new EventForwarderGet. + * eventForwarderGet is a command that get event forwarder + * @alias module:model/EventForwarderGet + * @param name {String} EventForwarder name */ - function CreateGlobalSignAtlasTarget(apiKey, apiSecret, name) { - _classCallCheck(this, CreateGlobalSignAtlasTarget); + function EventForwarderGet(name) { + _classCallCheck(this, EventForwarderGet); - CreateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); + EventForwarderGet.initialize(this, name); } /** * Initializes the fields of this object. @@ -35699,67 +109907,33 @@ var CreateGlobalSignAtlasTarget = /*#__PURE__*/function () { */ - _createClass(CreateGlobalSignAtlasTarget, null, [{ + _createClass(EventForwarderGet, null, [{ key: "initialize", - value: function initialize(obj, apiKey, apiSecret, name) { - obj['api-key'] = apiKey; - obj['api-secret'] = apiSecret; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderGet from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignAtlasTarget} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignAtlasTarget} The populated CreateGlobalSignAtlasTarget instance. + * @param {module:model/EventForwarderGet} obj Optional instance to populate. + * @return {module:model/EventForwarderGet} The populated EventForwarderGet instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGlobalSignAtlasTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('api-secret')) { - obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } + obj = obj || new EventForwarderGet(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('mtls-cert-data-base64')) { - obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); - } - - if (data.hasOwnProperty('mtls-key-data-base64')) { - obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -35773,89 +109947,40 @@ var CreateGlobalSignAtlasTarget = /*#__PURE__*/function () { } }]); - return CreateGlobalSignAtlasTarget; + return EventForwarderGet; }(); -/** - * API Key of the GlobalSign Atlas account - * @member {String} api-key - */ - - -CreateGlobalSignAtlasTarget.prototype['api-key'] = undefined; -/** - * API Secret of the GlobalSign Atlas account - * @member {String} api-secret - */ - -CreateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateGlobalSignAtlasTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateGlobalSignAtlasTarget.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateGlobalSignAtlasTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateGlobalSignAtlasTarget.prototype['key'] = undefined; -/** - * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied - * @member {String} mtls-cert-data-base64 - */ - -CreateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; -/** - * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied - * @member {String} mtls-key-data-base64 - */ -CreateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; +EventForwarderGet.prototype['json'] = false; /** - * Target name + * EventForwarder name * @member {String} name */ -CreateGlobalSignAtlasTarget.prototype['name'] = undefined; -/** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' - */ - -CreateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; +EventForwarderGet.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateGlobalSignAtlasTarget.prototype['token'] = undefined; +EventForwarderGet.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; -var _default = CreateGlobalSignAtlasTarget; +EventForwarderGet.prototype['uid-token'] = undefined; +var _default = EventForwarderGet; exports["default"] = _default; /***/ }), -/***/ 43747: +/***/ 9126: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -35866,7 +109991,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(82007)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -35877,19 +110004,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGlobalSignAtlasTargetOutput model module. - * @module model/CreateGlobalSignAtlasTargetOutput - * @version 3.3.16 + * The EventForwarderGetOutput model module. + * @module model/EventForwarderGetOutput + * @version 3.6.3 */ -var CreateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { +var EventForwarderGetOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateGlobalSignAtlasTargetOutput. - * @alias module:model/CreateGlobalSignAtlasTargetOutput + * Constructs a new EventForwarderGetOutput. + * @alias module:model/EventForwarderGetOutput */ - function CreateGlobalSignAtlasTargetOutput() { - _classCallCheck(this, CreateGlobalSignAtlasTargetOutput); + function EventForwarderGetOutput() { + _classCallCheck(this, EventForwarderGetOutput); - CreateGlobalSignAtlasTargetOutput.initialize(this); + EventForwarderGetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -35898,25 +110025,25 @@ var CreateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateGlobalSignAtlasTargetOutput, null, [{ + _createClass(EventForwarderGetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderGetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignAtlasTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignAtlasTargetOutput} The populated CreateGlobalSignAtlasTargetOutput instance. + * @param {module:model/EventForwarderGetOutput} obj Optional instance to populate. + * @return {module:model/EventForwarderGetOutput} The populated EventForwarderGetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGlobalSignAtlasTargetOutput(); + obj = obj || new EventForwarderGetOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('event_forwarder')) { + obj['event_forwarder'] = _NotiForwarder["default"].constructFromObject(data['event_forwarder']); } } @@ -35924,20 +110051,20 @@ var CreateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { } }]); - return CreateGlobalSignAtlasTargetOutput; + return EventForwarderGetOutput; }(); /** - * @member {Number} target_id + * @member {module:model/NotiForwarder} event_forwarder */ -CreateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGlobalSignAtlasTargetOutput; +EventForwarderGetOutput.prototype['event_forwarder'] = undefined; +var _default = EventForwarderGetOutput; exports["default"] = _default; /***/ }), -/***/ 27537: +/***/ 88420: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -35948,7 +110075,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -35959,27 +110086,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateGlobalSignTarget model module. - * @module model/CreateGlobalSignTarget - * @version 3.3.16 + * The EventForwarderUpdateEmail model module. + * @module model/EventForwarderUpdateEmail + * @version 3.6.3 */ -var CreateGlobalSignTarget = /*#__PURE__*/function () { +var EventForwarderUpdateEmail = /*#__PURE__*/function () { /** - * Constructs a new CreateGlobalSignTarget. - * @alias module:model/CreateGlobalSignTarget - * @param contactEmail {String} Email of the GlobalSign GCC account contact - * @param contactFirstName {String} First name of the GlobalSign GCC account contact - * @param contactLastName {String} Last name of the GlobalSign GCC account contact - * @param contactPhone {String} Telephone of the GlobalSign GCC account contact - * @param name {String} Target name - * @param password {String} Password of the GlobalSign GCC account - * @param profileId {String} Profile ID of the GlobalSign GCC account - * @param username {String} Username of the GlobalSign GCC account + * Constructs a new EventForwarderUpdateEmail. + * eventForwarderUpdateEmail is a command that updates email event forwarder + * @alias module:model/EventForwarderUpdateEmail + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name */ - function CreateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - _classCallCheck(this, CreateGlobalSignTarget); + function EventForwarderUpdateEmail(gatewaysEventSourceLocations, name) { + _classCallCheck(this, EventForwarderUpdateEmail); - CreateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); + EventForwarderUpdateEmail.initialize(this, gatewaysEventSourceLocations, name); } /** * Initializes the fields of this object. @@ -35988,60 +110110,62 @@ var CreateGlobalSignTarget = /*#__PURE__*/function () { */ - _createClass(CreateGlobalSignTarget, null, [{ + _createClass(EventForwarderUpdateEmail, null, [{ key: "initialize", - value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - obj['contact-email'] = contactEmail; - obj['contact-first-name'] = contactFirstName; - obj['contact-last-name'] = contactLastName; - obj['contact-phone'] = contactPhone; + value: function initialize(obj, gatewaysEventSourceLocations, name) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; obj['name'] = name; - obj['password'] = password; - obj['profile-id'] = profileId; - obj['username'] = username; } /** - * Constructs a CreateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderUpdateEmail from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignTarget} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignTarget} The populated CreateGlobalSignTarget instance. + * @param {module:model/EventForwarderUpdateEmail} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateEmail} The populated EventForwarderUpdateEmail instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateGlobalSignTarget(); + obj = obj || new EventForwarderUpdateEmail(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); } - if (data.hasOwnProperty('contact-email')) { - obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('contact-first-name')) { - obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); } - if (data.hasOwnProperty('contact-last-name')) { - obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); } - if (data.hasOwnProperty('contact-phone')) { - obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + if (data.hasOwnProperty('key')) { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } @@ -36050,16 +110174,16 @@ var CreateGlobalSignTarget = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('profile-id')) { - obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); + if (data.hasOwnProperty('override-url')) { + obj['override-url'] = _ApiClient["default"].convertToType(data['override-url'], 'String'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); } if (data.hasOwnProperty('token')) { @@ -36069,199 +110193,119 @@ var CreateGlobalSignTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } } return obj; } }]); - return CreateGlobalSignTarget; + return EventForwarderUpdateEmail; }(); /** - * Deprecated - use description - * @member {String} comment + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateGlobalSignTarget.prototype['comment'] = undefined; +EventForwarderUpdateEmail.prototype['auth-methods-event-source-locations'] = undefined; /** - * Email of the GlobalSign GCC account contact - * @member {String} contact-email + * Description of the object + * @member {String} description */ -CreateGlobalSignTarget.prototype['contact-email'] = undefined; +EventForwarderUpdateEmail.prototype['description'] = undefined; /** - * First name of the GlobalSign GCC account contact - * @member {String} contact-first-name + * A comma seperated list of email addresses to send event to + * @member {String} email-to */ -CreateGlobalSignTarget.prototype['contact-first-name'] = undefined; +EventForwarderUpdateEmail.prototype['email-to'] = undefined; /** - * Last name of the GlobalSign GCC account contact - * @member {String} contact-last-name + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' */ -CreateGlobalSignTarget.prototype['contact-last-name'] = undefined; +EventForwarderUpdateEmail.prototype['enable'] = 'true'; /** - * Telephone of the GlobalSign GCC account contact - * @member {String} contact-phone + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types */ -CreateGlobalSignTarget.prototype['contact-phone'] = undefined; +EventForwarderUpdateEmail.prototype['event-types'] = undefined; /** - * Description of the object - * @member {String} description + * Event sources + * @member {Array.} gateways-event-source-locations */ -CreateGlobalSignTarget.prototype['description'] = undefined; +EventForwarderUpdateEmail.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateEmail.prototype['items-event-source-locations'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateGlobalSignTarget.prototype['json'] = false; +EventForwarderUpdateEmail.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +EventForwarderUpdateEmail.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -CreateGlobalSignTarget.prototype['key'] = undefined; +EventForwarderUpdateEmail.prototype['key'] = undefined; /** - * Target name + * EventForwarder name * @member {String} name */ -CreateGlobalSignTarget.prototype['name'] = undefined; +EventForwarderUpdateEmail.prototype['name'] = undefined; /** - * Password of the GlobalSign GCC account - * @member {String} password + * New EventForwarder name + * @member {String} new-name */ -CreateGlobalSignTarget.prototype['password'] = undefined; +EventForwarderUpdateEmail.prototype['new-name'] = undefined; /** - * Profile ID of the GlobalSign GCC account - * @member {String} profile-id + * Override Akeyless default URL with your Gateway url (port 18888) + * @member {String} override-url */ -CreateGlobalSignTarget.prototype['profile-id'] = undefined; +EventForwarderUpdateEmail.prototype['override-url'] = undefined; /** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' + * Targets Event sources + * @member {Array.} targets-event-source-locations */ -CreateGlobalSignTarget.prototype['timeout'] = '5m'; +EventForwarderUpdateEmail.prototype['targets-event-source-locations'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateGlobalSignTarget.prototype['token'] = undefined; +EventForwarderUpdateEmail.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateGlobalSignTarget.prototype['uid-token'] = undefined; -/** - * Username of the GlobalSign GCC account - * @member {String} username - */ - -CreateGlobalSignTarget.prototype['username'] = undefined; -var _default = CreateGlobalSignTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 8831: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGlobalSignTargetOutput model module. - * @module model/CreateGlobalSignTargetOutput - * @version 3.3.16 - */ -var CreateGlobalSignTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateGlobalSignTargetOutput. - * @alias module:model/CreateGlobalSignTargetOutput - */ - function CreateGlobalSignTargetOutput() { - _classCallCheck(this, CreateGlobalSignTargetOutput); - - CreateGlobalSignTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGlobalSignTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignTargetOutput} The populated CreateGlobalSignTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGlobalSignTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateGlobalSignTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateGlobalSignTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGlobalSignTargetOutput; +EventForwarderUpdateEmail.prototype['uid-token'] = undefined; +var _default = EventForwarderUpdateEmail; exports["default"] = _default; /***/ }), -/***/ 60073: +/***/ 26835: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -36272,7 +110316,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -36283,22 +110327,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateKey model module. - * @module model/CreateKey - * @version 3.3.16 + * The EventForwarderUpdateServiceNow model module. + * @module model/EventForwarderUpdateServiceNow + * @version 3.6.3 */ -var CreateKey = /*#__PURE__*/function () { +var EventForwarderUpdateServiceNow = /*#__PURE__*/function () { /** - * Constructs a new CreateKey. - * createKey is a command that creates a new key. [Deprecated: Use command create-dfc-key] - * @alias module:model/CreateKey - * @param alg {String} Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @param name {String} Key name + * Constructs a new EventForwarderUpdateServiceNow. + * eventForwarderUpdateServiceNow is a command that updates service now event forwarder + * @alias module:model/EventForwarderUpdateServiceNow + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name */ - function CreateKey(alg, name) { - _classCallCheck(this, CreateKey); + function EventForwarderUpdateServiceNow(gatewaysEventSourceLocations, name) { + _classCallCheck(this, EventForwarderUpdateServiceNow); - CreateKey.initialize(this, alg, name); + EventForwarderUpdateServiceNow.initialize(this, gatewaysEventSourceLocations, name); } /** * Initializes the fields of this object. @@ -36307,92 +110351,100 @@ var CreateKey = /*#__PURE__*/function () { */ - _createClass(CreateKey, null, [{ + _createClass(EventForwarderUpdateServiceNow, null, [{ key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; + value: function initialize(obj, gatewaysEventSourceLocations, name) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; obj['name'] = name; } /** - * Constructs a CreateKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderUpdateServiceNow from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateKey} obj Optional instance to populate. - * @return {module:model/CreateKey} The populated CreateKey instance. + * @param {module:model/EventForwarderUpdateServiceNow} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateServiceNow} The populated EventForwarderUpdateServiceNow instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateKey(); + obj = obj || new EventForwarderUpdateServiceNow(); - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + if (data.hasOwnProperty('admin-name')) { + obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); } - if (data.hasOwnProperty('certificate-common-name')) { - obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); + if (data.hasOwnProperty('admin-pwd')) { + obj['admin-pwd'] = _ApiClient["default"].convertToType(data['admin-pwd'], 'String'); } - if (data.hasOwnProperty('certificate-country')) { - obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); + if (data.hasOwnProperty('app-private-key-base64')) { + obj['app-private-key-base64'] = _ApiClient["default"].convertToType(data['app-private-key-base64'], 'String'); } - if (data.hasOwnProperty('certificate-digest-algo')) { - obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); } - if (data.hasOwnProperty('certificate-locality')) { - obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); } - if (data.hasOwnProperty('certificate-organization')) { - obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - if (data.hasOwnProperty('certificate-province')) { - obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); } - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); } - if (data.hasOwnProperty('generate-self-signed-certificate')) { - obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); } if (data.hasOwnProperty('token')) { @@ -36402,137 +110454,160 @@ var CreateKey = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); + } } return obj; } }]); - return CreateKey; + return EventForwarderUpdateServiceNow; }(); /** - * Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @member {String} alg + * Workstation Admin Name + * @member {String} admin-name */ -CreateKey.prototype['alg'] = undefined; +EventForwarderUpdateServiceNow.prototype['admin-name'] = undefined; /** - * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-common-name + * Workstation Admin Password + * @member {String} admin-pwd */ -CreateKey.prototype['certificate-common-name'] = undefined; +EventForwarderUpdateServiceNow.prototype['admin-pwd'] = undefined; /** - * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-country + * The RSA Private Key to use when connecting with jwt authentication + * @member {String} app-private-key-base64 */ -CreateKey.prototype['certificate-country'] = undefined; +EventForwarderUpdateServiceNow.prototype['app-private-key-base64'] = undefined; /** - * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. - * @member {String} certificate-digest-algo + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateKey.prototype['certificate-digest-algo'] = undefined; +EventForwarderUpdateServiceNow.prototype['auth-methods-event-source-locations'] = undefined; /** - * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-locality + * The authentication type to use [user-pass/jwt] + * @member {String} auth-type + * @default 'user-pass' */ -CreateKey.prototype['certificate-locality'] = undefined; +EventForwarderUpdateServiceNow.prototype['auth-type'] = 'user-pass'; /** - * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-organization + * The client ID to use when connecting with jwt authentication + * @member {String} client-id */ -CreateKey.prototype['certificate-organization'] = undefined; +EventForwarderUpdateServiceNow.prototype['client-id'] = undefined; /** - * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-province + * The client secret to use when connecting with jwt authentication + * @member {String} client-secret */ -CreateKey.prototype['certificate-province'] = undefined; +EventForwarderUpdateServiceNow.prototype['client-secret'] = undefined; /** - * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. - * @member {Number} certificate-ttl + * Description of the object + * @member {String} description */ -CreateKey.prototype['certificate-ttl'] = undefined; +EventForwarderUpdateServiceNow.prototype['description'] = undefined; /** - * The customer fragment ID that will be used to create the key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' */ -CreateKey.prototype['customer-frg-id'] = undefined; +EventForwarderUpdateServiceNow.prototype['enable'] = 'true'; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types */ -CreateKey.prototype['delete_protection'] = undefined; +EventForwarderUpdateServiceNow.prototype['event-types'] = undefined; /** - * Description of the object - * @member {String} description + * Event sources + * @member {Array.} gateways-event-source-locations */ -CreateKey.prototype['description'] = undefined; +EventForwarderUpdateServiceNow.prototype['gateways-event-source-locations'] = undefined; /** - * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. - * @member {Boolean} generate-self-signed-certificate + * Workstation Host + * @member {String} host */ -CreateKey.prototype['generate-self-signed-certificate'] = undefined; +EventForwarderUpdateServiceNow.prototype['host'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateServiceNow.prototype['items-event-source-locations'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateKey.prototype['json'] = false; +EventForwarderUpdateServiceNow.prototype['json'] = false; /** - * Deprecated - use description - * @member {String} metadata + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -CreateKey.prototype['metadata'] = undefined; +EventForwarderUpdateServiceNow.prototype['keep-prev-version'] = undefined; /** - * Key name + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderUpdateServiceNow.prototype['key'] = undefined; +/** + * EventForwarder name * @member {String} name */ -CreateKey.prototype['name'] = undefined; +EventForwarderUpdateServiceNow.prototype['name'] = undefined; /** - * The number of fragments that the item will be split into (not includes customer fragment) - * @member {Number} split-level - * @default 2 + * New EventForwarder name + * @member {String} new-name */ -CreateKey.prototype['split-level'] = 2; +EventForwarderUpdateServiceNow.prototype['new-name'] = undefined; /** - * List of the tags attached to this key - * @member {Array.} tag + * Targets Event sources + * @member {Array.} targets-event-source-locations */ -CreateKey.prototype['tag'] = undefined; +EventForwarderUpdateServiceNow.prototype['targets-event-source-locations'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateKey.prototype['token'] = undefined; +EventForwarderUpdateServiceNow.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateKey.prototype['uid-token'] = undefined; -var _default = CreateKey; +EventForwarderUpdateServiceNow.prototype['uid-token'] = undefined; +/** + * The user email to identify with when connecting with jwt authentication + * @member {String} user-email + */ + +EventForwarderUpdateServiceNow.prototype['user-email'] = undefined; +var _default = EventForwarderUpdateServiceNow; exports["default"] = _default; /***/ }), -/***/ 7903: +/***/ 86292: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -36543,7 +110618,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -36554,19 +110629,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateKeyOutput model module. - * @module model/CreateKeyOutput - * @version 3.3.16 + * The EventForwarderUpdateSlack model module. + * @module model/EventForwarderUpdateSlack + * @version 3.6.3 */ -var CreateKeyOutput = /*#__PURE__*/function () { +var EventForwarderUpdateSlack = /*#__PURE__*/function () { /** - * Constructs a new CreateKeyOutput. - * @alias module:model/CreateKeyOutput + * Constructs a new EventForwarderUpdateSlack. + * eventForwarderUpdateSlack is a command that updates slack event forwarder + * @alias module:model/EventForwarderUpdateSlack + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param url {String} Slack Webhook URL */ - function CreateKeyOutput() { - _classCallCheck(this, CreateKeyOutput); + function EventForwarderUpdateSlack(gatewaysEventSourceLocations, name, url) { + _classCallCheck(this, EventForwarderUpdateSlack); - CreateKeyOutput.initialize(this); + EventForwarderUpdateSlack.initialize(this, gatewaysEventSourceLocations, name, url); } /** * Initializes the fields of this object. @@ -36575,33 +110654,85 @@ var CreateKeyOutput = /*#__PURE__*/function () { */ - _createClass(CreateKeyOutput, null, [{ + _createClass(EventForwarderUpdateSlack, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, gatewaysEventSourceLocations, name, url) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + obj['url'] = url; + } /** - * Constructs a CreateKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderUpdateSlack from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateKeyOutput} obj Optional instance to populate. - * @return {module:model/CreateKeyOutput} The populated CreateKeyOutput instance. + * @param {module:model/EventForwarderUpdateSlack} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateSlack} The populated EventForwarderUpdateSlack instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateKeyOutput(); + obj = obj || new EventForwarderUpdateSlack(); - if (data.hasOwnProperty('display_id')) { - obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); } - if (data.hasOwnProperty('fragment_results')) { - obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); } } @@ -36609,30 +110740,107 @@ var CreateKeyOutput = /*#__PURE__*/function () { } }]); - return CreateKeyOutput; + return EventForwarderUpdateSlack; }(); /** - * @member {String} display_id + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateKeyOutput.prototype['display_id'] = undefined; +EventForwarderUpdateSlack.prototype['auth-methods-event-source-locations'] = undefined; /** - * @member {Array.} fragment_results + * Description of the object + * @member {String} description */ -CreateKeyOutput.prototype['fragment_results'] = undefined; +EventForwarderUpdateSlack.prototype['description'] = undefined; /** - * @member {Number} item_id + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' */ -CreateKeyOutput.prototype['item_id'] = undefined; -var _default = CreateKeyOutput; +EventForwarderUpdateSlack.prototype['enable'] = 'true'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderUpdateSlack.prototype['event-types'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderUpdateSlack.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateSlack.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderUpdateSlack.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +EventForwarderUpdateSlack.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderUpdateSlack.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderUpdateSlack.prototype['name'] = undefined; +/** + * New EventForwarder name + * @member {String} new-name + */ + +EventForwarderUpdateSlack.prototype['new-name'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderUpdateSlack.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderUpdateSlack.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderUpdateSlack.prototype['uid-token'] = undefined; +/** + * Slack Webhook URL + * @member {String} url + */ + +EventForwarderUpdateSlack.prototype['url'] = undefined; +var _default = EventForwarderUpdateSlack; exports["default"] = _default; /***/ }), -/***/ 70219: +/***/ 21609: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -36643,7 +110851,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -36654,23 +110862,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateLdapTarget model module. - * @module model/CreateLdapTarget - * @version 3.3.16 + * The EventForwarderUpdateWebhook model module. + * @module model/EventForwarderUpdateWebhook + * @version 3.6.3 */ -var CreateLdapTarget = /*#__PURE__*/function () { +var EventForwarderUpdateWebhook = /*#__PURE__*/function () { /** - * Constructs a new CreateLdapTarget. - * @alias module:model/CreateLdapTarget - * @param bindDn {String} Bind DN - * @param bindDnPassword {String} Bind DN Password - * @param ldapUrl {String} LDAP Server URL - * @param name {String} Target name + * Constructs a new EventForwarderUpdateWebhook. + * eventForwarderUpdateWebhook is a command that updates webhook event forwarder + * @alias module:model/EventForwarderUpdateWebhook + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name */ - function CreateLdapTarget(bindDn, bindDnPassword, ldapUrl, name) { - _classCallCheck(this, CreateLdapTarget); + function EventForwarderUpdateWebhook(gatewaysEventSourceLocations, name) { + _classCallCheck(this, EventForwarderUpdateWebhook); - CreateLdapTarget.initialize(this, bindDn, bindDnPassword, ldapUrl, name); + EventForwarderUpdateWebhook.initialize(this, gatewaysEventSourceLocations, name); } /** * Initializes the fields of this object. @@ -36679,174 +110886,413 @@ var CreateLdapTarget = /*#__PURE__*/function () { */ - _createClass(CreateLdapTarget, null, [{ + _createClass(EventForwarderUpdateWebhook, null, [{ key: "initialize", - value: function initialize(obj, bindDn, bindDnPassword, ldapUrl, name) { - obj['bind-dn'] = bindDn; - obj['bind-dn-password'] = bindDnPassword; - obj['ldap-url'] = ldapUrl; + value: function initialize(obj, gatewaysEventSourceLocations, name) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; obj['name'] = name; } /** - * Constructs a CreateLdapTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a EventForwarderUpdateWebhook from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLdapTarget} obj Optional instance to populate. - * @return {module:model/CreateLdapTarget} The populated CreateLdapTarget instance. + * @param {module:model/EventForwarderUpdateWebhook} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateWebhook} The populated EventForwarderUpdateWebhook instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateLdapTarget(); + obj = obj || new EventForwarderUpdateWebhook(); - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); } - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + if (data.hasOwnProperty('auth-token')) { + obj['auth-token'] = _ApiClient["default"].convertToType(data['auth-token'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-cert-data')) { + obj['client-cert-data'] = _ApiClient["default"].convertToType(data['client-cert-data'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + if (data.hasOwnProperty('key')) { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('server-type')) { - obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); + if (data.hasOwnProperty('private-key-data')) { + obj['private-key-data'] = _ApiClient["default"].convertToType(data['private-key-data'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('server-certificates')) { + obj['server-certificates'] = _ApiClient["default"].convertToType(data['server-certificates'], 'String'); } - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } } return obj; } }]); - return CreateLdapTarget; + return EventForwarderUpdateWebhook; }(); /** - * Bind DN - * @member {String} bind-dn + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations */ -CreateLdapTarget.prototype['bind-dn'] = undefined; +EventForwarderUpdateWebhook.prototype['auth-methods-event-source-locations'] = undefined; /** - * Bind DN Password - * @member {String} bind-dn-password + * Base64 encoded Token string for authentication type Token + * @member {String} auth-token */ -CreateLdapTarget.prototype['bind-dn-password'] = undefined; +EventForwarderUpdateWebhook.prototype['auth-token'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * The Webhook authentication type [user-pass, token, certificate] + * @member {String} auth-type + * @default 'user-pass' */ -CreateLdapTarget.prototype['comment'] = undefined; +EventForwarderUpdateWebhook.prototype['auth-type'] = 'user-pass'; +/** + * Base64 encoded PEM certificate, relevant for certificate auth-type + * @member {String} client-cert-data + */ + +EventForwarderUpdateWebhook.prototype['client-cert-data'] = undefined; /** * Description of the object * @member {String} description */ -CreateLdapTarget.prototype['description'] = undefined; +EventForwarderUpdateWebhook.prototype['description'] = undefined; +/** + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' + */ + +EventForwarderUpdateWebhook.prototype['enable'] = 'true'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderUpdateWebhook.prototype['event-types'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderUpdateWebhook.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateWebhook.prototype['items-event-source-locations'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateLdapTarget.prototype['json'] = false; +EventForwarderUpdateWebhook.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +EventForwarderUpdateWebhook.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -CreateLdapTarget.prototype['key'] = undefined; +EventForwarderUpdateWebhook.prototype['key'] = undefined; /** - * CA Certificate File Content - * @member {String} ldap-ca-cert + * EventForwarder name + * @member {String} name */ -CreateLdapTarget.prototype['ldap-ca-cert'] = undefined; +EventForwarderUpdateWebhook.prototype['name'] = undefined; /** - * LDAP Server URL - * @member {String} ldap-url + * New EventForwarder name + * @member {String} new-name */ -CreateLdapTarget.prototype['ldap-url'] = undefined; +EventForwarderUpdateWebhook.prototype['new-name'] = undefined; /** - * Target name - * @member {String} name + * Password for authentication relevant for user-pass auth-type + * @member {String} password */ -CreateLdapTarget.prototype['name'] = undefined; +EventForwarderUpdateWebhook.prototype['password'] = undefined; /** - * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory]. Default is OpenLDAP - * @member {String} server-type - * @default 'OpenLDAP' + * Base64 encoded PEM RSA Private Key, relevant for certificate auth-type + * @member {String} private-key-data */ -CreateLdapTarget.prototype['server-type'] = 'OpenLDAP'; +EventForwarderUpdateWebhook.prototype['private-key-data'] = undefined; +/** + * Base64 encoded PEM certificate of the Webhook + * @member {String} server-certificates + */ + +EventForwarderUpdateWebhook.prototype['server-certificates'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderUpdateWebhook.prototype['targets-event-source-locations'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateLdapTarget.prototype['token'] = undefined; +EventForwarderUpdateWebhook.prototype['token'] = undefined; /** - * Token expiration - * @member {String} token-expiration + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -CreateLdapTarget.prototype['token-expiration'] = undefined; +EventForwarderUpdateWebhook.prototype['uid-token'] = undefined; +/** + * Webhook URL + * @member {String} url + */ + +EventForwarderUpdateWebhook.prototype['url'] = undefined; +/** + * Username for authentication relevant for user-pass auth-type + * @member {String} username + */ + +EventForwarderUpdateWebhook.prototype['username'] = undefined; +var _default = EventForwarderUpdateWebhook; +exports["default"] = _default; + +/***/ }), + +/***/ 20312: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ExportClassicKey model module. + * @module model/ExportClassicKey + * @version 3.6.3 + */ +var ExportClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new ExportClassicKey. + * ExportClassicKey is a command that returns the classic key material + * @alias module:model/ExportClassicKey + * @param name {String} ClassicKey name + */ + function ExportClassicKey(name) { + _classCallCheck(this, ExportClassicKey); + + ExportClassicKey.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ExportClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a ExportClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExportClassicKey} obj Optional instance to populate. + * @return {module:model/ExportClassicKey} The populated ExportClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ExportClassicKey(); + + if (data.hasOwnProperty('export-public-key')) { + obj['export-public-key'] = _ApiClient["default"].convertToType(data['export-public-key'], 'Boolean'); + } + + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return ExportClassicKey; +}(); +/** + * Use this option to output only public key + * @member {Boolean} export-public-key + * @default false + */ + + +ExportClassicKey.prototype['export-public-key'] = false; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ + +ExportClassicKey.prototype['ignore-cache'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +ExportClassicKey.prototype['json'] = false; +/** + * ClassicKey name + * @member {String} name + */ + +ExportClassicKey.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ExportClassicKey.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateLdapTarget.prototype['uid-token'] = undefined; -var _default = CreateLdapTarget; +ExportClassicKey.prototype['uid-token'] = undefined; +/** + * Classic key version + * @member {Number} version + */ + +ExportClassicKey.prototype['version'] = undefined; +var _default = ExportClassicKey; exports["default"] = _default; /***/ }), -/***/ 44520: +/***/ 52753: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -36857,7 +111303,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -36868,19 +111314,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateLdapTargetOutput model module. - * @module model/CreateLdapTargetOutput - * @version 3.3.16 + * The ExportClassicKeyOutput model module. + * @module model/ExportClassicKeyOutput + * @version 3.6.3 */ -var CreateLdapTargetOutput = /*#__PURE__*/function () { +var ExportClassicKeyOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateLdapTargetOutput. - * @alias module:model/CreateLdapTargetOutput + * Constructs a new ExportClassicKeyOutput. + * @alias module:model/ExportClassicKeyOutput */ - function CreateLdapTargetOutput() { - _classCallCheck(this, CreateLdapTargetOutput); + function ExportClassicKeyOutput() { + _classCallCheck(this, ExportClassicKeyOutput); - CreateLdapTargetOutput.initialize(this); + ExportClassicKeyOutput.initialize(this); } /** * Initializes the fields of this object. @@ -36889,25 +111335,29 @@ var CreateLdapTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateLdapTargetOutput, null, [{ + _createClass(ExportClassicKeyOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ExportClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLdapTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateLdapTargetOutput} The populated CreateLdapTargetOutput instance. + * @param {module:model/ExportClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/ExportClassicKeyOutput} The populated ExportClassicKeyOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateLdapTargetOutput(); + obj = obj || new ExportClassicKeyOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('certificatePem')) { + obj['certificatePem'] = _ApiClient["default"].convertToType(data['certificatePem'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } } @@ -36915,20 +111365,25 @@ var CreateLdapTargetOutput = /*#__PURE__*/function () { } }]); - return CreateLdapTargetOutput; + return ExportClassicKeyOutput; }(); /** - * @member {Number} target_id + * @member {String} certificatePem */ -CreateLdapTargetOutput.prototype['target_id'] = undefined; -var _default = CreateLdapTargetOutput; +ExportClassicKeyOutput.prototype['certificatePem'] = undefined; +/** + * @member {String} key + */ + +ExportClassicKeyOutput.prototype['key'] = undefined; +var _default = ExportClassicKeyOutput; exports["default"] = _default; /***/ }), -/***/ 675: +/***/ 22116: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -36939,7 +111394,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -36950,20 +111405,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateLinkedTarget model module. - * @module model/CreateLinkedTarget - * @version 3.3.16 + * The Extension model module. + * @module model/Extension + * @version 3.6.3 */ -var CreateLinkedTarget = /*#__PURE__*/function () { +var Extension = /*#__PURE__*/function () { /** - * Constructs a new CreateLinkedTarget. - * @alias module:model/CreateLinkedTarget - * @param name {String} Target name + * Constructs a new Extension. + * @alias module:model/Extension */ - function CreateLinkedTarget(name) { - _classCallCheck(this, CreateLinkedTarget); + function Extension() { + _classCallCheck(this, Extension); - CreateLinkedTarget.initialize(this, name); + Extension.initialize(this); } /** * Initializes the fields of this object. @@ -36972,51 +111426,33 @@ var CreateLinkedTarget = /*#__PURE__*/function () { */ - _createClass(CreateLinkedTarget, null, [{ + _createClass(Extension, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a CreateLinkedTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a Extension from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLinkedTarget} obj Optional instance to populate. - * @return {module:model/CreateLinkedTarget} The populated CreateLinkedTarget instance. + * @param {module:model/Extension} obj Optional instance to populate. + * @return {module:model/Extension} The populated Extension instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateLinkedTarget(); - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } + obj = obj || new Extension(); - if (data.hasOwnProperty('parent-target-name')) { - obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); + if (data.hasOwnProperty('Critical')) { + obj['Critical'] = _ApiClient["default"].convertToType(data['Critical'], 'Boolean'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('Value')) { + obj['Value'] = _ApiClient["default"].convertToType(data['Value'], 'String'); } } @@ -37024,58 +111460,30 @@ var CreateLinkedTarget = /*#__PURE__*/function () { } }]); - return CreateLinkedTarget; + return Extension; }(); /** - * Description of the object - * @member {String} description - */ - - -CreateLinkedTarget.prototype['description'] = undefined; -/** - * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') - * @member {String} hosts - */ - -CreateLinkedTarget.prototype['hosts'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateLinkedTarget.prototype['json'] = false; -/** - * Target name - * @member {String} name + * @member {Boolean} Critical */ -CreateLinkedTarget.prototype['name'] = undefined; -/** - * The parent Target name - * @member {String} parent-target-name - */ -CreateLinkedTarget.prototype['parent-target-name'] = undefined; +Extension.prototype['Critical'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} Name */ -CreateLinkedTarget.prototype['token'] = undefined; +Extension.prototype['Name'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} Value */ -CreateLinkedTarget.prototype['uid-token'] = undefined; -var _default = CreateLinkedTarget; +Extension.prototype['Value'] = undefined; +var _default = Extension; exports["default"] = _default; /***/ }), -/***/ 53373: +/***/ 44851: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -37086,7 +111494,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -37097,19 +111505,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateLinkedTargetOutput model module. - * @module model/CreateLinkedTargetOutput - * @version 3.3.16 + * The ExternalKMSKeyId model module. + * @module model/ExternalKMSKeyId + * @version 3.6.3 */ -var CreateLinkedTargetOutput = /*#__PURE__*/function () { +var ExternalKMSKeyId = /*#__PURE__*/function () { /** - * Constructs a new CreateLinkedTargetOutput. - * @alias module:model/CreateLinkedTargetOutput + * Constructs a new ExternalKMSKeyId. + * @alias module:model/ExternalKMSKeyId */ - function CreateLinkedTargetOutput() { - _classCallCheck(this, CreateLinkedTargetOutput); + function ExternalKMSKeyId() { + _classCallCheck(this, ExternalKMSKeyId); - CreateLinkedTargetOutput.initialize(this); + ExternalKMSKeyId.initialize(this); } /** * Initializes the fields of this object. @@ -37118,25 +111526,29 @@ var CreateLinkedTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateLinkedTargetOutput, null, [{ + _createClass(ExternalKMSKeyId, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateLinkedTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ExternalKMSKeyId from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLinkedTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateLinkedTargetOutput} The populated CreateLinkedTargetOutput instance. + * @param {module:model/ExternalKMSKeyId} obj Optional instance to populate. + * @return {module:model/ExternalKMSKeyId} The populated ExternalKMSKeyId instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateLinkedTargetOutput(); + obj = obj || new ExternalKMSKeyId(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('key_id')) { + obj['key_id'] = _ApiClient["default"].convertToType(data['key_id'], 'String'); + } + + if (data.hasOwnProperty('key_reference')) { + obj['key_reference'] = _ApiClient["default"].convertToType(data['key_reference'], 'String'); } } @@ -37144,20 +111556,25 @@ var CreateLinkedTargetOutput = /*#__PURE__*/function () { } }]); - return CreateLinkedTargetOutput; + return ExternalKMSKeyId; }(); /** - * @member {Number} target_id + * @member {String} key_id */ -CreateLinkedTargetOutput.prototype['target_id'] = undefined; -var _default = CreateLinkedTargetOutput; +ExternalKMSKeyId.prototype['key_id'] = undefined; +/** + * @member {String} key_reference + */ + +ExternalKMSKeyId.prototype['key_reference'] = undefined; +var _default = ExternalKMSKeyId; exports["default"] = _default; /***/ }), -/***/ 62254: +/***/ 88158: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -37168,7 +111585,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -37179,23 +111596,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateNativeK8STarget model module. - * @module model/CreateNativeK8STarget - * @version 3.3.16 + * The GCPAccessRules model module. + * @module model/GCPAccessRules + * @version 3.6.3 */ -var CreateNativeK8STarget = /*#__PURE__*/function () { +var GCPAccessRules = /*#__PURE__*/function () { /** - * Constructs a new CreateNativeK8STarget. - * @alias module:model/CreateNativeK8STarget - * @param k8sClusterCaCert {String} K8S cluster CA certificate - * @param k8sClusterEndpoint {String} K8S cluster URL endpoint - * @param k8sClusterToken {String} K8S cluster Bearer token - * @param name {String} Target name + * Constructs a new GCPAccessRules. + * @alias module:model/GCPAccessRules */ - function CreateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - _classCallCheck(this, CreateNativeK8STarget); + function GCPAccessRules() { + _classCallCheck(this, GCPAccessRules); - CreateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); + GCPAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -37204,70 +111617,55 @@ var CreateNativeK8STarget = /*#__PURE__*/function () { */ - _createClass(CreateNativeK8STarget, null, [{ + _createClass(GCPAccessRules, null, [{ key: "initialize", - value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; - obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; - obj['k8s-cluster-token'] = k8sClusterToken; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a CreateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GCPAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateNativeK8STarget} obj Optional instance to populate. - * @return {module:model/CreateNativeK8STarget} The populated CreateNativeK8STarget instance. + * @param {module:model/GCPAccessRules} obj Optional instance to populate. + * @return {module:model/GCPAccessRules} The populated GCPAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateNativeK8STarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + obj = obj || new GCPAccessRules(); - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('bound_labels')) { + obj['bound_labels'] = _ApiClient["default"].convertToType(data['bound_labels'], { + 'String': 'String' + }); } - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + if (data.hasOwnProperty('bound_projects')) { + obj['bound_projects'] = _ApiClient["default"].convertToType(data['bound_projects'], ['String']); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('bound_regions')) { + obj['bound_regions'] = _ApiClient["default"].convertToType(data['bound_regions'], ['String']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('bound_service_accounts')) { + obj['bound_service_accounts'] = _ApiClient["default"].convertToType(data['bound_service_accounts'], ['String']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('bound_zones')) { + obj['bound_zones'] = _ApiClient["default"].convertToType(data['bound_zones'], ['String']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('service_account')) { + obj['service_account'] = _ApiClient["default"].convertToType(data['service_account'], 'String'); } - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } } @@ -37275,85 +111673,63 @@ var CreateNativeK8STarget = /*#__PURE__*/function () { } }]); - return CreateNativeK8STarget; + return GCPAccessRules; }(); /** - * Deprecated - use description - * @member {String} comment - */ - - -CreateNativeK8STarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateNativeK8STarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The audience in the JWT + * @member {String} audience + * @default 'akeyless.io' */ -CreateNativeK8STarget.prototype['json'] = false; -/** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert - * @default 'dummy_val' - */ -CreateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; +GCPAccessRules.prototype['audience'] = 'akeyless.io'; /** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint - * @default 'dummy_val' + * A map of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... + * @member {Object.} bound_labels */ -CreateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; +GCPAccessRules.prototype['bound_labels'] = undefined; /** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token - * @default 'dummy_val' + * Human and Machine authentication section Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. + * @member {Array.} bound_projects */ -CreateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; +GCPAccessRules.prototype['bound_projects'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. + * @member {Array.} bound_regions */ -CreateNativeK8STarget.prototype['key'] = undefined; +GCPAccessRules.prototype['bound_regions'] = undefined; /** - * Target name - * @member {String} name + * List of service accounts the service account must be part of in order to be authenticated + * @member {Array.} bound_service_accounts */ -CreateNativeK8STarget.prototype['name'] = undefined; +GCPAccessRules.prototype['bound_service_accounts'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. + * @member {Array.} bound_zones */ -CreateNativeK8STarget.prototype['token'] = undefined; +GCPAccessRules.prototype['bound_zones'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * ServiceAccount holds the credentials file contents to be used by Akeyless to validate IAM (Human) and GCE (Machine) logins against GCP base64 encoded string + * @member {String} service_account */ -CreateNativeK8STarget.prototype['uid-token'] = undefined; +GCPAccessRules.prototype['service_account'] = undefined; /** - * Use the GW's service account - * @member {Boolean} use-gw-service-account + * @member {String} type */ -CreateNativeK8STarget.prototype['use-gw-service-account'] = undefined; -var _default = CreateNativeK8STarget; +GCPAccessRules.prototype['type'] = undefined; +var _default = GCPAccessRules; exports["default"] = _default; /***/ }), -/***/ 97584: +/***/ 92921: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -37364,7 +111740,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -37375,19 +111751,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateNativeK8STargetOutput model module. - * @module model/CreateNativeK8STargetOutput - * @version 3.3.16 + * The GCPPayload model module. + * @module model/GCPPayload + * @version 3.6.3 */ -var CreateNativeK8STargetOutput = /*#__PURE__*/function () { +var GCPPayload = /*#__PURE__*/function () { /** - * Constructs a new CreateNativeK8STargetOutput. - * @alias module:model/CreateNativeK8STargetOutput + * Constructs a new GCPPayload. + * @alias module:model/GCPPayload */ - function CreateNativeK8STargetOutput() { - _classCallCheck(this, CreateNativeK8STargetOutput); + function GCPPayload() { + _classCallCheck(this, GCPPayload); - CreateNativeK8STargetOutput.initialize(this); + GCPPayload.initialize(this); } /** * Initializes the fields of this object. @@ -37396,25 +111772,25 @@ var CreateNativeK8STargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateNativeK8STargetOutput, null, [{ + _createClass(GCPPayload, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GCPPayload from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateNativeK8STargetOutput} obj Optional instance to populate. - * @return {module:model/CreateNativeK8STargetOutput} The populated CreateNativeK8STargetOutput instance. + * @param {module:model/GCPPayload} obj Optional instance to populate. + * @return {module:model/GCPPayload} The populated GCPPayload instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateNativeK8STargetOutput(); + obj = obj || new GCPPayload(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('gcp_credentials_json')) { + obj['gcp_credentials_json'] = _ApiClient["default"].convertToType(data['gcp_credentials_json'], 'String'); } } @@ -37422,20 +111798,20 @@ var CreateNativeK8STargetOutput = /*#__PURE__*/function () { } }]); - return CreateNativeK8STargetOutput; + return GCPPayload; }(); /** - * @member {Number} target_id + * @member {String} gcp_credentials_json */ -CreateNativeK8STargetOutput.prototype['target_id'] = undefined; -var _default = CreateNativeK8STargetOutput; +GCPPayload.prototype['gcp_credentials_json'] = undefined; +var _default = GCPPayload; exports["default"] = _default; /***/ }), -/***/ 29539: +/***/ 10472: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -37446,7 +111822,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _GCPPayload = _interopRequireDefault(__nccwpck_require__(92921)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -37457,22 +111837,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreatePKICertIssuer model module. - * @module model/CreatePKICertIssuer - * @version 3.3.16 + * The GCPSecretsMigration model module. + * @module model/GCPSecretsMigration + * @version 3.6.3 */ -var CreatePKICertIssuer = /*#__PURE__*/function () { +var GCPSecretsMigration = /*#__PURE__*/function () { /** - * Constructs a new CreatePKICertIssuer. - * @alias module:model/CreatePKICertIssuer - * @param name {String} PKI certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode - * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + * Constructs a new GCPSecretsMigration. + * @alias module:model/GCPSecretsMigration */ - function CreatePKICertIssuer(name, signerKeyName, ttl) { - _classCallCheck(this, CreatePKICertIssuer); + function GCPSecretsMigration() { + _classCallCheck(this, GCPSecretsMigration); - CreatePKICertIssuer.initialize(this, name, signerKeyName, ttl); + GCPSecretsMigration.initialize(this); } /** * Initializes the fields of this object. @@ -37481,157 +111858,137 @@ var CreatePKICertIssuer = /*#__PURE__*/function () { */ - _createClass(CreatePKICertIssuer, null, [{ + _createClass(GCPSecretsMigration, null, [{ key: "initialize", - value: function initialize(obj, name, signerKeyName, ttl) { - obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; - } + value: function initialize(obj) {} /** - * Constructs a CreatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. + * Constructs a GCPSecretsMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePKICertIssuer} obj Optional instance to populate. - * @return {module:model/CreatePKICertIssuer} The populated CreatePKICertIssuer instance. + * @param {module:model/GCPSecretsMigration} obj Optional instance to populate. + * @return {module:model/GCPSecretsMigration} The populated GCPSecretsMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreatePKICertIssuer(); - - if (data.hasOwnProperty('allow-any-name')) { - obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); - } - - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); - } - - if (data.hasOwnProperty('allowed-uri-sans')) { - obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); - } - - if (data.hasOwnProperty('ca-target')) { - obj['ca-target'] = _ApiClient["default"].convertToType(data['ca-target'], 'String'); - } + obj = obj || new GCPSecretsMigration(); - if (data.hasOwnProperty('client-flag')) { - obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); } - if (data.hasOwnProperty('code-signing-flag')) { - obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); + if (data.hasOwnProperty('payload')) { + obj['payload'] = _GCPPayload["default"].constructFromObject(data['payload']); } + } - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + return GCPSecretsMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('destination-path')) { - obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); - } +GCPSecretsMigration.prototype['general'] = undefined; +/** + * @member {module:model/GCPPayload} payload + */ - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); - } +GCPSecretsMigration.prototype['payload'] = undefined; +var _default = GCPSecretsMigration; +exports["default"] = _default; - if (data.hasOwnProperty('gw-cluster-url')) { - obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); - } +/***/ }), - if (data.hasOwnProperty('is-ca')) { - obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); - } +/***/ 54279: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +"use strict"; - if (data.hasOwnProperty('key-usage')) { - obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); - } - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('not-enforce-hostnames')) { - obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('not-require-cn')) { - obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (data.hasOwnProperty('organizational-units')) { - obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); - } +/** + * The GKETargetDetails model module. + * @module model/GKETargetDetails + * @version 3.6.3 + */ +var GKETargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GKETargetDetails. + * GKETargetDetails defines details related to connecting to a GKE (Google Kubernetes Engine) target + * @alias module:model/GKETargetDetails + */ + function GKETargetDetails() { + _classCallCheck(this, GKETargetDetails); - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); - } + GKETargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (data.hasOwnProperty('protect-certificates')) { - obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); - } - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); - } + _createClass(GKETargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GKETargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GKETargetDetails} obj Optional instance to populate. + * @return {module:model/GKETargetDetails} The populated GKETargetDetails instance. + */ - if (data.hasOwnProperty('server-flag')) { - obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GKETargetDetails(); - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + if (data.hasOwnProperty('gke_cluster_ca_certificate')) { + obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); } - if (data.hasOwnProperty('street-address')) { - obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + if (data.hasOwnProperty('gke_cluster_endpoint')) { + obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); } - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + if (data.hasOwnProperty('gke_cluster_name')) { + obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('gke_service_account_key')) { + obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('gke_service_account_name')) { + obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); } } @@ -37639,216 +111996,154 @@ var CreatePKICertIssuer = /*#__PURE__*/function () { } }]); - return CreatePKICertIssuer; + return GKETargetDetails; }(); /** - * If set, clients can request certificates for any CN - * @member {Boolean} allow-any-name + * @member {String} gke_cluster_ca_certificate */ -CreatePKICertIssuer.prototype['allow-any-name'] = undefined; -/** - * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains - * @member {Boolean} allow-subdomains - */ - -CreatePKICertIssuer.prototype['allow-subdomains'] = undefined; +GKETargetDetails.prototype['gke_cluster_ca_certificate'] = undefined; /** - * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) - * @member {String} allowed-domains + * @member {String} gke_cluster_endpoint */ -CreatePKICertIssuer.prototype['allowed-domains'] = undefined; +GKETargetDetails.prototype['gke_cluster_endpoint'] = undefined; /** - * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) - * @member {String} allowed-uri-sans + * @member {String} gke_cluster_name */ -CreatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; +GKETargetDetails.prototype['gke_cluster_name'] = undefined; /** - * The name of an existing CA target to attach this PKI Certificate Issuer to, required in Public CA mode - * @member {String} ca-target + * @member {String} gke_service_account_key */ -CreatePKICertIssuer.prototype['ca-target'] = undefined; +GKETargetDetails.prototype['gke_service_account_key'] = undefined; /** - * If set, certificates will be flagged for client auth use - * @member {Boolean} client-flag + * @member {String} gke_service_account_name */ -CreatePKICertIssuer.prototype['client-flag'] = undefined; +GKETargetDetails.prototype['gke_service_account_name'] = undefined; /** - * If set, certificates will be flagged for code signing use - * @member {Boolean} code-signing-flag + * @member {Boolean} use_gw_cloud_identity */ -CreatePKICertIssuer.prototype['code-signing-flag'] = undefined; -/** - * A comma-separated list of countries that will be set in the issued certificate - * @member {String} country - */ +GKETargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = GKETargetDetails; +exports["default"] = _default; -CreatePKICertIssuer.prototype['country'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ +/***/ }), -CreatePKICertIssuer.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ +/***/ 74897: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -CreatePKICertIssuer.prototype['description'] = undefined; -/** - * A path in which to save generated certificates - * @member {String} destination-path - */ +"use strict"; -CreatePKICertIssuer.prototype['destination-path'] = undefined; -/** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in - */ -CreatePKICertIssuer.prototype['expiration-event-in'] = undefined; -/** - * The GW cluster URL to issue the certificate from, required in Public CA mode - * @member {String} gw-cluster-url - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -CreatePKICertIssuer.prototype['gw-cluster-url'] = undefined; -/** - * If set, the basic constraints extension will be added to certificate - * @member {Boolean} is-ca - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -CreatePKICertIssuer.prototype['is-ca'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -CreatePKICertIssuer.prototype['json'] = false; -/** - * key-usage - * @member {String} key-usage - * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -CreatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; -/** - * A comma-separated list of localities that will be set in the issued certificate - * @member {String} locality - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -CreatePKICertIssuer.prototype['locality'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -CreatePKICertIssuer.prototype['metadata'] = undefined; /** - * PKI certificate issuer name - * @member {String} name + * The GatewayBasicInfo model module. + * @module model/GatewayBasicInfo + * @version 3.6.3 */ +var GatewayBasicInfo = /*#__PURE__*/function () { + /** + * Constructs a new GatewayBasicInfo. + * @alias module:model/GatewayBasicInfo + */ + function GatewayBasicInfo() { + _classCallCheck(this, GatewayBasicInfo); -CreatePKICertIssuer.prototype['name'] = undefined; -/** - * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name - * @member {Boolean} not-enforce-hostnames - */ + GatewayBasicInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -CreatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; -/** - * If set, clients can request certificates without a CN - * @member {Boolean} not-require-cn - */ -CreatePKICertIssuer.prototype['not-require-cn'] = undefined; -/** - * A comma-separated list of organizational units (OU) that will be set in the issued certificate - * @member {String} organizational-units - */ + _createClass(GatewayBasicInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayBasicInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayBasicInfo} obj Optional instance to populate. + * @return {module:model/GatewayBasicInfo} The populated GatewayBasicInfo instance. + */ -CreatePKICertIssuer.prototype['organizational-units'] = undefined; -/** - * A comma-separated list of organizations (O) that will be set in the issued certificate - * @member {String} organizations - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayBasicInfo(); -CreatePKICertIssuer.prototype['organizations'] = undefined; -/** - * A comma-separated list of postal codes that will be set in the issued certificate - * @member {String} postal-code - */ + if (data.hasOwnProperty('cluster_display_name')) { + obj['cluster_display_name'] = _ApiClient["default"].convertToType(data['cluster_display_name'], 'String'); + } -CreatePKICertIssuer.prototype['postal-code'] = undefined; -/** - * Whether to protect generated certificates from deletion - * @member {Boolean} protect-certificates - */ + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); + } -CreatePKICertIssuer.prototype['protect-certificates'] = undefined; -/** - * A comma-separated list of provinces that will be set in the issued certificate - * @member {String} province - */ + if (data.hasOwnProperty('cluster_name')) { + obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); + } -CreatePKICertIssuer.prototype['province'] = undefined; -/** - * If set, certificates will be flagged for server auth use - * @member {Boolean} server-flag - */ + if (data.hasOwnProperty('cluster_url')) { + obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); + } + } -CreatePKICertIssuer.prototype['server-flag'] = undefined; -/** - * A key to sign the certificate with, required in Private CA mode - * @member {String} signer-key-name - * @default 'dummy_signer_key' - */ + return obj; + } + }]); -CreatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; + return GatewayBasicInfo; +}(); /** - * A comma-separated list of street addresses that will be set in the issued certificate - * @member {String} street-address + * @member {String} cluster_display_name */ -CreatePKICertIssuer.prototype['street-address'] = undefined; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ -CreatePKICertIssuer.prototype['tag'] = undefined; +GatewayBasicInfo.prototype['cluster_display_name'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Number} cluster_id */ -CreatePKICertIssuer.prototype['token'] = undefined; +GatewayBasicInfo.prototype['cluster_id'] = undefined; /** - * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs - * @member {Number} ttl + * @member {String} cluster_name */ -CreatePKICertIssuer.prototype['ttl'] = undefined; +GatewayBasicInfo.prototype['cluster_name'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} cluster_url */ -CreatePKICertIssuer.prototype['uid-token'] = undefined; -var _default = CreatePKICertIssuer; +GatewayBasicInfo.prototype['cluster_url'] = undefined; +var _default = GatewayBasicInfo; exports["default"] = _default; /***/ }), -/***/ 55645: +/***/ 69865: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -37859,7 +112154,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -37870,19 +112165,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreatePKICertIssuerOutput model module. - * @module model/CreatePKICertIssuerOutput - * @version 3.3.16 + * The GatewayCreateAllowedAccess model module. + * @module model/GatewayCreateAllowedAccess + * @version 3.6.3 */ -var CreatePKICertIssuerOutput = /*#__PURE__*/function () { +var GatewayCreateAllowedAccess = /*#__PURE__*/function () { /** - * Constructs a new CreatePKICertIssuerOutput. - * @alias module:model/CreatePKICertIssuerOutput + * Constructs a new GatewayCreateAllowedAccess. + * gatewayCreateAllowedAccess is a command that creates allowed access in Gator + * @alias module:model/GatewayCreateAllowedAccess + * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @param name {String} Allowed access name */ - function CreatePKICertIssuerOutput() { - _classCallCheck(this, CreatePKICertIssuerOutput); + function GatewayCreateAllowedAccess(accessId, name) { + _classCallCheck(this, GatewayCreateAllowedAccess); - CreatePKICertIssuerOutput.initialize(this); + GatewayCreateAllowedAccess.initialize(this, accessId, name); } /** * Initializes the fields of this object. @@ -37891,46 +112189,143 @@ var CreatePKICertIssuerOutput = /*#__PURE__*/function () { */ - _createClass(CreatePKICertIssuerOutput, null, [{ + _createClass(GatewayCreateAllowedAccess, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, accessId, name) { + obj['access-id'] = accessId; + obj['name'] = name; + } /** - * Constructs a CreatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateAllowedAccess from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePKICertIssuerOutput} obj Optional instance to populate. - * @return {module:model/CreatePKICertIssuerOutput} The populated CreatePKICertIssuerOutput instance. + * @param {module:model/GatewayCreateAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayCreateAllowedAccess} The populated GatewayCreateAllowedAccess instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreatePKICertIssuerOutput(); + obj = obj || new GatewayCreateAllowedAccess(); + + if (data.hasOwnProperty('SubClaimsCaseInsensitive')) { + obj['SubClaimsCaseInsensitive'] = _ApiClient["default"].convertToType(data['SubClaimsCaseInsensitive'], 'Boolean'); + } + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + + if (data.hasOwnProperty('permissions')) { + obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } return obj; } }]); - return CreatePKICertIssuerOutput; + return GatewayCreateAllowedAccess; }(); /** + * @member {Boolean} SubClaimsCaseInsensitive + */ + + +GatewayCreateAllowedAccess.prototype['SubClaimsCaseInsensitive'] = undefined; +/** + * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @member {String} access-id + */ + +GatewayCreateAllowedAccess.prototype['access-id'] = undefined; +/** + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' + */ + +GatewayCreateAllowedAccess.prototype['case-sensitive'] = 'true'; +/** + * Allowed access description + * @member {String} description + */ + +GatewayCreateAllowedAccess.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateAllowedAccess.prototype['json'] = false; +/** + * Allowed access name * @member {String} name */ +GatewayCreateAllowedAccess.prototype['name'] = undefined; +/** + * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] + * @member {String} permissions + */ -CreatePKICertIssuerOutput.prototype['name'] = undefined; -var _default = CreatePKICertIssuerOutput; +GatewayCreateAllowedAccess.prototype['permissions'] = undefined; +/** + * Sub claims key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +GatewayCreateAllowedAccess.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateAllowedAccess.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayCreateAllowedAccess; exports["default"] = _default; /***/ }), -/***/ 12056: +/***/ 34979: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -37941,7 +112336,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -37952,20 +112347,24 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreatePingTarget model module. - * @module model/CreatePingTarget - * @version 3.3.16 + * The GatewayCreateK8SAuthConfig model module. + * @module model/GatewayCreateK8SAuthConfig + * @version 3.6.3 */ -var CreatePingTarget = /*#__PURE__*/function () { +var GatewayCreateK8SAuthConfig = /*#__PURE__*/function () { /** - * Constructs a new CreatePingTarget. - * @alias module:model/CreatePingTarget - * @param name {String} Target name + * Constructs a new GatewayCreateK8SAuthConfig. + * gatewayCreateK8SAuth is a command that creates k8s auth config + * @alias module:model/GatewayCreateK8SAuthConfig + * @param accessId {String} The access ID of the Kubernetes auth method + * @param k8sHost {String} The URL of the kubernetes API server + * @param name {String} K8S Auth config name + * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth */ - function CreatePingTarget(name) { - _classCallCheck(this, CreatePingTarget); + function GatewayCreateK8SAuthConfig(accessId, k8sHost, name, signingKey) { + _classCallCheck(this, GatewayCreateK8SAuthConfig); - CreatePingTarget.initialize(this, name); + GatewayCreateK8SAuthConfig.initialize(this, accessId, k8sHost, name, signingKey); } /** * Initializes the fields of this object. @@ -37974,162 +112373,247 @@ var CreatePingTarget = /*#__PURE__*/function () { */ - _createClass(CreatePingTarget, null, [{ + _createClass(GatewayCreateK8SAuthConfig, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, accessId, k8sHost, name, signingKey) { + obj['access-id'] = accessId; + obj['k8s-host'] = k8sHost; obj['name'] = name; + obj['signing-key'] = signingKey; } /** - * Constructs a CreatePingTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePingTarget} obj Optional instance to populate. - * @return {module:model/CreatePingTarget} The populated CreatePingTarget instance. + * @param {module:model/GatewayCreateK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayCreateK8SAuthConfig} The populated GatewayCreateK8SAuthConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreatePingTarget(); + obj = obj || new GatewayCreateK8SAuthConfig(); - if (data.hasOwnProperty('administrative-port')) { - obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); } - if (data.hasOwnProperty('authorization-port')) { - obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); + if (data.hasOwnProperty('cluster-api-type')) { + obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('config-encryption-key-name')) { + obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('disable-issuer-validation')) { + obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-ca-cert')) { + obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } + + if (data.hasOwnProperty('k8s-host')) { + obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); + } + + if (data.hasOwnProperty('k8s-issuer')) { + obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('rancher-api-key')) { + obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); } - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + if (data.hasOwnProperty('rancher-cluster-id')) { + obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); } - if (data.hasOwnProperty('privileged-user')) { - obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); + if (data.hasOwnProperty('signing-key')) { + obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('token-exp')) { + obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); + } + + if (data.hasOwnProperty('token-reviewer-jwt')) { + obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } } return obj; } }]); - return CreatePingTarget; + return GatewayCreateK8SAuthConfig; }(); /** - * Ping Federate administrative port - * @member {String} administrative-port - * @default '9999' + * The access ID of the Kubernetes auth method + * @member {String} access-id */ -CreatePingTarget.prototype['administrative-port'] = '9999'; +GatewayCreateK8SAuthConfig.prototype['access-id'] = undefined; /** - * Ping Federate authorization port - * @member {String} authorization-port - * @default '9031' + * Cluster access type. options: [native_k8s, rancher] + * @member {String} cluster-api-type + * @default 'native_k8s' */ -CreatePingTarget.prototype['authorization-port'] = '9031'; +GatewayCreateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; /** - * Deprecated - use description - * @member {String} comment + * Config encryption key + * @member {String} config-encryption-key-name */ -CreatePingTarget.prototype['comment'] = undefined; +GatewayCreateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; /** - * Description of the object - * @member {String} description + * Disable issuer validation [true/false] + * @member {String} disable-issuer-validation */ -CreatePingTarget.prototype['description'] = undefined; +GatewayCreateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreatePingTarget.prototype['json'] = false; +GatewayCreateK8SAuthConfig.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * K8S auth type [token/certificate]. (relevant for \"native_k8s\" only) + * @member {String} k8s-auth-type + * @default 'token' */ -CreatePingTarget.prototype['key'] = undefined; +GatewayCreateK8SAuthConfig.prototype['k8s-auth-type'] = 'token'; /** - * Target name + * The CA Certificate (base64 encoded) to use to call into the kubernetes API server + * @member {String} k8s-ca-cert + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; +/** + * Content of the k8 client certificate (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-certificate + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-client-certificate'] = undefined; +/** + * Content of the k8 client private key (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-key + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-client-key'] = undefined; +/** + * The URL of the kubernetes API server + * @member {String} k8s-host + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-host'] = undefined; +/** + * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s-issuer + * @default 'kubernetes/serviceaccount' + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; +/** + * K8S Auth config name * @member {String} name */ -CreatePingTarget.prototype['name'] = undefined; +GatewayCreateK8SAuthConfig.prototype['name'] = undefined; /** - * Ping Federate privileged user password - * @member {String} password + * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) + * @member {String} rancher-api-key */ -CreatePingTarget.prototype['password'] = undefined; +GatewayCreateK8SAuthConfig.prototype['rancher-api-key'] = undefined; /** - * Ping URL - * @member {String} ping-url + * The cluster id as define in rancher (relevant for \"rancher\" only) + * @member {String} rancher-cluster-id */ -CreatePingTarget.prototype['ping-url'] = undefined; +GatewayCreateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; /** - * Ping Federate privileged user - * @member {String} privileged-user + * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + * @member {String} signing-key */ -CreatePingTarget.prototype['privileged-user'] = undefined; +GatewayCreateK8SAuthConfig.prototype['signing-key'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreatePingTarget.prototype['token'] = undefined; +GatewayCreateK8SAuthConfig.prototype['token'] = undefined; +/** + * Time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} token-exp + * @default 300 + */ + +GatewayCreateK8SAuthConfig.prototype['token-exp'] = 300; +/** + * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. + * @member {String} token-reviewer-jwt + */ + +GatewayCreateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreatePingTarget.prototype['uid-token'] = undefined; -var _default = CreatePingTarget; +GatewayCreateK8SAuthConfig.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +GatewayCreateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; +var _default = GatewayCreateK8SAuthConfig; exports["default"] = _default; /***/ }), -/***/ 72314: +/***/ 14034: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -38140,7 +112624,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(75263)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -38151,19 +112637,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreatePingTargetOutput model module. - * @module model/CreatePingTargetOutput - * @version 3.3.16 + * The GatewayCreateK8SAuthConfigOutput model module. + * @module model/GatewayCreateK8SAuthConfigOutput + * @version 3.6.3 */ -var CreatePingTargetOutput = /*#__PURE__*/function () { +var GatewayCreateK8SAuthConfigOutput = /*#__PURE__*/function () { /** - * Constructs a new CreatePingTargetOutput. - * @alias module:model/CreatePingTargetOutput + * Constructs a new GatewayCreateK8SAuthConfigOutput. + * @alias module:model/GatewayCreateK8SAuthConfigOutput */ - function CreatePingTargetOutput() { - _classCallCheck(this, CreatePingTargetOutput); + function GatewayCreateK8SAuthConfigOutput() { + _classCallCheck(this, GatewayCreateK8SAuthConfigOutput); - CreatePingTargetOutput.initialize(this); + GatewayCreateK8SAuthConfigOutput.initialize(this); } /** * Initializes the fields of this object. @@ -38172,25 +112658,33 @@ var CreatePingTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreatePingTargetOutput, null, [{ + _createClass(GatewayCreateK8SAuthConfigOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreatePingTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePingTargetOutput} obj Optional instance to populate. - * @return {module:model/CreatePingTargetOutput} The populated CreatePingTargetOutput instance. + * @param {module:model/GatewayCreateK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateK8SAuthConfigOutput} The populated GatewayCreateK8SAuthConfigOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreatePingTargetOutput(); + obj = obj || new GatewayCreateK8SAuthConfigOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); + } + + if (data.hasOwnProperty('parts_change')) { + obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); + } + + if (data.hasOwnProperty('total_hash')) { + obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); } } @@ -38198,20 +112692,30 @@ var CreatePingTargetOutput = /*#__PURE__*/function () { } }]); - return CreatePingTargetOutput; + return GatewayCreateK8SAuthConfigOutput; }(); /** - * @member {Number} target_id + * @member {String} cluster_id */ -CreatePingTargetOutput.prototype['target_id'] = undefined; -var _default = CreatePingTargetOutput; +GatewayCreateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; +/** + * @member {module:model/ConfigChange} parts_change + */ + +GatewayCreateK8SAuthConfigOutput.prototype['parts_change'] = undefined; +/** + * @member {String} total_hash + */ + +GatewayCreateK8SAuthConfigOutput.prototype['total_hash'] = undefined; +var _default = GatewayCreateK8SAuthConfigOutput; exports["default"] = _default; /***/ }), -/***/ 63852: +/***/ 36831: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -38222,7 +112726,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -38233,20 +112737,24 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateRabbitMQTarget model module. - * @module model/CreateRabbitMQTarget - * @version 3.3.16 + * The GatewayCreateMigration model module. + * @module model/GatewayCreateMigration + * @version 3.6.3 */ -var CreateRabbitMQTarget = /*#__PURE__*/function () { +var GatewayCreateMigration = /*#__PURE__*/function () { /** - * Constructs a new CreateRabbitMQTarget. - * @alias module:model/CreateRabbitMQTarget - * @param name {String} Target name + * Constructs a new GatewayCreateMigration. + * gatewayCreateMigration is a command that create migration + * @alias module:model/GatewayCreateMigration + * @param name {String} Migration name + * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @param targetLocation {String} Target location in Akeyless for imported secrets */ - function CreateRabbitMQTarget(name) { - _classCallCheck(this, CreateRabbitMQTarget); + function GatewayCreateMigration(name, siTargetName, siUsersPathTemplate, targetLocation) { + _classCallCheck(this, GatewayCreateMigration); - CreateRabbitMQTarget.initialize(this, name); + GatewayCreateMigration.initialize(this, name, siTargetName, siUsersPathTemplate, targetLocation); } /** * Initializes the fields of this object. @@ -38255,61 +112763,276 @@ var CreateRabbitMQTarget = /*#__PURE__*/function () { */ - _createClass(CreateRabbitMQTarget, null, [{ + _createClass(GatewayCreateMigration, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, name, siTargetName, siUsersPathTemplate, targetLocation) { obj['name'] = name; + obj['si-target-name'] = siTargetName; + obj['si-users-path-template'] = siUsersPathTemplate; + obj['target-location'] = targetLocation; } /** - * Constructs a CreateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRabbitMQTarget} obj Optional instance to populate. - * @return {module:model/CreateRabbitMQTarget} The populated CreateRabbitMQTarget instance. + * @param {module:model/GatewayCreateMigration} obj Optional instance to populate. + * @return {module:model/GatewayCreateMigration} The populated GatewayCreateMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateRabbitMQTarget(); + obj = obj || new GatewayCreateMigration(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('1password-email')) { + obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('1password-password')) { + obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); + } + + if (data.hasOwnProperty('1password-secret-key')) { + obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); + } + + if (data.hasOwnProperty('1password-url')) { + obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); + } + + if (data.hasOwnProperty('1password-vaults')) { + obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); + } + + if (data.hasOwnProperty('ad-discover-services')) { + obj['ad-discover-services'] = _ApiClient["default"].convertToType(data['ad-discover-services'], 'String'); + } + + if (data.hasOwnProperty('ad-discovery-types')) { + obj['ad-discovery-types'] = _ApiClient["default"].convertToType(data['ad-discovery-types'], ['String']); + } + + if (data.hasOwnProperty('ad-os-filter')) { + obj['ad-os-filter'] = _ApiClient["default"].convertToType(data['ad-os-filter'], 'String'); + } + + if (data.hasOwnProperty('ad-ssh-port')) { + obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); + } + + if (data.hasOwnProperty('ad-target-format')) { + obj['ad-target-format'] = _ApiClient["default"].convertToType(data['ad-target-format'], 'String'); + } + + if (data.hasOwnProperty('ad-targets-type')) { + obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-over-http')) { + obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-port')) { + obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); + } + + if (data.hasOwnProperty('ad_auto_rotate')) { + obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); + } + + if (data.hasOwnProperty('ad_computer_base_dn')) { + obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_discover_local_users')) { + obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_name')) { + obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_users_path_template')) { + obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_ignore')) { + obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_path_template')) { + obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_rotation_hour')) { + obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); + } + + if (data.hasOwnProperty('ad_rotation_interval')) { + obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); + } + + if (data.hasOwnProperty('ad_sra_enable_rdp')) { + obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); + } + + if (data.hasOwnProperty('ad_target_name')) { + obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); + } + + if (data.hasOwnProperty('ad_targets_path_template')) { + obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_user_base_dn')) { + obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_user_groups')) { + obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); + } + + if (data.hasOwnProperty('aws-key')) { + obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); + } + + if (data.hasOwnProperty('aws-key-id')) { + obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('azure-secret')) { + obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('hashi-json')) { + obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); + } + + if (data.hasOwnProperty('hashi-ns')) { + obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); + } + + if (data.hasOwnProperty('hashi-token')) { + obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); + } + + if (data.hasOwnProperty('hashi-url')) { + obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('k8s-ca-certificate')) { + obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-password')) { + obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); + } + + if (data.hasOwnProperty('k8s-skip-system')) { + obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-token')) { + obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-url')) { + obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); + } + + if (data.hasOwnProperty('k8s-username')) { + obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('rabbitmq-server-password')) { - obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); + if (data.hasOwnProperty('protection-key')) { + obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); } - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + if (data.hasOwnProperty('si-auto-rotate')) { + obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); } - if (data.hasOwnProperty('rabbitmq-server-user')) { - obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); + if (data.hasOwnProperty('si-rotation-hour')) { + obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('si-rotation-interval')) { + obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); + } + + if (data.hasOwnProperty('si-sra-enable-rdp')) { + obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); + } + + if (data.hasOwnProperty('si-target-name')) { + obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); + } + + if (data.hasOwnProperty('si-user-groups')) { + obj['si-user-groups'] = _ApiClient["default"].convertToType(data['si-user-groups'], 'String'); + } + + if (data.hasOwnProperty('si-users-ignore')) { + obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); + } + + if (data.hasOwnProperty('si-users-path-template')) { + obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); + } + + if (data.hasOwnProperty('target-location')) { + obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -38319,155 +113042,403 @@ var CreateRabbitMQTarget = /*#__PURE__*/function () { } }]); - return CreateRabbitMQTarget; + return GatewayCreateMigration; }(); /** - * Deprecated - use description - * @member {String} comment + * 1Password user email to connect to the API + * @member {String} 1password-email */ -CreateRabbitMQTarget.prototype['comment'] = undefined; +GatewayCreateMigration.prototype['1password-email'] = undefined; /** - * Description of the object - * @member {String} description + * 1Password user password to connect to the API + * @member {String} 1password-password */ -CreateRabbitMQTarget.prototype['description'] = undefined; +GatewayCreateMigration.prototype['1password-password'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * 1Password user secret key to connect to the API + * @member {String} 1password-secret-key */ -CreateRabbitMQTarget.prototype['json'] = false; +GatewayCreateMigration.prototype['1password-secret-key'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * 1Password api container url + * @member {String} 1password-url */ -CreateRabbitMQTarget.prototype['key'] = undefined; +GatewayCreateMigration.prototype['1password-url'] = undefined; /** - * Target name - * @member {String} name + * 1Password list of vault to get the items from + * @member {Array.} 1password-vaults */ -CreateRabbitMQTarget.prototype['name'] = undefined; +GatewayCreateMigration.prototype['1password-vaults'] = undefined; /** - * @member {String} rabbitmq-server-password + * Enable/Disable discovery of Windows services from each domain server as part of the SSH/Windows Rotated Secrets. Default is false. (Relevant only for Active Directory migration) + * @member {String} ad-discover-services + * @default 'false' */ -CreateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; +GatewayCreateMigration.prototype['ad-discover-services'] = 'false'; /** - * @member {String} rabbitmq-server-uri + * Set migration discovery types (domain-users, computers, local-users). (Relevant only for Active Directory migration) + * @member {Array.} ad-discovery-types */ -CreateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; +GatewayCreateMigration.prototype['ad-discovery-types'] = undefined; /** - * @member {String} rabbitmq-server-user + * Filter by Operating System to run the migration, can be used with wildcards, e.g. SRV20* (Relevant only for Active Directory migration) + * @member {String} ad-os-filter */ -CreateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; +GatewayCreateMigration.prototype['ad-os-filter'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) + * @member {String} ad-ssh-port + * @default '22' */ -CreateRabbitMQTarget.prototype['token'] = undefined; +GatewayCreateMigration.prototype['ad-ssh-port'] = '22'; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Relevant only for ad-discovery-types=computers. For linked, all computers will be migrated into a linked target(s). if set with regular, the migration will create a target for each computer. + * @member {String} ad-target-format + * @default 'linked' */ -CreateRabbitMQTarget.prototype['uid-token'] = undefined; -var _default = CreateRabbitMQTarget; -exports["default"] = _default; +GatewayCreateMigration.prototype['ad-target-format'] = 'linked'; +/** + * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) + * @member {String} ad-targets-type + * @default 'windows' + */ -/***/ }), +GatewayCreateMigration.prototype['ad-targets-type'] = 'windows'; +/** + * Use WinRM over HTTP, by default runs over HTTPS + * @member {String} ad-winrm-over-http + * @default 'false' + */ -/***/ 85199: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +GatewayCreateMigration.prototype['ad-winrm-over-http'] = 'false'; +/** + * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) + * @member {String} ad-winrm-port + * @default '5986' + */ -"use strict"; +GatewayCreateMigration.prototype['ad-winrm-port'] = '5986'; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) + * @member {String} ad_auto_rotate + */ +GatewayCreateMigration.prototype['ad_auto_rotate'] = undefined; +/** + * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_computer_base_dn + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +GatewayCreateMigration.prototype['ad_computer_base_dn'] = undefined; +/** + * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) Deprecated: use AdDiscoverTypes + * @member {String} ad_discover_local_users + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +GatewayCreateMigration.prototype['ad_discover_local_users'] = undefined; +/** + * Active Directory Domain Name (Relevant only for Active Directory migration) + * @member {String} ad_domain_name + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +GatewayCreateMigration.prototype['ad_domain_name'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_domain_users_path_template + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +GatewayCreateMigration.prototype['ad_domain_users_path_template'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) + * @member {String} ad_local_users_ignore + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +GatewayCreateMigration.prototype['ad_local_users_ignore'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_local_users_path_template + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +GatewayCreateMigration.prototype['ad_local_users_path_template'] = undefined; +/** + * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_hour + */ +GatewayCreateMigration.prototype['ad_rotation_hour'] = undefined; /** - * The CreateRabbitMQTargetOutput model module. - * @module model/CreateRabbitMQTargetOutput - * @version 3.3.16 + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_interval */ -var CreateRabbitMQTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateRabbitMQTargetOutput. - * @alias module:model/CreateRabbitMQTargetOutput - */ - function CreateRabbitMQTargetOutput() { - _classCallCheck(this, CreateRabbitMQTargetOutput); - CreateRabbitMQTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +GatewayCreateMigration.prototype['ad_rotation_interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) + * @member {String} ad_sra_enable_rdp + */ + +GatewayCreateMigration.prototype['ad_sra_enable_rdp'] = undefined; +/** + * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) + * @member {String} ad_target_name + */ +GatewayCreateMigration.prototype['ad_target_name'] = undefined; +/** + * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) + * @member {String} ad_targets_path_template + */ - _createClass(CreateRabbitMQTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRabbitMQTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateRabbitMQTargetOutput} The populated CreateRabbitMQTargetOutput instance. - */ +GatewayCreateMigration.prototype['ad_targets_path_template'] = undefined; +/** + * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_user_base_dn + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRabbitMQTargetOutput(); +GatewayCreateMigration.prototype['ad_user_base_dn'] = undefined; +/** + * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) + * @member {String} ad_user_groups + */ - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } +GatewayCreateMigration.prototype['ad_user_groups'] = undefined; +/** + * AWS Secret Access Key (relevant only for AWS migration) + * @member {String} aws-key + */ - return obj; - } - }]); +GatewayCreateMigration.prototype['aws-key'] = undefined; +/** + * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) + * @member {String} aws-key-id + */ - return CreateRabbitMQTargetOutput; -}(); +GatewayCreateMigration.prototype['aws-key-id'] = undefined; /** - * @member {Number} target_id + * AWS region of the required Secrets Manager (relevant only for AWS migration) + * @member {String} aws-region + * @default 'us-east-2' */ +GatewayCreateMigration.prototype['aws-region'] = 'us-east-2'; +/** + * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) + * @member {String} azure-client-id + */ -CreateRabbitMQTargetOutput.prototype['target_id'] = undefined; -var _default = CreateRabbitMQTargetOutput; +GatewayCreateMigration.prototype['azure-client-id'] = undefined; +/** + * Azure Key Vault Name (relevant only for Azure Key Vault migration) + * @member {String} azure-kv-name + */ + +GatewayCreateMigration.prototype['azure-kv-name'] = undefined; +/** + * Azure Key Vault secret (relevant only for Azure Key Vault migration) + * @member {String} azure-secret + */ + +GatewayCreateMigration.prototype['azure-secret'] = undefined; +/** + * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) + * @member {String} azure-tenant-id + */ + +GatewayCreateMigration.prototype['azure-tenant-id'] = undefined; +/** + * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) + * @member {String} gcp-key + */ + +GatewayCreateMigration.prototype['gcp-key'] = undefined; +/** + * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] + * @member {String} hashi-json + * @default 'true' + */ + +GatewayCreateMigration.prototype['hashi-json'] = 'true'; +/** + * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) + * @member {Array.} hashi-ns + */ + +GatewayCreateMigration.prototype['hashi-ns'] = undefined; +/** + * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) + * @member {String} hashi-token + */ + +GatewayCreateMigration.prototype['hashi-token'] = undefined; +/** + * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) + * @member {String} hashi-url + */ + +GatewayCreateMigration.prototype['hashi-url'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateMigration.prototype['json'] = false; +/** + * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-ca-certificate + */ + +GatewayCreateMigration.prototype['k8s-ca-certificate'] = undefined; +/** + * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-certificate + */ + +GatewayCreateMigration.prototype['k8s-client-certificate'] = undefined; +/** + * K8s Client key (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-key + */ + +GatewayCreateMigration.prototype['k8s-client-key'] = undefined; +/** + * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) + * @member {String} k8s-namespace + */ + +GatewayCreateMigration.prototype['k8s-namespace'] = undefined; +/** + * K8s Client password (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-password + */ + +GatewayCreateMigration.prototype['k8s-password'] = undefined; +/** + * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) + * @member {Boolean} k8s-skip-system + */ + +GatewayCreateMigration.prototype['k8s-skip-system'] = undefined; +/** + * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) + * @member {String} k8s-token + */ + +GatewayCreateMigration.prototype['k8s-token'] = undefined; +/** + * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) + * @member {String} k8s-url + */ + +GatewayCreateMigration.prototype['k8s-url'] = undefined; +/** + * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-username + */ + +GatewayCreateMigration.prototype['k8s-username'] = undefined; +/** + * Migration name + * @member {String} name + */ + +GatewayCreateMigration.prototype['name'] = undefined; +/** + * The name of the key that protects the classic key value (if empty, the account default key will be used) + * @member {String} protection-key + */ + +GatewayCreateMigration.prototype['protection-key'] = undefined; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) + * @member {String} si-auto-rotate + */ + +GatewayCreateMigration.prototype['si-auto-rotate'] = undefined; +/** + * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-hour + */ + +GatewayCreateMigration.prototype['si-rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-interval + */ + +GatewayCreateMigration.prototype['si-rotation-interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) + * @member {String} si-sra-enable-rdp + * @default 'false' + */ + +GatewayCreateMigration.prototype['si-sra-enable-rdp'] = 'false'; +/** + * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @member {String} si-target-name + */ + +GatewayCreateMigration.prototype['si-target-name'] = undefined; +/** + * Comma-separated list of groups to migrate users from. If empty, all users from all groups will be migrated (Relevant only for Server Inventory migration) + * @member {String} si-user-groups + */ + +GatewayCreateMigration.prototype['si-user-groups'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) + * @member {String} si-users-ignore + */ + +GatewayCreateMigration.prototype['si-users-ignore'] = undefined; +/** + * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @member {String} si-users-path-template + */ + +GatewayCreateMigration.prototype['si-users-path-template'] = undefined; +/** + * Target location in Akeyless for imported secrets + * @member {String} target-location + */ + +GatewayCreateMigration.prototype['target-location'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateMigration.prototype['token'] = undefined; +/** + * Migration type (hashi/aws/gcp/k8s/azure_kv/1password/active_directory) + * @member {String} type + */ + +GatewayCreateMigration.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateMigration.prototype['uid-token'] = undefined; +var _default = GatewayCreateMigration; exports["default"] = _default; /***/ }), -/***/ 11951: +/***/ 22311: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -38478,7 +113449,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -38489,20 +113460,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateRole model module. - * @module model/CreateRole - * @version 3.3.16 + * The GatewayCreateProducerArtifactory model module. + * @module model/GatewayCreateProducerArtifactory + * @version 3.6.3 */ -var CreateRole = /*#__PURE__*/function () { +var GatewayCreateProducerArtifactory = /*#__PURE__*/function () { /** - * Constructs a new CreateRole. - * @alias module:model/CreateRole - * @param name {String} Role name + * Constructs a new GatewayCreateProducerArtifactory. + * gatewayCreateProducerArtifactory is a command that creates artifactory producer [Deprecated: Use dynamic-secret-create-artifactory command] + * @alias module:model/GatewayCreateProducerArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name */ - function CreateRole(name) { - _classCallCheck(this, CreateRole); + function GatewayCreateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, GatewayCreateProducerArtifactory); - CreateRole.initialize(this, name); + GatewayCreateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); } /** * Initializes the fields of this object. @@ -38511,43 +113485,49 @@ var CreateRole = /*#__PURE__*/function () { */ - _createClass(CreateRole, null, [{ + _createClass(GatewayCreateProducerArtifactory, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; obj['name'] = name; } /** - * Constructs a CreateRole from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRole} obj Optional instance to populate. - * @return {module:model/CreateRole} The populated CreateRole instance. + * @param {module:model/GatewayCreateProducerArtifactory} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerArtifactory} The populated GatewayCreateProducerArtifactory instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateRole(); + obj = obj || new GatewayCreateProducerArtifactory(); - if (data.hasOwnProperty('analytics-access')) { - obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); } - if (data.hasOwnProperty('audit-access')) { - obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); } - if (data.hasOwnProperty('gw-analytics-access')) { - obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('json')) { @@ -38558,8 +113538,16 @@ var CreateRole = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('sra-reports-access')) { - obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -38569,82 +113557,111 @@ var CreateRole = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateRole; + return GatewayCreateProducerArtifactory; }(); /** - * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} analytics-access + * Artifactory Admin Name + * @member {String} artifactory-admin-name */ -CreateRole.prototype['analytics-access'] = undefined; +GatewayCreateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; /** - * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. - * @member {String} audit-access + * Artifactory Admin password + * @member {String} artifactory-admin-pwd */ -CreateRole.prototype['audit-access'] = undefined; +GatewayCreateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * Token Audience + * @member {String} artifactory-token-audience */ -CreateRole.prototype['comment'] = undefined; +GatewayCreateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; /** - * Description of the object - * @member {String} description + * Token Scope + * @member {String} artifactory-token-scope */ -CreateRole.prototype['description'] = undefined; +GatewayCreateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; /** - * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} gw-analytics-access + * Base URL + * @member {String} base-url */ -CreateRole.prototype['gw-analytics-access'] = undefined; +GatewayCreateProducerArtifactory.prototype['base-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerArtifactory.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateRole.prototype['json'] = false; +GatewayCreateProducerArtifactory.prototype['json'] = false; /** - * Role name + * Dynamic secret name * @member {String} name */ -CreateRole.prototype['name'] = undefined; +GatewayCreateProducerArtifactory.prototype['name'] = undefined; /** - * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. - * @member {String} sra-reports-access + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateRole.prototype['sra-reports-access'] = undefined; +GatewayCreateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerArtifactory.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateRole.prototype['token'] = undefined; +GatewayCreateProducerArtifactory.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateRole.prototype['uid-token'] = undefined; -var _default = CreateRole; +GatewayCreateProducerArtifactory.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerArtifactory.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerArtifactory; exports["default"] = _default; /***/ }), -/***/ 67799: +/***/ 47166: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -38655,7 +113672,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -38666,20 +113685,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateRoleAuthMethodAssocOutput model module. - * @module model/CreateRoleAuthMethodAssocOutput - * @version 3.3.16 + * The GatewayCreateProducerArtifactoryOutput model module. + * @module model/GatewayCreateProducerArtifactoryOutput + * @version 3.6.3 */ -var CreateRoleAuthMethodAssocOutput = /*#__PURE__*/function () { +var GatewayCreateProducerArtifactoryOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateRoleAuthMethodAssocOutput. - * CreateRoleAuthMethodAssocOutput defines output of CreateRoleAuthMethodAssoc operation. - * @alias module:model/CreateRoleAuthMethodAssocOutput + * Constructs a new GatewayCreateProducerArtifactoryOutput. + * @alias module:model/GatewayCreateProducerArtifactoryOutput */ - function CreateRoleAuthMethodAssocOutput() { - _classCallCheck(this, CreateRoleAuthMethodAssocOutput); + function GatewayCreateProducerArtifactoryOutput() { + _classCallCheck(this, GatewayCreateProducerArtifactoryOutput); - CreateRoleAuthMethodAssocOutput.initialize(this); + GatewayCreateProducerArtifactoryOutput.initialize(this); } /** * Initializes the fields of this object. @@ -38688,25 +113706,25 @@ var CreateRoleAuthMethodAssocOutput = /*#__PURE__*/function () { */ - _createClass(CreateRoleAuthMethodAssocOutput, null, [{ + _createClass(GatewayCreateProducerArtifactoryOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateRoleAuthMethodAssocOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRoleAuthMethodAssocOutput} obj Optional instance to populate. - * @return {module:model/CreateRoleAuthMethodAssocOutput} The populated CreateRoleAuthMethodAssocOutput instance. + * @param {module:model/GatewayCreateProducerArtifactoryOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerArtifactoryOutput} The populated GatewayCreateProducerArtifactoryOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateRoleAuthMethodAssocOutput(); + obj = obj || new GatewayCreateProducerArtifactoryOutput(); - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -38714,20 +113732,20 @@ var CreateRoleAuthMethodAssocOutput = /*#__PURE__*/function () { } }]); - return CreateRoleAuthMethodAssocOutput; + return GatewayCreateProducerArtifactoryOutput; }(); /** - * @member {String} assoc_id + * @member {module:model/DSProducerDetails} producer_details */ -CreateRoleAuthMethodAssocOutput.prototype['assoc_id'] = undefined; -var _default = CreateRoleAuthMethodAssocOutput; +GatewayCreateProducerArtifactoryOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerArtifactoryOutput; exports["default"] = _default; /***/ }), -/***/ 18755: +/***/ 73916: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -38738,7 +113756,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -38749,22 +113767,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateRotatedSecret model module. - * @module model/CreateRotatedSecret - * @version 3.3.16 + * The GatewayCreateProducerAws model module. + * @module model/GatewayCreateProducerAws + * @version 3.6.3 */ -var CreateRotatedSecret = /*#__PURE__*/function () { +var GatewayCreateProducerAws = /*#__PURE__*/function () { /** - * Constructs a new CreateRotatedSecret. - * @alias module:model/CreateRotatedSecret - * @param name {String} Secret name - * @param rotatorType {String} Rotator Type - * @param targetName {String} Target name + * Constructs a new GatewayCreateProducerAws. + * gatewayCreateProducerAws is a command that creates aws producer [Deprecated: Use dynamic-secret-create-aws command] + * @alias module:model/GatewayCreateProducerAws + * @param name {String} Dynamic secret name */ - function CreateRotatedSecret(name, rotatorType, targetName) { - _classCallCheck(this, CreateRotatedSecret); + function GatewayCreateProducerAws(name) { + _classCallCheck(this, GatewayCreateProducerAws); - CreateRotatedSecret.initialize(this, name, rotatorType, targetName); + GatewayCreateProducerAws.initialize(this, name); } /** * Initializes the fields of this object. @@ -38773,121 +113790,87 @@ var CreateRotatedSecret = /*#__PURE__*/function () { */ - _createClass(CreateRotatedSecret, null, [{ + _createClass(GatewayCreateProducerAws, null, [{ key: "initialize", - value: function initialize(obj, name, rotatorType, targetName) { + value: function initialize(obj, name) { obj['name'] = name; - obj['rotator-type'] = rotatorType; - obj['target-name'] = targetName; } /** - * Constructs a CreateRotatedSecret from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerAws from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRotatedSecret} obj Optional instance to populate. - * @return {module:model/CreateRotatedSecret} The populated CreateRotatedSecret instance. + * @param {module:model/GatewayCreateProducerAws} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAws} The populated GatewayCreateProducerAws instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateRotatedSecret(); - - if (data.hasOwnProperty('api-id')) { - obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); - } + obj = obj || new GatewayCreateProducerAws(); - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); } - if (data.hasOwnProperty('application-id')) { - obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); } - if (data.hasOwnProperty('authentication-credentials')) { - obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); } - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); } - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); } - if (data.hasOwnProperty('custom-payload')) { - obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('rotate-after-disconnect')) { - obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); - } - - if (data.hasOwnProperty('rotated-password')) { - obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); - } - - if (data.hasOwnProperty('rotated-username')) { - obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); - } - - if (data.hasOwnProperty('rotation-hour')) { - obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); - } - - if (data.hasOwnProperty('rotator-creds-type')) { - obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); - } - - if (data.hasOwnProperty('rotator-custom-cmd')) { - obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); - } - - if (data.hasOwnProperty('rotator-type')) { - obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('same-password')) { - obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); } if (data.hasOwnProperty('secure-access-aws-account-id')) { @@ -38902,30 +113885,10 @@ var CreateRotatedSecret = /*#__PURE__*/function () { obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('secure-access-db-name')) { - obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - if (data.hasOwnProperty('secure-access-enable')) { obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - if (data.hasOwnProperty('secure-access-web')) { obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } @@ -38938,18 +113901,6 @@ var CreateRotatedSecret = /*#__PURE__*/function () { obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - - if (data.hasOwnProperty('storage-account-key-name')) { - obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); - } - if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } @@ -38966,12 +113917,8 @@ var CreateRotatedSecret = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); - } - - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -38979,292 +113926,192 @@ var CreateRotatedSecret = /*#__PURE__*/function () { } }]); - return CreateRotatedSecret; + return GatewayCreateProducerAws; }(); /** - * API ID to rotate (relevant only for rotator-type=api-key) - * @member {String} api-id + * @member {String} access-mode */ -CreateRotatedSecret.prototype['api-id'] = undefined; +GatewayCreateProducerAws.prototype['access-mode'] = undefined; /** - * API key to rotate (relevant only for rotator-type=api-key) - * @member {String} api-key + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 */ -CreateRotatedSecret.prototype['api-key'] = undefined; +GatewayCreateProducerAws.prototype['admin-rotation-interval-days'] = 0; /** - * ApplicationId (used in azure) - * @member {String} application-id + * Access Key ID + * @member {String} aws-access-key-id */ -CreateRotatedSecret.prototype['application-id'] = undefined; +GatewayCreateProducerAws.prototype['aws-access-key-id'] = undefined; /** - * The credentials to connect with use-user-creds/use-target-creds - * @member {String} authentication-credentials - * @default 'use-user-creds' + * Secret Access Key + * @member {String} aws-access-secret-key */ -CreateRotatedSecret.prototype['authentication-credentials'] = 'use-user-creds'; +GatewayCreateProducerAws.prototype['aws-access-secret-key'] = undefined; /** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] - * @member {String} auto-rotate + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns */ -CreateRotatedSecret.prototype['auto-rotate'] = undefined; +GatewayCreateProducerAws.prototype['aws-role-arns'] = undefined; /** - * Region (used in aws) - * @member {String} aws-region - * @default 'us-east-2' + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false */ -CreateRotatedSecret.prototype['aws-region'] = 'us-east-2'; +GatewayCreateProducerAws.prototype['aws-user-console-access'] = false; /** - * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) - * @member {String} custom-payload + * AWS User groups + * @member {String} aws-user-groups */ -CreateRotatedSecret.prototype['custom-payload'] = undefined; +GatewayCreateProducerAws.prototype['aws-user-groups'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * AWS User policies + * @member {String} aws-user-policies */ -CreateRotatedSecret.prototype['delete_protection'] = undefined; +GatewayCreateProducerAws.prototype['aws-user-policies'] = undefined; /** - * Description of the object - * @member {String} description + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true */ -CreateRotatedSecret.prototype['description'] = undefined; +GatewayCreateProducerAws.prototype['aws-user-programmatic-access'] = true; /** - * Base64-encoded service account private key text - * @member {String} gcp-key + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateRotatedSecret.prototype['gcp-key'] = undefined; +GatewayCreateProducerAws.prototype['delete_protection'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation * @default false */ -CreateRotatedSecret.prototype['json'] = false; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateRotatedSecret.prototype['key'] = undefined; +GatewayCreateProducerAws.prototype['enable-admin-rotation'] = false; /** - * Deprecated - use description - * @member {String} metadata + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateRotatedSecret.prototype['metadata'] = undefined; +GatewayCreateProducerAws.prototype['json'] = false; /** - * Secret name + * Dynamic secret name * @member {String} name */ -CreateRotatedSecret.prototype['name'] = undefined; -/** - * Rotate the value of the secret after SRA session ends [true/false] - * @member {String} rotate-after-disconnect - * @default 'false' - */ - -CreateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; -/** - * rotated-username password (relevant only for rotator-type=password) - * @member {String} rotated-password - */ - -CreateRotatedSecret.prototype['rotated-password'] = undefined; -/** - * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) - * @member {String} rotated-username - */ - -CreateRotatedSecret.prototype['rotated-username'] = undefined; -/** - * The Hour of the rotation in UTC - * @member {Number} rotation-hour - */ - -CreateRotatedSecret.prototype['rotation-hour'] = undefined; -/** - * The number of days to wait between every automatic key rotation (1-365) - * @member {String} rotation-interval - */ - -CreateRotatedSecret.prototype['rotation-interval'] = undefined; -/** - * @member {String} rotator-creds-type - */ - -CreateRotatedSecret.prototype['rotator-creds-type'] = undefined; -/** - * Custom rotation command (relevant only for ssh target) - * @member {String} rotator-custom-cmd - */ - -CreateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; +GatewayCreateProducerAws.prototype['name'] = undefined; /** - * Rotator Type - * @member {String} rotator-type + * The length of the password to be generated + * @member {String} password-length */ -CreateRotatedSecret.prototype['rotator-type'] = undefined; +GatewayCreateProducerAws.prototype['password-length'] = undefined; /** - * Rotate same password for each host from the Linked Target (relevant only for Linked Target) - * @member {String} same-password + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateRotatedSecret.prototype['same-password'] = undefined; +GatewayCreateProducerAws.prototype['producer-encryption-key-name'] = undefined; /** - * Allow providing external user for a domain users (relevant only for rdp) - * @member {Boolean} secure-access-allow-external-user - * @default false + * Region + * @member {String} region + * @default 'us-east-2' */ -CreateRotatedSecret.prototype['secure-access-allow-external-user'] = false; +GatewayCreateProducerAws.prototype['region'] = 'us-east-2'; /** - * The AWS account id (relevant only for aws) + * The AWS account id * @member {String} secure-access-aws-account-id */ -CreateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; +GatewayCreateProducerAws.prototype['secure-access-aws-account-id'] = undefined; /** * The AWS native cli * @member {Boolean} secure-access-aws-native-cli */ -CreateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; +GatewayCreateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; /** * Path to the SSH Certificate Issuer for your Akeyless Bastion * @member {String} secure-access-bastion-issuer */ -CreateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB name (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-name - */ - -CreateRotatedSecret.prototype['secure-access-db-name'] = undefined; -/** - * The db schema (relevant only for mssql or postgresql) - * @member {String} secure-access-db-schema - */ - -CreateRotatedSecret.prototype['secure-access-db-schema'] = undefined; +GatewayCreateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; /** * Enable/Disable secure remote access [true/false] * @member {String} secure-access-enable */ -CreateRotatedSecret.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -CreateRotatedSecret.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) - * @member {String} secure-access-rdp-domain - */ - -CreateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username (relevant only for rdp) - * @member {String} secure-access-rdp-user - */ - -CreateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; +GatewayCreateProducerAws.prototype['secure-access-enable'] = undefined; /** * Enable Web Secure Remote Access * @member {Boolean} secure-access-web - * @default false + * @default true */ -CreateRotatedSecret.prototype['secure-access-web'] = false; +GatewayCreateProducerAws.prototype['secure-access-web'] = true; /** - * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) + * Secure browser via Akeyless Web Access Bastion * @member {Boolean} secure-access-web-browsing * @default false */ -CreateRotatedSecret.prototype['secure-access-web-browsing'] = false; +GatewayCreateProducerAws.prototype['secure-access-web-browsing'] = false; /** - * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) + * Web-Proxy via Akeyless Web Access Bastion * @member {Boolean} secure-access-web-proxy * @default false */ -CreateRotatedSecret.prototype['secure-access-web-proxy'] = false; -/** - * Deprecated: use RotatedPassword - * @member {String} ssh-password - */ - -CreateRotatedSecret.prototype['ssh-password'] = undefined; -/** - * Deprecated: use RotatedUser - * @member {String} ssh-username - */ - -CreateRotatedSecret.prototype['ssh-username'] = undefined; -/** - * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) - * @member {String} storage-account-key-name - */ - -CreateRotatedSecret.prototype['storage-account-key-name'] = undefined; +GatewayCreateProducerAws.prototype['secure-access-web-proxy'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -CreateRotatedSecret.prototype['tags'] = undefined; +GatewayCreateProducerAws.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -CreateRotatedSecret.prototype['target-name'] = undefined; +GatewayCreateProducerAws.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateRotatedSecret.prototype['token'] = undefined; +GatewayCreateProducerAws.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateRotatedSecret.prototype['uid-token'] = undefined; -/** - * LDAP User Attribute, Default value \"cn\" - * @member {String} user-attribute - */ - -CreateRotatedSecret.prototype['user-attribute'] = undefined; +GatewayCreateProducerAws.prototype['uid-token'] = undefined; /** - * LDAP User Base DN - * @member {String} user-dn + * User TTL + * @member {String} user-ttl + * @default '60m' */ -CreateRotatedSecret.prototype['user-dn'] = undefined; -var _default = CreateRotatedSecret; +GatewayCreateProducerAws.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerAws; exports["default"] = _default; /***/ }), -/***/ 52446: +/***/ 8093: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -39275,7 +114122,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -39286,19 +114135,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateRotatedSecretOutput model module. - * @module model/CreateRotatedSecretOutput - * @version 3.3.16 + * The GatewayCreateProducerAwsOutput model module. + * @module model/GatewayCreateProducerAwsOutput + * @version 3.6.3 */ -var CreateRotatedSecretOutput = /*#__PURE__*/function () { +var GatewayCreateProducerAwsOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateRotatedSecretOutput. - * @alias module:model/CreateRotatedSecretOutput + * Constructs a new GatewayCreateProducerAwsOutput. + * @alias module:model/GatewayCreateProducerAwsOutput */ - function CreateRotatedSecretOutput() { - _classCallCheck(this, CreateRotatedSecretOutput); + function GatewayCreateProducerAwsOutput() { + _classCallCheck(this, GatewayCreateProducerAwsOutput); - CreateRotatedSecretOutput.initialize(this); + GatewayCreateProducerAwsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -39307,25 +114156,25 @@ var CreateRotatedSecretOutput = /*#__PURE__*/function () { */ - _createClass(CreateRotatedSecretOutput, null, [{ + _createClass(GatewayCreateProducerAwsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRotatedSecretOutput} obj Optional instance to populate. - * @return {module:model/CreateRotatedSecretOutput} The populated CreateRotatedSecretOutput instance. + * @param {module:model/GatewayCreateProducerAwsOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAwsOutput} The populated GatewayCreateProducerAwsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateRotatedSecretOutput(); + obj = obj || new GatewayCreateProducerAwsOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -39333,20 +114182,20 @@ var CreateRotatedSecretOutput = /*#__PURE__*/function () { } }]); - return CreateRotatedSecretOutput; + return GatewayCreateProducerAwsOutput; }(); /** - * @member {String} name + * @member {module:model/DSProducerDetails} producer_details */ -CreateRotatedSecretOutput.prototype['name'] = undefined; -var _default = CreateRotatedSecretOutput; +GatewayCreateProducerAwsOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerAwsOutput; exports["default"] = _default; /***/ }), -/***/ 85975: +/***/ 16178: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -39357,7 +114206,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -39368,23 +114217,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateSSHCertIssuer model module. - * @module model/CreateSSHCertIssuer - * @version 3.3.16 + * The GatewayCreateProducerAzure model module. + * @module model/GatewayCreateProducerAzure + * @version 3.6.3 */ -var CreateSSHCertIssuer = /*#__PURE__*/function () { +var GatewayCreateProducerAzure = /*#__PURE__*/function () { /** - * Constructs a new CreateSSHCertIssuer. - * @alias module:model/CreateSSHCertIssuer - * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu - * @param name {String} SSH certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with - * @param ttl {Number} The requested Time To Live for the certificate, in seconds + * Constructs a new GatewayCreateProducerAzure. + * gatewayCreateProducerAzure is a command that creates azure dynamic secret [Deprecated: Use dynamic-secret-create-azure command] + * @alias module:model/GatewayCreateProducerAzure + * @param name {String} Dynamic secret name */ - function CreateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { - _classCallCheck(this, CreateSSHCertIssuer); + function GatewayCreateProducerAzure(name) { + _classCallCheck(this, GatewayCreateProducerAzure); - CreateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); + GatewayCreateProducerAzure.initialize(this, name); } /** * Initializes the fields of this object. @@ -39393,235 +114240,298 @@ var CreateSSHCertIssuer = /*#__PURE__*/function () { */ - _createClass(CreateSSHCertIssuer, null, [{ + _createClass(GatewayCreateProducerAzure, null, [{ key: "initialize", - value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { - obj['allowed-users'] = allowedUsers; + value: function initialize(obj, name) { obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; } /** - * Constructs a CreateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerAzure from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHCertIssuer} obj Optional instance to populate. - * @return {module:model/CreateSSHCertIssuer} The populated CreateSSHCertIssuer instance. + * @param {module:model/GatewayCreateProducerAzure} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAzure} The populated GatewayCreateProducerAzure instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateSSHCertIssuer(); + obj = obj || new GatewayCreateProducerAzure(); - if (data.hasOwnProperty('allowed-users')) { - obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); } - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { - 'String': 'String' - }); + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('principals')) { - obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-api')) { - obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('secure-access-bastion-ssh')) { - obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } if (data.hasOwnProperty('secure-access-enable')) { obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('secure-access-ssh-creds-user')) { - obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (data.hasOwnProperty('secure-access-use-internal-bastion')) { - obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } + + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } + + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateSSHCertIssuer; + return GatewayCreateProducerAzure; }(); /** - * Users allowed to fetch the certificate, e.g root,ubuntu - * @member {String} allowed-users + * Azure App Object Id + * @member {String} app-obj-id */ -CreateSSHCertIssuer.prototype['allowed-users'] = undefined; +GatewayCreateProducerAzure.prototype['app-obj-id'] = undefined; +/** + * Azure Client ID + * @member {String} azure-client-id + */ + +GatewayCreateProducerAzure.prototype['azure-client-id'] = undefined; +/** + * Azure Client Secret + * @member {String} azure-client-secret + */ + +GatewayCreateProducerAzure.prototype['azure-client-secret'] = undefined; +/** + * Azure Tenant ID + * @member {String} azure-tenant-id + */ + +GatewayCreateProducerAzure.prototype['azure-tenant-id'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ -CreateSSHCertIssuer.prototype['delete_protection'] = undefined; +GatewayCreateProducerAzure.prototype['delete_protection'] = undefined; /** - * Description of the object - * @member {String} description + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' */ -CreateSSHCertIssuer.prototype['description'] = undefined; +GatewayCreateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; /** - * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" - * @member {Object.} extensions + * Fixed user + * @member {Boolean} fixed-user-only + * @default false */ -CreateSSHCertIssuer.prototype['extensions'] = undefined; +GatewayCreateProducerAzure.prototype['fixed-user-only'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateSSHCertIssuer.prototype['json'] = false; +GatewayCreateProducerAzure.prototype['json'] = false; /** - * Deprecated - use description - * @member {String} metadata + * Dynamic secret name + * @member {String} name */ -CreateSSHCertIssuer.prototype['metadata'] = undefined; +GatewayCreateProducerAzure.prototype['name'] = undefined; /** - * SSH certificate issuer name - * @member {String} name + * The length of the password to be generated + * @member {String} password-length */ -CreateSSHCertIssuer.prototype['name'] = undefined; +GatewayCreateProducerAzure.prototype['password-length'] = undefined; /** - * Signed certificates with principal, e.g example_role1,example_role2 - * @member {String} principals + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name */ -CreateSSHCertIssuer.prototype['principals'] = undefined; +GatewayCreateProducerAzure.prototype['producer-encryption-key-name'] = undefined; /** - * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 - * @member {String} secure-access-bastion-api + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -CreateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; +GatewayCreateProducerAzure.prototype['secure-access-enable'] = undefined; /** - * Bastion's SSH server. E.g. my.bastion:22 - * @member {String} secure-access-bastion-ssh + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true */ -CreateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; +GatewayCreateProducerAzure.prototype['secure-access-web'] = true; /** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false */ -CreateSSHCertIssuer.prototype['secure-access-enable'] = undefined; +GatewayCreateProducerAzure.prototype['secure-access-web-browsing'] = false; /** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false */ -CreateSSHCertIssuer.prototype['secure-access-host'] = undefined; +GatewayCreateProducerAzure.prototype['secure-access-web-proxy'] = false; /** - * SSH username to connect to target server, must be in 'Allowed Users' list - * @member {String} secure-access-ssh-creds-user + * Add tags attached to this object + * @member {Array.} tags */ -CreateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; +GatewayCreateProducerAzure.prototype['tags'] = undefined; /** - * Use internal SSH Bastion - * @member {Boolean} secure-access-use-internal-bastion + * Target name + * @member {String} target-name */ -CreateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; +GatewayCreateProducerAzure.prototype['target-name'] = undefined; /** - * A key to sign the certificate with - * @member {String} signer-key-name + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -CreateSSHCertIssuer.prototype['signer-key-name'] = undefined; +GatewayCreateProducerAzure.prototype['token'] = undefined; /** - * List of the tags attached to this key - * @member {Array.} tag + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -CreateSSHCertIssuer.prototype['tag'] = undefined; +GatewayCreateProducerAzure.prototype['uid-token'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * User Group Object Id + * @member {String} user-group-obj-id */ -CreateSSHCertIssuer.prototype['token'] = undefined; +GatewayCreateProducerAzure.prototype['user-group-obj-id'] = undefined; /** - * The requested Time To Live for the certificate, in seconds - * @member {Number} ttl + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false */ -CreateSSHCertIssuer.prototype['ttl'] = undefined; +GatewayCreateProducerAzure.prototype['user-portal-access'] = false; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * User Principal Name + * @member {String} user-principal-name */ -CreateSSHCertIssuer.prototype['uid-token'] = undefined; -var _default = CreateSSHCertIssuer; +GatewayCreateProducerAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ + +GatewayCreateProducerAzure.prototype['user-programmatic-access'] = false; +/** + * User Role Template Id + * @member {String} user-role-template-id + */ + +GatewayCreateProducerAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerAzure.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerAzure; exports["default"] = _default; /***/ }), -/***/ 60309: +/***/ 64311: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -39632,7 +114542,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -39643,19 +114555,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateSSHCertIssuerOutput model module. - * @module model/CreateSSHCertIssuerOutput - * @version 3.3.16 + * The GatewayCreateProducerAzureOutput model module. + * @module model/GatewayCreateProducerAzureOutput + * @version 3.6.3 */ -var CreateSSHCertIssuerOutput = /*#__PURE__*/function () { +var GatewayCreateProducerAzureOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateSSHCertIssuerOutput. - * @alias module:model/CreateSSHCertIssuerOutput + * Constructs a new GatewayCreateProducerAzureOutput. + * @alias module:model/GatewayCreateProducerAzureOutput */ - function CreateSSHCertIssuerOutput() { - _classCallCheck(this, CreateSSHCertIssuerOutput); + function GatewayCreateProducerAzureOutput() { + _classCallCheck(this, GatewayCreateProducerAzureOutput); - CreateSSHCertIssuerOutput.initialize(this); + GatewayCreateProducerAzureOutput.initialize(this); } /** * Initializes the fields of this object. @@ -39664,25 +114576,25 @@ var CreateSSHCertIssuerOutput = /*#__PURE__*/function () { */ - _createClass(CreateSSHCertIssuerOutput, null, [{ + _createClass(GatewayCreateProducerAzureOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHCertIssuerOutput} obj Optional instance to populate. - * @return {module:model/CreateSSHCertIssuerOutput} The populated CreateSSHCertIssuerOutput instance. + * @param {module:model/GatewayCreateProducerAzureOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAzureOutput} The populated GatewayCreateProducerAzureOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateSSHCertIssuerOutput(); + obj = obj || new GatewayCreateProducerAzureOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -39690,20 +114602,20 @@ var CreateSSHCertIssuerOutput = /*#__PURE__*/function () { } }]); - return CreateSSHCertIssuerOutput; + return GatewayCreateProducerAzureOutput; }(); /** - * @member {String} name + * @member {module:model/DSProducerDetails} producer_details */ -CreateSSHCertIssuerOutput.prototype['name'] = undefined; -var _default = CreateSSHCertIssuerOutput; +GatewayCreateProducerAzureOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerAzureOutput; exports["default"] = _default; /***/ }), -/***/ 48281: +/***/ 87855: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -39714,7 +114626,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -39725,20 +114637,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateSSHTarget model module. - * @module model/CreateSSHTarget - * @version 3.3.16 + * The GatewayCreateProducerCassandra model module. + * @module model/GatewayCreateProducerCassandra + * @version 3.6.3 */ -var CreateSSHTarget = /*#__PURE__*/function () { +var GatewayCreateProducerCassandra = /*#__PURE__*/function () { /** - * Constructs a new CreateSSHTarget. - * @alias module:model/CreateSSHTarget - * @param name {String} Target name + * Constructs a new GatewayCreateProducerCassandra. + * gatewayCreateProducerCassandra is a command that creates a Cassandra producer [Deprecated: Use dynamic-secret-create-cassandra command] + * @alias module:model/GatewayCreateProducerCassandra + * @param name {String} Dynamic secret name */ - function CreateSSHTarget(name) { - _classCallCheck(this, CreateSSHTarget); + function GatewayCreateProducerCassandra(name) { + _classCallCheck(this, GatewayCreateProducerCassandra); - CreateSSHTarget.initialize(this, name); + GatewayCreateProducerCassandra.initialize(this, name); } /** * Initializes the fields of this object. @@ -39747,67 +114660,79 @@ var CreateSSHTarget = /*#__PURE__*/function () { */ - _createClass(CreateSSHTarget, null, [{ + _createClass(GatewayCreateProducerCassandra, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateSSHTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerCassandra from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHTarget} obj Optional instance to populate. - * @return {module:model/CreateSSHTarget} The populated CreateSSHTarget instance. + * @param {module:model/GatewayCreateProducerCassandra} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCassandra} The populated GatewayCreateProducerCassandra instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateSSHTarget(); + obj = obj || new GatewayCreateProducerCassandra(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); } - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('private-key-password')) { - obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); } - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -39817,101 +114742,131 @@ var CreateSSHTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateSSHTarget; + return GatewayCreateProducerCassandra; }(); /** - * Deprecated - use description - * @member {String} comment + * Cassandra creation statements + * @member {String} cassandra-creation-statements */ -CreateSSHTarget.prototype['comment'] = undefined; +GatewayCreateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; /** - * Description of the object - * @member {String} description + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts */ -CreateSSHTarget.prototype['description'] = undefined; +GatewayCreateProducerCassandra.prototype['cassandra-hosts'] = undefined; /** - * SSH host name - * @member {String} host + * Cassandra superuser password + * @member {String} cassandra-password */ -CreateSSHTarget.prototype['host'] = undefined; +GatewayCreateProducerCassandra.prototype['cassandra-password'] = undefined; +/** + * Cassandra port + * @member {String} cassandra-port + * @default '9042' + */ + +GatewayCreateProducerCassandra.prototype['cassandra-port'] = '9042'; +/** + * Cassandra superuser username + * @member {String} cassandra-username + */ + +GatewayCreateProducerCassandra.prototype['cassandra-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerCassandra.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateSSHTarget.prototype['json'] = false; +GatewayCreateProducerCassandra.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Dynamic secret name + * @member {String} name */ -CreateSSHTarget.prototype['key'] = undefined; +GatewayCreateProducerCassandra.prototype['name'] = undefined; /** - * Target name - * @member {String} name + * The length of the password to be generated + * @member {String} password-length */ -CreateSSHTarget.prototype['name'] = undefined; +GatewayCreateProducerCassandra.prototype['password-length'] = undefined; /** - * SSH port - * @member {String} port - * @default '22' + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateSSHTarget.prototype['port'] = '22'; +GatewayCreateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; /** - * SSH private key - * @member {String} private-key + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false */ -CreateSSHTarget.prototype['private-key'] = undefined; +GatewayCreateProducerCassandra.prototype['ssl'] = false; /** - * SSH private key password - * @member {String} private-key-password + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate */ -CreateSSHTarget.prototype['private-key-password'] = undefined; +GatewayCreateProducerCassandra.prototype['ssl-certificate'] = undefined; /** - * SSH password to rotate - * @member {String} ssh-password + * Add tags attached to this object + * @member {Array.} tags */ -CreateSSHTarget.prototype['ssh-password'] = undefined; +GatewayCreateProducerCassandra.prototype['tags'] = undefined; /** - * SSH username - * @member {String} ssh-username + * Target name + * @member {String} target-name */ -CreateSSHTarget.prototype['ssh-username'] = undefined; +GatewayCreateProducerCassandra.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateSSHTarget.prototype['token'] = undefined; +GatewayCreateProducerCassandra.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateSSHTarget.prototype['uid-token'] = undefined; -var _default = CreateSSHTarget; +GatewayCreateProducerCassandra.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerCassandra.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerCassandra; exports["default"] = _default; /***/ }), -/***/ 9128: +/***/ 10166: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -39922,7 +114877,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -39933,19 +114890,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateSSHTargetOutput model module. - * @module model/CreateSSHTargetOutput - * @version 3.3.16 + * The GatewayCreateProducerCassandraOutput model module. + * @module model/GatewayCreateProducerCassandraOutput + * @version 3.6.3 */ -var CreateSSHTargetOutput = /*#__PURE__*/function () { +var GatewayCreateProducerCassandraOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateSSHTargetOutput. - * @alias module:model/CreateSSHTargetOutput + * Constructs a new GatewayCreateProducerCassandraOutput. + * @alias module:model/GatewayCreateProducerCassandraOutput */ - function CreateSSHTargetOutput() { - _classCallCheck(this, CreateSSHTargetOutput); + function GatewayCreateProducerCassandraOutput() { + _classCallCheck(this, GatewayCreateProducerCassandraOutput); - CreateSSHTargetOutput.initialize(this); + GatewayCreateProducerCassandraOutput.initialize(this); } /** * Initializes the fields of this object. @@ -39954,25 +114911,25 @@ var CreateSSHTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateSSHTargetOutput, null, [{ + _createClass(GatewayCreateProducerCassandraOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateSSHTargetOutput} The populated CreateSSHTargetOutput instance. + * @param {module:model/GatewayCreateProducerCassandraOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCassandraOutput} The populated GatewayCreateProducerCassandraOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateSSHTargetOutput(); + obj = obj || new GatewayCreateProducerCassandraOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -39980,20 +114937,20 @@ var CreateSSHTargetOutput = /*#__PURE__*/function () { } }]); - return CreateSSHTargetOutput; + return GatewayCreateProducerCassandraOutput; }(); /** - * @member {Number} target_id + * @member {module:model/DSProducerDetails} producer_details */ -CreateSSHTargetOutput.prototype['target_id'] = undefined; -var _default = CreateSSHTargetOutput; +GatewayCreateProducerCassandraOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerCassandraOutput; exports["default"] = _default; /***/ }), -/***/ 35282: +/***/ 12085: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -40004,7 +114961,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -40015,24 +114972,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateSalesforceTarget model module. - * @module model/CreateSalesforceTarget - * @version 3.3.16 + * The GatewayCreateProducerChef model module. + * @module model/GatewayCreateProducerChef + * @version 3.6.3 */ -var CreateSalesforceTarget = /*#__PURE__*/function () { +var GatewayCreateProducerChef = /*#__PURE__*/function () { /** - * Constructs a new CreateSalesforceTarget. - * @alias module:model/CreateSalesforceTarget - * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') - * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce - * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce - * @param name {String} Target name - * @param tenantUrl {String} Url of the Salesforce tenant + * Constructs a new GatewayCreateProducerChef. + * gatewayCreateProducerChef is a command that creates chef producer [Deprecated: Use dynamic-secret-create-chef command] + * @alias module:model/GatewayCreateProducerChef + * @param name {String} Dynamic secret name */ - function CreateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { - _classCallCheck(this, CreateSalesforceTarget); + function GatewayCreateProducerChef(name) { + _classCallCheck(this, GatewayCreateProducerChef); - CreateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); + GatewayCreateProducerChef.initialize(this, name); } /** * Initializes the fields of this object. @@ -40041,87 +114995,71 @@ var CreateSalesforceTarget = /*#__PURE__*/function () { */ - _createClass(CreateSalesforceTarget, null, [{ + _createClass(GatewayCreateProducerChef, null, [{ key: "initialize", - value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { - obj['auth-flow'] = authFlow; - obj['client-id'] = clientId; - obj['email'] = email; + value: function initialize(obj, name) { obj['name'] = name; - obj['tenant-url'] = tenantUrl; } /** - * Constructs a CreateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSalesforceTarget} obj Optional instance to populate. - * @return {module:model/CreateSalesforceTarget} The populated CreateSalesforceTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSalesforceTarget(); - - if (data.hasOwnProperty('app-private-key-data')) { - obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); - } - - if (data.hasOwnProperty('auth-flow')) { - obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); - } - - if (data.hasOwnProperty('ca-cert-data')) { - obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); - } + * Constructs a GatewayCreateProducerChef from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerChef} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerChef} The populated GatewayCreateProducerChef instance. + */ - if (data.hasOwnProperty('ca-cert-name')) { - obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerChef(); - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); } - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); } - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('security-token')) { - obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('tenant-url')) { - obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -40131,124 +115069,118 @@ var CreateSalesforceTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateSalesforceTarget; + return GatewayCreateProducerChef; }(); /** - * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) - * @member {String} app-private-key-data + * Organizations + * @member {String} chef-orgs */ -CreateSalesforceTarget.prototype['app-private-key-data'] = undefined; +GatewayCreateProducerChef.prototype['chef-orgs'] = undefined; /** - * type of the auth flow ('jwt' / 'user-password') - * @member {String} auth-flow + * Server key + * @member {String} chef-server-key */ -CreateSalesforceTarget.prototype['auth-flow'] = undefined; +GatewayCreateProducerChef.prototype['chef-server-key'] = undefined; /** - * Base64 encoded PEM cert to use when uploading a new key to Salesforce - * @member {String} ca-cert-data + * Server URL + * @member {String} chef-server-url */ -CreateSalesforceTarget.prototype['ca-cert-data'] = undefined; +GatewayCreateProducerChef.prototype['chef-server-url'] = undefined; /** - * name of the certificate in Salesforce tenant to use when uploading new key - * @member {String} ca-cert-name + * Server username + * @member {String} chef-server-username */ -CreateSalesforceTarget.prototype['ca-cert-name'] = undefined; +GatewayCreateProducerChef.prototype['chef-server-username'] = undefined; /** - * Client ID of the oauth2 app to use for connecting to Salesforce - * @member {String} client-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateSalesforceTarget.prototype['client-id'] = undefined; +GatewayCreateProducerChef.prototype['delete_protection'] = undefined; /** - * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) - * @member {String} client-secret + * Set output format to JSON + * @member {Boolean} json + * @default false */ -CreateSalesforceTarget.prototype['client-secret'] = undefined; +GatewayCreateProducerChef.prototype['json'] = false; /** - * Deprecated - use description - * @member {String} comment + * Dynamic secret name + * @member {String} name */ -CreateSalesforceTarget.prototype['comment'] = undefined; +GatewayCreateProducerChef.prototype['name'] = undefined; /** - * Description of the object - * @member {String} description + * The length of the password to be generated + * @member {String} password-length */ -CreateSalesforceTarget.prototype['description'] = undefined; +GatewayCreateProducerChef.prototype['password-length'] = undefined; /** - * The email of the user attached to the oauth2 app used for connecting to Salesforce - * @member {String} email + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateSalesforceTarget.prototype['email'] = undefined; +GatewayCreateProducerChef.prototype['producer-encryption-key-name'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Skip SSL + * @member {Boolean} skip-ssl + * @default true */ -CreateSalesforceTarget.prototype['json'] = false; +GatewayCreateProducerChef.prototype['skip-ssl'] = true; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Add tags attached to this object + * @member {Array.} tags */ -CreateSalesforceTarget.prototype['key'] = undefined; +GatewayCreateProducerChef.prototype['tags'] = undefined; /** * Target name - * @member {String} name - */ - -CreateSalesforceTarget.prototype['name'] = undefined; -/** - * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) - * @member {String} password - */ - -CreateSalesforceTarget.prototype['password'] = undefined; -/** - * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) - * @member {String} security-token - */ - -CreateSalesforceTarget.prototype['security-token'] = undefined; -/** - * Url of the Salesforce tenant - * @member {String} tenant-url + * @member {String} target-name */ -CreateSalesforceTarget.prototype['tenant-url'] = undefined; +GatewayCreateProducerChef.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateSalesforceTarget.prototype['token'] = undefined; +GatewayCreateProducerChef.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateSalesforceTarget.prototype['uid-token'] = undefined; -var _default = CreateSalesforceTarget; +GatewayCreateProducerChef.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerChef.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerChef; exports["default"] = _default; /***/ }), -/***/ 9796: +/***/ 800: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -40259,7 +115191,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -40270,19 +115204,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateSalesforceTargetOutput model module. - * @module model/CreateSalesforceTargetOutput - * @version 3.3.16 + * The GatewayCreateProducerChefOutput model module. + * @module model/GatewayCreateProducerChefOutput + * @version 3.6.3 */ -var CreateSalesforceTargetOutput = /*#__PURE__*/function () { +var GatewayCreateProducerChefOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateSalesforceTargetOutput. - * @alias module:model/CreateSalesforceTargetOutput + * Constructs a new GatewayCreateProducerChefOutput. + * @alias module:model/GatewayCreateProducerChefOutput */ - function CreateSalesforceTargetOutput() { - _classCallCheck(this, CreateSalesforceTargetOutput); + function GatewayCreateProducerChefOutput() { + _classCallCheck(this, GatewayCreateProducerChefOutput); - CreateSalesforceTargetOutput.initialize(this); + GatewayCreateProducerChefOutput.initialize(this); } /** * Initializes the fields of this object. @@ -40291,25 +115225,25 @@ var CreateSalesforceTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateSalesforceTargetOutput, null, [{ + _createClass(GatewayCreateProducerChefOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSalesforceTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateSalesforceTargetOutput} The populated CreateSalesforceTargetOutput instance. + * @param {module:model/GatewayCreateProducerChefOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerChefOutput} The populated GatewayCreateProducerChefOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateSalesforceTargetOutput(); + obj = obj || new GatewayCreateProducerChefOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -40317,20 +115251,20 @@ var CreateSalesforceTargetOutput = /*#__PURE__*/function () { } }]); - return CreateSalesforceTargetOutput; + return GatewayCreateProducerChefOutput; }(); /** - * @member {Number} target_id + * @member {module:model/DSProducerDetails} producer_details */ -CreateSalesforceTargetOutput.prototype['target_id'] = undefined; -var _default = CreateSalesforceTargetOutput; +GatewayCreateProducerChefOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerChefOutput; exports["default"] = _default; /***/ }), -/***/ 34625: +/***/ 64366: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -40341,7 +115275,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -40352,21 +115286,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateSecret model module. - * @module model/CreateSecret - * @version 3.3.16 + * The GatewayCreateProducerCustom model module. + * @module model/GatewayCreateProducerCustom + * @version 3.6.3 */ -var CreateSecret = /*#__PURE__*/function () { +var GatewayCreateProducerCustom = /*#__PURE__*/function () { /** - * Constructs a new CreateSecret. - * @alias module:model/CreateSecret - * @param name {String} Secret name - * @param value {String} The secret value (only relevant for type 'generic') + * Constructs a new GatewayCreateProducerCustom. + * gatewayCreateProducerCustom is a command that creates a custom producer. [Deprecated: Use dynamic-secret-create-custom command] + * @alias module:model/GatewayCreateProducerCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke */ - function CreateSecret(name, value) { - _classCallCheck(this, CreateSecret); + function GatewayCreateProducerCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, GatewayCreateProducerCustom); - CreateSecret.initialize(this, name, value); + GatewayCreateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); } /** * Initializes the fields of this object. @@ -40375,130 +115311,85 @@ var CreateSecret = /*#__PURE__*/function () { */ - _createClass(CreateSecret, null, [{ + _createClass(GatewayCreateProducerCustom, null, [{ key: "initialize", - value: function initialize(obj, name, value) { + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; obj['name'] = name; - obj['value'] = value; + obj['revoke-sync-url'] = revokeSyncUrl; } /** - * Constructs a CreateSecret from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerCustom from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSecret} obj Optional instance to populate. - * @return {module:model/CreateSecret} The populated CreateSecret instance. + * @param {module:model/GatewayCreateProducerCustom} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCustom} The populated GatewayCreateProducerCustom instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateSecret(); + obj = obj || new GatewayCreateProducerCustom(); - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); } - if (data.hasOwnProperty('custom-field')) { - obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { - 'String': 'String' - }); + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('inject-url')) { - obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('multiline_value')) { - obj['multiline_value'] = _ApiClient["default"].convertToType(data['multiline_value'], 'Boolean'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-ssh-creds')) { - obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); - } - - if (data.hasOwnProperty('secure-access-ssh-user')) { - obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); } - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); } - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); } if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -40506,176 +115397,109 @@ var CreateSecret = /*#__PURE__*/function () { } }]); - return CreateSecret; + return GatewayCreateProducerCustom; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days */ -CreateSecret.prototype['accessibility'] = 'regular'; +GatewayCreateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; /** - * For Password Management use, additional fields - * @member {Object.} custom-field + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url */ -CreateSecret.prototype['custom-field'] = undefined; +GatewayCreateProducerCustom.prototype['create-sync-url'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ -CreateSecret.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateSecret.prototype['description'] = undefined; +GatewayCreateProducerCustom.prototype['delete_protection'] = undefined; /** - * For Password Management use, reflect the website context - * @member {Array.} inject-url + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false */ -CreateSecret.prototype['inject-url'] = undefined; +GatewayCreateProducerCustom.prototype['enable_admin_rotation'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateSecret.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateSecret.prototype['metadata'] = undefined; -/** - * The provided value is a multiline value (separated by '\\n') - * @member {Boolean} multiline_value - */ - -CreateSecret.prototype['multiline_value'] = undefined; +GatewayCreateProducerCustom.prototype['json'] = false; /** - * Secret name + * Dynamic secret name * @member {String} name */ -CreateSecret.prototype['name'] = undefined; -/** - * For Password Management use, additional fields - * @member {String} password - */ - -CreateSecret.prototype['password'] = undefined; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -CreateSecret.prototype['protection_key'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -CreateSecret.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -CreateSecret.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -CreateSecret.prototype['secure-access-host'] = undefined; -/** - * Remote Desktop Username - * @member {String} secure-access-rdp-user - */ - -CreateSecret.prototype['secure-access-rdp-user'] = undefined; -/** - * Static-Secret values contains SSH Credentials, either Private Key or Password [password/private-key] - * @member {String} secure-access-ssh-creds - */ - -CreateSecret.prototype['secure-access-ssh-creds'] = undefined; +GatewayCreateProducerCustom.prototype['name'] = undefined; /** - * Override the SSH username as indicated in SSH Certificate Issuer - * @member {String} secure-access-ssh-user + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload */ -CreateSecret.prototype['secure-access-ssh-user'] = undefined; +GatewayCreateProducerCustom.prototype['payload'] = undefined; /** - * Destination URL to inject secrets - * @member {String} secure-access-url + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateSecret.prototype['secure-access-url'] = undefined; +GatewayCreateProducerCustom.prototype['producer-encryption-key-name'] = undefined; /** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url */ -CreateSecret.prototype['secure-access-web-browsing'] = false; +GatewayCreateProducerCustom.prototype['revoke-sync-url'] = undefined; /** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url */ -CreateSecret.prototype['secure-access-web-proxy'] = false; +GatewayCreateProducerCustom.prototype['rotate-sync-url'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -CreateSecret.prototype['tags'] = undefined; +GatewayCreateProducerCustom.prototype['tags'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 */ -CreateSecret.prototype['token'] = undefined; +GatewayCreateProducerCustom.prototype['timeout-sec'] = 60; /** - * The secret sub type [generic/password] - * @member {String} type - * @default 'generic' + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -CreateSecret.prototype['type'] = 'generic'; +GatewayCreateProducerCustom.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateSecret.prototype['uid-token'] = undefined; -/** - * For Password Management use - * @member {String} username - */ - -CreateSecret.prototype['username'] = undefined; +GatewayCreateProducerCustom.prototype['uid-token'] = undefined; /** - * The secret value (only relevant for type 'generic') - * @member {String} value + * User TTL + * @member {String} user-ttl + * @default '60m' */ -CreateSecret.prototype['value'] = undefined; -var _default = CreateSecret; +GatewayCreateProducerCustom.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerCustom; exports["default"] = _default; /***/ }), -/***/ 73489: +/***/ 35003: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -40686,89 +115510,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSecretOutput model module. - * @module model/CreateSecretOutput - * @version 3.3.16 - */ -var CreateSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateSecretOutput. - * @alias module:model/CreateSecretOutput - */ - function CreateSecretOutput() { - _classCallCheck(this, CreateSecretOutput); - - CreateSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSecretOutput} obj Optional instance to populate. - * @return {module:model/CreateSecretOutput} The populated CreateSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateSecretOutput; -}(); -/** - * @member {String} name - */ - - -CreateSecretOutput.prototype['name'] = undefined; -var _default = CreateSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 1554: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -40779,20 +115523,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateTargetItemAssocOutput model module. - * @module model/CreateTargetItemAssocOutput - * @version 3.3.16 + * The GatewayCreateProducerCustomOutput model module. + * @module model/GatewayCreateProducerCustomOutput + * @version 3.6.3 */ -var CreateTargetItemAssocOutput = /*#__PURE__*/function () { +var GatewayCreateProducerCustomOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateTargetItemAssocOutput. - * CreateTargetItemAssocOutput defines output of CreateTargetItemAssoc operation. - * @alias module:model/CreateTargetItemAssocOutput + * Constructs a new GatewayCreateProducerCustomOutput. + * @alias module:model/GatewayCreateProducerCustomOutput */ - function CreateTargetItemAssocOutput() { - _classCallCheck(this, CreateTargetItemAssocOutput); + function GatewayCreateProducerCustomOutput() { + _classCallCheck(this, GatewayCreateProducerCustomOutput); - CreateTargetItemAssocOutput.initialize(this); + GatewayCreateProducerCustomOutput.initialize(this); } /** * Initializes the fields of this object. @@ -40801,25 +115544,25 @@ var CreateTargetItemAssocOutput = /*#__PURE__*/function () { */ - _createClass(CreateTargetItemAssocOutput, null, [{ + _createClass(GatewayCreateProducerCustomOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateTargetItemAssocOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateTargetItemAssocOutput} obj Optional instance to populate. - * @return {module:model/CreateTargetItemAssocOutput} The populated CreateTargetItemAssocOutput instance. + * @param {module:model/GatewayCreateProducerCustomOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCustomOutput} The populated GatewayCreateProducerCustomOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateTargetItemAssocOutput(); + obj = obj || new GatewayCreateProducerCustomOutput(); - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -40827,20 +115570,20 @@ var CreateTargetItemAssocOutput = /*#__PURE__*/function () { } }]); - return CreateTargetItemAssocOutput; + return GatewayCreateProducerCustomOutput; }(); /** - * @member {String} assoc_id + * @member {module:model/DSProducerDetails} producer_details */ -CreateTargetItemAssocOutput.prototype['assoc_id'] = undefined; -var _default = CreateTargetItemAssocOutput; +GatewayCreateProducerCustomOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerCustomOutput; exports["default"] = _default; /***/ }), -/***/ 29143: +/***/ 43226: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -40851,7 +115594,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -40862,23 +115605,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateTokenizer model module. - * @module model/CreateTokenizer - * @version 3.3.16 + * The GatewayCreateProducerDockerhub model module. + * @module model/GatewayCreateProducerDockerhub + * @version 3.6.3 */ -var CreateTokenizer = /*#__PURE__*/function () { +var GatewayCreateProducerDockerhub = /*#__PURE__*/function () { /** - * Constructs a new CreateTokenizer. - * createTokenizer is a command that creates a tokenizer item - * @alias module:model/CreateTokenizer - * @param name {String} Tokenizer name - * @param templateType {String} Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] - * @param tokenizerType {String} Tokenizer type + * Constructs a new GatewayCreateProducerDockerhub. + * gatewayCreateProducerDockerhub is a command that creates a DOCKERHUB producer [Deprecated: Use dynamic-secret-create-dockerhub command] + * @alias module:model/GatewayCreateProducerDockerhub + * @param name {String} Dynamic secret name */ - function CreateTokenizer(name, templateType, tokenizerType) { - _classCallCheck(this, CreateTokenizer); + function GatewayCreateProducerDockerhub(name) { + _classCallCheck(this, GatewayCreateProducerDockerhub); - CreateTokenizer.initialize(this, name, templateType, tokenizerType); + GatewayCreateProducerDockerhub.initialize(this, name); } /** * Initializes the fields of this object. @@ -40887,203 +115628,161 @@ var CreateTokenizer = /*#__PURE__*/function () { */ - _createClass(CreateTokenizer, null, [{ + _createClass(GatewayCreateProducerDockerhub, null, [{ key: "initialize", - value: function initialize(obj, name, templateType, tokenizerType) { + value: function initialize(obj, name) { obj['name'] = name; - obj['template-type'] = templateType; - obj['tokenizer-type'] = tokenizerType; } /** - * Constructs a CreateTokenizer from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateTokenizer} obj Optional instance to populate. - * @return {module:model/CreateTokenizer} The populated CreateTokenizer instance. + * @param {module:model/GatewayCreateProducerDockerhub} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerDockerhub} The populated GatewayCreateProducerDockerhub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateTokenizer(); - - if (data.hasOwnProperty('alphabet')) { - obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); - } - - if (data.hasOwnProperty('decoding-template')) { - obj['decoding-template'] = _ApiClient["default"].convertToType(data['decoding-template'], 'String'); - } + obj = obj || new GatewayCreateProducerDockerhub(); if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); } - if (data.hasOwnProperty('encoding-template')) { - obj['encoding-template'] = _ApiClient["default"].convertToType(data['encoding-template'], 'String'); + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); } - if (data.hasOwnProperty('encryption-key-name')) { - obj['encryption-key-name'] = _ApiClient["default"].convertToType(data['encryption-key-name'], 'String'); + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('pattern')) { - obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('template-type')) { - obj['template-type'] = _ApiClient["default"].convertToType(data['template-type'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('tokenizer-type')) { - obj['tokenizer-type'] = _ApiClient["default"].convertToType(data['tokenizer-type'], 'String'); - } - - if (data.hasOwnProperty('tweak-type')) { - obj['tweak-type'] = _ApiClient["default"].convertToType(data['tweak-type'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return CreateTokenizer; + return GatewayCreateProducerDockerhub; }(); -/** - * Alphabet to use in regexp vaultless tokenization - * @member {String} alphabet - */ - - -CreateTokenizer.prototype['alphabet'] = undefined; -/** - * The Decoding output template to use in regexp vaultless tokenization - * @member {String} decoding-template - */ - -CreateTokenizer.prototype['decoding-template'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ -CreateTokenizer.prototype['delete_protection'] = undefined; + +GatewayCreateProducerDockerhub.prototype['delete_protection'] = undefined; /** - * Description of the object - * @member {String} description + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password */ -CreateTokenizer.prototype['description'] = undefined; +GatewayCreateProducerDockerhub.prototype['dockerhub-password'] = undefined; /** - * The Encoding output template to use in regexp vaultless tokenization - * @member {String} encoding-template + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes */ -CreateTokenizer.prototype['encoding-template'] = undefined; +GatewayCreateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; /** - * AES key name to use in vaultless tokenization - * @member {String} encryption-key-name + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username */ -CreateTokenizer.prototype['encryption-key-name'] = undefined; +GatewayCreateProducerDockerhub.prototype['dockerhub-username'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateTokenizer.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateTokenizer.prototype['metadata'] = undefined; +GatewayCreateProducerDockerhub.prototype['json'] = false; /** - * Tokenizer name + * Dynamic secret name * @member {String} name */ -CreateTokenizer.prototype['name'] = undefined; +GatewayCreateProducerDockerhub.prototype['name'] = undefined; /** - * Pattern to use in regexp vaultless tokenization - * @member {String} pattern + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateTokenizer.prototype['pattern'] = undefined; +GatewayCreateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; /** - * List of the tags attached to this key - * @member {Array.} tag + * Add tags attached to this object + * @member {Array.} tags */ -CreateTokenizer.prototype['tag'] = undefined; +GatewayCreateProducerDockerhub.prototype['tags'] = undefined; /** - * Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] - * @member {String} template-type + * Target name + * @member {String} target-name */ -CreateTokenizer.prototype['template-type'] = undefined; +GatewayCreateProducerDockerhub.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateTokenizer.prototype['token'] = undefined; -/** - * Tokenizer type - * @member {String} tokenizer-type - * @default 'vaultless' - */ - -CreateTokenizer.prototype['tokenizer-type'] = 'vaultless'; +GatewayCreateProducerDockerhub.prototype['token'] = undefined; /** - * The tweak type to use in vaultless tokenization [Supplied, Generated, Internal, Masking] - * @member {String} tweak-type + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -CreateTokenizer.prototype['tweak-type'] = undefined; +GatewayCreateProducerDockerhub.prototype['uid-token'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * User TTL + * @member {String} user-ttl + * @default '60m' */ -CreateTokenizer.prototype['uid-token'] = undefined; -var _default = CreateTokenizer; +GatewayCreateProducerDockerhub.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerDockerhub; exports["default"] = _default; /***/ }), -/***/ 36903: +/***/ 68655: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -41094,7 +115793,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -41105,19 +115806,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateTokenizerOutput model module. - * @module model/CreateTokenizerOutput - * @version 3.3.16 + * The GatewayCreateProducerDockerhubOutput model module. + * @module model/GatewayCreateProducerDockerhubOutput + * @version 3.6.3 */ -var CreateTokenizerOutput = /*#__PURE__*/function () { +var GatewayCreateProducerDockerhubOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateTokenizerOutput. - * @alias module:model/CreateTokenizerOutput + * Constructs a new GatewayCreateProducerDockerhubOutput. + * @alias module:model/GatewayCreateProducerDockerhubOutput */ - function CreateTokenizerOutput() { - _classCallCheck(this, CreateTokenizerOutput); + function GatewayCreateProducerDockerhubOutput() { + _classCallCheck(this, GatewayCreateProducerDockerhubOutput); - CreateTokenizerOutput.initialize(this); + GatewayCreateProducerDockerhubOutput.initialize(this); } /** * Initializes the fields of this object. @@ -41126,25 +115827,25 @@ var CreateTokenizerOutput = /*#__PURE__*/function () { */ - _createClass(CreateTokenizerOutput, null, [{ + _createClass(GatewayCreateProducerDockerhubOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateTokenizerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateTokenizerOutput} obj Optional instance to populate. - * @return {module:model/CreateTokenizerOutput} The populated CreateTokenizerOutput instance. + * @param {module:model/GatewayCreateProducerDockerhubOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerDockerhubOutput} The populated GatewayCreateProducerDockerhubOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateTokenizerOutput(); + obj = obj || new GatewayCreateProducerDockerhubOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -41152,20 +115853,20 @@ var CreateTokenizerOutput = /*#__PURE__*/function () { } }]); - return CreateTokenizerOutput; + return GatewayCreateProducerDockerhubOutput; }(); /** - * @member {String} name + * @member {module:model/DSProducerDetails} producer_details */ -CreateTokenizerOutput.prototype['name'] = undefined; -var _default = CreateTokenizerOutput; +GatewayCreateProducerDockerhubOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerDockerhubOutput; exports["default"] = _default; /***/ }), -/***/ 21668: +/***/ 29980: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -41176,7 +115877,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -41187,20 +115888,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateWebTarget model module. - * @module model/CreateWebTarget - * @version 3.3.16 + * The GatewayCreateProducerEks model module. + * @module model/GatewayCreateProducerEks + * @version 3.6.3 */ -var CreateWebTarget = /*#__PURE__*/function () { +var GatewayCreateProducerEks = /*#__PURE__*/function () { /** - * Constructs a new CreateWebTarget. - * @alias module:model/CreateWebTarget - * @param name {String} Target name + * Constructs a new GatewayCreateProducerEks. + * gatewayCreateProducerEks is a command that creates eks producer [Deprecated: Use dynamic-secret-create-eks command] + * @alias module:model/GatewayCreateProducerEks + * @param name {String} Dynamic secret name */ - function CreateWebTarget(name) { - _classCallCheck(this, CreateWebTarget); + function GatewayCreateProducerEks(name) { + _classCallCheck(this, GatewayCreateProducerEks); - CreateWebTarget.initialize(this, name); + GatewayCreateProducerEks.initialize(this, name); } /** * Initializes the fields of this object. @@ -41209,45 +115911,97 @@ var CreateWebTarget = /*#__PURE__*/function () { */ - _createClass(CreateWebTarget, null, [{ + _createClass(GatewayCreateProducerEks, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateWebTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerEks from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWebTarget} obj Optional instance to populate. - * @return {module:model/CreateWebTarget} The populated CreateWebTarget instance. + * @param {module:model/GatewayCreateProducerEks} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerEks} The populated GatewayCreateProducerEks instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateWebTarget(); + obj = obj || new GatewayCreateProducerEks(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -41256,8 +116010,8 @@ var CreateWebTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -41265,64 +116019,145 @@ var CreateWebTarget = /*#__PURE__*/function () { } }]); - return CreateWebTarget; + return GatewayCreateProducerEks; }(); /** - * Deprecated - use description - * @member {String} comment + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateWebTarget.prototype['comment'] = undefined; +GatewayCreateProducerEks.prototype['delete_protection'] = undefined; /** - * Description of the object - * @member {String} description + * Access Key ID + * @member {String} eks-access-key-id */ -CreateWebTarget.prototype['description'] = undefined; +GatewayCreateProducerEks.prototype['eks-access-key-id'] = undefined; +/** + * IAM assume role + * @member {String} eks-assume-role + */ + +GatewayCreateProducerEks.prototype['eks-assume-role'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ + +GatewayCreateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +GatewayCreateProducerEks.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +GatewayCreateProducerEks.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +GatewayCreateProducerEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +GatewayCreateProducerEks.prototype['eks-secret-access-key'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateWebTarget.prototype['json'] = false; +GatewayCreateProducerEks.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Dynamic secret name + * @member {String} name */ -CreateWebTarget.prototype['key'] = undefined; +GatewayCreateProducerEks.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerEks.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +GatewayCreateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayCreateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerEks.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerEks.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerEks.prototype['tags'] = undefined; /** * Target name - * @member {String} name + * @member {String} target-name */ -CreateWebTarget.prototype['name'] = undefined; +GatewayCreateProducerEks.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateWebTarget.prototype['token'] = undefined; +GatewayCreateProducerEks.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateWebTarget.prototype['uid-token'] = undefined; +GatewayCreateProducerEks.prototype['uid-token'] = undefined; /** - * The url - * @member {String} url + * User TTL + * @member {String} user-ttl + * @default '15m' */ -CreateWebTarget.prototype['url'] = undefined; -var _default = CreateWebTarget; +GatewayCreateProducerEks.prototype['user-ttl'] = '15m'; +var _default = GatewayCreateProducerEks; exports["default"] = _default; /***/ }), -/***/ 89702: +/***/ 41981: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -41333,7 +116168,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -41344,19 +116181,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateWebTargetOutput model module. - * @module model/CreateWebTargetOutput - * @version 3.3.16 + * The GatewayCreateProducerEksOutput model module. + * @module model/GatewayCreateProducerEksOutput + * @version 3.6.3 */ -var CreateWebTargetOutput = /*#__PURE__*/function () { +var GatewayCreateProducerEksOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateWebTargetOutput. - * @alias module:model/CreateWebTargetOutput + * Constructs a new GatewayCreateProducerEksOutput. + * @alias module:model/GatewayCreateProducerEksOutput */ - function CreateWebTargetOutput() { - _classCallCheck(this, CreateWebTargetOutput); + function GatewayCreateProducerEksOutput() { + _classCallCheck(this, GatewayCreateProducerEksOutput); - CreateWebTargetOutput.initialize(this); + GatewayCreateProducerEksOutput.initialize(this); } /** * Initializes the fields of this object. @@ -41365,25 +116202,25 @@ var CreateWebTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateWebTargetOutput, null, [{ + _createClass(GatewayCreateProducerEksOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWebTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateWebTargetOutput} The populated CreateWebTargetOutput instance. + * @param {module:model/GatewayCreateProducerEksOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerEksOutput} The populated GatewayCreateProducerEksOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateWebTargetOutput(); + obj = obj || new GatewayCreateProducerEksOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -41391,20 +116228,20 @@ var CreateWebTargetOutput = /*#__PURE__*/function () { } }]); - return CreateWebTargetOutput; + return GatewayCreateProducerEksOutput; }(); /** - * @member {Number} target_id + * @member {module:model/DSProducerDetails} producer_details */ -CreateWebTargetOutput.prototype['target_id'] = undefined; -var _default = CreateWebTargetOutput; +GatewayCreateProducerEksOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerEksOutput; exports["default"] = _default; /***/ }), -/***/ 93445: +/***/ 62015: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -41415,7 +116252,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -41426,23 +116263,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateWindowsTarget model module. - * @module model/CreateWindowsTarget - * @version 3.3.16 + * The GatewayCreateProducerGcp model module. + * @module model/GatewayCreateProducerGcp + * @version 3.6.3 */ -var CreateWindowsTarget = /*#__PURE__*/function () { +var GatewayCreateProducerGcp = /*#__PURE__*/function () { /** - * Constructs a new CreateWindowsTarget. - * @alias module:model/CreateWindowsTarget - * @param hostname {String} Server hostname - * @param name {String} Target name - * @param password {String} Privileged user password - * @param username {String} Privileged username + * Constructs a new GatewayCreateProducerGcp. + * gatewayCreateProducerGcp is a command that creates a GCP producer [Deprecated: Use dynamic-secret-create-gcp command] + * @alias module:model/GatewayCreateProducerGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] */ - function CreateWindowsTarget(hostname, name, password, username) { - _classCallCheck(this, CreateWindowsTarget); + function GatewayCreateProducerGcp(name, serviceAccountType) { + _classCallCheck(this, GatewayCreateProducerGcp); - CreateWindowsTarget.initialize(this, hostname, name, password, username); + GatewayCreateProducerGcp.initialize(this, name, serviceAccountType); } /** * Initializes the fields of this object. @@ -41451,62 +116287,76 @@ var CreateWindowsTarget = /*#__PURE__*/function () { */ - _createClass(CreateWindowsTarget, null, [{ + _createClass(GatewayCreateProducerGcp, null, [{ key: "initialize", - value: function initialize(obj, hostname, name, password, username) { - obj['hostname'] = hostname; + value: function initialize(obj, name, serviceAccountType) { obj['name'] = name; - obj['password'] = password; - obj['username'] = username; + obj['service-account-type'] = serviceAccountType; } /** - * Constructs a CreateWindowsTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerGcp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWindowsTarget} obj Optional instance to populate. - * @return {module:model/CreateWindowsTarget} The populated CreateWindowsTarget instance. + * @param {module:model/GatewayCreateProducerGcp} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGcp} The populated GatewayCreateProducerGcp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateWindowsTarget(); + obj = obj || new GatewayCreateProducerGcp(); - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); } - if (data.hasOwnProperty('domain')) { - obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); } - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } + + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -41517,12 +116367,8 @@ var CreateWindowsTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-tls')) { - obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -41530,96 +116376,113 @@ var CreateWindowsTarget = /*#__PURE__*/function () { } }]); - return CreateWindowsTarget; + return GatewayCreateProducerGcp; }(); /** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} certificate + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateWindowsTarget.prototype['certificate'] = undefined; +GatewayCreateProducerGcp.prototype['delete_protection'] = undefined; /** - * Description of the object - * @member {String} description + * @member {String} gcp-cred-type */ -CreateWindowsTarget.prototype['description'] = undefined; +GatewayCreateProducerGcp.prototype['gcp-cred-type'] = undefined; /** - * User domain name - * @member {String} domain + * Base64-encoded service account private key text + * @member {String} gcp-key */ -CreateWindowsTarget.prototype['domain'] = undefined; +GatewayCreateProducerGcp.prototype['gcp-key'] = undefined; /** - * Server hostname - * @member {String} hostname + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo */ -CreateWindowsTarget.prototype['hostname'] = undefined; +GatewayCreateProducerGcp.prototype['gcp-key-algo'] = undefined; +/** + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email + */ + +GatewayCreateProducerGcp.prototype['gcp-sa-email'] = undefined; +/** + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes + */ + +GatewayCreateProducerGcp.prototype['gcp-token-scopes'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateWindowsTarget.prototype['json'] = false; +GatewayCreateProducerGcp.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Dynamic secret name + * @member {String} name */ -CreateWindowsTarget.prototype['key'] = undefined; +GatewayCreateProducerGcp.prototype['name'] = undefined; /** - * Target name - * @member {String} name + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -CreateWindowsTarget.prototype['name'] = undefined; +GatewayCreateProducerGcp.prototype['producer-encryption-key-name'] = undefined; /** - * Privileged user password - * @member {String} password + * Role binding definitions in json format + * @member {String} role-binding */ -CreateWindowsTarget.prototype['password'] = undefined; +GatewayCreateProducerGcp.prototype['role-binding'] = undefined; /** - * Server WinRM port - * @member {String} port - * @default '5986' + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' */ -CreateWindowsTarget.prototype['port'] = '5986'; +GatewayCreateProducerGcp.prototype['service-account-type'] = 'fixed'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerGcp.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateWindowsTarget.prototype['token'] = undefined; +GatewayCreateProducerGcp.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateWindowsTarget.prototype['uid-token'] = undefined; -/** - * Enable/Disable TLS for WinRM over HTTPS [true/false] - * @member {String} use-tls - * @default 'true' - */ - -CreateWindowsTarget.prototype['use-tls'] = 'true'; +GatewayCreateProducerGcp.prototype['uid-token'] = undefined; /** - * Privileged username - * @member {String} username + * User TTL + * @member {String} user-ttl + * @default '60m' */ -CreateWindowsTarget.prototype['username'] = undefined; -var _default = CreateWindowsTarget; +GatewayCreateProducerGcp.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerGcp; exports["default"] = _default; /***/ }), -/***/ 91995: +/***/ 15398: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -41630,7 +116493,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -41641,19 +116506,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateWindowsTargetOutput model module. - * @module model/CreateWindowsTargetOutput - * @version 3.3.16 + * The GatewayCreateProducerGcpOutput model module. + * @module model/GatewayCreateProducerGcpOutput + * @version 3.6.3 */ -var CreateWindowsTargetOutput = /*#__PURE__*/function () { +var GatewayCreateProducerGcpOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateWindowsTargetOutput. - * @alias module:model/CreateWindowsTargetOutput + * Constructs a new GatewayCreateProducerGcpOutput. + * @alias module:model/GatewayCreateProducerGcpOutput */ - function CreateWindowsTargetOutput() { - _classCallCheck(this, CreateWindowsTargetOutput); + function GatewayCreateProducerGcpOutput() { + _classCallCheck(this, GatewayCreateProducerGcpOutput); - CreateWindowsTargetOutput.initialize(this); + GatewayCreateProducerGcpOutput.initialize(this); } /** * Initializes the fields of this object. @@ -41662,25 +116527,25 @@ var CreateWindowsTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateWindowsTargetOutput, null, [{ + _createClass(GatewayCreateProducerGcpOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateWindowsTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWindowsTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateWindowsTargetOutput} The populated CreateWindowsTargetOutput instance. + * @param {module:model/GatewayCreateProducerGcpOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGcpOutput} The populated GatewayCreateProducerGcpOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateWindowsTargetOutput(); + obj = obj || new GatewayCreateProducerGcpOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -41688,20 +116553,20 @@ var CreateWindowsTargetOutput = /*#__PURE__*/function () { } }]); - return CreateWindowsTargetOutput; + return GatewayCreateProducerGcpOutput; }(); /** - * @member {Number} target_id + * @member {module:model/DSProducerDetails} producer_details */ -CreateWindowsTargetOutput.prototype['target_id'] = undefined; -var _default = CreateWindowsTargetOutput; +GatewayCreateProducerGcpOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerGcpOutput; exports["default"] = _default; /***/ }), -/***/ 85328: +/***/ 94350: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -41712,7 +116577,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -41723,24 +116588,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateZeroSSLTarget model module. - * @module model/CreateZeroSSLTarget - * @version 3.3.16 + * The GatewayCreateProducerGithub model module. + * @module model/GatewayCreateProducerGithub + * @version 3.6.3 */ -var CreateZeroSSLTarget = /*#__PURE__*/function () { +var GatewayCreateProducerGithub = /*#__PURE__*/function () { /** - * Constructs a new CreateZeroSSLTarget. - * @alias module:model/CreateZeroSSLTarget - * @param apiKey {String} API Key of the ZeroSSLTarget account - * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @param imapPassword {String} ImapPassword to access the IMAP service - * @param imapUsername {String} ImapUsername to access the IMAP service - * @param name {String} Target name + * Constructs a new GatewayCreateProducerGithub. + * gatewayCreateProducerGithub is a command that creates github producer [Deprecated: Use dynamic-secret-create-github command] + * @alias module:model/GatewayCreateProducerGithub + * @param name {String} Dynamic secret name */ - function CreateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { - _classCallCheck(this, CreateZeroSSLTarget); + function GatewayCreateProducerGithub(name) { + _classCallCheck(this, GatewayCreateProducerGithub); - CreateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); + GatewayCreateProducerGithub.initialize(this, name); } /** * Initializes the fields of this object. @@ -41749,81 +116611,81 @@ var CreateZeroSSLTarget = /*#__PURE__*/function () { */ - _createClass(CreateZeroSSLTarget, null, [{ + _createClass(GatewayCreateProducerGithub, null, [{ key: "initialize", - value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { - obj['api-key'] = apiKey; - obj['imap-fqdn'] = imapFqdn; - obj['imap-password'] = imapPassword; - obj['imap-username'] = imapUsername; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a CreateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerGithub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateZeroSSLTarget} obj Optional instance to populate. - * @return {module:model/CreateZeroSSLTarget} The populated CreateZeroSSLTarget instance. + * @param {module:model/GatewayCreateProducerGithub} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGithub} The populated GatewayCreateProducerGithub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateZeroSSLTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } + obj = obj || new GatewayCreateProducerGithub(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); } - if (data.hasOwnProperty('imap-fqdn')) { - obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); } - if (data.hasOwnProperty('imap-password')) { - obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); } - if (data.hasOwnProperty('imap-port')) { - obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); } - if (data.hasOwnProperty('imap-target-email')) { - obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); } - if (data.hasOwnProperty('imap-username')) { - obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + } + + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -41833,102 +116695,107 @@ var CreateZeroSSLTarget = /*#__PURE__*/function () { } }]); - return CreateZeroSSLTarget; + return GatewayCreateProducerGithub; }(); /** - * API Key of the ZeroSSLTarget account - * @member {String} api-key + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CreateZeroSSLTarget.prototype['api-key'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateZeroSSLTarget.prototype['comment'] = undefined; +GatewayCreateProducerGithub.prototype['delete_protection'] = undefined; /** - * Description of the object - * @member {String} description + * Github app id + * @member {Number} github-app-id */ -CreateZeroSSLTarget.prototype['description'] = undefined; +GatewayCreateProducerGithub.prototype['github-app-id'] = undefined; /** - * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @member {String} imap-fqdn + * App private key + * @member {String} github-app-private-key */ -CreateZeroSSLTarget.prototype['imap-fqdn'] = undefined; +GatewayCreateProducerGithub.prototype['github-app-private-key'] = undefined; /** - * ImapPassword to access the IMAP service - * @member {String} imap-password + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' */ -CreateZeroSSLTarget.prototype['imap-password'] = undefined; +GatewayCreateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; /** - * ImapPort of the IMAP service - * @member {String} imap-port - * @default '993' + * GitHub application installation id + * @member {Number} installation-id */ -CreateZeroSSLTarget.prototype['imap-port'] = '993'; +GatewayCreateProducerGithub.prototype['installation-id'] = undefined; /** - * ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username - * @member {String} imap-target-email + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization */ -CreateZeroSSLTarget.prototype['imap-target-email'] = undefined; +GatewayCreateProducerGithub.prototype['installation-organization'] = undefined; /** - * ImapUsername to access the IMAP service - * @member {String} imap-username + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository */ -CreateZeroSSLTarget.prototype['imap-username'] = undefined; +GatewayCreateProducerGithub.prototype['installation-repository'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -CreateZeroSSLTarget.prototype['json'] = false; +GatewayCreateProducerGithub.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Dynamic secret name + * @member {String} name */ -CreateZeroSSLTarget.prototype['key'] = undefined; +GatewayCreateProducerGithub.prototype['name'] = undefined; /** - * Target name - * @member {String} name + * Add tags attached to this object + * @member {Array.} tags */ -CreateZeroSSLTarget.prototype['name'] = undefined; +GatewayCreateProducerGithub.prototype['tags'] = undefined; /** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' + * Target name + * @member {String} target-name */ -CreateZeroSSLTarget.prototype['timeout'] = '5m'; +GatewayCreateProducerGithub.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -CreateZeroSSLTarget.prototype['token'] = undefined; +GatewayCreateProducerGithub.prototype['token'] = undefined; +/** + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions + */ + +GatewayCreateProducerGithub.prototype['token-permissions'] = undefined; +/** + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories + */ + +GatewayCreateProducerGithub.prototype['token-repositories'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -CreateZeroSSLTarget.prototype['uid-token'] = undefined; -var _default = CreateZeroSSLTarget; +GatewayCreateProducerGithub.prototype['uid-token'] = undefined; +var _default = GatewayCreateProducerGithub; exports["default"] = _default; /***/ }), -/***/ 5011: +/***/ 57723: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -41939,7 +116806,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -41950,19 +116819,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CreateZeroSSLTargetOutput model module. - * @module model/CreateZeroSSLTargetOutput - * @version 3.3.16 + * The GatewayCreateProducerGithubOutput model module. + * @module model/GatewayCreateProducerGithubOutput + * @version 3.6.3 */ -var CreateZeroSSLTargetOutput = /*#__PURE__*/function () { +var GatewayCreateProducerGithubOutput = /*#__PURE__*/function () { /** - * Constructs a new CreateZeroSSLTargetOutput. - * @alias module:model/CreateZeroSSLTargetOutput + * Constructs a new GatewayCreateProducerGithubOutput. + * @alias module:model/GatewayCreateProducerGithubOutput */ - function CreateZeroSSLTargetOutput() { - _classCallCheck(this, CreateZeroSSLTargetOutput); + function GatewayCreateProducerGithubOutput() { + _classCallCheck(this, GatewayCreateProducerGithubOutput); - CreateZeroSSLTargetOutput.initialize(this); + GatewayCreateProducerGithubOutput.initialize(this); } /** * Initializes the fields of this object. @@ -41971,25 +116840,25 @@ var CreateZeroSSLTargetOutput = /*#__PURE__*/function () { */ - _createClass(CreateZeroSSLTargetOutput, null, [{ + _createClass(GatewayCreateProducerGithubOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CreateZeroSSLTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateZeroSSLTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateZeroSSLTargetOutput} The populated CreateZeroSSLTargetOutput instance. + * @param {module:model/GatewayCreateProducerGithubOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGithubOutput} The populated GatewayCreateProducerGithubOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CreateZeroSSLTargetOutput(); + obj = obj || new GatewayCreateProducerGithubOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -41997,20 +116866,20 @@ var CreateZeroSSLTargetOutput = /*#__PURE__*/function () { } }]); - return CreateZeroSSLTargetOutput; + return GatewayCreateProducerGithubOutput; }(); /** - * @member {Number} target_id + * @member {module:model/DSProducerDetails} producer_details */ -CreateZeroSSLTargetOutput.prototype['target_id'] = undefined; -var _default = CreateZeroSSLTargetOutput; +GatewayCreateProducerGithubOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerGithubOutput; exports["default"] = _default; /***/ }), -/***/ 13649: +/***/ 26908: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -42021,7 +116890,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -42032,19 +116901,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CustomTargetDetails model module. - * @module model/CustomTargetDetails - * @version 3.3.16 + * The GatewayCreateProducerGke model module. + * @module model/GatewayCreateProducerGke + * @version 3.6.3 */ -var CustomTargetDetails = /*#__PURE__*/function () { +var GatewayCreateProducerGke = /*#__PURE__*/function () { /** - * Constructs a new CustomTargetDetails. - * @alias module:model/CustomTargetDetails + * Constructs a new GatewayCreateProducerGke. + * gatewayCreateProducerGke is a command that creates gke producer [Deprecated: Use dynamic-secret-create-gke command] + * @alias module:model/GatewayCreateProducerGke + * @param name {String} Dynamic secret name */ - function CustomTargetDetails() { - _classCallCheck(this, CustomTargetDetails); + function GatewayCreateProducerGke(name) { + _classCallCheck(this, GatewayCreateProducerGke); - CustomTargetDetails.initialize(this); + GatewayCreateProducerGke.initialize(this, name); } /** * Initializes the fields of this object. @@ -42053,115 +116924,99 @@ var CustomTargetDetails = /*#__PURE__*/function () { */ - _createClass(CustomTargetDetails, null, [{ + _createClass(GatewayCreateProducerGke, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a CustomTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerGke from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomTargetDetails} obj Optional instance to populate. - * @return {module:model/CustomTargetDetails} The populated CustomTargetDetails instance. + * @param {module:model/GatewayCreateProducerGke} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGke} The populated GatewayCreateProducerGke instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CustomTargetDetails(); + obj = obj || new GatewayCreateProducerGke(); - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - return obj; - } - }]); - - return CustomTargetDetails; -}(); -/** - * @member {String} payload - */ - - -CustomTargetDetails.prototype['payload'] = undefined; -var _default = CustomTargetDetails; -exports["default"] = _default; - -/***/ }), + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } -/***/ 59023: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -/** - * The CustomerFragment model module. - * @module model/CustomerFragment - * @version 3.3.16 - */ -var CustomerFragment = /*#__PURE__*/function () { - /** - * Constructs a new CustomerFragment. - * @alias module:model/CustomerFragment - */ - function CustomerFragment() { - _classCallCheck(this, CustomerFragment); + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } - CustomerFragment.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } - _createClass(CustomerFragment, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CustomerFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomerFragment} obj Optional instance to populate. - * @return {module:model/CustomerFragment} The populated CustomerFragment instance. - */ + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomerFragment(); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -42169,114 +117024,132 @@ var CustomerFragment = /*#__PURE__*/function () { } }]); - return CustomerFragment; + return GatewayCreateProducerGke; }(); /** - * @member {String} description + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -CustomerFragment.prototype['description'] = undefined; +GatewayCreateProducerGke.prototype['delete_protection'] = undefined; /** - * @member {String} id + * GKE Service Account key file path + * @member {String} gke-account-key */ -CustomerFragment.prototype['id'] = undefined; +GatewayCreateProducerGke.prototype['gke-account-key'] = undefined; /** - * @member {String} value + * GKE cluster CA certificate + * @member {String} gke-cluster-cert */ -CustomerFragment.prototype['value'] = undefined; -var _default = CustomerFragment; -exports["default"] = _default; - -/***/ }), - -/***/ 91277: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +GatewayCreateProducerGke.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +GatewayCreateProducerGke.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ -var _CustomerFragment = _interopRequireDefault(__nccwpck_require__(59023)); +GatewayCreateProducerGke.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +GatewayCreateProducerGke.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +GatewayCreateProducerGke.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +GatewayCreateProducerGke.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +GatewayCreateProducerGke.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ +GatewayCreateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; /** - * The CustomerFragmentsJson model module. - * @module model/CustomerFragmentsJson - * @version 3.3.16 + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -var CustomerFragmentsJson = /*#__PURE__*/function () { - /** - * Constructs a new CustomerFragmentsJson. - * @alias module:model/CustomerFragmentsJson - */ - function CustomerFragmentsJson() { - _classCallCheck(this, CustomerFragmentsJson); - CustomerFragmentsJson.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +GatewayCreateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ +GatewayCreateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - _createClass(CustomerFragmentsJson, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CustomerFragmentsJson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomerFragmentsJson} obj Optional instance to populate. - * @return {module:model/CustomerFragmentsJson} The populated CustomerFragmentsJson instance. - */ +GatewayCreateProducerGke.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomerFragmentsJson(); +GatewayCreateProducerGke.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('customer_fragments')) { - obj['customer_fragments'] = _ApiClient["default"].convertToType(data['customer_fragments'], [_CustomerFragment["default"]]); - } - } +GatewayCreateProducerGke.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return obj; - } - }]); +GatewayCreateProducerGke.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return CustomerFragmentsJson; -}(); +GatewayCreateProducerGke.prototype['token'] = undefined; /** - * @member {Array.} customer_fragments + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +GatewayCreateProducerGke.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -CustomerFragmentsJson.prototype['customer_fragments'] = undefined; -var _default = CustomerFragmentsJson; +GatewayCreateProducerGke.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerGke; exports["default"] = _default; /***/ }), -/***/ 75719: +/***/ 75709: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -42287,7 +117160,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -42298,19 +117173,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The CustomerFullAddress model module. - * @module model/CustomerFullAddress - * @version 3.3.16 + * The GatewayCreateProducerGkeOutput model module. + * @module model/GatewayCreateProducerGkeOutput + * @version 3.6.3 */ -var CustomerFullAddress = /*#__PURE__*/function () { +var GatewayCreateProducerGkeOutput = /*#__PURE__*/function () { /** - * Constructs a new CustomerFullAddress. - * @alias module:model/CustomerFullAddress + * Constructs a new GatewayCreateProducerGkeOutput. + * @alias module:model/GatewayCreateProducerGkeOutput */ - function CustomerFullAddress() { - _classCallCheck(this, CustomerFullAddress); + function GatewayCreateProducerGkeOutput() { + _classCallCheck(this, GatewayCreateProducerGkeOutput); - CustomerFullAddress.initialize(this); + GatewayCreateProducerGkeOutput.initialize(this); } /** * Initializes the fields of this object. @@ -42319,37 +117194,25 @@ var CustomerFullAddress = /*#__PURE__*/function () { */ - _createClass(CustomerFullAddress, null, [{ + _createClass(GatewayCreateProducerGkeOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a CustomerFullAddress from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomerFullAddress} obj Optional instance to populate. - * @return {module:model/CustomerFullAddress} The populated CustomerFullAddress instance. + * @param {module:model/GatewayCreateProducerGkeOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGkeOutput} The populated GatewayCreateProducerGkeOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new CustomerFullAddress(); - - if (data.hasOwnProperty('city')) { - obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], 'String'); - } + obj = obj || new GatewayCreateProducerGkeOutput(); - if (data.hasOwnProperty('street')) { - obj['street'] = _ApiClient["default"].convertToType(data['street'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -42357,35 +117220,20 @@ var CustomerFullAddress = /*#__PURE__*/function () { } }]); - return CustomerFullAddress; + return GatewayCreateProducerGkeOutput; }(); /** - * @member {String} city - */ - - -CustomerFullAddress.prototype['city'] = undefined; -/** - * @member {String} country - */ - -CustomerFullAddress.prototype['country'] = undefined; -/** - * @member {String} postal_code + * @member {module:model/DSProducerDetails} producer_details */ -CustomerFullAddress.prototype['postal_code'] = undefined; -/** - * @member {String} street - */ -CustomerFullAddress.prototype['street'] = undefined; -var _default = CustomerFullAddress; +GatewayCreateProducerGkeOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerGkeOutput; exports["default"] = _default; /***/ }), -/***/ 5895: +/***/ 13185: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -42396,11 +117244,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(12160)); - -var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(59417)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -42411,19 +117255,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DSProducerDetails model module. - * @module model/DSProducerDetails - * @version 3.3.16 + * The GatewayCreateProducerHanaDb model module. + * @module model/GatewayCreateProducerHanaDb + * @version 3.6.3 */ -var DSProducerDetails = /*#__PURE__*/function () { +var GatewayCreateProducerHanaDb = /*#__PURE__*/function () { /** - * Constructs a new DSProducerDetails. - * @alias module:model/DSProducerDetails + * Constructs a new GatewayCreateProducerHanaDb. + * gatewayCreateProducerHanaDb is a command that creates hanadb producer [Deprecated: Use dynamic-secret-create-hanadb command] + * @alias module:model/GatewayCreateProducerHanaDb + * @param name {String} Dynamic secret name */ - function DSProducerDetails() { - _classCallCheck(this, DSProducerDetails); + function GatewayCreateProducerHanaDb(name) { + _classCallCheck(this, GatewayCreateProducerHanaDb); - DSProducerDetails.initialize(this); + GatewayCreateProducerHanaDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -42432,861 +117278,851 @@ var DSProducerDetails = /*#__PURE__*/function () { */ - _createClass(DSProducerDetails, null, [{ + _createClass(GatewayCreateProducerHanaDb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a DSProducerDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DSProducerDetails} obj Optional instance to populate. - * @return {module:model/DSProducerDetails} The populated DSProducerDetails instance. + * @param {module:model/GatewayCreateProducerHanaDb} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerHanaDb} The populated GatewayCreateProducerHanaDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DSProducerDetails(); - - if (data.hasOwnProperty('access_token_manager_id')) { - obj['access_token_manager_id'] = _ApiClient["default"].convertToType(data['access_token_manager_id'], 'String'); - } - - if (data.hasOwnProperty('acl_rules')) { - obj['acl_rules'] = _ApiClient["default"].convertToType(data['acl_rules'], ['String']); - } - - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); - } - - if (data.hasOwnProperty('admin_name')) { - obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); - } - - if (data.hasOwnProperty('admin_pwd')) { - obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); - } - - if (data.hasOwnProperty('admin_rotation_interval_days')) { - obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); - } - - if (data.hasOwnProperty('administrative_port')) { - obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); - } - - if (data.hasOwnProperty('artifactory_admin_apikey')) { - obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); - } - - if (data.hasOwnProperty('artifactory_admin_username')) { - obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); - } - - if (data.hasOwnProperty('artifactory_base_url')) { - obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); - } - - if (data.hasOwnProperty('artifactory_token_audience')) { - obj['artifactory_token_audience'] = _ApiClient["default"].convertToType(data['artifactory_token_audience'], 'String'); - } - - if (data.hasOwnProperty('artifactory_token_scope')) { - obj['artifactory_token_scope'] = _ApiClient["default"].convertToType(data['artifactory_token_scope'], 'String'); - } - - if (data.hasOwnProperty('authorization_port')) { - obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); - } - - if (data.hasOwnProperty('aws_access_key_id')) { - obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); - } - - if (data.hasOwnProperty('aws_access_mode')) { - obj['aws_access_mode'] = _ApiClient["default"].convertToType(data['aws_access_mode'], 'String'); - } - - if (data.hasOwnProperty('aws_region')) { - obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); - } - - if (data.hasOwnProperty('aws_role_arns')) { - obj['aws_role_arns'] = _ApiClient["default"].convertToType(data['aws_role_arns'], 'String'); - } - - if (data.hasOwnProperty('aws_secret_access_key')) { - obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); - } - - if (data.hasOwnProperty('aws_session_token')) { - obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); - } - - if (data.hasOwnProperty('aws_user_console_access')) { - obj['aws_user_console_access'] = _ApiClient["default"].convertToType(data['aws_user_console_access'], 'Boolean'); - } - - if (data.hasOwnProperty('aws_user_groups')) { - obj['aws_user_groups'] = _ApiClient["default"].convertToType(data['aws_user_groups'], 'String'); - } - - if (data.hasOwnProperty('aws_user_policies')) { - obj['aws_user_policies'] = _ApiClient["default"].convertToType(data['aws_user_policies'], 'String'); - } - - if (data.hasOwnProperty('aws_user_programmatic_access')) { - obj['aws_user_programmatic_access'] = _ApiClient["default"].convertToType(data['aws_user_programmatic_access'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_app_object_id')) { - obj['azure_app_object_id'] = _ApiClient["default"].convertToType(data['azure_app_object_id'], 'String'); - } - - if (data.hasOwnProperty('azure_client_id')) { - obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); - } - - if (data.hasOwnProperty('azure_client_secret')) { - obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); - } - - if (data.hasOwnProperty('azure_fixed_user_name_sub_claim_key')) { - obj['azure_fixed_user_name_sub_claim_key'] = _ApiClient["default"].convertToType(data['azure_fixed_user_name_sub_claim_key'], 'String'); - } - - if (data.hasOwnProperty('azure_fixed_user_only')) { - obj['azure_fixed_user_only'] = _ApiClient["default"].convertToType(data['azure_fixed_user_only'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_resource_group_name')) { - obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); - } - - if (data.hasOwnProperty('azure_resource_name')) { - obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); - } - - if (data.hasOwnProperty('azure_subscription_id')) { - obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); - } - - if (data.hasOwnProperty('azure_tenant_id')) { - obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); - } - - if (data.hasOwnProperty('azure_user_groups_obj_id')) { - obj['azure_user_groups_obj_id'] = _ApiClient["default"].convertToType(data['azure_user_groups_obj_id'], 'String'); - } - - if (data.hasOwnProperty('azure_user_portal_access')) { - obj['azure_user_portal_access'] = _ApiClient["default"].convertToType(data['azure_user_portal_access'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_user_programmatic_access')) { - obj['azure_user_programmatic_access'] = _ApiClient["default"].convertToType(data['azure_user_programmatic_access'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_user_roles_template_id')) { - obj['azure_user_roles_template_id'] = _ApiClient["default"].convertToType(data['azure_user_roles_template_id'], 'String'); - } - - if (data.hasOwnProperty('cassandra_creation_statements')) { - obj['cassandra_creation_statements'] = _ApiClient["default"].convertToType(data['cassandra_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('chef_organizations')) { - obj['chef_organizations'] = _ApiClient["default"].convertToType(data['chef_organizations'], 'String'); - } - - if (data.hasOwnProperty('chef_server_access_mode')) { - obj['chef_server_access_mode'] = _ApiClient["default"].convertToType(data['chef_server_access_mode'], 'String'); - } - - if (data.hasOwnProperty('chef_server_host_name')) { - obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); - } - - if (data.hasOwnProperty('chef_server_key')) { - obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); - } - - if (data.hasOwnProperty('chef_server_port')) { - obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); - } - - if (data.hasOwnProperty('chef_server_url')) { - obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); - } + obj = obj || new GatewayCreateProducerHanaDb(); - if (data.hasOwnProperty('chef_server_username')) { - obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('chef_skip_ssl')) { - obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); } - if (data.hasOwnProperty('client_authentication_type')) { - obj['client_authentication_type'] = _ApiClient["default"].convertToType(data['client_authentication_type'], 'String'); + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); } - if (data.hasOwnProperty('create_sync_url')) { - obj['create_sync_url'] = _ApiClient["default"].convertToType(data['create_sync_url'], 'String'); + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); } - if (data.hasOwnProperty('db_host_name')) { - obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); } - if (data.hasOwnProperty('db_isolation_level')) { - obj['db_isolation_level'] = _ApiClient["default"].convertToType(data['db_isolation_level'], 'String'); + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); } - if (data.hasOwnProperty('db_max_idle_conns')) { - obj['db_max_idle_conns'] = _ApiClient["default"].convertToType(data['db_max_idle_conns'], 'String'); + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); } - if (data.hasOwnProperty('db_max_open_conns')) { - obj['db_max_open_conns'] = _ApiClient["default"].convertToType(data['db_max_open_conns'], 'String'); + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); } - if (data.hasOwnProperty('db_name')) { - obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('db_port')) { - obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('db_private_key')) { - obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('db_private_key_passphrase')) { - obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('db_pwd')) { - obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('db_server_certificates')) { - obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } - if (data.hasOwnProperty('db_server_name')) { - obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('db_user_name')) { - obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('dynamic_secret_id')) { - obj['dynamic_secret_id'] = _ApiClient["default"].convertToType(data['dynamic_secret_id'], 'Number'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('dynamic_secret_key')) { - obj['dynamic_secret_key'] = _ApiClient["default"].convertToType(data['dynamic_secret_key'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('dynamic_secret_name')) { - obj['dynamic_secret_name'] = _ApiClient["default"].convertToType(data['dynamic_secret_name'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('dynamic_secret_type')) { - obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('eks_access_key_id')) { - obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } + } - if (data.hasOwnProperty('eks_assume_role')) { - obj['eks_assume_role'] = _ApiClient["default"].convertToType(data['eks_assume_role'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('eks_cluster_ca_certificate')) { - obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); - } + return GatewayCreateProducerHanaDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (data.hasOwnProperty('eks_cluster_endpoint')) { - obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); - } - if (data.hasOwnProperty('eks_cluster_name')) { - obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['delete_protection'] = undefined; +/** + * HanaDb Name + * @member {String} hana-dbname + */ - if (data.hasOwnProperty('eks_region')) { - obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['hana-dbname'] = undefined; +/** + * HanaDb Creation statements + * @member {String} hanadb-create-statements + */ - if (data.hasOwnProperty('eks_secret_access_key')) { - obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; +/** + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' + */ - if (data.hasOwnProperty('enable_admin_rotation')) { - obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); - } +GatewayCreateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +/** + * HanaDb Password + * @member {String} hanadb-password + */ - if (data.hasOwnProperty('enforce_replay_prevention')) { - obj['enforce_replay_prevention'] = _ApiClient["default"].convertToType(data['enforce_replay_prevention'], 'Boolean'); - } +GatewayCreateProducerHanaDb.prototype['hanadb-password'] = undefined; +/** + * HanaDb Port + * @member {String} hanadb-port + * @default '443' + */ - if (data.hasOwnProperty('externally_provided_user')) { - obj['externally_provided_user'] = _ApiClient["default"].convertToType(data['externally_provided_user'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['hanadb-port'] = '443'; +/** + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements + */ - if (data.hasOwnProperty('failure_message')) { - obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; +/** + * HanaDb Username + * @member {String} hanadb-username + */ - if (data.hasOwnProperty('fixed_user_only')) { - obj['fixed_user_only'] = _ApiClient["default"].convertToType(data['fixed_user_only'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['hanadb-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (data.hasOwnProperty('gcp_key_algo')) { - obj['gcp_key_algo'] = _ApiClient["default"].convertToType(data['gcp_key_algo'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ - if (data.hasOwnProperty('gcp_role_bindings')) { - obj['gcp_role_bindings'] = _ApiClient["default"].convertToType(data['gcp_role_bindings'], { - 'String': ['String'] - }); - } +GatewayCreateProducerHanaDb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (data.hasOwnProperty('gcp_service_account_email')) { - obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ - if (data.hasOwnProperty('gcp_service_account_key')) { - obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (data.hasOwnProperty('gcp_service_account_key_base64')) { - obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - if (data.hasOwnProperty('gcp_service_account_type')) { - obj['gcp_service_account_type'] = _ApiClient["default"].convertToType(data['gcp_service_account_type'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (data.hasOwnProperty('gcp_tmp_service_account_name')) { - obj['gcp_tmp_service_account_name'] = _ApiClient["default"].convertToType(data['gcp_tmp_service_account_name'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ - if (data.hasOwnProperty('gcp_token_lifetime')) { - obj['gcp_token_lifetime'] = _ApiClient["default"].convertToType(data['gcp_token_lifetime'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - if (data.hasOwnProperty('gcp_token_scope')) { - obj['gcp_token_scope'] = _ApiClient["default"].convertToType(data['gcp_token_scope'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('gcp_token_type')) { - obj['gcp_token_type'] = _ApiClient["default"].convertToType(data['gcp_token_type'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - if (data.hasOwnProperty('github_app_id')) { - obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); - } +GatewayCreateProducerHanaDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (data.hasOwnProperty('github_app_private_key')) { - obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (data.hasOwnProperty('github_base_url')) { - obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); - } +GatewayCreateProducerHanaDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ - if (data.hasOwnProperty('github_installation_id')) { - obj['github_installation_id'] = _ApiClient["default"].convertToType(data['github_installation_id'], 'Number'); - } +GatewayCreateProducerHanaDb.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerHanaDb; +exports["default"] = _default; - if (data.hasOwnProperty('github_installation_token_permissions')) { - obj['github_installation_token_permissions'] = _ApiClient["default"].convertToType(data['github_installation_token_permissions'], { - 'String': 'String' - }); - } +/***/ }), - if (data.hasOwnProperty('github_installation_token_repositories')) { - obj['github_installation_token_repositories'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories'], ['String']); - } +/***/ 21460: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('github_installation_token_repositories_ids')) { - obj['github_installation_token_repositories_ids'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories_ids'], ['Number']); - } +"use strict"; - if (data.hasOwnProperty('github_repository_path')) { - obj['github_repository_path'] = _ApiClient["default"].convertToType(data['github_repository_path'], 'String'); - } - if (data.hasOwnProperty('gke_cluster_ca_certificate')) { - obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('gke_cluster_endpoint')) { - obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('gke_cluster_name')) { - obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); - } +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); - if (data.hasOwnProperty('gke_service_account_key')) { - obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('gke_service_account_name')) { - obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('grant_types')) { - obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (data.hasOwnProperty('groups')) { - obj['groups'] = _ApiClient["default"].convertToType(data['groups'], 'String'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (data.hasOwnProperty('hanadb_creation_statements')) { - obj['hanadb_creation_statements'] = _ApiClient["default"].convertToType(data['hanadb_creation_statements'], 'String'); - } +/** + * The GatewayCreateProducerHanaDbOutput model module. + * @module model/GatewayCreateProducerHanaDbOutput + * @version 3.6.3 + */ +var GatewayCreateProducerHanaDbOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerHanaDbOutput. + * @alias module:model/GatewayCreateProducerHanaDbOutput + */ + function GatewayCreateProducerHanaDbOutput() { + _classCallCheck(this, GatewayCreateProducerHanaDbOutput); - if (data.hasOwnProperty('hanadb_revocation_statements')) { - obj['hanadb_revocation_statements'] = _ApiClient["default"].convertToType(data['hanadb_revocation_statements'], 'String'); - } + GatewayCreateProducerHanaDbOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (data.hasOwnProperty('host_name')) { - obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); - } - if (data.hasOwnProperty('host_port')) { - obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); - } + _createClass(GatewayCreateProducerHanaDbOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerHanaDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerHanaDbOutput} The populated GatewayCreateProducerHanaDbOutput instance. + */ - if (data.hasOwnProperty('implementation_type')) { - obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerHanaDbOutput(); - if (data.hasOwnProperty('is_fixed_user')) { - obj['is_fixed_user'] = _ApiClient["default"].convertToType(data['is_fixed_user'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } + } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('item_targets_assoc')) { - obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); - } + return GatewayCreateProducerHanaDbOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ - if (data.hasOwnProperty('jwks')) { - obj['jwks'] = _ApiClient["default"].convertToType(data['jwks'], 'String'); - } - if (data.hasOwnProperty('jwks_url')) { - obj['jwks_url'] = _ApiClient["default"].convertToType(data['jwks_url'], 'String'); - } +GatewayCreateProducerHanaDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerHanaDbOutput; +exports["default"] = _default; - if (data.hasOwnProperty('k8s_allowed_namespaces')) { - obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); - } +/***/ }), - if (data.hasOwnProperty('k8s_bearer_token')) { - obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); - } +/***/ 73236: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { - obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); - } +"use strict"; - if (data.hasOwnProperty('k8s_cluster_endpoint')) { - obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); - } - if (data.hasOwnProperty('k8s_dynamic_mode')) { - obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('k8s_multiple_doc_yaml_temp_definition')) { - obj['k8s_multiple_doc_yaml_temp_definition'] = _ApiClient["default"].convertToType(data['k8s_multiple_doc_yaml_temp_definition'], ['Number']); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('k8s_namespace')) { - obj['k8s_namespace'] = _ApiClient["default"].convertToType(data['k8s_namespace'], 'String'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('k8s_role_name')) { - obj['k8s_role_name'] = _ApiClient["default"].convertToType(data['k8s_role_name'], 'String'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('k8s_role_type')) { - obj['k8s_role_type'] = _ApiClient["default"].convertToType(data['k8s_role_type'], 'String'); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (data.hasOwnProperty('k8s_service_account')) { - obj['k8s_service_account'] = _ApiClient["default"].convertToType(data['k8s_service_account'], 'String'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (data.hasOwnProperty('last_admin_rotation')) { - obj['last_admin_rotation'] = _ApiClient["default"].convertToType(data['last_admin_rotation'], 'Number'); - } +/** + * The GatewayCreateProducerLdap model module. + * @module model/GatewayCreateProducerLdap + * @version 3.6.3 + */ +var GatewayCreateProducerLdap = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerLdap. + * gatewayCreateProducerLdap is a command that creates ldap producer [Deprecated: Use dynamic-secret-create-ldap command] + * @alias module:model/GatewayCreateProducerLdap + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerLdap(name) { + _classCallCheck(this, GatewayCreateProducerLdap); - if (data.hasOwnProperty('ldap_audience')) { - obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); - } + GatewayCreateProducerLdap.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); - } - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); - } + _createClass(GatewayCreateProducerLdap, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerLdap from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerLdap} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerLdap} The populated GatewayCreateProducerLdap instance. + */ - if (data.hasOwnProperty('ldap_certificate')) { - obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerLdap(); - if (data.hasOwnProperty('ldap_group_dn')) { - obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); } - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); } - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('ldap_user_attr')) { - obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); } - if (data.hasOwnProperty('ldap_user_dn')) { - obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { - obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); } - if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { - obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); } - if (data.hasOwnProperty('mongodb_atlas_project_id')) { - obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('mongodb_custom_data')) { - obj['mongodb_custom_data'] = _ApiClient["default"].convertToType(data['mongodb_custom_data'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('mongodb_db_name')) { - obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('mongodb_default_auth_db')) { - obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('mongodb_host_port')) { - obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('mongodb_is_atlas')) { - obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('mongodb_password')) { - obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); } - if (data.hasOwnProperty('mongodb_roles')) { - obj['mongodb_roles'] = _ApiClient["default"].convertToType(data['mongodb_roles'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('mongodb_uri_connection')) { - obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); } - if (data.hasOwnProperty('mongodb_uri_options')) { - obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); } - if (data.hasOwnProperty('mongodb_username')) { - obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } + } - if (data.hasOwnProperty('mssql_creation_statements')) { - obj['mssql_creation_statements'] = _ApiClient["default"].convertToType(data['mssql_creation_statements'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('mssql_revocation_statements')) { - obj['mssql_revocation_statements'] = _ApiClient["default"].convertToType(data['mssql_revocation_statements'], 'String'); - } + return GatewayCreateProducerLdap; +}(); +/** + * Bind DN + * @member {String} bind-dn + */ - if (data.hasOwnProperty('mysql_creation_statements')) { - obj['mysql_creation_statements'] = _ApiClient["default"].convertToType(data['mysql_creation_statements'], 'String'); - } - if (data.hasOwnProperty('mysql_revocation_statements')) { - obj['mysql_revocation_statements'] = _ApiClient["default"].convertToType(data['mysql_revocation_statements'], 'String'); - } +GatewayCreateProducerLdap.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ - if (data.hasOwnProperty('oracle_creation_statements')) { - obj['oracle_creation_statements'] = _ApiClient["default"].convertToType(data['oracle_creation_statements'], 'String'); - } +GatewayCreateProducerLdap.prototype['bind-dn-password'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } +GatewayCreateProducerLdap.prototype['delete_protection'] = undefined; +/** + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' + */ - if (data.hasOwnProperty('password_length')) { - obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); - } +GatewayCreateProducerLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ - if (data.hasOwnProperty('password_policy')) { - obj['password_policy'] = _ApiClient["default"].convertToType(data['password_policy'], 'String'); - } +GatewayCreateProducerLdap.prototype['group-dn'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); - } +GatewayCreateProducerLdap.prototype['json'] = false; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ - if (data.hasOwnProperty('ping_url')) { - obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); - } +GatewayCreateProducerLdap.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ - if (data.hasOwnProperty('postgres_creation_statements')) { - obj['postgres_creation_statements'] = _ApiClient["default"].convertToType(data['postgres_creation_statements'], 'String'); - } +GatewayCreateProducerLdap.prototype['ldap-url'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ - if (data.hasOwnProperty('postgres_revocation_statements')) { - obj['postgres_revocation_statements'] = _ApiClient["default"].convertToType(data['postgres_revocation_statements'], 'String'); - } +GatewayCreateProducerLdap.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (data.hasOwnProperty('privileged_user')) { - obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); - } +GatewayCreateProducerLdap.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ - if (data.hasOwnProperty('rabbitmq_server_password')) { - obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); - } +GatewayCreateProducerLdap.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('rabbitmq_server_uri')) { - obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); - } +GatewayCreateProducerLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - if (data.hasOwnProperty('rabbitmq_server_user')) { - obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); - } +GatewayCreateProducerLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (data.hasOwnProperty('rabbitmq_user_conf_permission')) { - obj['rabbitmq_user_conf_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_conf_permission'], 'String'); - } +GatewayCreateProducerLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ - if (data.hasOwnProperty('rabbitmq_user_read_permission')) { - obj['rabbitmq_user_read_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_read_permission'], 'String'); - } +GatewayCreateProducerLdap.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (data.hasOwnProperty('rabbitmq_user_tags')) { - obj['rabbitmq_user_tags'] = _ApiClient["default"].convertToType(data['rabbitmq_user_tags'], 'String'); - } +GatewayCreateProducerLdap.prototype['uid-token'] = undefined; +/** + * User Attribute + * @member {String} user-attribute + */ - if (data.hasOwnProperty('rabbitmq_user_vhost')) { - obj['rabbitmq_user_vhost'] = _ApiClient["default"].convertToType(data['rabbitmq_user_vhost'], 'String'); - } +GatewayCreateProducerLdap.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ - if (data.hasOwnProperty('rabbitmq_user_write_permission')) { - obj['rabbitmq_user_write_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_write_permission'], 'String'); - } +GatewayCreateProducerLdap.prototype['user-dn'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ - if (data.hasOwnProperty('redirect_uris')) { - obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); - } +GatewayCreateProducerLdap.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerLdap; +exports["default"] = _default; - if (data.hasOwnProperty('redshift_creation_statements')) { - obj['redshift_creation_statements'] = _ApiClient["default"].convertToType(data['redshift_creation_statements'], 'String'); - } +/***/ }), - if (data.hasOwnProperty('restricted_scopes')) { - obj['restricted_scopes'] = _ApiClient["default"].convertToType(data['restricted_scopes'], ['String']); - } +/***/ 8517: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('revoke_sync_url')) { - obj['revoke_sync_url'] = _ApiClient["default"].convertToType(data['revoke_sync_url'], 'String'); - } +"use strict"; - if (data.hasOwnProperty('rotate_sync_url')) { - obj['rotate_sync_url'] = _ApiClient["default"].convertToType(data['rotate_sync_url'], 'String'); - } - if (data.hasOwnProperty('scopes')) { - obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('secure_remote_access_details')) { - obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('session_extension_warn_interval_min')) { - obj['session_extension_warn_interval_min'] = _ApiClient["default"].convertToType(data['session_extension_warn_interval_min'], 'Number'); - } +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); - if (data.hasOwnProperty('sf_account')) { - obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('sf_user_role')) { - obj['sf_user_role'] = _ApiClient["default"].convertToType(data['sf_user_role'], 'String'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('sf_warehouse_name')) { - obj['sf_warehouse_name'] = _ApiClient["default"].convertToType(data['sf_warehouse_name'], 'String'); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (data.hasOwnProperty('should_stop')) { - obj['should_stop'] = _ApiClient["default"].convertToType(data['should_stop'], 'String'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (data.hasOwnProperty('signing_algorithm')) { - obj['signing_algorithm'] = _ApiClient["default"].convertToType(data['signing_algorithm'], 'String'); - } +/** + * The GatewayCreateProducerLdapOutput model module. + * @module model/GatewayCreateProducerLdapOutput + * @version 3.6.3 + */ +var GatewayCreateProducerLdapOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerLdapOutput. + * @alias module:model/GatewayCreateProducerLdapOutput + */ + function GatewayCreateProducerLdapOutput() { + _classCallCheck(this, GatewayCreateProducerLdapOutput); - if (data.hasOwnProperty('ssl_connection_certificate')) { - obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); - } + GatewayCreateProducerLdapOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (data.hasOwnProperty('ssl_connection_mode')) { - obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); - } - if (data.hasOwnProperty('subject_dn')) { - obj['subject_dn'] = _ApiClient["default"].convertToType(data['subject_dn'], 'String'); - } + _createClass(GatewayCreateProducerLdapOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerLdapOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerLdapOutput} The populated GatewayCreateProducerLdapOutput instance. + */ - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerLdapOutput(); - if (data.hasOwnProperty('timeout_seconds')) { - obj['timeout_seconds'] = _ApiClient["default"].convertToType(data['timeout_seconds'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } + } - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } + return obj; + } + }]); - if (data.hasOwnProperty('use_gw_service_account')) { - obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); - } + return GatewayCreateProducerLdapOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); - } - if (data.hasOwnProperty('user_password')) { - obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); +GatewayCreateProducerLdapOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerLdapOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 89229: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerMSSQL model module. + * @module model/GatewayCreateProducerMSSQL + * @version 3.6.3 + */ +var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMSSQL. + * gatewayCreateProducerMSSQL is a command that creates mssql producer [Deprecated: Use dynamic-secret-create-mssql command] + * @alias module:model/GatewayCreateProducerMSSQL + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerMSSQL(name) { + _classCallCheck(this, GatewayCreateProducerMSSQL); + + GatewayCreateProducerMSSQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMSSQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMSSQL} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMSSQL} The populated GatewayCreateProducerMSSQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMSSQL(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('user_principal_name')) { - obj['user_principal_name'] = _ApiClient["default"].convertToType(data['user_principal_name'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('user_ttl')) { - obj['user_ttl'] = _ApiClient["default"].convertToType(data['user_ttl'], 'String'); + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); } - if (data.hasOwnProperty('username_length')) { - obj['username_length'] = _ApiClient["default"].convertToType(data['username_length'], 'Number'); + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); } - if (data.hasOwnProperty('username_policy')) { - obj['username_policy'] = _ApiClient["default"].convertToType(data['username_policy'], 'String'); + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); } - if (data.hasOwnProperty('venafi_allow_subdomains')) { - obj['venafi_allow_subdomains'] = _ApiClient["default"].convertToType(data['venafi_allow_subdomains'], 'Boolean'); + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); } - if (data.hasOwnProperty('venafi_allowed_domains')) { - obj['venafi_allowed_domains'] = _ApiClient["default"].convertToType(data['venafi_allowed_domains'], ['String']); + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); } - if (data.hasOwnProperty('venafi_api_key')) { - obj['venafi_api_key'] = _ApiClient["default"].convertToType(data['venafi_api_key'], 'String'); + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); } - if (data.hasOwnProperty('venafi_auto_generated_folder')) { - obj['venafi_auto_generated_folder'] = _ApiClient["default"].convertToType(data['venafi_auto_generated_folder'], 'String'); + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); } - if (data.hasOwnProperty('venafi_base_url')) { - obj['venafi_base_url'] = _ApiClient["default"].convertToType(data['venafi_base_url'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('venafi_root_first_in_chain')) { - obj['venafi_root_first_in_chain'] = _ApiClient["default"].convertToType(data['venafi_root_first_in_chain'], 'Boolean'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('venafi_sign_using_akeyless_pki')) { - obj['venafi_sign_using_akeyless_pki'] = _ApiClient["default"].convertToType(data['venafi_sign_using_akeyless_pki'], 'Boolean'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('venafi_signer_key_name')) { - obj['venafi_signer_key_name'] = _ApiClient["default"].convertToType(data['venafi_signer_key_name'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('venafi_store_private_key')) { - obj['venafi_store_private_key'] = _ApiClient["default"].convertToType(data['venafi_store_private_key'], 'Boolean'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } - if (data.hasOwnProperty('venafi_tpp_access_token')) { - obj['venafi_tpp_access_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_access_token'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('venafi_tpp_client_id')) { - obj['venafi_tpp_client_id'] = _ApiClient["default"].convertToType(data['venafi_tpp_client_id'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('venafi_tpp_password')) { - obj['venafi_tpp_password'] = _ApiClient["default"].convertToType(data['venafi_tpp_password'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('venafi_tpp_refresh_token')) { - obj['venafi_tpp_refresh_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_refresh_token'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('venafi_tpp_username')) { - obj['venafi_tpp_username'] = _ApiClient["default"].convertToType(data['venafi_tpp_username'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('venafi_use_tpp')) { - obj['venafi_use_tpp'] = _ApiClient["default"].convertToType(data['venafi_use_tpp'], 'Boolean'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('venafi_zone')) { - obj['venafi_zone'] = _ApiClient["default"].convertToType(data['venafi_zone'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('warn_before_user_expiration_min')) { - obj['warn_before_user_expiration_min'] = _ApiClient["default"].convertToType(data['warn_before_user_expiration_min'], 'Number'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -43294,1080 +118130,1440 @@ var DSProducerDetails = /*#__PURE__*/function () { } }]); - return DSProducerDetails; -}(); -/** - * @member {String} access_token_manager_id - */ - - -DSProducerDetails.prototype['access_token_manager_id'] = undefined; -/** - * @member {Array.} acl_rules - */ - -DSProducerDetails.prototype['acl_rules'] = undefined; -/** - * @member {Boolean} active - */ - -DSProducerDetails.prototype['active'] = undefined; + return GatewayCreateProducerMSSQL; +}(); /** - * @member {String} admin_name + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DSProducerDetails.prototype['admin_name'] = undefined; -/** - * @member {String} admin_pwd - */ -DSProducerDetails.prototype['admin_pwd'] = undefined; +GatewayCreateProducerMSSQL.prototype['delete_protection'] = undefined; /** - * @member {Number} admin_rotation_interval_days + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DSProducerDetails.prototype['admin_rotation_interval_days'] = undefined; +GatewayCreateProducerMSSQL.prototype['json'] = false; /** - * @member {String} administrative_port + * MSSQL Creation statements + * @member {String} mssql-create-statements */ -DSProducerDetails.prototype['administrative_port'] = undefined; +GatewayCreateProducerMSSQL.prototype['mssql-create-statements'] = undefined; /** - * @member {String} artifactory_admin_apikey + * MSSQL Name + * @member {String} mssql-dbname */ -DSProducerDetails.prototype['artifactory_admin_apikey'] = undefined; +GatewayCreateProducerMSSQL.prototype['mssql-dbname'] = undefined; /** - * @member {String} artifactory_admin_username + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' */ -DSProducerDetails.prototype['artifactory_admin_username'] = undefined; +GatewayCreateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; /** - * @member {String} artifactory_base_url + * MSSQL Password + * @member {String} mssql-password */ -DSProducerDetails.prototype['artifactory_base_url'] = undefined; +GatewayCreateProducerMSSQL.prototype['mssql-password'] = undefined; /** - * @member {String} artifactory_token_audience + * MSSQL Port + * @member {String} mssql-port + * @default '1433' */ -DSProducerDetails.prototype['artifactory_token_audience'] = undefined; +GatewayCreateProducerMSSQL.prototype['mssql-port'] = '1433'; /** - * @member {String} artifactory_token_scope + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements */ -DSProducerDetails.prototype['artifactory_token_scope'] = undefined; +GatewayCreateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; /** - * @member {String} authorization_port + * MSSQL Username + * @member {String} mssql-username */ -DSProducerDetails.prototype['authorization_port'] = undefined; +GatewayCreateProducerMSSQL.prototype['mssql-username'] = undefined; /** - * @member {String} aws_access_key_id + * Dynamic secret name + * @member {String} name */ -DSProducerDetails.prototype['aws_access_key_id'] = undefined; +GatewayCreateProducerMSSQL.prototype['name'] = undefined; /** - * @member {String} aws_access_mode + * The length of the password to be generated + * @member {String} password-length */ -DSProducerDetails.prototype['aws_access_mode'] = undefined; +GatewayCreateProducerMSSQL.prototype['password-length'] = undefined; /** - * @member {String} aws_region + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -DSProducerDetails.prototype['aws_region'] = undefined; +GatewayCreateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} aws_role_arns + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -DSProducerDetails.prototype['aws_role_arns'] = undefined; +GatewayCreateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; /** - * @member {String} aws_secret_access_key + * The DB schema + * @member {String} secure-access-db-schema */ -DSProducerDetails.prototype['aws_secret_access_key'] = undefined; +GatewayCreateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; /** - * @member {String} aws_session_token + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -DSProducerDetails.prototype['aws_session_token'] = undefined; +GatewayCreateProducerMSSQL.prototype['secure-access-enable'] = undefined; /** - * @member {Boolean} aws_user_console_access + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -DSProducerDetails.prototype['aws_user_console_access'] = undefined; +GatewayCreateProducerMSSQL.prototype['secure-access-host'] = undefined; /** - * @member {String} aws_user_groups + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -DSProducerDetails.prototype['aws_user_groups'] = undefined; +GatewayCreateProducerMSSQL.prototype['secure-access-web'] = false; /** - * @member {String} aws_user_policies + * Add tags attached to this object + * @member {Array.} tags */ -DSProducerDetails.prototype['aws_user_policies'] = undefined; +GatewayCreateProducerMSSQL.prototype['tags'] = undefined; /** - * @member {Boolean} aws_user_programmatic_access + * Target name + * @member {String} target-name */ -DSProducerDetails.prototype['aws_user_programmatic_access'] = undefined; +GatewayCreateProducerMSSQL.prototype['target-name'] = undefined; /** - * @member {String} azure_app_object_id + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -DSProducerDetails.prototype['azure_app_object_id'] = undefined; +GatewayCreateProducerMSSQL.prototype['token'] = undefined; /** - * @member {String} azure_client_id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -DSProducerDetails.prototype['azure_client_id'] = undefined; +GatewayCreateProducerMSSQL.prototype['uid-token'] = undefined; /** - * @member {String} azure_client_secret + * User TTL + * @member {String} user-ttl + * @default '60m' */ -DSProducerDetails.prototype['azure_client_secret'] = undefined; -/** - * @member {String} azure_fixed_user_name_sub_claim_key - */ +GatewayCreateProducerMSSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerMSSQL; +exports["default"] = _default; -DSProducerDetails.prototype['azure_fixed_user_name_sub_claim_key'] = undefined; -/** - * @member {Boolean} azure_fixed_user_only - */ +/***/ }), -DSProducerDetails.prototype['azure_fixed_user_only'] = undefined; -/** - * @member {String} azure_resource_group_name - */ +/***/ 63880: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -DSProducerDetails.prototype['azure_resource_group_name'] = undefined; -/** - * @member {String} azure_resource_name - */ +"use strict"; -DSProducerDetails.prototype['azure_resource_name'] = undefined; -/** - * @member {String} azure_subscription_id - */ -DSProducerDetails.prototype['azure_subscription_id'] = undefined; -/** - * @member {String} azure_tenant_id - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -DSProducerDetails.prototype['azure_tenant_id'] = undefined; -/** - * @member {String} azure_user_groups_obj_id - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -DSProducerDetails.prototype['azure_user_groups_obj_id'] = undefined; -/** - * @member {Boolean} azure_user_portal_access - */ +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); -DSProducerDetails.prototype['azure_user_portal_access'] = undefined; -/** - * @member {Boolean} azure_user_programmatic_access - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -DSProducerDetails.prototype['azure_user_programmatic_access'] = undefined; -/** - * @member {String} azure_user_roles_template_id - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -DSProducerDetails.prototype['azure_user_roles_template_id'] = undefined; -/** - * @member {String} cassandra_creation_statements - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -DSProducerDetails.prototype['cassandra_creation_statements'] = undefined; -/** - * @member {String} chef_organizations - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -DSProducerDetails.prototype['chef_organizations'] = undefined; /** - * @member {String} chef_server_access_mode + * The GatewayCreateProducerMSSQLOutput model module. + * @module model/GatewayCreateProducerMSSQLOutput + * @version 3.6.3 */ +var GatewayCreateProducerMSSQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMSSQLOutput. + * @alias module:model/GatewayCreateProducerMSSQLOutput + */ + function GatewayCreateProducerMSSQLOutput() { + _classCallCheck(this, GatewayCreateProducerMSSQLOutput); -DSProducerDetails.prototype['chef_server_access_mode'] = undefined; -/** - * @member {String} chef_server_host_name - */ + GatewayCreateProducerMSSQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -DSProducerDetails.prototype['chef_server_host_name'] = undefined; -/** - * @member {String} chef_server_key - */ -DSProducerDetails.prototype['chef_server_key'] = undefined; -/** - * @member {String} chef_server_port - */ + _createClass(GatewayCreateProducerMSSQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMSSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMSSQLOutput} The populated GatewayCreateProducerMSSQLOutput instance. + */ -DSProducerDetails.prototype['chef_server_port'] = undefined; -/** - * @member {String} chef_server_url - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMSSQLOutput(); -DSProducerDetails.prototype['chef_server_url'] = undefined; -/** - * @member {String} chef_server_username - */ + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } -DSProducerDetails.prototype['chef_server_username'] = undefined; -/** - * @member {Boolean} chef_skip_ssl - */ + return obj; + } + }]); -DSProducerDetails.prototype['chef_skip_ssl'] = undefined; + return GatewayCreateProducerMSSQLOutput; +}(); /** - * @member {String} client_authentication_type + * @member {module:model/DSProducerDetails} producer_details */ -DSProducerDetails.prototype['client_authentication_type'] = undefined; -/** - * @member {String} create_sync_url - */ -DSProducerDetails.prototype['create_sync_url'] = undefined; -/** - * @member {String} db_host_name - */ +GatewayCreateProducerMSSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerMSSQLOutput; +exports["default"] = _default; -DSProducerDetails.prototype['db_host_name'] = undefined; -/** - * @member {String} db_isolation_level - */ +/***/ }), -DSProducerDetails.prototype['db_isolation_level'] = undefined; -/** - * @member {String} db_max_idle_conns - */ +/***/ 35565: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -DSProducerDetails.prototype['db_max_idle_conns'] = undefined; -/** - * @member {String} db_max_open_conns - */ +"use strict"; -DSProducerDetails.prototype['db_max_open_conns'] = undefined; -/** - * @member {String} db_name - */ -DSProducerDetails.prototype['db_name'] = undefined; -/** - * @member {String} db_port - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -DSProducerDetails.prototype['db_port'] = undefined; -/** - * (Optional) Private Key in PEM format - * @member {String} db_private_key - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -DSProducerDetails.prototype['db_private_key'] = undefined; -/** - * @member {String} db_private_key_passphrase - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -DSProducerDetails.prototype['db_private_key_passphrase'] = undefined; -/** - * @member {String} db_pwd - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -DSProducerDetails.prototype['db_pwd'] = undefined; -/** - * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. - * @member {String} db_server_certificates - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -DSProducerDetails.prototype['db_server_certificates'] = undefined; -/** - * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. - * @member {String} db_server_name - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -DSProducerDetails.prototype['db_server_name'] = undefined; /** - * @member {String} db_user_name + * The GatewayCreateProducerMongo model module. + * @module model/GatewayCreateProducerMongo + * @version 3.6.3 */ +var GatewayCreateProducerMongo = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMongo. + * gatewayCreateProducerMongo is a command that creates either mongodb producer or mongodb atlas producer [Deprecated: Use dynamic-secret-create-mongodb command] + * @alias module:model/GatewayCreateProducerMongo + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerMongo(name) { + _classCallCheck(this, GatewayCreateProducerMongo); -DSProducerDetails.prototype['db_user_name'] = undefined; -/** - * @member {Boolean} delete_protection - */ + GatewayCreateProducerMongo.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -DSProducerDetails.prototype['delete_protection'] = undefined; -/** - * @member {Number} dynamic_secret_id - */ -DSProducerDetails.prototype['dynamic_secret_id'] = undefined; -/** - * @member {String} dynamic_secret_key - */ + _createClass(GatewayCreateProducerMongo, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerMongo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMongo} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMongo} The populated GatewayCreateProducerMongo instance. + */ -DSProducerDetails.prototype['dynamic_secret_key'] = undefined; -/** - * @member {String} dynamic_secret_name - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMongo(); -DSProducerDetails.prototype['dynamic_secret_name'] = undefined; -/** - * @member {String} dynamic_secret_type - */ + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -DSProducerDetails.prototype['dynamic_secret_type'] = undefined; -/** - * @member {String} eks_access_key_id - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -DSProducerDetails.prototype['eks_access_key_id'] = undefined; -/** - * @member {String} eks_assume_role - */ + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } -DSProducerDetails.prototype['eks_assume_role'] = undefined; -/** - * @member {String} eks_cluster_ca_certificate - */ + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } -DSProducerDetails.prototype['eks_cluster_ca_certificate'] = undefined; -/** - * @member {String} eks_cluster_endpoint - */ + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } -DSProducerDetails.prototype['eks_cluster_endpoint'] = undefined; -/** - * @member {String} eks_cluster_name - */ + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); + } -DSProducerDetails.prototype['eks_cluster_name'] = undefined; -/** - * @member {String} eks_region - */ + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } -DSProducerDetails.prototype['eks_region'] = undefined; -/** - * @member {String} eks_secret_access_key - */ + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } -DSProducerDetails.prototype['eks_secret_access_key'] = undefined; -/** - * @member {Boolean} enable_admin_rotation - */ + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } -DSProducerDetails.prototype['enable_admin_rotation'] = undefined; -/** - * relevant for PRIVATE_KEY_JWT client authentication type - * @member {Boolean} enforce_replay_prevention - */ + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } -DSProducerDetails.prototype['enforce_replay_prevention'] = undefined; -/** - * @member {String} externally_provided_user - */ + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } -DSProducerDetails.prototype['externally_provided_user'] = undefined; -/** - * @member {String} failure_message - */ + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } -DSProducerDetails.prototype['failure_message'] = undefined; -/** - * @member {String} fixed_user_only - */ + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } -DSProducerDetails.prototype['fixed_user_only'] = undefined; -/** - * @member {String} gcp_key_algo - */ + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + } -DSProducerDetails.prototype['gcp_key_algo'] = undefined; -/** - * @member {Object.>} gcp_role_bindings - */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -DSProducerDetails.prototype['gcp_role_bindings'] = undefined; -/** - * GCPServiceAccountEmail overrides the deprecated field from the target - * @member {String} gcp_service_account_email - */ + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -DSProducerDetails.prototype['gcp_service_account_email'] = undefined; -/** - * @member {String} gcp_service_account_key - */ + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -DSProducerDetails.prototype['gcp_service_account_key'] = undefined; -/** - * @member {String} gcp_service_account_key_base64 - */ + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -DSProducerDetails.prototype['gcp_service_account_key_base64'] = undefined; -/** - * @member {String} gcp_service_account_type - */ + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -DSProducerDetails.prototype['gcp_service_account_type'] = undefined; -/** - * @member {String} gcp_tmp_service_account_name - */ + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } -DSProducerDetails.prototype['gcp_tmp_service_account_name'] = undefined; -/** - * @member {String} gcp_token_lifetime - */ + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -DSProducerDetails.prototype['gcp_token_lifetime'] = undefined; -/** - * @member {String} gcp_token_scope - */ + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -DSProducerDetails.prototype['gcp_token_scope'] = undefined; -/** - * @member {String} gcp_token_type - */ + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -DSProducerDetails.prototype['gcp_token_type'] = undefined; -/** - * @member {Number} github_app_id - */ + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -DSProducerDetails.prototype['github_app_id'] = undefined; -/** - * @member {String} github_app_private_key - */ + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -DSProducerDetails.prototype['github_app_private_key'] = undefined; -/** - * @member {String} github_base_url - */ + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -DSProducerDetails.prototype['github_base_url'] = undefined; -/** - * @member {Number} github_installation_id - */ + return obj; + } + }]); -DSProducerDetails.prototype['github_installation_id'] = undefined; + return GatewayCreateProducerMongo; +}(); /** - * @member {Object.} github_installation_token_permissions + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DSProducerDetails.prototype['github_installation_token_permissions'] = undefined; -/** - * @member {Array.} github_installation_token_repositories - */ -DSProducerDetails.prototype['github_installation_token_repositories'] = undefined; +GatewayCreateProducerMongo.prototype['delete_protection'] = undefined; /** - * @member {Array.} github_installation_token_repositories_ids + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DSProducerDetails.prototype['github_installation_token_repositories_ids'] = undefined; +GatewayCreateProducerMongo.prototype['json'] = false; /** - * @member {String} github_repository_path + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key */ -DSProducerDetails.prototype['github_repository_path'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; /** - * @member {String} gke_cluster_ca_certificate + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key */ -DSProducerDetails.prototype['gke_cluster_ca_certificate'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; /** - * @member {String} gke_cluster_endpoint + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id */ -DSProducerDetails.prototype['gke_cluster_endpoint'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; /** - * @member {String} gke_cluster_name + * MongoDB custom data + * @member {String} mongodb-custom-data */ -DSProducerDetails.prototype['gke_cluster_name'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-custom-data'] = undefined; /** - * @member {String} gke_service_account_key + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db */ -DSProducerDetails.prototype['gke_service_account_key'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; /** - * @member {String} gke_service_account_name + * MongoDB server host and port + * @member {String} mongodb-host-port */ -DSProducerDetails.prototype['gke_service_account_name'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-host-port'] = undefined; /** - * @member {Array.} grant_types + * MongoDB Name + * @member {String} mongodb-name */ -DSProducerDetails.prototype['grant_types'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-name'] = undefined; /** - * @member {String} groups + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password */ -DSProducerDetails.prototype['groups'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-password'] = undefined; /** - * @member {String} hanadb_creation_statements + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' */ -DSProducerDetails.prototype['hanadb_creation_statements'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-roles'] = '[]'; /** - * @member {String} hanadb_revocation_statements + * MongoDB server URI + * @member {String} mongodb-server-uri */ -DSProducerDetails.prototype['hanadb_revocation_statements'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-server-uri'] = undefined; /** - * @member {String} host_name + * MongoDB server URI options + * @member {String} mongodb-uri-options */ -DSProducerDetails.prototype['host_name'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-uri-options'] = undefined; /** - * @member {String} host_port + * MongoDB server username + * @member {String} mongodb-username */ -DSProducerDetails.prototype['host_port'] = undefined; +GatewayCreateProducerMongo.prototype['mongodb-username'] = undefined; /** - * @member {String} implementation_type + * Dynamic secret name + * @member {String} name */ -DSProducerDetails.prototype['implementation_type'] = undefined; +GatewayCreateProducerMongo.prototype['name'] = undefined; /** - * @member {String} is_fixed_user + * The length of the password to be generated + * @member {String} password-length */ -DSProducerDetails.prototype['is_fixed_user'] = undefined; +GatewayCreateProducerMongo.prototype['password-length'] = undefined; /** - * relevant for CLIENT_TLS_CERTIFICATE client authentication type - * @member {String} issuer + * Encrypt producer with following key + * @member {String} producer-encryption-key-name */ -DSProducerDetails.prototype['issuer'] = undefined; +GatewayCreateProducerMongo.prototype['producer-encryption-key-name'] = undefined; /** - * @member {Array.} item_targets_assoc + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -DSProducerDetails.prototype['item_targets_assoc'] = undefined; +GatewayCreateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; /** - * @member {String} jwks + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -DSProducerDetails.prototype['jwks'] = undefined; +GatewayCreateProducerMongo.prototype['secure-access-enable'] = undefined; /** - * @member {String} jwks_url + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -DSProducerDetails.prototype['jwks_url'] = undefined; +GatewayCreateProducerMongo.prototype['secure-access-host'] = undefined; /** - * comma-separated list of allowed namespaces. Can hold just * which signifies that any namespace is allowed - * @member {String} k8s_allowed_namespaces + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -DSProducerDetails.prototype['k8s_allowed_namespaces'] = undefined; +GatewayCreateProducerMongo.prototype['secure-access-web'] = false; /** - * @member {String} k8s_bearer_token + * Add tags attached to this object + * @member {Array.} tags */ -DSProducerDetails.prototype['k8s_bearer_token'] = undefined; +GatewayCreateProducerMongo.prototype['tags'] = undefined; /** - * @member {String} k8s_cluster_ca_certificate + * Target name + * @member {String} target-name */ -DSProducerDetails.prototype['k8s_cluster_ca_certificate'] = undefined; +GatewayCreateProducerMongo.prototype['target-name'] = undefined; /** - * @member {String} k8s_cluster_endpoint + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -DSProducerDetails.prototype['k8s_cluster_endpoint'] = undefined; +GatewayCreateProducerMongo.prototype['token'] = undefined; /** - * when native k8s is in dynamic mode, user can define allowed namespaces, K8sServiceAccount doesn't exist from the start and will only be created at time of getting dynamic secret value By default dynamic mode is false and producer behaves like it did before - * @member {Boolean} k8s_dynamic_mode + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -DSProducerDetails.prototype['k8s_dynamic_mode'] = undefined; +GatewayCreateProducerMongo.prototype['uid-token'] = undefined; /** - * Yaml definition for creation of temporary objects. Field that can hold multiple docs from which following will be extracted: ServiceAccount, Role/ClusterRole and RoleBinding/ClusterRoleBinding. If ServiceAccount not specified - it will be generated automatically - * @member {Array.} k8s_multiple_doc_yaml_temp_definition + * User TTL + * @member {String} user-ttl + * @default '60m' */ -DSProducerDetails.prototype['k8s_multiple_doc_yaml_temp_definition'] = undefined; -/** - * @member {String} k8s_namespace - */ +GatewayCreateProducerMongo.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerMongo; +exports["default"] = _default; -DSProducerDetails.prototype['k8s_namespace'] = undefined; -/** - * Name of the pre-existing Role or ClusterRole to bind a generated service account to. - * @member {String} k8s_role_name - */ +/***/ }), -DSProducerDetails.prototype['k8s_role_name'] = undefined; -/** - * @member {String} k8s_role_type - */ +/***/ 71784: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -DSProducerDetails.prototype['k8s_role_type'] = undefined; -/** - * @member {String} k8s_service_account - */ +"use strict"; -DSProducerDetails.prototype['k8s_service_account'] = undefined; -/** - * @member {Number} last_admin_rotation - */ -DSProducerDetails.prototype['last_admin_rotation'] = undefined; -/** - * @member {String} ldap_audience - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -DSProducerDetails.prototype['ldap_audience'] = undefined; -/** - * @member {String} ldap_bind_dn - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -DSProducerDetails.prototype['ldap_bind_dn'] = undefined; -/** - * @member {String} ldap_bind_password - */ +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); -DSProducerDetails.prototype['ldap_bind_password'] = undefined; -/** - * @member {String} ldap_certificate - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -DSProducerDetails.prototype['ldap_certificate'] = undefined; -/** - * @member {String} ldap_group_dn - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -DSProducerDetails.prototype['ldap_group_dn'] = undefined; -/** - * @member {String} ldap_token_expiration - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -DSProducerDetails.prototype['ldap_token_expiration'] = undefined; -/** - * @member {String} ldap_url - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -DSProducerDetails.prototype['ldap_url'] = undefined; /** - * @member {String} ldap_user_attr + * The GatewayCreateProducerMongoOutput model module. + * @module model/GatewayCreateProducerMongoOutput + * @version 3.6.3 */ +var GatewayCreateProducerMongoOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMongoOutput. + * @alias module:model/GatewayCreateProducerMongoOutput + */ + function GatewayCreateProducerMongoOutput() { + _classCallCheck(this, GatewayCreateProducerMongoOutput); -DSProducerDetails.prototype['ldap_user_attr'] = undefined; -/** - * @member {String} ldap_user_dn - */ + GatewayCreateProducerMongoOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -DSProducerDetails.prototype['ldap_user_dn'] = undefined; -/** - * @member {String} metadata - */ -DSProducerDetails.prototype['metadata'] = undefined; -/** - * @member {String} mongodb_atlas_api_private_key - */ + _createClass(GatewayCreateProducerMongoOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMongoOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMongoOutput} The populated GatewayCreateProducerMongoOutput instance. + */ -DSProducerDetails.prototype['mongodb_atlas_api_private_key'] = undefined; -/** - * @member {String} mongodb_atlas_api_public_key - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMongoOutput(); -DSProducerDetails.prototype['mongodb_atlas_api_public_key'] = undefined; -/** - * mongodb atlas fields - * @member {String} mongodb_atlas_project_id - */ + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } -DSProducerDetails.prototype['mongodb_atlas_project_id'] = undefined; -/** - * @member {String} mongodb_custom_data - */ + return obj; + } + }]); -DSProducerDetails.prototype['mongodb_custom_data'] = undefined; + return GatewayCreateProducerMongoOutput; +}(); /** - * common fields - * @member {String} mongodb_db_name + * @member {module:model/DSProducerDetails} producer_details */ -DSProducerDetails.prototype['mongodb_db_name'] = undefined; -/** - * @member {String} mongodb_default_auth_db - */ -DSProducerDetails.prototype['mongodb_default_auth_db'] = undefined; -/** - * @member {String} mongodb_host_port - */ +GatewayCreateProducerMongoOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerMongoOutput; +exports["default"] = _default; -DSProducerDetails.prototype['mongodb_host_port'] = undefined; -/** - * @member {Boolean} mongodb_is_atlas - */ +/***/ }), -DSProducerDetails.prototype['mongodb_is_atlas'] = undefined; -/** - * @member {String} mongodb_password - */ +/***/ 30467: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -DSProducerDetails.prototype['mongodb_password'] = undefined; -/** - * common fields - * @member {String} mongodb_roles - */ +"use strict"; -DSProducerDetails.prototype['mongodb_roles'] = undefined; -/** - * mongodb fields - * @member {String} mongodb_uri_connection - */ -DSProducerDetails.prototype['mongodb_uri_connection'] = undefined; -/** - * @member {String} mongodb_uri_options - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -DSProducerDetails.prototype['mongodb_uri_options'] = undefined; -/** - * @member {String} mongodb_username - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -DSProducerDetails.prototype['mongodb_username'] = undefined; /** - * @member {String} mssql_creation_statements + * The GatewayCreateProducerMySQL model module. + * @module model/GatewayCreateProducerMySQL + * @version 3.6.3 */ +var GatewayCreateProducerMySQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMySQL. + * gatewayCreateProducerMySQL is a command that creates mysql producer [Deprecated: Use dynamic-secret-create-mysql command] + * @alias module:model/GatewayCreateProducerMySQL + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerMySQL(name) { + _classCallCheck(this, GatewayCreateProducerMySQL); + + GatewayCreateProducerMySQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMySQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerMySQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMySQL} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMySQL} The populated GatewayCreateProducerMySQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMySQL(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + } + + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); + } + + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); + } + + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); -DSProducerDetails.prototype['mssql_creation_statements'] = undefined; + return GatewayCreateProducerMySQL; +}(); /** - * @member {String} mssql_revocation_statements + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -DSProducerDetails.prototype['mssql_revocation_statements'] = undefined; -/** - * @member {String} mysql_creation_statements - */ -DSProducerDetails.prototype['mysql_creation_statements'] = undefined; +GatewayCreateProducerMySQL.prototype['db-server-certificates'] = undefined; /** - * @member {String} mysql_revocation_statements + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -DSProducerDetails.prototype['mysql_revocation_statements'] = undefined; +GatewayCreateProducerMySQL.prototype['db-server-name'] = undefined; /** - * @member {String} oracle_creation_statements + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DSProducerDetails.prototype['oracle_creation_statements'] = undefined; +GatewayCreateProducerMySQL.prototype['delete_protection'] = undefined; /** - * @member {String} password + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DSProducerDetails.prototype['password'] = undefined; +GatewayCreateProducerMySQL.prototype['json'] = false; /** - * @member {Number} password_length + * MySQL DB Name + * @member {String} mysql-dbname */ -DSProducerDetails.prototype['password_length'] = undefined; +GatewayCreateProducerMySQL.prototype['mysql-dbname'] = undefined; /** - * @member {String} password_policy + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' */ -DSProducerDetails.prototype['password_policy'] = undefined; +GatewayCreateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; /** - * @member {String} payload + * MySQL Password + * @member {String} mysql-password */ -DSProducerDetails.prototype['payload'] = undefined; +GatewayCreateProducerMySQL.prototype['mysql-password'] = undefined; /** - * @member {String} ping_url + * MySQL Port + * @member {String} mysql-port + * @default '3306' */ -DSProducerDetails.prototype['ping_url'] = undefined; +GatewayCreateProducerMySQL.prototype['mysql-port'] = '3306'; /** - * @member {String} postgres_creation_statements + * MySQL Revocation statements + * @member {String} mysql-revocation-statements */ -DSProducerDetails.prototype['postgres_creation_statements'] = undefined; +GatewayCreateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; /** - * @member {String} postgres_revocation_statements + * MySQL Creation statements + * @member {String} mysql-screation-statements */ -DSProducerDetails.prototype['postgres_revocation_statements'] = undefined; +GatewayCreateProducerMySQL.prototype['mysql-screation-statements'] = undefined; /** - * @member {String} privileged_user + * MySQL Username + * @member {String} mysql-username */ -DSProducerDetails.prototype['privileged_user'] = undefined; +GatewayCreateProducerMySQL.prototype['mysql-username'] = undefined; /** - * @member {String} rabbitmq_server_password + * Dynamic secret name + * @member {String} name */ -DSProducerDetails.prototype['rabbitmq_server_password'] = undefined; +GatewayCreateProducerMySQL.prototype['name'] = undefined; /** - * @member {String} rabbitmq_server_uri + * The length of the password to be generated + * @member {String} password-length */ -DSProducerDetails.prototype['rabbitmq_server_uri'] = undefined; +GatewayCreateProducerMySQL.prototype['password-length'] = undefined; /** - * @member {String} rabbitmq_server_user + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -DSProducerDetails.prototype['rabbitmq_server_user'] = undefined; +GatewayCreateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} rabbitmq_user_conf_permission + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -DSProducerDetails.prototype['rabbitmq_user_conf_permission'] = undefined; +GatewayCreateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; /** - * @member {String} rabbitmq_user_read_permission + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -DSProducerDetails.prototype['rabbitmq_user_read_permission'] = undefined; +GatewayCreateProducerMySQL.prototype['secure-access-enable'] = undefined; /** - * @member {String} rabbitmq_user_tags + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host */ -DSProducerDetails.prototype['rabbitmq_user_tags'] = undefined; +GatewayCreateProducerMySQL.prototype['secure-access-host'] = undefined; /** - * @member {String} rabbitmq_user_vhost + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -DSProducerDetails.prototype['rabbitmq_user_vhost'] = undefined; +GatewayCreateProducerMySQL.prototype['secure-access-web'] = false; /** - * @member {String} rabbitmq_user_write_permission + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false */ -DSProducerDetails.prototype['rabbitmq_user_write_permission'] = undefined; +GatewayCreateProducerMySQL.prototype['ssl'] = false; /** - * @member {Array.} redirect_uris + * SSL connection certificate + * @member {String} ssl-certificate */ -DSProducerDetails.prototype['redirect_uris'] = undefined; +GatewayCreateProducerMySQL.prototype['ssl-certificate'] = undefined; /** - * @member {String} redshift_creation_statements + * Add tags attached to this object + * @member {Array.} tags */ -DSProducerDetails.prototype['redshift_creation_statements'] = undefined; +GatewayCreateProducerMySQL.prototype['tags'] = undefined; /** - * @member {Array.} restricted_scopes + * Target name + * @member {String} target-name */ -DSProducerDetails.prototype['restricted_scopes'] = undefined; +GatewayCreateProducerMySQL.prototype['target-name'] = undefined; /** - * @member {String} revoke_sync_url + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -DSProducerDetails.prototype['revoke_sync_url'] = undefined; +GatewayCreateProducerMySQL.prototype['token'] = undefined; /** - * @member {String} rotate_sync_url + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -DSProducerDetails.prototype['rotate_sync_url'] = undefined; +GatewayCreateProducerMySQL.prototype['uid-token'] = undefined; /** - * @member {Array.} scopes + * User TTL + * @member {String} user-ttl + * @default '60m' */ -DSProducerDetails.prototype['scopes'] = undefined; -/** - * @member {module:model/SecureRemoteAccess} secure_remote_access_details - */ +GatewayCreateProducerMySQL.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerMySQL; +exports["default"] = _default; -DSProducerDetails.prototype['secure_remote_access_details'] = undefined; -/** - * @member {Number} session_extension_warn_interval_min - */ +/***/ }), -DSProducerDetails.prototype['session_extension_warn_interval_min'] = undefined; -/** - * @member {String} sf_account - */ +/***/ 84594: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -DSProducerDetails.prototype['sf_account'] = undefined; -/** - * generated users info - * @member {String} sf_user_role - */ +"use strict"; -DSProducerDetails.prototype['sf_user_role'] = undefined; -/** - * @member {String} sf_warehouse_name - */ -DSProducerDetails.prototype['sf_warehouse_name'] = undefined; -/** - * TODO delete this after migration - * @member {String} should_stop - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -DSProducerDetails.prototype['should_stop'] = undefined; /** - * @member {String} signing_algorithm + * The GatewayCreateProducerMySQLOutput model module. + * @module model/GatewayCreateProducerMySQLOutput + * @version 3.6.3 */ +var GatewayCreateProducerMySQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMySQLOutput. + * @alias module:model/GatewayCreateProducerMySQLOutput + */ + function GatewayCreateProducerMySQLOutput() { + _classCallCheck(this, GatewayCreateProducerMySQLOutput); -DSProducerDetails.prototype['signing_algorithm'] = undefined; + GatewayCreateProducerMySQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMySQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMySQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMySQLOutput} The populated GatewayCreateProducerMySQLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMySQLOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerMySQLOutput; +}(); /** - * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field - * @member {String} ssl_connection_certificate + * @member {module:model/DSProducerDetails} producer_details */ -DSProducerDetails.prototype['ssl_connection_certificate'] = undefined; + +GatewayCreateProducerMySQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerMySQLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 75168: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB - * @member {Boolean} ssl_connection_mode + * The GatewayCreateProducerNativeK8S model module. + * @module model/GatewayCreateProducerNativeK8S + * @version 3.6.3 */ +var GatewayCreateProducerNativeK8S = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerNativeK8S. + * gatewayCreateProducerNativeK8S is a command that creates k8s producer [Deprecated: Use dynamic-secret-create-k8s command] + * @alias module:model/GatewayCreateProducerNativeK8S + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerNativeK8S(name) { + _classCallCheck(this, GatewayCreateProducerNativeK8S); -DSProducerDetails.prototype['ssl_connection_mode'] = undefined; + GatewayCreateProducerNativeK8S.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerNativeK8S, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerNativeK8S} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerNativeK8S} The populated GatewayCreateProducerNativeK8S instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerNativeK8S(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerNativeK8S; +}(); /** - * @member {String} subject_dn + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DSProducerDetails.prototype['subject_dn'] = undefined; + +GatewayCreateProducerNativeK8S.prototype['delete_protection'] = undefined; /** - * @member {Array.} tags + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DSProducerDetails.prototype['tags'] = undefined; +GatewayCreateProducerNativeK8S.prototype['json'] = false; /** - * @member {Number} timeout_seconds + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces */ -DSProducerDetails.prototype['timeout_seconds'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; /** - * @member {Boolean} use_gw_cloud_identity + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert */ -DSProducerDetails.prototype['use_gw_cloud_identity'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; /** - * @member {Boolean} use_gw_service_account + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint */ -DSProducerDetails.prototype['use_gw_service_account'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; /** - * @member {String} user_name + * K8S cluster Bearer token + * @member {String} k8s-cluster-token */ -DSProducerDetails.prototype['user_name'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; /** - * @member {String} user_password + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace */ -DSProducerDetails.prototype['user_password'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-namespace'] = undefined; /** - * @member {String} user_principal_name + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name */ -DSProducerDetails.prototype['user_principal_name'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; /** - * @member {String} user_ttl + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type */ -DSProducerDetails.prototype['user_ttl'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; /** - * @member {Number} username_length + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def */ -DSProducerDetails.prototype['username_length'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; /** - * @member {String} username_policy + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account */ -DSProducerDetails.prototype['username_policy'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-service-account'] = undefined; /** - * @member {Boolean} venafi_allow_subdomains + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type */ -DSProducerDetails.prototype['venafi_allow_subdomains'] = undefined; +GatewayCreateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; /** - * @member {Array.} venafi_allowed_domains + * Dynamic secret name + * @member {String} name */ -DSProducerDetails.prototype['venafi_allowed_domains'] = undefined; +GatewayCreateProducerNativeK8S.prototype['name'] = undefined; /** - * @member {String} venafi_api_key + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -DSProducerDetails.prototype['venafi_api_key'] = undefined; +GatewayCreateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} venafi_auto_generated_folder + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading */ -DSProducerDetails.prototype['venafi_auto_generated_folder'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; /** - * @member {String} venafi_base_url + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -DSProducerDetails.prototype['venafi_base_url'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; /** - * @member {Boolean} venafi_root_first_in_chain + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint */ -DSProducerDetails.prototype['venafi_root_first_in_chain'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; /** - * @member {Boolean} venafi_sign_using_akeyless_pki + * The K8s dashboard url + * @member {String} secure-access-dashboard-url */ -DSProducerDetails.prototype['venafi_sign_using_akeyless_pki'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; /** - * @member {String} venafi_signer_key_name + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -DSProducerDetails.prototype['venafi_signer_key_name'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-enable'] = undefined; /** - * @member {Boolean} venafi_store_private_key + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -DSProducerDetails.prototype['venafi_store_private_key'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-web'] = false; /** - * @member {String} venafi_tpp_access_token + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false */ -DSProducerDetails.prototype['venafi_tpp_access_token'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; /** - * @member {String} venafi_tpp_client_id + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false */ -DSProducerDetails.prototype['venafi_tpp_client_id'] = undefined; +GatewayCreateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; /** - * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead - * @member {String} venafi_tpp_password + * Add tags attached to this object + * @member {Array.} tags */ -DSProducerDetails.prototype['venafi_tpp_password'] = undefined; +GatewayCreateProducerNativeK8S.prototype['tags'] = undefined; /** - * @member {String} venafi_tpp_refresh_token + * Target name + * @member {String} target-name */ -DSProducerDetails.prototype['venafi_tpp_refresh_token'] = undefined; +GatewayCreateProducerNativeK8S.prototype['target-name'] = undefined; /** - * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead - * @member {String} venafi_tpp_username + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -DSProducerDetails.prototype['venafi_tpp_username'] = undefined; +GatewayCreateProducerNativeK8S.prototype['token'] = undefined; /** - * @member {Boolean} venafi_use_tpp + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -DSProducerDetails.prototype['venafi_use_tpp'] = undefined; +GatewayCreateProducerNativeK8S.prototype['uid-token'] = undefined; /** - * @member {String} venafi_zone + * Use the GW's service account + * @member {Boolean} use-gw-service-account */ -DSProducerDetails.prototype['venafi_zone'] = undefined; +GatewayCreateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; /** - * @member {Number} warn_before_user_expiration_min + * User TTL + * @member {String} user-ttl + * @default '60m' */ -DSProducerDetails.prototype['warn_before_user_expiration_min'] = undefined; -var _default = DSProducerDetails; +GatewayCreateProducerNativeK8S.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerNativeK8S; exports["default"] = _default; /***/ }), -/***/ 33221: +/***/ 52361: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -44378,7 +119574,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -44389,20 +119587,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DataProtectionSection model module. - * @module model/DataProtectionSection - * @version 3.3.16 + * The GatewayCreateProducerNativeK8SOutput model module. + * @module model/GatewayCreateProducerNativeK8SOutput + * @version 3.6.3 */ -var DataProtectionSection = /*#__PURE__*/function () { +var GatewayCreateProducerNativeK8SOutput = /*#__PURE__*/function () { /** - * Constructs a new DataProtectionSection. - * We need the fields to be pointers as we use the same struct for partial updates as well - * @alias module:model/DataProtectionSection + * Constructs a new GatewayCreateProducerNativeK8SOutput. + * @alias module:model/GatewayCreateProducerNativeK8SOutput */ - function DataProtectionSection() { - _classCallCheck(this, DataProtectionSection); + function GatewayCreateProducerNativeK8SOutput() { + _classCallCheck(this, GatewayCreateProducerNativeK8SOutput); - DataProtectionSection.initialize(this); + GatewayCreateProducerNativeK8SOutput.initialize(this); } /** * Initializes the fields of this object. @@ -44411,25 +119608,25 @@ var DataProtectionSection = /*#__PURE__*/function () { */ - _createClass(DataProtectionSection, null, [{ + _createClass(GatewayCreateProducerNativeK8SOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DataProtectionSection from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DataProtectionSection} obj Optional instance to populate. - * @return {module:model/DataProtectionSection} The populated DataProtectionSection instance. + * @param {module:model/GatewayCreateProducerNativeK8SOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerNativeK8SOutput} The populated GatewayCreateProducerNativeK8SOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DataProtectionSection(); + obj = obj || new GatewayCreateProducerNativeK8SOutput(); - if (data.hasOwnProperty('enable_classic_key_protection')) { - obj['enable_classic_key_protection'] = _ApiClient["default"].convertToType(data['enable_classic_key_protection'], 'Boolean'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -44437,20 +119634,20 @@ var DataProtectionSection = /*#__PURE__*/function () { } }]); - return DataProtectionSection; + return GatewayCreateProducerNativeK8SOutput; }(); /** - * @member {Boolean} enable_classic_key_protection + * @member {module:model/DSProducerDetails} producer_details */ -DataProtectionSection.prototype['enable_classic_key_protection'] = undefined; -var _default = DataProtectionSection; +GatewayCreateProducerNativeK8SOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerNativeK8SOutput; exports["default"] = _default; /***/ }), -/***/ 735: +/***/ 5897: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -44461,7 +119658,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -44472,19 +119669,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DatadogForwardingConfig model module. - * @module model/DatadogForwardingConfig - * @version 3.3.16 + * The GatewayCreateProducerOracleDb model module. + * @module model/GatewayCreateProducerOracleDb + * @version 3.6.3 */ -var DatadogForwardingConfig = /*#__PURE__*/function () { +var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { /** - * Constructs a new DatadogForwardingConfig. - * @alias module:model/DatadogForwardingConfig + * Constructs a new GatewayCreateProducerOracleDb. + * gatewayCreateProducerOracleDb is a command that creates oracle db producer [Deprecated: Use dynamic-secret-create-oracledb command] + * @alias module:model/GatewayCreateProducerOracleDb + * @param name {String} Dynamic secret name */ - function DatadogForwardingConfig() { - _classCallCheck(this, DatadogForwardingConfig); + function GatewayCreateProducerOracleDb(name) { + _classCallCheck(this, GatewayCreateProducerOracleDb); - DatadogForwardingConfig.initialize(this); + GatewayCreateProducerOracleDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -44493,188 +119692,115 @@ var DatadogForwardingConfig = /*#__PURE__*/function () { */ - _createClass(DatadogForwardingConfig, null, [{ + _createClass(GatewayCreateProducerOracleDb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a DatadogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DatadogForwardingConfig} obj Optional instance to populate. - * @return {module:model/DatadogForwardingConfig} The populated DatadogForwardingConfig instance. + * @param {module:model/GatewayCreateProducerOracleDb} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerOracleDb} The populated GatewayCreateProducerOracleDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DatadogForwardingConfig(); + obj = obj || new GatewayCreateProducerOracleDb(); - if (data.hasOwnProperty('datadog_api_key')) { - obj['datadog_api_key'] = _ApiClient["default"].convertToType(data['datadog_api_key'], 'String'); + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); } - if (data.hasOwnProperty('datadog_host')) { - obj['datadog_host'] = _ApiClient["default"].convertToType(data['datadog_host'], 'String'); + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); } - if (data.hasOwnProperty('datadog_log_service')) { - obj['datadog_log_service'] = _ApiClient["default"].convertToType(data['datadog_log_service'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('datadog_log_source')) { - obj['datadog_log_source'] = _ApiClient["default"].convertToType(data['datadog_log_source'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('datadog_log_tags')) { - obj['datadog_log_tags'] = _ApiClient["default"].convertToType(data['datadog_log_tags'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - } - - return obj; - } - }]); - - return DatadogForwardingConfig; -}(); -/** - * @member {String} datadog_api_key - */ - - -DatadogForwardingConfig.prototype['datadog_api_key'] = undefined; -/** - * @member {String} datadog_host - */ - -DatadogForwardingConfig.prototype['datadog_host'] = undefined; -/** - * @member {String} datadog_log_service - */ - -DatadogForwardingConfig.prototype['datadog_log_service'] = undefined; -/** - * @member {String} datadog_log_source - */ - -DatadogForwardingConfig.prototype['datadog_log_source'] = undefined; -/** - * @member {String} datadog_log_tags - */ - -DatadogForwardingConfig.prototype['datadog_log_tags'] = undefined; -var _default = DatadogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 31548: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DbTargetDetails model module. - * @module model/DbTargetDetails - * @version 3.3.16 - */ -var DbTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new DbTargetDetails. - * DbTargetDetails - * @alias module:model/DbTargetDetails - */ - function DbTargetDetails() { - _classCallCheck(this, DbTargetDetails); + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); + } - DbTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); + } + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); + } - _createClass(DbTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DbTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DbTargetDetails} obj Optional instance to populate. - * @return {module:model/DbTargetDetails} The populated DbTargetDetails instance. - */ + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DbTargetDetails(); + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } - if (data.hasOwnProperty('db_host_name')) { - obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); } - if (data.hasOwnProperty('db_name')) { - obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('db_port')) { - obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('db_private_key')) { - obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('db_private_key_passphrase')) { - obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('db_pwd')) { - obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('db_server_certificates')) { - obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('db_server_name')) { - obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('db_user_name')) { - obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('sf_account')) { - obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('ssl_connection_certificate')) { - obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('ssl_connection_mode')) { - obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -44682,80 +119808,159 @@ var DbTargetDetails = /*#__PURE__*/function () { } }]); - return DbTargetDetails; + return GatewayCreateProducerOracleDb; }(); /** - * @member {String} db_host_name + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -DbTargetDetails.prototype['db_host_name'] = undefined; +GatewayCreateProducerOracleDb.prototype['db-server-certificates'] = undefined; /** - * @member {String} db_name + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -DbTargetDetails.prototype['db_name'] = undefined; +GatewayCreateProducerOracleDb.prototype['db-server-name'] = undefined; /** - * @member {String} db_port + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DbTargetDetails.prototype['db_port'] = undefined; +GatewayCreateProducerOracleDb.prototype['delete_protection'] = undefined; /** - * (Optional) Private Key in PEM format - * @member {String} db_private_key + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DbTargetDetails.prototype['db_private_key'] = undefined; +GatewayCreateProducerOracleDb.prototype['json'] = false; /** - * @member {String} db_private_key_passphrase + * Dynamic secret name + * @member {String} name */ -DbTargetDetails.prototype['db_private_key_passphrase'] = undefined; +GatewayCreateProducerOracleDb.prototype['name'] = undefined; /** - * @member {String} db_pwd + * Oracle Host + * @member {String} oracle-host + * @default '127.0.0.1' */ -DbTargetDetails.prototype['db_pwd'] = undefined; +GatewayCreateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; /** - * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. - * @member {String} db_server_certificates + * Oracle Password + * @member {String} oracle-password */ -DbTargetDetails.prototype['db_server_certificates'] = undefined; +GatewayCreateProducerOracleDb.prototype['oracle-password'] = undefined; /** - * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. - * @member {String} db_server_name + * Oracle Port + * @member {String} oracle-port + * @default '1521' */ -DbTargetDetails.prototype['db_server_name'] = undefined; +GatewayCreateProducerOracleDb.prototype['oracle-port'] = '1521'; /** - * @member {String} db_user_name + * Oracle Revocation statements + * @member {String} oracle-revocation-statements */ -DbTargetDetails.prototype['db_user_name'] = undefined; +GatewayCreateProducerOracleDb.prototype['oracle-revocation-statements'] = undefined; /** - * @member {String} sf_account + * Oracle Creation statements + * @member {String} oracle-screation-statements */ -DbTargetDetails.prototype['sf_account'] = undefined; +GatewayCreateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; /** - * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field - * @member {String} ssl_connection_certificate + * Oracle DB Name + * @member {String} oracle-service-name */ -DbTargetDetails.prototype['ssl_connection_certificate'] = undefined; +GatewayCreateProducerOracleDb.prototype['oracle-service-name'] = undefined; /** - * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB - * @member {Boolean} ssl_connection_mode + * Oracle Username + * @member {String} oracle-username */ -DbTargetDetails.prototype['ssl_connection_mode'] = undefined; -var _default = DbTargetDetails; +GatewayCreateProducerOracleDb.prototype['oracle-username'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerOracleDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + * @default 'false' + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-enable'] = 'false'; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerOracleDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerOracleDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerOracleDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerOracleDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerOracleDb.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerOracleDb; exports["default"] = _default; /***/ }), -/***/ 3280: +/***/ 25132: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -44766,7 +119971,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -44777,21 +119984,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Decrypt model module. - * @module model/Decrypt - * @version 3.3.16 + * The GatewayCreateProducerOracleDbOutput model module. + * @module model/GatewayCreateProducerOracleDbOutput + * @version 3.6.3 */ -var Decrypt = /*#__PURE__*/function () { +var GatewayCreateProducerOracleDbOutput = /*#__PURE__*/function () { /** - * Constructs a new Decrypt. - * decrypt is a command that decrypts ciphertext into plaintext by using an AES key. - * @alias module:model/Decrypt - * @param keyName {String} The name of the key to use in the decryption process + * Constructs a new GatewayCreateProducerOracleDbOutput. + * @alias module:model/GatewayCreateProducerOracleDbOutput */ - function Decrypt(keyName) { - _classCallCheck(this, Decrypt); + function GatewayCreateProducerOracleDbOutput() { + _classCallCheck(this, GatewayCreateProducerOracleDbOutput); - Decrypt.initialize(this, keyName); + GatewayCreateProducerOracleDbOutput.initialize(this); } /** * Initializes the fields of this object. @@ -44800,65 +120005,25 @@ var Decrypt = /*#__PURE__*/function () { */ - _createClass(Decrypt, null, [{ + _createClass(GatewayCreateProducerOracleDbOutput, null, [{ key: "initialize", - value: function initialize(obj, keyName) { - obj['key-name'] = keyName; - } + value: function initialize(obj) {} /** - * Constructs a Decrypt from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Decrypt} obj Optional instance to populate. - * @return {module:model/Decrypt} The populated Decrypt instance. + * @param {module:model/GatewayCreateProducerOracleDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerOracleDbOutput} The populated GatewayCreateProducerOracleDbOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Decrypt(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('encryption-context')) { - obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('output-format')) { - obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } + obj = obj || new GatewayCreateProducerOracleDbOutput(); - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -44866,76 +120031,20 @@ var Decrypt = /*#__PURE__*/function () { } }]); - return Decrypt; + return GatewayCreateProducerOracleDbOutput; }(); /** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext - */ - - -Decrypt.prototype['ciphertext'] = undefined; -/** - * The display id of the key to use in the decryption process - * @member {String} display-id - */ - -Decrypt.prototype['display-id'] = undefined; -/** - * The encryption context. If this was specified in the encrypt command, it must be specified here or the decryption operation will fail - * @member {Object.} encryption-context - */ - -Decrypt.prototype['encryption-context'] = undefined; -/** - * The item id of the key to use in the decryption process - * @member {Number} item-id - */ - -Decrypt.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Decrypt.prototype['json'] = false; -/** - * The name of the key to use in the decryption process - * @member {String} key-name - */ - -Decrypt.prototype['key-name'] = undefined; -/** - * If specified, the output will be formatted accordingly. options: [base64] - * @member {String} output-format - */ - -Decrypt.prototype['output-format'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Decrypt.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/DSProducerDetails} producer_details */ -Decrypt.prototype['uid-token'] = undefined; -/** - * key version (relevant only for classic key) - * @member {Number} version - */ -Decrypt.prototype['version'] = undefined; -var _default = Decrypt; +GatewayCreateProducerOracleDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerOracleDbOutput; exports["default"] = _default; /***/ }), -/***/ 90930: +/***/ 93225: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -44946,7 +120055,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -44957,21 +120066,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DecryptFile model module. - * @module model/DecryptFile - * @version 3.3.16 + * The GatewayCreateProducerPing model module. + * @module model/GatewayCreateProducerPing + * @version 3.6.3 */ -var DecryptFile = /*#__PURE__*/function () { +var GatewayCreateProducerPing = /*#__PURE__*/function () { /** - * Constructs a new DecryptFile. - * @alias module:model/DecryptFile - * @param _in {String} Path to the file to be decrypted. If not provided, the content will be taken from stdin - * @param keyName {String} The name of the key to use in the decryption process + * Constructs a new GatewayCreateProducerPing. + * gatewayCreateProducerPing is a command that creates ping producer [Deprecated: Use dynamic-secret-create-ping command] + * @alias module:model/GatewayCreateProducerPing + * @param name {String} Dynamic secret name */ - function DecryptFile(_in, keyName) { - _classCallCheck(this, DecryptFile); + function GatewayCreateProducerPing(name) { + _classCallCheck(this, GatewayCreateProducerPing); - DecryptFile.initialize(this, _in, keyName); + GatewayCreateProducerPing.initialize(this, name); } /** * Initializes the fields of this object. @@ -44980,52 +120089,111 @@ var DecryptFile = /*#__PURE__*/function () { */ - _createClass(DecryptFile, null, [{ + _createClass(GatewayCreateProducerPing, null, [{ key: "initialize", - value: function initialize(obj, _in, keyName) { - obj['in'] = _in; - obj['key-name'] = keyName; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DecryptFile from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerPing from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptFile} obj Optional instance to populate. - * @return {module:model/DecryptFile} The populated DecryptFile instance. + * @param {module:model/GatewayCreateProducerPing} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPing} The populated GatewayCreateProducerPing instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DecryptFile(); + obj = obj || new GatewayCreateProducerPing(); - if (data.hasOwnProperty('cyphertext-header')) { - obj['cyphertext-header'] = _ApiClient["default"].convertToType(data['cyphertext-header'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('in')) { - obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); } - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); } - if (data.hasOwnProperty('out')) { - obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); + } + + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + } + + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + } + + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + } + + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -45035,75 +120203,181 @@ var DecryptFile = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return DecryptFile; + return GatewayCreateProducerPing; }(); /** - * @member {String} cyphertext-header + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DecryptFile.prototype['cyphertext-header'] = undefined; +GatewayCreateProducerPing.prototype['delete_protection'] = undefined; /** - * The display id of the key to use in the decryption process - * @member {String} display-id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DecryptFile.prototype['display-id'] = undefined; +GatewayCreateProducerPing.prototype['json'] = false; /** - * Path to the file to be decrypted. If not provided, the content will be taken from stdin - * @member {String} in + * Dynamic secret name + * @member {String} name */ -DecryptFile.prototype['in'] = undefined; +GatewayCreateProducerPing.prototype['name'] = undefined; /** - * The item id of the key to use in the decryption process - * @member {Number} item-id + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' */ -DecryptFile.prototype['item-id'] = undefined; +GatewayCreateProducerPing.prototype['ping-administrative-port'] = '9999'; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id */ -DecryptFile.prototype['json'] = false; +GatewayCreateProducerPing.prototype['ping-atm-id'] = undefined; /** - * The name of the key to use in the decryption process - * @member {String} key-name + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' */ -DecryptFile.prototype['key-name'] = undefined; +GatewayCreateProducerPing.prototype['ping-authorization-port'] = '9031'; /** - * Path to the output file. If not provided, the output will be sent to stdout - * @member {String} out + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn */ -DecryptFile.prototype['out'] = undefined; +GatewayCreateProducerPing.prototype['ping-cert-subject-dn'] = undefined; +/** + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' + */ + +GatewayCreateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; +/** + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention + * @default 'false' + */ + +GatewayCreateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; +/** + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types + */ + +GatewayCreateProducerPing.prototype['ping-grant-types'] = undefined; +/** + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn + */ + +GatewayCreateProducerPing.prototype['ping-issuer-dn'] = undefined; +/** + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks + */ + +GatewayCreateProducerPing.prototype['ping-jwks'] = undefined; +/** + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url + */ + +GatewayCreateProducerPing.prototype['ping-jwks-url'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} ping-password + */ + +GatewayCreateProducerPing.prototype['ping-password'] = undefined; +/** + * Ping Federate privileged user + * @member {String} ping-privileged-user + */ + +GatewayCreateProducerPing.prototype['ping-privileged-user'] = undefined; +/** + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris + */ + +GatewayCreateProducerPing.prototype['ping-redirect-uris'] = undefined; +/** + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes + */ + +GatewayCreateProducerPing.prototype['ping-restricted-scopes'] = undefined; +/** + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo + */ + +GatewayCreateProducerPing.prototype['ping-signing-algo'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +GatewayCreateProducerPing.prototype['ping-url'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerPing.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerPing.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerPing.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DecryptFile.prototype['token'] = undefined; +GatewayCreateProducerPing.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DecryptFile.prototype['uid-token'] = undefined; -var _default = DecryptFile; +GatewayCreateProducerPing.prototype['uid-token'] = undefined; +/** + * The time from dynamic secret creation to expiration. + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerPing.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerPing; exports["default"] = _default; /***/ }), -/***/ 85960: +/***/ 9516: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -45114,7 +120388,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -45125,19 +120401,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DecryptFileOutput model module. - * @module model/DecryptFileOutput - * @version 3.3.16 + * The GatewayCreateProducerPingOutput model module. + * @module model/GatewayCreateProducerPingOutput + * @version 3.6.3 */ -var DecryptFileOutput = /*#__PURE__*/function () { +var GatewayCreateProducerPingOutput = /*#__PURE__*/function () { /** - * Constructs a new DecryptFileOutput. - * @alias module:model/DecryptFileOutput + * Constructs a new GatewayCreateProducerPingOutput. + * @alias module:model/GatewayCreateProducerPingOutput */ - function DecryptFileOutput() { - _classCallCheck(this, DecryptFileOutput); + function GatewayCreateProducerPingOutput() { + _classCallCheck(this, GatewayCreateProducerPingOutput); - DecryptFileOutput.initialize(this); + GatewayCreateProducerPingOutput.initialize(this); } /** * Initializes the fields of this object. @@ -45146,29 +120422,25 @@ var DecryptFileOutput = /*#__PURE__*/function () { */ - _createClass(DecryptFileOutput, null, [{ + _createClass(GatewayCreateProducerPingOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DecryptFileOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptFileOutput} obj Optional instance to populate. - * @return {module:model/DecryptFileOutput} The populated DecryptFileOutput instance. + * @param {module:model/GatewayCreateProducerPingOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPingOutput} The populated GatewayCreateProducerPingOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DecryptFileOutput(); - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } + obj = obj || new GatewayCreateProducerPingOutput(); - if (data.hasOwnProperty('plain_text')) { - obj['plain_text'] = _ApiClient["default"].convertToType(data['plain_text'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -45176,25 +120448,20 @@ var DecryptFileOutput = /*#__PURE__*/function () { } }]); - return DecryptFileOutput; + return GatewayCreateProducerPingOutput; }(); /** - * @member {String} path + * @member {module:model/DSProducerDetails} producer_details */ -DecryptFileOutput.prototype['path'] = undefined; -/** - * @member {String} plain_text - */ - -DecryptFileOutput.prototype['plain_text'] = undefined; -var _default = DecryptFileOutput; +GatewayCreateProducerPingOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerPingOutput; exports["default"] = _default; /***/ }), -/***/ 47204: +/***/ 85747: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -45205,7 +120472,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -45216,21 +120483,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DecryptGPG model module. - * @module model/DecryptGPG - * @version 3.3.16 + * The GatewayCreateProducerPostgreSQL model module. + * @module model/GatewayCreateProducerPostgreSQL + * @version 3.6.3 */ -var DecryptGPG = /*#__PURE__*/function () { +var GatewayCreateProducerPostgreSQL = /*#__PURE__*/function () { /** - * Constructs a new DecryptGPG. - * @alias module:model/DecryptGPG - * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format - * @param keyName {String} The name of the key to use in the decryption process + * Constructs a new GatewayCreateProducerPostgreSQL. + * gatewayCreateProducerPostgreSQL is a command that creates postgresql producer [Deprecated: Use dynamic-secret-create-postgresql command] + * @alias module:model/GatewayCreateProducerPostgreSQL + * @param name {String} Dynamic secret name */ - function DecryptGPG(ciphertext, keyName) { - _classCallCheck(this, DecryptGPG); + function GatewayCreateProducerPostgreSQL(name) { + _classCallCheck(this, GatewayCreateProducerPostgreSQL); - DecryptGPG.initialize(this, ciphertext, keyName); + GatewayCreateProducerPostgreSQL.initialize(this, name); } /** * Initializes the fields of this object. @@ -45239,52 +120506,103 @@ var DecryptGPG = /*#__PURE__*/function () { */ - _createClass(DecryptGPG, null, [{ + _createClass(GatewayCreateProducerPostgreSQL, null, [{ key: "initialize", - value: function initialize(obj, ciphertext, keyName) { - obj['ciphertext'] = ciphertext; - obj['key-name'] = keyName; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DecryptGPG from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptGPG} obj Optional instance to populate. - * @return {module:model/DecryptGPG} The populated DecryptGPG instance. + * @param {module:model/GatewayCreateProducerPostgreSQL} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPostgreSQL} The populated GatewayCreateProducerPostgreSQL instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DecryptGPG(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } + obj = obj || new GatewayCreateProducerPostgreSQL(); - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); } - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('output-format')) { - obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('passphrase')) { - obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); + } + + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); + } + + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); + } + + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); + } + + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -45294,158 +120612,169 @@ var DecryptGPG = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return DecryptGPG; + return GatewayCreateProducerPostgreSQL; }(); /** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext + * PostgreSQL Creation statements + * @member {String} creation-statements */ -DecryptGPG.prototype['ciphertext'] = undefined; -/** - * The display id of the key to use in the decryption process - * @member {String} display-id - */ - -DecryptGPG.prototype['display-id'] = undefined; +GatewayCreateProducerPostgreSQL.prototype['creation-statements'] = undefined; /** - * The item id of the key to use in the decryption process - * @member {Number} item-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DecryptGPG.prototype['item-id'] = undefined; +GatewayCreateProducerPostgreSQL.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DecryptGPG.prototype['json'] = false; +GatewayCreateProducerPostgreSQL.prototype['json'] = false; /** - * The name of the key to use in the decryption process - * @member {String} key-name + * Dynamic secret name + * @member {String} name */ -DecryptGPG.prototype['key-name'] = undefined; +GatewayCreateProducerPostgreSQL.prototype['name'] = undefined; /** - * If specified, the output will be formatted accordingly. options: [base64] - * @member {String} output-format + * The length of the password to be generated + * @member {String} password-length */ -DecryptGPG.prototype['output-format'] = undefined; +GatewayCreateProducerPostgreSQL.prototype['password-length'] = undefined; /** - * Passphrase that was used to generate the key - * @member {String} passphrase + * PostgreSQL DB Name + * @member {String} postgresql-db-name */ -DecryptGPG.prototype['passphrase'] = undefined; +GatewayCreateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' */ -DecryptGPG.prototype['token'] = undefined; +GatewayCreateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * PostgreSQL Password + * @member {String} postgresql-password */ -DecryptGPG.prototype['uid-token'] = undefined; -var _default = DecryptGPG; -exports["default"] = _default; - -/***/ }), - -/***/ 58733: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +GatewayCreateProducerPostgreSQL.prototype['postgresql-password'] = undefined; +/** + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +GatewayCreateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; +/** + * PostgreSQL Username + * @member {String} postgresql-username + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +GatewayCreateProducerPostgreSQL.prototype['postgresql-username'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +GatewayCreateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +GatewayCreateProducerPostgreSQL.prototype['revocation-statement'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +GatewayCreateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ +GatewayCreateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; /** - * The DecryptGPGOutput model module. - * @module model/DecryptGPGOutput - * @version 3.3.16 + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -var DecryptGPGOutput = /*#__PURE__*/function () { - /** - * Constructs a new DecryptGPGOutput. - * @alias module:model/DecryptGPGOutput - */ - function DecryptGPGOutput() { - _classCallCheck(this, DecryptGPGOutput); - DecryptGPGOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +GatewayCreateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ +GatewayCreateProducerPostgreSQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - _createClass(DecryptGPGOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DecryptGPGOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptGPGOutput} obj Optional instance to populate. - * @return {module:model/DecryptGPGOutput} The populated DecryptGPGOutput instance. - */ +GatewayCreateProducerPostgreSQL.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptGPGOutput(); +GatewayCreateProducerPostgreSQL.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } +GatewayCreateProducerPostgreSQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return obj; - } - }]); +GatewayCreateProducerPostgreSQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return DecryptGPGOutput; -}(); +GatewayCreateProducerPostgreSQL.prototype['token'] = undefined; /** - * @member {String} result + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +GatewayCreateProducerPostgreSQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ -DecryptGPGOutput.prototype['result'] = undefined; -var _default = DecryptGPGOutput; +GatewayCreateProducerPostgreSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerPostgreSQL; exports["default"] = _default; /***/ }), -/***/ 69386: +/***/ 16994: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -45456,7 +120785,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -45467,19 +120798,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DecryptOutput model module. - * @module model/DecryptOutput - * @version 3.3.16 + * The GatewayCreateProducerPostgreSQLOutput model module. + * @module model/GatewayCreateProducerPostgreSQLOutput + * @version 3.6.3 */ -var DecryptOutput = /*#__PURE__*/function () { +var GatewayCreateProducerPostgreSQLOutput = /*#__PURE__*/function () { /** - * Constructs a new DecryptOutput. - * @alias module:model/DecryptOutput + * Constructs a new GatewayCreateProducerPostgreSQLOutput. + * @alias module:model/GatewayCreateProducerPostgreSQLOutput */ - function DecryptOutput() { - _classCallCheck(this, DecryptOutput); + function GatewayCreateProducerPostgreSQLOutput() { + _classCallCheck(this, GatewayCreateProducerPostgreSQLOutput); - DecryptOutput.initialize(this); + GatewayCreateProducerPostgreSQLOutput.initialize(this); } /** * Initializes the fields of this object. @@ -45488,25 +120819,25 @@ var DecryptOutput = /*#__PURE__*/function () { */ - _createClass(DecryptOutput, null, [{ + _createClass(GatewayCreateProducerPostgreSQLOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DecryptOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptOutput} obj Optional instance to populate. - * @return {module:model/DecryptOutput} The populated DecryptOutput instance. + * @param {module:model/GatewayCreateProducerPostgreSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPostgreSQLOutput} The populated GatewayCreateProducerPostgreSQLOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DecryptOutput(); + obj = obj || new GatewayCreateProducerPostgreSQLOutput(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -45514,20 +120845,20 @@ var DecryptOutput = /*#__PURE__*/function () { } }]); - return DecryptOutput; + return GatewayCreateProducerPostgreSQLOutput; }(); /** - * @member {String} result + * @member {module:model/DSProducerDetails} producer_details */ -DecryptOutput.prototype['result'] = undefined; -var _default = DecryptOutput; +GatewayCreateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerPostgreSQLOutput; exports["default"] = _default; /***/ }), -/***/ 97729: +/***/ 96771: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -45538,7 +120869,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -45549,21 +120880,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DecryptPKCS1 model module. - * @module model/DecryptPKCS1 - * @version 3.3.16 + * The GatewayCreateProducerRabbitMQ model module. + * @module model/GatewayCreateProducerRabbitMQ + * @version 3.6.3 */ -var DecryptPKCS1 = /*#__PURE__*/function () { +var GatewayCreateProducerRabbitMQ = /*#__PURE__*/function () { /** - * Constructs a new DecryptPKCS1. - * @alias module:model/DecryptPKCS1 - * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format - * @param keyName {String} The name of the key to use in the decryption process + * Constructs a new GatewayCreateProducerRabbitMQ. + * gatewayCreateProducerRabbitMQ is a command that creates rabbitmq producer [Deprecated: Use dynamic-secret-create-rabbitmq command] + * @alias module:model/GatewayCreateProducerRabbitMQ + * @param name {String} Dynamic secret name */ - function DecryptPKCS1(ciphertext, keyName) { - _classCallCheck(this, DecryptPKCS1); + function GatewayCreateProducerRabbitMQ(name) { + _classCallCheck(this, GatewayCreateProducerRabbitMQ); - DecryptPKCS1.initialize(this, ciphertext, keyName); + GatewayCreateProducerRabbitMQ.initialize(this, name); } /** * Initializes the fields of this object. @@ -45572,48 +120903,103 @@ var DecryptPKCS1 = /*#__PURE__*/function () { */ - _createClass(DecryptPKCS1, null, [{ + _createClass(GatewayCreateProducerRabbitMQ, null, [{ key: "initialize", - value: function initialize(obj, ciphertext, keyName) { - obj['ciphertext'] = ciphertext; - obj['key-name'] = keyName; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DecryptPKCS1 from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptPKCS1} obj Optional instance to populate. - * @return {module:model/DecryptPKCS1} The populated DecryptPKCS1 instance. + * @param {module:model/GatewayCreateProducerRabbitMQ} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRabbitMQ} The populated GatewayCreateProducerRabbitMQ instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DecryptPKCS1(); + obj = obj || new GatewayCreateProducerRabbitMQ(); - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('output-format')) { - obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -45624,8 +121010,8 @@ var DecryptPKCS1 = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -45633,70 +121019,158 @@ var DecryptPKCS1 = /*#__PURE__*/function () { } }]); - return DecryptPKCS1; + return GatewayCreateProducerRabbitMQ; }(); /** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DecryptPKCS1.prototype['ciphertext'] = undefined; +GatewayCreateProducerRabbitMQ.prototype['delete_protection'] = undefined; /** - * The display id of the key to use in the decryption process - * @member {String} display-id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DecryptPKCS1.prototype['display-id'] = undefined; +GatewayCreateProducerRabbitMQ.prototype['json'] = false; /** - * The item id of the key to use in the decryption process - * @member {Number} item-id + * Dynamic secret name + * @member {String} name */ -DecryptPKCS1.prototype['item-id'] = undefined; +GatewayCreateProducerRabbitMQ.prototype['name'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerRabbitMQ.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; +/** + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; +/** + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; +/** + * Server URI + * @member {String} rabbitmq-server-uri + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; +/** + * User configuration permission + * @member {String} rabbitmq-user-conf-permission + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; +/** + * User read permission + * @member {String} rabbitmq-user-read-permission + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; +/** + * User Tags + * @member {String} rabbitmq-user-tags + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; +/** + * User Virtual Host + * @member {String} rabbitmq-user-vhost + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; +/** + * User write permission + * @member {String} rabbitmq-user-write-permission + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing * @default false */ -DecryptPKCS1.prototype['json'] = false; +GatewayCreateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; /** - * The name of the key to use in the decryption process - * @member {String} key-name + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false */ -DecryptPKCS1.prototype['key-name'] = undefined; +GatewayCreateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; /** - * If specified, the output will be formatted accordingly. options: [base64] - * @member {String} output-format + * Add tags attached to this object + * @member {Array.} tags */ -DecryptPKCS1.prototype['output-format'] = undefined; +GatewayCreateProducerRabbitMQ.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerRabbitMQ.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DecryptPKCS1.prototype['token'] = undefined; +GatewayCreateProducerRabbitMQ.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DecryptPKCS1.prototype['uid-token'] = undefined; +GatewayCreateProducerRabbitMQ.prototype['uid-token'] = undefined; /** - * key version (relevant only for classic key) - * @member {Number} version + * User TTL + * @member {String} user-ttl + * @default '60m' */ -DecryptPKCS1.prototype['version'] = undefined; -var _default = DecryptPKCS1; +GatewayCreateProducerRabbitMQ.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerRabbitMQ; exports["default"] = _default; /***/ }), -/***/ 67796: +/***/ 9874: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -45707,7 +121181,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -45718,19 +121194,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DecryptPKCS1Output model module. - * @module model/DecryptPKCS1Output - * @version 3.3.16 + * The GatewayCreateProducerRabbitMQOutput model module. + * @module model/GatewayCreateProducerRabbitMQOutput + * @version 3.6.3 */ -var DecryptPKCS1Output = /*#__PURE__*/function () { +var GatewayCreateProducerRabbitMQOutput = /*#__PURE__*/function () { /** - * Constructs a new DecryptPKCS1Output. - * @alias module:model/DecryptPKCS1Output + * Constructs a new GatewayCreateProducerRabbitMQOutput. + * @alias module:model/GatewayCreateProducerRabbitMQOutput */ - function DecryptPKCS1Output() { - _classCallCheck(this, DecryptPKCS1Output); + function GatewayCreateProducerRabbitMQOutput() { + _classCallCheck(this, GatewayCreateProducerRabbitMQOutput); - DecryptPKCS1Output.initialize(this); + GatewayCreateProducerRabbitMQOutput.initialize(this); } /** * Initializes the fields of this object. @@ -45739,25 +121215,25 @@ var DecryptPKCS1Output = /*#__PURE__*/function () { */ - _createClass(DecryptPKCS1Output, null, [{ + _createClass(GatewayCreateProducerRabbitMQOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DecryptPKCS1Output from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptPKCS1Output} obj Optional instance to populate. - * @return {module:model/DecryptPKCS1Output} The populated DecryptPKCS1Output instance. + * @param {module:model/GatewayCreateProducerRabbitMQOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRabbitMQOutput} The populated GatewayCreateProducerRabbitMQOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DecryptPKCS1Output(); + obj = obj || new GatewayCreateProducerRabbitMQOutput(); - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -45765,20 +121241,20 @@ var DecryptPKCS1Output = /*#__PURE__*/function () { } }]); - return DecryptPKCS1Output; + return GatewayCreateProducerRabbitMQOutput; }(); /** - * @member {String} plaintext + * @member {module:model/DSProducerDetails} producer_details */ - -DecryptPKCS1Output.prototype['plaintext'] = undefined; -var _default = DecryptPKCS1Output; + +GatewayCreateProducerRabbitMQOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRabbitMQOutput; exports["default"] = _default; /***/ }), -/***/ 11874: +/***/ 63895: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -45789,7 +121265,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -45800,22 +121276,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DecryptWithClassicKey model module. - * @module model/DecryptWithClassicKey - * @version 3.3.16 + * The GatewayCreateProducerRdp model module. + * @module model/GatewayCreateProducerRdp + * @version 3.6.3 */ -var DecryptWithClassicKey = /*#__PURE__*/function () { +var GatewayCreateProducerRdp = /*#__PURE__*/function () { /** - * Constructs a new DecryptWithClassicKey. - * @alias module:model/DecryptWithClassicKey - * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format - * @param displayId {String} The name of the key to use in the encryption process - * @param version {Number} classic key version + * Constructs a new GatewayCreateProducerRdp. + * gatewayCreateProducerRdp is a command that creates rdp producer [Deprecated: Use dynamic-secret-create-rdp command] + * @alias module:model/GatewayCreateProducerRdp + * @param name {String} Dynamic secret name */ - function DecryptWithClassicKey(ciphertext, displayId, version) { - _classCallCheck(this, DecryptWithClassicKey); + function GatewayCreateProducerRdp(name) { + _classCallCheck(this, GatewayCreateProducerRdp); - DecryptWithClassicKey.initialize(this, ciphertext, displayId, version); + GatewayCreateProducerRdp.initialize(this, name); } /** * Initializes the fields of this object. @@ -45824,39 +121299,105 @@ var DecryptWithClassicKey = /*#__PURE__*/function () { */ - _createClass(DecryptWithClassicKey, null, [{ + _createClass(GatewayCreateProducerRdp, null, [{ key: "initialize", - value: function initialize(obj, ciphertext, displayId, version) { - obj['ciphertext'] = ciphertext; - obj['display-id'] = displayId; - obj['version'] = version; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DecryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRdp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptWithClassicKey} obj Optional instance to populate. - * @return {module:model/DecryptWithClassicKey} The populated DecryptWithClassicKey instance. + * @param {module:model/GatewayCreateProducerRdp} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRdp} The populated GatewayCreateProducerRdp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DecryptWithClassicKey(); + obj = obj || new GatewayCreateProducerRdp(); - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); } - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); + } + + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -45865,8 +121406,12 @@ var DecryptWithClassicKey = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); } } @@ -45874,134 +121419,164 @@ var DecryptWithClassicKey = /*#__PURE__*/function () { } }]); - return DecryptWithClassicKey; + return GatewayCreateProducerRdp; }(); /** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext + * AllowUserExtendSession + * @member {Number} allow-user-extend-session */ -DecryptWithClassicKey.prototype['ciphertext'] = undefined; +GatewayCreateProducerRdp.prototype['allow-user-extend-session'] = undefined; /** - * The name of the key to use in the encryption process - * @member {String} display-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -DecryptWithClassicKey.prototype['display-id'] = undefined; +GatewayCreateProducerRdp.prototype['delete_protection'] = undefined; +/** + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' + */ + +GatewayCreateProducerRdp.prototype['fixed-user-only'] = 'false'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DecryptWithClassicKey.prototype['json'] = false; +GatewayCreateProducerRdp.prototype['json'] = false; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Dynamic secret name + * @member {String} name */ -DecryptWithClassicKey.prototype['token'] = undefined; +GatewayCreateProducerRdp.prototype['name'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * The length of the password to be generated + * @member {String} password-length */ -DecryptWithClassicKey.prototype['uid-token'] = undefined; +GatewayCreateProducerRdp.prototype['password-length'] = undefined; /** - * classic key version - * @member {Number} version + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -DecryptWithClassicKey.prototype['version'] = undefined; -var _default = DecryptWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 42770: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; +GatewayCreateProducerRdp.prototype['producer-encryption-key-name'] = undefined; +/** + * RDP Admin Name + * @member {String} rdp-admin-name + */ +GatewayCreateProducerRdp.prototype['rdp-admin-name'] = undefined; +/** + * RDP Admin password + * @member {String} rdp-admin-pwd + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +GatewayCreateProducerRdp.prototype['rdp-admin-pwd'] = undefined; +/** + * Hostname + * @member {String} rdp-host-name + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +GatewayCreateProducerRdp.prototype['rdp-host-name'] = undefined; +/** + * Port + * @member {String} rdp-host-port + * @default '22' + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +GatewayCreateProducerRdp.prototype['rdp-host-port'] = '22'; +/** + * Groups + * @member {String} rdp-user-groups + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +GatewayCreateProducerRdp.prototype['rdp-user-groups'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +GatewayCreateProducerRdp.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +GatewayCreateProducerRdp.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ +GatewayCreateProducerRdp.prototype['secure-access-host'] = undefined; /** - * The DecryptWithClassicKeyOutput model module. - * @module model/DecryptWithClassicKeyOutput - * @version 3.3.16 + * RD Gateway server + * @member {String} secure-access-rd-gateway-server */ -var DecryptWithClassicKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new DecryptWithClassicKeyOutput. - * @alias module:model/DecryptWithClassicKeyOutput - */ - function DecryptWithClassicKeyOutput() { - _classCallCheck(this, DecryptWithClassicKeyOutput); - DecryptWithClassicKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +GatewayCreateProducerRdp.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain + */ +GatewayCreateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - _createClass(DecryptWithClassicKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DecryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptWithClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/DecryptWithClassicKeyOutput} The populated DecryptWithClassicKeyOutput instance. - */ +GatewayCreateProducerRdp.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptWithClassicKeyOutput(); +GatewayCreateProducerRdp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } +GatewayCreateProducerRdp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return obj; - } - }]); +GatewayCreateProducerRdp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return DecryptWithClassicKeyOutput; -}(); +GatewayCreateProducerRdp.prototype['uid-token'] = undefined; /** - * @member {String} result + * User TTL + * @member {String} user-ttl + * @default '60m' */ +GatewayCreateProducerRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ -DecryptWithClassicKeyOutput.prototype['result'] = undefined; -var _default = DecryptWithClassicKeyOutput; +GatewayCreateProducerRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = GatewayCreateProducerRdp; exports["default"] = _default; /***/ }), -/***/ 14740: +/***/ 75822: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46012,7 +121587,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46023,19 +121600,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DefaultConfigPart model module. - * @module model/DefaultConfigPart - * @version 3.3.16 + * The GatewayCreateProducerRdpOutput model module. + * @module model/GatewayCreateProducerRdpOutput + * @version 3.6.3 */ -var DefaultConfigPart = /*#__PURE__*/function () { +var GatewayCreateProducerRdpOutput = /*#__PURE__*/function () { /** - * Constructs a new DefaultConfigPart. - * @alias module:model/DefaultConfigPart + * Constructs a new GatewayCreateProducerRdpOutput. + * @alias module:model/GatewayCreateProducerRdpOutput */ - function DefaultConfigPart() { - _classCallCheck(this, DefaultConfigPart); + function GatewayCreateProducerRdpOutput() { + _classCallCheck(this, GatewayCreateProducerRdpOutput); - DefaultConfigPart.initialize(this); + GatewayCreateProducerRdpOutput.initialize(this); } /** * Initializes the fields of this object. @@ -46044,41 +121621,25 @@ var DefaultConfigPart = /*#__PURE__*/function () { */ - _createClass(DefaultConfigPart, null, [{ + _createClass(GatewayCreateProducerRdpOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DefaultConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DefaultConfigPart} obj Optional instance to populate. - * @return {module:model/DefaultConfigPart} The populated DefaultConfigPart instance. + * @param {module:model/GatewayCreateProducerRdpOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRdpOutput} The populated GatewayCreateProducerRdpOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DefaultConfigPart(); - - if (data.hasOwnProperty('certificate_access_id')) { - obj['certificate_access_id'] = _ApiClient["default"].convertToType(data['certificate_access_id'], 'String'); - } - - if (data.hasOwnProperty('default_protection_key_id')) { - obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); - } - - if (data.hasOwnProperty('default_secret_location')) { - obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); - } - - if (data.hasOwnProperty('oidc_access_id')) { - obj['oidc_access_id'] = _ApiClient["default"].convertToType(data['oidc_access_id'], 'String'); - } + obj = obj || new GatewayCreateProducerRdpOutput(); - if (data.hasOwnProperty('saml_access_id')) { - obj['saml_access_id'] = _ApiClient["default"].convertToType(data['saml_access_id'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -46086,40 +121647,20 @@ var DefaultConfigPart = /*#__PURE__*/function () { } }]); - return DefaultConfigPart; + return GatewayCreateProducerRdpOutput; }(); /** - * @member {String} certificate_access_id - */ - - -DefaultConfigPart.prototype['certificate_access_id'] = undefined; -/** - * @member {Number} default_protection_key_id - */ - -DefaultConfigPart.prototype['default_protection_key_id'] = undefined; -/** - * @member {String} default_secret_location - */ - -DefaultConfigPart.prototype['default_secret_location'] = undefined; -/** - * @member {String} oidc_access_id + * @member {module:model/DSProducerDetails} producer_details */ -DefaultConfigPart.prototype['oidc_access_id'] = undefined; -/** - * @member {String} saml_access_id - */ -DefaultConfigPart.prototype['saml_access_id'] = undefined; -var _default = DefaultConfigPart; +GatewayCreateProducerRdpOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRdpOutput; exports["default"] = _default; /***/ }), -/***/ 17478: +/***/ 84198: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46130,7 +121671,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46141,20 +121682,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteAuthMethod model module. - * @module model/DeleteAuthMethod - * @version 3.3.16 + * The GatewayCreateProducerRedis model module. + * @module model/GatewayCreateProducerRedis + * @version 3.6.3 */ -var DeleteAuthMethod = /*#__PURE__*/function () { +var GatewayCreateProducerRedis = /*#__PURE__*/function () { /** - * Constructs a new DeleteAuthMethod. - * @alias module:model/DeleteAuthMethod - * @param name {String} Auth Method name + * Constructs a new GatewayCreateProducerRedis. + * gatewayCreateProducerRedis is a command that creates Redis producer [Deprecated: Use dynamic-secret-create-redis command] + * @alias module:model/GatewayCreateProducerRedis + * @param name {String} Dynamic secret name */ - function DeleteAuthMethod(name) { - _classCallCheck(this, DeleteAuthMethod); + function GatewayCreateProducerRedis(name) { + _classCallCheck(this, GatewayCreateProducerRedis); - DeleteAuthMethod.initialize(this, name); + GatewayCreateProducerRedis.initialize(this, name); } /** * Initializes the fields of this object. @@ -46163,24 +121705,36 @@ var DeleteAuthMethod = /*#__PURE__*/function () { */ - _createClass(DeleteAuthMethod, null, [{ + _createClass(GatewayCreateProducerRedis, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a DeleteAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRedis from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethod} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethod} The populated DeleteAuthMethod instance. + * @param {module:model/GatewayCreateProducerRedis} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedis} The populated GatewayCreateProducerRedis instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteAuthMethod(); + obj = obj || new GatewayCreateProducerRedis(); + + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -46190,6 +121744,38 @@ var DeleteAuthMethod = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -46197,46 +121783,136 @@ var DeleteAuthMethod = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } } return obj; } }]); - return DeleteAuthMethod; + return GatewayCreateProducerRedis; }(); +/** + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules + */ + + +GatewayCreateProducerRedis.prototype['acl-rules'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerRedis.prototype['delete_protection'] = undefined; +/** + * Redis Host + * @member {String} host + * @default '127.0.0.1' + */ + +GatewayCreateProducerRedis.prototype['host'] = '127.0.0.1'; /** * Set output format to JSON * @member {Boolean} json * @default false */ - -DeleteAuthMethod.prototype['json'] = false; +GatewayCreateProducerRedis.prototype['json'] = false; /** - * Auth Method name + * Dynamic secret name * @member {String} name */ -DeleteAuthMethod.prototype['name'] = undefined; +GatewayCreateProducerRedis.prototype['name'] = undefined; +/** + * Redis Password + * @member {String} password + */ + +GatewayCreateProducerRedis.prototype['password'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerRedis.prototype['password-length'] = undefined; +/** + * Redis Port + * @member {String} port + * @default '6379' + */ + +GatewayCreateProducerRedis.prototype['port'] = '6379'; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerRedis.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayCreateProducerRedis.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +GatewayCreateProducerRedis.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerRedis.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteAuthMethod.prototype['token'] = undefined; +GatewayCreateProducerRedis.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteAuthMethod.prototype['uid-token'] = undefined; -var _default = DeleteAuthMethod; +GatewayCreateProducerRedis.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +GatewayCreateProducerRedis.prototype['username'] = undefined; +var _default = GatewayCreateProducerRedis; exports["default"] = _default; /***/ }), -/***/ 61527: +/***/ 8899: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46247,7 +121923,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46258,19 +121936,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteAuthMethodOutput model module. - * @module model/DeleteAuthMethodOutput - * @version 3.3.16 + * The GatewayCreateProducerRedisOutput model module. + * @module model/GatewayCreateProducerRedisOutput + * @version 3.6.3 */ -var DeleteAuthMethodOutput = /*#__PURE__*/function () { +var GatewayCreateProducerRedisOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteAuthMethodOutput. - * @alias module:model/DeleteAuthMethodOutput + * Constructs a new GatewayCreateProducerRedisOutput. + * @alias module:model/GatewayCreateProducerRedisOutput */ - function DeleteAuthMethodOutput() { - _classCallCheck(this, DeleteAuthMethodOutput); + function GatewayCreateProducerRedisOutput() { + _classCallCheck(this, GatewayCreateProducerRedisOutput); - DeleteAuthMethodOutput.initialize(this); + GatewayCreateProducerRedisOutput.initialize(this); } /** * Initializes the fields of this object. @@ -46279,25 +121957,25 @@ var DeleteAuthMethodOutput = /*#__PURE__*/function () { */ - _createClass(DeleteAuthMethodOutput, null, [{ + _createClass(GatewayCreateProducerRedisOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DeleteAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethodOutput} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethodOutput} The populated DeleteAuthMethodOutput instance. + * @param {module:model/GatewayCreateProducerRedisOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedisOutput} The populated GatewayCreateProducerRedisOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteAuthMethodOutput(); + obj = obj || new GatewayCreateProducerRedisOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -46305,20 +121983,20 @@ var DeleteAuthMethodOutput = /*#__PURE__*/function () { } }]); - return DeleteAuthMethodOutput; + return GatewayCreateProducerRedisOutput; }(); /** - * @member {String} name + * @member {module:model/DSProducerDetails} producer_details */ -DeleteAuthMethodOutput.prototype['name'] = undefined; -var _default = DeleteAuthMethodOutput; +GatewayCreateProducerRedisOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRedisOutput; exports["default"] = _default; /***/ }), -/***/ 42077: +/***/ 5404: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46329,7 +122007,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46340,21 +122018,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteAuthMethods model module. - * @module model/DeleteAuthMethods - * @version 3.3.16 + * The GatewayCreateProducerRedshift model module. + * @module model/GatewayCreateProducerRedshift + * @version 3.6.3 */ -var DeleteAuthMethods = /*#__PURE__*/function () { +var GatewayCreateProducerRedshift = /*#__PURE__*/function () { /** - * Constructs a new DeleteAuthMethods. - * deleteAuthMethods is a command that deletes multiple auth methods from a given path. - * @alias module:model/DeleteAuthMethods - * @param path {String} Path to delete the auth methods from + * Constructs a new GatewayCreateProducerRedshift. + * gatewayCreateProducerRedshift is a command that creates redshift producer [Deprecated: Use dynamic-secret-create-redshift command] + * @alias module:model/GatewayCreateProducerRedshift + * @param name {String} Dynamic secret name */ - function DeleteAuthMethods(path) { - _classCallCheck(this, DeleteAuthMethods); + function GatewayCreateProducerRedshift(name) { + _classCallCheck(this, GatewayCreateProducerRedshift); - DeleteAuthMethods.initialize(this, path); + GatewayCreateProducerRedshift.initialize(this, name); } /** * Initializes the fields of this object. @@ -46363,31 +122041,87 @@ var DeleteAuthMethods = /*#__PURE__*/function () { */ - _createClass(DeleteAuthMethods, null, [{ + _createClass(GatewayCreateProducerRedshift, null, [{ key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DeleteAuthMethods from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRedshift from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethods} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethods} The populated DeleteAuthMethods instance. + * @param {module:model/GatewayCreateProducerRedshift} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedshift} The populated GatewayCreateProducerRedshift instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteAuthMethods(); + obj = obj || new GatewayCreateProducerRedshift(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); + } + + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); + } + + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); + } + + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); + } + + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -46397,46 +122131,144 @@ var DeleteAuthMethods = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return DeleteAuthMethods; + return GatewayCreateProducerRedshift; }(); +/** + * Redshift Creation statements + * @member {String} creation-statements + */ + + +GatewayCreateProducerRedshift.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerRedshift.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +GatewayCreateProducerRedshift.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ -DeleteAuthMethods.prototype['json'] = false; +GatewayCreateProducerRedshift.prototype['name'] = undefined; /** - * Path to delete the auth methods from - * @member {String} path + * The length of the password to be generated + * @member {String} password-length */ -DeleteAuthMethods.prototype['path'] = undefined; +GatewayCreateProducerRedshift.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +GatewayCreateProducerRedshift.prototype['producer-encryption-key'] = undefined; +/** + * Redshift DB Name + * @member {String} redshift-db-name + */ + +GatewayCreateProducerRedshift.prototype['redshift-db-name'] = undefined; +/** + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' + */ + +GatewayCreateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; +/** + * Redshift Password + * @member {String} redshift-password + */ + +GatewayCreateProducerRedshift.prototype['redshift-password'] = undefined; +/** + * Redshift Port + * @member {String} redshift-port + * @default '5439' + */ + +GatewayCreateProducerRedshift.prototype['redshift-port'] = '5439'; +/** + * Redshift Username + * @member {String} redshift-username + */ + +GatewayCreateProducerRedshift.prototype['redshift-username'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerRedshift.prototype['secure-access-host'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayCreateProducerRedshift.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerRedshift.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteAuthMethods.prototype['token'] = undefined; +GatewayCreateProducerRedshift.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteAuthMethods.prototype['uid-token'] = undefined; -var _default = DeleteAuthMethods; +GatewayCreateProducerRedshift.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerRedshift.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerRedshift; exports["default"] = _default; /***/ }), -/***/ 13673: +/***/ 989: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46447,7 +122279,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46458,19 +122292,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteAuthMethodsOutput model module. - * @module model/DeleteAuthMethodsOutput - * @version 3.3.16 + * The GatewayCreateProducerRedshiftOutput model module. + * @module model/GatewayCreateProducerRedshiftOutput + * @version 3.6.3 */ -var DeleteAuthMethodsOutput = /*#__PURE__*/function () { +var GatewayCreateProducerRedshiftOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteAuthMethodsOutput. - * @alias module:model/DeleteAuthMethodsOutput + * Constructs a new GatewayCreateProducerRedshiftOutput. + * @alias module:model/GatewayCreateProducerRedshiftOutput */ - function DeleteAuthMethodsOutput() { - _classCallCheck(this, DeleteAuthMethodsOutput); + function GatewayCreateProducerRedshiftOutput() { + _classCallCheck(this, GatewayCreateProducerRedshiftOutput); - DeleteAuthMethodsOutput.initialize(this); + GatewayCreateProducerRedshiftOutput.initialize(this); } /** * Initializes the fields of this object. @@ -46479,25 +122313,25 @@ var DeleteAuthMethodsOutput = /*#__PURE__*/function () { */ - _createClass(DeleteAuthMethodsOutput, null, [{ + _createClass(GatewayCreateProducerRedshiftOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DeleteAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethodsOutput} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethodsOutput} The populated DeleteAuthMethodsOutput instance. + * @param {module:model/GatewayCreateProducerRedshiftOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedshiftOutput} The populated GatewayCreateProducerRedshiftOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteAuthMethodsOutput(); + obj = obj || new GatewayCreateProducerRedshiftOutput(); - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -46505,20 +122339,20 @@ var DeleteAuthMethodsOutput = /*#__PURE__*/function () { } }]); - return DeleteAuthMethodsOutput; + return GatewayCreateProducerRedshiftOutput; }(); /** - * @member {String} path + * @member {module:model/DSProducerDetails} producer_details */ -DeleteAuthMethodsOutput.prototype['path'] = undefined; -var _default = DeleteAuthMethodsOutput; +GatewayCreateProducerRedshiftOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRedshiftOutput; exports["default"] = _default; /***/ }), -/***/ 72713: +/***/ 43881: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46529,7 +122363,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46540,20 +122374,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteEventForwarder model module. - * @module model/DeleteEventForwarder - * @version 3.3.16 + * The GatewayCreateProducerSnowflake model module. + * @module model/GatewayCreateProducerSnowflake + * @version 3.6.3 */ -var DeleteEventForwarder = /*#__PURE__*/function () { +var GatewayCreateProducerSnowflake = /*#__PURE__*/function () { /** - * Constructs a new DeleteEventForwarder. - * @alias module:model/DeleteEventForwarder - * @param name {String} EventForwarder name + * Constructs a new GatewayCreateProducerSnowflake. + * GatewayCreateProducerSnowflakeCmd is a command that creates a Snowflake producer [Deprecated: Use dynamic-secret-create-snowflake command] + * @alias module:model/GatewayCreateProducerSnowflake + * @param name {String} Dynamic secret name */ - function DeleteEventForwarder(name) { - _classCallCheck(this, DeleteEventForwarder); + function GatewayCreateProducerSnowflake(name) { + _classCallCheck(this, GatewayCreateProducerSnowflake); - DeleteEventForwarder.initialize(this, name); + GatewayCreateProducerSnowflake.initialize(this, name); } /** * Initializes the fields of this object. @@ -46562,24 +122397,44 @@ var DeleteEventForwarder = /*#__PURE__*/function () { */ - _createClass(DeleteEventForwarder, null, [{ + _createClass(GatewayCreateProducerSnowflake, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a DeleteEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteEventForwarder} obj Optional instance to populate. - * @return {module:model/DeleteEventForwarder} The populated DeleteEventForwarder instance. + * @param {module:model/GatewayCreateProducerSnowflake} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerSnowflake} The populated GatewayCreateProducerSnowflake instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteEventForwarder(); + obj = obj || new GatewayCreateProducerSnowflake(); + + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); + } + + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); + } + + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -46589,6 +122444,30 @@ var DeleteEventForwarder = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + } + + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -46596,176 +122475,133 @@ var DeleteEventForwarder = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); + } } return obj; } }]); - return DeleteEventForwarder; + return GatewayCreateProducerSnowflake; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Account name + * @member {String} account */ -DeleteEventForwarder.prototype['json'] = false; +GatewayCreateProducerSnowflake.prototype['account'] = undefined; /** - * EventForwarder name - * @member {String} name + * Database Password + * @member {String} account-password */ -DeleteEventForwarder.prototype['name'] = undefined; +GatewayCreateProducerSnowflake.prototype['account-password'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Database Username + * @member {String} account-username */ -DeleteEventForwarder.prototype['token'] = undefined; +GatewayCreateProducerSnowflake.prototype['account-username'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Database name + * @member {String} db-name */ -DeleteEventForwarder.prototype['uid-token'] = undefined; -var _default = DeleteEventForwarder; -exports["default"] = _default; - -/***/ }), - -/***/ 47893: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GatewayCreateProducerSnowflake.prototype['db-name'] = undefined; /** - * The DeleteGatewayAllowedAccessId model module. - * @module model/DeleteGatewayAllowedAccessId - * @version 3.3.16 + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -var DeleteGatewayAllowedAccessId = /*#__PURE__*/function () { - /** - * Constructs a new DeleteGatewayAllowedAccessId. - * deleteGatewayAllowedAccessId is a command that deletes access-id - * @alias module:model/DeleteGatewayAllowedAccessId - * @param accessId {String} The access id to be stripped of access to gateway - * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - */ - function DeleteGatewayAllowedAccessId(accessId, clusterName) { - _classCallCheck(this, DeleteGatewayAllowedAccessId); - - DeleteGatewayAllowedAccessId.initialize(this, accessId, clusterName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteGatewayAllowedAccessId, null, [{ - key: "initialize", - value: function initialize(obj, accessId, clusterName) { - obj['access-id'] = accessId; - obj['cluster-name'] = clusterName; - } - /** - * Constructs a DeleteGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteGatewayAllowedAccessId} obj Optional instance to populate. - * @return {module:model/DeleteGatewayAllowedAccessId} The populated DeleteGatewayAllowedAccessId instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteGatewayAllowedAccessId(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('cluster-name')) { - obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); - } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +GatewayCreateProducerSnowflake.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +GatewayCreateProducerSnowflake.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } +GatewayCreateProducerSnowflake.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - return obj; - } - }]); +GatewayCreateProducerSnowflake.prototype['password-length'] = undefined; +/** + * RSA Private key (base64 encoded) + * @member {String} private-key + */ - return DeleteGatewayAllowedAccessId; -}(); +GatewayCreateProducerSnowflake.prototype['private-key'] = undefined; /** - * The access id to be stripped of access to gateway - * @member {String} access-id + * The Private key passphrase + * @member {String} private-key-passphrase */ +GatewayCreateProducerSnowflake.prototype['private-key-passphrase'] = undefined; +/** + * User role + * @member {String} role + */ -DeleteGatewayAllowedAccessId.prototype['access-id'] = undefined; +GatewayCreateProducerSnowflake.prototype['role'] = undefined; /** - * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - * @member {String} cluster-name + * Add tags attached to this object + * @member {Array.} tags */ -DeleteGatewayAllowedAccessId.prototype['cluster-name'] = undefined; +GatewayCreateProducerSnowflake.prototype['tags'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Target name + * @member {String} target-name */ -DeleteGatewayAllowedAccessId.prototype['json'] = false; +GatewayCreateProducerSnowflake.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteGatewayAllowedAccessId.prototype['token'] = undefined; +GatewayCreateProducerSnowflake.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteGatewayAllowedAccessId.prototype['uid-token'] = undefined; -var _default = DeleteGatewayAllowedAccessId; +GatewayCreateProducerSnowflake.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '24h' + */ + +GatewayCreateProducerSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ + +GatewayCreateProducerSnowflake.prototype['warehouse'] = undefined; +var _default = GatewayCreateProducerSnowflake; exports["default"] = _default; /***/ }), -/***/ 28427: +/***/ 44972: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46776,7 +122612,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46787,20 +122625,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteGwCluster model module. - * @module model/DeleteGwCluster - * @version 3.3.16 + * The GatewayCreateProducerSnowflakeOutput model module. + * @module model/GatewayCreateProducerSnowflakeOutput + * @version 3.6.3 */ -var DeleteGwCluster = /*#__PURE__*/function () { +var GatewayCreateProducerSnowflakeOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteGwCluster. - * @alias module:model/DeleteGwCluster - * @param clusterName {String} Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * Constructs a new GatewayCreateProducerSnowflakeOutput. + * @alias module:model/GatewayCreateProducerSnowflakeOutput */ - function DeleteGwCluster(clusterName) { - _classCallCheck(this, DeleteGwCluster); + function GatewayCreateProducerSnowflakeOutput() { + _classCallCheck(this, GatewayCreateProducerSnowflakeOutput); - DeleteGwCluster.initialize(this, clusterName); + GatewayCreateProducerSnowflakeOutput.initialize(this); } /** * Initializes the fields of this object. @@ -46809,43 +122646,25 @@ var DeleteGwCluster = /*#__PURE__*/function () { */ - _createClass(DeleteGwCluster, null, [{ + _createClass(GatewayCreateProducerSnowflakeOutput, null, [{ key: "initialize", - value: function initialize(obj, clusterName) { - obj['cluster-name'] = clusterName; - } + value: function initialize(obj) {} /** - * Constructs a DeleteGwCluster from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteGwCluster} obj Optional instance to populate. - * @return {module:model/DeleteGwCluster} The populated DeleteGwCluster instance. + * @param {module:model/GatewayCreateProducerSnowflakeOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerSnowflakeOutput} The populated GatewayCreateProducerSnowflakeOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteGwCluster(); - - if (data.hasOwnProperty('cluster-name')) { - obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); - } - - if (data.hasOwnProperty('force-deletion')) { - obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new GatewayCreateProducerSnowflakeOutput(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -46853,46 +122672,20 @@ var DeleteGwCluster = /*#__PURE__*/function () { } }]); - return DeleteGwCluster; + return GatewayCreateProducerSnowflakeOutput; }(); /** - * Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - * @member {String} cluster-name - */ - - -DeleteGwCluster.prototype['cluster-name'] = undefined; -/** - * Enforce deletion - * @member {Boolean} force-deletion - */ - -DeleteGwCluster.prototype['force-deletion'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteGwCluster.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {module:model/DSProducerDetails} producer_details */ -DeleteGwCluster.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -DeleteGwCluster.prototype['uid-token'] = undefined; -var _default = DeleteGwCluster; +GatewayCreateProducerSnowflakeOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerSnowflakeOutput; exports["default"] = _default; /***/ }), -/***/ 89426: +/***/ 80288: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -46903,7 +122696,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -46914,20 +122707,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteItem model module. - * @module model/DeleteItem - * @version 3.3.16 + * The GatewayCreateProducerVenafi model module. + * @module model/GatewayCreateProducerVenafi + * @version 3.6.3 */ -var DeleteItem = /*#__PURE__*/function () { +var GatewayCreateProducerVenafi = /*#__PURE__*/function () { /** - * Constructs a new DeleteItem. - * @alias module:model/DeleteItem - * @param name {String} Item name + * Constructs a new GatewayCreateProducerVenafi. + * gatewayCreateProducerVenafi is a command that creates a Venafi dynamic secret producer to dynamically create certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi [Deprecated: Use dynamic-secret-create-venafi command] + * @alias module:model/GatewayCreateProducerVenafi + * @param name {String} Dynamic secret name */ - function DeleteItem(name) { - _classCallCheck(this, DeleteItem); + function GatewayCreateProducerVenafi(name) { + _classCallCheck(this, GatewayCreateProducerVenafi); - DeleteItem.initialize(this, name); + GatewayCreateProducerVenafi.initialize(this, name); } /** * Initializes the fields of this object. @@ -46936,35 +122730,47 @@ var DeleteItem = /*#__PURE__*/function () { */ - _createClass(DeleteItem, null, [{ + _createClass(GatewayCreateProducerVenafi, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a DeleteItem from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerVenafi from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItem} obj Optional instance to populate. - * @return {module:model/DeleteItem} The populated DeleteItem instance. + * @param {module:model/GatewayCreateProducerVenafi} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerVenafi} The populated GatewayCreateProducerVenafi instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteItem(); + obj = obj || new GatewayCreateProducerVenafi(); - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); } - if (data.hasOwnProperty('delete-immediately')) { - obj['delete-immediately'] = _ApiClient["default"].convertToType(data['delete-immediately'], 'Boolean'); + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); } - if (data.hasOwnProperty('delete-in-days')) { - obj['delete-in-days'] = _ApiClient["default"].convertToType(data['delete-in-days'], 'Number'); + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + } + + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); } if (data.hasOwnProperty('json')) { @@ -46975,6 +122781,34 @@ var DeleteItem = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); + } + + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -46983,8 +122817,36 @@ var DeleteItem = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); + } + + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); + } + + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); + } + + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); } } @@ -46992,68 +122854,170 @@ var DeleteItem = /*#__PURE__*/function () { } }]); - return DeleteItem; + return GatewayCreateProducerVenafi; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 */ -DeleteItem.prototype['accessibility'] = 'regular'; +GatewayCreateProducerVenafi.prototype['admin-rotation-interval-days'] = 0; /** - * When delete-in-days=-1, must be set - * @member {Boolean} delete-immediately - * @default false + * Allow subdomains + * @member {Boolean} allow-subdomains */ -DeleteItem.prototype['delete-immediately'] = false; +GatewayCreateProducerVenafi.prototype['allow-subdomains'] = undefined; /** - * The number of days to wait before deleting the item (relevant for keys only) - * @member {Number} delete-in-days - * @default 7 + * Allowed domains + * @member {Array.} allowed-domains */ -DeleteItem.prototype['delete-in-days'] = 7; +GatewayCreateProducerVenafi.prototype['allowed-domains'] = undefined; +/** + * Auto generated folder + * @member {String} auto-generated-folder + */ + +GatewayCreateProducerVenafi.prototype['auto-generated-folder'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerVenafi.prototype['delete_protection'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +GatewayCreateProducerVenafi.prototype['enable-admin-rotation'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DeleteItem.prototype['json'] = false; +GatewayCreateProducerVenafi.prototype['json'] = false; /** - * Item name + * Dynamic secret name * @member {String} name */ -DeleteItem.prototype['name'] = undefined; +GatewayCreateProducerVenafi.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerVenafi.prototype['producer-encryption-key-name'] = undefined; +/** + * Root first in chain + * @member {Boolean} root-first-in-chain + */ + +GatewayCreateProducerVenafi.prototype['root-first-in-chain'] = undefined; +/** + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki + */ + +GatewayCreateProducerVenafi.prototype['sign-using-akeyless-pki'] = undefined; +/** + * Signer key name + * @member {String} signer-key-name + */ + +GatewayCreateProducerVenafi.prototype['signer-key-name'] = undefined; +/** + * Store private key + * @member {Boolean} store-private-key + */ + +GatewayCreateProducerVenafi.prototype['store-private-key'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerVenafi.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerVenafi.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteItem.prototype['token'] = undefined; +GatewayCreateProducerVenafi.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteItem.prototype['uid-token'] = undefined; +GatewayCreateProducerVenafi.prototype['uid-token'] = undefined; /** - * The specific version you want to delete - 0=last version, -1=entire item with all versions (default) - * @member {Number} version - * @default -1 + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' */ -DeleteItem.prototype['version'] = -1; -var _default = DeleteItem; +GatewayCreateProducerVenafi.prototype['user-ttl'] = '2160h'; +/** + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token + */ + +GatewayCreateProducerVenafi.prototype['venafi-access-token'] = undefined; +/** + * Venafi API key + * @member {String} venafi-api-key + */ + +GatewayCreateProducerVenafi.prototype['venafi-api-key'] = undefined; +/** + * Venafi Baseurl + * @member {String} venafi-baseurl + */ + +GatewayCreateProducerVenafi.prototype['venafi-baseurl'] = undefined; +/** + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' + */ + +GatewayCreateProducerVenafi.prototype['venafi-client-id'] = 'akeyless'; +/** + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token + */ + +GatewayCreateProducerVenafi.prototype['venafi-refresh-token'] = undefined; +/** + * Venafi using TPP + * @member {Boolean} venafi-use-tpp + */ + +GatewayCreateProducerVenafi.prototype['venafi-use-tpp'] = undefined; +/** + * Venafi Zone + * @member {String} venafi-zone + */ + +GatewayCreateProducerVenafi.prototype['venafi-zone'] = undefined; +var _default = GatewayCreateProducerVenafi; exports["default"] = _default; /***/ }), -/***/ 7557: +/***/ 42889: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47064,7 +123028,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47075,19 +123041,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteItemOutput model module. - * @module model/DeleteItemOutput - * @version 3.3.16 + * The GatewayCreateProducerVenafiOutput model module. + * @module model/GatewayCreateProducerVenafiOutput + * @version 3.6.3 */ -var DeleteItemOutput = /*#__PURE__*/function () { +var GatewayCreateProducerVenafiOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteItemOutput. - * @alias module:model/DeleteItemOutput + * Constructs a new GatewayCreateProducerVenafiOutput. + * @alias module:model/GatewayCreateProducerVenafiOutput */ - function DeleteItemOutput() { - _classCallCheck(this, DeleteItemOutput); + function GatewayCreateProducerVenafiOutput() { + _classCallCheck(this, GatewayCreateProducerVenafiOutput); - DeleteItemOutput.initialize(this); + GatewayCreateProducerVenafiOutput.initialize(this); } /** * Initializes the fields of this object. @@ -47096,37 +123062,25 @@ var DeleteItemOutput = /*#__PURE__*/function () { */ - _createClass(DeleteItemOutput, null, [{ + _createClass(GatewayCreateProducerVenafiOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DeleteItemOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayCreateProducerVenafiOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItemOutput} obj Optional instance to populate. - * @return {module:model/DeleteItemOutput} The populated DeleteItemOutput instance. + * @param {module:model/GatewayCreateProducerVenafiOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerVenafiOutput} The populated GatewayCreateProducerVenafiOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteItemOutput(); - - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); - } - - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); - } - - if (data.hasOwnProperty('item_name')) { - obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); - } + obj = obj || new GatewayCreateProducerVenafiOutput(); - if (data.hasOwnProperty('version_deleted')) { - obj['version_deleted'] = _ApiClient["default"].convertToType(data['version_deleted'], 'Number'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -47134,35 +123088,20 @@ var DeleteItemOutput = /*#__PURE__*/function () { } }]); - return DeleteItemOutput; + return GatewayCreateProducerVenafiOutput; }(); /** - * @member {Date} deletion_date - */ - - -DeleteItemOutput.prototype['deletion_date'] = undefined; -/** - * @member {Number} item_id - */ - -DeleteItemOutput.prototype['item_id'] = undefined; -/** - * @member {String} item_name + * @member {module:model/DSProducerDetails} producer_details */ -DeleteItemOutput.prototype['item_name'] = undefined; -/** - * @member {Number} version_deleted - */ -DeleteItemOutput.prototype['version_deleted'] = undefined; -var _default = DeleteItemOutput; +GatewayCreateProducerVenafiOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerVenafiOutput; exports["default"] = _default; /***/ }), -/***/ 43758: +/***/ 61432: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47173,7 +123112,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47184,20 +123123,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteItems model module. - * @module model/DeleteItems - * @version 3.3.16 + * The GatewayDeleteAllowedAccess model module. + * @module model/GatewayDeleteAllowedAccess + * @version 3.6.3 */ -var DeleteItems = /*#__PURE__*/function () { +var GatewayDeleteAllowedAccess = /*#__PURE__*/function () { /** - * Constructs a new DeleteItems. - * @alias module:model/DeleteItems - * @param path {String} Path to delete the items from + * Constructs a new GatewayDeleteAllowedAccess. + * gatewayDeleteAllowedAccess is a command that deletes allowed access from gateway + * @alias module:model/GatewayDeleteAllowedAccess + * @param name {String} Allowed access name to delete */ - function DeleteItems(path) { - _classCallCheck(this, DeleteItems); + function GatewayDeleteAllowedAccess(name) { + _classCallCheck(this, GatewayDeleteAllowedAccess); - DeleteItems.initialize(this, path); + GatewayDeleteAllowedAccess.initialize(this, name); } /** * Initializes the fields of this object. @@ -47206,31 +123146,31 @@ var DeleteItems = /*#__PURE__*/function () { */ - _createClass(DeleteItems, null, [{ + _createClass(GatewayDeleteAllowedAccess, null, [{ key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DeleteItems from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayDeleteAllowedAccess from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItems} obj Optional instance to populate. - * @return {module:model/DeleteItems} The populated DeleteItems instance. + * @param {module:model/GatewayDeleteAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayDeleteAllowedAccess} The populated GatewayDeleteAllowedAccess instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteItems(); + obj = obj || new GatewayDeleteAllowedAccess(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -47246,7 +123186,7 @@ var DeleteItems = /*#__PURE__*/function () { } }]); - return DeleteItems; + return GatewayDeleteAllowedAccess; }(); /** * Set output format to JSON @@ -47255,31 +123195,31 @@ var DeleteItems = /*#__PURE__*/function () { */ -DeleteItems.prototype['json'] = false; +GatewayDeleteAllowedAccess.prototype['json'] = false; /** - * Path to delete the items from - * @member {String} path + * Allowed access name to delete + * @member {String} name */ -DeleteItems.prototype['path'] = undefined; +GatewayDeleteAllowedAccess.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteItems.prototype['token'] = undefined; +GatewayDeleteAllowedAccess.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteItems.prototype['uid-token'] = undefined; -var _default = DeleteItems; +GatewayDeleteAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayDeleteAllowedAccess; exports["default"] = _default; /***/ }), -/***/ 55802: +/***/ 51409: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47290,7 +123230,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47301,19 +123241,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteItemsOutput model module. - * @module model/DeleteItemsOutput - * @version 3.3.16 + * The GatewayDeleteAllowedAccessOutput model module. + * @module model/GatewayDeleteAllowedAccessOutput + * @version 3.6.3 */ -var DeleteItemsOutput = /*#__PURE__*/function () { +var GatewayDeleteAllowedAccessOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteItemsOutput. - * @alias module:model/DeleteItemsOutput + * Constructs a new GatewayDeleteAllowedAccessOutput. + * @alias module:model/GatewayDeleteAllowedAccessOutput */ - function DeleteItemsOutput() { - _classCallCheck(this, DeleteItemsOutput); + function GatewayDeleteAllowedAccessOutput() { + _classCallCheck(this, GatewayDeleteAllowedAccessOutput); - DeleteItemsOutput.initialize(this); + GatewayDeleteAllowedAccessOutput.initialize(this); } /** * Initializes the fields of this object. @@ -47322,25 +123262,25 @@ var DeleteItemsOutput = /*#__PURE__*/function () { */ - _createClass(DeleteItemsOutput, null, [{ + _createClass(GatewayDeleteAllowedAccessOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DeleteItemsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayDeleteAllowedAccessOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItemsOutput} obj Optional instance to populate. - * @return {module:model/DeleteItemsOutput} The populated DeleteItemsOutput instance. + * @param {module:model/GatewayDeleteAllowedAccessOutput} obj Optional instance to populate. + * @return {module:model/GatewayDeleteAllowedAccessOutput} The populated GatewayDeleteAllowedAccessOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteItemsOutput(); + obj = obj || new GatewayDeleteAllowedAccessOutput(); - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('allowed_access_name')) { + obj['allowed_access_name'] = _ApiClient["default"].convertToType(data['allowed_access_name'], 'String'); } } @@ -47348,20 +123288,20 @@ var DeleteItemsOutput = /*#__PURE__*/function () { } }]); - return DeleteItemsOutput; + return GatewayDeleteAllowedAccessOutput; }(); /** - * @member {String} path + * @member {String} allowed_access_name */ -DeleteItemsOutput.prototype['path'] = undefined; -var _default = DeleteItemsOutput; +GatewayDeleteAllowedAccessOutput.prototype['allowed_access_name'] = undefined; +var _default = GatewayDeleteAllowedAccessOutput; exports["default"] = _default; /***/ }), -/***/ 22253: +/***/ 35530: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47372,7 +123312,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47383,20 +123323,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteRole model module. - * @module model/DeleteRole - * @version 3.3.16 + * The GatewayDeleteK8SAuthConfig model module. + * @module model/GatewayDeleteK8SAuthConfig + * @version 3.6.3 */ -var DeleteRole = /*#__PURE__*/function () { +var GatewayDeleteK8SAuthConfig = /*#__PURE__*/function () { /** - * Constructs a new DeleteRole. - * @alias module:model/DeleteRole - * @param name {String} Role name + * Constructs a new GatewayDeleteK8SAuthConfig. + * gatewayDeleteK8SAuth is a command that deletes k8s auth config + * @alias module:model/GatewayDeleteK8SAuthConfig + * @param name {String} K8S Auth config name */ - function DeleteRole(name) { - _classCallCheck(this, DeleteRole); + function GatewayDeleteK8SAuthConfig(name) { + _classCallCheck(this, GatewayDeleteK8SAuthConfig); - DeleteRole.initialize(this, name); + GatewayDeleteK8SAuthConfig.initialize(this, name); } /** * Initializes the fields of this object. @@ -47405,24 +123346,24 @@ var DeleteRole = /*#__PURE__*/function () { */ - _createClass(DeleteRole, null, [{ + _createClass(GatewayDeleteK8SAuthConfig, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a DeleteRole from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayDeleteK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRole} obj Optional instance to populate. - * @return {module:model/DeleteRole} The populated DeleteRole instance. + * @param {module:model/GatewayDeleteK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayDeleteK8SAuthConfig} The populated GatewayDeleteK8SAuthConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteRole(); + obj = obj || new GatewayDeleteK8SAuthConfig(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -47445,7 +123386,7 @@ var DeleteRole = /*#__PURE__*/function () { } }]); - return DeleteRole; + return GatewayDeleteK8SAuthConfig; }(); /** * Set output format to JSON @@ -47454,31 +123395,31 @@ var DeleteRole = /*#__PURE__*/function () { */ -DeleteRole.prototype['json'] = false; +GatewayDeleteK8SAuthConfig.prototype['json'] = false; /** - * Role name + * K8S Auth config name * @member {String} name */ -DeleteRole.prototype['name'] = undefined; +GatewayDeleteK8SAuthConfig.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteRole.prototype['token'] = undefined; +GatewayDeleteK8SAuthConfig.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteRole.prototype['uid-token'] = undefined; -var _default = DeleteRole; +GatewayDeleteK8SAuthConfig.prototype['uid-token'] = undefined; +var _default = GatewayDeleteK8SAuthConfig; exports["default"] = _default; /***/ }), -/***/ 36698: +/***/ 77023: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47489,7 +123430,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(75263)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47500,21 +123443,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteRoleAssociation model module. - * @module model/DeleteRoleAssociation - * @version 3.3.16 + * The GatewayDeleteK8SAuthConfigOutput model module. + * @module model/GatewayDeleteK8SAuthConfigOutput + * @version 3.6.3 */ -var DeleteRoleAssociation = /*#__PURE__*/function () { +var GatewayDeleteK8SAuthConfigOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteRoleAssociation. - * deleteRoleAssociation is a command that deletes an association between role and auth method. - * @alias module:model/DeleteRoleAssociation - * @param assocId {String} The association id to be deleted + * Constructs a new GatewayDeleteK8SAuthConfigOutput. + * @alias module:model/GatewayDeleteK8SAuthConfigOutput */ - function DeleteRoleAssociation(assocId) { - _classCallCheck(this, DeleteRoleAssociation); + function GatewayDeleteK8SAuthConfigOutput() { + _classCallCheck(this, GatewayDeleteK8SAuthConfigOutput); - DeleteRoleAssociation.initialize(this, assocId); + GatewayDeleteK8SAuthConfigOutput.initialize(this); } /** * Initializes the fields of this object. @@ -47523,27 +123464,129 @@ var DeleteRoleAssociation = /*#__PURE__*/function () { */ - _createClass(DeleteRoleAssociation, null, [{ + _createClass(GatewayDeleteK8SAuthConfigOutput, null, [{ key: "initialize", - value: function initialize(obj, assocId) { - obj['assoc-id'] = assocId; + value: function initialize(obj) {} + /** + * Constructs a GatewayDeleteK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayDeleteK8SAuthConfigOutput} The populated GatewayDeleteK8SAuthConfigOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteK8SAuthConfigOutput(); + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); + } + + if (data.hasOwnProperty('parts_change')) { + obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); + } + + if (data.hasOwnProperty('total_hash')) { + obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteK8SAuthConfigOutput; +}(); +/** + * @member {String} cluster_id + */ + + +GatewayDeleteK8SAuthConfigOutput.prototype['cluster_id'] = undefined; +/** + * @member {module:model/ConfigChange} parts_change + */ + +GatewayDeleteK8SAuthConfigOutput.prototype['parts_change'] = undefined; +/** + * @member {String} total_hash + */ + +GatewayDeleteK8SAuthConfigOutput.prototype['total_hash'] = undefined; +var _default = GatewayDeleteK8SAuthConfigOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 18110: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteMigration model module. + * @module model/GatewayDeleteMigration + * @version 3.6.3 + */ +var GatewayDeleteMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteMigration. + * gatewayDeleteMigration is a command that delete migration + * @alias module:model/GatewayDeleteMigration + * @param id {String} Migration ID + */ + function GatewayDeleteMigration(id) { + _classCallCheck(this, GatewayDeleteMigration); + + GatewayDeleteMigration.initialize(this, id); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteMigration, null, [{ + key: "initialize", + value: function initialize(obj, id) { + obj['id'] = id; } /** - * Constructs a DeleteRoleAssociation from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayDeleteMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAssociation} obj Optional instance to populate. - * @return {module:model/DeleteRoleAssociation} The populated DeleteRoleAssociation instance. + * @param {module:model/GatewayDeleteMigration} obj Optional instance to populate. + * @return {module:model/GatewayDeleteMigration} The populated GatewayDeleteMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteRoleAssociation(); + obj = obj || new GatewayDeleteMigration(); - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } if (data.hasOwnProperty('json')) { @@ -47563,40 +123606,40 @@ var DeleteRoleAssociation = /*#__PURE__*/function () { } }]); - return DeleteRoleAssociation; + return GatewayDeleteMigration; }(); /** - * The association id to be deleted - * @member {String} assoc-id + * Migration ID + * @member {String} id */ -DeleteRoleAssociation.prototype['assoc-id'] = undefined; +GatewayDeleteMigration.prototype['id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DeleteRoleAssociation.prototype['json'] = false; +GatewayDeleteMigration.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteRoleAssociation.prototype['token'] = undefined; +GatewayDeleteMigration.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteRoleAssociation.prototype['uid-token'] = undefined; -var _default = DeleteRoleAssociation; +GatewayDeleteMigration.prototype['uid-token'] = undefined; +var _default = GatewayDeleteMigration; exports["default"] = _default; /***/ }), -/***/ 17666: +/***/ 6902: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47607,7 +123650,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47618,21 +123661,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteRoleRule model module. - * @module model/DeleteRoleRule - * @version 3.3.16 + * The GatewayDeleteProducer model module. + * @module model/GatewayDeleteProducer + * @version 3.6.3 */ -var DeleteRoleRule = /*#__PURE__*/function () { +var GatewayDeleteProducer = /*#__PURE__*/function () { /** - * Constructs a new DeleteRoleRule. - * @alias module:model/DeleteRoleRule - * @param path {String} The path the rule refers to - * @param roleName {String} The role name to be updated + * Constructs a new GatewayDeleteProducer. + * gatewayDeleteProducer is a command that deletes producer [Deprecated: Use dynamic-secret-delete command] + * @alias module:model/GatewayDeleteProducer + * @param name {String} Dynamic secret name */ - function DeleteRoleRule(path, roleName) { - _classCallCheck(this, DeleteRoleRule); + function GatewayDeleteProducer(name) { + _classCallCheck(this, GatewayDeleteProducer); - DeleteRoleRule.initialize(this, path, roleName); + GatewayDeleteProducer.initialize(this, name); } /** * Initializes the fields of this object. @@ -47641,40 +123684,31 @@ var DeleteRoleRule = /*#__PURE__*/function () { */ - _createClass(DeleteRoleRule, null, [{ + _createClass(GatewayDeleteProducer, null, [{ key: "initialize", - value: function initialize(obj, path, roleName) { - obj['path'] = path; - obj['role-name'] = roleName; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DeleteRoleRule from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayDeleteProducer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleRule} obj Optional instance to populate. - * @return {module:model/DeleteRoleRule} The populated DeleteRoleRule instance. + * @param {module:model/GatewayDeleteProducer} obj Optional instance to populate. + * @return {module:model/GatewayDeleteProducer} The populated GatewayDeleteProducer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteRoleRule(); + obj = obj || new GatewayDeleteProducer(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('role-name')) { - obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); - } - - if (data.hasOwnProperty('rule-type')) { - obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -47690,7 +123724,7 @@ var DeleteRoleRule = /*#__PURE__*/function () { } }]); - return DeleteRoleRule; + return GatewayDeleteProducer; }(); /** * Set output format to JSON @@ -47699,44 +123733,31 @@ var DeleteRoleRule = /*#__PURE__*/function () { */ -DeleteRoleRule.prototype['json'] = false; -/** - * The path the rule refers to - * @member {String} path - */ - -DeleteRoleRule.prototype['path'] = undefined; -/** - * The role name to be updated - * @member {String} role-name - */ - -DeleteRoleRule.prototype['role-name'] = undefined; +GatewayDeleteProducer.prototype['json'] = false; /** - * item-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule - * @member {String} rule-type - * @default 'item-rule' + * Dynamic secret name + * @member {String} name */ -DeleteRoleRule.prototype['rule-type'] = 'item-rule'; +GatewayDeleteProducer.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteRoleRule.prototype['token'] = undefined; +GatewayDeleteProducer.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteRoleRule.prototype['uid-token'] = undefined; -var _default = DeleteRoleRule; +GatewayDeleteProducer.prototype['uid-token'] = undefined; +var _default = GatewayDeleteProducer; exports["default"] = _default; /***/ }), -/***/ 40164: +/***/ 56019: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47747,7 +123768,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47758,19 +123779,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteRoleRuleOutput model module. - * @module model/DeleteRoleRuleOutput - * @version 3.3.16 + * The GatewayDeleteProducerOutput model module. + * @module model/GatewayDeleteProducerOutput + * @version 3.6.3 */ -var DeleteRoleRuleOutput = /*#__PURE__*/function () { +var GatewayDeleteProducerOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteRoleRuleOutput. - * @alias module:model/DeleteRoleRuleOutput + * Constructs a new GatewayDeleteProducerOutput. + * @alias module:model/GatewayDeleteProducerOutput */ - function DeleteRoleRuleOutput() { - _classCallCheck(this, DeleteRoleRuleOutput); + function GatewayDeleteProducerOutput() { + _classCallCheck(this, GatewayDeleteProducerOutput); - DeleteRoleRuleOutput.initialize(this); + GatewayDeleteProducerOutput.initialize(this); } /** * Initializes the fields of this object. @@ -47779,29 +123800,25 @@ var DeleteRoleRuleOutput = /*#__PURE__*/function () { */ - _createClass(DeleteRoleRuleOutput, null, [{ + _createClass(GatewayDeleteProducerOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DeleteRoleRuleOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayDeleteProducerOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleRuleOutput} obj Optional instance to populate. - * @return {module:model/DeleteRoleRuleOutput} The populated DeleteRoleRuleOutput instance. + * @param {module:model/GatewayDeleteProducerOutput} obj Optional instance to populate. + * @return {module:model/GatewayDeleteProducerOutput} The populated GatewayDeleteProducerOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteRoleRuleOutput(); - - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = _ApiClient["default"].convertToType(data['deleted'], 'Boolean'); - } + obj = obj || new GatewayDeleteProducerOutput(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('producer_name')) { + obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); } } @@ -47809,25 +123826,20 @@ var DeleteRoleRuleOutput = /*#__PURE__*/function () { } }]); - return DeleteRoleRuleOutput; + return GatewayDeleteProducerOutput; }(); /** - * @member {Boolean} deleted + * @member {String} producer_name */ -DeleteRoleRuleOutput.prototype['deleted'] = undefined; -/** - * @member {String} result - */ - -DeleteRoleRuleOutput.prototype['result'] = undefined; -var _default = DeleteRoleRuleOutput; +GatewayDeleteProducerOutput.prototype['producer_name'] = undefined; +var _default = GatewayDeleteProducerOutput; exports["default"] = _default; /***/ }), -/***/ 48595: +/***/ 34610: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47838,7 +123850,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47849,20 +123861,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteRoles model module. - * @module model/DeleteRoles - * @version 3.3.16 + * The GatewayDownloadCustomerFragments model module. + * @module model/GatewayDownloadCustomerFragments + * @version 3.6.3 */ -var DeleteRoles = /*#__PURE__*/function () { +var GatewayDownloadCustomerFragments = /*#__PURE__*/function () { /** - * Constructs a new DeleteRoles. - * @alias module:model/DeleteRoles - * @param path {String} Path to delete the auth methods from + * Constructs a new GatewayDownloadCustomerFragments. + * gatewayDownloadCustomerFragments is a command that downloads customer fragments + * @alias module:model/GatewayDownloadCustomerFragments */ - function DeleteRoles(path) { - _classCallCheck(this, DeleteRoles); + function GatewayDownloadCustomerFragments() { + _classCallCheck(this, GatewayDownloadCustomerFragments); - DeleteRoles.initialize(this, path); + GatewayDownloadCustomerFragments.initialize(this); } /** * Initializes the fields of this object. @@ -47871,33 +123883,27 @@ var DeleteRoles = /*#__PURE__*/function () { */ - _createClass(DeleteRoles, null, [{ + _createClass(GatewayDownloadCustomerFragments, null, [{ key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; - } + value: function initialize(obj) {} /** - * Constructs a DeleteRoles from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayDownloadCustomerFragments from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoles} obj Optional instance to populate. - * @return {module:model/DeleteRoles} The populated DeleteRoles instance. + * @param {module:model/GatewayDownloadCustomerFragments} obj Optional instance to populate. + * @return {module:model/GatewayDownloadCustomerFragments} The populated GatewayDownloadCustomerFragments instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteRoles(); + obj = obj || new GatewayDownloadCustomerFragments(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -47911,7 +123917,7 @@ var DeleteRoles = /*#__PURE__*/function () { } }]); - return DeleteRoles; + return GatewayDownloadCustomerFragments; }(); /** * Set output format to JSON @@ -47920,31 +123926,25 @@ var DeleteRoles = /*#__PURE__*/function () { */ -DeleteRoles.prototype['json'] = false; -/** - * Path to delete the auth methods from - * @member {String} path - */ - -DeleteRoles.prototype['path'] = undefined; +GatewayDownloadCustomerFragments.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteRoles.prototype['token'] = undefined; +GatewayDownloadCustomerFragments.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteRoles.prototype['uid-token'] = undefined; -var _default = DeleteRoles; +GatewayDownloadCustomerFragments.prototype['uid-token'] = undefined; +var _default = GatewayDownloadCustomerFragments; exports["default"] = _default; /***/ }), -/***/ 80558: +/***/ 80599: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -47955,7 +123955,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -47966,20 +123966,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteTarget model module. - * @module model/DeleteTarget - * @version 3.3.16 + * The GatewayDownloadCustomerFragmentsOutput model module. + * @module model/GatewayDownloadCustomerFragmentsOutput + * @version 3.6.3 */ -var DeleteTarget = /*#__PURE__*/function () { +var GatewayDownloadCustomerFragmentsOutput = /*#__PURE__*/function () { /** - * Constructs a new DeleteTarget. - * @alias module:model/DeleteTarget - * @param name {String} Target name + * Constructs a new GatewayDownloadCustomerFragmentsOutput. + * @alias module:model/GatewayDownloadCustomerFragmentsOutput */ - function DeleteTarget(name) { - _classCallCheck(this, DeleteTarget); + function GatewayDownloadCustomerFragmentsOutput() { + _classCallCheck(this, GatewayDownloadCustomerFragmentsOutput); - DeleteTarget.initialize(this, name); + GatewayDownloadCustomerFragmentsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -47988,28 +123987,110 @@ var DeleteTarget = /*#__PURE__*/function () { */ - _createClass(DeleteTarget, null, [{ + _createClass(GatewayDownloadCustomerFragmentsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayDownloadCustomerFragmentsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDownloadCustomerFragmentsOutput} obj Optional instance to populate. + * @return {module:model/GatewayDownloadCustomerFragmentsOutput} The populated GatewayDownloadCustomerFragmentsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDownloadCustomerFragmentsOutput(); + + if (data.hasOwnProperty('cf_json')) { + obj['cf_json'] = _ApiClient["default"].convertToType(data['cf_json'], { + 'String': Object + }); + } + } + + return obj; + } + }]); + + return GatewayDownloadCustomerFragmentsOutput; +}(); +/** + * @member {Object.} cf_json + */ + + +GatewayDownloadCustomerFragmentsOutput.prototype['cf_json'] = undefined; +var _default = GatewayDownloadCustomerFragmentsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 48745: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetAllowedAccess model module. + * @module model/GatewayGetAllowedAccess + * @version 3.6.3 + */ +var GatewayGetAllowedAccess = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetAllowedAccess. + * gatewayGetAllowedAccess is a command that gets allowed access from gateway + * @alias module:model/GatewayGetAllowedAccess + * @param name {String} Allowed access name + */ + function GatewayGetAllowedAccess(name) { + _classCallCheck(this, GatewayGetAllowedAccess); + + GatewayGetAllowedAccess.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetAllowedAccess, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a DeleteTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetAllowedAccess from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTarget} obj Optional instance to populate. - * @return {module:model/DeleteTarget} The populated DeleteTarget instance. + * @param {module:model/GatewayGetAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayGetAllowedAccess} The populated GatewayGetAllowedAccess instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteTarget(); - - if (data.hasOwnProperty('force-deletion')) { - obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); - } + obj = obj || new GatewayGetAllowedAccess(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -48019,10 +124100,6 @@ var DeleteTarget = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('target-version')) { - obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -48036,53 +124113,40 @@ var DeleteTarget = /*#__PURE__*/function () { } }]); - return DeleteTarget; + return GatewayGetAllowedAccess; }(); -/** - * Enforce deletion - * @member {Boolean} force-deletion - * @default false - */ - - -DeleteTarget.prototype['force-deletion'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DeleteTarget.prototype['json'] = false; -/** - * Target name - * @member {String} name - */ -DeleteTarget.prototype['name'] = undefined; +GatewayGetAllowedAccess.prototype['json'] = false; /** - * Target version - * @member {Number} target-version + * Allowed access name + * @member {String} name */ -DeleteTarget.prototype['target-version'] = undefined; +GatewayGetAllowedAccess.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteTarget.prototype['token'] = undefined; +GatewayGetAllowedAccess.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ - -DeleteTarget.prototype['uid-token'] = undefined; -var _default = DeleteTarget; + +GatewayGetAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayGetAllowedAccess; exports["default"] = _default; /***/ }), -/***/ 20037: +/***/ 71450: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -48093,7 +124157,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -48104,21 +124168,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteTargetAssociation model module. - * @module model/DeleteTargetAssociation - * @version 3.3.16 + * The GatewayGetConfig model module. + * @module model/GatewayGetConfig + * @version 3.6.3 */ -var DeleteTargetAssociation = /*#__PURE__*/function () { +var GatewayGetConfig = /*#__PURE__*/function () { /** - * Constructs a new DeleteTargetAssociation. - * deleteTargetAssociation is a command that deletes an association between target and item. - * @alias module:model/DeleteTargetAssociation - * @param name {String} Item name + * Constructs a new GatewayGetConfig. + * gatewayGetConfig is a command that returns gateway configuration + * @alias module:model/GatewayGetConfig */ - function DeleteTargetAssociation(name) { - _classCallCheck(this, DeleteTargetAssociation); + function GatewayGetConfig() { + _classCallCheck(this, GatewayGetConfig); - DeleteTargetAssociation.initialize(this, name); + GatewayGetConfig.initialize(this); } /** * Initializes the fields of this object. @@ -48127,41 +124190,27 @@ var DeleteTargetAssociation = /*#__PURE__*/function () { */ - _createClass(DeleteTargetAssociation, null, [{ + _createClass(GatewayGetConfig, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a DeleteTargetAssociation from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTargetAssociation} obj Optional instance to populate. - * @return {module:model/DeleteTargetAssociation} The populated DeleteTargetAssociation instance. + * @param {module:model/GatewayGetConfig} obj Optional instance to populate. + * @return {module:model/GatewayGetConfig} The populated GatewayGetConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteTargetAssociation(); - - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); - } + obj = obj || new GatewayGetConfig(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -48175,52 +124224,34 @@ var DeleteTargetAssociation = /*#__PURE__*/function () { } }]); - return DeleteTargetAssociation; + return GatewayGetConfig; }(); -/** - * The association id to be deleted - * @member {String} assoc-id - */ - - -DeleteTargetAssociation.prototype['assoc-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DeleteTargetAssociation.prototype['json'] = false; -/** - * Item name - * @member {String} name - */ - -DeleteTargetAssociation.prototype['name'] = undefined; -/** - * The target to associate - * @member {String} target-name - */ -DeleteTargetAssociation.prototype['target-name'] = undefined; +GatewayGetConfig.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteTargetAssociation.prototype['token'] = undefined; +GatewayGetConfig.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteTargetAssociation.prototype['uid-token'] = undefined; -var _default = DeleteTargetAssociation; +GatewayGetConfig.prototype['uid-token'] = undefined; +var _default = GatewayGetConfig; exports["default"] = _default; /***/ }), -/***/ 87093: +/***/ 98467: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -48231,7 +124262,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -48242,20 +124273,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeleteTargets model module. - * @module model/DeleteTargets - * @version 3.3.16 + * The GatewayGetK8SAuthConfig model module. + * @module model/GatewayGetK8SAuthConfig + * @version 3.6.3 */ -var DeleteTargets = /*#__PURE__*/function () { +var GatewayGetK8SAuthConfig = /*#__PURE__*/function () { /** - * Constructs a new DeleteTargets. - * @alias module:model/DeleteTargets - * @param path {String} Path to delete the targets from + * Constructs a new GatewayGetK8SAuthConfig. + * gatewayGetK8SAuth is a command that gets k8s auth config + * @alias module:model/GatewayGetK8SAuthConfig + * @param name {String} K8S Auth config name */ - function DeleteTargets(path) { - _classCallCheck(this, DeleteTargets); + function GatewayGetK8SAuthConfig(name) { + _classCallCheck(this, GatewayGetK8SAuthConfig); - DeleteTargets.initialize(this, path); + GatewayGetK8SAuthConfig.initialize(this, name); } /** * Initializes the fields of this object. @@ -48264,35 +124296,31 @@ var DeleteTargets = /*#__PURE__*/function () { */ - _createClass(DeleteTargets, null, [{ + _createClass(GatewayGetK8SAuthConfig, null, [{ key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a DeleteTargets from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTargets} obj Optional instance to populate. - * @return {module:model/DeleteTargets} The populated DeleteTargets instance. + * @param {module:model/GatewayGetK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayGetK8SAuthConfig} The populated GatewayGetK8SAuthConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeleteTargets(); - - if (data.hasOwnProperty('force-deletion')) { - obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); - } + obj = obj || new GatewayGetK8SAuthConfig(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -48308,47 +124336,40 @@ var DeleteTargets = /*#__PURE__*/function () { } }]); - return DeleteTargets; + return GatewayGetK8SAuthConfig; }(); -/** - * Enforce deletion - * @member {Boolean} force-deletion - * @default false - */ - - -DeleteTargets.prototype['force-deletion'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DeleteTargets.prototype['json'] = false; + +GatewayGetK8SAuthConfig.prototype['json'] = false; /** - * Path to delete the targets from - * @member {String} path + * K8S Auth config name + * @member {String} name */ -DeleteTargets.prototype['path'] = undefined; +GatewayGetK8SAuthConfig.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DeleteTargets.prototype['token'] = undefined; +GatewayGetK8SAuthConfig.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DeleteTargets.prototype['uid-token'] = undefined; -var _default = DeleteTargets; +GatewayGetK8SAuthConfig.prototype['uid-token'] = undefined; +var _default = GatewayGetK8SAuthConfig; exports["default"] = _default; /***/ }), -/***/ 95190: +/***/ 39570: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -48359,7 +124380,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -48370,23 +124391,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DeriveKey model module. - * @module model/DeriveKey - * @version 3.3.16 + * The GatewayGetK8SAuthConfigOutput model module. + * @module model/GatewayGetK8SAuthConfigOutput + * @version 3.6.3 */ -var DeriveKey = /*#__PURE__*/function () { +var GatewayGetK8SAuthConfigOutput = /*#__PURE__*/function () { /** - * Constructs a new DeriveKey. - * @alias module:model/DeriveKey - * @param alg {String} Kdf algorithm - * @param iter {Number} IterationCount the number of iterations - * @param keyLen {Number} KeyLength the byte length of the generated key - * @param name {String} Static Secret full name + * Constructs a new GatewayGetK8SAuthConfigOutput. + * @alias module:model/GatewayGetK8SAuthConfigOutput */ - function DeriveKey(alg, iter, keyLen, name) { - _classCallCheck(this, DeriveKey); + function GatewayGetK8SAuthConfigOutput() { + _classCallCheck(this, GatewayGetK8SAuthConfigOutput); - DeriveKey.initialize(this, alg, iter, keyLen, name); + GatewayGetK8SAuthConfigOutput.initialize(this); } /** * Initializes the fields of this object. @@ -48395,74 +124412,97 @@ var DeriveKey = /*#__PURE__*/function () { */ - _createClass(DeriveKey, null, [{ + _createClass(GatewayGetK8SAuthConfigOutput, null, [{ key: "initialize", - value: function initialize(obj, alg, iter, keyLen, name) { - obj['alg'] = alg; - obj['iter'] = iter; - obj['key-len'] = keyLen; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a DeriveKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeriveKey} obj Optional instance to populate. - * @return {module:model/DeriveKey} The populated DeriveKey instance. + * @param {module:model/GatewayGetK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayGetK8SAuthConfigOutput} The populated GatewayGetK8SAuthConfigOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DeriveKey(); + obj = obj || new GatewayGetK8SAuthConfigOutput(); - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + if (data.hasOwnProperty('am_token_expiration')) { + obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); } - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); } - if (data.hasOwnProperty('hash-function')) { - obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + if (data.hasOwnProperty('auth_method_prv_key_pem')) { + obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); } - if (data.hasOwnProperty('iter')) { - obj['iter'] = _ApiClient["default"].convertToType(data['iter'], 'Number'); + if (data.hasOwnProperty('cluster_api_type')) { + obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('disable_iss_validation')) { + obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); } - if (data.hasOwnProperty('key-len')) { - obj['key-len'] = _ApiClient["default"].convertToType(data['key-len'], 'Number'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - if (data.hasOwnProperty('mem')) { - obj['mem'] = _ApiClient["default"].convertToType(data['mem'], 'Number'); + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); + } + + if (data.hasOwnProperty('k8s_ca_cert')) { + obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_host')) { + obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); + } + + if (data.hasOwnProperty('k8s_issuer')) { + obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); + } + + if (data.hasOwnProperty('k8s_pub_keys_pem')) { + obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); + } + + if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { + obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('parallelism')) { - obj['parallelism'] = _ApiClient["default"].convertToType(data['parallelism'], 'Number'); + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (data.hasOwnProperty('salt')) { - obj['salt'] = _ApiClient["default"].convertToType(data['salt'], 'String'); + if (data.hasOwnProperty('rancher_api_key')) { + obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('rancher_cluster_id')) { + obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('use_local_ca_jwt')) { + obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); } } @@ -48470,184 +124510,125 @@ var DeriveKey = /*#__PURE__*/function () { } }]); - return DeriveKey; + return GatewayGetK8SAuthConfigOutput; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} am_token_expiration */ -DeriveKey.prototype['accessibility'] = 'regular'; +GatewayGetK8SAuthConfigOutput.prototype['am_token_expiration'] = undefined; /** - * Kdf algorithm - * @member {String} alg - * @default 'pbkdf2' + * AuthMethodAccessId of the Kubernetes auth method + * @member {String} auth_method_access_id */ -DeriveKey.prototype['alg'] = 'pbkdf2'; +GatewayGetK8SAuthConfigOutput.prototype['auth_method_access_id'] = undefined; /** - * HashFunction the hash function to use (relevant for pbkdf2) - * @member {String} hash-function - * @default 'sha256' + * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method + * @member {String} auth_method_prv_key_pem */ -DeriveKey.prototype['hash-function'] = 'sha256'; +GatewayGetK8SAuthConfigOutput.prototype['auth_method_prv_key_pem'] = undefined; /** - * IterationCount the number of iterations - * @member {Number} iter + * ClusterApiType defines types of API access to cluster + * @member {String} cluster_api_type */ -DeriveKey.prototype['iter'] = undefined; +GatewayGetK8SAuthConfigOutput.prototype['cluster_api_type'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * DisableISSValidation is optional parameter to disable ISS validation + * @member {Boolean} disable_iss_validation */ -DeriveKey.prototype['json'] = false; +GatewayGetK8SAuthConfigOutput.prototype['disable_iss_validation'] = undefined; /** - * KeyLength the byte length of the generated key - * @member {Number} key-len + * @member {String} id */ -DeriveKey.prototype['key-len'] = undefined; +GatewayGetK8SAuthConfigOutput.prototype['id'] = undefined; /** - * MemorySizeInKb the memory paramter in kb (relevant for argon2id) - * @member {Number} mem - * @default 16384 + * @member {String} k8s_auth_type */ -DeriveKey.prototype['mem'] = 16384; +GatewayGetK8SAuthConfigOutput.prototype['k8s_auth_type'] = undefined; /** - * Static Secret full name - * @member {String} name + * K8SCACert is the CA Cert to use to call into the kubernetes API + * @member {String} k8s_ca_cert */ -DeriveKey.prototype['name'] = undefined; +GatewayGetK8SAuthConfigOutput.prototype['k8s_ca_cert'] = undefined; /** - * Parallelism the number of threads to use (relevant for argon2id) - * @member {Number} parallelism - * @default 1 + * K8sClientCertData is the client certificate for k8s client certificate authentication + * @member {String} k8s_client_cert_data */ -DeriveKey.prototype['parallelism'] = 1; +GatewayGetK8SAuthConfigOutput.prototype['k8s_client_cert_data'] = undefined; /** - * Salt Base64 encoded salt value. If not provided, the salt will be generated as part of the operation. The salt should be securely-generated random bytes, minimum 64 bits, 128 bits is recommended - * @member {String} salt + * K8sClientKeyData is the client key for k8s client certificate authentication + * @member {String} k8s_client_key_data */ -DeriveKey.prototype['salt'] = undefined; +GatewayGetK8SAuthConfigOutput.prototype['k8s_client_key_data'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * K8SHost is the url string for the kubernetes API + * @member {String} k8s_host */ -DeriveKey.prototype['token'] = undefined; +GatewayGetK8SAuthConfigOutput.prototype['k8s_host'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s_issuer */ -DeriveKey.prototype['uid-token'] = undefined; -var _default = DeriveKey; -exports["default"] = _default; - -/***/ }), - -/***/ 62566: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GatewayGetK8SAuthConfigOutput.prototype['k8s_issuer'] = undefined; /** - * The DeriveKeyOutput model module. - * @module model/DeriveKeyOutput - * @version 3.3.16 + * K8SPublicKeysPEM is the list of public key in PEM format + * @member {Array.} k8s_pub_keys_pem */ -var DeriveKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new DeriveKeyOutput. - * @alias module:model/DeriveKeyOutput - */ - function DeriveKeyOutput() { - _classCallCheck(this, DeriveKeyOutput); - - DeriveKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeriveKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DeriveKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeriveKeyOutput} obj Optional instance to populate. - * @return {module:model/DeriveKeyOutput} The populated DeriveKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeriveKeyOutput(); - if (data.hasOwnProperty('Key')) { - obj['Key'] = _ApiClient["default"].convertToType(data['Key'], 'String'); - } +GatewayGetK8SAuthConfigOutput.prototype['k8s_pub_keys_pem'] = undefined; +/** + * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call + * @member {String} k8s_token_reviewer_jwt + */ - if (data.hasOwnProperty('Salt')) { - obj['Salt'] = _ApiClient["default"].convertToType(data['Salt'], 'String'); - } - } +GatewayGetK8SAuthConfigOutput.prototype['k8s_token_reviewer_jwt'] = undefined; +/** + * @member {String} name + */ - return obj; - } - }]); +GatewayGetK8SAuthConfigOutput.prototype['name'] = undefined; +/** + * @member {String} protection_key + */ - return DeriveKeyOutput; -}(); +GatewayGetK8SAuthConfigOutput.prototype['protection_key'] = undefined; /** - * @member {String} Key + * RancherApiKey the bear token for clusterApiTypeRancher + * @member {String} rancher_api_key */ +GatewayGetK8SAuthConfigOutput.prototype['rancher_api_key'] = undefined; +/** + * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) + * @member {String} rancher_cluster_id + */ -DeriveKeyOutput.prototype['Key'] = undefined; +GatewayGetK8SAuthConfigOutput.prototype['rancher_cluster_id'] = undefined; /** - * @member {String} Salt + * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod + * @member {Boolean} use_local_ca_jwt */ -DeriveKeyOutput.prototype['Salt'] = undefined; -var _default = DeriveKeyOutput; +GatewayGetK8SAuthConfigOutput.prototype['use_local_ca_jwt'] = undefined; +var _default = GatewayGetK8SAuthConfigOutput; exports["default"] = _default; /***/ }), -/***/ 84832: +/***/ 45214: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -48658,7 +124639,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -48669,20 +124650,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DescribeAssoc model module. - * @module model/DescribeAssoc - * @version 3.3.16 + * The GatewayGetLdapAuthConfig model module. + * @module model/GatewayGetLdapAuthConfig + * @version 3.6.3 */ -var DescribeAssoc = /*#__PURE__*/function () { +var GatewayGetLdapAuthConfig = /*#__PURE__*/function () { /** - * Constructs a new DescribeAssoc. - * @alias module:model/DescribeAssoc - * @param assocId {String} The association id + * Constructs a new GatewayGetLdapAuthConfig. + * gatewayGetLdapAuth is a command that gets ldap auth config + * @alias module:model/GatewayGetLdapAuthConfig */ - function DescribeAssoc(assocId) { - _classCallCheck(this, DescribeAssoc); + function GatewayGetLdapAuthConfig() { + _classCallCheck(this, GatewayGetLdapAuthConfig); - DescribeAssoc.initialize(this, assocId); + GatewayGetLdapAuthConfig.initialize(this); } /** * Initializes the fields of this object. @@ -48691,28 +124672,22 @@ var DescribeAssoc = /*#__PURE__*/function () { */ - _createClass(DescribeAssoc, null, [{ + _createClass(GatewayGetLdapAuthConfig, null, [{ key: "initialize", - value: function initialize(obj, assocId) { - obj['assoc-id'] = assocId; - } + value: function initialize(obj) {} /** - * Constructs a DescribeAssoc from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeAssoc} obj Optional instance to populate. - * @return {module:model/DescribeAssoc} The populated DescribeAssoc instance. + * @param {module:model/GatewayGetLdapAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayGetLdapAuthConfig} The populated GatewayGetLdapAuthConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DescribeAssoc(); - - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); - } + obj = obj || new GatewayGetLdapAuthConfig(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -48731,40 +124706,34 @@ var DescribeAssoc = /*#__PURE__*/function () { } }]); - return DescribeAssoc; + return GatewayGetLdapAuthConfig; }(); -/** - * The association id - * @member {String} assoc-id - */ - - -DescribeAssoc.prototype['assoc-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -DescribeAssoc.prototype['json'] = false; + +GatewayGetLdapAuthConfig.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DescribeAssoc.prototype['token'] = undefined; +GatewayGetLdapAuthConfig.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DescribeAssoc.prototype['uid-token'] = undefined; -var _default = DescribeAssoc; +GatewayGetLdapAuthConfig.prototype['uid-token'] = undefined; +var _default = GatewayGetLdapAuthConfig; exports["default"] = _default; /***/ }), -/***/ 36301: +/***/ 13163: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -48775,7 +124744,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -48786,20 +124755,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DescribeItem model module. - * @module model/DescribeItem - * @version 3.3.16 + * The GatewayGetLdapAuthConfigOutput model module. + * @module model/GatewayGetLdapAuthConfigOutput + * @version 3.6.3 */ -var DescribeItem = /*#__PURE__*/function () { +var GatewayGetLdapAuthConfigOutput = /*#__PURE__*/function () { /** - * Constructs a new DescribeItem. - * @alias module:model/DescribeItem - * @param name {String} Item name + * Constructs a new GatewayGetLdapAuthConfigOutput. + * @alias module:model/GatewayGetLdapAuthConfigOutput */ - function DescribeItem(name) { - _classCallCheck(this, DescribeItem); + function GatewayGetLdapAuthConfigOutput() { + _classCallCheck(this, GatewayGetLdapAuthConfigOutput); - DescribeItem.initialize(this, name); + GatewayGetLdapAuthConfigOutput.initialize(this); } /** * Initializes the fields of this object. @@ -48808,59 +124776,77 @@ var DescribeItem = /*#__PURE__*/function () { */ - _createClass(DescribeItem, null, [{ + _createClass(GatewayGetLdapAuthConfigOutput, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a DescribeItem from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeItem} obj Optional instance to populate. - * @return {module:model/DescribeItem} The populated DescribeItem instance. + * @param {module:model/GatewayGetLdapAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayGetLdapAuthConfigOutput} The populated GatewayGetLdapAuthConfigOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DescribeItem(); + obj = obj || new GatewayGetLdapAuthConfigOutput(); - if (data.hasOwnProperty('bastion-details')) { - obj['bastion-details'] = _ApiClient["default"].convertToType(data['bastion-details'], 'Boolean'); + if (data.hasOwnProperty('ldap_access_id')) { + obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); } - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('ldap_anonymous_search')) { + obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); } - if (data.hasOwnProperty('gateway-details')) { - obj['gateway-details'] = _ApiClient["default"].convertToType(data['gateway-details'], 'Boolean'); + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); } - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('ldap_cert')) { + obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ldap_enable')) { + obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); } - if (data.hasOwnProperty('show-versions')) { - obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + if (data.hasOwnProperty('ldap_group_attr')) { + obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('ldap_group_dn')) { + obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('ldap_group_filter')) { + obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); + } + + if (data.hasOwnProperty('ldap_private_key')) { + obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); + } + + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + } + + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_attr')) { + obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_dn')) { + obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); } } @@ -48868,73 +124854,85 @@ var DescribeItem = /*#__PURE__*/function () { } }]); - return DescribeItem; + return GatewayGetLdapAuthConfigOutput; }(); /** - * Indicate if the item should return with ztb cluster details (url, etc) - * @member {Boolean} bastion-details - * @default false + * @member {String} ldap_access_id */ -DescribeItem.prototype['bastion-details'] = false; +GatewayGetLdapAuthConfigOutput.prototype['ldap_access_id'] = undefined; /** - * The display id of the item - * @member {String} display-id + * @member {Boolean} ldap_anonymous_search */ -DescribeItem.prototype['display-id'] = undefined; +GatewayGetLdapAuthConfigOutput.prototype['ldap_anonymous_search'] = undefined; /** - * Indicate if the item should return with clusters details (url, etc) - * @member {Boolean} gateway-details - * @default false + * @member {String} ldap_bind_dn */ -DescribeItem.prototype['gateway-details'] = false; +GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_dn'] = undefined; /** - * Item id of the item - * @member {Number} item-id + * @member {String} ldap_bind_password */ -DescribeItem.prototype['item-id'] = undefined; +GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_password'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} ldap_cert */ -DescribeItem.prototype['json'] = false; +GatewayGetLdapAuthConfigOutput.prototype['ldap_cert'] = undefined; /** - * Item name - * @member {String} name + * @member {Boolean} ldap_enable */ -DescribeItem.prototype['name'] = undefined; +GatewayGetLdapAuthConfigOutput.prototype['ldap_enable'] = undefined; /** - * Include all item versions in reply - * @member {Boolean} show-versions - * @default false + * @member {String} ldap_group_attr */ -DescribeItem.prototype['show-versions'] = false; +GatewayGetLdapAuthConfigOutput.prototype['ldap_group_attr'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} ldap_group_dn */ -DescribeItem.prototype['token'] = undefined; +GatewayGetLdapAuthConfigOutput.prototype['ldap_group_dn'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} ldap_group_filter */ -DescribeItem.prototype['uid-token'] = undefined; -var _default = DescribeItem; +GatewayGetLdapAuthConfigOutput.prototype['ldap_group_filter'] = undefined; +/** + * @member {String} ldap_private_key + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_private_key'] = undefined; +/** + * @member {String} ldap_token_expiration + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_token_expiration'] = undefined; +/** + * @member {String} ldap_url + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_url'] = undefined; +/** + * @member {String} ldap_user_attr + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_user_attr'] = undefined; +/** + * @member {String} ldap_user_dn + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_user_dn'] = undefined; +var _default = GatewayGetLdapAuthConfigOutput; exports["default"] = _default; /***/ }), -/***/ 81615: +/***/ 49375: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -48945,7 +124943,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -48956,22 +124954,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DescribePermissions model module. - * @module model/DescribePermissions - * @version 3.3.16 + * The GatewayGetMigration model module. + * @module model/GatewayGetMigration + * @version 3.6.3 */ -var DescribePermissions = /*#__PURE__*/function () { +var GatewayGetMigration = /*#__PURE__*/function () { /** - * Constructs a new DescribePermissions. - * describePermissions is a command that shows which permissions your have to a particular path. - * @alias module:model/DescribePermissions - * @param path {String} Path to an object - * @param type {String} Type of object (item, am, role, target) + * Constructs a new GatewayGetMigration. + * gatewayGetMigration is a command that get migration + * @alias module:model/GatewayGetMigration */ - function DescribePermissions(path, type) { - _classCallCheck(this, DescribePermissions); + function GatewayGetMigration() { + _classCallCheck(this, GatewayGetMigration); - DescribePermissions.initialize(this, path, type); + GatewayGetMigration.initialize(this); } /** * Initializes the fields of this object. @@ -48980,42 +124976,35 @@ var DescribePermissions = /*#__PURE__*/function () { */ - _createClass(DescribePermissions, null, [{ + _createClass(GatewayGetMigration, null, [{ key: "initialize", - value: function initialize(obj, path, type) { - obj['path'] = path; - obj['type'] = type; - } + value: function initialize(obj) {} /** - * Constructs a DescribePermissions from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribePermissions} obj Optional instance to populate. - * @return {module:model/DescribePermissions} The populated DescribePermissions instance. + * @param {module:model/GatewayGetMigration} obj Optional instance to populate. + * @return {module:model/GatewayGetMigration} The populated GatewayGetMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DescribePermissions(); + obj = obj || new GatewayGetMigration(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -49025,7 +125014,7 @@ var DescribePermissions = /*#__PURE__*/function () { } }]); - return DescribePermissions; + return GatewayGetMigration; }(); /** * Set output format to JSON @@ -49034,37 +125023,31 @@ var DescribePermissions = /*#__PURE__*/function () { */ -DescribePermissions.prototype['json'] = false; +GatewayGetMigration.prototype['json'] = false; /** - * Path to an object - * @member {String} path + * Migration name to display + * @member {String} name */ -DescribePermissions.prototype['path'] = undefined; +GatewayGetMigration.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DescribePermissions.prototype['token'] = undefined; -/** - * Type of object (item, am, role, target) - * @member {String} type - */ - -DescribePermissions.prototype['type'] = undefined; +GatewayGetMigration.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DescribePermissions.prototype['uid-token'] = undefined; -var _default = DescribePermissions; +GatewayGetMigration.prototype['uid-token'] = undefined; +var _default = GatewayGetMigration; exports["default"] = _default; /***/ }), -/***/ 84471: +/***/ 8465: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49075,7 +125058,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49086,19 +125069,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DescribePermissionsOutput model module. - * @module model/DescribePermissionsOutput - * @version 3.3.16 + * The GatewayGetProducer model module. + * @module model/GatewayGetProducer + * @version 3.6.3 */ -var DescribePermissionsOutput = /*#__PURE__*/function () { +var GatewayGetProducer = /*#__PURE__*/function () { /** - * Constructs a new DescribePermissionsOutput. - * @alias module:model/DescribePermissionsOutput + * Constructs a new GatewayGetProducer. + * gatewayGetProducer is a command that returns producer [Deprecated: Use dynamic-secret-get command] + * @alias module:model/GatewayGetProducer + * @param name {String} Dynamic secret name */ - function DescribePermissionsOutput() { - _classCallCheck(this, DescribePermissionsOutput); + function GatewayGetProducer(name) { + _classCallCheck(this, GatewayGetProducer); - DescribePermissionsOutput.initialize(this); + GatewayGetProducer.initialize(this, name); } /** * Initializes the fields of this object. @@ -49107,25 +125092,39 @@ var DescribePermissionsOutput = /*#__PURE__*/function () { */ - _createClass(DescribePermissionsOutput, null, [{ + _createClass(GatewayGetProducer, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a DescribePermissionsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetProducer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribePermissionsOutput} obj Optional instance to populate. - * @return {module:model/DescribePermissionsOutput} The populated DescribePermissionsOutput instance. + * @param {module:model/GatewayGetProducer} obj Optional instance to populate. + * @return {module:model/GatewayGetProducer} The populated GatewayGetProducer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DescribePermissionsOutput(); + obj = obj || new GatewayGetProducer(); - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -49133,20 +125132,40 @@ var DescribePermissionsOutput = /*#__PURE__*/function () { } }]); - return DescribePermissionsOutput; + return GatewayGetProducer; }(); /** - * @member {Array.} client_permissions + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DescribePermissionsOutput.prototype['client_permissions'] = undefined; -var _default = DescribePermissionsOutput; +GatewayGetProducer.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayGetProducer.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetProducer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetProducer.prototype['uid-token'] = undefined; +var _default = GatewayGetProducer; exports["default"] = _default; /***/ }), -/***/ 70072: +/***/ 59536: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49157,7 +125176,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49168,20 +125187,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DescribeSubClaims model module. - * @module model/DescribeSubClaims - * @version 3.3.16 + * The GatewayGetTmpUsers model module. + * @module model/GatewayGetTmpUsers + * @version 3.6.3 */ -var DescribeSubClaims = /*#__PURE__*/function () { +var GatewayGetTmpUsers = /*#__PURE__*/function () { /** - * Constructs a new DescribeSubClaims. - * describe-sub-claims Get the sub-claims associated with the provided token or authentication profile - * @alias module:model/DescribeSubClaims + * Constructs a new GatewayGetTmpUsers. + * gatewayGetTmpUsers is a command that returns gateway configuration [Deprecated: Use dynamic-secret-tmp-creds-get command] + * @alias module:model/GatewayGetTmpUsers + * @param name {String} Dynamic secret name */ - function DescribeSubClaims() { - _classCallCheck(this, DescribeSubClaims); + function GatewayGetTmpUsers(name) { + _classCallCheck(this, GatewayGetTmpUsers); - DescribeSubClaims.initialize(this); + GatewayGetTmpUsers.initialize(this, name); } /** * Initializes the fields of this object. @@ -49190,27 +125210,33 @@ var DescribeSubClaims = /*#__PURE__*/function () { */ - _createClass(DescribeSubClaims, null, [{ + _createClass(GatewayGetTmpUsers, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a DescribeSubClaims from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayGetTmpUsers from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeSubClaims} obj Optional instance to populate. - * @return {module:model/DescribeSubClaims} The populated DescribeSubClaims instance. + * @param {module:model/GatewayGetTmpUsers} obj Optional instance to populate. + * @return {module:model/GatewayGetTmpUsers} The populated GatewayGetTmpUsers instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DescribeSubClaims(); + obj = obj || new GatewayGetTmpUsers(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -49224,7 +125250,7 @@ var DescribeSubClaims = /*#__PURE__*/function () { } }]); - return DescribeSubClaims; + return GatewayGetTmpUsers; }(); /** * Set output format to JSON @@ -49233,25 +125259,31 @@ var DescribeSubClaims = /*#__PURE__*/function () { */ -DescribeSubClaims.prototype['json'] = false; +GatewayGetTmpUsers.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayGetTmpUsers.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -DescribeSubClaims.prototype['token'] = undefined; +GatewayGetTmpUsers.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -DescribeSubClaims.prototype['uid-token'] = undefined; -var _default = DescribeSubClaims; +GatewayGetTmpUsers.prototype['uid-token'] = undefined; +var _default = GatewayGetTmpUsers; exports["default"] = _default; /***/ }), -/***/ 8808: +/***/ 819: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49262,7 +125294,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49273,19 +125305,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DescribeSubClaimsOutput model module. - * @module model/DescribeSubClaimsOutput - * @version 3.3.16 + * The GatewayListMigration model module. + * @module model/GatewayListMigration + * @version 3.6.3 */ -var DescribeSubClaimsOutput = /*#__PURE__*/function () { +var GatewayListMigration = /*#__PURE__*/function () { /** - * Constructs a new DescribeSubClaimsOutput. - * @alias module:model/DescribeSubClaimsOutput + * Constructs a new GatewayListMigration. + * gatewayListMigration is a command that list migration + * @alias module:model/GatewayListMigration */ - function DescribeSubClaimsOutput() { - _classCallCheck(this, DescribeSubClaimsOutput); + function GatewayListMigration() { + _classCallCheck(this, GatewayListMigration); - DescribeSubClaimsOutput.initialize(this); + GatewayListMigration.initialize(this); } /** * Initializes the fields of this object. @@ -49294,27 +125327,33 @@ var DescribeSubClaimsOutput = /*#__PURE__*/function () { */ - _createClass(DescribeSubClaimsOutput, null, [{ + _createClass(GatewayListMigration, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DescribeSubClaimsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayListMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeSubClaimsOutput} obj Optional instance to populate. - * @return {module:model/DescribeSubClaimsOutput} The populated DescribeSubClaimsOutput instance. + * @param {module:model/GatewayListMigration} obj Optional instance to populate. + * @return {module:model/GatewayListMigration} The populated GatewayListMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DescribeSubClaimsOutput(); + obj = obj || new GatewayListMigration(); - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -49322,20 +125361,34 @@ var DescribeSubClaimsOutput = /*#__PURE__*/function () { } }]); - return DescribeSubClaimsOutput; + return GatewayListMigration; }(); /** - * @member {Object.>} sub_claims + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DescribeSubClaimsOutput.prototype['sub_claims'] = undefined; -var _default = DescribeSubClaimsOutput; +GatewayListMigration.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayListMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayListMigration.prototype['uid-token'] = undefined; +var _default = GatewayListMigration; exports["default"] = _default; /***/ }), -/***/ 73561: +/***/ 41680: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49346,7 +125399,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49357,22 +125410,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Detokenize model module. - * @module model/Detokenize - * @version 3.3.16 + * The GatewayListProducers model module. + * @module model/GatewayListProducers + * @version 3.6.3 */ -var Detokenize = /*#__PURE__*/function () { +var GatewayListProducers = /*#__PURE__*/function () { /** - * Constructs a new Detokenize. - * detokenize is a command that decrypts text with a tokenizer - * @alias module:model/Detokenize - * @param ciphertext {String} Data to be decrypted - * @param tokenizerName {String} The name of the tokenizer to use in the decryption process + * Constructs a new GatewayListProducers. + * gatewayListProducers is a command that returns a list of producers [Deprecated: Use dynamic-secret-list command] + * @alias module:model/GatewayListProducers */ - function Detokenize(ciphertext, tokenizerName) { - _classCallCheck(this, Detokenize); + function GatewayListProducers() { + _classCallCheck(this, GatewayListProducers); - Detokenize.initialize(this, ciphertext, tokenizerName); + GatewayListProducers.initialize(this); } /** * Initializes the fields of this object. @@ -49381,29 +125432,22 @@ var Detokenize = /*#__PURE__*/function () { */ - _createClass(Detokenize, null, [{ + _createClass(GatewayListProducers, null, [{ key: "initialize", - value: function initialize(obj, ciphertext, tokenizerName) { - obj['ciphertext'] = ciphertext; - obj['tokenizer-name'] = tokenizerName; - } + value: function initialize(obj) {} /** - * Constructs a Detokenize from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayListProducers from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Detokenize} obj Optional instance to populate. - * @return {module:model/Detokenize} The populated Detokenize instance. + * @param {module:model/GatewayListProducers} obj Optional instance to populate. + * @return {module:model/GatewayListProducers} The populated GatewayListProducers instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Detokenize(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } + obj = obj || new GatewayListProducers(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -49413,14 +125457,6 @@ var Detokenize = /*#__PURE__*/function () { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('tokenizer-name')) { - obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); - } - - if (data.hasOwnProperty('tweak')) { - obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -49430,52 +125466,34 @@ var Detokenize = /*#__PURE__*/function () { } }]); - return Detokenize; + return GatewayListProducers; }(); -/** - * Data to be decrypted - * @member {String} ciphertext - */ - - -Detokenize.prototype['ciphertext'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -Detokenize.prototype['json'] = false; + +GatewayListProducers.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -Detokenize.prototype['token'] = undefined; -/** - * The name of the tokenizer to use in the decryption process - * @member {String} tokenizer-name - */ - -Detokenize.prototype['tokenizer-name'] = undefined; -/** - * Base64 encoded tweak for vaultless encryption - * @member {String} tweak - */ - -Detokenize.prototype['tweak'] = undefined; +GatewayListProducers.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -Detokenize.prototype['uid-token'] = undefined; -var _default = Detokenize; +GatewayListProducers.prototype['uid-token'] = undefined; +var _default = GatewayListProducers; exports["default"] = _default; /***/ }), -/***/ 36694: +/***/ 9805: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49486,7 +125504,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49497,19 +125515,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DetokenizeOutput model module. - * @module model/DetokenizeOutput - * @version 3.3.16 + * The GatewayListRotatedSecrets model module. + * @module model/GatewayListRotatedSecrets + * @version 3.6.3 */ -var DetokenizeOutput = /*#__PURE__*/function () { +var GatewayListRotatedSecrets = /*#__PURE__*/function () { /** - * Constructs a new DetokenizeOutput. - * @alias module:model/DetokenizeOutput + * Constructs a new GatewayListRotatedSecrets. + * gatewayListRotatedSecrets is a command that returns a list of rotated secrets. [Deprecated: Use rotated-secret list command] + * @alias module:model/GatewayListRotatedSecrets */ - function DetokenizeOutput() { - _classCallCheck(this, DetokenizeOutput); + function GatewayListRotatedSecrets() { + _classCallCheck(this, GatewayListRotatedSecrets); - DetokenizeOutput.initialize(this); + GatewayListRotatedSecrets.initialize(this); } /** * Initializes the fields of this object. @@ -49518,25 +125537,33 @@ var DetokenizeOutput = /*#__PURE__*/function () { */ - _createClass(DetokenizeOutput, null, [{ + _createClass(GatewayListRotatedSecrets, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DetokenizeOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayListRotatedSecrets from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DetokenizeOutput} obj Optional instance to populate. - * @return {module:model/DetokenizeOutput} The populated DetokenizeOutput instance. + * @param {module:model/GatewayListRotatedSecrets} obj Optional instance to populate. + * @return {module:model/GatewayListRotatedSecrets} The populated GatewayListRotatedSecrets instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DetokenizeOutput(); + obj = obj || new GatewayListRotatedSecrets(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -49544,20 +125571,34 @@ var DetokenizeOutput = /*#__PURE__*/function () { } }]); - return DetokenizeOutput; + return GatewayListRotatedSecrets; }(); /** - * @member {String} result + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayListRotatedSecrets.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayListRotatedSecrets.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ - -DetokenizeOutput.prototype['result'] = undefined; -var _default = DetokenizeOutput; +GatewayListRotatedSecrets.prototype['uid-token'] = undefined; +var _default = GatewayListRotatedSecrets; exports["default"] = _default; /***/ }), -/***/ 38807: +/***/ 72593: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49568,7 +125609,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49579,20 +125620,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DockerhubTargetDetails model module. - * @module model/DockerhubTargetDetails - * @version 3.3.16 + * The GatewayMessageQueueInfo model module. + * @module model/GatewayMessageQueueInfo + * @version 3.6.3 */ -var DockerhubTargetDetails = /*#__PURE__*/function () { +var GatewayMessageQueueInfo = /*#__PURE__*/function () { /** - * Constructs a new DockerhubTargetDetails. - * DockerhubTargetDetails - * @alias module:model/DockerhubTargetDetails + * Constructs a new GatewayMessageQueueInfo. + * @alias module:model/GatewayMessageQueueInfo */ - function DockerhubTargetDetails() { - _classCallCheck(this, DockerhubTargetDetails); + function GatewayMessageQueueInfo() { + _classCallCheck(this, GatewayMessageQueueInfo); - DockerhubTargetDetails.initialize(this); + GatewayMessageQueueInfo.initialize(this); } /** * Initializes the fields of this object. @@ -49601,29 +125641,37 @@ var DockerhubTargetDetails = /*#__PURE__*/function () { */ - _createClass(DockerhubTargetDetails, null, [{ + _createClass(GatewayMessageQueueInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DockerhubTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMessageQueueInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DockerhubTargetDetails} obj Optional instance to populate. - * @return {module:model/DockerhubTargetDetails} The populated DockerhubTargetDetails instance. + * @param {module:model/GatewayMessageQueueInfo} obj Optional instance to populate. + * @return {module:model/GatewayMessageQueueInfo} The populated GatewayMessageQueueInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DockerhubTargetDetails(); + obj = obj || new GatewayMessageQueueInfo(); - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('broadcast_queue_name_a')) { + obj['broadcast_queue_name_a'] = _ApiClient["default"].convertToType(data['broadcast_queue_name_a'], 'String'); } - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + if (data.hasOwnProperty('mq_type')) { + obj['mq_type'] = _ApiClient["default"].convertToType(data['mq_type'], 'String'); + } + + if (data.hasOwnProperty('queue_name')) { + obj['queue_name'] = _ApiClient["default"].convertToType(data['queue_name'], 'String'); + } + + if (data.hasOwnProperty('queue_url')) { + obj['queue_url'] = _ApiClient["default"].convertToType(data['queue_url'], 'String'); } } @@ -49631,25 +125679,35 @@ var DockerhubTargetDetails = /*#__PURE__*/function () { } }]); - return DockerhubTargetDetails; + return GatewayMessageQueueInfo; }(); /** - * @member {String} password + * @member {String} broadcast_queue_name_a */ -DockerhubTargetDetails.prototype['password'] = undefined; +GatewayMessageQueueInfo.prototype['broadcast_queue_name_a'] = undefined; /** - * @member {String} user_name + * @member {String} mq_type */ -DockerhubTargetDetails.prototype['user_name'] = undefined; -var _default = DockerhubTargetDetails; +GatewayMessageQueueInfo.prototype['mq_type'] = undefined; +/** + * @member {String} queue_name + */ + +GatewayMessageQueueInfo.prototype['queue_name'] = undefined; +/** + * @member {String} queue_url + */ + +GatewayMessageQueueInfo.prototype['queue_url'] = undefined; +var _default = GatewayMessageQueueInfo; exports["default"] = _default; /***/ }), -/***/ 65342: +/***/ 54180: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49660,7 +125718,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49671,20 +125729,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The DynamicSecretProducerInfo model module. - * @module model/DynamicSecretProducerInfo - * @version 3.3.16 + * The GatewayMigratePersonalItems model module. + * @module model/GatewayMigratePersonalItems + * @version 3.6.3 */ -var DynamicSecretProducerInfo = /*#__PURE__*/function () { +var GatewayMigratePersonalItems = /*#__PURE__*/function () { /** - * Constructs a new DynamicSecretProducerInfo. - * DynamicSecretProducerInfo The dynamic secret producer info This parameter relevant and required only in case of create update dynamic secret. - * @alias module:model/DynamicSecretProducerInfo + * Constructs a new GatewayMigratePersonalItems. + * gatewayMigratePersonalItems is a command that migrate personal items from external vault + * @alias module:model/GatewayMigratePersonalItems */ - function DynamicSecretProducerInfo() { - _classCallCheck(this, DynamicSecretProducerInfo); + function GatewayMigratePersonalItems() { + _classCallCheck(this, GatewayMigratePersonalItems); - DynamicSecretProducerInfo.initialize(this); + GatewayMigratePersonalItems.initialize(this); } /** * Initializes the fields of this object. @@ -49693,53 +125751,65 @@ var DynamicSecretProducerInfo = /*#__PURE__*/function () { */ - _createClass(DynamicSecretProducerInfo, null, [{ + _createClass(GatewayMigratePersonalItems, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a DynamicSecretProducerInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigratePersonalItems from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DynamicSecretProducerInfo} obj Optional instance to populate. - * @return {module:model/DynamicSecretProducerInfo} The populated DynamicSecretProducerInfo instance. + * @param {module:model/GatewayMigratePersonalItems} obj Optional instance to populate. + * @return {module:model/GatewayMigratePersonalItems} The populated GatewayMigratePersonalItems instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new DynamicSecretProducerInfo(); + obj = obj || new GatewayMigratePersonalItems(); - if (data.hasOwnProperty('failure_message')) { - obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); + if (data.hasOwnProperty('1password-email')) { + obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); } - if (data.hasOwnProperty('gw_cluster_id')) { - obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + if (data.hasOwnProperty('1password-password')) { + obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); } - if (data.hasOwnProperty('k8s_allowed_namespaces')) { - obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); + if (data.hasOwnProperty('1password-secret-key')) { + obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); } - if (data.hasOwnProperty('k8s_dynamic_mode')) { - obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); + if (data.hasOwnProperty('1password-url')) { + obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); } - if (data.hasOwnProperty('producer_last_keep_alive')) { - obj['producer_last_keep_alive'] = _ApiClient["default"].convertToType(data['producer_last_keep_alive'], 'String'); + if (data.hasOwnProperty('1password-vaults')) { + obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); } - if (data.hasOwnProperty('producer_metadata')) { - obj['producer_metadata'] = _ApiClient["default"].convertToType(data['producer_metadata'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('producer_status')) { - obj['producer_status'] = _ApiClient["default"].convertToType(data['producer_status'], 'String'); + if (data.hasOwnProperty('protection-key')) { + obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); } - if (data.hasOwnProperty('producer_type')) { - obj['producer_type'] = _ApiClient["default"].convertToType(data['producer_type'], 'String'); + if (data.hasOwnProperty('target-location')) { + obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -49747,58 +125817,83 @@ var DynamicSecretProducerInfo = /*#__PURE__*/function () { } }]); - return DynamicSecretProducerInfo; + return GatewayMigratePersonalItems; }(); /** - * @member {String} failure_message + * 1Password user email to connect to the API + * @member {String} 1password-email */ -DynamicSecretProducerInfo.prototype['failure_message'] = undefined; +GatewayMigratePersonalItems.prototype['1password-email'] = undefined; /** - * @member {Number} gw_cluster_id + * 1Password user password to connect to the API + * @member {String} 1password-password */ -DynamicSecretProducerInfo.prototype['gw_cluster_id'] = undefined; +GatewayMigratePersonalItems.prototype['1password-password'] = undefined; /** - * Relevant only for generic k8s producer - * @member {String} k8s_allowed_namespaces + * 1Password user secret key to connect to the API + * @member {String} 1password-secret-key */ -DynamicSecretProducerInfo.prototype['k8s_allowed_namespaces'] = undefined; +GatewayMigratePersonalItems.prototype['1password-secret-key'] = undefined; /** - * Relevant only for generic k8s producer - * @member {Boolean} k8s_dynamic_mode + * 1Password api container url + * @member {String} 1password-url */ -DynamicSecretProducerInfo.prototype['k8s_dynamic_mode'] = undefined; +GatewayMigratePersonalItems.prototype['1password-url'] = undefined; /** - * @member {String} producer_last_keep_alive + * 1Password list of vault to get the items from + * @member {Array.} 1password-vaults */ -DynamicSecretProducerInfo.prototype['producer_last_keep_alive'] = undefined; +GatewayMigratePersonalItems.prototype['1password-vaults'] = undefined; /** - * @member {String} producer_metadata + * Set output format to JSON + * @member {Boolean} json + * @default false */ -DynamicSecretProducerInfo.prototype['producer_metadata'] = undefined; +GatewayMigratePersonalItems.prototype['json'] = false; /** - * RotationStatus defines types of rotation Status - * @member {String} producer_status + * The name of a key that used to encrypt the secret value + * @member {String} protection-key */ -DynamicSecretProducerInfo.prototype['producer_status'] = undefined; +GatewayMigratePersonalItems.prototype['protection-key'] = undefined; /** - * @member {String} producer_type + * Target location in your Akeyless personal folder for migrated secrets + * @member {String} target-location */ -DynamicSecretProducerInfo.prototype['producer_type'] = undefined; -var _default = DynamicSecretProducerInfo; +GatewayMigratePersonalItems.prototype['target-location'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayMigratePersonalItems.prototype['token'] = undefined; +/** + * Migration type for now only 1password. + * @member {String} type + * @default '1password' + */ + +GatewayMigratePersonalItems.prototype['type'] = '1password'; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayMigratePersonalItems.prototype['uid-token'] = undefined; +var _default = GatewayMigratePersonalItems; exports["default"] = _default; /***/ }), -/***/ 98564: +/***/ 55285: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49809,7 +125904,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _MigrationItems = _interopRequireDefault(__nccwpck_require__(31445)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49820,20 +125917,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EKSTargetDetails model module. - * @module model/EKSTargetDetails - * @version 3.3.16 + * The GatewayMigratePersonalItemsOutput model module. + * @module model/GatewayMigratePersonalItemsOutput + * @version 3.6.3 */ -var EKSTargetDetails = /*#__PURE__*/function () { +var GatewayMigratePersonalItemsOutput = /*#__PURE__*/function () { /** - * Constructs a new EKSTargetDetails. - * EKSTargetDetails defines details related to connecting to a EKS (Elastic Container Service) target - * @alias module:model/EKSTargetDetails + * Constructs a new GatewayMigratePersonalItemsOutput. + * @alias module:model/GatewayMigratePersonalItemsOutput */ - function EKSTargetDetails() { - _classCallCheck(this, EKSTargetDetails); + function GatewayMigratePersonalItemsOutput() { + _classCallCheck(this, GatewayMigratePersonalItemsOutput); - EKSTargetDetails.initialize(this); + GatewayMigratePersonalItemsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -49842,49 +125938,25 @@ var EKSTargetDetails = /*#__PURE__*/function () { */ - _createClass(EKSTargetDetails, null, [{ + _createClass(GatewayMigratePersonalItemsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EKSTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigratePersonalItemsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EKSTargetDetails} obj Optional instance to populate. - * @return {module:model/EKSTargetDetails} The populated EKSTargetDetails instance. + * @param {module:model/GatewayMigratePersonalItemsOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigratePersonalItemsOutput} The populated GatewayMigratePersonalItemsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EKSTargetDetails(); - - if (data.hasOwnProperty('eks_access_key_id')) { - obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_ca_certificate')) { - obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_endpoint')) { - obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_name')) { - obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); - } - - if (data.hasOwnProperty('eks_region')) { - obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); - } - - if (data.hasOwnProperty('eks_secret_access_key')) { - obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); - } + obj = obj || new GatewayMigratePersonalItemsOutput(); - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + if (data.hasOwnProperty('migration_items')) { + obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); } } @@ -49892,50 +125964,20 @@ var EKSTargetDetails = /*#__PURE__*/function () { } }]); - return EKSTargetDetails; + return GatewayMigratePersonalItemsOutput; }(); /** - * @member {String} eks_access_key_id - */ - - -EKSTargetDetails.prototype['eks_access_key_id'] = undefined; -/** - * @member {String} eks_cluster_ca_certificate - */ - -EKSTargetDetails.prototype['eks_cluster_ca_certificate'] = undefined; -/** - * @member {String} eks_cluster_endpoint - */ - -EKSTargetDetails.prototype['eks_cluster_endpoint'] = undefined; -/** - * @member {String} eks_cluster_name - */ - -EKSTargetDetails.prototype['eks_cluster_name'] = undefined; -/** - * @member {String} eks_region - */ - -EKSTargetDetails.prototype['eks_region'] = undefined; -/** - * @member {String} eks_secret_access_key + * @member {module:model/MigrationItems} migration_items */ -EKSTargetDetails.prototype['eks_secret_access_key'] = undefined; -/** - * @member {Boolean} use_gw_cloud_identity - */ -EKSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = EKSTargetDetails; +GatewayMigratePersonalItemsOutput.prototype['migration_items'] = undefined; +var _default = GatewayMigratePersonalItemsOutput; exports["default"] = _default; /***/ }), -/***/ 77431: +/***/ 94622: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -49946,7 +125988,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -49957,19 +125999,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ElasticsearchLogForwardingConfig model module. - * @module model/ElasticsearchLogForwardingConfig - * @version 3.3.16 + * The GatewayMigrationCreateOutput model module. + * @module model/GatewayMigrationCreateOutput + * @version 3.6.3 */ -var ElasticsearchLogForwardingConfig = /*#__PURE__*/function () { +var GatewayMigrationCreateOutput = /*#__PURE__*/function () { /** - * Constructs a new ElasticsearchLogForwardingConfig. - * @alias module:model/ElasticsearchLogForwardingConfig + * Constructs a new GatewayMigrationCreateOutput. + * @alias module:model/GatewayMigrationCreateOutput */ - function ElasticsearchLogForwardingConfig() { - _classCallCheck(this, ElasticsearchLogForwardingConfig); + function GatewayMigrationCreateOutput() { + _classCallCheck(this, GatewayMigrationCreateOutput); - ElasticsearchLogForwardingConfig.initialize(this); + GatewayMigrationCreateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -49978,61 +126020,25 @@ var ElasticsearchLogForwardingConfig = /*#__PURE__*/function () { */ - _createClass(ElasticsearchLogForwardingConfig, null, [{ + _createClass(GatewayMigrationCreateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ElasticsearchLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigrationCreateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ElasticsearchLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/ElasticsearchLogForwardingConfig} The populated ElasticsearchLogForwardingConfig instance. + * @param {module:model/GatewayMigrationCreateOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationCreateOutput} The populated GatewayMigrationCreateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ElasticsearchLogForwardingConfig(); - - if (data.hasOwnProperty('elasticsearch_api_key')) { - obj['elasticsearch_api_key'] = _ApiClient["default"].convertToType(data['elasticsearch_api_key'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_auth_type')) { - obj['elasticsearch_auth_type'] = _ApiClient["default"].convertToType(data['elasticsearch_auth_type'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_cloud_id')) { - obj['elasticsearch_cloud_id'] = _ApiClient["default"].convertToType(data['elasticsearch_cloud_id'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_enable_tls')) { - obj['elasticsearch_enable_tls'] = _ApiClient["default"].convertToType(data['elasticsearch_enable_tls'], 'Boolean'); - } - - if (data.hasOwnProperty('elasticsearch_index')) { - obj['elasticsearch_index'] = _ApiClient["default"].convertToType(data['elasticsearch_index'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_nodes')) { - obj['elasticsearch_nodes'] = _ApiClient["default"].convertToType(data['elasticsearch_nodes'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_password')) { - obj['elasticsearch_password'] = _ApiClient["default"].convertToType(data['elasticsearch_password'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_server_type')) { - obj['elasticsearch_server_type'] = _ApiClient["default"].convertToType(data['elasticsearch_server_type'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_tls_certificate')) { - obj['elasticsearch_tls_certificate'] = _ApiClient["default"].convertToType(data['elasticsearch_tls_certificate'], 'String'); - } + obj = obj || new GatewayMigrationCreateOutput(); - if (data.hasOwnProperty('elasticsearch_user_name')) { - obj['elasticsearch_user_name'] = _ApiClient["default"].convertToType(data['elasticsearch_user_name'], 'String'); + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); } } @@ -50040,65 +126046,20 @@ var ElasticsearchLogForwardingConfig = /*#__PURE__*/function () { } }]); - return ElasticsearchLogForwardingConfig; + return GatewayMigrationCreateOutput; }(); /** - * @member {String} elasticsearch_api_key - */ - - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_api_key'] = undefined; -/** - * @member {String} elasticsearch_auth_type - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_auth_type'] = undefined; -/** - * @member {String} elasticsearch_cloud_id - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_cloud_id'] = undefined; -/** - * @member {Boolean} elasticsearch_enable_tls - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_enable_tls'] = undefined; -/** - * @member {String} elasticsearch_index - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_index'] = undefined; -/** - * @member {String} elasticsearch_nodes - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_nodes'] = undefined; -/** - * @member {String} elasticsearch_password - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_password'] = undefined; -/** - * @member {String} elasticsearch_server_type - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_server_type'] = undefined; -/** - * @member {String} elasticsearch_tls_certificate + * @member {String} migration_name */ -ElasticsearchLogForwardingConfig.prototype['elasticsearch_tls_certificate'] = undefined; -/** - * @member {String} elasticsearch_user_name - */ -ElasticsearchLogForwardingConfig.prototype['elasticsearch_user_name'] = undefined; -var _default = ElasticsearchLogForwardingConfig; +GatewayMigrationCreateOutput.prototype['migration_name'] = undefined; +var _default = GatewayMigrationCreateOutput; exports["default"] = _default; /***/ }), -/***/ 36375: +/***/ 4845: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50109,7 +126070,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -50120,19 +126081,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EmailEntry model module. - * @module model/EmailEntry - * @version 3.3.16 + * The GatewayMigrationDeleteOutput model module. + * @module model/GatewayMigrationDeleteOutput + * @version 3.6.3 */ -var EmailEntry = /*#__PURE__*/function () { +var GatewayMigrationDeleteOutput = /*#__PURE__*/function () { /** - * Constructs a new EmailEntry. - * @alias module:model/EmailEntry + * Constructs a new GatewayMigrationDeleteOutput. + * @alias module:model/GatewayMigrationDeleteOutput */ - function EmailEntry() { - _classCallCheck(this, EmailEntry); + function GatewayMigrationDeleteOutput() { + _classCallCheck(this, GatewayMigrationDeleteOutput); - EmailEntry.initialize(this); + GatewayMigrationDeleteOutput.initialize(this); } /** * Initializes the fields of this object. @@ -50141,29 +126102,25 @@ var EmailEntry = /*#__PURE__*/function () { */ - _createClass(EmailEntry, null, [{ + _createClass(GatewayMigrationDeleteOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EmailEntry from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigrationDeleteOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailEntry} obj Optional instance to populate. - * @return {module:model/EmailEntry} The populated EmailEntry instance. + * @param {module:model/GatewayMigrationDeleteOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationDeleteOutput} The populated GatewayMigrationDeleteOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EmailEntry(); - - if (data.hasOwnProperty('to_email')) { - obj['to_email'] = _ApiClient["default"].convertToType(data['to_email'], 'String'); - } + obj = obj || new GatewayMigrationDeleteOutput(); - if (data.hasOwnProperty('to_name')) { - obj['to_name'] = _ApiClient["default"].convertToType(data['to_name'], 'String'); + if (data.hasOwnProperty('migration_id')) { + obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); } } @@ -50171,25 +126128,20 @@ var EmailEntry = /*#__PURE__*/function () { } }]); - return EmailEntry; + return GatewayMigrationDeleteOutput; }(); /** - * @member {String} to_email + * @member {String} migration_id */ -EmailEntry.prototype['to_email'] = undefined; -/** - * @member {String} to_name - */ - -EmailEntry.prototype['to_name'] = undefined; -var _default = EmailEntry; +GatewayMigrationDeleteOutput.prototype['migration_id'] = undefined; +var _default = GatewayMigrationDeleteOutput; exports["default"] = _default; /***/ }), -/***/ 42063: +/***/ 27686: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50200,7 +126152,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(83635)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -50211,19 +126165,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EmailPassAccessRules model module. - * @module model/EmailPassAccessRules - * @version 3.3.16 + * The GatewayMigrationGetOutput model module. + * @module model/GatewayMigrationGetOutput + * @version 3.6.3 */ -var EmailPassAccessRules = /*#__PURE__*/function () { +var GatewayMigrationGetOutput = /*#__PURE__*/function () { /** - * Constructs a new EmailPassAccessRules. - * @alias module:model/EmailPassAccessRules + * Constructs a new GatewayMigrationGetOutput. + * @alias module:model/GatewayMigrationGetOutput */ - function EmailPassAccessRules() { - _classCallCheck(this, EmailPassAccessRules); + function GatewayMigrationGetOutput() { + _classCallCheck(this, GatewayMigrationGetOutput); - EmailPassAccessRules.initialize(this); + GatewayMigrationGetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -50232,37 +126186,25 @@ var EmailPassAccessRules = /*#__PURE__*/function () { */ - _createClass(EmailPassAccessRules, null, [{ + _createClass(GatewayMigrationGetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EmailPassAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigrationGetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailPassAccessRules} obj Optional instance to populate. - * @return {module:model/EmailPassAccessRules} The populated EmailPassAccessRules instance. + * @param {module:model/GatewayMigrationGetOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationGetOutput} The populated GatewayMigrationGetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EmailPassAccessRules(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('enc_email_with_shared_key')) { - obj['enc_email_with_shared_key'] = _ApiClient["default"].convertToType(data['enc_email_with_shared_key'], 'String'); - } + obj = obj || new GatewayMigrationGetOutput(); - if (data.hasOwnProperty('hash_pass')) { - obj['hash_pass'] = _ApiClient["default"].convertToType(data['hash_pass'], 'String'); + if (data.hasOwnProperty('body')) { + obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); } } @@ -50270,38 +126212,20 @@ var EmailPassAccessRules = /*#__PURE__*/function () { } }]); - return EmailPassAccessRules; + return GatewayMigrationGetOutput; }(); /** - * @member {String} alg - */ - - -EmailPassAccessRules.prototype['alg'] = undefined; -/** - * The Email value - * @member {String} email - */ - -EmailPassAccessRules.prototype['email'] = undefined; -/** - * EncEmailWithSharedKey is the email of this auth method, encrypted with the shared auth/uam key (for use in uam) - * @member {String} enc_email_with_shared_key + * @member {module:model/MigrationsConfigPart} body */ -EmailPassAccessRules.prototype['enc_email_with_shared_key'] = undefined; -/** - * The password value - * @member {String} hash_pass - */ -EmailPassAccessRules.prototype['hash_pass'] = undefined; -var _default = EmailPassAccessRules; +GatewayMigrationGetOutput.prototype['body'] = undefined; +var _default = GatewayMigrationGetOutput; exports["default"] = _default; /***/ }), -/***/ 90438: +/***/ 43554: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50312,7 +126236,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(83635)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -50323,20 +126249,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EmailTokenizerInfo model module. - * @module model/EmailTokenizerInfo - * @version 3.3.16 + * The GatewayMigrationListOutput model module. + * @module model/GatewayMigrationListOutput + * @version 3.6.3 */ -var EmailTokenizerInfo = /*#__PURE__*/function () { +var GatewayMigrationListOutput = /*#__PURE__*/function () { /** - * Constructs a new EmailTokenizerInfo. - * EmailTokenizerInfo represents a tokenizer that specifically tokenizes emails - * @alias module:model/EmailTokenizerInfo + * Constructs a new GatewayMigrationListOutput. + * @alias module:model/GatewayMigrationListOutput */ - function EmailTokenizerInfo() { - _classCallCheck(this, EmailTokenizerInfo); + function GatewayMigrationListOutput() { + _classCallCheck(this, GatewayMigrationListOutput); - EmailTokenizerInfo.initialize(this); + GatewayMigrationListOutput.initialize(this); } /** * Initializes the fields of this object. @@ -50345,33 +126270,25 @@ var EmailTokenizerInfo = /*#__PURE__*/function () { */ - _createClass(EmailTokenizerInfo, null, [{ + _createClass(GatewayMigrationListOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EmailTokenizerInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigrationListOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailTokenizerInfo} obj Optional instance to populate. - * @return {module:model/EmailTokenizerInfo} The populated EmailTokenizerInfo instance. + * @param {module:model/GatewayMigrationListOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationListOutput} The populated GatewayMigrationListOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EmailTokenizerInfo(); - - if (data.hasOwnProperty('domain_suffix_length')) { - obj['domain_suffix_length'] = _ApiClient["default"].convertToType(data['domain_suffix_length'], 'Number'); - } - - if (data.hasOwnProperty('fixed_domain_suffix')) { - obj['fixed_domain_suffix'] = _ApiClient["default"].convertToType(data['fixed_domain_suffix'], 'String'); - } + obj = obj || new GatewayMigrationListOutput(); - if (data.hasOwnProperty('keep_prefix_length')) { - obj['keep_prefix_length'] = _ApiClient["default"].convertToType(data['keep_prefix_length'], 'Number'); + if (data.hasOwnProperty('body')) { + obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); } } @@ -50379,33 +126296,20 @@ var EmailTokenizerInfo = /*#__PURE__*/function () { } }]); - return EmailTokenizerInfo; + return GatewayMigrationListOutput; }(); /** - * What length of a random domain suffix to generate used only if FixedDomainSuffix is empty - * @member {Number} domain_suffix_length - */ - - -EmailTokenizerInfo.prototype['domain_suffix_length'] = undefined; -/** - * if FixedDomainSuffix isn't empty, it will be appended to the output - * @member {String} fixed_domain_suffix + * @member {module:model/MigrationsConfigPart} body */ -EmailTokenizerInfo.prototype['fixed_domain_suffix'] = undefined; -/** - * How many letters of the plaintext to keep in the output - * @member {Number} keep_prefix_length - */ -EmailTokenizerInfo.prototype['keep_prefix_length'] = undefined; -var _default = EmailTokenizerInfo; +GatewayMigrationListOutput.prototype['body'] = undefined; +var _default = GatewayMigrationListOutput; exports["default"] = _default; /***/ }), -/***/ 6318: +/***/ 82573: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50416,7 +126320,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -50427,20 +126331,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Encrypt model module. - * @module model/Encrypt - * @version 3.3.16 + * The GatewayMigrationSyncOutput model module. + * @module model/GatewayMigrationSyncOutput + * @version 3.6.3 */ -var Encrypt = /*#__PURE__*/function () { +var GatewayMigrationSyncOutput = /*#__PURE__*/function () { /** - * Constructs a new Encrypt. - * @alias module:model/Encrypt - * @param keyName {String} The name of the key to use in the encryption process + * Constructs a new GatewayMigrationSyncOutput. + * @alias module:model/GatewayMigrationSyncOutput */ - function Encrypt(keyName) { - _classCallCheck(this, Encrypt); + function GatewayMigrationSyncOutput() { + _classCallCheck(this, GatewayMigrationSyncOutput); - Encrypt.initialize(this, keyName); + GatewayMigrationSyncOutput.initialize(this); } /** * Initializes the fields of this object. @@ -50449,65 +126352,25 @@ var Encrypt = /*#__PURE__*/function () { */ - _createClass(Encrypt, null, [{ + _createClass(GatewayMigrationSyncOutput, null, [{ key: "initialize", - value: function initialize(obj, keyName) { - obj['key-name'] = keyName; - } + value: function initialize(obj) {} /** - * Constructs a Encrypt from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigrationSyncOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Encrypt} obj Optional instance to populate. - * @return {module:model/Encrypt} The populated Encrypt instance. + * @param {module:model/GatewayMigrationSyncOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationSyncOutput} The populated GatewayMigrationSyncOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Encrypt(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('encryption-context')) { - obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('input-format')) { - obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } + obj = obj || new GatewayMigrationSyncOutput(); - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); } } @@ -50515,76 +126378,20 @@ var Encrypt = /*#__PURE__*/function () { } }]); - return Encrypt; + return GatewayMigrationSyncOutput; }(); /** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -Encrypt.prototype['display-id'] = undefined; -/** - * name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the decrypt command or decryption will fail - * @member {Object.} encryption-context - */ - -Encrypt.prototype['encryption-context'] = undefined; -/** - * Select default assumed format for any plaintext input. Currently supported options: [base64] - * @member {String} input-format - */ - -Encrypt.prototype['input-format'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -Encrypt.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Encrypt.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -Encrypt.prototype['key-name'] = undefined; -/** - * Data to be encrypted - * @member {String} plaintext - */ - -Encrypt.prototype['plaintext'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Encrypt.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} migration_name */ -Encrypt.prototype['uid-token'] = undefined; -/** - * key version (relevant only for classic key) - * @member {Number} version - */ -Encrypt.prototype['version'] = undefined; -var _default = Encrypt; +GatewayMigrationSyncOutput.prototype['migration_name'] = undefined; +var _default = GatewayMigrationSyncOutput; exports["default"] = _default; /***/ }), -/***/ 72137: +/***/ 42419: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50595,7 +126402,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -50606,21 +126413,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EncryptFile model module. - * @module model/EncryptFile - * @version 3.3.16 + * The GatewayMigrationUpdateOutput model module. + * @module model/GatewayMigrationUpdateOutput + * @version 3.6.3 */ -var EncryptFile = /*#__PURE__*/function () { +var GatewayMigrationUpdateOutput = /*#__PURE__*/function () { /** - * Constructs a new EncryptFile. - * @alias module:model/EncryptFile - * @param _in {String} Path to the file to be encrypted. If not provided, the content will be taken from stdin - * @param keyName {String} The name of the key to use in the encryption process + * Constructs a new GatewayMigrationUpdateOutput. + * @alias module:model/GatewayMigrationUpdateOutput */ - function EncryptFile(_in, keyName) { - _classCallCheck(this, EncryptFile); + function GatewayMigrationUpdateOutput() { + _classCallCheck(this, GatewayMigrationUpdateOutput); - EncryptFile.initialize(this, _in, keyName); + GatewayMigrationUpdateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -50629,56 +126434,25 @@ var EncryptFile = /*#__PURE__*/function () { */ - _createClass(EncryptFile, null, [{ + _createClass(GatewayMigrationUpdateOutput, null, [{ key: "initialize", - value: function initialize(obj, _in, keyName) { - obj['in'] = _in; - obj['key-name'] = keyName; - } + value: function initialize(obj) {} /** - * Constructs a EncryptFile from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayMigrationUpdateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptFile} obj Optional instance to populate. - * @return {module:model/EncryptFile} The populated EncryptFile instance. + * @param {module:model/GatewayMigrationUpdateOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationUpdateOutput} The populated GatewayMigrationUpdateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EncryptFile(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('in')) { - obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('out')) { - obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new GatewayMigrationUpdateOutput(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); } } @@ -50686,64 +126460,20 @@ var EncryptFile = /*#__PURE__*/function () { } }]); - return EncryptFile; + return GatewayMigrationUpdateOutput; }(); /** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -EncryptFile.prototype['display-id'] = undefined; -/** - * Path to the file to be encrypted. If not provided, the content will be taken from stdin - * @member {String} in - */ - -EncryptFile.prototype['in'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -EncryptFile.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EncryptFile.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -EncryptFile.prototype['key-name'] = undefined; -/** - * Path to the output file. If not provided, the output will be sent to stdout - * @member {String} out - */ - -EncryptFile.prototype['out'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} migration_name */ -EncryptFile.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -EncryptFile.prototype['uid-token'] = undefined; -var _default = EncryptFile; +GatewayMigrationUpdateOutput.prototype['migration_name'] = undefined; +var _default = GatewayMigrationUpdateOutput; exports["default"] = _default; /***/ }), -/***/ 13999: +/***/ 39810: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50754,7 +126484,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -50765,19 +126495,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EncryptFileOutput model module. - * @module model/EncryptFileOutput - * @version 3.3.16 + * The GatewayRevokeTmpUsers model module. + * @module model/GatewayRevokeTmpUsers + * @version 3.6.3 */ -var EncryptFileOutput = /*#__PURE__*/function () { +var GatewayRevokeTmpUsers = /*#__PURE__*/function () { /** - * Constructs a new EncryptFileOutput. - * @alias module:model/EncryptFileOutput + * Constructs a new GatewayRevokeTmpUsers. + * gatewayRevokeTmpUsers is a command that revoke producer tmp user [Deprecated: Use dynamic-secret-tmp-creds-delete command] + * @alias module:model/GatewayRevokeTmpUsers + * @param name {String} Dynamic secret name + * @param tmpCredsId {String} Tmp Creds ID */ - function EncryptFileOutput() { - _classCallCheck(this, EncryptFileOutput); + function GatewayRevokeTmpUsers(name, tmpCredsId) { + _classCallCheck(this, GatewayRevokeTmpUsers); - EncryptFileOutput.initialize(this); + GatewayRevokeTmpUsers.initialize(this, name, tmpCredsId); } /** * Initializes the fields of this object. @@ -50786,25 +126519,56 @@ var EncryptFileOutput = /*#__PURE__*/function () { */ - _createClass(EncryptFileOutput, null, [{ + _createClass(GatewayRevokeTmpUsers, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, tmpCredsId) { + obj['name'] = name; + obj['tmp-creds-id'] = tmpCredsId; + } /** - * Constructs a EncryptFileOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayRevokeTmpUsers from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptFileOutput} obj Optional instance to populate. - * @return {module:model/EncryptFileOutput} The populated EncryptFileOutput instance. + * @param {module:model/GatewayRevokeTmpUsers} obj Optional instance to populate. + * @return {module:model/GatewayRevokeTmpUsers} The populated GatewayRevokeTmpUsers instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EncryptFileOutput(); + obj = obj || new GatewayRevokeTmpUsers(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('revoke-all')) { + obj['revoke-all'] = _ApiClient["default"].convertToType(data['revoke-all'], 'Boolean'); + } + + if (data.hasOwnProperty('soft-delete')) { + obj['soft-delete'] = _ApiClient["default"].convertToType(data['soft-delete'], 'Boolean'); + } + + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -50812,20 +126576,65 @@ var EncryptFileOutput = /*#__PURE__*/function () { } }]); - return EncryptFileOutput; + return GatewayRevokeTmpUsers; }(); /** - * @member {String} result + * Host + * @member {String} host */ -EncryptFileOutput.prototype['result'] = undefined; -var _default = EncryptFileOutput; +GatewayRevokeTmpUsers.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayRevokeTmpUsers.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayRevokeTmpUsers.prototype['name'] = undefined; +/** + * Revoke All Temp Creds + * @member {Boolean} revoke-all + */ + +GatewayRevokeTmpUsers.prototype['revoke-all'] = undefined; +/** + * Soft Delete + * @member {Boolean} soft-delete + */ + +GatewayRevokeTmpUsers.prototype['soft-delete'] = undefined; +/** + * Tmp Creds ID + * @member {String} tmp-creds-id + * @default 'demo_default_tmp_creds_id_for_sdk_bc' + */ + +GatewayRevokeTmpUsers.prototype['tmp-creds-id'] = 'demo_default_tmp_creds_id_for_sdk_bc'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayRevokeTmpUsers.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayRevokeTmpUsers.prototype['uid-token'] = undefined; +var _default = GatewayRevokeTmpUsers; exports["default"] = _default; /***/ }), -/***/ 4808: +/***/ 70633: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50836,7 +126645,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -50847,21 +126656,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EncryptGPG model module. - * @module model/EncryptGPG - * @version 3.3.16 + * The GatewayStartProducer model module. + * @module model/GatewayStartProducer + * @version 3.6.3 */ -var EncryptGPG = /*#__PURE__*/function () { +var GatewayStartProducer = /*#__PURE__*/function () { /** - * Constructs a new EncryptGPG. - * @alias module:model/EncryptGPG - * @param keyName {String} The name of the key to use in the encryption process - * @param plaintext {String} Data to be encrypted + * Constructs a new GatewayStartProducer. + * gatewayStartProducer is a command that starts producer [Deprecated: Use set-item-state command] + * @alias module:model/GatewayStartProducer + * @param name {String} Dynamic secret name */ - function EncryptGPG(keyName, plaintext) { - _classCallCheck(this, EncryptGPG); + function GatewayStartProducer(name) { + _classCallCheck(this, GatewayStartProducer); - EncryptGPG.initialize(this, keyName, plaintext); + GatewayStartProducer.initialize(this, name); } /** * Initializes the fields of this object. @@ -50870,48 +126679,31 @@ var EncryptGPG = /*#__PURE__*/function () { */ - _createClass(EncryptGPG, null, [{ + _createClass(GatewayStartProducer, null, [{ key: "initialize", - value: function initialize(obj, keyName, plaintext) { - obj['key-name'] = keyName; - obj['plaintext'] = plaintext; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a EncryptGPG from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayStartProducer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptGPG} obj Optional instance to populate. - * @return {module:model/EncryptGPG} The populated EncryptGPG instance. + * @param {module:model/GatewayStartProducer} obj Optional instance to populate. + * @return {module:model/GatewayStartProducer} The populated GatewayStartProducer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EncryptGPG(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('input-format')) { - obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } + obj = obj || new GatewayStartProducer(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -50927,64 +126719,40 @@ var EncryptGPG = /*#__PURE__*/function () { } }]); - return EncryptGPG; + return GatewayStartProducer; }(); -/** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -EncryptGPG.prototype['display-id'] = undefined; -/** - * If specified, the plaintext input is assumed to be formatted accordingly. Current supported options: [base64] - * @member {String} input-format - */ - -EncryptGPG.prototype['input-format'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -EncryptGPG.prototype['item-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -EncryptGPG.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ -EncryptGPG.prototype['key-name'] = undefined; +GatewayStartProducer.prototype['json'] = false; /** - * Data to be encrypted - * @member {String} plaintext + * Dynamic secret name + * @member {String} name */ -EncryptGPG.prototype['plaintext'] = undefined; +GatewayStartProducer.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -EncryptGPG.prototype['token'] = undefined; +GatewayStartProducer.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -EncryptGPG.prototype['uid-token'] = undefined; -var _default = EncryptGPG; +GatewayStartProducer.prototype['uid-token'] = undefined; +var _default = GatewayStartProducer; exports["default"] = _default; /***/ }), -/***/ 80692: +/***/ 29036: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -50995,7 +126763,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51006,19 +126774,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EncryptGPGOutput model module. - * @module model/EncryptGPGOutput - * @version 3.3.16 + * The GatewayStartProducerOutput model module. + * @module model/GatewayStartProducerOutput + * @version 3.6.3 */ -var EncryptGPGOutput = /*#__PURE__*/function () { +var GatewayStartProducerOutput = /*#__PURE__*/function () { /** - * Constructs a new EncryptGPGOutput. - * @alias module:model/EncryptGPGOutput + * Constructs a new GatewayStartProducerOutput. + * @alias module:model/GatewayStartProducerOutput */ - function EncryptGPGOutput() { - _classCallCheck(this, EncryptGPGOutput); + function GatewayStartProducerOutput() { + _classCallCheck(this, GatewayStartProducerOutput); - EncryptGPGOutput.initialize(this); + GatewayStartProducerOutput.initialize(this); } /** * Initializes the fields of this object. @@ -51027,25 +126795,25 @@ var EncryptGPGOutput = /*#__PURE__*/function () { */ - _createClass(EncryptGPGOutput, null, [{ + _createClass(GatewayStartProducerOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EncryptGPGOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayStartProducerOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptGPGOutput} obj Optional instance to populate. - * @return {module:model/EncryptGPGOutput} The populated EncryptGPGOutput instance. + * @param {module:model/GatewayStartProducerOutput} obj Optional instance to populate. + * @return {module:model/GatewayStartProducerOutput} The populated GatewayStartProducerOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EncryptGPGOutput(); + obj = obj || new GatewayStartProducerOutput(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('producer_name')) { + obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); } } @@ -51053,20 +126821,20 @@ var EncryptGPGOutput = /*#__PURE__*/function () { } }]); - return EncryptGPGOutput; + return GatewayStartProducerOutput; }(); /** - * @member {String} result + * @member {String} producer_name */ -EncryptGPGOutput.prototype['result'] = undefined; -var _default = EncryptGPGOutput; +GatewayStartProducerOutput.prototype['producer_name'] = undefined; +var _default = GatewayStartProducerOutput; exports["default"] = _default; /***/ }), -/***/ 23247: +/***/ 20045: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51077,7 +126845,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51088,19 +126856,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EncryptOutput model module. - * @module model/EncryptOutput - * @version 3.3.16 + * The GatewayStatusMigration model module. + * @module model/GatewayStatusMigration + * @version 3.6.3 */ -var EncryptOutput = /*#__PURE__*/function () { +var GatewayStatusMigration = /*#__PURE__*/function () { /** - * Constructs a new EncryptOutput. - * @alias module:model/EncryptOutput + * Constructs a new GatewayStatusMigration. + * gatewayStatusMigration is a command that get migration status + * @alias module:model/GatewayStatusMigration */ - function EncryptOutput() { - _classCallCheck(this, EncryptOutput); + function GatewayStatusMigration() { + _classCallCheck(this, GatewayStatusMigration); - EncryptOutput.initialize(this); + GatewayStatusMigration.initialize(this); } /** * Initializes the fields of this object. @@ -51109,25 +126878,41 @@ var EncryptOutput = /*#__PURE__*/function () { */ - _createClass(EncryptOutput, null, [{ + _createClass(GatewayStatusMigration, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EncryptOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayStatusMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptOutput} obj Optional instance to populate. - * @return {module:model/EncryptOutput} The populated EncryptOutput instance. + * @param {module:model/GatewayStatusMigration} obj Optional instance to populate. + * @return {module:model/GatewayStatusMigration} The populated GatewayStatusMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EncryptOutput(); + obj = obj || new GatewayStatusMigration(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -51135,20 +126920,46 @@ var EncryptOutput = /*#__PURE__*/function () { } }]); - return EncryptOutput; + return GatewayStatusMigration; }(); /** - * @member {String} result + * Migration ID + * @member {String} id */ -EncryptOutput.prototype['result'] = undefined; -var _default = EncryptOutput; +GatewayStatusMigration.prototype['id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayStatusMigration.prototype['json'] = false; +/** + * Migration name to display + * @member {String} name + */ + +GatewayStatusMigration.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayStatusMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayStatusMigration.prototype['uid-token'] = undefined; +var _default = GatewayStatusMigration; exports["default"] = _default; /***/ }), -/***/ 33560: +/***/ 31541: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51159,7 +126970,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51170,22 +126981,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EncryptWithClassicKey model module. - * @module model/EncryptWithClassicKey - * @version 3.3.16 + * The GatewayStopProducer model module. + * @module model/GatewayStopProducer + * @version 3.6.3 */ -var EncryptWithClassicKey = /*#__PURE__*/function () { +var GatewayStopProducer = /*#__PURE__*/function () { /** - * Constructs a new EncryptWithClassicKey. - * @alias module:model/EncryptWithClassicKey - * @param displayId {String} The name of the key to use in the encryption process - * @param plaintext {String} Data to be encrypted - * @param version {Number} classic key version + * Constructs a new GatewayStopProducer. + * gatewayStopProducer is a command that stops producer [Deprecated: Use set-item-state command] + * @alias module:model/GatewayStopProducer + * @param name {String} Dynamic secret name */ - function EncryptWithClassicKey(displayId, plaintext, version) { - _classCallCheck(this, EncryptWithClassicKey); + function GatewayStopProducer(name) { + _classCallCheck(this, GatewayStopProducer); - EncryptWithClassicKey.initialize(this, displayId, plaintext, version); + GatewayStopProducer.initialize(this, name); } /** * Initializes the fields of this object. @@ -51194,37 +127004,31 @@ var EncryptWithClassicKey = /*#__PURE__*/function () { */ - _createClass(EncryptWithClassicKey, null, [{ + _createClass(GatewayStopProducer, null, [{ key: "initialize", - value: function initialize(obj, displayId, plaintext, version) { - obj['display-id'] = displayId; - obj['plaintext'] = plaintext; - obj['version'] = version; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a EncryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayStopProducer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptWithClassicKey} obj Optional instance to populate. - * @return {module:model/EncryptWithClassicKey} The populated EncryptWithClassicKey instance. + * @param {module:model/GatewayStopProducer} obj Optional instance to populate. + * @return {module:model/GatewayStopProducer} The populated GatewayStopProducer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EncryptWithClassicKey(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } + obj = obj || new GatewayStopProducer(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -51234,62 +127038,46 @@ var EncryptWithClassicKey = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } } return obj; } }]); - return EncryptWithClassicKey; + return GatewayStopProducer; }(); -/** - * The name of the key to use in the encryption process - * @member {String} display-id - */ - - -EncryptWithClassicKey.prototype['display-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -EncryptWithClassicKey.prototype['json'] = false; + +GatewayStopProducer.prototype['json'] = false; /** - * Data to be encrypted - * @member {String} plaintext + * Dynamic secret name + * @member {String} name */ -EncryptWithClassicKey.prototype['plaintext'] = undefined; +GatewayStopProducer.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -EncryptWithClassicKey.prototype['token'] = undefined; +GatewayStopProducer.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -EncryptWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -EncryptWithClassicKey.prototype['version'] = undefined; -var _default = EncryptWithClassicKey; +GatewayStopProducer.prototype['uid-token'] = undefined; +var _default = GatewayStopProducer; exports["default"] = _default; /***/ }), -/***/ 32942: +/***/ 73024: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51300,7 +127088,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51311,19 +127099,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EncryptWithClassicKeyOutput model module. - * @module model/EncryptWithClassicKeyOutput - * @version 3.3.16 + * The GatewayStopProducerOutput model module. + * @module model/GatewayStopProducerOutput + * @version 3.6.3 */ -var EncryptWithClassicKeyOutput = /*#__PURE__*/function () { +var GatewayStopProducerOutput = /*#__PURE__*/function () { /** - * Constructs a new EncryptWithClassicKeyOutput. - * @alias module:model/EncryptWithClassicKeyOutput + * Constructs a new GatewayStopProducerOutput. + * @alias module:model/GatewayStopProducerOutput */ - function EncryptWithClassicKeyOutput() { - _classCallCheck(this, EncryptWithClassicKeyOutput); + function GatewayStopProducerOutput() { + _classCallCheck(this, GatewayStopProducerOutput); - EncryptWithClassicKeyOutput.initialize(this); + GatewayStopProducerOutput.initialize(this); } /** * Initializes the fields of this object. @@ -51332,25 +127120,25 @@ var EncryptWithClassicKeyOutput = /*#__PURE__*/function () { */ - _createClass(EncryptWithClassicKeyOutput, null, [{ + _createClass(GatewayStopProducerOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EncryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayStopProducerOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptWithClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/EncryptWithClassicKeyOutput} The populated EncryptWithClassicKeyOutput instance. + * @param {module:model/GatewayStopProducerOutput} obj Optional instance to populate. + * @return {module:model/GatewayStopProducerOutput} The populated GatewayStopProducerOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EncryptWithClassicKeyOutput(); + obj = obj || new GatewayStopProducerOutput(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('producer_name')) { + obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); } } @@ -51358,20 +127146,20 @@ var EncryptWithClassicKeyOutput = /*#__PURE__*/function () { } }]); - return EncryptWithClassicKeyOutput; + return GatewayStopProducerOutput; }(); /** - * @member {String} result + * @member {String} producer_name */ -EncryptWithClassicKeyOutput.prototype['result'] = undefined; -var _default = EncryptWithClassicKeyOutput; +GatewayStopProducerOutput.prototype['producer_name'] = undefined; +var _default = GatewayStopProducerOutput; exports["default"] = _default; /***/ }), -/***/ 44195: +/***/ 95462: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51382,7 +127170,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51393,23 +127181,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmCreate model module. - * @module model/EsmCreate - * @version 3.3.16 + * The GatewaySyncMigration model module. + * @module model/GatewaySyncMigration + * @version 3.6.3 */ -var EsmCreate = /*#__PURE__*/function () { +var GatewaySyncMigration = /*#__PURE__*/function () { /** - * Constructs a new EsmCreate. - * esmCreate is a command that creates a new secret in an External Secrets Manager - * @alias module:model/EsmCreate - * @param esmName {String} Name of the External Secrets Manager item - * @param secretName {String} Name for the new external secret - * @param value {String} Value of the external secret item, either text or base64 encoded binary + * Constructs a new GatewaySyncMigration. + * gatewaySyncMigration is a command that sync migration + * @alias module:model/GatewaySyncMigration + * @param name {String} Migration name */ - function EsmCreate(esmName, secretName, value) { - _classCallCheck(this, EsmCreate); + function GatewaySyncMigration(name) { + _classCallCheck(this, GatewaySyncMigration); - EsmCreate.initialize(this, esmName, secretName, value); + GatewaySyncMigration.initialize(this, name); } /** * Initializes the fields of this object. @@ -51418,51 +127204,35 @@ var EsmCreate = /*#__PURE__*/function () { */ - _createClass(EsmCreate, null, [{ + _createClass(GatewaySyncMigration, null, [{ key: "initialize", - value: function initialize(obj, esmName, secretName, value) { - obj['esm-name'] = esmName; - obj['secret-name'] = secretName; - obj['value'] = value; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a EsmCreate from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewaySyncMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmCreate} obj Optional instance to populate. - * @return {module:model/EsmCreate} The populated EsmCreate instance. + * @param {module:model/GatewaySyncMigration} obj Optional instance to populate. + * @return {module:model/GatewaySyncMigration} The populated GatewaySyncMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmCreate(); - - if (data.hasOwnProperty('binary-value')) { - obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); - } + obj = obj || new GatewaySyncMigration(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('secret-name')) { - obj['secret-name'] = _ApiClient["default"].convertToType(data['secret-name'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { - 'String': 'String' - }); + if (data.hasOwnProperty('start-sync')) { + obj['start-sync'] = _ApiClient["default"].convertToType(data['start-sync'], 'Boolean'); } if (data.hasOwnProperty('token')) { @@ -51472,80 +127242,52 @@ var EsmCreate = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } } return obj; } }]); - return EsmCreate; + return GatewaySyncMigration; }(); -/** - * Use this option if the external secret value is a base64 encoded binary - * @member {Boolean} binary-value - */ - - -EsmCreate.prototype['binary-value'] = undefined; -/** - * Description of the external secret - * @member {String} description - */ - -EsmCreate.prototype['description'] = undefined; -/** - * Name of the External Secrets Manager item - * @member {String} esm-name - */ - -EsmCreate.prototype['esm-name'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -EsmCreate.prototype['json'] = false; + +GatewaySyncMigration.prototype['json'] = false; /** - * Name for the new external secret - * @member {String} secret-name + * Migration name + * @member {String} name */ -EsmCreate.prototype['secret-name'] = undefined; +GatewaySyncMigration.prototype['name'] = undefined; /** - * Tags for the external secret - * @member {Object.} tags + * true, for starting synchronization, false for stopping + * @member {Boolean} start-sync */ -EsmCreate.prototype['tags'] = undefined; +GatewaySyncMigration.prototype['start-sync'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -EsmCreate.prototype['token'] = undefined; +GatewaySyncMigration.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -EsmCreate.prototype['uid-token'] = undefined; -/** - * Value of the external secret item, either text or base64 encoded binary - * @member {String} value - */ - -EsmCreate.prototype['value'] = undefined; -var _default = EsmCreate; +GatewaySyncMigration.prototype['uid-token'] = undefined; +var _default = GatewaySyncMigration; exports["default"] = _default; /***/ }), -/***/ 63074: +/***/ 84774: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51556,7 +127298,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51567,19 +127309,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmCreateSecretOutput model module. - * @module model/EsmCreateSecretOutput - * @version 3.3.16 + * The GatewayUpdateAllowedAccess model module. + * @module model/GatewayUpdateAllowedAccess + * @version 3.6.3 */ -var EsmCreateSecretOutput = /*#__PURE__*/function () { +var GatewayUpdateAllowedAccess = /*#__PURE__*/function () { /** - * Constructs a new EsmCreateSecretOutput. - * @alias module:model/EsmCreateSecretOutput + * Constructs a new GatewayUpdateAllowedAccess. + * gatewayUpdateAllowedAccess is a command that update allowed access in Gator + * @alias module:model/GatewayUpdateAllowedAccess + * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @param name {String} Allowed access name */ - function EsmCreateSecretOutput() { - _classCallCheck(this, EsmCreateSecretOutput); + function GatewayUpdateAllowedAccess(accessId, name) { + _classCallCheck(this, GatewayUpdateAllowedAccess); - EsmCreateSecretOutput.initialize(this); + GatewayUpdateAllowedAccess.initialize(this, accessId, name); } /** * Initializes the fields of this object. @@ -51588,29 +127333,70 @@ var EsmCreateSecretOutput = /*#__PURE__*/function () { */ - _createClass(EsmCreateSecretOutput, null, [{ + _createClass(GatewayUpdateAllowedAccess, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, accessId, name) { + obj['access-id'] = accessId; + obj['name'] = name; + } /** - * Constructs a EsmCreateSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateAllowedAccess from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmCreateSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmCreateSecretOutput} The populated EsmCreateSecretOutput instance. + * @param {module:model/GatewayUpdateAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayUpdateAllowedAccess} The populated GatewayUpdateAllowedAccess instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmCreateSecretOutput(); + obj = obj || new GatewayUpdateAllowedAccess(); - if (data.hasOwnProperty('secret_id')) { - obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + if (data.hasOwnProperty('SubClaimsCaseInsensitive')) { + obj['SubClaimsCaseInsensitive'] = _ApiClient["default"].convertToType(data['SubClaimsCaseInsensitive'], 'Boolean'); } - if (data.hasOwnProperty('version_id')) { - obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('permissions')) { + obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -51618,25 +127404,82 @@ var EsmCreateSecretOutput = /*#__PURE__*/function () { } }]); - return EsmCreateSecretOutput; + return GatewayUpdateAllowedAccess; }(); /** - * @member {String} secret_id + * @member {Boolean} SubClaimsCaseInsensitive */ -EsmCreateSecretOutput.prototype['secret_id'] = undefined; +GatewayUpdateAllowedAccess.prototype['SubClaimsCaseInsensitive'] = undefined; /** - * @member {String} version_id + * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @member {String} access-id */ -EsmCreateSecretOutput.prototype['version_id'] = undefined; -var _default = EsmCreateSecretOutput; +GatewayUpdateAllowedAccess.prototype['access-id'] = undefined; +/** + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' + */ + +GatewayUpdateAllowedAccess.prototype['case-sensitive'] = 'true'; +/** + * Allowed access description + * @member {String} description + */ + +GatewayUpdateAllowedAccess.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateAllowedAccess.prototype['json'] = false; +/** + * Allowed access name + * @member {String} name + */ + +GatewayUpdateAllowedAccess.prototype['name'] = undefined; +/** + * New allowed access name + * @member {String} new-name + */ + +GatewayUpdateAllowedAccess.prototype['new-name'] = undefined; +/** + * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] + * @member {String} permissions + */ + +GatewayUpdateAllowedAccess.prototype['permissions'] = undefined; +/** + * Sub claims key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +GatewayUpdateAllowedAccess.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateAllowedAccess.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayUpdateAllowedAccess; exports["default"] = _default; /***/ }), -/***/ 23265: +/***/ 40933: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51647,7 +127490,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51658,22 +127501,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmDelete model module. - * @module model/EsmDelete - * @version 3.3.16 + * The GatewayUpdateItem model module. + * @module model/GatewayUpdateItem + * @version 3.6.3 */ -var EsmDelete = /*#__PURE__*/function () { +var GatewayUpdateItem = /*#__PURE__*/function () { /** - * Constructs a new EsmDelete. - * esmDelete is a command that deletes a secret from an External Secrets Manager - * @alias module:model/EsmDelete - * @param esmName {String} Name of the External Secrets Manager item - * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to delete + * Constructs a new GatewayUpdateItem. + * gatewayUpdateItem is a command that updates classic key + * @alias module:model/GatewayUpdateItem + * @param name {String} Item name + * @param type {String} Item type */ - function EsmDelete(esmName, secretId) { - _classCallCheck(this, EsmDelete); + function GatewayUpdateItem(name, type) { + _classCallCheck(this, GatewayUpdateItem); - EsmDelete.initialize(this, esmName, secretId); + GatewayUpdateItem.initialize(this, name, type); } /** * Initializes the fields of this object. @@ -51682,42 +127525,138 @@ var EsmDelete = /*#__PURE__*/function () { */ - _createClass(EsmDelete, null, [{ + _createClass(GatewayUpdateItem, null, [{ key: "initialize", - value: function initialize(obj, esmName, secretId) { - obj['esm-name'] = esmName; - obj['secret-id'] = secretId; + value: function initialize(obj, name, type) { + obj['name'] = name; + obj['type'] = type; } /** - * Constructs a EsmDelete from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateItem from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmDelete} obj Optional instance to populate. - * @return {module:model/EsmDelete} The populated EsmDelete instance. + * @param {module:model/GatewayUpdateItem} obj Optional instance to populate. + * @return {module:model/GatewayUpdateItem} The populated GatewayUpdateItem instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmDelete(); + obj = obj || new GatewayUpdateItem(); - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } + + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('app-id')) { + obj['app-id'] = _ApiClient["default"].convertToType(data['app-id'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); + } + + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('secret-id')) { - obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-metadata')) { + obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-creds-type')) { + obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -51727,46 +127666,194 @@ var EsmDelete = /*#__PURE__*/function () { } }]); - return EsmDelete; + return GatewayUpdateItem; }(); /** - * Name of the External Secrets Manager item - * @member {String} esm-name + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -EsmDelete.prototype['esm-name'] = undefined; +GatewayUpdateItem.prototype['add-tag'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + +GatewayUpdateItem.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +GatewayUpdateItem.prototype['api-key'] = undefined; +/** + * ApplicationId (used in azure) + * @member {String} app-id + */ + +GatewayUpdateItem.prototype['app-id'] = undefined; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +GatewayUpdateItem.prototype['auto-rotate'] = undefined; +/** + * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) + * @member {String} custom-payload + */ + +GatewayUpdateItem.prototype['custom-payload'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateItem.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ + +GatewayUpdateItem.prototype['description'] = 'default_metadata'; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +GatewayUpdateItem.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ + +GatewayUpdateItem.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ + +GatewayUpdateItem.prototype['gcp-service-account-key-id'] = undefined; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ + +GatewayUpdateItem.prototype['grace-rotation'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -EsmDelete.prototype['json'] = false; +GatewayUpdateItem.prototype['json'] = false; /** - * The external secret id (or name, for AWS, Azure or K8s targets) to delete - * @member {String} secret-id + * Whether to keep previous version [true/false]. (relevant only for --type=rotated-secret). If not set, use default according to account settings + * @member {String} keep-prev-version */ -EsmDelete.prototype['secret-id'] = undefined; +GatewayUpdateItem.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +GatewayUpdateItem.prototype['key'] = undefined; +/** + * Item name + * @member {String} name + */ + +GatewayUpdateItem.prototype['name'] = undefined; +/** + * Deprecated - use description + * @member {String} new-metadata + * @default 'default_metadata' + */ + +GatewayUpdateItem.prototype['new-metadata'] = 'default_metadata'; +/** + * New item name + * @member {String} new-name + */ + +GatewayUpdateItem.prototype['new-name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ + +GatewayUpdateItem.prototype['new-version'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateItem.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +GatewayUpdateItem.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +GatewayUpdateItem.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected \\\"use-self-creds\\\" at rotator-creds-type, this username will try to rotate it's own password, if \\\"use-target-creds\\\" is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +GatewayUpdateItem.prototype['rotated-username'] = undefined; +/** + * The Rotation Hour + * @member {Number} rotation-hour + * @default 0 + */ + +GatewayUpdateItem.prototype['rotation-hour'] = 0; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +GatewayUpdateItem.prototype['rotation-interval'] = undefined; +/** + * The rotation credentials type + * @member {String} rotator-creds-type + * @default 'use-self-creds' + */ + +GatewayUpdateItem.prototype['rotator-creds-type'] = 'use-self-creds'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -EsmDelete.prototype['token'] = undefined; +GatewayUpdateItem.prototype['token'] = undefined; +/** + * Item type + * @member {String} type + */ + +GatewayUpdateItem.prototype['type'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -EsmDelete.prototype['uid-token'] = undefined; -var _default = EsmDelete; +GatewayUpdateItem.prototype['uid-token'] = undefined; +var _default = GatewayUpdateItem; exports["default"] = _default; /***/ }), -/***/ 90654: +/***/ 43920: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51777,7 +127864,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51788,19 +127875,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmDeleteSecretOutput model module. - * @module model/EsmDeleteSecretOutput - * @version 3.3.16 + * The GatewayUpdateItemOutput model module. + * @module model/GatewayUpdateItemOutput + * @version 3.6.3 */ -var EsmDeleteSecretOutput = /*#__PURE__*/function () { +var GatewayUpdateItemOutput = /*#__PURE__*/function () { /** - * Constructs a new EsmDeleteSecretOutput. - * @alias module:model/EsmDeleteSecretOutput + * Constructs a new GatewayUpdateItemOutput. + * @alias module:model/GatewayUpdateItemOutput */ - function EsmDeleteSecretOutput() { - _classCallCheck(this, EsmDeleteSecretOutput); + function GatewayUpdateItemOutput() { + _classCallCheck(this, GatewayUpdateItemOutput); - EsmDeleteSecretOutput.initialize(this); + GatewayUpdateItemOutput.initialize(this); } /** * Initializes the fields of this object. @@ -51809,22 +127896,22 @@ var EsmDeleteSecretOutput = /*#__PURE__*/function () { */ - _createClass(EsmDeleteSecretOutput, null, [{ + _createClass(GatewayUpdateItemOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EsmDeleteSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateItemOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmDeleteSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmDeleteSecretOutput} The populated EsmDeleteSecretOutput instance. + * @param {module:model/GatewayUpdateItemOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateItemOutput} The populated GatewayUpdateItemOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmDeleteSecretOutput(); + obj = obj || new GatewayUpdateItemOutput(); if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); @@ -51835,20 +127922,20 @@ var EsmDeleteSecretOutput = /*#__PURE__*/function () { } }]); - return EsmDeleteSecretOutput; + return GatewayUpdateItemOutput; }(); /** * @member {String} name */ -EsmDeleteSecretOutput.prototype['name'] = undefined; -var _default = EsmDeleteSecretOutput; +GatewayUpdateItemOutput.prototype['name'] = undefined; +var _default = GatewayUpdateItemOutput; exports["default"] = _default; /***/ }), -/***/ 50319: +/***/ 29412: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51859,7 +127946,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -51870,22 +127957,25 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmGet model module. - * @module model/EsmGet - * @version 3.3.16 + * The GatewayUpdateK8SAuthConfig model module. + * @module model/GatewayUpdateK8SAuthConfig + * @version 3.6.3 */ -var EsmGet = /*#__PURE__*/function () { +var GatewayUpdateK8SAuthConfig = /*#__PURE__*/function () { /** - * Constructs a new EsmGet. - * esmGet is a command that gets the value and interal details of a secret from an External Secrets Manager - * @alias module:model/EsmGet - * @param esmName {String} Name of the External Secrets Manager item - * @param secretId {String} The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager + * Constructs a new GatewayUpdateK8SAuthConfig. + * gatewayUpdateK8SAuth is a command that updates k8s auth config + * @alias module:model/GatewayUpdateK8SAuthConfig + * @param accessId {String} The access ID of the Kubernetes auth method + * @param k8sHost {String} The URL of the kubernetes API server + * @param name {String} K8S Auth config name + * @param newName {String} K8S Auth config new name + * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth */ - function EsmGet(esmName, secretId) { - _classCallCheck(this, EsmGet); + function GatewayUpdateK8SAuthConfig(accessId, k8sHost, name, newName, signingKey) { + _classCallCheck(this, GatewayUpdateK8SAuthConfig); - EsmGet.initialize(this, esmName, secretId); + GatewayUpdateK8SAuthConfig.initialize(this, accessId, k8sHost, name, newName, signingKey); } /** * Initializes the fields of this object. @@ -51894,91 +127984,258 @@ var EsmGet = /*#__PURE__*/function () { */ - _createClass(EsmGet, null, [{ + _createClass(GatewayUpdateK8SAuthConfig, null, [{ key: "initialize", - value: function initialize(obj, esmName, secretId) { - obj['esm-name'] = esmName; - obj['secret-id'] = secretId; + value: function initialize(obj, accessId, k8sHost, name, newName, signingKey) { + obj['access-id'] = accessId; + obj['k8s-host'] = k8sHost; + obj['name'] = name; + obj['new-name'] = newName; + obj['signing-key'] = signingKey; } /** - * Constructs a EsmGet from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmGet} obj Optional instance to populate. - * @return {module:model/EsmGet} The populated EsmGet instance. + * @param {module:model/GatewayUpdateK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayUpdateK8SAuthConfig} The populated GatewayUpdateK8SAuthConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmGet(); + obj = obj || new GatewayUpdateK8SAuthConfig(); - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('cluster-api-type')) { + obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); + } + + if (data.hasOwnProperty('config-encryption-key-name')) { + obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('disable-issuer-validation')) { + obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('secret-id')) { - obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); - } + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-ca-cert')) { + obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } + + if (data.hasOwnProperty('k8s-host')) { + obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); + } + + if (data.hasOwnProperty('k8s-issuer')) { + obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('rancher-api-key')) { + obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); + } + + if (data.hasOwnProperty('rancher-cluster-id')) { + obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); + } + + if (data.hasOwnProperty('signing-key')) { + obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-exp')) { + obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); + } + + if (data.hasOwnProperty('token-reviewer-jwt')) { + obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GatewayUpdateK8SAuthConfig; +}(); +/** + * The access ID of the Kubernetes auth method + * @member {String} access-id + */ + + +GatewayUpdateK8SAuthConfig.prototype['access-id'] = undefined; +/** + * Cluster access type. options: [native_k8s, rancher] + * @member {String} cluster-api-type + * @default 'native_k8s' + */ + +GatewayUpdateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; +/** + * Config encryption key + * @member {String} config-encryption-key-name + */ + +GatewayUpdateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; +/** + * Disable issuer validation [true/false] + * @member {String} disable-issuer-validation + */ + +GatewayUpdateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateK8SAuthConfig.prototype['json'] = false; +/** + * K8S auth type [token/certificate]. (relevant for \"native_k8s\" only) + * @member {String} k8s-auth-type + * @default 'token' + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-auth-type'] = 'token'; +/** + * The CA Certificate (base64 encoded) to use to call into the kubernetes API server + * @member {String} k8s-ca-cert + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; +/** + * Content of the k8 client certificate (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-certificate + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +GatewayUpdateK8SAuthConfig.prototype['k8s-client-certificate'] = undefined; +/** + * Content of the k8 client private key (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-key + */ - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } +GatewayUpdateK8SAuthConfig.prototype['k8s-client-key'] = undefined; +/** + * The URL of the kubernetes API server + * @member {String} k8s-host + */ - return obj; - } - }]); +GatewayUpdateK8SAuthConfig.prototype['k8s-host'] = undefined; +/** + * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s-issuer + * @default 'kubernetes/serviceaccount' + */ - return EsmGet; -}(); +GatewayUpdateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; /** - * Name of the External Secrets Manager item - * @member {String} esm-name + * K8S Auth config name + * @member {String} name */ +GatewayUpdateK8SAuthConfig.prototype['name'] = undefined; +/** + * K8S Auth config new name + * @member {String} new-name + */ -EsmGet.prototype['esm-name'] = undefined; +GatewayUpdateK8SAuthConfig.prototype['new-name'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) + * @member {String} rancher-api-key */ -EsmGet.prototype['json'] = false; +GatewayUpdateK8SAuthConfig.prototype['rancher-api-key'] = undefined; /** - * The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager - * @member {String} secret-id + * The cluster id as define in rancher (relevant for \"rancher\" only) + * @member {String} rancher-cluster-id */ -EsmGet.prototype['secret-id'] = undefined; +GatewayUpdateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; +/** + * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + * @member {String} signing-key + */ + +GatewayUpdateK8SAuthConfig.prototype['signing-key'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -EsmGet.prototype['token'] = undefined; +GatewayUpdateK8SAuthConfig.prototype['token'] = undefined; +/** + * Time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} token-exp + * @default 300 + */ + +GatewayUpdateK8SAuthConfig.prototype['token-exp'] = 300; +/** + * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. + * @member {String} token-reviewer-jwt + */ + +GatewayUpdateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -EsmGet.prototype['uid-token'] = undefined; -var _default = EsmGet; +GatewayUpdateK8SAuthConfig.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +GatewayUpdateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; +var _default = GatewayUpdateK8SAuthConfig; exports["default"] = _default; /***/ }), -/***/ 22540: +/***/ 27253: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -51989,7 +128246,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(75263)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -52000,19 +128259,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmGetSecretOutput model module. - * @module model/EsmGetSecretOutput - * @version 3.3.16 + * The GatewayUpdateK8SAuthConfigOutput model module. + * @module model/GatewayUpdateK8SAuthConfigOutput + * @version 3.6.3 */ -var EsmGetSecretOutput = /*#__PURE__*/function () { +var GatewayUpdateK8SAuthConfigOutput = /*#__PURE__*/function () { /** - * Constructs a new EsmGetSecretOutput. - * @alias module:model/EsmGetSecretOutput + * Constructs a new GatewayUpdateK8SAuthConfigOutput. + * @alias module:model/GatewayUpdateK8SAuthConfigOutput */ - function EsmGetSecretOutput() { - _classCallCheck(this, EsmGetSecretOutput); + function GatewayUpdateK8SAuthConfigOutput() { + _classCallCheck(this, GatewayUpdateK8SAuthConfigOutput); - EsmGetSecretOutput.initialize(this); + GatewayUpdateK8SAuthConfigOutput.initialize(this); } /** * Initializes the fields of this object. @@ -52021,37 +128280,33 @@ var EsmGetSecretOutput = /*#__PURE__*/function () { */ - _createClass(EsmGetSecretOutput, null, [{ + _createClass(GatewayUpdateK8SAuthConfigOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EsmGetSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmGetSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmGetSecretOutput} The populated EsmGetSecretOutput instance. + * @param {module:model/GatewayUpdateK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateK8SAuthConfigOutput} The populated GatewayUpdateK8SAuthConfigOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmGetSecretOutput(); - - if (data.hasOwnProperty('binary_value')) { - obj['binary_value'] = _ApiClient["default"].convertToType(data['binary_value'], 'Boolean'); - } + obj = obj || new GatewayUpdateK8SAuthConfigOutput(); - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('parts_change')) { + obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); } - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + if (data.hasOwnProperty('total_hash')) { + obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); } } @@ -52059,35 +128314,30 @@ var EsmGetSecretOutput = /*#__PURE__*/function () { } }]); - return EsmGetSecretOutput; + return GatewayUpdateK8SAuthConfigOutput; }(); /** - * @member {Boolean} binary_value + * @member {String} cluster_id */ -EsmGetSecretOutput.prototype['binary_value'] = undefined; -/** - * @member {Object} metadata - */ - -EsmGetSecretOutput.prototype['metadata'] = undefined; +GatewayUpdateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; /** - * @member {String} name + * @member {module:model/ConfigChange} parts_change */ -EsmGetSecretOutput.prototype['name'] = undefined; +GatewayUpdateK8SAuthConfigOutput.prototype['parts_change'] = undefined; /** - * @member {String} value + * @member {String} total_hash */ -EsmGetSecretOutput.prototype['value'] = undefined; -var _default = EsmGetSecretOutput; +GatewayUpdateK8SAuthConfigOutput.prototype['total_hash'] = undefined; +var _default = GatewayUpdateK8SAuthConfigOutput; exports["default"] = _default; /***/ }), -/***/ 74849: +/***/ 19167: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -52098,7 +128348,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -52109,21 +128359,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmList model module. - * @module model/EsmList - * @version 3.3.16 + * The GatewayUpdateLdapAuthConfig model module. + * @module model/GatewayUpdateLdapAuthConfig + * @version 3.6.3 */ -var EsmList = /*#__PURE__*/function () { +var GatewayUpdateLdapAuthConfig = /*#__PURE__*/function () { /** - * Constructs a new EsmList. - * esmList is a command that lists the secrets of an External Secrets Manager - * @alias module:model/EsmList - * @param esmName {String} Name of the External Secrets Manager item + * Constructs a new GatewayUpdateLdapAuthConfig. + * gatewayUpdateLdapAuth is a command that updates ldap auth config + * @alias module:model/GatewayUpdateLdapAuthConfig */ - function EsmList(esmName) { - _classCallCheck(this, EsmList); + function GatewayUpdateLdapAuthConfig() { + _classCallCheck(this, GatewayUpdateLdapAuthConfig); - EsmList.initialize(this, esmName); + GatewayUpdateLdapAuthConfig.initialize(this); } /** * Initializes the fields of this object. @@ -52132,33 +128381,71 @@ var EsmList = /*#__PURE__*/function () { */ - _createClass(EsmList, null, [{ + _createClass(GatewayUpdateLdapAuthConfig, null, [{ key: "initialize", - value: function initialize(obj, esmName) { - obj['esm-name'] = esmName; - } + value: function initialize(obj) {} /** - * Constructs a EsmList from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmList} obj Optional instance to populate. - * @return {module:model/EsmList} The populated EsmList instance. + * @param {module:model/GatewayUpdateLdapAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayUpdateLdapAuthConfig} The populated GatewayUpdateLdapAuthConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmList(); + obj = obj || new GatewayUpdateLdapAuthConfig(); - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('group-attr')) { + obj['group-attr'] = _ApiClient["default"].convertToType(data['group-attr'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } + + if (data.hasOwnProperty('group-filter')) { + obj['group-filter'] = _ApiClient["default"].convertToType(data['group-filter'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-enable')) { + obj['ldap-enable'] = _ApiClient["default"].convertToType(data['ldap-enable'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('ldap_anonymous_search')) { + obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); + } + + if (data.hasOwnProperty('signing-key-data')) { + obj['signing-key-data'] = _ApiClient["default"].convertToType(data['signing-key-data'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -52166,46 +128453,126 @@ var EsmList = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } } return obj; } }]); - return EsmList; + return GatewayUpdateLdapAuthConfig; }(); /** - * Name of the External Secrets Manager item - * @member {String} esm-name + * The access ID of the Ldap auth method + * @member {String} access-id */ -EsmList.prototype['esm-name'] = undefined; +GatewayUpdateLdapAuthConfig.prototype['access-id'] = undefined; +/** + * Bind DN + * @member {String} bind-dn + */ + +GatewayUpdateLdapAuthConfig.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +GatewayUpdateLdapAuthConfig.prototype['bind-dn-password'] = undefined; +/** + * Group Attr + * @member {String} group-attr + */ + +GatewayUpdateLdapAuthConfig.prototype['group-attr'] = undefined; +/** + * Group Dn + * @member {String} group-dn + */ + +GatewayUpdateLdapAuthConfig.prototype['group-dn'] = undefined; +/** + * Group Filter + * @member {String} group-filter + */ + +GatewayUpdateLdapAuthConfig.prototype['group-filter'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -EsmList.prototype['json'] = false; +GatewayUpdateLdapAuthConfig.prototype['json'] = false; +/** + * LDAP CA Certificate (base64 encoded) + * @member {String} ldap-ca-cert + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap-ca-cert'] = undefined; +/** + * Enable Ldap [true/false] + * @member {String} ldap-enable + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap-enable'] = undefined; +/** + * LDAP Server URL, e.g. ldap://planetexpress.com:389 + * @member {String} ldap-url + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap-url'] = undefined; +/** + * Ldap Anonymous Search + * @member {Boolean} ldap_anonymous_search + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap_anonymous_search'] = undefined; +/** + * The private key (base64 encoded), associated with the public key defined in the Ldap auth + * @member {String} signing-key-data + */ + +GatewayUpdateLdapAuthConfig.prototype['signing-key-data'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -EsmList.prototype['token'] = undefined; +GatewayUpdateLdapAuthConfig.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -EsmList.prototype['uid-token'] = undefined; -var _default = EsmList; +GatewayUpdateLdapAuthConfig.prototype['uid-token'] = undefined; +/** + * User Attribute + * @member {String} user-attribute + */ + +GatewayUpdateLdapAuthConfig.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ + +GatewayUpdateLdapAuthConfig.prototype['user-dn'] = undefined; +var _default = GatewayUpdateLdapAuthConfig; exports["default"] = _default; /***/ }), -/***/ 1907: +/***/ 45606: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -52216,9 +128583,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _SecretInfo = _interopRequireDefault(__nccwpck_require__(55514)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -52229,19 +128594,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmListSecretsOutput model module. - * @module model/EsmListSecretsOutput - * @version 3.3.16 + * The GatewayUpdateLdapAuthConfigOutput model module. + * @module model/GatewayUpdateLdapAuthConfigOutput + * @version 3.6.3 */ -var EsmListSecretsOutput = /*#__PURE__*/function () { +var GatewayUpdateLdapAuthConfigOutput = /*#__PURE__*/function () { /** - * Constructs a new EsmListSecretsOutput. - * @alias module:model/EsmListSecretsOutput + * Constructs a new GatewayUpdateLdapAuthConfigOutput. + * @alias module:model/GatewayUpdateLdapAuthConfigOutput */ - function EsmListSecretsOutput() { - _classCallCheck(this, EsmListSecretsOutput); + function GatewayUpdateLdapAuthConfigOutput() { + _classCallCheck(this, GatewayUpdateLdapAuthConfigOutput); - EsmListSecretsOutput.initialize(this); + GatewayUpdateLdapAuthConfigOutput.initialize(this); } /** * Initializes the fields of this object. @@ -52250,25 +128615,25 @@ var EsmListSecretsOutput = /*#__PURE__*/function () { */ - _createClass(EsmListSecretsOutput, null, [{ + _createClass(GatewayUpdateLdapAuthConfigOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a EsmListSecretsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmListSecretsOutput} obj Optional instance to populate. - * @return {module:model/EsmListSecretsOutput} The populated EsmListSecretsOutput instance. + * @param {module:model/GatewayUpdateLdapAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateLdapAuthConfigOutput} The populated GatewayUpdateLdapAuthConfigOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmListSecretsOutput(); + obj = obj || new GatewayUpdateLdapAuthConfigOutput(); - if (data.hasOwnProperty('secrets_list')) { - obj['secrets_list'] = _ApiClient["default"].convertToType(data['secrets_list'], [_SecretInfo["default"]]); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } } @@ -52276,20 +128641,20 @@ var EsmListSecretsOutput = /*#__PURE__*/function () { } }]); - return EsmListSecretsOutput; + return GatewayUpdateLdapAuthConfigOutput; }(); /** - * @member {Array.} secrets_list + * @member {Boolean} updated */ -EsmListSecretsOutput.prototype['secrets_list'] = undefined; -var _default = EsmListSecretsOutput; +GatewayUpdateLdapAuthConfigOutput.prototype['updated'] = undefined; +var _default = GatewayUpdateLdapAuthConfigOutput; exports["default"] = _default; /***/ }), -/***/ 12560: +/***/ 53524: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -52300,7 +128665,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -52311,23 +128676,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The EsmUpdate model module. - * @module model/EsmUpdate - * @version 3.3.16 + * The GatewayUpdateMigration model module. + * @module model/GatewayUpdateMigration + * @version 3.6.3 */ -var EsmUpdate = /*#__PURE__*/function () { +var GatewayUpdateMigration = /*#__PURE__*/function () { /** - * Constructs a new EsmUpdate. - * esmUpdate is a command that updates a secret in an External Secrets Manager - * @alias module:model/EsmUpdate - * @param esmName {String} Name of the External Secrets Manager item - * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to update - * @param value {String} Value of the external secret item, either text or base64 encoded binary + * Constructs a new GatewayUpdateMigration. + * gatewayUpdateMigration is a command that update migration + * @alias module:model/GatewayUpdateMigration + * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @param targetLocation {String} Target location in Akeyless for imported secrets */ - function EsmUpdate(esmName, secretId, value) { - _classCallCheck(this, EsmUpdate); + function GatewayUpdateMigration(siTargetName, siUsersPathTemplate, targetLocation) { + _classCallCheck(this, GatewayUpdateMigration); - EsmUpdate.initialize(this, esmName, secretId, value); + GatewayUpdateMigration.initialize(this, siTargetName, siUsersPathTemplate, targetLocation); } /** * Initializes the fields of this object. @@ -52336,51 +128701,273 @@ var EsmUpdate = /*#__PURE__*/function () { */ - _createClass(EsmUpdate, null, [{ + _createClass(GatewayUpdateMigration, null, [{ key: "initialize", - value: function initialize(obj, esmName, secretId, value) { - obj['esm-name'] = esmName; - obj['secret-id'] = secretId; - obj['value'] = value; + value: function initialize(obj, siTargetName, siUsersPathTemplate, targetLocation) { + obj['si-target-name'] = siTargetName; + obj['si-users-path-template'] = siUsersPathTemplate; + obj['target-location'] = targetLocation; } /** - * Constructs a EsmUpdate from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmUpdate} obj Optional instance to populate. - * @return {module:model/EsmUpdate} The populated EsmUpdate instance. + * @param {module:model/GatewayUpdateMigration} obj Optional instance to populate. + * @return {module:model/GatewayUpdateMigration} The populated GatewayUpdateMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new EsmUpdate(); + obj = obj || new GatewayUpdateMigration(); - if (data.hasOwnProperty('binary-value')) { - obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); + if (data.hasOwnProperty('1password-email')) { + obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('1password-password')) { + obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); } - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + if (data.hasOwnProperty('1password-secret-key')) { + obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); + } + + if (data.hasOwnProperty('1password-url')) { + obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); + } + + if (data.hasOwnProperty('1password-vaults')) { + obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); + } + + if (data.hasOwnProperty('ad-discover-services')) { + obj['ad-discover-services'] = _ApiClient["default"].convertToType(data['ad-discover-services'], 'String'); + } + + if (data.hasOwnProperty('ad-discovery-types')) { + obj['ad-discovery-types'] = _ApiClient["default"].convertToType(data['ad-discovery-types'], ['String']); + } + + if (data.hasOwnProperty('ad-os-filter')) { + obj['ad-os-filter'] = _ApiClient["default"].convertToType(data['ad-os-filter'], 'String'); + } + + if (data.hasOwnProperty('ad-ssh-port')) { + obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); + } + + if (data.hasOwnProperty('ad-target-format')) { + obj['ad-target-format'] = _ApiClient["default"].convertToType(data['ad-target-format'], 'String'); + } + + if (data.hasOwnProperty('ad-targets-type')) { + obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-over-http')) { + obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-port')) { + obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); + } + + if (data.hasOwnProperty('ad_auto_rotate')) { + obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); + } + + if (data.hasOwnProperty('ad_computer_base_dn')) { + obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_discover_local_users')) { + obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_name')) { + obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_users_path_template')) { + obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_ignore')) { + obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_path_template')) { + obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_rotation_hour')) { + obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); + } + + if (data.hasOwnProperty('ad_rotation_interval')) { + obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); + } + + if (data.hasOwnProperty('ad_sra_enable_rdp')) { + obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); + } + + if (data.hasOwnProperty('ad_target_name')) { + obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); + } + + if (data.hasOwnProperty('ad_targets_path_template')) { + obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_user_base_dn')) { + obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_user_groups')) { + obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); + } + + if (data.hasOwnProperty('aws-key')) { + obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); + } + + if (data.hasOwnProperty('aws-key-id')) { + obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('azure-secret')) { + obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('hashi-json')) { + obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); + } + + if (data.hasOwnProperty('hashi-ns')) { + obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); + } + + if (data.hasOwnProperty('hashi-token')) { + obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); + } + + if (data.hasOwnProperty('hashi-url')) { + obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('secret-id')) { - obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); + if (data.hasOwnProperty('k8s-ca-certificate')) { + obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { - 'String': 'String' - }); + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-password')) { + obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); + } + + if (data.hasOwnProperty('k8s-skip-system')) { + obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-token')) { + obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-url')) { + obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); + } + + if (data.hasOwnProperty('k8s-username')) { + obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new_name')) { + obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); + } + + if (data.hasOwnProperty('protection-key')) { + obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); + } + + if (data.hasOwnProperty('si-auto-rotate')) { + obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('si-rotation-hour')) { + obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('si-rotation-interval')) { + obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); + } + + if (data.hasOwnProperty('si-sra-enable-rdp')) { + obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); + } + + if (data.hasOwnProperty('si-target-name')) { + obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); + } + + if (data.hasOwnProperty('si-user-groups')) { + obj['si-user-groups'] = _ApiClient["default"].convertToType(data['si-user-groups'], 'String'); + } + + if (data.hasOwnProperty('si-users-ignore')) { + obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); + } + + if (data.hasOwnProperty('si-users-path-template')) { + obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); + } + + if (data.hasOwnProperty('target-location')) { + obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); } if (data.hasOwnProperty('token')) { @@ -52390,309 +128977,415 @@ var EsmUpdate = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } } return obj; } }]); - return EsmUpdate; + return GatewayUpdateMigration; }(); /** - * Use this option if the external secret value is a base64 encoded binary - * @member {Boolean} binary-value + * 1Password user email to connect to the API + * @member {String} 1password-email */ -EsmUpdate.prototype['binary-value'] = undefined; +GatewayUpdateMigration.prototype['1password-email'] = undefined; /** - * Description of the external secret - * @member {String} description + * 1Password user password to connect to the API + * @member {String} 1password-password */ -EsmUpdate.prototype['description'] = undefined; +GatewayUpdateMigration.prototype['1password-password'] = undefined; /** - * Name of the External Secrets Manager item - * @member {String} esm-name + * 1Password user secret key to connect to the API + * @member {String} 1password-secret-key */ -EsmUpdate.prototype['esm-name'] = undefined; +GatewayUpdateMigration.prototype['1password-secret-key'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * 1Password api container url + * @member {String} 1password-url */ -EsmUpdate.prototype['json'] = false; +GatewayUpdateMigration.prototype['1password-url'] = undefined; /** - * The external secret id (or name, for AWS, Azure or K8s targets) to update - * @member {String} secret-id + * 1Password list of vault to get the items from + * @member {Array.} 1password-vaults */ -EsmUpdate.prototype['secret-id'] = undefined; +GatewayUpdateMigration.prototype['1password-vaults'] = undefined; /** - * Tags for the external secret - * @member {Object.} tags + * Enable/Disable discovery of Windows services from each domain server as part of the SSH/Windows Rotated Secrets. Default is false. (Relevant only for Active Directory migration) + * @member {String} ad-discover-services + * @default 'false' */ -EsmUpdate.prototype['tags'] = undefined; +GatewayUpdateMigration.prototype['ad-discover-services'] = 'false'; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Set migration discovery types (domain-users, computers, local-users). (Relevant only for Active Directory migration) + * @member {Array.} ad-discovery-types */ -EsmUpdate.prototype['token'] = undefined; +GatewayUpdateMigration.prototype['ad-discovery-types'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Filter by Operating System to run the migration, can be used with wildcards, e.g. SRV20* (Relevant only for Active Directory migration) + * @member {String} ad-os-filter */ -EsmUpdate.prototype['uid-token'] = undefined; +GatewayUpdateMigration.prototype['ad-os-filter'] = undefined; /** - * Value of the external secret item, either text or base64 encoded binary - * @member {String} value + * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) + * @member {String} ad-ssh-port + * @default '22' */ -EsmUpdate.prototype['value'] = undefined; -var _default = EsmUpdate; -exports["default"] = _default; +GatewayUpdateMigration.prototype['ad-ssh-port'] = '22'; +/** + * Relevant only for ad-discovery-types=computers. For linked, all computers will be migrated into a linked target(s). if set with regular, the migration will create a target for each computer. + * @member {String} ad-target-format + * @default 'linked' + */ -/***/ }), +GatewayUpdateMigration.prototype['ad-target-format'] = 'linked'; +/** + * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) + * @member {String} ad-targets-type + * @default 'windows' + */ -/***/ 18466: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +GatewayUpdateMigration.prototype['ad-targets-type'] = 'windows'; +/** + * Use WinRM over HTTP, by default runs over HTTPS + * @member {String} ad-winrm-over-http + * @default 'false' + */ -"use strict"; +GatewayUpdateMigration.prototype['ad-winrm-over-http'] = 'false'; +/** + * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) + * @member {String} ad-winrm-port + * @default '5986' + */ +GatewayUpdateMigration.prototype['ad-winrm-port'] = '5986'; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) + * @member {String} ad_auto_rotate + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +GatewayUpdateMigration.prototype['ad_auto_rotate'] = undefined; +/** + * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_computer_base_dn + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +GatewayUpdateMigration.prototype['ad_computer_base_dn'] = undefined; +/** + * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) Deprecated: use AdDiscoverTypes + * @member {String} ad_discover_local_users + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +GatewayUpdateMigration.prototype['ad_discover_local_users'] = undefined; +/** + * Active Directory Domain Name (Relevant only for Active Directory migration) + * @member {String} ad_domain_name + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +GatewayUpdateMigration.prototype['ad_domain_name'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_domain_users_path_template + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +GatewayUpdateMigration.prototype['ad_domain_users_path_template'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) + * @member {String} ad_local_users_ignore + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +GatewayUpdateMigration.prototype['ad_local_users_ignore'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_local_users_path_template + */ +GatewayUpdateMigration.prototype['ad_local_users_path_template'] = undefined; /** - * The EsmUpdateSecretOutput model module. - * @module model/EsmUpdateSecretOutput - * @version 3.3.16 + * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_hour */ -var EsmUpdateSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new EsmUpdateSecretOutput. - * @alias module:model/EsmUpdateSecretOutput - */ - function EsmUpdateSecretOutput() { - _classCallCheck(this, EsmUpdateSecretOutput); - EsmUpdateSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +GatewayUpdateMigration.prototype['ad_rotation_hour'] = undefined; +/** + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_interval + */ +GatewayUpdateMigration.prototype['ad_rotation_interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) + * @member {String} ad_sra_enable_rdp + */ - _createClass(EsmUpdateSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EsmUpdateSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmUpdateSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmUpdateSecretOutput} The populated EsmUpdateSecretOutput instance. - */ +GatewayUpdateMigration.prototype['ad_sra_enable_rdp'] = undefined; +/** + * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) + * @member {String} ad_target_name + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmUpdateSecretOutput(); +GatewayUpdateMigration.prototype['ad_target_name'] = undefined; +/** + * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) + * @member {String} ad_targets_path_template + */ - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +GatewayUpdateMigration.prototype['ad_targets_path_template'] = undefined; +/** + * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_user_base_dn + */ - if (data.hasOwnProperty('secret_id')) { - obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); - } +GatewayUpdateMigration.prototype['ad_user_base_dn'] = undefined; +/** + * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) + * @member {String} ad_user_groups + */ - if (data.hasOwnProperty('version_id')) { - obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); - } - } +GatewayUpdateMigration.prototype['ad_user_groups'] = undefined; +/** + * AWS Secret Access Key (relevant only for AWS migration) + * @member {String} aws-key + */ - return obj; - } - }]); +GatewayUpdateMigration.prototype['aws-key'] = undefined; +/** + * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) + * @member {String} aws-key-id + */ - return EsmUpdateSecretOutput; -}(); +GatewayUpdateMigration.prototype['aws-key-id'] = undefined; /** - * @member {String} name + * AWS region of the required Secrets Manager (relevant only for AWS migration) + * @member {String} aws-region + * @default 'us-east-2' */ +GatewayUpdateMigration.prototype['aws-region'] = 'us-east-2'; +/** + * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) + * @member {String} azure-client-id + */ -EsmUpdateSecretOutput.prototype['name'] = undefined; +GatewayUpdateMigration.prototype['azure-client-id'] = undefined; /** - * @member {String} secret_id + * Azure Key Vault Name (relevant only for Azure Key Vault migration) + * @member {String} azure-kv-name */ -EsmUpdateSecretOutput.prototype['secret_id'] = undefined; +GatewayUpdateMigration.prototype['azure-kv-name'] = undefined; /** - * @member {String} version_id + * Azure Key Vault secret (relevant only for Azure Key Vault migration) + * @member {String} azure-secret */ -EsmUpdateSecretOutput.prototype['version_id'] = undefined; -var _default = EsmUpdateSecretOutput; -exports["default"] = _default; +GatewayUpdateMigration.prototype['azure-secret'] = undefined; +/** + * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) + * @member {String} azure-tenant-id + */ -/***/ }), +GatewayUpdateMigration.prototype['azure-tenant-id'] = undefined; +/** + * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) + * @member {String} gcp-key + */ -/***/ 72018: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +GatewayUpdateMigration.prototype['gcp-key'] = undefined; +/** + * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] + * @member {String} hashi-json + * @default 'true' + */ -"use strict"; +GatewayUpdateMigration.prototype['hashi-json'] = 'true'; +/** + * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) + * @member {Array.} hashi-ns + */ +GatewayUpdateMigration.prototype['hashi-ns'] = undefined; +/** + * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) + * @member {String} hashi-token + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +GatewayUpdateMigration.prototype['hashi-token'] = undefined; +/** + * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) + * @member {String} hashi-url + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +GatewayUpdateMigration.prototype['hashi-url'] = undefined; +/** + * Migration ID (Can be retrieved with gateway-list-migration command) + * @member {String} id + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +GatewayUpdateMigration.prototype['id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +GatewayUpdateMigration.prototype['json'] = false; +/** + * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-ca-certificate + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +GatewayUpdateMigration.prototype['k8s-ca-certificate'] = undefined; +/** + * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-certificate + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +GatewayUpdateMigration.prototype['k8s-client-certificate'] = undefined; +/** + * K8s Client key (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-key + */ +GatewayUpdateMigration.prototype['k8s-client-key'] = undefined; /** - * The EventAction model module. - * @module model/EventAction - * @version 3.3.16 + * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) + * @member {String} k8s-namespace */ -var EventAction = /*#__PURE__*/function () { - /** - * Constructs a new EventAction. - * @alias module:model/EventAction - * @param action {String} The Event Action [approve/deny] - * @param eventId {Number} The Event ID - */ - function EventAction(action, eventId) { - _classCallCheck(this, EventAction); - EventAction.initialize(this, action, eventId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +GatewayUpdateMigration.prototype['k8s-namespace'] = undefined; +/** + * K8s Client password (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-password + */ +GatewayUpdateMigration.prototype['k8s-password'] = undefined; +/** + * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) + * @member {Boolean} k8s-skip-system + */ - _createClass(EventAction, null, [{ - key: "initialize", - value: function initialize(obj, action, eventId) { - obj['action'] = action; - obj['event-id'] = eventId; - } - /** - * Constructs a EventAction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EventAction} obj Optional instance to populate. - * @return {module:model/EventAction} The populated EventAction instance. - */ +GatewayUpdateMigration.prototype['k8s-skip-system'] = undefined; +/** + * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) + * @member {String} k8s-token + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EventAction(); +GatewayUpdateMigration.prototype['k8s-token'] = undefined; +/** + * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) + * @member {String} k8s-url + */ - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } +GatewayUpdateMigration.prototype['k8s-url'] = undefined; +/** + * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-username + */ + +GatewayUpdateMigration.prototype['k8s-username'] = undefined; +/** + * Migration name + * @member {String} name + */ + +GatewayUpdateMigration.prototype['name'] = undefined; +/** + * New migration name + * @member {String} new_name + */ + +GatewayUpdateMigration.prototype['new_name'] = undefined; +/** + * The name of the key that protects the classic key value (if empty, the account default key will be used) + * @member {String} protection-key + */ - if (data.hasOwnProperty('event-id')) { - obj['event-id'] = _ApiClient["default"].convertToType(data['event-id'], 'Number'); - } +GatewayUpdateMigration.prototype['protection-key'] = undefined; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) + * @member {String} si-auto-rotate + */ - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +GatewayUpdateMigration.prototype['si-auto-rotate'] = undefined; +/** + * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-hour + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +GatewayUpdateMigration.prototype['si-rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-interval + */ - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } +GatewayUpdateMigration.prototype['si-rotation-interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) + * @member {String} si-sra-enable-rdp + * @default 'false' + */ - return obj; - } - }]); +GatewayUpdateMigration.prototype['si-sra-enable-rdp'] = 'false'; +/** + * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @member {String} si-target-name + */ - return EventAction; -}(); +GatewayUpdateMigration.prototype['si-target-name'] = undefined; /** - * The Event Action [approve/deny] - * @member {String} action + * Comma-separated list of groups to migrate users from. If empty, all users from all groups will be migrated (Relevant only for Server Inventory migration) + * @member {String} si-user-groups */ +GatewayUpdateMigration.prototype['si-user-groups'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) + * @member {String} si-users-ignore + */ -EventAction.prototype['action'] = undefined; +GatewayUpdateMigration.prototype['si-users-ignore'] = undefined; /** - * The Event ID - * @member {Number} event-id + * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @member {String} si-users-path-template */ -EventAction.prototype['event-id'] = undefined; +GatewayUpdateMigration.prototype['si-users-path-template'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Target location in Akeyless for imported secrets + * @member {String} target-location */ -EventAction.prototype['json'] = false; +GatewayUpdateMigration.prototype['target-location'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -EventAction.prototype['token'] = undefined; +GatewayUpdateMigration.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -EventAction.prototype['uid-token'] = undefined; -var _default = EventAction; +GatewayUpdateMigration.prototype['uid-token'] = undefined; +var _default = GatewayUpdateMigration; exports["default"] = _default; /***/ }), -/***/ 65944: +/***/ 31348: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -52703,7 +129396,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -52714,21 +129407,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ExportClassicKey model module. - * @module model/ExportClassicKey - * @version 3.3.16 + * The GatewayUpdateProducerArtifactory model module. + * @module model/GatewayUpdateProducerArtifactory + * @version 3.6.3 */ -var ExportClassicKey = /*#__PURE__*/function () { +var GatewayUpdateProducerArtifactory = /*#__PURE__*/function () { /** - * Constructs a new ExportClassicKey. - * ExportClassicKey is a command that returns the classic key material - * @alias module:model/ExportClassicKey - * @param name {String} ClassicKey name + * Constructs a new GatewayUpdateProducerArtifactory. + * gatewayUpdateProducerArtifactory is a command that updates artifactory producer [Deprecated: Use dynamic-secret-update-artifactory command] + * @alias module:model/GatewayUpdateProducerArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name */ - function ExportClassicKey(name) { - _classCallCheck(this, ExportClassicKey); + function GatewayUpdateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, GatewayUpdateProducerArtifactory); - ExportClassicKey.initialize(this, name); + GatewayUpdateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); } /** * Initializes the fields of this object. @@ -52737,31 +129432,49 @@ var ExportClassicKey = /*#__PURE__*/function () { */ - _createClass(ExportClassicKey, null, [{ + _createClass(GatewayUpdateProducerArtifactory, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; obj['name'] = name; } /** - * Constructs a ExportClassicKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ExportClassicKey} obj Optional instance to populate. - * @return {module:model/ExportClassicKey} The populated ExportClassicKey instance. + * @param {module:model/GatewayUpdateProducerArtifactory} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerArtifactory} The populated GatewayUpdateProducerArtifactory instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ExportClassicKey(); + obj = obj || new GatewayUpdateProducerArtifactory(); - if (data.hasOwnProperty('export-public-key')) { - obj['export-public-key'] = _ApiClient["default"].convertToType(data['export-public-key'], 'Boolean'); + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); } - if (data.hasOwnProperty('ignore-cache')) { - obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('json')) { @@ -52772,6 +129485,22 @@ var ExportClassicKey = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -52780,8 +129509,8 @@ var ExportClassicKey = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -52789,151 +129518,107 @@ var ExportClassicKey = /*#__PURE__*/function () { } }]); - return ExportClassicKey; + return GatewayUpdateProducerArtifactory; }(); /** - * Use this option to output only public key - * @member {Boolean} export-public-key - * @default false + * Artifactory Admin Name + * @member {String} artifactory-admin-name */ -ExportClassicKey.prototype['export-public-key'] = false; +GatewayUpdateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; /** - * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI - * @member {String} ignore-cache - * @default 'false' + * Artifactory Admin password + * @member {String} artifactory-admin-pwd */ -ExportClassicKey.prototype['ignore-cache'] = 'false'; +GatewayUpdateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Token Audience + * @member {String} artifactory-token-audience */ -ExportClassicKey.prototype['json'] = false; +GatewayUpdateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; /** - * ClassicKey name - * @member {String} name + * Token Scope + * @member {String} artifactory-token-scope */ -ExportClassicKey.prototype['name'] = undefined; +GatewayUpdateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Base URL + * @member {String} base-url */ -ExportClassicKey.prototype['token'] = undefined; +GatewayUpdateProducerArtifactory.prototype['base-url'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -ExportClassicKey.prototype['uid-token'] = undefined; +GatewayUpdateProducerArtifactory.prototype['delete_protection'] = undefined; /** - * Classic key version - * @member {Number} version + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ExportClassicKey.prototype['version'] = undefined; -var _default = ExportClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 19726: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GatewayUpdateProducerArtifactory.prototype['json'] = false; /** - * The ExportClassicKeyOutput model module. - * @module model/ExportClassicKeyOutput - * @version 3.3.16 + * Dynamic secret name + * @member {String} name */ -var ExportClassicKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new ExportClassicKeyOutput. - * @alias module:model/ExportClassicKeyOutput - */ - function ExportClassicKeyOutput() { - _classCallCheck(this, ExportClassicKeyOutput); - - ExportClassicKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ExportClassicKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ExportClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ExportClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/ExportClassicKeyOutput} The populated ExportClassicKeyOutput instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ExportClassicKeyOutput(); +GatewayUpdateProducerArtifactory.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ - if (data.hasOwnProperty('certificatePem')) { - obj['certificatePem'] = _ApiClient["default"].convertToType(data['certificatePem'], 'String'); - } +GatewayUpdateProducerArtifactory.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - } +GatewayUpdateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - return obj; - } - }]); +GatewayUpdateProducerArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return ExportClassicKeyOutput; -}(); +GatewayUpdateProducerArtifactory.prototype['target-name'] = undefined; /** - * @member {String} certificatePem + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +GatewayUpdateProducerArtifactory.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -ExportClassicKeyOutput.prototype['certificatePem'] = undefined; +GatewayUpdateProducerArtifactory.prototype['uid-token'] = undefined; /** - * @member {String} key + * User TTL + * @member {String} user-ttl + * @default '60m' */ -ExportClassicKeyOutput.prototype['key'] = undefined; -var _default = ExportClassicKeyOutput; +GatewayUpdateProducerArtifactory.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerArtifactory; exports["default"] = _default; /***/ }), -/***/ 37518: +/***/ 95077: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -52944,7 +129629,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -52955,19 +129642,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Extension model module. - * @module model/Extension - * @version 3.3.16 + * The GatewayUpdateProducerArtifactoryOutput model module. + * @module model/GatewayUpdateProducerArtifactoryOutput + * @version 3.6.3 */ -var Extension = /*#__PURE__*/function () { +var GatewayUpdateProducerArtifactoryOutput = /*#__PURE__*/function () { /** - * Constructs a new Extension. - * @alias module:model/Extension + * Constructs a new GatewayUpdateProducerArtifactoryOutput. + * @alias module:model/GatewayUpdateProducerArtifactoryOutput */ - function Extension() { - _classCallCheck(this, Extension); + function GatewayUpdateProducerArtifactoryOutput() { + _classCallCheck(this, GatewayUpdateProducerArtifactoryOutput); - Extension.initialize(this); + GatewayUpdateProducerArtifactoryOutput.initialize(this); } /** * Initializes the fields of this object. @@ -52976,33 +129663,25 @@ var Extension = /*#__PURE__*/function () { */ - _createClass(Extension, null, [{ + _createClass(GatewayUpdateProducerArtifactoryOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a Extension from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Extension} obj Optional instance to populate. - * @return {module:model/Extension} The populated Extension instance. + * @param {module:model/GatewayUpdateProducerArtifactoryOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerArtifactoryOutput} The populated GatewayUpdateProducerArtifactoryOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Extension(); - - if (data.hasOwnProperty('Critical')) { - obj['Critical'] = _ApiClient["default"].convertToType(data['Critical'], 'Boolean'); - } - - if (data.hasOwnProperty('Name')) { - obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); - } + obj = obj || new GatewayUpdateProducerArtifactoryOutput(); - if (data.hasOwnProperty('Value')) { - obj['Value'] = _ApiClient["default"].convertToType(data['Value'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -53010,30 +129689,20 @@ var Extension = /*#__PURE__*/function () { } }]); - return Extension; + return GatewayUpdateProducerArtifactoryOutput; }(); /** - * @member {Boolean} Critical - */ - - -Extension.prototype['Critical'] = undefined; -/** - * @member {String} Name + * @member {module:model/DSProducerDetails} producer_details */ -Extension.prototype['Name'] = undefined; -/** - * @member {String} Value - */ -Extension.prototype['Value'] = undefined; -var _default = Extension; +GatewayUpdateProducerArtifactoryOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerArtifactoryOutput; exports["default"] = _default; /***/ }), -/***/ 18398: +/***/ 21375: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -53044,7 +129713,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -53055,19 +129724,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ExternalKMSKeyId model module. - * @module model/ExternalKMSKeyId - * @version 3.3.16 + * The GatewayUpdateProducerAws model module. + * @module model/GatewayUpdateProducerAws + * @version 3.6.3 */ -var ExternalKMSKeyId = /*#__PURE__*/function () { +var GatewayUpdateProducerAws = /*#__PURE__*/function () { /** - * Constructs a new ExternalKMSKeyId. - * @alias module:model/ExternalKMSKeyId + * Constructs a new GatewayUpdateProducerAws. + * gatewayUpdateProducerAws is a command that Updates aws producer [Deprecated: Use dynamic-secret-update-aws command] + * @alias module:model/GatewayUpdateProducerAws + * @param name {String} Dynamic secret name */ - function ExternalKMSKeyId() { - _classCallCheck(this, ExternalKMSKeyId); + function GatewayUpdateProducerAws(name) { + _classCallCheck(this, GatewayUpdateProducerAws); - ExternalKMSKeyId.initialize(this); + GatewayUpdateProducerAws.initialize(this, name); } /** * Initializes the fields of this object. @@ -53076,146 +129747,139 @@ var ExternalKMSKeyId = /*#__PURE__*/function () { */ - _createClass(ExternalKMSKeyId, null, [{ + _createClass(GatewayUpdateProducerAws, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ExternalKMSKeyId from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerAws from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ExternalKMSKeyId} obj Optional instance to populate. - * @return {module:model/ExternalKMSKeyId} The populated ExternalKMSKeyId instance. + * @param {module:model/GatewayUpdateProducerAws} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAws} The populated GatewayUpdateProducerAws instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ExternalKMSKeyId(); + obj = obj || new GatewayUpdateProducerAws(); - if (data.hasOwnProperty('key_id')) { - obj['key_id'] = _ApiClient["default"].convertToType(data['key_id'], 'String'); + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); } - if (data.hasOwnProperty('key_reference')) { - obj['key_reference'] = _ApiClient["default"].convertToType(data['key_reference'], 'String'); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); } - } - - return obj; - } - }]); - return ExternalKMSKeyId; -}(); -/** - * @member {String} key_id - */ + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); + } + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); + } -ExternalKMSKeyId.prototype['key_id'] = undefined; -/** - * @member {String} key_reference - */ + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); + } -ExternalKMSKeyId.prototype['key_reference'] = undefined; -var _default = ExternalKMSKeyId; -exports["default"] = _default; + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); + } -/***/ 68968: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); + } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -/** - * The GCPAccessRules model module. - * @module model/GCPAccessRules - * @version 3.3.16 - */ -var GCPAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new GCPAccessRules. - * @alias module:model/GCPAccessRules - */ - function GCPAccessRules() { - _classCallCheck(this, GCPAccessRules); + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } - GCPAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } - _createClass(GCPAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GCPAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GCPAccessRules} obj Optional instance to populate. - * @return {module:model/GCPAccessRules} The populated GCPAccessRules instance. - */ + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GCPAccessRules(); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('bound_labels')) { - obj['bound_labels'] = _ApiClient["default"].convertToType(data['bound_labels'], { - 'String': 'String' - }); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (data.hasOwnProperty('bound_projects')) { - obj['bound_projects'] = _ApiClient["default"].convertToType(data['bound_projects'], ['String']); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('bound_regions')) { - obj['bound_regions'] = _ApiClient["default"].convertToType(data['bound_regions'], ['String']); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('bound_service_accounts')) { - obj['bound_service_accounts'] = _ApiClient["default"].convertToType(data['bound_service_accounts'], ['String']); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('bound_zones')) { - obj['bound_zones'] = _ApiClient["default"].convertToType(data['bound_zones'], ['String']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('service_account')) { - obj['service_account'] = _ApiClient["default"].convertToType(data['service_account'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -53223,477 +129887,198 @@ var GCPAccessRules = /*#__PURE__*/function () { } }]); - return GCPAccessRules; + return GatewayUpdateProducerAws; }(); /** - * The audience in the JWT - * @member {String} audience - * @default 'akeyless.io' + * @member {String} access-mode */ -GCPAccessRules.prototype['audience'] = 'akeyless.io'; +GatewayUpdateProducerAws.prototype['access-mode'] = undefined; /** - * A map of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... - * @member {Object.} bound_labels + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 */ -GCPAccessRules.prototype['bound_labels'] = undefined; +GatewayUpdateProducerAws.prototype['admin-rotation-interval-days'] = 0; /** - * Human and Machine authentication section Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. - * @member {Array.} bound_projects + * Access Key ID + * @member {String} aws-access-key-id */ -GCPAccessRules.prototype['bound_projects'] = undefined; +GatewayUpdateProducerAws.prototype['aws-access-key-id'] = undefined; /** - * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. - * @member {Array.} bound_regions + * Secret Access Key + * @member {String} aws-access-secret-key */ -GCPAccessRules.prototype['bound_regions'] = undefined; +GatewayUpdateProducerAws.prototype['aws-access-secret-key'] = undefined; /** - * List of service accounts the service account must be part of in order to be authenticated - * @member {Array.} bound_service_accounts + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns */ -GCPAccessRules.prototype['bound_service_accounts'] = undefined; +GatewayUpdateProducerAws.prototype['aws-role-arns'] = undefined; /** - * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. - * @member {Array.} bound_zones + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false */ -GCPAccessRules.prototype['bound_zones'] = undefined; +GatewayUpdateProducerAws.prototype['aws-user-console-access'] = false; /** - * ServiceAccount holds the credentials file contents to be used by Akeyless to validate IAM (Human) and GCE (Machine) logins against GCP base64 encoded string - * @member {String} service_account + * AWS User groups + * @member {String} aws-user-groups */ -GCPAccessRules.prototype['service_account'] = undefined; +GatewayUpdateProducerAws.prototype['aws-user-groups'] = undefined; /** - * @member {String} type + * AWS User policies + * @member {String} aws-user-policies */ -GCPAccessRules.prototype['type'] = undefined; -var _default = GCPAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 52127: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GatewayUpdateProducerAws.prototype['aws-user-policies'] = undefined; /** - * The GCPPayload model module. - * @module model/GCPPayload - * @version 3.3.16 + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true */ -var GCPPayload = /*#__PURE__*/function () { - /** - * Constructs a new GCPPayload. - * @alias module:model/GCPPayload - */ - function GCPPayload() { - _classCallCheck(this, GCPPayload); - - GCPPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GCPPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GCPPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GCPPayload} obj Optional instance to populate. - * @return {module:model/GCPPayload} The populated GCPPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GCPPayload(); - if (data.hasOwnProperty('gcp_credentials_json')) { - obj['gcp_credentials_json'] = _ApiClient["default"].convertToType(data['gcp_credentials_json'], 'String'); - } - } - - return obj; - } - }]); - - return GCPPayload; -}(); +GatewayUpdateProducerAws.prototype['aws-user-programmatic-access'] = true; /** - * @member {String} gcp_credentials_json + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ - -GCPPayload.prototype['gcp_credentials_json'] = undefined; -var _default = GCPPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 32232: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _GCPPayload = _interopRequireDefault(__nccwpck_require__(52127)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GatewayUpdateProducerAws.prototype['delete_protection'] = undefined; /** - * The GCPSecretsMigration model module. - * @module model/GCPSecretsMigration - * @version 3.3.16 + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false */ -var GCPSecretsMigration = /*#__PURE__*/function () { - /** - * Constructs a new GCPSecretsMigration. - * @alias module:model/GCPSecretsMigration - */ - function GCPSecretsMigration() { - _classCallCheck(this, GCPSecretsMigration); - - GCPSecretsMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - _createClass(GCPSecretsMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GCPSecretsMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GCPSecretsMigration} obj Optional instance to populate. - * @return {module:model/GCPSecretsMigration} The populated GCPSecretsMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GCPSecretsMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _GCPPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return GCPSecretsMigration; -}(); +GatewayUpdateProducerAws.prototype['enable-admin-rotation'] = false; /** - * @member {module:model/MigrationGeneral} general + * Set output format to JSON + * @member {Boolean} json + * @default false */ - -GCPSecretsMigration.prototype['general'] = undefined; +GatewayUpdateProducerAws.prototype['json'] = false; /** - * @member {module:model/GCPPayload} payload + * Dynamic secret name + * @member {String} name */ -GCPSecretsMigration.prototype['payload'] = undefined; -var _default = GCPSecretsMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 68381: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GatewayUpdateProducerAws.prototype['name'] = undefined; /** - * The GKETargetDetails model module. - * @module model/GKETargetDetails - * @version 3.3.16 + * Dynamic secret name + * @member {String} new-name */ -var GKETargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new GKETargetDetails. - * GKETargetDetails defines details related to connecting to a GKE (Google Kubernetes Engine) target - * @alias module:model/GKETargetDetails - */ - function GKETargetDetails() { - _classCallCheck(this, GKETargetDetails); - - GKETargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GKETargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GKETargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GKETargetDetails} obj Optional instance to populate. - * @return {module:model/GKETargetDetails} The populated GKETargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GKETargetDetails(); - - if (data.hasOwnProperty('gke_cluster_ca_certificate')) { - obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('gke_cluster_endpoint')) { - obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke_cluster_name')) { - obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); - } - - if (data.hasOwnProperty('gke_service_account_key')) { - obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); - } - - if (data.hasOwnProperty('gke_service_account_name')) { - obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); - } - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GKETargetDetails; -}(); +GatewayUpdateProducerAws.prototype['new-name'] = undefined; /** - * @member {String} gke_cluster_ca_certificate + * The length of the password to be generated + * @member {String} password-length */ - -GKETargetDetails.prototype['gke_cluster_ca_certificate'] = undefined; +GatewayUpdateProducerAws.prototype['password-length'] = undefined; /** - * @member {String} gke_cluster_endpoint + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GKETargetDetails.prototype['gke_cluster_endpoint'] = undefined; +GatewayUpdateProducerAws.prototype['producer-encryption-key-name'] = undefined; /** - * @member {String} gke_cluster_name + * Region + * @member {String} region + * @default 'us-east-2' */ -GKETargetDetails.prototype['gke_cluster_name'] = undefined; +GatewayUpdateProducerAws.prototype['region'] = 'us-east-2'; /** - * @member {String} gke_service_account_key + * The AWS account id + * @member {String} secure-access-aws-account-id */ -GKETargetDetails.prototype['gke_service_account_key'] = undefined; +GatewayUpdateProducerAws.prototype['secure-access-aws-account-id'] = undefined; /** - * @member {String} gke_service_account_name + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli */ -GKETargetDetails.prototype['gke_service_account_name'] = undefined; +GatewayUpdateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; /** - * @member {Boolean} use_gw_cloud_identity + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -GKETargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = GKETargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 52832: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GatewayUpdateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; /** - * The GatewayBasicInfo model module. - * @module model/GatewayBasicInfo - * @version 3.3.16 + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -var GatewayBasicInfo = /*#__PURE__*/function () { - /** - * Constructs a new GatewayBasicInfo. - * @alias module:model/GatewayBasicInfo - */ - function GatewayBasicInfo() { - _classCallCheck(this, GatewayBasicInfo); - - GatewayBasicInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayBasicInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayBasicInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayBasicInfo} obj Optional instance to populate. - * @return {module:model/GatewayBasicInfo} The populated GatewayBasicInfo instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayBasicInfo(); - - if (data.hasOwnProperty('cluster_display_name')) { - obj['cluster_display_name'] = _ApiClient["default"].convertToType(data['cluster_display_name'], 'String'); - } - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('cluster_name')) { - obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); - } +GatewayUpdateProducerAws.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ - if (data.hasOwnProperty('cluster_url')) { - obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); - } - } +GatewayUpdateProducerAws.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ - return obj; - } - }]); +GatewayUpdateProducerAws.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ - return GatewayBasicInfo; -}(); +GatewayUpdateProducerAws.prototype['secure-access-web-proxy'] = false; /** - * @member {String} cluster_display_name + * Add tags attached to this object + * @member {Array.} tags */ +GatewayUpdateProducerAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -GatewayBasicInfo.prototype['cluster_display_name'] = undefined; +GatewayUpdateProducerAws.prototype['target-name'] = undefined; /** - * @member {Number} cluster_id + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GatewayBasicInfo.prototype['cluster_id'] = undefined; +GatewayUpdateProducerAws.prototype['token'] = undefined; /** - * @member {String} cluster_name + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayBasicInfo.prototype['cluster_name'] = undefined; +GatewayUpdateProducerAws.prototype['uid-token'] = undefined; /** - * @member {String} cluster_url + * User TTL + * @member {String} user-ttl + * @default '60m' */ -GatewayBasicInfo.prototype['cluster_url'] = undefined; -var _default = GatewayBasicInfo; +GatewayUpdateProducerAws.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerAws; exports["default"] = _default; /***/ }), -/***/ 13636: +/***/ 34694: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -53704,7 +130089,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -53715,22 +130102,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateAllowedAccess model module. - * @module model/GatewayCreateAllowedAccess - * @version 3.3.16 + * The GatewayUpdateProducerAwsOutput model module. + * @module model/GatewayUpdateProducerAwsOutput + * @version 3.6.3 */ -var GatewayCreateAllowedAccess = /*#__PURE__*/function () { +var GatewayUpdateProducerAwsOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateAllowedAccess. - * gatewayCreateAllowedAccess is a command that creates allowed access in Gator - * @alias module:model/GatewayCreateAllowedAccess - * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @param name {String} Allowed access name + * Constructs a new GatewayUpdateProducerAwsOutput. + * @alias module:model/GatewayUpdateProducerAwsOutput */ - function GatewayCreateAllowedAccess(accessId, name) { - _classCallCheck(this, GatewayCreateAllowedAccess); + function GatewayUpdateProducerAwsOutput() { + _classCallCheck(this, GatewayUpdateProducerAwsOutput); - GatewayCreateAllowedAccess.initialize(this, accessId, name); + GatewayUpdateProducerAwsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -53739,58 +130123,25 @@ var GatewayCreateAllowedAccess = /*#__PURE__*/function () { */ - _createClass(GatewayCreateAllowedAccess, null, [{ + _createClass(GatewayUpdateProducerAwsOutput, null, [{ key: "initialize", - value: function initialize(obj, accessId, name) { - obj['access-id'] = accessId; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayCreateAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayCreateAllowedAccess} The populated GatewayCreateAllowedAccess instance. + * @param {module:model/GatewayUpdateProducerAwsOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAwsOutput} The populated GatewayUpdateProducerAwsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateAllowedAccess(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('permissions')) { - obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); - } - - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new GatewayUpdateProducerAwsOutput(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -53798,64 +130149,20 @@ var GatewayCreateAllowedAccess = /*#__PURE__*/function () { } }]); - return GatewayCreateAllowedAccess; + return GatewayUpdateProducerAwsOutput; }(); /** - * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @member {String} access-id - */ - - -GatewayCreateAllowedAccess.prototype['access-id'] = undefined; -/** - * Allowed access description - * @member {String} description - */ - -GatewayCreateAllowedAccess.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateAllowedAccess.prototype['json'] = false; -/** - * Allowed access name - * @member {String} name - */ - -GatewayCreateAllowedAccess.prototype['name'] = undefined; -/** - * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] - * @member {String} permissions - */ - -GatewayCreateAllowedAccess.prototype['permissions'] = undefined; -/** - * Sub claims key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims - */ - -GatewayCreateAllowedAccess.prototype['sub-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateAllowedAccess.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -GatewayCreateAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayCreateAllowedAccess; +GatewayUpdateProducerAwsOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerAwsOutput; exports["default"] = _default; /***/ }), -/***/ 80817: +/***/ 17117: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -53866,7 +130173,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -53877,24 +130184,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateK8SAuthConfig model module. - * @module model/GatewayCreateK8SAuthConfig - * @version 3.3.16 + * The GatewayUpdateProducerAzure model module. + * @module model/GatewayUpdateProducerAzure + * @version 3.6.3 */ -var GatewayCreateK8SAuthConfig = /*#__PURE__*/function () { +var GatewayUpdateProducerAzure = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateK8SAuthConfig. - * gatewayCreateK8SAuth is a command that creates k8s auth config - * @alias module:model/GatewayCreateK8SAuthConfig - * @param accessId {String} The access ID of the Kubernetes auth method - * @param k8sHost {String} The URL of the kubernetes API server - * @param name {String} K8S Auth config name - * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + * Constructs a new GatewayUpdateProducerAzure. + * gatewayUpdateProducerAzure is a command that updates azure producer [Deprecated: Use dynamic-secret-update-azure command] + * @alias module:model/GatewayUpdateProducerAzure + * @param name {String} Dynamic secret name */ - function GatewayCreateK8SAuthConfig(accessId, k8sHost, name, signingKey) { - _classCallCheck(this, GatewayCreateK8SAuthConfig); + function GatewayUpdateProducerAzure(name) { + _classCallCheck(this, GatewayUpdateProducerAzure); - GatewayCreateK8SAuthConfig.initialize(this, accessId, k8sHost, name, signingKey); + GatewayUpdateProducerAzure.initialize(this, name); } /** * Initializes the fields of this object. @@ -53903,94 +130207,127 @@ var GatewayCreateK8SAuthConfig = /*#__PURE__*/function () { */ - _createClass(GatewayCreateK8SAuthConfig, null, [{ + _createClass(GatewayUpdateProducerAzure, null, [{ key: "initialize", - value: function initialize(obj, accessId, k8sHost, name, signingKey) { - obj['access-id'] = accessId; - obj['k8s-host'] = k8sHost; + value: function initialize(obj, name) { obj['name'] = name; - obj['signing-key'] = signingKey; } /** - * Constructs a GatewayCreateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerAzure from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayCreateK8SAuthConfig} The populated GatewayCreateK8SAuthConfig instance. + * @param {module:model/GatewayUpdateProducerAzure} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAzure} The populated GatewayUpdateProducerAzure instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateK8SAuthConfig(); + obj = obj || new GatewayUpdateProducerAzure(); - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); } - if (data.hasOwnProperty('cluster-api-type')) { - obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); } - if (data.hasOwnProperty('config-encryption-key-name')) { - obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); } - if (data.hasOwnProperty('disable-issuer-validation')) { - obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('k8s-ca-cert')) { - obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); } - if (data.hasOwnProperty('k8s-host')) { - obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); } - if (data.hasOwnProperty('k8s-issuer')) { - obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('rancher-api-key')) { - obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('rancher-cluster-id')) { - obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('signing-key')) { - obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('token-exp')) { - obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('token-reviewer-jwt')) { - obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } + + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } + + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } } @@ -53998,121 +130335,180 @@ var GatewayCreateK8SAuthConfig = /*#__PURE__*/function () { } }]); - return GatewayCreateK8SAuthConfig; + return GatewayUpdateProducerAzure; }(); /** - * The access ID of the Kubernetes auth method - * @member {String} access-id + * Azure App Object Id + * @member {String} app-obj-id */ -GatewayCreateK8SAuthConfig.prototype['access-id'] = undefined; +GatewayUpdateProducerAzure.prototype['app-obj-id'] = undefined; /** - * Cluster access type. options: [native_k8s, rancher] - * @member {String} cluster-api-type - * @default 'native_k8s' + * Azure Client ID + * @member {String} azure-client-id */ -GatewayCreateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; +GatewayUpdateProducerAzure.prototype['azure-client-id'] = undefined; /** - * Config encryption key - * @member {String} config-encryption-key-name + * Azure Client Secret + * @member {String} azure-client-secret */ -GatewayCreateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; +GatewayUpdateProducerAzure.prototype['azure-client-secret'] = undefined; /** - * Disable issuer validation [true/false] - * @member {String} disable-issuer-validation + * Azure Tenant ID + * @member {String} azure-tenant-id */ -GatewayCreateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; +GatewayUpdateProducerAzure.prototype['azure-tenant-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerAzure.prototype['delete_protection'] = undefined; +/** + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' + */ + +GatewayUpdateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; +/** + * Fixed user + * @member {Boolean} fixed-user-only + * @default false + */ + +GatewayUpdateProducerAzure.prototype['fixed-user-only'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateK8SAuthConfig.prototype['json'] = false; +GatewayUpdateProducerAzure.prototype['json'] = false; /** - * The CA Certificate (base64 encoded) to use to call into the kubernetes API server - * @member {String} k8s-ca-cert + * Dynamic secret name + * @member {String} name */ -GatewayCreateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; +GatewayUpdateProducerAzure.prototype['name'] = undefined; /** - * The URL of the kubernetes API server - * @member {String} k8s-host + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateK8SAuthConfig.prototype['k8s-host'] = undefined; +GatewayUpdateProducerAzure.prototype['new-name'] = undefined; /** - * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s-issuer - * @default 'kubernetes/serviceaccount' + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; +GatewayUpdateProducerAzure.prototype['password-length'] = undefined; /** - * K8S Auth config name - * @member {String} name + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateK8SAuthConfig.prototype['name'] = undefined; +GatewayUpdateProducerAzure.prototype['producer-encryption-key-name'] = undefined; /** - * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) - * @member {String} rancher-api-key + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -GatewayCreateK8SAuthConfig.prototype['rancher-api-key'] = undefined; +GatewayUpdateProducerAzure.prototype['secure-access-enable'] = undefined; /** - * The cluster id as define in rancher (relevant for \"rancher\" only) - * @member {String} rancher-cluster-id + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true */ -GatewayCreateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; +GatewayUpdateProducerAzure.prototype['secure-access-web'] = true; /** - * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth - * @member {String} signing-key + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false */ -GatewayCreateK8SAuthConfig.prototype['signing-key'] = undefined; +GatewayUpdateProducerAzure.prototype['secure-access-web-browsing'] = false; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false */ -GatewayCreateK8SAuthConfig.prototype['token'] = undefined; +GatewayUpdateProducerAzure.prototype['secure-access-web-proxy'] = false; /** - * Time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} token-exp - * @default 300 + * Add tags attached to this object + * @member {Array.} tags */ -GatewayCreateK8SAuthConfig.prototype['token-exp'] = 300; +GatewayUpdateProducerAzure.prototype['tags'] = undefined; /** - * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. - * @member {String} token-reviewer-jwt + * Target name + * @member {String} target-name */ -GatewayCreateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; +GatewayUpdateProducerAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerAzure.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateK8SAuthConfig.prototype['uid-token'] = undefined; +GatewayUpdateProducerAzure.prototype['uid-token'] = undefined; /** - * Use the GW's service account - * @member {Boolean} use-gw-service-account + * User Group Object Id + * @member {String} user-group-obj-id */ -GatewayCreateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; -var _default = GatewayCreateK8SAuthConfig; +GatewayUpdateProducerAzure.prototype['user-group-obj-id'] = undefined; +/** + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false + */ + +GatewayUpdateProducerAzure.prototype['user-portal-access'] = false; +/** + * User Principal Name + * @member {String} user-principal-name + */ + +GatewayUpdateProducerAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ + +GatewayUpdateProducerAzure.prototype['user-programmatic-access'] = false; +/** + * User Role Template Id + * @member {String} user-role-template-id + */ + +GatewayUpdateProducerAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerAzure.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerAzure; exports["default"] = _default; /***/ }), -/***/ 67291: +/***/ 39160: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -54123,9 +130519,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(79508)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -54136,19 +130532,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateK8SAuthConfigOutput model module. - * @module model/GatewayCreateK8SAuthConfigOutput - * @version 3.3.16 + * The GatewayUpdateProducerAzureOutput model module. + * @module model/GatewayUpdateProducerAzureOutput + * @version 3.6.3 */ -var GatewayCreateK8SAuthConfigOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerAzureOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateK8SAuthConfigOutput. - * @alias module:model/GatewayCreateK8SAuthConfigOutput + * Constructs a new GatewayUpdateProducerAzureOutput. + * @alias module:model/GatewayUpdateProducerAzureOutput */ - function GatewayCreateK8SAuthConfigOutput() { - _classCallCheck(this, GatewayCreateK8SAuthConfigOutput); + function GatewayUpdateProducerAzureOutput() { + _classCallCheck(this, GatewayUpdateProducerAzureOutput); - GatewayCreateK8SAuthConfigOutput.initialize(this); + GatewayUpdateProducerAzureOutput.initialize(this); } /** * Initializes the fields of this object. @@ -54157,33 +130553,25 @@ var GatewayCreateK8SAuthConfigOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateK8SAuthConfigOutput, null, [{ + _createClass(GatewayUpdateProducerAzureOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateK8SAuthConfigOutput} The populated GatewayCreateK8SAuthConfigOutput instance. + * @param {module:model/GatewayUpdateProducerAzureOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAzureOutput} The populated GatewayUpdateProducerAzureOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateK8SAuthConfigOutput(); - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); - } - - if (data.hasOwnProperty('parts_change')) { - obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); - } + obj = obj || new GatewayUpdateProducerAzureOutput(); - if (data.hasOwnProperty('total_hash')) { - obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); } } @@ -54191,30 +130579,20 @@ var GatewayCreateK8SAuthConfigOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateK8SAuthConfigOutput; + return GatewayUpdateProducerAzureOutput; }(); /** - * @member {String} cluster_id - */ - - -GatewayCreateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; -/** - * @member {module:model/ConfigChange} parts_change + * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateK8SAuthConfigOutput.prototype['parts_change'] = undefined; -/** - * @member {String} total_hash - */ -GatewayCreateK8SAuthConfigOutput.prototype['total_hash'] = undefined; -var _default = GatewayCreateK8SAuthConfigOutput; +GatewayUpdateProducerAzureOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerAzureOutput; exports["default"] = _default; /***/ }), -/***/ 89712: +/***/ 84720: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -54225,7 +130603,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -54236,24 +130614,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateMigration model module. - * @module model/GatewayCreateMigration - * @version 3.3.16 + * The GatewayUpdateProducerCassandra model module. + * @module model/GatewayUpdateProducerCassandra + * @version 3.6.3 */ -var GatewayCreateMigration = /*#__PURE__*/function () { +var GatewayUpdateProducerCassandra = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateMigration. - * gatewayCreateMigration is a command that create migration - * @alias module:model/GatewayCreateMigration - * @param name {String} Migration name - * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @param targetLocation {String} Target location in Akeyless for imported secrets + * Constructs a new GatewayUpdateProducerCassandra. + * gatewayUpdateProducerCassandra is a command that updates a Cassandra producer [Deprecated: Use dynamic-secret-update-cassandra command] + * @alias module:model/GatewayUpdateProducerCassandra + * @param name {String} Dynamic secret name */ - function GatewayCreateMigration(name, siTargetName, siUsersPathTemplate, targetLocation) { - _classCallCheck(this, GatewayCreateMigration); + function GatewayUpdateProducerCassandra(name) { + _classCallCheck(this, GatewayUpdateProducerCassandra); - GatewayCreateMigration.initialize(this, name, siTargetName, siUsersPathTemplate, targetLocation); + GatewayUpdateProducerCassandra.initialize(this, name); } /** * Initializes the fields of this object. @@ -54262,630 +130637,631 @@ var GatewayCreateMigration = /*#__PURE__*/function () { */ - _createClass(GatewayCreateMigration, null, [{ + _createClass(GatewayUpdateProducerCassandra, null, [{ key: "initialize", - value: function initialize(obj, name, siTargetName, siUsersPathTemplate, targetLocation) { + value: function initialize(obj, name) { obj['name'] = name; - obj['si-target-name'] = siTargetName; - obj['si-users-path-template'] = siUsersPathTemplate; - obj['target-location'] = targetLocation; } /** - * Constructs a GatewayCreateMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerCassandra from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateMigration} obj Optional instance to populate. - * @return {module:model/GatewayCreateMigration} The populated GatewayCreateMigration instance. + * @param {module:model/GatewayUpdateProducerCassandra} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCassandra} The populated GatewayUpdateProducerCassandra instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateMigration(); - - if (data.hasOwnProperty('1password-email')) { - obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); - } - - if (data.hasOwnProperty('1password-password')) { - obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); - } - - if (data.hasOwnProperty('1password-secret-key')) { - obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); - } - - if (data.hasOwnProperty('1password-url')) { - obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); - } - - if (data.hasOwnProperty('1password-vaults')) { - obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); - } - - if (data.hasOwnProperty('ad-ssh-port')) { - obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); - } - - if (data.hasOwnProperty('ad-targets-type')) { - obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-over-http')) { - obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-port')) { - obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); - } - - if (data.hasOwnProperty('ad_auto_rotate')) { - obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); - } - - if (data.hasOwnProperty('ad_computer_base_dn')) { - obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); - } - - if (data.hasOwnProperty('ad_discover_local_users')) { - obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_name')) { - obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_users_path_template')) { - obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_ignore')) { - obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_path_template')) { - obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_rotation_hour')) { - obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); - } - - if (data.hasOwnProperty('ad_rotation_interval')) { - obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); - } - - if (data.hasOwnProperty('ad_sra_enable_rdp')) { - obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); - } - - if (data.hasOwnProperty('ad_target_name')) { - obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); - } - - if (data.hasOwnProperty('ad_targets_path_template')) { - obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_user_base_dn')) { - obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); - } - - if (data.hasOwnProperty('ad_user_groups')) { - obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); - } - - if (data.hasOwnProperty('aws-key')) { - obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); - } - - if (data.hasOwnProperty('aws-key-id')) { - obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); - } - - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); - } - - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); - } - - if (data.hasOwnProperty('azure-kv-name')) { - obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); - } - - if (data.hasOwnProperty('azure-secret')) { - obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); - } + obj = obj || new GatewayUpdateProducerCassandra(); - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); } - if (data.hasOwnProperty('hashi-json')) { - obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); } - if (data.hasOwnProperty('hashi-ns')) { - obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); } - if (data.hasOwnProperty('hashi-token')) { - obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); } - if (data.hasOwnProperty('hashi-url')) { - obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('k8s-ca-certificate')) { - obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); - } - - if (data.hasOwnProperty('k8s-client-certificate')) { - obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); - } - - if (data.hasOwnProperty('k8s-client-key')) { - obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); - } - - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('k8s-password')) { - obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); - } - - if (data.hasOwnProperty('k8s-skip-system')) { - obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-token')) { - obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); - } - - if (data.hasOwnProperty('k8s-url')) { - obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); - } - - if (data.hasOwnProperty('k8s-username')) { - obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('protection-key')) { - obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); - } - - if (data.hasOwnProperty('si-auto-rotate')) { - obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); - } - - if (data.hasOwnProperty('si-rotation-hour')) { - obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('si-rotation-interval')) { - obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('si-sra-enable-rdp')) { - obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('si-target-name')) { - obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('si-users-ignore')) { - obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); } - if (data.hasOwnProperty('si-users-path-template')) { - obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('target-location')) { - obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return GatewayCreateMigration; + return GatewayUpdateProducerCassandra; }(); /** - * 1Password user email to connect to the API - * @member {String} 1password-email + * Cassandra creation statements + * @member {String} cassandra-creation-statements */ -GatewayCreateMigration.prototype['1password-email'] = undefined; +GatewayUpdateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; /** - * 1Password user password to connect to the API - * @member {String} 1password-password + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts */ -GatewayCreateMigration.prototype['1password-password'] = undefined; +GatewayUpdateProducerCassandra.prototype['cassandra-hosts'] = undefined; /** - * 1Password user secret key to connect to the API - * @member {String} 1password-secret-key + * Cassandra superuser password + * @member {String} cassandra-password */ -GatewayCreateMigration.prototype['1password-secret-key'] = undefined; +GatewayUpdateProducerCassandra.prototype['cassandra-password'] = undefined; /** - * 1Password api container url - * @member {String} 1password-url + * Cassandra port + * @member {String} cassandra-port + * @default '9042' */ -GatewayCreateMigration.prototype['1password-url'] = undefined; +GatewayUpdateProducerCassandra.prototype['cassandra-port'] = '9042'; /** - * 1Password list of vault to get the items from - * @member {Array.} 1password-vaults + * Cassandra superuser username + * @member {String} cassandra-username */ -GatewayCreateMigration.prototype['1password-vaults'] = undefined; +GatewayUpdateProducerCassandra.prototype['cassandra-username'] = undefined; /** - * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) - * @member {String} ad-ssh-port - * @default '22' + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateMigration.prototype['ad-ssh-port'] = '22'; +GatewayUpdateProducerCassandra.prototype['delete_protection'] = undefined; /** - * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) - * @member {String} ad-targets-type - * @default 'windows' + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateMigration.prototype['ad-targets-type'] = 'windows'; +GatewayUpdateProducerCassandra.prototype['json'] = false; /** - * Use WinRM over HTTP, by default runs over HTTPS - * @member {String} ad-winrm-over-http - * @default 'false' + * Dynamic secret name + * @member {String} name */ -GatewayCreateMigration.prototype['ad-winrm-over-http'] = 'false'; +GatewayUpdateProducerCassandra.prototype['name'] = undefined; /** - * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) - * @member {String} ad-winrm-port - * @default '5986' + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateMigration.prototype['ad-winrm-port'] = '5986'; +GatewayUpdateProducerCassandra.prototype['new-name'] = undefined; /** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) - * @member {String} ad_auto_rotate + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateMigration.prototype['ad_auto_rotate'] = undefined; +GatewayUpdateProducerCassandra.prototype['password-length'] = undefined; /** - * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_computer_base_dn + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateMigration.prototype['ad_computer_base_dn'] = undefined; +GatewayUpdateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; /** - * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) - * @member {String} ad_discover_local_users + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false */ -GatewayCreateMigration.prototype['ad_discover_local_users'] = undefined; +GatewayUpdateProducerCassandra.prototype['ssl'] = false; /** - * Active Directory Domain Name (Relevant only for Active Directory migration) - * @member {String} ad_domain_name + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate */ -GatewayCreateMigration.prototype['ad_domain_name'] = undefined; +GatewayUpdateProducerCassandra.prototype['ssl-certificate'] = undefined; /** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_domain_users_path_template + * Add tags attached to this object + * @member {Array.} tags */ -GatewayCreateMigration.prototype['ad_domain_users_path_template'] = undefined; +GatewayUpdateProducerCassandra.prototype['tags'] = undefined; /** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) - * @member {String} ad_local_users_ignore + * Target name + * @member {String} target-name */ -GatewayCreateMigration.prototype['ad_local_users_ignore'] = undefined; +GatewayUpdateProducerCassandra.prototype['target-name'] = undefined; /** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_local_users_path_template + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GatewayCreateMigration.prototype['ad_local_users_path_template'] = undefined; +GatewayUpdateProducerCassandra.prototype['token'] = undefined; /** - * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_hour + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayCreateMigration.prototype['ad_rotation_hour'] = undefined; +GatewayUpdateProducerCassandra.prototype['uid-token'] = undefined; /** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_interval + * User TTL + * @member {String} user-ttl + * @default '60m' */ -GatewayCreateMigration.prototype['ad_rotation_interval'] = undefined; +GatewayUpdateProducerCassandra.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerCassandra; +exports["default"] = _default; + +/***/ }), + +/***/ 345: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) - * @member {String} ad_sra_enable_rdp + * The GatewayUpdateProducerCassandraOutput model module. + * @module model/GatewayUpdateProducerCassandraOutput + * @version 3.6.3 */ +var GatewayUpdateProducerCassandraOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerCassandraOutput. + * @alias module:model/GatewayUpdateProducerCassandraOutput + */ + function GatewayUpdateProducerCassandraOutput() { + _classCallCheck(this, GatewayUpdateProducerCassandraOutput); -GatewayCreateMigration.prototype['ad_sra_enable_rdp'] = undefined; + GatewayUpdateProducerCassandraOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerCassandraOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerCassandraOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCassandraOutput} The populated GatewayUpdateProducerCassandraOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerCassandraOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerCassandraOutput; +}(); /** - * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) - * @member {String} ad_target_name + * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateMigration.prototype['ad_target_name'] = undefined; + +GatewayUpdateProducerCassandraOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerCassandraOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 4264: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) - * @member {String} ad_targets_path_template + * The GatewayUpdateProducerChef model module. + * @module model/GatewayUpdateProducerChef + * @version 3.6.3 */ +var GatewayUpdateProducerChef = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerChef. + * gatewayUpdateProducerChef is a command that updates chef producer [Deprecated: Use dynamic-secret-update-chef command] + * @alias module:model/GatewayUpdateProducerChef + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerChef(name) { + _classCallCheck(this, GatewayUpdateProducerChef); + + GatewayUpdateProducerChef.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerChef, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerChef from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerChef} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerChef} The populated GatewayUpdateProducerChef instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerChef(); + + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); + } + + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); + } + + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); + } + + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -GatewayCreateMigration.prototype['ad_targets_path_template'] = undefined; -/** - * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_user_base_dn - */ + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } -GatewayCreateMigration.prototype['ad_user_base_dn'] = undefined; -/** - * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) - * @member {String} ad_user_groups - */ + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } -GatewayCreateMigration.prototype['ad_user_groups'] = undefined; -/** - * AWS Secret Access Key (relevant only for AWS migration) - * @member {String} aws-key - */ + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -GatewayCreateMigration.prototype['aws-key'] = undefined; -/** - * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) - * @member {String} aws-key-id - */ + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -GatewayCreateMigration.prototype['aws-key-id'] = undefined; -/** - * AWS region of the required Secrets Manager (relevant only for AWS migration) - * @member {String} aws-region - * @default 'us-east-2' - */ + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -GatewayCreateMigration.prototype['aws-region'] = 'us-east-2'; -/** - * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) - * @member {String} azure-client-id - */ + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -GatewayCreateMigration.prototype['azure-client-id'] = undefined; -/** - * Azure Key Vault Name (relevant only for Azure Key Vault migration) - * @member {String} azure-kv-name - */ + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } -GatewayCreateMigration.prototype['azure-kv-name'] = undefined; -/** - * Azure Key Vault secret (relevant only for Azure Key Vault migration) - * @member {String} azure-secret - */ + return obj; + } + }]); -GatewayCreateMigration.prototype['azure-secret'] = undefined; + return GatewayUpdateProducerChef; +}(); /** - * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) - * @member {String} azure-tenant-id + * Organizations + * @member {String} chef-orgs */ -GatewayCreateMigration.prototype['azure-tenant-id'] = undefined; -/** - * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) - * @member {String} gcp-key - */ -GatewayCreateMigration.prototype['gcp-key'] = undefined; +GatewayUpdateProducerChef.prototype['chef-orgs'] = undefined; /** - * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] - * @member {String} hashi-json - * @default 'true' + * Server key + * @member {String} chef-server-key */ -GatewayCreateMigration.prototype['hashi-json'] = 'true'; +GatewayUpdateProducerChef.prototype['chef-server-key'] = undefined; /** - * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) - * @member {Array.} hashi-ns + * Server URL + * @member {String} chef-server-url */ -GatewayCreateMigration.prototype['hashi-ns'] = undefined; +GatewayUpdateProducerChef.prototype['chef-server-url'] = undefined; /** - * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) - * @member {String} hashi-token + * Server username + * @member {String} chef-server-username */ -GatewayCreateMigration.prototype['hashi-token'] = undefined; +GatewayUpdateProducerChef.prototype['chef-server-username'] = undefined; /** - * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) - * @member {String} hashi-url + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateMigration.prototype['hashi-url'] = undefined; +GatewayUpdateProducerChef.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateMigration.prototype['json'] = false; +GatewayUpdateProducerChef.prototype['json'] = false; /** - * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-ca-certificate + * Dynamic secret name + * @member {String} name */ -GatewayCreateMigration.prototype['k8s-ca-certificate'] = undefined; +GatewayUpdateProducerChef.prototype['name'] = undefined; /** - * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-certificate + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateMigration.prototype['k8s-client-certificate'] = undefined; +GatewayUpdateProducerChef.prototype['new-name'] = undefined; /** - * K8s Client key (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-key + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateMigration.prototype['k8s-client-key'] = undefined; +GatewayUpdateProducerChef.prototype['password-length'] = undefined; /** - * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) - * @member {String} k8s-namespace + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateMigration.prototype['k8s-namespace'] = undefined; +GatewayUpdateProducerChef.prototype['producer-encryption-key-name'] = undefined; /** - * K8s Client password (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-password + * Skip SSL + * @member {Boolean} skip-ssl + * @default true */ -GatewayCreateMigration.prototype['k8s-password'] = undefined; +GatewayUpdateProducerChef.prototype['skip-ssl'] = true; /** - * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) - * @member {Boolean} k8s-skip-system + * Add tags attached to this object + * @member {Array.} tags */ -GatewayCreateMigration.prototype['k8s-skip-system'] = undefined; +GatewayUpdateProducerChef.prototype['tags'] = undefined; /** - * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) - * @member {String} k8s-token + * Target name + * @member {String} target-name */ -GatewayCreateMigration.prototype['k8s-token'] = undefined; +GatewayUpdateProducerChef.prototype['target-name'] = undefined; /** - * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) - * @member {String} k8s-url + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GatewayCreateMigration.prototype['k8s-url'] = undefined; +GatewayUpdateProducerChef.prototype['token'] = undefined; /** - * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-username + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayCreateMigration.prototype['k8s-username'] = undefined; +GatewayUpdateProducerChef.prototype['uid-token'] = undefined; /** - * Migration name - * @member {String} name + * User TTL + * @member {String} user-ttl + * @default '60m' */ -GatewayCreateMigration.prototype['name'] = undefined; -/** - * The name of the key that protects the classic key value (if empty, the account default key will be used) - * @member {String} protection-key - */ +GatewayUpdateProducerChef.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerChef; +exports["default"] = _default; -GatewayCreateMigration.prototype['protection-key'] = undefined; -/** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) - * @member {String} si-auto-rotate - */ +/***/ }), -GatewayCreateMigration.prototype['si-auto-rotate'] = undefined; -/** - * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-hour - */ +/***/ 38113: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -GatewayCreateMigration.prototype['si-rotation-hour'] = undefined; -/** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-interval - */ +"use strict"; -GatewayCreateMigration.prototype['si-rotation-interval'] = undefined; -/** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) - * @member {String} si-sra-enable-rdp - * @default 'false' - */ -GatewayCreateMigration.prototype['si-sra-enable-rdp'] = 'false'; -/** - * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @member {String} si-target-name - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -GatewayCreateMigration.prototype['si-target-name'] = undefined; -/** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) - * @member {String} si-users-ignore - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -GatewayCreateMigration.prototype['si-users-ignore'] = undefined; -/** - * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @member {String} si-users-path-template - */ +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); -GatewayCreateMigration.prototype['si-users-path-template'] = undefined; -/** - * Target location in Akeyless for imported secrets - * @member {String} target-location - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -GatewayCreateMigration.prototype['target-location'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -GatewayCreateMigration.prototype['token'] = undefined; /** - * Migration type (hashi/aws/gcp/k8s/azure_kv/1password/active_directory) - * @member {String} type + * The GatewayUpdateProducerChefOutput model module. + * @module model/GatewayUpdateProducerChefOutput + * @version 3.6.3 */ +var GatewayUpdateProducerChefOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerChefOutput. + * @alias module:model/GatewayUpdateProducerChefOutput + */ + function GatewayUpdateProducerChefOutput() { + _classCallCheck(this, GatewayUpdateProducerChefOutput); -GatewayCreateMigration.prototype['type'] = undefined; + GatewayUpdateProducerChefOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerChefOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerChefOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerChefOutput} The populated GatewayUpdateProducerChefOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerChefOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerChefOutput; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateMigration.prototype['uid-token'] = undefined; -var _default = GatewayCreateMigration; + +GatewayUpdateProducerChefOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerChefOutput; exports["default"] = _default; /***/ }), -/***/ 85963: +/***/ 61215: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -54896,7 +131272,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -54907,23 +131283,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerArtifactory model module. - * @module model/GatewayCreateProducerArtifactory - * @version 3.3.16 + * The GatewayUpdateProducerCustom model module. + * @module model/GatewayUpdateProducerCustom + * @version 3.6.3 */ -var GatewayCreateProducerArtifactory = /*#__PURE__*/function () { +var GatewayUpdateProducerCustom = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerArtifactory. - * gatewayCreateProducerArtifactory is a command that creates artifactory producer - * @alias module:model/GatewayCreateProducerArtifactory - * @param artifactoryTokenAudience {String} Token Audience - * @param artifactoryTokenScope {String} Token Scope - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerCustom. + * gatewayUpdateProducerCustom is a command that updates a custom producer. [Deprecated: Use dynamic-secret-update-custom command] + * @alias module:model/GatewayUpdateProducerCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke */ - function GatewayCreateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { - _classCallCheck(this, GatewayCreateProducerArtifactory); + function GatewayUpdateProducerCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, GatewayUpdateProducerCustom); - GatewayCreateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); + GatewayUpdateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); } /** * Initializes the fields of this object. @@ -54932,51 +131308,43 @@ var GatewayCreateProducerArtifactory = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerArtifactory, null, [{ + _createClass(GatewayUpdateProducerCustom, null, [{ key: "initialize", - value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { - obj['artifactory-token-audience'] = artifactoryTokenAudience; - obj['artifactory-token-scope'] = artifactoryTokenScope; + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; obj['name'] = name; + obj['revoke-sync-url'] = revokeSyncUrl; } /** - * Constructs a GatewayCreateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerCustom from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerArtifactory} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerArtifactory} The populated GatewayCreateProducerArtifactory instance. + * @param {module:model/GatewayUpdateProducerCustom} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCustom} The populated GatewayUpdateProducerCustom instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerArtifactory(); - - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); - } - - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('artifactory-token-audience')) { - obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); - } + obj = obj || new GatewayUpdateProducerCustom(); - if (data.hasOwnProperty('artifactory-token-scope')) { - obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); } - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } @@ -54985,16 +131353,32 @@ var GatewayCreateProducerArtifactory = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + } + + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + } + if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); } if (data.hasOwnProperty('token')) { @@ -55014,101 +131398,115 @@ var GatewayCreateProducerArtifactory = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerArtifactory; + return GatewayUpdateProducerCustom; }(); /** - * Artifactory Admin Name - * @member {String} artifactory-admin-name + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days */ -GatewayCreateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; +GatewayUpdateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; /** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url */ -GatewayCreateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; +GatewayUpdateProducerCustom.prototype['create-sync-url'] = undefined; /** - * Token Audience - * @member {String} artifactory-token-audience + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; +GatewayUpdateProducerCustom.prototype['delete_protection'] = undefined; /** - * Token Scope - * @member {String} artifactory-token-scope + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false */ -GatewayCreateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; +GatewayUpdateProducerCustom.prototype['enable_admin_rotation'] = false; /** - * Base URL - * @member {String} base-url + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerArtifactory.prototype['base-url'] = undefined; +GatewayUpdateProducerCustom.prototype['json'] = false; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerArtifactory.prototype['delete_protection'] = undefined; +GatewayUpdateProducerCustom.prototype['name'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerArtifactory.prototype['json'] = false; +GatewayUpdateProducerCustom.prototype['new-name'] = undefined; /** - * Producer name - * @member {String} name + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload */ -GatewayCreateProducerArtifactory.prototype['name'] = undefined; +GatewayUpdateProducerCustom.prototype['payload'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerCustom.prototype['producer-encryption-key-name'] = undefined; +/** + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url + */ + +GatewayUpdateProducerCustom.prototype['revoke-sync-url'] = undefined; +/** + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url + */ + +GatewayUpdateProducerCustom.prototype['rotate-sync-url'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerArtifactory.prototype['tags'] = undefined; +GatewayUpdateProducerCustom.prototype['tags'] = undefined; /** - * Target name - * @member {String} target-name + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 */ -GatewayCreateProducerArtifactory.prototype['target-name'] = undefined; +GatewayUpdateProducerCustom.prototype['timeout-sec'] = 60; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerArtifactory.prototype['token'] = undefined; +GatewayUpdateProducerCustom.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerArtifactory.prototype['uid-token'] = undefined; +GatewayUpdateProducerCustom.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerArtifactory.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerArtifactory; +GatewayUpdateProducerCustom.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerCustom; exports["default"] = _default; /***/ }), -/***/ 12283: +/***/ 96902: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -55119,9 +131517,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -55132,19 +131530,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerArtifactoryOutput model module. - * @module model/GatewayCreateProducerArtifactoryOutput - * @version 3.3.16 + * The GatewayUpdateProducerCustomOutput model module. + * @module model/GatewayUpdateProducerCustomOutput + * @version 3.6.3 */ -var GatewayCreateProducerArtifactoryOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerCustomOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerArtifactoryOutput. - * @alias module:model/GatewayCreateProducerArtifactoryOutput + * Constructs a new GatewayUpdateProducerCustomOutput. + * @alias module:model/GatewayUpdateProducerCustomOutput */ - function GatewayCreateProducerArtifactoryOutput() { - _classCallCheck(this, GatewayCreateProducerArtifactoryOutput); + function GatewayUpdateProducerCustomOutput() { + _classCallCheck(this, GatewayUpdateProducerCustomOutput); - GatewayCreateProducerArtifactoryOutput.initialize(this); + GatewayUpdateProducerCustomOutput.initialize(this); } /** * Initializes the fields of this object. @@ -55153,22 +131551,22 @@ var GatewayCreateProducerArtifactoryOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerArtifactoryOutput, null, [{ + _createClass(GatewayUpdateProducerCustomOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerArtifactoryOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerArtifactoryOutput} The populated GatewayCreateProducerArtifactoryOutput instance. + * @param {module:model/GatewayUpdateProducerCustomOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCustomOutput} The populated GatewayUpdateProducerCustomOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerArtifactoryOutput(); + obj = obj || new GatewayUpdateProducerCustomOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -55179,20 +131577,20 @@ var GatewayCreateProducerArtifactoryOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerArtifactoryOutput; + return GatewayUpdateProducerCustomOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerArtifactoryOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerArtifactoryOutput; +GatewayUpdateProducerCustomOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerCustomOutput; exports["default"] = _default; /***/ }), -/***/ 62465: +/***/ 34933: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -55203,7 +131601,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -55214,21 +131612,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerAws model module. - * @module model/GatewayCreateProducerAws - * @version 3.3.16 + * The GatewayUpdateProducerDockerhub model module. + * @module model/GatewayUpdateProducerDockerhub + * @version 3.6.3 */ -var GatewayCreateProducerAws = /*#__PURE__*/function () { +var GatewayUpdateProducerDockerhub = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerAws. - * gatewayCreateProducerAws is a command that creates aws producer - * @alias module:model/GatewayCreateProducerAws - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerDockerhub. + * gatewayUpdateProducerDockerhub is a command that updates a DOCKERHUB producer [Deprecated: Use dynamic-secret-update-dockerhub command] + * @alias module:model/GatewayUpdateProducerDockerhub + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerAws(name) { - _classCallCheck(this, GatewayCreateProducerAws); + function GatewayUpdateProducerDockerhub(name) { + _classCallCheck(this, GatewayUpdateProducerDockerhub); - GatewayCreateProducerAws.initialize(this, name); + GatewayUpdateProducerDockerhub.initialize(this, name); } /** * Initializes the fields of this object. @@ -55237,67 +131635,39 @@ var GatewayCreateProducerAws = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerAws, null, [{ + _createClass(GatewayUpdateProducerDockerhub, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerAws from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAws} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAws} The populated GatewayCreateProducerAws instance. + * @param {module:model/GatewayUpdateProducerDockerhub} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerDockerhub} The populated GatewayUpdateProducerDockerhub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerAws(); - - if (data.hasOwnProperty('access-mode')) { - obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); - } - - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); - } - - if (data.hasOwnProperty('aws-access-key-id')) { - obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('aws-access-secret-key')) { - obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); - } - - if (data.hasOwnProperty('aws-role-arns')) { - obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); - } - - if (data.hasOwnProperty('aws-user-console-access')) { - obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); - } - - if (data.hasOwnProperty('aws-user-groups')) { - obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); - } + obj = obj || new GatewayUpdateProducerDockerhub(); - if (data.hasOwnProperty('aws-user-policies')) { - obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('aws-user-programmatic-access')) { - obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); } - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); } if (data.hasOwnProperty('json')) { @@ -55308,40 +131678,12 @@ var GatewayCreateProducerAws = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } if (data.hasOwnProperty('tags')) { @@ -55369,186 +131711,95 @@ var GatewayCreateProducerAws = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerAws; + return GatewayUpdateProducerDockerhub; }(); /** - * @member {String} access-mode - */ - - -GatewayCreateProducerAws.prototype['access-mode'] = undefined; -/** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 - */ - -GatewayCreateProducerAws.prototype['admin-rotation-interval-days'] = 0; -/** - * Access Key ID - * @member {String} aws-access-key-id - */ - -GatewayCreateProducerAws.prototype['aws-access-key-id'] = undefined; -/** - * Secret Access Key - * @member {String} aws-access-secret-key - */ - -GatewayCreateProducerAws.prototype['aws-access-secret-key'] = undefined; -/** - * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) - * @member {String} aws-role-arns - */ - -GatewayCreateProducerAws.prototype['aws-role-arns'] = undefined; -/** - * AWS User console access - * @member {Boolean} aws-user-console-access - * @default false - */ - -GatewayCreateProducerAws.prototype['aws-user-console-access'] = false; -/** - * AWS User groups - * @member {String} aws-user-groups + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerAws.prototype['aws-user-groups'] = undefined; -/** - * AWS User policies - * @member {String} aws-user-policies - */ -GatewayCreateProducerAws.prototype['aws-user-policies'] = undefined; +GatewayUpdateProducerDockerhub.prototype['delete_protection'] = undefined; /** - * Enable AWS User programmatic access - * @member {Boolean} aws-user-programmatic-access - * @default true + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password */ -GatewayCreateProducerAws.prototype['aws-user-programmatic-access'] = true; +GatewayUpdateProducerDockerhub.prototype['dockerhub-password'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes */ -GatewayCreateProducerAws.prototype['delete_protection'] = undefined; +GatewayUpdateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; /** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username */ -GatewayCreateProducerAws.prototype['enable-admin-rotation'] = false; +GatewayUpdateProducerDockerhub.prototype['dockerhub-username'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerAws.prototype['json'] = false; +GatewayUpdateProducerDockerhub.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerAws.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerAws.prototype['producer-encryption-key-name'] = undefined; -/** - * Region - * @member {String} region - * @default 'us-east-2' - */ - -GatewayCreateProducerAws.prototype['region'] = 'us-east-2'; -/** - * The AWS account id - * @member {String} secure-access-aws-account-id - */ - -GatewayCreateProducerAws.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli - * @member {Boolean} secure-access-aws-native-cli - */ - -GatewayCreateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerAws.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayCreateProducerAws.prototype['secure-access-web'] = true; +GatewayUpdateProducerDockerhub.prototype['name'] = undefined; /** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerAws.prototype['secure-access-web-browsing'] = false; +GatewayUpdateProducerDockerhub.prototype['new-name'] = undefined; /** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateProducerAws.prototype['secure-access-web-proxy'] = false; +GatewayUpdateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerAws.prototype['tags'] = undefined; +GatewayUpdateProducerDockerhub.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerAws.prototype['target-name'] = undefined; +GatewayUpdateProducerDockerhub.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerAws.prototype['token'] = undefined; +GatewayUpdateProducerDockerhub.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerAws.prototype['uid-token'] = undefined; +GatewayUpdateProducerDockerhub.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerAws.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerAws; +GatewayUpdateProducerDockerhub.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerDockerhub; exports["default"] = _default; /***/ }), -/***/ 22782: +/***/ 44384: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -55559,9 +131810,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -55572,19 +131823,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerAwsOutput model module. - * @module model/GatewayCreateProducerAwsOutput - * @version 3.3.16 + * The GatewayUpdateProducerDockerhubOutput model module. + * @module model/GatewayUpdateProducerDockerhubOutput + * @version 3.6.3 */ -var GatewayCreateProducerAwsOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerDockerhubOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerAwsOutput. - * @alias module:model/GatewayCreateProducerAwsOutput + * Constructs a new GatewayUpdateProducerDockerhubOutput. + * @alias module:model/GatewayUpdateProducerDockerhubOutput */ - function GatewayCreateProducerAwsOutput() { - _classCallCheck(this, GatewayCreateProducerAwsOutput); + function GatewayUpdateProducerDockerhubOutput() { + _classCallCheck(this, GatewayUpdateProducerDockerhubOutput); - GatewayCreateProducerAwsOutput.initialize(this); + GatewayUpdateProducerDockerhubOutput.initialize(this); } /** * Initializes the fields of this object. @@ -55593,22 +131844,22 @@ var GatewayCreateProducerAwsOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerAwsOutput, null, [{ + _createClass(GatewayUpdateProducerDockerhubOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAwsOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAwsOutput} The populated GatewayCreateProducerAwsOutput instance. + * @param {module:model/GatewayUpdateProducerDockerhubOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerDockerhubOutput} The populated GatewayUpdateProducerDockerhubOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerAwsOutput(); + obj = obj || new GatewayUpdateProducerDockerhubOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -55619,20 +131870,20 @@ var GatewayCreateProducerAwsOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerAwsOutput; + return GatewayUpdateProducerDockerhubOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerAwsOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerAwsOutput; +GatewayUpdateProducerDockerhubOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerDockerhubOutput; exports["default"] = _default; /***/ }), -/***/ 11768: +/***/ 10935: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -55643,7 +131894,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -55654,21 +131905,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerAzure model module. - * @module model/GatewayCreateProducerAzure - * @version 3.3.16 + * The GatewayUpdateProducerEks model module. + * @module model/GatewayUpdateProducerEks + * @version 3.6.3 */ -var GatewayCreateProducerAzure = /*#__PURE__*/function () { +var GatewayUpdateProducerEks = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerAzure. - * gatewayCreateProducerAzure is a command that creates azure producer - * @alias module:model/GatewayCreateProducerAzure - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerEks. + * gatewayUpdateProducerEks is a command that updates eks producer [Deprecated: Use dynamic-secret-update-eks command] + * @alias module:model/GatewayUpdateProducerEks + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerAzure(name) { - _classCallCheck(this, GatewayCreateProducerAzure); + function GatewayUpdateProducerEks(name) { + _classCallCheck(this, GatewayUpdateProducerEks); - GatewayCreateProducerAzure.initialize(this, name); + GatewayUpdateProducerEks.initialize(this, name); } /** * Initializes the fields of this object. @@ -55677,51 +131928,55 @@ var GatewayCreateProducerAzure = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerAzure, null, [{ + _createClass(GatewayUpdateProducerEks, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerAzure from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerEks from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAzure} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAzure} The populated GatewayCreateProducerAzure instance. + * @param {module:model/GatewayUpdateProducerEks} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerEks} The populated GatewayUpdateProducerEks instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerAzure(); + obj = obj || new GatewayUpdateProducerEks(); - if (data.hasOwnProperty('app-obj-id')) { - obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); } - if (data.hasOwnProperty('azure-client-secret')) { - obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); } - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('fixed-user-claim-keyname')) { - obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); } - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); } if (data.hasOwnProperty('json')) { @@ -55732,24 +131987,32 @@ var GatewayCreateProducerAzure = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); } - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } if (data.hasOwnProperty('tags')) { @@ -55768,26 +132031,6 @@ var GatewayCreateProducerAzure = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('user-group-obj-id')) { - obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); - } - - if (data.hasOwnProperty('user-portal-access')) { - obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); - } - - if (data.hasOwnProperty('user-principal-name')) { - obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); - } - - if (data.hasOwnProperty('user-programmatic-access')) { - obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); - } - - if (data.hasOwnProperty('user-role-template-id')) { - obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); - } - if (data.hasOwnProperty('user-ttl')) { obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } @@ -55797,168 +132040,151 @@ var GatewayCreateProducerAzure = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerAzure; + return GatewayUpdateProducerEks; }(); /** - * Azure App Object Id - * @member {String} app-obj-id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerAzure.prototype['app-obj-id'] = undefined; +GatewayUpdateProducerEks.prototype['delete_protection'] = undefined; /** - * Azure Client ID - * @member {String} azure-client-id + * Access Key ID + * @member {String} eks-access-key-id */ -GatewayCreateProducerAzure.prototype['azure-client-id'] = undefined; +GatewayUpdateProducerEks.prototype['eks-access-key-id'] = undefined; /** - * Azure Client Secret - * @member {String} azure-client-secret + * IAM assume role + * @member {String} eks-assume-role */ -GatewayCreateProducerAzure.prototype['azure-client-secret'] = undefined; +GatewayUpdateProducerEks.prototype['eks-assume-role'] = undefined; /** - * Azure Tenant ID - * @member {String} azure-tenant-id + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert */ -GatewayCreateProducerAzure.prototype['azure-tenant-id'] = undefined; +GatewayUpdateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint */ -GatewayCreateProducerAzure.prototype['delete_protection'] = undefined; +GatewayUpdateProducerEks.prototype['eks-cluster-endpoint'] = undefined; /** - * FixedUserClaimKeyname - * @member {String} fixed-user-claim-keyname - * @default 'false' + * EKS cluster name + * @member {String} eks-cluster-name */ -GatewayCreateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; +GatewayUpdateProducerEks.prototype['eks-cluster-name'] = undefined; /** - * Fixed user - * @member {Boolean} fixed-user-only - * @default false + * Region + * @member {String} eks-region + * @default 'us-east-2' */ -GatewayCreateProducerAzure.prototype['fixed-user-only'] = false; +GatewayUpdateProducerEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +GatewayUpdateProducerEks.prototype['eks-secret-access-key'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerAzure.prototype['json'] = false; +GatewayUpdateProducerEks.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerAzure.prototype['name'] = undefined; +GatewayUpdateProducerEks.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerEks.prototype['new-name'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerAzure.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerEks.prototype['producer-encryption-key-name'] = undefined; /** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading */ -GatewayCreateProducerAzure.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; /** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerAzure.prototype['secure-access-web'] = true; +GatewayUpdateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; /** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint */ -GatewayCreateProducerAzure.prototype['secure-access-web-browsing'] = false; +GatewayUpdateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; /** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerEks.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web * @default false */ -GatewayCreateProducerAzure.prototype['secure-access-web-proxy'] = false; +GatewayUpdateProducerEks.prototype['secure-access-web'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerAzure.prototype['tags'] = undefined; +GatewayUpdateProducerEks.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerAzure.prototype['target-name'] = undefined; +GatewayUpdateProducerEks.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerAzure.prototype['token'] = undefined; +GatewayUpdateProducerEks.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerAzure.prototype['uid-token'] = undefined; -/** - * User Group Object Id - * @member {String} user-group-obj-id - */ - -GatewayCreateProducerAzure.prototype['user-group-obj-id'] = undefined; -/** - * Azure User portal access - * @member {Boolean} user-portal-access - * @default false - */ - -GatewayCreateProducerAzure.prototype['user-portal-access'] = false; -/** - * User Principal Name - * @member {String} user-principal-name - */ - -GatewayCreateProducerAzure.prototype['user-principal-name'] = undefined; -/** - * Azure User programmatic access - * @member {Boolean} user-programmatic-access - * @default false - */ - -GatewayCreateProducerAzure.prototype['user-programmatic-access'] = false; -/** - * User Role Template Id - * @member {String} user-role-template-id - */ - -GatewayCreateProducerAzure.prototype['user-role-template-id'] = undefined; +GatewayUpdateProducerEks.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl - * @default '60m' + * @default '15m' */ -GatewayCreateProducerAzure.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerAzure; +GatewayUpdateProducerEks.prototype['user-ttl'] = '15m'; +var _default = GatewayUpdateProducerEks; exports["default"] = _default; /***/ }), -/***/ 21509: +/***/ 32942: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -55969,9 +132195,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -55982,19 +132208,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerAzureOutput model module. - * @module model/GatewayCreateProducerAzureOutput - * @version 3.3.16 + * The GatewayUpdateProducerEksOutput model module. + * @module model/GatewayUpdateProducerEksOutput + * @version 3.6.3 */ -var GatewayCreateProducerAzureOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerEksOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerAzureOutput. - * @alias module:model/GatewayCreateProducerAzureOutput + * Constructs a new GatewayUpdateProducerEksOutput. + * @alias module:model/GatewayUpdateProducerEksOutput */ - function GatewayCreateProducerAzureOutput() { - _classCallCheck(this, GatewayCreateProducerAzureOutput); + function GatewayUpdateProducerEksOutput() { + _classCallCheck(this, GatewayUpdateProducerEksOutput); - GatewayCreateProducerAzureOutput.initialize(this); + GatewayUpdateProducerEksOutput.initialize(this); } /** * Initializes the fields of this object. @@ -56003,22 +132229,22 @@ var GatewayCreateProducerAzureOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerAzureOutput, null, [{ + _createClass(GatewayUpdateProducerEksOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAzureOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAzureOutput} The populated GatewayCreateProducerAzureOutput instance. + * @param {module:model/GatewayUpdateProducerEksOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerEksOutput} The populated GatewayUpdateProducerEksOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerAzureOutput(); + obj = obj || new GatewayUpdateProducerEksOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -56029,20 +132255,20 @@ var GatewayCreateProducerAzureOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerAzureOutput; + return GatewayUpdateProducerEksOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerAzureOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerAzureOutput; +GatewayUpdateProducerEksOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerEksOutput; exports["default"] = _default; /***/ }), -/***/ 46210: +/***/ 51060: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -56053,7 +132279,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -56064,21 +132290,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerCassandra model module. - * @module model/GatewayCreateProducerCassandra - * @version 3.3.16 + * The GatewayUpdateProducerGcp model module. + * @module model/GatewayUpdateProducerGcp + * @version 3.6.3 */ -var GatewayCreateProducerCassandra = /*#__PURE__*/function () { +var GatewayUpdateProducerGcp = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerCassandra. - * gatewayCreateProducerCassandra is a command that creates a Cassandra producer - * @alias module:model/GatewayCreateProducerCassandra - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerGcp. + * gatewayUpdateProducerGcp is a command that updates a GCP producer [Deprecated: Use dynamic-secret-update-gcp command] + * @alias module:model/GatewayUpdateProducerGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] */ - function GatewayCreateProducerCassandra(name) { - _classCallCheck(this, GatewayCreateProducerCassandra); + function GatewayUpdateProducerGcp(name, serviceAccountType) { + _classCallCheck(this, GatewayUpdateProducerGcp); - GatewayCreateProducerCassandra.initialize(this, name); + GatewayUpdateProducerGcp.initialize(this, name, serviceAccountType); } /** * Initializes the fields of this object. @@ -56087,47 +132314,48 @@ var GatewayCreateProducerCassandra = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerCassandra, null, [{ + _createClass(GatewayUpdateProducerGcp, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, name, serviceAccountType) { obj['name'] = name; + obj['service-account-type'] = serviceAccountType; } /** - * Constructs a GatewayCreateProducerCassandra from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerGcp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCassandra} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCassandra} The populated GatewayCreateProducerCassandra instance. + * @param {module:model/GatewayUpdateProducerGcp} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGcp} The populated GatewayUpdateProducerGcp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerCassandra(); + obj = obj || new GatewayUpdateProducerGcp(); - if (data.hasOwnProperty('cassandra-creation-statements')) { - obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('cassandra-hosts')) { - obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); } - if (data.hasOwnProperty('cassandra-password')) { - obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); } - if (data.hasOwnProperty('cassandra-port')) { - obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); } - if (data.hasOwnProperty('cassandra-username')) { - obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); } if (data.hasOwnProperty('json')) { @@ -56138,10 +132366,22 @@ var GatewayCreateProducerCassandra = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } + + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } + if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } @@ -56167,102 +132407,119 @@ var GatewayCreateProducerCassandra = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerCassandra; + return GatewayUpdateProducerGcp; }(); /** - * Cassandra creation statements - * @member {String} cassandra-creation-statements + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; +GatewayUpdateProducerGcp.prototype['delete_protection'] = undefined; /** - * Cassandra hosts IP or addresses, comma separated - * @member {String} cassandra-hosts + * @member {String} gcp-cred-type */ -GatewayCreateProducerCassandra.prototype['cassandra-hosts'] = undefined; +GatewayUpdateProducerGcp.prototype['gcp-cred-type'] = undefined; /** - * Cassandra superuser password - * @member {String} cassandra-password + * Base64-encoded service account private key text + * @member {String} gcp-key */ -GatewayCreateProducerCassandra.prototype['cassandra-password'] = undefined; +GatewayUpdateProducerGcp.prototype['gcp-key'] = undefined; /** - * Cassandra port - * @member {String} cassandra-port - * @default '9042' + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo */ -GatewayCreateProducerCassandra.prototype['cassandra-port'] = '9042'; +GatewayUpdateProducerGcp.prototype['gcp-key-algo'] = undefined; /** - * Cassandra superuser username - * @member {String} cassandra-username + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email */ -GatewayCreateProducerCassandra.prototype['cassandra-username'] = undefined; +GatewayUpdateProducerGcp.prototype['gcp-sa-email'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes */ -GatewayCreateProducerCassandra.prototype['delete_protection'] = undefined; +GatewayUpdateProducerGcp.prototype['gcp-token-scopes'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerCassandra.prototype['json'] = false; +GatewayUpdateProducerGcp.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerCassandra.prototype['name'] = undefined; +GatewayUpdateProducerGcp.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerGcp.prototype['new-name'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerGcp.prototype['producer-encryption-key-name'] = undefined; +/** + * Role binding definitions in json format + * @member {String} role-binding + */ + +GatewayUpdateProducerGcp.prototype['role-binding'] = undefined; +/** + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' + */ + +GatewayUpdateProducerGcp.prototype['service-account-type'] = 'fixed'; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerCassandra.prototype['tags'] = undefined; +GatewayUpdateProducerGcp.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerCassandra.prototype['target-name'] = undefined; +GatewayUpdateProducerGcp.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerCassandra.prototype['token'] = undefined; +GatewayUpdateProducerGcp.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerCassandra.prototype['uid-token'] = undefined; +GatewayUpdateProducerGcp.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerCassandra.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerCassandra; +GatewayUpdateProducerGcp.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerGcp; exports["default"] = _default; /***/ }), -/***/ 6297: +/***/ 81061: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -56273,9 +132530,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -56286,19 +132543,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerCassandraOutput model module. - * @module model/GatewayCreateProducerCassandraOutput - * @version 3.3.16 + * The GatewayUpdateProducerGcpOutput model module. + * @module model/GatewayUpdateProducerGcpOutput + * @version 3.6.3 */ -var GatewayCreateProducerCassandraOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerGcpOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerCassandraOutput. - * @alias module:model/GatewayCreateProducerCassandraOutput + * Constructs a new GatewayUpdateProducerGcpOutput. + * @alias module:model/GatewayUpdateProducerGcpOutput */ - function GatewayCreateProducerCassandraOutput() { - _classCallCheck(this, GatewayCreateProducerCassandraOutput); + function GatewayUpdateProducerGcpOutput() { + _classCallCheck(this, GatewayUpdateProducerGcpOutput); - GatewayCreateProducerCassandraOutput.initialize(this); + GatewayUpdateProducerGcpOutput.initialize(this); } /** * Initializes the fields of this object. @@ -56307,22 +132564,22 @@ var GatewayCreateProducerCassandraOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerCassandraOutput, null, [{ + _createClass(GatewayUpdateProducerGcpOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCassandraOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCassandraOutput} The populated GatewayCreateProducerCassandraOutput instance. + * @param {module:model/GatewayUpdateProducerGcpOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGcpOutput} The populated GatewayUpdateProducerGcpOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerCassandraOutput(); + obj = obj || new GatewayUpdateProducerGcpOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -56333,20 +132590,20 @@ var GatewayCreateProducerCassandraOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerCassandraOutput; + return GatewayUpdateProducerGcpOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerCassandraOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerCassandraOutput; +GatewayUpdateProducerGcpOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerGcpOutput; exports["default"] = _default; /***/ }), -/***/ 21006: +/***/ 25279: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -56357,7 +132614,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -56368,21 +132625,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerCertificateAutomation model module. - * @module model/GatewayCreateProducerCertificateAutomation - * @version 3.3.16 + * The GatewayUpdateProducerGithub model module. + * @module model/GatewayUpdateProducerGithub + * @version 3.6.3 */ -var GatewayCreateProducerCertificateAutomation = /*#__PURE__*/function () { +var GatewayUpdateProducerGithub = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerCertificateAutomation. - * gatewayCreateProducerCertificateAutomation is a command that creates a Certificate Automation dynamic secret producer to dynamically create certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi - * @alias module:model/GatewayCreateProducerCertificateAutomation - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerGithub. + * gatewayUpdateProducerGithub is a command that updates github producer [Deprecated: Use dynamic-secret-update-github command] + * @alias module:model/GatewayUpdateProducerGithub + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerCertificateAutomation(name) { - _classCallCheck(this, GatewayCreateProducerCertificateAutomation); + function GatewayUpdateProducerGithub(name) { + _classCallCheck(this, GatewayUpdateProducerGithub); - GatewayCreateProducerCertificateAutomation.initialize(this, name); + GatewayUpdateProducerGithub.initialize(this, name); } /** * Initializes the fields of this object. @@ -56391,47 +132648,51 @@ var GatewayCreateProducerCertificateAutomation = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerCertificateAutomation, null, [{ + _createClass(GatewayUpdateProducerGithub, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerCertificateAutomation from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerGithub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCertificateAutomation} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCertificateAutomation} The populated GatewayCreateProducerCertificateAutomation instance. + * @param {module:model/GatewayUpdateProducerGithub} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGithub} The populated GatewayUpdateProducerGithub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerCertificateAutomation(); + obj = obj || new GatewayUpdateProducerGithub(); - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); } - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); } - if (data.hasOwnProperty('auto-generated-folder')) { - obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); } - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); + } + + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); } if (data.hasOwnProperty('json')) { @@ -56442,24 +132703,8 @@ var GatewayCreateProducerCertificateAutomation = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('root-first-in-chain')) { - obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); - } - - if (data.hasOwnProperty('sign-using-akeyless-pki')) { - obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('store-private-key')) { - obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } if (data.hasOwnProperty('tags')) { @@ -56474,40 +132719,16 @@ var GatewayCreateProducerCertificateAutomation = /*#__PURE__*/function () { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('venafi-access-token')) { - obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); - } - - if (data.hasOwnProperty('venafi-api-key')) { - obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); - } - - if (data.hasOwnProperty('venafi-baseurl')) { - obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); - } - - if (data.hasOwnProperty('venafi-client-id')) { - obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); - } - - if (data.hasOwnProperty('venafi-refresh-token')) { - obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); } - if (data.hasOwnProperty('venafi-use-tpp')) { - obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); } - if (data.hasOwnProperty('venafi-zone')) { - obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -56515,170 +132736,113 @@ var GatewayCreateProducerCertificateAutomation = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerCertificateAutomation; + return GatewayUpdateProducerGithub; }(); /** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerCertificateAutomation.prototype['admin-rotation-interval-days'] = 0; +GatewayUpdateProducerGithub.prototype['delete_protection'] = undefined; /** - * Allow subdomains - * @member {Boolean} allow-subdomains + * Github app id + * @member {Number} github-app-id */ -GatewayCreateProducerCertificateAutomation.prototype['allow-subdomains'] = undefined; +GatewayUpdateProducerGithub.prototype['github-app-id'] = undefined; /** - * Allowed domains - * @member {Array.} allowed-domains + * App private key + * @member {String} github-app-private-key */ -GatewayCreateProducerCertificateAutomation.prototype['allowed-domains'] = undefined; +GatewayUpdateProducerGithub.prototype['github-app-private-key'] = undefined; /** - * Auto generated folder - * @member {String} auto-generated-folder + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' */ -GatewayCreateProducerCertificateAutomation.prototype['auto-generated-folder'] = undefined; +GatewayUpdateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * GitHub application installation id + * @member {Number} installation-id */ -GatewayCreateProducerCertificateAutomation.prototype['delete_protection'] = undefined; +GatewayUpdateProducerGithub.prototype['installation-id'] = undefined; /** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization */ -GatewayCreateProducerCertificateAutomation.prototype['enable-admin-rotation'] = false; +GatewayUpdateProducerGithub.prototype['installation-organization'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository + */ + +GatewayUpdateProducerGithub.prototype['installation-repository'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerCertificateAutomation.prototype['json'] = false; +GatewayUpdateProducerGithub.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerCertificateAutomation.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerCertificateAutomation.prototype['producer-encryption-key-name'] = undefined; -/** - * Root first in chain - * @member {Boolean} root-first-in-chain - */ - -GatewayCreateProducerCertificateAutomation.prototype['root-first-in-chain'] = undefined; -/** - * Use Akeyless PKI issuer or Venafi issuer - * @member {Boolean} sign-using-akeyless-pki - */ - -GatewayCreateProducerCertificateAutomation.prototype['sign-using-akeyless-pki'] = undefined; -/** - * Signer key name - * @member {String} signer-key-name - */ - -GatewayCreateProducerCertificateAutomation.prototype['signer-key-name'] = undefined; +GatewayUpdateProducerGithub.prototype['name'] = undefined; /** - * Store private key - * @member {Boolean} store-private-key + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerCertificateAutomation.prototype['store-private-key'] = undefined; +GatewayUpdateProducerGithub.prototype['new-name'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerCertificateAutomation.prototype['tags'] = undefined; +GatewayUpdateProducerGithub.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerCertificateAutomation.prototype['target-name'] = undefined; +GatewayUpdateProducerGithub.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerCertificateAutomation.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerCertificateAutomation.prototype['uid-token'] = undefined; -/** - * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ - * @member {String} user-ttl - * @default '2160h' - */ - -GatewayCreateProducerCertificateAutomation.prototype['user-ttl'] = '2160h'; -/** - * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) - * @member {String} venafi-access-token - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-access-token'] = undefined; -/** - * Venafi API key - * @member {String} venafi-api-key - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-api-key'] = undefined; -/** - * Venafi Baseurl - * @member {String} venafi-baseurl - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-baseurl'] = undefined; -/** - * Venafi Client ID that was used when the access token was generated - * @member {String} venafi-client-id - * @default 'akeyless' - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-client-id'] = 'akeyless'; +GatewayUpdateProducerGithub.prototype['token'] = undefined; /** - * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) - * @member {String} venafi-refresh-token + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions */ -GatewayCreateProducerCertificateAutomation.prototype['venafi-refresh-token'] = undefined; +GatewayUpdateProducerGithub.prototype['token-permissions'] = undefined; /** - * Venafi using TPP - * @member {Boolean} venafi-use-tpp + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories */ -GatewayCreateProducerCertificateAutomation.prototype['venafi-use-tpp'] = undefined; +GatewayUpdateProducerGithub.prototype['token-repositories'] = undefined; /** - * Venafi Zone - * @member {String} venafi-zone + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayCreateProducerCertificateAutomation.prototype['venafi-zone'] = undefined; -var _default = GatewayCreateProducerCertificateAutomation; +GatewayUpdateProducerGithub.prototype['uid-token'] = undefined; +var _default = GatewayUpdateProducerGithub; exports["default"] = _default; /***/ }), -/***/ 29244: +/***/ 78854: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -56689,9 +132853,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -56702,19 +132866,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerCertificateAutomationOutput model module. - * @module model/GatewayCreateProducerCertificateAutomationOutput - * @version 3.3.16 + * The GatewayUpdateProducerGithubOutput model module. + * @module model/GatewayUpdateProducerGithubOutput + * @version 3.6.3 */ -var GatewayCreateProducerCertificateAutomationOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerGithubOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerCertificateAutomationOutput. - * @alias module:model/GatewayCreateProducerCertificateAutomationOutput + * Constructs a new GatewayUpdateProducerGithubOutput. + * @alias module:model/GatewayUpdateProducerGithubOutput */ - function GatewayCreateProducerCertificateAutomationOutput() { - _classCallCheck(this, GatewayCreateProducerCertificateAutomationOutput); + function GatewayUpdateProducerGithubOutput() { + _classCallCheck(this, GatewayUpdateProducerGithubOutput); - GatewayCreateProducerCertificateAutomationOutput.initialize(this); + GatewayUpdateProducerGithubOutput.initialize(this); } /** * Initializes the fields of this object. @@ -56723,22 +132887,22 @@ var GatewayCreateProducerCertificateAutomationOutput = /*#__PURE__*/function () */ - _createClass(GatewayCreateProducerCertificateAutomationOutput, null, [{ + _createClass(GatewayUpdateProducerGithubOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerCertificateAutomationOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCertificateAutomationOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCertificateAutomationOutput} The populated GatewayCreateProducerCertificateAutomationOutput instance. + * @param {module:model/GatewayUpdateProducerGithubOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGithubOutput} The populated GatewayUpdateProducerGithubOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerCertificateAutomationOutput(); + obj = obj || new GatewayUpdateProducerGithubOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -56749,20 +132913,20 @@ var GatewayCreateProducerCertificateAutomationOutput = /*#__PURE__*/function () } }]); - return GatewayCreateProducerCertificateAutomationOutput; + return GatewayUpdateProducerGithubOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerCertificateAutomationOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerCertificateAutomationOutput; +GatewayUpdateProducerGithubOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerGithubOutput; exports["default"] = _default; /***/ }), -/***/ 76427: +/***/ 10599: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -56773,7 +132937,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -56784,21 +132948,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerChef model module. - * @module model/GatewayCreateProducerChef - * @version 3.3.16 + * The GatewayUpdateProducerGke model module. + * @module model/GatewayUpdateProducerGke + * @version 3.6.3 */ -var GatewayCreateProducerChef = /*#__PURE__*/function () { +var GatewayUpdateProducerGke = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerChef. - * gatewayCreateProducerChef is a command that creates chef producer - * @alias module:model/GatewayCreateProducerChef - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerGke. + * gatewayUpdateProducerGke is a command that updates gke producer [Deprecated: Use dynamic-secret-update-gke command] + * @alias module:model/GatewayUpdateProducerGke + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerChef(name) { - _classCallCheck(this, GatewayCreateProducerChef); + function GatewayUpdateProducerGke(name) { + _classCallCheck(this, GatewayUpdateProducerGke); - GatewayCreateProducerChef.initialize(this, name); + GatewayUpdateProducerGke.initialize(this, name); } /** * Initializes the fields of this object. @@ -56807,43 +132971,47 @@ var GatewayCreateProducerChef = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerChef, null, [{ + _createClass(GatewayUpdateProducerGke, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerChef from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerGke from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerChef} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerChef} The populated GatewayCreateProducerChef instance. + * @param {module:model/GatewayUpdateProducerGke} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGke} The populated GatewayUpdateProducerGke instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerChef(); + obj = obj || new GatewayUpdateProducerGke(); - if (data.hasOwnProperty('chef-orgs')) { - obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('chef-server-key')) { - obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); } - if (data.hasOwnProperty('chef-server-url')) { - obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); } - if (data.hasOwnProperty('chef-server-username')) { - obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); } if (data.hasOwnProperty('json')) { @@ -56854,12 +133022,32 @@ var GatewayCreateProducerChef = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('skip-ssl')) { - obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } if (data.hasOwnProperty('tags')) { @@ -56887,102 +133075,138 @@ var GatewayCreateProducerChef = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerChef; + return GatewayUpdateProducerGke; }(); /** - * Organizations - * @member {String} chef-orgs + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerChef.prototype['chef-orgs'] = undefined; +GatewayUpdateProducerGke.prototype['delete_protection'] = undefined; /** - * Server key - * @member {String} chef-server-key + * GKE Service Account key file path + * @member {String} gke-account-key */ -GatewayCreateProducerChef.prototype['chef-server-key'] = undefined; +GatewayUpdateProducerGke.prototype['gke-account-key'] = undefined; /** - * Server URL - * @member {String} chef-server-url + * GKE cluster CA certificate + * @member {String} gke-cluster-cert */ -GatewayCreateProducerChef.prototype['chef-server-url'] = undefined; +GatewayUpdateProducerGke.prototype['gke-cluster-cert'] = undefined; /** - * Server username - * @member {String} chef-server-username + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint */ -GatewayCreateProducerChef.prototype['chef-server-username'] = undefined; +GatewayUpdateProducerGke.prototype['gke-cluster-endpoint'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * GKE cluster name + * @member {String} gke-cluster-name */ -GatewayCreateProducerChef.prototype['delete_protection'] = undefined; +GatewayUpdateProducerGke.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +GatewayUpdateProducerGke.prototype['gke-service-account-email'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerChef.prototype['json'] = false; +GatewayUpdateProducerGke.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerChef.prototype['name'] = undefined; +GatewayUpdateProducerGke.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerGke.prototype['new-name'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerChef.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerGke.prototype['producer-encryption-key-name'] = undefined; /** - * Skip SSL - * @member {Boolean} skip-ssl - * @default true + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading */ -GatewayCreateProducerChef.prototype['skip-ssl'] = true; +GatewayUpdateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayUpdateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerGke.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerGke.prototype['secure-access-web'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerChef.prototype['tags'] = undefined; +GatewayUpdateProducerGke.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerChef.prototype['target-name'] = undefined; +GatewayUpdateProducerGke.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerChef.prototype['token'] = undefined; +GatewayUpdateProducerGke.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerChef.prototype['uid-token'] = undefined; +GatewayUpdateProducerGke.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerChef.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerChef; +GatewayUpdateProducerGke.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerGke; exports["default"] = _default; /***/ }), -/***/ 98272: +/***/ 75697: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -56993,9 +133217,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -57006,19 +133230,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerChefOutput model module. - * @module model/GatewayCreateProducerChefOutput - * @version 3.3.16 + * The GatewayUpdateProducerGkeOutput model module. + * @module model/GatewayUpdateProducerGkeOutput + * @version 3.6.3 */ -var GatewayCreateProducerChefOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerGkeOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerChefOutput. - * @alias module:model/GatewayCreateProducerChefOutput + * Constructs a new GatewayUpdateProducerGkeOutput. + * @alias module:model/GatewayUpdateProducerGkeOutput */ - function GatewayCreateProducerChefOutput() { - _classCallCheck(this, GatewayCreateProducerChefOutput); + function GatewayUpdateProducerGkeOutput() { + _classCallCheck(this, GatewayUpdateProducerGkeOutput); - GatewayCreateProducerChefOutput.initialize(this); + GatewayUpdateProducerGkeOutput.initialize(this); } /** * Initializes the fields of this object. @@ -57027,22 +133251,22 @@ var GatewayCreateProducerChefOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerChefOutput, null, [{ + _createClass(GatewayUpdateProducerGkeOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerChefOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerChefOutput} The populated GatewayCreateProducerChefOutput instance. + * @param {module:model/GatewayUpdateProducerGkeOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGkeOutput} The populated GatewayUpdateProducerGkeOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerChefOutput(); + obj = obj || new GatewayUpdateProducerGkeOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -57053,20 +133277,20 @@ var GatewayCreateProducerChefOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerChefOutput; + return GatewayUpdateProducerGkeOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerChefOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerChefOutput; +GatewayUpdateProducerGkeOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerGkeOutput; exports["default"] = _default; /***/ }), -/***/ 24096: +/***/ 56756: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -57077,7 +133301,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -57088,22 +133312,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerCustom model module. - * @module model/GatewayCreateProducerCustom - * @version 3.3.16 + * The GatewayUpdateProducerHanaDb model module. + * @module model/GatewayUpdateProducerHanaDb + * @version 3.6.3 */ -var GatewayCreateProducerCustom = /*#__PURE__*/function () { +var GatewayUpdateProducerHanaDb = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerCustom. - * @alias module:model/GatewayCreateProducerCustom - * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @param name {String} Producer name - * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * Constructs a new GatewayUpdateProducerHanaDb. + * gatewayUpdateProducerHanaDb is a command that updates hanadb producer [Deprecated: Use dynamic-secret-update-hanadb command] + * @alias module:model/GatewayUpdateProducerHanaDb + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerCustom(createSyncUrl, name, revokeSyncUrl) { - _classCallCheck(this, GatewayCreateProducerCustom); + function GatewayUpdateProducerHanaDb(name) { + _classCallCheck(this, GatewayUpdateProducerHanaDb); - GatewayCreateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); + GatewayUpdateProducerHanaDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -57112,41 +133335,55 @@ var GatewayCreateProducerCustom = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerCustom, null, [{ + _createClass(GatewayUpdateProducerHanaDb, null, [{ key: "initialize", - value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { - obj['create-sync-url'] = createSyncUrl; + value: function initialize(obj, name) { obj['name'] = name; - obj['revoke-sync-url'] = revokeSyncUrl; } /** - * Constructs a GatewayCreateProducerCustom from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCustom} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCustom} The populated GatewayCreateProducerCustom instance. + * @param {module:model/GatewayUpdateProducerHanaDb} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerHanaDb} The populated GatewayUpdateProducerHanaDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerCustom(); + obj = obj || new GatewayUpdateProducerHanaDb(); - if (data.hasOwnProperty('admin_rotation_interval_days')) { - obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('create-sync-url')) { - obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); } - if (data.hasOwnProperty('enable_admin_rotation')) { - obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); + } + + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); + } + + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); + } + + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); } if (data.hasOwnProperty('json')) { @@ -57157,28 +133394,44 @@ var GatewayCreateProducerCustom = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('revoke-sync-url')) { - obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('rotate-sync-url')) { - obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('timeout-sec')) { - obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -57198,109 +133451,158 @@ var GatewayCreateProducerCustom = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerCustom; + return GatewayUpdateProducerHanaDb; }(); /** - * Define rotation interval in days - * @member {Number} admin_rotation_interval_days + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; +GatewayUpdateProducerHanaDb.prototype['delete_protection'] = undefined; /** - * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @member {String} create-sync-url + * HanaDb Name + * @member {String} hana-dbname */ -GatewayCreateProducerCustom.prototype['create-sync-url'] = undefined; +GatewayUpdateProducerHanaDb.prototype['hana-dbname'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * HanaDb Creation statements + * @member {String} hanadb-create-statements */ -GatewayCreateProducerCustom.prototype['delete_protection'] = undefined; +GatewayUpdateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; /** - * Should admin credentials be rotated - * @member {Boolean} enable_admin_rotation - * @default false + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' */ -GatewayCreateProducerCustom.prototype['enable_admin_rotation'] = false; +GatewayUpdateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +/** + * HanaDb Password + * @member {String} hanadb-password + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-password'] = undefined; +/** + * HanaDb Port + * @member {String} hanadb-port + * @default '443' + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-port'] = '443'; +/** + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; +/** + * HanaDb Username + * @member {String} hanadb-username + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-username'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerCustom.prototype['json'] = false; +GatewayUpdateProducerHanaDb.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerCustom.prototype['name'] = undefined; +GatewayUpdateProducerHanaDb.prototype['name'] = undefined; /** - * Secret payload to be sent with each create/revoke webhook request - * @member {String} payload + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerCustom.prototype['payload'] = undefined; +GatewayUpdateProducerHanaDb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerHanaDb.prototype['password-length'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerCustom.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; /** - * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke - * @member {String} revoke-sync-url + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerCustom.prototype['revoke-sync-url'] = undefined; +GatewayUpdateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; /** - * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate - * @member {String} rotate-sync-url + * The DB schema + * @member {String} secure-access-db-schema */ -GatewayCreateProducerCustom.prototype['rotate-sync-url'] = undefined; +GatewayUpdateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-web'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerCustom.prototype['tags'] = undefined; +GatewayUpdateProducerHanaDb.prototype['tags'] = undefined; /** - * Maximum allowed time in seconds for the webhook to return the results - * @member {Number} timeout-sec - * @default 60 + * Target name + * @member {String} target-name */ -GatewayCreateProducerCustom.prototype['timeout-sec'] = 60; +GatewayUpdateProducerHanaDb.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerCustom.prototype['token'] = undefined; +GatewayUpdateProducerHanaDb.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerCustom.prototype['uid-token'] = undefined; +GatewayUpdateProducerHanaDb.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerCustom.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerCustom; +GatewayUpdateProducerHanaDb.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerHanaDb; exports["default"] = _default; /***/ }), -/***/ 90062: +/***/ 35269: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -57311,9 +133613,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -57324,19 +133626,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerCustomOutput model module. - * @module model/GatewayCreateProducerCustomOutput - * @version 3.3.16 + * The GatewayUpdateProducerHanaDbOutput model module. + * @module model/GatewayUpdateProducerHanaDbOutput + * @version 3.6.3 */ -var GatewayCreateProducerCustomOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerHanaDbOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerCustomOutput. - * @alias module:model/GatewayCreateProducerCustomOutput + * Constructs a new GatewayUpdateProducerHanaDbOutput. + * @alias module:model/GatewayUpdateProducerHanaDbOutput */ - function GatewayCreateProducerCustomOutput() { - _classCallCheck(this, GatewayCreateProducerCustomOutput); + function GatewayUpdateProducerHanaDbOutput() { + _classCallCheck(this, GatewayUpdateProducerHanaDbOutput); - GatewayCreateProducerCustomOutput.initialize(this); + GatewayUpdateProducerHanaDbOutput.initialize(this); } /** * Initializes the fields of this object. @@ -57345,22 +133647,22 @@ var GatewayCreateProducerCustomOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerCustomOutput, null, [{ + _createClass(GatewayUpdateProducerHanaDbOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCustomOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCustomOutput} The populated GatewayCreateProducerCustomOutput instance. + * @param {module:model/GatewayUpdateProducerHanaDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerHanaDbOutput} The populated GatewayUpdateProducerHanaDbOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerCustomOutput(); + obj = obj || new GatewayUpdateProducerHanaDbOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -57371,20 +133673,20 @@ var GatewayCreateProducerCustomOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerCustomOutput; + return GatewayUpdateProducerHanaDbOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerCustomOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerCustomOutput; +GatewayUpdateProducerHanaDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerHanaDbOutput; exports["default"] = _default; /***/ }), -/***/ 2266: +/***/ 35277: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -57395,7 +133697,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -57406,21 +133708,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerDockerhub model module. - * @module model/GatewayCreateProducerDockerhub - * @version 3.3.16 + * The GatewayUpdateProducerLdap model module. + * @module model/GatewayUpdateProducerLdap + * @version 3.6.3 */ -var GatewayCreateProducerDockerhub = /*#__PURE__*/function () { +var GatewayUpdateProducerLdap = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerDockerhub. - * gatewayCreateProducerDockerhub is a command that creates a DOCKERHUB producer - * @alias module:model/GatewayCreateProducerDockerhub - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerLdap. + * gatewayUpdateProducerLdap is a command that updates ldap producer [Deprecated: Use dynamic-secret-update-ldap command] + * @alias module:model/GatewayUpdateProducerLdap + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerDockerhub(name) { - _classCallCheck(this, GatewayCreateProducerDockerhub); + function GatewayUpdateProducerLdap(name) { + _classCallCheck(this, GatewayUpdateProducerLdap); - GatewayCreateProducerDockerhub.initialize(this, name); + GatewayUpdateProducerLdap.initialize(this, name); } /** * Initializes the fields of this object. @@ -57429,49 +133731,69 @@ var GatewayCreateProducerDockerhub = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerDockerhub, null, [{ + _createClass(GatewayUpdateProducerLdap, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerLdap from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerDockerhub} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerDockerhub} The populated GatewayCreateProducerDockerhub instance. + * @param {module:model/GatewayUpdateProducerLdap} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerLdap} The populated GatewayUpdateProducerLdap instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerDockerhub(); + obj = obj || new GatewayUpdateProducerLdap(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); } - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); } - if (data.hasOwnProperty('dockerhub-token-scopes')) { - obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } @@ -57488,10 +133810,22 @@ var GatewayCreateProducerDockerhub = /*#__PURE__*/function () { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + if (data.hasOwnProperty('user-ttl')) { obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } @@ -57501,89 +133835,138 @@ var GatewayCreateProducerDockerhub = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerDockerhub; + return GatewayUpdateProducerLdap; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Bind DN + * @member {String} bind-dn */ -GatewayCreateProducerDockerhub.prototype['delete_protection'] = undefined; +GatewayUpdateProducerLdap.prototype['bind-dn'] = undefined; /** - * DockerhubPassword is either the user's password access token to manage the repository - * @member {String} dockerhub-password + * Bind DN Password + * @member {String} bind-dn-password */ -GatewayCreateProducerDockerhub.prototype['dockerhub-password'] = undefined; +GatewayUpdateProducerLdap.prototype['bind-dn-password'] = undefined; /** - * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" - * @member {String} dockerhub-token-scopes + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; +GatewayUpdateProducerLdap.prototype['delete_protection'] = undefined; /** - * DockerhubUsername is the name of the user in dockerhub - * @member {String} dockerhub-username + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' */ -GatewayCreateProducerDockerhub.prototype['dockerhub-username'] = undefined; +GatewayUpdateProducerLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ + +GatewayUpdateProducerLdap.prototype['group-dn'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerDockerhub.prototype['json'] = false; +GatewayUpdateProducerLdap.prototype['json'] = false; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ + +GatewayUpdateProducerLdap.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ + +GatewayUpdateProducerLdap.prototype['ldap-url'] = undefined; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerDockerhub.prototype['name'] = undefined; +GatewayUpdateProducerLdap.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerLdap.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerLdap.prototype['password-length'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerLdap.prototype['producer-encryption-key-name'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerDockerhub.prototype['tags'] = undefined; +GatewayUpdateProducerLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +GatewayUpdateProducerLdap.prototype['token-expiration'] = undefined; /** - * Target name - * @member {String} target-name + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayCreateProducerDockerhub.prototype['target-name'] = undefined; +GatewayUpdateProducerLdap.prototype['uid-token'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * User Attribute + * @member {String} user-attribute */ -GatewayCreateProducerDockerhub.prototype['token'] = undefined; +GatewayUpdateProducerLdap.prototype['user-attribute'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * User DN + * @member {String} user-dn */ -GatewayCreateProducerDockerhub.prototype['uid-token'] = undefined; +GatewayUpdateProducerLdap.prototype['user-dn'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerDockerhub.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerDockerhub; +GatewayUpdateProducerLdap.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerLdap; exports["default"] = _default; /***/ }), -/***/ 21985: +/***/ 86792: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -57594,9 +133977,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -57607,19 +133990,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerDockerhubOutput model module. - * @module model/GatewayCreateProducerDockerhubOutput - * @version 3.3.16 + * The GatewayUpdateProducerLdapOutput model module. + * @module model/GatewayUpdateProducerLdapOutput + * @version 3.6.3 */ -var GatewayCreateProducerDockerhubOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerLdapOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerDockerhubOutput. - * @alias module:model/GatewayCreateProducerDockerhubOutput + * Constructs a new GatewayUpdateProducerLdapOutput. + * @alias module:model/GatewayUpdateProducerLdapOutput */ - function GatewayCreateProducerDockerhubOutput() { - _classCallCheck(this, GatewayCreateProducerDockerhubOutput); + function GatewayUpdateProducerLdapOutput() { + _classCallCheck(this, GatewayUpdateProducerLdapOutput); - GatewayCreateProducerDockerhubOutput.initialize(this); + GatewayUpdateProducerLdapOutput.initialize(this); } /** * Initializes the fields of this object. @@ -57628,22 +134011,22 @@ var GatewayCreateProducerDockerhubOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerDockerhubOutput, null, [{ + _createClass(GatewayUpdateProducerLdapOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerDockerhubOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerDockerhubOutput} The populated GatewayCreateProducerDockerhubOutput instance. + * @param {module:model/GatewayUpdateProducerLdapOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerLdapOutput} The populated GatewayUpdateProducerLdapOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerDockerhubOutput(); + obj = obj || new GatewayUpdateProducerLdapOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -57654,20 +134037,20 @@ var GatewayCreateProducerDockerhubOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerDockerhubOutput; + return GatewayUpdateProducerLdapOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerDockerhubOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerDockerhubOutput; +GatewayUpdateProducerLdapOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerLdapOutput; exports["default"] = _default; /***/ }), -/***/ 34886: +/***/ 74462: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -57678,7 +134061,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -57689,21 +134072,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerEks model module. - * @module model/GatewayCreateProducerEks - * @version 3.3.16 + * The GatewayUpdateProducerMSSQL model module. + * @module model/GatewayUpdateProducerMSSQL + * @version 3.6.3 */ -var GatewayCreateProducerEks = /*#__PURE__*/function () { +var GatewayUpdateProducerMSSQL = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerEks. - * gatewayCreateProducerEks is a command that creates eks producer - * @alias module:model/GatewayCreateProducerEks - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerMSSQL. + * gatewayUpdateProducerMSSQL is a command that updates mssql producer [Deprecated: Use dynamic-secret-update-mssql command] + * @alias module:model/GatewayUpdateProducerMSSQL + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerEks(name) { - _classCallCheck(this, GatewayCreateProducerEks); + function GatewayUpdateProducerMSSQL(name) { + _classCallCheck(this, GatewayUpdateProducerMSSQL); - GatewayCreateProducerEks.initialize(this, name); + GatewayUpdateProducerMSSQL.initialize(this, name); } /** * Initializes the fields of this object. @@ -57712,85 +134095,93 @@ var GatewayCreateProducerEks = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerEks, null, [{ + _createClass(GatewayUpdateProducerMSSQL, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerEks from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerEks} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerEks} The populated GatewayCreateProducerEks instance. + * @param {module:model/GatewayUpdateProducerMSSQL} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMSSQL} The populated GatewayUpdateProducerMSSQL instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerEks(); + obj = obj || new GatewayUpdateProducerMSSQL(); if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('eks-assume-role')) { - obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); } - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); } - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); } - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); } - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); } - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } if (data.hasOwnProperty('secure-access-bastion-issuer')) { obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } if (data.hasOwnProperty('secure-access-enable')) { obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-web')) { obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } @@ -57820,7 +134211,7 @@ var GatewayCreateProducerEks = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerEks; + return GatewayUpdateProducerMSSQL; }(); /** * Protection from accidental deletion of this item [true/false] @@ -57828,137 +134219,150 @@ var GatewayCreateProducerEks = /*#__PURE__*/function () { */ -GatewayCreateProducerEks.prototype['delete_protection'] = undefined; +GatewayUpdateProducerMSSQL.prototype['delete_protection'] = undefined; /** - * Access Key ID - * @member {String} eks-access-key-id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerEks.prototype['eks-access-key-id'] = undefined; +GatewayUpdateProducerMSSQL.prototype['json'] = false; /** - * IAM assume role - * @member {String} eks-assume-role + * MSSQL Creation statements + * @member {String} mssql-create-statements */ -GatewayCreateProducerEks.prototype['eks-assume-role'] = undefined; +GatewayUpdateProducerMSSQL.prototype['mssql-create-statements'] = undefined; /** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert + * MSSQL Name + * @member {String} mssql-dbname */ -GatewayCreateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; +GatewayUpdateProducerMSSQL.prototype['mssql-dbname'] = undefined; /** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' */ -GatewayCreateProducerEks.prototype['eks-cluster-endpoint'] = undefined; +GatewayUpdateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; /** - * EKS cluster name - * @member {String} eks-cluster-name + * MSSQL Password + * @member {String} mssql-password */ -GatewayCreateProducerEks.prototype['eks-cluster-name'] = undefined; +GatewayUpdateProducerMSSQL.prototype['mssql-password'] = undefined; /** - * Region - * @member {String} eks-region - * @default 'us-east-2' + * MSSQL Port + * @member {String} mssql-port + * @default '1433' */ -GatewayCreateProducerEks.prototype['eks-region'] = 'us-east-2'; +GatewayUpdateProducerMSSQL.prototype['mssql-port'] = '1433'; /** - * Secret Access Key - * @member {String} eks-secret-access-key + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements */ -GatewayCreateProducerEks.prototype['eks-secret-access-key'] = undefined; +GatewayUpdateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * MSSQL Username + * @member {String} mssql-username */ -GatewayCreateProducerEks.prototype['json'] = false; +GatewayUpdateProducerMSSQL.prototype['mssql-username'] = undefined; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerEks.prototype['name'] = undefined; +GatewayUpdateProducerMSSQL.prototype['name'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerEks.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerMSSQL.prototype['new-name'] = undefined; /** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; +GatewayUpdateProducerMSSQL.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; /** * Path to the SSH Certificate Issuer for your Akeyless Bastion * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; +GatewayUpdateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; /** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint + * The DB schema + * @member {String} secure-access-db-schema */ -GatewayCreateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; +GatewayUpdateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; /** * Enable/Disable secure remote access [true/false] * @member {String} secure-access-enable */ -GatewayCreateProducerEks.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerMSSQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerMSSQL.prototype['secure-access-host'] = undefined; /** * Enable Web Secure Remote Access * @member {Boolean} secure-access-web * @default false */ -GatewayCreateProducerEks.prototype['secure-access-web'] = false; +GatewayUpdateProducerMSSQL.prototype['secure-access-web'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerEks.prototype['tags'] = undefined; +GatewayUpdateProducerMSSQL.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerEks.prototype['target-name'] = undefined; +GatewayUpdateProducerMSSQL.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerEks.prototype['token'] = undefined; +GatewayUpdateProducerMSSQL.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerEks.prototype['uid-token'] = undefined; +GatewayUpdateProducerMSSQL.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl - * @default '15m' + * @default '60m' */ -GatewayCreateProducerEks.prototype['user-ttl'] = '15m'; -var _default = GatewayCreateProducerEks; +GatewayUpdateProducerMSSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerMSSQL; exports["default"] = _default; /***/ }), -/***/ 26934: +/***/ 95691: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -57969,9 +134373,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -57982,19 +134386,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerEksOutput model module. - * @module model/GatewayCreateProducerEksOutput - * @version 3.3.16 + * The GatewayUpdateProducerMSSQLOutput model module. + * @module model/GatewayUpdateProducerMSSQLOutput + * @version 3.6.3 */ -var GatewayCreateProducerEksOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerMSSQLOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerEksOutput. - * @alias module:model/GatewayCreateProducerEksOutput + * Constructs a new GatewayUpdateProducerMSSQLOutput. + * @alias module:model/GatewayUpdateProducerMSSQLOutput */ - function GatewayCreateProducerEksOutput() { - _classCallCheck(this, GatewayCreateProducerEksOutput); + function GatewayUpdateProducerMSSQLOutput() { + _classCallCheck(this, GatewayUpdateProducerMSSQLOutput); - GatewayCreateProducerEksOutput.initialize(this); + GatewayUpdateProducerMSSQLOutput.initialize(this); } /** * Initializes the fields of this object. @@ -58003,22 +134407,22 @@ var GatewayCreateProducerEksOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerEksOutput, null, [{ + _createClass(GatewayUpdateProducerMSSQLOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerEksOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerEksOutput} The populated GatewayCreateProducerEksOutput instance. + * @param {module:model/GatewayUpdateProducerMSSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMSSQLOutput} The populated GatewayUpdateProducerMSSQLOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerEksOutput(); + obj = obj || new GatewayUpdateProducerMSSQLOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -58029,20 +134433,20 @@ var GatewayCreateProducerEksOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerEksOutput; + return GatewayUpdateProducerMSSQLOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerEksOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerEksOutput; +GatewayUpdateProducerMSSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerMSSQLOutput; exports["default"] = _default; /***/ }), -/***/ 79907: +/***/ 87970: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -58053,7 +134457,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -58064,22 +134468,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerGcp model module. - * @module model/GatewayCreateProducerGcp - * @version 3.3.16 + * The GatewayUpdateProducerMongo model module. + * @module model/GatewayUpdateProducerMongo + * @version 3.6.3 */ -var GatewayCreateProducerGcp = /*#__PURE__*/function () { +var GatewayUpdateProducerMongo = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerGcp. - * gatewayCreateProducerGcp is a command that creates a GCP producer - * @alias module:model/GatewayCreateProducerGcp - * @param name {String} Producer name - * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] + * Constructs a new GatewayUpdateProducerMongo. + * gatewayUpdateProducerMongo is a command that updates either mongodb producer or mongodb atlas producer [Deprecated: Use dynamic-secret-update-mongodb command] + * @alias module:model/GatewayUpdateProducerMongo + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerGcp(name, serviceAccountType) { - _classCallCheck(this, GatewayCreateProducerGcp); + function GatewayUpdateProducerMongo(name) { + _classCallCheck(this, GatewayUpdateProducerMongo); - GatewayCreateProducerGcp.initialize(this, name, serviceAccountType); + GatewayUpdateProducerMongo.initialize(this, name); } /** * Initializes the fields of this object. @@ -58088,68 +134491,111 @@ var GatewayCreateProducerGcp = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerGcp, null, [{ + _createClass(GatewayUpdateProducerMongo, null, [{ key: "initialize", - value: function initialize(obj, name, serviceAccountType) { + value: function initialize(obj, name) { obj['name'] = name; - obj['service-account-type'] = serviceAccountType; } /** - * Constructs a GatewayCreateProducerGcp from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerMongo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGcp} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGcp} The populated GatewayCreateProducerGcp instance. + * @param {module:model/GatewayUpdateProducerMongo} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMongo} The populated GatewayUpdateProducerMongo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerGcp(); + obj = obj || new GatewayUpdateProducerMongo(); if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('gcp-cred-type')) { - obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); } - if (data.hasOwnProperty('gcp-key-algo')) { - obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); } - if (data.hasOwnProperty('gcp-sa-email')) { - obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); } - if (data.hasOwnProperty('gcp-token-scopes')) { - obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } + + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } + + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } + + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } + + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('role-binding')) { - obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('service-account-type')) { - obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } if (data.hasOwnProperty('tags')) { @@ -58177,7 +134623,7 @@ var GatewayCreateProducerGcp = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerGcp; + return GatewayUpdateProducerMongo; }(); /** * Protection from accidental deletion of this item [true/false] @@ -58185,105 +134631,173 @@ var GatewayCreateProducerGcp = /*#__PURE__*/function () { */ -GatewayCreateProducerGcp.prototype['delete_protection'] = undefined; +GatewayUpdateProducerMongo.prototype['delete_protection'] = undefined; /** - * @member {String} gcp-cred-type + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerGcp.prototype['gcp-cred-type'] = undefined; +GatewayUpdateProducerMongo.prototype['json'] = false; /** - * Base64-encoded service account private key text - * @member {String} gcp-key + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key */ -GatewayCreateProducerGcp.prototype['gcp-key'] = undefined; +GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; /** - * Service account key algorithm, e.g. KEY_ALG_RSA_1024 - * @member {String} gcp-key-algo + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key */ -GatewayCreateProducerGcp.prototype['gcp-key-algo'] = undefined; +GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; /** - * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) - * @member {String} gcp-sa-email + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id */ -GatewayCreateProducerGcp.prototype['gcp-sa-email'] = undefined; +GatewayUpdateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; /** - * Access token scopes list, e.g. scope1,scope2 - * @member {String} gcp-token-scopes + * MongoDB custom data + * @member {String} mongodb-custom-data */ -GatewayCreateProducerGcp.prototype['gcp-token-scopes'] = undefined; +GatewayUpdateProducerMongo.prototype['mongodb-custom-data'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db */ -GatewayCreateProducerGcp.prototype['json'] = false; +GatewayUpdateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server host and port + * @member {String} mongodb-host-port + */ + +GatewayUpdateProducerMongo.prototype['mongodb-host-port'] = undefined; +/** + * MongoDB Name + * @member {String} mongodb-name + */ + +GatewayUpdateProducerMongo.prototype['mongodb-name'] = undefined; +/** + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password + */ + +GatewayUpdateProducerMongo.prototype['mongodb-password'] = undefined; +/** + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' + */ + +GatewayUpdateProducerMongo.prototype['mongodb-roles'] = '[]'; +/** + * MongoDB server URI + * @member {String} mongodb-server-uri + */ + +GatewayUpdateProducerMongo.prototype['mongodb-server-uri'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ + +GatewayUpdateProducerMongo.prototype['mongodb-uri-options'] = undefined; +/** + * MongoDB server username + * @member {String} mongodb-username + */ + +GatewayUpdateProducerMongo.prototype['mongodb-username'] = undefined; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerGcp.prototype['name'] = undefined; +GatewayUpdateProducerMongo.prototype['name'] = undefined; /** - * Dynamic producer encryption key + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerMongo.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerMongo.prototype['password-length'] = undefined; +/** + * Encrypt producer with following key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerGcp.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerMongo.prototype['producer-encryption-key-name'] = undefined; /** - * Role binding definitions in json format - * @member {String} role-binding + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerGcp.prototype['role-binding'] = undefined; +GatewayUpdateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; /** - * The type of the gcp dynamic secret. Options[fixed, dynamic] - * @member {String} service-account-type - * @default 'fixed' + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -GatewayCreateProducerGcp.prototype['service-account-type'] = 'fixed'; +GatewayUpdateProducerMongo.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerMongo.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerMongo.prototype['secure-access-web'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerGcp.prototype['tags'] = undefined; +GatewayUpdateProducerMongo.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerGcp.prototype['target-name'] = undefined; +GatewayUpdateProducerMongo.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerGcp.prototype['token'] = undefined; +GatewayUpdateProducerMongo.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerGcp.prototype['uid-token'] = undefined; +GatewayUpdateProducerMongo.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerGcp.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerGcp; +GatewayUpdateProducerMongo.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerMongo; exports["default"] = _default; /***/ }), -/***/ 66661: +/***/ 78311: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -58294,9 +134808,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -58307,19 +134821,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerGcpOutput model module. - * @module model/GatewayCreateProducerGcpOutput - * @version 3.3.16 + * The GatewayUpdateProducerMongoOutput model module. + * @module model/GatewayUpdateProducerMongoOutput + * @version 3.6.3 */ -var GatewayCreateProducerGcpOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerMongoOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerGcpOutput. - * @alias module:model/GatewayCreateProducerGcpOutput + * Constructs a new GatewayUpdateProducerMongoOutput. + * @alias module:model/GatewayUpdateProducerMongoOutput */ - function GatewayCreateProducerGcpOutput() { - _classCallCheck(this, GatewayCreateProducerGcpOutput); + function GatewayUpdateProducerMongoOutput() { + _classCallCheck(this, GatewayUpdateProducerMongoOutput); - GatewayCreateProducerGcpOutput.initialize(this); + GatewayUpdateProducerMongoOutput.initialize(this); } /** * Initializes the fields of this object. @@ -58328,22 +134842,22 @@ var GatewayCreateProducerGcpOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerGcpOutput, null, [{ + _createClass(GatewayUpdateProducerMongoOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGcpOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGcpOutput} The populated GatewayCreateProducerGcpOutput instance. + * @param {module:model/GatewayUpdateProducerMongoOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMongoOutput} The populated GatewayUpdateProducerMongoOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerGcpOutput(); + obj = obj || new GatewayUpdateProducerMongoOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -58354,20 +134868,20 @@ var GatewayCreateProducerGcpOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerGcpOutput; + return GatewayUpdateProducerMongoOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerGcpOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerGcpOutput; +GatewayUpdateProducerMongoOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerMongoOutput; exports["default"] = _default; /***/ }), -/***/ 68950: +/***/ 67872: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -58378,7 +134892,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -58389,21 +134903,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerGithub model module. - * @module model/GatewayCreateProducerGithub - * @version 3.3.16 + * The GatewayUpdateProducerMySQL model module. + * @module model/GatewayUpdateProducerMySQL + * @version 3.6.3 */ -var GatewayCreateProducerGithub = /*#__PURE__*/function () { +var GatewayUpdateProducerMySQL = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerGithub. - * gatewayCreateProducerGithub is a command that creates github producer - * @alias module:model/GatewayCreateProducerGithub - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerMySQL. + * gatewayUpdateProducerMySQL is a command that updates mysql producer [Deprecated: Use dynamic-secret-update-mysql command] + * @alias module:model/GatewayUpdateProducerMySQL + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerGithub(name) { - _classCallCheck(this, GatewayCreateProducerGithub); + function GatewayUpdateProducerMySQL(name) { + _classCallCheck(this, GatewayUpdateProducerMySQL); - GatewayCreateProducerGithub.initialize(this, name); + GatewayUpdateProducerMySQL.initialize(this, name); } /** * Initializes the fields of this object. @@ -58412,171 +134926,305 @@ var GatewayCreateProducerGithub = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerGithub, null, [{ + _createClass(GatewayUpdateProducerMySQL, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerGithub from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerMySQL from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGithub} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGithub} The populated GatewayCreateProducerGithub instance. + * @param {module:model/GatewayUpdateProducerMySQL} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMySQL} The populated GatewayUpdateProducerMySQL instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerGithub(); + obj = obj || new GatewayUpdateProducerMySQL(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); } - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); } - if (data.hasOwnProperty('installation-id')) { - obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); } - if (data.hasOwnProperty('installation-repository')) { - obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('token-permissions')) { - obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('token-repositories')) { - obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } } return obj; } }]); - return GatewayCreateProducerGithub; + return GatewayUpdateProducerMySQL; }(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +GatewayUpdateProducerMySQL.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +GatewayUpdateProducerMySQL.prototype['db-server-name'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ +GatewayUpdateProducerMySQL.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -GatewayCreateProducerGithub.prototype['delete_protection'] = undefined; +GatewayUpdateProducerMySQL.prototype['json'] = false; /** - * Github app id - * @member {Number} github-app-id + * MySQL DB Name + * @member {String} mysql-dbname */ -GatewayCreateProducerGithub.prototype['github-app-id'] = undefined; +GatewayUpdateProducerMySQL.prototype['mysql-dbname'] = undefined; /** - * App private key - * @member {String} github-app-private-key + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' */ -GatewayCreateProducerGithub.prototype['github-app-private-key'] = undefined; +GatewayUpdateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; /** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' + * MySQL Password + * @member {String} mysql-password */ -GatewayCreateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; +GatewayUpdateProducerMySQL.prototype['mysql-password'] = undefined; /** - * Github app installation id - * @member {Number} installation-id + * MySQL Port + * @member {String} mysql-port + * @default '3306' */ -GatewayCreateProducerGithub.prototype['installation-id'] = undefined; +GatewayUpdateProducerMySQL.prototype['mysql-port'] = '3306'; /** - * Repository that the app installation has access to - * @member {String} installation-repository + * MySQL Revocation statements + * @member {String} mysql-revocation-statements */ -GatewayCreateProducerGithub.prototype['installation-repository'] = undefined; +GatewayUpdateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * MySQL Creation statements + * @member {String} mysql-screation-statements */ -GatewayCreateProducerGithub.prototype['json'] = false; +GatewayUpdateProducerMySQL.prototype['mysql-screation-statements'] = undefined; +/** + * MySQL Username + * @member {String} mysql-username + */ + +GatewayUpdateProducerMySQL.prototype['mysql-username'] = undefined; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerGithub.prototype['name'] = undefined; +GatewayUpdateProducerMySQL.prototype['name'] = undefined; /** - * Target name - * @member {String} target-name + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerGithub.prototype['target-name'] = undefined; +GatewayUpdateProducerMySQL.prototype['new-name'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerGithub.prototype['token'] = undefined; +GatewayUpdateProducerMySQL.prototype['password-length'] = undefined; /** - * Optional - installation token's allowed permissions - * @member {Array.} token-permissions + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateProducerGithub.prototype['token-permissions'] = undefined; +GatewayUpdateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; /** - * Optional - installation token's allowed repositories - * @member {Array.} token-repositories + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerGithub.prototype['token-repositories'] = undefined; +GatewayUpdateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerMySQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerMySQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerMySQL.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayUpdateProducerMySQL.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ + +GatewayUpdateProducerMySQL.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerMySQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerMySQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerMySQL.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerGithub.prototype['uid-token'] = undefined; -var _default = GatewayCreateProducerGithub; +GatewayUpdateProducerMySQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerMySQL.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerMySQL; exports["default"] = _default; /***/ }), -/***/ 77723: +/***/ 67081: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -58587,9 +135235,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -58600,19 +135248,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerGithubOutput model module. - * @module model/GatewayCreateProducerGithubOutput - * @version 3.3.16 + * The GatewayUpdateProducerMySQLOutput model module. + * @module model/GatewayUpdateProducerMySQLOutput + * @version 3.6.3 */ -var GatewayCreateProducerGithubOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerMySQLOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerGithubOutput. - * @alias module:model/GatewayCreateProducerGithubOutput + * Constructs a new GatewayUpdateProducerMySQLOutput. + * @alias module:model/GatewayUpdateProducerMySQLOutput */ - function GatewayCreateProducerGithubOutput() { - _classCallCheck(this, GatewayCreateProducerGithubOutput); + function GatewayUpdateProducerMySQLOutput() { + _classCallCheck(this, GatewayUpdateProducerMySQLOutput); - GatewayCreateProducerGithubOutput.initialize(this); + GatewayUpdateProducerMySQLOutput.initialize(this); } /** * Initializes the fields of this object. @@ -58621,22 +135269,22 @@ var GatewayCreateProducerGithubOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerGithubOutput, null, [{ + _createClass(GatewayUpdateProducerMySQLOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGithubOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGithubOutput} The populated GatewayCreateProducerGithubOutput instance. + * @param {module:model/GatewayUpdateProducerMySQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMySQLOutput} The populated GatewayUpdateProducerMySQLOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerGithubOutput(); + obj = obj || new GatewayUpdateProducerMySQLOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -58647,20 +135295,20 @@ var GatewayCreateProducerGithubOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerGithubOutput; + return GatewayUpdateProducerMySQLOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerGithubOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerGithubOutput; +GatewayUpdateProducerMySQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerMySQLOutput; exports["default"] = _default; /***/ }), -/***/ 77929: +/***/ 47503: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -58671,7 +135319,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -58682,21 +135330,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerGke model module. - * @module model/GatewayCreateProducerGke - * @version 3.3.16 + * The GatewayUpdateProducerNativeK8S model module. + * @module model/GatewayUpdateProducerNativeK8S + * @version 3.6.3 */ -var GatewayCreateProducerGke = /*#__PURE__*/function () { +var GatewayUpdateProducerNativeK8S = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerGke. - * gatewayCreateProducerGke is a command that creates gke producer - * @alias module:model/GatewayCreateProducerGke - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerNativeK8S. + * gatewayUpdateProducerNativeK8S is a command that updates k8s producer [Deprecated: Use dynamic-secret-update-k8s command] + * @alias module:model/GatewayUpdateProducerNativeK8S + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerGke(name) { - _classCallCheck(this, GatewayCreateProducerGke); + function GatewayUpdateProducerNativeK8S(name) { + _classCallCheck(this, GatewayUpdateProducerNativeK8S); - GatewayCreateProducerGke.initialize(this, name); + GatewayUpdateProducerNativeK8S.initialize(this, name); } /** * Initializes the fields of this object. @@ -58705,57 +135353,81 @@ var GatewayCreateProducerGke = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerGke, null, [{ + _createClass(GatewayUpdateProducerNativeK8S, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerGke from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGke} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGke} The populated GatewayCreateProducerGke instance. + * @param {module:model/GatewayUpdateProducerNativeK8S} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerNativeK8S} The populated GatewayUpdateProducerNativeK8S instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerGke(); + obj = obj || new GatewayUpdateProducerNativeK8S(); if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); } - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); } - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('producer-encryption-key-name')) { obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } @@ -58772,6 +135444,10 @@ var GatewayCreateProducerGke = /*#__PURE__*/function () { obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); } + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } + if (data.hasOwnProperty('secure-access-enable')) { obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } @@ -58780,6 +135456,14 @@ var GatewayCreateProducerGke = /*#__PURE__*/function () { obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } @@ -58796,6 +135480,10 @@ var GatewayCreateProducerGke = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + if (data.hasOwnProperty('user-ttl')) { obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } @@ -58805,7 +135493,7 @@ var GatewayCreateProducerGke = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerGke; + return GatewayUpdateProducerNativeK8S; }(); /** * Protection from accidental deletion of this item [true/false] @@ -58813,124 +135501,186 @@ var GatewayCreateProducerGke = /*#__PURE__*/function () { */ -GatewayCreateProducerGke.prototype['delete_protection'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['delete_protection'] = undefined; /** - * GKE Service Account key file path - * @member {String} gke-account-key + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerGke.prototype['gke-account-key'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['json'] = false; /** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces */ -GatewayCreateProducerGke.prototype['gke-cluster-cert'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; /** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert */ -GatewayCreateProducerGke.prototype['gke-cluster-endpoint'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; /** - * GKE cluster name - * @member {String} gke-cluster-name + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint */ -GatewayCreateProducerGke.prototype['gke-cluster-name'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; /** - * GKE service account email - * @member {String} gke-service-account-email + * K8S cluster Bearer token + * @member {String} k8s-cluster-token */ -GatewayCreateProducerGke.prototype['gke-service-account-email'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace */ -GatewayCreateProducerGke.prototype['json'] = false; +GatewayUpdateProducerNativeK8S.prototype['k8s-namespace'] = undefined; +/** + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; +/** + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; +/** + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; +/** + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-service-account'] = undefined; +/** + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerGke.prototype['name'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerNativeK8S.prototype['new-name'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerGke.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; /** * Enable Port forwarding while using CLI access * @member {Boolean} secure-access-allow-port-forwading */ -GatewayCreateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; /** * Path to the SSH Certificate Issuer for your Akeyless Bastion * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; /** * The K8s cluster endpoint URL * @member {String} secure-access-cluster-endpoint */ -GatewayCreateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url + * @member {String} secure-access-dashboard-url + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; /** * Enable/Disable secure remote access [true/false] * @member {String} secure-access-enable */ -GatewayCreateProducerGke.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['secure-access-enable'] = undefined; /** * Enable Web Secure Remote Access * @member {Boolean} secure-access-web * @default false */ -GatewayCreateProducerGke.prototype['secure-access-web'] = false; +GatewayUpdateProducerNativeK8S.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerGke.prototype['tags'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerGke.prototype['target-name'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerGke.prototype['token'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerGke.prototype['uid-token'] = undefined; +GatewayUpdateProducerNativeK8S.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +GatewayUpdateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerGke.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerGke; +GatewayUpdateProducerNativeK8S.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerNativeK8S; exports["default"] = _default; /***/ }), -/***/ 3544: +/***/ 30550: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -58941,9 +135691,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -58954,19 +135704,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerGkeOutput model module. - * @module model/GatewayCreateProducerGkeOutput - * @version 3.3.16 + * The GatewayUpdateProducerNativeK8SOutput model module. + * @module model/GatewayUpdateProducerNativeK8SOutput + * @version 3.6.3 */ -var GatewayCreateProducerGkeOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerNativeK8SOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerGkeOutput. - * @alias module:model/GatewayCreateProducerGkeOutput + * Constructs a new GatewayUpdateProducerNativeK8SOutput. + * @alias module:model/GatewayUpdateProducerNativeK8SOutput */ - function GatewayCreateProducerGkeOutput() { - _classCallCheck(this, GatewayCreateProducerGkeOutput); + function GatewayUpdateProducerNativeK8SOutput() { + _classCallCheck(this, GatewayUpdateProducerNativeK8SOutput); - GatewayCreateProducerGkeOutput.initialize(this); + GatewayUpdateProducerNativeK8SOutput.initialize(this); } /** * Initializes the fields of this object. @@ -58975,22 +135725,22 @@ var GatewayCreateProducerGkeOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerGkeOutput, null, [{ + _createClass(GatewayUpdateProducerNativeK8SOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGkeOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGkeOutput} The populated GatewayCreateProducerGkeOutput instance. + * @param {module:model/GatewayUpdateProducerNativeK8SOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerNativeK8SOutput} The populated GatewayUpdateProducerNativeK8SOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerGkeOutput(); + obj = obj || new GatewayUpdateProducerNativeK8SOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -59001,20 +135751,20 @@ var GatewayCreateProducerGkeOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerGkeOutput; + return GatewayUpdateProducerNativeK8SOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerGkeOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerGkeOutput; +GatewayUpdateProducerNativeK8SOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerNativeK8SOutput; exports["default"] = _default; /***/ }), -/***/ 93694: +/***/ 26508: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -59025,7 +135775,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -59036,21 +135786,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerHanaDb model module. - * @module model/GatewayCreateProducerHanaDb - * @version 3.3.16 + * The GatewayUpdateProducerOracleDb model module. + * @module model/GatewayUpdateProducerOracleDb + * @version 3.6.3 */ -var GatewayCreateProducerHanaDb = /*#__PURE__*/function () { +var GatewayUpdateProducerOracleDb = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerHanaDb. - * gatewayCreateProducerHanaDb is a command that creates hanadb producer - * @alias module:model/GatewayCreateProducerHanaDb - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerOracleDb. + * gatewayUpdateProducerOracleDb is a command that updates oracle db producer [Deprecated: Use dynamic-secret-update-oracledb command] + * @alias module:model/GatewayUpdateProducerOracleDb + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerHanaDb(name) { - _classCallCheck(this, GatewayCreateProducerHanaDb); + function GatewayUpdateProducerOracleDb(name) { + _classCallCheck(this, GatewayUpdateProducerOracleDb); - GatewayCreateProducerHanaDb.initialize(this, name); + GatewayUpdateProducerOracleDb.initialize(this, name); } /** * Initializes the fields of this object. @@ -59059,63 +135809,79 @@ var GatewayCreateProducerHanaDb = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerHanaDb, null, [{ + _createClass(GatewayUpdateProducerOracleDb, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerHanaDb} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerHanaDb} The populated GatewayCreateProducerHanaDb instance. + * @param {module:model/GatewayUpdateProducerOracleDb} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerOracleDb} The populated GatewayUpdateProducerOracleDb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerHanaDb(); + obj = obj || new GatewayUpdateProducerOracleDb(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('hana-dbname')) { - obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('hanadb-create-statements')) { - obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('hanadb-host')) { - obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('hanadb-password')) { - obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); } - if (data.hasOwnProperty('hanadb-port')) { - obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); } - if (data.hasOwnProperty('hanadb-revocation-statements')) { - obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); } - if (data.hasOwnProperty('hanadb-username')) { - obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } if (data.hasOwnProperty('producer-encryption-key-name')) { @@ -59126,10 +135892,6 @@ var GatewayCreateProducerHanaDb = /*#__PURE__*/function () { obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - if (data.hasOwnProperty('secure-access-enable')) { obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } @@ -59167,146 +135929,165 @@ var GatewayCreateProducerHanaDb = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerHanaDb; + return GatewayUpdateProducerOracleDb; }(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +GatewayUpdateProducerOracleDb.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +GatewayUpdateProducerOracleDb.prototype['db-server-name'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ +GatewayUpdateProducerOracleDb.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -GatewayCreateProducerHanaDb.prototype['delete_protection'] = undefined; +GatewayUpdateProducerOracleDb.prototype['json'] = false; /** - * HanaDb Name - * @member {String} hana-dbname + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerHanaDb.prototype['hana-dbname'] = undefined; +GatewayUpdateProducerOracleDb.prototype['name'] = undefined; /** - * HanaDb Creation statements - * @member {String} hanadb-create-statements + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; +GatewayUpdateProducerOracleDb.prototype['new-name'] = undefined; /** - * HanaDb Host - * @member {String} hanadb-host + * Oracle Host + * @member {String} oracle-host * @default '127.0.0.1' */ -GatewayCreateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +GatewayUpdateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; /** - * HanaDb Password - * @member {String} hanadb-password + * Oracle Password + * @member {String} oracle-password */ -GatewayCreateProducerHanaDb.prototype['hanadb-password'] = undefined; +GatewayUpdateProducerOracleDb.prototype['oracle-password'] = undefined; /** - * HanaDb Port - * @member {String} hanadb-port - * @default '443' + * Oracle Port + * @member {String} oracle-port + * @default '1521' */ -GatewayCreateProducerHanaDb.prototype['hanadb-port'] = '443'; +GatewayUpdateProducerOracleDb.prototype['oracle-port'] = '1521'; /** - * HanaDb Revocation statements - * @member {String} hanadb-revocation-statements + * Oracle Revocation statements + * @member {String} oracle-revocation-statements */ -GatewayCreateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; +GatewayUpdateProducerOracleDb.prototype['oracle-revocation-statements'] = undefined; /** - * HanaDb Username - * @member {String} hanadb-username + * Oracle Creation statements + * @member {String} oracle-screation-statements */ -GatewayCreateProducerHanaDb.prototype['hanadb-username'] = undefined; +GatewayUpdateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Oracle DB Name + * @member {String} oracle-service-name */ -GatewayCreateProducerHanaDb.prototype['json'] = false; +GatewayUpdateProducerOracleDb.prototype['oracle-service-name'] = undefined; /** - * Producer name - * @member {String} name + * Oracle Username + * @member {String} oracle-username */ -GatewayCreateProducerHanaDb.prototype['name'] = undefined; +GatewayUpdateProducerOracleDb.prototype['oracle-username'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerOracleDb.prototype['password-length'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; /** * Path to the SSH Certificate Issuer for your Akeyless Bastion * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayCreateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; +GatewayUpdateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; /** * Enable/Disable secure remote access [true/false] * @member {String} secure-access-enable + * @default 'false' */ -GatewayCreateProducerHanaDb.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerOracleDb.prototype['secure-access-enable'] = 'false'; /** * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) * @member {Array.} secure-access-host */ -GatewayCreateProducerHanaDb.prototype['secure-access-host'] = undefined; +GatewayUpdateProducerOracleDb.prototype['secure-access-host'] = undefined; /** * Enable Web Secure Remote Access * @member {Boolean} secure-access-web * @default false */ -GatewayCreateProducerHanaDb.prototype['secure-access-web'] = false; +GatewayUpdateProducerOracleDb.prototype['secure-access-web'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerHanaDb.prototype['tags'] = undefined; +GatewayUpdateProducerOracleDb.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerHanaDb.prototype['target-name'] = undefined; +GatewayUpdateProducerOracleDb.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerHanaDb.prototype['token'] = undefined; +GatewayUpdateProducerOracleDb.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerHanaDb.prototype['uid-token'] = undefined; +GatewayUpdateProducerOracleDb.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerHanaDb.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerHanaDb; +GatewayUpdateProducerOracleDb.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerOracleDb; exports["default"] = _default; /***/ }), -/***/ 72487: +/***/ 85485: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -59317,9 +136098,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -59330,19 +136111,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerHanaDbOutput model module. - * @module model/GatewayCreateProducerHanaDbOutput - * @version 3.3.16 + * The GatewayUpdateProducerOracleDbOutput model module. + * @module model/GatewayUpdateProducerOracleDbOutput + * @version 3.6.3 */ -var GatewayCreateProducerHanaDbOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerOracleDbOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerHanaDbOutput. - * @alias module:model/GatewayCreateProducerHanaDbOutput + * Constructs a new GatewayUpdateProducerOracleDbOutput. + * @alias module:model/GatewayUpdateProducerOracleDbOutput */ - function GatewayCreateProducerHanaDbOutput() { - _classCallCheck(this, GatewayCreateProducerHanaDbOutput); + function GatewayUpdateProducerOracleDbOutput() { + _classCallCheck(this, GatewayUpdateProducerOracleDbOutput); - GatewayCreateProducerHanaDbOutput.initialize(this); + GatewayUpdateProducerOracleDbOutput.initialize(this); } /** * Initializes the fields of this object. @@ -59351,22 +136132,22 @@ var GatewayCreateProducerHanaDbOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerHanaDbOutput, null, [{ + _createClass(GatewayUpdateProducerOracleDbOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerHanaDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerHanaDbOutput} The populated GatewayCreateProducerHanaDbOutput instance. + * @param {module:model/GatewayUpdateProducerOracleDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerOracleDbOutput} The populated GatewayUpdateProducerOracleDbOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerHanaDbOutput(); + obj = obj || new GatewayUpdateProducerOracleDbOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -59377,20 +136158,20 @@ var GatewayCreateProducerHanaDbOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerHanaDbOutput; + return GatewayUpdateProducerOracleDbOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerHanaDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerHanaDbOutput; +GatewayUpdateProducerOracleDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerOracleDbOutput; exports["default"] = _default; /***/ }), -/***/ 51154: +/***/ 29668: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -59401,7 +136182,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -59412,21 +136193,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerLdap model module. - * @module model/GatewayCreateProducerLdap - * @version 3.3.16 + * The GatewayUpdateProducerPing model module. + * @module model/GatewayUpdateProducerPing + * @version 3.6.3 */ -var GatewayCreateProducerLdap = /*#__PURE__*/function () { +var GatewayUpdateProducerPing = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerLdap. - * gatewayCreateProducerLdap is a command that creates ldap producer - * @alias module:model/GatewayCreateProducerLdap - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerPing. + * gatewayUpdateProducerPing is a command that updates Ping producer [Deprecated: Use dynamic-secret-update-ping command] + * @alias module:model/GatewayUpdateProducerPing + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerLdap(name) { - _classCallCheck(this, GatewayCreateProducerLdap); + function GatewayUpdateProducerPing(name) { + _classCallCheck(this, GatewayUpdateProducerPing); - GatewayCreateProducerLdap.initialize(this, name); + GatewayUpdateProducerPing.initialize(this, name); } /** * Initializes the fields of this object. @@ -59435,59 +136216,103 @@ var GatewayCreateProducerLdap = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerLdap, null, [{ + _createClass(GatewayUpdateProducerPing, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerLdap from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerPing from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerLdap} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerLdap} The populated GatewayCreateProducerLdap instance. + * @param {module:model/GatewayUpdateProducerPing} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPing} The populated GatewayUpdateProducerPing instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerLdap(); + obj = obj || new GatewayUpdateProducerPing(); - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('external-username')) { - obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('group-dn')) { - obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); } - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); } - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); + } + + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + } + + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + } + + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + } + + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); } if (data.hasOwnProperty('producer-encryption-key-name')) { @@ -59506,22 +136331,10 @@ var GatewayCreateProducerLdap = /*#__PURE__*/function () { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); - } - - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); - } - if (data.hasOwnProperty('user-ttl')) { obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } @@ -59531,126 +136344,177 @@ var GatewayCreateProducerLdap = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerLdap; + return GatewayUpdateProducerPing; }(); /** - * Bind DN - * @member {String} bind-dn + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerLdap.prototype['bind-dn'] = undefined; +GatewayUpdateProducerPing.prototype['delete_protection'] = undefined; /** - * Bind DN Password - * @member {String} bind-dn-password + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerLdap.prototype['bind-dn-password'] = undefined; +GatewayUpdateProducerPing.prototype['json'] = false; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerLdap.prototype['delete_protection'] = undefined; +GatewayUpdateProducerPing.prototype['name'] = undefined; /** - * Externally provided username [true/false] - * @member {String} external-username + * Dynamic secret New name + * @member {String} new-name + */ + +GatewayUpdateProducerPing.prototype['new-name'] = undefined; +/** + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' + */ + +GatewayUpdateProducerPing.prototype['ping-administrative-port'] = '9999'; +/** + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id + */ + +GatewayUpdateProducerPing.prototype['ping-atm-id'] = undefined; +/** + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' + */ + +GatewayUpdateProducerPing.prototype['ping-authorization-port'] = '9031'; +/** + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn + */ + +GatewayUpdateProducerPing.prototype['ping-cert-subject-dn'] = undefined; +/** + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' + */ + +GatewayUpdateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; +/** + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention * @default 'false' */ -GatewayCreateProducerLdap.prototype['external-username'] = 'false'; +GatewayUpdateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; /** - * Group DN which the temporary user should be added - * @member {String} group-dn + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types */ -GatewayCreateProducerLdap.prototype['group-dn'] = undefined; +GatewayUpdateProducerPing.prototype['ping-grant-types'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn */ -GatewayCreateProducerLdap.prototype['json'] = false; +GatewayUpdateProducerPing.prototype['ping-issuer-dn'] = undefined; /** - * CA Certificate File Content - * @member {String} ldap-ca-cert + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks */ -GatewayCreateProducerLdap.prototype['ldap-ca-cert'] = undefined; +GatewayUpdateProducerPing.prototype['ping-jwks'] = undefined; /** - * LDAP Server URL - * @member {String} ldap-url + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url */ -GatewayCreateProducerLdap.prototype['ldap-url'] = undefined; +GatewayUpdateProducerPing.prototype['ping-jwks-url'] = undefined; /** - * Producer name - * @member {String} name + * Ping Federate privileged user password + * @member {String} ping-password */ -GatewayCreateProducerLdap.prototype['name'] = undefined; +GatewayUpdateProducerPing.prototype['ping-password'] = undefined; +/** + * Ping Federate privileged user + * @member {String} ping-privileged-user + */ + +GatewayUpdateProducerPing.prototype['ping-privileged-user'] = undefined; +/** + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris + */ + +GatewayUpdateProducerPing.prototype['ping-redirect-uris'] = undefined; +/** + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes + */ + +GatewayUpdateProducerPing.prototype['ping-restricted-scopes'] = undefined; +/** + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo + */ + +GatewayUpdateProducerPing.prototype['ping-signing-algo'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +GatewayUpdateProducerPing.prototype['ping-url'] = undefined; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerLdap.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerPing.prototype['producer-encryption-key-name'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerLdap.prototype['tags'] = undefined; +GatewayUpdateProducerPing.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerLdap.prototype['target-name'] = undefined; +GatewayUpdateProducerPing.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerLdap.prototype['token'] = undefined; -/** - * Token expiration - * @member {String} token-expiration - */ - -GatewayCreateProducerLdap.prototype['token-expiration'] = undefined; +GatewayUpdateProducerPing.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerLdap.prototype['uid-token'] = undefined; -/** - * User Attribute - * @member {String} user-attribute - */ - -GatewayCreateProducerLdap.prototype['user-attribute'] = undefined; -/** - * User DN - * @member {String} user-dn - */ - -GatewayCreateProducerLdap.prototype['user-dn'] = undefined; +GatewayUpdateProducerPing.prototype['uid-token'] = undefined; /** - * User TTL + * The time from dynamic secret creation to expiration. * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerLdap.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerLdap; +GatewayUpdateProducerPing.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerPing; exports["default"] = _default; /***/ }), -/***/ 19730: +/***/ 39317: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -59661,9 +136525,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -59674,19 +136538,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerLdapOutput model module. - * @module model/GatewayCreateProducerLdapOutput - * @version 3.3.16 + * The GatewayUpdateProducerPingOutput model module. + * @module model/GatewayUpdateProducerPingOutput + * @version 3.6.3 */ -var GatewayCreateProducerLdapOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerPingOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerLdapOutput. - * @alias module:model/GatewayCreateProducerLdapOutput + * Constructs a new GatewayUpdateProducerPingOutput. + * @alias module:model/GatewayUpdateProducerPingOutput */ - function GatewayCreateProducerLdapOutput() { - _classCallCheck(this, GatewayCreateProducerLdapOutput); + function GatewayUpdateProducerPingOutput() { + _classCallCheck(this, GatewayUpdateProducerPingOutput); - GatewayCreateProducerLdapOutput.initialize(this); + GatewayUpdateProducerPingOutput.initialize(this); } /** * Initializes the fields of this object. @@ -59695,22 +136559,22 @@ var GatewayCreateProducerLdapOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerLdapOutput, null, [{ + _createClass(GatewayUpdateProducerPingOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerLdapOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerLdapOutput} The populated GatewayCreateProducerLdapOutput instance. + * @param {module:model/GatewayUpdateProducerPingOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPingOutput} The populated GatewayUpdateProducerPingOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerLdapOutput(); + obj = obj || new GatewayUpdateProducerPingOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -59721,20 +136585,20 @@ var GatewayCreateProducerLdapOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerLdapOutput; + return GatewayUpdateProducerPingOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerLdapOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerLdapOutput; +GatewayUpdateProducerPingOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerPingOutput; exports["default"] = _default; /***/ }), -/***/ 98069: +/***/ 17998: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -59745,7 +136609,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -59756,21 +136620,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerMSSQL model module. - * @module model/GatewayCreateProducerMSSQL - * @version 3.3.16 + * The GatewayUpdateProducerPostgreSQL model module. + * @module model/GatewayUpdateProducerPostgreSQL + * @version 3.6.3 */ -var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { +var GatewayUpdateProducerPostgreSQL = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerMSSQL. - * gatewayCreateProducerMSSQL is a command that creates mssql producer - * @alias module:model/GatewayCreateProducerMSSQL - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerPostgreSQL. + * gatewayUpdateProducerPostgreSQL is a command that updates postgresql producer [Deprecated: Use dynamic-secret-update-postgresql command] + * @alias module:model/GatewayUpdateProducerPostgreSQL + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerMSSQL(name) { - _classCallCheck(this, GatewayCreateProducerMSSQL); + function GatewayUpdateProducerPostgreSQL(name) { + _classCallCheck(this, GatewayUpdateProducerPostgreSQL); - GatewayCreateProducerMSSQL.initialize(this, name); + GatewayUpdateProducerPostgreSQL.initialize(this, name); } /** * Initializes the fields of this object. @@ -59779,24 +136643,28 @@ var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerMSSQL, null, [{ + _createClass(GatewayUpdateProducerPostgreSQL, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMSSQL} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMSSQL} The populated GatewayCreateProducerMSSQL instance. + * @param {module:model/GatewayUpdateProducerPostgreSQL} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPostgreSQL} The populated GatewayUpdateProducerPostgreSQL instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerMSSQL(); + obj = obj || new GatewayUpdateProducerPostgreSQL(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); @@ -59806,40 +136674,44 @@ var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mssql-create-statements')) { - obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('mssql-dbname')) { - obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('mssql-host')) { - obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('mssql-password')) { - obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); } - if (data.hasOwnProperty('mssql-port')) { - obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); } - if (data.hasOwnProperty('mssql-revocation-statements')) { - obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); } - if (data.hasOwnProperty('mssql-username')) { - obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); } if (data.hasOwnProperty('secure-access-bastion-issuer')) { @@ -59862,6 +136734,10 @@ var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } @@ -59887,146 +136763,165 @@ var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerMSSQL; + return GatewayUpdateProducerPostgreSQL; }(); +/** + * PostgreSQL Creation statements + * @member {String} creation-statements + */ + + +GatewayUpdateProducerPostgreSQL.prototype['creation-statements'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ - -GatewayCreateProducerMSSQL.prototype['delete_protection'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerMSSQL.prototype['json'] = false; +GatewayUpdateProducerPostgreSQL.prototype['json'] = false; /** - * MSSQL Creation statements - * @member {String} mssql-create-statements + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerMSSQL.prototype['mssql-create-statements'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['name'] = undefined; /** - * MSSQL Name - * @member {String} mssql-dbname + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerMSSQL.prototype['mssql-dbname'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['new-name'] = undefined; /** - * MSSQL Host - * @member {String} mssql-host - * @default '127.0.0.1' + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; +GatewayUpdateProducerPostgreSQL.prototype['password-length'] = undefined; /** - * MSSQL Password - * @member {String} mssql-password + * PostgreSQL DB Name + * @member {String} postgresql-db-name */ -GatewayCreateProducerMSSQL.prototype['mssql-password'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; /** - * MSSQL Port - * @member {String} mssql-port - * @default '1433' + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' */ -GatewayCreateProducerMSSQL.prototype['mssql-port'] = '1433'; +GatewayUpdateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; /** - * MSSQL Revocation statements - * @member {String} mssql-revocation-statements + * PostgreSQL Password + * @member {String} postgresql-password */ -GatewayCreateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['postgresql-password'] = undefined; /** - * MSSQL Username - * @member {String} mssql-username + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' */ -GatewayCreateProducerMSSQL.prototype['mssql-username'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; /** - * Producer name - * @member {String} name + * PostgreSQL Username + * @member {String} postgresql-username */ -GatewayCreateProducerMSSQL.prototype['name'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['postgresql-username'] = undefined; /** * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * @member {String} producer-encryption-key */ -GatewayCreateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement + */ + +GatewayUpdateProducerPostgreSQL.prototype['revocation-statement'] = undefined; /** * Path to the SSH Certificate Issuer for your Akeyless Bastion * @member {String} secure-access-bastion-issuer */ -GatewayCreateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; /** * The DB schema * @member {String} secure-access-db-schema */ -GatewayCreateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; /** * Enable/Disable secure remote access [true/false] * @member {String} secure-access-enable */ -GatewayCreateProducerMSSQL.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; /** * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) * @member {Array.} secure-access-host */ -GatewayCreateProducerMSSQL.prototype['secure-access-host'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['secure-access-host'] = undefined; /** * Enable Web Secure Remote Access * @member {Boolean} secure-access-web * @default false */ -GatewayCreateProducerMSSQL.prototype['secure-access-web'] = false; +GatewayUpdateProducerPostgreSQL.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayUpdateProducerPostgreSQL.prototype['ssl'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerMSSQL.prototype['tags'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerMSSQL.prototype['target-name'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerMSSQL.prototype['token'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerMSSQL.prototype['uid-token'] = undefined; +GatewayUpdateProducerPostgreSQL.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerMSSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerMSSQL; +GatewayUpdateProducerPostgreSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerPostgreSQL; exports["default"] = _default; /***/ }), -/***/ 43163: +/***/ 60827: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -60037,9 +136932,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -60050,19 +136945,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerMSSQLOutput model module. - * @module model/GatewayCreateProducerMSSQLOutput - * @version 3.3.16 + * The GatewayUpdateProducerPostgreSQLOutput model module. + * @module model/GatewayUpdateProducerPostgreSQLOutput + * @version 3.6.3 */ -var GatewayCreateProducerMSSQLOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerPostgreSQLOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerMSSQLOutput. - * @alias module:model/GatewayCreateProducerMSSQLOutput + * Constructs a new GatewayUpdateProducerPostgreSQLOutput. + * @alias module:model/GatewayUpdateProducerPostgreSQLOutput */ - function GatewayCreateProducerMSSQLOutput() { - _classCallCheck(this, GatewayCreateProducerMSSQLOutput); + function GatewayUpdateProducerPostgreSQLOutput() { + _classCallCheck(this, GatewayUpdateProducerPostgreSQLOutput); - GatewayCreateProducerMSSQLOutput.initialize(this); + GatewayUpdateProducerPostgreSQLOutput.initialize(this); } /** * Initializes the fields of this object. @@ -60071,22 +136966,22 @@ var GatewayCreateProducerMSSQLOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerMSSQLOutput, null, [{ + _createClass(GatewayUpdateProducerPostgreSQLOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMSSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMSSQLOutput} The populated GatewayCreateProducerMSSQLOutput instance. + * @param {module:model/GatewayUpdateProducerPostgreSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPostgreSQLOutput} The populated GatewayUpdateProducerPostgreSQLOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerMSSQLOutput(); + obj = obj || new GatewayUpdateProducerPostgreSQLOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -60097,20 +136992,20 @@ var GatewayCreateProducerMSSQLOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerMSSQLOutput; + return GatewayUpdateProducerPostgreSQLOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerMSSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerMSSQLOutput; +GatewayUpdateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerPostgreSQLOutput; exports["default"] = _default; /***/ }), -/***/ 4388: +/***/ 52574: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -60121,7 +137016,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -60132,21 +137027,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerMongo model module. - * @module model/GatewayCreateProducerMongo - * @version 3.3.16 + * The GatewayUpdateProducerRabbitMQ model module. + * @module model/GatewayUpdateProducerRabbitMQ + * @version 3.6.3 */ -var GatewayCreateProducerMongo = /*#__PURE__*/function () { +var GatewayUpdateProducerRabbitMQ = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerMongo. - * gatewayCreateProducerMongo is a command that creates either mongodb producer or mongodb atlas producer - * @alias module:model/GatewayCreateProducerMongo - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerRabbitMQ. + * gatewayUpdateProducerRabbitMQ is a command that updates rabbitmq producer [Deprecated: Use dynamic-secret-update-rabbitmq command] + * @alias module:model/GatewayUpdateProducerRabbitMQ + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerMongo(name) { - _classCallCheck(this, GatewayCreateProducerMongo); + function GatewayUpdateProducerRabbitMQ(name) { + _classCallCheck(this, GatewayUpdateProducerRabbitMQ); - GatewayCreateProducerMongo.initialize(this, name); + GatewayUpdateProducerRabbitMQ.initialize(this, name); } /** * Initializes the fields of this object. @@ -60155,24 +137050,24 @@ var GatewayCreateProducerMongo = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerMongo, null, [{ + _createClass(GatewayUpdateProducerRabbitMQ, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerMongo from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMongo} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMongo} The populated GatewayCreateProducerMongo instance. + * @param {module:model/GatewayUpdateProducerRabbitMQ} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRabbitMQ} The populated GatewayUpdateProducerRabbitMQ instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerMongo(); + obj = obj || new GatewayUpdateProducerRabbitMQ(); if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); @@ -60182,78 +137077,74 @@ var GatewayCreateProducerMongo = /*#__PURE__*/function () { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-custom-data')) { - obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('mongodb-host-port')) { - obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('mongodb-name')) { - obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('mongodb-password')) { - obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); } - if (data.hasOwnProperty('mongodb-roles')) { - obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); } - if (data.hasOwnProperty('mongodb-server-uri')) { - obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); } - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); } - if (data.hasOwnProperty('mongodb-username')) { - obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); } - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); } if (data.hasOwnProperty('secure-access-enable')) { obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); } if (data.hasOwnProperty('secure-access-web')) { obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + if (data.hasOwnProperty('tags')) { obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } @@ -60279,7 +137170,7 @@ var GatewayCreateProducerMongo = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerMongo; + return GatewayUpdateProducerRabbitMQ; }(); /** * Protection from accidental deletion of this item [true/false] @@ -60287,161 +137178,156 @@ var GatewayCreateProducerMongo = /*#__PURE__*/function () { */ -GatewayCreateProducerMongo.prototype['delete_protection'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerMongo.prototype['json'] = false; -/** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key - */ - -GatewayCreateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['json'] = false; /** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['name'] = undefined; /** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['new-name'] = undefined; /** - * MongoDB custom data - * @member {String} mongodb-custom-data + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerMongo.prototype['mongodb-custom-data'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['password-length'] = undefined; /** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; /** - * MongoDB server host and port - * @member {String} mongodb-host-port + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd */ -GatewayCreateProducerMongo.prototype['mongodb-host-port'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; /** - * MongoDB Name - * @member {String} mongodb-name + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user */ -GatewayCreateProducerMongo.prototype['mongodb-name'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; /** - * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters - * @member {String} mongodb-password + * Server URI + * @member {String} rabbitmq-server-uri */ -GatewayCreateProducerMongo.prototype['mongodb-password'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; /** - * MongoDB Roles - * @member {String} mongodb-roles - * @default '[]' + * User configuration permission + * @member {String} rabbitmq-user-conf-permission */ -GatewayCreateProducerMongo.prototype['mongodb-roles'] = '[]'; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; /** - * MongoDB server URI - * @member {String} mongodb-server-uri + * User read permission + * @member {String} rabbitmq-user-read-permission */ -GatewayCreateProducerMongo.prototype['mongodb-server-uri'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; /** - * MongoDB server URI options - * @member {String} mongodb-uri-options + * User Tags + * @member {String} rabbitmq-user-tags */ -GatewayCreateProducerMongo.prototype['mongodb-uri-options'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; /** - * MongoDB server username - * @member {String} mongodb-username + * User Virtual Host + * @member {String} rabbitmq-user-vhost */ -GatewayCreateProducerMongo.prototype['mongodb-username'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; /** - * Producer name - * @member {String} name + * User write permission + * @member {String} rabbitmq-user-write-permission */ -GatewayCreateProducerMongo.prototype['name'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; /** - * Encrypt producer with following key - * @member {String} producer-encryption-key-name + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -GatewayCreateProducerMongo.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; /** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer + * Destination URL to inject secrets + * @member {String} secure-access-url */ -GatewayCreateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['secure-access-url'] = undefined; /** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true */ -GatewayCreateProducerMongo.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['secure-access-web'] = true; /** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false */ -GatewayCreateProducerMongo.prototype['secure-access-host'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; /** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy * @default false */ -GatewayCreateProducerMongo.prototype['secure-access-web'] = false; +GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerMongo.prototype['tags'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerMongo.prototype['target-name'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerMongo.prototype['token'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerMongo.prototype['uid-token'] = undefined; +GatewayUpdateProducerRabbitMQ.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerMongo.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerMongo; +GatewayUpdateProducerRabbitMQ.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerRabbitMQ; exports["default"] = _default; /***/ }), -/***/ 31733: +/***/ 38251: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -60452,9 +137338,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -60465,19 +137351,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerMongoOutput model module. - * @module model/GatewayCreateProducerMongoOutput - * @version 3.3.16 + * The GatewayUpdateProducerRabbitMQOutput model module. + * @module model/GatewayUpdateProducerRabbitMQOutput + * @version 3.6.3 */ -var GatewayCreateProducerMongoOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerRabbitMQOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerMongoOutput. - * @alias module:model/GatewayCreateProducerMongoOutput + * Constructs a new GatewayUpdateProducerRabbitMQOutput. + * @alias module:model/GatewayUpdateProducerRabbitMQOutput */ - function GatewayCreateProducerMongoOutput() { - _classCallCheck(this, GatewayCreateProducerMongoOutput); + function GatewayUpdateProducerRabbitMQOutput() { + _classCallCheck(this, GatewayUpdateProducerRabbitMQOutput); - GatewayCreateProducerMongoOutput.initialize(this); + GatewayUpdateProducerRabbitMQOutput.initialize(this); } /** * Initializes the fields of this object. @@ -60486,22 +137372,22 @@ var GatewayCreateProducerMongoOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerMongoOutput, null, [{ + _createClass(GatewayUpdateProducerRabbitMQOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMongoOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMongoOutput} The populated GatewayCreateProducerMongoOutput instance. + * @param {module:model/GatewayUpdateProducerRabbitMQOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRabbitMQOutput} The populated GatewayUpdateProducerRabbitMQOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerMongoOutput(); + obj = obj || new GatewayUpdateProducerRabbitMQOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -60512,20 +137398,20 @@ var GatewayCreateProducerMongoOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerMongoOutput; + return GatewayUpdateProducerRabbitMQOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerMongoOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerMongoOutput; +GatewayUpdateProducerRabbitMQOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRabbitMQOutput; exports["default"] = _default; /***/ }), -/***/ 85649: +/***/ 93628: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -60536,7 +137422,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -60547,21 +137433,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerMySQL model module. - * @module model/GatewayCreateProducerMySQL - * @version 3.3.16 + * The GatewayUpdateProducerRdp model module. + * @module model/GatewayUpdateProducerRdp + * @version 3.6.3 */ -var GatewayCreateProducerMySQL = /*#__PURE__*/function () { +var GatewayUpdateProducerRdp = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerMySQL. - * gatewayCreateProducerMySQL is a command that creates mysql producer - * @alias module:model/GatewayCreateProducerMySQL - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerRdp. + * gatewayUpdateProducerRdp is a command that updates rdp producer [Deprecated: Use dynamic-secret-update-rdp command] + * @alias module:model/GatewayUpdateProducerRdp + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerMySQL(name) { - _classCallCheck(this, GatewayCreateProducerMySQL); + function GatewayUpdateProducerRdp(name) { + _classCallCheck(this, GatewayUpdateProducerRdp); - GatewayCreateProducerMySQL.initialize(this, name); + GatewayUpdateProducerRdp.initialize(this, name); } /** * Initializes the fields of this object. @@ -60570,79 +137456,79 @@ var GatewayCreateProducerMySQL = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerMySQL, null, [{ + _createClass(GatewayUpdateProducerRdp, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerMySQL from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRdp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMySQL} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMySQL} The populated GatewayCreateProducerMySQL instance. + * @param {module:model/GatewayUpdateProducerRdp} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRdp} The populated GatewayUpdateProducerRdp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerMySQL(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } + obj = obj || new GatewayUpdateProducerRdp(); - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mysql-dbname')) { - obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('mysql-host')) { - obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('mysql-password')) { - obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('mysql-port')) { - obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('mysql-revocation-statements')) { - obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); } - if (data.hasOwnProperty('mysql-screation-statements')) { - obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); } - if (data.hasOwnProperty('mysql-username')) { - obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); } - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); } if (data.hasOwnProperty('secure-access-enable')) { @@ -60653,16 +137539,16 @@ var GatewayCreateProducerMySQL = /*#__PURE__*/function () { obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); } - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); } - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); } if (data.hasOwnProperty('tags')) { @@ -60684,171 +137570,180 @@ var GatewayCreateProducerMySQL = /*#__PURE__*/function () { if (data.hasOwnProperty('user-ttl')) { obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); + } } return obj; } }]); - return GatewayCreateProducerMySQL; + return GatewayUpdateProducerRdp; }(); /** - * (Optional) DB server certificates - * @member {String} db-server-certificates + * AllowUserExtendSession + * @member {Number} allow-user-extend-session */ -GatewayCreateProducerMySQL.prototype['db-server-certificates'] = undefined; +GatewayUpdateProducerRdp.prototype['allow-user-extend-session'] = undefined; /** - * (Optional) Server name for certificate verification - * @member {String} db-server-name + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerMySQL.prototype['db-server-name'] = undefined; +GatewayUpdateProducerRdp.prototype['delete_protection'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' */ -GatewayCreateProducerMySQL.prototype['delete_protection'] = undefined; +GatewayUpdateProducerRdp.prototype['fixed-user-only'] = 'false'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerMySQL.prototype['json'] = false; +GatewayUpdateProducerRdp.prototype['json'] = false; /** - * MySQL DB Name - * @member {String} mysql-dbname + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerMySQL.prototype['mysql-dbname'] = undefined; +GatewayUpdateProducerRdp.prototype['name'] = undefined; /** - * MySQL Host - * @member {String} mysql-host - * @default '127.0.0.1' + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; +GatewayUpdateProducerRdp.prototype['new-name'] = undefined; /** - * MySQL Password - * @member {String} mysql-password + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerMySQL.prototype['mysql-password'] = undefined; +GatewayUpdateProducerRdp.prototype['password-length'] = undefined; /** - * MySQL Port - * @member {String} mysql-port - * @default '3306' + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateProducerMySQL.prototype['mysql-port'] = '3306'; +GatewayUpdateProducerRdp.prototype['producer-encryption-key-name'] = undefined; /** - * MySQL Revocation statements - * @member {String} mysql-revocation-statements + * RDP Admin Name + * @member {String} rdp-admin-name */ -GatewayCreateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; +GatewayUpdateProducerRdp.prototype['rdp-admin-name'] = undefined; /** - * MySQL Creation statements - * @member {String} mysql-screation-statements + * RDP Admin password + * @member {String} rdp-admin-pwd */ -GatewayCreateProducerMySQL.prototype['mysql-screation-statements'] = undefined; +GatewayUpdateProducerRdp.prototype['rdp-admin-pwd'] = undefined; /** - * MySQL Username - * @member {String} mysql-username + * Hostname + * @member {String} rdp-host-name */ -GatewayCreateProducerMySQL.prototype['mysql-username'] = undefined; +GatewayUpdateProducerRdp.prototype['rdp-host-name'] = undefined; /** - * Producer name - * @member {String} name + * Port + * @member {String} rdp-host-port + * @default '22' */ -GatewayCreateProducerMySQL.prototype['name'] = undefined; +GatewayUpdateProducerRdp.prototype['rdp-host-port'] = '22'; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * Groups + * @member {String} rdp-user-groups */ -GatewayCreateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerRdp.prototype['rdp-user-groups'] = undefined; /** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false */ -GatewayCreateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; +GatewayUpdateProducerRdp.prototype['secure-access-allow-external-user'] = false; /** * Enable/Disable secure remote access [true/false] * @member {String} secure-access-enable */ -GatewayCreateProducerMySQL.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerRdp.prototype['secure-access-enable'] = undefined; /** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) * @member {Array.} secure-access-host */ -GatewayCreateProducerMySQL.prototype['secure-access-host'] = undefined; +GatewayUpdateProducerRdp.prototype['secure-access-host'] = undefined; /** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false + * RD Gateway server + * @member {String} secure-access-rd-gateway-server */ -GatewayCreateProducerMySQL.prototype['secure-access-web'] = false; +GatewayUpdateProducerRdp.prototype['secure-access-rd-gateway-server'] = undefined; /** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain */ -GatewayCreateProducerMySQL.prototype['ssl'] = false; +GatewayUpdateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; /** - * SSL connection certificate - * @member {String} ssl-certificate + * Override the RDP Domain username + * @member {String} secure-access-rdp-user */ -GatewayCreateProducerMySQL.prototype['ssl-certificate'] = undefined; +GatewayUpdateProducerRdp.prototype['secure-access-rdp-user'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerMySQL.prototype['tags'] = undefined; +GatewayUpdateProducerRdp.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerMySQL.prototype['target-name'] = undefined; +GatewayUpdateProducerRdp.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerMySQL.prototype['token'] = undefined; +GatewayUpdateProducerRdp.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerMySQL.prototype['uid-token'] = undefined; +GatewayUpdateProducerRdp.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerMySQL.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerMySQL; +GatewayUpdateProducerRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ + +GatewayUpdateProducerRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = GatewayUpdateProducerRdp; exports["default"] = _default; /***/ }), -/***/ 11806: +/***/ 95741: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -60859,9 +137754,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -60872,19 +137767,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerMySQLOutput model module. - * @module model/GatewayCreateProducerMySQLOutput - * @version 3.3.16 + * The GatewayUpdateProducerRdpOutput model module. + * @module model/GatewayUpdateProducerRdpOutput + * @version 3.6.3 */ -var GatewayCreateProducerMySQLOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerRdpOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerMySQLOutput. - * @alias module:model/GatewayCreateProducerMySQLOutput + * Constructs a new GatewayUpdateProducerRdpOutput. + * @alias module:model/GatewayUpdateProducerRdpOutput */ - function GatewayCreateProducerMySQLOutput() { - _classCallCheck(this, GatewayCreateProducerMySQLOutput); + function GatewayUpdateProducerRdpOutput() { + _classCallCheck(this, GatewayUpdateProducerRdpOutput); - GatewayCreateProducerMySQLOutput.initialize(this); + GatewayUpdateProducerRdpOutput.initialize(this); } /** * Initializes the fields of this object. @@ -60893,22 +137788,22 @@ var GatewayCreateProducerMySQLOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerMySQLOutput, null, [{ + _createClass(GatewayUpdateProducerRdpOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMySQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMySQLOutput} The populated GatewayCreateProducerMySQLOutput instance. + * @param {module:model/GatewayUpdateProducerRdpOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRdpOutput} The populated GatewayUpdateProducerRdpOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerMySQLOutput(); + obj = obj || new GatewayUpdateProducerRdpOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -60919,20 +137814,20 @@ var GatewayCreateProducerMySQLOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerMySQLOutput; + return GatewayUpdateProducerRdpOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerMySQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerMySQLOutput; +GatewayUpdateProducerRdpOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRdpOutput; exports["default"] = _default; /***/ }), -/***/ 51088: +/***/ 27753: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -60943,7 +137838,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -60954,21 +137849,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerNativeK8S model module. - * @module model/GatewayCreateProducerNativeK8S - * @version 3.3.16 + * The GatewayUpdateProducerRedis model module. + * @module model/GatewayUpdateProducerRedis + * @version 3.6.3 */ -var GatewayCreateProducerNativeK8S = /*#__PURE__*/function () { +var GatewayUpdateProducerRedis = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerNativeK8S. - * gatewayCreateProducerNativeK8S is a command that creates k8s producer - * @alias module:model/GatewayCreateProducerNativeK8S - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerRedis. + * gatewayUpdateProducerRedis is a command that updates redis producer [Deprecated: Use dynamic-secret-update-redis command] + * @alias module:model/GatewayUpdateProducerRedis + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerNativeK8S(name) { - _classCallCheck(this, GatewayCreateProducerNativeK8S); + function GatewayUpdateProducerRedis(name) { + _classCallCheck(this, GatewayUpdateProducerRedis); - GatewayCreateProducerNativeK8S.initialize(this, name); + GatewayUpdateProducerRedis.initialize(this, name); } /** * Initializes the fields of this object. @@ -60977,111 +137872,71 @@ var GatewayCreateProducerNativeK8S = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerNativeK8S, null, [{ + _createClass(GatewayUpdateProducerRedis, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRedis from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerNativeK8S} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerNativeK8S} The populated GatewayCreateProducerNativeK8S instance. + * @param {module:model/GatewayUpdateProducerRedis} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedis} The populated GatewayUpdateProducerRedis instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerNativeK8S(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-allowed-namespaces')) { - obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); - } - - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('k8s-predefined-role-name')) { - obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); - } + obj = obj || new GatewayUpdateProducerRedis(); - if (data.hasOwnProperty('k8s-predefined-role-type')) { - obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); } - if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { - obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('k8s-service-account')) { - obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('k8s-service-account-type')) { - obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('secure-access-dashboard-url')) { - obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); } if (data.hasOwnProperty('tags')) { @@ -61100,201 +137955,141 @@ var GatewayCreateProducerNativeK8S = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); - } - if (data.hasOwnProperty('user-ttl')) { obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } } return obj; } }]); - return GatewayCreateProducerNativeK8S; + return GatewayUpdateProducerRedis; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerNativeK8S.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerNativeK8S.prototype['json'] = false; -/** - * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-allowed-namespaces - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; -/** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules */ -GatewayCreateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; -/** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint - */ -GatewayCreateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; +GatewayUpdateProducerRedis.prototype['acl-rules'] = undefined; /** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; +GatewayUpdateProducerRedis.prototype['delete_protection'] = undefined; /** - * K8S Namespace where the ServiceAccount exists. - * @member {String} k8s-namespace + * Redis Host + * @member {String} host + * @default '127.0.0.1' */ -GatewayCreateProducerNativeK8S.prototype['k8s-namespace'] = undefined; +GatewayUpdateProducerRedis.prototype['host'] = '127.0.0.1'; /** - * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; +GatewayUpdateProducerRedis.prototype['json'] = false; /** - * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-type + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; +GatewayUpdateProducerRedis.prototype['name'] = undefined; /** - * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-rolebinding-yaml-def + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; +GatewayUpdateProducerRedis.prototype['new-name'] = undefined; /** - * K8S ServiceAccount to extract token from. - * @member {String} k8s-service-account + * Redis Password + * @member {String} password */ -GatewayCreateProducerNativeK8S.prototype['k8s-service-account'] = undefined; +GatewayUpdateProducerRedis.prototype['password'] = undefined; /** - * K8S ServiceAccount type [fixed, dynamic]. - * @member {String} k8s-service-account-type + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; +GatewayUpdateProducerRedis.prototype['password-length'] = undefined; /** - * Producer name - * @member {String} name + * Redis Port + * @member {String} port + * @default '6379' */ -GatewayCreateProducerNativeK8S.prototype['name'] = undefined; +GatewayUpdateProducerRedis.prototype['port'] = '6379'; /** * Dynamic producer encryption key * @member {String} producer-encryption-key-name */ -GatewayCreateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * The K8s dashboard url - * @member {String} secure-access-dashboard-url - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-web'] = false; +GatewayUpdateProducerRedis.prototype['producer-encryption-key-name'] = undefined; /** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl * @default false */ -GatewayCreateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; +GatewayUpdateProducerRedis.prototype['ssl'] = false; /** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate */ -GatewayCreateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; +GatewayUpdateProducerRedis.prototype['ssl-certificate'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerNativeK8S.prototype['tags'] = undefined; +GatewayUpdateProducerRedis.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerNativeK8S.prototype['target-name'] = undefined; +GatewayUpdateProducerRedis.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerNativeK8S.prototype['token'] = undefined; +GatewayUpdateProducerRedis.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerNativeK8S.prototype['uid-token'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ - -GatewayCreateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; +GatewayUpdateProducerRedis.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerNativeK8S.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerNativeK8S; +GatewayUpdateProducerRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +GatewayUpdateProducerRedis.prototype['username'] = undefined; +var _default = GatewayUpdateProducerRedis; exports["default"] = _default; /***/ }), -/***/ 34965: +/***/ 46028: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -61305,9 +138100,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -61318,19 +138113,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerNativeK8SOutput model module. - * @module model/GatewayCreateProducerNativeK8SOutput - * @version 3.3.16 + * The GatewayUpdateProducerRedisOutput model module. + * @module model/GatewayUpdateProducerRedisOutput + * @version 3.6.3 */ -var GatewayCreateProducerNativeK8SOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerRedisOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerNativeK8SOutput. - * @alias module:model/GatewayCreateProducerNativeK8SOutput + * Constructs a new GatewayUpdateProducerRedisOutput. + * @alias module:model/GatewayUpdateProducerRedisOutput */ - function GatewayCreateProducerNativeK8SOutput() { - _classCallCheck(this, GatewayCreateProducerNativeK8SOutput); + function GatewayUpdateProducerRedisOutput() { + _classCallCheck(this, GatewayUpdateProducerRedisOutput); - GatewayCreateProducerNativeK8SOutput.initialize(this); + GatewayUpdateProducerRedisOutput.initialize(this); } /** * Initializes the fields of this object. @@ -61339,22 +138134,22 @@ var GatewayCreateProducerNativeK8SOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerNativeK8SOutput, null, [{ + _createClass(GatewayUpdateProducerRedisOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerNativeK8SOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerNativeK8SOutput} The populated GatewayCreateProducerNativeK8SOutput instance. + * @param {module:model/GatewayUpdateProducerRedisOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedisOutput} The populated GatewayUpdateProducerRedisOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerNativeK8SOutput(); + obj = obj || new GatewayUpdateProducerRedisOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -61365,20 +138160,20 @@ var GatewayCreateProducerNativeK8SOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerNativeK8SOutput; + return GatewayUpdateProducerRedisOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerNativeK8SOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerNativeK8SOutput; +GatewayUpdateProducerRedisOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRedisOutput; exports["default"] = _default; /***/ }), -/***/ 64681: +/***/ 88541: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -61389,7 +138184,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -61400,21 +138195,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerOracleDb model module. - * @module model/GatewayCreateProducerOracleDb - * @version 3.3.16 + * The GatewayUpdateProducerRedshift model module. + * @module model/GatewayUpdateProducerRedshift + * @version 3.6.3 */ -var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { +var GatewayUpdateProducerRedshift = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerOracleDb. - * gatewayCreateProducerOracleDb is a command that creates oracle db producer - * @alias module:model/GatewayCreateProducerOracleDb - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerRedshift. + * gatewayUpdateProducerRedshift is a command that updates redshift producer [Deprecated: Use dynamic-secret-update-redshift command] + * @alias module:model/GatewayUpdateProducerRedshift + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerOracleDb(name) { - _classCallCheck(this, GatewayCreateProducerOracleDb); + function GatewayUpdateProducerRedshift(name) { + _classCallCheck(this, GatewayUpdateProducerRedshift); - GatewayCreateProducerOracleDb.initialize(this, name); + GatewayUpdateProducerRedshift.initialize(this, name); } /** * Initializes the fields of this object. @@ -61423,31 +138218,27 @@ var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerOracleDb, null, [{ + _createClass(GatewayUpdateProducerRedshift, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRedshift from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerOracleDb} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerOracleDb} The populated GatewayCreateProducerOracleDb instance. + * @param {module:model/GatewayUpdateProducerRedshift} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedshift} The populated GatewayUpdateProducerRedshift instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerOracleDb(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } + obj = obj || new GatewayUpdateProducerRedshift(); - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); } if (data.hasOwnProperty('delete_protection')) { @@ -61462,36 +138253,36 @@ var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('oracle-host')) { - obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('oracle-password')) { - obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('oracle-port')) { - obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); } - if (data.hasOwnProperty('oracle-screation-statements')) { - obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); } - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); } - if (data.hasOwnProperty('oracle-username')) { - obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); } - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); } if (data.hasOwnProperty('secure-access-enable')) { @@ -61502,8 +138293,8 @@ var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); } if (data.hasOwnProperty('tags')) { @@ -61531,147 +138322,140 @@ var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerOracleDb; + return GatewayUpdateProducerRedshift; }(); /** - * (Optional) DB server certificates - * @member {String} db-server-certificates + * Redshift Creation statements + * @member {String} creation-statements */ -GatewayCreateProducerOracleDb.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -GatewayCreateProducerOracleDb.prototype['db-server-name'] = undefined; +GatewayUpdateProducerRedshift.prototype['creation-statements'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ -GatewayCreateProducerOracleDb.prototype['delete_protection'] = undefined; +GatewayUpdateProducerRedshift.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerOracleDb.prototype['json'] = false; +GatewayUpdateProducerRedshift.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerOracleDb.prototype['name'] = undefined; +GatewayUpdateProducerRedshift.prototype['name'] = undefined; /** - * Oracle Host - * @member {String} oracle-host - * @default '127.0.0.1' + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; +GatewayUpdateProducerRedshift.prototype['new-name'] = undefined; /** - * Oracle Password - * @member {String} oracle-password + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerOracleDb.prototype['oracle-password'] = undefined; +GatewayUpdateProducerRedshift.prototype['password-length'] = undefined; /** - * Oracle Port - * @member {String} oracle-port - * @default '1521' + * Dynamic producer encryption key + * @member {String} producer-encryption-key */ -GatewayCreateProducerOracleDb.prototype['oracle-port'] = '1521'; +GatewayUpdateProducerRedshift.prototype['producer-encryption-key'] = undefined; /** - * Oracle Creation statements - * @member {String} oracle-screation-statements + * Redshift DB Name + * @member {String} redshift-db-name */ -GatewayCreateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; +GatewayUpdateProducerRedshift.prototype['redshift-db-name'] = undefined; /** - * Oracle DB Name - * @member {String} oracle-service-name + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' */ -GatewayCreateProducerOracleDb.prototype['oracle-service-name'] = undefined; +GatewayUpdateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; /** - * Oracle Username - * @member {String} oracle-username + * Redshift Password + * @member {String} redshift-password */ -GatewayCreateProducerOracleDb.prototype['oracle-username'] = undefined; +GatewayUpdateProducerRedshift.prototype['redshift-password'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * Redshift Port + * @member {String} redshift-port + * @default '5439' */ -GatewayCreateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerRedshift.prototype['redshift-port'] = '5439'; /** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer + * Redshift Username + * @member {String} redshift-username */ -GatewayCreateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +GatewayUpdateProducerRedshift.prototype['redshift-username'] = undefined; /** * Enable/Disable secure remote access [true/false] * @member {String} secure-access-enable - * @default 'false' */ -GatewayCreateProducerOracleDb.prototype['secure-access-enable'] = 'false'; +GatewayUpdateProducerRedshift.prototype['secure-access-enable'] = undefined; /** * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) * @member {Array.} secure-access-host */ -GatewayCreateProducerOracleDb.prototype['secure-access-host'] = undefined; +GatewayUpdateProducerRedshift.prototype['secure-access-host'] = undefined; /** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl * @default false */ -GatewayCreateProducerOracleDb.prototype['secure-access-web'] = false; +GatewayUpdateProducerRedshift.prototype['ssl'] = false; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerOracleDb.prototype['tags'] = undefined; +GatewayUpdateProducerRedshift.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerOracleDb.prototype['target-name'] = undefined; +GatewayUpdateProducerRedshift.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerOracleDb.prototype['token'] = undefined; +GatewayUpdateProducerRedshift.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerOracleDb.prototype['uid-token'] = undefined; +GatewayUpdateProducerRedshift.prototype['uid-token'] = undefined; /** * User TTL * @member {String} user-ttl * @default '60m' */ -GatewayCreateProducerOracleDb.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerOracleDb; +GatewayUpdateProducerRedshift.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerRedshift; exports["default"] = _default; /***/ }), -/***/ 20411: +/***/ 4152: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -61682,9 +138466,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -61695,19 +138479,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerOracleDbOutput model module. - * @module model/GatewayCreateProducerOracleDbOutput - * @version 3.3.16 + * The GatewayUpdateProducerRedshiftOutput model module. + * @module model/GatewayUpdateProducerRedshiftOutput + * @version 3.6.3 */ -var GatewayCreateProducerOracleDbOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerRedshiftOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerOracleDbOutput. - * @alias module:model/GatewayCreateProducerOracleDbOutput + * Constructs a new GatewayUpdateProducerRedshiftOutput. + * @alias module:model/GatewayUpdateProducerRedshiftOutput */ - function GatewayCreateProducerOracleDbOutput() { - _classCallCheck(this, GatewayCreateProducerOracleDbOutput); + function GatewayUpdateProducerRedshiftOutput() { + _classCallCheck(this, GatewayUpdateProducerRedshiftOutput); - GatewayCreateProducerOracleDbOutput.initialize(this); + GatewayUpdateProducerRedshiftOutput.initialize(this); } /** * Initializes the fields of this object. @@ -61716,22 +138500,22 @@ var GatewayCreateProducerOracleDbOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerOracleDbOutput, null, [{ + _createClass(GatewayUpdateProducerRedshiftOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerOracleDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerOracleDbOutput} The populated GatewayCreateProducerOracleDbOutput instance. + * @param {module:model/GatewayUpdateProducerRedshiftOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedshiftOutput} The populated GatewayUpdateProducerRedshiftOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerOracleDbOutput(); + obj = obj || new GatewayUpdateProducerRedshiftOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -61742,20 +138526,20 @@ var GatewayCreateProducerOracleDbOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerOracleDbOutput; + return GatewayUpdateProducerRedshiftOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerOracleDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerOracleDbOutput; +GatewayUpdateProducerRedshiftOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRedshiftOutput; exports["default"] = _default; /***/ }), -/***/ 26206: +/***/ 82506: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -61766,7 +138550,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -61777,21 +138561,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerPing model module. - * @module model/GatewayCreateProducerPing - * @version 3.3.16 + * The GatewayUpdateProducerSnowflake model module. + * @module model/GatewayUpdateProducerSnowflake + * @version 3.6.3 */ -var GatewayCreateProducerPing = /*#__PURE__*/function () { +var GatewayUpdateProducerSnowflake = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerPing. - * gatewayCreateProducerPing is a command that creates ping producer - * @alias module:model/GatewayCreateProducerPing - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerSnowflake. + * GatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake producer [Deprecated: Use dynamic-secret-update-snowflake command] + * @alias module:model/GatewayUpdateProducerSnowflake + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerPing(name) { - _classCallCheck(this, GatewayCreateProducerPing); + function GatewayUpdateProducerSnowflake(name) { + _classCallCheck(this, GatewayUpdateProducerSnowflake); - GatewayCreateProducerPing.initialize(this, name); + GatewayUpdateProducerSnowflake.initialize(this, name); } /** * Initializes the fields of this object. @@ -61800,103 +138584,71 @@ var GatewayCreateProducerPing = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerPing, null, [{ + _createClass(GatewayUpdateProducerSnowflake, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerPing from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPing} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPing} The populated GatewayCreateProducerPing instance. + * @param {module:model/GatewayUpdateProducerSnowflake} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerSnowflake} The populated GatewayUpdateProducerSnowflake instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerPing(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('ping-administrative-port')) { - obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); - } - - if (data.hasOwnProperty('ping-atm-id')) { - obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); - } - - if (data.hasOwnProperty('ping-authorization-port')) { - obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); - } - - if (data.hasOwnProperty('ping-cert-subject-dn')) { - obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); - } - - if (data.hasOwnProperty('ping-client-authentication-type')) { - obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); - } + obj = obj || new GatewayUpdateProducerSnowflake(); - if (data.hasOwnProperty('ping-enforce-replay-prevention')) { - obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); } - if (data.hasOwnProperty('ping-grant-types')) { - obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); } - if (data.hasOwnProperty('ping-issuer-dn')) { - obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); } - if (data.hasOwnProperty('ping-jwks')) { - obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); } - if (data.hasOwnProperty('ping-jwks-url')) { - obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('ping-password')) { - obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('ping-privileged-user')) { - obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('ping-redirect-uris')) { - obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('ping-restricted-scopes')) { - obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('ping-signing-algo')) { - obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); } - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); } if (data.hasOwnProperty('tags')) { @@ -61918,177 +138670,135 @@ var GatewayCreateProducerPing = /*#__PURE__*/function () { if (data.hasOwnProperty('user-ttl')) { obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); + } } return obj; } }]); - return GatewayCreateProducerPing; + return GatewayUpdateProducerSnowflake; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerPing.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerPing.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerPing.prototype['name'] = undefined; -/** - * Ping Federate administrative port - * @member {String} ping-administrative-port - * @default '9999' - */ - -GatewayCreateProducerPing.prototype['ping-administrative-port'] = '9999'; -/** - * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. - * @member {String} ping-atm-id - */ - -GatewayCreateProducerPing.prototype['ping-atm-id'] = undefined; -/** - * Ping Federate authorization port - * @member {String} ping-authorization-port - * @default '9031' - */ - -GatewayCreateProducerPing.prototype['ping-authorization-port'] = '9031'; -/** - * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-cert-subject-dn - */ - -GatewayCreateProducerPing.prototype['ping-cert-subject-dn'] = undefined; -/** - * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] - * @member {String} ping-client-authentication-type - * @default 'CLIENT_SECRET' + * Account name + * @member {String} account */ -GatewayCreateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; -/** - * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] - * @member {String} ping-enforce-replay-prevention - * @default 'false' - */ -GatewayCreateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; +GatewayUpdateProducerSnowflake.prototype['account'] = undefined; /** - * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. - * @member {Array.} ping-grant-types + * Database Password + * @member {String} account-password */ -GatewayCreateProducerPing.prototype['ping-grant-types'] = undefined; +GatewayUpdateProducerSnowflake.prototype['account-password'] = undefined; /** - * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-issuer-dn + * Database Username + * @member {String} account-username */ -GatewayCreateProducerPing.prototype['ping-issuer-dn'] = undefined; +GatewayUpdateProducerSnowflake.prototype['account-username'] = undefined; /** - * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks + * Database name + * @member {String} db-name */ -GatewayCreateProducerPing.prototype['ping-jwks'] = undefined; +GatewayUpdateProducerSnowflake.prototype['db-name'] = undefined; /** - * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks-url + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -GatewayCreateProducerPing.prototype['ping-jwks-url'] = undefined; +GatewayUpdateProducerSnowflake.prototype['delete_protection'] = undefined; /** - * Ping Federate privileged user password - * @member {String} ping-password + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerPing.prototype['ping-password'] = undefined; +GatewayUpdateProducerSnowflake.prototype['json'] = false; /** - * Ping Federate privileged user - * @member {String} ping-privileged-user + * Dynamic secret name + * @member {String} name */ -GatewayCreateProducerPing.prototype['ping-privileged-user'] = undefined; +GatewayUpdateProducerSnowflake.prototype['name'] = undefined; /** - * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. - * @member {Array.} ping-redirect-uris + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerPing.prototype['ping-redirect-uris'] = undefined; +GatewayUpdateProducerSnowflake.prototype['new-name'] = undefined; /** - * Limit the OAuth client to specific scopes list - * @member {Array.} ping-restricted-scopes + * The length of the password to be generated + * @member {String} password-length */ -GatewayCreateProducerPing.prototype['ping-restricted-scopes'] = undefined; +GatewayUpdateProducerSnowflake.prototype['password-length'] = undefined; /** - * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-signing-algo + * RSA Private key (base64 encoded) + * @member {String} private-key */ -GatewayCreateProducerPing.prototype['ping-signing-algo'] = undefined; +GatewayUpdateProducerSnowflake.prototype['private-key'] = undefined; /** - * Ping URL - * @member {String} ping-url + * The Private key passphrase + * @member {String} private-key-passphrase */ -GatewayCreateProducerPing.prototype['ping-url'] = undefined; +GatewayUpdateProducerSnowflake.prototype['private-key-passphrase'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * User role + * @member {String} role */ -GatewayCreateProducerPing.prototype['producer-encryption-key-name'] = undefined; +GatewayUpdateProducerSnowflake.prototype['role'] = undefined; /** * Add tags attached to this object * @member {Array.} tags */ -GatewayCreateProducerPing.prototype['tags'] = undefined; +GatewayUpdateProducerSnowflake.prototype['tags'] = undefined; /** * Target name * @member {String} target-name */ -GatewayCreateProducerPing.prototype['target-name'] = undefined; +GatewayUpdateProducerSnowflake.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerPing.prototype['token'] = undefined; +GatewayUpdateProducerSnowflake.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerPing.prototype['uid-token'] = undefined; +GatewayUpdateProducerSnowflake.prototype['uid-token'] = undefined; /** - * The time from dynamic secret creation to expiration. + * User TTL * @member {String} user-ttl - * @default '60m' + * @default '24h' */ -GatewayCreateProducerPing.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerPing; +GatewayUpdateProducerSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ + +GatewayUpdateProducerSnowflake.prototype['warehouse'] = undefined; +var _default = GatewayUpdateProducerSnowflake; exports["default"] = _default; /***/ }), -/***/ 8091: +/***/ 72895: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -62099,9 +138809,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -62112,19 +138822,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerPingOutput model module. - * @module model/GatewayCreateProducerPingOutput - * @version 3.3.16 + * The GatewayUpdateProducerSnowflakeOutput model module. + * @module model/GatewayUpdateProducerSnowflakeOutput + * @version 3.6.3 */ -var GatewayCreateProducerPingOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerSnowflakeOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerPingOutput. - * @alias module:model/GatewayCreateProducerPingOutput + * Constructs a new GatewayUpdateProducerSnowflakeOutput. + * @alias module:model/GatewayUpdateProducerSnowflakeOutput */ - function GatewayCreateProducerPingOutput() { - _classCallCheck(this, GatewayCreateProducerPingOutput); + function GatewayUpdateProducerSnowflakeOutput() { + _classCallCheck(this, GatewayUpdateProducerSnowflakeOutput); - GatewayCreateProducerPingOutput.initialize(this); + GatewayUpdateProducerSnowflakeOutput.initialize(this); } /** * Initializes the fields of this object. @@ -62133,22 +138843,22 @@ var GatewayCreateProducerPingOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerPingOutput, null, [{ + _createClass(GatewayUpdateProducerSnowflakeOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPingOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPingOutput} The populated GatewayCreateProducerPingOutput instance. + * @param {module:model/GatewayUpdateProducerSnowflakeOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerSnowflakeOutput} The populated GatewayUpdateProducerSnowflakeOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerPingOutput(); + obj = obj || new GatewayUpdateProducerSnowflakeOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -62159,20 +138869,20 @@ var GatewayCreateProducerPingOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerPingOutput; + return GatewayUpdateProducerSnowflakeOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerPingOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerPingOutput; +GatewayUpdateProducerSnowflakeOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerSnowflakeOutput; exports["default"] = _default; /***/ }), -/***/ 96462: +/***/ 117: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -62183,7 +138893,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -62194,21 +138904,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerPostgreSQL model module. - * @module model/GatewayCreateProducerPostgreSQL - * @version 3.3.16 + * The GatewayUpdateProducerVenafi model module. + * @module model/GatewayUpdateProducerVenafi + * @version 3.6.3 */ -var GatewayCreateProducerPostgreSQL = /*#__PURE__*/function () { +var GatewayUpdateProducerVenafi = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerPostgreSQL. - * gatewayCreateProducerPostgreSQL is a command that creates postgresql producer - * @alias module:model/GatewayCreateProducerPostgreSQL - * @param name {String} Producer name + * Constructs a new GatewayUpdateProducerVenafi. + * gatewayUpdateProducerVenafi is a command that updates a Venafi dynamic secret producer to dynamically update certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi [Deprecated: Use dynamic-secret-update-venafi command] + * @alias module:model/GatewayUpdateProducerVenafi + * @param name {String} Dynamic secret name */ - function GatewayCreateProducerPostgreSQL(name) { - _classCallCheck(this, GatewayCreateProducerPostgreSQL); + function GatewayUpdateProducerVenafi(name) { + _classCallCheck(this, GatewayUpdateProducerVenafi); - GatewayCreateProducerPostgreSQL.initialize(this, name); + GatewayUpdateProducerVenafi.initialize(this, name); } /** * Initializes the fields of this object. @@ -62217,33 +138927,49 @@ var GatewayCreateProducerPostgreSQL = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerPostgreSQL, null, [{ + _createClass(GatewayUpdateProducerVenafi, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayCreateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerVenafi from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPostgreSQL} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPostgreSQL} The populated GatewayCreateProducerPostgreSQL instance. + * @param {module:model/GatewayUpdateProducerVenafi} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerVenafi} The populated GatewayUpdateProducerVenafi instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerPostgreSQL(); + obj = obj || new GatewayUpdateProducerVenafi(); - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + } + + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); } if (data.hasOwnProperty('delete_protection')) { obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } @@ -62252,76 +138978,76 @@ var GatewayCreateProducerPostgreSQL = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('postgresql-db-name')) { - obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('postgresql-host')) { - obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); } - if (data.hasOwnProperty('postgresql-password')) { - obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); } - if (data.hasOwnProperty('postgresql-port')) { - obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); } - if (data.hasOwnProperty('postgresql-username')) { - obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); } - if (data.hasOwnProperty('revocation-statement')) { - obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); } - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); } - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); } } @@ -62329,153 +139055,176 @@ var GatewayCreateProducerPostgreSQL = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerPostgreSQL; + return GatewayUpdateProducerVenafi; }(); /** - * PostgreSQL Creation statements - * @member {String} creation-statements + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 */ -GatewayCreateProducerPostgreSQL.prototype['creation-statements'] = undefined; +GatewayUpdateProducerVenafi.prototype['admin-rotation-interval-days'] = 0; +/** + * Allow subdomains + * @member {Boolean} allow-subdomains + */ + +GatewayUpdateProducerVenafi.prototype['allow-subdomains'] = undefined; +/** + * Allowed domains + * @member {Array.} allowed-domains + */ + +GatewayUpdateProducerVenafi.prototype['allowed-domains'] = undefined; +/** + * Auto generated folder + * @member {String} auto-generated-folder + */ + +GatewayUpdateProducerVenafi.prototype['auto-generated-folder'] = undefined; /** * Protection from accidental deletion of this item [true/false] * @member {String} delete_protection */ -GatewayCreateProducerPostgreSQL.prototype['delete_protection'] = undefined; +GatewayUpdateProducerVenafi.prototype['delete_protection'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +GatewayUpdateProducerVenafi.prototype['enable-admin-rotation'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerPostgreSQL.prototype['json'] = false; +GatewayUpdateProducerVenafi.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerPostgreSQL.prototype['name'] = undefined; +GatewayUpdateProducerVenafi.prototype['name'] = undefined; /** - * PostgreSQL DB Name - * @member {String} postgresql-db-name + * Dynamic secret name + * @member {String} new-name */ -GatewayCreateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; +GatewayUpdateProducerVenafi.prototype['new-name'] = undefined; /** - * PostgreSQL Host - * @member {String} postgresql-host - * @default '127.0.0.1' + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name */ -GatewayCreateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; +GatewayUpdateProducerVenafi.prototype['producer-encryption-key-name'] = undefined; /** - * PostgreSQL Password - * @member {String} postgresql-password + * Root first in chain + * @member {Boolean} root-first-in-chain */ -GatewayCreateProducerPostgreSQL.prototype['postgresql-password'] = undefined; +GatewayUpdateProducerVenafi.prototype['root-first-in-chain'] = undefined; /** - * PostgreSQL Port - * @member {String} postgresql-port - * @default '5432' + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki */ -GatewayCreateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; +GatewayUpdateProducerVenafi.prototype['sign-using-akeyless-pki'] = undefined; /** - * PostgreSQL Username - * @member {String} postgresql-username + * Signer key name + * @member {String} signer-key-name */ -GatewayCreateProducerPostgreSQL.prototype['postgresql-username'] = undefined; +GatewayUpdateProducerVenafi.prototype['signer-key-name'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key + * Store private key + * @member {Boolean} store-private-key */ -GatewayCreateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; +GatewayUpdateProducerVenafi.prototype['store-private-key'] = undefined; /** - * PostgreSQL Revocation statements - * @member {String} revocation-statement + * Add tags attached to this object + * @member {Array.} tags */ -GatewayCreateProducerPostgreSQL.prototype['revocation-statement'] = undefined; +GatewayUpdateProducerVenafi.prototype['tags'] = undefined; /** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer + * Target name + * @member {String} target-name */ -GatewayCreateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; +GatewayUpdateProducerVenafi.prototype['target-name'] = undefined; /** - * The DB schema - * @member {String} secure-access-db-schema + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GatewayCreateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; +GatewayUpdateProducerVenafi.prototype['token'] = undefined; /** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayCreateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; +GatewayUpdateProducerVenafi.prototype['uid-token'] = undefined; /** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' */ -GatewayCreateProducerPostgreSQL.prototype['secure-access-host'] = undefined; +GatewayUpdateProducerVenafi.prototype['user-ttl'] = '2160h'; /** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token */ -GatewayCreateProducerPostgreSQL.prototype['secure-access-web'] = false; +GatewayUpdateProducerVenafi.prototype['venafi-access-token'] = undefined; /** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false + * Venafi API key + * @member {String} venafi-api-key */ -GatewayCreateProducerPostgreSQL.prototype['ssl'] = false; +GatewayUpdateProducerVenafi.prototype['venafi-api-key'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * Venafi Baseurl + * @member {String} venafi-baseurl */ -GatewayCreateProducerPostgreSQL.prototype['tags'] = undefined; +GatewayUpdateProducerVenafi.prototype['venafi-baseurl'] = undefined; /** - * Target name - * @member {String} target-name + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' */ -GatewayCreateProducerPostgreSQL.prototype['target-name'] = undefined; +GatewayUpdateProducerVenafi.prototype['venafi-client-id'] = 'akeyless'; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token */ -GatewayCreateProducerPostgreSQL.prototype['token'] = undefined; +GatewayUpdateProducerVenafi.prototype['venafi-refresh-token'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Venafi using TPP + * @member {Boolean} venafi-use-tpp */ -GatewayCreateProducerPostgreSQL.prototype['uid-token'] = undefined; +GatewayUpdateProducerVenafi.prototype['venafi-use-tpp'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * Venafi Zone + * @member {String} venafi-zone */ -GatewayCreateProducerPostgreSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerPostgreSQL; +GatewayUpdateProducerVenafi.prototype['venafi-zone'] = undefined; +var _default = GatewayUpdateProducerVenafi; exports["default"] = _default; /***/ }), -/***/ 55504: +/***/ 14816: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -62486,9 +139235,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(75578)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -62499,19 +139248,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerPostgreSQLOutput model module. - * @module model/GatewayCreateProducerPostgreSQLOutput - * @version 3.3.16 + * The GatewayUpdateProducerVenafiOutput model module. + * @module model/GatewayUpdateProducerVenafiOutput + * @version 3.6.3 */ -var GatewayCreateProducerPostgreSQLOutput = /*#__PURE__*/function () { +var GatewayUpdateProducerVenafiOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerPostgreSQLOutput. - * @alias module:model/GatewayCreateProducerPostgreSQLOutput + * Constructs a new GatewayUpdateProducerVenafiOutput. + * @alias module:model/GatewayUpdateProducerVenafiOutput */ - function GatewayCreateProducerPostgreSQLOutput() { - _classCallCheck(this, GatewayCreateProducerPostgreSQLOutput); + function GatewayUpdateProducerVenafiOutput() { + _classCallCheck(this, GatewayUpdateProducerVenafiOutput); - GatewayCreateProducerPostgreSQLOutput.initialize(this); + GatewayUpdateProducerVenafiOutput.initialize(this); } /** * Initializes the fields of this object. @@ -62520,22 +139269,22 @@ var GatewayCreateProducerPostgreSQLOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerPostgreSQLOutput, null, [{ + _createClass(GatewayUpdateProducerVenafiOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateProducerVenafiOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPostgreSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPostgreSQLOutput} The populated GatewayCreateProducerPostgreSQLOutput instance. + * @param {module:model/GatewayUpdateProducerVenafiOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerVenafiOutput} The populated GatewayUpdateProducerVenafiOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerPostgreSQLOutput(); + obj = obj || new GatewayUpdateProducerVenafiOutput(); if (data.hasOwnProperty('producer_details')) { obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); @@ -62546,20 +139295,20 @@ var GatewayCreateProducerPostgreSQLOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerPostgreSQLOutput; + return GatewayUpdateProducerVenafiOutput; }(); /** * @member {module:model/DSProducerDetails} producer_details */ -GatewayCreateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerPostgreSQLOutput; +GatewayUpdateProducerVenafiOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerVenafiOutput; exports["default"] = _default; /***/ }), -/***/ 99404: +/***/ 71695: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -62570,7 +139319,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -62581,21 +139330,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRabbitMQ model module. - * @module model/GatewayCreateProducerRabbitMQ - * @version 3.3.16 + * The GatewayUpdateTlsCert model module. + * @module model/GatewayUpdateTlsCert + * @version 3.6.3 */ -var GatewayCreateProducerRabbitMQ = /*#__PURE__*/function () { +var GatewayUpdateTlsCert = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRabbitMQ. - * gatewayCreateProducerRabbitMQ is a command that creates rabbitmq producer - * @alias module:model/GatewayCreateProducerRabbitMQ - * @param name {String} Producer name + * Constructs a new GatewayUpdateTlsCert. + * gatewayUpdateTlsCert is a command that updates Gateway TLS certificate + * @alias module:model/GatewayUpdateTlsCert */ - function GatewayCreateProducerRabbitMQ(name) { - _classCallCheck(this, GatewayCreateProducerRabbitMQ); + function GatewayUpdateTlsCert() { + _classCallCheck(this, GatewayUpdateTlsCert); - GatewayCreateProducerRabbitMQ.initialize(this, name); + GatewayUpdateTlsCert.initialize(this); } /** * Initializes the fields of this object. @@ -62604,99 +139352,33 @@ var GatewayCreateProducerRabbitMQ = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRabbitMQ, null, [{ + _createClass(GatewayUpdateTlsCert, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateTlsCert from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRabbitMQ} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRabbitMQ} The populated GatewayCreateProducerRabbitMQ instance. + * @param {module:model/GatewayUpdateTlsCert} obj Optional instance to populate. + * @return {module:model/GatewayUpdateTlsCert} The populated GatewayUpdateTlsCert instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRabbitMQ(); + obj = obj || new GatewayUpdateTlsCert(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('cert-data')) { + obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-pwd')) { - obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-user')) { - obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { - obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-read-permission')) { - obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-tags')) { - obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-vhost')) { - obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-write-permission')) { - obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); } if (data.hasOwnProperty('token')) { @@ -62706,162 +139388,52 @@ var GatewayCreateProducerRabbitMQ = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayCreateProducerRabbitMQ; + return GatewayUpdateTlsCert; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * TLS Certificate (base64 encoded) + * @member {String} cert-data */ -GatewayCreateProducerRabbitMQ.prototype['delete_protection'] = undefined; +GatewayUpdateTlsCert.prototype['cert-data'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerRabbitMQ.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerRabbitMQ.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; -/** - * RabbitMQ Admin password - * @member {String} rabbitmq-admin-pwd - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; -/** - * RabbitMQ Admin User - * @member {String} rabbitmq-admin-user - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; -/** - * Server URI - * @member {String} rabbitmq-server-uri - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; -/** - * User configuration permission - * @member {String} rabbitmq-user-conf-permission - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; -/** - * User read permission - * @member {String} rabbitmq-user-read-permission - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; -/** - * User Tags - * @member {String} rabbitmq-user-tags - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; -/** - * User Virtual Host - * @member {String} rabbitmq-user-vhost - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; -/** - * User write permission - * @member {String} rabbitmq-user-write-permission - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; -/** - * Destination URL to inject secrets - * @member {String} secure-access-url - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-url'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerRabbitMQ.prototype['tags'] = undefined; +GatewayUpdateTlsCert.prototype['json'] = false; /** - * Target name - * @member {String} target-name + * TLS Private Key (base64 encoded) + * @member {String} key-data */ -GatewayCreateProducerRabbitMQ.prototype['target-name'] = undefined; +GatewayUpdateTlsCert.prototype['key-data'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerRabbitMQ.prototype['token'] = undefined; +GatewayUpdateTlsCert.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerRabbitMQ.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerRabbitMQ.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerRabbitMQ; +GatewayUpdateTlsCert.prototype['uid-token'] = undefined; +var _default = GatewayUpdateTlsCert; exports["default"] = _default; /***/ }), -/***/ 47454: +/***/ 99862: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -62872,9 +139444,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -62885,19 +139455,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRabbitMQOutput model module. - * @module model/GatewayCreateProducerRabbitMQOutput - * @version 3.3.16 + * The GatewayUpdateTlsCertOutput model module. + * @module model/GatewayUpdateTlsCertOutput + * @version 3.6.3 */ -var GatewayCreateProducerRabbitMQOutput = /*#__PURE__*/function () { +var GatewayUpdateTlsCertOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRabbitMQOutput. - * @alias module:model/GatewayCreateProducerRabbitMQOutput + * Constructs a new GatewayUpdateTlsCertOutput. + * @alias module:model/GatewayUpdateTlsCertOutput */ - function GatewayCreateProducerRabbitMQOutput() { - _classCallCheck(this, GatewayCreateProducerRabbitMQOutput); + function GatewayUpdateTlsCertOutput() { + _classCallCheck(this, GatewayUpdateTlsCertOutput); - GatewayCreateProducerRabbitMQOutput.initialize(this); + GatewayUpdateTlsCertOutput.initialize(this); } /** * Initializes the fields of this object. @@ -62906,25 +139476,25 @@ var GatewayCreateProducerRabbitMQOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRabbitMQOutput, null, [{ + _createClass(GatewayUpdateTlsCertOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateTlsCertOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRabbitMQOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRabbitMQOutput} The populated GatewayCreateProducerRabbitMQOutput instance. + * @param {module:model/GatewayUpdateTlsCertOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateTlsCertOutput} The populated GatewayUpdateTlsCertOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRabbitMQOutput(); + obj = obj || new GatewayUpdateTlsCertOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } } @@ -62932,20 +139502,20 @@ var GatewayCreateProducerRabbitMQOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerRabbitMQOutput; + return GatewayUpdateTlsCertOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Boolean} updated */ -GatewayCreateProducerRabbitMQOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRabbitMQOutput; +GatewayUpdateTlsCertOutput.prototype['updated'] = undefined; +var _default = GatewayUpdateTlsCertOutput; exports["default"] = _default; /***/ }), -/***/ 62294: +/***/ 71429: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -62956,7 +139526,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -62967,21 +139537,24 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRdp model module. - * @module model/GatewayCreateProducerRdp - * @version 3.3.16 + * The GatewayUpdateTmpUsers model module. + * @module model/GatewayUpdateTmpUsers + * @version 3.6.3 */ -var GatewayCreateProducerRdp = /*#__PURE__*/function () { +var GatewayUpdateTmpUsers = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRdp. - * gatewayCreateProducerRdp is a command that creates rdp producer - * @alias module:model/GatewayCreateProducerRdp - * @param name {String} Producer name + * Constructs a new GatewayUpdateTmpUsers. + * gatewayUpdateTmpUsers is a command that returns gateway configuration [Deprecated: Use dynamic-secret-tmp-creds-update command] + * @alias module:model/GatewayUpdateTmpUsers + * @param host {String} Host + * @param name {String} Dynamic secret name + * @param newTtlMin {Number} New TTL in Minutes + * @param tmpCredsId {String} Tmp Creds ID */ - function GatewayCreateProducerRdp(name) { - _classCallCheck(this, GatewayCreateProducerRdp); + function GatewayUpdateTmpUsers(host, name, newTtlMin, tmpCredsId) { + _classCallCheck(this, GatewayUpdateTmpUsers); - GatewayCreateProducerRdp.initialize(this, name); + GatewayUpdateTmpUsers.initialize(this, host, name, newTtlMin, tmpCredsId); } /** * Initializes the fields of this object. @@ -62990,35 +139563,30 @@ var GatewayCreateProducerRdp = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRdp, null, [{ + _createClass(GatewayUpdateTmpUsers, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, host, name, newTtlMin, tmpCredsId) { + obj['host'] = host; obj['name'] = name; + obj['new-ttl-min'] = newTtlMin; + obj['tmp-creds-id'] = tmpCredsId; } /** - * Constructs a GatewayCreateProducerRdp from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewayUpdateTmpUsers from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRdp} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRdp} The populated GatewayCreateProducerRdp instance. + * @param {module:model/GatewayUpdateTmpUsers} obj Optional instance to populate. + * @return {module:model/GatewayUpdateTmpUsers} The populated GatewayUpdateTmpUsers instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRdp(); - - if (data.hasOwnProperty('allow-user-extend-session')) { - obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + obj = obj || new GatewayUpdateTmpUsers(); - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } if (data.hasOwnProperty('json')) { @@ -63029,56 +139597,12 @@ var GatewayCreateProducerRdp = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-name')) { - obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-pwd')) { - obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-name')) { - obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-port')) { - obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); - } - - if (data.hasOwnProperty('rdp-user-groups')) { - obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('new-ttl-min')) { + obj['new-ttl-min'] = _ApiClient["default"].convertToType(data['new-ttl-min'], 'Number'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); } if (data.hasOwnProperty('token')) { @@ -63088,166 +139612,64 @@ var GatewayCreateProducerRdp = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('warn-user-before-expiration')) { - obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); - } } return obj; } }]); - return GatewayCreateProducerRdp; + return GatewayUpdateTmpUsers; }(); /** - * AllowUserExtendSession - * @member {Number} allow-user-extend-session - */ - - -GatewayCreateProducerRdp.prototype['allow-user-extend-session'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Host + * @member {String} host */ -GatewayCreateProducerRdp.prototype['delete_protection'] = undefined; -/** - * Allow access using externally (IdP) provided username [true/false] - * @member {String} fixed-user-only - * @default 'false' - */ -GatewayCreateProducerRdp.prototype['fixed-user-only'] = 'false'; +GatewayUpdateTmpUsers.prototype['host'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerRdp.prototype['json'] = false; +GatewayUpdateTmpUsers.prototype['json'] = false; /** - * Producer name + * Dynamic secret name * @member {String} name */ -GatewayCreateProducerRdp.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerRdp.prototype['producer-encryption-key-name'] = undefined; -/** - * RDP Admin Name - * @member {String} rdp-admin-name - */ - -GatewayCreateProducerRdp.prototype['rdp-admin-name'] = undefined; -/** - * RDP Admin password - * @member {String} rdp-admin-pwd - */ - -GatewayCreateProducerRdp.prototype['rdp-admin-pwd'] = undefined; -/** - * Hostname - * @member {String} rdp-host-name - */ - -GatewayCreateProducerRdp.prototype['rdp-host-name'] = undefined; -/** - * Port - * @member {String} rdp-host-port - * @default '22' - */ - -GatewayCreateProducerRdp.prototype['rdp-host-port'] = '22'; -/** - * Groups - * @member {String} rdp-user-groups - */ - -GatewayCreateProducerRdp.prototype['rdp-user-groups'] = undefined; -/** - * Allow providing external user for a domain users - * @member {Boolean} secure-access-allow-external-user - * @default false - */ - -GatewayCreateProducerRdp.prototype['secure-access-allow-external-user'] = false; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerRdp.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerRdp.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user - * @member {String} secure-access-rdp-domain - */ - -GatewayCreateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username - * @member {String} secure-access-rdp-user - */ - -GatewayCreateProducerRdp.prototype['secure-access-rdp-user'] = undefined; +GatewayUpdateTmpUsers.prototype['name'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * New TTL in Minutes + * @member {Number} new-ttl-min */ -GatewayCreateProducerRdp.prototype['tags'] = undefined; +GatewayUpdateTmpUsers.prototype['new-ttl-min'] = undefined; /** - * Target name - * @member {String} target-name + * Tmp Creds ID + * @member {String} tmp-creds-id */ -GatewayCreateProducerRdp.prototype['target-name'] = undefined; +GatewayUpdateTmpUsers.prototype['tmp-creds-id'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerRdp.prototype['token'] = undefined; +GatewayUpdateTmpUsers.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerRdp.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerRdp.prototype['user-ttl'] = '60m'; -/** - * WarnBeforeUserExpiration - * @member {Number} warn-user-before-expiration - */ - -GatewayCreateProducerRdp.prototype['warn-user-before-expiration'] = undefined; -var _default = GatewayCreateProducerRdp; +GatewayUpdateTmpUsers.prototype['uid-token'] = undefined; +var _default = GatewayUpdateTmpUsers; exports["default"] = _default; /***/ }), -/***/ 69819: +/***/ 35713: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -63258,9 +139680,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(65883)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -63271,19 +139693,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRdpOutput model module. - * @module model/GatewayCreateProducerRdpOutput - * @version 3.3.16 + * The GatewaysListResponse model module. + * @module model/GatewaysListResponse + * @version 3.6.3 */ -var GatewayCreateProducerRdpOutput = /*#__PURE__*/function () { +var GatewaysListResponse = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRdpOutput. - * @alias module:model/GatewayCreateProducerRdpOutput + * Constructs a new GatewaysListResponse. + * GatewaysListResponse Gateway cluster identity list + * @alias module:model/GatewaysListResponse */ - function GatewayCreateProducerRdpOutput() { - _classCallCheck(this, GatewayCreateProducerRdpOutput); + function GatewaysListResponse() { + _classCallCheck(this, GatewaysListResponse); - GatewayCreateProducerRdpOutput.initialize(this); + GatewaysListResponse.initialize(this); } /** * Initializes the fields of this object. @@ -63292,25 +139715,25 @@ var GatewayCreateProducerRdpOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRdpOutput, null, [{ + _createClass(GatewaysListResponse, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GatewaysListResponse from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRdpOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRdpOutput} The populated GatewayCreateProducerRdpOutput instance. + * @param {module:model/GatewaysListResponse} obj Optional instance to populate. + * @return {module:model/GatewaysListResponse} The populated GatewaysListResponse instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRdpOutput(); + obj = obj || new GatewaysListResponse(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('clusters')) { + obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_GwClusterIdentity["default"]]); } } @@ -63318,20 +139741,20 @@ var GatewayCreateProducerRdpOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerRdpOutput; + return GatewaysListResponse; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Array.} clusters */ -GatewayCreateProducerRdpOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRdpOutput; +GatewaysListResponse.prototype['clusters'] = undefined; +var _default = GatewaysListResponse; exports["default"] = _default; /***/ }), -/***/ 22541: +/***/ 69042: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -63342,7 +139765,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -63353,21 +139776,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRedis model module. - * @module model/GatewayCreateProducerRedis - * @version 3.3.16 + * The GcpTargetDetails model module. + * @module model/GcpTargetDetails + * @version 3.6.3 */ -var GatewayCreateProducerRedis = /*#__PURE__*/function () { +var GcpTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRedis. - * gatewayCreateProducerRedis is a command that creates Redis producer - * @alias module:model/GatewayCreateProducerRedis - * @param name {String} Producer name + * Constructs a new GcpTargetDetails. + * @alias module:model/GcpTargetDetails */ - function GatewayCreateProducerRedis(name) { - _classCallCheck(this, GatewayCreateProducerRedis); + function GcpTargetDetails() { + _classCallCheck(this, GcpTargetDetails); - GatewayCreateProducerRedis.initialize(this, name); + GcpTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -63376,87 +139797,163 @@ var GatewayCreateProducerRedis = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRedis, null, [{ + _createClass(GcpTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerRedis from a plain JavaScript object, optionally creating a new instance. + * Constructs a GcpTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedis} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedis} The populated GatewayCreateProducerRedis instance. + * @param {module:model/GcpTargetDetails} obj Optional instance to populate. + * @return {module:model/GcpTargetDetails} The populated GcpTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRedis(); + obj = obj || new GcpTargetDetails(); - if (data.hasOwnProperty('acl-rules')) { - obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); + if (data.hasOwnProperty('gcp_service_account_email')) { + obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('gcp_service_account_key')) { + obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); } - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('gcp_service_account_key_base64')) { + obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('gcp_service_account_key_id')) { + obj['gcp_service_account_key_id'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_id'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); } + } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } + return GcpTargetDetails; +}(); +/** + * @member {String} gcp_service_account_email + */ - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } +GcpTargetDetails.prototype['gcp_service_account_email'] = undefined; +/** + * @member {String} gcp_service_account_key + */ - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } +GcpTargetDetails.prototype['gcp_service_account_key'] = undefined; +/** + * @member {String} gcp_service_account_key_base64 + */ - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); +GcpTargetDetails.prototype['gcp_service_account_key_base64'] = undefined; +/** + * @member {String} gcp_service_account_key_id + */ + +GcpTargetDetails.prototype['gcp_service_account_key_id'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +GcpTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = GcpTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 58211: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GenCustomerFragment model module. + * @module model/GenCustomerFragment + * @version 3.6.3 + */ +var GenCustomerFragment = /*#__PURE__*/function () { + /** + * Constructs a new GenCustomerFragment. + * @alias module:model/GenCustomerFragment + */ + function GenCustomerFragment() { + _classCallCheck(this, GenCustomerFragment); + + GenCustomerFragment.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GenCustomerFragment, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GenCustomerFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GenCustomerFragment} obj Optional instance to populate. + * @return {module:model/GenCustomerFragment} The populated GenCustomerFragment instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GenCustomerFragment(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('hsm-key-label')) { + obj['hsm-key-label'] = _ApiClient["default"].convertToType(data['hsm-key-label'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } } @@ -63464,116 +139961,53 @@ var GatewayCreateProducerRedis = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerRedis; + return GenCustomerFragment; }(); /** - * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' - * @member {String} acl-rules + * Description of the object + * @member {String} description */ -GatewayCreateProducerRedis.prototype['acl-rules'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerRedis.prototype['delete_protection'] = undefined; +GenCustomerFragment.prototype['description'] = undefined; /** - * Redis Host - * @member {String} host - * @default '127.0.0.1' + * The label of the hsm key to use for customer fragment operations (relevant for hsm_wrapped/hsm_protected customer fragments) + * @member {String} hsm-key-label */ -GatewayCreateProducerRedis.prototype['host'] = '127.0.0.1'; +GenCustomerFragment.prototype['hsm-key-label'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerRedis.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerRedis.prototype['name'] = undefined; -/** - * Redis Password - * @member {String} password - */ - -GatewayCreateProducerRedis.prototype['password'] = undefined; -/** - * Redis Port - * @member {String} port - * @default '6379' - */ - -GatewayCreateProducerRedis.prototype['port'] = '6379'; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerRedis.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayCreateProducerRedis.prototype['ssl'] = false; -/** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} ssl-certificate - */ - -GatewayCreateProducerRedis.prototype['ssl-certificate'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerRedis.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerRedis.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerRedis.prototype['token'] = undefined; +GenCustomerFragment.prototype['json'] = false; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Deprecated - use description + * @member {String} metadata */ -GatewayCreateProducerRedis.prototype['uid-token'] = undefined; +GenCustomerFragment.prototype['metadata'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * Customer fragment name + * @member {String} name */ -GatewayCreateProducerRedis.prototype['user-ttl'] = '60m'; +GenCustomerFragment.prototype['name'] = undefined; /** - * Redis Username - * @member {String} username + * Customer fragment type [standard/hsm_wrapped/hsm_secured] + * @member {String} type + * @default 'standard' */ -GatewayCreateProducerRedis.prototype['username'] = undefined; -var _default = GatewayCreateProducerRedis; +GenCustomerFragment.prototype['type'] = 'standard'; +var _default = GenCustomerFragment; exports["default"] = _default; /***/ }), -/***/ 73187: +/***/ 97910: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -63584,9 +140018,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -63597,19 +140029,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRedisOutput model module. - * @module model/GatewayCreateProducerRedisOutput - * @version 3.3.16 + * The GeneralConfigPart model module. + * @module model/GeneralConfigPart + * @version 3.6.3 */ -var GatewayCreateProducerRedisOutput = /*#__PURE__*/function () { +var GeneralConfigPart = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRedisOutput. - * @alias module:model/GatewayCreateProducerRedisOutput + * Constructs a new GeneralConfigPart. + * @alias module:model/GeneralConfigPart */ - function GatewayCreateProducerRedisOutput() { - _classCallCheck(this, GatewayCreateProducerRedisOutput); + function GeneralConfigPart() { + _classCallCheck(this, GeneralConfigPart); - GatewayCreateProducerRedisOutput.initialize(this); + GeneralConfigPart.initialize(this); } /** * Initializes the fields of this object. @@ -63618,25 +140050,73 @@ var GatewayCreateProducerRedisOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRedisOutput, null, [{ + _createClass(GeneralConfigPart, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GeneralConfigPart from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedisOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedisOutput} The populated GatewayCreateProducerRedisOutput instance. + * @param {module:model/GeneralConfigPart} obj Optional instance to populate. + * @return {module:model/GeneralConfigPart} The populated GeneralConfigPart instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRedisOutput(); + obj = obj || new GeneralConfigPart(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('akeyless_url')) { + obj['akeyless_url'] = _ApiClient["default"].convertToType(data['akeyless_url'], 'String'); + } + + if (data.hasOwnProperty('api_token_ttl')) { + obj['api_token_ttl'] = _ApiClient["default"].convertToType(data['api_token_ttl'], 'String'); + } + + if (data.hasOwnProperty('display_name')) { + obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + } + + if (data.hasOwnProperty('enable_sni_proxy')) { + obj['enable_sni_proxy'] = _ApiClient["default"].convertToType(data['enable_sni_proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls')) { + obj['enable_tls'] = _ApiClient["default"].convertToType(data['enable_tls'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls_configure')) { + obj['enable_tls_configure'] = _ApiClient["default"].convertToType(data['enable_tls_configure'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls_curl')) { + obj['enable_tls_curl'] = _ApiClient["default"].convertToType(data['enable_tls_curl'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls_hvp')) { + obj['enable_tls_hvp'] = _ApiClient["default"].convertToType(data['enable_tls_hvp'], 'Boolean'); + } + + if (data.hasOwnProperty('gw_cluster_url')) { + obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); + } + + if (data.hasOwnProperty('notify_on_status_change')) { + obj['notify_on_status_change'] = _ApiClient["default"].convertToType(data['notify_on_status_change'], 'Boolean'); + } + + if (data.hasOwnProperty('tcp_port')) { + obj['tcp_port'] = _ApiClient["default"].convertToType(data['tcp_port'], 'String'); + } + + if (data.hasOwnProperty('tls_cert')) { + obj['tls_cert'] = _ApiClient["default"].convertToType(data['tls_cert'], 'String'); + } + + if (data.hasOwnProperty('tls_key')) { + obj['tls_key'] = _ApiClient["default"].convertToType(data['tls_key'], 'String'); } } @@ -63644,20 +140124,81 @@ var GatewayCreateProducerRedisOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerRedisOutput; + return GeneralConfigPart; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * AkeylessUrl is here for BC only. Gator will still return it if it exists in the configuration, but new clients (>=2.34.0) will ignore it and override it with what exists in their local file. It will no longer be sent to Gator for update, so new clusters will only have the default value saved in the DB. + * @member {String} akeyless_url */ -GatewayCreateProducerRedisOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRedisOutput; +GeneralConfigPart.prototype['akeyless_url'] = undefined; +/** + * @member {String} api_token_ttl + */ + +GeneralConfigPart.prototype['api_token_ttl'] = undefined; +/** + * @member {String} display_name + */ + +GeneralConfigPart.prototype['display_name'] = undefined; +/** + * @member {Boolean} enable_sni_proxy + */ + +GeneralConfigPart.prototype['enable_sni_proxy'] = undefined; +/** + * @member {Boolean} enable_tls + */ + +GeneralConfigPart.prototype['enable_tls'] = undefined; +/** + * @member {Boolean} enable_tls_configure + */ + +GeneralConfigPart.prototype['enable_tls_configure'] = undefined; +/** + * @member {Boolean} enable_tls_curl + */ + +GeneralConfigPart.prototype['enable_tls_curl'] = undefined; +/** + * @member {Boolean} enable_tls_hvp + */ + +GeneralConfigPart.prototype['enable_tls_hvp'] = undefined; +/** + * @member {String} gw_cluster_url + */ + +GeneralConfigPart.prototype['gw_cluster_url'] = undefined; +/** + * @member {Boolean} notify_on_status_change + */ + +GeneralConfigPart.prototype['notify_on_status_change'] = undefined; +/** + * @member {String} tcp_port + */ + +GeneralConfigPart.prototype['tcp_port'] = undefined; +/** + * @member {String} tls_cert + */ + +GeneralConfigPart.prototype['tls_cert'] = undefined; +/** + * @member {String} tls_key + */ + +GeneralConfigPart.prototype['tls_key'] = undefined; +var _default = GeneralConfigPart; exports["default"] = _default; /***/ }), -/***/ 91791: +/***/ 72228: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -63668,7 +140209,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -63679,21 +140220,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRedshift model module. - * @module model/GatewayCreateProducerRedshift - * @version 3.3.16 + * The GenerateCsr model module. + * @module model/GenerateCsr + * @version 3.6.3 */ -var GatewayCreateProducerRedshift = /*#__PURE__*/function () { +var GenerateCsr = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRedshift. - * gatewayCreateProducerRedshift is a command that creates redshift producer - * @alias module:model/GatewayCreateProducerRedshift - * @param name {String} Producer name + * Constructs a new GenerateCsr. + * @alias module:model/GenerateCsr + * @param commonName {String} The common name to be included in the CSR certificate + * @param keyType {String} The type of the key to generate (classic-key/dfc) + * @param name {String} The key name */ - function GatewayCreateProducerRedshift(name) { - _classCallCheck(this, GatewayCreateProducerRedshift); + function GenerateCsr(commonName, keyType, name) { + _classCallCheck(this, GenerateCsr); - GatewayCreateProducerRedshift.initialize(this, name); + GenerateCsr.initialize(this, commonName, keyType, name); } /** * Initializes the fields of this object. @@ -63702,83 +140244,93 @@ var GatewayCreateProducerRedshift = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRedshift, null, [{ + _createClass(GenerateCsr, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, commonName, keyType, name) { + obj['common-name'] = commonName; + obj['key-type'] = keyType; obj['name'] = name; } /** - * Constructs a GatewayCreateProducerRedshift from a plain JavaScript object, optionally creating a new instance. + * Constructs a GenerateCsr from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedshift} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedshift} The populated GatewayCreateProducerRedshift instance. + * @param {module:model/GenerateCsr} obj Optional instance to populate. + * @return {module:model/GenerateCsr} The populated GenerateCsr instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRedshift(); + obj = obj || new GenerateCsr(); - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('alt-names')) { + obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('certificate-type')) { + obj['certificate-type'] = _ApiClient["default"].convertToType(data['certificate-type'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('city')) { + obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); } - if (data.hasOwnProperty('redshift-db-name')) { - obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); } - if (data.hasOwnProperty('redshift-host')) { - obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); + if (data.hasOwnProperty('critical')) { + obj['critical'] = _ApiClient["default"].convertToType(data['critical'], 'Boolean'); } - if (data.hasOwnProperty('redshift-password')) { - obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); + if (data.hasOwnProperty('dep')) { + obj['dep'] = _ApiClient["default"].convertToType(data['dep'], 'String'); } - if (data.hasOwnProperty('redshift-port')) { - obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); + if (data.hasOwnProperty('email-addresses')) { + obj['email-addresses'] = _ApiClient["default"].convertToType(data['email-addresses'], 'String'); } - if (data.hasOwnProperty('redshift-username')) { - obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); + if (data.hasOwnProperty('generate-key')) { + obj['generate-key'] = _ApiClient["default"].convertToType(data['generate-key'], 'Boolean'); } - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + if (data.hasOwnProperty('ip-addresses')) { + obj['ip-addresses'] = _ApiClient["default"].convertToType(data['ip-addresses'], 'String'); } - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + if (data.hasOwnProperty('key-type')) { + obj['key-type'] = _ApiClient["default"].convertToType(data['key-type'], 'String'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('org')) { + obj['org'] = _ApiClient["default"].convertToType(data['org'], 'String'); + } + + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); } if (data.hasOwnProperty('token')) { @@ -63789,8 +140341,8 @@ var GatewayCreateProducerRedshift = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); } } @@ -63798,128 +140350,137 @@ var GatewayCreateProducerRedshift = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerRedshift; + return GenerateCsr; }(); /** - * Redshift Creation statements - * @member {String} creation-statements + * @member {String} alg */ -GatewayCreateProducerRedshift.prototype['creation-statements'] = undefined; +GenerateCsr.prototype['alg'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * A comma-separated list of dns alternative names + * @member {String} alt-names */ -GatewayCreateProducerRedshift.prototype['delete_protection'] = undefined; +GenerateCsr.prototype['alt-names'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The certificate type to be included in the CSR certificate (ssl-client/ssl-server/certificate-signing) + * @member {String} certificate-type */ -GatewayCreateProducerRedshift.prototype['json'] = false; +GenerateCsr.prototype['certificate-type'] = undefined; /** - * Producer name - * @member {String} name + * The city to be included in the CSR certificate + * @member {String} city */ -GatewayCreateProducerRedshift.prototype['name'] = undefined; +GenerateCsr.prototype['city'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key + * The common name to be included in the CSR certificate + * @member {String} common-name */ -GatewayCreateProducerRedshift.prototype['producer-encryption-key'] = undefined; +GenerateCsr.prototype['common-name'] = undefined; /** - * Redshift DB Name - * @member {String} redshift-db-name + * The country to be included in the CSR certificate + * @member {String} country */ -GatewayCreateProducerRedshift.prototype['redshift-db-name'] = undefined; +GenerateCsr.prototype['country'] = undefined; /** - * Redshift Host - * @member {String} redshift-host - * @default '127.0.0.1' + * Add critical to the key usage extension (will be false if not added) + * @member {Boolean} critical */ -GatewayCreateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; +GenerateCsr.prototype['critical'] = undefined; /** - * Redshift Password - * @member {String} redshift-password + * The department to be included in the CSR certificate + * @member {String} dep */ -GatewayCreateProducerRedshift.prototype['redshift-password'] = undefined; +GenerateCsr.prototype['dep'] = undefined; /** - * Redshift Port - * @member {String} redshift-port - * @default '5439' + * A comma-separated list of email addresses alternative names + * @member {String} email-addresses */ -GatewayCreateProducerRedshift.prototype['redshift-port'] = '5439'; +GenerateCsr.prototype['email-addresses'] = undefined; /** - * Redshift Username - * @member {String} redshift-username + * Generate a new classic key for the csr + * @member {Boolean} generate-key */ -GatewayCreateProducerRedshift.prototype['redshift-username'] = undefined; +GenerateCsr.prototype['generate-key'] = undefined; /** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable + * A comma-separated list of ip addresses alternative names + * @member {String} ip-addresses */ -GatewayCreateProducerRedshift.prototype['secure-access-enable'] = undefined; +GenerateCsr.prototype['ip-addresses'] = undefined; /** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayCreateProducerRedshift.prototype['secure-access-host'] = undefined; +GenerateCsr.prototype['json'] = false; /** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false + * The type of the key to generate (classic-key/dfc) + * @member {String} key-type + * @default 'classic-key' */ -GatewayCreateProducerRedshift.prototype['ssl'] = false; +GenerateCsr.prototype['key-type'] = 'classic-key'; /** - * Add tags attached to this object - * @member {Array.} tags + * The key name + * @member {String} name */ -GatewayCreateProducerRedshift.prototype['tags'] = undefined; +GenerateCsr.prototype['name'] = undefined; /** - * Target name - * @member {String} target-name + * The organization to be included in the CSR certificate + * @member {String} org */ -GatewayCreateProducerRedshift.prototype['target-name'] = undefined; +GenerateCsr.prototype['org'] = undefined; +/** + * The number of fragments that the item will be split into (not includes customer fragment) + * @member {Number} split-level + * @default 3 + */ + +GenerateCsr.prototype['split-level'] = 3; +/** + * The state to be included in the CSR certificate + * @member {String} state + */ + +GenerateCsr.prototype['state'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerRedshift.prototype['token'] = undefined; +GenerateCsr.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerRedshift.prototype['uid-token'] = undefined; +GenerateCsr.prototype['uid-token'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * A comma-separated list of uri alternative names + * @member {String} uri-sans */ -GatewayCreateProducerRedshift.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerRedshift; +GenerateCsr.prototype['uri-sans'] = undefined; +var _default = GenerateCsr; exports["default"] = _default; /***/ }), -/***/ 26737: +/***/ 1109: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -63930,9 +140491,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -63943,19 +140502,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerRedshiftOutput model module. - * @module model/GatewayCreateProducerRedshiftOutput - * @version 3.3.16 + * The GenerateCsrOutput model module. + * @module model/GenerateCsrOutput + * @version 3.6.3 */ -var GatewayCreateProducerRedshiftOutput = /*#__PURE__*/function () { +var GenerateCsrOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerRedshiftOutput. - * @alias module:model/GatewayCreateProducerRedshiftOutput + * Constructs a new GenerateCsrOutput. + * @alias module:model/GenerateCsrOutput */ - function GatewayCreateProducerRedshiftOutput() { - _classCallCheck(this, GatewayCreateProducerRedshiftOutput); + function GenerateCsrOutput() { + _classCallCheck(this, GenerateCsrOutput); - GatewayCreateProducerRedshiftOutput.initialize(this); + GenerateCsrOutput.initialize(this); } /** * Initializes the fields of this object. @@ -63964,25 +140523,25 @@ var GatewayCreateProducerRedshiftOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerRedshiftOutput, null, [{ + _createClass(GenerateCsrOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GenerateCsrOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedshiftOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedshiftOutput} The populated GatewayCreateProducerRedshiftOutput instance. + * @param {module:model/GenerateCsrOutput} obj Optional instance to populate. + * @return {module:model/GenerateCsrOutput} The populated GenerateCsrOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerRedshiftOutput(); + obj = obj || new GenerateCsrOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); } } @@ -63990,20 +140549,20 @@ var GatewayCreateProducerRedshiftOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerRedshiftOutput; + return GenerateCsrOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} data */ -GatewayCreateProducerRedshiftOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRedshiftOutput; +GenerateCsrOutput.prototype['data'] = undefined; +var _default = GenerateCsrOutput; exports["default"] = _default; /***/ }), -/***/ 48963: +/***/ 28351: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64014,7 +140573,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64025,21 +140584,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerSnowflake model module. - * @module model/GatewayCreateProducerSnowflake - * @version 3.3.16 + * The GetAccountSettings model module. + * @module model/GetAccountSettings + * @version 3.6.3 */ -var GatewayCreateProducerSnowflake = /*#__PURE__*/function () { +var GetAccountSettings = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerSnowflake. - * GatewayCreateProducerSnowflakeCmd is a command that creates a Snowflake producer - * @alias module:model/GatewayCreateProducerSnowflake - * @param name {String} Producer name + * Constructs a new GetAccountSettings. + * @alias module:model/GetAccountSettings */ - function GatewayCreateProducerSnowflake(name) { - _classCallCheck(this, GatewayCreateProducerSnowflake); + function GetAccountSettings() { + _classCallCheck(this, GetAccountSettings); - GatewayCreateProducerSnowflake.initialize(this, name); + GetAccountSettings.initialize(this); } /** * Initializes the fields of this object. @@ -64048,73 +140605,27 @@ var GatewayCreateProducerSnowflake = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerSnowflake, null, [{ + _createClass(GetAccountSettings, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetAccountSettings from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerSnowflake} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerSnowflake} The populated GatewayCreateProducerSnowflake instance. + * @param {module:model/GetAccountSettings} obj Optional instance to populate. + * @return {module:model/GetAccountSettings} The populated GetAccountSettings instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerSnowflake(); - - if (data.hasOwnProperty('account')) { - obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); - } - - if (data.hasOwnProperty('account-password')) { - obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); - } - - if (data.hasOwnProperty('account-username')) { - obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); - } - - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + obj = obj || new GetAccountSettings(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-passphrase')) { - obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); - } - - if (data.hasOwnProperty('role')) { - obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -64122,127 +140633,40 @@ var GatewayCreateProducerSnowflake = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('warehouse')) { - obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); - } } return obj; } }]); - return GatewayCreateProducerSnowflake; + return GetAccountSettings; }(); -/** - * Account name - * @member {String} account - */ - - -GatewayCreateProducerSnowflake.prototype['account'] = undefined; -/** - * Database Password - * @member {String} account-password - */ - -GatewayCreateProducerSnowflake.prototype['account-password'] = undefined; -/** - * Database Username - * @member {String} account-username - */ - -GatewayCreateProducerSnowflake.prototype['account-username'] = undefined; -/** - * Database name - * @member {String} db-name - */ - -GatewayCreateProducerSnowflake.prototype['db-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerSnowflake.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayCreateProducerSnowflake.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerSnowflake.prototype['name'] = undefined; -/** - * RSA Private key (base64 encoded) - * @member {String} private-key - */ - -GatewayCreateProducerSnowflake.prototype['private-key'] = undefined; -/** - * The Private key passphrase - * @member {String} private-key-passphrase - */ - -GatewayCreateProducerSnowflake.prototype['private-key-passphrase'] = undefined; -/** - * User role - * @member {String} role - */ - -GatewayCreateProducerSnowflake.prototype['role'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerSnowflake.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ -GatewayCreateProducerSnowflake.prototype['target-name'] = undefined; +GetAccountSettings.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayCreateProducerSnowflake.prototype['token'] = undefined; +GetAccountSettings.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayCreateProducerSnowflake.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '24h' - */ - -GatewayCreateProducerSnowflake.prototype['user-ttl'] = '24h'; -/** - * Warehouse name - * @member {String} warehouse - */ - -GatewayCreateProducerSnowflake.prototype['warehouse'] = undefined; -var _default = GatewayCreateProducerSnowflake; +GetAccountSettings.prototype['uid-token'] = undefined; +var _default = GetAccountSettings; exports["default"] = _default; /***/ }), -/***/ 97420: +/***/ 48759: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64253,9 +140677,19 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(27189)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(60845)); + +var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(61038)); + +var _SmInfo = _interopRequireDefault(__nccwpck_require__(35089)); + +var _SraInfo = _interopRequireDefault(__nccwpck_require__(62365)); + +var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(8792)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64266,19 +140700,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayCreateProducerSnowflakeOutput model module. - * @module model/GatewayCreateProducerSnowflakeOutput - * @version 3.3.16 + * The GetAccountSettingsCommandOutput model module. + * @module model/GetAccountSettingsCommandOutput + * @version 3.6.3 */ -var GatewayCreateProducerSnowflakeOutput = /*#__PURE__*/function () { +var GetAccountSettingsCommandOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayCreateProducerSnowflakeOutput. - * @alias module:model/GatewayCreateProducerSnowflakeOutput + * Constructs a new GetAccountSettingsCommandOutput. + * @alias module:model/GetAccountSettingsCommandOutput */ - function GatewayCreateProducerSnowflakeOutput() { - _classCallCheck(this, GatewayCreateProducerSnowflakeOutput); + function GetAccountSettingsCommandOutput() { + _classCallCheck(this, GetAccountSettingsCommandOutput); - GatewayCreateProducerSnowflakeOutput.initialize(this); + GetAccountSettingsCommandOutput.initialize(this); } /** * Initializes the fields of this object. @@ -64287,25 +140721,61 @@ var GatewayCreateProducerSnowflakeOutput = /*#__PURE__*/function () { */ - _createClass(GatewayCreateProducerSnowflakeOutput, null, [{ + _createClass(GetAccountSettingsCommandOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayCreateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetAccountSettingsCommandOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerSnowflakeOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerSnowflakeOutput} The populated GatewayCreateProducerSnowflakeOutput instance. + * @param {module:model/GetAccountSettingsCommandOutput} obj Optional instance to populate. + * @return {module:model/GetAccountSettingsCommandOutput} The populated GetAccountSettingsCommandOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayCreateProducerSnowflakeOutput(); + obj = obj || new GetAccountSettingsCommandOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('address')) { + obj['address'] = _CustomerFullAddress["default"].constructFromObject(data['address']); + } + + if (data.hasOwnProperty('company_name')) { + obj['company_name'] = _ApiClient["default"].convertToType(data['company_name'], 'String'); + } + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + + if (data.hasOwnProperty('general_settings')) { + obj['general_settings'] = _AccountGeneralSettings["default"].constructFromObject(data['general_settings']); + } + + if (data.hasOwnProperty('object_version_settings')) { + obj['object_version_settings'] = _AccountObjectVersionSettingsOutput["default"].constructFromObject(data['object_version_settings']); + } + + if (data.hasOwnProperty('phone')) { + obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + } + + if (data.hasOwnProperty('secret_management')) { + obj['secret_management'] = _SmInfo["default"].constructFromObject(data['secret_management']); + } + + if (data.hasOwnProperty('secure_remote_access')) { + obj['secure_remote_access'] = _SraInfo["default"].constructFromObject(data['secure_remote_access']); + } + + if (data.hasOwnProperty('system_access_creds_settings')) { + obj['system_access_creds_settings'] = _SystemAccessCredsSettings["default"].constructFromObject(data['system_access_creds_settings']); } } @@ -64313,20 +140783,65 @@ var GatewayCreateProducerSnowflakeOutput = /*#__PURE__*/function () { } }]); - return GatewayCreateProducerSnowflakeOutput; + return GetAccountSettingsCommandOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} account_id */ -GatewayCreateProducerSnowflakeOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerSnowflakeOutput; +GetAccountSettingsCommandOutput.prototype['account_id'] = undefined; +/** + * @member {module:model/CustomerFullAddress} address + */ + +GetAccountSettingsCommandOutput.prototype['address'] = undefined; +/** + * @member {String} company_name + */ + +GetAccountSettingsCommandOutput.prototype['company_name'] = undefined; +/** + * @member {String} email + */ + +GetAccountSettingsCommandOutput.prototype['email'] = undefined; +/** + * @member {module:model/AccountGeneralSettings} general_settings + */ + +GetAccountSettingsCommandOutput.prototype['general_settings'] = undefined; +/** + * @member {module:model/AccountObjectVersionSettingsOutput} object_version_settings + */ + +GetAccountSettingsCommandOutput.prototype['object_version_settings'] = undefined; +/** + * @member {String} phone + */ + +GetAccountSettingsCommandOutput.prototype['phone'] = undefined; +/** + * @member {module:model/SmInfo} secret_management + */ + +GetAccountSettingsCommandOutput.prototype['secret_management'] = undefined; +/** + * @member {module:model/SraInfo} secure_remote_access + */ + +GetAccountSettingsCommandOutput.prototype['secure_remote_access'] = undefined; +/** + * @member {module:model/SystemAccessCredsSettings} system_access_creds_settings + */ + +GetAccountSettingsCommandOutput.prototype['system_access_creds_settings'] = undefined; +var _default = GetAccountSettingsCommandOutput; exports["default"] = _default; /***/ }), -/***/ 87221: +/***/ 40781: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64337,7 +140852,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64348,21 +140863,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDeleteAllowedAccess model module. - * @module model/GatewayDeleteAllowedAccess - * @version 3.3.16 + * The GetAnalyticsData model module. + * @module model/GetAnalyticsData + * @version 3.6.3 */ -var GatewayDeleteAllowedAccess = /*#__PURE__*/function () { +var GetAnalyticsData = /*#__PURE__*/function () { /** - * Constructs a new GatewayDeleteAllowedAccess. - * gatewayDeleteAllowedAccess is a command that deletes allowed access from gateway - * @alias module:model/GatewayDeleteAllowedAccess - * @param name {String} Allowed access name to delete + * Constructs a new GetAnalyticsData. + * @alias module:model/GetAnalyticsData */ - function GatewayDeleteAllowedAccess(name) { - _classCallCheck(this, GatewayDeleteAllowedAccess); + function GetAnalyticsData() { + _classCallCheck(this, GetAnalyticsData); - GatewayDeleteAllowedAccess.initialize(this, name); + GetAnalyticsData.initialize(this); } /** * Initializes the fields of this object. @@ -64371,33 +140884,27 @@ var GatewayDeleteAllowedAccess = /*#__PURE__*/function () { */ - _createClass(GatewayDeleteAllowedAccess, null, [{ + _createClass(GetAnalyticsData, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayDeleteAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetAnalyticsData from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayDeleteAllowedAccess} The populated GatewayDeleteAllowedAccess instance. + * @param {module:model/GetAnalyticsData} obj Optional instance to populate. + * @return {module:model/GetAnalyticsData} The populated GetAnalyticsData instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDeleteAllowedAccess(); + obj = obj || new GetAnalyticsData(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -64411,7 +140918,7 @@ var GatewayDeleteAllowedAccess = /*#__PURE__*/function () { } }]); - return GatewayDeleteAllowedAccess; + return GetAnalyticsData; }(); /** * Set output format to JSON @@ -64420,31 +140927,25 @@ var GatewayDeleteAllowedAccess = /*#__PURE__*/function () { */ -GatewayDeleteAllowedAccess.prototype['json'] = false; -/** - * Allowed access name to delete - * @member {String} name - */ - -GatewayDeleteAllowedAccess.prototype['name'] = undefined; +GetAnalyticsData.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayDeleteAllowedAccess.prototype['token'] = undefined; +GetAnalyticsData.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayDeleteAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayDeleteAllowedAccess; +GetAnalyticsData.prototype['uid-token'] = undefined; +var _default = GetAnalyticsData; exports["default"] = _default; /***/ }), -/***/ 50892: +/***/ 66058: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64455,7 +140956,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64466,19 +140967,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDeleteAllowedAccessOutput model module. - * @module model/GatewayDeleteAllowedAccessOutput - * @version 3.3.16 + * The GetAuthMethod model module. + * @module model/GetAuthMethod + * @version 3.6.3 */ -var GatewayDeleteAllowedAccessOutput = /*#__PURE__*/function () { +var GetAuthMethod = /*#__PURE__*/function () { /** - * Constructs a new GatewayDeleteAllowedAccessOutput. - * @alias module:model/GatewayDeleteAllowedAccessOutput + * Constructs a new GetAuthMethod. + * @alias module:model/GetAuthMethod + * @param name {String} Auth Method name */ - function GatewayDeleteAllowedAccessOutput() { - _classCallCheck(this, GatewayDeleteAllowedAccessOutput); + function GetAuthMethod(name) { + _classCallCheck(this, GetAuthMethod); - GatewayDeleteAllowedAccessOutput.initialize(this); + GetAuthMethod.initialize(this, name); } /** * Initializes the fields of this object. @@ -64487,25 +140989,39 @@ var GatewayDeleteAllowedAccessOutput = /*#__PURE__*/function () { */ - _createClass(GatewayDeleteAllowedAccessOutput, null, [{ + _createClass(GetAuthMethod, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a GatewayDeleteAllowedAccessOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetAuthMethod from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteAllowedAccessOutput} obj Optional instance to populate. - * @return {module:model/GatewayDeleteAllowedAccessOutput} The populated GatewayDeleteAllowedAccessOutput instance. + * @param {module:model/GetAuthMethod} obj Optional instance to populate. + * @return {module:model/GetAuthMethod} The populated GetAuthMethod instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDeleteAllowedAccessOutput(); + obj = obj || new GetAuthMethod(); - if (data.hasOwnProperty('allowed_access_name')) { - obj['allowed_access_name'] = _ApiClient["default"].convertToType(data['allowed_access_name'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -64513,20 +141029,40 @@ var GatewayDeleteAllowedAccessOutput = /*#__PURE__*/function () { } }]); - return GatewayDeleteAllowedAccessOutput; + return GetAuthMethod; }(); /** - * @member {String} allowed_access_name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayDeleteAllowedAccessOutput.prototype['allowed_access_name'] = undefined; -var _default = GatewayDeleteAllowedAccessOutput; +GetAuthMethod.prototype['json'] = false; +/** + * Auth Method name + * @member {String} name + */ + +GetAuthMethod.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetAuthMethod.prototype['uid-token'] = undefined; +var _default = GetAuthMethod; exports["default"] = _default; /***/ }), -/***/ 87968: +/***/ 63293: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64537,7 +141073,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64548,21 +141084,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDeleteK8SAuthConfig model module. - * @module model/GatewayDeleteK8SAuthConfig - * @version 3.3.16 + * The GetCertificateValue model module. + * @module model/GetCertificateValue + * @version 3.6.3 */ -var GatewayDeleteK8SAuthConfig = /*#__PURE__*/function () { +var GetCertificateValue = /*#__PURE__*/function () { /** - * Constructs a new GatewayDeleteK8SAuthConfig. - * gatewayDeleteK8SAuth is a command that deletes k8s auth config - * @alias module:model/GatewayDeleteK8SAuthConfig - * @param name {String} K8S Auth config name + * Constructs a new GetCertificateValue. + * @alias module:model/GetCertificateValue + * @param name {String} Certificate name */ - function GatewayDeleteK8SAuthConfig(name) { - _classCallCheck(this, GatewayDeleteK8SAuthConfig); + function GetCertificateValue(name) { + _classCallCheck(this, GetCertificateValue); - GatewayDeleteK8SAuthConfig.initialize(this, name); + GetCertificateValue.initialize(this, name); } /** * Initializes the fields of this object. @@ -64571,24 +141106,40 @@ var GatewayDeleteK8SAuthConfig = /*#__PURE__*/function () { */ - _createClass(GatewayDeleteK8SAuthConfig, null, [{ + _createClass(GetCertificateValue, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayDeleteK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetCertificateValue from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayDeleteK8SAuthConfig} The populated GatewayDeleteK8SAuthConfig instance. + * @param {module:model/GetCertificateValue} obj Optional instance to populate. + * @return {module:model/GetCertificateValue} The populated GetCertificateValue instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDeleteK8SAuthConfig(); + obj = obj || new GetCertificateValue(); + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } + + if (data.hasOwnProperty('issuance-token')) { + obj['issuance-token'] = _ApiClient["default"].convertToType(data['issuance-token'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -64605,46 +141156,82 @@ var GatewayDeleteK8SAuthConfig = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } } return obj; } }]); - return GatewayDeleteK8SAuthConfig; + return GetCertificateValue; }(); +/** + * The parent PKI Certificate Issuer's name of the certificate, required when used with display-id and token + * @member {String} cert-issuer-name + */ + + +GetCertificateValue.prototype['cert-issuer-name'] = undefined; +/** + * Certificate display ID + * @member {String} display-id + */ + +GetCertificateValue.prototype['display-id'] = undefined; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ + +GetCertificateValue.prototype['ignore-cache'] = 'false'; +/** + * Token for getting the issued certificate + * @member {String} issuance-token + */ + +GetCertificateValue.prototype['issuance-token'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ - -GatewayDeleteK8SAuthConfig.prototype['json'] = false; +GetCertificateValue.prototype['json'] = false; /** - * K8S Auth config name + * Certificate name * @member {String} name + * @default 'dummy_certificate_name' */ -GatewayDeleteK8SAuthConfig.prototype['name'] = undefined; +GetCertificateValue.prototype['name'] = 'dummy_certificate_name'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayDeleteK8SAuthConfig.prototype['token'] = undefined; +GetCertificateValue.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayDeleteK8SAuthConfig.prototype['uid-token'] = undefined; -var _default = GatewayDeleteK8SAuthConfig; +GetCertificateValue.prototype['uid-token'] = undefined; +/** + * Certificate version + * @member {Number} version + */ + +GetCertificateValue.prototype['version'] = undefined; +var _default = GetCertificateValue; exports["default"] = _default; /***/ }), -/***/ 50443: +/***/ 70936: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64655,9 +141242,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(79508)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64668,19 +141253,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDeleteK8SAuthConfigOutput model module. - * @module model/GatewayDeleteK8SAuthConfigOutput - * @version 3.3.16 + * The GetCertificateValueOutput model module. + * @module model/GetCertificateValueOutput + * @version 3.6.3 */ -var GatewayDeleteK8SAuthConfigOutput = /*#__PURE__*/function () { +var GetCertificateValueOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayDeleteK8SAuthConfigOutput. - * @alias module:model/GatewayDeleteK8SAuthConfigOutput + * Constructs a new GetCertificateValueOutput. + * @alias module:model/GetCertificateValueOutput */ - function GatewayDeleteK8SAuthConfigOutput() { - _classCallCheck(this, GatewayDeleteK8SAuthConfigOutput); + function GetCertificateValueOutput() { + _classCallCheck(this, GetCertificateValueOutput); - GatewayDeleteK8SAuthConfigOutput.initialize(this); + GetCertificateValueOutput.initialize(this); } /** * Initializes the fields of this object. @@ -64689,33 +141274,29 @@ var GatewayDeleteK8SAuthConfigOutput = /*#__PURE__*/function () { */ - _createClass(GatewayDeleteK8SAuthConfigOutput, null, [{ + _createClass(GetCertificateValueOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayDeleteK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetCertificateValueOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayDeleteK8SAuthConfigOutput} The populated GatewayDeleteK8SAuthConfigOutput instance. + * @param {module:model/GetCertificateValueOutput} obj Optional instance to populate. + * @return {module:model/GetCertificateValueOutput} The populated GetCertificateValueOutput instance. */ }, { key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteK8SAuthConfigOutput(); - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); - } + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetCertificateValueOutput(); - if (data.hasOwnProperty('parts_change')) { - obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); + if (data.hasOwnProperty('certificate_pem')) { + obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); } - if (data.hasOwnProperty('total_hash')) { - obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); + if (data.hasOwnProperty('private_key_pem')) { + obj['private_key_pem'] = _ApiClient["default"].convertToType(data['private_key_pem'], 'String'); } } @@ -64723,30 +141304,25 @@ var GatewayDeleteK8SAuthConfigOutput = /*#__PURE__*/function () { } }]); - return GatewayDeleteK8SAuthConfigOutput; + return GetCertificateValueOutput; }(); /** - * @member {String} cluster_id + * @member {String} certificate_pem */ -GatewayDeleteK8SAuthConfigOutput.prototype['cluster_id'] = undefined; -/** - * @member {module:model/ConfigChange} parts_change - */ - -GatewayDeleteK8SAuthConfigOutput.prototype['parts_change'] = undefined; +GetCertificateValueOutput.prototype['certificate_pem'] = undefined; /** - * @member {String} total_hash + * @member {String} private_key_pem */ -GatewayDeleteK8SAuthConfigOutput.prototype['total_hash'] = undefined; -var _default = GatewayDeleteK8SAuthConfigOutput; +GetCertificateValueOutput.prototype['private_key_pem'] = undefined; +var _default = GetCertificateValueOutput; exports["default"] = _default; /***/ }), -/***/ 62288: +/***/ 64275: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64757,7 +141333,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64768,21 +141344,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDeleteMigration model module. - * @module model/GatewayDeleteMigration - * @version 3.3.16 + * The GetDynamicSecretValue model module. + * @module model/GetDynamicSecretValue + * @version 3.6.3 */ -var GatewayDeleteMigration = /*#__PURE__*/function () { +var GetDynamicSecretValue = /*#__PURE__*/function () { /** - * Constructs a new GatewayDeleteMigration. - * gatewayDeleteMigration is a command that delete migration - * @alias module:model/GatewayDeleteMigration - * @param id {String} Migration ID + * Constructs a new GetDynamicSecretValue. + * @alias module:model/GetDynamicSecretValue + * @param name {String} Dynamic secret name */ - function GatewayDeleteMigration(id) { - _classCallCheck(this, GatewayDeleteMigration); + function GetDynamicSecretValue(name) { + _classCallCheck(this, GetDynamicSecretValue); - GatewayDeleteMigration.initialize(this, id); + GetDynamicSecretValue.initialize(this, name); } /** * Initializes the fields of this object. @@ -64791,33 +141366,49 @@ var GatewayDeleteMigration = /*#__PURE__*/function () { */ - _createClass(GatewayDeleteMigration, null, [{ + _createClass(GetDynamicSecretValue, null, [{ key: "initialize", - value: function initialize(obj, id) { - obj['id'] = id; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a GatewayDeleteMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetDynamicSecretValue from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteMigration} obj Optional instance to populate. - * @return {module:model/GatewayDeleteMigration} The populated GatewayDeleteMigration instance. + * @param {module:model/GetDynamicSecretValue} obj Optional instance to populate. + * @return {module:model/GetDynamicSecretValue} The populated GetDynamicSecretValue instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDeleteMigration(); + obj = obj || new GetDynamicSecretValue(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('args')) { + obj['args'] = _ApiClient["default"].convertToType(data['args'], ['String']); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -64831,40 +141422,65 @@ var GatewayDeleteMigration = /*#__PURE__*/function () { } }]); - return GatewayDeleteMigration; + return GetDynamicSecretValue; }(); /** - * Migration ID - * @member {String} id + * Optional arguments as key=value pairs or JSON strings, e.g - \\\"--args=csr=base64_encoded_csr --args=common_name=bar\\\" or args='{\\\"csr\\\":\\\"base64_encoded_csr\\\"}. It is possible to combine both formats.' + * @member {Array.} args */ -GatewayDeleteMigration.prototype['id'] = undefined; +GetDynamicSecretValue.prototype['args'] = undefined; +/** + * Host + * @member {String} host + */ + +GetDynamicSecretValue.prototype['host'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayDeleteMigration.prototype['json'] = false; +GetDynamicSecretValue.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GetDynamicSecretValue.prototype['name'] = undefined; +/** + * Target Name + * @member {String} target + */ + +GetDynamicSecretValue.prototype['target'] = undefined; +/** + * Timeout in seconds + * @member {Number} timeout + * @default 15 + */ + +GetDynamicSecretValue.prototype['timeout'] = 15; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayDeleteMigration.prototype['token'] = undefined; +GetDynamicSecretValue.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayDeleteMigration.prototype['uid-token'] = undefined; -var _default = GatewayDeleteMigration; +GetDynamicSecretValue.prototype['uid-token'] = undefined; +var _default = GetDynamicSecretValue; exports["default"] = _default; /***/ }), -/***/ 50948: +/***/ 39599: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64875,7 +141491,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -64886,21 +141502,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDeleteProducer model module. - * @module model/GatewayDeleteProducer - * @version 3.3.16 + * The GetEventForwarder model module. + * @module model/GetEventForwarder + * @version 3.6.3 */ -var GatewayDeleteProducer = /*#__PURE__*/function () { +var GetEventForwarder = /*#__PURE__*/function () { /** - * Constructs a new GatewayDeleteProducer. - * gatewayDeleteProducer is a command that deletes producer - * @alias module:model/GatewayDeleteProducer - * @param name {String} Producer name + * Constructs a new GetEventForwarder. + * getEventForwarder is a command that creates a new event forwarder [Deprecated - please use event-forwarder-get command] + * @alias module:model/GetEventForwarder + * @param name {String} EventForwarder name */ - function GatewayDeleteProducer(name) { - _classCallCheck(this, GatewayDeleteProducer); + function GetEventForwarder(name) { + _classCallCheck(this, GetEventForwarder); - GatewayDeleteProducer.initialize(this, name); + GetEventForwarder.initialize(this, name); } /** * Initializes the fields of this object. @@ -64909,24 +141525,24 @@ var GatewayDeleteProducer = /*#__PURE__*/function () { */ - _createClass(GatewayDeleteProducer, null, [{ + _createClass(GetEventForwarder, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayDeleteProducer from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetEventForwarder from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteProducer} obj Optional instance to populate. - * @return {module:model/GatewayDeleteProducer} The populated GatewayDeleteProducer instance. + * @param {module:model/GetEventForwarder} obj Optional instance to populate. + * @return {module:model/GetEventForwarder} The populated GetEventForwarder instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDeleteProducer(); + obj = obj || new GetEventForwarder(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -64949,7 +141565,7 @@ var GatewayDeleteProducer = /*#__PURE__*/function () { } }]); - return GatewayDeleteProducer; + return GetEventForwarder; }(); /** * Set output format to JSON @@ -64958,31 +141574,31 @@ var GatewayDeleteProducer = /*#__PURE__*/function () { */ -GatewayDeleteProducer.prototype['json'] = false; +GetEventForwarder.prototype['json'] = false; /** - * Producer name + * EventForwarder name * @member {String} name */ -GatewayDeleteProducer.prototype['name'] = undefined; +GetEventForwarder.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayDeleteProducer.prototype['token'] = undefined; +GetEventForwarder.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayDeleteProducer.prototype['uid-token'] = undefined; -var _default = GatewayDeleteProducer; +GetEventForwarder.prototype['uid-token'] = undefined; +var _default = GetEventForwarder; exports["default"] = _default; /***/ }), -/***/ 82940: +/***/ 47958: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64993,7 +141609,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(82007)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65004,19 +141622,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDeleteProducerOutput model module. - * @module model/GatewayDeleteProducerOutput - * @version 3.3.16 + * The GetEventForwarderOutput model module. + * @module model/GetEventForwarderOutput + * @version 3.6.3 */ -var GatewayDeleteProducerOutput = /*#__PURE__*/function () { +var GetEventForwarderOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayDeleteProducerOutput. - * @alias module:model/GatewayDeleteProducerOutput + * Constructs a new GetEventForwarderOutput. + * @alias module:model/GetEventForwarderOutput */ - function GatewayDeleteProducerOutput() { - _classCallCheck(this, GatewayDeleteProducerOutput); + function GetEventForwarderOutput() { + _classCallCheck(this, GetEventForwarderOutput); - GatewayDeleteProducerOutput.initialize(this); + GetEventForwarderOutput.initialize(this); } /** * Initializes the fields of this object. @@ -65025,25 +141643,25 @@ var GatewayDeleteProducerOutput = /*#__PURE__*/function () { */ - _createClass(GatewayDeleteProducerOutput, null, [{ + _createClass(GetEventForwarderOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayDeleteProducerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteProducerOutput} obj Optional instance to populate. - * @return {module:model/GatewayDeleteProducerOutput} The populated GatewayDeleteProducerOutput instance. + * @param {module:model/GetEventForwarderOutput} obj Optional instance to populate. + * @return {module:model/GetEventForwarderOutput} The populated GetEventForwarderOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDeleteProducerOutput(); + obj = obj || new GetEventForwarderOutput(); - if (data.hasOwnProperty('producer_name')) { - obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); + if (data.hasOwnProperty('event_forwarder')) { + obj['event_forwarder'] = _NotiForwarder["default"].constructFromObject(data['event_forwarder']); } } @@ -65051,20 +141669,20 @@ var GatewayDeleteProducerOutput = /*#__PURE__*/function () { } }]); - return GatewayDeleteProducerOutput; + return GetEventForwarderOutput; }(); /** - * @member {String} producer_name + * @member {module:model/NotiForwarder} event_forwarder */ -GatewayDeleteProducerOutput.prototype['producer_name'] = undefined; -var _default = GatewayDeleteProducerOutput; +GetEventForwarderOutput.prototype['event_forwarder'] = undefined; +var _default = GetEventForwarderOutput; exports["default"] = _default; /***/ }), -/***/ 85186: +/***/ 39734: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -65075,7 +141693,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65086,20 +141704,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDownloadCustomerFragments model module. - * @module model/GatewayDownloadCustomerFragments - * @version 3.3.16 + * The GetGroup model module. + * @module model/GetGroup + * @version 3.6.3 */ -var GatewayDownloadCustomerFragments = /*#__PURE__*/function () { +var GetGroup = /*#__PURE__*/function () { /** - * Constructs a new GatewayDownloadCustomerFragments. - * gatewayDownloadCustomerFragments is a command that downloads customer fragments - * @alias module:model/GatewayDownloadCustomerFragments + * Constructs a new GetGroup. + * @alias module:model/GetGroup + * @param name {String} Group name */ - function GatewayDownloadCustomerFragments() { - _classCallCheck(this, GatewayDownloadCustomerFragments); + function GetGroup(name) { + _classCallCheck(this, GetGroup); - GatewayDownloadCustomerFragments.initialize(this); + GetGroup.initialize(this, name); } /** * Initializes the fields of this object. @@ -65108,27 +141726,33 @@ var GatewayDownloadCustomerFragments = /*#__PURE__*/function () { */ - _createClass(GatewayDownloadCustomerFragments, null, [{ + _createClass(GetGroup, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a GatewayDownloadCustomerFragments from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetGroup from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDownloadCustomerFragments} obj Optional instance to populate. - * @return {module:model/GatewayDownloadCustomerFragments} The populated GatewayDownloadCustomerFragments instance. + * @param {module:model/GetGroup} obj Optional instance to populate. + * @return {module:model/GetGroup} The populated GetGroup instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDownloadCustomerFragments(); + obj = obj || new GetGroup(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -65142,7 +141766,7 @@ var GatewayDownloadCustomerFragments = /*#__PURE__*/function () { } }]); - return GatewayDownloadCustomerFragments; + return GetGroup; }(); /** * Set output format to JSON @@ -65151,25 +141775,31 @@ var GatewayDownloadCustomerFragments = /*#__PURE__*/function () { */ -GatewayDownloadCustomerFragments.prototype['json'] = false; +GetGroup.prototype['json'] = false; +/** + * Group name + * @member {String} name + */ + +GetGroup.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayDownloadCustomerFragments.prototype['token'] = undefined; +GetGroup.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayDownloadCustomerFragments.prototype['uid-token'] = undefined; -var _default = GatewayDownloadCustomerFragments; +GetGroup.prototype['uid-token'] = undefined; +var _default = GetGroup; exports["default"] = _default; /***/ }), -/***/ 11802: +/***/ 89459: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -65180,7 +141810,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(58545)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65191,19 +141823,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayDownloadCustomerFragmentsOutput model module. - * @module model/GatewayDownloadCustomerFragmentsOutput - * @version 3.3.16 + * The GetGroupOutput model module. + * @module model/GetGroupOutput + * @version 3.6.3 */ -var GatewayDownloadCustomerFragmentsOutput = /*#__PURE__*/function () { +var GetGroupOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayDownloadCustomerFragmentsOutput. - * @alias module:model/GatewayDownloadCustomerFragmentsOutput + * Constructs a new GetGroupOutput. + * @alias module:model/GetGroupOutput */ - function GatewayDownloadCustomerFragmentsOutput() { - _classCallCheck(this, GatewayDownloadCustomerFragmentsOutput); + function GetGroupOutput() { + _classCallCheck(this, GetGroupOutput); - GatewayDownloadCustomerFragmentsOutput.initialize(this); + GetGroupOutput.initialize(this); } /** * Initializes the fields of this object. @@ -65212,27 +141844,53 @@ var GatewayDownloadCustomerFragmentsOutput = /*#__PURE__*/function () { */ - _createClass(GatewayDownloadCustomerFragmentsOutput, null, [{ + _createClass(GetGroupOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayDownloadCustomerFragmentsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetGroupOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDownloadCustomerFragmentsOutput} obj Optional instance to populate. - * @return {module:model/GatewayDownloadCustomerFragmentsOutput} The populated GatewayDownloadCustomerFragmentsOutput instance. + * @param {module:model/GetGroupOutput} obj Optional instance to populate. + * @return {module:model/GetGroupOutput} The populated GetGroupOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayDownloadCustomerFragmentsOutput(); + obj = obj || new GetGroupOutput(); - if (data.hasOwnProperty('cf_json')) { - obj['cf_json'] = _ApiClient["default"].convertToType(data['cf_json'], { - 'String': Object - }); + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('group_alias')) { + obj['group_alias'] = _ApiClient["default"].convertToType(data['group_alias'], 'String'); + } + + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = _ApiClient["default"].convertToType(data['group_id'], 'String'); + } + + if (data.hasOwnProperty('group_name')) { + obj['group_name'] = _ApiClient["default"].convertToType(data['group_name'], 'String'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + + if (data.hasOwnProperty('user_assignments')) { + obj['user_assignments'] = _ApiClient["default"].convertToType(data['user_assignments'], [_AccessPermissionAssignment["default"]]); } } @@ -65240,20 +141898,55 @@ var GatewayDownloadCustomerFragmentsOutput = /*#__PURE__*/function () { } }]); - return GatewayDownloadCustomerFragmentsOutput; + return GetGroupOutput; }(); /** - * @member {Object.} cf_json + * @member {String} account_id */ -GatewayDownloadCustomerFragmentsOutput.prototype['cf_json'] = undefined; -var _default = GatewayDownloadCustomerFragmentsOutput; +GetGroupOutput.prototype['account_id'] = undefined; +/** + * @member {Date} creation_date + */ + +GetGroupOutput.prototype['creation_date'] = undefined; +/** + * @member {String} description + */ + +GetGroupOutput.prototype['description'] = undefined; +/** + * @member {String} group_alias + */ + +GetGroupOutput.prototype['group_alias'] = undefined; +/** + * @member {String} group_id + */ + +GetGroupOutput.prototype['group_id'] = undefined; +/** + * @member {String} group_name + */ + +GetGroupOutput.prototype['group_name'] = undefined; +/** + * @member {Date} modification_date + */ + +GetGroupOutput.prototype['modification_date'] = undefined; +/** + * @member {Array.} user_assignments + */ + +GetGroupOutput.prototype['user_assignments'] = undefined; +var _default = GetGroupOutput; exports["default"] = _default; /***/ }), -/***/ 71402: +/***/ 61656: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -65264,7 +141957,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65275,21 +141968,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetAllowedAccess model module. - * @module model/GatewayGetAllowedAccess - * @version 3.3.16 + * The GetKubeExecCreds model module. + * @module model/GetKubeExecCreds + * @version 3.6.3 */ -var GatewayGetAllowedAccess = /*#__PURE__*/function () { +var GetKubeExecCreds = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetAllowedAccess. - * gatewayGetAllowedAccess is a command that gets allowed access from gateway - * @alias module:model/GatewayGetAllowedAccess - * @param name {String} Allowed access name + * Constructs a new GetKubeExecCreds. + * getKubeExecCreds is a command that gets credentials for authentication with Kubernetes cluster based on a PKI cert issuer. + * @alias module:model/GetKubeExecCreds + * @param certIssuerName {String} The name of the PKI certificate issuer */ - function GatewayGetAllowedAccess(name) { - _classCallCheck(this, GatewayGetAllowedAccess); + function GetKubeExecCreds(certIssuerName) { + _classCallCheck(this, GetKubeExecCreds); - GatewayGetAllowedAccess.initialize(this, name); + GetKubeExecCreds.initialize(this, certIssuerName); } /** * Initializes the fields of this object. @@ -65298,80 +141991,171 @@ var GatewayGetAllowedAccess = /*#__PURE__*/function () { */ - _createClass(GatewayGetAllowedAccess, null, [{ + _createClass(GetKubeExecCreds, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, certIssuerName) { + obj['cert-issuer-name'] = certIssuerName; } /** - * Constructs a GatewayGetAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetKubeExecCreds from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayGetAllowedAccess} The populated GatewayGetAllowedAccess instance. + * @param {module:model/GetKubeExecCreds} obj Optional instance to populate. + * @return {module:model/GetKubeExecCreds} The populated GetKubeExecCreds instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetAllowedAccess(); + obj = obj || new GetKubeExecCreds(); + + if (data.hasOwnProperty('alt-names')) { + obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); + } + + if (data.hasOwnProperty('api-version')) { + obj['api-version'] = _ApiClient["default"].convertToType(data['api-version'], 'String'); + } + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } + + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); + } + + if (data.hasOwnProperty('csr-data-base64')) { + obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); + } + + if (data.hasOwnProperty('extended-key-usage')) { + obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); + } + + if (data.hasOwnProperty('extra-extensions')) { + obj['extra-extensions'] = _ApiClient["default"].convertToType(data['extra-extensions'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('key-data-base64')) { + obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + } } return obj; } }]); - return GatewayGetAllowedAccess; + return GetKubeExecCreds; }(); +/** + * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) + * @member {String} alt-names + */ + + +GetKubeExecCreds.prototype['alt-names'] = undefined; +/** + * Client authentication API version + * @member {String} api-version + * @default 'v1' + */ + +GetKubeExecCreds.prototype['api-version'] = 'v1'; +/** + * The name of the PKI certificate issuer + * @member {String} cert-issuer-name + */ + +GetKubeExecCreds.prototype['cert-issuer-name'] = undefined; +/** + * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) + * @member {String} common-name + */ + +GetKubeExecCreds.prototype['common-name'] = undefined; +/** + * Certificate Signing Request contents encoded in base64 to generate the certificate with + * @member {String} csr-data-base64 + */ + +GetKubeExecCreds.prototype['csr-data-base64'] = undefined; +/** + * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. + * @member {String} extended-key-usage + */ + +GetKubeExecCreds.prototype['extended-key-usage'] = undefined; +/** + * A json string that defines the requested extra extensions for the certificate + * @member {String} extra-extensions + */ + +GetKubeExecCreds.prototype['extra-extensions'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ - -GatewayGetAllowedAccess.prototype['json'] = false; +GetKubeExecCreds.prototype['json'] = false; /** - * Allowed access name - * @member {String} name + * PKI key file contents. If this option is used, the certificate will be printed to stdout + * @member {String} key-data-base64 */ -GatewayGetAllowedAccess.prototype['name'] = undefined; +GetKubeExecCreds.prototype['key-data-base64'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayGetAllowedAccess.prototype['token'] = undefined; +GetKubeExecCreds.prototype['token'] = undefined; +/** + * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) + * @member {Number} ttl + */ + +GetKubeExecCreds.prototype['ttl'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayGetAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayGetAllowedAccess; +GetKubeExecCreds.prototype['uid-token'] = undefined; +/** + * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) + * @member {String} uri-sans + */ + +GetKubeExecCreds.prototype['uri-sans'] = undefined; +var _default = GetKubeExecCreds; exports["default"] = _default; /***/ }), -/***/ 11488: +/***/ 3697: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -65382,7 +142166,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ClientData = _interopRequireDefault(__nccwpck_require__(68470)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65393,20 +142179,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetConfig model module. - * @module model/GatewayGetConfig - * @version 3.3.16 + * The GetKubeExecCredsOutput model module. + * @module model/GetKubeExecCredsOutput + * @version 3.6.3 */ -var GatewayGetConfig = /*#__PURE__*/function () { +var GetKubeExecCredsOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetConfig. - * gatewayGetConfig is a command that returns gateway configuration - * @alias module:model/GatewayGetConfig + * Constructs a new GetKubeExecCredsOutput. + * @alias module:model/GetKubeExecCredsOutput */ - function GatewayGetConfig() { - _classCallCheck(this, GatewayGetConfig); + function GetKubeExecCredsOutput() { + _classCallCheck(this, GetKubeExecCredsOutput); - GatewayGetConfig.initialize(this); + GetKubeExecCredsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -65415,33 +142200,33 @@ var GatewayGetConfig = /*#__PURE__*/function () { */ - _createClass(GatewayGetConfig, null, [{ + _createClass(GetKubeExecCredsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayGetConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetKubeExecCredsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetConfig} obj Optional instance to populate. - * @return {module:model/GatewayGetConfig} The populated GatewayGetConfig instance. + * @param {module:model/GetKubeExecCredsOutput} obj Optional instance to populate. + * @return {module:model/GetKubeExecCredsOutput} The populated GetKubeExecCredsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetConfig(); + obj = obj || new GetKubeExecCredsOutput(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('apiVersion')) { + obj['apiVersion'] = _ApiClient["default"].convertToType(data['apiVersion'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('kind')) { + obj['kind'] = _ApiClient["default"].convertToType(data['kind'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('status')) { + obj['status'] = _ClientData["default"].constructFromObject(data['status']); } } @@ -65449,34 +142234,30 @@ var GatewayGetConfig = /*#__PURE__*/function () { } }]); - return GatewayGetConfig; + return GetKubeExecCredsOutput; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} apiVersion */ -GatewayGetConfig.prototype['json'] = false; +GetKubeExecCredsOutput.prototype['apiVersion'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} kind */ -GatewayGetConfig.prototype['token'] = undefined; +GetKubeExecCredsOutput.prototype['kind'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/ClientData} status */ -GatewayGetConfig.prototype['uid-token'] = undefined; -var _default = GatewayGetConfig; +GetKubeExecCredsOutput.prototype['status'] = undefined; +var _default = GetKubeExecCredsOutput; exports["default"] = _default; /***/ }), -/***/ 24545: +/***/ 71422: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -65487,7 +142268,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65498,21 +142279,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetK8SAuthConfig model module. - * @module model/GatewayGetK8SAuthConfig - * @version 3.3.16 + * The GetLastUserEventStatus model module. + * @module model/GetLastUserEventStatus + * @version 3.6.3 */ -var GatewayGetK8SAuthConfig = /*#__PURE__*/function () { +var GetLastUserEventStatus = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetK8SAuthConfig. - * gatewayGetK8SAuth is a command that gets k8s auth config - * @alias module:model/GatewayGetK8SAuthConfig - * @param name {String} K8S Auth config name + * Constructs a new GetLastUserEventStatus. + * @alias module:model/GetLastUserEventStatus + * @param eventType {String} + * @param itemName {String} Event item name + * @param itemType {String} Event item type can be either \"target\" or type of item eg \"static_secret\"/\"dynamic_secret\" To get type of some item run `akeyless describe-item -n {ITEM_NAME} --jq-expression .item_type` */ - function GatewayGetK8SAuthConfig(name) { - _classCallCheck(this, GatewayGetK8SAuthConfig); + function GetLastUserEventStatus(eventType, itemName, itemType) { + _classCallCheck(this, GetLastUserEventStatus); - GatewayGetK8SAuthConfig.initialize(this, name); + GetLastUserEventStatus.initialize(this, eventType, itemName, itemType); } /** * Initializes the fields of this object. @@ -65521,31 +142303,49 @@ var GatewayGetK8SAuthConfig = /*#__PURE__*/function () { */ - _createClass(GatewayGetK8SAuthConfig, null, [{ + _createClass(GetLastUserEventStatus, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, eventType, itemName, itemType) { + obj['event-type'] = eventType; + obj['item-name'] = itemName; + obj['item-type'] = itemType; } /** - * Constructs a GatewayGetK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetLastUserEventStatus from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayGetK8SAuthConfig} The populated GatewayGetK8SAuthConfig instance. + * @param {module:model/GetLastUserEventStatus} obj Optional instance to populate. + * @return {module:model/GetLastUserEventStatus} The populated GetLastUserEventStatus instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetK8SAuthConfig(); + obj = obj || new GetLastUserEventStatus(); + + if (data.hasOwnProperty('event-source')) { + obj['event-source'] = _ApiClient["default"].convertToType(data['event-source'], 'String'); + } + + if (data.hasOwnProperty('event-type')) { + obj['event-type'] = _ApiClient["default"].convertToType(data['event-type'], 'String'); + } + + if (data.hasOwnProperty('item-name')) { + obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); + } + + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('time-back')) { + obj['time-back'] = _ApiClient["default"].convertToType(data['time-back'], 'String'); } if (data.hasOwnProperty('token')) { @@ -65561,40 +142361,62 @@ var GatewayGetK8SAuthConfig = /*#__PURE__*/function () { } }]); - return GatewayGetK8SAuthConfig; + return GetLastUserEventStatus; }(); +/** + * @member {String} event-source + */ + + +GetLastUserEventStatus.prototype['event-source'] = undefined; +/** + * @member {String} event-type + */ + +GetLastUserEventStatus.prototype['event-type'] = undefined; +/** + * Event item name + * @member {String} item-name + */ + +GetLastUserEventStatus.prototype['item-name'] = undefined; +/** + * Event item type can be either \"target\" or type of item eg \"static_secret\"/\"dynamic_secret\" To get type of some item run `akeyless describe-item -n {ITEM_NAME} --jq-expression .item_type` + * @member {String} item-type + */ + +GetLastUserEventStatus.prototype['item-type'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ - -GatewayGetK8SAuthConfig.prototype['json'] = false; +GetLastUserEventStatus.prototype['json'] = false; /** - * K8S Auth config name - * @member {String} name + * The time back to search the event, for example if the value is \"5m\" we will return the last user event issued in the last 5 minutes. By default, we will search without any time boundary. + * @member {String} time-back */ -GatewayGetK8SAuthConfig.prototype['name'] = undefined; +GetLastUserEventStatus.prototype['time-back'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayGetK8SAuthConfig.prototype['token'] = undefined; +GetLastUserEventStatus.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayGetK8SAuthConfig.prototype['uid-token'] = undefined; -var _default = GatewayGetK8SAuthConfig; +GetLastUserEventStatus.prototype['uid-token'] = undefined; +var _default = GetLastUserEventStatus; exports["default"] = _default; /***/ }), -/***/ 80582: +/***/ 31150: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -65605,7 +142427,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65616,19 +142438,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetK8SAuthConfigOutput model module. - * @module model/GatewayGetK8SAuthConfigOutput - * @version 3.3.16 + * The GetPKICertificate model module. + * @module model/GetPKICertificate + * @version 3.6.3 */ -var GatewayGetK8SAuthConfigOutput = /*#__PURE__*/function () { +var GetPKICertificate = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetK8SAuthConfigOutput. - * @alias module:model/GatewayGetK8SAuthConfigOutput + * Constructs a new GetPKICertificate. + * @alias module:model/GetPKICertificate + * @param certIssuerName {String} The name of the PKI certificate issuer */ - function GatewayGetK8SAuthConfigOutput() { - _classCallCheck(this, GatewayGetK8SAuthConfigOutput); + function GetPKICertificate(certIssuerName) { + _classCallCheck(this, GetPKICertificate); - GatewayGetK8SAuthConfigOutput.initialize(this); + GetPKICertificate.initialize(this, certIssuerName); } /** * Initializes the fields of this object. @@ -65637,85 +142460,71 @@ var GatewayGetK8SAuthConfigOutput = /*#__PURE__*/function () { */ - _createClass(GatewayGetK8SAuthConfigOutput, null, [{ + _createClass(GetPKICertificate, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, certIssuerName) { + obj['cert-issuer-name'] = certIssuerName; + } /** - * Constructs a GatewayGetK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetPKICertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayGetK8SAuthConfigOutput} The populated GatewayGetK8SAuthConfigOutput instance. + * @param {module:model/GetPKICertificate} obj Optional instance to populate. + * @return {module:model/GetPKICertificate} The populated GetPKICertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetK8SAuthConfigOutput(); - - if (data.hasOwnProperty('am_token_expiration')) { - obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); - } - - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_prv_key_pem')) { - obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); - } - - if (data.hasOwnProperty('cluster_api_type')) { - obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); - } + obj = obj || new GetPKICertificate(); - if (data.hasOwnProperty('disable_iss_validation')) { - obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); + if (data.hasOwnProperty('alt-names')) { + obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); } - if (data.hasOwnProperty('k8s_ca_cert')) { - obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); } - if (data.hasOwnProperty('k8s_host')) { - obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); + if (data.hasOwnProperty('csr-data-base64')) { + obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); } - if (data.hasOwnProperty('k8s_issuer')) { - obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); + if (data.hasOwnProperty('extended-key-usage')) { + obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); } - if (data.hasOwnProperty('k8s_pub_keys_pem')) { - obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); + if (data.hasOwnProperty('extra-extensions')) { + obj['extra-extensions'] = _ApiClient["default"].convertToType(data['extra-extensions'], 'String'); } - if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { - obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('key-data-base64')) { + obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('rancher_api_key')) { - obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); } - if (data.hasOwnProperty('rancher_cluster_id')) { - obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use_local_ca_jwt')) { - obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); } } @@ -65723,213 +142532,88 @@ var GatewayGetK8SAuthConfigOutput = /*#__PURE__*/function () { } }]); - return GatewayGetK8SAuthConfigOutput; + return GetPKICertificate; }(); /** - * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} am_token_expiration - */ - - -GatewayGetK8SAuthConfigOutput.prototype['am_token_expiration'] = undefined; -/** - * AuthMethodAccessId of the Kubernetes auth method - * @member {String} auth_method_access_id - */ - -GatewayGetK8SAuthConfigOutput.prototype['auth_method_access_id'] = undefined; -/** - * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method - * @member {String} auth_method_prv_key_pem - */ - -GatewayGetK8SAuthConfigOutput.prototype['auth_method_prv_key_pem'] = undefined; -/** - * ClusterApiType defines types of API access to cluster - * @member {String} cluster_api_type - */ - -GatewayGetK8SAuthConfigOutput.prototype['cluster_api_type'] = undefined; -/** - * DisableISSValidation is optional parameter to disable ISS validation - * @member {Boolean} disable_iss_validation - */ - -GatewayGetK8SAuthConfigOutput.prototype['disable_iss_validation'] = undefined; -/** - * @member {String} id - */ - -GatewayGetK8SAuthConfigOutput.prototype['id'] = undefined; -/** - * K8SCACert is the CA Cert to use to call into the kubernetes API - * @member {String} k8s_ca_cert - */ - -GatewayGetK8SAuthConfigOutput.prototype['k8s_ca_cert'] = undefined; -/** - * K8SHost is the url string for the kubernetes API - * @member {String} k8s_host + * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) + * @member {String} alt-names */ -GatewayGetK8SAuthConfigOutput.prototype['k8s_host'] = undefined; -/** - * K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s_issuer - */ -GatewayGetK8SAuthConfigOutput.prototype['k8s_issuer'] = undefined; +GetPKICertificate.prototype['alt-names'] = undefined; /** - * K8SPublicKeysPEM is the list of public key in PEM format - * @member {Array.} k8s_pub_keys_pem + * The name of the PKI certificate issuer + * @member {String} cert-issuer-name */ -GatewayGetK8SAuthConfigOutput.prototype['k8s_pub_keys_pem'] = undefined; +GetPKICertificate.prototype['cert-issuer-name'] = undefined; /** - * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call - * @member {String} k8s_token_reviewer_jwt + * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) + * @member {String} common-name */ -GatewayGetK8SAuthConfigOutput.prototype['k8s_token_reviewer_jwt'] = undefined; +GetPKICertificate.prototype['common-name'] = undefined; /** - * @member {String} name + * Certificate Signing Request contents encoded in base64 to generate the certificate with + * @member {String} csr-data-base64 */ -GatewayGetK8SAuthConfigOutput.prototype['name'] = undefined; +GetPKICertificate.prototype['csr-data-base64'] = undefined; /** - * @member {String} protection_key + * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. + * @member {String} extended-key-usage */ -GatewayGetK8SAuthConfigOutput.prototype['protection_key'] = undefined; +GetPKICertificate.prototype['extended-key-usage'] = undefined; /** - * RancherApiKey the bear token for clusterApiTypeRancher - * @member {String} rancher_api_key + * A json string that defines the requested extra extensions for the certificate + * @member {String} extra-extensions */ -GatewayGetK8SAuthConfigOutput.prototype['rancher_api_key'] = undefined; +GetPKICertificate.prototype['extra-extensions'] = undefined; /** - * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) - * @member {String} rancher_cluster_id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayGetK8SAuthConfigOutput.prototype['rancher_cluster_id'] = undefined; +GetPKICertificate.prototype['json'] = false; /** - * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod - * @member {Boolean} use_local_ca_jwt + * PKI key file contents. If this option is used, the certificate will be printed to stdout + * @member {String} key-data-base64 */ -GatewayGetK8SAuthConfigOutput.prototype['use_local_ca_jwt'] = undefined; -var _default = GatewayGetK8SAuthConfigOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 87398: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +GetPKICertificate.prototype['key-data-base64'] = undefined; /** - * The GatewayGetLdapAuthConfig model module. - * @module model/GatewayGetLdapAuthConfig - * @version 3.3.16 + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -var GatewayGetLdapAuthConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetLdapAuthConfig. - * gatewayGetLdapAuth is a command that gets ldap auth config - * @alias module:model/GatewayGetLdapAuthConfig - */ - function GatewayGetLdapAuthConfig() { - _classCallCheck(this, GatewayGetLdapAuthConfig); - - GatewayGetLdapAuthConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetLdapAuthConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayGetLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetLdapAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayGetLdapAuthConfig} The populated GatewayGetLdapAuthConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetLdapAuthConfig(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - return GatewayGetLdapAuthConfig; -}(); +GetPKICertificate.prototype['token'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) + * @member {Number} ttl */ - -GatewayGetLdapAuthConfig.prototype['json'] = false; +GetPKICertificate.prototype['ttl'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayGetLdapAuthConfig.prototype['token'] = undefined; +GetPKICertificate.prototype['uid-token'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) + * @member {String} uri-sans */ -GatewayGetLdapAuthConfig.prototype['uid-token'] = undefined; -var _default = GatewayGetLdapAuthConfig; +GetPKICertificate.prototype['uri-sans'] = undefined; +var _default = GetPKICertificate; exports["default"] = _default; /***/ }), -/***/ 39357: +/***/ 44315: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -65940,7 +142624,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -65951,19 +142635,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetLdapAuthConfigOutput model module. - * @module model/GatewayGetLdapAuthConfigOutput - * @version 3.3.16 + * The GetPKICertificateOutput model module. + * @module model/GetPKICertificateOutput + * @version 3.6.3 */ -var GatewayGetLdapAuthConfigOutput = /*#__PURE__*/function () { +var GetPKICertificateOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetLdapAuthConfigOutput. - * @alias module:model/GatewayGetLdapAuthConfigOutput + * Constructs a new GetPKICertificateOutput. + * @alias module:model/GetPKICertificateOutput */ - function GatewayGetLdapAuthConfigOutput() { - _classCallCheck(this, GatewayGetLdapAuthConfigOutput); + function GetPKICertificateOutput() { + _classCallCheck(this, GetPKICertificateOutput); - GatewayGetLdapAuthConfigOutput.initialize(this); + GetPKICertificateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -65972,77 +142656,41 @@ var GatewayGetLdapAuthConfigOutput = /*#__PURE__*/function () { */ - _createClass(GatewayGetLdapAuthConfigOutput, null, [{ + _createClass(GetPKICertificateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayGetLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetPKICertificateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetLdapAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayGetLdapAuthConfigOutput} The populated GatewayGetLdapAuthConfigOutput instance. + * @param {module:model/GetPKICertificateOutput} obj Optional instance to populate. + * @return {module:model/GetPKICertificateOutput} The populated GetPKICertificateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetLdapAuthConfigOutput(); - - if (data.hasOwnProperty('ldap_access_id')) { - obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); - } - - if (data.hasOwnProperty('ldap_anonymous_search')) { - obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); - } - - if (data.hasOwnProperty('ldap_cert')) { - obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); - } - - if (data.hasOwnProperty('ldap_enable')) { - obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap_group_attr')) { - obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); - } - - if (data.hasOwnProperty('ldap_group_dn')) { - obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_group_filter')) { - obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); - } + obj = obj || new GetPKICertificateOutput(); - if (data.hasOwnProperty('ldap_private_key')) { - obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); + if (data.hasOwnProperty('cert_display_id')) { + obj['cert_display_id'] = _ApiClient["default"].convertToType(data['cert_display_id'], 'String'); } - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); } - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + if (data.hasOwnProperty('parent_cert')) { + obj['parent_cert'] = _ApiClient["default"].convertToType(data['parent_cert'], 'String'); } - if (data.hasOwnProperty('ldap_user_attr')) { - obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } - if (data.hasOwnProperty('ldap_user_dn')) { - obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); + if (data.hasOwnProperty('reading_token')) { + obj['reading_token'] = _ApiClient["default"].convertToType(data['reading_token'], 'String'); } } @@ -66050,85 +142698,40 @@ var GatewayGetLdapAuthConfigOutput = /*#__PURE__*/function () { } }]); - return GatewayGetLdapAuthConfigOutput; + return GetPKICertificateOutput; }(); /** - * @member {String} ldap_access_id - */ - - -GatewayGetLdapAuthConfigOutput.prototype['ldap_access_id'] = undefined; -/** - * @member {Boolean} ldap_anonymous_search - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_anonymous_search'] = undefined; -/** - * @member {String} ldap_bind_dn - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_dn'] = undefined; -/** - * @member {String} ldap_bind_password - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_password'] = undefined; -/** - * @member {String} ldap_cert - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_cert'] = undefined; -/** - * @member {Boolean} ldap_enable - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_enable'] = undefined; -/** - * @member {String} ldap_group_attr - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_group_attr'] = undefined; -/** - * @member {String} ldap_group_dn - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_group_dn'] = undefined; -/** - * @member {String} ldap_group_filter + * @member {String} cert_display_id */ -GatewayGetLdapAuthConfigOutput.prototype['ldap_group_filter'] = undefined; -/** - * @member {String} ldap_private_key - */ -GatewayGetLdapAuthConfigOutput.prototype['ldap_private_key'] = undefined; +GetPKICertificateOutput.prototype['cert_display_id'] = undefined; /** - * @member {String} ldap_token_expiration + * @member {String} data */ -GatewayGetLdapAuthConfigOutput.prototype['ldap_token_expiration'] = undefined; +GetPKICertificateOutput.prototype['data'] = undefined; /** - * @member {String} ldap_url + * @member {String} parent_cert */ -GatewayGetLdapAuthConfigOutput.prototype['ldap_url'] = undefined; +GetPKICertificateOutput.prototype['parent_cert'] = undefined; /** - * @member {String} ldap_user_attr + * @member {String} path */ -GatewayGetLdapAuthConfigOutput.prototype['ldap_user_attr'] = undefined; +GetPKICertificateOutput.prototype['path'] = undefined; /** - * @member {String} ldap_user_dn + * @member {String} reading_token */ -GatewayGetLdapAuthConfigOutput.prototype['ldap_user_dn'] = undefined; -var _default = GatewayGetLdapAuthConfigOutput; +GetPKICertificateOutput.prototype['reading_token'] = undefined; +var _default = GetPKICertificateOutput; exports["default"] = _default; /***/ }), -/***/ 711: +/***/ 91343: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66139,7 +142742,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _Producer = _interopRequireDefault(__nccwpck_require__(56263)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66150,20 +142755,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetMigration model module. - * @module model/GatewayGetMigration - * @version 3.3.16 + * The GetProducersListReplyObj model module. + * @module model/GetProducersListReplyObj + * @version 3.6.3 */ -var GatewayGetMigration = /*#__PURE__*/function () { +var GetProducersListReplyObj = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetMigration. - * gatewayGetMigration is a command that get migration - * @alias module:model/GatewayGetMigration + * Constructs a new GetProducersListReplyObj. + * @alias module:model/GetProducersListReplyObj */ - function GatewayGetMigration() { - _classCallCheck(this, GatewayGetMigration); + function GetProducersListReplyObj() { + _classCallCheck(this, GetProducersListReplyObj); - GatewayGetMigration.initialize(this); + GetProducersListReplyObj.initialize(this); } /** * Initializes the fields of this object. @@ -66172,37 +142776,29 @@ var GatewayGetMigration = /*#__PURE__*/function () { */ - _createClass(GatewayGetMigration, null, [{ + _createClass(GetProducersListReplyObj, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayGetMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetProducersListReplyObj from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetMigration} obj Optional instance to populate. - * @return {module:model/GatewayGetMigration} The populated GatewayGetMigration instance. + * @param {module:model/GetProducersListReplyObj} obj Optional instance to populate. + * @return {module:model/GetProducersListReplyObj} The populated GetProducersListReplyObj instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetMigration(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } + obj = obj || new GetProducersListReplyObj(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('producers_errors')) { + obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); } } @@ -66210,40 +142806,25 @@ var GatewayGetMigration = /*#__PURE__*/function () { } }]); - return GatewayGetMigration; + return GetProducersListReplyObj; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetMigration.prototype['json'] = false; -/** - * Migration name to display - * @member {String} name + * @member {Array.} producers */ -GatewayGetMigration.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ -GatewayGetMigration.prototype['token'] = undefined; +GetProducersListReplyObj.prototype['producers'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Object} producers_errors */ -GatewayGetMigration.prototype['uid-token'] = undefined; -var _default = GatewayGetMigration; +GetProducersListReplyObj.prototype['producers_errors'] = undefined; +var _default = GetProducersListReplyObj; exports["default"] = _default; /***/ }), -/***/ 58440: +/***/ 26250: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66254,7 +142835,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66265,21 +142846,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetProducer model module. - * @module model/GatewayGetProducer - * @version 3.3.16 + * The GetRSAPublic model module. + * @module model/GetRSAPublic + * @version 3.6.3 */ -var GatewayGetProducer = /*#__PURE__*/function () { +var GetRSAPublic = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetProducer. - * gatewayGetProducer is a command that returns producer - * @alias module:model/GatewayGetProducer - * @param name {String} Producer name + * Constructs a new GetRSAPublic. + * getRSAPublic is a command that obtains the public key from a specific RSA private key. + * @alias module:model/GetRSAPublic + * @param name {String} Name of RSA key to extract the public key from */ - function GatewayGetProducer(name) { - _classCallCheck(this, GatewayGetProducer); + function GetRSAPublic(name) { + _classCallCheck(this, GetRSAPublic); - GatewayGetProducer.initialize(this, name); + GetRSAPublic.initialize(this, name); } /** * Initializes the fields of this object. @@ -66288,24 +142869,24 @@ var GatewayGetProducer = /*#__PURE__*/function () { */ - _createClass(GatewayGetProducer, null, [{ + _createClass(GetRSAPublic, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GatewayGetProducer from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetRSAPublic from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetProducer} obj Optional instance to populate. - * @return {module:model/GatewayGetProducer} The populated GatewayGetProducer instance. + * @param {module:model/GetRSAPublic} obj Optional instance to populate. + * @return {module:model/GetRSAPublic} The populated GetRSAPublic instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetProducer(); + obj = obj || new GetRSAPublic(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -66328,7 +142909,7 @@ var GatewayGetProducer = /*#__PURE__*/function () { } }]); - return GatewayGetProducer; + return GetRSAPublic; }(); /** * Set output format to JSON @@ -66337,31 +142918,31 @@ var GatewayGetProducer = /*#__PURE__*/function () { */ -GatewayGetProducer.prototype['json'] = false; +GetRSAPublic.prototype['json'] = false; /** - * Producer name + * Name of RSA key to extract the public key from * @member {String} name */ -GatewayGetProducer.prototype['name'] = undefined; +GetRSAPublic.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayGetProducer.prototype['token'] = undefined; +GetRSAPublic.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayGetProducer.prototype['uid-token'] = undefined; -var _default = GatewayGetProducer; +GetRSAPublic.prototype['uid-token'] = undefined; +var _default = GetRSAPublic; exports["default"] = _default; /***/ }), -/***/ 31236: +/***/ 59039: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66372,7 +142953,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66383,21 +142964,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayGetTmpUsers model module. - * @module model/GatewayGetTmpUsers - * @version 3.3.16 + * The GetRSAPublicOutput model module. + * @module model/GetRSAPublicOutput + * @version 3.6.3 */ -var GatewayGetTmpUsers = /*#__PURE__*/function () { +var GetRSAPublicOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayGetTmpUsers. - * gatewayGetTmpUsers is a command that returns gateway configuration - * @alias module:model/GatewayGetTmpUsers - * @param name {String} Producer Name + * Constructs a new GetRSAPublicOutput. + * @alias module:model/GetRSAPublicOutput */ - function GatewayGetTmpUsers(name) { - _classCallCheck(this, GatewayGetTmpUsers); + function GetRSAPublicOutput() { + _classCallCheck(this, GetRSAPublicOutput); - GatewayGetTmpUsers.initialize(this, name); + GetRSAPublicOutput.initialize(this); } /** * Initializes the fields of this object. @@ -66406,39 +142985,33 @@ var GatewayGetTmpUsers = /*#__PURE__*/function () { */ - _createClass(GatewayGetTmpUsers, null, [{ + _createClass(GetRSAPublicOutput, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayGetTmpUsers from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetRSAPublicOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetTmpUsers} obj Optional instance to populate. - * @return {module:model/GatewayGetTmpUsers} The populated GatewayGetTmpUsers instance. + * @param {module:model/GetRSAPublicOutput} obj Optional instance to populate. + * @return {module:model/GetRSAPublicOutput} The populated GetRSAPublicOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayGetTmpUsers(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + obj = obj || new GetRSAPublicOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('pem')) { + obj['pem'] = _ApiClient["default"].convertToType(data['pem'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('raw')) { + obj['raw'] = _ApiClient["default"].convertToType(data['raw'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('ssh')) { + obj['ssh'] = _ApiClient["default"].convertToType(data['ssh'], 'String'); } } @@ -66446,40 +143019,30 @@ var GatewayGetTmpUsers = /*#__PURE__*/function () { } }]); - return GatewayGetTmpUsers; + return GetRSAPublicOutput; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} pem */ -GatewayGetTmpUsers.prototype['json'] = false; -/** - * Producer Name - * @member {String} name - */ - -GatewayGetTmpUsers.prototype['name'] = undefined; +GetRSAPublicOutput.prototype['pem'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} raw */ -GatewayGetTmpUsers.prototype['token'] = undefined; +GetRSAPublicOutput.prototype['raw'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} ssh */ -GatewayGetTmpUsers.prototype['uid-token'] = undefined; -var _default = GatewayGetTmpUsers; +GetRSAPublicOutput.prototype['ssh'] = undefined; +var _default = GetRSAPublicOutput; exports["default"] = _default; /***/ }), -/***/ 63966: +/***/ 92157: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66490,7 +143053,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66501,20 +143064,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayListMigration model module. - * @module model/GatewayListMigration - * @version 3.3.16 + * The GetRole model module. + * @module model/GetRole + * @version 3.6.3 */ -var GatewayListMigration = /*#__PURE__*/function () { +var GetRole = /*#__PURE__*/function () { /** - * Constructs a new GatewayListMigration. - * gatewayListMigration is a command that list migration - * @alias module:model/GatewayListMigration + * Constructs a new GetRole. + * @alias module:model/GetRole + * @param name {String} Role name */ - function GatewayListMigration() { - _classCallCheck(this, GatewayListMigration); + function GetRole(name) { + _classCallCheck(this, GetRole); - GatewayListMigration.initialize(this); + GetRole.initialize(this, name); } /** * Initializes the fields of this object. @@ -66523,27 +143086,33 @@ var GatewayListMigration = /*#__PURE__*/function () { */ - _createClass(GatewayListMigration, null, [{ + _createClass(GetRole, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a GatewayListMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetRole from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayListMigration} obj Optional instance to populate. - * @return {module:model/GatewayListMigration} The populated GatewayListMigration instance. + * @param {module:model/GetRole} obj Optional instance to populate. + * @return {module:model/GetRole} The populated GetRole instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayListMigration(); + obj = obj || new GetRole(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -66557,7 +143126,7 @@ var GatewayListMigration = /*#__PURE__*/function () { } }]); - return GatewayListMigration; + return GetRole; }(); /** * Set output format to JSON @@ -66566,25 +143135,31 @@ var GatewayListMigration = /*#__PURE__*/function () { */ -GatewayListMigration.prototype['json'] = false; +GetRole.prototype['json'] = false; +/** + * Role name + * @member {String} name + */ + +GetRole.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayListMigration.prototype['token'] = undefined; +GetRole.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayListMigration.prototype['uid-token'] = undefined; -var _default = GatewayListMigration; +GetRole.prototype['uid-token'] = undefined; +var _default = GetRole; exports["default"] = _default; /***/ }), -/***/ 71578: +/***/ 29459: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66595,7 +143170,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66606,20 +143181,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayListProducers model module. - * @module model/GatewayListProducers - * @version 3.3.16 + * The GetRotatedSecretValue model module. + * @module model/GetRotatedSecretValue + * @version 3.6.3 */ -var GatewayListProducers = /*#__PURE__*/function () { +var GetRotatedSecretValue = /*#__PURE__*/function () { /** - * Constructs a new GatewayListProducers. - * gatewayListProducers is a command that returns a list of producers - * @alias module:model/GatewayListProducers + * Constructs a new GetRotatedSecretValue. + * getRotatedSecretValue is a command that creates a new Akeyless profile. [Deprecated: Use rotated-secret get-value command] + * @alias module:model/GetRotatedSecretValue + * @param names {String} Secret name */ - function GatewayListProducers() { - _classCallCheck(this, GatewayListProducers); + function GetRotatedSecretValue(names) { + _classCallCheck(this, GetRotatedSecretValue); - GatewayListProducers.initialize(this); + GetRotatedSecretValue.initialize(this, names); } /** * Initializes the fields of this object. @@ -66628,27 +143204,41 @@ var GatewayListProducers = /*#__PURE__*/function () { */ - _createClass(GatewayListProducers, null, [{ + _createClass(GetRotatedSecretValue, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, names) { + obj['names'] = names; + } /** - * Constructs a GatewayListProducers from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetRotatedSecretValue from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayListProducers} obj Optional instance to populate. - * @return {module:model/GatewayListProducers} The populated GatewayListProducers instance. + * @param {module:model/GetRotatedSecretValue} obj Optional instance to populate. + * @return {module:model/GetRotatedSecretValue} The populated GetRotatedSecretValue instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayListProducers(); + obj = obj || new GetRotatedSecretValue(); + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('names')) { + obj['names'] = _ApiClient["default"].convertToType(data['names'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -66656,40 +143246,69 @@ var GatewayListProducers = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } } return obj; } }]); - return GatewayListProducers; + return GetRotatedSecretValue; }(); +/** + * Get rotated secret value of specific Host (relevant only for Linked Target) + * @member {String} host + */ + + +GetRotatedSecretValue.prototype['host'] = undefined; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ + +GetRotatedSecretValue.prototype['ignore-cache'] = 'false'; /** * Set output format to JSON * @member {Boolean} json * @default false */ +GetRotatedSecretValue.prototype['json'] = false; +/** + * Secret name + * @member {String} names + */ -GatewayListProducers.prototype['json'] = false; +GetRotatedSecretValue.prototype['names'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayListProducers.prototype['token'] = undefined; +GetRotatedSecretValue.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayListProducers.prototype['uid-token'] = undefined; -var _default = GatewayListProducers; +GetRotatedSecretValue.prototype['uid-token'] = undefined; +/** + * Secret version + * @member {Number} version + */ + +GetRotatedSecretValue.prototype['version'] = undefined; +var _default = GetRotatedSecretValue; exports["default"] = _default; /***/ }), -/***/ 9343: +/***/ 66708: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66700,7 +143319,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66711,20 +143330,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayListRotatedSecrets model module. - * @module model/GatewayListRotatedSecrets - * @version 3.3.16 + * The GetSSHCertificate model module. + * @module model/GetSSHCertificate + * @version 3.6.3 */ -var GatewayListRotatedSecrets = /*#__PURE__*/function () { +var GetSSHCertificate = /*#__PURE__*/function () { /** - * Constructs a new GatewayListRotatedSecrets. - * gatewayListRotatedSecrets is a command that returns a list of rotated secrets - * @alias module:model/GatewayListRotatedSecrets + * Constructs a new GetSSHCertificate. + * @alias module:model/GetSSHCertificate + * @param certIssuerName {String} The name of the SSH certificate issuer + * @param certUsername {String} The username to sign in the SSH certificate */ - function GatewayListRotatedSecrets() { - _classCallCheck(this, GatewayListRotatedSecrets); + function GetSSHCertificate(certIssuerName, certUsername) { + _classCallCheck(this, GetSSHCertificate); - GatewayListRotatedSecrets.initialize(this); + GetSSHCertificate.initialize(this, certIssuerName, certUsername); } /** * Initializes the fields of this object. @@ -66733,31 +143353,54 @@ var GatewayListRotatedSecrets = /*#__PURE__*/function () { */ - _createClass(GatewayListRotatedSecrets, null, [{ + _createClass(GetSSHCertificate, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, certIssuerName, certUsername) { + obj['cert-issuer-name'] = certIssuerName; + obj['cert-username'] = certUsername; + } /** - * Constructs a GatewayListRotatedSecrets from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetSSHCertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayListRotatedSecrets} obj Optional instance to populate. - * @return {module:model/GatewayListRotatedSecrets} The populated GatewayListRotatedSecrets instance. + * @param {module:model/GetSSHCertificate} obj Optional instance to populate. + * @return {module:model/GetSSHCertificate} The populated GetSSHCertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayListRotatedSecrets(); + obj = obj || new GetSSHCertificate(); + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } + + if (data.hasOwnProperty('cert-username')) { + obj['cert-username'] = _ApiClient["default"].convertToType(data['cert-username'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('legacy-signing-alg-name')) { + obj['legacy-signing-alg-name'] = _ApiClient["default"].convertToType(data['legacy-signing-alg-name'], 'Boolean'); + } + + if (data.hasOwnProperty('public-key-data')) { + obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -66767,34 +143410,65 @@ var GatewayListRotatedSecrets = /*#__PURE__*/function () { } }]); - return GatewayListRotatedSecrets; + return GetSSHCertificate; }(); +/** + * The name of the SSH certificate issuer + * @member {String} cert-issuer-name + */ + + +GetSSHCertificate.prototype['cert-issuer-name'] = undefined; +/** + * The username to sign in the SSH certificate + * @member {String} cert-username + */ + +GetSSHCertificate.prototype['cert-username'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +GetSSHCertificate.prototype['json'] = false; +/** + * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the certificate. + * @member {Boolean} legacy-signing-alg-name + * @default false + */ + +GetSSHCertificate.prototype['legacy-signing-alg-name'] = false; +/** + * SSH public key file contents. If this option is used, the certificate will be printed to stdout + * @member {String} public-key-data + */ -GatewayListRotatedSecrets.prototype['json'] = false; +GetSSHCertificate.prototype['public-key-data'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayListRotatedSecrets.prototype['token'] = undefined; +GetSSHCertificate.prototype['token'] = undefined; +/** + * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) + * @member {Number} ttl + */ + +GetSSHCertificate.prototype['ttl'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayListRotatedSecrets.prototype['uid-token'] = undefined; -var _default = GatewayListRotatedSecrets; +GetSSHCertificate.prototype['uid-token'] = undefined; +var _default = GetSSHCertificate; exports["default"] = _default; /***/ }), -/***/ 61174: +/***/ 15045: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66805,7 +143479,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66816,19 +143490,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMessageQueueInfo model module. - * @module model/GatewayMessageQueueInfo - * @version 3.3.16 + * The GetSSHCertificateOutput model module. + * @module model/GetSSHCertificateOutput + * @version 3.6.3 */ -var GatewayMessageQueueInfo = /*#__PURE__*/function () { +var GetSSHCertificateOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayMessageQueueInfo. - * @alias module:model/GatewayMessageQueueInfo + * Constructs a new GetSSHCertificateOutput. + * @alias module:model/GetSSHCertificateOutput */ - function GatewayMessageQueueInfo() { - _classCallCheck(this, GatewayMessageQueueInfo); + function GetSSHCertificateOutput() { + _classCallCheck(this, GetSSHCertificateOutput); - GatewayMessageQueueInfo.initialize(this); + GetSSHCertificateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -66837,37 +143511,29 @@ var GatewayMessageQueueInfo = /*#__PURE__*/function () { */ - _createClass(GatewayMessageQueueInfo, null, [{ + _createClass(GetSSHCertificateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayMessageQueueInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetSSHCertificateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMessageQueueInfo} obj Optional instance to populate. - * @return {module:model/GatewayMessageQueueInfo} The populated GatewayMessageQueueInfo instance. + * @param {module:model/GetSSHCertificateOutput} obj Optional instance to populate. + * @return {module:model/GetSSHCertificateOutput} The populated GetSSHCertificateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMessageQueueInfo(); - - if (data.hasOwnProperty('broadcast_queue_name_a')) { - obj['broadcast_queue_name_a'] = _ApiClient["default"].convertToType(data['broadcast_queue_name_a'], 'String'); - } - - if (data.hasOwnProperty('mq_type')) { - obj['mq_type'] = _ApiClient["default"].convertToType(data['mq_type'], 'String'); - } + obj = obj || new GetSSHCertificateOutput(); - if (data.hasOwnProperty('queue_name')) { - obj['queue_name'] = _ApiClient["default"].convertToType(data['queue_name'], 'String'); + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); } - if (data.hasOwnProperty('queue_url')) { - obj['queue_url'] = _ApiClient["default"].convertToType(data['queue_url'], 'String'); + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } } @@ -66875,35 +143541,25 @@ var GatewayMessageQueueInfo = /*#__PURE__*/function () { } }]); - return GatewayMessageQueueInfo; + return GetSSHCertificateOutput; }(); /** - * @member {String} broadcast_queue_name_a - */ - - -GatewayMessageQueueInfo.prototype['broadcast_queue_name_a'] = undefined; -/** - * @member {String} mq_type + * @member {String} data */ -GatewayMessageQueueInfo.prototype['mq_type'] = undefined; -/** - * @member {String} queue_name - */ -GatewayMessageQueueInfo.prototype['queue_name'] = undefined; +GetSSHCertificateOutput.prototype['data'] = undefined; /** - * @member {String} queue_url + * @member {String} path */ -GatewayMessageQueueInfo.prototype['queue_url'] = undefined; -var _default = GatewayMessageQueueInfo; +GetSSHCertificateOutput.prototype['path'] = undefined; +var _default = GetSSHCertificateOutput; exports["default"] = _default; /***/ }), -/***/ 80853: +/***/ 81888: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -66914,7 +143570,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -66925,20 +143581,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigratePersonalItems model module. - * @module model/GatewayMigratePersonalItems - * @version 3.3.16 + * The GetSecretValue model module. + * @module model/GetSecretValue + * @version 3.6.3 */ -var GatewayMigratePersonalItems = /*#__PURE__*/function () { +var GetSecretValue = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigratePersonalItems. - * gatewayMigratePersonalItems is a command that migrate personal items from external vault - * @alias module:model/GatewayMigratePersonalItems + * Constructs a new GetSecretValue. + * @alias module:model/GetSecretValue + * @param names {Array.} Secret name */ - function GatewayMigratePersonalItems() { - _classCallCheck(this, GatewayMigratePersonalItems); + function GetSecretValue(names) { + _classCallCheck(this, GetSecretValue); - GatewayMigratePersonalItems.initialize(this); + GetSecretValue.initialize(this, names); } /** * Initializes the fields of this object. @@ -66947,149 +143603,122 @@ var GatewayMigratePersonalItems = /*#__PURE__*/function () { */ - _createClass(GatewayMigratePersonalItems, null, [{ + _createClass(GetSecretValue, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, names) { + obj['names'] = names; + } /** - * Constructs a GatewayMigratePersonalItems from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetSecretValue from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigratePersonalItems} obj Optional instance to populate. - * @return {module:model/GatewayMigratePersonalItems} The populated GatewayMigratePersonalItems instance. + * @param {module:model/GetSecretValue} obj Optional instance to populate. + * @return {module:model/GetSecretValue} The populated GetSecretValue instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigratePersonalItems(); - - if (data.hasOwnProperty('1password-email')) { - obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); - } - - if (data.hasOwnProperty('1password-password')) { - obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); - } - - if (data.hasOwnProperty('1password-secret-key')) { - obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); - } + obj = obj || new GetSecretValue(); - if (data.hasOwnProperty('1password-url')) { - obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - if (data.hasOwnProperty('1password-vaults')) { - obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('protection-key')) { - obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); + if (data.hasOwnProperty('names')) { + obj['names'] = _ApiClient["default"].convertToType(data['names'], ['String']); } - if (data.hasOwnProperty('target-location')) { - obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); + if (data.hasOwnProperty('pretty-print')) { + obj['pretty-print'] = _ApiClient["default"].convertToType(data['pretty-print'], 'Boolean'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } } return obj; } }]); - return GatewayMigratePersonalItems; + return GetSecretValue; }(); /** - * 1Password user email to connect to the API - * @member {String} 1password-email - */ - - -GatewayMigratePersonalItems.prototype['1password-email'] = undefined; -/** - * 1Password user password to connect to the API - * @member {String} 1password-password - */ - -GatewayMigratePersonalItems.prototype['1password-password'] = undefined; -/** - * 1Password user secret key to connect to the API - * @member {String} 1password-secret-key + * for personal password manager + * @member {String} accessibility + * @default 'regular' */ -GatewayMigratePersonalItems.prototype['1password-secret-key'] = undefined; -/** - * 1Password api container url - * @member {String} 1password-url - */ -GatewayMigratePersonalItems.prototype['1password-url'] = undefined; +GetSecretValue.prototype['accessibility'] = 'regular'; /** - * 1Password list of vault to get the items from - * @member {Array.} 1password-vaults + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' */ -GatewayMigratePersonalItems.prototype['1password-vaults'] = undefined; +GetSecretValue.prototype['ignore-cache'] = 'false'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayMigratePersonalItems.prototype['json'] = false; +GetSecretValue.prototype['json'] = false; /** - * The name of a key that used to encrypt the secret value - * @member {String} protection-key + * Secret name + * @member {Array.} names */ -GatewayMigratePersonalItems.prototype['protection-key'] = undefined; +GetSecretValue.prototype['names'] = undefined; /** - * Target location in your Akeyless personal folder for migrated secrets - * @member {String} target-location + * Print the secret value with json-pretty-print (not relevent to SDK) + * @member {Boolean} pretty-print */ -GatewayMigratePersonalItems.prototype['target-location'] = undefined; +GetSecretValue.prototype['pretty-print'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayMigratePersonalItems.prototype['token'] = undefined; +GetSecretValue.prototype['token'] = undefined; /** - * Migration type for now only 1password. - * @member {String} type - * @default '1password' + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayMigratePersonalItems.prototype['type'] = '1password'; +GetSecretValue.prototype['uid-token'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Secret version, if negative value N is provided the last N versions will return (maximum 20) + * @member {Number} version */ -GatewayMigratePersonalItems.prototype['uid-token'] = undefined; -var _default = GatewayMigratePersonalItems; +GetSecretValue.prototype['version'] = undefined; +var _default = GetSecretValue; exports["default"] = _default; /***/ }), -/***/ 19869: +/***/ 58912: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67100,9 +143729,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _MigrationItems = _interopRequireDefault(__nccwpck_require__(31951)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67113,19 +143740,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigratePersonalItemsOutput model module. - * @module model/GatewayMigratePersonalItemsOutput - * @version 3.3.16 + * The GetTags model module. + * @module model/GetTags + * @version 3.6.3 */ -var GatewayMigratePersonalItemsOutput = /*#__PURE__*/function () { +var GetTags = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigratePersonalItemsOutput. - * @alias module:model/GatewayMigratePersonalItemsOutput + * Constructs a new GetTags. + * @alias module:model/GetTags + * @param name {String} Item name */ - function GatewayMigratePersonalItemsOutput() { - _classCallCheck(this, GatewayMigratePersonalItemsOutput); + function GetTags(name) { + _classCallCheck(this, GetTags); - GatewayMigratePersonalItemsOutput.initialize(this); + GetTags.initialize(this, name); } /** * Initializes the fields of this object. @@ -67134,25 +143762,39 @@ var GatewayMigratePersonalItemsOutput = /*#__PURE__*/function () { */ - _createClass(GatewayMigratePersonalItemsOutput, null, [{ + _createClass(GetTags, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a GatewayMigratePersonalItemsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetTags from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigratePersonalItemsOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigratePersonalItemsOutput} The populated GatewayMigratePersonalItemsOutput instance. + * @param {module:model/GetTags} obj Optional instance to populate. + * @return {module:model/GetTags} The populated GetTags instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigratePersonalItemsOutput(); + obj = obj || new GetTags(); - if (data.hasOwnProperty('migration_items')) { - obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -67160,20 +143802,40 @@ var GatewayMigratePersonalItemsOutput = /*#__PURE__*/function () { } }]); - return GatewayMigratePersonalItemsOutput; + return GetTags; }(); /** - * @member {module:model/MigrationItems} migration_items + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayMigratePersonalItemsOutput.prototype['migration_items'] = undefined; -var _default = GatewayMigratePersonalItemsOutput; +GetTags.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ + +GetTags.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetTags.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetTags.prototype['uid-token'] = undefined; +var _default = GetTags; exports["default"] = _default; /***/ }), -/***/ 81336: +/***/ 68536: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67184,7 +143846,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67195,19 +143857,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigrationCreateOutput model module. - * @module model/GatewayMigrationCreateOutput - * @version 3.3.16 + * The GetTarget model module. + * @module model/GetTarget + * @version 3.6.3 */ -var GatewayMigrationCreateOutput = /*#__PURE__*/function () { +var GetTarget = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigrationCreateOutput. - * @alias module:model/GatewayMigrationCreateOutput + * Constructs a new GetTarget. + * @alias module:model/GetTarget + * @param name {String} Target name */ - function GatewayMigrationCreateOutput() { - _classCallCheck(this, GatewayMigrationCreateOutput); + function GetTarget(name) { + _classCallCheck(this, GetTarget); - GatewayMigrationCreateOutput.initialize(this); + GetTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -67216,25 +143879,43 @@ var GatewayMigrationCreateOutput = /*#__PURE__*/function () { */ - _createClass(GatewayMigrationCreateOutput, null, [{ + _createClass(GetTarget, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a GatewayMigrationCreateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationCreateOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationCreateOutput} The populated GatewayMigrationCreateOutput instance. + * @param {module:model/GetTarget} obj Optional instance to populate. + * @return {module:model/GetTarget} The populated GetTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigrationCreateOutput(); + obj = obj || new GetTarget(); - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('show-versions')) { + obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -67242,20 +143923,47 @@ var GatewayMigrationCreateOutput = /*#__PURE__*/function () { } }]); - return GatewayMigrationCreateOutput; + return GetTarget; }(); /** - * @member {String} migration_name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayMigrationCreateOutput.prototype['migration_name'] = undefined; -var _default = GatewayMigrationCreateOutput; +GetTarget.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ + +GetTarget.prototype['name'] = undefined; +/** + * Include all target versions in reply + * @member {Boolean} show-versions + * @default false + */ + +GetTarget.prototype['show-versions'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetTarget.prototype['uid-token'] = undefined; +var _default = GetTarget; exports["default"] = _default; /***/ }), -/***/ 8601: +/***/ 23760: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67266,7 +143974,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67277,19 +143985,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigrationDeleteOutput model module. - * @module model/GatewayMigrationDeleteOutput - * @version 3.3.16 + * The GetTargetDetails model module. + * @module model/GetTargetDetails + * @version 3.6.3 */ -var GatewayMigrationDeleteOutput = /*#__PURE__*/function () { +var GetTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigrationDeleteOutput. - * @alias module:model/GatewayMigrationDeleteOutput + * Constructs a new GetTargetDetails. + * @alias module:model/GetTargetDetails + * @param name {String} Target name */ - function GatewayMigrationDeleteOutput() { - _classCallCheck(this, GatewayMigrationDeleteOutput); + function GetTargetDetails(name) { + _classCallCheck(this, GetTargetDetails); - GatewayMigrationDeleteOutput.initialize(this); + GetTargetDetails.initialize(this, name); } /** * Initializes the fields of this object. @@ -67298,25 +144007,47 @@ var GatewayMigrationDeleteOutput = /*#__PURE__*/function () { */ - _createClass(GatewayMigrationDeleteOutput, null, [{ + _createClass(GetTargetDetails, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a GatewayMigrationDeleteOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationDeleteOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationDeleteOutput} The populated GatewayMigrationDeleteOutput instance. + * @param {module:model/GetTargetDetails} obj Optional instance to populate. + * @return {module:model/GetTargetDetails} The populated GetTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigrationDeleteOutput(); + obj = obj || new GetTargetDetails(); - if (data.hasOwnProperty('migration_id')) { - obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('show-versions')) { + obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + } + + if (data.hasOwnProperty('target-version')) { + obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -67324,20 +144055,53 @@ var GatewayMigrationDeleteOutput = /*#__PURE__*/function () { } }]); - return GatewayMigrationDeleteOutput; + return GetTargetDetails; }(); /** - * @member {String} migration_id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayMigrationDeleteOutput.prototype['migration_id'] = undefined; -var _default = GatewayMigrationDeleteOutput; +GetTargetDetails.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ + +GetTargetDetails.prototype['name'] = undefined; +/** + * Include all target versions in reply + * @member {Boolean} show-versions + * @default false + */ + +GetTargetDetails.prototype['show-versions'] = false; +/** + * Target version + * @member {Number} target-version + */ + +GetTargetDetails.prototype['target-version'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetTargetDetails.prototype['uid-token'] = undefined; +var _default = GetTargetDetails; exports["default"] = _default; /***/ }), -/***/ 74292: +/***/ 32793: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67348,9 +144112,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(11237)); +var _Target = _interopRequireDefault(__nccwpck_require__(17364)); + +var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(83102)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67361,19 +144127,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigrationGetOutput model module. - * @module model/GatewayMigrationGetOutput - * @version 3.3.16 + * The GetTargetDetailsOutput model module. + * @module model/GetTargetDetailsOutput + * @version 3.6.3 */ -var GatewayMigrationGetOutput = /*#__PURE__*/function () { +var GetTargetDetailsOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigrationGetOutput. - * @alias module:model/GatewayMigrationGetOutput + * Constructs a new GetTargetDetailsOutput. + * @alias module:model/GetTargetDetailsOutput */ - function GatewayMigrationGetOutput() { - _classCallCheck(this, GatewayMigrationGetOutput); + function GetTargetDetailsOutput() { + _classCallCheck(this, GetTargetDetailsOutput); - GatewayMigrationGetOutput.initialize(this); + GetTargetDetailsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -67382,25 +144148,29 @@ var GatewayMigrationGetOutput = /*#__PURE__*/function () { */ - _createClass(GatewayMigrationGetOutput, null, [{ + _createClass(GetTargetDetailsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayMigrationGetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationGetOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationGetOutput} The populated GatewayMigrationGetOutput instance. + * @param {module:model/GetTargetDetailsOutput} obj Optional instance to populate. + * @return {module:model/GetTargetDetailsOutput} The populated GetTargetDetailsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigrationGetOutput(); + obj = obj || new GetTargetDetailsOutput(); - if (data.hasOwnProperty('body')) { - obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); + if (data.hasOwnProperty('target')) { + obj['target'] = _Target["default"].constructFromObject(data['target']); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _TargetTypeDetailsInput["default"].constructFromObject(data['value']); } } @@ -67408,20 +144178,25 @@ var GatewayMigrationGetOutput = /*#__PURE__*/function () { } }]); - return GatewayMigrationGetOutput; + return GetTargetDetailsOutput; }(); /** - * @member {module:model/MigrationsConfigPart} body + * @member {module:model/Target} target */ -GatewayMigrationGetOutput.prototype['body'] = undefined; -var _default = GatewayMigrationGetOutput; +GetTargetDetailsOutput.prototype['target'] = undefined; +/** + * @member {module:model/TargetTypeDetailsInput} value + */ + +GetTargetDetailsOutput.prototype['value'] = undefined; +var _default = GetTargetDetailsOutput; exports["default"] = _default; /***/ }), -/***/ 10588: +/***/ 49439: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67432,9 +144207,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(11237)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67445,19 +144218,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigrationListOutput model module. - * @module model/GatewayMigrationListOutput - * @version 3.3.16 + * The GetUserEventStatusOutput model module. + * @module model/GetUserEventStatusOutput + * @version 3.6.3 */ -var GatewayMigrationListOutput = /*#__PURE__*/function () { +var GetUserEventStatusOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigrationListOutput. - * @alias module:model/GatewayMigrationListOutput + * Constructs a new GetUserEventStatusOutput. + * @alias module:model/GetUserEventStatusOutput */ - function GatewayMigrationListOutput() { - _classCallCheck(this, GatewayMigrationListOutput); + function GetUserEventStatusOutput() { + _classCallCheck(this, GetUserEventStatusOutput); - GatewayMigrationListOutput.initialize(this); + GetUserEventStatusOutput.initialize(this); } /** * Initializes the fields of this object. @@ -67466,25 +144239,33 @@ var GatewayMigrationListOutput = /*#__PURE__*/function () { */ - _createClass(GatewayMigrationListOutput, null, [{ + _createClass(GetUserEventStatusOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayMigrationListOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GetUserEventStatusOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationListOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationListOutput} The populated GatewayMigrationListOutput instance. + * @param {module:model/GetUserEventStatusOutput} obj Optional instance to populate. + * @return {module:model/GetUserEventStatusOutput} The populated GetUserEventStatusOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigrationListOutput(); + obj = obj || new GetUserEventStatusOutput(); - if (data.hasOwnProperty('body')) { - obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); + if (data.hasOwnProperty('access_status')) { + obj['access_status'] = _ApiClient["default"].convertToType(data['access_status'], 'String'); + } + + if (data.hasOwnProperty('event_created_at')) { + obj['event_created_at'] = _ApiClient["default"].convertToType(data['event_created_at'], 'Date'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); } } @@ -67492,20 +144273,30 @@ var GatewayMigrationListOutput = /*#__PURE__*/function () { } }]); - return GatewayMigrationListOutput; + return GetUserEventStatusOutput; }(); /** - * @member {module:model/MigrationsConfigPart} body + * @member {String} access_status */ -GatewayMigrationListOutput.prototype['body'] = undefined; -var _default = GatewayMigrationListOutput; +GetUserEventStatusOutput.prototype['access_status'] = undefined; +/** + * @member {Date} event_created_at + */ + +GetUserEventStatusOutput.prototype['event_created_at'] = undefined; +/** + * @member {String} status + */ + +GetUserEventStatusOutput.prototype['status'] = undefined; +var _default = GetUserEventStatusOutput; exports["default"] = _default; /***/ }), -/***/ 68624: +/***/ 98969: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67516,7 +144307,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67527,19 +144318,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigrationSyncOutput model module. - * @module model/GatewayMigrationSyncOutput - * @version 3.3.16 + * The GithubTargetDetails model module. + * @module model/GithubTargetDetails + * @version 3.6.3 */ -var GatewayMigrationSyncOutput = /*#__PURE__*/function () { +var GithubTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigrationSyncOutput. - * @alias module:model/GatewayMigrationSyncOutput + * Constructs a new GithubTargetDetails. + * @alias module:model/GithubTargetDetails */ - function GatewayMigrationSyncOutput() { - _classCallCheck(this, GatewayMigrationSyncOutput); + function GithubTargetDetails() { + _classCallCheck(this, GithubTargetDetails); - GatewayMigrationSyncOutput.initialize(this); + GithubTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -67548,25 +144339,33 @@ var GatewayMigrationSyncOutput = /*#__PURE__*/function () { */ - _createClass(GatewayMigrationSyncOutput, null, [{ + _createClass(GithubTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayMigrationSyncOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GithubTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationSyncOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationSyncOutput} The populated GatewayMigrationSyncOutput instance. + * @param {module:model/GithubTargetDetails} obj Optional instance to populate. + * @return {module:model/GithubTargetDetails} The populated GithubTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigrationSyncOutput(); + obj = obj || new GithubTargetDetails(); - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); + if (data.hasOwnProperty('github_app_id')) { + obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); + } + + if (data.hasOwnProperty('github_app_private_key')) { + obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); + } + + if (data.hasOwnProperty('github_base_url')) { + obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); } } @@ -67574,20 +144373,30 @@ var GatewayMigrationSyncOutput = /*#__PURE__*/function () { } }]); - return GatewayMigrationSyncOutput; + return GithubTargetDetails; }(); /** - * @member {String} migration_name + * @member {Number} github_app_id */ -GatewayMigrationSyncOutput.prototype['migration_name'] = undefined; -var _default = GatewayMigrationSyncOutput; +GithubTargetDetails.prototype['github_app_id'] = undefined; +/** + * @member {String} github_app_private_key + */ + +GithubTargetDetails.prototype['github_app_private_key'] = undefined; +/** + * @member {String} github_base_url + */ + +GithubTargetDetails.prototype['github_base_url'] = undefined; +var _default = GithubTargetDetails; exports["default"] = _default; /***/ }), -/***/ 94903: +/***/ 82679: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67598,7 +144407,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67609,19 +144418,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayMigrationUpdateOutput model module. - * @module model/GatewayMigrationUpdateOutput - * @version 3.3.16 + * The GlobalSignAtlasTargetDetails model module. + * @module model/GlobalSignAtlasTargetDetails + * @version 3.6.3 */ -var GatewayMigrationUpdateOutput = /*#__PURE__*/function () { +var GlobalSignAtlasTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GatewayMigrationUpdateOutput. - * @alias module:model/GatewayMigrationUpdateOutput + * Constructs a new GlobalSignAtlasTargetDetails. + * GlobalSignAtlasTargetDetails + * @alias module:model/GlobalSignAtlasTargetDetails */ - function GatewayMigrationUpdateOutput() { - _classCallCheck(this, GatewayMigrationUpdateOutput); + function GlobalSignAtlasTargetDetails() { + _classCallCheck(this, GlobalSignAtlasTargetDetails); - GatewayMigrationUpdateOutput.initialize(this); + GlobalSignAtlasTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -67630,25 +144440,41 @@ var GatewayMigrationUpdateOutput = /*#__PURE__*/function () { */ - _createClass(GatewayMigrationUpdateOutput, null, [{ + _createClass(GlobalSignAtlasTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayMigrationUpdateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GlobalSignAtlasTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationUpdateOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationUpdateOutput} The populated GatewayMigrationUpdateOutput instance. + * @param {module:model/GlobalSignAtlasTargetDetails} obj Optional instance to populate. + * @return {module:model/GlobalSignAtlasTargetDetails} The populated GlobalSignAtlasTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayMigrationUpdateOutput(); + obj = obj || new GlobalSignAtlasTargetDetails(); - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); + if (data.hasOwnProperty('api_key')) { + obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); + } + + if (data.hasOwnProperty('api_secret')) { + obj['api_secret'] = _ApiClient["default"].convertToType(data['api_secret'], 'String'); + } + + if (data.hasOwnProperty('mtls_cert')) { + obj['mtls_cert'] = _ApiClient["default"].convertToType(data['mtls_cert'], 'String'); + } + + if (data.hasOwnProperty('mtls_key')) { + obj['mtls_key'] = _ApiClient["default"].convertToType(data['mtls_key'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); } } @@ -67656,20 +144482,41 @@ var GatewayMigrationUpdateOutput = /*#__PURE__*/function () { } }]); - return GatewayMigrationUpdateOutput; + return GlobalSignAtlasTargetDetails; }(); /** - * @member {String} migration_name + * @member {String} api_key */ -GatewayMigrationUpdateOutput.prototype['migration_name'] = undefined; -var _default = GatewayMigrationUpdateOutput; +GlobalSignAtlasTargetDetails.prototype['api_key'] = undefined; +/** + * @member {String} api_secret + */ + +GlobalSignAtlasTargetDetails.prototype['api_secret'] = undefined; +/** + * @member {String} mtls_cert + */ + +GlobalSignAtlasTargetDetails.prototype['mtls_cert'] = undefined; +/** + * @member {String} mtls_key + */ + +GlobalSignAtlasTargetDetails.prototype['mtls_key'] = undefined; +/** + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} timeout + */ + +GlobalSignAtlasTargetDetails.prototype['timeout'] = undefined; +var _default = GlobalSignAtlasTargetDetails; exports["default"] = _default; /***/ }), -/***/ 31730: +/***/ 47627: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67680,7 +144527,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67691,22 +144538,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayRevokeTmpUsers model module. - * @module model/GatewayRevokeTmpUsers - * @version 3.3.16 + * The GlobalSignGCCTargetDetails model module. + * @module model/GlobalSignGCCTargetDetails + * @version 3.6.3 */ -var GatewayRevokeTmpUsers = /*#__PURE__*/function () { +var GlobalSignGCCTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GatewayRevokeTmpUsers. - * gatewayRevokeTmpUsers is a command that revoke producer tmp user - * @alias module:model/GatewayRevokeTmpUsers - * @param name {String} Producer Name - * @param tmpCredsId {String} Tmp Creds ID + * Constructs a new GlobalSignGCCTargetDetails. + * GlobalSignGCCTargetDetails + * @alias module:model/GlobalSignGCCTargetDetails */ - function GatewayRevokeTmpUsers(name, tmpCredsId) { - _classCallCheck(this, GatewayRevokeTmpUsers); + function GlobalSignGCCTargetDetails() { + _classCallCheck(this, GlobalSignGCCTargetDetails); - GatewayRevokeTmpUsers.initialize(this, name, tmpCredsId); + GlobalSignGCCTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -67715,56 +144560,53 @@ var GatewayRevokeTmpUsers = /*#__PURE__*/function () { */ - _createClass(GatewayRevokeTmpUsers, null, [{ + _createClass(GlobalSignGCCTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, name, tmpCredsId) { - obj['name'] = name; - obj['tmp-creds-id'] = tmpCredsId; - } + value: function initialize(obj) {} /** - * Constructs a GatewayRevokeTmpUsers from a plain JavaScript object, optionally creating a new instance. + * Constructs a GlobalSignGCCTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayRevokeTmpUsers} obj Optional instance to populate. - * @return {module:model/GatewayRevokeTmpUsers} The populated GatewayRevokeTmpUsers instance. + * @param {module:model/GlobalSignGCCTargetDetails} obj Optional instance to populate. + * @return {module:model/GlobalSignGCCTargetDetails} The populated GlobalSignGCCTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayRevokeTmpUsers(); + obj = obj || new GlobalSignGCCTargetDetails(); - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('first_name')) { + obj['first_name'] = _ApiClient["default"].convertToType(data['first_name'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('last_name')) { + obj['last_name'] = _ApiClient["default"].convertToType(data['last_name'], 'String'); } - if (data.hasOwnProperty('revoke-all')) { - obj['revoke-all'] = _ApiClient["default"].convertToType(data['revoke-all'], 'Boolean'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('soft-delete')) { - obj['soft-delete'] = _ApiClient["default"].convertToType(data['soft-delete'], 'Boolean'); + if (data.hasOwnProperty('phone')) { + obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); } - if (data.hasOwnProperty('tmp-creds-id')) { - obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + if (data.hasOwnProperty('profile_id')) { + obj['profile_id'] = _ApiClient["default"].convertToType(data['profile_id'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } @@ -67772,65 +144614,57 @@ var GatewayRevokeTmpUsers = /*#__PURE__*/function () { } }]); - return GatewayRevokeTmpUsers; + return GlobalSignGCCTargetDetails; }(); /** - * Deprecated: has no effect - * @member {String} host + * @member {String} email */ -GatewayRevokeTmpUsers.prototype['host'] = undefined; +GlobalSignGCCTargetDetails.prototype['email'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Contact Info - GlobalSign requires this to be sent with every certificate creation request + * @member {String} first_name */ -GatewayRevokeTmpUsers.prototype['json'] = false; +GlobalSignGCCTargetDetails.prototype['first_name'] = undefined; /** - * Producer Name - * @member {String} name + * @member {String} last_name */ -GatewayRevokeTmpUsers.prototype['name'] = undefined; +GlobalSignGCCTargetDetails.prototype['last_name'] = undefined; /** - * Revoke All Temp Creds - * @member {Boolean} revoke-all + * @member {String} password */ -GatewayRevokeTmpUsers.prototype['revoke-all'] = undefined; +GlobalSignGCCTargetDetails.prototype['password'] = undefined; /** - * Soft Delete - * @member {Boolean} soft-delete + * @member {String} phone */ -GatewayRevokeTmpUsers.prototype['soft-delete'] = undefined; +GlobalSignGCCTargetDetails.prototype['phone'] = undefined; /** - * Tmp Creds ID - * @member {String} tmp-creds-id - * @default 'demo_default_tmp_creds_id_for_sdk_bc' + * @member {String} profile_id */ -GatewayRevokeTmpUsers.prototype['tmp-creds-id'] = 'demo_default_tmp_creds_id_for_sdk_bc'; +GlobalSignGCCTargetDetails.prototype['profile_id'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} timeout */ -GatewayRevokeTmpUsers.prototype['token'] = undefined; +GlobalSignGCCTargetDetails.prototype['timeout'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} username */ -GatewayRevokeTmpUsers.prototype['uid-token'] = undefined; -var _default = GatewayRevokeTmpUsers; +GlobalSignGCCTargetDetails.prototype['username'] = undefined; +var _default = GlobalSignGCCTargetDetails; exports["default"] = _default; /***/ }), -/***/ 66971: +/***/ 95244: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67841,7 +144675,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67852,21 +144686,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayStartProducer model module. - * @module model/GatewayStartProducer - * @version 3.3.16 + * The GodaddyTargetDetails model module. + * @module model/GodaddyTargetDetails + * @version 3.6.3 */ -var GatewayStartProducer = /*#__PURE__*/function () { +var GodaddyTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GatewayStartProducer. - * gatewayStartProducer is a command that starts producer - * @alias module:model/GatewayStartProducer - * @param name {String} Producer name + * Constructs a new GodaddyTargetDetails. + * GodaddyTargetDetails + * @alias module:model/GodaddyTargetDetails */ - function GatewayStartProducer(name) { - _classCallCheck(this, GatewayStartProducer); + function GodaddyTargetDetails() { + _classCallCheck(this, GodaddyTargetDetails); - GatewayStartProducer.initialize(this, name); + GodaddyTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -67875,39 +144708,53 @@ var GatewayStartProducer = /*#__PURE__*/function () { */ - _createClass(GatewayStartProducer, null, [{ + _createClass(GodaddyTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayStartProducer from a plain JavaScript object, optionally creating a new instance. + * Constructs a GodaddyTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStartProducer} obj Optional instance to populate. - * @return {module:model/GatewayStartProducer} The populated GatewayStartProducer instance. + * @param {module:model/GodaddyTargetDetails} obj Optional instance to populate. + * @return {module:model/GodaddyTargetDetails} The populated GodaddyTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayStartProducer(); + obj = obj || new GodaddyTargetDetails(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('imap_fqdn')) { + obj['imap_fqdn'] = _ApiClient["default"].convertToType(data['imap_fqdn'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('imap_password')) { + obj['imap_password'] = _ApiClient["default"].convertToType(data['imap_password'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('imap_port')) { + obj['imap_port'] = _ApiClient["default"].convertToType(data['imap_port'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('imap_user')) { + obj['imap_user'] = _ApiClient["default"].convertToType(data['imap_user'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + } + + if (data.hasOwnProperty('validation_email')) { + obj['validation_email'] = _ApiClient["default"].convertToType(data['validation_email'], 'String'); } } @@ -67915,40 +144762,56 @@ var GatewayStartProducer = /*#__PURE__*/function () { } }]); - return GatewayStartProducer; + return GodaddyTargetDetails; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} imap_fqdn */ -GatewayStartProducer.prototype['json'] = false; +GodaddyTargetDetails.prototype['imap_fqdn'] = undefined; /** - * Producer name - * @member {String} name + * @member {String} imap_password */ -GatewayStartProducer.prototype['name'] = undefined; +GodaddyTargetDetails.prototype['imap_password'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} imap_port */ -GatewayStartProducer.prototype['token'] = undefined; +GodaddyTargetDetails.prototype['imap_port'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} imap_user */ -GatewayStartProducer.prototype['uid-token'] = undefined; -var _default = GatewayStartProducer; +GodaddyTargetDetails.prototype['imap_user'] = undefined; +/** + * @member {String} key + */ + +GodaddyTargetDetails.prototype['key'] = undefined; +/** + * @member {String} secret + */ + +GodaddyTargetDetails.prototype['secret'] = undefined; +/** + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} timeout + */ + +GodaddyTargetDetails.prototype['timeout'] = undefined; +/** + * @member {String} validation_email + */ + +GodaddyTargetDetails.prototype['validation_email'] = undefined; +var _default = GodaddyTargetDetails; exports["default"] = _default; /***/ }), -/***/ 35356: +/***/ 51104: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67959,7 +144822,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -67970,19 +144833,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayStartProducerOutput model module. - * @module model/GatewayStartProducerOutput - * @version 3.3.16 + * The GoogleChronicleForwardingConfig model module. + * @module model/GoogleChronicleForwardingConfig + * @version 3.6.3 */ -var GatewayStartProducerOutput = /*#__PURE__*/function () { +var GoogleChronicleForwardingConfig = /*#__PURE__*/function () { /** - * Constructs a new GatewayStartProducerOutput. - * @alias module:model/GatewayStartProducerOutput + * Constructs a new GoogleChronicleForwardingConfig. + * @alias module:model/GoogleChronicleForwardingConfig */ - function GatewayStartProducerOutput() { - _classCallCheck(this, GatewayStartProducerOutput); + function GoogleChronicleForwardingConfig() { + _classCallCheck(this, GoogleChronicleForwardingConfig); - GatewayStartProducerOutput.initialize(this); + GoogleChronicleForwardingConfig.initialize(this); } /** * Initializes the fields of this object. @@ -67991,25 +144854,37 @@ var GatewayStartProducerOutput = /*#__PURE__*/function () { */ - _createClass(GatewayStartProducerOutput, null, [{ + _createClass(GoogleChronicleForwardingConfig, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayStartProducerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a GoogleChronicleForwardingConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStartProducerOutput} obj Optional instance to populate. - * @return {module:model/GatewayStartProducerOutput} The populated GatewayStartProducerOutput instance. + * @param {module:model/GoogleChronicleForwardingConfig} obj Optional instance to populate. + * @return {module:model/GoogleChronicleForwardingConfig} The populated GoogleChronicleForwardingConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayStartProducerOutput(); + obj = obj || new GoogleChronicleForwardingConfig(); - if (data.hasOwnProperty('producer_name')) { - obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); + if (data.hasOwnProperty('customer_id')) { + obj['customer_id'] = _ApiClient["default"].convertToType(data['customer_id'], 'String'); + } + + if (data.hasOwnProperty('log_type')) { + obj['log_type'] = _ApiClient["default"].convertToType(data['log_type'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('service_account_key')) { + obj['service_account_key'] = _ApiClient["default"].convertToType(data['service_account_key'], 'String'); } } @@ -68017,20 +144892,35 @@ var GatewayStartProducerOutput = /*#__PURE__*/function () { } }]); - return GatewayStartProducerOutput; + return GoogleChronicleForwardingConfig; }(); /** - * @member {String} producer_name + * @member {String} customer_id */ -GatewayStartProducerOutput.prototype['producer_name'] = undefined; -var _default = GatewayStartProducerOutput; +GoogleChronicleForwardingConfig.prototype['customer_id'] = undefined; +/** + * @member {String} log_type + */ + +GoogleChronicleForwardingConfig.prototype['log_type'] = undefined; +/** + * @member {String} region + */ + +GoogleChronicleForwardingConfig.prototype['region'] = undefined; +/** + * @member {String} service_account_key + */ + +GoogleChronicleForwardingConfig.prototype['service_account_key'] = undefined; +var _default = GoogleChronicleForwardingConfig; exports["default"] = _default; /***/ }), -/***/ 15771: +/***/ 23762: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -68041,7 +144931,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(58545)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -68052,20 +144944,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayStatusMigration model module. - * @module model/GatewayStatusMigration - * @version 3.3.16 + * The Group model module. + * @module model/Group + * @version 3.6.3 */ -var GatewayStatusMigration = /*#__PURE__*/function () { +var Group = /*#__PURE__*/function () { /** - * Constructs a new GatewayStatusMigration. - * gatewayStatusMigration is a command that get migration status - * @alias module:model/GatewayStatusMigration + * Constructs a new Group. + * @alias module:model/Group */ - function GatewayStatusMigration() { - _classCallCheck(this, GatewayStatusMigration); + function Group() { + _classCallCheck(this, Group); - GatewayStatusMigration.initialize(this); + Group.initialize(this); } /** * Initializes the fields of this object. @@ -68074,41 +144965,53 @@ var GatewayStatusMigration = /*#__PURE__*/function () { */ - _createClass(GatewayStatusMigration, null, [{ + _createClass(Group, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayStatusMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a Group from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStatusMigration} obj Optional instance to populate. - * @return {module:model/GatewayStatusMigration} The populated GatewayStatusMigration instance. + * @param {module:model/Group} obj Optional instance to populate. + * @return {module:model/Group} The populated Group instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayStatusMigration(); + obj = obj || new Group(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('group_alias')) { + obj['group_alias'] = _ApiClient["default"].convertToType(data['group_alias'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = _ApiClient["default"].convertToType(data['group_id'], 'String'); + } + + if (data.hasOwnProperty('group_name')) { + obj['group_name'] = _ApiClient["default"].convertToType(data['group_name'], 'String'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + + if (data.hasOwnProperty('user_assignments')) { + obj['user_assignments'] = _ApiClient["default"].convertToType(data['user_assignments'], [_AccessPermissionAssignment["default"]]); } } @@ -68116,46 +145019,55 @@ var GatewayStatusMigration = /*#__PURE__*/function () { } }]); - return GatewayStatusMigration; + return Group; }(); /** - * Migration ID - * @member {String} id + * @member {String} account_id */ -GatewayStatusMigration.prototype['id'] = undefined; +Group.prototype['account_id'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Date} creation_date */ -GatewayStatusMigration.prototype['json'] = false; +Group.prototype['creation_date'] = undefined; /** - * Migration name to display - * @member {String} name + * @member {String} description */ -GatewayStatusMigration.prototype['name'] = undefined; +Group.prototype['description'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} group_alias */ -GatewayStatusMigration.prototype['token'] = undefined; +Group.prototype['group_alias'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} group_id */ -GatewayStatusMigration.prototype['uid-token'] = undefined; -var _default = GatewayStatusMigration; +Group.prototype['group_id'] = undefined; +/** + * @member {String} group_name + */ + +Group.prototype['group_name'] = undefined; +/** + * @member {Date} modification_date + */ + +Group.prototype['modification_date'] = undefined; +/** + * @member {Array.} user_assignments + */ + +Group.prototype['user_assignments'] = undefined; +var _default = Group; exports["default"] = _default; /***/ }), -/***/ 98592: +/***/ 65883: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -68166,7 +145078,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CfInfo = _interopRequireDefault(__nccwpck_require__(73036)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -68177,21 +145091,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayStopProducer model module. - * @module model/GatewayStopProducer - * @version 3.3.16 + * The GwClusterIdentity model module. + * @module model/GwClusterIdentity + * @version 3.6.3 */ -var GatewayStopProducer = /*#__PURE__*/function () { +var GwClusterIdentity = /*#__PURE__*/function () { /** - * Constructs a new GatewayStopProducer. - * gatewayStopProducer is a command that stops producer - * @alias module:model/GatewayStopProducer - * @param name {String} Producer name + * Constructs a new GwClusterIdentity. + * @alias module:model/GwClusterIdentity */ - function GatewayStopProducer(name) { - _classCallCheck(this, GatewayStopProducer); + function GwClusterIdentity() { + _classCallCheck(this, GwClusterIdentity); - GatewayStopProducer.initialize(this, name); + GwClusterIdentity.initialize(this); } /** * Initializes the fields of this object. @@ -68200,39 +145112,81 @@ var GatewayStopProducer = /*#__PURE__*/function () { */ - _createClass(GatewayStopProducer, null, [{ + _createClass(GwClusterIdentity, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayStopProducer from a plain JavaScript object, optionally creating a new instance. + * Constructs a GwClusterIdentity from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStopProducer} obj Optional instance to populate. - * @return {module:model/GatewayStopProducer} The populated GatewayStopProducer instance. + * @param {module:model/GwClusterIdentity} obj Optional instance to populate. + * @return {module:model/GwClusterIdentity} The populated GwClusterIdentity instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayStopProducer(); + obj = obj || new GwClusterIdentity(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('action_allowed')) { + obj['action_allowed'] = _ApiClient["default"].convertToType(data['action_allowed'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('allowed')) { + obj['allowed'] = _ApiClient["default"].convertToType(data['allowed'], 'Boolean'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('allowed_access_ids')) { + obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('cluster_name')) { + obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); + } + + if (data.hasOwnProperty('cluster_url')) { + obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); + } + + if (data.hasOwnProperty('current_gw')) { + obj['current_gw'] = _ApiClient["default"].convertToType(data['current_gw'], 'Boolean'); + } + + if (data.hasOwnProperty('customer_fragment_ids')) { + obj['customer_fragment_ids'] = _ApiClient["default"].convertToType(data['customer_fragment_ids'], ['String']); + } + + if (data.hasOwnProperty('customer_fragments')) { + obj['customer_fragments'] = _ApiClient["default"].convertToType(data['customer_fragments'], [_CfInfo["default"]]); + } + + if (data.hasOwnProperty('default_protection_key_id')) { + obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); + } + + if (data.hasOwnProperty('default_secret_location')) { + obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); + } + + if (data.hasOwnProperty('display_name')) { + obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + + if (data.hasOwnProperty('serverless_type')) { + obj['serverless_type'] = _ApiClient["default"].convertToType(data['serverless_type'], 'String'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + + if (data.hasOwnProperty('status_description')) { + obj['status_description'] = _ApiClient["default"].convertToType(data['status_description'], 'String'); } } @@ -68240,122 +145194,91 @@ var GatewayStopProducer = /*#__PURE__*/function () { } }]); - return GatewayStopProducer; + return GwClusterIdentity; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Boolean} action_allowed */ -GatewayStopProducer.prototype['json'] = false; +GwClusterIdentity.prototype['action_allowed'] = undefined; /** - * Producer name - * @member {String} name + * @member {Boolean} allowed */ -GatewayStopProducer.prototype['name'] = undefined; +GwClusterIdentity.prototype['allowed'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Array.} allowed_access_ids */ -GatewayStopProducer.prototype['token'] = undefined; +GwClusterIdentity.prototype['allowed_access_ids'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} cluster_name */ -GatewayStopProducer.prototype['uid-token'] = undefined; -var _default = GatewayStopProducer; -exports["default"] = _default; - -/***/ }), - -/***/ 89962: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +GwClusterIdentity.prototype['cluster_name'] = undefined; +/** + * @member {String} cluster_url + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +GwClusterIdentity.prototype['cluster_url'] = undefined; +/** + * @member {Boolean} current_gw + */ +GwClusterIdentity.prototype['current_gw'] = undefined; /** - * The GatewayStopProducerOutput model module. - * @module model/GatewayStopProducerOutput - * @version 3.3.16 + * Deprecated - use CustomerFragments instead + * @member {Array.} customer_fragment_ids */ -var GatewayStopProducerOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayStopProducerOutput. - * @alias module:model/GatewayStopProducerOutput - */ - function GatewayStopProducerOutput() { - _classCallCheck(this, GatewayStopProducerOutput); - GatewayStopProducerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +GwClusterIdentity.prototype['customer_fragment_ids'] = undefined; +/** + * @member {Array.} customer_fragments + */ +GwClusterIdentity.prototype['customer_fragments'] = undefined; +/** + * @member {Number} default_protection_key_id + */ - _createClass(GatewayStopProducerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayStopProducerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStopProducerOutput} obj Optional instance to populate. - * @return {module:model/GatewayStopProducerOutput} The populated GatewayStopProducerOutput instance. - */ +GwClusterIdentity.prototype['default_protection_key_id'] = undefined; +/** + * @member {String} default_secret_location + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayStopProducerOutput(); +GwClusterIdentity.prototype['default_secret_location'] = undefined; +/** + * @member {String} display_name + */ - if (data.hasOwnProperty('producer_name')) { - obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); - } - } +GwClusterIdentity.prototype['display_name'] = undefined; +/** + * @member {Number} id + */ - return obj; - } - }]); +GwClusterIdentity.prototype['id'] = undefined; +/** + * @member {String} serverless_type + */ - return GatewayStopProducerOutput; -}(); +GwClusterIdentity.prototype['serverless_type'] = undefined; /** - * @member {String} producer_name + * @member {String} status */ +GwClusterIdentity.prototype['status'] = undefined; +/** + * @member {String} status_description + */ -GatewayStopProducerOutput.prototype['producer_name'] = undefined; -var _default = GatewayStopProducerOutput; +GwClusterIdentity.prototype['status_description'] = undefined; +var _default = GwClusterIdentity; exports["default"] = _default; /***/ }), -/***/ 47483: +/***/ 52932: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -68366,7 +145289,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _HashiPayload = _interopRequireDefault(__nccwpck_require__(72010)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -68377,21 +145304,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewaySyncMigration model module. - * @module model/GatewaySyncMigration - * @version 3.3.16 + * The HashiMigration model module. + * @module model/HashiMigration + * @version 3.6.3 */ -var GatewaySyncMigration = /*#__PURE__*/function () { +var HashiMigration = /*#__PURE__*/function () { /** - * Constructs a new GatewaySyncMigration. - * gatewaySyncMigration is a command that sync migration - * @alias module:model/GatewaySyncMigration - * @param name {String} Migration name + * Constructs a new HashiMigration. + * @alias module:model/HashiMigration */ - function GatewaySyncMigration(name) { - _classCallCheck(this, GatewaySyncMigration); + function HashiMigration() { + _classCallCheck(this, HashiMigration); - GatewaySyncMigration.initialize(this, name); + HashiMigration.initialize(this); } /** * Initializes the fields of this object. @@ -68400,43 +145325,29 @@ var GatewaySyncMigration = /*#__PURE__*/function () { */ - _createClass(GatewaySyncMigration, null, [{ + _createClass(HashiMigration, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewaySyncMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a HashiMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewaySyncMigration} obj Optional instance to populate. - * @return {module:model/GatewaySyncMigration} The populated GatewaySyncMigration instance. + * @param {module:model/HashiMigration} obj Optional instance to populate. + * @return {module:model/HashiMigration} The populated HashiMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewaySyncMigration(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('start-sync')) { - obj['start-sync'] = _ApiClient["default"].convertToType(data['start-sync'], 'Boolean'); - } + obj = obj || new HashiMigration(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('payload')) { + obj['payload'] = _HashiPayload["default"].constructFromObject(data['payload']); } } @@ -68444,46 +145355,25 @@ var GatewaySyncMigration = /*#__PURE__*/function () { } }]); - return GatewaySyncMigration; + return HashiMigration; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewaySyncMigration.prototype['json'] = false; -/** - * Migration name - * @member {String} name - */ - -GatewaySyncMigration.prototype['name'] = undefined; -/** - * true, for starting synchronization, false for stopping - * @member {Boolean} start-sync + * @member {module:model/MigrationGeneral} general */ -GatewaySyncMigration.prototype['start-sync'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ -GatewaySyncMigration.prototype['token'] = undefined; +HashiMigration.prototype['general'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/HashiPayload} payload */ -GatewaySyncMigration.prototype['uid-token'] = undefined; -var _default = GatewaySyncMigration; +HashiMigration.prototype['payload'] = undefined; +var _default = HashiMigration; exports["default"] = _default; /***/ }), -/***/ 90085: +/***/ 72010: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -68494,7 +145384,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -68505,22 +145395,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateAllowedAccess model module. - * @module model/GatewayUpdateAllowedAccess - * @version 3.3.16 + * The HashiPayload model module. + * @module model/HashiPayload + * @version 3.6.3 */ -var GatewayUpdateAllowedAccess = /*#__PURE__*/function () { +var HashiPayload = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateAllowedAccess. - * gatewayUpdateAllowedAccess is a command that update allowed access in Gator - * @alias module:model/GatewayUpdateAllowedAccess - * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @param name {String} Allowed access name + * Constructs a new HashiPayload. + * @alias module:model/HashiPayload */ - function GatewayUpdateAllowedAccess(accessId, name) { - _classCallCheck(this, GatewayUpdateAllowedAccess); + function HashiPayload() { + _classCallCheck(this, HashiPayload); - GatewayUpdateAllowedAccess.initialize(this, accessId, name); + HashiPayload.initialize(this); } /** * Initializes the fields of this object. @@ -68529,62 +145416,37 @@ var GatewayUpdateAllowedAccess = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateAllowedAccess, null, [{ + _createClass(HashiPayload, null, [{ key: "initialize", - value: function initialize(obj, accessId, name) { - obj['access-id'] = accessId; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Constructs a HashiPayload from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayUpdateAllowedAccess} The populated GatewayUpdateAllowedAccess instance. + * @param {module:model/HashiPayload} obj Optional instance to populate. + * @return {module:model/HashiPayload} The populated HashiPayload instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateAllowedAccess(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } + obj = obj || new HashiPayload(); - if (data.hasOwnProperty('permissions')) { - obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); + if (data.hasOwnProperty('import_as_json')) { + obj['import_as_json'] = _ApiClient["default"].convertToType(data['import_as_json'], 'Boolean'); } - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); + if (data.hasOwnProperty('namespaces')) { + obj['namespaces'] = _ApiClient["default"].convertToType(data['namespaces'], ['String']); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); } } @@ -68592,70 +145454,35 @@ var GatewayUpdateAllowedAccess = /*#__PURE__*/function () { } }]); - return GatewayUpdateAllowedAccess; + return HashiPayload; }(); /** - * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @member {String} access-id - */ - - -GatewayUpdateAllowedAccess.prototype['access-id'] = undefined; -/** - * Allowed access description - * @member {String} description - */ - -GatewayUpdateAllowedAccess.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateAllowedAccess.prototype['json'] = false; -/** - * Allowed access name - * @member {String} name - */ - -GatewayUpdateAllowedAccess.prototype['name'] = undefined; -/** - * New allowed access name - * @member {String} new-name + * @member {Boolean} import_as_json */ -GatewayUpdateAllowedAccess.prototype['new-name'] = undefined; -/** - * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] - * @member {String} permissions - */ -GatewayUpdateAllowedAccess.prototype['permissions'] = undefined; +HashiPayload.prototype['import_as_json'] = undefined; /** - * Sub claims key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims + * @member {Array.} namespaces */ -GatewayUpdateAllowedAccess.prototype['sub-claims'] = undefined; +HashiPayload.prototype['namespaces'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateAllowedAccess.prototype['token'] = undefined; +HashiPayload.prototype['token'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} url */ -GatewayUpdateAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayUpdateAllowedAccess; +HashiPayload.prototype['url'] = undefined; +var _default = HashiPayload; exports["default"] = _default; /***/ }), -/***/ 41036: +/***/ 28566: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -68666,7 +145493,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -68677,22 +145504,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateItem model module. - * @module model/GatewayUpdateItem - * @version 3.3.16 + * The Hmac model module. + * @module model/Hmac + * @version 3.6.3 */ -var GatewayUpdateItem = /*#__PURE__*/function () { +var Hmac = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateItem. - * gatewayUpdateItem is a command that updates classic key - * @alias module:model/GatewayUpdateItem - * @param name {String} Item name - * @param type {String} Item type + * Constructs a new Hmac. + * @alias module:model/Hmac + * @param keyName {String} The name of the key to use in the encryption process */ - function GatewayUpdateItem(name, type) { - _classCallCheck(this, GatewayUpdateItem); + function Hmac(keyName) { + _classCallCheck(this, Hmac); - GatewayUpdateItem.initialize(this, name, type); + Hmac.initialize(this, keyName); } /** * Initializes the fields of this object. @@ -68701,118 +145526,57 @@ var GatewayUpdateItem = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateItem, null, [{ + _createClass(Hmac, null, [{ key: "initialize", - value: function initialize(obj, name, type) { - obj['name'] = name; - obj['type'] = type; + value: function initialize(obj, keyName) { + obj['key-name'] = keyName; } /** - * Constructs a GatewayUpdateItem from a plain JavaScript object, optionally creating a new instance. + * Constructs a Hmac from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateItem} obj Optional instance to populate. - * @return {module:model/GatewayUpdateItem} The populated GatewayUpdateItem instance. + * @param {module:model/Hmac} obj Optional instance to populate. + * @return {module:model/Hmac} The populated Hmac instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateItem(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('api-id')) { - obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); - } - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); - } + obj = obj || new Hmac(); - if (data.hasOwnProperty('custom-payload')) { - obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-metadata')) { - obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('rotated-password')) { - obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); - } - - if (data.hasOwnProperty('rotated-username')) { - obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); - } - - if (data.hasOwnProperty('rotation-hour')) { - obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); } - if (data.hasOwnProperty('rotator-creds-type')) { - obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -68822,164 +145586,71 @@ var GatewayUpdateItem = /*#__PURE__*/function () { } }]); - return GatewayUpdateItem; + return Hmac; }(); /** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - - -GatewayUpdateItem.prototype['add-tag'] = undefined; -/** - * API ID to rotate (relevant only for rotator-type=api-key) - * @member {String} api-id - */ - -GatewayUpdateItem.prototype['api-id'] = undefined; -/** - * API key to rotate (relevant only for rotator-type=api-key) - * @member {String} api-key - */ - -GatewayUpdateItem.prototype['api-key'] = undefined; -/** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] - * @member {String} auto-rotate + * The display id of the key to use in the encryption process + * @member {String} display-id */ -GatewayUpdateItem.prototype['auto-rotate'] = undefined; -/** - * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) - * @member {String} custom-payload - */ -GatewayUpdateItem.prototype['custom-payload'] = undefined; +Hmac.prototype['display-id'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Hash function [sha-256,sha-512] + * @member {String} hash-function + * @default 'sha-256' */ -GatewayUpdateItem.prototype['delete_protection'] = undefined; +Hmac.prototype['hash-function'] = 'sha-256'; /** - * Description of the object - * @member {String} description - * @default 'default_metadata' + * Select default assumed format for any plaintext input. Currently supported options: [base64] + * @member {String} input-format */ -GatewayUpdateItem.prototype['description'] = 'default_metadata'; +Hmac.prototype['input-format'] = undefined; /** - * Base64-encoded service account private key text - * @member {String} gcp-key + * The item id of the key to use in the encryption process + * @member {Number} item-id */ -GatewayUpdateItem.prototype['gcp-key'] = undefined; +Hmac.prototype['item-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateItem.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. (relevant only for --type=rotated-secret). If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -GatewayUpdateItem.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -GatewayUpdateItem.prototype['key'] = undefined; -/** - * Item name - * @member {String} name - */ - -GatewayUpdateItem.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-metadata - * @default 'default_metadata' - */ - -GatewayUpdateItem.prototype['new-metadata'] = 'default_metadata'; -/** - * New item name - * @member {String} new-name - */ - -GatewayUpdateItem.prototype['new-name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -GatewayUpdateItem.prototype['new-version'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -GatewayUpdateItem.prototype['rm-tag'] = undefined; -/** - * rotated-username password (relevant only for rotator-type=password) - * @member {String} rotated-password - */ - -GatewayUpdateItem.prototype['rotated-password'] = undefined; -/** - * username to be rotated, if selected \\\"use-self-creds\\\" at rotator-creds-type, this username will try to rotate it's own password, if \\\"use-target-creds\\\" is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) - * @member {String} rotated-username - */ - -GatewayUpdateItem.prototype['rotated-username'] = undefined; -/** - * The Rotation Hour - * @member {Number} rotation-hour - * @default 0 - */ - -GatewayUpdateItem.prototype['rotation-hour'] = 0; +Hmac.prototype['json'] = false; /** - * The number of days to wait between every automatic key rotation (1-365) - * @member {String} rotation-interval + * The name of the key to use in the encryption process + * @member {String} key-name */ -GatewayUpdateItem.prototype['rotation-interval'] = undefined; +Hmac.prototype['key-name'] = undefined; /** - * The rotation credentials type - * @member {String} rotator-creds-type - * @default 'use-self-creds' + * Data to perform hmac on + * @member {String} plaintext */ -GatewayUpdateItem.prototype['rotator-creds-type'] = 'use-self-creds'; +Hmac.prototype['plaintext'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateItem.prototype['token'] = undefined; -/** - * Item type - * @member {String} type - */ - -GatewayUpdateItem.prototype['type'] = undefined; +Hmac.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateItem.prototype['uid-token'] = undefined; -var _default = GatewayUpdateItem; +Hmac.prototype['uid-token'] = undefined; +var _default = Hmac; exports["default"] = _default; /***/ }), -/***/ 70950: +/***/ 76659: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -68990,7 +145661,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -69001,19 +145672,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateItemOutput model module. - * @module model/GatewayUpdateItemOutput - * @version 3.3.16 + * The HmacOutput model module. + * @module model/HmacOutput + * @version 3.6.3 */ -var GatewayUpdateItemOutput = /*#__PURE__*/function () { +var HmacOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateItemOutput. - * @alias module:model/GatewayUpdateItemOutput + * Constructs a new HmacOutput. + * @alias module:model/HmacOutput */ - function GatewayUpdateItemOutput() { - _classCallCheck(this, GatewayUpdateItemOutput); + function HmacOutput() { + _classCallCheck(this, HmacOutput); - GatewayUpdateItemOutput.initialize(this); + HmacOutput.initialize(this); } /** * Initializes the fields of this object. @@ -69022,25 +145693,25 @@ var GatewayUpdateItemOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateItemOutput, null, [{ + _createClass(HmacOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateItemOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a HmacOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateItemOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateItemOutput} The populated GatewayUpdateItemOutput instance. + * @param {module:model/HmacOutput} obj Optional instance to populate. + * @return {module:model/HmacOutput} The populated HmacOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateItemOutput(); + obj = obj || new HmacOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -69048,20 +145719,20 @@ var GatewayUpdateItemOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateItemOutput; + return HmacOutput; }(); /** - * @member {String} name + * @member {String} result */ -GatewayUpdateItemOutput.prototype['name'] = undefined; -var _default = GatewayUpdateItemOutput; +HmacOutput.prototype['result'] = undefined; +var _default = HmacOutput; exports["default"] = _default; /***/ }), -/***/ 36558: +/***/ 42767: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -69072,7 +145743,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -69083,25 +145754,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateK8SAuthConfig model module. - * @module model/GatewayUpdateK8SAuthConfig - * @version 3.3.16 + * The HuaweiAccessRules model module. + * @module model/HuaweiAccessRules + * @version 3.6.3 */ -var GatewayUpdateK8SAuthConfig = /*#__PURE__*/function () { +var HuaweiAccessRules = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateK8SAuthConfig. - * gatewayUpdateK8SAuth is a command that updates k8s auth config - * @alias module:model/GatewayUpdateK8SAuthConfig - * @param accessId {String} The access ID of the Kubernetes auth method - * @param k8sHost {String} The URL of the kubernetes API server - * @param name {String} K8S Auth config name - * @param newName {String} K8S Auth config new name - * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + * Constructs a new HuaweiAccessRules. + * @alias module:model/HuaweiAccessRules */ - function GatewayUpdateK8SAuthConfig(accessId, k8sHost, name, newName, signingKey) { - _classCallCheck(this, GatewayUpdateK8SAuthConfig); + function HuaweiAccessRules() { + _classCallCheck(this, HuaweiAccessRules); - GatewayUpdateK8SAuthConfig.initialize(this, accessId, k8sHost, name, newName, signingKey); + HuaweiAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -69110,99 +145775,49 @@ var GatewayUpdateK8SAuthConfig = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateK8SAuthConfig, null, [{ + _createClass(HuaweiAccessRules, null, [{ key: "initialize", - value: function initialize(obj, accessId, k8sHost, name, newName, signingKey) { - obj['access-id'] = accessId; - obj['k8s-host'] = k8sHost; - obj['name'] = name; - obj['new-name'] = newName; - obj['signing-key'] = signingKey; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a HuaweiAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayUpdateK8SAuthConfig} The populated GatewayUpdateK8SAuthConfig instance. + * @param {module:model/HuaweiAccessRules} obj Optional instance to populate. + * @return {module:model/HuaweiAccessRules} The populated HuaweiAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateK8SAuthConfig(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('cluster-api-type')) { - obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); - } - - if (data.hasOwnProperty('config-encryption-key-name')) { - obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('disable-issuer-validation')) { - obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-ca-cert')) { - obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-host')) { - obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); - } - - if (data.hasOwnProperty('k8s-issuer')) { - obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('rancher-api-key')) { - obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); - } + obj = obj || new HuaweiAccessRules(); - if (data.hasOwnProperty('rancher-cluster-id')) { - obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); + if (data.hasOwnProperty('auth_endpoint')) { + obj['auth_endpoint'] = _ApiClient["default"].convertToType(data['auth_endpoint'], 'String'); } - if (data.hasOwnProperty('signing-key')) { - obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); + if (data.hasOwnProperty('domain_id')) { + obj['domain_id'] = _ApiClient["default"].convertToType(data['domain_id'], ['String']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('domain_name')) { + obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], ['String']); } - if (data.hasOwnProperty('token-exp')) { - obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); + if (data.hasOwnProperty('tenant_id')) { + obj['tenant_id'] = _ApiClient["default"].convertToType(data['tenant_id'], ['String']); } - if (data.hasOwnProperty('token-reviewer-jwt')) { - obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); + if (data.hasOwnProperty('tenant_name')) { + obj['tenant_name'] = _ApiClient["default"].convertToType(data['tenant_name'], ['String']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); } - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); } } @@ -69210,127 +145825,57 @@ var GatewayUpdateK8SAuthConfig = /*#__PURE__*/function () { } }]); - return GatewayUpdateK8SAuthConfig; + return HuaweiAccessRules; }(); /** - * The access ID of the Kubernetes auth method - * @member {String} access-id - */ - - -GatewayUpdateK8SAuthConfig.prototype['access-id'] = undefined; -/** - * Cluster access type. options: [native_k8s, rancher] - * @member {String} cluster-api-type - * @default 'native_k8s' - */ - -GatewayUpdateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; -/** - * Config encryption key - * @member {String} config-encryption-key-name - */ - -GatewayUpdateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; -/** - * Disable issuer validation [true/false] - * @member {String} disable-issuer-validation - */ - -GatewayUpdateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateK8SAuthConfig.prototype['json'] = false; -/** - * The CA Certificate (base64 encoded) to use to call into the kubernetes API server - * @member {String} k8s-ca-cert - */ - -GatewayUpdateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; -/** - * The URL of the kubernetes API server - * @member {String} k8s-host - */ - -GatewayUpdateK8SAuthConfig.prototype['k8s-host'] = undefined; -/** - * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s-issuer - * @default 'kubernetes/serviceaccount' - */ - -GatewayUpdateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; -/** - * K8S Auth config name - * @member {String} name - */ - -GatewayUpdateK8SAuthConfig.prototype['name'] = undefined; -/** - * K8S Auth config new name - * @member {String} new-name - */ - -GatewayUpdateK8SAuthConfig.prototype['new-name'] = undefined; -/** - * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) - * @member {String} rancher-api-key + * The auth URL. + * @member {String} auth_endpoint */ -GatewayUpdateK8SAuthConfig.prototype['rancher-api-key'] = undefined; -/** - * The cluster id as define in rancher (relevant for \"rancher\" only) - * @member {String} rancher-cluster-id - */ -GatewayUpdateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; +HuaweiAccessRules.prototype['auth_endpoint'] = undefined; /** - * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth - * @member {String} signing-key + * The list of domain ids that the login is restricted to. + * @member {Array.} domain_id */ -GatewayUpdateK8SAuthConfig.prototype['signing-key'] = undefined; +HuaweiAccessRules.prototype['domain_id'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The list of domainNames that the login is restricted to. + * @member {Array.} domain_name */ -GatewayUpdateK8SAuthConfig.prototype['token'] = undefined; +HuaweiAccessRules.prototype['domain_name'] = undefined; /** - * Time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} token-exp - * @default 300 + * The list of tenantIDs that the login is restricted to. + * @member {Array.} tenant_id */ -GatewayUpdateK8SAuthConfig.prototype['token-exp'] = 300; +HuaweiAccessRules.prototype['tenant_id'] = undefined; /** - * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. - * @member {String} token-reviewer-jwt + * The list of tenantNames that the login is restricted to. + * @member {Array.} tenant_name */ -GatewayUpdateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; +HuaweiAccessRules.prototype['tenant_name'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * The list of user ids that the login is restricted to. + * @member {Array.} user_id */ -GatewayUpdateK8SAuthConfig.prototype['uid-token'] = undefined; +HuaweiAccessRules.prototype['user_id'] = undefined; /** - * Use the GW's service account - * @member {Boolean} use-gw-service-account + * The list of user names that the login is restricted to. + * @member {Array.} user_name */ -GatewayUpdateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; -var _default = GatewayUpdateK8SAuthConfig; +HuaweiAccessRules.prototype['user_name'] = undefined; +var _default = HuaweiAccessRules; exports["default"] = _default; /***/ }), -/***/ 42841: +/***/ 91384: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -69341,9 +145886,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(79508)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -69354,19 +145897,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateK8SAuthConfigOutput model module. - * @module model/GatewayUpdateK8SAuthConfigOutput - * @version 3.3.16 + * The ImportPasswords model module. + * @module model/ImportPasswords + * @version 3.6.3 */ -var GatewayUpdateK8SAuthConfigOutput = /*#__PURE__*/function () { +var ImportPasswords = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateK8SAuthConfigOutput. - * @alias module:model/GatewayUpdateK8SAuthConfigOutput + * Constructs a new ImportPasswords. + * importPasswords is a command that import passwords + * @alias module:model/ImportPasswords + * @param importPath {String} File path */ - function GatewayUpdateK8SAuthConfigOutput() { - _classCallCheck(this, GatewayUpdateK8SAuthConfigOutput); + function ImportPasswords(importPath) { + _classCallCheck(this, ImportPasswords); - GatewayUpdateK8SAuthConfigOutput.initialize(this); + ImportPasswords.initialize(this, importPath); } /** * Initializes the fields of this object. @@ -69375,33 +145920,59 @@ var GatewayUpdateK8SAuthConfigOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateK8SAuthConfigOutput, null, [{ + _createClass(ImportPasswords, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, importPath) { + obj['import-path'] = importPath; + } /** - * Constructs a GatewayUpdateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ImportPasswords from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateK8SAuthConfigOutput} The populated GatewayUpdateK8SAuthConfigOutput instance. + * @param {module:model/ImportPasswords} obj Optional instance to populate. + * @return {module:model/ImportPasswords} The populated ImportPasswords instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateK8SAuthConfigOutput(); + obj = obj || new ImportPasswords(); - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - if (data.hasOwnProperty('parts_change')) { - obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); } - if (data.hasOwnProperty('total_hash')) { - obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); + if (data.hasOwnProperty('import-path')) { + obj['import-path'] = _ApiClient["default"].convertToType(data['import-path'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('target-folder')) { + obj['target-folder'] = _ApiClient["default"].convertToType(data['target-folder'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-mode')) { + obj['update-mode'] = _ApiClient["default"].convertToType(data['update-mode'], 'String'); } } @@ -69409,30 +145980,72 @@ var GatewayUpdateK8SAuthConfigOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateK8SAuthConfigOutput; + return ImportPasswords; }(); /** - * @member {String} cluster_id + * for personal password manager + * @member {String} accessibility + * @default 'personal' */ -GatewayUpdateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; +ImportPasswords.prototype['accessibility'] = 'personal'; /** - * @member {module:model/ConfigChange} parts_change + * Password format type [LastPass/Chrome/Firefox] + * @member {String} format + * @default 'LastPass' */ -GatewayUpdateK8SAuthConfigOutput.prototype['parts_change'] = undefined; +ImportPasswords.prototype['format'] = 'LastPass'; /** - * @member {String} total_hash + * File path + * @member {String} import-path */ -GatewayUpdateK8SAuthConfigOutput.prototype['total_hash'] = undefined; -var _default = GatewayUpdateK8SAuthConfigOutput; +ImportPasswords.prototype['import-path'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +ImportPasswords.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ + +ImportPasswords.prototype['protection_key'] = undefined; +/** + * Target folder for imported passwords + * @member {String} target-folder + * @default '/' + */ + +ImportPasswords.prototype['target-folder'] = '/'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ImportPasswords.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +ImportPasswords.prototype['uid-token'] = undefined; +/** + * @member {String} update-mode + */ + +ImportPasswords.prototype['update-mode'] = undefined; +var _default = ImportPasswords; exports["default"] = _default; /***/ }), -/***/ 21105: +/***/ 7249: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -69443,7 +146056,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -69454,20 +146067,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateLdapAuthConfig model module. - * @module model/GatewayUpdateLdapAuthConfig - * @version 3.3.16 + * The ImportPasswordsOutput model module. + * @module model/ImportPasswordsOutput + * @version 3.6.3 */ -var GatewayUpdateLdapAuthConfig = /*#__PURE__*/function () { +var ImportPasswordsOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateLdapAuthConfig. - * gatewayUpdateLdapAuth is a command that updates ldap auth config - * @alias module:model/GatewayUpdateLdapAuthConfig + * Constructs a new ImportPasswordsOutput. + * @alias module:model/ImportPasswordsOutput */ - function GatewayUpdateLdapAuthConfig() { - _classCallCheck(this, GatewayUpdateLdapAuthConfig); + function ImportPasswordsOutput() { + _classCallCheck(this, ImportPasswordsOutput); - GatewayUpdateLdapAuthConfig.initialize(this); + ImportPasswordsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -69476,85 +146088,37 @@ var GatewayUpdateLdapAuthConfig = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateLdapAuthConfig, null, [{ + _createClass(ImportPasswordsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a ImportPasswordsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateLdapAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayUpdateLdapAuthConfig} The populated GatewayUpdateLdapAuthConfig instance. + * @param {module:model/ImportPasswordsOutput} obj Optional instance to populate. + * @return {module:model/ImportPasswordsOutput} The populated ImportPasswordsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateLdapAuthConfig(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('group-attr')) { - obj['group-attr'] = _ApiClient["default"].convertToType(data['group-attr'], 'String'); - } - - if (data.hasOwnProperty('group-dn')) { - obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); - } - - if (data.hasOwnProperty('group-filter')) { - obj['group-filter'] = _ApiClient["default"].convertToType(data['group-filter'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-enable')) { - obj['ldap-enable'] = _ApiClient["default"].convertToType(data['ldap-enable'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('ldap_anonymous_search')) { - obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); - } - - if (data.hasOwnProperty('signing-key-data')) { - obj['signing-key-data'] = _ApiClient["default"].convertToType(data['signing-key-data'], 'String'); - } + obj = obj || new ImportPasswordsOutput(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('imported')) { + obj['imported'] = _ApiClient["default"].convertToType(data['imported'], 'Number'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('passwords_in_file')) { + obj['passwords_in_file'] = _ApiClient["default"].convertToType(data['passwords_in_file'], 'Number'); } - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + if (data.hasOwnProperty('successfully_parsed')) { + obj['successfully_parsed'] = _ApiClient["default"].convertToType(data['successfully_parsed'], 'Number'); } - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Number'); } } @@ -69562,112 +146126,35 @@ var GatewayUpdateLdapAuthConfig = /*#__PURE__*/function () { } }]); - return GatewayUpdateLdapAuthConfig; + return ImportPasswordsOutput; }(); /** - * The access ID of the Ldap auth method - * @member {String} access-id - */ - - -GatewayUpdateLdapAuthConfig.prototype['access-id'] = undefined; -/** - * Bind DN - * @member {String} bind-dn - */ - -GatewayUpdateLdapAuthConfig.prototype['bind-dn'] = undefined; -/** - * Bind DN Password - * @member {String} bind-dn-password - */ - -GatewayUpdateLdapAuthConfig.prototype['bind-dn-password'] = undefined; -/** - * Group Attr - * @member {String} group-attr - */ - -GatewayUpdateLdapAuthConfig.prototype['group-attr'] = undefined; -/** - * Group Dn - * @member {String} group-dn - */ - -GatewayUpdateLdapAuthConfig.prototype['group-dn'] = undefined; -/** - * Group Filter - * @member {String} group-filter - */ - -GatewayUpdateLdapAuthConfig.prototype['group-filter'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateLdapAuthConfig.prototype['json'] = false; -/** - * LDAP CA Certificate (base64 encoded) - * @member {String} ldap-ca-cert - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap-ca-cert'] = undefined; -/** - * Enable Ldap [true/false] - * @member {String} ldap-enable - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap-enable'] = undefined; -/** - * LDAP Server URL, e.g. ldap://planetexpress.com:389 - * @member {String} ldap-url - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap-url'] = undefined; -/** - * Ldap Anonymous Search - * @member {Boolean} ldap_anonymous_search - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap_anonymous_search'] = undefined; -/** - * The private key (base64 encoded), associated with the public key defined in the Ldap auth - * @member {String} signing-key-data + * @member {Number} imported */ -GatewayUpdateLdapAuthConfig.prototype['signing-key-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ -GatewayUpdateLdapAuthConfig.prototype['token'] = undefined; +ImportPasswordsOutput.prototype['imported'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Number} passwords_in_file */ -GatewayUpdateLdapAuthConfig.prototype['uid-token'] = undefined; +ImportPasswordsOutput.prototype['passwords_in_file'] = undefined; /** - * User Attribute - * @member {String} user-attribute + * @member {Number} successfully_parsed */ -GatewayUpdateLdapAuthConfig.prototype['user-attribute'] = undefined; +ImportPasswordsOutput.prototype['successfully_parsed'] = undefined; /** - * User DN - * @member {String} user-dn + * @member {Number} updated */ -GatewayUpdateLdapAuthConfig.prototype['user-dn'] = undefined; -var _default = GatewayUpdateLdapAuthConfig; +ImportPasswordsOutput.prototype['updated'] = undefined; +var _default = ImportPasswordsOutput; exports["default"] = _default; /***/ }), -/***/ 1327: +/***/ 20371: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -69678,7 +146165,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -69689,19 +146176,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateLdapAuthConfigOutput model module. - * @module model/GatewayUpdateLdapAuthConfigOutput - * @version 3.3.16 + * The ImporterInfo model module. + * @module model/ImporterInfo + * @version 3.6.3 */ -var GatewayUpdateLdapAuthConfigOutput = /*#__PURE__*/function () { +var ImporterInfo = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateLdapAuthConfigOutput. - * @alias module:model/GatewayUpdateLdapAuthConfigOutput + * Constructs a new ImporterInfo. + * @alias module:model/ImporterInfo */ - function GatewayUpdateLdapAuthConfigOutput() { - _classCallCheck(this, GatewayUpdateLdapAuthConfigOutput); + function ImporterInfo() { + _classCallCheck(this, ImporterInfo); - GatewayUpdateLdapAuthConfigOutput.initialize(this); + ImporterInfo.initialize(this); } /** * Initializes the fields of this object. @@ -69710,25 +146197,29 @@ var GatewayUpdateLdapAuthConfigOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateLdapAuthConfigOutput, null, [{ + _createClass(ImporterInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ImporterInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateLdapAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateLdapAuthConfigOutput} The populated GatewayUpdateLdapAuthConfigOutput instance. + * @param {module:model/ImporterInfo} obj Optional instance to populate. + * @return {module:model/ImporterInfo} The populated ImporterInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateLdapAuthConfigOutput(); + obj = obj || new ImporterInfo(); - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('external_item_id')) { + obj['external_item_id'] = _ApiClient["default"].convertToType(data['external_item_id'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -69736,20 +146227,25 @@ var GatewayUpdateLdapAuthConfigOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateLdapAuthConfigOutput; + return ImporterInfo; }(); /** - * @member {Boolean} updated + * @member {String} external_item_id */ -GatewayUpdateLdapAuthConfigOutput.prototype['updated'] = undefined; -var _default = GatewayUpdateLdapAuthConfigOutput; +ImporterInfo.prototype['external_item_id'] = undefined; +/** + * @member {Number} version + */ + +ImporterInfo.prototype['version'] = undefined; +var _default = ImporterInfo; exports["default"] = _default; /***/ }), -/***/ 77167: +/***/ 3054: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -69760,7 +146256,25 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _BastionsList = _interopRequireDefault(__nccwpck_require__(8436)); + +var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(86711)); + +var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(74897)); + +var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(84700)); + +var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(38148)); + +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(85396)); + +var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(47260)); + +var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(43453)); + +var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(75107)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -69771,23 +146285,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateMigration model module. - * @module model/GatewayUpdateMigration - * @version 3.3.16 + * The Item model module. + * @module model/Item + * @version 3.6.3 */ -var GatewayUpdateMigration = /*#__PURE__*/function () { +var Item = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateMigration. - * gatewayUpdateMigration is a command that update migration - * @alias module:model/GatewayUpdateMigration - * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @param targetLocation {String} Target location in Akeyless for imported secrets + * Constructs a new Item. + * @alias module:model/Item */ - function GatewayUpdateMigration(siTargetName, siUsersPathTemplate, targetLocation) { - _classCallCheck(this, GatewayUpdateMigration); + function Item() { + _classCallCheck(this, Item); - GatewayUpdateMigration.initialize(this, siTargetName, siUsersPathTemplate, targetLocation); + Item.initialize(this); } /** * Initializes the fields of this object. @@ -69796,639 +146306,407 @@ var GatewayUpdateMigration = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateMigration, null, [{ + _createClass(Item, null, [{ key: "initialize", - value: function initialize(obj, siTargetName, siUsersPathTemplate, targetLocation) { - obj['si-target-name'] = siTargetName; - obj['si-users-path-template'] = siUsersPathTemplate; - obj['target-location'] = targetLocation; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a Item from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateMigration} obj Optional instance to populate. - * @return {module:model/GatewayUpdateMigration} The populated GatewayUpdateMigration instance. + * @param {module:model/Item} obj Optional instance to populate. + * @return {module:model/Item} The populated Item instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateMigration(); - - if (data.hasOwnProperty('1password-email')) { - obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); - } - - if (data.hasOwnProperty('1password-password')) { - obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); - } - - if (data.hasOwnProperty('1password-secret-key')) { - obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); - } - - if (data.hasOwnProperty('1password-url')) { - obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); - } - - if (data.hasOwnProperty('1password-vaults')) { - obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); - } - - if (data.hasOwnProperty('ad-ssh-port')) { - obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); - } - - if (data.hasOwnProperty('ad-targets-type')) { - obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-over-http')) { - obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-port')) { - obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); - } - - if (data.hasOwnProperty('ad_auto_rotate')) { - obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); - } - - if (data.hasOwnProperty('ad_computer_base_dn')) { - obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); - } - - if (data.hasOwnProperty('ad_discover_local_users')) { - obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_name')) { - obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_users_path_template')) { - obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_ignore')) { - obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_path_template')) { - obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_rotation_hour')) { - obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); - } - - if (data.hasOwnProperty('ad_rotation_interval')) { - obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); - } + obj = obj || new Item(); - if (data.hasOwnProperty('ad_sra_enable_rdp')) { - obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); } - if (data.hasOwnProperty('ad_target_name')) { - obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); } - if (data.hasOwnProperty('ad_targets_path_template')) { - obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); + if (data.hasOwnProperty('access_request_status')) { + obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); } - if (data.hasOwnProperty('ad_user_base_dn')) { - obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); + if (data.hasOwnProperty('auto_rotate')) { + obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); } - if (data.hasOwnProperty('ad_user_groups')) { - obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); + if (data.hasOwnProperty('bastion_details')) { + obj['bastion_details'] = _BastionsList["default"].constructFromObject(data['bastion_details']); } - if (data.hasOwnProperty('aws-key')) { - obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); + if (data.hasOwnProperty('cert_issuer_signer_key_name')) { + obj['cert_issuer_signer_key_name'] = _ApiClient["default"].convertToType(data['cert_issuer_signer_key_name'], 'String'); } - if (data.hasOwnProperty('aws-key-id')) { - obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); + if (data.hasOwnProperty('certificate_issue_details')) { + obj['certificate_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['certificate_issue_details']); } - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + if (data.hasOwnProperty('certificates')) { + obj['certificates'] = _ApiClient["default"].convertToType(data['certificates'], 'String'); } - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); } - if (data.hasOwnProperty('azure-kv-name')) { - obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (data.hasOwnProperty('azure-secret')) { - obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); + if (data.hasOwnProperty('customer_fragment_id')) { + obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); } - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); } - if (data.hasOwnProperty('hashi-json')) { - obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); + if (data.hasOwnProperty('display_id')) { + obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); } - if (data.hasOwnProperty('hashi-ns')) { - obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); + if (data.hasOwnProperty('gateway_details')) { + obj['gateway_details'] = _ApiClient["default"].convertToType(data['gateway_details'], [_GatewayBasicInfo["default"]]); } - if (data.hasOwnProperty('hashi-token')) { - obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); + if (data.hasOwnProperty('is_access_request_enabled')) { + obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); } - if (data.hasOwnProperty('hashi-url')) { - obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); + if (data.hasOwnProperty('is_enabled')) { + obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('item_accessibility')) { + obj['item_accessibility'] = _ApiClient["default"].convertToType(data['item_accessibility'], 'Number'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('item_general_info')) { + obj['item_general_info'] = _ItemGeneralInfo["default"].constructFromObject(data['item_general_info']); } - if (data.hasOwnProperty('k8s-ca-certificate')) { - obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); } - if (data.hasOwnProperty('k8s-client-certificate')) { - obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); + if (data.hasOwnProperty('item_metadata')) { + obj['item_metadata'] = _ApiClient["default"].convertToType(data['item_metadata'], 'String'); } - if (data.hasOwnProperty('k8s-client-key')) { - obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); + if (data.hasOwnProperty('item_name')) { + obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); } - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + if (data.hasOwnProperty('item_size')) { + obj['item_size'] = _ApiClient["default"].convertToType(data['item_size'], 'Number'); } - if (data.hasOwnProperty('k8s-password')) { - obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); + if (data.hasOwnProperty('item_state')) { + obj['item_state'] = _ApiClient["default"].convertToType(data['item_state'], 'String'); } - if (data.hasOwnProperty('k8s-skip-system')) { - obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); + if (data.hasOwnProperty('item_sub_type')) { + obj['item_sub_type'] = _ApiClient["default"].convertToType(data['item_sub_type'], 'String'); } - if (data.hasOwnProperty('k8s-token')) { - obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); + if (data.hasOwnProperty('item_tags')) { + obj['item_tags'] = _ApiClient["default"].convertToType(data['item_tags'], ['String']); } - if (data.hasOwnProperty('k8s-url')) { - obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); + if (data.hasOwnProperty('item_targets_assoc')) { + obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); } - if (data.hasOwnProperty('k8s-username')) { - obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); + if (data.hasOwnProperty('item_type')) { + obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('item_versions')) { + obj['item_versions'] = _ApiClient["default"].convertToType(data['item_versions'], [_ItemVersion["default"]]); } - if (data.hasOwnProperty('new_name')) { - obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); + if (data.hasOwnProperty('last_rotation_date')) { + obj['last_rotation_date'] = _ApiClient["default"].convertToType(data['last_rotation_date'], 'Date'); } - if (data.hasOwnProperty('protection-key')) { - obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); + if (data.hasOwnProperty('last_version')) { + obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); } - if (data.hasOwnProperty('si-auto-rotate')) { - obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); + if (data.hasOwnProperty('linked_details')) { + obj['linked_details'] = _LinkedDetails["default"].constructFromObject(data['linked_details']); } - if (data.hasOwnProperty('si-rotation-hour')) { - obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); } - if (data.hasOwnProperty('si-rotation-interval')) { - obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); + if (data.hasOwnProperty('next_rotation_date')) { + obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); } - if (data.hasOwnProperty('si-sra-enable-rdp')) { - obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); } - if (data.hasOwnProperty('si-target-name')) { - obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); + if (data.hasOwnProperty('protection_key_type')) { + obj['protection_key_type'] = _ApiClient["default"].convertToType(data['protection_key_type'], 'String'); } - if (data.hasOwnProperty('si-users-ignore')) { - obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); + if (data.hasOwnProperty('public_value')) { + obj['public_value'] = _ApiClient["default"].convertToType(data['public_value'], 'String'); } - if (data.hasOwnProperty('si-users-path-template')) { - obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); + if (data.hasOwnProperty('rotation_interval')) { + obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); } - if (data.hasOwnProperty('target-location')) { - obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); + if (data.hasOwnProperty('shared_by')) { + obj['shared_by'] = _RuleAssigner["default"].constructFromObject(data['shared_by']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('target_versions')) { + obj['target_versions'] = _ApiClient["default"].convertToType(data['target_versions'], [_TargetItemVersion["default"]]); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); } } - return obj; - } - }]); - - return GatewayUpdateMigration; -}(); -/** - * 1Password user email to connect to the API - * @member {String} 1password-email - */ - - -GatewayUpdateMigration.prototype['1password-email'] = undefined; -/** - * 1Password user password to connect to the API - * @member {String} 1password-password - */ - -GatewayUpdateMigration.prototype['1password-password'] = undefined; -/** - * 1Password user secret key to connect to the API - * @member {String} 1password-secret-key - */ - -GatewayUpdateMigration.prototype['1password-secret-key'] = undefined; -/** - * 1Password api container url - * @member {String} 1password-url - */ - -GatewayUpdateMigration.prototype['1password-url'] = undefined; -/** - * 1Password list of vault to get the items from - * @member {Array.} 1password-vaults - */ - -GatewayUpdateMigration.prototype['1password-vaults'] = undefined; -/** - * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) - * @member {String} ad-ssh-port - * @default '22' - */ - -GatewayUpdateMigration.prototype['ad-ssh-port'] = '22'; -/** - * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) - * @member {String} ad-targets-type - * @default 'windows' - */ - -GatewayUpdateMigration.prototype['ad-targets-type'] = 'windows'; -/** - * Use WinRM over HTTP, by default runs over HTTPS - * @member {String} ad-winrm-over-http - * @default 'false' - */ - -GatewayUpdateMigration.prototype['ad-winrm-over-http'] = 'false'; -/** - * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) - * @member {String} ad-winrm-port - * @default '5986' - */ - -GatewayUpdateMigration.prototype['ad-winrm-port'] = '5986'; -/** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) - * @member {String} ad_auto_rotate - */ - -GatewayUpdateMigration.prototype['ad_auto_rotate'] = undefined; -/** - * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_computer_base_dn - */ - -GatewayUpdateMigration.prototype['ad_computer_base_dn'] = undefined; -/** - * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) - * @member {String} ad_discover_local_users - */ - -GatewayUpdateMigration.prototype['ad_discover_local_users'] = undefined; -/** - * Active Directory Domain Name (Relevant only for Active Directory migration) - * @member {String} ad_domain_name - */ - -GatewayUpdateMigration.prototype['ad_domain_name'] = undefined; -/** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_domain_users_path_template - */ - -GatewayUpdateMigration.prototype['ad_domain_users_path_template'] = undefined; -/** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) - * @member {String} ad_local_users_ignore - */ - -GatewayUpdateMigration.prototype['ad_local_users_ignore'] = undefined; -/** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_local_users_path_template - */ - -GatewayUpdateMigration.prototype['ad_local_users_path_template'] = undefined; -/** - * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_hour - */ - -GatewayUpdateMigration.prototype['ad_rotation_hour'] = undefined; -/** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_interval - */ + return obj; + } + }]); -GatewayUpdateMigration.prototype['ad_rotation_interval'] = undefined; + return Item; +}(); /** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) - * @member {String} ad_sra_enable_rdp + * @member {Date} access_date */ -GatewayUpdateMigration.prototype['ad_sra_enable_rdp'] = undefined; + +Item.prototype['access_date'] = undefined; /** - * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) - * @member {String} ad_target_name + * @member {String} access_date_display */ -GatewayUpdateMigration.prototype['ad_target_name'] = undefined; +Item.prototype['access_date_display'] = undefined; /** - * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) - * @member {String} ad_targets_path_template + * @member {String} access_request_status */ -GatewayUpdateMigration.prototype['ad_targets_path_template'] = undefined; +Item.prototype['access_request_status'] = undefined; /** - * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_user_base_dn + * @member {Boolean} auto_rotate */ -GatewayUpdateMigration.prototype['ad_user_base_dn'] = undefined; +Item.prototype['auto_rotate'] = undefined; /** - * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) - * @member {String} ad_user_groups + * @member {module:model/BastionsList} bastion_details */ -GatewayUpdateMigration.prototype['ad_user_groups'] = undefined; +Item.prototype['bastion_details'] = undefined; /** - * AWS Secret Access Key (relevant only for AWS migration) - * @member {String} aws-key + * @member {String} cert_issuer_signer_key_name */ -GatewayUpdateMigration.prototype['aws-key'] = undefined; +Item.prototype['cert_issuer_signer_key_name'] = undefined; /** - * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) - * @member {String} aws-key-id + * @member {module:model/CertificateIssueInfo} certificate_issue_details */ -GatewayUpdateMigration.prototype['aws-key-id'] = undefined; +Item.prototype['certificate_issue_details'] = undefined; /** - * AWS region of the required Secrets Manager (relevant only for AWS migration) - * @member {String} aws-region - * @default 'us-east-2' + * @member {String} certificates */ -GatewayUpdateMigration.prototype['aws-region'] = 'us-east-2'; +Item.prototype['certificates'] = undefined; /** - * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) - * @member {String} azure-client-id + * @member {Array.} client_permissions */ -GatewayUpdateMigration.prototype['azure-client-id'] = undefined; +Item.prototype['client_permissions'] = undefined; /** - * Azure Key Vault Name (relevant only for Azure Key Vault migration) - * @member {String} azure-kv-name + * @member {Date} creation_date */ -GatewayUpdateMigration.prototype['azure-kv-name'] = undefined; +Item.prototype['creation_date'] = undefined; /** - * Azure Key Vault secret (relevant only for Azure Key Vault migration) - * @member {String} azure-secret + * @member {String} customer_fragment_id */ -GatewayUpdateMigration.prototype['azure-secret'] = undefined; +Item.prototype['customer_fragment_id'] = undefined; /** - * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) - * @member {String} azure-tenant-id + * @member {Boolean} delete_protection */ -GatewayUpdateMigration.prototype['azure-tenant-id'] = undefined; +Item.prototype['delete_protection'] = undefined; /** - * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) - * @member {String} gcp-key + * @member {Date} deletion_date */ -GatewayUpdateMigration.prototype['gcp-key'] = undefined; +Item.prototype['deletion_date'] = undefined; /** - * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] - * @member {String} hashi-json - * @default 'true' + * @member {String} display_id */ -GatewayUpdateMigration.prototype['hashi-json'] = 'true'; +Item.prototype['display_id'] = undefined; /** - * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) - * @member {Array.} hashi-ns + * @member {Array.} gateway_details */ -GatewayUpdateMigration.prototype['hashi-ns'] = undefined; +Item.prototype['gateway_details'] = undefined; /** - * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) - * @member {String} hashi-token + * @member {Boolean} is_access_request_enabled */ -GatewayUpdateMigration.prototype['hashi-token'] = undefined; +Item.prototype['is_access_request_enabled'] = undefined; /** - * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) - * @member {String} hashi-url + * @member {Boolean} is_enabled */ -GatewayUpdateMigration.prototype['hashi-url'] = undefined; +Item.prototype['is_enabled'] = undefined; /** - * Migration ID (Can be retrieved with gateway-list-migration command) - * @member {String} id + * @member {Number} item_accessibility */ -GatewayUpdateMigration.prototype['id'] = undefined; +Item.prototype['item_accessibility'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {module:model/ItemGeneralInfo} item_general_info */ -GatewayUpdateMigration.prototype['json'] = false; +Item.prototype['item_general_info'] = undefined; /** - * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-ca-certificate + * @member {Number} item_id */ -GatewayUpdateMigration.prototype['k8s-ca-certificate'] = undefined; +Item.prototype['item_id'] = undefined; /** - * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-certificate + * @member {String} item_metadata */ -GatewayUpdateMigration.prototype['k8s-client-certificate'] = undefined; +Item.prototype['item_metadata'] = undefined; /** - * K8s Client key (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-key + * @member {String} item_name */ -GatewayUpdateMigration.prototype['k8s-client-key'] = undefined; +Item.prototype['item_name'] = undefined; /** - * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) - * @member {String} k8s-namespace + * @member {Number} item_size */ -GatewayUpdateMigration.prototype['k8s-namespace'] = undefined; +Item.prototype['item_size'] = undefined; /** - * K8s Client password (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-password + * ItemState defines the different states an Item can be in + * @member {String} item_state */ -GatewayUpdateMigration.prototype['k8s-password'] = undefined; +Item.prototype['item_state'] = undefined; /** - * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) - * @member {Boolean} k8s-skip-system + * @member {String} item_sub_type */ -GatewayUpdateMigration.prototype['k8s-skip-system'] = undefined; +Item.prototype['item_sub_type'] = undefined; /** - * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) - * @member {String} k8s-token + * @member {Array.} item_tags */ -GatewayUpdateMigration.prototype['k8s-token'] = undefined; +Item.prototype['item_tags'] = undefined; /** - * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) - * @member {String} k8s-url + * @member {Array.} item_targets_assoc */ -GatewayUpdateMigration.prototype['k8s-url'] = undefined; +Item.prototype['item_targets_assoc'] = undefined; /** - * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-username + * @member {String} item_type */ -GatewayUpdateMigration.prototype['k8s-username'] = undefined; +Item.prototype['item_type'] = undefined; /** - * Migration name - * @member {String} name + * @member {Array.} item_versions */ -GatewayUpdateMigration.prototype['name'] = undefined; +Item.prototype['item_versions'] = undefined; /** - * New migration name - * @member {String} new_name + * @member {Date} last_rotation_date */ -GatewayUpdateMigration.prototype['new_name'] = undefined; +Item.prototype['last_rotation_date'] = undefined; /** - * The name of the key that protects the classic key value (if empty, the account default key will be used) - * @member {String} protection-key + * @member {Number} last_version */ -GatewayUpdateMigration.prototype['protection-key'] = undefined; +Item.prototype['last_version'] = undefined; /** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) - * @member {String} si-auto-rotate + * @member {module:model/LinkedDetails} linked_details */ -GatewayUpdateMigration.prototype['si-auto-rotate'] = undefined; +Item.prototype['linked_details'] = undefined; /** - * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-hour + * @member {Date} modification_date */ -GatewayUpdateMigration.prototype['si-rotation-hour'] = undefined; +Item.prototype['modification_date'] = undefined; /** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-interval + * @member {Date} next_rotation_date */ -GatewayUpdateMigration.prototype['si-rotation-interval'] = undefined; +Item.prototype['next_rotation_date'] = undefined; /** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) - * @member {String} si-sra-enable-rdp - * @default 'false' + * @member {String} protection_key_name */ -GatewayUpdateMigration.prototype['si-sra-enable-rdp'] = 'false'; +Item.prototype['protection_key_name'] = undefined; /** - * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @member {String} si-target-name + * @member {String} protection_key_type */ -GatewayUpdateMigration.prototype['si-target-name'] = undefined; +Item.prototype['protection_key_type'] = undefined; /** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) - * @member {String} si-users-ignore + * @member {String} public_value */ -GatewayUpdateMigration.prototype['si-users-ignore'] = undefined; +Item.prototype['public_value'] = undefined; /** - * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @member {String} si-users-path-template + * @member {Number} rotation_interval */ -GatewayUpdateMigration.prototype['si-users-path-template'] = undefined; +Item.prototype['rotation_interval'] = undefined; /** - * Target location in Akeyless for imported secrets - * @member {String} target-location + * @member {module:model/RuleAssigner} shared_by */ -GatewayUpdateMigration.prototype['target-location'] = undefined; +Item.prototype['shared_by'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Array.} target_versions */ -GatewayUpdateMigration.prototype['token'] = undefined; +Item.prototype['target_versions'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Boolean} with_customer_fragment */ -GatewayUpdateMigration.prototype['uid-token'] = undefined; -var _default = GatewayUpdateMigration; +Item.prototype['with_customer_fragment'] = undefined; +var _default = Item; exports["default"] = _default; /***/ }), -/***/ 92518: +/***/ 84700: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -70439,7 +146717,31 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(79205)); + +var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(86711)); + +var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(71552)); + +var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(5626)); + +var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(92142)); + +var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(20371)); + +var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(17035)); + +var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(7086)); + +var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(30316)); + +var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(83028)); + +var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(90513)); + +var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(49572)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -70450,23 +146752,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerArtifactory model module. - * @module model/GatewayUpdateProducerArtifactory - * @version 3.3.16 + * The ItemGeneralInfo model module. + * @module model/ItemGeneralInfo + * @version 3.6.3 */ -var GatewayUpdateProducerArtifactory = /*#__PURE__*/function () { +var ItemGeneralInfo = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerArtifactory. - * gatewayUpdateProducerArtifactory is a command that updates artifactory producer - * @alias module:model/GatewayUpdateProducerArtifactory - * @param artifactoryTokenAudience {String} Token Audience - * @param artifactoryTokenScope {String} Token Scope - * @param name {String} Producer name + * Constructs a new ItemGeneralInfo. + * @alias module:model/ItemGeneralInfo */ - function GatewayUpdateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { - _classCallCheck(this, GatewayUpdateProducerArtifactory); + function ItemGeneralInfo() { + _classCallCheck(this, ItemGeneralInfo); - GatewayUpdateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); + ItemGeneralInfo.initialize(this); } /** * Initializes the fields of this object. @@ -70475,85 +146773,77 @@ var GatewayUpdateProducerArtifactory = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerArtifactory, null, [{ + _createClass(ItemGeneralInfo, null, [{ key: "initialize", - value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { - obj['artifactory-token-audience'] = artifactoryTokenAudience; - obj['artifactory-token-scope'] = artifactoryTokenScope; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. + * Constructs a ItemGeneralInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerArtifactory} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerArtifactory} The populated GatewayUpdateProducerArtifactory instance. + * @param {module:model/ItemGeneralInfo} obj Optional instance to populate. + * @return {module:model/ItemGeneralInfo} The populated ItemGeneralInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerArtifactory(); - - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); - } + obj = obj || new ItemGeneralInfo(); - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + if (data.hasOwnProperty('cert_issue_details')) { + obj['cert_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['cert_issue_details']); } - if (data.hasOwnProperty('artifactory-token-audience')) { - obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); + if (data.hasOwnProperty('certificate_chain_info')) { + obj['certificate_chain_info'] = _CertificateChainInfo["default"].constructFromObject(data['certificate_chain_info']); } - if (data.hasOwnProperty('artifactory-token-scope')) { - obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + if (data.hasOwnProperty('certificates_template_info')) { + obj['certificates_template_info'] = _CertificateTemplateInfo["default"].constructFromObject(data['certificates_template_info']); } - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + if (data.hasOwnProperty('classic_key_details')) { + obj['classic_key_details'] = _ClassicKeyDetailsInfo["default"].constructFromObject(data['classic_key_details']); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('cluster_gw_url')) { + obj['cluster_gw_url'] = _ApiClient["default"].convertToType(data['cluster_gw_url'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('display_metadata')) { + obj['display_metadata'] = _ApiClient["default"].convertToType(data['display_metadata'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('dynamic_secret_producer_details')) { + obj['dynamic_secret_producer_details'] = _DynamicSecretProducerInfo["default"].constructFromObject(data['dynamic_secret_producer_details']); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('importer_info')) { + obj['importer_info'] = _ImporterInfo["default"].constructFromObject(data['importer_info']); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('oidc_client_info')) { + obj['oidc_client_info'] = _OidcClientInfo["default"].constructFromObject(data['oidc_client_info']); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('password_policy')) { + obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('rotated_secret_details')) { + obj['rotated_secret_details'] = _RotatedSecretDetailsInfo["default"].constructFromObject(data['rotated_secret_details']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('secure_remote_access_details')) { + obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('static_secret_info')) { + obj['static_secret_info'] = _StaticSecretDetailsInfo["default"].constructFromObject(data['static_secret_info']); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('tokenizer_info')) { + obj['tokenizer_info'] = _TokenizerInfo["default"].constructFromObject(data['tokenizer_info']); } } @@ -70561,107 +146851,85 @@ var GatewayUpdateProducerArtifactory = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerArtifactory; + return ItemGeneralInfo; }(); /** - * Artifactory Admin Name - * @member {String} artifactory-admin-name + * @member {module:model/CertificateIssueInfo} cert_issue_details */ -GatewayUpdateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; -/** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd - */ - -GatewayUpdateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; +ItemGeneralInfo.prototype['cert_issue_details'] = undefined; /** - * Token Audience - * @member {String} artifactory-token-audience + * @member {module:model/CertificateChainInfo} certificate_chain_info */ -GatewayUpdateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; +ItemGeneralInfo.prototype['certificate_chain_info'] = undefined; /** - * Token Scope - * @member {String} artifactory-token-scope + * @member {module:model/CertificateTemplateInfo} certificates_template_info */ -GatewayUpdateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; +ItemGeneralInfo.prototype['certificates_template_info'] = undefined; /** - * Base URL - * @member {String} base-url + * @member {module:model/ClassicKeyDetailsInfo} classic_key_details */ -GatewayUpdateProducerArtifactory.prototype['base-url'] = undefined; +ItemGeneralInfo.prototype['classic_key_details'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * @member {String} cluster_gw_url */ -GatewayUpdateProducerArtifactory.prototype['delete_protection'] = undefined; +ItemGeneralInfo.prototype['cluster_gw_url'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} display_metadata */ -GatewayUpdateProducerArtifactory.prototype['json'] = false; +ItemGeneralInfo.prototype['display_metadata'] = undefined; /** - * Producer name - * @member {String} name + * @member {module:model/DynamicSecretProducerInfo} dynamic_secret_producer_details */ -GatewayUpdateProducerArtifactory.prototype['name'] = undefined; +ItemGeneralInfo.prototype['dynamic_secret_producer_details'] = undefined; /** - * Producer name - * @member {String} new-name + * @member {module:model/ImporterInfo} importer_info */ -GatewayUpdateProducerArtifactory.prototype['new-name'] = undefined; +ItemGeneralInfo.prototype['importer_info'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * @member {module:model/OidcClientInfo} oidc_client_info */ -GatewayUpdateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; +ItemGeneralInfo.prototype['oidc_client_info'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * @member {module:model/PasswordPolicyInfo} password_policy */ -GatewayUpdateProducerArtifactory.prototype['tags'] = undefined; +ItemGeneralInfo.prototype['password_policy'] = undefined; /** - * Target name - * @member {String} target-name + * @member {module:model/RotatedSecretDetailsInfo} rotated_secret_details */ -GatewayUpdateProducerArtifactory.prototype['target-name'] = undefined; +ItemGeneralInfo.prototype['rotated_secret_details'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {module:model/SecureRemoteAccess} secure_remote_access_details */ -GatewayUpdateProducerArtifactory.prototype['token'] = undefined; +ItemGeneralInfo.prototype['secure_remote_access_details'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/StaticSecretDetailsInfo} static_secret_info */ -GatewayUpdateProducerArtifactory.prototype['uid-token'] = undefined; +ItemGeneralInfo.prototype['static_secret_info'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {module:model/TokenizerInfo} tokenizer_info */ -GatewayUpdateProducerArtifactory.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerArtifactory; +ItemGeneralInfo.prototype['tokenizer_info'] = undefined; +var _default = ItemGeneralInfo; exports["default"] = _default; /***/ }), -/***/ 41597: +/***/ 73342: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -70672,9 +146940,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -70685,19 +146951,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerArtifactoryOutput model module. - * @module model/GatewayUpdateProducerArtifactoryOutput - * @version 3.3.16 + * The ItemSraStatus model module. + * @module model/ItemSraStatus + * @version 3.6.3 */ -var GatewayUpdateProducerArtifactoryOutput = /*#__PURE__*/function () { +var ItemSraStatus = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerArtifactoryOutput. - * @alias module:model/GatewayUpdateProducerArtifactoryOutput + * Constructs a new ItemSraStatus. + * @alias module:model/ItemSraStatus */ - function GatewayUpdateProducerArtifactoryOutput() { - _classCallCheck(this, GatewayUpdateProducerArtifactoryOutput); + function ItemSraStatus() { + _classCallCheck(this, ItemSraStatus); - GatewayUpdateProducerArtifactoryOutput.initialize(this); + ItemSraStatus.initialize(this); } /** * Initializes the fields of this object. @@ -70706,219 +146972,45 @@ var GatewayUpdateProducerArtifactoryOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerArtifactoryOutput, null, [{ + _createClass(ItemSraStatus, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerArtifactoryOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerArtifactoryOutput} The populated GatewayUpdateProducerArtifactoryOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerArtifactoryOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerArtifactoryOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerArtifactoryOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerArtifactoryOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 97621: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerAws model module. - * @module model/GatewayUpdateProducerAws - * @version 3.3.16 - */ -var GatewayUpdateProducerAws = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerAws. - * gatewayUpdateProducerAws is a command that Updates aws producer - * @alias module:model/GatewayUpdateProducerAws - * @param name {String} Producer name - */ - function GatewayUpdateProducerAws(name) { - _classCallCheck(this, GatewayUpdateProducerAws); - - GatewayUpdateProducerAws.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerAws, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerAws from a plain JavaScript object, optionally creating a new instance. + * Constructs a ItemSraStatus from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAws} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAws} The populated GatewayUpdateProducerAws instance. + * @param {module:model/ItemSraStatus} obj Optional instance to populate. + * @return {module:model/ItemSraStatus} The populated ItemSraStatus instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerAws(); - - if (data.hasOwnProperty('access-mode')) { - obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); - } - - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); - } - - if (data.hasOwnProperty('aws-access-key-id')) { - obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('aws-access-secret-key')) { - obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); - } - - if (data.hasOwnProperty('aws-role-arns')) { - obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); - } - - if (data.hasOwnProperty('aws-user-console-access')) { - obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); - } - - if (data.hasOwnProperty('aws-user-groups')) { - obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); - } - - if (data.hasOwnProperty('aws-user-policies')) { - obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); - } - - if (data.hasOwnProperty('aws-user-programmatic-access')) { - obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } + obj = obj || new ItemSraStatus(); - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + if (data.hasOwnProperty('bastion_access_id')) { + obj['bastion_access_id'] = _ApiClient["default"].convertToType(data['bastion_access_id'], 'String'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('bastion_cluster_name')) { + obj['bastion_cluster_name'] = _ApiClient["default"].convertToType(data['bastion_cluster_name'], 'String'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('bastion_instance_id')) { + obj['bastion_instance_id'] = _ApiClient["default"].convertToType(data['bastion_instance_id'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('is_in_used')) { + obj['is_in_used'] = _ApiClient["default"].convertToType(data['is_in_used'], 'Boolean'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('session_id')) { + obj['session_id'] = _ApiClient["default"].convertToType(data['session_id'], 'String'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('time')) { + obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Date'); } } @@ -70926,192 +147018,45 @@ var GatewayUpdateProducerAws = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerAws; + return ItemSraStatus; }(); /** - * @member {String} access-mode - */ - - -GatewayUpdateProducerAws.prototype['access-mode'] = undefined; -/** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 - */ - -GatewayUpdateProducerAws.prototype['admin-rotation-interval-days'] = 0; -/** - * Access Key ID - * @member {String} aws-access-key-id - */ - -GatewayUpdateProducerAws.prototype['aws-access-key-id'] = undefined; -/** - * Secret Access Key - * @member {String} aws-access-secret-key - */ - -GatewayUpdateProducerAws.prototype['aws-access-secret-key'] = undefined; -/** - * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) - * @member {String} aws-role-arns - */ - -GatewayUpdateProducerAws.prototype['aws-role-arns'] = undefined; -/** - * AWS User console access - * @member {Boolean} aws-user-console-access - * @default false - */ - -GatewayUpdateProducerAws.prototype['aws-user-console-access'] = false; -/** - * AWS User groups - * @member {String} aws-user-groups - */ - -GatewayUpdateProducerAws.prototype['aws-user-groups'] = undefined; -/** - * AWS User policies - * @member {String} aws-user-policies - */ - -GatewayUpdateProducerAws.prototype['aws-user-policies'] = undefined; -/** - * Enable AWS User programmatic access - * @member {Boolean} aws-user-programmatic-access - * @default true - */ - -GatewayUpdateProducerAws.prototype['aws-user-programmatic-access'] = true; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerAws.prototype['delete_protection'] = undefined; -/** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false - */ - -GatewayUpdateProducerAws.prototype['enable-admin-rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerAws.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerAws.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerAws.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerAws.prototype['producer-encryption-key-name'] = undefined; -/** - * Region - * @member {String} region - * @default 'us-east-2' - */ - -GatewayUpdateProducerAws.prototype['region'] = 'us-east-2'; -/** - * The AWS account id - * @member {String} secure-access-aws-account-id - */ - -GatewayUpdateProducerAws.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli - * @member {Boolean} secure-access-aws-native-cli - */ - -GatewayUpdateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerAws.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayUpdateProducerAws.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false + * @member {String} bastion_access_id */ -GatewayUpdateProducerAws.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ -GatewayUpdateProducerAws.prototype['secure-access-web-proxy'] = false; +ItemSraStatus.prototype['bastion_access_id'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * @member {String} bastion_cluster_name */ -GatewayUpdateProducerAws.prototype['tags'] = undefined; +ItemSraStatus.prototype['bastion_cluster_name'] = undefined; /** - * Target name - * @member {String} target-name + * @member {String} bastion_instance_id */ -GatewayUpdateProducerAws.prototype['target-name'] = undefined; +ItemSraStatus.prototype['bastion_instance_id'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Boolean} is_in_used */ -GatewayUpdateProducerAws.prototype['token'] = undefined; +ItemSraStatus.prototype['is_in_used'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} session_id */ -GatewayUpdateProducerAws.prototype['uid-token'] = undefined; +ItemSraStatus.prototype['session_id'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {Date} time */ -GatewayUpdateProducerAws.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerAws; +ItemSraStatus.prototype['time'] = undefined; +var _default = ItemSraStatus; exports["default"] = _default; /***/ }), -/***/ 23775: +/***/ 38148: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -71122,9 +147067,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -71135,19 +147078,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerAwsOutput model module. - * @module model/GatewayUpdateProducerAwsOutput - * @version 3.3.16 + * The ItemTargetAssociation model module. + * @module model/ItemTargetAssociation + * @version 3.6.3 */ -var GatewayUpdateProducerAwsOutput = /*#__PURE__*/function () { +var ItemTargetAssociation = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerAwsOutput. - * @alias module:model/GatewayUpdateProducerAwsOutput + * Constructs a new ItemTargetAssociation. + * and a target. + * @alias module:model/ItemTargetAssociation */ - function GatewayUpdateProducerAwsOutput() { - _classCallCheck(this, GatewayUpdateProducerAwsOutput); + function ItemTargetAssociation() { + _classCallCheck(this, ItemTargetAssociation); - GatewayUpdateProducerAwsOutput.initialize(this); + ItemTargetAssociation.initialize(this); } /** * Initializes the fields of this object. @@ -71156,25 +147100,43 @@ var GatewayUpdateProducerAwsOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerAwsOutput, null, [{ + _createClass(ItemTargetAssociation, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ItemTargetAssociation from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAwsOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAwsOutput} The populated GatewayUpdateProducerAwsOutput instance. + * @param {module:model/ItemTargetAssociation} obj Optional instance to populate. + * @return {module:model/ItemTargetAssociation} The populated ItemTargetAssociation instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerAwsOutput(); + obj = obj || new ItemTargetAssociation(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + } + + if (data.hasOwnProperty('target_type')) { + obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); } } @@ -71182,20 +147144,40 @@ var GatewayUpdateProducerAwsOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerAwsOutput; + return ItemTargetAssociation; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} assoc_id */ -GatewayUpdateProducerAwsOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerAwsOutput; +ItemTargetAssociation.prototype['assoc_id'] = undefined; +/** + * @member {Object.} attributes + */ + +ItemTargetAssociation.prototype['attributes'] = undefined; +/** + * @member {Number} target_id + */ + +ItemTargetAssociation.prototype['target_id'] = undefined; +/** + * @member {String} target_name + */ + +ItemTargetAssociation.prototype['target_name'] = undefined; +/** + * @member {String} target_type + */ + +ItemTargetAssociation.prototype['target_type'] = undefined; +var _default = ItemTargetAssociation; exports["default"] = _default; /***/ }), -/***/ 36376: +/***/ 85396: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -71206,7 +147188,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CertificateVersionInfo = _interopRequireDefault(__nccwpck_require__(16668)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -71217,21 +147201,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerAzure model module. - * @module model/GatewayUpdateProducerAzure - * @version 3.3.16 + * The ItemVersion model module. + * @module model/ItemVersion + * @version 3.6.3 */ -var GatewayUpdateProducerAzure = /*#__PURE__*/function () { +var ItemVersion = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerAzure. - * gatewayUpdateProducerAzure is a command that updates azure producer - * @alias module:model/GatewayUpdateProducerAzure - * @param name {String} Producer name + * Constructs a new ItemVersion. + * @alias module:model/ItemVersion */ - function GatewayUpdateProducerAzure(name) { - _classCallCheck(this, GatewayUpdateProducerAzure); + function ItemVersion() { + _classCallCheck(this, ItemVersion); - GatewayUpdateProducerAzure.initialize(this, name); + ItemVersion.initialize(this); } /** * Initializes the fields of this object. @@ -71240,298 +147222,137 @@ var GatewayUpdateProducerAzure = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerAzure, null, [{ + _createClass(ItemVersion, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerAzure from a plain JavaScript object, optionally creating a new instance. + * Constructs a ItemVersion from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAzure} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAzure} The populated GatewayUpdateProducerAzure instance. + * @param {module:model/ItemVersion} obj Optional instance to populate. + * @return {module:model/ItemVersion} The populated ItemVersion instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerAzure(); - - if (data.hasOwnProperty('app-obj-id')) { - obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); - } - - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); - } - - if (data.hasOwnProperty('azure-client-secret')) { - obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); - } - - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-claim-keyname')) { - obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new ItemVersion(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); } - if (data.hasOwnProperty('user-group-obj-id')) { - obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); } - if (data.hasOwnProperty('user-portal-access')) { - obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + if (data.hasOwnProperty('certificate_version_info')) { + obj['certificate_version_info'] = _CertificateVersionInfo["default"].constructFromObject(data['certificate_version_info']); } - if (data.hasOwnProperty('user-principal-name')) { - obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (data.hasOwnProperty('user-programmatic-access')) { - obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + if (data.hasOwnProperty('customer_fragment_id')) { + obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); } - if (data.hasOwnProperty('user-role-template-id')) { - obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('item_version_state')) { + obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); } - } - - return obj; - } - }]); - - return GatewayUpdateProducerAzure; -}(); -/** - * Azure App Object Id - * @member {String} app-obj-id - */ - - -GatewayUpdateProducerAzure.prototype['app-obj-id'] = undefined; -/** - * Azure Client ID - * @member {String} azure-client-id - */ - -GatewayUpdateProducerAzure.prototype['azure-client-id'] = undefined; -/** - * Azure Client Secret - * @member {String} azure-client-secret - */ - -GatewayUpdateProducerAzure.prototype['azure-client-secret'] = undefined; -/** - * Azure Tenant ID - * @member {String} azure-tenant-id - */ - -GatewayUpdateProducerAzure.prototype['azure-tenant-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerAzure.prototype['delete_protection'] = undefined; -/** - * FixedUserClaimKeyname - * @member {String} fixed-user-claim-keyname - * @default 'false' - */ - -GatewayUpdateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; -/** - * Fixed user - * @member {Boolean} fixed-user-only - * @default false - */ - -GatewayUpdateProducerAzure.prototype['fixed-user-only'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ -GatewayUpdateProducerAzure.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } -GatewayUpdateProducerAzure.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + } -GatewayUpdateProducerAzure.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } -GatewayUpdateProducerAzure.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + } + } -GatewayUpdateProducerAzure.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ + return obj; + } + }]); -GatewayUpdateProducerAzure.prototype['secure-access-web'] = true; + return ItemVersion; +}(); /** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false + * @member {Date} access_date */ -GatewayUpdateProducerAzure.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ -GatewayUpdateProducerAzure.prototype['secure-access-web-proxy'] = false; +ItemVersion.prototype['access_date'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * @member {String} access_date_display */ -GatewayUpdateProducerAzure.prototype['tags'] = undefined; +ItemVersion.prototype['access_date_display'] = undefined; /** - * Target name - * @member {String} target-name + * @member {module:model/CertificateVersionInfo} certificate_version_info */ -GatewayUpdateProducerAzure.prototype['target-name'] = undefined; +ItemVersion.prototype['certificate_version_info'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Date} creation_date */ -GatewayUpdateProducerAzure.prototype['token'] = undefined; +ItemVersion.prototype['creation_date'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} customer_fragment_id */ -GatewayUpdateProducerAzure.prototype['uid-token'] = undefined; +ItemVersion.prototype['customer_fragment_id'] = undefined; /** - * User Group Object Id - * @member {String} user-group-obj-id + * @member {Date} deletion_date */ -GatewayUpdateProducerAzure.prototype['user-group-obj-id'] = undefined; +ItemVersion.prototype['deletion_date'] = undefined; /** - * Azure User portal access - * @member {Boolean} user-portal-access - * @default false + * ItemState defines the different states an Item can be in + * @member {String} item_version_state */ -GatewayUpdateProducerAzure.prototype['user-portal-access'] = false; +ItemVersion.prototype['item_version_state'] = undefined; /** - * User Principal Name - * @member {String} user-principal-name + * @member {Date} modification_date */ -GatewayUpdateProducerAzure.prototype['user-principal-name'] = undefined; +ItemVersion.prototype['modification_date'] = undefined; /** - * Azure User programmatic access - * @member {Boolean} user-programmatic-access - * @default false + * @member {String} protection_key_name */ -GatewayUpdateProducerAzure.prototype['user-programmatic-access'] = false; +ItemVersion.prototype['protection_key_name'] = undefined; /** - * User Role Template Id - * @member {String} user-role-template-id + * @member {Number} version */ -GatewayUpdateProducerAzure.prototype['user-role-template-id'] = undefined; +ItemVersion.prototype['version'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {Boolean} with_customer_fragment */ -GatewayUpdateProducerAzure.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerAzure; +ItemVersion.prototype['with_customer_fragment'] = undefined; +var _default = ItemVersion; exports["default"] = _default; /***/ }), -/***/ 10274: +/***/ 34217: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -71542,9 +147363,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -71555,19 +147374,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerAzureOutput model module. - * @module model/GatewayUpdateProducerAzureOutput - * @version 3.3.16 + * The JSONError model module. + * @module model/JSONError + * @version 3.6.3 */ -var GatewayUpdateProducerAzureOutput = /*#__PURE__*/function () { +var JSONError = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerAzureOutput. - * @alias module:model/GatewayUpdateProducerAzureOutput + * Constructs a new JSONError. + * @alias module:model/JSONError */ - function GatewayUpdateProducerAzureOutput() { - _classCallCheck(this, GatewayUpdateProducerAzureOutput); + function JSONError() { + _classCallCheck(this, JSONError); - GatewayUpdateProducerAzureOutput.initialize(this); + JSONError.initialize(this); } /** * Initializes the fields of this object. @@ -71576,25 +147395,25 @@ var GatewayUpdateProducerAzureOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerAzureOutput, null, [{ + _createClass(JSONError, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a JSONError from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAzureOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAzureOutput} The populated GatewayUpdateProducerAzureOutput instance. + * @param {module:model/JSONError} obj Optional instance to populate. + * @return {module:model/JSONError} The populated JSONError instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerAzureOutput(); + obj = obj || new JSONError(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('error')) { + obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); } } @@ -71602,20 +147421,20 @@ var GatewayUpdateProducerAzureOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerAzureOutput; + return JSONError; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} error */ -GatewayUpdateProducerAzureOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerAzureOutput; +JSONError.prototype['error'] = undefined; +var _default = JSONError; exports["default"] = _default; /***/ }), -/***/ 79476: +/***/ 3783: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -71626,7 +147445,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -71637,21 +147456,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerCassandra model module. - * @module model/GatewayUpdateProducerCassandra - * @version 3.3.16 + * The K8SAuth model module. + * @module model/K8SAuth + * @version 3.6.3 */ -var GatewayUpdateProducerCassandra = /*#__PURE__*/function () { +var K8SAuth = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerCassandra. - * gatewayUpdateProducerCassandra is a command that updates a Cassandra producer - * @alias module:model/GatewayUpdateProducerCassandra - * @param name {String} Producer name + * Constructs a new K8SAuth. + * @alias module:model/K8SAuth */ - function GatewayUpdateProducerCassandra(name) { - _classCallCheck(this, GatewayUpdateProducerCassandra); + function K8SAuth() { + _classCallCheck(this, K8SAuth); - GatewayUpdateProducerCassandra.initialize(this, name); + K8SAuth.initialize(this); } /** * Initializes the fields of this object. @@ -71660,83 +147477,97 @@ var GatewayUpdateProducerCassandra = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerCassandra, null, [{ + _createClass(K8SAuth, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerCassandra from a plain JavaScript object, optionally creating a new instance. + * Constructs a K8SAuth from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCassandra} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCassandra} The populated GatewayUpdateProducerCassandra instance. + * @param {module:model/K8SAuth} obj Optional instance to populate. + * @return {module:model/K8SAuth} The populated K8SAuth instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerCassandra(); + obj = obj || new K8SAuth(); - if (data.hasOwnProperty('cassandra-creation-statements')) { - obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); + if (data.hasOwnProperty('am_token_expiration')) { + obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); } - if (data.hasOwnProperty('cassandra-hosts')) { - obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); } - if (data.hasOwnProperty('cassandra-password')) { - obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); + if (data.hasOwnProperty('auth_method_prv_key_pem')) { + obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); } - if (data.hasOwnProperty('cassandra-port')) { - obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); + if (data.hasOwnProperty('cluster_api_type')) { + obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); } - if (data.hasOwnProperty('cassandra-username')) { - obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + if (data.hasOwnProperty('disable_iss_validation')) { + obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('k8s_ca_cert')) { + obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('k8s_host')) { + obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('k8s_issuer')) { + obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('k8s_pub_keys_pem')) { + obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { + obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('rancher_api_key')) { + obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); + } + + if (data.hasOwnProperty('rancher_cluster_id')) { + obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); + } + + if (data.hasOwnProperty('use_local_ca_jwt')) { + obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); } } @@ -71744,108 +147575,125 @@ var GatewayUpdateProducerCassandra = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerCassandra; + return K8SAuth; }(); /** - * Cassandra creation statements - * @member {String} cassandra-creation-statements + * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} am_token_expiration */ -GatewayUpdateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; +K8SAuth.prototype['am_token_expiration'] = undefined; /** - * Cassandra hosts IP or addresses, comma separated - * @member {String} cassandra-hosts + * AuthMethodAccessId of the Kubernetes auth method + * @member {String} auth_method_access_id */ -GatewayUpdateProducerCassandra.prototype['cassandra-hosts'] = undefined; +K8SAuth.prototype['auth_method_access_id'] = undefined; /** - * Cassandra superuser password - * @member {String} cassandra-password + * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method + * @member {String} auth_method_prv_key_pem */ -GatewayUpdateProducerCassandra.prototype['cassandra-password'] = undefined; +K8SAuth.prototype['auth_method_prv_key_pem'] = undefined; /** - * Cassandra port - * @member {String} cassandra-port - * @default '9042' + * ClusterApiType defines types of API access to cluster + * @member {String} cluster_api_type */ -GatewayUpdateProducerCassandra.prototype['cassandra-port'] = '9042'; +K8SAuth.prototype['cluster_api_type'] = undefined; /** - * Cassandra superuser username - * @member {String} cassandra-username + * DisableISSValidation is optional parameter to disable ISS validation + * @member {Boolean} disable_iss_validation */ -GatewayUpdateProducerCassandra.prototype['cassandra-username'] = undefined; +K8SAuth.prototype['disable_iss_validation'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * @member {String} id */ -GatewayUpdateProducerCassandra.prototype['delete_protection'] = undefined; +K8SAuth.prototype['id'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} k8s_auth_type */ -GatewayUpdateProducerCassandra.prototype['json'] = false; +K8SAuth.prototype['k8s_auth_type'] = undefined; /** - * Producer name - * @member {String} name + * K8SCACert is the CA Cert to use to call into the kubernetes API + * @member {String} k8s_ca_cert */ -GatewayUpdateProducerCassandra.prototype['name'] = undefined; +K8SAuth.prototype['k8s_ca_cert'] = undefined; /** - * Producer name - * @member {String} new-name + * K8sClientCertData is the client certificate for k8s client certificate authentication + * @member {String} k8s_client_cert_data */ -GatewayUpdateProducerCassandra.prototype['new-name'] = undefined; +K8SAuth.prototype['k8s_client_cert_data'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * K8sClientKeyData is the client key for k8s client certificate authentication + * @member {String} k8s_client_key_data */ -GatewayUpdateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; +K8SAuth.prototype['k8s_client_key_data'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * K8SHost is the url string for the kubernetes API + * @member {String} k8s_host */ -GatewayUpdateProducerCassandra.prototype['tags'] = undefined; +K8SAuth.prototype['k8s_host'] = undefined; /** - * Target name - * @member {String} target-name + * K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s_issuer */ -GatewayUpdateProducerCassandra.prototype['target-name'] = undefined; +K8SAuth.prototype['k8s_issuer'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * K8SPublicKeysPEM is the list of public key in PEM format + * @member {Array.} k8s_pub_keys_pem */ -GatewayUpdateProducerCassandra.prototype['token'] = undefined; +K8SAuth.prototype['k8s_pub_keys_pem'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call + * @member {String} k8s_token_reviewer_jwt */ -GatewayUpdateProducerCassandra.prototype['uid-token'] = undefined; +K8SAuth.prototype['k8s_token_reviewer_jwt'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {String} name */ -GatewayUpdateProducerCassandra.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerCassandra; +K8SAuth.prototype['name'] = undefined; +/** + * @member {String} protection_key + */ + +K8SAuth.prototype['protection_key'] = undefined; +/** + * RancherApiKey the bear token for clusterApiTypeRancher + * @member {String} rancher_api_key + */ + +K8SAuth.prototype['rancher_api_key'] = undefined; +/** + * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) + * @member {String} rancher_cluster_id + */ + +K8SAuth.prototype['rancher_cluster_id'] = undefined; +/** + * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod + * @member {Boolean} use_local_ca_jwt + */ + +K8SAuth.prototype['use_local_ca_jwt'] = undefined; +var _default = K8SAuth; exports["default"] = _default; /***/ }), -/***/ 96398: +/***/ 92276: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -71856,9 +147704,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -71869,19 +147715,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerCassandraOutput model module. - * @module model/GatewayUpdateProducerCassandraOutput - * @version 3.3.16 + * The K8SAuthsConfigLastChange model module. + * @module model/K8SAuthsConfigLastChange + * @version 3.6.3 */ -var GatewayUpdateProducerCassandraOutput = /*#__PURE__*/function () { +var K8SAuthsConfigLastChange = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerCassandraOutput. - * @alias module:model/GatewayUpdateProducerCassandraOutput + * Constructs a new K8SAuthsConfigLastChange. + * @alias module:model/K8SAuthsConfigLastChange */ - function GatewayUpdateProducerCassandraOutput() { - _classCallCheck(this, GatewayUpdateProducerCassandraOutput); + function K8SAuthsConfigLastChange() { + _classCallCheck(this, K8SAuthsConfigLastChange); - GatewayUpdateProducerCassandraOutput.initialize(this); + K8SAuthsConfigLastChange.initialize(this); } /** * Initializes the fields of this object. @@ -71890,25 +147736,33 @@ var GatewayUpdateProducerCassandraOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerCassandraOutput, null, [{ + _createClass(K8SAuthsConfigLastChange, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a K8SAuthsConfigLastChange from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCassandraOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCassandraOutput} The populated GatewayUpdateProducerCassandraOutput instance. + * @param {module:model/K8SAuthsConfigLastChange} obj Optional instance to populate. + * @return {module:model/K8SAuthsConfigLastChange} The populated K8SAuthsConfigLastChange instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerCassandraOutput(); + obj = obj || new K8SAuthsConfigLastChange(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('changed_k8s_auths_ids')) { + obj['changed_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['changed_k8s_auths_ids'], ['String']); + } + + if (data.hasOwnProperty('created_k8s_auths_ids')) { + obj['created_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['created_k8s_auths_ids'], ['String']); + } + + if (data.hasOwnProperty('deleted_k8s_auths_ids')) { + obj['deleted_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['deleted_k8s_auths_ids'], ['String']); } } @@ -71916,20 +147770,30 @@ var GatewayUpdateProducerCassandraOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerCassandraOutput; + return K8SAuthsConfigLastChange; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Array.} changed_k8s_auths_ids */ -GatewayUpdateProducerCassandraOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerCassandraOutput; +K8SAuthsConfigLastChange.prototype['changed_k8s_auths_ids'] = undefined; +/** + * @member {Array.} created_k8s_auths_ids + */ + +K8SAuthsConfigLastChange.prototype['created_k8s_auths_ids'] = undefined; +/** + * @member {Array.} deleted_k8s_auths_ids + */ + +K8SAuthsConfigLastChange.prototype['deleted_k8s_auths_ids'] = undefined; +var _default = K8SAuthsConfigLastChange; exports["default"] = _default; /***/ }), -/***/ 15441: +/***/ 27401: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -71940,7 +147804,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _K8SAuth = _interopRequireDefault(__nccwpck_require__(3783)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -71951,21 +147817,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerCertificateAutomation model module. - * @module model/GatewayUpdateProducerCertificateAutomation - * @version 3.3.16 + * The K8SAuthsConfigPart model module. + * @module model/K8SAuthsConfigPart + * @version 3.6.3 */ -var GatewayUpdateProducerCertificateAutomation = /*#__PURE__*/function () { +var K8SAuthsConfigPart = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerCertificateAutomation. - * gatewayUpdateProducerCertificateAutomation is a command that updates a Certificate Automation dynamic secret producer to dynamically update certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi - * @alias module:model/GatewayUpdateProducerCertificateAutomation - * @param name {String} Producer name + * Constructs a new K8SAuthsConfigPart. + * @alias module:model/K8SAuthsConfigPart */ - function GatewayUpdateProducerCertificateAutomation(name) { - _classCallCheck(this, GatewayUpdateProducerCertificateAutomation); + function K8SAuthsConfigPart() { + _classCallCheck(this, K8SAuthsConfigPart); - GatewayUpdateProducerCertificateAutomation.initialize(this, name); + K8SAuthsConfigPart.initialize(this); } /** * Initializes the fields of this object. @@ -71974,127 +147838,115 @@ var GatewayUpdateProducerCertificateAutomation = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerCertificateAutomation, null, [{ + _createClass(K8SAuthsConfigPart, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerCertificateAutomation from a plain JavaScript object, optionally creating a new instance. + * Constructs a K8SAuthsConfigPart from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCertificateAutomation} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCertificateAutomation} The populated GatewayUpdateProducerCertificateAutomation instance. + * @param {module:model/K8SAuthsConfigPart} obj Optional instance to populate. + * @return {module:model/K8SAuthsConfigPart} The populated K8SAuthsConfigPart instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerCertificateAutomation(); - - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); - } - - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); - } + obj = obj || new K8SAuthsConfigPart(); - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + if (data.hasOwnProperty('k8s_auths')) { + obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], [_K8SAuth["default"]]); } + } - if (data.hasOwnProperty('auto-generated-folder')) { - obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + return K8SAuthsConfigPart; +}(); +/** + * @member {Array.} k8s_auths + */ - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); - } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +K8SAuthsConfigPart.prototype['k8s_auths'] = undefined; +var _default = K8SAuthsConfigPart; +exports["default"] = _default; - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +/***/ }), - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } +/***/ 19797: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } +"use strict"; - if (data.hasOwnProperty('root-first-in-chain')) { - obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); - } - if (data.hasOwnProperty('sign-using-akeyless-pki')) { - obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('store-private-key')) { - obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); - } +var _K8SPayload = _interopRequireDefault(__nccwpck_require__(78855)); - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (data.hasOwnProperty('venafi-access-token')) { - obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); - } +/** + * The K8SMigration model module. + * @module model/K8SMigration + * @version 3.6.3 + */ +var K8SMigration = /*#__PURE__*/function () { + /** + * Constructs a new K8SMigration. + * @alias module:model/K8SMigration + */ + function K8SMigration() { + _classCallCheck(this, K8SMigration); - if (data.hasOwnProperty('venafi-api-key')) { - obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); - } + K8SMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (data.hasOwnProperty('venafi-baseurl')) { - obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); - } - if (data.hasOwnProperty('venafi-client-id')) { - obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); - } + _createClass(K8SMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a K8SMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/K8SMigration} obj Optional instance to populate. + * @return {module:model/K8SMigration} The populated K8SMigration instance. + */ - if (data.hasOwnProperty('venafi-refresh-token')) { - obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new K8SMigration(); - if (data.hasOwnProperty('venafi-use-tpp')) { - obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); } - if (data.hasOwnProperty('venafi-zone')) { - obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); + if (data.hasOwnProperty('payload')) { + obj['payload'] = _K8SPayload["default"].constructFromObject(data['payload']); } } @@ -72102,176 +147954,179 @@ var GatewayUpdateProducerCertificateAutomation = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerCertificateAutomation; + return K8SMigration; }(); /** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 + * @member {module:model/MigrationGeneral} general */ -GatewayUpdateProducerCertificateAutomation.prototype['admin-rotation-interval-days'] = 0; +K8SMigration.prototype['general'] = undefined; /** - * Allow subdomains - * @member {Boolean} allow-subdomains + * @member {module:model/K8SPayload} payload */ -GatewayUpdateProducerCertificateAutomation.prototype['allow-subdomains'] = undefined; -/** - * Allowed domains - * @member {Array.} allowed-domains - */ +K8SMigration.prototype['payload'] = undefined; +var _default = K8SMigration; +exports["default"] = _default; -GatewayUpdateProducerCertificateAutomation.prototype['allowed-domains'] = undefined; -/** - * Auto generated folder - * @member {String} auto-generated-folder - */ +/***/ }), -GatewayUpdateProducerCertificateAutomation.prototype['auto-generated-folder'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ +/***/ 78855: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -GatewayUpdateProducerCertificateAutomation.prototype['delete_protection'] = undefined; -/** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false - */ +"use strict"; -GatewayUpdateProducerCertificateAutomation.prototype['enable-admin-rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ -GatewayUpdateProducerCertificateAutomation.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -GatewayUpdateProducerCertificateAutomation.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -GatewayUpdateProducerCertificateAutomation.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -GatewayUpdateProducerCertificateAutomation.prototype['producer-encryption-key-name'] = undefined; -/** - * Root first in chain - * @member {Boolean} root-first-in-chain - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -GatewayUpdateProducerCertificateAutomation.prototype['root-first-in-chain'] = undefined; -/** - * Use Akeyless PKI issuer or Venafi issuer - * @member {Boolean} sign-using-akeyless-pki - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -GatewayUpdateProducerCertificateAutomation.prototype['sign-using-akeyless-pki'] = undefined; -/** - * Signer key name - * @member {String} signer-key-name - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -GatewayUpdateProducerCertificateAutomation.prototype['signer-key-name'] = undefined; /** - * Store private key - * @member {Boolean} store-private-key + * The K8SPayload model module. + * @module model/K8SPayload + * @version 3.6.3 */ +var K8SPayload = /*#__PURE__*/function () { + /** + * Constructs a new K8SPayload. + * @alias module:model/K8SPayload + */ + function K8SPayload() { + _classCallCheck(this, K8SPayload); -GatewayUpdateProducerCertificateAutomation.prototype['store-private-key'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ + K8SPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -GatewayUpdateProducerCertificateAutomation.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ -GatewayUpdateProducerCertificateAutomation.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ + _createClass(K8SPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a K8SPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/K8SPayload} obj Optional instance to populate. + * @return {module:model/K8SPayload} The populated K8SPayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new K8SPayload(); + + if (data.hasOwnProperty('ca')) { + obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); + } + + if (data.hasOwnProperty('client_cert')) { + obj['client_cert'] = _ApiClient["default"].convertToType(data['client_cert'], ['Number']); + } + + if (data.hasOwnProperty('client_key')) { + obj['client_key'] = _ApiClient["default"].convertToType(data['client_key'], ['Number']); + } + + if (data.hasOwnProperty('namespace')) { + obj['namespace'] = _ApiClient["default"].convertToType(data['namespace'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('server')) { + obj['server'] = _ApiClient["default"].convertToType(data['server'], 'String'); + } -GatewayUpdateProducerCertificateAutomation.prototype['token'] = undefined; + if (data.hasOwnProperty('skip_system')) { + obj['skip_system'] = _ApiClient["default"].convertToType(data['skip_system'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return K8SPayload; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} ca */ -GatewayUpdateProducerCertificateAutomation.prototype['uid-token'] = undefined; + +K8SPayload.prototype['ca'] = undefined; /** - * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ - * @member {String} user-ttl - * @default '2160h' + * @member {Array.} client_cert */ -GatewayUpdateProducerCertificateAutomation.prototype['user-ttl'] = '2160h'; +K8SPayload.prototype['client_cert'] = undefined; /** - * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) - * @member {String} venafi-access-token + * @member {Array.} client_key */ -GatewayUpdateProducerCertificateAutomation.prototype['venafi-access-token'] = undefined; +K8SPayload.prototype['client_key'] = undefined; /** - * Venafi API key - * @member {String} venafi-api-key + * @member {String} namespace */ -GatewayUpdateProducerCertificateAutomation.prototype['venafi-api-key'] = undefined; +K8SPayload.prototype['namespace'] = undefined; /** - * Venafi Baseurl - * @member {String} venafi-baseurl + * @member {String} password */ -GatewayUpdateProducerCertificateAutomation.prototype['venafi-baseurl'] = undefined; +K8SPayload.prototype['password'] = undefined; /** - * Venafi Client ID that was used when the access token was generated - * @member {String} venafi-client-id - * @default 'akeyless' + * @member {String} server */ -GatewayUpdateProducerCertificateAutomation.prototype['venafi-client-id'] = 'akeyless'; +K8SPayload.prototype['server'] = undefined; /** - * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) - * @member {String} venafi-refresh-token + * @member {Boolean} skip_system */ -GatewayUpdateProducerCertificateAutomation.prototype['venafi-refresh-token'] = undefined; +K8SPayload.prototype['skip_system'] = undefined; /** - * Venafi using TPP - * @member {Boolean} venafi-use-tpp + * @member {String} token */ -GatewayUpdateProducerCertificateAutomation.prototype['venafi-use-tpp'] = undefined; +K8SPayload.prototype['token'] = undefined; /** - * Venafi Zone - * @member {String} venafi-zone + * @member {String} username */ -GatewayUpdateProducerCertificateAutomation.prototype['venafi-zone'] = undefined; -var _default = GatewayUpdateProducerCertificateAutomation; +K8SPayload.prototype['username'] = undefined; +var _default = K8SPayload; exports["default"] = _default; /***/ }), -/***/ 75159: +/***/ 76023: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -72282,9 +148137,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _PathRule = _interopRequireDefault(__nccwpck_require__(42800)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -72295,19 +148150,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerCertificateAutomationOutput model module. - * @module model/GatewayUpdateProducerCertificateAutomationOutput - * @version 3.3.16 + * The KMIPClient model module. + * @module model/KMIPClient + * @version 3.6.3 */ -var GatewayUpdateProducerCertificateAutomationOutput = /*#__PURE__*/function () { +var KMIPClient = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerCertificateAutomationOutput. - * @alias module:model/GatewayUpdateProducerCertificateAutomationOutput + * Constructs a new KMIPClient. + * @alias module:model/KMIPClient */ - function GatewayUpdateProducerCertificateAutomationOutput() { - _classCallCheck(this, GatewayUpdateProducerCertificateAutomationOutput); + function KMIPClient() { + _classCallCheck(this, KMIPClient); - GatewayUpdateProducerCertificateAutomationOutput.initialize(this); + KMIPClient.initialize(this); } /** * Initializes the fields of this object. @@ -72316,25 +148171,45 @@ var GatewayUpdateProducerCertificateAutomationOutput = /*#__PURE__*/function () */ - _createClass(GatewayUpdateProducerCertificateAutomationOutput, null, [{ + _createClass(KMIPClient, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerCertificateAutomationOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KMIPClient from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCertificateAutomationOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCertificateAutomationOutput} The populated GatewayUpdateProducerCertificateAutomationOutput instance. + * @param {module:model/KMIPClient} obj Optional instance to populate. + * @return {module:model/KMIPClient} The populated KMIPClient instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerCertificateAutomationOutput(); + obj = obj || new KMIPClient(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('activate_keys_on_creation')) { + obj['activate_keys_on_creation'] = _ApiClient["default"].convertToType(data['activate_keys_on_creation'], 'Boolean'); + } + + if (data.hasOwnProperty('certificate_issue_date')) { + obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); + } + + if (data.hasOwnProperty('certificate_ttl_in_seconds')) { + obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('rules')) { + obj['rules'] = _ApiClient["default"].convertToType(data['rules'], [_PathRule["default"]]); } } @@ -72342,20 +148217,45 @@ var GatewayUpdateProducerCertificateAutomationOutput = /*#__PURE__*/function () } }]); - return GatewayUpdateProducerCertificateAutomationOutput; + return KMIPClient; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Boolean} activate_keys_on_creation + */ + + +KMIPClient.prototype['activate_keys_on_creation'] = undefined; +/** + * @member {Date} certificate_issue_date + */ + +KMIPClient.prototype['certificate_issue_date'] = undefined; +/** + * @member {Number} certificate_ttl_in_seconds + */ + +KMIPClient.prototype['certificate_ttl_in_seconds'] = undefined; +/** + * @member {String} id + */ + +KMIPClient.prototype['id'] = undefined; +/** + * @member {String} name */ +KMIPClient.prototype['name'] = undefined; +/** + * @member {Array.} rules + */ -GatewayUpdateProducerCertificateAutomationOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerCertificateAutomationOutput; +KMIPClient.prototype['rules'] = undefined; +var _default = KMIPClient; exports["default"] = _default; /***/ }), -/***/ 56186: +/***/ 90216: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -72366,7 +148266,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(76023)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -72377,21 +148279,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerChef model module. - * @module model/GatewayUpdateProducerChef - * @version 3.3.16 + * The KMIPClientGetResponse model module. + * @module model/KMIPClientGetResponse + * @version 3.6.3 */ -var GatewayUpdateProducerChef = /*#__PURE__*/function () { +var KMIPClientGetResponse = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerChef. - * gatewayUpdateProducerChef is a command that updates chef producer - * @alias module:model/GatewayUpdateProducerChef - * @param name {String} Producer name + * Constructs a new KMIPClientGetResponse. + * @alias module:model/KMIPClientGetResponse */ - function GatewayUpdateProducerChef(name) { - _classCallCheck(this, GatewayUpdateProducerChef); + function KMIPClientGetResponse() { + _classCallCheck(this, KMIPClientGetResponse); - GatewayUpdateProducerChef.initialize(this, name); + KMIPClientGetResponse.initialize(this); } /** * Initializes the fields of this object. @@ -72400,83 +148300,25 @@ var GatewayUpdateProducerChef = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerChef, null, [{ + _createClass(KMIPClientGetResponse, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerChef from a plain JavaScript object, optionally creating a new instance. + * Constructs a KMIPClientGetResponse from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerChef} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerChef} The populated GatewayUpdateProducerChef instance. + * @param {module:model/KMIPClientGetResponse} obj Optional instance to populate. + * @return {module:model/KMIPClientGetResponse} The populated KMIPClientGetResponse instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerChef(); - - if (data.hasOwnProperty('chef-orgs')) { - obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); - } - - if (data.hasOwnProperty('chef-server-key')) { - obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); - } - - if (data.hasOwnProperty('chef-server-url')) { - obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); - } - - if (data.hasOwnProperty('chef-server-username')) { - obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('skip-ssl')) { - obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } + obj = obj || new KMIPClientGetResponse(); - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('client')) { + obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); } } @@ -72484,108 +148326,104 @@ var GatewayUpdateProducerChef = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerChef; + return KMIPClientGetResponse; }(); /** - * Organizations - * @member {String} chef-orgs + * @member {module:model/KMIPClient} client */ -GatewayUpdateProducerChef.prototype['chef-orgs'] = undefined; -/** - * Server key - * @member {String} chef-server-key - */ +KMIPClientGetResponse.prototype['client'] = undefined; +var _default = KMIPClientGetResponse; +exports["default"] = _default; -GatewayUpdateProducerChef.prototype['chef-server-key'] = undefined; -/** - * Server URL - * @member {String} chef-server-url - */ +/***/ }), -GatewayUpdateProducerChef.prototype['chef-server-url'] = undefined; -/** - * Server username - * @member {String} chef-server-username - */ +/***/ 64556: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -GatewayUpdateProducerChef.prototype['chef-server-username'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ +"use strict"; -GatewayUpdateProducerChef.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ -GatewayUpdateProducerChef.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -GatewayUpdateProducerChef.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -GatewayUpdateProducerChef.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(76023)); -GatewayUpdateProducerChef.prototype['producer-encryption-key-name'] = undefined; -/** - * Skip SSL - * @member {Boolean} skip-ssl - * @default true - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -GatewayUpdateProducerChef.prototype['skip-ssl'] = true; /** - * Add tags attached to this object - * @member {Array.} tags + * The KMIPClientListResponse model module. + * @module model/KMIPClientListResponse + * @version 3.6.3 */ +var KMIPClientListResponse = /*#__PURE__*/function () { + /** + * Constructs a new KMIPClientListResponse. + * @alias module:model/KMIPClientListResponse + */ + function KMIPClientListResponse() { + _classCallCheck(this, KMIPClientListResponse); + + KMIPClientListResponse.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPClientListResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a KMIPClientListResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPClientListResponse} obj Optional instance to populate. + * @return {module:model/KMIPClientListResponse} The populated KMIPClientListResponse instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPClientListResponse(); -GatewayUpdateProducerChef.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], [_KMIPClient["default"]]); + } + } -GatewayUpdateProducerChef.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ + return obj; + } + }]); -GatewayUpdateProducerChef.prototype['token'] = undefined; + return KMIPClientListResponse; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} clients */ -GatewayUpdateProducerChef.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ -GatewayUpdateProducerChef.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerChef; +KMIPClientListResponse.prototype['clients'] = undefined; +var _default = KMIPClientListResponse; exports["default"] = _default; /***/ }), -/***/ 61161: +/***/ 21621: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -72596,9 +148434,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(76023)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -72609,19 +148447,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerChefOutput model module. - * @module model/GatewayUpdateProducerChefOutput - * @version 3.3.16 + * The KMIPClientUpdateResponse model module. + * @module model/KMIPClientUpdateResponse + * @version 3.6.3 */ -var GatewayUpdateProducerChefOutput = /*#__PURE__*/function () { +var KMIPClientUpdateResponse = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerChefOutput. - * @alias module:model/GatewayUpdateProducerChefOutput + * Constructs a new KMIPClientUpdateResponse. + * @alias module:model/KMIPClientUpdateResponse */ - function GatewayUpdateProducerChefOutput() { - _classCallCheck(this, GatewayUpdateProducerChefOutput); + function KMIPClientUpdateResponse() { + _classCallCheck(this, KMIPClientUpdateResponse); - GatewayUpdateProducerChefOutput.initialize(this); + KMIPClientUpdateResponse.initialize(this); } /** * Initializes the fields of this object. @@ -72630,25 +148468,25 @@ var GatewayUpdateProducerChefOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerChefOutput, null, [{ + _createClass(KMIPClientUpdateResponse, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KMIPClientUpdateResponse from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerChefOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerChefOutput} The populated GatewayUpdateProducerChefOutput instance. + * @param {module:model/KMIPClientUpdateResponse} obj Optional instance to populate. + * @return {module:model/KMIPClientUpdateResponse} The populated KMIPClientUpdateResponse instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerChefOutput(); + obj = obj || new KMIPClientUpdateResponse(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('client')) { + obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); } } @@ -72656,20 +148494,20 @@ var GatewayUpdateProducerChefOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerChefOutput; + return KMIPClientUpdateResponse; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {module:model/KMIPClient} client */ -GatewayUpdateProducerChefOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerChefOutput; +KMIPClientUpdateResponse.prototype['client'] = undefined; +var _default = KMIPClientUpdateResponse; exports["default"] = _default; /***/ }), -/***/ 40998: +/***/ 13315: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -72680,7 +148518,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(76023)); + +var _KMIPServer = _interopRequireDefault(__nccwpck_require__(22987)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -72691,22 +148533,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerCustom model module. - * @module model/GatewayUpdateProducerCustom - * @version 3.3.16 + * The KMIPConfigPart model module. + * @module model/KMIPConfigPart + * @version 3.6.3 */ -var GatewayUpdateProducerCustom = /*#__PURE__*/function () { +var KMIPConfigPart = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerCustom. - * @alias module:model/GatewayUpdateProducerCustom - * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @param name {String} Producer name - * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * Constructs a new KMIPConfigPart. + * @alias module:model/KMIPConfigPart */ - function GatewayUpdateProducerCustom(createSyncUrl, name, revokeSyncUrl) { - _classCallCheck(this, GatewayUpdateProducerCustom); + function KMIPConfigPart() { + _classCallCheck(this, KMIPConfigPart); - GatewayUpdateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); + KMIPConfigPart.initialize(this); } /** * Initializes the fields of this object. @@ -72715,89 +148554,39 @@ var GatewayUpdateProducerCustom = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerCustom, null, [{ + _createClass(KMIPConfigPart, null, [{ key: "initialize", - value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { - obj['create-sync-url'] = createSyncUrl; - obj['name'] = name; - obj['revoke-sync-url'] = revokeSyncUrl; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerCustom from a plain JavaScript object, optionally creating a new instance. + * Constructs a KMIPConfigPart from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCustom} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCustom} The populated GatewayUpdateProducerCustom instance. + * @param {module:model/KMIPConfigPart} obj Optional instance to populate. + * @return {module:model/KMIPConfigPart} The populated KMIPConfigPart instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerCustom(); - - if (data.hasOwnProperty('admin_rotation_interval_days')) { - obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); - } - - if (data.hasOwnProperty('create-sync-url')) { - obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable_admin_rotation')) { - obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('revoke-sync-url')) { - obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); - } - - if (data.hasOwnProperty('rotate-sync-url')) { - obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } + obj = obj || new KMIPConfigPart(); - if (data.hasOwnProperty('timeout-sec')) { - obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { + 'String': _KMIPClient["default"] + }); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('key_enc')) { + obj['key_enc'] = _ApiClient["default"].convertToType(data['key_enc'], ['Number']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('server')) { + obj['server'] = _KMIPServer["default"].constructFromObject(data['server']); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('server_enc')) { + obj['server_enc'] = _ApiClient["default"].convertToType(data['server_enc'], ['Number']); } } @@ -72805,115 +148594,37 @@ var GatewayUpdateProducerCustom = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerCustom; + return KMIPConfigPart; }(); /** - * Define rotation interval in days - * @member {Number} admin_rotation_interval_days - */ - - -GatewayUpdateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; -/** - * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @member {String} create-sync-url - */ - -GatewayUpdateProducerCustom.prototype['create-sync-url'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerCustom.prototype['delete_protection'] = undefined; -/** - * Should admin credentials be rotated - * @member {Boolean} enable_admin_rotation - * @default false - */ - -GatewayUpdateProducerCustom.prototype['enable_admin_rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerCustom.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerCustom.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerCustom.prototype['new-name'] = undefined; -/** - * Secret payload to be sent with each create/revoke webhook request - * @member {String} payload - */ - -GatewayUpdateProducerCustom.prototype['payload'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerCustom.prototype['producer-encryption-key-name'] = undefined; -/** - * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke - * @member {String} revoke-sync-url - */ - -GatewayUpdateProducerCustom.prototype['revoke-sync-url'] = undefined; -/** - * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate - * @member {String} rotate-sync-url - */ - -GatewayUpdateProducerCustom.prototype['rotate-sync-url'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags + * @member {Object.} clients */ -GatewayUpdateProducerCustom.prototype['tags'] = undefined; -/** - * Maximum allowed time in seconds for the webhook to return the results - * @member {Number} timeout-sec - * @default 60 - */ -GatewayUpdateProducerCustom.prototype['timeout-sec'] = 60; +KMIPConfigPart.prototype['clients'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Saves the private key of the cert issuer in encypted form + * @member {Array.} key_enc */ -GatewayUpdateProducerCustom.prototype['token'] = undefined; +KMIPConfigPart.prototype['key_enc'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/KMIPServer} server */ -GatewayUpdateProducerCustom.prototype['uid-token'] = undefined; +KMIPConfigPart.prototype['server'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * Saved for backward compatibility TODO: remove this after all clients upgrade + * @member {Array.} server_enc */ -GatewayUpdateProducerCustom.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerCustom; +KMIPConfigPart.prototype['server_enc'] = undefined; +var _default = KMIPConfigPart; exports["default"] = _default; /***/ }), -/***/ 54179: +/***/ 1856: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -72924,9 +148635,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -72937,19 +148646,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerCustomOutput model module. - * @module model/GatewayUpdateProducerCustomOutput - * @version 3.3.16 + * The KMIPEnvironmentCreateResponse model module. + * @module model/KMIPEnvironmentCreateResponse + * @version 3.6.3 */ -var GatewayUpdateProducerCustomOutput = /*#__PURE__*/function () { +var KMIPEnvironmentCreateResponse = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerCustomOutput. - * @alias module:model/GatewayUpdateProducerCustomOutput + * Constructs a new KMIPEnvironmentCreateResponse. + * @alias module:model/KMIPEnvironmentCreateResponse */ - function GatewayUpdateProducerCustomOutput() { - _classCallCheck(this, GatewayUpdateProducerCustomOutput); + function KMIPEnvironmentCreateResponse() { + _classCallCheck(this, KMIPEnvironmentCreateResponse); - GatewayUpdateProducerCustomOutput.initialize(this); + KMIPEnvironmentCreateResponse.initialize(this); } /** * Initializes the fields of this object. @@ -72958,25 +148667,29 @@ var GatewayUpdateProducerCustomOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerCustomOutput, null, [{ + _createClass(KMIPEnvironmentCreateResponse, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KMIPEnvironmentCreateResponse from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCustomOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCustomOutput} The populated GatewayUpdateProducerCustomOutput instance. + * @param {module:model/KMIPEnvironmentCreateResponse} obj Optional instance to populate. + * @return {module:model/KMIPEnvironmentCreateResponse} The populated KMIPEnvironmentCreateResponse instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerCustomOutput(); + obj = obj || new KMIPEnvironmentCreateResponse(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('ca_cert')) { + obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); + } + + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); } } @@ -72984,20 +148697,25 @@ var GatewayUpdateProducerCustomOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerCustomOutput; + return KMIPEnvironmentCreateResponse; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Array.} ca_cert */ -GatewayUpdateProducerCustomOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerCustomOutput; +KMIPEnvironmentCreateResponse.prototype['ca_cert'] = undefined; +/** + * @member {String} root + */ + +KMIPEnvironmentCreateResponse.prototype['root'] = undefined; +var _default = KMIPEnvironmentCreateResponse; exports["default"] = _default; /***/ }), -/***/ 65386: +/***/ 22987: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -73008,7 +148726,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -73019,21 +148737,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerDockerhub model module. - * @module model/GatewayUpdateProducerDockerhub - * @version 3.3.16 + * The KMIPServer model module. + * @module model/KMIPServer + * @version 3.6.3 */ -var GatewayUpdateProducerDockerhub = /*#__PURE__*/function () { +var KMIPServer = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerDockerhub. - * gatewayUpdateProducerDockerhub is a command that updates a DOCKERHUB producer - * @alias module:model/GatewayUpdateProducerDockerhub - * @param name {String} Producer name + * Constructs a new KMIPServer. + * @alias module:model/KMIPServer */ - function GatewayUpdateProducerDockerhub(name) { - _classCallCheck(this, GatewayUpdateProducerDockerhub); + function KMIPServer() { + _classCallCheck(this, KMIPServer); - GatewayUpdateProducerDockerhub.initialize(this, name); + KMIPServer.initialize(this); } /** * Initializes the fields of this object. @@ -73042,75 +148758,49 @@ var GatewayUpdateProducerDockerhub = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerDockerhub, null, [{ + _createClass(KMIPServer, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. + * Constructs a KMIPServer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerDockerhub} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerDockerhub} The populated GatewayUpdateProducerDockerhub instance. + * @param {module:model/KMIPServer} obj Optional instance to populate. + * @return {module:model/KMIPServer} The populated KMIPServer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerDockerhub(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-token-scopes')) { - obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } + obj = obj || new KMIPServer(); - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('ca')) { + obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], ['Number']); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('certificate_issue_date')) { + obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('certificate_ttl_in_seconds')) { + obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); } } @@ -73118,95 +148808,50 @@ var GatewayUpdateProducerDockerhub = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerDockerhub; + return KMIPServer; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerDockerhub.prototype['delete_protection'] = undefined; -/** - * DockerhubPassword is either the user's password access token to manage the repository - * @member {String} dockerhub-password - */ - -GatewayUpdateProducerDockerhub.prototype['dockerhub-password'] = undefined; -/** - * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" - * @member {String} dockerhub-token-scopes - */ - -GatewayUpdateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; -/** - * DockerhubUsername is the name of the user in dockerhub - * @member {String} dockerhub-username - */ - -GatewayUpdateProducerDockerhub.prototype['dockerhub-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerDockerhub.prototype['json'] = false; -/** - * Producer name - * @member {String} name + * @member {Boolean} active */ -GatewayUpdateProducerDockerhub.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ -GatewayUpdateProducerDockerhub.prototype['new-name'] = undefined; +KMIPServer.prototype['active'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * @member {Array.} ca */ -GatewayUpdateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; +KMIPServer.prototype['ca'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * @member {Array.} certificate */ -GatewayUpdateProducerDockerhub.prototype['tags'] = undefined; +KMIPServer.prototype['certificate'] = undefined; /** - * Target name - * @member {String} target-name + * @member {Date} certificate_issue_date */ -GatewayUpdateProducerDockerhub.prototype['target-name'] = undefined; +KMIPServer.prototype['certificate_issue_date'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Number} certificate_ttl_in_seconds */ -GatewayUpdateProducerDockerhub.prototype['token'] = undefined; +KMIPServer.prototype['certificate_ttl_in_seconds'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} hostname */ -GatewayUpdateProducerDockerhub.prototype['uid-token'] = undefined; +KMIPServer.prototype['hostname'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {String} root */ -GatewayUpdateProducerDockerhub.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerDockerhub; +KMIPServer.prototype['root'] = undefined; +var _default = KMIPServer; exports["default"] = _default; /***/ }), -/***/ 55211: +/***/ 81302: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -73217,9 +148862,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -73230,19 +148873,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerDockerhubOutput model module. - * @module model/GatewayUpdateProducerDockerhubOutput - * @version 3.3.16 + * The KmipClientDeleteRule model module. + * @module model/KmipClientDeleteRule + * @version 3.6.3 */ -var GatewayUpdateProducerDockerhubOutput = /*#__PURE__*/function () { +var KmipClientDeleteRule = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerDockerhubOutput. - * @alias module:model/GatewayUpdateProducerDockerhubOutput + * Constructs a new KmipClientDeleteRule. + * @alias module:model/KmipClientDeleteRule + * @param path {String} Access path */ - function GatewayUpdateProducerDockerhubOutput() { - _classCallCheck(this, GatewayUpdateProducerDockerhubOutput); + function KmipClientDeleteRule(path) { + _classCallCheck(this, KmipClientDeleteRule); - GatewayUpdateProducerDockerhubOutput.initialize(this); + KmipClientDeleteRule.initialize(this, path); } /** * Initializes the fields of this object. @@ -73251,25 +148895,47 @@ var GatewayUpdateProducerDockerhubOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerDockerhubOutput, null, [{ + _createClass(KmipClientDeleteRule, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, path) { + obj['path'] = path; + } /** - * Constructs a GatewayUpdateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipClientDeleteRule from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerDockerhubOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerDockerhubOutput} The populated GatewayUpdateProducerDockerhubOutput instance. + * @param {module:model/KmipClientDeleteRule} obj Optional instance to populate. + * @return {module:model/KmipClientDeleteRule} The populated KmipClientDeleteRule instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerDockerhubOutput(); + obj = obj || new KmipClientDeleteRule(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -73277,20 +148943,50 @@ var GatewayUpdateProducerDockerhubOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerDockerhubOutput; + return KmipClientDeleteRule; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} client-id */ -GatewayUpdateProducerDockerhubOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerDockerhubOutput; +KmipClientDeleteRule.prototype['client-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +KmipClientDeleteRule.prototype['json'] = false; +/** + * @member {String} name + */ + +KmipClientDeleteRule.prototype['name'] = undefined; +/** + * Access path + * @member {String} path + */ + +KmipClientDeleteRule.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipClientDeleteRule.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipClientDeleteRule.prototype['uid-token'] = undefined; +var _default = KmipClientDeleteRule; exports["default"] = _default; /***/ }), -/***/ 76166: +/***/ 7841: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -73301,7 +148997,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -73312,21 +149008,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerEks model module. - * @module model/GatewayUpdateProducerEks - * @version 3.3.16 + * The KmipClientSetRule model module. + * @module model/KmipClientSetRule + * @version 3.6.3 */ -var GatewayUpdateProducerEks = /*#__PURE__*/function () { +var KmipClientSetRule = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerEks. - * gatewayUpdateProducerEks is a command that updates eks producer - * @alias module:model/GatewayUpdateProducerEks - * @param name {String} Producer name + * Constructs a new KmipClientSetRule. + * @alias module:model/KmipClientSetRule + * @param capability {Array.} Access capabilities + * @param path {String} Access path */ - function GatewayUpdateProducerEks(name) { - _classCallCheck(this, GatewayUpdateProducerEks); + function KmipClientSetRule(capability, path) { + _classCallCheck(this, KmipClientSetRule); - GatewayUpdateProducerEks.initialize(this, name); + KmipClientSetRule.initialize(this, capability, path); } /** * Initializes the fields of this object. @@ -73335,55 +149031,32 @@ var GatewayUpdateProducerEks = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerEks, null, [{ + _createClass(KmipClientSetRule, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, capability, path) { + obj['capability'] = capability; + obj['path'] = path; } /** - * Constructs a GatewayUpdateProducerEks from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipClientSetRule from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerEks} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerEks} The populated GatewayUpdateProducerEks instance. + * @param {module:model/KmipClientSetRule} obj Optional instance to populate. + * @return {module:model/KmipClientSetRule} The populated KmipClientSetRule instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerEks(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('eks-assume-role')) { - obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); - } + obj = obj || new KmipClientSetRule(); - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + if (data.hasOwnProperty('capability')) { + obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); } - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } if (data.hasOwnProperty('json')) { @@ -73394,40 +149067,8 @@ var GatewayUpdateProducerEks = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } if (data.hasOwnProperty('token')) { @@ -73437,245 +149078,62 @@ var GatewayUpdateProducerEks = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerEks; + return KmipClientSetRule; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerEks.prototype['delete_protection'] = undefined; -/** - * Access Key ID - * @member {String} eks-access-key-id - */ - -GatewayUpdateProducerEks.prototype['eks-access-key-id'] = undefined; -/** - * IAM assume role - * @member {String} eks-assume-role - */ - -GatewayUpdateProducerEks.prototype['eks-assume-role'] = undefined; -/** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert - */ - -GatewayUpdateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; -/** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint - */ - -GatewayUpdateProducerEks.prototype['eks-cluster-endpoint'] = undefined; -/** - * EKS cluster name - * @member {String} eks-cluster-name + * Access capabilities + * @member {Array.} capability */ -GatewayUpdateProducerEks.prototype['eks-cluster-name'] = undefined; -/** - * Region - * @member {String} eks-region - * @default 'us-east-2' - */ -GatewayUpdateProducerEks.prototype['eks-region'] = 'us-east-2'; +KmipClientSetRule.prototype['capability'] = undefined; /** - * Secret Access Key - * @member {String} eks-secret-access-key + * @member {String} client-id */ -GatewayUpdateProducerEks.prototype['eks-secret-access-key'] = undefined; +KmipClientSetRule.prototype['client-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerEks.prototype['json'] = false; +KmipClientSetRule.prototype['json'] = false; /** - * Producer name * @member {String} name */ -GatewayUpdateProducerEks.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerEks.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerEks.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayUpdateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayUpdateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerEks.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerEks.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerEks.prototype['tags'] = undefined; +KmipClientSetRule.prototype['name'] = undefined; /** - * Target name - * @member {String} target-name + * Access path + * @member {String} path */ -GatewayUpdateProducerEks.prototype['target-name'] = undefined; +KmipClientSetRule.prototype['path'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerEks.prototype['token'] = undefined; +KmipClientSetRule.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerEks.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '15m' - */ - -GatewayUpdateProducerEks.prototype['user-ttl'] = '15m'; -var _default = GatewayUpdateProducerEks; -exports["default"] = _default; - -/***/ }), - -/***/ 77541: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerEksOutput model module. - * @module model/GatewayUpdateProducerEksOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerEksOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerEksOutput. - * @alias module:model/GatewayUpdateProducerEksOutput - */ - function GatewayUpdateProducerEksOutput() { - _classCallCheck(this, GatewayUpdateProducerEksOutput); - - GatewayUpdateProducerEksOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerEksOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerEksOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerEksOutput} The populated GatewayUpdateProducerEksOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerEksOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerEksOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerEksOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerEksOutput; +KmipClientSetRule.prototype['uid-token'] = undefined; +var _default = KmipClientSetRule; exports["default"] = _default; /***/ }), -/***/ 92305: +/***/ 13031: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -73686,7 +149144,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -73697,22 +149155,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerGcp model module. - * @module model/GatewayUpdateProducerGcp - * @version 3.3.16 + * The KmipCreateClient model module. + * @module model/KmipCreateClient + * @version 3.6.3 */ -var GatewayUpdateProducerGcp = /*#__PURE__*/function () { +var KmipCreateClient = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerGcp. - * gatewayUpdateProducerGcp is a command that updates a GCP producer - * @alias module:model/GatewayUpdateProducerGcp - * @param name {String} Producer name - * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] + * Constructs a new KmipCreateClient. + * @alias module:model/KmipCreateClient + * @param name {String} Client name */ - function GatewayUpdateProducerGcp(name, serviceAccountType) { - _classCallCheck(this, GatewayUpdateProducerGcp); + function KmipCreateClient(name) { + _classCallCheck(this, KmipCreateClient); - GatewayUpdateProducerGcp.initialize(this, name, serviceAccountType); + KmipCreateClient.initialize(this, name); } /** * Initializes the fields of this object. @@ -73721,48 +149177,31 @@ var GatewayUpdateProducerGcp = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerGcp, null, [{ + _createClass(KmipCreateClient, null, [{ key: "initialize", - value: function initialize(obj, name, serviceAccountType) { + value: function initialize(obj, name) { obj['name'] = name; - obj['service-account-type'] = serviceAccountType; } /** - * Constructs a GatewayUpdateProducerGcp from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipCreateClient from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGcp} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGcp} The populated GatewayUpdateProducerGcp instance. + * @param {module:model/KmipCreateClient} obj Optional instance to populate. + * @return {module:model/KmipCreateClient} The populated KmipCreateClient instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerGcp(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('gcp-cred-type')) { - obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('gcp-key-algo')) { - obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); - } + obj = obj || new KmipCreateClient(); - if (data.hasOwnProperty('gcp-sa-email')) { - obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + if (data.hasOwnProperty('activate-keys-on-creation')) { + obj['activate-keys-on-creation'] = _ApiClient["default"].convertToType(data['activate-keys-on-creation'], 'String'); } - if (data.hasOwnProperty('gcp-token-scopes')) { - obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); } if (data.hasOwnProperty('json')) { @@ -73773,30 +149212,6 @@ var GatewayUpdateProducerGcp = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('role-binding')) { - obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); - } - - if (data.hasOwnProperty('service-account-type')) { - obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -73804,129 +149219,60 @@ var GatewayUpdateProducerGcp = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerGcp; + return KmipCreateClient; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerGcp.prototype['delete_protection'] = undefined; -/** - * @member {String} gcp-cred-type - */ - -GatewayUpdateProducerGcp.prototype['gcp-cred-type'] = undefined; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -GatewayUpdateProducerGcp.prototype['gcp-key'] = undefined; -/** - * Service account key algorithm, e.g. KEY_ALG_RSA_1024 - * @member {String} gcp-key-algo - */ - -GatewayUpdateProducerGcp.prototype['gcp-key-algo'] = undefined; -/** - * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) - * @member {String} gcp-sa-email - */ - -GatewayUpdateProducerGcp.prototype['gcp-sa-email'] = undefined; -/** - * Access token scopes list, e.g. scope1,scope2 - * @member {String} gcp-token-scopes - */ - -GatewayUpdateProducerGcp.prototype['gcp-token-scopes'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerGcp.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerGcp.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerGcp.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerGcp.prototype['producer-encryption-key-name'] = undefined; -/** - * Role binding definitions in json format - * @member {String} role-binding + * If set to 'true', newly created keys on the client will be set to an 'active' state + * @member {String} activate-keys-on-creation + * @default 'false' */ -GatewayUpdateProducerGcp.prototype['role-binding'] = undefined; + +KmipCreateClient.prototype['activate-keys-on-creation'] = 'false'; /** - * The type of the gcp dynamic secret. Options[fixed, dynamic] - * @member {String} service-account-type - * @default 'fixed' + * Client certificate TTL in days + * @member {Number} certificate-ttl + * @default 90 */ -GatewayUpdateProducerGcp.prototype['service-account-type'] = 'fixed'; +KmipCreateClient.prototype['certificate-ttl'] = 90; /** - * Add tags attached to this object - * @member {Array.} tags + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayUpdateProducerGcp.prototype['tags'] = undefined; +KmipCreateClient.prototype['json'] = false; /** - * Target name - * @member {String} target-name + * Client name + * @member {String} name */ -GatewayUpdateProducerGcp.prototype['target-name'] = undefined; +KmipCreateClient.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerGcp.prototype['token'] = undefined; +KmipCreateClient.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerGcp.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerGcp.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerGcp; +KmipCreateClient.prototype['uid-token'] = undefined; +var _default = KmipCreateClient; exports["default"] = _default; /***/ }), -/***/ 97010: +/***/ 55742: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -73937,9 +149283,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -73950,19 +149294,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerGcpOutput model module. - * @module model/GatewayUpdateProducerGcpOutput - * @version 3.3.16 + * The KmipCreateClientOutput model module. + * @module model/KmipCreateClientOutput + * @version 3.6.3 */ -var GatewayUpdateProducerGcpOutput = /*#__PURE__*/function () { +var KmipCreateClientOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerGcpOutput. - * @alias module:model/GatewayUpdateProducerGcpOutput + * Constructs a new KmipCreateClientOutput. + * @alias module:model/KmipCreateClientOutput */ - function GatewayUpdateProducerGcpOutput() { - _classCallCheck(this, GatewayUpdateProducerGcpOutput); + function KmipCreateClientOutput() { + _classCallCheck(this, KmipCreateClientOutput); - GatewayUpdateProducerGcpOutput.initialize(this); + KmipCreateClientOutput.initialize(this); } /** * Initializes the fields of this object. @@ -73971,25 +149315,33 @@ var GatewayUpdateProducerGcpOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerGcpOutput, null, [{ + _createClass(KmipCreateClientOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipCreateClientOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGcpOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGcpOutput} The populated GatewayUpdateProducerGcpOutput instance. + * @param {module:model/KmipCreateClientOutput} obj Optional instance to populate. + * @return {module:model/KmipCreateClientOutput} The populated KmipCreateClientOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerGcpOutput(); + obj = obj || new KmipCreateClientOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } } @@ -73997,20 +149349,30 @@ var GatewayUpdateProducerGcpOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerGcpOutput; + return KmipCreateClientOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} certificate */ -GatewayUpdateProducerGcpOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerGcpOutput; +KmipCreateClientOutput.prototype['certificate'] = undefined; +/** + * @member {String} id + */ + +KmipCreateClientOutput.prototype['id'] = undefined; +/** + * @member {String} key + */ + +KmipCreateClientOutput.prototype['key'] = undefined; +var _default = KmipCreateClientOutput; exports["default"] = _default; /***/ }), -/***/ 92280: +/***/ 37128: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -74021,7 +149383,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -74032,21 +149394,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerGithub model module. - * @module model/GatewayUpdateProducerGithub - * @version 3.3.16 + * The KmipDeleteClient model module. + * @module model/KmipDeleteClient + * @version 3.6.3 */ -var GatewayUpdateProducerGithub = /*#__PURE__*/function () { +var KmipDeleteClient = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerGithub. - * gatewayUpdateProducerGithub is a command that updates github producer - * @alias module:model/GatewayUpdateProducerGithub - * @param name {String} Producer name + * Constructs a new KmipDeleteClient. + * @alias module:model/KmipDeleteClient */ - function GatewayUpdateProducerGithub(name) { - _classCallCheck(this, GatewayUpdateProducerGithub); + function KmipDeleteClient() { + _classCallCheck(this, KmipDeleteClient); - GatewayUpdateProducerGithub.initialize(this, name); + KmipDeleteClient.initialize(this); } /** * Initializes the fields of this object. @@ -74055,47 +149415,25 @@ var GatewayUpdateProducerGithub = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerGithub, null, [{ + _createClass(KmipDeleteClient, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerGithub from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipDeleteClient from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGithub} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGithub} The populated GatewayUpdateProducerGithub instance. + * @param {module:model/KmipDeleteClient} obj Optional instance to populate. + * @return {module:model/KmipDeleteClient} The populated KmipDeleteClient instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerGithub(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); - } - - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); - } - - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); - } - - if (data.hasOwnProperty('installation-id')) { - obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); - } + obj = obj || new KmipDeleteClient(); - if (data.hasOwnProperty('installation-repository')) { - obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } if (data.hasOwnProperty('json')) { @@ -74106,26 +149444,10 @@ var GatewayUpdateProducerGithub = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('token-permissions')) { - obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); - } - - if (data.hasOwnProperty('token-repositories')) { - obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -74135,101 +149457,44 @@ var GatewayUpdateProducerGithub = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerGithub; + return KmipDeleteClient; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerGithub.prototype['delete_protection'] = undefined; -/** - * Github app id - * @member {Number} github-app-id - */ - -GatewayUpdateProducerGithub.prototype['github-app-id'] = undefined; -/** - * App private key - * @member {String} github-app-private-key - */ - -GatewayUpdateProducerGithub.prototype['github-app-private-key'] = undefined; -/** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' - */ - -GatewayUpdateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; -/** - * Github app installation id - * @member {Number} installation-id + * @member {String} client-id */ -GatewayUpdateProducerGithub.prototype['installation-id'] = undefined; -/** - * Repository that the app installation has access to - * @member {String} installation-repository - */ -GatewayUpdateProducerGithub.prototype['installation-repository'] = undefined; +KmipDeleteClient.prototype['client-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerGithub.prototype['json'] = false; +KmipDeleteClient.prototype['json'] = false; /** - * Producer name * @member {String} name */ -GatewayUpdateProducerGithub.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerGithub.prototype['new-name'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerGithub.prototype['target-name'] = undefined; +KmipDeleteClient.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerGithub.prototype['token'] = undefined; -/** - * Optional - installation token's allowed permissions - * @member {Array.} token-permissions - */ - -GatewayUpdateProducerGithub.prototype['token-permissions'] = undefined; -/** - * Optional - installation token's allowed repositories - * @member {Array.} token-repositories - */ - -GatewayUpdateProducerGithub.prototype['token-repositories'] = undefined; +KmipDeleteClient.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerGithub.prototype['uid-token'] = undefined; -var _default = GatewayUpdateProducerGithub; +KmipDeleteClient.prototype['uid-token'] = undefined; +var _default = KmipDeleteClient; exports["default"] = _default; /***/ }), -/***/ 51383: +/***/ 8636: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -74240,9 +149505,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -74253,19 +149516,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerGithubOutput model module. - * @module model/GatewayUpdateProducerGithubOutput - * @version 3.3.16 + * The KmipDeleteServer model module. + * @module model/KmipDeleteServer + * @version 3.6.3 */ -var GatewayUpdateProducerGithubOutput = /*#__PURE__*/function () { +var KmipDeleteServer = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerGithubOutput. - * @alias module:model/GatewayUpdateProducerGithubOutput + * Constructs a new KmipDeleteServer. + * kmipDeleteServer is a command that the kmip server (allowed only if it has no clients nor associated items) + * @alias module:model/KmipDeleteServer */ - function GatewayUpdateProducerGithubOutput() { - _classCallCheck(this, GatewayUpdateProducerGithubOutput); + function KmipDeleteServer() { + _classCallCheck(this, KmipDeleteServer); - GatewayUpdateProducerGithubOutput.initialize(this); + KmipDeleteServer.initialize(this); } /** * Initializes the fields of this object. @@ -74274,25 +149538,33 @@ var GatewayUpdateProducerGithubOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerGithubOutput, null, [{ + _createClass(KmipDeleteServer, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipDeleteServer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGithubOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGithubOutput} The populated GatewayUpdateProducerGithubOutput instance. + * @param {module:model/KmipDeleteServer} obj Optional instance to populate. + * @return {module:model/KmipDeleteServer} The populated KmipDeleteServer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerGithubOutput(); + obj = obj || new KmipDeleteServer(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -74300,20 +149572,34 @@ var GatewayUpdateProducerGithubOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerGithubOutput; + return KmipDeleteServer; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayUpdateProducerGithubOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerGithubOutput; +KmipDeleteServer.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipDeleteServer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipDeleteServer.prototype['uid-token'] = undefined; +var _default = KmipDeleteServer; exports["default"] = _default; /***/ }), -/***/ 66834: +/***/ 66618: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -74324,7 +149610,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -74335,21 +149621,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerGke model module. - * @module model/GatewayUpdateProducerGke - * @version 3.3.16 + * The KmipDescribeClient model module. + * @module model/KmipDescribeClient + * @version 3.6.3 */ -var GatewayUpdateProducerGke = /*#__PURE__*/function () { +var KmipDescribeClient = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerGke. - * gatewayUpdateProducerGke is a command that updates gke producer - * @alias module:model/GatewayUpdateProducerGke - * @param name {String} Producer name + * Constructs a new KmipDescribeClient. + * @alias module:model/KmipDescribeClient */ - function GatewayUpdateProducerGke(name) { - _classCallCheck(this, GatewayUpdateProducerGke); + function KmipDescribeClient() { + _classCallCheck(this, KmipDescribeClient); - GatewayUpdateProducerGke.initialize(this, name); + KmipDescribeClient.initialize(this); } /** * Initializes the fields of this object. @@ -74358,47 +149642,25 @@ var GatewayUpdateProducerGke = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerGke, null, [{ + _createClass(KmipDescribeClient, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerGke from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipDescribeClient from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGke} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGke} The populated GatewayUpdateProducerGke instance. + * @param {module:model/KmipDescribeClient} obj Optional instance to populate. + * @return {module:model/KmipDescribeClient} The populated KmipDescribeClient instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerGke(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); - } + obj = obj || new KmipDescribeClient(); - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } if (data.hasOwnProperty('json')) { @@ -74409,42 +149671,6 @@ var GatewayUpdateProducerGke = /*#__PURE__*/function () { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -74452,148 +149678,50 @@ var GatewayUpdateProducerGke = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerGke; + return KmipDescribeClient; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerGke.prototype['delete_protection'] = undefined; -/** - * GKE Service Account key file path - * @member {String} gke-account-key - */ - -GatewayUpdateProducerGke.prototype['gke-account-key'] = undefined; -/** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert - */ - -GatewayUpdateProducerGke.prototype['gke-cluster-cert'] = undefined; -/** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint - */ - -GatewayUpdateProducerGke.prototype['gke-cluster-endpoint'] = undefined; -/** - * GKE cluster name - * @member {String} gke-cluster-name + * @member {String} client-id */ -GatewayUpdateProducerGke.prototype['gke-cluster-name'] = undefined; -/** - * GKE service account email - * @member {String} gke-service-account-email - */ -GatewayUpdateProducerGke.prototype['gke-service-account-email'] = undefined; +KmipDescribeClient.prototype['client-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerGke.prototype['json'] = false; +KmipDescribeClient.prototype['json'] = false; /** - * Producer name * @member {String} name */ -GatewayUpdateProducerGke.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerGke.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerGke.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayUpdateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayUpdateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerGke.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerGke.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerGke.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerGke.prototype['target-name'] = undefined; +KmipDescribeClient.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerGke.prototype['token'] = undefined; +KmipDescribeClient.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerGke.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerGke.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerGke; +KmipDescribeClient.prototype['uid-token'] = undefined; +var _default = KmipDescribeClient; exports["default"] = _default; /***/ }), -/***/ 25406: +/***/ 42350: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -74604,9 +149732,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -74617,19 +149743,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerGkeOutput model module. - * @module model/GatewayUpdateProducerGkeOutput - * @version 3.3.16 + * The KmipDescribeServer model module. + * @module model/KmipDescribeServer + * @version 3.6.3 */ -var GatewayUpdateProducerGkeOutput = /*#__PURE__*/function () { +var KmipDescribeServer = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerGkeOutput. - * @alias module:model/GatewayUpdateProducerGkeOutput + * Constructs a new KmipDescribeServer. + * @alias module:model/KmipDescribeServer */ - function GatewayUpdateProducerGkeOutput() { - _classCallCheck(this, GatewayUpdateProducerGkeOutput); + function KmipDescribeServer() { + _classCallCheck(this, KmipDescribeServer); - GatewayUpdateProducerGkeOutput.initialize(this); + KmipDescribeServer.initialize(this); } /** * Initializes the fields of this object. @@ -74638,25 +149764,33 @@ var GatewayUpdateProducerGkeOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerGkeOutput, null, [{ + _createClass(KmipDescribeServer, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipDescribeServer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGkeOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGkeOutput} The populated GatewayUpdateProducerGkeOutput instance. + * @param {module:model/KmipDescribeServer} obj Optional instance to populate. + * @return {module:model/KmipDescribeServer} The populated KmipDescribeServer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerGkeOutput(); + obj = obj || new KmipDescribeServer(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -74664,20 +149798,34 @@ var GatewayUpdateProducerGkeOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerGkeOutput; + return KmipDescribeServer; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayUpdateProducerGkeOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerGkeOutput; +KmipDescribeServer.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipDescribeServer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipDescribeServer.prototype['uid-token'] = undefined; +var _default = KmipDescribeServer; exports["default"] = _default; /***/ }), -/***/ 94130: +/***/ 68059: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -74688,7 +149836,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -74699,21 +149847,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerHanaDb model module. - * @module model/GatewayUpdateProducerHanaDb - * @version 3.3.16 + * The KmipDescribeServerOutput model module. + * @module model/KmipDescribeServerOutput + * @version 3.6.3 */ -var GatewayUpdateProducerHanaDb = /*#__PURE__*/function () { +var KmipDescribeServerOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerHanaDb. - * gatewayUpdateProducerHanaDb is a command that updates hanadb producer - * @alias module:model/GatewayUpdateProducerHanaDb - * @param name {String} Producer name + * Constructs a new KmipDescribeServerOutput. + * @alias module:model/KmipDescribeServerOutput */ - function GatewayUpdateProducerHanaDb(name) { - _classCallCheck(this, GatewayUpdateProducerHanaDb); + function KmipDescribeServerOutput() { + _classCallCheck(this, KmipDescribeServerOutput); - GatewayUpdateProducerHanaDb.initialize(this, name); + KmipDescribeServerOutput.initialize(this); } /** * Initializes the fields of this object. @@ -74722,111 +149868,45 @@ var GatewayUpdateProducerHanaDb = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerHanaDb, null, [{ + _createClass(KmipDescribeServerOutput, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipDescribeServerOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerHanaDb} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerHanaDb} The populated GatewayUpdateProducerHanaDb instance. + * @param {module:model/KmipDescribeServerOutput} obj Optional instance to populate. + * @return {module:model/KmipDescribeServerOutput} The populated KmipDescribeServerOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerHanaDb(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('hana-dbname')) { - obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); - } - - if (data.hasOwnProperty('hanadb-create-statements')) { - obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); - } - - if (data.hasOwnProperty('hanadb-host')) { - obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); - } - - if (data.hasOwnProperty('hanadb-password')) { - obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); - } - - if (data.hasOwnProperty('hanadb-port')) { - obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); - } - - if (data.hasOwnProperty('hanadb-revocation-statements')) { - obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('hanadb-username')) { - obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } + obj = obj || new KmipDescribeServerOutput(); - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('ca_cert')) { + obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('certificate_issue_date')) { + obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('certificate_ttl_in_seconds')) { + obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); } } @@ -74834,152 +149914,45 @@ var GatewayUpdateProducerHanaDb = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerHanaDb; + return KmipDescribeServerOutput; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerHanaDb.prototype['delete_protection'] = undefined; -/** - * HanaDb Name - * @member {String} hana-dbname - */ - -GatewayUpdateProducerHanaDb.prototype['hana-dbname'] = undefined; -/** - * HanaDb Creation statements - * @member {String} hanadb-create-statements - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; -/** - * HanaDb Host - * @member {String} hanadb-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; -/** - * HanaDb Password - * @member {String} hanadb-password - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-password'] = undefined; -/** - * HanaDb Port - * @member {String} hanadb-port - * @default '443' - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-port'] = '443'; -/** - * HanaDb Revocation statements - * @member {String} hanadb-revocation-statements - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; -/** - * HanaDb Username - * @member {String} hanadb-username - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerHanaDb.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerHanaDb.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerHanaDb.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host + * @member {Boolean} active */ -GatewayUpdateProducerHanaDb.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ -GatewayUpdateProducerHanaDb.prototype['secure-access-web'] = false; +KmipDescribeServerOutput.prototype['active'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * @member {Array.} ca_cert */ -GatewayUpdateProducerHanaDb.prototype['tags'] = undefined; +KmipDescribeServerOutput.prototype['ca_cert'] = undefined; /** - * Target name - * @member {String} target-name + * @member {Date} certificate_issue_date */ -GatewayUpdateProducerHanaDb.prototype['target-name'] = undefined; +KmipDescribeServerOutput.prototype['certificate_issue_date'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Number} certificate_ttl_in_seconds */ -GatewayUpdateProducerHanaDb.prototype['token'] = undefined; +KmipDescribeServerOutput.prototype['certificate_ttl_in_seconds'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} hostname */ -GatewayUpdateProducerHanaDb.prototype['uid-token'] = undefined; +KmipDescribeServerOutput.prototype['hostname'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {String} root */ -GatewayUpdateProducerHanaDb.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerHanaDb; +KmipDescribeServerOutput.prototype['root'] = undefined; +var _default = KmipDescribeServerOutput; exports["default"] = _default; /***/ }), -/***/ 59500: +/***/ 5706: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -74990,9 +149963,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -75003,19 +149974,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerHanaDbOutput model module. - * @module model/GatewayUpdateProducerHanaDbOutput - * @version 3.3.16 + * The KmipListClients model module. + * @module model/KmipListClients + * @version 3.6.3 */ -var GatewayUpdateProducerHanaDbOutput = /*#__PURE__*/function () { +var KmipListClients = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerHanaDbOutput. - * @alias module:model/GatewayUpdateProducerHanaDbOutput + * Constructs a new KmipListClients. + * @alias module:model/KmipListClients */ - function GatewayUpdateProducerHanaDbOutput() { - _classCallCheck(this, GatewayUpdateProducerHanaDbOutput); + function KmipListClients() { + _classCallCheck(this, KmipListClients); - GatewayUpdateProducerHanaDbOutput.initialize(this); + KmipListClients.initialize(this); } /** * Initializes the fields of this object. @@ -75024,25 +149995,33 @@ var GatewayUpdateProducerHanaDbOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerHanaDbOutput, null, [{ + _createClass(KmipListClients, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipListClients from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerHanaDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerHanaDbOutput} The populated GatewayUpdateProducerHanaDbOutput instance. + * @param {module:model/KmipListClients} obj Optional instance to populate. + * @return {module:model/KmipListClients} The populated KmipListClients instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerHanaDbOutput(); + obj = obj || new KmipListClients(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -75050,20 +150029,34 @@ var GatewayUpdateProducerHanaDbOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerHanaDbOutput; + return KmipListClients; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayUpdateProducerHanaDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerHanaDbOutput; +KmipListClients.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipListClients.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipListClients.prototype['uid-token'] = undefined; +var _default = KmipListClients; exports["default"] = _default; /***/ }), -/***/ 573: +/***/ 83994: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -75074,7 +150067,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -75085,21 +150078,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerLdap model module. - * @module model/GatewayUpdateProducerLdap - * @version 3.3.16 + * The KmipMoveServer model module. + * @module model/KmipMoveServer + * @version 3.6.3 */ -var GatewayUpdateProducerLdap = /*#__PURE__*/function () { +var KmipMoveServer = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerLdap. - * gatewayUpdateProducerLdap is a command that updates ldap producer - * @alias module:model/GatewayUpdateProducerLdap - * @param name {String} Producer name + * Constructs a new KmipMoveServer. + * kmipMoveServer is a command that Moves the root location of the kmip server and all associated items to a new root location + * @alias module:model/KmipMoveServer + * @param newRoot {String} New root for the kmip server */ - function GatewayUpdateProducerLdap(name) { - _classCallCheck(this, GatewayUpdateProducerLdap); + function KmipMoveServer(newRoot) { + _classCallCheck(this, KmipMoveServer); - GatewayUpdateProducerLdap.initialize(this, name); + KmipMoveServer.initialize(this, newRoot); } /** * Initializes the fields of this object. @@ -75108,232 +150101,80 @@ var GatewayUpdateProducerLdap = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerLdap, null, [{ + _createClass(KmipMoveServer, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, newRoot) { + obj['new-root'] = newRoot; } /** - * Constructs a GatewayUpdateProducerLdap from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipMoveServer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerLdap} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerLdap} The populated GatewayUpdateProducerLdap instance. + * @param {module:model/KmipMoveServer} obj Optional instance to populate. + * @return {module:model/KmipMoveServer} The populated KmipMoveServer instance. */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerLdap(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('external-username')) { - obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); - } - - if (data.hasOwnProperty('group-dn')) { - obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); - } - - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerLdap; -}(); -/** - * Bind DN - * @member {String} bind-dn - */ - - -GatewayUpdateProducerLdap.prototype['bind-dn'] = undefined; -/** - * Bind DN Password - * @member {String} bind-dn-password - */ - -GatewayUpdateProducerLdap.prototype['bind-dn-password'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerLdap.prototype['delete_protection'] = undefined; -/** - * Externally provided username [true/false] - * @member {String} external-username - * @default 'false' - */ - -GatewayUpdateProducerLdap.prototype['external-username'] = 'false'; -/** - * Group DN which the temporary user should be added - * @member {String} group-dn - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipMoveServer(); -GatewayUpdateProducerLdap.prototype['group-dn'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -GatewayUpdateProducerLdap.prototype['json'] = false; -/** - * CA Certificate File Content - * @member {String} ldap-ca-cert - */ + if (data.hasOwnProperty('new-root')) { + obj['new-root'] = _ApiClient["default"].convertToType(data['new-root'], 'String'); + } -GatewayUpdateProducerLdap.prototype['ldap-ca-cert'] = undefined; -/** - * LDAP Server URL - * @member {String} ldap-url - */ + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -GatewayUpdateProducerLdap.prototype['ldap-url'] = undefined; -/** - * Producer name - * @member {String} name - */ + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -GatewayUpdateProducerLdap.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ + return obj; + } + }]); -GatewayUpdateProducerLdap.prototype['new-name'] = undefined; + return KmipMoveServer; +}(); /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayUpdateProducerLdap.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ -GatewayUpdateProducerLdap.prototype['tags'] = undefined; +KmipMoveServer.prototype['json'] = false; /** - * Target name - * @member {String} target-name + * New root for the kmip server + * @member {String} new-root */ -GatewayUpdateProducerLdap.prototype['target-name'] = undefined; +KmipMoveServer.prototype['new-root'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerLdap.prototype['token'] = undefined; -/** - * Token expiration - * @member {String} token-expiration - */ - -GatewayUpdateProducerLdap.prototype['token-expiration'] = undefined; +KmipMoveServer.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerLdap.prototype['uid-token'] = undefined; -/** - * User Attribute - * @member {String} user-attribute - */ - -GatewayUpdateProducerLdap.prototype['user-attribute'] = undefined; -/** - * User DN - * @member {String} user-dn - */ - -GatewayUpdateProducerLdap.prototype['user-dn'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerLdap.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerLdap; +KmipMoveServer.prototype['uid-token'] = undefined; +var _default = KmipMoveServer; exports["default"] = _default; /***/ }), -/***/ 39019: +/***/ 56175: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -75344,9 +150185,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -75357,19 +150196,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerLdapOutput model module. - * @module model/GatewayUpdateProducerLdapOutput - * @version 3.3.16 + * The KmipMoveServerOutput model module. + * @module model/KmipMoveServerOutput + * @version 3.6.3 */ -var GatewayUpdateProducerLdapOutput = /*#__PURE__*/function () { +var KmipMoveServerOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerLdapOutput. - * @alias module:model/GatewayUpdateProducerLdapOutput + * Constructs a new KmipMoveServerOutput. + * @alias module:model/KmipMoveServerOutput */ - function GatewayUpdateProducerLdapOutput() { - _classCallCheck(this, GatewayUpdateProducerLdapOutput); + function KmipMoveServerOutput() { + _classCallCheck(this, KmipMoveServerOutput); - GatewayUpdateProducerLdapOutput.initialize(this); + KmipMoveServerOutput.initialize(this); } /** * Initializes the fields of this object. @@ -75378,25 +150217,29 @@ var GatewayUpdateProducerLdapOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerLdapOutput, null, [{ + _createClass(KmipMoveServerOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipMoveServerOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerLdapOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerLdapOutput} The populated GatewayUpdateProducerLdapOutput instance. + * @param {module:model/KmipMoveServerOutput} obj Optional instance to populate. + * @return {module:model/KmipMoveServerOutput} The populated KmipMoveServerOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerLdapOutput(); + obj = obj || new KmipMoveServerOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('new_root')) { + obj['new_root'] = _ApiClient["default"].convertToType(data['new_root'], 'String'); + } + + if (data.hasOwnProperty('old_root')) { + obj['old_root'] = _ApiClient["default"].convertToType(data['old_root'], 'String'); } } @@ -75404,20 +150247,25 @@ var GatewayUpdateProducerLdapOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerLdapOutput; + return KmipMoveServerOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} new_root */ -GatewayUpdateProducerLdapOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerLdapOutput; +KmipMoveServerOutput.prototype['new_root'] = undefined; +/** + * @member {String} old_root + */ + +KmipMoveServerOutput.prototype['old_root'] = undefined; +var _default = KmipMoveServerOutput; exports["default"] = _default; /***/ }), -/***/ 58554: +/***/ 94729: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -75428,7 +150276,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -75439,21 +150287,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerMSSQL model module. - * @module model/GatewayUpdateProducerMSSQL - * @version 3.3.16 + * The KmipRenewClientCertificate model module. + * @module model/KmipRenewClientCertificate + * @version 3.6.3 */ -var GatewayUpdateProducerMSSQL = /*#__PURE__*/function () { +var KmipRenewClientCertificate = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerMSSQL. - * gatewayUpdateProducerMSSQL is a command that updates mssql producer - * @alias module:model/GatewayUpdateProducerMSSQL - * @param name {String} Producer name + * Constructs a new KmipRenewClientCertificate. + * @alias module:model/KmipRenewClientCertificate */ - function GatewayUpdateProducerMSSQL(name) { - _classCallCheck(this, GatewayUpdateProducerMSSQL); + function KmipRenewClientCertificate() { + _classCallCheck(this, KmipRenewClientCertificate); - GatewayUpdateProducerMSSQL.initialize(this, name); + KmipRenewClientCertificate.initialize(this); } /** * Initializes the fields of this object. @@ -75462,101 +150308,35 @@ var GatewayUpdateProducerMSSQL = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerMSSQL, null, [{ + _createClass(KmipRenewClientCertificate, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipRenewClientCertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMSSQL} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMSSQL} The populated GatewayUpdateProducerMSSQL instance. + * @param {module:model/KmipRenewClientCertificate} obj Optional instance to populate. + * @return {module:model/KmipRenewClientCertificate} The populated KmipRenewClientCertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerMSSQL(); + obj = obj || new KmipRenewClientCertificate(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mssql-create-statements')) { - obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); - } - - if (data.hasOwnProperty('mssql-dbname')) { - obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); - } - - if (data.hasOwnProperty('mssql-host')) { - obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); - } - - if (data.hasOwnProperty('mssql-password')) { - obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); - } - - if (data.hasOwnProperty('mssql-port')) { - obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); - } - - if (data.hasOwnProperty('mssql-revocation-statements')) { - obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('mssql-username')) { - obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -75564,162 +150344,50 @@ var GatewayUpdateProducerMSSQL = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerMSSQL; + return KmipRenewClientCertificate; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * @member {String} client-id */ -GatewayUpdateProducerMSSQL.prototype['delete_protection'] = undefined; +KmipRenewClientCertificate.prototype['client-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerMSSQL.prototype['json'] = false; -/** - * MSSQL Creation statements - * @member {String} mssql-create-statements - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-create-statements'] = undefined; -/** - * MSSQL Name - * @member {String} mssql-dbname - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-dbname'] = undefined; -/** - * MSSQL Host - * @member {String} mssql-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; -/** - * MSSQL Password - * @member {String} mssql-password - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-password'] = undefined; -/** - * MSSQL Port - * @member {String} mssql-port - * @default '1433' - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-port'] = '1433'; -/** - * MSSQL Revocation statements - * @member {String} mssql-revocation-statements - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; -/** - * MSSQL Username - * @member {String} mssql-username - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-username'] = undefined; +KmipRenewClientCertificate.prototype['json'] = false; /** - * Producer name * @member {String} name */ -GatewayUpdateProducerMSSQL.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerMSSQL.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerMSSQL.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerMSSQL.prototype['target-name'] = undefined; +KmipRenewClientCertificate.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerMSSQL.prototype['token'] = undefined; +KmipRenewClientCertificate.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerMSSQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerMSSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerMSSQL; +KmipRenewClientCertificate.prototype['uid-token'] = undefined; +var _default = KmipRenewClientCertificate; exports["default"] = _default; /***/ }), -/***/ 24635: +/***/ 75020: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -75730,9 +150398,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -75743,19 +150409,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerMSSQLOutput model module. - * @module model/GatewayUpdateProducerMSSQLOutput - * @version 3.3.16 + * The KmipRenewClientCertificateOutput model module. + * @module model/KmipRenewClientCertificateOutput + * @version 3.6.3 */ -var GatewayUpdateProducerMSSQLOutput = /*#__PURE__*/function () { +var KmipRenewClientCertificateOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerMSSQLOutput. - * @alias module:model/GatewayUpdateProducerMSSQLOutput + * Constructs a new KmipRenewClientCertificateOutput. + * @alias module:model/KmipRenewClientCertificateOutput */ - function GatewayUpdateProducerMSSQLOutput() { - _classCallCheck(this, GatewayUpdateProducerMSSQLOutput); + function KmipRenewClientCertificateOutput() { + _classCallCheck(this, KmipRenewClientCertificateOutput); - GatewayUpdateProducerMSSQLOutput.initialize(this); + KmipRenewClientCertificateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -75764,25 +150430,33 @@ var GatewayUpdateProducerMSSQLOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerMSSQLOutput, null, [{ + _createClass(KmipRenewClientCertificateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipRenewClientCertificateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMSSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMSSQLOutput} The populated GatewayUpdateProducerMSSQLOutput instance. + * @param {module:model/KmipRenewClientCertificateOutput} obj Optional instance to populate. + * @return {module:model/KmipRenewClientCertificateOutput} The populated KmipRenewClientCertificateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerMSSQLOutput(); + obj = obj || new KmipRenewClientCertificateOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } } @@ -75790,20 +150464,30 @@ var GatewayUpdateProducerMSSQLOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerMSSQLOutput; + return KmipRenewClientCertificateOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} certificate */ -GatewayUpdateProducerMSSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerMSSQLOutput; +KmipRenewClientCertificateOutput.prototype['certificate'] = undefined; +/** + * @member {String} id + */ + +KmipRenewClientCertificateOutput.prototype['id'] = undefined; +/** + * @member {String} key + */ + +KmipRenewClientCertificateOutput.prototype['key'] = undefined; +var _default = KmipRenewClientCertificateOutput; exports["default"] = _default; /***/ }), -/***/ 60203: +/***/ 45781: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -75814,7 +150498,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -75825,21 +150509,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerMongo model module. - * @module model/GatewayUpdateProducerMongo - * @version 3.3.16 + * The KmipRenewServerCertificate model module. + * @module model/KmipRenewServerCertificate + * @version 3.6.3 */ -var GatewayUpdateProducerMongo = /*#__PURE__*/function () { +var KmipRenewServerCertificate = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerMongo. - * gatewayUpdateProducerMongo is a command that updates either mongodb producer or mongodb atlas producer - * @alias module:model/GatewayUpdateProducerMongo - * @param name {String} Producer name + * Constructs a new KmipRenewServerCertificate. + * @alias module:model/KmipRenewServerCertificate */ - function GatewayUpdateProducerMongo(name) { - _classCallCheck(this, GatewayUpdateProducerMongo); + function KmipRenewServerCertificate() { + _classCallCheck(this, KmipRenewServerCertificate); - GatewayUpdateProducerMongo.initialize(this, name); + KmipRenewServerCertificate.initialize(this); } /** * Initializes the fields of this object. @@ -75848,117 +150530,27 @@ var GatewayUpdateProducerMongo = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerMongo, null, [{ + _createClass(KmipRenewServerCertificate, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerMongo from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipRenewServerCertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMongo} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMongo} The populated GatewayUpdateProducerMongo instance. + * @param {module:model/KmipRenewServerCertificate} obj Optional instance to populate. + * @return {module:model/KmipRenewServerCertificate} The populated KmipRenewServerCertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerMongo(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + obj = obj || new KmipRenewServerCertificate(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-custom-data')) { - obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); - } - - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); - } - - if (data.hasOwnProperty('mongodb-host-port')) { - obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); - } - - if (data.hasOwnProperty('mongodb-name')) { - obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); - } - - if (data.hasOwnProperty('mongodb-password')) { - obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); - } - - if (data.hasOwnProperty('mongodb-roles')) { - obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); - } - - if (data.hasOwnProperty('mongodb-server-uri')) { - obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); - } - - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); - } - - if (data.hasOwnProperty('mongodb-username')) { - obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -75966,185 +150558,40 @@ var GatewayUpdateProducerMongo = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerMongo; + return KmipRenewServerCertificate; }(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerMongo.prototype['delete_protection'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerMongo.prototype['json'] = false; -/** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key - */ - -GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; -/** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key - */ - -GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; -/** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id - */ - -GatewayUpdateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; -/** - * MongoDB custom data - * @member {String} mongodb-custom-data - */ - -GatewayUpdateProducerMongo.prototype['mongodb-custom-data'] = undefined; -/** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db - */ - -GatewayUpdateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; -/** - * MongoDB server host and port - * @member {String} mongodb-host-port - */ - -GatewayUpdateProducerMongo.prototype['mongodb-host-port'] = undefined; -/** - * MongoDB Name - * @member {String} mongodb-name - */ - -GatewayUpdateProducerMongo.prototype['mongodb-name'] = undefined; -/** - * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters - * @member {String} mongodb-password - */ - -GatewayUpdateProducerMongo.prototype['mongodb-password'] = undefined; -/** - * MongoDB Roles - * @member {String} mongodb-roles - * @default '[]' - */ - -GatewayUpdateProducerMongo.prototype['mongodb-roles'] = '[]'; -/** - * MongoDB server URI - * @member {String} mongodb-server-uri - */ - -GatewayUpdateProducerMongo.prototype['mongodb-server-uri'] = undefined; -/** - * MongoDB server URI options - * @member {String} mongodb-uri-options - */ - -GatewayUpdateProducerMongo.prototype['mongodb-uri-options'] = undefined; -/** - * MongoDB server username - * @member {String} mongodb-username - */ - -GatewayUpdateProducerMongo.prototype['mongodb-username'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerMongo.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerMongo.prototype['new-name'] = undefined; -/** - * Encrypt producer with following key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerMongo.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerMongo.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerMongo.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerMongo.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerMongo.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ -GatewayUpdateProducerMongo.prototype['target-name'] = undefined; +KmipRenewServerCertificate.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerMongo.prototype['token'] = undefined; +KmipRenewServerCertificate.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerMongo.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerMongo.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerMongo; +KmipRenewServerCertificate.prototype['uid-token'] = undefined; +var _default = KmipRenewServerCertificate; exports["default"] = _default; /***/ }), -/***/ 89024: +/***/ 48640: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -76155,9 +150602,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -76168,19 +150613,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerMongoOutput model module. - * @module model/GatewayUpdateProducerMongoOutput - * @version 3.3.16 + * The KmipRenewServerCertificateOutput model module. + * @module model/KmipRenewServerCertificateOutput + * @version 3.6.3 */ -var GatewayUpdateProducerMongoOutput = /*#__PURE__*/function () { +var KmipRenewServerCertificateOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerMongoOutput. - * @alias module:model/GatewayUpdateProducerMongoOutput + * Constructs a new KmipRenewServerCertificateOutput. + * @alias module:model/KmipRenewServerCertificateOutput */ - function GatewayUpdateProducerMongoOutput() { - _classCallCheck(this, GatewayUpdateProducerMongoOutput); + function KmipRenewServerCertificateOutput() { + _classCallCheck(this, KmipRenewServerCertificateOutput); - GatewayUpdateProducerMongoOutput.initialize(this); + KmipRenewServerCertificateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -76189,25 +150634,25 @@ var GatewayUpdateProducerMongoOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerMongoOutput, null, [{ + _createClass(KmipRenewServerCertificateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipRenewServerCertificateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMongoOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMongoOutput} The populated GatewayUpdateProducerMongoOutput instance. + * @param {module:model/KmipRenewServerCertificateOutput} obj Optional instance to populate. + * @return {module:model/KmipRenewServerCertificateOutput} The populated KmipRenewServerCertificateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerMongoOutput(); + obj = obj || new KmipRenewServerCertificateOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('ca_cert')) { + obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], 'String'); } } @@ -76215,20 +150660,20 @@ var GatewayUpdateProducerMongoOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerMongoOutput; + return KmipRenewServerCertificateOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} ca_cert */ -GatewayUpdateProducerMongoOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerMongoOutput; +KmipRenewServerCertificateOutput.prototype['ca_cert'] = undefined; +var _default = KmipRenewServerCertificateOutput; exports["default"] = _default; /***/ }), -/***/ 42729: +/***/ 85466: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -76239,7 +150684,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -76250,21 +150695,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerMySQL model module. - * @module model/GatewayUpdateProducerMySQL - * @version 3.3.16 + * The KmipServerSetup model module. + * @module model/KmipServerSetup + * @version 3.6.3 */ -var GatewayUpdateProducerMySQL = /*#__PURE__*/function () { +var KmipServerSetup = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerMySQL. - * gatewayUpdateProducerMySQL is a command that updates mysql producer - * @alias module:model/GatewayUpdateProducerMySQL - * @param name {String} Producer name + * Constructs a new KmipServerSetup. + * @alias module:model/KmipServerSetup + * @param hostname {String} Hostname + * @param root {String} Root path of KMIP Resources */ - function GatewayUpdateProducerMySQL(name) { - _classCallCheck(this, GatewayUpdateProducerMySQL); + function KmipServerSetup(hostname, root) { + _classCallCheck(this, KmipServerSetup); - GatewayUpdateProducerMySQL.initialize(this, name); + KmipServerSetup.initialize(this, hostname, root); } /** * Initializes the fields of this object. @@ -76273,111 +150718,40 @@ var GatewayUpdateProducerMySQL = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerMySQL, null, [{ + _createClass(KmipServerSetup, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, hostname, root) { + obj['hostname'] = hostname; + obj['root'] = root; } /** - * Constructs a GatewayUpdateProducerMySQL from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipServerSetup from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMySQL} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMySQL} The populated GatewayUpdateProducerMySQL instance. + * @param {module:model/KmipServerSetup} obj Optional instance to populate. + * @return {module:model/KmipServerSetup} The populated KmipServerSetup instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerMySQL(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } + obj = obj || new KmipServerSetup(); - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mysql-dbname')) { - obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); - } - - if (data.hasOwnProperty('mysql-host')) { - obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); - } - - if (data.hasOwnProperty('mysql-password')) { - obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); - } - - if (data.hasOwnProperty('mysql-port')) { - obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); - } - - if (data.hasOwnProperty('mysql-revocation-statements')) { - obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('mysql-screation-statements')) { - obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); - } - - if (data.hasOwnProperty('mysql-username')) { - obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); } if (data.hasOwnProperty('token')) { @@ -76387,181 +150761,176 @@ var GatewayUpdateProducerMySQL = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerMySQL; + return KmipServerSetup; }(); /** - * (Optional) DB server certificates - * @member {String} db-server-certificates + * Server certificate TTL in days + * @member {Number} certificate-ttl + * @default 90 */ -GatewayUpdateProducerMySQL.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -GatewayUpdateProducerMySQL.prototype['db-server-name'] = undefined; +KmipServerSetup.prototype['certificate-ttl'] = 90; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Hostname + * @member {String} hostname */ -GatewayUpdateProducerMySQL.prototype['delete_protection'] = undefined; +KmipServerSetup.prototype['hostname'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerMySQL.prototype['json'] = false; +KmipServerSetup.prototype['json'] = false; /** - * MySQL DB Name - * @member {String} mysql-dbname + * Root path of KMIP Resources + * @member {String} root */ -GatewayUpdateProducerMySQL.prototype['mysql-dbname'] = undefined; +KmipServerSetup.prototype['root'] = undefined; /** - * MySQL Host - * @member {String} mysql-host - * @default '127.0.0.1' + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GatewayUpdateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; +KmipServerSetup.prototype['token'] = undefined; /** - * MySQL Password - * @member {String} mysql-password + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayUpdateProducerMySQL.prototype['mysql-password'] = undefined; -/** - * MySQL Port - * @member {String} mysql-port - * @default '3306' - */ +KmipServerSetup.prototype['uid-token'] = undefined; +var _default = KmipServerSetup; +exports["default"] = _default; -GatewayUpdateProducerMySQL.prototype['mysql-port'] = '3306'; -/** - * MySQL Revocation statements - * @member {String} mysql-revocation-statements - */ +/***/ }), -GatewayUpdateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; -/** - * MySQL Creation statements - * @member {String} mysql-screation-statements - */ +/***/ 11340: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -GatewayUpdateProducerMySQL.prototype['mysql-screation-statements'] = undefined; -/** - * MySQL Username - * @member {String} mysql-username - */ +"use strict"; -GatewayUpdateProducerMySQL.prototype['mysql-username'] = undefined; -/** - * Producer name - * @member {String} name - */ -GatewayUpdateProducerMySQL.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -GatewayUpdateProducerMySQL.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -GatewayUpdateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -GatewayUpdateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -GatewayUpdateProducerMySQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -GatewayUpdateProducerMySQL.prototype['secure-access-host'] = undefined; /** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false + * The KmipSetServerState model module. + * @module model/KmipSetServerState + * @version 3.6.3 */ +var KmipSetServerState = /*#__PURE__*/function () { + /** + * Constructs a new KmipSetServerState. + * kmipSetServerState is a command that sets the environment state to active/inactive. + * @alias module:model/KmipSetServerState + * @param state {String} + */ + function KmipSetServerState(state) { + _classCallCheck(this, KmipSetServerState); + + KmipSetServerState.initialize(this, state); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipSetServerState, null, [{ + key: "initialize", + value: function initialize(obj, state) { + obj['state'] = state; + } + /** + * Constructs a KmipSetServerState from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipSetServerState} obj Optional instance to populate. + * @return {module:model/KmipSetServerState} The populated KmipSetServerState instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipSetServerState(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); -GatewayUpdateProducerMySQL.prototype['secure-access-web'] = false; + return KmipSetServerState; +}(); /** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl + * Set output format to JSON + * @member {Boolean} json * @default false */ -GatewayUpdateProducerMySQL.prototype['ssl'] = false; -/** - * SSL connection certificate - * @member {String} ssl-certificate - */ - -GatewayUpdateProducerMySQL.prototype['ssl-certificate'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ -GatewayUpdateProducerMySQL.prototype['tags'] = undefined; +KmipSetServerState.prototype['json'] = false; /** - * Target name - * @member {String} target-name + * @member {String} state */ -GatewayUpdateProducerMySQL.prototype['target-name'] = undefined; +KmipSetServerState.prototype['state'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerMySQL.prototype['token'] = undefined; +KmipSetServerState.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerMySQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerMySQL.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerMySQL; +KmipSetServerState.prototype['uid-token'] = undefined; +var _default = KmipSetServerState; exports["default"] = _default; /***/ }), -/***/ 87739: +/***/ 12269: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -76572,9 +150941,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -76585,19 +150952,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerMySQLOutput model module. - * @module model/GatewayUpdateProducerMySQLOutput - * @version 3.3.16 + * The KmipSetServerStateOutput model module. + * @module model/KmipSetServerStateOutput + * @version 3.6.3 */ -var GatewayUpdateProducerMySQLOutput = /*#__PURE__*/function () { +var KmipSetServerStateOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerMySQLOutput. - * @alias module:model/GatewayUpdateProducerMySQLOutput + * Constructs a new KmipSetServerStateOutput. + * @alias module:model/KmipSetServerStateOutput */ - function GatewayUpdateProducerMySQLOutput() { - _classCallCheck(this, GatewayUpdateProducerMySQLOutput); + function KmipSetServerStateOutput() { + _classCallCheck(this, KmipSetServerStateOutput); - GatewayUpdateProducerMySQLOutput.initialize(this); + KmipSetServerStateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -76606,25 +150973,25 @@ var GatewayUpdateProducerMySQLOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerMySQLOutput, null, [{ + _createClass(KmipSetServerStateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a KmipSetServerStateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMySQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMySQLOutput} The populated GatewayUpdateProducerMySQLOutput instance. + * @param {module:model/KmipSetServerStateOutput} obj Optional instance to populate. + * @return {module:model/KmipSetServerStateOutput} The populated KmipSetServerStateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerMySQLOutput(); + obj = obj || new KmipSetServerStateOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); } } @@ -76632,20 +150999,20 @@ var GatewayUpdateProducerMySQLOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerMySQLOutput; + return KmipSetServerStateOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Boolean} is_active */ -GatewayUpdateProducerMySQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerMySQLOutput; +KmipSetServerStateOutput.prototype['is_active'] = undefined; +var _default = KmipSetServerStateOutput; exports["default"] = _default; /***/ }), -/***/ 56986: +/***/ 83308: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -76656,7 +151023,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -76667,21 +151034,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerNativeK8S model module. - * @module model/GatewayUpdateProducerNativeK8S - * @version 3.3.16 + * The KubernetesAccessRules model module. + * @module model/KubernetesAccessRules + * @version 3.6.3 */ -var GatewayUpdateProducerNativeK8S = /*#__PURE__*/function () { +var KubernetesAccessRules = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerNativeK8S. - * gatewayUpdateProducerNativeK8S is a command that updates k8s producer - * @alias module:model/GatewayUpdateProducerNativeK8S - * @param name {String} Producer name + * Constructs a new KubernetesAccessRules. + * @alias module:model/KubernetesAccessRules */ - function GatewayUpdateProducerNativeK8S(name) { - _classCallCheck(this, GatewayUpdateProducerNativeK8S); + function KubernetesAccessRules() { + _classCallCheck(this, KubernetesAccessRules); - GatewayUpdateProducerNativeK8S.initialize(this, name); + KubernetesAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -76690,139 +151055,179 @@ var GatewayUpdateProducerNativeK8S = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerNativeK8S, null, [{ + _createClass(KubernetesAccessRules, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. + * Constructs a KubernetesAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerNativeK8S} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerNativeK8S} The populated GatewayUpdateProducerNativeK8S instance. + * @param {module:model/KubernetesAccessRules} obj Optional instance to populate. + * @return {module:model/KubernetesAccessRules} The populated KubernetesAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerNativeK8S(); + obj = obj || new KubernetesAccessRules(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } - if (data.hasOwnProperty('k8s-allowed-namespaces')) { - obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + if (data.hasOwnProperty('bound_namespaces')) { + obj['bound_namespaces'] = _ApiClient["default"].convertToType(data['bound_namespaces'], ['String']); } - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + if (data.hasOwnProperty('bound_pod_names')) { + obj['bound_pod_names'] = _ApiClient["default"].convertToType(data['bound_pod_names'], ['String']); } - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('bound_service_account_names')) { + obj['bound_service_account_names'] = _ApiClient["default"].convertToType(data['bound_service_account_names'], ['String']); } - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + if (data.hasOwnProperty('gen_key_pair')) { + obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); } - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + if (data.hasOwnProperty('pub_key')) { + obj['pub_key'] = _ApiClient["default"].convertToType(data['pub_key'], 'String'); } + } - if (data.hasOwnProperty('k8s-predefined-role-name')) { - obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('k8s-predefined-role-type')) { - obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); - } + return KubernetesAccessRules; +}(); +/** + * @member {String} alg + */ - if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { - obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); - } - if (data.hasOwnProperty('k8s-service-account')) { - obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); - } +KubernetesAccessRules.prototype['alg'] = undefined; +/** + * Audience is an optional Kubernetes jwt claim to verify + * @member {String} audience + */ - if (data.hasOwnProperty('k8s-service-account-type')) { - obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); - } +KubernetesAccessRules.prototype['audience'] = undefined; +/** + * A list of namespaces that the authentication is restricted to. + * @member {Array.} bound_namespaces + */ - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +KubernetesAccessRules.prototype['bound_namespaces'] = undefined; +/** + * A list of pods names that the authentication is restricted to. + * @member {Array.} bound_pod_names + */ - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } +KubernetesAccessRules.prototype['bound_pod_names'] = undefined; +/** + * A list of service account names that the authentication is restricted to. + * @member {Array.} bound_service_account_names + */ - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } +KubernetesAccessRules.prototype['bound_service_account_names'] = undefined; +/** + * Generate public/private key (the private key is required for the K8S Auth Config in the Akeyless Gateway) + * @member {String} gen_key_pair + */ - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } +KubernetesAccessRules.prototype['gen_key_pair'] = undefined; +/** + * The public key value of the Kubernetes auth method configuration in the Akeyless Gateway. + * @member {String} pub_key + */ - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } +KubernetesAccessRules.prototype['pub_key'] = undefined; +var _default = KubernetesAccessRules; +exports["default"] = _default; - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } +/***/ }), - if (data.hasOwnProperty('secure-access-dashboard-url')) { - obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); - } +/***/ 65975: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } +"use strict"; - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LDAPAccessRules model module. + * @module model/LDAPAccessRules + * @version 3.6.3 + */ +var LDAPAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new LDAPAccessRules. + * @alias module:model/LDAPAccessRules + */ + function LDAPAccessRules() { + _classCallCheck(this, LDAPAccessRules); + + LDAPAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LDAPAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LDAPAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LDAPAccessRules} obj Optional instance to populate. + * @return {module:model/LDAPAccessRules} The populated LDAPAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LDAPAccessRules(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('gen_key_pair')) { + obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); } - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); } } @@ -76830,194 +151235,133 @@ var GatewayUpdateProducerNativeK8S = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerNativeK8S; + return LDAPAccessRules; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * @member {String} alg */ -GatewayUpdateProducerNativeK8S.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerNativeK8S.prototype['json'] = false; +LDAPAccessRules.prototype['alg'] = undefined; /** - * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-allowed-namespaces + * Generate public/private key (the private key is required for the LDAP Auth Config in the Akeyless Gateway) + * @member {String} gen_key_pair */ -GatewayUpdateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; +LDAPAccessRules.prototype['gen_key_pair'] = undefined; /** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert + * The public key value of LDAP. + * @member {String} key */ -GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; +LDAPAccessRules.prototype['key'] = undefined; /** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint + * A unique identifier to distinguish different users + * @member {String} unique_identifier */ -GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; -/** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token - */ +LDAPAccessRules.prototype['unique_identifier'] = undefined; +var _default = LDAPAccessRules; +exports["default"] = _default; -GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; -/** - * K8S Namespace where the ServiceAccount exists. - * @member {String} k8s-namespace - */ +/***/ }), -GatewayUpdateProducerNativeK8S.prototype['k8s-namespace'] = undefined; -/** - * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-name - */ +/***/ 51347: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; -/** - * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-type - */ +"use strict"; -GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; -/** - * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-rolebinding-yaml-def - */ -GatewayUpdateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; -/** - * K8S ServiceAccount to extract token from. - * @member {String} k8s-service-account - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -GatewayUpdateProducerNativeK8S.prototype['k8s-service-account'] = undefined; -/** - * K8S ServiceAccount type [fixed, dynamic]. - * @member {String} k8s-service-account-type - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -GatewayUpdateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; -/** - * Producer name - * @member {String} name - */ +var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(92276)); -GatewayUpdateProducerNativeK8S.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ +var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(1370)); -GatewayUpdateProducerNativeK8S.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -GatewayUpdateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -GatewayUpdateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -GatewayUpdateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -GatewayUpdateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; /** - * The K8s dashboard url - * @member {String} secure-access-dashboard-url + * The LastConfigChange model module. + * @module model/LastConfigChange + * @version 3.6.3 */ +var LastConfigChange = /*#__PURE__*/function () { + /** + * Constructs a new LastConfigChange. + * @alias module:model/LastConfigChange + */ + function LastConfigChange() { + _classCallCheck(this, LastConfigChange); -GatewayUpdateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ + LastConfigChange.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -GatewayUpdateProducerNativeK8S.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ -GatewayUpdateProducerNativeK8S.prototype['secure-access-web'] = false; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ + _createClass(LastConfigChange, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LastConfigChange from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LastConfigChange} obj Optional instance to populate. + * @return {module:model/LastConfigChange} The populated LastConfigChange instance. + */ -GatewayUpdateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LastConfigChange(); -GatewayUpdateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ + if (data.hasOwnProperty('last_k8s_auths_change')) { + obj['last_k8s_auths_change'] = _K8SAuthsConfigLastChange["default"].constructFromObject(data['last_k8s_auths_change']); + } -GatewayUpdateProducerNativeK8S.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ + if (data.hasOwnProperty('last_migrations_change')) { + obj['last_migrations_change'] = _MigrationsConfigLastChange["default"].constructFromObject(data['last_migrations_change']); + } + } -GatewayUpdateProducerNativeK8S.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ + return obj; + } + }]); -GatewayUpdateProducerNativeK8S.prototype['token'] = undefined; + return LastConfigChange; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/K8SAuthsConfigLastChange} last_k8s_auths_change */ -GatewayUpdateProducerNativeK8S.prototype['uid-token'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ -GatewayUpdateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; +LastConfigChange.prototype['last_k8s_auths_change'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {module:model/MigrationsConfigLastChange} last_migrations_change */ -GatewayUpdateProducerNativeK8S.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerNativeK8S; +LastConfigChange.prototype['last_migrations_change'] = undefined; +var _default = LastConfigChange; exports["default"] = _default; /***/ }), -/***/ 47169: +/***/ 67591: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -77028,9 +151372,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(6591)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -77041,19 +151385,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerNativeK8SOutput model module. - * @module model/GatewayUpdateProducerNativeK8SOutput - * @version 3.3.16 + * The LastStatusInfo model module. + * @module model/LastStatusInfo + * @version 3.6.3 */ -var GatewayUpdateProducerNativeK8SOutput = /*#__PURE__*/function () { +var LastStatusInfo = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerNativeK8SOutput. - * @alias module:model/GatewayUpdateProducerNativeK8SOutput + * Constructs a new LastStatusInfo. + * @alias module:model/LastStatusInfo */ - function GatewayUpdateProducerNativeK8SOutput() { - _classCallCheck(this, GatewayUpdateProducerNativeK8SOutput); + function LastStatusInfo() { + _classCallCheck(this, LastStatusInfo); - GatewayUpdateProducerNativeK8SOutput.initialize(this); + LastStatusInfo.initialize(this); } /** * Initializes the fields of this object. @@ -77062,25 +151406,33 @@ var GatewayUpdateProducerNativeK8SOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerNativeK8SOutput, null, [{ + _createClass(LastStatusInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a LastStatusInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerNativeK8SOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerNativeK8SOutput} The populated GatewayUpdateProducerNativeK8SOutput instance. + * @param {module:model/LastStatusInfo} obj Optional instance to populate. + * @return {module:model/LastStatusInfo} The populated LastStatusInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerNativeK8SOutput(); + obj = obj || new LastStatusInfo(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('migrations_status')) { + obj['migrations_status'] = _MigrationStatus["default"].constructFromObject(data['migrations_status']); + } + + if (data.hasOwnProperty('producers_errors')) { + obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); + } + + if (data.hasOwnProperty('was_migrations_copied_to_new_table')) { + obj['was_migrations_copied_to_new_table'] = _ApiClient["default"].convertToType(data['was_migrations_copied_to_new_table'], 'Boolean'); } } @@ -77088,20 +151440,31 @@ var GatewayUpdateProducerNativeK8SOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerNativeK8SOutput; + return LastStatusInfo; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {module:model/MigrationStatus} migrations_status */ -GatewayUpdateProducerNativeK8SOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerNativeK8SOutput; +LastStatusInfo.prototype['migrations_status'] = undefined; +/** + * @member {Object} producers_errors + */ + +LastStatusInfo.prototype['producers_errors'] = undefined; +/** + * flag to indicate migrationStatus copied to new table + * @member {Boolean} was_migrations_copied_to_new_table + */ + +LastStatusInfo.prototype['was_migrations_copied_to_new_table'] = undefined; +var _default = LastStatusInfo; exports["default"] = _default; /***/ }), -/***/ 46969: +/***/ 44147: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -77112,7 +151475,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -77123,21 +151486,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerOracleDb model module. - * @module model/GatewayUpdateProducerOracleDb - * @version 3.3.16 + * The LdapConfigPart model module. + * @module model/LdapConfigPart + * @version 3.6.3 */ -var GatewayUpdateProducerOracleDb = /*#__PURE__*/function () { +var LdapConfigPart = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerOracleDb. - * gatewayUpdateProducerOracleDb is a command that updates oracle db producer - * @alias module:model/GatewayUpdateProducerOracleDb - * @param name {String} Producer name + * Constructs a new LdapConfigPart. + * @alias module:model/LdapConfigPart */ - function GatewayUpdateProducerOracleDb(name) { - _classCallCheck(this, GatewayUpdateProducerOracleDb); + function LdapConfigPart() { + _classCallCheck(this, LdapConfigPart); - GatewayUpdateProducerOracleDb.initialize(this, name); + LdapConfigPart.initialize(this); } /** * Initializes the fields of this object. @@ -77146,265 +151507,466 @@ var GatewayUpdateProducerOracleDb = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerOracleDb, null, [{ + _createClass(LdapConfigPart, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. + * Constructs a LdapConfigPart from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerOracleDb} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerOracleDb} The populated GatewayUpdateProducerOracleDb instance. + * @param {module:model/LdapConfigPart} obj Optional instance to populate. + * @return {module:model/LdapConfigPart} The populated LdapConfigPart instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerOracleDb(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } + obj = obj || new LdapConfigPart(); - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + if (data.hasOwnProperty('ldap_access_id')) { + obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('ldap_anonymous_search')) { + obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('ldap_cert')) { + obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); } - if (data.hasOwnProperty('oracle-host')) { - obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); + if (data.hasOwnProperty('ldap_enable')) { + obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); } - if (data.hasOwnProperty('oracle-password')) { - obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); + if (data.hasOwnProperty('ldap_group_attr')) { + obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); } - if (data.hasOwnProperty('oracle-port')) { - obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); + if (data.hasOwnProperty('ldap_group_dn')) { + obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); } - if (data.hasOwnProperty('oracle-screation-statements')) { - obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); + if (data.hasOwnProperty('ldap_group_filter')) { + obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); } - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + if (data.hasOwnProperty('ldap_private_key')) { + obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); } - if (data.hasOwnProperty('oracle-username')) { - obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); } - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); } - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + if (data.hasOwnProperty('ldap_user_attr')) { + obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); } - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + if (data.hasOwnProperty('ldap_user_dn')) { + obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); } + } - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } + return obj; + } + }]); - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } + return LdapConfigPart; +}(); +/** + * @member {String} ldap_access_id + */ - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } +LdapConfigPart.prototype['ldap_access_id'] = undefined; +/** + * @member {Boolean} ldap_anonymous_search + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +LdapConfigPart.prototype['ldap_anonymous_search'] = undefined; +/** + * @member {String} ldap_bind_dn + */ - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } +LdapConfigPart.prototype['ldap_bind_dn'] = undefined; +/** + * @member {String} ldap_bind_password + */ - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } +LdapConfigPart.prototype['ldap_bind_password'] = undefined; +/** + * @member {String} ldap_cert + */ - return obj; - } - }]); +LdapConfigPart.prototype['ldap_cert'] = undefined; +/** + * @member {Boolean} ldap_enable + */ - return GatewayUpdateProducerOracleDb; -}(); +LdapConfigPart.prototype['ldap_enable'] = undefined; /** - * (Optional) DB server certificates - * @member {String} db-server-certificates + * @member {String} ldap_group_attr */ +LdapConfigPart.prototype['ldap_group_attr'] = undefined; +/** + * @member {String} ldap_group_dn + */ -GatewayUpdateProducerOracleDb.prototype['db-server-certificates'] = undefined; +LdapConfigPart.prototype['ldap_group_dn'] = undefined; /** - * (Optional) Server name for certificate verification - * @member {String} db-server-name + * @member {String} ldap_group_filter */ -GatewayUpdateProducerOracleDb.prototype['db-server-name'] = undefined; +LdapConfigPart.prototype['ldap_group_filter'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * @member {String} ldap_private_key */ -GatewayUpdateProducerOracleDb.prototype['delete_protection'] = undefined; +LdapConfigPart.prototype['ldap_private_key'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} ldap_token_expiration */ -GatewayUpdateProducerOracleDb.prototype['json'] = false; +LdapConfigPart.prototype['ldap_token_expiration'] = undefined; /** - * Producer name - * @member {String} name + * @member {String} ldap_url */ -GatewayUpdateProducerOracleDb.prototype['name'] = undefined; +LdapConfigPart.prototype['ldap_url'] = undefined; /** - * Producer name - * @member {String} new-name + * @member {String} ldap_user_attr */ -GatewayUpdateProducerOracleDb.prototype['new-name'] = undefined; +LdapConfigPart.prototype['ldap_user_attr'] = undefined; /** - * Oracle Host - * @member {String} oracle-host - * @default '127.0.0.1' + * @member {String} ldap_user_dn */ -GatewayUpdateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; +LdapConfigPart.prototype['ldap_user_dn'] = undefined; +var _default = LdapConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 81583: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Oracle Password - * @member {String} oracle-password + * The LdapTargetDetails model module. + * @module model/LdapTargetDetails + * @version 3.6.3 */ +var LdapTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new LdapTargetDetails. + * LdapTargetDetails + * @alias module:model/LdapTargetDetails + */ + function LdapTargetDetails() { + _classCallCheck(this, LdapTargetDetails); -GatewayUpdateProducerOracleDb.prototype['oracle-password'] = undefined; + LdapTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LdapTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LdapTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LdapTargetDetails} obj Optional instance to populate. + * @return {module:model/LdapTargetDetails} The populated LdapTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LdapTargetDetails(); + + if (data.hasOwnProperty('implementation_type')) { + obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); + } + + if (data.hasOwnProperty('ldap_audience')) { + obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); + } + + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); + } + + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); + } + + if (data.hasOwnProperty('ldap_certificate')) { + obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); + } + + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + } + + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + } + } + + return obj; + } + }]); + + return LdapTargetDetails; +}(); /** - * Oracle Port - * @member {String} oracle-port - * @default '1521' + * @member {String} implementation_type */ -GatewayUpdateProducerOracleDb.prototype['oracle-port'] = '1521'; + +LdapTargetDetails.prototype['implementation_type'] = undefined; /** - * Oracle Creation statements - * @member {String} oracle-screation-statements + * @member {String} ldap_audience */ -GatewayUpdateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; +LdapTargetDetails.prototype['ldap_audience'] = undefined; /** - * Oracle DB Name - * @member {String} oracle-service-name + * @member {String} ldap_bind_dn */ -GatewayUpdateProducerOracleDb.prototype['oracle-service-name'] = undefined; +LdapTargetDetails.prototype['ldap_bind_dn'] = undefined; /** - * Oracle Username - * @member {String} oracle-username + * @member {String} ldap_bind_password */ -GatewayUpdateProducerOracleDb.prototype['oracle-username'] = undefined; +LdapTargetDetails.prototype['ldap_bind_password'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * @member {String} ldap_certificate */ -GatewayUpdateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; +LdapTargetDetails.prototype['ldap_certificate'] = undefined; /** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer + * @member {String} ldap_token_expiration */ -GatewayUpdateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +LdapTargetDetails.prototype['ldap_token_expiration'] = undefined; /** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - * @default 'false' + * @member {String} ldap_url */ -GatewayUpdateProducerOracleDb.prototype['secure-access-enable'] = 'false'; +LdapTargetDetails.prototype['ldap_url'] = undefined; +var _default = LdapTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 54801: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host + * The LeadershipConfigPart model module. + * @module model/LeadershipConfigPart + * @version 3.6.3 */ +var LeadershipConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new LeadershipConfigPart. + * @alias module:model/LeadershipConfigPart + */ + function LeadershipConfigPart() { + _classCallCheck(this, LeadershipConfigPart); -GatewayUpdateProducerOracleDb.prototype['secure-access-host'] = undefined; + LeadershipConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LeadershipConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LeadershipConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LeadershipConfigPart} obj Optional instance to populate. + * @return {module:model/LeadershipConfigPart} The populated LeadershipConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LeadershipConfigPart(); + + if (data.hasOwnProperty('open_leadership')) { + obj['open_leadership'] = _ApiClient["default"].convertToType(data['open_leadership'], ['Number']); + } + } + + return obj; + } + }]); + + return LeadershipConfigPart; +}(); /** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false + * @member {Array.} open_leadership */ -GatewayUpdateProducerOracleDb.prototype['secure-access-web'] = false; + +LeadershipConfigPart.prototype['open_leadership'] = undefined; +var _default = LeadershipConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 47260: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Add tags attached to this object - * @member {Array.} tags + * The LinkedDetails model module. + * @module model/LinkedDetails + * @version 3.6.3 */ +var LinkedDetails = /*#__PURE__*/function () { + /** + * Constructs a new LinkedDetails. + * @alias module:model/LinkedDetails + */ + function LinkedDetails() { + _classCallCheck(this, LinkedDetails); + + LinkedDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LinkedDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LinkedDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LinkedDetails} obj Optional instance to populate. + * @return {module:model/LinkedDetails} The populated LinkedDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LinkedDetails(); -GatewayUpdateProducerOracleDb.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { + 'String': 'String' + }); + } + } -GatewayUpdateProducerOracleDb.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ + return obj; + } + }]); -GatewayUpdateProducerOracleDb.prototype['token'] = undefined; + return LinkedDetails; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Object.} hosts */ -GatewayUpdateProducerOracleDb.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ -GatewayUpdateProducerOracleDb.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerOracleDb; +LinkedDetails.prototype['hosts'] = undefined; +var _default = LinkedDetails; exports["default"] = _default; /***/ }), -/***/ 57452: +/***/ 16023: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -77415,9 +151977,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -77428,19 +151988,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerOracleDbOutput model module. - * @module model/GatewayUpdateProducerOracleDbOutput - * @version 3.3.16 + * The LinkedTargetDetails model module. + * @module model/LinkedTargetDetails + * @version 3.6.3 */ -var GatewayUpdateProducerOracleDbOutput = /*#__PURE__*/function () { +var LinkedTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerOracleDbOutput. - * @alias module:model/GatewayUpdateProducerOracleDbOutput + * Constructs a new LinkedTargetDetails. + * LinkedTargetDetails + * @alias module:model/LinkedTargetDetails */ - function GatewayUpdateProducerOracleDbOutput() { - _classCallCheck(this, GatewayUpdateProducerOracleDbOutput); + function LinkedTargetDetails() { + _classCallCheck(this, LinkedTargetDetails); - GatewayUpdateProducerOracleDbOutput.initialize(this); + LinkedTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -77449,25 +152010,27 @@ var GatewayUpdateProducerOracleDbOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerOracleDbOutput, null, [{ + _createClass(LinkedTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a LinkedTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerOracleDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerOracleDbOutput} The populated GatewayUpdateProducerOracleDbOutput instance. + * @param {module:model/LinkedTargetDetails} obj Optional instance to populate. + * @return {module:model/LinkedTargetDetails} The populated LinkedTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerOracleDbOutput(); + obj = obj || new LinkedTargetDetails(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { + 'String': 'String' + }); } } @@ -77475,20 +152038,21 @@ var GatewayUpdateProducerOracleDbOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerOracleDbOutput; + return LinkedTargetDetails; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * key hostname, value description + * @member {Object.} hosts */ -GatewayUpdateProducerOracleDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerOracleDbOutput; +LinkedTargetDetails.prototype['hosts'] = undefined; +var _default = LinkedTargetDetails; exports["default"] = _default; /***/ }), -/***/ 17839: +/***/ 61769: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -77499,7 +152063,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -77510,21 +152074,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerPing model module. - * @module model/GatewayUpdateProducerPing - * @version 3.3.16 + * The ListAuthMethods model module. + * @module model/ListAuthMethods + * @version 3.6.3 */ -var GatewayUpdateProducerPing = /*#__PURE__*/function () { +var ListAuthMethods = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerPing. - * gatewayUpdateProducerPing is a command that updates Ping producer - * @alias module:model/GatewayUpdateProducerPing - * @param name {String} Producer name + * Constructs a new ListAuthMethods. + * listAuthMethods is a command that returns a list of all auth methods in the account. + * @alias module:model/ListAuthMethods */ - function GatewayUpdateProducerPing(name) { - _classCallCheck(this, GatewayUpdateProducerPing); + function ListAuthMethods() { + _classCallCheck(this, ListAuthMethods); - GatewayUpdateProducerPing.initialize(this, name); + ListAuthMethods.initialize(this); } /** * Initializes the fields of this object. @@ -77533,127 +152096,45 @@ var GatewayUpdateProducerPing = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerPing, null, [{ + _createClass(ListAuthMethods, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerPing from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListAuthMethods from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPing} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPing} The populated GatewayUpdateProducerPing instance. + * @param {module:model/ListAuthMethods} obj Optional instance to populate. + * @return {module:model/ListAuthMethods} The populated ListAuthMethods instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerPing(); + obj = obj || new ListAuthMethods(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('ping-administrative-port')) { - obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); - } - - if (data.hasOwnProperty('ping-atm-id')) { - obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); - } - - if (data.hasOwnProperty('ping-authorization-port')) { - obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); - } - - if (data.hasOwnProperty('ping-cert-subject-dn')) { - obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); - } - - if (data.hasOwnProperty('ping-client-authentication-type')) { - obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); - } - - if (data.hasOwnProperty('ping-enforce-replay-prevention')) { - obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); - } - - if (data.hasOwnProperty('ping-grant-types')) { - obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); - } - - if (data.hasOwnProperty('ping-issuer-dn')) { - obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); - } - - if (data.hasOwnProperty('ping-jwks')) { - obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); - } - - if (data.hasOwnProperty('ping-jwks-url')) { - obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); - } - - if (data.hasOwnProperty('ping-password')) { - obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); - } - - if (data.hasOwnProperty('ping-privileged-user')) { - obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); - } - - if (data.hasOwnProperty('ping-redirect-uris')) { - obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); - } - - if (data.hasOwnProperty('ping-restricted-scopes')) { - obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); - } - - if (data.hasOwnProperty('ping-signing-algo')) { - obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); - } - - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -77661,177 +152142,145 @@ var GatewayUpdateProducerPing = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerPing; + return ListAuthMethods; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Filter by auth method name or part of it + * @member {String} filter */ -GatewayUpdateProducerPing.prototype['delete_protection'] = undefined; +ListAuthMethods.prototype['filter'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerPing.prototype['json'] = false; +ListAuthMethods.prototype['json'] = false; /** - * Producer name - * @member {String} name + * Next page reference + * @member {String} pagination-token */ -GatewayUpdateProducerPing.prototype['name'] = undefined; +ListAuthMethods.prototype['pagination-token'] = undefined; /** - * Producer New name - * @member {String} new-name + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GatewayUpdateProducerPing.prototype['new-name'] = undefined; +ListAuthMethods.prototype['token'] = undefined; /** - * Ping Federate administrative port - * @member {String} ping-administrative-port - * @default '9999' + * The Auth method types list of the requested method. In case it is empty, all types of auth methods will be returned. options: [api_key, azure_ad, oauth2/jwt, saml2, ldap, aws_iam, oidc, universal_identity, gcp, k8s, cert] + * @member {Array.} type */ -GatewayUpdateProducerPing.prototype['ping-administrative-port'] = '9999'; +ListAuthMethods.prototype['type'] = undefined; /** - * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. - * @member {String} ping-atm-id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayUpdateProducerPing.prototype['ping-atm-id'] = undefined; -/** - * Ping Federate authorization port - * @member {String} ping-authorization-port - * @default '9031' - */ +ListAuthMethods.prototype['uid-token'] = undefined; +var _default = ListAuthMethods; +exports["default"] = _default; -GatewayUpdateProducerPing.prototype['ping-authorization-port'] = '9031'; -/** - * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-cert-subject-dn - */ +/***/ }), -GatewayUpdateProducerPing.prototype['ping-cert-subject-dn'] = undefined; -/** - * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] - * @member {String} ping-client-authentication-type - * @default 'CLIENT_SECRET' - */ +/***/ 68940: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -GatewayUpdateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; -/** - * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] - * @member {String} ping-enforce-replay-prevention - * @default 'false' - */ +"use strict"; -GatewayUpdateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; -/** - * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. - * @member {Array.} ping-grant-types - */ -GatewayUpdateProducerPing.prototype['ping-grant-types'] = undefined; -/** - * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-issuer-dn - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -GatewayUpdateProducerPing.prototype['ping-issuer-dn'] = undefined; -/** - * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -GatewayUpdateProducerPing.prototype['ping-jwks'] = undefined; -/** - * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks-url - */ +var _AuthMethod = _interopRequireDefault(__nccwpck_require__(9614)); -GatewayUpdateProducerPing.prototype['ping-jwks-url'] = undefined; -/** - * Ping Federate privileged user password - * @member {String} ping-password - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -GatewayUpdateProducerPing.prototype['ping-password'] = undefined; -/** - * Ping Federate privileged user - * @member {String} ping-privileged-user - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -GatewayUpdateProducerPing.prototype['ping-privileged-user'] = undefined; -/** - * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. - * @member {Array.} ping-redirect-uris - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -GatewayUpdateProducerPing.prototype['ping-redirect-uris'] = undefined; -/** - * Limit the OAuth client to specific scopes list - * @member {Array.} ping-restricted-scopes - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -GatewayUpdateProducerPing.prototype['ping-restricted-scopes'] = undefined; /** - * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-signing-algo + * The ListAuthMethodsOutput model module. + * @module model/ListAuthMethodsOutput + * @version 3.6.3 */ +var ListAuthMethodsOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListAuthMethodsOutput. + * @alias module:model/ListAuthMethodsOutput + */ + function ListAuthMethodsOutput() { + _classCallCheck(this, ListAuthMethodsOutput); -GatewayUpdateProducerPing.prototype['ping-signing-algo'] = undefined; -/** - * Ping URL - * @member {String} ping-url - */ + ListAuthMethodsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -GatewayUpdateProducerPing.prototype['ping-url'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ -GatewayUpdateProducerPing.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ + _createClass(ListAuthMethodsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListAuthMethodsOutput} obj Optional instance to populate. + * @return {module:model/ListAuthMethodsOutput} The populated ListAuthMethodsOutput instance. + */ -GatewayUpdateProducerPing.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListAuthMethodsOutput(); -GatewayUpdateProducerPing.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ + if (data.hasOwnProperty('auth_methods')) { + obj['auth_methods'] = _ApiClient["default"].convertToType(data['auth_methods'], [_AuthMethod["default"]]); + } -GatewayUpdateProducerPing.prototype['token'] = undefined; + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + } + } + + return obj; + } + }]); + + return ListAuthMethodsOutput; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} auth_methods */ -GatewayUpdateProducerPing.prototype['uid-token'] = undefined; + +ListAuthMethodsOutput.prototype['auth_methods'] = undefined; /** - * The time from dynamic secret creation to expiration. - * @member {String} user-ttl - * @default '60m' + * @member {String} next_page */ -GatewayUpdateProducerPing.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerPing; +ListAuthMethodsOutput.prototype['next_page'] = undefined; +var _default = ListAuthMethodsOutput; exports["default"] = _default; /***/ }), -/***/ 74723: +/***/ 14862: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -77842,9 +152291,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -77855,19 +152302,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerPingOutput model module. - * @module model/GatewayUpdateProducerPingOutput - * @version 3.3.16 + * The ListGateways model module. + * @module model/ListGateways + * @version 3.6.3 */ -var GatewayUpdateProducerPingOutput = /*#__PURE__*/function () { +var ListGateways = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerPingOutput. - * @alias module:model/GatewayUpdateProducerPingOutput + * Constructs a new ListGateways. + * @alias module:model/ListGateways */ - function GatewayUpdateProducerPingOutput() { - _classCallCheck(this, GatewayUpdateProducerPingOutput); + function ListGateways() { + _classCallCheck(this, ListGateways); - GatewayUpdateProducerPingOutput.initialize(this); + ListGateways.initialize(this); } /** * Initializes the fields of this object. @@ -77876,25 +152323,33 @@ var GatewayUpdateProducerPingOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerPingOutput, null, [{ + _createClass(ListGateways, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListGateways from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPingOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPingOutput} The populated GatewayUpdateProducerPingOutput instance. + * @param {module:model/ListGateways} obj Optional instance to populate. + * @return {module:model/ListGateways} The populated ListGateways instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerPingOutput(); + obj = obj || new ListGateways(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -77902,20 +152357,34 @@ var GatewayUpdateProducerPingOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerPingOutput; + return ListGateways; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayUpdateProducerPingOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerPingOutput; +ListGateways.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ListGateways.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +ListGateways.prototype['uid-token'] = undefined; +var _default = ListGateways; exports["default"] = _default; /***/ }), -/***/ 15455: +/***/ 43437: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -77926,7 +152395,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -77937,21 +152406,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerPostgreSQL model module. - * @module model/GatewayUpdateProducerPostgreSQL - * @version 3.3.16 + * The ListGroups model module. + * @module model/ListGroups + * @version 3.6.3 */ -var GatewayUpdateProducerPostgreSQL = /*#__PURE__*/function () { +var ListGroups = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerPostgreSQL. - * gatewayUpdateProducerPostgreSQL is a command that updates postgresql producer - * @alias module:model/GatewayUpdateProducerPostgreSQL - * @param name {String} Producer name + * Constructs a new ListGroups. + * @alias module:model/ListGroups */ - function GatewayUpdateProducerPostgreSQL(name) { - _classCallCheck(this, GatewayUpdateProducerPostgreSQL); + function ListGroups() { + _classCallCheck(this, ListGroups); - GatewayUpdateProducerPostgreSQL.initialize(this, name); + ListGroups.initialize(this); } /** * Initializes the fields of this object. @@ -77960,103 +152427,33 @@ var GatewayUpdateProducerPostgreSQL = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerPostgreSQL, null, [{ + _createClass(ListGroups, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListGroups from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPostgreSQL} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPostgreSQL} The populated GatewayUpdateProducerPostgreSQL instance. + * @param {module:model/ListGroups} obj Optional instance to populate. + * @return {module:model/ListGroups} The populated ListGroups instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerPostgreSQL(); - - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); - } + obj = obj || new ListGroups(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('postgresql-db-name')) { - obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); - } - - if (data.hasOwnProperty('postgresql-host')) { - obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); - } - - if (data.hasOwnProperty('postgresql-password')) { - obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); - } - - if (data.hasOwnProperty('postgresql-port')) { - obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); - } - - if (data.hasOwnProperty('postgresql-username')) { - obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); - } - - if (data.hasOwnProperty('revocation-statement')) { - obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); } if (data.hasOwnProperty('token')) { @@ -78066,169 +152463,52 @@ var GatewayUpdateProducerPostgreSQL = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerPostgreSQL; + return ListGroups; }(); /** - * PostgreSQL Creation statements - * @member {String} creation-statements + * Filter by auth method name or part of it + * @member {String} filter */ -GatewayUpdateProducerPostgreSQL.prototype['creation-statements'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerPostgreSQL.prototype['delete_protection'] = undefined; +ListGroups.prototype['filter'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerPostgreSQL.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerPostgreSQL.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerPostgreSQL.prototype['new-name'] = undefined; -/** - * PostgreSQL DB Name - * @member {String} postgresql-db-name - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; -/** - * PostgreSQL Host - * @member {String} postgresql-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; -/** - * PostgreSQL Password - * @member {String} postgresql-password - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-password'] = undefined; -/** - * PostgreSQL Port - * @member {String} postgresql-port - * @default '5432' - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; -/** - * PostgreSQL Username - * @member {String} postgresql-username - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-username'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key - */ - -GatewayUpdateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; -/** - * PostgreSQL Revocation statements - * @member {String} revocation-statement - */ - -GatewayUpdateProducerPostgreSQL.prototype['revocation-statement'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-web'] = false; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayUpdateProducerPostgreSQL.prototype['ssl'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerPostgreSQL.prototype['tags'] = undefined; +ListGroups.prototype['json'] = false; /** - * Target name - * @member {String} target-name + * Next page reference + * @member {String} pagination-token */ -GatewayUpdateProducerPostgreSQL.prototype['target-name'] = undefined; +ListGroups.prototype['pagination-token'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerPostgreSQL.prototype['token'] = undefined; +ListGroups.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerPostgreSQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerPostgreSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerPostgreSQL; +ListGroups.prototype['uid-token'] = undefined; +var _default = ListGroups; exports["default"] = _default; /***/ }), -/***/ 94150: +/***/ 71336: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -78239,9 +152519,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _Group = _interopRequireDefault(__nccwpck_require__(23762)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -78252,19 +152532,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerPostgreSQLOutput model module. - * @module model/GatewayUpdateProducerPostgreSQLOutput - * @version 3.3.16 + * The ListGroupsOutput model module. + * @module model/ListGroupsOutput + * @version 3.6.3 */ -var GatewayUpdateProducerPostgreSQLOutput = /*#__PURE__*/function () { +var ListGroupsOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerPostgreSQLOutput. - * @alias module:model/GatewayUpdateProducerPostgreSQLOutput + * Constructs a new ListGroupsOutput. + * @alias module:model/ListGroupsOutput */ - function GatewayUpdateProducerPostgreSQLOutput() { - _classCallCheck(this, GatewayUpdateProducerPostgreSQLOutput); + function ListGroupsOutput() { + _classCallCheck(this, ListGroupsOutput); - GatewayUpdateProducerPostgreSQLOutput.initialize(this); + ListGroupsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -78273,25 +152553,29 @@ var GatewayUpdateProducerPostgreSQLOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerPostgreSQLOutput, null, [{ + _createClass(ListGroupsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListGroupsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPostgreSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPostgreSQLOutput} The populated GatewayUpdateProducerPostgreSQLOutput instance. + * @param {module:model/ListGroupsOutput} obj Optional instance to populate. + * @return {module:model/ListGroupsOutput} The populated ListGroupsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerPostgreSQLOutput(); + obj = obj || new ListGroupsOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], [_Group["default"]]); + } + + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); } } @@ -78299,20 +152583,25 @@ var GatewayUpdateProducerPostgreSQLOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerPostgreSQLOutput; + return ListGroupsOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Array.} groups */ -GatewayUpdateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerPostgreSQLOutput; +ListGroupsOutput.prototype['groups'] = undefined; +/** + * @member {String} next_page + */ + +ListGroupsOutput.prototype['next_page'] = undefined; +var _default = ListGroupsOutput; exports["default"] = _default; /***/ }), -/***/ 41343: +/***/ 14121: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -78323,7 +152612,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -78334,21 +152623,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRabbitMQ model module. - * @module model/GatewayUpdateProducerRabbitMQ - * @version 3.3.16 + * The ListItems model module. + * @module model/ListItems + * @version 3.6.3 */ -var GatewayUpdateProducerRabbitMQ = /*#__PURE__*/function () { +var ListItems = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRabbitMQ. - * gatewayUpdateProducerRabbitMQ is a command that updates rabbitmq producer - * @alias module:model/GatewayUpdateProducerRabbitMQ - * @param name {String} Producer name + * Constructs a new ListItems. + * @alias module:model/ListItems */ - function GatewayUpdateProducerRabbitMQ(name) { - _classCallCheck(this, GatewayUpdateProducerRabbitMQ); + function ListItems() { + _classCallCheck(this, ListItems); - GatewayUpdateProducerRabbitMQ.initialize(this, name); + ListItems.initialize(this); } /** * Initializes the fields of this object. @@ -78357,115 +152644,81 @@ var GatewayUpdateProducerRabbitMQ = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRabbitMQ, null, [{ + _createClass(ListItems, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListItems from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRabbitMQ} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRabbitMQ} The populated GatewayUpdateProducerRabbitMQ instance. + * @param {module:model/ListItems} obj Optional instance to populate. + * @return {module:model/ListItems} The populated ListItems instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRabbitMQ(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-pwd')) { - obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-user')) { - obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); - } + obj = obj || new ListItems(); - if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { - obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - if (data.hasOwnProperty('rabbitmq-user-read-permission')) { - obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); + if (data.hasOwnProperty('advanced-filter')) { + obj['advanced-filter'] = _ApiClient["default"].convertToType(data['advanced-filter'], 'String'); } - if (data.hasOwnProperty('rabbitmq-user-tags')) { - obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); + if (data.hasOwnProperty('auto-pagination')) { + obj['auto-pagination'] = _ApiClient["default"].convertToType(data['auto-pagination'], 'String'); } - if (data.hasOwnProperty('rabbitmq-user-vhost')) { - obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); } - if (data.hasOwnProperty('rabbitmq-user-write-permission')) { - obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + if (data.hasOwnProperty('minimal-view')) { + obj['minimal-view'] = _ApiClient["default"].convertToType(data['minimal-view'], 'Boolean'); } - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + if (data.hasOwnProperty('modified-after')) { + obj['modified-after'] = _ApiClient["default"].convertToType(data['modified-after'], 'Number'); } - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); } - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + if (data.hasOwnProperty('sra-only')) { + obj['sra-only'] = _ApiClient["default"].convertToType(data['sra-only'], 'Boolean'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('sub_types')) { + obj['sub_types'] = _ApiClient["default"].convertToType(data['sub_types'], ['String']); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -78473,158 +152726,210 @@ var GatewayUpdateProducerRabbitMQ = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerRabbitMQ; + return ListItems; }(); /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * for personal password manager + * @member {String} accessibility + * @default 'regular' */ -GatewayUpdateProducerRabbitMQ.prototype['delete_protection'] = undefined; +ListItems.prototype['accessibility'] = 'regular'; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Filter by item name/username/website or part of it + * @member {String} advanced-filter */ -GatewayUpdateProducerRabbitMQ.prototype['json'] = false; +ListItems.prototype['advanced-filter'] = undefined; /** - * Producer name - * @member {String} name + * Retrieve all items using pagination, when disabled retrieving only first 1000 items + * @member {String} auto-pagination + * @default 'enabled' */ -GatewayUpdateProducerRabbitMQ.prototype['name'] = undefined; +ListItems.prototype['auto-pagination'] = 'enabled'; /** - * Producer name - * @member {String} new-name + * Filter by item name or part of it + * @member {String} filter */ -GatewayUpdateProducerRabbitMQ.prototype['new-name'] = undefined; +ListItems.prototype['filter'] = undefined; /** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GatewayUpdateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; +ListItems.prototype['json'] = false; /** - * RabbitMQ Admin password - * @member {String} rabbitmq-admin-pwd + * Show only basic information of the items + * @member {Boolean} minimal-view */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; +ListItems.prototype['minimal-view'] = undefined; /** - * RabbitMQ Admin User - * @member {String} rabbitmq-admin-user + * List only secrets modified after specified date (in unix time) + * @member {Number} modified-after */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; +ListItems.prototype['modified-after'] = undefined; /** - * Server URI - * @member {String} rabbitmq-server-uri + * Next page reference + * @member {String} pagination-token */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; +ListItems.prototype['pagination-token'] = undefined; /** - * User configuration permission - * @member {String} rabbitmq-user-conf-permission + * Path to folder + * @member {String} path */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; +ListItems.prototype['path'] = undefined; /** - * User read permission - * @member {String} rabbitmq-user-read-permission + * Filter by items with SRA functionality enabled + * @member {Boolean} sra-only + * @default false */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; +ListItems.prototype['sra-only'] = false; /** - * User Tags - * @member {String} rabbitmq-user-tags + * @member {Array.} sub_types */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; +ListItems.prototype['sub_types'] = undefined; /** - * User Virtual Host - * @member {String} rabbitmq-user-vhost + * Filter by item tag + * @member {String} tag */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; +ListItems.prototype['tag'] = undefined; /** - * User write permission - * @member {String} rabbitmq-user-write-permission + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; +ListItems.prototype['token'] = undefined; /** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable + * The item types list of the requested items. In case it is empty, all types of items will be returned. options: [key, static-secret, dynamic-secret, classic-key] + * @member {Array.} type */ -GatewayUpdateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; +ListItems.prototype['type'] = undefined; /** - * Destination URL to inject secrets - * @member {String} secure-access-url + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayUpdateProducerRabbitMQ.prototype['secure-access-url'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ +ListItems.prototype['uid-token'] = undefined; +var _default = ListItems; +exports["default"] = _default; -GatewayUpdateProducerRabbitMQ.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ +/***/ }), -GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ +/***/ 95752: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _Item = _interopRequireDefault(__nccwpck_require__(3054)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -GatewayUpdateProducerRabbitMQ.prototype['tags'] = undefined; /** - * Target name - * @member {String} target-name + * The ListItemsInPathOutput model module. + * @module model/ListItemsInPathOutput + * @version 3.6.3 */ +var ListItemsInPathOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListItemsInPathOutput. + * @alias module:model/ListItemsInPathOutput + */ + function ListItemsInPathOutput() { + _classCallCheck(this, ListItemsInPathOutput); -GatewayUpdateProducerRabbitMQ.prototype['target-name'] = undefined; + ListItemsInPathOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListItemsInPathOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListItemsInPathOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListItemsInPathOutput} obj Optional instance to populate. + * @return {module:model/ListItemsInPathOutput} The populated ListItemsInPathOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListItemsInPathOutput(); + + if (data.hasOwnProperty('folders')) { + obj['folders'] = _ApiClient["default"].convertToType(data['folders'], ['String']); + } + + if (data.hasOwnProperty('items')) { + obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); + } + + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + } + } + + return obj; + } + }]); + + return ListItemsInPathOutput; +}(); /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Array.} folders */ -GatewayUpdateProducerRabbitMQ.prototype['token'] = undefined; + +ListItemsInPathOutput.prototype['folders'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} items */ -GatewayUpdateProducerRabbitMQ.prototype['uid-token'] = undefined; +ListItemsInPathOutput.prototype['items'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * @member {String} next_page */ -GatewayUpdateProducerRabbitMQ.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerRabbitMQ; +ListItemsInPathOutput.prototype['next_page'] = undefined; +var _default = ListItemsInPathOutput; exports["default"] = _default; /***/ }), -/***/ 41570: +/***/ 22828: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -78635,9 +152940,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _Item = _interopRequireDefault(__nccwpck_require__(3054)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -78648,19 +152953,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRabbitMQOutput model module. - * @module model/GatewayUpdateProducerRabbitMQOutput - * @version 3.3.16 + * The ListItemsOutput model module. + * @module model/ListItemsOutput + * @version 3.6.3 */ -var GatewayUpdateProducerRabbitMQOutput = /*#__PURE__*/function () { +var ListItemsOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRabbitMQOutput. - * @alias module:model/GatewayUpdateProducerRabbitMQOutput + * Constructs a new ListItemsOutput. + * @alias module:model/ListItemsOutput */ - function GatewayUpdateProducerRabbitMQOutput() { - _classCallCheck(this, GatewayUpdateProducerRabbitMQOutput); + function ListItemsOutput() { + _classCallCheck(this, ListItemsOutput); - GatewayUpdateProducerRabbitMQOutput.initialize(this); + ListItemsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -78669,25 +152974,29 @@ var GatewayUpdateProducerRabbitMQOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRabbitMQOutput, null, [{ + _createClass(ListItemsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListItemsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRabbitMQOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRabbitMQOutput} The populated GatewayUpdateProducerRabbitMQOutput instance. + * @param {module:model/ListItemsOutput} obj Optional instance to populate. + * @return {module:model/ListItemsOutput} The populated ListItemsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRabbitMQOutput(); + obj = obj || new ListItemsOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('items')) { + obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); + } + + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); } } @@ -78695,20 +153004,25 @@ var GatewayUpdateProducerRabbitMQOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerRabbitMQOutput; + return ListItemsOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {Array.} items */ -GatewayUpdateProducerRabbitMQOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRabbitMQOutput; +ListItemsOutput.prototype['items'] = undefined; +/** + * @member {String} next_page + */ + +ListItemsOutput.prototype['next_page'] = undefined; +var _default = ListItemsOutput; exports["default"] = _default; /***/ }), -/***/ 13978: +/***/ 51752: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -78719,7 +153033,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -78730,21 +153044,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRdp model module. - * @module model/GatewayUpdateProducerRdp - * @version 3.3.16 + * The ListRoles model module. + * @module model/ListRoles + * @version 3.6.3 */ -var GatewayUpdateProducerRdp = /*#__PURE__*/function () { +var ListRoles = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRdp. - * gatewayUpdateProducerRdp is a command that updates rdp producer - * @alias module:model/GatewayUpdateProducerRdp - * @param name {String} Producer name + * Constructs a new ListRoles. + * @alias module:model/ListRoles */ - function GatewayUpdateProducerRdp(name) { - _classCallCheck(this, GatewayUpdateProducerRdp); + function ListRoles() { + _classCallCheck(this, ListRoles); - GatewayUpdateProducerRdp.initialize(this, name); + ListRoles.initialize(this); } /** * Initializes the fields of this object. @@ -78753,99 +153065,33 @@ var GatewayUpdateProducerRdp = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRdp, null, [{ + _createClass(ListRoles, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRdp from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListRoles from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRdp} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRdp} The populated GatewayUpdateProducerRdp instance. + * @param {module:model/ListRoles} obj Optional instance to populate. + * @return {module:model/ListRoles} The populated ListRoles instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRdp(); - - if (data.hasOwnProperty('allow-user-extend-session')) { - obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + obj = obj || new ListRoles(); - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-name')) { - obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-pwd')) { - obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-name')) { - obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-port')) { - obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); - } - - if (data.hasOwnProperty('rdp-user-groups')) { - obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); } if (data.hasOwnProperty('token')) { @@ -78855,172 +153101,52 @@ var GatewayUpdateProducerRdp = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('warn-user-before-expiration')) { - obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); - } } return obj; } }]); - return GatewayUpdateProducerRdp; + return ListRoles; }(); /** - * AllowUserExtendSession - * @member {Number} allow-user-extend-session - */ - - -GatewayUpdateProducerRdp.prototype['allow-user-extend-session'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Filter by item name or part of it + * @member {String} filter */ -GatewayUpdateProducerRdp.prototype['delete_protection'] = undefined; -/** - * Allow access using externally (IdP) provided username [true/false] - * @member {String} fixed-user-only - * @default 'false' - */ -GatewayUpdateProducerRdp.prototype['fixed-user-only'] = 'false'; +ListRoles.prototype['filter'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerRdp.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerRdp.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerRdp.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerRdp.prototype['producer-encryption-key-name'] = undefined; -/** - * RDP Admin Name - * @member {String} rdp-admin-name - */ - -GatewayUpdateProducerRdp.prototype['rdp-admin-name'] = undefined; -/** - * RDP Admin password - * @member {String} rdp-admin-pwd - */ - -GatewayUpdateProducerRdp.prototype['rdp-admin-pwd'] = undefined; -/** - * Hostname - * @member {String} rdp-host-name - */ - -GatewayUpdateProducerRdp.prototype['rdp-host-name'] = undefined; -/** - * Port - * @member {String} rdp-host-port - * @default '22' - */ - -GatewayUpdateProducerRdp.prototype['rdp-host-port'] = '22'; -/** - * Groups - * @member {String} rdp-user-groups - */ - -GatewayUpdateProducerRdp.prototype['rdp-user-groups'] = undefined; -/** - * Allow providing external user for a domain users - * @member {Boolean} secure-access-allow-external-user - * @default false - */ - -GatewayUpdateProducerRdp.prototype['secure-access-allow-external-user'] = false; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerRdp.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerRdp.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user - * @member {String} secure-access-rdp-domain - */ - -GatewayUpdateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username - * @member {String} secure-access-rdp-user - */ - -GatewayUpdateProducerRdp.prototype['secure-access-rdp-user'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerRdp.prototype['tags'] = undefined; +ListRoles.prototype['json'] = false; /** - * Target name - * @member {String} target-name + * Next page reference + * @member {String} pagination-token */ -GatewayUpdateProducerRdp.prototype['target-name'] = undefined; +ListRoles.prototype['pagination-token'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerRdp.prototype['token'] = undefined; +ListRoles.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerRdp.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerRdp.prototype['user-ttl'] = '60m'; -/** - * WarnBeforeUserExpiration - * @member {Number} warn-user-before-expiration - */ - -GatewayUpdateProducerRdp.prototype['warn-user-before-expiration'] = undefined; -var _default = GatewayUpdateProducerRdp; +ListRoles.prototype['uid-token'] = undefined; +var _default = ListRoles; exports["default"] = _default; /***/ }), -/***/ 4155: +/***/ 82465: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -79031,9 +153157,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _Role = _interopRequireDefault(__nccwpck_require__(82945)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -79044,19 +153170,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRdpOutput model module. - * @module model/GatewayUpdateProducerRdpOutput - * @version 3.3.16 + * The ListRolesOutput model module. + * @module model/ListRolesOutput + * @version 3.6.3 */ -var GatewayUpdateProducerRdpOutput = /*#__PURE__*/function () { +var ListRolesOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRdpOutput. - * @alias module:model/GatewayUpdateProducerRdpOutput + * Constructs a new ListRolesOutput. + * @alias module:model/ListRolesOutput */ - function GatewayUpdateProducerRdpOutput() { - _classCallCheck(this, GatewayUpdateProducerRdpOutput); + function ListRolesOutput() { + _classCallCheck(this, ListRolesOutput); - GatewayUpdateProducerRdpOutput.initialize(this); + ListRolesOutput.initialize(this); } /** * Initializes the fields of this object. @@ -79065,25 +153191,29 @@ var GatewayUpdateProducerRdpOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRdpOutput, null, [{ + _createClass(ListRolesOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListRolesOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRdpOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRdpOutput} The populated GatewayUpdateProducerRdpOutput instance. + * @param {module:model/ListRolesOutput} obj Optional instance to populate. + * @return {module:model/ListRolesOutput} The populated ListRolesOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRdpOutput(); + obj = obj || new ListRolesOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + } + + if (data.hasOwnProperty('roles')) { + obj['roles'] = _ApiClient["default"].convertToType(data['roles'], [_Role["default"]]); } } @@ -79091,20 +153221,25 @@ var GatewayUpdateProducerRdpOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerRdpOutput; + return ListRolesOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} next_page */ -GatewayUpdateProducerRdpOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRdpOutput; +ListRolesOutput.prototype['next_page'] = undefined; +/** + * @member {Array.} roles + */ + +ListRolesOutput.prototype['roles'] = undefined; +var _default = ListRolesOutput; exports["default"] = _default; /***/ }), -/***/ 48250: +/***/ 71572: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -79115,7 +153250,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -79126,21 +153261,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRedis model module. - * @module model/GatewayUpdateProducerRedis - * @version 3.3.16 + * The ListSRABastions model module. + * @module model/ListSRABastions + * @version 3.6.3 */ -var GatewayUpdateProducerRedis = /*#__PURE__*/function () { +var ListSRABastions = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRedis. - * gatewayUpdateProducerRedis is a command that updates redis producer - * @alias module:model/GatewayUpdateProducerRedis - * @param name {String} Producer name + * Constructs a new ListSRABastions. + * @alias module:model/ListSRABastions */ - function GatewayUpdateProducerRedis(name) { - _classCallCheck(this, GatewayUpdateProducerRedis); + function ListSRABastions() { + _classCallCheck(this, ListSRABastions); - GatewayUpdateProducerRedis.initialize(this, name); + ListSRABastions.initialize(this); } /** * Initializes the fields of this object. @@ -79149,77 +153282,31 @@ var GatewayUpdateProducerRedis = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRedis, null, [{ + _createClass(ListSRABastions, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRedis from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListSRABastions from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedis} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedis} The populated GatewayUpdateProducerRedis instance. + * @param {module:model/ListSRABastions} obj Optional instance to populate. + * @return {module:model/ListSRABastions} The populated ListSRABastions instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRedis(); - - if (data.hasOwnProperty('acl-rules')) { - obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } + obj = obj || new ListSRABastions(); - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('allowed-urls-only')) { + obj['allowed-urls-only'] = _ApiClient["default"].convertToType(data['allowed-urls-only'], 'Boolean'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -79227,136 +153314,47 @@ var GatewayUpdateProducerRedis = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } } return obj; } }]); - return GatewayUpdateProducerRedis; + return ListSRABastions; }(); /** - * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' - * @member {String} acl-rules - */ - - -GatewayUpdateProducerRedis.prototype['acl-rules'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Filter the response to show only bastions allowed URLs + * @member {Boolean} allowed-urls-only + * @default false */ -GatewayUpdateProducerRedis.prototype['delete_protection'] = undefined; -/** - * Redis Host - * @member {String} host - * @default '127.0.0.1' - */ -GatewayUpdateProducerRedis.prototype['host'] = '127.0.0.1'; +ListSRABastions.prototype['allowed-urls-only'] = false; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerRedis.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerRedis.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerRedis.prototype['new-name'] = undefined; -/** - * Redis Password - * @member {String} password - */ - -GatewayUpdateProducerRedis.prototype['password'] = undefined; -/** - * Redis Port - * @member {String} port - * @default '6379' - */ - -GatewayUpdateProducerRedis.prototype['port'] = '6379'; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerRedis.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayUpdateProducerRedis.prototype['ssl'] = false; -/** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} ssl-certificate - */ - -GatewayUpdateProducerRedis.prototype['ssl-certificate'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerRedis.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerRedis.prototype['target-name'] = undefined; +ListSRABastions.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerRedis.prototype['token'] = undefined; +ListSRABastions.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GatewayUpdateProducerRedis.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerRedis.prototype['user-ttl'] = '60m'; -/** - * Redis Username - * @member {String} username - */ - -GatewayUpdateProducerRedis.prototype['username'] = undefined; -var _default = GatewayUpdateProducerRedis; +ListSRABastions.prototype['uid-token'] = undefined; +var _default = ListSRABastions; exports["default"] = _default; /***/ }), -/***/ 9636: +/***/ 24674: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -79367,9 +153365,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -79380,19 +153376,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRedisOutput model module. - * @module model/GatewayUpdateProducerRedisOutput - * @version 3.3.16 + * The ListSharedItems model module. + * @module model/ListSharedItems + * @version 3.6.3 */ -var GatewayUpdateProducerRedisOutput = /*#__PURE__*/function () { +var ListSharedItems = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRedisOutput. - * @alias module:model/GatewayUpdateProducerRedisOutput + * Constructs a new ListSharedItems. + * listSharedItems is a command to list all the items been shared + * @alias module:model/ListSharedItems */ - function GatewayUpdateProducerRedisOutput() { - _classCallCheck(this, GatewayUpdateProducerRedisOutput); + function ListSharedItems() { + _classCallCheck(this, ListSharedItems); - GatewayUpdateProducerRedisOutput.initialize(this); + ListSharedItems.initialize(this); } /** * Initializes the fields of this object. @@ -79401,25 +153398,37 @@ var GatewayUpdateProducerRedisOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRedisOutput, null, [{ + _createClass(ListSharedItems, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListSharedItems from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedisOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedisOutput} The populated GatewayUpdateProducerRedisOutput instance. + * @param {module:model/ListSharedItems} obj Optional instance to populate. + * @return {module:model/ListSharedItems} The populated ListSharedItems instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRedisOutput(); + obj = obj || new ListSharedItems(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -79427,20 +153436,41 @@ var GatewayUpdateProducerRedisOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerRedisOutput; + return ListSharedItems; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * for personal password manager + * @member {String} accessibility + * @default 'regular' */ -GatewayUpdateProducerRedisOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRedisOutput; +ListSharedItems.prototype['accessibility'] = 'regular'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +ListSharedItems.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ListSharedItems.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +ListSharedItems.prototype['uid-token'] = undefined; +var _default = ListSharedItems; exports["default"] = _default; /***/ }), -/***/ 78643: +/***/ 89399: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -79451,7 +153481,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -79462,21 +153492,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRedshift model module. - * @module model/GatewayUpdateProducerRedshift - * @version 3.3.16 + * The ListTargets model module. + * @module model/ListTargets + * @version 3.6.3 */ -var GatewayUpdateProducerRedshift = /*#__PURE__*/function () { +var ListTargets = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRedshift. - * gatewayUpdateProducerRedshift is a command that updates redshift producer - * @alias module:model/GatewayUpdateProducerRedshift - * @param name {String} Producer name + * Constructs a new ListTargets. + * @alias module:model/ListTargets */ - function GatewayUpdateProducerRedshift(name) { - _classCallCheck(this, GatewayUpdateProducerRedshift); + function ListTargets() { + _classCallCheck(this, ListTargets); - GatewayUpdateProducerRedshift.initialize(this, name); + ListTargets.initialize(this); } /** * Initializes the fields of this object. @@ -79485,99 +153513,45 @@ var GatewayUpdateProducerRedshift = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRedshift, null, [{ + _createClass(ListTargets, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRedshift from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListTargets from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedshift} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedshift} The populated GatewayUpdateProducerRedshift instance. + * @param {module:model/ListTargets} obj Optional instance to populate. + * @return {module:model/ListTargets} The populated ListTargets instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRedshift(); - - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); - } + obj = obj || new ListTargets(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); - } - - if (data.hasOwnProperty('redshift-db-name')) { - obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); - } - - if (data.hasOwnProperty('redshift-host')) { - obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); - } - - if (data.hasOwnProperty('redshift-password')) { - obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); - } - - if (data.hasOwnProperty('redshift-port')) { - obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); - } - - if (data.hasOwnProperty('redshift-username')) { - obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -79585,134 +153559,52 @@ var GatewayUpdateProducerRedshift = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerRedshift; + return ListTargets; }(); /** - * Redshift Creation statements - * @member {String} creation-statements + * Filter by auth method name or part of it + * @member {String} filter */ -GatewayUpdateProducerRedshift.prototype['creation-statements'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerRedshift.prototype['delete_protection'] = undefined; +ListTargets.prototype['filter'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -GatewayUpdateProducerRedshift.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerRedshift.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerRedshift.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key - */ - -GatewayUpdateProducerRedshift.prototype['producer-encryption-key'] = undefined; -/** - * Redshift DB Name - * @member {String} redshift-db-name - */ - -GatewayUpdateProducerRedshift.prototype['redshift-db-name'] = undefined; -/** - * Redshift Host - * @member {String} redshift-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; -/** - * Redshift Password - * @member {String} redshift-password - */ - -GatewayUpdateProducerRedshift.prototype['redshift-password'] = undefined; -/** - * Redshift Port - * @member {String} redshift-port - * @default '5439' - */ - -GatewayUpdateProducerRedshift.prototype['redshift-port'] = '5439'; -/** - * Redshift Username - * @member {String} redshift-username - */ - -GatewayUpdateProducerRedshift.prototype['redshift-username'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerRedshift.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerRedshift.prototype['secure-access-host'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayUpdateProducerRedshift.prototype['ssl'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerRedshift.prototype['tags'] = undefined; +ListTargets.prototype['json'] = false; /** - * Target name - * @member {String} target-name + * Next page reference + * @member {String} pagination-token */ -GatewayUpdateProducerRedshift.prototype['target-name'] = undefined; +ListTargets.prototype['pagination-token'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GatewayUpdateProducerRedshift.prototype['token'] = undefined; +ListTargets.prototype['token'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres] + * @member {Array.} type */ -GatewayUpdateProducerRedshift.prototype['uid-token'] = undefined; +ListTargets.prototype['type'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '60m' + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GatewayUpdateProducerRedshift.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerRedshift; +ListTargets.prototype['uid-token'] = undefined; +var _default = ListTargets; exports["default"] = _default; /***/ }), -/***/ 85128: +/***/ 49966: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -79723,9 +153615,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); +var _Target = _interopRequireDefault(__nccwpck_require__(17364)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -79736,19 +153628,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerRedshiftOutput model module. - * @module model/GatewayUpdateProducerRedshiftOutput - * @version 3.3.16 + * The ListTargetsOutput model module. + * @module model/ListTargetsOutput + * @version 3.6.3 */ -var GatewayUpdateProducerRedshiftOutput = /*#__PURE__*/function () { +var ListTargetsOutput = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerRedshiftOutput. - * @alias module:model/GatewayUpdateProducerRedshiftOutput + * Constructs a new ListTargetsOutput. + * @alias module:model/ListTargetsOutput */ - function GatewayUpdateProducerRedshiftOutput() { - _classCallCheck(this, GatewayUpdateProducerRedshiftOutput); + function ListTargetsOutput() { + _classCallCheck(this, ListTargetsOutput); - GatewayUpdateProducerRedshiftOutput.initialize(this); + ListTargetsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -79757,25 +153649,29 @@ var GatewayUpdateProducerRedshiftOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerRedshiftOutput, null, [{ + _createClass(ListTargetsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ListTargetsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedshiftOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedshiftOutput} The populated GatewayUpdateProducerRedshiftOutput instance. + * @param {module:model/ListTargetsOutput} obj Optional instance to populate. + * @return {module:model/ListTargetsOutput} The populated ListTargetsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerRedshiftOutput(); + obj = obj || new ListTargetsOutput(); - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + } + + if (data.hasOwnProperty('targets')) { + obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_Target["default"]]); } } @@ -79783,20 +153679,25 @@ var GatewayUpdateProducerRedshiftOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerRedshiftOutput; + return ListTargetsOutput; }(); /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} next_page */ -GatewayUpdateProducerRedshiftOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRedshiftOutput; +ListTargetsOutput.prototype['next_page'] = undefined; +/** + * @member {Array.} targets + */ + +ListTargetsOutput.prototype['targets'] = undefined; +var _default = ListTargetsOutput; exports["default"] = _default; /***/ }), -/***/ 92451: +/***/ 75643: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -79807,7 +153708,27 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(28019)); + +var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(93137)); + +var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(47638)); + +var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(79375)); + +var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(51104)); + +var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(37915)); + +var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(45466)); + +var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(7587)); + +var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(22696)); + +var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(74689)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -79818,21 +153739,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateProducerSnowflake model module. - * @module model/GatewayUpdateProducerSnowflake - * @version 3.3.16 + * The LogForwardingConfigPart model module. + * @module model/LogForwardingConfigPart + * @version 3.6.3 */ -var GatewayUpdateProducerSnowflake = /*#__PURE__*/function () { +var LogForwardingConfigPart = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateProducerSnowflake. - * GatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake producer - * @alias module:model/GatewayUpdateProducerSnowflake - * @param name {String} Producer name + * Constructs a new LogForwardingConfigPart. + * @alias module:model/LogForwardingConfigPart */ - function GatewayUpdateProducerSnowflake(name) { - _classCallCheck(this, GatewayUpdateProducerSnowflake); + function LogForwardingConfigPart() { + _classCallCheck(this, LogForwardingConfigPart); - GatewayUpdateProducerSnowflake.initialize(this, name); + LogForwardingConfigPart.initialize(this); } /** * Initializes the fields of this object. @@ -79841,91 +153760,81 @@ var GatewayUpdateProducerSnowflake = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateProducerSnowflake, null, [{ + _createClass(LogForwardingConfigPart, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. + * Constructs a LogForwardingConfigPart from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerSnowflake} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerSnowflake} The populated GatewayUpdateProducerSnowflake instance. + * @param {module:model/LogForwardingConfigPart} obj Optional instance to populate. + * @return {module:model/LogForwardingConfigPart} The populated LogForwardingConfigPart instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateProducerSnowflake(); - - if (data.hasOwnProperty('account')) { - obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); - } - - if (data.hasOwnProperty('account-password')) { - obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); - } + obj = obj || new LogForwardingConfigPart(); - if (data.hasOwnProperty('account-username')) { - obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); + if (data.hasOwnProperty('aws_s3_config')) { + obj['aws_s3_config'] = _AwsS3LogForwardingConfig["default"].constructFromObject(data['aws_s3_config']); } - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + if (data.hasOwnProperty('azure_analytics_config')) { + obj['azure_analytics_config'] = _AzureLogAnalyticsForwardingConfig["default"].constructFromObject(data['azure_analytics_config']); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('datadog_config')) { + obj['datadog_config'] = _DatadogForwardingConfig["default"].constructFromObject(data['datadog_config']); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('elasticsearch_config')) { + obj['elasticsearch_config'] = _ElasticsearchLogForwardingConfig["default"].constructFromObject(data['elasticsearch_config']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('google_chronicle_config')) { + obj['google_chronicle_config'] = _GoogleChronicleForwardingConfig["default"].constructFromObject(data['google_chronicle_config']); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('json_output')) { + obj['json_output'] = _ApiClient["default"].convertToType(data['json_output'], 'Boolean'); } - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + if (data.hasOwnProperty('logan_enable')) { + obj['logan_enable'] = _ApiClient["default"].convertToType(data['logan_enable'], 'Boolean'); } - if (data.hasOwnProperty('private-key-passphrase')) { - obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + if (data.hasOwnProperty('logan_url')) { + obj['logan_url'] = _ApiClient["default"].convertToType(data['logan_url'], 'String'); } - if (data.hasOwnProperty('role')) { - obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + if (data.hasOwnProperty('logstash_config')) { + obj['logstash_config'] = _LogstashLogForwardingConfig["default"].constructFromObject(data['logstash_config']); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + if (data.hasOwnProperty('logz_io_config')) { + obj['logz_io_config'] = _LogzIoLogForwardingConfig["default"].constructFromObject(data['logz_io_config']); } - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + if (data.hasOwnProperty('pull_interval_sec')) { + obj['pull_interval_sec'] = _ApiClient["default"].convertToType(data['pull_interval_sec'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('splunk_config')) { + obj['splunk_config'] = _SplunkLogForwardingConfig["default"].constructFromObject(data['splunk_config']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('sumo_logic_config')) { + obj['sumo_logic_config'] = _SumologicLogForwardingConfig["default"].constructFromObject(data['sumo_logic_config']); } - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + if (data.hasOwnProperty('syslog_config')) { + obj['syslog_config'] = _SyslogLogForwardingConfig["default"].constructFromObject(data['syslog_config']); } - if (data.hasOwnProperty('warehouse')) { - obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); + if (data.hasOwnProperty('target_log_type')) { + obj['target_log_type'] = _ApiClient["default"].convertToType(data['target_log_type'], 'String'); } } @@ -79933,203 +153842,90 @@ var GatewayUpdateProducerSnowflake = /*#__PURE__*/function () { } }]); - return GatewayUpdateProducerSnowflake; + return LogForwardingConfigPart; }(); /** - * Account name - * @member {String} account - */ - - -GatewayUpdateProducerSnowflake.prototype['account'] = undefined; -/** - * Database Password - * @member {String} account-password - */ - -GatewayUpdateProducerSnowflake.prototype['account-password'] = undefined; -/** - * Database Username - * @member {String} account-username - */ - -GatewayUpdateProducerSnowflake.prototype['account-username'] = undefined; -/** - * Database name - * @member {String} db-name + * @member {module:model/AwsS3LogForwardingConfig} aws_s3_config */ -GatewayUpdateProducerSnowflake.prototype['db-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ -GatewayUpdateProducerSnowflake.prototype['delete_protection'] = undefined; +LogForwardingConfigPart.prototype['aws_s3_config'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {module:model/AzureLogAnalyticsForwardingConfig} azure_analytics_config */ -GatewayUpdateProducerSnowflake.prototype['json'] = false; +LogForwardingConfigPart.prototype['azure_analytics_config'] = undefined; /** - * Producer name - * @member {String} name + * @member {module:model/DatadogForwardingConfig} datadog_config */ -GatewayUpdateProducerSnowflake.prototype['name'] = undefined; +LogForwardingConfigPart.prototype['datadog_config'] = undefined; /** - * Producer name - * @member {String} new-name + * @member {module:model/ElasticsearchLogForwardingConfig} elasticsearch_config */ -GatewayUpdateProducerSnowflake.prototype['new-name'] = undefined; +LogForwardingConfigPart.prototype['elasticsearch_config'] = undefined; /** - * RSA Private key (base64 encoded) - * @member {String} private-key + * @member {module:model/GoogleChronicleForwardingConfig} google_chronicle_config */ -GatewayUpdateProducerSnowflake.prototype['private-key'] = undefined; +LogForwardingConfigPart.prototype['google_chronicle_config'] = undefined; /** - * The Private key passphrase - * @member {String} private-key-passphrase + * @member {Boolean} json_output */ -GatewayUpdateProducerSnowflake.prototype['private-key-passphrase'] = undefined; +LogForwardingConfigPart.prototype['json_output'] = undefined; /** - * User role - * @member {String} role + * @member {Boolean} logan_enable */ -GatewayUpdateProducerSnowflake.prototype['role'] = undefined; +LogForwardingConfigPart.prototype['logan_enable'] = undefined; /** - * Add tags attached to this object - * @member {Array.} tags + * @member {String} logan_url */ -GatewayUpdateProducerSnowflake.prototype['tags'] = undefined; +LogForwardingConfigPart.prototype['logan_url'] = undefined; /** - * Target name - * @member {String} target-name + * @member {module:model/LogstashLogForwardingConfig} logstash_config */ -GatewayUpdateProducerSnowflake.prototype['target-name'] = undefined; +LogForwardingConfigPart.prototype['logstash_config'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {module:model/LogzIoLogForwardingConfig} logz_io_config */ -GatewayUpdateProducerSnowflake.prototype['token'] = undefined; +LogForwardingConfigPart.prototype['logz_io_config'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} pull_interval_sec */ -GatewayUpdateProducerSnowflake.prototype['uid-token'] = undefined; +LogForwardingConfigPart.prototype['pull_interval_sec'] = undefined; /** - * User TTL - * @member {String} user-ttl - * @default '24h' + * @member {module:model/SplunkLogForwardingConfig} splunk_config */ -GatewayUpdateProducerSnowflake.prototype['user-ttl'] = '24h'; +LogForwardingConfigPart.prototype['splunk_config'] = undefined; /** - * Warehouse name - * @member {String} warehouse + * @member {module:model/SumologicLogForwardingConfig} sumo_logic_config */ -GatewayUpdateProducerSnowflake.prototype['warehouse'] = undefined; -var _default = GatewayUpdateProducerSnowflake; -exports["default"] = _default; - -/***/ }), - -/***/ 24413: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(5895)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +LogForwardingConfigPart.prototype['sumo_logic_config'] = undefined; /** - * The GatewayUpdateProducerSnowflakeOutput model module. - * @module model/GatewayUpdateProducerSnowflakeOutput - * @version 3.3.16 + * @member {module:model/SyslogLogForwardingConfig} syslog_config */ -var GatewayUpdateProducerSnowflakeOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerSnowflakeOutput. - * @alias module:model/GatewayUpdateProducerSnowflakeOutput - */ - function GatewayUpdateProducerSnowflakeOutput() { - _classCallCheck(this, GatewayUpdateProducerSnowflakeOutput); - - GatewayUpdateProducerSnowflakeOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerSnowflakeOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerSnowflakeOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerSnowflakeOutput} The populated GatewayUpdateProducerSnowflakeOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerSnowflakeOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - return GatewayUpdateProducerSnowflakeOutput; -}(); +LogForwardingConfigPart.prototype['syslog_config'] = undefined; /** - * @member {module:model/DSProducerDetails} producer_details + * @member {String} target_log_type */ - -GatewayUpdateProducerSnowflakeOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerSnowflakeOutput; +LogForwardingConfigPart.prototype['target_log_type'] = undefined; +var _default = LogForwardingConfigPart; exports["default"] = _default; /***/ }), -/***/ 78649: +/***/ 37915: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80140,7 +153936,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -80151,20 +153947,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateTlsCert model module. - * @module model/GatewayUpdateTlsCert - * @version 3.3.16 + * The LogstashLogForwardingConfig model module. + * @module model/LogstashLogForwardingConfig + * @version 3.6.3 */ -var GatewayUpdateTlsCert = /*#__PURE__*/function () { +var LogstashLogForwardingConfig = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateTlsCert. - * gatewayUpdateTlsCert is a command that updates Gateway TLS certificate - * @alias module:model/GatewayUpdateTlsCert + * Constructs a new LogstashLogForwardingConfig. + * @alias module:model/LogstashLogForwardingConfig */ - function GatewayUpdateTlsCert() { - _classCallCheck(this, GatewayUpdateTlsCert); + function LogstashLogForwardingConfig() { + _classCallCheck(this, LogstashLogForwardingConfig); - GatewayUpdateTlsCert.initialize(this); + LogstashLogForwardingConfig.initialize(this); } /** * Initializes the fields of this object. @@ -80173,41 +153968,37 @@ var GatewayUpdateTlsCert = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateTlsCert, null, [{ + _createClass(LogstashLogForwardingConfig, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateTlsCert from a plain JavaScript object, optionally creating a new instance. + * Constructs a LogstashLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateTlsCert} obj Optional instance to populate. - * @return {module:model/GatewayUpdateTlsCert} The populated GatewayUpdateTlsCert instance. + * @param {module:model/LogstashLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/LogstashLogForwardingConfig} The populated LogstashLogForwardingConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateTlsCert(); - - if (data.hasOwnProperty('cert-data')) { - obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); - } + obj = obj || new LogstashLogForwardingConfig(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('logstash_dns')) { + obj['logstash_dns'] = _ApiClient["default"].convertToType(data['logstash_dns'], 'String'); } - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + if (data.hasOwnProperty('logstash_enable_tls')) { + obj['logstash_enable_tls'] = _ApiClient["default"].convertToType(data['logstash_enable_tls'], 'Boolean'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('logstash_protocol')) { + obj['logstash_protocol'] = _ApiClient["default"].convertToType(data['logstash_protocol'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('logstash_tls_certificate')) { + obj['logstash_tls_certificate'] = _ApiClient["default"].convertToType(data['logstash_tls_certificate'], 'String'); } } @@ -80215,46 +154006,35 @@ var GatewayUpdateTlsCert = /*#__PURE__*/function () { } }]); - return GatewayUpdateTlsCert; + return LogstashLogForwardingConfig; }(); /** - * TLS Certificate (base64 encoded) - * @member {String} cert-data + * @member {String} logstash_dns */ -GatewayUpdateTlsCert.prototype['cert-data'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateTlsCert.prototype['json'] = false; +LogstashLogForwardingConfig.prototype['logstash_dns'] = undefined; /** - * TLS Private Key (base64 encoded) - * @member {String} key-data + * @member {Boolean} logstash_enable_tls */ -GatewayUpdateTlsCert.prototype['key-data'] = undefined; +LogstashLogForwardingConfig.prototype['logstash_enable_tls'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} logstash_protocol */ -GatewayUpdateTlsCert.prototype['token'] = undefined; +LogstashLogForwardingConfig.prototype['logstash_protocol'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} logstash_tls_certificate */ -GatewayUpdateTlsCert.prototype['uid-token'] = undefined; -var _default = GatewayUpdateTlsCert; +LogstashLogForwardingConfig.prototype['logstash_tls_certificate'] = undefined; +var _default = LogstashLogForwardingConfig; exports["default"] = _default; /***/ }), -/***/ 61990: +/***/ 45466: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80265,7 +154045,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -80276,19 +154056,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateTlsCertOutput model module. - * @module model/GatewayUpdateTlsCertOutput - * @version 3.3.16 + * The LogzIoLogForwardingConfig model module. + * @module model/LogzIoLogForwardingConfig + * @version 3.6.3 */ -var GatewayUpdateTlsCertOutput = /*#__PURE__*/function () { +var LogzIoLogForwardingConfig = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateTlsCertOutput. - * @alias module:model/GatewayUpdateTlsCertOutput + * Constructs a new LogzIoLogForwardingConfig. + * @alias module:model/LogzIoLogForwardingConfig */ - function GatewayUpdateTlsCertOutput() { - _classCallCheck(this, GatewayUpdateTlsCertOutput); + function LogzIoLogForwardingConfig() { + _classCallCheck(this, LogzIoLogForwardingConfig); - GatewayUpdateTlsCertOutput.initialize(this); + LogzIoLogForwardingConfig.initialize(this); } /** * Initializes the fields of this object. @@ -80297,25 +154077,29 @@ var GatewayUpdateTlsCertOutput = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateTlsCertOutput, null, [{ + _createClass(LogzIoLogForwardingConfig, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GatewayUpdateTlsCertOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a LogzIoLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateTlsCertOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateTlsCertOutput} The populated GatewayUpdateTlsCertOutput instance. + * @param {module:model/LogzIoLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/LogzIoLogForwardingConfig} The populated LogzIoLogForwardingConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateTlsCertOutput(); + obj = obj || new LogzIoLogForwardingConfig(); - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('target_logz_io_protocol')) { + obj['target_logz_io_protocol'] = _ApiClient["default"].convertToType(data['target_logz_io_protocol'], 'String'); + } + + if (data.hasOwnProperty('target_logz_io_token')) { + obj['target_logz_io_token'] = _ApiClient["default"].convertToType(data['target_logz_io_token'], 'String'); } } @@ -80323,20 +154107,25 @@ var GatewayUpdateTlsCertOutput = /*#__PURE__*/function () { } }]); - return GatewayUpdateTlsCertOutput; + return LogzIoLogForwardingConfig; }(); /** - * @member {Boolean} updated + * @member {String} target_logz_io_protocol */ -GatewayUpdateTlsCertOutput.prototype['updated'] = undefined; -var _default = GatewayUpdateTlsCertOutput; +LogzIoLogForwardingConfig.prototype['target_logz_io_protocol'] = undefined; +/** + * @member {String} target_logz_io_token + */ + +LogzIoLogForwardingConfig.prototype['target_logz_io_token'] = undefined; +var _default = LogzIoLogForwardingConfig; exports["default"] = _default; /***/ }), -/***/ 4090: +/***/ 11801: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80347,7 +154136,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -80358,23 +154147,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GatewayUpdateTmpUsers model module. - * @module model/GatewayUpdateTmpUsers - * @version 3.3.16 + * The MigrationGeneral model module. + * @module model/MigrationGeneral + * @version 3.6.3 */ -var GatewayUpdateTmpUsers = /*#__PURE__*/function () { +var MigrationGeneral = /*#__PURE__*/function () { /** - * Constructs a new GatewayUpdateTmpUsers. - * gatewayUpdateTmpUsers is a command that returns gateway configuration - * @alias module:model/GatewayUpdateTmpUsers - * @param name {String} Producer Name - * @param newTtlMin {Number} New TTL in Minutes - * @param tmpCredsId {String} Tmp Creds ID + * Constructs a new MigrationGeneral. + * @alias module:model/MigrationGeneral */ - function GatewayUpdateTmpUsers(name, newTtlMin, tmpCredsId) { - _classCallCheck(this, GatewayUpdateTmpUsers); + function MigrationGeneral() { + _classCallCheck(this, MigrationGeneral); - GatewayUpdateTmpUsers.initialize(this, name, newTtlMin, tmpCredsId); + MigrationGeneral.initialize(this); } /** * Initializes the fields of this object. @@ -80383,49 +154168,53 @@ var GatewayUpdateTmpUsers = /*#__PURE__*/function () { */ - _createClass(GatewayUpdateTmpUsers, null, [{ + _createClass(MigrationGeneral, null, [{ key: "initialize", - value: function initialize(obj, name, newTtlMin, tmpCredsId) { - obj['name'] = name; - obj['new-ttl-min'] = newTtlMin; - obj['tmp-creds-id'] = tmpCredsId; - } + value: function initialize(obj) {} /** - * Constructs a GatewayUpdateTmpUsers from a plain JavaScript object, optionally creating a new instance. + * Constructs a MigrationGeneral from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateTmpUsers} obj Optional instance to populate. - * @return {module:model/GatewayUpdateTmpUsers} The populated GatewayUpdateTmpUsers instance. + * @param {module:model/MigrationGeneral} obj Optional instance to populate. + * @return {module:model/MigrationGeneral} The populated MigrationGeneral instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GatewayUpdateTmpUsers(); + obj = obj || new MigrationGeneral(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('last_migration')) { + obj['last_migration'] = _ApiClient["default"].convertToType(data['last_migration'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-ttl-min')) { - obj['new-ttl-min'] = _ApiClient["default"].convertToType(data['new-ttl-min'], 'Number'); + if (data.hasOwnProperty('new_name')) { + obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); } - if (data.hasOwnProperty('tmp-creds-id')) { - obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + if (data.hasOwnProperty('prefix')) { + obj['prefix'] = _ApiClient["default"].convertToType(data['prefix'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } } @@ -80433,137 +154222,55 @@ var GatewayUpdateTmpUsers = /*#__PURE__*/function () { } }]); - return GatewayUpdateTmpUsers; + return MigrationGeneral; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} id */ -GatewayUpdateTmpUsers.prototype['json'] = false; +MigrationGeneral.prototype['id'] = undefined; /** - * Producer Name - * @member {String} name + * @member {String} last_migration */ -GatewayUpdateTmpUsers.prototype['name'] = undefined; +MigrationGeneral.prototype['last_migration'] = undefined; /** - * New TTL in Minutes - * @member {Number} new-ttl-min + * @member {String} name */ -GatewayUpdateTmpUsers.prototype['new-ttl-min'] = undefined; +MigrationGeneral.prototype['name'] = undefined; /** - * Tmp Creds ID - * @member {String} tmp-creds-id + * @member {String} new_name */ -GatewayUpdateTmpUsers.prototype['tmp-creds-id'] = undefined; +MigrationGeneral.prototype['new_name'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} prefix */ -GatewayUpdateTmpUsers.prototype['token'] = undefined; +MigrationGeneral.prototype['prefix'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} protection_key */ -GatewayUpdateTmpUsers.prototype['uid-token'] = undefined; -var _default = GatewayUpdateTmpUsers; -exports["default"] = _default; - -/***/ }), - -/***/ 42947: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(6556)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +MigrationGeneral.prototype['protection_key'] = undefined; /** - * The GatewaysListResponse model module. - * @module model/GatewaysListResponse - * @version 3.3.16 + * @member {String} status */ -var GatewaysListResponse = /*#__PURE__*/function () { - /** - * Constructs a new GatewaysListResponse. - * GatewaysListResponse Gateway cluster identity list - * @alias module:model/GatewaysListResponse - */ - function GatewaysListResponse() { - _classCallCheck(this, GatewaysListResponse); - - GatewaysListResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewaysListResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewaysListResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewaysListResponse} obj Optional instance to populate. - * @return {module:model/GatewaysListResponse} The populated GatewaysListResponse instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewaysListResponse(); - - if (data.hasOwnProperty('clusters')) { - obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_GwClusterIdentity["default"]]); - } - } - - return obj; - } - }]); - return GatewaysListResponse; -}(); +MigrationGeneral.prototype['status'] = undefined; /** - * @member {Array.} clusters + * @member {String} type */ - -GatewaysListResponse.prototype['clusters'] = undefined; -var _default = GatewaysListResponse; +MigrationGeneral.prototype['type'] = undefined; +var _default = MigrationGeneral; exports["default"] = _default; /***/ }), -/***/ 92431: +/***/ 31445: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80574,7 +154281,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -80585,19 +154292,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GcpTargetDetails model module. - * @module model/GcpTargetDetails - * @version 3.3.16 + * The MigrationItems model module. + * @module model/MigrationItems + * @version 3.6.3 */ -var GcpTargetDetails = /*#__PURE__*/function () { +var MigrationItems = /*#__PURE__*/function () { /** - * Constructs a new GcpTargetDetails. - * @alias module:model/GcpTargetDetails + * Constructs a new MigrationItems. + * @alias module:model/MigrationItems */ - function GcpTargetDetails() { - _classCallCheck(this, GcpTargetDetails); + function MigrationItems() { + _classCallCheck(this, MigrationItems); - GcpTargetDetails.initialize(this); + MigrationItems.initialize(this); } /** * Initializes the fields of this object. @@ -80606,37 +154313,41 @@ var GcpTargetDetails = /*#__PURE__*/function () { */ - _createClass(GcpTargetDetails, null, [{ + _createClass(MigrationItems, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GcpTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a MigrationItems from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcpTargetDetails} obj Optional instance to populate. - * @return {module:model/GcpTargetDetails} The populated GcpTargetDetails instance. + * @param {module:model/MigrationItems} obj Optional instance to populate. + * @return {module:model/MigrationItems} The populated MigrationItems instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GcpTargetDetails(); + obj = obj || new MigrationItems(); - if (data.hasOwnProperty('gcp_service_account_email')) { - obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); + if (data.hasOwnProperty('failed')) { + obj['failed'] = _ApiClient["default"].convertToType(data['failed'], 'Number'); } - if (data.hasOwnProperty('gcp_service_account_key')) { - obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); + if (data.hasOwnProperty('migrated')) { + obj['migrated'] = _ApiClient["default"].convertToType(data['migrated'], 'Number'); } - if (data.hasOwnProperty('gcp_service_account_key_base64')) { - obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); + if (data.hasOwnProperty('skipped')) { + obj['skipped'] = _ApiClient["default"].convertToType(data['skipped'], 'Number'); } - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + if (data.hasOwnProperty('total')) { + obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); + } + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Number'); } } @@ -80644,36 +154355,40 @@ var GcpTargetDetails = /*#__PURE__*/function () { } }]); - return GcpTargetDetails; + return MigrationItems; }(); /** - * deprecated - * @member {String} gcp_service_account_email + * @member {Number} failed */ -GcpTargetDetails.prototype['gcp_service_account_email'] = undefined; +MigrationItems.prototype['failed'] = undefined; /** - * @member {String} gcp_service_account_key + * @member {Number} migrated */ -GcpTargetDetails.prototype['gcp_service_account_key'] = undefined; +MigrationItems.prototype['migrated'] = undefined; /** - * @member {String} gcp_service_account_key_base64 + * @member {Number} skipped */ -GcpTargetDetails.prototype['gcp_service_account_key_base64'] = undefined; +MigrationItems.prototype['skipped'] = undefined; /** - * @member {Boolean} use_gw_cloud_identity + * @member {Number} total */ -GcpTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = GcpTargetDetails; +MigrationItems.prototype['total'] = undefined; +/** + * @member {Number} updated + */ + +MigrationItems.prototype['updated'] = undefined; +var _default = MigrationItems; exports["default"] = _default; /***/ }), -/***/ 92120: +/***/ 6591: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80684,7 +154399,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -80695,19 +154410,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GenCustomerFragment model module. - * @module model/GenCustomerFragment - * @version 3.3.16 + * The MigrationStatus model module. + * @module model/MigrationStatus + * @version 3.6.3 */ -var GenCustomerFragment = /*#__PURE__*/function () { +var MigrationStatus = /*#__PURE__*/function () { /** - * Constructs a new GenCustomerFragment. - * @alias module:model/GenCustomerFragment + * Constructs a new MigrationStatus. + * @alias module:model/MigrationStatus */ - function GenCustomerFragment() { - _classCallCheck(this, GenCustomerFragment); + function MigrationStatus() { + _classCallCheck(this, MigrationStatus); - GenCustomerFragment.initialize(this); + MigrationStatus.initialize(this); } /** * Initializes the fields of this object. @@ -80716,33 +154431,39 @@ var GenCustomerFragment = /*#__PURE__*/function () { */ - _createClass(GenCustomerFragment, null, [{ + _createClass(MigrationStatus, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GenCustomerFragment from a plain JavaScript object, optionally creating a new instance. + * Constructs a MigrationStatus from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenCustomerFragment} obj Optional instance to populate. - * @return {module:model/GenCustomerFragment} The populated GenCustomerFragment instance. + * @param {module:model/MigrationStatus} obj Optional instance to populate. + * @return {module:model/MigrationStatus} The populated MigrationStatus instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GenCustomerFragment(); + obj = obj || new MigrationStatus(); - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('last_messages')) { + obj['last_messages'] = _ApiClient["default"].convertToType(data['last_messages'], { + 'String': 'String' + }); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('last_reports')) { + obj['last_reports'] = _ApiClient["default"].convertToType(data['last_reports'], { + 'String': 'String' + }); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + if (data.hasOwnProperty('last_statuses')) { + obj['last_statuses'] = _ApiClient["default"].convertToType(data['last_statuses'], { + 'String': 'String' + }); } } @@ -80750,34 +154471,30 @@ var GenCustomerFragment = /*#__PURE__*/function () { } }]); - return GenCustomerFragment; + return MigrationStatus; }(); /** - * Description of the object - * @member {String} description + * @member {Object.} last_messages */ -GenCustomerFragment.prototype['description'] = undefined; +MigrationStatus.prototype['last_messages'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Object.} last_reports */ -GenCustomerFragment.prototype['json'] = false; +MigrationStatus.prototype['last_reports'] = undefined; /** - * Deprecated - use description - * @member {String} metadata + * @member {Object.} last_statuses */ -GenCustomerFragment.prototype['metadata'] = undefined; -var _default = GenCustomerFragment; +MigrationStatus.prototype['last_statuses'] = undefined; +var _default = MigrationStatus; exports["default"] = _default; /***/ }), -/***/ 98926: +/***/ 81914: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80788,7 +154505,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _MigrationItems = _interopRequireDefault(__nccwpck_require__(31445)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -80799,19 +154518,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GeneralConfigPart model module. - * @module model/GeneralConfigPart - * @version 3.3.16 + * The MigrationStatusReplyObj model module. + * @module model/MigrationStatusReplyObj + * @version 3.6.3 */ -var GeneralConfigPart = /*#__PURE__*/function () { +var MigrationStatusReplyObj = /*#__PURE__*/function () { /** - * Constructs a new GeneralConfigPart. - * @alias module:model/GeneralConfigPart + * Constructs a new MigrationStatusReplyObj. + * @alias module:model/MigrationStatusReplyObj */ - function GeneralConfigPart() { - _classCallCheck(this, GeneralConfigPart); + function MigrationStatusReplyObj() { + _classCallCheck(this, MigrationStatusReplyObj); - GeneralConfigPart.initialize(this); + MigrationStatusReplyObj.initialize(this); } /** * Initializes the fields of this object. @@ -80820,69 +154539,81 @@ var GeneralConfigPart = /*#__PURE__*/function () { */ - _createClass(GeneralConfigPart, null, [{ + _createClass(MigrationStatusReplyObj, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GeneralConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a MigrationStatusReplyObj from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GeneralConfigPart} obj Optional instance to populate. - * @return {module:model/GeneralConfigPart} The populated GeneralConfigPart instance. + * @param {module:model/MigrationStatusReplyObj} obj Optional instance to populate. + * @return {module:model/MigrationStatusReplyObj} The populated MigrationStatusReplyObj instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GeneralConfigPart(); + obj = obj || new MigrationStatusReplyObj(); - if (data.hasOwnProperty('akeyless_url')) { - obj['akeyless_url'] = _ApiClient["default"].convertToType(data['akeyless_url'], 'String'); + if (data.hasOwnProperty('computers')) { + obj['computers'] = _ApiClient["default"].convertToType(data['computers'], 'Number'); } - if (data.hasOwnProperty('api_token_ttl')) { - obj['api_token_ttl'] = _ApiClient["default"].convertToType(data['api_token_ttl'], 'String'); + if (data.hasOwnProperty('duration_time')) { + obj['duration_time'] = _ApiClient["default"].convertToType(data['duration_time'], 'String'); } - if (data.hasOwnProperty('display_name')) { - obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + if (data.hasOwnProperty('error')) { + obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); } - if (data.hasOwnProperty('enable_sni_proxy')) { - obj['enable_sni_proxy'] = _ApiClient["default"].convertToType(data['enable_sni_proxy'], 'Boolean'); + if (data.hasOwnProperty('last_status_message')) { + obj['last_status_message'] = _ApiClient["default"].convertToType(data['last_status_message'], 'String'); } - if (data.hasOwnProperty('enable_tls')) { - obj['enable_tls'] = _ApiClient["default"].convertToType(data['enable_tls'], 'Boolean'); + if (data.hasOwnProperty('max_name_length')) { + obj['max_name_length'] = _ApiClient["default"].convertToType(data['max_name_length'], 'Number'); } - if (data.hasOwnProperty('enable_tls_configure')) { - obj['enable_tls_configure'] = _ApiClient["default"].convertToType(data['enable_tls_configure'], 'Boolean'); + if (data.hasOwnProperty('max_value_length')) { + obj['max_value_length'] = _ApiClient["default"].convertToType(data['max_value_length'], 'Number'); } - if (data.hasOwnProperty('enable_tls_curl')) { - obj['enable_tls_curl'] = _ApiClient["default"].convertToType(data['enable_tls_curl'], 'Boolean'); + if (data.hasOwnProperty('migration_id')) { + obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); } - if (data.hasOwnProperty('enable_tls_hvp')) { - obj['enable_tls_hvp'] = _ApiClient["default"].convertToType(data['enable_tls_hvp'], 'Boolean'); + if (data.hasOwnProperty('migration_items')) { + obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); } - if (data.hasOwnProperty('gw_cluster_url')) { - obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); } - if (data.hasOwnProperty('tcp_port')) { - obj['tcp_port'] = _ApiClient["default"].convertToType(data['tcp_port'], 'String'); + if (data.hasOwnProperty('migration_state')) { + obj['migration_state'] = _ApiClient["default"].convertToType(data['migration_state'], 'String'); } - if (data.hasOwnProperty('tls_cert')) { - obj['tls_cert'] = _ApiClient["default"].convertToType(data['tls_cert'], 'String'); + if (data.hasOwnProperty('migration_type')) { + obj['migration_type'] = _ApiClient["default"].convertToType(data['migration_type'], 'String'); } - if (data.hasOwnProperty('tls_key')) { - obj['tls_key'] = _ApiClient["default"].convertToType(data['tls_key'], 'String'); + if (data.hasOwnProperty('migration_type_name')) { + obj['migration_type_name'] = _ApiClient["default"].convertToType(data['migration_type_name'], 'String'); + } + + if (data.hasOwnProperty('rotated_secrets')) { + obj['rotated_secrets'] = _MigrationItems["default"].constructFromObject(data['rotated_secrets']); + } + + if (data.hasOwnProperty('start_time')) { + obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'String'); + } + + if (data.hasOwnProperty('targets')) { + obj['targets'] = _MigrationItems["default"].constructFromObject(data['targets']); } } @@ -80890,76 +154621,90 @@ var GeneralConfigPart = /*#__PURE__*/function () { } }]); - return GeneralConfigPart; + return MigrationStatusReplyObj; }(); /** - * AkeylessUrl is here for BC only. Gator will still return it if it exists in the configuration, but new clients (>=2.34.0) will ignore it and override it with what exists in their local file. It will no longer be sent to Gator for update, so new clusters will only have the default value saved in the DB. - * @member {String} akeyless_url + * @member {Number} computers */ -GeneralConfigPart.prototype['akeyless_url'] = undefined; +MigrationStatusReplyObj.prototype['computers'] = undefined; /** - * @member {String} api_token_ttl + * @member {String} duration_time */ -GeneralConfigPart.prototype['api_token_ttl'] = undefined; +MigrationStatusReplyObj.prototype['duration_time'] = undefined; /** - * @member {String} display_name + * @member {String} error */ -GeneralConfigPart.prototype['display_name'] = undefined; +MigrationStatusReplyObj.prototype['error'] = undefined; /** - * @member {Boolean} enable_sni_proxy + * @member {String} last_status_message */ -GeneralConfigPart.prototype['enable_sni_proxy'] = undefined; +MigrationStatusReplyObj.prototype['last_status_message'] = undefined; /** - * @member {Boolean} enable_tls + * @member {Number} max_name_length */ -GeneralConfigPart.prototype['enable_tls'] = undefined; +MigrationStatusReplyObj.prototype['max_name_length'] = undefined; /** - * @member {Boolean} enable_tls_configure + * @member {Number} max_value_length */ -GeneralConfigPart.prototype['enable_tls_configure'] = undefined; +MigrationStatusReplyObj.prototype['max_value_length'] = undefined; /** - * @member {Boolean} enable_tls_curl + * @member {String} migration_id */ -GeneralConfigPart.prototype['enable_tls_curl'] = undefined; +MigrationStatusReplyObj.prototype['migration_id'] = undefined; /** - * @member {Boolean} enable_tls_hvp + * @member {module:model/MigrationItems} migration_items */ -GeneralConfigPart.prototype['enable_tls_hvp'] = undefined; +MigrationStatusReplyObj.prototype['migration_items'] = undefined; /** - * @member {String} gw_cluster_url + * @member {String} migration_name */ -GeneralConfigPart.prototype['gw_cluster_url'] = undefined; +MigrationStatusReplyObj.prototype['migration_name'] = undefined; /** - * @member {String} tcp_port + * @member {String} migration_state */ -GeneralConfigPart.prototype['tcp_port'] = undefined; +MigrationStatusReplyObj.prototype['migration_state'] = undefined; /** - * @member {String} tls_cert + * @member {String} migration_type */ -GeneralConfigPart.prototype['tls_cert'] = undefined; +MigrationStatusReplyObj.prototype['migration_type'] = undefined; /** - * @member {String} tls_key + * @member {String} migration_type_name */ -GeneralConfigPart.prototype['tls_key'] = undefined; -var _default = GeneralConfigPart; +MigrationStatusReplyObj.prototype['migration_type_name'] = undefined; +/** + * @member {module:model/MigrationItems} rotated_secrets + */ + +MigrationStatusReplyObj.prototype['rotated_secrets'] = undefined; +/** + * @member {String} start_time + */ + +MigrationStatusReplyObj.prototype['start_time'] = undefined; +/** + * @member {module:model/MigrationItems} targets + */ + +MigrationStatusReplyObj.prototype['targets'] = undefined; +var _default = MigrationStatusReplyObj; exports["default"] = _default; /***/ }), -/***/ 53143: +/***/ 1370: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80970,7 +154715,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -80981,21 +154726,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GenerateCsr model module. - * @module model/GenerateCsr - * @version 3.3.16 + * The MigrationsConfigLastChange model module. + * @module model/MigrationsConfigLastChange + * @version 3.6.3 */ -var GenerateCsr = /*#__PURE__*/function () { +var MigrationsConfigLastChange = /*#__PURE__*/function () { /** - * Constructs a new GenerateCsr. - * @alias module:model/GenerateCsr - * @param commonName {String} The common name to be included in the CSR certificate - * @param name {String} The classic key name + * Constructs a new MigrationsConfigLastChange. + * @alias module:model/MigrationsConfigLastChange */ - function GenerateCsr(commonName, name) { - _classCallCheck(this, GenerateCsr); + function MigrationsConfigLastChange() { + _classCallCheck(this, MigrationsConfigLastChange); - GenerateCsr.initialize(this, commonName, name); + MigrationsConfigLastChange.initialize(this); } /** * Initializes the fields of this object. @@ -81004,96 +154747,175 @@ var GenerateCsr = /*#__PURE__*/function () { */ - _createClass(GenerateCsr, null, [{ + _createClass(MigrationsConfigLastChange, null, [{ key: "initialize", - value: function initialize(obj, commonName, name) { - obj['common-name'] = commonName; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GenerateCsr from a plain JavaScript object, optionally creating a new instance. + * Constructs a MigrationsConfigLastChange from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateCsr} obj Optional instance to populate. - * @return {module:model/GenerateCsr} The populated GenerateCsr instance. + * @param {module:model/MigrationsConfigLastChange} obj Optional instance to populate. + * @return {module:model/MigrationsConfigLastChange} The populated MigrationsConfigLastChange instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GenerateCsr(); + obj = obj || new MigrationsConfigLastChange(); - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + if (data.hasOwnProperty('changed_migrations')) { + obj['changed_migrations'] = _ApiClient["default"].convertToType(data['changed_migrations'], ['String']); } - if (data.hasOwnProperty('alt-names')) { - obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); + if (data.hasOwnProperty('created_migrations')) { + obj['created_migrations'] = _ApiClient["default"].convertToType(data['created_migrations'], ['String']); } - if (data.hasOwnProperty('certificate-type')) { - obj['certificate-type'] = _ApiClient["default"].convertToType(data['certificate-type'], 'String'); + if (data.hasOwnProperty('deleted_migrations')) { + obj['deleted_migrations'] = _ApiClient["default"].convertToType(data['deleted_migrations'], ['String']); } + } - if (data.hasOwnProperty('city')) { - obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); - } + return MigrationsConfigLastChange; +}(); +/** + * @member {Array.} changed_migrations + */ - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - if (data.hasOwnProperty('critical')) { - obj['critical'] = _ApiClient["default"].convertToType(data['critical'], 'Boolean'); - } +MigrationsConfigLastChange.prototype['changed_migrations'] = undefined; +/** + * @member {Array.} created_migrations + */ - if (data.hasOwnProperty('dep')) { - obj['dep'] = _ApiClient["default"].convertToType(data['dep'], 'String'); - } +MigrationsConfigLastChange.prototype['created_migrations'] = undefined; +/** + * @member {Array.} deleted_migrations + */ - if (data.hasOwnProperty('email-addresses')) { - obj['email-addresses'] = _ApiClient["default"].convertToType(data['email-addresses'], 'String'); - } +MigrationsConfigLastChange.prototype['deleted_migrations'] = undefined; +var _default = MigrationsConfigLastChange; +exports["default"] = _default; - if (data.hasOwnProperty('generate-key')) { - obj['generate-key'] = _ApiClient["default"].convertToType(data['generate-key'], 'Boolean'); +/***/ }), + +/***/ 83635: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(59663)); + +var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(42422)); + +var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(76303)); + +var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(10472)); + +var _HashiMigration = _interopRequireDefault(__nccwpck_require__(52932)); + +var _K8SMigration = _interopRequireDefault(__nccwpck_require__(19797)); + +var _MockMigration = _interopRequireDefault(__nccwpck_require__(39419)); + +var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(88702)); + +var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(40758)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The MigrationsConfigPart model module. + * @module model/MigrationsConfigPart + * @version 3.6.3 + */ +var MigrationsConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new MigrationsConfigPart. + * @alias module:model/MigrationsConfigPart + */ + function MigrationsConfigPart() { + _classCallCheck(this, MigrationsConfigPart); + + MigrationsConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MigrationsConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a MigrationsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrationsConfigPart} obj Optional instance to populate. + * @return {module:model/MigrationsConfigPart} The populated MigrationsConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrationsConfigPart(); + + if (data.hasOwnProperty('active_directory_migrations')) { + obj['active_directory_migrations'] = _ApiClient["default"].convertToType(data['active_directory_migrations'], [_ActiveDirectoryMigration["default"]]); } - if (data.hasOwnProperty('ip-addresses')) { - obj['ip-addresses'] = _ApiClient["default"].convertToType(data['ip-addresses'], 'String'); + if (data.hasOwnProperty('aws_secrets_migrations')) { + obj['aws_secrets_migrations'] = _ApiClient["default"].convertToType(data['aws_secrets_migrations'], [_AWSSecretsMigration["default"]]); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('azure_kv_migrations')) { + obj['azure_kv_migrations'] = _ApiClient["default"].convertToType(data['azure_kv_migrations'], [_AzureKeyVaultMigration["default"]]); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('gcp_secrets_migrations')) { + obj['gcp_secrets_migrations'] = _ApiClient["default"].convertToType(data['gcp_secrets_migrations'], [_GCPSecretsMigration["default"]]); } - if (data.hasOwnProperty('org')) { - obj['org'] = _ApiClient["default"].convertToType(data['org'], 'String'); + if (data.hasOwnProperty('hashi_migrations')) { + obj['hashi_migrations'] = _ApiClient["default"].convertToType(data['hashi_migrations'], [_HashiMigration["default"]]); } - if (data.hasOwnProperty('state')) { - obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + if (data.hasOwnProperty('k8s_migrations')) { + obj['k8s_migrations'] = _ApiClient["default"].convertToType(data['k8s_migrations'], [_K8SMigration["default"]]); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('mock_migrations')) { + obj['mock_migrations'] = _ApiClient["default"].convertToType(data['mock_migrations'], [_MockMigration["default"]]); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('one_password_migrations')) { + obj['one_password_migrations'] = _ApiClient["default"].convertToType(data['one_password_migrations'], [_OnePasswordMigration["default"]]); } - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + if (data.hasOwnProperty('server_inventory_migrations')) { + obj['server_inventory_migrations'] = _ApiClient["default"].convertToType(data['server_inventory_migrations'], [_ServerInventoryMigration["default"]]); } } @@ -81101,123 +154923,60 @@ var GenerateCsr = /*#__PURE__*/function () { } }]); - return GenerateCsr; + return MigrationsConfigPart; }(); /** - * @member {String} alg - */ - - -GenerateCsr.prototype['alg'] = undefined; -/** - * A comma-separated list of dns alternative names - * @member {String} alt-names - */ - -GenerateCsr.prototype['alt-names'] = undefined; -/** - * The certificate type to be included in the CSR certificate (ssl-client/ssl-server/certificate-signing) - * @member {String} certificate-type - */ - -GenerateCsr.prototype['certificate-type'] = undefined; -/** - * The city to be included in the CSR certificate - * @member {String} city - */ - -GenerateCsr.prototype['city'] = undefined; -/** - * The common name to be included in the CSR certificate - * @member {String} common-name - */ - -GenerateCsr.prototype['common-name'] = undefined; -/** - * The country to be included in the CSR certificate - * @member {String} country - */ - -GenerateCsr.prototype['country'] = undefined; -/** - * Add critical to the key usage extension (will be false if not added) - * @member {Boolean} critical - */ - -GenerateCsr.prototype['critical'] = undefined; -/** - * The department to be included in the CSR certificate - * @member {String} dep - */ - -GenerateCsr.prototype['dep'] = undefined; -/** - * A comma-separated list of email addresses alternative names - * @member {String} email-addresses + * @member {Array.} active_directory_migrations */ -GenerateCsr.prototype['email-addresses'] = undefined; -/** - * Generate a new classic key for the csr - * @member {Boolean} generate-key - */ -GenerateCsr.prototype['generate-key'] = undefined; +MigrationsConfigPart.prototype['active_directory_migrations'] = undefined; /** - * A comma-separated list of ip addresses alternative names - * @member {String} ip-addresses + * @member {Array.} aws_secrets_migrations */ -GenerateCsr.prototype['ip-addresses'] = undefined; +MigrationsConfigPart.prototype['aws_secrets_migrations'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Array.} azure_kv_migrations */ -GenerateCsr.prototype['json'] = false; +MigrationsConfigPart.prototype['azure_kv_migrations'] = undefined; /** - * The classic key name - * @member {String} name + * @member {Array.} gcp_secrets_migrations */ -GenerateCsr.prototype['name'] = undefined; +MigrationsConfigPart.prototype['gcp_secrets_migrations'] = undefined; /** - * The organization to be included in the CSR certificate - * @member {String} org + * @member {Array.} hashi_migrations */ -GenerateCsr.prototype['org'] = undefined; +MigrationsConfigPart.prototype['hashi_migrations'] = undefined; /** - * The state to be included in the CSR certificate - * @member {String} state + * @member {Array.} k8s_migrations */ -GenerateCsr.prototype['state'] = undefined; +MigrationsConfigPart.prototype['k8s_migrations'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Array.} mock_migrations */ -GenerateCsr.prototype['token'] = undefined; +MigrationsConfigPart.prototype['mock_migrations'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} one_password_migrations */ -GenerateCsr.prototype['uid-token'] = undefined; +MigrationsConfigPart.prototype['one_password_migrations'] = undefined; /** - * A comma-separated list of uri alternative names - * @member {String} uri-sans + * @member {Array.} server_inventory_migrations */ -GenerateCsr.prototype['uri-sans'] = undefined; -var _default = GenerateCsr; +MigrationsConfigPart.prototype['server_inventory_migrations'] = undefined; +var _default = MigrationsConfigPart; exports["default"] = _default; /***/ }), -/***/ 86689: +/***/ 39419: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81228,7 +154987,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); + +var _MockPayload = _interopRequireDefault(__nccwpck_require__(99993)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -81239,19 +155002,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GenerateCsrOutput model module. - * @module model/GenerateCsrOutput - * @version 3.3.16 + * The MockMigration model module. + * @module model/MockMigration + * @version 3.6.3 */ -var GenerateCsrOutput = /*#__PURE__*/function () { +var MockMigration = /*#__PURE__*/function () { /** - * Constructs a new GenerateCsrOutput. - * @alias module:model/GenerateCsrOutput + * Constructs a new MockMigration. + * @alias module:model/MockMigration */ - function GenerateCsrOutput() { - _classCallCheck(this, GenerateCsrOutput); + function MockMigration() { + _classCallCheck(this, MockMigration); - GenerateCsrOutput.initialize(this); + MockMigration.initialize(this); } /** * Initializes the fields of this object. @@ -81260,25 +155023,29 @@ var GenerateCsrOutput = /*#__PURE__*/function () { */ - _createClass(GenerateCsrOutput, null, [{ + _createClass(MockMigration, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GenerateCsrOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a MockMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateCsrOutput} obj Optional instance to populate. - * @return {module:model/GenerateCsrOutput} The populated GenerateCsrOutput instance. + * @param {module:model/MockMigration} obj Optional instance to populate. + * @return {module:model/MockMigration} The populated MockMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GenerateCsrOutput(); + obj = obj || new MockMigration(); - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _MockPayload["default"].constructFromObject(data['payload']); } } @@ -81286,20 +155053,25 @@ var GenerateCsrOutput = /*#__PURE__*/function () { } }]); - return GenerateCsrOutput; + return MockMigration; }(); /** - * @member {String} data + * @member {module:model/MigrationGeneral} general + */ + + +MockMigration.prototype['general'] = undefined; +/** + * @member {module:model/MockPayload} payload */ - -GenerateCsrOutput.prototype['data'] = undefined; -var _default = GenerateCsrOutput; +MockMigration.prototype['payload'] = undefined; +var _default = MockMigration; exports["default"] = _default; /***/ }), -/***/ 39897: +/***/ 99993: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81310,7 +155082,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -81321,19 +155093,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetAccountSettings model module. - * @module model/GetAccountSettings - * @version 3.3.16 + * The MockPayload model module. + * @module model/MockPayload + * @version 3.6.3 */ -var GetAccountSettings = /*#__PURE__*/function () { +var MockPayload = /*#__PURE__*/function () { /** - * Constructs a new GetAccountSettings. - * @alias module:model/GetAccountSettings + * Constructs a new MockPayload. + * @alias module:model/MockPayload */ - function GetAccountSettings() { - _classCallCheck(this, GetAccountSettings); + function MockPayload() { + _classCallCheck(this, MockPayload); - GetAccountSettings.initialize(this); + MockPayload.initialize(this); } /** * Initializes the fields of this object. @@ -81342,33 +155114,25 @@ var GetAccountSettings = /*#__PURE__*/function () { */ - _createClass(GetAccountSettings, null, [{ + _createClass(MockPayload, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetAccountSettings from a plain JavaScript object, optionally creating a new instance. + * Constructs a MockPayload from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAccountSettings} obj Optional instance to populate. - * @return {module:model/GetAccountSettings} The populated GetAccountSettings instance. + * @param {module:model/MockPayload} obj Optional instance to populate. + * @return {module:model/MockPayload} The populated MockPayload instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetAccountSettings(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new MockPayload(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('vaults')) { + obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); } } @@ -81376,34 +155140,20 @@ var GetAccountSettings = /*#__PURE__*/function () { } }]); - return GetAccountSettings; + return MockPayload; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetAccountSettings.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Array.} vaults */ -GetAccountSettings.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -GetAccountSettings.prototype['uid-token'] = undefined; -var _default = GetAccountSettings; +MockPayload.prototype['vaults'] = undefined; +var _default = MockPayload; exports["default"] = _default; /***/ }), -/***/ 41517: +/***/ 62146: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81414,19 +155164,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(80281)); - -var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(24149)); - -var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(75719)); - -var _SmInfo = _interopRequireDefault(__nccwpck_require__(69298)); - -var _SraInfo = _interopRequireDefault(__nccwpck_require__(85251)); - -var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(6123)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -81437,19 +155175,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetAccountSettingsCommandOutput model module. - * @module model/GetAccountSettingsCommandOutput - * @version 3.3.16 + * The MongoDBTargetDetails model module. + * @module model/MongoDBTargetDetails + * @version 3.6.3 */ -var GetAccountSettingsCommandOutput = /*#__PURE__*/function () { +var MongoDBTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GetAccountSettingsCommandOutput. - * @alias module:model/GetAccountSettingsCommandOutput + * Constructs a new MongoDBTargetDetails. + * @alias module:model/MongoDBTargetDetails */ - function GetAccountSettingsCommandOutput() { - _classCallCheck(this, GetAccountSettingsCommandOutput); + function MongoDBTargetDetails() { + _classCallCheck(this, MongoDBTargetDetails); - GetAccountSettingsCommandOutput.initialize(this); + MongoDBTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -81458,61 +155196,65 @@ var GetAccountSettingsCommandOutput = /*#__PURE__*/function () { */ - _createClass(GetAccountSettingsCommandOutput, null, [{ + _createClass(MongoDBTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetAccountSettingsCommandOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a MongoDBTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAccountSettingsCommandOutput} obj Optional instance to populate. - * @return {module:model/GetAccountSettingsCommandOutput} The populated GetAccountSettingsCommandOutput instance. + * @param {module:model/MongoDBTargetDetails} obj Optional instance to populate. + * @return {module:model/MongoDBTargetDetails} The populated MongoDBTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetAccountSettingsCommandOutput(); + obj = obj || new MongoDBTargetDetails(); - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { + obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); } - if (data.hasOwnProperty('address')) { - obj['address'] = _CustomerFullAddress["default"].constructFromObject(data['address']); + if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { + obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); } - if (data.hasOwnProperty('company_name')) { - obj['company_name'] = _ApiClient["default"].convertToType(data['company_name'], 'String'); + if (data.hasOwnProperty('mongodb_atlas_project_id')) { + obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); } - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + if (data.hasOwnProperty('mongodb_db_name')) { + obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); } - if (data.hasOwnProperty('general_settings')) { - obj['general_settings'] = _AccountGeneralSettings["default"].constructFromObject(data['general_settings']); + if (data.hasOwnProperty('mongodb_default_auth_db')) { + obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); } - if (data.hasOwnProperty('object_version_settings')) { - obj['object_version_settings'] = _AccountObjectVersionSettingsOutput["default"].constructFromObject(data['object_version_settings']); + if (data.hasOwnProperty('mongodb_host_port')) { + obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); } - if (data.hasOwnProperty('phone')) { - obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + if (data.hasOwnProperty('mongodb_is_atlas')) { + obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); } - if (data.hasOwnProperty('secret_management')) { - obj['secret_management'] = _SmInfo["default"].constructFromObject(data['secret_management']); + if (data.hasOwnProperty('mongodb_password')) { + obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); } - if (data.hasOwnProperty('secure_remote_access')) { - obj['secure_remote_access'] = _SraInfo["default"].constructFromObject(data['secure_remote_access']); + if (data.hasOwnProperty('mongodb_uri_connection')) { + obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); } - if (data.hasOwnProperty('system_access_creds_settings')) { - obj['system_access_creds_settings'] = _SystemAccessCredsSettings["default"].constructFromObject(data['system_access_creds_settings']); + if (data.hasOwnProperty('mongodb_uri_options')) { + obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); + } + + if (data.hasOwnProperty('mongodb_username')) { + obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); } } @@ -81520,65 +155262,73 @@ var GetAccountSettingsCommandOutput = /*#__PURE__*/function () { } }]); - return GetAccountSettingsCommandOutput; + return MongoDBTargetDetails; }(); /** - * @member {String} account_id + * @member {String} mongodb_atlas_api_private_key */ -GetAccountSettingsCommandOutput.prototype['account_id'] = undefined; +MongoDBTargetDetails.prototype['mongodb_atlas_api_private_key'] = undefined; /** - * @member {module:model/CustomerFullAddress} address + * @member {String} mongodb_atlas_api_public_key */ -GetAccountSettingsCommandOutput.prototype['address'] = undefined; +MongoDBTargetDetails.prototype['mongodb_atlas_api_public_key'] = undefined; /** - * @member {String} company_name + * mongodb atlas fields + * @member {String} mongodb_atlas_project_id */ -GetAccountSettingsCommandOutput.prototype['company_name'] = undefined; +MongoDBTargetDetails.prototype['mongodb_atlas_project_id'] = undefined; /** - * @member {String} email + * common fields + * @member {String} mongodb_db_name */ -GetAccountSettingsCommandOutput.prototype['email'] = undefined; +MongoDBTargetDetails.prototype['mongodb_db_name'] = undefined; /** - * @member {module:model/AccountGeneralSettings} general_settings + * @member {String} mongodb_default_auth_db */ -GetAccountSettingsCommandOutput.prototype['general_settings'] = undefined; +MongoDBTargetDetails.prototype['mongodb_default_auth_db'] = undefined; /** - * @member {module:model/AccountObjectVersionSettingsOutput} object_version_settings + * @member {String} mongodb_host_port */ -GetAccountSettingsCommandOutput.prototype['object_version_settings'] = undefined; +MongoDBTargetDetails.prototype['mongodb_host_port'] = undefined; /** - * @member {String} phone + * @member {Boolean} mongodb_is_atlas */ -GetAccountSettingsCommandOutput.prototype['phone'] = undefined; +MongoDBTargetDetails.prototype['mongodb_is_atlas'] = undefined; /** - * @member {module:model/SmInfo} secret_management + * @member {String} mongodb_password */ -GetAccountSettingsCommandOutput.prototype['secret_management'] = undefined; +MongoDBTargetDetails.prototype['mongodb_password'] = undefined; /** - * @member {module:model/SraInfo} secure_remote_access + * mongodb fields + * @member {String} mongodb_uri_connection */ -GetAccountSettingsCommandOutput.prototype['secure_remote_access'] = undefined; +MongoDBTargetDetails.prototype['mongodb_uri_connection'] = undefined; /** - * @member {module:model/SystemAccessCredsSettings} system_access_creds_settings + * @member {String} mongodb_uri_options */ -GetAccountSettingsCommandOutput.prototype['system_access_creds_settings'] = undefined; -var _default = GetAccountSettingsCommandOutput; +MongoDBTargetDetails.prototype['mongodb_uri_options'] = undefined; +/** + * @member {String} mongodb_username + */ + +MongoDBTargetDetails.prototype['mongodb_username'] = undefined; +var _default = MongoDBTargetDetails; exports["default"] = _default; /***/ }), -/***/ 38253: +/***/ 59130: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81589,7 +155339,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -81600,20 +155350,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetAuthMethod model module. - * @module model/GetAuthMethod - * @version 3.3.16 + * The MoveObjects model module. + * @module model/MoveObjects + * @version 3.6.3 */ -var GetAuthMethod = /*#__PURE__*/function () { +var MoveObjects = /*#__PURE__*/function () { /** - * Constructs a new GetAuthMethod. - * @alias module:model/GetAuthMethod - * @param name {String} Auth Method name + * Constructs a new MoveObjects. + * @alias module:model/MoveObjects + * @param source {String} Source path to move the objects from + * @param target {String} Target path to move the objects to */ - function GetAuthMethod(name) { - _classCallCheck(this, GetAuthMethod); + function MoveObjects(source, target) { + _classCallCheck(this, MoveObjects); - GetAuthMethod.initialize(this, name); + MoveObjects.initialize(this, source, target); } /** * Initializes the fields of this object. @@ -81622,31 +155373,40 @@ var GetAuthMethod = /*#__PURE__*/function () { */ - _createClass(GetAuthMethod, null, [{ + _createClass(MoveObjects, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, source, target) { + obj['source'] = source; + obj['target'] = target; } /** - * Constructs a GetAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Constructs a MoveObjects from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAuthMethod} obj Optional instance to populate. - * @return {module:model/GetAuthMethod} The populated GetAuthMethod instance. + * @param {module:model/MoveObjects} obj Optional instance to populate. + * @return {module:model/MoveObjects} The populated MoveObjects instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetAuthMethod(); + obj = obj || new MoveObjects(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('objects-type')) { + obj['objects-type'] = _ApiClient["default"].convertToType(data['objects-type'], 'String'); + } + + if (data.hasOwnProperty('source')) { + obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String'); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); } if (data.hasOwnProperty('token')) { @@ -81662,7 +155422,7 @@ var GetAuthMethod = /*#__PURE__*/function () { } }]); - return GetAuthMethod; + return MoveObjects; }(); /** * Set output format to JSON @@ -81671,31 +155431,44 @@ var GetAuthMethod = /*#__PURE__*/function () { */ -GetAuthMethod.prototype['json'] = false; +MoveObjects.prototype['json'] = false; /** - * Auth Method name - * @member {String} name + * The objects type to move (item/auth_method/role) + * @member {String} objects-type + * @default 'item' */ -GetAuthMethod.prototype['name'] = undefined; +MoveObjects.prototype['objects-type'] = 'item'; +/** + * Source path to move the objects from + * @member {String} source + */ + +MoveObjects.prototype['source'] = undefined; +/** + * Target path to move the objects to + * @member {String} target + */ + +MoveObjects.prototype['target'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GetAuthMethod.prototype['token'] = undefined; +MoveObjects.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GetAuthMethod.prototype['uid-token'] = undefined; -var _default = GetAuthMethod; +MoveObjects.prototype['uid-token'] = undefined; +var _default = MoveObjects; exports["default"] = _default; /***/ }), -/***/ 5265: +/***/ 97822: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81706,7 +155479,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(8111)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -81717,20 +155492,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetCertificateValue model module. - * @module model/GetCertificateValue - * @version 3.3.16 + * The Name model module. + * @module model/Name + * @version 3.6.3 */ -var GetCertificateValue = /*#__PURE__*/function () { +var Name = /*#__PURE__*/function () { /** - * Constructs a new GetCertificateValue. - * @alias module:model/GetCertificateValue - * @param name {String} Certificate name + * Constructs a new Name. + * Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure. If an accurate representation is needed, asn1.Unmarshal the raw subject or issuer as an RDNSequence. + * @alias module:model/Name */ - function GetCertificateValue(name) { - _classCallCheck(this, GetCertificateValue); + function Name() { + _classCallCheck(this, Name); - GetCertificateValue.initialize(this, name); + Name.initialize(this); } /** * Initializes the fields of this object. @@ -81739,63 +155514,45 @@ var GetCertificateValue = /*#__PURE__*/function () { */ - _createClass(GetCertificateValue, null, [{ + _createClass(Name, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GetCertificateValue from a plain JavaScript object, optionally creating a new instance. + * Constructs a Name from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetCertificateValue} obj Optional instance to populate. - * @return {module:model/GetCertificateValue} The populated GetCertificateValue instance. + * @param {module:model/Name} obj Optional instance to populate. + * @return {module:model/Name} The populated Name instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetCertificateValue(); - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('certificate-file-output')) { - obj['certificate-file-output'] = _ApiClient["default"].convertToType(data['certificate-file-output'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('issuance-token')) { - obj['issuance-token'] = _ApiClient["default"].convertToType(data['issuance-token'], 'String'); - } + obj = obj || new Name(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('Country')) { + obj['Country'] = _ApiClient["default"].convertToType(data['Country'], ['String']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('ExtraNames')) { + obj['ExtraNames'] = _ApiClient["default"].convertToType(data['ExtraNames'], [_AttributeTypeAndValue["default"]]); } - if (data.hasOwnProperty('private-key-file-output')) { - obj['private-key-file-output'] = _ApiClient["default"].convertToType(data['private-key-file-output'], 'String'); + if (data.hasOwnProperty('Locality')) { + obj['Locality'] = _ApiClient["default"].convertToType(data['Locality'], ['String']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('Names')) { + obj['Names'] = _ApiClient["default"].convertToType(data['Names'], [_AttributeTypeAndValue["default"]]); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('SerialNumber')) { + obj['SerialNumber'] = _ApiClient["default"].convertToType(data['SerialNumber'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('StreetAddress')) { + obj['StreetAddress'] = _ApiClient["default"].convertToType(data['StreetAddress'], ['String']); } } @@ -81803,77 +155560,47 @@ var GetCertificateValue = /*#__PURE__*/function () { } }]); - return GetCertificateValue; + return Name; }(); /** - * The parent PKI Certificate Issuer's name of the certificate, required when used with display-id and token - * @member {String} cert-issuer-name - */ - - -GetCertificateValue.prototype['cert-issuer-name'] = undefined; -/** - * File to write the certificates to. - * @member {String} certificate-file-output - */ - -GetCertificateValue.prototype['certificate-file-output'] = undefined; -/** - * Certificate display ID - * @member {String} display-id - */ - -GetCertificateValue.prototype['display-id'] = undefined; -/** - * Token for getting the issued certificate - * @member {String} issuance-token + * @member {Array.} Country */ -GetCertificateValue.prototype['issuance-token'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ -GetCertificateValue.prototype['json'] = false; +Name.prototype['Country'] = undefined; /** - * Certificate name - * @member {String} name - * @default 'dummy_certificate_name' + * ExtraNames contains attributes to be copied, raw, into any marshaled distinguished names. Values override any attributes with the same OID. The ExtraNames field is not populated when parsing, see Names. + * @member {Array.} ExtraNames */ -GetCertificateValue.prototype['name'] = 'dummy_certificate_name'; +Name.prototype['ExtraNames'] = undefined; /** - * File to write the private key to. - * @member {String} private-key-file-output + * @member {Array.} Locality */ -GetCertificateValue.prototype['private-key-file-output'] = undefined; +Name.prototype['Locality'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Names contains all parsed attributes. When parsing distinguished names, this can be used to extract non-standard attributes that are not parsed by this package. When marshaling to RDNSequences, the Names field is ignored, see ExtraNames. + * @member {Array.} Names */ -GetCertificateValue.prototype['token'] = undefined; +Name.prototype['Names'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} SerialNumber */ -GetCertificateValue.prototype['uid-token'] = undefined; +Name.prototype['SerialNumber'] = undefined; /** - * Certificate version - * @member {Number} version + * @member {Array.} StreetAddress */ -GetCertificateValue.prototype['version'] = undefined; -var _default = GetCertificateValue; +Name.prototype['StreetAddress'] = undefined; +var _default = Name; exports["default"] = _default; /***/ }), -/***/ 55083: +/***/ 68947: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81884,7 +155611,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -81895,19 +155622,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetCertificateValueOutput model module. - * @module model/GetCertificateValueOutput - * @version 3.3.16 + * The NativeK8sTargetDetails model module. + * @module model/NativeK8sTargetDetails + * @version 3.6.3 */ -var GetCertificateValueOutput = /*#__PURE__*/function () { +var NativeK8sTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GetCertificateValueOutput. - * @alias module:model/GetCertificateValueOutput + * Constructs a new NativeK8sTargetDetails. + * @alias module:model/NativeK8sTargetDetails */ - function GetCertificateValueOutput() { - _classCallCheck(this, GetCertificateValueOutput); + function NativeK8sTargetDetails() { + _classCallCheck(this, NativeK8sTargetDetails); - GetCertificateValueOutput.initialize(this); + NativeK8sTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -81916,29 +155643,49 @@ var GetCertificateValueOutput = /*#__PURE__*/function () { */ - _createClass(GetCertificateValueOutput, null, [{ + _createClass(NativeK8sTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetCertificateValueOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a NativeK8sTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetCertificateValueOutput} obj Optional instance to populate. - * @return {module:model/GetCertificateValueOutput} The populated GetCertificateValueOutput instance. + * @param {module:model/NativeK8sTargetDetails} obj Optional instance to populate. + * @return {module:model/NativeK8sTargetDetails} The populated NativeK8sTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetCertificateValueOutput(); + obj = obj || new NativeK8sTargetDetails(); - if (data.hasOwnProperty('certificate_pem')) { - obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); } - if (data.hasOwnProperty('private_key_pem')) { - obj['private_key_pem'] = _ApiClient["default"].convertToType(data['private_key_pem'], 'String'); + if (data.hasOwnProperty('k8s_bearer_token')) { + obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { + obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s_cluster_endpoint')) { + obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('use_gw_service_account')) { + obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); } } @@ -81946,25 +155693,51 @@ var GetCertificateValueOutput = /*#__PURE__*/function () { } }]); - return GetCertificateValueOutput; + return NativeK8sTargetDetails; }(); /** - * @member {String} certificate_pem + * @member {String} k8s_auth_type */ -GetCertificateValueOutput.prototype['certificate_pem'] = undefined; +NativeK8sTargetDetails.prototype['k8s_auth_type'] = undefined; /** - * @member {String} private_key_pem + * @member {String} k8s_bearer_token */ -GetCertificateValueOutput.prototype['private_key_pem'] = undefined; -var _default = GetCertificateValueOutput; +NativeK8sTargetDetails.prototype['k8s_bearer_token'] = undefined; +/** + * For K8s Client certificates authentication + * @member {String} k8s_client_cert_data + */ + +NativeK8sTargetDetails.prototype['k8s_client_cert_data'] = undefined; +/** + * @member {String} k8s_client_key_data + */ + +NativeK8sTargetDetails.prototype['k8s_client_key_data'] = undefined; +/** + * @member {String} k8s_cluster_ca_certificate + */ + +NativeK8sTargetDetails.prototype['k8s_cluster_ca_certificate'] = undefined; +/** + * @member {String} k8s_cluster_endpoint + */ + +NativeK8sTargetDetails.prototype['k8s_cluster_endpoint'] = undefined; +/** + * @member {Boolean} use_gw_service_account + */ + +NativeK8sTargetDetails.prototype['use_gw_service_account'] = undefined; +var _default = NativeK8sTargetDetails; exports["default"] = _default; /***/ }), -/***/ 92090: +/***/ 82007: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81975,7 +155748,13 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _EmailEntry = _interopRequireDefault(__nccwpck_require__(14877)); + +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(85396)); + +var _WebHookNotiForwarderPublicDetails = _interopRequireDefault(__nccwpck_require__(42279)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -81986,20 +155765,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetDynamicSecretValue model module. - * @module model/GetDynamicSecretValue - * @version 3.3.16 + * The NotiForwarder model module. + * @module model/NotiForwarder + * @version 3.6.3 */ -var GetDynamicSecretValue = /*#__PURE__*/function () { +var NotiForwarder = /*#__PURE__*/function () { /** - * Constructs a new GetDynamicSecretValue. - * @alias module:model/GetDynamicSecretValue - * @param name {String} Dynamic secret name + * Constructs a new NotiForwarder. + * @alias module:model/NotiForwarder */ - function GetDynamicSecretValue(name) { - _classCallCheck(this, GetDynamicSecretValue); + function NotiForwarder() { + _classCallCheck(this, NotiForwarder); - GetDynamicSecretValue.initialize(this, name); + NotiForwarder.initialize(this); } /** * Initializes the fields of this object. @@ -82008,55 +155786,125 @@ var GetDynamicSecretValue = /*#__PURE__*/function () { */ - _createClass(GetDynamicSecretValue, null, [{ + _createClass(NotiForwarder, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GetDynamicSecretValue from a plain JavaScript object, optionally creating a new instance. + * Constructs a NotiForwarder from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDynamicSecretValue} obj Optional instance to populate. - * @return {module:model/GetDynamicSecretValue} The populated GetDynamicSecretValue instance. + * @param {module:model/NotiForwarder} obj Optional instance to populate. + * @return {module:model/NotiForwarder} The populated NotiForwarder instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetDynamicSecretValue(); + obj = obj || new NotiForwarder(); - if (data.hasOwnProperty('args')) { - obj['args'] = _ApiClient["default"].convertToType(data['args'], ['String']); + if (data.hasOwnProperty('auth_type')) { + obj['auth_type'] = _ApiClient["default"].convertToType(data['auth_type'], 'String'); } - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('target')) { - obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + if (data.hasOwnProperty('endpoint')) { + obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('event_types')) { + obj['event_types'] = _ApiClient["default"].convertToType(data['event_types'], ['String']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('gateway_cluster_id')) { + obj['gateway_cluster_id'] = _ApiClient["default"].convertToType(data['gateway_cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('is_enabled')) { + obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); + } + + if (data.hasOwnProperty('last_version')) { + obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + + if (data.hasOwnProperty('noti_forwarder_id')) { + obj['noti_forwarder_id'] = _ApiClient["default"].convertToType(data['noti_forwarder_id'], 'Number'); + } + + if (data.hasOwnProperty('noti_forwarder_name')) { + obj['noti_forwarder_name'] = _ApiClient["default"].convertToType(data['noti_forwarder_name'], 'String'); + } + + if (data.hasOwnProperty('noti_forwarder_type')) { + obj['noti_forwarder_type'] = _ApiClient["default"].convertToType(data['noti_forwarder_type'], 'String'); + } + + if (data.hasOwnProperty('noti_forwarder_versions')) { + obj['noti_forwarder_versions'] = _ApiClient["default"].convertToType(data['noti_forwarder_versions'], [_ItemVersion["default"]]); + } + + if (data.hasOwnProperty('override_url')) { + obj['override_url'] = _ApiClient["default"].convertToType(data['override_url'], 'String'); + } + + if (data.hasOwnProperty('paths')) { + obj['paths'] = _ApiClient["default"].convertToType(data['paths'], ['String']); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('runner_type')) { + obj['runner_type'] = _ApiClient["default"].convertToType(data['runner_type'], 'String'); + } + + if (data.hasOwnProperty('slack_noti_forwarder_public_details')) { + obj['slack_noti_forwarder_public_details'] = _ApiClient["default"].convertToType(data['slack_noti_forwarder_public_details'], Object); + } + + if (data.hasOwnProperty('timespan_in_seconds')) { + obj['timespan_in_seconds'] = _ApiClient["default"].convertToType(data['timespan_in_seconds'], 'Number'); + } + + if (data.hasOwnProperty('to_emails')) { + obj['to_emails'] = _ApiClient["default"].convertToType(data['to_emails'], [_EmailEntry["default"]]); + } + + if (data.hasOwnProperty('user_email')) { + obj['user_email'] = _ApiClient["default"].convertToType(data['user_email'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + + if (data.hasOwnProperty('webhook_noti_forwarder_public_details')) { + obj['webhook_noti_forwarder_public_details'] = _WebHookNotiForwarderPublicDetails["default"].constructFromObject(data['webhook_noti_forwarder_public_details']); + } + + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); } } @@ -82064,182 +155912,147 @@ var GetDynamicSecretValue = /*#__PURE__*/function () { } }]); - return GetDynamicSecretValue; + return NotiForwarder; }(); /** - * Optional arguments as key=value pairs or JSON strings, e.g - \\\"--args=csr=base64_encoded_csr --args=common_name=bar\\\" or args='{\\\"csr\\\":\\\"base64_encoded_csr\\\"}. It is possible to combine both formats.' - * @member {Array.} args + * @member {String} auth_type */ -GetDynamicSecretValue.prototype['args'] = undefined; +NotiForwarder.prototype['auth_type'] = undefined; /** - * Host - * @member {String} host + * Auth - JWT + * @member {String} client_id */ -GetDynamicSecretValue.prototype['host'] = undefined; +NotiForwarder.prototype['client_id'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Array.} client_permissions */ -GetDynamicSecretValue.prototype['json'] = false; +NotiForwarder.prototype['client_permissions'] = undefined; /** - * Dynamic secret name - * @member {String} name + * @member {String} comment */ -GetDynamicSecretValue.prototype['name'] = undefined; +NotiForwarder.prototype['comment'] = undefined; /** - * Target Name - * @member {String} target + * @member {Date} creation_date */ -GetDynamicSecretValue.prototype['target'] = undefined; +NotiForwarder.prototype['creation_date'] = undefined; /** - * Timeout in seconds - * @member {Number} timeout - * @default 15 + * @member {String} endpoint */ -GetDynamicSecretValue.prototype['timeout'] = 15; +NotiForwarder.prototype['endpoint'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Array.} event_types */ -GetDynamicSecretValue.prototype['token'] = undefined; +NotiForwarder.prototype['event_types'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Number} gateway_cluster_id */ -GetDynamicSecretValue.prototype['uid-token'] = undefined; -var _default = GetDynamicSecretValue; -exports["default"] = _default; - -/***/ }), - -/***/ 7218: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +NotiForwarder.prototype['gateway_cluster_id'] = undefined; +/** + * @member {Boolean} is_enabled + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +NotiForwarder.prototype['is_enabled'] = undefined; +/** + * @member {Number} last_version + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +NotiForwarder.prototype['last_version'] = undefined; +/** + * @member {Date} modification_date + */ +NotiForwarder.prototype['modification_date'] = undefined; /** - * The GetEventForwarder model module. - * @module model/GetEventForwarder - * @version 3.3.16 + * @member {Number} noti_forwarder_id */ -var GetEventForwarder = /*#__PURE__*/function () { - /** - * Constructs a new GetEventForwarder. - * @alias module:model/GetEventForwarder - * @param name {String} EventForwarder name - */ - function GetEventForwarder(name) { - _classCallCheck(this, GetEventForwarder); - GetEventForwarder.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +NotiForwarder.prototype['noti_forwarder_id'] = undefined; +/** + * @member {String} noti_forwarder_name + */ +NotiForwarder.prototype['noti_forwarder_name'] = undefined; +/** + * @member {String} noti_forwarder_type + */ - _createClass(GetEventForwarder, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetEventForwarder from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetEventForwarder} obj Optional instance to populate. - * @return {module:model/GetEventForwarder} The populated GetEventForwarder instance. - */ +NotiForwarder.prototype['noti_forwarder_type'] = undefined; +/** + * @member {Array.} noti_forwarder_versions + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetEventForwarder(); +NotiForwarder.prototype['noti_forwarder_versions'] = undefined; +/** + * @member {String} override_url + */ - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +NotiForwarder.prototype['override_url'] = undefined; +/** + * @member {Array.} paths + */ - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +NotiForwarder.prototype['paths'] = undefined; +/** + * @member {String} protection_key + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +NotiForwarder.prototype['protection_key'] = undefined; +/** + * @member {String} runner_type + */ - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } +NotiForwarder.prototype['runner_type'] = undefined; +/** + * @member {Object} slack_noti_forwarder_public_details + */ - return obj; - } - }]); +NotiForwarder.prototype['slack_noti_forwarder_public_details'] = undefined; +/** + * @member {Number} timespan_in_seconds + */ - return GetEventForwarder; -}(); +NotiForwarder.prototype['timespan_in_seconds'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Array.} to_emails */ +NotiForwarder.prototype['to_emails'] = undefined; +/** + * @member {String} user_email + */ -GetEventForwarder.prototype['json'] = false; +NotiForwarder.prototype['user_email'] = undefined; /** - * EventForwarder name - * @member {String} name + * Auth - User Password + * @member {String} username */ -GetEventForwarder.prototype['name'] = undefined; +NotiForwarder.prototype['username'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {module:model/WebHookNotiForwarderPublicDetails} webhook_noti_forwarder_public_details */ -GetEventForwarder.prototype['token'] = undefined; +NotiForwarder.prototype['webhook_noti_forwarder_public_details'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Boolean} with_customer_fragment */ -GetEventForwarder.prototype['uid-token'] = undefined; -var _default = GetEventForwarder; +NotiForwarder.prototype['with_customer_fragment'] = undefined; +var _default = NotiForwarder; exports["default"] = _default; /***/ }), -/***/ 27878: +/***/ 72725: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82250,9 +156063,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(25462)); +var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(44117)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -82263,19 +156076,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetEventForwarderOutput model module. - * @module model/GetEventForwarderOutput - * @version 3.3.16 + * The OAuth2AccessRules model module. + * @module model/OAuth2AccessRules + * @version 3.6.3 */ -var GetEventForwarderOutput = /*#__PURE__*/function () { +var OAuth2AccessRules = /*#__PURE__*/function () { /** - * Constructs a new GetEventForwarderOutput. - * @alias module:model/GetEventForwarderOutput + * Constructs a new OAuth2AccessRules. + * OAuth2AccessRules contains access rules specific to OAuth2 authentication method. + * @alias module:model/OAuth2AccessRules */ - function GetEventForwarderOutput() { - _classCallCheck(this, GetEventForwarderOutput); + function OAuth2AccessRules() { + _classCallCheck(this, OAuth2AccessRules); - GetEventForwarderOutput.initialize(this); + OAuth2AccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -82284,25 +156098,57 @@ var GetEventForwarderOutput = /*#__PURE__*/function () { */ - _createClass(GetEventForwarderOutput, null, [{ + _createClass(OAuth2AccessRules, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a OAuth2AccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetEventForwarderOutput} obj Optional instance to populate. - * @return {module:model/GetEventForwarderOutput} The populated GetEventForwarderOutput instance. + * @param {module:model/OAuth2AccessRules} obj Optional instance to populate. + * @return {module:model/OAuth2AccessRules} The populated OAuth2AccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetEventForwarderOutput(); + obj = obj || new OAuth2AccessRules(); - if (data.hasOwnProperty('event_forwarder')) { - obj['event_forwarder'] = _NotiForwarder["default"].constructFromObject(data['event_forwarder']); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('authorized_gw_cluster_name')) { + obj['authorized_gw_cluster_name'] = _ApiClient["default"].convertToType(data['authorized_gw_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('bound_claims')) { + obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OAuth2CustomClaim["default"]]); + } + + if (data.hasOwnProperty('bound_clients_id')) { + obj['bound_clients_id'] = _ApiClient["default"].convertToType(data['bound_clients_id'], ['String']); + } + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('jwks_json_data')) { + obj['jwks_json_data'] = _ApiClient["default"].convertToType(data['jwks_json_data'], 'String'); + } + + if (data.hasOwnProperty('jwks_uri')) { + obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); + } + + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); } } @@ -82310,20 +156156,69 @@ var GetEventForwarderOutput = /*#__PURE__*/function () { } }]); - return GetEventForwarderOutput; + return OAuth2AccessRules; }(); /** - * @member {module:model/NotiForwarder} event_forwarder + * The audience in the JWT. + * @member {String} audience */ -GetEventForwarderOutput.prototype['event_forwarder'] = undefined; -var _default = GetEventForwarderOutput; +OAuth2AccessRules.prototype['audience'] = undefined; +/** + * The gateway cluster name that is authorized to access JWKeySetURL + * @member {String} authorized_gw_cluster_name + */ + +OAuth2AccessRules.prototype['authorized_gw_cluster_name'] = undefined; +/** + * The claims that login is restricted to. + * @member {Array.} bound_claims + */ + +OAuth2AccessRules.prototype['bound_claims'] = undefined; +/** + * The clients ids that login is restricted to. + * @member {Array.} bound_clients_id + */ + +OAuth2AccessRules.prototype['bound_clients_id'] = undefined; +/** + * Certificate to use when calling jwks_uri from the gateway. in PEM format + * @member {String} certificate + */ + +OAuth2AccessRules.prototype['certificate'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +OAuth2AccessRules.prototype['issuer'] = undefined; +/** + * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string + * @member {String} jwks_json_data + */ + +OAuth2AccessRules.prototype['jwks_json_data'] = undefined; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks_uri + */ + +OAuth2AccessRules.prototype['jwks_uri'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ + +OAuth2AccessRules.prototype['unique_identifier'] = undefined; +var _default = OAuth2AccessRules; exports["default"] = _default; /***/ }), -/***/ 58773: +/***/ 44117: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82334,7 +156229,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -82345,21 +156240,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetKubeExecCreds model module. - * @module model/GetKubeExecCreds - * @version 3.3.16 + * The OAuth2CustomClaim model module. + * @module model/OAuth2CustomClaim + * @version 3.6.3 */ -var GetKubeExecCreds = /*#__PURE__*/function () { +var OAuth2CustomClaim = /*#__PURE__*/function () { /** - * Constructs a new GetKubeExecCreds. - * getKubeExecCreds is a command that gets credentials for authentication with Kubernetes cluster based on a PKI cert issuer. - * @alias module:model/GetKubeExecCreds - * @param certIssuerName {String} The name of the PKI certificate issuer + * Constructs a new OAuth2CustomClaim. + * OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method. + * @alias module:model/OAuth2CustomClaim */ - function GetKubeExecCreds(certIssuerName) { - _classCallCheck(this, GetKubeExecCreds); + function OAuth2CustomClaim() { + _classCallCheck(this, OAuth2CustomClaim); - GetKubeExecCreds.initialize(this, certIssuerName); + OAuth2CustomClaim.initialize(this); } /** * Initializes the fields of this object. @@ -82368,161 +156262,55 @@ var GetKubeExecCreds = /*#__PURE__*/function () { */ - _createClass(GetKubeExecCreds, null, [{ - key: "initialize", - value: function initialize(obj, certIssuerName) { - obj['cert-issuer-name'] = certIssuerName; - } - /** - * Constructs a GetKubeExecCreds from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetKubeExecCreds} obj Optional instance to populate. - * @return {module:model/GetKubeExecCreds} The populated GetKubeExecCreds instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetKubeExecCreds(); - - if (data.hasOwnProperty('alt-names')) { - obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); - } - - if (data.hasOwnProperty('api-version')) { - obj['api-version'] = _ApiClient["default"].convertToType(data['api-version'], 'String'); - } - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); - } - - if (data.hasOwnProperty('csr-data-base64')) { - obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); - } - - if (data.hasOwnProperty('extended-key-usage')) { - obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-data-base64')) { - obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); - } - } - - return obj; - } - }]); - - return GetKubeExecCreds; -}(); -/** - * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) - * @member {String} alt-names - */ - - -GetKubeExecCreds.prototype['alt-names'] = undefined; -/** - * Client authentication API version - * @member {String} api-version - * @default 'v1' - */ - -GetKubeExecCreds.prototype['api-version'] = 'v1'; -/** - * The name of the PKI certificate issuer - * @member {String} cert-issuer-name - */ - -GetKubeExecCreds.prototype['cert-issuer-name'] = undefined; -/** - * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) - * @member {String} common-name - */ - -GetKubeExecCreds.prototype['common-name'] = undefined; -/** - * Certificate Signing Request contents encoded in base64 to generate the certificate with - * @member {String} csr-data-base64 - */ + _createClass(OAuth2CustomClaim, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a OAuth2CustomClaim from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OAuth2CustomClaim} obj Optional instance to populate. + * @return {module:model/OAuth2CustomClaim} The populated OAuth2CustomClaim instance. + */ -GetKubeExecCreds.prototype['csr-data-base64'] = undefined; -/** - * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. - * @member {String} extended-key-usage - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OAuth2CustomClaim(); -GetKubeExecCreds.prototype['extended-key-usage'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -GetKubeExecCreds.prototype['json'] = false; -/** - * PKI key file contents. If this option is used, the certificate will be printed to stdout - * @member {String} key-data-base64 - */ + if (data.hasOwnProperty('values')) { + obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); + } + } -GetKubeExecCreds.prototype['key-data-base64'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ + return obj; + } + }]); -GetKubeExecCreds.prototype['token'] = undefined; + return OAuth2CustomClaim; +}(); /** - * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) - * @member {Number} ttl + * @member {String} name */ -GetKubeExecCreds.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -GetKubeExecCreds.prototype['uid-token'] = undefined; +OAuth2CustomClaim.prototype['name'] = undefined; /** - * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) - * @member {String} uri-sans + * @member {Array.} values */ -GetKubeExecCreds.prototype['uri-sans'] = undefined; -var _default = GetKubeExecCreds; +OAuth2CustomClaim.prototype['values'] = undefined; +var _default = OAuth2CustomClaim; exports["default"] = _default; /***/ }), -/***/ 76954: +/***/ 61443: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82533,9 +156321,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _ClientData = _interopRequireDefault(__nccwpck_require__(17951)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -82546,19 +156332,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetKubeExecCredsOutput model module. - * @module model/GetKubeExecCredsOutput - * @version 3.3.16 + * The OCIAccessRules model module. + * @module model/OCIAccessRules + * @version 3.6.3 */ -var GetKubeExecCredsOutput = /*#__PURE__*/function () { +var OCIAccessRules = /*#__PURE__*/function () { /** - * Constructs a new GetKubeExecCredsOutput. - * @alias module:model/GetKubeExecCredsOutput + * Constructs a new OCIAccessRules. + * OCIAccessRules contains access rules specific to Oracle cloud instance / user authentication + * @alias module:model/OCIAccessRules */ - function GetKubeExecCredsOutput() { - _classCallCheck(this, GetKubeExecCredsOutput); + function OCIAccessRules() { + _classCallCheck(this, OCIAccessRules); - GetKubeExecCredsOutput.initialize(this); + OCIAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -82567,33 +156354,29 @@ var GetKubeExecCredsOutput = /*#__PURE__*/function () { */ - _createClass(GetKubeExecCredsOutput, null, [{ + _createClass(OCIAccessRules, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetKubeExecCredsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a OCIAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetKubeExecCredsOutput} obj Optional instance to populate. - * @return {module:model/GetKubeExecCredsOutput} The populated GetKubeExecCredsOutput instance. + * @param {module:model/OCIAccessRules} obj Optional instance to populate. + * @return {module:model/OCIAccessRules} The populated OCIAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetKubeExecCredsOutput(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = _ApiClient["default"].convertToType(data['apiVersion'], 'String'); - } + obj = obj || new OCIAccessRules(); - if (data.hasOwnProperty('kind')) { - obj['kind'] = _ApiClient["default"].convertToType(data['kind'], 'String'); + if (data.hasOwnProperty('group_ocids')) { + obj['group_ocids'] = _ApiClient["default"].convertToType(data['group_ocids'], ['String']); } - if (data.hasOwnProperty('status')) { - obj['status'] = _ClientData["default"].constructFromObject(data['status']); + if (data.hasOwnProperty('tenant_ocid')) { + obj['tenant_ocid'] = _ApiClient["default"].convertToType(data['tenant_ocid'], 'String'); } } @@ -82601,30 +156384,25 @@ var GetKubeExecCredsOutput = /*#__PURE__*/function () { } }]); - return GetKubeExecCredsOutput; + return OCIAccessRules; }(); /** - * @member {String} apiVersion + * @member {Array.} group_ocids */ -GetKubeExecCredsOutput.prototype['apiVersion'] = undefined; -/** - * @member {String} kind - */ - -GetKubeExecCredsOutput.prototype['kind'] = undefined; +OCIAccessRules.prototype['group_ocids'] = undefined; /** - * @member {module:model/ClientData} status + * @member {String} tenant_ocid */ -GetKubeExecCredsOutput.prototype['status'] = undefined; -var _default = GetKubeExecCredsOutput; +OCIAccessRules.prototype['tenant_ocid'] = undefined; +var _default = OCIAccessRules; exports["default"] = _default; /***/ }), -/***/ 57553: +/***/ 51679: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82635,7 +156413,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(38119)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -82646,20 +156426,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetPKICertificate model module. - * @module model/GetPKICertificate - * @version 3.3.16 + * The OIDCAccessRules model module. + * @module model/OIDCAccessRules + * @version 3.6.3 */ -var GetPKICertificate = /*#__PURE__*/function () { +var OIDCAccessRules = /*#__PURE__*/function () { /** - * Constructs a new GetPKICertificate. - * @alias module:model/GetPKICertificate - * @param certIssuerName {String} The name of the PKI certificate issuer + * Constructs a new OIDCAccessRules. + * OIDCAccessRules contains access rules specific to Open Id Connect authentication method. + * @alias module:model/OIDCAccessRules */ - function GetPKICertificate(certIssuerName) { - _classCallCheck(this, GetPKICertificate); + function OIDCAccessRules() { + _classCallCheck(this, OIDCAccessRules); - GetPKICertificate.initialize(this, certIssuerName); + OIDCAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -82668,67 +156448,61 @@ var GetPKICertificate = /*#__PURE__*/function () { */ - _createClass(GetPKICertificate, null, [{ + _createClass(OIDCAccessRules, null, [{ key: "initialize", - value: function initialize(obj, certIssuerName) { - obj['cert-issuer-name'] = certIssuerName; - } + value: function initialize(obj) {} /** - * Constructs a GetPKICertificate from a plain JavaScript object, optionally creating a new instance. + * Constructs a OIDCAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetPKICertificate} obj Optional instance to populate. - * @return {module:model/GetPKICertificate} The populated GetPKICertificate instance. + * @param {module:model/OIDCAccessRules} obj Optional instance to populate. + * @return {module:model/OIDCAccessRules} The populated OIDCAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetPKICertificate(); - - if (data.hasOwnProperty('alt-names')) { - obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); - } + obj = obj || new OIDCAccessRules(); - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + if (data.hasOwnProperty('allowed_redirect_URIs')) { + obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); } - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } - if (data.hasOwnProperty('csr-data-base64')) { - obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); + if (data.hasOwnProperty('bound_claims')) { + obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OIDCCustomClaim["default"]]); } - if (data.hasOwnProperty('extended-key-usage')) { - obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('client_secret')) { + obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); } - if (data.hasOwnProperty('key-data-base64')) { - obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); + if (data.hasOwnProperty('is_internal')) { + obj['is_internal'] = _ApiClient["default"].convertToType(data['is_internal'], 'Boolean'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('required_scopes')) { + obj['required_scopes'] = _ApiClient["default"].convertToType(data['required_scopes'], ['String']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('required_scopes_prefix')) { + obj['required_scopes_prefix'] = _ApiClient["default"].convertToType(data['required_scopes_prefix'], 'String'); } - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); } } @@ -82736,82 +156510,75 @@ var GetPKICertificate = /*#__PURE__*/function () { } }]); - return GetPKICertificate; + return OIDCAccessRules; }(); /** - * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) - * @member {String} alt-names + * Allowed redirect URIs after the authentication + * @member {Array.} allowed_redirect_URIs */ -GetPKICertificate.prototype['alt-names'] = undefined; -/** - * The name of the PKI certificate issuer - * @member {String} cert-issuer-name - */ - -GetPKICertificate.prototype['cert-issuer-name'] = undefined; +OIDCAccessRules.prototype['allowed_redirect_URIs'] = undefined; /** - * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) - * @member {String} common-name + * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application + * @member {String} audience */ -GetPKICertificate.prototype['common-name'] = undefined; +OIDCAccessRules.prototype['audience'] = undefined; /** - * Certificate Signing Request contents encoded in base64 to generate the certificate with - * @member {String} csr-data-base64 + * The claims that login is restricted to. + * @member {Array.} bound_claims */ -GetPKICertificate.prototype['csr-data-base64'] = undefined; +OIDCAccessRules.prototype['bound_claims'] = undefined; /** - * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. - * @member {String} extended-key-usage + * Client ID + * @member {String} client_id */ -GetPKICertificate.prototype['extended-key-usage'] = undefined; +OIDCAccessRules.prototype['client_id'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Client Secret + * @member {String} client_secret */ -GetPKICertificate.prototype['json'] = false; +OIDCAccessRules.prototype['client_secret'] = undefined; /** - * PKI key file contents. If this option is used, the certificate will be printed to stdout - * @member {String} key-data-base64 + * IsInternal indicates whether this is an internal Auth Method where the client has no control over it, or it was created by the client e.g - Sign In with Google will create an OIDC Auth Method with IsInternal=true + * @member {Boolean} is_internal */ -GetPKICertificate.prototype['key-data-base64'] = undefined; +OIDCAccessRules.prototype['is_internal'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Issuer URL + * @member {String} issuer */ -GetPKICertificate.prototype['token'] = undefined; +OIDCAccessRules.prototype['issuer'] = undefined; /** - * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) - * @member {Number} ttl + * A list of required scopes to request from the oidc provider, and to check on the token + * @member {Array.} required_scopes */ -GetPKICertificate.prototype['ttl'] = undefined; +OIDCAccessRules.prototype['required_scopes'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * A prefix to add to the required scopes (for example, azures' Application ID URI) + * @member {String} required_scopes_prefix */ -GetPKICertificate.prototype['uid-token'] = undefined; +OIDCAccessRules.prototype['required_scopes_prefix'] = undefined; /** - * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) - * @member {String} uri-sans + * A unique identifier to distinguish different users + * @member {String} unique_identifier */ -GetPKICertificate.prototype['uri-sans'] = undefined; -var _default = GetPKICertificate; +OIDCAccessRules.prototype['unique_identifier'] = undefined; +var _default = OIDCAccessRules; exports["default"] = _default; /***/ }), -/***/ 92901: +/***/ 38119: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82822,7 +156589,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -82833,19 +156600,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetPKICertificateOutput model module. - * @module model/GetPKICertificateOutput - * @version 3.3.16 + * The OIDCCustomClaim model module. + * @module model/OIDCCustomClaim + * @version 3.6.3 */ -var GetPKICertificateOutput = /*#__PURE__*/function () { +var OIDCCustomClaim = /*#__PURE__*/function () { /** - * Constructs a new GetPKICertificateOutput. - * @alias module:model/GetPKICertificateOutput + * Constructs a new OIDCCustomClaim. + * OIDCCustomClaim is a custom claim specific to OIDC authentication method. + * @alias module:model/OIDCCustomClaim */ - function GetPKICertificateOutput() { - _classCallCheck(this, GetPKICertificateOutput); + function OIDCCustomClaim() { + _classCallCheck(this, OIDCCustomClaim); - GetPKICertificateOutput.initialize(this); + OIDCCustomClaim.initialize(this); } /** * Initializes the fields of this object. @@ -82854,41 +156622,29 @@ var GetPKICertificateOutput = /*#__PURE__*/function () { */ - _createClass(GetPKICertificateOutput, null, [{ + _createClass(OIDCCustomClaim, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetPKICertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a OIDCCustomClaim from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetPKICertificateOutput} obj Optional instance to populate. - * @return {module:model/GetPKICertificateOutput} The populated GetPKICertificateOutput instance. + * @param {module:model/OIDCCustomClaim} obj Optional instance to populate. + * @return {module:model/OIDCCustomClaim} The populated OIDCCustomClaim instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetPKICertificateOutput(); - - if (data.hasOwnProperty('cert_display_id')) { - obj['cert_display_id'] = _ApiClient["default"].convertToType(data['cert_display_id'], 'String'); - } - - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - - if (data.hasOwnProperty('parent_cert')) { - obj['parent_cert'] = _ApiClient["default"].convertToType(data['parent_cert'], 'String'); - } + obj = obj || new OIDCCustomClaim(); - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('reading_token')) { - obj['reading_token'] = _ApiClient["default"].convertToType(data['reading_token'], 'String'); + if (data.hasOwnProperty('values')) { + obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); } } @@ -82896,40 +156652,25 @@ var GetPKICertificateOutput = /*#__PURE__*/function () { } }]); - return GetPKICertificateOutput; + return OIDCCustomClaim; }(); /** - * @member {String} cert_display_id - */ - - -GetPKICertificateOutput.prototype['cert_display_id'] = undefined; -/** - * @member {String} data - */ - -GetPKICertificateOutput.prototype['data'] = undefined; -/** - * @member {String} parent_cert + * @member {String} name */ -GetPKICertificateOutput.prototype['parent_cert'] = undefined; -/** - * @member {String} path - */ -GetPKICertificateOutput.prototype['path'] = undefined; +OIDCCustomClaim.prototype['name'] = undefined; /** - * @member {String} reading_token + * @member {Array.} values */ -GetPKICertificateOutput.prototype['reading_token'] = undefined; -var _default = GetPKICertificateOutput; +OIDCCustomClaim.prototype['values'] = undefined; +var _default = OIDCCustomClaim; exports["default"] = _default; /***/ }), -/***/ 68389: +/***/ 13120: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82940,9 +156681,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Producer = _interopRequireDefault(__nccwpck_require__(90145)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -82953,19 +156692,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetProducersListReplyObj model module. - * @module model/GetProducersListReplyObj - * @version 3.3.16 + * The ObjectVersionSettingsOutput model module. + * @module model/ObjectVersionSettingsOutput + * @version 3.6.3 */ -var GetProducersListReplyObj = /*#__PURE__*/function () { +var ObjectVersionSettingsOutput = /*#__PURE__*/function () { /** - * Constructs a new GetProducersListReplyObj. - * @alias module:model/GetProducersListReplyObj + * Constructs a new ObjectVersionSettingsOutput. + * @alias module:model/ObjectVersionSettingsOutput */ - function GetProducersListReplyObj() { - _classCallCheck(this, GetProducersListReplyObj); + function ObjectVersionSettingsOutput() { + _classCallCheck(this, ObjectVersionSettingsOutput); - GetProducersListReplyObj.initialize(this); + ObjectVersionSettingsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -82974,29 +156713,29 @@ var GetProducersListReplyObj = /*#__PURE__*/function () { */ - _createClass(GetProducersListReplyObj, null, [{ + _createClass(ObjectVersionSettingsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetProducersListReplyObj from a plain JavaScript object, optionally creating a new instance. + * Constructs a ObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProducersListReplyObj} obj Optional instance to populate. - * @return {module:model/GetProducersListReplyObj} The populated GetProducersListReplyObj instance. + * @param {module:model/ObjectVersionSettingsOutput} obj Optional instance to populate. + * @return {module:model/ObjectVersionSettingsOutput} The populated ObjectVersionSettingsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetProducersListReplyObj(); + obj = obj || new ObjectVersionSettingsOutput(); - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); } - if (data.hasOwnProperty('producers_errors')) { - obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } } @@ -83004,25 +156743,26 @@ var GetProducersListReplyObj = /*#__PURE__*/function () { } }]); - return GetProducersListReplyObj; + return ObjectVersionSettingsOutput; }(); /** - * @member {Array.} producers + * VersionSettingsObjectType defines object types for account version settings + * @member {String} item-type */ -GetProducersListReplyObj.prototype['producers'] = undefined; +ObjectVersionSettingsOutput.prototype['item-type'] = undefined; /** - * @member {Object} producers_errors + * @member {String} max-versions */ -GetProducersListReplyObj.prototype['producers_errors'] = undefined; -var _default = GetProducersListReplyObj; +ObjectVersionSettingsOutput.prototype['max-versions'] = undefined; +var _default = ObjectVersionSettingsOutput; exports["default"] = _default; /***/ }), -/***/ 36838: +/***/ 17035: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83033,7 +156773,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AccessOrGroupPermissionAssignment = _interopRequireDefault(__nccwpck_require__(35765)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83044,21 +156786,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetRSAPublic model module. - * @module model/GetRSAPublic - * @version 3.3.16 + * The OidcClientInfo model module. + * @module model/OidcClientInfo + * @version 3.6.3 */ -var GetRSAPublic = /*#__PURE__*/function () { +var OidcClientInfo = /*#__PURE__*/function () { /** - * Constructs a new GetRSAPublic. - * getRSAPublic is a command that obtains the public key from a specific RSA private key. - * @alias module:model/GetRSAPublic - * @param name {String} Name of RSA key to extract the public key from + * Constructs a new OidcClientInfo. + * @alias module:model/OidcClientInfo */ - function GetRSAPublic(name) { - _classCallCheck(this, GetRSAPublic); + function OidcClientInfo() { + _classCallCheck(this, OidcClientInfo); - GetRSAPublic.initialize(this, name); + OidcClientInfo.initialize(this); } /** * Initializes the fields of this object. @@ -83067,39 +156807,61 @@ var GetRSAPublic = /*#__PURE__*/function () { */ - _createClass(GetRSAPublic, null, [{ + _createClass(OidcClientInfo, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GetRSAPublic from a plain JavaScript object, optionally creating a new instance. + * Constructs a OidcClientInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRSAPublic} obj Optional instance to populate. - * @return {module:model/GetRSAPublic} The populated GetRSAPublic instance. + * @param {module:model/OidcClientInfo} obj Optional instance to populate. + * @return {module:model/OidcClientInfo} The populated OidcClientInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetRSAPublic(); + obj = obj || new OidcClientInfo(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('access_permission_assignment')) { + obj['access_permission_assignment'] = _ApiClient["default"].convertToType(data['access_permission_assignment'], [_AccessOrGroupPermissionAssignment["default"]]); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], ['String']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('grant_types')) { + obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); + } + + if (data.hasOwnProperty('issuer_url')) { + obj['issuer_url'] = _ApiClient["default"].convertToType(data['issuer_url'], 'String'); + } + + if (data.hasOwnProperty('logout_uris')) { + obj['logout_uris'] = _ApiClient["default"].convertToType(data['logout_uris'], ['String']); + } + + if (data.hasOwnProperty('public')) { + obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); + } + + if (data.hasOwnProperty('redirect_uris')) { + obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); + } + + if (data.hasOwnProperty('response_types')) { + obj['response_types'] = _ApiClient["default"].convertToType(data['response_types'], ['String']); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); } } @@ -83107,40 +156869,65 @@ var GetRSAPublic = /*#__PURE__*/function () { } }]); - return GetRSAPublic; + return OidcClientInfo; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Array.} access_permission_assignment */ -GetRSAPublic.prototype['json'] = false; +OidcClientInfo.prototype['access_permission_assignment'] = undefined; /** - * Name of RSA key to extract the public key from - * @member {String} name + * @member {Array.} audience */ -GetRSAPublic.prototype['name'] = undefined; +OidcClientInfo.prototype['audience'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} client_id */ -GetRSAPublic.prototype['token'] = undefined; +OidcClientInfo.prototype['client_id'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} grant_types */ -GetRSAPublic.prototype['uid-token'] = undefined; -var _default = GetRSAPublic; +OidcClientInfo.prototype['grant_types'] = undefined; +/** + * @member {String} issuer_url + */ + +OidcClientInfo.prototype['issuer_url'] = undefined; +/** + * @member {Array.} logout_uris + */ + +OidcClientInfo.prototype['logout_uris'] = undefined; +/** + * @member {Boolean} public + */ + +OidcClientInfo.prototype['public'] = undefined; +/** + * @member {Array.} redirect_uris + */ + +OidcClientInfo.prototype['redirect_uris'] = undefined; +/** + * @member {Array.} response_types + */ + +OidcClientInfo.prototype['response_types'] = undefined; +/** + * @member {Array.} scopes + */ + +OidcClientInfo.prototype['scopes'] = undefined; +var _default = OidcClientInfo; exports["default"] = _default; /***/ }), -/***/ 22685: +/***/ 88702: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83151,7 +156938,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); + +var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(6368)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83162,19 +156953,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetRSAPublicOutput model module. - * @module model/GetRSAPublicOutput - * @version 3.3.16 + * The OnePasswordMigration model module. + * @module model/OnePasswordMigration + * @version 3.6.3 */ -var GetRSAPublicOutput = /*#__PURE__*/function () { +var OnePasswordMigration = /*#__PURE__*/function () { /** - * Constructs a new GetRSAPublicOutput. - * @alias module:model/GetRSAPublicOutput + * Constructs a new OnePasswordMigration. + * @alias module:model/OnePasswordMigration */ - function GetRSAPublicOutput() { - _classCallCheck(this, GetRSAPublicOutput); + function OnePasswordMigration() { + _classCallCheck(this, OnePasswordMigration); - GetRSAPublicOutput.initialize(this); + OnePasswordMigration.initialize(this); } /** * Initializes the fields of this object. @@ -83183,33 +156974,29 @@ var GetRSAPublicOutput = /*#__PURE__*/function () { */ - _createClass(GetRSAPublicOutput, null, [{ + _createClass(OnePasswordMigration, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetRSAPublicOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a OnePasswordMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRSAPublicOutput} obj Optional instance to populate. - * @return {module:model/GetRSAPublicOutput} The populated GetRSAPublicOutput instance. + * @param {module:model/OnePasswordMigration} obj Optional instance to populate. + * @return {module:model/OnePasswordMigration} The populated OnePasswordMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetRSAPublicOutput(); - - if (data.hasOwnProperty('pem')) { - obj['pem'] = _ApiClient["default"].convertToType(data['pem'], 'String'); - } + obj = obj || new OnePasswordMigration(); - if (data.hasOwnProperty('raw')) { - obj['raw'] = _ApiClient["default"].convertToType(data['raw'], 'String'); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); } - if (data.hasOwnProperty('ssh')) { - obj['ssh'] = _ApiClient["default"].convertToType(data['ssh'], 'String'); + if (data.hasOwnProperty('payload')) { + obj['payload'] = _OnePasswordPayload["default"].constructFromObject(data['payload']); } } @@ -83217,30 +157004,25 @@ var GetRSAPublicOutput = /*#__PURE__*/function () { } }]); - return GetRSAPublicOutput; + return OnePasswordMigration; }(); /** - * @member {String} pem + * @member {module:model/MigrationGeneral} general */ -GetRSAPublicOutput.prototype['pem'] = undefined; -/** - * @member {String} raw - */ - -GetRSAPublicOutput.prototype['raw'] = undefined; +OnePasswordMigration.prototype['general'] = undefined; /** - * @member {String} ssh + * @member {module:model/OnePasswordPayload} payload */ -GetRSAPublicOutput.prototype['ssh'] = undefined; -var _default = GetRSAPublicOutput; +OnePasswordMigration.prototype['payload'] = undefined; +var _default = OnePasswordMigration; exports["default"] = _default; /***/ }), -/***/ 31113: +/***/ 6368: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83251,7 +157033,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83262,20 +157044,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetRole model module. - * @module model/GetRole - * @version 3.3.16 + * The OnePasswordPayload model module. + * @module model/OnePasswordPayload + * @version 3.6.3 */ -var GetRole = /*#__PURE__*/function () { +var OnePasswordPayload = /*#__PURE__*/function () { /** - * Constructs a new GetRole. - * @alias module:model/GetRole - * @param name {String} Role name + * Constructs a new OnePasswordPayload. + * @alias module:model/OnePasswordPayload */ - function GetRole(name) { - _classCallCheck(this, GetRole); + function OnePasswordPayload() { + _classCallCheck(this, OnePasswordPayload); - GetRole.initialize(this, name); + OnePasswordPayload.initialize(this); } /** * Initializes the fields of this object. @@ -83284,39 +157065,41 @@ var GetRole = /*#__PURE__*/function () { */ - _createClass(GetRole, null, [{ + _createClass(OnePasswordPayload, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GetRole from a plain JavaScript object, optionally creating a new instance. + * Constructs a OnePasswordPayload from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRole} obj Optional instance to populate. - * @return {module:model/GetRole} The populated GetRole instance. + * @param {module:model/OnePasswordPayload} obj Optional instance to populate. + * @return {module:model/OnePasswordPayload} The populated OnePasswordPayload instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetRole(); + obj = obj || new OnePasswordPayload(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('secret_key')) { + obj['secret_key'] = _ApiClient["default"].convertToType(data['secret_key'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + + if (data.hasOwnProperty('vaults')) { + obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); } } @@ -83324,40 +157107,40 @@ var GetRole = /*#__PURE__*/function () { } }]); - return GetRole; + return OnePasswordPayload; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} email */ -GetRole.prototype['json'] = false; +OnePasswordPayload.prototype['email'] = undefined; /** - * Role name - * @member {String} name + * @member {String} password */ -GetRole.prototype['name'] = undefined; +OnePasswordPayload.prototype['password'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} secret_key */ -GetRole.prototype['token'] = undefined; +OnePasswordPayload.prototype['secret_key'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} url */ -GetRole.prototype['uid-token'] = undefined; -var _default = GetRole; +OnePasswordPayload.prototype['url'] = undefined; +/** + * @member {Array.} vaults + */ + +OnePasswordPayload.prototype['vaults'] = undefined; +var _default = OnePasswordPayload; exports["default"] = _default; /***/ }), -/***/ 71: +/***/ 61949: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83368,7 +157151,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(60371)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83379,20 +157164,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetRotatedSecretValue model module. - * @module model/GetRotatedSecretValue - * @version 3.3.16 + * The PKICertificateIssueDetails model module. + * @module model/PKICertificateIssueDetails + * @version 3.6.3 */ -var GetRotatedSecretValue = /*#__PURE__*/function () { +var PKICertificateIssueDetails = /*#__PURE__*/function () { /** - * Constructs a new GetRotatedSecretValue. - * @alias module:model/GetRotatedSecretValue - * @param names {String} Secret name + * Constructs a new PKICertificateIssueDetails. + * @alias module:model/PKICertificateIssueDetails */ - function GetRotatedSecretValue(names) { - _classCallCheck(this, GetRotatedSecretValue); + function PKICertificateIssueDetails() { + _classCallCheck(this, PKICertificateIssueDetails); - GetRotatedSecretValue.initialize(this, names); + PKICertificateIssueDetails.initialize(this); } /** * Initializes the fields of this object. @@ -83401,51 +157185,151 @@ var GetRotatedSecretValue = /*#__PURE__*/function () { */ - _createClass(GetRotatedSecretValue, null, [{ + _createClass(PKICertificateIssueDetails, null, [{ key: "initialize", - value: function initialize(obj, names) { - obj['names'] = names; - } + value: function initialize(obj) {} /** - * Constructs a GetRotatedSecretValue from a plain JavaScript object, optionally creating a new instance. + * Constructs a PKICertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRotatedSecretValue} obj Optional instance to populate. - * @return {module:model/GetRotatedSecretValue} The populated GetRotatedSecretValue instance. + * @param {module:model/PKICertificateIssueDetails} obj Optional instance to populate. + * @return {module:model/PKICertificateIssueDetails} The populated PKICertificateIssueDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetRotatedSecretValue(); + obj = obj || new PKICertificateIssueDetails(); - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('allow_any_name')) { + obj['allow_any_name'] = _ApiClient["default"].convertToType(data['allow_any_name'], 'Boolean'); } - if (data.hasOwnProperty('ignore-cache')) { - obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + if (data.hasOwnProperty('allow_copy_ext_from_csr')) { + obj['allow_copy_ext_from_csr'] = _ApiClient["default"].convertToType(data['allow_copy_ext_from_csr'], 'Boolean'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('allow_subdomains')) { + obj['allow_subdomains'] = _ApiClient["default"].convertToType(data['allow_subdomains'], 'Boolean'); } - if (data.hasOwnProperty('names')) { - obj['names'] = _ApiClient["default"].convertToType(data['names'], 'String'); + if (data.hasOwnProperty('allowed_domains_list')) { + obj['allowed_domains_list'] = _ApiClient["default"].convertToType(data['allowed_domains_list'], ['String']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('allowed_extra_extensions')) { + obj['allowed_extra_extensions'] = _ApiClient["default"].convertToType(data['allowed_extra_extensions'], { + 'String': ['String'] + }); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('allowed_uri_sans')) { + obj['allowed_uri_sans'] = _ApiClient["default"].convertToType(data['allowed_uri_sans'], ['String']); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('basic_constraints_valid_for_non_ca')) { + obj['basic_constraints_valid_for_non_ca'] = _ApiClient["default"].convertToType(data['basic_constraints_valid_for_non_ca'], 'Boolean'); + } + + if (data.hasOwnProperty('certificate_authority_mode')) { + obj['certificate_authority_mode'] = _ApiClient["default"].convertToType(data['certificate_authority_mode'], 'String'); + } + + if (data.hasOwnProperty('client_flag')) { + obj['client_flag'] = _ApiClient["default"].convertToType(data['client_flag'], 'Boolean'); + } + + if (data.hasOwnProperty('code_signing_flag')) { + obj['code_signing_flag'] = _ApiClient["default"].convertToType(data['code_signing_flag'], 'Boolean'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], ['String']); + } + + if (data.hasOwnProperty('create_private_crl')) { + obj['create_private_crl'] = _ApiClient["default"].convertToType(data['create_private_crl'], 'Boolean'); + } + + if (data.hasOwnProperty('create_public_crl')) { + obj['create_public_crl'] = _ApiClient["default"].convertToType(data['create_public_crl'], 'Boolean'); + } + + if (data.hasOwnProperty('destination_path')) { + obj['destination_path'] = _ApiClient["default"].convertToType(data['destination_path'], 'String'); + } + + if (data.hasOwnProperty('enforce_hostnames')) { + obj['enforce_hostnames'] = _ApiClient["default"].convertToType(data['enforce_hostnames'], 'Boolean'); + } + + if (data.hasOwnProperty('expiration_events')) { + obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); + } + + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('gw_cluster_url')) { + obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); + } + + if (data.hasOwnProperty('is_ca')) { + obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); + } + + if (data.hasOwnProperty('key_bits')) { + obj['key_bits'] = _ApiClient["default"].convertToType(data['key_bits'], 'Number'); + } + + if (data.hasOwnProperty('key_type')) { + obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); + } + + if (data.hasOwnProperty('key_usage_list')) { + obj['key_usage_list'] = _ApiClient["default"].convertToType(data['key_usage_list'], ['String']); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], ['String']); + } + + if (data.hasOwnProperty('not_before_duration')) { + obj['not_before_duration'] = _ApiClient["default"].convertToType(data['not_before_duration'], 'Number'); + } + + if (data.hasOwnProperty('organization_list')) { + obj['organization_list'] = _ApiClient["default"].convertToType(data['organization_list'], ['String']); + } + + if (data.hasOwnProperty('organization_unit_list')) { + obj['organization_unit_list'] = _ApiClient["default"].convertToType(data['organization_unit_list'], ['String']); + } + + if (data.hasOwnProperty('postal_code')) { + obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], ['String']); + } + + if (data.hasOwnProperty('protect_generated_certificates')) { + obj['protect_generated_certificates'] = _ApiClient["default"].convertToType(data['protect_generated_certificates'], 'Boolean'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], ['String']); + } + + if (data.hasOwnProperty('require_cn')) { + obj['require_cn'] = _ApiClient["default"].convertToType(data['require_cn'], 'Boolean'); + } + + if (data.hasOwnProperty('server_flag')) { + obj['server_flag'] = _ApiClient["default"].convertToType(data['server_flag'], 'Boolean'); + } + + if (data.hasOwnProperty('street_address')) { + obj['street_address'] = _ApiClient["default"].convertToType(data['street_address'], ['String']); } } @@ -83453,59 +157337,180 @@ var GetRotatedSecretValue = /*#__PURE__*/function () { } }]); - return GetRotatedSecretValue; + return PKICertificateIssueDetails; }(); /** - * Get rotated secret value of specific Host (relevant only for Linked Target) - * @member {String} host + * @member {Boolean} allow_any_name */ -GetRotatedSecretValue.prototype['host'] = undefined; +PKICertificateIssueDetails.prototype['allow_any_name'] = undefined; /** - * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI - * @member {String} ignore-cache - * @default 'false' + * @member {Boolean} allow_copy_ext_from_csr */ -GetRotatedSecretValue.prototype['ignore-cache'] = 'false'; +PKICertificateIssueDetails.prototype['allow_copy_ext_from_csr'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Boolean} allow_subdomains */ -GetRotatedSecretValue.prototype['json'] = false; +PKICertificateIssueDetails.prototype['allow_subdomains'] = undefined; /** - * Secret name - * @member {String} names + * @member {Array.} allowed_domains_list */ -GetRotatedSecretValue.prototype['names'] = undefined; +PKICertificateIssueDetails.prototype['allowed_domains_list'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Object.>} allowed_extra_extensions */ -GetRotatedSecretValue.prototype['token'] = undefined; +PKICertificateIssueDetails.prototype['allowed_extra_extensions'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Array.} allowed_uri_sans */ -GetRotatedSecretValue.prototype['uid-token'] = undefined; +PKICertificateIssueDetails.prototype['allowed_uri_sans'] = undefined; /** - * Secret version - * @member {Number} version + * @member {Boolean} basic_constraints_valid_for_non_ca */ -GetRotatedSecretValue.prototype['version'] = undefined; -var _default = GetRotatedSecretValue; +PKICertificateIssueDetails.prototype['basic_constraints_valid_for_non_ca'] = undefined; +/** + * @member {String} certificate_authority_mode + */ + +PKICertificateIssueDetails.prototype['certificate_authority_mode'] = undefined; +/** + * @member {Boolean} client_flag + */ + +PKICertificateIssueDetails.prototype['client_flag'] = undefined; +/** + * @member {Boolean} code_signing_flag + */ + +PKICertificateIssueDetails.prototype['code_signing_flag'] = undefined; +/** + * @member {Array.} country + */ + +PKICertificateIssueDetails.prototype['country'] = undefined; +/** + * @member {Boolean} create_private_crl + */ + +PKICertificateIssueDetails.prototype['create_private_crl'] = undefined; +/** + * @member {Boolean} create_public_crl + */ + +PKICertificateIssueDetails.prototype['create_public_crl'] = undefined; +/** + * DestinationPath is the destination to save generated certificates + * @member {String} destination_path + */ + +PKICertificateIssueDetails.prototype['destination_path'] = undefined; +/** + * @member {Boolean} enforce_hostnames + */ + +PKICertificateIssueDetails.prototype['enforce_hostnames'] = undefined; +/** + * ExpirationNotification holds a list of expiration notices that should be sent in case a certificate is about to expire, this value is being propagated to the Certificate resources that are created + * @member {Array.} expiration_events + */ + +PKICertificateIssueDetails.prototype['expiration_events'] = undefined; +/** + * @member {Number} gw_cluster_id + */ + +PKICertificateIssueDetails.prototype['gw_cluster_id'] = undefined; +/** + * GWClusterURL is required when CAMode is \"public\" and it defines the cluster URL the PKI should be issued from. The GW cluster must have permissions to read associated target's details + * @member {String} gw_cluster_url + */ + +PKICertificateIssueDetails.prototype['gw_cluster_url'] = undefined; +/** + * @member {Boolean} is_ca + */ + +PKICertificateIssueDetails.prototype['is_ca'] = undefined; +/** + * @member {Number} key_bits + */ + +PKICertificateIssueDetails.prototype['key_bits'] = undefined; +/** + * @member {String} key_type + */ + +PKICertificateIssueDetails.prototype['key_type'] = undefined; +/** + * @member {Array.} key_usage_list + */ + +PKICertificateIssueDetails.prototype['key_usage_list'] = undefined; +/** + * @member {Array.} locality + */ + +PKICertificateIssueDetails.prototype['locality'] = undefined; +/** + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} not_before_duration + */ + +PKICertificateIssueDetails.prototype['not_before_duration'] = undefined; +/** + * @member {Array.} organization_list + */ + +PKICertificateIssueDetails.prototype['organization_list'] = undefined; +/** + * @member {Array.} organization_unit_list + */ + +PKICertificateIssueDetails.prototype['organization_unit_list'] = undefined; +/** + * @member {Array.} postal_code + */ + +PKICertificateIssueDetails.prototype['postal_code'] = undefined; +/** + * ProtectGeneratedCertificates dictates whether the created certificates should be protected from deletion + * @member {Boolean} protect_generated_certificates + */ + +PKICertificateIssueDetails.prototype['protect_generated_certificates'] = undefined; +/** + * @member {Array.} province + */ + +PKICertificateIssueDetails.prototype['province'] = undefined; +/** + * @member {Boolean} require_cn + */ + +PKICertificateIssueDetails.prototype['require_cn'] = undefined; +/** + * @member {Boolean} server_flag + */ + +PKICertificateIssueDetails.prototype['server_flag'] = undefined; +/** + * @member {Array.} street_address + */ + +PKICertificateIssueDetails.prototype['street_address'] = undefined; +var _default = PKICertificateIssueDetails; exports["default"] = _default; /***/ }), -/***/ 7701: +/***/ 7086: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83516,7 +157521,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83527,21 +157532,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetSSHCertificate model module. - * @module model/GetSSHCertificate - * @version 3.3.16 + * The PasswordPolicyInfo model module. + * @module model/PasswordPolicyInfo + * @version 3.6.3 */ -var GetSSHCertificate = /*#__PURE__*/function () { +var PasswordPolicyInfo = /*#__PURE__*/function () { /** - * Constructs a new GetSSHCertificate. - * @alias module:model/GetSSHCertificate - * @param certIssuerName {String} The name of the SSH certificate issuer - * @param certUsername {String} The username to sign in the SSH certificate + * Constructs a new PasswordPolicyInfo. + * @alias module:model/PasswordPolicyInfo */ - function GetSSHCertificate(certIssuerName, certUsername) { - _classCallCheck(this, GetSSHCertificate); + function PasswordPolicyInfo() { + _classCallCheck(this, PasswordPolicyInfo); - GetSSHCertificate.initialize(this, certIssuerName, certUsername); + PasswordPolicyInfo.initialize(this); } /** * Initializes the fields of this object. @@ -83550,122 +157553,82 @@ var GetSSHCertificate = /*#__PURE__*/function () { */ - _createClass(GetSSHCertificate, null, [{ + _createClass(PasswordPolicyInfo, null, [{ key: "initialize", - value: function initialize(obj, certIssuerName, certUsername) { - obj['cert-issuer-name'] = certIssuerName; - obj['cert-username'] = certUsername; - } + value: function initialize(obj) {} /** - * Constructs a GetSSHCertificate from a plain JavaScript object, optionally creating a new instance. + * Constructs a PasswordPolicyInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetSSHCertificate} obj Optional instance to populate. - * @return {module:model/GetSSHCertificate} The populated GetSSHCertificate instance. + * @param {module:model/PasswordPolicyInfo} obj Optional instance to populate. + * @return {module:model/PasswordPolicyInfo} The populated PasswordPolicyInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetSSHCertificate(); - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('cert-username')) { - obj['cert-username'] = _ApiClient["default"].convertToType(data['cert-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + obj = obj || new PasswordPolicyInfo(); - if (data.hasOwnProperty('legacy-signing-alg-name')) { - obj['legacy-signing-alg-name'] = _ApiClient["default"].convertToType(data['legacy-signing-alg-name'], 'Boolean'); + if (data.hasOwnProperty('password_length')) { + obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); } - if (data.hasOwnProperty('public-key-data')) { - obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); + if (data.hasOwnProperty('use_capital_letters')) { + obj['use_capital_letters'] = _ApiClient["default"].convertToType(data['use_capital_letters'], 'Boolean'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('use_lower_letters')) { + obj['use_lower_letters'] = _ApiClient["default"].convertToType(data['use_lower_letters'], 'Boolean'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('use_numbers')) { + obj['use_numbers'] = _ApiClient["default"].convertToType(data['use_numbers'], 'Boolean'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('use_special_characters')) { + obj['use_special_characters'] = _ApiClient["default"].convertToType(data['use_special_characters'], 'Boolean'); } } return obj; } - }]); - - return GetSSHCertificate; -}(); -/** - * The name of the SSH certificate issuer - * @member {String} cert-issuer-name - */ - - -GetSSHCertificate.prototype['cert-issuer-name'] = undefined; -/** - * The username to sign in the SSH certificate - * @member {String} cert-username - */ + }]); -GetSSHCertificate.prototype['cert-username'] = undefined; + return PasswordPolicyInfo; +}(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Number} password_length */ -GetSSHCertificate.prototype['json'] = false; -/** - * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the certificate. - * @member {Boolean} legacy-signing-alg-name - * @default false - */ -GetSSHCertificate.prototype['legacy-signing-alg-name'] = false; +PasswordPolicyInfo.prototype['password_length'] = undefined; /** - * SSH public key file contents. If this option is used, the certificate will be printed to stdout - * @member {String} public-key-data + * @member {Boolean} use_capital_letters */ -GetSSHCertificate.prototype['public-key-data'] = undefined; +PasswordPolicyInfo.prototype['use_capital_letters'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Boolean} use_lower_letters */ -GetSSHCertificate.prototype['token'] = undefined; +PasswordPolicyInfo.prototype['use_lower_letters'] = undefined; /** - * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) - * @member {Number} ttl + * @member {Boolean} use_numbers */ -GetSSHCertificate.prototype['ttl'] = undefined; +PasswordPolicyInfo.prototype['use_numbers'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Boolean} use_special_characters */ -GetSSHCertificate.prototype['uid-token'] = undefined; -var _default = GetSSHCertificate; +PasswordPolicyInfo.prototype['use_special_characters'] = undefined; +var _default = PasswordPolicyInfo; exports["default"] = _default; /***/ }), -/***/ 29134: +/***/ 42800: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83676,7 +157639,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(43453)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83687,19 +157652,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetSSHCertificateOutput model module. - * @module model/GetSSHCertificateOutput - * @version 3.3.16 + * The PathRule model module. + * @module model/PathRule + * @version 3.6.3 */ -var GetSSHCertificateOutput = /*#__PURE__*/function () { +var PathRule = /*#__PURE__*/function () { /** - * Constructs a new GetSSHCertificateOutput. - * @alias module:model/GetSSHCertificateOutput + * Constructs a new PathRule. + * @alias module:model/PathRule */ - function GetSSHCertificateOutput() { - _classCallCheck(this, GetSSHCertificateOutput); + function PathRule() { + _classCallCheck(this, PathRule); - GetSSHCertificateOutput.initialize(this); + PathRule.initialize(this); } /** * Initializes the fields of this object. @@ -83708,55 +157673,121 @@ var GetSSHCertificateOutput = /*#__PURE__*/function () { */ - _createClass(GetSSHCertificateOutput, null, [{ + _createClass(PathRule, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetSSHCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a PathRule from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetSSHCertificateOutput} obj Optional instance to populate. - * @return {module:model/GetSSHCertificateOutput} The populated GetSSHCertificateOutput instance. + * @param {module:model/PathRule} obj Optional instance to populate. + * @return {module:model/PathRule} The populated PathRule instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetSSHCertificateOutput(); + obj = obj || new PathRule(); - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + if (data.hasOwnProperty('assigners')) { + obj['assigners'] = _ApiClient["default"].convertToType(data['assigners'], [_RuleAssigner["default"]]); + } + + if (data.hasOwnProperty('capabilities')) { + obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], ['String']); + } + + if (data.hasOwnProperty('is_limit_access')) { + obj['is_limit_access'] = _ApiClient["default"].convertToType(data['is_limit_access'], 'Boolean'); + } + + if (data.hasOwnProperty('number_of_access_used')) { + obj['number_of_access_used'] = _ApiClient["default"].convertToType(data['number_of_access_used'], 'Number'); + } + + if (data.hasOwnProperty('number_of_allowed_access')) { + obj['number_of_allowed_access'] = _ApiClient["default"].convertToType(data['number_of_allowed_access'], 'Number'); } if (data.hasOwnProperty('path')) { obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } + + if (data.hasOwnProperty('start_time')) { + obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Number'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } } return obj; } }]); - return GetSSHCertificateOutput; + return PathRule; }(); /** - * @member {String} data + * @member {Array.} assigners */ -GetSSHCertificateOutput.prototype['data'] = undefined; +PathRule.prototype['assigners'] = undefined; +/** + * The approved/denied capabilities in the path + * @member {Array.} capabilities + */ + +PathRule.prototype['capabilities'] = undefined; +/** + * flag that indicate that this rule is allowed to be access RemainingAccess of times. + * @member {Boolean} is_limit_access + */ + +PathRule.prototype['is_limit_access'] = undefined; +/** + * @member {Number} number_of_access_used + */ + +PathRule.prototype['number_of_access_used'] = undefined; /** + * @member {Number} number_of_allowed_access + */ + +PathRule.prototype['number_of_allowed_access'] = undefined; +/** + * The path the rule refers to * @member {String} path */ -GetSSHCertificateOutput.prototype['path'] = undefined; -var _default = GetSSHCertificateOutput; +PathRule.prototype['path'] = undefined; +/** + * @member {Number} start_time + */ + +PathRule.prototype['start_time'] = undefined; +/** + * @member {Number} ttl + */ + +PathRule.prototype['ttl'] = undefined; +/** + * @member {String} type + */ + +PathRule.prototype['type'] = undefined; +var _default = PathRule; exports["default"] = _default; /***/ }), -/***/ 247: +/***/ 11276: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83767,7 +157798,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83778,20 +157809,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetSecretValue model module. - * @module model/GetSecretValue - * @version 3.3.16 + * The PingTargetDetails model module. + * @module model/PingTargetDetails + * @version 3.6.3 */ -var GetSecretValue = /*#__PURE__*/function () { +var PingTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GetSecretValue. - * @alias module:model/GetSecretValue - * @param names {Array.} Secret name + * Constructs a new PingTargetDetails. + * PingTargetDetails + * @alias module:model/PingTargetDetails */ - function GetSecretValue(names) { - _classCallCheck(this, GetSecretValue); + function PingTargetDetails() { + _classCallCheck(this, PingTargetDetails); - GetSecretValue.initialize(this, names); + PingTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -83800,55 +157831,41 @@ var GetSecretValue = /*#__PURE__*/function () { */ - _createClass(GetSecretValue, null, [{ + _createClass(PingTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, names) { - obj['names'] = names; - } + value: function initialize(obj) {} /** - * Constructs a GetSecretValue from a plain JavaScript object, optionally creating a new instance. + * Constructs a PingTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetSecretValue} obj Optional instance to populate. - * @return {module:model/GetSecretValue} The populated GetSecretValue instance. + * @param {module:model/PingTargetDetails} obj Optional instance to populate. + * @return {module:model/PingTargetDetails} The populated PingTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetSecretValue(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('ignore-cache')) { - obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + obj = obj || new PingTargetDetails(); - if (data.hasOwnProperty('names')) { - obj['names'] = _ApiClient["default"].convertToType(data['names'], ['String']); + if (data.hasOwnProperty('administrative_port')) { + obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); } - if (data.hasOwnProperty('pretty-print')) { - obj['pretty-print'] = _ApiClient["default"].convertToType(data['pretty-print'], 'Boolean'); + if (data.hasOwnProperty('authorization_port')) { + obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('ping_url')) { + obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('privileged_user')) { + obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('user_password')) { + obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); } } @@ -83856,66 +157873,40 @@ var GetSecretValue = /*#__PURE__*/function () { } }]); - return GetSecretValue; + return PingTargetDetails; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -GetSecretValue.prototype['accessibility'] = 'regular'; -/** - * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI - * @member {String} ignore-cache - * @default 'false' - */ - -GetSecretValue.prototype['ignore-cache'] = 'false'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} administrative_port */ -GetSecretValue.prototype['json'] = false; -/** - * Secret name - * @member {Array.} names - */ -GetSecretValue.prototype['names'] = undefined; +PingTargetDetails.prototype['administrative_port'] = undefined; /** - * Print the secret value with json-pretty-print (not relevent to SDK) - * @member {Boolean} pretty-print + * @member {String} authorization_port */ -GetSecretValue.prototype['pretty-print'] = undefined; +PingTargetDetails.prototype['authorization_port'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} ping_url */ -GetSecretValue.prototype['token'] = undefined; +PingTargetDetails.prototype['ping_url'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} privileged_user */ -GetSecretValue.prototype['uid-token'] = undefined; +PingTargetDetails.prototype['privileged_user'] = undefined; /** - * Secret version - * @member {Number} version + * @member {String} user_password */ -GetSecretValue.prototype['version'] = undefined; -var _default = GetSecretValue; +PingTargetDetails.prototype['user_password'] = undefined; +var _default = PingTargetDetails; exports["default"] = _default; /***/ }), -/***/ 44711: +/***/ 56263: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -83926,7 +157917,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -83937,20 +157928,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetTags model module. - * @module model/GetTags - * @version 3.3.16 + * The Producer model module. + * @module model/Producer + * @version 3.6.3 */ -var GetTags = /*#__PURE__*/function () { +var Producer = /*#__PURE__*/function () { /** - * Constructs a new GetTags. - * @alias module:model/GetTags - * @param name {String} Item name + * Constructs a new Producer. + * @alias module:model/Producer */ - function GetTags(name) { - _classCallCheck(this, GetTags); + function Producer() { + _classCallCheck(this, Producer); - GetTags.initialize(this, name); + Producer.initialize(this); } /** * Initializes the fields of this object. @@ -83959,39 +157949,45 @@ var GetTags = /*#__PURE__*/function () { */ - _createClass(GetTags, null, [{ + _createClass(Producer, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GetTags from a plain JavaScript object, optionally creating a new instance. + * Constructs a Producer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTags} obj Optional instance to populate. - * @return {module:model/GetTags} The populated GetTags instance. + * @param {module:model/Producer} obj Optional instance to populate. + * @return {module:model/Producer} The populated Producer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetTags(); + obj = obj || new Producer(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('failure_message')) { + obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('init')) { + obj['init'] = _ApiClient["default"].convertToType(data['init'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } } @@ -83999,40 +157995,45 @@ var GetTags = /*#__PURE__*/function () { } }]); - return GetTags; + return Producer; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Boolean} active */ -GetTags.prototype['json'] = false; +Producer.prototype['active'] = undefined; /** - * Item name - * @member {String} name + * @member {String} failure_message */ -GetTags.prototype['name'] = undefined; +Producer.prototype['failure_message'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Number} id */ -GetTags.prototype['token'] = undefined; +Producer.prototype['id'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Boolean} init */ -GetTags.prototype['uid-token'] = undefined; -var _default = GetTags; +Producer.prototype['init'] = undefined; +/** + * @member {String} name + */ + +Producer.prototype['name'] = undefined; +/** + * @member {String} type + */ + +Producer.prototype['type'] = undefined; +var _default = Producer; exports["default"] = _default; /***/ }), -/***/ 75586: +/***/ 80937: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84043,7 +158044,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _Producer = _interopRequireDefault(__nccwpck_require__(56263)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84054,20 +158057,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetTarget model module. - * @module model/GetTarget - * @version 3.3.16 + * The ProducersConfigPart model module. + * @module model/ProducersConfigPart + * @version 3.6.3 */ -var GetTarget = /*#__PURE__*/function () { +var ProducersConfigPart = /*#__PURE__*/function () { /** - * Constructs a new GetTarget. - * @alias module:model/GetTarget - * @param name {String} Target name + * Constructs a new ProducersConfigPart. + * @alias module:model/ProducersConfigPart */ - function GetTarget(name) { - _classCallCheck(this, GetTarget); + function ProducersConfigPart() { + _classCallCheck(this, ProducersConfigPart); - GetTarget.initialize(this, name); + ProducersConfigPart.initialize(this); } /** * Initializes the fields of this object. @@ -84076,43 +158078,25 @@ var GetTarget = /*#__PURE__*/function () { */ - _createClass(GetTarget, null, [{ + _createClass(ProducersConfigPart, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a GetTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a ProducersConfigPart from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTarget} obj Optional instance to populate. - * @return {module:model/GetTarget} The populated GetTarget instance. + * @param {module:model/ProducersConfigPart} obj Optional instance to populate. + * @return {module:model/ProducersConfigPart} The populated ProducersConfigPart instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetTarget(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('show-versions')) { - obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new ProducersConfigPart(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); } } @@ -84120,47 +158104,20 @@ var GetTarget = /*#__PURE__*/function () { } }]); - return GetTarget; + return ProducersConfigPart; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetTarget.prototype['json'] = false; -/** - * Target name - * @member {String} name - */ - -GetTarget.prototype['name'] = undefined; -/** - * Include all target versions in reply - * @member {Boolean} show-versions - * @default false - */ - -GetTarget.prototype['show-versions'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Array.} producers */ -GetTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -GetTarget.prototype['uid-token'] = undefined; -var _default = GetTarget; +ProducersConfigPart.prototype['producers'] = undefined; +var _default = ProducersConfigPart; exports["default"] = _default; /***/ }), -/***/ 82615: +/***/ 40955: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84171,7 +158128,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84182,20 +158139,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetTargetDetails model module. - * @module model/GetTargetDetails - * @version 3.3.16 + * The ProvisionCertificate model module. + * @module model/ProvisionCertificate + * @version 3.6.3 */ -var GetTargetDetails = /*#__PURE__*/function () { +var ProvisionCertificate = /*#__PURE__*/function () { /** - * Constructs a new GetTargetDetails. - * @alias module:model/GetTargetDetails - * @param name {String} Target name + * Constructs a new ProvisionCertificate. + * provisionCertificate is a command that provisions a certificate content to a target + * @alias module:model/ProvisionCertificate + * @param name {String} Certificate name */ - function GetTargetDetails(name) { - _classCallCheck(this, GetTargetDetails); + function ProvisionCertificate(name) { + _classCallCheck(this, ProvisionCertificate); - GetTargetDetails.initialize(this, name); + ProvisionCertificate.initialize(this, name); } /** * Initializes the fields of this object. @@ -84204,39 +158162,39 @@ var GetTargetDetails = /*#__PURE__*/function () { */ - _createClass(GetTargetDetails, null, [{ + _createClass(ProvisionCertificate, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a GetTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a ProvisionCertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTargetDetails} obj Optional instance to populate. - * @return {module:model/GetTargetDetails} The populated GetTargetDetails instance. + * @param {module:model/ProvisionCertificate} obj Optional instance to populate. + * @return {module:model/ProvisionCertificate} The populated ProvisionCertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetTargetDetails(); + obj = obj || new ProvisionCertificate(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } - if (data.hasOwnProperty('show-versions')) { - obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('target-version')) { - obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -84252,53 +158210,52 @@ var GetTargetDetails = /*#__PURE__*/function () { } }]); - return GetTargetDetails; + return ProvisionCertificate; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Certificate display ID + * @member {String} display-id */ -GetTargetDetails.prototype['json'] = false; +ProvisionCertificate.prototype['display-id'] = undefined; /** - * Target name - * @member {String} name + * Certificate item ID + * @member {Number} item-id */ -GetTargetDetails.prototype['name'] = undefined; +ProvisionCertificate.prototype['item-id'] = undefined; /** - * Include all target versions in reply - * @member {Boolean} show-versions + * Set output format to JSON + * @member {Boolean} json * @default false */ -GetTargetDetails.prototype['show-versions'] = false; +ProvisionCertificate.prototype['json'] = false; /** - * Target version - * @member {Number} target-version + * Certificate name + * @member {String} name */ -GetTargetDetails.prototype['target-version'] = undefined; +ProvisionCertificate.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -GetTargetDetails.prototype['token'] = undefined; +ProvisionCertificate.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -GetTargetDetails.prototype['uid-token'] = undefined; -var _default = GetTargetDetails; +ProvisionCertificate.prototype['uid-token'] = undefined; +var _default = ProvisionCertificate; exports["default"] = _default; /***/ }), -/***/ 87280: +/***/ 17594: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84309,11 +158266,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Target = _interopRequireDefault(__nccwpck_require__(91561)); - -var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(12989)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84324,19 +158277,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GetTargetDetailsOutput model module. - * @module model/GetTargetDetailsOutput - * @version 3.3.16 + * The ProvisionCertificateOutput model module. + * @module model/ProvisionCertificateOutput + * @version 3.6.3 */ -var GetTargetDetailsOutput = /*#__PURE__*/function () { +var ProvisionCertificateOutput = /*#__PURE__*/function () { /** - * Constructs a new GetTargetDetailsOutput. - * @alias module:model/GetTargetDetailsOutput + * Constructs a new ProvisionCertificateOutput. + * @alias module:model/ProvisionCertificateOutput */ - function GetTargetDetailsOutput() { - _classCallCheck(this, GetTargetDetailsOutput); + function ProvisionCertificateOutput() { + _classCallCheck(this, ProvisionCertificateOutput); - GetTargetDetailsOutput.initialize(this); + ProvisionCertificateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -84345,29 +158298,37 @@ var GetTargetDetailsOutput = /*#__PURE__*/function () { */ - _createClass(GetTargetDetailsOutput, null, [{ + _createClass(ProvisionCertificateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GetTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ProvisionCertificateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTargetDetailsOutput} obj Optional instance to populate. - * @return {module:model/GetTargetDetailsOutput} The populated GetTargetDetailsOutput instance. + * @param {module:model/ProvisionCertificateOutput} obj Optional instance to populate. + * @return {module:model/ProvisionCertificateOutput} The populated ProvisionCertificateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GetTargetDetailsOutput(); + obj = obj || new ProvisionCertificateOutput(); - if (data.hasOwnProperty('target')) { - obj['target'] = _Target["default"].constructFromObject(data['target']); + if (data.hasOwnProperty('FailMessage')) { + obj['FailMessage'] = _ApiClient["default"].convertToType(data['FailMessage'], 'String'); } - if (data.hasOwnProperty('value')) { - obj['value'] = _TargetTypeDetailsInput["default"].constructFromObject(data['value']); + if (data.hasOwnProperty('SuccessMessage')) { + obj['SuccessMessage'] = _ApiClient["default"].convertToType(data['SuccessMessage'], 'String'); + } + + if (data.hasOwnProperty('host_names')) { + obj['host_names'] = _ApiClient["default"].convertToType(data['host_names'], ['String']); + } + + if (data.hasOwnProperty('provisioned_at')) { + obj['provisioned_at'] = _ApiClient["default"].convertToType(data['provisioned_at'], 'Date'); } } @@ -84375,25 +158336,35 @@ var GetTargetDetailsOutput = /*#__PURE__*/function () { } }]); - return GetTargetDetailsOutput; + return ProvisionCertificateOutput; }(); /** - * @member {module:model/Target} target + * @member {String} FailMessage */ -GetTargetDetailsOutput.prototype['target'] = undefined; +ProvisionCertificateOutput.prototype['FailMessage'] = undefined; /** - * @member {module:model/TargetTypeDetailsInput} value + * @member {String} SuccessMessage */ -GetTargetDetailsOutput.prototype['value'] = undefined; -var _default = GetTargetDetailsOutput; +ProvisionCertificateOutput.prototype['SuccessMessage'] = undefined; +/** + * @member {Array.} host_names + */ + +ProvisionCertificateOutput.prototype['host_names'] = undefined; +/** + * @member {Date} provisioned_at + */ + +ProvisionCertificateOutput.prototype['provisioned_at'] = undefined; +var _default = ProvisionCertificateOutput; exports["default"] = _default; /***/ }), -/***/ 13402: +/***/ 49950: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84404,7 +158375,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84415,19 +158386,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GithubTargetDetails model module. - * @module model/GithubTargetDetails - * @version 3.3.16 + * The RabbitMQTargetDetails model module. + * @module model/RabbitMQTargetDetails + * @version 3.6.3 */ -var GithubTargetDetails = /*#__PURE__*/function () { +var RabbitMQTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new GithubTargetDetails. - * @alias module:model/GithubTargetDetails + * Constructs a new RabbitMQTargetDetails. + * @alias module:model/RabbitMQTargetDetails */ - function GithubTargetDetails() { - _classCallCheck(this, GithubTargetDetails); + function RabbitMQTargetDetails() { + _classCallCheck(this, RabbitMQTargetDetails); - GithubTargetDetails.initialize(this); + RabbitMQTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -84436,33 +158407,33 @@ var GithubTargetDetails = /*#__PURE__*/function () { */ - _createClass(GithubTargetDetails, null, [{ + _createClass(RabbitMQTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GithubTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GithubTargetDetails} obj Optional instance to populate. - * @return {module:model/GithubTargetDetails} The populated GithubTargetDetails instance. + * @param {module:model/RabbitMQTargetDetails} obj Optional instance to populate. + * @return {module:model/RabbitMQTargetDetails} The populated RabbitMQTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GithubTargetDetails(); + obj = obj || new RabbitMQTargetDetails(); - if (data.hasOwnProperty('github_app_id')) { - obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); + if (data.hasOwnProperty('rabbitmq_server_password')) { + obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); } - if (data.hasOwnProperty('github_app_private_key')) { - obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); + if (data.hasOwnProperty('rabbitmq_server_uri')) { + obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); } - if (data.hasOwnProperty('github_base_url')) { - obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); + if (data.hasOwnProperty('rabbitmq_server_user')) { + obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); } } @@ -84470,30 +158441,30 @@ var GithubTargetDetails = /*#__PURE__*/function () { } }]); - return GithubTargetDetails; + return RabbitMQTargetDetails; }(); /** - * @member {Number} github_app_id + * @member {String} rabbitmq_server_password */ -GithubTargetDetails.prototype['github_app_id'] = undefined; +RabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; /** - * @member {String} github_app_private_key + * @member {String} rabbitmq_server_uri */ -GithubTargetDetails.prototype['github_app_private_key'] = undefined; +RabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; /** - * @member {String} github_base_url + * @member {String} rabbitmq_server_user */ -GithubTargetDetails.prototype['github_base_url'] = undefined; -var _default = GithubTargetDetails; +RabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; +var _default = RabbitMQTargetDetails; exports["default"] = _default; /***/ }), -/***/ 97168: +/***/ 37314: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84504,7 +158475,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84515,20 +158486,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GlobalSignAtlasTargetDetails model module. - * @module model/GlobalSignAtlasTargetDetails - * @version 3.3.16 + * The RawCreds model module. + * @module model/RawCreds + * @version 3.6.3 */ -var GlobalSignAtlasTargetDetails = /*#__PURE__*/function () { +var RawCreds = /*#__PURE__*/function () { /** - * Constructs a new GlobalSignAtlasTargetDetails. - * GlobalSignAtlasTargetDetails - * @alias module:model/GlobalSignAtlasTargetDetails + * Constructs a new RawCreds. + * @alias module:model/RawCreds */ - function GlobalSignAtlasTargetDetails() { - _classCallCheck(this, GlobalSignAtlasTargetDetails); + function RawCreds() { + _classCallCheck(this, RawCreds); - GlobalSignAtlasTargetDetails.initialize(this); + RawCreds.initialize(this); } /** * Initializes the fields of this object. @@ -84537,41 +158507,29 @@ var GlobalSignAtlasTargetDetails = /*#__PURE__*/function () { */ - _createClass(GlobalSignAtlasTargetDetails, null, [{ + _createClass(RawCreds, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GlobalSignAtlasTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RawCreds from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalSignAtlasTargetDetails} obj Optional instance to populate. - * @return {module:model/GlobalSignAtlasTargetDetails} The populated GlobalSignAtlasTargetDetails instance. + * @param {module:model/RawCreds} obj Optional instance to populate. + * @return {module:model/RawCreds} The populated RawCreds instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GlobalSignAtlasTargetDetails(); - - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - - if (data.hasOwnProperty('api_secret')) { - obj['api_secret'] = _ApiClient["default"].convertToType(data['api_secret'], 'String'); - } - - if (data.hasOwnProperty('mtls_cert')) { - obj['mtls_cert'] = _ApiClient["default"].convertToType(data['mtls_cert'], 'String'); - } + obj = obj || new RawCreds(); - if (data.hasOwnProperty('mtls_key')) { - obj['mtls_key'] = _ApiClient["default"].convertToType(data['mtls_key'], 'String'); + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); } } @@ -84579,41 +158537,25 @@ var GlobalSignAtlasTargetDetails = /*#__PURE__*/function () { } }]); - return GlobalSignAtlasTargetDetails; + return RawCreds; }(); /** - * @member {String} api_key - */ - - -GlobalSignAtlasTargetDetails.prototype['api_key'] = undefined; -/** - * @member {String} api_secret - */ - -GlobalSignAtlasTargetDetails.prototype['api_secret'] = undefined; -/** - * @member {String} mtls_cert + * @member {String} access-id */ -GlobalSignAtlasTargetDetails.prototype['mtls_cert'] = undefined; -/** - * @member {String} mtls_key - */ -GlobalSignAtlasTargetDetails.prototype['mtls_key'] = undefined; +RawCreds.prototype['access-id'] = undefined; /** - * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. - * @member {Number} timeout + * @member {String} access-key */ -GlobalSignAtlasTargetDetails.prototype['timeout'] = undefined; -var _default = GlobalSignAtlasTargetDetails; +RawCreds.prototype['access-key'] = undefined; +var _default = RawCreds; exports["default"] = _default; /***/ }), -/***/ 55349: +/***/ 69211: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84624,7 +158566,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84635,20 +158577,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GlobalSignGCCTargetDetails model module. - * @module model/GlobalSignGCCTargetDetails - * @version 3.3.16 + * The RefreshKey model module. + * @module model/RefreshKey + * @version 3.6.3 */ -var GlobalSignGCCTargetDetails = /*#__PURE__*/function () { +var RefreshKey = /*#__PURE__*/function () { /** - * Constructs a new GlobalSignGCCTargetDetails. - * GlobalSignGCCTargetDetails - * @alias module:model/GlobalSignGCCTargetDetails + * Constructs a new RefreshKey. + * @alias module:model/RefreshKey + * @param name {String} Key name */ - function GlobalSignGCCTargetDetails() { - _classCallCheck(this, GlobalSignGCCTargetDetails); + function RefreshKey(name) { + _classCallCheck(this, RefreshKey); - GlobalSignGCCTargetDetails.initialize(this); + RefreshKey.initialize(this, name); } /** * Initializes the fields of this object. @@ -84657,53 +158599,39 @@ var GlobalSignGCCTargetDetails = /*#__PURE__*/function () { */ - _createClass(GlobalSignGCCTargetDetails, null, [{ + _createClass(RefreshKey, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a GlobalSignGCCTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RefreshKey from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalSignGCCTargetDetails} obj Optional instance to populate. - * @return {module:model/GlobalSignGCCTargetDetails} The populated GlobalSignGCCTargetDetails instance. + * @param {module:model/RefreshKey} obj Optional instance to populate. + * @return {module:model/RefreshKey} The populated RefreshKey instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GlobalSignGCCTargetDetails(); - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = _ApiClient["default"].convertToType(data['first_name'], 'String'); - } - - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = _ApiClient["default"].convertToType(data['last_name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } + obj = obj || new RefreshKey(); - if (data.hasOwnProperty('phone')) { - obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('profile_id')) { - obj['profile_id'] = _ApiClient["default"].convertToType(data['profile_id'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -84711,57 +158639,40 @@ var GlobalSignGCCTargetDetails = /*#__PURE__*/function () { } }]); - return GlobalSignGCCTargetDetails; + return RefreshKey; }(); /** - * @member {String} email - */ - - -GlobalSignGCCTargetDetails.prototype['email'] = undefined; -/** - * Contact Info - GlobalSign requires this to be sent with every certificate creation request - * @member {String} first_name - */ - -GlobalSignGCCTargetDetails.prototype['first_name'] = undefined; -/** - * @member {String} last_name - */ - -GlobalSignGCCTargetDetails.prototype['last_name'] = undefined; -/** - * @member {String} password + * Set output format to JSON + * @member {Boolean} json + * @default false */ -GlobalSignGCCTargetDetails.prototype['password'] = undefined; -/** - * @member {String} phone - */ -GlobalSignGCCTargetDetails.prototype['phone'] = undefined; +RefreshKey.prototype['json'] = false; /** - * @member {String} profile_id + * Key name + * @member {String} name */ -GlobalSignGCCTargetDetails.prototype['profile_id'] = undefined; +RefreshKey.prototype['name'] = undefined; /** - * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. - * @member {Number} timeout + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -GlobalSignGCCTargetDetails.prototype['timeout'] = undefined; +RefreshKey.prototype['token'] = undefined; /** - * @member {String} username + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -GlobalSignGCCTargetDetails.prototype['username'] = undefined; -var _default = GlobalSignGCCTargetDetails; +RefreshKey.prototype['uid-token'] = undefined; +var _default = RefreshKey; exports["default"] = _default; /***/ }), -/***/ 83716: +/***/ 8346: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84772,7 +158683,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84783,19 +158694,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GoogleChronicleForwardingConfig model module. - * @module model/GoogleChronicleForwardingConfig - * @version 3.3.16 + * The RefreshKeyOutput model module. + * @module model/RefreshKeyOutput + * @version 3.6.3 */ -var GoogleChronicleForwardingConfig = /*#__PURE__*/function () { +var RefreshKeyOutput = /*#__PURE__*/function () { /** - * Constructs a new GoogleChronicleForwardingConfig. - * @alias module:model/GoogleChronicleForwardingConfig + * Constructs a new RefreshKeyOutput. + * @alias module:model/RefreshKeyOutput */ - function GoogleChronicleForwardingConfig() { - _classCallCheck(this, GoogleChronicleForwardingConfig); + function RefreshKeyOutput() { + _classCallCheck(this, RefreshKeyOutput); - GoogleChronicleForwardingConfig.initialize(this); + RefreshKeyOutput.initialize(this); } /** * Initializes the fields of this object. @@ -84804,37 +158715,25 @@ var GoogleChronicleForwardingConfig = /*#__PURE__*/function () { */ - _createClass(GoogleChronicleForwardingConfig, null, [{ + _createClass(RefreshKeyOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GoogleChronicleForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a RefreshKeyOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GoogleChronicleForwardingConfig} obj Optional instance to populate. - * @return {module:model/GoogleChronicleForwardingConfig} The populated GoogleChronicleForwardingConfig instance. + * @param {module:model/RefreshKeyOutput} obj Optional instance to populate. + * @return {module:model/RefreshKeyOutput} The populated RefreshKeyOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GoogleChronicleForwardingConfig(); - - if (data.hasOwnProperty('customer_id')) { - obj['customer_id'] = _ApiClient["default"].convertToType(data['customer_id'], 'String'); - } - - if (data.hasOwnProperty('log_type')) { - obj['log_type'] = _ApiClient["default"].convertToType(data['log_type'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } + obj = obj || new RefreshKeyOutput(); - if (data.hasOwnProperty('service_account_key')) { - obj['service_account_key'] = _ApiClient["default"].convertToType(data['service_account_key'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -84842,35 +158741,20 @@ var GoogleChronicleForwardingConfig = /*#__PURE__*/function () { } }]); - return GoogleChronicleForwardingConfig; + return RefreshKeyOutput; }(); /** - * @member {String} customer_id - */ - - -GoogleChronicleForwardingConfig.prototype['customer_id'] = undefined; -/** - * @member {String} log_type - */ - -GoogleChronicleForwardingConfig.prototype['log_type'] = undefined; -/** - * @member {String} region + * @member {String} result */ -GoogleChronicleForwardingConfig.prototype['region'] = undefined; -/** - * @member {String} service_account_key - */ -GoogleChronicleForwardingConfig.prototype['service_account_key'] = undefined; -var _default = GoogleChronicleForwardingConfig; +RefreshKeyOutput.prototype['result'] = undefined; +var _default = RefreshKeyOutput; exports["default"] = _default; /***/ }), -/***/ 6556: +/***/ 43939: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -84881,7 +158765,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -84892,19 +158776,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The GwClusterIdentity model module. - * @module model/GwClusterIdentity - * @version 3.3.16 + * The RegexpTokenizerInfo model module. + * @module model/RegexpTokenizerInfo + * @version 3.6.3 */ -var GwClusterIdentity = /*#__PURE__*/function () { +var RegexpTokenizerInfo = /*#__PURE__*/function () { /** - * Constructs a new GwClusterIdentity. - * @alias module:model/GwClusterIdentity + * Constructs a new RegexpTokenizerInfo. + * RegexpTokenizerInfo represents a general Regexp tokenization template + * @alias module:model/RegexpTokenizerInfo */ - function GwClusterIdentity() { - _classCallCheck(this, GwClusterIdentity); + function RegexpTokenizerInfo() { + _classCallCheck(this, RegexpTokenizerInfo); - GwClusterIdentity.initialize(this); + RegexpTokenizerInfo.initialize(this); } /** * Initializes the fields of this object. @@ -84913,69 +158798,37 @@ var GwClusterIdentity = /*#__PURE__*/function () { */ - _createClass(GwClusterIdentity, null, [{ + _createClass(RegexpTokenizerInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a GwClusterIdentity from a plain JavaScript object, optionally creating a new instance. + * Constructs a RegexpTokenizerInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GwClusterIdentity} obj Optional instance to populate. - * @return {module:model/GwClusterIdentity} The populated GwClusterIdentity instance. + * @param {module:model/RegexpTokenizerInfo} obj Optional instance to populate. + * @return {module:model/RegexpTokenizerInfo} The populated RegexpTokenizerInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new GwClusterIdentity(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = _ApiClient["default"].convertToType(data['allowed'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed_access_ids')) { - obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); - } - - if (data.hasOwnProperty('cluster_name')) { - obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); - } - - if (data.hasOwnProperty('cluster_url')) { - obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); - } - - if (data.hasOwnProperty('current_gw')) { - obj['current_gw'] = _ApiClient["default"].convertToType(data['current_gw'], 'Boolean'); - } - - if (data.hasOwnProperty('customer_fragment_ids')) { - obj['customer_fragment_ids'] = _ApiClient["default"].convertToType(data['customer_fragment_ids'], ['String']); - } - - if (data.hasOwnProperty('default_protection_key_id')) { - obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); - } - - if (data.hasOwnProperty('default_secret_location')) { - obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); - } + obj = obj || new RegexpTokenizerInfo(); - if (data.hasOwnProperty('display_name')) { - obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + if (data.hasOwnProperty('alphabet')) { + obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + if (data.hasOwnProperty('decoding_template')) { + obj['decoding_template'] = _ApiClient["default"].convertToType(data['decoding_template'], 'String'); } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + if (data.hasOwnProperty('encoding_template')) { + obj['encoding_template'] = _ApiClient["default"].convertToType(data['encoding_template'], 'String'); } - if (data.hasOwnProperty('status_description')) { - obj['status_description'] = _ApiClient["default"].convertToType(data['status_description'], 'String'); + if (data.hasOwnProperty('pattern')) { + obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); } } @@ -84983,75 +158836,39 @@ var GwClusterIdentity = /*#__PURE__*/function () { } }]); - return GwClusterIdentity; + return RegexpTokenizerInfo; }(); /** - * @member {Boolean} allowed - */ - - -GwClusterIdentity.prototype['allowed'] = undefined; -/** - * @member {Array.} allowed_access_ids - */ - -GwClusterIdentity.prototype['allowed_access_ids'] = undefined; -/** - * @member {String} cluster_name - */ - -GwClusterIdentity.prototype['cluster_name'] = undefined; -/** - * @member {String} cluster_url - */ - -GwClusterIdentity.prototype['cluster_url'] = undefined; -/** - * @member {Boolean} current_gw - */ - -GwClusterIdentity.prototype['current_gw'] = undefined; -/** - * @member {Array.} customer_fragment_ids - */ - -GwClusterIdentity.prototype['customer_fragment_ids'] = undefined; -/** - * @member {Number} default_protection_key_id - */ - -GwClusterIdentity.prototype['default_protection_key_id'] = undefined; -/** - * @member {String} default_secret_location + * The Alphabet used for the tokenization + * @member {String} alphabet */ -GwClusterIdentity.prototype['default_secret_location'] = undefined; -/** - * @member {String} display_name - */ -GwClusterIdentity.prototype['display_name'] = undefined; +RegexpTokenizerInfo.prototype['alphabet'] = undefined; /** - * @member {Number} id + * Transformation to perform on the decrypted data + * @member {String} decoding_template */ -GwClusterIdentity.prototype['id'] = undefined; +RegexpTokenizerInfo.prototype['decoding_template'] = undefined; /** - * @member {String} status + * Transformation to perform on the encrypted data, if the required output template doesn't match the input string The output Should still be valid for the Pattern, otherwise the secret would be able to be decrypted. + * @member {String} encoding_template */ -GwClusterIdentity.prototype['status'] = undefined; +RegexpTokenizerInfo.prototype['encoding_template'] = undefined; /** - * @member {String} status_description + * Regexp pattern to extract and deposit the text/encdata + * @member {String} pattern */ -GwClusterIdentity.prototype['status_description'] = undefined; -var _default = GwClusterIdentity; +RegexpTokenizerInfo.prototype['pattern'] = undefined; +var _default = RegexpTokenizerInfo; exports["default"] = _default; /***/ }), -/***/ 97395: +/***/ 12997: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85062,11 +158879,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _HashiPayload = _interopRequireDefault(__nccwpck_require__(36437)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85077,19 +158890,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The HashiMigration model module. - * @module model/HashiMigration - * @version 3.3.16 + * The RenewCertificate model module. + * @module model/RenewCertificate + * @version 3.6.3 */ -var HashiMigration = /*#__PURE__*/function () { +var RenewCertificate = /*#__PURE__*/function () { /** - * Constructs a new HashiMigration. - * @alias module:model/HashiMigration + * Constructs a new RenewCertificate. + * @alias module:model/RenewCertificate */ - function HashiMigration() { - _classCallCheck(this, HashiMigration); + function RenewCertificate() { + _classCallCheck(this, RenewCertificate); - HashiMigration.initialize(this); + RenewCertificate.initialize(this); } /** * Initializes the fields of this object. @@ -85098,55 +158911,98 @@ var HashiMigration = /*#__PURE__*/function () { */ - _createClass(HashiMigration, null, [{ + _createClass(RenewCertificate, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a HashiMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a RenewCertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HashiMigration} obj Optional instance to populate. - * @return {module:model/HashiMigration} The populated HashiMigration instance. + * @param {module:model/RenewCertificate} obj Optional instance to populate. + * @return {module:model/RenewCertificate} The populated RenewCertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new HashiMigration(); + obj = obj || new RenewCertificate(); - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + if (data.hasOwnProperty('generate-key')) { + obj['generate-key'] = _ApiClient["default"].convertToType(data['generate-key'], 'Boolean'); } - if (data.hasOwnProperty('payload')) { - obj['payload'] = _HashiPayload["default"].constructFromObject(data['payload']); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } - return obj; - } - }]); + return obj; + } + }]); + + return RenewCertificate; +}(); +/** + * Generate a new key as part of the certificate renewal + * @member {Boolean} generate-key + */ + + +RenewCertificate.prototype['generate-key'] = undefined; +/** + * Certificate item id + * @member {Number} item-id + */ + +RenewCertificate.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - return HashiMigration; -}(); +RenewCertificate.prototype['json'] = false; /** - * @member {module:model/MigrationGeneral} general + * Certificate name + * @member {String} name */ +RenewCertificate.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -HashiMigration.prototype['general'] = undefined; +RenewCertificate.prototype['token'] = undefined; /** - * @member {module:model/HashiPayload} payload + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -HashiMigration.prototype['payload'] = undefined; -var _default = HashiMigration; +RenewCertificate.prototype['uid-token'] = undefined; +var _default = RenewCertificate; exports["default"] = _default; /***/ }), -/***/ 36437: +/***/ 7472: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85157,7 +159013,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85168,19 +159024,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The HashiPayload model module. - * @module model/HashiPayload - * @version 3.3.16 + * The RenewCertificateOutput model module. + * @module model/RenewCertificateOutput + * @version 3.6.3 */ -var HashiPayload = /*#__PURE__*/function () { +var RenewCertificateOutput = /*#__PURE__*/function () { /** - * Constructs a new HashiPayload. - * @alias module:model/HashiPayload + * Constructs a new RenewCertificateOutput. + * @alias module:model/RenewCertificateOutput */ - function HashiPayload() { - _classCallCheck(this, HashiPayload); + function RenewCertificateOutput() { + _classCallCheck(this, RenewCertificateOutput); - HashiPayload.initialize(this); + RenewCertificateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -85189,37 +159045,45 @@ var HashiPayload = /*#__PURE__*/function () { */ - _createClass(HashiPayload, null, [{ + _createClass(RenewCertificateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a HashiPayload from a plain JavaScript object, optionally creating a new instance. + * Constructs a RenewCertificateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HashiPayload} obj Optional instance to populate. - * @return {module:model/HashiPayload} The populated HashiPayload instance. + * @param {module:model/RenewCertificateOutput} obj Optional instance to populate. + * @return {module:model/RenewCertificateOutput} The populated RenewCertificateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new HashiPayload(); + obj = obj || new RenewCertificateOutput(); - if (data.hasOwnProperty('import_as_json')) { - obj['import_as_json'] = _ApiClient["default"].convertToType(data['import_as_json'], 'Boolean'); + if (data.hasOwnProperty('cert')) { + obj['cert'] = _ApiClient["default"].convertToType(data['cert'], 'String'); } - if (data.hasOwnProperty('namespaces')) { - obj['namespaces'] = _ApiClient["default"].convertToType(data['namespaces'], ['String']); + if (data.hasOwnProperty('cert_display_id')) { + obj['cert_display_id'] = _ApiClient["default"].convertToType(data['cert_display_id'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'String'); } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + if (data.hasOwnProperty('parent_cert')) { + obj['parent_cert'] = _ApiClient["default"].convertToType(data['parent_cert'], 'String'); + } + + if (data.hasOwnProperty('private_key')) { + obj['private_key'] = _ApiClient["default"].convertToType(data['private_key'], 'String'); + } + + if (data.hasOwnProperty('reading_token')) { + obj['reading_token'] = _ApiClient["default"].convertToType(data['reading_token'], 'String'); } } @@ -85227,35 +159091,45 @@ var HashiPayload = /*#__PURE__*/function () { } }]); - return HashiPayload; + return RenewCertificateOutput; }(); /** - * @member {Boolean} import_as_json + * @member {String} cert */ -HashiPayload.prototype['import_as_json'] = undefined; +RenewCertificateOutput.prototype['cert'] = undefined; /** - * @member {Array.} namespaces + * @member {String} cert_display_id */ -HashiPayload.prototype['namespaces'] = undefined; +RenewCertificateOutput.prototype['cert_display_id'] = undefined; /** - * @member {String} token + * @member {String} item_id */ -HashiPayload.prototype['token'] = undefined; +RenewCertificateOutput.prototype['item_id'] = undefined; /** - * @member {String} url + * @member {String} parent_cert */ -HashiPayload.prototype['url'] = undefined; -var _default = HashiPayload; +RenewCertificateOutput.prototype['parent_cert'] = undefined; +/** + * @member {String} private_key + */ + +RenewCertificateOutput.prototype['private_key'] = undefined; +/** + * @member {String} reading_token + */ + +RenewCertificateOutput.prototype['reading_token'] = undefined; +var _default = RenewCertificateOutput; exports["default"] = _default; /***/ }), -/***/ 9330: +/***/ 50874: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85266,7 +159140,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85277,20 +159151,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Hmac model module. - * @module model/Hmac - * @version 3.3.16 + * The RequestAccess model module. + * @module model/RequestAccess + * @version 3.6.3 */ -var Hmac = /*#__PURE__*/function () { +var RequestAccess = /*#__PURE__*/function () { /** - * Constructs a new Hmac. - * @alias module:model/Hmac - * @param keyName {String} The name of the key to use in the encryption process + * Constructs a new RequestAccess. + * @alias module:model/RequestAccess + * @param capability {Array.} List of the required capabilities options: [read, update, delete] + * @param name {String} Item name + * @param type {String} Item type */ - function Hmac(keyName) { - _classCallCheck(this, Hmac); + function RequestAccess(capability, name, type) { + _classCallCheck(this, RequestAccess); - Hmac.initialize(this, keyName); + RequestAccess.initialize(this, capability, name, type); } /** * Initializes the fields of this object. @@ -85299,57 +159175,55 @@ var Hmac = /*#__PURE__*/function () { */ - _createClass(Hmac, null, [{ + _createClass(RequestAccess, null, [{ key: "initialize", - value: function initialize(obj, keyName) { - obj['key-name'] = keyName; + value: function initialize(obj, capability, name, type) { + obj['capability'] = capability; + obj['name'] = name; + obj['type'] = type; } /** - * Constructs a Hmac from a plain JavaScript object, optionally creating a new instance. + * Constructs a RequestAccess from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Hmac} obj Optional instance to populate. - * @return {module:model/Hmac} The populated Hmac instance. + * @param {module:model/RequestAccess} obj Optional instance to populate. + * @return {module:model/RequestAccess} The populated RequestAccess instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Hmac(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } + obj = obj || new RequestAccess(); - if (data.hasOwnProperty('hash-function')) { - obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + if (data.hasOwnProperty('capability')) { + obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); } - if (data.hasOwnProperty('input-format')) { - obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -85359,71 +159233,64 @@ var Hmac = /*#__PURE__*/function () { } }]); - return Hmac; + return RequestAccess; }(); /** - * The display id of the key to use in the encryption process - * @member {String} display-id + * List of the required capabilities options: [read, update, delete] + * @member {Array.} capability */ -Hmac.prototype['display-id'] = undefined; -/** - * Hash function [sha-256,sha-512] - * @member {String} hash-function - * @default 'sha-256' - */ - -Hmac.prototype['hash-function'] = 'sha-256'; +RequestAccess.prototype['capability'] = undefined; /** - * Select default assumed format for any plaintext input. Currently supported options: [base64] - * @member {String} input-format + * Deprecated - use description + * @member {String} comment */ -Hmac.prototype['input-format'] = undefined; +RequestAccess.prototype['comment'] = undefined; /** - * The item id of the key to use in the encryption process - * @member {Number} item-id + * Description of the object + * @member {String} description */ -Hmac.prototype['item-id'] = undefined; +RequestAccess.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -Hmac.prototype['json'] = false; +RequestAccess.prototype['json'] = false; /** - * The name of the key to use in the encryption process - * @member {String} key-name + * Item name + * @member {String} name */ -Hmac.prototype['key-name'] = undefined; +RequestAccess.prototype['name'] = undefined; /** - * Data to perform hmac on - * @member {String} plaintext + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Hmac.prototype['plaintext'] = undefined; +RequestAccess.prototype['token'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Item type + * @member {String} type */ -Hmac.prototype['token'] = undefined; +RequestAccess.prototype['type'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -Hmac.prototype['uid-token'] = undefined; -var _default = Hmac; +RequestAccess.prototype['uid-token'] = undefined; +var _default = RequestAccess; exports["default"] = _default; /***/ }), -/***/ 14344: +/***/ 27055: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85434,7 +159301,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85445,19 +159312,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The HmacOutput model module. - * @module model/HmacOutput - * @version 3.3.16 + * The RequestAccessOutput model module. + * @module model/RequestAccessOutput + * @version 3.6.3 */ -var HmacOutput = /*#__PURE__*/function () { +var RequestAccessOutput = /*#__PURE__*/function () { /** - * Constructs a new HmacOutput. - * @alias module:model/HmacOutput + * Constructs a new RequestAccessOutput. + * @alias module:model/RequestAccessOutput */ - function HmacOutput() { - _classCallCheck(this, HmacOutput); + function RequestAccessOutput() { + _classCallCheck(this, RequestAccessOutput); - HmacOutput.initialize(this); + RequestAccessOutput.initialize(this); } /** * Initializes the fields of this object. @@ -85466,25 +159333,25 @@ var HmacOutput = /*#__PURE__*/function () { */ - _createClass(HmacOutput, null, [{ + _createClass(RequestAccessOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a HmacOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RequestAccessOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HmacOutput} obj Optional instance to populate. - * @return {module:model/HmacOutput} The populated HmacOutput instance. + * @param {module:model/RequestAccessOutput} obj Optional instance to populate. + * @return {module:model/RequestAccessOutput} The populated RequestAccessOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new HmacOutput(); + obj = obj || new RequestAccessOutput(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('response')) { + obj['response'] = _ApiClient["default"].convertToType(data['response'], 'String'); } } @@ -85492,20 +159359,20 @@ var HmacOutput = /*#__PURE__*/function () { } }]); - return HmacOutput; + return RequestAccessOutput; }(); /** - * @member {String} result + * @member {String} response */ -HmacOutput.prototype['result'] = undefined; -var _default = HmacOutput; +RequestAccessOutput.prototype['response'] = undefined; +var _default = RequestAccessOutput; exports["default"] = _default; /***/ }), -/***/ 10366: +/***/ 37953: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85516,7 +159383,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85527,19 +159394,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The HuaweiAccessRules model module. - * @module model/HuaweiAccessRules - * @version 3.3.16 + * The RequiredActivity model module. + * @module model/RequiredActivity + * @version 3.6.3 */ -var HuaweiAccessRules = /*#__PURE__*/function () { +var RequiredActivity = /*#__PURE__*/function () { /** - * Constructs a new HuaweiAccessRules. - * @alias module:model/HuaweiAccessRules + * Constructs a new RequiredActivity. + * @alias module:model/RequiredActivity */ - function HuaweiAccessRules() { - _classCallCheck(this, HuaweiAccessRules); + function RequiredActivity() { + _classCallCheck(this, RequiredActivity); - HuaweiAccessRules.initialize(this); + RequiredActivity.initialize(this); } /** * Initializes the fields of this object. @@ -85548,49 +159415,27 @@ var HuaweiAccessRules = /*#__PURE__*/function () { */ - _createClass(HuaweiAccessRules, null, [{ + _createClass(RequiredActivity, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a HuaweiAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a RequiredActivity from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HuaweiAccessRules} obj Optional instance to populate. - * @return {module:model/HuaweiAccessRules} The populated HuaweiAccessRules instance. + * @param {module:model/RequiredActivity} obj Optional instance to populate. + * @return {module:model/RequiredActivity} The populated RequiredActivity instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new HuaweiAccessRules(); - - if (data.hasOwnProperty('auth_endpoint')) { - obj['auth_endpoint'] = _ApiClient["default"].convertToType(data['auth_endpoint'], 'String'); - } - - if (data.hasOwnProperty('domain_id')) { - obj['domain_id'] = _ApiClient["default"].convertToType(data['domain_id'], ['String']); - } - - if (data.hasOwnProperty('domain_name')) { - obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], ['String']); - } - - if (data.hasOwnProperty('tenant_id')) { - obj['tenant_id'] = _ApiClient["default"].convertToType(data['tenant_id'], ['String']); - } - - if (data.hasOwnProperty('tenant_name')) { - obj['tenant_name'] = _ApiClient["default"].convertToType(data['tenant_name'], ['String']); - } - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); - } + obj = obj || new RequiredActivity(); - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); + if (data.hasOwnProperty('migrations_required_activity')) { + obj['migrations_required_activity'] = _ApiClient["default"].convertToType(data['migrations_required_activity'], { + 'String': 'Boolean' + }); } } @@ -85598,57 +159443,20 @@ var HuaweiAccessRules = /*#__PURE__*/function () { } }]); - return HuaweiAccessRules; + return RequiredActivity; }(); /** - * The auth URL. - * @member {String} auth_endpoint - */ - - -HuaweiAccessRules.prototype['auth_endpoint'] = undefined; -/** - * The list of domain ids that the login is restricted to. - * @member {Array.} domain_id - */ - -HuaweiAccessRules.prototype['domain_id'] = undefined; -/** - * The list of domainNames that the login is restricted to. - * @member {Array.} domain_name - */ - -HuaweiAccessRules.prototype['domain_name'] = undefined; -/** - * The list of tenantIDs that the login is restricted to. - * @member {Array.} tenant_id - */ - -HuaweiAccessRules.prototype['tenant_id'] = undefined; -/** - * The list of tenantNames that the login is restricted to. - * @member {Array.} tenant_name - */ - -HuaweiAccessRules.prototype['tenant_name'] = undefined; -/** - * The list of user ids that the login is restricted to. - * @member {Array.} user_id + * @member {Object.} migrations_required_activity */ -HuaweiAccessRules.prototype['user_id'] = undefined; -/** - * The list of user names that the login is restricted to. - * @member {Array.} user_name - */ -HuaweiAccessRules.prototype['user_name'] = undefined; -var _default = HuaweiAccessRules; +RequiredActivity.prototype['migrations_required_activity'] = undefined; +var _default = RequiredActivity; exports["default"] = _default; /***/ }), -/***/ 72687: +/***/ 94227: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85659,7 +159467,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85670,21 +159478,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ImportPasswords model module. - * @module model/ImportPasswords - * @version 3.3.16 + * The ReverseRBAC model module. + * @module model/ReverseRBAC + * @version 3.6.3 */ -var ImportPasswords = /*#__PURE__*/function () { +var ReverseRBAC = /*#__PURE__*/function () { /** - * Constructs a new ImportPasswords. - * importPasswords is a command that import passwords - * @alias module:model/ImportPasswords - * @param importPath {String} File path + * Constructs a new ReverseRBAC. + * reverseRBAC is a command that shows which auth methods have access to a particular object. + * @alias module:model/ReverseRBAC + * @param path {String} Path to an object + * @param type {String} Type of object (item, am, role) */ - function ImportPasswords(importPath) { - _classCallCheck(this, ImportPasswords); + function ReverseRBAC(path, type) { + _classCallCheck(this, ReverseRBAC); - ImportPasswords.initialize(this, importPath); + ReverseRBAC.initialize(this, path, type); } /** * Initializes the fields of this object. @@ -85693,53 +159502,42 @@ var ImportPasswords = /*#__PURE__*/function () { */ - _createClass(ImportPasswords, null, [{ + _createClass(ReverseRBAC, null, [{ key: "initialize", - value: function initialize(obj, importPath) { - obj['import-path'] = importPath; + value: function initialize(obj, path, type) { + obj['path'] = path; + obj['type'] = type; } /** - * Constructs a ImportPasswords from a plain JavaScript object, optionally creating a new instance. + * Constructs a ReverseRBAC from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ImportPasswords} obj Optional instance to populate. - * @return {module:model/ImportPasswords} The populated ImportPasswords instance. + * @param {module:model/ReverseRBAC} obj Optional instance to populate. + * @return {module:model/ReverseRBAC} The populated ReverseRBAC instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ImportPasswords(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - - if (data.hasOwnProperty('import-path')) { - obj['import-path'] = _ApiClient["default"].convertToType(data['import-path'], 'String'); - } + obj = obj || new ReverseRBAC(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('target-folder')) { - obj['target-folder'] = _ApiClient["default"].convertToType(data['target-folder'], 'String'); + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -85749,67 +159547,46 @@ var ImportPasswords = /*#__PURE__*/function () { } }]); - return ImportPasswords; + return ReverseRBAC; }(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'personal' - */ - - -ImportPasswords.prototype['accessibility'] = 'personal'; -/** - * Password format type [LastPass/Chrome/Firefox] - * @member {String} format - * @default 'LastPass' - */ - -ImportPasswords.prototype['format'] = 'LastPass'; -/** - * File path - * @member {String} import-path - */ - -ImportPasswords.prototype['import-path'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -ImportPasswords.prototype['json'] = false; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ -ImportPasswords.prototype['protection_key'] = undefined; +ReverseRBAC.prototype['json'] = false; /** - * Target folder for imported passwords - * @member {String} target-folder - * @default '/' + * Path to an object + * @member {String} path */ -ImportPasswords.prototype['target-folder'] = '/'; +ReverseRBAC.prototype['path'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -ImportPasswords.prototype['token'] = undefined; +ReverseRBAC.prototype['token'] = undefined; +/** + * Type of object (item, am, role) + * @member {String} type + */ + +ReverseRBAC.prototype['type'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -ImportPasswords.prototype['uid-token'] = undefined; -var _default = ImportPasswords; +ReverseRBAC.prototype['uid-token'] = undefined; +var _default = ReverseRBAC; exports["default"] = _default; /***/ }), -/***/ 26509: +/***/ 50912: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85820,7 +159597,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(15615)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85831,19 +159610,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ImportPasswordsOutput model module. - * @module model/ImportPasswordsOutput - * @version 3.3.16 + * The ReverseRBACClient model module. + * @module model/ReverseRBACClient + * @version 3.6.3 */ -var ImportPasswordsOutput = /*#__PURE__*/function () { +var ReverseRBACClient = /*#__PURE__*/function () { /** - * Constructs a new ImportPasswordsOutput. - * @alias module:model/ImportPasswordsOutput + * Constructs a new ReverseRBACClient. + * @alias module:model/ReverseRBACClient */ - function ImportPasswordsOutput() { - _classCallCheck(this, ImportPasswordsOutput); + function ReverseRBACClient() { + _classCallCheck(this, ReverseRBACClient); - ImportPasswordsOutput.initialize(this); + ReverseRBACClient.initialize(this); } /** * Initializes the fields of this object. @@ -85852,33 +159631,29 @@ var ImportPasswordsOutput = /*#__PURE__*/function () { */ - _createClass(ImportPasswordsOutput, null, [{ + _createClass(ReverseRBACClient, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ImportPasswordsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a ReverseRBACClient from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ImportPasswordsOutput} obj Optional instance to populate. - * @return {module:model/ImportPasswordsOutput} The populated ImportPasswordsOutput instance. + * @param {module:model/ReverseRBACClient} obj Optional instance to populate. + * @return {module:model/ReverseRBACClient} The populated ReverseRBACClient instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ImportPasswordsOutput(); - - if (data.hasOwnProperty('imported')) { - obj['imported'] = _ApiClient["default"].convertToType(data['imported'], 'Number'); - } + obj = obj || new ReverseRBACClient(); - if (data.hasOwnProperty('passwords_in_file')) { - obj['passwords_in_file'] = _ApiClient["default"].convertToType(data['passwords_in_file'], 'Number'); + if (data.hasOwnProperty('assocs')) { + obj['assocs'] = _ApiClient["default"].convertToType(data['assocs'], [_AuthMethodRoleAssociation["default"]]); } - if (data.hasOwnProperty('successfully_parsed')) { - obj['successfully_parsed'] = _ApiClient["default"].convertToType(data['successfully_parsed'], 'Number'); + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); } } @@ -85886,30 +159661,25 @@ var ImportPasswordsOutput = /*#__PURE__*/function () { } }]); - return ImportPasswordsOutput; + return ReverseRBACClient; }(); /** - * @member {Number} imported + * @member {Array.} assocs */ -ImportPasswordsOutput.prototype['imported'] = undefined; -/** - * @member {Number} passwords_in_file - */ - -ImportPasswordsOutput.prototype['passwords_in_file'] = undefined; +ReverseRBACClient.prototype['assocs'] = undefined; /** - * @member {Number} successfully_parsed + * @member {String} auth_method_name */ -ImportPasswordsOutput.prototype['successfully_parsed'] = undefined; -var _default = ImportPasswordsOutput; +ReverseRBACClient.prototype['auth_method_name'] = undefined; +var _default = ReverseRBACClient; exports["default"] = _default; /***/ }), -/***/ 73539: +/***/ 90274: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -85920,7 +159690,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(50912)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -85931,19 +159703,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ImporterInfo model module. - * @module model/ImporterInfo - * @version 3.3.16 + * The ReverseRBACOutput model module. + * @module model/ReverseRBACOutput + * @version 3.6.3 */ -var ImporterInfo = /*#__PURE__*/function () { +var ReverseRBACOutput = /*#__PURE__*/function () { /** - * Constructs a new ImporterInfo. - * @alias module:model/ImporterInfo + * Constructs a new ReverseRBACOutput. + * @alias module:model/ReverseRBACOutput */ - function ImporterInfo() { - _classCallCheck(this, ImporterInfo); + function ReverseRBACOutput() { + _classCallCheck(this, ReverseRBACOutput); - ImporterInfo.initialize(this); + ReverseRBACOutput.initialize(this); } /** * Initializes the fields of this object. @@ -85952,29 +159724,27 @@ var ImporterInfo = /*#__PURE__*/function () { */ - _createClass(ImporterInfo, null, [{ + _createClass(ReverseRBACOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ImporterInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a ReverseRBACOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ImporterInfo} obj Optional instance to populate. - * @return {module:model/ImporterInfo} The populated ImporterInfo instance. + * @param {module:model/ReverseRBACOutput} obj Optional instance to populate. + * @return {module:model/ReverseRBACOutput} The populated ReverseRBACOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ImporterInfo(); - - if (data.hasOwnProperty('external_item_id')) { - obj['external_item_id'] = _ApiClient["default"].convertToType(data['external_item_id'], 'String'); - } + obj = obj || new ReverseRBACOutput(); - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { + 'String': _ReverseRBACClient["default"] + }); } } @@ -85982,25 +159752,20 @@ var ImporterInfo = /*#__PURE__*/function () { } }]); - return ImporterInfo; + return ReverseRBACOutput; }(); /** - * @member {String} external_item_id + * @member {Object.} clients */ -ImporterInfo.prototype['external_item_id'] = undefined; -/** - * @member {Number} version - */ - -ImporterInfo.prototype['version'] = undefined; -var _default = ImporterInfo; +ReverseRBACOutput.prototype['clients'] = undefined; +var _default = ReverseRBACOutput; exports["default"] = _default; /***/ }), -/***/ 20231: +/***/ 28096: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -86011,25 +159776,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _BastionsList = _interopRequireDefault(__nccwpck_require__(69265)); - -var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(55006)); - -var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(52832)); - -var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(9438)); - -var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(12160)); - -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(97973)); - -var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(47160)); - -var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(19342)); - -var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(91938)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -86040,19 +159787,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Item model module. - * @module model/Item - * @version 3.3.16 + * The RevokeCertificate model module. + * @module model/RevokeCertificate + * @version 3.6.3 */ -var Item = /*#__PURE__*/function () { +var RevokeCertificate = /*#__PURE__*/function () { /** - * Constructs a new Item. - * @alias module:model/Item + * Constructs a new RevokeCertificate. + * RevokeCertificate is a command that revokes a certificate and adds it to the crl + * @alias module:model/RevokeCertificate */ - function Item() { - _classCallCheck(this, Item); + function RevokeCertificate() { + _classCallCheck(this, RevokeCertificate); - Item.initialize(this); + RevokeCertificate.initialize(this); } /** * Initializes the fields of this object. @@ -86061,177 +159809,178 @@ var Item = /*#__PURE__*/function () { */ - _createClass(Item, null, [{ + _createClass(RevokeCertificate, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a Item from a plain JavaScript object, optionally creating a new instance. + * Constructs a RevokeCertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Item} obj Optional instance to populate. - * @return {module:model/Item} The populated Item instance. + * @param {module:model/RevokeCertificate} obj Optional instance to populate. + * @return {module:model/RevokeCertificate} The populated RevokeCertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Item(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('access_request_status')) { - obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); - } - - if (data.hasOwnProperty('auto_rotate')) { - obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); - } + obj = obj || new RevokeCertificate(); - if (data.hasOwnProperty('bastion_details')) { - obj['bastion_details'] = _BastionsList["default"].constructFromObject(data['bastion_details']); - } - - if (data.hasOwnProperty('cert_issuer_signer_key_name')) { - obj['cert_issuer_signer_key_name'] = _ApiClient["default"].convertToType(data['cert_issuer_signer_key_name'], 'String'); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } - if (data.hasOwnProperty('certificate_issue_details')) { - obj['certificate_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['certificate_issue_details']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('certificates')) { - obj['certificates'] = _ApiClient["default"].convertToType(data['certificates'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + if (data.hasOwnProperty('serial-number')) { + obj['serial-number'] = _ApiClient["default"].convertToType(data['serial-number'], 'String'); } - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('customer_fragment_id')) { - obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } + } - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); - } + return obj; + } + }]); - if (data.hasOwnProperty('display_id')) { - obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); - } + return RevokeCertificate; +}(); +/** + * The item id of the certificate to revoke + * @member {Number} item-id + */ - if (data.hasOwnProperty('gateway_details')) { - obj['gateway_details'] = _ApiClient["default"].convertToType(data['gateway_details'], [_GatewayBasicInfo["default"]]); - } - if (data.hasOwnProperty('is_access_request_enabled')) { - obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); - } +RevokeCertificate.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (data.hasOwnProperty('is_enabled')) { - obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); - } +RevokeCertificate.prototype['json'] = false; +/** + * Certificate item name to revoke + * @member {String} name + */ - if (data.hasOwnProperty('item_accessibility')) { - obj['item_accessibility'] = _ApiClient["default"].convertToType(data['item_accessibility'], 'Number'); - } +RevokeCertificate.prototype['name'] = undefined; +/** + * The serial number of the certificate to revoke + * @member {String} serial-number + */ - if (data.hasOwnProperty('item_general_info')) { - obj['item_general_info'] = _ItemGeneralInfo["default"].constructFromObject(data['item_general_info']); - } +RevokeCertificate.prototype['serial-number'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); - } +RevokeCertificate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (data.hasOwnProperty('item_metadata')) { - obj['item_metadata'] = _ApiClient["default"].convertToType(data['item_metadata'], 'String'); - } +RevokeCertificate.prototype['uid-token'] = undefined; +/** + * Certificate version to revoke. Required if item-id or name are used. + * @member {Number} version + */ - if (data.hasOwnProperty('item_name')) { - obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); - } +RevokeCertificate.prototype['version'] = undefined; +var _default = RevokeCertificate; +exports["default"] = _default; - if (data.hasOwnProperty('item_size')) { - obj['item_size'] = _ApiClient["default"].convertToType(data['item_size'], 'Number'); - } +/***/ }), - if (data.hasOwnProperty('item_state')) { - obj['item_state'] = _ApiClient["default"].convertToType(data['item_state'], 'String'); - } +/***/ 74726: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (data.hasOwnProperty('item_sub_type')) { - obj['item_sub_type'] = _ApiClient["default"].convertToType(data['item_sub_type'], 'String'); - } +"use strict"; - if (data.hasOwnProperty('item_tags')) { - obj['item_tags'] = _ApiClient["default"].convertToType(data['item_tags'], ['String']); - } - if (data.hasOwnProperty('item_targets_assoc')) { - obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); - if (data.hasOwnProperty('item_versions')) { - obj['item_versions'] = _ApiClient["default"].convertToType(data['item_versions'], [_ItemVersion["default"]]); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (data.hasOwnProperty('last_version')) { - obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (data.hasOwnProperty('linked_details')) { - obj['linked_details'] = _LinkedDetails["default"].constructFromObject(data['linked_details']); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (data.hasOwnProperty('next_rotation_date')) { - obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); - } +/** + * The RevokeCreds model module. + * @module model/RevokeCreds + * @version 3.6.3 + */ +var RevokeCreds = /*#__PURE__*/function () { + /** + * Constructs a new RevokeCreds. + * revokeCreds will permanently revoke the credentials associated with the provided token or profile. + * @alias module:model/RevokeCreds + */ + function RevokeCreds() { + _classCallCheck(this, RevokeCreds); - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); - } + RevokeCreds.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (data.hasOwnProperty('protection_key_type')) { - obj['protection_key_type'] = _ApiClient["default"].convertToType(data['protection_key_type'], 'String'); - } - if (data.hasOwnProperty('public_value')) { - obj['public_value'] = _ApiClient["default"].convertToType(data['public_value'], 'String'); - } + _createClass(RevokeCreds, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RevokeCreds from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RevokeCreds} obj Optional instance to populate. + * @return {module:model/RevokeCreds} The populated RevokeCreds instance. + */ - if (data.hasOwnProperty('rotation_interval')) { - obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RevokeCreds(); - if (data.hasOwnProperty('shared_by')) { - obj['shared_by'] = _RuleAssigner["default"].constructFromObject(data['shared_by']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('target_versions')) { - obj['target_versions'] = _ApiClient["default"].convertToType(data['target_versions'], [_TargetItemVersion["default"]]); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -86239,246 +159988,203 @@ var Item = /*#__PURE__*/function () { } }]); - return Item; + return RevokeCreds; }(); /** - * @member {Date} access_date + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Item.prototype['access_date'] = undefined; +RevokeCreds.prototype['json'] = false; /** - * @member {String} access_request_status + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Item.prototype['access_request_status'] = undefined; +RevokeCreds.prototype['token'] = undefined; /** - * @member {Boolean} auto_rotate + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Item.prototype['auto_rotate'] = undefined; -/** - * @member {module:model/BastionsList} bastion_details - */ +RevokeCreds.prototype['uid-token'] = undefined; +var _default = RevokeCreds; +exports["default"] = _default; -Item.prototype['bastion_details'] = undefined; -/** - * @member {String} cert_issuer_signer_key_name - */ +/***/ }), -Item.prototype['cert_issuer_signer_key_name'] = undefined; -/** - * @member {module:model/CertificateIssueInfo} certificate_issue_details - */ +/***/ 82945: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -Item.prototype['certificate_issue_details'] = undefined; -/** - * @member {String} certificates - */ +"use strict"; -Item.prototype['certificates'] = undefined; -/** - * @member {Array.} client_permissions - */ -Item.prototype['client_permissions'] = undefined; -/** - * @member {Date} creation_date - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -Item.prototype['creation_date'] = undefined; -/** - * @member {String} customer_fragment_id - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -Item.prototype['customer_fragment_id'] = undefined; -/** - * @member {Boolean} delete_protection - */ +var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(20979)); -Item.prototype['delete_protection'] = undefined; -/** - * @member {Date} deletion_date - */ +var _Rules = _interopRequireDefault(__nccwpck_require__(64146)); -Item.prototype['deletion_date'] = undefined; -/** - * @member {String} display_id - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -Item.prototype['display_id'] = undefined; -/** - * @member {Array.} gateway_details - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Item.prototype['gateway_details'] = undefined; -/** - * @member {Boolean} is_access_request_enabled - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -Item.prototype['is_access_request_enabled'] = undefined; -/** - * @member {Boolean} is_enabled - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -Item.prototype['is_enabled'] = undefined; /** - * @member {Number} item_accessibility + * The Role model module. + * @module model/Role + * @version 3.6.3 */ +var Role = /*#__PURE__*/function () { + /** + * Constructs a new Role. + * @alias module:model/Role + */ + function Role() { + _classCallCheck(this, Role); -Item.prototype['item_accessibility'] = undefined; -/** - * @member {module:model/ItemGeneralInfo} item_general_info - */ + Role.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -Item.prototype['item_general_info'] = undefined; -/** - * @member {Number} item_id - */ -Item.prototype['item_id'] = undefined; -/** - * @member {String} item_metadata - */ + _createClass(Role, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Role from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Role} obj Optional instance to populate. + * @return {module:model/Role} The populated Role instance. + */ -Item.prototype['item_metadata'] = undefined; -/** - * @member {String} item_name - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Role(); -Item.prototype['item_name'] = undefined; -/** - * @member {Number} item_size - */ + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + } -Item.prototype['item_size'] = undefined; -/** - * ItemState defines the different states an Item can be in - * @member {String} item_state - */ + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); + } -Item.prototype['item_state'] = undefined; -/** - * @member {String} item_sub_type - */ + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + } -Item.prototype['item_sub_type'] = undefined; -/** - * @member {Array.} item_tags - */ + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } -Item.prototype['item_tags'] = undefined; -/** - * @member {Array.} item_targets_assoc - */ + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } -Item.prototype['item_targets_assoc'] = undefined; -/** - * @member {String} item_type - */ + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } -Item.prototype['item_type'] = undefined; -/** - * @member {Array.} item_versions - */ + if (data.hasOwnProperty('role_auth_methods_assoc')) { + obj['role_auth_methods_assoc'] = _ApiClient["default"].convertToType(data['role_auth_methods_assoc'], [_RoleAuthMethodAssociation["default"]]); + } -Item.prototype['item_versions'] = undefined; -/** - * @member {Number} last_version - */ + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); + } -Item.prototype['last_version'] = undefined; -/** - * @member {module:model/LinkedDetails} linked_details - */ + if (data.hasOwnProperty('rules')) { + obj['rules'] = _Rules["default"].constructFromObject(data['rules']); + } + } -Item.prototype['linked_details'] = undefined; + return obj; + } + }]); + + return Role; +}(); /** - * @member {Date} modification_date + * @member {Date} access_date */ -Item.prototype['modification_date'] = undefined; + +Role.prototype['access_date'] = undefined; /** - * @member {Date} next_rotation_date + * @member {String} access_date_display */ -Item.prototype['next_rotation_date'] = undefined; +Role.prototype['access_date_display'] = undefined; /** - * @member {String} protection_key_name + * @member {Array.} client_permissions */ -Item.prototype['protection_key_name'] = undefined; +Role.prototype['client_permissions'] = undefined; /** - * @member {String} protection_key_type + * @member {String} comment */ -Item.prototype['protection_key_type'] = undefined; +Role.prototype['comment'] = undefined; /** - * @member {String} public_value + * @member {Date} creation_date */ -Item.prototype['public_value'] = undefined; +Role.prototype['creation_date'] = undefined; /** - * @member {Number} rotation_interval + * @member {Date} modification_date */ -Item.prototype['rotation_interval'] = undefined; +Role.prototype['modification_date'] = undefined; /** - * @member {module:model/RuleAssigner} shared_by + * @member {Array.} role_auth_methods_assoc */ -Item.prototype['shared_by'] = undefined; +Role.prototype['role_auth_methods_assoc'] = undefined; /** - * @member {Array.} target_versions + * @member {String} role_name */ -Item.prototype['target_versions'] = undefined; +Role.prototype['role_name'] = undefined; /** - * @member {Boolean} with_customer_fragment + * @member {module:model/Rules} rules */ -Item.prototype['with_customer_fragment'] = undefined; -var _default = Item; -exports["default"] = _default; - -/***/ }), - -/***/ 9438: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(85587)); - -var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(55006)); - -var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(92561)); - -var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(4244)); - -var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(65342)); - -var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(73539)); +Role.prototype['rules'] = undefined; +var _default = Role; +exports["default"] = _default; -var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(54614)); +/***/ }), -var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(8360)); +/***/ 13682: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(99840)); +"use strict"; -var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(59417)); -var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(31083)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(68162)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -86489,19 +160195,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ItemGeneralInfo model module. - * @module model/ItemGeneralInfo - * @version 3.3.16 + * The RoleAssociationDetails model module. + * @module model/RoleAssociationDetails + * @version 3.6.3 */ -var ItemGeneralInfo = /*#__PURE__*/function () { +var RoleAssociationDetails = /*#__PURE__*/function () { /** - * Constructs a new ItemGeneralInfo. - * @alias module:model/ItemGeneralInfo + * Constructs a new RoleAssociationDetails. + * RoleAssociationDetails includes details of an association between a role and an auth method. + * @alias module:model/RoleAssociationDetails */ - function ItemGeneralInfo() { - _classCallCheck(this, ItemGeneralInfo); + function RoleAssociationDetails() { + _classCallCheck(this, RoleAssociationDetails); - ItemGeneralInfo.initialize(this); + RoleAssociationDetails.initialize(this); } /** * Initializes the fields of this object. @@ -86510,77 +160217,43 @@ var ItemGeneralInfo = /*#__PURE__*/function () { */ - _createClass(ItemGeneralInfo, null, [{ + _createClass(RoleAssociationDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ItemGeneralInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a RoleAssociationDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemGeneralInfo} obj Optional instance to populate. - * @return {module:model/ItemGeneralInfo} The populated ItemGeneralInfo instance. + * @param {module:model/RoleAssociationDetails} obj Optional instance to populate. + * @return {module:model/RoleAssociationDetails} The populated RoleAssociationDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ItemGeneralInfo(); - - if (data.hasOwnProperty('cert_issue_details')) { - obj['cert_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['cert_issue_details']); - } - - if (data.hasOwnProperty('certificate_chain_info')) { - obj['certificate_chain_info'] = _CertificateChainInfo["default"].constructFromObject(data['certificate_chain_info']); - } - - if (data.hasOwnProperty('certificates_template_info')) { - obj['certificates_template_info'] = _CertificateTemplateInfo["default"].constructFromObject(data['certificates_template_info']); - } - - if (data.hasOwnProperty('classic_key_details')) { - obj['classic_key_details'] = _ClassicKeyDetailsInfo["default"].constructFromObject(data['classic_key_details']); - } - - if (data.hasOwnProperty('cluster_gw_url')) { - obj['cluster_gw_url'] = _ApiClient["default"].convertToType(data['cluster_gw_url'], 'String'); - } - - if (data.hasOwnProperty('display_metadata')) { - obj['display_metadata'] = _ApiClient["default"].convertToType(data['display_metadata'], 'String'); - } - - if (data.hasOwnProperty('dynamic_secret_producer_details')) { - obj['dynamic_secret_producer_details'] = _DynamicSecretProducerInfo["default"].constructFromObject(data['dynamic_secret_producer_details']); - } - - if (data.hasOwnProperty('importer_info')) { - obj['importer_info'] = _ImporterInfo["default"].constructFromObject(data['importer_info']); - } - - if (data.hasOwnProperty('oidc_client_info')) { - obj['oidc_client_info'] = _OidcClientInfo["default"].constructFromObject(data['oidc_client_info']); - } + obj = obj || new RoleAssociationDetails(); - if (data.hasOwnProperty('password_policy')) { - obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); } - if (data.hasOwnProperty('rotated_secret_details')) { - obj['rotated_secret_details'] = _RotatedSecretDetailsInfo["default"].constructFromObject(data['rotated_secret_details']); + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); } - if (data.hasOwnProperty('secure_remote_access_details')) { - obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); + if (data.hasOwnProperty('auth_method_sub_claims')) { + obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { + 'String': ['String'] + }); } - if (data.hasOwnProperty('static_secret_info')) { - obj['static_secret_info'] = _StaticSecretDetailsInfo["default"].constructFromObject(data['static_secret_info']); + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); } - if (data.hasOwnProperty('tokenizer_info')) { - obj['tokenizer_info'] = _TokenizerInfo["default"].constructFromObject(data['tokenizer_info']); + if (data.hasOwnProperty('sub_claims_case_sensitive')) { + obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); } } @@ -86588,85 +160261,40 @@ var ItemGeneralInfo = /*#__PURE__*/function () { } }]); - return ItemGeneralInfo; + return RoleAssociationDetails; }(); /** - * @member {module:model/CertificateIssueInfo} cert_issue_details - */ - - -ItemGeneralInfo.prototype['cert_issue_details'] = undefined; -/** - * @member {module:model/CertificateChainInfo} certificate_chain_info - */ - -ItemGeneralInfo.prototype['certificate_chain_info'] = undefined; -/** - * @member {module:model/CertificateTemplateInfo} certificates_template_info - */ - -ItemGeneralInfo.prototype['certificates_template_info'] = undefined; -/** - * @member {module:model/ClassicKeyDetailsInfo} classic_key_details - */ - -ItemGeneralInfo.prototype['classic_key_details'] = undefined; -/** - * @member {String} cluster_gw_url - */ - -ItemGeneralInfo.prototype['cluster_gw_url'] = undefined; -/** - * @member {String} display_metadata - */ - -ItemGeneralInfo.prototype['display_metadata'] = undefined; -/** - * @member {module:model/DynamicSecretProducerInfo} dynamic_secret_producer_details - */ - -ItemGeneralInfo.prototype['dynamic_secret_producer_details'] = undefined; -/** - * @member {module:model/ImporterInfo} importer_info - */ - -ItemGeneralInfo.prototype['importer_info'] = undefined; -/** - * @member {module:model/OidcClientInfo} oidc_client_info + * @member {String} assoc_id */ -ItemGeneralInfo.prototype['oidc_client_info'] = undefined; -/** - * @member {module:model/PasswordPolicyInfo} password_policy - */ -ItemGeneralInfo.prototype['password_policy'] = undefined; +RoleAssociationDetails.prototype['assoc_id'] = undefined; /** - * @member {module:model/RotatedSecretDetailsInfo} rotated_secret_details + * @member {String} auth_method_name */ -ItemGeneralInfo.prototype['rotated_secret_details'] = undefined; +RoleAssociationDetails.prototype['auth_method_name'] = undefined; /** - * @member {module:model/SecureRemoteAccess} secure_remote_access_details + * @member {Object.>} auth_method_sub_claims */ -ItemGeneralInfo.prototype['secure_remote_access_details'] = undefined; +RoleAssociationDetails.prototype['auth_method_sub_claims'] = undefined; /** - * @member {module:model/StaticSecretDetailsInfo} static_secret_info + * @member {String} role_name */ -ItemGeneralInfo.prototype['static_secret_info'] = undefined; +RoleAssociationDetails.prototype['role_name'] = undefined; /** - * @member {module:model/TokenizerInfo} tokenizer_info + * @member {Boolean} sub_claims_case_sensitive */ -ItemGeneralInfo.prototype['tokenizer_info'] = undefined; -var _default = ItemGeneralInfo; +RoleAssociationDetails.prototype['sub_claims_case_sensitive'] = undefined; +var _default = RoleAssociationDetails; exports["default"] = _default; /***/ }), -/***/ 12160: +/***/ 20979: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -86677,7 +160305,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -86688,20 +160316,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ItemTargetAssociation model module. - * @module model/ItemTargetAssociation - * @version 3.3.16 + * The RoleAuthMethodAssociation model module. + * @module model/RoleAuthMethodAssociation + * @version 3.6.3 */ -var ItemTargetAssociation = /*#__PURE__*/function () { +var RoleAuthMethodAssociation = /*#__PURE__*/function () { /** - * Constructs a new ItemTargetAssociation. - * and a target. - * @alias module:model/ItemTargetAssociation + * Constructs a new RoleAuthMethodAssociation. + * RoleAuthMethodAssociation includes details of an association between a role and an auth method. + * @alias module:model/RoleAuthMethodAssociation */ - function ItemTargetAssociation() { - _classCallCheck(this, ItemTargetAssociation); + function RoleAuthMethodAssociation() { + _classCallCheck(this, RoleAuthMethodAssociation); - ItemTargetAssociation.initialize(this); + RoleAuthMethodAssociation.initialize(this); } /** * Initializes the fields of this object. @@ -86710,43 +160338,43 @@ var ItemTargetAssociation = /*#__PURE__*/function () { */ - _createClass(ItemTargetAssociation, null, [{ + _createClass(RoleAuthMethodAssociation, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ItemTargetAssociation from a plain JavaScript object, optionally creating a new instance. + * Constructs a RoleAuthMethodAssociation from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemTargetAssociation} obj Optional instance to populate. - * @return {module:model/ItemTargetAssociation} The populated ItemTargetAssociation instance. + * @param {module:model/RoleAuthMethodAssociation} obj Optional instance to populate. + * @return {module:model/RoleAuthMethodAssociation} The populated RoleAuthMethodAssociation instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ItemTargetAssociation(); + obj = obj || new RoleAuthMethodAssociation(); if (data.hasOwnProperty('assoc_id')) { obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); } - if (data.hasOwnProperty('attributes')) { - obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { - 'String': 'String' - }); + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); } - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); } - if (data.hasOwnProperty('target_name')) { - obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + if (data.hasOwnProperty('auth_method_sub_claims')) { + obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { + 'String': ['String'] + }); } - if (data.hasOwnProperty('target_type')) { - obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); + if (data.hasOwnProperty('sub_claims_case_sensitive')) { + obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); } } @@ -86754,40 +160382,40 @@ var ItemTargetAssociation = /*#__PURE__*/function () { } }]); - return ItemTargetAssociation; + return RoleAuthMethodAssociation; }(); /** * @member {String} assoc_id */ -ItemTargetAssociation.prototype['assoc_id'] = undefined; +RoleAuthMethodAssociation.prototype['assoc_id'] = undefined; /** - * @member {Object.} attributes + * @member {String} auth_method_access_id */ -ItemTargetAssociation.prototype['attributes'] = undefined; +RoleAuthMethodAssociation.prototype['auth_method_access_id'] = undefined; /** - * @member {Number} target_id + * @member {String} auth_method_name */ -ItemTargetAssociation.prototype['target_id'] = undefined; +RoleAuthMethodAssociation.prototype['auth_method_name'] = undefined; /** - * @member {String} target_name + * @member {Object.>} auth_method_sub_claims */ -ItemTargetAssociation.prototype['target_name'] = undefined; +RoleAuthMethodAssociation.prototype['auth_method_sub_claims'] = undefined; /** - * @member {String} target_type + * @member {Boolean} sub_claims_case_sensitive */ -ItemTargetAssociation.prototype['target_type'] = undefined; -var _default = ItemTargetAssociation; +RoleAuthMethodAssociation.prototype['sub_claims_case_sensitive'] = undefined; +var _default = RoleAuthMethodAssociation; exports["default"] = _default; /***/ }), -/***/ 97973: +/***/ 21513: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -86798,7 +160426,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -86809,19 +160437,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ItemVersion model module. - * @module model/ItemVersion - * @version 3.3.16 + * The RollbackSecret model module. + * @module model/RollbackSecret + * @version 3.6.3 */ -var ItemVersion = /*#__PURE__*/function () { +var RollbackSecret = /*#__PURE__*/function () { /** - * Constructs a new ItemVersion. - * @alias module:model/ItemVersion + * Constructs a new RollbackSecret. + * @alias module:model/RollbackSecret + * @param name {String} Secret name + * @param oldVersion {Number} Old secret version to rollback to */ - function ItemVersion() { - _classCallCheck(this, ItemVersion); + function RollbackSecret(name, oldVersion) { + _classCallCheck(this, RollbackSecret); - ItemVersion.initialize(this); + RollbackSecret.initialize(this, name, oldVersion); } /** * Initializes the fields of this object. @@ -86830,57 +160460,44 @@ var ItemVersion = /*#__PURE__*/function () { */ - _createClass(ItemVersion, null, [{ + _createClass(RollbackSecret, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, oldVersion) { + obj['name'] = name; + obj['old-version'] = oldVersion; + } /** - * Constructs a ItemVersion from a plain JavaScript object, optionally creating a new instance. + * Constructs a RollbackSecret from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemVersion} obj Optional instance to populate. - * @return {module:model/ItemVersion} The populated ItemVersion instance. + * @param {module:model/RollbackSecret} obj Optional instance to populate. + * @return {module:model/RollbackSecret} The populated RollbackSecret instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ItemVersion(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('customer_fragment_id')) { - obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); - } - - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); - } + obj = obj || new RollbackSecret(); - if (data.hasOwnProperty('item_version_state')) { - obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + if (data.hasOwnProperty('old-version')) { + obj['old-version'] = _ApiClient["default"].convertToType(data['old-version'], 'Number'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -86888,61 +160505,46 @@ var ItemVersion = /*#__PURE__*/function () { } }]); - return ItemVersion; + return RollbackSecret; }(); /** - * @member {Date} access_date - */ - - -ItemVersion.prototype['access_date'] = undefined; -/** - * @member {Date} creation_date - */ - -ItemVersion.prototype['creation_date'] = undefined; -/** - * @member {String} customer_fragment_id - */ - -ItemVersion.prototype['customer_fragment_id'] = undefined; -/** - * @member {Date} deletion_date + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ItemVersion.prototype['deletion_date'] = undefined; -/** - * ItemState defines the different states an Item can be in - * @member {String} item_version_state - */ -ItemVersion.prototype['item_version_state'] = undefined; +RollbackSecret.prototype['json'] = false; /** - * @member {Date} modification_date + * Secret name + * @member {String} name */ -ItemVersion.prototype['modification_date'] = undefined; +RollbackSecret.prototype['name'] = undefined; /** - * @member {String} protection_key_name + * Old secret version to rollback to + * @member {Number} old-version */ -ItemVersion.prototype['protection_key_name'] = undefined; +RollbackSecret.prototype['old-version'] = undefined; /** - * @member {Number} version + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -ItemVersion.prototype['version'] = undefined; +RollbackSecret.prototype['token'] = undefined; /** - * @member {Boolean} with_customer_fragment + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -ItemVersion.prototype['with_customer_fragment'] = undefined; -var _default = ItemVersion; +RollbackSecret.prototype['uid-token'] = undefined; +var _default = RollbackSecret; exports["default"] = _default; /***/ }), -/***/ 40746: +/***/ 9900: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -86953,7 +160555,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -86964,19 +160566,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The JSONError model module. - * @module model/JSONError - * @version 3.3.16 + * The RollbackSecretOutput model module. + * @module model/RollbackSecretOutput + * @version 3.6.3 */ -var JSONError = /*#__PURE__*/function () { +var RollbackSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new JSONError. - * @alias module:model/JSONError + * Constructs a new RollbackSecretOutput. + * @alias module:model/RollbackSecretOutput */ - function JSONError() { - _classCallCheck(this, JSONError); + function RollbackSecretOutput() { + _classCallCheck(this, RollbackSecretOutput); - JSONError.initialize(this); + RollbackSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -86985,25 +160587,29 @@ var JSONError = /*#__PURE__*/function () { */ - _createClass(JSONError, null, [{ + _createClass(RollbackSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a JSONError from a plain JavaScript object, optionally creating a new instance. + * Constructs a RollbackSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/JSONError} obj Optional instance to populate. - * @return {module:model/JSONError} The populated JSONError instance. + * @param {module:model/RollbackSecretOutput} obj Optional instance to populate. + * @return {module:model/RollbackSecretOutput} The populated RollbackSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new JSONError(); + obj = obj || new RollbackSecretOutput(); - if (data.hasOwnProperty('error')) { - obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -87011,20 +160617,25 @@ var JSONError = /*#__PURE__*/function () { } }]); - return JSONError; + return RollbackSecretOutput; }(); /** - * @member {String} error + * @member {String} name */ -JSONError.prototype['error'] = undefined; -var _default = JSONError; +RollbackSecretOutput.prototype['name'] = undefined; +/** + * @member {Number} version + */ + +RollbackSecretOutput.prototype['version'] = undefined; +var _default = RollbackSecretOutput; exports["default"] = _default; /***/ }), -/***/ 81037: +/***/ 32451: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87035,7 +160646,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -87046,19 +160657,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The K8SAuth model module. - * @module model/K8SAuth - * @version 3.3.16 + * The RotateKey model module. + * @module model/RotateKey + * @version 3.6.3 */ -var K8SAuth = /*#__PURE__*/function () { +var RotateKey = /*#__PURE__*/function () { /** - * Constructs a new K8SAuth. - * @alias module:model/K8SAuth + * Constructs a new RotateKey. + * of it. + * @alias module:model/RotateKey + * @param name {String} Key name */ - function K8SAuth() { - _classCallCheck(this, K8SAuth); + function RotateKey(name) { + _classCallCheck(this, RotateKey); - K8SAuth.initialize(this); + RotateKey.initialize(this, name); } /** * Initializes the fields of this object. @@ -87067,85 +160680,47 @@ var K8SAuth = /*#__PURE__*/function () { */ - _createClass(K8SAuth, null, [{ + _createClass(RotateKey, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a K8SAuth from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotateKey from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SAuth} obj Optional instance to populate. - * @return {module:model/K8SAuth} The populated K8SAuth instance. + * @param {module:model/RotateKey} obj Optional instance to populate. + * @return {module:model/RotateKey} The populated RotateKey instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new K8SAuth(); - - if (data.hasOwnProperty('am_token_expiration')) { - obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); - } - - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_prv_key_pem')) { - obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); - } - - if (data.hasOwnProperty('cluster_api_type')) { - obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); - } - - if (data.hasOwnProperty('disable_iss_validation')) { - obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('k8s_ca_cert')) { - obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); - } - - if (data.hasOwnProperty('k8s_host')) { - obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); - } - - if (data.hasOwnProperty('k8s_issuer')) { - obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); - } - - if (data.hasOwnProperty('k8s_pub_keys_pem')) { - obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); - } + obj = obj || new RotateKey(); - if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { - obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('new-cert-pem-data')) { + obj['new-cert-pem-data'] = _ApiClient["default"].convertToType(data['new-cert-pem-data'], 'String'); } - if (data.hasOwnProperty('rancher_api_key')) { - obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); + if (data.hasOwnProperty('new-key-data')) { + obj['new-key-data'] = _ApiClient["default"].convertToType(data['new-key-data'], 'String'); } - if (data.hasOwnProperty('rancher_cluster_id')) { - obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('use_local_ca_jwt')) { - obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -87153,108 +160728,162 @@ var K8SAuth = /*#__PURE__*/function () { } }]); - return K8SAuth; + return RotateKey; }(); /** - * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} am_token_expiration + * Set output format to JSON + * @member {Boolean} json + * @default false */ -K8SAuth.prototype['am_token_expiration'] = undefined; +RotateKey.prototype['json'] = false; /** - * AuthMethodAccessId of the Kubernetes auth method - * @member {String} auth_method_access_id + * Key name + * @member {String} name */ -K8SAuth.prototype['auth_method_access_id'] = undefined; +RotateKey.prototype['name'] = undefined; /** - * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method - * @member {String} auth_method_prv_key_pem + * The new pem encoded certificate for the classic key. relevant only for keys provided by user ('bring-your-own-key') + * @member {String} new-cert-pem-data */ -K8SAuth.prototype['auth_method_prv_key_pem'] = undefined; +RotateKey.prototype['new-cert-pem-data'] = undefined; /** - * ClusterApiType defines types of API access to cluster - * @member {String} cluster_api_type + * The new base64 encoded value for the classic key. relevant only for keys provided by user ('bring-your-own-key') + * @member {String} new-key-data */ -K8SAuth.prototype['cluster_api_type'] = undefined; +RotateKey.prototype['new-key-data'] = undefined; /** - * DisableISSValidation is optional parameter to disable ISS validation - * @member {Boolean} disable_iss_validation + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -K8SAuth.prototype['disable_iss_validation'] = undefined; +RotateKey.prototype['token'] = undefined; /** - * @member {String} id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -K8SAuth.prototype['id'] = undefined; -/** - * K8SCACert is the CA Cert to use to call into the kubernetes API - * @member {String} k8s_ca_cert - */ +RotateKey.prototype['uid-token'] = undefined; +var _default = RotateKey; +exports["default"] = _default; -K8SAuth.prototype['k8s_ca_cert'] = undefined; -/** - * K8SHost is the url string for the kubernetes API - * @member {String} k8s_host - */ +/***/ }), -K8SAuth.prototype['k8s_host'] = undefined; -/** - * K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s_issuer - */ +/***/ 29394: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -K8SAuth.prototype['k8s_issuer'] = undefined; -/** - * K8SPublicKeysPEM is the list of public key in PEM format - * @member {Array.} k8s_pub_keys_pem - */ +"use strict"; -K8SAuth.prototype['k8s_pub_keys_pem'] = undefined; -/** - * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call - * @member {String} k8s_token_reviewer_jwt - */ -K8SAuth.prototype['k8s_token_reviewer_jwt'] = undefined; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * @member {String} name + * The RotateKeyOutput model module. + * @module model/RotateKeyOutput + * @version 3.6.3 */ +var RotateKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new RotateKeyOutput. + * RotateKeyOutput defines output of RotateKey operation + * @alias module:model/RotateKeyOutput + */ + function RotateKeyOutput() { + _classCallCheck(this, RotateKeyOutput); -K8SAuth.prototype['name'] = undefined; + RotateKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotateKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotateKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotateKeyOutput} obj Optional instance to populate. + * @return {module:model/RotateKeyOutput} The populated RotateKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotateKeyOutput(); + + if (data.hasOwnProperty('classic_key_gw_url')) { + obj['classic_key_gw_url'] = _ApiClient["default"].convertToType(data['classic_key_gw_url'], 'String'); + } + + if (data.hasOwnProperty('item_type')) { + obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); + } + + if (data.hasOwnProperty('new_item_version')) { + obj['new_item_version'] = _ApiClient["default"].convertToType(data['new_item_version'], 'Number'); + } + + if (data.hasOwnProperty('next_rotation_date')) { + obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); + } + } + + return obj; + } + }]); + + return RotateKeyOutput; +}(); /** - * @member {String} protection_key + * @member {String} classic_key_gw_url */ -K8SAuth.prototype['protection_key'] = undefined; + +RotateKeyOutput.prototype['classic_key_gw_url'] = undefined; /** - * RancherApiKey the bear token for clusterApiTypeRancher - * @member {String} rancher_api_key + * @member {String} item_type */ -K8SAuth.prototype['rancher_api_key'] = undefined; +RotateKeyOutput.prototype['item_type'] = undefined; /** - * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) - * @member {String} rancher_cluster_id + * @member {Number} new_item_version */ -K8SAuth.prototype['rancher_cluster_id'] = undefined; +RotateKeyOutput.prototype['new_item_version'] = undefined; /** - * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod - * @member {Boolean} use_local_ca_jwt + * @member {Date} next_rotation_date */ -K8SAuth.prototype['use_local_ca_jwt'] = undefined; -var _default = K8SAuth; +RotateKeyOutput.prototype['next_rotation_date'] = undefined; +var _default = RotateKeyOutput; exports["default"] = _default; /***/ }), -/***/ 33903: +/***/ 41421: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87265,7 +160894,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -87276,19 +160905,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The K8SAuthsConfigLastChange model module. - * @module model/K8SAuthsConfigLastChange - * @version 3.3.16 + * The RotateOidcClientOutput model module. + * @module model/RotateOidcClientOutput + * @version 3.6.3 */ -var K8SAuthsConfigLastChange = /*#__PURE__*/function () { +var RotateOidcClientOutput = /*#__PURE__*/function () { /** - * Constructs a new K8SAuthsConfigLastChange. - * @alias module:model/K8SAuthsConfigLastChange + * Constructs a new RotateOidcClientOutput. + * @alias module:model/RotateOidcClientOutput */ - function K8SAuthsConfigLastChange() { - _classCallCheck(this, K8SAuthsConfigLastChange); + function RotateOidcClientOutput() { + _classCallCheck(this, RotateOidcClientOutput); - K8SAuthsConfigLastChange.initialize(this); + RotateOidcClientOutput.initialize(this); } /** * Initializes the fields of this object. @@ -87297,33 +160926,25 @@ var K8SAuthsConfigLastChange = /*#__PURE__*/function () { */ - _createClass(K8SAuthsConfigLastChange, null, [{ + _createClass(RotateOidcClientOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a K8SAuthsConfigLastChange from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotateOidcClientOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SAuthsConfigLastChange} obj Optional instance to populate. - * @return {module:model/K8SAuthsConfigLastChange} The populated K8SAuthsConfigLastChange instance. + * @param {module:model/RotateOidcClientOutput} obj Optional instance to populate. + * @return {module:model/RotateOidcClientOutput} The populated RotateOidcClientOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new K8SAuthsConfigLastChange(); - - if (data.hasOwnProperty('changed_k8s_auths_ids')) { - obj['changed_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['changed_k8s_auths_ids'], ['String']); - } - - if (data.hasOwnProperty('created_k8s_auths_ids')) { - obj['created_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['created_k8s_auths_ids'], ['String']); - } + obj = obj || new RotateOidcClientOutput(); - if (data.hasOwnProperty('deleted_k8s_auths_ids')) { - obj['deleted_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['deleted_k8s_auths_ids'], ['String']); + if (data.hasOwnProperty('new_secret')) { + obj['new_secret'] = _ApiClient["default"].convertToType(data['new_secret'], 'String'); } } @@ -87331,30 +160952,20 @@ var K8SAuthsConfigLastChange = /*#__PURE__*/function () { } }]); - return K8SAuthsConfigLastChange; + return RotateOidcClientOutput; }(); /** - * @member {Array.} changed_k8s_auths_ids - */ - - -K8SAuthsConfigLastChange.prototype['changed_k8s_auths_ids'] = undefined; -/** - * @member {Array.} created_k8s_auths_ids + * @member {String} new_secret */ -K8SAuthsConfigLastChange.prototype['created_k8s_auths_ids'] = undefined; -/** - * @member {Array.} deleted_k8s_auths_ids - */ -K8SAuthsConfigLastChange.prototype['deleted_k8s_auths_ids'] = undefined; -var _default = K8SAuthsConfigLastChange; +RotateOidcClientOutput.prototype['new_secret'] = undefined; +var _default = RotateOidcClientOutput; exports["default"] = _default; /***/ }), -/***/ 53190: +/***/ 82252: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87365,9 +160976,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _K8SAuth = _interopRequireDefault(__nccwpck_require__(81037)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -87378,19 +160987,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The K8SAuthsConfigPart model module. - * @module model/K8SAuthsConfigPart - * @version 3.3.16 + * The RotateOidcClientSecret model module. + * @module model/RotateOidcClientSecret + * @version 3.6.3 */ -var K8SAuthsConfigPart = /*#__PURE__*/function () { +var RotateOidcClientSecret = /*#__PURE__*/function () { /** - * Constructs a new K8SAuthsConfigPart. - * @alias module:model/K8SAuthsConfigPart + * Constructs a new RotateOidcClientSecret. + * @alias module:model/RotateOidcClientSecret + * @param name {String} OIDC application name */ - function K8SAuthsConfigPart() { - _classCallCheck(this, K8SAuthsConfigPart); + function RotateOidcClientSecret(name) { + _classCallCheck(this, RotateOidcClientSecret); - K8SAuthsConfigPart.initialize(this); + RotateOidcClientSecret.initialize(this, name); } /** * Initializes the fields of this object. @@ -87399,25 +161009,39 @@ var K8SAuthsConfigPart = /*#__PURE__*/function () { */ - _createClass(K8SAuthsConfigPart, null, [{ + _createClass(RotateOidcClientSecret, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a K8SAuthsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotateOidcClientSecret from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SAuthsConfigPart} obj Optional instance to populate. - * @return {module:model/K8SAuthsConfigPart} The populated K8SAuthsConfigPart instance. + * @param {module:model/RotateOidcClientSecret} obj Optional instance to populate. + * @return {module:model/RotateOidcClientSecret} The populated RotateOidcClientSecret instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new K8SAuthsConfigPart(); + obj = obj || new RotateOidcClientSecret(); - if (data.hasOwnProperty('k8s_auths')) { - obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], [_K8SAuth["default"]]); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -87425,20 +161049,40 @@ var K8SAuthsConfigPart = /*#__PURE__*/function () { } }]); - return K8SAuthsConfigPart; + return RotateOidcClientSecret; }(); /** - * @member {Array.} k8s_auths + * Set output format to JSON + * @member {Boolean} json + * @default false */ -K8SAuthsConfigPart.prototype['k8s_auths'] = undefined; -var _default = K8SAuthsConfigPart; +RotateOidcClientSecret.prototype['json'] = false; +/** + * OIDC application name + * @member {String} name + */ + +RotateOidcClientSecret.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotateOidcClientSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotateOidcClientSecret.prototype['uid-token'] = undefined; +var _default = RotateOidcClientSecret; exports["default"] = _default; /***/ }), -/***/ 39305: +/***/ 85362: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87449,11 +161093,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _K8SPayload = _interopRequireDefault(__nccwpck_require__(22693)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -87464,19 +161104,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The K8SMigration model module. - * @module model/K8SMigration - * @version 3.3.16 + * The RotateSecret model module. + * @module model/RotateSecret + * @version 3.6.3 */ -var K8SMigration = /*#__PURE__*/function () { +var RotateSecret = /*#__PURE__*/function () { /** - * Constructs a new K8SMigration. - * @alias module:model/K8SMigration + * Constructs a new RotateSecret. + * @alias module:model/RotateSecret + * @param name {String} Secret name (Rotated Secret or Custom Dynamic Secret) */ - function K8SMigration() { - _classCallCheck(this, K8SMigration); + function RotateSecret(name) { + _classCallCheck(this, RotateSecret); - K8SMigration.initialize(this); + RotateSecret.initialize(this, name); } /** * Initializes the fields of this object. @@ -87485,29 +161126,47 @@ var K8SMigration = /*#__PURE__*/function () { */ - _createClass(K8SMigration, null, [{ + _createClass(RotateSecret, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a K8SMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotateSecret from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SMigration} obj Optional instance to populate. - * @return {module:model/K8SMigration} The populated K8SMigration instance. + * @param {module:model/RotateSecret} obj Optional instance to populate. + * @return {module:model/RotateSecret} The populated RotateSecret instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new K8SMigration(); + obj = obj || new RotateSecret(); - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + if (data.hasOwnProperty('RotateAllServicesBoolean')) { + obj['RotateAllServicesBoolean'] = _ApiClient["default"].convertToType(data['RotateAllServicesBoolean'], 'Boolean'); } - if (data.hasOwnProperty('payload')) { - obj['payload'] = _K8SPayload["default"].constructFromObject(data['payload']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('rotate-all-services')) { + obj['rotate-all-services'] = _ApiClient["default"].convertToType(data['rotate-all-services'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -87515,25 +161174,52 @@ var K8SMigration = /*#__PURE__*/function () { } }]); - return K8SMigration; + return RotateSecret; }(); /** - * @member {module:model/MigrationGeneral} general + * @member {Boolean} RotateAllServicesBoolean */ -K8SMigration.prototype['general'] = undefined; +RotateSecret.prototype['RotateAllServicesBoolean'] = undefined; /** - * @member {module:model/K8SPayload} payload + * Set output format to JSON + * @member {Boolean} json + * @default false */ -K8SMigration.prototype['payload'] = undefined; -var _default = K8SMigration; +RotateSecret.prototype['json'] = false; +/** + * Secret name (Rotated Secret or Custom Dynamic Secret) + * @member {String} name + */ + +RotateSecret.prototype['name'] = undefined; +/** + * Rotate all associated services + * @member {String} rotate-all-services + * @default 'false' + */ + +RotateSecret.prototype['rotate-all-services'] = 'false'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotateSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotateSecret.prototype['uid-token'] = undefined; +var _default = RotateSecret; exports["default"] = _default; /***/ }), -/***/ 22693: +/***/ 83871: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87544,7 +161230,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -87555,19 +161241,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The K8SPayload model module. - * @module model/K8SPayload - * @version 3.3.16 + * The RotatedSecretCreateAws model module. + * @module model/RotatedSecretCreateAws + * @version 3.6.3 */ -var K8SPayload = /*#__PURE__*/function () { +var RotatedSecretCreateAws = /*#__PURE__*/function () { /** - * Constructs a new K8SPayload. - * @alias module:model/K8SPayload + * Constructs a new RotatedSecretCreateAws. + * @alias module:model/RotatedSecretCreateAws + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/api-key] + * @param targetName {String} Target name */ - function K8SPayload() { - _classCallCheck(this, K8SPayload); + function RotatedSecretCreateAws(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateAws); - K8SPayload.initialize(this); + RotatedSecretCreateAws.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -87576,57 +161265,125 @@ var K8SPayload = /*#__PURE__*/function () { */ - _createClass(K8SPayload, null, [{ + _createClass(RotatedSecretCreateAws, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a K8SPayload from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateAws from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SPayload} obj Optional instance to populate. - * @return {module:model/K8SPayload} The populated K8SPayload instance. + * @param {module:model/RotatedSecretCreateAws} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateAws} The populated RotatedSecretCreateAws instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new K8SPayload(); + obj = obj || new RotatedSecretCreateAws(); - if (data.hasOwnProperty('ca')) { - obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); } - if (data.hasOwnProperty('client_cert')) { - obj['client_cert'] = _ApiClient["default"].convertToType(data['client_cert'], ['Number']); + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - if (data.hasOwnProperty('client_key')) { - obj['client_key'] = _ApiClient["default"].convertToType(data['client_key'], ['Number']); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = _ApiClient["default"].convertToType(data['namespace'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); } - if (data.hasOwnProperty('server')) { - obj['server'] = _ApiClient["default"].convertToType(data['server'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('skip_system')) { - obj['skip_system'] = _ApiClient["default"].convertToType(data['skip_system'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -87634,60 +161391,169 @@ var K8SPayload = /*#__PURE__*/function () { } }]); - return K8SPayload; -}(); + return RotatedSecretCreateAws; +}(); +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + + +RotatedSecretCreateAws.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +RotatedSecretCreateAws.prototype['api-key'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretCreateAws.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateAws.prototype['auto-rotate'] = undefined; +/** + * Aws Region + * @member {String} aws-region + * @default 'us-east-2' + */ + +RotatedSecretCreateAws.prototype['aws-region'] = 'us-east-2'; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateAws.prototype['description'] = undefined; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ + +RotatedSecretCreateAws.prototype['grace-rotation'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateAws.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateAws.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateAws.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateAws.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateAws.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateAws.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateAws.prototype['rotation-hour'] = undefined; /** - * @member {Array.} ca + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval */ +RotatedSecretCreateAws.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/api-key] + * @member {String} rotator-type + */ -K8SPayload.prototype['ca'] = undefined; +RotatedSecretCreateAws.prototype['rotator-type'] = undefined; /** - * @member {Array.} client_cert + * The AWS account id + * @member {String} secure-access-aws-account-id */ -K8SPayload.prototype['client_cert'] = undefined; +RotatedSecretCreateAws.prototype['secure-access-aws-account-id'] = undefined; /** - * @member {Array.} client_key + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli */ -K8SPayload.prototype['client_key'] = undefined; +RotatedSecretCreateAws.prototype['secure-access-aws-native-cli'] = undefined; /** - * @member {String} namespace + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -K8SPayload.prototype['namespace'] = undefined; +RotatedSecretCreateAws.prototype['secure-access-bastion-issuer'] = undefined; /** - * @member {String} password + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -K8SPayload.prototype['password'] = undefined; +RotatedSecretCreateAws.prototype['secure-access-enable'] = undefined; /** - * @member {String} server + * Add tags attached to this object + * @member {Array.} tags */ -K8SPayload.prototype['server'] = undefined; +RotatedSecretCreateAws.prototype['tags'] = undefined; /** - * @member {Boolean} skip_system + * Target name + * @member {String} target-name */ -K8SPayload.prototype['skip_system'] = undefined; +RotatedSecretCreateAws.prototype['target-name'] = undefined; /** + * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -K8SPayload.prototype['token'] = undefined; +RotatedSecretCreateAws.prototype['token'] = undefined; /** - * @member {String} username + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -K8SPayload.prototype['username'] = undefined; -var _default = K8SPayload; +RotatedSecretCreateAws.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateAws; exports["default"] = _default; /***/ }), -/***/ 33706: +/***/ 4733: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87698,9 +161564,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _PathRule = _interopRequireDefault(__nccwpck_require__(23796)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -87711,19 +161575,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KMIPClient model module. - * @module model/KMIPClient - * @version 3.3.16 + * The RotatedSecretCreateAzure model module. + * @module model/RotatedSecretCreateAzure + * @version 3.6.3 */ -var KMIPClient = /*#__PURE__*/function () { +var RotatedSecretCreateAzure = /*#__PURE__*/function () { /** - * Constructs a new KMIPClient. - * @alias module:model/KMIPClient + * Constructs a new RotatedSecretCreateAzure. + * @alias module:model/RotatedSecretCreateAzure + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password/api-key/azure-storage-account] + * @param targetName {String} Target name */ - function KMIPClient() { - _classCallCheck(this, KMIPClient); + function RotatedSecretCreateAzure(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateAzure); - KMIPClient.initialize(this); + RotatedSecretCreateAzure.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -87732,45 +161599,133 @@ var KMIPClient = /*#__PURE__*/function () { */ - _createClass(KMIPClient, null, [{ + _createClass(RotatedSecretCreateAzure, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KMIPClient from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateAzure from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClient} obj Optional instance to populate. - * @return {module:model/KMIPClient} The populated KMIPClient instance. + * @param {module:model/RotatedSecretCreateAzure} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateAzure} The populated RotatedSecretCreateAzure instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KMIPClient(); + obj = obj || new RotatedSecretCreateAzure(); - if (data.hasOwnProperty('activate_keys_on_creation')) { - obj['activate_keys_on_creation'] = _ApiClient["default"].convertToType(data['activate_keys_on_creation'], 'Boolean'); + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); } - if (data.hasOwnProperty('certificate_issue_date')) { - obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - if (data.hasOwnProperty('certificate_ttl_in_seconds')) { - obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); + if (data.hasOwnProperty('application-id')) { + obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('rules')) { - obj['rules'] = _ApiClient["default"].convertToType(data['rules'], [_PathRule["default"]]); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } @@ -87778,129 +161733,183 @@ var KMIPClient = /*#__PURE__*/function () { } }]); - return KMIPClient; + return RotatedSecretCreateAzure; }(); /** - * @member {Boolean} activate_keys_on_creation + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id */ -KMIPClient.prototype['activate_keys_on_creation'] = undefined; +RotatedSecretCreateAzure.prototype['api-id'] = undefined; /** - * @member {Date} certificate_issue_date + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key */ -KMIPClient.prototype['certificate_issue_date'] = undefined; +RotatedSecretCreateAzure.prototype['api-key'] = undefined; /** - * @member {Number} certificate_ttl_in_seconds + * Id of the azure app that hold the serect to be rotated (relevant only for rotator-type=api-key & authentication-credentials=use-target-creds) + * @member {String} application-id */ -KMIPClient.prototype['certificate_ttl_in_seconds'] = undefined; +RotatedSecretCreateAzure.prototype['application-id'] = undefined; /** - * @member {String} id + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KMIPClient.prototype['id'] = undefined; +RotatedSecretCreateAzure.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {String} name + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KMIPClient.prototype['name'] = undefined; +RotatedSecretCreateAzure.prototype['auto-rotate'] = undefined; /** - * @member {Array.} rules + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -KMIPClient.prototype['rules'] = undefined; -var _default = KMIPClient; -exports["default"] = _default; +RotatedSecretCreateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -/***/ }), +RotatedSecretCreateAzure.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 18269: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateAzure.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -"use strict"; +RotatedSecretCreateAzure.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ +RotatedSecretCreateAzure.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +RotatedSecretCreateAzure.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +RotatedSecretCreateAzure.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(33706)); +RotatedSecretCreateAzure.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretCreateAzure.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretCreateAzure.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password/api-key/azure-storage-account] + * @member {String} rotator-type + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretCreateAzure.prototype['rotator-type'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretCreateAzure.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ +RotatedSecretCreateAzure.prototype['secure-access-url'] = undefined; /** - * The KMIPClientGetResponse model module. - * @module model/KMIPClientGetResponse - * @version 3.3.16 + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -var KMIPClientGetResponse = /*#__PURE__*/function () { - /** - * Constructs a new KMIPClientGetResponse. - * @alias module:model/KMIPClientGetResponse - */ - function KMIPClientGetResponse() { - _classCallCheck(this, KMIPClientGetResponse); - KMIPClientGetResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretCreateAzure.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ +RotatedSecretCreateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ - _createClass(KMIPClientGetResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPClientGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClientGetResponse} obj Optional instance to populate. - * @return {module:model/KMIPClientGetResponse} The populated KMIPClientGetResponse instance. - */ +RotatedSecretCreateAzure.prototype['secure-access-web-proxy'] = false; +/** + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) + * @member {String} storage-account-key-name + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPClientGetResponse(); +RotatedSecretCreateAzure.prototype['storage-account-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - if (data.hasOwnProperty('client')) { - obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); - } - } +RotatedSecretCreateAzure.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return obj; - } - }]); +RotatedSecretCreateAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return KMIPClientGetResponse; -}(); +RotatedSecretCreateAzure.prototype['token'] = undefined; /** - * @member {module:model/KMIPClient} client + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +RotatedSecretCreateAzure.prototype['uid-token'] = undefined; +/** + * The user principal name to rotate his password (relevant only for rotator-type=password) + * @member {String} username + */ -KMIPClientGetResponse.prototype['client'] = undefined; -var _default = KMIPClientGetResponse; +RotatedSecretCreateAzure.prototype['username'] = undefined; +var _default = RotatedSecretCreateAzure; exports["default"] = _default; /***/ }), -/***/ 29166: +/***/ 60560: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87911,9 +161920,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(33706)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -87924,19 +161931,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KMIPClientListResponse model module. - * @module model/KMIPClientListResponse - * @version 3.3.16 + * The RotatedSecretCreateCassandra model module. + * @module model/RotatedSecretCreateCassandra + * @version 3.6.3 */ -var KMIPClientListResponse = /*#__PURE__*/function () { +var RotatedSecretCreateCassandra = /*#__PURE__*/function () { /** - * Constructs a new KMIPClientListResponse. - * @alias module:model/KMIPClientListResponse + * Constructs a new RotatedSecretCreateCassandra. + * @alias module:model/RotatedSecretCreateCassandra + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KMIPClientListResponse() { - _classCallCheck(this, KMIPClientListResponse); + function RotatedSecretCreateCassandra(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateCassandra); - KMIPClientListResponse.initialize(this); + RotatedSecretCreateCassandra.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -87945,109 +161955,97 @@ var KMIPClientListResponse = /*#__PURE__*/function () { */ - _createClass(KMIPClientListResponse, null, [{ + _createClass(RotatedSecretCreateCassandra, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KMIPClientListResponse from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateCassandra from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClientListResponse} obj Optional instance to populate. - * @return {module:model/KMIPClientListResponse} The populated KMIPClientListResponse instance. + * @param {module:model/RotatedSecretCreateCassandra} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateCassandra} The populated RotatedSecretCreateCassandra instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KMIPClientListResponse(); + obj = obj || new RotatedSecretCreateCassandra(); - if (data.hasOwnProperty('clients')) { - obj['clients'] = _ApiClient["default"].convertToType(data['clients'], [_KMIPClient["default"]]); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - - return obj; - } - }]); - - return KMIPClientListResponse; -}(); -/** - * @member {Array.} clients - */ - - -KMIPClientListResponse.prototype['clients'] = undefined; -var _default = KMIPClientListResponse; -exports["default"] = _default; -/***/ }), + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -/***/ 74882: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(33706)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -/** - * The KMIPClientUpdateResponse model module. - * @module model/KMIPClientUpdateResponse - * @version 3.3.16 - */ -var KMIPClientUpdateResponse = /*#__PURE__*/function () { - /** - * Constructs a new KMIPClientUpdateResponse. - * @alias module:model/KMIPClientUpdateResponse - */ - function KMIPClientUpdateResponse() { - _classCallCheck(this, KMIPClientUpdateResponse); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - KMIPClientUpdateResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } - _createClass(KMIPClientUpdateResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPClientUpdateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClientUpdateResponse} obj Optional instance to populate. - * @return {module:model/KMIPClientUpdateResponse} The populated KMIPClientUpdateResponse instance. - */ + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPClientUpdateResponse(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (data.hasOwnProperty('client')) { - obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -88055,137 +162053,125 @@ var KMIPClientUpdateResponse = /*#__PURE__*/function () { } }]); - return KMIPClientUpdateResponse; + return RotatedSecretCreateCassandra; }(); /** - * @member {module:model/KMIPClient} client + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KMIPClientUpdateResponse.prototype['client'] = undefined; -var _default = KMIPClientUpdateResponse; -exports["default"] = _default; - -/***/ }), - -/***/ 86271: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(33706)); - -var _KMIPServer = _interopRequireDefault(__nccwpck_require__(58838)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretCreateCassandra.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretCreateCassandra.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ +RotatedSecretCreateCassandra.prototype['delete_protection'] = undefined; /** - * The KMIPConfigPart model module. - * @module model/KMIPConfigPart - * @version 3.3.16 + * Description of the object + * @member {String} description */ -var KMIPConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new KMIPConfigPart. - * @alias module:model/KMIPConfigPart - */ - function KMIPConfigPart() { - _classCallCheck(this, KMIPConfigPart); - KMIPConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretCreateCassandra.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +RotatedSecretCreateCassandra.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - _createClass(KMIPConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPConfigPart} obj Optional instance to populate. - * @return {module:model/KMIPConfigPart} The populated KMIPConfigPart instance. - */ +RotatedSecretCreateCassandra.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPConfigPart(); +RotatedSecretCreateCassandra.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - if (data.hasOwnProperty('clients')) { - obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { - 'String': _KMIPClient["default"] - }); - } +RotatedSecretCreateCassandra.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (data.hasOwnProperty('key_enc')) { - obj['key_enc'] = _ApiClient["default"].convertToType(data['key_enc'], ['Number']); - } +RotatedSecretCreateCassandra.prototype['password-length'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - if (data.hasOwnProperty('server')) { - obj['server'] = _KMIPServer["default"].constructFromObject(data['server']); - } +RotatedSecretCreateCassandra.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - if (data.hasOwnProperty('server_enc')) { - obj['server_enc'] = _ApiClient["default"].convertToType(data['server_enc'], ['Number']); - } - } +RotatedSecretCreateCassandra.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - return obj; - } - }]); +RotatedSecretCreateCassandra.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - return KMIPConfigPart; -}(); +RotatedSecretCreateCassandra.prototype['rotation-interval'] = undefined; /** - * @member {Object.} clients + * The rotator type. options: [target/password] + * @member {String} rotator-type */ +RotatedSecretCreateCassandra.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -KMIPConfigPart.prototype['clients'] = undefined; +RotatedSecretCreateCassandra.prototype['tags'] = undefined; /** - * Saves the private key of the cert issuer in encypted form - * @member {Array.} key_enc + * Target name + * @member {String} target-name */ -KMIPConfigPart.prototype['key_enc'] = undefined; +RotatedSecretCreateCassandra.prototype['target-name'] = undefined; /** - * @member {module:model/KMIPServer} server + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -KMIPConfigPart.prototype['server'] = undefined; +RotatedSecretCreateCassandra.prototype['token'] = undefined; /** - * Saved for backward compatibility TODO: remove this after all clients upgrade - * @member {Array.} server_enc + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -KMIPConfigPart.prototype['server_enc'] = undefined; -var _default = KMIPConfigPart; +RotatedSecretCreateCassandra.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateCassandra; exports["default"] = _default; /***/ }), -/***/ 62320: +/***/ 62527: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -88196,7 +162182,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -88207,19 +162193,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KMIPEnvironmentCreateResponse model module. - * @module model/KMIPEnvironmentCreateResponse - * @version 3.3.16 + * The RotatedSecretCreateCustom model module. + * @module model/RotatedSecretCreateCustom + * @version 3.6.3 */ -var KMIPEnvironmentCreateResponse = /*#__PURE__*/function () { +var RotatedSecretCreateCustom = /*#__PURE__*/function () { /** - * Constructs a new KMIPEnvironmentCreateResponse. - * @alias module:model/KMIPEnvironmentCreateResponse + * Constructs a new RotatedSecretCreateCustom. + * @alias module:model/RotatedSecretCreateCustom + * @param name {String} Rotated secret name + * @param targetName {String} Target name */ - function KMIPEnvironmentCreateResponse() { - _classCallCheck(this, KMIPEnvironmentCreateResponse); + function RotatedSecretCreateCustom(name, targetName) { + _classCallCheck(this, RotatedSecretCreateCustom); - KMIPEnvironmentCreateResponse.initialize(this); + RotatedSecretCreateCustom.initialize(this, name, targetName); } /** * Initializes the fields of this object. @@ -88228,140 +162216,136 @@ var KMIPEnvironmentCreateResponse = /*#__PURE__*/function () { */ - _createClass(KMIPEnvironmentCreateResponse, null, [{ + _createClass(RotatedSecretCreateCustom, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, targetName) { + obj['name'] = name; + obj['target-name'] = targetName; + } /** - * Constructs a KMIPEnvironmentCreateResponse from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateCustom from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPEnvironmentCreateResponse} obj Optional instance to populate. - * @return {module:model/KMIPEnvironmentCreateResponse} The populated KMIPEnvironmentCreateResponse instance. + * @param {module:model/RotatedSecretCreateCustom} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateCustom} The populated RotatedSecretCreateCustom instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KMIPEnvironmentCreateResponse(); + obj = obj || new RotatedSecretCreateCustom(); - if (data.hasOwnProperty('ca_cert')) { - obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - } - - return obj; - } - }]); - return KMIPEnvironmentCreateResponse; -}(); -/** - * @member {Array.} ca_cert - */ + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -KMIPEnvironmentCreateResponse.prototype['ca_cert'] = undefined; -/** - * @member {String} root - */ + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -KMIPEnvironmentCreateResponse.prototype['root'] = undefined; -var _default = KMIPEnvironmentCreateResponse; -exports["default"] = _default; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/***/ 58838: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -/** - * The KMIPServer model module. - * @module model/KMIPServer - * @version 3.3.16 - */ -var KMIPServer = /*#__PURE__*/function () { - /** - * Constructs a new KMIPServer. - * @alias module:model/KMIPServer - */ - function KMIPServer() { - _classCallCheck(this, KMIPServer); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - KMIPServer.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } - _createClass(KMIPServer, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPServer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPServer} obj Optional instance to populate. - * @return {module:model/KMIPServer} The populated KMIPServer instance. - */ + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPServer(); + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('ca')) { - obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], ['Number']); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('certificate_issue_date')) { - obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('certificate_ttl_in_seconds')) { - obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -88369,50 +162353,190 @@ var KMIPServer = /*#__PURE__*/function () { } }]); - return KMIPServer; + return RotatedSecretCreateCustom; }(); /** - * @member {Boolean} active + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KMIPServer.prototype['active'] = undefined; +RotatedSecretCreateCustom.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {Array.} ca + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KMIPServer.prototype['ca'] = undefined; +RotatedSecretCreateCustom.prototype['auto-rotate'] = undefined; /** - * @member {Array.} certificate + * Secret payload to be sent with rotation request + * @member {String} custom-payload */ -KMIPServer.prototype['certificate'] = undefined; +RotatedSecretCreateCustom.prototype['custom-payload'] = undefined; /** - * @member {Date} certificate_issue_date + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -KMIPServer.prototype['certificate_issue_date'] = undefined; +RotatedSecretCreateCustom.prototype['delete_protection'] = undefined; /** - * @member {Number} certificate_ttl_in_seconds + * Description of the object + * @member {String} description */ -KMIPServer.prototype['certificate_ttl_in_seconds'] = undefined; +RotatedSecretCreateCustom.prototype['description'] = undefined; /** - * @member {String} hostname + * Set output format to JSON + * @member {Boolean} json + * @default false */ -KMIPServer.prototype['hostname'] = undefined; +RotatedSecretCreateCustom.prototype['json'] = false; /** - * @member {String} root + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -KMIPServer.prototype['root'] = undefined; -var _default = KMIPServer; +RotatedSecretCreateCustom.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateCustom.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateCustom.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateCustom.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateCustom.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateCustom.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateCustom.prototype['rotation-interval'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +RotatedSecretCreateCustom.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateCustom.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateCustom.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ + +RotatedSecretCreateCustom.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +RotatedSecretCreateCustom.prototype['secure-access-rdp-user'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ + +RotatedSecretCreateCustom.prototype['secure-access-ssh-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +RotatedSecretCreateCustom.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateCustom.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateCustom.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateCustom.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateCustom; exports["default"] = _default; /***/ }), -/***/ 13881: +/***/ 53685: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -88423,7 +162547,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -88434,20 +162558,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipClientDeleteRule model module. - * @module model/KmipClientDeleteRule - * @version 3.3.16 + * The RotatedSecretCreateDockerhub model module. + * @module model/RotatedSecretCreateDockerhub + * @version 3.6.3 */ -var KmipClientDeleteRule = /*#__PURE__*/function () { +var RotatedSecretCreateDockerhub = /*#__PURE__*/function () { /** - * Constructs a new KmipClientDeleteRule. - * @alias module:model/KmipClientDeleteRule - * @param path {String} Access path + * Constructs a new RotatedSecretCreateDockerhub. + * @alias module:model/RotatedSecretCreateDockerhub + * @param name {String} Rotated secret name + * @param targetName {String} Target name */ - function KmipClientDeleteRule(path) { - _classCallCheck(this, KmipClientDeleteRule); + function RotatedSecretCreateDockerhub(name, targetName) { + _classCallCheck(this, RotatedSecretCreateDockerhub); - KmipClientDeleteRule.initialize(this, path); + RotatedSecretCreateDockerhub.initialize(this, name, targetName); } /** * Initializes the fields of this object. @@ -88456,39 +162581,76 @@ var KmipClientDeleteRule = /*#__PURE__*/function () { */ - _createClass(KmipClientDeleteRule, null, [{ + _createClass(RotatedSecretCreateDockerhub, null, [{ key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; + value: function initialize(obj, name, targetName) { + obj['name'] = name; + obj['target-name'] = targetName; } /** - * Constructs a KmipClientDeleteRule from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateDockerhub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipClientDeleteRule} obj Optional instance to populate. - * @return {module:model/KmipClientDeleteRule} The populated KmipClientDeleteRule instance. + * @param {module:model/RotatedSecretCreateDockerhub} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateDockerhub} The populated RotatedSecretCreateDockerhub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipClientDeleteRule(); + obj = obj || new RotatedSecretCreateDockerhub(); - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -88504,50 +162666,107 @@ var KmipClientDeleteRule = /*#__PURE__*/function () { } }]); - return KmipClientDeleteRule; + return RotatedSecretCreateDockerhub; }(); /** - * @member {String} client-id + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KmipClientDeleteRule.prototype['client-id'] = undefined; +RotatedSecretCreateDockerhub.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateDockerhub.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateDockerhub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateDockerhub.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -KmipClientDeleteRule.prototype['json'] = false; +RotatedSecretCreateDockerhub.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateDockerhub.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateDockerhub.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateDockerhub.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateDockerhub.prototype['password-length'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateDockerhub.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateDockerhub.prototype['rotation-interval'] = undefined; /** - * @member {String} name + * Add tags attached to this object + * @member {Array.} tags */ -KmipClientDeleteRule.prototype['name'] = undefined; +RotatedSecretCreateDockerhub.prototype['tags'] = undefined; /** - * Access path - * @member {String} path + * Target name + * @member {String} target-name */ -KmipClientDeleteRule.prototype['path'] = undefined; +RotatedSecretCreateDockerhub.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipClientDeleteRule.prototype['token'] = undefined; +RotatedSecretCreateDockerhub.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipClientDeleteRule.prototype['uid-token'] = undefined; -var _default = KmipClientDeleteRule; +RotatedSecretCreateDockerhub.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateDockerhub; exports["default"] = _default; /***/ }), -/***/ 40187: +/***/ 63476: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -88558,7 +162777,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -88569,21 +162788,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipClientSetRule model module. - * @module model/KmipClientSetRule - * @version 3.3.16 + * The RotatedSecretCreateGcp model module. + * @module model/RotatedSecretCreateGcp + * @version 3.6.3 */ -var KmipClientSetRule = /*#__PURE__*/function () { +var RotatedSecretCreateGcp = /*#__PURE__*/function () { /** - * Constructs a new KmipClientSetRule. - * @alias module:model/KmipClientSetRule - * @param capability {Array.} Access capabilities - * @param path {String} Access path + * Constructs a new RotatedSecretCreateGcp. + * @alias module:model/RotatedSecretCreateGcp + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/service-account-rotator] + * @param targetName {String} Target name */ - function KmipClientSetRule(capability, path) { - _classCallCheck(this, KmipClientSetRule); + function RotatedSecretCreateGcp(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateGcp); - KmipClientSetRule.initialize(this, capability, path); + RotatedSecretCreateGcp.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -88592,44 +162812,93 @@ var KmipClientSetRule = /*#__PURE__*/function () { */ - _createClass(KmipClientSetRule, null, [{ + _createClass(RotatedSecretCreateGcp, null, [{ key: "initialize", - value: function initialize(obj, capability, path) { - obj['capability'] = capability; - obj['path'] = path; + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Constructs a KmipClientSetRule from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateGcp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipClientSetRule} obj Optional instance to populate. - * @return {module:model/KmipClientSetRule} The populated KmipClientSetRule instance. + * @param {module:model/RotatedSecretCreateGcp} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateGcp} The populated RotatedSecretCreateGcp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipClientSetRule(); + obj = obj || new RotatedSecretCreateGcp(); - if (data.hasOwnProperty('capability')) { - obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -88645,56 +162914,131 @@ var KmipClientSetRule = /*#__PURE__*/function () { } }]); - return KmipClientSetRule; + return RotatedSecretCreateGcp; }(); /** - * Access capabilities - * @member {Array.} capability + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KmipClientSetRule.prototype['capability'] = undefined; +RotatedSecretCreateGcp.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {String} client-id + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KmipClientSetRule.prototype['client-id'] = undefined; +RotatedSecretCreateGcp.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateGcp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateGcp.prototype['description'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +RotatedSecretCreateGcp.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ + +RotatedSecretCreateGcp.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ + +RotatedSecretCreateGcp.prototype['gcp-service-account-key-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -KmipClientSetRule.prototype['json'] = false; +RotatedSecretCreateGcp.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateGcp.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateGcp.prototype['max-versions'] = undefined; /** + * Rotated secret name * @member {String} name */ -KmipClientSetRule.prototype['name'] = undefined; +RotatedSecretCreateGcp.prototype['name'] = undefined; /** - * Access path - * @member {String} path + * The length of the password to be generated + * @member {String} password-length */ -KmipClientSetRule.prototype['path'] = undefined; +RotatedSecretCreateGcp.prototype['password-length'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateGcp.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateGcp.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/service-account-rotator] + * @member {String} rotator-type + */ + +RotatedSecretCreateGcp.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateGcp.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipClientSetRule.prototype['token'] = undefined; +RotatedSecretCreateGcp.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipClientSetRule.prototype['uid-token'] = undefined; -var _default = KmipClientSetRule; +RotatedSecretCreateGcp.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateGcp; exports["default"] = _default; /***/ }), -/***/ 34026: +/***/ 78964: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -88705,7 +163049,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -88716,20 +163060,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipCreateClient model module. - * @module model/KmipCreateClient - * @version 3.3.16 + * The RotatedSecretCreateHanadb model module. + * @module model/RotatedSecretCreateHanadb + * @version 3.6.3 */ -var KmipCreateClient = /*#__PURE__*/function () { +var RotatedSecretCreateHanadb = /*#__PURE__*/function () { /** - * Constructs a new KmipCreateClient. - * @alias module:model/KmipCreateClient - * @param name {String} Client name + * Constructs a new RotatedSecretCreateHanadb. + * @alias module:model/RotatedSecretCreateHanadb + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipCreateClient(name) { - _classCallCheck(this, KmipCreateClient); + function RotatedSecretCreateHanadb(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateHanadb); - KmipCreateClient.initialize(this, name); + RotatedSecretCreateHanadb.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -88738,41 +163084,91 @@ var KmipCreateClient = /*#__PURE__*/function () { */ - _createClass(KmipCreateClient, null, [{ + _createClass(RotatedSecretCreateHanadb, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, name, rotatorType, targetName) { obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Constructs a KmipCreateClient from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateHanadb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipCreateClient} obj Optional instance to populate. - * @return {module:model/KmipCreateClient} The populated KmipCreateClient instance. + * @param {module:model/RotatedSecretCreateHanadb} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateHanadb} The populated RotatedSecretCreateHanadb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipCreateClient(); + obj = obj || new RotatedSecretCreateHanadb(); - if (data.hasOwnProperty('activate-keys-on-creation')) { - obj['activate-keys-on-creation'] = _ApiClient["default"].convertToType(data['activate-keys-on-creation'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -88786,54 +163182,125 @@ var KmipCreateClient = /*#__PURE__*/function () { } }]); - return KmipCreateClient; + return RotatedSecretCreateHanadb; }(); /** - * If set to 'true', newly created keys on the client will be set to an 'active' state - * @member {String} activate-keys-on-creation - * @default 'false' + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KmipCreateClient.prototype['activate-keys-on-creation'] = 'false'; +RotatedSecretCreateHanadb.prototype['authentication-credentials'] = 'use-user-creds'; /** - * Client certificate TTL in days - * @member {Number} certificate-ttl - * @default 90 + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KmipCreateClient.prototype['certificate-ttl'] = 90; +RotatedSecretCreateHanadb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateHanadb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateHanadb.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -KmipCreateClient.prototype['json'] = false; +RotatedSecretCreateHanadb.prototype['json'] = false; /** - * Client name + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateHanadb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateHanadb.prototype['max-versions'] = undefined; +/** + * Rotated secret name * @member {String} name */ -KmipCreateClient.prototype['name'] = undefined; +RotatedSecretCreateHanadb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateHanadb.prototype['password-length'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateHanadb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateHanadb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateHanadb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateHanadb.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateHanadb.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateHanadb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateHanadb.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipCreateClient.prototype['token'] = undefined; +RotatedSecretCreateHanadb.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipCreateClient.prototype['uid-token'] = undefined; -var _default = KmipCreateClient; +RotatedSecretCreateHanadb.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateHanadb; exports["default"] = _default; /***/ }), -/***/ 20988: +/***/ 29101: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -88844,7 +163311,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -88855,19 +163322,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipCreateClientOutput model module. - * @module model/KmipCreateClientOutput - * @version 3.3.16 + * The RotatedSecretCreateLdap model module. + * @module model/RotatedSecretCreateLdap + * @version 3.6.3 */ -var KmipCreateClientOutput = /*#__PURE__*/function () { +var RotatedSecretCreateLdap = /*#__PURE__*/function () { /** - * Constructs a new KmipCreateClientOutput. - * @alias module:model/KmipCreateClientOutput + * Constructs a new RotatedSecretCreateLdap. + * @alias module:model/RotatedSecretCreateLdap + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/ldap] + * @param targetName {String} Target name */ - function KmipCreateClientOutput() { - _classCallCheck(this, KmipCreateClientOutput); + function RotatedSecretCreateLdap(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateLdap); - KmipCreateClientOutput.initialize(this); + RotatedSecretCreateLdap.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -88876,133 +163346,133 @@ var KmipCreateClientOutput = /*#__PURE__*/function () { */ - _createClass(KmipCreateClientOutput, null, [{ + _createClass(RotatedSecretCreateLdap, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipCreateClientOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateLdap from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipCreateClientOutput} obj Optional instance to populate. - * @return {module:model/KmipCreateClientOutput} The populated KmipCreateClientOutput instance. + * @param {module:model/RotatedSecretCreateLdap} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateLdap} The populated RotatedSecretCreateLdap instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipCreateClientOutput(); + obj = obj || new RotatedSecretCreateLdap(); - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - } - return obj; - } - }]); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - return KmipCreateClientOutput; -}(); -/** - * @member {String} certificate - */ + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } -KmipCreateClientOutput.prototype['certificate'] = undefined; -/** - * @member {String} id - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -KmipCreateClientOutput.prototype['id'] = undefined; -/** - * @member {String} key - */ + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -KmipCreateClientOutput.prototype['key'] = undefined; -var _default = KmipCreateClientOutput; -exports["default"] = _default; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/***/ 65045: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } -/** - * The KmipDeleteClient model module. - * @module model/KmipDeleteClient - * @version 3.3.16 - */ -var KmipDeleteClient = /*#__PURE__*/function () { - /** - * Constructs a new KmipDeleteClient. - * @alias module:model/KmipDeleteClient - */ - function KmipDeleteClient() { - _classCallCheck(this, KmipDeleteClient); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } - KmipDeleteClient.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } - _createClass(KmipDeleteClient, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipDeleteClient from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDeleteClient} obj Optional instance to populate. - * @return {module:model/KmipDeleteClient} The populated KmipDeleteClient instance. - */ + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipDeleteClient(); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -89012,50 +163482,222 @@ var KmipDeleteClient = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } } return obj; } }]); - return KmipDeleteClient; + return RotatedSecretCreateLdap; }(); /** - * @member {String} client-id + * @member {String} ProviderType */ -KmipDeleteClient.prototype['client-id'] = undefined; +RotatedSecretCreateLdap.prototype['ProviderType'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretCreateLdap.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateLdap.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateLdap.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateLdap.prototype['description'] = undefined; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ + +RotatedSecretCreateLdap.prototype['host-provider'] = 'explicit'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -KmipDeleteClient.prototype['json'] = false; +RotatedSecretCreateLdap.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateLdap.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateLdap.prototype['max-versions'] = undefined; /** + * Rotated secret name * @member {String} name */ -KmipDeleteClient.prototype['name'] = undefined; +RotatedSecretCreateLdap.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateLdap.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateLdap.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=ldap) + * @member {String} rotated-password + */ + +RotatedSecretCreateLdap.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=ldap) + * @member {String} rotated-username + */ + +RotatedSecretCreateLdap.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateLdap.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateLdap.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/ldap] + * @member {String} rotator-type + */ + +RotatedSecretCreateLdap.prototype['rotator-type'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateLdap.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateLdap.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ + +RotatedSecretCreateLdap.prototype['secure-access-rdp-domain'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +RotatedSecretCreateLdap.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateLdap.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +RotatedSecretCreateLdap.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +RotatedSecretCreateLdap.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateLdap.prototype['tags'] = undefined; +/** + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target + */ + +RotatedSecretCreateLdap.prototype['target'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateLdap.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipDeleteClient.prototype['token'] = undefined; +RotatedSecretCreateLdap.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipDeleteClient.prototype['uid-token'] = undefined; -var _default = KmipDeleteClient; +RotatedSecretCreateLdap.prototype['uid-token'] = undefined; +/** + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' + */ + +RotatedSecretCreateLdap.prototype['user-attribute'] = 'cn'; +/** + * Base DN to Perform User Search + * @member {String} user-dn + */ + +RotatedSecretCreateLdap.prototype['user-dn'] = undefined; +var _default = RotatedSecretCreateLdap; exports["default"] = _default; /***/ }), -/***/ 53900: +/***/ 96884: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -89066,7 +163708,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -89077,20 +163719,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipDeleteServer model module. - * @module model/KmipDeleteServer - * @version 3.3.16 + * The RotatedSecretCreateMongodb model module. + * @module model/RotatedSecretCreateMongodb + * @version 3.6.3 */ -var KmipDeleteServer = /*#__PURE__*/function () { +var RotatedSecretCreateMongodb = /*#__PURE__*/function () { /** - * Constructs a new KmipDeleteServer. - * kmipDeleteServer is a command that the kmip server (allowed only if it has no clients nor associated items) - * @alias module:model/KmipDeleteServer + * Constructs a new RotatedSecretCreateMongodb. + * @alias module:model/RotatedSecretCreateMongodb + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipDeleteServer() { - _classCallCheck(this, KmipDeleteServer); + function RotatedSecretCreateMongodb(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateMongodb); - KmipDeleteServer.initialize(this); + RotatedSecretCreateMongodb.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -89099,27 +163743,115 @@ var KmipDeleteServer = /*#__PURE__*/function () { */ - _createClass(KmipDeleteServer, null, [{ + _createClass(RotatedSecretCreateMongodb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipDeleteServer from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateMongodb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDeleteServer} obj Optional instance to populate. - * @return {module:model/KmipDeleteServer} The populated KmipDeleteServer instance. + * @param {module:model/RotatedSecretCreateMongodb} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateMongodb} The populated RotatedSecretCreateMongodb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipDeleteServer(); + obj = obj || new RotatedSecretCreateMongodb(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -89133,34 +163865,163 @@ var KmipDeleteServer = /*#__PURE__*/function () { } }]); - return KmipDeleteServer; + return RotatedSecretCreateMongodb; }(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateMongodb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateMongodb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateMongodb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateMongodb.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +RotatedSecretCreateMongodb.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateMongodb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -KmipDeleteServer.prototype['json'] = false; +RotatedSecretCreateMongodb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateMongodb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateMongodb.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateMongodb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateMongodb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateMongodb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateMongodb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateMongodb.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateMongodb.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +RotatedSecretCreateMongodb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +RotatedSecretCreateMongodb.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateMongodb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateMongodb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateMongodb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateMongodb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateMongodb.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipDeleteServer.prototype['token'] = undefined; +RotatedSecretCreateMongodb.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipDeleteServer.prototype['uid-token'] = undefined; -var _default = KmipDeleteServer; +RotatedSecretCreateMongodb.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateMongodb; exports["default"] = _default; /***/ }), -/***/ 95479: +/***/ 60350: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -89171,7 +164032,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -89182,19 +164043,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipDescribeClient model module. - * @module model/KmipDescribeClient - * @version 3.3.16 + * The RotatedSecretCreateMssql model module. + * @module model/RotatedSecretCreateMssql + * @version 3.6.3 */ -var KmipDescribeClient = /*#__PURE__*/function () { +var RotatedSecretCreateMssql = /*#__PURE__*/function () { /** - * Constructs a new KmipDescribeClient. - * @alias module:model/KmipDescribeClient + * Constructs a new RotatedSecretCreateMssql. + * @alias module:model/RotatedSecretCreateMssql + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipDescribeClient() { - _classCallCheck(this, KmipDescribeClient); + function RotatedSecretCreateMssql(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateMssql); - KmipDescribeClient.initialize(this); + RotatedSecretCreateMssql.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -89203,86 +164067,295 @@ var KmipDescribeClient = /*#__PURE__*/function () { */ - _createClass(KmipDescribeClient, null, [{ + _createClass(RotatedSecretCreateMssql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipDescribeClient from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateMssql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDescribeClient} obj Optional instance to populate. - * @return {module:model/KmipDescribeClient} The populated KmipDescribeClient instance. + * @param {module:model/RotatedSecretCreateMssql} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateMssql} The populated RotatedSecretCreateMssql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipDescribeClient(); + obj = obj || new RotatedSecretCreateMssql(); - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return RotatedSecretCreateMssql; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateMssql.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateMssql.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateMssql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateMssql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateMssql.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateMssql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateMssql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateMssql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateMssql.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateMssql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateMssql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateMssql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateMssql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateMssql.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateMssql.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +RotatedSecretCreateMssql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - return obj; - } - }]); +RotatedSecretCreateMssql.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - return KmipDescribeClient; -}(); +RotatedSecretCreateMssql.prototype['secure-access-db-schema'] = undefined; /** - * @member {String} client-id + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ +RotatedSecretCreateMssql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -KmipDescribeClient.prototype['client-id'] = undefined; +RotatedSecretCreateMssql.prototype['secure-access-host'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web * @default false */ -KmipDescribeClient.prototype['json'] = false; +RotatedSecretCreateMssql.prototype['secure-access-web'] = false; /** - * @member {String} name + * Add tags attached to this object + * @member {Array.} tags */ -KmipDescribeClient.prototype['name'] = undefined; +RotatedSecretCreateMssql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateMssql.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipDescribeClient.prototype['token'] = undefined; +RotatedSecretCreateMssql.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipDescribeClient.prototype['uid-token'] = undefined; -var _default = KmipDescribeClient; +RotatedSecretCreateMssql.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateMssql; exports["default"] = _default; /***/ }), -/***/ 97642: +/***/ 33312: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -89293,7 +164366,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -89304,19 +164377,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipDescribeServer model module. - * @module model/KmipDescribeServer - * @version 3.3.16 + * The RotatedSecretCreateMysql model module. + * @module model/RotatedSecretCreateMysql + * @version 3.6.3 */ -var KmipDescribeServer = /*#__PURE__*/function () { +var RotatedSecretCreateMysql = /*#__PURE__*/function () { /** - * Constructs a new KmipDescribeServer. - * @alias module:model/KmipDescribeServer + * Constructs a new RotatedSecretCreateMysql. + * @alias module:model/RotatedSecretCreateMysql + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipDescribeServer() { - _classCallCheck(this, KmipDescribeServer); + function RotatedSecretCreateMysql(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateMysql); - KmipDescribeServer.initialize(this); + RotatedSecretCreateMysql.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -89325,149 +164401,121 @@ var KmipDescribeServer = /*#__PURE__*/function () { */ - _createClass(KmipDescribeServer, null, [{ + _createClass(RotatedSecretCreateMysql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipDescribeServer from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateMysql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDescribeServer} obj Optional instance to populate. - * @return {module:model/KmipDescribeServer} The populated KmipDescribeServer instance. + * @param {module:model/RotatedSecretCreateMysql} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateMysql} The populated RotatedSecretCreateMysql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipDescribeServer(); + obj = obj || new RotatedSecretCreateMysql(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - - return obj; - } - }]); - - return KmipDescribeServer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -KmipDescribeServer.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipDescribeServer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipDescribeServer.prototype['uid-token'] = undefined; -var _default = KmipDescribeServer; -exports["default"] = _default; -/***/ }), + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/***/ 82750: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -"use strict"; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -/** - * The KmipDescribeServerOutput model module. - * @module model/KmipDescribeServerOutput - * @version 3.3.16 - */ -var KmipDescribeServerOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipDescribeServerOutput. - * @alias module:model/KmipDescribeServerOutput - */ - function KmipDescribeServerOutput() { - _classCallCheck(this, KmipDescribeServerOutput); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - KmipDescribeServerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - _createClass(KmipDescribeServerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipDescribeServerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDescribeServerOutput} obj Optional instance to populate. - * @return {module:model/KmipDescribeServerOutput} The populated KmipDescribeServerOutput instance. - */ + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipDescribeServerOutput(); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('ca_cert')) { - obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('certificate_issue_date')) { - obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('certificate_ttl_in_seconds')) { - obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -89475,149 +164523,163 @@ var KmipDescribeServerOutput = /*#__PURE__*/function () { } }]); - return KmipDescribeServerOutput; + return RotatedSecretCreateMysql; }(); /** - * @member {Boolean} active + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KmipDescribeServerOutput.prototype['active'] = undefined; +RotatedSecretCreateMysql.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {Array.} ca_cert + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KmipDescribeServerOutput.prototype['ca_cert'] = undefined; +RotatedSecretCreateMysql.prototype['auto-rotate'] = undefined; /** - * @member {Date} certificate_issue_date + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -KmipDescribeServerOutput.prototype['certificate_issue_date'] = undefined; +RotatedSecretCreateMysql.prototype['delete_protection'] = undefined; /** - * @member {Number} certificate_ttl_in_seconds + * Description of the object + * @member {String} description */ -KmipDescribeServerOutput.prototype['certificate_ttl_in_seconds'] = undefined; +RotatedSecretCreateMysql.prototype['description'] = undefined; /** - * @member {String} hostname + * Set output format to JSON + * @member {Boolean} json + * @default false */ -KmipDescribeServerOutput.prototype['hostname'] = undefined; +RotatedSecretCreateMysql.prototype['json'] = false; /** - * @member {String} root + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -KmipDescribeServerOutput.prototype['root'] = undefined; -var _default = KmipDescribeServerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 58538: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretCreateMysql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretCreateMysql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretCreateMysql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretCreateMysql.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ +RotatedSecretCreateMysql.prototype['rotate-after-disconnect'] = 'false'; /** - * The KmipListClients model module. - * @module model/KmipListClients - * @version 3.3.16 + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password */ -var KmipListClients = /*#__PURE__*/function () { - /** - * Constructs a new KmipListClients. - * @alias module:model/KmipListClients - */ - function KmipListClients() { - _classCallCheck(this, KmipListClients); - KmipListClients.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretCreateMysql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ +RotatedSecretCreateMysql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - _createClass(KmipListClients, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipListClients from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipListClients} obj Optional instance to populate. - * @return {module:model/KmipListClients} The populated KmipListClients instance. - */ +RotatedSecretCreateMysql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipListClients(); +RotatedSecretCreateMysql.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +RotatedSecretCreateMysql.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +RotatedSecretCreateMysql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } +RotatedSecretCreateMysql.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - return obj; - } - }]); +RotatedSecretCreateMysql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - return KmipListClients; -}(); +RotatedSecretCreateMysql.prototype['secure-access-host'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web * @default false */ +RotatedSecretCreateMysql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -KmipListClients.prototype['json'] = false; +RotatedSecretCreateMysql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateMysql.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipListClients.prototype['token'] = undefined; +RotatedSecretCreateMysql.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipListClients.prototype['uid-token'] = undefined; -var _default = KmipListClients; +RotatedSecretCreateMysql.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateMysql; exports["default"] = _default; /***/ }), -/***/ 30116: +/***/ 44268: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -89628,7 +164690,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -89639,21 +164701,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipMoveServer model module. - * @module model/KmipMoveServer - * @version 3.3.16 + * The RotatedSecretCreateOracledb model module. + * @module model/RotatedSecretCreateOracledb + * @version 3.6.3 */ -var KmipMoveServer = /*#__PURE__*/function () { +var RotatedSecretCreateOracledb = /*#__PURE__*/function () { /** - * Constructs a new KmipMoveServer. - * kmipMoveServer is a command that Moves the root location of the kmip server and all associated items to a new root location - * @alias module:model/KmipMoveServer - * @param newRoot {String} New root for the kmip server + * Constructs a new RotatedSecretCreateOracledb. + * @alias module:model/RotatedSecretCreateOracledb + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipMoveServer(newRoot) { - _classCallCheck(this, KmipMoveServer); + function RotatedSecretCreateOracledb(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateOracledb); - KmipMoveServer.initialize(this, newRoot); + RotatedSecretCreateOracledb.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -89662,31 +164725,109 @@ var KmipMoveServer = /*#__PURE__*/function () { */ - _createClass(KmipMoveServer, null, [{ + _createClass(RotatedSecretCreateOracledb, null, [{ key: "initialize", - value: function initialize(obj, newRoot) { - obj['new-root'] = newRoot; + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Constructs a KmipMoveServer from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateOracledb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipMoveServer} obj Optional instance to populate. - * @return {module:model/KmipMoveServer} The populated KmipMoveServer instance. + * @param {module:model/RotatedSecretCreateOracledb} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateOracledb} The populated RotatedSecretCreateOracledb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipMoveServer(); + obj = obj || new RotatedSecretCreateOracledb(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('new-root')) { - obj['new-root'] = _ApiClient["default"].convertToType(data['new-root'], 'String'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -89702,40 +164843,157 @@ var KmipMoveServer = /*#__PURE__*/function () { } }]); - return KmipMoveServer; + return RotatedSecretCreateOracledb; }(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateOracledb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateOracledb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateOracledb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateOracledb.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +RotatedSecretCreateOracledb.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -KmipMoveServer.prototype['json'] = false; +RotatedSecretCreateOracledb.prototype['key'] = undefined; /** - * New root for the kmip server - * @member {String} new-root + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -KmipMoveServer.prototype['new-root'] = undefined; +RotatedSecretCreateOracledb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateOracledb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateOracledb.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateOracledb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateOracledb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateOracledb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateOracledb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateOracledb.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateOracledb.prototype['rotator-type'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +RotatedSecretCreateOracledb.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateOracledb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateOracledb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateOracledb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateOracledb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateOracledb.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipMoveServer.prototype['token'] = undefined; +RotatedSecretCreateOracledb.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipMoveServer.prototype['uid-token'] = undefined; -var _default = KmipMoveServer; +RotatedSecretCreateOracledb.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateOracledb; exports["default"] = _default; /***/ }), -/***/ 3564: +/***/ 91489: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -89746,7 +165004,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -89757,19 +165015,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipMoveServerOutput model module. - * @module model/KmipMoveServerOutput - * @version 3.3.16 + * The RotatedSecretCreateOutput model module. + * @module model/RotatedSecretCreateOutput + * @version 3.6.3 */ -var KmipMoveServerOutput = /*#__PURE__*/function () { +var RotatedSecretCreateOutput = /*#__PURE__*/function () { /** - * Constructs a new KmipMoveServerOutput. - * @alias module:model/KmipMoveServerOutput + * Constructs a new RotatedSecretCreateOutput. + * @alias module:model/RotatedSecretCreateOutput */ - function KmipMoveServerOutput() { - _classCallCheck(this, KmipMoveServerOutput); + function RotatedSecretCreateOutput() { + _classCallCheck(this, RotatedSecretCreateOutput); - KmipMoveServerOutput.initialize(this); + RotatedSecretCreateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -89778,29 +165036,25 @@ var KmipMoveServerOutput = /*#__PURE__*/function () { */ - _createClass(KmipMoveServerOutput, null, [{ + _createClass(RotatedSecretCreateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a KmipMoveServerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipMoveServerOutput} obj Optional instance to populate. - * @return {module:model/KmipMoveServerOutput} The populated KmipMoveServerOutput instance. + * @param {module:model/RotatedSecretCreateOutput} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateOutput} The populated RotatedSecretCreateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipMoveServerOutput(); - - if (data.hasOwnProperty('new_root')) { - obj['new_root'] = _ApiClient["default"].convertToType(data['new_root'], 'String'); - } + obj = obj || new RotatedSecretCreateOutput(); - if (data.hasOwnProperty('old_root')) { - obj['old_root'] = _ApiClient["default"].convertToType(data['old_root'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -89808,25 +165062,20 @@ var KmipMoveServerOutput = /*#__PURE__*/function () { } }]); - return KmipMoveServerOutput; + return RotatedSecretCreateOutput; }(); /** - * @member {String} new_root + * @member {String} name */ -KmipMoveServerOutput.prototype['new_root'] = undefined; -/** - * @member {String} old_root - */ - -KmipMoveServerOutput.prototype['old_root'] = undefined; -var _default = KmipMoveServerOutput; +RotatedSecretCreateOutput.prototype['name'] = undefined; +var _default = RotatedSecretCreateOutput; exports["default"] = _default; /***/ }), -/***/ 36796: +/***/ 70606: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -89837,7 +165086,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -89848,19 +165097,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipRenewClientCertificate model module. - * @module model/KmipRenewClientCertificate - * @version 3.3.16 + * The RotatedSecretCreatePostgresql model module. + * @module model/RotatedSecretCreatePostgresql + * @version 3.6.3 */ -var KmipRenewClientCertificate = /*#__PURE__*/function () { +var RotatedSecretCreatePostgresql = /*#__PURE__*/function () { /** - * Constructs a new KmipRenewClientCertificate. - * @alias module:model/KmipRenewClientCertificate + * Constructs a new RotatedSecretCreatePostgresql. + * @alias module:model/RotatedSecretCreatePostgresql + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipRenewClientCertificate() { - _classCallCheck(this, KmipRenewClientCertificate); + function RotatedSecretCreatePostgresql(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreatePostgresql); - KmipRenewClientCertificate.initialize(this); + RotatedSecretCreatePostgresql.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -89869,35 +165121,119 @@ var KmipRenewClientCertificate = /*#__PURE__*/function () { */ - _createClass(KmipRenewClientCertificate, null, [{ + _createClass(RotatedSecretCreatePostgresql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipRenewClientCertificate from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreatePostgresql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewClientCertificate} obj Optional instance to populate. - * @return {module:model/KmipRenewClientCertificate} The populated KmipRenewClientCertificate instance. + * @param {module:model/RotatedSecretCreatePostgresql} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreatePostgresql} The populated RotatedSecretCreatePostgresql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipRenewClientCertificate(); + obj = obj || new RotatedSecretCreatePostgresql(); - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -89911,144 +165247,169 @@ var KmipRenewClientCertificate = /*#__PURE__*/function () { } }]); - return KmipRenewClientCertificate; + return RotatedSecretCreatePostgresql; }(); /** - * @member {String} client-id + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KmipRenewClientCertificate.prototype['client-id'] = undefined; +RotatedSecretCreatePostgresql.prototype['authentication-credentials'] = 'use-user-creds'; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KmipRenewClientCertificate.prototype['json'] = false; +RotatedSecretCreatePostgresql.prototype['auto-rotate'] = undefined; /** - * @member {String} name + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -KmipRenewClientCertificate.prototype['name'] = undefined; +RotatedSecretCreatePostgresql.prototype['delete_protection'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Description of the object + * @member {String} description */ -KmipRenewClientCertificate.prototype['token'] = undefined; +RotatedSecretCreatePostgresql.prototype['description'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Set output format to JSON + * @member {Boolean} json + * @default false */ -KmipRenewClientCertificate.prototype['uid-token'] = undefined; -var _default = KmipRenewClientCertificate; -exports["default"] = _default; - -/***/ }), - -/***/ 23826: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - +RotatedSecretCreatePostgresql.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +RotatedSecretCreatePostgresql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +RotatedSecretCreatePostgresql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretCreatePostgresql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretCreatePostgresql.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretCreatePostgresql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretCreatePostgresql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ +RotatedSecretCreatePostgresql.prototype['rotated-username'] = undefined; /** - * The KmipRenewClientCertificateOutput model module. - * @module model/KmipRenewClientCertificateOutput - * @version 3.3.16 + * The Hour of the rotation in UTC + * @member {Number} rotation-hour */ -var KmipRenewClientCertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipRenewClientCertificateOutput. - * @alias module:model/KmipRenewClientCertificateOutput - */ - function KmipRenewClientCertificateOutput() { - _classCallCheck(this, KmipRenewClientCertificateOutput); - KmipRenewClientCertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretCreatePostgresql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ +RotatedSecretCreatePostgresql.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - _createClass(KmipRenewClientCertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipRenewClientCertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewClientCertificateOutput} obj Optional instance to populate. - * @return {module:model/KmipRenewClientCertificateOutput} The populated KmipRenewClientCertificateOutput instance. - */ +RotatedSecretCreatePostgresql.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipRenewClientCertificateOutput(); +RotatedSecretCreatePostgresql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } +RotatedSecretCreatePostgresql.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } +RotatedSecretCreatePostgresql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - } +RotatedSecretCreatePostgresql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - return obj; - } - }]); +RotatedSecretCreatePostgresql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - return KmipRenewClientCertificateOutput; -}(); +RotatedSecretCreatePostgresql.prototype['secure-access-web'] = false; /** - * @member {String} certificate + * Add tags attached to this object + * @member {Array.} tags */ +RotatedSecretCreatePostgresql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -KmipRenewClientCertificateOutput.prototype['certificate'] = undefined; +RotatedSecretCreatePostgresql.prototype['target-name'] = undefined; /** - * @member {String} id + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -KmipRenewClientCertificateOutput.prototype['id'] = undefined; +RotatedSecretCreatePostgresql.prototype['token'] = undefined; /** - * @member {String} key + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -KmipRenewClientCertificateOutput.prototype['key'] = undefined; -var _default = KmipRenewClientCertificateOutput; +RotatedSecretCreatePostgresql.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreatePostgresql; exports["default"] = _default; /***/ }), -/***/ 55419: +/***/ 87721: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -90059,7 +165420,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -90070,19 +165431,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipRenewServerCertificate model module. - * @module model/KmipRenewServerCertificate - * @version 3.3.16 + * The RotatedSecretCreateRedis model module. + * @module model/RotatedSecretCreateRedis + * @version 3.6.3 */ -var KmipRenewServerCertificate = /*#__PURE__*/function () { +var RotatedSecretCreateRedis = /*#__PURE__*/function () { /** - * Constructs a new KmipRenewServerCertificate. - * @alias module:model/KmipRenewServerCertificate + * Constructs a new RotatedSecretCreateRedis. + * @alias module:model/RotatedSecretCreateRedis + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipRenewServerCertificate() { - _classCallCheck(this, KmipRenewServerCertificate); + function RotatedSecretCreateRedis(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateRedis); - KmipRenewServerCertificate.initialize(this); + RotatedSecretCreateRedis.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -90091,27 +165455,91 @@ var KmipRenewServerCertificate = /*#__PURE__*/function () { */ - _createClass(KmipRenewServerCertificate, null, [{ + _createClass(RotatedSecretCreateRedis, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipRenewServerCertificate from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateRedis from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewServerCertificate} obj Optional instance to populate. - * @return {module:model/KmipRenewServerCertificate} The populated KmipRenewServerCertificate instance. + * @param {module:model/RotatedSecretCreateRedis} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateRedis} The populated RotatedSecretCreateRedis instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipRenewServerCertificate(); + obj = obj || new RotatedSecretCreateRedis(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -90125,34 +165553,125 @@ var KmipRenewServerCertificate = /*#__PURE__*/function () { } }]); - return KmipRenewServerCertificate; -}(); + return RotatedSecretCreateRedis; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateRedis.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateRedis.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateRedis.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateRedis.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateRedis.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateRedis.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateRedis.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateRedis.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateRedis.prototype['password-length'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateRedis.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateRedis.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateRedis.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateRedis.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateRedis.prototype['rotator-type'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Add tags attached to this object + * @member {Array.} tags */ +RotatedSecretCreateRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ -KmipRenewServerCertificate.prototype['json'] = false; +RotatedSecretCreateRedis.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipRenewServerCertificate.prototype['token'] = undefined; +RotatedSecretCreateRedis.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipRenewServerCertificate.prototype['uid-token'] = undefined; -var _default = KmipRenewServerCertificate; +RotatedSecretCreateRedis.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateRedis; exports["default"] = _default; /***/ }), -/***/ 51379: +/***/ 39101: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -90163,7 +165682,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -90174,19 +165693,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipRenewServerCertificateOutput model module. - * @module model/KmipRenewServerCertificateOutput - * @version 3.3.16 + * The RotatedSecretCreateRedshift model module. + * @module model/RotatedSecretCreateRedshift + * @version 3.6.3 */ -var KmipRenewServerCertificateOutput = /*#__PURE__*/function () { +var RotatedSecretCreateRedshift = /*#__PURE__*/function () { /** - * Constructs a new KmipRenewServerCertificateOutput. - * @alias module:model/KmipRenewServerCertificateOutput + * Constructs a new RotatedSecretCreateRedshift. + * @alias module:model/RotatedSecretCreateRedshift + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipRenewServerCertificateOutput() { - _classCallCheck(this, KmipRenewServerCertificateOutput); + function RotatedSecretCreateRedshift(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateRedshift); - KmipRenewServerCertificateOutput.initialize(this); + RotatedSecretCreateRedshift.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -90195,124 +165717,105 @@ var KmipRenewServerCertificateOutput = /*#__PURE__*/function () { */ - _createClass(KmipRenewServerCertificateOutput, null, [{ + _createClass(RotatedSecretCreateRedshift, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipRenewServerCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateRedshift from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewServerCertificateOutput} obj Optional instance to populate. - * @return {module:model/KmipRenewServerCertificateOutput} The populated KmipRenewServerCertificateOutput instance. + * @param {module:model/RotatedSecretCreateRedshift} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateRedshift} The populated RotatedSecretCreateRedshift instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipRenewServerCertificateOutput(); + obj = obj || new RotatedSecretCreateRedshift(); - if (data.hasOwnProperty('ca_cert')) { - obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - - return obj; - } - }]); - - return KmipRenewServerCertificateOutput; -}(); -/** - * @member {String} ca_cert - */ - - -KmipRenewServerCertificateOutput.prototype['ca_cert'] = undefined; -var _default = KmipRenewServerCertificateOutput; -exports["default"] = _default; -/***/ }), + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -/***/ 51976: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -/** - * The KmipServerSetup model module. - * @module model/KmipServerSetup - * @version 3.3.16 - */ -var KmipServerSetup = /*#__PURE__*/function () { - /** - * Constructs a new KmipServerSetup. - * @alias module:model/KmipServerSetup - * @param hostname {String} Hostname - * @param root {String} Root path of KMIP Resources - */ - function KmipServerSetup(hostname, root) { - _classCallCheck(this, KmipServerSetup); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - KmipServerSetup.initialize(this, hostname, root); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - _createClass(KmipServerSetup, null, [{ - key: "initialize", - value: function initialize(obj, hostname, root) { - obj['hostname'] = hostname; - obj['root'] = root; - } - /** - * Constructs a KmipServerSetup from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipServerSetup} obj Optional instance to populate. - * @return {module:model/KmipServerSetup} The populated KmipServerSetup instance. - */ + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipServerSetup(); + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -90328,53 +165831,150 @@ var KmipServerSetup = /*#__PURE__*/function () { } }]); - return KmipServerSetup; + return RotatedSecretCreateRedshift; }(); /** - * Server certificate TTL in days - * @member {Number} certificate-ttl - * @default 90 + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KmipServerSetup.prototype['certificate-ttl'] = 90; +RotatedSecretCreateRedshift.prototype['authentication-credentials'] = 'use-user-creds'; /** - * Hostname - * @member {String} hostname + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KmipServerSetup.prototype['hostname'] = undefined; +RotatedSecretCreateRedshift.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateRedshift.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateRedshift.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -KmipServerSetup.prototype['json'] = false; +RotatedSecretCreateRedshift.prototype['json'] = false; /** - * Root path of KMIP Resources - * @member {String} root + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -KmipServerSetup.prototype['root'] = undefined; +RotatedSecretCreateRedshift.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateRedshift.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateRedshift.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateRedshift.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateRedshift.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateRedshift.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateRedshift.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateRedshift.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateRedshift.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateRedshift.prototype['rotator-type'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +RotatedSecretCreateRedshift.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateRedshift.prototype['secure-access-host'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateRedshift.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipServerSetup.prototype['token'] = undefined; +RotatedSecretCreateRedshift.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipServerSetup.prototype['uid-token'] = undefined; -var _default = KmipServerSetup; +RotatedSecretCreateRedshift.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateRedshift; exports["default"] = _default; /***/ }), -/***/ 42299: +/***/ 66890: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -90385,7 +165985,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -90396,21 +165996,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipSetServerState model module. - * @module model/KmipSetServerState - * @version 3.3.16 + * The RotatedSecretCreateSnowflake model module. + * @module model/RotatedSecretCreateSnowflake + * @version 3.6.3 */ -var KmipSetServerState = /*#__PURE__*/function () { +var RotatedSecretCreateSnowflake = /*#__PURE__*/function () { /** - * Constructs a new KmipSetServerState. - * kmipSetServerState is a command that sets the environment state to active/inactive. - * @alias module:model/KmipSetServerState - * @param state {String} + * Constructs a new RotatedSecretCreateSnowflake. + * @alias module:model/RotatedSecretCreateSnowflake + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipSetServerState(state) { - _classCallCheck(this, KmipSetServerState); + function RotatedSecretCreateSnowflake(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateSnowflake); - KmipSetServerState.initialize(this, state); + RotatedSecretCreateSnowflake.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -90419,31 +166020,89 @@ var KmipSetServerState = /*#__PURE__*/function () { */ - _createClass(KmipSetServerState, null, [{ + _createClass(RotatedSecretCreateSnowflake, null, [{ key: "initialize", - value: function initialize(obj, state) { - obj['state'] = state; + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Constructs a KmipSetServerState from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateSnowflake from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipSetServerState} obj Optional instance to populate. - * @return {module:model/KmipSetServerState} The populated KmipSetServerState instance. + * @param {module:model/RotatedSecretCreateSnowflake} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateSnowflake} The populated RotatedSecretCreateSnowflake instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipSetServerState(); + obj = obj || new RotatedSecretCreateSnowflake(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('state')) { - obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -90459,39 +166118,125 @@ var KmipSetServerState = /*#__PURE__*/function () { } }]); - return KmipSetServerState; + return RotatedSecretCreateSnowflake; }(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateSnowflake.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateSnowflake.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateSnowflake.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateSnowflake.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +RotatedSecretCreateSnowflake.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -KmipSetServerState.prototype['json'] = false; +RotatedSecretCreateSnowflake.prototype['key'] = undefined; /** - * @member {String} state + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -KmipSetServerState.prototype['state'] = undefined; +RotatedSecretCreateSnowflake.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateSnowflake.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateSnowflake.prototype['password-length'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateSnowflake.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateSnowflake.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateSnowflake.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateSnowflake.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateSnowflake.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateSnowflake.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateSnowflake.prototype['target-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -KmipSetServerState.prototype['token'] = undefined; +RotatedSecretCreateSnowflake.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -KmipSetServerState.prototype['uid-token'] = undefined; -var _default = KmipSetServerState; +RotatedSecretCreateSnowflake.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateSnowflake; exports["default"] = _default; /***/ }), -/***/ 64209: +/***/ 79888: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -90502,7 +166247,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -90513,19 +166258,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The KmipSetServerStateOutput model module. - * @module model/KmipSetServerStateOutput - * @version 3.3.16 + * The RotatedSecretCreateSsh model module. + * @module model/RotatedSecretCreateSsh + * @version 3.6.3 */ -var KmipSetServerStateOutput = /*#__PURE__*/function () { +var RotatedSecretCreateSsh = /*#__PURE__*/function () { /** - * Constructs a new KmipSetServerStateOutput. - * @alias module:model/KmipSetServerStateOutput + * Constructs a new RotatedSecretCreateSsh. + * @alias module:model/RotatedSecretCreateSsh + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function KmipSetServerStateOutput() { - _classCallCheck(this, KmipSetServerStateOutput); + function RotatedSecretCreateSsh(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateSsh); - KmipSetServerStateOutput.initialize(this); + RotatedSecretCreateSsh.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -90534,131 +166282,137 @@ var KmipSetServerStateOutput = /*#__PURE__*/function () { */ - _createClass(KmipSetServerStateOutput, null, [{ + _createClass(RotatedSecretCreateSsh, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a KmipSetServerStateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateSsh from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipSetServerStateOutput} obj Optional instance to populate. - * @return {module:model/KmipSetServerStateOutput} The populated KmipSetServerStateOutput instance. + * @param {module:model/RotatedSecretCreateSsh} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateSsh} The populated RotatedSecretCreateSsh instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new KmipSetServerStateOutput(); + obj = obj || new RotatedSecretCreateSsh(); - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - return obj; - } - }]); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - return KmipSetServerStateOutput; -}(); -/** - * @member {Boolean} is_active - */ + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -KmipSetServerStateOutput.prototype['is_active'] = undefined; -var _default = KmipSetServerStateOutput; -exports["default"] = _default; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/***/ 24697: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); + } -/** - * The KubernetesAccessRules model module. - * @module model/KubernetesAccessRules - * @version 3.3.16 - */ -var KubernetesAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new KubernetesAccessRules. - * @alias module:model/KubernetesAccessRules - */ - function KubernetesAccessRules() { - _classCallCheck(this, KubernetesAccessRules); + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } - KubernetesAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } - _createClass(KubernetesAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KubernetesAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KubernetesAccessRules} obj Optional instance to populate. - * @return {module:model/KubernetesAccessRules} The populated KubernetesAccessRules instance. - */ + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KubernetesAccessRules(); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); } - if (data.hasOwnProperty('bound_namespaces')) { - obj['bound_namespaces'] = _ApiClient["default"].convertToType(data['bound_namespaces'], ['String']); + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); } - if (data.hasOwnProperty('bound_pod_names')) { - obj['bound_pod_names'] = _ApiClient["default"].convertToType(data['bound_pod_names'], ['String']); + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); } - if (data.hasOwnProperty('bound_service_account_names')) { - obj['bound_service_account_names'] = _ApiClient["default"].convertToType(data['bound_service_account_names'], ['String']); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - if (data.hasOwnProperty('gen_key_pair')) { - obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (data.hasOwnProperty('pub_key')) { - obj['pub_key'] = _ApiClient["default"].convertToType(data['pub_key'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -90666,168 +166420,187 @@ var KubernetesAccessRules = /*#__PURE__*/function () { } }]); - return KubernetesAccessRules; + return RotatedSecretCreateSsh; }(); /** - * @member {String} alg + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -KubernetesAccessRules.prototype['alg'] = undefined; +RotatedSecretCreateSsh.prototype['authentication-credentials'] = 'use-user-creds'; /** - * Audience is an optional Kubernetes jwt claim to verify - * @member {String} audience + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -KubernetesAccessRules.prototype['audience'] = undefined; +RotatedSecretCreateSsh.prototype['auto-rotate'] = undefined; /** - * A list of namespaces that the authentication is restricted to. - * @member {Array.} bound_namespaces + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -KubernetesAccessRules.prototype['bound_namespaces'] = undefined; +RotatedSecretCreateSsh.prototype['delete_protection'] = undefined; /** - * A list of pods names that the authentication is restricted to. - * @member {Array.} bound_pod_names + * Description of the object + * @member {String} description */ -KubernetesAccessRules.prototype['bound_pod_names'] = undefined; +RotatedSecretCreateSsh.prototype['description'] = undefined; /** - * A list of service account names that the authentication is restricted to. - * @member {Array.} bound_service_account_names + * Set output format to JSON + * @member {Boolean} json + * @default false */ -KubernetesAccessRules.prototype['bound_service_account_names'] = undefined; +RotatedSecretCreateSsh.prototype['json'] = false; /** - * Generate public/private key (the private key is required for the K8S Auth Config in the Akeyless Gateway) - * @member {String} gen_key_pair + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -KubernetesAccessRules.prototype['gen_key_pair'] = undefined; +RotatedSecretCreateSsh.prototype['key'] = undefined; /** - * The public key value of the Kubernetes auth method configuration in the Akeyless Gateway. - * @member {String} pub_key + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -KubernetesAccessRules.prototype['pub_key'] = undefined; -var _default = KubernetesAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 29438: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +RotatedSecretCreateSsh.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +RotatedSecretCreateSsh.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretCreateSsh.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretCreateSsh.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretCreateSsh.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretCreateSsh.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ +RotatedSecretCreateSsh.prototype['rotation-hour'] = undefined; /** - * The LDAPAccessRules model module. - * @module model/LDAPAccessRules - * @version 3.3.16 + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval */ -var LDAPAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new LDAPAccessRules. - * @alias module:model/LDAPAccessRules - */ - function LDAPAccessRules() { - _classCallCheck(this, LDAPAccessRules); - LDAPAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretCreateSsh.prototype['rotation-interval'] = undefined; +/** + * Custom rotation command + * @member {String} rotator-custom-cmd + */ +RotatedSecretCreateSsh.prototype['rotator-custom-cmd'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - _createClass(LDAPAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LDAPAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LDAPAccessRules} obj Optional instance to populate. - * @return {module:model/LDAPAccessRules} The populated LDAPAccessRules instance. - */ +RotatedSecretCreateSsh.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LDAPAccessRules(); +RotatedSecretCreateSsh.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } +RotatedSecretCreateSsh.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (data.hasOwnProperty('gen_key_pair')) { - obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); - } +RotatedSecretCreateSsh.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } +RotatedSecretCreateSsh.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); - } - } +RotatedSecretCreateSsh.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ - return obj; - } - }]); +RotatedSecretCreateSsh.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - return LDAPAccessRules; -}(); +RotatedSecretCreateSsh.prototype['secure-access-rdp-user'] = undefined; /** - * @member {String} alg + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user */ +RotatedSecretCreateSsh.prototype['secure-access-ssh-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -LDAPAccessRules.prototype['alg'] = undefined; +RotatedSecretCreateSsh.prototype['tags'] = undefined; /** - * Generate public/private key (the private key is required for the LDAP Auth Config in the Akeyless Gateway) - * @member {String} gen_key_pair + * Target name + * @member {String} target-name */ -LDAPAccessRules.prototype['gen_key_pair'] = undefined; +RotatedSecretCreateSsh.prototype['target-name'] = undefined; /** - * The public key value of LDAP. - * @member {String} key + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -LDAPAccessRules.prototype['key'] = undefined; +RotatedSecretCreateSsh.prototype['token'] = undefined; /** - * A unique identifier to distinguish different users - * @member {String} unique_identifier + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -LDAPAccessRules.prototype['unique_identifier'] = undefined; -var _default = LDAPAccessRules; +RotatedSecretCreateSsh.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateSsh; exports["default"] = _default; /***/ }), -/***/ 46453: +/***/ 40983: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -90838,11 +166611,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(33903)); - -var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(30120)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -90853,19 +166622,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LastConfigChange model module. - * @module model/LastConfigChange - * @version 3.3.16 + * The RotatedSecretCreateWindows model module. + * @module model/RotatedSecretCreateWindows + * @version 3.6.3 */ -var LastConfigChange = /*#__PURE__*/function () { +var RotatedSecretCreateWindows = /*#__PURE__*/function () { /** - * Constructs a new LastConfigChange. - * @alias module:model/LastConfigChange + * Constructs a new RotatedSecretCreateWindows. + * @alias module:model/RotatedSecretCreateWindows + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name */ - function LastConfigChange() { - _classCallCheck(this, LastConfigChange); + function RotatedSecretCreateWindows(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateWindows); - LastConfigChange.initialize(this); + RotatedSecretCreateWindows.initialize(this, name, rotatorType, targetName); } /** * Initializes the fields of this object. @@ -90874,29 +166646,125 @@ var LastConfigChange = /*#__PURE__*/function () { */ - _createClass(LastConfigChange, null, [{ + _createClass(RotatedSecretCreateWindows, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * Constructs a LastConfigChange from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretCreateWindows from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LastConfigChange} obj Optional instance to populate. - * @return {module:model/LastConfigChange} The populated LastConfigChange instance. + * @param {module:model/RotatedSecretCreateWindows} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateWindows} The populated RotatedSecretCreateWindows instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LastConfigChange(); + obj = obj || new RotatedSecretCreateWindows(); - if (data.hasOwnProperty('last_k8s_auths_change')) { - obj['last_k8s_auths_change'] = _K8SAuthsConfigLastChange["default"].constructFromObject(data['last_k8s_auths_change']); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('last_migrations_change')) { - obj['last_migrations_change'] = _MigrationsConfigLastChange["default"].constructFromObject(data['last_migrations_change']); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -90904,128 +166772,169 @@ var LastConfigChange = /*#__PURE__*/function () { } }]); - return LastConfigChange; + return RotatedSecretCreateWindows; }(); /** - * @member {module:model/K8SAuthsConfigLastChange} last_k8s_auths_change + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -LastConfigChange.prototype['last_k8s_auths_change'] = undefined; +RotatedSecretCreateWindows.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {module:model/MigrationsConfigLastChange} last_migrations_change + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -LastConfigChange.prototype['last_migrations_change'] = undefined; -var _default = LastConfigChange; -exports["default"] = _default; - -/***/ }), - -/***/ 78985: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; +RotatedSecretCreateWindows.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ +RotatedSecretCreateWindows.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +RotatedSecretCreateWindows.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +RotatedSecretCreateWindows.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(59937)); +RotatedSecretCreateWindows.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretCreateWindows.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretCreateWindows.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretCreateWindows.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretCreateWindows.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ +RotatedSecretCreateWindows.prototype['rotated-password'] = undefined; /** - * The LastStatusInfo model module. - * @module model/LastStatusInfo - * @version 3.3.16 + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username */ -var LastStatusInfo = /*#__PURE__*/function () { - /** - * Constructs a new LastStatusInfo. - * @alias module:model/LastStatusInfo - */ - function LastStatusInfo() { - _classCallCheck(this, LastStatusInfo); - LastStatusInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretCreateWindows.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ +RotatedSecretCreateWindows.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - _createClass(LastStatusInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LastStatusInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LastStatusInfo} obj Optional instance to populate. - * @return {module:model/LastStatusInfo} The populated LastStatusInfo instance. - */ +RotatedSecretCreateWindows.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LastStatusInfo(); +RotatedSecretCreateWindows.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ - if (data.hasOwnProperty('migrations_status')) { - obj['migrations_status'] = _MigrationStatus["default"].constructFromObject(data['migrations_status']); - } +RotatedSecretCreateWindows.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ - if (data.hasOwnProperty('producers_errors')) { - obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); - } +RotatedSecretCreateWindows.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (data.hasOwnProperty('was_migrations_copied_to_new_table')) { - obj['was_migrations_copied_to_new_table'] = _ApiClient["default"].convertToType(data['was_migrations_copied_to_new_table'], 'Boolean'); - } - } +RotatedSecretCreateWindows.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - return obj; - } - }]); +RotatedSecretCreateWindows.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ - return LastStatusInfo; -}(); +RotatedSecretCreateWindows.prototype['secure-access-rdp-domain'] = undefined; /** - * @member {module:model/MigrationStatus} migrations_status + * Override the RDP Domain username + * @member {String} secure-access-rdp-user */ +RotatedSecretCreateWindows.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -LastStatusInfo.prototype['migrations_status'] = undefined; +RotatedSecretCreateWindows.prototype['tags'] = undefined; /** - * @member {Object} producers_errors + * Target name + * @member {String} target-name */ -LastStatusInfo.prototype['producers_errors'] = undefined; +RotatedSecretCreateWindows.prototype['target-name'] = undefined; /** - * flag to indicate migrationStatus copied to new table - * @member {Boolean} was_migrations_copied_to_new_table + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -LastStatusInfo.prototype['was_migrations_copied_to_new_table'] = undefined; -var _default = LastStatusInfo; +RotatedSecretCreateWindows.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateWindows.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateWindows; exports["default"] = _default; /***/ }), -/***/ 36492: +/***/ 30316: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91036,7 +166945,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _WindowsService = _interopRequireDefault(__nccwpck_require__(38985)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -91047,19 +166958,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LdapConfigPart model module. - * @module model/LdapConfigPart - * @version 3.3.16 + * The RotatedSecretDetailsInfo model module. + * @module model/RotatedSecretDetailsInfo + * @version 3.6.3 */ -var LdapConfigPart = /*#__PURE__*/function () { +var RotatedSecretDetailsInfo = /*#__PURE__*/function () { /** - * Constructs a new LdapConfigPart. - * @alias module:model/LdapConfigPart + * Constructs a new RotatedSecretDetailsInfo. + * RotatedSecretDetailsInfo The rotated secret rotator info + * @alias module:model/RotatedSecretDetailsInfo */ - function LdapConfigPart() { - _classCallCheck(this, LdapConfigPart); + function RotatedSecretDetailsInfo() { + _classCallCheck(this, RotatedSecretDetailsInfo); - LdapConfigPart.initialize(this); + RotatedSecretDetailsInfo.initialize(this); } /** * Initializes the fields of this object. @@ -91068,77 +166980,77 @@ var LdapConfigPart = /*#__PURE__*/function () { */ - _createClass(LdapConfigPart, null, [{ + _createClass(RotatedSecretDetailsInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a LdapConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LdapConfigPart} obj Optional instance to populate. - * @return {module:model/LdapConfigPart} The populated LdapConfigPart instance. + * @param {module:model/RotatedSecretDetailsInfo} obj Optional instance to populate. + * @return {module:model/RotatedSecretDetailsInfo} The populated RotatedSecretDetailsInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LdapConfigPart(); + obj = obj || new RotatedSecretDetailsInfo(); - if (data.hasOwnProperty('ldap_access_id')) { - obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); + if (data.hasOwnProperty('delete_previous_version_in_days')) { + obj['delete_previous_version_in_days'] = _ApiClient["default"].convertToType(data['delete_previous_version_in_days'], 'Number'); } - if (data.hasOwnProperty('ldap_anonymous_search')) { - obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); + if (data.hasOwnProperty('grace_rotation')) { + obj['grace_rotation'] = _ApiClient["default"].convertToType(data['grace_rotation'], 'Boolean'); } - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); } - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); + if (data.hasOwnProperty('last_rotation_error')) { + obj['last_rotation_error'] = _ApiClient["default"].convertToType(data['last_rotation_error'], 'String'); } - if (data.hasOwnProperty('ldap_cert')) { - obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); + if (data.hasOwnProperty('max_versions')) { + obj['max_versions'] = _ApiClient["default"].convertToType(data['max_versions'], 'Number'); } - if (data.hasOwnProperty('ldap_enable')) { - obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); + if (data.hasOwnProperty('number_of_versions_to_save')) { + obj['number_of_versions_to_save'] = _ApiClient["default"].convertToType(data['number_of_versions_to_save'], 'Number'); } - if (data.hasOwnProperty('ldap_group_attr')) { - obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); + if (data.hasOwnProperty('rotation_hour')) { + obj['rotation_hour'] = _ApiClient["default"].convertToType(data['rotation_hour'], 'Number'); } - if (data.hasOwnProperty('ldap_group_dn')) { - obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); + if (data.hasOwnProperty('rotation_interval_min')) { + obj['rotation_interval_min'] = _ApiClient["default"].convertToType(data['rotation_interval_min'], 'Boolean'); } - if (data.hasOwnProperty('ldap_group_filter')) { - obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); + if (data.hasOwnProperty('rotation_statement')) { + obj['rotation_statement'] = _ApiClient["default"].convertToType(data['rotation_statement'], 'String'); } - if (data.hasOwnProperty('ldap_private_key')) { - obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); + if (data.hasOwnProperty('rotator_creds_type')) { + obj['rotator_creds_type'] = _ApiClient["default"].convertToType(data['rotator_creds_type'], 'String'); } - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + if (data.hasOwnProperty('rotator_status')) { + obj['rotator_status'] = _ApiClient["default"].convertToType(data['rotator_status'], 'String'); } - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + if (data.hasOwnProperty('rotator_type')) { + obj['rotator_type'] = _ApiClient["default"].convertToType(data['rotator_type'], 'String'); } - if (data.hasOwnProperty('ldap_user_attr')) { - obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); + if (data.hasOwnProperty('same_password')) { + obj['same_password'] = _ApiClient["default"].convertToType(data['same_password'], 'Boolean'); } - if (data.hasOwnProperty('ldap_user_dn')) { - obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); + if (data.hasOwnProperty('services_details')) { + obj['services_details'] = _ApiClient["default"].convertToType(data['services_details'], [_WindowsService["default"]]); } } @@ -91146,85 +167058,86 @@ var LdapConfigPart = /*#__PURE__*/function () { } }]); - return LdapConfigPart; + return RotatedSecretDetailsInfo; }(); /** - * @member {String} ldap_access_id + * @member {Number} delete_previous_version_in_days */ -LdapConfigPart.prototype['ldap_access_id'] = undefined; +RotatedSecretDetailsInfo.prototype['delete_previous_version_in_days'] = undefined; /** - * @member {Boolean} ldap_anonymous_search + * @member {Boolean} grace_rotation */ -LdapConfigPart.prototype['ldap_anonymous_search'] = undefined; +RotatedSecretDetailsInfo.prototype['grace_rotation'] = undefined; /** - * @member {String} ldap_bind_dn + * @member {Number} gw_cluster_id */ -LdapConfigPart.prototype['ldap_bind_dn'] = undefined; +RotatedSecretDetailsInfo.prototype['gw_cluster_id'] = undefined; /** - * @member {String} ldap_bind_password + * @member {String} last_rotation_error */ -LdapConfigPart.prototype['ldap_bind_password'] = undefined; +RotatedSecretDetailsInfo.prototype['last_rotation_error'] = undefined; /** - * @member {String} ldap_cert + * @member {Number} max_versions */ -LdapConfigPart.prototype['ldap_cert'] = undefined; +RotatedSecretDetailsInfo.prototype['max_versions'] = undefined; /** - * @member {Boolean} ldap_enable + * @member {Number} number_of_versions_to_save */ -LdapConfigPart.prototype['ldap_enable'] = undefined; +RotatedSecretDetailsInfo.prototype['number_of_versions_to_save'] = undefined; /** - * @member {String} ldap_group_attr + * @member {Number} rotation_hour */ -LdapConfigPart.prototype['ldap_group_attr'] = undefined; +RotatedSecretDetailsInfo.prototype['rotation_hour'] = undefined; /** - * @member {String} ldap_group_dn + * @member {Boolean} rotation_interval_min */ -LdapConfigPart.prototype['ldap_group_dn'] = undefined; +RotatedSecretDetailsInfo.prototype['rotation_interval_min'] = undefined; /** - * @member {String} ldap_group_filter + * @member {String} rotation_statement */ -LdapConfigPart.prototype['ldap_group_filter'] = undefined; +RotatedSecretDetailsInfo.prototype['rotation_statement'] = undefined; /** - * @member {String} ldap_private_key + * @member {String} rotator_creds_type */ -LdapConfigPart.prototype['ldap_private_key'] = undefined; +RotatedSecretDetailsInfo.prototype['rotator_creds_type'] = undefined; /** - * @member {String} ldap_token_expiration + * RotationStatus defines types of rotation Status + * @member {String} rotator_status */ -LdapConfigPart.prototype['ldap_token_expiration'] = undefined; +RotatedSecretDetailsInfo.prototype['rotator_status'] = undefined; /** - * @member {String} ldap_url + * @member {String} rotator_type */ -LdapConfigPart.prototype['ldap_url'] = undefined; +RotatedSecretDetailsInfo.prototype['rotator_type'] = undefined; /** - * @member {String} ldap_user_attr + * @member {Boolean} same_password */ -LdapConfigPart.prototype['ldap_user_attr'] = undefined; +RotatedSecretDetailsInfo.prototype['same_password'] = undefined; /** - * @member {String} ldap_user_dn + * @member {Array.} services_details */ -LdapConfigPart.prototype['ldap_user_dn'] = undefined; -var _default = LdapConfigPart; +RotatedSecretDetailsInfo.prototype['services_details'] = undefined; +var _default = RotatedSecretDetailsInfo; exports["default"] = _default; /***/ }), -/***/ 33671: +/***/ 37381: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91235,7 +167148,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -91246,20 +167159,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LdapTargetDetails model module. - * @module model/LdapTargetDetails - * @version 3.3.16 + * The RotatedSecretGetValue model module. + * @module model/RotatedSecretGetValue + * @version 3.6.3 */ -var LdapTargetDetails = /*#__PURE__*/function () { +var RotatedSecretGetValue = /*#__PURE__*/function () { /** - * Constructs a new LdapTargetDetails. - * LdapTargetDetails - * @alias module:model/LdapTargetDetails + * Constructs a new RotatedSecretGetValue. + * @alias module:model/RotatedSecretGetValue + * @param name {String} Secret name */ - function LdapTargetDetails() { - _classCallCheck(this, LdapTargetDetails); + function RotatedSecretGetValue(name) { + _classCallCheck(this, RotatedSecretGetValue); - LdapTargetDetails.initialize(this); + RotatedSecretGetValue.initialize(this, name); } /** * Initializes the fields of this object. @@ -91268,49 +167181,51 @@ var LdapTargetDetails = /*#__PURE__*/function () { */ - _createClass(LdapTargetDetails, null, [{ + _createClass(RotatedSecretGetValue, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a LdapTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretGetValue from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LdapTargetDetails} obj Optional instance to populate. - * @return {module:model/LdapTargetDetails} The populated LdapTargetDetails instance. + * @param {module:model/RotatedSecretGetValue} obj Optional instance to populate. + * @return {module:model/RotatedSecretGetValue} The populated RotatedSecretGetValue instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LdapTargetDetails(); + obj = obj || new RotatedSecretGetValue(); - if (data.hasOwnProperty('implementation_type')) { - obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('ldap_audience')) { - obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); } - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('ldap_certificate')) { - obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -91318,50 +167233,59 @@ var LdapTargetDetails = /*#__PURE__*/function () { } }]); - return LdapTargetDetails; + return RotatedSecretGetValue; }(); /** - * @member {String} implementation_type + * Get rotated secret value of specific Host (relevant only for Linked Target) + * @member {String} host */ -LdapTargetDetails.prototype['implementation_type'] = undefined; +RotatedSecretGetValue.prototype['host'] = undefined; /** - * @member {String} ldap_audience + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' */ -LdapTargetDetails.prototype['ldap_audience'] = undefined; +RotatedSecretGetValue.prototype['ignore-cache'] = 'false'; /** - * @member {String} ldap_bind_dn + * Set output format to JSON + * @member {Boolean} json + * @default false */ -LdapTargetDetails.prototype['ldap_bind_dn'] = undefined; +RotatedSecretGetValue.prototype['json'] = false; /** - * @member {String} ldap_bind_password + * Secret name + * @member {String} name */ -LdapTargetDetails.prototype['ldap_bind_password'] = undefined; +RotatedSecretGetValue.prototype['name'] = undefined; /** - * @member {String} ldap_certificate + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -LdapTargetDetails.prototype['ldap_certificate'] = undefined; +RotatedSecretGetValue.prototype['token'] = undefined; /** - * @member {String} ldap_token_expiration + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -LdapTargetDetails.prototype['ldap_token_expiration'] = undefined; +RotatedSecretGetValue.prototype['uid-token'] = undefined; /** - * @member {String} ldap_url + * Secret version + * @member {Number} version */ -LdapTargetDetails.prototype['ldap_url'] = undefined; -var _default = LdapTargetDetails; +RotatedSecretGetValue.prototype['version'] = undefined; +var _default = RotatedSecretGetValue; exports["default"] = _default; /***/ }), -/***/ 98339: +/***/ 94472: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91372,7 +167296,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -91383,19 +167307,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LeadershipConfigPart model module. - * @module model/LeadershipConfigPart - * @version 3.3.16 + * The RotatedSecretList model module. + * @module model/RotatedSecretList + * @version 3.6.3 */ -var LeadershipConfigPart = /*#__PURE__*/function () { +var RotatedSecretList = /*#__PURE__*/function () { /** - * Constructs a new LeadershipConfigPart. - * @alias module:model/LeadershipConfigPart + * Constructs a new RotatedSecretList. + * rotatedSecretList is a command that returns a list of rotated secrets + * @alias module:model/RotatedSecretList */ - function LeadershipConfigPart() { - _classCallCheck(this, LeadershipConfigPart); + function RotatedSecretList() { + _classCallCheck(this, RotatedSecretList); - LeadershipConfigPart.initialize(this); + RotatedSecretList.initialize(this); } /** * Initializes the fields of this object. @@ -91404,25 +167329,33 @@ var LeadershipConfigPart = /*#__PURE__*/function () { */ - _createClass(LeadershipConfigPart, null, [{ + _createClass(RotatedSecretList, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a LeadershipConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadershipConfigPart} obj Optional instance to populate. - * @return {module:model/LeadershipConfigPart} The populated LeadershipConfigPart instance. + * @param {module:model/RotatedSecretList} obj Optional instance to populate. + * @return {module:model/RotatedSecretList} The populated RotatedSecretList instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LeadershipConfigPart(); + obj = obj || new RotatedSecretList(); - if (data.hasOwnProperty('open_leadership')) { - obj['open_leadership'] = _ApiClient["default"].convertToType(data['open_leadership'], ['Number']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -91430,20 +167363,34 @@ var LeadershipConfigPart = /*#__PURE__*/function () { } }]); - return LeadershipConfigPart; + return RotatedSecretList; }(); /** - * @member {Array.} open_leadership + * Set output format to JSON + * @member {Boolean} json + * @default false */ -LeadershipConfigPart.prototype['open_leadership'] = undefined; -var _default = LeadershipConfigPart; +RotatedSecretList.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretList.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretList.prototype['uid-token'] = undefined; +var _default = RotatedSecretList; exports["default"] = _default; /***/ }), -/***/ 47160: +/***/ 4617: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91454,7 +167401,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -91465,19 +167412,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LinkedDetails model module. - * @module model/LinkedDetails - * @version 3.3.16 + * The RotatedSecretOutput model module. + * @module model/RotatedSecretOutput + * @version 3.6.3 */ -var LinkedDetails = /*#__PURE__*/function () { +var RotatedSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new LinkedDetails. - * @alias module:model/LinkedDetails + * Constructs a new RotatedSecretOutput. + * @alias module:model/RotatedSecretOutput */ - function LinkedDetails() { - _classCallCheck(this, LinkedDetails); + function RotatedSecretOutput() { + _classCallCheck(this, RotatedSecretOutput); - LinkedDetails.initialize(this); + RotatedSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -91486,27 +167433,25 @@ var LinkedDetails = /*#__PURE__*/function () { */ - _createClass(LinkedDetails, null, [{ + _createClass(RotatedSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a LinkedDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LinkedDetails} obj Optional instance to populate. - * @return {module:model/LinkedDetails} The populated LinkedDetails instance. + * @param {module:model/RotatedSecretOutput} obj Optional instance to populate. + * @return {module:model/RotatedSecretOutput} The populated RotatedSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LinkedDetails(); + obj = obj || new RotatedSecretOutput(); - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { - 'String': 'String' - }); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -91514,20 +167459,20 @@ var LinkedDetails = /*#__PURE__*/function () { } }]); - return LinkedDetails; + return RotatedSecretOutput; }(); /** - * @member {Object.} hosts + * @member {String} name */ -LinkedDetails.prototype['hosts'] = undefined; -var _default = LinkedDetails; +RotatedSecretOutput.prototype['name'] = undefined; +var _default = RotatedSecretOutput; exports["default"] = _default; /***/ }), -/***/ 5413: +/***/ 24136: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91538,7 +167483,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -91549,20 +167494,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LinkedTargetDetails model module. - * @module model/LinkedTargetDetails - * @version 3.3.16 + * The RotatedSecretUpdateAws model module. + * @module model/RotatedSecretUpdateAws + * @version 3.6.3 */ -var LinkedTargetDetails = /*#__PURE__*/function () { +var RotatedSecretUpdateAws = /*#__PURE__*/function () { /** - * Constructs a new LinkedTargetDetails. - * LinkedTargetDetails - * @alias module:model/LinkedTargetDetails + * Constructs a new RotatedSecretUpdateAws. + * @alias module:model/RotatedSecretUpdateAws + * @param name {String} Rotated secret name */ - function LinkedTargetDetails() { - _classCallCheck(this, LinkedTargetDetails); + function RotatedSecretUpdateAws(name) { + _classCallCheck(this, RotatedSecretUpdateAws); - LinkedTargetDetails.initialize(this); + RotatedSecretUpdateAws.initialize(this, name); } /** * Initializes the fields of this object. @@ -91571,127 +167516,123 @@ var LinkedTargetDetails = /*#__PURE__*/function () { */ - _createClass(LinkedTargetDetails, null, [{ + _createClass(RotatedSecretUpdateAws, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a LinkedTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateAws from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LinkedTargetDetails} obj Optional instance to populate. - * @return {module:model/LinkedTargetDetails} The populated LinkedTargetDetails instance. + * @param {module:model/RotatedSecretUpdateAws} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateAws} The populated RotatedSecretUpdateAws instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LinkedTargetDetails(); + obj = obj || new RotatedSecretUpdateAws(); - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { - 'String': 'String' - }); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - } - return obj; - } - }]); + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } - return LinkedTargetDetails; -}(); -/** - * key hostname, value description - * @member {Object.} hosts - */ + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } -LinkedTargetDetails.prototype['hosts'] = undefined; -var _default = LinkedTargetDetails; -exports["default"] = _default; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } -/***/ 42284: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/** - * The ListAuthMethods model module. - * @module model/ListAuthMethods - * @version 3.3.16 - */ -var ListAuthMethods = /*#__PURE__*/function () { - /** - * Constructs a new ListAuthMethods. - * listAuthMethods is a command that returns a list of all auth methods in the account. - * @alias module:model/ListAuthMethods - */ - function ListAuthMethods() { - _classCallCheck(this, ListAuthMethods); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - ListAuthMethods.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - _createClass(ListAuthMethods, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListAuthMethods from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAuthMethods} obj Optional instance to populate. - * @return {module:model/ListAuthMethods} The populated ListAuthMethods instance. - */ + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAuthMethods(); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); } - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { @@ -91703,52 +167644,176 @@ var ListAuthMethods = /*#__PURE__*/function () { } }]); - return ListAuthMethods; + return RotatedSecretUpdateAws; }(); /** - * Filter by auth method name or part of it - * @member {String} filter + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -ListAuthMethods.prototype['filter'] = undefined; +RotatedSecretUpdateAws.prototype['add-tag'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + +RotatedSecretUpdateAws.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +RotatedSecretUpdateAws.prototype['api-key'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretUpdateAws.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretUpdateAws.prototype['auto-rotate'] = undefined; +/** + * Aws Region + * @member {String} aws-region + * @default 'us-east-2' + */ + +RotatedSecretUpdateAws.prototype['aws-region'] = 'us-east-2'; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretUpdateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ + +RotatedSecretUpdateAws.prototype['description'] = 'default_metadata'; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ + +RotatedSecretUpdateAws.prototype['grace-rotation'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -ListAuthMethods.prototype['json'] = false; +RotatedSecretUpdateAws.prototype['json'] = false; /** - * Next page reference - * @member {String} pagination-token + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -ListAuthMethods.prototype['pagination-token'] = undefined; +RotatedSecretUpdateAws.prototype['keep-prev-version'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -ListAuthMethods.prototype['token'] = undefined; +RotatedSecretUpdateAws.prototype['key'] = undefined; /** - * The Auth method types list of the requested method. In case it is empty, all types of auth methods will be returned. options: [api_key, azure_ad, oauth2/jwt, saml2, ldap, aws_iam, oidc, universal_identity, gcp, k8s, cert] - * @member {Array.} type + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -ListAuthMethods.prototype['type'] = undefined; +RotatedSecretUpdateAws.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretUpdateAws.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ + +RotatedSecretUpdateAws.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretUpdateAws.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +RotatedSecretUpdateAws.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretUpdateAws.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretUpdateAws.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretUpdateAws.prototype['rotation-interval'] = undefined; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ + +RotatedSecretUpdateAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +RotatedSecretUpdateAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +RotatedSecretUpdateAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretUpdateAws.prototype['secure-access-enable'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretUpdateAws.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -ListAuthMethods.prototype['uid-token'] = undefined; -var _default = ListAuthMethods; +RotatedSecretUpdateAws.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateAws; exports["default"] = _default; /***/ }), -/***/ 2972: +/***/ 22742: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91759,9 +167824,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AuthMethod = _interopRequireDefault(__nccwpck_require__(43874)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -91772,19 +167835,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ListAuthMethodsOutput model module. - * @module model/ListAuthMethodsOutput - * @version 3.3.16 + * The RotatedSecretUpdateAzure model module. + * @module model/RotatedSecretUpdateAzure + * @version 3.6.3 */ -var ListAuthMethodsOutput = /*#__PURE__*/function () { +var RotatedSecretUpdateAzure = /*#__PURE__*/function () { /** - * Constructs a new ListAuthMethodsOutput. - * @alias module:model/ListAuthMethodsOutput + * Constructs a new RotatedSecretUpdateAzure. + * @alias module:model/RotatedSecretUpdateAzure + * @param name {String} Rotated secret name */ - function ListAuthMethodsOutput() { - _classCallCheck(this, ListAuthMethodsOutput); + function RotatedSecretUpdateAzure(name) { + _classCallCheck(this, RotatedSecretUpdateAzure); - ListAuthMethodsOutput.initialize(this); + RotatedSecretUpdateAzure.initialize(this, name); } /** * Initializes the fields of this object. @@ -91793,116 +167857,123 @@ var ListAuthMethodsOutput = /*#__PURE__*/function () { */ - _createClass(ListAuthMethodsOutput, null, [{ + _createClass(RotatedSecretUpdateAzure, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ListAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateAzure from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAuthMethodsOutput} obj Optional instance to populate. - * @return {module:model/ListAuthMethodsOutput} The populated ListAuthMethodsOutput instance. + * @param {module:model/RotatedSecretUpdateAzure} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateAzure} The populated RotatedSecretUpdateAzure instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ListAuthMethodsOutput(); + obj = obj || new RotatedSecretUpdateAzure(); - if (data.hasOwnProperty('auth_methods')) { - obj['auth_methods'] = _ApiClient["default"].convertToType(data['auth_methods'], [_AuthMethod["default"]]); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); } - } - return obj; - } - }]); + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } - return ListAuthMethodsOutput; -}(); -/** - * @member {Array.} auth_methods - */ + if (data.hasOwnProperty('application-id')) { + obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); + } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } -ListAuthMethodsOutput.prototype['auth_methods'] = undefined; -/** - * @member {String} next_page - */ + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -ListAuthMethodsOutput.prototype['next_page'] = undefined; -var _default = ListAuthMethodsOutput; -exports["default"] = _default; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/***/ 77100: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -"use strict"; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -/** - * The ListGateways model module. - * @module model/ListGateways - * @version 3.3.16 - */ -var ListGateways = /*#__PURE__*/function () { - /** - * Constructs a new ListGateways. - * @alias module:model/ListGateways - */ - function ListGateways() { - _classCallCheck(this, ListGateways); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - ListGateways.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - _createClass(ListGateways, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListGateways from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListGateways} obj Optional instance to populate. - * @return {module:model/ListGateways} The populated ListGateways instance. - */ + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListGateways(); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -91912,40 +167983,200 @@ var ListGateways = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } } return obj; } }]); - return ListGateways; + return RotatedSecretUpdateAzure; }(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ + + +RotatedSecretUpdateAzure.prototype['add-tag'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + +RotatedSecretUpdateAzure.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +RotatedSecretUpdateAzure.prototype['api-key'] = undefined; +/** + * Id of the azure app that hold the serect to be rotated (relevant only for rotator-type=api-key & authentication-credentials=use-target-creds) + * @member {String} application-id + */ + +RotatedSecretUpdateAzure.prototype['application-id'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretUpdateAzure.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretUpdateAzure.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretUpdateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ + +RotatedSecretUpdateAzure.prototype['description'] = 'default_metadata'; /** * Set output format to JSON * @member {Boolean} json * @default false */ +RotatedSecretUpdateAzure.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -ListGateways.prototype['json'] = false; +RotatedSecretUpdateAzure.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretUpdateAzure.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretUpdateAzure.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretUpdateAzure.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ + +RotatedSecretUpdateAzure.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretUpdateAzure.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +RotatedSecretUpdateAzure.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretUpdateAzure.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretUpdateAzure.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretUpdateAzure.prototype['rotation-interval'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretUpdateAzure.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +RotatedSecretUpdateAzure.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretUpdateAzure.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +RotatedSecretUpdateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +RotatedSecretUpdateAzure.prototype['secure-access-web-proxy'] = false; +/** + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) + * @member {String} storage-account-key-name + */ + +RotatedSecretUpdateAzure.prototype['storage-account-key-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -ListGateways.prototype['token'] = undefined; +RotatedSecretUpdateAzure.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -ListGateways.prototype['uid-token'] = undefined; -var _default = ListGateways; +RotatedSecretUpdateAzure.prototype['uid-token'] = undefined; +/** + * The user principal name to rotate his password (relevant only for rotator-type=password) + * @member {String} username + */ + +RotatedSecretUpdateAzure.prototype['username'] = undefined; +var _default = RotatedSecretUpdateAzure; exports["default"] = _default; /***/ }), -/***/ 40313: +/***/ 26195: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91956,7 +168187,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -91967,19 +168198,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ListItems model module. - * @module model/ListItems - * @version 3.3.16 + * The RotatedSecretUpdateCassandra model module. + * @module model/RotatedSecretUpdateCassandra + * @version 3.6.3 */ -var ListItems = /*#__PURE__*/function () { +var RotatedSecretUpdateCassandra = /*#__PURE__*/function () { /** - * Constructs a new ListItems. - * @alias module:model/ListItems + * Constructs a new RotatedSecretUpdateCassandra. + * @alias module:model/RotatedSecretUpdateCassandra + * @param name {String} Rotated secret name */ - function ListItems() { - _classCallCheck(this, ListItems); + function RotatedSecretUpdateCassandra(name) { + _classCallCheck(this, RotatedSecretUpdateCassandra); - ListItems.initialize(this); + RotatedSecretUpdateCassandra.initialize(this, name); } /** * Initializes the fields of this object. @@ -91988,69 +168220,95 @@ var ListItems = /*#__PURE__*/function () { */ - _createClass(ListItems, null, [{ + _createClass(RotatedSecretUpdateCassandra, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ListItems from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateCassandra from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListItems} obj Optional instance to populate. - * @return {module:model/ListItems} The populated ListItems instance. + * @param {module:model/RotatedSecretUpdateCassandra} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateCassandra} The populated RotatedSecretUpdateCassandra instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ListItems(); + obj = obj || new RotatedSecretUpdateCassandra(); - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('auto-pagination')) { - obj['auto-pagination'] = _ApiClient["default"].convertToType(data['auto-pagination'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('minimal-view')) { - obj['minimal-view'] = _ApiClient["default"].convertToType(data['minimal-view'], 'Boolean'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('sra-only')) { - obj['sra-only'] = _ApiClient["default"].convertToType(data['sra-only'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('sub_types')) { - obj['sub_types'] = _ApiClient["default"].convertToType(data['sub_types'], ['String']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], 'String'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { @@ -92062,95 +168320,132 @@ var ListItems = /*#__PURE__*/function () { } }]); - return ListItems; + return RotatedSecretUpdateCassandra; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -ListItems.prototype['accessibility'] = 'regular'; +RotatedSecretUpdateCassandra.prototype['add-tag'] = undefined; /** - * Retrieve all items using pagination, when disabled retrieving only first 1000 items - * @member {String} auto-pagination - * @default 'enabled' + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretUpdateCassandra.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretUpdateCassandra.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretUpdateCassandra.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ + +RotatedSecretUpdateCassandra.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretUpdateCassandra.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +RotatedSecretUpdateCassandra.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -ListItems.prototype['auto-pagination'] = 'enabled'; +RotatedSecretUpdateCassandra.prototype['key'] = undefined; /** - * Filter by item name or part of it - * @member {String} filter + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -ListItems.prototype['filter'] = undefined; +RotatedSecretUpdateCassandra.prototype['max-versions'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Rotated secret name + * @member {String} name */ -ListItems.prototype['json'] = false; +RotatedSecretUpdateCassandra.prototype['name'] = undefined; /** - * @member {Boolean} minimal-view + * New item name + * @member {String} new-name */ -ListItems.prototype['minimal-view'] = undefined; +RotatedSecretUpdateCassandra.prototype['new-name'] = undefined; /** - * Next page reference - * @member {String} pagination-token + * The length of the password to be generated + * @member {String} password-length */ -ListItems.prototype['pagination-token'] = undefined; +RotatedSecretUpdateCassandra.prototype['password-length'] = undefined; /** - * Path to folder - * @member {String} path + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -ListItems.prototype['path'] = undefined; +RotatedSecretUpdateCassandra.prototype['rm-tag'] = undefined; /** - * Filter by items with SRA functionality enabled - * @member {Boolean} sra-only - * @default false + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password */ -ListItems.prototype['sra-only'] = false; +RotatedSecretUpdateCassandra.prototype['rotated-password'] = undefined; /** - * @member {Array.} sub_types + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username */ -ListItems.prototype['sub_types'] = undefined; +RotatedSecretUpdateCassandra.prototype['rotated-username'] = undefined; /** - * Filter by item tag - * @member {String} tag + * The Hour of the rotation in UTC + * @member {Number} rotation-hour */ -ListItems.prototype['tag'] = undefined; +RotatedSecretUpdateCassandra.prototype['rotation-hour'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval */ -ListItems.prototype['token'] = undefined; +RotatedSecretUpdateCassandra.prototype['rotation-interval'] = undefined; /** - * The item types list of the requested items. In case it is empty, all types of items will be returned. options: [key, static-secret, dynamic-secret, classic-key] - * @member {Array.} type + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -ListItems.prototype['type'] = undefined; +RotatedSecretUpdateCassandra.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -ListItems.prototype['uid-token'] = undefined; -var _default = ListItems; +RotatedSecretUpdateCassandra.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateCassandra; exports["default"] = _default; /***/ }), -/***/ 95726: +/***/ 60682: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -92161,9 +168456,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Item = _interopRequireDefault(__nccwpck_require__(20231)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -92174,19 +168467,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ListItemsInPathOutput model module. - * @module model/ListItemsInPathOutput - * @version 3.3.16 + * The RotatedSecretUpdateCustom model module. + * @module model/RotatedSecretUpdateCustom + * @version 3.6.3 */ -var ListItemsInPathOutput = /*#__PURE__*/function () { +var RotatedSecretUpdateCustom = /*#__PURE__*/function () { /** - * Constructs a new ListItemsInPathOutput. - * @alias module:model/ListItemsInPathOutput + * Constructs a new RotatedSecretUpdateCustom. + * @alias module:model/RotatedSecretUpdateCustom + * @param name {String} Rotated secret name */ - function ListItemsInPathOutput() { - _classCallCheck(this, ListItemsInPathOutput); + function RotatedSecretUpdateCustom(name) { + _classCallCheck(this, RotatedSecretUpdateCustom); - ListItemsInPathOutput.initialize(this); + RotatedSecretUpdateCustom.initialize(this, name); } /** * Initializes the fields of this object. @@ -92195,131 +168489,143 @@ var ListItemsInPathOutput = /*#__PURE__*/function () { */ - _createClass(ListItemsInPathOutput, null, [{ + _createClass(RotatedSecretUpdateCustom, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ListItemsInPathOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateCustom from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListItemsInPathOutput} obj Optional instance to populate. - * @return {module:model/ListItemsInPathOutput} The populated ListItemsInPathOutput instance. + * @param {module:model/RotatedSecretUpdateCustom} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateCustom} The populated RotatedSecretUpdateCustom instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ListItemsInPathOutput(); + obj = obj || new RotatedSecretUpdateCustom(); - if (data.hasOwnProperty('folders')) { - obj['folders'] = _ApiClient["default"].convertToType(data['folders'], ['String']); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('items')) { - obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - } - return obj; - } - }]); + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } - return ListItemsInPathOutput; -}(); -/** - * @member {Array.} folders - */ + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -ListItemsInPathOutput.prototype['folders'] = undefined; -/** - * @member {Array.} items - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -ListItemsInPathOutput.prototype['items'] = undefined; -/** - * @member {String} next_page - */ + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -ListItemsInPathOutput.prototype['next_page'] = undefined; -var _default = ListItemsInPathOutput; -exports["default"] = _default; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/***/ 74202: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -var _Item = _interopRequireDefault(__nccwpck_require__(20231)); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -/** - * The ListItemsOutput model module. - * @module model/ListItemsOutput - * @version 3.3.16 - */ -var ListItemsOutput = /*#__PURE__*/function () { - /** - * Constructs a new ListItemsOutput. - * @alias module:model/ListItemsOutput - */ - function ListItemsOutput() { - _classCallCheck(this, ListItemsOutput); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - ListItemsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } - _createClass(ListItemsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListItemsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListItemsOutput} obj Optional instance to populate. - * @return {module:model/ListItemsOutput} The populated ListItemsOutput instance. - */ + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListItemsOutput(); + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } - if (data.hasOwnProperty('items')) { - obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -92327,149 +168633,203 @@ var ListItemsOutput = /*#__PURE__*/function () { } }]); - return ListItemsOutput; + return RotatedSecretUpdateCustom; }(); /** - * @member {Array.} items + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -ListItemsOutput.prototype['items'] = undefined; +RotatedSecretUpdateCustom.prototype['add-tag'] = undefined; /** - * @member {String} next_page + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -ListItemsOutput.prototype['next_page'] = undefined; -var _default = ListItemsOutput; -exports["default"] = _default; +RotatedSecretUpdateCustom.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -/***/ }), +RotatedSecretUpdateCustom.prototype['auto-rotate'] = undefined; +/** + * Secret payload to be sent with rotation request + * @member {String} custom-payload + */ -/***/ 8340: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretUpdateCustom.prototype['custom-payload'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -"use strict"; +RotatedSecretUpdateCustom.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ +RotatedSecretUpdateCustom.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +RotatedSecretUpdateCustom.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +RotatedSecretUpdateCustom.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretUpdateCustom.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretUpdateCustom.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretUpdateCustom.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdateCustom.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ +RotatedSecretUpdateCustom.prototype['password-length'] = undefined; /** - * The ListRoles model module. - * @module model/ListRoles - * @version 3.3.16 + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -var ListRoles = /*#__PURE__*/function () { - /** - * Constructs a new ListRoles. - * @alias module:model/ListRoles - */ - function ListRoles() { - _classCallCheck(this, ListRoles); - ListRoles.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateCustom.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ +RotatedSecretUpdateCustom.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - _createClass(ListRoles, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListRoles from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListRoles} obj Optional instance to populate. - * @return {module:model/ListRoles} The populated ListRoles instance. - */ +RotatedSecretUpdateCustom.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListRoles(); +RotatedSecretUpdateCustom.prototype['rotation-interval'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); - } +RotatedSecretUpdateCustom.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } +RotatedSecretUpdateCustom.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); - } +RotatedSecretUpdateCustom.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } +RotatedSecretUpdateCustom.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } +RotatedSecretUpdateCustom.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - return obj; - } - }]); +RotatedSecretUpdateCustom.prototype['secure-access-rdp-user'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ - return ListRoles; -}(); +RotatedSecretUpdateCustom.prototype['secure-access-ssh-user'] = undefined; /** - * Filter by item name or part of it - * @member {String} filter + * Destination URL to inject secrets + * @member {String} secure-access-url */ +RotatedSecretUpdateCustom.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -ListRoles.prototype['filter'] = undefined; +RotatedSecretUpdateCustom.prototype['secure-access-web'] = false; /** - * Set output format to JSON - * @member {Boolean} json + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing * @default false */ -ListRoles.prototype['json'] = false; +RotatedSecretUpdateCustom.prototype['secure-access-web-browsing'] = false; /** - * Next page reference - * @member {String} pagination-token + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false */ -ListRoles.prototype['pagination-token'] = undefined; +RotatedSecretUpdateCustom.prototype['secure-access-web-proxy'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -ListRoles.prototype['token'] = undefined; +RotatedSecretUpdateCustom.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -ListRoles.prototype['uid-token'] = undefined; -var _default = ListRoles; +RotatedSecretUpdateCustom.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateCustom; exports["default"] = _default; /***/ }), -/***/ 60424: +/***/ 92078: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -92480,9 +168840,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Role = _interopRequireDefault(__nccwpck_require__(42980)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -92493,19 +168851,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ListRolesOutput model module. - * @module model/ListRolesOutput - * @version 3.3.16 + * The RotatedSecretUpdateDockerhub model module. + * @module model/RotatedSecretUpdateDockerhub + * @version 3.6.3 */ -var ListRolesOutput = /*#__PURE__*/function () { +var RotatedSecretUpdateDockerhub = /*#__PURE__*/function () { /** - * Constructs a new ListRolesOutput. - * @alias module:model/ListRolesOutput + * Constructs a new RotatedSecretUpdateDockerhub. + * @alias module:model/RotatedSecretUpdateDockerhub + * @param name {String} Rotated secret name */ - function ListRolesOutput() { - _classCallCheck(this, ListRolesOutput); + function RotatedSecretUpdateDockerhub(name) { + _classCallCheck(this, RotatedSecretUpdateDockerhub); - ListRolesOutput.initialize(this); + RotatedSecretUpdateDockerhub.initialize(this, name); } /** * Initializes the fields of this object. @@ -92514,120 +168873,83 @@ var ListRolesOutput = /*#__PURE__*/function () { */ - _createClass(ListRolesOutput, null, [{ + _createClass(RotatedSecretUpdateDockerhub, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ListRolesOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateDockerhub from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListRolesOutput} obj Optional instance to populate. - * @return {module:model/ListRolesOutput} The populated ListRolesOutput instance. + * @param {module:model/RotatedSecretUpdateDockerhub} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateDockerhub} The populated RotatedSecretUpdateDockerhub instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ListRolesOutput(); + obj = obj || new RotatedSecretUpdateDockerhub(); - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('roles')) { - obj['roles'] = _ApiClient["default"].convertToType(data['roles'], [_Role["default"]]); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - - return obj; - } - }]); - - return ListRolesOutput; -}(); -/** - * @member {String} next_page - */ + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -ListRolesOutput.prototype['next_page'] = undefined; -/** - * @member {Array.} roles - */ - -ListRolesOutput.prototype['roles'] = undefined; -var _default = ListRolesOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 51580: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/** - * The ListSRABastions model module. - * @module model/ListSRABastions - * @version 3.3.16 - */ -var ListSRABastions = /*#__PURE__*/function () { - /** - * Constructs a new ListSRABastions. - * @alias module:model/ListSRABastions - */ - function ListSRABastions() { - _classCallCheck(this, ListSRABastions); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - ListSRABastions.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - _createClass(ListSRABastions, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListSRABastions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSRABastions} obj Optional instance to populate. - * @return {module:model/ListSRABastions} The populated ListSRABastions instance. - */ + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListSRABastions(); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - if (data.hasOwnProperty('allowed-urls-only')) { - obj['allowed-urls-only'] = _ApiClient["default"].convertToType(data['allowed-urls-only'], 'Boolean'); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } if (data.hasOwnProperty('token')) { @@ -92643,41 +168965,120 @@ var ListSRABastions = /*#__PURE__*/function () { } }]); - return ListSRABastions; + return RotatedSecretUpdateDockerhub; }(); /** - * Filter the response to show only bastions allowed URLs - * @member {Boolean} allowed-urls-only - * @default false + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -ListSRABastions.prototype['allowed-urls-only'] = false; +RotatedSecretUpdateDockerhub.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretUpdateDockerhub.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretUpdateDockerhub.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretUpdateDockerhub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ + +RotatedSecretUpdateDockerhub.prototype['description'] = 'default_metadata'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -ListSRABastions.prototype['json'] = false; +RotatedSecretUpdateDockerhub.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +RotatedSecretUpdateDockerhub.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretUpdateDockerhub.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretUpdateDockerhub.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretUpdateDockerhub.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ + +RotatedSecretUpdateDockerhub.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretUpdateDockerhub.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +RotatedSecretUpdateDockerhub.prototype['rm-tag'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretUpdateDockerhub.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretUpdateDockerhub.prototype['rotation-interval'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -ListSRABastions.prototype['token'] = undefined; +RotatedSecretUpdateDockerhub.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -ListSRABastions.prototype['uid-token'] = undefined; -var _default = ListSRABastions; +RotatedSecretUpdateDockerhub.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateDockerhub; exports["default"] = _default; /***/ }), -/***/ 66954: +/***/ 56315: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -92688,7 +169089,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -92699,20 +169100,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ListSharedItems model module. - * @module model/ListSharedItems - * @version 3.3.16 + * The RotatedSecretUpdateGcp model module. + * @module model/RotatedSecretUpdateGcp + * @version 3.6.3 */ -var ListSharedItems = /*#__PURE__*/function () { +var RotatedSecretUpdateGcp = /*#__PURE__*/function () { /** - * Constructs a new ListSharedItems. - * listSharedItems is a command to list all the items been shared - * @alias module:model/ListSharedItems + * Constructs a new RotatedSecretUpdateGcp. + * @alias module:model/RotatedSecretUpdateGcp + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/service-account-rotator] */ - function ListSharedItems() { - _classCallCheck(this, ListSharedItems); + function RotatedSecretUpdateGcp(name, rotatorType) { + _classCallCheck(this, RotatedSecretUpdateGcp); - ListSharedItems.initialize(this); + RotatedSecretUpdateGcp.initialize(this, name, rotatorType); } /** * Initializes the fields of this object. @@ -92721,31 +169123,102 @@ var ListSharedItems = /*#__PURE__*/function () { */ - _createClass(ListSharedItems, null, [{ + _createClass(RotatedSecretUpdateGcp, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + } /** - * Constructs a ListSharedItems from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateGcp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSharedItems} obj Optional instance to populate. - * @return {module:model/ListSharedItems} The populated ListSharedItems instance. + * @param {module:model/RotatedSecretUpdateGcp} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateGcp} The populated RotatedSecretUpdateGcp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ListSharedItems(); + obj = obj || new RotatedSecretUpdateGcp(); - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -92759,41 +169232,144 @@ var ListSharedItems = /*#__PURE__*/function () { } }]); - return ListSharedItems; + return RotatedSecretUpdateGcp; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -ListSharedItems.prototype['accessibility'] = 'regular'; +RotatedSecretUpdateGcp.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretUpdateGcp.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretUpdateGcp.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretUpdateGcp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ + +RotatedSecretUpdateGcp.prototype['description'] = 'default_metadata'; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +RotatedSecretUpdateGcp.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ + +RotatedSecretUpdateGcp.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ + +RotatedSecretUpdateGcp.prototype['gcp-service-account-key-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -ListSharedItems.prototype['json'] = false; +RotatedSecretUpdateGcp.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +RotatedSecretUpdateGcp.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretUpdateGcp.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretUpdateGcp.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretUpdateGcp.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ + +RotatedSecretUpdateGcp.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretUpdateGcp.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +RotatedSecretUpdateGcp.prototype['rm-tag'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretUpdateGcp.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretUpdateGcp.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/service-account-rotator] + * @member {String} rotator-type + */ + +RotatedSecretUpdateGcp.prototype['rotator-type'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -ListSharedItems.prototype['token'] = undefined; +RotatedSecretUpdateGcp.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -ListSharedItems.prototype['uid-token'] = undefined; -var _default = ListSharedItems; +RotatedSecretUpdateGcp.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateGcp; exports["default"] = _default; /***/ }), -/***/ 11384: +/***/ 79165: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -92804,7 +169380,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -92815,19 +169391,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ListTargets model module. - * @module model/ListTargets - * @version 3.3.16 + * The RotatedSecretUpdateHanadb model module. + * @module model/RotatedSecretUpdateHanadb + * @version 3.6.3 */ -var ListTargets = /*#__PURE__*/function () { +var RotatedSecretUpdateHanadb = /*#__PURE__*/function () { /** - * Constructs a new ListTargets. - * @alias module:model/ListTargets + * Constructs a new RotatedSecretUpdateHanadb. + * @alias module:model/RotatedSecretUpdateHanadb + * @param name {String} Rotated secret name */ - function ListTargets() { - _classCallCheck(this, ListTargets); + function RotatedSecretUpdateHanadb(name) { + _classCallCheck(this, RotatedSecretUpdateHanadb); - ListTargets.initialize(this); + RotatedSecretUpdateHanadb.initialize(this, name); } /** * Initializes the fields of this object. @@ -92836,41 +169413,95 @@ var ListTargets = /*#__PURE__*/function () { */ - _createClass(ListTargets, null, [{ + _createClass(RotatedSecretUpdateHanadb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a ListTargets from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateHanadb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListTargets} obj Optional instance to populate. - * @return {module:model/ListTargets} The populated ListTargets instance. + * @param {module:model/RotatedSecretUpdateHanadb} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateHanadb} The populated RotatedSecretUpdateHanadb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ListTargets(); + obj = obj || new RotatedSecretUpdateHanadb(); - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { @@ -92882,145 +169513,132 @@ var ListTargets = /*#__PURE__*/function () { } }]); - return ListTargets; + return RotatedSecretUpdateHanadb; }(); /** - * Filter by auth method name or part of it - * @member {String} filter + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -ListTargets.prototype['filter'] = undefined; +RotatedSecretUpdateHanadb.prototype['add-tag'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -ListTargets.prototype['json'] = false; +RotatedSecretUpdateHanadb.prototype['authentication-credentials'] = 'use-user-creds'; /** - * Next page reference - * @member {String} pagination-token + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -ListTargets.prototype['pagination-token'] = undefined; +RotatedSecretUpdateHanadb.prototype['auto-rotate'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -ListTargets.prototype['token'] = undefined; +RotatedSecretUpdateHanadb.prototype['delete_protection'] = undefined; /** - * The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres] - * @member {Array.} type + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -ListTargets.prototype['type'] = undefined; +RotatedSecretUpdateHanadb.prototype['description'] = 'default_metadata'; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ListTargets.prototype['uid-token'] = undefined; -var _default = ListTargets; -exports["default"] = _default; - -/***/ }), - -/***/ 80119: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Target = _interopRequireDefault(__nccwpck_require__(91561)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretUpdateHanadb.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdateHanadb.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ +RotatedSecretUpdateHanadb.prototype['key'] = undefined; /** - * The ListTargetsOutput model module. - * @module model/ListTargetsOutput - * @version 3.3.16 + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -var ListTargetsOutput = /*#__PURE__*/function () { - /** - * Constructs a new ListTargetsOutput. - * @alias module:model/ListTargetsOutput - */ - function ListTargetsOutput() { - _classCallCheck(this, ListTargetsOutput); - ListTargetsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateHanadb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ +RotatedSecretUpdateHanadb.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - _createClass(ListTargetsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListTargetsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListTargetsOutput} obj Optional instance to populate. - * @return {module:model/ListTargetsOutput} The populated ListTargetsOutput instance. - */ +RotatedSecretUpdateHanadb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListTargetsOutput(); +RotatedSecretUpdateHanadb.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); - } +RotatedSecretUpdateHanadb.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - if (data.hasOwnProperty('targets')) { - obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_Target["default"]]); - } - } +RotatedSecretUpdateHanadb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - return obj; - } - }]); +RotatedSecretUpdateHanadb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - return ListTargetsOutput; -}(); +RotatedSecretUpdateHanadb.prototype['rotation-hour'] = undefined; /** - * @member {String} next_page + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval */ +RotatedSecretUpdateHanadb.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -ListTargetsOutput.prototype['next_page'] = undefined; +RotatedSecretUpdateHanadb.prototype['token'] = undefined; /** - * @member {Array.} targets + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -ListTargetsOutput.prototype['targets'] = undefined; -var _default = ListTargetsOutput; +RotatedSecretUpdateHanadb.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateHanadb; exports["default"] = _default; /***/ }), -/***/ 47217: +/***/ 23456: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -93031,27 +169649,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(44285)); - -var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(20470)); - -var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(735)); - -var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(77431)); - -var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(83716)); - -var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(79214)); - -var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(9980)); - -var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(92130)); - -var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(51441)); - -var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(40374)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -93062,19 +169660,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LogForwardingConfigPart model module. - * @module model/LogForwardingConfigPart - * @version 3.3.16 + * The RotatedSecretUpdateLdap model module. + * @module model/RotatedSecretUpdateLdap + * @version 3.6.3 */ -var LogForwardingConfigPart = /*#__PURE__*/function () { +var RotatedSecretUpdateLdap = /*#__PURE__*/function () { /** - * Constructs a new LogForwardingConfigPart. - * @alias module:model/LogForwardingConfigPart + * Constructs a new RotatedSecretUpdateLdap. + * @alias module:model/RotatedSecretUpdateLdap + * @param name {String} Rotated secret name */ - function LogForwardingConfigPart() { - _classCallCheck(this, LogForwardingConfigPart); + function RotatedSecretUpdateLdap(name) { + _classCallCheck(this, RotatedSecretUpdateLdap); - LogForwardingConfigPart.initialize(this); + RotatedSecretUpdateLdap.initialize(this, name); } /** * Initializes the fields of this object. @@ -93083,81 +169682,151 @@ var LogForwardingConfigPart = /*#__PURE__*/function () { */ - _createClass(LogForwardingConfigPart, null, [{ + _createClass(RotatedSecretUpdateLdap, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a LogForwardingConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateLdap from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LogForwardingConfigPart} obj Optional instance to populate. - * @return {module:model/LogForwardingConfigPart} The populated LogForwardingConfigPart instance. + * @param {module:model/RotatedSecretUpdateLdap} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateLdap} The populated RotatedSecretUpdateLdap instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LogForwardingConfigPart(); + obj = obj || new RotatedSecretUpdateLdap(); - if (data.hasOwnProperty('aws_s3_config')) { - obj['aws_s3_config'] = _AwsS3LogForwardingConfig["default"].constructFromObject(data['aws_s3_config']); + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); } - if (data.hasOwnProperty('azure_analytics_config')) { - obj['azure_analytics_config'] = _AzureLogAnalyticsForwardingConfig["default"].constructFromObject(data['azure_analytics_config']); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('datadog_config')) { - obj['datadog_config'] = _DatadogForwardingConfig["default"].constructFromObject(data['datadog_config']); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('elasticsearch_config')) { - obj['elasticsearch_config'] = _ElasticsearchLogForwardingConfig["default"].constructFromObject(data['elasticsearch_config']); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('google_chronicle_config')) { - obj['google_chronicle_config'] = _GoogleChronicleForwardingConfig["default"].constructFromObject(data['google_chronicle_config']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('json_output')) { - obj['json_output'] = _ApiClient["default"].convertToType(data['json_output'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('logan_enable')) { - obj['logan_enable'] = _ApiClient["default"].convertToType(data['logan_enable'], 'Boolean'); + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); } - if (data.hasOwnProperty('logan_url')) { - obj['logan_url'] = _ApiClient["default"].convertToType(data['logan_url'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('logstash_config')) { - obj['logstash_config'] = _LogstashLogForwardingConfig["default"].constructFromObject(data['logstash_config']); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('logz_io_config')) { - obj['logz_io_config'] = _LogzIoLogForwardingConfig["default"].constructFromObject(data['logz_io_config']); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('pull_interval_sec')) { - obj['pull_interval_sec'] = _ApiClient["default"].convertToType(data['pull_interval_sec'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('splunk_config')) { - obj['splunk_config'] = _SplunkLogForwardingConfig["default"].constructFromObject(data['splunk_config']); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('sumo_logic_config')) { - obj['sumo_logic_config'] = _SumologicLogForwardingConfig["default"].constructFromObject(data['sumo_logic_config']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('syslog_config')) { - obj['syslog_config'] = _SyslogLogForwardingConfig["default"].constructFromObject(data['syslog_config']); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('target_log_type')) { - obj['target_log_type'] = _ApiClient["default"].convertToType(data['target_log_type'], 'String'); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); } } @@ -93165,199 +169834,215 @@ var LogForwardingConfigPart = /*#__PURE__*/function () { } }]); - return LogForwardingConfigPart; + return RotatedSecretUpdateLdap; }(); /** - * @member {module:model/AwsS3LogForwardingConfig} aws_s3_config + * @member {String} ProviderType */ -LogForwardingConfigPart.prototype['aws_s3_config'] = undefined; +RotatedSecretUpdateLdap.prototype['ProviderType'] = undefined; /** - * @member {module:model/AzureLogAnalyticsForwardingConfig} azure_analytics_config + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -LogForwardingConfigPart.prototype['azure_analytics_config'] = undefined; +RotatedSecretUpdateLdap.prototype['add-tag'] = undefined; /** - * @member {module:model/DatadogForwardingConfig} datadog_config + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -LogForwardingConfigPart.prototype['datadog_config'] = undefined; +RotatedSecretUpdateLdap.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {module:model/ElasticsearchLogForwardingConfig} elasticsearch_config + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -LogForwardingConfigPart.prototype['elasticsearch_config'] = undefined; +RotatedSecretUpdateLdap.prototype['auto-rotate'] = undefined; /** - * @member {module:model/GoogleChronicleForwardingConfig} google_chronicle_config + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -LogForwardingConfigPart.prototype['google_chronicle_config'] = undefined; +RotatedSecretUpdateLdap.prototype['delete_protection'] = undefined; /** - * @member {Boolean} json_output + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -LogForwardingConfigPart.prototype['json_output'] = undefined; +RotatedSecretUpdateLdap.prototype['description'] = 'default_metadata'; /** - * @member {Boolean} logan_enable + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' */ -LogForwardingConfigPart.prototype['logan_enable'] = undefined; +RotatedSecretUpdateLdap.prototype['host-provider'] = 'explicit'; /** - * @member {String} logan_url + * Set output format to JSON + * @member {Boolean} json + * @default false */ -LogForwardingConfigPart.prototype['logan_url'] = undefined; +RotatedSecretUpdateLdap.prototype['json'] = false; /** - * @member {module:model/LogstashLogForwardingConfig} logstash_config + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -LogForwardingConfigPart.prototype['logstash_config'] = undefined; +RotatedSecretUpdateLdap.prototype['keep-prev-version'] = undefined; /** - * @member {module:model/LogzIoLogForwardingConfig} logz_io_config + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -LogForwardingConfigPart.prototype['logz_io_config'] = undefined; +RotatedSecretUpdateLdap.prototype['key'] = undefined; /** - * @member {String} pull_interval_sec + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -LogForwardingConfigPart.prototype['pull_interval_sec'] = undefined; +RotatedSecretUpdateLdap.prototype['max-versions'] = undefined; /** - * @member {module:model/SplunkLogForwardingConfig} splunk_config + * Rotated secret name + * @member {String} name */ -LogForwardingConfigPart.prototype['splunk_config'] = undefined; +RotatedSecretUpdateLdap.prototype['name'] = undefined; /** - * @member {module:model/SumologicLogForwardingConfig} sumo_logic_config + * New item name + * @member {String} new-name */ -LogForwardingConfigPart.prototype['sumo_logic_config'] = undefined; +RotatedSecretUpdateLdap.prototype['new-name'] = undefined; /** - * @member {module:model/SyslogLogForwardingConfig} syslog_config + * The length of the password to be generated + * @member {String} password-length */ -LogForwardingConfigPart.prototype['syslog_config'] = undefined; +RotatedSecretUpdateLdap.prototype['password-length'] = undefined; /** - * @member {String} target_log_type + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -LogForwardingConfigPart.prototype['target_log_type'] = undefined; -var _default = LogForwardingConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 79214: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretUpdateLdap.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdateLdap.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=ldap) + * @member {String} rotated-password + */ +RotatedSecretUpdateLdap.prototype['rotated-password'] = undefined; /** - * The LogstashLogForwardingConfig model module. - * @module model/LogstashLogForwardingConfig - * @version 3.3.16 + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=ldap) + * @member {String} rotated-username */ -var LogstashLogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new LogstashLogForwardingConfig. - * @alias module:model/LogstashLogForwardingConfig - */ - function LogstashLogForwardingConfig() { - _classCallCheck(this, LogstashLogForwardingConfig); - LogstashLogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateLdap.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ +RotatedSecretUpdateLdap.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - _createClass(LogstashLogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LogstashLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LogstashLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/LogstashLogForwardingConfig} The populated LogstashLogForwardingConfig instance. - */ +RotatedSecretUpdateLdap.prototype['rotation-interval'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LogstashLogForwardingConfig(); +RotatedSecretUpdateLdap.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - if (data.hasOwnProperty('logstash_dns')) { - obj['logstash_dns'] = _ApiClient["default"].convertToType(data['logstash_dns'], 'String'); - } +RotatedSecretUpdateLdap.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ - if (data.hasOwnProperty('logstash_enable_tls')) { - obj['logstash_enable_tls'] = _ApiClient["default"].convertToType(data['logstash_enable_tls'], 'Boolean'); - } +RotatedSecretUpdateLdap.prototype['secure-access-rdp-domain'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ - if (data.hasOwnProperty('logstash_protocol')) { - obj['logstash_protocol'] = _ApiClient["default"].convertToType(data['logstash_protocol'], 'String'); - } +RotatedSecretUpdateLdap.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - if (data.hasOwnProperty('logstash_tls_certificate')) { - obj['logstash_tls_certificate'] = _ApiClient["default"].convertToType(data['logstash_tls_certificate'], 'String'); - } - } +RotatedSecretUpdateLdap.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ - return obj; - } - }]); +RotatedSecretUpdateLdap.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ - return LogstashLogForwardingConfig; -}(); +RotatedSecretUpdateLdap.prototype['secure-access-web-proxy'] = false; /** - * @member {String} logstash_dns + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target */ +RotatedSecretUpdateLdap.prototype['target'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -LogstashLogForwardingConfig.prototype['logstash_dns'] = undefined; +RotatedSecretUpdateLdap.prototype['token'] = undefined; /** - * @member {Boolean} logstash_enable_tls + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -LogstashLogForwardingConfig.prototype['logstash_enable_tls'] = undefined; +RotatedSecretUpdateLdap.prototype['uid-token'] = undefined; /** - * @member {String} logstash_protocol + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' */ -LogstashLogForwardingConfig.prototype['logstash_protocol'] = undefined; +RotatedSecretUpdateLdap.prototype['user-attribute'] = 'cn'; /** - * @member {String} logstash_tls_certificate + * Base DN to Perform User Search + * @member {String} user-dn */ -LogstashLogForwardingConfig.prototype['logstash_tls_certificate'] = undefined; -var _default = LogstashLogForwardingConfig; +RotatedSecretUpdateLdap.prototype['user-dn'] = undefined; +var _default = RotatedSecretUpdateLdap; exports["default"] = _default; /***/ }), -/***/ 9980: +/***/ 64915: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -93368,7 +170053,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -93379,19 +170064,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The LogzIoLogForwardingConfig model module. - * @module model/LogzIoLogForwardingConfig - * @version 3.3.16 + * The RotatedSecretUpdateMongodb model module. + * @module model/RotatedSecretUpdateMongodb + * @version 3.6.3 */ -var LogzIoLogForwardingConfig = /*#__PURE__*/function () { +var RotatedSecretUpdateMongodb = /*#__PURE__*/function () { /** - * Constructs a new LogzIoLogForwardingConfig. - * @alias module:model/LogzIoLogForwardingConfig + * Constructs a new RotatedSecretUpdateMongodb. + * @alias module:model/RotatedSecretUpdateMongodb + * @param name {String} Rotated secret name */ - function LogzIoLogForwardingConfig() { - _classCallCheck(this, LogzIoLogForwardingConfig); + function RotatedSecretUpdateMongodb(name) { + _classCallCheck(this, RotatedSecretUpdateMongodb); - LogzIoLogForwardingConfig.initialize(this); + RotatedSecretUpdateMongodb.initialize(this, name); } /** * Initializes the fields of this object. @@ -93400,140 +170086,123 @@ var LogzIoLogForwardingConfig = /*#__PURE__*/function () { */ - _createClass(LogzIoLogForwardingConfig, null, [{ + _createClass(RotatedSecretUpdateMongodb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a LogzIoLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateMongodb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LogzIoLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/LogzIoLogForwardingConfig} The populated LogzIoLogForwardingConfig instance. + * @param {module:model/RotatedSecretUpdateMongodb} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateMongodb} The populated RotatedSecretUpdateMongodb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new LogzIoLogForwardingConfig(); + obj = obj || new RotatedSecretUpdateMongodb(); - if (data.hasOwnProperty('target_logz_io_protocol')) { - obj['target_logz_io_protocol'] = _ApiClient["default"].convertToType(data['target_logz_io_protocol'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('target_logz_io_token')) { - obj['target_logz_io_token'] = _ApiClient["default"].convertToType(data['target_logz_io_token'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - - return obj; - } - }]); - - return LogzIoLogForwardingConfig; -}(); -/** - * @member {String} target_logz_io_protocol - */ - - -LogzIoLogForwardingConfig.prototype['target_logz_io_protocol'] = undefined; -/** - * @member {String} target_logz_io_token - */ -LogzIoLogForwardingConfig.prototype['target_logz_io_token'] = undefined; -var _default = LogzIoLogForwardingConfig; -exports["default"] = _default; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -/***/ 46988: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -/** - * The MigrationGeneral model module. - * @module model/MigrationGeneral - * @version 3.3.16 - */ -var MigrationGeneral = /*#__PURE__*/function () { - /** - * Constructs a new MigrationGeneral. - * @alias module:model/MigrationGeneral - */ - function MigrationGeneral() { - _classCallCheck(this, MigrationGeneral); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - MigrationGeneral.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - _createClass(MigrationGeneral, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationGeneral from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationGeneral} obj Optional instance to populate. - * @return {module:model/MigrationGeneral} The populated MigrationGeneral instance. - */ + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationGeneral(); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); } - if (data.hasOwnProperty('new_name')) { - obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('prefix')) { - obj['prefix'] = _ApiClient["default"].convertToType(data['prefix'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -93541,159 +170210,170 @@ var MigrationGeneral = /*#__PURE__*/function () { } }]); - return MigrationGeneral; + return RotatedSecretUpdateMongodb; }(); /** - * @member {String} id + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -MigrationGeneral.prototype['id'] = undefined; +RotatedSecretUpdateMongodb.prototype['add-tag'] = undefined; /** - * @member {String} name + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -MigrationGeneral.prototype['name'] = undefined; +RotatedSecretUpdateMongodb.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {String} new_name + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -MigrationGeneral.prototype['new_name'] = undefined; +RotatedSecretUpdateMongodb.prototype['auto-rotate'] = undefined; /** - * @member {String} prefix + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -MigrationGeneral.prototype['prefix'] = undefined; +RotatedSecretUpdateMongodb.prototype['delete_protection'] = undefined; /** - * @member {String} protection_key + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -MigrationGeneral.prototype['protection_key'] = undefined; +RotatedSecretUpdateMongodb.prototype['description'] = 'default_metadata'; /** - * @member {String} status + * Set output format to JSON + * @member {Boolean} json + * @default false */ -MigrationGeneral.prototype['status'] = undefined; +RotatedSecretUpdateMongodb.prototype['json'] = false; /** - * @member {String} type + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -MigrationGeneral.prototype['type'] = undefined; -var _default = MigrationGeneral; -exports["default"] = _default; - -/***/ }), - -/***/ 31951: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretUpdateMongodb.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretUpdateMongodb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdateMongodb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ +RotatedSecretUpdateMongodb.prototype['name'] = undefined; /** - * The MigrationItems model module. - * @module model/MigrationItems - * @version 3.3.16 + * New item name + * @member {String} new-name */ -var MigrationItems = /*#__PURE__*/function () { - /** - * Constructs a new MigrationItems. - * @alias module:model/MigrationItems - */ - function MigrationItems() { - _classCallCheck(this, MigrationItems); - MigrationItems.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateMongodb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ +RotatedSecretUpdateMongodb.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - _createClass(MigrationItems, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationItems from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationItems} obj Optional instance to populate. - * @return {module:model/MigrationItems} The populated MigrationItems instance. - */ +RotatedSecretUpdateMongodb.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationItems(); +RotatedSecretUpdateMongodb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - if (data.hasOwnProperty('failed')) { - obj['failed'] = _ApiClient["default"].convertToType(data['failed'], 'Number'); - } +RotatedSecretUpdateMongodb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - if (data.hasOwnProperty('migrated')) { - obj['migrated'] = _ApiClient["default"].convertToType(data['migrated'], 'Number'); - } +RotatedSecretUpdateMongodb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - if (data.hasOwnProperty('skipped')) { - obj['skipped'] = _ApiClient["default"].convertToType(data['skipped'], 'Number'); - } +RotatedSecretUpdateMongodb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (data.hasOwnProperty('total')) { - obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); - } - } +RotatedSecretUpdateMongodb.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - return obj; - } - }]); +RotatedSecretUpdateMongodb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - return MigrationItems; -}(); +RotatedSecretUpdateMongodb.prototype['secure-access-db-name'] = undefined; /** - * @member {Number} failed + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ +RotatedSecretUpdateMongodb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -MigrationItems.prototype['failed'] = undefined; +RotatedSecretUpdateMongodb.prototype['secure-access-host'] = undefined; /** - * @member {Number} migrated + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -MigrationItems.prototype['migrated'] = undefined; +RotatedSecretUpdateMongodb.prototype['secure-access-web'] = false; /** - * @member {Number} skipped + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -MigrationItems.prototype['skipped'] = undefined; +RotatedSecretUpdateMongodb.prototype['token'] = undefined; /** - * @member {Number} total + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -MigrationItems.prototype['total'] = undefined; -var _default = MigrationItems; +RotatedSecretUpdateMongodb.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateMongodb; exports["default"] = _default; /***/ }), -/***/ 59937: +/***/ 71665: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -93704,7 +170384,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -93715,19 +170395,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The MigrationStatus model module. - * @module model/MigrationStatus - * @version 3.3.16 + * The RotatedSecretUpdateMssql model module. + * @module model/RotatedSecretUpdateMssql + * @version 3.6.3 */ -var MigrationStatus = /*#__PURE__*/function () { +var RotatedSecretUpdateMssql = /*#__PURE__*/function () { /** - * Constructs a new MigrationStatus. - * @alias module:model/MigrationStatus + * Constructs a new RotatedSecretUpdateMssql. + * @alias module:model/RotatedSecretUpdateMssql + * @param name {String} Rotated secret name */ - function MigrationStatus() { - _classCallCheck(this, MigrationStatus); + function RotatedSecretUpdateMssql(name) { + _classCallCheck(this, RotatedSecretUpdateMssql); - MigrationStatus.initialize(this); + RotatedSecretUpdateMssql.initialize(this, name); } /** * Initializes the fields of this object. @@ -93736,185 +170417,127 @@ var MigrationStatus = /*#__PURE__*/function () { */ - _createClass(MigrationStatus, null, [{ + _createClass(RotatedSecretUpdateMssql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a MigrationStatus from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateMssql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationStatus} obj Optional instance to populate. - * @return {module:model/MigrationStatus} The populated MigrationStatus instance. + * @param {module:model/RotatedSecretUpdateMssql} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateMssql} The populated RotatedSecretUpdateMssql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new MigrationStatus(); + obj = obj || new RotatedSecretUpdateMssql(); - if (data.hasOwnProperty('last_messages')) { - obj['last_messages'] = _ApiClient["default"].convertToType(data['last_messages'], { - 'String': 'String' - }); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('last_reports')) { - obj['last_reports'] = _ApiClient["default"].convertToType(data['last_reports'], { - 'String': 'String' - }); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('last_statuses')) { - obj['last_statuses'] = _ApiClient["default"].convertToType(data['last_statuses'], { - 'String': 'String' - }); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - } - - return obj; - } - }]); - - return MigrationStatus; -}(); -/** - * @member {Object.} last_messages - */ - - -MigrationStatus.prototype['last_messages'] = undefined; -/** - * @member {Object.} last_reports - */ - -MigrationStatus.prototype['last_reports'] = undefined; -/** - * @member {Object.} last_statuses - */ - -MigrationStatus.prototype['last_statuses'] = undefined; -var _default = MigrationStatus; -exports["default"] = _default; - -/***/ }), - -/***/ 41309: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); -var _MigrationItems = _interopRequireDefault(__nccwpck_require__(31951)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -/** - * The MigrationStatusReplyObj model module. - * @module model/MigrationStatusReplyObj - * @version 3.3.16 - */ -var MigrationStatusReplyObj = /*#__PURE__*/function () { - /** - * Constructs a new MigrationStatusReplyObj. - * @alias module:model/MigrationStatusReplyObj - */ - function MigrationStatusReplyObj() { - _classCallCheck(this, MigrationStatusReplyObj); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - MigrationStatusReplyObj.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - _createClass(MigrationStatusReplyObj, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationStatusReplyObj from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationStatusReplyObj} obj Optional instance to populate. - * @return {module:model/MigrationStatusReplyObj} The populated MigrationStatusReplyObj instance. - */ + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationStatusReplyObj(); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - if (data.hasOwnProperty('duration_time')) { - obj['duration_time'] = _ApiClient["default"].convertToType(data['duration_time'], 'String'); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - if (data.hasOwnProperty('error')) { - obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - if (data.hasOwnProperty('last_status_message')) { - obj['last_status_message'] = _ApiClient["default"].convertToType(data['last_status_message'], 'String'); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - if (data.hasOwnProperty('max_name_length')) { - obj['max_name_length'] = _ApiClient["default"].convertToType(data['max_name_length'], 'Number'); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - if (data.hasOwnProperty('max_value_length')) { - obj['max_value_length'] = _ApiClient["default"].convertToType(data['max_value_length'], 'Number'); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - if (data.hasOwnProperty('migration_id')) { - obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - if (data.hasOwnProperty('migration_items')) { - obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); } - if (data.hasOwnProperty('migration_state')) { - obj['migration_state'] = _ApiClient["default"].convertToType(data['migration_state'], 'String'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } - if (data.hasOwnProperty('migration_type')) { - obj['migration_type'] = _ApiClient["default"].convertToType(data['migration_type'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('migration_type_name')) { - obj['migration_type_name'] = _ApiClient["default"].convertToType(data['migration_type_name'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('rotated_secrets')) { - obj['rotated_secrets'] = _MigrationItems["default"].constructFromObject(data['rotated_secrets']); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('start_time')) { - obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('targets')) { - obj['targets'] = _MigrationItems["default"].constructFromObject(data['targets']); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -93922,185 +170545,176 @@ var MigrationStatusReplyObj = /*#__PURE__*/function () { } }]); - return MigrationStatusReplyObj; + return RotatedSecretUpdateMssql; }(); /** - * @member {String} duration_time + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -MigrationStatusReplyObj.prototype['duration_time'] = undefined; +RotatedSecretUpdateMssql.prototype['add-tag'] = undefined; /** - * @member {String} error + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -MigrationStatusReplyObj.prototype['error'] = undefined; +RotatedSecretUpdateMssql.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {String} last_status_message + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -MigrationStatusReplyObj.prototype['last_status_message'] = undefined; +RotatedSecretUpdateMssql.prototype['auto-rotate'] = undefined; /** - * @member {Number} max_name_length + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -MigrationStatusReplyObj.prototype['max_name_length'] = undefined; +RotatedSecretUpdateMssql.prototype['delete_protection'] = undefined; /** - * @member {Number} max_value_length + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -MigrationStatusReplyObj.prototype['max_value_length'] = undefined; +RotatedSecretUpdateMssql.prototype['description'] = 'default_metadata'; /** - * @member {String} migration_id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -MigrationStatusReplyObj.prototype['migration_id'] = undefined; +RotatedSecretUpdateMssql.prototype['json'] = false; /** - * @member {module:model/MigrationItems} migration_items + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -MigrationStatusReplyObj.prototype['migration_items'] = undefined; +RotatedSecretUpdateMssql.prototype['keep-prev-version'] = undefined; /** - * @member {String} migration_name + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -MigrationStatusReplyObj.prototype['migration_name'] = undefined; +RotatedSecretUpdateMssql.prototype['key'] = undefined; /** - * @member {String} migration_state + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -MigrationStatusReplyObj.prototype['migration_state'] = undefined; +RotatedSecretUpdateMssql.prototype['max-versions'] = undefined; /** - * @member {String} migration_type + * Rotated secret name + * @member {String} name */ -MigrationStatusReplyObj.prototype['migration_type'] = undefined; +RotatedSecretUpdateMssql.prototype['name'] = undefined; /** - * @member {String} migration_type_name + * New item name + * @member {String} new-name */ -MigrationStatusReplyObj.prototype['migration_type_name'] = undefined; +RotatedSecretUpdateMssql.prototype['new-name'] = undefined; /** - * @member {module:model/MigrationItems} rotated_secrets + * The length of the password to be generated + * @member {String} password-length */ -MigrationStatusReplyObj.prototype['rotated_secrets'] = undefined; +RotatedSecretUpdateMssql.prototype['password-length'] = undefined; /** - * @member {String} start_time + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -MigrationStatusReplyObj.prototype['start_time'] = undefined; +RotatedSecretUpdateMssql.prototype['rm-tag'] = undefined; /** - * @member {module:model/MigrationItems} targets + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' */ -MigrationStatusReplyObj.prototype['targets'] = undefined; -var _default = MigrationStatusReplyObj; -exports["default"] = _default; - -/***/ }), - -/***/ 30120: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +RotatedSecretUpdateMssql.prototype['rotate-after-disconnect'] = 'false'; /** - * The MigrationsConfigLastChange model module. - * @module model/MigrationsConfigLastChange - * @version 3.3.16 + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password */ -var MigrationsConfigLastChange = /*#__PURE__*/function () { - /** - * Constructs a new MigrationsConfigLastChange. - * @alias module:model/MigrationsConfigLastChange - */ - function MigrationsConfigLastChange() { - _classCallCheck(this, MigrationsConfigLastChange); - - MigrationsConfigLastChange.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateMssql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - _createClass(MigrationsConfigLastChange, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationsConfigLastChange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationsConfigLastChange} obj Optional instance to populate. - * @return {module:model/MigrationsConfigLastChange} The populated MigrationsConfigLastChange instance. - */ +RotatedSecretUpdateMssql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationsConfigLastChange(); +RotatedSecretUpdateMssql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (data.hasOwnProperty('changed_migrations')) { - obj['changed_migrations'] = _ApiClient["default"].convertToType(data['changed_migrations'], ['String']); - } +RotatedSecretUpdateMssql.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (data.hasOwnProperty('created_migrations')) { - obj['created_migrations'] = _ApiClient["default"].convertToType(data['created_migrations'], ['String']); - } +RotatedSecretUpdateMssql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - if (data.hasOwnProperty('deleted_migrations')) { - obj['deleted_migrations'] = _ApiClient["default"].convertToType(data['deleted_migrations'], ['String']); - } - } +RotatedSecretUpdateMssql.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - return obj; - } - }]); +RotatedSecretUpdateMssql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - return MigrationsConfigLastChange; -}(); +RotatedSecretUpdateMssql.prototype['secure-access-enable'] = undefined; /** - * @member {Array.} changed_migrations + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ +RotatedSecretUpdateMssql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -MigrationsConfigLastChange.prototype['changed_migrations'] = undefined; +RotatedSecretUpdateMssql.prototype['secure-access-web'] = false; /** - * @member {Array.} created_migrations + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -MigrationsConfigLastChange.prototype['created_migrations'] = undefined; +RotatedSecretUpdateMssql.prototype['token'] = undefined; /** - * @member {Array.} deleted_migrations + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -MigrationsConfigLastChange.prototype['deleted_migrations'] = undefined; -var _default = MigrationsConfigLastChange; +RotatedSecretUpdateMssql.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateMssql; exports["default"] = _default; /***/ }), -/***/ 11237: +/***/ 91735: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -94111,25 +170725,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(57803)); - -var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(63519)); - -var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(92600)); - -var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(32232)); - -var _HashiMigration = _interopRequireDefault(__nccwpck_require__(97395)); - -var _K8SMigration = _interopRequireDefault(__nccwpck_require__(39305)); - -var _MockMigration = _interopRequireDefault(__nccwpck_require__(99984)); - -var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(56346)); - -var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(89198)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -94140,19 +170736,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The MigrationsConfigPart model module. - * @module model/MigrationsConfigPart - * @version 3.3.16 + * The RotatedSecretUpdateMysql model module. + * @module model/RotatedSecretUpdateMysql + * @version 3.6.3 */ -var MigrationsConfigPart = /*#__PURE__*/function () { +var RotatedSecretUpdateMysql = /*#__PURE__*/function () { /** - * Constructs a new MigrationsConfigPart. - * @alias module:model/MigrationsConfigPart + * Constructs a new RotatedSecretUpdateMysql. + * @alias module:model/RotatedSecretUpdateMysql + * @param name {String} Rotated secret name */ - function MigrationsConfigPart() { - _classCallCheck(this, MigrationsConfigPart); + function RotatedSecretUpdateMysql(name) { + _classCallCheck(this, RotatedSecretUpdateMysql); - MigrationsConfigPart.initialize(this); + RotatedSecretUpdateMysql.initialize(this, name); } /** * Initializes the fields of this object. @@ -94161,57 +170758,123 @@ var MigrationsConfigPart = /*#__PURE__*/function () { */ - _createClass(MigrationsConfigPart, null, [{ + _createClass(RotatedSecretUpdateMysql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a MigrationsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateMysql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationsConfigPart} obj Optional instance to populate. - * @return {module:model/MigrationsConfigPart} The populated MigrationsConfigPart instance. + * @param {module:model/RotatedSecretUpdateMysql} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateMysql} The populated RotatedSecretUpdateMysql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new MigrationsConfigPart(); + obj = obj || new RotatedSecretUpdateMysql(); - if (data.hasOwnProperty('active_directory_migrations')) { - obj['active_directory_migrations'] = _ApiClient["default"].convertToType(data['active_directory_migrations'], [_ActiveDirectoryMigration["default"]]); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('aws_secrets_migrations')) { - obj['aws_secrets_migrations'] = _ApiClient["default"].convertToType(data['aws_secrets_migrations'], [_AWSSecretsMigration["default"]]); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('azure_kv_migrations')) { - obj['azure_kv_migrations'] = _ApiClient["default"].convertToType(data['azure_kv_migrations'], [_AzureKeyVaultMigration["default"]]); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('gcp_secrets_migrations')) { - obj['gcp_secrets_migrations'] = _ApiClient["default"].convertToType(data['gcp_secrets_migrations'], [_GCPSecretsMigration["default"]]); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('hashi_migrations')) { - obj['hashi_migrations'] = _ApiClient["default"].convertToType(data['hashi_migrations'], [_HashiMigration["default"]]); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('k8s_migrations')) { - obj['k8s_migrations'] = _ApiClient["default"].convertToType(data['k8s_migrations'], [_K8SMigration["default"]]); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mock_migrations')) { - obj['mock_migrations'] = _ApiClient["default"].convertToType(data['mock_migrations'], [_MockMigration["default"]]); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('one_password_migrations')) { - obj['one_password_migrations'] = _ApiClient["default"].convertToType(data['one_password_migrations'], [_OnePasswordMigration["default"]]); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('server_inventory_migrations')) { - obj['server_inventory_migrations'] = _ApiClient["default"].convertToType(data['server_inventory_migrations'], [_ServerInventoryMigration["default"]]); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -94219,155 +170882,170 @@ var MigrationsConfigPart = /*#__PURE__*/function () { } }]); - return MigrationsConfigPart; + return RotatedSecretUpdateMysql; }(); /** - * @member {Array.} active_directory_migrations + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -MigrationsConfigPart.prototype['active_directory_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['add-tag'] = undefined; /** - * @member {Array.} aws_secrets_migrations + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -MigrationsConfigPart.prototype['aws_secrets_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {Array.} azure_kv_migrations + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -MigrationsConfigPart.prototype['azure_kv_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['auto-rotate'] = undefined; /** - * @member {Array.} gcp_secrets_migrations + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -MigrationsConfigPart.prototype['gcp_secrets_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['delete_protection'] = undefined; /** - * @member {Array.} hashi_migrations + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -MigrationsConfigPart.prototype['hashi_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['description'] = 'default_metadata'; /** - * @member {Array.} k8s_migrations + * Set output format to JSON + * @member {Boolean} json + * @default false */ -MigrationsConfigPart.prototype['k8s_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['json'] = false; /** - * @member {Array.} mock_migrations + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -MigrationsConfigPart.prototype['mock_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['keep-prev-version'] = undefined; /** - * @member {Array.} one_password_migrations + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -MigrationsConfigPart.prototype['one_password_migrations'] = undefined; +RotatedSecretUpdateMysql.prototype['key'] = undefined; /** - * @member {Array.} server_inventory_migrations + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -MigrationsConfigPart.prototype['server_inventory_migrations'] = undefined; -var _default = MigrationsConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 99984: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); - -var _MockPayload = _interopRequireDefault(__nccwpck_require__(84668)); +RotatedSecretUpdateMysql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretUpdateMysql.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretUpdateMysql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretUpdateMysql.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdateMysql.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ +RotatedSecretUpdateMysql.prototype['rotate-after-disconnect'] = 'false'; /** - * The MockMigration model module. - * @module model/MockMigration - * @version 3.3.16 + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password */ -var MockMigration = /*#__PURE__*/function () { - /** - * Constructs a new MockMigration. - * @alias module:model/MockMigration - */ - function MockMigration() { - _classCallCheck(this, MockMigration); - MockMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateMysql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ +RotatedSecretUpdateMysql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - _createClass(MockMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MockMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MockMigration} obj Optional instance to populate. - * @return {module:model/MockMigration} The populated MockMigration instance. - */ +RotatedSecretUpdateMysql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MockMigration(); +RotatedSecretUpdateMysql.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } +RotatedSecretUpdateMysql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - if (data.hasOwnProperty('payload')) { - obj['payload'] = _MockPayload["default"].constructFromObject(data['payload']); - } - } +RotatedSecretUpdateMysql.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - return obj; - } - }]); +RotatedSecretUpdateMysql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - return MockMigration; -}(); +RotatedSecretUpdateMysql.prototype['secure-access-host'] = undefined; /** - * @member {module:model/MigrationGeneral} general + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ +RotatedSecretUpdateMysql.prototype['secure-access-web'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -MockMigration.prototype['general'] = undefined; +RotatedSecretUpdateMysql.prototype['token'] = undefined; /** - * @member {module:model/MockPayload} payload + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -MockMigration.prototype['payload'] = undefined; -var _default = MockMigration; +RotatedSecretUpdateMysql.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateMysql; exports["default"] = _default; /***/ }), -/***/ 84668: +/***/ 60069: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -94378,7 +171056,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -94389,19 +171067,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The MockPayload model module. - * @module model/MockPayload - * @version 3.3.16 + * The RotatedSecretUpdateOracledb model module. + * @module model/RotatedSecretUpdateOracledb + * @version 3.6.3 */ -var MockPayload = /*#__PURE__*/function () { +var RotatedSecretUpdateOracledb = /*#__PURE__*/function () { /** - * Constructs a new MockPayload. - * @alias module:model/MockPayload + * Constructs a new RotatedSecretUpdateOracledb. + * @alias module:model/RotatedSecretUpdateOracledb + * @param name {String} Rotated secret name */ - function MockPayload() { - _classCallCheck(this, MockPayload); + function RotatedSecretUpdateOracledb(name) { + _classCallCheck(this, RotatedSecretUpdateOracledb); - MockPayload.initialize(this); + RotatedSecretUpdateOracledb.initialize(this, name); } /** * Initializes the fields of this object. @@ -94410,147 +171089,119 @@ var MockPayload = /*#__PURE__*/function () { */ - _createClass(MockPayload, null, [{ + _createClass(RotatedSecretUpdateOracledb, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a MockPayload from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateOracledb from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MockPayload} obj Optional instance to populate. - * @return {module:model/MockPayload} The populated MockPayload instance. + * @param {module:model/RotatedSecretUpdateOracledb} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateOracledb} The populated RotatedSecretUpdateOracledb instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new MockPayload(); + obj = obj || new RotatedSecretUpdateOracledb(); - if (data.hasOwnProperty('vaults')) { - obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - } - - return obj; - } - }]); - - return MockPayload; -}(); -/** - * @member {Array.} vaults - */ - - -MockPayload.prototype['vaults'] = undefined; -var _default = MockPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 33716: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/** - * The MongoDBTargetDetails model module. - * @module model/MongoDBTargetDetails - * @version 3.3.16 - */ -var MongoDBTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new MongoDBTargetDetails. - * @alias module:model/MongoDBTargetDetails - */ - function MongoDBTargetDetails() { - _classCallCheck(this, MongoDBTargetDetails); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - MongoDBTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - _createClass(MongoDBTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MongoDBTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MongoDBTargetDetails} obj Optional instance to populate. - * @return {module:model/MongoDBTargetDetails} The populated MongoDBTargetDetails instance. - */ + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MongoDBTargetDetails(); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { - obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { - obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - if (data.hasOwnProperty('mongodb_atlas_project_id')) { - obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - if (data.hasOwnProperty('mongodb_db_name')) { - obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - if (data.hasOwnProperty('mongodb_default_auth_db')) { - obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - if (data.hasOwnProperty('mongodb_host_port')) { - obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); } - if (data.hasOwnProperty('mongodb_is_atlas')) { - obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('mongodb_password')) { - obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('mongodb_uri_connection')) { - obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('mongodb_uri_options')) { - obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('mongodb_username')) { - obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -94558,73 +171209,164 @@ var MongoDBTargetDetails = /*#__PURE__*/function () { } }]); - return MongoDBTargetDetails; + return RotatedSecretUpdateOracledb; }(); /** - * @member {String} mongodb_atlas_api_private_key + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -MongoDBTargetDetails.prototype['mongodb_atlas_api_private_key'] = undefined; +RotatedSecretUpdateOracledb.prototype['add-tag'] = undefined; /** - * @member {String} mongodb_atlas_api_public_key + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -MongoDBTargetDetails.prototype['mongodb_atlas_api_public_key'] = undefined; +RotatedSecretUpdateOracledb.prototype['authentication-credentials'] = 'use-user-creds'; /** - * mongodb atlas fields - * @member {String} mongodb_atlas_project_id + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -MongoDBTargetDetails.prototype['mongodb_atlas_project_id'] = undefined; +RotatedSecretUpdateOracledb.prototype['auto-rotate'] = undefined; /** - * common fields - * @member {String} mongodb_db_name + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -MongoDBTargetDetails.prototype['mongodb_db_name'] = undefined; +RotatedSecretUpdateOracledb.prototype['delete_protection'] = undefined; /** - * @member {String} mongodb_default_auth_db + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -MongoDBTargetDetails.prototype['mongodb_default_auth_db'] = undefined; +RotatedSecretUpdateOracledb.prototype['description'] = 'default_metadata'; /** - * @member {String} mongodb_host_port + * Set output format to JSON + * @member {Boolean} json + * @default false */ -MongoDBTargetDetails.prototype['mongodb_host_port'] = undefined; +RotatedSecretUpdateOracledb.prototype['json'] = false; /** - * @member {Boolean} mongodb_is_atlas + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -MongoDBTargetDetails.prototype['mongodb_is_atlas'] = undefined; +RotatedSecretUpdateOracledb.prototype['keep-prev-version'] = undefined; /** - * @member {String} mongodb_password + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -MongoDBTargetDetails.prototype['mongodb_password'] = undefined; +RotatedSecretUpdateOracledb.prototype['key'] = undefined; /** - * mongodb fields - * @member {String} mongodb_uri_connection + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -MongoDBTargetDetails.prototype['mongodb_uri_connection'] = undefined; +RotatedSecretUpdateOracledb.prototype['max-versions'] = undefined; /** - * @member {String} mongodb_uri_options + * Rotated secret name + * @member {String} name */ -MongoDBTargetDetails.prototype['mongodb_uri_options'] = undefined; +RotatedSecretUpdateOracledb.prototype['name'] = undefined; /** - * @member {String} mongodb_username + * New item name + * @member {String} new-name */ -MongoDBTargetDetails.prototype['mongodb_username'] = undefined; -var _default = MongoDBTargetDetails; +RotatedSecretUpdateOracledb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretUpdateOracledb.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +RotatedSecretUpdateOracledb.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretUpdateOracledb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretUpdateOracledb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretUpdateOracledb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretUpdateOracledb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretUpdateOracledb.prototype['rotation-interval'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +RotatedSecretUpdateOracledb.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretUpdateOracledb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretUpdateOracledb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretUpdateOracledb.prototype['secure-access-web'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretUpdateOracledb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretUpdateOracledb.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateOracledb; exports["default"] = _default; /***/ }), -/***/ 55896: +/***/ 75288: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -94635,7 +171377,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -94646,21 +171388,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The MoveObjects model module. - * @module model/MoveObjects - * @version 3.3.16 + * The RotatedSecretUpdateOutput model module. + * @module model/RotatedSecretUpdateOutput + * @version 3.6.3 */ -var MoveObjects = /*#__PURE__*/function () { +var RotatedSecretUpdateOutput = /*#__PURE__*/function () { /** - * Constructs a new MoveObjects. - * @alias module:model/MoveObjects - * @param source {String} Source path to move the objects from - * @param target {String} Target path to move the objects to + * Constructs a new RotatedSecretUpdateOutput. + * @alias module:model/RotatedSecretUpdateOutput */ - function MoveObjects(source, target) { - _classCallCheck(this, MoveObjects); + function RotatedSecretUpdateOutput() { + _classCallCheck(this, RotatedSecretUpdateOutput); - MoveObjects.initialize(this, source, target); + RotatedSecretUpdateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -94669,48 +171409,25 @@ var MoveObjects = /*#__PURE__*/function () { */ - _createClass(MoveObjects, null, [{ + _createClass(RotatedSecretUpdateOutput, null, [{ key: "initialize", - value: function initialize(obj, source, target) { - obj['source'] = source; - obj['target'] = target; - } + value: function initialize(obj) {} /** - * Constructs a MoveObjects from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MoveObjects} obj Optional instance to populate. - * @return {module:model/MoveObjects} The populated MoveObjects instance. + * @param {module:model/RotatedSecretUpdateOutput} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateOutput} The populated RotatedSecretUpdateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new MoveObjects(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('objects-type')) { - obj['objects-type'] = _ApiClient["default"].convertToType(data['objects-type'], 'String'); - } - - if (data.hasOwnProperty('source')) { - obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String'); - } + obj = obj || new RotatedSecretUpdateOutput(); - if (data.hasOwnProperty('target')) { - obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -94718,53 +171435,20 @@ var MoveObjects = /*#__PURE__*/function () { } }]); - return MoveObjects; + return RotatedSecretUpdateOutput; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -MoveObjects.prototype['json'] = false; -/** - * The objects type to move (item/auth_method/role) - * @member {String} objects-type - * @default 'item' - */ - -MoveObjects.prototype['objects-type'] = 'item'; -/** - * Source path to move the objects from - * @member {String} source - */ - -MoveObjects.prototype['source'] = undefined; -/** - * Target path to move the objects to - * @member {String} target - */ - -MoveObjects.prototype['target'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} name */ -MoveObjects.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -MoveObjects.prototype['uid-token'] = undefined; -var _default = MoveObjects; +RotatedSecretUpdateOutput.prototype['name'] = undefined; +var _default = RotatedSecretUpdateOutput; exports["default"] = _default; /***/ }), -/***/ 47654: +/***/ 78599: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -94775,9 +171459,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(83895)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -94788,20 +171470,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Name model module. - * @module model/Name - * @version 3.3.16 + * The RotatedSecretUpdatePostgresql model module. + * @module model/RotatedSecretUpdatePostgresql + * @version 3.6.3 */ -var Name = /*#__PURE__*/function () { +var RotatedSecretUpdatePostgresql = /*#__PURE__*/function () { /** - * Constructs a new Name. - * Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure. If an accurate representation is needed, asn1.Unmarshal the raw subject or issuer as an RDNSequence. - * @alias module:model/Name + * Constructs a new RotatedSecretUpdatePostgresql. + * @alias module:model/RotatedSecretUpdatePostgresql + * @param name {String} Rotated secret name */ - function Name() { - _classCallCheck(this, Name); + function RotatedSecretUpdatePostgresql(name) { + _classCallCheck(this, RotatedSecretUpdatePostgresql); - Name.initialize(this); + RotatedSecretUpdatePostgresql.initialize(this, name); } /** * Initializes the fields of this object. @@ -94810,45 +171492,127 @@ var Name = /*#__PURE__*/function () { */ - _createClass(Name, null, [{ + _createClass(RotatedSecretUpdatePostgresql, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a Name from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdatePostgresql from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Name} obj Optional instance to populate. - * @return {module:model/Name} The populated Name instance. + * @param {module:model/RotatedSecretUpdatePostgresql} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdatePostgresql} The populated RotatedSecretUpdatePostgresql instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Name(); + obj = obj || new RotatedSecretUpdatePostgresql(); - if (data.hasOwnProperty('Country')) { - obj['Country'] = _ApiClient["default"].convertToType(data['Country'], ['String']); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('ExtraNames')) { - obj['ExtraNames'] = _ApiClient["default"].convertToType(data['ExtraNames'], [_AttributeTypeAndValue["default"]]); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('Locality')) { - obj['Locality'] = _ApiClient["default"].convertToType(data['Locality'], ['String']); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('Names')) { - obj['Names'] = _ApiClient["default"].convertToType(data['Names'], [_AttributeTypeAndValue["default"]]); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('SerialNumber')) { - obj['SerialNumber'] = _ApiClient["default"].convertToType(data['SerialNumber'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('StreetAddress')) { - obj['StreetAddress'] = _ApiClient["default"].convertToType(data['StreetAddress'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -94856,156 +171620,176 @@ var Name = /*#__PURE__*/function () { } }]); - return Name; + return RotatedSecretUpdatePostgresql; }(); /** - * @member {Array.} Country + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -Name.prototype['Country'] = undefined; +RotatedSecretUpdatePostgresql.prototype['add-tag'] = undefined; /** - * ExtraNames contains attributes to be copied, raw, into any marshaled distinguished names. Values override any attributes with the same OID. The ExtraNames field is not populated when parsing, see Names. - * @member {Array.} ExtraNames + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -Name.prototype['ExtraNames'] = undefined; +RotatedSecretUpdatePostgresql.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {Array.} Locality + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -Name.prototype['Locality'] = undefined; +RotatedSecretUpdatePostgresql.prototype['auto-rotate'] = undefined; /** - * Names contains all parsed attributes. When parsing distinguished names, this can be used to extract non-standard attributes that are not parsed by this package. When marshaling to RDNSequences, the Names field is ignored, see ExtraNames. - * @member {Array.} Names + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -Name.prototype['Names'] = undefined; +RotatedSecretUpdatePostgresql.prototype['delete_protection'] = undefined; /** - * @member {String} SerialNumber + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -Name.prototype['SerialNumber'] = undefined; +RotatedSecretUpdatePostgresql.prototype['description'] = 'default_metadata'; /** - * @member {Array.} StreetAddress + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Name.prototype['StreetAddress'] = undefined; -var _default = Name; -exports["default"] = _default; - -/***/ }), - -/***/ 63497: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +RotatedSecretUpdatePostgresql.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretUpdatePostgresql.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretUpdatePostgresql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretUpdatePostgresql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdatePostgresql.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ +RotatedSecretUpdatePostgresql.prototype['new-name'] = undefined; /** - * The NativeK8sTargetDetails model module. - * @module model/NativeK8sTargetDetails - * @version 3.3.16 + * The length of the password to be generated + * @member {String} password-length */ -var NativeK8sTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new NativeK8sTargetDetails. - * @alias module:model/NativeK8sTargetDetails - */ - function NativeK8sTargetDetails() { - _classCallCheck(this, NativeK8sTargetDetails); - NativeK8sTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdatePostgresql.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ +RotatedSecretUpdatePostgresql.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - _createClass(NativeK8sTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a NativeK8sTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NativeK8sTargetDetails} obj Optional instance to populate. - * @return {module:model/NativeK8sTargetDetails} The populated NativeK8sTargetDetails instance. - */ +RotatedSecretUpdatePostgresql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NativeK8sTargetDetails(); +RotatedSecretUpdatePostgresql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - if (data.hasOwnProperty('k8s_bearer_token')) { - obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); - } +RotatedSecretUpdatePostgresql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { - obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); - } +RotatedSecretUpdatePostgresql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (data.hasOwnProperty('k8s_cluster_endpoint')) { - obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); - } +RotatedSecretUpdatePostgresql.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (data.hasOwnProperty('use_gw_service_account')) { - obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); - } - } +RotatedSecretUpdatePostgresql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - return obj; - } - }]); +RotatedSecretUpdatePostgresql.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - return NativeK8sTargetDetails; -}(); +RotatedSecretUpdatePostgresql.prototype['secure-access-db-schema'] = undefined; /** - * @member {String} k8s_bearer_token + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ +RotatedSecretUpdatePostgresql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -NativeK8sTargetDetails.prototype['k8s_bearer_token'] = undefined; +RotatedSecretUpdatePostgresql.prototype['secure-access-host'] = undefined; /** - * @member {String} k8s_cluster_ca_certificate + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -NativeK8sTargetDetails.prototype['k8s_cluster_ca_certificate'] = undefined; +RotatedSecretUpdatePostgresql.prototype['secure-access-web'] = false; /** - * @member {String} k8s_cluster_endpoint + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -NativeK8sTargetDetails.prototype['k8s_cluster_endpoint'] = undefined; +RotatedSecretUpdatePostgresql.prototype['token'] = undefined; /** - * @member {Boolean} use_gw_service_account + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -NativeK8sTargetDetails.prototype['use_gw_service_account'] = undefined; -var _default = NativeK8sTargetDetails; +RotatedSecretUpdatePostgresql.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdatePostgresql; exports["default"] = _default; /***/ }), -/***/ 25462: +/***/ 35770: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -95016,11 +171800,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _EmailEntry = _interopRequireDefault(__nccwpck_require__(36375)); - -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(97973)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -95031,19 +171811,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The NotiForwarder model module. - * @module model/NotiForwarder - * @version 3.3.16 + * The RotatedSecretUpdateRedis model module. + * @module model/RotatedSecretUpdateRedis + * @version 3.6.3 */ -var NotiForwarder = /*#__PURE__*/function () { +var RotatedSecretUpdateRedis = /*#__PURE__*/function () { /** - * Constructs a new NotiForwarder. - * @alias module:model/NotiForwarder + * Constructs a new RotatedSecretUpdateRedis. + * @alias module:model/RotatedSecretUpdateRedis + * @param name {String} Rotated secret name */ - function NotiForwarder() { - _classCallCheck(this, NotiForwarder); + function RotatedSecretUpdateRedis(name) { + _classCallCheck(this, RotatedSecretUpdateRedis); - NotiForwarder.initialize(this); + RotatedSecretUpdateRedis.initialize(this, name); } /** * Initializes the fields of this object. @@ -95052,101 +171833,99 @@ var NotiForwarder = /*#__PURE__*/function () { */ - _createClass(NotiForwarder, null, [{ + _createClass(RotatedSecretUpdateRedis, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a NotiForwarder from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateRedis from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NotiForwarder} obj Optional instance to populate. - * @return {module:model/NotiForwarder} The populated NotiForwarder instance. + * @param {module:model/RotatedSecretUpdateRedis} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateRedis} The populated RotatedSecretUpdateRedis instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new NotiForwarder(); - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } + obj = obj || new RotatedSecretUpdateRedis(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('endpoint')) { - obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('event_types')) { - obj['event_types'] = _ApiClient["default"].convertToType(data['event_types'], ['String']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('gateway_cluster_id')) { - obj['gateway_cluster_id'] = _ApiClient["default"].convertToType(data['gateway_cluster_id'], 'Number'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('is_enabled')) { - obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('last_version')) { - obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('noti_forwarder_id')) { - obj['noti_forwarder_id'] = _ApiClient["default"].convertToType(data['noti_forwarder_id'], 'Number'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('noti_forwarder_name')) { - obj['noti_forwarder_name'] = _ApiClient["default"].convertToType(data['noti_forwarder_name'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('noti_forwarder_type')) { - obj['noti_forwarder_type'] = _ApiClient["default"].convertToType(data['noti_forwarder_type'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('noti_forwarder_versions')) { - obj['noti_forwarder_versions'] = _ApiClient["default"].convertToType(data['noti_forwarder_versions'], [_ItemVersion["default"]]); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('paths')) { - obj['paths'] = _ApiClient["default"].convertToType(data['paths'], ['String']); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - if (data.hasOwnProperty('runner_type')) { - obj['runner_type'] = _ApiClient["default"].convertToType(data['runner_type'], 'String'); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - if (data.hasOwnProperty('timespan_in_seconds')) { - obj['timespan_in_seconds'] = _ApiClient["default"].convertToType(data['timespan_in_seconds'], 'Number'); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - if (data.hasOwnProperty('to_emails')) { - obj['to_emails'] = _ApiClient["default"].convertToType(data['to_emails'], [_EmailEntry["default"]]); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -95154,115 +171933,132 @@ var NotiForwarder = /*#__PURE__*/function () { } }]); - return NotiForwarder; + return RotatedSecretUpdateRedis; }(); /** - * @member {Array.} client_permissions + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -NotiForwarder.prototype['client_permissions'] = undefined; -/** - * @member {String} comment - */ - -NotiForwarder.prototype['comment'] = undefined; +RotatedSecretUpdateRedis.prototype['add-tag'] = undefined; /** - * @member {Date} creation_date + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -NotiForwarder.prototype['creation_date'] = undefined; +RotatedSecretUpdateRedis.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {String} endpoint + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -NotiForwarder.prototype['endpoint'] = undefined; +RotatedSecretUpdateRedis.prototype['auto-rotate'] = undefined; /** - * @member {Array.} event_types + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -NotiForwarder.prototype['event_types'] = undefined; +RotatedSecretUpdateRedis.prototype['delete_protection'] = undefined; /** - * @member {Number} gateway_cluster_id + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -NotiForwarder.prototype['gateway_cluster_id'] = undefined; +RotatedSecretUpdateRedis.prototype['description'] = 'default_metadata'; /** - * @member {Boolean} is_enabled + * Set output format to JSON + * @member {Boolean} json + * @default false */ -NotiForwarder.prototype['is_enabled'] = undefined; +RotatedSecretUpdateRedis.prototype['json'] = false; /** - * @member {Number} last_version + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -NotiForwarder.prototype['last_version'] = undefined; +RotatedSecretUpdateRedis.prototype['keep-prev-version'] = undefined; /** - * @member {Date} modification_date + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -NotiForwarder.prototype['modification_date'] = undefined; +RotatedSecretUpdateRedis.prototype['key'] = undefined; /** - * @member {Number} noti_forwarder_id + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -NotiForwarder.prototype['noti_forwarder_id'] = undefined; +RotatedSecretUpdateRedis.prototype['max-versions'] = undefined; /** - * @member {String} noti_forwarder_name + * Rotated secret name + * @member {String} name */ -NotiForwarder.prototype['noti_forwarder_name'] = undefined; +RotatedSecretUpdateRedis.prototype['name'] = undefined; /** - * @member {String} noti_forwarder_type + * New item name + * @member {String} new-name */ -NotiForwarder.prototype['noti_forwarder_type'] = undefined; +RotatedSecretUpdateRedis.prototype['new-name'] = undefined; /** - * @member {Array.} noti_forwarder_versions + * The length of the password to be generated + * @member {String} password-length */ -NotiForwarder.prototype['noti_forwarder_versions'] = undefined; +RotatedSecretUpdateRedis.prototype['password-length'] = undefined; /** - * @member {Array.} paths + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -NotiForwarder.prototype['paths'] = undefined; +RotatedSecretUpdateRedis.prototype['rm-tag'] = undefined; /** - * @member {String} protection_key + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password */ -NotiForwarder.prototype['protection_key'] = undefined; +RotatedSecretUpdateRedis.prototype['rotated-password'] = undefined; /** - * @member {String} runner_type + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username */ -NotiForwarder.prototype['runner_type'] = undefined; +RotatedSecretUpdateRedis.prototype['rotated-username'] = undefined; /** - * @member {Number} timespan_in_seconds + * The Hour of the rotation in UTC + * @member {Number} rotation-hour */ -NotiForwarder.prototype['timespan_in_seconds'] = undefined; +RotatedSecretUpdateRedis.prototype['rotation-hour'] = undefined; /** - * @member {Array.} to_emails + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval */ -NotiForwarder.prototype['to_emails'] = undefined; +RotatedSecretUpdateRedis.prototype['rotation-interval'] = undefined; /** - * @member {String} username + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -NotiForwarder.prototype['username'] = undefined; +RotatedSecretUpdateRedis.prototype['token'] = undefined; /** - * @member {Boolean} with_customer_fragment + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -NotiForwarder.prototype['with_customer_fragment'] = undefined; -var _default = NotiForwarder; +RotatedSecretUpdateRedis.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateRedis; exports["default"] = _default; /***/ }), -/***/ 69277: +/***/ 40264: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -95273,9 +172069,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(56909)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -95286,20 +172080,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The OAuth2AccessRules model module. - * @module model/OAuth2AccessRules - * @version 3.3.16 + * The RotatedSecretUpdateRedshift model module. + * @module model/RotatedSecretUpdateRedshift + * @version 3.6.3 */ -var OAuth2AccessRules = /*#__PURE__*/function () { +var RotatedSecretUpdateRedshift = /*#__PURE__*/function () { /** - * Constructs a new OAuth2AccessRules. - * OAuth2AccessRules contains access rules specific to OAuth2 authentication method. - * @alias module:model/OAuth2AccessRules + * Constructs a new RotatedSecretUpdateRedshift. + * @alias module:model/RotatedSecretUpdateRedshift + * @param name {String} Rotated secret name */ - function OAuth2AccessRules() { - _classCallCheck(this, OAuth2AccessRules); + function RotatedSecretUpdateRedshift(name) { + _classCallCheck(this, RotatedSecretUpdateRedshift); - OAuth2AccessRules.initialize(this); + RotatedSecretUpdateRedshift.initialize(this, name); } /** * Initializes the fields of this object. @@ -95308,49 +172102,115 @@ var OAuth2AccessRules = /*#__PURE__*/function () { */ - _createClass(OAuth2AccessRules, null, [{ + _createClass(RotatedSecretUpdateRedshift, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a OAuth2AccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateRedshift from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OAuth2AccessRules} obj Optional instance to populate. - * @return {module:model/OAuth2AccessRules} The populated OAuth2AccessRules instance. + * @param {module:model/RotatedSecretUpdateRedshift} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateRedshift} The populated RotatedSecretUpdateRedshift instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new OAuth2AccessRules(); + obj = obj || new RotatedSecretUpdateRedshift(); - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('bound_claims')) { - obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OAuth2CustomClaim["default"]]); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('bound_clients_id')) { - obj['bound_clients_id'] = _ApiClient["default"].convertToType(data['bound_clients_id'], ['String']); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('jwks_json_data')) { - obj['jwks_json_data'] = _ApiClient["default"].convertToType(data['jwks_json_data'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('jwks_uri')) { - obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -95358,149 +172218,157 @@ var OAuth2AccessRules = /*#__PURE__*/function () { } }]); - return OAuth2AccessRules; + return RotatedSecretUpdateRedshift; }(); /** - * The audience in the JWT. - * @member {String} audience + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -OAuth2AccessRules.prototype['audience'] = undefined; +RotatedSecretUpdateRedshift.prototype['add-tag'] = undefined; /** - * The claims that login is restricted to. - * @member {Array.} bound_claims + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -OAuth2AccessRules.prototype['bound_claims'] = undefined; +RotatedSecretUpdateRedshift.prototype['authentication-credentials'] = 'use-user-creds'; /** - * The clients ids that login is restricted to. - * @member {Array.} bound_clients_id + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -OAuth2AccessRules.prototype['bound_clients_id'] = undefined; +RotatedSecretUpdateRedshift.prototype['auto-rotate'] = undefined; /** - * Issuer URL - * @member {String} issuer + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -OAuth2AccessRules.prototype['issuer'] = undefined; +RotatedSecretUpdateRedshift.prototype['delete_protection'] = undefined; /** - * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string - * @member {String} jwks_json_data + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -OAuth2AccessRules.prototype['jwks_json_data'] = undefined; +RotatedSecretUpdateRedshift.prototype['description'] = 'default_metadata'; /** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks_uri + * Set output format to JSON + * @member {Boolean} json + * @default false */ -OAuth2AccessRules.prototype['jwks_uri'] = undefined; +RotatedSecretUpdateRedshift.prototype['json'] = false; /** - * A unique identifier to distinguish different users - * @member {String} unique_identifier + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -OAuth2AccessRules.prototype['unique_identifier'] = undefined; -var _default = OAuth2AccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 56909: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +RotatedSecretUpdateRedshift.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +RotatedSecretUpdateRedshift.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +RotatedSecretUpdateRedshift.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +RotatedSecretUpdateRedshift.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdateRedshift.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ +RotatedSecretUpdateRedshift.prototype['password-length'] = undefined; /** - * The OAuth2CustomClaim model module. - * @module model/OAuth2CustomClaim - * @version 3.3.16 + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -var OAuth2CustomClaim = /*#__PURE__*/function () { - /** - * Constructs a new OAuth2CustomClaim. - * OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method. - * @alias module:model/OAuth2CustomClaim - */ - function OAuth2CustomClaim() { - _classCallCheck(this, OAuth2CustomClaim); - OAuth2CustomClaim.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateRedshift.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ +RotatedSecretUpdateRedshift.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - _createClass(OAuth2CustomClaim, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OAuth2CustomClaim from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OAuth2CustomClaim} obj Optional instance to populate. - * @return {module:model/OAuth2CustomClaim} The populated OAuth2CustomClaim instance. - */ +RotatedSecretUpdateRedshift.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OAuth2CustomClaim(); +RotatedSecretUpdateRedshift.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +RotatedSecretUpdateRedshift.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (data.hasOwnProperty('values')) { - obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); - } - } +RotatedSecretUpdateRedshift.prototype['rotation-interval'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - return obj; - } - }]); +RotatedSecretUpdateRedshift.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - return OAuth2CustomClaim; -}(); +RotatedSecretUpdateRedshift.prototype['secure-access-enable'] = undefined; /** - * @member {String} name + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ +RotatedSecretUpdateRedshift.prototype['secure-access-host'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -OAuth2CustomClaim.prototype['name'] = undefined; +RotatedSecretUpdateRedshift.prototype['token'] = undefined; /** - * @member {Array.} values + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -OAuth2CustomClaim.prototype['values'] = undefined; -var _default = OAuth2CustomClaim; +RotatedSecretUpdateRedshift.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateRedshift; exports["default"] = _default; /***/ }), -/***/ 98049: +/***/ 53949: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -95511,9 +172379,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(41970)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -95524,20 +172390,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The OIDCAccessRules model module. - * @module model/OIDCAccessRules - * @version 3.3.16 + * The RotatedSecretUpdateSnowflake model module. + * @module model/RotatedSecretUpdateSnowflake + * @version 3.6.3 */ -var OIDCAccessRules = /*#__PURE__*/function () { +var RotatedSecretUpdateSnowflake = /*#__PURE__*/function () { /** - * Constructs a new OIDCAccessRules. - * OIDCAccessRules contains access rules specific to Open Id Connect authentication method. - * @alias module:model/OIDCAccessRules + * Constructs a new RotatedSecretUpdateSnowflake. + * @alias module:model/RotatedSecretUpdateSnowflake + * @param name {String} Rotated secret name */ - function OIDCAccessRules() { - _classCallCheck(this, OIDCAccessRules); + function RotatedSecretUpdateSnowflake(name) { + _classCallCheck(this, RotatedSecretUpdateSnowflake); - OIDCAccessRules.initialize(this); + RotatedSecretUpdateSnowflake.initialize(this, name); } /** * Initializes the fields of this object. @@ -95546,61 +172412,99 @@ var OIDCAccessRules = /*#__PURE__*/function () { */ - _createClass(OIDCAccessRules, null, [{ + _createClass(RotatedSecretUpdateSnowflake, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a OIDCAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateSnowflake from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OIDCAccessRules} obj Optional instance to populate. - * @return {module:model/OIDCAccessRules} The populated OIDCAccessRules instance. + * @param {module:model/RotatedSecretUpdateSnowflake} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateSnowflake} The populated RotatedSecretUpdateSnowflake instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new OIDCAccessRules(); + obj = obj || new RotatedSecretUpdateSnowflake(); - if (data.hasOwnProperty('allowed_redirect_URIs')) { - obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('bound_claims')) { - obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OIDCCustomClaim["default"]]); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('client_secret')) { - obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('is_internal')) { - obj['is_internal'] = _ApiClient["default"].convertToType(data['is_internal'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('required_scopes')) { - obj['required_scopes'] = _ApiClient["default"].convertToType(data['required_scopes'], ['String']); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('required_scopes_prefix')) { - obj['required_scopes_prefix'] = _ApiClient["default"].convertToType(data['required_scopes_prefix'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -95608,167 +172512,132 @@ var OIDCAccessRules = /*#__PURE__*/function () { } }]); - return OIDCAccessRules; + return RotatedSecretUpdateSnowflake; }(); /** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed_redirect_URIs + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -OIDCAccessRules.prototype['allowed_redirect_URIs'] = undefined; +RotatedSecretUpdateSnowflake.prototype['add-tag'] = undefined; /** - * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application - * @member {String} audience + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -OIDCAccessRules.prototype['audience'] = undefined; +RotatedSecretUpdateSnowflake.prototype['authentication-credentials'] = 'use-user-creds'; /** - * The claims that login is restricted to. - * @member {Array.} bound_claims + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -OIDCAccessRules.prototype['bound_claims'] = undefined; +RotatedSecretUpdateSnowflake.prototype['auto-rotate'] = undefined; /** - * Client ID - * @member {String} client_id + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -OIDCAccessRules.prototype['client_id'] = undefined; +RotatedSecretUpdateSnowflake.prototype['delete_protection'] = undefined; /** - * Client Secret - * @member {String} client_secret + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -OIDCAccessRules.prototype['client_secret'] = undefined; +RotatedSecretUpdateSnowflake.prototype['description'] = 'default_metadata'; /** - * IsInternal indicates whether this is an internal Auth Method where the client has no control over it, or it was created by the client e.g - Sign In with Google will create an OIDC Auth Method with IsInternal=true - * @member {Boolean} is_internal + * Set output format to JSON + * @member {Boolean} json + * @default false */ -OIDCAccessRules.prototype['is_internal'] = undefined; +RotatedSecretUpdateSnowflake.prototype['json'] = false; /** - * Issuer URL - * @member {String} issuer + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -OIDCAccessRules.prototype['issuer'] = undefined; +RotatedSecretUpdateSnowflake.prototype['keep-prev-version'] = undefined; /** - * A list of required scopes to request from the oidc provider, and to check on the token - * @member {Array.} required_scopes + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -OIDCAccessRules.prototype['required_scopes'] = undefined; +RotatedSecretUpdateSnowflake.prototype['key'] = undefined; /** - * A prefix to add to the required scopes (for example, azures' Application ID URI) - * @member {String} required_scopes_prefix + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -OIDCAccessRules.prototype['required_scopes_prefix'] = undefined; +RotatedSecretUpdateSnowflake.prototype['max-versions'] = undefined; /** - * A unique identifier to distinguish different users - * @member {String} unique_identifier + * Rotated secret name + * @member {String} name */ -OIDCAccessRules.prototype['unique_identifier'] = undefined; -var _default = OIDCAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 41970: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +RotatedSecretUpdateSnowflake.prototype['name'] = undefined; /** - * The OIDCCustomClaim model module. - * @module model/OIDCCustomClaim - * @version 3.3.16 + * New item name + * @member {String} new-name */ -var OIDCCustomClaim = /*#__PURE__*/function () { - /** - * Constructs a new OIDCCustomClaim. - * OIDCCustomClaim is a custom claim specific to OIDC authentication method. - * @alias module:model/OIDCCustomClaim - */ - function OIDCCustomClaim() { - _classCallCheck(this, OIDCCustomClaim); - - OIDCCustomClaim.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - _createClass(OIDCCustomClaim, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OIDCCustomClaim from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OIDCCustomClaim} obj Optional instance to populate. - * @return {module:model/OIDCCustomClaim} The populated OIDCCustomClaim instance. - */ +RotatedSecretUpdateSnowflake.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OIDCCustomClaim(); +RotatedSecretUpdateSnowflake.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +RotatedSecretUpdateSnowflake.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - if (data.hasOwnProperty('values')) { - obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); - } - } +RotatedSecretUpdateSnowflake.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - return obj; - } - }]); +RotatedSecretUpdateSnowflake.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - return OIDCCustomClaim; -}(); +RotatedSecretUpdateSnowflake.prototype['rotation-hour'] = undefined; /** - * @member {String} name + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval */ +RotatedSecretUpdateSnowflake.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -OIDCCustomClaim.prototype['name'] = undefined; +RotatedSecretUpdateSnowflake.prototype['token'] = undefined; /** - * @member {Array.} values + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -OIDCCustomClaim.prototype['values'] = undefined; -var _default = OIDCCustomClaim; +RotatedSecretUpdateSnowflake.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateSnowflake; exports["default"] = _default; /***/ }), -/***/ 68437: +/***/ 31655: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -95779,7 +172648,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -95790,19 +172659,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ObjectVersionSettingsOutput model module. - * @module model/ObjectVersionSettingsOutput - * @version 3.3.16 + * The RotatedSecretUpdateSsh model module. + * @module model/RotatedSecretUpdateSsh + * @version 3.6.3 */ -var ObjectVersionSettingsOutput = /*#__PURE__*/function () { +var RotatedSecretUpdateSsh = /*#__PURE__*/function () { /** - * Constructs a new ObjectVersionSettingsOutput. - * @alias module:model/ObjectVersionSettingsOutput + * Constructs a new RotatedSecretUpdateSsh. + * @alias module:model/RotatedSecretUpdateSsh + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] */ - function ObjectVersionSettingsOutput() { - _classCallCheck(this, ObjectVersionSettingsOutput); + function RotatedSecretUpdateSsh(name, rotatorType) { + _classCallCheck(this, RotatedSecretUpdateSsh); - ObjectVersionSettingsOutput.initialize(this); + RotatedSecretUpdateSsh.initialize(this, name, rotatorType); } /** * Initializes the fields of this object. @@ -95811,151 +172682,144 @@ var ObjectVersionSettingsOutput = /*#__PURE__*/function () { */ - _createClass(ObjectVersionSettingsOutput, null, [{ + _createClass(RotatedSecretUpdateSsh, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + } /** - * Constructs a ObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateSsh from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ObjectVersionSettingsOutput} obj Optional instance to populate. - * @return {module:model/ObjectVersionSettingsOutput} The populated ObjectVersionSettingsOutput instance. + * @param {module:model/RotatedSecretUpdateSsh} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateSsh} The populated RotatedSecretUpdateSsh instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ObjectVersionSettingsOutput(); + obj = obj || new RotatedSecretUpdateSsh(); - if (data.hasOwnProperty('item-type')) { - obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('max-versions')) { - obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - - return obj; - } - }]); - - return ObjectVersionSettingsOutput; -}(); -/** - * VersionSettingsObjectType defines object types for account version settings - * @member {String} item-type - */ + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -ObjectVersionSettingsOutput.prototype['item-type'] = undefined; -/** - * @member {String} max-versions - */ + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -ObjectVersionSettingsOutput.prototype['max-versions'] = undefined; -var _default = ObjectVersionSettingsOutput; -exports["default"] = _default; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ 54614: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(87326)); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -/** - * The OidcClientInfo model module. - * @module model/OidcClientInfo - * @version 3.3.16 - */ -var OidcClientInfo = /*#__PURE__*/function () { - /** - * Constructs a new OidcClientInfo. - * @alias module:model/OidcClientInfo - */ - function OidcClientInfo() { - _classCallCheck(this, OidcClientInfo); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - OidcClientInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); + } - _createClass(OidcClientInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OidcClientInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OidcClientInfo} obj Optional instance to populate. - * @return {module:model/OidcClientInfo} The populated OidcClientInfo instance. - */ + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OidcClientInfo(); + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } - if (data.hasOwnProperty('access_permission_assignment')) { - obj['access_permission_assignment'] = _ApiClient["default"].convertToType(data['access_permission_assignment'], [_AccessPermissionAssignment["default"]]); + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], ['String']); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('grant_types')) { - obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('logout_uris')) { - obj['logout_uris'] = _ApiClient["default"].convertToType(data['logout_uris'], ['String']); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); } - if (data.hasOwnProperty('public')) { - obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); } - if (data.hasOwnProperty('redirect_uris')) { - obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); } - if (data.hasOwnProperty('response_types')) { - obj['response_types'] = _ApiClient["default"].convertToType(data['response_types'], ['String']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('scopes')) { - obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -95963,273 +172827,200 @@ var OidcClientInfo = /*#__PURE__*/function () { } }]); - return OidcClientInfo; + return RotatedSecretUpdateSsh; }(); /** - * @member {Array.} access_permission_assignment + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -OidcClientInfo.prototype['access_permission_assignment'] = undefined; +RotatedSecretUpdateSsh.prototype['add-tag'] = undefined; /** - * @member {Array.} audience + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -OidcClientInfo.prototype['audience'] = undefined; +RotatedSecretUpdateSsh.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {String} client_id + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -OidcClientInfo.prototype['client_id'] = undefined; +RotatedSecretUpdateSsh.prototype['auto-rotate'] = undefined; /** - * @member {Array.} grant_types + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -OidcClientInfo.prototype['grant_types'] = undefined; +RotatedSecretUpdateSsh.prototype['delete_protection'] = undefined; /** - * @member {Array.} logout_uris + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -OidcClientInfo.prototype['logout_uris'] = undefined; +RotatedSecretUpdateSsh.prototype['description'] = 'default_metadata'; /** - * @member {Boolean} public + * Set output format to JSON + * @member {Boolean} json + * @default false */ -OidcClientInfo.prototype['public'] = undefined; +RotatedSecretUpdateSsh.prototype['json'] = false; /** - * @member {Array.} redirect_uris + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -OidcClientInfo.prototype['redirect_uris'] = undefined; +RotatedSecretUpdateSsh.prototype['keep-prev-version'] = undefined; /** - * @member {Array.} response_types + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -OidcClientInfo.prototype['response_types'] = undefined; +RotatedSecretUpdateSsh.prototype['key'] = undefined; /** - * @member {Array.} scopes + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -OidcClientInfo.prototype['scopes'] = undefined; -var _default = OidcClientInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 56346: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); - -var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(87270)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +RotatedSecretUpdateSsh.prototype['max-versions'] = undefined; /** - * The OnePasswordMigration model module. - * @module model/OnePasswordMigration - * @version 3.3.16 + * Rotated secret name + * @member {String} name */ -var OnePasswordMigration = /*#__PURE__*/function () { - /** - * Constructs a new OnePasswordMigration. - * @alias module:model/OnePasswordMigration - */ - function OnePasswordMigration() { - _classCallCheck(this, OnePasswordMigration); - - OnePasswordMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OnePasswordMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OnePasswordMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OnePasswordMigration} obj Optional instance to populate. - * @return {module:model/OnePasswordMigration} The populated OnePasswordMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OnePasswordMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _OnePasswordPayload["default"].constructFromObject(data['payload']); - } - } - return obj; - } - }]); - - return OnePasswordMigration; -}(); +RotatedSecretUpdateSsh.prototype['name'] = undefined; /** - * @member {module:model/MigrationGeneral} general + * New item name + * @member {String} new-name */ - -OnePasswordMigration.prototype['general'] = undefined; +RotatedSecretUpdateSsh.prototype['new-name'] = undefined; /** - * @member {module:model/OnePasswordPayload} payload + * The length of the password to be generated + * @member {String} password-length */ -OnePasswordMigration.prototype['payload'] = undefined; -var _default = OnePasswordMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 87270: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +RotatedSecretUpdateSsh.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ +RotatedSecretUpdateSsh.prototype['rm-tag'] = undefined; /** - * The OnePasswordPayload model module. - * @module model/OnePasswordPayload - * @version 3.3.16 + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' */ -var OnePasswordPayload = /*#__PURE__*/function () { - /** - * Constructs a new OnePasswordPayload. - * @alias module:model/OnePasswordPayload - */ - function OnePasswordPayload() { - _classCallCheck(this, OnePasswordPayload); - OnePasswordPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +RotatedSecretUpdateSsh.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ +RotatedSecretUpdateSsh.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - _createClass(OnePasswordPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OnePasswordPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OnePasswordPayload} obj Optional instance to populate. - * @return {module:model/OnePasswordPayload} The populated OnePasswordPayload instance. - */ +RotatedSecretUpdateSsh.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OnePasswordPayload(); +RotatedSecretUpdateSsh.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } +RotatedSecretUpdateSsh.prototype['rotation-interval'] = undefined; +/** + * Custom rotation command + * @member {String} rotator-custom-cmd + */ - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } +RotatedSecretUpdateSsh.prototype['rotator-custom-cmd'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - if (data.hasOwnProperty('secret_key')) { - obj['secret_key'] = _ApiClient["default"].convertToType(data['secret_key'], 'String'); - } +RotatedSecretUpdateSsh.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } +RotatedSecretUpdateSsh.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ - if (data.hasOwnProperty('vaults')) { - obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); - } - } +RotatedSecretUpdateSsh.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - return obj; - } - }]); +RotatedSecretUpdateSsh.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - return OnePasswordPayload; -}(); +RotatedSecretUpdateSsh.prototype['secure-access-enable'] = undefined; /** - * @member {String} email + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ +RotatedSecretUpdateSsh.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ -OnePasswordPayload.prototype['email'] = undefined; +RotatedSecretUpdateSsh.prototype['secure-access-rdp-domain'] = undefined; /** - * @member {String} password + * Override the RDP Domain username + * @member {String} secure-access-rdp-user */ -OnePasswordPayload.prototype['password'] = undefined; +RotatedSecretUpdateSsh.prototype['secure-access-rdp-user'] = undefined; /** - * @member {String} secret_key + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user */ -OnePasswordPayload.prototype['secret_key'] = undefined; +RotatedSecretUpdateSsh.prototype['secure-access-ssh-user'] = undefined; /** - * @member {String} url + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -OnePasswordPayload.prototype['url'] = undefined; +RotatedSecretUpdateSsh.prototype['token'] = undefined; /** - * @member {Array.} vaults + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -OnePasswordPayload.prototype['vaults'] = undefined; -var _default = OnePasswordPayload; +RotatedSecretUpdateSsh.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateSsh; exports["default"] = _default; /***/ }), -/***/ 62463: +/***/ 13420: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -96240,9 +173031,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(36575)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -96253,19 +173042,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The PKICertificateIssueDetails model module. - * @module model/PKICertificateIssueDetails - * @version 3.3.16 + * The RotatedSecretUpdateWindows model module. + * @module model/RotatedSecretUpdateWindows + * @version 3.6.3 */ -var PKICertificateIssueDetails = /*#__PURE__*/function () { +var RotatedSecretUpdateWindows = /*#__PURE__*/function () { /** - * Constructs a new PKICertificateIssueDetails. - * @alias module:model/PKICertificateIssueDetails + * Constructs a new RotatedSecretUpdateWindows. + * @alias module:model/RotatedSecretUpdateWindows + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] */ - function PKICertificateIssueDetails() { - _classCallCheck(this, PKICertificateIssueDetails); + function RotatedSecretUpdateWindows(name, rotatorType) { + _classCallCheck(this, RotatedSecretUpdateWindows); - PKICertificateIssueDetails.initialize(this); + RotatedSecretUpdateWindows.initialize(this, name, rotatorType); } /** * Initializes the fields of this object. @@ -96274,129 +173065,132 @@ var PKICertificateIssueDetails = /*#__PURE__*/function () { */ - _createClass(PKICertificateIssueDetails, null, [{ + _createClass(RotatedSecretUpdateWindows, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, rotatorType) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + } /** - * Constructs a PKICertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotatedSecretUpdateWindows from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PKICertificateIssueDetails} obj Optional instance to populate. - * @return {module:model/PKICertificateIssueDetails} The populated PKICertificateIssueDetails instance. + * @param {module:model/RotatedSecretUpdateWindows} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateWindows} The populated RotatedSecretUpdateWindows instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new PKICertificateIssueDetails(); + obj = obj || new RotatedSecretUpdateWindows(); - if (data.hasOwnProperty('allow_any_name')) { - obj['allow_any_name'] = _ApiClient["default"].convertToType(data['allow_any_name'], 'Boolean'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('allow_subdomains')) { - obj['allow_subdomains'] = _ApiClient["default"].convertToType(data['allow_subdomains'], 'Boolean'); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - if (data.hasOwnProperty('allowed_domains_list')) { - obj['allowed_domains_list'] = _ApiClient["default"].convertToType(data['allowed_domains_list'], ['String']); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (data.hasOwnProperty('allowed_uri_sans')) { - obj['allowed_uri_sans'] = _ApiClient["default"].convertToType(data['allowed_uri_sans'], ['String']); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('basic_constraints_valid_for_non_ca')) { - obj['basic_constraints_valid_for_non_ca'] = _ApiClient["default"].convertToType(data['basic_constraints_valid_for_non_ca'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('certificate_authority_mode')) { - obj['certificate_authority_mode'] = _ApiClient["default"].convertToType(data['certificate_authority_mode'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('client_flag')) { - obj['client_flag'] = _ApiClient["default"].convertToType(data['client_flag'], 'Boolean'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('code_signing_flag')) { - obj['code_signing_flag'] = _ApiClient["default"].convertToType(data['code_signing_flag'], 'Boolean'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], ['String']); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('destination_path')) { - obj['destination_path'] = _ApiClient["default"].convertToType(data['destination_path'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('enforce_hostnames')) { - obj['enforce_hostnames'] = _ApiClient["default"].convertToType(data['enforce_hostnames'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('expiration_events')) { - obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (data.hasOwnProperty('gw_cluster_url')) { - obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - if (data.hasOwnProperty('is_ca')) { - obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - if (data.hasOwnProperty('key_bits')) { - obj['key_bits'] = _ApiClient["default"].convertToType(data['key_bits'], 'Number'); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - if (data.hasOwnProperty('key_type')) { - obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - if (data.hasOwnProperty('key_usage_list')) { - obj['key_usage_list'] = _ApiClient["default"].convertToType(data['key_usage_list'], ['String']); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], ['String']); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - if (data.hasOwnProperty('not_before_duration')) { - obj['not_before_duration'] = _ApiClient["default"].convertToType(data['not_before_duration'], 'Number'); + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - if (data.hasOwnProperty('organization_list')) { - obj['organization_list'] = _ApiClient["default"].convertToType(data['organization_list'], ['String']); + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); } - if (data.hasOwnProperty('organization_unit_list')) { - obj['organization_unit_list'] = _ApiClient["default"].convertToType(data['organization_unit_list'], ['String']); + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); } - if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], ['String']); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('protect_generated_certificates')) { - obj['protect_generated_certificates'] = _ApiClient["default"].convertToType(data['protect_generated_certificates'], 'Boolean'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], ['String']); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); } - if (data.hasOwnProperty('require_cn')) { - obj['require_cn'] = _ApiClient["default"].convertToType(data['require_cn'], 'Boolean'); + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); } - if (data.hasOwnProperty('server_flag')) { - obj['server_flag'] = _ApiClient["default"].convertToType(data['server_flag'], 'Boolean'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('street_address')) { - obj['street_address'] = _ApiClient["default"].convertToType(data['street_address'], ['String']); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -96404,155 +173198,182 @@ var PKICertificateIssueDetails = /*#__PURE__*/function () { } }]); - return PKICertificateIssueDetails; + return RotatedSecretUpdateWindows; }(); /** - * @member {Boolean} allow_any_name + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -PKICertificateIssueDetails.prototype['allow_any_name'] = undefined; +RotatedSecretUpdateWindows.prototype['add-tag'] = undefined; /** - * @member {Boolean} allow_subdomains + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -PKICertificateIssueDetails.prototype['allow_subdomains'] = undefined; +RotatedSecretUpdateWindows.prototype['authentication-credentials'] = 'use-user-creds'; /** - * @member {Array.} allowed_domains_list + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -PKICertificateIssueDetails.prototype['allowed_domains_list'] = undefined; +RotatedSecretUpdateWindows.prototype['auto-rotate'] = undefined; /** - * @member {Array.} allowed_uri_sans + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -PKICertificateIssueDetails.prototype['allowed_uri_sans'] = undefined; +RotatedSecretUpdateWindows.prototype['delete_protection'] = undefined; /** - * @member {Boolean} basic_constraints_valid_for_non_ca + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -PKICertificateIssueDetails.prototype['basic_constraints_valid_for_non_ca'] = undefined; +RotatedSecretUpdateWindows.prototype['description'] = 'default_metadata'; /** - * @member {String} certificate_authority_mode + * Set output format to JSON + * @member {Boolean} json + * @default false */ -PKICertificateIssueDetails.prototype['certificate_authority_mode'] = undefined; +RotatedSecretUpdateWindows.prototype['json'] = false; /** - * @member {Boolean} client_flag + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -PKICertificateIssueDetails.prototype['client_flag'] = undefined; +RotatedSecretUpdateWindows.prototype['keep-prev-version'] = undefined; /** - * @member {Boolean} code_signing_flag + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -PKICertificateIssueDetails.prototype['code_signing_flag'] = undefined; +RotatedSecretUpdateWindows.prototype['key'] = undefined; /** - * @member {Array.} country + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -PKICertificateIssueDetails.prototype['country'] = undefined; +RotatedSecretUpdateWindows.prototype['max-versions'] = undefined; /** - * DestinationPath is the destination to save generated certificates - * @member {String} destination_path + * Rotated secret name + * @member {String} name */ -PKICertificateIssueDetails.prototype['destination_path'] = undefined; +RotatedSecretUpdateWindows.prototype['name'] = undefined; /** - * @member {Boolean} enforce_hostnames + * New item name + * @member {String} new-name */ -PKICertificateIssueDetails.prototype['enforce_hostnames'] = undefined; +RotatedSecretUpdateWindows.prototype['new-name'] = undefined; /** - * ExpirationNotification holds a list of expiration notices that should be sent in case a certificate is about to expire, this value is being propagated to the Certificate resources that are created - * @member {Array.} expiration_events + * The length of the password to be generated + * @member {String} password-length */ -PKICertificateIssueDetails.prototype['expiration_events'] = undefined; +RotatedSecretUpdateWindows.prototype['password-length'] = undefined; /** - * GWClusterURL is required when CAMode is \"public\" and it defines the cluster URL the PKI should be issued from. The GW cluster must have permissions to read associated target's details - * @member {String} gw_cluster_url + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -PKICertificateIssueDetails.prototype['gw_cluster_url'] = undefined; +RotatedSecretUpdateWindows.prototype['rm-tag'] = undefined; /** - * @member {Boolean} is_ca + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' */ -PKICertificateIssueDetails.prototype['is_ca'] = undefined; +RotatedSecretUpdateWindows.prototype['rotate-after-disconnect'] = 'false'; /** - * @member {Number} key_bits + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password */ -PKICertificateIssueDetails.prototype['key_bits'] = undefined; +RotatedSecretUpdateWindows.prototype['rotated-password'] = undefined; /** - * @member {String} key_type + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username */ -PKICertificateIssueDetails.prototype['key_type'] = undefined; +RotatedSecretUpdateWindows.prototype['rotated-username'] = undefined; /** - * @member {Array.} key_usage_list + * The Hour of the rotation in UTC + * @member {Number} rotation-hour */ -PKICertificateIssueDetails.prototype['key_usage_list'] = undefined; +RotatedSecretUpdateWindows.prototype['rotation-hour'] = undefined; /** - * @member {Array.} locality + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval */ -PKICertificateIssueDetails.prototype['locality'] = undefined; +RotatedSecretUpdateWindows.prototype['rotation-interval'] = undefined; /** - * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. - * @member {Number} not_before_duration + * The rotator type. options: [target/password] + * @member {String} rotator-type */ -PKICertificateIssueDetails.prototype['not_before_duration'] = undefined; +RotatedSecretUpdateWindows.prototype['rotator-type'] = undefined; /** - * @member {Array.} organization_list + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password */ -PKICertificateIssueDetails.prototype['organization_list'] = undefined; +RotatedSecretUpdateWindows.prototype['same-password'] = undefined; /** - * @member {Array.} organization_unit_list + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false */ -PKICertificateIssueDetails.prototype['organization_unit_list'] = undefined; +RotatedSecretUpdateWindows.prototype['secure-access-allow-external-user'] = false; /** - * @member {Array.} postal_code + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -PKICertificateIssueDetails.prototype['postal_code'] = undefined; +RotatedSecretUpdateWindows.prototype['secure-access-enable'] = undefined; /** - * ProtectGeneratedCertificates dictates whether the created certificates should be protected from deletion - * @member {Boolean} protect_generated_certificates + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ -PKICertificateIssueDetails.prototype['protect_generated_certificates'] = undefined; +RotatedSecretUpdateWindows.prototype['secure-access-host'] = undefined; /** - * @member {Array.} province + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain */ -PKICertificateIssueDetails.prototype['province'] = undefined; +RotatedSecretUpdateWindows.prototype['secure-access-rdp-domain'] = undefined; /** - * @member {Boolean} require_cn + * Override the RDP Domain username + * @member {String} secure-access-rdp-user */ -PKICertificateIssueDetails.prototype['require_cn'] = undefined; +RotatedSecretUpdateWindows.prototype['secure-access-rdp-user'] = undefined; /** - * @member {Boolean} server_flag + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -PKICertificateIssueDetails.prototype['server_flag'] = undefined; +RotatedSecretUpdateWindows.prototype['token'] = undefined; /** - * @member {Array.} street_address + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -PKICertificateIssueDetails.prototype['street_address'] = undefined; -var _default = PKICertificateIssueDetails; +RotatedSecretUpdateWindows.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateWindows; exports["default"] = _default; /***/ }), -/***/ 8360: +/***/ 77256: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -96563,7 +173384,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -96574,19 +173395,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The PasswordPolicyInfo model module. - * @module model/PasswordPolicyInfo - * @version 3.3.16 + * The RotationSecretMaxInterval model module. + * @module model/RotationSecretMaxInterval + * @version 3.6.3 */ -var PasswordPolicyInfo = /*#__PURE__*/function () { +var RotationSecretMaxInterval = /*#__PURE__*/function () { /** - * Constructs a new PasswordPolicyInfo. - * @alias module:model/PasswordPolicyInfo + * Constructs a new RotationSecretMaxInterval. + * @alias module:model/RotationSecretMaxInterval */ - function PasswordPolicyInfo() { - _classCallCheck(this, PasswordPolicyInfo); + function RotationSecretMaxInterval() { + _classCallCheck(this, RotationSecretMaxInterval); - PasswordPolicyInfo.initialize(this); + RotationSecretMaxInterval.initialize(this); } /** * Initializes the fields of this object. @@ -96595,41 +173416,29 @@ var PasswordPolicyInfo = /*#__PURE__*/function () { */ - _createClass(PasswordPolicyInfo, null, [{ + _createClass(RotationSecretMaxInterval, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a PasswordPolicyInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a RotationSecretMaxInterval from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PasswordPolicyInfo} obj Optional instance to populate. - * @return {module:model/PasswordPolicyInfo} The populated PasswordPolicyInfo instance. + * @param {module:model/RotationSecretMaxInterval} obj Optional instance to populate. + * @return {module:model/RotationSecretMaxInterval} The populated RotationSecretMaxInterval instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new PasswordPolicyInfo(); - - if (data.hasOwnProperty('password_length')) { - obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); - } - - if (data.hasOwnProperty('use_capital_letters')) { - obj['use_capital_letters'] = _ApiClient["default"].convertToType(data['use_capital_letters'], 'Boolean'); - } - - if (data.hasOwnProperty('use_lower_letters')) { - obj['use_lower_letters'] = _ApiClient["default"].convertToType(data['use_lower_letters'], 'Boolean'); - } + obj = obj || new RotationSecretMaxInterval(); - if (data.hasOwnProperty('use_numbers')) { - obj['use_numbers'] = _ApiClient["default"].convertToType(data['use_numbers'], 'Boolean'); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); } - if (data.hasOwnProperty('use_special_characters')) { - obj['use_special_characters'] = _ApiClient["default"].convertToType(data['use_special_characters'], 'Boolean'); + if (data.hasOwnProperty('max_interval_by_days')) { + obj['max_interval_by_days'] = _ApiClient["default"].convertToType(data['max_interval_by_days'], 'Number'); } } @@ -96637,40 +173446,25 @@ var PasswordPolicyInfo = /*#__PURE__*/function () { } }]); - return PasswordPolicyInfo; + return RotationSecretMaxInterval; }(); /** - * @member {Number} password_length - */ - - -PasswordPolicyInfo.prototype['password_length'] = undefined; -/** - * @member {Boolean} use_capital_letters - */ - -PasswordPolicyInfo.prototype['use_capital_letters'] = undefined; -/** - * @member {Boolean} use_lower_letters + * @member {Boolean} enable */ -PasswordPolicyInfo.prototype['use_lower_letters'] = undefined; -/** - * @member {Boolean} use_numbers - */ -PasswordPolicyInfo.prototype['use_numbers'] = undefined; +RotationSecretMaxInterval.prototype['enable'] = undefined; /** - * @member {Boolean} use_special_characters + * @member {Number} max_interval_by_days */ -PasswordPolicyInfo.prototype['use_special_characters'] = undefined; -var _default = PasswordPolicyInfo; +RotationSecretMaxInterval.prototype['max_interval_by_days'] = undefined; +var _default = RotationSecretMaxInterval; exports["default"] = _default; /***/ }), -/***/ 23796: +/***/ 73124: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -96681,9 +173475,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(19342)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -96694,19 +173486,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The PathRule model module. - * @module model/PathRule - * @version 3.3.16 + * The Rotator model module. + * @module model/Rotator + * @version 3.6.3 */ -var PathRule = /*#__PURE__*/function () { +var Rotator = /*#__PURE__*/function () { /** - * Constructs a new PathRule. - * @alias module:model/PathRule + * Constructs a new Rotator. + * @alias module:model/Rotator */ - function PathRule() { - _classCallCheck(this, PathRule); + function Rotator() { + _classCallCheck(this, Rotator); - PathRule.initialize(this); + Rotator.initialize(this); } /** * Initializes the fields of this object. @@ -96715,53 +173507,37 @@ var PathRule = /*#__PURE__*/function () { */ - _createClass(PathRule, null, [{ + _createClass(Rotator, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a PathRule from a plain JavaScript object, optionally creating a new instance. + * Constructs a Rotator from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PathRule} obj Optional instance to populate. - * @return {module:model/PathRule} The populated PathRule instance. + * @param {module:model/Rotator} obj Optional instance to populate. + * @return {module:model/Rotator} The populated Rotator instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new PathRule(); - - if (data.hasOwnProperty('assigners')) { - obj['assigners'] = _ApiClient["default"].convertToType(data['assigners'], [_RuleAssigner["default"]]); - } - - if (data.hasOwnProperty('capabilities')) { - obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], ['String']); - } - - if (data.hasOwnProperty('is_limit_access')) { - obj['is_limit_access'] = _ApiClient["default"].convertToType(data['is_limit_access'], 'Boolean'); - } - - if (data.hasOwnProperty('number_of_access_used')) { - obj['number_of_access_used'] = _ApiClient["default"].convertToType(data['number_of_access_used'], 'Number'); - } + obj = obj || new Rotator(); - if (data.hasOwnProperty('number_of_allowed_access')) { - obj['number_of_allowed_access'] = _ApiClient["default"].convertToType(data['number_of_allowed_access'], 'Number'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('last_error')) { + obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); } - if (data.hasOwnProperty('start_time')) { - obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Number'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('rotation_interval')) { + obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); } if (data.hasOwnProperty('type')) { @@ -96773,63 +173549,124 @@ var PathRule = /*#__PURE__*/function () { } }]); - return PathRule; + return Rotator; }(); /** - * @member {Array.} assigners + * @member {Number} id */ -PathRule.prototype['assigners'] = undefined; +Rotator.prototype['id'] = undefined; /** - * The approved/denied capabilities in the path - * @member {Array.} capabilities + * @member {String} last_error */ -PathRule.prototype['capabilities'] = undefined; +Rotator.prototype['last_error'] = undefined; /** - * flag that indicate that this rule is allowed to be access RemainingAccess of times. - * @member {Boolean} is_limit_access + * @member {String} name */ -PathRule.prototype['is_limit_access'] = undefined; +Rotator.prototype['name'] = undefined; /** - * @member {Number} number_of_access_used + * @member {Number} rotation_interval */ -PathRule.prototype['number_of_access_used'] = undefined; +Rotator.prototype['rotation_interval'] = undefined; /** - * @member {Number} number_of_allowed_access + * @member {String} type */ -PathRule.prototype['number_of_allowed_access'] = undefined; -/** - * The path the rule refers to - * @member {String} path - */ +Rotator.prototype['type'] = undefined; +var _default = Rotator; +exports["default"] = _default; -PathRule.prototype['path'] = undefined; -/** - * @member {Number} start_time - */ +/***/ }), + +/***/ 86112: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _Rotator = _interopRequireDefault(__nccwpck_require__(73124)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -PathRule.prototype['start_time'] = undefined; /** - * @member {Number} ttl + * The RotatorsConfigPart model module. + * @module model/RotatorsConfigPart + * @version 3.6.3 */ +var RotatorsConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new RotatorsConfigPart. + * @alias module:model/RotatorsConfigPart + */ + function RotatorsConfigPart() { + _classCallCheck(this, RotatorsConfigPart); -PathRule.prototype['ttl'] = undefined; + RotatorsConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatorsConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotatorsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatorsConfigPart} obj Optional instance to populate. + * @return {module:model/RotatorsConfigPart} The populated RotatorsConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatorsConfigPart(); + + if (data.hasOwnProperty('rotators')) { + obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], [_Rotator["default"]]); + } + } + + return obj; + } + }]); + + return RotatorsConfigPart; +}(); /** - * @member {String} type + * @member {Array.} rotators */ -PathRule.prototype['type'] = undefined; -var _default = PathRule; + +RotatorsConfigPart.prototype['rotators'] = undefined; +var _default = RotatorsConfigPart; exports["default"] = _default; /***/ }), -/***/ 7200: +/***/ 43453: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -96840,7 +173677,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -96851,20 +173688,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The PingTargetDetails model module. - * @module model/PingTargetDetails - * @version 3.3.16 + * The RuleAssigner model module. + * @module model/RuleAssigner + * @version 3.6.3 */ -var PingTargetDetails = /*#__PURE__*/function () { +var RuleAssigner = /*#__PURE__*/function () { /** - * Constructs a new PingTargetDetails. - * PingTargetDetails - * @alias module:model/PingTargetDetails + * Constructs a new RuleAssigner. + * @alias module:model/RuleAssigner */ - function PingTargetDetails() { - _classCallCheck(this, PingTargetDetails); + function RuleAssigner() { + _classCallCheck(this, RuleAssigner); - PingTargetDetails.initialize(this); + RuleAssigner.initialize(this); } /** * Initializes the fields of this object. @@ -96873,41 +173709,29 @@ var PingTargetDetails = /*#__PURE__*/function () { */ - _createClass(PingTargetDetails, null, [{ + _createClass(RuleAssigner, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a PingTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a RuleAssigner from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PingTargetDetails} obj Optional instance to populate. - * @return {module:model/PingTargetDetails} The populated PingTargetDetails instance. + * @param {module:model/RuleAssigner} obj Optional instance to populate. + * @return {module:model/RuleAssigner} The populated RuleAssigner instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new PingTargetDetails(); - - if (data.hasOwnProperty('administrative_port')) { - obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); - } - - if (data.hasOwnProperty('authorization_port')) { - obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); - } - - if (data.hasOwnProperty('ping_url')) { - obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); - } + obj = obj || new RuleAssigner(); - if (data.hasOwnProperty('privileged_user')) { - obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); } - if (data.hasOwnProperty('user_password')) { - obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); + if (data.hasOwnProperty('unique_id')) { + obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); } } @@ -96915,40 +173739,25 @@ var PingTargetDetails = /*#__PURE__*/function () { } }]); - return PingTargetDetails; + return RuleAssigner; }(); /** - * @member {String} administrative_port - */ - - -PingTargetDetails.prototype['administrative_port'] = undefined; -/** - * @member {String} authorization_port - */ - -PingTargetDetails.prototype['authorization_port'] = undefined; -/** - * @member {String} ping_url + * @member {String} access_id */ -PingTargetDetails.prototype['ping_url'] = undefined; -/** - * @member {String} privileged_user - */ -PingTargetDetails.prototype['privileged_user'] = undefined; +RuleAssigner.prototype['access_id'] = undefined; /** - * @member {String} user_password + * @member {String} unique_id */ -PingTargetDetails.prototype['user_password'] = undefined; -var _default = PingTargetDetails; +RuleAssigner.prototype['unique_id'] = undefined; +var _default = RuleAssigner; exports["default"] = _default; /***/ }), -/***/ 90145: +/***/ 64146: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -96959,7 +173768,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _PathRule = _interopRequireDefault(__nccwpck_require__(42800)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -96970,19 +173781,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Producer model module. - * @module model/Producer - * @version 3.3.16 + * The Rules model module. + * @module model/Rules + * @version 3.6.3 */ -var Producer = /*#__PURE__*/function () { +var Rules = /*#__PURE__*/function () { /** - * Constructs a new Producer. - * @alias module:model/Producer + * Constructs a new Rules. + * @alias module:model/Rules */ - function Producer() { - _classCallCheck(this, Producer); + function Rules() { + _classCallCheck(this, Rules); - Producer.initialize(this); + Rules.initialize(this); } /** * Initializes the fields of this object. @@ -96991,45 +173802,29 @@ var Producer = /*#__PURE__*/function () { */ - _createClass(Producer, null, [{ + _createClass(Rules, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a Producer from a plain JavaScript object, optionally creating a new instance. + * Constructs a Rules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Producer} obj Optional instance to populate. - * @return {module:model/Producer} The populated Producer instance. + * @param {module:model/Rules} obj Optional instance to populate. + * @return {module:model/Rules} The populated Rules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Producer(); - - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); - } - - if (data.hasOwnProperty('failure_message')) { - obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - - if (data.hasOwnProperty('init')) { - obj['init'] = _ApiClient["default"].convertToType(data['init'], 'Boolean'); - } + obj = obj || new Rules(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('admin')) { + obj['admin'] = _ApiClient["default"].convertToType(data['admin'], 'Boolean'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + if (data.hasOwnProperty('path_rules')) { + obj['path_rules'] = _ApiClient["default"].convertToType(data['path_rules'], [_PathRule["default"]]); } } @@ -97037,45 +173832,27 @@ var Producer = /*#__PURE__*/function () { } }]); - return Producer; + return Rules; }(); /** - * @member {Boolean} active - */ - - -Producer.prototype['active'] = undefined; -/** - * @member {String} failure_message - */ - -Producer.prototype['failure_message'] = undefined; -/** - * @member {Number} id - */ - -Producer.prototype['id'] = undefined; -/** - * @member {Boolean} init + * Is admin + * @member {Boolean} admin */ -Producer.prototype['init'] = undefined; -/** - * @member {String} name - */ -Producer.prototype['name'] = undefined; +Rules.prototype['admin'] = undefined; /** - * @member {String} type + * The path the rules refers to + * @member {Array.} path_rules */ -Producer.prototype['type'] = undefined; -var _default = Producer; +Rules.prototype['path_rules'] = undefined; +var _default = Rules; exports["default"] = _default; /***/ }), -/***/ 83988: +/***/ 60315: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97086,9 +173863,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _Producer = _interopRequireDefault(__nccwpck_require__(90145)); +var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(81850)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97099,19 +173876,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ProducersConfigPart model module. - * @module model/ProducersConfigPart - * @version 3.3.16 + * The SAMLAccessRules model module. + * @module model/SAMLAccessRules + * @version 3.6.3 */ -var ProducersConfigPart = /*#__PURE__*/function () { +var SAMLAccessRules = /*#__PURE__*/function () { /** - * Constructs a new ProducersConfigPart. - * @alias module:model/ProducersConfigPart + * Constructs a new SAMLAccessRules. + * @alias module:model/SAMLAccessRules */ - function ProducersConfigPart() { - _classCallCheck(this, ProducersConfigPart); + function SAMLAccessRules() { + _classCallCheck(this, SAMLAccessRules); - ProducersConfigPart.initialize(this); + SAMLAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -97120,25 +173897,41 @@ var ProducersConfigPart = /*#__PURE__*/function () { */ - _createClass(ProducersConfigPart, null, [{ + _createClass(SAMLAccessRules, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ProducersConfigPart from a plain JavaScript object, optionally creating a new instance. + * Constructs a SAMLAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProducersConfigPart} obj Optional instance to populate. - * @return {module:model/ProducersConfigPart} The populated ProducersConfigPart instance. + * @param {module:model/SAMLAccessRules} obj Optional instance to populate. + * @return {module:model/SAMLAccessRules} The populated SAMLAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ProducersConfigPart(); + obj = obj || new SAMLAccessRules(); - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); + if (data.hasOwnProperty('allowed_redirect_URIs')) { + obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); + } + + if (data.hasOwnProperty('bound_attributes')) { + obj['bound_attributes'] = _ApiClient["default"].convertToType(data['bound_attributes'], [_SAMLAttribute["default"]]); + } + + if (data.hasOwnProperty('idp_metadata_url')) { + obj['idp_metadata_url'] = _ApiClient["default"].convertToType(data['idp_metadata_url'], 'String'); + } + + if (data.hasOwnProperty('idp_metadata_xml')) { + obj['idp_metadata_xml'] = _ApiClient["default"].convertToType(data['idp_metadata_xml'], 'String'); + } + + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); } } @@ -97146,20 +173939,45 @@ var ProducersConfigPart = /*#__PURE__*/function () { } }]); - return ProducersConfigPart; + return SAMLAccessRules; }(); /** - * @member {Array.} producers + * Allowed redirect URIs after the authentication + * @member {Array.} allowed_redirect_URIs */ -ProducersConfigPart.prototype['producers'] = undefined; -var _default = ProducersConfigPart; +SAMLAccessRules.prototype['allowed_redirect_URIs'] = undefined; +/** + * The attributes that login is restricted to. + * @member {Array.} bound_attributes + */ + +SAMLAccessRules.prototype['bound_attributes'] = undefined; +/** + * IDP metadata url + * @member {String} idp_metadata_url + */ + +SAMLAccessRules.prototype['idp_metadata_url'] = undefined; +/** + * IDP metadata XML + * @member {String} idp_metadata_xml + */ + +SAMLAccessRules.prototype['idp_metadata_xml'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ + +SAMLAccessRules.prototype['unique_identifier'] = undefined; +var _default = SAMLAccessRules; exports["default"] = _default; /***/ }), -/***/ 87475: +/***/ 81850: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97170,7 +173988,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97181,19 +173999,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RabbitMQTargetDetails model module. - * @module model/RabbitMQTargetDetails - * @version 3.3.16 + * The SAMLAttribute model module. + * @module model/SAMLAttribute + * @version 3.6.3 */ -var RabbitMQTargetDetails = /*#__PURE__*/function () { +var SAMLAttribute = /*#__PURE__*/function () { /** - * Constructs a new RabbitMQTargetDetails. - * @alias module:model/RabbitMQTargetDetails + * Constructs a new SAMLAttribute. + * @alias module:model/SAMLAttribute */ - function RabbitMQTargetDetails() { - _classCallCheck(this, RabbitMQTargetDetails); + function SAMLAttribute() { + _classCallCheck(this, SAMLAttribute); - RabbitMQTargetDetails.initialize(this); + SAMLAttribute.initialize(this); } /** * Initializes the fields of this object. @@ -97202,33 +174020,29 @@ var RabbitMQTargetDetails = /*#__PURE__*/function () { */ - _createClass(RabbitMQTargetDetails, null, [{ + _createClass(SAMLAttribute, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a SAMLAttribute from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RabbitMQTargetDetails} obj Optional instance to populate. - * @return {module:model/RabbitMQTargetDetails} The populated RabbitMQTargetDetails instance. + * @param {module:model/SAMLAttribute} obj Optional instance to populate. + * @return {module:model/SAMLAttribute} The populated SAMLAttribute instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RabbitMQTargetDetails(); - - if (data.hasOwnProperty('rabbitmq_server_password')) { - obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); - } + obj = obj || new SAMLAttribute(); - if (data.hasOwnProperty('rabbitmq_server_uri')) { - obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('rabbitmq_server_user')) { - obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); + if (data.hasOwnProperty('values')) { + obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); } } @@ -97236,30 +174050,25 @@ var RabbitMQTargetDetails = /*#__PURE__*/function () { } }]); - return RabbitMQTargetDetails; + return SAMLAttribute; }(); /** - * @member {String} rabbitmq_server_password + * @member {String} name */ -RabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; -/** - * @member {String} rabbitmq_server_uri - */ - -RabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; +SAMLAttribute.prototype['name'] = undefined; /** - * @member {String} rabbitmq_server_user + * @member {Array.} values */ -RabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; -var _default = RabbitMQTargetDetails; +SAMLAttribute.prototype['values'] = undefined; +var _default = SAMLAttribute; exports["default"] = _default; /***/ }), -/***/ 65435: +/***/ 44679: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97270,7 +174079,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97281,19 +174090,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RawCreds model module. - * @module model/RawCreds - * @version 3.3.16 + * The SSHCertificateIssueDetails model module. + * @module model/SSHCertificateIssueDetails + * @version 3.6.3 */ -var RawCreds = /*#__PURE__*/function () { +var SSHCertificateIssueDetails = /*#__PURE__*/function () { /** - * Constructs a new RawCreds. - * @alias module:model/RawCreds + * Constructs a new SSHCertificateIssueDetails. + * @alias module:model/SSHCertificateIssueDetails */ - function RawCreds() { - _classCallCheck(this, RawCreds); + function SSHCertificateIssueDetails() { + _classCallCheck(this, SSHCertificateIssueDetails); - RawCreds.initialize(this); + SSHCertificateIssueDetails.initialize(this); } /** * Initializes the fields of this object. @@ -97302,29 +174111,59 @@ var RawCreds = /*#__PURE__*/function () { */ - _createClass(RawCreds, null, [{ + _createClass(SSHCertificateIssueDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RawCreds from a plain JavaScript object, optionally creating a new instance. + * Constructs a SSHCertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RawCreds} obj Optional instance to populate. - * @return {module:model/RawCreds} The populated RawCreds instance. + * @param {module:model/SSHCertificateIssueDetails} obj Optional instance to populate. + * @return {module:model/SSHCertificateIssueDetails} The populated SSHCertificateIssueDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RawCreds(); + obj = obj || new SSHCertificateIssueDetails(); - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + if (data.hasOwnProperty('allowed_domains')) { + obj['allowed_domains'] = _ApiClient["default"].convertToType(data['allowed_domains'], ['String']); } - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + if (data.hasOwnProperty('allowed_user_key_lengths')) { + obj['allowed_user_key_lengths'] = _ApiClient["default"].convertToType(data['allowed_user_key_lengths'], { + 'String': 'Number' + }); + } + + if (data.hasOwnProperty('allowed_users')) { + obj['allowed_users'] = _ApiClient["default"].convertToType(data['allowed_users'], ['String']); + } + + if (data.hasOwnProperty('cert_type')) { + obj['cert_type'] = _ApiClient["default"].convertToType(data['cert_type'], 'Number'); + } + + if (data.hasOwnProperty('critical_options')) { + obj['critical_options'] = _ApiClient["default"].convertToType(data['critical_options'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('principals')) { + obj['principals'] = _ApiClient["default"].convertToType(data['principals'], ['String']); + } + + if (data.hasOwnProperty('static_key_id')) { + obj['static_key_id'] = _ApiClient["default"].convertToType(data['static_key_id'], 'String'); } } @@ -97332,25 +174171,58 @@ var RawCreds = /*#__PURE__*/function () { } }]); - return RawCreds; + return SSHCertificateIssueDetails; }(); /** - * @member {String} access-id + * Relevant for host certificate + * @member {Array.} allowed_domains */ -RawCreds.prototype['access-id'] = undefined; +SSHCertificateIssueDetails.prototype['allowed_domains'] = undefined; /** - * @member {String} access-key + * @member {Object.} allowed_user_key_lengths */ -RawCreds.prototype['access-key'] = undefined; -var _default = RawCreds; +SSHCertificateIssueDetails.prototype['allowed_user_key_lengths'] = undefined; +/** + * Relevant for user certificate + * @member {Array.} allowed_users + */ + +SSHCertificateIssueDetails.prototype['allowed_users'] = undefined; +/** + * @member {Number} cert_type + */ + +SSHCertificateIssueDetails.prototype['cert_type'] = undefined; +/** + * @member {Object.} critical_options + */ + +SSHCertificateIssueDetails.prototype['critical_options'] = undefined; +/** + * @member {Object.} extensions + */ + +SSHCertificateIssueDetails.prototype['extensions'] = undefined; +/** + * @member {Array.} principals + */ + +SSHCertificateIssueDetails.prototype['principals'] = undefined; +/** + * In case it is empty, the key ID will be combination of user identifiers and a random string + * @member {String} static_key_id + */ + +SSHCertificateIssueDetails.prototype['static_key_id'] = undefined; +var _default = SSHCertificateIssueDetails; exports["default"] = _default; /***/ }), -/***/ 68029: +/***/ 75582: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97361,7 +174233,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97372,20 +174244,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RefreshKey model module. - * @module model/RefreshKey - * @version 3.3.16 + * The SSHTargetDetails model module. + * @module model/SSHTargetDetails + * @version 3.6.3 */ -var RefreshKey = /*#__PURE__*/function () { +var SSHTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new RefreshKey. - * @alias module:model/RefreshKey - * @param name {String} Key name + * Constructs a new SSHTargetDetails. + * @alias module:model/SSHTargetDetails */ - function RefreshKey(name) { - _classCallCheck(this, RefreshKey); + function SSHTargetDetails() { + _classCallCheck(this, SSHTargetDetails); - RefreshKey.initialize(this, name); + SSHTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -97394,39 +174265,45 @@ var RefreshKey = /*#__PURE__*/function () { */ - _createClass(RefreshKey, null, [{ + _createClass(SSHTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a RefreshKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a SSHTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RefreshKey} obj Optional instance to populate. - * @return {module:model/RefreshKey} The populated RefreshKey instance. + * @param {module:model/SSHTargetDetails} obj Optional instance to populate. + * @return {module:model/SSHTargetDetails} The populated SSHTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RefreshKey(); + obj = obj || new SSHTargetDetails(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('private_key')) { + obj['private_key'] = _ApiClient["default"].convertToType(data['private_key'], 'String'); + } + + if (data.hasOwnProperty('private_key_password')) { + obj['private_key_password'] = _ApiClient["default"].convertToType(data['private_key_password'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } @@ -97434,40 +174311,45 @@ var RefreshKey = /*#__PURE__*/function () { } }]); - return RefreshKey; + return SSHTargetDetails; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} host */ -RefreshKey.prototype['json'] = false; +SSHTargetDetails.prototype['host'] = undefined; /** - * Key name - * @member {String} name + * @member {String} password */ -RefreshKey.prototype['name'] = undefined; +SSHTargetDetails.prototype['password'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} port */ -RefreshKey.prototype['token'] = undefined; +SSHTargetDetails.prototype['port'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} private_key */ -RefreshKey.prototype['uid-token'] = undefined; -var _default = RefreshKey; +SSHTargetDetails.prototype['private_key'] = undefined; +/** + * @member {String} private_key_password + */ + +SSHTargetDetails.prototype['private_key_password'] = undefined; +/** + * @member {String} username + */ + +SSHTargetDetails.prototype['username'] = undefined; +var _default = SSHTargetDetails; exports["default"] = _default; /***/ }), -/***/ 25349: +/***/ 96765: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97478,7 +174360,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97489,19 +174371,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RefreshKeyOutput model module. - * @module model/RefreshKeyOutput - * @version 3.3.16 + * The SalesforceTargetDetails model module. + * @module model/SalesforceTargetDetails + * @version 3.6.3 */ -var RefreshKeyOutput = /*#__PURE__*/function () { +var SalesforceTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new RefreshKeyOutput. - * @alias module:model/RefreshKeyOutput + * Constructs a new SalesforceTargetDetails. + * SalesforceTargetDetails + * @alias module:model/SalesforceTargetDetails */ - function RefreshKeyOutput() { - _classCallCheck(this, RefreshKeyOutput); + function SalesforceTargetDetails() { + _classCallCheck(this, SalesforceTargetDetails); - RefreshKeyOutput.initialize(this); + SalesforceTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -97510,25 +174393,61 @@ var RefreshKeyOutput = /*#__PURE__*/function () { */ - _createClass(RefreshKeyOutput, null, [{ + _createClass(SalesforceTargetDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RefreshKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a SalesforceTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RefreshKeyOutput} obj Optional instance to populate. - * @return {module:model/RefreshKeyOutput} The populated RefreshKeyOutput instance. + * @param {module:model/SalesforceTargetDetails} obj Optional instance to populate. + * @return {module:model/SalesforceTargetDetails} The populated SalesforceTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RefreshKeyOutput(); + obj = obj || new SalesforceTargetDetails(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('app_private_key')) { + obj['app_private_key'] = _ApiClient["default"].convertToType(data['app_private_key'], ['Number']); + } + + if (data.hasOwnProperty('auth_flow')) { + obj['auth_flow'] = _ApiClient["default"].convertToType(data['auth_flow'], 'String'); + } + + if (data.hasOwnProperty('ca_cert_data')) { + obj['ca_cert_data'] = _ApiClient["default"].convertToType(data['ca_cert_data'], ['Number']); + } + + if (data.hasOwnProperty('ca_cert_name')) { + obj['ca_cert_name'] = _ApiClient["default"].convertToType(data['ca_cert_name'], 'String'); + } + + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); + } + + if (data.hasOwnProperty('client_secret')) { + obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('security_token')) { + obj['security_token'] = _ApiClient["default"].convertToType(data['security_token'], 'String'); + } + + if (data.hasOwnProperty('tenant_url')) { + obj['tenant_url'] = _ApiClient["default"].convertToType(data['tenant_url'], 'String'); + } + + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); } } @@ -97536,20 +174455,69 @@ var RefreshKeyOutput = /*#__PURE__*/function () { } }]); - return RefreshKeyOutput; + return SalesforceTargetDetails; }(); /** - * @member {String} result + * params needed for jwt auth AppPrivateKey is the rsa private key in PEM format + * @member {Array.} app_private_key */ -RefreshKeyOutput.prototype['result'] = undefined; -var _default = RefreshKeyOutput; +SalesforceTargetDetails.prototype['app_private_key'] = undefined; +/** + * @member {String} auth_flow + */ + +SalesforceTargetDetails.prototype['auth_flow'] = undefined; +/** + * CACertData is the rsa 4096 certificate data in PEM format + * @member {Array.} ca_cert_data + */ + +SalesforceTargetDetails.prototype['ca_cert_data'] = undefined; +/** + * CACertName is the name of the certificate in SalesForce tenant + * @member {String} ca_cert_name + */ + +SalesforceTargetDetails.prototype['ca_cert_name'] = undefined; +/** + * @member {String} client_id + */ + +SalesforceTargetDetails.prototype['client_id'] = undefined; +/** + * params needed for password auth + * @member {String} client_secret + */ + +SalesforceTargetDetails.prototype['client_secret'] = undefined; +/** + * @member {String} password + */ + +SalesforceTargetDetails.prototype['password'] = undefined; +/** + * @member {String} security_token + */ + +SalesforceTargetDetails.prototype['security_token'] = undefined; +/** + * @member {String} tenant_url + */ + +SalesforceTargetDetails.prototype['tenant_url'] = undefined; +/** + * @member {String} user_name + */ + +SalesforceTargetDetails.prototype['user_name'] = undefined; +var _default = SalesforceTargetDetails; exports["default"] = _default; /***/ }), -/***/ 24746: +/***/ 70409: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97560,7 +174528,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97571,20 +174539,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RegexpTokenizerInfo model module. - * @module model/RegexpTokenizerInfo - * @version 3.3.16 + * The SecretInfo model module. + * @module model/SecretInfo + * @version 3.6.3 */ -var RegexpTokenizerInfo = /*#__PURE__*/function () { +var SecretInfo = /*#__PURE__*/function () { /** - * Constructs a new RegexpTokenizerInfo. - * RegexpTokenizerInfo represents a general Regexp tokenization template - * @alias module:model/RegexpTokenizerInfo + * Constructs a new SecretInfo. + * @alias module:model/SecretInfo */ - function RegexpTokenizerInfo() { - _classCallCheck(this, RegexpTokenizerInfo); + function SecretInfo() { + _classCallCheck(this, SecretInfo); - RegexpTokenizerInfo.initialize(this); + SecretInfo.initialize(this); } /** * Initializes the fields of this object. @@ -97593,37 +174560,63 @@ var RegexpTokenizerInfo = /*#__PURE__*/function () { */ - _createClass(RegexpTokenizerInfo, null, [{ + _createClass(SecretInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RegexpTokenizerInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a SecretInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegexpTokenizerInfo} obj Optional instance to populate. - * @return {module:model/RegexpTokenizerInfo} The populated RegexpTokenizerInfo instance. + * @param {module:model/SecretInfo} obj Optional instance to populate. + * @return {module:model/SecretInfo} The populated SecretInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RegexpTokenizerInfo(); + obj = obj || new SecretInfo(); - if (data.hasOwnProperty('alphabet')) { - obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); + if (data.hasOwnProperty('created')) { + obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Date'); } - if (data.hasOwnProperty('decoding_template')) { - obj['decoding_template'] = _ApiClient["default"].convertToType(data['decoding_template'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('encoding_template')) { - obj['encoding_template'] = _ApiClient["default"].convertToType(data['encoding_template'], 'String'); + if (data.hasOwnProperty('expiration')) { + obj['expiration'] = _ApiClient["default"].convertToType(data['expiration'], 'Date'); } - if (data.hasOwnProperty('pattern')) { - obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); + if (data.hasOwnProperty('last_retrieved')) { + obj['last_retrieved'] = _ApiClient["default"].convertToType(data['last_retrieved'], 'Date'); + } + + if (data.hasOwnProperty('location')) { + obj['location'] = _ApiClient["default"].convertToType(data['location'], Object); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } } @@ -97631,39 +174624,65 @@ var RegexpTokenizerInfo = /*#__PURE__*/function () { } }]); - return RegexpTokenizerInfo; + return SecretInfo; }(); /** - * The Alphabet used for the tokenization - * @member {String} alphabet + * @member {Date} created */ -RegexpTokenizerInfo.prototype['alphabet'] = undefined; +SecretInfo.prototype['created'] = undefined; /** - * Transformation to perform on the decrypted data - * @member {String} decoding_template + * @member {String} description */ -RegexpTokenizerInfo.prototype['decoding_template'] = undefined; +SecretInfo.prototype['description'] = undefined; /** - * Transformation to perform on the encrypted data, if the required output template doesn't match the input string The output Should still be valid for the Pattern, otherwise the secret would be able to be decrypted. - * @member {String} encoding_template + * @member {Date} expiration */ -RegexpTokenizerInfo.prototype['encoding_template'] = undefined; +SecretInfo.prototype['expiration'] = undefined; /** - * Regexp pattern to extract and deposit the text/encdata - * @member {String} pattern + * @member {Date} last_retrieved */ -RegexpTokenizerInfo.prototype['pattern'] = undefined; -var _default = RegexpTokenizerInfo; +SecretInfo.prototype['last_retrieved'] = undefined; +/** + * @member {Object} location + */ + +SecretInfo.prototype['location'] = undefined; +/** + * @member {String} name + */ + +SecretInfo.prototype['name'] = undefined; +/** + * @member {String} secret_id + */ + +SecretInfo.prototype['secret_id'] = undefined; +/** + * @member {Boolean} status + */ + +SecretInfo.prototype['status'] = undefined; +/** + * @member {Object.} tags + */ + +SecretInfo.prototype['tags'] = undefined; +/** + * @member {String} type + */ + +SecretInfo.prototype['type'] = undefined; +var _default = SecretInfo; exports["default"] = _default; /***/ }), -/***/ 6952: +/***/ 83028: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97674,7 +174693,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ItemSraStatus = _interopRequireDefault(__nccwpck_require__(73342)); + +var _TargetNameWithHosts = _interopRequireDefault(__nccwpck_require__(21380)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97685,21 +174708,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RequestAccess model module. - * @module model/RequestAccess - * @version 3.3.16 + * The SecureRemoteAccess model module. + * @module model/SecureRemoteAccess + * @version 3.6.3 */ -var RequestAccess = /*#__PURE__*/function () { +var SecureRemoteAccess = /*#__PURE__*/function () { /** - * Constructs a new RequestAccess. - * @alias module:model/RequestAccess - * @param capability {Array.} List of the required capabilities options: [read, update, delete] - * @param name {String} Item type + * Constructs a new SecureRemoteAccess. + * @alias module:model/SecureRemoteAccess */ - function RequestAccess(capability, name) { - _classCallCheck(this, RequestAccess); + function SecureRemoteAccess() { + _classCallCheck(this, SecureRemoteAccess); - RequestAccess.initialize(this, capability, name); + SecureRemoteAccess.initialize(this); } /** * Initializes the fields of this object. @@ -97708,52 +174729,153 @@ var RequestAccess = /*#__PURE__*/function () { */ - _createClass(RequestAccess, null, [{ + _createClass(SecureRemoteAccess, null, [{ key: "initialize", - value: function initialize(obj, capability, name) { - obj['capability'] = capability; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a RequestAccess from a plain JavaScript object, optionally creating a new instance. + * Constructs a SecureRemoteAccess from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequestAccess} obj Optional instance to populate. - * @return {module:model/RequestAccess} The populated RequestAccess instance. + * @param {module:model/SecureRemoteAccess} obj Optional instance to populate. + * @return {module:model/SecureRemoteAccess} The populated SecureRemoteAccess instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RequestAccess(); + obj = obj || new SecureRemoteAccess(); - if (data.hasOwnProperty('capability')) { - obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('allow_port_forwarding')) { + obj['allow_port_forwarding'] = _ApiClient["default"].convertToType(data['allow_port_forwarding'], 'Boolean'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('allow_providing_external_username')) { + obj['allow_providing_external_username'] = _ApiClient["default"].convertToType(data['allow_providing_external_username'], 'Boolean'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('bastion_api')) { + obj['bastion_api'] = _ApiClient["default"].convertToType(data['bastion_api'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('bastion_issuer')) { + obj['bastion_issuer'] = _ApiClient["default"].convertToType(data['bastion_issuer'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('bastion_issuer_id')) { + obj['bastion_issuer_id'] = _ApiClient["default"].convertToType(data['bastion_issuer_id'], 'Number'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('bastion_ssh')) { + obj['bastion_ssh'] = _ApiClient["default"].convertToType(data['bastion_ssh'], 'String'); + } + + if (data.hasOwnProperty('category')) { + obj['category'] = _ApiClient["default"].convertToType(data['category'], 'String'); + } + + if (data.hasOwnProperty('dashboard_url')) { + obj['dashboard_url'] = _ApiClient["default"].convertToType(data['dashboard_url'], 'String'); + } + + if (data.hasOwnProperty('db_name')) { + obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + } + + if (data.hasOwnProperty('domain')) { + obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); + } + + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); + } + + if (data.hasOwnProperty('endpoint')) { + obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], ['String']); + } + + if (data.hasOwnProperty('host_provider_type')) { + obj['host_provider_type'] = _ApiClient["default"].convertToType(data['host_provider_type'], 'String'); + } + + if (data.hasOwnProperty('is_cli')) { + obj['is_cli'] = _ApiClient["default"].convertToType(data['is_cli'], 'Boolean'); + } + + if (data.hasOwnProperty('is_web')) { + obj['is_web'] = _ApiClient["default"].convertToType(data['is_web'], 'Boolean'); + } + + if (data.hasOwnProperty('isolated')) { + obj['isolated'] = _ApiClient["default"].convertToType(data['isolated'], 'Boolean'); + } + + if (data.hasOwnProperty('native')) { + obj['native'] = _ApiClient["default"].convertToType(data['native'], 'Boolean'); + } + + if (data.hasOwnProperty('rd_gateway_server')) { + obj['rd_gateway_server'] = _ApiClient["default"].convertToType(data['rd_gateway_server'], 'String'); + } + + if (data.hasOwnProperty('rdp_user')) { + obj['rdp_user'] = _ApiClient["default"].convertToType(data['rdp_user'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('rotate_after_disconnect')) { + obj['rotate_after_disconnect'] = _ApiClient["default"].convertToType(data['rotate_after_disconnect'], 'Boolean'); + } + + if (data.hasOwnProperty('schema')) { + obj['schema'] = _ApiClient["default"].convertToType(data['schema'], 'String'); + } + + if (data.hasOwnProperty('ssh_password')) { + obj['ssh_password'] = _ApiClient["default"].convertToType(data['ssh_password'], 'Boolean'); + } + + if (data.hasOwnProperty('ssh_private_key')) { + obj['ssh_private_key'] = _ApiClient["default"].convertToType(data['ssh_private_key'], 'Boolean'); + } + + if (data.hasOwnProperty('ssh_user')) { + obj['ssh_user'] = _ApiClient["default"].convertToType(data['ssh_user'], 'String'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ItemSraStatus["default"].constructFromObject(data['status']); + } + + if (data.hasOwnProperty('target_hosts')) { + obj['target_hosts'] = _ApiClient["default"].convertToType(data['target_hosts'], [_TargetNameWithHosts["default"]]); + } + + if (data.hasOwnProperty('targets')) { + obj['targets'] = _ApiClient["default"].convertToType(data['targets'], ['String']); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + + if (data.hasOwnProperty('use_internal_bastion')) { + obj['use_internal_bastion'] = _ApiClient["default"].convertToType(data['use_internal_bastion'], 'Boolean'); + } + + if (data.hasOwnProperty('web_proxy')) { + obj['web_proxy'] = _ApiClient["default"].convertToType(data['web_proxy'], 'Boolean'); } } @@ -97761,140 +174883,180 @@ var RequestAccess = /*#__PURE__*/function () { } }]); - return RequestAccess; + return SecureRemoteAccess; }(); /** - * List of the required capabilities options: [read, update, delete] - * @member {Array.} capability + * @member {String} account_id */ -RequestAccess.prototype['capability'] = undefined; +SecureRemoteAccess.prototype['account_id'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * @member {Boolean} allow_port_forwarding */ -RequestAccess.prototype['comment'] = undefined; +SecureRemoteAccess.prototype['allow_port_forwarding'] = undefined; /** - * Description of the object - * @member {String} description + * @member {Boolean} allow_providing_external_username */ -RequestAccess.prototype['description'] = undefined; +SecureRemoteAccess.prototype['allow_providing_external_username'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} bastion_api */ -RequestAccess.prototype['json'] = false; +SecureRemoteAccess.prototype['bastion_api'] = undefined; /** - * Item type - * @member {String} name + * @member {String} bastion_issuer */ -RequestAccess.prototype['name'] = undefined; +SecureRemoteAccess.prototype['bastion_issuer'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Number} bastion_issuer_id */ -RequestAccess.prototype['token'] = undefined; +SecureRemoteAccess.prototype['bastion_issuer_id'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} bastion_ssh */ -RequestAccess.prototype['uid-token'] = undefined; -var _default = RequestAccess; -exports["default"] = _default; +SecureRemoteAccess.prototype['bastion_ssh'] = undefined; +/** + * @member {String} category + */ -/***/ }), +SecureRemoteAccess.prototype['category'] = undefined; +/** + * @member {String} dashboard_url + */ -/***/ 77499: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +SecureRemoteAccess.prototype['dashboard_url'] = undefined; +/** + * @member {String} db_name + */ -"use strict"; +SecureRemoteAccess.prototype['db_name'] = undefined; +/** + * @member {String} domain + */ +SecureRemoteAccess.prototype['domain'] = undefined; +/** + * @member {Boolean} enable + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +SecureRemoteAccess.prototype['enable'] = undefined; +/** + * @member {String} endpoint + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +SecureRemoteAccess.prototype['endpoint'] = undefined; +/** + * @member {Array.} host + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +SecureRemoteAccess.prototype['host'] = undefined; +/** + * @member {String} host_provider_type + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +SecureRemoteAccess.prototype['host_provider_type'] = undefined; +/** + * @member {Boolean} is_cli + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +SecureRemoteAccess.prototype['is_cli'] = undefined; +/** + * @member {Boolean} is_web + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +SecureRemoteAccess.prototype['is_web'] = undefined; +/** + * @member {Boolean} isolated + */ +SecureRemoteAccess.prototype['isolated'] = undefined; /** - * The RequestAccessOutput model module. - * @module model/RequestAccessOutput - * @version 3.3.16 + * @member {Boolean} native */ -var RequestAccessOutput = /*#__PURE__*/function () { - /** - * Constructs a new RequestAccessOutput. - * @alias module:model/RequestAccessOutput - */ - function RequestAccessOutput() { - _classCallCheck(this, RequestAccessOutput); - RequestAccessOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +SecureRemoteAccess.prototype['native'] = undefined; +/** + * @member {String} rd_gateway_server + */ +SecureRemoteAccess.prototype['rd_gateway_server'] = undefined; +/** + * @member {String} rdp_user + */ - _createClass(RequestAccessOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RequestAccessOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequestAccessOutput} obj Optional instance to populate. - * @return {module:model/RequestAccessOutput} The populated RequestAccessOutput instance. - */ +SecureRemoteAccess.prototype['rdp_user'] = undefined; +/** + * @member {String} region + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RequestAccessOutput(); +SecureRemoteAccess.prototype['region'] = undefined; +/** + * @member {Boolean} rotate_after_disconnect + */ - if (data.hasOwnProperty('response')) { - obj['response'] = _ApiClient["default"].convertToType(data['response'], 'String'); - } - } +SecureRemoteAccess.prototype['rotate_after_disconnect'] = undefined; +/** + * @member {String} schema + */ - return obj; - } - }]); +SecureRemoteAccess.prototype['schema'] = undefined; +/** + * @member {Boolean} ssh_password + */ - return RequestAccessOutput; -}(); +SecureRemoteAccess.prototype['ssh_password'] = undefined; /** - * @member {String} response + * @member {Boolean} ssh_private_key */ +SecureRemoteAccess.prototype['ssh_private_key'] = undefined; +/** + * @member {String} ssh_user + */ -RequestAccessOutput.prototype['response'] = undefined; -var _default = RequestAccessOutput; +SecureRemoteAccess.prototype['ssh_user'] = undefined; +/** + * @member {module:model/ItemSraStatus} status + */ + +SecureRemoteAccess.prototype['status'] = undefined; +/** + * @member {Array.} target_hosts + */ + +SecureRemoteAccess.prototype['target_hosts'] = undefined; +/** + * @member {Array.} targets + */ + +SecureRemoteAccess.prototype['targets'] = undefined; +/** + * @member {String} url + */ + +SecureRemoteAccess.prototype['url'] = undefined; +/** + * @member {Boolean} use_internal_bastion + */ + +SecureRemoteAccess.prototype['use_internal_bastion'] = undefined; +/** + * @member {Boolean} web_proxy + */ + +SecureRemoteAccess.prototype['web_proxy'] = undefined; +var _default = SecureRemoteAccess; exports["default"] = _default; /***/ }), -/***/ 97134: +/***/ 40758: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97905,7 +175067,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(11801)); + +var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(21912)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -97916,19 +175082,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RequiredActivity model module. - * @module model/RequiredActivity - * @version 3.3.16 + * The ServerInventoryMigration model module. + * @module model/ServerInventoryMigration + * @version 3.6.3 */ -var RequiredActivity = /*#__PURE__*/function () { +var ServerInventoryMigration = /*#__PURE__*/function () { /** - * Constructs a new RequiredActivity. - * @alias module:model/RequiredActivity + * Constructs a new ServerInventoryMigration. + * @alias module:model/ServerInventoryMigration */ - function RequiredActivity() { - _classCallCheck(this, RequiredActivity); + function ServerInventoryMigration() { + _classCallCheck(this, ServerInventoryMigration); - RequiredActivity.initialize(this); + ServerInventoryMigration.initialize(this); } /** * Initializes the fields of this object. @@ -97937,27 +175103,29 @@ var RequiredActivity = /*#__PURE__*/function () { */ - _createClass(RequiredActivity, null, [{ + _createClass(ServerInventoryMigration, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RequiredActivity from a plain JavaScript object, optionally creating a new instance. + * Constructs a ServerInventoryMigration from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequiredActivity} obj Optional instance to populate. - * @return {module:model/RequiredActivity} The populated RequiredActivity instance. + * @param {module:model/ServerInventoryMigration} obj Optional instance to populate. + * @return {module:model/ServerInventoryMigration} The populated ServerInventoryMigration instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RequiredActivity(); + obj = obj || new ServerInventoryMigration(); - if (data.hasOwnProperty('migrations_required_activity')) { - obj['migrations_required_activity'] = _ApiClient["default"].convertToType(data['migrations_required_activity'], { - 'String': 'Boolean' - }); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ServerInventoryPayload["default"].constructFromObject(data['payload']); } } @@ -97965,20 +175133,25 @@ var RequiredActivity = /*#__PURE__*/function () { } }]); - return RequiredActivity; + return ServerInventoryMigration; }(); /** - * @member {Object.} migrations_required_activity + * @member {module:model/MigrationGeneral} general */ -RequiredActivity.prototype['migrations_required_activity'] = undefined; -var _default = RequiredActivity; +ServerInventoryMigration.prototype['general'] = undefined; +/** + * @member {module:model/ServerInventoryPayload} payload + */ + +ServerInventoryMigration.prototype['payload'] = undefined; +var _default = ServerInventoryMigration; exports["default"] = _default; /***/ }), -/***/ 11179: +/***/ 21912: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -97989,7 +175162,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98000,22 +175173,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ReverseRBAC model module. - * @module model/ReverseRBAC - * @version 3.3.16 + * The ServerInventoryPayload model module. + * @module model/ServerInventoryPayload + * @version 3.6.3 */ -var ReverseRBAC = /*#__PURE__*/function () { +var ServerInventoryPayload = /*#__PURE__*/function () { /** - * Constructs a new ReverseRBAC. - * reverseRBAC is a command that shows which auth methods have access to a particular object. - * @alias module:model/ReverseRBAC - * @param path {String} Path to an object - * @param type {String} Type of object (item, am, role) + * Constructs a new ServerInventoryPayload. + * @alias module:model/ServerInventoryPayload */ - function ReverseRBAC(path, type) { - _classCallCheck(this, ReverseRBAC); + function ServerInventoryPayload() { + _classCallCheck(this, ServerInventoryPayload); - ReverseRBAC.initialize(this, path, type); + ServerInventoryPayload.initialize(this); } /** * Initializes the fields of this object. @@ -98024,44 +175194,59 @@ var ReverseRBAC = /*#__PURE__*/function () { */ - _createClass(ReverseRBAC, null, [{ + _createClass(ServerInventoryPayload, null, [{ key: "initialize", - value: function initialize(obj, path, type) { - obj['path'] = path; - obj['type'] = type; - } + value: function initialize(obj) {} /** - * Constructs a ReverseRBAC from a plain JavaScript object, optionally creating a new instance. + * Constructs a ServerInventoryPayload from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReverseRBAC} obj Optional instance to populate. - * @return {module:model/ReverseRBAC} The populated ReverseRBAC instance. + * @param {module:model/ServerInventoryPayload} obj Optional instance to populate. + * @return {module:model/ServerInventoryPayload} The populated ServerInventoryPayload instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ReverseRBAC(); + obj = obj || new ServerInventoryPayload(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('auto_rotate')) { + obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); } - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('auto_rotate_interval_in_days')) { + obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('auto_rotate_rotation_hour')) { + obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + if (data.hasOwnProperty('enable_rdp_sra')) { + obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('migration_target_id')) { + obj['migration_target_id'] = _ApiClient["default"].convertToType(data['migration_target_id'], 'Number'); + } + + if (data.hasOwnProperty('server_targets_path_template')) { + obj['server_targets_path_template'] = _ApiClient["default"].convertToType(data['server_targets_path_template'], 'String'); + } + + if (data.hasOwnProperty('user_groups')) { + obj['user_groups'] = _ApiClient["default"].convertToType(data['user_groups'], ['String']); + } + + if (data.hasOwnProperty('users_ignore_list')) { + obj['users_ignore_list'] = _ApiClient["default"].convertToType(data['users_ignore_list'], { + 'String': 'Boolean' + }); + } + + if (data.hasOwnProperty('users_rotated_secrets_path_template')) { + obj['users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['users_rotated_secrets_path_template'], 'String'); } } @@ -98069,46 +175254,60 @@ var ReverseRBAC = /*#__PURE__*/function () { } }]); - return ReverseRBAC; + return ServerInventoryPayload; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Boolean} auto_rotate */ -ReverseRBAC.prototype['json'] = false; +ServerInventoryPayload.prototype['auto_rotate'] = undefined; /** - * Path to an object - * @member {String} path + * @member {Number} auto_rotate_interval_in_days */ -ReverseRBAC.prototype['path'] = undefined; +ServerInventoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Number} auto_rotate_rotation_hour */ -ReverseRBAC.prototype['token'] = undefined; +ServerInventoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; /** - * Type of object (item, am, role) - * @member {String} type + * @member {Boolean} enable_rdp_sra */ -ReverseRBAC.prototype['type'] = undefined; +ServerInventoryPayload.prototype['enable_rdp_sra'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Number} migration_target_id */ -ReverseRBAC.prototype['uid-token'] = undefined; -var _default = ReverseRBAC; +ServerInventoryPayload.prototype['migration_target_id'] = undefined; +/** + * @member {String} server_targets_path_template + */ + +ServerInventoryPayload.prototype['server_targets_path_template'] = undefined; +/** + * @member {Array.} user_groups + */ + +ServerInventoryPayload.prototype['user_groups'] = undefined; +/** + * @member {Object.} users_ignore_list + */ + +ServerInventoryPayload.prototype['users_ignore_list'] = undefined; +/** + * @member {String} users_rotated_secrets_path_template + */ + +ServerInventoryPayload.prototype['users_rotated_secrets_path_template'] = undefined; +var _default = ServerInventoryPayload; exports["default"] = _default; /***/ }), -/***/ 65427: +/***/ 33993: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98119,9 +175318,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(80866)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98132,19 +175329,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ReverseRBACClient model module. - * @module model/ReverseRBACClient - * @version 3.3.16 + * The SetItemState model module. + * @module model/SetItemState + * @version 3.6.3 */ -var ReverseRBACClient = /*#__PURE__*/function () { +var SetItemState = /*#__PURE__*/function () { /** - * Constructs a new ReverseRBACClient. - * @alias module:model/ReverseRBACClient + * Constructs a new SetItemState. + * @alias module:model/SetItemState + * @param desiredState {String} Desired item state (Enabled, Disabled) + * @param name {String} Current item name */ - function ReverseRBACClient() { - _classCallCheck(this, ReverseRBACClient); + function SetItemState(desiredState, name) { + _classCallCheck(this, SetItemState); - ReverseRBACClient.initialize(this); + SetItemState.initialize(this, desiredState, name); } /** * Initializes the fields of this object. @@ -98153,29 +175352,48 @@ var ReverseRBACClient = /*#__PURE__*/function () { */ - _createClass(ReverseRBACClient, null, [{ + _createClass(SetItemState, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, desiredState, name) { + obj['desired-state'] = desiredState; + obj['name'] = name; + } /** - * Constructs a ReverseRBACClient from a plain JavaScript object, optionally creating a new instance. + * Constructs a SetItemState from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReverseRBACClient} obj Optional instance to populate. - * @return {module:model/ReverseRBACClient} The populated ReverseRBACClient instance. + * @param {module:model/SetItemState} obj Optional instance to populate. + * @return {module:model/SetItemState} The populated SetItemState instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ReverseRBACClient(); + obj = obj || new SetItemState(); - if (data.hasOwnProperty('assocs')) { - obj['assocs'] = _ApiClient["default"].convertToType(data['assocs'], [_AuthMethodRoleAssociation["default"]]); + if (data.hasOwnProperty('desired-state')) { + obj['desired-state'] = _ApiClient["default"].convertToType(data['desired-state'], 'String'); } - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -98183,111 +175401,53 @@ var ReverseRBACClient = /*#__PURE__*/function () { } }]); - return ReverseRBACClient; + return SetItemState; }(); /** - * @member {Array.} assocs + * Desired item state (Enabled, Disabled) + * @member {String} desired-state */ -ReverseRBACClient.prototype['assocs'] = undefined; +SetItemState.prototype['desired-state'] = undefined; /** - * @member {String} auth_method_name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ReverseRBACClient.prototype['auth_method_name'] = undefined; -var _default = ReverseRBACClient; -exports["default"] = _default; - -/***/ }), - -/***/ 73443: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(65427)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +SetItemState.prototype['json'] = false; /** - * The ReverseRBACOutput model module. - * @module model/ReverseRBACOutput - * @version 3.3.16 + * Current item name + * @member {String} name */ -var ReverseRBACOutput = /*#__PURE__*/function () { - /** - * Constructs a new ReverseRBACOutput. - * @alias module:model/ReverseRBACOutput - */ - function ReverseRBACOutput() { - _classCallCheck(this, ReverseRBACOutput); - - ReverseRBACOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ReverseRBACOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ReverseRBACOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReverseRBACOutput} obj Optional instance to populate. - * @return {module:model/ReverseRBACOutput} The populated ReverseRBACOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReverseRBACOutput(); - - if (data.hasOwnProperty('clients')) { - obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { - 'String': _ReverseRBACClient["default"] - }); - } - } - return obj; - } - }]); +SetItemState.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return ReverseRBACOutput; -}(); +SetItemState.prototype['token'] = undefined; /** - * @member {Object.} clients + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +SetItemState.prototype['uid-token'] = undefined; +/** + * The specific version you want to update: 0=item level state (default) (relevant only for keys) + * @member {Number} version + * @default 0 + */ -ReverseRBACOutput.prototype['clients'] = undefined; -var _default = ReverseRBACOutput; +SetItemState.prototype['version'] = 0; +var _default = SetItemState; exports["default"] = _default; /***/ }), -/***/ 37379: +/***/ 84215: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98298,7 +175458,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98309,20 +175469,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RevokeCreds model module. - * @module model/RevokeCreds - * @version 3.3.16 + * The SetRoleRule model module. + * @module model/SetRoleRule + * @version 3.6.3 */ -var RevokeCreds = /*#__PURE__*/function () { +var SetRoleRule = /*#__PURE__*/function () { /** - * Constructs a new RevokeCreds. - * revokeCreds will permanently revoke the credentials associated with the provided token or profile. - * @alias module:model/RevokeCreds + * Constructs a new SetRoleRule. + * @alias module:model/SetRoleRule + * @param capability {Array.} List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] + * @param path {String} The path the rule refers to + * @param roleName {String} The role name to be updated */ - function RevokeCreds() { - _classCallCheck(this, RevokeCreds); + function SetRoleRule(capability, path, roleName) { + _classCallCheck(this, SetRoleRule); - RevokeCreds.initialize(this); + SetRoleRule.initialize(this, capability, path, roleName); } /** * Initializes the fields of this object. @@ -98331,31 +175493,55 @@ var RevokeCreds = /*#__PURE__*/function () { */ - _createClass(RevokeCreds, null, [{ + _createClass(SetRoleRule, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, capability, path, roleName) { + obj['capability'] = capability; + obj['path'] = path; + obj['role-name'] = roleName; + } /** - * Constructs a RevokeCreds from a plain JavaScript object, optionally creating a new instance. + * Constructs a SetRoleRule from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RevokeCreds} obj Optional instance to populate. - * @return {module:model/RevokeCreds} The populated RevokeCreds instance. + * @param {module:model/SetRoleRule} obj Optional instance to populate. + * @return {module:model/SetRoleRule} The populated SetRoleRule instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RevokeCreds(); + obj = obj || new SetRoleRule(); + + if (data.hasOwnProperty('capability')) { + obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('role-name')) { + obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + } + + if (data.hasOwnProperty('rule-type')) { + obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -98365,34 +175551,65 @@ var RevokeCreds = /*#__PURE__*/function () { } }]); - return RevokeCreds; + return SetRoleRule; }(); +/** + * List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] + * @member {Array.} capability + */ + + +SetRoleRule.prototype['capability'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +SetRoleRule.prototype['json'] = false; +/** + * The path the rule refers to + * @member {String} path + */ -RevokeCreds.prototype['json'] = false; +SetRoleRule.prototype['path'] = undefined; +/** + * The role name to be updated + * @member {String} role-name + */ + +SetRoleRule.prototype['role-name'] = undefined; +/** + * item-rule, target-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule, sra-rule + * @member {String} rule-type + * @default 'item-rule' + */ + +SetRoleRule.prototype['rule-type'] = 'item-rule'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -RevokeCreds.prototype['token'] = undefined; +SetRoleRule.prototype['token'] = undefined; +/** + * RoleRule ttl + * @member {Number} ttl + */ + +SetRoleRule.prototype['ttl'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -RevokeCreds.prototype['uid-token'] = undefined; -var _default = RevokeCreds; +SetRoleRule.prototype['uid-token'] = undefined; +var _default = SetRoleRule; exports["default"] = _default; /***/ }), -/***/ 42980: +/***/ 22705: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98403,11 +175620,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(80950)); - -var _Rules = _interopRequireDefault(__nccwpck_require__(53284)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98418,19 +175631,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Role model module. - * @module model/Role - * @version 3.3.16 + * The ShareItem model module. + * @module model/ShareItem + * @version 3.6.3 */ -var Role = /*#__PURE__*/function () { +var ShareItem = /*#__PURE__*/function () { /** - * Constructs a new Role. - * @alias module:model/Role + * Constructs a new ShareItem. + * @alias module:model/ShareItem + * @param action {String} Action to be performed on the item [start/stop/describe] + * @param itemName {String} Item name */ - function Role() { - _classCallCheck(this, Role); + function ShareItem(action, itemName) { + _classCallCheck(this, ShareItem); - Role.initialize(this); + ShareItem.initialize(this, action, itemName); } /** * Initializes the fields of this object. @@ -98439,53 +175654,60 @@ var Role = /*#__PURE__*/function () { */ - _createClass(Role, null, [{ + _createClass(ShareItem, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, action, itemName) { + obj['action'] = action; + obj['item-name'] = itemName; + } /** - * Constructs a Role from a plain JavaScript object, optionally creating a new instance. + * Constructs a ShareItem from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Role} obj Optional instance to populate. - * @return {module:model/Role} The populated Role instance. + * @param {module:model/ShareItem} obj Optional instance to populate. + * @return {module:model/ShareItem} The populated ShareItem instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Role(); + obj = obj || new ShareItem(); - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + if (data.hasOwnProperty('action')) { + obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('emails')) { + obj['emails'] = _ApiClient["default"].convertToType(data['emails'], ['String']); } - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + if (data.hasOwnProperty('item-name')) { + obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); } - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('role_auth_methods_assoc')) { - obj['role_auth_methods_assoc'] = _ApiClient["default"].convertToType(data['role_auth_methods_assoc'], [_RoleAuthMethodAssociation["default"]]); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); } - if (data.hasOwnProperty('rules')) { - obj['rules'] = _Rules["default"].constructFromObject(data['rules']); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('view-once')) { + obj['view-once'] = _ApiClient["default"].convertToType(data['view-once'], 'Boolean'); } } @@ -98493,55 +175715,72 @@ var Role = /*#__PURE__*/function () { } }]); - return Role; + return ShareItem; }(); /** - * @member {Date} access_date + * for personal password manager + * @member {String} accessibility + * @default 'regular' */ -Role.prototype['access_date'] = undefined; +ShareItem.prototype['accessibility'] = 'regular'; /** - * @member {Array.} client_permissions + * Action to be performed on the item [start/stop/describe] + * @member {String} action */ -Role.prototype['client_permissions'] = undefined; +ShareItem.prototype['action'] = undefined; /** - * @member {String} comment + * For Password Management use, reflect the website context + * @member {Array.} emails */ -Role.prototype['comment'] = undefined; +ShareItem.prototype['emails'] = undefined; /** - * @member {Date} creation_date + * Item name + * @member {String} item-name */ -Role.prototype['creation_date'] = undefined; +ShareItem.prototype['item-name'] = undefined; /** - * @member {Date} modification_date + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Role.prototype['modification_date'] = undefined; +ShareItem.prototype['json'] = false; /** - * @member {Array.} role_auth_methods_assoc + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Role.prototype['role_auth_methods_assoc'] = undefined; +ShareItem.prototype['token'] = undefined; /** - * @member {String} role_name + * TTL of the Availability of the shared secret in seconds + * @member {Number} ttl */ -Role.prototype['role_name'] = undefined; +ShareItem.prototype['ttl'] = undefined; /** - * @member {module:model/Rules} rules + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Role.prototype['rules'] = undefined; -var _default = Role; +ShareItem.prototype['uid-token'] = undefined; +/** + * ViewOnlyOnce Shared secrets can only be viewed once [true/false] + * @member {Boolean} view-once + * @default false + */ + +ShareItem.prototype['view-once'] = false; +var _default = ShareItem; exports["default"] = _default; /***/ }), -/***/ 43168: +/***/ 48379: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98552,7 +175791,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98563,20 +175802,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RoleAssociationDetails model module. - * @module model/RoleAssociationDetails - * @version 3.3.16 + * The SharingPolicyInfo model module. + * @module model/SharingPolicyInfo + * @version 3.6.3 */ -var RoleAssociationDetails = /*#__PURE__*/function () { +var SharingPolicyInfo = /*#__PURE__*/function () { /** - * Constructs a new RoleAssociationDetails. - * RoleAssociationDetails includes details of an association between a role and an auth method. - * @alias module:model/RoleAssociationDetails + * Constructs a new SharingPolicyInfo. + * @alias module:model/SharingPolicyInfo */ - function RoleAssociationDetails() { - _classCallCheck(this, RoleAssociationDetails); + function SharingPolicyInfo() { + _classCallCheck(this, SharingPolicyInfo); - RoleAssociationDetails.initialize(this); + SharingPolicyInfo.initialize(this); } /** * Initializes the fields of this object. @@ -98585,43 +175823,25 @@ var RoleAssociationDetails = /*#__PURE__*/function () { */ - _createClass(RoleAssociationDetails, null, [{ + _createClass(SharingPolicyInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RoleAssociationDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a SharingPolicyInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RoleAssociationDetails} obj Optional instance to populate. - * @return {module:model/RoleAssociationDetails} The populated RoleAssociationDetails instance. + * @param {module:model/SharingPolicyInfo} obj Optional instance to populate. + * @return {module:model/SharingPolicyInfo} The populated SharingPolicyInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RoleAssociationDetails(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); - } - - if (data.hasOwnProperty('auth_method_sub_claims')) { - obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); - } + obj = obj || new SharingPolicyInfo(); - if (data.hasOwnProperty('sub_claims_case_sensitive')) { - obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); + if (data.hasOwnProperty('default_share_link_ttl')) { + obj['default_share_link_ttl'] = _ApiClient["default"].convertToType(data['default_share_link_ttl'], 'Number'); } } @@ -98629,40 +175849,20 @@ var RoleAssociationDetails = /*#__PURE__*/function () { } }]); - return RoleAssociationDetails; + return SharingPolicyInfo; }(); /** - * @member {String} assoc_id - */ - - -RoleAssociationDetails.prototype['assoc_id'] = undefined; -/** - * @member {String} auth_method_name - */ - -RoleAssociationDetails.prototype['auth_method_name'] = undefined; -/** - * @member {Object.>} auth_method_sub_claims - */ - -RoleAssociationDetails.prototype['auth_method_sub_claims'] = undefined; -/** - * @member {String} role_name + * @member {Number} default_share_link_ttl */ -RoleAssociationDetails.prototype['role_name'] = undefined; -/** - * @member {Boolean} sub_claims_case_sensitive - */ -RoleAssociationDetails.prototype['sub_claims_case_sensitive'] = undefined; -var _default = RoleAssociationDetails; +SharingPolicyInfo.prototype['default_share_link_ttl'] = undefined; +var _default = SharingPolicyInfo; exports["default"] = _default; /***/ }), -/***/ 80950: +/***/ 13875: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98673,7 +175873,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98684,20 +175884,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RoleAuthMethodAssociation model module. - * @module model/RoleAuthMethodAssociation - * @version 3.3.16 + * The SignDataWithClassicKey model module. + * @module model/SignDataWithClassicKey + * @version 3.6.3 */ -var RoleAuthMethodAssociation = /*#__PURE__*/function () { +var SignDataWithClassicKey = /*#__PURE__*/function () { /** - * Constructs a new RoleAuthMethodAssociation. - * RoleAuthMethodAssociation includes details of an association between a role and an auth method. - * @alias module:model/RoleAuthMethodAssociation + * Constructs a new SignDataWithClassicKey. + * @alias module:model/SignDataWithClassicKey + * @param data {String} Data + * @param displayId {String} The name of the key to use in the sign data process + * @param name {String} ClassicKey name + * @param version {Number} classic key version */ - function RoleAuthMethodAssociation() { - _classCallCheck(this, RoleAuthMethodAssociation); + function SignDataWithClassicKey(data, displayId, name, version) { + _classCallCheck(this, SignDataWithClassicKey); - RoleAuthMethodAssociation.initialize(this); + SignDataWithClassicKey.initialize(this, data, displayId, name, version); } /** * Initializes the fields of this object. @@ -98706,43 +175909,66 @@ var RoleAuthMethodAssociation = /*#__PURE__*/function () { */ - _createClass(RoleAuthMethodAssociation, null, [{ + _createClass(SignDataWithClassicKey, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, data, displayId, name, version) { + obj['data'] = data; + obj['display-id'] = displayId; + obj['name'] = name; + obj['version'] = version; + } /** - * Constructs a RoleAuthMethodAssociation from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignDataWithClassicKey from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RoleAuthMethodAssociation} obj Optional instance to populate. - * @return {module:model/RoleAuthMethodAssociation} The populated RoleAuthMethodAssociation instance. + * @param {module:model/SignDataWithClassicKey} obj Optional instance to populate. + * @return {module:model/SignDataWithClassicKey} The populated SignDataWithClassicKey instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RoleAuthMethodAssociation(); + obj = obj || new SignDataWithClassicKey(); - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); } - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + if (data.hasOwnProperty('hashed')) { + obj['hashed'] = _ApiClient["default"].convertToType(data['hashed'], 'Boolean'); } - if (data.hasOwnProperty('auth_method_sub_claims')) { - obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('hashing-method')) { + obj['hashing-method'] = _ApiClient["default"].convertToType(data['hashing-method'], 'String'); } - if (data.hasOwnProperty('sub_claims_case_sensitive')) { - obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -98750,40 +175976,79 @@ var RoleAuthMethodAssociation = /*#__PURE__*/function () { } }]); - return RoleAuthMethodAssociation; + return SignDataWithClassicKey; }(); /** - * @member {String} assoc_id + * Data + * @member {String} data */ -RoleAuthMethodAssociation.prototype['assoc_id'] = undefined; +SignDataWithClassicKey.prototype['data'] = undefined; /** - * @member {String} auth_method_access_id + * The name of the key to use in the sign data process + * @member {String} display-id */ -RoleAuthMethodAssociation.prototype['auth_method_access_id'] = undefined; +SignDataWithClassicKey.prototype['display-id'] = undefined; /** - * @member {String} auth_method_name + * Defines whether the data should be hashed as part of the signing. If true, the data will not be hashed + * @member {Boolean} hashed + * @default false */ -RoleAuthMethodAssociation.prototype['auth_method_name'] = undefined; +SignDataWithClassicKey.prototype['hashed'] = false; /** - * @member {Object.>} auth_method_sub_claims + * HashingMethod + * @member {String} hashing-method + * @default 'SHA256' */ -RoleAuthMethodAssociation.prototype['auth_method_sub_claims'] = undefined; +SignDataWithClassicKey.prototype['hashing-method'] = 'SHA256'; /** - * @member {Boolean} sub_claims_case_sensitive + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' */ -RoleAuthMethodAssociation.prototype['sub_claims_case_sensitive'] = undefined; -var _default = RoleAuthMethodAssociation; +SignDataWithClassicKey.prototype['ignore-cache'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +SignDataWithClassicKey.prototype['json'] = false; +/** + * ClassicKey name + * @member {String} name + */ + +SignDataWithClassicKey.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +SignDataWithClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +SignDataWithClassicKey.prototype['uid-token'] = undefined; +/** + * classic key version + * @member {Number} version + */ + +SignDataWithClassicKey.prototype['version'] = undefined; +var _default = SignDataWithClassicKey; exports["default"] = _default; /***/ }), -/***/ 93505: +/***/ 60074: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98794,7 +176059,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98805,21 +176070,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RollbackSecret model module. - * @module model/RollbackSecret - * @version 3.3.16 + * The SignEcDsa model module. + * @module model/SignEcDsa + * @version 3.6.3 */ -var RollbackSecret = /*#__PURE__*/function () { +var SignEcDsa = /*#__PURE__*/function () { /** - * Constructs a new RollbackSecret. - * @alias module:model/RollbackSecret - * @param name {String} Secret name - * @param oldVersion {Number} Old secret version to rollback to + * Constructs a new SignEcDsa. + * signEcDsa Calculates the signature of a given message using ECDSA and a sha hash algorithm matching the key size + * @alias module:model/SignEcDsa + * @param message {String} The input message to sign in a base64 format */ - function RollbackSecret(name, oldVersion) { - _classCallCheck(this, RollbackSecret); + function SignEcDsa(message) { + _classCallCheck(this, SignEcDsa); - RollbackSecret.initialize(this, name, oldVersion); + SignEcDsa.initialize(this, message); } /** * Initializes the fields of this object. @@ -98828,36 +176093,47 @@ var RollbackSecret = /*#__PURE__*/function () { */ - _createClass(RollbackSecret, null, [{ + _createClass(SignEcDsa, null, [{ key: "initialize", - value: function initialize(obj, name, oldVersion) { - obj['name'] = name; - obj['old-version'] = oldVersion; + value: function initialize(obj, message) { + obj['message'] = message; } /** - * Constructs a RollbackSecret from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignEcDsa from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RollbackSecret} obj Optional instance to populate. - * @return {module:model/RollbackSecret} The populated RollbackSecret instance. + * @param {module:model/SignEcDsa} obj Optional instance to populate. + * @return {module:model/SignEcDsa} The populated SignEcDsa instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RollbackSecret(); + obj = obj || new SignEcDsa(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); } - if (data.hasOwnProperty('old-version')) { - obj['old-version'] = _ApiClient["default"].convertToType(data['old-version'], 'Number'); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); } if (data.hasOwnProperty('token')) { @@ -98867,52 +176143,80 @@ var RollbackSecret = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } } return obj; } }]); - return RollbackSecret; + return SignEcDsa; }(); +/** + * The display id of the EC key to use for the signing process + * @member {String} display-id + */ + + +SignEcDsa.prototype['display-id'] = undefined; +/** + * The item id of the EC key to use for the signing process + * @member {Number} item-id + */ + +SignEcDsa.prototype['item-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +SignEcDsa.prototype['json'] = false; +/** + * The name of the EC key to use for the signing process + * @member {String} key-name + */ -RollbackSecret.prototype['json'] = false; +SignEcDsa.prototype['key-name'] = undefined; /** - * Secret name - * @member {String} name + * The input message to sign in a base64 format + * @member {String} message */ -RollbackSecret.prototype['name'] = undefined; +SignEcDsa.prototype['message'] = undefined; /** - * Old secret version to rollback to - * @member {Number} old-version + * Markes that the message is already hashed + * @member {Boolean} prehashed */ -RollbackSecret.prototype['old-version'] = undefined; +SignEcDsa.prototype['prehashed'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -RollbackSecret.prototype['token'] = undefined; +SignEcDsa.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -RollbackSecret.prototype['uid-token'] = undefined; -var _default = RollbackSecret; +SignEcDsa.prototype['uid-token'] = undefined; +/** + * The version of the key to use for signing + * @member {Number} version + */ + +SignEcDsa.prototype['version'] = undefined; +var _default = SignEcDsa; exports["default"] = _default; /***/ }), -/***/ 90409: +/***/ 23679: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98923,7 +176227,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -98934,19 +176238,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RollbackSecretOutput model module. - * @module model/RollbackSecretOutput - * @version 3.3.16 + * The SignEcDsaOutput model module. + * @module model/SignEcDsaOutput + * @version 3.6.3 */ -var RollbackSecretOutput = /*#__PURE__*/function () { +var SignEcDsaOutput = /*#__PURE__*/function () { /** - * Constructs a new RollbackSecretOutput. - * @alias module:model/RollbackSecretOutput + * Constructs a new SignEcDsaOutput. + * @alias module:model/SignEcDsaOutput */ - function RollbackSecretOutput() { - _classCallCheck(this, RollbackSecretOutput); + function SignEcDsaOutput() { + _classCallCheck(this, SignEcDsaOutput); - RollbackSecretOutput.initialize(this); + SignEcDsaOutput.initialize(this); } /** * Initializes the fields of this object. @@ -98955,29 +176259,25 @@ var RollbackSecretOutput = /*#__PURE__*/function () { */ - _createClass(RollbackSecretOutput, null, [{ + _createClass(SignEcDsaOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RollbackSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignEcDsaOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RollbackSecretOutput} obj Optional instance to populate. - * @return {module:model/RollbackSecretOutput} The populated RollbackSecretOutput instance. + * @param {module:model/SignEcDsaOutput} obj Optional instance to populate. + * @return {module:model/SignEcDsaOutput} The populated SignEcDsaOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RollbackSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } + obj = obj || new SignEcDsaOutput(); - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -98985,25 +176285,20 @@ var RollbackSecretOutput = /*#__PURE__*/function () { } }]); - return RollbackSecretOutput; + return SignEcDsaOutput; }(); /** - * @member {String} name + * @member {String} result */ -RollbackSecretOutput.prototype['name'] = undefined; -/** - * @member {Number} version - */ - -RollbackSecretOutput.prototype['version'] = undefined; -var _default = RollbackSecretOutput; +SignEcDsaOutput.prototype['result'] = undefined; +var _default = SignEcDsaOutput; exports["default"] = _default; /***/ }), -/***/ 35995: +/***/ 47626: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99014,7 +176309,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99025,21 +176320,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RotateKey model module. - * @module model/RotateKey - * @version 3.3.16 + * The SignGPG model module. + * @module model/SignGPG + * @version 3.6.3 */ -var RotateKey = /*#__PURE__*/function () { +var SignGPG = /*#__PURE__*/function () { /** - * Constructs a new RotateKey. - * of it. - * @alias module:model/RotateKey - * @param name {String} Key name + * Constructs a new SignGPG. + * @alias module:model/SignGPG + * @param keyName {String} The name of the key to use in the encryption process + * @param message {String} The message to be signed in base64 format */ - function RotateKey(name) { - _classCallCheck(this, RotateKey); + function SignGPG(keyName, message) { + _classCallCheck(this, SignGPG); - RotateKey.initialize(this, name); + SignGPG.initialize(this, keyName, message); } /** * Initializes the fields of this object. @@ -99048,39 +176343,48 @@ var RotateKey = /*#__PURE__*/function () { */ - _createClass(RotateKey, null, [{ + _createClass(SignGPG, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, keyName, message) { + obj['key-name'] = keyName; + obj['message'] = message; } /** - * Constructs a RotateKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignGPG from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotateKey} obj Optional instance to populate. - * @return {module:model/RotateKey} The populated RotateKey instance. + * @param {module:model/SignGPG} obj Optional instance to populate. + * @return {module:model/SignGPG} The populated SignGPG instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RotateKey(); + obj = obj || new SignGPG(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); } - if (data.hasOwnProperty('new-cert-pem-data')) { - obj['new-cert-pem-data'] = _ApiClient["default"].convertToType(data['new-cert-pem-data'], 'String'); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); } - if (data.hasOwnProperty('new-key-data')) { - obj['new-key-data'] = _ApiClient["default"].convertToType(data['new-key-data'], 'String'); + if (data.hasOwnProperty('passphrase')) { + obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); } if (data.hasOwnProperty('token')) { @@ -99096,52 +176400,64 @@ var RotateKey = /*#__PURE__*/function () { } }]); - return RotateKey; + return SignGPG; }(); +/** + * The display id of the key to use in the encryption process + * @member {String} display-id + */ + + +SignGPG.prototype['display-id'] = undefined; +/** + * The item id of the key to use in the encryption process + * @member {Number} item-id + */ + +SignGPG.prototype['item-id'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ - -RotateKey.prototype['json'] = false; +SignGPG.prototype['json'] = false; /** - * Key name - * @member {String} name + * The name of the key to use in the encryption process + * @member {String} key-name */ -RotateKey.prototype['name'] = undefined; +SignGPG.prototype['key-name'] = undefined; /** - * The new pem encoded certificate for the classic key. relevant only for keys provided by user ('bring-your-own-key') - * @member {String} new-cert-pem-data + * The message to be signed in base64 format + * @member {String} message */ -RotateKey.prototype['new-cert-pem-data'] = undefined; +SignGPG.prototype['message'] = undefined; /** - * The new base64 encoded value for the classic key. relevant only for keys provided by user ('bring-your-own-key') - * @member {String} new-key-data + * Passphrase that was used to generate the key + * @member {String} passphrase */ -RotateKey.prototype['new-key-data'] = undefined; +SignGPG.prototype['passphrase'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -RotateKey.prototype['token'] = undefined; +SignGPG.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -RotateKey.prototype['uid-token'] = undefined; -var _default = RotateKey; +SignGPG.prototype['uid-token'] = undefined; +var _default = SignGPG; exports["default"] = _default; /***/ }), -/***/ 60724: +/***/ 82879: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99152,7 +176468,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99163,20 +176479,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RotateKeyOutput model module. - * @module model/RotateKeyOutput - * @version 3.3.16 + * The SignGPGOutput model module. + * @module model/SignGPGOutput + * @version 3.6.3 */ -var RotateKeyOutput = /*#__PURE__*/function () { +var SignGPGOutput = /*#__PURE__*/function () { /** - * Constructs a new RotateKeyOutput. - * RotateKeyOutput defines output of RotateKey operation - * @alias module:model/RotateKeyOutput + * Constructs a new SignGPGOutput. + * @alias module:model/SignGPGOutput */ - function RotateKeyOutput() { - _classCallCheck(this, RotateKeyOutput); + function SignGPGOutput() { + _classCallCheck(this, SignGPGOutput); - RotateKeyOutput.initialize(this); + SignGPGOutput.initialize(this); } /** * Initializes the fields of this object. @@ -99185,37 +176500,25 @@ var RotateKeyOutput = /*#__PURE__*/function () { */ - _createClass(RotateKeyOutput, null, [{ + _createClass(SignGPGOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RotateKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignGPGOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotateKeyOutput} obj Optional instance to populate. - * @return {module:model/RotateKeyOutput} The populated RotateKeyOutput instance. + * @param {module:model/SignGPGOutput} obj Optional instance to populate. + * @return {module:model/SignGPGOutput} The populated SignGPGOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RotateKeyOutput(); - - if (data.hasOwnProperty('classic_key_gw_url')) { - obj['classic_key_gw_url'] = _ApiClient["default"].convertToType(data['classic_key_gw_url'], 'String'); - } - - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); - } - - if (data.hasOwnProperty('new_item_version')) { - obj['new_item_version'] = _ApiClient["default"].convertToType(data['new_item_version'], 'Number'); - } + obj = obj || new SignGPGOutput(); - if (data.hasOwnProperty('next_rotation_date')) { - obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -99223,35 +176526,20 @@ var RotateKeyOutput = /*#__PURE__*/function () { } }]); - return RotateKeyOutput; + return SignGPGOutput; }(); /** - * @member {String} classic_key_gw_url - */ - - -RotateKeyOutput.prototype['classic_key_gw_url'] = undefined; -/** - * @member {String} item_type - */ - -RotateKeyOutput.prototype['item_type'] = undefined; -/** - * @member {Number} new_item_version + * @member {String} result */ -RotateKeyOutput.prototype['new_item_version'] = undefined; -/** - * @member {Date} next_rotation_date - */ -RotateKeyOutput.prototype['next_rotation_date'] = undefined; -var _default = RotateKeyOutput; +SignGPGOutput.prototype['result'] = undefined; +var _default = SignGPGOutput; exports["default"] = _default; /***/ }), -/***/ 35025: +/***/ 79454: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99262,7 +176550,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99273,20 +176561,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RotateSecret model module. - * @module model/RotateSecret - * @version 3.3.16 + * The SignJWTOutput model module. + * @module model/SignJWTOutput + * @version 3.6.3 */ -var RotateSecret = /*#__PURE__*/function () { +var SignJWTOutput = /*#__PURE__*/function () { /** - * Constructs a new RotateSecret. - * @alias module:model/RotateSecret - * @param name {String} Secret name (Rotated Secret or Custom Dynamic Secret) + * Constructs a new SignJWTOutput. + * @alias module:model/SignJWTOutput */ - function RotateSecret(name) { - _classCallCheck(this, RotateSecret); + function SignJWTOutput() { + _classCallCheck(this, SignJWTOutput); - RotateSecret.initialize(this, name); + SignJWTOutput.initialize(this); } /** * Initializes the fields of this object. @@ -99295,39 +176582,25 @@ var RotateSecret = /*#__PURE__*/function () { */ - _createClass(RotateSecret, null, [{ + _createClass(SignJWTOutput, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a RotateSecret from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignJWTOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotateSecret} obj Optional instance to populate. - * @return {module:model/RotateSecret} The populated RotateSecret instance. + * @param {module:model/SignJWTOutput} obj Optional instance to populate. + * @return {module:model/SignJWTOutput} The populated SignJWTOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RotateSecret(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new SignJWTOutput(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -99335,40 +176608,20 @@ var RotateSecret = /*#__PURE__*/function () { } }]); - return RotateSecret; + return SignJWTOutput; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -RotateSecret.prototype['json'] = false; -/** - * Secret name (Rotated Secret or Custom Dynamic Secret) - * @member {String} name - */ - -RotateSecret.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} result */ -RotateSecret.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -RotateSecret.prototype['uid-token'] = undefined; -var _default = RotateSecret; +SignJWTOutput.prototype['result'] = undefined; +var _default = SignJWTOutput; exports["default"] = _default; /***/ }), -/***/ 99840: +/***/ 92924: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99379,7 +176632,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99390,20 +176643,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RotatedSecretDetailsInfo model module. - * @module model/RotatedSecretDetailsInfo - * @version 3.3.16 + * The SignJWTWithClassicKey model module. + * @module model/SignJWTWithClassicKey + * @version 3.6.3 */ -var RotatedSecretDetailsInfo = /*#__PURE__*/function () { +var SignJWTWithClassicKey = /*#__PURE__*/function () { /** - * Constructs a new RotatedSecretDetailsInfo. - * RotatedSecretDetailsInfo The rotated secret rotator info - * @alias module:model/RotatedSecretDetailsInfo + * Constructs a new SignJWTWithClassicKey. + * @alias module:model/SignJWTWithClassicKey + * @param displayId {String} The name of the key to use in the sign JWT process + * @param jwtClaims {String} JWTClaims + * @param signingMethod {String} SigningMethod + * @param version {Number} classic key version */ - function RotatedSecretDetailsInfo() { - _classCallCheck(this, RotatedSecretDetailsInfo); + function SignJWTWithClassicKey(displayId, jwtClaims, signingMethod, version) { + _classCallCheck(this, SignJWTWithClassicKey); - RotatedSecretDetailsInfo.initialize(this); + SignJWTWithClassicKey.initialize(this, displayId, jwtClaims, signingMethod, version); } /** * Initializes the fields of this object. @@ -99412,65 +176668,54 @@ var RotatedSecretDetailsInfo = /*#__PURE__*/function () { */ - _createClass(RotatedSecretDetailsInfo, null, [{ + _createClass(SignJWTWithClassicKey, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, displayId, jwtClaims, signingMethod, version) { + obj['display-id'] = displayId; + obj['jwt-claims'] = jwtClaims; + obj['signing-method'] = signingMethod; + obj['version'] = version; + } /** - * Constructs a RotatedSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignJWTWithClassicKey from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotatedSecretDetailsInfo} obj Optional instance to populate. - * @return {module:model/RotatedSecretDetailsInfo} The populated RotatedSecretDetailsInfo instance. + * @param {module:model/SignJWTWithClassicKey} obj Optional instance to populate. + * @return {module:model/SignJWTWithClassicKey} The populated SignJWTWithClassicKey instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RotatedSecretDetailsInfo(); - - if (data.hasOwnProperty('delete_previous_version_in_days')) { - obj['delete_previous_version_in_days'] = _ApiClient["default"].convertToType(data['delete_previous_version_in_days'], 'Number'); - } - - if (data.hasOwnProperty('gw_cluster_id')) { - obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('last_rotation_error')) { - obj['last_rotation_error'] = _ApiClient["default"].convertToType(data['last_rotation_error'], 'String'); - } - - if (data.hasOwnProperty('number_of_versions_to_save')) { - obj['number_of_versions_to_save'] = _ApiClient["default"].convertToType(data['number_of_versions_to_save'], 'Number'); - } + obj = obj || new SignJWTWithClassicKey(); - if (data.hasOwnProperty('rotation_hour')) { - obj['rotation_hour'] = _ApiClient["default"].convertToType(data['rotation_hour'], 'Number'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('rotation_interval_min')) { - obj['rotation_interval_min'] = _ApiClient["default"].convertToType(data['rotation_interval_min'], 'Boolean'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('rotation_statement')) { - obj['rotation_statement'] = _ApiClient["default"].convertToType(data['rotation_statement'], 'String'); + if (data.hasOwnProperty('jwt-claims')) { + obj['jwt-claims'] = _ApiClient["default"].convertToType(data['jwt-claims'], 'String'); } - if (data.hasOwnProperty('rotator_creds_type')) { - obj['rotator_creds_type'] = _ApiClient["default"].convertToType(data['rotator_creds_type'], 'String'); + if (data.hasOwnProperty('signing-method')) { + obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); } - if (data.hasOwnProperty('rotator_status')) { - obj['rotator_status'] = _ApiClient["default"].convertToType(data['rotator_status'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('rotator_type')) { - obj['rotator_type'] = _ApiClient["default"].convertToType(data['rotator_type'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('same_password')) { - obj['same_password'] = _ApiClient["default"].convertToType(data['same_password'], 'Boolean'); + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -99478,71 +176723,58 @@ var RotatedSecretDetailsInfo = /*#__PURE__*/function () { } }]); - return RotatedSecretDetailsInfo; + return SignJWTWithClassicKey; }(); /** - * @member {Number} delete_previous_version_in_days - */ - - -RotatedSecretDetailsInfo.prototype['delete_previous_version_in_days'] = undefined; -/** - * @member {Number} gw_cluster_id - */ - -RotatedSecretDetailsInfo.prototype['gw_cluster_id'] = undefined; -/** - * @member {String} last_rotation_error - */ - -RotatedSecretDetailsInfo.prototype['last_rotation_error'] = undefined; -/** - * @member {Number} number_of_versions_to_save + * The name of the key to use in the sign JWT process + * @member {String} display-id */ -RotatedSecretDetailsInfo.prototype['number_of_versions_to_save'] = undefined; -/** - * @member {Number} rotation_hour - */ -RotatedSecretDetailsInfo.prototype['rotation_hour'] = undefined; +SignJWTWithClassicKey.prototype['display-id'] = undefined; /** - * @member {Boolean} rotation_interval_min + * Set output format to JSON + * @member {Boolean} json + * @default false */ -RotatedSecretDetailsInfo.prototype['rotation_interval_min'] = undefined; +SignJWTWithClassicKey.prototype['json'] = false; /** - * @member {String} rotation_statement + * JWTClaims + * @member {String} jwt-claims */ -RotatedSecretDetailsInfo.prototype['rotation_statement'] = undefined; +SignJWTWithClassicKey.prototype['jwt-claims'] = undefined; /** - * @member {String} rotator_creds_type + * SigningMethod + * @member {String} signing-method */ -RotatedSecretDetailsInfo.prototype['rotator_creds_type'] = undefined; +SignJWTWithClassicKey.prototype['signing-method'] = undefined; /** - * RotationStatus defines types of rotation Status - * @member {String} rotator_status + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -RotatedSecretDetailsInfo.prototype['rotator_status'] = undefined; +SignJWTWithClassicKey.prototype['token'] = undefined; /** - * @member {String} rotator_type + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -RotatedSecretDetailsInfo.prototype['rotator_type'] = undefined; +SignJWTWithClassicKey.prototype['uid-token'] = undefined; /** - * @member {Boolean} same_password + * classic key version + * @member {Number} version */ -RotatedSecretDetailsInfo.prototype['same_password'] = undefined; -var _default = RotatedSecretDetailsInfo; +SignJWTWithClassicKey.prototype['version'] = undefined; +var _default = SignJWTWithClassicKey; exports["default"] = _default; /***/ }), -/***/ 56244: +/***/ 84449: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99553,7 +176785,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99564,19 +176796,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RotatedSecretOutput model module. - * @module model/RotatedSecretOutput - * @version 3.3.16 + * The SignOutput model module. + * @module model/SignOutput + * @version 3.6.3 */ -var RotatedSecretOutput = /*#__PURE__*/function () { +var SignOutput = /*#__PURE__*/function () { /** - * Constructs a new RotatedSecretOutput. - * @alias module:model/RotatedSecretOutput + * Constructs a new SignOutput. + * @alias module:model/SignOutput */ - function RotatedSecretOutput() { - _classCallCheck(this, RotatedSecretOutput); + function SignOutput() { + _classCallCheck(this, SignOutput); - RotatedSecretOutput.initialize(this); + SignOutput.initialize(this); } /** * Initializes the fields of this object. @@ -99585,25 +176817,25 @@ var RotatedSecretOutput = /*#__PURE__*/function () { */ - _createClass(RotatedSecretOutput, null, [{ + _createClass(SignOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotatedSecretOutput} obj Optional instance to populate. - * @return {module:model/RotatedSecretOutput} The populated RotatedSecretOutput instance. + * @param {module:model/SignOutput} obj Optional instance to populate. + * @return {module:model/SignOutput} The populated SignOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RotatedSecretOutput(); + obj = obj || new SignOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -99611,20 +176843,20 @@ var RotatedSecretOutput = /*#__PURE__*/function () { } }]); - return RotatedSecretOutput; + return SignOutput; }(); /** - * @member {String} name + * @member {String} result */ -RotatedSecretOutput.prototype['name'] = undefined; -var _default = RotatedSecretOutput; +SignOutput.prototype['result'] = undefined; +var _default = SignOutput; exports["default"] = _default; /***/ }), -/***/ 36897: +/***/ 11812: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99635,7 +176867,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99646,19 +176878,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Rotator model module. - * @module model/Rotator - * @version 3.3.16 + * The SignPKCS1 model module. + * @module model/SignPKCS1 + * @version 3.6.3 */ -var Rotator = /*#__PURE__*/function () { +var SignPKCS1 = /*#__PURE__*/function () { /** - * Constructs a new Rotator. - * @alias module:model/Rotator + * Constructs a new SignPKCS1. + * signPKCS1 is a command that calculates the signature of hashed data using RSASSA-PKCS1-V1_5-SIGN from RSA PKCS#1 v1.5. + * @alias module:model/SignPKCS1 + * @param message {String} The message to be signed */ - function Rotator() { - _classCallCheck(this, Rotator); + function SignPKCS1(message) { + _classCallCheck(this, SignPKCS1); - Rotator.initialize(this); + SignPKCS1.initialize(this, message); } /** * Initializes the fields of this object. @@ -99667,41 +176901,67 @@ var Rotator = /*#__PURE__*/function () { */ - _createClass(Rotator, null, [{ + _createClass(SignPKCS1, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, message) { + obj['message'] = message; + } /** - * Constructs a Rotator from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignPKCS1 from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Rotator} obj Optional instance to populate. - * @return {module:model/Rotator} The populated Rotator instance. + * @param {module:model/SignPKCS1} obj Optional instance to populate. + * @return {module:model/SignPKCS1} The populated SignPKCS1 instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Rotator(); + obj = obj || new SignPKCS1(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('last_error')) { - obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); } - if (data.hasOwnProperty('rotation_interval')) { - obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -99709,124 +176969,82 @@ var Rotator = /*#__PURE__*/function () { } }]); - return Rotator; + return SignPKCS1; }(); /** - * @member {Number} id + * The display id of the key to use in the signing process + * @member {String} display-id */ -Rotator.prototype['id'] = undefined; +SignPKCS1.prototype['display-id'] = undefined; /** - * @member {String} last_error + * HashFunction defines the hash function (e.g. sha-256) + * @member {String} hash-function */ -Rotator.prototype['last_error'] = undefined; +SignPKCS1.prototype['hash-function'] = undefined; /** - * @member {String} name + * Select default assumed format for the plaintext message. Currently supported options: [base64] + * @member {String} input-format */ -Rotator.prototype['name'] = undefined; +SignPKCS1.prototype['input-format'] = undefined; /** - * @member {Number} rotation_interval + * The item id of the key to use in the signing process + * @member {Number} item-id */ -Rotator.prototype['rotation_interval'] = undefined; +SignPKCS1.prototype['item-id'] = undefined; /** - * @member {String} type + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Rotator.prototype['type'] = undefined; -var _default = Rotator; -exports["default"] = _default; - -/***/ }), - -/***/ 45809: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _Rotator = _interopRequireDefault(__nccwpck_require__(36897)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +SignPKCS1.prototype['json'] = false; /** - * The RotatorsConfigPart model module. - * @module model/RotatorsConfigPart - * @version 3.3.16 + * The name of the RSA key to use in the signing process + * @member {String} key-name */ -var RotatorsConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new RotatorsConfigPart. - * @alias module:model/RotatorsConfigPart - */ - function RotatorsConfigPart() { - _classCallCheck(this, RotatorsConfigPart); - - RotatorsConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RotatorsConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RotatorsConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotatorsConfigPart} obj Optional instance to populate. - * @return {module:model/RotatorsConfigPart} The populated RotatorsConfigPart instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RotatorsConfigPart(); +SignPKCS1.prototype['key-name'] = undefined; +/** + * The message to be signed + * @member {String} message + */ - if (data.hasOwnProperty('rotators')) { - obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], [_Rotator["default"]]); - } - } +SignPKCS1.prototype['message'] = undefined; +/** + * Markes that the message is already hashed + * @member {Boolean} prehashed + */ - return obj; - } - }]); +SignPKCS1.prototype['prehashed'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return RotatorsConfigPart; -}(); +SignPKCS1.prototype['token'] = undefined; /** - * @member {Array.} rotators + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +SignPKCS1.prototype['uid-token'] = undefined; +/** + * The version of the key to use for signing + * @member {Number} version + */ -RotatorsConfigPart.prototype['rotators'] = undefined; -var _default = RotatorsConfigPart; +SignPKCS1.prototype['version'] = undefined; +var _default = SignPKCS1; exports["default"] = _default; /***/ }), -/***/ 19342: +/***/ 30325: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99837,7 +177055,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99848,19 +177066,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The RuleAssigner model module. - * @module model/RuleAssigner - * @version 3.3.16 + * The SignPKCS1Output model module. + * @module model/SignPKCS1Output + * @version 3.6.3 */ -var RuleAssigner = /*#__PURE__*/function () { +var SignPKCS1Output = /*#__PURE__*/function () { /** - * Constructs a new RuleAssigner. - * @alias module:model/RuleAssigner + * Constructs a new SignPKCS1Output. + * @alias module:model/SignPKCS1Output */ - function RuleAssigner() { - _classCallCheck(this, RuleAssigner); + function SignPKCS1Output() { + _classCallCheck(this, SignPKCS1Output); - RuleAssigner.initialize(this); + SignPKCS1Output.initialize(this); } /** * Initializes the fields of this object. @@ -99869,29 +177087,25 @@ var RuleAssigner = /*#__PURE__*/function () { */ - _createClass(RuleAssigner, null, [{ + _createClass(SignPKCS1Output, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a RuleAssigner from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignPKCS1Output from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RuleAssigner} obj Optional instance to populate. - * @return {module:model/RuleAssigner} The populated RuleAssigner instance. + * @param {module:model/SignPKCS1Output} obj Optional instance to populate. + * @return {module:model/SignPKCS1Output} The populated SignPKCS1Output instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new RuleAssigner(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } + obj = obj || new SignPKCS1Output(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -99899,25 +177113,20 @@ var RuleAssigner = /*#__PURE__*/function () { } }]); - return RuleAssigner; + return SignPKCS1Output; }(); /** - * @member {String} access_id + * @member {String} result */ -RuleAssigner.prototype['access_id'] = undefined; -/** - * @member {String} unique_id - */ - -RuleAssigner.prototype['unique_id'] = undefined; -var _default = RuleAssigner; +SignPKCS1Output.prototype['result'] = undefined; +var _default = SignPKCS1Output; exports["default"] = _default; /***/ }), -/***/ 53284: +/***/ 79313: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -99928,9 +177137,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _PathRule = _interopRequireDefault(__nccwpck_require__(23796)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -99941,19 +177148,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Rules model module. - * @module model/Rules - * @version 3.3.16 + * The SignPKICertOutput model module. + * @module model/SignPKICertOutput + * @version 3.6.3 */ -var Rules = /*#__PURE__*/function () { +var SignPKICertOutput = /*#__PURE__*/function () { /** - * Constructs a new Rules. - * @alias module:model/Rules + * Constructs a new SignPKICertOutput. + * @alias module:model/SignPKICertOutput */ - function Rules() { - _classCallCheck(this, Rules); + function SignPKICertOutput() { + _classCallCheck(this, SignPKICertOutput); - Rules.initialize(this); + SignPKICertOutput.initialize(this); } /** * Initializes the fields of this object. @@ -99962,29 +177169,25 @@ var Rules = /*#__PURE__*/function () { */ - _createClass(Rules, null, [{ + _createClass(SignPKICertOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a Rules from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignPKICertOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Rules} obj Optional instance to populate. - * @return {module:model/Rules} The populated Rules instance. + * @param {module:model/SignPKICertOutput} obj Optional instance to populate. + * @return {module:model/SignPKICertOutput} The populated SignPKICertOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Rules(); - - if (data.hasOwnProperty('admin')) { - obj['admin'] = _ApiClient["default"].convertToType(data['admin'], 'Boolean'); - } + obj = obj || new SignPKICertOutput(); - if (data.hasOwnProperty('path_rules')) { - obj['path_rules'] = _ApiClient["default"].convertToType(data['path_rules'], [_PathRule["default"]]); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -99992,27 +177195,20 @@ var Rules = /*#__PURE__*/function () { } }]); - return Rules; + return SignPKICertOutput; }(); /** - * Is admin - * @member {Boolean} admin + * @member {String} result */ -Rules.prototype['admin'] = undefined; -/** - * The path the rules refers to - * @member {Array.} path_rules - */ - -Rules.prototype['path_rules'] = undefined; -var _default = Rules; +SignPKICertOutput.prototype['result'] = undefined; +var _default = SignPKICertOutput; exports["default"] = _default; /***/ }), -/***/ 35813: +/***/ 47579: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -100023,9 +177219,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(31520)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -100036,19 +177230,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SAMLAccessRules model module. - * @module model/SAMLAccessRules - * @version 3.3.16 + * The SignPKICertWithClassicKey model module. + * @module model/SignPKICertWithClassicKey + * @version 3.6.3 */ -var SAMLAccessRules = /*#__PURE__*/function () { +var SignPKICertWithClassicKey = /*#__PURE__*/function () { /** - * Constructs a new SAMLAccessRules. - * @alias module:model/SAMLAccessRules + * Constructs a new SignPKICertWithClassicKey. + * @alias module:model/SignPKICertWithClassicKey + * @param displayId {String} The name of the key to use in the sign PKI Cert process + * @param signingMethod {String} SigningMethod + * @param ttl {Number} he requested Time To Live for the certificate, in seconds + * @param version {Number} classic key version */ - function SAMLAccessRules() { - _classCallCheck(this, SAMLAccessRules); + function SignPKICertWithClassicKey(displayId, signingMethod, ttl, version) { + _classCallCheck(this, SignPKICertWithClassicKey); - SAMLAccessRules.initialize(this); + SignPKICertWithClassicKey.initialize(this, displayId, signingMethod, ttl, version); } /** * Initializes the fields of this object. @@ -100057,41 +177255,102 @@ var SAMLAccessRules = /*#__PURE__*/function () { */ - _createClass(SAMLAccessRules, null, [{ + _createClass(SignPKICertWithClassicKey, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, displayId, signingMethod, ttl, version) { + obj['display-id'] = displayId; + obj['signing-method'] = signingMethod; + obj['ttl'] = ttl; + obj['version'] = version; + } /** - * Constructs a SAMLAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignPKICertWithClassicKey from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SAMLAccessRules} obj Optional instance to populate. - * @return {module:model/SAMLAccessRules} The populated SAMLAccessRules instance. + * @param {module:model/SignPKICertWithClassicKey} obj Optional instance to populate. + * @return {module:model/SignPKICertWithClassicKey} The populated SignPKICertWithClassicKey instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SAMLAccessRules(); + obj = obj || new SignPKICertWithClassicKey(); - if (data.hasOwnProperty('allowed_redirect_URIs')) { - obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); } - if (data.hasOwnProperty('bound_attributes')) { - obj['bound_attributes'] = _ApiClient["default"].convertToType(data['bound_attributes'], [_SAMLAttribute["default"]]); + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); } - if (data.hasOwnProperty('idp_metadata_url')) { - obj['idp_metadata_url'] = _ApiClient["default"].convertToType(data['idp_metadata_url'], 'String'); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('idp_metadata_xml')) { - obj['idp_metadata_xml'] = _ApiClient["default"].convertToType(data['idp_metadata_xml'], 'String'); + if (data.hasOwnProperty('dns-names')) { + obj['dns-names'] = _ApiClient["default"].convertToType(data['dns-names'], 'String'); } - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-usage')) { + obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } + + if (data.hasOwnProperty('organizational-units')) { + obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); + } + + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); + } + + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } + + if (data.hasOwnProperty('public-key-pem-data')) { + obj['public-key-pem-data'] = _ApiClient["default"].convertToType(data['public-key-pem-data'], 'String'); + } + + if (data.hasOwnProperty('signing-method')) { + obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); + } + + if (data.hasOwnProperty('street-address')) { + obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -100099,136 +177358,131 @@ var SAMLAccessRules = /*#__PURE__*/function () { } }]); - return SAMLAccessRules; + return SignPKICertWithClassicKey; }(); /** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed_redirect_URIs + * The common name to be included in the PKI certificate + * @member {String} common-name */ -SAMLAccessRules.prototype['allowed_redirect_URIs'] = undefined; +SignPKICertWithClassicKey.prototype['common-name'] = undefined; /** - * The attributes that login is restricted to. - * @member {Array.} bound_attributes + * A comma-separated list of the country that will be set in the issued certificate + * @member {String} country */ -SAMLAccessRules.prototype['bound_attributes'] = undefined; +SignPKICertWithClassicKey.prototype['country'] = undefined; /** - * IDP metadata url - * @member {String} idp_metadata_url + * The name of the key to use in the sign PKI Cert process + * @member {String} display-id */ -SAMLAccessRules.prototype['idp_metadata_url'] = undefined; +SignPKICertWithClassicKey.prototype['display-id'] = undefined; /** - * IDP metadata XML - * @member {String} idp_metadata_xml + * DNS Names to be included in the PKI certificate (in a comma-delimited list) + * @member {String} dns-names */ -SAMLAccessRules.prototype['idp_metadata_xml'] = undefined; +SignPKICertWithClassicKey.prototype['dns-names'] = undefined; /** - * A unique identifier to distinguish different users - * @member {String} unique_identifier + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SAMLAccessRules.prototype['unique_identifier'] = undefined; -var _default = SAMLAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 31520: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +SignPKICertWithClassicKey.prototype['json'] = false; +/** + * key-usage + * @member {String} key-usage + * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +SignPKICertWithClassicKey.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; +/** + * A comma-separated list of the locality that will be set in the issued certificate + * @member {String} locality + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +SignPKICertWithClassicKey.prototype['locality'] = undefined; +/** + * A comma-separated list of organizational units (OU) that will be set in the issued certificate + * @member {String} organizational-units + */ +SignPKICertWithClassicKey.prototype['organizational-units'] = undefined; /** - * The SAMLAttribute model module. - * @module model/SAMLAttribute - * @version 3.3.16 + * A comma-separated list of organizations (O) that will be set in the issued certificate + * @member {String} organizations */ -var SAMLAttribute = /*#__PURE__*/function () { - /** - * Constructs a new SAMLAttribute. - * @alias module:model/SAMLAttribute - */ - function SAMLAttribute() { - _classCallCheck(this, SAMLAttribute); - SAMLAttribute.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +SignPKICertWithClassicKey.prototype['organizations'] = undefined; +/** + * A comma-separated list of the postal code that will be set in the issued certificate + * @member {String} postal-code + */ +SignPKICertWithClassicKey.prototype['postal-code'] = undefined; +/** + * A comma-separated list of the province that will be set in the issued certificate + * @member {String} province + */ - _createClass(SAMLAttribute, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SAMLAttribute from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SAMLAttribute} obj Optional instance to populate. - * @return {module:model/SAMLAttribute} The populated SAMLAttribute instance. - */ +SignPKICertWithClassicKey.prototype['province'] = undefined; +/** + * PublicKey using for signing in a PEM format. + * @member {String} public-key-pem-data + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SAMLAttribute(); +SignPKICertWithClassicKey.prototype['public-key-pem-data'] = undefined; +/** + * SigningMethod + * @member {String} signing-method + */ - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } +SignPKICertWithClassicKey.prototype['signing-method'] = undefined; +/** + * A comma-separated list of the street address that will be set in the issued certificate + * @member {String} street-address + */ - if (data.hasOwnProperty('values')) { - obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); - } - } +SignPKICertWithClassicKey.prototype['street-address'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return obj; - } - }]); +SignPKICertWithClassicKey.prototype['token'] = undefined; +/** + * he requested Time To Live for the certificate, in seconds + * @member {Number} ttl + */ - return SAMLAttribute; -}(); +SignPKICertWithClassicKey.prototype['ttl'] = undefined; /** - * @member {String} name + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +SignPKICertWithClassicKey.prototype['uid-token'] = undefined; +/** + * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list) + * @member {String} uri-sans + */ -SAMLAttribute.prototype['name'] = undefined; +SignPKICertWithClassicKey.prototype['uri-sans'] = undefined; /** - * @member {Array.} values + * classic key version + * @member {Number} version */ -SAMLAttribute.prototype['values'] = undefined; -var _default = SAMLAttribute; +SignPKICertWithClassicKey.prototype['version'] = undefined; +var _default = SignPKICertWithClassicKey; exports["default"] = _default; /***/ }), -/***/ 72797: +/***/ 52857: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -100239,7 +177493,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -100250,19 +177504,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SSHCertificateIssueDetails model module. - * @module model/SSHCertificateIssueDetails - * @version 3.3.16 + * The SignRsaSsaPss model module. + * @module model/SignRsaSsaPss + * @version 3.6.3 */ -var SSHCertificateIssueDetails = /*#__PURE__*/function () { +var SignRsaSsaPss = /*#__PURE__*/function () { /** - * Constructs a new SSHCertificateIssueDetails. - * @alias module:model/SSHCertificateIssueDetails + * Constructs a new SignRsaSsaPss. + * signRsaSsaPss is a command that calculates the signature of a given message using rsassa-pss + * @alias module:model/SignRsaSsaPss + * @param message {String} The input message to sign in a base64 format */ - function SSHCertificateIssueDetails() { - _classCallCheck(this, SSHCertificateIssueDetails); + function SignRsaSsaPss(message) { + _classCallCheck(this, SignRsaSsaPss); - SSHCertificateIssueDetails.initialize(this); + SignRsaSsaPss.initialize(this, message); } /** * Initializes the fields of this object. @@ -100271,59 +177527,63 @@ var SSHCertificateIssueDetails = /*#__PURE__*/function () { */ - _createClass(SSHCertificateIssueDetails, null, [{ + _createClass(SignRsaSsaPss, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, message) { + obj['message'] = message; + } /** - * Constructs a SSHCertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignRsaSsaPss from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SSHCertificateIssueDetails} obj Optional instance to populate. - * @return {module:model/SSHCertificateIssueDetails} The populated SSHCertificateIssueDetails instance. + * @param {module:model/SignRsaSsaPss} obj Optional instance to populate. + * @return {module:model/SignRsaSsaPss} The populated SignRsaSsaPss instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SSHCertificateIssueDetails(); + obj = obj || new SignRsaSsaPss(); - if (data.hasOwnProperty('allowed_domains')) { - obj['allowed_domains'] = _ApiClient["default"].convertToType(data['allowed_domains'], ['String']); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - if (data.hasOwnProperty('allowed_user_key_lengths')) { - obj['allowed_user_key_lengths'] = _ApiClient["default"].convertToType(data['allowed_user_key_lengths'], { - 'String': 'Number' - }); + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); } - if (data.hasOwnProperty('allowed_users')) { - obj['allowed_users'] = _ApiClient["default"].convertToType(data['allowed_users'], ['String']); + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } - if (data.hasOwnProperty('cert_type')) { - obj['cert_type'] = _ApiClient["default"].convertToType(data['cert_type'], 'Number'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('critical_options')) { - obj['critical_options'] = _ApiClient["default"].convertToType(data['critical_options'], { - 'String': 'String' - }); + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); } - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { - 'String': 'String' - }); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); } - if (data.hasOwnProperty('principals')) { - obj['principals'] = _ApiClient["default"].convertToType(data['principals'], ['String']); + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); } - if (data.hasOwnProperty('static_key_id')) { - obj['static_key_id'] = _ApiClient["default"].convertToType(data['static_key_id'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } } @@ -100331,58 +177591,76 @@ var SSHCertificateIssueDetails = /*#__PURE__*/function () { } }]); - return SSHCertificateIssueDetails; + return SignRsaSsaPss; }(); /** - * Relevant for host certificate - * @member {Array.} allowed_domains + * The display id of the RSA key to use in the signing process + * @member {String} display-id */ -SSHCertificateIssueDetails.prototype['allowed_domains'] = undefined; +SignRsaSsaPss.prototype['display-id'] = undefined; /** - * @member {Object.} allowed_user_key_lengths + * HashFunction defines the hash function (e.g. sha-256) + * @member {String} hash-function */ -SSHCertificateIssueDetails.prototype['allowed_user_key_lengths'] = undefined; +SignRsaSsaPss.prototype['hash-function'] = undefined; /** - * Relevant for user certificate - * @member {Array.} allowed_users + * The item id of the RSA key to use in the signing process + * @member {Number} item-id */ -SSHCertificateIssueDetails.prototype['allowed_users'] = undefined; +SignRsaSsaPss.prototype['item-id'] = undefined; /** - * @member {Number} cert_type + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SSHCertificateIssueDetails.prototype['cert_type'] = undefined; +SignRsaSsaPss.prototype['json'] = false; /** - * @member {Object.} critical_options + * The name of the RSA key to use in the signing process + * @member {String} key-name */ -SSHCertificateIssueDetails.prototype['critical_options'] = undefined; +SignRsaSsaPss.prototype['key-name'] = undefined; /** - * @member {Object.} extensions + * The input message to sign in a base64 format + * @member {String} message */ -SSHCertificateIssueDetails.prototype['extensions'] = undefined; +SignRsaSsaPss.prototype['message'] = undefined; /** - * @member {Array.} principals + * Markes that the message is already hashed + * @member {Boolean} prehashed */ -SSHCertificateIssueDetails.prototype['principals'] = undefined; +SignRsaSsaPss.prototype['prehashed'] = undefined; /** - * In case it is empty, the key ID will be combination of user identifiers and a random string - * @member {String} static_key_id + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -SSHCertificateIssueDetails.prototype['static_key_id'] = undefined; -var _default = SSHCertificateIssueDetails; +SignRsaSsaPss.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +SignRsaSsaPss.prototype['uid-token'] = undefined; +/** + * The version of the key to use for signing + * @member {Number} version + */ + +SignRsaSsaPss.prototype['version'] = undefined; +var _default = SignRsaSsaPss; exports["default"] = _default; /***/ }), -/***/ 39703: +/***/ 4527: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -100393,7 +177671,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -100404,19 +177682,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SSHTargetDetails model module. - * @module model/SSHTargetDetails - * @version 3.3.16 + * The SignRsaSsaPssOutput model module. + * @module model/SignRsaSsaPssOutput + * @version 3.6.3 */ -var SSHTargetDetails = /*#__PURE__*/function () { +var SignRsaSsaPssOutput = /*#__PURE__*/function () { /** - * Constructs a new SSHTargetDetails. - * @alias module:model/SSHTargetDetails + * Constructs a new SignRsaSsaPssOutput. + * @alias module:model/SignRsaSsaPssOutput */ - function SSHTargetDetails() { - _classCallCheck(this, SSHTargetDetails); + function SignRsaSsaPssOutput() { + _classCallCheck(this, SignRsaSsaPssOutput); - SSHTargetDetails.initialize(this); + SignRsaSsaPssOutput.initialize(this); } /** * Initializes the fields of this object. @@ -100425,45 +177703,25 @@ var SSHTargetDetails = /*#__PURE__*/function () { */ - _createClass(SSHTargetDetails, null, [{ + _createClass(SignRsaSsaPssOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SSHTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a SignRsaSsaPssOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SSHTargetDetails} obj Optional instance to populate. - * @return {module:model/SSHTargetDetails} The populated SSHTargetDetails instance. + * @param {module:model/SignRsaSsaPssOutput} obj Optional instance to populate. + * @return {module:model/SignRsaSsaPssOutput} The populated SignRsaSsaPssOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SSHTargetDetails(); - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('private_key')) { - obj['private_key'] = _ApiClient["default"].convertToType(data['private_key'], 'String'); - } - - if (data.hasOwnProperty('private_key_password')) { - obj['private_key_password'] = _ApiClient["default"].convertToType(data['private_key_password'], 'String'); - } + obj = obj || new SignRsaSsaPssOutput(); - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } } @@ -100471,45 +177729,20 @@ var SSHTargetDetails = /*#__PURE__*/function () { } }]); - return SSHTargetDetails; + return SignRsaSsaPssOutput; }(); /** - * @member {String} host - */ - - -SSHTargetDetails.prototype['host'] = undefined; -/** - * @member {String} password - */ - -SSHTargetDetails.prototype['password'] = undefined; -/** - * @member {String} port - */ - -SSHTargetDetails.prototype['port'] = undefined; -/** - * @member {String} private_key - */ - -SSHTargetDetails.prototype['private_key'] = undefined; -/** - * @member {String} private_key_password + * @member {String} result */ -SSHTargetDetails.prototype['private_key_password'] = undefined; -/** - * @member {String} username - */ -SSHTargetDetails.prototype['username'] = undefined; -var _default = SSHTargetDetails; +SignRsaSsaPssOutput.prototype['result'] = undefined; +var _default = SignRsaSsaPssOutput; exports["default"] = _default; /***/ }), -/***/ 98197: +/***/ 35089: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -100520,7 +177753,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -100531,20 +177764,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SalesforceTargetDetails model module. - * @module model/SalesforceTargetDetails - * @version 3.3.16 + * The SmInfo model module. + * @module model/SmInfo + * @version 3.6.3 */ -var SalesforceTargetDetails = /*#__PURE__*/function () { +var SmInfo = /*#__PURE__*/function () { /** - * Constructs a new SalesforceTargetDetails. - * SalesforceTargetDetails - * @alias module:model/SalesforceTargetDetails + * Constructs a new SmInfo. + * @alias module:model/SmInfo */ - function SalesforceTargetDetails() { - _classCallCheck(this, SalesforceTargetDetails); + function SmInfo() { + _classCallCheck(this, SmInfo); - SalesforceTargetDetails.initialize(this); + SmInfo.initialize(this); } /** * Initializes the fields of this object. @@ -100553,61 +177785,29 @@ var SalesforceTargetDetails = /*#__PURE__*/function () { */ - _createClass(SalesforceTargetDetails, null, [{ + _createClass(SmInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SalesforceTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a SmInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SalesforceTargetDetails} obj Optional instance to populate. - * @return {module:model/SalesforceTargetDetails} The populated SalesforceTargetDetails instance. + * @param {module:model/SmInfo} obj Optional instance to populate. + * @return {module:model/SmInfo} The populated SmInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SalesforceTargetDetails(); - - if (data.hasOwnProperty('app_private_key')) { - obj['app_private_key'] = _ApiClient["default"].convertToType(data['app_private_key'], ['Number']); - } - - if (data.hasOwnProperty('auth_flow')) { - obj['auth_flow'] = _ApiClient["default"].convertToType(data['auth_flow'], 'String'); - } - - if (data.hasOwnProperty('ca_cert_data')) { - obj['ca_cert_data'] = _ApiClient["default"].convertToType(data['ca_cert_data'], ['Number']); - } - - if (data.hasOwnProperty('ca_cert_name')) { - obj['ca_cert_name'] = _ApiClient["default"].convertToType(data['ca_cert_name'], 'String'); - } - - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); - } - - if (data.hasOwnProperty('client_secret')) { - obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('security_token')) { - obj['security_token'] = _ApiClient["default"].convertToType(data['security_token'], 'String'); - } + obj = obj || new SmInfo(); - if (data.hasOwnProperty('tenant_url')) { - obj['tenant_url'] = _ApiClient["default"].convertToType(data['tenant_url'], 'String'); + if (data.hasOwnProperty('sla')) { + obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); } - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + if (data.hasOwnProperty('tier')) { + obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); } } @@ -100615,69 +177815,26 @@ var SalesforceTargetDetails = /*#__PURE__*/function () { } }]); - return SalesforceTargetDetails; + return SmInfo; }(); /** - * params needed for jwt auth AppPrivateKey is the rsa private key in PEM format - * @member {Array.} app_private_key - */ - - -SalesforceTargetDetails.prototype['app_private_key'] = undefined; -/** - * @member {String} auth_flow - */ - -SalesforceTargetDetails.prototype['auth_flow'] = undefined; -/** - * CACertData is the rsa 4096 certificate data in PEM format - * @member {Array.} ca_cert_data - */ - -SalesforceTargetDetails.prototype['ca_cert_data'] = undefined; -/** - * CACertName is the name of the certificate in SalesForce tenant - * @member {String} ca_cert_name - */ - -SalesforceTargetDetails.prototype['ca_cert_name'] = undefined; -/** - * @member {String} client_id - */ - -SalesforceTargetDetails.prototype['client_id'] = undefined; -/** - * params needed for password auth - * @member {String} client_secret - */ - -SalesforceTargetDetails.prototype['client_secret'] = undefined; -/** - * @member {String} password - */ - -SalesforceTargetDetails.prototype['password'] = undefined; -/** - * @member {String} security_token + * @member {String} sla */ -SalesforceTargetDetails.prototype['security_token'] = undefined; -/** - * @member {String} tenant_url - */ -SalesforceTargetDetails.prototype['tenant_url'] = undefined; +SmInfo.prototype['sla'] = undefined; /** - * @member {String} user_name + * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources + * @member {String} tier */ -SalesforceTargetDetails.prototype['user_name'] = undefined; -var _default = SalesforceTargetDetails; +SmInfo.prototype['tier'] = undefined; +var _default = SmInfo; exports["default"] = _default; /***/ }), -/***/ 55514: +/***/ 7587: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -100688,7 +177845,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -100699,19 +177856,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SecretInfo model module. - * @module model/SecretInfo - * @version 3.3.16 + * The SplunkLogForwardingConfig model module. + * @module model/SplunkLogForwardingConfig + * @version 3.6.3 */ -var SecretInfo = /*#__PURE__*/function () { +var SplunkLogForwardingConfig = /*#__PURE__*/function () { /** - * Constructs a new SecretInfo. - * @alias module:model/SecretInfo + * Constructs a new SplunkLogForwardingConfig. + * @alias module:model/SplunkLogForwardingConfig */ - function SecretInfo() { - _classCallCheck(this, SecretInfo); + function SplunkLogForwardingConfig() { + _classCallCheck(this, SplunkLogForwardingConfig); - SecretInfo.initialize(this); + SplunkLogForwardingConfig.initialize(this); } /** * Initializes the fields of this object. @@ -100720,63 +177877,49 @@ var SecretInfo = /*#__PURE__*/function () { */ - _createClass(SecretInfo, null, [{ + _createClass(SplunkLogForwardingConfig, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SecretInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a SplunkLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SecretInfo} obj Optional instance to populate. - * @return {module:model/SecretInfo} The populated SecretInfo instance. + * @param {module:model/SplunkLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/SplunkLogForwardingConfig} The populated SplunkLogForwardingConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SecretInfo(); - - if (data.hasOwnProperty('created')) { - obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Date'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('expiration')) { - obj['expiration'] = _ApiClient["default"].convertToType(data['expiration'], 'Date'); - } + obj = obj || new SplunkLogForwardingConfig(); - if (data.hasOwnProperty('last_retrieved')) { - obj['last_retrieved'] = _ApiClient["default"].convertToType(data['last_retrieved'], 'Date'); + if (data.hasOwnProperty('splunk_enable_tls')) { + obj['splunk_enable_tls'] = _ApiClient["default"].convertToType(data['splunk_enable_tls'], 'Boolean'); } - if (data.hasOwnProperty('location')) { - obj['location'] = _ApiClient["default"].convertToType(data['location'], Object); + if (data.hasOwnProperty('splunk_index')) { + obj['splunk_index'] = _ApiClient["default"].convertToType(data['splunk_index'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('splunk_source')) { + obj['splunk_source'] = _ApiClient["default"].convertToType(data['splunk_source'], 'String'); } - if (data.hasOwnProperty('secret_id')) { - obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + if (data.hasOwnProperty('splunk_sourcetype')) { + obj['splunk_sourcetype'] = _ApiClient["default"].convertToType(data['splunk_sourcetype'], 'String'); } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + if (data.hasOwnProperty('splunk_tls_certificate')) { + obj['splunk_tls_certificate'] = _ApiClient["default"].convertToType(data['splunk_tls_certificate'], 'String'); } - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { - 'String': 'String' - }); + if (data.hasOwnProperty('splunk_token')) { + obj['splunk_token'] = _ApiClient["default"].convertToType(data['splunk_token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + if (data.hasOwnProperty('splunk_url')) { + obj['splunk_url'] = _ApiClient["default"].convertToType(data['splunk_url'], 'String'); } } @@ -100784,65 +177927,50 @@ var SecretInfo = /*#__PURE__*/function () { } }]); - return SecretInfo; + return SplunkLogForwardingConfig; }(); /** - * @member {Date} created - */ - - -SecretInfo.prototype['created'] = undefined; -/** - * @member {String} description - */ - -SecretInfo.prototype['description'] = undefined; -/** - * @member {Date} expiration + * @member {Boolean} splunk_enable_tls */ -SecretInfo.prototype['expiration'] = undefined; -/** - * @member {Date} last_retrieved - */ -SecretInfo.prototype['last_retrieved'] = undefined; +SplunkLogForwardingConfig.prototype['splunk_enable_tls'] = undefined; /** - * @member {Object} location + * @member {String} splunk_index */ -SecretInfo.prototype['location'] = undefined; +SplunkLogForwardingConfig.prototype['splunk_index'] = undefined; /** - * @member {String} name + * @member {String} splunk_source */ -SecretInfo.prototype['name'] = undefined; +SplunkLogForwardingConfig.prototype['splunk_source'] = undefined; /** - * @member {String} secret_id + * @member {String} splunk_sourcetype */ -SecretInfo.prototype['secret_id'] = undefined; +SplunkLogForwardingConfig.prototype['splunk_sourcetype'] = undefined; /** - * @member {Boolean} status + * @member {String} splunk_tls_certificate */ -SecretInfo.prototype['status'] = undefined; +SplunkLogForwardingConfig.prototype['splunk_tls_certificate'] = undefined; /** - * @member {Object.} tags + * @member {String} splunk_token */ -SecretInfo.prototype['tags'] = undefined; +SplunkLogForwardingConfig.prototype['splunk_token'] = undefined; /** - * @member {String} type + * @member {String} splunk_url */ -SecretInfo.prototype['type'] = undefined; -var _default = SecretInfo; +SplunkLogForwardingConfig.prototype['splunk_url'] = undefined; +var _default = SplunkLogForwardingConfig; exports["default"] = _default; /***/ }), -/***/ 59417: +/***/ 62365: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -100853,7 +177981,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -100864,19 +177992,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SecureRemoteAccess model module. - * @module model/SecureRemoteAccess - * @version 3.3.16 + * The SraInfo model module. + * @module model/SraInfo + * @version 3.6.3 */ -var SecureRemoteAccess = /*#__PURE__*/function () { +var SraInfo = /*#__PURE__*/function () { /** - * Constructs a new SecureRemoteAccess. - * @alias module:model/SecureRemoteAccess + * Constructs a new SraInfo. + * @alias module:model/SraInfo */ - function SecureRemoteAccess() { - _classCallCheck(this, SecureRemoteAccess); + function SraInfo() { + _classCallCheck(this, SraInfo); - SecureRemoteAccess.initialize(this); + SraInfo.initialize(this); } /** * Initializes the fields of this object. @@ -100885,289 +178013,180 @@ var SecureRemoteAccess = /*#__PURE__*/function () { */ - _createClass(SecureRemoteAccess, null, [{ + _createClass(SraInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SecureRemoteAccess from a plain JavaScript object, optionally creating a new instance. + * Constructs a SraInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SecureRemoteAccess} obj Optional instance to populate. - * @return {module:model/SecureRemoteAccess} The populated SecureRemoteAccess instance. + * @param {module:model/SraInfo} obj Optional instance to populate. + * @return {module:model/SraInfo} The populated SraInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SecureRemoteAccess(); - - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); - } - - if (data.hasOwnProperty('allow_port_forwarding')) { - obj['allow_port_forwarding'] = _ApiClient["default"].convertToType(data['allow_port_forwarding'], 'Boolean'); - } - - if (data.hasOwnProperty('allow_providing_external_username')) { - obj['allow_providing_external_username'] = _ApiClient["default"].convertToType(data['allow_providing_external_username'], 'Boolean'); - } - - if (data.hasOwnProperty('bastion_api')) { - obj['bastion_api'] = _ApiClient["default"].convertToType(data['bastion_api'], 'String'); - } - - if (data.hasOwnProperty('bastion_issuer')) { - obj['bastion_issuer'] = _ApiClient["default"].convertToType(data['bastion_issuer'], 'String'); - } - - if (data.hasOwnProperty('bastion_issuer_id')) { - obj['bastion_issuer_id'] = _ApiClient["default"].convertToType(data['bastion_issuer_id'], 'Number'); - } - - if (data.hasOwnProperty('bastion_ssh')) { - obj['bastion_ssh'] = _ApiClient["default"].convertToType(data['bastion_ssh'], 'String'); - } - - if (data.hasOwnProperty('category')) { - obj['category'] = _ApiClient["default"].convertToType(data['category'], 'String'); - } - - if (data.hasOwnProperty('dashboard_url')) { - obj['dashboard_url'] = _ApiClient["default"].convertToType(data['dashboard_url'], 'String'); - } - - if (data.hasOwnProperty('db_name')) { - obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); - } - - if (data.hasOwnProperty('domain')) { - obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); - } - - if (data.hasOwnProperty('enable')) { - obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); - } - - if (data.hasOwnProperty('endpoint')) { - obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], ['String']); - } - - if (data.hasOwnProperty('is_cli')) { - obj['is_cli'] = _ApiClient["default"].convertToType(data['is_cli'], 'Boolean'); - } - - if (data.hasOwnProperty('is_web')) { - obj['is_web'] = _ApiClient["default"].convertToType(data['is_web'], 'Boolean'); - } - - if (data.hasOwnProperty('isolated')) { - obj['isolated'] = _ApiClient["default"].convertToType(data['isolated'], 'Boolean'); - } - - if (data.hasOwnProperty('native')) { - obj['native'] = _ApiClient["default"].convertToType(data['native'], 'Boolean'); - } - - if (data.hasOwnProperty('rdp_user')) { - obj['rdp_user'] = _ApiClient["default"].convertToType(data['rdp_user'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('rotate_after_disconnect')) { - obj['rotate_after_disconnect'] = _ApiClient["default"].convertToType(data['rotate_after_disconnect'], 'Boolean'); - } - - if (data.hasOwnProperty('schema')) { - obj['schema'] = _ApiClient["default"].convertToType(data['schema'], 'String'); - } - - if (data.hasOwnProperty('ssh_password')) { - obj['ssh_password'] = _ApiClient["default"].convertToType(data['ssh_password'], 'Boolean'); - } - - if (data.hasOwnProperty('ssh_private_key')) { - obj['ssh_private_key'] = _ApiClient["default"].convertToType(data['ssh_private_key'], 'Boolean'); - } - - if (data.hasOwnProperty('ssh_user')) { - obj['ssh_user'] = _ApiClient["default"].convertToType(data['ssh_user'], 'String'); - } + obj = obj || new SraInfo(); - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + if (data.hasOwnProperty('sla')) { + obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); } - if (data.hasOwnProperty('use_internal_bastion')) { - obj['use_internal_bastion'] = _ApiClient["default"].convertToType(data['use_internal_bastion'], 'Boolean'); + if (data.hasOwnProperty('tier')) { + obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); } - if (data.hasOwnProperty('web_proxy')) { - obj['web_proxy'] = _ApiClient["default"].convertToType(data['web_proxy'], 'Boolean'); + if (data.hasOwnProperty('user_type')) { + obj['user_type'] = _ApiClient["default"].convertToType(data['user_type'], 'String'); } } return obj; } - }]); - - return SecureRemoteAccess; -}(); -/** - * @member {String} account_id - */ - - -SecureRemoteAccess.prototype['account_id'] = undefined; -/** - * @member {Boolean} allow_port_forwarding - */ - -SecureRemoteAccess.prototype['allow_port_forwarding'] = undefined; -/** - * @member {Boolean} allow_providing_external_username - */ - -SecureRemoteAccess.prototype['allow_providing_external_username'] = undefined; -/** - * @member {String} bastion_api - */ - -SecureRemoteAccess.prototype['bastion_api'] = undefined; -/** - * @member {String} bastion_issuer - */ - -SecureRemoteAccess.prototype['bastion_issuer'] = undefined; -/** - * @member {Number} bastion_issuer_id - */ - -SecureRemoteAccess.prototype['bastion_issuer_id'] = undefined; -/** - * @member {String} bastion_ssh - */ - -SecureRemoteAccess.prototype['bastion_ssh'] = undefined; -/** - * @member {String} category - */ - -SecureRemoteAccess.prototype['category'] = undefined; -/** - * @member {String} dashboard_url - */ - -SecureRemoteAccess.prototype['dashboard_url'] = undefined; -/** - * @member {String} db_name - */ - -SecureRemoteAccess.prototype['db_name'] = undefined; -/** - * @member {String} domain - */ - -SecureRemoteAccess.prototype['domain'] = undefined; -/** - * @member {Boolean} enable - */ - -SecureRemoteAccess.prototype['enable'] = undefined; -/** - * @member {String} endpoint - */ + }]); -SecureRemoteAccess.prototype['endpoint'] = undefined; + return SraInfo; +}(); /** - * @member {Array.} host + * @member {String} sla */ -SecureRemoteAccess.prototype['host'] = undefined; -/** - * @member {Boolean} is_cli - */ -SecureRemoteAccess.prototype['is_cli'] = undefined; +SraInfo.prototype['sla'] = undefined; /** - * @member {Boolean} is_web + * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources + * @member {String} tier */ -SecureRemoteAccess.prototype['is_web'] = undefined; +SraInfo.prototype['tier'] = undefined; /** - * @member {Boolean} isolated + * @member {String} user_type */ -SecureRemoteAccess.prototype['isolated'] = undefined; -/** - * @member {Boolean} native - */ +SraInfo.prototype['user_type'] = undefined; +var _default = SraInfo; +exports["default"] = _default; -SecureRemoteAccess.prototype['native'] = undefined; -/** - * @member {String} rdp_user - */ +/***/ }), -SecureRemoteAccess.prototype['rdp_user'] = undefined; -/** - * @member {String} region - */ +/***/ 74556: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -SecureRemoteAccess.prototype['region'] = undefined; -/** - * @member {Boolean} rotate_after_disconnect - */ +"use strict"; -SecureRemoteAccess.prototype['rotate_after_disconnect'] = undefined; -/** - * @member {String} schema - */ -SecureRemoteAccess.prototype['schema'] = undefined; -/** - * @member {Boolean} ssh_password - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -SecureRemoteAccess.prototype['ssh_password'] = undefined; /** - * @member {Boolean} ssh_private_key + * The StaticCredsAuth model module. + * @module model/StaticCredsAuth + * @version 3.6.3 */ +var StaticCredsAuth = /*#__PURE__*/function () { + /** + * Constructs a new StaticCredsAuth. + * staticCredsAuth is a command that creates a temporary access profile using the provided static credentials. + * @alias module:model/StaticCredsAuth + */ + function StaticCredsAuth() { + _classCallCheck(this, StaticCredsAuth); -SecureRemoteAccess.prototype['ssh_private_key'] = undefined; + StaticCredsAuth.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(StaticCredsAuth, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a StaticCredsAuth from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StaticCredsAuth} obj Optional instance to populate. + * @return {module:model/StaticCredsAuth} The populated StaticCredsAuth instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new StaticCredsAuth(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('admin-email')) { + obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + } + + if (data.hasOwnProperty('creds')) { + obj['creds'] = _ApiClient["default"].convertToType(data['creds'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + } + + return obj; + } + }]); + + return StaticCredsAuth; +}(); /** - * @member {String} ssh_user + * Akeyless JWT token + * @member {String} access-id */ -SecureRemoteAccess.prototype['ssh_user'] = undefined; + +StaticCredsAuth.prototype['access-id'] = undefined; /** - * @member {String} url + * Akeyless JWT token + * @member {String} admin-email */ -SecureRemoteAccess.prototype['url'] = undefined; +StaticCredsAuth.prototype['admin-email'] = undefined; /** - * @member {Boolean} use_internal_bastion + * Akeyless JWT token + * @member {String} creds */ -SecureRemoteAccess.prototype['use_internal_bastion'] = undefined; +StaticCredsAuth.prototype['creds'] = undefined; /** - * @member {Boolean} web_proxy + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SecureRemoteAccess.prototype['web_proxy'] = undefined; -var _default = SecureRemoteAccess; +StaticCredsAuth.prototype['json'] = false; +var _default = StaticCredsAuth; exports["default"] = _default; /***/ }), -/***/ 89198: +/***/ 84349: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101178,11 +178197,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(46988)); - -var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(45316)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -101193,19 +178208,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ServerInventoryMigration model module. - * @module model/ServerInventoryMigration - * @version 3.3.16 + * The StaticCredsAuthOutput model module. + * @module model/StaticCredsAuthOutput + * @version 3.6.3 */ -var ServerInventoryMigration = /*#__PURE__*/function () { +var StaticCredsAuthOutput = /*#__PURE__*/function () { /** - * Constructs a new ServerInventoryMigration. - * @alias module:model/ServerInventoryMigration + * Constructs a new StaticCredsAuthOutput. + * @alias module:model/StaticCredsAuthOutput */ - function ServerInventoryMigration() { - _classCallCheck(this, ServerInventoryMigration); + function StaticCredsAuthOutput() { + _classCallCheck(this, StaticCredsAuthOutput); - ServerInventoryMigration.initialize(this); + StaticCredsAuthOutput.initialize(this); } /** * Initializes the fields of this object. @@ -101214,29 +178229,25 @@ var ServerInventoryMigration = /*#__PURE__*/function () { */ - _createClass(ServerInventoryMigration, null, [{ + _createClass(StaticCredsAuthOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ServerInventoryMigration from a plain JavaScript object, optionally creating a new instance. + * Constructs a StaticCredsAuthOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ServerInventoryMigration} obj Optional instance to populate. - * @return {module:model/ServerInventoryMigration} The populated ServerInventoryMigration instance. + * @param {module:model/StaticCredsAuthOutput} obj Optional instance to populate. + * @return {module:model/StaticCredsAuthOutput} The populated StaticCredsAuthOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ServerInventoryMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } + obj = obj || new StaticCredsAuthOutput(); - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ServerInventoryPayload["default"].constructFromObject(data['payload']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } } @@ -101244,25 +178255,20 @@ var ServerInventoryMigration = /*#__PURE__*/function () { } }]); - return ServerInventoryMigration; + return StaticCredsAuthOutput; }(); /** - * @member {module:model/MigrationGeneral} general + * @member {String} token */ -ServerInventoryMigration.prototype['general'] = undefined; -/** - * @member {module:model/ServerInventoryPayload} payload - */ - -ServerInventoryMigration.prototype['payload'] = undefined; -var _default = ServerInventoryMigration; +StaticCredsAuthOutput.prototype['token'] = undefined; +var _default = StaticCredsAuthOutput; exports["default"] = _default; /***/ }), -/***/ 45316: +/***/ 90513: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101273,7 +178279,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -101284,19 +178290,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ServerInventoryPayload model module. - * @module model/ServerInventoryPayload - * @version 3.3.16 + * The StaticSecretDetailsInfo model module. + * @module model/StaticSecretDetailsInfo + * @version 3.6.3 */ -var ServerInventoryPayload = /*#__PURE__*/function () { +var StaticSecretDetailsInfo = /*#__PURE__*/function () { /** - * Constructs a new ServerInventoryPayload. - * @alias module:model/ServerInventoryPayload + * Constructs a new StaticSecretDetailsInfo. + * @alias module:model/StaticSecretDetailsInfo */ - function ServerInventoryPayload() { - _classCallCheck(this, ServerInventoryPayload); + function StaticSecretDetailsInfo() { + _classCallCheck(this, StaticSecretDetailsInfo); - ServerInventoryPayload.initialize(this); + StaticSecretDetailsInfo.initialize(this); } /** * Initializes the fields of this object. @@ -101305,55 +178311,45 @@ var ServerInventoryPayload = /*#__PURE__*/function () { */ - _createClass(ServerInventoryPayload, null, [{ + _createClass(StaticSecretDetailsInfo, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a ServerInventoryPayload from a plain JavaScript object, optionally creating a new instance. + * Constructs a StaticSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ServerInventoryPayload} obj Optional instance to populate. - * @return {module:model/ServerInventoryPayload} The populated ServerInventoryPayload instance. + * @param {module:model/StaticSecretDetailsInfo} obj Optional instance to populate. + * @return {module:model/StaticSecretDetailsInfo} The populated StaticSecretDetailsInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ServerInventoryPayload(); - - if (data.hasOwnProperty('auto_rotate')) { - obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('auto_rotate_interval_in_days')) { - obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); - } + obj = obj || new StaticSecretDetailsInfo(); - if (data.hasOwnProperty('auto_rotate_rotation_hour')) { - obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); } - if (data.hasOwnProperty('enable_rdp_sra')) { - obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); + if (data.hasOwnProperty('max_versions')) { + obj['max_versions'] = _ApiClient["default"].convertToType(data['max_versions'], 'Number'); } - if (data.hasOwnProperty('migration_target_id')) { - obj['migration_target_id'] = _ApiClient["default"].convertToType(data['migration_target_id'], 'Number'); + if (data.hasOwnProperty('notify_on_change_event')) { + obj['notify_on_change_event'] = _ApiClient["default"].convertToType(data['notify_on_change_event'], 'Boolean'); } - if (data.hasOwnProperty('server_targets_path_template')) { - obj['server_targets_path_template'] = _ApiClient["default"].convertToType(data['server_targets_path_template'], 'String'); + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } - if (data.hasOwnProperty('users_ignore_list')) { - obj['users_ignore_list'] = _ApiClient["default"].convertToType(data['users_ignore_list'], { - 'String': 'Boolean' - }); + if (data.hasOwnProperty('website')) { + obj['website'] = _ApiClient["default"].convertToType(data['website'], 'String'); } - if (data.hasOwnProperty('users_rotated_secrets_path_template')) { - obj['users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['users_rotated_secrets_path_template'], 'String'); + if (data.hasOwnProperty('websites')) { + obj['websites'] = _ApiClient["default"].convertToType(data['websites'], ['String']); } } @@ -101361,55 +178357,47 @@ var ServerInventoryPayload = /*#__PURE__*/function () { } }]); - return ServerInventoryPayload; + return StaticSecretDetailsInfo; }(); /** - * @member {Boolean} auto_rotate - */ - - -ServerInventoryPayload.prototype['auto_rotate'] = undefined; -/** - * @member {Number} auto_rotate_interval_in_days + * StaticSecretFormat defines the format of static secret (e.g. Text) + * @member {String} format */ -ServerInventoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; -/** - * @member {Number} auto_rotate_rotation_hour - */ -ServerInventoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; +StaticSecretDetailsInfo.prototype['format'] = undefined; /** - * @member {Boolean} enable_rdp_sra + * @member {Number} max_versions */ -ServerInventoryPayload.prototype['enable_rdp_sra'] = undefined; +StaticSecretDetailsInfo.prototype['max_versions'] = undefined; /** - * @member {Number} migration_target_id + * @member {Boolean} notify_on_change_event */ -ServerInventoryPayload.prototype['migration_target_id'] = undefined; +StaticSecretDetailsInfo.prototype['notify_on_change_event'] = undefined; /** - * @member {String} server_targets_path_template + * @member {String} username */ -ServerInventoryPayload.prototype['server_targets_path_template'] = undefined; +StaticSecretDetailsInfo.prototype['username'] = undefined; /** - * @member {Object.} users_ignore_list + * deprecated + * @member {String} website */ -ServerInventoryPayload.prototype['users_ignore_list'] = undefined; +StaticSecretDetailsInfo.prototype['website'] = undefined; /** - * @member {String} users_rotated_secrets_path_template + * @member {Array.} websites */ -ServerInventoryPayload.prototype['users_rotated_secrets_path_template'] = undefined; -var _default = ServerInventoryPayload; +StaticSecretDetailsInfo.prototype['websites'] = undefined; +var _default = StaticSecretDetailsInfo; exports["default"] = _default; /***/ }), -/***/ 24876: +/***/ 22696: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101420,7 +178408,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -101431,21 +178419,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SetItemState model module. - * @module model/SetItemState - * @version 3.3.16 + * The SumologicLogForwardingConfig model module. + * @module model/SumologicLogForwardingConfig + * @version 3.6.3 */ -var SetItemState = /*#__PURE__*/function () { +var SumologicLogForwardingConfig = /*#__PURE__*/function () { /** - * Constructs a new SetItemState. - * @alias module:model/SetItemState - * @param desiredState {String} Desired item state (Enabled, Disabled) - * @param name {String} Current item name + * Constructs a new SumologicLogForwardingConfig. + * @alias module:model/SumologicLogForwardingConfig */ - function SetItemState(desiredState, name) { - _classCallCheck(this, SetItemState); + function SumologicLogForwardingConfig() { + _classCallCheck(this, SumologicLogForwardingConfig); - SetItemState.initialize(this, desiredState, name); + SumologicLogForwardingConfig.initialize(this); } /** * Initializes the fields of this object. @@ -101454,48 +178440,33 @@ var SetItemState = /*#__PURE__*/function () { */ - _createClass(SetItemState, null, [{ + _createClass(SumologicLogForwardingConfig, null, [{ key: "initialize", - value: function initialize(obj, desiredState, name) { - obj['desired-state'] = desiredState; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a SetItemState from a plain JavaScript object, optionally creating a new instance. + * Constructs a SumologicLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetItemState} obj Optional instance to populate. - * @return {module:model/SetItemState} The populated SetItemState instance. + * @param {module:model/SumologicLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/SumologicLogForwardingConfig} The populated SumologicLogForwardingConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SetItemState(); - - if (data.hasOwnProperty('desired-state')) { - obj['desired-state'] = _ApiClient["default"].convertToType(data['desired-state'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } + obj = obj || new SumologicLogForwardingConfig(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('sumo_logic_endpoint')) { + obj['sumo_logic_endpoint'] = _ApiClient["default"].convertToType(data['sumo_logic_endpoint'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('sumo_logic_host')) { + obj['sumo_logic_host'] = _ApiClient["default"].convertToType(data['sumo_logic_host'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('sumo_logic_tags')) { + obj['sumo_logic_tags'] = _ApiClient["default"].convertToType(data['sumo_logic_tags'], 'String'); } } @@ -101503,53 +178474,30 @@ var SetItemState = /*#__PURE__*/function () { } }]); - return SetItemState; + return SumologicLogForwardingConfig; }(); /** - * Desired item state (Enabled, Disabled) - * @member {String} desired-state - */ - - -SetItemState.prototype['desired-state'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SetItemState.prototype['json'] = false; -/** - * Current item name - * @member {String} name + * @member {String} sumo_logic_endpoint */ -SetItemState.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ -SetItemState.prototype['token'] = undefined; +SumologicLogForwardingConfig.prototype['sumo_logic_endpoint'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} sumo_logic_host */ -SetItemState.prototype['uid-token'] = undefined; +SumologicLogForwardingConfig.prototype['sumo_logic_host'] = undefined; /** - * The specific version you want to update: 0=item level state (default) - * @member {Number} version - * @default 0 + * @member {String} sumo_logic_tags */ -SetItemState.prototype['version'] = 0; -var _default = SetItemState; +SumologicLogForwardingConfig.prototype['sumo_logic_tags'] = undefined; +var _default = SumologicLogForwardingConfig; exports["default"] = _default; /***/ }), -/***/ 51250: +/***/ 74689: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101560,7 +178508,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -101571,22 +178519,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SetRoleRule model module. - * @module model/SetRoleRule - * @version 3.3.16 + * The SyslogLogForwardingConfig model module. + * @module model/SyslogLogForwardingConfig + * @version 3.6.3 */ -var SetRoleRule = /*#__PURE__*/function () { +var SyslogLogForwardingConfig = /*#__PURE__*/function () { /** - * Constructs a new SetRoleRule. - * @alias module:model/SetRoleRule - * @param capability {Array.} List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] - * @param path {String} The path the rule refers to - * @param roleName {String} The role name to be updated + * Constructs a new SyslogLogForwardingConfig. + * @alias module:model/SyslogLogForwardingConfig */ - function SetRoleRule(capability, path, roleName) { - _classCallCheck(this, SetRoleRule); + function SyslogLogForwardingConfig() { + _classCallCheck(this, SyslogLogForwardingConfig); - SetRoleRule.initialize(this, capability, path, roleName); + SyslogLogForwardingConfig.initialize(this); } /** * Initializes the fields of this object. @@ -101595,57 +178540,45 @@ var SetRoleRule = /*#__PURE__*/function () { */ - _createClass(SetRoleRule, null, [{ + _createClass(SyslogLogForwardingConfig, null, [{ key: "initialize", - value: function initialize(obj, capability, path, roleName) { - obj['capability'] = capability; - obj['path'] = path; - obj['role-name'] = roleName; - } + value: function initialize(obj) {} /** - * Constructs a SetRoleRule from a plain JavaScript object, optionally creating a new instance. + * Constructs a SyslogLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetRoleRule} obj Optional instance to populate. - * @return {module:model/SetRoleRule} The populated SetRoleRule instance. + * @param {module:model/SyslogLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/SyslogLogForwardingConfig} The populated SyslogLogForwardingConfig instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SetRoleRule(); - - if (data.hasOwnProperty('capability')) { - obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + obj = obj || new SyslogLogForwardingConfig(); - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + if (data.hasOwnProperty('syslog_enable_tls')) { + obj['syslog_enable_tls'] = _ApiClient["default"].convertToType(data['syslog_enable_tls'], 'Boolean'); } - if (data.hasOwnProperty('role-name')) { - obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + if (data.hasOwnProperty('syslog_formatter')) { + obj['syslog_formatter'] = _ApiClient["default"].convertToType(data['syslog_formatter'], 'String'); } - if (data.hasOwnProperty('rule-type')) { - obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); + if (data.hasOwnProperty('syslog_host')) { + obj['syslog_host'] = _ApiClient["default"].convertToType(data['syslog_host'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('syslog_network')) { + obj['syslog_network'] = _ApiClient["default"].convertToType(data['syslog_network'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('syslog_target_tag')) { + obj['syslog_target_tag'] = _ApiClient["default"].convertToType(data['syslog_target_tag'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('syslog_tls_certificate')) { + obj['syslog_tls_certificate'] = _ApiClient["default"].convertToType(data['syslog_tls_certificate'], 'String'); } } @@ -101653,65 +178586,45 @@ var SetRoleRule = /*#__PURE__*/function () { } }]); - return SetRoleRule; + return SyslogLogForwardingConfig; }(); /** - * List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] - * @member {Array.} capability - */ - - -SetRoleRule.prototype['capability'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Boolean} syslog_enable_tls */ -SetRoleRule.prototype['json'] = false; -/** - * The path the rule refers to - * @member {String} path - */ -SetRoleRule.prototype['path'] = undefined; +SyslogLogForwardingConfig.prototype['syslog_enable_tls'] = undefined; /** - * The role name to be updated - * @member {String} role-name + * @member {String} syslog_formatter */ -SetRoleRule.prototype['role-name'] = undefined; +SyslogLogForwardingConfig.prototype['syslog_formatter'] = undefined; /** - * item-rule, target-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule - * @member {String} rule-type - * @default 'item-rule' + * @member {String} syslog_host */ -SetRoleRule.prototype['rule-type'] = 'item-rule'; +SyslogLogForwardingConfig.prototype['syslog_host'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} syslog_network */ -SetRoleRule.prototype['token'] = undefined; +SyslogLogForwardingConfig.prototype['syslog_network'] = undefined; /** - * RoleRule ttl - * @member {Number} ttl + * @member {String} syslog_target_tag */ -SetRoleRule.prototype['ttl'] = undefined; +SyslogLogForwardingConfig.prototype['syslog_target_tag'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} syslog_tls_certificate */ -SetRoleRule.prototype['uid-token'] = undefined; -var _default = SetRoleRule; +SyslogLogForwardingConfig.prototype['syslog_tls_certificate'] = undefined; +var _default = SyslogLogForwardingConfig; exports["default"] = _default; /***/ }), -/***/ 56430: +/***/ 96719: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101722,7 +178635,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -101733,21 +178646,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The ShareItem model module. - * @module model/ShareItem - * @version 3.3.16 + * The SystemAccessCredentialsReplyObj model module. + * @module model/SystemAccessCredentialsReplyObj + * @version 3.6.3 */ -var ShareItem = /*#__PURE__*/function () { +var SystemAccessCredentialsReplyObj = /*#__PURE__*/function () { /** - * Constructs a new ShareItem. - * @alias module:model/ShareItem - * @param action {String} Action to be performed on the item [start/stop/describe] - * @param itemName {String} Item name + * Constructs a new SystemAccessCredentialsReplyObj. + * @alias module:model/SystemAccessCredentialsReplyObj */ - function ShareItem(action, itemName) { - _classCallCheck(this, ShareItem); + function SystemAccessCredentialsReplyObj() { + _classCallCheck(this, SystemAccessCredentialsReplyObj); - ShareItem.initialize(this, action, itemName); + SystemAccessCredentialsReplyObj.initialize(this); } /** * Initializes the fields of this object. @@ -101756,60 +178667,45 @@ var ShareItem = /*#__PURE__*/function () { */ - _createClass(ShareItem, null, [{ + _createClass(SystemAccessCredentialsReplyObj, null, [{ key: "initialize", - value: function initialize(obj, action, itemName) { - obj['action'] = action; - obj['item-name'] = itemName; - } + value: function initialize(obj) {} /** - * Constructs a ShareItem from a plain JavaScript object, optionally creating a new instance. + * Constructs a SystemAccessCredentialsReplyObj from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ShareItem} obj Optional instance to populate. - * @return {module:model/ShareItem} The populated ShareItem instance. + * @param {module:model/SystemAccessCredentialsReplyObj} obj Optional instance to populate. + * @return {module:model/SystemAccessCredentialsReplyObj} The populated SystemAccessCredentialsReplyObj instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new ShareItem(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } + obj = obj || new SystemAccessCredentialsReplyObj(); - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); + if (data.hasOwnProperty('auth_creds')) { + obj['auth_creds'] = _ApiClient["default"].convertToType(data['auth_creds'], 'String'); } - if (data.hasOwnProperty('emails')) { - obj['emails'] = _ApiClient["default"].convertToType(data['emails'], ['String']); + if (data.hasOwnProperty('expiry')) { + obj['expiry'] = _ApiClient["default"].convertToType(data['expiry'], 'Number'); } - if (data.hasOwnProperty('item-name')) { - obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); + if (data.hasOwnProperty('kfm_creds')) { + obj['kfm_creds'] = _ApiClient["default"].convertToType(data['kfm_creds'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('required_mfa')) { + obj['required_mfa'] = _ApiClient["default"].convertToType(data['required_mfa'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('view-once')) { - obj['view-once'] = _ApiClient["default"].convertToType(data['view-once'], 'Boolean'); + if (data.hasOwnProperty('uam_creds')) { + obj['uam_creds'] = _ApiClient["default"].convertToType(data['uam_creds'], 'String'); } } @@ -101817,72 +178713,50 @@ var ShareItem = /*#__PURE__*/function () { } }]); - return ShareItem; + return SystemAccessCredentialsReplyObj; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * Temporary credentials for accessing Auth + * @member {String} auth_creds */ -ShareItem.prototype['accessibility'] = 'regular'; -/** - * Action to be performed on the item [start/stop/describe] - * @member {String} action - */ - -ShareItem.prototype['action'] = undefined; +SystemAccessCredentialsReplyObj.prototype['auth_creds'] = undefined; /** - * For Password Management use, reflect the website context - * @member {Array.} emails + * Credentials expiration date + * @member {Number} expiry */ -ShareItem.prototype['emails'] = undefined; +SystemAccessCredentialsReplyObj.prototype['expiry'] = undefined; /** - * Item name - * @member {String} item-name + * Temporary credentials for accessing the KFMs instances + * @member {String} kfm_creds */ -ShareItem.prototype['item-name'] = undefined; +SystemAccessCredentialsReplyObj.prototype['kfm_creds'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} required_mfa */ -ShareItem.prototype['json'] = false; +SystemAccessCredentialsReplyObj.prototype['required_mfa'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) + * Credentials tmp token * @member {String} token */ -ShareItem.prototype['token'] = undefined; -/** - * TTL of the Availability of the shared secret in seconds - * @member {Number} ttl - */ - -ShareItem.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ShareItem.prototype['uid-token'] = undefined; +SystemAccessCredentialsReplyObj.prototype['token'] = undefined; /** - * ViewOnlyOnce Shared secrets can only be viewed once [true/false] - * @member {Boolean} view-once - * @default false + * Temporary credentials for accessing the UAM service + * @member {String} uam_creds */ -ShareItem.prototype['view-once'] = false; -var _default = ShareItem; +SystemAccessCredentialsReplyObj.prototype['uam_creds'] = undefined; +var _default = SystemAccessCredentialsReplyObj; exports["default"] = _default; /***/ }), -/***/ 69240: +/***/ 8792: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101893,7 +178767,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -101904,19 +178778,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SharingPolicyInfo model module. - * @module model/SharingPolicyInfo - * @version 3.3.16 + * The SystemAccessCredsSettings model module. + * @module model/SystemAccessCredsSettings + * @version 3.6.3 */ -var SharingPolicyInfo = /*#__PURE__*/function () { +var SystemAccessCredsSettings = /*#__PURE__*/function () { /** - * Constructs a new SharingPolicyInfo. - * @alias module:model/SharingPolicyInfo + * Constructs a new SystemAccessCredsSettings. + * SystemAccessCredsSettings describes system access credential settings for account by minutes + * @alias module:model/SystemAccessCredsSettings */ - function SharingPolicyInfo() { - _classCallCheck(this, SharingPolicyInfo); + function SystemAccessCredsSettings() { + _classCallCheck(this, SystemAccessCredsSettings); - SharingPolicyInfo.initialize(this); + SystemAccessCredsSettings.initialize(this); } /** * Initializes the fields of this object. @@ -101925,25 +178800,33 @@ var SharingPolicyInfo = /*#__PURE__*/function () { */ - _createClass(SharingPolicyInfo, null, [{ + _createClass(SystemAccessCredsSettings, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SharingPolicyInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a SystemAccessCredsSettings from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SharingPolicyInfo} obj Optional instance to populate. - * @return {module:model/SharingPolicyInfo} The populated SharingPolicyInfo instance. + * @param {module:model/SystemAccessCredsSettings} obj Optional instance to populate. + * @return {module:model/SystemAccessCredsSettings} The populated SystemAccessCredsSettings instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SharingPolicyInfo(); + obj = obj || new SystemAccessCredsSettings(); - if (data.hasOwnProperty('default_share_link_ttl')) { - obj['default_share_link_ttl'] = _ApiClient["default"].convertToType(data['default_share_link_ttl'], 'Number'); + if (data.hasOwnProperty('jwt_ttl_default')) { + obj['jwt_ttl_default'] = _ApiClient["default"].convertToType(data['jwt_ttl_default'], 'Number'); + } + + if (data.hasOwnProperty('jwt_ttl_maximum')) { + obj['jwt_ttl_maximum'] = _ApiClient["default"].convertToType(data['jwt_ttl_maximum'], 'Number'); + } + + if (data.hasOwnProperty('jwt_ttl_minimum')) { + obj['jwt_ttl_minimum'] = _ApiClient["default"].convertToType(data['jwt_ttl_minimum'], 'Number'); } } @@ -101951,20 +178834,30 @@ var SharingPolicyInfo = /*#__PURE__*/function () { } }]); - return SharingPolicyInfo; + return SystemAccessCredsSettings; }(); /** - * @member {Number} default_share_link_ttl + * @member {Number} jwt_ttl_default */ -SharingPolicyInfo.prototype['default_share_link_ttl'] = undefined; -var _default = SharingPolicyInfo; +SystemAccessCredsSettings.prototype['jwt_ttl_default'] = undefined; +/** + * @member {Number} jwt_ttl_maximum + */ + +SystemAccessCredsSettings.prototype['jwt_ttl_maximum'] = undefined; +/** + * @member {Number} jwt_ttl_minimum + */ + +SystemAccessCredsSettings.prototype['jwt_ttl_minimum'] = undefined; +var _default = SystemAccessCredsSettings; exports["default"] = _default; /***/ }), -/***/ 88377: +/***/ 17364: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101975,7 +178868,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(85396)); + +var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(80220)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -101986,23 +178883,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignDataWithClassicKey model module. - * @module model/SignDataWithClassicKey - * @version 3.3.16 + * The Target model module. + * @module model/Target + * @version 3.6.3 */ -var SignDataWithClassicKey = /*#__PURE__*/function () { +var Target = /*#__PURE__*/function () { /** - * Constructs a new SignDataWithClassicKey. - * @alias module:model/SignDataWithClassicKey - * @param data {String} Data - * @param displayId {String} The name of the key to use in the sign data process - * @param name {String} ClassicKey name - * @param version {Number} classic key version + * Constructs a new Target. + * @alias module:model/Target */ - function SignDataWithClassicKey(data, displayId, name, version) { - _classCallCheck(this, SignDataWithClassicKey); + function Target() { + _classCallCheck(this, Target); - SignDataWithClassicKey.initialize(this, data, displayId, name, version); + Target.initialize(this); } /** * Initializes the fields of this object. @@ -102011,62 +178904,103 @@ var SignDataWithClassicKey = /*#__PURE__*/function () { */ - _createClass(SignDataWithClassicKey, null, [{ + _createClass(Target, null, [{ key: "initialize", - value: function initialize(obj, data, displayId, name, version) { - obj['data'] = data; - obj['display-id'] = displayId; - obj['name'] = name; - obj['version'] = version; - } + value: function initialize(obj) {} /** - * Constructs a SignDataWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a Target from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignDataWithClassicKey} obj Optional instance to populate. - * @return {module:model/SignDataWithClassicKey} The populated SignDataWithClassicKey instance. + * @param {module:model/Target} obj Optional instance to populate. + * @return {module:model/Target} The populated Target instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignDataWithClassicKey(); + obj = obj || new Target(); - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); } - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); } - if (data.hasOwnProperty('hashed')) { - obj['hashed'] = _ApiClient["default"].convertToType(data['hashed'], 'Boolean'); + if (data.hasOwnProperty('access_request_status')) { + obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); } - if (data.hasOwnProperty('hashing-method')) { - obj['hashing-method'] = _ApiClient["default"].convertToType(data['hashing-method'], 'String'); + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { + 'String': Object + }); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('credentials_less')) { + obj['credentials_less'] = _ApiClient["default"].convertToType(data['credentials_less'], 'Boolean'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('is_access_request_enabled')) { + obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); + } + + if (data.hasOwnProperty('last_version')) { + obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + } + + if (data.hasOwnProperty('target_details')) { + obj['target_details'] = _ApiClient["default"].convertToType(data['target_details'], 'String'); + } + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + + if (data.hasOwnProperty('target_items_assoc')) { + obj['target_items_assoc'] = _ApiClient["default"].convertToType(data['target_items_assoc'], [_TargetItemAssociation["default"]]); + } + + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + } + + if (data.hasOwnProperty('target_sub_type')) { + obj['target_sub_type'] = _ApiClient["default"].convertToType(data['target_sub_type'], 'String'); + } + + if (data.hasOwnProperty('target_type')) { + obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); + } + + if (data.hasOwnProperty('target_versions')) { + obj['target_versions'] = _ApiClient["default"].convertToType(data['target_versions'], [_ItemVersion["default"]]); + } + + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); } } @@ -102074,72 +179008,246 @@ var SignDataWithClassicKey = /*#__PURE__*/function () { } }]); - return SignDataWithClassicKey; + return Target; }(); /** - * Data - * @member {String} data + * @member {Date} access_date */ -SignDataWithClassicKey.prototype['data'] = undefined; +Target.prototype['access_date'] = undefined; /** - * The name of the key to use in the sign data process - * @member {String} display-id + * @member {String} access_date_display */ -SignDataWithClassicKey.prototype['display-id'] = undefined; +Target.prototype['access_date_display'] = undefined; /** - * Defines whether the data should be hashed as part of the signing. If true, the data will not be hashed - * @member {Boolean} hashed - * @default false + * @member {String} access_request_status */ -SignDataWithClassicKey.prototype['hashed'] = false; +Target.prototype['access_request_status'] = undefined; /** - * HashingMethod - * @member {String} hashing-method - * @default 'SHA256' + * this is not \"omitempty\" since an empty value causes no update while an empty map will clear the attributes + * @member {Object.} attributes */ -SignDataWithClassicKey.prototype['hashing-method'] = 'SHA256'; +Target.prototype['attributes'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Array.} client_permissions */ -SignDataWithClassicKey.prototype['json'] = false; +Target.prototype['client_permissions'] = undefined; /** - * ClassicKey name - * @member {String} name + * @member {String} comment */ -SignDataWithClassicKey.prototype['name'] = undefined; +Target.prototype['comment'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Date} creation_date */ -SignDataWithClassicKey.prototype['token'] = undefined; +Target.prototype['creation_date'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Boolean} credentials_less */ -SignDataWithClassicKey.prototype['uid-token'] = undefined; +Target.prototype['credentials_less'] = undefined; /** - * classic key version - * @member {Number} version + * @member {Boolean} is_access_request_enabled + */ + +Target.prototype['is_access_request_enabled'] = undefined; +/** + * @member {Number} last_version + */ + +Target.prototype['last_version'] = undefined; +/** + * @member {Date} modification_date + */ + +Target.prototype['modification_date'] = undefined; +/** + * @member {String} protection_key_name + */ + +Target.prototype['protection_key_name'] = undefined; +/** + * @member {String} target_details + */ + +Target.prototype['target_details'] = undefined; +/** + * @member {Number} target_id + */ + +Target.prototype['target_id'] = undefined; +/** + * @member {Array.} target_items_assoc + */ + +Target.prototype['target_items_assoc'] = undefined; +/** + * @member {String} target_name + */ + +Target.prototype['target_name'] = undefined; +/** + * @member {String} target_sub_type + */ + +Target.prototype['target_sub_type'] = undefined; +/** + * @member {String} target_type + */ + +Target.prototype['target_type'] = undefined; +/** + * @member {Array.} target_versions + */ + +Target.prototype['target_versions'] = undefined; +/** + * @member {Boolean} with_customer_fragment + */ + +Target.prototype['with_customer_fragment'] = undefined; +var _default = Target; +exports["default"] = _default; + +/***/ }), + +/***/ 80220: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The TargetItemAssociation model module. + * @module model/TargetItemAssociation + * @version 3.6.3 + */ +var TargetItemAssociation = /*#__PURE__*/function () { + /** + * Constructs a new TargetItemAssociation. + * TargetItemAssociation includes details of an association between a target and an item. Also, between targets in case of CredentialsLess target or Linked target. + * @alias module:model/TargetItemAssociation + */ + function TargetItemAssociation() { + _classCallCheck(this, TargetItemAssociation); + + TargetItemAssociation.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(TargetItemAssociation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TargetItemAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TargetItemAssociation} obj Optional instance to populate. + * @return {module:model/TargetItemAssociation} The populated TargetItemAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TargetItemAssociation(); + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('item_name')) { + obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); + } + + if (data.hasOwnProperty('item_type')) { + obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); + } + + if (data.hasOwnProperty('relationship')) { + obj['relationship'] = _ApiClient["default"].convertToType(data['relationship'], 'String'); + } + } + + return obj; + } + }]); + + return TargetItemAssociation; +}(); +/** + * @member {String} assoc_id + */ + + +TargetItemAssociation.prototype['assoc_id'] = undefined; +/** + * @member {Object.} attributes + */ + +TargetItemAssociation.prototype['attributes'] = undefined; +/** + * @member {Number} cluster_id + */ + +TargetItemAssociation.prototype['cluster_id'] = undefined; +/** + * @member {String} item_name + */ + +TargetItemAssociation.prototype['item_name'] = undefined; +/** + * @member {String} item_type + */ + +TargetItemAssociation.prototype['item_type'] = undefined; +/** + * @member {String} relationship */ -SignDataWithClassicKey.prototype['version'] = undefined; -var _default = SignDataWithClassicKey; +TargetItemAssociation.prototype['relationship'] = undefined; +var _default = TargetItemAssociation; exports["default"] = _default; /***/ }), -/***/ 43538: +/***/ 75107: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -102150,7 +179258,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _CertificateVersionInfo = _interopRequireDefault(__nccwpck_require__(16668)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -102161,21 +179271,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignGPG model module. - * @module model/SignGPG - * @version 3.3.16 + * The TargetItemVersion model module. + * @module model/TargetItemVersion + * @version 3.6.3 */ -var SignGPG = /*#__PURE__*/function () { +var TargetItemVersion = /*#__PURE__*/function () { /** - * Constructs a new SignGPG. - * @alias module:model/SignGPG - * @param keyName {String} The name of the key to use in the encryption process - * @param message {String} The message to be signed in base64 format + * Constructs a new TargetItemVersion. + * @alias module:model/TargetItemVersion */ - function SignGPG(keyName, message) { - _classCallCheck(this, SignGPG); + function TargetItemVersion() { + _classCallCheck(this, TargetItemVersion); - SignGPG.initialize(this, keyName, message); + TargetItemVersion.initialize(this); } /** * Initializes the fields of this object. @@ -102184,56 +179292,73 @@ var SignGPG = /*#__PURE__*/function () { */ - _createClass(SignGPG, null, [{ + _createClass(TargetItemVersion, null, [{ key: "initialize", - value: function initialize(obj, keyName, message) { - obj['key-name'] = keyName; - obj['message'] = message; - } + value: function initialize(obj) {} /** - * Constructs a SignGPG from a plain JavaScript object, optionally creating a new instance. + * Constructs a TargetItemVersion from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignGPG} obj Optional instance to populate. - * @return {module:model/SignGPG} The populated SignGPG instance. + * @param {module:model/TargetItemVersion} obj Optional instance to populate. + * @return {module:model/TargetItemVersion} The populated TargetItemVersion instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignGPG(); + obj = obj || new TargetItemVersion(); - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); } - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('certificate_version_info')) { + obj['certificate_version_info'] = _CertificateVersionInfo["default"].constructFromObject(data['certificate_version_info']); } - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + if (data.hasOwnProperty('customer_fragment_id')) { + obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); } - if (data.hasOwnProperty('passphrase')) { - obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('item_version_state')) { + obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('latest_version')) { + obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'Boolean'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + } + + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); } } @@ -102241,64 +179366,81 @@ var SignGPG = /*#__PURE__*/function () { } }]); - return SignGPG; + return TargetItemVersion; }(); /** - * The display id of the key to use in the encryption process - * @member {String} display-id + * @member {Date} access_date */ -SignGPG.prototype['display-id'] = undefined; +TargetItemVersion.prototype['access_date'] = undefined; /** - * The item id of the key to use in the encryption process - * @member {Number} item-id + * @member {String} access_date_display */ -SignGPG.prototype['item-id'] = undefined; +TargetItemVersion.prototype['access_date_display'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {module:model/CertificateVersionInfo} certificate_version_info */ -SignGPG.prototype['json'] = false; +TargetItemVersion.prototype['certificate_version_info'] = undefined; /** - * The name of the key to use in the encryption process - * @member {String} key-name + * @member {Date} creation_date */ -SignGPG.prototype['key-name'] = undefined; +TargetItemVersion.prototype['creation_date'] = undefined; /** - * The message to be signed in base64 format - * @member {String} message + * @member {String} customer_fragment_id */ -SignGPG.prototype['message'] = undefined; +TargetItemVersion.prototype['customer_fragment_id'] = undefined; /** - * Passphrase that was used to generate the key - * @member {String} passphrase + * @member {Date} deletion_date */ -SignGPG.prototype['passphrase'] = undefined; +TargetItemVersion.prototype['deletion_date'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * ItemState defines the different states an Item can be in + * @member {String} item_version_state */ -SignGPG.prototype['token'] = undefined; +TargetItemVersion.prototype['item_version_state'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Boolean} latest_version */ -SignGPG.prototype['uid-token'] = undefined; -var _default = SignGPG; +TargetItemVersion.prototype['latest_version'] = undefined; +/** + * @member {Date} modification_date + */ + +TargetItemVersion.prototype['modification_date'] = undefined; +/** + * @member {String} protection_key_name + */ + +TargetItemVersion.prototype['protection_key_name'] = undefined; +/** + * @member {String} target_name + */ + +TargetItemVersion.prototype['target_name'] = undefined; +/** + * @member {Number} version + */ + +TargetItemVersion.prototype['version'] = undefined; +/** + * @member {Boolean} with_customer_fragment + */ + +TargetItemVersion.prototype['with_customer_fragment'] = undefined; +var _default = TargetItemVersion; exports["default"] = _default; /***/ }), -/***/ 38120: +/***/ 21380: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -102309,7 +179451,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -102320,19 +179462,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignGPGOutput model module. - * @module model/SignGPGOutput - * @version 3.3.16 + * The TargetNameWithHosts model module. + * @module model/TargetNameWithHosts + * @version 3.6.3 */ -var SignGPGOutput = /*#__PURE__*/function () { +var TargetNameWithHosts = /*#__PURE__*/function () { /** - * Constructs a new SignGPGOutput. - * @alias module:model/SignGPGOutput + * Constructs a new TargetNameWithHosts. + * @alias module:model/TargetNameWithHosts */ - function SignGPGOutput() { - _classCallCheck(this, SignGPGOutput); + function TargetNameWithHosts() { + _classCallCheck(this, TargetNameWithHosts); - SignGPGOutput.initialize(this); + TargetNameWithHosts.initialize(this); } /** * Initializes the fields of this object. @@ -102341,25 +179483,29 @@ var SignGPGOutput = /*#__PURE__*/function () { */ - _createClass(SignGPGOutput, null, [{ + _createClass(TargetNameWithHosts, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SignGPGOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a TargetNameWithHosts from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignGPGOutput} obj Optional instance to populate. - * @return {module:model/SignGPGOutput} The populated SignGPGOutput instance. + * @param {module:model/TargetNameWithHosts} obj Optional instance to populate. + * @return {module:model/TargetNameWithHosts} The populated TargetNameWithHosts instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignGPGOutput(); + obj = obj || new TargetNameWithHosts(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], ['String']); + } + + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); } } @@ -102367,20 +179513,25 @@ var SignGPGOutput = /*#__PURE__*/function () { } }]); - return SignGPGOutput; + return TargetNameWithHosts; }(); /** - * @member {String} result + * @member {Array.} hosts */ -SignGPGOutput.prototype['result'] = undefined; -var _default = SignGPGOutput; +TargetNameWithHosts.prototype['hosts'] = undefined; +/** + * @member {String} target_name + */ + +TargetNameWithHosts.prototype['target_name'] = undefined; +var _default = TargetNameWithHosts; exports["default"] = _default; /***/ }), -/***/ 66950: +/***/ 83102: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -102391,7 +179542,59 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(65927)); + +var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(95466)); + +var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(69589)); + +var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(12608)); + +var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(19641)); + +var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(65590)); + +var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(1581)); + +var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(80007)); + +var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(54279)); + +var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(69042)); + +var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(98969)); + +var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(82679)); + +var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(47627)); + +var _GodaddyTargetDetails = _interopRequireDefault(__nccwpck_require__(95244)); + +var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(81583)); + +var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(16023)); + +var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(62146)); + +var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(68947)); + +var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(11276)); + +var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(49950)); + +var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(75582)); + +var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(96765)); + +var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(35955)); + +var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(42346)); + +var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(66819)); + +var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(55208)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -102402,19 +179605,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignJWTOutput model module. - * @module model/SignJWTOutput - * @version 3.3.16 + * The TargetTypeDetailsInput model module. + * @module model/TargetTypeDetailsInput + * @version 3.6.3 */ -var SignJWTOutput = /*#__PURE__*/function () { +var TargetTypeDetailsInput = /*#__PURE__*/function () { /** - * Constructs a new SignJWTOutput. - * @alias module:model/SignJWTOutput + * Constructs a new TargetTypeDetailsInput. + * @alias module:model/TargetTypeDetailsInput */ - function SignJWTOutput() { - _classCallCheck(this, SignJWTOutput); + function TargetTypeDetailsInput() { + _classCallCheck(this, TargetTypeDetailsInput); - SignJWTOutput.initialize(this); + TargetTypeDetailsInput.initialize(this); } /** * Initializes the fields of this object. @@ -102423,140 +179626,125 @@ var SignJWTOutput = /*#__PURE__*/function () { */ - _createClass(SignJWTOutput, null, [{ + _createClass(TargetTypeDetailsInput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SignJWTOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a TargetTypeDetailsInput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignJWTOutput} obj Optional instance to populate. - * @return {module:model/SignJWTOutput} The populated SignJWTOutput instance. + * @param {module:model/TargetTypeDetailsInput} obj Optional instance to populate. + * @return {module:model/TargetTypeDetailsInput} The populated TargetTypeDetailsInput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignJWTOutput(); + obj = obj || new TargetTypeDetailsInput(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('artifactory_target_details')) { + obj['artifactory_target_details'] = _ArtifactoryTargetDetails["default"].constructFromObject(data['artifactory_target_details']); } - } - return obj; - } - }]); - - return SignJWTOutput; -}(); -/** - * @member {String} result - */ + if (data.hasOwnProperty('aws_target_details')) { + obj['aws_target_details'] = _AWSTargetDetails["default"].constructFromObject(data['aws_target_details']); + } + if (data.hasOwnProperty('azure_target_details')) { + obj['azure_target_details'] = _AzureTargetDetails["default"].constructFromObject(data['azure_target_details']); + } -SignJWTOutput.prototype['result'] = undefined; -var _default = SignJWTOutput; -exports["default"] = _default; + if (data.hasOwnProperty('chef_target_details')) { + obj['chef_target_details'] = _ChefTargetDetails["default"].constructFromObject(data['chef_target_details']); + } -/***/ }), + if (data.hasOwnProperty('custom_target_details')) { + obj['custom_target_details'] = _CustomTargetDetails["default"].constructFromObject(data['custom_target_details']); + } -/***/ 7397: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('db_target_details')) { + obj['db_target_details'] = _DbTargetDetails["default"].constructFromObject(data['db_target_details']); + } -"use strict"; + if (data.hasOwnProperty('dockerhub_target_details')) { + obj['dockerhub_target_details'] = _DockerhubTargetDetails["default"].constructFromObject(data['dockerhub_target_details']); + } + if (data.hasOwnProperty('eks_target_details')) { + obj['eks_target_details'] = _EKSTargetDetails["default"].constructFromObject(data['eks_target_details']); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('gcp_target_details')) { + obj['gcp_target_details'] = _GcpTargetDetails["default"].constructFromObject(data['gcp_target_details']); + } -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('github_target_details')) { + obj['github_target_details'] = _GithubTargetDetails["default"].constructFromObject(data['github_target_details']); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('gke_target_details')) { + obj['gke_target_details'] = _GKETargetDetails["default"].constructFromObject(data['gke_target_details']); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('globalsign_atlas_target_details')) { + obj['globalsign_atlas_target_details'] = _GlobalSignAtlasTargetDetails["default"].constructFromObject(data['globalsign_atlas_target_details']); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('globalsign_target_details')) { + obj['globalsign_target_details'] = _GlobalSignGCCTargetDetails["default"].constructFromObject(data['globalsign_target_details']); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('godaddy_target_details')) { + obj['godaddy_target_details'] = _GodaddyTargetDetails["default"].constructFromObject(data['godaddy_target_details']); + } -/** - * The SignJWTWithClassicKey model module. - * @module model/SignJWTWithClassicKey - * @version 3.3.16 - */ -var SignJWTWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new SignJWTWithClassicKey. - * @alias module:model/SignJWTWithClassicKey - * @param displayId {String} The name of the key to use in the sign JWT process - * @param jwtClaims {String} JWTClaims - * @param signingMethod {String} SigningMethod - * @param version {Number} classic key version - */ - function SignJWTWithClassicKey(displayId, jwtClaims, signingMethod, version) { - _classCallCheck(this, SignJWTWithClassicKey); + if (data.hasOwnProperty('ldap_target_details')) { + obj['ldap_target_details'] = _LdapTargetDetails["default"].constructFromObject(data['ldap_target_details']); + } - SignJWTWithClassicKey.initialize(this, displayId, jwtClaims, signingMethod, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('linked_target_details')) { + obj['linked_target_details'] = _LinkedTargetDetails["default"].constructFromObject(data['linked_target_details']); + } + if (data.hasOwnProperty('mongo_db_target_details')) { + obj['mongo_db_target_details'] = _MongoDBTargetDetails["default"].constructFromObject(data['mongo_db_target_details']); + } - _createClass(SignJWTWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, displayId, jwtClaims, signingMethod, version) { - obj['display-id'] = displayId; - obj['jwt-claims'] = jwtClaims; - obj['signing-method'] = signingMethod; - obj['version'] = version; - } - /** - * Constructs a SignJWTWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignJWTWithClassicKey} obj Optional instance to populate. - * @return {module:model/SignJWTWithClassicKey} The populated SignJWTWithClassicKey instance. - */ + if (data.hasOwnProperty('native_k8s_target_details')) { + obj['native_k8s_target_details'] = _NativeK8sTargetDetails["default"].constructFromObject(data['native_k8s_target_details']); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignJWTWithClassicKey(); + if (data.hasOwnProperty('ping_target_details')) { + obj['ping_target_details'] = _PingTargetDetails["default"].constructFromObject(data['ping_target_details']); + } - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('rabbit_mq_target_details')) { + obj['rabbit_mq_target_details'] = _RabbitMQTargetDetails["default"].constructFromObject(data['rabbit_mq_target_details']); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('salesforce_target_details')) { + obj['salesforce_target_details'] = _SalesforceTargetDetails["default"].constructFromObject(data['salesforce_target_details']); } - if (data.hasOwnProperty('jwt-claims')) { - obj['jwt-claims'] = _ApiClient["default"].convertToType(data['jwt-claims'], 'String'); + if (data.hasOwnProperty('ssh_target_details')) { + obj['ssh_target_details'] = _SSHTargetDetails["default"].constructFromObject(data['ssh_target_details']); } - if (data.hasOwnProperty('signing-method')) { - obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); + if (data.hasOwnProperty('venafi_target_details')) { + obj['venafi_target_details'] = _VenafiTargetDetails["default"].constructFromObject(data['venafi_target_details']); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('web_target_details')) { + obj['web_target_details'] = _WebTargetDetails["default"].constructFromObject(data['web_target_details']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('windows_target_details')) { + obj['windows_target_details'] = _WindowsTargetDetails["default"].constructFromObject(data['windows_target_details']); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('zerossl_target_details')) { + obj['zerossl_target_details'] = _ZeroSSLTargetDetails["default"].constructFromObject(data['zerossl_target_details']); } } @@ -102564,140 +179752,145 @@ var SignJWTWithClassicKey = /*#__PURE__*/function () { } }]); - return SignJWTWithClassicKey; + return TargetTypeDetailsInput; }(); /** - * The name of the key to use in the sign JWT process - * @member {String} display-id + * @member {module:model/ArtifactoryTargetDetails} artifactory_target_details */ -SignJWTWithClassicKey.prototype['display-id'] = undefined; +TargetTypeDetailsInput.prototype['artifactory_target_details'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {module:model/AWSTargetDetails} aws_target_details */ -SignJWTWithClassicKey.prototype['json'] = false; +TargetTypeDetailsInput.prototype['aws_target_details'] = undefined; /** - * JWTClaims - * @member {String} jwt-claims + * @member {module:model/AzureTargetDetails} azure_target_details */ -SignJWTWithClassicKey.prototype['jwt-claims'] = undefined; +TargetTypeDetailsInput.prototype['azure_target_details'] = undefined; /** - * SigningMethod - * @member {String} signing-method + * @member {module:model/ChefTargetDetails} chef_target_details */ -SignJWTWithClassicKey.prototype['signing-method'] = undefined; +TargetTypeDetailsInput.prototype['chef_target_details'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {module:model/CustomTargetDetails} custom_target_details */ -SignJWTWithClassicKey.prototype['token'] = undefined; +TargetTypeDetailsInput.prototype['custom_target_details'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {module:model/DbTargetDetails} db_target_details */ -SignJWTWithClassicKey.prototype['uid-token'] = undefined; +TargetTypeDetailsInput.prototype['db_target_details'] = undefined; /** - * classic key version - * @member {Number} version + * @member {module:model/DockerhubTargetDetails} dockerhub_target_details */ -SignJWTWithClassicKey.prototype['version'] = undefined; -var _default = SignJWTWithClassicKey; -exports["default"] = _default; - -/***/ }), +TargetTypeDetailsInput.prototype['dockerhub_target_details'] = undefined; +/** + * @member {module:model/EKSTargetDetails} eks_target_details + */ -/***/ 58696: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +TargetTypeDetailsInput.prototype['eks_target_details'] = undefined; +/** + * @member {module:model/GcpTargetDetails} gcp_target_details + */ -"use strict"; +TargetTypeDetailsInput.prototype['gcp_target_details'] = undefined; +/** + * @member {module:model/GithubTargetDetails} github_target_details + */ +TargetTypeDetailsInput.prototype['github_target_details'] = undefined; +/** + * @member {module:model/GKETargetDetails} gke_target_details + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +TargetTypeDetailsInput.prototype['gke_target_details'] = undefined; +/** + * @member {module:model/GlobalSignAtlasTargetDetails} globalsign_atlas_target_details + */ -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +TargetTypeDetailsInput.prototype['globalsign_atlas_target_details'] = undefined; +/** + * @member {module:model/GlobalSignGCCTargetDetails} globalsign_target_details + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +TargetTypeDetailsInput.prototype['globalsign_target_details'] = undefined; +/** + * @member {module:model/GodaddyTargetDetails} godaddy_target_details + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +TargetTypeDetailsInput.prototype['godaddy_target_details'] = undefined; +/** + * @member {module:model/LdapTargetDetails} ldap_target_details + */ -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +TargetTypeDetailsInput.prototype['ldap_target_details'] = undefined; +/** + * @member {module:model/LinkedTargetDetails} linked_target_details + */ -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +TargetTypeDetailsInput.prototype['linked_target_details'] = undefined; +/** + * @member {module:model/MongoDBTargetDetails} mongo_db_target_details + */ +TargetTypeDetailsInput.prototype['mongo_db_target_details'] = undefined; /** - * The SignOutput model module. - * @module model/SignOutput - * @version 3.3.16 + * @member {module:model/NativeK8sTargetDetails} native_k8s_target_details */ -var SignOutput = /*#__PURE__*/function () { - /** - * Constructs a new SignOutput. - * @alias module:model/SignOutput - */ - function SignOutput() { - _classCallCheck(this, SignOutput); - SignOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ +TargetTypeDetailsInput.prototype['native_k8s_target_details'] = undefined; +/** + * @member {module:model/PingTargetDetails} ping_target_details + */ +TargetTypeDetailsInput.prototype['ping_target_details'] = undefined; +/** + * @member {module:model/RabbitMQTargetDetails} rabbit_mq_target_details + */ - _createClass(SignOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SignOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignOutput} obj Optional instance to populate. - * @return {module:model/SignOutput} The populated SignOutput instance. - */ +TargetTypeDetailsInput.prototype['rabbit_mq_target_details'] = undefined; +/** + * @member {module:model/SalesforceTargetDetails} salesforce_target_details + */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignOutput(); +TargetTypeDetailsInput.prototype['salesforce_target_details'] = undefined; +/** + * @member {module:model/SSHTargetDetails} ssh_target_details + */ - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } +TargetTypeDetailsInput.prototype['ssh_target_details'] = undefined; +/** + * @member {module:model/VenafiTargetDetails} venafi_target_details + */ - return obj; - } - }]); +TargetTypeDetailsInput.prototype['venafi_target_details'] = undefined; +/** + * @member {module:model/WebTargetDetails} web_target_details + */ - return SignOutput; -}(); +TargetTypeDetailsInput.prototype['web_target_details'] = undefined; /** - * @member {String} result + * @member {module:model/WindowsTargetDetails} windows_target_details */ +TargetTypeDetailsInput.prototype['windows_target_details'] = undefined; +/** + * @member {module:model/ZeroSSLTargetDetails} zerossl_target_details + */ -SignOutput.prototype['result'] = undefined; -var _default = SignOutput; +TargetTypeDetailsInput.prototype['zerossl_target_details'] = undefined; +var _default = TargetTypeDetailsInput; exports["default"] = _default; /***/ }), -/***/ 36851: +/***/ 96175: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -102708,7 +179901,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -102719,21 +179912,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignPKCS1 model module. - * @module model/SignPKCS1 - * @version 3.3.16 + * The TmpUserData model module. + * @module model/TmpUserData + * @version 3.6.3 */ -var SignPKCS1 = /*#__PURE__*/function () { +var TmpUserData = /*#__PURE__*/function () { /** - * Constructs a new SignPKCS1. - * signPKCS1 is a command that calculates the signature of hashed data using RSASSA-PKCS1-V1_5-SIGN from RSA PKCS#1 v1.5. - * @alias module:model/SignPKCS1 - * @param message {String} The message to be signed + * Constructs a new TmpUserData. + * @alias module:model/TmpUserData */ - function SignPKCS1(message) { - _classCallCheck(this, SignPKCS1); + function TmpUserData() { + _classCallCheck(this, TmpUserData); - SignPKCS1.initialize(this, message); + TmpUserData.initialize(this); } /** * Initializes the fields of this object. @@ -102742,51 +179933,51 @@ var SignPKCS1 = /*#__PURE__*/function () { */ - _createClass(SignPKCS1, null, [{ + _createClass(TmpUserData, null, [{ key: "initialize", - value: function initialize(obj, message) { - obj['message'] = message; - } + value: function initialize(obj) {} /** - * Constructs a SignPKCS1 from a plain JavaScript object, optionally creating a new instance. + * Constructs a TmpUserData from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKCS1} obj Optional instance to populate. - * @return {module:model/SignPKCS1} The populated SignPKCS1 instance. + * @param {module:model/TmpUserData} obj Optional instance to populate. + * @return {module:model/TmpUserData} The populated TmpUserData instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignPKCS1(); + obj = obj || new TmpUserData(); - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); } - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('custom_ttl')) { + obj['custom_ttl'] = _ApiClient["default"].convertToType(data['custom_ttl'], 'Number'); } - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + if (data.hasOwnProperty('dynamic_secret_type')) { + obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); } } @@ -102794,58 +179985,50 @@ var SignPKCS1 = /*#__PURE__*/function () { } }]); - return SignPKCS1; + return TmpUserData; }(); /** - * The display id of the key to use in the signing process - * @member {String} display-id + * @member {String} access_id */ -SignPKCS1.prototype['display-id'] = undefined; +TmpUserData.prototype['access_id'] = undefined; /** - * The item id of the key to use in the signing process - * @member {Number} item-id + * @member {Date} creation_date */ -SignPKCS1.prototype['item-id'] = undefined; +TmpUserData.prototype['creation_date'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {Number} custom_ttl */ -SignPKCS1.prototype['json'] = false; +TmpUserData.prototype['custom_ttl'] = undefined; /** - * The name of the RSA key to use in the signing process - * @member {String} key-name + * @member {String} dynamic_secret_type */ -SignPKCS1.prototype['key-name'] = undefined; +TmpUserData.prototype['dynamic_secret_type'] = undefined; /** - * The message to be signed - * @member {String} message + * @member {String} host */ -SignPKCS1.prototype['message'] = undefined; +TmpUserData.prototype['host'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} id */ -SignPKCS1.prototype['token'] = undefined; +TmpUserData.prototype['id'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Object.>} sub_claims */ -SignPKCS1.prototype['uid-token'] = undefined; -var _default = SignPKCS1; +TmpUserData.prototype['sub_claims'] = undefined; +var _default = TmpUserData; exports["default"] = _default; /***/ }), -/***/ 47998: +/***/ 91288: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -102856,7 +180039,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -102867,19 +180050,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignPKCS1Output model module. - * @module model/SignPKCS1Output - * @version 3.3.16 + * The Tokenize model module. + * @module model/Tokenize + * @version 3.6.3 */ -var SignPKCS1Output = /*#__PURE__*/function () { +var Tokenize = /*#__PURE__*/function () { /** - * Constructs a new SignPKCS1Output. - * @alias module:model/SignPKCS1Output + * Constructs a new Tokenize. + * tokenize is a command that encrypts text with a tokenizer + * @alias module:model/Tokenize + * @param plaintext {String} Data to be encrypted + * @param tokenizerName {String} The name of the tokenizer to use in the encryption process */ - function SignPKCS1Output() { - _classCallCheck(this, SignPKCS1Output); + function Tokenize(plaintext, tokenizerName) { + _classCallCheck(this, Tokenize); - SignPKCS1Output.initialize(this); + Tokenize.initialize(this, plaintext, tokenizerName); } /** * Initializes the fields of this object. @@ -102888,25 +180074,48 @@ var SignPKCS1Output = /*#__PURE__*/function () { */ - _createClass(SignPKCS1Output, null, [{ + _createClass(Tokenize, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, plaintext, tokenizerName) { + obj['plaintext'] = plaintext; + obj['tokenizer-name'] = tokenizerName; + } /** - * Constructs a SignPKCS1Output from a plain JavaScript object, optionally creating a new instance. + * Constructs a Tokenize from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKCS1Output} obj Optional instance to populate. - * @return {module:model/SignPKCS1Output} The populated SignPKCS1Output instance. + * @param {module:model/Tokenize} obj Optional instance to populate. + * @return {module:model/Tokenize} The populated Tokenize instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignPKCS1Output(); + obj = obj || new Tokenize(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], ['Number']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('tokenizer-name')) { + obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); + } + + if (data.hasOwnProperty('tweak')) { + obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -102914,20 +180123,52 @@ var SignPKCS1Output = /*#__PURE__*/function () { } }]); - return SignPKCS1Output; + return Tokenize; }(); /** - * @member {Array.} result + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SignPKCS1Output.prototype['result'] = undefined; -var _default = SignPKCS1Output; +Tokenize.prototype['json'] = false; +/** + * Data to be encrypted + * @member {String} plaintext + */ + +Tokenize.prototype['plaintext'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Tokenize.prototype['token'] = undefined; +/** + * The name of the tokenizer to use in the encryption process + * @member {String} tokenizer-name + */ + +Tokenize.prototype['tokenizer-name'] = undefined; +/** + * Base64 encoded tweak for vaultless encryption + * @member {String} tweak + */ + +Tokenize.prototype['tweak'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Tokenize.prototype['uid-token'] = undefined; +var _default = Tokenize; exports["default"] = _default; /***/ }), -/***/ 40782: +/***/ 62001: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -102938,7 +180179,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -102949,19 +180190,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignPKICertOutput model module. - * @module model/SignPKICertOutput - * @version 3.3.16 + * The TokenizeOutput model module. + * @module model/TokenizeOutput + * @version 3.6.3 */ -var SignPKICertOutput = /*#__PURE__*/function () { +var TokenizeOutput = /*#__PURE__*/function () { /** - * Constructs a new SignPKICertOutput. - * @alias module:model/SignPKICertOutput + * Constructs a new TokenizeOutput. + * @alias module:model/TokenizeOutput */ - function SignPKICertOutput() { - _classCallCheck(this, SignPKICertOutput); + function TokenizeOutput() { + _classCallCheck(this, TokenizeOutput); - SignPKICertOutput.initialize(this); + TokenizeOutput.initialize(this); } /** * Initializes the fields of this object. @@ -102970,46 +180211,55 @@ var SignPKICertOutput = /*#__PURE__*/function () { */ - _createClass(SignPKICertOutput, null, [{ + _createClass(TokenizeOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SignPKICertOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a TokenizeOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKICertOutput} obj Optional instance to populate. - * @return {module:model/SignPKICertOutput} The populated SignPKICertOutput instance. + * @param {module:model/TokenizeOutput} obj Optional instance to populate. + * @return {module:model/TokenizeOutput} The populated TokenizeOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignPKICertOutput(); + obj = obj || new TokenizeOutput(); if (data.hasOwnProperty('result')) { obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } + + if (data.hasOwnProperty('tweak')) { + obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + } } return obj; } }]); - return SignPKICertOutput; + return TokenizeOutput; }(); /** * @member {String} result */ -SignPKICertOutput.prototype['result'] = undefined; -var _default = SignPKICertOutput; +TokenizeOutput.prototype['result'] = undefined; +/** + * @member {String} tweak + */ + +TokenizeOutput.prototype['tweak'] = undefined; +var _default = TokenizeOutput; exports["default"] = _default; /***/ }), -/***/ 1646: +/***/ 49572: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103020,7 +180270,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(39123)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103031,23 +180283,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SignPKICertWithClassicKey model module. - * @module model/SignPKICertWithClassicKey - * @version 3.3.16 + * The TokenizerInfo model module. + * @module model/TokenizerInfo + * @version 3.6.3 */ -var SignPKICertWithClassicKey = /*#__PURE__*/function () { +var TokenizerInfo = /*#__PURE__*/function () { /** - * Constructs a new SignPKICertWithClassicKey. - * @alias module:model/SignPKICertWithClassicKey - * @param displayId {String} The name of the key to use in the sign PKI Cert process - * @param signingMethod {String} SigningMethod - * @param ttl {Number} he requested Time To Live for the certificate, in seconds - * @param version {Number} classic key version + * Constructs a new TokenizerInfo. + * @alias module:model/TokenizerInfo */ - function SignPKICertWithClassicKey(displayId, signingMethod, ttl, version) { - _classCallCheck(this, SignPKICertWithClassicKey); + function TokenizerInfo() { + _classCallCheck(this, TokenizerInfo); - SignPKICertWithClassicKey.initialize(this, displayId, signingMethod, ttl, version); + TokenizerInfo.initialize(this); } /** * Initializes the fields of this object. @@ -103056,102 +180304,25 @@ var SignPKICertWithClassicKey = /*#__PURE__*/function () { */ - _createClass(SignPKICertWithClassicKey, null, [{ + _createClass(TokenizerInfo, null, [{ key: "initialize", - value: function initialize(obj, displayId, signingMethod, ttl, version) { - obj['display-id'] = displayId; - obj['signing-method'] = signingMethod; - obj['ttl'] = ttl; - obj['version'] = version; - } + value: function initialize(obj) {} /** - * Constructs a SignPKICertWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a TokenizerInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKICertWithClassicKey} obj Optional instance to populate. - * @return {module:model/SignPKICertWithClassicKey} The populated SignPKICertWithClassicKey instance. + * @param {module:model/TokenizerInfo} obj Optional instance to populate. + * @return {module:model/TokenizerInfo} The populated TokenizerInfo instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SignPKICertWithClassicKey(); - - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('dns-names')) { - obj['dns-names'] = _ApiClient["default"].convertToType(data['dns-names'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-usage')) { - obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); - } - - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); - } - - if (data.hasOwnProperty('organizational-units')) { - obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); - } - - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); - } - - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); - } - - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); - } - - if (data.hasOwnProperty('public-key-pem-data')) { - obj['public-key-pem-data'] = _ApiClient["default"].convertToType(data['public-key-pem-data'], 'String'); - } - - if (data.hasOwnProperty('signing-method')) { - obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); - } - - if (data.hasOwnProperty('street-address')) { - obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); - } + obj = obj || new TokenizerInfo(); - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('vaultless_tokenizer_info')) { + obj['vaultless_tokenizer_info'] = _VaultlessTokenizerInfo["default"].constructFromObject(data['vaultless_tokenizer_info']); } } @@ -103159,131 +180330,20 @@ var SignPKICertWithClassicKey = /*#__PURE__*/function () { } }]); - return SignPKICertWithClassicKey; + return TokenizerInfo; }(); /** - * The common name to be included in the PKI certificate - * @member {String} common-name - */ - - -SignPKICertWithClassicKey.prototype['common-name'] = undefined; -/** - * A comma-separated list of the country that will be set in the issued certificate - * @member {String} country - */ - -SignPKICertWithClassicKey.prototype['country'] = undefined; -/** - * The name of the key to use in the sign PKI Cert process - * @member {String} display-id - */ - -SignPKICertWithClassicKey.prototype['display-id'] = undefined; -/** - * DNS Names to be included in the PKI certificate (in a comma-delimited list) - * @member {String} dns-names - */ - -SignPKICertWithClassicKey.prototype['dns-names'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SignPKICertWithClassicKey.prototype['json'] = false; -/** - * key-usage - * @member {String} key-usage - * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' - */ - -SignPKICertWithClassicKey.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; -/** - * A comma-separated list of the locality that will be set in the issued certificate - * @member {String} locality - */ - -SignPKICertWithClassicKey.prototype['locality'] = undefined; -/** - * A comma-separated list of organizational units (OU) that will be set in the issued certificate - * @member {String} organizational-units - */ - -SignPKICertWithClassicKey.prototype['organizational-units'] = undefined; -/** - * A comma-separated list of organizations (O) that will be set in the issued certificate - * @member {String} organizations - */ - -SignPKICertWithClassicKey.prototype['organizations'] = undefined; -/** - * A comma-separated list of the postal code that will be set in the issued certificate - * @member {String} postal-code - */ - -SignPKICertWithClassicKey.prototype['postal-code'] = undefined; -/** - * A comma-separated list of the province that will be set in the issued certificate - * @member {String} province - */ - -SignPKICertWithClassicKey.prototype['province'] = undefined; -/** - * PublicKey using for signing in a PEM format. - * @member {String} public-key-pem-data - */ - -SignPKICertWithClassicKey.prototype['public-key-pem-data'] = undefined; -/** - * SigningMethod - * @member {String} signing-method - */ - -SignPKICertWithClassicKey.prototype['signing-method'] = undefined; -/** - * A comma-separated list of the street address that will be set in the issued certificate - * @member {String} street-address - */ - -SignPKICertWithClassicKey.prototype['street-address'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SignPKICertWithClassicKey.prototype['token'] = undefined; -/** - * he requested Time To Live for the certificate, in seconds - * @member {Number} ttl - */ - -SignPKICertWithClassicKey.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SignPKICertWithClassicKey.prototype['uid-token'] = undefined; -/** - * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list) - * @member {String} uri-sans + * @member {module:model/VaultlessTokenizerInfo} vaultless_tokenizer_info */ -SignPKICertWithClassicKey.prototype['uri-sans'] = undefined; -/** - * classic key version - * @member {Number} version - */ -SignPKICertWithClassicKey.prototype['version'] = undefined; -var _default = SignPKICertWithClassicKey; +TokenizerInfo.prototype['vaultless_tokenizer_info'] = undefined; +var _default = TokenizerInfo; exports["default"] = _default; /***/ }), -/***/ 69298: +/***/ 58338: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103294,7 +180354,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103305,19 +180365,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SmInfo model module. - * @module model/SmInfo - * @version 3.3.16 + * The UIDTokenDetails model module. + * @module model/UIDTokenDetails + * @version 3.6.3 */ -var SmInfo = /*#__PURE__*/function () { +var UIDTokenDetails = /*#__PURE__*/function () { /** - * Constructs a new SmInfo. - * @alias module:model/SmInfo + * Constructs a new UIDTokenDetails. + * @alias module:model/UIDTokenDetails */ - function SmInfo() { - _classCallCheck(this, SmInfo); + function UIDTokenDetails() { + _classCallCheck(this, UIDTokenDetails); - SmInfo.initialize(this); + UIDTokenDetails.initialize(this); } /** * Initializes the fields of this object. @@ -103326,29 +180386,63 @@ var SmInfo = /*#__PURE__*/function () { */ - _createClass(SmInfo, null, [{ + _createClass(UIDTokenDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SmInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a UIDTokenDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SmInfo} obj Optional instance to populate. - * @return {module:model/SmInfo} The populated SmInfo instance. + * @param {module:model/UIDTokenDetails} obj Optional instance to populate. + * @return {module:model/UIDTokenDetails} The populated UIDTokenDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SmInfo(); + obj = obj || new UIDTokenDetails(); - if (data.hasOwnProperty('sla')) { - obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); + if (data.hasOwnProperty('children')) { + obj['children'] = _ApiClient["default"].convertToType(data['children'], { + 'String': UIDTokenDetails + }); } - if (data.hasOwnProperty('tier')) { - obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('deny_inheritance')) { + obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); + } + + if (data.hasOwnProperty('deny_rotate')) { + obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('depth')) { + obj['depth'] = _ApiClient["default"].convertToType(data['depth'], 'Number'); + } + + if (data.hasOwnProperty('expired_date')) { + obj['expired_date'] = _ApiClient["default"].convertToType(data['expired_date'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('last_rotate')) { + obj['last_rotate'] = _ApiClient["default"].convertToType(data['last_rotate'], 'String'); + } + + if (data.hasOwnProperty('revoked')) { + obj['revoked'] = _ApiClient["default"].convertToType(data['revoked'], 'Boolean'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); } } @@ -103356,26 +180450,65 @@ var SmInfo = /*#__PURE__*/function () { } }]); - return SmInfo; + return UIDTokenDetails; }(); /** - * @member {String} sla + * @member {Object.} children */ -SmInfo.prototype['sla'] = undefined; +UIDTokenDetails.prototype['children'] = undefined; /** - * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources - * @member {String} tier + * @member {String} comment */ -SmInfo.prototype['tier'] = undefined; -var _default = SmInfo; +UIDTokenDetails.prototype['comment'] = undefined; +/** + * @member {Boolean} deny_inheritance + */ + +UIDTokenDetails.prototype['deny_inheritance'] = undefined; +/** + * @member {Boolean} deny_rotate + */ + +UIDTokenDetails.prototype['deny_rotate'] = undefined; +/** + * @member {Number} depth + */ + +UIDTokenDetails.prototype['depth'] = undefined; +/** + * @member {String} expired_date + */ + +UIDTokenDetails.prototype['expired_date'] = undefined; +/** + * @member {String} id + */ + +UIDTokenDetails.prototype['id'] = undefined; +/** + * @member {String} last_rotate + */ + +UIDTokenDetails.prototype['last_rotate'] = undefined; +/** + * @member {Boolean} revoked + */ + +UIDTokenDetails.prototype['revoked'] = undefined; +/** + * @member {Number} ttl + */ + +UIDTokenDetails.prototype['ttl'] = undefined; +var _default = UIDTokenDetails; exports["default"] = _default; /***/ }), -/***/ 92130: +/***/ 88720: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103386,7 +180519,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103397,19 +180530,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SplunkLogForwardingConfig model module. - * @module model/SplunkLogForwardingConfig - * @version 3.3.16 + * The UidCreateChildToken model module. + * @module model/UidCreateChildToken + * @version 3.6.3 */ -var SplunkLogForwardingConfig = /*#__PURE__*/function () { +var UidCreateChildToken = /*#__PURE__*/function () { /** - * Constructs a new SplunkLogForwardingConfig. - * @alias module:model/SplunkLogForwardingConfig + * Constructs a new UidCreateChildToken. + * uidCreateChildToken is a command that creates a new child token using Akeyless Universal Identity. + * @alias module:model/UidCreateChildToken */ - function SplunkLogForwardingConfig() { - _classCallCheck(this, SplunkLogForwardingConfig); + function UidCreateChildToken() { + _classCallCheck(this, UidCreateChildToken); - SplunkLogForwardingConfig.initialize(this); + UidCreateChildToken.initialize(this); } /** * Initializes the fields of this object. @@ -103418,49 +180552,61 @@ var SplunkLogForwardingConfig = /*#__PURE__*/function () { */ - _createClass(SplunkLogForwardingConfig, null, [{ + _createClass(UidCreateChildToken, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SplunkLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidCreateChildToken from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SplunkLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/SplunkLogForwardingConfig} The populated SplunkLogForwardingConfig instance. + * @param {module:model/UidCreateChildToken} obj Optional instance to populate. + * @return {module:model/UidCreateChildToken} The populated UidCreateChildToken instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SplunkLogForwardingConfig(); + obj = obj || new UidCreateChildToken(); - if (data.hasOwnProperty('splunk_enable_tls')) { - obj['splunk_enable_tls'] = _ApiClient["default"].convertToType(data['splunk_enable_tls'], 'Boolean'); + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); } - if (data.hasOwnProperty('splunk_index')) { - obj['splunk_index'] = _ApiClient["default"].convertToType(data['splunk_index'], 'String'); + if (data.hasOwnProperty('child-deny-inheritance')) { + obj['child-deny-inheritance'] = _ApiClient["default"].convertToType(data['child-deny-inheritance'], 'Boolean'); } - if (data.hasOwnProperty('splunk_source')) { - obj['splunk_source'] = _ApiClient["default"].convertToType(data['splunk_source'], 'String'); + if (data.hasOwnProperty('child-deny-rotate')) { + obj['child-deny-rotate'] = _ApiClient["default"].convertToType(data['child-deny-rotate'], 'Boolean'); } - if (data.hasOwnProperty('splunk_sourcetype')) { - obj['splunk_sourcetype'] = _ApiClient["default"].convertToType(data['splunk_sourcetype'], 'String'); + if (data.hasOwnProperty('child-ttl')) { + obj['child-ttl'] = _ApiClient["default"].convertToType(data['child-ttl'], 'Number'); } - if (data.hasOwnProperty('splunk_tls_certificate')) { - obj['splunk_tls_certificate'] = _ApiClient["default"].convertToType(data['splunk_tls_certificate'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('splunk_token')) { - obj['splunk_token'] = _ApiClient["default"].convertToType(data['splunk_token'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('splunk_url')) { - obj['splunk_url'] = _ApiClient["default"].convertToType(data['splunk_url'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('uid-token-id')) { + obj['uid-token-id'] = _ApiClient["default"].convertToType(data['uid-token-id'], 'String'); } } @@ -103468,50 +180614,76 @@ var SplunkLogForwardingConfig = /*#__PURE__*/function () { } }]); - return SplunkLogForwardingConfig; + return UidCreateChildToken; }(); /** - * @member {Boolean} splunk_enable_tls + * The universal identity auth method name, required only when uid-token is not provided + * @member {String} auth-method-name */ -SplunkLogForwardingConfig.prototype['splunk_enable_tls'] = undefined; +UidCreateChildToken.prototype['auth-method-name'] = undefined; /** - * @member {String} splunk_index + * Deny from new child to create their own children + * @member {Boolean} child-deny-inheritance */ -SplunkLogForwardingConfig.prototype['splunk_index'] = undefined; +UidCreateChildToken.prototype['child-deny-inheritance'] = undefined; /** - * @member {String} splunk_source + * Deny from new child to rotate + * @member {Boolean} child-deny-rotate */ -SplunkLogForwardingConfig.prototype['splunk_source'] = undefined; +UidCreateChildToken.prototype['child-deny-rotate'] = undefined; /** - * @member {String} splunk_sourcetype + * New child token ttl + * @member {Number} child-ttl */ -SplunkLogForwardingConfig.prototype['splunk_sourcetype'] = undefined; +UidCreateChildToken.prototype['child-ttl'] = undefined; /** - * @member {String} splunk_tls_certificate + * Deprecated - use description + * @member {String} comment */ -SplunkLogForwardingConfig.prototype['splunk_tls_certificate'] = undefined; +UidCreateChildToken.prototype['comment'] = undefined; /** - * @member {String} splunk_token + * Description of the object + * @member {String} description */ -SplunkLogForwardingConfig.prototype['splunk_token'] = undefined; +UidCreateChildToken.prototype['description'] = undefined; /** - * @member {String} splunk_url + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SplunkLogForwardingConfig.prototype['splunk_url'] = undefined; -var _default = SplunkLogForwardingConfig; +UidCreateChildToken.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UidCreateChildToken.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UidCreateChildToken.prototype['uid-token'] = undefined; +/** + * The ID of the uid-token, required only when uid-token is not provided + * @member {String} uid-token-id + */ + +UidCreateChildToken.prototype['uid-token-id'] = undefined; +var _default = UidCreateChildToken; exports["default"] = _default; /***/ }), -/***/ 85251: +/***/ 23961: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103522,7 +180694,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103533,19 +180705,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SraInfo model module. - * @module model/SraInfo - * @version 3.3.16 + * The UidCreateChildTokenOutput model module. + * @module model/UidCreateChildTokenOutput + * @version 3.6.3 */ -var SraInfo = /*#__PURE__*/function () { +var UidCreateChildTokenOutput = /*#__PURE__*/function () { /** - * Constructs a new SraInfo. - * @alias module:model/SraInfo + * Constructs a new UidCreateChildTokenOutput. + * @alias module:model/UidCreateChildTokenOutput */ - function SraInfo() { - _classCallCheck(this, SraInfo); + function UidCreateChildTokenOutput() { + _classCallCheck(this, UidCreateChildTokenOutput); - SraInfo.initialize(this); + UidCreateChildTokenOutput.initialize(this); } /** * Initializes the fields of this object. @@ -103554,33 +180726,25 @@ var SraInfo = /*#__PURE__*/function () { */ - _createClass(SraInfo, null, [{ + _createClass(UidCreateChildTokenOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SraInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidCreateChildTokenOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SraInfo} obj Optional instance to populate. - * @return {module:model/SraInfo} The populated SraInfo instance. + * @param {module:model/UidCreateChildTokenOutput} obj Optional instance to populate. + * @return {module:model/UidCreateChildTokenOutput} The populated UidCreateChildTokenOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SraInfo(); - - if (data.hasOwnProperty('sla')) { - obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); - } - - if (data.hasOwnProperty('tier')) { - obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); - } + obj = obj || new UidCreateChildTokenOutput(); - if (data.hasOwnProperty('user_type')) { - obj['user_type'] = _ApiClient["default"].convertToType(data['user_type'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } } @@ -103588,31 +180752,20 @@ var SraInfo = /*#__PURE__*/function () { } }]); - return SraInfo; + return UidCreateChildTokenOutput; }(); /** - * @member {String} sla - */ - - -SraInfo.prototype['sla'] = undefined; -/** - * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources - * @member {String} tier + * @member {String} token */ -SraInfo.prototype['tier'] = undefined; -/** - * @member {String} user_type - */ -SraInfo.prototype['user_type'] = undefined; -var _default = SraInfo; +UidCreateChildTokenOutput.prototype['token'] = undefined; +var _default = UidCreateChildTokenOutput; exports["default"] = _default; /***/ }), -/***/ 98373: +/***/ 66215: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103623,7 +180776,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103634,20 +180787,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The StaticCredsAuth model module. - * @module model/StaticCredsAuth - * @version 3.3.16 + * The UidGenerateToken model module. + * @module model/UidGenerateToken + * @version 3.6.3 */ -var StaticCredsAuth = /*#__PURE__*/function () { +var UidGenerateToken = /*#__PURE__*/function () { /** - * Constructs a new StaticCredsAuth. - * staticCredsAuth is a command that creates a temporary access profile using the provided static credentials. - * @alias module:model/StaticCredsAuth + * Constructs a new UidGenerateToken. + * uidGenerateToken is a command that generates a new token using Akeyless Universal Identity. + * @alias module:model/UidGenerateToken + * @param authMethodName {String} The universal identity auth method name */ - function StaticCredsAuth() { - _classCallCheck(this, StaticCredsAuth); + function UidGenerateToken(authMethodName) { + _classCallCheck(this, UidGenerateToken); - StaticCredsAuth.initialize(this); + UidGenerateToken.initialize(this, authMethodName); } /** * Initializes the fields of this object. @@ -103656,37 +180810,39 @@ var StaticCredsAuth = /*#__PURE__*/function () { */ - _createClass(StaticCredsAuth, null, [{ + _createClass(UidGenerateToken, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, authMethodName) { + obj['auth-method-name'] = authMethodName; + } /** - * Constructs a StaticCredsAuth from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidGenerateToken from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StaticCredsAuth} obj Optional instance to populate. - * @return {module:model/StaticCredsAuth} The populated StaticCredsAuth instance. + * @param {module:model/UidGenerateToken} obj Optional instance to populate. + * @return {module:model/UidGenerateToken} The populated UidGenerateToken instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new StaticCredsAuth(); + obj = obj || new UidGenerateToken(); - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); } - if (data.hasOwnProperty('admin-email')) { - obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('creds')) { - obj['creds'] = _ApiClient["default"].convertToType(data['creds'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -103694,40 +180850,40 @@ var StaticCredsAuth = /*#__PURE__*/function () { } }]); - return StaticCredsAuth; + return UidGenerateToken; }(); /** - * Akeyless JWT token - * @member {String} access-id + * The universal identity auth method name + * @member {String} auth-method-name */ -StaticCredsAuth.prototype['access-id'] = undefined; +UidGenerateToken.prototype['auth-method-name'] = undefined; /** - * Akeyless JWT token - * @member {String} admin-email + * Set output format to JSON + * @member {Boolean} json + * @default false */ -StaticCredsAuth.prototype['admin-email'] = undefined; +UidGenerateToken.prototype['json'] = false; /** - * Akeyless JWT token - * @member {String} creds + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -StaticCredsAuth.prototype['creds'] = undefined; +UidGenerateToken.prototype['token'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -StaticCredsAuth.prototype['json'] = false; -var _default = StaticCredsAuth; +UidGenerateToken.prototype['uid-token'] = undefined; +var _default = UidGenerateToken; exports["default"] = _default; /***/ }), -/***/ 80669: +/***/ 13598: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103738,7 +180894,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103749,19 +180905,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The StaticCredsAuthOutput model module. - * @module model/StaticCredsAuthOutput - * @version 3.3.16 + * The UidGenerateTokenOutput model module. + * @module model/UidGenerateTokenOutput + * @version 3.6.3 */ -var StaticCredsAuthOutput = /*#__PURE__*/function () { +var UidGenerateTokenOutput = /*#__PURE__*/function () { /** - * Constructs a new StaticCredsAuthOutput. - * @alias module:model/StaticCredsAuthOutput + * Constructs a new UidGenerateTokenOutput. + * @alias module:model/UidGenerateTokenOutput */ - function StaticCredsAuthOutput() { - _classCallCheck(this, StaticCredsAuthOutput); + function UidGenerateTokenOutput() { + _classCallCheck(this, UidGenerateTokenOutput); - StaticCredsAuthOutput.initialize(this); + UidGenerateTokenOutput.initialize(this); } /** * Initializes the fields of this object. @@ -103770,22 +180926,22 @@ var StaticCredsAuthOutput = /*#__PURE__*/function () { */ - _createClass(StaticCredsAuthOutput, null, [{ + _createClass(UidGenerateTokenOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a StaticCredsAuthOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidGenerateTokenOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StaticCredsAuthOutput} obj Optional instance to populate. - * @return {module:model/StaticCredsAuthOutput} The populated StaticCredsAuthOutput instance. + * @param {module:model/UidGenerateTokenOutput} obj Optional instance to populate. + * @return {module:model/UidGenerateTokenOutput} The populated UidGenerateTokenOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new StaticCredsAuthOutput(); + obj = obj || new UidGenerateTokenOutput(); if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); @@ -103796,20 +180952,20 @@ var StaticCredsAuthOutput = /*#__PURE__*/function () { } }]); - return StaticCredsAuthOutput; + return UidGenerateTokenOutput; }(); /** * @member {String} token */ -StaticCredsAuthOutput.prototype['token'] = undefined; -var _default = StaticCredsAuthOutput; +UidGenerateTokenOutput.prototype['token'] = undefined; +var _default = UidGenerateTokenOutput; exports["default"] = _default; /***/ }), -/***/ 31083: +/***/ 68336: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103820,7 +180976,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103831,19 +180987,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The StaticSecretDetailsInfo model module. - * @module model/StaticSecretDetailsInfo - * @version 3.3.16 + * The UidListChildren model module. + * @module model/UidListChildren + * @version 3.6.3 */ -var StaticSecretDetailsInfo = /*#__PURE__*/function () { +var UidListChildren = /*#__PURE__*/function () { /** - * Constructs a new StaticSecretDetailsInfo. - * @alias module:model/StaticSecretDetailsInfo + * Constructs a new UidListChildren. + * uidListChildren is a command that lists child token ids of Akeyless Universal Identity. + * @alias module:model/UidListChildren */ - function StaticSecretDetailsInfo() { - _classCallCheck(this, StaticSecretDetailsInfo); + function UidListChildren() { + _classCallCheck(this, UidListChildren); - StaticSecretDetailsInfo.initialize(this); + UidListChildren.initialize(this); } /** * Initializes the fields of this object. @@ -103852,33 +181009,37 @@ var StaticSecretDetailsInfo = /*#__PURE__*/function () { */ - _createClass(StaticSecretDetailsInfo, null, [{ + _createClass(UidListChildren, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a StaticSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidListChildren from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StaticSecretDetailsInfo} obj Optional instance to populate. - * @return {module:model/StaticSecretDetailsInfo} The populated StaticSecretDetailsInfo instance. + * @param {module:model/UidListChildren} obj Optional instance to populate. + * @return {module:model/UidListChildren} The populated UidListChildren instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new StaticSecretDetailsInfo(); + obj = obj || new UidListChildren(); - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); } - if (data.hasOwnProperty('website')) { - obj['website'] = _ApiClient["default"].convertToType(data['website'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('websites')) { - obj['websites'] = _ApiClient["default"].convertToType(data['websites'], ['String']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -103886,31 +181047,40 @@ var StaticSecretDetailsInfo = /*#__PURE__*/function () { } }]); - return StaticSecretDetailsInfo; + return UidListChildren; }(); /** - * @member {String} username + * The universal identity auth method name, required only when uid-token is not provided + * @member {String} auth-method-name */ -StaticSecretDetailsInfo.prototype['username'] = undefined; +UidListChildren.prototype['auth-method-name'] = undefined; /** - * deprecated - * @member {String} website + * Set output format to JSON + * @member {Boolean} json + * @default false */ -StaticSecretDetailsInfo.prototype['website'] = undefined; +UidListChildren.prototype['json'] = false; /** - * @member {Array.} websites + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -StaticSecretDetailsInfo.prototype['websites'] = undefined; -var _default = StaticSecretDetailsInfo; +UidListChildren.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UidListChildren.prototype['uid-token'] = undefined; +var _default = UidListChildren; exports["default"] = _default; /***/ }), -/***/ 51441: +/***/ 82180: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -103921,7 +181091,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -103932,19 +181102,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SumologicLogForwardingConfig model module. - * @module model/SumologicLogForwardingConfig - * @version 3.3.16 + * The UidRevokeToken model module. + * @module model/UidRevokeToken + * @version 3.6.3 */ -var SumologicLogForwardingConfig = /*#__PURE__*/function () { +var UidRevokeToken = /*#__PURE__*/function () { /** - * Constructs a new SumologicLogForwardingConfig. - * @alias module:model/SumologicLogForwardingConfig + * Constructs a new UidRevokeToken. + * @alias module:model/UidRevokeToken + * @param revokeToken {String} the universal identity token/token-id to revoke + * @param revokeType {String} revokeSelf/revokeAll (delete only this token/this token and his children) */ - function SumologicLogForwardingConfig() { - _classCallCheck(this, SumologicLogForwardingConfig); + function UidRevokeToken(revokeToken, revokeType) { + _classCallCheck(this, UidRevokeToken); - SumologicLogForwardingConfig.initialize(this); + UidRevokeToken.initialize(this, revokeToken, revokeType); } /** * Initializes the fields of this object. @@ -103953,33 +181125,48 @@ var SumologicLogForwardingConfig = /*#__PURE__*/function () { */ - _createClass(SumologicLogForwardingConfig, null, [{ + _createClass(UidRevokeToken, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, revokeToken, revokeType) { + obj['revoke-token'] = revokeToken; + obj['revoke-type'] = revokeType; + } /** - * Constructs a SumologicLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidRevokeToken from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SumologicLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/SumologicLogForwardingConfig} The populated SumologicLogForwardingConfig instance. + * @param {module:model/UidRevokeToken} obj Optional instance to populate. + * @return {module:model/UidRevokeToken} The populated UidRevokeToken instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SumologicLogForwardingConfig(); + obj = obj || new UidRevokeToken(); - if (data.hasOwnProperty('sumo_logic_endpoint')) { - obj['sumo_logic_endpoint'] = _ApiClient["default"].convertToType(data['sumo_logic_endpoint'], 'String'); + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); } - if (data.hasOwnProperty('sumo_logic_host')) { - obj['sumo_logic_host'] = _ApiClient["default"].convertToType(data['sumo_logic_host'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('sumo_logic_tags')) { - obj['sumo_logic_tags'] = _ApiClient["default"].convertToType(data['sumo_logic_tags'], 'String'); + if (data.hasOwnProperty('revoke-token')) { + obj['revoke-token'] = _ApiClient["default"].convertToType(data['revoke-token'], 'String'); + } + + if (data.hasOwnProperty('revoke-type')) { + obj['revoke-type'] = _ApiClient["default"].convertToType(data['revoke-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -103987,30 +181174,52 @@ var SumologicLogForwardingConfig = /*#__PURE__*/function () { } }]); - return SumologicLogForwardingConfig; + return UidRevokeToken; }(); /** - * @member {String} sumo_logic_endpoint + * The universal identity auth method name + * @member {String} auth-method-name */ -SumologicLogForwardingConfig.prototype['sumo_logic_endpoint'] = undefined; +UidRevokeToken.prototype['auth-method-name'] = undefined; /** - * @member {String} sumo_logic_host + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SumologicLogForwardingConfig.prototype['sumo_logic_host'] = undefined; +UidRevokeToken.prototype['json'] = false; /** - * @member {String} sumo_logic_tags + * the universal identity token/token-id to revoke + * @member {String} revoke-token */ -SumologicLogForwardingConfig.prototype['sumo_logic_tags'] = undefined; -var _default = SumologicLogForwardingConfig; +UidRevokeToken.prototype['revoke-token'] = undefined; +/** + * revokeSelf/revokeAll (delete only this token/this token and his children) + * @member {String} revoke-type + */ + +UidRevokeToken.prototype['revoke-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UidRevokeToken.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UidRevokeToken.prototype['uid-token'] = undefined; +var _default = UidRevokeToken; exports["default"] = _default; /***/ }), -/***/ 40374: +/***/ 59143: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -104021,7 +181230,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -104032,19 +181241,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SyslogLogForwardingConfig model module. - * @module model/SyslogLogForwardingConfig - * @version 3.3.16 + * The UidRotateToken model module. + * @module model/UidRotateToken + * @version 3.6.3 */ -var SyslogLogForwardingConfig = /*#__PURE__*/function () { +var UidRotateToken = /*#__PURE__*/function () { /** - * Constructs a new SyslogLogForwardingConfig. - * @alias module:model/SyslogLogForwardingConfig + * Constructs a new UidRotateToken. + * uidRotateToken is a command that rotates an Akeyless Universal Identity token. + * @alias module:model/UidRotateToken */ - function SyslogLogForwardingConfig() { - _classCallCheck(this, SyslogLogForwardingConfig); + function UidRotateToken() { + _classCallCheck(this, UidRotateToken); - SyslogLogForwardingConfig.initialize(this); + UidRotateToken.initialize(this); } /** * Initializes the fields of this object. @@ -104053,45 +181263,41 @@ var SyslogLogForwardingConfig = /*#__PURE__*/function () { */ - _createClass(SyslogLogForwardingConfig, null, [{ + _createClass(UidRotateToken, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SyslogLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidRotateToken from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SyslogLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/SyslogLogForwardingConfig} The populated SyslogLogForwardingConfig instance. + * @param {module:model/UidRotateToken} obj Optional instance to populate. + * @return {module:model/UidRotateToken} The populated UidRotateToken instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SyslogLogForwardingConfig(); - - if (data.hasOwnProperty('syslog_enable_tls')) { - obj['syslog_enable_tls'] = _ApiClient["default"].convertToType(data['syslog_enable_tls'], 'Boolean'); - } + obj = obj || new UidRotateToken(); - if (data.hasOwnProperty('syslog_formatter')) { - obj['syslog_formatter'] = _ApiClient["default"].convertToType(data['syslog_formatter'], 'String'); + if (data.hasOwnProperty('fork')) { + obj['fork'] = _ApiClient["default"].convertToType(data['fork'], 'Boolean'); } - if (data.hasOwnProperty('syslog_host')) { - obj['syslog_host'] = _ApiClient["default"].convertToType(data['syslog_host'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('syslog_network')) { - obj['syslog_network'] = _ApiClient["default"].convertToType(data['syslog_network'], 'String'); + if (data.hasOwnProperty('send-manual-ack-token')) { + obj['send-manual-ack-token'] = _ApiClient["default"].convertToType(data['send-manual-ack-token'], 'String'); } - if (data.hasOwnProperty('syslog_target_tag')) { - obj['syslog_target_tag'] = _ApiClient["default"].convertToType(data['syslog_target_tag'], 'String'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('syslog_tls_certificate')) { - obj['syslog_tls_certificate'] = _ApiClient["default"].convertToType(data['syslog_tls_certificate'], 'String'); + if (data.hasOwnProperty('with-manual-ack')) { + obj['with-manual-ack'] = _ApiClient["default"].convertToType(data['with-manual-ack'], 'Boolean'); } } @@ -104099,45 +181305,46 @@ var SyslogLogForwardingConfig = /*#__PURE__*/function () { } }]); - return SyslogLogForwardingConfig; + return UidRotateToken; }(); /** - * @member {Boolean} syslog_enable_tls + * Create a new child token with default parameters + * @member {Boolean} fork */ -SyslogLogForwardingConfig.prototype['syslog_enable_tls'] = undefined; -/** - * @member {String} syslog_formatter - */ - -SyslogLogForwardingConfig.prototype['syslog_formatter'] = undefined; +UidRotateToken.prototype['fork'] = undefined; /** - * @member {String} syslog_host + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SyslogLogForwardingConfig.prototype['syslog_host'] = undefined; +UidRotateToken.prototype['json'] = false; /** - * @member {String} syslog_network + * The new rotated token to send manual ack for (with uid-token=the-orig-token) + * @member {String} send-manual-ack-token */ -SyslogLogForwardingConfig.prototype['syslog_network'] = undefined; +UidRotateToken.prototype['send-manual-ack-token'] = undefined; /** - * @member {String} syslog_target_tag + * The Universal identity token + * @member {String} uid-token */ -SyslogLogForwardingConfig.prototype['syslog_target_tag'] = undefined; +UidRotateToken.prototype['uid-token'] = undefined; /** - * @member {String} syslog_tls_certificate + * Disable automatic ack + * @member {Boolean} with-manual-ack */ -SyslogLogForwardingConfig.prototype['syslog_tls_certificate'] = undefined; -var _default = SyslogLogForwardingConfig; +UidRotateToken.prototype['with-manual-ack'] = undefined; +var _default = UidRotateToken; exports["default"] = _default; /***/ }), -/***/ 44937: +/***/ 21214: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -104148,7 +181355,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -104159,19 +181366,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SystemAccessCredentialsReplyObj model module. - * @module model/SystemAccessCredentialsReplyObj - * @version 3.3.16 + * The UidRotateTokenOutput model module. + * @module model/UidRotateTokenOutput + * @version 3.6.3 */ -var SystemAccessCredentialsReplyObj = /*#__PURE__*/function () { +var UidRotateTokenOutput = /*#__PURE__*/function () { /** - * Constructs a new SystemAccessCredentialsReplyObj. - * @alias module:model/SystemAccessCredentialsReplyObj + * Constructs a new UidRotateTokenOutput. + * @alias module:model/UidRotateTokenOutput */ - function SystemAccessCredentialsReplyObj() { - _classCallCheck(this, SystemAccessCredentialsReplyObj); + function UidRotateTokenOutput() { + _classCallCheck(this, UidRotateTokenOutput); - SystemAccessCredentialsReplyObj.initialize(this); + UidRotateTokenOutput.initialize(this); } /** * Initializes the fields of this object. @@ -104180,96 +181387,46 @@ var SystemAccessCredentialsReplyObj = /*#__PURE__*/function () { */ - _createClass(SystemAccessCredentialsReplyObj, null, [{ + _createClass(UidRotateTokenOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SystemAccessCredentialsReplyObj from a plain JavaScript object, optionally creating a new instance. + * Constructs a UidRotateTokenOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SystemAccessCredentialsReplyObj} obj Optional instance to populate. - * @return {module:model/SystemAccessCredentialsReplyObj} The populated SystemAccessCredentialsReplyObj instance. + * @param {module:model/UidRotateTokenOutput} obj Optional instance to populate. + * @return {module:model/UidRotateTokenOutput} The populated UidRotateTokenOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SystemAccessCredentialsReplyObj(); - - if (data.hasOwnProperty('auth_creds')) { - obj['auth_creds'] = _ApiClient["default"].convertToType(data['auth_creds'], 'String'); - } - - if (data.hasOwnProperty('expiry')) { - obj['expiry'] = _ApiClient["default"].convertToType(data['expiry'], 'Number'); - } - - if (data.hasOwnProperty('kfm_creds')) { - obj['kfm_creds'] = _ApiClient["default"].convertToType(data['kfm_creds'], 'String'); - } - - if (data.hasOwnProperty('required_mfa')) { - obj['required_mfa'] = _ApiClient["default"].convertToType(data['required_mfa'], 'String'); - } + obj = obj || new UidRotateTokenOutput(); if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - - if (data.hasOwnProperty('uam_creds')) { - obj['uam_creds'] = _ApiClient["default"].convertToType(data['uam_creds'], 'String'); - } } return obj; } }]); - return SystemAccessCredentialsReplyObj; + return UidRotateTokenOutput; }(); /** - * Temporary credentials for accessing Auth - * @member {String} auth_creds - */ - - -SystemAccessCredentialsReplyObj.prototype['auth_creds'] = undefined; -/** - * Credentials expiration date - * @member {Number} expiry - */ - -SystemAccessCredentialsReplyObj.prototype['expiry'] = undefined; -/** - * Temporary credentials for accessing the KFMs instances - * @member {String} kfm_creds - */ - -SystemAccessCredentialsReplyObj.prototype['kfm_creds'] = undefined; -/** - * @member {String} required_mfa - */ - -SystemAccessCredentialsReplyObj.prototype['required_mfa'] = undefined; -/** - * Credentials tmp token * @member {String} token */ -SystemAccessCredentialsReplyObj.prototype['token'] = undefined; -/** - * Temporary credentials for accessing the UAM service - * @member {String} uam_creds - */ -SystemAccessCredentialsReplyObj.prototype['uam_creds'] = undefined; -var _default = SystemAccessCredentialsReplyObj; +UidRotateTokenOutput.prototype['token'] = undefined; +var _default = UidRotateTokenOutput; exports["default"] = _default; /***/ }), -/***/ 6123: +/***/ 53608: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -104280,7 +181437,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -104291,20 +181448,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The SystemAccessCredsSettings model module. - * @module model/SystemAccessCredsSettings - * @version 3.3.16 + * The Unconfigure model module. + * @module model/Unconfigure + * @version 3.6.3 */ -var SystemAccessCredsSettings = /*#__PURE__*/function () { +var Unconfigure = /*#__PURE__*/function () { /** - * Constructs a new SystemAccessCredsSettings. - * SystemAccessCredsSettings describes system access credential settings for account by minutes - * @alias module:model/SystemAccessCredsSettings + * Constructs a new Unconfigure. + * @alias module:model/Unconfigure */ - function SystemAccessCredsSettings() { - _classCallCheck(this, SystemAccessCredsSettings); + function Unconfigure() { + _classCallCheck(this, Unconfigure); - SystemAccessCredsSettings.initialize(this); + Unconfigure.initialize(this); } /** * Initializes the fields of this object. @@ -104313,33 +181469,29 @@ var SystemAccessCredsSettings = /*#__PURE__*/function () { */ - _createClass(SystemAccessCredsSettings, null, [{ + _createClass(Unconfigure, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a SystemAccessCredsSettings from a plain JavaScript object, optionally creating a new instance. + * Constructs a Unconfigure from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SystemAccessCredsSettings} obj Optional instance to populate. - * @return {module:model/SystemAccessCredsSettings} The populated SystemAccessCredsSettings instance. + * @param {module:model/Unconfigure} obj Optional instance to populate. + * @return {module:model/Unconfigure} The populated Unconfigure instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new SystemAccessCredsSettings(); - - if (data.hasOwnProperty('jwt_ttl_default')) { - obj['jwt_ttl_default'] = _ApiClient["default"].convertToType(data['jwt_ttl_default'], 'Number'); - } + obj = obj || new Unconfigure(); - if (data.hasOwnProperty('jwt_ttl_maximum')) { - obj['jwt_ttl_maximum'] = _ApiClient["default"].convertToType(data['jwt_ttl_maximum'], 'Number'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('jwt_ttl_minimum')) { - obj['jwt_ttl_minimum'] = _ApiClient["default"].convertToType(data['jwt_ttl_minimum'], 'Number'); + if (data.hasOwnProperty('profile')) { + obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); } } @@ -104347,30 +181499,29 @@ var SystemAccessCredsSettings = /*#__PURE__*/function () { } }]); - return SystemAccessCredsSettings; + return Unconfigure; }(); /** - * @member {Number} jwt_ttl_default + * Set output format to JSON + * @member {Boolean} json + * @default false */ -SystemAccessCredsSettings.prototype['jwt_ttl_default'] = undefined; -/** - * @member {Number} jwt_ttl_maximum - */ - -SystemAccessCredsSettings.prototype['jwt_ttl_maximum'] = undefined; +Unconfigure.prototype['json'] = false; /** - * @member {Number} jwt_ttl_minimum + * The profile name to be removed + * @member {String} profile + * @default 'default' */ -SystemAccessCredsSettings.prototype['jwt_ttl_minimum'] = undefined; -var _default = SystemAccessCredsSettings; +Unconfigure.prototype['profile'] = 'default'; +var _default = Unconfigure; exports["default"] = _default; /***/ }), -/***/ 91561: +/***/ 15941: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -104381,11 +181532,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(97973)); - -var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(45419)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -104396,19 +181543,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Target model module. - * @module model/Target - * @version 3.3.16 + * The UniversalIdentityAccessRules model module. + * @module model/UniversalIdentityAccessRules + * @version 3.6.3 */ -var Target = /*#__PURE__*/function () { +var UniversalIdentityAccessRules = /*#__PURE__*/function () { /** - * Constructs a new Target. - * @alias module:model/Target + * Constructs a new UniversalIdentityAccessRules. + * @alias module:model/UniversalIdentityAccessRules */ - function Target() { - _classCallCheck(this, Target); + function UniversalIdentityAccessRules() { + _classCallCheck(this, UniversalIdentityAccessRules); - Target.initialize(this); + UniversalIdentityAccessRules.initialize(this); } /** * Initializes the fields of this object. @@ -104417,99 +181564,33 @@ var Target = /*#__PURE__*/function () { */ - _createClass(Target, null, [{ + _createClass(UniversalIdentityAccessRules, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a Target from a plain JavaScript object, optionally creating a new instance. + * Constructs a UniversalIdentityAccessRules from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Target} obj Optional instance to populate. - * @return {module:model/Target} The populated Target instance. + * @param {module:model/UniversalIdentityAccessRules} obj Optional instance to populate. + * @return {module:model/UniversalIdentityAccessRules} The populated UniversalIdentityAccessRules instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Target(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('access_request_status')) { - obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); - } - - if (data.hasOwnProperty('attributes')) { - obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { - 'String': Object - }); - } - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('credentials_less')) { - obj['credentials_less'] = _ApiClient["default"].convertToType(data['credentials_less'], 'Boolean'); - } - - if (data.hasOwnProperty('is_access_request_enabled')) { - obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); - } - - if (data.hasOwnProperty('last_version')) { - obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); - } - - if (data.hasOwnProperty('target_details')) { - obj['target_details'] = _ApiClient["default"].convertToType(data['target_details'], 'String'); - } - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - - if (data.hasOwnProperty('target_items_assoc')) { - obj['target_items_assoc'] = _ApiClient["default"].convertToType(data['target_items_assoc'], [_TargetItemAssociation["default"]]); - } - - if (data.hasOwnProperty('target_name')) { - obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); - } - - if (data.hasOwnProperty('target_sub_type')) { - obj['target_sub_type'] = _ApiClient["default"].convertToType(data['target_sub_type'], 'String'); - } + obj = obj || new UniversalIdentityAccessRules(); - if (data.hasOwnProperty('target_type')) { - obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); + if (data.hasOwnProperty('deny_inheritance')) { + obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); } - if (data.hasOwnProperty('target_versions')) { - obj['target_versions'] = _ApiClient["default"].convertToType(data['target_versions'], [_ItemVersion["default"]]); + if (data.hasOwnProperty('deny_rotate')) { + obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); } - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); } } @@ -104517,111 +181598,132 @@ var Target = /*#__PURE__*/function () { } }]); - return Target; + return UniversalIdentityAccessRules; }(); /** - * @member {Date} access_date + * @member {Boolean} deny_inheritance */ -Target.prototype['access_date'] = undefined; +UniversalIdentityAccessRules.prototype['deny_inheritance'] = undefined; /** - * @member {String} access_request_status + * @member {Boolean} deny_rotate */ -Target.prototype['access_request_status'] = undefined; +UniversalIdentityAccessRules.prototype['deny_rotate'] = undefined; /** - * this is not \"omitempty\" since an empty value causes no update while an empty map will clear the attributes - * @member {Object.} attributes + * @member {Number} ttl */ -Target.prototype['attributes'] = undefined; -/** - * @member {Array.} client_permissions - */ +UniversalIdentityAccessRules.prototype['ttl'] = undefined; +var _default = UniversalIdentityAccessRules; +exports["default"] = _default; -Target.prototype['client_permissions'] = undefined; -/** - * @member {String} comment - */ +/***/ }), -Target.prototype['comment'] = undefined; -/** - * @member {Date} creation_date - */ +/***/ 50166: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -Target.prototype['creation_date'] = undefined; -/** - * @member {Boolean} credentials_less - */ +"use strict"; -Target.prototype['credentials_less'] = undefined; -/** - * @member {Boolean} is_access_request_enabled - */ -Target.prototype['is_access_request_enabled'] = undefined; -/** - * @member {Number} last_version - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -Target.prototype['last_version'] = undefined; -/** - * @member {Date} modification_date - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -Target.prototype['modification_date'] = undefined; -/** - * @member {String} protection_key_name - */ +var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(58338)); -Target.prototype['protection_key_name'] = undefined; -/** - * @member {String} target_details - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -Target.prototype['target_details'] = undefined; /** - * @member {Number} target_id + * The UniversalIdentityDetails model module. + * @module model/UniversalIdentityDetails + * @version 3.6.3 */ +var UniversalIdentityDetails = /*#__PURE__*/function () { + /** + * Constructs a new UniversalIdentityDetails. + * @alias module:model/UniversalIdentityDetails + */ + function UniversalIdentityDetails() { + _classCallCheck(this, UniversalIdentityDetails); + + UniversalIdentityDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UniversalIdentityDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UniversalIdentityDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UniversalIdentityDetails} obj Optional instance to populate. + * @return {module:model/UniversalIdentityDetails} The populated UniversalIdentityDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UniversalIdentityDetails(); + + if (data.hasOwnProperty('max_depth')) { + obj['max_depth'] = _ApiClient["default"].convertToType(data['max_depth'], 'Number'); + } + + if (data.hasOwnProperty('number_of_tokens')) { + obj['number_of_tokens'] = _ApiClient["default"].convertToType(data['number_of_tokens'], 'Number'); + } -Target.prototype['target_id'] = undefined; -/** - * @member {Array.} target_items_assoc - */ + if (data.hasOwnProperty('root')) { + obj['root'] = _UIDTokenDetails["default"].constructFromObject(data['root']); + } + } -Target.prototype['target_items_assoc'] = undefined; -/** - * @member {String} target_name - */ + return obj; + } + }]); -Target.prototype['target_name'] = undefined; + return UniversalIdentityDetails; +}(); /** - * @member {String} target_sub_type + * @member {Number} max_depth */ -Target.prototype['target_sub_type'] = undefined; -/** - * @member {String} target_type - */ -Target.prototype['target_type'] = undefined; +UniversalIdentityDetails.prototype['max_depth'] = undefined; /** - * @member {Array.} target_versions + * @member {Number} number_of_tokens */ -Target.prototype['target_versions'] = undefined; +UniversalIdentityDetails.prototype['number_of_tokens'] = undefined; /** - * @member {Boolean} with_customer_fragment + * @member {module:model/UIDTokenDetails} root */ -Target.prototype['with_customer_fragment'] = undefined; -var _default = Target; +UniversalIdentityDetails.prototype['root'] = undefined; +var _default = UniversalIdentityDetails; exports["default"] = _default; /***/ }), -/***/ 45419: +/***/ 67084: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -104632,7 +181734,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -104643,20 +181745,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The TargetItemAssociation model module. - * @module model/TargetItemAssociation - * @version 3.3.16 + * The Update model module. + * @module model/Update + * @version 3.6.3 */ -var TargetItemAssociation = /*#__PURE__*/function () { +var Update = /*#__PURE__*/function () { /** - * Constructs a new TargetItemAssociation. - * TargetItemAssociation includes details of an association between a target and an item. - * @alias module:model/TargetItemAssociation + * Constructs a new Update. + * @alias module:model/Update */ - function TargetItemAssociation() { - _classCallCheck(this, TargetItemAssociation); + function Update() { + _classCallCheck(this, Update); - TargetItemAssociation.initialize(this); + Update.initialize(this); } /** * Initializes the fields of this object. @@ -104665,47 +181766,37 @@ var TargetItemAssociation = /*#__PURE__*/function () { */ - _createClass(TargetItemAssociation, null, [{ + _createClass(Update, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a TargetItemAssociation from a plain JavaScript object, optionally creating a new instance. + * Constructs a Update from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TargetItemAssociation} obj Optional instance to populate. - * @return {module:model/TargetItemAssociation} The populated TargetItemAssociation instance. + * @param {module:model/Update} obj Optional instance to populate. + * @return {module:model/Update} The populated Update instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new TargetItemAssociation(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - - if (data.hasOwnProperty('attributes')) { - obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { - 'String': 'String' - }); - } + obj = obj || new Update(); - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); + if (data.hasOwnProperty('artifact-repository')) { + obj['artifact-repository'] = _ApiClient["default"].convertToType(data['artifact-repository'], 'String'); } - if (data.hasOwnProperty('item_name')) { - obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); + if (data.hasOwnProperty('show-changelog')) { + obj['show-changelog'] = _ApiClient["default"].convertToType(data['show-changelog'], 'Boolean'); } - if (data.hasOwnProperty('relationship')) { - obj['relationship'] = _ApiClient["default"].convertToType(data['relationship'], 'String'); + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String'); } } @@ -104713,45 +181804,41 @@ var TargetItemAssociation = /*#__PURE__*/function () { } }]); - return TargetItemAssociation; + return Update; }(); /** - * @member {String} assoc_id - */ - - -TargetItemAssociation.prototype['assoc_id'] = undefined; -/** - * @member {Object.} attributes + * Alternative CLI repository url. e.g. https://artifacts.site2.akeyless.io + * @member {String} artifact-repository */ -TargetItemAssociation.prototype['attributes'] = undefined; -/** - * @member {Number} cluster_id - */ -TargetItemAssociation.prototype['cluster_id'] = undefined; +Update.prototype['artifact-repository'] = undefined; /** - * @member {String} item_name + * Set output format to JSON + * @member {Boolean} json + * @default false */ -TargetItemAssociation.prototype['item_name'] = undefined; +Update.prototype['json'] = false; /** - * @member {String} item_type + * Show the changelog between the current version and the latest one and exit (update will not be performed) + * @member {Boolean} show-changelog */ -TargetItemAssociation.prototype['item_type'] = undefined; +Update.prototype['show-changelog'] = undefined; /** - * @member {String} relationship + * The CLI version + * @member {String} version + * @default 'latest' */ -TargetItemAssociation.prototype['relationship'] = undefined; -var _default = TargetItemAssociation; +Update.prototype['version'] = 'latest'; +var _default = Update; exports["default"] = _default; /***/ }), -/***/ 91938: +/***/ 99286: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -104762,7 +181849,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -104773,19 +181860,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The TargetItemVersion model module. - * @module model/TargetItemVersion - * @version 3.3.16 + * The UpdateAWSTarget model module. + * @module model/UpdateAWSTarget + * @version 3.6.3 */ -var TargetItemVersion = /*#__PURE__*/function () { +var UpdateAWSTarget = /*#__PURE__*/function () { /** - * Constructs a new TargetItemVersion. - * @alias module:model/TargetItemVersion + * Constructs a new UpdateAWSTarget. + * @alias module:model/UpdateAWSTarget + * @param accessKey {String} AWS secret access key + * @param accessKeyId {String} AWS access key ID + * @param name {String} Target name */ - function TargetItemVersion() { - _classCallCheck(this, TargetItemVersion); + function UpdateAWSTarget(accessKey, accessKeyId, name) { + _classCallCheck(this, UpdateAWSTarget); - TargetItemVersion.initialize(this); + UpdateAWSTarget.initialize(this, accessKey, accessKeyId, name); } /** * Initializes the fields of this object. @@ -104794,65 +181884,89 @@ var TargetItemVersion = /*#__PURE__*/function () { */ - _createClass(TargetItemVersion, null, [{ + _createClass(UpdateAWSTarget, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, accessKey, accessKeyId, name) { + obj['access-key'] = accessKey; + obj['access-key-id'] = accessKeyId; + obj['name'] = name; + } /** - * Constructs a TargetItemVersion from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAWSTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TargetItemVersion} obj Optional instance to populate. - * @return {module:model/TargetItemVersion} The populated TargetItemVersion instance. + * @param {module:model/UpdateAWSTarget} obj Optional instance to populate. + * @return {module:model/UpdateAWSTarget} The populated UpdateAWSTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new TargetItemVersion(); + obj = obj || new UpdateAWSTarget(); - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); } - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + if (data.hasOwnProperty('access-key-id')) { + obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); } - if (data.hasOwnProperty('customer_fragment_id')) { - obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('item_version_state')) { - obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('latest_version')) { - obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'Boolean'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('target_name')) { - obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('session-token')) { + obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); } } @@ -104860,71 +181974,113 @@ var TargetItemVersion = /*#__PURE__*/function () { } }]); - return TargetItemVersion; + return UpdateAWSTarget; }(); /** - * @member {Date} access_date + * AWS secret access key + * @member {String} access-key */ -TargetItemVersion.prototype['access_date'] = undefined; +UpdateAWSTarget.prototype['access-key'] = undefined; /** - * @member {Date} creation_date + * AWS access key ID + * @member {String} access-key-id */ -TargetItemVersion.prototype['creation_date'] = undefined; +UpdateAWSTarget.prototype['access-key-id'] = undefined; /** - * @member {String} customer_fragment_id + * Deprecated - use description + * @member {String} comment */ -TargetItemVersion.prototype['customer_fragment_id'] = undefined; +UpdateAWSTarget.prototype['comment'] = undefined; /** - * @member {Date} deletion_date + * Description of the object + * @member {String} description */ -TargetItemVersion.prototype['deletion_date'] = undefined; +UpdateAWSTarget.prototype['description'] = undefined; /** - * ItemState defines the different states an Item can be in - * @member {String} item_version_state + * Set output format to JSON + * @member {Boolean} json + * @default false */ -TargetItemVersion.prototype['item_version_state'] = undefined; +UpdateAWSTarget.prototype['json'] = false; /** - * @member {Boolean} latest_version + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -TargetItemVersion.prototype['latest_version'] = undefined; +UpdateAWSTarget.prototype['keep-prev-version'] = undefined; /** - * @member {Date} modification_date + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -TargetItemVersion.prototype['modification_date'] = undefined; +UpdateAWSTarget.prototype['key'] = undefined; /** - * @member {String} protection_key_name + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -TargetItemVersion.prototype['protection_key_name'] = undefined; +UpdateAWSTarget.prototype['max-versions'] = undefined; /** - * @member {String} target_name + * Target name + * @member {String} name */ -TargetItemVersion.prototype['target_name'] = undefined; +UpdateAWSTarget.prototype['name'] = undefined; /** - * @member {Number} version + * New target name + * @member {String} new-name */ -TargetItemVersion.prototype['version'] = undefined; +UpdateAWSTarget.prototype['new-name'] = undefined; /** - * @member {Boolean} with_customer_fragment + * AWS region + * @member {String} region + * @default 'us-east-2' */ -TargetItemVersion.prototype['with_customer_fragment'] = undefined; -var _default = TargetItemVersion; +UpdateAWSTarget.prototype['region'] = 'us-east-2'; +/** + * Required only for temporary security credentials retrieved using STS + * @member {String} session-token + */ + +UpdateAWSTarget.prototype['session-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateAWSTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAWSTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateAWSTarget.prototype['update-version'] = undefined; +/** + * Use the GW's Cloud IAM + * @member {Boolean} use-gw-cloud-identity + */ + +UpdateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateAWSTarget; exports["default"] = _default; /***/ }), -/***/ 12989: +/***/ 53070: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -104935,57 +182091,195 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateAWSTargetDetails model module. + * @module model/UpdateAWSTargetDetails + * @version 3.6.3 + */ +var UpdateAWSTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAWSTargetDetails. + * @alias module:model/UpdateAWSTargetDetails + * @param name {String} Target name + */ + function UpdateAWSTargetDetails(name) { + _classCallCheck(this, UpdateAWSTargetDetails); + + UpdateAWSTargetDetails.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateAWSTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateAWSTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAWSTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateAWSTargetDetails} The populated UpdateAWSTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAWSTargetDetails(); + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } + + if (data.hasOwnProperty('access-key-id')) { + obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } -var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(30193)); + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } -var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(70521)); + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } -var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(23491)); + if (data.hasOwnProperty('session-token')) { + obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + } -var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(79441)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(13649)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(31548)); + return obj; + } + }]); -var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(38807)); + return UpdateAWSTargetDetails; +}(); +/** + * The aws secret access key + * @member {String} access-key + */ -var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(98564)); -var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(68381)); +UpdateAWSTargetDetails.prototype['access-key'] = undefined; +/** + * The aws access key id + * @member {String} access-key-id + */ -var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(92431)); +UpdateAWSTargetDetails.prototype['access-key-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(13402)); +UpdateAWSTargetDetails.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(97168)); +UpdateAWSTargetDetails.prototype['keep-prev-version'] = undefined; +/** + * Target name + * @member {String} name + */ -var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(55349)); +UpdateAWSTargetDetails.prototype['name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ -var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(33671)); +UpdateAWSTargetDetails.prototype['new-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ -var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(5413)); +UpdateAWSTargetDetails.prototype['protection_key'] = undefined; +/** + * The aws region + * @member {String} region + * @default 'us-east-2' + */ -var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(33716)); +UpdateAWSTargetDetails.prototype['region'] = 'us-east-2'; +/** + * Required only for temporary security credentials retrieved via STS, otherwise it can be an empty string + * @member {String} session-token + */ -var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(63497)); +UpdateAWSTargetDetails.prototype['session-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(7200)); +UpdateAWSTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(87475)); +UpdateAWSTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateAWSTargetDetails; +exports["default"] = _default; -var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(39703)); +/***/ }), -var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(98197)); +/***/ 57356: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(95804)); +"use strict"; -var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(31501)); -var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(96350)); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(85153)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -104996,19 +182290,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The TargetTypeDetailsInput model module. - * @module model/TargetTypeDetailsInput - * @version 3.3.16 + * The UpdateAccountSettings model module. + * @module model/UpdateAccountSettings + * @version 3.6.3 */ -var TargetTypeDetailsInput = /*#__PURE__*/function () { +var UpdateAccountSettings = /*#__PURE__*/function () { /** - * Constructs a new TargetTypeDetailsInput. - * @alias module:model/TargetTypeDetailsInput + * Constructs a new UpdateAccountSettings. + * @alias module:model/UpdateAccountSettings */ - function TargetTypeDetailsInput() { - _classCallCheck(this, TargetTypeDetailsInput); + function UpdateAccountSettings() { + _classCallCheck(this, UpdateAccountSettings); - TargetTypeDetailsInput.initialize(this); + UpdateAccountSettings.initialize(this); } /** * Initializes the fields of this object. @@ -105017,121 +182311,157 @@ var TargetTypeDetailsInput = /*#__PURE__*/function () { */ - _createClass(TargetTypeDetailsInput, null, [{ + _createClass(UpdateAccountSettings, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a TargetTypeDetailsInput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAccountSettings from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TargetTypeDetailsInput} obj Optional instance to populate. - * @return {module:model/TargetTypeDetailsInput} The populated TargetTypeDetailsInput instance. + * @param {module:model/UpdateAccountSettings} obj Optional instance to populate. + * @return {module:model/UpdateAccountSettings} The populated UpdateAccountSettings instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new TargetTypeDetailsInput(); + obj = obj || new UpdateAccountSettings(); - if (data.hasOwnProperty('artifactory_target_details')) { - obj['artifactory_target_details'] = _ArtifactoryTargetDetails["default"].constructFromObject(data['artifactory_target_details']); + if (data.hasOwnProperty('address')) { + obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String'); } - if (data.hasOwnProperty('aws_target_details')) { - obj['aws_target_details'] = _AWSTargetDetails["default"].constructFromObject(data['aws_target_details']); + if (data.hasOwnProperty('city')) { + obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); } - if (data.hasOwnProperty('azure_target_details')) { - obj['azure_target_details'] = _AzureTargetDetails["default"].constructFromObject(data['azure_target_details']); + if (data.hasOwnProperty('company-name')) { + obj['company-name'] = _ApiClient["default"].convertToType(data['company-name'], 'String'); } - if (data.hasOwnProperty('chef_target_details')) { - obj['chef_target_details'] = _ChefTargetDetails["default"].constructFromObject(data['chef_target_details']); + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); } - if (data.hasOwnProperty('custom_target_details')) { - obj['custom_target_details'] = _CustomTargetDetails["default"].constructFromObject(data['custom_target_details']); + if (data.hasOwnProperty('default-key-name')) { + obj['default-key-name'] = _ApiClient["default"].convertToType(data['default-key-name'], 'String'); } - if (data.hasOwnProperty('db_target_details')) { - obj['db_target_details'] = _DbTargetDetails["default"].constructFromObject(data['db_target_details']); + if (data.hasOwnProperty('default-share-link-ttl-minutes')) { + obj['default-share-link-ttl-minutes'] = _ApiClient["default"].convertToType(data['default-share-link-ttl-minutes'], 'String'); } - if (data.hasOwnProperty('dockerhub_target_details')) { - obj['dockerhub_target_details'] = _DockerhubTargetDetails["default"].constructFromObject(data['dockerhub_target_details']); + if (data.hasOwnProperty('default-versioning')) { + obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'String'); } - if (data.hasOwnProperty('eks_target_details')) { - obj['eks_target_details'] = _EKSTargetDetails["default"].constructFromObject(data['eks_target_details']); + if (data.hasOwnProperty('dp-enable-classic-key-protection')) { + obj['dp-enable-classic-key-protection'] = _ApiClient["default"].convertToType(data['dp-enable-classic-key-protection'], 'String'); } - if (data.hasOwnProperty('gcp_target_details')) { - obj['gcp_target_details'] = _GcpTargetDetails["default"].constructFromObject(data['gcp_target_details']); + if (data.hasOwnProperty('dynamic-secret-max-ttl')) { + obj['dynamic-secret-max-ttl'] = _ApiClient["default"].convertToType(data['dynamic-secret-max-ttl'], 'Number'); } - if (data.hasOwnProperty('github_target_details')) { - obj['github_target_details'] = _GithubTargetDetails["default"].constructFromObject(data['github_target_details']); + if (data.hasOwnProperty('dynamic-secret-max-ttl-enable')) { + obj['dynamic-secret-max-ttl-enable'] = _ApiClient["default"].convertToType(data['dynamic-secret-max-ttl-enable'], 'String'); } - if (data.hasOwnProperty('gke_target_details')) { - obj['gke_target_details'] = _GKETargetDetails["default"].constructFromObject(data['gke_target_details']); + if (data.hasOwnProperty('force-new-versions')) { + obj['force-new-versions'] = _ApiClient["default"].convertToType(data['force-new-versions'], 'String'); } - if (data.hasOwnProperty('globalsign_atlas_target_details')) { - obj['globalsign_atlas_target_details'] = _GlobalSignAtlasTargetDetails["default"].constructFromObject(data['globalsign_atlas_target_details']); + if (data.hasOwnProperty('invalid-characters')) { + obj['invalid-characters'] = _ApiClient["default"].convertToType(data['invalid-characters'], 'String'); } - if (data.hasOwnProperty('globalsign_target_details')) { - obj['globalsign_target_details'] = _GlobalSignGCCTargetDetails["default"].constructFromObject(data['globalsign_target_details']); + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); } - if (data.hasOwnProperty('ldap_target_details')) { - obj['ldap_target_details'] = _LdapTargetDetails["default"].constructFromObject(data['ldap_target_details']); + if (data.hasOwnProperty('items-deletion-protection')) { + obj['items-deletion-protection'] = _ApiClient["default"].convertToType(data['items-deletion-protection'], 'String'); } - if (data.hasOwnProperty('linked_target_details')) { - obj['linked_target_details'] = _LinkedTargetDetails["default"].constructFromObject(data['linked_target_details']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('mongo_db_target_details')) { - obj['mongo_db_target_details'] = _MongoDBTargetDetails["default"].constructFromObject(data['mongo_db_target_details']); + if (data.hasOwnProperty('jwt-ttl-default')) { + obj['jwt-ttl-default'] = _ApiClient["default"].convertToType(data['jwt-ttl-default'], 'Number'); } - if (data.hasOwnProperty('native_k8s_target_details')) { - obj['native_k8s_target_details'] = _NativeK8sTargetDetails["default"].constructFromObject(data['native_k8s_target_details']); + if (data.hasOwnProperty('jwt-ttl-max')) { + obj['jwt-ttl-max'] = _ApiClient["default"].convertToType(data['jwt-ttl-max'], 'Number'); } - if (data.hasOwnProperty('ping_target_details')) { - obj['ping_target_details'] = _PingTargetDetails["default"].constructFromObject(data['ping_target_details']); + if (data.hasOwnProperty('jwt-ttl-min')) { + obj['jwt-ttl-min'] = _ApiClient["default"].convertToType(data['jwt-ttl-min'], 'Number'); } - if (data.hasOwnProperty('rabbit_mq_target_details')) { - obj['rabbit_mq_target_details'] = _RabbitMQTargetDetails["default"].constructFromObject(data['rabbit_mq_target_details']); + if (data.hasOwnProperty('lock-default-key')) { + obj['lock-default-key'] = _ApiClient["default"].convertToType(data['lock-default-key'], 'String'); } - if (data.hasOwnProperty('salesforce_target_details')) { - obj['salesforce_target_details'] = _SalesforceTargetDetails["default"].constructFromObject(data['salesforce_target_details']); + if (data.hasOwnProperty('max-rotation-interval')) { + obj['max-rotation-interval'] = _ApiClient["default"].convertToType(data['max-rotation-interval'], 'Number'); } - if (data.hasOwnProperty('ssh_target_details')) { - obj['ssh_target_details'] = _SSHTargetDetails["default"].constructFromObject(data['ssh_target_details']); + if (data.hasOwnProperty('max-rotation-interval-enable')) { + obj['max-rotation-interval-enable'] = _ApiClient["default"].convertToType(data['max-rotation-interval-enable'], 'String'); } - if (data.hasOwnProperty('venafi_target_details')) { - obj['venafi_target_details'] = _VenafiTargetDetails["default"].constructFromObject(data['venafi_target_details']); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('web_target_details')) { - obj['web_target_details'] = _WebTargetDetails["default"].constructFromObject(data['web_target_details']); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'Number'); } - if (data.hasOwnProperty('windows_target_details')) { - obj['windows_target_details'] = _WindowsTargetDetails["default"].constructFromObject(data['windows_target_details']); + if (data.hasOwnProperty('phone')) { + obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); } - if (data.hasOwnProperty('zerossl_target_details')) { - obj['zerossl_target_details'] = _ZeroSSLTargetDetails["default"].constructFromObject(data['zerossl_target_details']); + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('usage-event-enable')) { + obj['usage-event-enable'] = _ApiClient["default"].convertToType(data['usage-event-enable'], 'String'); + } + + if (data.hasOwnProperty('usage-event-interval')) { + obj['usage-event-interval'] = _ApiClient["default"].convertToType(data['usage-event-interval'], 'Number'); + } + + if (data.hasOwnProperty('usage-event-object-type')) { + obj['usage-event-object-type'] = _ApiClient["default"].convertToType(data['usage-event-object-type'], 'String'); + } + + if (data.hasOwnProperty('use-lower-letters')) { + obj['use-lower-letters'] = _ApiClient["default"].convertToType(data['use-lower-letters'], 'String'); + } + + if (data.hasOwnProperty('use-numbers')) { + obj['use-numbers'] = _ApiClient["default"].convertToType(data['use-numbers'], 'String'); + } + + if (data.hasOwnProperty('use-special-characters')) { + obj['use-special-characters'] = _ApiClient["default"].convertToType(data['use-special-characters'], 'String'); + } + + if (data.hasOwnProperty('use_capital-letters')) { + obj['use_capital-letters'] = _ApiClient["default"].convertToType(data['use_capital-letters'], 'String'); } } @@ -105139,140 +182469,221 @@ var TargetTypeDetailsInput = /*#__PURE__*/function () { } }]); - return TargetTypeDetailsInput; + return UpdateAccountSettings; }(); /** - * @member {module:model/ArtifactoryTargetDetails} artifactory_target_details + * Address + * @member {String} address */ -TargetTypeDetailsInput.prototype['artifactory_target_details'] = undefined; +UpdateAccountSettings.prototype['address'] = undefined; /** - * @member {module:model/AWSTargetDetails} aws_target_details + * City + * @member {String} city */ -TargetTypeDetailsInput.prototype['aws_target_details'] = undefined; +UpdateAccountSettings.prototype['city'] = undefined; /** - * @member {module:model/AzureTargetDetails} azure_target_details + * Company name + * @member {String} company-name */ -TargetTypeDetailsInput.prototype['azure_target_details'] = undefined; +UpdateAccountSettings.prototype['company-name'] = undefined; /** - * @member {module:model/ChefTargetDetails} chef_target_details + * Country + * @member {String} country */ -TargetTypeDetailsInput.prototype['chef_target_details'] = undefined; +UpdateAccountSettings.prototype['country'] = undefined; /** - * @member {module:model/CustomTargetDetails} custom_target_details + * Set the account default key based on the DFC key name. Use \"set-original-akeyless-default-key\" to revert to using the original default key of the account. + * @member {String} default-key-name */ -TargetTypeDetailsInput.prototype['custom_target_details'] = undefined; +UpdateAccountSettings.prototype['default-key-name'] = undefined; /** - * @member {module:model/DbTargetDetails} db_target_details + * Set the default ttl in minutes for sharing item number between 60 and 43200 + * @member {String} default-share-link-ttl-minutes */ -TargetTypeDetailsInput.prototype['db_target_details'] = undefined; +UpdateAccountSettings.prototype['default-share-link-ttl-minutes'] = undefined; /** - * @member {module:model/DockerhubTargetDetails} dockerhub_target_details + * If set to true, new versions is enabled by default + * @member {String} default-versioning */ -TargetTypeDetailsInput.prototype['dockerhub_target_details'] = undefined; +UpdateAccountSettings.prototype['default-versioning'] = undefined; /** - * @member {module:model/EKSTargetDetails} eks_target_details + * Set to update protection with classic keys state [true/false] + * @member {String} dp-enable-classic-key-protection */ -TargetTypeDetailsInput.prototype['eks_target_details'] = undefined; +UpdateAccountSettings.prototype['dp-enable-classic-key-protection'] = undefined; /** - * @member {module:model/GcpTargetDetails} gcp_target_details + * Set the maximum ttl for dynamic secrets + * @member {Number} dynamic-secret-max-ttl */ -TargetTypeDetailsInput.prototype['gcp_target_details'] = undefined; +UpdateAccountSettings.prototype['dynamic-secret-max-ttl'] = undefined; /** - * @member {module:model/GithubTargetDetails} github_target_details + * Set a maximum ttl for dynamic secrets [true/false] + * @member {String} dynamic-secret-max-ttl-enable */ -TargetTypeDetailsInput.prototype['github_target_details'] = undefined; +UpdateAccountSettings.prototype['dynamic-secret-max-ttl-enable'] = undefined; /** - * @member {module:model/GKETargetDetails} gke_target_details + * If set to true, new version will be created on update + * @member {String} force-new-versions */ -TargetTypeDetailsInput.prototype['gke_target_details'] = undefined; +UpdateAccountSettings.prototype['force-new-versions'] = undefined; /** - * @member {module:model/GlobalSignAtlasTargetDetails} globalsign_atlas_target_details + * Characters that cannot be used for items/targets/roles/auths/event_forwarder names. Empty string will enforce nothing. + * @member {String} invalid-characters + * @default 'notReceivedInvalidCharacter' */ -TargetTypeDetailsInput.prototype['globalsign_atlas_target_details'] = undefined; +UpdateAccountSettings.prototype['invalid-characters'] = 'notReceivedInvalidCharacter'; /** - * @member {module:model/GlobalSignGCCTargetDetails} globalsign_target_details + * VersionSettingsObjectType defines object types for account version settings + * @member {String} item-type */ -TargetTypeDetailsInput.prototype['globalsign_target_details'] = undefined; +UpdateAccountSettings.prototype['item-type'] = undefined; /** - * @member {module:model/LdapTargetDetails} ldap_target_details + * Set or unset the default behaviour of items deletion protection [true/false] + * @member {String} items-deletion-protection */ -TargetTypeDetailsInput.prototype['ldap_target_details'] = undefined; +UpdateAccountSettings.prototype['items-deletion-protection'] = undefined; /** - * @member {module:model/LinkedTargetDetails} linked_target_details + * Set output format to JSON + * @member {Boolean} json + * @default false */ -TargetTypeDetailsInput.prototype['linked_target_details'] = undefined; +UpdateAccountSettings.prototype['json'] = false; /** - * @member {module:model/MongoDBTargetDetails} mongo_db_target_details + * Default ttl + * @member {Number} jwt-ttl-default */ -TargetTypeDetailsInput.prototype['mongo_db_target_details'] = undefined; +UpdateAccountSettings.prototype['jwt-ttl-default'] = undefined; /** - * @member {module:model/NativeK8sTargetDetails} native_k8s_target_details + * Maximum ttl + * @member {Number} jwt-ttl-max */ -TargetTypeDetailsInput.prototype['native_k8s_target_details'] = undefined; +UpdateAccountSettings.prototype['jwt-ttl-max'] = undefined; /** - * @member {module:model/PingTargetDetails} ping_target_details + * Minimum ttl + * @member {Number} jwt-ttl-min */ -TargetTypeDetailsInput.prototype['ping_target_details'] = undefined; +UpdateAccountSettings.prototype['jwt-ttl-min'] = undefined; /** - * @member {module:model/RabbitMQTargetDetails} rabbit_mq_target_details + * Lock the account's default protection key, if set - users will not be able to use a different protection key, relevant only if default-key-name is configured [true/false] + * @member {String} lock-default-key */ -TargetTypeDetailsInput.prototype['rabbit_mq_target_details'] = undefined; +UpdateAccountSettings.prototype['lock-default-key'] = undefined; /** - * @member {module:model/SalesforceTargetDetails} salesforce_target_details + * Set the maximum rotation interval for rotated secrets auto rotation settings + * @member {Number} max-rotation-interval */ -TargetTypeDetailsInput.prototype['salesforce_target_details'] = undefined; +UpdateAccountSettings.prototype['max-rotation-interval'] = undefined; /** - * @member {module:model/SSHTargetDetails} ssh_target_details + * Set a maximum rotation interval for rotated secrets auto rotation settings [true/false] + * @member {String} max-rotation-interval-enable */ -TargetTypeDetailsInput.prototype['ssh_target_details'] = undefined; +UpdateAccountSettings.prototype['max-rotation-interval-enable'] = undefined; /** - * @member {module:model/VenafiTargetDetails} venafi_target_details + * Max versions + * @member {String} max-versions */ -TargetTypeDetailsInput.prototype['venafi_target_details'] = undefined; +UpdateAccountSettings.prototype['max-versions'] = undefined; /** - * @member {module:model/WebTargetDetails} web_target_details + * Password length between 5 - to 50 characters + * @member {Number} password-length */ -TargetTypeDetailsInput.prototype['web_target_details'] = undefined; +UpdateAccountSettings.prototype['password-length'] = undefined; /** - * @member {module:model/WindowsTargetDetails} windows_target_details + * Phone number + * @member {String} phone */ -TargetTypeDetailsInput.prototype['windows_target_details'] = undefined; +UpdateAccountSettings.prototype['phone'] = undefined; /** - * @member {module:model/ZeroSSLTargetDetails} zerossl_target_details + * Postal code + * @member {String} postal-code */ -TargetTypeDetailsInput.prototype['zerossl_target_details'] = undefined; -var _default = TargetTypeDetailsInput; +UpdateAccountSettings.prototype['postal-code'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateAccountSettings.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAccountSettings.prototype['uid-token'] = undefined; +/** + * Enable event for objects that have not been used or changed [true/false] + * @member {String} usage-event-enable + */ + +UpdateAccountSettings.prototype['usage-event-enable'] = undefined; +/** + * Interval by days for unused objects. Default and minimum interval is 90 days + * @member {Number} usage-event-interval + */ + +UpdateAccountSettings.prototype['usage-event-interval'] = undefined; +/** + * Usage event is supported for auth method or secrets-and-keys [auth/item] + * @member {String} usage-event-object-type + */ + +UpdateAccountSettings.prototype['usage-event-object-type'] = undefined; +/** + * Password must contain lower case letters [true/false] + * @member {String} use-lower-letters + */ + +UpdateAccountSettings.prototype['use-lower-letters'] = undefined; +/** + * Password must contain numbers [true/false] + * @member {String} use-numbers + */ + +UpdateAccountSettings.prototype['use-numbers'] = undefined; +/** + * Password must contain special characters [true/false] + * @member {String} use-special-characters + */ + +UpdateAccountSettings.prototype['use-special-characters'] = undefined; +/** + * Password must contain capital letters [true/false] + * @member {String} use_capital-letters + */ + +UpdateAccountSettings.prototype['use_capital-letters'] = undefined; +var _default = UpdateAccountSettings; exports["default"] = _default; /***/ }), -/***/ 52200: +/***/ 50125: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -105283,7 +182694,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -105294,19 +182705,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The TmpUserData model module. - * @module model/TmpUserData - * @version 3.3.16 + * The UpdateAccountSettingsOutput model module. + * @module model/UpdateAccountSettingsOutput + * @version 3.6.3 */ -var TmpUserData = /*#__PURE__*/function () { +var UpdateAccountSettingsOutput = /*#__PURE__*/function () { /** - * Constructs a new TmpUserData. - * @alias module:model/TmpUserData + * Constructs a new UpdateAccountSettingsOutput. + * @alias module:model/UpdateAccountSettingsOutput */ - function TmpUserData() { - _classCallCheck(this, TmpUserData); + function UpdateAccountSettingsOutput() { + _classCallCheck(this, UpdateAccountSettingsOutput); - TmpUserData.initialize(this); + UpdateAccountSettingsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -105315,51 +182726,25 @@ var TmpUserData = /*#__PURE__*/function () { */ - _createClass(TmpUserData, null, [{ + _createClass(UpdateAccountSettingsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a TmpUserData from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAccountSettingsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TmpUserData} obj Optional instance to populate. - * @return {module:model/TmpUserData} The populated TmpUserData instance. + * @param {module:model/UpdateAccountSettingsOutput} obj Optional instance to populate. + * @return {module:model/UpdateAccountSettingsOutput} The populated UpdateAccountSettingsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new TmpUserData(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('custom_ttl')) { - obj['custom_ttl'] = _ApiClient["default"].convertToType(data['custom_ttl'], 'Number'); - } - - if (data.hasOwnProperty('dynamic_secret_type')) { - obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } + obj = obj || new UpdateAccountSettingsOutput(); - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } } @@ -105367,50 +182752,20 @@ var TmpUserData = /*#__PURE__*/function () { } }]); - return TmpUserData; + return UpdateAccountSettingsOutput; }(); /** - * @member {String} access_id - */ - - -TmpUserData.prototype['access_id'] = undefined; -/** - * @member {Date} creation_date - */ - -TmpUserData.prototype['creation_date'] = undefined; -/** - * @member {Number} custom_ttl - */ - -TmpUserData.prototype['custom_ttl'] = undefined; -/** - * @member {String} dynamic_secret_type - */ - -TmpUserData.prototype['dynamic_secret_type'] = undefined; -/** - * @member {String} host - */ - -TmpUserData.prototype['host'] = undefined; -/** - * @member {String} id + * @member {Boolean} updated */ -TmpUserData.prototype['id'] = undefined; -/** - * @member {Object.>} sub_claims - */ -TmpUserData.prototype['sub_claims'] = undefined; -var _default = TmpUserData; +UpdateAccountSettingsOutput.prototype['updated'] = undefined; +var _default = UpdateAccountSettingsOutput; exports["default"] = _default; /***/ }), -/***/ 30037: +/***/ 13865: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -105421,7 +182776,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -105432,22 +182787,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Tokenize model module. - * @module model/Tokenize - * @version 3.3.16 + * The UpdateArtifactoryTarget model module. + * @module model/UpdateArtifactoryTarget + * @version 3.6.3 */ -var Tokenize = /*#__PURE__*/function () { +var UpdateArtifactoryTarget = /*#__PURE__*/function () { /** - * Constructs a new Tokenize. - * tokenize is a command that encrypts text with a tokenizer - * @alias module:model/Tokenize - * @param plaintext {String} Data to be encrypted - * @param tokenizerName {String} The name of the tokenizer to use in the encryption process + * Constructs a new UpdateArtifactoryTarget. + * @alias module:model/UpdateArtifactoryTarget + * @param artifactoryAdminName {String} Artifactory Admin Name + * @param artifactoryAdminPwd {String} Artifactory Admin password + * @param baseUrl {String} Base URL + * @param name {String} Target name */ - function Tokenize(plaintext, tokenizerName) { - _classCallCheck(this, Tokenize); + function UpdateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + _classCallCheck(this, UpdateArtifactoryTarget); - Tokenize.initialize(this, plaintext, tokenizerName); + UpdateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); } /** * Initializes the fields of this object. @@ -105456,101 +182812,183 @@ var Tokenize = /*#__PURE__*/function () { */ - _createClass(Tokenize, null, [{ + _createClass(UpdateArtifactoryTarget, null, [{ key: "initialize", - value: function initialize(obj, plaintext, tokenizerName) { - obj['plaintext'] = plaintext; - obj['tokenizer-name'] = tokenizerName; + value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + obj['artifactory-admin-name'] = artifactoryAdminName; + obj['artifactory-admin-pwd'] = artifactoryAdminPwd; + obj['base-url'] = baseUrl; + obj['name'] = name; } /** - * Constructs a Tokenize from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Tokenize} obj Optional instance to populate. - * @return {module:model/Tokenize} The populated Tokenize instance. + * @param {module:model/UpdateArtifactoryTarget} obj Optional instance to populate. + * @return {module:model/UpdateArtifactoryTarget} The populated UpdateArtifactoryTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Tokenize(); + obj = obj || new UpdateArtifactoryTarget(); + + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } + + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('tokenizer-name')) { - obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('tweak')) { - obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } } return obj; } }]); - return Tokenize; + return UpdateArtifactoryTarget; }(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ + + +UpdateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ + +UpdateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; +/** + * Base URL + * @member {String} base-url + */ + +UpdateArtifactoryTarget.prototype['base-url'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +UpdateArtifactoryTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +UpdateArtifactoryTarget.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ +UpdateArtifactoryTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -Tokenize.prototype['json'] = false; +UpdateArtifactoryTarget.prototype['keep-prev-version'] = undefined; /** - * Data to be encrypted - * @member {String} plaintext + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -Tokenize.prototype['plaintext'] = undefined; +UpdateArtifactoryTarget.prototype['key'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -Tokenize.prototype['token'] = undefined; +UpdateArtifactoryTarget.prototype['max-versions'] = undefined; /** - * The name of the tokenizer to use in the encryption process - * @member {String} tokenizer-name + * Target name + * @member {String} name */ -Tokenize.prototype['tokenizer-name'] = undefined; +UpdateArtifactoryTarget.prototype['name'] = undefined; /** - * Base64 encoded tweak for vaultless encryption - * @member {String} tweak + * New target name + * @member {String} new-name */ -Tokenize.prototype['tweak'] = undefined; +UpdateArtifactoryTarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateArtifactoryTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -Tokenize.prototype['uid-token'] = undefined; -var _default = Tokenize; +UpdateArtifactoryTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateArtifactoryTarget.prototype['update-version'] = undefined; +var _default = UpdateArtifactoryTarget; exports["default"] = _default; /***/ }), -/***/ 87380: +/***/ 28908: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -105561,7 +182999,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -105572,19 +183010,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The TokenizeOutput model module. - * @module model/TokenizeOutput - * @version 3.3.16 + * The UpdateArtifactoryTargetOutput model module. + * @module model/UpdateArtifactoryTargetOutput + * @version 3.6.3 */ -var TokenizeOutput = /*#__PURE__*/function () { +var UpdateArtifactoryTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new TokenizeOutput. - * @alias module:model/TokenizeOutput + * Constructs a new UpdateArtifactoryTargetOutput. + * @alias module:model/UpdateArtifactoryTargetOutput */ - function TokenizeOutput() { - _classCallCheck(this, TokenizeOutput); + function UpdateArtifactoryTargetOutput() { + _classCallCheck(this, UpdateArtifactoryTargetOutput); - TokenizeOutput.initialize(this); + UpdateArtifactoryTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -105593,29 +183031,25 @@ var TokenizeOutput = /*#__PURE__*/function () { */ - _createClass(TokenizeOutput, null, [{ + _createClass(UpdateArtifactoryTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a TokenizeOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TokenizeOutput} obj Optional instance to populate. - * @return {module:model/TokenizeOutput} The populated TokenizeOutput instance. + * @param {module:model/UpdateArtifactoryTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateArtifactoryTargetOutput} The populated UpdateArtifactoryTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new TokenizeOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } + obj = obj || new UpdateArtifactoryTargetOutput(); - if (data.hasOwnProperty('tweak')) { - obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } @@ -105623,25 +183057,20 @@ var TokenizeOutput = /*#__PURE__*/function () { } }]); - return TokenizeOutput; + return UpdateArtifactoryTargetOutput; }(); /** - * @member {String} result + * @member {Number} target_id */ -TokenizeOutput.prototype['result'] = undefined; -/** - * @member {String} tweak - */ - -TokenizeOutput.prototype['tweak'] = undefined; -var _default = TokenizeOutput; +UpdateArtifactoryTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateArtifactoryTargetOutput; exports["default"] = _default; /***/ }), -/***/ 68162: +/***/ 23141: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -105652,9 +183081,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(86598)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -105665,19 +183092,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The TokenizerInfo model module. - * @module model/TokenizerInfo - * @version 3.3.16 + * The UpdateAssoc model module. + * @module model/UpdateAssoc + * @version 3.6.3 */ -var TokenizerInfo = /*#__PURE__*/function () { +var UpdateAssoc = /*#__PURE__*/function () { /** - * Constructs a new TokenizerInfo. - * @alias module:model/TokenizerInfo + * Constructs a new UpdateAssoc. + * updateAssoc is a command that updates the sub-claims of an association between role and auth method. + * @alias module:model/UpdateAssoc + * @param assocId {String} The association id to be updated */ - function TokenizerInfo() { - _classCallCheck(this, TokenizerInfo); + function UpdateAssoc(assocId) { + _classCallCheck(this, UpdateAssoc); - TokenizerInfo.initialize(this); + UpdateAssoc.initialize(this, assocId); } /** * Initializes the fields of this object. @@ -105686,25 +183115,49 @@ var TokenizerInfo = /*#__PURE__*/function () { */ - _createClass(TokenizerInfo, null, [{ + _createClass(UpdateAssoc, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, assocId) { + obj['assoc-id'] = assocId; + } /** - * Constructs a TokenizerInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAssoc from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TokenizerInfo} obj Optional instance to populate. - * @return {module:model/TokenizerInfo} The populated TokenizerInfo instance. + * @param {module:model/UpdateAssoc} obj Optional instance to populate. + * @return {module:model/UpdateAssoc} The populated UpdateAssoc instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new TokenizerInfo(); + obj = obj || new UpdateAssoc(); - if (data.hasOwnProperty('vaultless_tokenizer_info')) { - obj['vaultless_tokenizer_info'] = _VaultlessTokenizerInfo["default"].constructFromObject(data['vaultless_tokenizer_info']); + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } + + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -105712,20 +183165,53 @@ var TokenizerInfo = /*#__PURE__*/function () { } }]); - return TokenizerInfo; + return UpdateAssoc; }(); /** - * @member {module:model/VaultlessTokenizerInfo} vaultless_tokenizer_info + * The association id to be updated + * @member {String} assoc-id */ -TokenizerInfo.prototype['vaultless_tokenizer_info'] = undefined; -var _default = TokenizerInfo; +UpdateAssoc.prototype['assoc-id'] = undefined; +/** + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' + */ + +UpdateAssoc.prototype['case-sensitive'] = 'true'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateAssoc.prototype['json'] = false; +/** + * key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +UpdateAssoc.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateAssoc.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAssoc.prototype['uid-token'] = undefined; +var _default = UpdateAssoc; exports["default"] = _default; /***/ }), -/***/ 44674: +/***/ 21883: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -105736,7 +183222,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -105747,19 +183233,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UIDTokenDetails model module. - * @module model/UIDTokenDetails - * @version 3.3.16 + * The UpdateAuthMethod model module. + * @module model/UpdateAuthMethod + * @version 3.6.3 */ -var UIDTokenDetails = /*#__PURE__*/function () { +var UpdateAuthMethod = /*#__PURE__*/function () { /** - * Constructs a new UIDTokenDetails. - * @alias module:model/UIDTokenDetails + * Constructs a new UpdateAuthMethod. + * @alias module:model/UpdateAuthMethod + * @param name {String} Auth Method name */ - function UIDTokenDetails() { - _classCallCheck(this, UIDTokenDetails); + function UpdateAuthMethod(name) { + _classCallCheck(this, UpdateAuthMethod); - UIDTokenDetails.initialize(this); + UpdateAuthMethod.initialize(this, name); } /** * Initializes the fields of this object. @@ -105768,63 +183255,71 @@ var UIDTokenDetails = /*#__PURE__*/function () { */ - _createClass(UIDTokenDetails, null, [{ + _createClass(UpdateAuthMethod, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a UIDTokenDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethod from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UIDTokenDetails} obj Optional instance to populate. - * @return {module:model/UIDTokenDetails} The populated UIDTokenDetails instance. + * @param {module:model/UpdateAuthMethod} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethod} The populated UpdateAuthMethod instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UIDTokenDetails(); + obj = obj || new UpdateAuthMethod(); - if (data.hasOwnProperty('children')) { - obj['children'] = _ApiClient["default"].convertToType(data['children'], { - 'String': UIDTokenDetails - }); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); } - if (data.hasOwnProperty('deny_inheritance')) { - obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('deny_rotate')) { - obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); } - if (data.hasOwnProperty('depth')) { - obj['depth'] = _ApiClient["default"].convertToType(data['depth'], 'Number'); + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); } - if (data.hasOwnProperty('expired_date')) { - obj['expired_date'] = _ApiClient["default"].convertToType(data['expired_date'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); } - if (data.hasOwnProperty('last_rotate')) { - obj['last_rotate'] = _ApiClient["default"].convertToType(data['last_rotate'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('revoked')) { - obj['revoked'] = _ApiClient["default"].convertToType(data['revoked'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -105832,65 +183327,90 @@ var UIDTokenDetails = /*#__PURE__*/function () { } }]); - return UIDTokenDetails; + return UpdateAuthMethod; }(); /** - * @member {Object.} children + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UIDTokenDetails.prototype['children'] = undefined; +UpdateAuthMethod.prototype['access-expires'] = 0; /** - * @member {String} comment + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -UIDTokenDetails.prototype['comment'] = undefined; +UpdateAuthMethod.prototype['bound-ips'] = undefined; /** - * @member {Boolean} deny_inheritance + * Auth Method description + * @member {String} description */ -UIDTokenDetails.prototype['deny_inheritance'] = undefined; +UpdateAuthMethod.prototype['description'] = undefined; /** - * @member {Boolean} deny_rotate + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims */ -UIDTokenDetails.prototype['deny_rotate'] = undefined; +UpdateAuthMethod.prototype['force-sub-claims'] = undefined; /** - * @member {Number} depth + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips */ -UIDTokenDetails.prototype['depth'] = undefined; +UpdateAuthMethod.prototype['gw-bound-ips'] = undefined; /** - * @member {String} expired_date + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UIDTokenDetails.prototype['expired_date'] = undefined; +UpdateAuthMethod.prototype['json'] = false; /** - * @member {String} id + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -UIDTokenDetails.prototype['id'] = undefined; +UpdateAuthMethod.prototype['jwt-ttl'] = 0; /** - * @member {String} last_rotate + * Auth Method name + * @member {String} name */ -UIDTokenDetails.prototype['last_rotate'] = undefined; +UpdateAuthMethod.prototype['name'] = undefined; /** - * @member {Boolean} revoked + * Auth Method new name + * @member {String} new-name */ -UIDTokenDetails.prototype['revoked'] = undefined; +UpdateAuthMethod.prototype['new-name'] = undefined; /** - * @member {Number} ttl + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type */ -UIDTokenDetails.prototype['ttl'] = undefined; -var _default = UIDTokenDetails; +UpdateAuthMethod.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAuthMethod.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethod; exports["default"] = _default; /***/ }), -/***/ 67488: +/***/ 37029: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -105901,7 +183421,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -105912,20 +183432,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidCreateChildToken model module. - * @module model/UidCreateChildToken - * @version 3.3.16 + * The UpdateAuthMethodAWSIAM model module. + * @module model/UpdateAuthMethodAWSIAM + * @version 3.6.3 */ -var UidCreateChildToken = /*#__PURE__*/function () { +var UpdateAuthMethodAWSIAM = /*#__PURE__*/function () { /** - * Constructs a new UidCreateChildToken. - * uidCreateChildToken is a command that creates a new child token using Akeyless Universal Identity. - * @alias module:model/UidCreateChildToken + * Constructs a new UpdateAuthMethodAWSIAM. + * updateAuthMethodAWSIAM is a command that updates a new Auth Method that will be able to authenticate using AWS IAM credentials. + * @alias module:model/UpdateAuthMethodAWSIAM + * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to + * @param name {String} Auth Method name */ - function UidCreateChildToken() { - _classCallCheck(this, UidCreateChildToken); + function UpdateAuthMethodAWSIAM(boundAwsAccountId, name) { + _classCallCheck(this, UpdateAuthMethodAWSIAM); - UidCreateChildToken.initialize(this); + UpdateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); } /** * Initializes the fields of this object. @@ -105934,51 +183456,98 @@ var UidCreateChildToken = /*#__PURE__*/function () { */ - _createClass(UidCreateChildToken, null, [{ + _createClass(UpdateAuthMethodAWSIAM, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, boundAwsAccountId, name) { + obj['bound-aws-account-id'] = boundAwsAccountId; + obj['name'] = name; + } /** - * Constructs a UidCreateChildToken from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidCreateChildToken} obj Optional instance to populate. - * @return {module:model/UidCreateChildToken} The populated UidCreateChildToken instance. + * @param {module:model/UpdateAuthMethodAWSIAM} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodAWSIAM} The populated UpdateAuthMethodAWSIAM instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidCreateChildToken(); + obj = obj || new UpdateAuthMethodAWSIAM(); - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); } - if (data.hasOwnProperty('child-deny-inheritance')) { - obj['child-deny-inheritance'] = _ApiClient["default"].convertToType(data['child-deny-inheritance'], 'Boolean'); + if (data.hasOwnProperty('bound-arn')) { + obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); } - if (data.hasOwnProperty('child-deny-rotate')) { - obj['child-deny-rotate'] = _ApiClient["default"].convertToType(data['child-deny-rotate'], 'Boolean'); + if (data.hasOwnProperty('bound-aws-account-id')) { + obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); } - if (data.hasOwnProperty('child-ttl')) { - obj['child-ttl'] = _ApiClient["default"].convertToType(data['child-ttl'], 'Number'); + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } + + if (data.hasOwnProperty('bound-role-id')) { + obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); + } + + if (data.hasOwnProperty('bound-role-name')) { + obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); + } + + if (data.hasOwnProperty('bound-user-id')) { + obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + } + + if (data.hasOwnProperty('bound-user-name')) { + obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('sts-url')) { + obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -105986,86 +183555,145 @@ var UidCreateChildToken = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('uid-token-id')) { - obj['uid-token-id'] = _ApiClient["default"].convertToType(data['uid-token-id'], 'String'); - } } return obj; } }]); - return UidCreateChildToken; + return UpdateAuthMethodAWSIAM; }(); /** - * The universal identity auth method name, required only when uid-token is not provided - * @member {String} auth-method-name + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UidCreateChildToken.prototype['auth-method-name'] = undefined; +UpdateAuthMethodAWSIAM.prototype['access-expires'] = 0; /** - * Deny from new child to create their own children - * @member {Boolean} child-deny-inheritance + * A list of full arns that the access is restricted to + * @member {Array.} bound-arn */ -UidCreateChildToken.prototype['child-deny-inheritance'] = undefined; +UpdateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; /** - * Deny from new child to rotate - * @member {Boolean} child-deny-rotate + * A list of AWS account-IDs that the access is restricted to + * @member {Array.} bound-aws-account-id */ -UidCreateChildToken.prototype['child-deny-rotate'] = undefined; +UpdateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; /** - * New child token ttl - * @member {Number} child-ttl + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -UidCreateChildToken.prototype['child-ttl'] = undefined; +UpdateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id */ -UidCreateChildToken.prototype['comment'] = undefined; +UpdateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; /** - * Description of the object + * A list of full role ids that the access is restricted to + * @member {Array.} bound-role-id + */ + +UpdateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; +/** + * A list of full role-name that the access is restricted to + * @member {Array.} bound-role-name + */ + +UpdateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; +/** + * A list of full user ids that the access is restricted to + * @member {Array.} bound-user-id + */ + +UpdateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; +/** + * A list of full user-name that the access is restricted to + * @member {Array.} bound-user-name + */ + +UpdateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; +/** + * Auth Method description * @member {String} description */ -UidCreateChildToken.prototype['description'] = undefined; +UpdateAuthMethodAWSIAM.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UidCreateChildToken.prototype['json'] = false; +UpdateAuthMethodAWSIAM.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodAWSIAM.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodAWSIAM.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodAWSIAM.prototype['product-type'] = undefined; +/** + * sts URL + * @member {String} sts-url + * @default 'https://sts.amazonaws.com' + */ + +UpdateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UidCreateChildToken.prototype['token'] = undefined; +UpdateAuthMethodAWSIAM.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UidCreateChildToken.prototype['uid-token'] = undefined; -/** - * The ID of the uid-token, required only when uid-token is not provided - * @member {String} uid-token-id - */ - -UidCreateChildToken.prototype['uid-token-id'] = undefined; -var _default = UidCreateChildToken; +UpdateAuthMethodAWSIAM.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodAWSIAM; exports["default"] = _default; /***/ }), -/***/ 99511: +/***/ 88049: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106076,7 +183704,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106087,19 +183715,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidCreateChildTokenOutput model module. - * @module model/UidCreateChildTokenOutput - * @version 3.3.16 + * The UpdateAuthMethodAzureAD model module. + * @module model/UpdateAuthMethodAzureAD + * @version 3.6.3 */ -var UidCreateChildTokenOutput = /*#__PURE__*/function () { +var UpdateAuthMethodAzureAD = /*#__PURE__*/function () { /** - * Constructs a new UidCreateChildTokenOutput. - * @alias module:model/UidCreateChildTokenOutput + * Constructs a new UpdateAuthMethodAzureAD. + * updateAuthMethodAzureAD is a command that updates a new auth method that will be able to authenticate using Azure Active Directory credentials. + * @alias module:model/UpdateAuthMethodAzureAD + * @param boundTenantId {String} The Azure tenant id that the access is restricted to + * @param name {String} Auth Method name */ - function UidCreateChildTokenOutput() { - _classCallCheck(this, UidCreateChildTokenOutput); + function UpdateAuthMethodAzureAD(boundTenantId, name) { + _classCallCheck(this, UpdateAuthMethodAzureAD); - UidCreateChildTokenOutput.initialize(this); + UpdateAuthMethodAzureAD.initialize(this, boundTenantId, name); } /** * Initializes the fields of this object. @@ -106108,46 +183739,286 @@ var UidCreateChildTokenOutput = /*#__PURE__*/function () { */ - _createClass(UidCreateChildTokenOutput, null, [{ + _createClass(UpdateAuthMethodAzureAD, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, boundTenantId, name) { + obj['bound-tenant-id'] = boundTenantId; + obj['name'] = name; + } /** - * Constructs a UidCreateChildTokenOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidCreateChildTokenOutput} obj Optional instance to populate. - * @return {module:model/UidCreateChildTokenOutput} The populated UidCreateChildTokenOutput instance. + * @param {module:model/UpdateAuthMethodAzureAD} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodAzureAD} The populated UpdateAuthMethodAzureAD instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidCreateChildTokenOutput(); + obj = obj || new UpdateAuthMethodAzureAD(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-group-id')) { + obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-providers')) { + obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-names')) { + obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-types')) { + obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); + } + + if (data.hasOwnProperty('bound-rg-id')) { + obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); + } + + if (data.hasOwnProperty('bound-spid')) { + obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); + } + + if (data.hasOwnProperty('bound-sub-id')) { + obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); + } + + if (data.hasOwnProperty('bound-tenant-id')) { + obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } return obj; } }]); - return UidCreateChildTokenOutput; + return UpdateAuthMethodAzureAD; }(); /** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +UpdateAuthMethodAzureAD.prototype['access-expires'] = 0; +/** + * Deprecated (Deprecated) The audience in the JWT + * @member {String} audience + * @default 'https://management.azure.com/' + */ + +UpdateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; +/** + * A list of group ids that the access is restricted to + * @member {Array.} bound-group-id + */ + +UpdateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodAzureAD.prototype['bound-ips'] = undefined; +/** + * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) + * @member {Array.} bound-providers + */ + +UpdateAuthMethodAzureAD.prototype['bound-providers'] = undefined; +/** + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id + */ + +UpdateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; +/** + * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). + * @member {Array.} bound-resource-names + */ + +UpdateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; +/** + * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) + * @member {Array.} bound-resource-types + */ + +UpdateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; +/** + * A list of resource groups that the access is restricted to + * @member {Array.} bound-rg-id + */ + +UpdateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; +/** + * A list of service principal IDs that the access is restricted to + * @member {Array.} bound-spid + */ + +UpdateAuthMethodAzureAD.prototype['bound-spid'] = undefined; +/** + * A list of subscription ids that the access is restricted to + * @member {Array.} bound-sub-id + */ + +UpdateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; +/** + * The Azure tenant id that the access is restricted to + * @member {String} bound-tenant-id + */ + +UpdateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodAzureAD.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + * @default 'https://sts.windows.net/---bound_tenant_id---' + */ + +UpdateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateAuthMethodAzureAD.prototype['json'] = false; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'https://login.microsoftonline.com/common/discovery/keys' + */ + +UpdateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodAzureAD.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodAzureAD.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodAzureAD.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) * @member {String} token */ +UpdateAuthMethodAzureAD.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -UidCreateChildTokenOutput.prototype['token'] = undefined; -var _default = UidCreateChildTokenOutput; +UpdateAuthMethodAzureAD.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodAzureAD; exports["default"] = _default; /***/ }), -/***/ 50272: +/***/ 13313: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106158,7 +184029,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106169,21 +184040,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidGenerateToken model module. - * @module model/UidGenerateToken - * @version 3.3.16 + * The UpdateAuthMethodCert model module. + * @module model/UpdateAuthMethodCert + * @version 3.6.3 */ -var UidGenerateToken = /*#__PURE__*/function () { +var UpdateAuthMethodCert = /*#__PURE__*/function () { /** - * Constructs a new UidGenerateToken. - * uidGenerateToken is a command that generates a new token using Akeyless Universal Identity. - * @alias module:model/UidGenerateToken - * @param authMethodName {String} The universal identity auth method name + * Constructs a new UpdateAuthMethodCert. + * updateAuthMethodCert is a command that updates a new auth method that will be able to authenticate using a client certificae + * @alias module:model/UpdateAuthMethodCert + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. */ - function UidGenerateToken(authMethodName) { - _classCallCheck(this, UidGenerateToken); + function UpdateAuthMethodCert(name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodCert); - UidGenerateToken.initialize(this, authMethodName); + UpdateAuthMethodCert.initialize(this, name, uniqueIdentifier); } /** * Initializes the fields of this object. @@ -106192,33 +184064,102 @@ var UidGenerateToken = /*#__PURE__*/function () { */ - _createClass(UidGenerateToken, null, [{ + _createClass(UpdateAuthMethodCert, null, [{ key: "initialize", - value: function initialize(obj, authMethodName) { - obj['auth-method-name'] = authMethodName; + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a UidGenerateToken from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidGenerateToken} obj Optional instance to populate. - * @return {module:model/UidGenerateToken} The populated UidGenerateToken instance. + * @param {module:model/UpdateAuthMethodCert} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodCert} The populated UpdateAuthMethodCert instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidGenerateToken(); + obj = obj || new UpdateAuthMethodCert(); - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('allowed-cors')) { + obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); + } + + if (data.hasOwnProperty('bound-common-names')) { + obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); + } + + if (data.hasOwnProperty('bound-dns-sans')) { + obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); + } + + if (data.hasOwnProperty('bound-email-sans')) { + obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); + } + + if (data.hasOwnProperty('bound-extensions')) { + obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-organizational-units')) { + obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); + } + + if (data.hasOwnProperty('bound-uri-sans')) { + obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); + } + + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('revoked-cert-ids')) { + obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -106226,46 +184167,160 @@ var UidGenerateToken = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } } return obj; } }]); - return UidGenerateToken; + return UpdateAuthMethodCert; }(); /** - * The universal identity auth method name - * @member {String} auth-method-name + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UidGenerateToken.prototype['auth-method-name'] = undefined; +UpdateAuthMethodCert.prototype['access-expires'] = 0; +/** + * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. + * @member {String} allowed-cors + */ + +UpdateAuthMethodCert.prototype['allowed-cors'] = undefined; +/** + * A list of names. At least one must exist in the Common Name. Supports globbing. + * @member {Array.} bound-common-names + */ + +UpdateAuthMethodCert.prototype['bound-common-names'] = undefined; +/** + * A list of DNS names. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-dns-sans + */ + +UpdateAuthMethodCert.prototype['bound-dns-sans'] = undefined; +/** + * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-email-sans + */ + +UpdateAuthMethodCert.prototype['bound-email-sans'] = undefined; +/** + * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". + * @member {Array.} bound-extensions + */ + +UpdateAuthMethodCert.prototype['bound-extensions'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodCert.prototype['bound-ips'] = undefined; +/** + * A list of Organizational Units names. At least one must exist in the OU field. + * @member {Array.} bound-organizational-units + */ + +UpdateAuthMethodCert.prototype['bound-organizational-units'] = undefined; +/** + * A list of URIs. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-uri-sans + */ + +UpdateAuthMethodCert.prototype['bound-uri-sans'] = undefined; +/** + * The certificate data in base64, if no file was provided + * @member {String} certificate-data + */ + +UpdateAuthMethodCert.prototype['certificate-data'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodCert.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodCert.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodCert.prototype['gw-bound-ips'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UidGenerateToken.prototype['json'] = false; +UpdateAuthMethodCert.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodCert.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodCert.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodCert.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodCert.prototype['product-type'] = undefined; +/** + * A list of revoked cert ids + * @member {Array.} revoked-cert-ids + */ + +UpdateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UidGenerateToken.prototype['token'] = undefined; +UpdateAuthMethodCert.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UidGenerateToken.prototype['uid-token'] = undefined; -var _default = UidGenerateToken; +UpdateAuthMethodCert.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +UpdateAuthMethodCert.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodCert; exports["default"] = _default; /***/ }), -/***/ 70795: +/***/ 92116: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106276,7 +184331,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106287,19 +184342,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidGenerateTokenOutput model module. - * @module model/UidGenerateTokenOutput - * @version 3.3.16 + * The UpdateAuthMethodCertOutput model module. + * @module model/UpdateAuthMethodCertOutput + * @version 3.6.3 */ -var UidGenerateTokenOutput = /*#__PURE__*/function () { +var UpdateAuthMethodCertOutput = /*#__PURE__*/function () { /** - * Constructs a new UidGenerateTokenOutput. - * @alias module:model/UidGenerateTokenOutput + * Constructs a new UpdateAuthMethodCertOutput. + * @alias module:model/UpdateAuthMethodCertOutput */ - function UidGenerateTokenOutput() { - _classCallCheck(this, UidGenerateTokenOutput); + function UpdateAuthMethodCertOutput() { + _classCallCheck(this, UpdateAuthMethodCertOutput); - UidGenerateTokenOutput.initialize(this); + UpdateAuthMethodCertOutput.initialize(this); } /** * Initializes the fields of this object. @@ -106308,25 +184363,25 @@ var UidGenerateTokenOutput = /*#__PURE__*/function () { */ - _createClass(UidGenerateTokenOutput, null, [{ + _createClass(UpdateAuthMethodCertOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UidGenerateTokenOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidGenerateTokenOutput} obj Optional instance to populate. - * @return {module:model/UidGenerateTokenOutput} The populated UidGenerateTokenOutput instance. + * @param {module:model/UpdateAuthMethodCertOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodCertOutput} The populated UpdateAuthMethodCertOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidGenerateTokenOutput(); + obj = obj || new UpdateAuthMethodCertOutput(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); } } @@ -106334,20 +184389,20 @@ var UidGenerateTokenOutput = /*#__PURE__*/function () { } }]); - return UidGenerateTokenOutput; + return UpdateAuthMethodCertOutput; }(); /** - * @member {String} token + * @member {String} access_id */ -UidGenerateTokenOutput.prototype['token'] = undefined; -var _default = UidGenerateTokenOutput; +UpdateAuthMethodCertOutput.prototype['access_id'] = undefined; +var _default = UpdateAuthMethodCertOutput; exports["default"] = _default; /***/ }), -/***/ 21832: +/***/ 33149: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106358,7 +184413,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106369,20 +184424,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidListChildren model module. - * @module model/UidListChildren - * @version 3.3.16 + * The UpdateAuthMethodGCP model module. + * @module model/UpdateAuthMethodGCP + * @version 3.6.3 */ -var UidListChildren = /*#__PURE__*/function () { +var UpdateAuthMethodGCP = /*#__PURE__*/function () { /** - * Constructs a new UidListChildren. - * uidListChildren is a command that lists child token ids of Akeyless Universal Identity. - * @alias module:model/UidListChildren + * Constructs a new UpdateAuthMethodGCP. + * updateAuthMethodGCP is a command that updates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. + * @alias module:model/UpdateAuthMethodGCP + * @param audience {String} The audience to verify in the JWT received by the client + * @param name {String} Auth Method name + * @param type {String} Type of the GCP Access Rules */ - function UidListChildren() { - _classCallCheck(this, UidListChildren); + function UpdateAuthMethodGCP(audience, name, type) { + _classCallCheck(this, UpdateAuthMethodGCP); - UidListChildren.initialize(this); + UpdateAuthMethodGCP.initialize(this, audience, name, type); } /** * Initializes the fields of this object. @@ -106391,35 +184449,103 @@ var UidListChildren = /*#__PURE__*/function () { */ - _createClass(UidListChildren, null, [{ + _createClass(UpdateAuthMethodGCP, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, audience, name, type) { + obj['audience'] = audience; + obj['name'] = name; + obj['type'] = type; + } /** - * Constructs a UidListChildren from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidListChildren} obj Optional instance to populate. - * @return {module:model/UidListChildren} The populated UidListChildren instance. + * @param {module:model/UpdateAuthMethodGCP} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodGCP} The populated UpdateAuthMethodGCP instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidListChildren(); + obj = obj || new UpdateAuthMethodGCP(); - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-labels')) { + obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); + } + + if (data.hasOwnProperty('bound-projects')) { + obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); + } + + if (data.hasOwnProperty('bound-regions')) { + obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); + } + + if (data.hasOwnProperty('bound-service-accounts')) { + obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); + } + + if (data.hasOwnProperty('bound-zones')) { + obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('service-account-creds-data')) { + obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -106429,40 +184555,139 @@ var UidListChildren = /*#__PURE__*/function () { } }]); - return UidListChildren; + return UpdateAuthMethodGCP; }(); /** - * The universal identity auth method name, required only when uid-token is not provided - * @member {String} auth-method-name + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UidListChildren.prototype['auth-method-name'] = undefined; +UpdateAuthMethodGCP.prototype['access-expires'] = 0; +/** + * The audience to verify in the JWT received by the client + * @member {String} audience + * @default 'akeyless.io' + */ + +UpdateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodGCP.prototype['bound-ips'] = undefined; +/** + * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... + * @member {Array.} bound-labels + */ + +UpdateAuthMethodGCP.prototype['bound-labels'] = undefined; +/** + * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. + * @member {Array.} bound-projects + */ + +UpdateAuthMethodGCP.prototype['bound-projects'] = undefined; +/** + * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. + * @member {Array.} bound-regions + */ + +UpdateAuthMethodGCP.prototype['bound-regions'] = undefined; +/** + * List of service accounts the service account must be part of in order to be authenticated. + * @member {Array.} bound-service-accounts + */ + +UpdateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; +/** + * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. + * @member {Array.} bound-zones + */ + +UpdateAuthMethodGCP.prototype['bound-zones'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodGCP.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodGCP.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UidListChildren.prototype['json'] = false; +UpdateAuthMethodGCP.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodGCP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodGCP.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodGCP.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodGCP.prototype['product-type'] = undefined; +/** + * ServiceAccount credentials data instead of giving a file path, base64 encoded + * @member {String} service-account-creds-data + */ + +UpdateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UidListChildren.prototype['token'] = undefined; +UpdateAuthMethodGCP.prototype['token'] = undefined; +/** + * Type of the GCP Access Rules + * @member {String} type + */ + +UpdateAuthMethodGCP.prototype['type'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UidListChildren.prototype['uid-token'] = undefined; -var _default = UidListChildren; +UpdateAuthMethodGCP.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodGCP; exports["default"] = _default; /***/ }), -/***/ 63330: +/***/ 50563: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106473,7 +184698,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106484,21 +184709,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidRevokeToken model module. - * @module model/UidRevokeToken - * @version 3.3.16 + * The UpdateAuthMethodK8S model module. + * @module model/UpdateAuthMethodK8S + * @version 3.6.3 */ -var UidRevokeToken = /*#__PURE__*/function () { +var UpdateAuthMethodK8S = /*#__PURE__*/function () { /** - * Constructs a new UidRevokeToken. - * @alias module:model/UidRevokeToken - * @param revokeToken {String} the universal identity token/token-id to revoke - * @param revokeType {String} revokeSelf/revokeAll (delete only this token/this token and his children) + * Constructs a new UpdateAuthMethodK8S. + * updateAuthMethodK8S is a command that updates a new auth method that will be able to authenticate using K8S. + * @alias module:model/UpdateAuthMethodK8S + * @param name {String} Auth Method name */ - function UidRevokeToken(revokeToken, revokeType) { - _classCallCheck(this, UidRevokeToken); + function UpdateAuthMethodK8S(name) { + _classCallCheck(this, UpdateAuthMethodK8S); - UidRevokeToken.initialize(this, revokeToken, revokeType); + UpdateAuthMethodK8S.initialize(this, name); } /** * Initializes the fields of this object. @@ -106507,40 +184732,87 @@ var UidRevokeToken = /*#__PURE__*/function () { */ - _createClass(UidRevokeToken, null, [{ + _createClass(UpdateAuthMethodK8S, null, [{ key: "initialize", - value: function initialize(obj, revokeToken, revokeType) { - obj['revoke-token'] = revokeToken; - obj['revoke-type'] = revokeType; + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Constructs a UidRevokeToken from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidRevokeToken} obj Optional instance to populate. - * @return {module:model/UidRevokeToken} The populated UidRevokeToken instance. + * @param {module:model/UpdateAuthMethodK8S} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodK8S} The populated UpdateAuthMethodK8S instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidRevokeToken(); + obj = obj || new UpdateAuthMethodK8S(); - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-namespaces')) { + obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); + } + + if (data.hasOwnProperty('bound-pod-names')) { + obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); + } + + if (data.hasOwnProperty('bound-sa-names')) { + obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('revoke-token')) { - obj['revoke-token'] = _ApiClient["default"].convertToType(data['revoke-token'], 'String'); + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); } - if (data.hasOwnProperty('revoke-type')) { - obj['revoke-type'] = _ApiClient["default"].convertToType(data['revoke-type'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('public-key')) { + obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); } if (data.hasOwnProperty('token')) { @@ -106556,52 +184828,126 @@ var UidRevokeToken = /*#__PURE__*/function () { } }]); - return UidRevokeToken; + return UpdateAuthMethodK8S; }(); /** - * The universal identity auth method name - * @member {String} auth-method-name + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UidRevokeToken.prototype['auth-method-name'] = undefined; +UpdateAuthMethodK8S.prototype['access-expires'] = 0; +/** + * The audience in the Kubernetes JWT that the access is restricted to + * @member {String} audience + */ + +UpdateAuthMethodK8S.prototype['audience'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodK8S.prototype['bound-ips'] = undefined; +/** + * A list of namespaces that the access is restricted to + * @member {Array.} bound-namespaces + */ + +UpdateAuthMethodK8S.prototype['bound-namespaces'] = undefined; +/** + * A list of pod names that the access is restricted to + * @member {Array.} bound-pod-names + */ + +UpdateAuthMethodK8S.prototype['bound-pod-names'] = undefined; +/** + * A list of service account names that the access is restricted to + * @member {Array.} bound-sa-names + */ + +UpdateAuthMethodK8S.prototype['bound-sa-names'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodK8S.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodK8S.prototype['force-sub-claims'] = undefined; +/** + * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key + */ + +UpdateAuthMethodK8S.prototype['gen-key'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UidRevokeToken.prototype['json'] = false; +UpdateAuthMethodK8S.prototype['json'] = false; /** - * the universal identity token/token-id to revoke - * @member {String} revoke-token + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -UidRevokeToken.prototype['revoke-token'] = undefined; +UpdateAuthMethodK8S.prototype['jwt-ttl'] = 0; /** - * revokeSelf/revokeAll (delete only this token/this token and his children) - * @member {String} revoke-type + * Auth Method name + * @member {String} name */ -UidRevokeToken.prototype['revoke-type'] = undefined; +UpdateAuthMethodK8S.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodK8S.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodK8S.prototype['product-type'] = undefined; +/** + * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] + * @member {String} public-key + */ + +UpdateAuthMethodK8S.prototype['public-key'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UidRevokeToken.prototype['token'] = undefined; +UpdateAuthMethodK8S.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UidRevokeToken.prototype['uid-token'] = undefined; -var _default = UidRevokeToken; +UpdateAuthMethodK8S.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodK8S; exports["default"] = _default; /***/ }), -/***/ 1198: +/***/ 67314: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106612,7 +184958,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106623,20 +184969,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidRotateToken model module. - * @module model/UidRotateToken - * @version 3.3.16 + * The UpdateAuthMethodK8SOutput model module. + * @module model/UpdateAuthMethodK8SOutput + * @version 3.6.3 */ -var UidRotateToken = /*#__PURE__*/function () { +var UpdateAuthMethodK8SOutput = /*#__PURE__*/function () { /** - * Constructs a new UidRotateToken. - * uidRotateToken is a command that rotates an Akeyless Universal Identity token. - * @alias module:model/UidRotateToken + * Constructs a new UpdateAuthMethodK8SOutput. + * @alias module:model/UpdateAuthMethodK8SOutput */ - function UidRotateToken() { - _classCallCheck(this, UidRotateToken); + function UpdateAuthMethodK8SOutput() { + _classCallCheck(this, UpdateAuthMethodK8SOutput); - UidRotateToken.initialize(this); + UpdateAuthMethodK8SOutput.initialize(this); } /** * Initializes the fields of this object. @@ -106645,41 +184990,25 @@ var UidRotateToken = /*#__PURE__*/function () { */ - _createClass(UidRotateToken, null, [{ + _createClass(UpdateAuthMethodK8SOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UidRotateToken from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidRotateToken} obj Optional instance to populate. - * @return {module:model/UidRotateToken} The populated UidRotateToken instance. + * @param {module:model/UpdateAuthMethodK8SOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodK8SOutput} The populated UpdateAuthMethodK8SOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidRotateToken(); - - if (data.hasOwnProperty('fork')) { - obj['fork'] = _ApiClient["default"].convertToType(data['fork'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('send-manual-ack-token')) { - obj['send-manual-ack-token'] = _ApiClient["default"].convertToType(data['send-manual-ack-token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } + obj = obj || new UpdateAuthMethodK8SOutput(); - if (data.hasOwnProperty('with-manual-ack')) { - obj['with-manual-ack'] = _ApiClient["default"].convertToType(data['with-manual-ack'], 'Boolean'); + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); } } @@ -106687,46 +185016,20 @@ var UidRotateToken = /*#__PURE__*/function () { } }]); - return UidRotateToken; + return UpdateAuthMethodK8SOutput; }(); /** - * Create a new child token with default parameters - * @member {Boolean} fork - */ - - -UidRotateToken.prototype['fork'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UidRotateToken.prototype['json'] = false; -/** - * The new rotated token to send manual ack for (with uid-token=the-orig-token) - * @member {String} send-manual-ack-token - */ - -UidRotateToken.prototype['send-manual-ack-token'] = undefined; -/** - * The Universal identity token - * @member {String} uid-token + * @member {String} prv_key */ -UidRotateToken.prototype['uid-token'] = undefined; -/** - * Disable automatic ack - * @member {Boolean} with-manual-ack - */ -UidRotateToken.prototype['with-manual-ack'] = undefined; -var _default = UidRotateToken; +UpdateAuthMethodK8SOutput.prototype['prv_key'] = undefined; +var _default = UpdateAuthMethodK8SOutput; exports["default"] = _default; /***/ }), -/***/ 87463: +/***/ 7966: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106737,7 +185040,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106748,19 +185051,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UidRotateTokenOutput model module. - * @module model/UidRotateTokenOutput - * @version 3.3.16 + * The UpdateAuthMethodLDAP model module. + * @module model/UpdateAuthMethodLDAP + * @version 3.6.3 */ -var UidRotateTokenOutput = /*#__PURE__*/function () { +var UpdateAuthMethodLDAP = /*#__PURE__*/function () { /** - * Constructs a new UidRotateTokenOutput. - * @alias module:model/UidRotateTokenOutput + * Constructs a new UpdateAuthMethodLDAP. + * updateAuthMethodLDAP is a command that updates a new auth method that will be able to authenticate using LDAP. + * @alias module:model/UpdateAuthMethodLDAP + * @param name {String} Auth Method name */ - function UidRotateTokenOutput() { - _classCallCheck(this, UidRotateTokenOutput); + function UpdateAuthMethodLDAP(name) { + _classCallCheck(this, UpdateAuthMethodLDAP); - UidRotateTokenOutput.initialize(this); + UpdateAuthMethodLDAP.initialize(this, name); } /** * Initializes the fields of this object. @@ -106769,46 +185074,193 @@ var UidRotateTokenOutput = /*#__PURE__*/function () { */ - _createClass(UidRotateTokenOutput, null, [{ + _createClass(UpdateAuthMethodLDAP, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a UidRotateTokenOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidRotateTokenOutput} obj Optional instance to populate. - * @return {module:model/UidRotateTokenOutput} The populated UidRotateTokenOutput instance. + * @param {module:model/UpdateAuthMethodLDAP} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodLDAP} The populated UpdateAuthMethodLDAP instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UidRotateTokenOutput(); + obj = obj || new UpdateAuthMethodLDAP(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('public-key-data')) { + obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); + } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } } return obj; } }]); - return UidRotateTokenOutput; + return UpdateAuthMethodLDAP; }(); /** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +UpdateAuthMethodLDAP.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodLDAP.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodLDAP.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; +/** + * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key + */ + +UpdateAuthMethodLDAP.prototype['gen-key'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateAuthMethodLDAP.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodLDAP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodLDAP.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodLDAP.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodLDAP.prototype['product-type'] = undefined; +/** + * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] + * @member {String} public-key-data + */ + +UpdateAuthMethodLDAP.prototype['public-key-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) * @member {String} token */ +UpdateAuthMethodLDAP.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAuthMethodLDAP.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + * @default 'users' + */ -UidRotateTokenOutput.prototype['token'] = undefined; -var _default = UidRotateTokenOutput; +UpdateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; +var _default = UpdateAuthMethodLDAP; exports["default"] = _default; /***/ }), -/***/ 47402: +/***/ 61739: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106819,7 +185271,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106830,19 +185282,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Unconfigure model module. - * @module model/Unconfigure - * @version 3.3.16 + * The UpdateAuthMethodLDAPOutput model module. + * @module model/UpdateAuthMethodLDAPOutput + * @version 3.6.3 */ -var Unconfigure = /*#__PURE__*/function () { +var UpdateAuthMethodLDAPOutput = /*#__PURE__*/function () { /** - * Constructs a new Unconfigure. - * @alias module:model/Unconfigure + * Constructs a new UpdateAuthMethodLDAPOutput. + * @alias module:model/UpdateAuthMethodLDAPOutput */ - function Unconfigure() { - _classCallCheck(this, Unconfigure); + function UpdateAuthMethodLDAPOutput() { + _classCallCheck(this, UpdateAuthMethodLDAPOutput); - Unconfigure.initialize(this); + UpdateAuthMethodLDAPOutput.initialize(this); } /** * Initializes the fields of this object. @@ -106851,29 +185303,25 @@ var Unconfigure = /*#__PURE__*/function () { */ - _createClass(Unconfigure, null, [{ + _createClass(UpdateAuthMethodLDAPOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a Unconfigure from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Unconfigure} obj Optional instance to populate. - * @return {module:model/Unconfigure} The populated Unconfigure instance. + * @param {module:model/UpdateAuthMethodLDAPOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodLDAPOutput} The populated UpdateAuthMethodLDAPOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Unconfigure(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + obj = obj || new UpdateAuthMethodLDAPOutput(); - if (data.hasOwnProperty('profile')) { - obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); } } @@ -106881,29 +185329,20 @@ var Unconfigure = /*#__PURE__*/function () { } }]); - return Unconfigure; + return UpdateAuthMethodLDAPOutput; }(); /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} prv_key */ -Unconfigure.prototype['json'] = false; -/** - * The profile name to be removed - * @member {String} profile - * @default 'default' - */ - -Unconfigure.prototype['profile'] = 'default'; -var _default = Unconfigure; +UpdateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; +var _default = UpdateAuthMethodLDAPOutput; exports["default"] = _default; /***/ }), -/***/ 26285: +/***/ 2664: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -106914,7 +185353,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -106925,19 +185364,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UniversalIdentityAccessRules model module. - * @module model/UniversalIdentityAccessRules - * @version 3.3.16 + * The UpdateAuthMethodOAuth2 model module. + * @module model/UpdateAuthMethodOAuth2 + * @version 3.6.3 */ -var UniversalIdentityAccessRules = /*#__PURE__*/function () { +var UpdateAuthMethodOAuth2 = /*#__PURE__*/function () { /** - * Constructs a new UniversalIdentityAccessRules. - * @alias module:model/UniversalIdentityAccessRules + * Constructs a new UpdateAuthMethodOAuth2. + * updateAuthMethodOAuth2 is a command that updates a new auth method that will be able to authenticate using Oauth2. + * @alias module:model/UpdateAuthMethodOAuth2 + * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. */ - function UniversalIdentityAccessRules() { - _classCallCheck(this, UniversalIdentityAccessRules); + function UpdateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodOAuth2); - UniversalIdentityAccessRules.initialize(this); + UpdateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); } /** * Initializes the fields of this object. @@ -106946,33 +185389,113 @@ var UniversalIdentityAccessRules = /*#__PURE__*/function () { */ - _createClass(UniversalIdentityAccessRules, null, [{ + _createClass(UpdateAuthMethodOAuth2, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, jwksUri, name, uniqueIdentifier) { + obj['jwks-uri'] = jwksUri; + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } /** - * Constructs a UniversalIdentityAccessRules from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UniversalIdentityAccessRules} obj Optional instance to populate. - * @return {module:model/UniversalIdentityAccessRules} The populated UniversalIdentityAccessRules instance. + * @param {module:model/UpdateAuthMethodOAuth2} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOAuth2} The populated UpdateAuthMethodOAuth2 instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UniversalIdentityAccessRules(); + obj = obj || new UpdateAuthMethodOAuth2(); - if (data.hasOwnProperty('deny_inheritance')) { - obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); } - if (data.hasOwnProperty('deny_rotate')) { - obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + if (data.hasOwnProperty('bound-client-ids')) { + obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('cert')) { + obj['cert'] = _ApiClient["default"].convertToType(data['cert'], 'String'); + } + + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gateway-url')) { + obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwks-json-data')) { + obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); + } + + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); } } @@ -106980,30 +185503,151 @@ var UniversalIdentityAccessRules = /*#__PURE__*/function () { } }]); - return UniversalIdentityAccessRules; + return UpdateAuthMethodOAuth2; }(); /** - * @member {Boolean} deny_inheritance + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UniversalIdentityAccessRules.prototype['deny_inheritance'] = undefined; +UpdateAuthMethodOAuth2.prototype['access-expires'] = 0; /** - * @member {Boolean} deny_rotate + * The audience in the JWT + * @member {String} audience */ -UniversalIdentityAccessRules.prototype['deny_rotate'] = undefined; +UpdateAuthMethodOAuth2.prototype['audience'] = undefined; /** - * @member {Number} ttl + * The clients ids that the access is restricted to + * @member {Array.} bound-client-ids */ -UniversalIdentityAccessRules.prototype['ttl'] = undefined; -var _default = UniversalIdentityAccessRules; +UpdateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodOAuth2.prototype['bound-ips'] = undefined; +/** + * CertificateFile Path to a file that contain the certificate in a PEM format. + * @member {String} cert + */ + +UpdateAuthMethodOAuth2.prototype['cert'] = undefined; +/** + * CertificateFileData PEM Certificate in a Base64 format. + * @member {String} cert-file-data + */ + +UpdateAuthMethodOAuth2.prototype['cert-file-data'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodOAuth2.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; +/** + * Akeyless Gateway URL (Configuration Management port). Relevant only when the jwks-uri is accessible only from the gateway. + * @member {String} gateway-url + */ + +UpdateAuthMethodOAuth2.prototype['gateway-url'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +UpdateAuthMethodOAuth2.prototype['issuer'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateAuthMethodOAuth2.prototype['json'] = false; +/** + * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string + * @member {String} jwks-json-data + */ + +UpdateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'default_jwks_url' + */ + +UpdateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodOAuth2.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodOAuth2.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodOAuth2.prototype['product-type'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +UpdateAuthMethodOAuth2.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateAuthMethodOAuth2.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAuthMethodOAuth2.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +UpdateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodOAuth2; exports["default"] = _default; /***/ }), -/***/ 61108: +/***/ 87630: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -107014,9 +185658,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(44674)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -107027,19 +185669,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UniversalIdentityDetails model module. - * @module model/UniversalIdentityDetails - * @version 3.3.16 + * The UpdateAuthMethodOCI model module. + * @module model/UpdateAuthMethodOCI + * @version 3.6.3 */ -var UniversalIdentityDetails = /*#__PURE__*/function () { +var UpdateAuthMethodOCI = /*#__PURE__*/function () { /** - * Constructs a new UniversalIdentityDetails. - * @alias module:model/UniversalIdentityDetails + * Constructs a new UpdateAuthMethodOCI. + * updateAuthMethodOCI is a command that updates an auth method that will be used in the account using OCI principle and groups. + * @alias module:model/UpdateAuthMethodOCI + * @param groupOcid {Array.} A list of required groups ocids + * @param name {String} Auth Method name + * @param tenantOcid {String} The Oracle Cloud tenant ID */ - function UniversalIdentityDetails() { - _classCallCheck(this, UniversalIdentityDetails); + function UpdateAuthMethodOCI(groupOcid, name, tenantOcid) { + _classCallCheck(this, UpdateAuthMethodOCI); - UniversalIdentityDetails.initialize(this); + UpdateAuthMethodOCI.initialize(this, groupOcid, name, tenantOcid); } /** * Initializes the fields of this object. @@ -107048,33 +185694,81 @@ var UniversalIdentityDetails = /*#__PURE__*/function () { */ - _createClass(UniversalIdentityDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UniversalIdentityDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UniversalIdentityDetails} obj Optional instance to populate. - * @return {module:model/UniversalIdentityDetails} The populated UniversalIdentityDetails instance. - */ + _createClass(UpdateAuthMethodOCI, null, [{ + key: "initialize", + value: function initialize(obj, groupOcid, name, tenantOcid) { + obj['group-ocid'] = groupOcid; + obj['name'] = name; + obj['tenant-ocid'] = tenantOcid; + } + /** + * Constructs a UpdateAuthMethodOCI from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodOCI} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOCI} The populated UpdateAuthMethodOCI instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodOCI(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('group-ocid')) { + obj['group-ocid'] = _ApiClient["default"].convertToType(data['group-ocid'], ['String']); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UniversalIdentityDetails(); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - if (data.hasOwnProperty('max_depth')) { - obj['max_depth'] = _ApiClient["default"].convertToType(data['max_depth'], 'Number'); + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); } - if (data.hasOwnProperty('number_of_tokens')) { - obj['number_of_tokens'] = _ApiClient["default"].convertToType(data['number_of_tokens'], 'Number'); + if (data.hasOwnProperty('tenant-ocid')) { + obj['tenant-ocid'] = _ApiClient["default"].convertToType(data['tenant-ocid'], 'String'); } - if (data.hasOwnProperty('root')) { - obj['root'] = _UIDTokenDetails["default"].constructFromObject(data['root']); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -107082,30 +185776,102 @@ var UniversalIdentityDetails = /*#__PURE__*/function () { } }]); - return UniversalIdentityDetails; + return UpdateAuthMethodOCI; }(); /** - * @member {Number} max_depth + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UniversalIdentityDetails.prototype['max_depth'] = undefined; +UpdateAuthMethodOCI.prototype['access-expires'] = 0; /** - * @member {Number} number_of_tokens + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -UniversalIdentityDetails.prototype['number_of_tokens'] = undefined; +UpdateAuthMethodOCI.prototype['bound-ips'] = undefined; /** - * @member {module:model/UIDTokenDetails} root + * Auth Method description + * @member {String} description */ -UniversalIdentityDetails.prototype['root'] = undefined; -var _default = UniversalIdentityDetails; +UpdateAuthMethodOCI.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodOCI.prototype['force-sub-claims'] = undefined; +/** + * A list of required groups ocids + * @member {Array.} group-ocid + */ + +UpdateAuthMethodOCI.prototype['group-ocid'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodOCI.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateAuthMethodOCI.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodOCI.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodOCI.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodOCI.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodOCI.prototype['product-type'] = undefined; +/** + * The Oracle Cloud tenant ID + * @member {String} tenant-ocid + */ + +UpdateAuthMethodOCI.prototype['tenant-ocid'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateAuthMethodOCI.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAuthMethodOCI.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodOCI; exports["default"] = _default; /***/ }), -/***/ 22071: +/***/ 93179: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -107116,7 +185882,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -107127,19 +185893,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The Update model module. - * @module model/Update - * @version 3.3.16 + * The UpdateAuthMethodOCIOutput model module. + * @module model/UpdateAuthMethodOCIOutput + * @version 3.6.3 */ -var Update = /*#__PURE__*/function () { +var UpdateAuthMethodOCIOutput = /*#__PURE__*/function () { /** - * Constructs a new Update. - * @alias module:model/Update + * Constructs a new UpdateAuthMethodOCIOutput. + * @alias module:model/UpdateAuthMethodOCIOutput */ - function Update() { - _classCallCheck(this, Update); + function UpdateAuthMethodOCIOutput() { + _classCallCheck(this, UpdateAuthMethodOCIOutput); - Update.initialize(this); + UpdateAuthMethodOCIOutput.initialize(this); } /** * Initializes the fields of this object. @@ -107148,37 +185914,25 @@ var Update = /*#__PURE__*/function () { */ - _createClass(Update, null, [{ + _createClass(UpdateAuthMethodOCIOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a Update from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodOCIOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Update} obj Optional instance to populate. - * @return {module:model/Update} The populated Update instance. + * @param {module:model/UpdateAuthMethodOCIOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOCIOutput} The populated UpdateAuthMethodOCIOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new Update(); - - if (data.hasOwnProperty('artifact-repository')) { - obj['artifact-repository'] = _ApiClient["default"].convertToType(data['artifact-repository'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('show-changelog')) { - obj['show-changelog'] = _ApiClient["default"].convertToType(data['show-changelog'], 'Boolean'); - } + obj = obj || new UpdateAuthMethodOCIOutput(); - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String'); + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); } } @@ -107186,41 +185940,20 @@ var Update = /*#__PURE__*/function () { } }]); - return Update; + return UpdateAuthMethodOCIOutput; }(); /** - * Alternative CLI repository url. e.g. https://artifacts.site2.akeyless.io - * @member {String} artifact-repository - */ - - -Update.prototype['artifact-repository'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Update.prototype['json'] = false; -/** - * Show the changelog between the current version and the latest one and exit (update will not be performed) - * @member {Boolean} show-changelog + * @member {String} access_id */ -Update.prototype['show-changelog'] = undefined; -/** - * The CLI version - * @member {String} version - * @default 'latest' - */ -Update.prototype['version'] = 'latest'; -var _default = Update; +UpdateAuthMethodOCIOutput.prototype['access_id'] = undefined; +var _default = UpdateAuthMethodOCIOutput; exports["default"] = _default; /***/ }), -/***/ 68052: +/***/ 48022: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -107231,7 +185964,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -107242,22 +185975,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAWSTarget model module. - * @module model/UpdateAWSTarget - * @version 3.3.16 + * The UpdateAuthMethodOIDC model module. + * @module model/UpdateAuthMethodOIDC + * @version 3.6.3 */ -var UpdateAWSTarget = /*#__PURE__*/function () { +var UpdateAuthMethodOIDC = /*#__PURE__*/function () { /** - * Constructs a new UpdateAWSTarget. - * @alias module:model/UpdateAWSTarget - * @param accessKey {String} AWS secret access key - * @param accessKeyId {String} AWS access key ID - * @param name {String} Target name + * Constructs a new UpdateAuthMethodOIDC. + * updateAuthMethodOIDC is a command that updates a new auth method that will be available to authenticate using OIDC. + * @alias module:model/UpdateAuthMethodOIDC + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. */ - function UpdateAWSTarget(accessKey, accessKeyId, name) { - _classCallCheck(this, UpdateAWSTarget); + function UpdateAuthMethodOIDC(name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodOIDC); - UpdateAWSTarget.initialize(this, accessKey, accessKeyId, name); + UpdateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); } /** * Initializes the fields of this object. @@ -107266,53 +185999,72 @@ var UpdateAWSTarget = /*#__PURE__*/function () { */ - _createClass(UpdateAWSTarget, null, [{ + _createClass(UpdateAuthMethodOIDC, null, [{ key: "initialize", - value: function initialize(obj, accessKey, accessKeyId, name) { - obj['access-key'] = accessKey; - obj['access-key-id'] = accessKeyId; + value: function initialize(obj, name, uniqueIdentifier) { obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a UpdateAWSTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAWSTarget} obj Optional instance to populate. - * @return {module:model/UpdateAWSTarget} The populated UpdateAWSTarget instance. + * @param {module:model/UpdateAuthMethodOIDC} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOIDC} The populated UpdateAuthMethodOIDC instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAWSTarget(); + obj = obj || new UpdateAuthMethodOIDC(); - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); } - if (data.hasOwnProperty('access-key-id')) { - obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); } - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); } if (data.hasOwnProperty('name')) { @@ -107323,12 +186075,20 @@ var UpdateAWSTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); } - if (data.hasOwnProperty('session-token')) { - obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + if (data.hasOwnProperty('required-scopes')) { + obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); + } + + if (data.hasOwnProperty('required-scopes-prefix')) { + obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); } if (data.hasOwnProperty('token')) { @@ -107339,12 +186099,8 @@ var UpdateAWSTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); } } @@ -107352,107 +186108,144 @@ var UpdateAWSTarget = /*#__PURE__*/function () { } }]); - return UpdateAWSTarget; + return UpdateAuthMethodOIDC; }(); /** - * AWS secret access key - * @member {String} access-key + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UpdateAWSTarget.prototype['access-key'] = undefined; +UpdateAuthMethodOIDC.prototype['access-expires'] = 0; /** - * AWS access key ID - * @member {String} access-key-id + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri */ -UpdateAWSTarget.prototype['access-key-id'] = undefined; +UpdateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application + * @member {String} audience */ -UpdateAWSTarget.prototype['comment'] = undefined; +UpdateAuthMethodOIDC.prototype['audience'] = undefined; /** - * Description of the object + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodOIDC.prototype['bound-ips'] = undefined; +/** + * Client ID + * @member {String} client-id + */ + +UpdateAuthMethodOIDC.prototype['client-id'] = undefined; +/** + * Client Secret + * @member {String} client-secret + */ + +UpdateAuthMethodOIDC.prototype['client-secret'] = undefined; +/** + * Auth Method description * @member {String} description */ -UpdateAWSTarget.prototype['description'] = undefined; +UpdateAuthMethodOIDC.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +UpdateAuthMethodOIDC.prototype['issuer'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAWSTarget.prototype['json'] = false; +UpdateAuthMethodOIDC.prototype['json'] = false; /** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -UpdateAWSTarget.prototype['keep-prev-version'] = undefined; +UpdateAuthMethodOIDC.prototype['jwt-ttl'] = 0; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Auth Method name + * @member {String} name */ -UpdateAWSTarget.prototype['key'] = undefined; +UpdateAuthMethodOIDC.prototype['name'] = undefined; /** - * Target name - * @member {String} name + * Auth Method new name + * @member {String} new-name */ -UpdateAWSTarget.prototype['name'] = undefined; +UpdateAuthMethodOIDC.prototype['new-name'] = undefined; /** - * New target name - * @member {String} new-name + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type */ -UpdateAWSTarget.prototype['new-name'] = undefined; +UpdateAuthMethodOIDC.prototype['product-type'] = undefined; /** - * AWS region - * @member {String} region - * @default 'us-east-2' + * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve + * @member {Array.} required-scopes */ -UpdateAWSTarget.prototype['region'] = 'us-east-2'; +UpdateAuthMethodOIDC.prototype['required-scopes'] = undefined; /** - * Required only for temporary security credentials retrieved using STS - * @member {String} session-token + * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) + * @member {String} required-scopes-prefix */ -UpdateAWSTarget.prototype['session-token'] = undefined; +UpdateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +UpdateAuthMethodOIDC.prototype['subclaims-delimiters'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAWSTarget.prototype['token'] = undefined; +UpdateAuthMethodOIDC.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAWSTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateAWSTarget.prototype['update-version'] = undefined; +UpdateAuthMethodOIDC.prototype['uid-token'] = undefined; /** - * Use the GW's Cloud IAM - * @member {Boolean} use-gw-cloud-identity + * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier */ -UpdateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateAWSTarget; +UpdateAuthMethodOIDC.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodOIDC; exports["default"] = _default; /***/ }), -/***/ 77790: +/***/ 8314: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -107463,7 +186256,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -107474,20 +186267,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAWSTargetDetails model module. - * @module model/UpdateAWSTargetDetails - * @version 3.3.16 + * The UpdateAuthMethodOutput model module. + * @module model/UpdateAuthMethodOutput + * @version 3.6.3 */ -var UpdateAWSTargetDetails = /*#__PURE__*/function () { +var UpdateAuthMethodOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateAWSTargetDetails. - * @alias module:model/UpdateAWSTargetDetails - * @param name {String} Target name + * Constructs a new UpdateAuthMethodOutput. + * @alias module:model/UpdateAuthMethodOutput */ - function UpdateAWSTargetDetails(name) { - _classCallCheck(this, UpdateAWSTargetDetails); + function UpdateAuthMethodOutput() { + _classCallCheck(this, UpdateAuthMethodOutput); - UpdateAWSTargetDetails.initialize(this, name); + UpdateAuthMethodOutput.initialize(this); } /** * Initializes the fields of this object. @@ -107496,151 +186288,46 @@ var UpdateAWSTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateAWSTargetDetails, null, [{ + _createClass(UpdateAuthMethodOutput, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a UpdateAWSTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAWSTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateAWSTargetDetails} The populated UpdateAWSTargetDetails instance. + * @param {module:model/UpdateAuthMethodOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOutput} The populated UpdateAuthMethodOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAWSTargetDetails(); - - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); - } - - if (data.hasOwnProperty('access-key-id')) { - obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } + obj = obj || new UpdateAuthMethodOutput(); if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('session-token')) { - obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } } return obj; } }]); - return UpdateAWSTargetDetails; + return UpdateAuthMethodOutput; }(); /** - * The aws secret access key - * @member {String} access-key - */ - - -UpdateAWSTargetDetails.prototype['access-key'] = undefined; -/** - * The aws access key id - * @member {String} access-key-id - */ - -UpdateAWSTargetDetails.prototype['access-key-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAWSTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateAWSTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * Target name * @member {String} name */ -UpdateAWSTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateAWSTargetDetails.prototype['new-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateAWSTargetDetails.prototype['protection_key'] = undefined; -/** - * The aws region - * @member {String} region - * @default 'us-east-2' - */ - -UpdateAWSTargetDetails.prototype['region'] = 'us-east-2'; -/** - * Required only for temporary security credentials retrieved via STS, otherwise it can be an empty string - * @member {String} session-token - */ - -UpdateAWSTargetDetails.prototype['session-token'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAWSTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -UpdateAWSTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateAWSTargetDetails; +UpdateAuthMethodOutput.prototype['name'] = undefined; +var _default = UpdateAuthMethodOutput; exports["default"] = _default; /***/ }), -/***/ 15731: +/***/ 75902: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -107651,7 +186338,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -107662,19 +186349,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAccountSettings model module. - * @module model/UpdateAccountSettings - * @version 3.3.16 + * The UpdateAuthMethodSAML model module. + * @module model/UpdateAuthMethodSAML + * @version 3.6.3 */ -var UpdateAccountSettings = /*#__PURE__*/function () { +var UpdateAuthMethodSAML = /*#__PURE__*/function () { /** - * Constructs a new UpdateAccountSettings. - * @alias module:model/UpdateAccountSettings + * Constructs a new UpdateAuthMethodSAML. + * updateAuthMethodSAML is a command that updates a new auth method that will be available to authenticate using SAML. + * @alias module:model/UpdateAuthMethodSAML + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. */ - function UpdateAccountSettings() { - _classCallCheck(this, UpdateAccountSettings); + function UpdateAuthMethodSAML(name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodSAML); - UpdateAccountSettings.initialize(this); + UpdateAuthMethodSAML.initialize(this, name, uniqueIdentifier); } /** * Initializes the fields of this object. @@ -107683,93 +186373,80 @@ var UpdateAccountSettings = /*#__PURE__*/function () { */ - _createClass(UpdateAccountSettings, null, [{ + _createClass(UpdateAuthMethodSAML, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } /** - * Constructs a UpdateAccountSettings from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAccountSettings} obj Optional instance to populate. - * @return {module:model/UpdateAccountSettings} The populated UpdateAccountSettings instance. + * @param {module:model/UpdateAuthMethodSAML} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodSAML} The populated UpdateAuthMethodSAML instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAccountSettings(); - - if (data.hasOwnProperty('address')) { - obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String'); - } - - if (data.hasOwnProperty('city')) { - obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); - } + obj = obj || new UpdateAuthMethodSAML(); - if (data.hasOwnProperty('company-name')) { - obj['company-name'] = _ApiClient["default"].convertToType(data['company-name'], 'String'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); } - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); } - if (data.hasOwnProperty('default-key-name')) { - obj['default-key-name'] = _ApiClient["default"].convertToType(data['default-key-name'], 'String'); + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); } - if (data.hasOwnProperty('default-share-link-ttl-minutes')) { - obj['default-share-link-ttl-minutes'] = _ApiClient["default"].convertToType(data['default-share-link-ttl-minutes'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('default-versioning')) { - obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'String'); + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); } - if (data.hasOwnProperty('dp-enable-classic-key-protection')) { - obj['dp-enable-classic-key-protection'] = _ApiClient["default"].convertToType(data['dp-enable-classic-key-protection'], 'String'); + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); } - if (data.hasOwnProperty('item-type')) { - obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + if (data.hasOwnProperty('idp-metadata-url')) { + obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); } - if (data.hasOwnProperty('items-deletion-protection')) { - obj['items-deletion-protection'] = _ApiClient["default"].convertToType(data['items-deletion-protection'], 'String'); + if (data.hasOwnProperty('idp-metadata-xml-data')) { + obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('jwt-ttl-default')) { - obj['jwt-ttl-default'] = _ApiClient["default"].convertToType(data['jwt-ttl-default'], 'Number'); - } - - if (data.hasOwnProperty('jwt-ttl-max')) { - obj['jwt-ttl-max'] = _ApiClient["default"].convertToType(data['jwt-ttl-max'], 'Number'); - } - - if (data.hasOwnProperty('jwt-ttl-min')) { - obj['jwt-ttl-min'] = _ApiClient["default"].convertToType(data['jwt-ttl-min'], 'Number'); + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); } - if (data.hasOwnProperty('max-versions')) { - obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('password-length')) { - obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'Number'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('phone')) { - obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); } - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); } if (data.hasOwnProperty('token')) { @@ -107780,20 +186457,8 @@ var UpdateAccountSettings = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('use-lower-letters')) { - obj['use-lower-letters'] = _ApiClient["default"].convertToType(data['use-lower-letters'], 'String'); - } - - if (data.hasOwnProperty('use-numbers')) { - obj['use-numbers'] = _ApiClient["default"].convertToType(data['use-numbers'], 'String'); - } - - if (data.hasOwnProperty('use-special-characters')) { - obj['use-special-characters'] = _ApiClient["default"].convertToType(data['use-special-characters'], 'String'); - } - - if (data.hasOwnProperty('use_capital-letters')) { - obj['use_capital-letters'] = _ApiClient["default"].convertToType(data['use_capital-letters'], 'String'); + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); } } @@ -107801,160 +186466,120 @@ var UpdateAccountSettings = /*#__PURE__*/function () { } }]); - return UpdateAccountSettings; + return UpdateAuthMethodSAML; }(); /** - * Address - * @member {String} address - */ - - -UpdateAccountSettings.prototype['address'] = undefined; -/** - * City - * @member {String} city + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UpdateAccountSettings.prototype['city'] = undefined; -/** - * Company name - * @member {String} company-name - */ -UpdateAccountSettings.prototype['company-name'] = undefined; +UpdateAuthMethodSAML.prototype['access-expires'] = 0; /** - * Country - * @member {String} country + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri */ -UpdateAccountSettings.prototype['country'] = undefined; +UpdateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; /** - * Set the account default key based on the DFC key item name. Use \"set-original-akeyless-default-key\" to revert to using the original default key of the account. Empty string will change nothing. - * @member {String} default-key-name + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -UpdateAccountSettings.prototype['default-key-name'] = undefined; +UpdateAuthMethodSAML.prototype['bound-ips'] = undefined; /** - * Set the default ttl in minutes for sharing item number between 60 and 43200 - * @member {String} default-share-link-ttl-minutes + * Auth Method description + * @member {String} description */ -UpdateAccountSettings.prototype['default-share-link-ttl-minutes'] = undefined; +UpdateAuthMethodSAML.prototype['description'] = undefined; /** - * If set to true, new item version will be created on each update [true/false] - * @member {String} default-versioning + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims */ -UpdateAccountSettings.prototype['default-versioning'] = undefined; +UpdateAuthMethodSAML.prototype['force-sub-claims'] = undefined; /** - * Set to update protection with classic keys state [true/false] - * @member {String} dp-enable-classic-key-protection + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips */ -UpdateAccountSettings.prototype['dp-enable-classic-key-protection'] = undefined; +UpdateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; /** - * VersionSettingsObjectType defines object types for account version settings - * @member {String} item-type + * IDP metadata url + * @member {String} idp-metadata-url */ -UpdateAccountSettings.prototype['item-type'] = undefined; +UpdateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; /** - * Set or unset the default behaviour of items deletion protection [true/false] - * @member {String} items-deletion-protection + * IDP metadata xml data + * @member {String} idp-metadata-xml-data */ -UpdateAccountSettings.prototype['items-deletion-protection'] = undefined; +UpdateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAccountSettings.prototype['json'] = false; -/** - * Default ttl - * @member {Number} jwt-ttl-default - */ - -UpdateAccountSettings.prototype['jwt-ttl-default'] = undefined; -/** - * Maximum ttl - * @member {Number} jwt-ttl-max - */ - -UpdateAccountSettings.prototype['jwt-ttl-max'] = undefined; +UpdateAuthMethodSAML.prototype['json'] = false; /** - * Minimum ttl - * @member {Number} jwt-ttl-min + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -UpdateAccountSettings.prototype['jwt-ttl-min'] = undefined; +UpdateAuthMethodSAML.prototype['jwt-ttl'] = 0; /** - * Max versions - * @member {String} max-versions + * Auth Method name + * @member {String} name */ -UpdateAccountSettings.prototype['max-versions'] = undefined; +UpdateAuthMethodSAML.prototype['name'] = undefined; /** - * Password length between 5 - to 50 characters - * @member {Number} password-length + * Auth Method new name + * @member {String} new-name */ -UpdateAccountSettings.prototype['password-length'] = undefined; +UpdateAuthMethodSAML.prototype['new-name'] = undefined; /** - * Phone number - * @member {String} phone + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type */ -UpdateAccountSettings.prototype['phone'] = undefined; +UpdateAuthMethodSAML.prototype['product-type'] = undefined; /** - * Postal code - * @member {String} postal-code + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters */ -UpdateAccountSettings.prototype['postal-code'] = undefined; +UpdateAuthMethodSAML.prototype['subclaims-delimiters'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAccountSettings.prototype['token'] = undefined; +UpdateAuthMethodSAML.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAccountSettings.prototype['uid-token'] = undefined; -/** - * Password must contain lower case letters [true/false] - * @member {String} use-lower-letters - */ - -UpdateAccountSettings.prototype['use-lower-letters'] = undefined; -/** - * Password must contain numbers [true/false] - * @member {String} use-numbers - */ - -UpdateAccountSettings.prototype['use-numbers'] = undefined; -/** - * Password must contain special characters [true/false] - * @member {String} use-special-characters - */ - -UpdateAccountSettings.prototype['use-special-characters'] = undefined; +UpdateAuthMethodSAML.prototype['uid-token'] = undefined; /** - * Password must contain capital letters [true/false] - * @member {String} use_capital-letters + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier */ -UpdateAccountSettings.prototype['use_capital-letters'] = undefined; -var _default = UpdateAccountSettings; +UpdateAuthMethodSAML.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodSAML; exports["default"] = _default; /***/ }), -/***/ 80620: +/***/ 57907: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -107965,7 +186590,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -107976,19 +186601,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAccountSettingsOutput model module. - * @module model/UpdateAccountSettingsOutput - * @version 3.3.16 + * The UpdateAuthMethodUniversalIdentity model module. + * @module model/UpdateAuthMethodUniversalIdentity + * @version 3.6.3 */ -var UpdateAccountSettingsOutput = /*#__PURE__*/function () { +var UpdateAuthMethodUniversalIdentity = /*#__PURE__*/function () { /** - * Constructs a new UpdateAccountSettingsOutput. - * @alias module:model/UpdateAccountSettingsOutput + * Constructs a new UpdateAuthMethodUniversalIdentity. + * updateAuthMethodUniversalIdentity is a command that updates a new auth method that will be able to authenticate using Akeyless Universal Identity. + * @alias module:model/UpdateAuthMethodUniversalIdentity + * @param name {String} Auth Method name */ - function UpdateAccountSettingsOutput() { - _classCallCheck(this, UpdateAccountSettingsOutput); + function UpdateAuthMethodUniversalIdentity(name) { + _classCallCheck(this, UpdateAuthMethodUniversalIdentity); - UpdateAccountSettingsOutput.initialize(this); + UpdateAuthMethodUniversalIdentity.initialize(this, name); } /** * Initializes the fields of this object. @@ -107997,25 +186624,83 @@ var UpdateAccountSettingsOutput = /*#__PURE__*/function () { */ - _createClass(UpdateAccountSettingsOutput, null, [{ + _createClass(UpdateAuthMethodUniversalIdentity, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a UpdateAccountSettingsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAccountSettingsOutput} obj Optional instance to populate. - * @return {module:model/UpdateAccountSettingsOutput} The populated UpdateAccountSettingsOutput instance. + * @param {module:model/UpdateAuthMethodUniversalIdentity} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodUniversalIdentity} The populated UpdateAuthMethodUniversalIdentity instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAccountSettingsOutput(); + obj = obj || new UpdateAuthMethodUniversalIdentity(); - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('deny-inheritance')) { + obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); + } + + if (data.hasOwnProperty('deny-rotate')) { + obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -108023,20 +186708,109 @@ var UpdateAccountSettingsOutput = /*#__PURE__*/function () { } }]); - return UpdateAccountSettingsOutput; + return UpdateAuthMethodUniversalIdentity; }(); /** - * @member {Boolean} updated + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -UpdateAccountSettingsOutput.prototype['updated'] = undefined; -var _default = UpdateAccountSettingsOutput; +UpdateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +UpdateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; +/** + * Deny from root to create children + * @member {Boolean} deny-inheritance + */ + +UpdateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; +/** + * Deny from the token to rotate + * @member {Boolean} deny-rotate + */ + +UpdateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodUniversalIdentity.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +UpdateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +UpdateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateAuthMethodUniversalIdentity.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +UpdateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +UpdateAuthMethodUniversalIdentity.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ + +UpdateAuthMethodUniversalIdentity.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +UpdateAuthMethodUniversalIdentity.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateAuthMethodUniversalIdentity.prototype['token'] = undefined; +/** + * Token ttl + * @member {Number} ttl + * @default 60 + */ + +UpdateAuthMethodUniversalIdentity.prototype['ttl'] = 60; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodUniversalIdentity; exports["default"] = _default; /***/ }), -/***/ 25393: +/***/ 57420: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -108047,7 +186821,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -108058,23 +186832,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateArtifactoryTarget model module. - * @module model/UpdateArtifactoryTarget - * @version 3.3.16 + * The UpdateAzureTarget model module. + * @module model/UpdateAzureTarget + * @version 3.6.3 */ -var UpdateArtifactoryTarget = /*#__PURE__*/function () { +var UpdateAzureTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateArtifactoryTarget. - * @alias module:model/UpdateArtifactoryTarget - * @param artifactoryAdminName {String} Artifactory Admin Name - * @param artifactoryAdminPwd {String} Artifactory Admin password - * @param baseUrl {String} Base URL + * Constructs a new UpdateAzureTarget. + * @alias module:model/UpdateAzureTarget * @param name {String} Target name */ - function UpdateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - _classCallCheck(this, UpdateArtifactoryTarget); + function UpdateAzureTarget(name) { + _classCallCheck(this, UpdateAzureTarget); - UpdateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); + UpdateAzureTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -108083,38 +186854,31 @@ var UpdateArtifactoryTarget = /*#__PURE__*/function () { */ - _createClass(UpdateArtifactoryTarget, null, [{ + _createClass(UpdateAzureTarget, null, [{ key: "initialize", - value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - obj['artifactory-admin-name'] = artifactoryAdminName; - obj['artifactory-admin-pwd'] = artifactoryAdminPwd; - obj['base-url'] = baseUrl; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAzureTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateArtifactoryTarget} obj Optional instance to populate. - * @return {module:model/UpdateArtifactoryTarget} The populated UpdateArtifactoryTarget instance. + * @param {module:model/UpdateAzureTarget} obj Optional instance to populate. + * @return {module:model/UpdateAzureTarget} The populated UpdateAzureTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateArtifactoryTarget(); - - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); - } + obj = obj || new UpdateAzureTarget(); - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); } if (data.hasOwnProperty('comment')) { @@ -108137,6 +186901,10 @@ var UpdateArtifactoryTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -108145,6 +186913,22 @@ var UpdateArtifactoryTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } + if (data.hasOwnProperty('resource-group-name')) { + obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); + } + + if (data.hasOwnProperty('resource-name')) { + obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); + } + + if (data.hasOwnProperty('subscription-id')) { + obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); + } + + if (data.hasOwnProperty('tenant-id')) { + obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -108156,100 +186940,130 @@ var UpdateArtifactoryTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('update-version')) { obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } } return obj; } }]); - return UpdateArtifactoryTarget; + return UpdateAzureTarget; }(); /** - * Artifactory Admin Name - * @member {String} artifactory-admin-name + * @member {String} client-id */ -UpdateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; -/** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd - */ - -UpdateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; +UpdateAzureTarget.prototype['client-id'] = undefined; /** - * Base URL - * @member {String} base-url + * @member {String} client-secret */ -UpdateArtifactoryTarget.prototype['base-url'] = undefined; +UpdateAzureTarget.prototype['client-secret'] = undefined; /** * Deprecated - use description * @member {String} comment */ -UpdateArtifactoryTarget.prototype['comment'] = undefined; +UpdateAzureTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description */ -UpdateArtifactoryTarget.prototype['description'] = undefined; +UpdateAzureTarget.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateArtifactoryTarget.prototype['json'] = false; +UpdateAzureTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateArtifactoryTarget.prototype['keep-prev-version'] = undefined; +UpdateAzureTarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateArtifactoryTarget.prototype['key'] = undefined; +UpdateAzureTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateAzureTarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateArtifactoryTarget.prototype['name'] = undefined; +UpdateAzureTarget.prototype['name'] = undefined; /** * New target name * @member {String} new-name */ -UpdateArtifactoryTarget.prototype['new-name'] = undefined; +UpdateAzureTarget.prototype['new-name'] = undefined; +/** + * The Resource Group name in your Azure subscription + * @member {String} resource-group-name + */ + +UpdateAzureTarget.prototype['resource-group-name'] = undefined; +/** + * The name of the relevant Resource + * @member {String} resource-name + */ + +UpdateAzureTarget.prototype['resource-name'] = undefined; +/** + * Azure Subscription Id + * @member {String} subscription-id + */ + +UpdateAzureTarget.prototype['subscription-id'] = undefined; +/** + * @member {String} tenant-id + */ + +UpdateAzureTarget.prototype['tenant-id'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateArtifactoryTarget.prototype['token'] = undefined; +UpdateAzureTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateArtifactoryTarget.prototype['uid-token'] = undefined; +UpdateAzureTarget.prototype['uid-token'] = undefined; /** * Deprecated * @member {Boolean} update-version */ -UpdateArtifactoryTarget.prototype['update-version'] = undefined; -var _default = UpdateArtifactoryTarget; +UpdateAzureTarget.prototype['update-version'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +UpdateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateAzureTarget; exports["default"] = _default; /***/ }), -/***/ 75315: +/***/ 29677: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -108260,7 +187074,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -108271,19 +187085,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateArtifactoryTargetOutput model module. - * @module model/UpdateArtifactoryTargetOutput - * @version 3.3.16 + * The UpdateAzureTargetOutput model module. + * @module model/UpdateAzureTargetOutput + * @version 3.6.3 */ -var UpdateArtifactoryTargetOutput = /*#__PURE__*/function () { +var UpdateAzureTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateArtifactoryTargetOutput. - * @alias module:model/UpdateArtifactoryTargetOutput + * Constructs a new UpdateAzureTargetOutput. + * @alias module:model/UpdateAzureTargetOutput */ - function UpdateArtifactoryTargetOutput() { - _classCallCheck(this, UpdateArtifactoryTargetOutput); + function UpdateAzureTargetOutput() { + _classCallCheck(this, UpdateAzureTargetOutput); - UpdateArtifactoryTargetOutput.initialize(this); + UpdateAzureTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -108292,22 +187106,22 @@ var UpdateArtifactoryTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateArtifactoryTargetOutput, null, [{ + _createClass(UpdateAzureTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateArtifactoryTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateArtifactoryTargetOutput} The populated UpdateArtifactoryTargetOutput instance. + * @param {module:model/UpdateAzureTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateAzureTargetOutput} The populated UpdateAzureTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateArtifactoryTargetOutput(); + obj = obj || new UpdateAzureTargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -108318,20 +187132,20 @@ var UpdateArtifactoryTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateArtifactoryTargetOutput; + return UpdateAzureTargetOutput; }(); /** * @member {Number} target_id */ -UpdateArtifactoryTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateArtifactoryTargetOutput; +UpdateAzureTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateAzureTargetOutput; exports["default"] = _default; /***/ }), -/***/ 66992: +/***/ 17004: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -108342,7 +187156,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -108353,21 +187167,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAssoc model module. - * @module model/UpdateAssoc - * @version 3.3.16 + * The UpdateCertificateOutput model module. + * @module model/UpdateCertificateOutput + * @version 3.6.3 */ -var UpdateAssoc = /*#__PURE__*/function () { +var UpdateCertificateOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateAssoc. - * updateAssoc is a command that updates the sub-claims of an association between role and auth method. - * @alias module:model/UpdateAssoc - * @param assocId {String} The association id to be updated + * Constructs a new UpdateCertificateOutput. + * @alias module:model/UpdateCertificateOutput */ - function UpdateAssoc(assocId) { - _classCallCheck(this, UpdateAssoc); + function UpdateCertificateOutput() { + _classCallCheck(this, UpdateCertificateOutput); - UpdateAssoc.initialize(this, assocId); + UpdateCertificateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -108376,49 +187188,25 @@ var UpdateAssoc = /*#__PURE__*/function () { */ - _createClass(UpdateAssoc, null, [{ + _createClass(UpdateCertificateOutput, null, [{ key: "initialize", - value: function initialize(obj, assocId) { - obj['assoc-id'] = assocId; - } + value: function initialize(obj) {} /** - * Constructs a UpdateAssoc from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateCertificateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAssoc} obj Optional instance to populate. - * @return {module:model/UpdateAssoc} The populated UpdateAssoc instance. + * @param {module:model/UpdateCertificateOutput} obj Optional instance to populate. + * @return {module:model/UpdateCertificateOutput} The populated UpdateCertificateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAssoc(); - - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); - } - - if (data.hasOwnProperty('case-sensitive')) { - obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new UpdateCertificateOutput(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -108426,53 +187214,20 @@ var UpdateAssoc = /*#__PURE__*/function () { } }]); - return UpdateAssoc; + return UpdateCertificateOutput; }(); /** - * The association id to be updated - * @member {String} assoc-id - */ - - -UpdateAssoc.prototype['assoc-id'] = undefined; -/** - * Treat sub claims as case-sensitive [true/false] - * @member {String} case-sensitive - * @default 'true' - */ - -UpdateAssoc.prototype['case-sensitive'] = 'true'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAssoc.prototype['json'] = false; -/** - * key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims - */ - -UpdateAssoc.prototype['sub-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} name */ -UpdateAssoc.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -UpdateAssoc.prototype['uid-token'] = undefined; -var _default = UpdateAssoc; +UpdateCertificateOutput.prototype['name'] = undefined; +var _default = UpdateCertificateOutput; exports["default"] = _default; /***/ }), -/***/ 16354: +/***/ 44420: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -108483,7 +187238,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -108494,20 +187249,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethod model module. - * @module model/UpdateAuthMethod - * @version 3.3.16 + * The UpdateCertificateValue model module. + * @module model/UpdateCertificateValue + * @version 3.6.3 */ -var UpdateAuthMethod = /*#__PURE__*/function () { +var UpdateCertificateValue = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethod. - * @alias module:model/UpdateAuthMethod - * @param name {String} Auth Method name + * Constructs a new UpdateCertificateValue. + * @alias module:model/UpdateCertificateValue + * @param name {String} Certificate name */ - function UpdateAuthMethod(name) { - _classCallCheck(this, UpdateAuthMethod); + function UpdateCertificateValue(name) { + _classCallCheck(this, UpdateCertificateValue); - UpdateAuthMethod.initialize(this, name); + UpdateCertificateValue.initialize(this, name); } /** * Initializes the fields of this object. @@ -108516,55 +187271,75 @@ var UpdateAuthMethod = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethod, null, [{ + _createClass(UpdateCertificateValue, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateCertificateValue from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethod} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethod} The populated UpdateAuthMethod instance. + * @param {module:model/UpdateCertificateValue} obj Optional instance to populate. + * @return {module:model/UpdateCertificateValue} The populated UpdateCertificateValue instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethod(); + obj = obj || new UpdateCertificateValue(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } + + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } if (data.hasOwnProperty('token')) { @@ -108580,78 +187355,106 @@ var UpdateAuthMethod = /*#__PURE__*/function () { } }]); - return UpdateAuthMethod; + return UpdateCertificateValue; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -UpdateAuthMethod.prototype['access-expires'] = 0; +UpdateCertificateValue.prototype['add-tag'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Content of the certificate in a Base64 format. + * @member {String} certificate-data */ -UpdateAuthMethod.prototype['bound-ips'] = undefined; +UpdateCertificateValue.prototype['certificate-data'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -UpdateAuthMethod.prototype['force-sub-claims'] = undefined; +UpdateCertificateValue.prototype['delete_protection'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Description of the object + * @member {String} description */ -UpdateAuthMethod.prototype['gw-bound-ips'] = undefined; +UpdateCertificateValue.prototype['description'] = undefined; +/** + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in + */ + +UpdateCertificateValue.prototype['expiration-event-in'] = undefined; +/** + * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. + * @member {String} format + */ + +UpdateCertificateValue.prototype['format'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAuthMethod.prototype['json'] = false; +UpdateCertificateValue.prototype['json'] = false; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateAuthMethod.prototype['jwt-ttl'] = 0; +UpdateCertificateValue.prototype['keep-prev-version'] = undefined; /** - * Auth Method name + * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +UpdateCertificateValue.prototype['key'] = undefined; +/** + * Content of the certificate's private key in a Base64 format. + * @member {String} key-data + */ + +UpdateCertificateValue.prototype['key-data'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +UpdateCertificateValue.prototype['metadata'] = undefined; +/** + * Certificate name * @member {String} name */ -UpdateAuthMethod.prototype['name'] = undefined; +UpdateCertificateValue.prototype['name'] = undefined; /** - * Auth Method new name - * @member {String} new-name + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -UpdateAuthMethod.prototype['new-name'] = undefined; +UpdateCertificateValue.prototype['rm-tag'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethod.prototype['token'] = undefined; +UpdateCertificateValue.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethod.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethod; +UpdateCertificateValue.prototype['uid-token'] = undefined; +var _default = UpdateCertificateValue; exports["default"] = _default; /***/ }), -/***/ 47929: +/***/ 94908: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -108662,7 +187465,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -108673,22 +187476,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodAWSIAM model module. - * @module model/UpdateAuthMethodAWSIAM - * @version 3.3.16 + * The UpdateClassicKeyCertificate model module. + * @module model/UpdateClassicKeyCertificate + * @version 3.6.3 */ -var UpdateAuthMethodAWSIAM = /*#__PURE__*/function () { +var UpdateClassicKeyCertificate = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodAWSIAM. - * updateAuthMethodAWSIAM is a command that updates a new Auth Method that will be able to authenticate using AWS IAM credentials. - * @alias module:model/UpdateAuthMethodAWSIAM - * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to - * @param name {String} Auth Method name + * Constructs a new UpdateClassicKeyCertificate. + * UpdateClassicKeyCertificate is a command that updates the certificate for a classic key + * @alias module:model/UpdateClassicKeyCertificate + * @param name {String} ClassicKey name */ - function UpdateAuthMethodAWSIAM(boundAwsAccountId, name) { - _classCallCheck(this, UpdateAuthMethodAWSIAM); + function UpdateClassicKeyCertificate(name) { + _classCallCheck(this, UpdateClassicKeyCertificate); - UpdateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); + UpdateClassicKeyCertificate.initialize(this, name); } /** * Initializes the fields of this object. @@ -108697,90 +187499,37 @@ var UpdateAuthMethodAWSIAM = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodAWSIAM, null, [{ + _createClass(UpdateClassicKeyCertificate, null, [{ key: "initialize", - value: function initialize(obj, boundAwsAccountId, name) { - obj['bound-aws-account-id'] = boundAwsAccountId; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateClassicKeyCertificate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodAWSIAM} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodAWSIAM} The populated UpdateAuthMethodAWSIAM instance. + * @param {module:model/UpdateClassicKeyCertificate} obj Optional instance to populate. + * @return {module:model/UpdateClassicKeyCertificate} The populated UpdateClassicKeyCertificate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodAWSIAM(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-arn')) { - obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); - } - - if (data.hasOwnProperty('bound-aws-account-id')) { - obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); - } - - if (data.hasOwnProperty('bound-role-id')) { - obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); - } - - if (data.hasOwnProperty('bound-role-name')) { - obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); - } - - if (data.hasOwnProperty('bound-user-id')) { - obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); - } - - if (data.hasOwnProperty('bound-user-name')) { - obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } + obj = obj || new UpdateClassicKeyCertificate(); - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('sts-url')) { - obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -108794,127 +187543,46 @@ var UpdateAuthMethodAWSIAM = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodAWSIAM; + return UpdateClassicKeyCertificate; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodAWSIAM.prototype['access-expires'] = 0; -/** - * A list of full arns that the access is restricted to - * @member {Array.} bound-arn - */ - -UpdateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; -/** - * A list of AWS account-IDs that the access is restricted to - * @member {Array.} bound-aws-account-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; -/** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; -/** - * A list of full role ids that the access is restricted to - * @member {Array.} bound-role-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; -/** - * A list of full role-name that the access is restricted to - * @member {Array.} bound-role-name - */ - -UpdateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; -/** - * A list of full user ids that the access is restricted to - * @member {Array.} bound-user-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; -/** - * A list of full user-name that the access is restricted to - * @member {Array.} bound-user-name - */ - -UpdateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. + * @member {String} cert-file-data */ -UpdateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ -UpdateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; +UpdateClassicKeyCertificate.prototype['cert-file-data'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAuthMethodAWSIAM.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; +UpdateClassicKeyCertificate.prototype['json'] = false; /** - * Auth Method name + * ClassicKey name * @member {String} name */ -UpdateAuthMethodAWSIAM.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodAWSIAM.prototype['new-name'] = undefined; -/** - * sts URL - * @member {String} sts-url - * @default 'https://sts.amazonaws.com' - */ - -UpdateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; +UpdateClassicKeyCertificate.prototype['name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethodAWSIAM.prototype['token'] = undefined; +UpdateClassicKeyCertificate.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethodAWSIAM.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodAWSIAM; +UpdateClassicKeyCertificate.prototype['uid-token'] = undefined; +var _default = UpdateClassicKeyCertificate; exports["default"] = _default; /***/ }), -/***/ 52264: +/***/ 53451: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -108925,7 +187593,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -108936,22 +187604,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodAzureAD model module. - * @module model/UpdateAuthMethodAzureAD - * @version 3.3.16 + * The UpdateDBTarget model module. + * @module model/UpdateDBTarget + * @version 3.6.3 */ -var UpdateAuthMethodAzureAD = /*#__PURE__*/function () { +var UpdateDBTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodAzureAD. - * updateAuthMethodAzureAD is a command that updates a new auth method that will be able to authenticate using Azure Active Directory credentials. - * @alias module:model/UpdateAuthMethodAzureAD - * @param boundTenantId {String} The Azure tenant id that the access is restricted to - * @param name {String} Auth Method name + * Constructs a new UpdateDBTarget. + * @alias module:model/UpdateDBTarget + * @param connectionType {String} (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @param dbType {String} + * @param name {String} Target name */ - function UpdateAuthMethodAzureAD(boundTenantId, name) { - _classCallCheck(this, UpdateAuthMethodAzureAD); + function UpdateDBTarget(connectionType, dbType, name) { + _classCallCheck(this, UpdateDBTarget); - UpdateAuthMethodAzureAD.initialize(this, boundTenantId, name); + UpdateDBTarget.initialize(this, connectionType, dbType, name); } /** * Initializes the fields of this object. @@ -108960,96 +187628,117 @@ var UpdateAuthMethodAzureAD = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodAzureAD, null, [{ + _createClass(UpdateDBTarget, null, [{ key: "initialize", - value: function initialize(obj, boundTenantId, name) { - obj['bound-tenant-id'] = boundTenantId; + value: function initialize(obj, connectionType, dbType, name) { + obj['connection-type'] = connectionType; + obj['db-type'] = dbType; obj['name'] = name; } /** - * Constructs a UpdateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateDBTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodAzureAD} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodAzureAD} The populated UpdateAuthMethodAzureAD instance. + * @param {module:model/UpdateDBTarget} obj Optional instance to populate. + * @return {module:model/UpdateDBTarget} The populated UpdateDBTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodAzureAD(); + obj = obj || new UpdateDBTarget(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('DBDefinedConnectionType')) { + obj['DBDefinedConnectionType'] = _ApiClient["default"].convertToType(data['DBDefinedConnectionType'], 'String'); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); } - if (data.hasOwnProperty('bound-group-id')) { - obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); } - if (data.hasOwnProperty('bound-providers')) { - obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); + if (data.hasOwnProperty('cloud-service-provider')) { + obj['cloud-service-provider'] = _ApiClient["default"].convertToType(data['cloud-service-provider'], 'String'); } - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('bound-resource-names')) { - obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); + if (data.hasOwnProperty('connection-type')) { + obj['connection-type'] = _ApiClient["default"].convertToType(data['connection-type'], 'String'); } - if (data.hasOwnProperty('bound-resource-types')) { - obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); } - if (data.hasOwnProperty('bound-rg-id')) { - obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); } - if (data.hasOwnProperty('bound-spid')) { - obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); } - if (data.hasOwnProperty('bound-sub-id')) { - obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); + if (data.hasOwnProperty('db-type')) { + obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); } - if (data.hasOwnProperty('bound-tenant-id')) { - obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('mongodb-atlas')) { + obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } + + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); } if (data.hasOwnProperty('name')) { @@ -109060,6 +187749,38 @@ var UpdateAuthMethodAzureAD = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('pwd')) { + obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); + } + + if (data.hasOwnProperty('snowflake-account')) { + obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); + } + + if (data.hasOwnProperty('snowflake-api-private-key')) { + obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('snowflake-api-private-key-password')) { + obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -109067,523 +187788,244 @@ var UpdateAuthMethodAzureAD = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('user-name')) { + obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); + } } return obj; } }]); - return UpdateAuthMethodAzureAD; + return UpdateDBTarget; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodAzureAD.prototype['access-expires'] = 0; -/** - * The audience in the JWT - * @member {String} audience - * @default 'https://management.azure.com/' + * @member {String} DBDefinedConnectionType */ -UpdateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; -/** - * A list of group ids that the access is restricted to - * @member {Array.} bound-group-id - */ -UpdateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; +UpdateDBTarget.prototype['DBDefinedConnectionType'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * (Optional) Client id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-id */ -UpdateAuthMethodAzureAD.prototype['bound-ips'] = undefined; +UpdateDBTarget.prototype['azure-client-id'] = undefined; /** - * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) - * @member {Array.} bound-providers + * (Optional) Client secret (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-secret */ -UpdateAuthMethodAzureAD.prototype['bound-providers'] = undefined; +UpdateDBTarget.prototype['azure-client-secret'] = undefined; /** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id + * (Optional) Tenant id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-tenant-id */ -UpdateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; +UpdateDBTarget.prototype['azure-tenant-id'] = undefined; /** - * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). - * @member {Array.} bound-resource-names + * (Optional) Cloud service provider (currently only supports Azure) + * @member {String} cloud-service-provider */ -UpdateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; +UpdateDBTarget.prototype['cloud-service-provider'] = undefined; /** - * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) - * @member {Array.} bound-resource-types + * Deprecated - use description + * @member {String} comment */ -UpdateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; +UpdateDBTarget.prototype['comment'] = undefined; /** - * A list of resource groups that the access is restricted to - * @member {Array.} bound-rg-id + * (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @member {String} connection-type + * @default 'credentials' */ -UpdateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; +UpdateDBTarget.prototype['connection-type'] = 'credentials'; /** - * A list of service principal IDs that the access is restricted to - * @member {Array.} bound-spid + * @member {String} db-name */ -UpdateAuthMethodAzureAD.prototype['bound-spid'] = undefined; +UpdateDBTarget.prototype['db-name'] = undefined; /** - * A list of subscription ids that the access is restricted to - * @member {Array.} bound-sub-id + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -UpdateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; +UpdateDBTarget.prototype['db-server-certificates'] = undefined; /** - * The Azure tenant id that the access is restricted to - * @member {String} bound-tenant-id + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -UpdateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; +UpdateDBTarget.prototype['db-server-name'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * @member {String} db-type */ -UpdateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; +UpdateDBTarget.prototype['db-type'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Description of the object + * @member {String} description */ -UpdateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; +UpdateDBTarget.prototype['description'] = undefined; /** - * Issuer URL - * @member {String} issuer - * @default 'https://sts.windows.net/---bound_tenant_id---' + * @member {String} host */ -UpdateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; +UpdateDBTarget.prototype['host'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAuthMethodAzureAD.prototype['json'] = false; -/** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'https://login.microsoftonline.com/common/discovery/keys' - */ - -UpdateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodAzureAD.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodAzureAD.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodAzureAD.prototype['token'] = undefined; +UpdateDBTarget.prototype['json'] = false; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateAuthMethodAzureAD.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodAzureAD; -exports["default"] = _default; - -/***/ }), - -/***/ 61716: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +UpdateDBTarget.prototype['keep-prev-version'] = undefined; /** - * The UpdateAuthMethodCert model module. - * @module model/UpdateAuthMethodCert - * @version 3.3.16 + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -var UpdateAuthMethodCert = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodCert. - * updateAuthMethodCert is a command that updates a new auth method that will be able to authenticate using a client certificae - * @alias module:model/UpdateAuthMethodCert - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function UpdateAuthMethodCert(name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodCert); - - UpdateAuthMethodCert.initialize(this, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodCert, null, [{ - key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a UpdateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodCert} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodCert} The populated UpdateAuthMethodCert instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodCert(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-cors')) { - obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); - } - - if (data.hasOwnProperty('bound-common-names')) { - obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); - } - - if (data.hasOwnProperty('bound-dns-sans')) { - obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); - } - - if (data.hasOwnProperty('bound-email-sans')) { - obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); - } - - if (data.hasOwnProperty('bound-extensions')) { - obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-organizational-units')) { - obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); - } - - if (data.hasOwnProperty('bound-uri-sans')) { - obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); - } - - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('revoked-cert-ids')) { - obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - return obj; - } - }]); - - return UpdateAuthMethodCert; -}(); +UpdateDBTarget.prototype['key'] = undefined; /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ - -UpdateAuthMethodCert.prototype['access-expires'] = 0; +UpdateDBTarget.prototype['max-versions'] = undefined; /** - * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. - * @member {String} allowed-cors + * @member {Boolean} mongodb-atlas */ -UpdateAuthMethodCert.prototype['allowed-cors'] = undefined; +UpdateDBTarget.prototype['mongodb-atlas'] = undefined; /** - * A list of names. At least one must exist in the Common Name. Supports globbing. - * @member {Array.} bound-common-names + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key */ -UpdateAuthMethodCert.prototype['bound-common-names'] = undefined; +UpdateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; /** - * A list of DNS names. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-dns-sans + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key */ -UpdateAuthMethodCert.prototype['bound-dns-sans'] = undefined; +UpdateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; /** - * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-email-sans + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id */ -UpdateAuthMethodCert.prototype['bound-email-sans'] = undefined; +UpdateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; /** - * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". - * @member {Array.} bound-extensions + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db */ -UpdateAuthMethodCert.prototype['bound-extensions'] = undefined; +UpdateDBTarget.prototype['mongodb-default-auth-db'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * MongoDB server URI options + * @member {String} mongodb-uri-options */ -UpdateAuthMethodCert.prototype['bound-ips'] = undefined; +UpdateDBTarget.prototype['mongodb-uri-options'] = undefined; /** - * A list of Organizational Units names. At least one must exist in the OU field. - * @member {Array.} bound-organizational-units + * Target name + * @member {String} name */ -UpdateAuthMethodCert.prototype['bound-organizational-units'] = undefined; +UpdateDBTarget.prototype['name'] = undefined; /** - * A list of URIs. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-uri-sans + * New target name + * @member {String} new-name */ -UpdateAuthMethodCert.prototype['bound-uri-sans'] = undefined; +UpdateDBTarget.prototype['new-name'] = undefined; /** - * The certificate data in base64, if no file was provided - * @member {String} certificate-data + * @member {String} oracle-service-name */ -UpdateAuthMethodCert.prototype['certificate-data'] = undefined; +UpdateDBTarget.prototype['oracle-service-name'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * @member {String} port */ -UpdateAuthMethodCert.prototype['force-sub-claims'] = undefined; +UpdateDBTarget.prototype['port'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * @member {String} pwd */ -UpdateAuthMethodCert.prototype['gw-bound-ips'] = undefined; +UpdateDBTarget.prototype['pwd'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} snowflake-account */ -UpdateAuthMethodCert.prototype['json'] = false; +UpdateDBTarget.prototype['snowflake-account'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * RSA Private key (base64 encoded) + * @member {String} snowflake-api-private-key */ -UpdateAuthMethodCert.prototype['jwt-ttl'] = 0; +UpdateDBTarget.prototype['snowflake-api-private-key'] = undefined; /** - * Auth Method name - * @member {String} name + * The Private key passphrase + * @member {String} snowflake-api-private-key-password */ -UpdateAuthMethodCert.prototype['name'] = undefined; +UpdateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; /** - * Auth Method new name - * @member {String} new-name + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false */ -UpdateAuthMethodCert.prototype['new-name'] = undefined; +UpdateDBTarget.prototype['ssl'] = false; /** - * A list of revoked cert ids - * @member {Array.} revoked-cert-ids + * SSL connection certificate + * @member {String} ssl-certificate */ -UpdateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; +UpdateDBTarget.prototype['ssl-certificate'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethodCert.prototype['token'] = undefined; +UpdateDBTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethodCert.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -UpdateAuthMethodCert.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodCert; -exports["default"] = _default; - -/***/ }), - -/***/ 29461: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +UpdateDBTarget.prototype['uid-token'] = undefined; /** - * The UpdateAuthMethodCertOutput model module. - * @module model/UpdateAuthMethodCertOutput - * @version 3.3.16 + * Deprecated + * @member {Boolean} update-version */ -var UpdateAuthMethodCertOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodCertOutput. - * @alias module:model/UpdateAuthMethodCertOutput - */ - function UpdateAuthMethodCertOutput() { - _classCallCheck(this, UpdateAuthMethodCertOutput); - UpdateAuthMethodCertOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodCertOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodCertOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodCertOutput} The populated UpdateAuthMethodCertOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodCertOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodCertOutput; -}(); +UpdateDBTarget.prototype['update-version'] = undefined; /** - * @member {String} access_id + * @member {String} user-name */ - -UpdateAuthMethodCertOutput.prototype['access_id'] = undefined; -var _default = UpdateAuthMethodCertOutput; +UpdateDBTarget.prototype['user-name'] = undefined; +var _default = UpdateDBTarget; exports["default"] = _default; /***/ }), -/***/ 20874: +/***/ 25405: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -109594,7 +188036,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -109605,23 +188047,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodGCP model module. - * @module model/UpdateAuthMethodGCP - * @version 3.3.16 + * The UpdateDBTargetDetails model module. + * @module model/UpdateDBTargetDetails + * @version 3.6.3 */ -var UpdateAuthMethodGCP = /*#__PURE__*/function () { +var UpdateDBTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodGCP. - * updateAuthMethodGCP is a command that updates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. - * @alias module:model/UpdateAuthMethodGCP - * @param audience {String} The audience to verify in the JWT received by the client - * @param name {String} Auth Method name - * @param type {String} Type of the GCP Access Rules + * Constructs a new UpdateDBTargetDetails. + * @alias module:model/UpdateDBTargetDetails + * @param name {String} Target name */ - function UpdateAuthMethodGCP(audience, name, type) { - _classCallCheck(this, UpdateAuthMethodGCP); + function UpdateDBTargetDetails(name) { + _classCallCheck(this, UpdateDBTargetDetails); - UpdateAuthMethodGCP.initialize(this, audience, name, type); + UpdateDBTargetDetails.initialize(this, name); } /** * Initializes the fields of this object. @@ -109630,225 +188069,255 @@ var UpdateAuthMethodGCP = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodGCP, null, [{ + _createClass(UpdateDBTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, audience, name, type) { - obj['audience'] = audience; + value: function initialize(obj, name) { obj['name'] = name; - obj['type'] = type; } /** - * Constructs a UpdateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateDBTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodGCP} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodGCP} The populated UpdateAuthMethodGCP instance. + * @param {module:model/UpdateDBTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateDBTargetDetails} The populated UpdateDBTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodGCP(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-labels')) { - obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); - } + obj = obj || new UpdateDBTargetDetails(); - if (data.hasOwnProperty('bound-projects')) { - obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); + if (data.hasOwnProperty('db_type')) { + obj['db_type'] = _ApiClient["default"].convertToType(data['db_type'], 'String'); } - if (data.hasOwnProperty('bound-regions')) { - obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); + if (data.hasOwnProperty('host_name')) { + obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); } - if (data.hasOwnProperty('bound-service-accounts')) { - obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('bound-zones')) { - obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('mongo_db_name')) { + obj['mongo_db_name'] = _ApiClient["default"].convertToType(data['mongo_db_name'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('mongo_uri')) { + obj['mongo_uri'] = _ApiClient["default"].convertToType(data['mongo_uri'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (data.hasOwnProperty('service-account-creds-data')) { - obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); + if (data.hasOwnProperty('pwd')) { + obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + } } return obj; } }]); - return UpdateAuthMethodGCP; + return UpdateDBTargetDetails; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * @member {String} db_type */ -UpdateAuthMethodGCP.prototype['access-expires'] = 0; +UpdateDBTargetDetails.prototype['db_type'] = undefined; /** - * The audience to verify in the JWT received by the client - * @member {String} audience - * @default 'akeyless.io' + * @member {String} host_name */ -UpdateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; +UpdateDBTargetDetails.prototype['host_name'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateAuthMethodGCP.prototype['bound-ips'] = undefined; +UpdateDBTargetDetails.prototype['json'] = false; /** - * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... - * @member {Array.} bound-labels + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateAuthMethodGCP.prototype['bound-labels'] = undefined; +UpdateDBTargetDetails.prototype['keep-prev-version'] = undefined; /** - * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. - * @member {Array.} bound-projects + * @member {String} mongo_db_name */ -UpdateAuthMethodGCP.prototype['bound-projects'] = undefined; +UpdateDBTargetDetails.prototype['mongo_db_name'] = undefined; /** - * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. - * @member {Array.} bound-regions + * @member {String} mongo_uri */ -UpdateAuthMethodGCP.prototype['bound-regions'] = undefined; +UpdateDBTargetDetails.prototype['mongo_uri'] = undefined; /** - * List of service accounts the service account must be part of in order to be authenticated. - * @member {Array.} bound-service-accounts + * Target name + * @member {String} name */ -UpdateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; +UpdateDBTargetDetails.prototype['name'] = undefined; /** - * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. - * @member {Array.} bound-zones + * Deprecated + * @member {Boolean} new-version */ -UpdateAuthMethodGCP.prototype['bound-zones'] = undefined; +UpdateDBTargetDetails.prototype['new-version'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * @member {String} port */ -UpdateAuthMethodGCP.prototype['force-sub-claims'] = undefined; +UpdateDBTargetDetails.prototype['port'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key */ -UpdateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; +UpdateDBTargetDetails.prototype['protection_key'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * @member {String} pwd */ -UpdateAuthMethodGCP.prototype['json'] = false; +UpdateDBTargetDetails.prototype['pwd'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -UpdateAuthMethodGCP.prototype['jwt-ttl'] = 0; +UpdateDBTargetDetails.prototype['token'] = undefined; /** - * Auth Method name - * @member {String} name + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -UpdateAuthMethodGCP.prototype['name'] = undefined; +UpdateDBTargetDetails.prototype['uid-token'] = undefined; /** - * Auth Method new name - * @member {String} new-name + * @member {String} user_name */ -UpdateAuthMethodGCP.prototype['new-name'] = undefined; -/** - * ServiceAccount credentials data instead of giving a file path, base64 encoded - * @member {String} service-account-creds-data - */ +UpdateDBTargetDetails.prototype['user_name'] = undefined; +var _default = UpdateDBTargetDetails; +exports["default"] = _default; -UpdateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ +/***/ }), + +/***/ 64650: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -UpdateAuthMethodGCP.prototype['token'] = undefined; /** - * Type of the GCP Access Rules - * @member {String} type + * The UpdateDBTargetOutput model module. + * @module model/UpdateDBTargetOutput + * @version 3.6.3 */ +var UpdateDBTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateDBTargetOutput. + * @alias module:model/UpdateDBTargetOutput + */ + function UpdateDBTargetOutput() { + _classCallCheck(this, UpdateDBTargetOutput); -UpdateAuthMethodGCP.prototype['type'] = undefined; + UpdateDBTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateDBTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDBTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateDBTargetOutput} The populated UpdateDBTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDBTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return UpdateDBTargetOutput; +}(); /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {Number} target_id */ -UpdateAuthMethodGCP.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodGCP; + +UpdateDBTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateDBTargetOutput; exports["default"] = _default; /***/ }), -/***/ 58265: +/***/ 35588: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -109859,7 +188328,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -109870,21 +188339,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodK8S model module. - * @module model/UpdateAuthMethodK8S - * @version 3.3.16 + * The UpdateDockerhubTarget model module. + * @module model/UpdateDockerhubTarget + * @version 3.6.3 */ -var UpdateAuthMethodK8S = /*#__PURE__*/function () { +var UpdateDockerhubTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodK8S. - * updateAuthMethodK8S is a command that updates a new auth method that will be able to authenticate using K8S. - * @alias module:model/UpdateAuthMethodK8S - * @param name {String} Auth Method name + * Constructs a new UpdateDockerhubTarget. + * @alias module:model/UpdateDockerhubTarget + * @param name {String} Target name */ - function UpdateAuthMethodK8S(name) { - _classCallCheck(this, UpdateAuthMethodK8S); + function UpdateDockerhubTarget(name) { + _classCallCheck(this, UpdateDockerhubTarget); - UpdateAuthMethodK8S.initialize(this, name); + UpdateDockerhubTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -109893,67 +188361,55 @@ var UpdateAuthMethodK8S = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodK8S, null, [{ + _createClass(UpdateDockerhubTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodK8S} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodK8S} The populated UpdateAuthMethodK8S instance. + * @param {module:model/UpdateDockerhubTarget} obj Optional instance to populate. + * @return {module:model/UpdateDockerhubTarget} The populated UpdateDockerhubTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodK8S(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } + obj = obj || new UpdateDockerhubTarget(); - if (data.hasOwnProperty('bound-namespaces')) { - obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('bound-pod-names')) { - obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('bound-sa-names')) { - obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); } - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { @@ -109964,10 +188420,6 @@ var UpdateAuthMethodK8S = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('public-key')) { - obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -109975,120 +188427,102 @@ var UpdateAuthMethodK8S = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } } return obj; } }]); - return UpdateAuthMethodK8S; + return UpdateDockerhubTarget; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodK8S.prototype['access-expires'] = 0; -/** - * The audience in the Kubernetes JWT that the access is restricted to - * @member {String} audience - */ - -UpdateAuthMethodK8S.prototype['audience'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Deprecated - use description + * @member {String} comment */ -UpdateAuthMethodK8S.prototype['bound-ips'] = undefined; -/** - * A list of namespaces that the access is restricted to - * @member {Array.} bound-namespaces - */ -UpdateAuthMethodK8S.prototype['bound-namespaces'] = undefined; +UpdateDockerhubTarget.prototype['comment'] = undefined; /** - * A list of pod names that the access is restricted to - * @member {Array.} bound-pod-names + * Description of the object + * @member {String} description */ -UpdateAuthMethodK8S.prototype['bound-pod-names'] = undefined; +UpdateDockerhubTarget.prototype['description'] = undefined; /** - * A list of service account names that the access is restricted to - * @member {Array.} bound-sa-names + * @member {String} dockerhub-password */ -UpdateAuthMethodK8S.prototype['bound-sa-names'] = undefined; +UpdateDockerhubTarget.prototype['dockerhub-password'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * @member {String} dockerhub-username */ -UpdateAuthMethodK8S.prototype['force-sub-claims'] = undefined; +UpdateDockerhubTarget.prototype['dockerhub-username'] = undefined; /** - * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateAuthMethodK8S.prototype['gen-key'] = undefined; +UpdateDockerhubTarget.prototype['json'] = false; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; +UpdateDockerhubTarget.prototype['keep-prev-version'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateAuthMethodK8S.prototype['json'] = false; +UpdateDockerhubTarget.prototype['key'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateAuthMethodK8S.prototype['jwt-ttl'] = 0; +UpdateDockerhubTarget.prototype['max-versions'] = undefined; /** - * Auth Method name + * Target name * @member {String} name */ -UpdateAuthMethodK8S.prototype['name'] = undefined; +UpdateDockerhubTarget.prototype['name'] = undefined; /** - * Auth Method new name + * New target name * @member {String} new-name */ -UpdateAuthMethodK8S.prototype['new-name'] = undefined; -/** - * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] - * @member {String} public-key - */ - -UpdateAuthMethodK8S.prototype['public-key'] = undefined; +UpdateDockerhubTarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethodK8S.prototype['token'] = undefined; +UpdateDockerhubTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethodK8S.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodK8S; +UpdateDockerhubTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateDockerhubTarget.prototype['update-version'] = undefined; +var _default = UpdateDockerhubTarget; exports["default"] = _default; /***/ }), -/***/ 42044: +/***/ 90229: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -110099,7 +188533,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -110110,19 +188544,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodK8SOutput model module. - * @module model/UpdateAuthMethodK8SOutput - * @version 3.3.16 + * The UpdateDockerhubTargetOutput model module. + * @module model/UpdateDockerhubTargetOutput + * @version 3.6.3 */ -var UpdateAuthMethodK8SOutput = /*#__PURE__*/function () { +var UpdateDockerhubTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodK8SOutput. - * @alias module:model/UpdateAuthMethodK8SOutput + * Constructs a new UpdateDockerhubTargetOutput. + * @alias module:model/UpdateDockerhubTargetOutput */ - function UpdateAuthMethodK8SOutput() { - _classCallCheck(this, UpdateAuthMethodK8SOutput); + function UpdateDockerhubTargetOutput() { + _classCallCheck(this, UpdateDockerhubTargetOutput); - UpdateAuthMethodK8SOutput.initialize(this); + UpdateDockerhubTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -110131,25 +188565,25 @@ var UpdateAuthMethodK8SOutput = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodK8SOutput, null, [{ + _createClass(UpdateDockerhubTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodK8SOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodK8SOutput} The populated UpdateAuthMethodK8SOutput instance. + * @param {module:model/UpdateDockerhubTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateDockerhubTargetOutput} The populated UpdateDockerhubTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodK8SOutput(); + obj = obj || new UpdateDockerhubTargetOutput(); - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } @@ -110157,20 +188591,20 @@ var UpdateAuthMethodK8SOutput = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodK8SOutput; + return UpdateDockerhubTargetOutput; }(); /** - * @member {String} prv_key + * @member {Number} target_id */ -UpdateAuthMethodK8SOutput.prototype['prv_key'] = undefined; -var _default = UpdateAuthMethodK8SOutput; +UpdateDockerhubTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateDockerhubTargetOutput; exports["default"] = _default; /***/ }), -/***/ 54568: +/***/ 26894: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -110181,7 +188615,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -110192,21 +188626,25 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodLDAP model module. - * @module model/UpdateAuthMethodLDAP - * @version 3.3.16 + * The UpdateEKSTarget model module. + * @module model/UpdateEKSTarget + * @version 3.6.3 */ -var UpdateAuthMethodLDAP = /*#__PURE__*/function () { +var UpdateEKSTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodLDAP. - * updateAuthMethodLDAP is a command that updates a new auth method that will be able to authenticate using LDAP. - * @alias module:model/UpdateAuthMethodLDAP - * @param name {String} Auth Method name + * Constructs a new UpdateEKSTarget. + * @alias module:model/UpdateEKSTarget + * @param eksAccessKeyId {String} Access Key ID + * @param eksClusterCaCert {String} EKS cluster CA certificate + * @param eksClusterEndpoint {String} EKS cluster URL endpoint + * @param eksClusterName {String} EKS cluster name + * @param eksSecretAccessKey {String} Secret Access Key + * @param name {String} Target name */ - function UpdateAuthMethodLDAP(name) { - _classCallCheck(this, UpdateAuthMethodLDAP); + function UpdateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + _classCallCheck(this, UpdateEKSTarget); - UpdateAuthMethodLDAP.initialize(this, name); + UpdateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); } /** * Initializes the fields of this object. @@ -110215,51 +188653,76 @@ var UpdateAuthMethodLDAP = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodLDAP, null, [{ + _createClass(UpdateEKSTarget, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + obj['eks-access-key-id'] = eksAccessKeyId; + obj['eks-cluster-ca-cert'] = eksClusterCaCert; + obj['eks-cluster-endpoint'] = eksClusterEndpoint; + obj['eks-cluster-name'] = eksClusterName; + obj['eks-secret-access-key'] = eksSecretAccessKey; obj['name'] = name; } /** - * Constructs a UpdateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateEKSTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodLDAP} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodLDAP} The populated UpdateAuthMethodLDAP instance. + * @param {module:model/UpdateEKSTarget} obj Optional instance to populate. + * @return {module:model/UpdateEKSTarget} The populated UpdateEKSTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodLDAP(); + obj = obj || new UpdateEKSTarget(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); } - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { @@ -110270,10 +188733,6 @@ var UpdateAuthMethodLDAP = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('public-key-data')) { - obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -110282,8 +188741,12 @@ var UpdateAuthMethodLDAP = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); } } @@ -110291,97 +188754,124 @@ var UpdateAuthMethodLDAP = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodLDAP; + return UpdateEKSTarget; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Deprecated - use description + * @member {String} comment */ -UpdateAuthMethodLDAP.prototype['access-expires'] = 0; +UpdateEKSTarget.prototype['comment'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Description of the object + * @member {String} description */ -UpdateAuthMethodLDAP.prototype['bound-ips'] = undefined; +UpdateEKSTarget.prototype['description'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Access Key ID + * @member {String} eks-access-key-id */ -UpdateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; +UpdateEKSTarget.prototype['eks-access-key-id'] = undefined; /** - * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert */ -UpdateAuthMethodLDAP.prototype['gen-key'] = undefined; +UpdateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint */ -UpdateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; +UpdateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +UpdateEKSTarget.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +UpdateEKSTarget.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +UpdateEKSTarget.prototype['eks-secret-access-key'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAuthMethodLDAP.prototype['json'] = false; +UpdateEKSTarget.prototype['json'] = false; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateAuthMethodLDAP.prototype['jwt-ttl'] = 0; +UpdateEKSTarget.prototype['keep-prev-version'] = undefined; /** - * Auth Method name - * @member {String} name + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateAuthMethodLDAP.prototype['name'] = undefined; +UpdateEKSTarget.prototype['key'] = undefined; /** - * Auth Method new name - * @member {String} new-name + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateAuthMethodLDAP.prototype['new-name'] = undefined; +UpdateEKSTarget.prototype['max-versions'] = undefined; /** - * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] - * @member {String} public-key-data + * Target name + * @member {String} name */ -UpdateAuthMethodLDAP.prototype['public-key-data'] = undefined; +UpdateEKSTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ + +UpdateEKSTarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethodLDAP.prototype['token'] = undefined; +UpdateEKSTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethodLDAP.prototype['uid-token'] = undefined; +UpdateEKSTarget.prototype['uid-token'] = undefined; /** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - * @default 'users' + * Deprecated + * @member {Boolean} update-version */ -UpdateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; -var _default = UpdateAuthMethodLDAP; +UpdateEKSTarget.prototype['update-version'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +UpdateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateEKSTarget; exports["default"] = _default; /***/ }), -/***/ 86107: +/***/ 95963: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -110392,7 +188882,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -110403,19 +188893,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodLDAPOutput model module. - * @module model/UpdateAuthMethodLDAPOutput - * @version 3.3.16 + * The UpdateEKSTargetOutput model module. + * @module model/UpdateEKSTargetOutput + * @version 3.6.3 */ -var UpdateAuthMethodLDAPOutput = /*#__PURE__*/function () { +var UpdateEKSTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodLDAPOutput. - * @alias module:model/UpdateAuthMethodLDAPOutput + * Constructs a new UpdateEKSTargetOutput. + * @alias module:model/UpdateEKSTargetOutput */ - function UpdateAuthMethodLDAPOutput() { - _classCallCheck(this, UpdateAuthMethodLDAPOutput); + function UpdateEKSTargetOutput() { + _classCallCheck(this, UpdateEKSTargetOutput); - UpdateAuthMethodLDAPOutput.initialize(this); + UpdateEKSTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -110424,25 +188914,25 @@ var UpdateAuthMethodLDAPOutput = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodLDAPOutput, null, [{ + _createClass(UpdateEKSTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodLDAPOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodLDAPOutput} The populated UpdateAuthMethodLDAPOutput instance. + * @param {module:model/UpdateEKSTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateEKSTargetOutput} The populated UpdateEKSTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodLDAPOutput(); + obj = obj || new UpdateEKSTargetOutput(); - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } @@ -110450,20 +188940,20 @@ var UpdateAuthMethodLDAPOutput = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodLDAPOutput; + return UpdateEKSTargetOutput; }(); /** - * @member {String} prv_key + * @member {Number} target_id */ -UpdateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; -var _default = UpdateAuthMethodLDAPOutput; +UpdateEKSTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateEKSTargetOutput; exports["default"] = _default; /***/ }), -/***/ 39705: +/***/ 46006: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -110474,7 +188964,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -110485,23 +188975,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodOAuth2 model module. - * @module model/UpdateAuthMethodOAuth2 - * @version 3.3.16 + * The UpdateEventForwarder model module. + * @module model/UpdateEventForwarder + * @version 3.6.3 */ -var UpdateAuthMethodOAuth2 = /*#__PURE__*/function () { +var UpdateEventForwarder = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodOAuth2. - * updateAuthMethodOAuth2 is a command that updates a new auth method that will be able to authenticate using Oauth2. - * @alias module:model/UpdateAuthMethodOAuth2 - * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * Constructs a new UpdateEventForwarder. + * updateEventForwarder is a command that updates an event forwarder [Deprecated - please use event-forwarder-update-* command] + * @alias module:model/UpdateEventForwarder + * @param name {String} EventForwarder name */ - function UpdateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodOAuth2); + function UpdateEventForwarder(name) { + _classCallCheck(this, UpdateEventForwarder); - UpdateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); + UpdateEventForwarder.initialize(this, name); } /** * Initializes the fields of this object. @@ -110510,75 +188998,73 @@ var UpdateAuthMethodOAuth2 = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodOAuth2, null, [{ + _createClass(UpdateEventForwarder, null, [{ key: "initialize", - value: function initialize(obj, jwksUri, name, uniqueIdentifier) { - obj['jwks-uri'] = jwksUri; + value: function initialize(obj, name) { obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a UpdateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateEventForwarder from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodOAuth2} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodOAuth2} The populated UpdateAuthMethodOAuth2 instance. + * @param {module:model/UpdateEventForwarder} obj Optional instance to populate. + * @return {module:model/UpdateEventForwarder} The populated UpdateEventForwarder instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodOAuth2(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } + obj = obj || new UpdateEventForwarder(); - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('admin-name')) { + obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); } - if (data.hasOwnProperty('bound-client-ids')) { - obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('event-source-locations')) { + obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); } - if (data.hasOwnProperty('jwks-json-data')) { - obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); } - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-comment')) { + obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); + } + if (data.hasOwnProperty('new-name')) { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } @@ -110591,8 +189077,8 @@ var UpdateAuthMethodOAuth2 = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); } } @@ -110600,115 +189086,116 @@ var UpdateAuthMethodOAuth2 = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodOAuth2; + return UpdateEventForwarder; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 + * Workstation Admin Name + * @member {String} admin-name */ -UpdateAuthMethodOAuth2.prototype['access-expires'] = 0; +UpdateEventForwarder.prototype['admin-name'] = undefined; /** - * The audience in the JWT - * @member {String} audience + * The authentication type to use when connecting to ServiceNow (user-pass / jwt) + * @member {String} auth-type + * @default 'user-pass' */ -UpdateAuthMethodOAuth2.prototype['audience'] = undefined; +UpdateEventForwarder.prototype['auth-type'] = 'user-pass'; /** - * The clients ids that the access is restricted to - * @member {Array.} bound-client-ids + * The client ID to use when connecting to ServiceNow with jwt authentication + * @member {String} client-id */ -UpdateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; +UpdateEventForwarder.prototype['client-id'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Description of the object + * @member {String} description + * @default 'default_comment' */ -UpdateAuthMethodOAuth2.prototype['bound-ips'] = undefined; +UpdateEventForwarder.prototype['description'] = 'default_comment'; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) + * @member {String} email-to */ -UpdateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; +UpdateEventForwarder.prototype['email-to'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' */ -UpdateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; +UpdateEventForwarder.prototype['enable'] = 'true'; /** - * Issuer URL - * @member {String} issuer + * Event sources + * @member {Array.} event-source-locations */ -UpdateAuthMethodOAuth2.prototype['issuer'] = undefined; +UpdateEventForwarder.prototype['event-source-locations'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Event types + * @member {Array.} event-types */ -UpdateAuthMethodOAuth2.prototype['json'] = false; +UpdateEventForwarder.prototype['event-types'] = undefined; /** - * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string - * @member {String} jwks-json-data + * Workstation Host + * @member {String} host */ -UpdateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; +UpdateEventForwarder.prototype['host'] = undefined; /** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'default_jwks_url' + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; +UpdateEventForwarder.prototype['json'] = false; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * EventForwarder name + * @member {String} name */ -UpdateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; +UpdateEventForwarder.prototype['name'] = undefined; /** - * Auth Method name - * @member {String} name + * Deprecated - use description + * @member {String} new-comment + * @default 'default_comment' */ -UpdateAuthMethodOAuth2.prototype['name'] = undefined; +UpdateEventForwarder.prototype['new-comment'] = 'default_comment'; /** - * Auth Method new name + * New EventForwarder name * @member {String} new-name */ -UpdateAuthMethodOAuth2.prototype['new-name'] = undefined; +UpdateEventForwarder.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethodOAuth2.prototype['token'] = undefined; +UpdateEventForwarder.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethodOAuth2.prototype['uid-token'] = undefined; +UpdateEventForwarder.prototype['uid-token'] = undefined; /** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier + * The user email to use when connecting to ServiceNow with jwt authentication + * @member {String} user-email */ -UpdateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodOAuth2; +UpdateEventForwarder.prototype['user-email'] = undefined; +var _default = UpdateEventForwarder; exports["default"] = _default; /***/ }), -/***/ 73258: +/***/ 65334: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -110719,7 +189206,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -110730,22 +189217,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodOIDC model module. - * @module model/UpdateAuthMethodOIDC - * @version 3.3.16 + * The UpdateGKETarget model module. + * @module model/UpdateGKETarget + * @version 3.6.3 */ -var UpdateAuthMethodOIDC = /*#__PURE__*/function () { +var UpdateGKETarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodOIDC. - * updateAuthMethodOIDC is a command that updates a new auth method that will be available to authenticate using OIDC. - * @alias module:model/UpdateAuthMethodOIDC - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * Constructs a new UpdateGKETarget. + * @alias module:model/UpdateGKETarget + * @param name {String} Target name */ - function UpdateAuthMethodOIDC(name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodOIDC); + function UpdateGKETarget(name) { + _classCallCheck(this, UpdateGKETarget); - UpdateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); + UpdateGKETarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -110754,68 +189239,67 @@ var UpdateAuthMethodOIDC = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodOIDC, null, [{ + _createClass(UpdateGKETarget, null, [{ key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { + value: function initialize(obj, name) { obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a UpdateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGKETarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodOIDC} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodOIDC} The populated UpdateAuthMethodOIDC instance. + * @param {module:model/UpdateGKETarget} obj Optional instance to populate. + * @return {module:model/UpdateGKETarget} The populated UpdateGKETarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodOIDC(); + obj = obj || new UpdateGKETarget(); - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); } - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); } - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); } - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { @@ -110826,14 +189310,6 @@ var UpdateAuthMethodOIDC = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('required-scopes')) { - obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); - } - - if (data.hasOwnProperty('required-scopes-prefix')) { - obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -110842,8 +189318,12 @@ var UpdateAuthMethodOIDC = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); } } @@ -110851,126 +189331,117 @@ var UpdateAuthMethodOIDC = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodOIDC; + return UpdateGKETarget; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodOIDC.prototype['access-expires'] = 0; -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri + * Deprecated - use description + * @member {String} comment */ -UpdateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; -/** - * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application - * @member {String} audience - */ -UpdateAuthMethodOIDC.prototype['audience'] = undefined; +UpdateGKETarget.prototype['comment'] = undefined; /** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips + * Description of the object + * @member {String} description */ -UpdateAuthMethodOIDC.prototype['bound-ips'] = undefined; +UpdateGKETarget.prototype['description'] = undefined; /** - * Client ID - * @member {String} client-id + * GKE Service Account key file path + * @member {String} gke-account-key */ -UpdateAuthMethodOIDC.prototype['client-id'] = undefined; +UpdateGKETarget.prototype['gke-account-key'] = undefined; /** - * Client Secret - * @member {String} client-secret + * GKE cluster CA certificate + * @member {String} gke-cluster-cert */ -UpdateAuthMethodOIDC.prototype['client-secret'] = undefined; +UpdateGKETarget.prototype['gke-cluster-cert'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint */ -UpdateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; +UpdateGKETarget.prototype['gke-cluster-endpoint'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * GKE cluster name + * @member {String} gke-cluster-name */ -UpdateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; +UpdateGKETarget.prototype['gke-cluster-name'] = undefined; /** - * Issuer URL - * @member {String} issuer + * GKE service account email + * @member {String} gke-service-account-email */ -UpdateAuthMethodOIDC.prototype['issuer'] = undefined; +UpdateGKETarget.prototype['gke-service-account-email'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAuthMethodOIDC.prototype['json'] = false; +UpdateGKETarget.prototype['json'] = false; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateAuthMethodOIDC.prototype['jwt-ttl'] = 0; +UpdateGKETarget.prototype['keep-prev-version'] = undefined; /** - * Auth Method name - * @member {String} name + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateAuthMethodOIDC.prototype['name'] = undefined; +UpdateGKETarget.prototype['key'] = undefined; /** - * Auth Method new name - * @member {String} new-name + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateAuthMethodOIDC.prototype['new-name'] = undefined; +UpdateGKETarget.prototype['max-versions'] = undefined; /** - * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve - * @member {Array.} required-scopes + * Target name + * @member {String} name */ -UpdateAuthMethodOIDC.prototype['required-scopes'] = undefined; +UpdateGKETarget.prototype['name'] = undefined; /** - * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) - * @member {String} required-scopes-prefix + * New target name + * @member {String} new-name */ -UpdateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; +UpdateGKETarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethodOIDC.prototype['token'] = undefined; +UpdateGKETarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethodOIDC.prototype['uid-token'] = undefined; +UpdateGKETarget.prototype['uid-token'] = undefined; /** - * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier + * Deprecated + * @member {Boolean} update-version */ -UpdateAuthMethodOIDC.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodOIDC; +UpdateGKETarget.prototype['update-version'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +UpdateGKETarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateGKETarget; exports["default"] = _default; /***/ }), -/***/ 28605: +/***/ 88371: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -110981,7 +189452,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -110992,19 +189463,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodOutput model module. - * @module model/UpdateAuthMethodOutput - * @version 3.3.16 + * The UpdateGKETargetOutput model module. + * @module model/UpdateGKETargetOutput + * @version 3.6.3 */ -var UpdateAuthMethodOutput = /*#__PURE__*/function () { +var UpdateGKETargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodOutput. - * @alias module:model/UpdateAuthMethodOutput + * Constructs a new UpdateGKETargetOutput. + * @alias module:model/UpdateGKETargetOutput */ - function UpdateAuthMethodOutput() { - _classCallCheck(this, UpdateAuthMethodOutput); + function UpdateGKETargetOutput() { + _classCallCheck(this, UpdateGKETargetOutput); - UpdateAuthMethodOutput.initialize(this); + UpdateGKETargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -111013,25 +189484,25 @@ var UpdateAuthMethodOutput = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodOutput, null, [{ + _createClass(UpdateGKETargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodOutput} The populated UpdateAuthMethodOutput instance. + * @param {module:model/UpdateGKETargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGKETargetOutput} The populated UpdateGKETargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodOutput(); + obj = obj || new UpdateGKETargetOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } @@ -111039,20 +189510,20 @@ var UpdateAuthMethodOutput = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodOutput; + return UpdateGKETargetOutput; }(); /** - * @member {String} name + * @member {Number} target_id */ -UpdateAuthMethodOutput.prototype['name'] = undefined; -var _default = UpdateAuthMethodOutput; +UpdateGKETargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGKETargetOutput; exports["default"] = _default; /***/ }), -/***/ 37117: +/***/ 65793: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -111063,7 +189534,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -111074,22 +189545,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodSAML model module. - * @module model/UpdateAuthMethodSAML - * @version 3.3.16 + * The UpdateGcpTarget model module. + * @module model/UpdateGcpTarget + * @version 3.6.3 */ -var UpdateAuthMethodSAML = /*#__PURE__*/function () { +var UpdateGcpTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodSAML. - * updateAuthMethodSAML is a command that updates a new auth method that will be available to authenticate using SAML. - * @alias module:model/UpdateAuthMethodSAML - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * Constructs a new UpdateGcpTarget. + * @alias module:model/UpdateGcpTarget + * @param name {String} Target name */ - function UpdateAuthMethodSAML(name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodSAML); + function UpdateGcpTarget(name) { + _classCallCheck(this, UpdateGcpTarget); - UpdateAuthMethodSAML.initialize(this, name, uniqueIdentifier); + UpdateGcpTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -111098,60 +189567,51 @@ var UpdateAuthMethodSAML = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodSAML, null, [{ + _createClass(UpdateGcpTarget, null, [{ key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { + value: function initialize(obj, name) { obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; } /** - * Constructs a UpdateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGcpTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodSAML} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodSAML} The populated UpdateAuthMethodSAML instance. + * @param {module:model/UpdateGcpTarget} obj Optional instance to populate. + * @return {module:model/UpdateGcpTarget} The populated UpdateGcpTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodSAML(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); - } + obj = obj || new UpdateGcpTarget(); - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); } - if (data.hasOwnProperty('idp-metadata-url')) { - obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('idp-metadata-xml-data')) { - obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { @@ -111170,8 +189630,12 @@ var UpdateAuthMethodSAML = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); } } @@ -111179,102 +189643,93 @@ var UpdateAuthMethodSAML = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodSAML; + return UpdateGcpTarget; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodSAML.prototype['access-expires'] = 0; -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri + * Deprecated - use description + * @member {String} comment */ -UpdateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ -UpdateAuthMethodSAML.prototype['bound-ips'] = undefined; +UpdateGcpTarget.prototype['comment'] = undefined; /** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims + * Description of the object + * @member {String} description */ -UpdateAuthMethodSAML.prototype['force-sub-claims'] = undefined; +UpdateGcpTarget.prototype['description'] = undefined; /** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips + * Base64-encoded service account private key text + * @member {String} gcp-key */ -UpdateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; +UpdateGcpTarget.prototype['gcp-key'] = undefined; /** - * IDP metadata url - * @member {String} idp-metadata-url + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; +UpdateGcpTarget.prototype['json'] = false; /** - * IDP metadata xml data - * @member {String} idp-metadata-xml-data + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; +UpdateGcpTarget.prototype['keep-prev-version'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateAuthMethodSAML.prototype['json'] = false; +UpdateGcpTarget.prototype['key'] = undefined; /** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateAuthMethodSAML.prototype['jwt-ttl'] = 0; +UpdateGcpTarget.prototype['max-versions'] = undefined; /** - * Auth Method name + * Target name * @member {String} name */ -UpdateAuthMethodSAML.prototype['name'] = undefined; +UpdateGcpTarget.prototype['name'] = undefined; /** - * Auth Method new name + * New target name * @member {String} new-name */ -UpdateAuthMethodSAML.prototype['new-name'] = undefined; +UpdateGcpTarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAuthMethodSAML.prototype['token'] = undefined; +UpdateGcpTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAuthMethodSAML.prototype['uid-token'] = undefined; +UpdateGcpTarget.prototype['uid-token'] = undefined; /** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier + * Deprecated + * @member {Boolean} update-version */ -UpdateAuthMethodSAML.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodSAML; +UpdateGcpTarget.prototype['update-version'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +UpdateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateGcpTarget; exports["default"] = _default; /***/ }), -/***/ 33896: +/***/ 65620: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -111285,7 +189740,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -111296,21 +189751,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAuthMethodUniversalIdentity model module. - * @module model/UpdateAuthMethodUniversalIdentity - * @version 3.3.16 + * The UpdateGcpTargetOutput model module. + * @module model/UpdateGcpTargetOutput + * @version 3.6.3 */ -var UpdateAuthMethodUniversalIdentity = /*#__PURE__*/function () { +var UpdateGcpTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateAuthMethodUniversalIdentity. - * updateAuthMethodUniversalIdentity is a command that updates a new auth method that will be able to authenticate using Akeyless Universal Identity. - * @alias module:model/UpdateAuthMethodUniversalIdentity - * @param name {String} Auth Method name + * Constructs a new UpdateGcpTargetOutput. + * @alias module:model/UpdateGcpTargetOutput */ - function UpdateAuthMethodUniversalIdentity(name) { - _classCallCheck(this, UpdateAuthMethodUniversalIdentity); + function UpdateGcpTargetOutput() { + _classCallCheck(this, UpdateGcpTargetOutput); - UpdateAuthMethodUniversalIdentity.initialize(this, name); + UpdateGcpTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -111319,75 +189772,25 @@ var UpdateAuthMethodUniversalIdentity = /*#__PURE__*/function () { */ - _createClass(UpdateAuthMethodUniversalIdentity, null, [{ + _createClass(UpdateGcpTargetOutput, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a UpdateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodUniversalIdentity} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodUniversalIdentity} The populated UpdateAuthMethodUniversalIdentity instance. + * @param {module:model/UpdateGcpTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGcpTargetOutput} The populated UpdateGcpTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAuthMethodUniversalIdentity(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('deny-inheritance')) { - obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); - } - - if (data.hasOwnProperty('deny-rotate')) { - obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } + obj = obj || new UpdateGcpTargetOutput(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } @@ -111395,97 +189798,20 @@ var UpdateAuthMethodUniversalIdentity = /*#__PURE__*/function () { } }]); - return UpdateAuthMethodUniversalIdentity; + return UpdateGcpTargetOutput; }(); /** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; -/** - * Deny from root to create children - * @member {Boolean} deny-inheritance - */ - -UpdateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; -/** - * Deny from the token to rotate - * @member {Boolean} deny-rotate - */ - -UpdateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodUniversalIdentity.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodUniversalIdentity.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodUniversalIdentity.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodUniversalIdentity.prototype['token'] = undefined; -/** - * Token ttl - * @member {Number} ttl - * @default 60 + * @member {Number} target_id */ -UpdateAuthMethodUniversalIdentity.prototype['ttl'] = 60; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -UpdateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodUniversalIdentity; +UpdateGcpTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGcpTargetOutput; exports["default"] = _default; /***/ }), -/***/ 41670: +/***/ 1806: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -111496,7 +189822,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -111507,20 +189833,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAzureTarget model module. - * @module model/UpdateAzureTarget - * @version 3.3.16 + * The UpdateGithubTarget model module. + * @module model/UpdateGithubTarget + * @version 3.6.3 */ -var UpdateAzureTarget = /*#__PURE__*/function () { +var UpdateGithubTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateAzureTarget. - * @alias module:model/UpdateAzureTarget + * Constructs a new UpdateGithubTarget. + * @alias module:model/UpdateGithubTarget * @param name {String} Target name */ - function UpdateAzureTarget(name) { - _classCallCheck(this, UpdateAzureTarget); + function UpdateGithubTarget(name) { + _classCallCheck(this, UpdateGithubTarget); - UpdateAzureTarget.initialize(this, name); + UpdateGithubTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -111529,32 +189855,24 @@ var UpdateAzureTarget = /*#__PURE__*/function () { */ - _createClass(UpdateAzureTarget, null, [{ + _createClass(UpdateGithubTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateAzureTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGithubTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAzureTarget} obj Optional instance to populate. - * @return {module:model/UpdateAzureTarget} The populated UpdateAzureTarget instance. + * @param {module:model/UpdateGithubTarget} obj Optional instance to populate. + * @return {module:model/UpdateGithubTarget} The populated UpdateGithubTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAzureTarget(); - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } + obj = obj || new UpdateGithubTarget(); if (data.hasOwnProperty('comment')) { obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); @@ -111564,6 +189882,18 @@ var UpdateAzureTarget = /*#__PURE__*/function () { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } @@ -111576,6 +189906,10 @@ var UpdateAzureTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -111584,22 +189918,6 @@ var UpdateAzureTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('resource-group-name')) { - obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); - } - - if (data.hasOwnProperty('resource-name')) { - obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); - } - - if (data.hasOwnProperty('subscription-id')) { - obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); - } - - if (data.hasOwnProperty('tenant-id')) { - obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -111611,124 +189929,107 @@ var UpdateAzureTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('update-version')) { obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } } return obj; } }]); - return UpdateAzureTarget; + return UpdateGithubTarget; }(); /** - * @member {String} client-id + * Deprecated - use description + * @member {String} comment */ -UpdateAzureTarget.prototype['client-id'] = undefined; +UpdateGithubTarget.prototype['comment'] = undefined; /** - * @member {String} client-secret + * Description of the object + * @member {String} description */ -UpdateAzureTarget.prototype['client-secret'] = undefined; +UpdateGithubTarget.prototype['description'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * Github app id + * @member {Number} github-app-id */ -UpdateAzureTarget.prototype['comment'] = undefined; +UpdateGithubTarget.prototype['github-app-id'] = undefined; /** - * Description of the object - * @member {String} description + * App private key + * @member {String} github-app-private-key */ -UpdateAzureTarget.prototype['description'] = undefined; +UpdateGithubTarget.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +UpdateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateAzureTarget.prototype['json'] = false; +UpdateGithubTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateAzureTarget.prototype['keep-prev-version'] = undefined; +UpdateGithubTarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateAzureTarget.prototype['key'] = undefined; +UpdateGithubTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateGithubTarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateAzureTarget.prototype['name'] = undefined; +UpdateGithubTarget.prototype['name'] = undefined; /** * New target name * @member {String} new-name */ -UpdateAzureTarget.prototype['new-name'] = undefined; -/** - * The Resource Group name in your Azure subscription - * @member {String} resource-group-name - */ - -UpdateAzureTarget.prototype['resource-group-name'] = undefined; -/** - * The name of the relevant Resource - * @member {String} resource-name - */ - -UpdateAzureTarget.prototype['resource-name'] = undefined; -/** - * Azure Subscription Id - * @member {String} subscription-id - */ - -UpdateAzureTarget.prototype['subscription-id'] = undefined; -/** - * @member {String} tenant-id - */ - -UpdateAzureTarget.prototype['tenant-id'] = undefined; +UpdateGithubTarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateAzureTarget.prototype['token'] = undefined; +UpdateGithubTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateAzureTarget.prototype['uid-token'] = undefined; +UpdateGithubTarget.prototype['uid-token'] = undefined; /** * Deprecated * @member {Boolean} update-version */ -UpdateAzureTarget.prototype['update-version'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -UpdateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateAzureTarget; +UpdateGithubTarget.prototype['update-version'] = undefined; +var _default = UpdateGithubTarget; exports["default"] = _default; /***/ }), -/***/ 84834: +/***/ 50715: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -111739,7 +190040,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -111750,19 +190051,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateAzureTargetOutput model module. - * @module model/UpdateAzureTargetOutput - * @version 3.3.16 + * The UpdateGithubTargetOutput model module. + * @module model/UpdateGithubTargetOutput + * @version 3.6.3 */ -var UpdateAzureTargetOutput = /*#__PURE__*/function () { +var UpdateGithubTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateAzureTargetOutput. - * @alias module:model/UpdateAzureTargetOutput + * Constructs a new UpdateGithubTargetOutput. + * @alias module:model/UpdateGithubTargetOutput */ - function UpdateAzureTargetOutput() { - _classCallCheck(this, UpdateAzureTargetOutput); + function UpdateGithubTargetOutput() { + _classCallCheck(this, UpdateGithubTargetOutput); - UpdateAzureTargetOutput.initialize(this); + UpdateGithubTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -111771,22 +190072,22 @@ var UpdateAzureTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateAzureTargetOutput, null, [{ + _createClass(UpdateGithubTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAzureTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateAzureTargetOutput} The populated UpdateAzureTargetOutput instance. + * @param {module:model/UpdateGithubTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGithubTargetOutput} The populated UpdateGithubTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateAzureTargetOutput(); + obj = obj || new UpdateGithubTargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -111797,102 +190098,20 @@ var UpdateAzureTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateAzureTargetOutput; + return UpdateGithubTargetOutput; }(); /** * @member {Number} target_id */ -UpdateAzureTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateAzureTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 95234: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateCertificateOutput model module. - * @module model/UpdateCertificateOutput - * @version 3.3.16 - */ -var UpdateCertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateCertificateOutput. - * @alias module:model/UpdateCertificateOutput - */ - function UpdateCertificateOutput() { - _classCallCheck(this, UpdateCertificateOutput); - - UpdateCertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateCertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateCertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateCertificateOutput} obj Optional instance to populate. - * @return {module:model/UpdateCertificateOutput} The populated UpdateCertificateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateCertificateOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateCertificateOutput; -}(); -/** - * @member {String} name - */ - - -UpdateCertificateOutput.prototype['name'] = undefined; -var _default = UpdateCertificateOutput; +UpdateGithubTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGithubTargetOutput; exports["default"] = _default; /***/ }), -/***/ 72377: +/***/ 77438: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -111903,7 +190122,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -111914,20 +190133,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateCertificateValue model module. - * @module model/UpdateCertificateValue - * @version 3.3.16 + * The UpdateGlobalSignAtlasTarget model module. + * @module model/UpdateGlobalSignAtlasTarget + * @version 3.6.3 */ -var UpdateCertificateValue = /*#__PURE__*/function () { +var UpdateGlobalSignAtlasTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateCertificateValue. - * @alias module:model/UpdateCertificateValue - * @param name {String} Certificate name + * Constructs a new UpdateGlobalSignAtlasTarget. + * @alias module:model/UpdateGlobalSignAtlasTarget + * @param apiKey {String} API Key of the GlobalSign Atlas account + * @param apiSecret {String} API Secret of the GlobalSign Atlas account + * @param name {String} Target name */ - function UpdateCertificateValue(name) { - _classCallCheck(this, UpdateCertificateValue); + function UpdateGlobalSignAtlasTarget(apiKey, apiSecret, name) { + _classCallCheck(this, UpdateGlobalSignAtlasTarget); - UpdateCertificateValue.initialize(this, name); + UpdateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); } /** * Initializes the fields of this object. @@ -111936,71 +190157,77 @@ var UpdateCertificateValue = /*#__PURE__*/function () { */ - _createClass(UpdateCertificateValue, null, [{ + _createClass(UpdateGlobalSignAtlasTarget, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, apiKey, apiSecret, name) { + obj['api-key'] = apiKey; + obj['api-secret'] = apiSecret; obj['name'] = name; } /** - * Constructs a UpdateCertificateValue from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateCertificateValue} obj Optional instance to populate. - * @return {module:model/UpdateCertificateValue} The populated UpdateCertificateValue instance. + * @param {module:model/UpdateGlobalSignAtlasTarget} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignAtlasTarget} The populated UpdateGlobalSignAtlasTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateCertificateValue(); + obj = obj || new UpdateGlobalSignAtlasTarget(); - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + if (data.hasOwnProperty('api-secret')) { + obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); - } - - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + if (data.hasOwnProperty('key')) { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + if (data.hasOwnProperty('mtls-cert-data-base64')) { + obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); + } + + if (data.hasOwnProperty('mtls-key-data-base64')) { + obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); } if (data.hasOwnProperty('token')) { @@ -112010,106 +190237,205 @@ var UpdateCertificateValue = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } } return obj; } }]); - return UpdateCertificateValue; + return UpdateGlobalSignAtlasTarget; }(); /** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag + * API Key of the GlobalSign Atlas account + * @member {String} api-key */ -UpdateCertificateValue.prototype['add-tag'] = undefined; +UpdateGlobalSignAtlasTarget.prototype['api-key'] = undefined; /** - * Content of the certificate in a Base64 format. - * @member {String} certificate-data + * API Secret of the GlobalSign Atlas account + * @member {String} api-secret */ -UpdateCertificateValue.prototype['certificate-data'] = undefined; +UpdateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Deprecated - use description + * @member {String} comment */ -UpdateCertificateValue.prototype['delete_protection'] = undefined; +UpdateGlobalSignAtlasTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description */ -UpdateCertificateValue.prototype['description'] = undefined; +UpdateGlobalSignAtlasTarget.prototype['description'] = undefined; /** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateCertificateValue.prototype['expiration-event-in'] = undefined; +UpdateGlobalSignAtlasTarget.prototype['json'] = false; /** - * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. - * @member {String} format + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateCertificateValue.prototype['format'] = undefined; +UpdateGlobalSignAtlasTarget.prototype['keep-prev-version'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +UpdateGlobalSignAtlasTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateGlobalSignAtlasTarget.prototype['max-versions'] = undefined; +/** + * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied + * @member {String} mtls-cert-data-base64 + */ + +UpdateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; +/** + * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied + * @member {String} mtls-key-data-base64 + */ + +UpdateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; +/** + * Target name + * @member {String} name + */ + +UpdateGlobalSignAtlasTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ + +UpdateGlobalSignAtlasTarget.prototype['new-name'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +UpdateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateGlobalSignAtlasTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateGlobalSignAtlasTarget.prototype['update-version'] = undefined; +var _default = UpdateGlobalSignAtlasTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 62731: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateGlobalSignAtlasTargetOutput model module. + * @module model/UpdateGlobalSignAtlasTargetOutput + * @version 3.6.3 */ +var UpdateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGlobalSignAtlasTargetOutput. + * @alias module:model/UpdateGlobalSignAtlasTargetOutput + */ + function UpdateGlobalSignAtlasTargetOutput() { + _classCallCheck(this, UpdateGlobalSignAtlasTargetOutput); + + UpdateGlobalSignAtlasTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -UpdateCertificateValue.prototype['json'] = false; -/** - * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) - * @member {String} key - */ -UpdateCertificateValue.prototype['key'] = undefined; -/** - * Content of the certificate's private key in a Base64 format. - * @member {String} key-data - */ + _createClass(UpdateGlobalSignAtlasTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGlobalSignAtlasTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignAtlasTargetOutput} The populated UpdateGlobalSignAtlasTargetOutput instance. + */ -UpdateCertificateValue.prototype['key-data'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGlobalSignAtlasTargetOutput(); -UpdateCertificateValue.prototype['metadata'] = undefined; -/** - * Certificate name - * @member {String} name - */ + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } -UpdateCertificateValue.prototype['name'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ + return obj; + } + }]); -UpdateCertificateValue.prototype['rm-tag'] = undefined; + return UpdateGlobalSignAtlasTargetOutput; +}(); /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {Number} target_id */ -UpdateCertificateValue.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -UpdateCertificateValue.prototype['uid-token'] = undefined; -var _default = UpdateCertificateValue; +UpdateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGlobalSignAtlasTargetOutput; exports["default"] = _default; /***/ }), -/***/ 19836: +/***/ 62311: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -112120,7 +190446,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -112131,21 +190457,27 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateDBTarget model module. - * @module model/UpdateDBTarget - * @version 3.3.16 + * The UpdateGlobalSignTarget model module. + * @module model/UpdateGlobalSignTarget + * @version 3.6.3 */ -var UpdateDBTarget = /*#__PURE__*/function () { +var UpdateGlobalSignTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateDBTarget. - * @alias module:model/UpdateDBTarget - * @param dbType {String} + * Constructs a new UpdateGlobalSignTarget. + * @alias module:model/UpdateGlobalSignTarget + * @param contactEmail {String} Email of the GlobalSign GCC account contact + * @param contactFirstName {String} First name of the GlobalSign GCC account contact + * @param contactLastName {String} Last name of the GlobalSign GCC account contact + * @param contactPhone {String} Telephone of the GlobalSign GCC account contact * @param name {String} Target name + * @param password {String} Password of the GlobalSign GCC account + * @param profileId {String} Profile ID of the GlobalSign GCC account + * @param username {String} Username of the GlobalSign GCC account */ - function UpdateDBTarget(dbType, name) { - _classCallCheck(this, UpdateDBTarget); + function UpdateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + _classCallCheck(this, UpdateGlobalSignTarget); - UpdateDBTarget.initialize(this, dbType, name); + UpdateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); } /** * Initializes the fields of this object. @@ -112154,54 +190486,56 @@ var UpdateDBTarget = /*#__PURE__*/function () { */ - _createClass(UpdateDBTarget, null, [{ + _createClass(UpdateGlobalSignTarget, null, [{ key: "initialize", - value: function initialize(obj, dbType, name) { - obj['db-type'] = dbType; + value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + obj['contact-email'] = contactEmail; + obj['contact-first-name'] = contactFirstName; + obj['contact-last-name'] = contactLastName; + obj['contact-phone'] = contactPhone; obj['name'] = name; + obj['password'] = password; + obj['profile-id'] = profileId; + obj['username'] = username; } /** - * Constructs a UpdateDBTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDBTarget} obj Optional instance to populate. - * @return {module:model/UpdateDBTarget} The populated UpdateDBTarget instance. + * @param {module:model/UpdateGlobalSignTarget} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignTarget} The populated UpdateGlobalSignTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateDBTarget(); + obj = obj || new UpdateGlobalSignTarget(); if (data.hasOwnProperty('comment')) { obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + if (data.hasOwnProperty('contact-email')) { + obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); } - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + if (data.hasOwnProperty('contact-first-name')) { + obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); } - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + if (data.hasOwnProperty('contact-last-name')) { + obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); } - if (data.hasOwnProperty('db-type')) { - obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); + if (data.hasOwnProperty('contact-phone')) { + obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } @@ -112214,28 +190548,8 @@ var UpdateDBTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('mongodb-atlas')) { - obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); - } - - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { @@ -112246,36 +190560,16 @@ var UpdateDBTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('pwd')) { - obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); - } - - if (data.hasOwnProperty('snowflake-account')) { - obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key')) { - obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key-password')) { - obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + if (data.hasOwnProperty('profile-id')) { + obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); } - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); } if (data.hasOwnProperty('token')) { @@ -112290,8 +190584,8 @@ var UpdateDBTarget = /*#__PURE__*/function () { obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } - if (data.hasOwnProperty('user-name')) { - obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } @@ -112299,7 +190593,7 @@ var UpdateDBTarget = /*#__PURE__*/function () { } }]); - return UpdateDBTarget; + return UpdateGlobalSignTarget; }(); /** * Deprecated - use description @@ -112307,180 +190601,205 @@ var UpdateDBTarget = /*#__PURE__*/function () { */ -UpdateDBTarget.prototype['comment'] = undefined; +UpdateGlobalSignTarget.prototype['comment'] = undefined; /** - * @member {String} db-name + * Email of the GlobalSign GCC account contact + * @member {String} contact-email */ -UpdateDBTarget.prototype['db-name'] = undefined; +UpdateGlobalSignTarget.prototype['contact-email'] = undefined; /** - * (Optional) DB server certificates - * @member {String} db-server-certificates + * First name of the GlobalSign GCC account contact + * @member {String} contact-first-name */ -UpdateDBTarget.prototype['db-server-certificates'] = undefined; +UpdateGlobalSignTarget.prototype['contact-first-name'] = undefined; /** - * (Optional) Server name for certificate verification - * @member {String} db-server-name + * Last name of the GlobalSign GCC account contact + * @member {String} contact-last-name */ -UpdateDBTarget.prototype['db-server-name'] = undefined; +UpdateGlobalSignTarget.prototype['contact-last-name'] = undefined; /** - * @member {String} db-type + * Telephone of the GlobalSign GCC account contact + * @member {String} contact-phone */ -UpdateDBTarget.prototype['db-type'] = undefined; +UpdateGlobalSignTarget.prototype['contact-phone'] = undefined; /** * Description of the object * @member {String} description */ -UpdateDBTarget.prototype['description'] = undefined; -/** - * @member {String} host - */ - -UpdateDBTarget.prototype['host'] = undefined; +UpdateGlobalSignTarget.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateDBTarget.prototype['json'] = false; +UpdateGlobalSignTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateDBTarget.prototype['keep-prev-version'] = undefined; +UpdateGlobalSignTarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateDBTarget.prototype['key'] = undefined; +UpdateGlobalSignTarget.prototype['key'] = undefined; /** - * @member {Boolean} mongodb-atlas + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateDBTarget.prototype['mongodb-atlas'] = undefined; +UpdateGlobalSignTarget.prototype['max-versions'] = undefined; /** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key + * Target name + * @member {String} name */ -UpdateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; +UpdateGlobalSignTarget.prototype['name'] = undefined; /** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key + * New target name + * @member {String} new-name */ -UpdateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; +UpdateGlobalSignTarget.prototype['new-name'] = undefined; /** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id + * Password of the GlobalSign GCC account + * @member {String} password */ -UpdateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; +UpdateGlobalSignTarget.prototype['password'] = undefined; /** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db + * Profile ID of the GlobalSign GCC account + * @member {String} profile-id */ -UpdateDBTarget.prototype['mongodb-default-auth-db'] = undefined; +UpdateGlobalSignTarget.prototype['profile-id'] = undefined; /** - * MongoDB server URI options - * @member {String} mongodb-uri-options + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' */ -UpdateDBTarget.prototype['mongodb-uri-options'] = undefined; +UpdateGlobalSignTarget.prototype['timeout'] = '5m'; /** - * Target name - * @member {String} name + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -UpdateDBTarget.prototype['name'] = undefined; +UpdateGlobalSignTarget.prototype['token'] = undefined; /** - * New target name - * @member {String} new-name + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -UpdateDBTarget.prototype['new-name'] = undefined; +UpdateGlobalSignTarget.prototype['uid-token'] = undefined; /** - * @member {String} oracle-service-name + * Deprecated + * @member {Boolean} update-version */ -UpdateDBTarget.prototype['oracle-service-name'] = undefined; +UpdateGlobalSignTarget.prototype['update-version'] = undefined; /** - * @member {String} port + * Username of the GlobalSign GCC account + * @member {String} username */ -UpdateDBTarget.prototype['port'] = undefined; -/** - * @member {String} pwd - */ +UpdateGlobalSignTarget.prototype['username'] = undefined; +var _default = UpdateGlobalSignTarget; +exports["default"] = _default; -UpdateDBTarget.prototype['pwd'] = undefined; -/** - * @member {String} snowflake-account - */ +/***/ }), -UpdateDBTarget.prototype['snowflake-account'] = undefined; -/** - * RSA Private key (base64 encoded) - * @member {String} snowflake-api-private-key - */ +/***/ 66718: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -UpdateDBTarget.prototype['snowflake-api-private-key'] = undefined; -/** - * The Private key passphrase - * @member {String} snowflake-api-private-key-password - */ +"use strict"; -UpdateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ -UpdateDBTarget.prototype['ssl'] = false; -/** - * SSL connection certificate - * @member {String} ssl-certificate - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -UpdateDBTarget.prototype['ssl-certificate'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -UpdateDBTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -UpdateDBTarget.prototype['uid-token'] = undefined; /** - * Deprecated - * @member {Boolean} update-version + * The UpdateGlobalSignTargetOutput model module. + * @module model/UpdateGlobalSignTargetOutput + * @version 3.6.3 */ +var UpdateGlobalSignTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGlobalSignTargetOutput. + * @alias module:model/UpdateGlobalSignTargetOutput + */ + function UpdateGlobalSignTargetOutput() { + _classCallCheck(this, UpdateGlobalSignTargetOutput); -UpdateDBTarget.prototype['update-version'] = undefined; + UpdateGlobalSignTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGlobalSignTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGlobalSignTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignTargetOutput} The populated UpdateGlobalSignTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGlobalSignTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return UpdateGlobalSignTargetOutput; +}(); /** - * @member {String} user-name + * @member {Number} target_id */ -UpdateDBTarget.prototype['user-name'] = undefined; -var _default = UpdateDBTarget; + +UpdateGlobalSignTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGlobalSignTargetOutput; exports["default"] = _default; /***/ }), -/***/ 61052: +/***/ 3964: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -112491,7 +190810,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -112502,20 +190821,25 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateDBTargetDetails model module. - * @module model/UpdateDBTargetDetails - * @version 3.3.16 + * The UpdateGodaddyTarget model module. + * @module model/UpdateGodaddyTarget + * @version 3.6.3 */ -var UpdateDBTargetDetails = /*#__PURE__*/function () { +var UpdateGodaddyTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateDBTargetDetails. - * @alias module:model/UpdateDBTargetDetails + * Constructs a new UpdateGodaddyTarget. + * @alias module:model/UpdateGodaddyTarget + * @param apiKey {String} Key of the api credentials to the Godaddy account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service * @param name {String} Target name + * @param secret {String} Secret of the api credentials to the Godaddy account */ - function UpdateDBTargetDetails(name) { - _classCallCheck(this, UpdateDBTargetDetails); + function UpdateGodaddyTarget(apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + _classCallCheck(this, UpdateGodaddyTarget); - UpdateDBTargetDetails.initialize(this, name); + UpdateGodaddyTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name, secret); } /** * Initializes the fields of this object. @@ -112524,31 +190848,56 @@ var UpdateDBTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateDBTargetDetails, null, [{ + _createClass(UpdateGodaddyTarget, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; obj['name'] = name; + obj['secret'] = secret; } /** - * Constructs a UpdateDBTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGodaddyTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDBTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateDBTargetDetails} The populated UpdateDBTargetDetails instance. + * @param {module:model/UpdateGodaddyTarget} obj Optional instance to populate. + * @return {module:model/UpdateGodaddyTarget} The populated UpdateGodaddyTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateDBTargetDetails(); + obj = obj || new UpdateGodaddyTarget(); - if (data.hasOwnProperty('db_type')) { - obj['db_type'] = _ApiClient["default"].convertToType(data['db_type'], 'String'); + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - if (data.hasOwnProperty('host_name')) { - obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } + + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } + + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } + + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); } if (data.hasOwnProperty('json')) { @@ -112559,32 +190908,28 @@ var UpdateDBTargetDetails = /*#__PURE__*/function () { obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('mongo_db_name')) { - obj['mongo_db_name'] = _ApiClient["default"].convertToType(data['mongo_db_name'], 'String'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('mongo_uri')) { - obj['mongo_uri'] = _ApiClient["default"].convertToType(data['mongo_uri'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); } - if (data.hasOwnProperty('pwd')) { - obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); } if (data.hasOwnProperty('token')) { @@ -112595,8 +190940,8 @@ var UpdateDBTargetDetails = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } } @@ -112604,93 +190949,126 @@ var UpdateDBTargetDetails = /*#__PURE__*/function () { } }]); - return UpdateDBTargetDetails; + return UpdateGodaddyTarget; }(); /** - * @member {String} db_type + * Key of the api credentials to the Godaddy account + * @member {String} api-key */ -UpdateDBTargetDetails.prototype['db_type'] = undefined; +UpdateGodaddyTarget.prototype['api-key'] = undefined; /** - * @member {String} host_name + * Deprecated - use description + * @member {String} comment */ -UpdateDBTargetDetails.prototype['host_name'] = undefined; +UpdateGodaddyTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +UpdateGodaddyTarget.prototype['description'] = undefined; +/** + * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @member {String} imap-fqdn + */ + +UpdateGodaddyTarget.prototype['imap-fqdn'] = undefined; +/** + * ImapPassword to access the IMAP service + * @member {String} imap-password + */ + +UpdateGodaddyTarget.prototype['imap-password'] = undefined; +/** + * ImapPort of the IMAP service + * @member {String} imap-port + * @default '993' + */ + +UpdateGodaddyTarget.prototype['imap-port'] = '993'; +/** + * ImapUsername to access the IMAP service + * @member {String} imap-username + */ + +UpdateGodaddyTarget.prototype['imap-username'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateDBTargetDetails.prototype['json'] = false; +UpdateGodaddyTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateDBTargetDetails.prototype['keep-prev-version'] = undefined; +UpdateGodaddyTarget.prototype['keep-prev-version'] = undefined; /** - * @member {String} mongo_db_name + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateDBTargetDetails.prototype['mongo_db_name'] = undefined; +UpdateGodaddyTarget.prototype['key'] = undefined; /** - * @member {String} mongo_uri + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateDBTargetDetails.prototype['mongo_uri'] = undefined; +UpdateGodaddyTarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateDBTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateDBTargetDetails.prototype['new-version'] = undefined; +UpdateGodaddyTarget.prototype['name'] = undefined; /** - * @member {String} port + * New target name + * @member {String} new-name */ -UpdateDBTargetDetails.prototype['port'] = undefined; +UpdateGodaddyTarget.prototype['new-name'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key + * Secret of the api credentials to the Godaddy account + * @member {String} secret */ -UpdateDBTargetDetails.prototype['protection_key'] = undefined; +UpdateGodaddyTarget.prototype['secret'] = undefined; /** - * @member {String} pwd + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' */ -UpdateDBTargetDetails.prototype['pwd'] = undefined; +UpdateGodaddyTarget.prototype['timeout'] = '5m'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateDBTargetDetails.prototype['token'] = undefined; +UpdateGodaddyTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateDBTargetDetails.prototype['uid-token'] = undefined; +UpdateGodaddyTarget.prototype['uid-token'] = undefined; /** - * @member {String} user_name + * Deprecated + * @member {Boolean} update-version */ -UpdateDBTargetDetails.prototype['user_name'] = undefined; -var _default = UpdateDBTargetDetails; +UpdateGodaddyTarget.prototype['update-version'] = undefined; +var _default = UpdateGodaddyTarget; exports["default"] = _default; /***/ }), -/***/ 15571: +/***/ 29110: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -112701,7 +191079,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -112712,19 +191090,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateDBTargetOutput model module. - * @module model/UpdateDBTargetOutput - * @version 3.3.16 + * The UpdateGodaddyTargetOutput model module. + * @module model/UpdateGodaddyTargetOutput + * @version 3.6.3 */ -var UpdateDBTargetOutput = /*#__PURE__*/function () { +var UpdateGodaddyTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateDBTargetOutput. - * @alias module:model/UpdateDBTargetOutput + * Constructs a new UpdateGodaddyTargetOutput. + * @alias module:model/UpdateGodaddyTargetOutput */ - function UpdateDBTargetOutput() { - _classCallCheck(this, UpdateDBTargetOutput); + function UpdateGodaddyTargetOutput() { + _classCallCheck(this, UpdateGodaddyTargetOutput); - UpdateDBTargetOutput.initialize(this); + UpdateGodaddyTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -112733,22 +191111,22 @@ var UpdateDBTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateDBTargetOutput, null, [{ + _createClass(UpdateGodaddyTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGodaddyTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDBTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateDBTargetOutput} The populated UpdateDBTargetOutput instance. + * @param {module:model/UpdateGodaddyTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGodaddyTargetOutput} The populated UpdateGodaddyTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateDBTargetOutput(); + obj = obj || new UpdateGodaddyTargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -112759,20 +191137,20 @@ var UpdateDBTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateDBTargetOutput; + return UpdateGodaddyTargetOutput; }(); /** * @member {Number} target_id */ -UpdateDBTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateDBTargetOutput; +UpdateGodaddyTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGodaddyTargetOutput; exports["default"] = _default; /***/ }), -/***/ 81645: +/***/ 60561: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -112783,7 +191161,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -112794,20 +191172,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateDockerhubTarget model module. - * @module model/UpdateDockerhubTarget - * @version 3.3.16 + * The UpdateGroup model module. + * @module model/UpdateGroup + * @version 3.6.3 */ -var UpdateDockerhubTarget = /*#__PURE__*/function () { +var UpdateGroup = /*#__PURE__*/function () { /** - * Constructs a new UpdateDockerhubTarget. - * @alias module:model/UpdateDockerhubTarget - * @param name {String} Target name + * Constructs a new UpdateGroup. + * @alias module:model/UpdateGroup + * @param groupAlias {String} A short group alias + * @param name {String} Group name */ - function UpdateDockerhubTarget(name) { - _classCallCheck(this, UpdateDockerhubTarget); + function UpdateGroup(groupAlias, name) { + _classCallCheck(this, UpdateGroup); - UpdateDockerhubTarget.initialize(this, name); + UpdateGroup.initialize(this, groupAlias, name); } /** * Initializes the fields of this object. @@ -112816,53 +191195,38 @@ var UpdateDockerhubTarget = /*#__PURE__*/function () { */ - _createClass(UpdateDockerhubTarget, null, [{ + _createClass(UpdateGroup, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, groupAlias, name) { + obj['group-alias'] = groupAlias; obj['name'] = name; } /** - * Constructs a UpdateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGroup from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDockerhubTarget} obj Optional instance to populate. - * @return {module:model/UpdateDockerhubTarget} The populated UpdateDockerhubTarget instance. + * @param {module:model/UpdateGroup} obj Optional instance to populate. + * @return {module:model/UpdateGroup} The populated UpdateGroup instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateDockerhubTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } + obj = obj || new UpdateGroup(); if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + if (data.hasOwnProperty('group-alias')) { + obj['group-alias'] = _ApiClient["default"].convertToType(data['group-alias'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -112879,8 +191243,8 @@ var UpdateDockerhubTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + if (data.hasOwnProperty('user-assignment')) { + obj['user-assignment'] = _ApiClient["default"].convertToType(data['user-assignment'], 'String'); } } @@ -112888,86 +191252,64 @@ var UpdateDockerhubTarget = /*#__PURE__*/function () { } }]); - return UpdateDockerhubTarget; + return UpdateGroup; }(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateDockerhubTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description */ -UpdateDockerhubTarget.prototype['description'] = undefined; -/** - * @member {String} dockerhub-password - */ -UpdateDockerhubTarget.prototype['dockerhub-password'] = undefined; +UpdateGroup.prototype['description'] = undefined; /** - * @member {String} dockerhub-username + * A short group alias + * @member {String} group-alias */ -UpdateDockerhubTarget.prototype['dockerhub-username'] = undefined; +UpdateGroup.prototype['group-alias'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateDockerhubTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateDockerhubTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateDockerhubTarget.prototype['key'] = undefined; +UpdateGroup.prototype['json'] = false; /** - * Target name + * Group name * @member {String} name */ -UpdateDockerhubTarget.prototype['name'] = undefined; +UpdateGroup.prototype['name'] = undefined; /** - * New target name + * Group new name * @member {String} new-name */ -UpdateDockerhubTarget.prototype['new-name'] = undefined; +UpdateGroup.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateDockerhubTarget.prototype['token'] = undefined; +UpdateGroup.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateDockerhubTarget.prototype['uid-token'] = undefined; +UpdateGroup.prototype['uid-token'] = undefined; /** - * Deprecated - * @member {Boolean} update-version + * A json string defining the access permission assignment for this client + * @member {String} user-assignment */ -UpdateDockerhubTarget.prototype['update-version'] = undefined; -var _default = UpdateDockerhubTarget; +UpdateGroup.prototype['user-assignment'] = undefined; +var _default = UpdateGroup; exports["default"] = _default; /***/ }), -/***/ 12162: +/***/ 29764: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -112978,7 +191320,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -112989,19 +191331,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateDockerhubTargetOutput model module. - * @module model/UpdateDockerhubTargetOutput - * @version 3.3.16 + * The UpdateGroupOutput model module. + * @module model/UpdateGroupOutput + * @version 3.6.3 */ -var UpdateDockerhubTargetOutput = /*#__PURE__*/function () { +var UpdateGroupOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateDockerhubTargetOutput. - * @alias module:model/UpdateDockerhubTargetOutput + * Constructs a new UpdateGroupOutput. + * @alias module:model/UpdateGroupOutput */ - function UpdateDockerhubTargetOutput() { - _classCallCheck(this, UpdateDockerhubTargetOutput); + function UpdateGroupOutput() { + _classCallCheck(this, UpdateGroupOutput); - UpdateDockerhubTargetOutput.initialize(this); + UpdateGroupOutput.initialize(this); } /** * Initializes the fields of this object. @@ -113010,25 +191352,33 @@ var UpdateDockerhubTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateDockerhubTargetOutput, null, [{ + _createClass(UpdateGroupOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateGroupOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDockerhubTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateDockerhubTargetOutput} The populated UpdateDockerhubTargetOutput instance. + * @param {module:model/UpdateGroupOutput} obj Optional instance to populate. + * @return {module:model/UpdateGroupOutput} The populated UpdateGroupOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateDockerhubTargetOutput(); + obj = obj || new UpdateGroupOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('group_name')) { + obj['group_name'] = _ApiClient["default"].convertToType(data['group_name'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -113036,20 +191386,30 @@ var UpdateDockerhubTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateDockerhubTargetOutput; + return UpdateGroupOutput; }(); /** - * @member {Number} target_id + * @member {String} group_name */ -UpdateDockerhubTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateDockerhubTargetOutput; +UpdateGroupOutput.prototype['group_name'] = undefined; +/** + * @member {String} id + */ + +UpdateGroupOutput.prototype['id'] = undefined; +/** + * @member {String} name + */ + +UpdateGroupOutput.prototype['name'] = undefined; +var _default = UpdateGroupOutput; exports["default"] = _default; /***/ }), -/***/ 54649: +/***/ 55359: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -113060,7 +191420,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -113071,25 +191431,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateEKSTarget model module. - * @module model/UpdateEKSTarget - * @version 3.3.16 + * The UpdateItem model module. + * @module model/UpdateItem + * @version 3.6.3 */ -var UpdateEKSTarget = /*#__PURE__*/function () { +var UpdateItem = /*#__PURE__*/function () { /** - * Constructs a new UpdateEKSTarget. - * @alias module:model/UpdateEKSTarget - * @param eksAccessKeyId {String} Access Key ID - * @param eksClusterCaCert {String} EKS cluster CA certificate - * @param eksClusterEndpoint {String} EKS cluster URL endpoint - * @param eksClusterName {String} EKS cluster name - * @param eksSecretAccessKey {String} Secret Access Key - * @param name {String} Target name + * Constructs a new UpdateItem. + * @alias module:model/UpdateItem + * @param name {String} Current item name */ - function UpdateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - _classCallCheck(this, UpdateEKSTarget); + function UpdateItem(name) { + _classCallCheck(this, UpdateItem); - UpdateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); + UpdateItem.initialize(this, name); } /** * Initializes the fields of this object. @@ -113098,96 +191453,191 @@ var UpdateEKSTarget = /*#__PURE__*/function () { */ - _createClass(UpdateEKSTarget, null, [{ + _createClass(UpdateItem, null, [{ key: "initialize", - value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - obj['eks-access-key-id'] = eksAccessKeyId; - obj['eks-cluster-ca-cert'] = eksClusterCaCert; - obj['eks-cluster-endpoint'] = eksClusterEndpoint; - obj['eks-cluster-name'] = eksClusterName; - obj['eks-secret-access-key'] = eksSecretAccessKey; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateEKSTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateItem from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEKSTarget} obj Optional instance to populate. - * @return {module:model/UpdateEKSTarget} The populated UpdateEKSTarget instance. + * @param {module:model/UpdateItem} obj Optional instance to populate. + * @return {module:model/UpdateItem} The populated UpdateItem instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateEKSTarget(); + obj = obj || new UpdateItem(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); } - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('change-event')) { + obj['change-event'] = _ApiClient["default"].convertToType(data['change-event'], 'String'); } - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-metadata')) { + obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); + } + if (data.hasOwnProperty('new-name')) { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + if (data.hasOwnProperty('secure-access-add-host')) { + obj['secure-access-add-host'] = _ApiClient["default"].convertToType(data['secure-access-add-host'], ['String']); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-aws-region')) { + obj['secure-access-aws-region'] = _ApiClient["default"].convertToType(data['secure-access-aws-region'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-api')) { + obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-ssh')) { + obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rm-host')) { + obj['secure-access-rm-host'] = _ApiClient["default"].convertToType(data['secure-access-rm-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-ssh-creds')) { + obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); + } + + if (data.hasOwnProperty('secure-access-ssh-creds-user')) { + obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-use-internal-bastion')) { + obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -113195,118 +191645,274 @@ var UpdateEKSTarget = /*#__PURE__*/function () { } }]); - return UpdateEKSTarget; + return UpdateItem; }(); /** - * Deprecated - use description - * @member {String} comment + * @member {String} ProviderType */ -UpdateEKSTarget.prototype['comment'] = undefined; +UpdateItem.prototype['ProviderType'] = undefined; +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + +UpdateItem.prototype['accessibility'] = 'regular'; +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ + +UpdateItem.prototype['add-tag'] = undefined; +/** + * PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. + * @member {String} cert-file-data + */ + +UpdateItem.prototype['cert-file-data'] = undefined; +/** + * Trigger an event when a secret value changed [true/false] (Relevant only for Static Secret) + * @member {String} change-event + */ + +UpdateItem.prototype['change-event'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +UpdateItem.prototype['delete_protection'] = undefined; /** * Description of the object * @member {String} description + * @default 'default_metadata' */ -UpdateEKSTarget.prototype['description'] = undefined; +UpdateItem.prototype['description'] = 'default_metadata'; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ + +UpdateItem.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateItem.prototype['json'] = false; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateItem.prototype['max-versions'] = undefined; +/** + * Current item name + * @member {String} name + */ + +UpdateItem.prototype['name'] = undefined; +/** + * Deprecated - use description + * @member {String} new-metadata + * @default 'default_metadata' + */ + +UpdateItem.prototype['new-metadata'] = 'default_metadata'; +/** + * New item name + * @member {String} new-name + */ + +UpdateItem.prototype['new-name'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +UpdateItem.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +UpdateItem.prototype['rotate-after-disconnect'] = 'false'; +/** + * List of the new hosts that will be attached to SRA servers host + * @member {Array.} secure-access-add-host + */ + +UpdateItem.prototype['secure-access-add-host'] = undefined; +/** + * Allow providing external user for a domain users [true/false] + * @member {String} secure-access-allow-external-user + */ + +UpdateItem.prototype['secure-access-allow-external-user'] = undefined; +/** + * Enable Port forwarding while using CLI access (relevant only for EKS/GKE/K8s Dynamic-Secret) + * @member {Boolean} secure-access-allow-port-forwading + */ + +UpdateItem.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * The AWS account id (relevant only for aws) + * @member {String} secure-access-aws-account-id + */ + +UpdateItem.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli (relevant only for aws) + * @member {Boolean} secure-access-aws-native-cli + */ + +UpdateItem.prototype['secure-access-aws-native-cli'] = undefined; +/** + * The AWS region (relevant only for aws) + * @member {String} secure-access-aws-region + */ + +UpdateItem.prototype['secure-access-aws-region'] = undefined; +/** + * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 (relevant only for ssh cert issuer) + * @member {String} secure-access-bastion-api + */ + +UpdateItem.prototype['secure-access-bastion-api'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +UpdateItem.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Bastion's SSH server. E.g. my.bastion:22 (relevant only for ssh cert issuer) + * @member {String} secure-access-bastion-ssh + */ + +UpdateItem.prototype['secure-access-bastion-ssh'] = undefined; +/** + * The K8s cluster endpoint URL (relevant only for EKS/GKE/K8s Dynamic-Secret) + * @member {String} secure-access-cluster-endpoint + */ + +UpdateItem.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url (relevant only for k8s) + * @member {String} secure-access-dashboard-url + */ + +UpdateItem.prototype['secure-access-dashboard-url'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +UpdateItem.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-schema + */ + +UpdateItem.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +UpdateItem.prototype['secure-access-enable'] = undefined; /** - * Access Key ID - * @member {String} eks-access-key-id + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ -UpdateEKSTarget.prototype['eks-access-key-id'] = undefined; +UpdateItem.prototype['secure-access-host'] = undefined; /** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert + * RD Gateway server (relevant only for rdp) + * @member {String} secure-access-rd-gateway-server */ -UpdateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; +UpdateItem.prototype['secure-access-rd-gateway-server'] = undefined; /** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint + * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) + * @member {String} secure-access-rdp-domain */ -UpdateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; +UpdateItem.prototype['secure-access-rdp-domain'] = undefined; /** - * EKS cluster name - * @member {String} eks-cluster-name + * Override the RDP Domain username + * @member {String} secure-access-rdp-user */ -UpdateEKSTarget.prototype['eks-cluster-name'] = undefined; +UpdateItem.prototype['secure-access-rdp-user'] = undefined; /** - * Region - * @member {String} eks-region - * @default 'us-east-2' + * List of the existent hosts that will be removed from SRA servers host + * @member {Array.} secure-access-rm-host */ -UpdateEKSTarget.prototype['eks-region'] = 'us-east-2'; +UpdateItem.prototype['secure-access-rm-host'] = undefined; /** - * Secret Access Key - * @member {String} eks-secret-access-key + * Secret values contains SSH Credentials, either Private Key or Password [password/private-key] (relevant only for Static-Secret or Rotated-secret) + * @member {String} secure-access-ssh-creds */ -UpdateEKSTarget.prototype['eks-secret-access-key'] = undefined; +UpdateItem.prototype['secure-access-ssh-creds'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * SSH username to connect to target server, must be in 'Allowed Users' list (relevant only for ssh cert issuer) + * @member {String} secure-access-ssh-creds-user */ -UpdateEKSTarget.prototype['json'] = false; +UpdateItem.prototype['secure-access-ssh-creds-user'] = undefined; /** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version + * Destination URL to inject secrets + * @member {String} secure-access-url */ -UpdateEKSTarget.prototype['keep-prev-version'] = undefined; +UpdateItem.prototype['secure-access-url'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Use internal SSH Bastion + * @member {Boolean} secure-access-use-internal-bastion */ -UpdateEKSTarget.prototype['key'] = undefined; +UpdateItem.prototype['secure-access-use-internal-bastion'] = undefined; /** - * Target name - * @member {String} name + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false */ -UpdateEKSTarget.prototype['name'] = undefined; +UpdateItem.prototype['secure-access-web-browsing'] = false; /** - * New target name - * @member {String} new-name + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false */ -UpdateEKSTarget.prototype['new-name'] = undefined; +UpdateItem.prototype['secure-access-web-proxy'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateEKSTarget.prototype['token'] = undefined; +UpdateItem.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateEKSTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateEKSTarget.prototype['update-version'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -UpdateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateEKSTarget; +UpdateItem.prototype['uid-token'] = undefined; +var _default = UpdateItem; exports["default"] = _default; /***/ }), -/***/ 5542: +/***/ 68806: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -113317,7 +191923,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -113328,19 +191934,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateEKSTargetOutput model module. - * @module model/UpdateEKSTargetOutput - * @version 3.3.16 + * The UpdateItemOutput model module. + * @module model/UpdateItemOutput + * @version 3.6.3 */ -var UpdateEKSTargetOutput = /*#__PURE__*/function () { +var UpdateItemOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateEKSTargetOutput. - * @alias module:model/UpdateEKSTargetOutput + * Constructs a new UpdateItemOutput. + * @alias module:model/UpdateItemOutput */ - function UpdateEKSTargetOutput() { - _classCallCheck(this, UpdateEKSTargetOutput); + function UpdateItemOutput() { + _classCallCheck(this, UpdateItemOutput); - UpdateEKSTargetOutput.initialize(this); + UpdateItemOutput.initialize(this); } /** * Initializes the fields of this object. @@ -113349,25 +191955,25 @@ var UpdateEKSTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateEKSTargetOutput, null, [{ + _createClass(UpdateItemOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateItemOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEKSTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateEKSTargetOutput} The populated UpdateEKSTargetOutput instance. + * @param {module:model/UpdateItemOutput} obj Optional instance to populate. + * @return {module:model/UpdateItemOutput} The populated UpdateItemOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateEKSTargetOutput(); + obj = obj || new UpdateItemOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } } @@ -113375,20 +191981,20 @@ var UpdateEKSTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateEKSTargetOutput; + return UpdateItemOutput; }(); /** - * @member {Number} target_id + * @member {Boolean} updated */ -UpdateEKSTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateEKSTargetOutput; +UpdateItemOutput.prototype['updated'] = undefined; +var _default = UpdateItemOutput; exports["default"] = _default; /***/ }), -/***/ 15930: +/***/ 47860: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -113399,7 +192005,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -113410,20 +192016,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateEventForwarder model module. - * @module model/UpdateEventForwarder - * @version 3.3.16 + * The UpdateLdapTarget model module. + * @module model/UpdateLdapTarget + * @version 3.6.3 */ -var UpdateEventForwarder = /*#__PURE__*/function () { +var UpdateLdapTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateEventForwarder. - * @alias module:model/UpdateEventForwarder - * @param name {String} EventForwarder name + * Constructs a new UpdateLdapTarget. + * @alias module:model/UpdateLdapTarget + * @param name {String} Target name */ - function UpdateEventForwarder(name) { - _classCallCheck(this, UpdateEventForwarder); + function UpdateLdapTarget(name) { + _classCallCheck(this, UpdateLdapTarget); - UpdateEventForwarder.initialize(this, name); + UpdateLdapTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -113432,173 +192038,205 @@ var UpdateEventForwarder = /*#__PURE__*/function () { */ - _createClass(UpdateEventForwarder, null, [{ + _createClass(UpdateLdapTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateLdapTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEventForwarder} obj Optional instance to populate. - * @return {module:model/UpdateEventForwarder} The populated UpdateEventForwarder instance. + * @param {module:model/UpdateLdapTarget} obj Optional instance to populate. + * @return {module:model/UpdateLdapTarget} The populated UpdateLdapTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateEventForwarder(); + obj = obj || new UpdateLdapTarget(); - if (data.hasOwnProperty('admin-name')) { - obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('email-to')) { - obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('enable')) { - obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('event-source-locations')) { - obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('event-types')) { - obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); } - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-comment')) { - obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); - } - if (data.hasOwnProperty('new-name')) { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } + if (data.hasOwnProperty('server-type')) { + obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } } return obj; } }]); - return UpdateEventForwarder; + return UpdateLdapTarget; }(); /** - * Workstation Admin Name - * @member {String} admin-name + * @member {String} bind-dn */ -UpdateEventForwarder.prototype['admin-name'] = undefined; +UpdateLdapTarget.prototype['bind-dn'] = undefined; +/** + * @member {String} bind-dn-password + */ + +UpdateLdapTarget.prototype['bind-dn-password'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +UpdateLdapTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description - * @default 'default_comment' */ -UpdateEventForwarder.prototype['description'] = 'default_comment'; +UpdateLdapTarget.prototype['description'] = undefined; /** - * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) - * @member {String} email-to + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateEventForwarder.prototype['email-to'] = undefined; +UpdateLdapTarget.prototype['json'] = false; /** - * Enable/Disable Event Forwarder [true/false] - * @member {String} enable - * @default 'true' + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateEventForwarder.prototype['enable'] = 'true'; +UpdateLdapTarget.prototype['keep-prev-version'] = undefined; /** - * Event sources - * @member {Array.} event-source-locations + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateEventForwarder.prototype['event-source-locations'] = undefined; +UpdateLdapTarget.prototype['key'] = undefined; /** - * Event types - * @member {Array.} event-types + * @member {String} ldap-ca-cert */ -UpdateEventForwarder.prototype['event-types'] = undefined; +UpdateLdapTarget.prototype['ldap-ca-cert'] = undefined; /** - * Workstation Host - * @member {String} host + * @member {String} ldap-url */ -UpdateEventForwarder.prototype['host'] = undefined; +UpdateLdapTarget.prototype['ldap-url'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateEventForwarder.prototype['json'] = false; +UpdateLdapTarget.prototype['max-versions'] = undefined; /** - * EventForwarder name + * Target name * @member {String} name */ -UpdateEventForwarder.prototype['name'] = undefined; +UpdateLdapTarget.prototype['name'] = undefined; /** - * Deprecated - use description - * @member {String} new-comment - * @default 'default_comment' + * New target name + * @member {String} new-name */ -UpdateEventForwarder.prototype['new-comment'] = 'default_comment'; +UpdateLdapTarget.prototype['new-name'] = undefined; /** - * New EventForwarder name - * @member {String} new-name + * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory] + * @member {String} server-type */ -UpdateEventForwarder.prototype['new-name'] = undefined; +UpdateLdapTarget.prototype['server-type'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateEventForwarder.prototype['token'] = undefined; +UpdateLdapTarget.prototype['token'] = undefined; +/** + * @member {String} token-expiration + */ + +UpdateLdapTarget.prototype['token-expiration'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateEventForwarder.prototype['uid-token'] = undefined; -var _default = UpdateEventForwarder; +UpdateLdapTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateLdapTarget.prototype['update-version'] = undefined; +var _default = UpdateLdapTarget; exports["default"] = _default; /***/ }), -/***/ 59732: +/***/ 52356: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -113609,7 +192247,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -113620,20 +192258,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGKETarget model module. - * @module model/UpdateGKETarget - * @version 3.3.16 + * The UpdateLdapTargetDetails model module. + * @module model/UpdateLdapTargetDetails + * @version 3.6.3 */ -var UpdateGKETarget = /*#__PURE__*/function () { +var UpdateLdapTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new UpdateGKETarget. - * @alias module:model/UpdateGKETarget + * Constructs a new UpdateLdapTargetDetails. + * @alias module:model/UpdateLdapTargetDetails * @param name {String} Target name */ - function UpdateGKETarget(name) { - _classCallCheck(this, UpdateGKETarget); + function UpdateLdapTargetDetails(name) { + _classCallCheck(this, UpdateLdapTargetDetails); - UpdateGKETarget.initialize(this, name); + UpdateLdapTargetDetails.initialize(this, name); } /** * Initializes the fields of this object. @@ -113642,51 +192280,31 @@ var UpdateGKETarget = /*#__PURE__*/function () { */ - _createClass(UpdateGKETarget, null, [{ + _createClass(UpdateLdapTargetDetails, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateGKETarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateLdapTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGKETarget} obj Optional instance to populate. - * @return {module:model/UpdateGKETarget} The populated UpdateGKETarget instance. + * @param {module:model/UpdateLdapTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateLdapTargetDetails} The populated UpdateLdapTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGKETarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); - } + obj = obj || new UpdateLdapTargetDetails(); - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); } - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); } if (data.hasOwnProperty('json')) { @@ -113701,28 +192319,36 @@ var UpdateGKETarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -113730,111 +192356,88 @@ var UpdateGKETarget = /*#__PURE__*/function () { } }]); - return UpdateGKETarget; + return UpdateLdapTargetDetails; }(); /** - * Deprecated - use description - * @member {String} comment + * @member {String} bind-dn */ -UpdateGKETarget.prototype['comment'] = undefined; +UpdateLdapTargetDetails.prototype['bind-dn'] = undefined; /** - * Description of the object - * @member {String} description + * @member {String} bind-dn-password */ -UpdateGKETarget.prototype['description'] = undefined; +UpdateLdapTargetDetails.prototype['bind-dn-password'] = undefined; /** - * GKE Service Account key file path - * @member {String} gke-account-key + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateGKETarget.prototype['gke-account-key'] = undefined; +UpdateLdapTargetDetails.prototype['json'] = false; /** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateGKETarget.prototype['gke-cluster-cert'] = undefined; +UpdateLdapTargetDetails.prototype['keep-prev-version'] = undefined; /** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint + * @member {String} key */ -UpdateGKETarget.prototype['gke-cluster-endpoint'] = undefined; +UpdateLdapTargetDetails.prototype['key'] = undefined; /** - * GKE cluster name - * @member {String} gke-cluster-name + * @member {String} ldap-ca-cert */ -UpdateGKETarget.prototype['gke-cluster-name'] = undefined; +UpdateLdapTargetDetails.prototype['ldap-ca-cert'] = undefined; /** - * GKE service account email - * @member {String} gke-service-account-email + * @member {String} ldap-url */ -UpdateGKETarget.prototype['gke-service-account-email'] = undefined; +UpdateLdapTargetDetails.prototype['ldap-url'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Target name + * @member {String} name */ -UpdateGKETarget.prototype['json'] = false; +UpdateLdapTargetDetails.prototype['name'] = undefined; /** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version + * Deprecated + * @member {Boolean} new-version */ -UpdateGKETarget.prototype['keep-prev-version'] = undefined; +UpdateLdapTargetDetails.prototype['new-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateGKETarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateGKETarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name + * @member {String} protection_key */ -UpdateGKETarget.prototype['new-name'] = undefined; +UpdateLdapTargetDetails.prototype['protection_key'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateGKETarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateGKETarget.prototype['uid-token'] = undefined; +UpdateLdapTargetDetails.prototype['token'] = undefined; /** - * Deprecated - * @member {Boolean} update-version + * @member {String} token-expiration */ -UpdateGKETarget.prototype['update-version'] = undefined; +UpdateLdapTargetDetails.prototype['token-expiration'] = undefined; /** - * @member {Boolean} use-gw-cloud-identity + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -UpdateGKETarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateGKETarget; +UpdateLdapTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateLdapTargetDetails; exports["default"] = _default; /***/ }), -/***/ 27089: +/***/ 2501: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -113845,7 +192448,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -113856,19 +192459,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGKETargetOutput model module. - * @module model/UpdateGKETargetOutput - * @version 3.3.16 + * The UpdateLdapTargetOutput model module. + * @module model/UpdateLdapTargetOutput + * @version 3.6.3 */ -var UpdateGKETargetOutput = /*#__PURE__*/function () { +var UpdateLdapTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateGKETargetOutput. - * @alias module:model/UpdateGKETargetOutput + * Constructs a new UpdateLdapTargetOutput. + * @alias module:model/UpdateLdapTargetOutput */ - function UpdateGKETargetOutput() { - _classCallCheck(this, UpdateGKETargetOutput); + function UpdateLdapTargetOutput() { + _classCallCheck(this, UpdateLdapTargetOutput); - UpdateGKETargetOutput.initialize(this); + UpdateLdapTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -113877,22 +192480,22 @@ var UpdateGKETargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateGKETargetOutput, null, [{ + _createClass(UpdateLdapTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGKETargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGKETargetOutput} The populated UpdateGKETargetOutput instance. + * @param {module:model/UpdateLdapTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateLdapTargetOutput} The populated UpdateLdapTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGKETargetOutput(); + obj = obj || new UpdateLdapTargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -113903,20 +192506,20 @@ var UpdateGKETargetOutput = /*#__PURE__*/function () { } }]); - return UpdateGKETargetOutput; + return UpdateLdapTargetOutput; }(); /** * @member {Number} target_id */ -UpdateGKETargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGKETargetOutput; +UpdateLdapTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateLdapTargetOutput; exports["default"] = _default; /***/ }), -/***/ 37362: +/***/ 21384: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -113927,7 +192530,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -113938,20 +192541,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGcpTarget model module. - * @module model/UpdateGcpTarget - * @version 3.3.16 + * The UpdateLinkedTarget model module. + * @module model/UpdateLinkedTarget + * @version 3.6.3 */ -var UpdateGcpTarget = /*#__PURE__*/function () { +var UpdateLinkedTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateGcpTarget. - * @alias module:model/UpdateGcpTarget - * @param name {String} Target name + * Constructs a new UpdateLinkedTarget. + * @alias module:model/UpdateLinkedTarget + * @param name {String} Linked Target name */ - function UpdateGcpTarget(name) { - _classCallCheck(this, UpdateGcpTarget); + function UpdateLinkedTarget(name) { + _classCallCheck(this, UpdateLinkedTarget); - UpdateGcpTarget.initialize(this, name); + UpdateLinkedTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -113960,35 +192563,35 @@ var UpdateGcpTarget = /*#__PURE__*/function () { */ - _createClass(UpdateGcpTarget, null, [{ + _createClass(UpdateLinkedTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateGcpTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateLinkedTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGcpTarget} obj Optional instance to populate. - * @return {module:model/UpdateGcpTarget} The populated UpdateGcpTarget instance. + * @param {module:model/UpdateLinkedTarget} obj Optional instance to populate. + * @return {module:model/UpdateLinkedTarget} The populated UpdateLinkedTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGcpTarget(); + obj = obj || new UpdateLinkedTarget(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('add-hosts')) { + obj['add-hosts'] = _ApiClient["default"].convertToType(data['add-hosts'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); } if (data.hasOwnProperty('json')) { @@ -113999,10 +192602,6 @@ var UpdateGcpTarget = /*#__PURE__*/function () { obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -114011,20 +192610,24 @@ var UpdateGcpTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('parent-target-name')) { + obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('rm-hosts')) { + obj['rm-hosts'] = _ApiClient["default"].convertToType(data['rm-hosts'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -114032,169 +192635,88 @@ var UpdateGcpTarget = /*#__PURE__*/function () { } }]); - return UpdateGcpTarget; + return UpdateLinkedTarget; }(); /** - * Deprecated - use description - * @member {String} comment + * A comma seperated list of new server hosts and server descriptions joined by semicolon ';' that will be added to the Linked Target hosts. + * @member {String} add-hosts */ -UpdateGcpTarget.prototype['comment'] = undefined; +UpdateLinkedTarget.prototype['add-hosts'] = undefined; /** * Description of the object * @member {String} description */ -UpdateGcpTarget.prototype['description'] = undefined; +UpdateLinkedTarget.prototype['description'] = undefined; /** - * Base64-encoded service account private key text - * @member {String} gcp-key + * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') + * @member {String} hosts */ -UpdateGcpTarget.prototype['gcp-key'] = undefined; +UpdateLinkedTarget.prototype['hosts'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateGcpTarget.prototype['json'] = false; +UpdateLinkedTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateGcpTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateGcpTarget.prototype['key'] = undefined; +UpdateLinkedTarget.prototype['keep-prev-version'] = undefined; /** - * Target name + * Linked Target name * @member {String} name */ -UpdateGcpTarget.prototype['name'] = undefined; +UpdateLinkedTarget.prototype['name'] = undefined; /** - * New target name + * New Linked Target name * @member {String} new-name */ -UpdateGcpTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateGcpTarget.prototype['token'] = undefined; +UpdateLinkedTarget.prototype['new-name'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * The parent Target name + * @member {String} parent-target-name */ -UpdateGcpTarget.prototype['uid-token'] = undefined; +UpdateLinkedTarget.prototype['parent-target-name'] = undefined; /** - * Deprecated - * @member {Boolean} update-version + * Comma separated list of existing hosts that will be removed from Linked Target hosts. + * @member {String} rm-hosts */ -UpdateGcpTarget.prototype['update-version'] = undefined; +UpdateLinkedTarget.prototype['rm-hosts'] = undefined; /** - * @member {Boolean} use-gw-cloud-identity + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -UpdateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateGcpTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 24721: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +UpdateLinkedTarget.prototype['token'] = undefined; /** - * The UpdateGcpTargetOutput model module. - * @module model/UpdateGcpTargetOutput - * @version 3.3.16 + * Specifies the hosts type, relevant only when working without parent target + * @member {String} type */ -var UpdateGcpTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGcpTargetOutput. - * @alias module:model/UpdateGcpTargetOutput - */ - function UpdateGcpTargetOutput() { - _classCallCheck(this, UpdateGcpTargetOutput); - - UpdateGcpTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGcpTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGcpTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGcpTargetOutput} The populated UpdateGcpTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGcpTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - return UpdateGcpTargetOutput; -}(); +UpdateLinkedTarget.prototype['type'] = undefined; /** - * @member {Number} target_id + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ - -UpdateGcpTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGcpTargetOutput; +UpdateLinkedTarget.prototype['uid-token'] = undefined; +var _default = UpdateLinkedTarget; exports["default"] = _default; /***/ }), -/***/ 99328: +/***/ 1454: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -114205,7 +192727,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -114216,20 +192738,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGithubTarget model module. - * @module model/UpdateGithubTarget - * @version 3.3.16 + * The UpdateNativeK8STarget model module. + * @module model/UpdateNativeK8STarget + * @version 3.6.3 */ -var UpdateGithubTarget = /*#__PURE__*/function () { +var UpdateNativeK8STarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateGithubTarget. - * @alias module:model/UpdateGithubTarget + * Constructs a new UpdateNativeK8STarget. + * @alias module:model/UpdateNativeK8STarget + * @param k8sClusterCaCert {String} K8S cluster CA certificate + * @param k8sClusterEndpoint {String} K8S cluster URL endpoint + * @param k8sClusterToken {String} K8S cluster Bearer token * @param name {String} Target name */ - function UpdateGithubTarget(name) { - _classCallCheck(this, UpdateGithubTarget); + function UpdateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + _classCallCheck(this, UpdateNativeK8STarget); - UpdateGithubTarget.initialize(this, name); + UpdateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); } /** * Initializes the fields of this object. @@ -114238,24 +192763,27 @@ var UpdateGithubTarget = /*#__PURE__*/function () { */ - _createClass(UpdateGithubTarget, null, [{ + _createClass(UpdateNativeK8STarget, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; + obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; + obj['k8s-cluster-token'] = k8sClusterToken; obj['name'] = name; } /** - * Constructs a UpdateGithubTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGithubTarget} obj Optional instance to populate. - * @return {module:model/UpdateGithubTarget} The populated UpdateGithubTarget instance. + * @param {module:model/UpdateNativeK8STarget} obj Optional instance to populate. + * @return {module:model/UpdateNativeK8STarget} The populated UpdateNativeK8STarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGithubTarget(); + obj = obj || new UpdateNativeK8STarget(); if (data.hasOwnProperty('comment')) { obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); @@ -114265,20 +192793,32 @@ var UpdateGithubTarget = /*#__PURE__*/function () { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); } - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); } if (data.hasOwnProperty('keep-prev-version')) { @@ -114289,6 +192829,10 @@ var UpdateGithubTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -114308,13 +192852,17 @@ var UpdateGithubTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('update-version')) { obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } } return obj; } }]); - return UpdateGithubTarget; + return UpdateNativeK8STarget; }(); /** * Deprecated - use description @@ -114322,87 +192870,120 @@ var UpdateGithubTarget = /*#__PURE__*/function () { */ -UpdateGithubTarget.prototype['comment'] = undefined; +UpdateNativeK8STarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description */ -UpdateGithubTarget.prototype['description'] = undefined; +UpdateNativeK8STarget.prototype['description'] = undefined; /** - * Github app id - * @member {Number} github-app-id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateGithubTarget.prototype['github-app-id'] = undefined; +UpdateNativeK8STarget.prototype['json'] = false; /** - * App private key - * @member {String} github-app-private-key + * K8S auth type [token/certificate] + * @member {String} k8s-auth-type + * @default 'token' */ -UpdateGithubTarget.prototype['github-app-private-key'] = undefined; +UpdateNativeK8STarget.prototype['k8s-auth-type'] = 'token'; /** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' + * Content of the k8 client certificate (PEM format) in a Base64 format + * @member {String} k8s-client-certificate */ -UpdateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; +UpdateNativeK8STarget.prototype['k8s-client-certificate'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Content of the k8 client private key (PEM format) in a Base64 format + * @member {String} k8s-client-key */ -UpdateGithubTarget.prototype['json'] = false; +UpdateNativeK8STarget.prototype['k8s-client-key'] = undefined; +/** + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + * @default 'dummy_val' + */ + +UpdateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; +/** + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + * @default 'dummy_val' + */ + +UpdateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; +/** + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + * @default 'dummy_val' + */ + +UpdateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateGithubTarget.prototype['keep-prev-version'] = undefined; +UpdateNativeK8STarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateGithubTarget.prototype['key'] = undefined; +UpdateNativeK8STarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateNativeK8STarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateGithubTarget.prototype['name'] = undefined; +UpdateNativeK8STarget.prototype['name'] = undefined; /** * New target name * @member {String} new-name */ -UpdateGithubTarget.prototype['new-name'] = undefined; +UpdateNativeK8STarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateGithubTarget.prototype['token'] = undefined; +UpdateNativeK8STarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateGithubTarget.prototype['uid-token'] = undefined; +UpdateNativeK8STarget.prototype['uid-token'] = undefined; /** * Deprecated * @member {Boolean} update-version */ -UpdateGithubTarget.prototype['update-version'] = undefined; -var _default = UpdateGithubTarget; +UpdateNativeK8STarget.prototype['update-version'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +UpdateNativeK8STarget.prototype['use-gw-service-account'] = undefined; +var _default = UpdateNativeK8STarget; exports["default"] = _default; /***/ }), -/***/ 69577: +/***/ 19259: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -114413,7 +192994,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -114424,19 +193005,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGithubTargetOutput model module. - * @module model/UpdateGithubTargetOutput - * @version 3.3.16 + * The UpdateNativeK8STargetOutput model module. + * @module model/UpdateNativeK8STargetOutput + * @version 3.6.3 */ -var UpdateGithubTargetOutput = /*#__PURE__*/function () { +var UpdateNativeK8STargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateGithubTargetOutput. - * @alias module:model/UpdateGithubTargetOutput + * Constructs a new UpdateNativeK8STargetOutput. + * @alias module:model/UpdateNativeK8STargetOutput */ - function UpdateGithubTargetOutput() { - _classCallCheck(this, UpdateGithubTargetOutput); + function UpdateNativeK8STargetOutput() { + _classCallCheck(this, UpdateNativeK8STargetOutput); - UpdateGithubTargetOutput.initialize(this); + UpdateNativeK8STargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -114445,22 +193026,22 @@ var UpdateGithubTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateGithubTargetOutput, null, [{ + _createClass(UpdateNativeK8STargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGithubTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGithubTargetOutput} The populated UpdateGithubTargetOutput instance. + * @param {module:model/UpdateNativeK8STargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateNativeK8STargetOutput} The populated UpdateNativeK8STargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGithubTargetOutput(); + obj = obj || new UpdateNativeK8STargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -114471,20 +193052,20 @@ var UpdateGithubTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateGithubTargetOutput; + return UpdateNativeK8STargetOutput; }(); /** * @member {Number} target_id */ -UpdateGithubTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGithubTargetOutput; +UpdateNativeK8STargetOutput.prototype['target_id'] = undefined; +var _default = UpdateNativeK8STargetOutput; exports["default"] = _default; /***/ }), -/***/ 60176: +/***/ 44538: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -114495,7 +193076,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -114506,22 +193087,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGlobalSignAtlasTarget model module. - * @module model/UpdateGlobalSignAtlasTarget - * @version 3.3.16 + * The UpdateOidcApp model module. + * @module model/UpdateOidcApp + * @version 3.6.3 */ -var UpdateGlobalSignAtlasTarget = /*#__PURE__*/function () { +var UpdateOidcApp = /*#__PURE__*/function () { /** - * Constructs a new UpdateGlobalSignAtlasTarget. - * @alias module:model/UpdateGlobalSignAtlasTarget - * @param apiKey {String} API Key of the GlobalSign Atlas account - * @param apiSecret {String} API Secret of the GlobalSign Atlas account - * @param name {String} Target name + * Constructs a new UpdateOidcApp. + * @alias module:model/UpdateOidcApp + * @param name {String} OIDC application name */ - function UpdateGlobalSignAtlasTarget(apiKey, apiSecret, name) { - _classCallCheck(this, UpdateGlobalSignAtlasTarget); + function UpdateOidcApp(name) { + _classCallCheck(this, UpdateOidcApp); - UpdateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); + UpdateOidcApp.initialize(this, name); } /** * Initializes the fields of this object. @@ -114530,73 +193109,55 @@ var UpdateGlobalSignAtlasTarget = /*#__PURE__*/function () { */ - _createClass(UpdateGlobalSignAtlasTarget, null, [{ + _createClass(UpdateOidcApp, null, [{ key: "initialize", - value: function initialize(obj, apiKey, apiSecret, name) { - obj['api-key'] = apiKey; - obj['api-secret'] = apiSecret; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateOidcApp from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignAtlasTarget} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignAtlasTarget} The populated UpdateGlobalSignAtlasTarget instance. + * @param {module:model/UpdateOidcApp} obj Optional instance to populate. + * @return {module:model/UpdateOidcApp} The populated UpdateOidcApp instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGlobalSignAtlasTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('api-secret')) { - obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } + obj = obj || new UpdateOidcApp(); - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - if (data.hasOwnProperty('key')) { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('mtls-cert-data-base64')) { - obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('mtls-key-data-base64')) { - obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); + if (data.hasOwnProperty('permission-assignment')) { + obj['permission-assignment'] = _ApiClient["default"].convertToType(data['permission-assignment'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('public')) { + obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('redirect-uris')) { + obj['redirect-uris'] = _ApiClient["default"].convertToType(data['redirect-uris'], 'String'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], 'String'); } if (data.hasOwnProperty('token')) { @@ -114606,117 +193167,83 @@ var UpdateGlobalSignAtlasTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } } return obj; } }]); - return UpdateGlobalSignAtlasTarget; + return UpdateOidcApp; }(); /** - * API Key of the GlobalSign Atlas account - * @member {String} api-key - */ - - -UpdateGlobalSignAtlasTarget.prototype['api-key'] = undefined; -/** - * API Secret of the GlobalSign Atlas account - * @member {String} api-secret - */ - -UpdateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment + * A comma separated list of allowed audiences + * @member {String} audience */ -UpdateGlobalSignAtlasTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ -UpdateGlobalSignAtlasTarget.prototype['description'] = undefined; +UpdateOidcApp.prototype['audience'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateGlobalSignAtlasTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateGlobalSignAtlasTarget.prototype['keep-prev-version'] = undefined; +UpdateOidcApp.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * The name of a key that used to encrypt the OIDC application (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateGlobalSignAtlasTarget.prototype['key'] = undefined; +UpdateOidcApp.prototype['key'] = undefined; /** - * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied - * @member {String} mtls-cert-data-base64 + * OIDC application name + * @member {String} name */ -UpdateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; +UpdateOidcApp.prototype['name'] = undefined; /** - * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied - * @member {String} mtls-key-data-base64 + * A json string defining the access permission assignment for this app + * @member {String} permission-assignment */ -UpdateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; +UpdateOidcApp.prototype['permission-assignment'] = undefined; /** - * Target name - * @member {String} name + * Set to true if the app is public (cannot keep secrets) + * @member {Boolean} public */ -UpdateGlobalSignAtlasTarget.prototype['name'] = undefined; +UpdateOidcApp.prototype['public'] = undefined; /** - * New target name - * @member {String} new-name + * A comma separated list of allowed redirect uris + * @member {String} redirect-uris */ -UpdateGlobalSignAtlasTarget.prototype['new-name'] = undefined; +UpdateOidcApp.prototype['redirect-uris'] = undefined; /** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' + * A comma separated list of allowed scopes + * @member {String} scopes + * @default 'openid' */ -UpdateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; +UpdateOidcApp.prototype['scopes'] = 'openid'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateGlobalSignAtlasTarget.prototype['token'] = undefined; +UpdateOidcApp.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateGlobalSignAtlasTarget.prototype['update-version'] = undefined; -var _default = UpdateGlobalSignAtlasTarget; +UpdateOidcApp.prototype['uid-token'] = undefined; +var _default = UpdateOidcApp; exports["default"] = _default; /***/ }), -/***/ 86836: +/***/ 89325: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -114727,7 +193254,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -114738,19 +193265,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGlobalSignAtlasTargetOutput model module. - * @module model/UpdateGlobalSignAtlasTargetOutput - * @version 3.3.16 + * The UpdateOutput model module. + * @module model/UpdateOutput + * @version 3.6.3 */ -var UpdateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { +var UpdateOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateGlobalSignAtlasTargetOutput. - * @alias module:model/UpdateGlobalSignAtlasTargetOutput + * Constructs a new UpdateOutput. + * @alias module:model/UpdateOutput */ - function UpdateGlobalSignAtlasTargetOutput() { - _classCallCheck(this, UpdateGlobalSignAtlasTargetOutput); + function UpdateOutput() { + _classCallCheck(this, UpdateOutput); - UpdateGlobalSignAtlasTargetOutput.initialize(this); + UpdateOutput.initialize(this); } /** * Initializes the fields of this object. @@ -114759,25 +193286,33 @@ var UpdateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateGlobalSignAtlasTargetOutput, null, [{ + _createClass(UpdateOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignAtlasTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignAtlasTargetOutput} The populated UpdateGlobalSignAtlasTargetOutput instance. + * @param {module:model/UpdateOutput} obj Optional instance to populate. + * @return {module:model/UpdateOutput} The populated UpdateOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGlobalSignAtlasTargetOutput(); + obj = obj || new UpdateOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('changelog')) { + obj['changelog'] = _ApiClient["default"].convertToType(data['changelog'], 'String'); + } + + if (data.hasOwnProperty('latest')) { + obj['latest'] = _ApiClient["default"].convertToType(data['latest'], 'String'); + } + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } } @@ -114785,20 +193320,30 @@ var UpdateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateGlobalSignAtlasTargetOutput; + return UpdateOutput; }(); /** - * @member {Number} target_id + * @member {String} changelog + */ + + +UpdateOutput.prototype['changelog'] = undefined; +/** + * @member {String} latest */ +UpdateOutput.prototype['latest'] = undefined; +/** + * @member {Boolean} updated + */ -UpdateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGlobalSignAtlasTargetOutput; +UpdateOutput.prototype['updated'] = undefined; +var _default = UpdateOutput; exports["default"] = _default; /***/ }), -/***/ 57821: +/***/ 36355: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -114809,7 +193354,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -114820,27 +193365,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGlobalSignTarget model module. - * @module model/UpdateGlobalSignTarget - * @version 3.3.16 + * The UpdatePKICertIssuer model module. + * @module model/UpdatePKICertIssuer + * @version 3.6.3 */ -var UpdateGlobalSignTarget = /*#__PURE__*/function () { +var UpdatePKICertIssuer = /*#__PURE__*/function () { /** - * Constructs a new UpdateGlobalSignTarget. - * @alias module:model/UpdateGlobalSignTarget - * @param contactEmail {String} Email of the GlobalSign GCC account contact - * @param contactFirstName {String} First name of the GlobalSign GCC account contact - * @param contactLastName {String} Last name of the GlobalSign GCC account contact - * @param contactPhone {String} Telephone of the GlobalSign GCC account contact - * @param name {String} Target name - * @param password {String} Password of the GlobalSign GCC account - * @param profileId {String} Profile ID of the GlobalSign GCC account - * @param username {String} Username of the GlobalSign GCC account + * Constructs a new UpdatePKICertIssuer. + * @alias module:model/UpdatePKICertIssuer + * @param name {String} PKI certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode + * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs */ - function UpdateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - _classCallCheck(this, UpdateGlobalSignTarget); + function UpdatePKICertIssuer(name, signerKeyName, ttl) { + _classCallCheck(this, UpdatePKICertIssuer); - UpdateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); + UpdatePKICertIssuer.initialize(this, name, signerKeyName, ttl); } /** * Initializes the fields of this object. @@ -114849,66 +193389,113 @@ var UpdateGlobalSignTarget = /*#__PURE__*/function () { */ - _createClass(UpdateGlobalSignTarget, null, [{ + _createClass(UpdatePKICertIssuer, null, [{ key: "initialize", - value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - obj['contact-email'] = contactEmail; - obj['contact-first-name'] = contactFirstName; - obj['contact-last-name'] = contactLastName; - obj['contact-phone'] = contactPhone; + value: function initialize(obj, name, signerKeyName, ttl) { obj['name'] = name; - obj['password'] = password; - obj['profile-id'] = profileId; - obj['username'] = username; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; } /** - * Constructs a UpdateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignTarget} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignTarget} The populated UpdateGlobalSignTarget instance. + * @param {module:model/UpdatePKICertIssuer} obj Optional instance to populate. + * @return {module:model/UpdatePKICertIssuer} The populated UpdatePKICertIssuer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGlobalSignTarget(); + obj = obj || new UpdatePKICertIssuer(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('contact-email')) { - obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); + if (data.hasOwnProperty('allow-any-name')) { + obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); } - if (data.hasOwnProperty('contact-first-name')) { - obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); + if (data.hasOwnProperty('allow-copy-ext-from-csr')) { + obj['allow-copy-ext-from-csr'] = _ApiClient["default"].convertToType(data['allow-copy-ext-from-csr'], 'Boolean'); } - if (data.hasOwnProperty('contact-last-name')) { - obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); } - if (data.hasOwnProperty('contact-phone')) { - obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); + } + + if (data.hasOwnProperty('allowed-extra-extensions')) { + obj['allowed-extra-extensions'] = _ApiClient["default"].convertToType(data['allowed-extra-extensions'], 'String'); + } + + if (data.hasOwnProperty('allowed-uri-sans')) { + obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); + } + + if (data.hasOwnProperty('client-flag')) { + obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('code-signing-flag')) { + obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('create-private-crl')) { + obj['create-private-crl'] = _ApiClient["default"].convertToType(data['create-private-crl'], 'Boolean'); + } + + if (data.hasOwnProperty('create-public-crl')) { + obj['create-public-crl'] = _ApiClient["default"].convertToType(data['create-public-crl'], 'Boolean'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('destination-path')) { + obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); + } + + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } + + if (data.hasOwnProperty('gw-cluster-url')) { + obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); + } + + if (data.hasOwnProperty('is-ca')) { + obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + if (data.hasOwnProperty('key-usage')) { + obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); } if (data.hasOwnProperty('name')) { @@ -114919,32 +193506,60 @@ var UpdateGlobalSignTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('not-enforce-hostnames')) { + obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); } - if (data.hasOwnProperty('profile-id')) { - obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); + if (data.hasOwnProperty('not-require-cn')) { + obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); } - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + if (data.hasOwnProperty('organizational-units')) { + obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + if (data.hasOwnProperty('protect-certificates')) { + obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); } - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('server-flag')) { + obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('street-address')) { + obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -114952,125 +193567,246 @@ var UpdateGlobalSignTarget = /*#__PURE__*/function () { } }]); - return UpdateGlobalSignTarget; + return UpdatePKICertIssuer; }(); /** - * Deprecated - use description - * @member {String} comment + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -UpdateGlobalSignTarget.prototype['comment'] = undefined; +UpdatePKICertIssuer.prototype['add-tag'] = undefined; /** - * Email of the GlobalSign GCC account contact - * @member {String} contact-email + * If set, clients can request certificates for any CN + * @member {Boolean} allow-any-name */ -UpdateGlobalSignTarget.prototype['contact-email'] = undefined; +UpdatePKICertIssuer.prototype['allow-any-name'] = undefined; /** - * First name of the GlobalSign GCC account contact - * @member {String} contact-first-name + * If set, will allow copying the extra extensions from the csr file (if given) + * @member {Boolean} allow-copy-ext-from-csr */ -UpdateGlobalSignTarget.prototype['contact-first-name'] = undefined; +UpdatePKICertIssuer.prototype['allow-copy-ext-from-csr'] = undefined; /** - * Last name of the GlobalSign GCC account contact - * @member {String} contact-last-name + * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains + * @member {Boolean} allow-subdomains */ -UpdateGlobalSignTarget.prototype['contact-last-name'] = undefined; +UpdatePKICertIssuer.prototype['allow-subdomains'] = undefined; /** - * Telephone of the GlobalSign GCC account contact - * @member {String} contact-phone + * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) + * @member {String} allowed-domains */ -UpdateGlobalSignTarget.prototype['contact-phone'] = undefined; +UpdatePKICertIssuer.prototype['allowed-domains'] = undefined; +/** + * A json string containing the allowed extra extensions for the pki cert issuer + * @member {String} allowed-extra-extensions + */ + +UpdatePKICertIssuer.prototype['allowed-extra-extensions'] = undefined; +/** + * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) + * @member {String} allowed-uri-sans + */ + +UpdatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; +/** + * If set, certificates will be flagged for client auth use + * @member {Boolean} client-flag + */ + +UpdatePKICertIssuer.prototype['client-flag'] = undefined; +/** + * If set, certificates will be flagged for code signing use + * @member {Boolean} code-signing-flag + */ + +UpdatePKICertIssuer.prototype['code-signing-flag'] = undefined; +/** + * A comma-separated list of countries that will be set in the issued certificate + * @member {String} country + */ + +UpdatePKICertIssuer.prototype['country'] = undefined; +/** + * Set this to allow the issuer will expose a CRL endpoint in the Gateway + * @member {Boolean} create-private-crl + */ + +UpdatePKICertIssuer.prototype['create-private-crl'] = undefined; +/** + * Set this to allow the cert issuer will expose a public CRL endpoint + * @member {Boolean} create-public-crl + */ + +UpdatePKICertIssuer.prototype['create-public-crl'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +UpdatePKICertIssuer.prototype['delete_protection'] = undefined; /** * Description of the object * @member {String} description */ -UpdateGlobalSignTarget.prototype['description'] = undefined; +UpdatePKICertIssuer.prototype['description'] = undefined; +/** + * A path in which to save generated certificates + * @member {String} destination-path + */ + +UpdatePKICertIssuer.prototype['destination-path'] = undefined; +/** + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in + */ + +UpdatePKICertIssuer.prototype['expiration-event-in'] = undefined; +/** + * The GW cluster URL to issue the certificate from, required in Public CA mode or to allow CRLs on private CA + * @member {String} gw-cluster-url + */ + +UpdatePKICertIssuer.prototype['gw-cluster-url'] = undefined; +/** + * If set, the basic constraints extension will be added to certificate + * @member {Boolean} is-ca + */ + +UpdatePKICertIssuer.prototype['is-ca'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateGlobalSignTarget.prototype['json'] = false; +UpdatePKICertIssuer.prototype['json'] = false; /** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version + * key-usage + * @member {String} key-usage + * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' */ -UpdateGlobalSignTarget.prototype['keep-prev-version'] = undefined; +UpdatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * A comma-separated list of localities that will be set in the issued certificate + * @member {String} locality */ -UpdateGlobalSignTarget.prototype['key'] = undefined; +UpdatePKICertIssuer.prototype['locality'] = undefined; /** - * Target name + * Deprecated - use description + * @member {String} metadata + */ + +UpdatePKICertIssuer.prototype['metadata'] = undefined; +/** + * PKI certificate issuer name * @member {String} name */ -UpdateGlobalSignTarget.prototype['name'] = undefined; +UpdatePKICertIssuer.prototype['name'] = undefined; /** - * New target name + * New item name * @member {String} new-name */ -UpdateGlobalSignTarget.prototype['new-name'] = undefined; +UpdatePKICertIssuer.prototype['new-name'] = undefined; /** - * Password of the GlobalSign GCC account - * @member {String} password + * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name + * @member {Boolean} not-enforce-hostnames */ -UpdateGlobalSignTarget.prototype['password'] = undefined; +UpdatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; /** - * Profile ID of the GlobalSign GCC account - * @member {String} profile-id + * If set, clients can request certificates without a CN + * @member {Boolean} not-require-cn */ -UpdateGlobalSignTarget.prototype['profile-id'] = undefined; +UpdatePKICertIssuer.prototype['not-require-cn'] = undefined; /** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' + * A comma-separated list of organizational units (OU) that will be set in the issued certificate + * @member {String} organizational-units */ -UpdateGlobalSignTarget.prototype['timeout'] = '5m'; +UpdatePKICertIssuer.prototype['organizational-units'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * A comma-separated list of organizations (O) that will be set in the issued certificate + * @member {String} organizations */ -UpdateGlobalSignTarget.prototype['token'] = undefined; +UpdatePKICertIssuer.prototype['organizations'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * A comma-separated list of postal codes that will be set in the issued certificate + * @member {String} postal-code */ -UpdateGlobalSignTarget.prototype['uid-token'] = undefined; +UpdatePKICertIssuer.prototype['postal-code'] = undefined; /** - * Deprecated - * @member {Boolean} update-version + * Whether to protect generated certificates from deletion + * @member {Boolean} protect-certificates */ -UpdateGlobalSignTarget.prototype['update-version'] = undefined; +UpdatePKICertIssuer.prototype['protect-certificates'] = undefined; /** - * Username of the GlobalSign GCC account - * @member {String} username + * A comma-separated list of provinces that will be set in the issued certificate + * @member {String} province */ -UpdateGlobalSignTarget.prototype['username'] = undefined; -var _default = UpdateGlobalSignTarget; +UpdatePKICertIssuer.prototype['province'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +UpdatePKICertIssuer.prototype['rm-tag'] = undefined; +/** + * If set, certificates will be flagged for server auth use + * @member {Boolean} server-flag + */ + +UpdatePKICertIssuer.prototype['server-flag'] = undefined; +/** + * A key to sign the certificate with, required in Private CA mode + * @member {String} signer-key-name + * @default 'dummy_signer_key' + */ + +UpdatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; +/** + * A comma-separated list of street addresses that will be set in the issued certificate + * @member {String} street-address + */ + +UpdatePKICertIssuer.prototype['street-address'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdatePKICertIssuer.prototype['token'] = undefined; +/** + * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + * @member {Number} ttl + */ + +UpdatePKICertIssuer.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdatePKICertIssuer.prototype['uid-token'] = undefined; +var _default = UpdatePKICertIssuer; exports["default"] = _default; /***/ }), -/***/ 15010: +/***/ 96434: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -115081,7 +193817,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -115092,19 +193828,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateGlobalSignTargetOutput model module. - * @module model/UpdateGlobalSignTargetOutput - * @version 3.3.16 + * The UpdatePKICertIssuerOutput model module. + * @module model/UpdatePKICertIssuerOutput + * @version 3.6.3 */ -var UpdateGlobalSignTargetOutput = /*#__PURE__*/function () { +var UpdatePKICertIssuerOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateGlobalSignTargetOutput. - * @alias module:model/UpdateGlobalSignTargetOutput + * Constructs a new UpdatePKICertIssuerOutput. + * @alias module:model/UpdatePKICertIssuerOutput */ - function UpdateGlobalSignTargetOutput() { - _classCallCheck(this, UpdateGlobalSignTargetOutput); + function UpdatePKICertIssuerOutput() { + _classCallCheck(this, UpdatePKICertIssuerOutput); - UpdateGlobalSignTargetOutput.initialize(this); + UpdatePKICertIssuerOutput.initialize(this); } /** * Initializes the fields of this object. @@ -115113,25 +193849,25 @@ var UpdateGlobalSignTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateGlobalSignTargetOutput, null, [{ + _createClass(UpdatePKICertIssuerOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignTargetOutput} The populated UpdateGlobalSignTargetOutput instance. + * @param {module:model/UpdatePKICertIssuerOutput} obj Optional instance to populate. + * @return {module:model/UpdatePKICertIssuerOutput} The populated UpdatePKICertIssuerOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateGlobalSignTargetOutput(); + obj = obj || new UpdatePKICertIssuerOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -115139,20 +193875,20 @@ var UpdateGlobalSignTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateGlobalSignTargetOutput; + return UpdatePKICertIssuerOutput; }(); /** - * @member {Number} target_id + * @member {String} name */ -UpdateGlobalSignTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGlobalSignTargetOutput; +UpdatePKICertIssuerOutput.prototype['name'] = undefined; +var _default = UpdatePKICertIssuerOutput; exports["default"] = _default; /***/ }), -/***/ 28801: +/***/ 60881: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -115163,7 +193899,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -115174,20 +193910,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateItem model module. - * @module model/UpdateItem - * @version 3.3.16 + * The UpdatePingTarget model module. + * @module model/UpdatePingTarget + * @version 3.6.3 */ -var UpdateItem = /*#__PURE__*/function () { +var UpdatePingTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateItem. - * @alias module:model/UpdateItem - * @param name {String} Current item name + * Constructs a new UpdatePingTarget. + * @alias module:model/UpdatePingTarget + * @param name {String} Target name */ - function UpdateItem(name) { - _classCallCheck(this, UpdateItem); + function UpdatePingTarget(name) { + _classCallCheck(this, UpdatePingTarget); - UpdateItem.initialize(this, name); + UpdatePingTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -115196,39 +193932,35 @@ var UpdateItem = /*#__PURE__*/function () { */ - _createClass(UpdateItem, null, [{ + _createClass(UpdatePingTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateItem from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdatePingTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateItem} obj Optional instance to populate. - * @return {module:model/UpdateItem} The populated UpdateItem instance. + * @param {module:model/UpdatePingTarget} obj Optional instance to populate. + * @return {module:model/UpdatePingTarget} The populated UpdatePingTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateItem(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } + obj = obj || new UpdatePingTarget(); - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + if (data.hasOwnProperty('administrative-port')) { + obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); } - if (data.hasOwnProperty('cert-file-data')) { - obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + if (data.hasOwnProperty('authorization-port')) { + obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } if (data.hasOwnProperty('description')) { @@ -115239,120 +193971,36 @@ var UpdateItem = /*#__PURE__*/function () { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-metadata')) { - obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('rotate-after-disconnect')) { - obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); - } - - if (data.hasOwnProperty('secure-access-add-host')) { - obj['secure-access-add-host'] = _ApiClient["default"].convertToType(data['secure-access-add-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-aws-region')) { - obj['secure-access-aws-region'] = _ApiClient["default"].convertToType(data['secure-access-aws-region'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-api')) { - obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-ssh')) { - obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-dashboard-url')) { - obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-name')) { - obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('secure-access-rm-host')) { - obj['secure-access-rm-host'] = _ApiClient["default"].convertToType(data['secure-access-rm-host'], ['String']); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('secure-access-ssh-creds')) { - obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (data.hasOwnProperty('secure-access-ssh-creds-user')) { - obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('secure-access-use-internal-bastion')) { - obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); } - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + if (data.hasOwnProperty('privileged-user')) { + obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); } if (data.hasOwnProperty('token')) { @@ -115362,250 +194010,124 @@ var UpdateItem = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } } return obj; } }]); - return UpdateItem; + return UpdatePingTarget; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * Ping Federate administrative port + * @member {String} administrative-port + * @default '9999' */ -UpdateItem.prototype['accessibility'] = 'regular'; -/** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - -UpdateItem.prototype['add-tag'] = undefined; +UpdatePingTarget.prototype['administrative-port'] = '9999'; /** - * PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. - * @member {String} cert-file-data + * Ping Federate authorization port + * @member {String} authorization-port + * @default '9031' */ -UpdateItem.prototype['cert-file-data'] = undefined; +UpdatePingTarget.prototype['authorization-port'] = '9031'; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Deprecated - use description + * @member {String} comment */ -UpdateItem.prototype['delete_protection'] = undefined; +UpdatePingTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description - * @default 'default_metadata' */ -UpdateItem.prototype['description'] = 'default_metadata'; +UpdatePingTarget.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateItem.prototype['json'] = false; -/** - * Current item name - * @member {String} name - */ - -UpdateItem.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-metadata - * @default 'default_metadata' - */ - -UpdateItem.prototype['new-metadata'] = 'default_metadata'; -/** - * New item name - * @member {String} new-name - */ - -UpdateItem.prototype['new-name'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -UpdateItem.prototype['rm-tag'] = undefined; -/** - * Rotate the value of the secret after SRA session ends [true/false] (relevant only for Rotated-secret) - * @member {String} rotate-after-disconnect - * @default 'false' - */ - -UpdateItem.prototype['rotate-after-disconnect'] = 'false'; -/** - * List of the new hosts that will be attached to SRA servers host - * @member {Array.} secure-access-add-host - */ - -UpdateItem.prototype['secure-access-add-host'] = undefined; -/** - * Allow providing external user for a domain users [true/false] - * @member {String} secure-access-allow-external-user - */ - -UpdateItem.prototype['secure-access-allow-external-user'] = undefined; -/** - * Enable Port forwarding while using CLI access (relevant only for EKS/GKE/K8s Dynamic-Secret) - * @member {Boolean} secure-access-allow-port-forwading - */ - -UpdateItem.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * The AWS account id (relevant only for aws) - * @member {String} secure-access-aws-account-id - */ - -UpdateItem.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli (relevant only for aws) - * @member {Boolean} secure-access-aws-native-cli - */ - -UpdateItem.prototype['secure-access-aws-native-cli'] = undefined; -/** - * The AWS region (relevant only for aws) - * @member {String} secure-access-aws-region - */ - -UpdateItem.prototype['secure-access-aws-region'] = undefined; -/** - * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 (relevant only for ssh cert issuer) - * @member {String} secure-access-bastion-api - */ - -UpdateItem.prototype['secure-access-bastion-api'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -UpdateItem.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Bastion's SSH server. E.g. my.bastion:22 (relevant only for ssh cert issuer) - * @member {String} secure-access-bastion-ssh - */ - -UpdateItem.prototype['secure-access-bastion-ssh'] = undefined; -/** - * The K8s cluster endpoint URL (relevant only for EKS/GKE/K8s Dynamic-Secret) - * @member {String} secure-access-cluster-endpoint - */ - -UpdateItem.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * The K8s dashboard url (relevant only for k8s) - * @member {String} secure-access-dashboard-url - */ - -UpdateItem.prototype['secure-access-dashboard-url'] = undefined; -/** - * The DB name (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-name - */ - -UpdateItem.prototype['secure-access-db-name'] = undefined; -/** - * The DB schema (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-schema - */ - -UpdateItem.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -UpdateItem.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -UpdateItem.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) - * @member {String} secure-access-rdp-domain - */ - -UpdateItem.prototype['secure-access-rdp-domain'] = undefined; +UpdatePingTarget.prototype['json'] = false; /** - * Override the RDP Domain username - * @member {String} secure-access-rdp-user + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateItem.prototype['secure-access-rdp-user'] = undefined; +UpdatePingTarget.prototype['keep-prev-version'] = undefined; /** - * List of the existent hosts that will be removed from SRA servers host - * @member {Array.} secure-access-rm-host + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateItem.prototype['secure-access-rm-host'] = undefined; +UpdatePingTarget.prototype['key'] = undefined; /** - * Secret values contains SSH Credentials, either Private Key or Password [password/private-key] (relevant only for Static-Secret or Rotated-secret) - * @member {String} secure-access-ssh-creds + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateItem.prototype['secure-access-ssh-creds'] = undefined; +UpdatePingTarget.prototype['max-versions'] = undefined; /** - * SSH username to connect to target server, must be in 'Allowed Users' list (relevant only for ssh cert issuer) - * @member {String} secure-access-ssh-creds-user + * Target name + * @member {String} name */ -UpdateItem.prototype['secure-access-ssh-creds-user'] = undefined; +UpdatePingTarget.prototype['name'] = undefined; /** - * Destination URL to inject secrets - * @member {String} secure-access-url + * New target name + * @member {String} new-name */ -UpdateItem.prototype['secure-access-url'] = undefined; +UpdatePingTarget.prototype['new-name'] = undefined; /** - * Use internal SSH Bastion - * @member {Boolean} secure-access-use-internal-bastion + * Ping Federate privileged user password + * @member {String} password */ -UpdateItem.prototype['secure-access-use-internal-bastion'] = undefined; +UpdatePingTarget.prototype['password'] = undefined; /** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false + * Ping URL + * @member {String} ping-url */ -UpdateItem.prototype['secure-access-web-browsing'] = false; +UpdatePingTarget.prototype['ping-url'] = undefined; /** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false + * Ping Federate privileged user + * @member {String} privileged-user */ -UpdateItem.prototype['secure-access-web-proxy'] = false; +UpdatePingTarget.prototype['privileged-user'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateItem.prototype['token'] = undefined; +UpdatePingTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateItem.prototype['uid-token'] = undefined; -var _default = UpdateItem; +UpdatePingTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdatePingTarget.prototype['update-version'] = undefined; +var _default = UpdatePingTarget; exports["default"] = _default; /***/ }), -/***/ 24354: +/***/ 95347: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -115616,7 +194138,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -115627,19 +194149,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateItemOutput model module. - * @module model/UpdateItemOutput - * @version 3.3.16 + * The UpdateRDPTargetDetails model module. + * @module model/UpdateRDPTargetDetails + * @version 3.6.3 */ -var UpdateItemOutput = /*#__PURE__*/function () { +var UpdateRDPTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new UpdateItemOutput. - * @alias module:model/UpdateItemOutput + * Constructs a new UpdateRDPTargetDetails. + * @alias module:model/UpdateRDPTargetDetails + * @param name {String} Target name */ - function UpdateItemOutput() { - _classCallCheck(this, UpdateItemOutput); + function UpdateRDPTargetDetails(name) { + _classCallCheck(this, UpdateRDPTargetDetails); - UpdateItemOutput.initialize(this); + UpdateRDPTargetDetails.initialize(this, name); } /** * Initializes the fields of this object. @@ -115648,25 +194171,67 @@ var UpdateItemOutput = /*#__PURE__*/function () { */ - _createClass(UpdateItemOutput, null, [{ + _createClass(UpdateRDPTargetDetails, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a UpdateItemOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRDPTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateItemOutput} obj Optional instance to populate. - * @return {module:model/UpdateItemOutput} The populated UpdateItemOutput instance. + * @param {module:model/UpdateRDPTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateRDPTargetDetails} The populated UpdateRDPTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateItemOutput(); + obj = obj || new UpdateRDPTargetDetails(); - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('admin_name')) { + obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); + } + + if (data.hasOwnProperty('admin_pwd')) { + obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); + } + + if (data.hasOwnProperty('host_name')) { + obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); + } + + if (data.hasOwnProperty('host_port')) { + obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } @@ -115674,20 +194239,83 @@ var UpdateItemOutput = /*#__PURE__*/function () { } }]); - return UpdateItemOutput; + return UpdateRDPTargetDetails; }(); /** - * @member {Boolean} updated + * The admin name + * @member {String} admin_name */ -UpdateItemOutput.prototype['updated'] = undefined; -var _default = UpdateItemOutput; +UpdateRDPTargetDetails.prototype['admin_name'] = undefined; +/** + * The admin password + * @member {String} admin_pwd + */ + +UpdateRDPTargetDetails.prototype['admin_pwd'] = undefined; +/** + * The rdp host name + * @member {String} host_name + */ + +UpdateRDPTargetDetails.prototype['host_name'] = undefined; +/** + * The rdp port + * @member {String} host_port + * @default '22' + */ + +UpdateRDPTargetDetails.prototype['host_port'] = '22'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateRDPTargetDetails.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +UpdateRDPTargetDetails.prototype['keep-prev-version'] = undefined; +/** + * Target name + * @member {String} name + */ + +UpdateRDPTargetDetails.prototype['name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ + +UpdateRDPTargetDetails.prototype['new-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ + +UpdateRDPTargetDetails.prototype['protection_key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateRDPTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateRDPTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateRDPTargetDetails; exports["default"] = _default; /***/ }), -/***/ 32858: +/***/ 51155: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -115698,7 +194326,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -115709,20 +194337,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateLdapTarget model module. - * @module model/UpdateLdapTarget - * @version 3.3.16 + * The UpdateRabbitMQTarget model module. + * @module model/UpdateRabbitMQTarget + * @version 3.6.3 */ -var UpdateLdapTarget = /*#__PURE__*/function () { +var UpdateRabbitMQTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateLdapTarget. - * @alias module:model/UpdateLdapTarget + * Constructs a new UpdateRabbitMQTarget. + * @alias module:model/UpdateRabbitMQTarget * @param name {String} Target name */ - function UpdateLdapTarget(name) { - _classCallCheck(this, UpdateLdapTarget); + function UpdateRabbitMQTarget(name) { + _classCallCheck(this, UpdateRabbitMQTarget); - UpdateLdapTarget.initialize(this, name); + UpdateRabbitMQTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -115731,32 +194359,24 @@ var UpdateLdapTarget = /*#__PURE__*/function () { */ - _createClass(UpdateLdapTarget, null, [{ + _createClass(UpdateRabbitMQTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateLdapTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLdapTarget} obj Optional instance to populate. - * @return {module:model/UpdateLdapTarget} The populated UpdateLdapTarget instance. + * @param {module:model/UpdateRabbitMQTarget} obj Optional instance to populate. + * @return {module:model/UpdateRabbitMQTarget} The populated UpdateRabbitMQTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateLdapTarget(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } + obj = obj || new UpdateRabbitMQTarget(); if (data.hasOwnProperty('comment')) { obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); @@ -115778,12 +194398,8 @@ var UpdateLdapTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { @@ -115794,16 +194410,20 @@ var UpdateLdapTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('server-type')) { - obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); + if (data.hasOwnProperty('rabbitmq-server-password')) { + obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); } - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + if (data.hasOwnProperty('rabbitmq-server-user')) { + obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { @@ -115819,107 +194439,97 @@ var UpdateLdapTarget = /*#__PURE__*/function () { } }]); - return UpdateLdapTarget; + return UpdateRabbitMQTarget; }(); -/** - * @member {String} bind-dn - */ - - -UpdateLdapTarget.prototype['bind-dn'] = undefined; -/** - * @member {String} bind-dn-password - */ - -UpdateLdapTarget.prototype['bind-dn-password'] = undefined; /** * Deprecated - use description * @member {String} comment */ -UpdateLdapTarget.prototype['comment'] = undefined; + +UpdateRabbitMQTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description */ -UpdateLdapTarget.prototype['description'] = undefined; +UpdateRabbitMQTarget.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateLdapTarget.prototype['json'] = false; +UpdateRabbitMQTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateLdapTarget.prototype['keep-prev-version'] = undefined; +UpdateRabbitMQTarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateLdapTarget.prototype['key'] = undefined; -/** - * @member {String} ldap-ca-cert - */ - -UpdateLdapTarget.prototype['ldap-ca-cert'] = undefined; +UpdateRabbitMQTarget.prototype['key'] = undefined; /** - * @member {String} ldap-url + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateLdapTarget.prototype['ldap-url'] = undefined; +UpdateRabbitMQTarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateLdapTarget.prototype['name'] = undefined; +UpdateRabbitMQTarget.prototype['name'] = undefined; /** * New target name * @member {String} new-name */ -UpdateLdapTarget.prototype['new-name'] = undefined; +UpdateRabbitMQTarget.prototype['new-name'] = undefined; /** - * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory] - * @member {String} server-type + * @member {String} rabbitmq-server-password */ -UpdateLdapTarget.prototype['server-type'] = undefined; +UpdateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} rabbitmq-server-uri */ -UpdateLdapTarget.prototype['token'] = undefined; +UpdateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; /** - * @member {String} token-expiration + * @member {String} rabbitmq-server-user */ -UpdateLdapTarget.prototype['token-expiration'] = undefined; +UpdateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateRabbitMQTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateLdapTarget.prototype['uid-token'] = undefined; +UpdateRabbitMQTarget.prototype['uid-token'] = undefined; /** * Deprecated * @member {Boolean} update-version */ -UpdateLdapTarget.prototype['update-version'] = undefined; -var _default = UpdateLdapTarget; +UpdateRabbitMQTarget.prototype['update-version'] = undefined; +var _default = UpdateRabbitMQTarget; exports["default"] = _default; /***/ }), -/***/ 23810: +/***/ 60917: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -115930,7 +194540,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -115941,20 +194551,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateLdapTargetDetails model module. - * @module model/UpdateLdapTargetDetails - * @version 3.3.16 + * The UpdateRabbitMQTargetDetails model module. + * @module model/UpdateRabbitMQTargetDetails + * @version 3.6.3 */ -var UpdateLdapTargetDetails = /*#__PURE__*/function () { +var UpdateRabbitMQTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new UpdateLdapTargetDetails. - * @alias module:model/UpdateLdapTargetDetails + * Constructs a new UpdateRabbitMQTargetDetails. + * @alias module:model/UpdateRabbitMQTargetDetails * @param name {String} Target name */ - function UpdateLdapTargetDetails(name) { - _classCallCheck(this, UpdateLdapTargetDetails); + function UpdateRabbitMQTargetDetails(name) { + _classCallCheck(this, UpdateRabbitMQTargetDetails); - UpdateLdapTargetDetails.initialize(this, name); + UpdateRabbitMQTargetDetails.initialize(this, name); } /** * Initializes the fields of this object. @@ -115963,32 +194573,24 @@ var UpdateLdapTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateLdapTargetDetails, null, [{ + _createClass(UpdateRabbitMQTargetDetails, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateLdapTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLdapTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateLdapTargetDetails} The populated UpdateLdapTargetDetails instance. + * @param {module:model/UpdateRabbitMQTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateRabbitMQTargetDetails} The populated UpdateRabbitMQTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateLdapTargetDetails(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } + obj = obj || new UpdateRabbitMQTargetDetails(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -115998,18 +194600,6 @@ var UpdateLdapTargetDetails = /*#__PURE__*/function () { obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -116022,12 +194612,20 @@ var UpdateLdapTargetDetails = /*#__PURE__*/function () { obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('rabbitmq_server_password')) { + obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); } - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + if (data.hasOwnProperty('rabbitmq_server_uri')) { + obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_server_user')) { + obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } if (data.hasOwnProperty('uid-token')) { @@ -116039,88 +194637,73 @@ var UpdateLdapTargetDetails = /*#__PURE__*/function () { } }]); - return UpdateLdapTargetDetails; + return UpdateRabbitMQTargetDetails; }(); -/** - * @member {String} bind-dn - */ - - -UpdateLdapTargetDetails.prototype['bind-dn'] = undefined; -/** - * @member {String} bind-dn-password - */ - -UpdateLdapTargetDetails.prototype['bind-dn-password'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateLdapTargetDetails.prototype['json'] = false; + +UpdateRabbitMQTargetDetails.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateLdapTargetDetails.prototype['keep-prev-version'] = undefined; +UpdateRabbitMQTargetDetails.prototype['keep-prev-version'] = undefined; /** - * @member {String} key + * Target name + * @member {String} name */ -UpdateLdapTargetDetails.prototype['key'] = undefined; +UpdateRabbitMQTargetDetails.prototype['name'] = undefined; /** - * @member {String} ldap-ca-cert + * Deprecated + * @member {Boolean} new-version */ -UpdateLdapTargetDetails.prototype['ldap-ca-cert'] = undefined; +UpdateRabbitMQTargetDetails.prototype['new-version'] = undefined; /** - * @member {String} ldap-url + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key */ -UpdateLdapTargetDetails.prototype['ldap-url'] = undefined; +UpdateRabbitMQTargetDetails.prototype['protection_key'] = undefined; /** - * Target name - * @member {String} name + * @member {String} rabbitmq_server_password */ -UpdateLdapTargetDetails.prototype['name'] = undefined; +UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; /** - * Deprecated - * @member {Boolean} new-version + * @member {String} rabbitmq_server_uri */ -UpdateLdapTargetDetails.prototype['new-version'] = undefined; +UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key + * @member {String} rabbitmq_server_user */ -UpdateLdapTargetDetails.prototype['protection_key'] = undefined; +UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateLdapTargetDetails.prototype['token'] = undefined; -/** - * @member {String} token-expiration - */ - -UpdateLdapTargetDetails.prototype['token-expiration'] = undefined; +UpdateRabbitMQTargetDetails.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateLdapTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateLdapTargetDetails; +UpdateRabbitMQTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateRabbitMQTargetDetails; exports["default"] = _default; /***/ }), -/***/ 96167: +/***/ 75522: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -116131,7 +194714,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -116142,19 +194725,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateLdapTargetOutput model module. - * @module model/UpdateLdapTargetOutput - * @version 3.3.16 + * The UpdateRabbitMQTargetOutput model module. + * @module model/UpdateRabbitMQTargetOutput + * @version 3.6.3 */ -var UpdateLdapTargetOutput = /*#__PURE__*/function () { +var UpdateRabbitMQTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateLdapTargetOutput. - * @alias module:model/UpdateLdapTargetOutput + * Constructs a new UpdateRabbitMQTargetOutput. + * @alias module:model/UpdateRabbitMQTargetOutput */ - function UpdateLdapTargetOutput() { - _classCallCheck(this, UpdateLdapTargetOutput); + function UpdateRabbitMQTargetOutput() { + _classCallCheck(this, UpdateRabbitMQTargetOutput); - UpdateLdapTargetOutput.initialize(this); + UpdateRabbitMQTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -116163,22 +194746,22 @@ var UpdateLdapTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateLdapTargetOutput, null, [{ + _createClass(UpdateRabbitMQTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLdapTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateLdapTargetOutput} The populated UpdateLdapTargetOutput instance. + * @param {module:model/UpdateRabbitMQTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateRabbitMQTargetOutput} The populated UpdateRabbitMQTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateLdapTargetOutput(); + obj = obj || new UpdateRabbitMQTargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -116189,20 +194772,20 @@ var UpdateLdapTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateLdapTargetOutput; + return UpdateRabbitMQTargetOutput; }(); /** * @member {Number} target_id */ -UpdateLdapTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateLdapTargetOutput; +UpdateRabbitMQTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateRabbitMQTargetOutput; exports["default"] = _default; /***/ }), -/***/ 92234: +/***/ 69176: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -116213,7 +194796,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -116224,20 +194807,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateLinkedTarget model module. - * @module model/UpdateLinkedTarget - * @version 3.3.16 + * The UpdateRole model module. + * @module model/UpdateRole + * @version 3.6.3 */ -var UpdateLinkedTarget = /*#__PURE__*/function () { +var UpdateRole = /*#__PURE__*/function () { /** - * Constructs a new UpdateLinkedTarget. - * @alias module:model/UpdateLinkedTarget - * @param name {String} Linked Target name + * Constructs a new UpdateRole. + * @alias module:model/UpdateRole + * @param name {String} Role name */ - function UpdateLinkedTarget(name) { - _classCallCheck(this, UpdateLinkedTarget); + function UpdateRole(name) { + _classCallCheck(this, UpdateRole); - UpdateLinkedTarget.initialize(this, name); + UpdateRole.initialize(this, name); } /** * Initializes the fields of this object. @@ -116246,258 +194829,69 @@ var UpdateLinkedTarget = /*#__PURE__*/function () { */ - _createClass(UpdateLinkedTarget, null, [{ + _createClass(UpdateRole, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateLinkedTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRole from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLinkedTarget} obj Optional instance to populate. - * @return {module:model/UpdateLinkedTarget} The populated UpdateLinkedTarget instance. + * @param {module:model/UpdateRole} obj Optional instance to populate. + * @return {module:model/UpdateRole} The populated UpdateRole instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateLinkedTarget(); - - if (data.hasOwnProperty('add-hosts')) { - obj['add-hosts'] = _ApiClient["default"].convertToType(data['add-hosts'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('parent-target-name')) { - obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); - } - - if (data.hasOwnProperty('rm-hosts')) { - obj['rm-hosts'] = _ApiClient["default"].convertToType(data['rm-hosts'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } + obj = obj || new UpdateRole(); - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('analytics-access')) { + obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); } - } - - return obj; - } - }]); - - return UpdateLinkedTarget; -}(); -/** - * A comma seperated list of new server hosts and server descriptions joined by semicolon ';' that will be added to the Linked Target hosts. - * @member {String} add-hosts - */ - - -UpdateLinkedTarget.prototype['add-hosts'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateLinkedTarget.prototype['description'] = undefined; -/** - * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') - * @member {String} hosts - */ - -UpdateLinkedTarget.prototype['hosts'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateLinkedTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateLinkedTarget.prototype['keep-prev-version'] = undefined; -/** - * Linked Target name - * @member {String} name - */ - -UpdateLinkedTarget.prototype['name'] = undefined; -/** - * New Linked Target name - * @member {String} new-name - */ - -UpdateLinkedTarget.prototype['new-name'] = undefined; -/** - * The parent Target name - * @member {String} parent-target-name - */ - -UpdateLinkedTarget.prototype['parent-target-name'] = undefined; -/** - * Comma separated list of existing hosts that will be removed from Linked Target hosts. - * @member {String} rm-hosts - */ - -UpdateLinkedTarget.prototype['rm-hosts'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateLinkedTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateLinkedTarget.prototype['uid-token'] = undefined; -var _default = UpdateLinkedTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 76287: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateNativeK8STarget model module. - * @module model/UpdateNativeK8STarget - * @version 3.3.16 - */ -var UpdateNativeK8STarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateNativeK8STarget. - * @alias module:model/UpdateNativeK8STarget - * @param k8sClusterCaCert {String} K8S cluster CA certificate - * @param k8sClusterEndpoint {String} K8S cluster URL endpoint - * @param k8sClusterToken {String} K8S cluster Bearer token - * @param name {String} Target name - */ - function UpdateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - _classCallCheck(this, UpdateNativeK8STarget); - - UpdateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateNativeK8STarget, null, [{ - key: "initialize", - value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; - obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; - obj['k8s-cluster-token'] = k8sClusterToken; - obj['name'] = name; - } - /** - * Constructs a UpdateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateNativeK8STarget} obj Optional instance to populate. - * @return {module:model/UpdateNativeK8STarget} The populated UpdateNativeK8STarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateNativeK8STarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('audit-access')) { + obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + if (data.hasOwnProperty('event-center-access')) { + obj['event-center-access'] = _ApiClient["default"].convertToType(data['event-center-access'], 'String'); } - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + if (data.hasOwnProperty('event-forwarder-access')) { + obj['event-forwarder-access'] = _ApiClient["default"].convertToType(data['event-forwarder-access'], 'String'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + if (data.hasOwnProperty('gw-analytics-access')) { + obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('new-comment')) { + obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); + } + if (data.hasOwnProperty('new-name')) { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } + if (data.hasOwnProperty('sra-reports-access')) { + obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); + } + if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -116506,12 +194900,8 @@ var UpdateNativeK8STarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + if (data.hasOwnProperty('usage-reports-access')) { + obj['usage-reports-access'] = _ApiClient["default"].convertToType(data['usage-reports-access'], 'String'); } } @@ -116519,103 +194909,102 @@ var UpdateNativeK8STarget = /*#__PURE__*/function () { } }]); - return UpdateNativeK8STarget; + return UpdateRole; }(); /** - * Deprecated - use description - * @member {String} comment + * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} analytics-access */ -UpdateNativeK8STarget.prototype['comment'] = undefined; +UpdateRole.prototype['analytics-access'] = undefined; +/** + * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. + * @member {String} audit-access + */ + +UpdateRole.prototype['audit-access'] = undefined; /** * Description of the object * @member {String} description + * @default 'default_comment' */ -UpdateNativeK8STarget.prototype['description'] = undefined; +UpdateRole.prototype['description'] = 'default_comment'; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * Allow this role to view Event Center. Currently only 'none', 'own' and 'all' values are supported + * @member {String} event-center-access */ -UpdateNativeK8STarget.prototype['json'] = false; +UpdateRole.prototype['event-center-access'] = undefined; /** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert - * @default 'dummy_val' + * Allow this role to manage Event Forwarders. Currently only 'none' and 'all' values are supported. + * @member {String} event-forwarder-access */ -UpdateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; +UpdateRole.prototype['event-forwarder-access'] = undefined; /** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint - * @default 'dummy_val' + * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} gw-analytics-access */ -UpdateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; +UpdateRole.prototype['gw-analytics-access'] = undefined; /** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token - * @default 'dummy_val' + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; +UpdateRole.prototype['json'] = false; /** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version + * Role name + * @member {String} name */ -UpdateNativeK8STarget.prototype['keep-prev-version'] = undefined; +UpdateRole.prototype['name'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key + * Deprecated - use description + * @member {String} new-comment + * @default 'default_comment' */ -UpdateNativeK8STarget.prototype['key'] = undefined; +UpdateRole.prototype['new-comment'] = 'default_comment'; /** - * Target name - * @member {String} name + * New Role name + * @member {String} new-name */ -UpdateNativeK8STarget.prototype['name'] = undefined; +UpdateRole.prototype['new-name'] = undefined; /** - * New target name - * @member {String} new-name + * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. + * @member {String} sra-reports-access */ -UpdateNativeK8STarget.prototype['new-name'] = undefined; +UpdateRole.prototype['sra-reports-access'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateNativeK8STarget.prototype['token'] = undefined; +UpdateRole.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateNativeK8STarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateNativeK8STarget.prototype['update-version'] = undefined; +UpdateRole.prototype['uid-token'] = undefined; /** - * Use the GW's service account - * @member {Boolean} use-gw-service-account + * Allow this role to view Usage Report. Currently only 'none' and 'all' values are supported. + * @member {String} usage-reports-access */ -UpdateNativeK8STarget.prototype['use-gw-service-account'] = undefined; -var _default = UpdateNativeK8STarget; +UpdateRole.prototype['usage-reports-access'] = undefined; +var _default = UpdateRole; exports["default"] = _default; /***/ }), -/***/ 50445: +/***/ 66161: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -116626,7 +195015,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -116637,19 +195026,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateNativeK8STargetOutput model module. - * @module model/UpdateNativeK8STargetOutput - * @version 3.3.16 + * The UpdateRoleOutput model module. + * @module model/UpdateRoleOutput + * @version 3.6.3 */ -var UpdateNativeK8STargetOutput = /*#__PURE__*/function () { +var UpdateRoleOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateNativeK8STargetOutput. - * @alias module:model/UpdateNativeK8STargetOutput + * Constructs a new UpdateRoleOutput. + * @alias module:model/UpdateRoleOutput */ - function UpdateNativeK8STargetOutput() { - _classCallCheck(this, UpdateNativeK8STargetOutput); + function UpdateRoleOutput() { + _classCallCheck(this, UpdateRoleOutput); - UpdateNativeK8STargetOutput.initialize(this); + UpdateRoleOutput.initialize(this); } /** * Initializes the fields of this object. @@ -116658,25 +195047,25 @@ var UpdateNativeK8STargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateNativeK8STargetOutput, null, [{ + _createClass(UpdateRoleOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRoleOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateNativeK8STargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateNativeK8STargetOutput} The populated UpdateNativeK8STargetOutput instance. + * @param {module:model/UpdateRoleOutput} obj Optional instance to populate. + * @return {module:model/UpdateRoleOutput} The populated UpdateRoleOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateNativeK8STargetOutput(); + obj = obj || new UpdateRoleOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } } @@ -116684,20 +195073,20 @@ var UpdateNativeK8STargetOutput = /*#__PURE__*/function () { } }]); - return UpdateNativeK8STargetOutput; + return UpdateRoleOutput; }(); /** - * @member {Number} target_id + * @member {Boolean} updated */ -UpdateNativeK8STargetOutput.prototype['target_id'] = undefined; -var _default = UpdateNativeK8STargetOutput; +UpdateRoleOutput.prototype['updated'] = undefined; +var _default = UpdateRoleOutput; exports["default"] = _default; /***/ }), -/***/ 16818: +/***/ 70467: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -116708,7 +195097,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -116719,19 +195108,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateOutput model module. - * @module model/UpdateOutput - * @version 3.3.16 + * The UpdateRotatedSecret model module. + * @module model/UpdateRotatedSecret + * @version 3.6.3 */ -var UpdateOutput = /*#__PURE__*/function () { +var UpdateRotatedSecret = /*#__PURE__*/function () { /** - * Constructs a new UpdateOutput. - * @alias module:model/UpdateOutput + * Constructs a new UpdateRotatedSecret. + * updateRotatedSecret is a command that updates rotated secret. [Deprecated: Use rotated-secret update commands] + * @alias module:model/UpdateRotatedSecret + * @param name {String} Secret name */ - function UpdateOutput() { - _classCallCheck(this, UpdateOutput); + function UpdateRotatedSecret(name) { + _classCallCheck(this, UpdateRotatedSecret); - UpdateOutput.initialize(this); + UpdateRotatedSecret.initialize(this, name); } /** * Initializes the fields of this object. @@ -116740,487 +195131,530 @@ var UpdateOutput = /*#__PURE__*/function () { */ - _createClass(UpdateOutput, null, [{ + _createClass(UpdateRotatedSecret, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Constructs a UpdateOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRotatedSecret from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateOutput} obj Optional instance to populate. - * @return {module:model/UpdateOutput} The populated UpdateOutput instance. + * @param {module:model/UpdateRotatedSecret} obj Optional instance to populate. + * @return {module:model/UpdateRotatedSecret} The populated UpdateRotatedSecret instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateOutput(); + obj = obj || new UpdateRotatedSecret(); - if (data.hasOwnProperty('changelog')) { - obj['changelog'] = _ApiClient["default"].convertToType(data['changelog'], 'String'); + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); } - if (data.hasOwnProperty('latest')) { - obj['latest'] = _ApiClient["default"].convertToType(data['latest'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); } - } - - return obj; - } - }]); - - return UpdateOutput; -}(); -/** - * @member {String} changelog - */ - - -UpdateOutput.prototype['changelog'] = undefined; -/** - * @member {String} latest - */ - -UpdateOutput.prototype['latest'] = undefined; -/** - * @member {Boolean} updated - */ - -UpdateOutput.prototype['updated'] = undefined; -var _default = UpdateOutput; -exports["default"] = _default; -/***/ }), - -/***/ 24726: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/** - * The UpdatePKICertIssuer model module. - * @module model/UpdatePKICertIssuer - * @version 3.3.16 - */ -var UpdatePKICertIssuer = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePKICertIssuer. - * @alias module:model/UpdatePKICertIssuer - * @param name {String} PKI certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode - * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs - */ - function UpdatePKICertIssuer(name, signerKeyName, ttl) { - _classCallCheck(this, UpdatePKICertIssuer); + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } - UpdatePKICertIssuer.initialize(this, name, signerKeyName, ttl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); + } + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } - _createClass(UpdatePKICertIssuer, null, [{ - key: "initialize", - value: function initialize(obj, name, signerKeyName, ttl) { - obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; - } - /** - * Constructs a UpdatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePKICertIssuer} obj Optional instance to populate. - * @return {module:model/UpdatePKICertIssuer} The populated UpdatePKICertIssuer instance. - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePKICertIssuer(); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('allow-any-name')) { - obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + if (data.hasOwnProperty('new-metadata')) { + obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); } - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('allowed-uri-sans')) { - obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); } - if (data.hasOwnProperty('client-flag')) { - obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - if (data.hasOwnProperty('code-signing-flag')) { - obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - if (data.hasOwnProperty('destination-path')) { - obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + if (data.hasOwnProperty('rotator-creds-type')) { + obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); } - if (data.hasOwnProperty('gw-cluster-url')) { - obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); } - if (data.hasOwnProperty('is-ca')) { - obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); } - if (data.hasOwnProperty('key-usage')) { - obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); } - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } - if (data.hasOwnProperty('not-enforce-hostnames')) { - obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (data.hasOwnProperty('not-require-cn')) { - obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (data.hasOwnProperty('organizational-units')) { - obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); } - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); } - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); } - if (data.hasOwnProperty('protect-certificates')) { - obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (data.hasOwnProperty('server-flag')) { - obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); } - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); } - if (data.hasOwnProperty('street-address')) { - obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } } return obj; } }]); - return UpdatePKICertIssuer; + return UpdateRotatedSecret; }(); +/** + * @member {String} ProviderType + */ + + +UpdateRotatedSecret.prototype['ProviderType'] = undefined; /** * List of the new tags that will be attached to this item * @member {Array.} add-tag */ +UpdateRotatedSecret.prototype['add-tag'] = undefined; +/** + * API ID to rotate + * @member {String} api-id + */ -UpdatePKICertIssuer.prototype['add-tag'] = undefined; +UpdateRotatedSecret.prototype['api-id'] = undefined; /** - * If set, clients can request certificates for any CN - * @member {Boolean} allow-any-name + * API key to rotate + * @member {String} api-key */ -UpdatePKICertIssuer.prototype['allow-any-name'] = undefined; +UpdateRotatedSecret.prototype['api-key'] = undefined; /** - * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains - * @member {Boolean} allow-subdomains + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -UpdatePKICertIssuer.prototype['allow-subdomains'] = undefined; +UpdateRotatedSecret.prototype['auto-rotate'] = undefined; /** - * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) - * @member {String} allowed-domains + * Aws Region (relevant only for aws) + * @member {String} aws-region + * @default 'us-east-2' */ -UpdatePKICertIssuer.prototype['allowed-domains'] = undefined; +UpdateRotatedSecret.prototype['aws-region'] = 'us-east-2'; /** - * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) - * @member {String} allowed-uri-sans + * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) + * @member {String} custom-payload */ -UpdatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; +UpdateRotatedSecret.prototype['custom-payload'] = undefined; /** - * If set, certificates will be flagged for client auth use - * @member {Boolean} client-flag + * Description of the object + * @member {String} description + * @default 'default_metadata' */ -UpdatePKICertIssuer.prototype['client-flag'] = undefined; +UpdateRotatedSecret.prototype['description'] = 'default_metadata'; /** - * If set, certificates will be flagged for code signing use - * @member {Boolean} code-signing-flag + * Base64-encoded service account private key text + * @member {String} gcp-key */ -UpdatePKICertIssuer.prototype['code-signing-flag'] = undefined; +UpdateRotatedSecret.prototype['gcp-key'] = undefined; /** - * A comma-separated list of countries that will be set in the issued certificate - * @member {String} country + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation */ -UpdatePKICertIssuer.prototype['country'] = undefined; +UpdateRotatedSecret.prototype['grace-rotation'] = undefined; /** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' */ -UpdatePKICertIssuer.prototype['delete_protection'] = undefined; +UpdateRotatedSecret.prototype['host-provider'] = 'explicit'; /** - * Description of the object - * @member {String} description + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdatePKICertIssuer.prototype['description'] = undefined; +UpdateRotatedSecret.prototype['json'] = false; /** - * A path in which to save generated certificates - * @member {String} destination-path + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdatePKICertIssuer.prototype['destination-path'] = undefined; +UpdateRotatedSecret.prototype['keep-prev-version'] = undefined; /** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdatePKICertIssuer.prototype['expiration-event-in'] = undefined; +UpdateRotatedSecret.prototype['key'] = undefined; /** - * The GW cluster URL to issue the certificate from, required in Public CA mode - * @member {String} gw-cluster-url + * Secret name + * @member {String} name */ -UpdatePKICertIssuer.prototype['gw-cluster-url'] = undefined; +UpdateRotatedSecret.prototype['name'] = undefined; /** - * If set, the basic constraints extension will be added to certificate - * @member {Boolean} is-ca + * Deprecated - use description + * @member {String} new-metadata + * @default 'default_metadata' + */ + +UpdateRotatedSecret.prototype['new-metadata'] = 'default_metadata'; +/** + * New item name + * @member {String} new-name + */ + +UpdateRotatedSecret.prototype['new-name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ + +UpdateRotatedSecret.prototype['new-version'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +UpdateRotatedSecret.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +UpdateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password + * @member {String} rotated-password + */ + +UpdateRotatedSecret.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password + * @member {String} rotated-username + */ + +UpdateRotatedSecret.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +UpdateRotatedSecret.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (7-365) + * @member {String} rotation-interval + */ + +UpdateRotatedSecret.prototype['rotation-interval'] = undefined; +/** + * The credentials to connect with use-self-creds/use-target-creds + * @member {String} rotator-creds-type + * @default 'use-self-creds' + */ + +UpdateRotatedSecret.prototype['rotator-creds-type'] = 'use-self-creds'; +/** + * \"Custom rotation command (relevant only for ssh target) + * @member {String} rotator-custom-cmd + */ + +UpdateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password */ -UpdatePKICertIssuer.prototype['is-ca'] = undefined; +UpdateRotatedSecret.prototype['same-password'] = undefined; /** - * Set output format to JSON - * @member {Boolean} json + * Allow providing external user for a domain users (relevant only for rdp) + * @member {Boolean} secure-access-allow-external-user * @default false */ -UpdatePKICertIssuer.prototype['json'] = false; +UpdateRotatedSecret.prototype['secure-access-allow-external-user'] = false; /** - * key-usage - * @member {String} key-usage - * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' + * The AWS account id (relevant only for aws) + * @member {String} secure-access-aws-account-id */ -UpdatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; +UpdateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; /** - * A comma-separated list of localities that will be set in the issued certificate - * @member {String} locality + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli */ -UpdatePKICertIssuer.prototype['locality'] = undefined; +UpdateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; /** - * Deprecated - use description - * @member {String} metadata + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ -UpdatePKICertIssuer.prototype['metadata'] = undefined; +UpdateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; /** - * PKI certificate issuer name - * @member {String} name + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name */ -UpdatePKICertIssuer.prototype['name'] = undefined; +UpdateRotatedSecret.prototype['secure-access-db-name'] = undefined; /** - * New item name - * @member {String} new-name + * The db schema (relevant only for mssql or postgresql) + * @member {String} secure-access-db-schema */ -UpdatePKICertIssuer.prototype['new-name'] = undefined; +UpdateRotatedSecret.prototype['secure-access-db-schema'] = undefined; /** - * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name - * @member {Boolean} not-enforce-hostnames + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -UpdatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; +UpdateRotatedSecret.prototype['secure-access-enable'] = undefined; /** - * If set, clients can request certificates without a CN - * @member {Boolean} not-require-cn + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ -UpdatePKICertIssuer.prototype['not-require-cn'] = undefined; +UpdateRotatedSecret.prototype['secure-access-host'] = undefined; /** - * A comma-separated list of organizational units (OU) that will be set in the issued certificate - * @member {String} organizational-units + * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) + * @member {String} secure-access-rdp-domain */ -UpdatePKICertIssuer.prototype['organizational-units'] = undefined; +UpdateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; /** - * A comma-separated list of organizations (O) that will be set in the issued certificate - * @member {String} organizations + * Override the RDP Domain username (relevant only for rdp) + * @member {String} secure-access-rdp-user */ -UpdatePKICertIssuer.prototype['organizations'] = undefined; +UpdateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; /** - * A comma-separated list of postal codes that will be set in the issued certificate - * @member {String} postal-code + * Destination URL to inject secrets + * @member {String} secure-access-url */ -UpdatePKICertIssuer.prototype['postal-code'] = undefined; +UpdateRotatedSecret.prototype['secure-access-url'] = undefined; /** - * Whether to protect generated certificates from deletion - * @member {Boolean} protect-certificates + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -UpdatePKICertIssuer.prototype['protect-certificates'] = undefined; +UpdateRotatedSecret.prototype['secure-access-web'] = false; /** - * A comma-separated list of provinces that will be set in the issued certificate - * @member {String} province + * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-browsing + * @default false */ -UpdatePKICertIssuer.prototype['province'] = undefined; +UpdateRotatedSecret.prototype['secure-access-web-browsing'] = false; /** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag + * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-proxy + * @default false */ -UpdatePKICertIssuer.prototype['rm-tag'] = undefined; +UpdateRotatedSecret.prototype['secure-access-web-proxy'] = false; /** - * If set, certificates will be flagged for server auth use - * @member {Boolean} server-flag + * Deprecated: use RotatedPassword + * @member {String} ssh-password */ -UpdatePKICertIssuer.prototype['server-flag'] = undefined; +UpdateRotatedSecret.prototype['ssh-password'] = undefined; /** - * A key to sign the certificate with, required in Private CA mode - * @member {String} signer-key-name - * @default 'dummy_signer_key' + * Deprecated: use RotatedUser + * @member {String} ssh-username */ -UpdatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; +UpdateRotatedSecret.prototype['ssh-username'] = undefined; /** - * A comma-separated list of street addresses that will be set in the issued certificate - * @member {String} street-address + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] + * @member {String} storage-account-key-name */ -UpdatePKICertIssuer.prototype['street-address'] = undefined; +UpdateRotatedSecret.prototype['storage-account-key-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdatePKICertIssuer.prototype['token'] = undefined; +UpdateRotatedSecret.prototype['token'] = undefined; /** - * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs - * @member {Number} ttl + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -UpdatePKICertIssuer.prototype['ttl'] = undefined; +UpdateRotatedSecret.prototype['uid-token'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' */ -UpdatePKICertIssuer.prototype['uid-token'] = undefined; -var _default = UpdatePKICertIssuer; +UpdateRotatedSecret.prototype['user-attribute'] = 'cn'; +/** + * LDAP User Base DN + * @member {String} user-dn + */ + +UpdateRotatedSecret.prototype['user-dn'] = undefined; +var _default = UpdateRotatedSecret; exports["default"] = _default; /***/ }), -/***/ 10710: +/***/ 12498: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -117231,7 +195665,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -117242,19 +195676,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdatePKICertIssuerOutput model module. - * @module model/UpdatePKICertIssuerOutput - * @version 3.3.16 + * The UpdateRotatedSecretOutput model module. + * @module model/UpdateRotatedSecretOutput + * @version 3.6.3 */ -var UpdatePKICertIssuerOutput = /*#__PURE__*/function () { +var UpdateRotatedSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdatePKICertIssuerOutput. - * @alias module:model/UpdatePKICertIssuerOutput + * Constructs a new UpdateRotatedSecretOutput. + * @alias module:model/UpdateRotatedSecretOutput */ - function UpdatePKICertIssuerOutput() { - _classCallCheck(this, UpdatePKICertIssuerOutput); + function UpdateRotatedSecretOutput() { + _classCallCheck(this, UpdateRotatedSecretOutput); - UpdatePKICertIssuerOutput.initialize(this); + UpdateRotatedSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -117263,22 +195697,22 @@ var UpdatePKICertIssuerOutput = /*#__PURE__*/function () { */ - _createClass(UpdatePKICertIssuerOutput, null, [{ + _createClass(UpdateRotatedSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePKICertIssuerOutput} obj Optional instance to populate. - * @return {module:model/UpdatePKICertIssuerOutput} The populated UpdatePKICertIssuerOutput instance. + * @param {module:model/UpdateRotatedSecretOutput} obj Optional instance to populate. + * @return {module:model/UpdateRotatedSecretOutput} The populated UpdateRotatedSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdatePKICertIssuerOutput(); + obj = obj || new UpdateRotatedSecretOutput(); if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); @@ -117289,20 +195723,20 @@ var UpdatePKICertIssuerOutput = /*#__PURE__*/function () { } }]); - return UpdatePKICertIssuerOutput; + return UpdateRotatedSecretOutput; }(); /** * @member {String} name */ -UpdatePKICertIssuerOutput.prototype['name'] = undefined; -var _default = UpdatePKICertIssuerOutput; +UpdateRotatedSecretOutput.prototype['name'] = undefined; +var _default = UpdateRotatedSecretOutput; exports["default"] = _default; /***/ }), -/***/ 25801: +/***/ 71651: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -117313,7 +195747,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -117324,20 +195758,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdatePingTarget model module. - * @module model/UpdatePingTarget - * @version 3.3.16 + * The UpdateRotationSettings model module. + * @module model/UpdateRotationSettings + * @version 3.6.3 */ -var UpdatePingTarget = /*#__PURE__*/function () { +var UpdateRotationSettings = /*#__PURE__*/function () { /** - * Constructs a new UpdatePingTarget. - * @alias module:model/UpdatePingTarget - * @param name {String} Target name + * Constructs a new UpdateRotationSettings. + * updateRotationSettings is a command that updates rotations settings of an existing key + * @alias module:model/UpdateRotationSettings + * @param autoRotate {Boolean} Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation + * @param name {String} Key name */ - function UpdatePingTarget(name) { - _classCallCheck(this, UpdatePingTarget); + function UpdateRotationSettings(autoRotate, name) { + _classCallCheck(this, UpdateRotationSettings); - UpdatePingTarget.initialize(this, name); + UpdateRotationSettings.initialize(this, autoRotate, name); } /** * Initializes the fields of this object. @@ -117346,71 +195782,40 @@ var UpdatePingTarget = /*#__PURE__*/function () { */ - _createClass(UpdatePingTarget, null, [{ + _createClass(UpdateRotationSettings, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, autoRotate, name) { + obj['auto-rotate'] = autoRotate; obj['name'] = name; } /** - * Constructs a UpdatePingTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateRotationSettings from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePingTarget} obj Optional instance to populate. - * @return {module:model/UpdatePingTarget} The populated UpdatePingTarget instance. + * @param {module:model/UpdateRotationSettings} obj Optional instance to populate. + * @return {module:model/UpdateRotationSettings} The populated UpdateRotationSettings instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdatePingTarget(); - - if (data.hasOwnProperty('administrative-port')) { - obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); - } - - if (data.hasOwnProperty('authorization-port')) { - obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } + obj = obj || new UpdateRotationSettings(); - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'Boolean'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); - } - - if (data.hasOwnProperty('privileged-user')) { - obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'Number'); } if (data.hasOwnProperty('token')) { @@ -117420,118 +195825,58 @@ var UpdatePingTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } } return obj; } }]); - return UpdatePingTarget; + return UpdateRotationSettings; }(); /** - * Ping Federate administrative port - * @member {String} administrative-port - * @default '9999' - */ - - -UpdatePingTarget.prototype['administrative-port'] = '9999'; -/** - * Ping Federate authorization port - * @member {String} authorization-port - * @default '9031' - */ - -UpdatePingTarget.prototype['authorization-port'] = '9031'; -/** - * Deprecated - use description - * @member {String} comment + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation + * @member {Boolean} auto-rotate */ -UpdatePingTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ -UpdatePingTarget.prototype['description'] = undefined; +UpdateRotationSettings.prototype['auto-rotate'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdatePingTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdatePingTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdatePingTarget.prototype['key'] = undefined; +UpdateRotationSettings.prototype['json'] = false; /** - * Target name + * Key name * @member {String} name */ -UpdatePingTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdatePingTarget.prototype['new-name'] = undefined; -/** - * Ping Federate privileged user password - * @member {String} password - */ - -UpdatePingTarget.prototype['password'] = undefined; -/** - * Ping URL - * @member {String} ping-url - */ - -UpdatePingTarget.prototype['ping-url'] = undefined; +UpdateRotationSettings.prototype['name'] = undefined; /** - * Ping Federate privileged user - * @member {String} privileged-user + * The number of days to wait between every automatic key rotation (7-365) + * @member {Number} rotation-interval */ -UpdatePingTarget.prototype['privileged-user'] = undefined; +UpdateRotationSettings.prototype['rotation-interval'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdatePingTarget.prototype['token'] = undefined; +UpdateRotationSettings.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdatePingTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdatePingTarget.prototype['update-version'] = undefined; -var _default = UpdatePingTarget; +UpdateRotationSettings.prototype['uid-token'] = undefined; +var _default = UpdateRotationSettings; exports["default"] = _default; /***/ }), -/***/ 5594: +/***/ 50705: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -117542,7 +195887,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -117553,20 +195898,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRDPTargetDetails model module. - * @module model/UpdateRDPTargetDetails - * @version 3.3.16 + * The UpdateSSHCertIssuer model module. + * @module model/UpdateSSHCertIssuer + * @version 3.6.3 */ -var UpdateRDPTargetDetails = /*#__PURE__*/function () { +var UpdateSSHCertIssuer = /*#__PURE__*/function () { /** - * Constructs a new UpdateRDPTargetDetails. - * @alias module:model/UpdateRDPTargetDetails - * @param name {String} Target name + * Constructs a new UpdateSSHCertIssuer. + * @alias module:model/UpdateSSHCertIssuer + * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu + * @param name {String} SSH certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with + * @param ttl {Number} The requested Time To Live for the certificate, in seconds */ - function UpdateRDPTargetDetails(name) { - _classCallCheck(this, UpdateRDPTargetDetails); + function UpdateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { + _classCallCheck(this, UpdateSSHCertIssuer); - UpdateRDPTargetDetails.initialize(this, name); + UpdateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); } /** * Initializes the fields of this object. @@ -117575,65 +195923,118 @@ var UpdateRDPTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateRDPTargetDetails, null, [{ + _createClass(UpdateSSHCertIssuer, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { + obj['allowed-users'] = allowedUsers; obj['name'] = name; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; } /** - * Constructs a UpdateRDPTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRDPTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateRDPTargetDetails} The populated UpdateRDPTargetDetails instance. + * @param {module:model/UpdateSSHCertIssuer} obj Optional instance to populate. + * @return {module:model/UpdateSSHCertIssuer} The populated UpdateSSHCertIssuer instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRDPTargetDetails(); + obj = obj || new UpdateSSHCertIssuer(); - if (data.hasOwnProperty('admin_name')) { - obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); } - if (data.hasOwnProperty('admin_pwd')) { - obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - if (data.hasOwnProperty('host_name')) { - obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); + if (data.hasOwnProperty('allowed-users')) { + obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); } - if (data.hasOwnProperty('host_port')) { - obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('principals')) { + obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('secure-access-bastion-api')) { + obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-ssh')) { + obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-ssh-creds-user')) { + obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-use-internal-bastion')) { + obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); } if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } @@ -117643,83 +196044,154 @@ var UpdateRDPTargetDetails = /*#__PURE__*/function () { } }]); - return UpdateRDPTargetDetails; + return UpdateSSHCertIssuer; }(); /** - * The admin name - * @member {String} admin_name + * @member {String} ProviderType */ -UpdateRDPTargetDetails.prototype['admin_name'] = undefined; +UpdateSSHCertIssuer.prototype['ProviderType'] = undefined; /** - * The admin password - * @member {String} admin_pwd + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -UpdateRDPTargetDetails.prototype['admin_pwd'] = undefined; +UpdateSSHCertIssuer.prototype['add-tag'] = undefined; /** - * The rdp host name - * @member {String} host_name + * Users allowed to fetch the certificate, e.g root,ubuntu + * @member {String} allowed-users */ -UpdateRDPTargetDetails.prototype['host_name'] = undefined; +UpdateSSHCertIssuer.prototype['allowed-users'] = undefined; /** - * The rdp port - * @member {String} host_port - * @default '22' + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -UpdateRDPTargetDetails.prototype['host_port'] = '22'; +UpdateSSHCertIssuer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +UpdateSSHCertIssuer.prototype['description'] = undefined; +/** + * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" + * @member {Object.} extensions + */ + +UpdateSSHCertIssuer.prototype['extensions'] = undefined; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ + +UpdateSSHCertIssuer.prototype['host-provider'] = 'explicit'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateRDPTargetDetails.prototype['json'] = false; +UpdateSSHCertIssuer.prototype['json'] = false; /** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version + * Deprecated - use description + * @member {String} metadata */ -UpdateRDPTargetDetails.prototype['keep-prev-version'] = undefined; +UpdateSSHCertIssuer.prototype['metadata'] = undefined; /** - * Target name + * SSH certificate issuer name * @member {String} name */ -UpdateRDPTargetDetails.prototype['name'] = undefined; +UpdateSSHCertIssuer.prototype['name'] = undefined; /** - * Deprecated - * @member {Boolean} new-version + * New item name + * @member {String} new-name */ -UpdateRDPTargetDetails.prototype['new-version'] = undefined; +UpdateSSHCertIssuer.prototype['new-name'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key + * Signed certificates with principal, e.g example_role1,example_role2 + * @member {String} principals */ -UpdateRDPTargetDetails.prototype['protection_key'] = undefined; +UpdateSSHCertIssuer.prototype['principals'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +UpdateSSHCertIssuer.prototype['rm-tag'] = undefined; +/** + * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 + * @member {String} secure-access-bastion-api + */ + +UpdateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; +/** + * Bastion's SSH server. E.g. my.bastion:22 + * @member {String} secure-access-bastion-ssh + */ + +UpdateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +UpdateSSHCertIssuer.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +UpdateSSHCertIssuer.prototype['secure-access-host'] = undefined; +/** + * SSH username to connect to target server, must be in 'Allowed Users' list + * @member {String} secure-access-ssh-creds-user + */ + +UpdateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; +/** + * Use internal SSH Bastion + * @member {Boolean} secure-access-use-internal-bastion + */ + +UpdateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; +/** + * A key to sign the certificate with + * @member {String} signer-key-name + */ + +UpdateSSHCertIssuer.prototype['signer-key-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateRDPTargetDetails.prototype['token'] = undefined; +UpdateSSHCertIssuer.prototype['token'] = undefined; +/** + * The requested Time To Live for the certificate, in seconds + * @member {Number} ttl + */ + +UpdateSSHCertIssuer.prototype['ttl'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateRDPTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateRDPTargetDetails; +UpdateSSHCertIssuer.prototype['uid-token'] = undefined; +var _default = UpdateSSHCertIssuer; exports["default"] = _default; /***/ }), -/***/ 60415: +/***/ 59748: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -117730,7 +196202,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -117741,20 +196213,102 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRabbitMQTarget model module. - * @module model/UpdateRabbitMQTarget - * @version 3.3.16 + * The UpdateSSHCertIssuerOutput model module. + * @module model/UpdateSSHCertIssuerOutput + * @version 3.6.3 */ -var UpdateRabbitMQTarget = /*#__PURE__*/function () { +var UpdateSSHCertIssuerOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateRabbitMQTarget. - * @alias module:model/UpdateRabbitMQTarget + * Constructs a new UpdateSSHCertIssuerOutput. + * @alias module:model/UpdateSSHCertIssuerOutput + */ + function UpdateSSHCertIssuerOutput() { + _classCallCheck(this, UpdateSSHCertIssuerOutput); + + UpdateSSHCertIssuerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateSSHCertIssuerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSSHCertIssuerOutput} obj Optional instance to populate. + * @return {module:model/UpdateSSHCertIssuerOutput} The populated UpdateSSHCertIssuerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSSHCertIssuerOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return UpdateSSHCertIssuerOutput; +}(); +/** + * @member {String} name + */ + + +UpdateSSHCertIssuerOutput.prototype['name'] = undefined; +var _default = UpdateSSHCertIssuerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84357: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateSSHTarget model module. + * @module model/UpdateSSHTarget + * @version 3.6.3 + */ +var UpdateSSHTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSSHTarget. + * @alias module:model/UpdateSSHTarget * @param name {String} Target name */ - function UpdateRabbitMQTarget(name) { - _classCallCheck(this, UpdateRabbitMQTarget); + function UpdateSSHTarget(name) { + _classCallCheck(this, UpdateSSHTarget); - UpdateRabbitMQTarget.initialize(this, name); + UpdateSSHTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -117763,33 +196317,33 @@ var UpdateRabbitMQTarget = /*#__PURE__*/function () { */ - _createClass(UpdateRabbitMQTarget, null, [{ + _createClass(UpdateSSHTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSSHTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRabbitMQTarget} obj Optional instance to populate. - * @return {module:model/UpdateRabbitMQTarget} The populated UpdateRabbitMQTarget instance. + * @param {module:model/UpdateSSHTarget} obj Optional instance to populate. + * @return {module:model/UpdateSSHTarget} The populated UpdateSSHTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRabbitMQTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } + obj = obj || new UpdateSSHTarget(); if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } @@ -117802,6 +196356,10 @@ var UpdateRabbitMQTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -117810,16 +196368,24 @@ var UpdateRabbitMQTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('rabbitmq-server-password')) { - obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); } - if (data.hasOwnProperty('rabbitmq-server-user')) { - obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); + if (data.hasOwnProperty('private-key-password')) { + obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); } if (data.hasOwnProperty('token')) { @@ -117839,91 +196405,113 @@ var UpdateRabbitMQTarget = /*#__PURE__*/function () { } }]); - return UpdateRabbitMQTarget; + return UpdateSSHTarget; }(); /** - * Deprecated - use description - * @member {String} comment + * Description of the object + * @member {String} description */ -UpdateRabbitMQTarget.prototype['comment'] = undefined; +UpdateSSHTarget.prototype['description'] = undefined; /** - * Description of the object - * @member {String} description + * SSH host name + * @member {String} host */ -UpdateRabbitMQTarget.prototype['description'] = undefined; +UpdateSSHTarget.prototype['host'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateRabbitMQTarget.prototype['json'] = false; +UpdateSSHTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateRabbitMQTarget.prototype['keep-prev-version'] = undefined; +UpdateSSHTarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateRabbitMQTarget.prototype['key'] = undefined; +UpdateSSHTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateSSHTarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateRabbitMQTarget.prototype['name'] = undefined; +UpdateSSHTarget.prototype['name'] = undefined; /** * New target name * @member {String} new-name */ -UpdateRabbitMQTarget.prototype['new-name'] = undefined; +UpdateSSHTarget.prototype['new-name'] = undefined; /** - * @member {String} rabbitmq-server-password + * SSH port + * @member {String} port + * @default '22' */ -UpdateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; +UpdateSSHTarget.prototype['port'] = '22'; /** - * @member {String} rabbitmq-server-uri + * SSH private key + * @member {String} private-key */ -UpdateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; +UpdateSSHTarget.prototype['private-key'] = undefined; /** - * @member {String} rabbitmq-server-user + * SSH private key password + * @member {String} private-key-password */ -UpdateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; +UpdateSSHTarget.prototype['private-key-password'] = undefined; +/** + * SSH password to rotate + * @member {String} ssh-password + */ + +UpdateSSHTarget.prototype['ssh-password'] = undefined; +/** + * SSH username + * @member {String} ssh-username + */ + +UpdateSSHTarget.prototype['ssh-username'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateRabbitMQTarget.prototype['token'] = undefined; +UpdateSSHTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateRabbitMQTarget.prototype['uid-token'] = undefined; +UpdateSSHTarget.prototype['uid-token'] = undefined; /** * Deprecated * @member {Boolean} update-version */ -UpdateRabbitMQTarget.prototype['update-version'] = undefined; -var _default = UpdateRabbitMQTarget; +UpdateSSHTarget.prototype['update-version'] = undefined; +var _default = UpdateSSHTarget; exports["default"] = _default; /***/ }), -/***/ 46099: +/***/ 50311: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -117934,7 +196522,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -117945,20 +196533,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRabbitMQTargetDetails model module. - * @module model/UpdateRabbitMQTargetDetails - * @version 3.3.16 + * The UpdateSSHTargetDetails model module. + * @module model/UpdateSSHTargetDetails + * @version 3.6.3 */ -var UpdateRabbitMQTargetDetails = /*#__PURE__*/function () { +var UpdateSSHTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new UpdateRabbitMQTargetDetails. - * @alias module:model/UpdateRabbitMQTargetDetails + * Constructs a new UpdateSSHTargetDetails. + * @alias module:model/UpdateSSHTargetDetails * @param name {String} Target name */ - function UpdateRabbitMQTargetDetails(name) { - _classCallCheck(this, UpdateRabbitMQTargetDetails); + function UpdateSSHTargetDetails(name) { + _classCallCheck(this, UpdateSSHTargetDetails); - UpdateRabbitMQTargetDetails.initialize(this, name); + UpdateSSHTargetDetails.initialize(this, name); } /** * Initializes the fields of this object. @@ -117967,24 +196555,28 @@ var UpdateRabbitMQTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateRabbitMQTargetDetails, null, [{ + _createClass(UpdateSSHTargetDetails, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateRabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSSHTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRabbitMQTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateRabbitMQTargetDetails} The populated UpdateRabbitMQTargetDetails instance. + * @param {module:model/UpdateSSHTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateSSHTargetDetails} The populated UpdateSSHTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRabbitMQTargetDetails(); + obj = obj || new UpdateSSHTargetDetails(); + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -118002,20 +196594,28 @@ var UpdateRabbitMQTargetDetails = /*#__PURE__*/function () { obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } - if (data.hasOwnProperty('rabbitmq_server_password')) { - obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); } - if (data.hasOwnProperty('rabbitmq_server_uri')) { - obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); + if (data.hasOwnProperty('private-key-password')) { + obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); } - if (data.hasOwnProperty('rabbitmq_server_user')) { - obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); } if (data.hasOwnProperty('token')) { @@ -118031,73 +196631,95 @@ var UpdateRabbitMQTargetDetails = /*#__PURE__*/function () { } }]); - return UpdateRabbitMQTargetDetails; + return UpdateSSHTargetDetails; }(); +/** + * The ssh host name + * @member {String} host + */ + + +UpdateSSHTargetDetails.prototype['host'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ - -UpdateRabbitMQTargetDetails.prototype['json'] = false; +UpdateSSHTargetDetails.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateRabbitMQTargetDetails.prototype['keep-prev-version'] = undefined; +UpdateSSHTargetDetails.prototype['keep-prev-version'] = undefined; /** * Target name * @member {String} name */ -UpdateRabbitMQTargetDetails.prototype['name'] = undefined; +UpdateSSHTargetDetails.prototype['name'] = undefined; /** * Deprecated * @member {Boolean} new-version */ -UpdateRabbitMQTargetDetails.prototype['new-version'] = undefined; +UpdateSSHTargetDetails.prototype['new-version'] = undefined; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key + * ssh port + * @member {String} port + * @default '22' */ -UpdateRabbitMQTargetDetails.prototype['protection_key'] = undefined; +UpdateSSHTargetDetails.prototype['port'] = '22'; /** - * @member {String} rabbitmq_server_password + * ssh private key + * @member {String} private-key */ -UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; +UpdateSSHTargetDetails.prototype['private-key'] = undefined; /** - * @member {String} rabbitmq_server_uri + * The ssh private key password + * @member {String} private-key-password */ -UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; +UpdateSSHTargetDetails.prototype['private-key-password'] = undefined; /** - * @member {String} rabbitmq_server_user + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key */ -UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; +UpdateSSHTargetDetails.prototype['protection_key'] = undefined; +/** + * ssh pawssword to rotate + * @member {String} ssh-password + */ + +UpdateSSHTargetDetails.prototype['ssh-password'] = undefined; +/** + * ssh username + * @member {String} ssh-username + */ + +UpdateSSHTargetDetails.prototype['ssh-username'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateRabbitMQTargetDetails.prototype['token'] = undefined; +UpdateSSHTargetDetails.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateRabbitMQTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateRabbitMQTargetDetails; +UpdateSSHTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateSSHTargetDetails; exports["default"] = _default; /***/ }), -/***/ 73718: +/***/ 86768: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -118108,7 +196730,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -118119,19 +196741,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRabbitMQTargetOutput model module. - * @module model/UpdateRabbitMQTargetOutput - * @version 3.3.16 + * The UpdateSSHTargetOutput model module. + * @module model/UpdateSSHTargetOutput + * @version 3.6.3 */ -var UpdateRabbitMQTargetOutput = /*#__PURE__*/function () { +var UpdateSSHTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateRabbitMQTargetOutput. - * @alias module:model/UpdateRabbitMQTargetOutput + * Constructs a new UpdateSSHTargetOutput. + * @alias module:model/UpdateSSHTargetOutput */ - function UpdateRabbitMQTargetOutput() { - _classCallCheck(this, UpdateRabbitMQTargetOutput); + function UpdateSSHTargetOutput() { + _classCallCheck(this, UpdateSSHTargetOutput); - UpdateRabbitMQTargetOutput.initialize(this); + UpdateSSHTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -118140,22 +196762,22 @@ var UpdateRabbitMQTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateRabbitMQTargetOutput, null, [{ + _createClass(UpdateSSHTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRabbitMQTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateRabbitMQTargetOutput} The populated UpdateRabbitMQTargetOutput instance. + * @param {module:model/UpdateSSHTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateSSHTargetOutput} The populated UpdateSSHTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRabbitMQTargetOutput(); + obj = obj || new UpdateSSHTargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -118166,20 +196788,20 @@ var UpdateRabbitMQTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateRabbitMQTargetOutput; + return UpdateSSHTargetOutput; }(); /** * @member {Number} target_id */ -UpdateRabbitMQTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateRabbitMQTargetOutput; +UpdateSSHTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateSSHTargetOutput; exports["default"] = _default; /***/ }), -/***/ 13542: +/***/ 69078: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -118190,7 +196812,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -118201,20 +196823,24 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRole model module. - * @module model/UpdateRole - * @version 3.3.16 + * The UpdateSalesforceTarget model module. + * @module model/UpdateSalesforceTarget + * @version 3.6.3 */ -var UpdateRole = /*#__PURE__*/function () { +var UpdateSalesforceTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateRole. - * @alias module:model/UpdateRole - * @param name {String} Role name + * Constructs a new UpdateSalesforceTarget. + * @alias module:model/UpdateSalesforceTarget + * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') + * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce + * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce + * @param name {String} Target name + * @param tenantUrl {String} Url of the Salesforce tenant */ - function UpdateRole(name) { - _classCallCheck(this, UpdateRole); + function UpdateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { + _classCallCheck(this, UpdateSalesforceTarget); - UpdateRole.initialize(this, name); + UpdateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); } /** * Initializes the fields of this object. @@ -118223,59 +196849,99 @@ var UpdateRole = /*#__PURE__*/function () { */ - _createClass(UpdateRole, null, [{ + _createClass(UpdateSalesforceTarget, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { + obj['auth-flow'] = authFlow; + obj['client-id'] = clientId; + obj['email'] = email; obj['name'] = name; + obj['tenant-url'] = tenantUrl; } /** - * Constructs a UpdateRole from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRole} obj Optional instance to populate. - * @return {module:model/UpdateRole} The populated UpdateRole instance. + * @param {module:model/UpdateSalesforceTarget} obj Optional instance to populate. + * @return {module:model/UpdateSalesforceTarget} The populated UpdateSalesforceTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRole(); + obj = obj || new UpdateSalesforceTarget(); - if (data.hasOwnProperty('analytics-access')) { - obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); + if (data.hasOwnProperty('app-private-key-data')) { + obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); } - if (data.hasOwnProperty('audit-access')) { - obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); + if (data.hasOwnProperty('auth-flow')) { + obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); + } + + if (data.hasOwnProperty('ca-cert-data')) { + obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); + } + + if (data.hasOwnProperty('ca-cert-name')) { + obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('gw-analytics-access')) { - obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (data.hasOwnProperty('new-comment')) { - obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('new-name')) { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('sra-reports-access')) { - obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('security-token')) { + obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); + } + + if (data.hasOwnProperty('tenant-url')) { + obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); } if (data.hasOwnProperty('token')) { @@ -118285,90 +196951,152 @@ var UpdateRole = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } } - return obj; - } - }]); + return obj; + } + }]); + + return UpdateSalesforceTarget; +}(); +/** + * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) + * @member {String} app-private-key-data + */ + + +UpdateSalesforceTarget.prototype['app-private-key-data'] = undefined; +/** + * type of the auth flow ('jwt' / 'user-password') + * @member {String} auth-flow + */ + +UpdateSalesforceTarget.prototype['auth-flow'] = undefined; +/** + * Base64 encoded PEM cert to use when uploading a new key to Salesforce + * @member {String} ca-cert-data + */ + +UpdateSalesforceTarget.prototype['ca-cert-data'] = undefined; +/** + * name of the certificate in Salesforce tenant to use when uploading new key + * @member {String} ca-cert-name + */ - return UpdateRole; -}(); +UpdateSalesforceTarget.prototype['ca-cert-name'] = undefined; /** - * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} analytics-access + * Client ID of the oauth2 app to use for connecting to Salesforce + * @member {String} client-id */ +UpdateSalesforceTarget.prototype['client-id'] = undefined; +/** + * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) + * @member {String} client-secret + */ -UpdateRole.prototype['analytics-access'] = undefined; +UpdateSalesforceTarget.prototype['client-secret'] = undefined; /** - * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. - * @member {String} audit-access + * Deprecated - use description + * @member {String} comment */ -UpdateRole.prototype['audit-access'] = undefined; +UpdateSalesforceTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description - * @default 'default_comment' */ -UpdateRole.prototype['description'] = 'default_comment'; +UpdateSalesforceTarget.prototype['description'] = undefined; /** - * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} gw-analytics-access + * The email of the user attached to the oauth2 app used for connecting to Salesforce + * @member {String} email */ -UpdateRole.prototype['gw-analytics-access'] = undefined; +UpdateSalesforceTarget.prototype['email'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateRole.prototype['json'] = false; +UpdateSalesforceTarget.prototype['json'] = false; /** - * Role name - * @member {String} name + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -UpdateRole.prototype['name'] = undefined; +UpdateSalesforceTarget.prototype['keep-prev-version'] = undefined; /** - * Deprecated - use description - * @member {String} new-comment - * @default 'default_comment' + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -UpdateRole.prototype['new-comment'] = 'default_comment'; +UpdateSalesforceTarget.prototype['key'] = undefined; /** - * New Role name + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateSalesforceTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +UpdateSalesforceTarget.prototype['name'] = undefined; +/** + * New target name * @member {String} new-name */ -UpdateRole.prototype['new-name'] = undefined; +UpdateSalesforceTarget.prototype['new-name'] = undefined; /** - * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. - * @member {String} sra-reports-access + * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} password */ -UpdateRole.prototype['sra-reports-access'] = undefined; +UpdateSalesforceTarget.prototype['password'] = undefined; +/** + * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} security-token + */ + +UpdateSalesforceTarget.prototype['security-token'] = undefined; +/** + * Url of the Salesforce tenant + * @member {String} tenant-url + */ + +UpdateSalesforceTarget.prototype['tenant-url'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateRole.prototype['token'] = undefined; +UpdateSalesforceTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateRole.prototype['uid-token'] = undefined; -var _default = UpdateRole; +UpdateSalesforceTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateSalesforceTarget.prototype['update-version'] = undefined; +var _default = UpdateSalesforceTarget; exports["default"] = _default; /***/ }), -/***/ 56152: +/***/ 81299: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -118379,7 +197107,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -118390,19 +197118,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRoleOutput model module. - * @module model/UpdateRoleOutput - * @version 3.3.16 + * The UpdateSalesforceTargetOutput model module. + * @module model/UpdateSalesforceTargetOutput + * @version 3.6.3 */ -var UpdateRoleOutput = /*#__PURE__*/function () { +var UpdateSalesforceTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateRoleOutput. - * @alias module:model/UpdateRoleOutput + * Constructs a new UpdateSalesforceTargetOutput. + * @alias module:model/UpdateSalesforceTargetOutput */ - function UpdateRoleOutput() { - _classCallCheck(this, UpdateRoleOutput); + function UpdateSalesforceTargetOutput() { + _classCallCheck(this, UpdateSalesforceTargetOutput); - UpdateRoleOutput.initialize(this); + UpdateSalesforceTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -118411,25 +197139,25 @@ var UpdateRoleOutput = /*#__PURE__*/function () { */ - _createClass(UpdateRoleOutput, null, [{ + _createClass(UpdateSalesforceTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateRoleOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRoleOutput} obj Optional instance to populate. - * @return {module:model/UpdateRoleOutput} The populated UpdateRoleOutput instance. + * @param {module:model/UpdateSalesforceTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateSalesforceTargetOutput} The populated UpdateSalesforceTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRoleOutput(); + obj = obj || new UpdateSalesforceTargetOutput(); - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } @@ -118437,20 +197165,20 @@ var UpdateRoleOutput = /*#__PURE__*/function () { } }]); - return UpdateRoleOutput; + return UpdateSalesforceTargetOutput; }(); /** - * @member {Boolean} updated + * @member {Number} target_id */ -UpdateRoleOutput.prototype['updated'] = undefined; -var _default = UpdateRoleOutput; +UpdateSalesforceTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateSalesforceTargetOutput; exports["default"] = _default; /***/ }), -/***/ 730: +/***/ 70985: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -118461,7 +197189,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -118472,21 +197200,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRotatedSecret model module. - * @module model/UpdateRotatedSecret - * @version 3.3.16 + * The UpdateSecretVal model module. + * @module model/UpdateSecretVal + * @version 3.6.3 */ -var UpdateRotatedSecret = /*#__PURE__*/function () { +var UpdateSecretVal = /*#__PURE__*/function () { /** - * Constructs a new UpdateRotatedSecret. - * updateRotatedSecret is a command that updates rotated secret. [Deprecated: Use gateway-update-item command] - * @alias module:model/UpdateRotatedSecret + * Constructs a new UpdateSecretVal. + * @alias module:model/UpdateSecretVal * @param name {String} Secret name + * @param value {String} The secret value (relevant only for type 'generic') */ - function UpdateRotatedSecret(name) { - _classCallCheck(this, UpdateRotatedSecret); + function UpdateSecretVal(name, value) { + _classCallCheck(this, UpdateSecretVal); - UpdateRotatedSecret.initialize(this, name); + UpdateSecretVal.initialize(this, name, value); } /** * Initializes the fields of this object. @@ -118495,55 +197223,42 @@ var UpdateRotatedSecret = /*#__PURE__*/function () { */ - _createClass(UpdateRotatedSecret, null, [{ + _createClass(UpdateSecretVal, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, name, value) { obj['name'] = name; + obj['value'] = value; } /** - * Constructs a UpdateRotatedSecret from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSecretVal from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRotatedSecret} obj Optional instance to populate. - * @return {module:model/UpdateRotatedSecret} The populated UpdateRotatedSecret instance. + * @param {module:model/UpdateSecretVal} obj Optional instance to populate. + * @return {module:model/UpdateSecretVal} The populated UpdateSecretVal instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRotatedSecret(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('api-id')) { - obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); - } - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); - } + obj = obj || new UpdateSecretVal(); - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - if (data.hasOwnProperty('custom-payload')) { - obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + if (data.hasOwnProperty('custom-field')) { + obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { + 'String': 'String' + }); } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); } - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + if (data.hasOwnProperty('inject-url')) { + obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); } if (data.hasOwnProperty('json')) { @@ -118558,120 +197273,24 @@ var UpdateRotatedSecret = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('last-version')) { + obj['last-version'] = _ApiClient["default"].convertToType(data['last-version'], 'Number'); } - if (data.hasOwnProperty('new-metadata')) { - obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); + if (data.hasOwnProperty('multiline')) { + obj['multiline'] = _ApiClient["default"].convertToType(data['multiline'], 'Boolean'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } if (data.hasOwnProperty('new-version')) { obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); } - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('rotate-after-disconnect')) { - obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); - } - - if (data.hasOwnProperty('rotated-password')) { - obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); - } - - if (data.hasOwnProperty('rotated-username')) { - obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); - } - - if (data.hasOwnProperty('rotation-hour')) { - obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); - } - - if (data.hasOwnProperty('rotator-creds-type')) { - obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); - } - - if (data.hasOwnProperty('rotator-custom-cmd')) { - obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); - } - - if (data.hasOwnProperty('same-password')) { - obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-name')) { - obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - - if (data.hasOwnProperty('storage-account-key-name')) { - obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } if (data.hasOwnProperty('token')) { @@ -118681,283 +197300,128 @@ var UpdateRotatedSecret = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } } return obj; } }]); - return UpdateRotatedSecret; + return UpdateSecretVal; }(); /** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - - -UpdateRotatedSecret.prototype['add-tag'] = undefined; -/** - * API ID to rotate - * @member {String} api-id - */ - -UpdateRotatedSecret.prototype['api-id'] = undefined; -/** - * API key to rotate - * @member {String} api-key - */ - -UpdateRotatedSecret.prototype['api-key'] = undefined; -/** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] - * @member {String} auto-rotate + * for personal password manager + * @member {String} accessibility + * @default 'regular' */ -UpdateRotatedSecret.prototype['auto-rotate'] = undefined; -/** - * Region (used in aws) - * @member {String} aws-region - * @default 'us-east-2' - */ -UpdateRotatedSecret.prototype['aws-region'] = 'us-east-2'; +UpdateSecretVal.prototype['accessibility'] = 'regular'; /** - * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) - * @member {String} custom-payload + * For Password Management use, additional fields + * @member {Object.} custom-field */ -UpdateRotatedSecret.prototype['custom-payload'] = undefined; +UpdateSecretVal.prototype['custom-field'] = undefined; /** - * Description of the object - * @member {String} description - * @default 'default_metadata' + * Secret format [text/json] (relevant only for type 'generic') + * @member {String} format + * @default 'text' */ -UpdateRotatedSecret.prototype['description'] = 'default_metadata'; +UpdateSecretVal.prototype['format'] = 'text'; /** - * Base64-encoded service account private key text - * @member {String} gcp-key + * For Password Management use, reflect the website context + * @member {Array.} inject-url */ -UpdateRotatedSecret.prototype['gcp-key'] = undefined; +UpdateSecretVal.prototype['inject-url'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateRotatedSecret.prototype['json'] = false; +UpdateSecretVal.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateRotatedSecret.prototype['keep-prev-version'] = undefined; +UpdateSecretVal.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateRotatedSecret.prototype['key'] = undefined; +UpdateSecretVal.prototype['key'] = undefined; /** - * Secret name - * @member {String} name + * The last version number before the update + * @member {Number} last-version */ -UpdateRotatedSecret.prototype['name'] = undefined; +UpdateSecretVal.prototype['last-version'] = undefined; /** - * Deprecated - use description - * @member {String} new-metadata - * @default 'default_metadata' + * The provided value is a multiline value (separated by '\\n') + * @member {Boolean} multiline */ -UpdateRotatedSecret.prototype['new-metadata'] = 'default_metadata'; +UpdateSecretVal.prototype['multiline'] = undefined; /** - * New item name - * @member {String} new-name + * Secret name + * @member {String} name */ -UpdateRotatedSecret.prototype['new-name'] = undefined; +UpdateSecretVal.prototype['name'] = undefined; /** * Deprecated * @member {Boolean} new-version */ -UpdateRotatedSecret.prototype['new-version'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -UpdateRotatedSecret.prototype['rm-tag'] = undefined; -/** - * Rotate the value of the secret after SRA session ends [true/false] - * @member {String} rotate-after-disconnect - * @default 'false' - */ - -UpdateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; -/** - * rotated-username password - * @member {String} rotated-password - */ - -UpdateRotatedSecret.prototype['rotated-password'] = undefined; -/** - * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password - * @member {String} rotated-username - */ - -UpdateRotatedSecret.prototype['rotated-username'] = undefined; -/** - * The Hour of the rotation in UTC - * @member {Number} rotation-hour - */ - -UpdateRotatedSecret.prototype['rotation-hour'] = undefined; -/** - * The number of days to wait between every automatic key rotation (7-365) - * @member {String} rotation-interval - */ - -UpdateRotatedSecret.prototype['rotation-interval'] = undefined; -/** - * The credentials to connect with use-self-creds/use-target-creds - * @member {String} rotator-creds-type - * @default 'use-self-creds' - */ - -UpdateRotatedSecret.prototype['rotator-creds-type'] = 'use-self-creds'; -/** - * \"Custom rotation command (relevant only for ssh target) - * @member {String} rotator-custom-cmd - */ - -UpdateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; -/** - * Rotate same password for each host from the Linked Target (relevant only for Linked Target) - * @member {String} same-password - */ - -UpdateRotatedSecret.prototype['same-password'] = undefined; -/** - * Allow providing external user for a domain users (relevant only for rdp) - * @member {Boolean} secure-access-allow-external-user - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-allow-external-user'] = false; -/** - * The AWS account id (relevant only for aws) - * @member {String} secure-access-aws-account-id - */ - -UpdateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli - * @member {Boolean} secure-access-aws-native-cli - */ - -UpdateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -UpdateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB name (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-name - */ - -UpdateRotatedSecret.prototype['secure-access-db-name'] = undefined; -/** - * The db schema (relevant only for mssql or postgresql) - * @member {String} secure-access-db-schema - */ - -UpdateRotatedSecret.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -UpdateRotatedSecret.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -UpdateRotatedSecret.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) - * @member {String} secure-access-rdp-domain - */ - -UpdateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username (relevant only for rdp) - * @member {String} secure-access-rdp-user - */ - -UpdateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-web'] = false; -/** - * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-web-proxy'] = false; +UpdateSecretVal.prototype['new-version'] = undefined; /** - * Deprecated: use RotatedPassword - * @member {String} ssh-password + * For Password Management use, additional fields + * @member {String} password */ -UpdateRotatedSecret.prototype['ssh-password'] = undefined; +UpdateSecretVal.prototype['password'] = undefined; /** - * Deprecated: use RotatedUser - * @member {String} ssh-username + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -UpdateRotatedSecret.prototype['ssh-username'] = undefined; +UpdateSecretVal.prototype['token'] = undefined; /** - * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] - * @member {String} storage-account-key-name + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -UpdateRotatedSecret.prototype['storage-account-key-name'] = undefined; +UpdateSecretVal.prototype['uid-token'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * For Password Management use + * @member {String} username */ -UpdateRotatedSecret.prototype['token'] = undefined; +UpdateSecretVal.prototype['username'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * The secret value (relevant only for type 'generic') + * @member {String} value */ -UpdateRotatedSecret.prototype['uid-token'] = undefined; -var _default = UpdateRotatedSecret; +UpdateSecretVal.prototype['value'] = undefined; +var _default = UpdateSecretVal; exports["default"] = _default; /***/ }), -/***/ 18105: +/***/ 81164: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -118968,7 +197432,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -118979,19 +197443,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRotatedSecretOutput model module. - * @module model/UpdateRotatedSecretOutput - * @version 3.3.16 + * The UpdateSecretValOutput model module. + * @module model/UpdateSecretValOutput + * @version 3.6.3 */ -var UpdateRotatedSecretOutput = /*#__PURE__*/function () { +var UpdateSecretValOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateRotatedSecretOutput. - * @alias module:model/UpdateRotatedSecretOutput + * Constructs a new UpdateSecretValOutput. + * @alias module:model/UpdateSecretValOutput */ - function UpdateRotatedSecretOutput() { - _classCallCheck(this, UpdateRotatedSecretOutput); + function UpdateSecretValOutput() { + _classCallCheck(this, UpdateSecretValOutput); - UpdateRotatedSecretOutput.initialize(this); + UpdateSecretValOutput.initialize(this); } /** * Initializes the fields of this object. @@ -119000,22 +197464,22 @@ var UpdateRotatedSecretOutput = /*#__PURE__*/function () { */ - _createClass(UpdateRotatedSecretOutput, null, [{ + _createClass(UpdateSecretValOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateSecretValOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRotatedSecretOutput} obj Optional instance to populate. - * @return {module:model/UpdateRotatedSecretOutput} The populated UpdateRotatedSecretOutput instance. + * @param {module:model/UpdateSecretValOutput} obj Optional instance to populate. + * @return {module:model/UpdateSecretValOutput} The populated UpdateSecretValOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRotatedSecretOutput(); + obj = obj || new UpdateSecretValOutput(); if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); @@ -119026,20 +197490,20 @@ var UpdateRotatedSecretOutput = /*#__PURE__*/function () { } }]); - return UpdateRotatedSecretOutput; + return UpdateSecretValOutput; }(); /** * @member {String} name */ -UpdateRotatedSecretOutput.prototype['name'] = undefined; -var _default = UpdateRotatedSecretOutput; +UpdateSecretValOutput.prototype['name'] = undefined; +var _default = UpdateSecretValOutput; exports["default"] = _default; /***/ }), -/***/ 60091: +/***/ 66565: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -119050,7 +197514,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -119061,22 +197525,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateRotationSettings model module. - * @module model/UpdateRotationSettings - * @version 3.3.16 + * The UpdateTarget model module. + * @module model/UpdateTarget + * @version 3.6.3 */ -var UpdateRotationSettings = /*#__PURE__*/function () { +var UpdateTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateRotationSettings. - * updateRotationSettings is a command that updates rotations settings of an existing key - * @alias module:model/UpdateRotationSettings - * @param autoRotate {Boolean} Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation - * @param name {String} Key name + * Constructs a new UpdateTarget. + * @alias module:model/UpdateTarget + * @param name {String} Target name */ - function UpdateRotationSettings(autoRotate, name) { - _classCallCheck(this, UpdateRotationSettings); + function UpdateTarget(name) { + _classCallCheck(this, UpdateTarget); - UpdateRotationSettings.initialize(this, autoRotate, name); + UpdateTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -119085,40 +197547,47 @@ var UpdateRotationSettings = /*#__PURE__*/function () { */ - _createClass(UpdateRotationSettings, null, [{ + _createClass(UpdateTarget, null, [{ key: "initialize", - value: function initialize(obj, autoRotate, name) { - obj['auto-rotate'] = autoRotate; + value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateRotationSettings from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRotationSettings} obj Optional instance to populate. - * @return {module:model/UpdateRotationSettings} The populated UpdateRotationSettings instance. + * @param {module:model/UpdateTarget} obj Optional instance to populate. + * @return {module:model/UpdateTarget} The populated UpdateTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateRotationSettings(); + obj = obj || new UpdateTarget(); - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'Boolean'); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'Number'); + if (data.hasOwnProperty('new-comment')) { + obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } if (data.hasOwnProperty('token')) { @@ -119134,52 +197603,66 @@ var UpdateRotationSettings = /*#__PURE__*/function () { } }]); - return UpdateRotationSettings; + return UpdateTarget; }(); /** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation - * @member {Boolean} auto-rotate + * Description of the object + * @member {String} description + * @default 'default_comment' */ -UpdateRotationSettings.prototype['auto-rotate'] = undefined; +UpdateTarget.prototype['description'] = 'default_comment'; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateRotationSettings.prototype['json'] = false; +UpdateTarget.prototype['json'] = false; /** - * Key name + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateTarget.prototype['max-versions'] = undefined; +/** + * Target name * @member {String} name */ -UpdateRotationSettings.prototype['name'] = undefined; +UpdateTarget.prototype['name'] = undefined; /** - * The number of days to wait between every automatic key rotation (7-365) - * @member {Number} rotation-interval + * Deprecated - use description + * @member {String} new-comment + * @default 'default_comment' */ -UpdateRotationSettings.prototype['rotation-interval'] = undefined; +UpdateTarget.prototype['new-comment'] = 'default_comment'; +/** + * New Target name + * @member {String} new-name + */ + +UpdateTarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateRotationSettings.prototype['token'] = undefined; +UpdateTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateRotationSettings.prototype['uid-token'] = undefined; -var _default = UpdateRotationSettings; +UpdateTarget.prototype['uid-token'] = undefined; +var _default = UpdateTarget; exports["default"] = _default; /***/ }), -/***/ 44701: +/***/ 78887: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -119190,7 +197673,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -119201,23 +197684,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSSHCertIssuer model module. - * @module model/UpdateSSHCertIssuer - * @version 3.3.16 + * The UpdateTargetDetails model module. + * @module model/UpdateTargetDetails + * @version 3.6.3 */ -var UpdateSSHCertIssuer = /*#__PURE__*/function () { +var UpdateTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new UpdateSSHCertIssuer. - * @alias module:model/UpdateSSHCertIssuer - * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu - * @param name {String} SSH certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with - * @param ttl {Number} The requested Time To Live for the certificate, in seconds + * Constructs a new UpdateTargetDetails. + * @alias module:model/UpdateTargetDetails */ - function UpdateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { - _classCallCheck(this, UpdateSSHCertIssuer); + function UpdateTargetDetails() { + _classCallCheck(this, UpdateTargetDetails); - UpdateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); + UpdateTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -119226,255 +197705,130 @@ var UpdateSSHCertIssuer = /*#__PURE__*/function () { */ - _createClass(UpdateSSHCertIssuer, null, [{ + _createClass(UpdateTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { - obj['allowed-users'] = allowedUsers; - obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; - } + value: function initialize(obj) {} /** - * Constructs a UpdateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHCertIssuer} obj Optional instance to populate. - * @return {module:model/UpdateSSHCertIssuer} The populated UpdateSSHCertIssuer instance. + * @param {module:model/UpdateTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateTargetDetails} The populated UpdateTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSSHCertIssuer(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('allowed-users')) { - obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { - 'String': 'String' - }); - } + obj = obj || new UpdateTargetDetails(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('principals')) { - obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('secure-access-bastion-api')) { - obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-ssh')) { - obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-ssh-creds-user')) { - obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-use-internal-bastion')) { - obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } } return obj; } }]); - return UpdateSSHCertIssuer; + return UpdateTargetDetails; }(); /** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateSSHCertIssuer.prototype['add-tag'] = undefined; -/** - * Users allowed to fetch the certificate, e.g root,ubuntu - * @member {String} allowed-users - */ +UpdateTargetDetails.prototype['json'] = false; +var _default = UpdateTargetDetails; +exports["default"] = _default; -UpdateSSHCertIssuer.prototype['allowed-users'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ +/***/ }), -UpdateSSHCertIssuer.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ +/***/ 5662: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -UpdateSSHCertIssuer.prototype['description'] = undefined; -/** - * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" - * @member {Object.} extensions - */ +"use strict"; -UpdateSSHCertIssuer.prototype['extensions'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ -UpdateSSHCertIssuer.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -UpdateSSHCertIssuer.prototype['metadata'] = undefined; -/** - * SSH certificate issuer name - * @member {String} name - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -UpdateSSHCertIssuer.prototype['name'] = undefined; -/** - * New item name - * @member {String} new-name - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -UpdateSSHCertIssuer.prototype['new-name'] = undefined; -/** - * Signed certificates with principal, e.g example_role1,example_role2 - * @member {String} principals - */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -UpdateSSHCertIssuer.prototype['principals'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -UpdateSSHCertIssuer.prototype['rm-tag'] = undefined; -/** - * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 - * @member {String} secure-access-bastion-api - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -UpdateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; /** - * Bastion's SSH server. E.g. my.bastion:22 - * @member {String} secure-access-bastion-ssh + * The UpdateTargetDetailsOutput model module. + * @module model/UpdateTargetDetailsOutput + * @version 3.6.3 */ +var UpdateTargetDetailsOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateTargetDetailsOutput. + * @alias module:model/UpdateTargetDetailsOutput + */ + function UpdateTargetDetailsOutput() { + _classCallCheck(this, UpdateTargetDetailsOutput); -UpdateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ + UpdateTargetDetailsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -UpdateSSHCertIssuer.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ -UpdateSSHCertIssuer.prototype['secure-access-host'] = undefined; -/** - * SSH username to connect to target server, must be in 'Allowed Users' list - * @member {String} secure-access-ssh-creds-user - */ + _createClass(UpdateTargetDetailsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTargetDetailsOutput} obj Optional instance to populate. + * @return {module:model/UpdateTargetDetailsOutput} The populated UpdateTargetDetailsOutput instance. + */ -UpdateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; -/** - * Use internal SSH Bastion - * @member {Boolean} secure-access-use-internal-bastion - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTargetDetailsOutput(); -UpdateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; -/** - * A key to sign the certificate with - * @member {String} signer-key-name - */ + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } -UpdateSSHCertIssuer.prototype['signer-key-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ + return obj; + } + }]); -UpdateSSHCertIssuer.prototype['token'] = undefined; + return UpdateTargetDetailsOutput; +}(); /** - * The requested Time To Live for the certificate, in seconds - * @member {Number} ttl + * @member {Boolean} updated */ -UpdateSSHCertIssuer.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ -UpdateSSHCertIssuer.prototype['uid-token'] = undefined; -var _default = UpdateSSHCertIssuer; +UpdateTargetDetailsOutput.prototype['updated'] = undefined; +var _default = UpdateTargetDetailsOutput; exports["default"] = _default; /***/ }), -/***/ 46641: +/***/ 33392: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -119485,7 +197839,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -119496,19 +197850,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSSHCertIssuerOutput model module. - * @module model/UpdateSSHCertIssuerOutput - * @version 3.3.16 + * The UpdateTargetOutput model module. + * @module model/UpdateTargetOutput + * @version 3.6.3 */ -var UpdateSSHCertIssuerOutput = /*#__PURE__*/function () { +var UpdateTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateSSHCertIssuerOutput. - * @alias module:model/UpdateSSHCertIssuerOutput + * Constructs a new UpdateTargetOutput. + * @alias module:model/UpdateTargetOutput */ - function UpdateSSHCertIssuerOutput() { - _classCallCheck(this, UpdateSSHCertIssuerOutput); + function UpdateTargetOutput() { + _classCallCheck(this, UpdateTargetOutput); - UpdateSSHCertIssuerOutput.initialize(this); + UpdateTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -119517,25 +197871,25 @@ var UpdateSSHCertIssuerOutput = /*#__PURE__*/function () { */ - _createClass(UpdateSSHCertIssuerOutput, null, [{ + _createClass(UpdateTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHCertIssuerOutput} obj Optional instance to populate. - * @return {module:model/UpdateSSHCertIssuerOutput} The populated UpdateSSHCertIssuerOutput instance. + * @param {module:model/UpdateTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateTargetOutput} The populated UpdateTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSSHCertIssuerOutput(); + obj = obj || new UpdateTargetOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } } @@ -119543,20 +197897,20 @@ var UpdateSSHCertIssuerOutput = /*#__PURE__*/function () { } }]); - return UpdateSSHCertIssuerOutput; + return UpdateTargetOutput; }(); /** - * @member {String} name + * @member {Boolean} updated */ -UpdateSSHCertIssuerOutput.prototype['name'] = undefined; -var _default = UpdateSSHCertIssuerOutput; +UpdateTargetOutput.prototype['updated'] = undefined; +var _default = UpdateTargetOutput; exports["default"] = _default; /***/ }), -/***/ 14931: +/***/ 84717: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -119567,7 +197921,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -119578,20 +197932,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSSHTarget model module. - * @module model/UpdateSSHTarget - * @version 3.3.16 + * The UpdateWebTarget model module. + * @module model/UpdateWebTarget + * @version 3.6.3 */ -var UpdateSSHTarget = /*#__PURE__*/function () { +var UpdateWebTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateSSHTarget. - * @alias module:model/UpdateSSHTarget + * Constructs a new UpdateWebTarget. + * @alias module:model/UpdateWebTarget * @param name {String} Target name */ - function UpdateSSHTarget(name) { - _classCallCheck(this, UpdateSSHTarget); + function UpdateWebTarget(name) { + _classCallCheck(this, UpdateWebTarget); - UpdateSSHTarget.initialize(this, name); + UpdateWebTarget.initialize(this, name); } /** * Initializes the fields of this object. @@ -119600,24 +197954,24 @@ var UpdateSSHTarget = /*#__PURE__*/function () { */ - _createClass(UpdateSSHTarget, null, [{ + _createClass(UpdateWebTarget, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateSSHTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateWebTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHTarget} obj Optional instance to populate. - * @return {module:model/UpdateSSHTarget} The populated UpdateSSHTarget instance. + * @param {module:model/UpdateWebTarget} obj Optional instance to populate. + * @return {module:model/UpdateWebTarget} The populated UpdateWebTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSSHTarget(); + obj = obj || new UpdateWebTarget(); if (data.hasOwnProperty('comment')) { obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); @@ -119627,10 +197981,6 @@ var UpdateSSHTarget = /*#__PURE__*/function () { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } @@ -119643,6 +197993,10 @@ var UpdateSSHTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -119651,26 +198005,6 @@ var UpdateSSHTarget = /*#__PURE__*/function () { obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-password')) { - obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -119682,13 +198016,17 @@ var UpdateSSHTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('update-version')) { obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } } return obj; } }]); - return UpdateSSHTarget; + return UpdateWebTarget; }(); /** * Deprecated - use description @@ -119696,105 +198034,80 @@ var UpdateSSHTarget = /*#__PURE__*/function () { */ -UpdateSSHTarget.prototype['comment'] = undefined; +UpdateWebTarget.prototype['comment'] = undefined; /** * Description of the object * @member {String} description */ -UpdateSSHTarget.prototype['description'] = undefined; -/** - * SSH host name - * @member {String} host - */ - -UpdateSSHTarget.prototype['host'] = undefined; +UpdateWebTarget.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateSSHTarget.prototype['json'] = false; +UpdateWebTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateSSHTarget.prototype['keep-prev-version'] = undefined; +UpdateWebTarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateSSHTarget.prototype['key'] = undefined; +UpdateWebTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateWebTarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateSSHTarget.prototype['name'] = undefined; +UpdateWebTarget.prototype['name'] = undefined; /** * New target name * @member {String} new-name */ -UpdateSSHTarget.prototype['new-name'] = undefined; -/** - * SSH port - * @member {String} port - * @default '22' - */ - -UpdateSSHTarget.prototype['port'] = '22'; -/** - * SSH private key - * @member {String} private-key - */ - -UpdateSSHTarget.prototype['private-key'] = undefined; -/** - * SSH private key password - * @member {String} private-key-password - */ - -UpdateSSHTarget.prototype['private-key-password'] = undefined; -/** - * SSH password to rotate - * @member {String} ssh-password - */ - -UpdateSSHTarget.prototype['ssh-password'] = undefined; -/** - * SSH username - * @member {String} ssh-username - */ - -UpdateSSHTarget.prototype['ssh-username'] = undefined; +UpdateWebTarget.prototype['new-name'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateSSHTarget.prototype['token'] = undefined; +UpdateWebTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateSSHTarget.prototype['uid-token'] = undefined; +UpdateWebTarget.prototype['uid-token'] = undefined; /** * Deprecated * @member {Boolean} update-version */ -UpdateSSHTarget.prototype['update-version'] = undefined; -var _default = UpdateSSHTarget; +UpdateWebTarget.prototype['update-version'] = undefined; +/** + * The url + * @member {String} url + */ + +UpdateWebTarget.prototype['url'] = undefined; +var _default = UpdateWebTarget; exports["default"] = _default; /***/ }), -/***/ 34064: +/***/ 48511: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -119805,7 +198118,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -119816,20 +198129,20 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSSHTargetDetails model module. - * @module model/UpdateSSHTargetDetails - * @version 3.3.16 + * The UpdateWebTargetDetails model module. + * @module model/UpdateWebTargetDetails + * @version 3.6.3 */ -var UpdateSSHTargetDetails = /*#__PURE__*/function () { +var UpdateWebTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new UpdateSSHTargetDetails. - * @alias module:model/UpdateSSHTargetDetails + * Constructs a new UpdateWebTargetDetails. + * @alias module:model/UpdateWebTargetDetails * @param name {String} Target name */ - function UpdateSSHTargetDetails(name) { - _classCallCheck(this, UpdateSSHTargetDetails); + function UpdateWebTargetDetails(name) { + _classCallCheck(this, UpdateWebTargetDetails); - UpdateSSHTargetDetails.initialize(this, name); + UpdateWebTargetDetails.initialize(this, name); } /** * Initializes the fields of this object. @@ -119838,28 +198151,24 @@ var UpdateSSHTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateSSHTargetDetails, null, [{ + _createClass(UpdateWebTargetDetails, null, [{ key: "initialize", value: function initialize(obj, name) { obj['name'] = name; } /** - * Constructs a UpdateSSHTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateWebTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateSSHTargetDetails} The populated UpdateSSHTargetDetails instance. + * @param {module:model/UpdateWebTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateWebTargetDetails} The populated UpdateWebTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSSHTargetDetails(); - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } + obj = obj || new UpdateWebTargetDetails(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); @@ -119877,30 +198186,10 @@ var UpdateSSHTargetDetails = /*#__PURE__*/function () { obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); } - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-password')) { - obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); - } - if (data.hasOwnProperty('protection_key')) { obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - if (data.hasOwnProperty('token')) { obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } @@ -119908,101 +198197,73 @@ var UpdateSSHTargetDetails = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } } return obj; } }]); - return UpdateSSHTargetDetails; + return UpdateWebTargetDetails; }(); -/** - * The ssh host name - * @member {String} host - */ - - -UpdateSSHTargetDetails.prototype['host'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateSSHTargetDetails.prototype['json'] = false; + +UpdateWebTargetDetails.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateSSHTargetDetails.prototype['keep-prev-version'] = undefined; +UpdateWebTargetDetails.prototype['keep-prev-version'] = undefined; /** * Target name * @member {String} name */ -UpdateSSHTargetDetails.prototype['name'] = undefined; +UpdateWebTargetDetails.prototype['name'] = undefined; /** * Deprecated * @member {Boolean} new-version */ -UpdateSSHTargetDetails.prototype['new-version'] = undefined; -/** - * ssh port - * @member {String} port - * @default '22' - */ - -UpdateSSHTargetDetails.prototype['port'] = '22'; -/** - * ssh private key - * @member {String} private-key - */ - -UpdateSSHTargetDetails.prototype['private-key'] = undefined; -/** - * The ssh private key password - * @member {String} private-key-password - */ - -UpdateSSHTargetDetails.prototype['private-key-password'] = undefined; +UpdateWebTargetDetails.prototype['new-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} protection_key */ -UpdateSSHTargetDetails.prototype['protection_key'] = undefined; -/** - * ssh pawssword to rotate - * @member {String} ssh-password - */ - -UpdateSSHTargetDetails.prototype['ssh-password'] = undefined; -/** - * ssh username - * @member {String} ssh-username - */ - -UpdateSSHTargetDetails.prototype['ssh-username'] = undefined; +UpdateWebTargetDetails.prototype['protection_key'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateSSHTargetDetails.prototype['token'] = undefined; +UpdateWebTargetDetails.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateSSHTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateSSHTargetDetails; +UpdateWebTargetDetails.prototype['uid-token'] = undefined; +/** + * @member {String} url + */ + +UpdateWebTargetDetails.prototype['url'] = undefined; +var _default = UpdateWebTargetDetails; exports["default"] = _default; /***/ }), -/***/ 49653: +/***/ 52008: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -120013,7 +198274,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -120024,19 +198285,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSSHTargetOutput model module. - * @module model/UpdateSSHTargetOutput - * @version 3.3.16 + * The UpdateWebTargetOutput model module. + * @module model/UpdateWebTargetOutput + * @version 3.6.3 */ -var UpdateSSHTargetOutput = /*#__PURE__*/function () { +var UpdateWebTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateSSHTargetOutput. - * @alias module:model/UpdateSSHTargetOutput + * Constructs a new UpdateWebTargetOutput. + * @alias module:model/UpdateWebTargetOutput */ - function UpdateSSHTargetOutput() { - _classCallCheck(this, UpdateSSHTargetOutput); + function UpdateWebTargetOutput() { + _classCallCheck(this, UpdateWebTargetOutput); - UpdateSSHTargetOutput.initialize(this); + UpdateWebTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -120045,22 +198306,22 @@ var UpdateSSHTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateSSHTargetOutput, null, [{ + _createClass(UpdateWebTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateSSHTargetOutput} The populated UpdateSSHTargetOutput instance. + * @param {module:model/UpdateWebTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateWebTargetOutput} The populated UpdateWebTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSSHTargetOutput(); + obj = obj || new UpdateWebTargetOutput(); if (data.hasOwnProperty('target_id')) { obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); @@ -120071,20 +198332,20 @@ var UpdateSSHTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateSSHTargetOutput; + return UpdateWebTargetOutput; }(); /** * @member {Number} target_id */ -UpdateSSHTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateSSHTargetOutput; +UpdateWebTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateWebTargetOutput; exports["default"] = _default; /***/ }), -/***/ 18896: +/***/ 58670: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -120095,7 +198356,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -120106,24 +198367,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSalesforceTarget model module. - * @module model/UpdateSalesforceTarget - * @version 3.3.16 + * The UpdateWindowsTarget model module. + * @module model/UpdateWindowsTarget + * @version 3.6.3 */ -var UpdateSalesforceTarget = /*#__PURE__*/function () { +var UpdateWindowsTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateSalesforceTarget. - * @alias module:model/UpdateSalesforceTarget - * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') - * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce - * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce + * Constructs a new UpdateWindowsTarget. + * @alias module:model/UpdateWindowsTarget + * @param hostname {String} Server hostname * @param name {String} Target name - * @param tenantUrl {String} Url of the Salesforce tenant + * @param password {String} Privileged user password + * @param username {String} Privileged username */ - function UpdateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { - _classCallCheck(this, UpdateSalesforceTarget); + function UpdateWindowsTarget(hostname, name, password, username) { + _classCallCheck(this, UpdateWindowsTarget); - UpdateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); + UpdateWindowsTarget.initialize(this, hostname, name, password, username); } /** * Initializes the fields of this object. @@ -120132,63 +198392,42 @@ var UpdateSalesforceTarget = /*#__PURE__*/function () { */ - _createClass(UpdateSalesforceTarget, null, [{ + _createClass(UpdateWindowsTarget, null, [{ key: "initialize", - value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { - obj['auth-flow'] = authFlow; - obj['client-id'] = clientId; - obj['email'] = email; + value: function initialize(obj, hostname, name, password, username) { + obj['hostname'] = hostname; obj['name'] = name; - obj['tenant-url'] = tenantUrl; + obj['password'] = password; + obj['username'] = username; } /** - * Constructs a UpdateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateWindowsTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSalesforceTarget} obj Optional instance to populate. - * @return {module:model/UpdateSalesforceTarget} The populated UpdateSalesforceTarget instance. + * @param {module:model/UpdateWindowsTarget} obj Optional instance to populate. + * @return {module:model/UpdateWindowsTarget} The populated UpdateWindowsTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSalesforceTarget(); - - if (data.hasOwnProperty('app-private-key-data')) { - obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); - } - - if (data.hasOwnProperty('auth-flow')) { - obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); - } - - if (data.hasOwnProperty('ca-cert-data')) { - obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); - } - - if (data.hasOwnProperty('ca-cert-name')) { - obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); - } - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } + obj = obj || new UpdateWindowsTarget(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + if (data.hasOwnProperty('domain')) { + obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); + } + + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); } if (data.hasOwnProperty('json')) { @@ -120203,6 +198442,10 @@ var UpdateSalesforceTarget = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -120215,12 +198458,8 @@ var UpdateSalesforceTarget = /*#__PURE__*/function () { obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('security-token')) { - obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); - } - - if (data.hasOwnProperty('tenant-url')) { - obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } if (data.hasOwnProperty('token')) { @@ -120234,224 +198473,134 @@ var UpdateSalesforceTarget = /*#__PURE__*/function () { if (data.hasOwnProperty('update-version')) { obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } + + if (data.hasOwnProperty('use-tls')) { + obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } } return obj; } }]); - return UpdateSalesforceTarget; + return UpdateWindowsTarget; }(); /** - * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) - * @member {String} app-private-key-data - */ - - -UpdateSalesforceTarget.prototype['app-private-key-data'] = undefined; -/** - * type of the auth flow ('jwt' / 'user-password') - * @member {String} auth-flow - */ - -UpdateSalesforceTarget.prototype['auth-flow'] = undefined; -/** - * Base64 encoded PEM cert to use when uploading a new key to Salesforce - * @member {String} ca-cert-data - */ - -UpdateSalesforceTarget.prototype['ca-cert-data'] = undefined; -/** - * name of the certificate in Salesforce tenant to use when uploading new key - * @member {String} ca-cert-name - */ - -UpdateSalesforceTarget.prototype['ca-cert-name'] = undefined; -/** - * Client ID of the oauth2 app to use for connecting to Salesforce - * @member {String} client-id + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} certificate */ -UpdateSalesforceTarget.prototype['client-id'] = undefined; -/** - * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) - * @member {String} client-secret - */ -UpdateSalesforceTarget.prototype['client-secret'] = undefined; +UpdateWindowsTarget.prototype['certificate'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * Description of the object + * @member {String} description */ -UpdateSalesforceTarget.prototype['comment'] = undefined; +UpdateWindowsTarget.prototype['description'] = undefined; /** - * Description of the object - * @member {String} description + * User domain name + * @member {String} domain */ -UpdateSalesforceTarget.prototype['description'] = undefined; +UpdateWindowsTarget.prototype['domain'] = undefined; /** - * The email of the user attached to the oauth2 app used for connecting to Salesforce - * @member {String} email + * Server hostname + * @member {String} hostname */ -UpdateSalesforceTarget.prototype['email'] = undefined; +UpdateWindowsTarget.prototype['hostname'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateSalesforceTarget.prototype['json'] = false; +UpdateWindowsTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateSalesforceTarget.prototype['keep-prev-version'] = undefined; +UpdateWindowsTarget.prototype['keep-prev-version'] = undefined; /** * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateSalesforceTarget.prototype['key'] = undefined; +UpdateWindowsTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateWindowsTarget.prototype['max-versions'] = undefined; /** * Target name * @member {String} name */ -UpdateSalesforceTarget.prototype['name'] = undefined; +UpdateWindowsTarget.prototype['name'] = undefined; /** * New target name * @member {String} new-name */ -UpdateSalesforceTarget.prototype['new-name'] = undefined; +UpdateWindowsTarget.prototype['new-name'] = undefined; /** - * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * Privileged user password * @member {String} password */ -UpdateSalesforceTarget.prototype['password'] = undefined; -/** - * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) - * @member {String} security-token - */ - -UpdateSalesforceTarget.prototype['security-token'] = undefined; +UpdateWindowsTarget.prototype['password'] = undefined; /** - * Url of the Salesforce tenant - * @member {String} tenant-url + * Server WinRM port + * @member {String} port + * @default '5986' */ -UpdateSalesforceTarget.prototype['tenant-url'] = undefined; +UpdateWindowsTarget.prototype['port'] = '5986'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateSalesforceTarget.prototype['token'] = undefined; +UpdateWindowsTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateSalesforceTarget.prototype['uid-token'] = undefined; +UpdateWindowsTarget.prototype['uid-token'] = undefined; /** * Deprecated * @member {Boolean} update-version */ -UpdateSalesforceTarget.prototype['update-version'] = undefined; -var _default = UpdateSalesforceTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 11932: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - +UpdateWindowsTarget.prototype['update-version'] = undefined; /** - * The UpdateSalesforceTargetOutput model module. - * @module model/UpdateSalesforceTargetOutput - * @version 3.3.16 + * Enable/Disable TLS for WinRM over HTTPS [true/false] + * @member {String} use-tls + * @default 'true' */ -var UpdateSalesforceTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSalesforceTargetOutput. - * @alias module:model/UpdateSalesforceTargetOutput - */ - function UpdateSalesforceTargetOutput() { - _classCallCheck(this, UpdateSalesforceTargetOutput); - - UpdateSalesforceTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSalesforceTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSalesforceTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateSalesforceTargetOutput} The populated UpdateSalesforceTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSalesforceTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - return UpdateSalesforceTargetOutput; -}(); +UpdateWindowsTarget.prototype['use-tls'] = 'true'; /** - * @member {Number} target_id + * Privileged username + * @member {String} username */ - -UpdateSalesforceTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateSalesforceTargetOutput; +UpdateWindowsTarget.prototype['username'] = undefined; +var _default = UpdateWindowsTarget; exports["default"] = _default; /***/ }), -/***/ 26227: +/***/ 27571: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -120462,7 +198611,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -120473,21 +198622,24 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSecretVal model module. - * @module model/UpdateSecretVal - * @version 3.3.16 + * The UpdateZeroSSLTarget model module. + * @module model/UpdateZeroSSLTarget + * @version 3.6.3 */ -var UpdateSecretVal = /*#__PURE__*/function () { +var UpdateZeroSSLTarget = /*#__PURE__*/function () { /** - * Constructs a new UpdateSecretVal. - * @alias module:model/UpdateSecretVal - * @param name {String} Secret name - * @param value {String} The secret value (only relevant for type 'generic') + * Constructs a new UpdateZeroSSLTarget. + * @alias module:model/UpdateZeroSSLTarget + * @param apiKey {String} API Key of the ZeroSSLTarget account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service + * @param name {String} Target name */ - function UpdateSecretVal(name, value) { - _classCallCheck(this, UpdateSecretVal); + function UpdateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { + _classCallCheck(this, UpdateZeroSSLTarget); - UpdateSecretVal.initialize(this, name, value); + UpdateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); } /** * Initializes the fields of this object. @@ -120496,38 +198648,59 @@ var UpdateSecretVal = /*#__PURE__*/function () { */ - _createClass(UpdateSecretVal, null, [{ + _createClass(UpdateZeroSSLTarget, null, [{ key: "initialize", - value: function initialize(obj, name, value) { + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; obj['name'] = name; - obj['value'] = value; } /** - * Constructs a UpdateSecretVal from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSecretVal} obj Optional instance to populate. - * @return {module:model/UpdateSecretVal} The populated UpdateSecretVal instance. + * @param {module:model/UpdateZeroSSLTarget} obj Optional instance to populate. + * @return {module:model/UpdateZeroSSLTarget} The populated UpdateZeroSSLTarget instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSecretVal(); + obj = obj || new UpdateZeroSSLTarget(); - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - if (data.hasOwnProperty('custom-field')) { - obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { - 'String': 'String' - }); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (data.hasOwnProperty('inject-url')) { - obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } + + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } + + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } + + if (data.hasOwnProperty('imap-target-email')) { + obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); + } + + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); } if (data.hasOwnProperty('json')) { @@ -120542,20 +198715,20 @@ var UpdateSecretVal = /*#__PURE__*/function () { obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (data.hasOwnProperty('multiline')) { - obj['multiline'] = _ApiClient["default"].convertToType(data['multiline'], 'Boolean'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); } if (data.hasOwnProperty('token')) { @@ -120566,12 +198739,8 @@ var UpdateSecretVal = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } } @@ -120579,101 +198748,126 @@ var UpdateSecretVal = /*#__PURE__*/function () { } }]); - return UpdateSecretVal; + return UpdateZeroSSLTarget; }(); /** - * for personal password manager - * @member {String} accessibility - * @default 'regular' + * API Key of the ZeroSSLTarget account + * @member {String} api-key */ -UpdateSecretVal.prototype['accessibility'] = 'regular'; +UpdateZeroSSLTarget.prototype['api-key'] = undefined; /** - * For Password Management use, additional fields - * @member {Object.} custom-field + * Deprecated - use description + * @member {String} comment */ -UpdateSecretVal.prototype['custom-field'] = undefined; +UpdateZeroSSLTarget.prototype['comment'] = undefined; /** - * For Password Management use, reflect the website context - * @member {Array.} inject-url + * Description of the object + * @member {String} description */ -UpdateSecretVal.prototype['inject-url'] = undefined; +UpdateZeroSSLTarget.prototype['description'] = undefined; +/** + * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @member {String} imap-fqdn + */ + +UpdateZeroSSLTarget.prototype['imap-fqdn'] = undefined; +/** + * ImapPassword to access the IMAP service + * @member {String} imap-password + */ + +UpdateZeroSSLTarget.prototype['imap-password'] = undefined; +/** + * ImapPort of the IMAP service + * @member {String} imap-port + * @default '993' + */ + +UpdateZeroSSLTarget.prototype['imap-port'] = '993'; +/** + * ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username + * @member {String} imap-target-email + */ + +UpdateZeroSSLTarget.prototype['imap-target-email'] = undefined; +/** + * ImapUsername to access the IMAP service + * @member {String} imap-username + */ + +UpdateZeroSSLTarget.prototype['imap-username'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateSecretVal.prototype['json'] = false; +UpdateZeroSSLTarget.prototype['json'] = false; /** * Whether to keep previous version [true/false]. If not set, use default according to account settings * @member {String} keep-prev-version */ -UpdateSecretVal.prototype['keep-prev-version'] = undefined; +UpdateZeroSSLTarget.prototype['keep-prev-version'] = undefined; /** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) * @member {String} key */ -UpdateSecretVal.prototype['key'] = undefined; +UpdateZeroSSLTarget.prototype['key'] = undefined; /** - * The provided value is a multiline value (separated by '\\n') - * @member {Boolean} multiline + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -UpdateSecretVal.prototype['multiline'] = undefined; +UpdateZeroSSLTarget.prototype['max-versions'] = undefined; /** - * Secret name + * Target name * @member {String} name */ -UpdateSecretVal.prototype['name'] = undefined; +UpdateZeroSSLTarget.prototype['name'] = undefined; /** - * Deprecated - * @member {Boolean} new-version + * New target name + * @member {String} new-name */ -UpdateSecretVal.prototype['new-version'] = undefined; +UpdateZeroSSLTarget.prototype['new-name'] = undefined; /** - * For Password Management use, additional fields - * @member {String} password + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' */ -UpdateSecretVal.prototype['password'] = undefined; +UpdateZeroSSLTarget.prototype['timeout'] = '5m'; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateSecretVal.prototype['token'] = undefined; +UpdateZeroSSLTarget.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateSecretVal.prototype['uid-token'] = undefined; -/** - * For Password Management use - * @member {String} username - */ - -UpdateSecretVal.prototype['username'] = undefined; +UpdateZeroSSLTarget.prototype['uid-token'] = undefined; /** - * The secret value (only relevant for type 'generic') - * @member {String} value + * Deprecated + * @member {Boolean} update-version */ -UpdateSecretVal.prototype['value'] = undefined; -var _default = UpdateSecretVal; +UpdateZeroSSLTarget.prototype['update-version'] = undefined; +var _default = UpdateZeroSSLTarget; exports["default"] = _default; /***/ }), -/***/ 18268: +/***/ 12866: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -120684,7 +198878,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -120695,19 +198889,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateSecretValOutput model module. - * @module model/UpdateSecretValOutput - * @version 3.3.16 + * The UpdateZeroSSLTargetOutput model module. + * @module model/UpdateZeroSSLTargetOutput + * @version 3.6.3 */ -var UpdateSecretValOutput = /*#__PURE__*/function () { +var UpdateZeroSSLTargetOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateSecretValOutput. - * @alias module:model/UpdateSecretValOutput + * Constructs a new UpdateZeroSSLTargetOutput. + * @alias module:model/UpdateZeroSSLTargetOutput */ - function UpdateSecretValOutput() { - _classCallCheck(this, UpdateSecretValOutput); + function UpdateZeroSSLTargetOutput() { + _classCallCheck(this, UpdateZeroSSLTargetOutput); - UpdateSecretValOutput.initialize(this); + UpdateZeroSSLTargetOutput.initialize(this); } /** * Initializes the fields of this object. @@ -120716,25 +198910,25 @@ var UpdateSecretValOutput = /*#__PURE__*/function () { */ - _createClass(UpdateSecretValOutput, null, [{ + _createClass(UpdateZeroSSLTargetOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateSecretValOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UpdateZeroSSLTargetOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSecretValOutput} obj Optional instance to populate. - * @return {module:model/UpdateSecretValOutput} The populated UpdateSecretValOutput instance. + * @param {module:model/UpdateZeroSSLTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateZeroSSLTargetOutput} The populated UpdateZeroSSLTargetOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateSecretValOutput(); + obj = obj || new UpdateZeroSSLTargetOutput(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } @@ -120742,20 +198936,20 @@ var UpdateSecretValOutput = /*#__PURE__*/function () { } }]); - return UpdateSecretValOutput; + return UpdateZeroSSLTargetOutput; }(); /** - * @member {String} name + * @member {Number} target_id */ -UpdateSecretValOutput.prototype['name'] = undefined; -var _default = UpdateSecretValOutput; +UpdateZeroSSLTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateZeroSSLTargetOutput; exports["default"] = _default; /***/ }), -/***/ 72265: +/***/ 53084: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -120766,7 +198960,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -120777,20 +198971,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateTarget model module. - * @module model/UpdateTarget - * @version 3.3.16 + * The UploadPKCS12 model module. + * @module model/UploadPKCS12 + * @version 3.6.3 */ -var UpdateTarget = /*#__PURE__*/function () { +var UploadPKCS12 = /*#__PURE__*/function () { /** - * Constructs a new UpdateTarget. - * @alias module:model/UpdateTarget - * @param name {String} Target name + * Constructs a new UploadPKCS12. + * @alias module:model/UploadPKCS12 + * @param _in {String} PKCS#12 input file (private key and certificate only) + * @param name {String} Name of key to be created + * @param passphrase {String} Passphrase to unlock the pkcs#12 bundle */ - function UpdateTarget(name) { - _classCallCheck(this, UpdateTarget); + function UploadPKCS12(_in, name, passphrase) { + _classCallCheck(this, UploadPKCS12); - UpdateTarget.initialize(this, name); + UploadPKCS12.initialize(this, _in, name, passphrase); } /** * Initializes the fields of this object. @@ -120799,43 +198995,65 @@ var UpdateTarget = /*#__PURE__*/function () { */ - _createClass(UpdateTarget, null, [{ + _createClass(UploadPKCS12, null, [{ key: "initialize", - value: function initialize(obj, name) { + value: function initialize(obj, _in, name, passphrase) { + obj['in'] = _in; obj['name'] = name; + obj['passphrase'] = passphrase; } /** - * Constructs a UpdateTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UploadPKCS12 from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTarget} obj Optional instance to populate. - * @return {module:model/UpdateTarget} The populated UpdateTarget instance. + * @param {module:model/UploadPKCS12} obj Optional instance to populate. + * @return {module:model/UploadPKCS12} The populated UploadPKCS12 instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateTarget(); + obj = obj || new UploadPKCS12(); + + if (data.hasOwnProperty('customer-frg-id')) { + obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('in')) { + obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); + } + if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-comment')) { - obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); + if (data.hasOwnProperty('passphrase')) { + obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); } if (data.hasOwnProperty('token')) { @@ -120851,60 +199069,89 @@ var UpdateTarget = /*#__PURE__*/function () { } }]); - return UpdateTarget; + return UploadPKCS12; }(); +/** + * The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment) + * @member {String} customer-frg-id + */ + + +UploadPKCS12.prototype['customer-frg-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +UploadPKCS12.prototype['delete_protection'] = undefined; /** * Description of the object * @member {String} description - * @default 'default_comment' */ +UploadPKCS12.prototype['description'] = undefined; +/** + * PKCS#12 input file (private key and certificate only) + * @member {String} in + */ -UpdateTarget.prototype['description'] = 'default_comment'; +UploadPKCS12.prototype['in'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateTarget.prototype['json'] = false; +UploadPKCS12.prototype['json'] = false; /** - * Target name + * Deprecated - use description + * @member {String} metadata + */ + +UploadPKCS12.prototype['metadata'] = undefined; +/** + * Name of key to be created * @member {String} name */ -UpdateTarget.prototype['name'] = undefined; +UploadPKCS12.prototype['name'] = undefined; /** - * Deprecated - use description - * @member {String} new-comment - * @default 'default_comment' + * Passphrase to unlock the pkcs#12 bundle + * @member {String} passphrase */ -UpdateTarget.prototype['new-comment'] = 'default_comment'; +UploadPKCS12.prototype['passphrase'] = undefined; /** - * New Target name - * @member {String} new-name + * The number of fragments that the item will be split into + * @member {Number} split-level + * @default 3 */ -UpdateTarget.prototype['new-name'] = undefined; +UploadPKCS12.prototype['split-level'] = 3; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +UploadPKCS12.prototype['tag'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateTarget.prototype['token'] = undefined; +UploadPKCS12.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateTarget.prototype['uid-token'] = undefined; -var _default = UpdateTarget; +UploadPKCS12.prototype['uid-token'] = undefined; +var _default = UploadPKCS12; exports["default"] = _default; /***/ }), -/***/ 20882: +/***/ 46795: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -120915,7 +199162,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -120926,19 +199173,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateTargetDetails model module. - * @module model/UpdateTargetDetails - * @version 3.3.16 + * The UploadRSA model module. + * @module model/UploadRSA + * @version 3.6.3 */ -var UpdateTargetDetails = /*#__PURE__*/function () { +var UploadRSA = /*#__PURE__*/function () { /** - * Constructs a new UpdateTargetDetails. - * @alias module:model/UpdateTargetDetails + * Constructs a new UploadRSA. + * @alias module:model/UploadRSA + * @param alg {String} Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] + * @param name {String} Name of key to be created */ - function UpdateTargetDetails() { - _classCallCheck(this, UpdateTargetDetails); + function UploadRSA(alg, name) { + _classCallCheck(this, UploadRSA); - UpdateTargetDetails.initialize(this); + UploadRSA.initialize(this, alg, name); } /** * Initializes the fields of this object. @@ -120947,48 +199196,183 @@ var UpdateTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateTargetDetails, null, [{ + _createClass(UploadRSA, null, [{ key: "initialize", - value: function initialize(obj) {} + value: function initialize(obj, alg, name) { + obj['alg'] = alg; + obj['name'] = name; + } /** - * Constructs a UpdateTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UploadRSA from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateTargetDetails} The populated UpdateTargetDetails instance. + * @param {module:model/UploadRSA} obj Optional instance to populate. + * @return {module:model/UploadRSA} The populated UploadRSA instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateTargetDetails(); + obj = obj || new UploadRSA(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } + + if (data.hasOwnProperty('customer-frg-id')) { + obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('overwrite')) { + obj['overwrite'] = _ApiClient["default"].convertToType(data['overwrite'], 'String'); + } + + if (data.hasOwnProperty('rsa-file-data')) { + obj['rsa-file-data'] = _ApiClient["default"].convertToType(data['rsa-file-data'], 'String'); + } + + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return UploadRSA; +}(); +/** + * Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] + * @member {String} alg + */ + + +UploadRSA.prototype['alg'] = undefined; +/** + * Certificate in a PEM format. + * @member {String} cert-file-data + */ + +UploadRSA.prototype['cert-file-data'] = undefined; +/** + * The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment) + * @member {String} customer-frg-id + */ + +UploadRSA.prototype['customer-frg-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +UploadRSA.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +UploadRSA.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UploadRSA.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +UploadRSA.prototype['metadata'] = undefined; +/** + * Name of key to be created + * @member {String} name + */ + +UploadRSA.prototype['name'] = undefined; +/** + * When the overwrite flag is set, this command will only update an existing key [true/false] + * @member {String} overwrite + * @default 'false' + */ - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - } +UploadRSA.prototype['overwrite'] = 'false'; +/** + * RSA private key data, base64 encoded + * @member {String} rsa-file-data + */ - return obj; - } - }]); +UploadRSA.prototype['rsa-file-data'] = undefined; +/** + * The number of fragments that the item will be split into + * @member {Number} split-level + * @default 3 + */ - return UpdateTargetDetails; -}(); +UploadRSA.prototype['split-level'] = 3; /** - * Set output format to JSON - * @member {Boolean} json - * @default false + * List of the tags attached to this key + * @member {Array.} tag + */ + +UploadRSA.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +UploadRSA.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -UpdateTargetDetails.prototype['json'] = false; -var _default = UpdateTargetDetails; +UploadRSA.prototype['uid-token'] = undefined; +var _default = UploadRSA; exports["default"] = _default; /***/ }), -/***/ 16772: +/***/ 51386: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -120999,7 +199383,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -121010,19 +199394,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateTargetDetailsOutput model module. - * @module model/UpdateTargetDetailsOutput - * @version 3.3.16 + * The UsageEventSetting model module. + * @module model/UsageEventSetting + * @version 3.6.3 */ -var UpdateTargetDetailsOutput = /*#__PURE__*/function () { +var UsageEventSetting = /*#__PURE__*/function () { /** - * Constructs a new UpdateTargetDetailsOutput. - * @alias module:model/UpdateTargetDetailsOutput + * Constructs a new UsageEventSetting. + * @alias module:model/UsageEventSetting */ - function UpdateTargetDetailsOutput() { - _classCallCheck(this, UpdateTargetDetailsOutput); + function UsageEventSetting() { + _classCallCheck(this, UsageEventSetting); - UpdateTargetDetailsOutput.initialize(this); + UsageEventSetting.initialize(this); } /** * Initializes the fields of this object. @@ -121031,25 +199415,33 @@ var UpdateTargetDetailsOutput = /*#__PURE__*/function () { */ - _createClass(UpdateTargetDetailsOutput, null, [{ + _createClass(UsageEventSetting, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UsageEventSetting from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTargetDetailsOutput} obj Optional instance to populate. - * @return {module:model/UpdateTargetDetailsOutput} The populated UpdateTargetDetailsOutput instance. + * @param {module:model/UsageEventSetting} obj Optional instance to populate. + * @return {module:model/UsageEventSetting} The populated UsageEventSetting instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateTargetDetailsOutput(); + obj = obj || new UsageEventSetting(); - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_time')) { + obj['enable_time'] = _ApiClient["default"].convertToType(data['enable_time'], 'Date'); + } + + if (data.hasOwnProperty('interval_by_days')) { + obj['interval_by_days'] = _ApiClient["default"].convertToType(data['interval_by_days'], 'Number'); } } @@ -121057,20 +199449,30 @@ var UpdateTargetDetailsOutput = /*#__PURE__*/function () { } }]); - return UpdateTargetDetailsOutput; + return UsageEventSetting; }(); /** - * @member {Boolean} updated + * @member {Boolean} enable */ -UpdateTargetDetailsOutput.prototype['updated'] = undefined; -var _default = UpdateTargetDetailsOutput; +UsageEventSetting.prototype['enable'] = undefined; +/** + * @member {Date} enable_time + */ + +UsageEventSetting.prototype['enable_time'] = undefined; +/** + * @member {Number} interval_by_days + */ + +UsageEventSetting.prototype['interval_by_days'] = undefined; +var _default = UsageEventSetting; exports["default"] = _default; /***/ }), -/***/ 72514: +/***/ 48362: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -121081,7 +199483,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -121092,19 +199494,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateTargetOutput model module. - * @module model/UpdateTargetOutput - * @version 3.3.16 + * The UsageReportSummary model module. + * @module model/UsageReportSummary + * @version 3.6.3 */ -var UpdateTargetOutput = /*#__PURE__*/function () { +var UsageReportSummary = /*#__PURE__*/function () { /** - * Constructs a new UpdateTargetOutput. - * @alias module:model/UpdateTargetOutput + * Constructs a new UsageReportSummary. + * @alias module:model/UsageReportSummary */ - function UpdateTargetOutput() { - _classCallCheck(this, UpdateTargetOutput); + function UsageReportSummary() { + _classCallCheck(this, UsageReportSummary); - UpdateTargetOutput.initialize(this); + UsageReportSummary.initialize(this); } /** * Initializes the fields of this object. @@ -121113,25 +199515,49 @@ var UpdateTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateTargetOutput, null, [{ + _createClass(UsageReportSummary, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UsageReportSummary from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateTargetOutput} The populated UpdateTargetOutput instance. + * @param {module:model/UsageReportSummary} obj Optional instance to populate. + * @return {module:model/UsageReportSummary} The populated UsageReportSummary instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateTargetOutput(); + obj = obj || new UsageReportSummary(); - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + if (data.hasOwnProperty('clients_by_auth_method_types')) { + obj['clients_by_auth_method_types'] = _ApiClient["default"].convertToType(data['clients_by_auth_method_types'], { + 'String': 'Number' + }); + } + + if (data.hasOwnProperty('product')) { + obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String'); + } + + if (data.hasOwnProperty('secrets_by_types')) { + obj['secrets_by_types'] = _ApiClient["default"].convertToType(data['secrets_by_types'], { + 'String': 'Number' + }); + } + + if (data.hasOwnProperty('time')) { + obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Number'); + } + + if (data.hasOwnProperty('total_clients')) { + obj['total_clients'] = _ApiClient["default"].convertToType(data['total_clients'], 'Number'); + } + + if (data.hasOwnProperty('total_secrets')) { + obj['total_secrets'] = _ApiClient["default"].convertToType(data['total_secrets'], 'Number'); } } @@ -121139,20 +199565,45 @@ var UpdateTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateTargetOutput; + return UsageReportSummary; }(); /** - * @member {Boolean} updated + * @member {Object.} clients_by_auth_method_types */ -UpdateTargetOutput.prototype['updated'] = undefined; -var _default = UpdateTargetOutput; +UsageReportSummary.prototype['clients_by_auth_method_types'] = undefined; +/** + * @member {String} product + */ + +UsageReportSummary.prototype['product'] = undefined; +/** + * @member {Object.} secrets_by_types + */ + +UsageReportSummary.prototype['secrets_by_types'] = undefined; +/** + * @member {Number} time + */ + +UsageReportSummary.prototype['time'] = undefined; +/** + * @member {Number} total_clients + */ + +UsageReportSummary.prototype['total_clients'] = undefined; +/** + * @member {Number} total_secrets + */ + +UsageReportSummary.prototype['total_secrets'] = undefined; +var _default = UsageReportSummary; exports["default"] = _default; /***/ }), -/***/ 4456: +/***/ 65636: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -121163,7 +199614,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -121174,20 +199625,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateWebTarget model module. - * @module model/UpdateWebTarget - * @version 3.3.16 + * The UscCreate model module. + * @module model/UscCreate + * @version 3.6.3 */ -var UpdateWebTarget = /*#__PURE__*/function () { +var UscCreate = /*#__PURE__*/function () { /** - * Constructs a new UpdateWebTarget. - * @alias module:model/UpdateWebTarget - * @param name {String} Target name + * Constructs a new UscCreate. + * uscCreate is a command that creates a new secret in a Universal Secrets Connector + * @alias module:model/UscCreate + * @param secretName {String} Name for the new universal secrets + * @param uscName {String} Name of the Universal Secrets Connector item + * @param value {String} Value of the universal secrets item, either text or base64 encoded binary */ - function UpdateWebTarget(name) { - _classCallCheck(this, UpdateWebTarget); + function UscCreate(secretName, uscName, value) { + _classCallCheck(this, UscCreate); - UpdateWebTarget.initialize(this, name); + UscCreate.initialize(this, secretName, uscName, value); } /** * Initializes the fields of this object. @@ -121196,27 +199650,29 @@ var UpdateWebTarget = /*#__PURE__*/function () { */ - _createClass(UpdateWebTarget, null, [{ + _createClass(UscCreate, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; + value: function initialize(obj, secretName, uscName, value) { + obj['secret-name'] = secretName; + obj['usc-name'] = uscName; + obj['value'] = value; } /** - * Constructs a UpdateWebTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscCreate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWebTarget} obj Optional instance to populate. - * @return {module:model/UpdateWebTarget} The populated UpdateWebTarget instance. + * @param {module:model/UscCreate} obj Optional instance to populate. + * @return {module:model/UscCreate} The populated UscCreate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateWebTarget(); + obj = obj || new UscCreate(); - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + if (data.hasOwnProperty('binary-value')) { + obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); } if (data.hasOwnProperty('description')) { @@ -121227,20 +199683,14 @@ var UpdateWebTarget = /*#__PURE__*/function () { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + if (data.hasOwnProperty('secret-name')) { + obj['secret-name'] = _ApiClient["default"].convertToType(data['secret-name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); } if (data.hasOwnProperty('token')) { @@ -121251,12 +199701,12 @@ var UpdateWebTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + if (data.hasOwnProperty('usc-name')) { + obj['usc-name'] = _ApiClient["default"].convertToType(data['usc-name'], 'String'); } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); } } @@ -121264,82 +199714,70 @@ var UpdateWebTarget = /*#__PURE__*/function () { } }]); - return UpdateWebTarget; + return UscCreate; }(); /** - * Deprecated - use description - * @member {String} comment + * Use this option if the universal secrets value is a base64 encoded binary + * @member {Boolean} binary-value */ -UpdateWebTarget.prototype['comment'] = undefined; +UscCreate.prototype['binary-value'] = undefined; /** - * Description of the object + * Description of the universal secrets * @member {String} description */ -UpdateWebTarget.prototype['description'] = undefined; +UscCreate.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateWebTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateWebTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateWebTarget.prototype['key'] = undefined; +UscCreate.prototype['json'] = false; /** - * Target name - * @member {String} name + * Name for the new universal secrets + * @member {String} secret-name */ -UpdateWebTarget.prototype['name'] = undefined; +UscCreate.prototype['secret-name'] = undefined; /** - * New target name - * @member {String} new-name + * Tags for the universal secrets + * @member {Object.} tags */ -UpdateWebTarget.prototype['new-name'] = undefined; +UscCreate.prototype['tags'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateWebTarget.prototype['token'] = undefined; +UscCreate.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateWebTarget.prototype['uid-token'] = undefined; +UscCreate.prototype['uid-token'] = undefined; /** - * Deprecated - * @member {Boolean} update-version + * Name of the Universal Secrets Connector item + * @member {String} usc-name */ -UpdateWebTarget.prototype['update-version'] = undefined; +UscCreate.prototype['usc-name'] = undefined; /** - * The url - * @member {String} url + * Value of the universal secrets item, either text or base64 encoded binary + * @member {String} value */ -UpdateWebTarget.prototype['url'] = undefined; -var _default = UpdateWebTarget; +UscCreate.prototype['value'] = undefined; +var _default = UscCreate; exports["default"] = _default; /***/ }), -/***/ 72897: +/***/ 82453: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -121350,7 +199788,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -121361,20 +199799,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateWebTargetDetails model module. - * @module model/UpdateWebTargetDetails - * @version 3.3.16 + * The UscCreateSecretOutput model module. + * @module model/UscCreateSecretOutput + * @version 3.6.3 */ -var UpdateWebTargetDetails = /*#__PURE__*/function () { +var UscCreateSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateWebTargetDetails. - * @alias module:model/UpdateWebTargetDetails - * @param name {String} Target name + * Constructs a new UscCreateSecretOutput. + * @alias module:model/UscCreateSecretOutput */ - function UpdateWebTargetDetails(name) { - _classCallCheck(this, UpdateWebTargetDetails); + function UscCreateSecretOutput() { + _classCallCheck(this, UscCreateSecretOutput); - UpdateWebTargetDetails.initialize(this, name); + UscCreateSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -121383,43 +199820,126 @@ var UpdateWebTargetDetails = /*#__PURE__*/function () { */ - _createClass(UpdateWebTargetDetails, null, [{ + _createClass(UscCreateSecretOutput, null, [{ key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a UpdateWebTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscCreateSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWebTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateWebTargetDetails} The populated UpdateWebTargetDetails instance. + * @param {module:model/UscCreateSecretOutput} obj Optional instance to populate. + * @return {module:model/UscCreateSecretOutput} The populated UscCreateSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateWebTargetDetails(); + obj = obj || new UscCreateSecretOutput(); - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + if (data.hasOwnProperty('version_id')) { + obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); } + } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } + return obj; + } + }]); - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + return UscCreateSecretOutput; +}(); +/** + * @member {String} secret_id + */ + + +UscCreateSecretOutput.prototype['secret_id'] = undefined; +/** + * @member {String} version_id + */ + +UscCreateSecretOutput.prototype['version_id'] = undefined; +var _default = UscCreateSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 85003: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UscDelete model module. + * @module model/UscDelete + * @version 3.6.3 + */ +var UscDelete = /*#__PURE__*/function () { + /** + * Constructs a new UscDelete. + * uscDelete is a command that deletes a secret from a Universal Secrets Connector + * @alias module:model/UscDelete + * @param secretId {String} The universal secrets id (or name, for AWS, Azure or K8s targets) to delete + * @param uscName {String} Name of the Universal Secrets Connector item + */ + function UscDelete(secretId, uscName) { + _classCallCheck(this, UscDelete); + + UscDelete.initialize(this, secretId, uscName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UscDelete, null, [{ + key: "initialize", + value: function initialize(obj, secretId, uscName) { + obj['secret-id'] = secretId; + obj['usc-name'] = uscName; + } + /** + * Constructs a UscDelete from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UscDelete} obj Optional instance to populate. + * @return {module:model/UscDelete} The populated UscDelete instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UscDelete(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); } if (data.hasOwnProperty('token')) { @@ -121430,8 +199950,8 @@ var UpdateWebTargetDetails = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + if (data.hasOwnProperty('usc-name')) { + obj['usc-name'] = _ApiClient["default"].convertToType(data['usc-name'], 'String'); } } @@ -121439,7 +199959,7 @@ var UpdateWebTargetDetails = /*#__PURE__*/function () { } }]); - return UpdateWebTargetDetails; + return UscDelete; }(); /** * Set output format to JSON @@ -121448,54 +199968,37 @@ var UpdateWebTargetDetails = /*#__PURE__*/function () { */ -UpdateWebTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateWebTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateWebTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateWebTargetDetails.prototype['new-version'] = undefined; +UscDelete.prototype['json'] = false; /** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key + * The universal secrets id (or name, for AWS, Azure or K8s targets) to delete + * @member {String} secret-id */ -UpdateWebTargetDetails.prototype['protection_key'] = undefined; +UscDelete.prototype['secret-id'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateWebTargetDetails.prototype['token'] = undefined; +UscDelete.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateWebTargetDetails.prototype['uid-token'] = undefined; +UscDelete.prototype['uid-token'] = undefined; /** - * @member {String} url + * Name of the Universal Secrets Connector item + * @member {String} usc-name */ -UpdateWebTargetDetails.prototype['url'] = undefined; -var _default = UpdateWebTargetDetails; +UscDelete.prototype['usc-name'] = undefined; +var _default = UscDelete; exports["default"] = _default; /***/ }), -/***/ 94745: +/***/ 49046: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -121506,7 +200009,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -121517,19 +200020,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateWebTargetOutput model module. - * @module model/UpdateWebTargetOutput - * @version 3.3.16 + * The UscDeleteSecretOutput model module. + * @module model/UscDeleteSecretOutput + * @version 3.6.3 */ -var UpdateWebTargetOutput = /*#__PURE__*/function () { +var UscDeleteSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateWebTargetOutput. - * @alias module:model/UpdateWebTargetOutput + * Constructs a new UscDeleteSecretOutput. + * @alias module:model/UscDeleteSecretOutput */ - function UpdateWebTargetOutput() { - _classCallCheck(this, UpdateWebTargetOutput); + function UscDeleteSecretOutput() { + _classCallCheck(this, UscDeleteSecretOutput); - UpdateWebTargetOutput.initialize(this); + UscDeleteSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -121538,25 +200041,25 @@ var UpdateWebTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateWebTargetOutput, null, [{ + _createClass(UscDeleteSecretOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscDeleteSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWebTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateWebTargetOutput} The populated UpdateWebTargetOutput instance. + * @param {module:model/UscDeleteSecretOutput} obj Optional instance to populate. + * @return {module:model/UscDeleteSecretOutput} The populated UscDeleteSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateWebTargetOutput(); + obj = obj || new UscDeleteSecretOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -121564,20 +200067,20 @@ var UpdateWebTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateWebTargetOutput; + return UscDeleteSecretOutput; }(); /** - * @member {Number} target_id + * @member {String} name */ -UpdateWebTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateWebTargetOutput; +UscDeleteSecretOutput.prototype['name'] = undefined; +var _default = UscDeleteSecretOutput; exports["default"] = _default; /***/ }), -/***/ 25599: +/***/ 92522: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -121588,7 +200091,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -121599,23 +200102,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateWindowsTarget model module. - * @module model/UpdateWindowsTarget - * @version 3.3.16 + * The UscGet model module. + * @module model/UscGet + * @version 3.6.3 */ -var UpdateWindowsTarget = /*#__PURE__*/function () { +var UscGet = /*#__PURE__*/function () { /** - * Constructs a new UpdateWindowsTarget. - * @alias module:model/UpdateWindowsTarget - * @param hostname {String} Server hostname - * @param name {String} Target name - * @param password {String} Privileged user password - * @param username {String} Privileged username + * Constructs a new UscGet. + * uscGet is a command that gets the value and internal details of a secret from a Universal Secrets Connector + * @alias module:model/UscGet + * @param secretId {String} The secret id (or name, for AWS, Azure or K8s targets) to get from the Universal Secrets Connector + * @param uscName {String} Name of the Universal Secrets Connector item */ - function UpdateWindowsTarget(hostname, name, password, username) { - _classCallCheck(this, UpdateWindowsTarget); + function UscGet(secretId, uscName) { + _classCallCheck(this, UscGet); - UpdateWindowsTarget.initialize(this, hostname, name, password, username); + UscGet.initialize(this, secretId, uscName); } /** * Initializes the fields of this object. @@ -121624,70 +200126,32 @@ var UpdateWindowsTarget = /*#__PURE__*/function () { */ - _createClass(UpdateWindowsTarget, null, [{ + _createClass(UscGet, null, [{ key: "initialize", - value: function initialize(obj, hostname, name, password, username) { - obj['hostname'] = hostname; - obj['name'] = name; - obj['password'] = password; - obj['username'] = username; + value: function initialize(obj, secretId, uscName) { + obj['secret-id'] = secretId; + obj['usc-name'] = uscName; } /** - * Constructs a UpdateWindowsTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscGet from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWindowsTarget} obj Optional instance to populate. - * @return {module:model/UpdateWindowsTarget} The populated UpdateWindowsTarget instance. + * @param {module:model/UscGet} obj Optional instance to populate. + * @return {module:model/UscGet} The populated UscGet instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateWindowsTarget(); - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('domain')) { - obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); - } - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); - } + obj = obj || new UscGet(); if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); } if (data.hasOwnProperty('token')) { @@ -121698,16 +200162,8 @@ var UpdateWindowsTarget = /*#__PURE__*/function () { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-tls')) { - obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + if (data.hasOwnProperty('usc-name')) { + obj['usc-name'] = _ApiClient["default"].convertToType(data['usc-name'], 'String'); } } @@ -121715,114 +200171,46 @@ var UpdateWindowsTarget = /*#__PURE__*/function () { } }]); - return UpdateWindowsTarget; + return UscGet; }(); -/** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} certificate - */ - - -UpdateWindowsTarget.prototype['certificate'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateWindowsTarget.prototype['description'] = undefined; -/** - * User domain name - * @member {String} domain - */ - -UpdateWindowsTarget.prototype['domain'] = undefined; -/** - * Server hostname - * @member {String} hostname - */ - -UpdateWindowsTarget.prototype['hostname'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UpdateWindowsTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateWindowsTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateWindowsTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateWindowsTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateWindowsTarget.prototype['new-name'] = undefined; -/** - * Privileged user password - * @member {String} password - */ -UpdateWindowsTarget.prototype['password'] = undefined; +UscGet.prototype['json'] = false; /** - * Server WinRM port - * @member {String} port - * @default '5986' + * The secret id (or name, for AWS, Azure or K8s targets) to get from the Universal Secrets Connector + * @member {String} secret-id */ -UpdateWindowsTarget.prototype['port'] = '5986'; +UscGet.prototype['secret-id'] = undefined; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateWindowsTarget.prototype['token'] = undefined; +UscGet.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateWindowsTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateWindowsTarget.prototype['update-version'] = undefined; -/** - * Enable/Disable TLS for WinRM over HTTPS [true/false] - * @member {String} use-tls - * @default 'true' - */ - -UpdateWindowsTarget.prototype['use-tls'] = 'true'; +UscGet.prototype['uid-token'] = undefined; /** - * Privileged username - * @member {String} username + * Name of the Universal Secrets Connector item + * @member {String} usc-name */ -UpdateWindowsTarget.prototype['username'] = undefined; -var _default = UpdateWindowsTarget; +UscGet.prototype['usc-name'] = undefined; +var _default = UscGet; exports["default"] = _default; /***/ }), -/***/ 16735: +/***/ 40155: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -121833,7 +200221,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -121844,24 +200232,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateZeroSSLTarget model module. - * @module model/UpdateZeroSSLTarget - * @version 3.3.16 + * The UscGetSecretOutput model module. + * @module model/UscGetSecretOutput + * @version 3.6.3 */ -var UpdateZeroSSLTarget = /*#__PURE__*/function () { +var UscGetSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateZeroSSLTarget. - * @alias module:model/UpdateZeroSSLTarget - * @param apiKey {String} API Key of the ZeroSSLTarget account - * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @param imapPassword {String} ImapPassword to access the IMAP service - * @param imapUsername {String} ImapUsername to access the IMAP service - * @param name {String} Target name + * Constructs a new UscGetSecretOutput. + * @alias module:model/UscGetSecretOutput */ - function UpdateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { - _classCallCheck(this, UpdateZeroSSLTarget); + function UscGetSecretOutput() { + _classCallCheck(this, UscGetSecretOutput); - UpdateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); + UscGetSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -121870,95 +200253,37 @@ var UpdateZeroSSLTarget = /*#__PURE__*/function () { */ - _createClass(UpdateZeroSSLTarget, null, [{ + _createClass(UscGetSecretOutput, null, [{ key: "initialize", - value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { - obj['api-key'] = apiKey; - obj['imap-fqdn'] = imapFqdn; - obj['imap-password'] = imapPassword; - obj['imap-username'] = imapUsername; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a UpdateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscGetSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateZeroSSLTarget} obj Optional instance to populate. - * @return {module:model/UpdateZeroSSLTarget} The populated UpdateZeroSSLTarget instance. + * @param {module:model/UscGetSecretOutput} obj Optional instance to populate. + * @return {module:model/UscGetSecretOutput} The populated UscGetSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateZeroSSLTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('imap-fqdn')) { - obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); - } - - if (data.hasOwnProperty('imap-password')) { - obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); - } - - if (data.hasOwnProperty('imap-port')) { - obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); - } - - if (data.hasOwnProperty('imap-target-email')) { - obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); - } - - if (data.hasOwnProperty('imap-username')) { - obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + obj = obj || new UscGetSecretOutput(); - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + if (data.hasOwnProperty('binary_value')) { + obj['binary_value'] = _ApiClient["default"].convertToType(data['binary_value'], 'Boolean'); } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); } } @@ -121966,120 +200291,153 @@ var UpdateZeroSSLTarget = /*#__PURE__*/function () { } }]); - return UpdateZeroSSLTarget; + return UscGetSecretOutput; }(); /** - * API Key of the ZeroSSLTarget account - * @member {String} api-key + * @member {Boolean} binary_value */ -UpdateZeroSSLTarget.prototype['api-key'] = undefined; +UscGetSecretOutput.prototype['binary_value'] = undefined; /** - * Deprecated - use description - * @member {String} comment + * @member {Object} metadata */ -UpdateZeroSSLTarget.prototype['comment'] = undefined; +UscGetSecretOutput.prototype['metadata'] = undefined; /** - * Description of the object - * @member {String} description + * @member {String} name */ -UpdateZeroSSLTarget.prototype['description'] = undefined; +UscGetSecretOutput.prototype['name'] = undefined; /** - * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @member {String} imap-fqdn + * @member {String} value */ -UpdateZeroSSLTarget.prototype['imap-fqdn'] = undefined; -/** - * ImapPassword to access the IMAP service - * @member {String} imap-password - */ +UscGetSecretOutput.prototype['value'] = undefined; +var _default = UscGetSecretOutput; +exports["default"] = _default; -UpdateZeroSSLTarget.prototype['imap-password'] = undefined; -/** - * ImapPort of the IMAP service - * @member {String} imap-port - * @default '993' - */ +/***/ }), -UpdateZeroSSLTarget.prototype['imap-port'] = '993'; -/** - * ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username - * @member {String} imap-target-email - */ +/***/ 40380: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -UpdateZeroSSLTarget.prototype['imap-target-email'] = undefined; -/** - * ImapUsername to access the IMAP service - * @member {String} imap-username - */ +"use strict"; -UpdateZeroSSLTarget.prototype['imap-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ -UpdateZeroSSLTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -UpdateZeroSSLTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -UpdateZeroSSLTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -UpdateZeroSSLTarget.prototype['name'] = undefined; /** - * New target name - * @member {String} new-name + * The UscList model module. + * @module model/UscList + * @version 3.6.3 */ +var UscList = /*#__PURE__*/function () { + /** + * Constructs a new UscList. + * uscList is a command that lists the secrets of a Universal Secrets Connector + * @alias module:model/UscList + * @param uscName {String} Name of the Universal Secrets Connector item + */ + function UscList(uscName) { + _classCallCheck(this, UscList); -UpdateZeroSSLTarget.prototype['new-name'] = undefined; + UscList.initialize(this, uscName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UscList, null, [{ + key: "initialize", + value: function initialize(obj, uscName) { + obj['usc-name'] = uscName; + } + /** + * Constructs a UscList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UscList} obj Optional instance to populate. + * @return {module:model/UscList} The populated UscList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UscList(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('usc-name')) { + obj['usc-name'] = _ApiClient["default"].convertToType(data['usc-name'], 'String'); + } + } + + return obj; + } + }]); + + return UscList; +}(); /** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' + * Set output format to JSON + * @member {Boolean} json + * @default false */ -UpdateZeroSSLTarget.prototype['timeout'] = '5m'; + +UscList.prototype['json'] = false; /** * Authentication token (see `/auth` and `/configure`) * @member {String} token */ -UpdateZeroSSLTarget.prototype['token'] = undefined; +UscList.prototype['token'] = undefined; /** * The universal identity token, Required only for universal_identity authentication * @member {String} uid-token */ -UpdateZeroSSLTarget.prototype['uid-token'] = undefined; +UscList.prototype['uid-token'] = undefined; /** - * Deprecated - * @member {Boolean} update-version + * Name of the Universal Secrets Connector item + * @member {String} usc-name */ -UpdateZeroSSLTarget.prototype['update-version'] = undefined; -var _default = UpdateZeroSSLTarget; +UscList.prototype['usc-name'] = undefined; +var _default = UscList; exports["default"] = _default; /***/ }), -/***/ 20703: +/***/ 66114: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -122090,7 +200448,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _SecretInfo = _interopRequireDefault(__nccwpck_require__(70409)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -122101,19 +200461,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UpdateZeroSSLTargetOutput model module. - * @module model/UpdateZeroSSLTargetOutput - * @version 3.3.16 + * The UscListSecretsOutput model module. + * @module model/UscListSecretsOutput + * @version 3.6.3 */ -var UpdateZeroSSLTargetOutput = /*#__PURE__*/function () { +var UscListSecretsOutput = /*#__PURE__*/function () { /** - * Constructs a new UpdateZeroSSLTargetOutput. - * @alias module:model/UpdateZeroSSLTargetOutput + * Constructs a new UscListSecretsOutput. + * @alias module:model/UscListSecretsOutput */ - function UpdateZeroSSLTargetOutput() { - _classCallCheck(this, UpdateZeroSSLTargetOutput); + function UscListSecretsOutput() { + _classCallCheck(this, UscListSecretsOutput); - UpdateZeroSSLTargetOutput.initialize(this); + UscListSecretsOutput.initialize(this); } /** * Initializes the fields of this object. @@ -122122,25 +200482,25 @@ var UpdateZeroSSLTargetOutput = /*#__PURE__*/function () { */ - _createClass(UpdateZeroSSLTargetOutput, null, [{ + _createClass(UscListSecretsOutput, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a UpdateZeroSSLTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscListSecretsOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateZeroSSLTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateZeroSSLTargetOutput} The populated UpdateZeroSSLTargetOutput instance. + * @param {module:model/UscListSecretsOutput} obj Optional instance to populate. + * @return {module:model/UscListSecretsOutput} The populated UscListSecretsOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UpdateZeroSSLTargetOutput(); + obj = obj || new UscListSecretsOutput(); - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + if (data.hasOwnProperty('secrets_list')) { + obj['secrets_list'] = _ApiClient["default"].convertToType(data['secrets_list'], [_SecretInfo["default"]]); } } @@ -122148,20 +200508,20 @@ var UpdateZeroSSLTargetOutput = /*#__PURE__*/function () { } }]); - return UpdateZeroSSLTargetOutput; + return UscListSecretsOutput; }(); /** - * @member {Number} target_id + * @member {Array.} secrets_list */ -UpdateZeroSSLTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateZeroSSLTargetOutput; +UscListSecretsOutput.prototype['secrets_list'] = undefined; +var _default = UscListSecretsOutput; exports["default"] = _default; /***/ }), -/***/ 46148: +/***/ 16705: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -122172,7 +200532,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -122183,22 +200543,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UploadPKCS12 model module. - * @module model/UploadPKCS12 - * @version 3.3.16 + * The UscUpdate model module. + * @module model/UscUpdate + * @version 3.6.3 */ -var UploadPKCS12 = /*#__PURE__*/function () { +var UscUpdate = /*#__PURE__*/function () { /** - * Constructs a new UploadPKCS12. - * @alias module:model/UploadPKCS12 - * @param _in {String} PKCS#12 input file (private key and certificate only) - * @param name {String} Name of key to be created - * @param passphrase {String} Passphrase to unlock the pkcs#12 bundle + * Constructs a new UscUpdate. + * uscUpdate is a command that updates a secret in a Universal Secrets Connector + * @alias module:model/UscUpdate + * @param secretId {String} The universal secrets id (or name, for AWS, Azure or K8s targets) to update + * @param uscName {String} Name of the Universal Secrets Connector item + * @param value {String} Value of the universal secrets item, either text or base64 encoded binary */ - function UploadPKCS12(_in, name, passphrase) { - _classCallCheck(this, UploadPKCS12); + function UscUpdate(secretId, uscName, value) { + _classCallCheck(this, UscUpdate); - UploadPKCS12.initialize(this, _in, name, passphrase); + UscUpdate.initialize(this, secretId, uscName, value); } /** * Initializes the fields of this object. @@ -122207,65 +200568,47 @@ var UploadPKCS12 = /*#__PURE__*/function () { */ - _createClass(UploadPKCS12, null, [{ + _createClass(UscUpdate, null, [{ key: "initialize", - value: function initialize(obj, _in, name, passphrase) { - obj['in'] = _in; - obj['name'] = name; - obj['passphrase'] = passphrase; + value: function initialize(obj, secretId, uscName, value) { + obj['secret-id'] = secretId; + obj['usc-name'] = uscName; + obj['value'] = value; } /** - * Constructs a UploadPKCS12 from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscUpdate from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UploadPKCS12} obj Optional instance to populate. - * @return {module:model/UploadPKCS12} The populated UploadPKCS12 instance. + * @param {module:model/UscUpdate} obj Optional instance to populate. + * @return {module:model/UscUpdate} The populated UscUpdate instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UploadPKCS12(); - - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); - } + obj = obj || new UscUpdate(); - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + if (data.hasOwnProperty('binary-value')) { + obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (data.hasOwnProperty('in')) { - obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); - } - if (data.hasOwnProperty('json')) { obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('passphrase')) { - obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); - } - - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); } - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); } if (data.hasOwnProperty('token')) { @@ -122275,95 +200618,84 @@ var UploadPKCS12 = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('usc-name')) { + obj['usc-name'] = _ApiClient["default"].convertToType(data['usc-name'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } } return obj; } }]); - return UploadPKCS12; + return UscUpdate; }(); /** - * The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id + * Use this option if the universal secrets value is a base64 encoded binary + * @member {Boolean} binary-value */ -UploadPKCS12.prototype['customer-frg-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UploadPKCS12.prototype['delete_protection'] = undefined; +UscUpdate.prototype['binary-value'] = undefined; /** - * Description of the object + * Description of the universal secrets * @member {String} description */ -UploadPKCS12.prototype['description'] = undefined; -/** - * PKCS#12 input file (private key and certificate only) - * @member {String} in - */ - -UploadPKCS12.prototype['in'] = undefined; +UscUpdate.prototype['description'] = undefined; /** * Set output format to JSON * @member {Boolean} json * @default false */ -UploadPKCS12.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -UploadPKCS12.prototype['metadata'] = undefined; +UscUpdate.prototype['json'] = false; /** - * Name of key to be created - * @member {String} name + * The universal secrets id (or name, for AWS, Azure or K8s targets) to update + * @member {String} secret-id */ -UploadPKCS12.prototype['name'] = undefined; +UscUpdate.prototype['secret-id'] = undefined; /** - * Passphrase to unlock the pkcs#12 bundle - * @member {String} passphrase + * Tags for the universal secrets + * @member {Object.} tags */ -UploadPKCS12.prototype['passphrase'] = undefined; +UscUpdate.prototype['tags'] = undefined; /** - * The number of fragments that the item will be split into - * @member {Number} split-level - * @default 2 + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -UploadPKCS12.prototype['split-level'] = 2; +UscUpdate.prototype['token'] = undefined; /** - * List of the tags attached to this key - * @member {Array.} tag + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -UploadPKCS12.prototype['tag'] = undefined; +UscUpdate.prototype['uid-token'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * Name of the Universal Secrets Connector item + * @member {String} usc-name */ -UploadPKCS12.prototype['token'] = undefined; +UscUpdate.prototype['usc-name'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * Value of the universal secrets item, either text or base64 encoded binary + * @member {String} value */ -UploadPKCS12.prototype['uid-token'] = undefined; -var _default = UploadPKCS12; +UscUpdate.prototype['value'] = undefined; +var _default = UscUpdate; exports["default"] = _default; /***/ }), -/***/ 34990: +/***/ 57540: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -122374,7 +200706,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -122385,21 +200717,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The UploadRSA model module. - * @module model/UploadRSA - * @version 3.3.16 + * The UscUpdateSecretOutput model module. + * @module model/UscUpdateSecretOutput + * @version 3.6.3 */ -var UploadRSA = /*#__PURE__*/function () { +var UscUpdateSecretOutput = /*#__PURE__*/function () { /** - * Constructs a new UploadRSA. - * @alias module:model/UploadRSA - * @param alg {String} Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] - * @param name {String} Name of key to be created + * Constructs a new UscUpdateSecretOutput. + * @alias module:model/UscUpdateSecretOutput */ - function UploadRSA(alg, name) { - _classCallCheck(this, UploadRSA); + function UscUpdateSecretOutput() { + _classCallCheck(this, UscUpdateSecretOutput); - UploadRSA.initialize(this, alg, name); + UscUpdateSecretOutput.initialize(this); } /** * Initializes the fields of this object. @@ -122408,80 +200738,33 @@ var UploadRSA = /*#__PURE__*/function () { */ - _createClass(UploadRSA, null, [{ + _createClass(UscUpdateSecretOutput, null, [{ key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; - obj['name'] = name; - } + value: function initialize(obj) {} /** - * Constructs a UploadRSA from a plain JavaScript object, optionally creating a new instance. + * Constructs a UscUpdateSecretOutput from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UploadRSA} obj Optional instance to populate. - * @return {module:model/UploadRSA} The populated UploadRSA instance. + * @param {module:model/UscUpdateSecretOutput} obj Optional instance to populate. + * @return {module:model/UscUpdateSecretOutput} The populated UscUpdateSecretOutput instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new UploadRSA(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('cert-file-data')) { - obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); - } - - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } + obj = obj || new UscUpdateSecretOutput(); if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('overwrite')) { - obj['overwrite'] = _ApiClient["default"].convertToType(data['overwrite'], 'String'); - } - - if (data.hasOwnProperty('rsa-file-data')) { - obj['rsa-file-data'] = _ApiClient["default"].convertToType(data['rsa-file-data'], 'String'); - } - - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('version_id')) { + obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); } } @@ -122489,102 +200772,30 @@ var UploadRSA = /*#__PURE__*/function () { } }]); - return UploadRSA; + return UscUpdateSecretOutput; }(); /** - * Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] - * @member {String} alg - */ - - -UploadRSA.prototype['alg'] = undefined; -/** - * Certificate in a PEM format. - * @member {String} cert-file-data - */ - -UploadRSA.prototype['cert-file-data'] = undefined; -/** - * The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id - */ - -UploadRSA.prototype['customer-frg-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UploadRSA.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UploadRSA.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UploadRSA.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -UploadRSA.prototype['metadata'] = undefined; -/** - * Name of key to be created * @member {String} name */ -UploadRSA.prototype['name'] = undefined; -/** - * When the overwrite flag is set, this command will only update an existing key [true/false] - * @member {String} overwrite - * @default 'false' - */ - -UploadRSA.prototype['overwrite'] = 'false'; -/** - * RSA private key data, base64 encoded - * @member {String} rsa-file-data - */ - -UploadRSA.prototype['rsa-file-data'] = undefined; -/** - * The number of fragments that the item will be split into - * @member {Number} split-level - * @default 2 - */ - -UploadRSA.prototype['split-level'] = 2; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ -UploadRSA.prototype['tag'] = undefined; +UscUpdateSecretOutput.prototype['name'] = undefined; /** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token + * @member {String} secret_id */ -UploadRSA.prototype['token'] = undefined; +UscUpdateSecretOutput.prototype['secret_id'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} version_id */ -UploadRSA.prototype['uid-token'] = undefined; -var _default = UploadRSA; +UscUpdateSecretOutput.prototype['version_id'] = undefined; +var _default = UscUpdateSecretOutput; exports["default"] = _default; /***/ }), -/***/ 58671: +/***/ 62030: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -122595,7 +200806,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -122608,7 +200819,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The ValidateToken model module. * @module model/ValidateToken - * @version 3.3.16 + * @version 3.6.3 */ var ValidateToken = /*#__PURE__*/function () { /** @@ -122679,7 +200890,7 @@ exports["default"] = _default; /***/ }), -/***/ 56979: +/***/ 14299: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -122690,7 +200901,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -122703,7 +200914,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The ValidateTokenOutput model module. * @module model/ValidateTokenOutput - * @version 3.3.16 + * @version 3.6.3 */ var ValidateTokenOutput = /*#__PURE__*/function () { /** @@ -122779,7 +200990,7 @@ exports["default"] = _default; /***/ }), -/***/ 86598: +/***/ 39123: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -122790,11 +201001,11 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); -var _EmailTokenizerInfo = _interopRequireDefault(__nccwpck_require__(90438)); +var _EmailTokenizerInfo = _interopRequireDefault(__nccwpck_require__(12672)); -var _RegexpTokenizerInfo = _interopRequireDefault(__nccwpck_require__(24746)); +var _RegexpTokenizerInfo = _interopRequireDefault(__nccwpck_require__(43939)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -122807,7 +201018,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The VaultlessTokenizerInfo model module. * @module model/VaultlessTokenizerInfo - * @version 3.3.16 + * @version 3.6.3 */ var VaultlessTokenizerInfo = /*#__PURE__*/function () { /** @@ -122911,7 +201122,7 @@ exports["default"] = _default; /***/ }), -/***/ 95804: +/***/ 35955: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -122922,7 +201133,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -122935,7 +201146,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The VenafiTargetDetails model module. * @module model/VenafiTargetDetails - * @version 3.3.16 + * @version 3.6.3 */ var VenafiTargetDetails = /*#__PURE__*/function () { /** @@ -123067,7 +201278,7 @@ exports["default"] = _default; /***/ }), -/***/ 68973: +/***/ 65575: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -123078,7 +201289,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -123091,7 +201302,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The VerifyDataWithClassicKey model module. * @module model/VerifyDataWithClassicKey - * @version 3.3.16 + * @version 3.6.3 */ var VerifyDataWithClassicKey = /*#__PURE__*/function () { /** @@ -123252,7 +201463,7 @@ exports["default"] = _default; /***/ }), -/***/ 24998: +/***/ 17398: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -123263,7 +201474,187 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The VerifyEcDsa model module. + * @module model/VerifyEcDsa + * @version 3.6.3 + */ +var VerifyEcDsa = /*#__PURE__*/function () { + /** + * Constructs a new VerifyEcDsa. + * verifyEcDsa is a command that verifies an ECDSA signature using a sha hash algorithm matching the key size + * @alias module:model/VerifyEcDsa + * @param message {String} The message to be verified in a base64 format + * @param signature {String} The message's signature + */ + function VerifyEcDsa(message, signature) { + _classCallCheck(this, VerifyEcDsa); + + VerifyEcDsa.initialize(this, message, signature); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(VerifyEcDsa, null, [{ + key: "initialize", + value: function initialize(obj, message, signature) { + obj['message'] = message; + obj['signature'] = signature; + } + /** + * Constructs a VerifyEcDsa from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VerifyEcDsa} obj Optional instance to populate. + * @return {module:model/VerifyEcDsa} The populated VerifyEcDsa instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VerifyEcDsa(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); + } + + if (data.hasOwnProperty('signature')) { + obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return VerifyEcDsa; +}(); +/** + * The display id of the EC key to use for the verification process + * @member {String} display-id + */ + + +VerifyEcDsa.prototype['display-id'] = undefined; +/** + * The item id of the EC key to use for the verification process + * @member {Number} item-id + */ + +VerifyEcDsa.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +VerifyEcDsa.prototype['json'] = false; +/** + * The name of the EC key to use for the verification process + * @member {String} key-name + */ + +VerifyEcDsa.prototype['key-name'] = undefined; +/** + * The message to be verified in a base64 format + * @member {String} message + */ + +VerifyEcDsa.prototype['message'] = undefined; +/** + * Markes that the message is already hashed + * @member {Boolean} prehashed + */ + +VerifyEcDsa.prototype['prehashed'] = undefined; +/** + * The message's signature + * @member {String} signature + */ + +VerifyEcDsa.prototype['signature'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +VerifyEcDsa.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +VerifyEcDsa.prototype['uid-token'] = undefined; +/** + * The version of the key to use for verification + * @member {Number} version + */ + +VerifyEcDsa.prototype['version'] = undefined; +var _default = VerifyEcDsa; +exports["default"] = _default; + +/***/ }), + +/***/ 79430: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -123276,7 +201667,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The VerifyGPG model module. * @module model/VerifyGPG - * @version 3.3.16 + * @version 3.6.3 */ var VerifyGPG = /*#__PURE__*/function () { /** @@ -123411,7 +201802,7 @@ exports["default"] = _default; /***/ }), -/***/ 70967: +/***/ 43858: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -123422,7 +201813,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -123435,7 +201826,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The VerifyJWTOutput model module. * @module model/VerifyJWTOutput - * @version 3.3.16 + * @version 3.6.3 */ var VerifyJWTOutput = /*#__PURE__*/function () { /** @@ -123493,7 +201884,7 @@ exports["default"] = _default; /***/ }), -/***/ 66629: +/***/ 21992: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -123504,7 +201895,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -123517,7 +201908,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The VerifyJWTWithClassicKey model module. * @module model/VerifyJWTWithClassicKey - * @version 3.3.16 + * @version 3.6.3 */ var VerifyJWTWithClassicKey = /*#__PURE__*/function () { /** @@ -123646,7 +202037,7 @@ exports["default"] = _default; /***/ }), -/***/ 52462: +/***/ 72992: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -123657,7 +202048,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -123670,7 +202061,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The VerifyPKCS1 model module. * @module model/VerifyPKCS1 - * @version 3.3.16 + * @version 3.6.3 */ var VerifyPKCS1 = /*#__PURE__*/function () { /** @@ -123717,6 +202108,14 @@ var VerifyPKCS1 = /*#__PURE__*/function () { obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + } + + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); + } + if (data.hasOwnProperty('item-id')) { obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } @@ -123733,6 +202132,10 @@ var VerifyPKCS1 = /*#__PURE__*/function () { obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); } + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); + } + if (data.hasOwnProperty('signature')) { obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); } @@ -123744,6 +202147,10 @@ var VerifyPKCS1 = /*#__PURE__*/function () { if (data.hasOwnProperty('uid-token')) { obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } } return obj; @@ -123759,6 +202166,18 @@ var VerifyPKCS1 = /*#__PURE__*/function () { VerifyPKCS1.prototype['display-id'] = undefined; +/** + * HashFunction defines the hash function (e.g. sha-256) + * @member {String} hash-function + */ + +VerifyPKCS1.prototype['hash-function'] = undefined; +/** + * Select default assumed format for the plaintext message. Currently supported options: [base64] + * @member {String} input-format + */ + +VerifyPKCS1.prototype['input-format'] = undefined; /** * The item id of the key to use in the verification process * @member {Number} item-id @@ -123784,6 +202203,12 @@ VerifyPKCS1.prototype['key-name'] = undefined; */ VerifyPKCS1.prototype['message'] = undefined; +/** + * Markes that the message is already hashed + * @member {Boolean} prehashed + */ + +VerifyPKCS1.prototype['prehashed'] = undefined; /** * The message's signature * @member {String} signature @@ -123802,12 +202227,431 @@ VerifyPKCS1.prototype['token'] = undefined; */ VerifyPKCS1.prototype['uid-token'] = undefined; +/** + * The version of the key to use for verification + * @member {Number} version + */ + +VerifyPKCS1.prototype['version'] = undefined; var _default = VerifyPKCS1; exports["default"] = _default; /***/ }), -/***/ 37523: +/***/ 71173: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The VerifyPKICertOutput model module. + * @module model/VerifyPKICertOutput + * @version 3.6.3 + */ +var VerifyPKICertOutput = /*#__PURE__*/function () { + /** + * Constructs a new VerifyPKICertOutput. + * @alias module:model/VerifyPKICertOutput + */ + function VerifyPKICertOutput() { + _classCallCheck(this, VerifyPKICertOutput); + + VerifyPKICertOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(VerifyPKICertOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a VerifyPKICertOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VerifyPKICertOutput} obj Optional instance to populate. + * @return {module:model/VerifyPKICertOutput} The populated VerifyPKICertOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VerifyPKICertOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return VerifyPKICertOutput; +}(); +/** + * @member {String} result + */ + + +VerifyPKICertOutput.prototype['result'] = undefined; +var _default = VerifyPKICertOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 35815: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The VerifyPKICertWithClassicKey model module. + * @module model/VerifyPKICertWithClassicKey + * @version 3.6.3 + */ +var VerifyPKICertWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new VerifyPKICertWithClassicKey. + * @alias module:model/VerifyPKICertWithClassicKey + * @param displayId {String} The name of the key to use in the verify PKICert process + * @param pkiCert {String} PkiCert + * @param version {Number} classic key version + */ + function VerifyPKICertWithClassicKey(displayId, pkiCert, version) { + _classCallCheck(this, VerifyPKICertWithClassicKey); + + VerifyPKICertWithClassicKey.initialize(this, displayId, pkiCert, version); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(VerifyPKICertWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, displayId, pkiCert, version) { + obj['display-id'] = displayId; + obj['pki-cert'] = pkiCert; + obj['version'] = version; + } + /** + * Constructs a VerifyPKICertWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VerifyPKICertWithClassicKey} obj Optional instance to populate. + * @return {module:model/VerifyPKICertWithClassicKey} The populated VerifyPKICertWithClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VerifyPKICertWithClassicKey(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('pki-cert')) { + obj['pki-cert'] = _ApiClient["default"].convertToType(data['pki-cert'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return VerifyPKICertWithClassicKey; +}(); +/** + * The name of the key to use in the verify PKICert process + * @member {String} display-id + */ + + +VerifyPKICertWithClassicKey.prototype['display-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +VerifyPKICertWithClassicKey.prototype['json'] = false; +/** + * PkiCert + * @member {String} pki-cert + */ + +VerifyPKICertWithClassicKey.prototype['pki-cert'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +VerifyPKICertWithClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +VerifyPKICertWithClassicKey.prototype['uid-token'] = undefined; +/** + * classic key version + * @member {Number} version + */ + +VerifyPKICertWithClassicKey.prototype['version'] = undefined; +var _default = VerifyPKICertWithClassicKey; +exports["default"] = _default; + +/***/ }), + +/***/ 53541: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The VerifyRsaSsaPss model module. + * @module model/VerifyRsaSsaPss + * @version 3.6.3 + */ +var VerifyRsaSsaPss = /*#__PURE__*/function () { + /** + * Constructs a new VerifyRsaSsaPss. + * verifyRsaSsaPss is a command that Verifies an rsassa-pss signature + * @alias module:model/VerifyRsaSsaPss + * @param message {String} The input message to verify in a base64 format + * @param signature {String} The message's signature + */ + function VerifyRsaSsaPss(message, signature) { + _classCallCheck(this, VerifyRsaSsaPss); + + VerifyRsaSsaPss.initialize(this, message, signature); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(VerifyRsaSsaPss, null, [{ + key: "initialize", + value: function initialize(obj, message, signature) { + obj['message'] = message; + obj['signature'] = signature; + } + /** + * Constructs a VerifyRsaSsaPss from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VerifyRsaSsaPss} obj Optional instance to populate. + * @return {module:model/VerifyRsaSsaPss} The populated VerifyRsaSsaPss instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VerifyRsaSsaPss(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); + } + + if (data.hasOwnProperty('signature')) { + obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return VerifyRsaSsaPss; +}(); +/** + * The display id of the RSA key to use in the verification process + * @member {String} display-id + */ + + +VerifyRsaSsaPss.prototype['display-id'] = undefined; +/** + * HashFunction defines the hash function (e.g. sha-256) + * @member {String} hash-function + */ + +VerifyRsaSsaPss.prototype['hash-function'] = undefined; +/** + * The item id of the RSA key to use in the verification process + * @member {Number} item-id + */ + +VerifyRsaSsaPss.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +VerifyRsaSsaPss.prototype['json'] = false; +/** + * The name of the RSA key to use in the verification process + * @member {String} key-name + */ + +VerifyRsaSsaPss.prototype['key-name'] = undefined; +/** + * The input message to verify in a base64 format + * @member {String} message + */ + +VerifyRsaSsaPss.prototype['message'] = undefined; +/** + * Markes that the message is already hashed + * @member {Boolean} prehashed + */ + +VerifyRsaSsaPss.prototype['prehashed'] = undefined; +/** + * The message's signature + * @member {String} signature + */ + +VerifyRsaSsaPss.prototype['signature'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +VerifyRsaSsaPss.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +VerifyRsaSsaPss.prototype['uid-token'] = undefined; +/** + * The version of the key to use for verification + * @member {Number} version + */ + +VerifyRsaSsaPss.prototype['version'] = undefined; +var _default = VerifyRsaSsaPss; +exports["default"] = _default; + +/***/ }), + +/***/ 42279: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -123818,7 +202662,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -123829,19 +202673,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The VerifyPKICertOutput model module. - * @module model/VerifyPKICertOutput - * @version 3.3.16 + * The WebHookNotiForwarderPublicDetails model module. + * @module model/WebHookNotiForwarderPublicDetails + * @version 3.6.3 */ -var VerifyPKICertOutput = /*#__PURE__*/function () { +var WebHookNotiForwarderPublicDetails = /*#__PURE__*/function () { /** - * Constructs a new VerifyPKICertOutput. - * @alias module:model/VerifyPKICertOutput + * Constructs a new WebHookNotiForwarderPublicDetails. + * @alias module:model/WebHookNotiForwarderPublicDetails */ - function VerifyPKICertOutput() { - _classCallCheck(this, VerifyPKICertOutput); + function WebHookNotiForwarderPublicDetails() { + _classCallCheck(this, WebHookNotiForwarderPublicDetails); - VerifyPKICertOutput.initialize(this); + WebHookNotiForwarderPublicDetails.initialize(this); } /** * Initializes the fields of this object. @@ -123850,25 +202694,33 @@ var VerifyPKICertOutput = /*#__PURE__*/function () { */ - _createClass(VerifyPKICertOutput, null, [{ + _createClass(WebHookNotiForwarderPublicDetails, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a VerifyPKICertOutput from a plain JavaScript object, optionally creating a new instance. + * Constructs a WebHookNotiForwarderPublicDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyPKICertOutput} obj Optional instance to populate. - * @return {module:model/VerifyPKICertOutput} The populated VerifyPKICertOutput instance. + * @param {module:model/WebHookNotiForwarderPublicDetails} obj Optional instance to populate. + * @return {module:model/WebHookNotiForwarderPublicDetails} The populated WebHookNotiForwarderPublicDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new VerifyPKICertOutput(); + obj = obj || new WebHookNotiForwarderPublicDetails(); - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + if (data.hasOwnProperty('auth_type')) { + obj['auth_type'] = _ApiClient["default"].convertToType(data['auth_type'], 'String'); + } + + if (data.hasOwnProperty('endpoint_url')) { + obj['endpoint_url'] = _ApiClient["default"].convertToType(data['endpoint_url'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } @@ -123876,20 +202728,31 @@ var VerifyPKICertOutput = /*#__PURE__*/function () { } }]); - return VerifyPKICertOutput; + return WebHookNotiForwarderPublicDetails; }(); /** - * @member {String} result + * @member {String} auth_type */ -VerifyPKICertOutput.prototype['result'] = undefined; -var _default = VerifyPKICertOutput; +WebHookNotiForwarderPublicDetails.prototype['auth_type'] = undefined; +/** + * @member {String} endpoint_url + */ + +WebHookNotiForwarderPublicDetails.prototype['endpoint_url'] = undefined; +/** + * Auth type - User Password + * @member {String} username + */ + +WebHookNotiForwarderPublicDetails.prototype['username'] = undefined; +var _default = WebHookNotiForwarderPublicDetails; exports["default"] = _default; /***/ }), -/***/ 58333: +/***/ 42346: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -123900,7 +202763,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -123911,22 +202774,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The VerifyPKICertWithClassicKey model module. - * @module model/VerifyPKICertWithClassicKey - * @version 3.3.16 + * The WebTargetDetails model module. + * @module model/WebTargetDetails + * @version 3.6.3 */ -var VerifyPKICertWithClassicKey = /*#__PURE__*/function () { +var WebTargetDetails = /*#__PURE__*/function () { /** - * Constructs a new VerifyPKICertWithClassicKey. - * @alias module:model/VerifyPKICertWithClassicKey - * @param displayId {String} The name of the key to use in the verify PKICert process - * @param pkiCert {String} PkiCert - * @param version {Number} classic key version + * Constructs a new WebTargetDetails. + * @alias module:model/WebTargetDetails */ - function VerifyPKICertWithClassicKey(displayId, pkiCert, version) { - _classCallCheck(this, VerifyPKICertWithClassicKey); + function WebTargetDetails() { + _classCallCheck(this, WebTargetDetails); - VerifyPKICertWithClassicKey.initialize(this, displayId, pkiCert, version); + WebTargetDetails.initialize(this); } /** * Initializes the fields of this object. @@ -123935,49 +202795,117 @@ var VerifyPKICertWithClassicKey = /*#__PURE__*/function () { */ - _createClass(VerifyPKICertWithClassicKey, null, [{ + _createClass(WebTargetDetails, null, [{ key: "initialize", - value: function initialize(obj, displayId, pkiCert, version) { - obj['display-id'] = displayId; - obj['pki-cert'] = pkiCert; - obj['version'] = version; - } + value: function initialize(obj) {} /** - * Constructs a VerifyPKICertWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Constructs a WebTargetDetails from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyPKICertWithClassicKey} obj Optional instance to populate. - * @return {module:model/VerifyPKICertWithClassicKey} The populated VerifyPKICertWithClassicKey instance. + * @param {module:model/WebTargetDetails} obj Optional instance to populate. + * @return {module:model/WebTargetDetails} The populated WebTargetDetails instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new VerifyPKICertWithClassicKey(); + obj = obj || new WebTargetDetails(); - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); } + } - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } + return obj; + } + }]); - if (data.hasOwnProperty('pki-cert')) { - obj['pki-cert'] = _ApiClient["default"].convertToType(data['pki-cert'], 'String'); - } + return WebTargetDetails; +}(); +/** + * @member {String} url + */ - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + +WebTargetDetails.prototype['url'] = undefined; +var _default = WebTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 38985: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); + +var _WindowsServiceAttributes = _interopRequireDefault(__nccwpck_require__(71928)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The WindowsService model module. + * @module model/WindowsService + * @version 3.6.3 + */ +var WindowsService = /*#__PURE__*/function () { + /** + * Constructs a new WindowsService. + * @alias module:model/WindowsService + */ + function WindowsService() { + _classCallCheck(this, WindowsService); + + WindowsService.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(WindowsService, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a WindowsService from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WindowsService} obj Optional instance to populate. + * @return {module:model/WindowsService} The populated WindowsService instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new WindowsService(); + + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _WindowsServiceAttributes["default"].constructFromObject(data['attributes']); } - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } } @@ -123985,52 +202913,30 @@ var VerifyPKICertWithClassicKey = /*#__PURE__*/function () { } }]); - return VerifyPKICertWithClassicKey; + return WindowsService; }(); /** - * The name of the key to use in the verify PKICert process - * @member {String} display-id + * @member {module:model/WindowsServiceAttributes} attributes */ -VerifyPKICertWithClassicKey.prototype['display-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -VerifyPKICertWithClassicKey.prototype['json'] = false; -/** - * PkiCert - * @member {String} pki-cert - */ - -VerifyPKICertWithClassicKey.prototype['pki-cert'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -VerifyPKICertWithClassicKey.prototype['token'] = undefined; +WindowsService.prototype['attributes'] = undefined; /** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token + * @member {String} host */ -VerifyPKICertWithClassicKey.prototype['uid-token'] = undefined; +WindowsService.prototype['host'] = undefined; /** - * classic key version - * @member {Number} version + * @member {String} name */ -VerifyPKICertWithClassicKey.prototype['version'] = undefined; -var _default = VerifyPKICertWithClassicKey; +WindowsService.prototype['name'] = undefined; +var _default = WindowsService; exports["default"] = _default; /***/ }), -/***/ 31501: +/***/ 71928: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -124041,7 +202947,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -124052,19 +202958,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The WebTargetDetails model module. - * @module model/WebTargetDetails - * @version 3.3.16 + * The WindowsServiceAttributes model module. + * @module model/WindowsServiceAttributes + * @version 3.6.3 */ -var WebTargetDetails = /*#__PURE__*/function () { +var WindowsServiceAttributes = /*#__PURE__*/function () { /** - * Constructs a new WebTargetDetails. - * @alias module:model/WebTargetDetails + * Constructs a new WindowsServiceAttributes. + * @alias module:model/WindowsServiceAttributes */ - function WebTargetDetails() { - _classCallCheck(this, WebTargetDetails); + function WindowsServiceAttributes() { + _classCallCheck(this, WindowsServiceAttributes); - WebTargetDetails.initialize(this); + WindowsServiceAttributes.initialize(this); } /** * Initializes the fields of this object. @@ -124073,25 +202979,33 @@ var WebTargetDetails = /*#__PURE__*/function () { */ - _createClass(WebTargetDetails, null, [{ + _createClass(WindowsServiceAttributes, null, [{ key: "initialize", value: function initialize(obj) {} /** - * Constructs a WebTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Constructs a WindowsServiceAttributes from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebTargetDetails} obj Optional instance to populate. - * @return {module:model/WebTargetDetails} The populated WebTargetDetails instance. + * @param {module:model/WindowsServiceAttributes} obj Optional instance to populate. + * @return {module:model/WindowsServiceAttributes} The populated WindowsServiceAttributes instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { - obj = obj || new WebTargetDetails(); + obj = obj || new WindowsServiceAttributes(); - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + if (data.hasOwnProperty('connection_type')) { + obj['connection_type'] = _ApiClient["default"].convertToType(data['connection_type'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('use_tls')) { + obj['use_tls'] = _ApiClient["default"].convertToType(data['use_tls'], 'Boolean'); } } @@ -124099,20 +203013,30 @@ var WebTargetDetails = /*#__PURE__*/function () { } }]); - return WebTargetDetails; + return WindowsServiceAttributes; }(); /** - * @member {String} url + * @member {String} connection_type */ -WebTargetDetails.prototype['url'] = undefined; -var _default = WebTargetDetails; +WindowsServiceAttributes.prototype['connection_type'] = undefined; +/** + * @member {String} port + */ + +WindowsServiceAttributes.prototype['port'] = undefined; +/** + * @member {Boolean} use_tls + */ + +WindowsServiceAttributes.prototype['use_tls'] = undefined; +var _default = WindowsServiceAttributes; exports["default"] = _default; /***/ }), -/***/ 96350: +/***/ 66819: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -124123,7 +203047,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -124136,7 +203060,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The WindowsTargetDetails model module. * @module model/WindowsTargetDetails - * @version 3.3.16 + * @version 3.6.3 */ var WindowsTargetDetails = /*#__PURE__*/function () { /** @@ -124249,7 +203173,7 @@ exports["default"] = _default; /***/ }), -/***/ 85153: +/***/ 55208: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -124260,7 +203184,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(__nccwpck_require__(28906)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(80420)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -124273,7 +203197,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d /** * The ZeroSSLTargetDetails model module. * @module model/ZeroSSLTargetDetails - * @version 3.3.16 + * @version 3.6.3 */ var ZeroSSLTargetDetails = /*#__PURE__*/function () { /** @@ -124387,7 +203311,7 @@ exports["default"] = _default; /***/ }), -/***/ 53123: +/***/ 13730: /***/ ((module) => { "use strict"; @@ -124418,20 +203342,20 @@ module.exports = arrify; /***/ }), -/***/ 72479: +/***/ 15181: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { module.exports = { - parallel : __nccwpck_require__(63041), - serial : __nccwpck_require__(13223), - serialOrdered : __nccwpck_require__(38959) + parallel : __nccwpck_require__(25818), + serial : __nccwpck_require__(86893), + serialOrdered : __nccwpck_require__(10552) }; /***/ }), -/***/ 10106: +/***/ 98799: /***/ ((module) => { // API @@ -124467,10 +203391,10 @@ function clean(key) /***/ }), -/***/ 66768: +/***/ 21893: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var defer = __nccwpck_require__(58933); +var defer = __nccwpck_require__(86633); // API module.exports = async; @@ -124508,7 +203432,7 @@ function async(callback) /***/ }), -/***/ 58933: +/***/ 86633: /***/ ((module) => { module.exports = defer; @@ -124541,11 +203465,11 @@ function defer(fn) /***/ }), -/***/ 25854: +/***/ 10183: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var async = __nccwpck_require__(66768) - , abort = __nccwpck_require__(10106) +var async = __nccwpck_require__(21893) + , abort = __nccwpck_require__(98799) ; // API @@ -124623,7 +203547,7 @@ function runJob(iterator, key, item, callback) /***/ }), -/***/ 80511: +/***/ 6216: /***/ ((module) => { // API @@ -124667,11 +203591,11 @@ function state(list, sortMethod) /***/ }), -/***/ 3043: +/***/ 34240: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var abort = __nccwpck_require__(10106) - , async = __nccwpck_require__(66768) +var abort = __nccwpck_require__(98799) + , async = __nccwpck_require__(21893) ; // API @@ -124703,12 +203627,12 @@ function terminator(callback) /***/ }), -/***/ 63041: +/***/ 25818: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var iterate = __nccwpck_require__(25854) - , initState = __nccwpck_require__(80511) - , terminator = __nccwpck_require__(3043) +var iterate = __nccwpck_require__(10183) + , initState = __nccwpck_require__(6216) + , terminator = __nccwpck_require__(34240) ; // Public API @@ -124753,10 +203677,10 @@ function parallel(list, iterator, callback) /***/ }), -/***/ 13223: +/***/ 86893: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var serialOrdered = __nccwpck_require__(38959); +var serialOrdered = __nccwpck_require__(10552); // Public API module.exports = serial; @@ -124777,12 +203701,12 @@ function serial(list, iterator, callback) /***/ }), -/***/ 38959: +/***/ 10552: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var iterate = __nccwpck_require__(25854) - , initState = __nccwpck_require__(80511) - , terminator = __nccwpck_require__(3043) +var iterate = __nccwpck_require__(10183) + , initState = __nccwpck_require__(6216) + , terminator = __nccwpck_require__(34240) ; // Public API @@ -124859,11 +203783,11 @@ function descending(a, b) /***/ }), -/***/ 95937: +/***/ 27862: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -124871,8 +203795,8 @@ apiLoader.services['accessanalyzer'] = {}; AWS.AccessAnalyzer = Service.defineService('accessanalyzer', ['2019-11-01']); Object.defineProperty(apiLoader.services['accessanalyzer'], '2019-11-01', { get: function get() { - var model = __nccwpck_require__(30590); - model.paginators = (__nccwpck_require__(63080)/* .pagination */ .o); + var model = __nccwpck_require__(80204); + model.paginators = (__nccwpck_require__(88104)/* .pagination */ .X); return model; }, enumerable: true, @@ -124884,11 +203808,11 @@ module.exports = AWS.AccessAnalyzer; /***/ }), -/***/ 68520: +/***/ 88395: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -124896,8 +203820,8 @@ apiLoader.services['account'] = {}; AWS.Account = Service.defineService('account', ['2021-02-01']); Object.defineProperty(apiLoader.services['account'], '2021-02-01', { get: function get() { - var model = __nccwpck_require__(36713); - model.paginators = (__nccwpck_require__(52324)/* .pagination */ .o); + var model = __nccwpck_require__(1746); + model.paginators = (__nccwpck_require__(28434)/* .pagination */ .X); return model; }, enumerable: true, @@ -124909,11 +203833,11 @@ module.exports = AWS.Account; /***/ }), -/***/ 67181: +/***/ 13503: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -124921,9 +203845,9 @@ apiLoader.services['acm'] = {}; AWS.ACM = Service.defineService('acm', ['2015-12-08']); Object.defineProperty(apiLoader.services['acm'], '2015-12-08', { get: function get() { - var model = __nccwpck_require__(34662); - model.paginators = (__nccwpck_require__(42680)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(85678)/* .waiters */ .V); + var model = __nccwpck_require__(17145); + model.paginators = (__nccwpck_require__(92483)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(24800)/* .waiters */ .C); return model; }, enumerable: true, @@ -124935,11 +203859,11 @@ module.exports = AWS.ACM; /***/ }), -/***/ 50312: +/***/ 12655: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -124947,9 +203871,9 @@ apiLoader.services['acmpca'] = {}; AWS.ACMPCA = Service.defineService('acmpca', ['2017-08-22']); Object.defineProperty(apiLoader.services['acmpca'], '2017-08-22', { get: function get() { - var model = __nccwpck_require__(33004); - model.paginators = (__nccwpck_require__(21209)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(89217)/* .waiters */ .V); + var model = __nccwpck_require__(62337); + model.paginators = (__nccwpck_require__(10011)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(58232)/* .waiters */ .C); return model; }, enumerable: true, @@ -124961,401 +203885,405 @@ module.exports = AWS.ACMPCA; /***/ }), -/***/ 69134: +/***/ 73443: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['alexaforbusiness'] = {}; -AWS.AlexaForBusiness = Service.defineService('alexaforbusiness', ['2017-11-09']); -Object.defineProperty(apiLoader.services['alexaforbusiness'], '2017-11-09', { - get: function get() { - var model = __nccwpck_require__(69786); - model.paginators = (__nccwpck_require__(21009)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AlexaForBusiness; - +__nccwpck_require__(70141); +module.exports = { + ACM: __nccwpck_require__(13503), + APIGateway: __nccwpck_require__(69548), + ApplicationAutoScaling: __nccwpck_require__(25380), + AppStream: __nccwpck_require__(90891), + AutoScaling: __nccwpck_require__(70540), + Batch: __nccwpck_require__(30496), + Budgets: __nccwpck_require__(6170), + CloudDirectory: __nccwpck_require__(56134), + CloudFormation: __nccwpck_require__(28486), + CloudFront: __nccwpck_require__(9586), + CloudHSM: __nccwpck_require__(35621), + CloudSearch: __nccwpck_require__(28569), + CloudSearchDomain: __nccwpck_require__(81125), + CloudTrail: __nccwpck_require__(62829), + CloudWatch: __nccwpck_require__(26126), + CloudWatchEvents: __nccwpck_require__(32395), + CloudWatchLogs: __nccwpck_require__(51009), + CodeBuild: __nccwpck_require__(67683), + CodeCommit: __nccwpck_require__(94914), + CodeDeploy: __nccwpck_require__(29420), + CodePipeline: __nccwpck_require__(69165), + CognitoIdentity: __nccwpck_require__(60533), + CognitoIdentityServiceProvider: __nccwpck_require__(16671), + CognitoSync: __nccwpck_require__(59120), + ConfigService: __nccwpck_require__(49549), + CUR: __nccwpck_require__(89110), + DataPipeline: __nccwpck_require__(74424), + DeviceFarm: __nccwpck_require__(6108), + DirectConnect: __nccwpck_require__(7117), + DirectoryService: __nccwpck_require__(81960), + Discovery: __nccwpck_require__(9758), + DMS: __nccwpck_require__(98936), + DynamoDB: __nccwpck_require__(28842), + DynamoDBStreams: __nccwpck_require__(71593), + EC2: __nccwpck_require__(24122), + ECR: __nccwpck_require__(8250), + ECS: __nccwpck_require__(78761), + EFS: __nccwpck_require__(64816), + ElastiCache: __nccwpck_require__(52212), + ElasticBeanstalk: __nccwpck_require__(38538), + ELB: __nccwpck_require__(42957), + ELBv2: __nccwpck_require__(61677), + EMR: __nccwpck_require__(22884), + ES: __nccwpck_require__(24554), + ElasticTranscoder: __nccwpck_require__(82524), + Firehose: __nccwpck_require__(91087), + GameLift: __nccwpck_require__(40285), + Glacier: __nccwpck_require__(95477), + Health: __nccwpck_require__(62756), + IAM: __nccwpck_require__(51873), + ImportExport: __nccwpck_require__(38181), + Inspector: __nccwpck_require__(23745), + Iot: __nccwpck_require__(42884), + IotData: __nccwpck_require__(17228), + Kinesis: __nccwpck_require__(85546), + KinesisAnalytics: __nccwpck_require__(51380), + KMS: __nccwpck_require__(74485), + Lambda: __nccwpck_require__(11109), + LexRuntime: __nccwpck_require__(88801), + Lightsail: __nccwpck_require__(35525), + MachineLearning: __nccwpck_require__(28783), + MarketplaceCommerceAnalytics: __nccwpck_require__(72490), + MarketplaceMetering: __nccwpck_require__(25276), + MTurk: __nccwpck_require__(93815), + MobileAnalytics: __nccwpck_require__(89894), + OpsWorks: __nccwpck_require__(9988), + OpsWorksCM: __nccwpck_require__(32832), + Organizations: __nccwpck_require__(44184), + Pinpoint: __nccwpck_require__(45805), + Polly: __nccwpck_require__(58712), + RDS: __nccwpck_require__(64463), + Redshift: __nccwpck_require__(49703), + Rekognition: __nccwpck_require__(40743), + ResourceGroupsTaggingAPI: __nccwpck_require__(86659), + Route53: __nccwpck_require__(23809), + Route53Domains: __nccwpck_require__(73384), + S3: __nccwpck_require__(23512), + S3Control: __nccwpck_require__(90939), + ServiceCatalog: __nccwpck_require__(69064), + SES: __nccwpck_require__(49941), + Shield: __nccwpck_require__(9783), + SimpleDB: __nccwpck_require__(6818), + SMS: __nccwpck_require__(65949), + Snowball: __nccwpck_require__(71648), + SNS: __nccwpck_require__(44758), + SQS: __nccwpck_require__(97761), + SSM: __nccwpck_require__(52541), + StorageGateway: __nccwpck_require__(71367), + StepFunctions: __nccwpck_require__(3891), + STS: __nccwpck_require__(72904), + Support: __nccwpck_require__(26295), + SWF: __nccwpck_require__(3304), + XRay: __nccwpck_require__(58978), + WAF: __nccwpck_require__(71114), + WAFRegional: __nccwpck_require__(98427), + WorkDocs: __nccwpck_require__(21284), + WorkSpaces: __nccwpck_require__(84020), + LexModelBuildingService: __nccwpck_require__(60253), + MarketplaceEntitlementService: __nccwpck_require__(80325), + Athena: __nccwpck_require__(91113), + Greengrass: __nccwpck_require__(3913), + DAX: __nccwpck_require__(7949), + MigrationHub: __nccwpck_require__(17125), + CloudHSMV2: __nccwpck_require__(54597), + Glue: __nccwpck_require__(19731), + Pricing: __nccwpck_require__(61510), + CostExplorer: __nccwpck_require__(78028), + MediaConvert: __nccwpck_require__(3785), + MediaLive: __nccwpck_require__(92658), + MediaPackage: __nccwpck_require__(15202), + MediaStore: __nccwpck_require__(69395), + MediaStoreData: __nccwpck_require__(1691), + AppSync: __nccwpck_require__(72172), + GuardDuty: __nccwpck_require__(7293), + MQ: __nccwpck_require__(72584), + Comprehend: __nccwpck_require__(95893), + IoTJobsDataPlane: __nccwpck_require__(59388), + KinesisVideoArchivedMedia: __nccwpck_require__(39561), + KinesisVideoMedia: __nccwpck_require__(56243), + KinesisVideo: __nccwpck_require__(60615), + SageMakerRuntime: __nccwpck_require__(14402), + SageMaker: __nccwpck_require__(19284), + Translate: __nccwpck_require__(94550), + ResourceGroups: __nccwpck_require__(22758), + Cloud9: __nccwpck_require__(95046), + ServerlessApplicationRepository: __nccwpck_require__(46060), + ServiceDiscovery: __nccwpck_require__(92113), + WorkMail: __nccwpck_require__(25236), + AutoScalingPlans: __nccwpck_require__(34402), + TranscribeService: __nccwpck_require__(44358), + Connect: __nccwpck_require__(61906), + ACMPCA: __nccwpck_require__(12655), + FMS: __nccwpck_require__(23526), + SecretsManager: __nccwpck_require__(85518), + IoTAnalytics: __nccwpck_require__(17382), + IoT1ClickDevicesService: __nccwpck_require__(57147), + IoT1ClickProjects: __nccwpck_require__(91935), + PI: __nccwpck_require__(86277), + Neptune: __nccwpck_require__(54797), + MediaTailor: __nccwpck_require__(53511), + EKS: __nccwpck_require__(56257), + DLM: __nccwpck_require__(96111), + Signer: __nccwpck_require__(544), + Chime: __nccwpck_require__(52588), + PinpointEmail: __nccwpck_require__(76625), + RAM: __nccwpck_require__(38056), + Route53Resolver: __nccwpck_require__(54139), + PinpointSMSVoice: __nccwpck_require__(64484), + QuickSight: __nccwpck_require__(23110), + RDSDataService: __nccwpck_require__(56704), + Amplify: __nccwpck_require__(55980), + DataSync: __nccwpck_require__(341), + RoboMaker: __nccwpck_require__(76280), + Transfer: __nccwpck_require__(9649), + GlobalAccelerator: __nccwpck_require__(56950), + ComprehendMedical: __nccwpck_require__(24898), + KinesisAnalyticsV2: __nccwpck_require__(88544), + MediaConnect: __nccwpck_require__(73572), + FSx: __nccwpck_require__(27317), + SecurityHub: __nccwpck_require__(43933), + AppMesh: __nccwpck_require__(76530), + LicenseManager: __nccwpck_require__(27024), + Kafka: __nccwpck_require__(15277), + ApiGatewayManagementApi: __nccwpck_require__(72651), + ApiGatewayV2: __nccwpck_require__(97048), + DocDB: __nccwpck_require__(91912), + Backup: __nccwpck_require__(244), + WorkLink: __nccwpck_require__(64079), + Textract: __nccwpck_require__(73679), + ManagedBlockchain: __nccwpck_require__(48367), + MediaPackageVod: __nccwpck_require__(10273), + GroundStation: __nccwpck_require__(39189), + IoTThingsGraph: __nccwpck_require__(3045), + IoTEvents: __nccwpck_require__(765), + IoTEventsData: __nccwpck_require__(29309), + Personalize: __nccwpck_require__(49206), + PersonalizeEvents: __nccwpck_require__(68803), + PersonalizeRuntime: __nccwpck_require__(71040), + ApplicationInsights: __nccwpck_require__(80231), + ServiceQuotas: __nccwpck_require__(26726), + EC2InstanceConnect: __nccwpck_require__(32035), + EventBridge: __nccwpck_require__(35777), + LakeFormation: __nccwpck_require__(76894), + ForecastService: __nccwpck_require__(87960), + ForecastQueryService: __nccwpck_require__(34892), + QLDB: __nccwpck_require__(53597), + QLDBSession: __nccwpck_require__(59785), + WorkMailMessageFlow: __nccwpck_require__(69037), + CodeStarNotifications: __nccwpck_require__(31247), + SavingsPlans: __nccwpck_require__(34455), + SSO: __nccwpck_require__(53947), + SSOOIDC: __nccwpck_require__(76630), + MarketplaceCatalog: __nccwpck_require__(20196), + DataExchange: __nccwpck_require__(63551), + SESV2: __nccwpck_require__(53173), + MigrationHubConfig: __nccwpck_require__(11955), + ConnectParticipant: __nccwpck_require__(31429), + AppConfig: __nccwpck_require__(39221), + IoTSecureTunneling: __nccwpck_require__(79919), + WAFV2: __nccwpck_require__(45470), + ElasticInference: __nccwpck_require__(14084), + Imagebuilder: __nccwpck_require__(93614), + Schemas: __nccwpck_require__(82516), + AccessAnalyzer: __nccwpck_require__(27862), + CodeGuruReviewer: __nccwpck_require__(67749), + CodeGuruProfiler: __nccwpck_require__(29115), + ComputeOptimizer: __nccwpck_require__(78002), + FraudDetector: __nccwpck_require__(87344), + Kendra: __nccwpck_require__(23877), + NetworkManager: __nccwpck_require__(87867), + Outposts: __nccwpck_require__(25145), + AugmentedAIRuntime: __nccwpck_require__(80814), + EBS: __nccwpck_require__(45580), + KinesisVideoSignalingChannels: __nccwpck_require__(75227), + Detective: __nccwpck_require__(54367), + CodeStarconnections: __nccwpck_require__(7422), + Synthetics: __nccwpck_require__(87082), + IoTSiteWise: __nccwpck_require__(69587), + Macie2: __nccwpck_require__(69151), + CodeArtifact: __nccwpck_require__(30185), + IVS: __nccwpck_require__(38828), + Braket: __nccwpck_require__(36851), + IdentityStore: __nccwpck_require__(58867), + Appflow: __nccwpck_require__(15187), + RedshiftData: __nccwpck_require__(38095), + SSOAdmin: __nccwpck_require__(54544), + TimestreamQuery: __nccwpck_require__(15279), + TimestreamWrite: __nccwpck_require__(96080), + S3Outposts: __nccwpck_require__(36475), + DataBrew: __nccwpck_require__(24150), + ServiceCatalogAppRegistry: __nccwpck_require__(76422), + NetworkFirewall: __nccwpck_require__(60050), + MWAA: __nccwpck_require__(53004), + AmplifyBackend: __nccwpck_require__(6206), + AppIntegrations: __nccwpck_require__(91268), + ConnectContactLens: __nccwpck_require__(33652), + DevOpsGuru: __nccwpck_require__(59586), + ECRPUBLIC: __nccwpck_require__(47299), + LookoutVision: __nccwpck_require__(45085), + SageMakerFeatureStoreRuntime: __nccwpck_require__(87287), + CustomerProfiles: __nccwpck_require__(36216), + AuditManager: __nccwpck_require__(7132), + EMRcontainers: __nccwpck_require__(98352), + HealthLake: __nccwpck_require__(54195), + SagemakerEdge: __nccwpck_require__(9557), + Amp: __nccwpck_require__(58594), + GreengrassV2: __nccwpck_require__(97905), + IotDeviceAdvisor: __nccwpck_require__(34368), + IoTFleetHub: __nccwpck_require__(62751), + IoTWireless: __nccwpck_require__(79240), + Location: __nccwpck_require__(1881), + WellArchitected: __nccwpck_require__(36354), + LexModelsV2: __nccwpck_require__(84263), + LexRuntimeV2: __nccwpck_require__(46793), + Fis: __nccwpck_require__(90386), + LookoutMetrics: __nccwpck_require__(17724), + Mgn: __nccwpck_require__(97458), + LookoutEquipment: __nccwpck_require__(19421), + Nimble: __nccwpck_require__(43235), + Finspace: __nccwpck_require__(63379), + Finspacedata: __nccwpck_require__(40059), + SSMContacts: __nccwpck_require__(64536), + SSMIncidents: __nccwpck_require__(54862), + ApplicationCostProfiler: __nccwpck_require__(15718), + AppRunner: __nccwpck_require__(57433), + Proton: __nccwpck_require__(79150), + Route53RecoveryCluster: __nccwpck_require__(72674), + Route53RecoveryControlConfig: __nccwpck_require__(35563), + Route53RecoveryReadiness: __nccwpck_require__(73824), + ChimeSDKIdentity: __nccwpck_require__(23156), + ChimeSDKMessaging: __nccwpck_require__(8248), + SnowDeviceManagement: __nccwpck_require__(5620), + MemoryDB: __nccwpck_require__(20627), + OpenSearch: __nccwpck_require__(93494), + KafkaConnect: __nccwpck_require__(61958), + VoiceID: __nccwpck_require__(38075), + Wisdom: __nccwpck_require__(90929), + Account: __nccwpck_require__(88395), + CloudControl: __nccwpck_require__(23808), + Grafana: __nccwpck_require__(84848), + Panorama: __nccwpck_require__(66205), + ChimeSDKMeetings: __nccwpck_require__(4372), + Resiliencehub: __nccwpck_require__(53672), + MigrationHubStrategy: __nccwpck_require__(44576), + AppConfigData: __nccwpck_require__(74997), + Drs: __nccwpck_require__(21935), + MigrationHubRefactorSpaces: __nccwpck_require__(50356), + Evidently: __nccwpck_require__(6416), + Inspector2: __nccwpck_require__(46459), + Rbin: __nccwpck_require__(57073), + RUM: __nccwpck_require__(56236), + BackupGateway: __nccwpck_require__(51444), + IoTTwinMaker: __nccwpck_require__(66564), + WorkSpacesWeb: __nccwpck_require__(45484), + AmplifyUIBuilder: __nccwpck_require__(21567), + Keyspaces: __nccwpck_require__(44640), + Billingconductor: __nccwpck_require__(21674), + PinpointSMSVoiceV2: __nccwpck_require__(81296), + Ivschat: __nccwpck_require__(47522), + ChimeSDKMediaPipelines: __nccwpck_require__(14593), + EMRServerless: __nccwpck_require__(7726), + M2: __nccwpck_require__(26497), + ConnectCampaigns: __nccwpck_require__(44795), + RedshiftServerless: __nccwpck_require__(71126), + RolesAnywhere: __nccwpck_require__(99152), + LicenseManagerUserSubscriptions: __nccwpck_require__(94297), + PrivateNetworks: __nccwpck_require__(10400), + SupportApp: __nccwpck_require__(38176), + ControlTower: __nccwpck_require__(1624), + IoTFleetWise: __nccwpck_require__(58650), + MigrationHubOrchestrator: __nccwpck_require__(21449), + ConnectCases: __nccwpck_require__(20989), + ResourceExplorer2: __nccwpck_require__(94287), + Scheduler: __nccwpck_require__(54861), + ChimeSDKVoice: __nccwpck_require__(326), + SsmSap: __nccwpck_require__(14437), + OAM: __nccwpck_require__(37975), + ARCZonalShift: __nccwpck_require__(70442), + Omics: __nccwpck_require__(66305), + OpenSearchServerless: __nccwpck_require__(90200), + SecurityLake: __nccwpck_require__(56311), + SimSpaceWeaver: __nccwpck_require__(2933), + DocDBElastic: __nccwpck_require__(5549), + SageMakerGeospatial: __nccwpck_require__(60551), + CodeCatalyst: __nccwpck_require__(88232), + Pipes: __nccwpck_require__(84297), + SageMakerMetrics: __nccwpck_require__(84119), + KinesisVideoWebRTCStorage: __nccwpck_require__(40917), + LicenseManagerLinuxSubscriptions: __nccwpck_require__(82146), + KendraRanking: __nccwpck_require__(69243), + CleanRooms: __nccwpck_require__(12309), + CloudTrailData: __nccwpck_require__(97709), + Tnb: __nccwpck_require__(68756), + InternetMonitor: __nccwpck_require__(62181), + IVSRealTime: __nccwpck_require__(63485), + VPCLattice: __nccwpck_require__(74437), + OSIS: __nccwpck_require__(31448), + MediaPackageV2: __nccwpck_require__(35446), + PaymentCryptography: __nccwpck_require__(68448), + PaymentCryptographyData: __nccwpck_require__(69704), + CodeGuruSecurity: __nccwpck_require__(28568), + VerifiedPermissions: __nccwpck_require__(71032), + AppFabric: __nccwpck_require__(45246), + MedicalImaging: __nccwpck_require__(69005), + EntityResolution: __nccwpck_require__(65943), + ManagedBlockchainQuery: __nccwpck_require__(78131), + Neptunedata: __nccwpck_require__(68365), + PcaConnectorAd: __nccwpck_require__(36572), + Bedrock: __nccwpck_require__(61822), + BedrockRuntime: __nccwpck_require__(9832), + DataZone: __nccwpck_require__(52428), + LaunchWizard: __nccwpck_require__(25858), + TrustedAdvisor: __nccwpck_require__(90163), + InspectorScan: __nccwpck_require__(73920), + BCMDataExports: __nccwpck_require__(37607), + CostOptimizationHub: __nccwpck_require__(89891), + EKSAuth: __nccwpck_require__(65299), + FreeTier: __nccwpck_require__(2312), + Repostspace: __nccwpck_require__(40291), + WorkSpacesThinClient: __nccwpck_require__(52636), + B2bi: __nccwpck_require__(59691), + BedrockAgent: __nccwpck_require__(44801), + BedrockAgentRuntime: __nccwpck_require__(88633), + QBusiness: __nccwpck_require__(89721), + QConnect: __nccwpck_require__(10637), + CleanRoomsML: __nccwpck_require__(5224), + MarketplaceAgreement: __nccwpck_require__(92848), + MarketplaceDeployment: __nccwpck_require__(10356), + NetworkMonitor: __nccwpck_require__(41842), + SupplyChain: __nccwpck_require__(8096), + Artifact: __nccwpck_require__(3696), + Chatbot: __nccwpck_require__(32615), + TimestreamInfluxDB: __nccwpck_require__(98809), + CodeConnections: __nccwpck_require__(8670), + Deadline: __nccwpck_require__(65638), + ControlCatalog: __nccwpck_require__(30014), + Route53Profiles: __nccwpck_require__(14183), + MailManager: __nccwpck_require__(64582), + TaxSettings: __nccwpck_require__(42375), + ApplicationSignals: __nccwpck_require__(96625), + PcaConnectorScep: __nccwpck_require__(16870), + AppTest: __nccwpck_require__(48487), + QApps: __nccwpck_require__(12963), + SSMQuickSetup: __nccwpck_require__(20601), + PCS: __nccwpck_require__(59614) +}; /***/ }), -/***/ 27574: +/***/ 58594: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -module.exports = { - ACM: __nccwpck_require__(67181), - APIGateway: __nccwpck_require__(41219), - ApplicationAutoScaling: __nccwpck_require__(28929), - AppStream: __nccwpck_require__(96328), - AutoScaling: __nccwpck_require__(60669), - Batch: __nccwpck_require__(31591), - Budgets: __nccwpck_require__(53837), - CloudDirectory: __nccwpck_require__(71491), - CloudFormation: __nccwpck_require__(26186), - CloudFront: __nccwpck_require__(28449), - CloudHSM: __nccwpck_require__(65577), - CloudSearch: __nccwpck_require__(44714), - CloudSearchDomain: __nccwpck_require__(81342), - CloudTrail: __nccwpck_require__(28633), - CloudWatch: __nccwpck_require__(50287), - CloudWatchEvents: __nccwpck_require__(12361), - CloudWatchLogs: __nccwpck_require__(20357), - CodeBuild: __nccwpck_require__(9509), - CodeCommit: __nccwpck_require__(52136), - CodeDeploy: __nccwpck_require__(71972), - CodePipeline: __nccwpck_require__(73487), - CognitoIdentity: __nccwpck_require__(25361), - CognitoIdentityServiceProvider: __nccwpck_require__(10830), - CognitoSync: __nccwpck_require__(26555), - ConfigService: __nccwpck_require__(82980), - CUR: __nccwpck_require__(24604), - DataPipeline: __nccwpck_require__(48413), - DeviceFarm: __nccwpck_require__(52479), - DirectConnect: __nccwpck_require__(67884), - DirectoryService: __nccwpck_require__(24855), - Discovery: __nccwpck_require__(28622), - DMS: __nccwpck_require__(76392), - DynamoDB: __nccwpck_require__(32517), - DynamoDBStreams: __nccwpck_require__(13590), - EC2: __nccwpck_require__(47886), - ECR: __nccwpck_require__(69107), - ECS: __nccwpck_require__(58154), - EFS: __nccwpck_require__(64787), - ElastiCache: __nccwpck_require__(75959), - ElasticBeanstalk: __nccwpck_require__(73740), - ELB: __nccwpck_require__(54147), - ELBv2: __nccwpck_require__(80764), - EMR: __nccwpck_require__(96867), - ES: __nccwpck_require__(62477), - ElasticTranscoder: __nccwpck_require__(49608), - Firehose: __nccwpck_require__(20816), - GameLift: __nccwpck_require__(66358), - Glacier: __nccwpck_require__(12460), - Health: __nccwpck_require__(71045), - IAM: __nccwpck_require__(21246), - ImportExport: __nccwpck_require__(95801), - Inspector: __nccwpck_require__(48983), - Iot: __nccwpck_require__(19243), - IotData: __nccwpck_require__(28646), - Kinesis: __nccwpck_require__(98700), - KinesisAnalytics: __nccwpck_require__(26685), - KMS: __nccwpck_require__(86783), - Lambda: __nccwpck_require__(42012), - LexRuntime: __nccwpck_require__(58781), - Lightsail: __nccwpck_require__(96422), - MachineLearning: __nccwpck_require__(78176), - MarketplaceCommerceAnalytics: __nccwpck_require__(65846), - MarketplaceMetering: __nccwpck_require__(34580), - MTurk: __nccwpck_require__(15858), - MobileAnalytics: __nccwpck_require__(2503), - OpsWorks: __nccwpck_require__(95716), - OpsWorksCM: __nccwpck_require__(27535), - Organizations: __nccwpck_require__(3334), - Pinpoint: __nccwpck_require__(2039), - Polly: __nccwpck_require__(19777), - RDS: __nccwpck_require__(88854), - Redshift: __nccwpck_require__(89678), - Rekognition: __nccwpck_require__(12972), - ResourceGroupsTaggingAPI: __nccwpck_require__(30124), - Route53: __nccwpck_require__(7808), - Route53Domains: __nccwpck_require__(73322), - S3: __nccwpck_require__(94692), - S3Control: __nccwpck_require__(68987), - ServiceCatalog: __nccwpck_require__(14058), - SES: __nccwpck_require__(93850), - Shield: __nccwpck_require__(55682), - SimpleDB: __nccwpck_require__(3073), - SMS: __nccwpck_require__(92974), - Snowball: __nccwpck_require__(50963), - SNS: __nccwpck_require__(23866), - SQS: __nccwpck_require__(90946), - SSM: __nccwpck_require__(95289), - StorageGateway: __nccwpck_require__(19361), - StepFunctions: __nccwpck_require__(36450), - STS: __nccwpck_require__(72787), - Support: __nccwpck_require__(69509), - SWF: __nccwpck_require__(47541), - XRay: __nccwpck_require__(39860), - WAF: __nccwpck_require__(8153), - WAFRegional: __nccwpck_require__(38749), - WorkDocs: __nccwpck_require__(83645), - WorkSpaces: __nccwpck_require__(31740), - CodeStar: __nccwpck_require__(8495), - LexModelBuildingService: __nccwpck_require__(46003), - MarketplaceEntitlementService: __nccwpck_require__(39866), - Athena: __nccwpck_require__(37423), - Greengrass: __nccwpck_require__(78784), - DAX: __nccwpck_require__(37585), - MigrationHub: __nccwpck_require__(59675), - CloudHSMV2: __nccwpck_require__(99748), - Glue: __nccwpck_require__(3511), - Mobile: __nccwpck_require__(79442), - Pricing: __nccwpck_require__(34686), - CostExplorer: __nccwpck_require__(51147), - MediaConvert: __nccwpck_require__(55775), - MediaLive: __nccwpck_require__(39918), - MediaPackage: __nccwpck_require__(54584), - MediaStore: __nccwpck_require__(91242), - MediaStoreData: __nccwpck_require__(2171), - AppSync: __nccwpck_require__(78720), - GuardDuty: __nccwpck_require__(9126), - MQ: __nccwpck_require__(18858), - Comprehend: __nccwpck_require__(62250), - IoTJobsDataPlane: __nccwpck_require__(24702), - KinesisVideoArchivedMedia: __nccwpck_require__(48780), - KinesisVideoMedia: __nccwpck_require__(17345), - KinesisVideo: __nccwpck_require__(43095), - SageMakerRuntime: __nccwpck_require__(26203), - SageMaker: __nccwpck_require__(29503), - Translate: __nccwpck_require__(16307), - ResourceGroups: __nccwpck_require__(83040), - AlexaForBusiness: __nccwpck_require__(69134), - Cloud9: __nccwpck_require__(18517), - ServerlessApplicationRepository: __nccwpck_require__(68965), - ServiceDiscovery: __nccwpck_require__(88907), - WorkMail: __nccwpck_require__(78046), - AutoScalingPlans: __nccwpck_require__(11399), - TranscribeService: __nccwpck_require__(20500), - Connect: __nccwpck_require__(750), - ACMPCA: __nccwpck_require__(50312), - FMS: __nccwpck_require__(50430), - SecretsManager: __nccwpck_require__(27803), - IoTAnalytics: __nccwpck_require__(26401), - IoT1ClickDevicesService: __nccwpck_require__(37872), - IoT1ClickProjects: __nccwpck_require__(25171), - PI: __nccwpck_require__(90761), - Neptune: __nccwpck_require__(31196), - MediaTailor: __nccwpck_require__(21705), - EKS: __nccwpck_require__(10756), - Macie: __nccwpck_require__(8756), - DLM: __nccwpck_require__(11711), - Signer: __nccwpck_require__(62049), - Chime: __nccwpck_require__(44573), - PinpointEmail: __nccwpck_require__(32629), - RAM: __nccwpck_require__(20678), - Route53Resolver: __nccwpck_require__(4772), - PinpointSMSVoice: __nccwpck_require__(63666), - QuickSight: __nccwpck_require__(61159), - RDSDataService: __nccwpck_require__(41099), - Amplify: __nccwpck_require__(14893), - DataSync: __nccwpck_require__(71266), - RoboMaker: __nccwpck_require__(65011), - Transfer: __nccwpck_require__(2205), - GlobalAccelerator: __nccwpck_require__(88628), - ComprehendMedical: __nccwpck_require__(41293), - KinesisAnalyticsV2: __nccwpck_require__(58515), - MediaConnect: __nccwpck_require__(93171), - FSx: __nccwpck_require__(8765), - SecurityHub: __nccwpck_require__(20657), - AppMesh: __nccwpck_require__(94804), - LicenseManager: __nccwpck_require__(92870), - Kafka: __nccwpck_require__(26851), - ApiGatewayManagementApi: __nccwpck_require__(65207), - ApiGatewayV2: __nccwpck_require__(72774), - DocDB: __nccwpck_require__(37999), - Backup: __nccwpck_require__(67248), - WorkLink: __nccwpck_require__(49330), - Textract: __nccwpck_require__(34163), - ManagedBlockchain: __nccwpck_require__(96114), - MediaPackageVod: __nccwpck_require__(29568), - GroundStation: __nccwpck_require__(56399), - IoTThingsGraph: __nccwpck_require__(51160), - IoTEvents: __nccwpck_require__(15935), - IoTEventsData: __nccwpck_require__(68717), - Personalize: __nccwpck_require__(64396), - PersonalizeEvents: __nccwpck_require__(4359), - PersonalizeRuntime: __nccwpck_require__(33973), - ApplicationInsights: __nccwpck_require__(12824), - ServiceQuotas: __nccwpck_require__(48235), - EC2InstanceConnect: __nccwpck_require__(87712), - EventBridge: __nccwpck_require__(32018), - LakeFormation: __nccwpck_require__(28658), - ForecastService: __nccwpck_require__(93884), - ForecastQueryService: __nccwpck_require__(50630), - QLDB: __nccwpck_require__(8038), - QLDBSession: __nccwpck_require__(1938), - WorkMailMessageFlow: __nccwpck_require__(93565), - CodeStarNotifications: __nccwpck_require__(42726), - SavingsPlans: __nccwpck_require__(29318), - SSO: __nccwpck_require__(26290), - SSOOIDC: __nccwpck_require__(35997), - MarketplaceCatalog: __nccwpck_require__(76804), - DataExchange: __nccwpck_require__(10325), - SESV2: __nccwpck_require__(5600), - MigrationHubConfig: __nccwpck_require__(4936), - ConnectParticipant: __nccwpck_require__(5760), - AppConfig: __nccwpck_require__(26623), - IoTSecureTunneling: __nccwpck_require__(23949), - WAFV2: __nccwpck_require__(50382), - ElasticInference: __nccwpck_require__(6857), - Imagebuilder: __nccwpck_require__(72450), - Schemas: __nccwpck_require__(1830), - AccessAnalyzer: __nccwpck_require__(95937), - CodeGuruReviewer: __nccwpck_require__(37029), - CodeGuruProfiler: __nccwpck_require__(15692), - ComputeOptimizer: __nccwpck_require__(70325), - FraudDetector: __nccwpck_require__(21684), - Kendra: __nccwpck_require__(51962), - NetworkManager: __nccwpck_require__(58605), - Outposts: __nccwpck_require__(64948), - AugmentedAIRuntime: __nccwpck_require__(86407), - EBS: __nccwpck_require__(24790), - KinesisVideoSignalingChannels: __nccwpck_require__(93470), - Detective: __nccwpck_require__(89455), - CodeStarconnections: __nccwpck_require__(29044), - Synthetics: __nccwpck_require__(45382), - IoTSiteWise: __nccwpck_require__(27164), - Macie2: __nccwpck_require__(11243), - CodeArtifact: __nccwpck_require__(8167), - Honeycode: __nccwpck_require__(38397), - IVS: __nccwpck_require__(70017), - Braket: __nccwpck_require__(46022), - IdentityStore: __nccwpck_require__(71246), - Appflow: __nccwpck_require__(2498), - RedshiftData: __nccwpck_require__(9900), - SSOAdmin: __nccwpck_require__(40676), - TimestreamQuery: __nccwpck_require__(5924), - TimestreamWrite: __nccwpck_require__(6487), - S3Outposts: __nccwpck_require__(57156), - DataBrew: __nccwpck_require__(50380), - ServiceCatalogAppRegistry: __nccwpck_require__(7269), - NetworkFirewall: __nccwpck_require__(77821), - MWAA: __nccwpck_require__(50645), - AmplifyBackend: __nccwpck_require__(28859), - AppIntegrations: __nccwpck_require__(32543), - ConnectContactLens: __nccwpck_require__(91660), - DevOpsGuru: __nccwpck_require__(54955), - ECRPUBLIC: __nccwpck_require__(46774), - LookoutVision: __nccwpck_require__(33424), - SageMakerFeatureStoreRuntime: __nccwpck_require__(38639), - CustomerProfiles: __nccwpck_require__(14651), - AuditManager: __nccwpck_require__(79653), - EMRcontainers: __nccwpck_require__(74406), - HealthLake: __nccwpck_require__(45608), - SagemakerEdge: __nccwpck_require__(84711), - Amp: __nccwpck_require__(69094), - GreengrassV2: __nccwpck_require__(22689), - IotDeviceAdvisor: __nccwpck_require__(57686), - IoTFleetHub: __nccwpck_require__(77127), - IoTWireless: __nccwpck_require__(99798), - Location: __nccwpck_require__(98717), - WellArchitected: __nccwpck_require__(93852), - LexModelsV2: __nccwpck_require__(22227), - LexRuntimeV2: __nccwpck_require__(3529), - Fis: __nccwpck_require__(50249), - LookoutMetrics: __nccwpck_require__(79003), - Mgn: __nccwpck_require__(24013), - LookoutEquipment: __nccwpck_require__(37240), - Nimble: __nccwpck_require__(23261), - Finspace: __nccwpck_require__(18405), - Finspacedata: __nccwpck_require__(91717), - SSMContacts: __nccwpck_require__(18942), - SSMIncidents: __nccwpck_require__(41448), - ApplicationCostProfiler: __nccwpck_require__(42738), - AppRunner: __nccwpck_require__(65901), - Proton: __nccwpck_require__(53491), - Route53RecoveryCluster: __nccwpck_require__(69323), - Route53RecoveryControlConfig: __nccwpck_require__(68963), - Route53RecoveryReadiness: __nccwpck_require__(84835), - ChimeSDKIdentity: __nccwpck_require__(15132), - ChimeSDKMessaging: __nccwpck_require__(48392), - SnowDeviceManagement: __nccwpck_require__(97161), - MemoryDB: __nccwpck_require__(69366), - OpenSearch: __nccwpck_require__(54656), - KafkaConnect: __nccwpck_require__(40557), - VoiceID: __nccwpck_require__(1812), - Wisdom: __nccwpck_require__(88374), - Account: __nccwpck_require__(68520), - CloudControl: __nccwpck_require__(50571), - Grafana: __nccwpck_require__(65764), - Panorama: __nccwpck_require__(11472), - ChimeSDKMeetings: __nccwpck_require__(72460), - Resiliencehub: __nccwpck_require__(91422), - MigrationHubStrategy: __nccwpck_require__(69492), - AppConfigData: __nccwpck_require__(36869), - Drs: __nccwpck_require__(95524), - MigrationHubRefactorSpaces: __nccwpck_require__(49145), - Evidently: __nccwpck_require__(79041), - Inspector2: __nccwpck_require__(72161), - Rbin: __nccwpck_require__(13485), - RUM: __nccwpck_require__(86253), - BackupGateway: __nccwpck_require__(655), - IoTTwinMaker: __nccwpck_require__(79238), - WorkSpacesWeb: __nccwpck_require__(70343), - AmplifyUIBuilder: __nccwpck_require__(35759), - Keyspaces: __nccwpck_require__(97127), - Billingconductor: __nccwpck_require__(35946), - GameSparks: __nccwpck_require__(32192), - PinpointSMSVoiceV2: __nccwpck_require__(95826), - Ivschat: __nccwpck_require__(46378), - ChimeSDKMediaPipelines: __nccwpck_require__(47469), - EMRServerless: __nccwpck_require__(93969), - M2: __nccwpck_require__(84112), - ConnectCampaigns: __nccwpck_require__(69668), - RedshiftServerless: __nccwpck_require__(46302), - RolesAnywhere: __nccwpck_require__(48271), - LicenseManagerUserSubscriptions: __nccwpck_require__(68620), - BackupStorage: __nccwpck_require__(3571), - PrivateNetworks: __nccwpck_require__(63168), - SupportApp: __nccwpck_require__(56126), - ControlTower: __nccwpck_require__(25846), - IoTFleetWise: __nccwpck_require__(70678), - MigrationHubOrchestrator: __nccwpck_require__(42963), - ConnectCases: __nccwpck_require__(95360), - ResourceExplorer2: __nccwpck_require__(86957), - Scheduler: __nccwpck_require__(22518), - ChimeSDKVoice: __nccwpck_require__(75241), - IoTRoboRunner: __nccwpck_require__(85131), - SsmSap: __nccwpck_require__(59269), - OAM: __nccwpck_require__(11563), - ARCZonalShift: __nccwpck_require__(98946), - Omics: __nccwpck_require__(38852), - OpenSearchServerless: __nccwpck_require__(34305), - SecurityLake: __nccwpck_require__(59534), - SimSpaceWeaver: __nccwpck_require__(19216), - DocDBElastic: __nccwpck_require__(80550), - SageMakerGeospatial: __nccwpck_require__(97800), - CodeCatalyst: __nccwpck_require__(85341), - Pipes: __nccwpck_require__(74673), - SageMakerMetrics: __nccwpck_require__(36966), - KinesisVideoWebRTCStorage: __nccwpck_require__(62300), - LicenseManagerLinuxSubscriptions: __nccwpck_require__(62867), - KendraRanking: __nccwpck_require__(17532), - CleanRooms: __nccwpck_require__(78450), - CloudTrailData: __nccwpck_require__(50355), - Tnb: __nccwpck_require__(63374), - InternetMonitor: __nccwpck_require__(92925), - IVSRealTime: __nccwpck_require__(92938), - VPCLattice: __nccwpck_require__(35618), - OSIS: __nccwpck_require__(13717), - MediaPackageV2: __nccwpck_require__(32587), - PaymentCryptography: __nccwpck_require__(96172), - PaymentCryptographyData: __nccwpck_require__(46576), - CodeGuruSecurity: __nccwpck_require__(70426), - VerifiedPermissions: __nccwpck_require__(62914), - AppFabric: __nccwpck_require__(40084), - MedicalImaging: __nccwpck_require__(74576), - EntityResolution: __nccwpck_require__(71733), - ManagedBlockchainQuery: __nccwpck_require__(6696), - Neptunedata: __nccwpck_require__(60508), - PcaConnectorAd: __nccwpck_require__(34983) -}; - -/***/ }), - -/***/ 69094: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125363,9 +204291,9 @@ apiLoader.services['amp'] = {}; AWS.Amp = Service.defineService('amp', ['2020-08-01']); Object.defineProperty(apiLoader.services['amp'], '2020-08-01', { get: function get() { - var model = __nccwpck_require__(78362); - model.paginators = (__nccwpck_require__(75928)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(58239)/* .waiters */ .V); + var model = __nccwpck_require__(28064); + model.paginators = (__nccwpck_require__(12852)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(32487)/* .waiters */ .C); return model; }, enumerable: true, @@ -125377,11 +204305,11 @@ module.exports = AWS.Amp; /***/ }), -/***/ 14893: +/***/ 55980: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125389,8 +204317,8 @@ apiLoader.services['amplify'] = {}; AWS.Amplify = Service.defineService('amplify', ['2017-07-25']); Object.defineProperty(apiLoader.services['amplify'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(36813); - model.paginators = (__nccwpck_require__(53733)/* .pagination */ .o); + var model = __nccwpck_require__(19333); + model.paginators = (__nccwpck_require__(69703)/* .pagination */ .X); return model; }, enumerable: true, @@ -125402,11 +204330,11 @@ module.exports = AWS.Amplify; /***/ }), -/***/ 28859: +/***/ 6206: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125414,8 +204342,8 @@ apiLoader.services['amplifybackend'] = {}; AWS.AmplifyBackend = Service.defineService('amplifybackend', ['2020-08-11']); Object.defineProperty(apiLoader.services['amplifybackend'], '2020-08-11', { get: function get() { - var model = __nccwpck_require__(23939); - model.paginators = (__nccwpck_require__(27232)/* .pagination */ .o); + var model = __nccwpck_require__(48219); + model.paginators = (__nccwpck_require__(42649)/* .pagination */ .X); return model; }, enumerable: true, @@ -125427,11 +204355,11 @@ module.exports = AWS.AmplifyBackend; /***/ }), -/***/ 35759: +/***/ 21567: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125439,9 +204367,9 @@ apiLoader.services['amplifyuibuilder'] = {}; AWS.AmplifyUIBuilder = Service.defineService('amplifyuibuilder', ['2021-08-11']); Object.defineProperty(apiLoader.services['amplifyuibuilder'], '2021-08-11', { get: function get() { - var model = __nccwpck_require__(48987); - model.paginators = (__nccwpck_require__(56072)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(70564)/* .waiters */ .V); + var model = __nccwpck_require__(43847); + model.paginators = (__nccwpck_require__(38077)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(55222)/* .waiters */ .C); return model; }, enumerable: true, @@ -125453,21 +204381,21 @@ module.exports = AWS.AmplifyUIBuilder; /***/ }), -/***/ 41219: +/***/ 69548: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['apigateway'] = {}; AWS.APIGateway = Service.defineService('apigateway', ['2015-07-09']); -__nccwpck_require__(41103); +__nccwpck_require__(46640); Object.defineProperty(apiLoader.services['apigateway'], '2015-07-09', { get: function get() { - var model = __nccwpck_require__(59463); - model.paginators = (__nccwpck_require__(25878)/* .pagination */ .o); + var model = __nccwpck_require__(21499); + model.paginators = (__nccwpck_require__(38713)/* .pagination */ .X); return model; }, enumerable: true, @@ -125479,11 +204407,11 @@ module.exports = AWS.APIGateway; /***/ }), -/***/ 65207: +/***/ 72651: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125491,8 +204419,8 @@ apiLoader.services['apigatewaymanagementapi'] = {}; AWS.ApiGatewayManagementApi = Service.defineService('apigatewaymanagementapi', ['2018-11-29']); Object.defineProperty(apiLoader.services['apigatewaymanagementapi'], '2018-11-29', { get: function get() { - var model = __nccwpck_require__(57832); - model.paginators = (__nccwpck_require__(2787)/* .pagination */ .o); + var model = __nccwpck_require__(12116); + model.paginators = (__nccwpck_require__(63232)/* .pagination */ .X); return model; }, enumerable: true, @@ -125504,11 +204432,11 @@ module.exports = AWS.ApiGatewayManagementApi; /***/ }), -/***/ 72774: +/***/ 97048: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125516,8 +204444,8 @@ apiLoader.services['apigatewayv2'] = {}; AWS.ApiGatewayV2 = Service.defineService('apigatewayv2', ['2018-11-29']); Object.defineProperty(apiLoader.services['apigatewayv2'], '2018-11-29', { get: function get() { - var model = __nccwpck_require__(59326); - model.paginators = (__nccwpck_require__(90171)/* .pagination */ .o); + var model = __nccwpck_require__(58739); + model.paginators = (__nccwpck_require__(68097)/* .pagination */ .X); return model; }, enumerable: true, @@ -125529,11 +204457,11 @@ module.exports = AWS.ApiGatewayV2; /***/ }), -/***/ 26623: +/***/ 39221: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125541,8 +204469,8 @@ apiLoader.services['appconfig'] = {}; AWS.AppConfig = Service.defineService('appconfig', ['2019-10-09']); Object.defineProperty(apiLoader.services['appconfig'], '2019-10-09', { get: function get() { - var model = __nccwpck_require__(60654); - model.paginators = (__nccwpck_require__(41789)/* .pagination */ .o); + var model = __nccwpck_require__(82550); + model.paginators = (__nccwpck_require__(78206)/* .pagination */ .X); return model; }, enumerable: true, @@ -125554,11 +204482,11 @@ module.exports = AWS.AppConfig; /***/ }), -/***/ 36869: +/***/ 74997: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125566,8 +204494,8 @@ apiLoader.services['appconfigdata'] = {}; AWS.AppConfigData = Service.defineService('appconfigdata', ['2021-11-11']); Object.defineProperty(apiLoader.services['appconfigdata'], '2021-11-11', { get: function get() { - var model = __nccwpck_require__(86796); - model.paginators = (__nccwpck_require__(48010)/* .pagination */ .o); + var model = __nccwpck_require__(14341); + model.paginators = (__nccwpck_require__(23175)/* .pagination */ .X); return model; }, enumerable: true, @@ -125579,11 +204507,11 @@ module.exports = AWS.AppConfigData; /***/ }), -/***/ 40084: +/***/ 45246: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125591,9 +204519,9 @@ apiLoader.services['appfabric'] = {}; AWS.AppFabric = Service.defineService('appfabric', ['2023-05-19']); Object.defineProperty(apiLoader.services['appfabric'], '2023-05-19', { get: function get() { - var model = __nccwpck_require__(78267); - model.paginators = (__nccwpck_require__(42193)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(44821)/* .waiters */ .V); + var model = __nccwpck_require__(47693); + model.paginators = (__nccwpck_require__(56639)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(11252)/* .waiters */ .C); return model; }, enumerable: true, @@ -125605,11 +204533,11 @@ module.exports = AWS.AppFabric; /***/ }), -/***/ 2498: +/***/ 15187: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125617,8 +204545,8 @@ apiLoader.services['appflow'] = {}; AWS.Appflow = Service.defineService('appflow', ['2020-08-23']); Object.defineProperty(apiLoader.services['appflow'], '2020-08-23', { get: function get() { - var model = __nccwpck_require__(32840); - model.paginators = (__nccwpck_require__(16916)/* .pagination */ .o); + var model = __nccwpck_require__(10343); + model.paginators = (__nccwpck_require__(2493)/* .pagination */ .X); return model; }, enumerable: true, @@ -125630,11 +204558,11 @@ module.exports = AWS.Appflow; /***/ }), -/***/ 32543: +/***/ 91268: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125642,8 +204570,8 @@ apiLoader.services['appintegrations'] = {}; AWS.AppIntegrations = Service.defineService('appintegrations', ['2020-07-29']); Object.defineProperty(apiLoader.services['appintegrations'], '2020-07-29', { get: function get() { - var model = __nccwpck_require__(62033); - model.paginators = (__nccwpck_require__(61866)/* .pagination */ .o); + var model = __nccwpck_require__(53239); + model.paginators = (__nccwpck_require__(61549)/* .pagination */ .X); return model; }, enumerable: true, @@ -125655,11 +204583,11 @@ module.exports = AWS.AppIntegrations; /***/ }), -/***/ 28929: +/***/ 25380: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125667,8 +204595,8 @@ apiLoader.services['applicationautoscaling'] = {}; AWS.ApplicationAutoScaling = Service.defineService('applicationautoscaling', ['2016-02-06']); Object.defineProperty(apiLoader.services['applicationautoscaling'], '2016-02-06', { get: function get() { - var model = __nccwpck_require__(47320); - model.paginators = (__nccwpck_require__(40322)/* .pagination */ .o); + var model = __nccwpck_require__(69821); + model.paginators = (__nccwpck_require__(4623)/* .pagination */ .X); return model; }, enumerable: true, @@ -125680,11 +204608,11 @@ module.exports = AWS.ApplicationAutoScaling; /***/ }), -/***/ 42738: +/***/ 15718: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125692,8 +204620,8 @@ apiLoader.services['applicationcostprofiler'] = {}; AWS.ApplicationCostProfiler = Service.defineService('applicationcostprofiler', ['2020-09-10']); Object.defineProperty(apiLoader.services['applicationcostprofiler'], '2020-09-10', { get: function get() { - var model = __nccwpck_require__(96818); - model.paginators = (__nccwpck_require__(15782)/* .pagination */ .o); + var model = __nccwpck_require__(24087); + model.paginators = (__nccwpck_require__(1357)/* .pagination */ .X); return model; }, enumerable: true, @@ -125705,11 +204633,11 @@ module.exports = AWS.ApplicationCostProfiler; /***/ }), -/***/ 12824: +/***/ 80231: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125717,8 +204645,8 @@ apiLoader.services['applicationinsights'] = {}; AWS.ApplicationInsights = Service.defineService('applicationinsights', ['2018-11-25']); Object.defineProperty(apiLoader.services['applicationinsights'], '2018-11-25', { get: function get() { - var model = __nccwpck_require__(96143); - model.paginators = (__nccwpck_require__(22242)/* .pagination */ .o); + var model = __nccwpck_require__(92817); + model.paginators = (__nccwpck_require__(72555)/* .pagination */ .X); return model; }, enumerable: true, @@ -125730,11 +204658,36 @@ module.exports = AWS.ApplicationInsights; /***/ }), -/***/ 94804: +/***/ 96625: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['applicationsignals'] = {}; +AWS.ApplicationSignals = Service.defineService('applicationsignals', ['2024-04-15']); +Object.defineProperty(apiLoader.services['applicationsignals'], '2024-04-15', { + get: function get() { + var model = __nccwpck_require__(39757); + model.paginators = (__nccwpck_require__(65439)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.ApplicationSignals; + + +/***/ }), + +/***/ 76530: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125742,8 +204695,8 @@ apiLoader.services['appmesh'] = {}; AWS.AppMesh = Service.defineService('appmesh', ['2018-10-01', '2018-10-01*', '2019-01-25']); Object.defineProperty(apiLoader.services['appmesh'], '2018-10-01', { get: function get() { - var model = __nccwpck_require__(64780); - model.paginators = (__nccwpck_require__(54936)/* .pagination */ .o); + var model = __nccwpck_require__(29920); + model.paginators = (__nccwpck_require__(44020)/* .pagination */ .X); return model; }, enumerable: true, @@ -125751,8 +204704,8 @@ Object.defineProperty(apiLoader.services['appmesh'], '2018-10-01', { }); Object.defineProperty(apiLoader.services['appmesh'], '2019-01-25', { get: function get() { - var model = __nccwpck_require__(78066); - model.paginators = (__nccwpck_require__(37698)/* .pagination */ .o); + var model = __nccwpck_require__(7955); + model.paginators = (__nccwpck_require__(40801)/* .pagination */ .X); return model; }, enumerable: true, @@ -125764,11 +204717,11 @@ module.exports = AWS.AppMesh; /***/ }), -/***/ 65901: +/***/ 57433: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125776,8 +204729,8 @@ apiLoader.services['apprunner'] = {}; AWS.AppRunner = Service.defineService('apprunner', ['2020-05-15']); Object.defineProperty(apiLoader.services['apprunner'], '2020-05-15', { get: function get() { - var model = __nccwpck_require__(30036); - model.paginators = (__nccwpck_require__(50293)/* .pagination */ .o); + var model = __nccwpck_require__(38917); + model.paginators = (__nccwpck_require__(55207)/* .pagination */ .X); return model; }, enumerable: true, @@ -125789,11 +204742,11 @@ module.exports = AWS.AppRunner; /***/ }), -/***/ 96328: +/***/ 90891: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125801,9 +204754,9 @@ apiLoader.services['appstream'] = {}; AWS.AppStream = Service.defineService('appstream', ['2016-12-01']); Object.defineProperty(apiLoader.services['appstream'], '2016-12-01', { get: function get() { - var model = __nccwpck_require__(85538); - model.paginators = (__nccwpck_require__(32191)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(21134)/* .waiters */ .V); + var model = __nccwpck_require__(86175); + model.paginators = (__nccwpck_require__(35877)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(62750)/* .waiters */ .C); return model; }, enumerable: true, @@ -125815,11 +204768,11 @@ module.exports = AWS.AppStream; /***/ }), -/***/ 78720: +/***/ 72172: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125827,8 +204780,8 @@ apiLoader.services['appsync'] = {}; AWS.AppSync = Service.defineService('appsync', ['2017-07-25']); Object.defineProperty(apiLoader.services['appsync'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(94937); - model.paginators = (__nccwpck_require__(50233)/* .pagination */ .o); + var model = __nccwpck_require__(45769); + model.paginators = (__nccwpck_require__(31603)/* .pagination */ .X); return model; }, enumerable: true, @@ -125840,11 +204793,37 @@ module.exports = AWS.AppSync; /***/ }), -/***/ 98946: +/***/ 48487: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['apptest'] = {}; +AWS.AppTest = Service.defineService('apptest', ['2022-12-06']); +Object.defineProperty(apiLoader.services['apptest'], '2022-12-06', { + get: function get() { + var model = __nccwpck_require__(26973); + model.paginators = (__nccwpck_require__(86844)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(83300)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.AppTest; + + +/***/ }), + +/***/ 70442: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125852,8 +204831,8 @@ apiLoader.services['arczonalshift'] = {}; AWS.ARCZonalShift = Service.defineService('arczonalshift', ['2022-10-30']); Object.defineProperty(apiLoader.services['arczonalshift'], '2022-10-30', { get: function get() { - var model = __nccwpck_require__(52286); - model.paginators = (__nccwpck_require__(70002)/* .pagination */ .o); + var model = __nccwpck_require__(90697); + model.paginators = (__nccwpck_require__(93363)/* .pagination */ .X); return model; }, enumerable: true, @@ -125865,11 +204844,37 @@ module.exports = AWS.ARCZonalShift; /***/ }), -/***/ 37423: +/***/ 3696: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['artifact'] = {}; +AWS.Artifact = Service.defineService('artifact', ['2018-05-10']); +Object.defineProperty(apiLoader.services['artifact'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(48448); + model.paginators = (__nccwpck_require__(21748)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(88167)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Artifact; + + +/***/ }), + +/***/ 91113: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125877,8 +204882,8 @@ apiLoader.services['athena'] = {}; AWS.Athena = Service.defineService('athena', ['2017-05-18']); Object.defineProperty(apiLoader.services['athena'], '2017-05-18', { get: function get() { - var model = __nccwpck_require__(28680); - model.paginators = (__nccwpck_require__(44417)/* .pagination */ .o); + var model = __nccwpck_require__(15214); + model.paginators = (__nccwpck_require__(21958)/* .pagination */ .X); return model; }, enumerable: true, @@ -125890,11 +204895,11 @@ module.exports = AWS.Athena; /***/ }), -/***/ 79653: +/***/ 7132: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125902,8 +204907,8 @@ apiLoader.services['auditmanager'] = {}; AWS.AuditManager = Service.defineService('auditmanager', ['2017-07-25']); Object.defineProperty(apiLoader.services['auditmanager'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(41672); - model.paginators = (__nccwpck_require__(41321)/* .pagination */ .o); + var model = __nccwpck_require__(82511); + model.paginators = (__nccwpck_require__(38805)/* .pagination */ .X); return model; }, enumerable: true, @@ -125915,11 +204920,11 @@ module.exports = AWS.AuditManager; /***/ }), -/***/ 86407: +/***/ 80814: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125927,8 +204932,8 @@ apiLoader.services['augmentedairuntime'] = {}; AWS.AugmentedAIRuntime = Service.defineService('augmentedairuntime', ['2019-11-07']); Object.defineProperty(apiLoader.services['augmentedairuntime'], '2019-11-07', { get: function get() { - var model = __nccwpck_require__(57704); - model.paginators = (__nccwpck_require__(13201)/* .pagination */ .o); + var model = __nccwpck_require__(93284); + model.paginators = (__nccwpck_require__(19696)/* .pagination */ .X); return model; }, enumerable: true, @@ -125940,11 +204945,11 @@ module.exports = AWS.AugmentedAIRuntime; /***/ }), -/***/ 60669: +/***/ 70540: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125952,8 +204957,8 @@ apiLoader.services['autoscaling'] = {}; AWS.AutoScaling = Service.defineService('autoscaling', ['2011-01-01']); Object.defineProperty(apiLoader.services['autoscaling'], '2011-01-01', { get: function get() { - var model = __nccwpck_require__(55394); - model.paginators = (__nccwpck_require__(81436)/* .pagination */ .o); + var model = __nccwpck_require__(33359); + model.paginators = (__nccwpck_require__(56949)/* .pagination */ .X); return model; }, enumerable: true, @@ -125965,11 +204970,11 @@ module.exports = AWS.AutoScaling; /***/ }), -/***/ 11399: +/***/ 34402: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -125977,8 +204982,8 @@ apiLoader.services['autoscalingplans'] = {}; AWS.AutoScalingPlans = Service.defineService('autoscalingplans', ['2018-01-06']); Object.defineProperty(apiLoader.services['autoscalingplans'], '2018-01-06', { get: function get() { - var model = __nccwpck_require__(53216); - model.paginators = (__nccwpck_require__(64985)/* .pagination */ .o); + var model = __nccwpck_require__(1550); + model.paginators = (__nccwpck_require__(77862)/* .pagination */ .X); return model; }, enumerable: true, @@ -125990,11 +204995,36 @@ module.exports = AWS.AutoScalingPlans; /***/ }), -/***/ 67248: +/***/ 59691: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['b2bi'] = {}; +AWS.B2bi = Service.defineService('b2bi', ['2022-06-23']); +Object.defineProperty(apiLoader.services['b2bi'], '2022-06-23', { + get: function get() { + var model = __nccwpck_require__(59941); + model.paginators = (__nccwpck_require__(64487)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.B2bi; + + +/***/ }), + +/***/ 244: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126002,8 +205032,8 @@ apiLoader.services['backup'] = {}; AWS.Backup = Service.defineService('backup', ['2018-11-15']); Object.defineProperty(apiLoader.services['backup'], '2018-11-15', { get: function get() { - var model = __nccwpck_require__(77990); - model.paginators = (__nccwpck_require__(54869)/* .pagination */ .o); + var model = __nccwpck_require__(3780); + model.paginators = (__nccwpck_require__(62768)/* .pagination */ .X); return model; }, enumerable: true, @@ -126015,11 +205045,11 @@ module.exports = AWS.Backup; /***/ }), -/***/ 655: +/***/ 51444: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126027,8 +205057,8 @@ apiLoader.services['backupgateway'] = {}; AWS.BackupGateway = Service.defineService('backupgateway', ['2021-01-01']); Object.defineProperty(apiLoader.services['backupgateway'], '2021-01-01', { get: function get() { - var model = __nccwpck_require__(96863); - model.paginators = (__nccwpck_require__(34946)/* .pagination */ .o); + var model = __nccwpck_require__(99339); + model.paginators = (__nccwpck_require__(9833)/* .pagination */ .X); return model; }, enumerable: true, @@ -126040,61 +205070,163 @@ module.exports = AWS.BackupGateway; /***/ }), -/***/ 3571: +/***/ 30496: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['backupstorage'] = {}; -AWS.BackupStorage = Service.defineService('backupstorage', ['2018-04-10']); -Object.defineProperty(apiLoader.services['backupstorage'], '2018-04-10', { +apiLoader.services['batch'] = {}; +AWS.Batch = Service.defineService('batch', ['2016-08-10']); +Object.defineProperty(apiLoader.services['batch'], '2016-08-10', { get: function get() { - var model = __nccwpck_require__(97436); - model.paginators = (__nccwpck_require__(73644)/* .pagination */ .o); + var model = __nccwpck_require__(71121); + model.paginators = (__nccwpck_require__(90667)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.BackupStorage; +module.exports = AWS.Batch; /***/ }), -/***/ 31591: +/***/ 37607: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['batch'] = {}; -AWS.Batch = Service.defineService('batch', ['2016-08-10']); -Object.defineProperty(apiLoader.services['batch'], '2016-08-10', { +apiLoader.services['bcmdataexports'] = {}; +AWS.BCMDataExports = Service.defineService('bcmdataexports', ['2023-11-26']); +Object.defineProperty(apiLoader.services['bcmdataexports'], '2023-11-26', { get: function get() { - var model = __nccwpck_require__(12617); - model.paginators = (__nccwpck_require__(36988)/* .pagination */ .o); + var model = __nccwpck_require__(39539); + model.paginators = (__nccwpck_require__(61633)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Batch; +module.exports = AWS.BCMDataExports; + + +/***/ }), + +/***/ 61822: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['bedrock'] = {}; +AWS.Bedrock = Service.defineService('bedrock', ['2023-04-20']); +Object.defineProperty(apiLoader.services['bedrock'], '2023-04-20', { + get: function get() { + var model = __nccwpck_require__(91116); + model.paginators = (__nccwpck_require__(70760)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(67059)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Bedrock; + + +/***/ }), + +/***/ 44801: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['bedrockagent'] = {}; +AWS.BedrockAgent = Service.defineService('bedrockagent', ['2023-06-05']); +Object.defineProperty(apiLoader.services['bedrockagent'], '2023-06-05', { + get: function get() { + var model = __nccwpck_require__(45915); + model.paginators = (__nccwpck_require__(77529)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.BedrockAgent; + + +/***/ }), + +/***/ 88633: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['bedrockagentruntime'] = {}; +AWS.BedrockAgentRuntime = Service.defineService('bedrockagentruntime', ['2023-07-26']); +Object.defineProperty(apiLoader.services['bedrockagentruntime'], '2023-07-26', { + get: function get() { + var model = __nccwpck_require__(23126); + model.paginators = (__nccwpck_require__(9054)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.BedrockAgentRuntime; + + +/***/ }), + +/***/ 9832: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['bedrockruntime'] = {}; +AWS.BedrockRuntime = Service.defineService('bedrockruntime', ['2023-09-30']); +Object.defineProperty(apiLoader.services['bedrockruntime'], '2023-09-30', { + get: function get() { + var model = __nccwpck_require__(6559); + model.paginators = (__nccwpck_require__(29093)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(16574)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.BedrockRuntime; /***/ }), -/***/ 35946: +/***/ 21674: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126102,9 +205234,9 @@ apiLoader.services['billingconductor'] = {}; AWS.Billingconductor = Service.defineService('billingconductor', ['2021-07-30']); Object.defineProperty(apiLoader.services['billingconductor'], '2021-07-30', { get: function get() { - var model = __nccwpck_require__(54862); - model.paginators = (__nccwpck_require__(97894)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(64224)/* .waiters */ .V); + var model = __nccwpck_require__(74546); + model.paginators = (__nccwpck_require__(41234)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(5401)/* .waiters */ .C); return model; }, enumerable: true, @@ -126116,11 +205248,11 @@ module.exports = AWS.Billingconductor; /***/ }), -/***/ 46022: +/***/ 36851: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126128,8 +205260,8 @@ apiLoader.services['braket'] = {}; AWS.Braket = Service.defineService('braket', ['2019-09-01']); Object.defineProperty(apiLoader.services['braket'], '2019-09-01', { get: function get() { - var model = __nccwpck_require__(23332); - model.paginators = (__nccwpck_require__(15732)/* .pagination */ .o); + var model = __nccwpck_require__(37532); + model.paginators = (__nccwpck_require__(5432)/* .pagination */ .X); return model; }, enumerable: true, @@ -126141,11 +205273,11 @@ module.exports = AWS.Braket; /***/ }), -/***/ 53837: +/***/ 6170: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126153,8 +205285,8 @@ apiLoader.services['budgets'] = {}; AWS.Budgets = Service.defineService('budgets', ['2016-10-20']); Object.defineProperty(apiLoader.services['budgets'], '2016-10-20', { get: function get() { - var model = __nccwpck_require__(11978); - model.paginators = (__nccwpck_require__(23694)/* .pagination */ .o); + var model = __nccwpck_require__(50491); + model.paginators = (__nccwpck_require__(23417)/* .pagination */ .X); return model; }, enumerable: true, @@ -126166,11 +205298,36 @@ module.exports = AWS.Budgets; /***/ }), -/***/ 44573: +/***/ 32615: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['chatbot'] = {}; +AWS.Chatbot = Service.defineService('chatbot', ['2017-10-11']); +Object.defineProperty(apiLoader.services['chatbot'], '2017-10-11', { + get: function get() { + var model = __nccwpck_require__(10487); + model.paginators = (__nccwpck_require__(43245)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Chatbot; + + +/***/ }), + +/***/ 52588: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126178,8 +205335,8 @@ apiLoader.services['chime'] = {}; AWS.Chime = Service.defineService('chime', ['2018-05-01']); Object.defineProperty(apiLoader.services['chime'], '2018-05-01', { get: function get() { - var model = __nccwpck_require__(44811); - model.paginators = (__nccwpck_require__(31890)/* .pagination */ .o); + var model = __nccwpck_require__(37380); + model.paginators = (__nccwpck_require__(81136)/* .pagination */ .X); return model; }, enumerable: true, @@ -126191,11 +205348,11 @@ module.exports = AWS.Chime; /***/ }), -/***/ 15132: +/***/ 23156: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126203,8 +205360,8 @@ apiLoader.services['chimesdkidentity'] = {}; AWS.ChimeSDKIdentity = Service.defineService('chimesdkidentity', ['2021-04-20']); Object.defineProperty(apiLoader.services['chimesdkidentity'], '2021-04-20', { get: function get() { - var model = __nccwpck_require__(97402); - model.paginators = (__nccwpck_require__(133)/* .pagination */ .o); + var model = __nccwpck_require__(514); + model.paginators = (__nccwpck_require__(8418)/* .pagination */ .X); return model; }, enumerable: true, @@ -126216,11 +205373,11 @@ module.exports = AWS.ChimeSDKIdentity; /***/ }), -/***/ 47469: +/***/ 14593: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126228,8 +205385,8 @@ apiLoader.services['chimesdkmediapipelines'] = {}; AWS.ChimeSDKMediaPipelines = Service.defineService('chimesdkmediapipelines', ['2021-07-15']); Object.defineProperty(apiLoader.services['chimesdkmediapipelines'], '2021-07-15', { get: function get() { - var model = __nccwpck_require__(14679); - model.paginators = (__nccwpck_require__(82201)/* .pagination */ .o); + var model = __nccwpck_require__(29177); + model.paginators = (__nccwpck_require__(7523)/* .pagination */ .X); return model; }, enumerable: true, @@ -126241,11 +205398,11 @@ module.exports = AWS.ChimeSDKMediaPipelines; /***/ }), -/***/ 72460: +/***/ 4372: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126253,8 +205410,8 @@ apiLoader.services['chimesdkmeetings'] = {}; AWS.ChimeSDKMeetings = Service.defineService('chimesdkmeetings', ['2021-07-15']); Object.defineProperty(apiLoader.services['chimesdkmeetings'], '2021-07-15', { get: function get() { - var model = __nccwpck_require__(17090); - model.paginators = (__nccwpck_require__(70582)/* .pagination */ .o); + var model = __nccwpck_require__(1949); + model.paginators = (__nccwpck_require__(62223)/* .pagination */ .X); return model; }, enumerable: true, @@ -126266,11 +205423,11 @@ module.exports = AWS.ChimeSDKMeetings; /***/ }), -/***/ 48392: +/***/ 8248: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126278,8 +205435,8 @@ apiLoader.services['chimesdkmessaging'] = {}; AWS.ChimeSDKMessaging = Service.defineService('chimesdkmessaging', ['2021-05-15']); Object.defineProperty(apiLoader.services['chimesdkmessaging'], '2021-05-15', { get: function get() { - var model = __nccwpck_require__(52239); - model.paginators = (__nccwpck_require__(60807)/* .pagination */ .o); + var model = __nccwpck_require__(80477); + model.paginators = (__nccwpck_require__(3471)/* .pagination */ .X); return model; }, enumerable: true, @@ -126291,11 +205448,11 @@ module.exports = AWS.ChimeSDKMessaging; /***/ }), -/***/ 75241: +/***/ 326: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126303,8 +205460,8 @@ apiLoader.services['chimesdkvoice'] = {}; AWS.ChimeSDKVoice = Service.defineService('chimesdkvoice', ['2022-08-03']); Object.defineProperty(apiLoader.services['chimesdkvoice'], '2022-08-03', { get: function get() { - var model = __nccwpck_require__(26420); - model.paginators = (__nccwpck_require__(7986)/* .pagination */ .o); + var model = __nccwpck_require__(77248); + model.paginators = (__nccwpck_require__(63015)/* .pagination */ .X); return model; }, enumerable: true, @@ -126316,11 +205473,11 @@ module.exports = AWS.ChimeSDKVoice; /***/ }), -/***/ 78450: +/***/ 12309: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126328,9 +205485,9 @@ apiLoader.services['cleanrooms'] = {}; AWS.CleanRooms = Service.defineService('cleanrooms', ['2022-02-17']); Object.defineProperty(apiLoader.services['cleanrooms'], '2022-02-17', { get: function get() { - var model = __nccwpck_require__(11585); - model.paginators = (__nccwpck_require__(73060)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(29284)/* .waiters */ .V); + var model = __nccwpck_require__(6812); + model.paginators = (__nccwpck_require__(31032)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(67107)/* .waiters */ .C); return model; }, enumerable: true, @@ -126342,11 +205499,37 @@ module.exports = AWS.CleanRooms; /***/ }), -/***/ 18517: +/***/ 5224: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['cleanroomsml'] = {}; +AWS.CleanRoomsML = Service.defineService('cleanroomsml', ['2023-09-06']); +Object.defineProperty(apiLoader.services['cleanroomsml'], '2023-09-06', { + get: function get() { + var model = __nccwpck_require__(84933); + model.paginators = (__nccwpck_require__(83431)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(39676)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.CleanRoomsML; + + +/***/ }), + +/***/ 95046: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126354,8 +205537,8 @@ apiLoader.services['cloud9'] = {}; AWS.Cloud9 = Service.defineService('cloud9', ['2017-09-23']); Object.defineProperty(apiLoader.services['cloud9'], '2017-09-23', { get: function get() { - var model = __nccwpck_require__(82981); - model.paginators = (__nccwpck_require__(9313)/* .pagination */ .o); + var model = __nccwpck_require__(46613); + model.paginators = (__nccwpck_require__(33943)/* .pagination */ .X); return model; }, enumerable: true, @@ -126367,11 +205550,11 @@ module.exports = AWS.Cloud9; /***/ }), -/***/ 50571: +/***/ 23808: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126379,9 +205562,9 @@ apiLoader.services['cloudcontrol'] = {}; AWS.CloudControl = Service.defineService('cloudcontrol', ['2021-09-30']); Object.defineProperty(apiLoader.services['cloudcontrol'], '2021-09-30', { get: function get() { - var model = __nccwpck_require__(24689); - model.paginators = (__nccwpck_require__(16041)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(31933)/* .waiters */ .V); + var model = __nccwpck_require__(12582); + model.paginators = (__nccwpck_require__(31854)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(157)/* .waiters */ .C); return model; }, enumerable: true, @@ -126393,11 +205576,11 @@ module.exports = AWS.CloudControl; /***/ }), -/***/ 71491: +/***/ 56134: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126405,8 +205588,8 @@ apiLoader.services['clouddirectory'] = {}; AWS.CloudDirectory = Service.defineService('clouddirectory', ['2016-05-10', '2016-05-10*', '2017-01-11']); Object.defineProperty(apiLoader.services['clouddirectory'], '2016-05-10', { get: function get() { - var model = __nccwpck_require__(72862); - model.paginators = (__nccwpck_require__(87597)/* .pagination */ .o); + var model = __nccwpck_require__(92044); + model.paginators = (__nccwpck_require__(20744)/* .pagination */ .X); return model; }, enumerable: true, @@ -126414,8 +205597,8 @@ Object.defineProperty(apiLoader.services['clouddirectory'], '2016-05-10', { }); Object.defineProperty(apiLoader.services['clouddirectory'], '2017-01-11', { get: function get() { - var model = __nccwpck_require__(88729); - model.paginators = (__nccwpck_require__(10156)/* .pagination */ .o); + var model = __nccwpck_require__(34084); + model.paginators = (__nccwpck_require__(30224)/* .pagination */ .X); return model; }, enumerable: true, @@ -126427,11 +205610,11 @@ module.exports = AWS.CloudDirectory; /***/ }), -/***/ 26186: +/***/ 28486: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126439,9 +205622,9 @@ apiLoader.services['cloudformation'] = {}; AWS.CloudFormation = Service.defineService('cloudformation', ['2010-05-15']); Object.defineProperty(apiLoader.services['cloudformation'], '2010-05-15', { get: function get() { - var model = __nccwpck_require__(31930); - model.paginators = (__nccwpck_require__(10611)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(53732)/* .waiters */ .V); + var model = __nccwpck_require__(84681); + model.paginators = (__nccwpck_require__(82067)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(22032)/* .waiters */ .C); return model; }, enumerable: true, @@ -126453,22 +205636,22 @@ module.exports = AWS.CloudFormation; /***/ }), -/***/ 28449: +/***/ 9586: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['cloudfront'] = {}; AWS.CloudFront = Service.defineService('cloudfront', ['2013-05-12*', '2013-11-11*', '2014-05-31*', '2014-10-21*', '2014-11-06*', '2015-04-17*', '2015-07-27*', '2015-09-17*', '2016-01-13*', '2016-01-28*', '2016-08-01*', '2016-08-20*', '2016-09-07*', '2016-09-29*', '2016-11-25', '2016-11-25*', '2017-03-25', '2017-03-25*', '2017-10-30', '2017-10-30*', '2018-06-18', '2018-06-18*', '2018-11-05', '2018-11-05*', '2019-03-26', '2019-03-26*', '2020-05-31']); -__nccwpck_require__(17578); +__nccwpck_require__(47222); Object.defineProperty(apiLoader.services['cloudfront'], '2016-11-25', { get: function get() { - var model = __nccwpck_require__(64908); - model.paginators = (__nccwpck_require__(57305)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(71106)/* .waiters */ .V); + var model = __nccwpck_require__(63907); + model.paginators = (__nccwpck_require__(78353)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(17170)/* .waiters */ .C); return model; }, enumerable: true, @@ -126476,9 +205659,9 @@ Object.defineProperty(apiLoader.services['cloudfront'], '2016-11-25', { }); Object.defineProperty(apiLoader.services['cloudfront'], '2017-03-25', { get: function get() { - var model = __nccwpck_require__(76944); - model.paginators = (__nccwpck_require__(83654)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(83406)/* .waiters */ .V); + var model = __nccwpck_require__(62549); + model.paginators = (__nccwpck_require__(12055)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(22988)/* .waiters */ .C); return model; }, enumerable: true, @@ -126486,9 +205669,9 @@ Object.defineProperty(apiLoader.services['cloudfront'], '2017-03-25', { }); Object.defineProperty(apiLoader.services['cloudfront'], '2017-10-30', { get: function get() { - var model = __nccwpck_require__(80198); - model.paginators = (__nccwpck_require__(52915)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(13399)/* .waiters */ .V); + var model = __nccwpck_require__(4447); + model.paginators = (__nccwpck_require__(43653)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(97438)/* .waiters */ .C); return model; }, enumerable: true, @@ -126496,9 +205679,9 @@ Object.defineProperty(apiLoader.services['cloudfront'], '2017-10-30', { }); Object.defineProperty(apiLoader.services['cloudfront'], '2018-06-18', { get: function get() { - var model = __nccwpck_require__(29549); - model.paginators = (__nccwpck_require__(7805)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(2353)/* .waiters */ .V); + var model = __nccwpck_require__(38029); + model.paginators = (__nccwpck_require__(44191)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(71764)/* .waiters */ .C); return model; }, enumerable: true, @@ -126506,9 +205689,9 @@ Object.defineProperty(apiLoader.services['cloudfront'], '2018-06-18', { }); Object.defineProperty(apiLoader.services['cloudfront'], '2018-11-05', { get: function get() { - var model = __nccwpck_require__(27117); - model.paginators = (__nccwpck_require__(29533)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(36883)/* .waiters */ .V); + var model = __nccwpck_require__(32635); + model.paginators = (__nccwpck_require__(9753)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(37658)/* .waiters */ .C); return model; }, enumerable: true, @@ -126516,9 +205699,9 @@ Object.defineProperty(apiLoader.services['cloudfront'], '2018-11-05', { }); Object.defineProperty(apiLoader.services['cloudfront'], '2019-03-26', { get: function get() { - var model = __nccwpck_require__(29574); - model.paginators = (__nccwpck_require__(35556)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(97142)/* .waiters */ .V); + var model = __nccwpck_require__(51222); + model.paginators = (__nccwpck_require__(22462)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(76173)/* .waiters */ .C); return model; }, enumerable: true, @@ -126526,9 +205709,9 @@ Object.defineProperty(apiLoader.services['cloudfront'], '2019-03-26', { }); Object.defineProperty(apiLoader.services['cloudfront'], '2020-05-31', { get: function get() { - var model = __nccwpck_require__(66310); - model.paginators = (__nccwpck_require__(48335)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(83517)/* .waiters */ .V); + var model = __nccwpck_require__(51100); + model.paginators = (__nccwpck_require__(17624)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(51907)/* .waiters */ .C); return model; }, enumerable: true, @@ -126540,11 +205723,11 @@ module.exports = AWS.CloudFront; /***/ }), -/***/ 65577: +/***/ 35621: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126552,8 +205735,8 @@ apiLoader.services['cloudhsm'] = {}; AWS.CloudHSM = Service.defineService('cloudhsm', ['2014-05-30']); Object.defineProperty(apiLoader.services['cloudhsm'], '2014-05-30', { get: function get() { - var model = __nccwpck_require__(18637); - model.paginators = (__nccwpck_require__(18988)/* .pagination */ .o); + var model = __nccwpck_require__(37245); + model.paginators = (__nccwpck_require__(83791)/* .pagination */ .X); return model; }, enumerable: true, @@ -126565,11 +205748,11 @@ module.exports = AWS.CloudHSM; /***/ }), -/***/ 99748: +/***/ 54597: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126577,8 +205760,8 @@ apiLoader.services['cloudhsmv2'] = {}; AWS.CloudHSMV2 = Service.defineService('cloudhsmv2', ['2017-04-28']); Object.defineProperty(apiLoader.services['cloudhsmv2'], '2017-04-28', { get: function get() { - var model = __nccwpck_require__(90554); - model.paginators = (__nccwpck_require__(77334)/* .pagination */ .o); + var model = __nccwpck_require__(59848); + model.paginators = (__nccwpck_require__(684)/* .pagination */ .X); return model; }, enumerable: true, @@ -126590,11 +205773,11 @@ module.exports = AWS.CloudHSMV2; /***/ }), -/***/ 44714: +/***/ 28569: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126602,8 +205785,8 @@ apiLoader.services['cloudsearch'] = {}; AWS.CloudSearch = Service.defineService('cloudsearch', ['2011-02-01', '2013-01-01']); Object.defineProperty(apiLoader.services['cloudsearch'], '2011-02-01', { get: function get() { - var model = __nccwpck_require__(11732); - model.paginators = (__nccwpck_require__(51357)/* .pagination */ .o); + var model = __nccwpck_require__(20527); + model.paginators = (__nccwpck_require__(20725)/* .pagination */ .X); return model; }, enumerable: true, @@ -126611,8 +205794,8 @@ Object.defineProperty(apiLoader.services['cloudsearch'], '2011-02-01', { }); Object.defineProperty(apiLoader.services['cloudsearch'], '2013-01-01', { get: function get() { - var model = __nccwpck_require__(56880); - model.paginators = (__nccwpck_require__(81127)/* .pagination */ .o); + var model = __nccwpck_require__(28062); + model.paginators = (__nccwpck_require__(51990)/* .pagination */ .X); return model; }, enumerable: true, @@ -126624,20 +205807,20 @@ module.exports = AWS.CloudSearch; /***/ }), -/***/ 81342: +/***/ 81125: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['cloudsearchdomain'] = {}; AWS.CloudSearchDomain = Service.defineService('cloudsearchdomain', ['2013-01-01']); -__nccwpck_require__(10998); +__nccwpck_require__(19657); Object.defineProperty(apiLoader.services['cloudsearchdomain'], '2013-01-01', { get: function get() { - var model = __nccwpck_require__(78255); + var model = __nccwpck_require__(23970); return model; }, enumerable: true, @@ -126649,11 +205832,11 @@ module.exports = AWS.CloudSearchDomain; /***/ }), -/***/ 28633: +/***/ 62829: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126661,8 +205844,8 @@ apiLoader.services['cloudtrail'] = {}; AWS.CloudTrail = Service.defineService('cloudtrail', ['2013-11-01']); Object.defineProperty(apiLoader.services['cloudtrail'], '2013-11-01', { get: function get() { - var model = __nccwpck_require__(11506); - model.paginators = (__nccwpck_require__(27523)/* .pagination */ .o); + var model = __nccwpck_require__(54947); + model.paginators = (__nccwpck_require__(5201)/* .pagination */ .X); return model; }, enumerable: true, @@ -126674,11 +205857,11 @@ module.exports = AWS.CloudTrail; /***/ }), -/***/ 50355: +/***/ 97709: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126686,8 +205869,8 @@ apiLoader.services['cloudtraildata'] = {}; AWS.CloudTrailData = Service.defineService('cloudtraildata', ['2021-08-11']); Object.defineProperty(apiLoader.services['cloudtraildata'], '2021-08-11', { get: function get() { - var model = __nccwpck_require__(27372); - model.paginators = (__nccwpck_require__(79223)/* .pagination */ .o); + var model = __nccwpck_require__(8386); + model.paginators = (__nccwpck_require__(53506)/* .pagination */ .X); return model; }, enumerable: true, @@ -126699,11 +205882,11 @@ module.exports = AWS.CloudTrailData; /***/ }), -/***/ 50287: +/***/ 26126: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126711,9 +205894,9 @@ apiLoader.services['cloudwatch'] = {}; AWS.CloudWatch = Service.defineService('cloudwatch', ['2010-08-01']); Object.defineProperty(apiLoader.services['cloudwatch'], '2010-08-01', { get: function get() { - var model = __nccwpck_require__(16363); - model.paginators = (__nccwpck_require__(46675)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(21466)/* .waiters */ .V); + var model = __nccwpck_require__(35999); + model.paginators = (__nccwpck_require__(49445)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(39998)/* .waiters */ .C); return model; }, enumerable: true, @@ -126725,11 +205908,11 @@ module.exports = AWS.CloudWatch; /***/ }), -/***/ 12361: +/***/ 32395: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126737,8 +205920,8 @@ apiLoader.services['cloudwatchevents'] = {}; AWS.CloudWatchEvents = Service.defineService('cloudwatchevents', ['2014-02-03*', '2015-10-07']); Object.defineProperty(apiLoader.services['cloudwatchevents'], '2015-10-07', { get: function get() { - var model = __nccwpck_require__(40299); - model.paginators = (__nccwpck_require__(54031)/* .pagination */ .o); + var model = __nccwpck_require__(82196); + model.paginators = (__nccwpck_require__(59328)/* .pagination */ .X); return model; }, enumerable: true, @@ -126750,11 +205933,11 @@ module.exports = AWS.CloudWatchEvents; /***/ }), -/***/ 20357: +/***/ 51009: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126762,8 +205945,8 @@ apiLoader.services['cloudwatchlogs'] = {}; AWS.CloudWatchLogs = Service.defineService('cloudwatchlogs', ['2014-03-28']); Object.defineProperty(apiLoader.services['cloudwatchlogs'], '2014-03-28', { get: function get() { - var model = __nccwpck_require__(73044); - model.paginators = (__nccwpck_require__(15472)/* .pagination */ .o); + var model = __nccwpck_require__(63038); + model.paginators = (__nccwpck_require__(85686)/* .pagination */ .X); return model; }, enumerable: true, @@ -126775,11 +205958,11 @@ module.exports = AWS.CloudWatchLogs; /***/ }), -/***/ 8167: +/***/ 30185: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126787,8 +205970,8 @@ apiLoader.services['codeartifact'] = {}; AWS.CodeArtifact = Service.defineService('codeartifact', ['2018-09-22']); Object.defineProperty(apiLoader.services['codeartifact'], '2018-09-22', { get: function get() { - var model = __nccwpck_require__(87923); - model.paginators = (__nccwpck_require__(40983)/* .pagination */ .o); + var model = __nccwpck_require__(46738); + model.paginators = (__nccwpck_require__(33074)/* .pagination */ .X); return model; }, enumerable: true, @@ -126800,11 +205983,11 @@ module.exports = AWS.CodeArtifact; /***/ }), -/***/ 9509: +/***/ 67683: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126812,8 +205995,8 @@ apiLoader.services['codebuild'] = {}; AWS.CodeBuild = Service.defineService('codebuild', ['2016-10-06']); Object.defineProperty(apiLoader.services['codebuild'], '2016-10-06', { get: function get() { - var model = __nccwpck_require__(40893); - model.paginators = (__nccwpck_require__(23010)/* .pagination */ .o); + var model = __nccwpck_require__(68364); + model.paginators = (__nccwpck_require__(3368)/* .pagination */ .X); return model; }, enumerable: true, @@ -126825,11 +206008,11 @@ module.exports = AWS.CodeBuild; /***/ }), -/***/ 85341: +/***/ 88232: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126837,9 +206020,9 @@ apiLoader.services['codecatalyst'] = {}; AWS.CodeCatalyst = Service.defineService('codecatalyst', ['2022-09-28']); Object.defineProperty(apiLoader.services['codecatalyst'], '2022-09-28', { get: function get() { - var model = __nccwpck_require__(22999); - model.paginators = (__nccwpck_require__(14522)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(42522)/* .waiters */ .V); + var model = __nccwpck_require__(36506); + model.paginators = (__nccwpck_require__(21226)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(32881)/* .waiters */ .C); return model; }, enumerable: true, @@ -126851,11 +206034,11 @@ module.exports = AWS.CodeCatalyst; /***/ }), -/***/ 52136: +/***/ 94914: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126863,8 +206046,8 @@ apiLoader.services['codecommit'] = {}; AWS.CodeCommit = Service.defineService('codecommit', ['2015-04-13']); Object.defineProperty(apiLoader.services['codecommit'], '2015-04-13', { get: function get() { - var model = __nccwpck_require__(57144); - model.paginators = (__nccwpck_require__(62599)/* .pagination */ .o); + var model = __nccwpck_require__(35093); + model.paginators = (__nccwpck_require__(86775)/* .pagination */ .X); return model; }, enumerable: true, @@ -126876,11 +206059,36 @@ module.exports = AWS.CodeCommit; /***/ }), -/***/ 71972: +/***/ 8670: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['codeconnections'] = {}; +AWS.CodeConnections = Service.defineService('codeconnections', ['2023-12-01']); +Object.defineProperty(apiLoader.services['codeconnections'], '2023-12-01', { + get: function get() { + var model = __nccwpck_require__(70980); + model.paginators = (__nccwpck_require__(39600)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.CodeConnections; + + +/***/ }), + +/***/ 29420: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126888,9 +206096,9 @@ apiLoader.services['codedeploy'] = {}; AWS.CodeDeploy = Service.defineService('codedeploy', ['2014-10-06']); Object.defineProperty(apiLoader.services['codedeploy'], '2014-10-06', { get: function get() { - var model = __nccwpck_require__(10967); - model.paginators = (__nccwpck_require__(1917)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(52416)/* .waiters */ .V); + var model = __nccwpck_require__(15965); + model.paginators = (__nccwpck_require__(60815)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(10948)/* .waiters */ .C); return model; }, enumerable: true, @@ -126902,11 +206110,11 @@ module.exports = AWS.CodeDeploy; /***/ }), -/***/ 15692: +/***/ 29115: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126914,8 +206122,8 @@ apiLoader.services['codeguruprofiler'] = {}; AWS.CodeGuruProfiler = Service.defineService('codeguruprofiler', ['2019-07-18']); Object.defineProperty(apiLoader.services['codeguruprofiler'], '2019-07-18', { get: function get() { - var model = __nccwpck_require__(34890); - model.paginators = (__nccwpck_require__(25274)/* .pagination */ .o); + var model = __nccwpck_require__(89832); + model.paginators = (__nccwpck_require__(86988)/* .pagination */ .X); return model; }, enumerable: true, @@ -126927,11 +206135,11 @@ module.exports = AWS.CodeGuruProfiler; /***/ }), -/***/ 37029: +/***/ 67749: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126939,9 +206147,9 @@ apiLoader.services['codegurureviewer'] = {}; AWS.CodeGuruReviewer = Service.defineService('codegurureviewer', ['2019-09-19']); Object.defineProperty(apiLoader.services['codegurureviewer'], '2019-09-19', { get: function get() { - var model = __nccwpck_require__(66739); - model.paginators = (__nccwpck_require__(37775)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(69276)/* .waiters */ .V); + var model = __nccwpck_require__(27850); + model.paginators = (__nccwpck_require__(57114)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(32833)/* .waiters */ .C); return model; }, enumerable: true, @@ -126953,11 +206161,11 @@ module.exports = AWS.CodeGuruReviewer; /***/ }), -/***/ 70426: +/***/ 28568: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126965,8 +206173,8 @@ apiLoader.services['codegurusecurity'] = {}; AWS.CodeGuruSecurity = Service.defineService('codegurusecurity', ['2018-05-10']); Object.defineProperty(apiLoader.services['codegurusecurity'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(7662); - model.paginators = (__nccwpck_require__(77755)/* .pagination */ .o); + var model = __nccwpck_require__(71345); + model.paginators = (__nccwpck_require__(68235)/* .pagination */ .X); return model; }, enumerable: true, @@ -126978,11 +206186,11 @@ module.exports = AWS.CodeGuruSecurity; /***/ }), -/***/ 73487: +/***/ 69165: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -126990,8 +206198,8 @@ apiLoader.services['codepipeline'] = {}; AWS.CodePipeline = Service.defineService('codepipeline', ['2015-07-09']); Object.defineProperty(apiLoader.services['codepipeline'], '2015-07-09', { get: function get() { - var model = __nccwpck_require__(4039); - model.paginators = (__nccwpck_require__(78953)/* .pagination */ .o); + var model = __nccwpck_require__(7668); + model.paginators = (__nccwpck_require__(16096)/* .pagination */ .X); return model; }, enumerable: true, @@ -127003,36 +206211,11 @@ module.exports = AWS.CodePipeline; /***/ }), -/***/ 8495: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codestar'] = {}; -AWS.CodeStar = Service.defineService('codestar', ['2017-04-19']); -Object.defineProperty(apiLoader.services['codestar'], '2017-04-19', { - get: function get() { - var model = __nccwpck_require__(12425); - model.paginators = (__nccwpck_require__(70046)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeStar; - - -/***/ }), - -/***/ 29044: +/***/ 7422: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127040,8 +206223,8 @@ apiLoader.services['codestarconnections'] = {}; AWS.CodeStarconnections = Service.defineService('codestarconnections', ['2019-12-01']); Object.defineProperty(apiLoader.services['codestarconnections'], '2019-12-01', { get: function get() { - var model = __nccwpck_require__(88428); - model.paginators = (__nccwpck_require__(31506)/* .pagination */ .o); + var model = __nccwpck_require__(47856); + model.paginators = (__nccwpck_require__(11012)/* .pagination */ .X); return model; }, enumerable: true, @@ -127053,11 +206236,11 @@ module.exports = AWS.CodeStarconnections; /***/ }), -/***/ 42726: +/***/ 31247: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127065,8 +206248,8 @@ apiLoader.services['codestarnotifications'] = {}; AWS.CodeStarNotifications = Service.defineService('codestarnotifications', ['2019-10-15']); Object.defineProperty(apiLoader.services['codestarnotifications'], '2019-10-15', { get: function get() { - var model = __nccwpck_require__(33362); - model.paginators = (__nccwpck_require__(44301)/* .pagination */ .o); + var model = __nccwpck_require__(67028); + model.paginators = (__nccwpck_require__(48096)/* .pagination */ .X); return model; }, enumerable: true, @@ -127078,11 +206261,11 @@ module.exports = AWS.CodeStarNotifications; /***/ }), -/***/ 25361: +/***/ 60533: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127090,8 +206273,8 @@ apiLoader.services['cognitoidentity'] = {}; AWS.CognitoIdentity = Service.defineService('cognitoidentity', ['2014-06-30']); Object.defineProperty(apiLoader.services['cognitoidentity'], '2014-06-30', { get: function get() { - var model = __nccwpck_require__(57377); - model.paginators = (__nccwpck_require__(85010)/* .pagination */ .o); + var model = __nccwpck_require__(36607); + model.paginators = (__nccwpck_require__(76741)/* .pagination */ .X); return model; }, enumerable: true, @@ -127103,11 +206286,11 @@ module.exports = AWS.CognitoIdentity; /***/ }), -/***/ 10830: +/***/ 16671: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127115,8 +206298,8 @@ apiLoader.services['cognitoidentityserviceprovider'] = {}; AWS.CognitoIdentityServiceProvider = Service.defineService('cognitoidentityserviceprovider', ['2016-04-18']); Object.defineProperty(apiLoader.services['cognitoidentityserviceprovider'], '2016-04-18', { get: function get() { - var model = __nccwpck_require__(53166); - model.paginators = (__nccwpck_require__(17149)/* .pagination */ .o); + var model = __nccwpck_require__(91354); + model.paginators = (__nccwpck_require__(86154)/* .pagination */ .X); return model; }, enumerable: true, @@ -127128,11 +206311,11 @@ module.exports = AWS.CognitoIdentityServiceProvider; /***/ }), -/***/ 26555: +/***/ 59120: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127140,8 +206323,8 @@ apiLoader.services['cognitosync'] = {}; AWS.CognitoSync = Service.defineService('cognitosync', ['2014-06-30']); Object.defineProperty(apiLoader.services['cognitosync'], '2014-06-30', { get: function get() { - var model = __nccwpck_require__(29128); - model.paginators = (__nccwpck_require__(5865)/* .pagination */ .o); + var model = __nccwpck_require__(37892); + model.paginators = (__nccwpck_require__(8912)/* .pagination */ .X); return model; }, enumerable: true, @@ -127153,11 +206336,11 @@ module.exports = AWS.CognitoSync; /***/ }), -/***/ 62250: +/***/ 95893: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127165,8 +206348,8 @@ apiLoader.services['comprehend'] = {}; AWS.Comprehend = Service.defineService('comprehend', ['2017-11-27']); Object.defineProperty(apiLoader.services['comprehend'], '2017-11-27', { get: function get() { - var model = __nccwpck_require__(24433); - model.paginators = (__nccwpck_require__(82518)/* .pagination */ .o); + var model = __nccwpck_require__(9355); + model.paginators = (__nccwpck_require__(9193)/* .pagination */ .X); return model; }, enumerable: true, @@ -127178,11 +206361,11 @@ module.exports = AWS.Comprehend; /***/ }), -/***/ 41293: +/***/ 24898: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127190,8 +206373,8 @@ apiLoader.services['comprehendmedical'] = {}; AWS.ComprehendMedical = Service.defineService('comprehendmedical', ['2018-10-30']); Object.defineProperty(apiLoader.services['comprehendmedical'], '2018-10-30', { get: function get() { - var model = __nccwpck_require__(96649); - model.paginators = (__nccwpck_require__(43172)/* .pagination */ .o); + var model = __nccwpck_require__(75004); + model.paginators = (__nccwpck_require__(2680)/* .pagination */ .X); return model; }, enumerable: true, @@ -127203,11 +206386,11 @@ module.exports = AWS.ComprehendMedical; /***/ }), -/***/ 70325: +/***/ 78002: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127215,8 +206398,8 @@ apiLoader.services['computeoptimizer'] = {}; AWS.ComputeOptimizer = Service.defineService('computeoptimizer', ['2019-11-01']); Object.defineProperty(apiLoader.services['computeoptimizer'], '2019-11-01', { get: function get() { - var model = __nccwpck_require__(85802); - model.paginators = (__nccwpck_require__(6831)/* .pagination */ .o); + var model = __nccwpck_require__(49593); + model.paginators = (__nccwpck_require__(97699)/* .pagination */ .X); return model; }, enumerable: true, @@ -127228,11 +206411,11 @@ module.exports = AWS.ComputeOptimizer; /***/ }), -/***/ 82980: +/***/ 49549: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127240,8 +206423,8 @@ apiLoader.services['configservice'] = {}; AWS.ConfigService = Service.defineService('configservice', ['2014-11-12']); Object.defineProperty(apiLoader.services['configservice'], '2014-11-12', { get: function get() { - var model = __nccwpck_require__(47124); - model.paginators = (__nccwpck_require__(85980)/* .pagination */ .o); + var model = __nccwpck_require__(53229); + model.paginators = (__nccwpck_require__(73215)/* .pagination */ .X); return model; }, enumerable: true, @@ -127253,11 +206436,11 @@ module.exports = AWS.ConfigService; /***/ }), -/***/ 750: +/***/ 61906: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127265,8 +206448,8 @@ apiLoader.services['connect'] = {}; AWS.Connect = Service.defineService('connect', ['2017-08-08']); Object.defineProperty(apiLoader.services['connect'], '2017-08-08', { get: function get() { - var model = __nccwpck_require__(54511); - model.paginators = (__nccwpck_require__(19742)/* .pagination */ .o); + var model = __nccwpck_require__(64421); + model.paginators = (__nccwpck_require__(56615)/* .pagination */ .X); return model; }, enumerable: true, @@ -127278,11 +206461,11 @@ module.exports = AWS.Connect; /***/ }), -/***/ 69668: +/***/ 44795: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127290,8 +206473,8 @@ apiLoader.services['connectcampaigns'] = {}; AWS.ConnectCampaigns = Service.defineService('connectcampaigns', ['2021-01-30']); Object.defineProperty(apiLoader.services['connectcampaigns'], '2021-01-30', { get: function get() { - var model = __nccwpck_require__(71566); - model.paginators = (__nccwpck_require__(45198)/* .pagination */ .o); + var model = __nccwpck_require__(33551); + model.paginators = (__nccwpck_require__(67189)/* .pagination */ .X); return model; }, enumerable: true, @@ -127303,11 +206486,11 @@ module.exports = AWS.ConnectCampaigns; /***/ }), -/***/ 95360: +/***/ 20989: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127315,8 +206498,8 @@ apiLoader.services['connectcases'] = {}; AWS.ConnectCases = Service.defineService('connectcases', ['2022-10-03']); Object.defineProperty(apiLoader.services['connectcases'], '2022-10-03', { get: function get() { - var model = __nccwpck_require__(3923); - model.paginators = (__nccwpck_require__(8429)/* .pagination */ .o); + var model = __nccwpck_require__(88344); + model.paginators = (__nccwpck_require__(83772)/* .pagination */ .X); return model; }, enumerable: true, @@ -127328,11 +206511,11 @@ module.exports = AWS.ConnectCases; /***/ }), -/***/ 91660: +/***/ 33652: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127340,8 +206523,8 @@ apiLoader.services['connectcontactlens'] = {}; AWS.ConnectContactLens = Service.defineService('connectcontactlens', ['2020-08-21']); Object.defineProperty(apiLoader.services['connectcontactlens'], '2020-08-21', { get: function get() { - var model = __nccwpck_require__(16527); - model.paginators = (__nccwpck_require__(76658)/* .pagination */ .o); + var model = __nccwpck_require__(14730); + model.paginators = (__nccwpck_require__(22234)/* .pagination */ .X); return model; }, enumerable: true, @@ -127353,11 +206536,11 @@ module.exports = AWS.ConnectContactLens; /***/ }), -/***/ 5760: +/***/ 31429: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127365,8 +206548,8 @@ apiLoader.services['connectparticipant'] = {}; AWS.ConnectParticipant = Service.defineService('connectparticipant', ['2018-09-07']); Object.defineProperty(apiLoader.services['connectparticipant'], '2018-09-07', { get: function get() { - var model = __nccwpck_require__(70132); - model.paginators = (__nccwpck_require__(29947)/* .pagination */ .o); + var model = __nccwpck_require__(24459); + model.paginators = (__nccwpck_require__(78313)/* .pagination */ .X); return model; }, enumerable: true, @@ -127378,11 +206561,37 @@ module.exports = AWS.ConnectParticipant; /***/ }), -/***/ 25846: +/***/ 30014: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['controlcatalog'] = {}; +AWS.ControlCatalog = Service.defineService('controlcatalog', ['2018-05-10']); +Object.defineProperty(apiLoader.services['controlcatalog'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(96774); + model.paginators = (__nccwpck_require__(83374)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(8829)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.ControlCatalog; + + +/***/ }), + +/***/ 1624: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127390,8 +206599,8 @@ apiLoader.services['controltower'] = {}; AWS.ControlTower = Service.defineService('controltower', ['2018-05-10']); Object.defineProperty(apiLoader.services['controltower'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(1095); - model.paginators = (__nccwpck_require__(55167)/* .pagination */ .o); + var model = __nccwpck_require__(27716); + model.paginators = (__nccwpck_require__(16464)/* .pagination */ .X); return model; }, enumerable: true, @@ -127403,11 +206612,11 @@ module.exports = AWS.ControlTower; /***/ }), -/***/ 51147: +/***/ 78028: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127415,8 +206624,8 @@ apiLoader.services['costexplorer'] = {}; AWS.CostExplorer = Service.defineService('costexplorer', ['2017-10-25']); Object.defineProperty(apiLoader.services['costexplorer'], '2017-10-25', { get: function get() { - var model = __nccwpck_require__(4060); - model.paginators = (__nccwpck_require__(75642)/* .pagination */ .o); + var model = __nccwpck_require__(39333); + model.paginators = (__nccwpck_require__(74535)/* .pagination */ .X); return model; }, enumerable: true, @@ -127428,11 +206637,37 @@ module.exports = AWS.CostExplorer; /***/ }), -/***/ 24604: +/***/ 89891: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['costoptimizationhub'] = {}; +AWS.CostOptimizationHub = Service.defineService('costoptimizationhub', ['2022-07-26']); +Object.defineProperty(apiLoader.services['costoptimizationhub'], '2022-07-26', { + get: function get() { + var model = __nccwpck_require__(82073); + model.paginators = (__nccwpck_require__(78435)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(26560)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.CostOptimizationHub; + + +/***/ }), + +/***/ 89110: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127440,8 +206675,8 @@ apiLoader.services['cur'] = {}; AWS.CUR = Service.defineService('cur', ['2017-01-06']); Object.defineProperty(apiLoader.services['cur'], '2017-01-06', { get: function get() { - var model = __nccwpck_require__(46858); - model.paginators = (__nccwpck_require__(40528)/* .pagination */ .o); + var model = __nccwpck_require__(10998); + model.paginators = (__nccwpck_require__(23230)/* .pagination */ .X); return model; }, enumerable: true, @@ -127453,11 +206688,11 @@ module.exports = AWS.CUR; /***/ }), -/***/ 14651: +/***/ 36216: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127465,8 +206700,8 @@ apiLoader.services['customerprofiles'] = {}; AWS.CustomerProfiles = Service.defineService('customerprofiles', ['2020-08-15']); Object.defineProperty(apiLoader.services['customerprofiles'], '2020-08-15', { get: function get() { - var model = __nccwpck_require__(56793); - model.paginators = (__nccwpck_require__(53892)/* .pagination */ .o); + var model = __nccwpck_require__(99812); + model.paginators = (__nccwpck_require__(13008)/* .pagination */ .X); return model; }, enumerable: true, @@ -127478,11 +206713,11 @@ module.exports = AWS.CustomerProfiles; /***/ }), -/***/ 50380: +/***/ 24150: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127490,8 +206725,8 @@ apiLoader.services['databrew'] = {}; AWS.DataBrew = Service.defineService('databrew', ['2017-07-25']); Object.defineProperty(apiLoader.services['databrew'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(96089); - model.paginators = (__nccwpck_require__(92224)/* .pagination */ .o); + var model = __nccwpck_require__(20957); + model.paginators = (__nccwpck_require__(58383)/* .pagination */ .X); return model; }, enumerable: true, @@ -127503,11 +206738,11 @@ module.exports = AWS.DataBrew; /***/ }), -/***/ 10325: +/***/ 63551: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127515,9 +206750,9 @@ apiLoader.services['dataexchange'] = {}; AWS.DataExchange = Service.defineService('dataexchange', ['2017-07-25']); Object.defineProperty(apiLoader.services['dataexchange'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(42346); - model.paginators = (__nccwpck_require__(55607)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(43176)/* .waiters */ .V); + var model = __nccwpck_require__(27674); + model.paginators = (__nccwpck_require__(89770)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(17297)/* .waiters */ .C); return model; }, enumerable: true, @@ -127529,11 +206764,11 @@ module.exports = AWS.DataExchange; /***/ }), -/***/ 48413: +/***/ 74424: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127541,8 +206776,8 @@ apiLoader.services['datapipeline'] = {}; AWS.DataPipeline = Service.defineService('datapipeline', ['2012-10-29']); Object.defineProperty(apiLoader.services['datapipeline'], '2012-10-29', { get: function get() { - var model = __nccwpck_require__(79908); - model.paginators = (__nccwpck_require__(89659)/* .pagination */ .o); + var model = __nccwpck_require__(52784); + model.paginators = (__nccwpck_require__(18052)/* .pagination */ .X); return model; }, enumerable: true, @@ -127554,11 +206789,11 @@ module.exports = AWS.DataPipeline; /***/ }), -/***/ 71266: +/***/ 341: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127566,8 +206801,8 @@ apiLoader.services['datasync'] = {}; AWS.DataSync = Service.defineService('datasync', ['2018-11-09']); Object.defineProperty(apiLoader.services['datasync'], '2018-11-09', { get: function get() { - var model = __nccwpck_require__(93640); - model.paginators = (__nccwpck_require__(80063)/* .pagination */ .o); + var model = __nccwpck_require__(226); + model.paginators = (__nccwpck_require__(70018)/* .pagination */ .X); return model; }, enumerable: true, @@ -127579,11 +206814,36 @@ module.exports = AWS.DataSync; /***/ }), -/***/ 37585: +/***/ 52428: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['datazone'] = {}; +AWS.DataZone = Service.defineService('datazone', ['2018-05-10']); +Object.defineProperty(apiLoader.services['datazone'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(85756); + model.paginators = (__nccwpck_require__(95640)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.DataZone; + + +/***/ }), + +/***/ 7949: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127591,8 +206851,8 @@ apiLoader.services['dax'] = {}; AWS.DAX = Service.defineService('dax', ['2017-04-19']); Object.defineProperty(apiLoader.services['dax'], '2017-04-19', { get: function get() { - var model = __nccwpck_require__(24709); - model.paginators = (__nccwpck_require__(87564)/* .pagination */ .o); + var model = __nccwpck_require__(20990); + model.paginators = (__nccwpck_require__(34518)/* .pagination */ .X); return model; }, enumerable: true, @@ -127604,11 +206864,37 @@ module.exports = AWS.DAX; /***/ }), -/***/ 89455: +/***/ 65638: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['deadline'] = {}; +AWS.Deadline = Service.defineService('deadline', ['2023-10-12']); +Object.defineProperty(apiLoader.services['deadline'], '2023-10-12', { + get: function get() { + var model = __nccwpck_require__(25552); + model.paginators = (__nccwpck_require__(78788)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(12951)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Deadline; + + +/***/ }), + +/***/ 54367: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127616,8 +206902,8 @@ apiLoader.services['detective'] = {}; AWS.Detective = Service.defineService('detective', ['2018-10-26']); Object.defineProperty(apiLoader.services['detective'], '2018-10-26', { get: function get() { - var model = __nccwpck_require__(25236); - model.paginators = (__nccwpck_require__(46384)/* .pagination */ .o); + var model = __nccwpck_require__(98172); + model.paginators = (__nccwpck_require__(19416)/* .pagination */ .X); return model; }, enumerable: true, @@ -127629,11 +206915,11 @@ module.exports = AWS.Detective; /***/ }), -/***/ 52479: +/***/ 6108: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127641,8 +206927,8 @@ apiLoader.services['devicefarm'] = {}; AWS.DeviceFarm = Service.defineService('devicefarm', ['2015-06-23']); Object.defineProperty(apiLoader.services['devicefarm'], '2015-06-23', { get: function get() { - var model = __nccwpck_require__(34023); - model.paginators = (__nccwpck_require__(37161)/* .pagination */ .o); + var model = __nccwpck_require__(83662); + model.paginators = (__nccwpck_require__(68358)/* .pagination */ .X); return model; }, enumerable: true, @@ -127654,11 +206940,11 @@ module.exports = AWS.DeviceFarm; /***/ }), -/***/ 54955: +/***/ 59586: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127666,8 +206952,8 @@ apiLoader.services['devopsguru'] = {}; AWS.DevOpsGuru = Service.defineService('devopsguru', ['2020-12-01']); Object.defineProperty(apiLoader.services['devopsguru'], '2020-12-01', { get: function get() { - var model = __nccwpck_require__(36592); - model.paginators = (__nccwpck_require__(95551)/* .pagination */ .o); + var model = __nccwpck_require__(96772); + model.paginators = (__nccwpck_require__(87920)/* .pagination */ .X); return model; }, enumerable: true, @@ -127679,11 +206965,11 @@ module.exports = AWS.DevOpsGuru; /***/ }), -/***/ 67884: +/***/ 7117: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127691,8 +206977,8 @@ apiLoader.services['directconnect'] = {}; AWS.DirectConnect = Service.defineService('directconnect', ['2012-10-25']); Object.defineProperty(apiLoader.services['directconnect'], '2012-10-25', { get: function get() { - var model = __nccwpck_require__(45125); - model.paginators = (__nccwpck_require__(26404)/* .pagination */ .o); + var model = __nccwpck_require__(59117); + model.paginators = (__nccwpck_require__(74463)/* .pagination */ .X); return model; }, enumerable: true, @@ -127704,11 +206990,11 @@ module.exports = AWS.DirectConnect; /***/ }), -/***/ 24855: +/***/ 81960: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127716,8 +207002,8 @@ apiLoader.services['directoryservice'] = {}; AWS.DirectoryService = Service.defineService('directoryservice', ['2015-04-16']); Object.defineProperty(apiLoader.services['directoryservice'], '2015-04-16', { get: function get() { - var model = __nccwpck_require__(47357); - model.paginators = (__nccwpck_require__(93412)/* .pagination */ .o); + var model = __nccwpck_require__(84589); + model.paginators = (__nccwpck_require__(21695)/* .pagination */ .X); return model; }, enumerable: true, @@ -127729,11 +207015,11 @@ module.exports = AWS.DirectoryService; /***/ }), -/***/ 28622: +/***/ 9758: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127741,8 +207027,8 @@ apiLoader.services['discovery'] = {}; AWS.Discovery = Service.defineService('discovery', ['2015-11-01']); Object.defineProperty(apiLoader.services['discovery'], '2015-11-01', { get: function get() { - var model = __nccwpck_require__(68951); - model.paginators = (__nccwpck_require__(19822)/* .pagination */ .o); + var model = __nccwpck_require__(21666); + model.paginators = (__nccwpck_require__(34018)/* .pagination */ .X); return model; }, enumerable: true, @@ -127754,11 +207040,11 @@ module.exports = AWS.Discovery; /***/ }), -/***/ 11711: +/***/ 96111: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127766,8 +207052,8 @@ apiLoader.services['dlm'] = {}; AWS.DLM = Service.defineService('dlm', ['2018-01-12']); Object.defineProperty(apiLoader.services['dlm'], '2018-01-12', { get: function get() { - var model = __nccwpck_require__(75485); - model.paginators = (__nccwpck_require__(98881)/* .pagination */ .o); + var model = __nccwpck_require__(65597); + model.paginators = (__nccwpck_require__(53551)/* .pagination */ .X); return model; }, enumerable: true, @@ -127779,11 +207065,11 @@ module.exports = AWS.DLM; /***/ }), -/***/ 76392: +/***/ 98936: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127791,9 +207077,9 @@ apiLoader.services['dms'] = {}; AWS.DMS = Service.defineService('dms', ['2016-01-01']); Object.defineProperty(apiLoader.services['dms'], '2016-01-01', { get: function get() { - var model = __nccwpck_require__(77953); - model.paginators = (__nccwpck_require__(36772)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(3500)/* .waiters */ .V); + var model = __nccwpck_require__(34086); + model.paginators = (__nccwpck_require__(6606)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(29437)/* .waiters */ .C); return model; }, enumerable: true, @@ -127805,22 +207091,22 @@ module.exports = AWS.DMS; /***/ }), -/***/ 37999: +/***/ 91912: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['docdb'] = {}; AWS.DocDB = Service.defineService('docdb', ['2014-10-31']); -__nccwpck_require__(32451); +__nccwpck_require__(21980); Object.defineProperty(apiLoader.services['docdb'], '2014-10-31', { get: function get() { - var model = __nccwpck_require__(4932); - model.paginators = (__nccwpck_require__(41408)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(36607)/* .waiters */ .V); + var model = __nccwpck_require__(31057); + model.paginators = (__nccwpck_require__(76491)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(59752)/* .waiters */ .C); return model; }, enumerable: true, @@ -127832,11 +207118,11 @@ module.exports = AWS.DocDB; /***/ }), -/***/ 80550: +/***/ 5549: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127844,8 +207130,8 @@ apiLoader.services['docdbelastic'] = {}; AWS.DocDBElastic = Service.defineService('docdbelastic', ['2022-11-28']); Object.defineProperty(apiLoader.services['docdbelastic'], '2022-11-28', { get: function get() { - var model = __nccwpck_require__(34162); - model.paginators = (__nccwpck_require__(89093)/* .pagination */ .o); + var model = __nccwpck_require__(88753); + model.paginators = (__nccwpck_require__(87307)/* .pagination */ .X); return model; }, enumerable: true, @@ -127857,11 +207143,11 @@ module.exports = AWS.DocDBElastic; /***/ }), -/***/ 95524: +/***/ 21935: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127869,8 +207155,8 @@ apiLoader.services['drs'] = {}; AWS.Drs = Service.defineService('drs', ['2020-02-26']); Object.defineProperty(apiLoader.services['drs'], '2020-02-26', { get: function get() { - var model = __nccwpck_require__(42548); - model.paginators = (__nccwpck_require__(44057)/* .pagination */ .o); + var model = __nccwpck_require__(30430); + model.paginators = (__nccwpck_require__(54998)/* .pagination */ .X); return model; }, enumerable: true, @@ -127882,22 +207168,22 @@ module.exports = AWS.Drs; /***/ }), -/***/ 32517: +/***/ 28842: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['dynamodb'] = {}; AWS.DynamoDB = Service.defineService('dynamodb', ['2011-12-05', '2012-08-10']); -__nccwpck_require__(34824); +__nccwpck_require__(48838); Object.defineProperty(apiLoader.services['dynamodb'], '2011-12-05', { get: function get() { - var model = __nccwpck_require__(29454); - model.paginators = (__nccwpck_require__(86884)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(24864)/* .waiters */ .V); + var model = __nccwpck_require__(15055); + model.paginators = (__nccwpck_require__(6005)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(55790)/* .waiters */ .C); return model; }, enumerable: true, @@ -127905,9 +207191,9 @@ Object.defineProperty(apiLoader.services['dynamodb'], '2011-12-05', { }); Object.defineProperty(apiLoader.services['dynamodb'], '2012-08-10', { get: function get() { - var model = __nccwpck_require__(54047); - model.paginators = (__nccwpck_require__(30482)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(48411)/* .waiters */ .V); + var model = __nccwpck_require__(90013); + model.paginators = (__nccwpck_require__(35247)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(69540)/* .waiters */ .C); return model; }, enumerable: true, @@ -127919,11 +207205,11 @@ module.exports = AWS.DynamoDB; /***/ }), -/***/ 13590: +/***/ 71593: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127931,8 +207217,8 @@ apiLoader.services['dynamodbstreams'] = {}; AWS.DynamoDBStreams = Service.defineService('dynamodbstreams', ['2012-08-10']); Object.defineProperty(apiLoader.services['dynamodbstreams'], '2012-08-10', { get: function get() { - var model = __nccwpck_require__(26098); - model.paginators = (__nccwpck_require__(40549)/* .pagination */ .o); + var model = __nccwpck_require__(19458); + model.paginators = (__nccwpck_require__(22274)/* .pagination */ .X); return model; }, enumerable: true, @@ -127944,11 +207230,11 @@ module.exports = AWS.DynamoDBStreams; /***/ }), -/***/ 24790: +/***/ 45580: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -127956,8 +207242,8 @@ apiLoader.services['ebs'] = {}; AWS.EBS = Service.defineService('ebs', ['2019-11-02']); Object.defineProperty(apiLoader.services['ebs'], '2019-11-02', { get: function get() { - var model = __nccwpck_require__(72220); - model.paginators = (__nccwpck_require__(85366)/* .pagination */ .o); + var model = __nccwpck_require__(649); + model.paginators = (__nccwpck_require__(92915)/* .pagination */ .X); return model; }, enumerable: true, @@ -127969,22 +207255,22 @@ module.exports = AWS.EBS; /***/ }), -/***/ 47886: +/***/ 24122: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['ec2'] = {}; AWS.EC2 = Service.defineService('ec2', ['2013-06-15*', '2013-10-15*', '2014-02-01*', '2014-05-01*', '2014-06-15*', '2014-09-01*', '2014-10-01*', '2015-03-01*', '2015-04-15*', '2015-10-01*', '2016-04-01*', '2016-09-15*', '2016-11-15']); -__nccwpck_require__(66829); +__nccwpck_require__(99182); Object.defineProperty(apiLoader.services['ec2'], '2016-11-15', { get: function get() { - var model = __nccwpck_require__(2658); - model.paginators = (__nccwpck_require__(82477)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(19153)/* .waiters */ .V); + var model = __nccwpck_require__(77222); + model.paginators = (__nccwpck_require__(74926)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(2973)/* .waiters */ .C); return model; }, enumerable: true, @@ -127996,11 +207282,11 @@ module.exports = AWS.EC2; /***/ }), -/***/ 87712: +/***/ 32035: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128008,8 +207294,8 @@ apiLoader.services['ec2instanceconnect'] = {}; AWS.EC2InstanceConnect = Service.defineService('ec2instanceconnect', ['2018-04-02']); Object.defineProperty(apiLoader.services['ec2instanceconnect'], '2018-04-02', { get: function get() { - var model = __nccwpck_require__(36007); - model.paginators = (__nccwpck_require__(38333)/* .pagination */ .o); + var model = __nccwpck_require__(91767); + model.paginators = (__nccwpck_require__(22637)/* .pagination */ .X); return model; }, enumerable: true, @@ -128021,11 +207307,11 @@ module.exports = AWS.EC2InstanceConnect; /***/ }), -/***/ 69107: +/***/ 8250: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128033,9 +207319,9 @@ apiLoader.services['ecr'] = {}; AWS.ECR = Service.defineService('ecr', ['2015-09-21']); Object.defineProperty(apiLoader.services['ecr'], '2015-09-21', { get: function get() { - var model = __nccwpck_require__(92405); - model.paginators = (__nccwpck_require__(25504)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(78925)/* .waiters */ .V); + var model = __nccwpck_require__(81947); + model.paginators = (__nccwpck_require__(44185)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(69754)/* .waiters */ .C); return model; }, enumerable: true, @@ -128047,11 +207333,11 @@ module.exports = AWS.ECR; /***/ }), -/***/ 46774: +/***/ 47299: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128059,8 +207345,8 @@ apiLoader.services['ecrpublic'] = {}; AWS.ECRPUBLIC = Service.defineService('ecrpublic', ['2020-10-30']); Object.defineProperty(apiLoader.services['ecrpublic'], '2020-10-30', { get: function get() { - var model = __nccwpck_require__(9668); - model.paginators = (__nccwpck_require__(81193)/* .pagination */ .o); + var model = __nccwpck_require__(65305); + model.paginators = (__nccwpck_require__(15683)/* .pagination */ .X); return model; }, enumerable: true, @@ -128072,11 +207358,11 @@ module.exports = AWS.ECRPUBLIC; /***/ }), -/***/ 58154: +/***/ 78761: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128084,9 +207370,9 @@ apiLoader.services['ecs'] = {}; AWS.ECS = Service.defineService('ecs', ['2014-11-13']); Object.defineProperty(apiLoader.services['ecs'], '2014-11-13', { get: function get() { - var model = __nccwpck_require__(44208); - model.paginators = (__nccwpck_require__(15738)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(1299)/* .waiters */ .V); + var model = __nccwpck_require__(24247); + model.paginators = (__nccwpck_require__(15149)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(90022)/* .waiters */ .C); return model; }, enumerable: true, @@ -128098,11 +207384,11 @@ module.exports = AWS.ECS; /***/ }), -/***/ 64787: +/***/ 64816: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128110,8 +207396,8 @@ apiLoader.services['efs'] = {}; AWS.EFS = Service.defineService('efs', ['2015-02-01']); Object.defineProperty(apiLoader.services['efs'], '2015-02-01', { get: function get() { - var model = __nccwpck_require__(54784); - model.paginators = (__nccwpck_require__(40174)/* .pagination */ .o); + var model = __nccwpck_require__(43424); + model.paginators = (__nccwpck_require__(17972)/* .pagination */ .X); return model; }, enumerable: true, @@ -128123,11 +207409,11 @@ module.exports = AWS.EFS; /***/ }), -/***/ 10756: +/***/ 56257: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128135,9 +207421,9 @@ apiLoader.services['eks'] = {}; AWS.EKS = Service.defineService('eks', ['2017-11-01']); Object.defineProperty(apiLoader.services['eks'], '2017-11-01', { get: function get() { - var model = __nccwpck_require__(51370); - model.paginators = (__nccwpck_require__(36490)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(88058)/* .waiters */ .V); + var model = __nccwpck_require__(33221); + model.paginators = (__nccwpck_require__(3655)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(45564)/* .waiters */ .C); return model; }, enumerable: true, @@ -128149,11 +207435,37 @@ module.exports = AWS.EKS; /***/ }), -/***/ 75959: +/***/ 65299: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['eksauth'] = {}; +AWS.EKSAuth = Service.defineService('eksauth', ['2023-11-26']); +Object.defineProperty(apiLoader.services['eksauth'], '2023-11-26', { + get: function get() { + var model = __nccwpck_require__(53932); + model.paginators = (__nccwpck_require__(8424)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(73235)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.EKSAuth; + + +/***/ }), + +/***/ 52212: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128161,9 +207473,9 @@ apiLoader.services['elasticache'] = {}; AWS.ElastiCache = Service.defineService('elasticache', ['2012-11-15*', '2014-03-24*', '2014-07-15*', '2014-09-30*', '2015-02-02']); Object.defineProperty(apiLoader.services['elasticache'], '2015-02-02', { get: function get() { - var model = __nccwpck_require__(58426); - model.paginators = (__nccwpck_require__(79559)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(29787)/* .waiters */ .V); + var model = __nccwpck_require__(84757); + model.paginators = (__nccwpck_require__(38807)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(12172)/* .waiters */ .C); return model; }, enumerable: true, @@ -128175,11 +207487,11 @@ module.exports = AWS.ElastiCache; /***/ }), -/***/ 73740: +/***/ 38538: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128187,9 +207499,9 @@ apiLoader.services['elasticbeanstalk'] = {}; AWS.ElasticBeanstalk = Service.defineService('elasticbeanstalk', ['2010-12-01']); Object.defineProperty(apiLoader.services['elasticbeanstalk'], '2010-12-01', { get: function get() { - var model = __nccwpck_require__(72508); - model.paginators = (__nccwpck_require__(72305)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(62534)/* .waiters */ .V); + var model = __nccwpck_require__(92104); + model.paginators = (__nccwpck_require__(44076)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(33983)/* .waiters */ .C); return model; }, enumerable: true, @@ -128201,11 +207513,11 @@ module.exports = AWS.ElasticBeanstalk; /***/ }), -/***/ 6857: +/***/ 14084: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128213,8 +207525,8 @@ apiLoader.services['elasticinference'] = {}; AWS.ElasticInference = Service.defineService('elasticinference', ['2017-07-25']); Object.defineProperty(apiLoader.services['elasticinference'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(83967); - model.paginators = (__nccwpck_require__(64906)/* .pagination */ .o); + var model = __nccwpck_require__(73994); + model.paginators = (__nccwpck_require__(63386)/* .pagination */ .X); return model; }, enumerable: true, @@ -128226,11 +207538,11 @@ module.exports = AWS.ElasticInference; /***/ }), -/***/ 49608: +/***/ 82524: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128238,9 +207550,9 @@ apiLoader.services['elastictranscoder'] = {}; AWS.ElasticTranscoder = Service.defineService('elastictranscoder', ['2012-09-25']); Object.defineProperty(apiLoader.services['elastictranscoder'], '2012-09-25', { get: function get() { - var model = __nccwpck_require__(23463); - model.paginators = (__nccwpck_require__(36121)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(59345)/* .waiters */ .V); + var model = __nccwpck_require__(2600); + model.paginators = (__nccwpck_require__(5356)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(6252)/* .waiters */ .C); return model; }, enumerable: true, @@ -128252,11 +207564,11 @@ module.exports = AWS.ElasticTranscoder; /***/ }), -/***/ 54147: +/***/ 42957: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128264,9 +207576,9 @@ apiLoader.services['elb'] = {}; AWS.ELB = Service.defineService('elb', ['2012-06-01']); Object.defineProperty(apiLoader.services['elb'], '2012-06-01', { get: function get() { - var model = __nccwpck_require__(66258); - model.paginators = (__nccwpck_require__(77372)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(56717)/* .waiters */ .V); + var model = __nccwpck_require__(77119); + model.paginators = (__nccwpck_require__(87749)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(15646)/* .waiters */ .C); return model; }, enumerable: true, @@ -128278,11 +207590,11 @@ module.exports = AWS.ELB; /***/ }), -/***/ 80764: +/***/ 61677: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128290,9 +207602,9 @@ apiLoader.services['elbv2'] = {}; AWS.ELBv2 = Service.defineService('elbv2', ['2015-12-01']); Object.defineProperty(apiLoader.services['elbv2'], '2015-12-01', { get: function get() { - var model = __nccwpck_require__(42628); - model.paginators = (__nccwpck_require__(12274)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(56106)/* .waiters */ .V); + var model = __nccwpck_require__(78941); + model.paginators = (__nccwpck_require__(96143)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(43460)/* .waiters */ .C); return model; }, enumerable: true, @@ -128304,11 +207616,11 @@ module.exports = AWS.ELBv2; /***/ }), -/***/ 96867: +/***/ 22884: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128316,9 +207628,9 @@ apiLoader.services['emr'] = {}; AWS.EMR = Service.defineService('emr', ['2009-03-31']); Object.defineProperty(apiLoader.services['emr'], '2009-03-31', { get: function get() { - var model = __nccwpck_require__(91298); - model.paginators = (__nccwpck_require__(62965)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(86792)/* .waiters */ .V); + var model = __nccwpck_require__(25740); + model.paginators = (__nccwpck_require__(65480)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(67315)/* .waiters */ .C); return model; }, enumerable: true, @@ -128330,11 +207642,11 @@ module.exports = AWS.EMR; /***/ }), -/***/ 74406: +/***/ 98352: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128342,8 +207654,8 @@ apiLoader.services['emrcontainers'] = {}; AWS.EMRcontainers = Service.defineService('emrcontainers', ['2020-10-01']); Object.defineProperty(apiLoader.services['emrcontainers'], '2020-10-01', { get: function get() { - var model = __nccwpck_require__(33922); - model.paginators = (__nccwpck_require__(87789)/* .pagination */ .o); + var model = __nccwpck_require__(13644); + model.paginators = (__nccwpck_require__(47976)/* .pagination */ .X); return model; }, enumerable: true, @@ -128355,11 +207667,11 @@ module.exports = AWS.EMRcontainers; /***/ }), -/***/ 93969: +/***/ 7726: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128367,8 +207679,8 @@ apiLoader.services['emrserverless'] = {}; AWS.EMRServerless = Service.defineService('emrserverless', ['2021-07-13']); Object.defineProperty(apiLoader.services['emrserverless'], '2021-07-13', { get: function get() { - var model = __nccwpck_require__(41070); - model.paginators = (__nccwpck_require__(39521)/* .pagination */ .o); + var model = __nccwpck_require__(22886); + model.paginators = (__nccwpck_require__(32302)/* .pagination */ .X); return model; }, enumerable: true, @@ -128380,11 +207692,11 @@ module.exports = AWS.EMRServerless; /***/ }), -/***/ 71733: +/***/ 65943: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128392,8 +207704,8 @@ apiLoader.services['entityresolution'] = {}; AWS.EntityResolution = Service.defineService('entityresolution', ['2018-05-10']); Object.defineProperty(apiLoader.services['entityresolution'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(61033); - model.paginators = (__nccwpck_require__(37403)/* .pagination */ .o); + var model = __nccwpck_require__(72837); + model.paginators = (__nccwpck_require__(94183)/* .pagination */ .X); return model; }, enumerable: true, @@ -128405,11 +207717,11 @@ module.exports = AWS.EntityResolution; /***/ }), -/***/ 62477: +/***/ 24554: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128417,8 +207729,8 @@ apiLoader.services['es'] = {}; AWS.ES = Service.defineService('es', ['2015-01-01']); Object.defineProperty(apiLoader.services['es'], '2015-01-01', { get: function get() { - var model = __nccwpck_require__(33943); - model.paginators = (__nccwpck_require__(78836)/* .pagination */ .o); + var model = __nccwpck_require__(93259); + model.paginators = (__nccwpck_require__(92489)/* .pagination */ .X); return model; }, enumerable: true, @@ -128430,21 +207742,21 @@ module.exports = AWS.ES; /***/ }), -/***/ 32018: +/***/ 35777: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['eventbridge'] = {}; AWS.EventBridge = Service.defineService('eventbridge', ['2015-10-07']); -__nccwpck_require__(52244); +__nccwpck_require__(16029); Object.defineProperty(apiLoader.services['eventbridge'], '2015-10-07', { get: function get() { - var model = __nccwpck_require__(9659); - model.paginators = (__nccwpck_require__(10871)/* .pagination */ .o); + var model = __nccwpck_require__(62116); + model.paginators = (__nccwpck_require__(44528)/* .pagination */ .X); return model; }, enumerable: true, @@ -128456,11 +207768,11 @@ module.exports = AWS.EventBridge; /***/ }), -/***/ 79041: +/***/ 6416: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128468,8 +207780,8 @@ apiLoader.services['evidently'] = {}; AWS.Evidently = Service.defineService('evidently', ['2021-02-01']); Object.defineProperty(apiLoader.services['evidently'], '2021-02-01', { get: function get() { - var model = __nccwpck_require__(41971); - model.paginators = (__nccwpck_require__(72960)/* .pagination */ .o); + var model = __nccwpck_require__(32783); + model.paginators = (__nccwpck_require__(16533)/* .pagination */ .X); return model; }, enumerable: true, @@ -128481,11 +207793,11 @@ module.exports = AWS.Evidently; /***/ }), -/***/ 18405: +/***/ 63379: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128493,8 +207805,8 @@ apiLoader.services['finspace'] = {}; AWS.Finspace = Service.defineService('finspace', ['2021-03-12']); Object.defineProperty(apiLoader.services['finspace'], '2021-03-12', { get: function get() { - var model = __nccwpck_require__(37836); - model.paginators = (__nccwpck_require__(7328)/* .pagination */ .o); + var model = __nccwpck_require__(77285); + model.paginators = (__nccwpck_require__(78823)/* .pagination */ .X); return model; }, enumerable: true, @@ -128506,11 +207818,11 @@ module.exports = AWS.Finspace; /***/ }), -/***/ 91717: +/***/ 40059: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128518,8 +207830,8 @@ apiLoader.services['finspacedata'] = {}; AWS.Finspacedata = Service.defineService('finspacedata', ['2020-07-13']); Object.defineProperty(apiLoader.services['finspacedata'], '2020-07-13', { get: function get() { - var model = __nccwpck_require__(83394); - model.paginators = (__nccwpck_require__(70371)/* .pagination */ .o); + var model = __nccwpck_require__(4110); + model.paginators = (__nccwpck_require__(65510)/* .pagination */ .X); return model; }, enumerable: true, @@ -128531,11 +207843,11 @@ module.exports = AWS.Finspacedata; /***/ }), -/***/ 20816: +/***/ 91087: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128543,8 +207855,8 @@ apiLoader.services['firehose'] = {}; AWS.Firehose = Service.defineService('firehose', ['2015-08-04']); Object.defineProperty(apiLoader.services['firehose'], '2015-08-04', { get: function get() { - var model = __nccwpck_require__(48886); - model.paginators = (__nccwpck_require__(47400)/* .pagination */ .o); + var model = __nccwpck_require__(69694); + model.paginators = (__nccwpck_require__(49334)/* .pagination */ .X); return model; }, enumerable: true, @@ -128556,11 +207868,11 @@ module.exports = AWS.Firehose; /***/ }), -/***/ 50249: +/***/ 90386: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128568,8 +207880,8 @@ apiLoader.services['fis'] = {}; AWS.Fis = Service.defineService('fis', ['2020-12-01']); Object.defineProperty(apiLoader.services['fis'], '2020-12-01', { get: function get() { - var model = __nccwpck_require__(98356); - model.paginators = (__nccwpck_require__(6544)/* .pagination */ .o); + var model = __nccwpck_require__(47561); + model.paginators = (__nccwpck_require__(98771)/* .pagination */ .X); return model; }, enumerable: true, @@ -128581,11 +207893,11 @@ module.exports = AWS.Fis; /***/ }), -/***/ 50430: +/***/ 23526: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128593,8 +207905,8 @@ apiLoader.services['fms'] = {}; AWS.FMS = Service.defineService('fms', ['2018-01-01']); Object.defineProperty(apiLoader.services['fms'], '2018-01-01', { get: function get() { - var model = __nccwpck_require__(22212); - model.paginators = (__nccwpck_require__(49570)/* .pagination */ .o); + var model = __nccwpck_require__(63166); + model.paginators = (__nccwpck_require__(64726)/* .pagination */ .X); return model; }, enumerable: true, @@ -128606,11 +207918,11 @@ module.exports = AWS.FMS; /***/ }), -/***/ 50630: +/***/ 34892: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128618,8 +207930,8 @@ apiLoader.services['forecastqueryservice'] = {}; AWS.ForecastQueryService = Service.defineService('forecastqueryservice', ['2018-06-26']); Object.defineProperty(apiLoader.services['forecastqueryservice'], '2018-06-26', { get: function get() { - var model = __nccwpck_require__(23865); - model.paginators = (__nccwpck_require__(98135)/* .pagination */ .o); + var model = __nccwpck_require__(90369); + model.paginators = (__nccwpck_require__(35835)/* .pagination */ .X); return model; }, enumerable: true, @@ -128631,11 +207943,11 @@ module.exports = AWS.ForecastQueryService; /***/ }), -/***/ 93884: +/***/ 87960: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128643,8 +207955,8 @@ apiLoader.services['forecastservice'] = {}; AWS.ForecastService = Service.defineService('forecastservice', ['2018-06-26']); Object.defineProperty(apiLoader.services['forecastservice'], '2018-06-26', { get: function get() { - var model = __nccwpck_require__(6468); - model.paginators = (__nccwpck_require__(45338)/* .pagination */ .o); + var model = __nccwpck_require__(58243); + model.paginators = (__nccwpck_require__(51889)/* .pagination */ .X); return model; }, enumerable: true, @@ -128656,11 +207968,11 @@ module.exports = AWS.ForecastService; /***/ }), -/***/ 21684: +/***/ 87344: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128668,8 +207980,8 @@ apiLoader.services['frauddetector'] = {}; AWS.FraudDetector = Service.defineService('frauddetector', ['2019-11-15']); Object.defineProperty(apiLoader.services['frauddetector'], '2019-11-15', { get: function get() { - var model = __nccwpck_require__(96105); - model.paginators = (__nccwpck_require__(9177)/* .pagination */ .o); + var model = __nccwpck_require__(56697); + model.paginators = (__nccwpck_require__(6435)/* .pagination */ .X); return model; }, enumerable: true, @@ -128681,97 +207993,97 @@ module.exports = AWS.FraudDetector; /***/ }), -/***/ 8765: +/***/ 2312: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['fsx'] = {}; -AWS.FSx = Service.defineService('fsx', ['2018-03-01']); -Object.defineProperty(apiLoader.services['fsx'], '2018-03-01', { +apiLoader.services['freetier'] = {}; +AWS.FreeTier = Service.defineService('freetier', ['2023-09-07']); +Object.defineProperty(apiLoader.services['freetier'], '2023-09-07', { get: function get() { - var model = __nccwpck_require__(58245); - model.paginators = (__nccwpck_require__(19882)/* .pagination */ .o); + var model = __nccwpck_require__(87390); + model.paginators = (__nccwpck_require__(5206)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.FSx; +module.exports = AWS.FreeTier; /***/ }), -/***/ 66358: +/***/ 27317: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['gamelift'] = {}; -AWS.GameLift = Service.defineService('gamelift', ['2015-10-01']); -Object.defineProperty(apiLoader.services['gamelift'], '2015-10-01', { +apiLoader.services['fsx'] = {}; +AWS.FSx = Service.defineService('fsx', ['2018-03-01']); +Object.defineProperty(apiLoader.services['fsx'], '2018-03-01', { get: function get() { - var model = __nccwpck_require__(69257); - model.paginators = (__nccwpck_require__(88381)/* .pagination */ .o); + var model = __nccwpck_require__(55145); + model.paginators = (__nccwpck_require__(85331)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.GameLift; +module.exports = AWS.FSx; /***/ }), -/***/ 32192: +/***/ 40285: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['gamesparks'] = {}; -AWS.GameSparks = Service.defineService('gamesparks', ['2021-08-17']); -Object.defineProperty(apiLoader.services['gamesparks'], '2021-08-17', { +apiLoader.services['gamelift'] = {}; +AWS.GameLift = Service.defineService('gamelift', ['2015-10-01']); +Object.defineProperty(apiLoader.services['gamelift'], '2015-10-01', { get: function get() { - var model = __nccwpck_require__(54092); - model.paginators = (__nccwpck_require__(51734)/* .pagination */ .o); + var model = __nccwpck_require__(8064); + model.paginators = (__nccwpck_require__(92308)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.GameSparks; +module.exports = AWS.GameLift; /***/ }), -/***/ 12460: +/***/ 95477: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['glacier'] = {}; AWS.Glacier = Service.defineService('glacier', ['2012-06-01']); -__nccwpck_require__(87583); +__nccwpck_require__(82745); Object.defineProperty(apiLoader.services['glacier'], '2012-06-01', { get: function get() { - var model = __nccwpck_require__(11545); - model.paginators = (__nccwpck_require__(54145)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(65182)/* .waiters */ .V); + var model = __nccwpck_require__(26578); + model.paginators = (__nccwpck_require__(70706)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(37305)/* .waiters */ .C); return model; }, enumerable: true, @@ -128783,11 +208095,11 @@ module.exports = AWS.Glacier; /***/ }), -/***/ 88628: +/***/ 56950: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128795,8 +208107,8 @@ apiLoader.services['globalaccelerator'] = {}; AWS.GlobalAccelerator = Service.defineService('globalaccelerator', ['2018-08-08']); Object.defineProperty(apiLoader.services['globalaccelerator'], '2018-08-08', { get: function get() { - var model = __nccwpck_require__(35365); - model.paginators = (__nccwpck_require__(14796)/* .pagination */ .o); + var model = __nccwpck_require__(70172); + model.paginators = (__nccwpck_require__(85304)/* .pagination */ .X); return model; }, enumerable: true, @@ -128808,11 +208120,11 @@ module.exports = AWS.GlobalAccelerator; /***/ }), -/***/ 3511: +/***/ 19731: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128820,8 +208132,8 @@ apiLoader.services['glue'] = {}; AWS.Glue = Service.defineService('glue', ['2017-03-31']); Object.defineProperty(apiLoader.services['glue'], '2017-03-31', { get: function get() { - var model = __nccwpck_require__(72268); - model.paginators = (__nccwpck_require__(26545)/* .pagination */ .o); + var model = __nccwpck_require__(115); + model.paginators = (__nccwpck_require__(74625)/* .pagination */ .X); return model; }, enumerable: true, @@ -128833,11 +208145,11 @@ module.exports = AWS.Glue; /***/ }), -/***/ 65764: +/***/ 84848: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128845,8 +208157,8 @@ apiLoader.services['grafana'] = {}; AWS.Grafana = Service.defineService('grafana', ['2020-08-18']); Object.defineProperty(apiLoader.services['grafana'], '2020-08-18', { get: function get() { - var model = __nccwpck_require__(29655); - model.paginators = (__nccwpck_require__(83188)/* .pagination */ .o); + var model = __nccwpck_require__(3400); + model.paginators = (__nccwpck_require__(74060)/* .pagination */ .X); return model; }, enumerable: true, @@ -128858,11 +208170,11 @@ module.exports = AWS.Grafana; /***/ }), -/***/ 78784: +/***/ 3913: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128870,7 +208182,7 @@ apiLoader.services['greengrass'] = {}; AWS.Greengrass = Service.defineService('greengrass', ['2017-06-07']); Object.defineProperty(apiLoader.services['greengrass'], '2017-06-07', { get: function get() { - var model = __nccwpck_require__(72575); + var model = __nccwpck_require__(19493); return model; }, enumerable: true, @@ -128882,11 +208194,11 @@ module.exports = AWS.Greengrass; /***/ }), -/***/ 22689: +/***/ 97905: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128894,8 +208206,8 @@ apiLoader.services['greengrassv2'] = {}; AWS.GreengrassV2 = Service.defineService('greengrassv2', ['2020-11-30']); Object.defineProperty(apiLoader.services['greengrassv2'], '2020-11-30', { get: function get() { - var model = __nccwpck_require__(57546); - model.paginators = (__nccwpck_require__(47961)/* .pagination */ .o); + var model = __nccwpck_require__(8437); + model.paginators = (__nccwpck_require__(44983)/* .pagination */ .X); return model; }, enumerable: true, @@ -128907,11 +208219,11 @@ module.exports = AWS.GreengrassV2; /***/ }), -/***/ 56399: +/***/ 39189: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128919,9 +208231,9 @@ apiLoader.services['groundstation'] = {}; AWS.GroundStation = Service.defineService('groundstation', ['2019-05-23']); Object.defineProperty(apiLoader.services['groundstation'], '2019-05-23', { get: function get() { - var model = __nccwpck_require__(27733); - model.paginators = (__nccwpck_require__(55974)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(77815)/* .waiters */ .V); + var model = __nccwpck_require__(92112); + model.paginators = (__nccwpck_require__(13060)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(17463)/* .waiters */ .C); return model; }, enumerable: true, @@ -128933,11 +208245,11 @@ module.exports = AWS.GroundStation; /***/ }), -/***/ 9126: +/***/ 7293: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128945,8 +208257,8 @@ apiLoader.services['guardduty'] = {}; AWS.GuardDuty = Service.defineService('guardduty', ['2017-11-28']); Object.defineProperty(apiLoader.services['guardduty'], '2017-11-28', { get: function get() { - var model = __nccwpck_require__(37793); - model.paginators = (__nccwpck_require__(87510)/* .pagination */ .o); + var model = __nccwpck_require__(24943); + model.paginators = (__nccwpck_require__(19704)/* .pagination */ .X); return model; }, enumerable: true, @@ -128958,11 +208270,11 @@ module.exports = AWS.GuardDuty; /***/ }), -/***/ 71045: +/***/ 62756: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128970,8 +208282,8 @@ apiLoader.services['health'] = {}; AWS.Health = Service.defineService('health', ['2016-08-04']); Object.defineProperty(apiLoader.services['health'], '2016-08-04', { get: function get() { - var model = __nccwpck_require__(8618); - model.paginators = (__nccwpck_require__(46725)/* .pagination */ .o); + var model = __nccwpck_require__(93570); + model.paginators = (__nccwpck_require__(61058)/* .pagination */ .X); return model; }, enumerable: true, @@ -128983,11 +208295,11 @@ module.exports = AWS.Health; /***/ }), -/***/ 45608: +/***/ 54195: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -128995,8 +208307,8 @@ apiLoader.services['healthlake'] = {}; AWS.HealthLake = Service.defineService('healthlake', ['2017-07-01']); Object.defineProperty(apiLoader.services['healthlake'], '2017-07-01', { get: function get() { - var model = __nccwpck_require__(13637); - model.paginators = (__nccwpck_require__(92834)/* .pagination */ .o); + var model = __nccwpck_require__(30336); + model.paginators = (__nccwpck_require__(19508)/* .pagination */ .X); return model; }, enumerable: true, @@ -129008,36 +208320,11 @@ module.exports = AWS.HealthLake; /***/ }), -/***/ 38397: +/***/ 51873: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['honeycode'] = {}; -AWS.Honeycode = Service.defineService('honeycode', ['2020-03-01']); -Object.defineProperty(apiLoader.services['honeycode'], '2020-03-01', { - get: function get() { - var model = __nccwpck_require__(27577); - model.paginators = (__nccwpck_require__(12243)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Honeycode; - - -/***/ }), - -/***/ 21246: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129045,9 +208332,9 @@ apiLoader.services['iam'] = {}; AWS.IAM = Service.defineService('iam', ['2010-05-08']); Object.defineProperty(apiLoader.services['iam'], '2010-05-08', { get: function get() { - var model = __nccwpck_require__(27041); - model.paginators = (__nccwpck_require__(97583)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(37757)/* .waiters */ .V); + var model = __nccwpck_require__(83316); + model.paginators = (__nccwpck_require__(40704)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(30347)/* .waiters */ .C); return model; }, enumerable: true, @@ -129059,11 +208346,11 @@ module.exports = AWS.IAM; /***/ }), -/***/ 71246: +/***/ 58867: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129071,8 +208358,8 @@ apiLoader.services['identitystore'] = {}; AWS.IdentityStore = Service.defineService('identitystore', ['2020-06-15']); Object.defineProperty(apiLoader.services['identitystore'], '2020-06-15', { get: function get() { - var model = __nccwpck_require__(75797); - model.paginators = (__nccwpck_require__(44872)/* .pagination */ .o); + var model = __nccwpck_require__(67392); + model.paginators = (__nccwpck_require__(8020)/* .pagination */ .X); return model; }, enumerable: true, @@ -129084,11 +208371,11 @@ module.exports = AWS.IdentityStore; /***/ }), -/***/ 72450: +/***/ 93614: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129096,8 +208383,8 @@ apiLoader.services['imagebuilder'] = {}; AWS.Imagebuilder = Service.defineService('imagebuilder', ['2019-12-02']); Object.defineProperty(apiLoader.services['imagebuilder'], '2019-12-02', { get: function get() { - var model = __nccwpck_require__(98139); - model.paginators = (__nccwpck_require__(60410)/* .pagination */ .o); + var model = __nccwpck_require__(92534); + model.paginators = (__nccwpck_require__(3070)/* .pagination */ .X); return model; }, enumerable: true, @@ -129109,11 +208396,11 @@ module.exports = AWS.Imagebuilder; /***/ }), -/***/ 95801: +/***/ 38181: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129121,8 +208408,8 @@ apiLoader.services['importexport'] = {}; AWS.ImportExport = Service.defineService('importexport', ['2010-06-01']); Object.defineProperty(apiLoader.services['importexport'], '2010-06-01', { get: function get() { - var model = __nccwpck_require__(80317); - model.paginators = (__nccwpck_require__(58037)/* .pagination */ .o); + var model = __nccwpck_require__(80606); + model.paginators = (__nccwpck_require__(8534)/* .pagination */ .X); return model; }, enumerable: true, @@ -129134,11 +208421,11 @@ module.exports = AWS.ImportExport; /***/ }), -/***/ 48983: +/***/ 23745: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129146,8 +208433,8 @@ apiLoader.services['inspector'] = {}; AWS.Inspector = Service.defineService('inspector', ['2015-08-18*', '2016-02-16']); Object.defineProperty(apiLoader.services['inspector'], '2016-02-16', { get: function get() { - var model = __nccwpck_require__(71649); - model.paginators = (__nccwpck_require__(69242)/* .pagination */ .o); + var model = __nccwpck_require__(61534); + model.paginators = (__nccwpck_require__(41750)/* .pagination */ .X); return model; }, enumerable: true, @@ -129159,11 +208446,11 @@ module.exports = AWS.Inspector; /***/ }), -/***/ 72161: +/***/ 46459: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129171,8 +208458,8 @@ apiLoader.services['inspector2'] = {}; AWS.Inspector2 = Service.defineService('inspector2', ['2020-06-08']); Object.defineProperty(apiLoader.services['inspector2'], '2020-06-08', { get: function get() { - var model = __nccwpck_require__(61291); - model.paginators = (__nccwpck_require__(17472)/* .pagination */ .o); + var model = __nccwpck_require__(73408); + model.paginators = (__nccwpck_require__(53236)/* .pagination */ .X); return model; }, enumerable: true, @@ -129184,11 +208471,36 @@ module.exports = AWS.Inspector2; /***/ }), -/***/ 92925: +/***/ 73920: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['inspectorscan'] = {}; +AWS.InspectorScan = Service.defineService('inspectorscan', ['2023-08-08']); +Object.defineProperty(apiLoader.services['inspectorscan'], '2023-08-08', { + get: function get() { + var model = __nccwpck_require__(79627); + model.paginators = (__nccwpck_require__(92137)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.InspectorScan; + + +/***/ }), + +/***/ 62181: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129196,9 +208508,9 @@ apiLoader.services['internetmonitor'] = {}; AWS.InternetMonitor = Service.defineService('internetmonitor', ['2021-06-03']); Object.defineProperty(apiLoader.services['internetmonitor'], '2021-06-03', { get: function get() { - var model = __nccwpck_require__(62158); - model.paginators = (__nccwpck_require__(64409)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(76543)/* .waiters */ .V); + var model = __nccwpck_require__(43742); + model.paginators = (__nccwpck_require__(23574)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(98213)/* .waiters */ .C); return model; }, enumerable: true, @@ -129210,11 +208522,11 @@ module.exports = AWS.InternetMonitor; /***/ }), -/***/ 19243: +/***/ 42884: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129222,8 +208534,8 @@ apiLoader.services['iot'] = {}; AWS.Iot = Service.defineService('iot', ['2015-05-28']); Object.defineProperty(apiLoader.services['iot'], '2015-05-28', { get: function get() { - var model = __nccwpck_require__(40063); - model.paginators = (__nccwpck_require__(43999)/* .pagination */ .o); + var model = __nccwpck_require__(90750); + model.paginators = (__nccwpck_require__(3318)/* .pagination */ .X); return model; }, enumerable: true, @@ -129235,11 +208547,11 @@ module.exports = AWS.Iot; /***/ }), -/***/ 37872: +/***/ 57147: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129247,7 +208559,7 @@ apiLoader.services['iot1clickdevicesservice'] = {}; AWS.IoT1ClickDevicesService = Service.defineService('iot1clickdevicesservice', ['2018-05-14']); Object.defineProperty(apiLoader.services['iot1clickdevicesservice'], '2018-05-14', { get: function get() { - var model = __nccwpck_require__(26663); + var model = __nccwpck_require__(71495); return model; }, enumerable: true, @@ -129259,11 +208571,11 @@ module.exports = AWS.IoT1ClickDevicesService; /***/ }), -/***/ 25171: +/***/ 91935: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129271,8 +208583,8 @@ apiLoader.services['iot1clickprojects'] = {}; AWS.IoT1ClickProjects = Service.defineService('iot1clickprojects', ['2018-05-14']); Object.defineProperty(apiLoader.services['iot1clickprojects'], '2018-05-14', { get: function get() { - var model = __nccwpck_require__(17364); - model.paginators = (__nccwpck_require__(54033)/* .pagination */ .o); + var model = __nccwpck_require__(95988); + model.paginators = (__nccwpck_require__(98784)/* .pagination */ .X); return model; }, enumerable: true, @@ -129284,11 +208596,11 @@ module.exports = AWS.IoT1ClickProjects; /***/ }), -/***/ 26401: +/***/ 17382: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129296,8 +208608,8 @@ apiLoader.services['iotanalytics'] = {}; AWS.IoTAnalytics = Service.defineService('iotanalytics', ['2017-11-27']); Object.defineProperty(apiLoader.services['iotanalytics'], '2017-11-27', { get: function get() { - var model = __nccwpck_require__(84609); - model.paginators = (__nccwpck_require__(45498)/* .pagination */ .o); + var model = __nccwpck_require__(26942); + model.paginators = (__nccwpck_require__(66614)/* .pagination */ .X); return model; }, enumerable: true, @@ -129309,21 +208621,21 @@ module.exports = AWS.IoTAnalytics; /***/ }), -/***/ 28646: +/***/ 17228: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['iotdata'] = {}; AWS.IotData = Service.defineService('iotdata', ['2015-05-28']); -__nccwpck_require__(9092); +__nccwpck_require__(68072); Object.defineProperty(apiLoader.services['iotdata'], '2015-05-28', { get: function get() { - var model = __nccwpck_require__(21717); - model.paginators = (__nccwpck_require__(31896)/* .pagination */ .o); + var model = __nccwpck_require__(25495); + model.paginators = (__nccwpck_require__(84397)/* .pagination */ .X); return model; }, enumerable: true, @@ -129335,11 +208647,11 @@ module.exports = AWS.IotData; /***/ }), -/***/ 57686: +/***/ 34368: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129347,8 +208659,8 @@ apiLoader.services['iotdeviceadvisor'] = {}; AWS.IotDeviceAdvisor = Service.defineService('iotdeviceadvisor', ['2020-09-18']); Object.defineProperty(apiLoader.services['iotdeviceadvisor'], '2020-09-18', { get: function get() { - var model = __nccwpck_require__(71394); - model.paginators = (__nccwpck_require__(49057)/* .pagination */ .o); + var model = __nccwpck_require__(59591); + model.paginators = (__nccwpck_require__(66301)/* .pagination */ .X); return model; }, enumerable: true, @@ -129360,11 +208672,11 @@ module.exports = AWS.IotDeviceAdvisor; /***/ }), -/***/ 15935: +/***/ 765: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129372,8 +208684,8 @@ apiLoader.services['iotevents'] = {}; AWS.IoTEvents = Service.defineService('iotevents', ['2018-07-27']); Object.defineProperty(apiLoader.services['iotevents'], '2018-07-27', { get: function get() { - var model = __nccwpck_require__(4483); - model.paginators = (__nccwpck_require__(39844)/* .pagination */ .o); + var model = __nccwpck_require__(58629); + model.paginators = (__nccwpck_require__(32295)/* .pagination */ .X); return model; }, enumerable: true, @@ -129385,11 +208697,11 @@ module.exports = AWS.IoTEvents; /***/ }), -/***/ 68717: +/***/ 29309: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129397,8 +208709,8 @@ apiLoader.services['ioteventsdata'] = {}; AWS.IoTEventsData = Service.defineService('ioteventsdata', ['2018-10-23']); Object.defineProperty(apiLoader.services['ioteventsdata'], '2018-10-23', { get: function get() { - var model = __nccwpck_require__(94282); - model.paginators = (__nccwpck_require__(11632)/* .pagination */ .o); + var model = __nccwpck_require__(25658); + model.paginators = (__nccwpck_require__(75498)/* .pagination */ .X); return model; }, enumerable: true, @@ -129410,11 +208722,11 @@ module.exports = AWS.IoTEventsData; /***/ }), -/***/ 77127: +/***/ 62751: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129422,8 +208734,8 @@ apiLoader.services['iotfleethub'] = {}; AWS.IoTFleetHub = Service.defineService('iotfleethub', ['2020-11-03']); Object.defineProperty(apiLoader.services['iotfleethub'], '2020-11-03', { get: function get() { - var model = __nccwpck_require__(56534); - model.paginators = (__nccwpck_require__(76120)/* .pagination */ .o); + var model = __nccwpck_require__(52595); + model.paginators = (__nccwpck_require__(68737)/* .pagination */ .X); return model; }, enumerable: true, @@ -129435,11 +208747,11 @@ module.exports = AWS.IoTFleetHub; /***/ }), -/***/ 70678: +/***/ 58650: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129447,9 +208759,9 @@ apiLoader.services['iotfleetwise'] = {}; AWS.IoTFleetWise = Service.defineService('iotfleetwise', ['2021-06-17']); Object.defineProperty(apiLoader.services['iotfleetwise'], '2021-06-17', { get: function get() { - var model = __nccwpck_require__(68937); - model.paginators = (__nccwpck_require__(85715)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(23391)/* .waiters */ .V); + var model = __nccwpck_require__(65212); + model.paginators = (__nccwpck_require__(11960)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(34275)/* .waiters */ .C); return model; }, enumerable: true, @@ -129461,11 +208773,11 @@ module.exports = AWS.IoTFleetWise; /***/ }), -/***/ 24702: +/***/ 59388: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129473,8 +208785,8 @@ apiLoader.services['iotjobsdataplane'] = {}; AWS.IoTJobsDataPlane = Service.defineService('iotjobsdataplane', ['2017-09-29']); Object.defineProperty(apiLoader.services['iotjobsdataplane'], '2017-09-29', { get: function get() { - var model = __nccwpck_require__(12147); - model.paginators = (__nccwpck_require__(58593)/* .pagination */ .o); + var model = __nccwpck_require__(51145); + model.paginators = (__nccwpck_require__(81459)/* .pagination */ .X); return model; }, enumerable: true, @@ -129486,36 +208798,11 @@ module.exports = AWS.IoTJobsDataPlane; /***/ }), -/***/ 85131: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotroborunner'] = {}; -AWS.IoTRoboRunner = Service.defineService('iotroborunner', ['2018-05-10']); -Object.defineProperty(apiLoader.services['iotroborunner'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(11483); - model.paginators = (__nccwpck_require__(82393)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTRoboRunner; - - -/***/ }), - -/***/ 23949: +/***/ 79919: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129523,8 +208810,8 @@ apiLoader.services['iotsecuretunneling'] = {}; AWS.IoTSecureTunneling = Service.defineService('iotsecuretunneling', ['2018-10-05']); Object.defineProperty(apiLoader.services['iotsecuretunneling'], '2018-10-05', { get: function get() { - var model = __nccwpck_require__(99946); - model.paginators = (__nccwpck_require__(97884)/* .pagination */ .o); + var model = __nccwpck_require__(71861); + model.paginators = (__nccwpck_require__(12023)/* .pagination */ .X); return model; }, enumerable: true, @@ -129536,11 +208823,11 @@ module.exports = AWS.IoTSecureTunneling; /***/ }), -/***/ 27164: +/***/ 69587: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129548,9 +208835,9 @@ apiLoader.services['iotsitewise'] = {}; AWS.IoTSiteWise = Service.defineService('iotsitewise', ['2019-12-02']); Object.defineProperty(apiLoader.services['iotsitewise'], '2019-12-02', { get: function get() { - var model = __nccwpck_require__(44429); - model.paginators = (__nccwpck_require__(27558)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(80458)/* .waiters */ .V); + var model = __nccwpck_require__(70359); + model.paginators = (__nccwpck_require__(70925)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(87814)/* .waiters */ .C); return model; }, enumerable: true, @@ -129562,11 +208849,11 @@ module.exports = AWS.IoTSiteWise; /***/ }), -/***/ 51160: +/***/ 3045: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129574,8 +208861,8 @@ apiLoader.services['iotthingsgraph'] = {}; AWS.IoTThingsGraph = Service.defineService('iotthingsgraph', ['2018-09-06']); Object.defineProperty(apiLoader.services['iotthingsgraph'], '2018-09-06', { get: function get() { - var model = __nccwpck_require__(84893); - model.paginators = (__nccwpck_require__(99418)/* .pagination */ .o); + var model = __nccwpck_require__(80476); + model.paginators = (__nccwpck_require__(35672)/* .pagination */ .X); return model; }, enumerable: true, @@ -129587,11 +208874,11 @@ module.exports = AWS.IoTThingsGraph; /***/ }), -/***/ 79238: +/***/ 66564: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129599,9 +208886,9 @@ apiLoader.services['iottwinmaker'] = {}; AWS.IoTTwinMaker = Service.defineService('iottwinmaker', ['2021-11-29']); Object.defineProperty(apiLoader.services['iottwinmaker'], '2021-11-29', { get: function get() { - var model = __nccwpck_require__(30382); - model.paginators = (__nccwpck_require__(93389)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(41496)/* .waiters */ .V); + var model = __nccwpck_require__(61095); + model.paginators = (__nccwpck_require__(98589)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(26102)/* .waiters */ .C); return model; }, enumerable: true, @@ -129613,11 +208900,11 @@ module.exports = AWS.IoTTwinMaker; /***/ }), -/***/ 99798: +/***/ 79240: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129625,8 +208912,8 @@ apiLoader.services['iotwireless'] = {}; AWS.IoTWireless = Service.defineService('iotwireless', ['2020-11-22']); Object.defineProperty(apiLoader.services['iotwireless'], '2020-11-22', { get: function get() { - var model = __nccwpck_require__(78052); - model.paginators = (__nccwpck_require__(13156)/* .pagination */ .o); + var model = __nccwpck_require__(49175); + model.paginators = (__nccwpck_require__(52333)/* .pagination */ .X); return model; }, enumerable: true, @@ -129638,11 +208925,11 @@ module.exports = AWS.IoTWireless; /***/ }), -/***/ 70017: +/***/ 38828: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129650,8 +208937,8 @@ apiLoader.services['ivs'] = {}; AWS.IVS = Service.defineService('ivs', ['2020-07-14']); Object.defineProperty(apiLoader.services['ivs'], '2020-07-14', { get: function get() { - var model = __nccwpck_require__(34175); - model.paginators = (__nccwpck_require__(45289)/* .pagination */ .o); + var model = __nccwpck_require__(65955); + model.paginators = (__nccwpck_require__(73649)/* .pagination */ .X); return model; }, enumerable: true, @@ -129663,11 +208950,11 @@ module.exports = AWS.IVS; /***/ }), -/***/ 46378: +/***/ 47522: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129675,8 +208962,9 @@ apiLoader.services['ivschat'] = {}; AWS.Ivschat = Service.defineService('ivschat', ['2020-07-14']); Object.defineProperty(apiLoader.services['ivschat'], '2020-07-14', { get: function get() { - var model = __nccwpck_require__(67409); - model.paginators = (__nccwpck_require__(85556)/* .pagination */ .o); + var model = __nccwpck_require__(93121); + model.paginators = (__nccwpck_require__(77403)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(24120)/* .waiters */ .C); return model; }, enumerable: true, @@ -129688,11 +208976,11 @@ module.exports = AWS.Ivschat; /***/ }), -/***/ 92938: +/***/ 63485: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129700,8 +208988,9 @@ apiLoader.services['ivsrealtime'] = {}; AWS.IVSRealTime = Service.defineService('ivsrealtime', ['2020-07-14']); Object.defineProperty(apiLoader.services['ivsrealtime'], '2020-07-14', { get: function get() { - var model = __nccwpck_require__(23084); - model.paginators = (__nccwpck_require__(64507)/* .pagination */ .o); + var model = __nccwpck_require__(68025); + model.paginators = (__nccwpck_require__(5091)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(77856)/* .waiters */ .C); return model; }, enumerable: true, @@ -129713,11 +209002,11 @@ module.exports = AWS.IVSRealTime; /***/ }), -/***/ 26851: +/***/ 15277: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129725,8 +209014,8 @@ apiLoader.services['kafka'] = {}; AWS.Kafka = Service.defineService('kafka', ['2018-11-14']); Object.defineProperty(apiLoader.services['kafka'], '2018-11-14', { get: function get() { - var model = __nccwpck_require__(38473); - model.paginators = (__nccwpck_require__(79729)/* .pagination */ .o); + var model = __nccwpck_require__(10427); + model.paginators = (__nccwpck_require__(82681)/* .pagination */ .X); return model; }, enumerable: true, @@ -129738,11 +209027,11 @@ module.exports = AWS.Kafka; /***/ }), -/***/ 40557: +/***/ 61958: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129750,8 +209039,8 @@ apiLoader.services['kafkaconnect'] = {}; AWS.KafkaConnect = Service.defineService('kafkaconnect', ['2021-09-14']); Object.defineProperty(apiLoader.services['kafkaconnect'], '2021-09-14', { get: function get() { - var model = __nccwpck_require__(80867); - model.paginators = (__nccwpck_require__(32924)/* .pagination */ .o); + var model = __nccwpck_require__(40614); + model.paginators = (__nccwpck_require__(59950)/* .pagination */ .X); return model; }, enumerable: true, @@ -129763,11 +209052,11 @@ module.exports = AWS.KafkaConnect; /***/ }), -/***/ 51962: +/***/ 23877: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129775,8 +209064,8 @@ apiLoader.services['kendra'] = {}; AWS.Kendra = Service.defineService('kendra', ['2019-02-03']); Object.defineProperty(apiLoader.services['kendra'], '2019-02-03', { get: function get() { - var model = __nccwpck_require__(80100); - model.paginators = (__nccwpck_require__(64519)/* .pagination */ .o); + var model = __nccwpck_require__(78671); + model.paginators = (__nccwpck_require__(11957)/* .pagination */ .X); return model; }, enumerable: true, @@ -129788,11 +209077,11 @@ module.exports = AWS.Kendra; /***/ }), -/***/ 17532: +/***/ 69243: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129800,8 +209089,8 @@ apiLoader.services['kendraranking'] = {}; AWS.KendraRanking = Service.defineService('kendraranking', ['2022-10-19']); Object.defineProperty(apiLoader.services['kendraranking'], '2022-10-19', { get: function get() { - var model = __nccwpck_require__(66044); - model.paginators = (__nccwpck_require__(38563)/* .pagination */ .o); + var model = __nccwpck_require__(78446); + model.paginators = (__nccwpck_require__(48038)/* .pagination */ .X); return model; }, enumerable: true, @@ -129813,11 +209102,11 @@ module.exports = AWS.KendraRanking; /***/ }), -/***/ 97127: +/***/ 44640: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129825,9 +209114,9 @@ apiLoader.services['keyspaces'] = {}; AWS.Keyspaces = Service.defineService('keyspaces', ['2022-02-10']); Object.defineProperty(apiLoader.services['keyspaces'], '2022-02-10', { get: function get() { - var model = __nccwpck_require__(59857); - model.paginators = (__nccwpck_require__(19252)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(53164)/* .waiters */ .V); + var model = __nccwpck_require__(33640); + model.paginators = (__nccwpck_require__(68396)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(50399)/* .waiters */ .C); return model; }, enumerable: true, @@ -129839,11 +209128,11 @@ module.exports = AWS.Keyspaces; /***/ }), -/***/ 98700: +/***/ 85546: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129851,9 +209140,9 @@ apiLoader.services['kinesis'] = {}; AWS.Kinesis = Service.defineService('kinesis', ['2013-12-02']); Object.defineProperty(apiLoader.services['kinesis'], '2013-12-02', { get: function get() { - var model = __nccwpck_require__(648); - model.paginators = (__nccwpck_require__(10424)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(54059)/* .waiters */ .V); + var model = __nccwpck_require__(66658); + model.paginators = (__nccwpck_require__(27714)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(2249)/* .waiters */ .C); return model; }, enumerable: true, @@ -129865,11 +209154,11 @@ module.exports = AWS.Kinesis; /***/ }), -/***/ 26685: +/***/ 51380: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129877,8 +209166,8 @@ apiLoader.services['kinesisanalytics'] = {}; AWS.KinesisAnalytics = Service.defineService('kinesisanalytics', ['2015-08-14']); Object.defineProperty(apiLoader.services['kinesisanalytics'], '2015-08-14', { get: function get() { - var model = __nccwpck_require__(72653); - model.paginators = (__nccwpck_require__(73535)/* .pagination */ .o); + var model = __nccwpck_require__(59454); + model.paginators = (__nccwpck_require__(90038)/* .pagination */ .X); return model; }, enumerable: true, @@ -129890,11 +209179,11 @@ module.exports = AWS.KinesisAnalytics; /***/ }), -/***/ 58515: +/***/ 88544: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129902,8 +209191,8 @@ apiLoader.services['kinesisanalyticsv2'] = {}; AWS.KinesisAnalyticsV2 = Service.defineService('kinesisanalyticsv2', ['2018-05-23']); Object.defineProperty(apiLoader.services['kinesisanalyticsv2'], '2018-05-23', { get: function get() { - var model = __nccwpck_require__(56485); - model.paginators = (__nccwpck_require__(52495)/* .pagination */ .o); + var model = __nccwpck_require__(94590); + model.paginators = (__nccwpck_require__(80854)/* .pagination */ .X); return model; }, enumerable: true, @@ -129915,11 +209204,11 @@ module.exports = AWS.KinesisAnalyticsV2; /***/ }), -/***/ 43095: +/***/ 60615: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129927,8 +209216,8 @@ apiLoader.services['kinesisvideo'] = {}; AWS.KinesisVideo = Service.defineService('kinesisvideo', ['2017-09-30']); Object.defineProperty(apiLoader.services['kinesisvideo'], '2017-09-30', { get: function get() { - var model = __nccwpck_require__(96305); - model.paginators = (__nccwpck_require__(50061)/* .pagination */ .o); + var model = __nccwpck_require__(17346); + model.paginators = (__nccwpck_require__(53282)/* .pagination */ .X); return model; }, enumerable: true, @@ -129940,11 +209229,11 @@ module.exports = AWS.KinesisVideo; /***/ }), -/***/ 48780: +/***/ 39561: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129952,8 +209241,8 @@ apiLoader.services['kinesisvideoarchivedmedia'] = {}; AWS.KinesisVideoArchivedMedia = Service.defineService('kinesisvideoarchivedmedia', ['2017-09-30']); Object.defineProperty(apiLoader.services['kinesisvideoarchivedmedia'], '2017-09-30', { get: function get() { - var model = __nccwpck_require__(78868); - model.paginators = (__nccwpck_require__(27352)/* .pagination */ .o); + var model = __nccwpck_require__(1621); + model.paginators = (__nccwpck_require__(33815)/* .pagination */ .X); return model; }, enumerable: true, @@ -129965,11 +209254,11 @@ module.exports = AWS.KinesisVideoArchivedMedia; /***/ }), -/***/ 17345: +/***/ 56243: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -129977,8 +209266,8 @@ apiLoader.services['kinesisvideomedia'] = {}; AWS.KinesisVideoMedia = Service.defineService('kinesisvideomedia', ['2017-09-30']); Object.defineProperty(apiLoader.services['kinesisvideomedia'], '2017-09-30', { get: function get() { - var model = __nccwpck_require__(18898); - model.paginators = (__nccwpck_require__(85061)/* .pagination */ .o); + var model = __nccwpck_require__(36674); + model.paginators = (__nccwpck_require__(70370)/* .pagination */ .X); return model; }, enumerable: true, @@ -129990,11 +209279,11 @@ module.exports = AWS.KinesisVideoMedia; /***/ }), -/***/ 93470: +/***/ 75227: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130002,8 +209291,8 @@ apiLoader.services['kinesisvideosignalingchannels'] = {}; AWS.KinesisVideoSignalingChannels = Service.defineService('kinesisvideosignalingchannels', ['2019-12-04']); Object.defineProperty(apiLoader.services['kinesisvideosignalingchannels'], '2019-12-04', { get: function get() { - var model = __nccwpck_require__(89769); - model.paginators = (__nccwpck_require__(41939)/* .pagination */ .o); + var model = __nccwpck_require__(65667); + model.paginators = (__nccwpck_require__(77617)/* .pagination */ .X); return model; }, enumerable: true, @@ -130015,11 +209304,11 @@ module.exports = AWS.KinesisVideoSignalingChannels; /***/ }), -/***/ 62300: +/***/ 40917: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130027,8 +209316,8 @@ apiLoader.services['kinesisvideowebrtcstorage'] = {}; AWS.KinesisVideoWebRTCStorage = Service.defineService('kinesisvideowebrtcstorage', ['2018-05-10']); Object.defineProperty(apiLoader.services['kinesisvideowebrtcstorage'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(62761); - model.paginators = (__nccwpck_require__(3540)/* .pagination */ .o); + var model = __nccwpck_require__(90148); + model.paginators = (__nccwpck_require__(84400)/* .pagination */ .X); return model; }, enumerable: true, @@ -130040,11 +209329,11 @@ module.exports = AWS.KinesisVideoWebRTCStorage; /***/ }), -/***/ 86783: +/***/ 74485: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130052,8 +209341,8 @@ apiLoader.services['kms'] = {}; AWS.KMS = Service.defineService('kms', ['2014-11-01']); Object.defineProperty(apiLoader.services['kms'], '2014-11-01', { get: function get() { - var model = __nccwpck_require__(1219); - model.paginators = (__nccwpck_require__(20541)/* .pagination */ .o); + var model = __nccwpck_require__(40996); + model.paginators = (__nccwpck_require__(6992)/* .pagination */ .X); return model; }, enumerable: true, @@ -130065,11 +209354,11 @@ module.exports = AWS.KMS; /***/ }), -/***/ 28658: +/***/ 76894: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130077,8 +209366,8 @@ apiLoader.services['lakeformation'] = {}; AWS.LakeFormation = Service.defineService('lakeformation', ['2017-03-31']); Object.defineProperty(apiLoader.services['lakeformation'], '2017-03-31', { get: function get() { - var model = __nccwpck_require__(82210); - model.paginators = (__nccwpck_require__(61488)/* .pagination */ .o); + var model = __nccwpck_require__(49530); + model.paginators = (__nccwpck_require__(48778)/* .pagination */ .X); return model; }, enumerable: true, @@ -130090,21 +209379,21 @@ module.exports = AWS.LakeFormation; /***/ }), -/***/ 42012: +/***/ 11109: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['lambda'] = {}; AWS.Lambda = Service.defineService('lambda', ['2014-11-11', '2015-03-31']); -__nccwpck_require__(19620); +__nccwpck_require__(46849); Object.defineProperty(apiLoader.services['lambda'], '2014-11-11', { get: function get() { - var model = __nccwpck_require__(91251); - model.paginators = (__nccwpck_require__(79210)/* .pagination */ .o); + var model = __nccwpck_require__(7847); + model.paginators = (__nccwpck_require__(72189)/* .pagination */ .X); return model; }, enumerable: true, @@ -130112,9 +209401,9 @@ Object.defineProperty(apiLoader.services['lambda'], '2014-11-11', { }); Object.defineProperty(apiLoader.services['lambda'], '2015-03-31', { get: function get() { - var model = __nccwpck_require__(29103); - model.paginators = (__nccwpck_require__(32057)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(40626)/* .waiters */ .V); + var model = __nccwpck_require__(59855); + model.paginators = (__nccwpck_require__(38549)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(51726)/* .waiters */ .C); return model; }, enumerable: true, @@ -130126,11 +209415,36 @@ module.exports = AWS.Lambda; /***/ }), -/***/ 46003: +/***/ 25858: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['launchwizard'] = {}; +AWS.LaunchWizard = Service.defineService('launchwizard', ['2018-05-10']); +Object.defineProperty(apiLoader.services['launchwizard'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(29929); + model.paginators = (__nccwpck_require__(51)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.LaunchWizard; + + +/***/ }), + +/***/ 60253: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130138,8 +209452,8 @@ apiLoader.services['lexmodelbuildingservice'] = {}; AWS.LexModelBuildingService = Service.defineService('lexmodelbuildingservice', ['2017-04-19']); Object.defineProperty(apiLoader.services['lexmodelbuildingservice'], '2017-04-19', { get: function get() { - var model = __nccwpck_require__(96327); - model.paginators = (__nccwpck_require__(12348)/* .pagination */ .o); + var model = __nccwpck_require__(91703); + model.paginators = (__nccwpck_require__(84058)/* .pagination */ .X); return model; }, enumerable: true, @@ -130151,11 +209465,11 @@ module.exports = AWS.LexModelBuildingService; /***/ }), -/***/ 22227: +/***/ 84263: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130163,9 +209477,9 @@ apiLoader.services['lexmodelsv2'] = {}; AWS.LexModelsV2 = Service.defineService('lexmodelsv2', ['2020-08-07']); Object.defineProperty(apiLoader.services['lexmodelsv2'], '2020-08-07', { get: function get() { - var model = __nccwpck_require__(98781); - model.paginators = (__nccwpck_require__(49461)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(55520)/* .waiters */ .V); + var model = __nccwpck_require__(83875); + model.paginators = (__nccwpck_require__(29137)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(35410)/* .waiters */ .C); return model; }, enumerable: true, @@ -130177,11 +209491,11 @@ module.exports = AWS.LexModelsV2; /***/ }), -/***/ 58781: +/***/ 88801: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130189,8 +209503,8 @@ apiLoader.services['lexruntime'] = {}; AWS.LexRuntime = Service.defineService('lexruntime', ['2016-11-28']); Object.defineProperty(apiLoader.services['lexruntime'], '2016-11-28', { get: function get() { - var model = __nccwpck_require__(11059); - model.paginators = (__nccwpck_require__(97715)/* .pagination */ .o); + var model = __nccwpck_require__(16813); + model.paginators = (__nccwpck_require__(50815)/* .pagination */ .X); return model; }, enumerable: true, @@ -130202,11 +209516,11 @@ module.exports = AWS.LexRuntime; /***/ }), -/***/ 3529: +/***/ 46793: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130214,8 +209528,8 @@ apiLoader.services['lexruntimev2'] = {}; AWS.LexRuntimeV2 = Service.defineService('lexruntimev2', ['2020-08-07']); Object.defineProperty(apiLoader.services['lexruntimev2'], '2020-08-07', { get: function get() { - var model = __nccwpck_require__(17908); - model.paginators = (__nccwpck_require__(469)/* .pagination */ .o); + var model = __nccwpck_require__(7913); + model.paginators = (__nccwpck_require__(3635)/* .pagination */ .X); return model; }, enumerable: true, @@ -130227,11 +209541,11 @@ module.exports = AWS.LexRuntimeV2; /***/ }), -/***/ 92870: +/***/ 27024: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130239,8 +209553,8 @@ apiLoader.services['licensemanager'] = {}; AWS.LicenseManager = Service.defineService('licensemanager', ['2018-08-01']); Object.defineProperty(apiLoader.services['licensemanager'], '2018-08-01', { get: function get() { - var model = __nccwpck_require__(19160); - model.paginators = (__nccwpck_require__(77552)/* .pagination */ .o); + var model = __nccwpck_require__(7638); + model.paginators = (__nccwpck_require__(85886)/* .pagination */ .X); return model; }, enumerable: true, @@ -130252,11 +209566,11 @@ module.exports = AWS.LicenseManager; /***/ }), -/***/ 62867: +/***/ 82146: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130264,8 +209578,8 @@ apiLoader.services['licensemanagerlinuxsubscriptions'] = {}; AWS.LicenseManagerLinuxSubscriptions = Service.defineService('licensemanagerlinuxsubscriptions', ['2018-05-10']); Object.defineProperty(apiLoader.services['licensemanagerlinuxsubscriptions'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(94260); - model.paginators = (__nccwpck_require__(60467)/* .pagination */ .o); + var model = __nccwpck_require__(35529); + model.paginators = (__nccwpck_require__(83507)/* .pagination */ .X); return model; }, enumerable: true, @@ -130277,11 +209591,11 @@ module.exports = AWS.LicenseManagerLinuxSubscriptions; /***/ }), -/***/ 68620: +/***/ 94297: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130289,8 +209603,8 @@ apiLoader.services['licensemanagerusersubscriptions'] = {}; AWS.LicenseManagerUserSubscriptions = Service.defineService('licensemanagerusersubscriptions', ['2018-05-10']); Object.defineProperty(apiLoader.services['licensemanagerusersubscriptions'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(48338); - model.paginators = (__nccwpck_require__(84416)/* .pagination */ .o); + var model = __nccwpck_require__(87102); + model.paginators = (__nccwpck_require__(43209)/* .pagination */ .X); return model; }, enumerable: true, @@ -130302,11 +209616,11 @@ module.exports = AWS.LicenseManagerUserSubscriptions; /***/ }), -/***/ 96422: +/***/ 35525: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130314,8 +209628,8 @@ apiLoader.services['lightsail'] = {}; AWS.Lightsail = Service.defineService('lightsail', ['2016-11-28']); Object.defineProperty(apiLoader.services['lightsail'], '2016-11-28', { get: function get() { - var model = __nccwpck_require__(94784); - model.paginators = (__nccwpck_require__(17528)/* .pagination */ .o); + var model = __nccwpck_require__(5027); + model.paginators = (__nccwpck_require__(64145)/* .pagination */ .X); return model; }, enumerable: true, @@ -130327,11 +209641,11 @@ module.exports = AWS.Lightsail; /***/ }), -/***/ 98717: +/***/ 1881: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130339,8 +209653,8 @@ apiLoader.services['location'] = {}; AWS.Location = Service.defineService('location', ['2020-11-19']); Object.defineProperty(apiLoader.services['location'], '2020-11-19', { get: function get() { - var model = __nccwpck_require__(79257); - model.paginators = (__nccwpck_require__(53350)/* .pagination */ .o); + var model = __nccwpck_require__(30204); + model.paginators = (__nccwpck_require__(3320)/* .pagination */ .X); return model; }, enumerable: true, @@ -130352,11 +209666,11 @@ module.exports = AWS.Location; /***/ }), -/***/ 37240: +/***/ 19421: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130364,8 +209678,8 @@ apiLoader.services['lookoutequipment'] = {}; AWS.LookoutEquipment = Service.defineService('lookoutequipment', ['2020-12-15']); Object.defineProperty(apiLoader.services['lookoutequipment'], '2020-12-15', { get: function get() { - var model = __nccwpck_require__(50969); - model.paginators = (__nccwpck_require__(92858)/* .pagination */ .o); + var model = __nccwpck_require__(49659); + model.paginators = (__nccwpck_require__(25401)/* .pagination */ .X); return model; }, enumerable: true, @@ -130377,11 +209691,11 @@ module.exports = AWS.LookoutEquipment; /***/ }), -/***/ 79003: +/***/ 17724: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130389,8 +209703,8 @@ apiLoader.services['lookoutmetrics'] = {}; AWS.LookoutMetrics = Service.defineService('lookoutmetrics', ['2017-07-25']); Object.defineProperty(apiLoader.services['lookoutmetrics'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(37749); - model.paginators = (__nccwpck_require__(13366)/* .pagination */ .o); + var model = __nccwpck_require__(30231); + model.paginators = (__nccwpck_require__(44109)/* .pagination */ .X); return model; }, enumerable: true, @@ -130402,11 +209716,11 @@ module.exports = AWS.LookoutMetrics; /***/ }), -/***/ 33424: +/***/ 45085: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130414,8 +209728,8 @@ apiLoader.services['lookoutvision'] = {}; AWS.LookoutVision = Service.defineService('lookoutvision', ['2020-11-20']); Object.defineProperty(apiLoader.services['lookoutvision'], '2020-11-20', { get: function get() { - var model = __nccwpck_require__(15110); - model.paginators = (__nccwpck_require__(45644)/* .pagination */ .o); + var model = __nccwpck_require__(25490); + model.paginators = (__nccwpck_require__(99154)/* .pagination */ .X); return model; }, enumerable: true, @@ -130427,11 +209741,11 @@ module.exports = AWS.LookoutVision; /***/ }), -/***/ 84112: +/***/ 26497: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130439,8 +209753,8 @@ apiLoader.services['m2'] = {}; AWS.M2 = Service.defineService('m2', ['2021-04-28']); Object.defineProperty(apiLoader.services['m2'], '2021-04-28', { get: function get() { - var model = __nccwpck_require__(21363); - model.paginators = (__nccwpck_require__(96286)/* .pagination */ .o); + var model = __nccwpck_require__(23277); + model.paginators = (__nccwpck_require__(49759)/* .pagination */ .X); return model; }, enumerable: true, @@ -130452,22 +209766,22 @@ module.exports = AWS.M2; /***/ }), -/***/ 78176: +/***/ 28783: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['machinelearning'] = {}; AWS.MachineLearning = Service.defineService('machinelearning', ['2014-12-12']); -__nccwpck_require__(8672); +__nccwpck_require__(26395); Object.defineProperty(apiLoader.services['machinelearning'], '2014-12-12', { get: function get() { - var model = __nccwpck_require__(4069); - model.paginators = (__nccwpck_require__(95535)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(23194)/* .waiters */ .V); + var model = __nccwpck_require__(43617); + model.paginators = (__nccwpck_require__(73051)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(74488)/* .waiters */ .C); return model; }, enumerable: true, @@ -130479,62 +209793,62 @@ module.exports = AWS.MachineLearning; /***/ }), -/***/ 8756: +/***/ 69151: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['macie'] = {}; -AWS.Macie = Service.defineService('macie', ['2017-12-19']); -Object.defineProperty(apiLoader.services['macie'], '2017-12-19', { +apiLoader.services['macie2'] = {}; +AWS.Macie2 = Service.defineService('macie2', ['2020-01-01']); +Object.defineProperty(apiLoader.services['macie2'], '2020-01-01', { get: function get() { - var model = __nccwpck_require__(99366); - model.paginators = (__nccwpck_require__(34091)/* .pagination */ .o); + var model = __nccwpck_require__(752); + model.paginators = (__nccwpck_require__(1764)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(29847)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Macie; +module.exports = AWS.Macie2; /***/ }), -/***/ 11243: +/***/ 64582: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['macie2'] = {}; -AWS.Macie2 = Service.defineService('macie2', ['2020-01-01']); -Object.defineProperty(apiLoader.services['macie2'], '2020-01-01', { +apiLoader.services['mailmanager'] = {}; +AWS.MailManager = Service.defineService('mailmanager', ['2023-10-17']); +Object.defineProperty(apiLoader.services['mailmanager'], '2023-10-17', { get: function get() { - var model = __nccwpck_require__(50847); - model.paginators = (__nccwpck_require__(25947)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(71131)/* .waiters */ .V); + var model = __nccwpck_require__(49117); + model.paginators = (__nccwpck_require__(21519)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Macie2; +module.exports = AWS.MailManager; /***/ }), -/***/ 96114: +/***/ 48367: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130542,8 +209856,8 @@ apiLoader.services['managedblockchain'] = {}; AWS.ManagedBlockchain = Service.defineService('managedblockchain', ['2018-09-24']); Object.defineProperty(apiLoader.services['managedblockchain'], '2018-09-24', { get: function get() { - var model = __nccwpck_require__(31229); - model.paginators = (__nccwpck_require__(57358)/* .pagination */ .o); + var model = __nccwpck_require__(36936); + model.paginators = (__nccwpck_require__(98348)/* .pagination */ .X); return model; }, enumerable: true, @@ -130555,11 +209869,11 @@ module.exports = AWS.ManagedBlockchain; /***/ }), -/***/ 6696: +/***/ 78131: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130567,9 +209881,9 @@ apiLoader.services['managedblockchainquery'] = {}; AWS.ManagedBlockchainQuery = Service.defineService('managedblockchainquery', ['2023-05-04']); Object.defineProperty(apiLoader.services['managedblockchainquery'], '2023-05-04', { get: function get() { - var model = __nccwpck_require__(53546); - model.paginators = (__nccwpck_require__(95929)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(17688)/* .waiters */ .V); + var model = __nccwpck_require__(23419); + model.paginators = (__nccwpck_require__(80345)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(81370)/* .waiters */ .C); return model; }, enumerable: true, @@ -130581,11 +209895,36 @@ module.exports = AWS.ManagedBlockchainQuery; /***/ }), -/***/ 76804: +/***/ 92848: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['marketplaceagreement'] = {}; +AWS.MarketplaceAgreement = Service.defineService('marketplaceagreement', ['2020-03-01']); +Object.defineProperty(apiLoader.services['marketplaceagreement'], '2020-03-01', { + get: function get() { + var model = __nccwpck_require__(11263); + model.paginators = (__nccwpck_require__(91749)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.MarketplaceAgreement; + + +/***/ }), + +/***/ 20196: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130593,8 +209932,8 @@ apiLoader.services['marketplacecatalog'] = {}; AWS.MarketplaceCatalog = Service.defineService('marketplacecatalog', ['2018-09-17']); Object.defineProperty(apiLoader.services['marketplacecatalog'], '2018-09-17', { get: function get() { - var model = __nccwpck_require__(87122); - model.paginators = (__nccwpck_require__(30187)/* .pagination */ .o); + var model = __nccwpck_require__(11744); + model.paginators = (__nccwpck_require__(13076)/* .pagination */ .X); return model; }, enumerable: true, @@ -130606,11 +209945,11 @@ module.exports = AWS.MarketplaceCatalog; /***/ }), -/***/ 65846: +/***/ 72490: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130618,8 +209957,8 @@ apiLoader.services['marketplacecommerceanalytics'] = {}; AWS.MarketplaceCommerceAnalytics = Service.defineService('marketplacecommerceanalytics', ['2015-07-01']); Object.defineProperty(apiLoader.services['marketplacecommerceanalytics'], '2015-07-01', { get: function get() { - var model = __nccwpck_require__(96696); - model.paginators = (__nccwpck_require__(43265)/* .pagination */ .o); + var model = __nccwpck_require__(83989); + model.paginators = (__nccwpck_require__(14615)/* .pagination */ .X); return model; }, enumerable: true, @@ -130631,11 +209970,36 @@ module.exports = AWS.MarketplaceCommerceAnalytics; /***/ }), -/***/ 39866: +/***/ 10356: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['marketplacedeployment'] = {}; +AWS.MarketplaceDeployment = Service.defineService('marketplacedeployment', ['2023-01-25']); +Object.defineProperty(apiLoader.services['marketplacedeployment'], '2023-01-25', { + get: function get() { + var model = __nccwpck_require__(85607); + model.paginators = (__nccwpck_require__(85277)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.MarketplaceDeployment; + + +/***/ }), + +/***/ 80325: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130643,8 +210007,8 @@ apiLoader.services['marketplaceentitlementservice'] = {}; AWS.MarketplaceEntitlementService = Service.defineService('marketplaceentitlementservice', ['2017-01-11']); Object.defineProperty(apiLoader.services['marketplaceentitlementservice'], '2017-01-11', { get: function get() { - var model = __nccwpck_require__(64253); - model.paginators = (__nccwpck_require__(67012)/* .pagination */ .o); + var model = __nccwpck_require__(85898); + model.paginators = (__nccwpck_require__(57882)/* .pagination */ .X); return model; }, enumerable: true, @@ -130656,11 +210020,11 @@ module.exports = AWS.MarketplaceEntitlementService; /***/ }), -/***/ 34580: +/***/ 25276: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130668,8 +210032,8 @@ apiLoader.services['marketplacemetering'] = {}; AWS.MarketplaceMetering = Service.defineService('marketplacemetering', ['2016-01-14']); Object.defineProperty(apiLoader.services['marketplacemetering'], '2016-01-14', { get: function get() { - var model = __nccwpck_require__(43027); - model.paginators = (__nccwpck_require__(4843)/* .pagination */ .o); + var model = __nccwpck_require__(98854); + model.paginators = (__nccwpck_require__(94062)/* .pagination */ .X); return model; }, enumerable: true, @@ -130681,11 +210045,11 @@ module.exports = AWS.MarketplaceMetering; /***/ }), -/***/ 93171: +/***/ 73572: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130693,9 +210057,9 @@ apiLoader.services['mediaconnect'] = {}; AWS.MediaConnect = Service.defineService('mediaconnect', ['2018-11-14']); Object.defineProperty(apiLoader.services['mediaconnect'], '2018-11-14', { get: function get() { - var model = __nccwpck_require__(85245); - model.paginators = (__nccwpck_require__(68160)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(42876)/* .waiters */ .V); + var model = __nccwpck_require__(60227); + model.paginators = (__nccwpck_require__(34737)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(52626)/* .waiters */ .C); return model; }, enumerable: true, @@ -130707,11 +210071,11 @@ module.exports = AWS.MediaConnect; /***/ }), -/***/ 55775: +/***/ 3785: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130719,8 +210083,8 @@ apiLoader.services['mediaconvert'] = {}; AWS.MediaConvert = Service.defineService('mediaconvert', ['2017-08-29']); Object.defineProperty(apiLoader.services['mediaconvert'], '2017-08-29', { get: function get() { - var model = __nccwpck_require__(41924); - model.paginators = (__nccwpck_require__(14179)/* .pagination */ .o); + var model = __nccwpck_require__(20239); + model.paginators = (__nccwpck_require__(77461)/* .pagination */ .X); return model; }, enumerable: true, @@ -130732,11 +210096,11 @@ module.exports = AWS.MediaConvert; /***/ }), -/***/ 39918: +/***/ 92658: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130744,9 +210108,9 @@ apiLoader.services['medialive'] = {}; AWS.MediaLive = Service.defineService('medialive', ['2017-10-14']); Object.defineProperty(apiLoader.services['medialive'], '2017-10-14', { get: function get() { - var model = __nccwpck_require__(32326); - model.paginators = (__nccwpck_require__(84652)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(17259)/* .waiters */ .V); + var model = __nccwpck_require__(41171); + model.paginators = (__nccwpck_require__(55521)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(59746)/* .waiters */ .C); return model; }, enumerable: true, @@ -130758,11 +210122,11 @@ module.exports = AWS.MediaLive; /***/ }), -/***/ 54584: +/***/ 15202: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130770,8 +210134,8 @@ apiLoader.services['mediapackage'] = {}; AWS.MediaPackage = Service.defineService('mediapackage', ['2017-10-12']); Object.defineProperty(apiLoader.services['mediapackage'], '2017-10-12', { get: function get() { - var model = __nccwpck_require__(51261); - model.paginators = (__nccwpck_require__(48933)/* .pagination */ .o); + var model = __nccwpck_require__(99475); + model.paginators = (__nccwpck_require__(49441)/* .pagination */ .X); return model; }, enumerable: true, @@ -130783,11 +210147,11 @@ module.exports = AWS.MediaPackage; /***/ }), -/***/ 32587: +/***/ 35446: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130795,9 +210159,9 @@ apiLoader.services['mediapackagev2'] = {}; AWS.MediaPackageV2 = Service.defineService('mediapackagev2', ['2022-12-25']); Object.defineProperty(apiLoader.services['mediapackagev2'], '2022-12-25', { get: function get() { - var model = __nccwpck_require__(37594); - model.paginators = (__nccwpck_require__(44503)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(68906)/* .waiters */ .V); + var model = __nccwpck_require__(73639); + model.paginators = (__nccwpck_require__(37949)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(83414)/* .waiters */ .C); return model; }, enumerable: true, @@ -130809,11 +210173,11 @@ module.exports = AWS.MediaPackageV2; /***/ }), -/***/ 29568: +/***/ 10273: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130821,8 +210185,8 @@ apiLoader.services['mediapackagevod'] = {}; AWS.MediaPackageVod = Service.defineService('mediapackagevod', ['2018-11-07']); Object.defineProperty(apiLoader.services['mediapackagevod'], '2018-11-07', { get: function get() { - var model = __nccwpck_require__(98877); - model.paginators = (__nccwpck_require__(48422)/* .pagination */ .o); + var model = __nccwpck_require__(12245); + model.paginators = (__nccwpck_require__(42519)/* .pagination */ .X); return model; }, enumerable: true, @@ -130834,11 +210198,11 @@ module.exports = AWS.MediaPackageVod; /***/ }), -/***/ 91242: +/***/ 69395: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130846,8 +210210,8 @@ apiLoader.services['mediastore'] = {}; AWS.MediaStore = Service.defineService('mediastore', ['2017-09-01']); Object.defineProperty(apiLoader.services['mediastore'], '2017-09-01', { get: function get() { - var model = __nccwpck_require__(68901); - model.paginators = (__nccwpck_require__(5848)/* .pagination */ .o); + var model = __nccwpck_require__(73302); + model.paginators = (__nccwpck_require__(93054)/* .pagination */ .X); return model; }, enumerable: true, @@ -130859,11 +210223,11 @@ module.exports = AWS.MediaStore; /***/ }), -/***/ 2171: +/***/ 1691: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130871,8 +210235,8 @@ apiLoader.services['mediastoredata'] = {}; AWS.MediaStoreData = Service.defineService('mediastoredata', ['2017-09-01']); Object.defineProperty(apiLoader.services['mediastoredata'], '2017-09-01', { get: function get() { - var model = __nccwpck_require__(55081); - model.paginators = (__nccwpck_require__(97948)/* .pagination */ .o); + var model = __nccwpck_require__(66489); + model.paginators = (__nccwpck_require__(43747)/* .pagination */ .X); return model; }, enumerable: true, @@ -130884,11 +210248,11 @@ module.exports = AWS.MediaStoreData; /***/ }), -/***/ 21705: +/***/ 53511: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130896,8 +210260,8 @@ apiLoader.services['mediatailor'] = {}; AWS.MediaTailor = Service.defineService('mediatailor', ['2018-04-23']); Object.defineProperty(apiLoader.services['mediatailor'], '2018-04-23', { get: function get() { - var model = __nccwpck_require__(77511); - model.paginators = (__nccwpck_require__(68557)/* .pagination */ .o); + var model = __nccwpck_require__(64720); + model.paginators = (__nccwpck_require__(13028)/* .pagination */ .X); return model; }, enumerable: true, @@ -130909,11 +210273,11 @@ module.exports = AWS.MediaTailor; /***/ }), -/***/ 74576: +/***/ 69005: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130921,9 +210285,9 @@ apiLoader.services['medicalimaging'] = {}; AWS.MedicalImaging = Service.defineService('medicalimaging', ['2023-07-19']); Object.defineProperty(apiLoader.services['medicalimaging'], '2023-07-19', { get: function get() { - var model = __nccwpck_require__(46663); - model.paginators = (__nccwpck_require__(63177)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(63171)/* .waiters */ .V); + var model = __nccwpck_require__(1089); + model.paginators = (__nccwpck_require__(35707)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(45368)/* .waiters */ .C); return model; }, enumerable: true, @@ -130935,11 +210299,11 @@ module.exports = AWS.MedicalImaging; /***/ }), -/***/ 69366: +/***/ 20627: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130947,8 +210311,8 @@ apiLoader.services['memorydb'] = {}; AWS.MemoryDB = Service.defineService('memorydb', ['2021-01-01']); Object.defineProperty(apiLoader.services['memorydb'], '2021-01-01', { get: function get() { - var model = __nccwpck_require__(51950); - model.paginators = (__nccwpck_require__(93809)/* .pagination */ .o); + var model = __nccwpck_require__(67155); + model.paginators = (__nccwpck_require__(75681)/* .pagination */ .X); return model; }, enumerable: true, @@ -130960,11 +210324,11 @@ module.exports = AWS.MemoryDB; /***/ }), -/***/ 24013: +/***/ 97458: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130972,8 +210336,8 @@ apiLoader.services['mgn'] = {}; AWS.Mgn = Service.defineService('mgn', ['2020-02-26']); Object.defineProperty(apiLoader.services['mgn'], '2020-02-26', { get: function get() { - var model = __nccwpck_require__(65811); - model.paginators = (__nccwpck_require__(52443)/* .pagination */ .o); + var model = __nccwpck_require__(23021); + model.paginators = (__nccwpck_require__(85215)/* .pagination */ .X); return model; }, enumerable: true, @@ -130985,11 +210349,11 @@ module.exports = AWS.Mgn; /***/ }), -/***/ 59675: +/***/ 17125: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -130997,8 +210361,8 @@ apiLoader.services['migrationhub'] = {}; AWS.MigrationHub = Service.defineService('migrationhub', ['2017-05-31']); Object.defineProperty(apiLoader.services['migrationhub'], '2017-05-31', { get: function get() { - var model = __nccwpck_require__(99161); - model.paginators = (__nccwpck_require__(27903)/* .pagination */ .o); + var model = __nccwpck_require__(67864); + model.paginators = (__nccwpck_require__(45020)/* .pagination */ .X); return model; }, enumerable: true, @@ -131010,11 +210374,11 @@ module.exports = AWS.MigrationHub; /***/ }), -/***/ 4936: +/***/ 11955: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131022,8 +210386,8 @@ apiLoader.services['migrationhubconfig'] = {}; AWS.MigrationHubConfig = Service.defineService('migrationhubconfig', ['2019-06-30']); Object.defineProperty(apiLoader.services['migrationhubconfig'], '2019-06-30', { get: function get() { - var model = __nccwpck_require__(59734); - model.paginators = (__nccwpck_require__(51497)/* .pagination */ .o); + var model = __nccwpck_require__(89792); + model.paginators = (__nccwpck_require__(55348)/* .pagination */ .X); return model; }, enumerable: true, @@ -131035,11 +210399,11 @@ module.exports = AWS.MigrationHubConfig; /***/ }), -/***/ 42963: +/***/ 21449: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131047,9 +210411,9 @@ apiLoader.services['migrationhuborchestrator'] = {}; AWS.MigrationHubOrchestrator = Service.defineService('migrationhuborchestrator', ['2021-08-28']); Object.defineProperty(apiLoader.services['migrationhuborchestrator'], '2021-08-28', { get: function get() { - var model = __nccwpck_require__(73093); - model.paginators = (__nccwpck_require__(24233)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(83173)/* .waiters */ .V); + var model = __nccwpck_require__(62625); + model.paginators = (__nccwpck_require__(21339)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(36024)/* .waiters */ .C); return model; }, enumerable: true, @@ -131061,11 +210425,11 @@ module.exports = AWS.MigrationHubOrchestrator; /***/ }), -/***/ 49145: +/***/ 50356: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131073,8 +210437,8 @@ apiLoader.services['migrationhubrefactorspaces'] = {}; AWS.MigrationHubRefactorSpaces = Service.defineService('migrationhubrefactorspaces', ['2021-10-26']); Object.defineProperty(apiLoader.services['migrationhubrefactorspaces'], '2021-10-26', { get: function get() { - var model = __nccwpck_require__(17110); - model.paginators = (__nccwpck_require__(63789)/* .pagination */ .o); + var model = __nccwpck_require__(90514); + model.paginators = (__nccwpck_require__(85682)/* .pagination */ .X); return model; }, enumerable: true, @@ -131086,11 +210450,11 @@ module.exports = AWS.MigrationHubRefactorSpaces; /***/ }), -/***/ 69492: +/***/ 44576: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131098,8 +210462,8 @@ apiLoader.services['migrationhubstrategy'] = {}; AWS.MigrationHubStrategy = Service.defineService('migrationhubstrategy', ['2020-02-19']); Object.defineProperty(apiLoader.services['migrationhubstrategy'], '2020-02-19', { get: function get() { - var model = __nccwpck_require__(64663); - model.paginators = (__nccwpck_require__(30896)/* .pagination */ .o); + var model = __nccwpck_require__(71815); + model.paginators = (__nccwpck_require__(85181)/* .pagination */ .X); return model; }, enumerable: true, @@ -131111,36 +210475,11 @@ module.exports = AWS.MigrationHubStrategy; /***/ }), -/***/ 79442: +/***/ 89894: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mobile'] = {}; -AWS.Mobile = Service.defineService('mobile', ['2017-07-01']); -Object.defineProperty(apiLoader.services['mobile'], '2017-07-01', { - get: function get() { - var model = __nccwpck_require__(51691); - model.paginators = (__nccwpck_require__(43522)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Mobile; - - -/***/ }), - -/***/ 2503: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131148,7 +210487,7 @@ apiLoader.services['mobileanalytics'] = {}; AWS.MobileAnalytics = Service.defineService('mobileanalytics', ['2014-06-05']); Object.defineProperty(apiLoader.services['mobileanalytics'], '2014-06-05', { get: function get() { - var model = __nccwpck_require__(90338); + var model = __nccwpck_require__(30577); return model; }, enumerable: true, @@ -131160,11 +210499,11 @@ module.exports = AWS.MobileAnalytics; /***/ }), -/***/ 18858: +/***/ 72584: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131172,8 +210511,8 @@ apiLoader.services['mq'] = {}; AWS.MQ = Service.defineService('mq', ['2017-11-27']); Object.defineProperty(apiLoader.services['mq'], '2017-11-27', { get: function get() { - var model = __nccwpck_require__(35102); - model.paginators = (__nccwpck_require__(46095)/* .pagination */ .o); + var model = __nccwpck_require__(65872); + model.paginators = (__nccwpck_require__(14052)/* .pagination */ .X); return model; }, enumerable: true, @@ -131185,11 +210524,11 @@ module.exports = AWS.MQ; /***/ }), -/***/ 15858: +/***/ 93815: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131197,8 +210536,8 @@ apiLoader.services['mturk'] = {}; AWS.MTurk = Service.defineService('mturk', ['2017-01-17']); Object.defineProperty(apiLoader.services['mturk'], '2017-01-17', { get: function get() { - var model = __nccwpck_require__(73064); - model.paginators = (__nccwpck_require__(42409)/* .pagination */ .o); + var model = __nccwpck_require__(88926); + model.paginators = (__nccwpck_require__(24470)/* .pagination */ .X); return model; }, enumerable: true, @@ -131210,11 +210549,11 @@ module.exports = AWS.MTurk; /***/ }), -/***/ 50645: +/***/ 53004: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131222,8 +210561,8 @@ apiLoader.services['mwaa'] = {}; AWS.MWAA = Service.defineService('mwaa', ['2020-07-01']); Object.defineProperty(apiLoader.services['mwaa'], '2020-07-01', { get: function get() { - var model = __nccwpck_require__(56612); - model.paginators = (__nccwpck_require__(11793)/* .pagination */ .o); + var model = __nccwpck_require__(94379); + model.paginators = (__nccwpck_require__(68489)/* .pagination */ .X); return model; }, enumerable: true, @@ -131235,22 +210574,22 @@ module.exports = AWS.MWAA; /***/ }), -/***/ 31196: +/***/ 54797: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['neptune'] = {}; AWS.Neptune = Service.defineService('neptune', ['2014-10-31']); -__nccwpck_require__(66361); +__nccwpck_require__(5017); Object.defineProperty(apiLoader.services['neptune'], '2014-10-31', { get: function get() { - var model = __nccwpck_require__(50018); - model.paginators = (__nccwpck_require__(62952)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(8127)/* .waiters */ .V); + var model = __nccwpck_require__(50746); + model.paginators = (__nccwpck_require__(64970)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(97553)/* .waiters */ .C); return model; }, enumerable: true, @@ -131262,11 +210601,11 @@ module.exports = AWS.Neptune; /***/ }), -/***/ 60508: +/***/ 68365: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131274,8 +210613,8 @@ apiLoader.services['neptunedata'] = {}; AWS.Neptunedata = Service.defineService('neptunedata', ['2023-08-01']); Object.defineProperty(apiLoader.services['neptunedata'], '2023-08-01', { get: function get() { - var model = __nccwpck_require__(31008); - model.paginators = (__nccwpck_require__(2363)/* .pagination */ .o); + var model = __nccwpck_require__(76672); + model.paginators = (__nccwpck_require__(73332)/* .pagination */ .X); return model; }, enumerable: true, @@ -131287,11 +210626,11 @@ module.exports = AWS.Neptunedata; /***/ }), -/***/ 77821: +/***/ 60050: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131299,8 +210638,8 @@ apiLoader.services['networkfirewall'] = {}; AWS.NetworkFirewall = Service.defineService('networkfirewall', ['2020-11-12']); Object.defineProperty(apiLoader.services['networkfirewall'], '2020-11-12', { get: function get() { - var model = __nccwpck_require__(63757); - model.paginators = (__nccwpck_require__(74798)/* .pagination */ .o); + var model = __nccwpck_require__(64111); + model.paginators = (__nccwpck_require__(19541)/* .pagination */ .X); return model; }, enumerable: true, @@ -131312,11 +210651,11 @@ module.exports = AWS.NetworkFirewall; /***/ }), -/***/ 58605: +/***/ 87867: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131324,8 +210663,8 @@ apiLoader.services['networkmanager'] = {}; AWS.NetworkManager = Service.defineService('networkmanager', ['2019-07-05']); Object.defineProperty(apiLoader.services['networkmanager'], '2019-07-05', { get: function get() { - var model = __nccwpck_require__(10151); - model.paginators = (__nccwpck_require__(68278)/* .pagination */ .o); + var model = __nccwpck_require__(77602); + model.paginators = (__nccwpck_require__(21890)/* .pagination */ .X); return model; }, enumerable: true, @@ -131337,11 +210676,37 @@ module.exports = AWS.NetworkManager; /***/ }), -/***/ 23261: +/***/ 41842: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['networkmonitor'] = {}; +AWS.NetworkMonitor = Service.defineService('networkmonitor', ['2023-08-01']); +Object.defineProperty(apiLoader.services['networkmonitor'], '2023-08-01', { + get: function get() { + var model = __nccwpck_require__(24095); + model.paginators = (__nccwpck_require__(73669)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(90206)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.NetworkMonitor; + + +/***/ }), + +/***/ 43235: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131349,9 +210714,9 @@ apiLoader.services['nimble'] = {}; AWS.Nimble = Service.defineService('nimble', ['2020-08-01']); Object.defineProperty(apiLoader.services['nimble'], '2020-08-01', { get: function get() { - var model = __nccwpck_require__(50605); - model.paginators = (__nccwpck_require__(65300)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(42486)/* .waiters */ .V); + var model = __nccwpck_require__(55649); + model.paginators = (__nccwpck_require__(16795)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(50744)/* .waiters */ .C); return model; }, enumerable: true, @@ -131363,11 +210728,11 @@ module.exports = AWS.Nimble; /***/ }), -/***/ 11563: +/***/ 37975: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131375,8 +210740,8 @@ apiLoader.services['oam'] = {}; AWS.OAM = Service.defineService('oam', ['2022-06-10']); Object.defineProperty(apiLoader.services['oam'], '2022-06-10', { get: function get() { - var model = __nccwpck_require__(13463); - model.paginators = (__nccwpck_require__(55717)/* .pagination */ .o); + var model = __nccwpck_require__(25089); + model.paginators = (__nccwpck_require__(28347)/* .pagination */ .X); return model; }, enumerable: true, @@ -131388,11 +210753,11 @@ module.exports = AWS.OAM; /***/ }), -/***/ 38852: +/***/ 66305: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131400,9 +210765,9 @@ apiLoader.services['omics'] = {}; AWS.Omics = Service.defineService('omics', ['2022-11-28']); Object.defineProperty(apiLoader.services['omics'], '2022-11-28', { get: function get() { - var model = __nccwpck_require__(74258); - model.paginators = (__nccwpck_require__(78278)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(31165)/* .waiters */ .V); + var model = __nccwpck_require__(15416); + model.paginators = (__nccwpck_require__(56860)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(81807)/* .waiters */ .C); return model; }, enumerable: true, @@ -131414,11 +210779,11 @@ module.exports = AWS.Omics; /***/ }), -/***/ 54656: +/***/ 93494: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131426,8 +210791,8 @@ apiLoader.services['opensearch'] = {}; AWS.OpenSearch = Service.defineService('opensearch', ['2021-01-01']); Object.defineProperty(apiLoader.services['opensearch'], '2021-01-01', { get: function get() { - var model = __nccwpck_require__(90583); - model.paginators = (__nccwpck_require__(32668)/* .pagination */ .o); + var model = __nccwpck_require__(11248); + model.paginators = (__nccwpck_require__(39492)/* .pagination */ .X); return model; }, enumerable: true, @@ -131439,11 +210804,11 @@ module.exports = AWS.OpenSearch; /***/ }), -/***/ 34305: +/***/ 90200: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131451,8 +210816,8 @@ apiLoader.services['opensearchserverless'] = {}; AWS.OpenSearchServerless = Service.defineService('opensearchserverless', ['2021-11-01']); Object.defineProperty(apiLoader.services['opensearchserverless'], '2021-11-01', { get: function get() { - var model = __nccwpck_require__(61668); - model.paginators = (__nccwpck_require__(68785)/* .pagination */ .o); + var model = __nccwpck_require__(32293); + model.paginators = (__nccwpck_require__(35687)/* .pagination */ .X); return model; }, enumerable: true, @@ -131464,11 +210829,11 @@ module.exports = AWS.OpenSearchServerless; /***/ }), -/***/ 95716: +/***/ 9988: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131476,9 +210841,9 @@ apiLoader.services['opsworks'] = {}; AWS.OpsWorks = Service.defineService('opsworks', ['2013-02-18']); Object.defineProperty(apiLoader.services['opsworks'], '2013-02-18', { get: function get() { - var model = __nccwpck_require__(22805); - model.paginators = (__nccwpck_require__(24750)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(74961)/* .waiters */ .V); + var model = __nccwpck_require__(97950); + model.paginators = (__nccwpck_require__(22582)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(2245)/* .waiters */ .C); return model; }, enumerable: true, @@ -131490,11 +210855,11 @@ module.exports = AWS.OpsWorks; /***/ }), -/***/ 27535: +/***/ 32832: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131502,9 +210867,9 @@ apiLoader.services['opsworkscm'] = {}; AWS.OpsWorksCM = Service.defineService('opsworkscm', ['2016-11-01']); Object.defineProperty(apiLoader.services['opsworkscm'], '2016-11-01', { get: function get() { - var model = __nccwpck_require__(56705); - model.paginators = (__nccwpck_require__(49463)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(65003)/* .waiters */ .V); + var model = __nccwpck_require__(20523); + model.paginators = (__nccwpck_require__(42505)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(54986)/* .waiters */ .C); return model; }, enumerable: true, @@ -131516,11 +210881,11 @@ module.exports = AWS.OpsWorksCM; /***/ }), -/***/ 3334: +/***/ 44184: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131528,8 +210893,8 @@ apiLoader.services['organizations'] = {}; AWS.Organizations = Service.defineService('organizations', ['2016-11-28']); Object.defineProperty(apiLoader.services['organizations'], '2016-11-28', { get: function get() { - var model = __nccwpck_require__(58874); - model.paginators = (__nccwpck_require__(43261)/* .pagination */ .o); + var model = __nccwpck_require__(94872); + model.paginators = (__nccwpck_require__(2940)/* .pagination */ .X); return model; }, enumerable: true, @@ -131541,11 +210906,11 @@ module.exports = AWS.Organizations; /***/ }), -/***/ 13717: +/***/ 31448: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131553,8 +210918,8 @@ apiLoader.services['osis'] = {}; AWS.OSIS = Service.defineService('osis', ['2022-01-01']); Object.defineProperty(apiLoader.services['osis'], '2022-01-01', { get: function get() { - var model = __nccwpck_require__(51838); - model.paginators = (__nccwpck_require__(72472)/* .pagination */ .o); + var model = __nccwpck_require__(16383); + model.paginators = (__nccwpck_require__(92581)/* .pagination */ .X); return model; }, enumerable: true, @@ -131566,11 +210931,11 @@ module.exports = AWS.OSIS; /***/ }), -/***/ 64948: +/***/ 25145: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131578,8 +210943,8 @@ apiLoader.services['outposts'] = {}; AWS.Outposts = Service.defineService('outposts', ['2019-12-03']); Object.defineProperty(apiLoader.services['outposts'], '2019-12-03', { get: function get() { - var model = __nccwpck_require__(4807); - model.paginators = (__nccwpck_require__(3364)/* .pagination */ .o); + var model = __nccwpck_require__(3732); + model.paginators = (__nccwpck_require__(64992)/* .pagination */ .X); return model; }, enumerable: true, @@ -131591,11 +210956,11 @@ module.exports = AWS.Outposts; /***/ }), -/***/ 11472: +/***/ 66205: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131603,8 +210968,8 @@ apiLoader.services['panorama'] = {}; AWS.Panorama = Service.defineService('panorama', ['2019-07-24']); Object.defineProperty(apiLoader.services['panorama'], '2019-07-24', { get: function get() { - var model = __nccwpck_require__(91489); - model.paginators = (__nccwpck_require__(77238)/* .pagination */ .o); + var model = __nccwpck_require__(46701); + model.paginators = (__nccwpck_require__(88895)/* .pagination */ .X); return model; }, enumerable: true, @@ -131616,11 +210981,11 @@ module.exports = AWS.Panorama; /***/ }), -/***/ 96172: +/***/ 68448: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131628,8 +210993,9 @@ apiLoader.services['paymentcryptography'] = {}; AWS.PaymentCryptography = Service.defineService('paymentcryptography', ['2021-09-14']); Object.defineProperty(apiLoader.services['paymentcryptography'], '2021-09-14', { get: function get() { - var model = __nccwpck_require__(86072); - model.paginators = (__nccwpck_require__(17819)/* .pagination */ .o); + var model = __nccwpck_require__(66427); + model.paginators = (__nccwpck_require__(58873)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(62234)/* .waiters */ .C); return model; }, enumerable: true, @@ -131641,11 +211007,11 @@ module.exports = AWS.PaymentCryptography; /***/ }), -/***/ 46576: +/***/ 69704: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131653,8 +211019,9 @@ apiLoader.services['paymentcryptographydata'] = {}; AWS.PaymentCryptographyData = Service.defineService('paymentcryptographydata', ['2022-02-03']); Object.defineProperty(apiLoader.services['paymentcryptographydata'], '2022-02-03', { get: function get() { - var model = __nccwpck_require__(68578); - model.paginators = (__nccwpck_require__(89757)/* .pagination */ .o); + var model = __nccwpck_require__(82098); + model.paginators = (__nccwpck_require__(20018)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(42009)/* .waiters */ .C); return model; }, enumerable: true, @@ -131666,11 +211033,11 @@ module.exports = AWS.PaymentCryptographyData; /***/ }), -/***/ 34983: +/***/ 36572: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131678,8 +211045,8 @@ apiLoader.services['pcaconnectorad'] = {}; AWS.PcaConnectorAd = Service.defineService('pcaconnectorad', ['2018-05-10']); Object.defineProperty(apiLoader.services['pcaconnectorad'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(6901); - model.paginators = (__nccwpck_require__(33158)/* .pagination */ .o); + var model = __nccwpck_require__(79534); + model.paginators = (__nccwpck_require__(92518)/* .pagination */ .X); return model; }, enumerable: true, @@ -131691,11 +211058,63 @@ module.exports = AWS.PcaConnectorAd; /***/ }), -/***/ 64396: +/***/ 16870: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['pcaconnectorscep'] = {}; +AWS.PcaConnectorScep = Service.defineService('pcaconnectorscep', ['2018-05-10']); +Object.defineProperty(apiLoader.services['pcaconnectorscep'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(65376); + model.paginators = (__nccwpck_require__(82100)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(30919)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.PcaConnectorScep; + + +/***/ }), + +/***/ 59614: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['pcs'] = {}; +AWS.PCS = Service.defineService('pcs', ['2023-02-10']); +Object.defineProperty(apiLoader.services['pcs'], '2023-02-10', { + get: function get() { + var model = __nccwpck_require__(50389); + model.paginators = (__nccwpck_require__(3639)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(25068)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.PCS; + + +/***/ }), + +/***/ 49206: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131703,8 +211122,8 @@ apiLoader.services['personalize'] = {}; AWS.Personalize = Service.defineService('personalize', ['2018-05-22']); Object.defineProperty(apiLoader.services['personalize'], '2018-05-22', { get: function get() { - var model = __nccwpck_require__(70169); - model.paginators = (__nccwpck_require__(64441)/* .pagination */ .o); + var model = __nccwpck_require__(50129); + model.paginators = (__nccwpck_require__(71435)/* .pagination */ .X); return model; }, enumerable: true, @@ -131716,11 +211135,11 @@ module.exports = AWS.Personalize; /***/ }), -/***/ 4359: +/***/ 68803: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131728,8 +211147,8 @@ apiLoader.services['personalizeevents'] = {}; AWS.PersonalizeEvents = Service.defineService('personalizeevents', ['2018-03-22']); Object.defineProperty(apiLoader.services['personalizeevents'], '2018-03-22', { get: function get() { - var model = __nccwpck_require__(3606); - model.paginators = (__nccwpck_require__(94507)/* .pagination */ .o); + var model = __nccwpck_require__(82861); + model.paginators = (__nccwpck_require__(63967)/* .pagination */ .X); return model; }, enumerable: true, @@ -131741,11 +211160,11 @@ module.exports = AWS.PersonalizeEvents; /***/ }), -/***/ 33973: +/***/ 71040: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131753,8 +211172,8 @@ apiLoader.services['personalizeruntime'] = {}; AWS.PersonalizeRuntime = Service.defineService('personalizeruntime', ['2018-05-22']); Object.defineProperty(apiLoader.services['personalizeruntime'], '2018-05-22', { get: function get() { - var model = __nccwpck_require__(18824); - model.paginators = (__nccwpck_require__(8069)/* .pagination */ .o); + var model = __nccwpck_require__(94858); + model.paginators = (__nccwpck_require__(86970)/* .pagination */ .X); return model; }, enumerable: true, @@ -131766,11 +211185,11 @@ module.exports = AWS.PersonalizeRuntime; /***/ }), -/***/ 90761: +/***/ 86277: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131778,8 +211197,8 @@ apiLoader.services['pi'] = {}; AWS.PI = Service.defineService('pi', ['2018-02-27']); Object.defineProperty(apiLoader.services['pi'], '2018-02-27', { get: function get() { - var model = __nccwpck_require__(18761); - model.paginators = (__nccwpck_require__(84882)/* .pagination */ .o); + var model = __nccwpck_require__(27654); + model.paginators = (__nccwpck_require__(21070)/* .pagination */ .X); return model; }, enumerable: true, @@ -131791,11 +211210,11 @@ module.exports = AWS.PI; /***/ }), -/***/ 2039: +/***/ 45805: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131803,7 +211222,7 @@ apiLoader.services['pinpoint'] = {}; AWS.Pinpoint = Service.defineService('pinpoint', ['2016-12-01']); Object.defineProperty(apiLoader.services['pinpoint'], '2016-12-01', { get: function get() { - var model = __nccwpck_require__(40605); + var model = __nccwpck_require__(83619); return model; }, enumerable: true, @@ -131815,11 +211234,11 @@ module.exports = AWS.Pinpoint; /***/ }), -/***/ 32629: +/***/ 76625: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131827,8 +211246,8 @@ apiLoader.services['pinpointemail'] = {}; AWS.PinpointEmail = Service.defineService('pinpointemail', ['2018-07-26']); Object.defineProperty(apiLoader.services['pinpointemail'], '2018-07-26', { get: function get() { - var model = __nccwpck_require__(55228); - model.paginators = (__nccwpck_require__(45172)/* .pagination */ .o); + var model = __nccwpck_require__(18103); + model.paginators = (__nccwpck_require__(90925)/* .pagination */ .X); return model; }, enumerable: true, @@ -131840,11 +211259,11 @@ module.exports = AWS.PinpointEmail; /***/ }), -/***/ 63666: +/***/ 64484: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131852,7 +211271,7 @@ apiLoader.services['pinpointsmsvoice'] = {}; AWS.PinpointSMSVoice = Service.defineService('pinpointsmsvoice', ['2018-09-05']); Object.defineProperty(apiLoader.services['pinpointsmsvoice'], '2018-09-05', { get: function get() { - var model = __nccwpck_require__(98689); + var model = __nccwpck_require__(4230); return model; }, enumerable: true, @@ -131864,11 +211283,11 @@ module.exports = AWS.PinpointSMSVoice; /***/ }), -/***/ 95826: +/***/ 81296: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131876,9 +211295,9 @@ apiLoader.services['pinpointsmsvoicev2'] = {}; AWS.PinpointSMSVoiceV2 = Service.defineService('pinpointsmsvoicev2', ['2022-03-31']); Object.defineProperty(apiLoader.services['pinpointsmsvoicev2'], '2022-03-31', { get: function get() { - var model = __nccwpck_require__(88319); - model.paginators = (__nccwpck_require__(80650)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(6663)/* .waiters */ .V); + var model = __nccwpck_require__(11101); + model.paginators = (__nccwpck_require__(49807)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(39364)/* .waiters */ .C); return model; }, enumerable: true, @@ -131890,11 +211309,11 @@ module.exports = AWS.PinpointSMSVoiceV2; /***/ }), -/***/ 74673: +/***/ 84297: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131902,8 +211321,9 @@ apiLoader.services['pipes'] = {}; AWS.Pipes = Service.defineService('pipes', ['2015-10-07']); Object.defineProperty(apiLoader.services['pipes'], '2015-10-07', { get: function get() { - var model = __nccwpck_require__(40616); - model.paginators = (__nccwpck_require__(17710)/* .pagination */ .o); + var model = __nccwpck_require__(51876); + model.paginators = (__nccwpck_require__(64963)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(20808)/* .waiters */ .C); return model; }, enumerable: true, @@ -131915,21 +211335,21 @@ module.exports = AWS.Pipes; /***/ }), -/***/ 19777: +/***/ 58712: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; apiLoader.services['polly'] = {}; AWS.Polly = Service.defineService('polly', ['2016-06-10']); -__nccwpck_require__(60533); +__nccwpck_require__(64300); Object.defineProperty(apiLoader.services['polly'], '2016-06-10', { get: function get() { - var model = __nccwpck_require__(55078); - model.paginators = (__nccwpck_require__(77060)/* .pagination */ .o); + var model = __nccwpck_require__(97347); + model.paginators = (__nccwpck_require__(39921)/* .pagination */ .X); return model; }, enumerable: true, @@ -131941,11 +211361,11 @@ module.exports = AWS.Polly; /***/ }), -/***/ 34686: +/***/ 61510: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131953,9 +211373,9 @@ apiLoader.services['pricing'] = {}; AWS.Pricing = Service.defineService('pricing', ['2017-10-15']); Object.defineProperty(apiLoader.services['pricing'], '2017-10-15', { get: function get() { - var model = __nccwpck_require__(22484); - model.paginators = (__nccwpck_require__(60369)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(41996)/* .waiters */ .V); + var model = __nccwpck_require__(6572); + model.paginators = (__nccwpck_require__(63208)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(65907)/* .waiters */ .C); return model; }, enumerable: true, @@ -131967,11 +211387,11 @@ module.exports = AWS.Pricing; /***/ }), -/***/ 63168: +/***/ 10400: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -131979,8 +211399,8 @@ apiLoader.services['privatenetworks'] = {}; AWS.PrivateNetworks = Service.defineService('privatenetworks', ['2021-12-03']); Object.defineProperty(apiLoader.services['privatenetworks'], '2021-12-03', { get: function get() { - var model = __nccwpck_require__(46306); - model.paginators = (__nccwpck_require__(42771)/* .pagination */ .o); + var model = __nccwpck_require__(98058); + model.paginators = (__nccwpck_require__(77178)/* .pagination */ .X); return model; }, enumerable: true, @@ -131992,11 +211412,11 @@ module.exports = AWS.PrivateNetworks; /***/ }), -/***/ 53491: +/***/ 79150: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; @@ -132004,9 +211424,9 @@ apiLoader.services['proton'] = {}; AWS.Proton = Service.defineService('proton', ['2020-07-20']); Object.defineProperty(apiLoader.services['proton'], '2020-07-20', { get: function get() { - var model = __nccwpck_require__(78577); - model.paginators = (__nccwpck_require__(14299)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(99338)/* .waiters */ .V); + var model = __nccwpck_require__(54104); + model.paginators = (__nccwpck_require__(65532)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(58767)/* .waiters */ .C); return model; }, enumerable: true, @@ -132018,25833 +211438,23945 @@ module.exports = AWS.Proton; /***/ }), -/***/ 8038: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['qldb'] = {}; -AWS.QLDB = Service.defineService('qldb', ['2019-01-02']); -Object.defineProperty(apiLoader.services['qldb'], '2019-01-02', { - get: function get() { - var model = __nccwpck_require__(71346); - model.paginators = (__nccwpck_require__(34265)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QLDB; - - -/***/ }), - -/***/ 1938: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['qldbsession'] = {}; -AWS.QLDBSession = Service.defineService('qldbsession', ['2019-07-11']); -Object.defineProperty(apiLoader.services['qldbsession'], '2019-07-11', { - get: function get() { - var model = __nccwpck_require__(60040); - model.paginators = (__nccwpck_require__(61051)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QLDBSession; - - -/***/ }), - -/***/ 61159: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['quicksight'] = {}; -AWS.QuickSight = Service.defineService('quicksight', ['2018-04-01']); -Object.defineProperty(apiLoader.services['quicksight'], '2018-04-01', { - get: function get() { - var model = __nccwpck_require__(8419); - model.paginators = (__nccwpck_require__(43387)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QuickSight; - - -/***/ }), - -/***/ 20678: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ram'] = {}; -AWS.RAM = Service.defineService('ram', ['2018-01-04']); -Object.defineProperty(apiLoader.services['ram'], '2018-01-04', { - get: function get() { - var model = __nccwpck_require__(61375); - model.paginators = (__nccwpck_require__(85336)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RAM; - - -/***/ }), - -/***/ 13485: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rbin'] = {}; -AWS.Rbin = Service.defineService('rbin', ['2021-06-15']); -Object.defineProperty(apiLoader.services['rbin'], '2021-06-15', { - get: function get() { - var model = __nccwpck_require__(18897); - model.paginators = (__nccwpck_require__(57601)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Rbin; - - -/***/ }), - -/***/ 88854: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rds'] = {}; -AWS.RDS = Service.defineService('rds', ['2013-01-10', '2013-02-12', '2013-09-09', '2014-09-01', '2014-09-01*', '2014-10-31']); -__nccwpck_require__(56770); -Object.defineProperty(apiLoader.services['rds'], '2013-01-10', { - get: function get() { - var model = __nccwpck_require__(59989); - model.paginators = (__nccwpck_require__(978)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2013-02-12', { - get: function get() { - var model = __nccwpck_require__(55061); - model.paginators = (__nccwpck_require__(39581)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2013-09-09', { - get: function get() { - var model = __nccwpck_require__(36331); - model.paginators = (__nccwpck_require__(14485)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(317)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2014-09-01', { - get: function get() { - var model = __nccwpck_require__(19226); - model.paginators = (__nccwpck_require__(49863)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2014-10-31', { - get: function get() { - var model = __nccwpck_require__(91916); - model.paginators = (__nccwpck_require__(85082)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(20371)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RDS; - - -/***/ }), - -/***/ 41099: +/***/ 12963: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['rdsdataservice'] = {}; -AWS.RDSDataService = Service.defineService('rdsdataservice', ['2018-08-01']); -__nccwpck_require__(66307); -Object.defineProperty(apiLoader.services['rdsdataservice'], '2018-08-01', { +apiLoader.services['qapps'] = {}; +AWS.QApps = Service.defineService('qapps', ['2023-11-27']); +Object.defineProperty(apiLoader.services['qapps'], '2023-11-27', { get: function get() { - var model = __nccwpck_require__(13559); - model.paginators = (__nccwpck_require__(41160)/* .pagination */ .o); + var model = __nccwpck_require__(99712); + model.paginators = (__nccwpck_require__(2228)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(54695)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.RDSDataService; +module.exports = AWS.QApps; /***/ }), -/***/ 89678: +/***/ 89721: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['redshift'] = {}; -AWS.Redshift = Service.defineService('redshift', ['2012-12-01']); -Object.defineProperty(apiLoader.services['redshift'], '2012-12-01', { +apiLoader.services['qbusiness'] = {}; +AWS.QBusiness = Service.defineService('qbusiness', ['2023-11-27']); +Object.defineProperty(apiLoader.services['qbusiness'], '2023-11-27', { get: function get() { - var model = __nccwpck_require__(24827); - model.paginators = (__nccwpck_require__(88012)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(79011)/* .waiters */ .V); + var model = __nccwpck_require__(56178); + model.paginators = (__nccwpck_require__(84050)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(73977)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Redshift; +module.exports = AWS.QBusiness; /***/ }), -/***/ 9900: +/***/ 10637: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['redshiftdata'] = {}; -AWS.RedshiftData = Service.defineService('redshiftdata', ['2019-12-20']); -Object.defineProperty(apiLoader.services['redshiftdata'], '2019-12-20', { +apiLoader.services['qconnect'] = {}; +AWS.QConnect = Service.defineService('qconnect', ['2020-10-19']); +Object.defineProperty(apiLoader.services['qconnect'], '2020-10-19', { get: function get() { - var model = __nccwpck_require__(85203); - model.paginators = (__nccwpck_require__(27797)/* .pagination */ .o); + var model = __nccwpck_require__(2229); + model.paginators = (__nccwpck_require__(86679)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.RedshiftData; +module.exports = AWS.QConnect; /***/ }), -/***/ 46302: +/***/ 53597: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['redshiftserverless'] = {}; -AWS.RedshiftServerless = Service.defineService('redshiftserverless', ['2021-04-21']); -Object.defineProperty(apiLoader.services['redshiftserverless'], '2021-04-21', { - get: function get() { - var model = __nccwpck_require__(95705); - model.paginators = (__nccwpck_require__(892)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RedshiftServerless; - - -/***/ }), - -/***/ 12972: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rekognition'] = {}; -AWS.Rekognition = Service.defineService('rekognition', ['2016-06-27']); -Object.defineProperty(apiLoader.services['rekognition'], '2016-06-27', { - get: function get() { - var model = __nccwpck_require__(66442); - model.paginators = (__nccwpck_require__(37753)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(78910)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Rekognition; - - -/***/ }), - -/***/ 91422: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resiliencehub'] = {}; -AWS.Resiliencehub = Service.defineService('resiliencehub', ['2020-04-30']); -Object.defineProperty(apiLoader.services['resiliencehub'], '2020-04-30', { - get: function get() { - var model = __nccwpck_require__(3885); - model.paginators = (__nccwpck_require__(38750)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Resiliencehub; - - -/***/ }), - -/***/ 86957: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resourceexplorer2'] = {}; -AWS.ResourceExplorer2 = Service.defineService('resourceexplorer2', ['2022-07-28']); -Object.defineProperty(apiLoader.services['resourceexplorer2'], '2022-07-28', { - get: function get() { - var model = __nccwpck_require__(26515); - model.paginators = (__nccwpck_require__(8580)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ResourceExplorer2; - - -/***/ }), - -/***/ 83040: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resourcegroups'] = {}; -AWS.ResourceGroups = Service.defineService('resourcegroups', ['2017-11-27']); -Object.defineProperty(apiLoader.services['resourcegroups'], '2017-11-27', { - get: function get() { - var model = __nccwpck_require__(73621); - model.paginators = (__nccwpck_require__(24085)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ResourceGroups; - - -/***/ }), - -/***/ 30124: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resourcegroupstaggingapi'] = {}; -AWS.ResourceGroupsTaggingAPI = Service.defineService('resourcegroupstaggingapi', ['2017-01-26']); -Object.defineProperty(apiLoader.services['resourcegroupstaggingapi'], '2017-01-26', { - get: function get() { - var model = __nccwpck_require__(71720); - model.paginators = (__nccwpck_require__(36635)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ResourceGroupsTaggingAPI; - - -/***/ }), - -/***/ 65011: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['robomaker'] = {}; -AWS.RoboMaker = Service.defineService('robomaker', ['2018-06-29']); -Object.defineProperty(apiLoader.services['robomaker'], '2018-06-29', { - get: function get() { - var model = __nccwpck_require__(6904); - model.paginators = (__nccwpck_require__(43495)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RoboMaker; - - -/***/ }), - -/***/ 48271: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rolesanywhere'] = {}; -AWS.RolesAnywhere = Service.defineService('rolesanywhere', ['2018-05-10']); -Object.defineProperty(apiLoader.services['rolesanywhere'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(80801); - model.paginators = (__nccwpck_require__(65955)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RolesAnywhere; - - -/***/ }), - -/***/ 7808: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53'] = {}; -AWS.Route53 = Service.defineService('route53', ['2013-04-01']); -__nccwpck_require__(47835); -Object.defineProperty(apiLoader.services['route53'], '2013-04-01', { - get: function get() { - var model = __nccwpck_require__(20959); - model.paginators = (__nccwpck_require__(46456)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(28347)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53; - - -/***/ }), - -/***/ 73322: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53domains'] = {}; -AWS.Route53Domains = Service.defineService('route53domains', ['2014-05-15']); -Object.defineProperty(apiLoader.services['route53domains'], '2014-05-15', { - get: function get() { - var model = __nccwpck_require__(71589); - model.paginators = (__nccwpck_require__(52189)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53Domains; - - -/***/ }), - -/***/ 69323: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53recoverycluster'] = {}; -AWS.Route53RecoveryCluster = Service.defineService('route53recoverycluster', ['2019-12-02']); -Object.defineProperty(apiLoader.services['route53recoverycluster'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(73989); - model.paginators = (__nccwpck_require__(69118)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53RecoveryCluster; - - -/***/ }), - -/***/ 68963: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53recoverycontrolconfig'] = {}; -AWS.Route53RecoveryControlConfig = Service.defineService('route53recoverycontrolconfig', ['2020-11-02']); -Object.defineProperty(apiLoader.services['route53recoverycontrolconfig'], '2020-11-02', { - get: function get() { - var model = __nccwpck_require__(38334); - model.paginators = (__nccwpck_require__(19728)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(57184)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53RecoveryControlConfig; - - -/***/ }), - -/***/ 84835: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53recoveryreadiness'] = {}; -AWS.Route53RecoveryReadiness = Service.defineService('route53recoveryreadiness', ['2019-12-02']); -Object.defineProperty(apiLoader.services['route53recoveryreadiness'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(40156); - model.paginators = (__nccwpck_require__(74839)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53RecoveryReadiness; - - -/***/ }), - -/***/ 4772: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53resolver'] = {}; -AWS.Route53Resolver = Service.defineService('route53resolver', ['2018-04-01']); -Object.defineProperty(apiLoader.services['route53resolver'], '2018-04-01', { - get: function get() { - var model = __nccwpck_require__(89229); - model.paginators = (__nccwpck_require__(95050)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53Resolver; - - -/***/ }), - -/***/ 86253: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rum'] = {}; -AWS.RUM = Service.defineService('rum', ['2018-05-10']); -Object.defineProperty(apiLoader.services['rum'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(84126); - model.paginators = (__nccwpck_require__(79432)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RUM; - - -/***/ }), - -/***/ 94692: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['s3'] = {}; -AWS.S3 = Service.defineService('s3', ['2006-03-01']); -__nccwpck_require__(89880); -Object.defineProperty(apiLoader.services['s3'], '2006-03-01', { - get: function get() { - var model = __nccwpck_require__(1129); - model.paginators = (__nccwpck_require__(7265)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(74048)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.S3; - - -/***/ }), - -/***/ 68987: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['s3control'] = {}; -AWS.S3Control = Service.defineService('s3control', ['2018-08-20']); -__nccwpck_require__(576); -Object.defineProperty(apiLoader.services['s3control'], '2018-08-20', { - get: function get() { - var model = __nccwpck_require__(1201); - model.paginators = (__nccwpck_require__(55527)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.S3Control; - - -/***/ }), - -/***/ 57156: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['s3outposts'] = {}; -AWS.S3Outposts = Service.defineService('s3outposts', ['2017-07-25']); -Object.defineProperty(apiLoader.services['s3outposts'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(79971); - model.paginators = (__nccwpck_require__(32505)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.S3Outposts; - - -/***/ }), - -/***/ 29503: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemaker'] = {}; -AWS.SageMaker = Service.defineService('sagemaker', ['2017-07-24']); -Object.defineProperty(apiLoader.services['sagemaker'], '2017-07-24', { - get: function get() { - var model = __nccwpck_require__(71132); - model.paginators = (__nccwpck_require__(69254)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(80824)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMaker; - - -/***/ }), - -/***/ 84711: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakeredge'] = {}; -AWS.SagemakerEdge = Service.defineService('sagemakeredge', ['2020-09-23']); -Object.defineProperty(apiLoader.services['sagemakeredge'], '2020-09-23', { - get: function get() { - var model = __nccwpck_require__(97093); - model.paginators = (__nccwpck_require__(71636)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SagemakerEdge; - - -/***/ }), - -/***/ 38639: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakerfeaturestoreruntime'] = {}; -AWS.SageMakerFeatureStoreRuntime = Service.defineService('sagemakerfeaturestoreruntime', ['2020-07-01']); -Object.defineProperty(apiLoader.services['sagemakerfeaturestoreruntime'], '2020-07-01', { - get: function get() { - var model = __nccwpck_require__(75546); - model.paginators = (__nccwpck_require__(12151)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerFeatureStoreRuntime; - - -/***/ }), - -/***/ 97800: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakergeospatial'] = {}; -AWS.SageMakerGeospatial = Service.defineService('sagemakergeospatial', ['2020-05-27']); -Object.defineProperty(apiLoader.services['sagemakergeospatial'], '2020-05-27', { - get: function get() { - var model = __nccwpck_require__(26059); - model.paginators = (__nccwpck_require__(99606)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerGeospatial; - - -/***/ }), - -/***/ 36966: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakermetrics'] = {}; -AWS.SageMakerMetrics = Service.defineService('sagemakermetrics', ['2022-09-30']); -Object.defineProperty(apiLoader.services['sagemakermetrics'], '2022-09-30', { - get: function get() { - var model = __nccwpck_require__(89834); - model.paginators = (__nccwpck_require__(80107)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerMetrics; - - -/***/ }), - -/***/ 26203: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakerruntime'] = {}; -AWS.SageMakerRuntime = Service.defineService('sagemakerruntime', ['2017-05-13']); -Object.defineProperty(apiLoader.services['sagemakerruntime'], '2017-05-13', { - get: function get() { - var model = __nccwpck_require__(27032); - model.paginators = (__nccwpck_require__(7570)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerRuntime; - - -/***/ }), - -/***/ 29318: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['savingsplans'] = {}; -AWS.SavingsPlans = Service.defineService('savingsplans', ['2019-06-28']); -Object.defineProperty(apiLoader.services['savingsplans'], '2019-06-28', { - get: function get() { - var model = __nccwpck_require__(46879); - model.paginators = (__nccwpck_require__(78998)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SavingsPlans; - - -/***/ }), - -/***/ 22518: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['scheduler'] = {}; -AWS.Scheduler = Service.defineService('scheduler', ['2021-06-30']); -Object.defineProperty(apiLoader.services['scheduler'], '2021-06-30', { - get: function get() { - var model = __nccwpck_require__(36876); - model.paginators = (__nccwpck_require__(54594)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Scheduler; - - -/***/ }), - -/***/ 1830: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['schemas'] = {}; -AWS.Schemas = Service.defineService('schemas', ['2019-12-02']); -Object.defineProperty(apiLoader.services['schemas'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(76626); - model.paginators = (__nccwpck_require__(34227)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(62213)/* .waiters */ .V); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Schemas; - - -/***/ }), - -/***/ 27803: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['secretsmanager'] = {}; -AWS.SecretsManager = Service.defineService('secretsmanager', ['2017-10-17']); -Object.defineProperty(apiLoader.services['secretsmanager'], '2017-10-17', { +apiLoader.services['qldb'] = {}; +AWS.QLDB = Service.defineService('qldb', ['2019-01-02']); +Object.defineProperty(apiLoader.services['qldb'], '2019-01-02', { get: function get() { - var model = __nccwpck_require__(89470); - model.paginators = (__nccwpck_require__(25613)/* .pagination */ .o); + var model = __nccwpck_require__(51827); + model.paginators = (__nccwpck_require__(61793)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SecretsManager; +module.exports = AWS.QLDB; /***/ }), -/***/ 20657: +/***/ 59785: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['securityhub'] = {}; -AWS.SecurityHub = Service.defineService('securityhub', ['2018-10-26']); -Object.defineProperty(apiLoader.services['securityhub'], '2018-10-26', { +apiLoader.services['qldbsession'] = {}; +AWS.QLDBSession = Service.defineService('qldbsession', ['2019-07-11']); +Object.defineProperty(apiLoader.services['qldbsession'], '2019-07-11', { get: function get() { - var model = __nccwpck_require__(29208); - model.paginators = (__nccwpck_require__(85595)/* .pagination */ .o); + var model = __nccwpck_require__(93182); + model.paginators = (__nccwpck_require__(67062)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SecurityHub; +module.exports = AWS.QLDBSession; /***/ }), -/***/ 59534: +/***/ 23110: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['securitylake'] = {}; -AWS.SecurityLake = Service.defineService('securitylake', ['2018-05-10']); -Object.defineProperty(apiLoader.services['securitylake'], '2018-05-10', { +apiLoader.services['quicksight'] = {}; +AWS.QuickSight = Service.defineService('quicksight', ['2018-04-01']); +Object.defineProperty(apiLoader.services['quicksight'], '2018-04-01', { get: function get() { - var model = __nccwpck_require__(26935); - model.paginators = (__nccwpck_require__(42170)/* .pagination */ .o); + var model = __nccwpck_require__(65625); + model.paginators = (__nccwpck_require__(74595)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SecurityLake; +module.exports = AWS.QuickSight; /***/ }), -/***/ 68965: +/***/ 38056: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['serverlessapplicationrepository'] = {}; -AWS.ServerlessApplicationRepository = Service.defineService('serverlessapplicationrepository', ['2017-09-08']); -Object.defineProperty(apiLoader.services['serverlessapplicationrepository'], '2017-09-08', { +apiLoader.services['ram'] = {}; +AWS.RAM = Service.defineService('ram', ['2018-01-04']); +Object.defineProperty(apiLoader.services['ram'], '2018-01-04', { get: function get() { - var model = __nccwpck_require__(68422); - model.paginators = (__nccwpck_require__(34864)/* .pagination */ .o); + var model = __nccwpck_require__(44563); + model.paginators = (__nccwpck_require__(65825)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.ServerlessApplicationRepository; +module.exports = AWS.RAM; /***/ }), -/***/ 14058: +/***/ 57073: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['servicecatalog'] = {}; -AWS.ServiceCatalog = Service.defineService('servicecatalog', ['2015-12-10']); -Object.defineProperty(apiLoader.services['servicecatalog'], '2015-12-10', { +apiLoader.services['rbin'] = {}; +AWS.Rbin = Service.defineService('rbin', ['2021-06-15']); +Object.defineProperty(apiLoader.services['rbin'], '2021-06-15', { get: function get() { - var model = __nccwpck_require__(95500); - model.paginators = (__nccwpck_require__(21687)/* .pagination */ .o); + var model = __nccwpck_require__(58775); + model.paginators = (__nccwpck_require__(48621)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.ServiceCatalog; +module.exports = AWS.Rbin; /***/ }), -/***/ 7269: +/***/ 64463: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['servicecatalogappregistry'] = {}; -AWS.ServiceCatalogAppRegistry = Service.defineService('servicecatalogappregistry', ['2020-06-24']); -Object.defineProperty(apiLoader.services['servicecatalogappregistry'], '2020-06-24', { +apiLoader.services['rds'] = {}; +AWS.RDS = Service.defineService('rds', ['2013-01-10', '2013-02-12', '2013-09-09', '2014-09-01', '2014-09-01*', '2014-10-31']); +__nccwpck_require__(41731); +Object.defineProperty(apiLoader.services['rds'], '2013-01-10', { get: function get() { - var model = __nccwpck_require__(25697); - model.paginators = (__nccwpck_require__(28893)/* .pagination */ .o); + var model = __nccwpck_require__(9506); + model.paginators = (__nccwpck_require__(76706)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); - -module.exports = AWS.ServiceCatalogAppRegistry; - - -/***/ }), - -/***/ 88907: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['servicediscovery'] = {}; -AWS.ServiceDiscovery = Service.defineService('servicediscovery', ['2017-03-14']); -Object.defineProperty(apiLoader.services['servicediscovery'], '2017-03-14', { +Object.defineProperty(apiLoader.services['rds'], '2013-02-12', { get: function get() { - var model = __nccwpck_require__(22361); - model.paginators = (__nccwpck_require__(37798)/* .pagination */ .o); + var model = __nccwpck_require__(85191); + model.paginators = (__nccwpck_require__(66333)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); - -module.exports = AWS.ServiceDiscovery; - - -/***/ }), - -/***/ 48235: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['servicequotas'] = {}; -AWS.ServiceQuotas = Service.defineService('servicequotas', ['2019-06-24']); -Object.defineProperty(apiLoader.services['servicequotas'], '2019-06-24', { +Object.defineProperty(apiLoader.services['rds'], '2013-09-09', { get: function get() { - var model = __nccwpck_require__(68850); - model.paginators = (__nccwpck_require__(34717)/* .pagination */ .o); + var model = __nccwpck_require__(66180); + model.paginators = (__nccwpck_require__(22672)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(46363)/* .waiters */ .C); return model; }, enumerable: true, - configurable: true -}); - -module.exports = AWS.ServiceQuotas; - - -/***/ }), - -/***/ 93850: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ses'] = {}; -AWS.SES = Service.defineService('ses', ['2010-12-01']); -Object.defineProperty(apiLoader.services['ses'], '2010-12-01', { + configurable: true +}); +Object.defineProperty(apiLoader.services['rds'], '2014-09-01', { + get: function get() { + var model = __nccwpck_require__(44009); + model.paginators = (__nccwpck_require__(51315)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); +Object.defineProperty(apiLoader.services['rds'], '2014-10-31', { get: function get() { - var model = __nccwpck_require__(56693); - model.paginators = (__nccwpck_require__(9399)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(98229)/* .waiters */ .V); + var model = __nccwpck_require__(26128); + model.paginators = (__nccwpck_require__(132)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(50135)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SES; +module.exports = AWS.RDS; /***/ }), -/***/ 5600: +/***/ 56704: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['sesv2'] = {}; -AWS.SESV2 = Service.defineService('sesv2', ['2019-09-27']); -Object.defineProperty(apiLoader.services['sesv2'], '2019-09-27', { +apiLoader.services['rdsdataservice'] = {}; +AWS.RDSDataService = Service.defineService('rdsdataservice', ['2018-08-01']); +__nccwpck_require__(54468); +Object.defineProperty(apiLoader.services['rdsdataservice'], '2018-08-01', { get: function get() { - var model = __nccwpck_require__(69754); - model.paginators = (__nccwpck_require__(72405)/* .pagination */ .o); + var model = __nccwpck_require__(32387); + model.paginators = (__nccwpck_require__(22961)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SESV2; +module.exports = AWS.RDSDataService; /***/ }), -/***/ 55682: +/***/ 49703: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['shield'] = {}; -AWS.Shield = Service.defineService('shield', ['2016-06-02']); -Object.defineProperty(apiLoader.services['shield'], '2016-06-02', { +apiLoader.services['redshift'] = {}; +AWS.Redshift = Service.defineService('redshift', ['2012-12-01']); +Object.defineProperty(apiLoader.services['redshift'], '2012-12-01', { get: function get() { - var model = __nccwpck_require__(47061); - model.paginators = (__nccwpck_require__(54893)/* .pagination */ .o); + var model = __nccwpck_require__(85761); + model.paginators = (__nccwpck_require__(80251)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(80856)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Shield; +module.exports = AWS.Redshift; /***/ }), -/***/ 62049: +/***/ 38095: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['signer'] = {}; -AWS.Signer = Service.defineService('signer', ['2017-08-25']); -Object.defineProperty(apiLoader.services['signer'], '2017-08-25', { +apiLoader.services['redshiftdata'] = {}; +AWS.RedshiftData = Service.defineService('redshiftdata', ['2019-12-20']); +Object.defineProperty(apiLoader.services['redshiftdata'], '2019-12-20', { get: function get() { - var model = __nccwpck_require__(97116); - model.paginators = (__nccwpck_require__(81027)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(48215)/* .waiters */ .V); + var model = __nccwpck_require__(91382); + model.paginators = (__nccwpck_require__(23838)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Signer; +module.exports = AWS.RedshiftData; /***/ }), -/***/ 3073: +/***/ 71126: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['simpledb'] = {}; -AWS.SimpleDB = Service.defineService('simpledb', ['2009-04-15']); -Object.defineProperty(apiLoader.services['simpledb'], '2009-04-15', { +apiLoader.services['redshiftserverless'] = {}; +AWS.RedshiftServerless = Service.defineService('redshiftserverless', ['2021-04-21']); +Object.defineProperty(apiLoader.services['redshiftserverless'], '2021-04-21', { get: function get() { - var model = __nccwpck_require__(45164); - model.paginators = (__nccwpck_require__(55255)/* .pagination */ .o); + var model = __nccwpck_require__(98705); + model.paginators = (__nccwpck_require__(83115)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SimpleDB; +module.exports = AWS.RedshiftServerless; /***/ }), -/***/ 19216: +/***/ 40743: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['simspaceweaver'] = {}; -AWS.SimSpaceWeaver = Service.defineService('simspaceweaver', ['2022-10-28']); -Object.defineProperty(apiLoader.services['simspaceweaver'], '2022-10-28', { +apiLoader.services['rekognition'] = {}; +AWS.Rekognition = Service.defineService('rekognition', ['2016-06-27']); +Object.defineProperty(apiLoader.services['rekognition'], '2016-06-27', { get: function get() { - var model = __nccwpck_require__(92139); - model.paginators = (__nccwpck_require__(31849)/* .pagination */ .o); + var model = __nccwpck_require__(34856); + model.paginators = (__nccwpck_require__(78828)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(27359)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SimSpaceWeaver; +module.exports = AWS.Rekognition; /***/ }), -/***/ 92974: +/***/ 40291: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['sms'] = {}; -AWS.SMS = Service.defineService('sms', ['2016-10-24']); -Object.defineProperty(apiLoader.services['sms'], '2016-10-24', { +apiLoader.services['repostspace'] = {}; +AWS.Repostspace = Service.defineService('repostspace', ['2022-05-13']); +Object.defineProperty(apiLoader.services['repostspace'], '2022-05-13', { get: function get() { - var model = __nccwpck_require__(26534); - model.paginators = (__nccwpck_require__(98730)/* .pagination */ .o); + var model = __nccwpck_require__(58807); + model.paginators = (__nccwpck_require__(84429)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SMS; +module.exports = AWS.Repostspace; /***/ }), -/***/ 50963: +/***/ 53672: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['snowball'] = {}; -AWS.Snowball = Service.defineService('snowball', ['2016-06-30']); -Object.defineProperty(apiLoader.services['snowball'], '2016-06-30', { +apiLoader.services['resiliencehub'] = {}; +AWS.Resiliencehub = Service.defineService('resiliencehub', ['2020-04-30']); +Object.defineProperty(apiLoader.services['resiliencehub'], '2020-04-30', { get: function get() { - var model = __nccwpck_require__(96822); - model.paginators = (__nccwpck_require__(45219)/* .pagination */ .o); + var model = __nccwpck_require__(32814); + model.paginators = (__nccwpck_require__(82598)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Snowball; +module.exports = AWS.Resiliencehub; /***/ }), -/***/ 97161: +/***/ 94287: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['snowdevicemanagement'] = {}; -AWS.SnowDeviceManagement = Service.defineService('snowdevicemanagement', ['2021-08-04']); -Object.defineProperty(apiLoader.services['snowdevicemanagement'], '2021-08-04', { +apiLoader.services['resourceexplorer2'] = {}; +AWS.ResourceExplorer2 = Service.defineService('resourceexplorer2', ['2022-07-28']); +Object.defineProperty(apiLoader.services['resourceexplorer2'], '2022-07-28', { get: function get() { - var model = __nccwpck_require__(97413); - model.paginators = (__nccwpck_require__(70424)/* .pagination */ .o); + var model = __nccwpck_require__(46159); + model.paginators = (__nccwpck_require__(45301)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SnowDeviceManagement; +module.exports = AWS.ResourceExplorer2; /***/ }), -/***/ 23866: +/***/ 22758: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['sns'] = {}; -AWS.SNS = Service.defineService('sns', ['2010-03-31']); -Object.defineProperty(apiLoader.services['sns'], '2010-03-31', { +apiLoader.services['resourcegroups'] = {}; +AWS.ResourceGroups = Service.defineService('resourcegroups', ['2017-11-27']); +Object.defineProperty(apiLoader.services['resourcegroups'], '2017-11-27', { get: function get() { - var model = __nccwpck_require__(64387); - model.paginators = (__nccwpck_require__(58054)/* .pagination */ .o); + var model = __nccwpck_require__(98903); + model.paginators = (__nccwpck_require__(22509)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SNS; +module.exports = AWS.ResourceGroups; /***/ }), -/***/ 90946: +/***/ 86659: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['sqs'] = {}; -AWS.SQS = Service.defineService('sqs', ['2012-11-05']); -__nccwpck_require__(82470); -Object.defineProperty(apiLoader.services['sqs'], '2012-11-05', { +apiLoader.services['resourcegroupstaggingapi'] = {}; +AWS.ResourceGroupsTaggingAPI = Service.defineService('resourcegroupstaggingapi', ['2017-01-26']); +Object.defineProperty(apiLoader.services['resourcegroupstaggingapi'], '2017-01-26', { get: function get() { - var model = __nccwpck_require__(53974); - model.paginators = (__nccwpck_require__(17249)/* .pagination */ .o); + var model = __nccwpck_require__(70749); + model.paginators = (__nccwpck_require__(18511)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SQS; +module.exports = AWS.ResourceGroupsTaggingAPI; /***/ }), -/***/ 95289: +/***/ 76280: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['ssm'] = {}; -AWS.SSM = Service.defineService('ssm', ['2014-11-06']); -Object.defineProperty(apiLoader.services['ssm'], '2014-11-06', { +apiLoader.services['robomaker'] = {}; +AWS.RoboMaker = Service.defineService('robomaker', ['2018-06-29']); +Object.defineProperty(apiLoader.services['robomaker'], '2018-06-29', { get: function get() { - var model = __nccwpck_require__(44596); - model.paginators = (__nccwpck_require__(5135)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(98523)/* .waiters */ .V); + var model = __nccwpck_require__(45697); + model.paginators = (__nccwpck_require__(33243)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SSM; +module.exports = AWS.RoboMaker; /***/ }), -/***/ 18942: +/***/ 99152: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['ssmcontacts'] = {}; -AWS.SSMContacts = Service.defineService('ssmcontacts', ['2021-05-03']); -Object.defineProperty(apiLoader.services['ssmcontacts'], '2021-05-03', { +apiLoader.services['rolesanywhere'] = {}; +AWS.RolesAnywhere = Service.defineService('rolesanywhere', ['2018-05-10']); +Object.defineProperty(apiLoader.services['rolesanywhere'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(74831); - model.paginators = (__nccwpck_require__(63938)/* .pagination */ .o); + var model = __nccwpck_require__(38254); + model.paginators = (__nccwpck_require__(98086)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SSMContacts; +module.exports = AWS.RolesAnywhere; /***/ }), -/***/ 41448: +/***/ 23809: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['ssmincidents'] = {}; -AWS.SSMIncidents = Service.defineService('ssmincidents', ['2018-05-10']); -Object.defineProperty(apiLoader.services['ssmincidents'], '2018-05-10', { +apiLoader.services['route53'] = {}; +AWS.Route53 = Service.defineService('route53', ['2013-04-01']); +__nccwpck_require__(34597); +Object.defineProperty(apiLoader.services['route53'], '2013-04-01', { get: function get() { - var model = __nccwpck_require__(18719); - model.paginators = (__nccwpck_require__(4502)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(97755)/* .waiters */ .V); + var model = __nccwpck_require__(28835); + model.paginators = (__nccwpck_require__(3217)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(49778)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SSMIncidents; +module.exports = AWS.Route53; /***/ }), -/***/ 59269: +/***/ 73384: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['ssmsap'] = {}; -AWS.SsmSap = Service.defineService('ssmsap', ['2018-05-10']); -Object.defineProperty(apiLoader.services['ssmsap'], '2018-05-10', { +apiLoader.services['route53domains'] = {}; +AWS.Route53Domains = Service.defineService('route53domains', ['2014-05-15']); +Object.defineProperty(apiLoader.services['route53domains'], '2014-05-15', { get: function get() { - var model = __nccwpck_require__(49218); - model.paginators = (__nccwpck_require__(94718)/* .pagination */ .o); + var model = __nccwpck_require__(45999); + model.paginators = (__nccwpck_require__(43221)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SsmSap; +module.exports = AWS.Route53Domains; /***/ }), -/***/ 26290: +/***/ 14183: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['sso'] = {}; -AWS.SSO = Service.defineService('sso', ['2019-06-10']); -Object.defineProperty(apiLoader.services['sso'], '2019-06-10', { +apiLoader.services['route53profiles'] = {}; +AWS.Route53Profiles = Service.defineService('route53profiles', ['2018-05-10']); +Object.defineProperty(apiLoader.services['route53profiles'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(8027); - model.paginators = (__nccwpck_require__(36610)/* .pagination */ .o); + var model = __nccwpck_require__(12075); + model.paginators = (__nccwpck_require__(45353)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SSO; +module.exports = AWS.Route53Profiles; /***/ }), -/***/ 40676: +/***/ 72674: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['ssoadmin'] = {}; -AWS.SSOAdmin = Service.defineService('ssoadmin', ['2020-07-20']); -Object.defineProperty(apiLoader.services['ssoadmin'], '2020-07-20', { +apiLoader.services['route53recoverycluster'] = {}; +AWS.Route53RecoveryCluster = Service.defineService('route53recoverycluster', ['2019-12-02']); +Object.defineProperty(apiLoader.services['route53recoverycluster'], '2019-12-02', { get: function get() { - var model = __nccwpck_require__(7239); - model.paginators = (__nccwpck_require__(49402)/* .pagination */ .o); + var model = __nccwpck_require__(54898); + model.paginators = (__nccwpck_require__(80242)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SSOAdmin; +module.exports = AWS.Route53RecoveryCluster; /***/ }), -/***/ 35997: +/***/ 35563: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['ssooidc'] = {}; -AWS.SSOOIDC = Service.defineService('ssooidc', ['2019-06-10']); -Object.defineProperty(apiLoader.services['ssooidc'], '2019-06-10', { +apiLoader.services['route53recoverycontrolconfig'] = {}; +AWS.Route53RecoveryControlConfig = Service.defineService('route53recoverycontrolconfig', ['2020-11-02']); +Object.defineProperty(apiLoader.services['route53recoverycontrolconfig'], '2020-11-02', { get: function get() { - var model = __nccwpck_require__(62343); - model.paginators = (__nccwpck_require__(50215)/* .pagination */ .o); + var model = __nccwpck_require__(67665); + model.paginators = (__nccwpck_require__(89163)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(58440)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SSOOIDC; +module.exports = AWS.Route53RecoveryControlConfig; /***/ }), -/***/ 36450: +/***/ 73824: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['stepfunctions'] = {}; -AWS.StepFunctions = Service.defineService('stepfunctions', ['2016-11-23']); -Object.defineProperty(apiLoader.services['stepfunctions'], '2016-11-23', { +apiLoader.services['route53recoveryreadiness'] = {}; +AWS.Route53RecoveryReadiness = Service.defineService('route53recoveryreadiness', ['2019-12-02']); +Object.defineProperty(apiLoader.services['route53recoveryreadiness'], '2019-12-02', { get: function get() { - var model = __nccwpck_require__(85693); - model.paginators = (__nccwpck_require__(24818)/* .pagination */ .o); + var model = __nccwpck_require__(1172); + model.paginators = (__nccwpck_require__(30752)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.StepFunctions; +module.exports = AWS.Route53RecoveryReadiness; /***/ }), -/***/ 19361: +/***/ 54139: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['storagegateway'] = {}; -AWS.StorageGateway = Service.defineService('storagegateway', ['2013-06-30']); -Object.defineProperty(apiLoader.services['storagegateway'], '2013-06-30', { +apiLoader.services['route53resolver'] = {}; +AWS.Route53Resolver = Service.defineService('route53resolver', ['2018-04-01']); +Object.defineProperty(apiLoader.services['route53resolver'], '2018-04-01', { get: function get() { - var model = __nccwpck_require__(11069); - model.paginators = (__nccwpck_require__(33999)/* .pagination */ .o); + var model = __nccwpck_require__(64036); + model.paginators = (__nccwpck_require__(83600)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.StorageGateway; +module.exports = AWS.Route53Resolver; /***/ }), -/***/ 72787: +/***/ 56236: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['sts'] = {}; -AWS.STS = Service.defineService('sts', ['2011-06-15']); -__nccwpck_require__(46889); -Object.defineProperty(apiLoader.services['sts'], '2011-06-15', { +apiLoader.services['rum'] = {}; +AWS.RUM = Service.defineService('rum', ['2018-05-10']); +Object.defineProperty(apiLoader.services['rum'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(80753); - model.paginators = (__nccwpck_require__(93639)/* .pagination */ .o); + var model = __nccwpck_require__(96554); + model.paginators = (__nccwpck_require__(954)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.STS; +module.exports = AWS.RUM; /***/ }), -/***/ 69509: +/***/ 23512: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['support'] = {}; -AWS.Support = Service.defineService('support', ['2013-04-15']); -Object.defineProperty(apiLoader.services['support'], '2013-04-15', { +apiLoader.services['s3'] = {}; +AWS.S3 = Service.defineService('s3', ['2006-03-01']); +__nccwpck_require__(59244); +Object.defineProperty(apiLoader.services['s3'], '2006-03-01', { get: function get() { - var model = __nccwpck_require__(20767); - model.paginators = (__nccwpck_require__(62491)/* .pagination */ .o); + var model = __nccwpck_require__(5260); + model.paginators = (__nccwpck_require__(45221)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(23934)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Support; +module.exports = AWS.S3; /***/ }), -/***/ 56126: +/***/ 90939: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['supportapp'] = {}; -AWS.SupportApp = Service.defineService('supportapp', ['2021-08-20']); -Object.defineProperty(apiLoader.services['supportapp'], '2021-08-20', { +apiLoader.services['s3control'] = {}; +AWS.S3Control = Service.defineService('s3control', ['2018-08-20']); +__nccwpck_require__(72719); +Object.defineProperty(apiLoader.services['s3control'], '2018-08-20', { get: function get() { - var model = __nccwpck_require__(94851); - model.paginators = (__nccwpck_require__(60546)/* .pagination */ .o); + var model = __nccwpck_require__(1137); + model.paginators = (__nccwpck_require__(52491)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SupportApp; +module.exports = AWS.S3Control; /***/ }), -/***/ 47541: +/***/ 36475: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['swf'] = {}; -AWS.SWF = Service.defineService('swf', ['2012-01-25']); -__nccwpck_require__(34613); -Object.defineProperty(apiLoader.services['swf'], '2012-01-25', { +apiLoader.services['s3outposts'] = {}; +AWS.S3Outposts = Service.defineService('s3outposts', ['2017-07-25']); +Object.defineProperty(apiLoader.services['s3outposts'], '2017-07-25', { get: function get() { - var model = __nccwpck_require__(11144); - model.paginators = (__nccwpck_require__(48039)/* .pagination */ .o); + var model = __nccwpck_require__(68894); + model.paginators = (__nccwpck_require__(85398)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.SWF; +module.exports = AWS.S3Outposts; /***/ }), -/***/ 45382: +/***/ 19284: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['synthetics'] = {}; -AWS.Synthetics = Service.defineService('synthetics', ['2017-10-11']); -Object.defineProperty(apiLoader.services['synthetics'], '2017-10-11', { +apiLoader.services['sagemaker'] = {}; +AWS.SageMaker = Service.defineService('sagemaker', ['2017-07-24']); +Object.defineProperty(apiLoader.services['sagemaker'], '2017-07-24', { get: function get() { - var model = __nccwpck_require__(78752); - model.paginators = (__nccwpck_require__(61615)/* .pagination */ .o); + var model = __nccwpck_require__(87526); + model.paginators = (__nccwpck_require__(88398)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(39741)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Synthetics; +module.exports = AWS.SageMaker; /***/ }), -/***/ 34163: +/***/ 9557: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['textract'] = {}; -AWS.Textract = Service.defineService('textract', ['2018-06-27']); -Object.defineProperty(apiLoader.services['textract'], '2018-06-27', { +apiLoader.services['sagemakeredge'] = {}; +AWS.SagemakerEdge = Service.defineService('sagemakeredge', ['2020-09-23']); +Object.defineProperty(apiLoader.services['sagemakeredge'], '2020-09-23', { get: function get() { - var model = __nccwpck_require__(49753); - model.paginators = (__nccwpck_require__(16270)/* .pagination */ .o); + var model = __nccwpck_require__(56901); + model.paginators = (__nccwpck_require__(85415)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Textract; +module.exports = AWS.SagemakerEdge; /***/ }), -/***/ 5924: +/***/ 87287: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['timestreamquery'] = {}; -AWS.TimestreamQuery = Service.defineService('timestreamquery', ['2018-11-01']); -Object.defineProperty(apiLoader.services['timestreamquery'], '2018-11-01', { +apiLoader.services['sagemakerfeaturestoreruntime'] = {}; +AWS.SageMakerFeatureStoreRuntime = Service.defineService('sagemakerfeaturestoreruntime', ['2020-07-01']); +Object.defineProperty(apiLoader.services['sagemakerfeaturestoreruntime'], '2020-07-01', { get: function get() { - var model = __nccwpck_require__(70457); - model.paginators = (__nccwpck_require__(97217)/* .pagination */ .o); + var model = __nccwpck_require__(71366); + model.paginators = (__nccwpck_require__(14574)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.TimestreamQuery; +module.exports = AWS.SageMakerFeatureStoreRuntime; /***/ }), -/***/ 6487: +/***/ 60551: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['timestreamwrite'] = {}; -AWS.TimestreamWrite = Service.defineService('timestreamwrite', ['2018-11-01']); -Object.defineProperty(apiLoader.services['timestreamwrite'], '2018-11-01', { +apiLoader.services['sagemakergeospatial'] = {}; +AWS.SageMakerGeospatial = Service.defineService('sagemakergeospatial', ['2020-05-27']); +Object.defineProperty(apiLoader.services['sagemakergeospatial'], '2020-05-27', { get: function get() { - var model = __nccwpck_require__(8368); - model.paginators = (__nccwpck_require__(89653)/* .pagination */ .o); + var model = __nccwpck_require__(81691); + model.paginators = (__nccwpck_require__(76857)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.TimestreamWrite; +module.exports = AWS.SageMakerGeospatial; /***/ }), -/***/ 63374: +/***/ 84119: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['tnb'] = {}; -AWS.Tnb = Service.defineService('tnb', ['2008-10-21']); -Object.defineProperty(apiLoader.services['tnb'], '2008-10-21', { +apiLoader.services['sagemakermetrics'] = {}; +AWS.SageMakerMetrics = Service.defineService('sagemakermetrics', ['2022-09-30']); +Object.defineProperty(apiLoader.services['sagemakermetrics'], '2022-09-30', { get: function get() { - var model = __nccwpck_require__(1433); - model.paginators = (__nccwpck_require__(55995)/* .pagination */ .o); + var model = __nccwpck_require__(47526); + model.paginators = (__nccwpck_require__(68931)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Tnb; +module.exports = AWS.SageMakerMetrics; /***/ }), -/***/ 20500: +/***/ 14402: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['transcribeservice'] = {}; -AWS.TranscribeService = Service.defineService('transcribeservice', ['2017-10-26']); -Object.defineProperty(apiLoader.services['transcribeservice'], '2017-10-26', { +apiLoader.services['sagemakerruntime'] = {}; +AWS.SageMakerRuntime = Service.defineService('sagemakerruntime', ['2017-05-13']); +Object.defineProperty(apiLoader.services['sagemakerruntime'], '2017-05-13', { get: function get() { - var model = __nccwpck_require__(47294); - model.paginators = (__nccwpck_require__(25395)/* .pagination */ .o); + var model = __nccwpck_require__(77512); + model.paginators = (__nccwpck_require__(85740)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.TranscribeService; +module.exports = AWS.SageMakerRuntime; /***/ }), -/***/ 2205: +/***/ 34455: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['transfer'] = {}; -AWS.Transfer = Service.defineService('transfer', ['2018-11-05']); -Object.defineProperty(apiLoader.services['transfer'], '2018-11-05', { +apiLoader.services['savingsplans'] = {}; +AWS.SavingsPlans = Service.defineService('savingsplans', ['2019-06-28']); +Object.defineProperty(apiLoader.services['savingsplans'], '2019-06-28', { get: function get() { - var model = __nccwpck_require__(93419); - model.paginators = (__nccwpck_require__(65803)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(45405)/* .waiters */ .V); + var model = __nccwpck_require__(26898); + model.paginators = (__nccwpck_require__(99698)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Transfer; +module.exports = AWS.SavingsPlans; /***/ }), -/***/ 16307: +/***/ 54861: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['translate'] = {}; -AWS.Translate = Service.defineService('translate', ['2017-07-01']); -Object.defineProperty(apiLoader.services['translate'], '2017-07-01', { +apiLoader.services['scheduler'] = {}; +AWS.Scheduler = Service.defineService('scheduler', ['2021-06-30']); +Object.defineProperty(apiLoader.services['scheduler'], '2021-06-30', { get: function get() { - var model = __nccwpck_require__(61084); - model.paginators = (__nccwpck_require__(40304)/* .pagination */ .o); + var model = __nccwpck_require__(84768); + model.paginators = (__nccwpck_require__(60852)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Translate; +module.exports = AWS.Scheduler; /***/ }), -/***/ 62914: +/***/ 82516: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['verifiedpermissions'] = {}; -AWS.VerifiedPermissions = Service.defineService('verifiedpermissions', ['2021-12-01']); -Object.defineProperty(apiLoader.services['verifiedpermissions'], '2021-12-01', { +apiLoader.services['schemas'] = {}; +AWS.Schemas = Service.defineService('schemas', ['2019-12-02']); +Object.defineProperty(apiLoader.services['schemas'], '2019-12-02', { get: function get() { - var model = __nccwpck_require__(31407); - model.paginators = (__nccwpck_require__(85997)/* .pagination */ .o); - model.waiters = (__nccwpck_require__(14021)/* .waiters */ .V); + var model = __nccwpck_require__(15970); + model.paginators = (__nccwpck_require__(89634)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(97097)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.VerifiedPermissions; +module.exports = AWS.Schemas; /***/ }), -/***/ 1812: +/***/ 85518: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['voiceid'] = {}; -AWS.VoiceID = Service.defineService('voiceid', ['2021-09-27']); -Object.defineProperty(apiLoader.services['voiceid'], '2021-09-27', { +apiLoader.services['secretsmanager'] = {}; +AWS.SecretsManager = Service.defineService('secretsmanager', ['2017-10-17']); +Object.defineProperty(apiLoader.services['secretsmanager'], '2017-10-17', { get: function get() { - var model = __nccwpck_require__(9375); - model.paginators = (__nccwpck_require__(59512)/* .pagination */ .o); + var model = __nccwpck_require__(41108); + model.paginators = (__nccwpck_require__(49088)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.VoiceID; +module.exports = AWS.SecretsManager; /***/ }), -/***/ 35618: +/***/ 43933: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['vpclattice'] = {}; -AWS.VPCLattice = Service.defineService('vpclattice', ['2022-11-30']); -Object.defineProperty(apiLoader.services['vpclattice'], '2022-11-30', { +apiLoader.services['securityhub'] = {}; +AWS.SecurityHub = Service.defineService('securityhub', ['2018-10-26']); +Object.defineProperty(apiLoader.services['securityhub'], '2018-10-26', { get: function get() { - var model = __nccwpck_require__(49656); - model.paginators = (__nccwpck_require__(69863)/* .pagination */ .o); + var model = __nccwpck_require__(3146); + model.paginators = (__nccwpck_require__(4058)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.VPCLattice; +module.exports = AWS.SecurityHub; /***/ }), -/***/ 8153: +/***/ 56311: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['waf'] = {}; -AWS.WAF = Service.defineService('waf', ['2015-08-24']); -Object.defineProperty(apiLoader.services['waf'], '2015-08-24', { +apiLoader.services['securitylake'] = {}; +AWS.SecurityLake = Service.defineService('securitylake', ['2018-05-10']); +Object.defineProperty(apiLoader.services['securitylake'], '2018-05-10', { get: function get() { - var model = __nccwpck_require__(37925); - model.paginators = (__nccwpck_require__(65794)/* .pagination */ .o); + var model = __nccwpck_require__(32897); + model.paginators = (__nccwpck_require__(33819)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WAF; +module.exports = AWS.SecurityLake; /***/ }), -/***/ 38749: +/***/ 46060: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['wafregional'] = {}; -AWS.WAFRegional = Service.defineService('wafregional', ['2016-11-28']); -Object.defineProperty(apiLoader.services['wafregional'], '2016-11-28', { +apiLoader.services['serverlessapplicationrepository'] = {}; +AWS.ServerlessApplicationRepository = Service.defineService('serverlessapplicationrepository', ['2017-09-08']); +Object.defineProperty(apiLoader.services['serverlessapplicationrepository'], '2017-09-08', { get: function get() { - var model = __nccwpck_require__(20014); - model.paginators = (__nccwpck_require__(47926)/* .pagination */ .o); + var model = __nccwpck_require__(13368); + model.paginators = (__nccwpck_require__(38460)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WAFRegional; +module.exports = AWS.ServerlessApplicationRepository; /***/ }), -/***/ 50382: +/***/ 69064: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['wafv2'] = {}; -AWS.WAFV2 = Service.defineService('wafv2', ['2019-07-29']); -Object.defineProperty(apiLoader.services['wafv2'], '2019-07-29', { +apiLoader.services['servicecatalog'] = {}; +AWS.ServiceCatalog = Service.defineService('servicecatalog', ['2015-12-10']); +Object.defineProperty(apiLoader.services['servicecatalog'], '2015-12-10', { get: function get() { - var model = __nccwpck_require__(51872); - model.paginators = (__nccwpck_require__(33900)/* .pagination */ .o); + var model = __nccwpck_require__(89159); + model.paginators = (__nccwpck_require__(73021)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WAFV2; +module.exports = AWS.ServiceCatalog; /***/ }), -/***/ 93852: +/***/ 76422: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['wellarchitected'] = {}; -AWS.WellArchitected = Service.defineService('wellarchitected', ['2020-03-31']); -Object.defineProperty(apiLoader.services['wellarchitected'], '2020-03-31', { +apiLoader.services['servicecatalogappregistry'] = {}; +AWS.ServiceCatalogAppRegistry = Service.defineService('servicecatalogappregistry', ['2020-06-24']); +Object.defineProperty(apiLoader.services['servicecatalogappregistry'], '2020-06-24', { get: function get() { - var model = __nccwpck_require__(19249); - model.paginators = (__nccwpck_require__(54693)/* .pagination */ .o); + var model = __nccwpck_require__(18936); + model.paginators = (__nccwpck_require__(70524)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WellArchitected; +module.exports = AWS.ServiceCatalogAppRegistry; /***/ }), -/***/ 88374: +/***/ 92113: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['wisdom'] = {}; -AWS.Wisdom = Service.defineService('wisdom', ['2020-10-19']); -Object.defineProperty(apiLoader.services['wisdom'], '2020-10-19', { +apiLoader.services['servicediscovery'] = {}; +AWS.ServiceDiscovery = Service.defineService('servicediscovery', ['2017-03-14']); +Object.defineProperty(apiLoader.services['servicediscovery'], '2017-03-14', { get: function get() { - var model = __nccwpck_require__(49870); - model.paginators = (__nccwpck_require__(54852)/* .pagination */ .o); + var model = __nccwpck_require__(63152); + model.paginators = (__nccwpck_require__(21252)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.Wisdom; +module.exports = AWS.ServiceDiscovery; /***/ }), -/***/ 83645: +/***/ 26726: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['workdocs'] = {}; -AWS.WorkDocs = Service.defineService('workdocs', ['2016-05-01']); -Object.defineProperty(apiLoader.services['workdocs'], '2016-05-01', { +apiLoader.services['servicequotas'] = {}; +AWS.ServiceQuotas = Service.defineService('servicequotas', ['2019-06-24']); +Object.defineProperty(apiLoader.services['servicequotas'], '2019-06-24', { get: function get() { - var model = __nccwpck_require__(41052); - model.paginators = (__nccwpck_require__(94768)/* .pagination */ .o); + var model = __nccwpck_require__(29088); + model.paginators = (__nccwpck_require__(21332)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WorkDocs; +module.exports = AWS.ServiceQuotas; /***/ }), -/***/ 49330: +/***/ 49941: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['worklink'] = {}; -AWS.WorkLink = Service.defineService('worklink', ['2018-09-25']); -Object.defineProperty(apiLoader.services['worklink'], '2018-09-25', { +apiLoader.services['ses'] = {}; +AWS.SES = Service.defineService('ses', ['2010-12-01']); +Object.defineProperty(apiLoader.services['ses'], '2010-12-01', { get: function get() { - var model = __nccwpck_require__(37178); - model.paginators = (__nccwpck_require__(74073)/* .pagination */ .o); + var model = __nccwpck_require__(6392); + model.paginators = (__nccwpck_require__(41340)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(62639)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WorkLink; +module.exports = AWS.SES; /***/ }), -/***/ 78046: +/***/ 53173: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['workmail'] = {}; -AWS.WorkMail = Service.defineService('workmail', ['2017-10-01']); -Object.defineProperty(apiLoader.services['workmail'], '2017-10-01', { +apiLoader.services['sesv2'] = {}; +AWS.SESV2 = Service.defineService('sesv2', ['2019-09-27']); +Object.defineProperty(apiLoader.services['sesv2'], '2019-09-27', { get: function get() { - var model = __nccwpck_require__(93150); - model.paginators = (__nccwpck_require__(5158)/* .pagination */ .o); + var model = __nccwpck_require__(38612); + model.paginators = (__nccwpck_require__(14400)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WorkMail; +module.exports = AWS.SESV2; /***/ }), -/***/ 93565: +/***/ 9783: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['workmailmessageflow'] = {}; -AWS.WorkMailMessageFlow = Service.defineService('workmailmessageflow', ['2019-05-01']); -Object.defineProperty(apiLoader.services['workmailmessageflow'], '2019-05-01', { +apiLoader.services['shield'] = {}; +AWS.Shield = Service.defineService('shield', ['2016-06-02']); +Object.defineProperty(apiLoader.services['shield'], '2016-06-02', { get: function get() { - var model = __nccwpck_require__(57733); - model.paginators = (__nccwpck_require__(85646)/* .pagination */ .o); + var model = __nccwpck_require__(66579); + model.paginators = (__nccwpck_require__(44321)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WorkMailMessageFlow; +module.exports = AWS.Shield; /***/ }), -/***/ 31740: +/***/ 544: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['workspaces'] = {}; -AWS.WorkSpaces = Service.defineService('workspaces', ['2015-04-08']); -Object.defineProperty(apiLoader.services['workspaces'], '2015-04-08', { +apiLoader.services['signer'] = {}; +AWS.Signer = Service.defineService('signer', ['2017-08-25']); +Object.defineProperty(apiLoader.services['signer'], '2017-08-25', { get: function get() { - var model = __nccwpck_require__(97805); - model.paginators = (__nccwpck_require__(27769)/* .pagination */ .o); + var model = __nccwpck_require__(1372); + model.paginators = (__nccwpck_require__(55256)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(73091)/* .waiters */ .C); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WorkSpaces; +module.exports = AWS.Signer; /***/ }), -/***/ 70343: +/***/ 6818: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['workspacesweb'] = {}; -AWS.WorkSpacesWeb = Service.defineService('workspacesweb', ['2020-07-08']); -Object.defineProperty(apiLoader.services['workspacesweb'], '2020-07-08', { +apiLoader.services['simpledb'] = {}; +AWS.SimpleDB = Service.defineService('simpledb', ['2009-04-15']); +Object.defineProperty(apiLoader.services['simpledb'], '2009-04-15', { get: function get() { - var model = __nccwpck_require__(47128); - model.paginators = (__nccwpck_require__(43497)/* .pagination */ .o); + var model = __nccwpck_require__(62391); + model.paginators = (__nccwpck_require__(6029)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.WorkSpacesWeb; +module.exports = AWS.SimpleDB; /***/ }), -/***/ 39860: +/***/ 2933: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -__nccwpck_require__(16083); -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); var Service = AWS.Service; var apiLoader = AWS.apiLoader; -apiLoader.services['xray'] = {}; -AWS.XRay = Service.defineService('xray', ['2016-04-12']); -Object.defineProperty(apiLoader.services['xray'], '2016-04-12', { +apiLoader.services['simspaceweaver'] = {}; +AWS.SimSpaceWeaver = Service.defineService('simspaceweaver', ['2022-10-28']); +Object.defineProperty(apiLoader.services['simspaceweaver'], '2022-10-28', { get: function get() { - var model = __nccwpck_require__(97355); - model.paginators = (__nccwpck_require__(97949)/* .pagination */ .o); + var model = __nccwpck_require__(55631); + model.paginators = (__nccwpck_require__(26101)/* .pagination */ .X); return model; }, enumerable: true, configurable: true }); -module.exports = AWS.XRay; - - -/***/ }), - -/***/ 8440: -/***/ ((module) => { - -function apiLoader(svc, version) { - if (!apiLoader.services.hasOwnProperty(svc)) { - throw new Error('InvalidService: Failed to load api for ' + svc); - } - return apiLoader.services[svc][version]; -} - -/** - * @api private - * - * This member of AWS.apiLoader is private, but changing it will necessitate a - * change to ../scripts/services-table-generator.ts - */ -apiLoader.services = {}; - -/** - * @api private - */ -module.exports = apiLoader; - - -/***/ }), - -/***/ 61210: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16083); - -var AWS = __nccwpck_require__(14741); - -// Load all service classes -__nccwpck_require__(27574); - -/** - * @api private - */ -module.exports = AWS; +module.exports = AWS.SimSpaceWeaver; /***/ }), -/***/ 55317: +/***/ 65949: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741), - url = AWS.util.url, - crypto = AWS.util.crypto.lib, - base64Encode = AWS.util.base64.encode, - inherit = AWS.util.inherit; - -var queryEncode = function (string) { - var replacements = { - '+': '-', - '=': '_', - '/': '~' - }; - return string.replace(/[\+=\/]/g, function (match) { - return replacements[match]; - }); -}; - -var signPolicy = function (policy, privateKey) { - var sign = crypto.createSign('RSA-SHA1'); - sign.write(policy); - return queryEncode(sign.sign(privateKey, 'base64')); -}; - -var signWithCannedPolicy = function (url, expires, keyPairId, privateKey) { - var policy = JSON.stringify({ - Statement: [ - { - Resource: url, - Condition: { DateLessThan: { 'AWS:EpochTime': expires } } - } - ] - }); - - return { - Expires: expires, - 'Key-Pair-Id': keyPairId, - Signature: signPolicy(policy.toString(), privateKey) - }; -}; - -var signWithCustomPolicy = function (policy, keyPairId, privateKey) { - policy = policy.replace(/\s/mg, ''); - - return { - Policy: queryEncode(base64Encode(policy)), - 'Key-Pair-Id': keyPairId, - Signature: signPolicy(policy, privateKey) - }; -}; - -var determineScheme = function (url) { - var parts = url.split('://'); - if (parts.length < 2) { - throw new Error('Invalid URL.'); - } - - return parts[0].replace('*', ''); -}; - -var getRtmpUrl = function (rtmpUrl) { - var parsed = url.parse(rtmpUrl); - return parsed.path.replace(/^\//, '') + (parsed.hash || ''); -}; - -var getResource = function (url) { - switch (determineScheme(url)) { - case 'http': - case 'https': - return url; - case 'rtmp': - return getRtmpUrl(url); - default: - throw new Error('Invalid URI scheme. Scheme must be one of' - + ' http, https, or rtmp'); - } -}; - -var handleError = function (err, callback) { - if (!callback || typeof callback !== 'function') { - throw err; - } - - callback(err); -}; - -var handleSuccess = function (result, callback) { - if (!callback || typeof callback !== 'function') { - return result; - } - - callback(null, result); -}; - -AWS.CloudFront.Signer = inherit({ - /** - * A signer object can be used to generate signed URLs and cookies for granting - * access to content on restricted CloudFront distributions. - * - * @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html - * - * @param keyPairId [String] (Required) The ID of the CloudFront key pair - * being used. - * @param privateKey [String] (Required) A private key in RSA format. - */ - constructor: function Signer(keyPairId, privateKey) { - if (keyPairId === void 0 || privateKey === void 0) { - throw new Error('A key pair ID and private key are required'); - } - - this.keyPairId = keyPairId; - this.privateKey = privateKey; - }, - - /** - * Create a signed Amazon CloudFront Cookie. - * - * @param options [Object] The options to create a signed cookie. - * @option options url [String] The URL to which the signature will grant - * access. Required unless you pass in a full - * policy. - * @option options expires [Number] A Unix UTC timestamp indicating when the - * signature should expire. Required unless you - * pass in a full policy. - * @option options policy [String] A CloudFront JSON policy. Required unless - * you pass in a url and an expiry time. - * - * @param cb [Function] if a callback is provided, this function will - * pass the hash as the second parameter (after the error parameter) to - * the callback function. - * - * @return [Object] if called synchronously (with no callback), returns the - * signed cookie parameters. - * @return [null] nothing is returned if a callback is provided. - */ - getSignedCookie: function (options, cb) { - var signatureHash = 'policy' in options - ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) - : signWithCannedPolicy(options.url, options.expires, this.keyPairId, this.privateKey); - - var cookieHash = {}; - for (var key in signatureHash) { - if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { - cookieHash['CloudFront-' + key] = signatureHash[key]; - } - } - - return handleSuccess(cookieHash, cb); - }, - - /** - * Create a signed Amazon CloudFront URL. - * - * Keep in mind that URLs meant for use in media/flash players may have - * different requirements for URL formats (e.g. some require that the - * extension be removed, some require the file name to be prefixed - * - mp4:, some require you to add "/cfx/st" into your URL). - * - * @param options [Object] The options to create a signed URL. - * @option options url [String] The URL to which the signature will grant - * access. Any query params included with - * the URL should be encoded. Required. - * @option options expires [Number] A Unix UTC timestamp indicating when the - * signature should expire. Required unless you - * pass in a full policy. - * @option options policy [String] A CloudFront JSON policy. Required unless - * you pass in a url and an expiry time. - * - * @param cb [Function] if a callback is provided, this function will - * pass the URL as the second parameter (after the error parameter) to - * the callback function. - * - * @return [String] if called synchronously (with no callback), returns the - * signed URL. - * @return [null] nothing is returned if a callback is provided. - */ - getSignedUrl: function (options, cb) { - try { - var resource = getResource(options.url); - } catch (err) { - return handleError(err, cb); - } - - var parsedUrl = url.parse(options.url, true), - signatureHash = Object.prototype.hasOwnProperty.call(options, 'policy') - ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) - : signWithCannedPolicy(resource, options.expires, this.keyPairId, this.privateKey); - - parsedUrl.search = null; - for (var key in signatureHash) { - if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { - parsedUrl.query[key] = signatureHash[key]; - } - } - - try { - var signedUrl = determineScheme(options.url) === 'rtmp' - ? getRtmpUrl(url.format(parsedUrl)) - : url.format(parsedUrl); - } catch (err) { - return handleError(err, cb); - } - - return handleSuccess(signedUrl, cb); - } -}); - -/** - * @api private - */ -module.exports = AWS.CloudFront.Signer; - - -/***/ }), - -/***/ 64992: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -__nccwpck_require__(75527); -__nccwpck_require__(92008); -var PromisesDependency; - -/** - * The main configuration class used by all service objects to set - * the region, credentials, and other options for requests. - * - * By default, credentials and region settings are left unconfigured. - * This should be configured by the application before using any - * AWS service APIs. - * - * In order to set global configuration options, properties should - * be assigned to the global {AWS.config} object. - * - * @see AWS.config - * - * @!group General Configuration Options - * - * @!attribute credentials - * @return [AWS.Credentials] the AWS credentials to sign requests with. - * - * @!attribute region - * @example Set the global region setting to us-west-2 - * AWS.config.update({region: 'us-west-2'}); - * @return [AWS.Credentials] The region to send service requests to. - * @see http://docs.amazonwebservices.com/general/latest/gr/rande.html - * A list of available endpoints for each AWS service - * - * @!attribute maxRetries - * @return [Integer] the maximum amount of retries to perform for a - * service request. By default this value is calculated by the specific - * service object that the request is being made to. - * - * @!attribute maxRedirects - * @return [Integer] the maximum amount of redirects to follow for a - * service request. Defaults to 10. - * - * @!attribute paramValidation - * @return [Boolean|map] whether input parameters should be validated against - * the operation description before sending the request. Defaults to true. - * Pass a map to enable any of the following specific validation features: - * - * * **min** [Boolean] — Validates that a value meets the min - * constraint. This is enabled by default when paramValidation is set - * to `true`. - * * **max** [Boolean] — Validates that a value meets the max - * constraint. - * * **pattern** [Boolean] — Validates that a string value matches a - * regular expression. - * * **enum** [Boolean] — Validates that a string value matches one - * of the allowable enum values. - * - * @!attribute computeChecksums - * @return [Boolean] whether to compute checksums for payload bodies when - * the service accepts it (currently supported in S3 and SQS only). - * - * @!attribute convertResponseTypes - * @return [Boolean] whether types are converted when parsing response data. - * Currently only supported for JSON based services. Turning this off may - * improve performance on large response payloads. Defaults to `true`. - * - * @!attribute correctClockSkew - * @return [Boolean] whether to apply a clock skew correction and retry - * requests that fail because of an skewed client clock. Defaults to - * `false`. - * - * @!attribute sslEnabled - * @return [Boolean] whether SSL is enabled for requests - * - * @!attribute s3ForcePathStyle - * @return [Boolean] whether to force path style URLs for S3 objects - * - * @!attribute s3BucketEndpoint - * @note Setting this configuration option requires an `endpoint` to be - * provided explicitly to the service constructor. - * @return [Boolean] whether the provided endpoint addresses an individual - * bucket (false if it addresses the root API endpoint). - * - * @!attribute s3DisableBodySigning - * @return [Boolean] whether to disable S3 body signing when using signature version `v4`. - * Body signing can only be disabled when using https. Defaults to `true`. - * - * @!attribute s3UsEast1RegionalEndpoint - * @return ['legacy'|'regional'] when region is set to 'us-east-1', whether to send s3 - * request to global endpoints or 'us-east-1' regional endpoints. This config is only - * applicable to S3 client; - * Defaults to 'legacy' - * @!attribute s3UseArnRegion - * @return [Boolean] whether to override the request region with the region inferred - * from requested resource's ARN. Only available for S3 buckets - * Defaults to `true` - * - * @!attribute useAccelerateEndpoint - * @note This configuration option is only compatible with S3 while accessing - * dns-compatible buckets. - * @return [Boolean] Whether to use the Accelerate endpoint with the S3 service. - * Defaults to `false`. - * - * @!attribute retryDelayOptions - * @example Set the base retry delay for all services to 300 ms - * AWS.config.update({retryDelayOptions: {base: 300}}); - * // Delays with maxRetries = 3: 300, 600, 1200 - * @example Set a custom backoff function to provide delay values on retries - * AWS.config.update({retryDelayOptions: {customBackoff: function(retryCount, err) { - * // returns delay in ms - * }}}); - * @return [map] A set of options to configure the retry delay on retryable errors. - * Currently supported options are: - * - * * **base** [Integer] — The base number of milliseconds to use in the - * exponential backoff for operation retries. Defaults to 100 ms for all services except - * DynamoDB, where it defaults to 50ms. - * - * * **customBackoff ** [function] — A custom function that accepts a - * retry count and error and returns the amount of time to delay in - * milliseconds. If the result is a non-zero negative value, no further - * retry attempts will be made. The `base` option will be ignored if this - * option is supplied. The function is only called for retryable errors. - * - * @!attribute httpOptions - * @return [map] A set of options to pass to the low-level HTTP request. - * Currently supported options are: - * - * * **proxy** [String] — the URL to proxy requests through - * * **agent** [http.Agent, https.Agent] — the Agent object to perform - * HTTP requests with. Used for connection pooling. Note that for - * SSL connections, a special Agent object is used in order to enable - * peer certificate verification. This feature is only supported in the - * Node.js environment. - * * **connectTimeout** [Integer] — Sets the socket to timeout after - * failing to establish a connection with the server after - * `connectTimeout` milliseconds. This timeout has no effect once a socket - * connection has been established. - * * **timeout** [Integer] — The number of milliseconds a request can - * take before automatically being terminated. - * Defaults to two minutes (120000). - * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous - * HTTP requests. Used in the browser environment only. Set to false to - * send requests synchronously. Defaults to true (async on). - * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials" - * property of an XMLHttpRequest object. Used in the browser environment - * only. Defaults to false. - * @!attribute logger - * @return [#write,#log] an object that responds to .write() (like a stream) - * or .log() (like the console object) in order to log information about - * requests - * - * @!attribute systemClockOffset - * @return [Number] an offset value in milliseconds to apply to all signing - * times. Use this to compensate for clock skew when your system may be - * out of sync with the service time. Note that this configuration option - * can only be applied to the global `AWS.config` object and cannot be - * overridden in service-specific configuration. Defaults to 0 milliseconds. - * - * @!attribute signatureVersion - * @return [String] the signature version to sign requests with (overriding - * the API configuration). Possible values are: 'v2', 'v3', 'v4'. - * - * @!attribute signatureCache - * @return [Boolean] whether the signature to sign requests with (overriding - * the API configuration) is cached. Only applies to the signature version 'v4'. - * Defaults to `true`. - * - * @!attribute endpointDiscoveryEnabled - * @return [Boolean|undefined] whether to call operations with endpoints - * given by service dynamically. Setting this config to `true` will enable - * endpoint discovery for all applicable operations. Setting it to `false` - * will explicitly disable endpoint discovery even though operations that - * require endpoint discovery will presumably fail. Leaving it to - * `undefined` means SDK only do endpoint discovery when it's required. - * Defaults to `undefined` - * - * @!attribute endpointCacheSize - * @return [Number] the size of the global cache storing endpoints from endpoint - * discovery operations. Once endpoint cache is created, updating this setting - * cannot change existing cache size. - * Defaults to 1000 - * - * @!attribute hostPrefixEnabled - * @return [Boolean] whether to marshal request parameters to the prefix of - * hostname. Defaults to `true`. - * - * @!attribute stsRegionalEndpoints - * @return ['legacy'|'regional'] whether to send sts request to global endpoints or - * regional endpoints. - * Defaults to 'legacy'. - * - * @!attribute useFipsEndpoint - * @return [Boolean] Enables FIPS compatible endpoints. Defaults to `false`. - * - * @!attribute useDualstackEndpoint - * @return [Boolean] Enables IPv6 dualstack endpoint. Defaults to `false`. - */ -AWS.Config = AWS.util.inherit({ - /** - * @!endgroup - */ - - /** - * Creates a new configuration object. This is the object that passes - * option data along to service requests, including credentials, security, - * region information, and some service specific settings. - * - * @example Creating a new configuration object with credentials and region - * var config = new AWS.Config({ - * accessKeyId: 'AKID', secretAccessKey: 'SECRET', region: 'us-west-2' - * }); - * @option options accessKeyId [String] your AWS access key ID. - * @option options secretAccessKey [String] your AWS secret access key. - * @option options sessionToken [AWS.Credentials] the optional AWS - * session token to sign requests with. - * @option options credentials [AWS.Credentials] the AWS credentials - * to sign requests with. You can either specify this object, or - * specify the accessKeyId and secretAccessKey options directly. - * @option options credentialProvider [AWS.CredentialProviderChain] the - * provider chain used to resolve credentials if no static `credentials` - * property is set. - * @option options region [String] the region to send service requests to. - * See {region} for more information. - * @option options maxRetries [Integer] the maximum amount of retries to - * attempt with a request. See {maxRetries} for more information. - * @option options maxRedirects [Integer] the maximum amount of redirects to - * follow with a request. See {maxRedirects} for more information. - * @option options sslEnabled [Boolean] whether to enable SSL for - * requests. - * @option options paramValidation [Boolean|map] whether input parameters - * should be validated against the operation description before sending - * the request. Defaults to true. Pass a map to enable any of the - * following specific validation features: - * - * * **min** [Boolean] — Validates that a value meets the min - * constraint. This is enabled by default when paramValidation is set - * to `true`. - * * **max** [Boolean] — Validates that a value meets the max - * constraint. - * * **pattern** [Boolean] — Validates that a string value matches a - * regular expression. - * * **enum** [Boolean] — Validates that a string value matches one - * of the allowable enum values. - * @option options computeChecksums [Boolean] whether to compute checksums - * for payload bodies when the service accepts it (currently supported - * in S3 only) - * @option options convertResponseTypes [Boolean] whether types are converted - * when parsing response data. Currently only supported for JSON based - * services. Turning this off may improve performance on large response - * payloads. Defaults to `true`. - * @option options correctClockSkew [Boolean] whether to apply a clock skew - * correction and retry requests that fail because of an skewed client - * clock. Defaults to `false`. - * @option options s3ForcePathStyle [Boolean] whether to force path - * style URLs for S3 objects. - * @option options s3BucketEndpoint [Boolean] whether the provided endpoint - * addresses an individual bucket (false if it addresses the root API - * endpoint). Note that setting this configuration option requires an - * `endpoint` to be provided explicitly to the service constructor. - * @option options s3DisableBodySigning [Boolean] whether S3 body signing - * should be disabled when using signature version `v4`. Body signing - * can only be disabled when using https. Defaults to `true`. - * @option options s3UsEast1RegionalEndpoint ['legacy'|'regional'] when region - * is set to 'us-east-1', whether to send s3 request to global endpoints or - * 'us-east-1' regional endpoints. This config is only applicable to S3 client. - * Defaults to `legacy` - * @option options s3UseArnRegion [Boolean] whether to override the request region - * with the region inferred from requested resource's ARN. Only available for S3 buckets - * Defaults to `true` - * - * @option options retryDelayOptions [map] A set of options to configure - * the retry delay on retryable errors. Currently supported options are: - * - * * **base** [Integer] — The base number of milliseconds to use in the - * exponential backoff for operation retries. Defaults to 100 ms for all - * services except DynamoDB, where it defaults to 50ms. - * * **customBackoff ** [function] — A custom function that accepts a - * retry count and error and returns the amount of time to delay in - * milliseconds. If the result is a non-zero negative value, no further - * retry attempts will be made. The `base` option will be ignored if this - * option is supplied. The function is only called for retryable errors. - * @option options httpOptions [map] A set of options to pass to the low-level - * HTTP request. Currently supported options are: - * - * * **proxy** [String] — the URL to proxy requests through - * * **agent** [http.Agent, https.Agent] — the Agent object to perform - * HTTP requests with. Used for connection pooling. Defaults to the global - * agent (`http.globalAgent`) for non-SSL connections. Note that for - * SSL connections, a special Agent object is used in order to enable - * peer certificate verification. This feature is only available in the - * Node.js environment. - * * **connectTimeout** [Integer] — Sets the socket to timeout after - * failing to establish a connection with the server after - * `connectTimeout` milliseconds. This timeout has no effect once a socket - * connection has been established. - * * **timeout** [Integer] — Sets the socket to timeout after timeout - * milliseconds of inactivity on the socket. Defaults to two minutes - * (120000). - * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous - * HTTP requests. Used in the browser environment only. Set to false to - * send requests synchronously. Defaults to true (async on). - * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials" - * property of an XMLHttpRequest object. Used in the browser environment - * only. Defaults to false. - * @option options apiVersion [String, Date] a String in YYYY-MM-DD format - * (or a date) that represents the latest possible API version that can be - * used in all services (unless overridden by `apiVersions`). Specify - * 'latest' to use the latest possible version. - * @option options apiVersions [map] a map of service - * identifiers (the lowercase service class name) with the API version to - * use when instantiating a service. Specify 'latest' for each individual - * that can use the latest available version. - * @option options logger [#write,#log] an object that responds to .write() - * (like a stream) or .log() (like the console object) in order to log - * information about requests - * @option options systemClockOffset [Number] an offset value in milliseconds - * to apply to all signing times. Use this to compensate for clock skew - * when your system may be out of sync with the service time. Note that - * this configuration option can only be applied to the global `AWS.config` - * object and cannot be overridden in service-specific configuration. - * Defaults to 0 milliseconds. - * @option options signatureVersion [String] the signature version to sign - * requests with (overriding the API configuration). Possible values are: - * 'v2', 'v3', 'v4'. - * @option options signatureCache [Boolean] whether the signature to sign - * requests with (overriding the API configuration) is cached. Only applies - * to the signature version 'v4'. Defaults to `true`. - * @option options dynamoDbCrc32 [Boolean] whether to validate the CRC32 - * checksum of HTTP response bodies returned by DynamoDB. Default: `true`. - * @option options useAccelerateEndpoint [Boolean] Whether to use the - * S3 Transfer Acceleration endpoint with the S3 service. Default: `false`. - * @option options clientSideMonitoring [Boolean] whether to collect and - * publish this client's performance metrics of all its API requests. - * @option options endpointDiscoveryEnabled [Boolean|undefined] whether to - * call operations with endpoints given by service dynamically. Setting this - * config to `true` will enable endpoint discovery for all applicable operations. - * Setting it to `false` will explicitly disable endpoint discovery even though - * operations that require endpoint discovery will presumably fail. Leaving it - * to `undefined` means SDK will only do endpoint discovery when it's required. - * Defaults to `undefined` - * @option options endpointCacheSize [Number] the size of the global cache storing - * endpoints from endpoint discovery operations. Once endpoint cache is created, - * updating this setting cannot change existing cache size. - * Defaults to 1000 - * @option options hostPrefixEnabled [Boolean] whether to marshal request - * parameters to the prefix of hostname. - * Defaults to `true`. - * @option options stsRegionalEndpoints ['legacy'|'regional'] whether to send sts request - * to global endpoints or regional endpoints. - * Defaults to 'legacy'. - * @option options useFipsEndpoint [Boolean] Enables FIPS compatible endpoints. - * Defaults to `false`. - * @option options useDualstackEndpoint [Boolean] Enables IPv6 dualstack endpoint. - * Defaults to `false`. - */ - constructor: function Config(options) { - if (options === undefined) options = {}; - options = this.extractCredentials(options); - - AWS.util.each.call(this, this.keys, function (key, value) { - this.set(key, options[key], value); - }); - }, - - /** - * @!group Managing Credentials - */ +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * Loads credentials from the configuration object. This is used internally - * by the SDK to ensure that refreshable {Credentials} objects are properly - * refreshed and loaded when sending a request. If you want to ensure that - * your credentials are loaded prior to a request, you can use this method - * directly to provide accurate credential data stored in the object. - * - * @note If you configure the SDK with static or environment credentials, - * the credential data should already be present in {credentials} attribute. - * This method is primarily necessary to load credentials from asynchronous - * sources, or sources that can refresh credentials periodically. - * @example Getting your access key - * AWS.config.getCredentials(function(err) { - * if (err) console.log(err.stack); // credentials not loaded - * else console.log("Access Key:", AWS.config.credentials.accessKeyId); - * }) - * @callback callback function(err) - * Called when the {credentials} have been properly set on the configuration - * object. - * - * @param err [Error] if this is set, credentials were not successfully - * loaded and this error provides information why. - * @see credentials - * @see Credentials - */ - getCredentials: function getCredentials(callback) { - var self = this; +apiLoader.services['sms'] = {}; +AWS.SMS = Service.defineService('sms', ['2016-10-24']); +Object.defineProperty(apiLoader.services['sms'], '2016-10-24', { + get: function get() { + var model = __nccwpck_require__(28514); + model.paginators = (__nccwpck_require__(86242)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); - function finish(err) { - callback(err, err ? null : self.credentials); - } +module.exports = AWS.SMS; - function credError(msg, err) { - return new AWS.util.error(err || new Error(), { - code: 'CredentialsError', - message: msg, - name: 'CredentialsError' - }); - } - function getAsyncCredentials() { - self.credentials.get(function(err) { - if (err) { - var msg = 'Could not load credentials from ' + - self.credentials.constructor.name; - err = credError(msg, err); - } - finish(err); - }); - } +/***/ }), - function getStaticCredentials() { - var err = null; - if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { - err = credError('Missing credentials'); - } - finish(err); - } +/***/ 71648: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (self.credentials) { - if (typeof self.credentials.get === 'function') { - getAsyncCredentials(); - } else { // static credentials - getStaticCredentials(); - } - } else if (self.credentialProvider) { - self.credentialProvider.resolve(function(err, creds) { - if (err) { - err = credError('Could not load credentials from any providers', err); - } - self.credentials = creds; - finish(err); - }); - } else { - finish(credError('No credentials to load')); - } +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['snowball'] = {}; +AWS.Snowball = Service.defineService('snowball', ['2016-06-30']); +Object.defineProperty(apiLoader.services['snowball'], '2016-06-30', { + get: function get() { + var model = __nccwpck_require__(90359); + model.paginators = (__nccwpck_require__(16653)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Loads token from the configuration object. This is used internally - * by the SDK to ensure that refreshable {Token} objects are properly - * refreshed and loaded when sending a request. If you want to ensure that - * your token is loaded prior to a request, you can use this method - * directly to provide accurate token data stored in the object. - * - * @note If you configure the SDK with static token, the token data should - * already be present in {token} attribute. This method is primarily necessary - * to load token from asynchronous sources, or sources that can refresh - * token periodically. - * @example Getting your access token - * AWS.config.getToken(function(err) { - * if (err) console.log(err.stack); // token not loaded - * else console.log("Token:", AWS.config.token.token); - * }) - * @callback callback function(err) - * Called when the {token} have been properly set on the configuration object. - * - * @param err [Error] if this is set, token was not successfully loaded and - * this error provides information why. - * @see token - */ - getToken: function getToken(callback) { - var self = this; +module.exports = AWS.Snowball; - function finish(err) { - callback(err, err ? null : self.token); - } - function tokenError(msg, err) { - return new AWS.util.error(err || new Error(), { - code: 'TokenError', - message: msg, - name: 'TokenError' - }); - } +/***/ }), - function getAsyncToken() { - self.token.get(function(err) { - if (err) { - var msg = 'Could not load token from ' + - self.token.constructor.name; - err = tokenError(msg, err); - } - finish(err); - }); - } +/***/ 5620: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - function getStaticToken() { - var err = null; - if (!self.token.token) { - err = tokenError('Missing token'); - } - finish(err); - } +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - if (self.token) { - if (typeof self.token.get === 'function') { - getAsyncToken(); - } else { // static token - getStaticToken(); - } - } else if (self.tokenProvider) { - self.tokenProvider.resolve(function(err, token) { - if (err) { - err = tokenError('Could not load token from any providers', err); - } - self.token = token; - finish(err); - }); - } else { - finish(tokenError('No token to load')); - } +apiLoader.services['snowdevicemanagement'] = {}; +AWS.SnowDeviceManagement = Service.defineService('snowdevicemanagement', ['2021-08-04']); +Object.defineProperty(apiLoader.services['snowdevicemanagement'], '2021-08-04', { + get: function get() { + var model = __nccwpck_require__(66554); + model.paginators = (__nccwpck_require__(37674)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @!group Loading and Setting Configuration Options - */ +module.exports = AWS.SnowDeviceManagement; - /** - * @overload update(options, allowUnknownKeys = false) - * Updates the current configuration object with new options. - * - * @example Update maxRetries property of a configuration object - * config.update({maxRetries: 10}); - * @param [Object] options a map of option keys and values. - * @param [Boolean] allowUnknownKeys whether unknown keys can be set on - * the configuration object. Defaults to `false`. - * @see constructor - */ - update: function update(options, allowUnknownKeys) { - allowUnknownKeys = allowUnknownKeys || false; - options = this.extractCredentials(options); - AWS.util.each.call(this, options, function (key, value) { - if (allowUnknownKeys || Object.prototype.hasOwnProperty.call(this.keys, key) || - AWS.Service.hasService(key)) { - this.set(key, value); - } - }); - }, - /** - * Loads configuration data from a JSON file into this config object. - * @note Loading configuration will reset all existing configuration - * on the object. - * @!macro nobrowser - * @param path [String] the path relative to your process's current - * working directory to load configuration from. - * @return [AWS.Config] the same configuration object - */ - loadFromPath: function loadFromPath(path) { - this.clear(); +/***/ }), - var options = JSON.parse(AWS.util.readFileSync(path)); - var fileSystemCreds = new AWS.FileSystemCredentials(path); - var chain = new AWS.CredentialProviderChain(); - chain.providers.unshift(fileSystemCreds); - chain.resolve(function (err, creds) { - if (err) throw err; - else options.credentials = creds; - }); +/***/ 44758: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - this.constructor(options); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - return this; +apiLoader.services['sns'] = {}; +AWS.SNS = Service.defineService('sns', ['2010-03-31']); +Object.defineProperty(apiLoader.services['sns'], '2010-03-31', { + get: function get() { + var model = __nccwpck_require__(23535); + model.paginators = (__nccwpck_require__(18837)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Clears configuration data on this object - * - * @api private - */ - clear: function clear() { - /*jshint forin:false */ - AWS.util.each.call(this, this.keys, function (key) { - delete this[key]; - }); +module.exports = AWS.SNS; - // reset credential provider - this.set('credentials', undefined); - this.set('credentialProvider', undefined); - }, - /** - * Sets a property on the configuration object, allowing for a - * default value - * @api private - */ - set: function set(property, value, defaultValue) { - if (value === undefined) { - if (defaultValue === undefined) { - defaultValue = this.keys[property]; - } - if (typeof defaultValue === 'function') { - this[property] = defaultValue.call(this); - } else { - this[property] = defaultValue; - } - } else if (property === 'httpOptions' && this[property]) { - // deep merge httpOptions - this[property] = AWS.util.merge(this[property], value); - } else { - this[property] = value; - } - }, +/***/ }), - /** - * All of the keys with their default values. - * - * @constant - * @api private - */ - keys: { - credentials: null, - credentialProvider: null, - region: null, - logger: null, - apiVersions: {}, - apiVersion: null, - endpoint: undefined, - httpOptions: { - timeout: 120000 - }, - maxRetries: undefined, - maxRedirects: 10, - paramValidation: true, - sslEnabled: true, - s3ForcePathStyle: false, - s3BucketEndpoint: false, - s3DisableBodySigning: true, - s3UsEast1RegionalEndpoint: 'legacy', - s3UseArnRegion: undefined, - computeChecksums: true, - convertResponseTypes: true, - correctClockSkew: false, - customUserAgent: null, - dynamoDbCrc32: true, - systemClockOffset: 0, - signatureVersion: null, - signatureCache: true, - retryDelayOptions: {}, - useAccelerateEndpoint: false, - clientSideMonitoring: false, - endpointDiscoveryEnabled: undefined, - endpointCacheSize: 1000, - hostPrefixEnabled: true, - stsRegionalEndpoints: 'legacy', - useFipsEndpoint: false, - useDualstackEndpoint: false, - token: null - }, +/***/ 97761: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * Extracts accessKeyId, secretAccessKey and sessionToken - * from a configuration hash. - * - * @api private - */ - extractCredentials: function extractCredentials(options) { - if (options.accessKeyId && options.secretAccessKey) { - options = AWS.util.copy(options); - options.credentials = new AWS.Credentials(options); - } - return options; - }, +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * Sets the promise dependency the SDK will use wherever Promises are returned. - * Passing `null` will force the SDK to use native Promises if they are available. - * If native Promises are not available, passing `null` will have no effect. - * @param [Constructor] dep A reference to a Promise constructor - */ - setPromisesDependency: function setPromisesDependency(dep) { - PromisesDependency = dep; - // if null was passed in, we should try to use native promises - if (dep === null && typeof Promise === 'function') { - PromisesDependency = Promise; - } - var constructors = [AWS.Request, AWS.Credentials, AWS.CredentialProviderChain]; - if (AWS.S3) { - constructors.push(AWS.S3); - if (AWS.S3.ManagedUpload) { - constructors.push(AWS.S3.ManagedUpload); - } - } - AWS.util.addPromises(constructors, PromisesDependency); +apiLoader.services['sqs'] = {}; +AWS.SQS = Service.defineService('sqs', ['2012-11-05']); +__nccwpck_require__(5341); +Object.defineProperty(apiLoader.services['sqs'], '2012-11-05', { + get: function get() { + var model = __nccwpck_require__(25062); + model.paginators = (__nccwpck_require__(25038)/* .pagination */ .X); + return model; }, - - /** - * Gets the promise dependency set by `AWS.config.setPromisesDependency`. - */ - getPromisesDependency: function getPromisesDependency() { - return PromisesDependency; - } + enumerable: true, + configurable: true }); -/** - * @return [AWS.Config] The global configuration object singleton instance - * @readonly - * @see AWS.Config - */ -AWS.config = new AWS.Config(); +module.exports = AWS.SQS; /***/ }), -/***/ 4872: +/***/ 52541: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -/** - * @api private - */ -function validateRegionalEndpointsFlagValue(configValue, errorOptions) { - if (typeof configValue !== 'string') return undefined; - else if (['legacy', 'regional'].indexOf(configValue.toLowerCase()) >= 0) { - return configValue.toLowerCase(); - } else { - throw AWS.util.error(new Error(), errorOptions); - } -} +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * Resolve the configuration value for regional endpoint from difference sources: client - * config, environmental variable, shared config file. Value can be case-insensitive - * 'legacy' or 'reginal'. - * @param originalConfig user-supplied config object to resolve - * @param options a map of config property names from individual configuration source - * - env: name of environmental variable that refers to the config - * - sharedConfig: name of shared configuration file property that refers to the config - * - clientConfig: name of client configuration property that refers to the config - * - * @api private - */ -function resolveRegionalEndpointsFlag(originalConfig, options) { - originalConfig = originalConfig || {}; - //validate config value - var resolved; - if (originalConfig[options.clientConfig]) { - resolved = validateRegionalEndpointsFlagValue(originalConfig[options.clientConfig], { - code: 'InvalidConfiguration', - message: 'invalid "' + options.clientConfig + '" configuration. Expect "legacy" ' + - ' or "regional". Got "' + originalConfig[options.clientConfig] + '".' - }); - if (resolved) return resolved; - } - if (!AWS.util.isNode()) return resolved; - //validate environmental variable - if (Object.prototype.hasOwnProperty.call(process.env, options.env)) { - var envFlag = process.env[options.env]; - resolved = validateRegionalEndpointsFlagValue(envFlag, { - code: 'InvalidEnvironmentalVariable', - message: 'invalid ' + options.env + ' environmental variable. Expect "legacy" ' + - ' or "regional". Got "' + process.env[options.env] + '".' - }); - if (resolved) return resolved; - } - //validate shared config file - var profile = {}; - try { - var profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader); - profile = profiles[process.env.AWS_PROFILE || AWS.util.defaultProfile]; - } catch (e) {}; - if (profile && Object.prototype.hasOwnProperty.call(profile, options.sharedConfig)) { - var fileFlag = profile[options.sharedConfig]; - resolved = validateRegionalEndpointsFlagValue(fileFlag, { - code: 'InvalidConfiguration', - message: 'invalid ' + options.sharedConfig + ' profile config. Expect "legacy" ' + - ' or "regional". Got "' + profile[options.sharedConfig] + '".' - }); - if (resolved) return resolved; - } - return resolved; -} +apiLoader.services['ssm'] = {}; +AWS.SSM = Service.defineService('ssm', ['2014-11-06']); +Object.defineProperty(apiLoader.services['ssm'], '2014-11-06', { + get: function get() { + var model = __nccwpck_require__(47477); + model.paginators = (__nccwpck_require__(89239)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(88140)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); -module.exports = resolveRegionalEndpointsFlag; +module.exports = AWS.SSM; /***/ }), -/***/ 14741: +/***/ 64536: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * The main AWS namespace - */ -var AWS = { util: __nccwpck_require__(43956) }; +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * @api private - * @!macro [new] nobrowser - * @note This feature is not supported in the browser environment of the SDK. - */ -var _hidden = {}; _hidden.toString(); // hack to parse macro +apiLoader.services['ssmcontacts'] = {}; +AWS.SSMContacts = Service.defineService('ssmcontacts', ['2021-05-03']); +Object.defineProperty(apiLoader.services['ssmcontacts'], '2021-05-03', { + get: function get() { + var model = __nccwpck_require__(38169); + model.paginators = (__nccwpck_require__(47235)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); -/** - * @api private - */ -module.exports = AWS; +module.exports = AWS.SSMContacts; -AWS.util.update(AWS, { - /** - * @constant - */ - VERSION: '2.1460.0', +/***/ }), - /** - * @api private - */ - Signers: {}, +/***/ 54862: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @api private - */ - Protocol: { - Json: __nccwpck_require__(67372), - Query: __nccwpck_require__(46556), - Rest: __nccwpck_require__(79008), - RestJson: __nccwpck_require__(34839), - RestXml: __nccwpck_require__(78932) - }, +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * @api private - */ - XML: { - Builder: __nccwpck_require__(88611), - Parser: null // conditionally set based on environment +apiLoader.services['ssmincidents'] = {}; +AWS.SSMIncidents = Service.defineService('ssmincidents', ['2018-05-10']); +Object.defineProperty(apiLoader.services['ssmincidents'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(68052); + model.paginators = (__nccwpck_require__(18909)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(88918)/* .waiters */ .C); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - JSON: { - Builder: __nccwpck_require__(94387), - Parser: __nccwpck_require__(61039) - }, +module.exports = AWS.SSMIncidents; - /** - * @api private - */ - Model: { - Api: __nccwpck_require__(79101), - Operation: __nccwpck_require__(50130), - Shape: __nccwpck_require__(77478), - Paginator: __nccwpck_require__(16186), - ResourceWaiter: __nccwpck_require__(84343) - }, - /** - * @api private - */ - apiLoader: __nccwpck_require__(8440), +/***/ }), - /** - * @api private - */ - EndpointCache: (__nccwpck_require__(60123)/* .EndpointCache */ .$) -}); -__nccwpck_require__(25555); -__nccwpck_require__(4466); -__nccwpck_require__(64992); -__nccwpck_require__(72574); -__nccwpck_require__(43091); -__nccwpck_require__(89265); -__nccwpck_require__(36275); -__nccwpck_require__(75197); -__nccwpck_require__(83922); -__nccwpck_require__(9717); -__nccwpck_require__(98059); +/***/ 20601: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * @readonly - * @return [AWS.SequentialExecutor] a collection of global event listeners that - * are attached to every sent request. - * @see AWS.Request AWS.Request for a list of events to listen for - * @example Logging the time taken to send a request - * AWS.events.on('send', function startSend(resp) { - * resp.startTime = new Date().getTime(); - * }).on('complete', function calculateTime(resp) { - * var time = (new Date().getTime() - resp.startTime) / 1000; - * console.log('Request took ' + time + ' seconds'); - * }); - * - * new AWS.S3().listBuckets(); // prints 'Request took 0.285 seconds' - */ -AWS.events = new AWS.SequentialExecutor(); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -//create endpoint cache lazily -AWS.util.memoizedProperty(AWS, 'endpointCache', function() { - return new AWS.EndpointCache(AWS.config.endpointCacheSize); -}, true); +apiLoader.services['ssmquicksetup'] = {}; +AWS.SSMQuickSetup = Service.defineService('ssmquicksetup', ['2018-05-10']); +Object.defineProperty(apiLoader.services['ssmquicksetup'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(35830); + model.paginators = (__nccwpck_require__(54878)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); +module.exports = AWS.SSMQuickSetup; -/***/ }), -/***/ 75527: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ }), -var AWS = __nccwpck_require__(14741); +/***/ 14437: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Represents your AWS security credentials, specifically the - * {accessKeyId}, {secretAccessKey}, and optional {sessionToken}. - * Creating a `Credentials` object allows you to pass around your - * security information to configuration and service objects. - * - * Note that this class typically does not need to be constructed manually, - * as the {AWS.Config} and {AWS.Service} classes both accept simple - * options hashes with the three keys. These structures will be converted - * into Credentials objects automatically. - * - * ## Expiring and Refreshing Credentials - * - * Occasionally credentials can expire in the middle of a long-running - * application. In this case, the SDK will automatically attempt to - * refresh the credentials from the storage location if the Credentials - * class implements the {refresh} method. - * - * If you are implementing a credential storage location, you - * will want to create a subclass of the `Credentials` class and - * override the {refresh} method. This method allows credentials to be - * retrieved from the backing store, be it a file system, database, or - * some network storage. The method should reset the credential attributes - * on the object. - * - * @!attribute expired - * @return [Boolean] whether the credentials have been expired and - * require a refresh. Used in conjunction with {expireTime}. - * @!attribute expireTime - * @return [Date] a time when credentials should be considered expired. Used - * in conjunction with {expired}. - * @!attribute accessKeyId - * @return [String] the AWS access key ID - * @!attribute secretAccessKey - * @return [String] the AWS secret access key - * @!attribute sessionToken - * @return [String] an optional AWS session token - */ -AWS.Credentials = AWS.util.inherit({ - /** - * A credentials object can be created using positional arguments or an options - * hash. - * - * @overload AWS.Credentials(accessKeyId, secretAccessKey, sessionToken=null) - * Creates a Credentials object with a given set of credential information - * as positional arguments. - * @param accessKeyId [String] the AWS access key ID - * @param secretAccessKey [String] the AWS secret access key - * @param sessionToken [String] the optional AWS session token - * @example Create a credentials object with AWS credentials - * var creds = new AWS.Credentials('akid', 'secret', 'session'); - * @overload AWS.Credentials(options) - * Creates a Credentials object with a given set of credential information - * as an options hash. - * @option options accessKeyId [String] the AWS access key ID - * @option options secretAccessKey [String] the AWS secret access key - * @option options sessionToken [String] the optional AWS session token - * @example Create a credentials object with AWS credentials - * var creds = new AWS.Credentials({ - * accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'session' - * }); - */ - constructor: function Credentials() { - // hide secretAccessKey from being displayed with util.inspect - AWS.util.hideProperties(this, ['secretAccessKey']); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - this.expired = false; - this.expireTime = null; - this.refreshCallbacks = []; - if (arguments.length === 1 && typeof arguments[0] === 'object') { - var creds = arguments[0].credentials || arguments[0]; - this.accessKeyId = creds.accessKeyId; - this.secretAccessKey = creds.secretAccessKey; - this.sessionToken = creds.sessionToken; - } else { - this.accessKeyId = arguments[0]; - this.secretAccessKey = arguments[1]; - this.sessionToken = arguments[2]; - } +apiLoader.services['ssmsap'] = {}; +AWS.SsmSap = Service.defineService('ssmsap', ['2018-05-10']); +Object.defineProperty(apiLoader.services['ssmsap'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(3514); + model.paginators = (__nccwpck_require__(62858)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @return [Integer] the number of seconds before {expireTime} during which - * the credentials will be considered expired. - */ - expiryWindow: 15, +module.exports = AWS.SsmSap; - /** - * @return [Boolean] whether the credentials object should call {refresh} - * @note Subclasses should override this method to provide custom refresh - * logic. - */ - needsRefresh: function needsRefresh() { - var currentTime = AWS.util.date.getDate().getTime(); - var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); - if (this.expireTime && adjustedTime > this.expireTime) { - return true; - } else { - return this.expired || !this.accessKeyId || !this.secretAccessKey; - } - }, +/***/ }), - /** - * Gets the existing credentials, refreshing them if they are not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload credentials when they are already - * loaded into the object. - * - * @callback callback function(err) - * When this callback is called with no error, it means either credentials - * do not need to be refreshed or refreshed credentials information has - * been loaded into the object (as the `accessKeyId`, `secretAccessKey`, - * and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - */ - get: function get(callback) { - var self = this; - if (this.needsRefresh()) { - this.refresh(function(err) { - if (!err) self.expired = false; // reset expired flag - if (callback) callback(err); - }); - } else if (callback) { - callback(); - } +/***/ 53947: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['sso'] = {}; +AWS.SSO = Service.defineService('sso', ['2019-06-10']); +Object.defineProperty(apiLoader.services['sso'], '2019-06-10', { + get: function get() { + var model = __nccwpck_require__(19523); + model.paginators = (__nccwpck_require__(17073)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @!method getPromise() - * Returns a 'thenable' promise. - * Gets the existing credentials, refreshing them if they are not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload credentials when they are already - * loaded into the object. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it - * means either credentials do not need to be refreshed or refreshed - * credentials information has been loaded into the object (as the - * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled - * @return [Promise] A promise that represents the state of the `get` call. - * @example Calling the `getPromise` method. - * var promise = credProvider.getPromise(); - * promise.then(function() { ... }, function(err) { ... }); - */ +module.exports = AWS.SSO; - /** - * @!method refreshPromise() - * Returns a 'thenable' promise. - * Refreshes the credentials. Users should call {get} before attempting - * to forcibly refresh credentials. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it - * means refreshed credentials information has been loaded into the object - * (as the `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled - * @return [Promise] A promise that represents the state of the `refresh` call. - * @example Calling the `refreshPromise` method. - * var promise = credProvider.refreshPromise(); - * promise.then(function() { ... }, function(err) { ... }); - */ - /** - * Refreshes the credentials. Users should call {get} before attempting - * to forcibly refresh credentials. - * - * @callback callback function(err) - * When this callback is called with no error, it means refreshed - * credentials information has been loaded into the object (as the - * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @note Subclasses should override this class to reset the - * {accessKeyId}, {secretAccessKey} and optional {sessionToken} - * on the credentials object and then call the callback with - * any error information. - * @see get - */ - refresh: function refresh(callback) { - this.expired = false; - callback(); - }, +/***/ }), - /** - * @api private - * @param callback - */ - coalesceRefresh: function coalesceRefresh(callback, sync) { - var self = this; - if (self.refreshCallbacks.push(callback) === 1) { - self.load(function onLoad(err) { - AWS.util.arrayEach(self.refreshCallbacks, function(callback) { - if (sync) { - callback(err); - } else { - // callback could throw, so defer to ensure all callbacks are notified - AWS.util.defer(function () { - callback(err); - }); - } - }); - self.refreshCallbacks.length = 0; - }); - } - }, +/***/ 54544: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @api private - * @param callback - */ - load: function load(callback) { - callback(); - } +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['ssoadmin'] = {}; +AWS.SSOAdmin = Service.defineService('ssoadmin', ['2020-07-20']); +Object.defineProperty(apiLoader.services['ssoadmin'], '2020-07-20', { + get: function get() { + var model = __nccwpck_require__(20863); + model.paginators = (__nccwpck_require__(70949)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); -/** - * @api private - */ -AWS.Credentials.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.getPromise = AWS.util.promisifyMethod('get', PromiseDependency); - this.prototype.refreshPromise = AWS.util.promisifyMethod('refresh', PromiseDependency); -}; +module.exports = AWS.SSOAdmin; -/** - * @api private - */ -AWS.Credentials.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.getPromise; - delete this.prototype.refreshPromise; -}; -AWS.util.addPromises(AWS.Credentials); +/***/ }), +/***/ 76630: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/***/ }), +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/***/ 66684: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +apiLoader.services['ssooidc'] = {}; +AWS.SSOOIDC = Service.defineService('ssooidc', ['2019-06-10']); +Object.defineProperty(apiLoader.services['ssooidc'], '2019-06-10', { + get: function get() { + var model = __nccwpck_require__(5583); + model.paginators = (__nccwpck_require__(1525)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); -var AWS = __nccwpck_require__(14741); -var STS = __nccwpck_require__(72787); +module.exports = AWS.SSOOIDC; -/** - * Represents temporary credentials retrieved from {AWS.STS}. Without any - * extra parameters, credentials will be fetched from the - * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the - * {AWS.STS.assumeRole} operation will be used to fetch credentials for the - * role instead. - * - * AWS.ChainableTemporaryCredentials differs from AWS.TemporaryCredentials in - * the way masterCredentials and refreshes are handled. - * AWS.ChainableTemporaryCredentials refreshes expired credentials using the - * masterCredentials passed by the user to support chaining of STS credentials. - * However, AWS.TemporaryCredentials recursively collapses the masterCredentials - * during instantiation, precluding the ability to refresh credentials which - * require intermediate, temporary credentials. - * - * For example, if the application should use RoleA, which must be assumed from - * RoleB, and the environment provides credentials which can assume RoleB, then - * AWS.ChainableTemporaryCredentials must be used to support refreshing the - * temporary credentials for RoleA: - * - * ```javascript - * var roleACreds = new AWS.ChainableTemporaryCredentials({ - * params: {RoleArn: 'RoleA'}, - * masterCredentials: new AWS.ChainableTemporaryCredentials({ - * params: {RoleArn: 'RoleB'}, - * masterCredentials: new AWS.EnvironmentCredentials('AWS') - * }) - * }); - * ``` - * - * If AWS.TemporaryCredentials had been used in the previous example, - * `roleACreds` would fail to refresh because `roleACreds` would - * use the environment credentials for the AssumeRole request. - * - * Another difference is that AWS.ChainableTemporaryCredentials creates the STS - * service instance during instantiation while AWS.TemporaryCredentials creates - * the STS service instance during the first refresh. Creating the service - * instance during instantiation effectively captures the master credentials - * from the global config, so that subsequent changes to the global config do - * not affect the master credentials used to refresh the temporary credentials. - * - * This allows an instance of AWS.ChainableTemporaryCredentials to be assigned - * to AWS.config.credentials: - * - * ```javascript - * var envCreds = new AWS.EnvironmentCredentials('AWS'); - * AWS.config.credentials = envCreds; - * // masterCredentials will be envCreds - * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({ - * params: {RoleArn: '...'} - * }); - * ``` - * - * Similarly, to use the CredentialProviderChain's default providers as the - * master credentials, simply create a new instance of - * AWS.ChainableTemporaryCredentials: - * - * ```javascript - * AWS.config.credentials = new ChainableTemporaryCredentials({ - * params: {RoleArn: '...'} - * }); - * ``` - * - * @!attribute service - * @return [AWS.STS] the STS service instance used to - * get and refresh temporary credentials from AWS STS. - * @note (see constructor) - */ -AWS.ChainableTemporaryCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new temporary credentials object. - * - * @param options [map] a set of options - * @option options params [map] ({}) a map of options that are passed to the - * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations. - * If a `RoleArn` parameter is passed in, credentials will be based on the - * IAM role. If a `SerialNumber` parameter is passed in, {tokenCodeFn} must - * also be passed in or an error will be thrown. - * @option options masterCredentials [AWS.Credentials] the master credentials - * used to get and refresh temporary credentials from AWS STS. By default, - * AWS.config.credentials or AWS.config.credentialProvider will be used. - * @option options tokenCodeFn [Function] (null) Function to provide - * `TokenCode`, if `SerialNumber` is provided for profile in {params}. Function - * is called with value of `SerialNumber` and `callback`, and should provide - * the `TokenCode` or an error to the callback in the format - * `callback(err, token)`. - * @example Creating a new credentials object for generic temporary credentials - * AWS.config.credentials = new AWS.ChainableTemporaryCredentials(); - * @example Creating a new credentials object for an IAM role - * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({ - * params: { - * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials' - * } - * }); - * @see AWS.STS.assumeRole - * @see AWS.STS.getSessionToken - */ - constructor: function ChainableTemporaryCredentials(options) { - AWS.Credentials.call(this); - options = options || {}; - this.errorCode = 'ChainableTemporaryCredentialsProviderFailure'; - this.expired = true; - this.tokenCodeFn = null; - var params = AWS.util.copy(options.params) || {}; - if (params.RoleArn) { - params.RoleSessionName = params.RoleSessionName || 'temporary-credentials'; - } - if (params.SerialNumber) { - if (!options.tokenCodeFn || (typeof options.tokenCodeFn !== 'function')) { - throw new AWS.util.error( - new Error('tokenCodeFn must be a function when params.SerialNumber is given'), - {code: this.errorCode} - ); - } else { - this.tokenCodeFn = options.tokenCodeFn; - } - } - var config = AWS.util.merge( - { - params: params, - credentials: options.masterCredentials || AWS.config.credentials - }, - options.stsConfig || {} - ); - this.service = new STS(config); - }, +/***/ }), - /** - * Refreshes credentials using {AWS.STS.assumeRole} or - * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed - * to the credentials {constructor}. - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see AWS.Credentials.get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, +/***/ 3891: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @api private - * @param callback - */ - load: function load(callback) { - var self = this; - var operation = self.service.config.params.RoleArn ? 'assumeRole' : 'getSessionToken'; - this.getTokenCode(function (err, tokenCode) { - var params = {}; - if (err) { - callback(err); - return; - } - if (tokenCode) { - params.TokenCode = tokenCode; - } - self.service[operation](params, function (err, data) { - if (!err) { - self.service.credentialsFrom(data, self); - } - callback(err); - }); - }); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['stepfunctions'] = {}; +AWS.StepFunctions = Service.defineService('stepfunctions', ['2016-11-23']); +Object.defineProperty(apiLoader.services['stepfunctions'], '2016-11-23', { + get: function get() { + var model = __nccwpck_require__(99851); + model.paginators = (__nccwpck_require__(35433)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - getTokenCode: function getTokenCode(callback) { - var self = this; - if (this.tokenCodeFn) { - this.tokenCodeFn(this.service.config.params.SerialNumber, function (err, token) { - if (err) { - var message = err; - if (err instanceof Error) { - message = err.message; - } - callback( - AWS.util.error( - new Error('Error fetching MFA token: ' + message), - { code: self.errorCode} - ) - ); - return; - } - callback(null, token); - }); - } else { - callback(null); - } - } +module.exports = AWS.StepFunctions; + + +/***/ }), + +/***/ 71367: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['storagegateway'] = {}; +AWS.StorageGateway = Service.defineService('storagegateway', ['2013-06-30']); +Object.defineProperty(apiLoader.services['storagegateway'], '2013-06-30', { + get: function get() { + var model = __nccwpck_require__(28685); + model.paginators = (__nccwpck_require__(95276)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); +module.exports = AWS.StorageGateway; + /***/ }), -/***/ 95263: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 72904: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var CognitoIdentity = __nccwpck_require__(25361); -var STS = __nccwpck_require__(72787); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * Represents credentials retrieved from STS Web Identity Federation using - * the Amazon Cognito Identity service. - * - * By default this provider gets credentials using the - * {AWS.CognitoIdentity.getCredentialsForIdentity} service operation, which - * requires either an `IdentityId` or an `IdentityPoolId` (Amazon Cognito - * Identity Pool ID), which is used to call {AWS.CognitoIdentity.getId} to - * obtain an `IdentityId`. If the identity or identity pool is not configured in - * the Amazon Cognito Console to use IAM roles with the appropriate permissions, - * then additionally a `RoleArn` is required containing the ARN of the IAM trust - * policy for the Amazon Cognito role that the user will log into. If a `RoleArn` - * is provided, then this provider gets credentials using the - * {AWS.STS.assumeRoleWithWebIdentity} service operation, after first getting an - * Open ID token from {AWS.CognitoIdentity.getOpenIdToken}. - * - * In addition, if this credential provider is used to provide authenticated - * login, the `Logins` map may be set to the tokens provided by the respective - * identity providers. See {constructor} for an example on creating a credentials - * object with proper property values. - * - * ## Refreshing Credentials from Identity Service - * - * In addition to AWS credentials expiring after a given amount of time, the - * login token from the identity provider will also expire. Once this token - * expires, it will not be usable to refresh AWS credentials, and another - * token will be needed. The SDK does not manage refreshing of the token value, - * but this can be done through a "refresh token" supported by most identity - * providers. Consult the documentation for the identity provider for refreshing - * tokens. Once the refreshed token is acquired, you should make sure to update - * this new token in the credentials object's {params} property. The following - * code will update the WebIdentityToken, assuming you have retrieved an updated - * token from the identity provider: - * - * ```javascript - * AWS.config.credentials.params.Logins['graph.facebook.com'] = updatedToken; - * ``` - * - * Future calls to `credentials.refresh()` will now use the new token. - * - * @!attribute params - * @return [map] the map of params passed to - * {AWS.CognitoIdentity.getId}, - * {AWS.CognitoIdentity.getOpenIdToken}, and - * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the - * `params.WebIdentityToken` property. - * @!attribute data - * @return [map] the raw data response from the call to - * {AWS.CognitoIdentity.getCredentialsForIdentity}, or - * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get - * access to other properties from the response. - * @!attribute identityId - * @return [String] the Cognito ID returned by the last call to - * {AWS.CognitoIdentity.getOpenIdToken}. This ID represents the actual - * final resolved identity ID from Amazon Cognito. - */ -AWS.CognitoIdentityCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * @api private - */ - localStorageKey: { - id: 'aws.cognito.identity-id.', - providers: 'aws.cognito.identity-providers.' +apiLoader.services['sts'] = {}; +AWS.STS = Service.defineService('sts', ['2011-06-15']); +__nccwpck_require__(29596); +Object.defineProperty(apiLoader.services['sts'], '2011-06-15', { + get: function get() { + var model = __nccwpck_require__(9105); + model.paginators = (__nccwpck_require__(44747)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Creates a new credentials object. - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.CognitoIdentityCredentials({ - * - * // either IdentityPoolId or IdentityId is required - * // See the IdentityPoolId param for AWS.CognitoIdentity.getID (linked below) - * // See the IdentityId param for AWS.CognitoIdentity.getCredentialsForIdentity - * // or AWS.CognitoIdentity.getOpenIdToken (linked below) - * IdentityPoolId: 'us-east-1:1699ebc0-7900-4099-b910-2df94f52a030', - * IdentityId: 'us-east-1:128d0a74-c82f-4553-916d-90053e4a8b0f' - * - * // optional, only necessary when the identity pool is not configured - * // to use IAM roles in the Amazon Cognito Console - * // See the RoleArn param for AWS.STS.assumeRoleWithWebIdentity (linked below) - * RoleArn: 'arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity', - * - * // optional tokens, used for authenticated login - * // See the Logins param for AWS.CognitoIdentity.getID (linked below) - * Logins: { - * 'graph.facebook.com': 'FBTOKEN', - * 'www.amazon.com': 'AMAZONTOKEN', - * 'accounts.google.com': 'GOOGLETOKEN', - * 'api.twitter.com': 'TWITTERTOKEN', - * 'www.digits.com': 'DIGITSTOKEN' - * }, - * - * // optional name, defaults to web-identity - * // See the RoleSessionName param for AWS.STS.assumeRoleWithWebIdentity (linked below) - * RoleSessionName: 'web', - * - * // optional, only necessary when application runs in a browser - * // and multiple users are signed in at once, used for caching - * LoginId: 'example@gmail.com' - * - * }, { - * // optionally provide configuration to apply to the underlying service clients - * // if configuration is not provided, then configuration will be pulled from AWS.config - * - * // region should match the region your identity pool is located in - * region: 'us-east-1', - * - * // specify timeout options - * httpOptions: { - * timeout: 100 - * } - * }); - * @see AWS.CognitoIdentity.getId - * @see AWS.CognitoIdentity.getCredentialsForIdentity - * @see AWS.STS.assumeRoleWithWebIdentity - * @see AWS.CognitoIdentity.getOpenIdToken - * @see AWS.Config - * @note If a region is not provided in the global AWS.config, or - * specified in the `clientConfig` to the CognitoIdentityCredentials - * constructor, you may encounter a 'Missing credentials in config' error - * when calling making a service call. - */ - constructor: function CognitoIdentityCredentials(params, clientConfig) { - AWS.Credentials.call(this); - this.expired = true; - this.params = params; - this.data = null; - this._identityId = null; - this._clientConfig = AWS.util.copy(clientConfig || {}); - this.loadCachedId(); - var self = this; - Object.defineProperty(this, 'identityId', { - get: function() { - self.loadCachedId(); - return self._identityId || self.params.IdentityId; - }, - set: function(identityId) { - self._identityId = identityId; - } - }); - }, +module.exports = AWS.STS; - /** - * Refreshes credentials using {AWS.CognitoIdentity.getCredentialsForIdentity}, - * or {AWS.STS.assumeRoleWithWebIdentity}. - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see AWS.Credentials.get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - /** - * @api private - * @param callback - */ - load: function load(callback) { - var self = this; - self.createClients(); - self.data = null; - self._identityId = null; - self.getId(function(err) { - if (!err) { - if (!self.params.RoleArn) { - self.getCredentialsForIdentity(callback); - } else { - self.getCredentialsFromSTS(callback); - } - } else { - self.clearIdOnNotAuthorized(err); - callback(err); - } - }); - }, +/***/ }), - /** - * Clears the cached Cognito ID associated with the currently configured - * identity pool ID. Use this to manually invalidate your cache if - * the identity pool ID was deleted. - */ - clearCachedId: function clearCache() { - this._identityId = null; - delete this.params.IdentityId; +/***/ 8096: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var poolId = this.params.IdentityPoolId; - var loginId = this.params.LoginId || ''; - delete this.storage[this.localStorageKey.id + poolId + loginId]; - delete this.storage[this.localStorageKey.providers + poolId + loginId]; - }, +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * @api private - */ - clearIdOnNotAuthorized: function clearIdOnNotAuthorized(err) { - var self = this; - if (err.code == 'NotAuthorizedException') { - self.clearCachedId(); - } +apiLoader.services['supplychain'] = {}; +AWS.SupplyChain = Service.defineService('supplychain', ['2024-01-01']); +Object.defineProperty(apiLoader.services['supplychain'], '2024-01-01', { + get: function get() { + var model = __nccwpck_require__(92519); + model.paginators = (__nccwpck_require__(44381)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Retrieves a Cognito ID, loading from cache if it was already retrieved - * on this device. - * - * @callback callback function(err, identityId) - * @param err [Error, null] an error object if the call failed or null if - * it succeeded. - * @param identityId [String, null] if successful, the callback will return - * the Cognito ID. - * @note If not loaded explicitly, the Cognito ID is loaded and stored in - * localStorage in the browser environment of a device. - * @api private - */ - getId: function getId(callback) { - var self = this; - if (typeof self.params.IdentityId === 'string') { - return callback(null, self.params.IdentityId); - } +module.exports = AWS.SupplyChain; - self.cognito.getId(function(err, data) { - if (!err && data.IdentityId) { - self.params.IdentityId = data.IdentityId; - callback(null, data.IdentityId); - } else { - callback(err); - } - }); - }, +/***/ }), - /** - * @api private - */ - loadCredentials: function loadCredentials(data, credentials) { - if (!data || !credentials) return; - credentials.expired = false; - credentials.accessKeyId = data.Credentials.AccessKeyId; - credentials.secretAccessKey = data.Credentials.SecretKey; - credentials.sessionToken = data.Credentials.SessionToken; - credentials.expireTime = data.Credentials.Expiration; - }, +/***/ 26295: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @api private - */ - getCredentialsForIdentity: function getCredentialsForIdentity(callback) { - var self = this; - self.cognito.getCredentialsForIdentity(function(err, data) { - if (!err) { - self.cacheId(data); - self.data = data; - self.loadCredentials(self.data, self); - } else { - self.clearIdOnNotAuthorized(err); - } - callback(err); - }); - }, +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * @api private - */ - getCredentialsFromSTS: function getCredentialsFromSTS(callback) { - var self = this; - self.cognito.getOpenIdToken(function(err, data) { - if (!err) { - self.cacheId(data); - self.params.WebIdentityToken = data.Token; - self.webIdentityCredentials.refresh(function(webErr) { - if (!webErr) { - self.data = self.webIdentityCredentials.data; - self.sts.credentialsFrom(self.data, self); - } - callback(webErr); - }); - } else { - self.clearIdOnNotAuthorized(err); - callback(err); - } - }); +apiLoader.services['support'] = {}; +AWS.Support = Service.defineService('support', ['2013-04-15']); +Object.defineProperty(apiLoader.services['support'], '2013-04-15', { + get: function get() { + var model = __nccwpck_require__(93308); + model.paginators = (__nccwpck_require__(71704)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - loadCachedId: function loadCachedId() { - var self = this; +module.exports = AWS.Support; - // in the browser we source default IdentityId from localStorage - if (AWS.util.isBrowser() && !self.params.IdentityId) { - var id = self.getStorage('id'); - if (id && self.params.Logins) { - var actualProviders = Object.keys(self.params.Logins); - var cachedProviders = - (self.getStorage('providers') || '').split(','); - // only load ID if at least one provider used this ID before - var intersect = cachedProviders.filter(function(n) { - return actualProviders.indexOf(n) !== -1; - }); - if (intersect.length !== 0) { - self.params.IdentityId = id; - } - } else if (id) { - self.params.IdentityId = id; - } - } +/***/ }), + +/***/ 38176: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['supportapp'] = {}; +AWS.SupportApp = Service.defineService('supportapp', ['2021-08-20']); +Object.defineProperty(apiLoader.services['supportapp'], '2021-08-20', { + get: function get() { + var model = __nccwpck_require__(98343); + model.paginators = (__nccwpck_require__(73597)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - createClients: function() { - var clientConfig = this._clientConfig; - this.webIdentityCredentials = this.webIdentityCredentials || - new AWS.WebIdentityCredentials(this.params, clientConfig); - if (!this.cognito) { - var cognitoConfig = AWS.util.merge({}, clientConfig); - cognitoConfig.params = this.params; - this.cognito = new CognitoIdentity(cognitoConfig); - } - this.sts = this.sts || new STS(clientConfig); +module.exports = AWS.SupportApp; + + +/***/ }), + +/***/ 3304: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['swf'] = {}; +AWS.SWF = Service.defineService('swf', ['2012-01-25']); +__nccwpck_require__(69252); +Object.defineProperty(apiLoader.services['swf'], '2012-01-25', { + get: function get() { + var model = __nccwpck_require__(62175); + model.paginators = (__nccwpck_require__(92552)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - cacheId: function cacheId(data) { - this._identityId = data.IdentityId; - this.params.IdentityId = this._identityId; +module.exports = AWS.SWF; - // cache this IdentityId in browser localStorage if possible - if (AWS.util.isBrowser()) { - this.setStorage('id', data.IdentityId); - if (this.params.Logins) { - this.setStorage('providers', Object.keys(this.params.Logins).join(',')); - } - } +/***/ }), + +/***/ 87082: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['synthetics'] = {}; +AWS.Synthetics = Service.defineService('synthetics', ['2017-10-11']); +Object.defineProperty(apiLoader.services['synthetics'], '2017-10-11', { + get: function get() { + var model = __nccwpck_require__(10950); + model.paginators = (__nccwpck_require__(37006)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - getStorage: function getStorage(key) { - return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')]; +module.exports = AWS.Synthetics; + + +/***/ }), + +/***/ 42375: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['taxsettings'] = {}; +AWS.TaxSettings = Service.defineService('taxsettings', ['2018-05-10']); +Object.defineProperty(apiLoader.services['taxsettings'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(24498); + model.paginators = (__nccwpck_require__(99570)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - setStorage: function setStorage(key, val) { - try { - this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')] = val; - } catch (_) {} +module.exports = AWS.TaxSettings; + + +/***/ }), + +/***/ 73679: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['textract'] = {}; +AWS.Textract = Service.defineService('textract', ['2018-06-27']); +Object.defineProperty(apiLoader.services['textract'], '2018-06-27', { + get: function get() { + var model = __nccwpck_require__(8084); + model.paginators = (__nccwpck_require__(43936)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - storage: (function() { - try { - var storage = AWS.util.isBrowser() && window.localStorage !== null && typeof window.localStorage === 'object' ? - window.localStorage : {}; +module.exports = AWS.Textract; - // Test set/remove which would throw an error in Safari's private browsing - storage['aws.test-storage'] = 'foobar'; - delete storage['aws.test-storage']; - return storage; - } catch (_) { - return {}; - } - })() +/***/ }), + +/***/ 98809: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['timestreaminfluxdb'] = {}; +AWS.TimestreamInfluxDB = Service.defineService('timestreaminfluxdb', ['2023-01-27']); +Object.defineProperty(apiLoader.services['timestreaminfluxdb'], '2023-01-27', { + get: function get() { + var model = __nccwpck_require__(10692); + model.paginators = (__nccwpck_require__(91856)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); +module.exports = AWS.TimestreamInfluxDB; + /***/ }), -/***/ 92008: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 15279: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * Creates a credential provider chain that searches for AWS credentials - * in a list of credential providers specified by the {providers} property. - * - * By default, the chain will use the {defaultProviders} to resolve credentials. - * These providers will look in the environment using the - * {AWS.EnvironmentCredentials} class with the 'AWS' and 'AMAZON' prefixes. - * - * ## Setting Providers - * - * Each provider in the {providers} list should be a function that returns - * a {AWS.Credentials} object, or a hardcoded credentials object. The function - * form allows for delayed execution of the credential construction. - * - * ## Resolving Credentials from a Chain - * - * Call {resolve} to return the first valid credential object that can be - * loaded by the provider chain. - * - * For example, to resolve a chain with a custom provider that checks a file - * on disk after the set of {defaultProviders}: - * - * ```javascript - * var diskProvider = new AWS.FileSystemCredentials('./creds.json'); - * var chain = new AWS.CredentialProviderChain(); - * chain.providers.push(diskProvider); - * chain.resolve(); - * ``` - * - * The above code will return the `diskProvider` object if the - * file contains credentials and the `defaultProviders` do not contain - * any credential settings. - * - * @!attribute providers - * @return [Array] - * a list of credentials objects or functions that return credentials - * objects. If the provider is a function, the function will be - * executed lazily when the provider needs to be checked for valid - * credentials. By default, this object will be set to the - * {defaultProviders}. - * @see defaultProviders - */ -AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, { +apiLoader.services['timestreamquery'] = {}; +AWS.TimestreamQuery = Service.defineService('timestreamquery', ['2018-11-01']); +Object.defineProperty(apiLoader.services['timestreamquery'], '2018-11-01', { + get: function get() { + var model = __nccwpck_require__(34943); + model.paginators = (__nccwpck_require__(98085)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); - /** - * Creates a new CredentialProviderChain with a default set of providers - * specified by {defaultProviders}. - */ - constructor: function CredentialProviderChain(providers) { - if (providers) { - this.providers = providers; - } else { - this.providers = AWS.CredentialProviderChain.defaultProviders.slice(0); - } - this.resolveCallbacks = []; +module.exports = AWS.TimestreamQuery; + + +/***/ }), + +/***/ 96080: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['timestreamwrite'] = {}; +AWS.TimestreamWrite = Service.defineService('timestreamwrite', ['2018-11-01']); +Object.defineProperty(apiLoader.services['timestreamwrite'], '2018-11-01', { + get: function get() { + var model = __nccwpck_require__(15606); + model.paginators = (__nccwpck_require__(48030)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @!method resolvePromise() - * Returns a 'thenable' promise. - * Resolves the provider chain by searching for the first set of - * credentials in {providers}. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(credentials) - * Called if the promise is fulfilled and the provider resolves the chain - * to a credentials object - * @param credentials [AWS.Credentials] the credentials object resolved - * by the provider chain. - * @callback rejectedCallback function(error) - * Called if the promise is rejected. - * @param err [Error] the error object returned if no credentials are found. - * @return [Promise] A promise that represents the state of the `resolve` method call. - * @example Calling the `resolvePromise` method. - * var promise = chain.resolvePromise(); - * promise.then(function(credentials) { ... }, function(err) { ... }); - */ +module.exports = AWS.TimestreamWrite; - /** - * Resolves the provider chain by searching for the first set of - * credentials in {providers}. - * - * @callback callback function(err, credentials) - * Called when the provider resolves the chain to a credentials object - * or null if no credentials can be found. - * - * @param err [Error] the error object returned if no credentials are - * found. - * @param credentials [AWS.Credentials] the credentials object resolved - * by the provider chain. - * @return [AWS.CredentialProviderChain] the provider, for chaining. - */ - resolve: function resolve(callback) { - var self = this; - if (self.providers.length === 0) { - callback(new Error('No providers')); - return self; - } - if (self.resolveCallbacks.push(callback) === 1) { - var index = 0; - var providers = self.providers.slice(0); +/***/ }), - function resolveNext(err, creds) { - if ((!err && creds) || index === providers.length) { - AWS.util.arrayEach(self.resolveCallbacks, function (callback) { - callback(err, creds); - }); - self.resolveCallbacks.length = 0; - return; - } +/***/ 68756: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var provider = providers[index++]; - if (typeof provider === 'function') { - creds = provider.call(); - } else { - creds = provider; - } +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - if (creds.get) { - creds.get(function (getErr) { - resolveNext(getErr, getErr ? null : creds); - }); - } else { - resolveNext(null, creds); - } - } +apiLoader.services['tnb'] = {}; +AWS.Tnb = Service.defineService('tnb', ['2008-10-21']); +Object.defineProperty(apiLoader.services['tnb'], '2008-10-21', { + get: function get() { + var model = __nccwpck_require__(99241); + model.paginators = (__nccwpck_require__(22387)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); - resolveNext(); - } +module.exports = AWS.Tnb; - return self; - } + +/***/ }), + +/***/ 44358: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['transcribeservice'] = {}; +AWS.TranscribeService = Service.defineService('transcribeservice', ['2017-10-26']); +Object.defineProperty(apiLoader.services['transcribeservice'], '2017-10-26', { + get: function get() { + var model = __nccwpck_require__(57905); + model.paginators = (__nccwpck_require__(46475)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); -/** - * The default set of providers used by a vanilla CredentialProviderChain. - * - * In the browser: - * - * ```javascript - * AWS.CredentialProviderChain.defaultProviders = [] - * ``` - * - * In Node.js: - * - * ```javascript - * AWS.CredentialProviderChain.defaultProviders = [ - * function () { return new AWS.EnvironmentCredentials('AWS'); }, - * function () { return new AWS.EnvironmentCredentials('AMAZON'); }, - * function () { return new AWS.SsoCredentials(); }, - * function () { return new AWS.SharedIniFileCredentials(); }, - * function () { return new AWS.ECSCredentials(); }, - * function () { return new AWS.ProcessCredentials(); }, - * function () { return new AWS.TokenFileWebIdentityCredentials(); }, - * function () { return new AWS.EC2MetadataCredentials() } - * ] - * ``` - */ -AWS.CredentialProviderChain.defaultProviders = []; +module.exports = AWS.TranscribeService; -/** - * @api private - */ -AWS.CredentialProviderChain.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.resolvePromise = AWS.util.promisifyMethod('resolve', PromiseDependency); -}; -/** - * @api private - */ -AWS.CredentialProviderChain.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.resolvePromise; -}; +/***/ }), -AWS.util.addPromises(AWS.CredentialProviderChain); +/***/ 9649: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['transfer'] = {}; +AWS.Transfer = Service.defineService('transfer', ['2018-11-05']); +Object.defineProperty(apiLoader.services['transfer'], '2018-11-05', { + get: function get() { + var model = __nccwpck_require__(7174); + model.paginators = (__nccwpck_require__(71630)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(3997)/* .waiters */ .C); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Transfer; /***/ }), -/***/ 98712: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 94550: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -__nccwpck_require__(72803); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * Represents credentials received from the metadata service on an EC2 instance. - * - * By default, this class will connect to the metadata service using - * {AWS.MetadataService} and attempt to load any available credentials. If it - * can connect, and credentials are available, these will be used with zero - * configuration. - * - * This credentials class will by default timeout after 1 second of inactivity - * and retry 3 times. - * If your requests to the EC2 metadata service are timing out, you can increase - * these values by configuring them directly: - * - * ```javascript - * AWS.config.credentials = new AWS.EC2MetadataCredentials({ - * httpOptions: { timeout: 5000 }, // 5 second timeout - * maxRetries: 10, // retry 10 times - * retryDelayOptions: { base: 200 }, // see AWS.Config for information - * logger: console // see AWS.Config for information - * }); - * ``` - * - * If your requests are timing out in connecting to the metadata service, such - * as when testing on a development machine, you can use the connectTimeout - * option, specified in milliseconds, which also defaults to 1 second. - * - * If the requests failed or returns expired credentials, it will - * extend the expiration of current credential, with a warning message. For more - * information, please go to: - * https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html - * - * @!attribute originalExpiration - * @return [Date] The optional original expiration of the current credential. - * In case of AWS outage, the EC2 metadata will extend expiration of the - * existing credential. - * - * @see AWS.Config.retryDelayOptions - * @see AWS.Config.logger - * - * @!macro nobrowser - */ -AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, { - constructor: function EC2MetadataCredentials(options) { - AWS.Credentials.call(this); +apiLoader.services['translate'] = {}; +AWS.Translate = Service.defineService('translate', ['2017-07-01']); +Object.defineProperty(apiLoader.services['translate'], '2017-07-01', { + get: function get() { + var model = __nccwpck_require__(10305); + model.paginators = (__nccwpck_require__(70715)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); - options = options ? AWS.util.copy(options) : {}; - options = AWS.util.merge( - {maxRetries: this.defaultMaxRetries}, options); - if (!options.httpOptions) options.httpOptions = {}; - options.httpOptions = AWS.util.merge( - {timeout: this.defaultTimeout, - connectTimeout: this.defaultConnectTimeout}, - options.httpOptions); +module.exports = AWS.Translate; - this.metadataService = new AWS.MetadataService(options); - this.logger = options.logger || AWS.config && AWS.config.logger; + +/***/ }), + +/***/ 90163: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['trustedadvisor'] = {}; +AWS.TrustedAdvisor = Service.defineService('trustedadvisor', ['2022-09-15']); +Object.defineProperty(apiLoader.services['trustedadvisor'], '2022-09-15', { + get: function get() { + var model = __nccwpck_require__(2047); + model.paginators = (__nccwpck_require__(27909)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - defaultTimeout: 1000, +module.exports = AWS.TrustedAdvisor; - /** - * @api private - */ - defaultConnectTimeout: 1000, - /** - * @api private - */ - defaultMaxRetries: 3, +/***/ }), - /** - * The original expiration of the current credential. In case of AWS - * outage, the EC2 metadata will extend expiration of the existing - * credential. - */ - originalExpiration: undefined, +/***/ 71032: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * Loads the credentials from the instance metadata service - * - * @callback callback function(err) - * Called when the instance metadata service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['verifiedpermissions'] = {}; +AWS.VerifiedPermissions = Service.defineService('verifiedpermissions', ['2021-12-01']); +Object.defineProperty(apiLoader.services['verifiedpermissions'], '2021-12-01', { + get: function get() { + var model = __nccwpck_require__(65880); + model.paginators = (__nccwpck_require__(1148)/* .pagination */ .X); + model.waiters = (__nccwpck_require__(15439)/* .waiters */ .C); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - * @param callback - */ - load: function load(callback) { - var self = this; - self.metadataService.loadCredentials(function(err, creds) { - if (err) { - if (self.hasLoadedCredentials()) { - self.extendExpirationIfExpired(); - callback(); - } else { - callback(err); - } - } else { - self.setCredentials(creds); - self.extendExpirationIfExpired(); - callback(); - } - }); +module.exports = AWS.VerifiedPermissions; + + +/***/ }), + +/***/ 38075: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['voiceid'] = {}; +AWS.VoiceID = Service.defineService('voiceid', ['2021-09-27']); +Object.defineProperty(apiLoader.services['voiceid'], '2021-09-27', { + get: function get() { + var model = __nccwpck_require__(59744); + model.paginators = (__nccwpck_require__(8660)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Whether this credential has been loaded. - * @api private - */ - hasLoadedCredentials: function hasLoadedCredentials() { - return this.AccessKeyId && this.secretAccessKey; +module.exports = AWS.VoiceID; + + +/***/ }), + +/***/ 74437: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['vpclattice'] = {}; +AWS.VPCLattice = Service.defineService('vpclattice', ['2022-11-30']); +Object.defineProperty(apiLoader.services['vpclattice'], '2022-11-30', { + get: function get() { + var model = __nccwpck_require__(13810); + model.paginators = (__nccwpck_require__(15986)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * if expired, extend the expiration by 15 minutes base plus a jitter of 5 - * minutes range. - * @api private - */ - extendExpirationIfExpired: function extendExpirationIfExpired() { - if (this.needsRefresh()) { - this.originalExpiration = this.originalExpiration || this.expireTime; - this.expired = false; - var nextTimeout = 15 * 60 + Math.floor(Math.random() * 5 * 60); - var currentTime = AWS.util.date.getDate().getTime(); - this.expireTime = new Date(currentTime + nextTimeout * 1000); - // TODO: add doc link; - this.logger.warn('Attempting credential expiration extension due to a ' - + 'credential service availability issue. A refresh of these ' - + 'credentials will be attempted again at ' + this.expireTime - + '\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html'); - } +module.exports = AWS.VPCLattice; + + +/***/ }), + +/***/ 71114: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['waf'] = {}; +AWS.WAF = Service.defineService('waf', ['2015-08-24']); +Object.defineProperty(apiLoader.services['waf'], '2015-08-24', { + get: function get() { + var model = __nccwpck_require__(23801); + model.paginators = (__nccwpck_require__(82851)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Update the credential with new credential responded from EC2 metadata - * service. - * @api private - */ - setCredentials: function setCredentials(creds) { - var currentTime = AWS.util.date.getDate().getTime(); - var expireTime = new Date(creds.Expiration); - this.expired = currentTime >= expireTime ? true : false; - this.metadata = creds; - this.accessKeyId = creds.AccessKeyId; - this.secretAccessKey = creds.SecretAccessKey; - this.sessionToken = creds.Token; - this.expireTime = expireTime; - } +module.exports = AWS.WAF; + + +/***/ }), + +/***/ 98427: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['wafregional'] = {}; +AWS.WAFRegional = Service.defineService('wafregional', ['2016-11-28']); +Object.defineProperty(apiLoader.services['wafregional'], '2016-11-28', { + get: function get() { + var model = __nccwpck_require__(89444); + model.paginators = (__nccwpck_require__(19728)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); +module.exports = AWS.WAFRegional; + /***/ }), -/***/ 15589: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 45470: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * Represents credentials received from relative URI specified in the ECS container. - * - * This class will request refreshable credentials from the relative URI - * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the - * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials - * are returned in the response, these will be used with zero configuration. - * - * This credentials class will by default timeout after 1 second of inactivity - * and retry 3 times. - * If your requests to the relative URI are timing out, you can increase - * the value by configuring them directly: - * - * ```javascript - * AWS.config.credentials = new AWS.ECSCredentials({ - * httpOptions: { timeout: 5000 }, // 5 second timeout - * maxRetries: 10, // retry 10 times - * retryDelayOptions: { base: 200 } // see AWS.Config for information - * }); - * ``` - * - * @see AWS.Config.retryDelayOptions - * - * @!macro nobrowser - */ -AWS.ECSCredentials = AWS.RemoteCredentials; +apiLoader.services['wafv2'] = {}; +AWS.WAFV2 = Service.defineService('wafv2', ['2019-07-29']); +Object.defineProperty(apiLoader.services['wafv2'], '2019-07-29', { + get: function get() { + var model = __nccwpck_require__(66453); + model.paginators = (__nccwpck_require__(49495)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); +module.exports = AWS.WAFV2; -/***/ }), -/***/ 64925: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ }), -var AWS = __nccwpck_require__(14741); +/***/ 36354: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Represents credentials from the environment. - * - * By default, this class will look for the matching environment variables - * prefixed by a given {envPrefix}. The un-prefixed environment variable names - * for each credential value is listed below: - * - * ```javascript - * accessKeyId: ACCESS_KEY_ID - * secretAccessKey: SECRET_ACCESS_KEY - * sessionToken: SESSION_TOKEN - * ``` - * - * With the default prefix of 'AWS', the environment variables would be: - * - * AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN - * - * @!attribute envPrefix - * @readonly - * @return [String] the prefix for the environment variable names excluding - * the separating underscore ('_'). - */ -AWS.EnvironmentCredentials = AWS.util.inherit(AWS.Credentials, { +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * Creates a new EnvironmentCredentials class with a given variable - * prefix {envPrefix}. For example, to load credentials using the 'AWS' - * prefix: - * - * ```javascript - * var creds = new AWS.EnvironmentCredentials('AWS'); - * creds.accessKeyId == 'AKID' // from AWS_ACCESS_KEY_ID env var - * ``` - * - * @param envPrefix [String] the prefix to use (e.g., 'AWS') for environment - * variables. Do not include the separating underscore. - */ - constructor: function EnvironmentCredentials(envPrefix) { - AWS.Credentials.call(this); - this.envPrefix = envPrefix; - this.get(function() {}); +apiLoader.services['wellarchitected'] = {}; +AWS.WellArchitected = Service.defineService('wellarchitected', ['2020-03-31']); +Object.defineProperty(apiLoader.services['wellarchitected'], '2020-03-31', { + get: function get() { + var model = __nccwpck_require__(40800); + model.paginators = (__nccwpck_require__(75604)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Loads credentials from the environment using the prefixed - * environment variables. - * - * @callback callback function(err) - * Called after the (prefixed) ACCESS_KEY_ID, SECRET_ACCESS_KEY, and - * SESSION_TOKEN environment variables are read. When this callback is - * called with no error, it means that the credentials information has - * been loaded into the object (as the `accessKeyId`, `secretAccessKey`, - * and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - if (!callback) callback = AWS.util.fn.callback; +module.exports = AWS.WellArchitected; - if (!process || !process.env) { - callback(AWS.util.error( - new Error('No process info or environment variables available'), - { code: 'EnvironmentCredentialsProviderFailure' } - )); - return; - } - var keys = ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY', 'SESSION_TOKEN']; - var values = []; +/***/ }), - for (var i = 0; i < keys.length; i++) { - var prefix = ''; - if (this.envPrefix) prefix = this.envPrefix + '_'; - values[i] = process.env[prefix + keys[i]]; - if (!values[i] && keys[i] !== 'SESSION_TOKEN') { - callback(AWS.util.error( - new Error('Variable ' + prefix + keys[i] + ' not set.'), - { code: 'EnvironmentCredentialsProviderFailure' } - )); - return; - } - } +/***/ 90929: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - this.expired = false; - AWS.Credentials.apply(this, values); - callback(); - } +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; +apiLoader.services['wisdom'] = {}; +AWS.Wisdom = Service.defineService('wisdom', ['2020-10-19']); +Object.defineProperty(apiLoader.services['wisdom'], '2020-10-19', { + get: function get() { + var model = __nccwpck_require__(14553); + model.paginators = (__nccwpck_require__(60739)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); +module.exports = AWS.Wisdom; -/***/ }), -/***/ 96493: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ }), -var AWS = __nccwpck_require__(14741); +/***/ 21284: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Represents credentials from a JSON file on disk. - * If the credentials expire, the SDK can {refresh} the credentials - * from the file. - * - * The format of the file should be similar to the options passed to - * {AWS.Config}: - * - * ```javascript - * {accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'optional'} - * ``` - * - * @example Loading credentials from disk - * var creds = new AWS.FileSystemCredentials('./configuration.json'); - * creds.accessKeyId == 'AKID' - * - * @!attribute filename - * @readonly - * @return [String] the path to the JSON file on disk containing the - * credentials. - * @!macro nobrowser - */ -AWS.FileSystemCredentials = AWS.util.inherit(AWS.Credentials, { +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * @overload AWS.FileSystemCredentials(filename) - * Creates a new FileSystemCredentials object from a filename - * - * @param filename [String] the path on disk to the JSON file to load. - */ - constructor: function FileSystemCredentials(filename) { - AWS.Credentials.call(this); - this.filename = filename; - this.get(function() {}); +apiLoader.services['workdocs'] = {}; +AWS.WorkDocs = Service.defineService('workdocs', ['2016-05-01']); +Object.defineProperty(apiLoader.services['workdocs'], '2016-05-01', { + get: function get() { + var model = __nccwpck_require__(18568); + model.paginators = (__nccwpck_require__(83244)/* .pagination */ .X); + return model; }, - - /** - * Loads the credentials from the {filename} on disk. - * - * @callback callback function(err) - * Called after the JSON file on disk is read and parsed. When this callback - * is called with no error, it means that the credentials information - * has been loaded into the object (as the `accessKeyId`, `secretAccessKey`, - * and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - if (!callback) callback = AWS.util.fn.callback; - try { - var creds = JSON.parse(AWS.util.readFileSync(this.filename)); - AWS.Credentials.call(this, creds); - if (!this.accessKeyId || !this.secretAccessKey) { - throw AWS.util.error( - new Error('Credentials not set in ' + this.filename), - { code: 'FileSystemCredentialsProviderFailure' } - ); - } - this.expired = false; - callback(); - } catch (err) { - callback(err); - } - } - + enumerable: true, + configurable: true }); +module.exports = AWS.WorkDocs; + /***/ }), -/***/ 98247: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 64079: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var proc = __nccwpck_require__(32081); -var iniLoader = AWS.util.iniLoader; +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * Represents credentials loaded from shared credentials file - * (defaulting to ~/.aws/credentials or defined by the - * `AWS_SHARED_CREDENTIALS_FILE` environment variable). - * - * ## Using process credentials - * - * The credentials file can specify a credential provider that executes - * a given process and attempts to read its stdout to recieve a JSON payload - * containing the credentials: - * - * [default] - * credential_process = /usr/bin/credential_proc - * - * Automatically handles refreshing credentials if an Expiration time is - * provided in the credentials payload. Credentials supplied in the same profile - * will take precedence over the credential_process. - * - * Sourcing credentials from an external process can potentially be dangerous, - * so proceed with caution. Other credential providers should be preferred if - * at all possible. If using this option, you should make sure that the shared - * credentials file is as locked down as possible using security best practices - * for your operating system. - * - * ## Using custom profiles - * - * The SDK supports loading credentials for separate profiles. This can be done - * in two ways: - * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to - * loading the SDK. - * 2. Directly load the AWS.ProcessCredentials provider: - * - * ```javascript - * var creds = new AWS.ProcessCredentials({profile: 'myprofile'}); - * AWS.config.credentials = creds; - * ``` - * - * @!macro nobrowser - */ -AWS.ProcessCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new ProcessCredentials object. - * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var) - * the filename to use when loading credentials. - * @option options callback [Function] (err) Credentials are eagerly loaded - * by the constructor. When the callback is called with no error, the - * credentials have been loaded successfully. - */ - constructor: function ProcessCredentials(options) { - AWS.Credentials.call(this); +apiLoader.services['worklink'] = {}; +AWS.WorkLink = Service.defineService('worklink', ['2018-09-25']); +Object.defineProperty(apiLoader.services['worklink'], '2018-09-25', { + get: function get() { + var model = __nccwpck_require__(61349); + model.paginators = (__nccwpck_require__(81255)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true +}); - options = options || {}; +module.exports = AWS.WorkLink; - this.filename = options.filename; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.get(options.callback || AWS.util.fn.noop); - }, - /** - * @api private - */ - load: function load(callback) { - var self = this; - try { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); - var profile = profiles[this.profile] || {}; +/***/ }), - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' not found'), - { code: 'ProcessCredentialsProviderFailure' } - ); - } +/***/ 25236: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (profile['credential_process']) { - this.loadViaCredentialProcess(profile, function(err, data) { - if (err) { - callback(err, null); - } else { - self.expired = false; - self.accessKeyId = data.AccessKeyId; - self.secretAccessKey = data.SecretAccessKey; - self.sessionToken = data.SessionToken; - if (data.Expiration) { - self.expireTime = new Date(data.Expiration); - } - callback(null); - } - }); - } else { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' did not include credential process'), - { code: 'ProcessCredentialsProviderFailure' } - ); - } - } catch (err) { - callback(err); - } +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['workmail'] = {}; +AWS.WorkMail = Service.defineService('workmail', ['2017-10-01']); +Object.defineProperty(apiLoader.services['workmail'], '2017-10-01', { + get: function get() { + var model = __nccwpck_require__(13733); + model.paginators = (__nccwpck_require__(38343)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * Executes the credential_process and retrieves - * credentials from the output - * @api private - * @param profile [map] credentials profile - * @throws ProcessCredentialsProviderFailure - */ - loadViaCredentialProcess: function loadViaCredentialProcess(profile, callback) { - proc.exec(profile['credential_process'], { env: process.env }, function(err, stdOut, stdErr) { - if (err) { - callback(AWS.util.error( - new Error('credential_process returned error'), - { code: 'ProcessCredentialsProviderFailure'} - ), null); - } else { - try { - var credData = JSON.parse(stdOut); - if (credData.Expiration) { - var currentTime = AWS.util.date.getDate(); - var expireTime = new Date(credData.Expiration); - if (expireTime < currentTime) { - throw Error('credential_process returned expired credentials'); - } - } +module.exports = AWS.WorkMail; - if (credData.Version !== 1) { - throw Error('credential_process does not return Version == 1'); - } - callback(null, credData); - } catch (err) { - callback(AWS.util.error( - new Error(err.message), - { code: 'ProcessCredentialsProviderFailure'} - ), null); - } - } - }); - }, - /** - * Loads the credentials from the credential process - * - * @callback callback function(err) - * Called after the credential process has been executed. When this - * callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh(callback || AWS.util.fn.callback); - } +/***/ }), + +/***/ 69037: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['workmailmessageflow'] = {}; +AWS.WorkMailMessageFlow = Service.defineService('workmailmessageflow', ['2019-05-01']); +Object.defineProperty(apiLoader.services['workmailmessageflow'], '2019-05-01', { + get: function get() { + var model = __nccwpck_require__(60328); + model.paginators = (__nccwpck_require__(50796)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); +module.exports = AWS.WorkMailMessageFlow; + /***/ }), -/***/ 23429: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 84020: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741), - ENV_RELATIVE_URI = 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI', - ENV_FULL_URI = 'AWS_CONTAINER_CREDENTIALS_FULL_URI', - ENV_AUTH_TOKEN = 'AWS_CONTAINER_AUTHORIZATION_TOKEN', - FULL_URI_UNRESTRICTED_PROTOCOLS = ['https:'], - FULL_URI_ALLOWED_PROTOCOLS = ['http:', 'https:'], - FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1'], - RELATIVE_URI_HOST = '169.254.170.2'; +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; -/** - * Represents credentials received from specified URI. - * - * This class will request refreshable credentials from the relative URI - * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the - * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials - * are returned in the response, these will be used with zero configuration. - * - * This credentials class will by default timeout after 1 second of inactivity - * and retry 3 times. - * If your requests to the relative URI are timing out, you can increase - * the value by configuring them directly: - * - * ```javascript - * AWS.config.credentials = new AWS.RemoteCredentials({ - * httpOptions: { timeout: 5000 }, // 5 second timeout - * maxRetries: 10, // retry 10 times - * retryDelayOptions: { base: 200 } // see AWS.Config for information - * }); - * ``` - * - * @see AWS.Config.retryDelayOptions - * - * @!macro nobrowser - */ -AWS.RemoteCredentials = AWS.util.inherit(AWS.Credentials, { - constructor: function RemoteCredentials(options) { - AWS.Credentials.call(this); - options = options ? AWS.util.copy(options) : {}; - if (!options.httpOptions) options.httpOptions = {}; - options.httpOptions = AWS.util.merge( - this.httpOptions, options.httpOptions); - AWS.util.update(this, options); +apiLoader.services['workspaces'] = {}; +AWS.WorkSpaces = Service.defineService('workspaces', ['2015-04-08']); +Object.defineProperty(apiLoader.services['workspaces'], '2015-04-08', { + get: function get() { + var model = __nccwpck_require__(87351); + model.paginators = (__nccwpck_require__(33517)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - httpOptions: { timeout: 1000 }, +module.exports = AWS.WorkSpaces; - /** - * @api private - */ - maxRetries: 3, - /** - * @api private - */ - isConfiguredForEcsCredentials: function isConfiguredForEcsCredentials() { - return Boolean( - process && - process.env && - (process.env[ENV_RELATIVE_URI] || process.env[ENV_FULL_URI]) - ); - }, +/***/ }), - /** - * @api private - */ - getECSFullUri: function getECSFullUri() { - if (process && process.env) { - var relative = process.env[ENV_RELATIVE_URI], - full = process.env[ENV_FULL_URI]; - if (relative) { - return 'http://' + RELATIVE_URI_HOST + relative; - } else if (full) { - var parsed = AWS.util.urlParse(full); - if (FULL_URI_ALLOWED_PROTOCOLS.indexOf(parsed.protocol) < 0) { - throw AWS.util.error( - new Error('Unsupported protocol: AWS.RemoteCredentials supports ' - + FULL_URI_ALLOWED_PROTOCOLS.join(',') + ' only; ' - + parsed.protocol + ' requested.'), - { code: 'ECSCredentialsProviderFailure' } - ); - } +/***/ 52636: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (FULL_URI_UNRESTRICTED_PROTOCOLS.indexOf(parsed.protocol) < 0 && - FULL_URI_ALLOWED_HOSTNAMES.indexOf(parsed.hostname) < 0) { - throw AWS.util.error( - new Error('Unsupported hostname: AWS.RemoteCredentials only supports ' - + FULL_URI_ALLOWED_HOSTNAMES.join(',') + ' for ' + parsed.protocol + '; ' - + parsed.protocol + '//' + parsed.hostname + ' requested.'), - { code: 'ECSCredentialsProviderFailure' } - ); - } +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - return full; - } else { - throw AWS.util.error( - new Error('Variable ' + ENV_RELATIVE_URI + ' or ' + ENV_FULL_URI + - ' must be set to use AWS.RemoteCredentials.'), - { code: 'ECSCredentialsProviderFailure' } - ); - } - } else { - throw AWS.util.error( - new Error('No process info available'), - { code: 'ECSCredentialsProviderFailure' } - ); - } +apiLoader.services['workspacesthinclient'] = {}; +AWS.WorkSpacesThinClient = Service.defineService('workspacesthinclient', ['2023-08-22']); +Object.defineProperty(apiLoader.services['workspacesthinclient'], '2023-08-22', { + get: function get() { + var model = __nccwpck_require__(44926); + model.paginators = (__nccwpck_require__(27574)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - getECSAuthToken: function getECSAuthToken() { - if (process && process.env && process.env[ENV_FULL_URI]) { - return process.env[ENV_AUTH_TOKEN]; - } - }, +module.exports = AWS.WorkSpacesThinClient; - /** - * @api private - */ - credsFormatIsValid: function credsFormatIsValid(credData) { - return (!!credData.accessKeyId && !!credData.secretAccessKey && - !!credData.sessionToken && !!credData.expireTime); - }, - /** - * @api private - */ - formatCreds: function formatCreds(credData) { - if (!!credData.credentials) { - credData = credData.credentials; - } +/***/ }), - return { - expired: false, - accessKeyId: credData.accessKeyId || credData.AccessKeyId, - secretAccessKey: credData.secretAccessKey || credData.SecretAccessKey, - sessionToken: credData.sessionToken || credData.Token, - expireTime: new Date(credData.expiration || credData.Expiration) - }; - }, +/***/ 45484: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @api private - */ - request: function request(url, callback) { - var httpRequest = new AWS.HttpRequest(url); - httpRequest.method = 'GET'; - httpRequest.headers.Accept = 'application/json'; - var token = this.getECSAuthToken(); - if (token) { - httpRequest.headers.Authorization = token; - } - AWS.util.handleRequestWithRetries(httpRequest, this, callback); - }, +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; - /** - * Loads the credentials from the relative URI specified by container - * - * @callback callback function(err) - * Called when the request to the relative URI responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, `sessionToken`, and `expireTime` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); +apiLoader.services['workspacesweb'] = {}; +AWS.WorkSpacesWeb = Service.defineService('workspacesweb', ['2020-07-08']); +Object.defineProperty(apiLoader.services['workspacesweb'], '2020-07-08', { + get: function get() { + var model = __nccwpck_require__(80725); + model.paginators = (__nccwpck_require__(52279)/* .pagination */ .X); + return model; }, + enumerable: true, + configurable: true +}); - /** - * @api private - */ - load: function load(callback) { - var self = this; - var fullUri; +module.exports = AWS.WorkSpacesWeb; - try { - fullUri = this.getECSFullUri(); - } catch (err) { - callback(err); - return; - } - this.request(fullUri, function(err, data) { - if (!err) { - try { - data = JSON.parse(data); - var creds = self.formatCreds(data); - if (!self.credsFormatIsValid(creds)) { - throw AWS.util.error( - new Error('Response data is not in valid format'), - { code: 'ECSCredentialsProviderFailure' } - ); - } - AWS.util.update(self, creds); - } catch (dataError) { - err = dataError; - } - } - callback(err, creds); - }); - } +/***/ }), + +/***/ 58978: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); +var AWS = __nccwpck_require__(53832); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['xray'] = {}; +AWS.XRay = Service.defineService('xray', ['2016-04-12']); +Object.defineProperty(apiLoader.services['xray'], '2016-04-12', { + get: function get() { + var model = __nccwpck_require__(24147); + model.paginators = (__nccwpck_require__(40609)/* .pagination */ .X); + return model; + }, + enumerable: true, + configurable: true }); +module.exports = AWS.XRay; + /***/ }), -/***/ 91937: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 4217: +/***/ ((module) => { -var AWS = __nccwpck_require__(14741); -var STS = __nccwpck_require__(72787); +function apiLoader(svc, version) { + if (!apiLoader.services.hasOwnProperty(svc)) { + throw new Error('InvalidService: Failed to load api for ' + svc); + } + return apiLoader.services[svc][version]; +} /** - * Represents credentials retrieved from STS SAML support. - * - * By default this provider gets credentials using the - * {AWS.STS.assumeRoleWithSAML} service operation. This operation - * requires a `RoleArn` containing the ARN of the IAM trust policy for the - * application for which credentials will be given, as well as a `PrincipalArn` - * representing the ARN for the SAML identity provider. In addition, the - * `SAMLAssertion` must be set to the token provided by the identity - * provider. See {constructor} for an example on creating a credentials - * object with proper `RoleArn`, `PrincipalArn`, and `SAMLAssertion` values. - * - * ## Refreshing Credentials from Identity Service - * - * In addition to AWS credentials expiring after a given amount of time, the - * login token from the identity provider will also expire. Once this token - * expires, it will not be usable to refresh AWS credentials, and another - * token will be needed. The SDK does not manage refreshing of the token value, - * but this can be done through a "refresh token" supported by most identity - * providers. Consult the documentation for the identity provider for refreshing - * tokens. Once the refreshed token is acquired, you should make sure to update - * this new token in the credentials object's {params} property. The following - * code will update the SAMLAssertion, assuming you have retrieved an updated - * token from the identity provider: - * - * ```javascript - * AWS.config.credentials.params.SAMLAssertion = updatedToken; - * ``` - * - * Future calls to `credentials.refresh()` will now use the new token. + * @api private * - * @!attribute params - * @return [map] the map of params passed to - * {AWS.STS.assumeRoleWithSAML}. To update the token, set the - * `params.SAMLAssertion` property. + * This member of AWS.apiLoader is private, but changing it will necessitate a + * change to ../scripts/services-table-generator.ts */ -AWS.SAMLCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new credentials object. - * @param (see AWS.STS.assumeRoleWithSAML) - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.SAMLCredentials({ - * RoleArn: 'arn:aws:iam::1234567890:role/SAMLRole', - * PrincipalArn: 'arn:aws:iam::1234567890:role/SAMLPrincipal', - * SAMLAssertion: 'base64-token', // base64-encoded token from IdP - * }); - * @see AWS.STS.assumeRoleWithSAML - */ - constructor: function SAMLCredentials(params) { - AWS.Credentials.call(this); - this.expired = true; - this.params = params; - }, +apiLoader.services = {}; - /** - * Refreshes credentials using {AWS.STS.assumeRoleWithSAML} - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, +/** + * @api private + */ +module.exports = apiLoader; - /** - * @api private - */ - load: function load(callback) { - var self = this; - self.createClients(); - self.service.assumeRoleWithSAML(function (err, data) { - if (!err) { - self.service.credentialsFrom(data, self); - } - callback(err); - }); - }, - /** - * @api private - */ - createClients: function() { - this.service = this.service || new STS({params: this.params}); - } +/***/ }), -}); +/***/ 62538: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(70141); + +var AWS = __nccwpck_require__(53832); + +// Load all service classes +__nccwpck_require__(73443); + +/** + * @api private + */ +module.exports = AWS; /***/ }), -/***/ 41587: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 42712: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var STS = __nccwpck_require__(72787); -var iniLoader = AWS.util.iniLoader; +var AWS = __nccwpck_require__(53832), + url = AWS.util.url, + crypto = AWS.util.crypto.lib, + base64Encode = AWS.util.base64.encode, + inherit = AWS.util.inherit; -var ASSUME_ROLE_DEFAULT_REGION = 'us-east-1'; +var queryEncode = function (string) { + var replacements = { + '+': '-', + '=': '_', + '/': '~' + }; + return string.replace(/[\+=\/]/g, function (match) { + return replacements[match]; + }); +}; -/** - * Represents credentials loaded from shared credentials file - * (defaulting to ~/.aws/credentials or defined by the - * `AWS_SHARED_CREDENTIALS_FILE` environment variable). - * - * ## Using the shared credentials file - * - * This provider is checked by default in the Node.js environment. To use the - * credentials file provider, simply add your access and secret keys to the - * ~/.aws/credentials file in the following format: - * - * [default] - * aws_access_key_id = AKID... - * aws_secret_access_key = YOUR_SECRET_KEY - * - * ## Using custom profiles - * - * The SDK supports loading credentials for separate profiles. This can be done - * in two ways: - * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to - * loading the SDK. - * 2. Directly load the AWS.SharedIniFileCredentials provider: - * - * ```javascript - * var creds = new AWS.SharedIniFileCredentials({profile: 'myprofile'}); - * AWS.config.credentials = creds; - * ``` - * - * @!macro nobrowser - */ -AWS.SharedIniFileCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new SharedIniFileCredentials object. - * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var) - * the filename to use when loading credentials. - * @option options disableAssumeRole [Boolean] (false) True to disable - * support for profiles that assume an IAM role. If true, and an assume - * role profile is selected, an error is raised. - * @option options preferStaticCredentials [Boolean] (false) True to - * prefer static credentials to role_arn if both are present. - * @option options tokenCodeFn [Function] (null) Function to provide - * STS Assume Role TokenCode, if mfa_serial is provided for profile in ini - * file. Function is called with value of mfa_serial and callback, and - * should provide the TokenCode or an error to the callback in the format - * callback(err, token) - * @option options callback [Function] (err) Credentials are eagerly loaded - * by the constructor. When the callback is called with no error, the - * credentials have been loaded successfully. - * @option options httpOptions [map] A set of options to pass to the low-level - * HTTP request. Currently supported options are: - * * **proxy** [String] — the URL to proxy requests through - * * **agent** [http.Agent, https.Agent] — the Agent object to perform - * HTTP requests with. Used for connection pooling. Defaults to the global - * agent (`http.globalAgent`) for non-SSL connections. Note that for - * SSL connections, a special Agent object is used in order to enable - * peer certificate verification. This feature is only available in the - * Node.js environment. - * * **connectTimeout** [Integer] — Sets the socket to timeout after - * failing to establish a connection with the server after - * `connectTimeout` milliseconds. This timeout has no effect once a socket - * connection has been established. - * * **timeout** [Integer] — The number of milliseconds a request can - * take before automatically being terminated. - * Defaults to two minutes (120000). - */ - constructor: function SharedIniFileCredentials(options) { - AWS.Credentials.call(this); +var signPolicy = function (policy, privateKey) { + var sign = crypto.createSign('RSA-SHA1'); + sign.write(policy); + return queryEncode(sign.sign(privateKey, 'base64')); +}; - options = options || {}; +var signWithCannedPolicy = function (url, expires, keyPairId, privateKey) { + var policy = JSON.stringify({ + Statement: [ + { + Resource: url, + Condition: { DateLessThan: { 'AWS:EpochTime': expires } } + } + ] + }); - this.filename = options.filename; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.disableAssumeRole = Boolean(options.disableAssumeRole); - this.preferStaticCredentials = Boolean(options.preferStaticCredentials); - this.tokenCodeFn = options.tokenCodeFn || null; - this.httpOptions = options.httpOptions || null; - this.get(options.callback || AWS.util.fn.noop); - }, + return { + Expires: expires, + 'Key-Pair-Id': keyPairId, + Signature: signPolicy(policy.toString(), privateKey) + }; +}; - /** - * @api private - */ - load: function load(callback) { - var self = this; - try { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); - var profile = profiles[this.profile] || {}; +var signWithCustomPolicy = function (policy, keyPairId, privateKey) { + policy = policy.replace(/\s/mg, ''); - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' not found'), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } + return { + Policy: queryEncode(base64Encode(policy)), + 'Key-Pair-Id': keyPairId, + Signature: signPolicy(policy, privateKey) + }; +}; - /* - In the CLI, the presence of both a role_arn and static credentials have - different meanings depending on how many profiles have been visited. For - the first profile processed, role_arn takes precedence over any static - credentials, but for all subsequent profiles, static credentials are - used if present, and only in their absence will the profile's - source_profile and role_arn keys be used to load another set of - credentials. This var is intended to yield compatible behaviour in this - sdk. - */ - var preferStaticCredentialsToRoleArn = Boolean( - this.preferStaticCredentials - && profile['aws_access_key_id'] - && profile['aws_secret_access_key'] - ); +var determineScheme = function (url) { + var parts = url.split('://'); + if (parts.length < 2) { + throw new Error('Invalid URL.'); + } - if (profile['role_arn'] && !preferStaticCredentialsToRoleArn) { - this.loadRoleProfile(profiles, profile, function(err, data) { - if (err) { - callback(err); - } else { - self.expired = false; - self.accessKeyId = data.Credentials.AccessKeyId; - self.secretAccessKey = data.Credentials.SecretAccessKey; - self.sessionToken = data.Credentials.SessionToken; - self.expireTime = data.Credentials.Expiration; - callback(null); - } - }); - return; - } + return parts[0].replace('*', ''); +}; - this.accessKeyId = profile['aws_access_key_id']; - this.secretAccessKey = profile['aws_secret_access_key']; - this.sessionToken = profile['aws_session_token']; +var getRtmpUrl = function (rtmpUrl) { + var parsed = url.parse(rtmpUrl); + return parsed.path.replace(/^\//, '') + (parsed.hash || ''); +}; - if (!this.accessKeyId || !this.secretAccessKey) { - throw AWS.util.error( - new Error('Credentials not set for profile ' + this.profile), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } - this.expired = false; - callback(null); - } catch (err) { - callback(err); +var getResource = function (url) { + switch (determineScheme(url)) { + case 'http': + case 'https': + return url; + case 'rtmp': + return getRtmpUrl(url); + default: + throw new Error('Invalid URI scheme. Scheme must be one of' + + ' http, https, or rtmp'); } - }, +}; - /** - * Loads the credentials from the shared credentials file - * - * @callback callback function(err) - * Called after the shared INI file on disk is read and parsed. When this - * callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh( - callback || AWS.util.fn.callback, - this.disableAssumeRole - ); - }, +var handleError = function (err, callback) { + if (!callback || typeof callback !== 'function') { + throw err; + } - /** - * @api private - */ - loadRoleProfile: function loadRoleProfile(creds, roleProfile, callback) { - if (this.disableAssumeRole) { - throw AWS.util.error( - new Error('Role assumption profiles are disabled. ' + - 'Failed to load profile ' + this.profile + - ' from ' + creds.filename), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); + callback(err); +}; + +var handleSuccess = function (result, callback) { + if (!callback || typeof callback !== 'function') { + return result; } - var self = this; - var roleArn = roleProfile['role_arn']; - var roleSessionName = roleProfile['role_session_name']; - var externalId = roleProfile['external_id']; - var mfaSerial = roleProfile['mfa_serial']; - var sourceProfileName = roleProfile['source_profile']; - var durationSeconds = parseInt(roleProfile['duration_seconds'], 10) || undefined; + callback(null, result); +}; - // From experimentation, the following behavior mimics the AWS CLI: - // - // 1. Use region from the profile if present. - // 2. Otherwise fall back to N. Virginia (global endpoint). - // - // It is necessary to do the fallback explicitly, because if - // 'AWS_STS_REGIONAL_ENDPOINTS=regional', the underlying STS client will - // otherwise throw an error if region is left 'undefined'. - // - // Experimentation shows that the AWS CLI (tested at version 1.18.136) - // ignores the following potential sources of a region for the purposes of - // this AssumeRole call: - // - // - The [default] profile - // - The AWS_REGION environment variable - // - // Ignoring the [default] profile for the purposes of AssumeRole is arguably - // a bug in the CLI since it does use the [default] region for service - // calls... but right now we're matching behavior of the other tool. - var profileRegion = roleProfile['region'] || ASSUME_ROLE_DEFAULT_REGION; +AWS.CloudFront.Signer = inherit({ + /** + * A signer object can be used to generate signed URLs and cookies for granting + * access to content on restricted CloudFront distributions. + * + * @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html + * + * @param keyPairId [String] (Required) The ID of the CloudFront key pair + * being used. + * @param privateKey [String] (Required) A private key in RSA format. + */ + constructor: function Signer(keyPairId, privateKey) { + if (keyPairId === void 0 || privateKey === void 0) { + throw new Error('A key pair ID and private key are required'); + } - if (!sourceProfileName) { - throw AWS.util.error( - new Error('source_profile is not set using profile ' + this.profile), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } + this.keyPairId = keyPairId; + this.privateKey = privateKey; + }, - var sourceProfileExistanceTest = creds[sourceProfileName]; + /** + * Create a signed Amazon CloudFront Cookie. + * + * @param options [Object] The options to create a signed cookie. + * @option options url [String] The URL to which the signature will grant + * access. Required unless you pass in a full + * policy. + * @option options expires [Number] A Unix UTC timestamp indicating when the + * signature should expire. Required unless you + * pass in a full policy. + * @option options policy [String] A CloudFront JSON policy. Required unless + * you pass in a url and an expiry time. + * + * @param cb [Function] if a callback is provided, this function will + * pass the hash as the second parameter (after the error parameter) to + * the callback function. + * + * @return [Object] if called synchronously (with no callback), returns the + * signed cookie parameters. + * @return [null] nothing is returned if a callback is provided. + */ + getSignedCookie: function (options, cb) { + var signatureHash = 'policy' in options + ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) + : signWithCannedPolicy(options.url, options.expires, this.keyPairId, this.privateKey); - if (typeof sourceProfileExistanceTest !== 'object') { - throw AWS.util.error( - new Error('source_profile ' + sourceProfileName + ' using profile ' - + this.profile + ' does not exist'), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } + var cookieHash = {}; + for (var key in signatureHash) { + if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { + cookieHash['CloudFront-' + key] = signatureHash[key]; + } + } - var sourceCredentials = new AWS.SharedIniFileCredentials( - AWS.util.merge(this.options || {}, { - profile: sourceProfileName, - preferStaticCredentials: true - }) - ); + return handleSuccess(cookieHash, cb); + }, - this.roleArn = roleArn; - var sts = new STS({ - credentials: sourceCredentials, - region: profileRegion, - httpOptions: this.httpOptions - }); + /** + * Create a signed Amazon CloudFront URL. + * + * Keep in mind that URLs meant for use in media/flash players may have + * different requirements for URL formats (e.g. some require that the + * extension be removed, some require the file name to be prefixed + * - mp4:, some require you to add "/cfx/st" into your URL). + * + * @param options [Object] The options to create a signed URL. + * @option options url [String] The URL to which the signature will grant + * access. Any query params included with + * the URL should be encoded. Required. + * @option options expires [Number] A Unix UTC timestamp indicating when the + * signature should expire. Required unless you + * pass in a full policy. + * @option options policy [String] A CloudFront JSON policy. Required unless + * you pass in a url and an expiry time. + * + * @param cb [Function] if a callback is provided, this function will + * pass the URL as the second parameter (after the error parameter) to + * the callback function. + * + * @return [String] if called synchronously (with no callback), returns the + * signed URL. + * @return [null] nothing is returned if a callback is provided. + */ + getSignedUrl: function (options, cb) { + try { + var resource = getResource(options.url); + } catch (err) { + return handleError(err, cb); + } - var roleParams = { - DurationSeconds: durationSeconds, - RoleArn: roleArn, - RoleSessionName: roleSessionName || 'aws-sdk-js-' + Date.now() - }; + var parsedUrl = url.parse(options.url, true), + signatureHash = Object.prototype.hasOwnProperty.call(options, 'policy') + ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) + : signWithCannedPolicy(resource, options.expires, this.keyPairId, this.privateKey); - if (externalId) { - roleParams.ExternalId = externalId; - } + parsedUrl.search = null; + for (var key in signatureHash) { + if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { + parsedUrl.query[key] = signatureHash[key]; + } + } - if (mfaSerial && self.tokenCodeFn) { - roleParams.SerialNumber = mfaSerial; - self.tokenCodeFn(mfaSerial, function(err, token) { - if (err) { - var message; - if (err instanceof Error) { - message = err.message; - } else { - message = err; - } - callback( - AWS.util.error( - new Error('Error fetching MFA token: ' + message), - { code: 'SharedIniFileCredentialsProviderFailure' } - )); - return; + try { + var signedUrl = determineScheme(options.url) === 'rtmp' + ? getRtmpUrl(url.format(parsedUrl)) + : url.format(parsedUrl); + } catch (err) { + return handleError(err, cb); } - roleParams.TokenCode = token; - sts.assumeRole(roleParams, callback); - }); - return; + return handleSuccess(signedUrl, cb); } - sts.assumeRole(roleParams, callback); - } }); +/** + * @api private + */ +module.exports = AWS.CloudFront.Signer; + /***/ }), -/***/ 50157: +/***/ 22261: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var path = __nccwpck_require__(71017); -var crypto = __nccwpck_require__(6113); -var iniLoader = AWS.util.iniLoader; +var AWS = __nccwpck_require__(53832); +__nccwpck_require__(10957); +__nccwpck_require__(91563); +var PromisesDependency; /** - * Represents credentials from sso.getRoleCredentials API for - * `sso_*` values defined in shared credentials file. + * The main configuration class used by all service objects to set + * the region, credentials, and other options for requests. * - * ## Using SSO credentials + * By default, credentials and region settings are left unconfigured. + * This should be configured by the application before using any + * AWS service APIs. * - * The credentials file must specify the information below to use sso: + * In order to set global configuration options, properties should + * be assigned to the global {AWS.config} object. * - * [profile sso-profile] - * sso_account_id = 012345678901 - * sso_region = **-****-* - * sso_role_name = SampleRole - * sso_start_url = https://d-******.awsapps.com/start + * @see AWS.config * - * or using the session format: + * @!group General Configuration Options * - * [profile sso-token] - * sso_session = prod - * sso_account_id = 012345678901 - * sso_role_name = SampleRole + * @!attribute credentials + * @return [AWS.Credentials] the AWS credentials to sign requests with. * - * [sso-session prod] - * sso_region = **-****-* - * sso_start_url = https://d-******.awsapps.com/start + * @!attribute region + * @example Set the global region setting to us-west-2 + * AWS.config.update({region: 'us-west-2'}); + * @return [AWS.Credentials] The region to send service requests to. + * @see http://docs.amazonwebservices.com/general/latest/gr/rande.html + * A list of available endpoints for each AWS service * - * This information will be automatically added to your shared credentials file by running - * `aws configure sso`. + * @!attribute maxRetries + * @return [Integer] the maximum amount of retries to perform for a + * service request. By default this value is calculated by the specific + * service object that the request is being made to. * - * ## Using custom profiles + * @!attribute maxRedirects + * @return [Integer] the maximum amount of redirects to follow for a + * service request. Defaults to 10. * - * The SDK supports loading credentials for separate profiles. This can be done - * in two ways: + * @!attribute paramValidation + * @return [Boolean|map] whether input parameters should be validated against + * the operation description before sending the request. Defaults to true. + * Pass a map to enable any of the following specific validation features: * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to - * loading the SDK. - * 2. Directly load the AWS.SsoCredentials provider: + * * **min** [Boolean] — Validates that a value meets the min + * constraint. This is enabled by default when paramValidation is set + * to `true`. + * * **max** [Boolean] — Validates that a value meets the max + * constraint. + * * **pattern** [Boolean] — Validates that a string value matches a + * regular expression. + * * **enum** [Boolean] — Validates that a string value matches one + * of the allowable enum values. * - * ```javascript - * var creds = new AWS.SsoCredentials({profile: 'myprofile'}); - * AWS.config.credentials = creds; - * ``` + * @!attribute computeChecksums + * @return [Boolean] whether to compute checksums for payload bodies when + * the service accepts it (currently supported in S3 and SQS only). * - * @!macro nobrowser + * @!attribute convertResponseTypes + * @return [Boolean] whether types are converted when parsing response data. + * Currently only supported for JSON based services. Turning this off may + * improve performance on large response payloads. Defaults to `true`. + * + * @!attribute correctClockSkew + * @return [Boolean] whether to apply a clock skew correction and retry + * requests that fail because of an skewed client clock. Defaults to + * `false`. + * + * @!attribute sslEnabled + * @return [Boolean] whether SSL is enabled for requests + * + * @!attribute s3ForcePathStyle + * @return [Boolean] whether to force path style URLs for S3 objects + * + * @!attribute s3BucketEndpoint + * @note Setting this configuration option requires an `endpoint` to be + * provided explicitly to the service constructor. + * @return [Boolean] whether the provided endpoint addresses an individual + * bucket (false if it addresses the root API endpoint). + * + * @!attribute s3DisableBodySigning + * @return [Boolean] whether to disable S3 body signing when using signature version `v4`. + * Body signing can only be disabled when using https. Defaults to `true`. + * + * @!attribute s3UsEast1RegionalEndpoint + * @return ['legacy'|'regional'] when region is set to 'us-east-1', whether to send s3 + * request to global endpoints or 'us-east-1' regional endpoints. This config is only + * applicable to S3 client; + * Defaults to 'legacy' + * @!attribute s3UseArnRegion + * @return [Boolean] whether to override the request region with the region inferred + * from requested resource's ARN. Only available for S3 buckets + * Defaults to `true` + * + * @!attribute useAccelerateEndpoint + * @note This configuration option is only compatible with S3 while accessing + * dns-compatible buckets. + * @return [Boolean] Whether to use the Accelerate endpoint with the S3 service. + * Defaults to `false`. + * + * @!attribute retryDelayOptions + * @example Set the base retry delay for all services to 300 ms + * AWS.config.update({retryDelayOptions: {base: 300}}); + * // Delays with maxRetries = 3: 300, 600, 1200 + * @example Set a custom backoff function to provide delay values on retries + * AWS.config.update({retryDelayOptions: {customBackoff: function(retryCount, err) { + * // returns delay in ms + * }}}); + * @return [map] A set of options to configure the retry delay on retryable errors. + * Currently supported options are: + * + * * **base** [Integer] — The base number of milliseconds to use in the + * exponential backoff for operation retries. Defaults to 100 ms for all services except + * DynamoDB, where it defaults to 50ms. + * + * * **customBackoff ** [function] — A custom function that accepts a + * retry count and error and returns the amount of time to delay in + * milliseconds. If the result is a non-zero negative value, no further + * retry attempts will be made. The `base` option will be ignored if this + * option is supplied. The function is only called for retryable errors. + * + * @!attribute httpOptions + * @return [map] A set of options to pass to the low-level HTTP request. + * Currently supported options are: + * + * * **proxy** [String] — the URL to proxy requests through + * * **agent** [http.Agent, https.Agent] — the Agent object to perform + * HTTP requests with. Used for connection pooling. Note that for + * SSL connections, a special Agent object is used in order to enable + * peer certificate verification. This feature is only supported in the + * Node.js environment. + * * **connectTimeout** [Integer] — Sets the socket to timeout after + * failing to establish a connection with the server after + * `connectTimeout` milliseconds. This timeout has no effect once a socket + * connection has been established. + * * **timeout** [Integer] — The number of milliseconds a request can + * take before automatically being terminated. + * Defaults to two minutes (120000). + * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous + * HTTP requests. Used in the browser environment only. Set to false to + * send requests synchronously. Defaults to true (async on). + * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials" + * property of an XMLHttpRequest object. Used in the browser environment + * only. Defaults to false. + * @!attribute logger + * @return [#write,#log] an object that responds to .write() (like a stream) + * or .log() (like the console object) in order to log information about + * requests + * + * @!attribute systemClockOffset + * @return [Number] an offset value in milliseconds to apply to all signing + * times. Use this to compensate for clock skew when your system may be + * out of sync with the service time. Note that this configuration option + * can only be applied to the global `AWS.config` object and cannot be + * overridden in service-specific configuration. Defaults to 0 milliseconds. + * + * @!attribute signatureVersion + * @return [String] the signature version to sign requests with (overriding + * the API configuration). Possible values are: 'v2', 'v3', 'v4'. + * + * @!attribute signatureCache + * @return [Boolean] whether the signature to sign requests with (overriding + * the API configuration) is cached. Only applies to the signature version 'v4'. + * Defaults to `true`. + * + * @!attribute endpointDiscoveryEnabled + * @return [Boolean|undefined] whether to call operations with endpoints + * given by service dynamically. Setting this config to `true` will enable + * endpoint discovery for all applicable operations. Setting it to `false` + * will explicitly disable endpoint discovery even though operations that + * require endpoint discovery will presumably fail. Leaving it to + * `undefined` means SDK only do endpoint discovery when it's required. + * Defaults to `undefined` + * + * @!attribute endpointCacheSize + * @return [Number] the size of the global cache storing endpoints from endpoint + * discovery operations. Once endpoint cache is created, updating this setting + * cannot change existing cache size. + * Defaults to 1000 + * + * @!attribute hostPrefixEnabled + * @return [Boolean] whether to marshal request parameters to the prefix of + * hostname. Defaults to `true`. + * + * @!attribute stsRegionalEndpoints + * @return ['legacy'|'regional'] whether to send sts request to global endpoints or + * regional endpoints. + * Defaults to 'legacy'. + * + * @!attribute useFipsEndpoint + * @return [Boolean] Enables FIPS compatible endpoints. Defaults to `false`. + * + * @!attribute useDualstackEndpoint + * @return [Boolean] Enables IPv6 dualstack endpoint. Defaults to `false`. */ -AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, { +AWS.Config = AWS.util.inherit({ /** - * Creates a new SsoCredentials object. - * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var) - * the filename to use when loading credentials. - * @option options callback [Function] (err) Credentials are eagerly loaded - * by the constructor. When the callback is called with no error, the - * credentials have been loaded successfully. + * @!endgroup */ - constructor: function SsoCredentials(options) { - AWS.Credentials.call(this); - options = options || {}; - this.errorCode = 'SsoCredentialsProviderFailure'; - this.expired = true; + /** + * Creates a new configuration object. This is the object that passes + * option data along to service requests, including credentials, security, + * region information, and some service specific settings. + * + * @example Creating a new configuration object with credentials and region + * var config = new AWS.Config({ + * accessKeyId: 'AKID', secretAccessKey: 'SECRET', region: 'us-west-2' + * }); + * @option options accessKeyId [String] your AWS access key ID. + * @option options secretAccessKey [String] your AWS secret access key. + * @option options sessionToken [AWS.Credentials] the optional AWS + * session token to sign requests with. + * @option options credentials [AWS.Credentials] the AWS credentials + * to sign requests with. You can either specify this object, or + * specify the accessKeyId and secretAccessKey options directly. + * @option options credentialProvider [AWS.CredentialProviderChain] the + * provider chain used to resolve credentials if no static `credentials` + * property is set. + * @option options region [String] the region to send service requests to. + * See {region} for more information. + * @option options maxRetries [Integer] the maximum amount of retries to + * attempt with a request. See {maxRetries} for more information. + * @option options maxRedirects [Integer] the maximum amount of redirects to + * follow with a request. See {maxRedirects} for more information. + * @option options sslEnabled [Boolean] whether to enable SSL for + * requests. + * @option options paramValidation [Boolean|map] whether input parameters + * should be validated against the operation description before sending + * the request. Defaults to true. Pass a map to enable any of the + * following specific validation features: + * + * * **min** [Boolean] — Validates that a value meets the min + * constraint. This is enabled by default when paramValidation is set + * to `true`. + * * **max** [Boolean] — Validates that a value meets the max + * constraint. + * * **pattern** [Boolean] — Validates that a string value matches a + * regular expression. + * * **enum** [Boolean] — Validates that a string value matches one + * of the allowable enum values. + * @option options computeChecksums [Boolean] whether to compute checksums + * for payload bodies when the service accepts it (currently supported + * in S3 only) + * @option options convertResponseTypes [Boolean] whether types are converted + * when parsing response data. Currently only supported for JSON based + * services. Turning this off may improve performance on large response + * payloads. Defaults to `true`. + * @option options correctClockSkew [Boolean] whether to apply a clock skew + * correction and retry requests that fail because of an skewed client + * clock. Defaults to `false`. + * @option options s3ForcePathStyle [Boolean] whether to force path + * style URLs for S3 objects. + * @option options s3BucketEndpoint [Boolean] whether the provided endpoint + * addresses an individual bucket (false if it addresses the root API + * endpoint). Note that setting this configuration option requires an + * `endpoint` to be provided explicitly to the service constructor. + * @option options s3DisableBodySigning [Boolean] whether S3 body signing + * should be disabled when using signature version `v4`. Body signing + * can only be disabled when using https. Defaults to `true`. + * @option options s3UsEast1RegionalEndpoint ['legacy'|'regional'] when region + * is set to 'us-east-1', whether to send s3 request to global endpoints or + * 'us-east-1' regional endpoints. This config is only applicable to S3 client. + * Defaults to `legacy` + * @option options s3UseArnRegion [Boolean] whether to override the request region + * with the region inferred from requested resource's ARN. Only available for S3 buckets + * Defaults to `true` + * + * @option options retryDelayOptions [map] A set of options to configure + * the retry delay on retryable errors. Currently supported options are: + * + * * **base** [Integer] — The base number of milliseconds to use in the + * exponential backoff for operation retries. Defaults to 100 ms for all + * services except DynamoDB, where it defaults to 50ms. + * * **customBackoff ** [function] — A custom function that accepts a + * retry count and error and returns the amount of time to delay in + * milliseconds. If the result is a non-zero negative value, no further + * retry attempts will be made. The `base` option will be ignored if this + * option is supplied. The function is only called for retryable errors. + * @option options httpOptions [map] A set of options to pass to the low-level + * HTTP request. Currently supported options are: + * + * * **proxy** [String] — the URL to proxy requests through + * * **agent** [http.Agent, https.Agent] — the Agent object to perform + * HTTP requests with. Used for connection pooling. Defaults to the global + * agent (`http.globalAgent`) for non-SSL connections. Note that for + * SSL connections, a special Agent object is used in order to enable + * peer certificate verification. This feature is only available in the + * Node.js environment. + * * **connectTimeout** [Integer] — Sets the socket to timeout after + * failing to establish a connection with the server after + * `connectTimeout` milliseconds. This timeout has no effect once a socket + * connection has been established. + * * **timeout** [Integer] — Sets the socket to timeout after timeout + * milliseconds of inactivity on the socket. Defaults to two minutes + * (120000). + * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous + * HTTP requests. Used in the browser environment only. Set to false to + * send requests synchronously. Defaults to true (async on). + * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials" + * property of an XMLHttpRequest object. Used in the browser environment + * only. Defaults to false. + * @option options apiVersion [String, Date] a String in YYYY-MM-DD format + * (or a date) that represents the latest possible API version that can be + * used in all services (unless overridden by `apiVersions`). Specify + * 'latest' to use the latest possible version. + * @option options apiVersions [map] a map of service + * identifiers (the lowercase service class name) with the API version to + * use when instantiating a service. Specify 'latest' for each individual + * that can use the latest available version. + * @option options logger [#write,#log] an object that responds to .write() + * (like a stream) or .log() (like the console object) in order to log + * information about requests + * @option options systemClockOffset [Number] an offset value in milliseconds + * to apply to all signing times. Use this to compensate for clock skew + * when your system may be out of sync with the service time. Note that + * this configuration option can only be applied to the global `AWS.config` + * object and cannot be overridden in service-specific configuration. + * Defaults to 0 milliseconds. + * @option options signatureVersion [String] the signature version to sign + * requests with (overriding the API configuration). Possible values are: + * 'v2', 'v3', 'v4'. + * @option options signatureCache [Boolean] whether the signature to sign + * requests with (overriding the API configuration) is cached. Only applies + * to the signature version 'v4'. Defaults to `true`. + * @option options dynamoDbCrc32 [Boolean] whether to validate the CRC32 + * checksum of HTTP response bodies returned by DynamoDB. Default: `true`. + * @option options useAccelerateEndpoint [Boolean] Whether to use the + * S3 Transfer Acceleration endpoint with the S3 service. Default: `false`. + * @option options clientSideMonitoring [Boolean] whether to collect and + * publish this client's performance metrics of all its API requests. + * @option options endpointDiscoveryEnabled [Boolean|undefined] whether to + * call operations with endpoints given by service dynamically. Setting this + * config to `true` will enable endpoint discovery for all applicable operations. + * Setting it to `false` will explicitly disable endpoint discovery even though + * operations that require endpoint discovery will presumably fail. Leaving it + * to `undefined` means SDK will only do endpoint discovery when it's required. + * Defaults to `undefined` + * @option options endpointCacheSize [Number] the size of the global cache storing + * endpoints from endpoint discovery operations. Once endpoint cache is created, + * updating this setting cannot change existing cache size. + * Defaults to 1000 + * @option options hostPrefixEnabled [Boolean] whether to marshal request + * parameters to the prefix of hostname. + * Defaults to `true`. + * @option options stsRegionalEndpoints ['legacy'|'regional'] whether to send sts request + * to global endpoints or regional endpoints. + * Defaults to 'legacy'. + * @option options useFipsEndpoint [Boolean] Enables FIPS compatible endpoints. + * Defaults to `false`. + * @option options useDualstackEndpoint [Boolean] Enables IPv6 dualstack endpoint. + * Defaults to `false`. + */ + constructor: function Config(options) { + if (options === undefined) options = {}; + options = this.extractCredentials(options); - this.filename = options.filename; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.service = options.ssoClient; - this.httpOptions = options.httpOptions || null; - this.get(options.callback || AWS.util.fn.noop); + AWS.util.each.call(this, this.keys, function (key, value) { + this.set(key, options[key], value); + }); }, /** - * @api private + * @!group Managing Credentials */ - load: function load(callback) { - var self = this; - - try { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); - var profile = profiles[this.profile] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' not found'), - { code: self.errorCode } - ); - } - - if (profile.sso_session) { - if (!profile.sso_account_id || !profile.sso_role_name) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' with session ' + profile.sso_session + - ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_session", ' + - '"sso_role_name". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'), - { code: self.errorCode } - ); - } - } else { - if (!profile.sso_start_url || !profile.sso_account_id || !profile.sso_region || !profile.sso_role_name) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", ' + - '"sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'), - { code: self.errorCode } - ); - } - } - - this.getToken(this.profile, profile, function (err, token) { - if (err) { - return callback(err); - } - var request = { - accessToken: token, - accountId: profile.sso_account_id, - roleName: profile.sso_role_name, - }; - - if (!self.service || self.service.config.region !== profile.sso_region) { - self.service = new AWS.SSO({ - region: profile.sso_region, - httpOptions: self.httpOptions, - }); - } - - self.service.getRoleCredentials(request, function(err, data) { - if (err || !data || !data.roleCredentials) { - callback(AWS.util.error( - err || new Error('Please log in using "aws sso login"'), - { code: self.errorCode } - ), null); - } else if (!data.roleCredentials.accessKeyId || !data.roleCredentials.secretAccessKey || !data.roleCredentials.sessionToken || !data.roleCredentials.expiration) { - throw AWS.util.error(new Error( - 'SSO returns an invalid temporary credential.' - )); - } else { - self.expired = false; - self.accessKeyId = data.roleCredentials.accessKeyId; - self.secretAccessKey = data.roleCredentials.secretAccessKey; - self.sessionToken = data.roleCredentials.sessionToken; - self.expireTime = new Date(data.roleCredentials.expiration); - callback(null); - } - }); - }); - } catch (err) { - callback(err); - } - }, /** - * @private - * Uses legacy file system retrieval or if sso-session is set, - * use the SSOTokenProvider. + * Loads credentials from the configuration object. This is used internally + * by the SDK to ensure that refreshable {Credentials} objects are properly + * refreshed and loaded when sending a request. If you want to ensure that + * your credentials are loaded prior to a request, you can use this method + * directly to provide accurate credential data stored in the object. * - * @param {string} profileName - name of the profile. - * @param {object} profile - profile data containing sso_session or sso_start_url etc. - * @param {function} callback - called with (err, (string) token). + * @note If you configure the SDK with static or environment credentials, + * the credential data should already be present in {credentials} attribute. + * This method is primarily necessary to load credentials from asynchronous + * sources, or sources that can refresh credentials periodically. + * @example Getting your access key + * AWS.config.getCredentials(function(err) { + * if (err) console.log(err.stack); // credentials not loaded + * else console.log("Access Key:", AWS.config.credentials.accessKeyId); + * }) + * @callback callback function(err) + * Called when the {credentials} have been properly set on the configuration + * object. * - * @returns {void} + * @param err [Error] if this is set, credentials were not successfully + * loaded and this error provides information why. + * @see credentials + * @see Credentials */ - getToken: function getToken(profileName, profile, callback) { + getCredentials: function getCredentials(callback) { var self = this; - if (profile.sso_session) { - var _iniLoader = AWS.util.iniLoader; - var ssoSessions = _iniLoader.loadSsoSessionsFrom(); - var ssoSession = ssoSessions[profile.sso_session]; - Object.assign(profile, ssoSession); + function finish(err) { + callback(err, err ? null : self.credentials); + } - var ssoTokenProvider = new AWS.SSOTokenProvider({ - profile: profileName, + function credError(msg, err) { + return new AWS.util.error(err || new Error(), { + code: 'CredentialsError', + message: msg, + name: 'CredentialsError' }); - ssoTokenProvider.load(function (err) { + } + + function getAsyncCredentials() { + self.credentials.get(function(err) { if (err) { - return callback(err); + var msg = 'Could not load credentials from ' + + self.credentials.constructor.name; + err = credError(msg, err); } - return callback(null, ssoTokenProvider.token); + finish(err); }); - return; } - try { - /** - * The time window (15 mins) that SDK will treat the SSO token expires in before the defined expiration date in token. - * This is needed because server side may have invalidated the token before the defined expiration date. - */ - var EXPIRE_WINDOW_MS = 15 * 60 * 1000; - var hasher = crypto.createHash('sha1'); - var fileName = hasher.update(profile.sso_start_url).digest('hex') + '.json'; - var cachePath = path.join( - iniLoader.getHomeDir(), - '.aws', - 'sso', - 'cache', - fileName - ); - var cacheFile = AWS.util.readFileSync(cachePath); - var cacheContent = null; - if (cacheFile) { - cacheContent = JSON.parse(cacheFile); - } - if (!cacheContent) { - throw AWS.util.error( - new Error('Cached credentials not found under ' + this.profile + ' profile. Please make sure you log in with aws sso login first'), - { code: self.errorCode } - ); - } - - if (!cacheContent.startUrl || !cacheContent.region || !cacheContent.accessToken || !cacheContent.expiresAt) { - throw AWS.util.error( - new Error('Cached credentials are missing required properties. Try running aws sso login.') - ); + function getStaticCredentials() { + var err = null; + if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { + err = credError('Missing credentials'); } + finish(err); + } - if (new Date(cacheContent.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { - throw AWS.util.error(new Error( - 'The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.' - )); + if (self.credentials) { + if (typeof self.credentials.get === 'function') { + getAsyncCredentials(); + } else { // static credentials + getStaticCredentials(); } - - return callback(null, cacheContent.accessToken); - } catch (err) { - return callback(err, null); + } else if (self.credentialProvider) { + self.credentialProvider.resolve(function(err, creds) { + if (err) { + err = credError('Could not load credentials from any providers', err); + } + self.credentials = creds; + finish(err); + }); + } else { + finish(credError('No credentials to load')); } }, /** - * Loads the credentials from the AWS SSO process + * Loads token from the configuration object. This is used internally + * by the SDK to ensure that refreshable {Token} objects are properly + * refreshed and loaded when sending a request. If you want to ensure that + * your token is loaded prior to a request, you can use this method + * directly to provide accurate token data stored in the object. * + * @note If you configure the SDK with static token, the token data should + * already be present in {token} attribute. This method is primarily necessary + * to load token from asynchronous sources, or sources that can refresh + * token periodically. + * @example Getting your access token + * AWS.config.getToken(function(err) { + * if (err) console.log(err.stack); // token not loaded + * else console.log("Token:", AWS.config.token.token); + * }) * @callback callback function(err) - * Called after the AWS SSO process has been executed. When this - * callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, -}); - - -/***/ }), - -/***/ 18849: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var STS = __nccwpck_require__(72787); - -/** - * Represents temporary credentials retrieved from {AWS.STS}. Without any - * extra parameters, credentials will be fetched from the - * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the - * {AWS.STS.assumeRole} operation will be used to fetch credentials for the - * role instead. - * - * @note AWS.TemporaryCredentials is deprecated, but remains available for - * backwards compatibility. {AWS.ChainableTemporaryCredentials} is the - * preferred class for temporary credentials. - * - * To setup temporary credentials, configure a set of master credentials - * using the standard credentials providers (environment, EC2 instance metadata, - * or from the filesystem), then set the global credentials to a new - * temporary credentials object: - * - * ```javascript - * // Note that environment credentials are loaded by default, - * // the following line is shown for clarity: - * AWS.config.credentials = new AWS.EnvironmentCredentials('AWS'); - * - * // Now set temporary credentials seeded from the master credentials - * AWS.config.credentials = new AWS.TemporaryCredentials(); - * - * // subsequent requests will now use temporary credentials from AWS STS. - * new AWS.S3().listBucket(function(err, data) { ... }); - * ``` - * - * @!attribute masterCredentials - * @return [AWS.Credentials] the master (non-temporary) credentials used to - * get and refresh temporary credentials from AWS STS. - * @note (see constructor) - */ -AWS.TemporaryCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new temporary credentials object. + * Called when the {token} have been properly set on the configuration object. * - * @note In order to create temporary credentials, you first need to have - * "master" credentials configured in {AWS.Config.credentials}. These - * master credentials are necessary to retrieve the temporary credentials, - * as well as refresh the credentials when they expire. - * @param params [map] a map of options that are passed to the - * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations. - * If a `RoleArn` parameter is passed in, credentials will be based on the - * IAM role. - * @param masterCredentials [AWS.Credentials] the master (non-temporary) credentials - * used to get and refresh temporary credentials from AWS STS. - * @example Creating a new credentials object for generic temporary credentials - * AWS.config.credentials = new AWS.TemporaryCredentials(); - * @example Creating a new credentials object for an IAM role - * AWS.config.credentials = new AWS.TemporaryCredentials({ - * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials', - * }); - * @see AWS.STS.assumeRole - * @see AWS.STS.getSessionToken + * @param err [Error] if this is set, token was not successfully loaded and + * this error provides information why. + * @see token */ - constructor: function TemporaryCredentials(params, masterCredentials) { - AWS.Credentials.call(this); - this.loadMasterCredentials(masterCredentials); - this.expired = true; + getToken: function getToken(callback) { + var self = this; - this.params = params || {}; - if (this.params.RoleArn) { - this.params.RoleSessionName = - this.params.RoleSessionName || 'temporary-credentials'; + function finish(err) { + callback(err, err ? null : self.token); } - }, - /** - * Refreshes credentials using {AWS.STS.assumeRole} or - * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed - * to the credentials {constructor}. - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh (callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, + function tokenError(msg, err) { + return new AWS.util.error(err || new Error(), { + code: 'TokenError', + message: msg, + name: 'TokenError' + }); + } - /** - * @api private - */ - load: function load (callback) { - var self = this; - self.createClients(); - self.masterCredentials.get(function () { - self.service.config.credentials = self.masterCredentials; - var operation = self.params.RoleArn ? - self.service.assumeRole : self.service.getSessionToken; - operation.call(self.service, function (err, data) { - if (!err) { - self.service.credentialsFrom(data, self); + function getAsyncToken() { + self.token.get(function(err) { + if (err) { + var msg = 'Could not load token from ' + + self.token.constructor.name; + err = tokenError(msg, err); } - callback(err); + finish(err); }); - }); - }, - - /** - * @api private - */ - loadMasterCredentials: function loadMasterCredentials (masterCredentials) { - this.masterCredentials = masterCredentials || AWS.config.credentials; - while (this.masterCredentials.masterCredentials) { - this.masterCredentials = this.masterCredentials.masterCredentials; } - if (typeof this.masterCredentials.get !== 'function') { - this.masterCredentials = new AWS.Credentials(this.masterCredentials); + function getStaticToken() { + var err = null; + if (!self.token.token) { + err = tokenError('Missing token'); + } + finish(err); } - }, - - /** - * @api private - */ - createClients: function () { - this.service = this.service || new STS({params: this.params}); - } - -}); - - -/***/ }), - -/***/ 80191: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var fs = __nccwpck_require__(57147); -var STS = __nccwpck_require__(72787); -var iniLoader = AWS.util.iniLoader; - -/** - * Represents OIDC credentials from a file on disk - * If the credentials expire, the SDK can {refresh} the credentials - * from the file. - * - * ## Using the web identity token file - * - * This provider is checked by default in the Node.js environment. To use - * the provider simply add your OIDC token to a file (ASCII encoding) and - * share the filename in either AWS_WEB_IDENTITY_TOKEN_FILE environment - * variable or web_identity_token_file shared config variable - * - * The file contains encoded OIDC token and the characters are - * ASCII encoded. OIDC tokens are JSON Web Tokens (JWT). - * JWT's are 3 base64 encoded strings joined by the '.' character. - * - * This class will read filename from AWS_WEB_IDENTITY_TOKEN_FILE - * environment variable or web_identity_token_file shared config variable, - * and get the OIDC token from filename. - * It will also read IAM role to be assumed from AWS_ROLE_ARN - * environment variable or role_arn shared config variable. - * This provider gets credetials using the {AWS.STS.assumeRoleWithWebIdentity} - * service operation - * - * @!macro nobrowser - */ -AWS.TokenFileWebIdentityCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.TokenFileWebIdentityCredentials( - * // optionally provide configuration to apply to the underlying AWS.STS service client - * // if configuration is not provided, then configuration will be pulled from AWS.config - * { - * // specify timeout options - * httpOptions: { - * timeout: 100 - * } - * }); - * @see AWS.Config - */ - constructor: function TokenFileWebIdentityCredentials(clientConfig) { - AWS.Credentials.call(this); - this.data = null; - this.clientConfig = AWS.util.copy(clientConfig || {}); + if (self.token) { + if (typeof self.token.get === 'function') { + getAsyncToken(); + } else { // static token + getStaticToken(); + } + } else if (self.tokenProvider) { + self.tokenProvider.resolve(function(err, token) { + if (err) { + err = tokenError('Could not load token from any providers', err); + } + self.token = token; + finish(err); + }); + } else { + finish(tokenError('No token to load')); + } }, /** - * Returns params from environment variables - * - * @api private + * @!group Loading and Setting Configuration Options */ - getParamsFromEnv: function getParamsFromEnv() { - var ENV_TOKEN_FILE = 'AWS_WEB_IDENTITY_TOKEN_FILE', - ENV_ROLE_ARN = 'AWS_ROLE_ARN'; - if (process.env[ENV_TOKEN_FILE] && process.env[ENV_ROLE_ARN]) { - return [{ - envTokenFile: process.env[ENV_TOKEN_FILE], - roleArn: process.env[ENV_ROLE_ARN], - roleSessionName: process.env['AWS_ROLE_SESSION_NAME'] - }]; - } - }, /** - * Returns params from shared config variables + * @overload update(options, allowUnknownKeys = false) + * Updates the current configuration object with new options. * - * @api private + * @example Update maxRetries property of a configuration object + * config.update({maxRetries: 10}); + * @param [Object] options a map of option keys and values. + * @param [Boolean] allowUnknownKeys whether unknown keys can be set on + * the configuration object. Defaults to `false`. + * @see constructor */ - getParamsFromSharedConfig: function getParamsFromSharedConfig() { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader); - var profileName = process.env.AWS_PROFILE || AWS.util.defaultProfile; - var profile = profiles[profileName] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + profileName + ' not found'), - { code: 'TokenFileWebIdentityCredentialsProviderFailure' } - ); - } - - var paramsArray = []; + update: function update(options, allowUnknownKeys) { + allowUnknownKeys = allowUnknownKeys || false; + options = this.extractCredentials(options); + AWS.util.each.call(this, options, function (key, value) { + if (allowUnknownKeys || Object.prototype.hasOwnProperty.call(this.keys, key) || + AWS.Service.hasService(key)) { + this.set(key, value); + } + }); + }, - while (!profile['web_identity_token_file'] && profile['source_profile']) { - paramsArray.unshift({ - roleArn: profile['role_arn'], - roleSessionName: profile['role_session_name'] - }); - var sourceProfile = profile['source_profile']; - profile = profiles[sourceProfile]; - } + /** + * Loads configuration data from a JSON file into this config object. + * @note Loading configuration will reset all existing configuration + * on the object. + * @!macro nobrowser + * @param path [String] the path relative to your process's current + * working directory to load configuration from. + * @return [AWS.Config] the same configuration object + */ + loadFromPath: function loadFromPath(path) { + this.clear(); - paramsArray.unshift({ - envTokenFile: profile['web_identity_token_file'], - roleArn: profile['role_arn'], - roleSessionName: profile['role_session_name'] + var options = JSON.parse(AWS.util.readFileSync(path)); + var fileSystemCreds = new AWS.FileSystemCredentials(path); + var chain = new AWS.CredentialProviderChain(); + chain.providers.unshift(fileSystemCreds); + chain.resolve(function (err, creds) { + if (err) throw err; + else options.credentials = creds; }); - return paramsArray; + this.constructor(options); + + return this; }, /** - * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity} + * Clears configuration data on this object * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see AWS.Credentials.get + * @api private */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, + clear: function clear() { + /*jshint forin:false */ + AWS.util.each.call(this, this.keys, function (key) { + delete this[key]; + }); - /** - * @api private - */ - assumeRoleChaining: function assumeRoleChaining(paramsArray, callback) { - var self = this; - if (paramsArray.length === 0) { - self.service.credentialsFrom(self.data, self); - callback(); - } else { - var params = paramsArray.shift(); - self.service.config.credentials = self.service.credentialsFrom(self.data, self); - self.service.assumeRole( - { - RoleArn: params.roleArn, - RoleSessionName: params.roleSessionName || 'token-file-web-identity' - }, - function (err, data) { - self.data = null; - if (err) { - callback(err); - } else { - self.data = data; - self.assumeRoleChaining(paramsArray, callback); - } - } - ); - } + // reset credential provider + this.set('credentials', undefined); + this.set('credentialProvider', undefined); }, /** + * Sets a property on the configuration object, allowing for a + * default value * @api private */ - load: function load(callback) { - var self = this; - try { - var paramsArray = self.getParamsFromEnv(); - if (!paramsArray) { - paramsArray = self.getParamsFromSharedConfig(); + set: function set(property, value, defaultValue) { + if (value === undefined) { + if (defaultValue === undefined) { + defaultValue = this.keys[property]; } - if (paramsArray) { - var params = paramsArray.shift(); - var oidcToken = fs.readFileSync(params.envTokenFile, {encoding: 'ascii'}); - if (!self.service) { - self.createClients(); - } - self.service.assumeRoleWithWebIdentity( - { - WebIdentityToken: oidcToken, - RoleArn: params.roleArn, - RoleSessionName: params.roleSessionName || 'token-file-web-identity' - }, - function (err, data) { - self.data = null; - if (err) { - callback(err); - } else { - self.data = data; - self.assumeRoleChaining(paramsArray, callback); - } - } - ); + if (typeof defaultValue === 'function') { + this[property] = defaultValue.call(this); + } else { + this[property] = defaultValue; } - } catch (err) { - callback(err); + } else if (property === 'httpOptions' && this[property]) { + // deep merge httpOptions + this[property] = AWS.util.merge(this[property], value); + } else { + this[property] = value; } }, /** - * @api private - */ - createClients: function() { - if (!this.service) { - var stsConfig = AWS.util.merge({}, this.clientConfig); - this.service = new STS(stsConfig); - - // Retry in case of IDPCommunicationErrorException or InvalidIdentityToken - this.service.retryableError = function(error) { - if (error.code === 'IDPCommunicationErrorException' || error.code === 'InvalidIdentityToken') { - return true; - } else { - return AWS.Service.prototype.retryableError.call(this, error); - } - }; - } - } -}); - - -/***/ }), - -/***/ 98787: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var STS = __nccwpck_require__(72787); - -/** - * Represents credentials retrieved from STS Web Identity Federation support. - * - * By default this provider gets credentials using the - * {AWS.STS.assumeRoleWithWebIdentity} service operation. This operation - * requires a `RoleArn` containing the ARN of the IAM trust policy for the - * application for which credentials will be given. In addition, the - * `WebIdentityToken` must be set to the token provided by the identity - * provider. See {constructor} for an example on creating a credentials - * object with proper `RoleArn` and `WebIdentityToken` values. - * - * ## Refreshing Credentials from Identity Service - * - * In addition to AWS credentials expiring after a given amount of time, the - * login token from the identity provider will also expire. Once this token - * expires, it will not be usable to refresh AWS credentials, and another - * token will be needed. The SDK does not manage refreshing of the token value, - * but this can be done through a "refresh token" supported by most identity - * providers. Consult the documentation for the identity provider for refreshing - * tokens. Once the refreshed token is acquired, you should make sure to update - * this new token in the credentials object's {params} property. The following - * code will update the WebIdentityToken, assuming you have retrieved an updated - * token from the identity provider: - * - * ```javascript - * AWS.config.credentials.params.WebIdentityToken = updatedToken; - * ``` - * - * Future calls to `credentials.refresh()` will now use the new token. - * - * @!attribute params - * @return [map] the map of params passed to - * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the - * `params.WebIdentityToken` property. - * @!attribute data - * @return [map] the raw data response from the call to - * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get - * access to other properties from the response. - */ -AWS.WebIdentityCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new credentials object. - * @param (see AWS.STS.assumeRoleWithWebIdentity) - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.WebIdentityCredentials({ - * RoleArn: 'arn:aws:iam::1234567890:role/WebIdentity', - * WebIdentityToken: 'ABCDEFGHIJKLMNOP', // token from identity service - * RoleSessionName: 'web' // optional name, defaults to web-identity - * }, { - * // optionally provide configuration to apply to the underlying AWS.STS service client - * // if configuration is not provided, then configuration will be pulled from AWS.config + * All of the keys with their default values. * - * // specify timeout options - * httpOptions: { - * timeout: 100 - * } - * }); - * @see AWS.STS.assumeRoleWithWebIdentity - * @see AWS.Config + * @constant + * @api private */ - constructor: function WebIdentityCredentials(params, clientConfig) { - AWS.Credentials.call(this); - this.expired = true; - this.params = params; - this.params.RoleSessionName = this.params.RoleSessionName || 'web-identity'; - this.data = null; - this._clientConfig = AWS.util.copy(clientConfig || {}); + keys: { + credentials: null, + credentialProvider: null, + region: null, + logger: null, + apiVersions: {}, + apiVersion: null, + endpoint: undefined, + httpOptions: { + timeout: 120000 + }, + maxRetries: undefined, + maxRedirects: 10, + paramValidation: true, + sslEnabled: true, + s3ForcePathStyle: false, + s3BucketEndpoint: false, + s3DisableBodySigning: true, + s3UsEast1RegionalEndpoint: 'legacy', + s3UseArnRegion: undefined, + computeChecksums: true, + convertResponseTypes: true, + correctClockSkew: false, + customUserAgent: null, + dynamoDbCrc32: true, + systemClockOffset: 0, + signatureVersion: null, + signatureCache: true, + retryDelayOptions: {}, + useAccelerateEndpoint: false, + clientSideMonitoring: false, + endpointDiscoveryEnabled: undefined, + endpointCacheSize: 1000, + hostPrefixEnabled: true, + stsRegionalEndpoints: 'legacy', + useFipsEndpoint: false, + useDualstackEndpoint: false, + token: null }, /** - * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity} + * Extracts accessKeyId, secretAccessKey and sessionToken + * from a configuration hash. * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get + * @api private */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); + extractCredentials: function extractCredentials(options) { + if (options.accessKeyId && options.secretAccessKey) { + options = AWS.util.copy(options); + options.credentials = new AWS.Credentials(options); + } + return options; }, /** - * @api private + * Sets the promise dependency the SDK will use wherever Promises are returned. + * Passing `null` will force the SDK to use native Promises if they are available. + * If native Promises are not available, passing `null` will have no effect. + * @param [Constructor] dep A reference to a Promise constructor */ - load: function load(callback) { - var self = this; - self.createClients(); - self.service.assumeRoleWithWebIdentity(function (err, data) { - self.data = null; - if (!err) { - self.data = data; - self.service.credentialsFrom(data, self); + setPromisesDependency: function setPromisesDependency(dep) { + PromisesDependency = dep; + // if null was passed in, we should try to use native promises + if (dep === null && typeof Promise === 'function') { + PromisesDependency = Promise; + } + var constructors = [AWS.Request, AWS.Credentials, AWS.CredentialProviderChain]; + if (AWS.S3) { + constructors.push(AWS.S3); + if (AWS.S3.ManagedUpload) { + constructors.push(AWS.S3.ManagedUpload); } - callback(err); - }); + } + AWS.util.addPromises(constructors, PromisesDependency); }, /** - * @api private + * Gets the promise dependency set by `AWS.config.setPromisesDependency`. */ - createClients: function() { - if (!this.service) { - var stsConfig = AWS.util.merge({}, this._clientConfig); - stsConfig.params = this.params; - this.service = new STS(stsConfig); - } + getPromisesDependency: function getPromisesDependency() { + return PromisesDependency; } - }); +/** + * @return [AWS.Config] The global configuration object singleton instance + * @readonly + * @see AWS.Config + */ +AWS.config = new AWS.Config(); + /***/ }), -/***/ 49249: +/***/ 88469: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var util = __nccwpck_require__(43956); -var endpointDiscoveryEnabledEnvs = ['AWS_ENABLE_ENDPOINT_DISCOVERY', 'AWS_ENDPOINT_DISCOVERY_ENABLED']; - +var AWS = __nccwpck_require__(53832); /** - * Generate key (except resources and operation part) to index the endpoints in the cache - * If input shape has endpointdiscoveryid trait then use - * accessKey + operation + resources + region + service as cache key - * If input shape doesn't have endpointdiscoveryid trait then use - * accessKey + region + service as cache key - * @return [map] object with keys to index endpoints. * @api private */ -function getCacheKey(request) { - var service = request.service; - var api = service.api || {}; - var operations = api.operations; - var identifiers = {}; - if (service.config.region) { - identifiers.region = service.config.region; - } - if (api.serviceId) { - identifiers.serviceId = api.serviceId; - } - if (service.config.credentials.accessKeyId) { - identifiers.accessKeyId = service.config.credentials.accessKeyId; +function validateRegionalEndpointsFlagValue(configValue, errorOptions) { + if (typeof configValue !== 'string') return undefined; + else if (['legacy', 'regional'].indexOf(configValue.toLowerCase()) >= 0) { + return configValue.toLowerCase(); + } else { + throw AWS.util.error(new Error(), errorOptions); } - return identifiers; } /** - * Recursive helper for marshallCustomIdentifiers(). - * Looks for required string input members that have 'endpointdiscoveryid' trait. + * Resolve the configuration value for regional endpoint from difference sources: client + * config, environmental variable, shared config file. Value can be case-insensitive + * 'legacy' or 'reginal'. + * @param originalConfig user-supplied config object to resolve + * @param options a map of config property names from individual configuration source + * - env: name of environmental variable that refers to the config + * - sharedConfig: name of shared configuration file property that refers to the config + * - clientConfig: name of client configuration property that refers to the config + * * @api private */ -function marshallCustomIdentifiersHelper(result, params, shape) { - if (!shape || params === undefined || params === null) return; - if (shape.type === 'structure' && shape.required && shape.required.length > 0) { - util.arrayEach(shape.required, function(name) { - var memberShape = shape.members[name]; - if (memberShape.endpointDiscoveryId === true) { - var locationName = memberShape.isLocationName ? memberShape.name : name; - result[locationName] = String(params[name]); - } else { - marshallCustomIdentifiersHelper(result, params[name], memberShape); - } +function resolveRegionalEndpointsFlag(originalConfig, options) { + originalConfig = originalConfig || {}; + //validate config value + var resolved; + if (originalConfig[options.clientConfig]) { + resolved = validateRegionalEndpointsFlagValue(originalConfig[options.clientConfig], { + code: 'InvalidConfiguration', + message: 'invalid "' + options.clientConfig + '" configuration. Expect "legacy" ' + + ' or "regional". Got "' + originalConfig[options.clientConfig] + '".' }); + if (resolved) return resolved; } -} - -/** - * Get custom identifiers for cache key. - * Identifies custom identifiers by checking each shape's `endpointDiscoveryId` trait. - * @param [object] request object - * @param [object] input shape of the given operation's api - * @api private - */ -function marshallCustomIdentifiers(request, shape) { - var identifiers = {}; - marshallCustomIdentifiersHelper(identifiers, request.params, shape); - return identifiers; -} - -/** - * Call endpoint discovery operation when it's optional. - * When endpoint is available in cache then use the cached endpoints. If endpoints - * are unavailable then use regional endpoints and call endpoint discovery operation - * asynchronously. This is turned off by default. - * @param [object] request object - * @api private - */ -function optionalDiscoverEndpoint(request) { - var service = request.service; - var api = service.api; - var operationModel = api.operations ? api.operations[request.operation] : undefined; - var inputShape = operationModel ? operationModel.input : undefined; - - var identifiers = marshallCustomIdentifiers(request, inputShape); - var cacheKey = getCacheKey(request); - if (Object.keys(identifiers).length > 0) { - cacheKey = util.update(cacheKey, identifiers); - if (operationModel) cacheKey.operation = operationModel.name; - } - var endpoints = AWS.endpointCache.get(cacheKey); - if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') { - //endpoint operation is being made but response not yet received - //or endpoint operation just failed in 1 minute - return; - } else if (endpoints && endpoints.length > 0) { - //found endpoint record from cache - request.httpRequest.updateEndpoint(endpoints[0].Address); - } else { - //endpoint record not in cache or outdated. make discovery operation - var endpointRequest = service.makeRequest(api.endpointOperation, { - Operation: operationModel.name, - Identifiers: identifiers, + if (!AWS.util.isNode()) return resolved; + //validate environmental variable + if (Object.prototype.hasOwnProperty.call(process.env, options.env)) { + var envFlag = process.env[options.env]; + resolved = validateRegionalEndpointsFlagValue(envFlag, { + code: 'InvalidEnvironmentalVariable', + message: 'invalid ' + options.env + ' environmental variable. Expect "legacy" ' + + ' or "regional". Got "' + process.env[options.env] + '".' }); - addApiVersionHeader(endpointRequest); - endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - endpointRequest.removeListener('retry', AWS.EventListeners.Core.RETRY_CHECK); - //put in a placeholder for endpoints already requested, prevent - //too much in-flight calls - AWS.endpointCache.put(cacheKey, [{ - Address: '', - CachePeriodInMinutes: 1 - }]); - endpointRequest.send(function(err, data) { - if (data && data.Endpoints) { - AWS.endpointCache.put(cacheKey, data.Endpoints); - } else if (err) { - AWS.endpointCache.put(cacheKey, [{ - Address: '', - CachePeriodInMinutes: 1 //not to make more endpoint operation in next 1 minute - }]); - } + if (resolved) return resolved; + } + //validate shared config file + var profile = {}; + try { + var profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader); + profile = profiles[process.env.AWS_PROFILE || AWS.util.defaultProfile]; + } catch (e) {}; + if (profile && Object.prototype.hasOwnProperty.call(profile, options.sharedConfig)) { + var fileFlag = profile[options.sharedConfig]; + resolved = validateRegionalEndpointsFlagValue(fileFlag, { + code: 'InvalidConfiguration', + message: 'invalid ' + options.sharedConfig + ' profile config. Expect "legacy" ' + + ' or "regional". Got "' + profile[options.sharedConfig] + '".' }); + if (resolved) return resolved; } + return resolved; } -var requestQueue = {}; - -/** - * Call endpoint discovery operation when it's required. - * When endpoint is available in cache then use cached ones. If endpoints are - * unavailable then SDK should call endpoint operation then use returned new - * endpoint for the api call. SDK will automatically attempt to do endpoint - * discovery. This is turned off by default - * @param [object] request object - * @api private - */ -function requiredDiscoverEndpoint(request, done) { - var service = request.service; - var api = service.api; - var operationModel = api.operations ? api.operations[request.operation] : undefined; - var inputShape = operationModel ? operationModel.input : undefined; - - var identifiers = marshallCustomIdentifiers(request, inputShape); - var cacheKey = getCacheKey(request); - if (Object.keys(identifiers).length > 0) { - cacheKey = util.update(cacheKey, identifiers); - if (operationModel) cacheKey.operation = operationModel.name; - } - var cacheKeyStr = AWS.EndpointCache.getKeyString(cacheKey); - var endpoints = AWS.endpointCache.get(cacheKeyStr); //endpoint cache also accepts string keys - if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') { - //endpoint operation is being made but response not yet received - //push request object to a pending queue - if (!requestQueue[cacheKeyStr]) requestQueue[cacheKeyStr] = []; - requestQueue[cacheKeyStr].push({request: request, callback: done}); - return; - } else if (endpoints && endpoints.length > 0) { - request.httpRequest.updateEndpoint(endpoints[0].Address); - done(); - } else { - var endpointRequest = service.makeRequest(api.endpointOperation, { - Operation: operationModel.name, - Identifiers: identifiers, - }); - endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - addApiVersionHeader(endpointRequest); +module.exports = resolveRegionalEndpointsFlag; - //put in a placeholder for endpoints already requested, prevent - //too much in-flight calls - AWS.endpointCache.put(cacheKeyStr, [{ - Address: '', - CachePeriodInMinutes: 60 //long-live cache - }]); - endpointRequest.send(function(err, data) { - if (err) { - request.response.error = util.error(err, { retryable: false }); - AWS.endpointCache.remove(cacheKey); - //fail all the pending requests in batch - if (requestQueue[cacheKeyStr]) { - var pendingRequests = requestQueue[cacheKeyStr]; - util.arrayEach(pendingRequests, function(requestContext) { - requestContext.request.response.error = util.error(err, { retryable: false }); - requestContext.callback(); - }); - delete requestQueue[cacheKeyStr]; - } - } else if (data) { - AWS.endpointCache.put(cacheKeyStr, data.Endpoints); - request.httpRequest.updateEndpoint(data.Endpoints[0].Address); +/***/ }), - //update the endpoint for all the pending requests in batch - if (requestQueue[cacheKeyStr]) { - var pendingRequests = requestQueue[cacheKeyStr]; - util.arrayEach(pendingRequests, function(requestContext) { - requestContext.request.httpRequest.updateEndpoint(data.Endpoints[0].Address); - requestContext.callback(); - }); - delete requestQueue[cacheKeyStr]; - } - } - done(); - }); - } -} +/***/ 53832: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /** - * add api version header to endpoint operation - * @api private + * The main AWS namespace */ -function addApiVersionHeader(endpointRequest) { - var api = endpointRequest.service.api; - var apiVersion = api.apiVersion; - if (apiVersion && !endpointRequest.httpRequest.headers['x-amz-api-version']) { - endpointRequest.httpRequest.headers['x-amz-api-version'] = apiVersion; - } -} +var AWS = { util: __nccwpck_require__(30879) }; /** - * If api call gets invalid endpoint exception, SDK should attempt to remove the invalid - * endpoint from cache. * @api private + * @!macro [new] nobrowser + * @note This feature is not supported in the browser environment of the SDK. */ -function invalidateCachedEndpoints(response) { - var error = response.error; - var httpResponse = response.httpResponse; - if (error && - (error.code === 'InvalidEndpointException' || httpResponse.statusCode === 421) - ) { - var request = response.request; - var operations = request.service.api.operations || {}; - var inputShape = operations[request.operation] ? operations[request.operation].input : undefined; - var identifiers = marshallCustomIdentifiers(request, inputShape); - var cacheKey = getCacheKey(request); - if (Object.keys(identifiers).length > 0) { - cacheKey = util.update(cacheKey, identifiers); - if (operations[request.operation]) cacheKey.operation = operations[request.operation].name; - } - AWS.endpointCache.remove(cacheKey); - } -} +var _hidden = {}; _hidden.toString(); // hack to parse macro /** - * If endpoint is explicitly configured, SDK should not do endpoint discovery in anytime. - * @param [object] client Service client object. * @api private */ -function hasCustomEndpoint(client) { - //if set endpoint is set for specific client, enable endpoint discovery will raise an error. - if (client._originalConfig && client._originalConfig.endpoint && client._originalConfig.endpointDiscoveryEnabled === true) { - throw util.error(new Error(), { - code: 'ConfigurationException', - message: 'Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.' - }); - }; - var svcConfig = AWS.config[client.serviceIdentifier] || {}; - return Boolean(AWS.config.endpoint || svcConfig.endpoint || (client._originalConfig && client._originalConfig.endpoint)); -} +module.exports = AWS; -/** - * @api private - */ -function isFalsy(value) { - return ['false', '0'].indexOf(value) >= 0; -} +AWS.util.update(AWS, { -/** - * If endpoint discovery should perform for this request when no operation requires endpoint - * discovery for the given service. - * SDK performs config resolution in order like below: - * 1. If set in client configuration. - * 2. If set in env AWS_ENABLE_ENDPOINT_DISCOVERY. - * 3. If set in shared ini config file with key 'endpoint_discovery_enabled'. - * @param [object] request request object. - * @returns [boolean|undefined] if endpoint discovery config is not set in any source, this - * function returns undefined - * @api private - */ -function resolveEndpointDiscoveryConfig(request) { - var service = request.service || {}; - if (service.config.endpointDiscoveryEnabled !== undefined) { - return service.config.endpointDiscoveryEnabled; - } + /** + * @constant + */ + VERSION: '2.1693.0', - //shared ini file is only available in Node - //not to check env in browser - if (util.isBrowser()) return undefined; + /** + * @api private + */ + Signers: {}, - // If any of recognized endpoint discovery config env is set - for (var i = 0; i < endpointDiscoveryEnabledEnvs.length; i++) { - var env = endpointDiscoveryEnabledEnvs[i]; - if (Object.prototype.hasOwnProperty.call(process.env, env)) { - if (process.env[env] === '' || process.env[env] === undefined) { - throw util.error(new Error(), { - code: 'ConfigurationException', - message: 'environmental variable ' + env + ' cannot be set to nothing' - }); - } - return !isFalsy(process.env[env]); - } - } + /** + * @api private + */ + Protocol: { + Json: __nccwpck_require__(95768), + Query: __nccwpck_require__(22960), + Rest: __nccwpck_require__(29252), + RestJson: __nccwpck_require__(93181), + RestXml: __nccwpck_require__(63250) + }, - var configFile = {}; - try { - configFile = AWS.util.iniLoader ? AWS.util.iniLoader.loadFrom({ - isConfig: true, - filename: process.env[AWS.util.sharedConfigFileEnv] - }) : {}; - } catch (e) {} - var sharedFileConfig = configFile[ - process.env.AWS_PROFILE || AWS.util.defaultProfile - ] || {}; - if (Object.prototype.hasOwnProperty.call(sharedFileConfig, 'endpoint_discovery_enabled')) { - if (sharedFileConfig.endpoint_discovery_enabled === undefined) { - throw util.error(new Error(), { - code: 'ConfigurationException', - message: 'config file entry \'endpoint_discovery_enabled\' cannot be set to nothing' - }); - } - return !isFalsy(sharedFileConfig.endpoint_discovery_enabled); - } - return undefined; -} + /** + * @api private + */ + XML: { + Builder: __nccwpck_require__(15898), + Parser: null // conditionally set based on environment + }, + + /** + * @api private + */ + JSON: { + Builder: __nccwpck_require__(53669), + Parser: __nccwpck_require__(99427) + }, + + /** + * @api private + */ + Model: { + Api: __nccwpck_require__(34609), + Operation: __nccwpck_require__(67004), + Shape: __nccwpck_require__(16212), + Paginator: __nccwpck_require__(9554), + ResourceWaiter: __nccwpck_require__(99450) + }, + + /** + * @api private + */ + apiLoader: __nccwpck_require__(4217), + + /** + * @api private + */ + EndpointCache: (__nccwpck_require__(1437)/* .EndpointCache */ .k) +}); +__nccwpck_require__(82310); +__nccwpck_require__(48228); +__nccwpck_require__(22261); +__nccwpck_require__(89611); +__nccwpck_require__(34941); +__nccwpck_require__(98134); +__nccwpck_require__(10456); +__nccwpck_require__(49660); +__nccwpck_require__(93475); +__nccwpck_require__(4235); +__nccwpck_require__(24668); /** - * attach endpoint discovery logic to request object - * @param [object] request - * @api private + * @readonly + * @return [AWS.SequentialExecutor] a collection of global event listeners that + * are attached to every sent request. + * @see AWS.Request AWS.Request for a list of events to listen for + * @example Logging the time taken to send a request + * AWS.events.on('send', function startSend(resp) { + * resp.startTime = new Date().getTime(); + * }).on('complete', function calculateTime(resp) { + * var time = (new Date().getTime() - resp.startTime) / 1000; + * console.log('Request took ' + time + ' seconds'); + * }); + * + * new AWS.S3().listBuckets(); // prints 'Request took 0.285 seconds' */ -function discoverEndpoint(request, done) { - var service = request.service || {}; - if (hasCustomEndpoint(service) || request.isPresigned()) return done(); - - var operations = service.api.operations || {}; - var operationModel = operations[request.operation]; - var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL'; - var isEnabled = resolveEndpointDiscoveryConfig(request); - var hasRequiredEndpointDiscovery = service.api.hasRequiredEndpointDiscovery; - if (isEnabled || hasRequiredEndpointDiscovery) { - // Once a customer enables endpoint discovery, the SDK should start appending - // the string endpoint-discovery to the user-agent on all requests. - request.httpRequest.appendToUserAgent('endpoint-discovery'); - } - switch (isEndpointDiscoveryRequired) { - case 'OPTIONAL': - if (isEnabled || hasRequiredEndpointDiscovery) { - // For a given service; if at least one operation requires endpoint discovery then the SDK must enable endpoint discovery - // by default for all operations of that service, including operations where endpoint discovery is optional. - optionalDiscoverEndpoint(request); - request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints); - } - done(); - break; - case 'REQUIRED': - if (isEnabled === false) { - // For a given operation; if endpoint discovery is required and it has been disabled on the SDK client, - // then the SDK must return a clear and actionable exception. - request.response.error = util.error(new Error(), { - code: 'ConfigurationException', - message: 'Endpoint Discovery is disabled but ' + service.api.className + '.' + request.operation + - '() requires it. Please check your configurations.' - }); - done(); - break; - } - request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints); - requiredDiscoverEndpoint(request, done); - break; - case 'NULL': - default: - done(); - break; - } -} +AWS.events = new AWS.SequentialExecutor(); -module.exports = { - discoverEndpoint: discoverEndpoint, - requiredDiscoverEndpoint: requiredDiscoverEndpoint, - optionalDiscoverEndpoint: optionalDiscoverEndpoint, - marshallCustomIdentifiers: marshallCustomIdentifiers, - getCacheKey: getCacheKey, - invalidateCachedEndpoint: invalidateCachedEndpoints, -}; +//create endpoint cache lazily +AWS.util.memoizedProperty(AWS, 'endpointCache', function() { + return new AWS.EndpointCache(AWS.config.endpointCacheSize); +}, true); /***/ }), -/***/ 98394: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 10957: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var util = AWS.util; -var typeOf = (__nccwpck_require__(68415).typeOf); -var DynamoDBSet = __nccwpck_require__(94554); -var NumberValue = __nccwpck_require__(72289); +var AWS = __nccwpck_require__(53832); -AWS.DynamoDB.Converter = { +/** + * Represents your AWS security credentials, specifically the + * {accessKeyId}, {secretAccessKey}, and optional {sessionToken}. + * Creating a `Credentials` object allows you to pass around your + * security information to configuration and service objects. + * + * Note that this class typically does not need to be constructed manually, + * as the {AWS.Config} and {AWS.Service} classes both accept simple + * options hashes with the three keys. These structures will be converted + * into Credentials objects automatically. + * + * ## Expiring and Refreshing Credentials + * + * Occasionally credentials can expire in the middle of a long-running + * application. In this case, the SDK will automatically attempt to + * refresh the credentials from the storage location if the Credentials + * class implements the {refresh} method. + * + * If you are implementing a credential storage location, you + * will want to create a subclass of the `Credentials` class and + * override the {refresh} method. This method allows credentials to be + * retrieved from the backing store, be it a file system, database, or + * some network storage. The method should reset the credential attributes + * on the object. + * + * @!attribute expired + * @return [Boolean] whether the credentials have been expired and + * require a refresh. Used in conjunction with {expireTime}. + * @!attribute expireTime + * @return [Date] a time when credentials should be considered expired. Used + * in conjunction with {expired}. + * @!attribute accessKeyId + * @return [String] the AWS access key ID + * @!attribute secretAccessKey + * @return [String] the AWS secret access key + * @!attribute sessionToken + * @return [String] an optional AWS session token + */ +AWS.Credentials = AWS.util.inherit({ /** - * Convert a JavaScript value to its equivalent DynamoDB AttributeValue type - * - * @param data [any] The data to convert to a DynamoDB AttributeValue - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * @return [map] An object in the Amazon DynamoDB AttributeValue format + * A credentials object can be created using positional arguments or an options + * hash. * - * @see AWS.DynamoDB.Converter.marshall AWS.DynamoDB.Converter.marshall to - * convert entire records (rather than individual attributes) + * @overload AWS.Credentials(accessKeyId, secretAccessKey, sessionToken=null) + * Creates a Credentials object with a given set of credential information + * as positional arguments. + * @param accessKeyId [String] the AWS access key ID + * @param secretAccessKey [String] the AWS secret access key + * @param sessionToken [String] the optional AWS session token + * @example Create a credentials object with AWS credentials + * var creds = new AWS.Credentials('akid', 'secret', 'session'); + * @overload AWS.Credentials(options) + * Creates a Credentials object with a given set of credential information + * as an options hash. + * @option options accessKeyId [String] the AWS access key ID + * @option options secretAccessKey [String] the AWS secret access key + * @option options sessionToken [String] the optional AWS session token + * @example Create a credentials object with AWS credentials + * var creds = new AWS.Credentials({ + * accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'session' + * }); */ - input: function convertInput(data, options) { - options = options || {}; - var type = typeOf(data); - if (type === 'Object') { - return formatMap(data, options); - } else if (type === 'Array') { - return formatList(data, options); - } else if (type === 'Set') { - return formatSet(data, options); - } else if (type === 'String') { - if (data.length === 0 && options.convertEmptyValues) { - return convertInput(null); - } - return { S: data }; - } else if (type === 'Number' || type === 'NumberValue') { - return { N: data.toString() }; - } else if (type === 'Binary') { - if (data.length === 0 && options.convertEmptyValues) { - return convertInput(null); - } - return { B: data }; - } else if (type === 'Boolean') { - return { BOOL: data }; - } else if (type === 'null') { - return { NULL: true }; - } else if (type !== 'undefined' && type !== 'Function') { - // this value has a custom constructor - return formatMap(data, options); + constructor: function Credentials() { + // hide secretAccessKey from being displayed with util.inspect + AWS.util.hideProperties(this, ['secretAccessKey']); + + this.expired = false; + this.expireTime = null; + this.refreshCallbacks = []; + if (arguments.length === 1 && typeof arguments[0] === 'object') { + var creds = arguments[0].credentials || arguments[0]; + this.accessKeyId = creds.accessKeyId; + this.secretAccessKey = creds.secretAccessKey; + this.sessionToken = creds.sessionToken; + } else { + this.accessKeyId = arguments[0]; + this.secretAccessKey = arguments[1]; + this.sessionToken = arguments[2]; } }, /** - * Convert a JavaScript object into a DynamoDB record. - * - * @param data [any] The data to convert to a DynamoDB record - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * - * @return [map] An object in the DynamoDB record format. - * - * @example Convert a JavaScript object into a DynamoDB record - * var marshalled = AWS.DynamoDB.Converter.marshall({ - * string: 'foo', - * list: ['fizz', 'buzz', 'pop'], - * map: { - * nestedMap: { - * key: 'value', - * } - * }, - * number: 123, - * nullValue: null, - * boolValue: true, - * stringSet: new DynamoDBSet(['foo', 'bar', 'baz']) - * }); + * @return [Integer] the number of seconds before {expireTime} during which + * the credentials will be considered expired. */ - marshall: function marshallItem(data, options) { - return AWS.DynamoDB.Converter.input(data, options).M; + expiryWindow: 15, + + /** + * @return [Boolean] whether the credentials object should call {refresh} + * @note Subclasses should override this method to provide custom refresh + * logic. + */ + needsRefresh: function needsRefresh() { + var currentTime = AWS.util.date.getDate().getTime(); + var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); + + if (this.expireTime && adjustedTime > this.expireTime) { + return true; + } else { + return this.expired || !this.accessKeyId || !this.secretAccessKey; + } }, /** - * Convert a DynamoDB AttributeValue object to its equivalent JavaScript type. - * - * @param data [map] An object in the Amazon DynamoDB AttributeValue format - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * - * @return [Object|Array|String|Number|Boolean|null] + * Gets the existing credentials, refreshing them if they are not yet loaded + * or have expired. Users should call this method before using {refresh}, + * as this will not attempt to reload credentials when they are already + * loaded into the object. * - * @see AWS.DynamoDB.Converter.unmarshall AWS.DynamoDB.Converter.unmarshall to - * convert entire records (rather than individual attributes) + * @callback callback function(err) + * When this callback is called with no error, it means either credentials + * do not need to be refreshed or refreshed credentials information has + * been loaded into the object (as the `accessKeyId`, `secretAccessKey`, + * and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled */ - output: function convertOutput(data, options) { - options = options || {}; - var list, map, i; - for (var type in data) { - var values = data[type]; - if (type === 'M') { - map = {}; - for (var key in values) { - map[key] = convertOutput(values[key], options); - } - return map; - } else if (type === 'L') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(convertOutput(values[i], options)); - } - return list; - } else if (type === 'SS') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(values[i] + ''); - } - return new DynamoDBSet(list); - } else if (type === 'NS') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(convertNumber(values[i], options.wrapNumbers)); - } - return new DynamoDBSet(list); - } else if (type === 'BS') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(AWS.util.buffer.toBuffer(values[i])); - } - return new DynamoDBSet(list); - } else if (type === 'S') { - return values + ''; - } else if (type === 'N') { - return convertNumber(values, options.wrapNumbers); - } else if (type === 'B') { - return util.buffer.toBuffer(values); - } else if (type === 'BOOL') { - return (values === 'true' || values === 'TRUE' || values === true); - } else if (type === 'NULL') { - return null; - } + get: function get(callback) { + var self = this; + if (this.needsRefresh()) { + this.refresh(function(err) { + if (!err) self.expired = false; // reset expired flag + if (callback) callback(err); + }); + } else if (callback) { + callback(); } }, /** - * Convert a DynamoDB record into a JavaScript object. - * - * @param data [any] The DynamoDB record - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * - * @return [map] An object whose properties have been converted from - * DynamoDB's AttributeValue format into their corresponding native - * JavaScript types. + * @!method getPromise() + * Returns a 'thenable' promise. + * Gets the existing credentials, refreshing them if they are not yet loaded + * or have expired. Users should call this method before using {refresh}, + * as this will not attempt to reload credentials when they are already + * loaded into the object. * - * @example Convert a record received from a DynamoDB stream - * var unmarshalled = AWS.DynamoDB.Converter.unmarshall({ - * string: {S: 'foo'}, - * list: {L: [{S: 'fizz'}, {S: 'buzz'}, {S: 'pop'}]}, - * map: { - * M: { - * nestedMap: { - * M: { - * key: {S: 'value'} - * } - * } - * } - * }, - * number: {N: '123'}, - * nullValue: {NULL: true}, - * boolValue: {BOOL: true} - * }); + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function() + * Called if the promise is fulfilled. When this callback is called, it + * means either credentials do not need to be refreshed or refreshed + * credentials information has been loaded into the object (as the + * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). + * @callback rejectedCallback function(err) + * Called if the promise is rejected. + * @param err [Error] if an error occurred, this value will be filled + * @return [Promise] A promise that represents the state of the `get` call. + * @example Calling the `getPromise` method. + * var promise = credProvider.getPromise(); + * promise.then(function() { ... }, function(err) { ... }); */ - unmarshall: function unmarshall(data, options) { - return AWS.DynamoDB.Converter.output({M: data}, options); - } -}; - -/** - * @api private - * @param data [Array] - * @param options [map] - */ -function formatList(data, options) { - var list = {L: []}; - for (var i = 0; i < data.length; i++) { - list['L'].push(AWS.DynamoDB.Converter.input(data[i], options)); - } - return list; -} -/** - * @api private - * @param value [String] - * @param wrapNumbers [Boolean] - */ -function convertNumber(value, wrapNumbers) { - return wrapNumbers ? new NumberValue(value) : Number(value); -} + /** + * @!method refreshPromise() + * Returns a 'thenable' promise. + * Refreshes the credentials. Users should call {get} before attempting + * to forcibly refresh credentials. + * + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function() + * Called if the promise is fulfilled. When this callback is called, it + * means refreshed credentials information has been loaded into the object + * (as the `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). + * @callback rejectedCallback function(err) + * Called if the promise is rejected. + * @param err [Error] if an error occurred, this value will be filled + * @return [Promise] A promise that represents the state of the `refresh` call. + * @example Calling the `refreshPromise` method. + * var promise = credProvider.refreshPromise(); + * promise.then(function() { ... }, function(err) { ... }); + */ -/** - * @api private - * @param data [map] - * @param options [map] - */ -function formatMap(data, options) { - var map = {M: {}}; - for (var key in data) { - var formatted = AWS.DynamoDB.Converter.input(data[key], options); - if (formatted !== void 0) { - map['M'][key] = formatted; - } - } - return map; -} + /** + * Refreshes the credentials. Users should call {get} before attempting + * to forcibly refresh credentials. + * + * @callback callback function(err) + * When this callback is called with no error, it means refreshed + * credentials information has been loaded into the object (as the + * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @note Subclasses should override this class to reset the + * {accessKeyId}, {secretAccessKey} and optional {sessionToken} + * on the credentials object and then call the callback with + * any error information. + * @see get + */ + refresh: function refresh(callback) { + this.expired = false; + callback(); + }, -/** - * @api private - */ -function formatSet(data, options) { - options = options || {}; - var values = data.values; - if (options.convertEmptyValues) { - values = filterEmptySetValues(data); - if (values.length === 0) { - return AWS.DynamoDB.Converter.input(null); + /** + * @api private + * @param callback + */ + coalesceRefresh: function coalesceRefresh(callback, sync) { + var self = this; + if (self.refreshCallbacks.push(callback) === 1) { + self.load(function onLoad(err) { + AWS.util.arrayEach(self.refreshCallbacks, function(callback) { + if (sync) { + callback(err); + } else { + // callback could throw, so defer to ensure all callbacks are notified + AWS.util.defer(function () { + callback(err); + }); + } + }); + self.refreshCallbacks.length = 0; + }); } - } + }, - var map = {}; - switch (data.type) { - case 'String': map['SS'] = values; break; - case 'Binary': map['BS'] = values; break; - case 'Number': map['NS'] = values.map(function (value) { - return value.toString(); - }); + /** + * @api private + * @param callback + */ + load: function load(callback) { + callback(); } - return map; -} +}); /** * @api private */ -function filterEmptySetValues(set) { - var nonEmptyValues = []; - var potentiallyEmptyTypes = { - String: true, - Binary: true, - Number: false - }; - if (potentiallyEmptyTypes[set.type]) { - for (var i = 0; i < set.values.length; i++) { - if (set.values[i].length === 0) { - continue; - } - nonEmptyValues.push(set.values[i]); - } - - return nonEmptyValues; - } - - return set.values; -} +AWS.Credentials.addPromisesToClass = function addPromisesToClass(PromiseDependency) { + this.prototype.getPromise = AWS.util.promisifyMethod('get', PromiseDependency); + this.prototype.refreshPromise = AWS.util.promisifyMethod('refresh', PromiseDependency); +}; /** * @api private */ -module.exports = AWS.DynamoDB.Converter; +AWS.Credentials.deletePromisesFromClass = function deletePromisesFromClass() { + delete this.prototype.getPromise; + delete this.prototype.refreshPromise; +}; + +AWS.util.addPromises(AWS.Credentials); /***/ }), -/***/ 83098: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 18586: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var Translator = __nccwpck_require__(35162); -var DynamoDBSet = __nccwpck_require__(94554); +var AWS = __nccwpck_require__(53832); +var STS = __nccwpck_require__(72904); /** - * The document client simplifies working with items in Amazon DynamoDB - * by abstracting away the notion of attribute values. This abstraction - * annotates native JavaScript types supplied as input parameters, as well - * as converts annotated response data to native JavaScript types. + * Represents temporary credentials retrieved from {AWS.STS}. Without any + * extra parameters, credentials will be fetched from the + * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the + * {AWS.STS.assumeRole} operation will be used to fetch credentials for the + * role instead. * - * ## Marshalling Input and Unmarshalling Response Data + * AWS.ChainableTemporaryCredentials differs from AWS.TemporaryCredentials in + * the way masterCredentials and refreshes are handled. + * AWS.ChainableTemporaryCredentials refreshes expired credentials using the + * masterCredentials passed by the user to support chaining of STS credentials. + * However, AWS.TemporaryCredentials recursively collapses the masterCredentials + * during instantiation, precluding the ability to refresh credentials which + * require intermediate, temporary credentials. * - * The document client affords developers the use of native JavaScript types - * instead of `AttributeValue`s to simplify the JavaScript development - * experience with Amazon DynamoDB. JavaScript objects passed in as parameters - * are marshalled into `AttributeValue` shapes required by Amazon DynamoDB. - * Responses from DynamoDB are unmarshalled into plain JavaScript objects - * by the `DocumentClient`. The `DocumentClient`, does not accept - * `AttributeValue`s in favor of native JavaScript types. + * For example, if the application should use RoleA, which must be assumed from + * RoleB, and the environment provides credentials which can assume RoleB, then + * AWS.ChainableTemporaryCredentials must be used to support refreshing the + * temporary credentials for RoleA: * - * | JavaScript Type | DynamoDB AttributeValue | - * |:----------------------------------------------------------------------:|-------------------------| - * | String | S | - * | Number | N | - * | Boolean | BOOL | - * | null | NULL | - * | Array | L | - * | Object | M | - * | Buffer, File, Blob, ArrayBuffer, DataView, and JavaScript typed arrays | B | + * ```javascript + * var roleACreds = new AWS.ChainableTemporaryCredentials({ + * params: {RoleArn: 'RoleA'}, + * masterCredentials: new AWS.ChainableTemporaryCredentials({ + * params: {RoleArn: 'RoleB'}, + * masterCredentials: new AWS.EnvironmentCredentials('AWS') + * }) + * }); + * ``` * - * ## Support for Sets + * If AWS.TemporaryCredentials had been used in the previous example, + * `roleACreds` would fail to refresh because `roleACreds` would + * use the environment credentials for the AssumeRole request. * - * The `DocumentClient` offers a convenient way to create sets from - * JavaScript Arrays. The type of set is inferred from the first element - * in the array. DynamoDB supports string, number, and binary sets. To - * learn more about supported types see the - * [Amazon DynamoDB Data Model Documentation](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html) - * For more information see {AWS.DynamoDB.DocumentClient.createSet} + * Another difference is that AWS.ChainableTemporaryCredentials creates the STS + * service instance during instantiation while AWS.TemporaryCredentials creates + * the STS service instance during the first refresh. Creating the service + * instance during instantiation effectively captures the master credentials + * from the global config, so that subsequent changes to the global config do + * not affect the master credentials used to refresh the temporary credentials. + * + * This allows an instance of AWS.ChainableTemporaryCredentials to be assigned + * to AWS.config.credentials: + * + * ```javascript + * var envCreds = new AWS.EnvironmentCredentials('AWS'); + * AWS.config.credentials = envCreds; + * // masterCredentials will be envCreds + * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({ + * params: {RoleArn: '...'} + * }); + * ``` + * + * Similarly, to use the CredentialProviderChain's default providers as the + * master credentials, simply create a new instance of + * AWS.ChainableTemporaryCredentials: + * + * ```javascript + * AWS.config.credentials = new ChainableTemporaryCredentials({ + * params: {RoleArn: '...'} + * }); + * ``` * + * @!attribute service + * @return [AWS.STS] the STS service instance used to + * get and refresh temporary credentials from AWS STS. + * @note (see constructor) */ -AWS.DynamoDB.DocumentClient = AWS.util.inherit({ - +AWS.ChainableTemporaryCredentials = AWS.util.inherit(AWS.Credentials, { /** - * Creates a DynamoDB document client with a set of configuration options. - * - * @option options params [map] An optional map of parameters to bind to every - * request sent by this service object. - * @option options service [AWS.DynamoDB] An optional pre-configured instance - * of the AWS.DynamoDB service object. This instance's config will be - * copied to a new instance used by this client. You should not need to - * retain a reference to the input object, and may destroy it or allow it - * to be garbage collected. - * @option options convertEmptyValues [Boolean] set to true if you would like - * the document client to convert empty values (0-length strings, binary - * buffers, and sets) to be converted to NULL types when persisting to - * DynamoDB. - * @option options wrapNumbers [Boolean] Set to true to return numbers as a - * NumberValue object instead of converting them to native JavaScript numbers. - * This allows for the safe round-trip transport of numbers of arbitrary size. - * @see AWS.DynamoDB.constructor + * Creates a new temporary credentials object. * + * @param options [map] a set of options + * @option options params [map] ({}) a map of options that are passed to the + * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations. + * If a `RoleArn` parameter is passed in, credentials will be based on the + * IAM role. If a `SerialNumber` parameter is passed in, {tokenCodeFn} must + * also be passed in or an error will be thrown. + * @option options masterCredentials [AWS.Credentials] the master credentials + * used to get and refresh temporary credentials from AWS STS. By default, + * AWS.config.credentials or AWS.config.credentialProvider will be used. + * @option options tokenCodeFn [Function] (null) Function to provide + * `TokenCode`, if `SerialNumber` is provided for profile in {params}. Function + * is called with value of `SerialNumber` and `callback`, and should provide + * the `TokenCode` or an error to the callback in the format + * `callback(err, token)`. + * @example Creating a new credentials object for generic temporary credentials + * AWS.config.credentials = new AWS.ChainableTemporaryCredentials(); + * @example Creating a new credentials object for an IAM role + * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({ + * params: { + * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials' + * } + * }); + * @see AWS.STS.assumeRole + * @see AWS.STS.getSessionToken */ - constructor: function DocumentClient(options) { - var self = this; - self.options = options || {}; - self.configure(self.options); + constructor: function ChainableTemporaryCredentials(options) { + AWS.Credentials.call(this); + options = options || {}; + this.errorCode = 'ChainableTemporaryCredentialsProviderFailure'; + this.expired = true; + this.tokenCodeFn = null; + + var params = AWS.util.copy(options.params) || {}; + if (params.RoleArn) { + params.RoleSessionName = params.RoleSessionName || 'temporary-credentials'; + } + if (params.SerialNumber) { + if (!options.tokenCodeFn || (typeof options.tokenCodeFn !== 'function')) { + throw new AWS.util.error( + new Error('tokenCodeFn must be a function when params.SerialNumber is given'), + {code: this.errorCode} + ); + } else { + this.tokenCodeFn = options.tokenCodeFn; + } + } + var config = AWS.util.merge( + { + params: params, + credentials: options.masterCredentials || AWS.config.credentials + }, + options.stsConfig || {} + ); + this.service = new STS(config); }, /** - * @api private + * Refreshes credentials using {AWS.STS.assumeRole} or + * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed + * to the credentials {constructor}. + * + * @callback callback function(err) + * Called when the STS service responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see AWS.Credentials.get */ - configure: function configure(options) { - var self = this; - self.service = options.service; - self.bindServiceObject(options); - self.attrValue = options.attrValue = - self.service.api.operations.putItem.input.members.Item.value.shape; + refresh: function refresh(callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); }, /** * @api private + * @param callback */ - bindServiceObject: function bindServiceObject(options) { + load: function load(callback) { var self = this; - options = options || {}; - - if (!self.service) { - self.service = new AWS.DynamoDB(options); - } else { - var config = AWS.util.copy(self.service.config); - self.service = new self.service.constructor.__super__(config); - self.service.config.params = - AWS.util.merge(self.service.config.params || {}, options.params); - } + var operation = self.service.config.params.RoleArn ? 'assumeRole' : 'getSessionToken'; + this.getTokenCode(function (err, tokenCode) { + var params = {}; + if (err) { + callback(err); + return; + } + if (tokenCode) { + params.TokenCode = tokenCode; + } + self.service[operation](params, function (err, data) { + if (!err) { + self.service.credentialsFrom(data, self); + } + callback(err); + }); + }); }, /** * @api private */ - makeServiceRequest: function(operation, params, callback) { + getTokenCode: function getTokenCode(callback) { var self = this; - var request = self.service[operation](params); - self.setupRequest(request); - self.setupResponse(request); - if (typeof callback === 'function') { - request.send(callback); + if (this.tokenCodeFn) { + this.tokenCodeFn(this.service.config.params.SerialNumber, function (err, token) { + if (err) { + var message = err; + if (err instanceof Error) { + message = err.message; + } + callback( + AWS.util.error( + new Error('Error fetching MFA token: ' + message), + { code: self.errorCode} + ) + ); + return; + } + callback(null, token); + }); + } else { + callback(null); } - return request; - }, + } +}); - /** - * @api private - */ - serviceClientOperationsMap: { - batchGet: 'batchGetItem', - batchWrite: 'batchWriteItem', - delete: 'deleteItem', - get: 'getItem', - put: 'putItem', - query: 'query', - scan: 'scan', - update: 'updateItem', - transactGet: 'transactGetItems', - transactWrite: 'transactWriteItems' - }, - /** - * Returns the attributes of one or more items from one or more tables - * by delegating to `AWS.DynamoDB.batchGetItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.batchGetItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.batchGetItem - * @example Get items from multiple tables - * var params = { - * RequestItems: { - * 'Table-1': { - * Keys: [ - * { - * HashKey: 'haskey', - * NumberRangeKey: 1 - * } - * ] - * }, - * 'Table-2': { - * Keys: [ - * { foo: 'bar' }, - * ] - * } - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.batchGet(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - batchGet: function(params, callback) { - var operation = this.serviceClientOperationsMap['batchGet']; - return this.makeServiceRequest(operation, params, callback); - }, +/***/ }), + +/***/ 331: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); +var CognitoIdentity = __nccwpck_require__(60533); +var STS = __nccwpck_require__(72904); +/** + * Represents credentials retrieved from STS Web Identity Federation using + * the Amazon Cognito Identity service. + * + * By default this provider gets credentials using the + * {AWS.CognitoIdentity.getCredentialsForIdentity} service operation, which + * requires either an `IdentityId` or an `IdentityPoolId` (Amazon Cognito + * Identity Pool ID), which is used to call {AWS.CognitoIdentity.getId} to + * obtain an `IdentityId`. If the identity or identity pool is not configured in + * the Amazon Cognito Console to use IAM roles with the appropriate permissions, + * then additionally a `RoleArn` is required containing the ARN of the IAM trust + * policy for the Amazon Cognito role that the user will log into. If a `RoleArn` + * is provided, then this provider gets credentials using the + * {AWS.STS.assumeRoleWithWebIdentity} service operation, after first getting an + * Open ID token from {AWS.CognitoIdentity.getOpenIdToken}. + * + * In addition, if this credential provider is used to provide authenticated + * login, the `Logins` map may be set to the tokens provided by the respective + * identity providers. See {constructor} for an example on creating a credentials + * object with proper property values. + * + * DISCLAIMER: This convenience method leverages the Enhanced (simplified) Authflow. The underlying + * implementation calls Cognito's `getId()` and `GetCredentialsForIdentity()`. + * In this flow there is no way to explicitly set a session policy, resulting in + * STS attaching the default policy and limiting the permissions of the federated role. + * To be able to explicitly set a session policy, do not use this convenience method. + * Instead, you can use the Cognito client to call `getId()`, `GetOpenIdToken()` and then use + * that token with your desired session policy to call STS's `AssumeRoleWithWebIdentity()` + * For further reading refer to: https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html + * + * ## Refreshing Credentials from Identity Service + * + * In addition to AWS credentials expiring after a given amount of time, the + * login token from the identity provider will also expire. Once this token + * expires, it will not be usable to refresh AWS credentials, and another + * token will be needed. The SDK does not manage refreshing of the token value, + * but this can be done through a "refresh token" supported by most identity + * providers. Consult the documentation for the identity provider for refreshing + * tokens. Once the refreshed token is acquired, you should make sure to update + * this new token in the credentials object's {params} property. The following + * code will update the WebIdentityToken, assuming you have retrieved an updated + * token from the identity provider: + * + * ```javascript + * AWS.config.credentials.params.Logins['graph.facebook.com'] = updatedToken; + * ``` + * + * Future calls to `credentials.refresh()` will now use the new token. + * + * @!attribute params + * @return [map] the map of params passed to + * {AWS.CognitoIdentity.getId}, + * {AWS.CognitoIdentity.getOpenIdToken}, and + * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the + * `params.WebIdentityToken` property. + * @!attribute data + * @return [map] the raw data response from the call to + * {AWS.CognitoIdentity.getCredentialsForIdentity}, or + * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get + * access to other properties from the response. + * @!attribute identityId + * @return [String] the Cognito ID returned by the last call to + * {AWS.CognitoIdentity.getOpenIdToken}. This ID represents the actual + * final resolved identity ID from Amazon Cognito. + */ +AWS.CognitoIdentityCredentials = AWS.util.inherit(AWS.Credentials, { /** - * Puts or deletes multiple items in one or more tables by delegating - * to `AWS.DynamoDB.batchWriteItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.batchWriteItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.batchWriteItem - * @example Write to and delete from a table - * var params = { - * RequestItems: { - * 'Table-1': [ - * { - * DeleteRequest: { - * Key: { HashKey: 'someKey' } - * } - * }, - * { - * PutRequest: { - * Item: { - * HashKey: 'anotherKey', - * NumAttribute: 1, - * BoolAttribute: true, - * ListAttribute: [1, 'two', false], - * MapAttribute: { foo: 'bar' } - * } - * } - * } - * ] - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.batchWrite(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * + * @api private */ - batchWrite: function(params, callback) { - var operation = this.serviceClientOperationsMap['batchWrite']; - return this.makeServiceRequest(operation, params, callback); + localStorageKey: { + id: 'aws.cognito.identity-id.', + providers: 'aws.cognito.identity-providers.' }, /** - * Deletes a single item in a table by primary key by delegating to - * `AWS.DynamoDB.deleteItem()` - * - * Supply the same parameters as {AWS.DynamoDB.deleteItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.deleteItem - * @example Delete an item from a table - * var params = { - * TableName : 'Table', - * Key: { - * HashKey: 'hashkey', - * NumberRangeKey: 1 - * } - * }; + * Creates a new credentials object. + * @example Creating a new credentials object + * AWS.config.credentials = new AWS.CognitoIdentityCredentials({ * - * var documentClient = new AWS.DynamoDB.DocumentClient(); + * // either IdentityPoolId or IdentityId is required + * // See the IdentityPoolId param for AWS.CognitoIdentity.getID (linked below) + * // See the IdentityId param for AWS.CognitoIdentity.getCredentialsForIdentity + * // or AWS.CognitoIdentity.getOpenIdToken (linked below) + * IdentityPoolId: 'us-east-1:1699ebc0-7900-4099-b910-2df94f52a030', + * IdentityId: 'us-east-1:128d0a74-c82f-4553-916d-90053e4a8b0f' * - * documentClient.delete(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); + * // optional, only necessary when the identity pool is not configured + * // to use IAM roles in the Amazon Cognito Console + * // See the RoleArn param for AWS.STS.assumeRoleWithWebIdentity (linked below) + * RoleArn: 'arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity', * - */ - delete: function(params, callback) { - var operation = this.serviceClientOperationsMap['delete']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Returns a set of attributes for the item with the given primary key - * by delegating to `AWS.DynamoDB.getItem()`. + * // optional tokens, used for authenticated login + * // See the Logins param for AWS.CognitoIdentity.getID (linked below) + * Logins: { + * 'graph.facebook.com': 'FBTOKEN', + * 'www.amazon.com': 'AMAZONTOKEN', + * 'accounts.google.com': 'GOOGLETOKEN', + * 'api.twitter.com': 'TWITTERTOKEN', + * 'www.digits.com': 'DIGITSTOKEN' + * }, * - * Supply the same parameters as {AWS.DynamoDB.getItem} with - * `AttributeValue`s substituted by native JavaScript types. + * // optional name, defaults to web-identity + * // See the RoleSessionName param for AWS.STS.assumeRoleWithWebIdentity (linked below) + * RoleSessionName: 'web', * - * @see AWS.DynamoDB.getItem - * @example Get an item from a table - * var params = { - * TableName : 'Table', - * Key: { - * HashKey: 'hashkey' - * } - * }; + * // optional, only necessary when application runs in a browser + * // and multiple users are signed in at once, used for caching + * LoginId: 'example@gmail.com' * - * var documentClient = new AWS.DynamoDB.DocumentClient(); + * }, { + * // optionally provide configuration to apply to the underlying service clients + * // if configuration is not provided, then configuration will be pulled from AWS.config * - * documentClient.get(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); + * // region should match the region your identity pool is located in + * region: 'us-east-1', * + * // specify timeout options + * httpOptions: { + * timeout: 100 + * } + * }); + * @see AWS.CognitoIdentity.getId + * @see AWS.CognitoIdentity.getCredentialsForIdentity + * @see AWS.STS.assumeRoleWithWebIdentity + * @see AWS.CognitoIdentity.getOpenIdToken + * @see AWS.Config + * @note If a region is not provided in the global AWS.config, or + * specified in the `clientConfig` to the CognitoIdentityCredentials + * constructor, you may encounter a 'Missing credentials in config' error + * when calling making a service call. */ - get: function(params, callback) { - var operation = this.serviceClientOperationsMap['get']; - return this.makeServiceRequest(operation, params, callback); + constructor: function CognitoIdentityCredentials(params, clientConfig) { + AWS.Credentials.call(this); + this.expired = true; + this.params = params; + this.data = null; + this._identityId = null; + this._clientConfig = AWS.util.copy(clientConfig || {}); + this.loadCachedId(); + var self = this; + Object.defineProperty(this, 'identityId', { + get: function() { + self.loadCachedId(); + return self._identityId || self.params.IdentityId; + }, + set: function(identityId) { + self._identityId = identityId; + } + }); }, /** - * Creates a new item, or replaces an old item with a new item by - * delegating to `AWS.DynamoDB.putItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.putItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.putItem - * @example Create a new item in a table - * var params = { - * TableName : 'Table', - * Item: { - * HashKey: 'haskey', - * NumAttribute: 1, - * BoolAttribute: true, - * ListAttribute: [1, 'two', false], - * MapAttribute: { foo: 'bar'}, - * NullAttribute: null - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.put(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); + * Refreshes credentials using {AWS.CognitoIdentity.getCredentialsForIdentity}, + * or {AWS.STS.assumeRoleWithWebIdentity}. * + * @callback callback function(err) + * Called when the STS service responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see AWS.Credentials.get */ - put: function(params, callback) { - var operation = this.serviceClientOperationsMap['put']; - return this.makeServiceRequest(operation, params, callback); + refresh: function refresh(callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); }, /** - * Edits an existing item's attributes, or adds a new item to the table if - * it does not already exist by delegating to `AWS.DynamoDB.updateItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.updateItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.updateItem - * @example Update an item with expressions - * var params = { - * TableName: 'Table', - * Key: { HashKey : 'hashkey' }, - * UpdateExpression: 'set #a = :x + :y', - * ConditionExpression: '#a < :MAX', - * ExpressionAttributeNames: {'#a' : 'Sum'}, - * ExpressionAttributeValues: { - * ':x' : 20, - * ':y' : 45, - * ':MAX' : 100, - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.update(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * + * @api private + * @param callback */ - update: function(params, callback) { - var operation = this.serviceClientOperationsMap['update']; - return this.makeServiceRequest(operation, params, callback); + load: function load(callback) { + var self = this; + self.createClients(); + self.data = null; + self._identityId = null; + self.getId(function(err) { + if (!err) { + if (!self.params.RoleArn) { + self.getCredentialsForIdentity(callback); + } else { + self.getCredentialsFromSTS(callback); + } + } else { + self.clearIdOnNotAuthorized(err); + callback(err); + } + }); }, /** - * Returns one or more items and item attributes by accessing every item - * in a table or a secondary index. - * - * Supply the same parameters as {AWS.DynamoDB.scan} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.scan - * @example Scan the table with a filter expression - * var params = { - * TableName : 'Table', - * FilterExpression : 'Year = :this_year', - * ExpressionAttributeValues : {':this_year' : 2015} - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.scan(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * + * Clears the cached Cognito ID associated with the currently configured + * identity pool ID. Use this to manually invalidate your cache if + * the identity pool ID was deleted. */ - scan: function(params, callback) { - var operation = this.serviceClientOperationsMap['scan']; - return this.makeServiceRequest(operation, params, callback); - }, + clearCachedId: function clearCache() { + this._identityId = null; + delete this.params.IdentityId; - /** - * Directly access items from a table by primary key or a secondary index. - * - * Supply the same parameters as {AWS.DynamoDB.query} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.query - * @example Query an index - * var params = { - * TableName: 'Table', - * IndexName: 'Index', - * KeyConditionExpression: 'HashKey = :hkey and RangeKey > :rkey', - * ExpressionAttributeValues: { - * ':hkey': 'key', - * ':rkey': 2015 - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.query(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - query: function(params, callback) { - var operation = this.serviceClientOperationsMap['query']; - return this.makeServiceRequest(operation, params, callback); + var poolId = this.params.IdentityPoolId; + var loginId = this.params.LoginId || ''; + delete this.storage[this.localStorageKey.id + poolId + loginId]; + delete this.storage[this.localStorageKey.providers + poolId + loginId]; }, /** - * Synchronous write operation that groups up to 25 action requests. - * - * Supply the same parameters as {AWS.DynamoDB.transactWriteItems} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.transactWriteItems - * @example Get items from multiple tables - * var params = { - * TransactItems: [{ - * Put: { - * TableName : 'Table0', - * Item: { - * HashKey: 'haskey', - * NumAttribute: 1, - * BoolAttribute: true, - * ListAttribute: [1, 'two', false], - * MapAttribute: { foo: 'bar'}, - * NullAttribute: null - * } - * } - * }, { - * Update: { - * TableName: 'Table1', - * Key: { HashKey : 'hashkey' }, - * UpdateExpression: 'set #a = :x + :y', - * ConditionExpression: '#a < :MAX', - * ExpressionAttributeNames: {'#a' : 'Sum'}, - * ExpressionAttributeValues: { - * ':x' : 20, - * ':y' : 45, - * ':MAX' : 100, - * } - * } - * }] - * }; - * - * documentClient.transactWrite(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); + * @api private */ - transactWrite: function(params, callback) { - var operation = this.serviceClientOperationsMap['transactWrite']; - return this.makeServiceRequest(operation, params, callback); + clearIdOnNotAuthorized: function clearIdOnNotAuthorized(err) { + var self = this; + if (err.code == 'NotAuthorizedException') { + self.clearCachedId(); + } }, /** - * Atomically retrieves multiple items from one or more tables (but not from indexes) - * in a single account and region. - * - * Supply the same parameters as {AWS.DynamoDB.transactGetItems} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.transactGetItems - * @example Get items from multiple tables - * var params = { - * TransactItems: [{ - * Get: { - * TableName : 'Table0', - * Key: { - * HashKey: 'hashkey0' - * } - * } - * }, { - * Get: { - * TableName : 'Table1', - * Key: { - * HashKey: 'hashkey1' - * } - * } - * }] - * }; + * Retrieves a Cognito ID, loading from cache if it was already retrieved + * on this device. * - * documentClient.transactGet(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); + * @callback callback function(err, identityId) + * @param err [Error, null] an error object if the call failed or null if + * it succeeded. + * @param identityId [String, null] if successful, the callback will return + * the Cognito ID. + * @note If not loaded explicitly, the Cognito ID is loaded and stored in + * localStorage in the browser environment of a device. + * @api private */ - transactGet: function(params, callback) { - var operation = this.serviceClientOperationsMap['transactGet']; - return this.makeServiceRequest(operation, params, callback); - }, + getId: function getId(callback) { + var self = this; + if (typeof self.params.IdentityId === 'string') { + return callback(null, self.params.IdentityId); + } - /** - * Creates a set of elements inferring the type of set from - * the type of the first element. Amazon DynamoDB currently supports - * the number sets, string sets, and binary sets. For more information - * about DynamoDB data types see the documentation on the - * [Amazon DynamoDB Data Model](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModel.DataTypes). - * - * @param list [Array] Collection to represent your DynamoDB Set - * @param options [map] - * * **validate** [Boolean] set to true if you want to validate the type - * of each element in the set. Defaults to `false`. - * @example Creating a number set - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * var params = { - * Item: { - * hashkey: 'hashkey' - * numbers: documentClient.createSet([1, 2, 3]); - * } - * }; - * - * documentClient.put(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - createSet: function(list, options) { - options = options || {}; - return new DynamoDBSet(list, options); + self.cognito.getId(function(err, data) { + if (!err && data.IdentityId) { + self.params.IdentityId = data.IdentityId; + callback(null, data.IdentityId); + } else { + callback(err); + } + }); }, + /** * @api private */ - getTranslator: function() { - return new Translator(this.options); + loadCredentials: function loadCredentials(data, credentials) { + if (!data || !credentials) return; + credentials.expired = false; + credentials.accessKeyId = data.Credentials.AccessKeyId; + credentials.secretAccessKey = data.Credentials.SecretKey; + credentials.sessionToken = data.Credentials.SessionToken; + credentials.expireTime = data.Credentials.Expiration; }, /** * @api private */ - setupRequest: function setupRequest(request) { + getCredentialsForIdentity: function getCredentialsForIdentity(callback) { var self = this; - var translator = self.getTranslator(); - var operation = request.operation; - var inputShape = request.service.api.operations[operation].input; - request._events.validate.unshift(function(req) { - req.rawParams = AWS.util.copy(req.params); - req.params = translator.translateInput(req.rawParams, inputShape); + self.cognito.getCredentialsForIdentity(function(err, data) { + if (!err) { + self.cacheId(data); + self.data = data; + self.loadCredentials(self.data, self); + } else { + self.clearIdOnNotAuthorized(err); + } + callback(err); }); }, /** * @api private */ - setupResponse: function setupResponse(request) { + getCredentialsFromSTS: function getCredentialsFromSTS(callback) { var self = this; - var translator = self.getTranslator(); - var outputShape = self.service.api.operations[request.operation].output; - request.on('extractData', function(response) { - response.data = translator.translateOutput(response.data, outputShape); + self.cognito.getOpenIdToken(function(err, data) { + if (!err) { + self.cacheId(data); + self.params.WebIdentityToken = data.Token; + self.webIdentityCredentials.refresh(function(webErr) { + if (!webErr) { + self.data = self.webIdentityCredentials.data; + self.sts.credentialsFrom(self.data, self); + } + callback(webErr); + }); + } else { + self.clearIdOnNotAuthorized(err); + callback(err); + } }); + }, - var response = request.response; - response.nextPage = function(cb) { - var resp = this; - var req = resp.request; - var config; - var service = req.service; - var operation = req.operation; - try { - config = service.paginationConfig(operation, true); - } catch (e) { resp.error = e; } + /** + * @api private + */ + loadCachedId: function loadCachedId() { + var self = this; - if (!resp.hasNextPage()) { - if (cb) cb(resp.error, null); - else if (resp.error) throw resp.error; - return null; - } + // in the browser we source default IdentityId from localStorage + if (AWS.util.isBrowser() && !self.params.IdentityId) { + var id = self.getStorage('id'); + if (id && self.params.Logins) { + var actualProviders = Object.keys(self.params.Logins); + var cachedProviders = + (self.getStorage('providers') || '').split(','); - var params = AWS.util.copy(req.rawParams); - if (!resp.nextPageTokens) { - return cb ? cb(null, null) : null; - } else { - var inputTokens = config.inputToken; - if (typeof inputTokens === 'string') inputTokens = [inputTokens]; - for (var i = 0; i < inputTokens.length; i++) { - params[inputTokens[i]] = resp.nextPageTokens[i]; + // only load ID if at least one provider used this ID before + var intersect = cachedProviders.filter(function(n) { + return actualProviders.indexOf(n) !== -1; + }); + if (intersect.length !== 0) { + self.params.IdentityId = id; } - return self[operation](params, cb); + } else if (id) { + self.params.IdentityId = id; } - }; - } + } + }, -}); + /** + * @api private + */ + createClients: function() { + var clientConfig = this._clientConfig; + this.webIdentityCredentials = this.webIdentityCredentials || + new AWS.WebIdentityCredentials(this.params, clientConfig); + if (!this.cognito) { + var cognitoConfig = AWS.util.merge({}, clientConfig); + cognitoConfig.params = this.params; + this.cognito = new CognitoIdentity(cognitoConfig); + } + this.sts = this.sts || new STS(clientConfig); + }, -/** - * @api private - */ -module.exports = AWS.DynamoDB.DocumentClient; + /** + * @api private + */ + cacheId: function cacheId(data) { + this._identityId = data.IdentityId; + this.params.IdentityId = this._identityId; + + // cache this IdentityId in browser localStorage if possible + if (AWS.util.isBrowser()) { + this.setStorage('id', data.IdentityId); + + if (this.params.Logins) { + this.setStorage('providers', Object.keys(this.params.Logins).join(',')); + } + } + }, + + /** + * @api private + */ + getStorage: function getStorage(key) { + return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')]; + }, + + /** + * @api private + */ + setStorage: function setStorage(key, val) { + try { + this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')] = val; + } catch (_) {} + }, + + /** + * @api private + */ + storage: (function() { + try { + var storage = AWS.util.isBrowser() && window.localStorage !== null && typeof window.localStorage === 'object' ? + window.localStorage : {}; + + // Test set/remove which would throw an error in Safari's private browsing + storage['aws.test-storage'] = 'foobar'; + delete storage['aws.test-storage']; + + return storage; + } catch (_) { + return {}; + } + })() +}); /***/ }), -/***/ 72289: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 91563: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var util = (__nccwpck_require__(14741).util); +var AWS = __nccwpck_require__(53832); /** - * An object recognizable as a numeric value that stores the underlying number - * as a string. + * Creates a credential provider chain that searches for AWS credentials + * in a list of credential providers specified by the {providers} property. * - * Intended to be a deserialization target for the DynamoDB Document Client when - * the `wrapNumbers` flag is set. This allows for numeric values that lose - * precision when converted to JavaScript's `number` type. + * By default, the chain will use the {defaultProviders} to resolve credentials. + * These providers will look in the environment using the + * {AWS.EnvironmentCredentials} class with the 'AWS' and 'AMAZON' prefixes. + * + * ## Setting Providers + * + * Each provider in the {providers} list should be a function that returns + * a {AWS.Credentials} object, or a hardcoded credentials object. The function + * form allows for delayed execution of the credential construction. + * + * ## Resolving Credentials from a Chain + * + * Call {resolve} to return the first valid credential object that can be + * loaded by the provider chain. + * + * For example, to resolve a chain with a custom provider that checks a file + * on disk after the set of {defaultProviders}: + * + * ```javascript + * var diskProvider = new AWS.FileSystemCredentials('./creds.json'); + * var chain = new AWS.CredentialProviderChain(); + * chain.providers.push(diskProvider); + * chain.resolve(); + * ``` + * + * The above code will return the `diskProvider` object if the + * file contains credentials and the `defaultProviders` do not contain + * any credential settings. + * + * @!attribute providers + * @return [Array] + * a list of credentials objects or functions that return credentials + * objects. If the provider is a function, the function will be + * executed lazily when the provider needs to be checked for valid + * credentials. By default, this object will be set to the + * {defaultProviders}. + * @see defaultProviders */ -var DynamoDBNumberValue = util.inherit({ - constructor: function NumberValue(value) { - this.wrapperName = 'NumberValue'; - this.value = value.toString(); - }, +AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, { /** - * Render the underlying value as a number when converting to JSON. + * Creates a new CredentialProviderChain with a default set of providers + * specified by {defaultProviders}. */ - toJSON: function () { - return this.toNumber(); + constructor: function CredentialProviderChain(providers) { + if (providers) { + this.providers = providers; + } else { + this.providers = AWS.CredentialProviderChain.defaultProviders.slice(0); + } + this.resolveCallbacks = []; }, /** - * Convert the underlying value to a JavaScript number. + * @!method resolvePromise() + * Returns a 'thenable' promise. + * Resolves the provider chain by searching for the first set of + * credentials in {providers}. + * + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function(credentials) + * Called if the promise is fulfilled and the provider resolves the chain + * to a credentials object + * @param credentials [AWS.Credentials] the credentials object resolved + * by the provider chain. + * @callback rejectedCallback function(error) + * Called if the promise is rejected. + * @param err [Error] the error object returned if no credentials are found. + * @return [Promise] A promise that represents the state of the `resolve` method call. + * @example Calling the `resolvePromise` method. + * var promise = chain.resolvePromise(); + * promise.then(function(credentials) { ... }, function(err) { ... }); */ - toNumber: function () { - return Number(this.value); - }, /** - * Return a string representing the unaltered value provided to the - * constructor. + * Resolves the provider chain by searching for the first set of + * credentials in {providers}. + * + * @callback callback function(err, credentials) + * Called when the provider resolves the chain to a credentials object + * or null if no credentials can be found. + * + * @param err [Error] the error object returned if no credentials are + * found. + * @param credentials [AWS.Credentials] the credentials object resolved + * by the provider chain. + * @return [AWS.CredentialProviderChain] the provider, for chaining. */ - toString: function () { - return this.value; + resolve: function resolve(callback) { + var self = this; + if (self.providers.length === 0) { + callback(new Error('No providers')); + return self; + } + + if (self.resolveCallbacks.push(callback) === 1) { + var index = 0; + var providers = self.providers.slice(0); + + function resolveNext(err, creds) { + if ((!err && creds) || index === providers.length) { + AWS.util.arrayEach(self.resolveCallbacks, function (callback) { + callback(err, creds); + }); + self.resolveCallbacks.length = 0; + return; + } + + var provider = providers[index++]; + if (typeof provider === 'function') { + creds = provider.call(); + } else { + creds = provider; + } + + if (creds.get) { + creds.get(function (getErr) { + resolveNext(getErr, getErr ? null : creds); + }); + } else { + resolveNext(null, creds); + } + } + + resolveNext(); + } + + return self; } }); +/** + * The default set of providers used by a vanilla CredentialProviderChain. + * + * In the browser: + * + * ```javascript + * AWS.CredentialProviderChain.defaultProviders = [] + * ``` + * + * In Node.js: + * + * ```javascript + * AWS.CredentialProviderChain.defaultProviders = [ + * function () { return new AWS.EnvironmentCredentials('AWS'); }, + * function () { return new AWS.EnvironmentCredentials('AMAZON'); }, + * function () { return new AWS.SsoCredentials(); }, + * function () { return new AWS.SharedIniFileCredentials(); }, + * function () { return new AWS.ECSCredentials(); }, + * function () { return new AWS.ProcessCredentials(); }, + * function () { return new AWS.TokenFileWebIdentityCredentials(); }, + * function () { return new AWS.EC2MetadataCredentials() } + * ] + * ``` + */ +AWS.CredentialProviderChain.defaultProviders = []; + /** * @api private */ -module.exports = DynamoDBNumberValue; +AWS.CredentialProviderChain.addPromisesToClass = function addPromisesToClass(PromiseDependency) { + this.prototype.resolvePromise = AWS.util.promisifyMethod('resolve', PromiseDependency); +}; + +/** + * @api private + */ +AWS.CredentialProviderChain.deletePromisesFromClass = function deletePromisesFromClass() { + delete this.prototype.resolvePromise; +}; + +AWS.util.addPromises(AWS.CredentialProviderChain); /***/ }), -/***/ 94554: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 21991: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var util = (__nccwpck_require__(14741).util); -var typeOf = (__nccwpck_require__(68415).typeOf); +var AWS = __nccwpck_require__(53832); +__nccwpck_require__(29858); /** - * @api private + * Represents credentials received from the metadata service on an EC2 instance. + * + * By default, this class will connect to the metadata service using + * {AWS.MetadataService} and attempt to load any available credentials. If it + * can connect, and credentials are available, these will be used with zero + * configuration. + * + * This credentials class will by default timeout after 1 second of inactivity + * and retry 3 times. + * If your requests to the EC2 metadata service are timing out, you can increase + * these values by configuring them directly: + * + * ```javascript + * AWS.config.credentials = new AWS.EC2MetadataCredentials({ + * httpOptions: { timeout: 5000 }, // 5 second timeout + * maxRetries: 10, // retry 10 times + * retryDelayOptions: { base: 200 }, // see AWS.Config for information + * logger: console // see AWS.Config for information + * ec2MetadataV1Disabled: false // whether to block IMDS v1 fallback. + * }); + * ``` + * + * If your requests are timing out in connecting to the metadata service, such + * as when testing on a development machine, you can use the connectTimeout + * option, specified in milliseconds, which also defaults to 1 second. + * + * If the requests failed or returns expired credentials, it will + * extend the expiration of current credential, with a warning message. For more + * information, please go to: + * https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html + * + * @!attribute originalExpiration + * @return [Date] The optional original expiration of the current credential. + * In case of AWS outage, the EC2 metadata will extend expiration of the + * existing credential. + * + * @see AWS.Config.retryDelayOptions + * @see AWS.Config.logger + * + * @!macro nobrowser */ -var memberTypeToSetType = { - 'String': 'String', - 'Number': 'Number', - 'NumberValue': 'Number', - 'Binary': 'Binary' -}; +AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, { + constructor: function EC2MetadataCredentials(options) { + AWS.Credentials.call(this); -/** - * @api private - */ -var DynamoDBSet = util.inherit({ + options = options ? AWS.util.copy(options) : {}; + options = AWS.util.merge( + {maxRetries: this.defaultMaxRetries}, options); + if (!options.httpOptions) options.httpOptions = {}; + options.httpOptions = AWS.util.merge( + {timeout: this.defaultTimeout, + connectTimeout: this.defaultConnectTimeout}, + options.httpOptions); - constructor: function Set(list, options) { - options = options || {}; - this.wrapperName = 'Set'; - this.initialize(list, options.validate); + this.metadataService = new AWS.MetadataService(options); + this.logger = options.logger || AWS.config && AWS.config.logger; }, - initialize: function(list, validate) { - var self = this; - self.values = [].concat(list); - self.detectType(); - if (validate) { - self.validate(); - } - }, + /** + * @api private + */ + defaultTimeout: 1000, - detectType: function() { - this.type = memberTypeToSetType[typeOf(this.values[0])]; - if (!this.type) { - throw util.error(new Error(), { - code: 'InvalidSetType', - message: 'Sets can contain string, number, or binary values' - }); - } + /** + * @api private + */ + defaultConnectTimeout: 1000, + + /** + * @api private + */ + defaultMaxRetries: 3, + + /** + * The original expiration of the current credential. In case of AWS + * outage, the EC2 metadata will extend expiration of the existing + * credential. + */ + originalExpiration: undefined, + + /** + * Loads the credentials from the instance metadata service + * + * @callback callback function(err) + * Called when the instance metadata service responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); }, - validate: function() { + /** + * @api private + * @param callback + */ + load: function load(callback) { var self = this; - var length = self.values.length; - var values = self.values; - for (var i = 0; i < length; i++) { - if (memberTypeToSetType[typeOf(values[i])] !== self.type) { - throw util.error(new Error(), { - code: 'InvalidType', - message: self.type + ' Set contains ' + typeOf(values[i]) + ' value' - }); + self.metadataService.loadCredentials(function(err, creds) { + if (err) { + if (self.hasLoadedCredentials()) { + self.extendExpirationIfExpired(); + callback(); + } else { + callback(err); + } + } else { + self.setCredentials(creds); + self.extendExpirationIfExpired(); + callback(); } + }); + }, + + /** + * Whether this credential has been loaded. + * @api private + */ + hasLoadedCredentials: function hasLoadedCredentials() { + return this.AccessKeyId && this.secretAccessKey; + }, + + /** + * if expired, extend the expiration by 15 minutes base plus a jitter of 5 + * minutes range. + * @api private + */ + extendExpirationIfExpired: function extendExpirationIfExpired() { + if (this.needsRefresh()) { + this.originalExpiration = this.originalExpiration || this.expireTime; + this.expired = false; + var nextTimeout = 15 * 60 + Math.floor(Math.random() * 5 * 60); + var currentTime = AWS.util.date.getDate().getTime(); + this.expireTime = new Date(currentTime + nextTimeout * 1000); + // TODO: add doc link; + this.logger.warn('Attempting credential expiration extension due to a ' + + 'credential service availability issue. A refresh of these ' + + 'credentials will be attempted again at ' + this.expireTime + + '\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html'); } }, /** - * Render the underlying values only when converting to JSON. + * Update the credential with new credential responded from EC2 metadata + * service. + * @api private */ - toJSON: function() { - var self = this; - return self.values; + setCredentials: function setCredentials(creds) { + var currentTime = AWS.util.date.getDate().getTime(); + var expireTime = new Date(creds.Expiration); + this.expired = currentTime >= expireTime ? true : false; + this.metadata = creds; + this.accessKeyId = creds.AccessKeyId; + this.secretAccessKey = creds.SecretAccessKey; + this.sessionToken = creds.Token; + this.expireTime = expireTime; } - }); -/** - * @api private - */ -module.exports = DynamoDBSet; - /***/ }), -/***/ 35162: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 83798: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var util = (__nccwpck_require__(14741).util); -var convert = __nccwpck_require__(98394); +var AWS = __nccwpck_require__(53832); -var Translator = function(options) { - options = options || {}; - this.attrValue = options.attrValue; - this.convertEmptyValues = Boolean(options.convertEmptyValues); - this.wrapNumbers = Boolean(options.wrapNumbers); -}; +/** + * Represents credentials received from relative URI specified in the ECS container. + * + * This class will request refreshable credentials from the relative URI + * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the + * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials + * are returned in the response, these will be used with zero configuration. + * + * This credentials class will by default timeout after 1 second of inactivity + * and retry 3 times. + * If your requests to the relative URI are timing out, you can increase + * the value by configuring them directly: + * + * ```javascript + * AWS.config.credentials = new AWS.ECSCredentials({ + * httpOptions: { timeout: 5000 }, // 5 second timeout + * maxRetries: 10, // retry 10 times + * retryDelayOptions: { base: 200 } // see AWS.Config for information + * }); + * ``` + * + * @see AWS.Config.retryDelayOptions + * + * @!macro nobrowser + */ +AWS.ECSCredentials = AWS.RemoteCredentials; -Translator.prototype.translateInput = function(value, shape) { - this.mode = 'input'; - return this.translate(value, shape); -}; -Translator.prototype.translateOutput = function(value, shape) { - this.mode = 'output'; - return this.translate(value, shape); -}; +/***/ }), -Translator.prototype.translate = function(value, shape) { - var self = this; - if (!shape || value === undefined) return undefined; +/***/ 65298: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - if (shape.shape === self.attrValue) { - return convert[self.mode](value, { - convertEmptyValues: self.convertEmptyValues, - wrapNumbers: self.wrapNumbers, - }); - } - switch (shape.type) { - case 'structure': return self.translateStructure(value, shape); - case 'map': return self.translateMap(value, shape); - case 'list': return self.translateList(value, shape); - default: return self.translateScalar(value, shape); - } -}; +var AWS = __nccwpck_require__(53832); -Translator.prototype.translateStructure = function(structure, shape) { - var self = this; - if (structure == null) return undefined; +/** + * Represents credentials from the environment. + * + * By default, this class will look for the matching environment variables + * prefixed by a given {envPrefix}. The un-prefixed environment variable names + * for each credential value is listed below: + * + * ```javascript + * accessKeyId: ACCESS_KEY_ID + * secretAccessKey: SECRET_ACCESS_KEY + * sessionToken: SESSION_TOKEN + * ``` + * + * With the default prefix of 'AWS', the environment variables would be: + * + * AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN + * + * @!attribute envPrefix + * @readonly + * @return [String] the prefix for the environment variable names excluding + * the separating underscore ('_'). + */ +AWS.EnvironmentCredentials = AWS.util.inherit(AWS.Credentials, { - var struct = {}; - util.each(structure, function(name, value) { - var memberShape = shape.members[name]; - if (memberShape) { - var result = self.translate(value, memberShape); - if (result !== undefined) struct[name] = result; - } - }); - return struct; -}; + /** + * Creates a new EnvironmentCredentials class with a given variable + * prefix {envPrefix}. For example, to load credentials using the 'AWS' + * prefix: + * + * ```javascript + * var creds = new AWS.EnvironmentCredentials('AWS'); + * creds.accessKeyId == 'AKID' // from AWS_ACCESS_KEY_ID env var + * ``` + * + * @param envPrefix [String] the prefix to use (e.g., 'AWS') for environment + * variables. Do not include the separating underscore. + */ + constructor: function EnvironmentCredentials(envPrefix) { + AWS.Credentials.call(this); + this.envPrefix = envPrefix; + this.get(function() {}); + }, -Translator.prototype.translateList = function(list, shape) { - var self = this; - if (list == null) return undefined; + /** + * Loads credentials from the environment using the prefixed + * environment variables. + * + * @callback callback function(err) + * Called after the (prefixed) ACCESS_KEY_ID, SECRET_ACCESS_KEY, and + * SESSION_TOKEN environment variables are read. When this callback is + * called with no error, it means that the credentials information has + * been loaded into the object (as the `accessKeyId`, `secretAccessKey`, + * and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + if (!callback) callback = AWS.util.fn.callback; - var out = []; - util.arrayEach(list, function(value) { - var result = self.translate(value, shape.member); - if (result === undefined) out.push(null); - else out.push(result); - }); - return out; -}; + if (!process || !process.env) { + callback(AWS.util.error( + new Error('No process info or environment variables available'), + { code: 'EnvironmentCredentialsProviderFailure' } + )); + return; + } -Translator.prototype.translateMap = function(map, shape) { - var self = this; - if (map == null) return undefined; + var keys = ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY', 'SESSION_TOKEN']; + var values = []; - var out = {}; - util.each(map, function(key, value) { - var result = self.translate(value, shape.value); - if (result === undefined) out[key] = null; - else out[key] = result; - }); - return out; -}; + for (var i = 0; i < keys.length; i++) { + var prefix = ''; + if (this.envPrefix) prefix = this.envPrefix + '_'; + values[i] = process.env[prefix + keys[i]]; + if (!values[i] && keys[i] !== 'SESSION_TOKEN') { + callback(AWS.util.error( + new Error('Variable ' + prefix + keys[i] + ' not set.'), + { code: 'EnvironmentCredentialsProviderFailure' } + )); + return; + } + } -Translator.prototype.translateScalar = function(value, shape) { - return shape.toType(value); -}; + this.expired = false; + AWS.Credentials.apply(this, values); + callback(); + } -/** - * @api private - */ -module.exports = Translator; +}); /***/ }), -/***/ 68415: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 59293: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var util = (__nccwpck_require__(14741).util); +var AWS = __nccwpck_require__(53832); -function typeOf(data) { - if (data === null && typeof data === 'object') { - return 'null'; - } else if (data !== undefined && isBinary(data)) { - return 'Binary'; - } else if (data !== undefined && data.constructor) { - return data.wrapperName || util.typeName(data.constructor); - } else if (data !== undefined && typeof data === 'object') { - // this object is the result of Object.create(null), hence the absence of a - // defined constructor - return 'Object'; - } else { - return 'undefined'; - } -} +/** + * Represents credentials from a JSON file on disk. + * If the credentials expire, the SDK can {refresh} the credentials + * from the file. + * + * The format of the file should be similar to the options passed to + * {AWS.Config}: + * + * ```javascript + * {accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'optional'} + * ``` + * + * @example Loading credentials from disk + * var creds = new AWS.FileSystemCredentials('./configuration.json'); + * creds.accessKeyId == 'AKID' + * + * @!attribute filename + * @readonly + * @return [String] the path to the JSON file on disk containing the + * credentials. + * @!macro nobrowser + */ +AWS.FileSystemCredentials = AWS.util.inherit(AWS.Credentials, { -function isBinary(data) { - var types = [ - 'Buffer', 'File', 'Blob', 'ArrayBuffer', 'DataView', - 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', - 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', - 'Float32Array', 'Float64Array' - ]; - if (util.isNode()) { - var Stream = util.stream.Stream; - if (util.Buffer.isBuffer(data) || data instanceof Stream) { - return true; - } - } + /** + * @overload AWS.FileSystemCredentials(filename) + * Creates a new FileSystemCredentials object from a filename + * + * @param filename [String] the path on disk to the JSON file to load. + */ + constructor: function FileSystemCredentials(filename) { + AWS.Credentials.call(this); + this.filename = filename; + this.get(function() {}); + }, - for (var i = 0; i < types.length; i++) { - if (data !== undefined && data.constructor) { - if (util.isType(data, types[i])) return true; - if (util.typeName(data.constructor) === types[i]) return true; + /** + * Loads the credentials from the {filename} on disk. + * + * @callback callback function(err) + * Called after the JSON file on disk is read and parsed. When this callback + * is called with no error, it means that the credentials information + * has been loaded into the object (as the `accessKeyId`, `secretAccessKey`, + * and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + if (!callback) callback = AWS.util.fn.callback; + try { + var creds = JSON.parse(AWS.util.readFileSync(this.filename)); + AWS.Credentials.call(this, creds); + if (!this.accessKeyId || !this.secretAccessKey) { + throw AWS.util.error( + new Error('Credentials not set in ' + this.filename), + { code: 'FileSystemCredentialsProviderFailure' } + ); + } + this.expired = false; + callback(); + } catch (err) { + callback(err); } } - return false; -} - -/** - * @api private - */ -module.exports = { - typeOf: typeOf, - isBinary: isBinary -}; +}); /***/ }), -/***/ 23000: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 91246: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var eventMessageChunker = (__nccwpck_require__(60291).eventMessageChunker); -var parseEvent = (__nccwpck_require__(17626).parseEvent); +var AWS = __nccwpck_require__(53832); +var proc = __nccwpck_require__(35317); +var iniLoader = AWS.util.iniLoader; -function createEventStream(body, parser, model) { - var eventMessages = eventMessageChunker(body); +/** + * Represents credentials loaded from shared credentials file + * (defaulting to ~/.aws/credentials or defined by the + * `AWS_SHARED_CREDENTIALS_FILE` environment variable). + * + * ## Using process credentials + * + * The credentials file can specify a credential provider that executes + * a given process and attempts to read its stdout to recieve a JSON payload + * containing the credentials: + * + * [default] + * credential_process = /usr/bin/credential_proc + * + * Automatically handles refreshing credentials if an Expiration time is + * provided in the credentials payload. Credentials supplied in the same profile + * will take precedence over the credential_process. + * + * Sourcing credentials from an external process can potentially be dangerous, + * so proceed with caution. Other credential providers should be preferred if + * at all possible. If using this option, you should make sure that the shared + * credentials file is as locked down as possible using security best practices + * for your operating system. + * + * ## Using custom profiles + * + * The SDK supports loading credentials for separate profiles. This can be done + * in two ways: + * + * 1. Set the `AWS_PROFILE` environment variable in your process prior to + * loading the SDK. + * 2. Directly load the AWS.ProcessCredentials provider: + * + * ```javascript + * var creds = new AWS.ProcessCredentials({profile: 'myprofile'}); + * AWS.config.credentials = creds; + * ``` + * + * @!macro nobrowser + */ +AWS.ProcessCredentials = AWS.util.inherit(AWS.Credentials, { + /** + * Creates a new ProcessCredentials object. + * + * @param options [map] a set of options + * @option options profile [String] (AWS_PROFILE env var or 'default') + * the name of the profile to load. + * @option options filename [String] ('~/.aws/credentials' or defined by + * AWS_SHARED_CREDENTIALS_FILE process env var) + * the filename to use when loading credentials. + * @option options callback [Function] (err) Credentials are eagerly loaded + * by the constructor. When the callback is called with no error, the + * credentials have been loaded successfully. + */ + constructor: function ProcessCredentials(options) { + AWS.Credentials.call(this); - var events = []; + options = options || {}; - for (var i = 0; i < eventMessages.length; i++) { - events.push(parseEvent(parser, eventMessages[i], model)); - } + this.filename = options.filename; + this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; + this.get(options.callback || AWS.util.fn.noop); + }, - return events; -} + /** + * @api private + */ + load: function load(callback) { + var self = this; + try { + var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); + var profile = profiles[this.profile] || {}; -/** - * @api private - */ -module.exports = { - createEventStream: createEventStream -}; + if (Object.keys(profile).length === 0) { + throw AWS.util.error( + new Error('Profile ' + this.profile + ' not found'), + { code: 'ProcessCredentialsProviderFailure' } + ); + } + if (profile['credential_process']) { + this.loadViaCredentialProcess(profile, function(err, data) { + if (err) { + callback(err, null); + } else { + self.expired = false; + self.accessKeyId = data.AccessKeyId; + self.secretAccessKey = data.SecretAccessKey; + self.sessionToken = data.SessionToken; + if (data.Expiration) { + self.expireTime = new Date(data.Expiration); + } + callback(null); + } + }); + } else { + throw AWS.util.error( + new Error('Profile ' + this.profile + ' did not include credential process'), + { code: 'ProcessCredentialsProviderFailure' } + ); + } + } catch (err) { + callback(err); + } + }, -/***/ }), + /** + * Executes the credential_process and retrieves + * credentials from the output + * @api private + * @param profile [map] credentials profile + * @throws ProcessCredentialsProviderFailure + */ + loadViaCredentialProcess: function loadViaCredentialProcess(profile, callback) { + proc.exec(profile['credential_process'], { env: process.env }, function(err, stdOut, stdErr) { + if (err) { + callback(AWS.util.error( + new Error('credential_process returned error'), + { code: 'ProcessCredentialsProviderFailure'} + ), null); + } else { + try { + var credData = JSON.parse(stdOut); + if (credData.Expiration) { + var currentTime = AWS.util.date.getDate(); + var expireTime = new Date(credData.Expiration); + if (expireTime < currentTime) { + throw Error('credential_process returned expired credentials'); + } + } -/***/ 57980: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (credData.Version !== 1) { + throw Error('credential_process does not return Version == 1'); + } + callback(null, credData); + } catch (err) { + callback(AWS.util.error( + new Error(err.message), + { code: 'ProcessCredentialsProviderFailure'} + ), null); + } + } + }); + }, -var util = (__nccwpck_require__(14741).util); -var Transform = (__nccwpck_require__(12781).Transform); -var allocBuffer = util.buffer.alloc; + /** + * Loads the credentials from the credential process + * + * @callback callback function(err) + * Called after the credential process has been executed. When this + * callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + iniLoader.clearCachedFiles(); + this.coalesceRefresh(callback || AWS.util.fn.callback); + } +}); -/** @type {Transform} */ -function EventMessageChunkerStream(options) { - Transform.call(this, options); - this.currentMessageTotalLength = 0; - this.currentMessagePendingLength = 0; - /** @type {Buffer} */ - this.currentMessage = null; +/***/ }), + +/***/ 31983: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - /** @type {Buffer} */ - this.messageLengthBuffer = null; -} +var fs = __nccwpck_require__(79896); -EventMessageChunkerStream.prototype = Object.create(Transform.prototype); +var AWS = __nccwpck_require__(53832), + ENV_RELATIVE_URI = 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI', + ENV_FULL_URI = 'AWS_CONTAINER_CREDENTIALS_FULL_URI', + ENV_AUTH_TOKEN = 'AWS_CONTAINER_AUTHORIZATION_TOKEN', + ENV_AUTH_TOKEN_FILE = 'AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE', + FULL_URI_UNRESTRICTED_PROTOCOLS = ['https:'], + FULL_URI_ALLOWED_PROTOCOLS = ['http:', 'https:'], + FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1', '169.254.170.23'], + RELATIVE_URI_HOST = '169.254.170.2'; /** + * Represents credentials received from specified URI. * - * @param {Buffer} chunk - * @param {string} encoding - * @param {*} callback + * This class will request refreshable credentials from the relative URI + * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the + * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials + * are returned in the response, these will be used with zero configuration. + * + * This credentials class will by default timeout after 1 second of inactivity + * and retry 3 times. + * If your requests to the relative URI are timing out, you can increase + * the value by configuring them directly: + * + * ```javascript + * AWS.config.credentials = new AWS.RemoteCredentials({ + * httpOptions: { timeout: 5000 }, // 5 second timeout + * maxRetries: 10, // retry 10 times + * retryDelayOptions: { base: 200 } // see AWS.Config for information + * }); + * ``` + * + * @see AWS.Config.retryDelayOptions + * + * @!macro nobrowser */ -EventMessageChunkerStream.prototype._transform = function(chunk, encoding, callback) { - var chunkLength = chunk.length; - var currentOffset = 0; +AWS.RemoteCredentials = AWS.util.inherit(AWS.Credentials, { + constructor: function RemoteCredentials(options) { + AWS.Credentials.call(this); + options = options ? AWS.util.copy(options) : {}; + if (!options.httpOptions) options.httpOptions = {}; + options.httpOptions = AWS.util.merge( + this.httpOptions, options.httpOptions); + AWS.util.update(this, options); + }, - while (currentOffset < chunkLength) { - // create new message if necessary - if (!this.currentMessage) { - // working on a new message, determine total length - var bytesRemaining = chunkLength - currentOffset; - // prevent edge case where total length spans 2 chunks - if (!this.messageLengthBuffer) { - this.messageLengthBuffer = allocBuffer(4); - } - var numBytesForTotal = Math.min( - 4 - this.currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer - bytesRemaining // bytes left in chunk - ); + /** + * @api private + */ + httpOptions: { timeout: 1000 }, - chunk.copy( - this.messageLengthBuffer, - this.currentMessagePendingLength, - currentOffset, - currentOffset + numBytesForTotal - ); + /** + * @api private + */ + maxRetries: 3, - this.currentMessagePendingLength += numBytesForTotal; - currentOffset += numBytesForTotal; + /** + * @api private + */ + isConfiguredForEcsCredentials: function isConfiguredForEcsCredentials() { + return Boolean( + process && + process.env && + (process.env[ENV_RELATIVE_URI] || process.env[ENV_FULL_URI]) + ); + }, - if (this.currentMessagePendingLength < 4) { - // not enough information to create the current message - break; - } - this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0)); - this.messageLengthBuffer = null; + /** + * @api private + */ + getECSFullUri: function getECSFullUri() { + if (process && process.env) { + var relative = process.env[ENV_RELATIVE_URI], + full = process.env[ENV_FULL_URI]; + if (relative) { + return 'http://' + RELATIVE_URI_HOST + relative; + } else if (full) { + var parsed = AWS.util.urlParse(full); + if (FULL_URI_ALLOWED_PROTOCOLS.indexOf(parsed.protocol) < 0) { + throw AWS.util.error( + new Error('Unsupported protocol: AWS.RemoteCredentials supports ' + + FULL_URI_ALLOWED_PROTOCOLS.join(',') + ' only; ' + + parsed.protocol + ' requested.'), + { code: 'ECSCredentialsProviderFailure' } + ); } - // write data into current message - var numBytesToWrite = Math.min( - this.currentMessageTotalLength - this.currentMessagePendingLength, // number of bytes left to complete message - chunkLength - currentOffset // number of bytes left in the original chunk - ); - chunk.copy( - this.currentMessage, // target buffer - this.currentMessagePendingLength, // target offset - currentOffset, // chunk offset - currentOffset + numBytesToWrite // chunk end to write + if (FULL_URI_UNRESTRICTED_PROTOCOLS.indexOf(parsed.protocol) < 0 && + FULL_URI_ALLOWED_HOSTNAMES.indexOf(parsed.hostname) < 0) { + throw AWS.util.error( + new Error('Unsupported hostname: AWS.RemoteCredentials only supports ' + + FULL_URI_ALLOWED_HOSTNAMES.join(',') + ' for ' + parsed.protocol + '; ' + + parsed.protocol + '//' + parsed.hostname + ' requested.'), + { code: 'ECSCredentialsProviderFailure' } + ); + } + + return full; + } else { + throw AWS.util.error( + new Error('Variable ' + ENV_RELATIVE_URI + ' or ' + ENV_FULL_URI + + ' must be set to use AWS.RemoteCredentials.'), + { code: 'ECSCredentialsProviderFailure' } ); - this.currentMessagePendingLength += numBytesToWrite; - currentOffset += numBytesToWrite; + } + } else { + throw AWS.util.error( + new Error('No process info available'), + { code: 'ECSCredentialsProviderFailure' } + ); + } + }, - // check if a message is ready to be pushed - if (this.currentMessageTotalLength && this.currentMessageTotalLength === this.currentMessagePendingLength) { - // push out the message - this.push(this.currentMessage); - // cleanup - this.currentMessage = null; - this.currentMessageTotalLength = 0; - this.currentMessagePendingLength = 0; + /** + * @api private + */ + getECSAuthToken: function getECSAuthToken() { + if (process && process.env && (process.env[ENV_FULL_URI] || process.env[ENV_AUTH_TOKEN_FILE])) { + if (!process.env[ENV_AUTH_TOKEN] && process.env[ENV_AUTH_TOKEN_FILE]) { + try { + var data = fs.readFileSync(process.env[ENV_AUTH_TOKEN_FILE]).toString(); + return data; + } catch (error) { + console.error('Error reading token file:', error); + throw error; // Re-throw the error to propagate it } + } + return process.env[ENV_AUTH_TOKEN]; } + }, - callback(); -}; + /** + * @api private + */ + credsFormatIsValid: function credsFormatIsValid(credData) { + return (!!credData.accessKeyId && !!credData.secretAccessKey && + !!credData.sessionToken && !!credData.expireTime); + }, -EventMessageChunkerStream.prototype._flush = function(callback) { - if (this.currentMessageTotalLength) { - if (this.currentMessageTotalLength === this.currentMessagePendingLength) { - callback(null, this.currentMessage); - } else { - callback(new Error('Truncated event message received.')); - } - } else { - callback(); + /** + * @api private + */ + formatCreds: function formatCreds(credData) { + if (!!credData.credentials) { + credData = credData.credentials; } -}; -/** - * @param {number} size Size of the message to be allocated. - * @api private - */ -EventMessageChunkerStream.prototype.allocateMessage = function(size) { - if (typeof size !== 'number') { - throw new Error('Attempted to allocate an event message where size was not a number: ' + size); - } - this.currentMessageTotalLength = size; - this.currentMessagePendingLength = 4; - this.currentMessage = allocBuffer(size); - this.currentMessage.writeUInt32BE(size, 0); -}; + return { + expired: false, + accessKeyId: credData.accessKeyId || credData.AccessKeyId, + secretAccessKey: credData.secretAccessKey || credData.SecretAccessKey, + sessionToken: credData.sessionToken || credData.Token, + expireTime: new Date(credData.expiration || credData.Expiration) + }; + }, -/** - * @api private - */ -module.exports = { - EventMessageChunkerStream: EventMessageChunkerStream -}; + /** + * @api private + */ + request: function request(url, callback) { + var httpRequest = new AWS.HttpRequest(url); + httpRequest.method = 'GET'; + httpRequest.headers.Accept = 'application/json'; + var token = this.getECSAuthToken(); + if (token) { + httpRequest.headers.Authorization = token; + } + AWS.util.handleRequestWithRetries(httpRequest, this, callback); + }, + /** + * Loads the credentials from the relative URI specified by container + * + * @callback callback function(err) + * Called when the request to the relative URI responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, `sessionToken`, and `expireTime` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); + }, -/***/ }), + /** + * @api private + */ + load: function load(callback) { + var self = this; + var fullUri; -/***/ 60291: -/***/ ((module) => { + try { + fullUri = this.getECSFullUri(); + } catch (err) { + callback(err); + return; + } -/** - * Takes in a buffer of event messages and splits them into individual messages. - * @param {Buffer} buffer - * @api private - */ -function eventMessageChunker(buffer) { - /** @type Buffer[] */ - var messages = []; - var offset = 0; + this.request(fullUri, function(err, data) { + if (!err) { + try { + data = JSON.parse(data); + var creds = self.formatCreds(data); + if (!self.credsFormatIsValid(creds)) { + throw AWS.util.error( + new Error('Response data is not in valid format'), + { code: 'ECSCredentialsProviderFailure' } + ); + } + AWS.util.update(self, creds); + } catch (dataError) { + err = dataError; + } + } + callback(err, creds); + }); + } +}); - while (offset < buffer.length) { - var totalLength = buffer.readInt32BE(offset); - // create new buffer for individual message (shares memory with original) - var message = buffer.slice(offset, totalLength + offset); - // increment offset to it starts at the next message - offset += totalLength; +/***/ }), - messages.push(message); - } +/***/ 73976: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - return messages; -} +var AWS = __nccwpck_require__(53832); +var STS = __nccwpck_require__(72904); /** - * @api private + * Represents credentials retrieved from STS SAML support. + * + * By default this provider gets credentials using the + * {AWS.STS.assumeRoleWithSAML} service operation. This operation + * requires a `RoleArn` containing the ARN of the IAM trust policy for the + * application for which credentials will be given, as well as a `PrincipalArn` + * representing the ARN for the SAML identity provider. In addition, the + * `SAMLAssertion` must be set to the token provided by the identity + * provider. See {constructor} for an example on creating a credentials + * object with proper `RoleArn`, `PrincipalArn`, and `SAMLAssertion` values. + * + * ## Refreshing Credentials from Identity Service + * + * In addition to AWS credentials expiring after a given amount of time, the + * login token from the identity provider will also expire. Once this token + * expires, it will not be usable to refresh AWS credentials, and another + * token will be needed. The SDK does not manage refreshing of the token value, + * but this can be done through a "refresh token" supported by most identity + * providers. Consult the documentation for the identity provider for refreshing + * tokens. Once the refreshed token is acquired, you should make sure to update + * this new token in the credentials object's {params} property. The following + * code will update the SAMLAssertion, assuming you have retrieved an updated + * token from the identity provider: + * + * ```javascript + * AWS.config.credentials.params.SAMLAssertion = updatedToken; + * ``` + * + * Future calls to `credentials.refresh()` will now use the new token. + * + * @!attribute params + * @return [map] the map of params passed to + * {AWS.STS.assumeRoleWithSAML}. To update the token, set the + * `params.SAMLAssertion` property. */ -module.exports = { - eventMessageChunker: eventMessageChunker -}; +AWS.SAMLCredentials = AWS.util.inherit(AWS.Credentials, { + /** + * Creates a new credentials object. + * @param (see AWS.STS.assumeRoleWithSAML) + * @example Creating a new credentials object + * AWS.config.credentials = new AWS.SAMLCredentials({ + * RoleArn: 'arn:aws:iam::1234567890:role/SAMLRole', + * PrincipalArn: 'arn:aws:iam::1234567890:role/SAMLPrincipal', + * SAMLAssertion: 'base64-token', // base64-encoded token from IdP + * }); + * @see AWS.STS.assumeRoleWithSAML + */ + constructor: function SAMLCredentials(params) { + AWS.Credentials.call(this); + this.expired = true; + this.params = params; + }, + /** + * Refreshes credentials using {AWS.STS.assumeRoleWithSAML} + * + * @callback callback function(err) + * Called when the STS service responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); + }, -/***/ }), + /** + * @api private + */ + load: function load(callback) { + var self = this; + self.createClients(); + self.service.assumeRoleWithSAML(function (err, data) { + if (!err) { + self.service.credentialsFrom(data, self); + } + callback(err); + }); + }, -/***/ 61760: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** + * @api private + */ + createClients: function() { + this.service = this.service || new STS({params: this.params}); + } -var Transform = (__nccwpck_require__(12781).Transform); -var parseEvent = (__nccwpck_require__(17626).parseEvent); +}); -/** @type {Transform} */ -function EventUnmarshallerStream(options) { - options = options || {}; - // set output to object mode - options.readableObjectMode = true; - Transform.call(this, options); - this._readableState.objectMode = true; - this.parser = options.parser; - this.eventStreamModel = options.eventStreamModel; -} +/***/ }), -EventUnmarshallerStream.prototype = Object.create(Transform.prototype); +/***/ 9620: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); +var STS = __nccwpck_require__(72904); +var iniLoader = AWS.util.iniLoader; + +var ASSUME_ROLE_DEFAULT_REGION = 'us-east-1'; /** + * Represents credentials loaded from shared credentials file + * (defaulting to ~/.aws/credentials or defined by the + * `AWS_SHARED_CREDENTIALS_FILE` environment variable). * - * @param {Buffer} chunk - * @param {string} encoding - * @param {*} callback + * ## Using the shared credentials file + * + * This provider is checked by default in the Node.js environment. To use the + * credentials file provider, simply add your access and secret keys to the + * ~/.aws/credentials file in the following format: + * + * [default] + * aws_access_key_id = AKID... + * aws_secret_access_key = YOUR_SECRET_KEY + * + * ## Using custom profiles + * + * The SDK supports loading credentials for separate profiles. This can be done + * in two ways: + * + * 1. Set the `AWS_PROFILE` environment variable in your process prior to + * loading the SDK. + * 2. Directly load the AWS.SharedIniFileCredentials provider: + * + * ```javascript + * var creds = new AWS.SharedIniFileCredentials({profile: 'myprofile'}); + * AWS.config.credentials = creds; + * ``` + * + * @!macro nobrowser */ -EventUnmarshallerStream.prototype._transform = function(chunk, encoding, callback) { - try { - var event = parseEvent(this.parser, chunk, this.eventStreamModel); - this.push(event); - return callback(); - } catch (err) { - callback(err); - } -}; +AWS.SharedIniFileCredentials = AWS.util.inherit(AWS.Credentials, { + /** + * Creates a new SharedIniFileCredentials object. + * + * @param options [map] a set of options + * @option options profile [String] (AWS_PROFILE env var or 'default') + * the name of the profile to load. + * @option options filename [String] ('~/.aws/credentials' or defined by + * AWS_SHARED_CREDENTIALS_FILE process env var) + * the filename to use when loading credentials. + * @option options disableAssumeRole [Boolean] (false) True to disable + * support for profiles that assume an IAM role. If true, and an assume + * role profile is selected, an error is raised. + * @option options preferStaticCredentials [Boolean] (false) True to + * prefer static credentials to role_arn if both are present. + * @option options tokenCodeFn [Function] (null) Function to provide + * STS Assume Role TokenCode, if mfa_serial is provided for profile in ini + * file. Function is called with value of mfa_serial and callback, and + * should provide the TokenCode or an error to the callback in the format + * callback(err, token) + * @option options callback [Function] (err) Credentials are eagerly loaded + * by the constructor. When the callback is called with no error, the + * credentials have been loaded successfully. + * @option options httpOptions [map] A set of options to pass to the low-level + * HTTP request. Currently supported options are: + * * **proxy** [String] — the URL to proxy requests through + * * **agent** [http.Agent, https.Agent] — the Agent object to perform + * HTTP requests with. Used for connection pooling. Defaults to the global + * agent (`http.globalAgent`) for non-SSL connections. Note that for + * SSL connections, a special Agent object is used in order to enable + * peer certificate verification. This feature is only available in the + * Node.js environment. + * * **connectTimeout** [Integer] — Sets the socket to timeout after + * failing to establish a connection with the server after + * `connectTimeout` milliseconds. This timeout has no effect once a socket + * connection has been established. + * * **timeout** [Integer] — The number of milliseconds a request can + * take before automatically being terminated. + * Defaults to two minutes (120000). + */ + constructor: function SharedIniFileCredentials(options) { + AWS.Credentials.call(this); -/** - * @api private - */ -module.exports = { - EventUnmarshallerStream: EventUnmarshallerStream -}; + options = options || {}; + this.filename = options.filename; + this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; + this.disableAssumeRole = Boolean(options.disableAssumeRole); + this.preferStaticCredentials = Boolean(options.preferStaticCredentials); + this.tokenCodeFn = options.tokenCodeFn || null; + this.httpOptions = options.httpOptions || null; + this.get(options.callback || AWS.util.fn.noop); + }, -/***/ }), + /** + * @api private + */ + load: function load(callback) { + var self = this; + try { + var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); + var profile = profiles[this.profile] || {}; -/***/ 26634: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (Object.keys(profile).length === 0) { + throw AWS.util.error( + new Error('Profile ' + this.profile + ' not found'), + { code: 'SharedIniFileCredentialsProviderFailure' } + ); + } -var util = (__nccwpck_require__(14741).util); -var toBuffer = util.buffer.toBuffer; + /* + In the CLI, the presence of both a role_arn and static credentials have + different meanings depending on how many profiles have been visited. For + the first profile processed, role_arn takes precedence over any static + credentials, but for all subsequent profiles, static credentials are + used if present, and only in their absence will the profile's + source_profile and role_arn keys be used to load another set of + credentials. This var is intended to yield compatible behaviour in this + sdk. + */ + var preferStaticCredentialsToRoleArn = Boolean( + this.preferStaticCredentials + && profile['aws_access_key_id'] + && profile['aws_secret_access_key'] + ); -/** - * A lossless representation of a signed, 64-bit integer. Instances of this - * class may be used in arithmetic expressions as if they were numeric - * primitives, but the binary representation will be preserved unchanged as the - * `bytes` property of the object. The bytes should be encoded as big-endian, - * two's complement integers. - * @param {Buffer} bytes - * - * @api private - */ -function Int64(bytes) { - if (bytes.length !== 8) { - throw new Error('Int64 buffers must be exactly 8 bytes'); - } - if (!util.Buffer.isBuffer(bytes)) bytes = toBuffer(bytes); + if (profile['role_arn'] && !preferStaticCredentialsToRoleArn) { + this.loadRoleProfile(profiles, profile, function(err, data) { + if (err) { + callback(err); + } else { + self.expired = false; + self.accessKeyId = data.Credentials.AccessKeyId; + self.secretAccessKey = data.Credentials.SecretAccessKey; + self.sessionToken = data.Credentials.SessionToken; + self.expireTime = data.Credentials.Expiration; + callback(null); + } + }); + return; + } - this.bytes = bytes; -} + this.accessKeyId = profile['aws_access_key_id']; + this.secretAccessKey = profile['aws_secret_access_key']; + this.sessionToken = profile['aws_session_token']; -/** - * @param {number} number - * @returns {Int64} - * - * @api private - */ -Int64.fromNumber = function(number) { - if (number > 9223372036854775807 || number < -9223372036854775808) { - throw new Error( - number + ' is too large (or, if negative, too small) to represent as an Int64' + if (!this.accessKeyId || !this.secretAccessKey) { + throw AWS.util.error( + new Error('Credentials not set for profile ' + this.profile), + { code: 'SharedIniFileCredentialsProviderFailure' } ); + } + this.expired = false; + callback(null); + } catch (err) { + callback(err); } + }, - var bytes = new Uint8Array(8); - for ( - var i = 7, remaining = Math.abs(Math.round(number)); - i > -1 && remaining > 0; - i--, remaining /= 256 - ) { - bytes[i] = remaining; - } - - if (number < 0) { - negate(bytes); - } - - return new Int64(bytes); -}; + /** + * Loads the credentials from the shared credentials file + * + * @callback callback function(err) + * Called after the shared INI file on disk is read and parsed. When this + * callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + iniLoader.clearCachedFiles(); + this.coalesceRefresh( + callback || AWS.util.fn.callback, + this.disableAssumeRole + ); + }, -/** - * @returns {number} - * - * @api private - */ -Int64.prototype.valueOf = function() { - var bytes = this.bytes.slice(0); - var negative = bytes[0] & 128; - if (negative) { - negate(bytes); + /** + * @api private + */ + loadRoleProfile: function loadRoleProfile(creds, roleProfile, callback) { + if (this.disableAssumeRole) { + throw AWS.util.error( + new Error('Role assumption profiles are disabled. ' + + 'Failed to load profile ' + this.profile + + ' from ' + creds.filename), + { code: 'SharedIniFileCredentialsProviderFailure' } + ); } - return parseInt(bytes.toString('hex'), 16) * (negative ? -1 : 1); -}; + var self = this; + var roleArn = roleProfile['role_arn']; + var roleSessionName = roleProfile['role_session_name']; + var externalId = roleProfile['external_id']; + var mfaSerial = roleProfile['mfa_serial']; + var sourceProfileName = roleProfile['source_profile']; + var durationSeconds = parseInt(roleProfile['duration_seconds'], 10) || undefined; -Int64.prototype.toString = function() { - return String(this.valueOf()); -}; + // From experimentation, the following behavior mimics the AWS CLI: + // + // 1. Use region from the profile if present. + // 2. Otherwise fall back to N. Virginia (global endpoint). + // + // It is necessary to do the fallback explicitly, because if + // 'AWS_STS_REGIONAL_ENDPOINTS=regional', the underlying STS client will + // otherwise throw an error if region is left 'undefined'. + // + // Experimentation shows that the AWS CLI (tested at version 1.18.136) + // ignores the following potential sources of a region for the purposes of + // this AssumeRole call: + // + // - The [default] profile + // - The AWS_REGION environment variable + // + // Ignoring the [default] profile for the purposes of AssumeRole is arguably + // a bug in the CLI since it does use the [default] region for service + // calls... but right now we're matching behavior of the other tool. + var profileRegion = roleProfile['region'] || ASSUME_ROLE_DEFAULT_REGION; -/** - * @param {Buffer} bytes - * - * @api private - */ -function negate(bytes) { - for (var i = 0; i < 8; i++) { - bytes[i] ^= 0xFF; - } - for (var i = 7; i > -1; i--) { - bytes[i]++; - if (bytes[i] !== 0) { - break; - } + if (!sourceProfileName) { + throw AWS.util.error( + new Error('source_profile is not set using profile ' + this.profile), + { code: 'SharedIniFileCredentialsProviderFailure' } + ); } -} - -/** - * @api private - */ -module.exports = { - Int64: Int64 -}; - -/***/ }), + var sourceProfileExistanceTest = creds[sourceProfileName]; -/***/ 17626: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (typeof sourceProfileExistanceTest !== 'object') { + throw AWS.util.error( + new Error('source_profile ' + sourceProfileName + ' using profile ' + + this.profile + ' does not exist'), + { code: 'SharedIniFileCredentialsProviderFailure' } + ); + } -var parseMessage = (__nccwpck_require__(75539).parseMessage); + var sourceCredentials = new AWS.SharedIniFileCredentials( + AWS.util.merge(this.options || {}, { + profile: sourceProfileName, + preferStaticCredentials: true + }) + ); -/** - * - * @param {*} parser - * @param {Buffer} message - * @param {*} shape - * @api private - */ -function parseEvent(parser, message, shape) { - var parsedMessage = parseMessage(message); + this.roleArn = roleArn; + var sts = new STS({ + credentials: sourceCredentials, + region: profileRegion, + httpOptions: this.httpOptions + }); - // check if message is an event or error - var messageType = parsedMessage.headers[':message-type']; - if (messageType) { - if (messageType.value === 'error') { - throw parseError(parsedMessage); - } else if (messageType.value !== 'event') { - // not sure how to parse non-events/non-errors, ignore for now - return; - } - } + var roleParams = { + DurationSeconds: durationSeconds, + RoleArn: roleArn, + RoleSessionName: roleSessionName || 'aws-sdk-js-' + Date.now() + }; - // determine event type - var eventType = parsedMessage.headers[':event-type']; - // check that the event type is modeled - var eventModel = shape.members[eventType.value]; - if (!eventModel) { - return; + if (externalId) { + roleParams.ExternalId = externalId; } - var result = {}; - // check if an event payload exists - var eventPayloadMemberName = eventModel.eventPayloadMemberName; - if (eventPayloadMemberName) { - var payloadShape = eventModel.members[eventPayloadMemberName]; - // if the shape is binary, return the byte array - if (payloadShape.type === 'binary') { - result[eventPayloadMemberName] = parsedMessage.body; - } else { - result[eventPayloadMemberName] = parser.parse(parsedMessage.body.toString(), payloadShape); + if (mfaSerial && self.tokenCodeFn) { + roleParams.SerialNumber = mfaSerial; + self.tokenCodeFn(mfaSerial, function(err, token) { + if (err) { + var message; + if (err instanceof Error) { + message = err.message; + } else { + message = err; + } + callback( + AWS.util.error( + new Error('Error fetching MFA token: ' + message), + { code: 'SharedIniFileCredentialsProviderFailure' } + )); + return; } - } - // read event headers - var eventHeaderNames = eventModel.eventHeaderMemberNames; - for (var i = 0; i < eventHeaderNames.length; i++) { - var name = eventHeaderNames[i]; - if (parsedMessage.headers[name]) { - // parse the header! - result[name] = eventModel.members[name].toType(parsedMessage.headers[name].value); - } + roleParams.TokenCode = token; + sts.assumeRole(roleParams, callback); + }); + return; } - - var output = {}; - output[eventType.value] = result; - return output; -} - -function parseError(message) { - var errorCode = message.headers[':error-code']; - var errorMessage = message.headers[':error-message']; - var error = new Error(errorMessage.value || errorMessage); - error.code = error.name = errorCode.value || errorCode; - return error; -} - -/** - * @api private - */ -module.exports = { - parseEvent: parseEvent -}; + sts.assumeRole(roleParams, callback); + } +}); /***/ }), -/***/ 75539: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Int64 = (__nccwpck_require__(26634).Int64); - -var splitMessage = (__nccwpck_require__(68797).splitMessage); +/***/ 18792: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var BOOLEAN_TAG = 'boolean'; -var BYTE_TAG = 'byte'; -var SHORT_TAG = 'short'; -var INT_TAG = 'integer'; -var LONG_TAG = 'long'; -var BINARY_TAG = 'binary'; -var STRING_TAG = 'string'; -var TIMESTAMP_TAG = 'timestamp'; -var UUID_TAG = 'uuid'; +var AWS = __nccwpck_require__(53832); +var path = __nccwpck_require__(16928); +var crypto = __nccwpck_require__(76982); +var iniLoader = AWS.util.iniLoader; /** - * @api private + * Represents credentials from sso.getRoleCredentials API for + * `sso_*` values defined in shared credentials file. * - * @param {Buffer} headers + * ## Using SSO credentials + * + * The credentials file must specify the information below to use sso: + * + * [profile sso-profile] + * sso_account_id = 012345678901 + * sso_region = **-****-* + * sso_role_name = SampleRole + * sso_start_url = https://d-******.awsapps.com/start + * + * or using the session format: + * + * [profile sso-token] + * sso_session = prod + * sso_account_id = 012345678901 + * sso_role_name = SampleRole + * + * [sso-session prod] + * sso_region = **-****-* + * sso_start_url = https://d-******.awsapps.com/start + * + * This information will be automatically added to your shared credentials file by running + * `aws configure sso`. + * + * ## Using custom profiles + * + * The SDK supports loading credentials for separate profiles. This can be done + * in two ways: + * + * 1. Set the `AWS_PROFILE` environment variable in your process prior to + * loading the SDK. + * 2. Directly load the AWS.SsoCredentials provider: + * + * ```javascript + * var creds = new AWS.SsoCredentials({profile: 'myprofile'}); + * AWS.config.credentials = creds; + * ``` + * + * @!macro nobrowser */ -function parseHeaders(headers) { - var out = {}; - var position = 0; - while (position < headers.length) { - var nameLength = headers.readUInt8(position++); - var name = headers.slice(position, position + nameLength).toString(); - position += nameLength; - switch (headers.readUInt8(position++)) { - case 0 /* boolTrue */: - out[name] = { - type: BOOLEAN_TAG, - value: true - }; - break; - case 1 /* boolFalse */: - out[name] = { - type: BOOLEAN_TAG, - value: false - }; - break; - case 2 /* byte */: - out[name] = { - type: BYTE_TAG, - value: headers.readInt8(position++) - }; - break; - case 3 /* short */: - out[name] = { - type: SHORT_TAG, - value: headers.readInt16BE(position) - }; - position += 2; - break; - case 4 /* integer */: - out[name] = { - type: INT_TAG, - value: headers.readInt32BE(position) - }; - position += 4; - break; - case 5 /* long */: - out[name] = { - type: LONG_TAG, - value: new Int64(headers.slice(position, position + 8)) - }; - position += 8; - break; - case 6 /* byteArray */: - var binaryLength = headers.readUInt16BE(position); - position += 2; - out[name] = { - type: BINARY_TAG, - value: headers.slice(position, position + binaryLength) - }; - position += binaryLength; - break; - case 7 /* string */: - var stringLength = headers.readUInt16BE(position); - position += 2; - out[name] = { - type: STRING_TAG, - value: headers.slice( - position, - position + stringLength - ).toString() - }; - position += stringLength; - break; - case 8 /* timestamp */: - out[name] = { - type: TIMESTAMP_TAG, - value: new Date( - new Int64(headers.slice(position, position + 8)) - .valueOf() - ) - }; - position += 8; - break; - case 9 /* uuid */: - var uuidChars = headers.slice(position, position + 16) - .toString('hex'); - position += 16; - out[name] = { - type: UUID_TAG, - value: uuidChars.substr(0, 8) + '-' + - uuidChars.substr(8, 4) + '-' + - uuidChars.substr(12, 4) + '-' + - uuidChars.substr(16, 4) + '-' + - uuidChars.substr(20) - }; - break; - default: - throw new Error('Unrecognized header type tag'); - } - } - return out; -} +AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, { + /** + * Creates a new SsoCredentials object. + * + * @param options [map] a set of options + * @option options profile [String] (AWS_PROFILE env var or 'default') + * the name of the profile to load. + * @option options filename [String] ('~/.aws/credentials' or defined by + * AWS_SHARED_CREDENTIALS_FILE process env var) + * the filename to use when loading credentials. + * @option options callback [Function] (err) Credentials are eagerly loaded + * by the constructor. When the callback is called with no error, the + * credentials have been loaded successfully. + */ + constructor: function SsoCredentials(options) { + AWS.Credentials.call(this); -function parseMessage(message) { - var parsed = splitMessage(message); - return { headers: parseHeaders(parsed.headers), body: parsed.body }; -} + options = options || {}; + this.errorCode = 'SsoCredentialsProviderFailure'; + this.expired = true; -/** - * @api private - */ -module.exports = { - parseMessage: parseMessage -}; + this.filename = options.filename; + this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; + this.service = options.ssoClient; + this.httpOptions = options.httpOptions || null; + this.get(options.callback || AWS.util.fn.noop); + }, + /** + * @api private + */ + load: function load(callback) { + var self = this; -/***/ }), + try { + var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); + var profile = profiles[this.profile] || {}; -/***/ 68797: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (Object.keys(profile).length === 0) { + throw AWS.util.error( + new Error('Profile ' + this.profile + ' not found'), + { code: self.errorCode } + ); + } -var util = (__nccwpck_require__(14741).util); -var toBuffer = util.buffer.toBuffer; + if (profile.sso_session) { + if (!profile.sso_account_id || !profile.sso_role_name) { + throw AWS.util.error( + new Error('Profile ' + this.profile + ' with session ' + profile.sso_session + + ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_session", ' + + '"sso_role_name". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'), + { code: self.errorCode } + ); + } + } else { + if (!profile.sso_start_url || !profile.sso_account_id || !profile.sso_region || !profile.sso_role_name) { + throw AWS.util.error( + new Error('Profile ' + this.profile + ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", ' + + '"sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'), + { code: self.errorCode } + ); + } + } -// All prelude components are unsigned, 32-bit integers -var PRELUDE_MEMBER_LENGTH = 4; -// The prelude consists of two components -var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; -// Checksums are always CRC32 hashes. -var CHECKSUM_LENGTH = 4; -// Messages must include a full prelude, a prelude checksum, and a message checksum -var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; + this.getToken(this.profile, profile, function (err, token) { + if (err) { + return callback(err); + } + var request = { + accessToken: token, + accountId: profile.sso_account_id, + roleName: profile.sso_role_name, + }; -/** - * @api private - * - * @param {Buffer} message - */ -function splitMessage(message) { - if (!util.Buffer.isBuffer(message)) message = toBuffer(message); + if (!self.service || self.service.config.region !== profile.sso_region) { + self.service = new AWS.SSO({ + region: profile.sso_region, + httpOptions: self.httpOptions, + }); + } - if (message.length < MINIMUM_MESSAGE_LENGTH) { - throw new Error('Provided message too short to accommodate event stream message overhead'); + self.service.getRoleCredentials(request, function(err, data) { + if (err || !data || !data.roleCredentials) { + callback(AWS.util.error( + err || new Error('Please log in using "aws sso login"'), + { code: self.errorCode } + ), null); + } else if (!data.roleCredentials.accessKeyId || !data.roleCredentials.secretAccessKey || !data.roleCredentials.sessionToken || !data.roleCredentials.expiration) { + throw AWS.util.error(new Error( + 'SSO returns an invalid temporary credential.' + )); + } else { + self.expired = false; + self.accessKeyId = data.roleCredentials.accessKeyId; + self.secretAccessKey = data.roleCredentials.secretAccessKey; + self.sessionToken = data.roleCredentials.sessionToken; + self.expireTime = new Date(data.roleCredentials.expiration); + callback(null); + } + }); + }); + } catch (err) { + callback(err); } + }, - if (message.length !== message.readUInt32BE(0)) { - throw new Error('Reported message length does not match received message length'); - } + /** + * @private + * Uses legacy file system retrieval or if sso-session is set, + * use the SSOTokenProvider. + * + * @param {string} profileName - name of the profile. + * @param {object} profile - profile data containing sso_session or sso_start_url etc. + * @param {function} callback - called with (err, (string) token). + * + * @returns {void} + */ + getToken: function getToken(profileName, profile, callback) { + var self = this; - var expectedPreludeChecksum = message.readUInt32BE(PRELUDE_LENGTH); + if (profile.sso_session) { + var _iniLoader = AWS.util.iniLoader; + var ssoSessions = _iniLoader.loadSsoSessionsFrom(); + var ssoSession = ssoSessions[profile.sso_session]; + Object.assign(profile, ssoSession); - if ( - expectedPreludeChecksum !== util.crypto.crc32( - message.slice(0, PRELUDE_LENGTH) - ) - ) { - throw new Error( - 'The prelude checksum specified in the message (' + - expectedPreludeChecksum + - ') does not match the calculated CRC32 checksum.' - ); + var ssoTokenProvider = new AWS.SSOTokenProvider({ + profile: profileName, + }); + ssoTokenProvider.get(function (err) { + if (err) { + return callback(err); + } + return callback(null, ssoTokenProvider.token); + }); + return; } - var expectedMessageChecksum = message.readUInt32BE(message.length - CHECKSUM_LENGTH); + try { + /** + * The time window (15 mins) that SDK will treat the SSO token expires in before the defined expiration date in token. + * This is needed because server side may have invalidated the token before the defined expiration date. + */ + var EXPIRE_WINDOW_MS = 15 * 60 * 1000; + var hasher = crypto.createHash('sha1'); + var fileName = hasher.update(profile.sso_start_url).digest('hex') + '.json'; + var cachePath = path.join( + iniLoader.getHomeDir(), + '.aws', + 'sso', + 'cache', + fileName + ); + var cacheFile = AWS.util.readFileSync(cachePath); + var cacheContent = null; + if (cacheFile) { + cacheContent = JSON.parse(cacheFile); + } + if (!cacheContent) { + throw AWS.util.error( + new Error('Cached credentials not found under ' + this.profile + ' profile. Please make sure you log in with aws sso login first'), + { code: self.errorCode } + ); + } - if ( - expectedMessageChecksum !== util.crypto.crc32( - message.slice(0, message.length - CHECKSUM_LENGTH) - ) - ) { - throw new Error( - 'The message checksum did not match the expected value of ' + - expectedMessageChecksum + if (!cacheContent.startUrl || !cacheContent.region || !cacheContent.accessToken || !cacheContent.expiresAt) { + throw AWS.util.error( + new Error('Cached credentials are missing required properties. Try running aws sso login.') ); - } + } - var headersStart = PRELUDE_LENGTH + CHECKSUM_LENGTH; - var headersEnd = headersStart + message.readUInt32BE(PRELUDE_MEMBER_LENGTH); + if (new Date(cacheContent.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { + throw AWS.util.error(new Error( + 'The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.' + )); + } - return { - headers: message.slice(headersStart, headersEnd), - body: message.slice(headersEnd, message.length - CHECKSUM_LENGTH), - }; -} + return callback(null, cacheContent.accessToken); + } catch (err) { + return callback(err, null); + } + }, -/** - * @api private - */ -module.exports = { - splitMessage: splitMessage -}; + /** + * Loads the credentials from the AWS SSO process + * + * @callback callback function(err) + * Called after the AWS SSO process has been executed. When this + * callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + iniLoader.clearCachedFiles(); + this.coalesceRefresh(callback || AWS.util.fn.callback); + }, +}); /***/ }), -/***/ 58523: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 34976: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); +var STS = __nccwpck_require__(72904); /** - * What is necessary to create an event stream in node? - * - http response stream - * - parser - * - event stream model + * Represents temporary credentials retrieved from {AWS.STS}. Without any + * extra parameters, credentials will be fetched from the + * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the + * {AWS.STS.assumeRole} operation will be used to fetch credentials for the + * role instead. + * + * @note AWS.TemporaryCredentials is deprecated, but remains available for + * backwards compatibility. {AWS.ChainableTemporaryCredentials} is the + * preferred class for temporary credentials. + * + * To setup temporary credentials, configure a set of master credentials + * using the standard credentials providers (environment, EC2 instance metadata, + * or from the filesystem), then set the global credentials to a new + * temporary credentials object: + * + * ```javascript + * // Note that environment credentials are loaded by default, + * // the following line is shown for clarity: + * AWS.config.credentials = new AWS.EnvironmentCredentials('AWS'); + * + * // Now set temporary credentials seeded from the master credentials + * AWS.config.credentials = new AWS.TemporaryCredentials(); + * + * // subsequent requests will now use temporary credentials from AWS STS. + * new AWS.S3().listBucket(function(err, data) { ... }); + * ``` + * + * @!attribute masterCredentials + * @return [AWS.Credentials] the master (non-temporary) credentials used to + * get and refresh temporary credentials from AWS STS. + * @note (see constructor) */ +AWS.TemporaryCredentials = AWS.util.inherit(AWS.Credentials, { + /** + * Creates a new temporary credentials object. + * + * @note In order to create temporary credentials, you first need to have + * "master" credentials configured in {AWS.Config.credentials}. These + * master credentials are necessary to retrieve the temporary credentials, + * as well as refresh the credentials when they expire. + * @param params [map] a map of options that are passed to the + * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations. + * If a `RoleArn` parameter is passed in, credentials will be based on the + * IAM role. + * @param masterCredentials [AWS.Credentials] the master (non-temporary) credentials + * used to get and refresh temporary credentials from AWS STS. + * @example Creating a new credentials object for generic temporary credentials + * AWS.config.credentials = new AWS.TemporaryCredentials(); + * @example Creating a new credentials object for an IAM role + * AWS.config.credentials = new AWS.TemporaryCredentials({ + * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials', + * }); + * @see AWS.STS.assumeRole + * @see AWS.STS.getSessionToken + */ + constructor: function TemporaryCredentials(params, masterCredentials) { + AWS.Credentials.call(this); + this.loadMasterCredentials(masterCredentials); + this.expired = true; -var EventMessageChunkerStream = (__nccwpck_require__(57980).EventMessageChunkerStream); -var EventUnmarshallerStream = (__nccwpck_require__(61760).EventUnmarshallerStream); - -function createEventStream(stream, parser, model) { - var eventStream = new EventUnmarshallerStream({ - parser: parser, - eventStreamModel: model - }); - - var eventMessageChunker = new EventMessageChunkerStream(); + this.params = params || {}; + if (this.params.RoleArn) { + this.params.RoleSessionName = + this.params.RoleSessionName || 'temporary-credentials'; + } + }, - stream.pipe( - eventMessageChunker - ).pipe(eventStream); + /** + * Refreshes credentials using {AWS.STS.assumeRole} or + * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed + * to the credentials {constructor}. + * + * @callback callback function(err) + * Called when the STS service responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh (callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); + }, - stream.on('error', function(err) { - eventMessageChunker.emit('error', err); + /** + * @api private + */ + load: function load (callback) { + var self = this; + self.createClients(); + self.masterCredentials.get(function () { + self.service.config.credentials = self.masterCredentials; + var operation = self.params.RoleArn ? + self.service.assumeRole : self.service.getSessionToken; + operation.call(self.service, function (err, data) { + if (!err) { + self.service.credentialsFrom(data, self); + } + callback(err); + }); }); + }, - eventMessageChunker.on('error', function(err) { - eventStream.emit('error', err); - }); + /** + * @api private + */ + loadMasterCredentials: function loadMasterCredentials (masterCredentials) { + this.masterCredentials = masterCredentials || AWS.config.credentials; + while (this.masterCredentials.masterCredentials) { + this.masterCredentials = this.masterCredentials.masterCredentials; + } - return eventStream; -} + if (typeof this.masterCredentials.get !== 'function') { + this.masterCredentials = new AWS.Credentials(this.masterCredentials); + } + }, -/** - * @api private - */ -module.exports = { - createEventStream: createEventStream -}; + /** + * @api private + */ + createClients: function () { + this.service = this.service || new STS({params: this.params}); + } + +}); /***/ }), -/***/ 43091: +/***/ 20135: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var SequentialExecutor = __nccwpck_require__(25555); -var DISCOVER_ENDPOINT = (__nccwpck_require__(49249).discoverEndpoint); +var AWS = __nccwpck_require__(53832); +var fs = __nccwpck_require__(79896); +var STS = __nccwpck_require__(72904); +var iniLoader = AWS.util.iniLoader; + /** - * The namespace used to register global event listeners for request building - * and sending. + * Represents OIDC credentials from a file on disk + * If the credentials expire, the SDK can {refresh} the credentials + * from the file. + * + * ## Using the web identity token file + * + * This provider is checked by default in the Node.js environment. To use + * the provider simply add your OIDC token to a file (ASCII encoding) and + * share the filename in either AWS_WEB_IDENTITY_TOKEN_FILE environment + * variable or web_identity_token_file shared config variable + * + * The file contains encoded OIDC token and the characters are + * ASCII encoded. OIDC tokens are JSON Web Tokens (JWT). + * JWT's are 3 base64 encoded strings joined by the '.' character. + * + * This class will read filename from AWS_WEB_IDENTITY_TOKEN_FILE + * environment variable or web_identity_token_file shared config variable, + * and get the OIDC token from filename. + * It will also read IAM role to be assumed from AWS_ROLE_ARN + * environment variable or role_arn shared config variable. + * This provider gets credetials using the {AWS.STS.assumeRoleWithWebIdentity} + * service operation + * + * @!macro nobrowser */ -AWS.EventListeners = { +AWS.TokenFileWebIdentityCredentials = AWS.util.inherit(AWS.Credentials, { + /** - * @!attribute VALIDATE_CREDENTIALS - * A request listener that validates whether the request is being - * sent with credentials. - * Handles the {AWS.Request~validate 'validate' Request event} - * @example Sending a request without validating credentials - * var listener = AWS.EventListeners.Core.VALIDATE_CREDENTIALS; - * request.removeListener('validate', listener); - * @readonly - * @return [Function] - * @!attribute VALIDATE_REGION - * A request listener that validates whether the region is set - * for a request. - * Handles the {AWS.Request~validate 'validate' Request event} - * @example Sending a request without validating region configuration - * var listener = AWS.EventListeners.Core.VALIDATE_REGION; - * request.removeListener('validate', listener); - * @readonly - * @return [Function] - * @!attribute VALIDATE_PARAMETERS - * A request listener that validates input parameters in a request. - * Handles the {AWS.Request~validate 'validate' Request event} - * @example Sending a request without validating parameters - * var listener = AWS.EventListeners.Core.VALIDATE_PARAMETERS; - * request.removeListener('validate', listener); - * @example Disable parameter validation globally - * AWS.EventListeners.Core.removeListener('validate', - * AWS.EventListeners.Core.VALIDATE_REGION); - * @readonly - * @return [Function] - * @!attribute SEND - * A request listener that initiates the HTTP connection for a - * request being sent. Handles the {AWS.Request~send 'send' Request event} - * @example Replacing the HTTP handler - * var listener = AWS.EventListeners.Core.SEND; - * request.removeListener('send', listener); - * request.on('send', function(response) { - * customHandler.send(response); - * }); - * @return [Function] - * @readonly - * @!attribute HTTP_DATA - * A request listener that reads data from the HTTP connection in order - * to build the response data. - * Handles the {AWS.Request~httpData 'httpData' Request event}. - * Remove this handler if you are overriding the 'httpData' event and - * do not want extra data processing and buffering overhead. - * @example Disabling default data processing - * var listener = AWS.EventListeners.Core.HTTP_DATA; - * request.removeListener('httpData', listener); - * @return [Function] - * @readonly + * @example Creating a new credentials object + * AWS.config.credentials = new AWS.TokenFileWebIdentityCredentials( + * // optionally provide configuration to apply to the underlying AWS.STS service client + * // if configuration is not provided, then configuration will be pulled from AWS.config + * { + * // specify timeout options + * httpOptions: { + * timeout: 100 + * } + * }); + * @see AWS.Config */ - Core: {} /* doc hack */ -}; + constructor: function TokenFileWebIdentityCredentials(clientConfig) { + AWS.Credentials.call(this); + this.data = null; + this.clientConfig = AWS.util.copy(clientConfig || {}); + }, -/** - * @api private - */ -function getOperationAuthtype(req) { - if (!req.service.api.operations) { - return ''; - } - var operation = req.service.api.operations[req.operation]; - return operation ? operation.authtype : ''; -} + /** + * Returns params from environment variables + * + * @api private + */ + getParamsFromEnv: function getParamsFromEnv() { + var ENV_TOKEN_FILE = 'AWS_WEB_IDENTITY_TOKEN_FILE', + ENV_ROLE_ARN = 'AWS_ROLE_ARN'; + if (process.env[ENV_TOKEN_FILE] && process.env[ENV_ROLE_ARN]) { + return [{ + envTokenFile: process.env[ENV_TOKEN_FILE], + roleArn: process.env[ENV_ROLE_ARN], + roleSessionName: process.env['AWS_ROLE_SESSION_NAME'] + }]; + } + }, -/** - * @api private - */ -function getIdentityType(req) { - var service = req.service; + /** + * Returns params from shared config variables + * + * @api private + */ + getParamsFromSharedConfig: function getParamsFromSharedConfig() { + var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader); + var profileName = process.env.AWS_PROFILE || AWS.util.defaultProfile; + var profile = profiles[profileName] || {}; - if (service.config.signatureVersion) { - return service.config.signatureVersion; - } + if (Object.keys(profile).length === 0) { + throw AWS.util.error( + new Error('Profile ' + profileName + ' not found'), + { code: 'TokenFileWebIdentityCredentialsProviderFailure' } + ); + } - if (service.api.signatureVersion) { - return service.api.signatureVersion; - } + var paramsArray = []; - return getOperationAuthtype(req); -} + while (!profile['web_identity_token_file'] && profile['source_profile']) { + paramsArray.unshift({ + roleArn: profile['role_arn'], + roleSessionName: profile['role_session_name'] + }); + var sourceProfile = profile['source_profile']; + profile = profiles[sourceProfile]; + } -AWS.EventListeners = { - Core: new SequentialExecutor().addNamedListeners(function(add, addAsync) { - addAsync( - 'VALIDATE_CREDENTIALS', 'validate', - function VALIDATE_CREDENTIALS(req, done) { - if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) return done(); // none + paramsArray.unshift({ + envTokenFile: profile['web_identity_token_file'], + roleArn: profile['role_arn'], + roleSessionName: profile['role_session_name'] + }); - var identityType = getIdentityType(req); - if (identityType === 'bearer') { - req.service.config.getToken(function(err) { - if (err) { - req.response.error = AWS.util.error(err, {code: 'TokenError'}); - } - done(); - }); - return; - } + return paramsArray; + }, - req.service.config.getCredentials(function(err) { + /** + * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity} + * + * @callback callback function(err) + * Called when the STS service responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see AWS.Credentials.get + */ + refresh: function refresh(callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); + }, + + /** + * @api private + */ + assumeRoleChaining: function assumeRoleChaining(paramsArray, callback) { + var self = this; + if (paramsArray.length === 0) { + self.service.credentialsFrom(self.data, self); + callback(); + } else { + var params = paramsArray.shift(); + self.service.config.credentials = self.service.credentialsFrom(self.data, self); + self.service.assumeRole( + { + RoleArn: params.roleArn, + RoleSessionName: params.roleSessionName || 'token-file-web-identity' + }, + function (err, data) { + self.data = null; if (err) { - req.response.error = AWS.util.error(err, - { - code: 'CredentialsError', - message: 'Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1' - } - ); + callback(err); + } else { + self.data = data; + self.assumeRoleChaining(paramsArray, callback); } - done(); - }); - }); - - add('VALIDATE_REGION', 'validate', function VALIDATE_REGION(req) { - if (!req.service.isGlobalEndpoint) { - var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!req.service.config.region) { - req.response.error = AWS.util.error(new Error(), - {code: 'ConfigError', message: 'Missing region in config'}); - } else if (!dnsHostRegex.test(req.service.config.region)) { - req.response.error = AWS.util.error(new Error(), - {code: 'ConfigError', message: 'Invalid region in config'}); - } - } - }); - - add('BUILD_IDEMPOTENCY_TOKENS', 'validate', function BUILD_IDEMPOTENCY_TOKENS(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var idempotentMembers = operation.idempotentMembers; - if (!idempotentMembers.length) { - return; - } - // creates a copy of params so user's param object isn't mutated - var params = AWS.util.copy(req.params); - for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { - if (!params[idempotentMembers[i]]) { - // add the member - params[idempotentMembers[i]] = AWS.util.uuid.v4(); } - } - req.params = params; - }); - - add('VALIDATE_PARAMETERS', 'validate', function VALIDATE_PARAMETERS(req) { - if (!req.service.api.operations) { - return; - } - var rules = req.service.api.operations[req.operation].input; - var validation = req.service.config.paramValidation; - new AWS.ParamValidator(validation).validate(rules, req.params); - }); - - add('COMPUTE_CHECKSUM', 'afterBuild', function COMPUTE_CHECKSUM(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var body = req.httpRequest.body; - var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === 'string'); - var headers = req.httpRequest.headers; - if ( - operation.httpChecksumRequired && - req.service.config.computeChecksums && - isNonStreamingPayload && - !headers['Content-MD5'] - ) { - var md5 = AWS.util.crypto.md5(body, 'base64'); - headers['Content-MD5'] = md5; - } - }); + ); + } + }, - addAsync('COMPUTE_SHA256', 'afterBuild', function COMPUTE_SHA256(req, done) { - req.haltHandlersOnError(); - if (!req.service.api.operations) { - return; + /** + * @api private + */ + load: function load(callback) { + var self = this; + try { + var paramsArray = self.getParamsFromEnv(); + if (!paramsArray) { + paramsArray = self.getParamsFromSharedConfig(); } - var operation = req.service.api.operations[req.operation]; - var authtype = operation ? operation.authtype : ''; - if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) return done(); // none - if (req.service.getSignerClass(req) === AWS.Signers.V4) { - var body = req.httpRequest.body || ''; - if (authtype.indexOf('unsigned-body') >= 0) { - req.httpRequest.headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD'; - return done(); + if (paramsArray) { + var params = paramsArray.shift(); + var oidcToken = fs.readFileSync(params.envTokenFile, {encoding: 'ascii'}); + if (!self.service) { + self.createClients(); } - AWS.util.computeSha256(body, function(err, sha) { - if (err) { - done(err); - } - else { - req.httpRequest.headers['X-Amz-Content-Sha256'] = sha; - done(); - } - }); - } else { - done(); - } - }); - - add('SET_CONTENT_LENGTH', 'afterBuild', function SET_CONTENT_LENGTH(req) { - var authtype = getOperationAuthtype(req); - var payloadMember = AWS.util.getRequestPayloadShape(req); - if (req.httpRequest.headers['Content-Length'] === undefined) { - try { - var length = AWS.util.string.byteLength(req.httpRequest.body); - req.httpRequest.headers['Content-Length'] = length; - } catch (err) { - if (payloadMember && payloadMember.isStreaming) { - if (payloadMember.requiresLength) { - //streaming payload requires length(s3, glacier) - throw err; - } else if (authtype.indexOf('unsigned-body') >= 0) { - //unbounded streaming payload(lex, mediastore) - req.httpRequest.headers['Transfer-Encoding'] = 'chunked'; - return; + self.service.assumeRoleWithWebIdentity( + { + WebIdentityToken: oidcToken, + RoleArn: params.roleArn, + RoleSessionName: params.roleSessionName || 'token-file-web-identity' + }, + function (err, data) { + self.data = null; + if (err) { + callback(err); } else { - throw err; + self.data = data; + self.assumeRoleChaining(paramsArray, callback); } } - throw err; - } + ); } - }); + } catch (err) { + callback(err); + } + }, - add('SET_HTTP_HOST', 'afterBuild', function SET_HTTP_HOST(req) { - req.httpRequest.headers['Host'] = req.httpRequest.endpoint.host; - }); + /** + * @api private + */ + createClients: function() { + if (!this.service) { + var stsConfig = AWS.util.merge({}, this.clientConfig); + this.service = new STS(stsConfig); - add('SET_TRACE_ID', 'afterBuild', function SET_TRACE_ID(req) { - var traceIdHeaderName = 'X-Amzn-Trace-Id'; - if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { - var ENV_LAMBDA_FUNCTION_NAME = 'AWS_LAMBDA_FUNCTION_NAME'; - var ENV_TRACE_ID = '_X_AMZN_TRACE_ID'; - var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - var traceId = process.env[ENV_TRACE_ID]; - if ( - typeof functionName === 'string' && - functionName.length > 0 && - typeof traceId === 'string' && - traceId.length > 0 - ) { - req.httpRequest.headers[traceIdHeaderName] = traceId; + // Retry in case of IDPCommunicationErrorException or InvalidIdentityToken + this.service.retryableError = function(error) { + if (error.code === 'IDPCommunicationErrorException' || error.code === 'InvalidIdentityToken') { + return true; + } else { + return AWS.Service.prototype.retryableError.call(this, error); } - } - }); + }; + } + } +}); - add('RESTART', 'restart', function RESTART() { - var err = this.response.error; - if (!err || !err.retryable) return; - this.httpRequest = new AWS.HttpRequest( - this.service.endpoint, - this.service.region - ); +/***/ }), - if (this.response.retryCount < this.service.config.maxRetries) { - this.response.retryCount++; - } else { - this.response.error = null; +/***/ 31948: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); +var STS = __nccwpck_require__(72904); + +/** + * Represents credentials retrieved from STS Web Identity Federation support. + * + * By default this provider gets credentials using the + * {AWS.STS.assumeRoleWithWebIdentity} service operation. This operation + * requires a `RoleArn` containing the ARN of the IAM trust policy for the + * application for which credentials will be given. In addition, the + * `WebIdentityToken` must be set to the token provided by the identity + * provider. See {constructor} for an example on creating a credentials + * object with proper `RoleArn` and `WebIdentityToken` values. + * + * ## Refreshing Credentials from Identity Service + * + * In addition to AWS credentials expiring after a given amount of time, the + * login token from the identity provider will also expire. Once this token + * expires, it will not be usable to refresh AWS credentials, and another + * token will be needed. The SDK does not manage refreshing of the token value, + * but this can be done through a "refresh token" supported by most identity + * providers. Consult the documentation for the identity provider for refreshing + * tokens. Once the refreshed token is acquired, you should make sure to update + * this new token in the credentials object's {params} property. The following + * code will update the WebIdentityToken, assuming you have retrieved an updated + * token from the identity provider: + * + * ```javascript + * AWS.config.credentials.params.WebIdentityToken = updatedToken; + * ``` + * + * Future calls to `credentials.refresh()` will now use the new token. + * + * @!attribute params + * @return [map] the map of params passed to + * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the + * `params.WebIdentityToken` property. + * @!attribute data + * @return [map] the raw data response from the call to + * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get + * access to other properties from the response. + */ +AWS.WebIdentityCredentials = AWS.util.inherit(AWS.Credentials, { + /** + * Creates a new credentials object. + * @param (see AWS.STS.assumeRoleWithWebIdentity) + * @example Creating a new credentials object + * AWS.config.credentials = new AWS.WebIdentityCredentials({ + * RoleArn: 'arn:aws:iam::1234567890:role/WebIdentity', + * WebIdentityToken: 'ABCDEFGHIJKLMNOP', // token from identity service + * RoleSessionName: 'web' // optional name, defaults to web-identity + * }, { + * // optionally provide configuration to apply to the underlying AWS.STS service client + * // if configuration is not provided, then configuration will be pulled from AWS.config + * + * // specify timeout options + * httpOptions: { + * timeout: 100 + * } + * }); + * @see AWS.STS.assumeRoleWithWebIdentity + * @see AWS.Config + */ + constructor: function WebIdentityCredentials(params, clientConfig) { + AWS.Credentials.call(this); + this.expired = true; + this.params = params; + this.params.RoleSessionName = this.params.RoleSessionName || 'web-identity'; + this.data = null; + this._clientConfig = AWS.util.copy(clientConfig || {}); + }, + + /** + * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity} + * + * @callback callback function(err) + * Called when the STS service responds (or fails). When + * this callback is called with no error, it means that the credentials + * information has been loaded into the object (as the `accessKeyId`, + * `secretAccessKey`, and `sessionToken` properties). + * @param err [Error] if an error occurred, this value will be filled + * @see get + */ + refresh: function refresh(callback) { + this.coalesceRefresh(callback || AWS.util.fn.callback); + }, + + /** + * @api private + */ + load: function load(callback) { + var self = this; + self.createClients(); + self.service.assumeRoleWithWebIdentity(function (err, data) { + self.data = null; + if (!err) { + self.data = data; + self.service.credentialsFrom(data, self); } + callback(err); }); + }, - var addToHead = true; - addAsync('DISCOVER_ENDPOINT', 'sign', DISCOVER_ENDPOINT, addToHead); + /** + * @api private + */ + createClients: function() { + if (!this.service) { + var stsConfig = AWS.util.merge({}, this._clientConfig); + stsConfig.params = this.params; + this.service = new STS(stsConfig); + } + } - addAsync('SIGN', 'sign', function SIGN(req, done) { - var service = req.service; - var identityType = getIdentityType(req); - if (!identityType || identityType.length === 0) return done(); // none +}); - if (identityType === 'bearer') { - service.config.getToken(function (err, token) { - if (err) { - req.response.error = err; - return done(); - } - try { - var SignerClass = service.getSignerClass(req); - var signer = new SignerClass(req.httpRequest); - signer.addAuthorization(token); - } catch (e) { - req.response.error = e; - } - done(); - }); - } else { - service.config.getCredentials(function (err, credentials) { - if (err) { - req.response.error = err; - return done(); - } +/***/ }), - try { - var date = service.getSkewCorrectedDate(); - var SignerClass = service.getSignerClass(req); - var operations = req.service.api.operations || {}; - var operation = operations[req.operation]; - var signer = new SignerClass(req.httpRequest, - service.getSigningName(req), - { - signatureCache: service.config.signatureCache, - operation: operation, - signatureVersion: service.api.signatureVersion - }); - signer.setServiceClientId(service._clientId); +/***/ 35702: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // clear old authorization headers - delete req.httpRequest.headers['Authorization']; - delete req.httpRequest.headers['Date']; - delete req.httpRequest.headers['X-Amz-Date']; +var AWS = __nccwpck_require__(53832); +var util = __nccwpck_require__(30879); +var endpointDiscoveryEnabledEnvs = ['AWS_ENABLE_ENDPOINT_DISCOVERY', 'AWS_ENDPOINT_DISCOVERY_ENABLED']; - // add new authorization - signer.addAuthorization(credentials, date); - req.signedAt = date; - } catch (e) { - req.response.error = e; - } - done(); - }); +/** + * Generate key (except resources and operation part) to index the endpoints in the cache + * If input shape has endpointdiscoveryid trait then use + * accessKey + operation + resources + region + service as cache key + * If input shape doesn't have endpointdiscoveryid trait then use + * accessKey + region + service as cache key + * @return [map] object with keys to index endpoints. + * @api private + */ +function getCacheKey(request) { + var service = request.service; + var api = service.api || {}; + var operations = api.operations; + var identifiers = {}; + if (service.config.region) { + identifiers.region = service.config.region; + } + if (api.serviceId) { + identifiers.serviceId = api.serviceId; + } + if (service.config.credentials.accessKeyId) { + identifiers.accessKeyId = service.config.credentials.accessKeyId; + } + return identifiers; +} +/** + * Recursive helper for marshallCustomIdentifiers(). + * Looks for required string input members that have 'endpointdiscoveryid' trait. + * @api private + */ +function marshallCustomIdentifiersHelper(result, params, shape) { + if (!shape || params === undefined || params === null) return; + if (shape.type === 'structure' && shape.required && shape.required.length > 0) { + util.arrayEach(shape.required, function(name) { + var memberShape = shape.members[name]; + if (memberShape.endpointDiscoveryId === true) { + var locationName = memberShape.isLocationName ? memberShape.name : name; + result[locationName] = String(params[name]); + } else { + marshallCustomIdentifiersHelper(result, params[name], memberShape); } }); - - add('VALIDATE_RESPONSE', 'validateResponse', function VALIDATE_RESPONSE(resp) { - if (this.service.successfulResponse(resp, this)) { - resp.data = {}; - resp.error = null; - } else { - resp.data = null; - resp.error = AWS.util.error(new Error(), - {code: 'UnknownError', message: 'An unknown error occurred.'}); + } +} + +/** + * Get custom identifiers for cache key. + * Identifies custom identifiers by checking each shape's `endpointDiscoveryId` trait. + * @param [object] request object + * @param [object] input shape of the given operation's api + * @api private + */ +function marshallCustomIdentifiers(request, shape) { + var identifiers = {}; + marshallCustomIdentifiersHelper(identifiers, request.params, shape); + return identifiers; +} + +/** + * Call endpoint discovery operation when it's optional. + * When endpoint is available in cache then use the cached endpoints. If endpoints + * are unavailable then use regional endpoints and call endpoint discovery operation + * asynchronously. This is turned off by default. + * @param [object] request object + * @api private + */ +function optionalDiscoverEndpoint(request) { + var service = request.service; + var api = service.api; + var operationModel = api.operations ? api.operations[request.operation] : undefined; + var inputShape = operationModel ? operationModel.input : undefined; + + var identifiers = marshallCustomIdentifiers(request, inputShape); + var cacheKey = getCacheKey(request); + if (Object.keys(identifiers).length > 0) { + cacheKey = util.update(cacheKey, identifiers); + if (operationModel) cacheKey.operation = operationModel.name; + } + var endpoints = AWS.endpointCache.get(cacheKey); + if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') { + //endpoint operation is being made but response not yet received + //or endpoint operation just failed in 1 minute + return; + } else if (endpoints && endpoints.length > 0) { + //found endpoint record from cache + request.httpRequest.updateEndpoint(endpoints[0].Address); + } else { + //endpoint record not in cache or outdated. make discovery operation + var endpointRequest = service.makeRequest(api.endpointOperation, { + Operation: operationModel.name, + Identifiers: identifiers, + }); + addApiVersionHeader(endpointRequest); + endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); + endpointRequest.removeListener('retry', AWS.EventListeners.Core.RETRY_CHECK); + //put in a placeholder for endpoints already requested, prevent + //too much in-flight calls + AWS.endpointCache.put(cacheKey, [{ + Address: '', + CachePeriodInMinutes: 1 + }]); + endpointRequest.send(function(err, data) { + if (data && data.Endpoints) { + AWS.endpointCache.put(cacheKey, data.Endpoints); + } else if (err) { + AWS.endpointCache.put(cacheKey, [{ + Address: '', + CachePeriodInMinutes: 1 //not to make more endpoint operation in next 1 minute + }]); } }); + } +} - add('ERROR', 'error', function ERROR(err, resp) { - var awsQueryCompatible = resp.request.service.api.awsQueryCompatible; - if (awsQueryCompatible) { - var headers = resp.httpResponse.headers; - var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined; - if (queryErrorCode && queryErrorCode.includes(';')) { - resp.error.code = queryErrorCode.split(';')[0]; - } - } - }, true); - - addAsync('SEND', 'send', function SEND(resp, done) { - resp.httpResponse._abortCallback = done; - resp.error = null; - resp.data = null; - - function callback(httpResp) { - resp.httpResponse.stream = httpResp; - var stream = resp.request.httpRequest.stream; - var service = resp.request.service; - var api = service.api; - var operationName = resp.request.operation; - var operation = api.operations[operationName] || {}; - - httpResp.on('headers', function onHeaders(statusCode, headers, statusMessage) { - resp.request.emit( - 'httpHeaders', - [statusCode, headers, resp, statusMessage] - ); - - if (!resp.httpResponse.streaming) { - if (AWS.HttpClient.streamsApiVersion === 2) { // streams2 API check - // if we detect event streams, we're going to have to - // return the stream immediately - if (operation.hasEventOutput && service.successfulResponse(resp)) { - // skip reading the IncomingStream - resp.request.emit('httpDone'); - done(); - return; - } - - httpResp.on('readable', function onReadable() { - var data = httpResp.read(); - if (data !== null) { - resp.request.emit('httpData', [data, resp]); - } - }); - } else { // legacy streams API - httpResp.on('data', function onData(data) { - resp.request.emit('httpData', [data, resp]); - }); - } - } - }); +var requestQueue = {}; - httpResp.on('end', function onEnd() { - if (!stream || !stream.didCallback) { - if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { - // don't concatenate response chunks when streaming event stream data when response is successful - return; - } - resp.request.emit('httpDone'); - done(); - } - }); - } +/** + * Call endpoint discovery operation when it's required. + * When endpoint is available in cache then use cached ones. If endpoints are + * unavailable then SDK should call endpoint operation then use returned new + * endpoint for the api call. SDK will automatically attempt to do endpoint + * discovery. This is turned off by default + * @param [object] request object + * @api private + */ +function requiredDiscoverEndpoint(request, done) { + var service = request.service; + var api = service.api; + var operationModel = api.operations ? api.operations[request.operation] : undefined; + var inputShape = operationModel ? operationModel.input : undefined; - function progress(httpResp) { - httpResp.on('sendProgress', function onSendProgress(value) { - resp.request.emit('httpUploadProgress', [value, resp]); - }); + var identifiers = marshallCustomIdentifiers(request, inputShape); + var cacheKey = getCacheKey(request); + if (Object.keys(identifiers).length > 0) { + cacheKey = util.update(cacheKey, identifiers); + if (operationModel) cacheKey.operation = operationModel.name; + } + var cacheKeyStr = AWS.EndpointCache.getKeyString(cacheKey); + var endpoints = AWS.endpointCache.get(cacheKeyStr); //endpoint cache also accepts string keys + if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') { + //endpoint operation is being made but response not yet received + //push request object to a pending queue + if (!requestQueue[cacheKeyStr]) requestQueue[cacheKeyStr] = []; + requestQueue[cacheKeyStr].push({request: request, callback: done}); + return; + } else if (endpoints && endpoints.length > 0) { + request.httpRequest.updateEndpoint(endpoints[0].Address); + done(); + } else { + var endpointRequest = service.makeRequest(api.endpointOperation, { + Operation: operationModel.name, + Identifiers: identifiers, + }); + endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); + addApiVersionHeader(endpointRequest); - httpResp.on('receiveProgress', function onReceiveProgress(value) { - resp.request.emit('httpDownloadProgress', [value, resp]); - }); - } + //put in a placeholder for endpoints already requested, prevent + //too much in-flight calls + AWS.endpointCache.put(cacheKeyStr, [{ + Address: '', + CachePeriodInMinutes: 60 //long-live cache + }]); + endpointRequest.send(function(err, data) { + if (err) { + request.response.error = util.error(err, { retryable: false }); + AWS.endpointCache.remove(cacheKey); - function error(err) { - if (err.code !== 'RequestAbortedError') { - var errCode = err.code === 'TimeoutError' ? err.code : 'NetworkingError'; - err = AWS.util.error(err, { - code: errCode, - region: resp.request.httpRequest.region, - hostname: resp.request.httpRequest.endpoint.hostname, - retryable: true + //fail all the pending requests in batch + if (requestQueue[cacheKeyStr]) { + var pendingRequests = requestQueue[cacheKeyStr]; + util.arrayEach(pendingRequests, function(requestContext) { + requestContext.request.response.error = util.error(err, { retryable: false }); + requestContext.callback(); }); + delete requestQueue[cacheKeyStr]; } - resp.error = err; - resp.request.emit('httpError', [resp.error, resp], function() { - done(); - }); - } - - function executeSend() { - var http = AWS.HttpClient.getInstance(); - var httpOptions = resp.request.service.config.httpOptions || {}; - try { - var stream = http.handleRequest(resp.request.httpRequest, httpOptions, - callback, error); - progress(stream); - } catch (err) { - error(err); - } - } - var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; - if (timeDiff >= 60 * 10) { // if we signed 10min ago, re-sign - this.emit('sign', [this], function(err) { - if (err) done(err); - else executeSend(); - }); - } else { - executeSend(); - } - }); + } else if (data) { + AWS.endpointCache.put(cacheKeyStr, data.Endpoints); + request.httpRequest.updateEndpoint(data.Endpoints[0].Address); - add('HTTP_HEADERS', 'httpHeaders', - function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { - resp.httpResponse.statusCode = statusCode; - resp.httpResponse.statusMessage = statusMessage; - resp.httpResponse.headers = headers; - resp.httpResponse.body = AWS.util.buffer.toBuffer(''); - resp.httpResponse.buffers = []; - resp.httpResponse.numBytes = 0; - var dateHeader = headers.date || headers.Date; - var service = resp.request.service; - if (dateHeader) { - var serverTime = Date.parse(dateHeader); - if (service.config.correctClockSkew - && service.isClockSkewed(serverTime)) { - service.applyClockOffset(serverTime); + //update the endpoint for all the pending requests in batch + if (requestQueue[cacheKeyStr]) { + var pendingRequests = requestQueue[cacheKeyStr]; + util.arrayEach(pendingRequests, function(requestContext) { + requestContext.request.httpRequest.updateEndpoint(data.Endpoints[0].Address); + requestContext.callback(); + }); + delete requestQueue[cacheKeyStr]; } } + done(); }); + } +} - add('HTTP_DATA', 'httpData', function HTTP_DATA(chunk, resp) { - if (chunk) { - if (AWS.util.isNode()) { - resp.httpResponse.numBytes += chunk.length; +/** + * add api version header to endpoint operation + * @api private + */ +function addApiVersionHeader(endpointRequest) { + var api = endpointRequest.service.api; + var apiVersion = api.apiVersion; + if (apiVersion && !endpointRequest.httpRequest.headers['x-amz-api-version']) { + endpointRequest.httpRequest.headers['x-amz-api-version'] = apiVersion; + } +} - var total = resp.httpResponse.headers['content-length']; - var progress = { loaded: resp.httpResponse.numBytes, total: total }; - resp.request.emit('httpDownloadProgress', [progress, resp]); - } +/** + * If api call gets invalid endpoint exception, SDK should attempt to remove the invalid + * endpoint from cache. + * @api private + */ +function invalidateCachedEndpoints(response) { + var error = response.error; + var httpResponse = response.httpResponse; + if (error && + (error.code === 'InvalidEndpointException' || httpResponse.statusCode === 421) + ) { + var request = response.request; + var operations = request.service.api.operations || {}; + var inputShape = operations[request.operation] ? operations[request.operation].input : undefined; + var identifiers = marshallCustomIdentifiers(request, inputShape); + var cacheKey = getCacheKey(request); + if (Object.keys(identifiers).length > 0) { + cacheKey = util.update(cacheKey, identifiers); + if (operations[request.operation]) cacheKey.operation = operations[request.operation].name; + } + AWS.endpointCache.remove(cacheKey); + } +} - resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk)); - } +/** + * If endpoint is explicitly configured, SDK should not do endpoint discovery in anytime. + * @param [object] client Service client object. + * @api private + */ +function hasCustomEndpoint(client) { + //if set endpoint is set for specific client, enable endpoint discovery will raise an error. + if (client._originalConfig && client._originalConfig.endpoint && client._originalConfig.endpointDiscoveryEnabled === true) { + throw util.error(new Error(), { + code: 'ConfigurationException', + message: 'Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.' }); + }; + var svcConfig = AWS.config[client.serviceIdentifier] || {}; + return Boolean(AWS.config.endpoint || svcConfig.endpoint || (client._originalConfig && client._originalConfig.endpoint)); +} - add('HTTP_DONE', 'httpDone', function HTTP_DONE(resp) { - // convert buffers array into single buffer - if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { - var body = AWS.util.buffer.concat(resp.httpResponse.buffers); - resp.httpResponse.body = body; - } - delete resp.httpResponse.numBytes; - delete resp.httpResponse.buffers; - }); +/** + * @api private + */ +function isFalsy(value) { + return ['false', '0'].indexOf(value) >= 0; +} - add('FINALIZE_ERROR', 'retry', function FINALIZE_ERROR(resp) { - if (resp.httpResponse.statusCode) { - resp.error.statusCode = resp.httpResponse.statusCode; - if (resp.error.retryable === undefined) { - resp.error.retryable = this.service.retryableError(resp.error, this); - } - } - }); +/** + * If endpoint discovery should perform for this request when no operation requires endpoint + * discovery for the given service. + * SDK performs config resolution in order like below: + * 1. If set in client configuration. + * 2. If set in env AWS_ENABLE_ENDPOINT_DISCOVERY. + * 3. If set in shared ini config file with key 'endpoint_discovery_enabled'. + * @param [object] request request object. + * @returns [boolean|undefined] if endpoint discovery config is not set in any source, this + * function returns undefined + * @api private + */ +function resolveEndpointDiscoveryConfig(request) { + var service = request.service || {}; + if (service.config.endpointDiscoveryEnabled !== undefined) { + return service.config.endpointDiscoveryEnabled; + } - add('INVALIDATE_CREDENTIALS', 'retry', function INVALIDATE_CREDENTIALS(resp) { - if (!resp.error) return; - switch (resp.error.code) { - case 'RequestExpired': // EC2 only - case 'ExpiredTokenException': - case 'ExpiredToken': - resp.error.retryable = true; - resp.request.service.config.credentials.expired = true; - } - }); + //shared ini file is only available in Node + //not to check env in browser + if (util.isBrowser()) return undefined; - add('EXPIRED_SIGNATURE', 'retry', function EXPIRED_SIGNATURE(resp) { - var err = resp.error; - if (!err) return; - if (typeof err.code === 'string' && typeof err.message === 'string') { - if (err.code.match(/Signature/) && err.message.match(/expired/)) { - resp.error.retryable = true; - } + // If any of recognized endpoint discovery config env is set + for (var i = 0; i < endpointDiscoveryEnabledEnvs.length; i++) { + var env = endpointDiscoveryEnabledEnvs[i]; + if (Object.prototype.hasOwnProperty.call(process.env, env)) { + if (process.env[env] === '' || process.env[env] === undefined) { + throw util.error(new Error(), { + code: 'ConfigurationException', + message: 'environmental variable ' + env + ' cannot be set to nothing' + }); } - }); + return !isFalsy(process.env[env]); + } + } - add('CLOCK_SKEWED', 'retry', function CLOCK_SKEWED(resp) { - if (!resp.error) return; - if (this.service.clockSkewError(resp.error) - && this.service.config.correctClockSkew) { - resp.error.retryable = true; - } - }); + var configFile = {}; + try { + configFile = AWS.util.iniLoader ? AWS.util.iniLoader.loadFrom({ + isConfig: true, + filename: process.env[AWS.util.sharedConfigFileEnv] + }) : {}; + } catch (e) {} + var sharedFileConfig = configFile[ + process.env.AWS_PROFILE || AWS.util.defaultProfile + ] || {}; + if (Object.prototype.hasOwnProperty.call(sharedFileConfig, 'endpoint_discovery_enabled')) { + if (sharedFileConfig.endpoint_discovery_enabled === undefined) { + throw util.error(new Error(), { + code: 'ConfigurationException', + message: 'config file entry \'endpoint_discovery_enabled\' cannot be set to nothing' + }); + } + return !isFalsy(sharedFileConfig.endpoint_discovery_enabled); + } + return undefined; +} - add('REDIRECT', 'retry', function REDIRECT(resp) { - if (resp.error && resp.error.statusCode >= 300 && - resp.error.statusCode < 400 && resp.httpResponse.headers['location']) { - this.httpRequest.endpoint = - new AWS.Endpoint(resp.httpResponse.headers['location']); - this.httpRequest.headers['Host'] = this.httpRequest.endpoint.host; - resp.error.redirect = true; - resp.error.retryable = true; - } - }); +/** + * attach endpoint discovery logic to request object + * @param [object] request + * @api private + */ +function discoverEndpoint(request, done) { + var service = request.service || {}; + if (hasCustomEndpoint(service) || request.isPresigned()) return done(); - add('RETRY_CHECK', 'retry', function RETRY_CHECK(resp) { - if (resp.error) { - if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.error.retryDelay = 0; - } else if (resp.retryCount < resp.maxRetries) { - resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; - } + var operations = service.api.operations || {}; + var operationModel = operations[request.operation]; + var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL'; + var isEnabled = resolveEndpointDiscoveryConfig(request); + var hasRequiredEndpointDiscovery = service.api.hasRequiredEndpointDiscovery; + if (isEnabled || hasRequiredEndpointDiscovery) { + // Once a customer enables endpoint discovery, the SDK should start appending + // the string endpoint-discovery to the user-agent on all requests. + request.httpRequest.appendToUserAgent('endpoint-discovery'); + } + switch (isEndpointDiscoveryRequired) { + case 'OPTIONAL': + if (isEnabled || hasRequiredEndpointDiscovery) { + // For a given service; if at least one operation requires endpoint discovery then the SDK must enable endpoint discovery + // by default for all operations of that service, including operations where endpoint discovery is optional. + optionalDiscoverEndpoint(request); + request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints); } - }); + done(); + break; + case 'REQUIRED': + if (isEnabled === false) { + // For a given operation; if endpoint discovery is required and it has been disabled on the SDK client, + // then the SDK must return a clear and actionable exception. + request.response.error = util.error(new Error(), { + code: 'ConfigurationException', + message: 'Endpoint Discovery is disabled but ' + service.api.className + '.' + request.operation + + '() requires it. Please check your configurations.' + }); + done(); + break; + } + request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints); + requiredDiscoverEndpoint(request, done); + break; + case 'NULL': + default: + done(); + break; + } +} - addAsync('RESET_RETRY_STATE', 'afterRetry', function RESET_RETRY_STATE(resp, done) { - var delay, willRetry = false; +module.exports = { + discoverEndpoint: discoverEndpoint, + requiredDiscoverEndpoint: requiredDiscoverEndpoint, + optionalDiscoverEndpoint: optionalDiscoverEndpoint, + marshallCustomIdentifiers: marshallCustomIdentifiers, + getCacheKey: getCacheKey, + invalidateCachedEndpoint: invalidateCachedEndpoints, +}; - if (resp.error) { - delay = resp.error.retryDelay || 0; - if (resp.error.retryable && resp.retryCount < resp.maxRetries) { - resp.retryCount++; - willRetry = true; - } else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.redirectCount++; - willRetry = true; - } - } - // delay < 0 is a signal from customBackoff to skip retries - if (willRetry && delay >= 0) { - resp.error = null; - setTimeout(done, delay); - } else { - done(); - } - }); - }), +/***/ }), - CorePost: new SequentialExecutor().addNamedListeners(function(add) { - add('EXTRACT_REQUEST_ID', 'extractData', AWS.util.extractRequestId); - add('EXTRACT_REQUEST_ID', 'extractError', AWS.util.extractRequestId); +/***/ 33336: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - add('ENOTFOUND_ERROR', 'httpError', function ENOTFOUND_ERROR(err) { - function isDNSError(err) { - return err.errno === 'ENOTFOUND' || - typeof err.errno === 'number' && - typeof AWS.util.getSystemErrorName === 'function' && - ['EAI_NONAME', 'EAI_NODATA'].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0); +var AWS = __nccwpck_require__(53832); +var util = AWS.util; +var typeOf = (__nccwpck_require__(75913).typeOf); +var DynamoDBSet = __nccwpck_require__(12996); +var NumberValue = __nccwpck_require__(57238); + +AWS.DynamoDB.Converter = { + /** + * Convert a JavaScript value to its equivalent DynamoDB AttributeValue type + * + * @param data [any] The data to convert to a DynamoDB AttributeValue + * @param options [map] + * @option options convertEmptyValues [Boolean] Whether to automatically + * convert empty strings, blobs, + * and sets to `null` + * @option options wrapNumbers [Boolean] Whether to return numbers as a + * NumberValue object instead of + * converting them to native JavaScript + * numbers. This allows for the safe + * round-trip transport of numbers of + * arbitrary size. + * @return [map] An object in the Amazon DynamoDB AttributeValue format + * + * @see AWS.DynamoDB.Converter.marshall AWS.DynamoDB.Converter.marshall to + * convert entire records (rather than individual attributes) + */ + input: function convertInput(data, options) { + options = options || {}; + var type = typeOf(data); + if (type === 'Object') { + return formatMap(data, options); + } else if (type === 'Array') { + return formatList(data, options); + } else if (type === 'Set') { + return formatSet(data, options); + } else if (type === 'String') { + if (data.length === 0 && options.convertEmptyValues) { + return convertInput(null); } - if (err.code === 'NetworkingError' && isDNSError(err)) { - var message = 'Inaccessible host: `' + err.hostname + '\' at port `' + err.port + - '\'. This service may not be available in the `' + err.region + - '\' region.'; - this.response.error = AWS.util.error(new Error(message), { - code: 'UnknownEndpoint', - region: err.region, - hostname: err.hostname, - retryable: true, - originalError: err - }); + return { S: data }; + } else if (type === 'Number' || type === 'NumberValue') { + return { N: data.toString() }; + } else if (type === 'Binary') { + if (data.length === 0 && options.convertEmptyValues) { + return convertInput(null); } - }); - }), + return { B: data }; + } else if (type === 'Boolean') { + return { BOOL: data }; + } else if (type === 'null') { + return { NULL: true }; + } else if (type !== 'undefined' && type !== 'Function') { + // this value has a custom constructor + return formatMap(data, options); + } + }, - Logger: new SequentialExecutor().addNamedListeners(function(add) { - add('LOG_REQUEST', 'complete', function LOG_REQUEST(resp) { - var req = resp.request; - var logger = req.service.config.logger; - if (!logger) return; - function filterSensitiveLog(inputShape, shape) { - if (!shape) { - return shape; + /** + * Convert a JavaScript object into a DynamoDB record. + * + * @param data [any] The data to convert to a DynamoDB record + * @param options [map] + * @option options convertEmptyValues [Boolean] Whether to automatically + * convert empty strings, blobs, + * and sets to `null` + * @option options wrapNumbers [Boolean] Whether to return numbers as a + * NumberValue object instead of + * converting them to native JavaScript + * numbers. This allows for the safe + * round-trip transport of numbers of + * arbitrary size. + * + * @return [map] An object in the DynamoDB record format. + * + * @example Convert a JavaScript object into a DynamoDB record + * var marshalled = AWS.DynamoDB.Converter.marshall({ + * string: 'foo', + * list: ['fizz', 'buzz', 'pop'], + * map: { + * nestedMap: { + * key: 'value', + * } + * }, + * number: 123, + * nullValue: null, + * boolValue: true, + * stringSet: new DynamoDBSet(['foo', 'bar', 'baz']) + * }); + */ + marshall: function marshallItem(data, options) { + return AWS.DynamoDB.Converter.input(data, options).M; + }, + + /** + * Convert a DynamoDB AttributeValue object to its equivalent JavaScript type. + * + * @param data [map] An object in the Amazon DynamoDB AttributeValue format + * @param options [map] + * @option options convertEmptyValues [Boolean] Whether to automatically + * convert empty strings, blobs, + * and sets to `null` + * @option options wrapNumbers [Boolean] Whether to return numbers as a + * NumberValue object instead of + * converting them to native JavaScript + * numbers. This allows for the safe + * round-trip transport of numbers of + * arbitrary size. + * + * @return [Object|Array|String|Number|Boolean|null] + * + * @see AWS.DynamoDB.Converter.unmarshall AWS.DynamoDB.Converter.unmarshall to + * convert entire records (rather than individual attributes) + */ + output: function convertOutput(data, options) { + options = options || {}; + var list, map, i; + for (var type in data) { + var values = data[type]; + if (type === 'M') { + map = {}; + for (var key in values) { + map[key] = convertOutput(values[key], options); } - if (inputShape.isSensitive) { - return '***SensitiveInformation***'; + return map; + } else if (type === 'L') { + list = []; + for (i = 0; i < values.length; i++) { + list.push(convertOutput(values[i], options)); } - switch (inputShape.type) { - case 'structure': - var struct = {}; - AWS.util.each(shape, function(subShapeName, subShape) { - if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) { - struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); - } else { - struct[subShapeName] = subShape; - } - }); - return struct; - case 'list': - var list = []; - AWS.util.arrayEach(shape, function(subShape, index) { - list.push(filterSensitiveLog(inputShape.member, subShape)); - }); - return list; - case 'map': - var map = {}; - AWS.util.each(shape, function(key, value) { - map[key] = filterSensitiveLog(inputShape.value, value); - }); - return map; - default: - return shape; + return list; + } else if (type === 'SS') { + list = []; + for (i = 0; i < values.length; i++) { + list.push(values[i] + ''); } - } - - function buildMessage() { - var time = resp.request.service.getSkewCorrectedDate().getTime(); - var delta = (time - req.startTime.getTime()) / 1000; - var ansi = logger.isTTY ? true : false; - var status = resp.httpResponse.statusCode; - var censoredParams = req.params; - if ( - req.service.api.operations && - req.service.api.operations[req.operation] && - req.service.api.operations[req.operation].input - ) { - var inputShape = req.service.api.operations[req.operation].input; - censoredParams = filterSensitiveLog(inputShape, req.params); + return new DynamoDBSet(list); + } else if (type === 'NS') { + list = []; + for (i = 0; i < values.length; i++) { + list.push(convertNumber(values[i], options.wrapNumbers)); } - var params = (__nccwpck_require__(73837).inspect)(censoredParams, true, null); - var message = ''; - if (ansi) message += '\x1B[33m'; - message += '[AWS ' + req.service.serviceIdentifier + ' ' + status; - message += ' ' + delta.toString() + 's ' + resp.retryCount + ' retries]'; - if (ansi) message += '\x1B[0;1m'; - message += ' ' + AWS.util.string.lowerFirst(req.operation); - message += '(' + params + ')'; - if (ansi) message += '\x1B[0m'; - return message; - } - - var line = buildMessage(); - if (typeof logger.log === 'function') { - logger.log(line); - } else if (typeof logger.write === 'function') { - logger.write(line + '\n'); + return new DynamoDBSet(list); + } else if (type === 'BS') { + list = []; + for (i = 0; i < values.length; i++) { + list.push(AWS.util.buffer.toBuffer(values[i])); + } + return new DynamoDBSet(list); + } else if (type === 'S') { + return values + ''; + } else if (type === 'N') { + return convertNumber(values, options.wrapNumbers); + } else if (type === 'B') { + return util.buffer.toBuffer(values); + } else if (type === 'BOOL') { + return (values === 'true' || values === 'TRUE' || values === true); + } else if (type === 'NULL') { + return null; } - }); - }), + } + }, - Json: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(67372); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }), + /** + * Convert a DynamoDB record into a JavaScript object. + * + * @param data [any] The DynamoDB record + * @param options [map] + * @option options convertEmptyValues [Boolean] Whether to automatically + * convert empty strings, blobs, + * and sets to `null` + * @option options wrapNumbers [Boolean] Whether to return numbers as a + * NumberValue object instead of + * converting them to native JavaScript + * numbers. This allows for the safe + * round-trip transport of numbers of + * arbitrary size. + * + * @return [map] An object whose properties have been converted from + * DynamoDB's AttributeValue format into their corresponding native + * JavaScript types. + * + * @example Convert a record received from a DynamoDB stream + * var unmarshalled = AWS.DynamoDB.Converter.unmarshall({ + * string: {S: 'foo'}, + * list: {L: [{S: 'fizz'}, {S: 'buzz'}, {S: 'pop'}]}, + * map: { + * M: { + * nestedMap: { + * M: { + * key: {S: 'value'} + * } + * } + * } + * }, + * number: {N: '123'}, + * nullValue: {NULL: true}, + * boolValue: {BOOL: true} + * }); + */ + unmarshall: function unmarshall(data, options) { + return AWS.DynamoDB.Converter.output({M: data}, options); + } +}; - Rest: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(79008); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }), +/** + * @api private + * @param data [Array] + * @param options [map] + */ +function formatList(data, options) { + var list = {L: []}; + for (var i = 0; i < data.length; i++) { + list['L'].push(AWS.DynamoDB.Converter.input(data[i], options)); + } + return list; +} - RestJson: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(34839); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - add('UNSET_CONTENT_LENGTH', 'afterBuild', svc.unsetContentLength); - }), +/** + * @api private + * @param value [String] + * @param wrapNumbers [Boolean] + */ +function convertNumber(value, wrapNumbers) { + return wrapNumbers ? new NumberValue(value) : Number(value); +} - RestXml: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(78932); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }), +/** + * @api private + * @param data [map] + * @param options [map] + */ +function formatMap(data, options) { + var map = {M: {}}; + for (var key in data) { + var formatted = AWS.DynamoDB.Converter.input(data[key], options); + if (formatted !== void 0) { + map['M'][key] = formatted; + } + } + return map; +} - Query: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(46556); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }) -}; +/** + * @api private + */ +function formatSet(data, options) { + options = options || {}; + var values = data.values; + if (options.convertEmptyValues) { + values = filterEmptySetValues(data); + if (values.length === 0) { + return AWS.DynamoDB.Converter.input(null); + } + } + var map = {}; + switch (data.type) { + case 'String': map['SS'] = values; break; + case 'Binary': map['BS'] = values; break; + case 'Number': map['NS'] = values.map(function (value) { + return value.toString(); + }); + } + return map; +} -/***/ }), +/** + * @api private + */ +function filterEmptySetValues(set) { + var nonEmptyValues = []; + var potentiallyEmptyTypes = { + String: true, + Binary: true, + Number: false + }; + if (potentiallyEmptyTypes[set.type]) { + for (var i = 0; i < set.values.length; i++) { + if (set.values[i].length === 0) { + continue; + } + nonEmptyValues.push(set.values[i]); + } -/***/ 72574: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + return nonEmptyValues; + } -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; + return set.values; +} /** - * The endpoint that a service will talk to, for example, - * `'https://ec2.ap-southeast-1.amazonaws.com'`. If - * you need to override an endpoint for a service, you can - * set the endpoint on a service by passing the endpoint - * object with the `endpoint` option key: - * - * ```javascript - * var ep = new AWS.Endpoint('awsproxy.example.com'); - * var s3 = new AWS.S3({endpoint: ep}); - * s3.service.endpoint.hostname == 'awsproxy.example.com' - * ``` - * - * Note that if you do not specify a protocol, the protocol will - * be selected based on your current {AWS.config} configuration. - * - * @!attribute protocol - * @return [String] the protocol (http or https) of the endpoint - * URL - * @!attribute hostname - * @return [String] the host portion of the endpoint, e.g., - * example.com - * @!attribute host - * @return [String] the host portion of the endpoint including - * the port, e.g., example.com:80 - * @!attribute port - * @return [Integer] the port of the endpoint - * @!attribute href - * @return [String] the full URL of the endpoint + * @api private */ -AWS.Endpoint = inherit({ - - /** - * @overload Endpoint(endpoint) - * Constructs a new endpoint given an endpoint URL. If the - * URL omits a protocol (http or https), the default protocol - * set in the global {AWS.config} will be used. - * @param endpoint [String] the URL to construct an endpoint from - */ - constructor: function Endpoint(endpoint, config) { - AWS.util.hideProperties(this, ['slashes', 'auth', 'hash', 'search', 'query']); - - if (typeof endpoint === 'undefined' || endpoint === null) { - throw new Error('Invalid endpoint: ' + endpoint); - } else if (typeof endpoint !== 'string') { - return AWS.util.copy(endpoint); - } +module.exports = AWS.DynamoDB.Converter; - if (!endpoint.match(/^http/)) { - var useSSL = config && config.sslEnabled !== undefined ? - config.sslEnabled : AWS.config.sslEnabled; - endpoint = (useSSL ? 'https' : 'http') + '://' + endpoint; - } - AWS.util.update(this, AWS.util.urlParse(endpoint)); +/***/ }), - // Ensure the port property is set as an integer - if (this.port) { - this.port = parseInt(this.port, 10); - } else { - this.port = this.protocol === 'https:' ? 443 : 80; - } - } +/***/ 89513: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -}); +var AWS = __nccwpck_require__(53832); +var Translator = __nccwpck_require__(19000); +var DynamoDBSet = __nccwpck_require__(12996); /** - * The low level HTTP request object, encapsulating all HTTP header - * and body data sent by a service request. + * The document client simplifies working with items in Amazon DynamoDB + * by abstracting away the notion of attribute values. This abstraction + * annotates native JavaScript types supplied as input parameters, as well + * as converts annotated response data to native JavaScript types. + * + * ## Marshalling Input and Unmarshalling Response Data + * + * The document client affords developers the use of native JavaScript types + * instead of `AttributeValue`s to simplify the JavaScript development + * experience with Amazon DynamoDB. JavaScript objects passed in as parameters + * are marshalled into `AttributeValue` shapes required by Amazon DynamoDB. + * Responses from DynamoDB are unmarshalled into plain JavaScript objects + * by the `DocumentClient`. The `DocumentClient`, does not accept + * `AttributeValue`s in favor of native JavaScript types. + * + * | JavaScript Type | DynamoDB AttributeValue | + * |:----------------------------------------------------------------------:|-------------------------| + * | String | S | + * | Number | N | + * | Boolean | BOOL | + * | null | NULL | + * | Array | L | + * | Object | M | + * | Buffer, File, Blob, ArrayBuffer, DataView, and JavaScript typed arrays | B | + * + * ## Support for Sets + * + * The `DocumentClient` offers a convenient way to create sets from + * JavaScript Arrays. The type of set is inferred from the first element + * in the array. DynamoDB supports string, number, and binary sets. To + * learn more about supported types see the + * [Amazon DynamoDB Data Model Documentation](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html) + * For more information see {AWS.DynamoDB.DocumentClient.createSet} * - * @!attribute method - * @return [String] the HTTP method of the request - * @!attribute path - * @return [String] the path portion of the URI, e.g., - * "/list/?start=5&num=10" - * @!attribute headers - * @return [map] - * a map of header keys and their respective values - * @!attribute body - * @return [String] the request body payload - * @!attribute endpoint - * @return [AWS.Endpoint] the endpoint for the request - * @!attribute region - * @api private - * @return [String] the region, for signing purposes only. */ -AWS.HttpRequest = inherit({ +AWS.DynamoDB.DocumentClient = AWS.util.inherit({ + + /** + * Creates a DynamoDB document client with a set of configuration options. + * + * @option options params [map] An optional map of parameters to bind to every + * request sent by this service object. + * @option options service [AWS.DynamoDB] An optional pre-configured instance + * of the AWS.DynamoDB service object. This instance's config will be + * copied to a new instance used by this client. You should not need to + * retain a reference to the input object, and may destroy it or allow it + * to be garbage collected. + * @option options convertEmptyValues [Boolean] set to true if you would like + * the document client to convert empty values (0-length strings, binary + * buffers, and sets) to be converted to NULL types when persisting to + * DynamoDB. + * @option options wrapNumbers [Boolean] Set to true to return numbers as a + * NumberValue object instead of converting them to native JavaScript numbers. + * This allows for the safe round-trip transport of numbers of arbitrary size. + * @see AWS.DynamoDB.constructor + * + */ + constructor: function DocumentClient(options) { + var self = this; + self.options = options || {}; + self.configure(self.options); + }, /** * @api private */ - constructor: function HttpRequest(endpoint, region) { - endpoint = new AWS.Endpoint(endpoint); - this.method = 'POST'; - this.path = endpoint.path || '/'; - this.headers = {}; - this.body = ''; - this.endpoint = endpoint; - this.region = region; - this._userAgent = ''; - this.setUserAgent(); + configure: function configure(options) { + var self = this; + self.service = options.service; + self.bindServiceObject(options); + self.attrValue = options.attrValue = + self.service.api.operations.putItem.input.members.Item.value.shape; }, /** * @api private */ - setUserAgent: function setUserAgent() { - this._userAgent = this.headers[this.getUserAgentHeaderName()] = AWS.util.userAgent(); - }, + bindServiceObject: function bindServiceObject(options) { + var self = this; + options = options || {}; - getUserAgentHeaderName: function getUserAgentHeaderName() { - var prefix = AWS.util.isBrowser() ? 'X-Amz-' : ''; - return prefix + 'User-Agent'; + if (!self.service) { + self.service = new AWS.DynamoDB(options); + } else { + var config = AWS.util.copy(self.service.config); + self.service = new self.service.constructor.__super__(config); + self.service.config.params = + AWS.util.merge(self.service.config.params || {}, options.params); + } }, /** * @api private */ - appendToUserAgent: function appendToUserAgent(agentPartial) { - if (typeof agentPartial === 'string' && agentPartial) { - this._userAgent += ' ' + agentPartial; + makeServiceRequest: function(operation, params, callback) { + var self = this; + var request = self.service[operation](params); + self.setupRequest(request); + self.setupResponse(request); + if (typeof callback === 'function') { + request.send(callback); } - this.headers[this.getUserAgentHeaderName()] = this._userAgent; + return request; }, /** * @api private */ - getUserAgent: function getUserAgent() { - return this._userAgent; + serviceClientOperationsMap: { + batchGet: 'batchGetItem', + batchWrite: 'batchWriteItem', + delete: 'deleteItem', + get: 'getItem', + put: 'putItem', + query: 'query', + scan: 'scan', + update: 'updateItem', + transactGet: 'transactGetItems', + transactWrite: 'transactWriteItems' }, /** - * @return [String] the part of the {path} excluding the - * query string + * Returns the attributes of one or more items from one or more tables + * by delegating to `AWS.DynamoDB.batchGetItem()`. + * + * Supply the same parameters as {AWS.DynamoDB.batchGetItem} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.batchGetItem + * @example Get items from multiple tables + * var params = { + * RequestItems: { + * 'Table-1': { + * Keys: [ + * { + * HashKey: 'haskey', + * NumberRangeKey: 1 + * } + * ] + * }, + * 'Table-2': { + * Keys: [ + * { foo: 'bar' }, + * ] + * } + * } + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.batchGet(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * */ - pathname: function pathname() { - return this.path.split('?', 1)[0]; + batchGet: function(params, callback) { + var operation = this.serviceClientOperationsMap['batchGet']; + return this.makeServiceRequest(operation, params, callback); }, /** - * @return [String] the query string portion of the {path} + * Puts or deletes multiple items in one or more tables by delegating + * to `AWS.DynamoDB.batchWriteItem()`. + * + * Supply the same parameters as {AWS.DynamoDB.batchWriteItem} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.batchWriteItem + * @example Write to and delete from a table + * var params = { + * RequestItems: { + * 'Table-1': [ + * { + * DeleteRequest: { + * Key: { HashKey: 'someKey' } + * } + * }, + * { + * PutRequest: { + * Item: { + * HashKey: 'anotherKey', + * NumAttribute: 1, + * BoolAttribute: true, + * ListAttribute: [1, 'two', false], + * MapAttribute: { foo: 'bar' } + * } + * } + * } + * ] + * } + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.batchWrite(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * */ - search: function search() { - var query = this.path.split('?', 2)[1]; - if (query) { - query = AWS.util.queryStringParse(query); - return AWS.util.queryParamsToString(query); - } - return ''; + batchWrite: function(params, callback) { + var operation = this.serviceClientOperationsMap['batchWrite']; + return this.makeServiceRequest(operation, params, callback); }, /** - * @api private - * update httpRequest endpoint with endpoint string + * Deletes a single item in a table by primary key by delegating to + * `AWS.DynamoDB.deleteItem()` + * + * Supply the same parameters as {AWS.DynamoDB.deleteItem} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.deleteItem + * @example Delete an item from a table + * var params = { + * TableName : 'Table', + * Key: { + * HashKey: 'hashkey', + * NumberRangeKey: 1 + * } + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.delete(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * */ - updateEndpoint: function updateEndpoint(endpointStr) { - var newEndpoint = new AWS.Endpoint(endpointStr); - this.endpoint = newEndpoint; - this.path = newEndpoint.path || '/'; - if (this.headers['Host']) { - this.headers['Host'] = newEndpoint.host; - } - } -}); - -/** - * The low level HTTP response object, encapsulating all HTTP header - * and body data returned from the request. - * - * @!attribute statusCode - * @return [Integer] the HTTP status code of the response (e.g., 200, 404) - * @!attribute headers - * @return [map] - * a map of response header keys and their respective values - * @!attribute body - * @return [String] the response body payload - * @!attribute [r] streaming - * @return [Boolean] whether this response is being streamed at a low-level. - * Defaults to `false` (buffered reads). Do not modify this manually, use - * {createUnbufferedStream} to convert the stream to unbuffered mode - * instead. - */ -AWS.HttpResponse = inherit({ + delete: function(params, callback) { + var operation = this.serviceClientOperationsMap['delete']; + return this.makeServiceRequest(operation, params, callback); + }, /** - * @api private + * Returns a set of attributes for the item with the given primary key + * by delegating to `AWS.DynamoDB.getItem()`. + * + * Supply the same parameters as {AWS.DynamoDB.getItem} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.getItem + * @example Get an item from a table + * var params = { + * TableName : 'Table', + * Key: { + * HashKey: 'hashkey' + * } + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.get(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * */ - constructor: function HttpResponse() { - this.statusCode = undefined; - this.headers = {}; - this.body = undefined; - this.streaming = false; - this.stream = null; + get: function(params, callback) { + var operation = this.serviceClientOperationsMap['get']; + return this.makeServiceRequest(operation, params, callback); }, /** - * Disables buffering on the HTTP response and returns the stream for reading. - * @return [Stream, XMLHttpRequest, null] the underlying stream object. - * Use this object to directly read data off of the stream. - * @note This object is only available after the {AWS.Request~httpHeaders} - * event has fired. This method must be called prior to - * {AWS.Request~httpData}. - * @example Taking control of a stream - * request.on('httpHeaders', function(statusCode, headers) { - * if (statusCode < 300) { - * if (headers.etag === 'xyz') { - * // pipe the stream, disabling buffering - * var stream = this.response.httpResponse.createUnbufferedStream(); - * stream.pipe(process.stdout); - * } else { // abort this request and set a better error message - * this.abort(); - * this.response.error = new Error('Invalid ETag'); - * } - * } - * }).send(console.log); + * Creates a new item, or replaces an old item with a new item by + * delegating to `AWS.DynamoDB.putItem()`. + * + * Supply the same parameters as {AWS.DynamoDB.putItem} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.putItem + * @example Create a new item in a table + * var params = { + * TableName : 'Table', + * Item: { + * HashKey: 'haskey', + * NumAttribute: 1, + * BoolAttribute: true, + * ListAttribute: [1, 'two', false], + * MapAttribute: { foo: 'bar'}, + * NullAttribute: null + * } + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.put(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * */ - createUnbufferedStream: function createUnbufferedStream() { - this.streaming = true; - return this.stream; - } -}); + put: function(params, callback) { + var operation = this.serviceClientOperationsMap['put']; + return this.makeServiceRequest(operation, params, callback); + }, + /** + * Edits an existing item's attributes, or adds a new item to the table if + * it does not already exist by delegating to `AWS.DynamoDB.updateItem()`. + * + * Supply the same parameters as {AWS.DynamoDB.updateItem} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.updateItem + * @example Update an item with expressions + * var params = { + * TableName: 'Table', + * Key: { HashKey : 'hashkey' }, + * UpdateExpression: 'set #a = :x + :y', + * ConditionExpression: '#a < :MAX', + * ExpressionAttributeNames: {'#a' : 'Sum'}, + * ExpressionAttributeValues: { + * ':x' : 20, + * ':y' : 45, + * ':MAX' : 100, + * } + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.update(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * + */ + update: function(params, callback) { + var operation = this.serviceClientOperationsMap['update']; + return this.makeServiceRequest(operation, params, callback); + }, -AWS.HttpClient = inherit({}); + /** + * Returns one or more items and item attributes by accessing every item + * in a table or a secondary index. + * + * Supply the same parameters as {AWS.DynamoDB.scan} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.scan + * @example Scan the table with a filter expression + * var params = { + * TableName : 'Table', + * FilterExpression : 'Year = :this_year', + * ExpressionAttributeValues : {':this_year' : 2015} + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.scan(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * + */ + scan: function(params, callback) { + var operation = this.serviceClientOperationsMap['scan']; + return this.makeServiceRequest(operation, params, callback); + }, -/** - * @api private - */ -AWS.HttpClient.getInstance = function getInstance() { - if (this.singleton === undefined) { - this.singleton = new this(); - } - return this.singleton; -}; + /** + * Directly access items from a table by primary key or a secondary index. + * + * Supply the same parameters as {AWS.DynamoDB.query} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.query + * @example Query an index + * var params = { + * TableName: 'Table', + * IndexName: 'Index', + * KeyConditionExpression: 'HashKey = :hkey and RangeKey > :rkey', + * ExpressionAttributeValues: { + * ':hkey': 'key', + * ':rkey': 2015 + * } + * }; + * + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * documentClient.query(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * + */ + query: function(params, callback) { + var operation = this.serviceClientOperationsMap['query']; + return this.makeServiceRequest(operation, params, callback); + }, + /** + * Synchronous write operation that groups up to 100 action requests. + * + * Supply the same parameters as {AWS.DynamoDB.transactWriteItems} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.transactWriteItems + * @example Get items from multiple tables + * var params = { + * TransactItems: [{ + * Put: { + * TableName : 'Table0', + * Item: { + * HashKey: 'haskey', + * NumAttribute: 1, + * BoolAttribute: true, + * ListAttribute: [1, 'two', false], + * MapAttribute: { foo: 'bar'}, + * NullAttribute: null + * } + * } + * }, { + * Update: { + * TableName: 'Table1', + * Key: { HashKey : 'hashkey' }, + * UpdateExpression: 'set #a = :x + :y', + * ConditionExpression: '#a < :MAX', + * ExpressionAttributeNames: {'#a' : 'Sum'}, + * ExpressionAttributeValues: { + * ':x' : 20, + * ':y' : 45, + * ':MAX' : 100, + * } + * } + * }] + * }; + * + * documentClient.transactWrite(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + */ + transactWrite: function(params, callback) { + var operation = this.serviceClientOperationsMap['transactWrite']; + return this.makeServiceRequest(operation, params, callback); + }, -/***/ }), + /** + * Atomically retrieves multiple items from one or more tables (but not from indexes) + * in a single account and region. + * + * Supply the same parameters as {AWS.DynamoDB.transactGetItems} with + * `AttributeValue`s substituted by native JavaScript types. + * + * @see AWS.DynamoDB.transactGetItems + * @example Get items from multiple tables + * var params = { + * TransactItems: [{ + * Get: { + * TableName : 'Table0', + * Key: { + * HashKey: 'hashkey0' + * } + * } + * }, { + * Get: { + * TableName : 'Table1', + * Key: { + * HashKey: 'hashkey1' + * } + * } + * }] + * }; + * + * documentClient.transactGet(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + */ + transactGet: function(params, callback) { + var operation = this.serviceClientOperationsMap['transactGet']; + return this.makeServiceRequest(operation, params, callback); + }, -/***/ 10773: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + /** + * Creates a set of elements inferring the type of set from + * the type of the first element. Amazon DynamoDB currently supports + * the number sets, string sets, and binary sets. For more information + * about DynamoDB data types see the documentation on the + * [Amazon DynamoDB Data Model](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModel.DataTypes). + * + * @param list [Array] Collection to represent your DynamoDB Set + * @param options [map] + * * **validate** [Boolean] set to true if you want to validate the type + * of each element in the set. Defaults to `false`. + * @example Creating a number set + * var documentClient = new AWS.DynamoDB.DocumentClient(); + * + * var params = { + * Item: { + * hashkey: 'hashkey' + * numbers: documentClient.createSet([1, 2, 3]); + * } + * }; + * + * documentClient.put(params, function(err, data) { + * if (err) console.log(err); + * else console.log(data); + * }); + * + */ + createSet: function(list, options) { + options = options || {}; + return new DynamoDBSet(list, options); + }, -var AWS = __nccwpck_require__(14741); -var Stream = AWS.util.stream.Stream; -var TransformStream = AWS.util.stream.Transform; -var ReadableStream = AWS.util.stream.Readable; -__nccwpck_require__(72574); -var CONNECTION_REUSE_ENV_NAME = 'AWS_NODEJS_CONNECTION_REUSE_ENABLED'; + /** + * @api private + */ + getTranslator: function() { + return new Translator(this.options); + }, -/** - * @api private - */ -AWS.NodeHttpClient = AWS.util.inherit({ - handleRequest: function handleRequest(httpRequest, httpOptions, callback, errCallback) { + /** + * @api private + */ + setupRequest: function setupRequest(request) { var self = this; - var endpoint = httpRequest.endpoint; - var pathPrefix = ''; - if (!httpOptions) httpOptions = {}; - if (httpOptions.proxy) { - pathPrefix = endpoint.protocol + '//' + endpoint.hostname; - if (endpoint.port !== 80 && endpoint.port !== 443) { - pathPrefix += ':' + endpoint.port; - } - endpoint = new AWS.Endpoint(httpOptions.proxy); - } - - var useSSL = endpoint.protocol === 'https:'; - var http = useSSL ? __nccwpck_require__(95687) : __nccwpck_require__(13685); - var options = { - host: endpoint.hostname, - port: endpoint.port, - method: httpRequest.method, - headers: httpRequest.headers, - path: pathPrefix + httpRequest.path - }; - - AWS.util.update(options, httpOptions); - - if (!httpOptions.agent) { - options.agent = this.getAgent(useSSL, { - keepAlive: process.env[CONNECTION_REUSE_ENV_NAME] === '1' ? true : false - }); - } - - delete options.proxy; // proxy isn't an HTTP option - delete options.timeout; // timeout isn't an HTTP option - - var stream = http.request(options, function (httpResp) { - if (stream.didCallback) return; + var translator = self.getTranslator(); + var operation = request.operation; + var inputShape = request.service.api.operations[operation].input; + request._events.validate.unshift(function(req) { + req.rawParams = AWS.util.copy(req.params); + req.params = translator.translateInput(req.rawParams, inputShape); + }); + }, - callback(httpResp); - httpResp.emit( - 'headers', - httpResp.statusCode, - httpResp.headers, - httpResp.statusMessage - ); + /** + * @api private + */ + setupResponse: function setupResponse(request) { + var self = this; + var translator = self.getTranslator(); + var outputShape = self.service.api.operations[request.operation].output; + request.on('extractData', function(response) { + response.data = translator.translateOutput(response.data, outputShape); }); - httpRequest.stream = stream; // attach stream to httpRequest - stream.didCallback = false; - // connection timeout support - if (httpOptions.connectTimeout) { - var connectTimeoutId; - stream.on('socket', function(socket) { - if (socket.connecting) { - connectTimeoutId = setTimeout(function connectTimeout() { - if (stream.didCallback) return; stream.didCallback = true; + var response = request.response; + response.nextPage = function(cb) { + var resp = this; + var req = resp.request; + var config; + var service = req.service; + var operation = req.operation; + try { + config = service.paginationConfig(operation, true); + } catch (e) { resp.error = e; } - stream.abort(); - errCallback(AWS.util.error( - new Error('Socket timed out without establishing a connection'), - {code: 'TimeoutError'} - )); - }, httpOptions.connectTimeout); - socket.on('connect', function() { - clearTimeout(connectTimeoutId); - connectTimeoutId = null; - }); + if (!resp.hasNextPage()) { + if (cb) cb(resp.error, null); + else if (resp.error) throw resp.error; + return null; + } + + var params = AWS.util.copy(req.rawParams); + if (!resp.nextPageTokens) { + return cb ? cb(null, null) : null; + } else { + var inputTokens = config.inputToken; + if (typeof inputTokens === 'string') inputTokens = [inputTokens]; + for (var i = 0; i < inputTokens.length; i++) { + params[inputTokens[i]] = resp.nextPageTokens[i]; } - }); - } + return self[operation](params, cb); + } + }; + } - // timeout support - stream.setTimeout(httpOptions.timeout || 0, function() { - if (stream.didCallback) return; stream.didCallback = true; +}); - var msg = 'Connection timed out after ' + httpOptions.timeout + 'ms'; - errCallback(AWS.util.error(new Error(msg), {code: 'TimeoutError'})); - stream.abort(); - }); +/** + * @api private + */ +module.exports = AWS.DynamoDB.DocumentClient; - stream.on('error', function(err) { - if (connectTimeoutId) { - clearTimeout(connectTimeoutId); - connectTimeoutId = null; - } - if (stream.didCallback) return; stream.didCallback = true; - if ('ECONNRESET' === err.code || 'EPIPE' === err.code || 'ETIMEDOUT' === err.code) { - errCallback(AWS.util.error(err, {code: 'TimeoutError'})); - } else { - errCallback(err); - } - }); - var expect = httpRequest.headers.Expect || httpRequest.headers.expect; - if (expect === '100-continue') { - stream.once('continue', function() { - self.writeBody(stream, httpRequest); - }); - } else { - this.writeBody(stream, httpRequest); - } +/***/ }), - return stream; - }, +/***/ 57238: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - writeBody: function writeBody(stream, httpRequest) { - var body = httpRequest.body; - var totalBytes = parseInt(httpRequest.headers['Content-Length'], 10); +var util = (__nccwpck_require__(53832).util); - if (body instanceof Stream) { - // For progress support of streaming content - - // pipe the data through a transform stream to emit 'sendProgress' events - var progressStream = this.progressStream(stream, totalBytes); - if (progressStream) { - body.pipe(progressStream).pipe(stream); - } else { - body.pipe(stream); - } - } else if (body) { - // The provided body is a buffer/string and is already fully available in memory - - // For performance it's best to send it as a whole by calling stream.end(body), - // Callers expect a 'sendProgress' event which is best emitted once - // the http request stream has been fully written and all data flushed. - // The use of totalBytes is important over body.length for strings where - // length is char length and not byte length. - stream.once('finish', function() { - stream.emit('sendProgress', { - loaded: totalBytes, - total: totalBytes - }); - }); - stream.end(body); - } else { - // no request body - stream.end(); - } +/** + * An object recognizable as a numeric value that stores the underlying number + * as a string. + * + * Intended to be a deserialization target for the DynamoDB Document Client when + * the `wrapNumbers` flag is set. This allows for numeric values that lose + * precision when converted to JavaScript's `number` type. + */ +var DynamoDBNumberValue = util.inherit({ + constructor: function NumberValue(value) { + this.wrapperName = 'NumberValue'; + this.value = value.toString(); }, /** - * Create the https.Agent or http.Agent according to the request schema. + * Render the underlying value as a number when converting to JSON. */ - getAgent: function getAgent(useSSL, agentOptions) { - var http = useSSL ? __nccwpck_require__(95687) : __nccwpck_require__(13685); - if (useSSL) { - if (!AWS.NodeHttpClient.sslAgent) { - AWS.NodeHttpClient.sslAgent = new http.Agent(AWS.util.merge({ - rejectUnauthorized: process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0' ? false : true - }, agentOptions || {})); - AWS.NodeHttpClient.sslAgent.setMaxListeners(0); - - // delegate maxSockets to globalAgent, set a default limit of 50 if current value is Infinity. - // Users can bypass this default by supplying their own Agent as part of SDK configuration. - Object.defineProperty(AWS.NodeHttpClient.sslAgent, 'maxSockets', { - enumerable: true, - get: function() { - var defaultMaxSockets = 50; - var globalAgent = http.globalAgent; - if (globalAgent && globalAgent.maxSockets !== Infinity && typeof globalAgent.maxSockets === 'number') { - return globalAgent.maxSockets; - } - return defaultMaxSockets; - } - }); - } - return AWS.NodeHttpClient.sslAgent; - } else { - if (!AWS.NodeHttpClient.agent) { - AWS.NodeHttpClient.agent = new http.Agent(agentOptions); - } - return AWS.NodeHttpClient.agent; - } + toJSON: function () { + return this.toNumber(); }, - progressStream: function progressStream(stream, totalBytes) { - if (typeof TransformStream === 'undefined') { - // for node 0.8 there is no streaming progress - return; - } - var loadedBytes = 0; - var reporter = new TransformStream(); - reporter._transform = function(chunk, encoding, callback) { - if (chunk) { - loadedBytes += chunk.length; - stream.emit('sendProgress', { - loaded: loadedBytes, - total: totalBytes - }); - } - callback(null, chunk); - }; - return reporter; + /** + * Convert the underlying value to a JavaScript number. + */ + toNumber: function () { + return Number(this.value); }, - emitter: null + /** + * Return a string representing the unaltered value provided to the + * constructor. + */ + toString: function () { + return this.value; + } }); -/** - * @!ignore - */ - -/** - * @api private - */ -AWS.HttpClient.prototype = AWS.NodeHttpClient.prototype; - /** * @api private */ -AWS.HttpClient.streamsApiVersion = ReadableStream ? 2 : 1; +module.exports = DynamoDBNumberValue; /***/ }), -/***/ 94387: +/***/ 12996: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var util = __nccwpck_require__(43956); - -function JsonBuilder() { } +var util = (__nccwpck_require__(53832).util); +var typeOf = (__nccwpck_require__(75913).typeOf); -JsonBuilder.prototype.build = function(value, shape) { - return JSON.stringify(translate(value, shape)); +/** + * @api private + */ +var memberTypeToSetType = { + 'String': 'String', + 'Number': 'Number', + 'NumberValue': 'Number', + 'Binary': 'Binary' }; -function translate(value, shape) { - if (!shape || value === undefined || value === null) return undefined; +/** + * @api private + */ +var DynamoDBSet = util.inherit({ - switch (shape.type) { - case 'structure': return translateStructure(value, shape); - case 'map': return translateMap(value, shape); - case 'list': return translateList(value, shape); - default: return translateScalar(value, shape); - } -} + constructor: function Set(list, options) { + options = options || {}; + this.wrapperName = 'Set'; + this.initialize(list, options.validate); + }, -function translateStructure(structure, shape) { - if (shape.isDocument) { - return structure; - } - var struct = {}; - util.each(structure, function(name, value) { - var memberShape = shape.members[name]; - if (memberShape) { - if (memberShape.location !== 'body') return; - var locationName = memberShape.isLocationName ? memberShape.name : name; - var result = translate(value, memberShape); - if (result !== undefined) struct[locationName] = result; + initialize: function(list, validate) { + var self = this; + self.values = [].concat(list); + self.detectType(); + if (validate) { + self.validate(); } - }); - return struct; -} + }, -function translateList(list, shape) { - var out = []; - util.arrayEach(list, function(value) { - var result = translate(value, shape.member); - if (result !== undefined) out.push(result); - }); - return out; -} + detectType: function() { + this.type = memberTypeToSetType[typeOf(this.values[0])]; + if (!this.type) { + throw util.error(new Error(), { + code: 'InvalidSetType', + message: 'Sets can contain string, number, or binary values' + }); + } + }, -function translateMap(map, shape) { - var out = {}; - util.each(map, function(key, value) { - var result = translate(value, shape.value); - if (result !== undefined) out[key] = result; - }); - return out; -} + validate: function() { + var self = this; + var length = self.values.length; + var values = self.values; + for (var i = 0; i < length; i++) { + if (memberTypeToSetType[typeOf(values[i])] !== self.type) { + throw util.error(new Error(), { + code: 'InvalidType', + message: self.type + ' Set contains ' + typeOf(values[i]) + ' value' + }); + } + } + }, -function translateScalar(value, shape) { - return shape.toWireFormat(value); -} + /** + * Render the underlying values only when converting to JSON. + */ + toJSON: function() { + var self = this; + return self.values; + } + +}); /** * @api private */ -module.exports = JsonBuilder; +module.exports = DynamoDBSet; /***/ }), -/***/ 61039: +/***/ 19000: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var util = __nccwpck_require__(43956); +var util = (__nccwpck_require__(53832).util); +var convert = __nccwpck_require__(33336); -function JsonParser() { } +var Translator = function(options) { + options = options || {}; + this.attrValue = options.attrValue; + this.convertEmptyValues = Boolean(options.convertEmptyValues); + this.wrapNumbers = Boolean(options.wrapNumbers); +}; -JsonParser.prototype.parse = function(value, shape) { - return translate(JSON.parse(value), shape); +Translator.prototype.translateInput = function(value, shape) { + this.mode = 'input'; + return this.translate(value, shape); }; -function translate(value, shape) { +Translator.prototype.translateOutput = function(value, shape) { + this.mode = 'output'; + return this.translate(value, shape); +}; + +Translator.prototype.translate = function(value, shape) { + var self = this; if (!shape || value === undefined) return undefined; + if (shape.shape === self.attrValue) { + return convert[self.mode](value, { + convertEmptyValues: self.convertEmptyValues, + wrapNumbers: self.wrapNumbers, + }); + } switch (shape.type) { - case 'structure': return translateStructure(value, shape); - case 'map': return translateMap(value, shape); - case 'list': return translateList(value, shape); - default: return translateScalar(value, shape); + case 'structure': return self.translateStructure(value, shape); + case 'map': return self.translateMap(value, shape); + case 'list': return self.translateList(value, shape); + default: return self.translateScalar(value, shape); } -} +}; -function translateStructure(structure, shape) { +Translator.prototype.translateStructure = function(structure, shape) { + var self = this; if (structure == null) return undefined; - if (shape.isDocument) return structure; var struct = {}; - var shapeMembers = shape.members; - util.each(shapeMembers, function(name, memberShape) { - var locationName = memberShape.isLocationName ? memberShape.name : name; - if (Object.prototype.hasOwnProperty.call(structure, locationName)) { - var value = structure[locationName]; - var result = translate(value, memberShape); + util.each(structure, function(name, value) { + var memberShape = shape.members[name]; + if (memberShape) { + var result = self.translate(value, memberShape); if (result !== undefined) struct[name] = result; } }); return struct; -} +}; -function translateList(list, shape) { +Translator.prototype.translateList = function(list, shape) { + var self = this; if (list == null) return undefined; var out = []; util.arrayEach(list, function(value) { - var result = translate(value, shape.member); + var result = self.translate(value, shape.member); if (result === undefined) out.push(null); else out.push(result); }); return out; -} +}; -function translateMap(map, shape) { +Translator.prototype.translateMap = function(map, shape) { + var self = this; if (map == null) return undefined; var out = {}; util.each(map, function(key, value) { - var result = translate(value, shape.value); + var result = self.translate(value, shape.value); if (result === undefined) out[key] = null; else out[key] = result; }); return out; -} +}; -function translateScalar(value, shape) { +Translator.prototype.translateScalar = function(value, shape) { return shape.toType(value); -} +}; /** * @api private */ -module.exports = JsonParser; +module.exports = Translator; /***/ }), -/***/ 98059: -/***/ ((module) => { - -var warning = [ - 'We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.\n', - 'Please migrate your code to use AWS SDK for JavaScript (v3).', - 'For more information, check the migration guide at https://a.co/7PzMCcy' -].join('\n'); - -module.exports = { - suppress: false -}; +/***/ 75913: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * To suppress this message: - * @example - * require('aws-sdk/lib/maintenance_mode_message').suppress = true; - */ -function emitWarning() { - if (typeof process === 'undefined') - return; +var util = (__nccwpck_require__(53832).util); - // Skip maintenance mode message in Lambda environments - if ( - typeof process.env === 'object' && - typeof process.env.AWS_EXECUTION_ENV !== 'undefined' && - process.env.AWS_EXECUTION_ENV.indexOf('AWS_Lambda_') === 0 - ) { - return; +function typeOf(data) { + if (data === null && typeof data === 'object') { + return 'null'; + } else if (data !== undefined && isBinary(data)) { + return 'Binary'; + } else if (data !== undefined && data.constructor) { + return data.wrapperName || util.typeName(data.constructor); + } else if (data !== undefined && typeof data === 'object') { + // this object is the result of Object.create(null), hence the absence of a + // defined constructor + return 'Object'; + } else { + return 'undefined'; } +} - if ( - typeof process.env === 'object' && - typeof process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE !== 'undefined' - ) { - return; +function isBinary(data) { + var types = [ + 'Buffer', 'File', 'Blob', 'ArrayBuffer', 'DataView', + 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', + 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', + 'Float32Array', 'Float64Array' + ]; + if (util.isNode()) { + var Stream = util.stream.Stream; + if (util.Buffer.isBuffer(data) || data instanceof Stream) { + return true; + } } - if (typeof process.emitWarning === 'function') { - process.emitWarning(warning, { - type: 'NOTE' - }); + for (var i = 0; i < types.length; i++) { + if (data !== undefined && data.constructor) { + if (util.isType(data, types[i])) return true; + if (util.typeName(data.constructor) === types[i]) return true; + } } + + return false; } -setTimeout(function () { - if (!module.exports.suppress) { - emitWarning(); - } -}, 0); +/** + * @api private + */ +module.exports = { + typeOf: typeOf, + isBinary: isBinary +}; /***/ }), -/***/ 72803: +/***/ 60025: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -__nccwpck_require__(72574); -var inherit = AWS.util.inherit; -var getMetadataServiceEndpoint = __nccwpck_require__(97552); -var URL = (__nccwpck_require__(57310).URL); +var eventMessageChunker = (__nccwpck_require__(85326).eventMessageChunker); +var parseEvent = (__nccwpck_require__(21057).parseEvent); + +function createEventStream(body, parser, model) { + var eventMessages = eventMessageChunker(body); + + var events = []; + + for (var i = 0; i < eventMessages.length; i++) { + events.push(parseEvent(parser, eventMessages[i], model)); + } + + return events; +} /** - * Represents a metadata service available on EC2 instances. Using the - * {request} method, you can receieve metadata about any available resource - * on the metadata service. - * - * You can disable the use of the IMDS by setting the AWS_EC2_METADATA_DISABLED - * environment variable to a truthy value. - * - * @!attribute [r] httpOptions - * @return [map] a map of options to pass to the underlying HTTP request: - * - * * **timeout** (Number) — a timeout value in milliseconds to wait - * before aborting the connection. Set to 0 for no timeout. - * - * @!macro nobrowser + * @api private */ -AWS.MetadataService = inherit({ - /** - * @return [String] the endpoint of the instance metadata service - */ - endpoint: getMetadataServiceEndpoint(), +module.exports = { + createEventStream: createEventStream +}; - /** - * @!ignore - */ - /** - * Default HTTP options. By default, the metadata service is set to not - * timeout on long requests. This means that on non-EC2 machines, this - * request will never return. If you are calling this operation from an - * environment that may not always run on EC2, set a `timeout` value so - * the SDK will abort the request after a given number of milliseconds. - */ - httpOptions: { timeout: 0 }, +/***/ }), - /** - * when enabled, metadata service will not fetch token - */ - disableFetchToken: false, +/***/ 62599: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * Creates a new MetadataService object with a given set of options. - * - * @option options host [String] the hostname of the instance metadata - * service - * @option options httpOptions [map] a map of options to pass to the - * underlying HTTP request: - * - * * **timeout** (Number) — a timeout value in milliseconds to wait - * before aborting the connection. Set to 0 for no timeout. - * @option options maxRetries [Integer] the maximum number of retries to - * perform for timeout errors - * @option options retryDelayOptions [map] A set of options to configure the - * retry delay on retryable errors. See AWS.Config for details. - */ - constructor: function MetadataService(options) { - if (options && options.host) { - options.endpoint = 'http://' + options.host; - delete options.host; - } - AWS.util.update(this, options); - }, +var util = (__nccwpck_require__(53832).util); +var Transform = (__nccwpck_require__(2203).Transform); +var allocBuffer = util.buffer.alloc; - /** - * Sends a request to the instance metadata service for a given resource. - * - * @param path [String] the path of the resource to get - * - * @param options [map] an optional map used to make request - * - * * **method** (String) — HTTP request method - * - * * **headers** (map) — a map of response header keys and their respective values - * - * @callback callback function(err, data) - * Called when a response is available from the service. - * @param err [Error, null] if an error occurred, this value will be set - * @param data [String, null] if the request was successful, the body of - * the response - */ - request: function request(path, options, callback) { - if (arguments.length === 2) { - callback = options; - options = {}; - } +/** @type {Transform} */ +function EventMessageChunkerStream(options) { + Transform.call(this, options); - if (process.env[AWS.util.imdsDisabledEnv]) { - callback(new Error('EC2 Instance Metadata Service access disabled')); - return; - } + this.currentMessageTotalLength = 0; + this.currentMessagePendingLength = 0; + /** @type {Buffer} */ + this.currentMessage = null; - path = path || '/'; + /** @type {Buffer} */ + this.messageLengthBuffer = null; +} - // Verify that host is a valid URL - if (URL) { new URL(this.endpoint); } +EventMessageChunkerStream.prototype = Object.create(Transform.prototype); - var httpRequest = new AWS.HttpRequest(this.endpoint + path); - httpRequest.method = options.method || 'GET'; - if (options.headers) { - httpRequest.headers = options.headers; - } - AWS.util.handleRequestWithRetries(httpRequest, this, callback); - }, +/** + * + * @param {Buffer} chunk + * @param {string} encoding + * @param {*} callback + */ +EventMessageChunkerStream.prototype._transform = function(chunk, encoding, callback) { + var chunkLength = chunk.length; + var currentOffset = 0; - /** - * @api private - */ - loadCredentialsCallbacks: [], + while (currentOffset < chunkLength) { + // create new message if necessary + if (!this.currentMessage) { + // working on a new message, determine total length + var bytesRemaining = chunkLength - currentOffset; + // prevent edge case where total length spans 2 chunks + if (!this.messageLengthBuffer) { + this.messageLengthBuffer = allocBuffer(4); + } + var numBytesForTotal = Math.min( + 4 - this.currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer + bytesRemaining // bytes left in chunk + ); - /** - * Fetches metadata token used for getting credentials - * - * @api private - * @callback callback function(err, token) - * Called when token is loaded from the resource - */ - fetchMetadataToken: function fetchMetadataToken(callback) { - var self = this; - var tokenFetchPath = '/latest/api/token'; - self.request( - tokenFetchPath, - { - 'method': 'PUT', - 'headers': { - 'x-aws-ec2-metadata-token-ttl-seconds': '21600' - } - }, - callback - ); - }, + chunk.copy( + this.messageLengthBuffer, + this.currentMessagePendingLength, + currentOffset, + currentOffset + numBytesForTotal + ); - /** - * Fetches credentials - * - * @api private - * @callback cb function(err, creds) - * Called when credentials are loaded from the resource - */ - fetchCredentials: function fetchCredentials(options, cb) { - var self = this; - var basePath = '/latest/meta-data/iam/security-credentials/'; + this.currentMessagePendingLength += numBytesForTotal; + currentOffset += numBytesForTotal; - self.request(basePath, options, function (err, roleName) { - if (err) { - self.disableFetchToken = !(err.statusCode === 401); - cb(AWS.util.error( - err, - { - message: 'EC2 Metadata roleName request returned error' - } - )); - return; - } - roleName = roleName.split('\n')[0]; // grab first (and only) role - self.request(basePath + roleName, options, function (credErr, credData) { - if (credErr) { - self.disableFetchToken = !(credErr.statusCode === 401); - cb(AWS.util.error( - credErr, - { - message: 'EC2 Metadata creds request returned error' + if (this.currentMessagePendingLength < 4) { + // not enough information to create the current message + break; } - )); - return; - } - try { - var credentials = JSON.parse(credData); - cb(null, credentials); - } catch (parseError) { - cb(parseError); + this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0)); + this.messageLengthBuffer = null; } - }); - }); - }, - /** - * Loads a set of credentials stored in the instance metadata service - * - * @api private - * @callback callback function(err, credentials) - * Called when credentials are loaded from the resource - * @param err [Error] if an error occurred, this value will be set - * @param credentials [Object] the raw JSON object containing all - * metadata from the credentials resource - */ - loadCredentials: function loadCredentials(callback) { - var self = this; - self.loadCredentialsCallbacks.push(callback); - if (self.loadCredentialsCallbacks.length > 1) { return; } + // write data into current message + var numBytesToWrite = Math.min( + this.currentMessageTotalLength - this.currentMessagePendingLength, // number of bytes left to complete message + chunkLength - currentOffset // number of bytes left in the original chunk + ); + chunk.copy( + this.currentMessage, // target buffer + this.currentMessagePendingLength, // target offset + currentOffset, // chunk offset + currentOffset + numBytesToWrite // chunk end to write + ); + this.currentMessagePendingLength += numBytesToWrite; + currentOffset += numBytesToWrite; - function callbacks(err, creds) { - var cb; - while ((cb = self.loadCredentialsCallbacks.shift()) !== undefined) { - cb(err, creds); - } + // check if a message is ready to be pushed + if (this.currentMessageTotalLength && this.currentMessageTotalLength === this.currentMessagePendingLength) { + // push out the message + this.push(this.currentMessage); + // cleanup + this.currentMessage = null; + this.currentMessageTotalLength = 0; + this.currentMessagePendingLength = 0; + } } - if (self.disableFetchToken) { - self.fetchCredentials({}, callbacks); - } else { - self.fetchMetadataToken(function(tokenError, token) { - if (tokenError) { - if (tokenError.code === 'TimeoutError') { - self.disableFetchToken = true; - } else if (tokenError.retryable === true) { - callbacks(AWS.util.error( - tokenError, - { - message: 'EC2 Metadata token request returned error' - } - )); - return; - } else if (tokenError.statusCode === 400) { - callbacks(AWS.util.error( - tokenError, - { - message: 'EC2 Metadata token request returned 400' - } - )); - return; - } - } - var options = {}; - if (token) { - options.headers = { - 'x-aws-ec2-metadata-token': token - }; - } - self.fetchCredentials(options, callbacks); - }); + callback(); +}; +EventMessageChunkerStream.prototype._flush = function(callback) { + if (this.currentMessageTotalLength) { + if (this.currentMessageTotalLength === this.currentMessagePendingLength) { + callback(null, this.currentMessage); + } else { + callback(new Error('Truncated event message received.')); + } + } else { + callback(); } - } -}); +}; /** + * @param {number} size Size of the message to be allocated. * @api private */ -module.exports = AWS.MetadataService; - - -/***/ }), - -/***/ 21799: -/***/ ((module) => { - -var getEndpoint = function() { - return { - IPv4: 'http://169.254.169.254', - IPv6: 'http://[fd00:ec2::254]', - }; +EventMessageChunkerStream.prototype.allocateMessage = function(size) { + if (typeof size !== 'number') { + throw new Error('Attempted to allocate an event message where size was not a number: ' + size); + } + this.currentMessageTotalLength = size; + this.currentMessagePendingLength = 4; + this.currentMessage = allocBuffer(size); + this.currentMessage.writeUInt32BE(size, 0); }; -module.exports = getEndpoint; +/** + * @api private + */ +module.exports = { + EventMessageChunkerStream: EventMessageChunkerStream +}; /***/ }), -/***/ 1570: +/***/ 85326: /***/ ((module) => { -var ENV_ENDPOINT_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT'; -var CONFIG_ENDPOINT_NAME = 'ec2_metadata_service_endpoint'; - -var getEndpointConfigOptions = function() { - return { - environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_NAME]; }, - configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_NAME]; }, - default: undefined, - }; -}; +/** + * Takes in a buffer of event messages and splits them into individual messages. + * @param {Buffer} buffer + * @api private + */ +function eventMessageChunker(buffer) { + /** @type Buffer[] */ + var messages = []; + var offset = 0; -module.exports = getEndpointConfigOptions; + while (offset < buffer.length) { + var totalLength = buffer.readInt32BE(offset); + // create new buffer for individual message (shares memory with original) + var message = buffer.slice(offset, totalLength + offset); + // increment offset to it starts at the next message + offset += totalLength; -/***/ }), + messages.push(message); + } -/***/ 87153: -/***/ ((module) => { + return messages; +} -var getEndpointMode = function() { - return { - IPv4: 'IPv4', - IPv6: 'IPv6', - }; +/** + * @api private + */ +module.exports = { + eventMessageChunker: eventMessageChunker }; -module.exports = getEndpointMode; - /***/ }), -/***/ 44968: +/***/ 38025: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var EndpointMode = __nccwpck_require__(87153)(); +var Transform = (__nccwpck_require__(2203).Transform); +var parseEvent = (__nccwpck_require__(21057).parseEvent); -var ENV_ENDPOINT_MODE_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE'; -var CONFIG_ENDPOINT_MODE_NAME = 'ec2_metadata_service_endpoint_mode'; +/** @type {Transform} */ +function EventUnmarshallerStream(options) { + options = options || {}; + // set output to object mode + options.readableObjectMode = true; + Transform.call(this, options); + this._readableState.objectMode = true; -var getEndpointModeConfigOptions = function() { - return { - environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_MODE_NAME]; }, - configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_MODE_NAME]; }, - default: EndpointMode.IPv4, - }; + this.parser = options.parser; + this.eventStreamModel = options.eventStreamModel; +} + +EventUnmarshallerStream.prototype = Object.create(Transform.prototype); + +/** + * + * @param {Buffer} chunk + * @param {string} encoding + * @param {*} callback + */ +EventUnmarshallerStream.prototype._transform = function(chunk, encoding, callback) { + try { + var event = parseEvent(this.parser, chunk, this.eventStreamModel); + this.push(event); + return callback(); + } catch (err) { + callback(err); + } }; -module.exports = getEndpointModeConfigOptions; +/** + * @api private + */ +module.exports = { + EventUnmarshallerStream: EventUnmarshallerStream +}; /***/ }), -/***/ 97552: +/***/ 22276: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +var util = (__nccwpck_require__(53832).util); +var toBuffer = util.buffer.toBuffer; -var Endpoint = __nccwpck_require__(21799)(); -var EndpointMode = __nccwpck_require__(87153)(); +/** + * A lossless representation of a signed, 64-bit integer. Instances of this + * class may be used in arithmetic expressions as if they were numeric + * primitives, but the binary representation will be preserved unchanged as the + * `bytes` property of the object. The bytes should be encoded as big-endian, + * two's complement integers. + * @param {Buffer} bytes + * + * @api private + */ +function Int64(bytes) { + if (bytes.length !== 8) { + throw new Error('Int64 buffers must be exactly 8 bytes'); + } + if (!util.Buffer.isBuffer(bytes)) bytes = toBuffer(bytes); -var ENDPOINT_CONFIG_OPTIONS = __nccwpck_require__(1570)(); -var ENDPOINT_MODE_CONFIG_OPTIONS = __nccwpck_require__(44968)(); + this.bytes = bytes; +} -var getMetadataServiceEndpoint = function() { - var endpoint = AWS.util.loadConfig(ENDPOINT_CONFIG_OPTIONS); - if (endpoint !== undefined) return endpoint; +/** + * @param {number} number + * @returns {Int64} + * + * @api private + */ +Int64.fromNumber = function(number) { + if (number > 9223372036854775807 || number < -9223372036854775808) { + throw new Error( + number + ' is too large (or, if negative, too small) to represent as an Int64' + ); + } - var endpointMode = AWS.util.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS); - switch (endpointMode) { - case EndpointMode.IPv4: - return Endpoint.IPv4; - case EndpointMode.IPv6: - return Endpoint.IPv6; - default: - throw new Error('Unsupported endpoint mode: ' + endpointMode); - } -}; + var bytes = new Uint8Array(8); + for ( + var i = 7, remaining = Math.abs(Math.round(number)); + i > -1 && remaining > 0; + i--, remaining /= 256 + ) { + bytes[i] = remaining; + } -module.exports = getMetadataServiceEndpoint; + if (number < 0) { + negate(bytes); + } + return new Int64(bytes); +}; -/***/ }), +/** + * @returns {number} + * + * @api private + */ +Int64.prototype.valueOf = function() { + var bytes = this.bytes.slice(0); + var negative = bytes[0] & 128; + if (negative) { + negate(bytes); + } -/***/ 79101: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return parseInt(bytes.toString('hex'), 16) * (negative ? -1 : 1); +}; -var Collection = __nccwpck_require__(67002); -var Operation = __nccwpck_require__(50130); -var Shape = __nccwpck_require__(77478); -var Paginator = __nccwpck_require__(16186); -var ResourceWaiter = __nccwpck_require__(84343); -var metadata = __nccwpck_require__(17752); +Int64.prototype.toString = function() { + return String(this.valueOf()); +}; -var util = __nccwpck_require__(43956); -var property = util.property; -var memoizedProperty = util.memoizedProperty; +/** + * @param {Buffer} bytes + * + * @api private + */ +function negate(bytes) { + for (var i = 0; i < 8; i++) { + bytes[i] ^= 0xFF; + } + for (var i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) { + break; + } + } +} -function Api(api, options) { - var self = this; - api = api || {}; - options = options || {}; - options.api = this; +/** + * @api private + */ +module.exports = { + Int64: Int64 +}; - api.metadata = api.metadata || {}; - var serviceIdentifier = options.serviceIdentifier; - delete options.serviceIdentifier; +/***/ }), - property(this, 'isApi', true, false); - property(this, 'apiVersion', api.metadata.apiVersion); - property(this, 'endpointPrefix', api.metadata.endpointPrefix); - property(this, 'signingName', api.metadata.signingName); - property(this, 'globalEndpoint', api.metadata.globalEndpoint); - property(this, 'signatureVersion', api.metadata.signatureVersion); - property(this, 'jsonVersion', api.metadata.jsonVersion); - property(this, 'targetPrefix', api.metadata.targetPrefix); - property(this, 'protocol', api.metadata.protocol); - property(this, 'timestampFormat', api.metadata.timestampFormat); - property(this, 'xmlNamespaceUri', api.metadata.xmlNamespace); - property(this, 'abbreviation', api.metadata.serviceAbbreviation); - property(this, 'fullName', api.metadata.serviceFullName); - property(this, 'serviceId', api.metadata.serviceId); - if (serviceIdentifier && metadata[serviceIdentifier]) { - property(this, 'xmlNoDefaultLists', metadata[serviceIdentifier].xmlNoDefaultLists, false); - } +/***/ 21057: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - memoizedProperty(this, 'className', function() { - var name = api.metadata.serviceAbbreviation || api.metadata.serviceFullName; - if (!name) return null; +var parseMessage = (__nccwpck_require__(48690).parseMessage); - name = name.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g, ''); - if (name === 'ElasticLoadBalancing') name = 'ELB'; - return name; - }); +/** + * + * @param {*} parser + * @param {Buffer} message + * @param {*} shape + * @api private + */ +function parseEvent(parser, message, shape) { + var parsedMessage = parseMessage(message); - function addEndpointOperation(name, operation) { - if (operation.endpointoperation === true) { - property(self, 'endpointOperation', util.string.lowerFirst(name)); - } - if (operation.endpointdiscovery && !self.hasRequiredEndpointDiscovery) { - property( - self, - 'hasRequiredEndpointDiscovery', - operation.endpointdiscovery.required === true - ); + // check if message is an event or error + var messageType = parsedMessage.headers[':message-type']; + if (messageType) { + if (messageType.value === 'error') { + throw parseError(parsedMessage); + } else if (messageType.value !== 'event') { + // not sure how to parse non-events/non-errors, ignore for now + return; + } } - } - property(this, 'operations', new Collection(api.operations, options, function(name, operation) { - return new Operation(name, operation, options); - }, util.string.lowerFirst, addEndpointOperation)); + // determine event type + var eventType = parsedMessage.headers[':event-type']; + // check that the event type is modeled + var eventModel = shape.members[eventType.value]; + if (!eventModel) { + return; + } - property(this, 'shapes', new Collection(api.shapes, options, function(name, shape) { - return Shape.create(shape, options); - })); + var result = {}; + // check if an event payload exists + var eventPayloadMemberName = eventModel.eventPayloadMemberName; + if (eventPayloadMemberName) { + var payloadShape = eventModel.members[eventPayloadMemberName]; + // if the shape is binary, return the byte array + if (payloadShape.type === 'binary') { + result[eventPayloadMemberName] = parsedMessage.body; + } else { + result[eventPayloadMemberName] = parser.parse(parsedMessage.body.toString(), payloadShape); + } + } - property(this, 'paginators', new Collection(api.paginators, options, function(name, paginator) { - return new Paginator(name, paginator, options); - })); + // read event headers + var eventHeaderNames = eventModel.eventHeaderMemberNames; + for (var i = 0; i < eventHeaderNames.length; i++) { + var name = eventHeaderNames[i]; + if (parsedMessage.headers[name]) { + // parse the header! + result[name] = eventModel.members[name].toType(parsedMessage.headers[name].value); + } + } - property(this, 'waiters', new Collection(api.waiters, options, function(name, waiter) { - return new ResourceWaiter(name, waiter, options); - }, util.string.lowerFirst)); + var output = {}; + output[eventType.value] = result; + return output; +} - if (options.documentation) { - property(this, 'documentation', api.documentation); - property(this, 'documentationUrl', api.documentationUrl); - } - property(this, 'awsQueryCompatible', api.metadata.awsQueryCompatible); +function parseError(message) { + var errorCode = message.headers[':error-code']; + var errorMessage = message.headers[':error-message']; + var error = new Error(errorMessage.value || errorMessage); + error.code = error.name = errorCode.value || errorCode; + return error; } /** * @api private */ -module.exports = Api; +module.exports = { + parseEvent: parseEvent +}; /***/ }), -/***/ 67002: +/***/ 48690: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var memoizedProperty = (__nccwpck_require__(43956).memoizedProperty); +var Int64 = (__nccwpck_require__(22276).Int64); -function memoize(name, value, factory, nameTr) { - memoizedProperty(this, nameTr(name), function() { - return factory(name, value); - }); -} +var splitMessage = (__nccwpck_require__(43597).splitMessage); -function Collection(iterable, options, factory, nameTr, callback) { - nameTr = nameTr || String; - var self = this; +var BOOLEAN_TAG = 'boolean'; +var BYTE_TAG = 'byte'; +var SHORT_TAG = 'short'; +var INT_TAG = 'integer'; +var LONG_TAG = 'long'; +var BINARY_TAG = 'binary'; +var STRING_TAG = 'string'; +var TIMESTAMP_TAG = 'timestamp'; +var UUID_TAG = 'uuid'; - for (var id in iterable) { - if (Object.prototype.hasOwnProperty.call(iterable, id)) { - memoize.call(self, id, iterable[id], factory, nameTr); - if (callback) callback(id, iterable[id]); +/** + * @api private + * + * @param {Buffer} headers + */ +function parseHeaders(headers) { + var out = {}; + var position = 0; + while (position < headers.length) { + var nameLength = headers.readUInt8(position++); + var name = headers.slice(position, position + nameLength).toString(); + position += nameLength; + switch (headers.readUInt8(position++)) { + case 0 /* boolTrue */: + out[name] = { + type: BOOLEAN_TAG, + value: true + }; + break; + case 1 /* boolFalse */: + out[name] = { + type: BOOLEAN_TAG, + value: false + }; + break; + case 2 /* byte */: + out[name] = { + type: BYTE_TAG, + value: headers.readInt8(position++) + }; + break; + case 3 /* short */: + out[name] = { + type: SHORT_TAG, + value: headers.readInt16BE(position) + }; + position += 2; + break; + case 4 /* integer */: + out[name] = { + type: INT_TAG, + value: headers.readInt32BE(position) + }; + position += 4; + break; + case 5 /* long */: + out[name] = { + type: LONG_TAG, + value: new Int64(headers.slice(position, position + 8)) + }; + position += 8; + break; + case 6 /* byteArray */: + var binaryLength = headers.readUInt16BE(position); + position += 2; + out[name] = { + type: BINARY_TAG, + value: headers.slice(position, position + binaryLength) + }; + position += binaryLength; + break; + case 7 /* string */: + var stringLength = headers.readUInt16BE(position); + position += 2; + out[name] = { + type: STRING_TAG, + value: headers.slice( + position, + position + stringLength + ).toString() + }; + position += stringLength; + break; + case 8 /* timestamp */: + out[name] = { + type: TIMESTAMP_TAG, + value: new Date( + new Int64(headers.slice(position, position + 8)) + .valueOf() + ) + }; + position += 8; + break; + case 9 /* uuid */: + var uuidChars = headers.slice(position, position + 16) + .toString('hex'); + position += 16; + out[name] = { + type: UUID_TAG, + value: uuidChars.substr(0, 8) + '-' + + uuidChars.substr(8, 4) + '-' + + uuidChars.substr(12, 4) + '-' + + uuidChars.substr(16, 4) + '-' + + uuidChars.substr(20) + }; + break; + default: + throw new Error('Unrecognized header type tag'); + } } - } + return out; +} + +function parseMessage(message) { + var parsed = splitMessage(message); + return { headers: parseHeaders(parsed.headers), body: parsed.body }; } /** * @api private */ -module.exports = Collection; +module.exports = { + parseMessage: parseMessage +}; /***/ }), -/***/ 50130: +/***/ 43597: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var Shape = __nccwpck_require__(77478); +var util = (__nccwpck_require__(53832).util); +var toBuffer = util.buffer.toBuffer; -var util = __nccwpck_require__(43956); -var property = util.property; -var memoizedProperty = util.memoizedProperty; +// All prelude components are unsigned, 32-bit integers +var PRELUDE_MEMBER_LENGTH = 4; +// The prelude consists of two components +var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; +// Checksums are always CRC32 hashes. +var CHECKSUM_LENGTH = 4; +// Messages must include a full prelude, a prelude checksum, and a message checksum +var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; -function Operation(name, operation, options) { - var self = this; - options = options || {}; +/** + * @api private + * + * @param {Buffer} message + */ +function splitMessage(message) { + if (!util.Buffer.isBuffer(message)) message = toBuffer(message); - property(this, 'name', operation.name || name); - property(this, 'api', options.api, false); + if (message.length < MINIMUM_MESSAGE_LENGTH) { + throw new Error('Provided message too short to accommodate event stream message overhead'); + } - operation.http = operation.http || {}; - property(this, 'endpoint', operation.endpoint); - property(this, 'httpMethod', operation.http.method || 'POST'); - property(this, 'httpPath', operation.http.requestUri || '/'); - property(this, 'authtype', operation.authtype || ''); - property( - this, - 'endpointDiscoveryRequired', - operation.endpointdiscovery ? - (operation.endpointdiscovery.required ? 'REQUIRED' : 'OPTIONAL') : - 'NULL' - ); + if (message.length !== message.readUInt32BE(0)) { + throw new Error('Reported message length does not match received message length'); + } - // httpChecksum replaces usage of httpChecksumRequired, but some APIs - // (s3control) still uses old trait. - var httpChecksumRequired = operation.httpChecksumRequired - || (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired); - property(this, 'httpChecksumRequired', httpChecksumRequired, false); + var expectedPreludeChecksum = message.readUInt32BE(PRELUDE_LENGTH); - memoizedProperty(this, 'input', function() { - if (!operation.input) { - return new Shape.create({type: 'structure'}, options); + if ( + expectedPreludeChecksum !== util.crypto.crc32( + message.slice(0, PRELUDE_LENGTH) + ) + ) { + throw new Error( + 'The prelude checksum specified in the message (' + + expectedPreludeChecksum + + ') does not match the calculated CRC32 checksum.' + ); } - return Shape.create(operation.input, options); - }); - memoizedProperty(this, 'output', function() { - if (!operation.output) { - return new Shape.create({type: 'structure'}, options); + var expectedMessageChecksum = message.readUInt32BE(message.length - CHECKSUM_LENGTH); + + if ( + expectedMessageChecksum !== util.crypto.crc32( + message.slice(0, message.length - CHECKSUM_LENGTH) + ) + ) { + throw new Error( + 'The message checksum did not match the expected value of ' + + expectedMessageChecksum + ); } - return Shape.create(operation.output, options); - }); - memoizedProperty(this, 'errors', function() { - var list = []; - if (!operation.errors) return null; + var headersStart = PRELUDE_LENGTH + CHECKSUM_LENGTH; + var headersEnd = headersStart + message.readUInt32BE(PRELUDE_MEMBER_LENGTH); - for (var i = 0; i < operation.errors.length; i++) { - list.push(Shape.create(operation.errors[i], options)); - } + return { + headers: message.slice(headersStart, headersEnd), + body: message.slice(headersEnd, message.length - CHECKSUM_LENGTH), + }; +} - return list; - }); +/** + * @api private + */ +module.exports = { + splitMessage: splitMessage +}; - memoizedProperty(this, 'paginator', function() { - return options.api.paginators[name]; - }); - if (options.documentation) { - property(this, 'documentation', operation.documentation); - property(this, 'documentationUrl', operation.documentationUrl); - } +/***/ }), - // idempotentMembers only tracks top-level input shapes - memoizedProperty(this, 'idempotentMembers', function() { - var idempotentMembers = []; - var input = self.input; - var members = input.members; - if (!input.members) { - return idempotentMembers; - } - for (var name in members) { - if (!members.hasOwnProperty(name)) { - continue; - } - if (members[name].isIdempotent === true) { - idempotentMembers.push(name); - } - } - return idempotentMembers; - }); +/***/ 46386: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - memoizedProperty(this, 'hasEventOutput', function() { - var output = self.output; - return hasEventStream(output); - }); -} +/** + * What is necessary to create an event stream in node? + * - http response stream + * - parser + * - event stream model + */ -function hasEventStream(topLevelShape) { - var members = topLevelShape.members; - var payload = topLevelShape.payload; +var EventMessageChunkerStream = (__nccwpck_require__(62599).EventMessageChunkerStream); +var EventUnmarshallerStream = (__nccwpck_require__(38025).EventUnmarshallerStream); - if (!topLevelShape.members) { - return false; - } +function createEventStream(stream, parser, model) { + var eventStream = new EventUnmarshallerStream({ + parser: parser, + eventStreamModel: model + }); - if (payload) { - var payloadMember = members[payload]; - return payloadMember.isEventStream; - } + var eventMessageChunker = new EventMessageChunkerStream(); - // check if any member is an event stream - for (var name in members) { - if (!members.hasOwnProperty(name)) { - if (members[name].isEventStream === true) { - return true; - } - } - } - return false; + stream.pipe( + eventMessageChunker + ).pipe(eventStream); + + stream.on('error', function(err) { + eventMessageChunker.emit('error', err); + }); + + eventMessageChunker.on('error', function(err) { + eventStream.emit('error', err); + }); + + return eventStream; } /** * @api private */ -module.exports = Operation; +module.exports = { + createEventStream: createEventStream +}; /***/ }), -/***/ 16186: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var property = (__nccwpck_require__(43956).property); +/***/ 34941: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -function Paginator(name, paginator) { - property(this, 'inputToken', paginator.input_token); - property(this, 'limitKey', paginator.limit_key); - property(this, 'moreResults', paginator.more_results); - property(this, 'outputToken', paginator.output_token); - property(this, 'resultKey', paginator.result_key); -} +var AWS = __nccwpck_require__(53832); +var SequentialExecutor = __nccwpck_require__(82310); +var DISCOVER_ENDPOINT = (__nccwpck_require__(35702).discoverEndpoint); +/** + * The namespace used to register global event listeners for request building + * and sending. + */ +AWS.EventListeners = { + /** + * @!attribute VALIDATE_CREDENTIALS + * A request listener that validates whether the request is being + * sent with credentials. + * Handles the {AWS.Request~validate 'validate' Request event} + * @example Sending a request without validating credentials + * var listener = AWS.EventListeners.Core.VALIDATE_CREDENTIALS; + * request.removeListener('validate', listener); + * @readonly + * @return [Function] + * @!attribute VALIDATE_REGION + * A request listener that validates whether the region is set + * for a request. + * Handles the {AWS.Request~validate 'validate' Request event} + * @example Sending a request without validating region configuration + * var listener = AWS.EventListeners.Core.VALIDATE_REGION; + * request.removeListener('validate', listener); + * @readonly + * @return [Function] + * @!attribute VALIDATE_PARAMETERS + * A request listener that validates input parameters in a request. + * Handles the {AWS.Request~validate 'validate' Request event} + * @example Sending a request without validating parameters + * var listener = AWS.EventListeners.Core.VALIDATE_PARAMETERS; + * request.removeListener('validate', listener); + * @example Disable parameter validation globally + * AWS.EventListeners.Core.removeListener('validate', + * AWS.EventListeners.Core.VALIDATE_REGION); + * @readonly + * @return [Function] + * @!attribute SEND + * A request listener that initiates the HTTP connection for a + * request being sent. Handles the {AWS.Request~send 'send' Request event} + * @example Replacing the HTTP handler + * var listener = AWS.EventListeners.Core.SEND; + * request.removeListener('send', listener); + * request.on('send', function(response) { + * customHandler.send(response); + * }); + * @return [Function] + * @readonly + * @!attribute HTTP_DATA + * A request listener that reads data from the HTTP connection in order + * to build the response data. + * Handles the {AWS.Request~httpData 'httpData' Request event}. + * Remove this handler if you are overriding the 'httpData' event and + * do not want extra data processing and buffering overhead. + * @example Disabling default data processing + * var listener = AWS.EventListeners.Core.HTTP_DATA; + * request.removeListener('httpData', listener); + * @return [Function] + * @readonly + */ + Core: {} /* doc hack */ +}; /** * @api private */ -module.exports = Paginator; - - -/***/ }), - -/***/ 84343: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(43956); -var property = util.property; - -function ResourceWaiter(name, waiter, options) { - options = options || {}; - property(this, 'name', name); - property(this, 'api', options.api, false); - - if (waiter.operation) { - property(this, 'operation', util.string.lowerFirst(waiter.operation)); +function getOperationAuthtype(req) { + if (!req.service.api.operations) { + return ''; } - - var self = this; - var keys = [ - 'type', - 'description', - 'delay', - 'maxAttempts', - 'acceptors' - ]; - - keys.forEach(function(key) { - var value = waiter[key]; - if (value) { - property(self, key, value); - } - }); + var operation = req.service.api.operations[req.operation]; + return operation ? operation.authtype : ''; } /** * @api private */ -module.exports = ResourceWaiter; - - -/***/ }), - -/***/ 77478: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Collection = __nccwpck_require__(67002); - -var util = __nccwpck_require__(43956); +function getIdentityType(req) { + var service = req.service; -function property(obj, name, value) { - if (value !== null && value !== undefined) { - util.property.apply(this, arguments); + if (service.config.signatureVersion) { + return service.config.signatureVersion; } -} -function memoizedProperty(obj, name) { - if (!obj.constructor.prototype[name]) { - util.memoizedProperty.apply(this, arguments); + if (service.api.signatureVersion) { + return service.api.signatureVersion; } + + return getOperationAuthtype(req); } -function Shape(shape, options, memberName) { - options = options || {}; +AWS.EventListeners = { + Core: new SequentialExecutor().addNamedListeners(function(add, addAsync) { + addAsync( + 'VALIDATE_CREDENTIALS', 'validate', + function VALIDATE_CREDENTIALS(req, done) { + if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) return done(); // none - property(this, 'shape', shape.shape); - property(this, 'api', options.api, false); - property(this, 'type', shape.type); - property(this, 'enum', shape.enum); - property(this, 'min', shape.min); - property(this, 'max', shape.max); - property(this, 'pattern', shape.pattern); - property(this, 'location', shape.location || this.location || 'body'); - property(this, 'name', this.name || shape.xmlName || shape.queryName || - shape.locationName || memberName); - property(this, 'isStreaming', shape.streaming || this.isStreaming || false); - property(this, 'requiresLength', shape.requiresLength, false); - property(this, 'isComposite', shape.isComposite || false); - property(this, 'isShape', true, false); - property(this, 'isQueryName', Boolean(shape.queryName), false); - property(this, 'isLocationName', Boolean(shape.locationName), false); - property(this, 'isIdempotent', shape.idempotencyToken === true); - property(this, 'isJsonValue', shape.jsonvalue === true); - property(this, 'isSensitive', shape.sensitive === true || shape.prototype && shape.prototype.sensitive === true); - property(this, 'isEventStream', Boolean(shape.eventstream), false); - property(this, 'isEvent', Boolean(shape.event), false); - property(this, 'isEventPayload', Boolean(shape.eventpayload), false); - property(this, 'isEventHeader', Boolean(shape.eventheader), false); - property(this, 'isTimestampFormatSet', Boolean(shape.timestampFormat) || shape.prototype && shape.prototype.isTimestampFormatSet === true, false); - property(this, 'endpointDiscoveryId', Boolean(shape.endpointdiscoveryid), false); - property(this, 'hostLabel', Boolean(shape.hostLabel), false); + var identityType = getIdentityType(req); + if (identityType === 'bearer') { + req.service.config.getToken(function(err) { + if (err) { + req.response.error = AWS.util.error(err, {code: 'TokenError'}); + } + done(); + }); + return; + } - if (options.documentation) { - property(this, 'documentation', shape.documentation); - property(this, 'documentationUrl', shape.documentationUrl); - } + req.service.config.getCredentials(function(err) { + if (err) { + req.response.error = AWS.util.error(err, + { + code: 'CredentialsError', + message: 'Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1' + } + ); + } + done(); + }); + }); - if (shape.xmlAttribute) { - property(this, 'isXmlAttribute', shape.xmlAttribute || false); - } + add('VALIDATE_REGION', 'validate', function VALIDATE_REGION(req) { + if (!req.service.isGlobalEndpoint) { + var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!req.service.config.region) { + req.response.error = AWS.util.error(new Error(), + {code: 'ConfigError', message: 'Missing region in config'}); + } else if (!dnsHostRegex.test(req.service.config.region)) { + req.response.error = AWS.util.error(new Error(), + {code: 'ConfigError', message: 'Invalid region in config'}); + } + } + }); - // type conversion and parsing - property(this, 'defaultValue', null); - this.toWireFormat = function(value) { - if (value === null || value === undefined) return ''; - return value; - }; - this.toType = function(value) { return value; }; -} + add('BUILD_IDEMPOTENCY_TOKENS', 'validate', function BUILD_IDEMPOTENCY_TOKENS(req) { + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + if (!operation) { + return; + } + var idempotentMembers = operation.idempotentMembers; + if (!idempotentMembers.length) { + return; + } + // creates a copy of params so user's param object isn't mutated + var params = AWS.util.copy(req.params); + for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { + if (!params[idempotentMembers[i]]) { + // add the member + params[idempotentMembers[i]] = AWS.util.uuid.v4(); + } + } + req.params = params; + }); -/** - * @api private - */ -Shape.normalizedTypes = { - character: 'string', - double: 'float', - long: 'integer', - short: 'integer', - biginteger: 'integer', - bigdecimal: 'float', - blob: 'binary' -}; + add('VALIDATE_PARAMETERS', 'validate', function VALIDATE_PARAMETERS(req) { + if (!req.service.api.operations) { + return; + } + var rules = req.service.api.operations[req.operation].input; + var validation = req.service.config.paramValidation; + new AWS.ParamValidator(validation).validate(rules, req.params); + }); -/** - * @api private - */ -Shape.types = { - 'structure': StructureShape, - 'list': ListShape, - 'map': MapShape, - 'boolean': BooleanShape, - 'timestamp': TimestampShape, - 'float': FloatShape, - 'integer': IntegerShape, - 'string': StringShape, - 'base64': Base64Shape, - 'binary': BinaryShape -}; + add('COMPUTE_CHECKSUM', 'afterBuild', function COMPUTE_CHECKSUM(req) { + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + if (!operation) { + return; + } + var body = req.httpRequest.body; + var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === 'string'); + var headers = req.httpRequest.headers; + if ( + operation.httpChecksumRequired && + req.service.config.computeChecksums && + isNonStreamingPayload && + !headers['Content-MD5'] + ) { + var md5 = AWS.util.crypto.md5(body, 'base64'); + headers['Content-MD5'] = md5; + } + }); -Shape.resolve = function resolve(shape, options) { - if (shape.shape) { - var refShape = options.api.shapes[shape.shape]; - if (!refShape) { - throw new Error('Cannot find shape reference: ' + shape.shape); - } + addAsync('COMPUTE_SHA256', 'afterBuild', function COMPUTE_SHA256(req, done) { + req.haltHandlersOnError(); + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + var authtype = operation ? operation.authtype : ''; + if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) return done(); // none + if (req.service.getSignerClass(req) === AWS.Signers.V4) { + var body = req.httpRequest.body || ''; + if (authtype.indexOf('unsigned-body') >= 0) { + req.httpRequest.headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD'; + return done(); + } + AWS.util.computeSha256(body, function(err, sha) { + if (err) { + done(err); + } + else { + req.httpRequest.headers['X-Amz-Content-Sha256'] = sha; + done(); + } + }); + } else { + done(); + } + }); - return refShape; - } else { - return null; - } -}; + add('SET_CONTENT_LENGTH', 'afterBuild', function SET_CONTENT_LENGTH(req) { + var authtype = getOperationAuthtype(req); + var payloadMember = AWS.util.getRequestPayloadShape(req); + if (req.httpRequest.headers['Content-Length'] === undefined) { + try { + var length = AWS.util.string.byteLength(req.httpRequest.body); + req.httpRequest.headers['Content-Length'] = length; + } catch (err) { + if (payloadMember && payloadMember.isStreaming) { + if (payloadMember.requiresLength) { + //streaming payload requires length(s3, glacier) + throw err; + } else if (authtype.indexOf('unsigned-body') >= 0) { + //unbounded streaming payload(lex, mediastore) + req.httpRequest.headers['Transfer-Encoding'] = 'chunked'; + return; + } else { + throw err; + } + } + throw err; + } + } + }); -Shape.create = function create(shape, options, memberName) { - if (shape.isShape) return shape; + add('SET_HTTP_HOST', 'afterBuild', function SET_HTTP_HOST(req) { + req.httpRequest.headers['Host'] = req.httpRequest.endpoint.host; + }); - var refShape = Shape.resolve(shape, options); - if (refShape) { - var filteredKeys = Object.keys(shape); - if (!options.documentation) { - filteredKeys = filteredKeys.filter(function(name) { - return !name.match(/documentation/); - }); - } + add('SET_TRACE_ID', 'afterBuild', function SET_TRACE_ID(req) { + var traceIdHeaderName = 'X-Amzn-Trace-Id'; + if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { + var ENV_LAMBDA_FUNCTION_NAME = 'AWS_LAMBDA_FUNCTION_NAME'; + var ENV_TRACE_ID = '_X_AMZN_TRACE_ID'; + var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + var traceId = process.env[ENV_TRACE_ID]; + if ( + typeof functionName === 'string' && + functionName.length > 0 && + typeof traceId === 'string' && + traceId.length > 0 + ) { + req.httpRequest.headers[traceIdHeaderName] = traceId; + } + } + }); - // create an inline shape with extra members - var InlineShape = function() { - refShape.constructor.call(this, shape, options, memberName); - }; - InlineShape.prototype = refShape; - return new InlineShape(); - } else { - // set type if not set - if (!shape.type) { - if (shape.members) shape.type = 'structure'; - else if (shape.member) shape.type = 'list'; - else if (shape.key) shape.type = 'map'; - else shape.type = 'string'; - } + add('RESTART', 'restart', function RESTART() { + var err = this.response.error; + if (!err || !err.retryable) return; - // normalize types - var origType = shape.type; - if (Shape.normalizedTypes[shape.type]) { - shape.type = Shape.normalizedTypes[shape.type]; - } + this.httpRequest = new AWS.HttpRequest( + this.service.endpoint, + this.service.region + ); - if (Shape.types[shape.type]) { - return new Shape.types[shape.type](shape, options, memberName); - } else { - throw new Error('Unrecognized shape type: ' + origType); - } - } -}; + if (this.response.retryCount < this.service.config.maxRetries) { + this.response.retryCount++; + } else { + this.response.error = null; + } + }); -function CompositeShape(shape) { - Shape.apply(this, arguments); - property(this, 'isComposite', true); + var addToHead = true; + addAsync('DISCOVER_ENDPOINT', 'sign', DISCOVER_ENDPOINT, addToHead); - if (shape.flattened) { - property(this, 'flattened', shape.flattened || false); - } -} + addAsync('SIGN', 'sign', function SIGN(req, done) { + var service = req.service; + var identityType = getIdentityType(req); + if (!identityType || identityType.length === 0) return done(); // none -function StructureShape(shape, options) { - var self = this; - var requiredMap = null, firstInit = !this.isShape; + if (identityType === 'bearer') { + service.config.getToken(function (err, token) { + if (err) { + req.response.error = err; + return done(); + } - CompositeShape.apply(this, arguments); + try { + var SignerClass = service.getSignerClass(req); + var signer = new SignerClass(req.httpRequest); + signer.addAuthorization(token); + } catch (e) { + req.response.error = e; + } + done(); + }); + } else { + service.config.getCredentials(function (err, credentials) { + if (err) { + req.response.error = err; + return done(); + } - if (firstInit) { - property(this, 'defaultValue', function() { return {}; }); - property(this, 'members', {}); - property(this, 'memberNames', []); - property(this, 'required', []); - property(this, 'isRequired', function() { return false; }); - property(this, 'isDocument', Boolean(shape.document)); - } + try { + var date = service.getSkewCorrectedDate(); + var SignerClass = service.getSignerClass(req); + var operations = req.service.api.operations || {}; + var operation = operations[req.operation]; + var signer = new SignerClass(req.httpRequest, + service.getSigningName(req), + { + signatureCache: service.config.signatureCache, + operation: operation, + signatureVersion: service.api.signatureVersion + }); + signer.setServiceClientId(service._clientId); - if (shape.members) { - property(this, 'members', new Collection(shape.members, options, function(name, member) { - return Shape.create(member, options, name); - })); - memoizedProperty(this, 'memberNames', function() { - return shape.xmlOrder || Object.keys(shape.members); - }); + // clear old authorization headers + delete req.httpRequest.headers['Authorization']; + delete req.httpRequest.headers['Date']; + delete req.httpRequest.headers['X-Amz-Date']; - if (shape.event) { - memoizedProperty(this, 'eventPayloadMemberName', function() { - var members = self.members; - var memberNames = self.memberNames; - // iterate over members to find ones that are event payloads - for (var i = 0, iLen = memberNames.length; i < iLen; i++) { - if (members[memberNames[i]].isEventPayload) { - return memberNames[i]; + // add new authorization + signer.addAuthorization(credentials, date); + req.signedAt = date; + } catch (e) { + req.response.error = e; } - } - }); + done(); + }); - memoizedProperty(this, 'eventHeaderMemberNames', function() { - var members = self.members; - var memberNames = self.memberNames; - var eventHeaderMemberNames = []; - // iterate over members to find ones that are event headers - for (var i = 0, iLen = memberNames.length; i < iLen; i++) { - if (members[memberNames[i]].isEventHeader) { - eventHeaderMemberNames.push(memberNames[i]); - } - } - return eventHeaderMemberNames; - }); - } - } + } + }); - if (shape.required) { - property(this, 'required', shape.required); - property(this, 'isRequired', function(name) { - if (!requiredMap) { - requiredMap = {}; - for (var i = 0; i < shape.required.length; i++) { - requiredMap[shape.required[i]] = true; + add('VALIDATE_RESPONSE', 'validateResponse', function VALIDATE_RESPONSE(resp) { + if (this.service.successfulResponse(resp, this)) { + resp.data = {}; + resp.error = null; + } else { + resp.data = null; + resp.error = AWS.util.error(new Error(), + {code: 'UnknownError', message: 'An unknown error occurred.'}); + } + }); + + add('ERROR', 'error', function ERROR(err, resp) { + var awsQueryCompatible = resp.request.service.api.awsQueryCompatible; + if (awsQueryCompatible) { + var headers = resp.httpResponse.headers; + var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined; + if (queryErrorCode && queryErrorCode.includes(';')) { + resp.error.code = queryErrorCode.split(';')[0]; } } + }, true); - return requiredMap[name]; - }, false, true); - } + addAsync('SEND', 'send', function SEND(resp, done) { + resp.httpResponse._abortCallback = done; + resp.error = null; + resp.data = null; - property(this, 'resultWrapper', shape.resultWrapper || null); + function callback(httpResp) { + resp.httpResponse.stream = httpResp; + var stream = resp.request.httpRequest.stream; + var service = resp.request.service; + var api = service.api; + var operationName = resp.request.operation; + var operation = api.operations[operationName] || {}; - if (shape.payload) { - property(this, 'payload', shape.payload); - } + httpResp.on('headers', function onHeaders(statusCode, headers, statusMessage) { + resp.request.emit( + 'httpHeaders', + [statusCode, headers, resp, statusMessage] + ); - if (typeof shape.xmlNamespace === 'string') { - property(this, 'xmlNamespaceUri', shape.xmlNamespace); - } else if (typeof shape.xmlNamespace === 'object') { - property(this, 'xmlNamespacePrefix', shape.xmlNamespace.prefix); - property(this, 'xmlNamespaceUri', shape.xmlNamespace.uri); - } -} + if (!resp.httpResponse.streaming) { + if (AWS.HttpClient.streamsApiVersion === 2) { // streams2 API check + // if we detect event streams, we're going to have to + // return the stream immediately + if (operation.hasEventOutput && service.successfulResponse(resp)) { + // skip reading the IncomingStream + resp.request.emit('httpDone'); + done(); + return; + } -function ListShape(shape, options) { - var self = this, firstInit = !this.isShape; - CompositeShape.apply(this, arguments); + httpResp.on('readable', function onReadable() { + var data = httpResp.read(); + if (data !== null) { + resp.request.emit('httpData', [data, resp]); + } + }); + } else { // legacy streams API + httpResp.on('data', function onData(data) { + resp.request.emit('httpData', [data, resp]); + }); + } + } + }); - if (firstInit) { - property(this, 'defaultValue', function() { return []; }); - } + httpResp.on('end', function onEnd() { + if (!stream || !stream.didCallback) { + if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { + // don't concatenate response chunks when streaming event stream data when response is successful + return; + } + resp.request.emit('httpDone'); + done(); + } + }); + } - if (shape.member) { - memoizedProperty(this, 'member', function() { - return Shape.create(shape.member, options); + function progress(httpResp) { + httpResp.on('sendProgress', function onSendProgress(value) { + resp.request.emit('httpUploadProgress', [value, resp]); + }); + + httpResp.on('receiveProgress', function onReceiveProgress(value) { + resp.request.emit('httpDownloadProgress', [value, resp]); + }); + } + + function error(err) { + if (err.code !== 'RequestAbortedError') { + var errCode = err.code === 'TimeoutError' ? err.code : 'NetworkingError'; + err = AWS.util.error(err, { + code: errCode, + region: resp.request.httpRequest.region, + hostname: resp.request.httpRequest.endpoint.hostname, + retryable: true + }); + } + resp.error = err; + resp.request.emit('httpError', [resp.error, resp], function() { + done(); + }); + } + + function executeSend() { + var http = AWS.HttpClient.getInstance(); + var httpOptions = resp.request.service.config.httpOptions || {}; + try { + var stream = http.handleRequest(resp.request.httpRequest, httpOptions, + callback, error); + progress(stream); + } catch (err) { + error(err); + } + } + var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; + if (timeDiff >= 60 * 10) { // if we signed 10min ago, re-sign + this.emit('sign', [this], function(err) { + if (err) done(err); + else executeSend(); + }); + } else { + executeSend(); + } }); - } - if (this.flattened) { - var oldName = this.name; - memoizedProperty(this, 'name', function() { - return self.member.name || oldName; + add('HTTP_HEADERS', 'httpHeaders', + function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { + resp.httpResponse.statusCode = statusCode; + resp.httpResponse.statusMessage = statusMessage; + resp.httpResponse.headers = headers; + resp.httpResponse.body = AWS.util.buffer.toBuffer(''); + resp.httpResponse.buffers = []; + resp.httpResponse.numBytes = 0; + var dateHeader = headers.date || headers.Date; + var service = resp.request.service; + if (dateHeader) { + var serverTime = Date.parse(dateHeader); + if (service.config.correctClockSkew + && service.isClockSkewed(serverTime)) { + service.applyClockOffset(serverTime); + } + } }); - } -} -function MapShape(shape, options) { - var firstInit = !this.isShape; - CompositeShape.apply(this, arguments); + add('HTTP_DATA', 'httpData', function HTTP_DATA(chunk, resp) { + if (chunk) { + if (AWS.util.isNode()) { + resp.httpResponse.numBytes += chunk.length; - if (firstInit) { - property(this, 'defaultValue', function() { return {}; }); - property(this, 'key', Shape.create({type: 'string'}, options)); - property(this, 'value', Shape.create({type: 'string'}, options)); - } + var total = resp.httpResponse.headers['content-length']; + var progress = { loaded: resp.httpResponse.numBytes, total: total }; + resp.request.emit('httpDownloadProgress', [progress, resp]); + } - if (shape.key) { - memoizedProperty(this, 'key', function() { - return Shape.create(shape.key, options); + resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk)); + } }); - } - if (shape.value) { - memoizedProperty(this, 'value', function() { - return Shape.create(shape.value, options); + + add('HTTP_DONE', 'httpDone', function HTTP_DONE(resp) { + // convert buffers array into single buffer + if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { + var body = AWS.util.buffer.concat(resp.httpResponse.buffers); + resp.httpResponse.body = body; + } + delete resp.httpResponse.numBytes; + delete resp.httpResponse.buffers; }); - } -} -function TimestampShape(shape) { - var self = this; - Shape.apply(this, arguments); + add('FINALIZE_ERROR', 'retry', function FINALIZE_ERROR(resp) { + if (resp.httpResponse.statusCode) { + resp.error.statusCode = resp.httpResponse.statusCode; + if (resp.error.retryable === undefined) { + resp.error.retryable = this.service.retryableError(resp.error, this); + } + } + }); - if (shape.timestampFormat) { - property(this, 'timestampFormat', shape.timestampFormat); - } else if (self.isTimestampFormatSet && this.timestampFormat) { - property(this, 'timestampFormat', this.timestampFormat); - } else if (this.location === 'header') { - property(this, 'timestampFormat', 'rfc822'); - } else if (this.location === 'querystring') { - property(this, 'timestampFormat', 'iso8601'); - } else if (this.api) { - switch (this.api.protocol) { - case 'json': - case 'rest-json': - property(this, 'timestampFormat', 'unixTimestamp'); - break; - case 'rest-xml': - case 'query': - case 'ec2': - property(this, 'timestampFormat', 'iso8601'); - break; - } - } + add('INVALIDATE_CREDENTIALS', 'retry', function INVALIDATE_CREDENTIALS(resp) { + if (!resp.error) return; + switch (resp.error.code) { + case 'RequestExpired': // EC2 only + case 'ExpiredTokenException': + case 'ExpiredToken': + resp.error.retryable = true; + resp.request.service.config.credentials.expired = true; + } + }); - this.toType = function(value) { - if (value === null || value === undefined) return null; - if (typeof value.toUTCString === 'function') return value; - return typeof value === 'string' || typeof value === 'number' ? - util.date.parseTimestamp(value) : null; - }; + add('EXPIRED_SIGNATURE', 'retry', function EXPIRED_SIGNATURE(resp) { + var err = resp.error; + if (!err) return; + if (typeof err.code === 'string' && typeof err.message === 'string') { + if (err.code.match(/Signature/) && err.message.match(/expired/)) { + resp.error.retryable = true; + } + } + }); - this.toWireFormat = function(value) { - return util.date.format(value, self.timestampFormat); - }; -} + add('CLOCK_SKEWED', 'retry', function CLOCK_SKEWED(resp) { + if (!resp.error) return; + if (this.service.clockSkewError(resp.error) + && this.service.config.correctClockSkew) { + resp.error.retryable = true; + } + }); -function StringShape() { - Shape.apply(this, arguments); + add('REDIRECT', 'retry', function REDIRECT(resp) { + if (resp.error && resp.error.statusCode >= 300 && + resp.error.statusCode < 400 && resp.httpResponse.headers['location']) { + this.httpRequest.endpoint = + new AWS.Endpoint(resp.httpResponse.headers['location']); + this.httpRequest.headers['Host'] = this.httpRequest.endpoint.host; + this.httpRequest.path = this.httpRequest.endpoint.path; + resp.error.redirect = true; + resp.error.retryable = true; + } + }); - var nullLessProtocols = ['rest-xml', 'query', 'ec2']; - this.toType = function(value) { - value = this.api && nullLessProtocols.indexOf(this.api.protocol) > -1 ? - value || '' : value; - if (this.isJsonValue) { - return JSON.parse(value); - } + add('RETRY_CHECK', 'retry', function RETRY_CHECK(resp) { + if (resp.error) { + if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.error.retryDelay = 0; + } else if (resp.retryCount < resp.maxRetries) { + resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; + } + } + }); - return value && typeof value.toString === 'function' ? - value.toString() : value; - }; + addAsync('RESET_RETRY_STATE', 'afterRetry', function RESET_RETRY_STATE(resp, done) { + var delay, willRetry = false; - this.toWireFormat = function(value) { - return this.isJsonValue ? JSON.stringify(value) : value; - }; -} + if (resp.error) { + delay = resp.error.retryDelay || 0; + if (resp.error.retryable && resp.retryCount < resp.maxRetries) { + resp.retryCount++; + willRetry = true; + } else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.redirectCount++; + willRetry = true; + } + } -function FloatShape() { - Shape.apply(this, arguments); + // delay < 0 is a signal from customBackoff to skip retries + if (willRetry && delay >= 0) { + resp.error = null; + setTimeout(done, delay); + } else { + done(); + } + }); + }), - this.toType = function(value) { - if (value === null || value === undefined) return null; - return parseFloat(value); - }; - this.toWireFormat = this.toType; -} + CorePost: new SequentialExecutor().addNamedListeners(function(add) { + add('EXTRACT_REQUEST_ID', 'extractData', AWS.util.extractRequestId); + add('EXTRACT_REQUEST_ID', 'extractError', AWS.util.extractRequestId); -function IntegerShape() { - Shape.apply(this, arguments); + add('ENOTFOUND_ERROR', 'httpError', function ENOTFOUND_ERROR(err) { + function isDNSError(err) { + return err.errno === 'ENOTFOUND' || + typeof err.errno === 'number' && + typeof AWS.util.getSystemErrorName === 'function' && + ['EAI_NONAME', 'EAI_NODATA'].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0); + } + if (err.code === 'NetworkingError' && isDNSError(err)) { + var message = 'Inaccessible host: `' + err.hostname + '\' at port `' + err.port + + '\'. This service may not be available in the `' + err.region + + '\' region.'; + this.response.error = AWS.util.error(new Error(message), { + code: 'UnknownEndpoint', + region: err.region, + hostname: err.hostname, + retryable: true, + originalError: err + }); + } + }); + }), - this.toType = function(value) { - if (value === null || value === undefined) return null; - return parseInt(value, 10); - }; - this.toWireFormat = this.toType; -} + Logger: new SequentialExecutor().addNamedListeners(function(add) { + add('LOG_REQUEST', 'complete', function LOG_REQUEST(resp) { + var req = resp.request; + var logger = req.service.config.logger; + if (!logger) return; + function filterSensitiveLog(inputShape, shape) { + if (!shape) { + return shape; + } + if (inputShape.isSensitive) { + return '***SensitiveInformation***'; + } + switch (inputShape.type) { + case 'structure': + var struct = {}; + AWS.util.each(shape, function(subShapeName, subShape) { + if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) { + struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); + } else { + struct[subShapeName] = subShape; + } + }); + return struct; + case 'list': + var list = []; + AWS.util.arrayEach(shape, function(subShape, index) { + list.push(filterSensitiveLog(inputShape.member, subShape)); + }); + return list; + case 'map': + var map = {}; + AWS.util.each(shape, function(key, value) { + map[key] = filterSensitiveLog(inputShape.value, value); + }); + return map; + default: + return shape; + } + } -function BinaryShape() { - Shape.apply(this, arguments); - this.toType = function(value) { - var buf = util.base64.decode(value); - if (this.isSensitive && util.isNode() && typeof util.Buffer.alloc === 'function') { - /* Node.js can create a Buffer that is not isolated. - * i.e. buf.byteLength !== buf.buffer.byteLength - * This means that the sensitive data is accessible to anyone with access to buf.buffer. - * If this is the node shared Buffer, then other code within this process _could_ find this secret. - * Copy sensitive data to an isolated Buffer and zero the sensitive data. - * While this is safe to do here, copying this code somewhere else may produce unexpected results. - */ - var secureBuf = util.Buffer.alloc(buf.length, buf); - buf.fill(0); - buf = secureBuf; - } - return buf; - }; - this.toWireFormat = util.base64.encode; -} + function buildMessage() { + var time = resp.request.service.getSkewCorrectedDate().getTime(); + var delta = (time - req.startTime.getTime()) / 1000; + var ansi = logger.isTTY ? true : false; + var status = resp.httpResponse.statusCode; + var censoredParams = req.params; + if ( + req.service.api.operations && + req.service.api.operations[req.operation] && + req.service.api.operations[req.operation].input + ) { + var inputShape = req.service.api.operations[req.operation].input; + censoredParams = filterSensitiveLog(inputShape, req.params); + } + var params = (__nccwpck_require__(39023).inspect)(censoredParams, true, null); + var message = ''; + if (ansi) message += '\x1B[33m'; + message += '[AWS ' + req.service.serviceIdentifier + ' ' + status; + message += ' ' + delta.toString() + 's ' + resp.retryCount + ' retries]'; + if (ansi) message += '\x1B[0;1m'; + message += ' ' + AWS.util.string.lowerFirst(req.operation); + message += '(' + params + ')'; + if (ansi) message += '\x1B[0m'; + return message; + } -function Base64Shape() { - BinaryShape.apply(this, arguments); -} + var line = buildMessage(); + if (typeof logger.log === 'function') { + logger.log(line); + } else if (typeof logger.write === 'function') { + logger.write(line + '\n'); + } + }); + }), -function BooleanShape() { - Shape.apply(this, arguments); + Json: new SequentialExecutor().addNamedListeners(function(add) { + var svc = __nccwpck_require__(95768); + add('BUILD', 'build', svc.buildRequest); + add('EXTRACT_DATA', 'extractData', svc.extractData); + add('EXTRACT_ERROR', 'extractError', svc.extractError); + }), - this.toType = function(value) { - if (typeof value === 'boolean') return value; - if (value === null || value === undefined) return null; - return value === 'true'; - }; -} + Rest: new SequentialExecutor().addNamedListeners(function(add) { + var svc = __nccwpck_require__(29252); + add('BUILD', 'build', svc.buildRequest); + add('EXTRACT_DATA', 'extractData', svc.extractData); + add('EXTRACT_ERROR', 'extractError', svc.extractError); + }), -/** - * @api private - */ -Shape.shapes = { - StructureShape: StructureShape, - ListShape: ListShape, - MapShape: MapShape, - StringShape: StringShape, - BooleanShape: BooleanShape, - Base64Shape: Base64Shape -}; + RestJson: new SequentialExecutor().addNamedListeners(function(add) { + var svc = __nccwpck_require__(93181); + add('BUILD', 'build', svc.buildRequest); + add('EXTRACT_DATA', 'extractData', svc.extractData); + add('EXTRACT_ERROR', 'extractError', svc.extractError); + add('UNSET_CONTENT_LENGTH', 'afterBuild', svc.unsetContentLength); + }), -/** - * @api private - */ -module.exports = Shape; + RestXml: new SequentialExecutor().addNamedListeners(function(add) { + var svc = __nccwpck_require__(63250); + add('BUILD', 'build', svc.buildRequest); + add('EXTRACT_DATA', 'extractData', svc.extractData); + add('EXTRACT_ERROR', 'extractError', svc.extractError); + }), + + Query: new SequentialExecutor().addNamedListeners(function(add) { + var svc = __nccwpck_require__(22960); + add('BUILD', 'build', svc.buildRequest); + add('EXTRACT_DATA', 'extractData', svc.extractData); + add('EXTRACT_ERROR', 'extractError', svc.extractError); + }) +}; /***/ }), -/***/ 16083: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(43956); +/***/ 89611: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var region_utils = __nccwpck_require__(98099); -var isFipsRegion = region_utils.isFipsRegion; -var getRealRegion = region_utils.getRealRegion; +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; -util.isBrowser = function() { return false; }; -util.isNode = function() { return true; }; +/** + * The endpoint that a service will talk to, for example, + * `'https://ec2.ap-southeast-1.amazonaws.com'`. If + * you need to override an endpoint for a service, you can + * set the endpoint on a service by passing the endpoint + * object with the `endpoint` option key: + * + * ```javascript + * var ep = new AWS.Endpoint('awsproxy.example.com'); + * var s3 = new AWS.S3({endpoint: ep}); + * s3.service.endpoint.hostname == 'awsproxy.example.com' + * ``` + * + * Note that if you do not specify a protocol, the protocol will + * be selected based on your current {AWS.config} configuration. + * + * @!attribute protocol + * @return [String] the protocol (http or https) of the endpoint + * URL + * @!attribute hostname + * @return [String] the host portion of the endpoint, e.g., + * example.com + * @!attribute host + * @return [String] the host portion of the endpoint including + * the port, e.g., example.com:80 + * @!attribute port + * @return [Integer] the port of the endpoint + * @!attribute href + * @return [String] the full URL of the endpoint + */ +AWS.Endpoint = inherit({ -// node.js specific modules -util.crypto.lib = __nccwpck_require__(6113); -util.Buffer = (__nccwpck_require__(14300).Buffer); -util.domain = __nccwpck_require__(13639); -util.stream = __nccwpck_require__(12781); -util.url = __nccwpck_require__(57310); -util.querystring = __nccwpck_require__(63477); -util.environment = 'nodejs'; -util.createEventStream = util.stream.Readable ? - (__nccwpck_require__(58523).createEventStream) : (__nccwpck_require__(23000).createEventStream); -util.realClock = __nccwpck_require__(28734); -util.clientSideMonitoring = { - Publisher: (__nccwpck_require__(79464).Publisher), - configProvider: __nccwpck_require__(67165), -}; -util.iniLoader = (__nccwpck_require__(35858)/* .iniLoader */ .b); -util.getSystemErrorName = (__nccwpck_require__(73837).getSystemErrorName); + /** + * @overload Endpoint(endpoint) + * Constructs a new endpoint given an endpoint URL. If the + * URL omits a protocol (http or https), the default protocol + * set in the global {AWS.config} will be used. + * @param endpoint [String] the URL to construct an endpoint from + */ + constructor: function Endpoint(endpoint, config) { + AWS.util.hideProperties(this, ['slashes', 'auth', 'hash', 'search', 'query']); -util.loadConfig = function(options) { - var envValue = options.environmentVariableSelector(process.env); - if (envValue !== undefined) { - return envValue; - } + if (typeof endpoint === 'undefined' || endpoint === null) { + throw new Error('Invalid endpoint: ' + endpoint); + } else if (typeof endpoint !== 'string') { + return AWS.util.copy(endpoint); + } - var configFile = {}; - try { - configFile = util.iniLoader ? util.iniLoader.loadFrom({ - isConfig: true, - filename: process.env[util.sharedConfigFileEnv] - }) : {}; - } catch (e) {} - var sharedFileConfig = configFile[ - process.env.AWS_PROFILE || util.defaultProfile - ] || {}; - var configValue = options.configFileSelector(sharedFileConfig); - if (configValue !== undefined) { - return configValue; - } + if (!endpoint.match(/^http/)) { + var useSSL = config && config.sslEnabled !== undefined ? + config.sslEnabled : AWS.config.sslEnabled; + endpoint = (useSSL ? 'https' : 'http') + '://' + endpoint; + } - if (typeof options.default === 'function') { - return options.default(); + AWS.util.update(this, AWS.util.urlParse(endpoint)); + + // Ensure the port property is set as an integer + if (this.port) { + this.port = parseInt(this.port, 10); + } else { + this.port = this.protocol === 'https:' ? 443 : 80; + } } - return options.default; -}; -var AWS; +}); /** - * @api private + * The low level HTTP request object, encapsulating all HTTP header + * and body data sent by a service request. + * + * @!attribute method + * @return [String] the HTTP method of the request + * @!attribute path + * @return [String] the path portion of the URI, e.g., + * "/list/?start=5&num=10" + * @!attribute headers + * @return [map] + * a map of header keys and their respective values + * @!attribute body + * @return [String] the request body payload + * @!attribute endpoint + * @return [AWS.Endpoint] the endpoint for the request + * @!attribute region + * @api private + * @return [String] the region, for signing purposes only. */ -module.exports = AWS = __nccwpck_require__(14741); - -__nccwpck_require__(75527); -__nccwpck_require__(92008); -__nccwpck_require__(18849); -__nccwpck_require__(66684); -__nccwpck_require__(98787); -__nccwpck_require__(95263); -__nccwpck_require__(91937); -__nccwpck_require__(98247); +AWS.HttpRequest = inherit({ -// Load the xml2js XML parser -AWS.XML.Parser = __nccwpck_require__(76687); + /** + * @api private + */ + constructor: function HttpRequest(endpoint, region) { + endpoint = new AWS.Endpoint(endpoint); + this.method = 'POST'; + this.path = endpoint.path || '/'; + this.headers = {}; + this.body = ''; + this.endpoint = endpoint; + this.region = region; + this._userAgent = ''; + this.setUserAgent(); + }, -// Load Node HTTP client -__nccwpck_require__(10773); + /** + * @api private + */ + setUserAgent: function setUserAgent() { + this._userAgent = this.headers[this.getUserAgentHeaderName()] = AWS.util.userAgent(); + }, -__nccwpck_require__(4544); + getUserAgentHeaderName: function getUserAgentHeaderName() { + var prefix = AWS.util.isBrowser() ? 'X-Amz-' : ''; + return prefix + 'User-Agent'; + }, -// Load custom credential providers -__nccwpck_require__(80191); -__nccwpck_require__(98712); -__nccwpck_require__(23429); -__nccwpck_require__(15589); -__nccwpck_require__(64925); -__nccwpck_require__(96493); -__nccwpck_require__(41587); -__nccwpck_require__(98247); -__nccwpck_require__(50157); + /** + * @api private + */ + appendToUserAgent: function appendToUserAgent(agentPartial) { + if (typeof agentPartial === 'string' && agentPartial) { + this._userAgent += ' ' + agentPartial; + } + this.headers[this.getUserAgentHeaderName()] = this._userAgent; + }, -// Setup default providers for credentials chain -// If this changes, please update documentation for -// AWS.CredentialProviderChain.defaultProviders in -// credentials/credential_provider_chain.js -AWS.CredentialProviderChain.defaultProviders = [ - function () { return new AWS.EnvironmentCredentials('AWS'); }, - function () { return new AWS.EnvironmentCredentials('AMAZON'); }, - function () { return new AWS.SsoCredentials(); }, - function () { return new AWS.SharedIniFileCredentials(); }, - function () { return new AWS.ECSCredentials(); }, - function () { return new AWS.ProcessCredentials(); }, - function () { return new AWS.TokenFileWebIdentityCredentials(); }, - function () { return new AWS.EC2MetadataCredentials(); } -]; + /** + * @api private + */ + getUserAgent: function getUserAgent() { + return this._userAgent; + }, -// Load custom token providers -__nccwpck_require__(13918); -__nccwpck_require__(27477); -__nccwpck_require__(35521); + /** + * @return [String] the part of the {path} excluding the + * query string + */ + pathname: function pathname() { + return this.path.split('?', 1)[0]; + }, -// Setup default providers for token chain -// If this changes, please update documentation for -// AWS.TokenProviderChain.defaultProviders in -// token/token_provider_chain.js -AWS.TokenProviderChain.defaultProviders = [ - function () { return new AWS.SSOTokenProvider(); }, -]; + /** + * @return [String] the query string portion of the {path} + */ + search: function search() { + var query = this.path.split('?', 2)[1]; + if (query) { + query = AWS.util.queryStringParse(query); + return AWS.util.queryParamsToString(query); + } + return ''; + }, -var getRegion = function() { - var env = process.env; - var region = env.AWS_REGION || env.AMAZON_REGION; - if (env[AWS.util.configOptInEnv]) { - var toCheck = [ - {filename: env[AWS.util.sharedCredentialsFileEnv]}, - {isConfig: true, filename: env[AWS.util.sharedConfigFileEnv]} - ]; - var iniLoader = AWS.util.iniLoader; - while (!region && toCheck.length) { - var configFile = {}; - var fileInfo = toCheck.shift(); - try { - configFile = iniLoader.loadFrom(fileInfo); - } catch (err) { - if (fileInfo.isConfig) throw err; - } - var profile = configFile[env.AWS_PROFILE || AWS.util.defaultProfile]; - region = profile && profile.region; + /** + * @api private + * update httpRequest endpoint with endpoint string + */ + updateEndpoint: function updateEndpoint(endpointStr) { + var newEndpoint = new AWS.Endpoint(endpointStr); + this.endpoint = newEndpoint; + this.path = newEndpoint.path || '/'; + if (this.headers['Host']) { + this.headers['Host'] = newEndpoint.host; } } - return region; -}; - -var getBooleanValue = function(value) { - return value === 'true' ? true: value === 'false' ? false: undefined; -}; +}); -var USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: function(env) { - return getBooleanValue(env['AWS_USE_FIPS_ENDPOINT']); - }, - configFileSelector: function(profile) { - return getBooleanValue(profile['use_fips_endpoint']); - }, - default: false, -}; +/** + * The low level HTTP response object, encapsulating all HTTP header + * and body data returned from the request. + * + * @!attribute statusCode + * @return [Integer] the HTTP status code of the response (e.g., 200, 404) + * @!attribute headers + * @return [map] + * a map of response header keys and their respective values + * @!attribute body + * @return [String] the response body payload + * @!attribute [r] streaming + * @return [Boolean] whether this response is being streamed at a low-level. + * Defaults to `false` (buffered reads). Do not modify this manually, use + * {createUnbufferedStream} to convert the stream to unbuffered mode + * instead. + */ +AWS.HttpResponse = inherit({ -var USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: function(env) { - return getBooleanValue(env['AWS_USE_DUALSTACK_ENDPOINT']); - }, - configFileSelector: function(profile) { - return getBooleanValue(profile['use_dualstack_endpoint']); + /** + * @api private + */ + constructor: function HttpResponse() { + this.statusCode = undefined; + this.headers = {}; + this.body = undefined; + this.streaming = false; + this.stream = null; }, - default: false, -}; -// Update configuration keys -AWS.util.update(AWS.Config.prototype.keys, { - credentials: function () { - var credentials = null; - new AWS.CredentialProviderChain([ - function () { return new AWS.EnvironmentCredentials('AWS'); }, - function () { return new AWS.EnvironmentCredentials('AMAZON'); }, - function () { return new AWS.SharedIniFileCredentials({ disableAssumeRole: true }); } - ]).resolve(function(err, creds) { - if (!err) credentials = creds; - }); - return credentials; - }, - credentialProvider: function() { - return new AWS.CredentialProviderChain(); - }, - logger: function () { - return process.env.AWSJS_DEBUG ? console : null; - }, - region: function() { - var region = getRegion(); - return region ? getRealRegion(region): undefined; - }, - tokenProvider: function() { - return new AWS.TokenProviderChain(); - }, - useFipsEndpoint: function() { - var region = getRegion(); - return isFipsRegion(region) - ? true - : util.loadConfig(USE_FIPS_ENDPOINT_CONFIG_OPTIONS); - }, - useDualstackEndpoint: function() { - return util.loadConfig(USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS); + /** + * Disables buffering on the HTTP response and returns the stream for reading. + * @return [Stream, XMLHttpRequest, null] the underlying stream object. + * Use this object to directly read data off of the stream. + * @note This object is only available after the {AWS.Request~httpHeaders} + * event has fired. This method must be called prior to + * {AWS.Request~httpData}. + * @example Taking control of a stream + * request.on('httpHeaders', function(statusCode, headers) { + * if (statusCode < 300) { + * if (headers.etag === 'xyz') { + * // pipe the stream, disabling buffering + * var stream = this.response.httpResponse.createUnbufferedStream(); + * stream.pipe(process.stdout); + * } else { // abort this request and set a better error message + * this.abort(); + * this.response.error = new Error('Invalid ETag'); + * } + * } + * }).send(console.log); + */ + createUnbufferedStream: function createUnbufferedStream() { + this.streaming = true; + return this.stream; } }); -// Reset configuration -AWS.config = new AWS.Config(); + +AWS.HttpClient = inherit({}); + +/** + * @api private + */ +AWS.HttpClient.getInstance = function getInstance() { + if (this.singleton === undefined) { + this.singleton = new this(); + } + return this.singleton; +}; /***/ }), -/***/ 9717: +/***/ 20194: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +var AWS = __nccwpck_require__(53832); +var Stream = AWS.util.stream.Stream; +var TransformStream = AWS.util.stream.Transform; +var ReadableStream = AWS.util.stream.Readable; +__nccwpck_require__(89611); +var CONNECTION_REUSE_ENV_NAME = 'AWS_NODEJS_CONNECTION_REUSE_ENABLED'; /** * @api private */ -AWS.ParamValidator = AWS.util.inherit({ - /** - * Create a new validator object. - * - * @param validation [Boolean|map] whether input parameters should be - * validated against the operation description before sending the - * request. Pass a map to enable any of the following specific - * validation features: - * - * * **min** [Boolean] — Validates that a value meets the min - * constraint. This is enabled by default when paramValidation is set - * to `true`. - * * **max** [Boolean] — Validates that a value meets the max - * constraint. - * * **pattern** [Boolean] — Validates that a string value matches a - * regular expression. - * * **enum** [Boolean] — Validates that a string value matches one - * of the allowable enum values. - */ - constructor: function ParamValidator(validation) { - if (validation === true || validation === undefined) { - validation = {'min': true}; +AWS.NodeHttpClient = AWS.util.inherit({ + handleRequest: function handleRequest(httpRequest, httpOptions, callback, errCallback) { + var self = this; + var endpoint = httpRequest.endpoint; + var pathPrefix = ''; + if (!httpOptions) httpOptions = {}; + if (httpOptions.proxy) { + pathPrefix = endpoint.protocol + '//' + endpoint.hostname; + if (endpoint.port !== 80 && endpoint.port !== 443) { + pathPrefix += ':' + endpoint.port; + } + endpoint = new AWS.Endpoint(httpOptions.proxy); } - this.validation = validation; - }, - validate: function validate(shape, params, context) { - this.errors = []; - this.validateMember(shape, params || {}, context || 'params'); + var useSSL = endpoint.protocol === 'https:'; + var http = useSSL ? __nccwpck_require__(65692) : __nccwpck_require__(58611); + var options = { + host: endpoint.hostname, + port: endpoint.port, + method: httpRequest.method, + headers: httpRequest.headers, + path: pathPrefix + httpRequest.path + }; - if (this.errors.length > 1) { - var msg = this.errors.join('\n* '); - msg = 'There were ' + this.errors.length + - ' validation errors:\n* ' + msg; - throw AWS.util.error(new Error(msg), - {code: 'MultipleValidationErrors', errors: this.errors}); - } else if (this.errors.length === 1) { - throw this.errors[0]; - } else { - return true; - } - }, + AWS.util.update(options, httpOptions); - fail: function fail(code, message) { - this.errors.push(AWS.util.error(new Error(message), {code: code})); - }, + if (!httpOptions.agent) { + options.agent = this.getAgent(useSSL, { + keepAlive: process.env[CONNECTION_REUSE_ENV_NAME] === '1' ? true : false + }); + } - validateStructure: function validateStructure(shape, params, context) { - if (shape.isDocument) return true; + delete options.proxy; // proxy isn't an HTTP option + delete options.timeout; // timeout isn't an HTTP option - this.validateType(params, context, ['object'], 'structure'); - var paramName; - for (var i = 0; shape.required && i < shape.required.length; i++) { - paramName = shape.required[i]; - var value = params[paramName]; - if (value === undefined || value === null) { - this.fail('MissingRequiredParameter', - 'Missing required key \'' + paramName + '\' in ' + context); - } - } + var stream = http.request(options, function (httpResp) { + if (stream.didCallback) return; - // validate hash members - for (paramName in params) { - if (!Object.prototype.hasOwnProperty.call(params, paramName)) continue; + callback(httpResp); + httpResp.emit( + 'headers', + httpResp.statusCode, + httpResp.headers, + httpResp.statusMessage + ); + }); + httpRequest.stream = stream; // attach stream to httpRequest + stream.didCallback = false; - var paramValue = params[paramName], - memberShape = shape.members[paramName]; + // connection timeout support + if (httpOptions.connectTimeout) { + var connectTimeoutId; + stream.on('socket', function(socket) { + if (socket.connecting) { + connectTimeoutId = setTimeout(function connectTimeout() { + if (stream.didCallback) return; stream.didCallback = true; - if (memberShape !== undefined) { - var memberContext = [context, paramName].join('.'); - this.validateMember(memberShape, paramValue, memberContext); - } else if (paramValue !== undefined && paramValue !== null) { - this.fail('UnexpectedParameter', - 'Unexpected key \'' + paramName + '\' found in ' + context); - } + stream.abort(); + errCallback(AWS.util.error( + new Error('Socket timed out without establishing a connection'), + {code: 'TimeoutError'} + )); + }, httpOptions.connectTimeout); + socket.on('connect', function() { + clearTimeout(connectTimeoutId); + connectTimeoutId = null; + }); + } + }); } - return true; - }, + // timeout support + stream.setTimeout(httpOptions.timeout || 0, function() { + if (stream.didCallback) return; stream.didCallback = true; - validateMember: function validateMember(shape, param, context) { - switch (shape.type) { - case 'structure': - return this.validateStructure(shape, param, context); - case 'list': - return this.validateList(shape, param, context); - case 'map': - return this.validateMap(shape, param, context); - default: - return this.validateScalar(shape, param, context); - } - }, + var msg = 'Connection timed out after ' + httpOptions.timeout + 'ms'; + errCallback(AWS.util.error(new Error(msg), {code: 'TimeoutError'})); + stream.abort(); + }); - validateList: function validateList(shape, params, context) { - if (this.validateType(params, context, [Array])) { - this.validateRange(shape, params.length, context, 'list member count'); - // validate array members - for (var i = 0; i < params.length; i++) { - this.validateMember(shape.member, params[i], context + '[' + i + ']'); + stream.on('error', function(err) { + if (connectTimeoutId) { + clearTimeout(connectTimeoutId); + connectTimeoutId = null; } - } - }, - - validateMap: function validateMap(shape, params, context) { - if (this.validateType(params, context, ['object'], 'map')) { - // Build up a count of map members to validate range traits. - var mapCount = 0; - for (var param in params) { - if (!Object.prototype.hasOwnProperty.call(params, param)) continue; - // Validate any map key trait constraints - this.validateMember(shape.key, param, - context + '[key=\'' + param + '\']'); - this.validateMember(shape.value, params[param], - context + '[\'' + param + '\']'); - mapCount++; + if (stream.didCallback) return; stream.didCallback = true; + if ('ECONNRESET' === err.code || 'EPIPE' === err.code || 'ETIMEDOUT' === err.code) { + errCallback(AWS.util.error(err, {code: 'TimeoutError'})); + } else { + errCallback(err); } - this.validateRange(shape, mapCount, context, 'map member count'); - } - }, + }); - validateScalar: function validateScalar(shape, value, context) { - switch (shape.type) { - case null: - case undefined: - case 'string': - return this.validateString(shape, value, context); - case 'base64': - case 'binary': - return this.validatePayload(value, context); - case 'integer': - case 'float': - return this.validateNumber(shape, value, context); - case 'boolean': - return this.validateType(value, context, ['boolean']); - case 'timestamp': - return this.validateType(value, context, [Date, - /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/, 'number'], - 'Date object, ISO-8601 string, or a UNIX timestamp'); - default: - return this.fail('UnkownType', 'Unhandled type ' + - shape.type + ' for ' + context); + var expect = httpRequest.headers.Expect || httpRequest.headers.expect; + if (expect === '100-continue') { + stream.once('continue', function() { + self.writeBody(stream, httpRequest); + }); + } else { + this.writeBody(stream, httpRequest); } - }, - validateString: function validateString(shape, value, context) { - var validTypes = ['string']; - if (shape.isJsonValue) { - validTypes = validTypes.concat(['number', 'object', 'boolean']); - } - if (value !== null && this.validateType(value, context, validTypes)) { - this.validateEnum(shape, value, context); - this.validateRange(shape, value.length, context, 'string length'); - this.validatePattern(shape, value, context); - this.validateUri(shape, value, context); - } + return stream; }, - validateUri: function validateUri(shape, value, context) { - if (shape['location'] === 'uri') { - if (value.length === 0) { - this.fail('UriParameterError', 'Expected uri parameter to have length >= 1,' - + ' but found "' + value +'" for ' + context); - } - } - }, + writeBody: function writeBody(stream, httpRequest) { + var body = httpRequest.body; + var totalBytes = parseInt(httpRequest.headers['Content-Length'], 10); - validatePattern: function validatePattern(shape, value, context) { - if (this.validation['pattern'] && shape['pattern'] !== undefined) { - if (!(new RegExp(shape['pattern'])).test(value)) { - this.fail('PatternMatchError', 'Provided value "' + value + '" ' - + 'does not match regex pattern /' + shape['pattern'] + '/ for ' - + context); + if (body instanceof Stream) { + // For progress support of streaming content - + // pipe the data through a transform stream to emit 'sendProgress' events + var progressStream = this.progressStream(stream, totalBytes); + if (progressStream) { + body.pipe(progressStream).pipe(stream); + } else { + body.pipe(stream); } + } else if (body) { + // The provided body is a buffer/string and is already fully available in memory - + // For performance it's best to send it as a whole by calling stream.end(body), + // Callers expect a 'sendProgress' event which is best emitted once + // the http request stream has been fully written and all data flushed. + // The use of totalBytes is important over body.length for strings where + // length is char length and not byte length. + stream.once('finish', function() { + stream.emit('sendProgress', { + loaded: totalBytes, + total: totalBytes + }); + }); + stream.end(body); + } else { + // no request body + stream.end(); } }, - validateRange: function validateRange(shape, value, context, descriptor) { - if (this.validation['min']) { - if (shape['min'] !== undefined && value < shape['min']) { - this.fail('MinRangeError', 'Expected ' + descriptor + ' >= ' - + shape['min'] + ', but found ' + value + ' for ' + context); - } - } - if (this.validation['max']) { - if (shape['max'] !== undefined && value > shape['max']) { - this.fail('MaxRangeError', 'Expected ' + descriptor + ' <= ' - + shape['max'] + ', but found ' + value + ' for ' + context); - } - } - }, + /** + * Create the https.Agent or http.Agent according to the request schema. + */ + getAgent: function getAgent(useSSL, agentOptions) { + var http = useSSL ? __nccwpck_require__(65692) : __nccwpck_require__(58611); + if (useSSL) { + if (!AWS.NodeHttpClient.sslAgent) { + AWS.NodeHttpClient.sslAgent = new http.Agent(AWS.util.merge({ + rejectUnauthorized: process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0' ? false : true + }, agentOptions || {})); + AWS.NodeHttpClient.sslAgent.setMaxListeners(0); - validateEnum: function validateRange(shape, value, context) { - if (this.validation['enum'] && shape['enum'] !== undefined) { - // Fail if the string value is not present in the enum list - if (shape['enum'].indexOf(value) === -1) { - this.fail('EnumError', 'Found string value of ' + value + ', but ' - + 'expected ' + shape['enum'].join('|') + ' for ' + context); + // delegate maxSockets to globalAgent, set a default limit of 50 if current value is Infinity. + // Users can bypass this default by supplying their own Agent as part of SDK configuration. + Object.defineProperty(AWS.NodeHttpClient.sslAgent, 'maxSockets', { + enumerable: true, + get: function() { + var defaultMaxSockets = 50; + var globalAgent = http.globalAgent; + if (globalAgent && globalAgent.maxSockets !== Infinity && typeof globalAgent.maxSockets === 'number') { + return globalAgent.maxSockets; + } + return defaultMaxSockets; + } + }); } - } - }, - - validateType: function validateType(value, context, acceptedTypes, type) { - // We will not log an error for null or undefined, but we will return - // false so that callers know that the expected type was not strictly met. - if (value === null || value === undefined) return false; - - var foundInvalidType = false; - for (var i = 0; i < acceptedTypes.length; i++) { - if (typeof acceptedTypes[i] === 'string') { - if (typeof value === acceptedTypes[i]) return true; - } else if (acceptedTypes[i] instanceof RegExp) { - if ((value || '').toString().match(acceptedTypes[i])) return true; - } else { - if (value instanceof acceptedTypes[i]) return true; - if (AWS.util.isType(value, acceptedTypes[i])) return true; - if (!type && !foundInvalidType) acceptedTypes = acceptedTypes.slice(); - acceptedTypes[i] = AWS.util.typeName(acceptedTypes[i]); + return AWS.NodeHttpClient.sslAgent; + } else { + if (!AWS.NodeHttpClient.agent) { + AWS.NodeHttpClient.agent = new http.Agent(agentOptions); } - foundInvalidType = true; - } - - var acceptedType = type; - if (!acceptedType) { - acceptedType = acceptedTypes.join(', ').replace(/,([^,]+)$/, ', or$1'); - } - - var vowel = acceptedType.match(/^[aeiou]/i) ? 'n' : ''; - this.fail('InvalidParameterType', 'Expected ' + context + ' to be a' + - vowel + ' ' + acceptedType); - return false; - }, - - validateNumber: function validateNumber(shape, value, context) { - if (value === null || value === undefined) return; - if (typeof value === 'string') { - var castedValue = parseFloat(value); - if (castedValue.toString() === value) value = castedValue; - } - if (this.validateType(value, context, ['number'])) { - this.validateRange(shape, value, context, 'numeric value'); + return AWS.NodeHttpClient.agent; } }, - validatePayload: function validatePayload(value, context) { - if (value === null || value === undefined) return; - if (typeof value === 'string') return; - if (value && typeof value.byteLength === 'number') return; // typed arrays - if (AWS.util.isNode()) { // special check for buffer/stream in Node.js - var Stream = AWS.util.stream.Stream; - if (AWS.util.Buffer.isBuffer(value) || value instanceof Stream) return; - } else { - if (typeof Blob !== void 0 && value instanceof Blob) return; + progressStream: function progressStream(stream, totalBytes) { + if (typeof TransformStream === 'undefined') { + // for node 0.8 there is no streaming progress + return; } - - var types = ['Buffer', 'Stream', 'File', 'Blob', 'ArrayBuffer', 'DataView']; - if (value) { - for (var i = 0; i < types.length; i++) { - if (AWS.util.isType(value, types[i])) return; - if (AWS.util.typeName(value.constructor) === types[i]) return; + var loadedBytes = 0; + var reporter = new TransformStream(); + reporter._transform = function(chunk, encoding, callback) { + if (chunk) { + loadedBytes += chunk.length; + stream.emit('sendProgress', { + loaded: loadedBytes, + total: totalBytes + }); } - } + callback(null, chunk); + }; + return reporter; + }, - this.fail('InvalidParameterType', 'Expected ' + context + ' to be a ' + - 'string, Buffer, Stream, Blob, or typed array object'); - } + emitter: null }); - -/***/ }), - -/***/ 96338: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var rest = AWS.Protocol.Rest; - /** - * A presigner object can be used to generate presigned urls for the Polly service. + * @!ignore */ -AWS.Polly.Presigner = AWS.util.inherit({ - /** - * Creates a presigner object with a set of configuration options. - * - * @option options params [map] An optional map of parameters to bind to every - * request sent by this service object. - * @option options service [AWS.Polly] An optional pre-configured instance - * of the AWS.Polly service object to use for requests. The object may - * bound parameters used by the presigner. - * @see AWS.Polly.constructor - */ - constructor: function Signer(options) { - options = options || {}; - this.options = options; - this.service = options.service; - this.bindServiceObject(options); - this._operations = {}; - }, - - /** - * @api private - */ - bindServiceObject: function bindServiceObject(options) { - options = options || {}; - if (!this.service) { - this.service = new AWS.Polly(options); - } else { - var config = AWS.util.copy(this.service.config); - this.service = new this.service.constructor.__super__(config); - this.service.config.params = AWS.util.merge(this.service.config.params || {}, options.params); - } - }, - - /** - * @api private - */ - modifyInputMembers: function modifyInputMembers(input) { - // make copies of the input so we don't overwrite the api - // need to be careful to copy anything we access/modify - var modifiedInput = AWS.util.copy(input); - modifiedInput.members = AWS.util.copy(input.members); - AWS.util.each(input.members, function(name, member) { - modifiedInput.members[name] = AWS.util.copy(member); - // update location and locationName - if (!member.location || member.location === 'body') { - modifiedInput.members[name].location = 'querystring'; - modifiedInput.members[name].locationName = name; - } - }); - return modifiedInput; - }, - /** - * @api private - */ - convertPostToGet: function convertPostToGet(req) { - // convert method - req.httpRequest.method = 'GET'; +/** + * @api private + */ +AWS.HttpClient.prototype = AWS.NodeHttpClient.prototype; - var operation = req.service.api.operations[req.operation]; - // get cached operation input first - var input = this._operations[req.operation]; - if (!input) { - // modify the original input - this._operations[req.operation] = input = this.modifyInputMembers(operation.input); - } +/** + * @api private + */ +AWS.HttpClient.streamsApiVersion = ReadableStream ? 2 : 1; - var uri = rest.generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); - req.httpRequest.path = uri; - req.httpRequest.body = ''; +/***/ }), - // don't need these headers on a GET request - delete req.httpRequest.headers['Content-Length']; - delete req.httpRequest.headers['Content-Type']; - }, +/***/ 53669: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @overload getSynthesizeSpeechUrl(params = {}, [expires = 3600], [callback]) - * Generate a presigned url for {AWS.Polly.synthesizeSpeech}. - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * @param params [map] parameters to pass to the operation. See the {AWS.Polly.synthesizeSpeech} - * operation for the expected operation parameters. - * @param expires [Integer] (3600) the number of seconds to expire the pre-signed URL operation in. - * Defaults to 1 hour. - * @return [string] if called synchronously (with no callback), returns the signed URL. - * @return [null] nothing is returned if a callback is provided. - * @callback callback function (err, url) - * If a callback is supplied, it is called when a signed URL has been generated. - * @param err [Error] the error object returned from the presigner. - * @param url [String] the signed URL. - * @see AWS.Polly.synthesizeSpeech - */ - getSynthesizeSpeechUrl: function getSynthesizeSpeechUrl(params, expires, callback) { - var self = this; - var request = this.service.makeRequest('synthesizeSpeech', params); - // remove existing build listeners - request.removeAllListeners('build'); - request.on('build', function(req) { - self.convertPostToGet(req); - }); - return request.presign(expires, callback); - } -}); +var util = __nccwpck_require__(30879); +function JsonBuilder() { } -/***/ }), +JsonBuilder.prototype.build = function(value, shape) { + return JSON.stringify(translate(value, shape)); +}; -/***/ 3613: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function translate(value, shape) { + if (!shape || value === undefined || value === null) return undefined; -var util = __nccwpck_require__(43956); -var AWS = __nccwpck_require__(14741); + switch (shape.type) { + case 'structure': return translateStructure(value, shape); + case 'map': return translateMap(value, shape); + case 'list': return translateList(value, shape); + default: return translateScalar(value, shape); + } +} -/** - * Prepend prefix defined by API model to endpoint that's already - * constructed. This feature does not apply to operations using - * endpoint discovery and can be disabled. - * @api private - */ -function populateHostPrefix(request) { - var enabled = request.service.config.hostPrefixEnabled; - if (!enabled) return request; - var operationModel = request.service.api.operations[request.operation]; - //don't marshal host prefix when operation has endpoint discovery traits - if (hasEndpointDiscover(request)) return request; - if (operationModel.endpoint && operationModel.endpoint.hostPrefix) { - var hostPrefixNotation = operationModel.endpoint.hostPrefix; - var hostPrefix = expandHostPrefix(hostPrefixNotation, request.params, operationModel.input); - prependEndpointPrefix(request.httpRequest.endpoint, hostPrefix); - validateHostname(request.httpRequest.endpoint.hostname); +function translateStructure(structure, shape) { + if (shape.isDocument) { + return structure; } - return request; + var struct = {}; + util.each(structure, function(name, value) { + var memberShape = shape.members[name]; + if (memberShape) { + if (memberShape.location !== 'body') return; + var locationName = memberShape.isLocationName ? memberShape.name : name; + var result = translate(value, memberShape); + if (result !== undefined) struct[locationName] = result; + } + }); + return struct; } -/** - * @api private - */ -function hasEndpointDiscover(request) { - var api = request.service.api; - var operationModel = api.operations[request.operation]; - var isEndpointOperation = api.endpointOperation && (api.endpointOperation === util.string.lowerFirst(operationModel.name)); - return (operationModel.endpointDiscoveryRequired !== 'NULL' || isEndpointOperation === true); +function translateList(list, shape) { + var out = []; + util.arrayEach(list, function(value) { + var result = translate(value, shape.member); + if (result !== undefined) out.push(result); + }); + return out; } -/** - * @api private - */ -function expandHostPrefix(hostPrefixNotation, params, shape) { - util.each(shape.members, function(name, member) { - if (member.hostLabel === true) { - if (typeof params[name] !== 'string' || params[name] === '') { - throw util.error(new Error(), { - message: 'Parameter ' + name + ' should be a non-empty string.', - code: 'InvalidParameter' - }); - } - var regex = new RegExp('\\{' + name + '\\}', 'g'); - hostPrefixNotation = hostPrefixNotation.replace(regex, params[name]); - } +function translateMap(map, shape) { + var out = {}; + util.each(map, function(key, value) { + var result = translate(value, shape.value); + if (result !== undefined) out[key] = result; }); - return hostPrefixNotation; + return out; } -/** - * @api private - */ -function prependEndpointPrefix(endpoint, prefix) { - if (endpoint.host) { - endpoint.host = prefix + endpoint.host; - } - if (endpoint.hostname) { - endpoint.hostname = prefix + endpoint.hostname; - } +function translateScalar(value, shape) { + return shape.toWireFormat(value); } /** * @api private */ -function validateHostname(hostname) { - var labels = hostname.split('.'); - //Reference: https://tools.ietf.org/html/rfc1123#section-2 - var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; - util.arrayEach(labels, function(label) { - if (!label.length || label.length < 1 || label.length > 63) { - throw util.error(new Error(), { - code: 'ValidationError', - message: 'Hostname label length should be between 1 to 63 characters, inclusive.' - }); - } - if (!hostPattern.test(label)) { - throw AWS.util.error(new Error(), - {code: 'ValidationError', message: label + ' is not hostname compatible.'}); - } - }); -} - -module.exports = { - populateHostPrefix: populateHostPrefix -}; +module.exports = JsonBuilder; /***/ }), -/***/ 67372: +/***/ 99427: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var util = __nccwpck_require__(43956); -var JsonBuilder = __nccwpck_require__(94387); -var JsonParser = __nccwpck_require__(61039); -var populateHostPrefix = (__nccwpck_require__(3613).populateHostPrefix); - -function buildRequest(req) { - var httpRequest = req.httpRequest; - var api = req.service.api; - var target = api.targetPrefix + '.' + api.operations[req.operation].name; - var version = api.jsonVersion || '1.0'; - var input = api.operations[req.operation].input; - var builder = new JsonBuilder(); - - if (version === 1) version = '1.0'; - - if (api.awsQueryCompatible) { - if (!httpRequest.params) { - httpRequest.params = {}; - } - // because Query protocol does this. - Object.assign(httpRequest.params, req.params); - } +var util = __nccwpck_require__(30879); - httpRequest.body = builder.build(req.params || {}, input); - httpRequest.headers['Content-Type'] = 'application/x-amz-json-' + version; - httpRequest.headers['X-Amz-Target'] = target; +function JsonParser() { } - populateHostPrefix(req); -} +JsonParser.prototype.parse = function(value, shape) { + return translate(JSON.parse(value), shape); +}; -function extractError(resp) { - var error = {}; - var httpResponse = resp.httpResponse; +function translate(value, shape) { + if (!shape || value === undefined) return undefined; - error.code = httpResponse.headers['x-amzn-errortype'] || 'UnknownError'; - if (typeof error.code === 'string') { - error.code = error.code.split(':')[0]; + switch (shape.type) { + case 'structure': return translateStructure(value, shape); + case 'map': return translateMap(value, shape); + case 'list': return translateList(value, shape); + default: return translateScalar(value, shape); } +} - if (httpResponse.body.length > 0) { - try { - var e = JSON.parse(httpResponse.body.toString()); +function translateStructure(structure, shape) { + if (structure == null) return undefined; + if (shape.isDocument) return structure; - var code = e.__type || e.code || e.Code; - if (code) { - error.code = code.split('#').pop(); - } - if (error.code === 'RequestEntityTooLarge') { - error.message = 'Request body must be less than 1 MB'; - } else { - error.message = (e.message || e.Message || null); + var struct = {}; + var shapeMembers = shape.members; + var isAwsQueryCompatible = shape.api && shape.api.awsQueryCompatible; + util.each(shapeMembers, function(name, memberShape) { + var locationName = memberShape.isLocationName ? memberShape.name : name; + if (Object.prototype.hasOwnProperty.call(structure, locationName)) { + var value = structure[locationName]; + var result = translate(value, memberShape); + if (result !== undefined) struct[name] = result; + } else if (isAwsQueryCompatible && memberShape.defaultValue) { + if (memberShape.type === 'list') { + struct[name] = typeof memberShape.defaultValue === 'function' ? memberShape.defaultValue() : memberShape.defaultValue; } + } + }); + return struct; +} - // The minimized models do not have error shapes, so - // without expanding the model size, it's not possible - // to validate the response shape (members) or - // check if any are sensitive to logging. +function translateList(list, shape) { + if (list == null) return undefined; - // Assign the fields as non-enumerable, allowing specific access only. - for (var key in e || {}) { - if (key === 'code' || key === 'message') { - continue; - } - error['[' + key + ']'] = 'See error.' + key + ' for details.'; - Object.defineProperty(error, key, { - value: e[key], - enumerable: false, - writable: true - }); - } - } catch (e) { - error.statusCode = httpResponse.statusCode; - error.message = httpResponse.statusMessage; - } - } else { - error.statusCode = httpResponse.statusCode; - error.message = httpResponse.statusCode.toString(); - } + var out = []; + util.arrayEach(list, function(value) { + var result = translate(value, shape.member); + if (result === undefined) out.push(null); + else out.push(result); + }); + return out; +} - resp.error = util.error(new Error(), error); +function translateMap(map, shape) { + if (map == null) return undefined; + + var out = {}; + util.each(map, function(key, value) { + var result = translate(value, shape.value); + if (result === undefined) out[key] = null; + else out[key] = result; + }); + return out; } -function extractData(resp) { - var body = resp.httpResponse.body.toString() || '{}'; - if (resp.request.service.config.convertResponseTypes === false) { - resp.data = JSON.parse(body); - } else { - var operation = resp.request.service.api.operations[resp.request.operation]; - var shape = operation.output || {}; - var parser = new JsonParser(); - resp.data = parser.parse(body, shape); - } +function translateScalar(value, shape) { + return shape.toType(value); } /** * @api private */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData -}; +module.exports = JsonParser; /***/ }), -/***/ 46556: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 24668: +/***/ ((module) => { -var AWS = __nccwpck_require__(14741); -var util = __nccwpck_require__(43956); -var QueryParamSerializer = __nccwpck_require__(5792); -var Shape = __nccwpck_require__(77478); -var populateHostPrefix = (__nccwpck_require__(3613).populateHostPrefix); +var warning = [ + 'The AWS SDK for JavaScript (v2) has reached end-of-support.', + 'It will no longer receive updates or releases.\n', + 'Please migrate your code to use AWS SDK for JavaScript (v3).', + 'For more information, check the blog post at https://a.co/cUPnyil' +].join('\n'); -function buildRequest(req) { - var operation = req.service.api.operations[req.operation]; - var httpRequest = req.httpRequest; - httpRequest.headers['Content-Type'] = - 'application/x-www-form-urlencoded; charset=utf-8'; - httpRequest.params = { - Version: req.service.api.apiVersion, - Action: operation.name - }; +module.exports = { + suppress: false +}; - // convert the request parameters into a list of query params, - // e.g. Deeply.NestedParam.0.Name=value - var builder = new QueryParamSerializer(); - builder.serialize(req.params, operation.input, function(name, value) { - httpRequest.params[name] = value; - }); - httpRequest.body = util.queryParamsToString(httpRequest.params); +/** + * To suppress this message: + * @example + * require('aws-sdk/lib/maintenance_mode_message').suppress = true; + */ +function emitWarning() { + if (typeof process === 'undefined') + return; - populateHostPrefix(req); -} + // Skip maintenance mode message in Lambda environments + if ( + typeof process.env === 'object' && + typeof process.env.AWS_EXECUTION_ENV !== 'undefined' && + process.env.AWS_EXECUTION_ENV.indexOf('AWS_Lambda_') === 0 + ) { + return; + } -function extractError(resp) { - var data, body = resp.httpResponse.body.toString(); - if (body.match(' { - resp.data = data; -} +var AWS = __nccwpck_require__(53832); +__nccwpck_require__(89611); +var inherit = AWS.util.inherit; +var getMetadataServiceEndpoint = __nccwpck_require__(25889); +var URL = (__nccwpck_require__(87016).URL); /** - * @api private + * Represents a metadata service available on EC2 instances. Using the + * {request} method, you can receieve metadata about any available resource + * on the metadata service. + * + * You can disable the use of the IMDS by setting the AWS_EC2_METADATA_DISABLED + * environment variable to a truthy value. + * + * @!attribute [r] httpOptions + * @return [map] a map of options to pass to the underlying HTTP request: + * + * * **timeout** (Number) — a timeout value in milliseconds to wait + * before aborting the connection. Set to 0 for no timeout. + * + * @!macro nobrowser */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData -}; +AWS.MetadataService = inherit({ + /** + * @return [String] the endpoint of the instance metadata service + */ + endpoint: getMetadataServiceEndpoint(), + /** + * @!ignore + */ -/***/ }), + /** + * Default HTTP options. By default, the metadata service is set to not + * timeout on long requests. This means that on non-EC2 machines, this + * request will never return. If you are calling this operation from an + * environment that may not always run on EC2, set a `timeout` value so + * the SDK will abort the request after a given number of milliseconds. + */ + httpOptions: { timeout: 0 }, -/***/ 79008: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** + * when enabled, metadata service will not fetch token + */ + disableFetchToken: false, -var util = __nccwpck_require__(43956); -var populateHostPrefix = (__nccwpck_require__(3613).populateHostPrefix); + /** + * Creates a new MetadataService object with a given set of options. + * + * @option options host [String] the hostname of the instance metadata + * service + * @option options httpOptions [map] a map of options to pass to the + * underlying HTTP request: + * + * * **timeout** (Number) — a timeout value in milliseconds to wait + * before aborting the connection. Set to 0 for no timeout. + * @option options maxRetries [Integer] the maximum number of retries to + * perform for timeout errors + * @option options retryDelayOptions [map] A set of options to configure the + * retry delay on retryable errors. See AWS.Config for details. + * @option options ec2MetadataV1Disabled [boolean] Whether to block IMDS v1 fallback. + * @option options profile [string] A profile to check for IMDSv1 fallback settings. + * @option options filename [string] Optional filename for the config file. + */ + constructor: function MetadataService(options) { + if (options && options.host) { + options.endpoint = 'http://' + options.host; + delete options.host; + } + this.profile = options && options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; + this.ec2MetadataV1Disabled = !!(options && options.ec2MetadataV1Disabled); + this.filename = options && options.filename; + AWS.util.update(this, options); + }, -function populateMethod(req) { - req.httpRequest.method = req.service.api.operations[req.operation].httpMethod; -} + /** + * Sends a request to the instance metadata service for a given resource. + * + * @param path [String] the path of the resource to get + * + * @param options [map] an optional map used to make request + * + * * **method** (String) — HTTP request method + * + * * **headers** (map) — a map of response header keys and their respective values + * + * @callback callback function(err, data) + * Called when a response is available from the service. + * @param err [Error, null] if an error occurred, this value will be set + * @param data [String, null] if the request was successful, the body of + * the response + */ + request: function request(path, options, callback) { + if (arguments.length === 2) { + callback = options; + options = {}; + } -function generateURI(endpointPath, operationPath, input, params) { - var uri = [endpointPath, operationPath].join('/'); - uri = uri.replace(/\/+/g, '/'); + if (process.env[AWS.util.imdsDisabledEnv]) { + callback(new Error('EC2 Instance Metadata Service access disabled')); + return; + } - var queryString = {}, queryStringSet = false; - util.each(input.members, function (name, member) { - var paramValue = params[name]; - if (paramValue === null || paramValue === undefined) return; - if (member.location === 'uri') { - var regex = new RegExp('\\{' + member.name + '(\\+)?\\}'); - uri = uri.replace(regex, function(_, plus) { - var fn = plus ? util.uriEscapePath : util.uriEscape; - return fn(String(paramValue)); - }); - } else if (member.location === 'querystring') { - queryStringSet = true; + path = path || '/'; - if (member.type === 'list') { - queryString[member.name] = paramValue.map(function(val) { - return util.uriEscape(member.member.toWireFormat(val).toString()); - }); - } else if (member.type === 'map') { - util.each(paramValue, function(key, value) { - if (Array.isArray(value)) { - queryString[key] = value.map(function(val) { - return util.uriEscape(String(val)); - }); - } else { - queryString[key] = util.uriEscape(String(value)); - } - }); - } else { - queryString[member.name] = util.uriEscape(member.toWireFormat(paramValue).toString()); - } - } - }); + // Verify that host is a valid URL + if (URL) { new URL(this.endpoint); } - if (queryStringSet) { - uri += (uri.indexOf('?') >= 0 ? '&' : '?'); - var parts = []; - util.arrayEach(Object.keys(queryString).sort(), function(key) { - if (!Array.isArray(queryString[key])) { - queryString[key] = [queryString[key]]; - } - for (var i = 0; i < queryString[key].length; i++) { - parts.push(util.uriEscape(String(key)) + '=' + queryString[key][i]); - } - }); - uri += parts.join('&'); - } + var httpRequest = new AWS.HttpRequest(this.endpoint + path); + httpRequest.method = options.method || 'GET'; + if (options.headers) { + httpRequest.headers = options.headers; + } + AWS.util.handleRequestWithRetries(httpRequest, this, callback); + }, - return uri; -} + /** + * @api private + */ + loadCredentialsCallbacks: [], -function populateURI(req) { - var operation = req.service.api.operations[req.operation]; - var input = operation.input; + /** + * Fetches metadata token used for authenticating against the instance metadata service. + * + * @callback callback function(err, token) + * Called when token is loaded from the resource + */ + fetchMetadataToken: function fetchMetadataToken(callback) { + var self = this; + var tokenFetchPath = '/latest/api/token'; + self.request( + tokenFetchPath, + { + 'method': 'PUT', + 'headers': { + 'x-aws-ec2-metadata-token-ttl-seconds': '21600' + } + }, + callback + ); + }, - var uri = generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); - req.httpRequest.path = uri; -} + /** + * Fetches credentials + * + * @api private + * @callback cb function(err, creds) + * Called when credentials are loaded from the resource + */ + fetchCredentials: function fetchCredentials(options, cb) { + var self = this; + var basePath = '/latest/meta-data/iam/security-credentials/'; -function populateHeaders(req) { - var operation = req.service.api.operations[req.operation]; - util.each(operation.input.members, function (name, member) { - var value = req.params[name]; - if (value === null || value === undefined) return; + var isImdsV1Fallback = self.disableFetchToken + || !(options && options.headers && options.headers['x-aws-ec2-metadata-token']); - if (member.location === 'headers' && member.type === 'map') { - util.each(value, function(key, memberValue) { - req.httpRequest.headers[member.name + key] = memberValue; - }); - } else if (member.location === 'header') { - value = member.toWireFormat(value).toString(); - if (member.isJsonValue) { - value = util.base64.encode(value); + if (isImdsV1Fallback && !(process.env.AWS_EC2_METADATA_DISABLED)) { + try { + var profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader, this.filename); + var profileSettings = profiles[this.profile] || {}; + } catch (e) { + profileSettings = {}; } - req.httpRequest.headers[member.name] = value; - } - }); -} - -function buildRequest(req) { - populateMethod(req); - populateURI(req); - populateHeaders(req); - populateHostPrefix(req); -} -function extractError() { -} + if (profileSettings.ec2_metadata_v1_disabled && profileSettings.ec2_metadata_v1_disabled !== 'false') { + return cb(AWS.util.error( + new Error('AWS EC2 Metadata v1 fallback has been blocked by AWS config file profile.') + )); + } -function extractData(resp) { - var req = resp.request; - var data = {}; - var r = resp.httpResponse; - var operation = req.service.api.operations[req.operation]; - var output = operation.output; + if (self.ec2MetadataV1Disabled) { + return cb(AWS.util.error( + new Error('AWS EC2 Metadata v1 fallback has been blocked by AWS.MetadataService::options.ec2MetadataV1Disabled=true.') + )); + } - // normalize headers names to lower-cased keys for matching - var headers = {}; - util.each(r.headers, function (k, v) { - headers[k.toLowerCase()] = v; - }); + if (process.env.AWS_EC2_METADATA_V1_DISABLED && process.env.AWS_EC2_METADATA_V1_DISABLED !== 'false') { + return cb(AWS.util.error( + new Error('AWS EC2 Metadata v1 fallback has been blocked by process.env.AWS_EC2_METADATA_V1_DISABLED.') + )); + } + } - util.each(output.members, function(name, member) { - var header = (member.name || name).toLowerCase(); - if (member.location === 'headers' && member.type === 'map') { - data[name] = {}; - var location = member.isLocationName ? member.name : ''; - var pattern = new RegExp('^' + location + '(.+)', 'i'); - util.each(r.headers, function (k, v) { - var result = k.match(pattern); - if (result !== null) { - data[name][result[1]] = v; + self.request(basePath, options, function (err, roleName) { + if (err) { + self.disableFetchToken = !(err.statusCode === 401); + cb(AWS.util.error( + err, + { + message: 'EC2 Metadata roleName request returned error' + } + )); + return; + } + roleName = roleName.split('\n')[0]; // grab first (and only) role + self.request(basePath + roleName, options, function (credErr, credData) { + if (credErr) { + self.disableFetchToken = !(credErr.statusCode === 401); + cb(AWS.util.error( + credErr, + { + message: 'EC2 Metadata creds request returned error' + } + )); + return; + } + try { + var credentials = JSON.parse(credData); + cb(null, credentials); + } catch (parseError) { + cb(parseError); } }); - } else if (member.location === 'header') { - if (headers[header] !== undefined) { - var value = member.isJsonValue ? - util.base64.decode(headers[header]) : - headers[header]; - data[name] = member.toType(value); + }); + }, + + /** + * Loads a set of credentials stored in the instance metadata service + * + * @api private + * @callback callback function(err, credentials) + * Called when credentials are loaded from the resource + * @param err [Error] if an error occurred, this value will be set + * @param credentials [Object] the raw JSON object containing all + * metadata from the credentials resource + */ + loadCredentials: function loadCredentials(callback) { + var self = this; + self.loadCredentialsCallbacks.push(callback); + if (self.loadCredentialsCallbacks.length > 1) { return; } + + function callbacks(err, creds) { + var cb; + while ((cb = self.loadCredentialsCallbacks.shift()) !== undefined) { + cb(err, creds); } - } else if (member.location === 'statusCode') { - data[name] = parseInt(r.statusCode, 10); } - }); - resp.data = data; -} + if (self.disableFetchToken) { + self.fetchCredentials({}, callbacks); + } else { + self.fetchMetadataToken(function(tokenError, token) { + if (tokenError) { + if (tokenError.code === 'TimeoutError') { + self.disableFetchToken = true; + } else if (tokenError.retryable === true) { + callbacks(AWS.util.error( + tokenError, + { + message: 'EC2 Metadata token request returned error' + } + )); + return; + } else if (tokenError.statusCode === 400) { + callbacks(AWS.util.error( + tokenError, + { + message: 'EC2 Metadata token request returned 400' + } + )); + return; + } + } + var options = {}; + if (token) { + options.headers = { + 'x-aws-ec2-metadata-token': token + }; + } + self.fetchCredentials(options, callbacks); + }); + + } + } +}); /** * @api private */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData, - generateURI: generateURI +module.exports = AWS.MetadataService; + + +/***/ }), + +/***/ 20881: +/***/ ((module) => { + +var getEndpoint = function() { + return { + IPv4: 'http://169.254.169.254', + IPv6: 'http://[fd00:ec2::254]', + }; }; +module.exports = getEndpoint; + /***/ }), -/***/ 34839: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 78619: +/***/ ((module) => { -var util = __nccwpck_require__(43956); -var Rest = __nccwpck_require__(79008); -var Json = __nccwpck_require__(67372); -var JsonBuilder = __nccwpck_require__(94387); -var JsonParser = __nccwpck_require__(61039); +var ENV_ENDPOINT_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT'; +var CONFIG_ENDPOINT_NAME = 'ec2_metadata_service_endpoint'; -var METHODS_WITHOUT_BODY = ['GET', 'HEAD', 'DELETE']; +var getEndpointConfigOptions = function() { + return { + environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_NAME]; }, + configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_NAME]; }, + default: undefined, + }; +}; -function unsetContentLength(req) { - var payloadMember = util.getRequestPayloadShape(req); - if ( - payloadMember === undefined && - METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) >= 0 - ) { - delete req.httpRequest.headers['Content-Length']; - } -} +module.exports = getEndpointConfigOptions; -function populateBody(req) { - var builder = new JsonBuilder(); - var input = req.service.api.operations[req.operation].input; - if (input.payload) { - var params = {}; - var payloadShape = input.members[input.payload]; - params = req.params[input.payload]; +/***/ }), - if (payloadShape.type === 'structure') { - req.httpRequest.body = builder.build(params || {}, payloadShape); - applyContentTypeHeader(req); - } else if (params !== undefined) { - // non-JSON payload - req.httpRequest.body = params; - if (payloadShape.type === 'binary' || payloadShape.isStreaming) { - applyContentTypeHeader(req, true); - } - } - } else { - req.httpRequest.body = builder.build(req.params, input); - applyContentTypeHeader(req); - } -} +/***/ 65115: +/***/ ((module) => { -function applyContentTypeHeader(req, isBinary) { - if (!req.httpRequest.headers['Content-Type']) { - var type = isBinary ? 'binary/octet-stream' : 'application/json'; - req.httpRequest.headers['Content-Type'] = type; - } -} +var getEndpointMode = function() { + return { + IPv4: 'IPv4', + IPv6: 'IPv6', + }; +}; -function buildRequest(req) { - Rest.buildRequest(req); +module.exports = getEndpointMode; - // never send body payload on GET/HEAD/DELETE - if (METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) < 0) { - populateBody(req); - } -} -function extractError(resp) { - Json.extractError(resp); -} +/***/ }), -function extractData(resp) { - Rest.extractData(resp); +/***/ 47253: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var req = resp.request; - var operation = req.service.api.operations[req.operation]; - var rules = req.service.api.operations[req.operation].output || {}; - var parser; - var hasEventOutput = operation.hasEventOutput; +var EndpointMode = __nccwpck_require__(65115)(); - if (rules.payload) { - var payloadMember = rules.members[rules.payload]; - var body = resp.httpResponse.body; - if (payloadMember.isEventStream) { - parser = new JsonParser(); - resp.data[payload] = util.createEventStream( - AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body, - parser, - payloadMember - ); - } else if (payloadMember.type === 'structure' || payloadMember.type === 'list') { - var parser = new JsonParser(); - resp.data[rules.payload] = parser.parse(body, payloadMember); - } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) { - resp.data[rules.payload] = body; - } else { - resp.data[rules.payload] = payloadMember.toType(body); - } - } else { - var data = resp.data; - Json.extractData(resp); - resp.data = util.merge(data, resp.data); - } -} +var ENV_ENDPOINT_MODE_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE'; +var CONFIG_ENDPOINT_MODE_NAME = 'ec2_metadata_service_endpoint_mode'; -/** - * @api private - */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData, - unsetContentLength: unsetContentLength +var getEndpointModeConfigOptions = function() { + return { + environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_MODE_NAME]; }, + configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_MODE_NAME]; }, + default: EndpointMode.IPv4, + }; }; +module.exports = getEndpointModeConfigOptions; + /***/ }), -/***/ 78932: +/***/ 25889: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var util = __nccwpck_require__(43956); -var Rest = __nccwpck_require__(79008); +var AWS = __nccwpck_require__(53832); -function populateBody(req) { - var input = req.service.api.operations[req.operation].input; - var builder = new AWS.XML.Builder(); - var params = req.params; +var Endpoint = __nccwpck_require__(20881)(); +var EndpointMode = __nccwpck_require__(65115)(); - var payload = input.payload; - if (payload) { - var payloadMember = input.members[payload]; - params = params[payload]; - if (params === undefined) return; +var ENDPOINT_CONFIG_OPTIONS = __nccwpck_require__(78619)(); +var ENDPOINT_MODE_CONFIG_OPTIONS = __nccwpck_require__(47253)(); - if (payloadMember.type === 'structure') { - var rootElement = payloadMember.name; - req.httpRequest.body = builder.toXML(params, payloadMember, rootElement, true); - } else { // non-xml payload - req.httpRequest.body = params; - } - } else { - req.httpRequest.body = builder.toXML(params, input, input.name || - input.shape || util.string.upperFirst(req.operation) + 'Request'); +var getMetadataServiceEndpoint = function() { + var endpoint = AWS.util.loadConfig(ENDPOINT_CONFIG_OPTIONS); + if (endpoint !== undefined) return endpoint; + + var endpointMode = AWS.util.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS); + switch (endpointMode) { + case EndpointMode.IPv4: + return Endpoint.IPv4; + case EndpointMode.IPv6: + return Endpoint.IPv6; + default: + throw new Error('Unsupported endpoint mode: ' + endpointMode); } -} +}; -function buildRequest(req) { - Rest.buildRequest(req); +module.exports = getMetadataServiceEndpoint; - // never send body payload on GET/HEAD - if (['GET', 'HEAD'].indexOf(req.httpRequest.method) < 0) { - populateBody(req); - } -} -function extractError(resp) { - Rest.extractError(resp); +/***/ }), - var data; - try { - data = new AWS.XML.Parser().parse(resp.httpResponse.body.toString()); - } catch (e) { - data = { - Code: resp.httpResponse.statusCode, - Message: resp.httpResponse.statusMessage - }; - } +/***/ 34609: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (data.Errors) data = data.Errors; - if (data.Error) data = data.Error; - if (data.Code) { - resp.error = util.error(new Error(), { - code: data.Code, - message: data.Message - }); - } else { - resp.error = util.error(new Error(), { - code: resp.httpResponse.statusCode, - message: null - }); - } -} +var Collection = __nccwpck_require__(62437); +var Operation = __nccwpck_require__(67004); +var Shape = __nccwpck_require__(16212); +var Paginator = __nccwpck_require__(9554); +var ResourceWaiter = __nccwpck_require__(99450); +var metadata = __nccwpck_require__(15087); -function extractData(resp) { - Rest.extractData(resp); +var util = __nccwpck_require__(30879); +var property = util.property; +var memoizedProperty = util.memoizedProperty; - var parser; - var req = resp.request; - var body = resp.httpResponse.body; - var operation = req.service.api.operations[req.operation]; - var output = operation.output; +function Api(api, options) { + var self = this; + api = api || {}; + options = options || {}; + options.api = this; - var hasEventOutput = operation.hasEventOutput; + api.metadata = api.metadata || {}; - var payload = output.payload; - if (payload) { - var payloadMember = output.members[payload]; - if (payloadMember.isEventStream) { - parser = new AWS.XML.Parser(); - resp.data[payload] = util.createEventStream( - AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : resp.httpResponse.body, - parser, - payloadMember - ); - } else if (payloadMember.type === 'structure') { - parser = new AWS.XML.Parser(); - resp.data[payload] = parser.parse(body.toString(), payloadMember); - } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) { - resp.data[payload] = body; - } else { - resp.data[payload] = payloadMember.toType(body); - } - } else if (body.length > 0) { - parser = new AWS.XML.Parser(); - var data = parser.parse(body.toString(), output); - util.update(resp.data, data); + var serviceIdentifier = options.serviceIdentifier; + delete options.serviceIdentifier; + + property(this, 'isApi', true, false); + property(this, 'apiVersion', api.metadata.apiVersion); + property(this, 'endpointPrefix', api.metadata.endpointPrefix); + property(this, 'signingName', api.metadata.signingName); + property(this, 'globalEndpoint', api.metadata.globalEndpoint); + property(this, 'signatureVersion', api.metadata.signatureVersion); + property(this, 'jsonVersion', api.metadata.jsonVersion); + property(this, 'targetPrefix', api.metadata.targetPrefix); + property(this, 'protocol', api.metadata.protocol); + property(this, 'timestampFormat', api.metadata.timestampFormat); + property(this, 'xmlNamespaceUri', api.metadata.xmlNamespace); + property(this, 'abbreviation', api.metadata.serviceAbbreviation); + property(this, 'fullName', api.metadata.serviceFullName); + property(this, 'serviceId', api.metadata.serviceId); + if (serviceIdentifier && metadata[serviceIdentifier]) { + property(this, 'xmlNoDefaultLists', metadata[serviceIdentifier].xmlNoDefaultLists, false); } -} -/** - * @api private - */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData -}; + memoizedProperty(this, 'className', function() { + var name = api.metadata.serviceAbbreviation || api.metadata.serviceFullName; + if (!name) return null; + name = name.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g, ''); + if (name === 'ElasticLoadBalancing') name = 'ELB'; + return name; + }); -/***/ }), + function addEndpointOperation(name, operation) { + if (operation.endpointoperation === true) { + property(self, 'endpointOperation', util.string.lowerFirst(name)); + } + if (operation.endpointdiscovery && !self.hasRequiredEndpointDiscovery) { + property( + self, + 'hasRequiredEndpointDiscovery', + operation.endpointdiscovery.required === true + ); + } + } -/***/ 67165: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + property(this, 'operations', new Collection(api.operations, options, function(name, operation) { + return new Operation(name, operation, options); + }, util.string.lowerFirst, addEndpointOperation)); -var AWS = __nccwpck_require__(14741); + property(this, 'shapes', new Collection(api.shapes, options, function(name, shape) { + return Shape.create(shape, options); + })); -/** - * Resolve client-side monitoring configuration from either environmental variables - * or shared config file. Configurations from environmental variables have higher priority - * than those from shared config file. The resolver will try to read the shared config file - * no matter whether the AWS_SDK_LOAD_CONFIG variable is set. - * @api private - */ -function resolveMonitoringConfig() { - var config = { - port: undefined, - clientId: undefined, - enabled: undefined, - host: undefined - }; - if (fromEnvironment(config) || fromConfigFile(config)) return toJSType(config); - return toJSType(config); -} + property(this, 'paginators', new Collection(api.paginators, options, function(name, paginator) { + return new Paginator(name, paginator, options); + })); -/** - * Resolve configurations from environmental variables. - * @param {object} client side monitoring config object needs to be resolved - * @returns {boolean} whether resolving configurations is done - * @api private - */ -function fromEnvironment(config) { - config.port = config.port || process.env.AWS_CSM_PORT; - config.enabled = config.enabled || process.env.AWS_CSM_ENABLED; - config.clientId = config.clientId || process.env.AWS_CSM_CLIENT_ID; - config.host = config.host || process.env.AWS_CSM_HOST; - return config.port && config.enabled && config.clientId && config.host || - ['false', '0'].indexOf(config.enabled) >= 0; //no need to read shared config file if explicitely disabled -} + property(this, 'waiters', new Collection(api.waiters, options, function(name, waiter) { + return new ResourceWaiter(name, waiter, options); + }, util.string.lowerFirst)); -/** - * Resolve cofigurations from shared config file with specified role name - * @param {object} client side monitoring config object needs to be resolved - * @returns {boolean} whether resolving configurations is done - * @api private - */ -function fromConfigFile(config) { - var sharedFileConfig; - try { - var configFile = AWS.util.iniLoader.loadFrom({ - isConfig: true, - filename: process.env[AWS.util.sharedConfigFileEnv] - }); - var sharedFileConfig = configFile[ - process.env.AWS_PROFILE || AWS.util.defaultProfile - ]; - } catch (err) { - return false; + if (options.documentation) { + property(this, 'documentation', api.documentation); + property(this, 'documentationUrl', api.documentationUrl); } - if (!sharedFileConfig) return config; - config.port = config.port || sharedFileConfig.csm_port; - config.enabled = config.enabled || sharedFileConfig.csm_enabled; - config.clientId = config.clientId || sharedFileConfig.csm_client_id; - config.host = config.host || sharedFileConfig.csm_host; - return config.port && config.enabled && config.clientId && config.host; + property(this, 'awsQueryCompatible', api.metadata.awsQueryCompatible); } /** - * Transfer the resolved configuration value to proper types: port as number, enabled - * as boolean and clientId as string. The 'enabled' flag is valued to false when set - * to 'false' or '0'. - * @param {object} resolved client side monitoring config * @api private */ -function toJSType(config) { - //config.XXX is either undefined or string - var falsyNotations = ['false', '0', undefined]; - if (!config.enabled || falsyNotations.indexOf(config.enabled.toLowerCase()) >= 0) { - config.enabled = false; - } else { - config.enabled = true; - } - config.port = config.port ? parseInt(config.port, 10) : undefined; - return config; -} - -module.exports = resolveMonitoringConfig; +module.exports = Api; /***/ }), -/***/ 79464: +/***/ 62437: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var util = (__nccwpck_require__(14741).util); -var dgram = __nccwpck_require__(71891); -var stringToBuffer = util.buffer.toBuffer; - -var MAX_MESSAGE_SIZE = 1024 * 8; // 8 KB +var memoizedProperty = (__nccwpck_require__(30879).memoizedProperty); -/** - * Publishes metrics via udp. - * @param {object} options Paramters for Publisher constructor - * @param {number} [options.port = 31000] Port number - * @param {string} [options.clientId = ''] Client Identifier - * @param {boolean} [options.enabled = false] enable sending metrics datagram - * @api private - */ -function Publisher(options) { - // handle configuration - options = options || {}; - this.enabled = options.enabled || false; - this.port = options.port || 31000; - this.clientId = options.clientId || ''; - this.address = options.host || '127.0.0.1'; - if (this.clientId.length > 255) { - // ClientId has a max length of 255 - this.clientId = this.clientId.substr(0, 255); - } - this.messagesInFlight = 0; +function memoize(name, value, factory, nameTr) { + memoizedProperty(this, nameTr(name), function() { + return factory(name, value); + }); } -Publisher.prototype.fieldsToTrim = { - UserAgent: 256, - SdkException: 128, - SdkExceptionMessage: 512, - AwsException: 128, - AwsExceptionMessage: 512, - FinalSdkException: 128, - FinalSdkExceptionMessage: 512, - FinalAwsException: 128, - FinalAwsExceptionMessage: 512 - -}; +function Collection(iterable, options, factory, nameTr, callback) { + nameTr = nameTr || String; + var self = this; -/** - * Trims fields that have a specified max length. - * @param {object} event ApiCall or ApiCallAttempt event. - * @returns {object} - * @api private - */ -Publisher.prototype.trimFields = function(event) { - var trimmableFields = Object.keys(this.fieldsToTrim); - for (var i = 0, iLen = trimmableFields.length; i < iLen; i++) { - var field = trimmableFields[i]; - if (event.hasOwnProperty(field)) { - var maxLength = this.fieldsToTrim[field]; - var value = event[field]; - if (value && value.length > maxLength) { - event[field] = value.substr(0, maxLength); - } - } + for (var id in iterable) { + if (Object.prototype.hasOwnProperty.call(iterable, id)) { + memoize.call(self, id, iterable[id], factory, nameTr); + if (callback) callback(id, iterable[id]); } - return event; -}; + } +} /** - * Handles ApiCall and ApiCallAttempt events. - * @param {Object} event apiCall or apiCallAttempt event. * @api private */ -Publisher.prototype.eventHandler = function(event) { - // set the clientId - event.ClientId = this.clientId; +module.exports = Collection; - this.trimFields(event); - var message = stringToBuffer(JSON.stringify(event)); - if (!this.enabled || message.length > MAX_MESSAGE_SIZE) { - // drop the message if publisher not enabled or it is too large - return; - } +/***/ }), - this.publishDatagram(message); -}; +/***/ 67004: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Publishes message to an agent. - * @param {Buffer} message JSON message to send to agent. - * @api private - */ -Publisher.prototype.publishDatagram = function(message) { - var self = this; - var client = this.getClient(); +var Shape = __nccwpck_require__(16212); - this.messagesInFlight++; - this.client.send(message, 0, message.length, this.port, this.address, function(err, bytes) { - if (--self.messagesInFlight <= 0) { - // destroy existing client so the event loop isn't kept open - self.destroyClient(); - } - }); -}; +var util = __nccwpck_require__(30879); +var property = util.property; +var memoizedProperty = util.memoizedProperty; -/** - * Returns an existing udp socket, or creates one if it doesn't already exist. - * @api private - */ -Publisher.prototype.getClient = function() { - if (!this.client) { - this.client = dgram.createSocket('udp4'); - } - return this.client; -}; +function Operation(name, operation, options) { + var self = this; + options = options || {}; -/** - * Destroys the udp socket. - * @api private - */ -Publisher.prototype.destroyClient = function() { - if (this.client) { - this.client.close(); - this.client = void 0; - } -}; + property(this, 'name', operation.name || name); + property(this, 'api', options.api, false); -module.exports = { - Publisher: Publisher -}; + operation.http = operation.http || {}; + property(this, 'endpoint', operation.endpoint); + property(this, 'httpMethod', operation.http.method || 'POST'); + property(this, 'httpPath', operation.http.requestUri || '/'); + property(this, 'authtype', operation.authtype || ''); + property( + this, + 'endpointDiscoveryRequired', + operation.endpointdiscovery ? + (operation.endpointdiscovery.required ? 'REQUIRED' : 'OPTIONAL') : + 'NULL' + ); + // httpChecksum replaces usage of httpChecksumRequired, but some APIs + // (s3control) still uses old trait. + var httpChecksumRequired = operation.httpChecksumRequired + || (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired); + property(this, 'httpChecksumRequired', httpChecksumRequired, false); -/***/ }), + memoizedProperty(this, 'input', function() { + if (!operation.input) { + return new Shape.create({type: 'structure'}, options); + } + return Shape.create(operation.input, options); + }); -/***/ 5792: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + memoizedProperty(this, 'output', function() { + if (!operation.output) { + return new Shape.create({type: 'structure'}, options); + } + return Shape.create(operation.output, options); + }); -var util = __nccwpck_require__(43956); + memoizedProperty(this, 'errors', function() { + var list = []; + if (!operation.errors) return null; -function QueryParamSerializer() { -} + for (var i = 0; i < operation.errors.length; i++) { + list.push(Shape.create(operation.errors[i], options)); + } -QueryParamSerializer.prototype.serialize = function(params, shape, fn) { - serializeStructure('', params, shape, fn); -}; + return list; + }); -function ucfirst(shape) { - if (shape.isQueryName || shape.api.protocol !== 'ec2') { - return shape.name; - } else { - return shape.name[0].toUpperCase() + shape.name.substr(1); - } -} + memoizedProperty(this, 'paginator', function() { + return options.api.paginators[name]; + }); -function serializeStructure(prefix, struct, rules, fn) { - util.each(rules.members, function(name, member) { - var value = struct[name]; - if (value === null || value === undefined) return; + if (options.documentation) { + property(this, 'documentation', operation.documentation); + property(this, 'documentationUrl', operation.documentationUrl); + } - var memberName = ucfirst(member); - memberName = prefix ? prefix + '.' + memberName : memberName; - serializeMember(memberName, value, member, fn); + // idempotentMembers only tracks top-level input shapes + memoizedProperty(this, 'idempotentMembers', function() { + var idempotentMembers = []; + var input = self.input; + var members = input.members; + if (!input.members) { + return idempotentMembers; + } + for (var name in members) { + if (!members.hasOwnProperty(name)) { + continue; + } + if (members[name].isIdempotent === true) { + idempotentMembers.push(name); + } + } + return idempotentMembers; }); -} -function serializeMap(name, map, rules, fn) { - var i = 1; - util.each(map, function (key, value) { - var prefix = rules.flattened ? '.' : '.entry.'; - var position = prefix + (i++) + '.'; - var keyName = position + (rules.key.name || 'key'); - var valueName = position + (rules.value.name || 'value'); - serializeMember(name + keyName, key, rules.key, fn); - serializeMember(name + valueName, value, rules.value, fn); + memoizedProperty(this, 'hasEventOutput', function() { + var output = self.output; + return hasEventStream(output); }); } -function serializeList(name, list, rules, fn) { - var memberRules = rules.member || {}; +function hasEventStream(topLevelShape) { + var members = topLevelShape.members; + var payload = topLevelShape.payload; - if (list.length === 0) { - fn.call(this, name, null); - return; + if (!topLevelShape.members) { + return false; } - util.arrayEach(list, function (v, n) { - var suffix = '.' + (n + 1); - if (rules.api.protocol === 'ec2') { - // Do nothing for EC2 - suffix = suffix + ''; // make linter happy - } else if (rules.flattened) { - if (memberRules.name) { - var parts = name.split('.'); - parts.pop(); - parts.push(ucfirst(memberRules)); - name = parts.join('.'); + if (payload) { + var payloadMember = members[payload]; + return payloadMember.isEventStream; + } + + // check if any member is an event stream + for (var name in members) { + if (!members.hasOwnProperty(name)) { + if (members[name].isEventStream === true) { + return true; } - } else { - suffix = '.' + (memberRules.name ? memberRules.name : 'member') + suffix; } - serializeMember(name + suffix, v, memberRules, fn); - }); -} - -function serializeMember(name, value, rules, fn) { - if (value === null || value === undefined) return; - if (rules.type === 'structure') { - serializeStructure(name, value, rules, fn); - } else if (rules.type === 'list') { - serializeList(name, value, rules, fn); - } else if (rules.type === 'map') { - serializeMap(name, value, rules, fn); - } else { - fn(name, rules.toWireFormat(value).toString()); } + return false; } /** * @api private */ -module.exports = QueryParamSerializer; +module.exports = Operation; /***/ }), -/***/ 76278: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); +/***/ 9554: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * @api private - */ -var service = null; +var property = (__nccwpck_require__(30879).property); -/** - * @api private - */ -var api = { - signatureVersion: 'v4', - signingName: 'rds-db', - operations: {} -}; +function Paginator(name, paginator) { + property(this, 'inputToken', paginator.input_token); + property(this, 'limitKey', paginator.limit_key); + property(this, 'moreResults', paginator.more_results); + property(this, 'outputToken', paginator.output_token); + property(this, 'resultKey', paginator.result_key); +} /** * @api private */ -var requiredAuthTokenOptions = { - region: 'string', - hostname: 'string', - port: 'number', - username: 'string' -}; +module.exports = Paginator; -/** - * A signer object can be used to generate an auth token to a database. - */ -AWS.RDS.Signer = AWS.util.inherit({ - /** - * Creates a signer object can be used to generate an auth token. - * - * @option options credentials [AWS.Credentials] the AWS credentials - * to sign requests with. Uses the default credential provider chain - * if not specified. - * @option options hostname [String] the hostname of the database to connect to. - * @option options port [Number] the port number the database is listening on. - * @option options region [String] the region the database is located in. - * @option options username [String] the username to login as. - * @example Passing in options to constructor - * var signer = new AWS.RDS.Signer({ - * credentials: new AWS.SharedIniFileCredentials({profile: 'default'}), - * region: 'us-east-1', - * hostname: 'db.us-east-1.rds.amazonaws.com', - * port: 8000, - * username: 'name' - * }); - */ - constructor: function Signer(options) { - this.options = options || {}; - }, - /** - * @api private - * Strips the protocol from a url. - */ - convertUrlToAuthToken: function convertUrlToAuthToken(url) { - // we are always using https as the protocol - var protocol = 'https://'; - if (url.indexOf(protocol) === 0) { - return url.substring(protocol.length); - } - }, +/***/ }), - /** - * @overload getAuthToken(options = {}, [callback]) - * Generate an auth token to a database. - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * - * @param options [map] The fields to use when generating an auth token. - * Any options specified here will be merged on top of any options passed - * to AWS.RDS.Signer: - * - * * **credentials** (AWS.Credentials) — the AWS credentials - * to sign requests with. Uses the default credential provider chain - * if not specified. - * * **hostname** (String) — the hostname of the database to connect to. - * * **port** (Number) — the port number the database is listening on. - * * **region** (String) — the region the database is located in. - * * **username** (String) — the username to login as. - * @return [String] if called synchronously (with no callback), returns the - * auth token. - * @return [null] nothing is returned if a callback is provided. - * @callback callback function (err, token) - * If a callback is supplied, it is called when an auth token has been generated. - * @param err [Error] the error object returned from the signer. - * @param token [String] the auth token. - * - * @example Generating an auth token synchronously - * var signer = new AWS.RDS.Signer({ - * // configure options - * region: 'us-east-1', - * username: 'default', - * hostname: 'db.us-east-1.amazonaws.com', - * port: 8000 - * }); - * var token = signer.getAuthToken({ - * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option - * // credentials are not specified here or when creating the signer, so default credential provider will be used - * username: 'test' // overriding username - * }); - * @example Generating an auth token asynchronously - * var signer = new AWS.RDS.Signer({ - * // configure options - * region: 'us-east-1', - * username: 'default', - * hostname: 'db.us-east-1.amazonaws.com', - * port: 8000 - * }); - * signer.getAuthToken({ - * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option - * // credentials are not specified here or when creating the signer, so default credential provider will be used - * username: 'test' // overriding username - * }, function(err, token) { - * if (err) { - * // handle error - * } else { - * // use token - * } - * }); - * - */ - getAuthToken: function getAuthToken(options, callback) { - if (typeof options === 'function' && callback === undefined) { - callback = options; - options = {}; - } - var self = this; - var hasCallback = typeof callback === 'function'; - // merge options with existing options - options = AWS.util.merge(this.options, options); - // validate options - var optionsValidation = this.validateAuthTokenOptions(options); - if (optionsValidation !== true) { - if (hasCallback) { - return callback(optionsValidation, null); - } - throw optionsValidation; - } +/***/ 99450: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // 15 minutes - var expires = 900; - // create service to generate a request from - var serviceOptions = { - region: options.region, - endpoint: new AWS.Endpoint(options.hostname + ':' + options.port), - paramValidation: false, - signatureVersion: 'v4' - }; - if (options.credentials) { - serviceOptions.credentials = options.credentials; - } - service = new AWS.Service(serviceOptions); - // ensure the SDK is using sigv4 signing (config is not enough) - service.api = api; +var util = __nccwpck_require__(30879); +var property = util.property; - var request = service.makeRequest(); - // add listeners to request to properly build auth token - this.modifyRequestForAuthToken(request, options); +function ResourceWaiter(name, waiter, options) { + options = options || {}; + property(this, 'name', name); + property(this, 'api', options.api, false); - if (hasCallback) { - request.presign(expires, function(err, url) { - if (url) { - url = self.convertUrlToAuthToken(url); - } - callback(err, url); - }); - } else { - var url = request.presign(expires); - return this.convertUrlToAuthToken(url); - } - }, + if (waiter.operation) { + property(this, 'operation', util.string.lowerFirst(waiter.operation)); + } - /** - * @api private - * Modifies a request to allow the presigner to generate an auth token. - */ - modifyRequestForAuthToken: function modifyRequestForAuthToken(request, options) { - request.on('build', request.buildAsGet); - var httpRequest = request.httpRequest; - httpRequest.body = AWS.util.queryParamsToString({ - Action: 'connect', - DBUser: options.username - }); - }, + var self = this; + var keys = [ + 'type', + 'description', + 'delay', + 'maxAttempts', + 'acceptors' + ]; - /** - * @api private - * Validates that the options passed in contain all the keys with values of the correct type that - * are needed to generate an auth token. - */ - validateAuthTokenOptions: function validateAuthTokenOptions(options) { - // iterate over all keys in options - var message = ''; - options = options || {}; - for (var key in requiredAuthTokenOptions) { - if (!Object.prototype.hasOwnProperty.call(requiredAuthTokenOptions, key)) { - continue; - } - if (typeof options[key] !== requiredAuthTokenOptions[key]) { - message += 'option \'' + key + '\' should have been type \'' + requiredAuthTokenOptions[key] + '\', was \'' + typeof options[key] + '\'.\n'; - } - } - if (message.length) { - return AWS.util.error(new Error(), { - code: 'InvalidParameter', - message: message - }); - } - return true; + keys.forEach(function(key) { + var value = waiter[key]; + if (value) { + property(self, key, value); } -}); + }); +} + +/** + * @api private + */ +module.exports = ResourceWaiter; /***/ }), -/***/ 28734: -/***/ ((module) => { +/***/ 16212: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -module.exports = { - //provide realtime clock for performance measurement - now: function now() { - var second = process.hrtime(); - return second[0] * 1000 + (second[1] / 1000000); +var Collection = __nccwpck_require__(62437); + +var util = __nccwpck_require__(30879); + +function property(obj, name, value) { + if (value !== null && value !== undefined) { + util.property.apply(this, arguments); } -}; +} +function memoizedProperty(obj, name) { + if (!obj.constructor.prototype[name]) { + util.memoizedProperty.apply(this, arguments); + } +} -/***/ }), +function Shape(shape, options, memberName) { + options = options || {}; -/***/ 98099: -/***/ ((module) => { + property(this, 'shape', shape.shape); + property(this, 'api', options.api, false); + property(this, 'type', shape.type); + property(this, 'enum', shape.enum); + property(this, 'min', shape.min); + property(this, 'max', shape.max); + property(this, 'pattern', shape.pattern); + property(this, 'location', shape.location || this.location || 'body'); + property(this, 'name', this.name || shape.xmlName || shape.queryName || + shape.locationName || memberName); + property(this, 'isStreaming', shape.streaming || this.isStreaming || false); + property(this, 'requiresLength', shape.requiresLength, false); + property(this, 'isComposite', shape.isComposite || false); + property(this, 'isShape', true, false); + property(this, 'isQueryName', Boolean(shape.queryName), false); + property(this, 'isLocationName', Boolean(shape.locationName), false); + property(this, 'isIdempotent', shape.idempotencyToken === true); + property(this, 'isJsonValue', shape.jsonvalue === true); + property(this, 'isSensitive', shape.sensitive === true || shape.prototype && shape.prototype.sensitive === true); + property(this, 'isEventStream', Boolean(shape.eventstream), false); + property(this, 'isEvent', Boolean(shape.event), false); + property(this, 'isEventPayload', Boolean(shape.eventpayload), false); + property(this, 'isEventHeader', Boolean(shape.eventheader), false); + property(this, 'isTimestampFormatSet', Boolean(shape.timestampFormat) || shape.prototype && shape.prototype.isTimestampFormatSet === true, false); + property(this, 'endpointDiscoveryId', Boolean(shape.endpointdiscoveryid), false); + property(this, 'hostLabel', Boolean(shape.hostLabel), false); -function isFipsRegion(region) { - return typeof region === 'string' && (region.startsWith('fips-') || region.endsWith('-fips')); -} + if (options.documentation) { + property(this, 'documentation', shape.documentation); + property(this, 'documentationUrl', shape.documentationUrl); + } -function isGlobalRegion(region) { - return typeof region === 'string' && ['aws-global', 'aws-us-gov-global'].includes(region); -} + if (shape.xmlAttribute) { + property(this, 'isXmlAttribute', shape.xmlAttribute || false); + } -function getRealRegion(region) { - return ['fips-aws-global', 'aws-fips', 'aws-global'].includes(region) - ? 'us-east-1' - : ['fips-aws-us-gov-global', 'aws-us-gov-global'].includes(region) - ? 'us-gov-west-1' - : region.replace(/fips-(dkr-|prod-)?|-fips/, ''); + // type conversion and parsing + property(this, 'defaultValue', null); + this.toWireFormat = function(value) { + if (value === null || value === undefined) return ''; + return value; + }; + this.toType = function(value) { return value; }; } -module.exports = { - isFipsRegion: isFipsRegion, - isGlobalRegion: isGlobalRegion, - getRealRegion: getRealRegion +/** + * @api private + */ +Shape.normalizedTypes = { + character: 'string', + double: 'float', + long: 'integer', + short: 'integer', + biginteger: 'integer', + bigdecimal: 'float', + blob: 'binary' }; +/** + * @api private + */ +Shape.types = { + 'structure': StructureShape, + 'list': ListShape, + 'map': MapShape, + 'boolean': BooleanShape, + 'timestamp': TimestampShape, + 'float': FloatShape, + 'integer': IntegerShape, + 'string': StringShape, + 'base64': Base64Shape, + 'binary': BinaryShape +}; -/***/ }), +Shape.resolve = function resolve(shape, options) { + if (shape.shape) { + var refShape = options.api.shapes[shape.shape]; + if (!refShape) { + throw new Error('Cannot find shape reference: ' + shape.shape); + } -/***/ 63698: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return refShape; + } else { + return null; + } +}; -var util = __nccwpck_require__(43956); -var regionConfig = __nccwpck_require__(80738); +Shape.create = function create(shape, options, memberName) { + if (shape.isShape) return shape; -function generateRegionPrefix(region) { - if (!region) return null; - var parts = region.split('-'); - if (parts.length < 3) return null; - return parts.slice(0, parts.length - 2).join('-') + '-*'; -} + var refShape = Shape.resolve(shape, options); + if (refShape) { + var filteredKeys = Object.keys(shape); + if (!options.documentation) { + filteredKeys = filteredKeys.filter(function(name) { + return !name.match(/documentation/); + }); + } -function derivedKeys(service) { - var region = service.config.region; - var regionPrefix = generateRegionPrefix(region); - var endpointPrefix = service.api.endpointPrefix; + // create an inline shape with extra members + var InlineShape = function() { + refShape.constructor.call(this, shape, options, memberName); + }; + InlineShape.prototype = refShape; + return new InlineShape(); + } else { + // set type if not set + if (!shape.type) { + if (shape.members) shape.type = 'structure'; + else if (shape.member) shape.type = 'list'; + else if (shape.key) shape.type = 'map'; + else shape.type = 'string'; + } - return [ - [region, endpointPrefix], - [regionPrefix, endpointPrefix], - [region, '*'], - [regionPrefix, '*'], - ['*', endpointPrefix], - [region, 'internal-*'], - ['*', '*'] - ].map(function(item) { - return item[0] && item[1] ? item.join('/') : null; - }); -} + // normalize types + var origType = shape.type; + if (Shape.normalizedTypes[shape.type]) { + shape.type = Shape.normalizedTypes[shape.type]; + } -function applyConfig(service, config) { - util.each(config, function(key, value) { - if (key === 'globalEndpoint') return; - if (service.config[key] === undefined || service.config[key] === null) { - service.config[key] = value; + if (Shape.types[shape.type]) { + return new Shape.types[shape.type](shape, options, memberName); + } else { + throw new Error('Unrecognized shape type: ' + origType); } - }); -} + } +}; -function configureEndpoint(service) { - var keys = derivedKeys(service); - var useFipsEndpoint = service.config.useFipsEndpoint; - var useDualstackEndpoint = service.config.useDualstackEndpoint; - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!key) continue; +function CompositeShape(shape) { + Shape.apply(this, arguments); + property(this, 'isComposite', true); - var rules = useFipsEndpoint - ? useDualstackEndpoint - ? regionConfig.dualstackFipsRules - : regionConfig.fipsRules - : useDualstackEndpoint - ? regionConfig.dualstackRules - : regionConfig.rules; + if (shape.flattened) { + property(this, 'flattened', shape.flattened || false); + } +} - if (Object.prototype.hasOwnProperty.call(rules, key)) { - var config = rules[key]; - if (typeof config === 'string') { - config = regionConfig.patterns[config]; - } +function StructureShape(shape, options) { + var self = this; + var requiredMap = null, firstInit = !this.isShape; - // set global endpoint - service.isGlobalEndpoint = !!config.globalEndpoint; - if (config.signingRegion) { - service.signingRegion = config.signingRegion; - } + CompositeShape.apply(this, arguments); - // signature version - if (!config.signatureVersion) { - // Note: config is a global object and should not be mutated here. - // However, we are retaining this line for backwards compatibility. - // The non-v4 signatureVersion will be set in a copied object below. - config.signatureVersion = 'v4'; - } + if (firstInit) { + property(this, 'defaultValue', function() { return {}; }); + property(this, 'members', {}); + property(this, 'memberNames', []); + property(this, 'required', []); + property(this, 'isRequired', function() { return false; }); + property(this, 'isDocument', Boolean(shape.document)); + } - var useBearer = (service.api && service.api.signatureVersion) === 'bearer'; + if (shape.members) { + property(this, 'members', new Collection(shape.members, options, function(name, member) { + return Shape.create(member, options, name); + })); + memoizedProperty(this, 'memberNames', function() { + return shape.xmlOrder || Object.keys(shape.members); + }); - // merge config - applyConfig(service, Object.assign( - {}, - config, - { signatureVersion: useBearer ? 'bearer' : config.signatureVersion } - )); - return; + if (shape.event) { + memoizedProperty(this, 'eventPayloadMemberName', function() { + var members = self.members; + var memberNames = self.memberNames; + // iterate over members to find ones that are event payloads + for (var i = 0, iLen = memberNames.length; i < iLen; i++) { + if (members[memberNames[i]].isEventPayload) { + return memberNames[i]; + } + } + }); + + memoizedProperty(this, 'eventHeaderMemberNames', function() { + var members = self.members; + var memberNames = self.memberNames; + var eventHeaderMemberNames = []; + // iterate over members to find ones that are event headers + for (var i = 0, iLen = memberNames.length; i < iLen; i++) { + if (members[memberNames[i]].isEventHeader) { + eventHeaderMemberNames.push(memberNames[i]); + } + } + return eventHeaderMemberNames; + }); } } -} -function getEndpointSuffix(region) { - var regionRegexes = { - '^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$': 'amazonaws.com', - '^cn\\-\\w+\\-\\d+$': 'amazonaws.com.cn', - '^us\\-gov\\-\\w+\\-\\d+$': 'amazonaws.com', - '^us\\-iso\\-\\w+\\-\\d+$': 'c2s.ic.gov', - '^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov' - }; - var defaultSuffix = 'amazonaws.com'; - var regexes = Object.keys(regionRegexes); - for (var i = 0; i < regexes.length; i++) { - var regionPattern = RegExp(regexes[i]); - var dnsSuffix = regionRegexes[regexes[i]]; - if (regionPattern.test(region)) return dnsSuffix; + if (shape.required) { + property(this, 'required', shape.required); + property(this, 'isRequired', function(name) { + if (!requiredMap) { + requiredMap = {}; + for (var i = 0; i < shape.required.length; i++) { + requiredMap[shape.required[i]] = true; + } + } + + return requiredMap[name]; + }, false, true); } - return defaultSuffix; -} -/** - * @api private - */ -module.exports = { - configureEndpoint: configureEndpoint, - getEndpointSuffix: getEndpointSuffix, -}; + property(this, 'resultWrapper', shape.resultWrapper || null); + if (shape.payload) { + property(this, 'payload', shape.payload); + } -/***/ }), + if (typeof shape.xmlNamespace === 'string') { + property(this, 'xmlNamespaceUri', shape.xmlNamespace); + } else if (typeof shape.xmlNamespace === 'object') { + property(this, 'xmlNamespacePrefix', shape.xmlNamespace.prefix); + property(this, 'xmlNamespaceUri', shape.xmlNamespace.uri); + } +} -/***/ 89265: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +function ListShape(shape, options) { + var self = this, firstInit = !this.isShape; + CompositeShape.apply(this, arguments); -var AWS = __nccwpck_require__(14741); -var AcceptorStateMachine = __nccwpck_require__(68093); -var inherit = AWS.util.inherit; -var domain = AWS.util.domain; -var jmespath = __nccwpck_require__(53178); + if (firstInit) { + property(this, 'defaultValue', function() { return []; }); + } -/** - * @api private - */ -var hardErrorStates = {success: 1, error: 1, complete: 1}; + if (shape.member) { + memoizedProperty(this, 'member', function() { + return Shape.create(shape.member, options); + }); + } -function isTerminalState(machine) { - return Object.prototype.hasOwnProperty.call(hardErrorStates, machine._asm.currentState); + if (this.flattened) { + var oldName = this.name; + memoizedProperty(this, 'name', function() { + return self.member.name || oldName; + }); + } } -var fsm = new AcceptorStateMachine(); -fsm.setupStates = function() { - var transition = function(_, done) { - var self = this; - self._haltHandlersOnError = false; +function MapShape(shape, options) { + var firstInit = !this.isShape; + CompositeShape.apply(this, arguments); - self.emit(self._asm.currentState, function(err) { - if (err) { - if (isTerminalState(self)) { - if (domain && self.domain instanceof domain.Domain) { - err.domainEmitter = self; - err.domain = self.domain; - err.domainThrown = false; - self.domain.emit('error', err); - } else { - throw err; - } - } else { - self.response.error = err; - done(err); - } - } else { - done(self.response.error); - } - }); + if (firstInit) { + property(this, 'defaultValue', function() { return {}; }); + property(this, 'key', Shape.create({type: 'string'}, options)); + property(this, 'value', Shape.create({type: 'string'}, options)); + } - }; + if (shape.key) { + memoizedProperty(this, 'key', function() { + return Shape.create(shape.key, options); + }); + } + if (shape.value) { + memoizedProperty(this, 'value', function() { + return Shape.create(shape.value, options); + }); + } +} - this.addState('validate', 'build', 'error', transition); - this.addState('build', 'afterBuild', 'restart', transition); - this.addState('afterBuild', 'sign', 'restart', transition); - this.addState('sign', 'send', 'retry', transition); - this.addState('retry', 'afterRetry', 'afterRetry', transition); - this.addState('afterRetry', 'sign', 'error', transition); - this.addState('send', 'validateResponse', 'retry', transition); - this.addState('validateResponse', 'extractData', 'extractError', transition); - this.addState('extractError', 'extractData', 'retry', transition); - this.addState('extractData', 'success', 'retry', transition); - this.addState('restart', 'build', 'error', transition); - this.addState('success', 'complete', 'complete', transition); - this.addState('error', 'complete', 'complete', transition); - this.addState('complete', null, null, transition); -}; -fsm.setupStates(); +function TimestampShape(shape) { + var self = this; + Shape.apply(this, arguments); -/** - * ## Asynchronous Requests - * - * All requests made through the SDK are asynchronous and use a - * callback interface. Each service method that kicks off a request - * returns an `AWS.Request` object that you can use to register - * callbacks. - * - * For example, the following service method returns the request - * object as "request", which can be used to register callbacks: - * - * ```javascript - * // request is an AWS.Request object - * var request = ec2.describeInstances(); - * - * // register callbacks on request to retrieve response data - * request.on('success', function(response) { - * console.log(response.data); - * }); - * ``` - * - * When a request is ready to be sent, the {send} method should - * be called: - * - * ```javascript - * request.send(); - * ``` - * - * Since registered callbacks may or may not be idempotent, requests should only - * be sent once. To perform the same operation multiple times, you will need to - * create multiple request objects, each with its own registered callbacks. - * - * ## Removing Default Listeners for Events - * - * Request objects are built with default listeners for the various events, - * depending on the service type. In some cases, you may want to remove - * some built-in listeners to customize behaviour. Doing this requires - * access to the built-in listener functions, which are exposed through - * the {AWS.EventListeners.Core} namespace. For instance, you may - * want to customize the HTTP handler used when sending a request. In this - * case, you can remove the built-in listener associated with the 'send' - * event, the {AWS.EventListeners.Core.SEND} listener and add your own. - * - * ## Multiple Callbacks and Chaining - * - * You can register multiple callbacks on any request object. The - * callbacks can be registered for different events, or all for the - * same event. In addition, you can chain callback registration, for - * example: - * - * ```javascript - * request. - * on('success', function(response) { - * console.log("Success!"); - * }). - * on('error', function(error, response) { - * console.log("Error!"); - * }). - * on('complete', function(response) { - * console.log("Always!"); - * }). - * send(); - * ``` - * - * The above example will print either "Success! Always!", or "Error! Always!", - * depending on whether the request succeeded or not. - * - * @!attribute httpRequest - * @readonly - * @!group HTTP Properties - * @return [AWS.HttpRequest] the raw HTTP request object - * containing request headers and body information - * sent by the service. - * - * @!attribute startTime - * @readonly - * @!group Operation Properties - * @return [Date] the time that the request started - * - * @!group Request Building Events - * - * @!event validate(request) - * Triggered when a request is being validated. Listeners - * should throw an error if the request should not be sent. - * @param request [Request] the request object being sent - * @see AWS.EventListeners.Core.VALIDATE_CREDENTIALS - * @see AWS.EventListeners.Core.VALIDATE_REGION - * @example Ensuring that a certain parameter is set before sending a request - * var req = s3.putObject(params); - * req.on('validate', function() { - * if (!req.params.Body.match(/^Hello\s/)) { - * throw new Error('Body must start with "Hello "'); - * } - * }); - * req.send(function(err, data) { ... }); - * - * @!event build(request) - * Triggered when the request payload is being built. Listeners - * should fill the necessary information to send the request - * over HTTP. - * @param (see AWS.Request~validate) - * @example Add a custom HTTP header to a request - * var req = s3.putObject(params); - * req.on('build', function() { - * req.httpRequest.headers['Custom-Header'] = 'value'; - * }); - * req.send(function(err, data) { ... }); - * - * @!event sign(request) - * Triggered when the request is being signed. Listeners should - * add the correct authentication headers and/or adjust the body, - * depending on the authentication mechanism being used. - * @param (see AWS.Request~validate) - * - * @!group Request Sending Events - * - * @!event send(response) - * Triggered when the request is ready to be sent. Listeners - * should call the underlying transport layer to initiate - * the sending of the request. - * @param response [Response] the response object - * @context [Request] the request object that was sent - * @see AWS.EventListeners.Core.SEND - * - * @!event retry(response) - * Triggered when a request failed and might need to be retried or redirected. - * If the response is retryable, the listener should set the - * `response.error.retryable` property to `true`, and optionally set - * `response.error.retryDelay` to the millisecond delay for the next attempt. - * In the case of a redirect, `response.error.redirect` should be set to - * `true` with `retryDelay` set to an optional delay on the next request. - * - * If a listener decides that a request should not be retried, - * it should set both `retryable` and `redirect` to false. - * - * Note that a retryable error will be retried at most - * {AWS.Config.maxRetries} times (based on the service object's config). - * Similarly, a request that is redirected will only redirect at most - * {AWS.Config.maxRedirects} times. - * - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @example Adding a custom retry for a 404 response - * request.on('retry', function(response) { - * // this resource is not yet available, wait 10 seconds to get it again - * if (response.httpResponse.statusCode === 404 && response.error) { - * response.error.retryable = true; // retry this error - * response.error.retryDelay = 10000; // wait 10 seconds - * } - * }); - * - * @!group Data Parsing Events - * - * @!event extractError(response) - * Triggered on all non-2xx requests so that listeners can extract - * error details from the response body. Listeners to this event - * should set the `response.error` property. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event extractData(response) - * Triggered in successful requests to allow listeners to - * de-serialize the response body into `response.data`. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!group Completion Events - * - * @!event success(response) - * Triggered when the request completed successfully. - * `response.data` will contain the response data and - * `response.error` will be null. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event error(error, response) - * Triggered when an error occurs at any point during the - * request. `response.error` will contain details about the error - * that occurred. `response.data` will be null. - * @param error [Error] the error object containing details about - * the error that occurred. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event complete(response) - * Triggered whenever a request cycle completes. `response.error` - * should be checked, since the request may have failed. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!group HTTP Events - * - * @!event httpHeaders(statusCode, headers, response, statusMessage) - * Triggered when headers are sent by the remote server - * @param statusCode [Integer] the HTTP response code - * @param headers [map] the response headers - * @param (see AWS.Request~send) - * @param statusMessage [String] A status message corresponding to the HTTP - * response code - * @context (see AWS.Request~send) - * - * @!event httpData(chunk, response) - * Triggered when data is sent by the remote server - * @param chunk [Buffer] the buffer data containing the next data chunk - * from the server - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @see AWS.EventListeners.Core.HTTP_DATA - * - * @!event httpUploadProgress(progress, response) - * Triggered when the HTTP request has uploaded more data - * @param progress [map] An object containing the `loaded` and `total` bytes - * of the request. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @note This event will not be emitted in Node.js 0.8.x. - * - * @!event httpDownloadProgress(progress, response) - * Triggered when the HTTP request has downloaded more data - * @param progress [map] An object containing the `loaded` and `total` bytes - * of the request. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @note This event will not be emitted in Node.js 0.8.x. - * - * @!event httpError(error, response) - * Triggered when the HTTP request failed - * @param error [Error] the error object that was thrown - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event httpDone(response) - * Triggered when the server is finished sending data - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @see AWS.Response - */ -AWS.Request = inherit({ + if (shape.timestampFormat) { + property(this, 'timestampFormat', shape.timestampFormat); + } else if (self.isTimestampFormatSet && this.timestampFormat) { + property(this, 'timestampFormat', this.timestampFormat); + } else if (this.location === 'header') { + property(this, 'timestampFormat', 'rfc822'); + } else if (this.location === 'querystring') { + property(this, 'timestampFormat', 'iso8601'); + } else if (this.api) { + switch (this.api.protocol) { + case 'json': + case 'rest-json': + property(this, 'timestampFormat', 'unixTimestamp'); + break; + case 'rest-xml': + case 'query': + case 'ec2': + property(this, 'timestampFormat', 'iso8601'); + break; + } + } - /** - * Creates a request for an operation on a given service with - * a set of input parameters. - * - * @param service [AWS.Service] the service to perform the operation on - * @param operation [String] the operation to perform on the service - * @param params [Object] parameters to send to the operation. - * See the operation's documentation for the format of the - * parameters. - */ - constructor: function Request(service, operation, params) { - var endpoint = service.endpoint; - var region = service.config.region; - var customUserAgent = service.config.customUserAgent; + this.toType = function(value) { + if (value === null || value === undefined) return null; + if (typeof value.toUTCString === 'function') return value; + return typeof value === 'string' || typeof value === 'number' ? + util.date.parseTimestamp(value) : null; + }; - if (service.signingRegion) { - region = service.signingRegion; - } else if (service.isGlobalEndpoint) { - region = 'us-east-1'; + this.toWireFormat = function(value) { + return util.date.format(value, self.timestampFormat); + }; +} + +function StringShape() { + Shape.apply(this, arguments); + + var nullLessProtocols = ['rest-xml', 'query', 'ec2']; + this.toType = function(value) { + value = this.api && nullLessProtocols.indexOf(this.api.protocol) > -1 ? + value || '' : value; + if (this.isJsonValue) { + return JSON.parse(value); } - this.domain = domain && domain.active; - this.service = service; - this.operation = operation; - this.params = params || {}; - this.httpRequest = new AWS.HttpRequest(endpoint, region); - this.httpRequest.appendToUserAgent(customUserAgent); - this.startTime = service.getSkewCorrectedDate(); + return value && typeof value.toString === 'function' ? + value.toString() : value; + }; - this.response = new AWS.Response(this); - this._asm = new AcceptorStateMachine(fsm.states, 'validate'); - this._haltHandlersOnError = false; + this.toWireFormat = function(value) { + return this.isJsonValue ? JSON.stringify(value) : value; + }; +} - AWS.SequentialExecutor.call(this); - this.emit = this.emitEvent; - }, +function FloatShape() { + Shape.apply(this, arguments); - /** - * @!group Sending a Request - */ + this.toType = function(value) { + if (value === null || value === undefined) return null; + return parseFloat(value); + }; + this.toWireFormat = this.toType; +} - /** - * @overload send(callback = null) - * Sends the request object. - * - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @context [AWS.Request] the request object being sent. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - * @example Sending a request with a callback - * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); - * request.send(function(err, data) { console.log(err, data); }); - * @example Sending a request with no callback (using event handlers) - * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); - * request.on('complete', function(response) { ... }); // register a callback - * request.send(); +function IntegerShape() { + Shape.apply(this, arguments); + + this.toType = function(value) { + if (value === null || value === undefined) return null; + return parseInt(value, 10); + }; + this.toWireFormat = this.toType; +} + +function BinaryShape() { + Shape.apply(this, arguments); + this.toType = function(value) { + var buf = util.base64.decode(value); + if (this.isSensitive && util.isNode() && typeof util.Buffer.alloc === 'function') { + /* Node.js can create a Buffer that is not isolated. + * i.e. buf.byteLength !== buf.buffer.byteLength + * This means that the sensitive data is accessible to anyone with access to buf.buffer. + * If this is the node shared Buffer, then other code within this process _could_ find this secret. + * Copy sensitive data to an isolated Buffer and zero the sensitive data. + * While this is safe to do here, copying this code somewhere else may produce unexpected results. */ - send: function send(callback) { - if (callback) { - // append to user agent - this.httpRequest.appendToUserAgent('callback'); - this.on('complete', function (resp) { - callback.call(resp, resp.error, resp.data); - }); + var secureBuf = util.Buffer.alloc(buf.length, buf); + buf.fill(0); + buf = secureBuf; } - this.runTo(); + return buf; + }; + this.toWireFormat = util.base64.encode; +} - return this.response; - }, +function Base64Shape() { + BinaryShape.apply(this, arguments); +} - /** - * @!method promise() - * Sends the request and returns a 'thenable' promise. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(data) - * Called if the promise is fulfilled. - * @param data [Object] the de-serialized data returned from the request. - * @callback rejectedCallback function(error) - * Called if the promise is rejected. - * @param error [Error] the error object returned from the request. - * @return [Promise] A promise that represents the state of the request. - * @example Sending a request using promises. - * var request = s3.putObject({Bucket: 'bucket', Key: 'key'}); - * var result = request.promise(); - * result.then(function(data) { ... }, function(error) { ... }); - */ +function BooleanShape() { + Shape.apply(this, arguments); - /** - * @api private - */ - build: function build(callback) { - return this.runTo('send', callback); - }, + this.toType = function(value) { + if (typeof value === 'boolean') return value; + if (value === null || value === undefined) return null; + return value === 'true'; + }; +} - /** - * @api private - */ - runTo: function runTo(state, done) { - this._asm.runTo(state, done, this); - return this; - }, +/** + * @api private + */ +Shape.shapes = { + StructureShape: StructureShape, + ListShape: ListShape, + MapShape: MapShape, + StringShape: StringShape, + BooleanShape: BooleanShape, + Base64Shape: Base64Shape +}; - /** - * Aborts a request, emitting the error and complete events. - * - * @!macro nobrowser - * @example Aborting a request after sending - * var params = { - * Bucket: 'bucket', Key: 'key', - * Body: Buffer.alloc(1024 * 1024 * 5) // 5MB payload - * }; - * var request = s3.putObject(params); - * request.send(function (err, data) { - * if (err) console.log("Error:", err.code, err.message); - * else console.log(data); - * }); - * - * // abort request in 1 second - * setTimeout(request.abort.bind(request), 1000); - * - * // prints "Error: RequestAbortedError Request aborted by user" - * @return [AWS.Request] the same request object, for chaining. - * @since v1.4.0 - */ - abort: function abort() { - this.removeAllListeners('validateResponse'); - this.removeAllListeners('extractError'); - this.on('validateResponse', function addAbortedError(resp) { - resp.error = AWS.util.error(new Error('Request aborted by user'), { - code: 'RequestAbortedError', retryable: false - }); - }); +/** + * @api private + */ +module.exports = Shape; - if (this.httpRequest.stream && !this.httpRequest.stream.didCallback) { // abort HTTP stream - this.httpRequest.stream.abort(); - if (this.httpRequest._abortCallback) { - this.httpRequest._abortCallback(); - } else { - this.removeAllListeners('send'); // haven't sent yet, so let's not - } - } - return this; - }, +/***/ }), - /** - * Iterates over each page of results given a pageable request, calling - * the provided callback with each page of data. After all pages have been - * retrieved, the callback is called with `null` data. - * - * @note This operation can generate multiple requests to a service. - * @example Iterating over multiple pages of objects in an S3 bucket - * var pages = 1; - * s3.listObjects().eachPage(function(err, data) { - * if (err) return; - * console.log("Page", pages++); - * console.log(data); - * }); - * @example Iterating over multiple pages with an asynchronous callback - * s3.listObjects(params).eachPage(function(err, data, done) { - * doSomethingAsyncAndOrExpensive(function() { - * // The next page of results isn't fetched until done is called - * done(); - * }); - * }); - * @callback callback function(err, data, [doneCallback]) - * Called with each page of resulting data from the request. If the - * optional `doneCallback` is provided in the function, it must be called - * when the callback is complete. - * - * @param err [Error] an error object, if an error occurred. - * @param data [Object] a single page of response data. If there is no - * more data, this object will be `null`. - * @param doneCallback [Function] an optional done callback. If this - * argument is defined in the function declaration, it should be called - * when the next page is ready to be retrieved. This is useful for - * controlling serial pagination across asynchronous operations. - * @return [Boolean] if the callback returns `false`, pagination will - * stop. - * - * @see AWS.Request.eachItem - * @see AWS.Response.nextPage - * @since v1.4.0 - */ - eachPage: function eachPage(callback) { - // Make all callbacks async-ish - callback = AWS.util.fn.makeAsync(callback, 3); +/***/ 70141: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - function wrappedCallback(response) { - callback.call(response, response.error, response.data, function (result) { - if (result === false) return; +var util = __nccwpck_require__(30879); - if (response.hasNextPage()) { - response.nextPage().on('complete', wrappedCallback).send(); - } else { - callback.call(response, null, null, AWS.util.fn.noop); - } - }); - } +var region_utils = __nccwpck_require__(7033); +var isFipsRegion = region_utils.isFipsRegion; +var getRealRegion = region_utils.getRealRegion; - this.on('complete', wrappedCallback).send(); - }, +util.isBrowser = function() { return false; }; +util.isNode = function() { return true; }; - /** - * Enumerates over individual items of a request, paging the responses if - * necessary. - * - * @api experimental - * @since v1.4.0 - */ - eachItem: function eachItem(callback) { - var self = this; - function wrappedCallback(err, data) { - if (err) return callback(err, null); - if (data === null) return callback(null, null); +// node.js specific modules +util.crypto.lib = __nccwpck_require__(76982); +util.Buffer = (__nccwpck_require__(20181).Buffer); +util.domain = __nccwpck_require__(73167); +util.stream = __nccwpck_require__(2203); +util.url = __nccwpck_require__(87016); +util.querystring = __nccwpck_require__(83480); +util.environment = 'nodejs'; +util.createEventStream = util.stream.Readable ? + (__nccwpck_require__(46386).createEventStream) : (__nccwpck_require__(60025).createEventStream); +util.realClock = __nccwpck_require__(81660); +util.clientSideMonitoring = { + Publisher: (__nccwpck_require__(25084).Publisher), + configProvider: __nccwpck_require__(22094), +}; +util.iniLoader = (__nccwpck_require__(32874)/* .iniLoader */ .s); +util.getSystemErrorName = (__nccwpck_require__(39023).getSystemErrorName); - var config = self.service.paginationConfig(self.operation); - var resultKey = config.resultKey; - if (Array.isArray(resultKey)) resultKey = resultKey[0]; - var items = jmespath.search(data, resultKey); - var continueIteration = true; - AWS.util.arrayEach(items, function(item) { - continueIteration = callback(null, item); - if (continueIteration === false) { - return AWS.util.abort; - } - }); - return continueIteration; +util.loadConfig = function(options) { + var envValue = options.environmentVariableSelector(process.env); + if (envValue !== undefined) { + return envValue; + } + + var configFile = {}; + try { + configFile = util.iniLoader ? util.iniLoader.loadFrom({ + isConfig: true, + filename: process.env[util.sharedConfigFileEnv] + }) : {}; + } catch (e) {} + var sharedFileConfig = configFile[ + process.env.AWS_PROFILE || util.defaultProfile + ] || {}; + var configValue = options.configFileSelector(sharedFileConfig); + if (configValue !== undefined) { + return configValue; + } + + if (typeof options.default === 'function') { + return options.default(); + } + return options.default; +}; + +var AWS; + +/** + * @api private + */ +module.exports = AWS = __nccwpck_require__(53832); + +__nccwpck_require__(10957); +__nccwpck_require__(91563); +__nccwpck_require__(34976); +__nccwpck_require__(18586); +__nccwpck_require__(31948); +__nccwpck_require__(331); +__nccwpck_require__(73976); +__nccwpck_require__(91246); + +// Load the xml2js XML parser +AWS.XML.Parser = __nccwpck_require__(63375); + +// Load Node HTTP client +__nccwpck_require__(20194); + +__nccwpck_require__(14710); + +// Load custom credential providers +__nccwpck_require__(20135); +__nccwpck_require__(21991); +__nccwpck_require__(31983); +__nccwpck_require__(83798); +__nccwpck_require__(65298); +__nccwpck_require__(59293); +__nccwpck_require__(9620); +__nccwpck_require__(91246); +__nccwpck_require__(18792); + +// Setup default providers for credentials chain +// If this changes, please update documentation for +// AWS.CredentialProviderChain.defaultProviders in +// credentials/credential_provider_chain.js +AWS.CredentialProviderChain.defaultProviders = [ + function () { return new AWS.EnvironmentCredentials('AWS'); }, + function () { return new AWS.EnvironmentCredentials('AMAZON'); }, + function () { return new AWS.SsoCredentials(); }, + function () { return new AWS.SharedIniFileCredentials(); }, + function () { return new AWS.ECSCredentials(); }, + function () { return new AWS.ProcessCredentials(); }, + function () { return new AWS.TokenFileWebIdentityCredentials(); }, + function () { return new AWS.EC2MetadataCredentials(); } +]; + +// Load custom token providers +__nccwpck_require__(90962); +__nccwpck_require__(96712); +__nccwpck_require__(8018); + +// Setup default providers for token chain +// If this changes, please update documentation for +// AWS.TokenProviderChain.defaultProviders in +// token/token_provider_chain.js +AWS.TokenProviderChain.defaultProviders = [ + function () { return new AWS.SSOTokenProvider(); }, +]; + +var getRegion = function() { + var env = process.env; + var region = env.AWS_REGION || env.AMAZON_REGION; + if (env[AWS.util.configOptInEnv]) { + var toCheck = [ + {filename: env[AWS.util.sharedCredentialsFileEnv]}, + {isConfig: true, filename: env[AWS.util.sharedConfigFileEnv]} + ]; + var iniLoader = AWS.util.iniLoader; + while (!region && toCheck.length) { + var configFile = {}; + var fileInfo = toCheck.shift(); + try { + configFile = iniLoader.loadFrom(fileInfo); + } catch (err) { + if (fileInfo.isConfig) throw err; + } + var profile = configFile[env.AWS_PROFILE || AWS.util.defaultProfile]; + region = profile && profile.region; } + } + return region; +}; - this.eachPage(wrappedCallback); +var getBooleanValue = function(value) { + return value === 'true' ? true: value === 'false' ? false: undefined; +}; + +var USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: function(env) { + return getBooleanValue(env['AWS_USE_FIPS_ENDPOINT']); + }, + configFileSelector: function(profile) { + return getBooleanValue(profile['use_fips_endpoint']); }, + default: false, +}; - /** - * @return [Boolean] whether the operation can return multiple pages of - * response data. - * @see AWS.Response.eachPage - * @since v1.4.0 - */ - isPageable: function isPageable() { - return this.service.paginationConfig(this.operation) ? true : false; +var USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: function(env) { + return getBooleanValue(env['AWS_USE_DUALSTACK_ENDPOINT']); + }, + configFileSelector: function(profile) { + return getBooleanValue(profile['use_dualstack_endpoint']); + }, + default: false, +}; + +// Update configuration keys +AWS.util.update(AWS.Config.prototype.keys, { + credentials: function () { + var credentials = null; + new AWS.CredentialProviderChain([ + function () { return new AWS.EnvironmentCredentials('AWS'); }, + function () { return new AWS.EnvironmentCredentials('AMAZON'); }, + function () { return new AWS.SharedIniFileCredentials({ disableAssumeRole: true }); } + ]).resolve(function(err, creds) { + if (!err) credentials = creds; + }); + return credentials; + }, + credentialProvider: function() { + return new AWS.CredentialProviderChain(); + }, + logger: function () { + return process.env.AWSJS_DEBUG ? console : null; + }, + region: function() { + var region = getRegion(); + return region ? getRealRegion(region): undefined; + }, + tokenProvider: function() { + return new AWS.TokenProviderChain(); + }, + useFipsEndpoint: function() { + var region = getRegion(); + return isFipsRegion(region) + ? true + : util.loadConfig(USE_FIPS_ENDPOINT_CONFIG_OPTIONS); }, + useDualstackEndpoint: function() { + return util.loadConfig(USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS); + } +}); + +// Reset configuration +AWS.config = new AWS.Config(); + +/***/ }), + +/***/ 4235: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); + +/** + * @api private + */ +AWS.ParamValidator = AWS.util.inherit({ /** - * Sends the request and converts the request object into a readable stream - * that can be read from or piped into a writable stream. + * Create a new validator object. * - * @note The data read from a readable stream contains only - * the raw HTTP body contents. - * @example Manually reading from a stream - * request.createReadStream().on('data', function(data) { - * console.log("Got data:", data.toString()); - * }); - * @example Piping a request body into a file - * var out = fs.createWriteStream('/path/to/outfile.jpg'); - * s3.service.getObject(params).createReadStream().pipe(out); - * @return [Stream] the readable stream object that can be piped - * or read from (by registering 'data' event listeners). - * @!macro nobrowser + * @param validation [Boolean|map] whether input parameters should be + * validated against the operation description before sending the + * request. Pass a map to enable any of the following specific + * validation features: + * + * * **min** [Boolean] — Validates that a value meets the min + * constraint. This is enabled by default when paramValidation is set + * to `true`. + * * **max** [Boolean] — Validates that a value meets the max + * constraint. + * * **pattern** [Boolean] — Validates that a string value matches a + * regular expression. + * * **enum** [Boolean] — Validates that a string value matches one + * of the allowable enum values. */ - createReadStream: function createReadStream() { - var streams = AWS.util.stream; - var req = this; - var stream = null; + constructor: function ParamValidator(validation) { + if (validation === true || validation === undefined) { + validation = {'min': true}; + } + this.validation = validation; + }, - if (AWS.HttpClient.streamsApiVersion === 2) { - stream = new streams.PassThrough(); - process.nextTick(function() { req.send(); }); - } else { - stream = new streams.Stream(); - stream.readable = true; + validate: function validate(shape, params, context) { + this.errors = []; + this.validateMember(shape, params || {}, context || 'params'); - stream.sent = false; - stream.on('newListener', function(event) { - if (!stream.sent && event === 'data') { - stream.sent = true; - process.nextTick(function() { req.send(); }); - } - }); + if (this.errors.length > 1) { + var msg = this.errors.join('\n* '); + msg = 'There were ' + this.errors.length + + ' validation errors:\n* ' + msg; + throw AWS.util.error(new Error(msg), + {code: 'MultipleValidationErrors', errors: this.errors}); + } else if (this.errors.length === 1) { + throw this.errors[0]; + } else { + return true; } + }, - this.on('error', function(err) { - stream.emit('error', err); - }); + fail: function fail(code, message) { + this.errors.push(AWS.util.error(new Error(message), {code: code})); + }, - this.on('httpHeaders', function streamHeaders(statusCode, headers, resp) { - if (statusCode < 300) { - req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA); - req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR); - req.on('httpError', function streamHttpError(error) { - resp.error = error; - resp.error.retryable = false; - }); + validateStructure: function validateStructure(shape, params, context) { + if (shape.isDocument) return true; - var shouldCheckContentLength = false; - var expectedLen; - if (req.httpRequest.method !== 'HEAD') { - expectedLen = parseInt(headers['content-length'], 10); - } - if (expectedLen !== undefined && !isNaN(expectedLen) && expectedLen >= 0) { - shouldCheckContentLength = true; - var receivedLen = 0; - } + this.validateType(params, context, ['object'], 'structure'); + var paramName; + for (var i = 0; shape.required && i < shape.required.length; i++) { + paramName = shape.required[i]; + var value = params[paramName]; + if (value === undefined || value === null) { + this.fail('MissingRequiredParameter', + 'Missing required key \'' + paramName + '\' in ' + context); + } + } - var checkContentLengthAndEmit = function checkContentLengthAndEmit() { - if (shouldCheckContentLength && receivedLen !== expectedLen) { - stream.emit('error', AWS.util.error( - new Error('Stream content length mismatch. Received ' + - receivedLen + ' of ' + expectedLen + ' bytes.'), - { code: 'StreamContentLengthMismatch' } - )); - } else if (AWS.HttpClient.streamsApiVersion === 2) { - stream.end(); - } else { - stream.emit('end'); - } - }; + // validate hash members + for (paramName in params) { + if (!Object.prototype.hasOwnProperty.call(params, paramName)) continue; - var httpStream = resp.httpResponse.createUnbufferedStream(); + var paramValue = params[paramName], + memberShape = shape.members[paramName]; - if (AWS.HttpClient.streamsApiVersion === 2) { - if (shouldCheckContentLength) { - var lengthAccumulator = new streams.PassThrough(); - lengthAccumulator._write = function(chunk) { - if (chunk && chunk.length) { - receivedLen += chunk.length; - } - return streams.PassThrough.prototype._write.apply(this, arguments); - }; + if (memberShape !== undefined) { + var memberContext = [context, paramName].join('.'); + this.validateMember(memberShape, paramValue, memberContext); + } else if (paramValue !== undefined && paramValue !== null) { + this.fail('UnexpectedParameter', + 'Unexpected key \'' + paramName + '\' found in ' + context); + } + } - lengthAccumulator.on('end', checkContentLengthAndEmit); - stream.on('error', function(err) { - shouldCheckContentLength = false; - httpStream.unpipe(lengthAccumulator); - lengthAccumulator.emit('end'); - lengthAccumulator.end(); - }); - httpStream.pipe(lengthAccumulator).pipe(stream, { end: false }); - } else { - httpStream.pipe(stream); - } - } else { + return true; + }, - if (shouldCheckContentLength) { - httpStream.on('data', function(arg) { - if (arg && arg.length) { - receivedLen += arg.length; - } - }); - } + validateMember: function validateMember(shape, param, context) { + switch (shape.type) { + case 'structure': + return this.validateStructure(shape, param, context); + case 'list': + return this.validateList(shape, param, context); + case 'map': + return this.validateMap(shape, param, context); + default: + return this.validateScalar(shape, param, context); + } + }, - httpStream.on('data', function(arg) { - stream.emit('data', arg); - }); - httpStream.on('end', checkContentLengthAndEmit); - } + validateList: function validateList(shape, params, context) { + if (this.validateType(params, context, [Array])) { + this.validateRange(shape, params.length, context, 'list member count'); + // validate array members + for (var i = 0; i < params.length; i++) { + this.validateMember(shape.member, params[i], context + '[' + i + ']'); + } + } + }, - httpStream.on('error', function(err) { - shouldCheckContentLength = false; - stream.emit('error', err); - }); + validateMap: function validateMap(shape, params, context) { + if (this.validateType(params, context, ['object'], 'map')) { + // Build up a count of map members to validate range traits. + var mapCount = 0; + for (var param in params) { + if (!Object.prototype.hasOwnProperty.call(params, param)) continue; + // Validate any map key trait constraints + this.validateMember(shape.key, param, + context + '[key=\'' + param + '\']'); + this.validateMember(shape.value, params[param], + context + '[\'' + param + '\']'); + mapCount++; } - }); + this.validateRange(shape, mapCount, context, 'map member count'); + } + }, - return stream; + validateScalar: function validateScalar(shape, value, context) { + switch (shape.type) { + case null: + case undefined: + case 'string': + return this.validateString(shape, value, context); + case 'base64': + case 'binary': + return this.validatePayload(value, context); + case 'integer': + case 'float': + return this.validateNumber(shape, value, context); + case 'boolean': + return this.validateType(value, context, ['boolean']); + case 'timestamp': + return this.validateType(value, context, [Date, + /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/, 'number'], + 'Date object, ISO-8601 string, or a UNIX timestamp'); + default: + return this.fail('UnkownType', 'Unhandled type ' + + shape.type + ' for ' + context); + } }, - /** - * @param [Array,Response] args This should be the response object, - * or an array of args to send to the event. - * @api private - */ - emitEvent: function emit(eventName, args, done) { - if (typeof args === 'function') { done = args; args = null; } - if (!done) done = function() { }; - if (!args) args = this.eventParameters(eventName, this.response); + validateString: function validateString(shape, value, context) { + var validTypes = ['string']; + if (shape.isJsonValue) { + validTypes = validTypes.concat(['number', 'object', 'boolean']); + } + if (value !== null && this.validateType(value, context, validTypes)) { + this.validateEnum(shape, value, context); + this.validateRange(shape, value.length, context, 'string length'); + this.validatePattern(shape, value, context); + this.validateUri(shape, value, context); + } + }, - var origEmit = AWS.SequentialExecutor.prototype.emit; - origEmit.call(this, eventName, args, function (err) { - if (err) this.response.error = err; - done.call(this, err); - }); + validateUri: function validateUri(shape, value, context) { + if (shape['location'] === 'uri') { + if (value.length === 0) { + this.fail('UriParameterError', 'Expected uri parameter to have length >= 1,' + + ' but found "' + value +'" for ' + context); + } + } }, - /** - * @api private - */ - eventParameters: function eventParameters(eventName) { - switch (eventName) { - case 'restart': - case 'validate': - case 'sign': - case 'build': - case 'afterValidate': - case 'afterBuild': - return [this]; - case 'error': - return [this.response.error, this.response]; - default: - return [this.response]; + validatePattern: function validatePattern(shape, value, context) { + if (this.validation['pattern'] && shape['pattern'] !== undefined) { + if (!(new RegExp(shape['pattern'])).test(value)) { + this.fail('PatternMatchError', 'Provided value "' + value + '" ' + + 'does not match regex pattern /' + shape['pattern'] + '/ for ' + + context); + } } }, - /** - * @api private - */ - presign: function presign(expires, callback) { - if (!callback && typeof expires === 'function') { - callback = expires; - expires = null; + validateRange: function validateRange(shape, value, context, descriptor) { + if (this.validation['min']) { + if (shape['min'] !== undefined && value < shape['min']) { + this.fail('MinRangeError', 'Expected ' + descriptor + ' >= ' + + shape['min'] + ', but found ' + value + ' for ' + context); + } + } + if (this.validation['max']) { + if (shape['max'] !== undefined && value > shape['max']) { + this.fail('MaxRangeError', 'Expected ' + descriptor + ' <= ' + + shape['max'] + ', but found ' + value + ' for ' + context); + } } - return new AWS.Signers.Presign().sign(this.toGet(), expires, callback); }, - /** - * @api private - */ - isPresigned: function isPresigned() { - return Object.prototype.hasOwnProperty.call(this.httpRequest.headers, 'presigned-expires'); + validateEnum: function validateRange(shape, value, context) { + if (this.validation['enum'] && shape['enum'] !== undefined) { + // Fail if the string value is not present in the enum list + if (shape['enum'].indexOf(value) === -1) { + this.fail('EnumError', 'Found string value of ' + value + ', but ' + + 'expected ' + shape['enum'].join('|') + ' for ' + context); + } + } }, - /** - * @api private - */ - toUnauthenticated: function toUnauthenticated() { - this._unAuthenticated = true; - this.removeListener('validate', AWS.EventListeners.Core.VALIDATE_CREDENTIALS); - this.removeListener('sign', AWS.EventListeners.Core.SIGN); - return this; + validateType: function validateType(value, context, acceptedTypes, type) { + // We will not log an error for null or undefined, but we will return + // false so that callers know that the expected type was not strictly met. + if (value === null || value === undefined) return false; + + var foundInvalidType = false; + for (var i = 0; i < acceptedTypes.length; i++) { + if (typeof acceptedTypes[i] === 'string') { + if (typeof value === acceptedTypes[i]) return true; + } else if (acceptedTypes[i] instanceof RegExp) { + if ((value || '').toString().match(acceptedTypes[i])) return true; + } else { + if (value instanceof acceptedTypes[i]) return true; + if (AWS.util.isType(value, acceptedTypes[i])) return true; + if (!type && !foundInvalidType) acceptedTypes = acceptedTypes.slice(); + acceptedTypes[i] = AWS.util.typeName(acceptedTypes[i]); + } + foundInvalidType = true; + } + + var acceptedType = type; + if (!acceptedType) { + acceptedType = acceptedTypes.join(', ').replace(/,([^,]+)$/, ', or$1'); + } + + var vowel = acceptedType.match(/^[aeiou]/i) ? 'n' : ''; + this.fail('InvalidParameterType', 'Expected ' + context + ' to be a' + + vowel + ' ' + acceptedType); + return false; }, - /** - * @api private - */ - toGet: function toGet() { - if (this.service.api.protocol === 'query' || - this.service.api.protocol === 'ec2') { - this.removeListener('build', this.buildAsGet); - this.addListener('build', this.buildAsGet); + validateNumber: function validateNumber(shape, value, context) { + if (value === null || value === undefined) return; + if (typeof value === 'string') { + var castedValue = parseFloat(value); + if (castedValue.toString() === value) value = castedValue; + } + if (this.validateType(value, context, ['number'])) { + this.validateRange(shape, value, context, 'numeric value'); } - return this; }, - /** - * @api private - */ - buildAsGet: function buildAsGet(request) { - request.httpRequest.method = 'GET'; - request.httpRequest.path = request.service.endpoint.path + - '?' + request.httpRequest.body; - request.httpRequest.body = ''; + validatePayload: function validatePayload(value, context) { + if (value === null || value === undefined) return; + if (typeof value === 'string') return; + if (value && typeof value.byteLength === 'number') return; // typed arrays + if (AWS.util.isNode()) { // special check for buffer/stream in Node.js + var Stream = AWS.util.stream.Stream; + if (AWS.util.Buffer.isBuffer(value) || value instanceof Stream) return; + } else { + if (typeof Blob !== void 0 && value instanceof Blob) return; + } - // don't need these headers on a GET request - delete request.httpRequest.headers['Content-Length']; - delete request.httpRequest.headers['Content-Type']; - }, + var types = ['Buffer', 'Stream', 'File', 'Blob', 'ArrayBuffer', 'DataView']; + if (value) { + for (var i = 0; i < types.length; i++) { + if (AWS.util.isType(value, types[i])) return; + if (AWS.util.typeName(value.constructor) === types[i]) return; + } + } - /** - * @api private - */ - haltHandlersOnError: function haltHandlersOnError() { - this._haltHandlersOnError = true; + this.fail('InvalidParameterType', 'Expected ' + context + ' to be a ' + + 'string, Buffer, Stream, Blob, or typed array object'); } }); + +/***/ }), + +/***/ 67727: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); +var rest = AWS.Protocol.Rest; + /** - * @api private + * A presigner object can be used to generate presigned urls for the Polly service. */ -AWS.Request.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.promise = function promise() { - var self = this; - // append to user agent - this.httpRequest.appendToUserAgent('promise'); - return new PromiseDependency(function(resolve, reject) { - self.on('complete', function(resp) { - if (resp.error) { - reject(resp.error); +AWS.Polly.Presigner = AWS.util.inherit({ + /** + * Creates a presigner object with a set of configuration options. + * + * @option options params [map] An optional map of parameters to bind to every + * request sent by this service object. + * @option options service [AWS.Polly] An optional pre-configured instance + * of the AWS.Polly service object to use for requests. The object may + * bound parameters used by the presigner. + * @see AWS.Polly.constructor + */ + constructor: function Signer(options) { + options = options || {}; + this.options = options; + this.service = options.service; + this.bindServiceObject(options); + this._operations = {}; + }, + + /** + * @api private + */ + bindServiceObject: function bindServiceObject(options) { + options = options || {}; + if (!this.service) { + this.service = new AWS.Polly(options); } else { - // define $response property so that it is not enumerable - // this prevents circular reference errors when stringifying the JSON object - resolve(Object.defineProperty( - resp.data || {}, - '$response', - {value: resp} - )); + var config = AWS.util.copy(this.service.config); + this.service = new this.service.constructor.__super__(config); + this.service.config.params = AWS.util.merge(this.service.config.params || {}, options.params); } - }); - self.runTo(); - }); - }; -}; + }, -/** - * @api private - */ -AWS.Request.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.promise; -}; + /** + * @api private + */ + modifyInputMembers: function modifyInputMembers(input) { + // make copies of the input so we don't overwrite the api + // need to be careful to copy anything we access/modify + var modifiedInput = AWS.util.copy(input); + modifiedInput.members = AWS.util.copy(input.members); + AWS.util.each(input.members, function(name, member) { + modifiedInput.members[name] = AWS.util.copy(member); + // update location and locationName + if (!member.location || member.location === 'body') { + modifiedInput.members[name].location = 'querystring'; + modifiedInput.members[name].locationName = name; + } + }); + return modifiedInput; + }, -AWS.util.addPromises(AWS.Request); + /** + * @api private + */ + convertPostToGet: function convertPostToGet(req) { + // convert method + req.httpRequest.method = 'GET'; -AWS.util.mixin(AWS.Request, AWS.SequentialExecutor); + var operation = req.service.api.operations[req.operation]; + // get cached operation input first + var input = this._operations[req.operation]; + if (!input) { + // modify the original input + this._operations[req.operation] = input = this.modifyInputMembers(operation.input); + } + + var uri = rest.generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); + + req.httpRequest.path = uri; + req.httpRequest.body = ''; + + // don't need these headers on a GET request + delete req.httpRequest.headers['Content-Length']; + delete req.httpRequest.headers['Content-Type']; + }, + + /** + * @overload getSynthesizeSpeechUrl(params = {}, [expires = 3600], [callback]) + * Generate a presigned url for {AWS.Polly.synthesizeSpeech}. + * @note You must ensure that you have static or previously resolved + * credentials if you call this method synchronously (with no callback), + * otherwise it may not properly sign the request. If you cannot guarantee + * this (you are using an asynchronous credential provider, i.e., EC2 + * IAM roles), you should always call this method with an asynchronous + * callback. + * @param params [map] parameters to pass to the operation. See the {AWS.Polly.synthesizeSpeech} + * operation for the expected operation parameters. + * @param expires [Integer] (3600) the number of seconds to expire the pre-signed URL operation in. + * Defaults to 1 hour. + * @return [string] if called synchronously (with no callback), returns the signed URL. + * @return [null] nothing is returned if a callback is provided. + * @callback callback function (err, url) + * If a callback is supplied, it is called when a signed URL has been generated. + * @param err [Error] the error object returned from the presigner. + * @param url [String] the signed URL. + * @see AWS.Polly.synthesizeSpeech + */ + getSynthesizeSpeechUrl: function getSynthesizeSpeechUrl(params, expires, callback) { + var self = this; + var request = this.service.makeRequest('synthesizeSpeech', params); + // remove existing build listeners + request.removeAllListeners('build'); + request.on('build', function(req) { + self.convertPostToGet(req); + }); + return request.presign(expires, callback); + } +}); /***/ }), -/***/ 75197: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 76813: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var util = __nccwpck_require__(30879); +var AWS = __nccwpck_require__(53832); /** - * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). You - * may not use this file except in compliance with the License. A copy of - * the License is located at - * - * http://aws.amazon.com/apache2.0/ - * - * or in the "license" file accompanying this file. This file is - * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific - * language governing permissions and limitations under the License. + * Prepend prefix defined by API model to endpoint that's already + * constructed. This feature does not apply to operations using + * endpoint discovery and can be disabled. + * @api private */ - -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; -var jmespath = __nccwpck_require__(53178); +function populateHostPrefix(request) { + var enabled = request.service.config.hostPrefixEnabled; + if (!enabled) return request; + var operationModel = request.service.api.operations[request.operation]; + //don't marshal host prefix when operation has endpoint discovery traits + if (hasEndpointDiscover(request)) return request; + if (operationModel.endpoint && operationModel.endpoint.hostPrefix) { + var hostPrefixNotation = operationModel.endpoint.hostPrefix; + var hostPrefix = expandHostPrefix(hostPrefixNotation, request.params, operationModel.input); + prependEndpointPrefix(request.httpRequest.endpoint, hostPrefix); + validateHostname(request.httpRequest.endpoint.hostname); + } + return request; +} /** * @api private */ -function CHECK_ACCEPTORS(resp) { - var waiter = resp.request._waiter; - var acceptors = waiter.config.acceptors; - var acceptorMatched = false; - var state = 'retry'; +function hasEndpointDiscover(request) { + var api = request.service.api; + var operationModel = api.operations[request.operation]; + var isEndpointOperation = api.endpointOperation && (api.endpointOperation === util.string.lowerFirst(operationModel.name)); + return (operationModel.endpointDiscoveryRequired !== 'NULL' || isEndpointOperation === true); +} - acceptors.forEach(function(acceptor) { - if (!acceptorMatched) { - var matcher = waiter.matchers[acceptor.matcher]; - if (matcher && matcher(resp, acceptor.expected, acceptor.argument)) { - acceptorMatched = true; - state = acceptor.state; +/** + * @api private + */ +function expandHostPrefix(hostPrefixNotation, params, shape) { + util.each(shape.members, function(name, member) { + if (member.hostLabel === true) { + if (typeof params[name] !== 'string' || params[name] === '') { + throw util.error(new Error(), { + message: 'Parameter ' + name + ' should be a non-empty string.', + code: 'InvalidParameter' + }); } + var regex = new RegExp('\\{' + name + '\\}', 'g'); + hostPrefixNotation = hostPrefixNotation.replace(regex, params[name]); } }); + return hostPrefixNotation; +} - if (!acceptorMatched && resp.error) state = 'failure'; - - if (state === 'success') { - waiter.setSuccess(resp); - } else { - waiter.setError(resp, state === 'retry'); +/** + * @api private + */ +function prependEndpointPrefix(endpoint, prefix) { + if (endpoint.host) { + endpoint.host = prefix + endpoint.host; + } + if (endpoint.hostname) { + endpoint.hostname = prefix + endpoint.hostname; } } /** * @api private */ -AWS.ResourceWaiter = inherit({ - /** - * Waits for a given state on a service object - * @param service [Service] the service object to wait on - * @param state [String] the state (defined in waiter configuration) to wait - * for. - * @example Create a waiter for running EC2 instances - * var ec2 = new AWS.EC2; - * var waiter = new AWS.ResourceWaiter(ec2, 'instanceRunning'); - */ - constructor: function constructor(service, state) { - this.service = service; - this.state = state; - this.loadWaiterConfig(this.state); - }, - - service: null, - - state: null, - - config: null, +function validateHostname(hostname) { + var labels = hostname.split('.'); + //Reference: https://tools.ietf.org/html/rfc1123#section-2 + var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; + util.arrayEach(labels, function(label) { + if (!label.length || label.length < 1 || label.length > 63) { + throw util.error(new Error(), { + code: 'ValidationError', + message: 'Hostname label length should be between 1 to 63 characters, inclusive.' + }); + } + if (!hostPattern.test(label)) { + throw AWS.util.error(new Error(), + {code: 'ValidationError', message: label + ' is not hostname compatible.'}); + } + }); +} - matchers: { - path: function(resp, expected, argument) { - try { - var result = jmespath.search(resp.data, argument); - } catch (err) { - return false; - } +module.exports = { + populateHostPrefix: populateHostPrefix +}; - return jmespath.strictDeepEqual(result,expected); - }, - pathAll: function(resp, expected, argument) { - try { - var results = jmespath.search(resp.data, argument); - } catch (err) { - return false; - } +/***/ }), - if (!Array.isArray(results)) results = [results]; - var numResults = results.length; - if (!numResults) return false; - for (var ind = 0 ; ind < numResults; ind++) { - if (!jmespath.strictDeepEqual(results[ind], expected)) { - return false; - } - } - return true; - }, +/***/ 95768: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - pathAny: function(resp, expected, argument) { - try { - var results = jmespath.search(resp.data, argument); - } catch (err) { - return false; - } +var util = __nccwpck_require__(30879); +var JsonBuilder = __nccwpck_require__(53669); +var JsonParser = __nccwpck_require__(99427); +var populateHostPrefix = (__nccwpck_require__(76813).populateHostPrefix); - if (!Array.isArray(results)) results = [results]; - var numResults = results.length; - for (var ind = 0 ; ind < numResults; ind++) { - if (jmespath.strictDeepEqual(results[ind], expected)) { - return true; - } - } - return false; - }, +function buildRequest(req) { + var httpRequest = req.httpRequest; + var api = req.service.api; + var target = api.targetPrefix + '.' + api.operations[req.operation].name; + var version = api.jsonVersion || '1.0'; + var input = api.operations[req.operation].input; + var builder = new JsonBuilder(); - status: function(resp, expected) { - var statusCode = resp.httpResponse.statusCode; - return (typeof statusCode === 'number') && (statusCode === expected); - }, + if (version === 1) version = '1.0'; - error: function(resp, expected) { - if (typeof expected === 'string' && resp.error) { - return expected === resp.error.code; - } - // if expected is not string, can be boolean indicating presence of error - return expected === !!resp.error; + if (api.awsQueryCompatible) { + if (!httpRequest.params) { + httpRequest.params = {}; } - }, + // because Query protocol does this. + Object.assign(httpRequest.params, req.params); + } - listeners: new AWS.SequentialExecutor().addNamedListeners(function(add) { - add('RETRY_CHECK', 'retry', function(resp) { - var waiter = resp.request._waiter; - if (resp.error && resp.error.code === 'ResourceNotReady') { - resp.error.retryDelay = (waiter.config.delay || 0) * 1000; - } - }); + httpRequest.body = builder.build(req.params || {}, input); + httpRequest.headers['Content-Type'] = 'application/x-amz-json-' + version; + httpRequest.headers['X-Amz-Target'] = target; - add('CHECK_OUTPUT', 'extractData', CHECK_ACCEPTORS); + populateHostPrefix(req); +} - add('CHECK_ERROR', 'extractError', CHECK_ACCEPTORS); - }), +function extractError(resp) { + var error = {}; + var httpResponse = resp.httpResponse; - /** - * @return [AWS.Request] - */ - wait: function wait(params, callback) { - if (typeof params === 'function') { - callback = params; params = undefined; - } + error.code = httpResponse.headers['x-amzn-errortype'] || 'UnknownError'; + if (typeof error.code === 'string') { + error.code = error.code.split(':')[0]; + } - if (params && params.$waiter) { - params = AWS.util.copy(params); - if (typeof params.$waiter.delay === 'number') { - this.config.delay = params.$waiter.delay; + if (httpResponse.body.length > 0) { + try { + var e = JSON.parse(httpResponse.body.toString()); + + var code = e.__type || e.code || e.Code; + if (code) { + error.code = code.split('#').pop(); } - if (typeof params.$waiter.maxAttempts === 'number') { - this.config.maxAttempts = params.$waiter.maxAttempts; + if (error.code === 'RequestEntityTooLarge') { + error.message = 'Request body must be less than 1 MB'; + } else { + error.message = (e.message || e.Message || null); } - delete params.$waiter; - } - - var request = this.service.makeRequest(this.config.operation, params); - request._waiter = this; - request.response.maxRetries = this.config.maxAttempts; - request.addListeners(this.listeners); - - if (callback) request.send(callback); - return request; - }, - - setSuccess: function setSuccess(resp) { - resp.error = null; - resp.data = resp.data || {}; - resp.request.removeAllListeners('extractData'); - }, - setError: function setError(resp, retryable) { - resp.data = null; - resp.error = AWS.util.error(resp.error || new Error(), { - code: 'ResourceNotReady', - message: 'Resource is not in the state ' + this.state, - retryable: retryable - }); - }, + // The minimized models do not have error shapes, so + // without expanding the model size, it's not possible + // to validate the response shape (members) or + // check if any are sensitive to logging. - /** - * Loads waiter configuration from API configuration - * - * @api private - */ - loadWaiterConfig: function loadWaiterConfig(state) { - if (!this.service.api.waiters[state]) { - throw new AWS.util.error(new Error(), { - code: 'StateNotFoundError', - message: 'State ' + state + ' not found.' - }); + // Assign the fields as non-enumerable, allowing specific access only. + for (var key in e || {}) { + if (key === 'code' || key === 'message') { + continue; + } + error['[' + key + ']'] = 'See error.' + key + ' for details.'; + Object.defineProperty(error, key, { + value: e[key], + enumerable: false, + writable: true + }); + } + } catch (e) { + error.statusCode = httpResponse.statusCode; + error.message = httpResponse.statusMessage; } - - this.config = AWS.util.copy(this.service.api.waiters[state]); + } else { + error.statusCode = httpResponse.statusCode; + error.message = httpResponse.statusCode.toString(); } -}); - -/***/ }), - -/***/ 36275: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + resp.error = util.error(new Error(), error); +} -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; -var jmespath = __nccwpck_require__(53178); +function extractData(resp) { + var body = resp.httpResponse.body.toString() || '{}'; + if (resp.request.service.config.convertResponseTypes === false) { + resp.data = JSON.parse(body); + } else { + var operation = resp.request.service.api.operations[resp.request.operation]; + var shape = operation.output || {}; + var parser = new JsonParser(); + resp.data = parser.parse(body, shape); + } +} /** - * This class encapsulates the response information - * from a service request operation sent through {AWS.Request}. - * The response object has two main properties for getting information - * back from a request: - * - * ## The `data` property - * - * The `response.data` property contains the serialized object data - * retrieved from the service request. For instance, for an - * Amazon DynamoDB `listTables` method call, the response data might - * look like: - * - * ``` - * > resp.data - * { TableNames: - * [ 'table1', 'table2', ... ] } - * ``` - * - * The `data` property can be null if an error occurs (see below). - * - * ## The `error` property - * - * In the event of a service error (or transfer error), the - * `response.error` property will be filled with the given - * error data in the form: - * - * ``` - * { code: 'SHORT_UNIQUE_ERROR_CODE', - * message: 'Some human readable error message' } - * ``` - * - * In the case of an error, the `data` property will be `null`. - * Note that if you handle events that can be in a failure state, - * you should always check whether `response.error` is set - * before attempting to access the `response.data` property. - * - * @!attribute data - * @readonly - * @!group Data Properties - * @note Inside of a {AWS.Request~httpData} event, this - * property contains a single raw packet instead of the - * full de-serialized service response. - * @return [Object] the de-serialized response data - * from the service. - * - * @!attribute error - * An structure containing information about a service - * or networking error. - * @readonly - * @!group Data Properties - * @note This attribute is only filled if a service or - * networking error occurs. - * @return [Error] - * * code [String] a unique short code representing the - * error that was emitted. - * * message [String] a longer human readable error message - * * retryable [Boolean] whether the error message is - * retryable. - * * statusCode [Numeric] in the case of a request that reached the service, - * this value contains the response status code. - * * time [Date] the date time object when the error occurred. - * * hostname [String] set when a networking error occurs to easily - * identify the endpoint of the request. - * * region [String] set when a networking error occurs to easily - * identify the region of the request. - * - * @!attribute requestId - * @readonly - * @!group Data Properties - * @return [String] the unique request ID associated with the response. - * Log this value when debugging requests for AWS support. - * - * @!attribute retryCount - * @readonly - * @!group Operation Properties - * @return [Integer] the number of retries that were - * attempted before the request was completed. - * - * @!attribute redirectCount - * @readonly - * @!group Operation Properties - * @return [Integer] the number of redirects that were - * followed before the request was completed. - * - * @!attribute httpResponse - * @readonly - * @!group HTTP Properties - * @return [AWS.HttpResponse] the raw HTTP response object - * containing the response headers and body information - * from the server. - * - * @see AWS.Request + * @api private */ -AWS.Response = inherit({ +module.exports = { + buildRequest: buildRequest, + extractError: extractError, + extractData: extractData +}; - /** - * @api private - */ - constructor: function Response(request) { - this.request = request; - this.data = null; - this.error = null; - this.retryCount = 0; - this.redirectCount = 0; - this.httpResponse = new AWS.HttpResponse(); - if (request) { - this.maxRetries = request.service.numRetries(); - this.maxRedirects = request.service.config.maxRedirects; - } - }, - /** - * Creates a new request for the next page of response data, calling the - * callback with the page data if a callback is provided. - * - * @callback callback function(err, data) - * Called when a page of data is returned from the next request. - * - * @param err [Error] an error object, if an error occurred in the request - * @param data [Object] the next page of data, or null, if there are no - * more pages left. - * @return [AWS.Request] the request object for the next page of data - * @return [null] if no callback is provided and there are no pages left - * to retrieve. - * @since v1.4.0 - */ - nextPage: function nextPage(callback) { - var config; - var service = this.request.service; - var operation = this.request.operation; - try { - config = service.paginationConfig(operation, true); - } catch (e) { this.error = e; } +/***/ }), - if (!this.hasNextPage()) { - if (callback) callback(this.error, null); - else if (this.error) throw this.error; - return null; - } +/***/ 22960: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var params = AWS.util.copy(this.request.params); - if (!this.nextPageTokens) { - return callback ? callback(null, null) : null; - } else { - var inputTokens = config.inputToken; - if (typeof inputTokens === 'string') inputTokens = [inputTokens]; - for (var i = 0; i < inputTokens.length; i++) { - params[inputTokens[i]] = this.nextPageTokens[i]; - } - return service.makeRequest(this.request.operation, params, callback); - } - }, +var AWS = __nccwpck_require__(53832); +var util = __nccwpck_require__(30879); +var QueryParamSerializer = __nccwpck_require__(12189); +var Shape = __nccwpck_require__(16212); +var populateHostPrefix = (__nccwpck_require__(76813).populateHostPrefix); - /** - * @return [Boolean] whether more pages of data can be returned by further - * requests - * @since v1.4.0 - */ - hasNextPage: function hasNextPage() { - this.cacheNextPageTokens(); - if (this.nextPageTokens) return true; - if (this.nextPageTokens === undefined) return undefined; - else return false; - }, +function buildRequest(req) { + var operation = req.service.api.operations[req.operation]; + var httpRequest = req.httpRequest; + httpRequest.headers['Content-Type'] = + 'application/x-www-form-urlencoded; charset=utf-8'; + httpRequest.params = { + Version: req.service.api.apiVersion, + Action: operation.name + }; - /** - * @api private - */ - cacheNextPageTokens: function cacheNextPageTokens() { - if (Object.prototype.hasOwnProperty.call(this, 'nextPageTokens')) return this.nextPageTokens; - this.nextPageTokens = undefined; + // convert the request parameters into a list of query params, + // e.g. Deeply.NestedParam.0.Name=value + var builder = new QueryParamSerializer(); + builder.serialize(req.params, operation.input, function(name, value) { + httpRequest.params[name] = value; + }); + httpRequest.body = util.queryParamsToString(httpRequest.params); - var config = this.request.service.paginationConfig(this.request.operation); - if (!config) return this.nextPageTokens; + populateHostPrefix(req); +} - this.nextPageTokens = null; - if (config.moreResults) { - if (!jmespath.search(this.data, config.moreResults)) { - return this.nextPageTokens; - } +function extractError(resp) { + var data, body = resp.httpResponse.body.toString(); + if (body.match(' { + if (data._XAMZRequestId) delete data._XAMZRequestId; -var AWS = __nccwpck_require__(14741); -var byteLength = AWS.util.string.byteLength; -var Buffer = AWS.util.Buffer; + if (origRules.resultWrapper) { + if (data[origRules.resultWrapper]) { + util.update(data, data[origRules.resultWrapper]); + delete data[origRules.resultWrapper]; + } + } + + resp.data = data; +} /** - * The managed uploader allows for easy and efficient uploading of buffers, - * blobs, or streams, using a configurable amount of concurrency to perform - * multipart uploads where possible. This abstraction also enables uploading - * streams of unknown size due to the use of multipart uploads. - * - * To construct a managed upload object, see the {constructor} function. - * - * ## Tracking upload progress - * - * The managed upload object can also track progress by attaching an - * 'httpUploadProgress' listener to the upload manager. This event is similar - * to {AWS.Request~httpUploadProgress} but groups all concurrent upload progress - * into a single event. See {AWS.S3.ManagedUpload~httpUploadProgress} for more - * information. - * - * ## Handling Multipart Cleanup - * - * By default, this class will automatically clean up any multipart uploads - * when an individual part upload fails. This behavior can be disabled in order - * to manually handle failures by setting the `leavePartsOnError` configuration - * option to `true` when initializing the upload object. - * - * @!event httpUploadProgress(progress) - * Triggered when the uploader has uploaded more data. - * @note The `total` property may not be set if the stream being uploaded has - * not yet finished chunking. In this case the `total` will be undefined - * until the total stream size is known. - * @note This event will not be emitted in Node.js 0.8.x. - * @param progress [map] An object containing the `loaded` and `total` bytes - * of the request and the `key` of the S3 object. Note that `total` may be undefined until the payload - * size is known. - * @context (see AWS.Request~send) + * @api private */ -AWS.S3.ManagedUpload = AWS.util.inherit({ - /** - * Creates a managed upload object with a set of configuration options. - * - * @note A "Body" parameter is required to be set prior to calling {send}. - * @note In Node.js, sending "Body" as {https://nodejs.org/dist/latest/docs/api/stream.html#stream_object_mode object-mode stream} - * may result in upload hangs. Using buffer stream is preferable. - * @option options params [map] a map of parameters to pass to the upload - * requests. The "Body" parameter is required to be specified either on - * the service or in the params option. - * @note ContentMD5 should not be provided when using the managed upload object. - * Instead, setting "computeChecksums" to true will enable automatic ContentMD5 generation - * by the managed upload object. - * @option options queueSize [Number] (4) the size of the concurrent queue - * manager to upload parts in parallel. Set to 1 for synchronous uploading - * of parts. Note that the uploader will buffer at most queueSize * partSize - * bytes into memory at any given time. - * @option options partSize [Number] (5mb) the size in bytes for each - * individual part to be uploaded. Adjust the part size to ensure the number - * of parts does not exceed {maxTotalParts}. See {minPartSize} for the - * minimum allowed part size. - * @option options leavePartsOnError [Boolean] (false) whether to abort the - * multipart upload if an error occurs. Set to true if you want to handle - * failures manually. - * @option options service [AWS.S3] an optional S3 service object to use for - * requests. This object might have bound parameters used by the uploader. - * @option options tags [Array] The tags to apply to the uploaded object. - * Each tag should have a `Key` and `Value` keys. - * @example Creating a default uploader for a stream object - * var upload = new AWS.S3.ManagedUpload({ - * params: {Bucket: 'bucket', Key: 'key', Body: stream} - * }); - * @example Creating an uploader with concurrency of 1 and partSize of 10mb - * var upload = new AWS.S3.ManagedUpload({ - * partSize: 10 * 1024 * 1024, queueSize: 1, - * params: {Bucket: 'bucket', Key: 'key', Body: stream} - * }); - * @example Creating an uploader with tags - * var upload = new AWS.S3.ManagedUpload({ - * params: {Bucket: 'bucket', Key: 'key', Body: stream}, - * tags: [{Key: 'tag1', Value: 'value1'}, {Key: 'tag2', Value: 'value2'}] - * }); - * @see send - */ - constructor: function ManagedUpload(options) { - var self = this; - AWS.SequentialExecutor.call(self); - self.body = null; - self.sliceFn = null; - self.callback = null; - self.parts = {}; - self.completeInfo = []; - self.fillQueue = function() { - self.callback(new Error('Unsupported body payload ' + typeof self.body)); - }; +module.exports = { + buildRequest: buildRequest, + extractError: extractError, + extractData: extractData +}; - self.configure(options); - }, - /** - * @api private - */ - configure: function configure(options) { - options = options || {}; - this.partSize = this.minPartSize; +/***/ }), - if (options.queueSize) this.queueSize = options.queueSize; - if (options.partSize) this.partSize = options.partSize; - if (options.leavePartsOnError) this.leavePartsOnError = true; - if (options.tags) { - if (!Array.isArray(options.tags)) { - throw new Error('Tags must be specified as an array; ' + - typeof options.tags + ' provided.'); - } - this.tags = options.tags; - } +/***/ 29252: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (this.partSize < this.minPartSize) { - throw new Error('partSize must be greater than ' + - this.minPartSize); - } +var util = __nccwpck_require__(30879); +var populateHostPrefix = (__nccwpck_require__(76813).populateHostPrefix); - this.service = options.service; - this.bindServiceObject(options.params); - this.validateBody(); - this.adjustTotalBytes(); - }, +function populateMethod(req) { + req.httpRequest.method = req.service.api.operations[req.operation].httpMethod; +} - /** - * @api private - */ - leavePartsOnError: false, +function generateURI(endpointPath, operationPath, input, params) { + var uri = [endpointPath, operationPath].join('/'); + uri = uri.replace(/\/+/g, '/'); - /** - * @api private - */ - queueSize: 4, + var queryString = {}, queryStringSet = false; + util.each(input.members, function (name, member) { + var paramValue = params[name]; + if (paramValue === null || paramValue === undefined) return; + if (member.location === 'uri') { + var regex = new RegExp('\\{' + member.name + '(\\+)?\\}'); + uri = uri.replace(regex, function(_, plus) { + var fn = plus ? util.uriEscapePath : util.uriEscape; + return fn(String(paramValue)); + }); + } else if (member.location === 'querystring') { + queryStringSet = true; - /** - * @api private - */ - partSize: null, + if (member.type === 'list') { + queryString[member.name] = paramValue.map(function(val) { + return util.uriEscape(member.member.toWireFormat(val).toString()); + }); + } else if (member.type === 'map') { + util.each(paramValue, function(key, value) { + if (Array.isArray(value)) { + queryString[key] = value.map(function(val) { + return util.uriEscape(String(val)); + }); + } else { + queryString[key] = util.uriEscape(String(value)); + } + }); + } else { + queryString[member.name] = util.uriEscape(member.toWireFormat(paramValue).toString()); + } + } + }); - /** - * @readonly - * @return [Number] the minimum number of bytes for an individual part - * upload. - */ - minPartSize: 1024 * 1024 * 5, + if (queryStringSet) { + uri += (uri.indexOf('?') >= 0 ? '&' : '?'); + var parts = []; + util.arrayEach(Object.keys(queryString).sort(), function(key) { + if (!Array.isArray(queryString[key])) { + queryString[key] = [queryString[key]]; + } + for (var i = 0; i < queryString[key].length; i++) { + parts.push(util.uriEscape(String(key)) + '=' + queryString[key][i]); + } + }); + uri += parts.join('&'); + } - /** - * @readonly - * @return [Number] the maximum allowed number of parts in a multipart upload. - */ - maxTotalParts: 10000, + return uri; +} - /** - * Initiates the managed upload for the payload. - * - * @callback callback function(err, data) - * @param err [Error] an error or null if no error occurred. - * @param data [map] The response data from the successful upload: - * * `Location` (String) the URL of the uploaded object - * * `ETag` (String) the ETag of the uploaded object - * * `Bucket` (String) the bucket to which the object was uploaded - * * `Key` (String) the key to which the object was uploaded - * @example Sending a managed upload object - * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; - * var upload = new AWS.S3.ManagedUpload({params: params}); - * upload.send(function(err, data) { - * console.log(err, data); - * }); - */ - send: function(callback) { - var self = this; - self.failed = false; - self.callback = callback || function(err) { if (err) throw err; }; +function populateURI(req) { + var operation = req.service.api.operations[req.operation]; + var input = operation.input; - var runFill = true; - if (self.sliceFn) { - self.fillQueue = self.fillBuffer; - } else if (AWS.util.isNode()) { - var Stream = AWS.util.stream.Stream; - if (self.body instanceof Stream) { - runFill = false; - self.fillQueue = self.fillStream; - self.partBuffers = []; - self.body. - on('error', function(err) { self.cleanup(err); }). - on('readable', function() { self.fillQueue(); }). - on('end', function() { - self.isDoneChunking = true; - self.numParts = self.totalPartNumbers; - self.fillQueue.call(self); + var uri = generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); + req.httpRequest.path = uri; +} - if (self.isDoneChunking && self.totalPartNumbers >= 1 && self.doneParts === self.numParts) { - self.finishMultiPart(); - } - }); +function populateHeaders(req) { + var operation = req.service.api.operations[req.operation]; + util.each(operation.input.members, function (name, member) { + var value = req.params[name]; + if (value === null || value === undefined) return; + + if (member.location === 'headers' && member.type === 'map') { + util.each(value, function(key, memberValue) { + req.httpRequest.headers[member.name + key] = memberValue; + }); + } else if (member.location === 'header') { + value = member.toWireFormat(value).toString(); + if (member.isJsonValue) { + value = util.base64.encode(value); } + req.httpRequest.headers[member.name] = value; } + }); +} - if (runFill) self.fillQueue.call(self); - }, +function buildRequest(req) { + populateMethod(req); + populateURI(req); + populateHeaders(req); + populateHostPrefix(req); +} - /** - * @!method promise() - * Returns a 'thenable' promise. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(data) - * Called if the promise is fulfilled. - * @param data [map] The response data from the successful upload: - * `Location` (String) the URL of the uploaded object - * `ETag` (String) the ETag of the uploaded object - * `Bucket` (String) the bucket to which the object was uploaded - * `Key` (String) the key to which the object was uploaded - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] an error or null if no error occurred. - * @return [Promise] A promise that represents the state of the upload request. - * @example Sending an upload request using promises. - * var upload = s3.upload({Bucket: 'bucket', Key: 'key', Body: stream}); - * var promise = upload.promise(); - * promise.then(function(data) { ... }, function(err) { ... }); - */ +function extractError() { +} - /** - * Aborts a managed upload, including all concurrent upload requests. - * @note By default, calling this function will cleanup a multipart upload - * if one was created. To leave the multipart upload around after aborting - * a request, configure `leavePartsOnError` to `true` in the {constructor}. - * @note Calling {abort} in the browser environment will not abort any requests - * that are already in flight. If a multipart upload was created, any parts - * not yet uploaded will not be sent, and the multipart upload will be cleaned up. - * @example Aborting an upload - * var params = { - * Bucket: 'bucket', Key: 'key', - * Body: Buffer.alloc(1024 * 1024 * 25) // 25MB payload - * }; - * var upload = s3.upload(params); - * upload.send(function (err, data) { - * if (err) console.log("Error:", err.code, err.message); - * else console.log(data); - * }); - * - * // abort request in 1 second - * setTimeout(upload.abort.bind(upload), 1000); - */ - abort: function() { - var self = this; - //abort putObject request - if (self.isDoneChunking === true && self.totalPartNumbers === 1 && self.singlePart) { - self.singlePart.abort(); - } else { - self.cleanup(AWS.util.error(new Error('Request aborted by user'), { - code: 'RequestAbortedError', retryable: false - })); - } - }, +function extractData(resp) { + var req = resp.request; + var data = {}; + var r = resp.httpResponse; + var operation = req.service.api.operations[req.operation]; + var output = operation.output; - /** - * @api private - */ - validateBody: function validateBody() { - var self = this; - self.body = self.service.config.params.Body; - if (typeof self.body === 'string') { - self.body = AWS.util.buffer.toBuffer(self.body); - } else if (!self.body) { - throw new Error('params.Body is required'); - } - self.sliceFn = AWS.util.arraySliceFn(self.body); - }, + // normalize headers names to lower-cased keys for matching + var headers = {}; + util.each(r.headers, function (k, v) { + headers[k.toLowerCase()] = v; + }); - /** - * @api private - */ - bindServiceObject: function bindServiceObject(params) { - params = params || {}; - var self = this; - // bind parameters to new service object - if (!self.service) { - self.service = new AWS.S3({params: params}); - } else { - // Create a new S3 client from the supplied client's constructor. - var service = self.service; - var config = AWS.util.copy(service.config); - config.signatureVersion = service.getSignatureVersion(); - self.service = new service.constructor.__super__(config); - self.service.config.params = - AWS.util.merge(self.service.config.params || {}, params); - Object.defineProperty(self.service, '_originalConfig', { - get: function() { return service._originalConfig; }, - enumerable: false, - configurable: true + util.each(output.members, function(name, member) { + var header = (member.name || name).toLowerCase(); + if (member.location === 'headers' && member.type === 'map') { + data[name] = {}; + var location = member.isLocationName ? member.name : ''; + var pattern = new RegExp('^' + location + '(.+)', 'i'); + util.each(r.headers, function (k, v) { + var result = k.match(pattern); + if (result !== null) { + data[name][result[1]] = v; + } }); + } else if (member.location === 'header') { + if (headers[header] !== undefined) { + var value = member.isJsonValue ? + util.base64.decode(headers[header]) : + headers[header]; + data[name] = member.toType(value); + } + } else if (member.location === 'statusCode') { + data[name] = parseInt(r.statusCode, 10); } - }, - - /** - * @api private - */ - adjustTotalBytes: function adjustTotalBytes() { - var self = this; - try { // try to get totalBytes - self.totalBytes = byteLength(self.body); - } catch (e) { } + }); - // try to adjust partSize if we know payload length - if (self.totalBytes) { - var newPartSize = Math.ceil(self.totalBytes / self.maxTotalParts); - if (newPartSize > self.partSize) self.partSize = newPartSize; - } else { - self.totalBytes = undefined; - } - }, + resp.data = data; +} - /** - * @api private - */ - isDoneChunking: false, +/** + * @api private + */ +module.exports = { + buildRequest: buildRequest, + extractError: extractError, + extractData: extractData, + generateURI: generateURI +}; - /** - * @api private - */ - partPos: 0, - /** - * @api private - */ - totalChunkedBytes: 0, +/***/ }), - /** - * @api private - */ - totalUploadedBytes: 0, +/***/ 93181: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @api private - */ - totalBytes: undefined, +var AWS = __nccwpck_require__(53832); +var util = __nccwpck_require__(30879); +var Rest = __nccwpck_require__(29252); +var Json = __nccwpck_require__(95768); +var JsonBuilder = __nccwpck_require__(53669); +var JsonParser = __nccwpck_require__(99427); - /** - * @api private - */ - numParts: 0, +var METHODS_WITHOUT_BODY = ['GET', 'HEAD', 'DELETE']; - /** - * @api private - */ - totalPartNumbers: 0, +function unsetContentLength(req) { + var payloadMember = util.getRequestPayloadShape(req); + if ( + payloadMember === undefined && + METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) >= 0 + ) { + delete req.httpRequest.headers['Content-Length']; + } +} - /** - * @api private - */ - activeParts: 0, +function populateBody(req) { + var builder = new JsonBuilder(); + var input = req.service.api.operations[req.operation].input; - /** - * @api private - */ - doneParts: 0, + if (input.payload) { + var params = {}; + var payloadShape = input.members[input.payload]; + params = req.params[input.payload]; - /** - * @api private - */ - parts: null, + if (payloadShape.type === 'structure') { + req.httpRequest.body = builder.build(params || {}, payloadShape); + applyContentTypeHeader(req); + } else if (params !== undefined) { + // non-JSON payload + req.httpRequest.body = params; + if (payloadShape.type === 'binary' || payloadShape.isStreaming) { + applyContentTypeHeader(req, true); + } + } + } else { + req.httpRequest.body = builder.build(req.params, input); + applyContentTypeHeader(req); + } +} - /** - * @api private - */ - completeInfo: null, +function applyContentTypeHeader(req, isBinary) { + if (!req.httpRequest.headers['Content-Type']) { + var type = isBinary ? 'binary/octet-stream' : 'application/json'; + req.httpRequest.headers['Content-Type'] = type; + } +} - /** - * @api private - */ - failed: false, +function buildRequest(req) { + Rest.buildRequest(req); - /** - * @api private - */ - multipartReq: null, + // never send body payload on GET/HEAD/DELETE + if (METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) < 0) { + populateBody(req); + } +} - /** - * @api private - */ - partBuffers: null, +function extractError(resp) { + Json.extractError(resp); +} - /** - * @api private - */ - partBufferLength: 0, +function extractData(resp) { + Rest.extractData(resp); - /** - * @api private - */ - fillBuffer: function fillBuffer() { - var self = this; - var bodyLen = byteLength(self.body); + var req = resp.request; + var operation = req.service.api.operations[req.operation]; + var rules = req.service.api.operations[req.operation].output || {}; + var parser; + var hasEventOutput = operation.hasEventOutput; - if (bodyLen === 0) { - self.isDoneChunking = true; - self.numParts = 1; - self.nextChunk(self.body); - return; + if (rules.payload) { + var payloadMember = rules.members[rules.payload]; + var body = resp.httpResponse.body; + if (payloadMember.isEventStream) { + parser = new JsonParser(); + resp.data[rules.payload] = util.createEventStream( + AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body, + parser, + payloadMember + ); + } else if (payloadMember.type === 'structure' || payloadMember.type === 'list') { + var parser = new JsonParser(); + resp.data[rules.payload] = parser.parse(body, payloadMember); + } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) { + resp.data[rules.payload] = body; + } else { + resp.data[rules.payload] = payloadMember.toType(body); } + } else { + var data = resp.data; + Json.extractData(resp); + resp.data = util.merge(data, resp.data); + } +} - while (self.activeParts < self.queueSize && self.partPos < bodyLen) { - var endPos = Math.min(self.partPos + self.partSize, bodyLen); - var buf = self.sliceFn.call(self.body, self.partPos, endPos); - self.partPos += self.partSize; +/** + * @api private + */ +module.exports = { + buildRequest: buildRequest, + extractError: extractError, + extractData: extractData, + unsetContentLength: unsetContentLength +}; - if (byteLength(buf) < self.partSize || self.partPos === bodyLen) { - self.isDoneChunking = true; - self.numParts = self.totalPartNumbers + 1; - } - self.nextChunk(buf); - } - }, - /** - * @api private - */ - fillStream: function fillStream() { - var self = this; - if (self.activeParts >= self.queueSize) return; +/***/ }), - var buf = self.body.read(self.partSize - self.partBufferLength) || - self.body.read(); - if (buf) { - self.partBuffers.push(buf); - self.partBufferLength += buf.length; - self.totalChunkedBytes += buf.length; - } +/***/ 63250: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (self.partBufferLength >= self.partSize) { - // if we have single buffer we avoid copyfull concat - var pbuf = self.partBuffers.length === 1 ? - self.partBuffers[0] : Buffer.concat(self.partBuffers); - self.partBuffers = []; - self.partBufferLength = 0; +var AWS = __nccwpck_require__(53832); +var util = __nccwpck_require__(30879); +var Rest = __nccwpck_require__(29252); - // if we have more than partSize, push the rest back on the queue - if (pbuf.length > self.partSize) { - var rest = pbuf.slice(self.partSize); - self.partBuffers.push(rest); - self.partBufferLength += rest.length; - pbuf = pbuf.slice(0, self.partSize); - } +function populateBody(req) { + var input = req.service.api.operations[req.operation].input; + var builder = new AWS.XML.Builder(); + var params = req.params; - self.nextChunk(pbuf); + var payload = input.payload; + if (payload) { + var payloadMember = input.members[payload]; + params = params[payload]; + if (params === undefined) return; + + if (payloadMember.type === 'structure') { + var rootElement = payloadMember.name; + req.httpRequest.body = builder.toXML(params, payloadMember, rootElement, true); + } else { // non-xml payload + req.httpRequest.body = params; } + } else { + req.httpRequest.body = builder.toXML(params, input, input.name || + input.shape || util.string.upperFirst(req.operation) + 'Request'); + } +} - if (self.isDoneChunking && !self.isDoneSending) { - // if we have single buffer we avoid copyfull concat - pbuf = self.partBuffers.length === 1 ? - self.partBuffers[0] : Buffer.concat(self.partBuffers); - self.partBuffers = []; - self.partBufferLength = 0; - self.totalBytes = self.totalChunkedBytes; - self.isDoneSending = true; +function buildRequest(req) { + Rest.buildRequest(req); - if (self.numParts === 0 || pbuf.length > 0) { - self.numParts++; - self.nextChunk(pbuf); - } - } + // never send body payload on GET/HEAD + if (['GET', 'HEAD'].indexOf(req.httpRequest.method) < 0) { + populateBody(req); + } +} - self.body.read(0); - }, +function extractError(resp) { + Rest.extractError(resp); - /** - * @api private - */ - nextChunk: function nextChunk(chunk) { - var self = this; - if (self.failed) return null; + var data; + try { + data = new AWS.XML.Parser().parse(resp.httpResponse.body.toString()); + } catch (e) { + data = { + Code: resp.httpResponse.statusCode, + Message: resp.httpResponse.statusMessage + }; + } - var partNumber = ++self.totalPartNumbers; - if (self.isDoneChunking && partNumber === 1) { - var params = {Body: chunk}; - if (this.tags) { - params.Tagging = this.getTaggingHeader(); - } - var req = self.service.putObject(params); - req._managedUpload = self; - req.on('httpUploadProgress', self.progress).send(self.finishSinglePart); - self.singlePart = req; //save the single part request - return null; - } else if (self.service.config.params.ContentMD5) { - var err = AWS.util.error(new Error('The Content-MD5 you specified is invalid for multi-part uploads.'), { - code: 'InvalidDigest', retryable: false - }); + if (data.Errors) data = data.Errors; + if (data.Error) data = data.Error; + if (data.Code) { + resp.error = util.error(new Error(), { + code: data.Code, + message: data.Message + }); + } else { + resp.error = util.error(new Error(), { + code: resp.httpResponse.statusCode, + message: null + }); + } +} - self.cleanup(err); - return null; - } +function extractData(resp) { + Rest.extractData(resp); - if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) { - return null; // Already uploaded this part. - } + var parser; + var req = resp.request; + var body = resp.httpResponse.body; + var operation = req.service.api.operations[req.operation]; + var output = operation.output; - self.activeParts++; - if (!self.service.config.params.UploadId) { + var hasEventOutput = operation.hasEventOutput; - if (!self.multipartReq) { // create multipart - self.multipartReq = self.service.createMultipartUpload(); - self.multipartReq.on('success', function(resp) { - self.service.config.params.UploadId = resp.data.UploadId; - self.multipartReq = null; - }); - self.queueChunks(chunk, partNumber); - self.multipartReq.on('error', function(err) { - self.cleanup(err); - }); - self.multipartReq.send(); - } else { - self.queueChunks(chunk, partNumber); - } - } else { // multipart is created, just send - self.uploadPart(chunk, partNumber); + var payload = output.payload; + if (payload) { + var payloadMember = output.members[payload]; + if (payloadMember.isEventStream) { + parser = new AWS.XML.Parser(); + resp.data[payload] = util.createEventStream( + AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : resp.httpResponse.body, + parser, + payloadMember + ); + } else if (payloadMember.type === 'structure') { + parser = new AWS.XML.Parser(); + resp.data[payload] = parser.parse(body.toString(), payloadMember); + } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) { + resp.data[payload] = body; + } else { + resp.data[payload] = payloadMember.toType(body); } - }, + } else if (body.length > 0) { + parser = new AWS.XML.Parser(); + var data = parser.parse(body.toString(), output); + util.update(resp.data, data); + } +} - /** - * @api private - */ - getTaggingHeader: function getTaggingHeader() { - var kvPairStrings = []; - for (var i = 0; i < this.tags.length; i++) { - kvPairStrings.push(AWS.util.uriEscape(this.tags[i].Key) + '=' + - AWS.util.uriEscape(this.tags[i].Value)); - } +/** + * @api private + */ +module.exports = { + buildRequest: buildRequest, + extractError: extractError, + extractData: extractData +}; - return kvPairStrings.join('&'); - }, - /** - * @api private - */ - uploadPart: function uploadPart(chunk, partNumber) { - var self = this; +/***/ }), - var partParams = { - Body: chunk, - ContentLength: AWS.util.string.byteLength(chunk), - PartNumber: partNumber - }; +/***/ 22094: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var partInfo = {ETag: null, PartNumber: partNumber}; - self.completeInfo[partNumber] = partInfo; +var AWS = __nccwpck_require__(53832); - var req = self.service.uploadPart(partParams); - self.parts[partNumber] = req; - req._lastUploadedBytes = 0; - req._managedUpload = self; - req.on('httpUploadProgress', self.progress); - req.send(function(err, data) { - delete self.parts[partParams.PartNumber]; - self.activeParts--; +/** + * Resolve client-side monitoring configuration from either environmental variables + * or shared config file. Configurations from environmental variables have higher priority + * than those from shared config file. The resolver will try to read the shared config file + * no matter whether the AWS_SDK_LOAD_CONFIG variable is set. + * @api private + */ +function resolveMonitoringConfig() { + var config = { + port: undefined, + clientId: undefined, + enabled: undefined, + host: undefined + }; + if (fromEnvironment(config) || fromConfigFile(config)) return toJSType(config); + return toJSType(config); +} - if (!err && (!data || !data.ETag)) { - var message = 'No access to ETag property on response.'; - if (AWS.util.isBrowser()) { - message += ' Check CORS configuration to expose ETag header.'; - } +/** + * Resolve configurations from environmental variables. + * @param {object} client side monitoring config object needs to be resolved + * @returns {boolean} whether resolving configurations is done + * @api private + */ +function fromEnvironment(config) { + config.port = config.port || process.env.AWS_CSM_PORT; + config.enabled = config.enabled || process.env.AWS_CSM_ENABLED; + config.clientId = config.clientId || process.env.AWS_CSM_CLIENT_ID; + config.host = config.host || process.env.AWS_CSM_HOST; + return config.port && config.enabled && config.clientId && config.host || + ['false', '0'].indexOf(config.enabled) >= 0; //no need to read shared config file if explicitely disabled +} - err = AWS.util.error(new Error(message), { - code: 'ETagMissing', retryable: false - }); - } - if (err) return self.cleanup(err); - //prevent sending part being returned twice (https://github.com/aws/aws-sdk-js/issues/2304) - if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) return null; - partInfo.ETag = data.ETag; - self.doneParts++; - if (self.isDoneChunking && self.doneParts === self.totalPartNumbers) { - self.finishMultiPart(); - } else { - self.fillQueue.call(self); - } +/** + * Resolve cofigurations from shared config file with specified role name + * @param {object} client side monitoring config object needs to be resolved + * @returns {boolean} whether resolving configurations is done + * @api private + */ +function fromConfigFile(config) { + var sharedFileConfig; + try { + var configFile = AWS.util.iniLoader.loadFrom({ + isConfig: true, + filename: process.env[AWS.util.sharedConfigFileEnv] }); - }, + var sharedFileConfig = configFile[ + process.env.AWS_PROFILE || AWS.util.defaultProfile + ]; + } catch (err) { + return false; + } + if (!sharedFileConfig) return config; + config.port = config.port || sharedFileConfig.csm_port; + config.enabled = config.enabled || sharedFileConfig.csm_enabled; + config.clientId = config.clientId || sharedFileConfig.csm_client_id; + config.host = config.host || sharedFileConfig.csm_host; + return config.port && config.enabled && config.clientId && config.host; +} - /** - * @api private - */ - queueChunks: function queueChunks(chunk, partNumber) { - var self = this; - self.multipartReq.on('success', function() { - self.uploadPart(chunk, partNumber); - }); - }, +/** + * Transfer the resolved configuration value to proper types: port as number, enabled + * as boolean and clientId as string. The 'enabled' flag is valued to false when set + * to 'false' or '0'. + * @param {object} resolved client side monitoring config + * @api private + */ +function toJSType(config) { + //config.XXX is either undefined or string + var falsyNotations = ['false', '0', undefined]; + if (!config.enabled || falsyNotations.indexOf(config.enabled.toLowerCase()) >= 0) { + config.enabled = false; + } else { + config.enabled = true; + } + config.port = config.port ? parseInt(config.port, 10) : undefined; + return config; +} - /** - * @api private - */ - cleanup: function cleanup(err) { - var self = this; - if (self.failed) return; +module.exports = resolveMonitoringConfig; - // clean up stream - if (typeof self.body.removeAllListeners === 'function' && - typeof self.body.resume === 'function') { - self.body.removeAllListeners('readable'); - self.body.removeAllListeners('end'); - self.body.resume(); - } - // cleanup multipartReq listeners - if (self.multipartReq) { - self.multipartReq.removeAllListeners('success'); - self.multipartReq.removeAllListeners('error'); - self.multipartReq.removeAllListeners('complete'); - delete self.multipartReq; - } +/***/ }), - if (self.service.config.params.UploadId && !self.leavePartsOnError) { - self.service.abortMultipartUpload().send(); - } else if (self.leavePartsOnError) { - self.isDoneChunking = false; - } +/***/ 25084: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - AWS.util.each(self.parts, function(partNumber, part) { - part.removeAllListeners('complete'); - part.abort(); - }); +var util = (__nccwpck_require__(53832).util); +var dgram = __nccwpck_require__(7194); +var stringToBuffer = util.buffer.toBuffer; - self.activeParts = 0; - self.partPos = 0; - self.numParts = 0; - self.totalPartNumbers = 0; - self.parts = {}; - self.failed = true; - self.callback(err); - }, +var MAX_MESSAGE_SIZE = 1024 * 8; // 8 KB - /** - * @api private - */ - finishMultiPart: function finishMultiPart() { - var self = this; - var completeParams = { MultipartUpload: { Parts: self.completeInfo.slice(1) } }; - self.service.completeMultipartUpload(completeParams, function(err, data) { - if (err) { - return self.cleanup(err); - } +/** + * Publishes metrics via udp. + * @param {object} options Paramters for Publisher constructor + * @param {number} [options.port = 31000] Port number + * @param {string} [options.clientId = ''] Client Identifier + * @param {boolean} [options.enabled = false] enable sending metrics datagram + * @api private + */ +function Publisher(options) { + // handle configuration + options = options || {}; + this.enabled = options.enabled || false; + this.port = options.port || 31000; + this.clientId = options.clientId || ''; + this.address = options.host || '127.0.0.1'; + if (this.clientId.length > 255) { + // ClientId has a max length of 255 + this.clientId = this.clientId.substr(0, 255); + } + this.messagesInFlight = 0; +} - if (data && typeof data.Location === 'string') { - data.Location = data.Location.replace(/%2F/g, '/'); - } +Publisher.prototype.fieldsToTrim = { + UserAgent: 256, + SdkException: 128, + SdkExceptionMessage: 512, + AwsException: 128, + AwsExceptionMessage: 512, + FinalSdkException: 128, + FinalSdkExceptionMessage: 512, + FinalAwsException: 128, + FinalAwsExceptionMessage: 512 - if (Array.isArray(self.tags)) { - for (var i = 0; i < self.tags.length; i++) { - self.tags[i].Value = String(self.tags[i].Value); - } - self.service.putObjectTagging( - {Tagging: {TagSet: self.tags}}, - function(e, d) { - if (e) { - self.callback(e); - } else { - self.callback(e, data); +}; + +/** + * Trims fields that have a specified max length. + * @param {object} event ApiCall or ApiCallAttempt event. + * @returns {object} + * @api private + */ +Publisher.prototype.trimFields = function(event) { + var trimmableFields = Object.keys(this.fieldsToTrim); + for (var i = 0, iLen = trimmableFields.length; i < iLen; i++) { + var field = trimmableFields[i]; + if (event.hasOwnProperty(field)) { + var maxLength = this.fieldsToTrim[field]; + var value = event[field]; + if (value && value.length > maxLength) { + event[field] = value.substr(0, maxLength); } - } - ); - } else { - self.callback(err, data); - } - }); - }, + } + } + return event; +}; - /** - * @api private - */ - finishSinglePart: function finishSinglePart(err, data) { - var upload = this.request._managedUpload; - var httpReq = this.request.httpRequest; - var endpoint = httpReq.endpoint; - if (err) return upload.callback(err); - data.Location = - [endpoint.protocol, '//', endpoint.host, httpReq.path].join(''); - data.key = this.request.params.Key; // will stay undocumented - data.Key = this.request.params.Key; - data.Bucket = this.request.params.Bucket; - upload.callback(err, data); - }, +/** + * Handles ApiCall and ApiCallAttempt events. + * @param {Object} event apiCall or apiCallAttempt event. + * @api private + */ +Publisher.prototype.eventHandler = function(event) { + // set the clientId + event.ClientId = this.clientId; - /** - * @api private - */ - progress: function progress(info) { - var upload = this._managedUpload; - if (this.operation === 'putObject') { - info.part = 1; - info.key = this.params.Key; - } else { - upload.totalUploadedBytes += info.loaded - this._lastUploadedBytes; - this._lastUploadedBytes = info.loaded; - info = { - loaded: upload.totalUploadedBytes, - total: upload.totalBytes, - part: this.params.PartNumber, - key: this.params.Key - }; + this.trimFields(event); + + var message = stringToBuffer(JSON.stringify(event)); + if (!this.enabled || message.length > MAX_MESSAGE_SIZE) { + // drop the message if publisher not enabled or it is too large + return; } - upload.emit('httpUploadProgress', [info]); - } -}); -AWS.util.mixin(AWS.S3.ManagedUpload, AWS.SequentialExecutor); + this.publishDatagram(message); +}; /** + * Publishes message to an agent. + * @param {Buffer} message JSON message to send to agent. * @api private */ -AWS.S3.ManagedUpload.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.promise = AWS.util.promisifyMethod('send', PromiseDependency); +Publisher.prototype.publishDatagram = function(message) { + var self = this; + var client = this.getClient(); + + this.messagesInFlight++; + this.client.send(message, 0, message.length, this.port, this.address, function(err, bytes) { + if (--self.messagesInFlight <= 0) { + // destroy existing client so the event loop isn't kept open + self.destroyClient(); + } + }); }; /** + * Returns an existing udp socket, or creates one if it doesn't already exist. * @api private */ -AWS.S3.ManagedUpload.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.promise; +Publisher.prototype.getClient = function() { + if (!this.client) { + this.client = dgram.createSocket('udp4'); + } + return this.client; }; -AWS.util.addPromises(AWS.S3.ManagedUpload); - /** + * Destroys the udp socket. * @api private */ -module.exports = AWS.S3.ManagedUpload; +Publisher.prototype.destroyClient = function() { + if (this.client) { + this.client.close(); + this.client = void 0; + } +}; + +module.exports = { + Publisher: Publisher +}; /***/ }), -/***/ 25555: +/***/ 12189: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +var util = __nccwpck_require__(30879); + +function QueryParamSerializer() { +} + +QueryParamSerializer.prototype.serialize = function(params, shape, fn) { + serializeStructure('', params, shape, fn); +}; + +function ucfirst(shape) { + if (shape.isQueryName || shape.api.protocol !== 'ec2') { + return shape.name; + } else { + return shape.name[0].toUpperCase() + shape.name.substr(1); + } +} + +function serializeStructure(prefix, struct, rules, fn) { + util.each(rules.members, function(name, member) { + var value = struct[name]; + if (value === null || value === undefined) return; + + var memberName = ucfirst(member); + memberName = prefix ? prefix + '.' + memberName : memberName; + serializeMember(memberName, value, member, fn); + }); +} + +function serializeMap(name, map, rules, fn) { + var i = 1; + util.each(map, function (key, value) { + var prefix = rules.flattened ? '.' : '.entry.'; + var position = prefix + (i++) + '.'; + var keyName = position + (rules.key.name || 'key'); + var valueName = position + (rules.value.name || 'value'); + serializeMember(name + keyName, key, rules.key, fn); + serializeMember(name + valueName, value, rules.value, fn); + }); +} + +function serializeList(name, list, rules, fn) { + var memberRules = rules.member || {}; + + if (list.length === 0) { + if (rules.api.protocol !== 'ec2') { + fn.call(this, name, null); + } + return; + } + + util.arrayEach(list, function (v, n) { + var suffix = '.' + (n + 1); + if (rules.api.protocol === 'ec2') { + // Do nothing for EC2 + suffix = suffix + ''; // make linter happy + } else if (rules.flattened) { + if (memberRules.name) { + var parts = name.split('.'); + parts.pop(); + parts.push(ucfirst(memberRules)); + name = parts.join('.'); + } + } else { + suffix = '.' + (memberRules.name ? memberRules.name : 'member') + suffix; + } + serializeMember(name + suffix, v, memberRules, fn); + }); +} + +function serializeMember(name, value, rules, fn) { + if (value === null || value === undefined) return; + if (rules.type === 'structure') { + serializeStructure(name, value, rules, fn); + } else if (rules.type === 'list') { + serializeList(name, value, rules, fn); + } else if (rules.type === 'map') { + serializeMap(name, value, rules, fn); + } else { + fn(name, rules.toWireFormat(value).toString()); + } +} /** * @api private - * @!method on(eventName, callback) - * Registers an event listener callback for the event given by `eventName`. - * Parameters passed to the callback function depend on the individual event - * being triggered. See the event documentation for those parameters. - * - * @param eventName [String] the event name to register the listener for - * @param callback [Function] the listener callback function - * @param toHead [Boolean] attach the listener callback to the head of callback array if set to true. - * Default to be false. - * @return [AWS.SequentialExecutor] the same object for chaining */ -AWS.SequentialExecutor = AWS.util.inherit({ +module.exports = QueryParamSerializer; - constructor: function SequentialExecutor() { - this._events = {}; - }, - /** - * @api private - */ - listeners: function listeners(eventName) { - return this._events[eventName] ? this._events[eventName].slice(0) : []; - }, +/***/ }), - on: function on(eventName, listener, toHead) { - if (this._events[eventName]) { - toHead ? - this._events[eventName].unshift(listener) : - this._events[eventName].push(listener); - } else { - this._events[eventName] = [listener]; - } - return this; - }, +/***/ 27417: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - onAsync: function onAsync(eventName, listener, toHead) { - listener._isAsync = true; - return this.on(eventName, listener, toHead); - }, +var AWS = __nccwpck_require__(53832); - removeListener: function removeListener(eventName, listener) { - var listeners = this._events[eventName]; - if (listeners) { - var length = listeners.length; - var position = -1; - for (var i = 0; i < length; ++i) { - if (listeners[i] === listener) { - position = i; +/** + * @api private + */ +var service = null; + +/** + * @api private + */ +var api = { + signatureVersion: 'v4', + signingName: 'rds-db', + operations: {} +}; + +/** + * @api private + */ +var requiredAuthTokenOptions = { + region: 'string', + hostname: 'string', + port: 'number', + username: 'string' +}; + +/** + * A signer object can be used to generate an auth token to a database. + */ +AWS.RDS.Signer = AWS.util.inherit({ + /** + * Creates a signer object can be used to generate an auth token. + * + * @option options credentials [AWS.Credentials] the AWS credentials + * to sign requests with. Uses the default credential provider chain + * if not specified. + * @option options hostname [String] the hostname of the database to connect to. + * @option options port [Number] the port number the database is listening on. + * @option options region [String] the region the database is located in. + * @option options username [String] the username to login as. + * @example Passing in options to constructor + * var signer = new AWS.RDS.Signer({ + * credentials: new AWS.SharedIniFileCredentials({profile: 'default'}), + * region: 'us-east-1', + * hostname: 'db.us-east-1.rds.amazonaws.com', + * port: 8000, + * username: 'name' + * }); + */ + constructor: function Signer(options) { + this.options = options || {}; + }, + + /** + * @api private + * Strips the protocol from a url. + */ + convertUrlToAuthToken: function convertUrlToAuthToken(url) { + // we are always using https as the protocol + var protocol = 'https://'; + if (url.indexOf(protocol) === 0) { + return url.substring(protocol.length); } - } - if (position > -1) { - listeners.splice(position, 1); - } - } - return this; - }, + }, - removeAllListeners: function removeAllListeners(eventName) { - if (eventName) { - delete this._events[eventName]; - } else { - this._events = {}; - } - return this; - }, + /** + * @overload getAuthToken(options = {}, [callback]) + * Generate an auth token to a database. + * @note You must ensure that you have static or previously resolved + * credentials if you call this method synchronously (with no callback), + * otherwise it may not properly sign the request. If you cannot guarantee + * this (you are using an asynchronous credential provider, i.e., EC2 + * IAM roles), you should always call this method with an asynchronous + * callback. + * + * @param options [map] The fields to use when generating an auth token. + * Any options specified here will be merged on top of any options passed + * to AWS.RDS.Signer: + * + * * **credentials** (AWS.Credentials) — the AWS credentials + * to sign requests with. Uses the default credential provider chain + * if not specified. + * * **hostname** (String) — the hostname of the database to connect to. + * * **port** (Number) — the port number the database is listening on. + * * **region** (String) — the region the database is located in. + * * **username** (String) — the username to login as. + * @return [String] if called synchronously (with no callback), returns the + * auth token. + * @return [null] nothing is returned if a callback is provided. + * @callback callback function (err, token) + * If a callback is supplied, it is called when an auth token has been generated. + * @param err [Error] the error object returned from the signer. + * @param token [String] the auth token. + * + * @example Generating an auth token synchronously + * var signer = new AWS.RDS.Signer({ + * // configure options + * region: 'us-east-1', + * username: 'default', + * hostname: 'db.us-east-1.amazonaws.com', + * port: 8000 + * }); + * var token = signer.getAuthToken({ + * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option + * // credentials are not specified here or when creating the signer, so default credential provider will be used + * username: 'test' // overriding username + * }); + * @example Generating an auth token asynchronously + * var signer = new AWS.RDS.Signer({ + * // configure options + * region: 'us-east-1', + * username: 'default', + * hostname: 'db.us-east-1.amazonaws.com', + * port: 8000 + * }); + * signer.getAuthToken({ + * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option + * // credentials are not specified here or when creating the signer, so default credential provider will be used + * username: 'test' // overriding username + * }, function(err, token) { + * if (err) { + * // handle error + * } else { + * // use token + * } + * }); + * + */ + getAuthToken: function getAuthToken(options, callback) { + if (typeof options === 'function' && callback === undefined) { + callback = options; + options = {}; + } + var self = this; + var hasCallback = typeof callback === 'function'; + // merge options with existing options + options = AWS.util.merge(this.options, options); + // validate options + var optionsValidation = this.validateAuthTokenOptions(options); + if (optionsValidation !== true) { + if (hasCallback) { + return callback(optionsValidation, null); + } + throw optionsValidation; + } - /** - * @api private - */ - emit: function emit(eventName, eventArgs, doneCallback) { - if (!doneCallback) doneCallback = function() { }; - var listeners = this.listeners(eventName); - var count = listeners.length; - this.callListeners(listeners, eventArgs, doneCallback); - return count > 0; - }, + // 15 minutes + var expires = 900; + // create service to generate a request from + var serviceOptions = { + region: options.region, + endpoint: new AWS.Endpoint(options.hostname + ':' + options.port), + paramValidation: false, + signatureVersion: 'v4' + }; + if (options.credentials) { + serviceOptions.credentials = options.credentials; + } + service = new AWS.Service(serviceOptions); + // ensure the SDK is using sigv4 signing (config is not enough) + service.api = api; - /** - * @api private - */ - callListeners: function callListeners(listeners, args, doneCallback, prevError) { - var self = this; - var error = prevError || null; + var request = service.makeRequest(); + // add listeners to request to properly build auth token + this.modifyRequestForAuthToken(request, options); - function callNextListener(err) { - if (err) { - error = AWS.util.error(error || new Error(), err); - if (self._haltHandlersOnError) { - return doneCallback.call(self, error); + if (hasCallback) { + request.presign(expires, function(err, url) { + if (url) { + url = self.convertUrlToAuthToken(url); + } + callback(err, url); + }); + } else { + var url = request.presign(expires); + return this.convertUrlToAuthToken(url); } - } - self.callListeners(listeners, args, doneCallback, error); - } + }, - while (listeners.length > 0) { - var listener = listeners.shift(); - if (listener._isAsync) { // asynchronous listener - listener.apply(self, args.concat([callNextListener])); - return; // stop here, callNextListener will continue - } else { // synchronous listener - try { - listener.apply(self, args); - } catch (err) { - error = AWS.util.error(error || new Error(), err); + /** + * @api private + * Modifies a request to allow the presigner to generate an auth token. + */ + modifyRequestForAuthToken: function modifyRequestForAuthToken(request, options) { + request.on('build', request.buildAsGet); + var httpRequest = request.httpRequest; + httpRequest.body = AWS.util.queryParamsToString({ + Action: 'connect', + DBUser: options.username + }); + }, + + /** + * @api private + * Validates that the options passed in contain all the keys with values of the correct type that + * are needed to generate an auth token. + */ + validateAuthTokenOptions: function validateAuthTokenOptions(options) { + // iterate over all keys in options + var message = ''; + options = options || {}; + for (var key in requiredAuthTokenOptions) { + if (!Object.prototype.hasOwnProperty.call(requiredAuthTokenOptions, key)) { + continue; + } + if (typeof options[key] !== requiredAuthTokenOptions[key]) { + message += 'option \'' + key + '\' should have been type \'' + requiredAuthTokenOptions[key] + '\', was \'' + typeof options[key] + '\'.\n'; + } } - if (error && self._haltHandlersOnError) { - doneCallback.call(self, error); - return; + if (message.length) { + return AWS.util.error(new Error(), { + code: 'InvalidParameter', + message: message + }); } - } + return true; } - doneCallback.call(self, error); - }, - - /** - * Adds or copies a set of listeners from another list of - * listeners or SequentialExecutor object. - * - * @param listeners [map>, AWS.SequentialExecutor] - * a list of events and callbacks, or an event emitter object - * containing listeners to add to this emitter object. - * @return [AWS.SequentialExecutor] the emitter object, for chaining. - * @example Adding listeners from a map of listeners - * emitter.addListeners({ - * event1: [function() { ... }, function() { ... }], - * event2: [function() { ... }] - * }); - * emitter.emit('event1'); // emitter has event1 - * emitter.emit('event2'); // emitter has event2 - * @example Adding listeners from another emitter object - * var emitter1 = new AWS.SequentialExecutor(); - * emitter1.on('event1', function() { ... }); - * emitter1.on('event2', function() { ... }); - * var emitter2 = new AWS.SequentialExecutor(); - * emitter2.addListeners(emitter1); - * emitter2.emit('event1'); // emitter2 has event1 - * emitter2.emit('event2'); // emitter2 has event2 - */ - addListeners: function addListeners(listeners) { - var self = this; - - // extract listeners if parameter is an SequentialExecutor object - if (listeners._events) listeners = listeners._events; - - AWS.util.each(listeners, function(event, callbacks) { - if (typeof callbacks === 'function') callbacks = [callbacks]; - AWS.util.arrayEach(callbacks, function(callback) { - self.on(event, callback); - }); - }); +}); - return self; - }, - /** - * Registers an event with {on} and saves the callback handle function - * as a property on the emitter object using a given `name`. - * - * @param name [String] the property name to set on this object containing - * the callback function handle so that the listener can be removed in - * the future. - * @param (see on) - * @return (see on) - * @example Adding a named listener DATA_CALLBACK - * var listener = function() { doSomething(); }; - * emitter.addNamedListener('DATA_CALLBACK', 'data', listener); - * - * // the following prints: true - * console.log(emitter.DATA_CALLBACK == listener); - */ - addNamedListener: function addNamedListener(name, eventName, callback, toHead) { - this[name] = callback; - this.addListener(eventName, callback, toHead); - return this; - }, +/***/ }), - /** - * @api private - */ - addNamedAsyncListener: function addNamedAsyncListener(name, eventName, callback, toHead) { - callback._isAsync = true; - return this.addNamedListener(name, eventName, callback, toHead); - }, +/***/ 81660: +/***/ ((module) => { - /** - * Helper method to add a set of named listeners using - * {addNamedListener}. The callback contains a parameter - * with a handle to the `addNamedListener` method. - * - * @callback callback function(add) - * The callback function is called immediately in order to provide - * the `add` function to the block. This simplifies the addition of - * a large group of named listeners. - * @param add [Function] the {addNamedListener} function to call - * when registering listeners. - * @example Adding a set of named listeners - * emitter.addNamedListeners(function(add) { - * add('DATA_CALLBACK', 'data', function() { ... }); - * add('OTHER', 'otherEvent', function() { ... }); - * add('LAST', 'lastEvent', function() { ... }); - * }); - * - * // these properties are now set: - * emitter.DATA_CALLBACK; - * emitter.OTHER; - * emitter.LAST; - */ - addNamedListeners: function addNamedListeners(callback) { - var self = this; - callback( - function() { - self.addNamedListener.apply(self, arguments); - }, - function() { - self.addNamedAsyncListener.apply(self, arguments); - } - ); - return this; +module.exports = { + //provide realtime clock for performance measurement + now: function now() { + var second = process.hrtime(); + return second[0] * 1000 + (second[1] / 1000000); } -}); - -/** - * {on} is the prefered method. - * @api private - */ -AWS.SequentialExecutor.prototype.addListener = AWS.SequentialExecutor.prototype.on; - -/** - * @api private - */ -module.exports = AWS.SequentialExecutor; +}; /***/ }), -/***/ 4466: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var Api = __nccwpck_require__(79101); -var regionConfig = __nccwpck_require__(63698); +/***/ 7033: +/***/ ((module) => { -var inherit = AWS.util.inherit; -var clientCount = 0; -var region_utils = __nccwpck_require__(98099); +function isFipsRegion(region) { + return typeof region === 'string' && (region.startsWith('fips-') || region.endsWith('-fips')); +} -/** - * The service class representing an AWS service. - * - * @class_abstract This class is an abstract class. - * - * @!attribute apiVersions - * @return [Array] the list of API versions supported by this service. - * @readonly - */ -AWS.Service = inherit({ - /** - * Create a new service object with a configuration object - * - * @param config [map] a map of configuration options - */ - constructor: function Service(config) { - if (!this.loadServiceClass) { - throw AWS.util.error(new Error(), - 'Service must be constructed with `new\' operator'); - } +function isGlobalRegion(region) { + return typeof region === 'string' && ['aws-global', 'aws-us-gov-global'].includes(region); +} - if (config) { - if (config.region) { - var region = config.region; - if (region_utils.isFipsRegion(region)) { - config.region = region_utils.getRealRegion(region); - config.useFipsEndpoint = true; - } - if (region_utils.isGlobalRegion(region)) { - config.region = region_utils.getRealRegion(region); - } - } - if (typeof config.useDualstack === 'boolean' - && typeof config.useDualstackEndpoint !== 'boolean') { - config.useDualstackEndpoint = config.useDualstack; - } - } +function getRealRegion(region) { + return ['fips-aws-global', 'aws-fips', 'aws-global'].includes(region) + ? 'us-east-1' + : ['fips-aws-us-gov-global', 'aws-us-gov-global'].includes(region) + ? 'us-gov-west-1' + : region.replace(/fips-(dkr-|prod-)?|-fips/, ''); +} - var ServiceClass = this.loadServiceClass(config || {}); - if (ServiceClass) { - var originalConfig = AWS.util.copy(config); - var svc = new ServiceClass(config); - Object.defineProperty(svc, '_originalConfig', { - get: function() { return originalConfig; }, - enumerable: false, - configurable: true - }); - svc._clientId = ++clientCount; - return svc; - } - this.initialize(config); - }, +module.exports = { + isFipsRegion: isFipsRegion, + isGlobalRegion: isGlobalRegion, + getRealRegion: getRealRegion +}; - /** - * @api private - */ - initialize: function initialize(config) { - var svcConfig = AWS.config[this.serviceIdentifier]; - this.config = new AWS.Config(AWS.config); - if (svcConfig) this.config.update(svcConfig, true); - if (config) this.config.update(config, true); - this.validateService(); - if (!this.config.endpoint) regionConfig.configureEndpoint(this); +/***/ }), - this.config.endpoint = this.endpointFromTemplate(this.config.endpoint); - this.setEndpoint(this.config.endpoint); - //enable attaching listeners to service client - AWS.SequentialExecutor.call(this); - AWS.Service.addDefaultMonitoringListeners(this); - if ((this.config.clientSideMonitoring || AWS.Service._clientSideMonitoring) && this.publisher) { - var publisher = this.publisher; - this.addNamedListener('PUBLISH_API_CALL', 'apiCall', function PUBLISH_API_CALL(event) { - process.nextTick(function() {publisher.eventHandler(event);}); - }); - this.addNamedListener('PUBLISH_API_ATTEMPT', 'apiCallAttempt', function PUBLISH_API_ATTEMPT(event) { - process.nextTick(function() {publisher.eventHandler(event);}); - }); - } - }, +/***/ 81940: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * @api private - */ - validateService: function validateService() { - }, +var util = __nccwpck_require__(30879); +var regionConfig = __nccwpck_require__(33548); - /** - * @api private - */ - loadServiceClass: function loadServiceClass(serviceConfig) { - var config = serviceConfig; - if (!AWS.util.isEmpty(this.api)) { - return null; - } else if (config.apiConfig) { - return AWS.Service.defineServiceApi(this.constructor, config.apiConfig); - } else if (!this.constructor.services) { - return null; - } else { - config = new AWS.Config(AWS.config); - config.update(serviceConfig, true); - var version = config.apiVersions[this.constructor.serviceIdentifier]; - version = version || config.apiVersion; - return this.getLatestServiceClass(version); - } - }, +function generateRegionPrefix(region) { + if (!region) return null; + var parts = region.split('-'); + if (parts.length < 3) return null; + return parts.slice(0, parts.length - 2).join('-') + '-*'; +} - /** - * @api private - */ - getLatestServiceClass: function getLatestServiceClass(version) { - version = this.getLatestServiceVersion(version); - if (this.constructor.services[version] === null) { - AWS.Service.defineServiceApi(this.constructor, version); - } +function derivedKeys(service) { + var region = service.config.region; + var regionPrefix = generateRegionPrefix(region); + var endpointPrefix = service.api.endpointPrefix; - return this.constructor.services[version]; - }, + return [ + [region, endpointPrefix], + [regionPrefix, endpointPrefix], + [region, '*'], + [regionPrefix, '*'], + ['*', endpointPrefix], + [region, 'internal-*'], + ['*', '*'] + ].map(function(item) { + return item[0] && item[1] ? item.join('/') : null; + }); +} - /** - * @api private - */ - getLatestServiceVersion: function getLatestServiceVersion(version) { - if (!this.constructor.services || this.constructor.services.length === 0) { - throw new Error('No services defined on ' + - this.constructor.serviceIdentifier); +function applyConfig(service, config) { + util.each(config, function(key, value) { + if (key === 'globalEndpoint') return; + if (service.config[key] === undefined || service.config[key] === null) { + service.config[key] = value; } + }); +} - if (!version) { - version = 'latest'; - } else if (AWS.util.isType(version, Date)) { - version = AWS.util.date.iso8601(version).split('T')[0]; - } +function configureEndpoint(service) { + var keys = derivedKeys(service); + var useFipsEndpoint = service.config.useFipsEndpoint; + var useDualstackEndpoint = service.config.useDualstackEndpoint; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!key) continue; - if (Object.hasOwnProperty(this.constructor.services, version)) { - return version; - } + var rules = useFipsEndpoint + ? useDualstackEndpoint + ? regionConfig.dualstackFipsRules + : regionConfig.fipsRules + : useDualstackEndpoint + ? regionConfig.dualstackRules + : regionConfig.rules; - var keys = Object.keys(this.constructor.services).sort(); - var selectedVersion = null; - for (var i = keys.length - 1; i >= 0; i--) { - // versions that end in "*" are not available on disk and can be - // skipped, so do not choose these as selectedVersions - if (keys[i][keys[i].length - 1] !== '*') { - selectedVersion = keys[i]; - } - if (keys[i].substr(0, 10) <= version) { - return selectedVersion; + if (Object.prototype.hasOwnProperty.call(rules, key)) { + var config = rules[key]; + if (typeof config === 'string') { + config = regionConfig.patterns[config]; } - } - - throw new Error('Could not find ' + this.constructor.serviceIdentifier + - ' API to satisfy version constraint `' + version + '\''); - }, - - /** - * @api private - */ - api: {}, - - /** - * @api private - */ - defaultRetryCount: 3, - - /** - * @api private - */ - customizeRequests: function customizeRequests(callback) { - if (!callback) { - this.customRequestHandler = null; - } else if (typeof callback === 'function') { - this.customRequestHandler = callback; - } else { - throw new Error('Invalid callback type \'' + typeof callback + '\' provided in customizeRequests'); - } - }, - /** - * Calls an operation on a service with the given input parameters. - * - * @param operation [String] the name of the operation to call on the service. - * @param params [map] a map of input options for the operation - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - */ - makeRequest: function makeRequest(operation, params, callback) { - if (typeof params === 'function') { - callback = params; - params = null; - } + // set global endpoint + service.isGlobalEndpoint = !!config.globalEndpoint; + if (config.signingRegion) { + service.signingRegion = config.signingRegion; + } - params = params || {}; - if (this.config.params) { // copy only toplevel bound params - var rules = this.api.operations[operation]; - if (rules) { - params = AWS.util.copy(params); - AWS.util.each(this.config.params, function(key, value) { - if (rules.input.members[key]) { - if (params[key] === undefined || params[key] === null) { - params[key] = value; - } - } - }); + // signature version + if (!config.signatureVersion) { + // Note: config is a global object and should not be mutated here. + // However, we are retaining this line for backwards compatibility. + // The non-v4 signatureVersion will be set in a copied object below. + config.signatureVersion = 'v4'; } - } - var request = new AWS.Request(this, operation, params); - this.addAllRequestListeners(request); - this.attachMonitoringEmitter(request); - if (callback) request.send(callback); - return request; - }, + var useBearer = (service.api && service.api.signatureVersion) === 'bearer'; - /** - * Calls an operation on a service with the given input parameters, without - * any authentication data. This method is useful for "public" API operations. - * - * @param operation [String] the name of the operation to call on the service. - * @param params [map] a map of input options for the operation - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - */ - makeUnauthenticatedRequest: function makeUnauthenticatedRequest(operation, params, callback) { - if (typeof params === 'function') { - callback = params; - params = {}; + // merge config + applyConfig(service, Object.assign( + {}, + config, + { signatureVersion: useBearer ? 'bearer' : config.signatureVersion } + )); + return; } + } +} - var request = this.makeRequest(operation, params).toUnauthenticated(); - return callback ? request.send(callback) : request; - }, - - /** - * Waits for a given state - * - * @param state [String] the state on the service to wait for - * @param params [map] a map of parameters to pass with each request - * @option params $waiter [map] a map of configuration options for the waiter - * @option params $waiter.delay [Number] The number of seconds to wait between - * requests - * @option params $waiter.maxAttempts [Number] The maximum number of requests - * to send while waiting - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - */ - waitFor: function waitFor(state, params, callback) { - var waiter = new AWS.ResourceWaiter(this, state); - return waiter.wait(params, callback); - }, +function getEndpointSuffix(region) { + var regionRegexes = { + '^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$': 'amazonaws.com', + '^cn\\-\\w+\\-\\d+$': 'amazonaws.com.cn', + '^us\\-gov\\-\\w+\\-\\d+$': 'amazonaws.com', + '^us\\-iso\\-\\w+\\-\\d+$': 'c2s.ic.gov', + '^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov', + '^eu\\-isoe\\-west\\-1$': 'cloud.adc-e.uk', + '^us\\-isof\\-\\w+\\-\\d+$': 'csp.hci.ic.gov', + }; + var defaultSuffix = 'amazonaws.com'; + var regexes = Object.keys(regionRegexes); + for (var i = 0; i < regexes.length; i++) { + var regionPattern = RegExp(regexes[i]); + var dnsSuffix = regionRegexes[regexes[i]]; + if (regionPattern.test(region)) return dnsSuffix; + } + return defaultSuffix; +} - /** - * @api private - */ - addAllRequestListeners: function addAllRequestListeners(request) { - var list = [AWS.events, AWS.EventListeners.Core, this.serviceInterface(), - AWS.EventListeners.CorePost]; - for (var i = 0; i < list.length; i++) { - if (list[i]) request.addListeners(list[i]); - } +/** + * @api private + */ +module.exports = { + configureEndpoint: configureEndpoint, + getEndpointSuffix: getEndpointSuffix, +}; - // disable parameter validation - if (!this.config.paramValidation) { - request.removeListener('validate', - AWS.EventListeners.Core.VALIDATE_PARAMETERS); - } - if (this.config.logger) { // add logging events - request.addListeners(AWS.EventListeners.Logger); - } +/***/ }), - this.setupRequestListeners(request); - // call prototype's customRequestHandler - if (typeof this.constructor.prototype.customRequestHandler === 'function') { - this.constructor.prototype.customRequestHandler(request); - } - // call instance's customRequestHandler - if (Object.prototype.hasOwnProperty.call(this, 'customRequestHandler') && typeof this.customRequestHandler === 'function') { - this.customRequestHandler(request); - } - }, +/***/ 98134: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * Event recording metrics for a whole API call. - * @returns {object} a subset of api call metrics - * @api private - */ - apiCallEvent: function apiCallEvent(request) { - var api = request.service.api.operations[request.operation]; - var monitoringEvent = { - Type: 'ApiCall', - Api: api ? api.name : request.operation, - Version: 1, - Service: request.service.api.serviceId || request.service.api.endpointPrefix, - Region: request.httpRequest.region, - MaxRetriesExceeded: 0, - UserAgent: request.httpRequest.getUserAgent(), - }; - var response = request.response; - if (response.httpResponse.statusCode) { - monitoringEvent.FinalHttpStatusCode = response.httpResponse.statusCode; - } - if (response.error) { - var error = response.error; - var statusCode = response.httpResponse.statusCode; - if (statusCode > 299) { - if (error.code) monitoringEvent.FinalAwsException = error.code; - if (error.message) monitoringEvent.FinalAwsExceptionMessage = error.message; - } else { - if (error.code || error.name) monitoringEvent.FinalSdkException = error.code || error.name; - if (error.message) monitoringEvent.FinalSdkExceptionMessage = error.message; - } - } - return monitoringEvent; - }, +var AWS = __nccwpck_require__(53832); +var AcceptorStateMachine = __nccwpck_require__(84531); +var inherit = AWS.util.inherit; +var domain = AWS.util.domain; +var jmespath = __nccwpck_require__(5769); - /** - * Event recording metrics for an API call attempt. - * @returns {object} a subset of api call attempt metrics - * @api private - */ - apiAttemptEvent: function apiAttemptEvent(request) { - var api = request.service.api.operations[request.operation]; - var monitoringEvent = { - Type: 'ApiCallAttempt', - Api: api ? api.name : request.operation, - Version: 1, - Service: request.service.api.serviceId || request.service.api.endpointPrefix, - Fqdn: request.httpRequest.endpoint.hostname, - UserAgent: request.httpRequest.getUserAgent(), - }; - var response = request.response; - if (response.httpResponse.statusCode) { - monitoringEvent.HttpStatusCode = response.httpResponse.statusCode; - } - if ( - !request._unAuthenticated && - request.service.config.credentials && - request.service.config.credentials.accessKeyId - ) { - monitoringEvent.AccessKey = request.service.config.credentials.accessKeyId; - } - if (!response.httpResponse.headers) return monitoringEvent; - if (request.httpRequest.headers['x-amz-security-token']) { - monitoringEvent.SessionToken = request.httpRequest.headers['x-amz-security-token']; - } - if (response.httpResponse.headers['x-amzn-requestid']) { - monitoringEvent.XAmznRequestId = response.httpResponse.headers['x-amzn-requestid']; - } - if (response.httpResponse.headers['x-amz-request-id']) { - monitoringEvent.XAmzRequestId = response.httpResponse.headers['x-amz-request-id']; - } - if (response.httpResponse.headers['x-amz-id-2']) { - monitoringEvent.XAmzId2 = response.httpResponse.headers['x-amz-id-2']; - } - return monitoringEvent; - }, +/** + * @api private + */ +var hardErrorStates = {success: 1, error: 1, complete: 1}; - /** - * Add metrics of failed request. - * @api private - */ - attemptFailEvent: function attemptFailEvent(request) { - var monitoringEvent = this.apiAttemptEvent(request); - var response = request.response; - var error = response.error; - if (response.httpResponse.statusCode > 299 ) { - if (error.code) monitoringEvent.AwsException = error.code; - if (error.message) monitoringEvent.AwsExceptionMessage = error.message; - } else { - if (error.code || error.name) monitoringEvent.SdkException = error.code || error.name; - if (error.message) monitoringEvent.SdkExceptionMessage = error.message; - } - return monitoringEvent; - }, +function isTerminalState(machine) { + return Object.prototype.hasOwnProperty.call(hardErrorStates, machine._asm.currentState); +} - /** - * Attach listeners to request object to fetch metrics of each request - * and emit data object through \'ApiCall\' and \'ApiCallAttempt\' events. - * @api private - */ - attachMonitoringEmitter: function attachMonitoringEmitter(request) { - var attemptTimestamp; //timestamp marking the beginning of a request attempt - var attemptStartRealTime; //Start time of request attempt. Used to calculating attemptLatency - var attemptLatency; //latency from request sent out to http response reaching SDK - var callStartRealTime; //Start time of API call. Used to calculating API call latency - var attemptCount = 0; //request.retryCount is not reliable here - var region; //region cache region for each attempt since it can be updated in plase (e.g. s3) - var callTimestamp; //timestamp when the request is created +var fsm = new AcceptorStateMachine(); +fsm.setupStates = function() { + var transition = function(_, done) { var self = this; - var addToHead = true; + self._haltHandlersOnError = false; - request.on('validate', function () { - callStartRealTime = AWS.util.realClock.now(); - callTimestamp = Date.now(); - }, addToHead); - request.on('sign', function () { - attemptStartRealTime = AWS.util.realClock.now(); - attemptTimestamp = Date.now(); - region = request.httpRequest.region; - attemptCount++; - }, addToHead); - request.on('validateResponse', function() { - attemptLatency = Math.round(AWS.util.realClock.now() - attemptStartRealTime); - }); - request.addNamedListener('API_CALL_ATTEMPT', 'success', function API_CALL_ATTEMPT() { - var apiAttemptEvent = self.apiAttemptEvent(request); - apiAttemptEvent.Timestamp = attemptTimestamp; - apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; - apiAttemptEvent.Region = region; - self.emit('apiCallAttempt', [apiAttemptEvent]); - }); - request.addNamedListener('API_CALL_ATTEMPT_RETRY', 'retry', function API_CALL_ATTEMPT_RETRY() { - var apiAttemptEvent = self.attemptFailEvent(request); - apiAttemptEvent.Timestamp = attemptTimestamp; - //attemptLatency may not be available if fail before response - attemptLatency = attemptLatency || - Math.round(AWS.util.realClock.now() - attemptStartRealTime); - apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; - apiAttemptEvent.Region = region; - self.emit('apiCallAttempt', [apiAttemptEvent]); - }); - request.addNamedListener('API_CALL', 'complete', function API_CALL() { - var apiCallEvent = self.apiCallEvent(request); - apiCallEvent.AttemptCount = attemptCount; - if (apiCallEvent.AttemptCount <= 0) return; - apiCallEvent.Timestamp = callTimestamp; - var latency = Math.round(AWS.util.realClock.now() - callStartRealTime); - apiCallEvent.Latency = latency >= 0 ? latency : 0; - var response = request.response; - if ( - response.error && - response.error.retryable && - typeof response.retryCount === 'number' && - typeof response.maxRetries === 'number' && - (response.retryCount >= response.maxRetries) - ) { - apiCallEvent.MaxRetriesExceeded = 1; + self.emit(self._asm.currentState, function(err) { + if (err) { + if (isTerminalState(self)) { + if (domain && self.domain instanceof domain.Domain) { + err.domainEmitter = self; + err.domain = self.domain; + err.domainThrown = false; + self.domain.emit('error', err); + } else { + throw err; + } + } else { + self.response.error = err; + done(err); + } + } else { + done(self.response.error); } - self.emit('apiCall', [apiCallEvent]); }); - }, - /** - * Override this method to setup any custom request listeners for each - * new request to the service. - * - * @method_abstract This is an abstract method. - */ - setupRequestListeners: function setupRequestListeners(request) { - }, + }; + + this.addState('validate', 'build', 'error', transition); + this.addState('build', 'afterBuild', 'restart', transition); + this.addState('afterBuild', 'sign', 'restart', transition); + this.addState('sign', 'send', 'retry', transition); + this.addState('retry', 'afterRetry', 'afterRetry', transition); + this.addState('afterRetry', 'sign', 'error', transition); + this.addState('send', 'validateResponse', 'retry', transition); + this.addState('validateResponse', 'extractData', 'extractError', transition); + this.addState('extractError', 'extractData', 'retry', transition); + this.addState('extractData', 'success', 'retry', transition); + this.addState('restart', 'build', 'error', transition); + this.addState('success', 'complete', 'complete', transition); + this.addState('error', 'complete', 'complete', transition); + this.addState('complete', null, null, transition); +}; +fsm.setupStates(); + +/** + * ## Asynchronous Requests + * + * All requests made through the SDK are asynchronous and use a + * callback interface. Each service method that kicks off a request + * returns an `AWS.Request` object that you can use to register + * callbacks. + * + * For example, the following service method returns the request + * object as "request", which can be used to register callbacks: + * + * ```javascript + * // request is an AWS.Request object + * var request = ec2.describeInstances(); + * + * // register callbacks on request to retrieve response data + * request.on('success', function(response) { + * console.log(response.data); + * }); + * ``` + * + * When a request is ready to be sent, the {send} method should + * be called: + * + * ```javascript + * request.send(); + * ``` + * + * Since registered callbacks may or may not be idempotent, requests should only + * be sent once. To perform the same operation multiple times, you will need to + * create multiple request objects, each with its own registered callbacks. + * + * ## Removing Default Listeners for Events + * + * Request objects are built with default listeners for the various events, + * depending on the service type. In some cases, you may want to remove + * some built-in listeners to customize behaviour. Doing this requires + * access to the built-in listener functions, which are exposed through + * the {AWS.EventListeners.Core} namespace. For instance, you may + * want to customize the HTTP handler used when sending a request. In this + * case, you can remove the built-in listener associated with the 'send' + * event, the {AWS.EventListeners.Core.SEND} listener and add your own. + * + * ## Multiple Callbacks and Chaining + * + * You can register multiple callbacks on any request object. The + * callbacks can be registered for different events, or all for the + * same event. In addition, you can chain callback registration, for + * example: + * + * ```javascript + * request. + * on('success', function(response) { + * console.log("Success!"); + * }). + * on('error', function(error, response) { + * console.log("Error!"); + * }). + * on('complete', function(response) { + * console.log("Always!"); + * }). + * send(); + * ``` + * + * The above example will print either "Success! Always!", or "Error! Always!", + * depending on whether the request succeeded or not. + * + * @!attribute httpRequest + * @readonly + * @!group HTTP Properties + * @return [AWS.HttpRequest] the raw HTTP request object + * containing request headers and body information + * sent by the service. + * + * @!attribute startTime + * @readonly + * @!group Operation Properties + * @return [Date] the time that the request started + * + * @!group Request Building Events + * + * @!event validate(request) + * Triggered when a request is being validated. Listeners + * should throw an error if the request should not be sent. + * @param request [Request] the request object being sent + * @see AWS.EventListeners.Core.VALIDATE_CREDENTIALS + * @see AWS.EventListeners.Core.VALIDATE_REGION + * @example Ensuring that a certain parameter is set before sending a request + * var req = s3.putObject(params); + * req.on('validate', function() { + * if (!req.params.Body.match(/^Hello\s/)) { + * throw new Error('Body must start with "Hello "'); + * } + * }); + * req.send(function(err, data) { ... }); + * + * @!event build(request) + * Triggered when the request payload is being built. Listeners + * should fill the necessary information to send the request + * over HTTP. + * @param (see AWS.Request~validate) + * @example Add a custom HTTP header to a request + * var req = s3.putObject(params); + * req.on('build', function() { + * req.httpRequest.headers['Custom-Header'] = 'value'; + * }); + * req.send(function(err, data) { ... }); + * + * @!event sign(request) + * Triggered when the request is being signed. Listeners should + * add the correct authentication headers and/or adjust the body, + * depending on the authentication mechanism being used. + * @param (see AWS.Request~validate) + * + * @!group Request Sending Events + * + * @!event send(response) + * Triggered when the request is ready to be sent. Listeners + * should call the underlying transport layer to initiate + * the sending of the request. + * @param response [Response] the response object + * @context [Request] the request object that was sent + * @see AWS.EventListeners.Core.SEND + * + * @!event retry(response) + * Triggered when a request failed and might need to be retried or redirected. + * If the response is retryable, the listener should set the + * `response.error.retryable` property to `true`, and optionally set + * `response.error.retryDelay` to the millisecond delay for the next attempt. + * In the case of a redirect, `response.error.redirect` should be set to + * `true` with `retryDelay` set to an optional delay on the next request. + * + * If a listener decides that a request should not be retried, + * it should set both `retryable` and `redirect` to false. + * + * Note that a retryable error will be retried at most + * {AWS.Config.maxRetries} times (based on the service object's config). + * Similarly, a request that is redirected will only redirect at most + * {AWS.Config.maxRedirects} times. + * + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * @example Adding a custom retry for a 404 response + * request.on('retry', function(response) { + * // this resource is not yet available, wait 10 seconds to get it again + * if (response.httpResponse.statusCode === 404 && response.error) { + * response.error.retryable = true; // retry this error + * response.error.retryDelay = 10000; // wait 10 seconds + * } + * }); + * + * @!group Data Parsing Events + * + * @!event extractError(response) + * Triggered on all non-2xx requests so that listeners can extract + * error details from the response body. Listeners to this event + * should set the `response.error` property. + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * + * @!event extractData(response) + * Triggered in successful requests to allow listeners to + * de-serialize the response body into `response.data`. + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * + * @!group Completion Events + * + * @!event success(response) + * Triggered when the request completed successfully. + * `response.data` will contain the response data and + * `response.error` will be null. + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * + * @!event error(error, response) + * Triggered when an error occurs at any point during the + * request. `response.error` will contain details about the error + * that occurred. `response.data` will be null. + * @param error [Error] the error object containing details about + * the error that occurred. + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * + * @!event complete(response) + * Triggered whenever a request cycle completes. `response.error` + * should be checked, since the request may have failed. + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * + * @!group HTTP Events + * + * @!event httpHeaders(statusCode, headers, response, statusMessage) + * Triggered when headers are sent by the remote server + * @param statusCode [Integer] the HTTP response code + * @param headers [map] the response headers + * @param (see AWS.Request~send) + * @param statusMessage [String] A status message corresponding to the HTTP + * response code + * @context (see AWS.Request~send) + * + * @!event httpData(chunk, response) + * Triggered when data is sent by the remote server + * @param chunk [Buffer] the buffer data containing the next data chunk + * from the server + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * @see AWS.EventListeners.Core.HTTP_DATA + * + * @!event httpUploadProgress(progress, response) + * Triggered when the HTTP request has uploaded more data + * @param progress [map] An object containing the `loaded` and `total` bytes + * of the request. + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * @note This event will not be emitted in Node.js 0.8.x. + * + * @!event httpDownloadProgress(progress, response) + * Triggered when the HTTP request has downloaded more data + * @param progress [map] An object containing the `loaded` and `total` bytes + * of the request. + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * @note This event will not be emitted in Node.js 0.8.x. + * + * @!event httpError(error, response) + * Triggered when the HTTP request failed + * @param error [Error] the error object that was thrown + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * + * @!event httpDone(response) + * Triggered when the server is finished sending data + * @param (see AWS.Request~send) + * @context (see AWS.Request~send) + * + * @see AWS.Response + */ +AWS.Request = inherit({ /** - * Gets the signing name for a given request - * @api private + * Creates a request for an operation on a given service with + * a set of input parameters. + * + * @param service [AWS.Service] the service to perform the operation on + * @param operation [String] the operation to perform on the service + * @param params [Object] parameters to send to the operation. + * See the operation's documentation for the format of the + * parameters. */ - getSigningName: function getSigningName() { - return this.api.signingName || this.api.endpointPrefix; - }, + constructor: function Request(service, operation, params) { + var endpoint = service.endpoint; + var region = service.config.region; + var customUserAgent = service.config.customUserAgent; - /** - * Gets the signer class for a given request - * @api private - */ - getSignerClass: function getSignerClass(request) { - var version; - // get operation authtype if present - var operation = null; - var authtype = ''; - if (request) { - var operations = request.service.api.operations || {}; - operation = operations[request.operation] || null; - authtype = operation ? operation.authtype : ''; - } - if (this.config.signatureVersion) { - version = this.config.signatureVersion; - } else if (authtype === 'v4' || authtype === 'v4-unsigned-body') { - version = 'v4'; - } else if (authtype === 'bearer') { - version = 'bearer'; - } else { - version = this.api.signatureVersion; + if (service.signingRegion) { + region = service.signingRegion; + } else if (service.isGlobalEndpoint) { + region = 'us-east-1'; } - return AWS.Signers.RequestSigner.getVersion(version); - }, - /** - * @api private - */ - serviceInterface: function serviceInterface() { - switch (this.api.protocol) { - case 'ec2': return AWS.EventListeners.Query; - case 'query': return AWS.EventListeners.Query; - case 'json': return AWS.EventListeners.Json; - case 'rest-json': return AWS.EventListeners.RestJson; - case 'rest-xml': return AWS.EventListeners.RestXml; - } - if (this.api.protocol) { - throw new Error('Invalid service `protocol\' ' + - this.api.protocol + ' in API config'); - } + this.domain = domain && domain.active; + this.service = service; + this.operation = operation; + this.params = params || {}; + this.httpRequest = new AWS.HttpRequest(endpoint, region); + this.httpRequest.appendToUserAgent(customUserAgent); + this.startTime = service.getSkewCorrectedDate(); + + this.response = new AWS.Response(this); + this._asm = new AcceptorStateMachine(fsm.states, 'validate'); + this._haltHandlersOnError = false; + + AWS.SequentialExecutor.call(this); + this.emit = this.emitEvent; }, /** - * @api private + * @!group Sending a Request */ - successfulResponse: function successfulResponse(resp) { - return resp.httpResponse.statusCode < 300; - }, /** - * How many times a failed request should be retried before giving up. - * the defaultRetryCount can be overriden by service classes. + * @overload send(callback = null) + * Sends the request object. * - * @api private + * @callback callback function(err, data) + * If a callback is supplied, it is called when a response is returned + * from the service. + * @context [AWS.Request] the request object being sent. + * @param err [Error] the error object returned from the request. + * Set to `null` if the request is successful. + * @param data [Object] the de-serialized data returned from + * the request. Set to `null` if a request error occurs. + * @example Sending a request with a callback + * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); + * request.send(function(err, data) { console.log(err, data); }); + * @example Sending a request with no callback (using event handlers) + * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); + * request.on('complete', function(response) { ... }); // register a callback + * request.send(); */ - numRetries: function numRetries() { - if (this.config.maxRetries !== undefined) { - return this.config.maxRetries; - } else { - return this.defaultRetryCount; + send: function send(callback) { + if (callback) { + // append to user agent + this.httpRequest.appendToUserAgent('callback'); + this.on('complete', function (resp) { + callback.call(resp, resp.error, resp.data); + }); } - }, + this.runTo(); - /** - * @api private - */ - retryDelays: function retryDelays(retryCount, err) { - return AWS.util.calculateRetryDelay(retryCount, this.config.retryDelayOptions, err); + return this.response; }, /** - * @api private + * @!method promise() + * Sends the request and returns a 'thenable' promise. + * + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function(data) + * Called if the promise is fulfilled. + * @param data [Object] the de-serialized data returned from the request. + * @callback rejectedCallback function(error) + * Called if the promise is rejected. + * @param error [Error] the error object returned from the request. + * @return [Promise] A promise that represents the state of the request. + * @example Sending a request using promises. + * var request = s3.putObject({Bucket: 'bucket', Key: 'key'}); + * var result = request.promise(); + * result.then(function(data) { ... }, function(error) { ... }); */ - retryableError: function retryableError(error) { - if (this.timeoutError(error)) return true; - if (this.networkingError(error)) return true; - if (this.expiredCredentialsError(error)) return true; - if (this.throttledError(error)) return true; - if (error.statusCode >= 500) return true; - return false; - }, /** * @api private */ - networkingError: function networkingError(error) { - return error.code === 'NetworkingError'; + build: function build(callback) { + return this.runTo('send', callback); }, /** * @api private */ - timeoutError: function timeoutError(error) { - return error.code === 'TimeoutError'; + runTo: function runTo(state, done) { + this._asm.runTo(state, done, this); + return this; }, /** - * @api private + * Aborts a request, emitting the error and complete events. + * + * @!macro nobrowser + * @example Aborting a request after sending + * var params = { + * Bucket: 'bucket', Key: 'key', + * Body: Buffer.alloc(1024 * 1024 * 5) // 5MB payload + * }; + * var request = s3.putObject(params); + * request.send(function (err, data) { + * if (err) console.log("Error:", err.code, err.message); + * else console.log(data); + * }); + * + * // abort request in 1 second + * setTimeout(request.abort.bind(request), 1000); + * + * // prints "Error: RequestAbortedError Request aborted by user" + * @return [AWS.Request] the same request object, for chaining. + * @since v1.4.0 */ - expiredCredentialsError: function expiredCredentialsError(error) { - // TODO : this only handles *one* of the expired credential codes - return (error.code === 'ExpiredTokenException'); - }, + abort: function abort() { + this.removeAllListeners('validateResponse'); + this.removeAllListeners('extractError'); + this.on('validateResponse', function addAbortedError(resp) { + resp.error = AWS.util.error(new Error('Request aborted by user'), { + code: 'RequestAbortedError', retryable: false + }); + }); - /** - * @api private - */ - clockSkewError: function clockSkewError(error) { - switch (error.code) { - case 'RequestTimeTooSkewed': - case 'RequestExpired': - case 'InvalidSignatureException': - case 'SignatureDoesNotMatch': - case 'AuthFailure': - case 'RequestInTheFuture': - return true; - default: return false; + if (this.httpRequest.stream && !this.httpRequest.stream.didCallback) { // abort HTTP stream + this.httpRequest.stream.abort(); + if (this.httpRequest._abortCallback) { + this.httpRequest._abortCallback(); + } else { + this.removeAllListeners('send'); // haven't sent yet, so let's not + } } - }, - /** - * @api private - */ - getSkewCorrectedDate: function getSkewCorrectedDate() { - return new Date(Date.now() + this.config.systemClockOffset); + return this; }, /** - * @api private + * Iterates over each page of results given a pageable request, calling + * the provided callback with each page of data. After all pages have been + * retrieved, the callback is called with `null` data. + * + * @note This operation can generate multiple requests to a service. + * @example Iterating over multiple pages of objects in an S3 bucket + * var pages = 1; + * s3.listObjects().eachPage(function(err, data) { + * if (err) return; + * console.log("Page", pages++); + * console.log(data); + * }); + * @example Iterating over multiple pages with an asynchronous callback + * s3.listObjects(params).eachPage(function(err, data, done) { + * doSomethingAsyncAndOrExpensive(function() { + * // The next page of results isn't fetched until done is called + * done(); + * }); + * }); + * @callback callback function(err, data, [doneCallback]) + * Called with each page of resulting data from the request. If the + * optional `doneCallback` is provided in the function, it must be called + * when the callback is complete. + * + * @param err [Error] an error object, if an error occurred. + * @param data [Object] a single page of response data. If there is no + * more data, this object will be `null`. + * @param doneCallback [Function] an optional done callback. If this + * argument is defined in the function declaration, it should be called + * when the next page is ready to be retrieved. This is useful for + * controlling serial pagination across asynchronous operations. + * @return [Boolean] if the callback returns `false`, pagination will + * stop. + * + * @see AWS.Request.eachItem + * @see AWS.Response.nextPage + * @since v1.4.0 */ - applyClockOffset: function applyClockOffset(newServerTime) { - if (newServerTime) { - this.config.systemClockOffset = newServerTime - Date.now(); - } - }, + eachPage: function eachPage(callback) { + // Make all callbacks async-ish + callback = AWS.util.fn.makeAsync(callback, 3); - /** - * @api private - */ - isClockSkewed: function isClockSkewed(newServerTime) { - if (newServerTime) { - return Math.abs(this.getSkewCorrectedDate().getTime() - newServerTime) >= 300000; - } - }, + function wrappedCallback(response) { + callback.call(response, response.error, response.data, function (result) { + if (result === false) return; - /** - * @api private - */ - throttledError: function throttledError(error) { - // this logic varies between services - if (error.statusCode === 429) return true; - switch (error.code) { - case 'ProvisionedThroughputExceededException': - case 'Throttling': - case 'ThrottlingException': - case 'RequestLimitExceeded': - case 'RequestThrottled': - case 'RequestThrottledException': - case 'TooManyRequestsException': - case 'TransactionInProgressException': //dynamodb - case 'EC2ThrottledException': - return true; - default: - return false; + if (response.hasNextPage()) { + response.nextPage().on('complete', wrappedCallback).send(); + } else { + callback.call(response, null, null, AWS.util.fn.noop); + } + }); } - }, - - /** - * @api private - */ - endpointFromTemplate: function endpointFromTemplate(endpoint) { - if (typeof endpoint !== 'string') return endpoint; - var e = endpoint; - e = e.replace(/\{service\}/g, this.api.endpointPrefix); - e = e.replace(/\{region\}/g, this.config.region); - e = e.replace(/\{scheme\}/g, this.config.sslEnabled ? 'https' : 'http'); - return e; + this.on('complete', wrappedCallback).send(); }, /** - * @api private + * Enumerates over individual items of a request, paging the responses if + * necessary. + * + * @api experimental + * @since v1.4.0 */ - setEndpoint: function setEndpoint(endpoint) { - this.endpoint = new AWS.Endpoint(endpoint, this.config); - }, + eachItem: function eachItem(callback) { + var self = this; + function wrappedCallback(err, data) { + if (err) return callback(err, null); + if (data === null) return callback(null, null); - /** - * @api private - */ - paginationConfig: function paginationConfig(operation, throwException) { - var paginator = this.api.operations[operation].paginator; - if (!paginator) { - if (throwException) { - var e = new Error(); - throw AWS.util.error(e, 'No pagination configuration for ' + operation); - } - return null; + var config = self.service.paginationConfig(self.operation); + var resultKey = config.resultKey; + if (Array.isArray(resultKey)) resultKey = resultKey[0]; + var items = jmespath.search(data, resultKey); + var continueIteration = true; + AWS.util.arrayEach(items, function(item) { + continueIteration = callback(null, item); + if (continueIteration === false) { + return AWS.util.abort; + } + }); + return continueIteration; } - return paginator; - } -}); - -AWS.util.update(AWS.Service, { + this.eachPage(wrappedCallback); + }, /** - * Adds one method for each operation described in the api configuration - * - * @api private + * @return [Boolean] whether the operation can return multiple pages of + * response data. + * @see AWS.Response.eachPage + * @since v1.4.0 */ - defineMethods: function defineMethods(svc) { - AWS.util.each(svc.prototype.api.operations, function iterator(method) { - if (svc.prototype[method]) return; - var operation = svc.prototype.api.operations[method]; - if (operation.authtype === 'none') { - svc.prototype[method] = function (params, callback) { - return this.makeUnauthenticatedRequest(method, params, callback); - }; - } else { - svc.prototype[method] = function (params, callback) { - return this.makeRequest(method, params, callback); - }; - } - }); + isPageable: function isPageable() { + return this.service.paginationConfig(this.operation) ? true : false; }, /** - * Defines a new Service class using a service identifier and list of versions - * including an optional set of features (functions) to apply to the class - * prototype. + * Sends the request and converts the request object into a readable stream + * that can be read from or piped into a writable stream. * - * @param serviceIdentifier [String] the identifier for the service - * @param versions [Array] a list of versions that work with this - * service - * @param features [Object] an object to attach to the prototype - * @return [Class] the service class defined by this function. + * @note The data read from a readable stream contains only + * the raw HTTP body contents. + * @example Manually reading from a stream + * request.createReadStream().on('data', function(data) { + * console.log("Got data:", data.toString()); + * }); + * @example Piping a request body into a file + * var out = fs.createWriteStream('/path/to/outfile.jpg'); + * s3.service.getObject(params).createReadStream().pipe(out); + * @return [Stream] the readable stream object that can be piped + * or read from (by registering 'data' event listeners). + * @!macro nobrowser */ - defineService: function defineService(serviceIdentifier, versions, features) { - AWS.Service._serviceMap[serviceIdentifier] = true; - if (!Array.isArray(versions)) { - features = versions; - versions = []; + createReadStream: function createReadStream() { + var streams = AWS.util.stream; + var req = this; + var stream = null; + + if (AWS.HttpClient.streamsApiVersion === 2) { + stream = new streams.PassThrough(); + process.nextTick(function() { req.send(); }); + } else { + stream = new streams.Stream(); + stream.readable = true; + + stream.sent = false; + stream.on('newListener', function(event) { + if (!stream.sent && event === 'data') { + stream.sent = true; + process.nextTick(function() { req.send(); }); + } + }); } - var svc = inherit(AWS.Service, features || {}); + this.on('error', function(err) { + stream.emit('error', err); + }); - if (typeof serviceIdentifier === 'string') { - AWS.Service.addVersions(svc, versions); + this.on('httpHeaders', function streamHeaders(statusCode, headers, resp) { + if (statusCode < 300) { + req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA); + req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR); + req.on('httpError', function streamHttpError(error) { + resp.error = error; + resp.error.retryable = false; + }); - var identifier = svc.serviceIdentifier || serviceIdentifier; - svc.serviceIdentifier = identifier; - } else { // defineService called with an API - svc.prototype.api = serviceIdentifier; - AWS.Service.defineMethods(svc); - } - AWS.SequentialExecutor.call(this.prototype); - //util.clientSideMonitoring is only available in node - if (!this.prototype.publisher && AWS.util.clientSideMonitoring) { - var Publisher = AWS.util.clientSideMonitoring.Publisher; - var configProvider = AWS.util.clientSideMonitoring.configProvider; - var publisherConfig = configProvider(); - this.prototype.publisher = new Publisher(publisherConfig); - if (publisherConfig.enabled) { - //if csm is enabled in environment, SDK should send all metrics - AWS.Service._clientSideMonitoring = true; - } - } - AWS.SequentialExecutor.call(svc.prototype); - AWS.Service.addDefaultMonitoringListeners(svc.prototype); - return svc; - }, + var shouldCheckContentLength = false; + var expectedLen; + if (req.httpRequest.method !== 'HEAD') { + expectedLen = parseInt(headers['content-length'], 10); + } + if (expectedLen !== undefined && !isNaN(expectedLen) && expectedLen >= 0) { + shouldCheckContentLength = true; + var receivedLen = 0; + } - /** - * @api private - */ - addVersions: function addVersions(svc, versions) { - if (!Array.isArray(versions)) versions = [versions]; + var checkContentLengthAndEmit = function checkContentLengthAndEmit() { + if (shouldCheckContentLength && receivedLen !== expectedLen) { + stream.emit('error', AWS.util.error( + new Error('Stream content length mismatch. Received ' + + receivedLen + ' of ' + expectedLen + ' bytes.'), + { code: 'StreamContentLengthMismatch' } + )); + } else if (AWS.HttpClient.streamsApiVersion === 2) { + stream.end(); + } else { + stream.emit('end'); + } + }; - svc.services = svc.services || {}; - for (var i = 0; i < versions.length; i++) { - if (svc.services[versions[i]] === undefined) { - svc.services[versions[i]] = null; - } - } + var httpStream = resp.httpResponse.createUnbufferedStream(); - svc.apiVersions = Object.keys(svc.services).sort(); - }, + if (AWS.HttpClient.streamsApiVersion === 2) { + if (shouldCheckContentLength) { + var lengthAccumulator = new streams.PassThrough(); + lengthAccumulator._write = function(chunk) { + if (chunk && chunk.length) { + receivedLen += chunk.length; + } + return streams.PassThrough.prototype._write.apply(this, arguments); + }; - /** - * @api private - */ - defineServiceApi: function defineServiceApi(superclass, version, apiConfig) { - var svc = inherit(superclass, { - serviceIdentifier: superclass.serviceIdentifier - }); + lengthAccumulator.on('end', checkContentLengthAndEmit); + stream.on('error', function(err) { + shouldCheckContentLength = false; + httpStream.unpipe(lengthAccumulator); + lengthAccumulator.emit('end'); + lengthAccumulator.end(); + }); + httpStream.pipe(lengthAccumulator).pipe(stream, { end: false }); + } else { + httpStream.pipe(stream); + } + } else { - function setApi(api) { - if (api.isApi) { - svc.prototype.api = api; - } else { - svc.prototype.api = new Api(api, { - serviceIdentifier: superclass.serviceIdentifier - }); - } - } + if (shouldCheckContentLength) { + httpStream.on('data', function(arg) { + if (arg && arg.length) { + receivedLen += arg.length; + } + }); + } - if (typeof version === 'string') { - if (apiConfig) { - setApi(apiConfig); - } else { - try { - setApi(AWS.apiLoader(superclass.serviceIdentifier, version)); - } catch (err) { - throw AWS.util.error(err, { - message: 'Could not find API configuration ' + - superclass.serviceIdentifier + '-' + version + httpStream.on('data', function(arg) { + stream.emit('data', arg); }); + httpStream.on('end', checkContentLengthAndEmit); } + + httpStream.on('error', function(err) { + shouldCheckContentLength = false; + stream.emit('error', err); + }); } - if (!Object.prototype.hasOwnProperty.call(superclass.services, version)) { - superclass.apiVersions = superclass.apiVersions.concat(version).sort(); - } - superclass.services[version] = svc; - } else { - setApi(version); - } + }); - AWS.Service.defineMethods(svc); - return svc; + return stream; }, /** + * @param [Array,Response] args This should be the response object, + * or an array of args to send to the event. * @api private */ - hasService: function(identifier) { - return Object.prototype.hasOwnProperty.call(AWS.Service._serviceMap, identifier); - }, + emitEvent: function emit(eventName, args, done) { + if (typeof args === 'function') { done = args; args = null; } + if (!done) done = function() { }; + if (!args) args = this.eventParameters(eventName, this.response); - /** - * @param attachOn attach default monitoring listeners to object - * - * Each monitoring event should be emitted from service client to service constructor prototype and then - * to global service prototype like bubbling up. These default monitoring events listener will transfer - * the monitoring events to the upper layer. - * @api private - */ - addDefaultMonitoringListeners: function addDefaultMonitoringListeners(attachOn) { - attachOn.addNamedListener('MONITOR_EVENTS_BUBBLE', 'apiCallAttempt', function EVENTS_BUBBLE(event) { - var baseClass = Object.getPrototypeOf(attachOn); - if (baseClass._events) baseClass.emit('apiCallAttempt', [event]); - }); - attachOn.addNamedListener('CALL_EVENTS_BUBBLE', 'apiCall', function CALL_EVENTS_BUBBLE(event) { - var baseClass = Object.getPrototypeOf(attachOn); - if (baseClass._events) baseClass.emit('apiCall', [event]); + var origEmit = AWS.SequentialExecutor.prototype.emit; + origEmit.call(this, eventName, args, function (err) { + if (err) this.response.error = err; + done.call(this, err); }); }, /** * @api private */ - _serviceMap: {} -}); - -AWS.util.mixin(AWS.Service, AWS.SequentialExecutor); - -/** - * @api private - */ -module.exports = AWS.Service; - - -/***/ }), - -/***/ 41103: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); - -AWS.util.update(AWS.APIGateway.prototype, { -/** - * Sets the Accept header to application/json. - * - * @api private - */ - setAcceptHeader: function setAcceptHeader(req) { - var httpRequest = req.httpRequest; - if (!httpRequest.headers.Accept) { - httpRequest.headers['Accept'] = 'application/json'; + eventParameters: function eventParameters(eventName) { + switch (eventName) { + case 'restart': + case 'validate': + case 'sign': + case 'build': + case 'afterValidate': + case 'afterBuild': + return [this]; + case 'error': + return [this.response.error, this.response]; + default: + return [this.response]; } }, /** * @api private */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('build', this.setAcceptHeader); - if (request.operation === 'getExport') { - var params = request.params || {}; - if (params.exportType === 'swagger') { - request.addListener('extractData', AWS.util.convertPayloadToString); - } + presign: function presign(expires, callback) { + if (!callback && typeof expires === 'function') { + callback = expires; + expires = null; } - } -}); - - - -/***/ }), - -/***/ 17578: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); - -// pull in CloudFront signer -__nccwpck_require__(55317); - -AWS.util.update(AWS.CloudFront.prototype, { - - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('extractData', AWS.util.hoistPayloadMember); - } - -}); - - -/***/ }), - -/***/ 10998: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); + return new AWS.Signers.Presign().sign(this.toGet(), expires, callback); + }, -/** - * Constructs a service interface object. Each API operation is exposed as a - * function on service. - * - * ### Sending a Request Using CloudSearchDomain - * - * ```javascript - * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); - * csd.search(params, function (err, data) { - * if (err) console.log(err, err.stack); // an error occurred - * else console.log(data); // successful response - * }); - * ``` - * - * ### Locking the API Version - * - * In order to ensure that the CloudSearchDomain object uses this specific API, - * you can construct the object by passing the `apiVersion` option to the - * constructor: - * - * ```javascript - * var csd = new AWS.CloudSearchDomain({ - * endpoint: 'my.host.tld', - * apiVersion: '2013-01-01' - * }); - * ``` - * - * You can also set the API version globally in `AWS.config.apiVersions` using - * the **cloudsearchdomain** service identifier: - * - * ```javascript - * AWS.config.apiVersions = { - * cloudsearchdomain: '2013-01-01', - * // other service API versions - * }; - * - * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); - * ``` - * - * @note You *must* provide an `endpoint` configuration parameter when - * constructing this service. See {constructor} for more information. - * - * @!method constructor(options = {}) - * Constructs a service object. This object has one method for each - * API operation. - * - * @example Constructing a CloudSearchDomain object - * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); - * @note You *must* provide an `endpoint` when constructing this service. - * @option (see AWS.Config.constructor) - * - * @service cloudsearchdomain - * @version 2013-01-01 - */ -AWS.util.update(AWS.CloudSearchDomain.prototype, { /** * @api private */ - validateService: function validateService() { - if (!this.config.endpoint || this.config.endpoint.indexOf('{') >= 0) { - var msg = 'AWS.CloudSearchDomain requires an explicit ' + - '`endpoint\' configuration option.'; - throw AWS.util.error(new Error(), - {name: 'InvalidEndpoint', message: msg}); - } + isPresigned: function isPresigned() { + return Object.prototype.hasOwnProperty.call(this.httpRequest.headers, 'presigned-expires'); }, /** * @api private */ - setupRequestListeners: function setupRequestListeners(request) { - request.removeListener('validate', - AWS.EventListeners.Core.VALIDATE_CREDENTIALS - ); - request.onAsync('validate', this.validateCredentials); - request.addListener('validate', this.updateRegion); - if (request.operation === 'search') { - request.addListener('build', this.convertGetToPost); - } + toUnauthenticated: function toUnauthenticated() { + this._unAuthenticated = true; + this.removeListener('validate', AWS.EventListeners.Core.VALIDATE_CREDENTIALS); + this.removeListener('sign', AWS.EventListeners.Core.SIGN); + return this; }, /** * @api private */ - validateCredentials: function(req, done) { - if (!req.service.api.signatureVersion) return done(); // none - req.service.config.getCredentials(function(err) { - if (err) { - req.removeListener('sign', AWS.EventListeners.Core.SIGN); - } - done(); - }); + toGet: function toGet() { + if (this.service.api.protocol === 'query' || + this.service.api.protocol === 'ec2') { + this.removeListener('build', this.buildAsGet); + this.addListener('build', this.buildAsGet); + } + return this; }, /** * @api private */ - convertGetToPost: function(request) { - var httpRequest = request.httpRequest; - // convert queries to POST to avoid length restrictions - var path = httpRequest.path.split('?'); - httpRequest.method = 'POST'; - httpRequest.path = path[0]; - httpRequest.body = path[1]; - httpRequest.headers['Content-Length'] = httpRequest.body.length; - httpRequest.headers['Content-Type'] = 'application/x-www-form-urlencoded'; + buildAsGet: function buildAsGet(request) { + request.httpRequest.method = 'GET'; + request.httpRequest.path = request.service.endpoint.path + + '?' + request.httpRequest.body; + request.httpRequest.body = ''; + + // don't need these headers on a GET request + delete request.httpRequest.headers['Content-Length']; + delete request.httpRequest.headers['Content-Type']; }, /** * @api private */ - updateRegion: function updateRegion(request) { - var endpoint = request.httpRequest.endpoint.hostname; - var zones = endpoint.split('.'); - request.httpRequest.region = zones[1] || request.httpRequest.region; + haltHandlersOnError: function haltHandlersOnError() { + this._haltHandlersOnError = true; } - }); - -/***/ }), - -/***/ 32451: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var rdsutil = __nccwpck_require__(8590); - /** -* @api private -*/ -var crossRegionOperations = ['createDBCluster', 'copyDBClusterSnapshot']; - -AWS.util.update(AWS.DocDB.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if ( - crossRegionOperations.indexOf(request.operation) !== -1 && - this.config.params && - this.config.params.SourceRegion && - request.params && - !request.params.SourceRegion - ) { - request.params.SourceRegion = this.config.params.SourceRegion; - } - rdsutil.setupRequestListeners(this, request, crossRegionOperations); - }, -}); - - -/***/ }), - -/***/ 34824: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -__nccwpck_require__(83098); - -AWS.util.update(AWS.DynamoDB.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.service.config.dynamoDbCrc32) { - request.removeListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); - request.addListener('extractData', this.checkCrc32); - request.addListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); - } - }, - - /** - * @api private - */ - checkCrc32: function checkCrc32(resp) { - if (!resp.httpResponse.streaming && !resp.request.service.crc32IsValid(resp)) { - resp.data = null; - resp.error = AWS.util.error(new Error(), { - code: 'CRC32CheckFailed', - message: 'CRC32 integrity check failed', - retryable: true + * @api private + */ +AWS.Request.addPromisesToClass = function addPromisesToClass(PromiseDependency) { + this.prototype.promise = function promise() { + var self = this; + // append to user agent + this.httpRequest.appendToUserAgent('promise'); + return new PromiseDependency(function(resolve, reject) { + self.on('complete', function(resp) { + if (resp.error) { + reject(resp.error); + } else { + // define $response property so that it is not enumerable + // this prevents circular reference errors when stringifying the JSON object + resolve(Object.defineProperty( + resp.data || {}, + '$response', + {value: resp} + )); + } }); - resp.request.haltHandlersOnError(); - throw (resp.error); - } - }, - - /** - * @api private - */ - crc32IsValid: function crc32IsValid(resp) { - var crc = resp.httpResponse.headers['x-amz-crc32']; - if (!crc) return true; // no (valid) CRC32 header - return parseInt(crc, 10) === AWS.util.crypto.crc32(resp.httpResponse.body); - }, + self.runTo(); + }); + }; +}; - /** - * @api private - */ - defaultRetryCount: 10, +/** + * @api private + */ +AWS.Request.deletePromisesFromClass = function deletePromisesFromClass() { + delete this.prototype.promise; +}; - /** - * @api private - */ - retryDelays: function retryDelays(retryCount, err) { - var retryDelayOptions = AWS.util.copy(this.config.retryDelayOptions); +AWS.util.addPromises(AWS.Request); - if (typeof retryDelayOptions.base !== 'number') { - retryDelayOptions.base = 50; // default for dynamodb - } - var delay = AWS.util.calculateRetryDelay(retryCount, retryDelayOptions, err); - return delay; - } -}); +AWS.util.mixin(AWS.Request, AWS.SequentialExecutor); /***/ }), -/***/ 66829: +/***/ 49660: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +/** + * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You + * may not use this file except in compliance with the License. A copy of + * the License is located at + * + * http://aws.amazon.com/apache2.0/ + * + * or in the "license" file accompanying this file. This file is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF + * ANY KIND, either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + */ -AWS.util.update(AWS.EC2.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR); - request.addListener('extractError', this.extractError); +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; +var jmespath = __nccwpck_require__(5769); - if (request.operation === 'copySnapshot') { - request.onAsync('validate', this.buildCopySnapshotPresignedUrl); - } - }, +/** + * @api private + */ +function CHECK_ACCEPTORS(resp) { + var waiter = resp.request._waiter; + var acceptors = waiter.config.acceptors; + var acceptorMatched = false; + var state = 'retry'; - /** - * @api private - */ - buildCopySnapshotPresignedUrl: function buildCopySnapshotPresignedUrl(req, done) { - if (req.params.PresignedUrl || req._subRequest) { - return done(); + acceptors.forEach(function(acceptor) { + if (!acceptorMatched) { + var matcher = waiter.matchers[acceptor.matcher]; + if (matcher && matcher(resp, acceptor.expected, acceptor.argument)) { + acceptorMatched = true; + state = acceptor.state; + } } + }); - req.params = AWS.util.copy(req.params); - req.params.DestinationRegion = req.service.config.region; + if (!acceptorMatched && resp.error) state = 'failure'; - var config = AWS.util.copy(req.service.config); - delete config.endpoint; - config.region = req.params.SourceRegion; - var svc = new req.service.constructor(config); - var newReq = svc[req.operation](req.params); - newReq._subRequest = true; - newReq.presign(function(err, url) { - if (err) done(err); - else { - req.params.PresignedUrl = url; - done(); - } - }); - }, + if (state === 'success') { + waiter.setSuccess(resp); + } else { + waiter.setError(resp, state === 'retry'); + } +} +/** + * @api private + */ +AWS.ResourceWaiter = inherit({ /** - * @api private + * Waits for a given state on a service object + * @param service [Service] the service object to wait on + * @param state [String] the state (defined in waiter configuration) to wait + * for. + * @example Create a waiter for running EC2 instances + * var ec2 = new AWS.EC2; + * var waiter = new AWS.ResourceWaiter(ec2, 'instanceRunning'); */ - extractError: function extractError(resp) { - // EC2 nests the error code and message deeper than other AWS Query services. - var httpResponse = resp.httpResponse; - var data = new AWS.XML.Parser().parse(httpResponse.body.toString() || ''); - if (data.Errors) { - resp.error = AWS.util.error(new Error(), { - code: data.Errors.Error.Code, - message: data.Errors.Error.Message - }); - } else { - resp.error = AWS.util.error(new Error(), { - code: httpResponse.statusCode, - message: null - }); - } - resp.error.requestId = data.RequestID || null; - } -}); + constructor: function constructor(service, state) { + this.service = service; + this.state = state; + this.loadWaiterConfig(this.state); + }, + + service: null, + state: null, -/***/ }), + config: null, -/***/ 52244: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + matchers: { + path: function(resp, expected, argument) { + try { + var result = jmespath.search(resp.data, argument); + } catch (err) { + return false; + } -var AWS = __nccwpck_require__(14741); + return jmespath.strictDeepEqual(result,expected); + }, -AWS.util.update(AWS.EventBridge.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.operation === 'putEvents') { - var params = request.params || {}; - if (params.EndpointId !== undefined) { - throw new AWS.util.error(new Error(), { - code: 'InvalidParameter', - message: 'EndpointId is not supported in current SDK.\n' + - 'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).' - }); + pathAll: function(resp, expected, argument) { + try { + var results = jmespath.search(resp.data, argument); + } catch (err) { + return false; } - } - }, -}); + if (!Array.isArray(results)) results = [results]; + var numResults = results.length; + if (!numResults) return false; + for (var ind = 0 ; ind < numResults; ind++) { + if (!jmespath.strictDeepEqual(results[ind], expected)) { + return false; + } + } + return true; + }, -/***/ }), + pathAny: function(resp, expected, argument) { + try { + var results = jmespath.search(resp.data, argument); + } catch (err) { + return false; + } -/***/ 87583: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + if (!Array.isArray(results)) results = [results]; + var numResults = results.length; + for (var ind = 0 ; ind < numResults; ind++) { + if (jmespath.strictDeepEqual(results[ind], expected)) { + return true; + } + } + return false; + }, -var AWS = __nccwpck_require__(14741); + status: function(resp, expected) { + var statusCode = resp.httpResponse.statusCode; + return (typeof statusCode === 'number') && (statusCode === expected); + }, -AWS.util.update(AWS.Glacier.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (Array.isArray(request._events.validate)) { - request._events.validate.unshift(this.validateAccountId); - } else { - request.on('validate', this.validateAccountId); + error: function(resp, expected) { + if (typeof expected === 'string' && resp.error) { + return expected === resp.error.code; + } + // if expected is not string, can be boolean indicating presence of error + return expected === !!resp.error; } - request.removeListener('afterBuild', - AWS.EventListeners.Core.COMPUTE_SHA256); - request.on('build', this.addGlacierApiVersion); - request.on('build', this.addTreeHashHeaders); }, - /** - * @api private - */ - validateAccountId: function validateAccountId(request) { - if (request.params.accountId !== undefined) return; - request.params = AWS.util.copy(request.params); - request.params.accountId = '-'; - }, + listeners: new AWS.SequentialExecutor().addNamedListeners(function(add) { + add('RETRY_CHECK', 'retry', function(resp) { + var waiter = resp.request._waiter; + if (resp.error && resp.error.code === 'ResourceNotReady') { + resp.error.retryDelay = (waiter.config.delay || 0) * 1000; + } + }); - /** - * @api private - */ - addGlacierApiVersion: function addGlacierApiVersion(request) { - var version = request.service.api.apiVersion; - request.httpRequest.headers['x-amz-glacier-version'] = version; - }, + add('CHECK_OUTPUT', 'extractData', CHECK_ACCEPTORS); + + add('CHECK_ERROR', 'extractError', CHECK_ACCEPTORS); + }), /** - * @api private + * @return [AWS.Request] */ - addTreeHashHeaders: function addTreeHashHeaders(request) { - if (request.params.body === undefined) return; - - var hashes = request.service.computeChecksums(request.params.body); - request.httpRequest.headers['X-Amz-Content-Sha256'] = hashes.linearHash; - - if (!request.httpRequest.headers['x-amz-sha256-tree-hash']) { - request.httpRequest.headers['x-amz-sha256-tree-hash'] = hashes.treeHash; + wait: function wait(params, callback) { + if (typeof params === 'function') { + callback = params; params = undefined; } - }, - /** - * @!group Computing Checksums - */ + if (params && params.$waiter) { + params = AWS.util.copy(params); + if (typeof params.$waiter.delay === 'number') { + this.config.delay = params.$waiter.delay; + } + if (typeof params.$waiter.maxAttempts === 'number') { + this.config.maxAttempts = params.$waiter.maxAttempts; + } + delete params.$waiter; + } - /** - * Computes the SHA-256 linear and tree hash checksums for a given - * block of Buffer data. Pass the tree hash of the computed checksums - * as the checksum input to the {completeMultipartUpload} when performing - * a multi-part upload. - * - * @example Calculate checksum of 5.5MB data chunk - * var glacier = new AWS.Glacier(); - * var data = Buffer.alloc(5.5 * 1024 * 1024); - * data.fill('0'); // fill with zeros - * var results = glacier.computeChecksums(data); - * // Result: { linearHash: '68aff0c5a9...', treeHash: '154e26c78f...' } - * @param data [Buffer, String] data to calculate the checksum for - * @return [map] a map containing - * the linearHash and treeHash properties representing hex based digests - * of the respective checksums. - * @see completeMultipartUpload - */ - computeChecksums: function computeChecksums(data) { - if (!AWS.util.Buffer.isBuffer(data)) data = AWS.util.buffer.toBuffer(data); + var request = this.service.makeRequest(this.config.operation, params); + request._waiter = this; + request.response.maxRetries = this.config.maxAttempts; + request.addListeners(this.listeners); - var mb = 1024 * 1024; - var hashes = []; - var hash = AWS.util.crypto.createHash('sha256'); + if (callback) request.send(callback); + return request; + }, - // build leaf nodes in 1mb chunks - for (var i = 0; i < data.length; i += mb) { - var chunk = data.slice(i, Math.min(i + mb, data.length)); - hash.update(chunk); - hashes.push(AWS.util.crypto.sha256(chunk)); - } + setSuccess: function setSuccess(resp) { + resp.error = null; + resp.data = resp.data || {}; + resp.request.removeAllListeners('extractData'); + }, - return { - linearHash: hash.digest('hex'), - treeHash: this.buildHashTree(hashes) - }; + setError: function setError(resp, retryable) { + resp.data = null; + resp.error = AWS.util.error(resp.error || new Error(), { + code: 'ResourceNotReady', + message: 'Resource is not in the state ' + this.state, + retryable: retryable + }); }, /** + * Loads waiter configuration from API configuration + * * @api private */ - buildHashTree: function buildHashTree(hashes) { - // merge leaf nodes - while (hashes.length > 1) { - var tmpHashes = []; - for (var i = 0; i < hashes.length; i += 2) { - if (hashes[i + 1]) { - var tmpHash = AWS.util.buffer.alloc(64); - tmpHash.write(hashes[i], 0, 32, 'binary'); - tmpHash.write(hashes[i + 1], 32, 32, 'binary'); - tmpHashes.push(AWS.util.crypto.sha256(tmpHash)); - } else { - tmpHashes.push(hashes[i]); - } - } - hashes = tmpHashes; + loadWaiterConfig: function loadWaiterConfig(state) { + if (!this.service.api.waiters[state]) { + throw new AWS.util.error(new Error(), { + code: 'StateNotFoundError', + message: 'State ' + state + ' not found.' + }); } - return AWS.util.crypto.toHex(hashes[0]); + this.config = AWS.util.copy(this.service.api.waiters[state]); } }); /***/ }), -/***/ 9092: +/***/ 10456: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); - -/** - * @api private - */ -var blobPayloadOutputOps = [ - 'deleteThingShadow', - 'getThingShadow', - 'updateThingShadow' -]; +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; +var jmespath = __nccwpck_require__(5769); /** - * Constructs a service interface object. Each API operation is exposed as a - * function on service. + * This class encapsulates the response information + * from a service request operation sent through {AWS.Request}. + * The response object has two main properties for getting information + * back from a request: * - * ### Sending a Request Using IotData + * ## The `data` property * - * ```javascript - * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); - * iotdata.getThingShadow(params, function (err, data) { - * if (err) console.log(err, err.stack); // an error occurred - * else console.log(data); // successful response - * }); + * The `response.data` property contains the serialized object data + * retrieved from the service request. For instance, for an + * Amazon DynamoDB `listTables` method call, the response data might + * look like: + * + * ``` + * > resp.data + * { TableNames: + * [ 'table1', 'table2', ... ] } * ``` * - * ### Locking the API Version + * The `data` property can be null if an error occurs (see below). * - * In order to ensure that the IotData object uses this specific API, - * you can construct the object by passing the `apiVersion` option to the - * constructor: + * ## The `error` property * - * ```javascript - * var iotdata = new AWS.IotData({ - * endpoint: 'my.host.tld', - * apiVersion: '2015-05-28' - * }); + * In the event of a service error (or transfer error), the + * `response.error` property will be filled with the given + * error data in the form: + * + * ``` + * { code: 'SHORT_UNIQUE_ERROR_CODE', + * message: 'Some human readable error message' } * ``` * - * You can also set the API version globally in `AWS.config.apiVersions` using - * the **iotdata** service identifier: + * In the case of an error, the `data` property will be `null`. + * Note that if you handle events that can be in a failure state, + * you should always check whether `response.error` is set + * before attempting to access the `response.data` property. * - * ```javascript - * AWS.config.apiVersions = { - * iotdata: '2015-05-28', - * // other service API versions - * }; + * @!attribute data + * @readonly + * @!group Data Properties + * @note Inside of a {AWS.Request~httpData} event, this + * property contains a single raw packet instead of the + * full de-serialized service response. + * @return [Object] the de-serialized response data + * from the service. * - * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); - * ``` + * @!attribute error + * An structure containing information about a service + * or networking error. + * @readonly + * @!group Data Properties + * @note This attribute is only filled if a service or + * networking error occurs. + * @return [Error] + * * code [String] a unique short code representing the + * error that was emitted. + * * message [String] a longer human readable error message + * * retryable [Boolean] whether the error message is + * retryable. + * * statusCode [Numeric] in the case of a request that reached the service, + * this value contains the response status code. + * * time [Date] the date time object when the error occurred. + * * hostname [String] set when a networking error occurs to easily + * identify the endpoint of the request. + * * region [String] set when a networking error occurs to easily + * identify the region of the request. * - * @note You *must* provide an `endpoint` configuration parameter when - * constructing this service. See {constructor} for more information. + * @!attribute requestId + * @readonly + * @!group Data Properties + * @return [String] the unique request ID associated with the response. + * Log this value when debugging requests for AWS support. * - * @!method constructor(options = {}) - * Constructs a service object. This object has one method for each - * API operation. + * @!attribute retryCount + * @readonly + * @!group Operation Properties + * @return [Integer] the number of retries that were + * attempted before the request was completed. * - * @example Constructing a IotData object - * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); - * @note You *must* provide an `endpoint` when constructing this service. - * @option (see AWS.Config.constructor) + * @!attribute redirectCount + * @readonly + * @!group Operation Properties + * @return [Integer] the number of redirects that were + * followed before the request was completed. * - * @service iotdata - * @version 2015-05-28 + * @!attribute httpResponse + * @readonly + * @!group HTTP Properties + * @return [AWS.HttpResponse] the raw HTTP response object + * containing the response headers and body information + * from the server. + * + * @see AWS.Request */ -AWS.util.update(AWS.IotData.prototype, { - /** - * @api private - */ - validateService: function validateService() { - if (!this.config.endpoint || this.config.endpoint.indexOf('{') >= 0) { - var msg = 'AWS.IotData requires an explicit ' + - '`endpoint\' configuration option.'; - throw AWS.util.error(new Error(), - {name: 'InvalidEndpoint', message: msg}); - } - }, - - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('validateResponse', this.validateResponseBody); - if (blobPayloadOutputOps.indexOf(request.operation) > -1) { - request.addListener('extractData', AWS.util.convertPayloadToString); - } - }, - - /** - * @api private - */ - validateResponseBody: function validateResponseBody(resp) { - var body = resp.httpResponse.body.toString() || '{}'; - var bodyCheck = body.trim(); - if (!bodyCheck || bodyCheck.charAt(0) !== '{') { - resp.httpResponse.body = ''; - } - } - -}); - - -/***/ }), - -/***/ 19620: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); +AWS.Response = inherit({ -AWS.util.update(AWS.Lambda.prototype, { /** * @api private */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.operation === 'invoke') { - request.addListener('extractData', AWS.util.convertPayloadToString); + constructor: function Response(request) { + this.request = request; + this.data = null; + this.error = null; + this.retryCount = 0; + this.redirectCount = 0; + this.httpResponse = new AWS.HttpResponse(); + if (request) { + this.maxRetries = request.service.numRetries(); + this.maxRedirects = request.service.config.maxRedirects; } - } -}); - - + }, -/***/ }), + /** + * Creates a new request for the next page of response data, calling the + * callback with the page data if a callback is provided. + * + * @callback callback function(err, data) + * Called when a page of data is returned from the next request. + * + * @param err [Error] an error object, if an error occurred in the request + * @param data [Object] the next page of data, or null, if there are no + * more pages left. + * @return [AWS.Request] the request object for the next page of data + * @return [null] if no callback is provided and there are no pages left + * to retrieve. + * @since v1.4.0 + */ + nextPage: function nextPage(callback) { + var config; + var service = this.request.service; + var operation = this.request.operation; + try { + config = service.paginationConfig(operation, true); + } catch (e) { this.error = e; } -/***/ 8672: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + if (!this.hasNextPage()) { + if (callback) callback(this.error, null); + else if (this.error) throw this.error; + return null; + } -var AWS = __nccwpck_require__(14741); + var params = AWS.util.copy(this.request.params); + if (!this.nextPageTokens) { + return callback ? callback(null, null) : null; + } else { + var inputTokens = config.inputToken; + if (typeof inputTokens === 'string') inputTokens = [inputTokens]; + for (var i = 0; i < inputTokens.length; i++) { + params[inputTokens[i]] = this.nextPageTokens[i]; + } + return service.makeRequest(this.request.operation, params, callback); + } + }, -AWS.util.update(AWS.MachineLearning.prototype, { /** - * @api private + * @return [Boolean] whether more pages of data can be returned by further + * requests + * @since v1.4.0 */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.operation === 'predict') { - request.addListener('build', this.buildEndpoint); - } + hasNextPage: function hasNextPage() { + this.cacheNextPageTokens(); + if (this.nextPageTokens) return true; + if (this.nextPageTokens === undefined) return undefined; + else return false; }, /** - * Updates request endpoint from PredictEndpoint * @api private */ - buildEndpoint: function buildEndpoint(request) { - var url = request.params.PredictEndpoint; - if (url) { - request.httpRequest.endpoint = new AWS.Endpoint(url); - } - } - -}); - - -/***/ }), - -/***/ 66361: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var rdsutil = __nccwpck_require__(8590); + cacheNextPageTokens: function cacheNextPageTokens() { + if (Object.prototype.hasOwnProperty.call(this, 'nextPageTokens')) return this.nextPageTokens; + this.nextPageTokens = undefined; -/** -* @api private -*/ -var crossRegionOperations = ['createDBCluster', 'copyDBClusterSnapshot']; + var config = this.request.service.paginationConfig(this.request.operation); + if (!config) return this.nextPageTokens; -AWS.util.update(AWS.Neptune.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if ( - crossRegionOperations.indexOf(request.operation) !== -1 && - this.config.params && - this.config.params.SourceRegion && - request.params && - !request.params.SourceRegion - ) { - request.params.SourceRegion = this.config.params.SourceRegion; + this.nextPageTokens = null; + if (config.moreResults) { + if (!jmespath.search(this.data, config.moreResults)) { + return this.nextPageTokens; + } } - rdsutil.setupRequestListeners(this, request, crossRegionOperations); - }, -}); - - -/***/ }), - -/***/ 60533: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(96338); - - -/***/ }), - -/***/ 56770: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var rdsutil = __nccwpck_require__(8590); -__nccwpck_require__(76278); - /** - * @api private - */ - var crossRegionOperations = ['copyDBSnapshot', 'createDBInstanceReadReplica', 'createDBCluster', 'copyDBClusterSnapshot', 'startDBInstanceAutomatedBackupsReplication']; - - AWS.util.update(AWS.RDS.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - rdsutil.setupRequestListeners(this, request, crossRegionOperations); - }, - }); - - -/***/ }), - -/***/ 66307: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); + var exprs = config.outputToken; + if (typeof exprs === 'string') exprs = [exprs]; + AWS.util.arrayEach.call(this, exprs, function (expr) { + var output = jmespath.search(this.data, expr); + if (output) { + this.nextPageTokens = this.nextPageTokens || []; + this.nextPageTokens.push(output); + } + }); -AWS.util.update(AWS.RDSDataService.prototype, { - /** - * @return [Boolean] whether the error can be retried - * @api private - */ - retryableError: function retryableError(error) { - if (error.code === 'BadRequestException' && - error.message && - error.message.match(/^Communications link failure/) && - error.statusCode === 400) { - return true; - } else { - var _super = AWS.Service.prototype.retryableError; - return _super.call(this, error); - } + return this.nextPageTokens; } + }); /***/ }), -/***/ 8590: +/***/ 98215: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +var AWS = __nccwpck_require__(53832); +var byteLength = AWS.util.string.byteLength; +var Buffer = AWS.util.Buffer; -var rdsutil = { +/** + * The managed uploader allows for easy and efficient uploading of buffers, + * blobs, or streams, using a configurable amount of concurrency to perform + * multipart uploads where possible. This abstraction also enables uploading + * streams of unknown size due to the use of multipart uploads. + * + * To construct a managed upload object, see the {constructor} function. + * + * ## Tracking upload progress + * + * The managed upload object can also track progress by attaching an + * 'httpUploadProgress' listener to the upload manager. This event is similar + * to {AWS.Request~httpUploadProgress} but groups all concurrent upload progress + * into a single event. See {AWS.S3.ManagedUpload~httpUploadProgress} for more + * information. + * + * ## Handling Multipart Cleanup + * + * By default, this class will automatically clean up any multipart uploads + * when an individual part upload fails. This behavior can be disabled in order + * to manually handle failures by setting the `leavePartsOnError` configuration + * option to `true` when initializing the upload object. + * + * @!event httpUploadProgress(progress) + * Triggered when the uploader has uploaded more data. + * @note The `total` property may not be set if the stream being uploaded has + * not yet finished chunking. In this case the `total` will be undefined + * until the total stream size is known. + * @note This event will not be emitted in Node.js 0.8.x. + * @param progress [map] An object containing the `loaded` and `total` bytes + * of the request and the `key` of the S3 object. Note that `total` may be undefined until the payload + * size is known. + * @context (see AWS.Request~send) + */ +AWS.S3.ManagedUpload = AWS.util.inherit({ /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(service, request, crossRegionOperations) { - if (crossRegionOperations.indexOf(request.operation) !== -1 && - request.params.SourceRegion) { - request.params = AWS.util.copy(request.params); - if (request.params.PreSignedUrl || - request.params.SourceRegion === service.config.region) { - delete request.params.SourceRegion; - } else { - var doesParamValidation = !!service.config.paramValidation; - // remove the validate parameters listener so we can re-add it after we build the URL - if (doesParamValidation) { - request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - } - request.onAsync('validate', rdsutil.buildCrossRegionPresignedUrl); - if (doesParamValidation) { - request.addListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - } - } - } + * Creates a managed upload object with a set of configuration options. + * + * @note A "Body" parameter is required to be set prior to calling {send}. + * @note In Node.js, sending "Body" as {https://nodejs.org/dist/latest/docs/api/stream.html#stream_object_mode object-mode stream} + * may result in upload hangs. Using buffer stream is preferable. + * @option options params [map] a map of parameters to pass to the upload + * requests. The "Body" parameter is required to be specified either on + * the service or in the params option. + * @note ContentMD5 should not be provided when using the managed upload object. + * Instead, setting "computeChecksums" to true will enable automatic ContentMD5 generation + * by the managed upload object. + * @option options queueSize [Number] (4) the size of the concurrent queue + * manager to upload parts in parallel. Set to 1 for synchronous uploading + * of parts. Note that the uploader will buffer at most queueSize * partSize + * bytes into memory at any given time. + * @option options partSize [Number] (5mb) the size in bytes for each + * individual part to be uploaded. Adjust the part size to ensure the number + * of parts does not exceed {maxTotalParts}. See {minPartSize} for the + * minimum allowed part size. + * @option options leavePartsOnError [Boolean] (false) whether to abort the + * multipart upload if an error occurs. Set to true if you want to handle + * failures manually. + * @option options service [AWS.S3] an optional S3 service object to use for + * requests. This object might have bound parameters used by the uploader. + * @option options tags [Array] The tags to apply to the uploaded object. + * Each tag should have a `Key` and `Value` keys. + * @example Creating a default uploader for a stream object + * var upload = new AWS.S3.ManagedUpload({ + * params: {Bucket: 'bucket', Key: 'key', Body: stream} + * }); + * @example Creating an uploader with concurrency of 1 and partSize of 10mb + * var upload = new AWS.S3.ManagedUpload({ + * partSize: 10 * 1024 * 1024, queueSize: 1, + * params: {Bucket: 'bucket', Key: 'key', Body: stream} + * }); + * @example Creating an uploader with tags + * var upload = new AWS.S3.ManagedUpload({ + * params: {Bucket: 'bucket', Key: 'key', Body: stream}, + * tags: [{Key: 'tag1', Value: 'value1'}, {Key: 'tag2', Value: 'value2'}] + * }); + * @see send + */ + constructor: function ManagedUpload(options) { + var self = this; + AWS.SequentialExecutor.call(self); + self.body = null; + self.sliceFn = null; + self.callback = null; + self.parts = {}; + self.completeInfo = []; + self.fillQueue = function() { + self.callback(new Error('Unsupported body payload ' + typeof self.body)); + }; + + self.configure(options); }, /** * @api private */ - buildCrossRegionPresignedUrl: function buildCrossRegionPresignedUrl(req, done) { - var config = AWS.util.copy(req.service.config); - config.region = req.params.SourceRegion; - delete req.params.SourceRegion; - delete config.endpoint; - // relevant params for the operation will already be in req.params - delete config.params; - config.signatureVersion = 'v4'; - var destinationRegion = req.service.config.region; + configure: function configure(options) { + options = options || {}; + this.partSize = this.minPartSize; - var svc = new req.service.constructor(config); - var newReq = svc[req.operation](AWS.util.copy(req.params)); - newReq.on('build', function addDestinationRegionParam(request) { - var httpRequest = request.httpRequest; - httpRequest.params.DestinationRegion = destinationRegion; - httpRequest.body = AWS.util.queryParamsToString(httpRequest.params); - }); - newReq.presign(function(err, url) { - if (err) done(err); - else { - req.params.PreSignedUrl = url; - done(); + if (options.queueSize) this.queueSize = options.queueSize; + if (options.partSize) this.partSize = options.partSize; + if (options.leavePartsOnError) this.leavePartsOnError = true; + if (options.tags) { + if (!Array.isArray(options.tags)) { + throw new Error('Tags must be specified as an array; ' + + typeof options.tags + ' provided.'); } - }); - } -}; - -/** - * @api private - */ -module.exports = rdsutil; - - -/***/ }), - -/***/ 47835: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + this.tags = options.tags; + } -var AWS = __nccwpck_require__(14741); + if (this.partSize < this.minPartSize) { + throw new Error('partSize must be greater than ' + + this.minPartSize); + } -AWS.util.update(AWS.Route53.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.on('build', this.sanitizeUrl); + this.service = options.service; + this.bindServiceObject(options.params); + this.validateBody(); + this.adjustTotalBytes(); }, /** * @api private */ - sanitizeUrl: function sanitizeUrl(request) { - var path = request.httpRequest.path; - request.httpRequest.path = path.replace(/\/%2F\w+%2F/, '/'); - }, + leavePartsOnError: false, /** - * @return [Boolean] whether the error can be retried * @api private */ - retryableError: function retryableError(error) { - if (error.code === 'PriorRequestNotComplete' && - error.statusCode === 400) { - return true; - } else { - var _super = AWS.Service.prototype.retryableError; - return _super.call(this, error); - } - } -}); - - -/***/ }), - -/***/ 89880: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var v4Credentials = __nccwpck_require__(44178); -var resolveRegionalEndpointsFlag = __nccwpck_require__(4872); -var s3util = __nccwpck_require__(50280); -var regionUtil = __nccwpck_require__(63698); - -// Pull in managed upload extension -__nccwpck_require__(53664); - -/** - * @api private - */ -var operationsWith200StatusCodeError = { - 'completeMultipartUpload': true, - 'copyObject': true, - 'uploadPartCopy': true -}; - -/** - * @api private - */ - var regionRedirectErrorCodes = [ - 'AuthorizationHeaderMalformed', // non-head operations on virtual-hosted global bucket endpoints - 'BadRequest', // head operations on virtual-hosted global bucket endpoints - 'PermanentRedirect', // non-head operations on path-style or regional endpoints - 301 // head operations on path-style or regional endpoints - ]; - -var OBJECT_LAMBDA_SERVICE = 's3-object-lambda'; + queueSize: 4, -AWS.util.update(AWS.S3.prototype, { /** * @api private */ - getSignatureVersion: function getSignatureVersion(request) { - var defaultApiVersion = this.api.signatureVersion; - var userDefinedVersion = this._originalConfig ? this._originalConfig.signatureVersion : null; - var regionDefinedVersion = this.config.signatureVersion; - var isPresigned = request ? request.isPresigned() : false; - /* - 1) User defined version specified: - a) always return user defined version - 2) No user defined version specified: - a) If not using presigned urls, default to V4 - b) If using presigned urls, default to lowest version the region supports - */ - if (userDefinedVersion) { - userDefinedVersion = userDefinedVersion === 'v2' ? 's3' : userDefinedVersion; - return userDefinedVersion; - } - if (isPresigned !== true) { - defaultApiVersion = 'v4'; - } else if (regionDefinedVersion) { - defaultApiVersion = regionDefinedVersion; - } - return defaultApiVersion; - }, + partSize: null, /** - * @api private + * @readonly + * @return [Number] the minimum number of bytes for an individual part + * upload. */ - getSigningName: function getSigningName(req) { - if (req && req.operation === 'writeGetObjectResponse') { - return OBJECT_LAMBDA_SERVICE; - } - - var _super = AWS.Service.prototype.getSigningName; - return (req && req._parsedArn && req._parsedArn.service) - ? req._parsedArn.service - : _super.call(this); - }, + minPartSize: 1024 * 1024 * 5, /** - * @api private + * @readonly + * @return [Number] the maximum allowed number of parts in a multipart upload. */ - getSignerClass: function getSignerClass(request) { - var signatureVersion = this.getSignatureVersion(request); - return AWS.Signers.RequestSigner.getVersion(signatureVersion); - }, + maxTotalParts: 10000, /** - * @api private + * Initiates the managed upload for the payload. + * + * @callback callback function(err, data) + * @param err [Error] an error or null if no error occurred. + * @param data [map] The response data from the successful upload: + * * `Location` (String) the URL of the uploaded object + * * `ETag` (String) the ETag of the uploaded object + * * `Bucket` (String) the bucket to which the object was uploaded + * * `Key` (String) the key to which the object was uploaded + * @example Sending a managed upload object + * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; + * var upload = new AWS.S3.ManagedUpload({params: params}); + * upload.send(function(err, data) { + * console.log(err, data); + * }); */ - validateService: function validateService() { - var msg; - var messages = []; + send: function(callback) { + var self = this; + self.failed = false; + self.callback = callback || function(err) { if (err) throw err; }; - // default to us-east-1 when no region is provided - if (!this.config.region) this.config.region = 'us-east-1'; + var runFill = true; + if (self.sliceFn) { + self.fillQueue = self.fillBuffer; + } else if (AWS.util.isNode()) { + var Stream = AWS.util.stream.Stream; + if (self.body instanceof Stream) { + runFill = false; + self.fillQueue = self.fillStream; + self.partBuffers = []; + self.body. + on('error', function(err) { self.cleanup(err); }). + on('readable', function() { self.fillQueue(); }). + on('end', function() { + self.isDoneChunking = true; + self.numParts = self.totalPartNumbers; + self.fillQueue.call(self); - if (!this.config.endpoint && this.config.s3BucketEndpoint) { - messages.push('An endpoint must be provided when configuring ' + - '`s3BucketEndpoint` to true.'); - } - if (messages.length === 1) { - msg = messages[0]; - } else if (messages.length > 1) { - msg = 'Multiple configuration errors:\n' + messages.join('\n'); - } - if (msg) { - throw AWS.util.error(new Error(), - {name: 'InvalidEndpoint', message: msg}); + if (self.isDoneChunking && self.totalPartNumbers >= 1 && self.doneParts === self.numParts) { + self.finishMultiPart(); + } + }); + } } + + if (runFill) self.fillQueue.call(self); }, /** - * @api private + * @!method promise() + * Returns a 'thenable' promise. + * + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function(data) + * Called if the promise is fulfilled. + * @param data [map] The response data from the successful upload: + * `Location` (String) the URL of the uploaded object + * `ETag` (String) the ETag of the uploaded object + * `Bucket` (String) the bucket to which the object was uploaded + * `Key` (String) the key to which the object was uploaded + * @callback rejectedCallback function(err) + * Called if the promise is rejected. + * @param err [Error] an error or null if no error occurred. + * @return [Promise] A promise that represents the state of the upload request. + * @example Sending an upload request using promises. + * var upload = s3.upload({Bucket: 'bucket', Key: 'key', Body: stream}); + * var promise = upload.promise(); + * promise.then(function(data) { ... }, function(err) { ... }); */ - shouldDisableBodySigning: function shouldDisableBodySigning(request) { - var signerClass = this.getSignerClass(); - if (this.config.s3DisableBodySigning === true && signerClass === AWS.Signers.V4 - && request.httpRequest.endpoint.protocol === 'https:') { - return true; + + /** + * Aborts a managed upload, including all concurrent upload requests. + * @note By default, calling this function will cleanup a multipart upload + * if one was created. To leave the multipart upload around after aborting + * a request, configure `leavePartsOnError` to `true` in the {constructor}. + * @note Calling {abort} in the browser environment will not abort any requests + * that are already in flight. If a multipart upload was created, any parts + * not yet uploaded will not be sent, and the multipart upload will be cleaned up. + * @example Aborting an upload + * var params = { + * Bucket: 'bucket', Key: 'key', + * Body: Buffer.alloc(1024 * 1024 * 25) // 25MB payload + * }; + * var upload = s3.upload(params); + * upload.send(function (err, data) { + * if (err) console.log("Error:", err.code, err.message); + * else console.log(data); + * }); + * + * // abort request in 1 second + * setTimeout(upload.abort.bind(upload), 1000); + */ + abort: function() { + var self = this; + //abort putObject request + if (self.isDoneChunking === true && self.totalPartNumbers === 1 && self.singlePart) { + self.singlePart.abort(); + } else { + self.cleanup(AWS.util.error(new Error('Request aborted by user'), { + code: 'RequestAbortedError', retryable: false + })); } - return false; }, /** * @api private */ - setupRequestListeners: function setupRequestListeners(request) { - var prependListener = true; - request.addListener('validate', this.validateScheme); - request.addListener('validate', this.validateBucketName, prependListener); - request.addListener('validate', this.optInUsEast1RegionalEndpoint, prependListener); - - request.removeListener('validate', - AWS.EventListeners.Core.VALIDATE_REGION); - request.addListener('build', this.addContentType); - request.addListener('build', this.computeContentMd5); - request.addListener('build', this.computeSseCustomerKeyMd5); - request.addListener('build', this.populateURI); - request.addListener('afterBuild', this.addExpect100Continue); - request.addListener('extractError', this.extractError); - request.addListener('extractData', AWS.util.hoistPayloadMember); - request.addListener('extractData', this.extractData); - request.addListener('extractData', this.extractErrorFrom200Response); - request.addListener('beforePresign', this.prepareSignedUrl); - if (this.shouldDisableBodySigning(request)) { - request.removeListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); - request.addListener('afterBuild', this.disableBodySigning); - } - //deal with ARNs supplied to Bucket - if (request.operation !== 'createBucket' && s3util.isArnInParam(request, 'Bucket')) { - // avoid duplicate parsing in the future - request._parsedArn = AWS.util.ARN.parse(request.params.Bucket); - - request.removeListener('validate', this.validateBucketName); - request.removeListener('build', this.populateURI); - if (request._parsedArn.service === 's3') { - request.addListener('validate', s3util.validateS3AccessPointArn); - request.addListener('validate', this.validateArnResourceType); - request.addListener('validate', this.validateArnRegion); - } else if (request._parsedArn.service === 's3-outposts') { - request.addListener('validate', s3util.validateOutpostsAccessPointArn); - request.addListener('validate', s3util.validateOutpostsArn); - request.addListener('validate', s3util.validateArnRegion); - } - request.addListener('validate', s3util.validateArnAccount); - request.addListener('validate', s3util.validateArnService); - request.addListener('build', this.populateUriFromAccessPointArn); - request.addListener('build', s3util.validatePopulateUriFromArn); - return; - } - //listeners regarding region inference - request.addListener('validate', this.validateBucketEndpoint); - request.addListener('validate', this.correctBucketRegionFromCache); - request.onAsync('extractError', this.requestBucketRegion); - if (AWS.util.isBrowser()) { - request.onAsync('retry', this.reqRegionForNetworkingError); + validateBody: function validateBody() { + var self = this; + self.body = self.service.config.params.Body; + if (typeof self.body === 'string') { + self.body = AWS.util.buffer.toBuffer(self.body); + } else if (!self.body) { + throw new Error('params.Body is required'); } + self.sliceFn = AWS.util.arraySliceFn(self.body); }, /** * @api private */ - validateScheme: function(req) { - var params = req.params, - scheme = req.httpRequest.endpoint.protocol, - sensitive = params.SSECustomerKey || params.CopySourceSSECustomerKey; - if (sensitive && scheme !== 'https:') { - var msg = 'Cannot send SSE keys over HTTP. Set \'sslEnabled\'' + - 'to \'true\' in your configuration'; - throw AWS.util.error(new Error(), - { code: 'ConfigError', message: msg }); + bindServiceObject: function bindServiceObject(params) { + params = params || {}; + var self = this; + // bind parameters to new service object + if (!self.service) { + self.service = new AWS.S3({params: params}); + } else { + // Create a new S3 client from the supplied client's constructor. + var service = self.service; + var config = AWS.util.copy(service.config); + config.signatureVersion = service.getSignatureVersion(); + self.service = new service.constructor.__super__(config); + self.service.config.params = + AWS.util.merge(self.service.config.params || {}, params); + Object.defineProperty(self.service, '_originalConfig', { + get: function() { return service._originalConfig; }, + enumerable: false, + configurable: true + }); } }, /** * @api private */ - validateBucketEndpoint: function(req) { - if (!req.params.Bucket && req.service.config.s3BucketEndpoint) { - var msg = 'Cannot send requests to root API with `s3BucketEndpoint` set.'; - throw AWS.util.error(new Error(), - { code: 'ConfigError', message: msg }); + adjustTotalBytes: function adjustTotalBytes() { + var self = this; + try { // try to get totalBytes + self.totalBytes = byteLength(self.body); + } catch (e) { } + + // try to adjust partSize if we know payload length + if (self.totalBytes) { + var newPartSize = Math.ceil(self.totalBytes / self.maxTotalParts); + if (newPartSize > self.partSize) self.partSize = newPartSize; + } else { + self.totalBytes = undefined; } }, /** * @api private */ - validateArnRegion: function validateArnRegion(req) { - s3util.validateArnRegion(req, { allowFipsEndpoint: true }); - }, - - /** - * Validate resource-type supplied in S3 ARN - */ - validateArnResourceType: function validateArnResourceType(req) { - var resource = req._parsedArn.resource; - - if ( - resource.indexOf('accesspoint:') !== 0 && - resource.indexOf('accesspoint/') !== 0 - ) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'ARN resource should begin with \'accesspoint/\'' - }); - } - }, + isDoneChunking: false, /** * @api private */ - validateBucketName: function validateBucketName(req) { - var service = req.service; - var signatureVersion = service.getSignatureVersion(req); - var bucket = req.params && req.params.Bucket; - var key = req.params && req.params.Key; - var slashIndex = bucket && bucket.indexOf('/'); - if (bucket && slashIndex >= 0) { - if (typeof key === 'string' && slashIndex > 0) { - req.params = AWS.util.copy(req.params); - // Need to include trailing slash to match sigv2 behavior - var prefix = bucket.substr(slashIndex + 1) || ''; - req.params.Key = prefix + '/' + key; - req.params.Bucket = bucket.substr(0, slashIndex); - } else if (signatureVersion === 'v4') { - var msg = 'Bucket names cannot contain forward slashes. Bucket: ' + bucket; - throw AWS.util.error(new Error(), - { code: 'InvalidBucket', message: msg }); - } - } - }, + partPos: 0, /** * @api private */ - isValidAccelerateOperation: function isValidAccelerateOperation(operation) { - var invalidOperations = [ - 'createBucket', - 'deleteBucket', - 'listBuckets' - ]; - return invalidOperations.indexOf(operation) === -1; - }, + totalChunkedBytes: 0, /** - * When us-east-1 region endpoint configuration is set, in stead of sending request to - * global endpoint(e.g. 's3.amazonaws.com'), we will send request to - * 's3.us-east-1.amazonaws.com'. * @api private */ - optInUsEast1RegionalEndpoint: function optInUsEast1RegionalEndpoint(req) { - var service = req.service; - var config = service.config; - config.s3UsEast1RegionalEndpoint = resolveRegionalEndpointsFlag(service._originalConfig, { - env: 'AWS_S3_US_EAST_1_REGIONAL_ENDPOINT', - sharedConfig: 's3_us_east_1_regional_endpoint', - clientConfig: 's3UsEast1RegionalEndpoint' - }); - if ( - !(service._originalConfig || {}).endpoint && - req.httpRequest.region === 'us-east-1' && - config.s3UsEast1RegionalEndpoint === 'regional' && - req.httpRequest.endpoint.hostname.indexOf('s3.amazonaws.com') >= 0 - ) { - var insertPoint = config.endpoint.indexOf('.amazonaws.com'); - regionalEndpoint = config.endpoint.substring(0, insertPoint) + - '.us-east-1' + config.endpoint.substring(insertPoint); - req.httpRequest.updateEndpoint(regionalEndpoint); - } - }, + totalUploadedBytes: 0, /** - * S3 prefers dns-compatible bucket names to be moved from the uri path - * to the hostname as a sub-domain. This is not possible, even for dns-compat - * buckets when using SSL and the bucket name contains a dot ('.'). The - * ssl wildcard certificate is only 1-level deep. - * * @api private */ - populateURI: function populateURI(req) { - var httpRequest = req.httpRequest; - var b = req.params.Bucket; - var service = req.service; - var endpoint = httpRequest.endpoint; - if (b) { - if (!service.pathStyleBucketName(b)) { - if (service.config.useAccelerateEndpoint && service.isValidAccelerateOperation(req.operation)) { - if (service.config.useDualstackEndpoint) { - endpoint.hostname = b + '.s3-accelerate.dualstack.amazonaws.com'; - } else { - endpoint.hostname = b + '.s3-accelerate.amazonaws.com'; - } - } else if (!service.config.s3BucketEndpoint) { - endpoint.hostname = - b + '.' + endpoint.hostname; - } - - var port = endpoint.port; - if (port !== 80 && port !== 443) { - endpoint.host = endpoint.hostname + ':' + - endpoint.port; - } else { - endpoint.host = endpoint.hostname; - } - - httpRequest.virtualHostedBucket = b; // needed for signing the request - service.removeVirtualHostedBucketFromPath(req); - } - } - }, + totalBytes: undefined, /** - * Takes the bucket name out of the path if bucket is virtual-hosted - * * @api private */ - removeVirtualHostedBucketFromPath: function removeVirtualHostedBucketFromPath(req) { - var httpRequest = req.httpRequest; - var bucket = httpRequest.virtualHostedBucket; - if (bucket && httpRequest.path) { - if (req.params && req.params.Key) { - var encodedS3Key = '/' + AWS.util.uriEscapePath(req.params.Key); - if (httpRequest.path.indexOf(encodedS3Key) === 0 && (httpRequest.path.length === encodedS3Key.length || httpRequest.path[encodedS3Key.length] === '?')) { - //path only contains key or path contains only key and querystring - return; - } - } - httpRequest.path = httpRequest.path.replace(new RegExp('/' + bucket), ''); - if (httpRequest.path[0] !== '/') { - httpRequest.path = '/' + httpRequest.path; - } - } - }, + numParts: 0, /** - * When user supply an access point ARN in the Bucket parameter, we need to - * populate the URI according to the ARN. + * @api private */ - populateUriFromAccessPointArn: function populateUriFromAccessPointArn(req) { - var accessPointArn = req._parsedArn; - - var isOutpostArn = accessPointArn.service === 's3-outposts'; - var isObjectLambdaArn = accessPointArn.service === 's3-object-lambda'; - - var outpostsSuffix = isOutpostArn ? '.' + accessPointArn.outpostId: ''; - var serviceName = isOutpostArn ? 's3-outposts': 's3-accesspoint'; - var fipsSuffix = !isOutpostArn && req.service.config.useFipsEndpoint ? '-fips': ''; - var dualStackSuffix = !isOutpostArn && - req.service.config.useDualstackEndpoint ? '.dualstack' : ''; - - var endpoint = req.httpRequest.endpoint; - var dnsSuffix = regionUtil.getEndpointSuffix(accessPointArn.region); - var useArnRegion = req.service.config.s3UseArnRegion; - - endpoint.hostname = [ - accessPointArn.accessPoint + '-' + accessPointArn.accountId + outpostsSuffix, - serviceName + fipsSuffix + dualStackSuffix, - useArnRegion ? accessPointArn.region : req.service.config.region, - dnsSuffix - ].join('.'); - - if (isObjectLambdaArn) { - // should be in the format: "accesspoint/${accesspointName}" - var serviceName = 's3-object-lambda'; - var accesspointName = accessPointArn.resource.split('/')[1]; - var fipsSuffix = req.service.config.useFipsEndpoint ? '-fips': ''; - endpoint.hostname = [ - accesspointName + '-' + accessPointArn.accountId, - serviceName + fipsSuffix, - useArnRegion ? accessPointArn.region : req.service.config.region, - dnsSuffix - ].join('.'); - } - endpoint.host = endpoint.hostname; - var encodedArn = AWS.util.uriEscape(req.params.Bucket); - var path = req.httpRequest.path; - //remove the Bucket value from path - req.httpRequest.path = path.replace(new RegExp('/' + encodedArn), ''); - if (req.httpRequest.path[0] !== '/') { - req.httpRequest.path = '/' + req.httpRequest.path; - } - req.httpRequest.region = accessPointArn.region; //region used to sign - }, + totalPartNumbers: 0, /** - * Adds Expect: 100-continue header if payload is greater-or-equal 1MB * @api private */ - addExpect100Continue: function addExpect100Continue(req) { - var len = req.httpRequest.headers['Content-Length']; - if (AWS.util.isNode() && (len >= 1024 * 1024 || req.params.Body instanceof AWS.util.stream.Stream)) { - req.httpRequest.headers['Expect'] = '100-continue'; - } - }, + activeParts: 0, /** - * Adds a default content type if none is supplied. - * * @api private */ - addContentType: function addContentType(req) { - var httpRequest = req.httpRequest; - if (httpRequest.method === 'GET' || httpRequest.method === 'HEAD') { - // Content-Type is not set in GET/HEAD requests - delete httpRequest.headers['Content-Type']; - return; - } - - if (!httpRequest.headers['Content-Type']) { // always have a Content-Type - httpRequest.headers['Content-Type'] = 'application/octet-stream'; - } - - var contentType = httpRequest.headers['Content-Type']; - if (AWS.util.isBrowser()) { - if (typeof httpRequest.body === 'string' && !contentType.match(/;\s*charset=/)) { - var charset = '; charset=UTF-8'; - httpRequest.headers['Content-Type'] += charset; - } else { - var replaceFn = function(_, prefix, charsetName) { - return prefix + charsetName.toUpperCase(); - }; - - httpRequest.headers['Content-Type'] = - contentType.replace(/(;\s*charset=)(.+)$/, replaceFn); - } - } - }, + doneParts: 0, /** - * Checks whether checksums should be computed for the request if it's not - * already set by {AWS.EventListeners.Core.COMPUTE_CHECKSUM}. It depends on - * whether {AWS.Config.computeChecksums} is set. - * - * @param req [AWS.Request] the request to check against - * @return [Boolean] whether to compute checksums for a request. * @api private */ - willComputeChecksums: function willComputeChecksums(req) { - var rules = req.service.api.operations[req.operation].input.members; - var body = req.httpRequest.body; - var needsContentMD5 = req.service.config.computeChecksums && - rules.ContentMD5 && - !req.params.ContentMD5 && - body && - (AWS.util.Buffer.isBuffer(req.httpRequest.body) || typeof req.httpRequest.body === 'string'); - - // Sha256 signing disabled, and not a presigned url - if (needsContentMD5 && req.service.shouldDisableBodySigning(req) && !req.isPresigned()) { - return true; - } - - // SigV2 and presign, for backwards compatibility purpose. - if (needsContentMD5 && this.getSignatureVersion(req) === 's3' && req.isPresigned()) { - return true; - } - - return false; - }, + parts: null, /** - * A listener that computes the Content-MD5 and sets it in the header. - * This listener is to support S3-specific features like - * s3DisableBodySigning and SigV2 presign. Content MD5 logic for SigV4 is - * handled in AWS.EventListeners.Core.COMPUTE_CHECKSUM - * * @api private */ - computeContentMd5: function computeContentMd5(req) { - if (req.service.willComputeChecksums(req)) { - var md5 = AWS.util.crypto.md5(req.httpRequest.body, 'base64'); - req.httpRequest.headers['Content-MD5'] = md5; - } - }, + completeInfo: null, /** * @api private */ - computeSseCustomerKeyMd5: function computeSseCustomerKeyMd5(req) { - var keys = { - SSECustomerKey: 'x-amz-server-side-encryption-customer-key-MD5', - CopySourceSSECustomerKey: 'x-amz-copy-source-server-side-encryption-customer-key-MD5' - }; - AWS.util.each(keys, function(key, header) { - if (req.params[key]) { - var value = AWS.util.crypto.md5(req.params[key], 'base64'); - req.httpRequest.headers[header] = value; - } - }); - }, + failed: false, /** - * Returns true if the bucket name should be left in the URI path for - * a request to S3. This function takes into account the current - * endpoint protocol (e.g. http or https). - * * @api private */ - pathStyleBucketName: function pathStyleBucketName(bucketName) { - // user can force path style requests via the configuration - if (this.config.s3ForcePathStyle) return true; - if (this.config.s3BucketEndpoint) return false; - - if (s3util.dnsCompatibleBucketName(bucketName)) { - return (this.config.sslEnabled && bucketName.match(/\./)) ? true : false; - } else { - return true; // not dns compatible names must always use path style - } - }, + multipartReq: null, /** - * For COPY operations, some can be error even with status code 200. - * SDK treats the response as exception when response body indicates - * an exception or body is empty. - * * @api private */ - extractErrorFrom200Response: function extractErrorFrom200Response(resp) { - if (!operationsWith200StatusCodeError[resp.request.operation]) return; - var httpResponse = resp.httpResponse; - if (httpResponse.body && httpResponse.body.toString().match('')) { - // Response body with '...' indicates an exception. - // Get S3 client object. In ManagedUpload, this.service refers to - // S3 client object. - resp.data = null; - var service = this.service ? this.service : this; - service.extractError(resp); - throw resp.error; - } else if (!httpResponse.body || !httpResponse.body.toString().match(/<[\w_]/)) { - // When body is empty or incomplete, S3 might stop the request on detecting client - // side aborting the request. - resp.data = null; - throw AWS.util.error(new Error(), { - code: 'InternalError', - message: 'S3 aborted request' - }); - } - }, + partBuffers: null, /** - * @return [Boolean] whether the error can be retried * @api private */ - retryableError: function retryableError(error, request) { - if (operationsWith200StatusCodeError[request.operation] && - error.statusCode === 200) { - return true; - } else if (request._requestRegionForBucket && - request.service.bucketRegionCache[request._requestRegionForBucket]) { - return false; - } else if (error && error.code === 'RequestTimeout') { - return true; - } else if (error && - regionRedirectErrorCodes.indexOf(error.code) != -1 && - error.region && error.region != request.httpRequest.region) { - request.httpRequest.region = error.region; - if (error.statusCode === 301) { - request.service.updateReqBucketRegion(request); - } - return true; - } else { - var _super = AWS.Service.prototype.retryableError; - return _super.call(this, error, request); - } - }, + partBufferLength: 0, /** - * Updates httpRequest with region. If region is not provided, then - * the httpRequest will be updated based on httpRequest.region - * * @api private */ - updateReqBucketRegion: function updateReqBucketRegion(request, region) { - var httpRequest = request.httpRequest; - if (typeof region === 'string' && region.length) { - httpRequest.region = region; - } - if (!httpRequest.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)) { + fillBuffer: function fillBuffer() { + var self = this; + var bodyLen = byteLength(self.body); + + if (bodyLen === 0) { + self.isDoneChunking = true; + self.numParts = 1; + self.nextChunk(self.body); return; } - var service = request.service; - var s3Config = service.config; - var s3BucketEndpoint = s3Config.s3BucketEndpoint; - if (s3BucketEndpoint) { - delete s3Config.s3BucketEndpoint; - } - var newConfig = AWS.util.copy(s3Config); - delete newConfig.endpoint; - newConfig.region = httpRequest.region; - httpRequest.endpoint = (new AWS.S3(newConfig)).endpoint; - service.populateURI(request); - s3Config.s3BucketEndpoint = s3BucketEndpoint; - httpRequest.headers.Host = httpRequest.endpoint.host; + while (self.activeParts < self.queueSize && self.partPos < bodyLen) { + var endPos = Math.min(self.partPos + self.partSize, bodyLen); + var buf = self.sliceFn.call(self.body, self.partPos, endPos); + self.partPos += self.partSize; - if (request._asm.currentState === 'validate') { - request.removeListener('build', service.populateURI); - request.addListener('build', service.removeVirtualHostedBucketFromPath); + if (byteLength(buf) < self.partSize || self.partPos === bodyLen) { + self.isDoneChunking = true; + self.numParts = self.totalPartNumbers + 1; + } + self.nextChunk(buf); } }, /** - * Provides a specialized parser for getBucketLocation -- all other - * operations are parsed by the super class. - * * @api private */ - extractData: function extractData(resp) { - var req = resp.request; - if (req.operation === 'getBucketLocation') { - var match = resp.httpResponse.body.toString().match(/>(.+)<\/Location/); - delete resp.data['_']; - if (match) { - resp.data.LocationConstraint = match[1]; - } else { - resp.data.LocationConstraint = ''; - } + fillStream: function fillStream() { + var self = this; + if (self.activeParts >= self.queueSize) return; + + var buf = self.body.read(self.partSize - self.partBufferLength) || + self.body.read(); + if (buf) { + self.partBuffers.push(buf); + self.partBufferLength += buf.length; + self.totalChunkedBytes += buf.length; } - var bucket = req.params.Bucket || null; - if (req.operation === 'deleteBucket' && typeof bucket === 'string' && !resp.error) { - req.service.clearBucketRegionCache(bucket); - } else { - var headers = resp.httpResponse.headers || {}; - var region = headers['x-amz-bucket-region'] || null; - if (!region && req.operation === 'createBucket' && !resp.error) { - var createBucketConfiguration = req.params.CreateBucketConfiguration; - if (!createBucketConfiguration) { - region = 'us-east-1'; - } else if (createBucketConfiguration.LocationConstraint === 'EU') { - region = 'eu-west-1'; - } else { - region = createBucketConfiguration.LocationConstraint; - } + + if (self.partBufferLength >= self.partSize) { + // if we have single buffer we avoid copyfull concat + var pbuf = self.partBuffers.length === 1 ? + self.partBuffers[0] : Buffer.concat(self.partBuffers); + self.partBuffers = []; + self.partBufferLength = 0; + + // if we have more than partSize, push the rest back on the queue + if (pbuf.length > self.partSize) { + var rest = pbuf.slice(self.partSize); + self.partBuffers.push(rest); + self.partBufferLength += rest.length; + pbuf = pbuf.slice(0, self.partSize); } - if (region) { - if (bucket && region !== req.service.bucketRegionCache[bucket]) { - req.service.bucketRegionCache[bucket] = region; - } + + self.nextChunk(pbuf); + } + + if (self.isDoneChunking && !self.isDoneSending) { + // if we have single buffer we avoid copyfull concat + pbuf = self.partBuffers.length === 1 ? + self.partBuffers[0] : Buffer.concat(self.partBuffers); + self.partBuffers = []; + self.partBufferLength = 0; + self.totalBytes = self.totalChunkedBytes; + self.isDoneSending = true; + + if (self.numParts === 0 || pbuf.length > 0) { + self.numParts++; + self.nextChunk(pbuf); } } - req.service.extractRequestIds(resp); + + self.body.read(0); }, /** - * Extracts an error object from the http response. - * * @api private */ - extractError: function extractError(resp) { - var codes = { - 304: 'NotModified', - 403: 'Forbidden', - 400: 'BadRequest', - 404: 'NotFound' - }; + nextChunk: function nextChunk(chunk) { + var self = this; + if (self.failed) return null; - var req = resp.request; - var code = resp.httpResponse.statusCode; - var body = resp.httpResponse.body || ''; + var partNumber = ++self.totalPartNumbers; + if (self.isDoneChunking && partNumber === 1) { + var params = {Body: chunk}; + if (this.tags) { + params.Tagging = this.getTaggingHeader(); + } + var req = self.service.putObject(params); + req._managedUpload = self; + req.on('httpUploadProgress', self.progress).send(self.finishSinglePart); + self.singlePart = req; //save the single part request + return null; + } else if (self.service.config.params.ContentMD5) { + var err = AWS.util.error(new Error('The Content-MD5 you specified is invalid for multi-part uploads.'), { + code: 'InvalidDigest', retryable: false + }); - var headers = resp.httpResponse.headers || {}; - var region = headers['x-amz-bucket-region'] || null; - var bucket = req.params.Bucket || null; - var bucketRegionCache = req.service.bucketRegionCache; - if (region && bucket && region !== bucketRegionCache[bucket]) { - bucketRegionCache[bucket] = region; + self.cleanup(err); + return null; } - var cachedRegion; - if (codes[code] && body.length === 0) { - if (bucket && !region) { - cachedRegion = bucketRegionCache[bucket] || null; - if (cachedRegion !== req.httpRequest.region) { - region = cachedRegion; - } - } - resp.error = AWS.util.error(new Error(), { - code: codes[code], - message: null, - region: region - }); - } else { - var data = new AWS.XML.Parser().parse(body.toString()); + if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) { + return null; // Already uploaded this part. + } - if (data.Region && !region) { - region = data.Region; - if (bucket && region !== bucketRegionCache[bucket]) { - bucketRegionCache[bucket] = region; - } - } else if (bucket && !region && !data.Region) { - cachedRegion = bucketRegionCache[bucket] || null; - if (cachedRegion !== req.httpRequest.region) { - region = cachedRegion; - } - } + self.activeParts++; + if (!self.service.config.params.UploadId) { - resp.error = AWS.util.error(new Error(), { - code: data.Code || code, - message: data.Message || null, - region: region - }); + if (!self.multipartReq) { // create multipart + self.multipartReq = self.service.createMultipartUpload(); + self.multipartReq.on('success', function(resp) { + self.service.config.params.UploadId = resp.data.UploadId; + self.multipartReq = null; + }); + self.queueChunks(chunk, partNumber); + self.multipartReq.on('error', function(err) { + self.cleanup(err); + }); + self.multipartReq.send(); + } else { + self.queueChunks(chunk, partNumber); + } + } else { // multipart is created, just send + self.uploadPart(chunk, partNumber); } - req.service.extractRequestIds(resp); }, /** - * If region was not obtained synchronously, then send async request - * to get bucket region for errors resulting from wrong region. - * * @api private */ - requestBucketRegion: function requestBucketRegion(resp, done) { - var error = resp.error; - var req = resp.request; - var bucket = req.params.Bucket || null; - - if (!error || !bucket || error.region || req.operation === 'listObjects' || - (AWS.util.isNode() && req.operation === 'headBucket') || - (error.statusCode === 400 && req.operation !== 'headObject') || - regionRedirectErrorCodes.indexOf(error.code) === -1) { - return done(); + getTaggingHeader: function getTaggingHeader() { + var kvPairStrings = []; + for (var i = 0; i < this.tags.length; i++) { + kvPairStrings.push(AWS.util.uriEscape(this.tags[i].Key) + '=' + + AWS.util.uriEscape(this.tags[i].Value)); } - var reqOperation = AWS.util.isNode() ? 'headBucket' : 'listObjects'; - var reqParams = {Bucket: bucket}; - if (reqOperation === 'listObjects') reqParams.MaxKeys = 0; - var regionReq = req.service[reqOperation](reqParams); - regionReq._requestRegionForBucket = bucket; - regionReq.send(function() { - var region = req.service.bucketRegionCache[bucket] || null; - error.region = region; - done(); - }); + + return kvPairStrings.join('&'); }, - /** - * For browser only. If NetworkingError received, will attempt to obtain - * the bucket region. - * + /** * @api private */ - reqRegionForNetworkingError: function reqRegionForNetworkingError(resp, done) { - if (!AWS.util.isBrowser()) { - return done(); - } - var error = resp.error; - var request = resp.request; - var bucket = request.params.Bucket; - if (!error || error.code !== 'NetworkingError' || !bucket || - request.httpRequest.region === 'us-east-1') { - return done(); - } - var service = request.service; - var bucketRegionCache = service.bucketRegionCache; - var cachedRegion = bucketRegionCache[bucket] || null; + uploadPart: function uploadPart(chunk, partNumber) { + var self = this; - if (cachedRegion && cachedRegion !== request.httpRequest.region) { - service.updateReqBucketRegion(request, cachedRegion); - done(); - } else if (!s3util.dnsCompatibleBucketName(bucket)) { - service.updateReqBucketRegion(request, 'us-east-1'); - if (bucketRegionCache[bucket] !== 'us-east-1') { - bucketRegionCache[bucket] = 'us-east-1'; - } - done(); - } else if (request.httpRequest.virtualHostedBucket) { - var getRegionReq = service.listObjects({Bucket: bucket, MaxKeys: 0}); - service.updateReqBucketRegion(getRegionReq, 'us-east-1'); - getRegionReq._requestRegionForBucket = bucket; + var partParams = { + Body: chunk, + ContentLength: AWS.util.string.byteLength(chunk), + PartNumber: partNumber + }; - getRegionReq.send(function() { - var region = service.bucketRegionCache[bucket] || null; - if (region && region !== request.httpRequest.region) { - service.updateReqBucketRegion(request, region); - } - done(); - }); - } else { - // DNS-compatible path-style - // (s3ForcePathStyle or bucket name with dot over https) - // Cannot obtain region information for this case - done(); - } - }, + var partInfo = {ETag: null, PartNumber: partNumber}; + self.completeInfo[partNumber] = partInfo; - /** - * Cache for bucket region. - * - * @api private - */ - bucketRegionCache: {}, + var req = self.service.uploadPart(partParams); + self.parts[partNumber] = req; + req._lastUploadedBytes = 0; + req._managedUpload = self; + req.on('httpUploadProgress', self.progress); + req.send(function(err, data) { + delete self.parts[partParams.PartNumber]; + self.activeParts--; - /** - * Clears bucket region cache. - * - * @api private - */ - clearBucketRegionCache: function(buckets) { - var bucketRegionCache = this.bucketRegionCache; - if (!buckets) { - buckets = Object.keys(bucketRegionCache); - } else if (typeof buckets === 'string') { - buckets = [buckets]; - } - for (var i = 0; i < buckets.length; i++) { - delete bucketRegionCache[buckets[i]]; - } - return bucketRegionCache; - }, + if (!err && (!data || !data.ETag)) { + var message = 'No access to ETag property on response.'; + if (AWS.util.isBrowser()) { + message += ' Check CORS configuration to expose ETag header.'; + } - /** - * Corrects request region if bucket's cached region is different - * - * @api private - */ - correctBucketRegionFromCache: function correctBucketRegionFromCache(req) { - var bucket = req.params.Bucket || null; - if (bucket) { - var service = req.service; - var requestRegion = req.httpRequest.region; - var cachedRegion = service.bucketRegionCache[bucket]; - if (cachedRegion && cachedRegion !== requestRegion) { - service.updateReqBucketRegion(req, cachedRegion); + err = AWS.util.error(new Error(message), { + code: 'ETagMissing', retryable: false + }); } - } + if (err) return self.cleanup(err); + //prevent sending part being returned twice (https://github.com/aws/aws-sdk-js/issues/2304) + if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) return null; + partInfo.ETag = data.ETag; + self.doneParts++; + if (self.isDoneChunking && self.doneParts === self.totalPartNumbers) { + self.finishMultiPart(); + } else { + self.fillQueue.call(self); + } + }); }, /** - * Extracts S3 specific request ids from the http response. - * * @api private */ - extractRequestIds: function extractRequestIds(resp) { - var extendedRequestId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-id-2'] : null; - var cfId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-cf-id'] : null; - resp.extendedRequestId = extendedRequestId; - resp.cfId = cfId; - - if (resp.error) { - resp.error.requestId = resp.requestId || null; - resp.error.extendedRequestId = extendedRequestId; - resp.error.cfId = cfId; - } + queueChunks: function queueChunks(chunk, partNumber) { + var self = this; + self.multipartReq.on('success', function() { + self.uploadPart(chunk, partNumber); + }); }, /** - * Get a pre-signed URL for a given operation name. - * - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * @note Not all operation parameters are supported when using pre-signed - * URLs. Certain parameters, such as `SSECustomerKey`, `ACL`, `Expires`, - * `ContentLength`, or `Tagging` must be provided as headers when sending a - * request. If you are using pre-signed URLs to upload from a browser and - * need to use these fields, see {createPresignedPost}. - * @note The default signer allows altering the request by adding corresponding - * headers to set some parameters (e.g. Range) and these added parameters - * won't be signed. You must use signatureVersion v4 to to include these - * parameters in the signed portion of the URL and enforce exact matching - * between headers and signed params in the URL. - * @note This operation cannot be used with a promise. See note above regarding - * asynchronous credentials and use with a callback. - * @param operation [String] the name of the operation to call - * @param params [map] parameters to pass to the operation. See the given - * operation for the expected operation parameters. In addition, you can - * also pass the "Expires" parameter to inform S3 how long the URL should - * work for. - * @option params Expires [Integer] (900) the number of seconds to expire - * the pre-signed URL operation in. Defaults to 15 minutes. - * @param callback [Function] if a callback is provided, this function will - * pass the URL as the second parameter (after the error parameter) to - * the callback function. - * @return [String] if called synchronously (with no callback), returns the - * signed URL. - * @return [null] nothing is returned if a callback is provided. - * @example Pre-signing a getObject operation (synchronously) - * var params = {Bucket: 'bucket', Key: 'key'}; - * var url = s3.getSignedUrl('getObject', params); - * console.log('The URL is', url); - * @example Pre-signing a putObject (asynchronously) - * var params = {Bucket: 'bucket', Key: 'key'}; - * s3.getSignedUrl('putObject', params, function (err, url) { - * console.log('The URL is', url); - * }); - * @example Pre-signing a putObject operation with a specific payload - * var params = {Bucket: 'bucket', Key: 'key', Body: 'body'}; - * var url = s3.getSignedUrl('putObject', params); - * console.log('The URL is', url); - * @example Passing in a 1-minute expiry time for a pre-signed URL - * var params = {Bucket: 'bucket', Key: 'key', Expires: 60}; - * var url = s3.getSignedUrl('getObject', params); - * console.log('The URL is', url); // expires in 60 seconds + * @api private */ - getSignedUrl: function getSignedUrl(operation, params, callback) { - params = AWS.util.copy(params || {}); - var expires = params.Expires || 900; + cleanup: function cleanup(err) { + var self = this; + if (self.failed) return; - if (typeof expires !== 'number') { - throw AWS.util.error(new Error(), - { code: 'InvalidParameterException', message: 'The expiration must be a number, received ' + typeof expires }); + // clean up stream + if (typeof self.body.removeAllListeners === 'function' && + typeof self.body.resume === 'function') { + self.body.removeAllListeners('readable'); + self.body.removeAllListeners('end'); + self.body.resume(); } - delete params.Expires; // we can't validate this - var request = this.makeRequest(operation, params); + // cleanup multipartReq listeners + if (self.multipartReq) { + self.multipartReq.removeAllListeners('success'); + self.multipartReq.removeAllListeners('error'); + self.multipartReq.removeAllListeners('complete'); + delete self.multipartReq; + } - if (callback) { - AWS.util.defer(function() { - request.presign(expires, callback); - }); - } else { - return request.presign(expires, callback); + if (self.service.config.params.UploadId && !self.leavePartsOnError) { + self.service.abortMultipartUpload().send(); + } else if (self.leavePartsOnError) { + self.isDoneChunking = false; } - }, - /** - * @!method getSignedUrlPromise() - * Returns a 'thenable' promise that will be resolved with a pre-signed URL - * for a given operation name. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @note Not all operation parameters are supported when using pre-signed - * URLs. Certain parameters, such as `SSECustomerKey`, `ACL`, `Expires`, - * `ContentLength`, or `Tagging` must be provided as headers when sending a - * request. If you are using pre-signed URLs to upload from a browser and - * need to use these fields, see {createPresignedPost}. - * @param operation [String] the name of the operation to call - * @param params [map] parameters to pass to the operation. See the given - * operation for the expected operation parameters. In addition, you can - * also pass the "Expires" parameter to inform S3 how long the URL should - * work for. - * @option params Expires [Integer] (900) the number of seconds to expire - * the pre-signed URL operation in. Defaults to 15 minutes. - * @callback fulfilledCallback function(url) - * Called if the promise is fulfilled. - * @param url [String] the signed url - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled - * @return [Promise] A promise that represents the state of the `refresh` call. - * @example Pre-signing a getObject operation - * var params = {Bucket: 'bucket', Key: 'key'}; - * var promise = s3.getSignedUrlPromise('getObject', params); - * promise.then(function(url) { - * console.log('The URL is', url); - * }, function(err) { ... }); - * @example Pre-signing a putObject operation with a specific payload - * var params = {Bucket: 'bucket', Key: 'key', Body: 'body'}; - * var promise = s3.getSignedUrlPromise('putObject', params); - * promise.then(function(url) { - * console.log('The URL is', url); - * }, function(err) { ... }); - * @example Passing in a 1-minute expiry time for a pre-signed URL - * var params = {Bucket: 'bucket', Key: 'key', Expires: 60}; - * var promise = s3.getSignedUrlPromise('getObject', params); - * promise.then(function(url) { - * console.log('The URL is', url); - * }, function(err) { ... }); - */ + AWS.util.each(self.parts, function(partNumber, part) { + part.removeAllListeners('complete'); + part.abort(); + }); + + self.activeParts = 0; + self.partPos = 0; + self.numParts = 0; + self.totalPartNumbers = 0; + self.parts = {}; + self.failed = true; + self.callback(err); + }, /** - * Get a pre-signed POST policy to support uploading to S3 directly from an - * HTML form. - * - * @param params [map] - * @option params Bucket [String] The bucket to which the post should be - * uploaded - * @option params Expires [Integer] (3600) The number of seconds for which - * the presigned policy should be valid. - * @option params Conditions [Array] An array of conditions that must be met - * for the presigned policy to allow the - * upload. This can include required tags, - * the accepted range for content lengths, - * etc. - * @see http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html - * @option params Fields [map] Fields to include in the form. All - * values passed in as fields will be - * signed as exact match conditions. - * @param callback [Function] - * - * @note All fields passed in when creating presigned post data will be signed - * as exact match conditions. Any fields that will be interpolated by S3 - * must be added to the fields hash after signing, and an appropriate - * condition for such fields must be explicitly added to the Conditions - * array passed to this function before signing. - * - * @example Presiging post data with a known key - * var params = { - * Bucket: 'bucket', - * Fields: { - * key: 'key' - * } - * }; - * s3.createPresignedPost(params, function(err, data) { - * if (err) { - * console.error('Presigning post data encountered an error', err); - * } else { - * console.log('The post data is', data); - * } - * }); - * - * @example Presigning post data with an interpolated key - * var params = { - * Bucket: 'bucket', - * Conditions: [ - * ['starts-with', '$key', 'path/to/uploads/'] - * ] - * }; - * s3.createPresignedPost(params, function(err, data) { - * if (err) { - * console.error('Presigning post data encountered an error', err); - * } else { - * data.Fields.key = 'path/to/uploads/${filename}'; - * console.log('The post data is', data); - * } - * }); - * - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * - * @return [map] If called synchronously (with no callback), returns a hash - * with the url to set as the form action and a hash of fields - * to include in the form. - * @return [null] Nothing is returned if a callback is provided. - * - * @callback callback function (err, data) - * @param err [Error] the error object returned from the policy signer - * @param data [map] The data necessary to construct an HTML form - * @param data.url [String] The URL to use as the action of the form - * @param data.fields [map] A hash of fields that must be included in the - * form for the upload to succeed. This hash will - * include the signed POST policy, your access key - * ID and security token (if present), etc. These - * may be safely included as input elements of type - * 'hidden.' + * @api private */ - createPresignedPost: function createPresignedPost(params, callback) { - if (typeof params === 'function' && callback === undefined) { - callback = params; - params = null; - } - - params = AWS.util.copy(params || {}); - var boundParams = this.config.params || {}; - var bucket = params.Bucket || boundParams.Bucket, - self = this, - config = this.config, - endpoint = AWS.util.copy(this.endpoint); - if (!config.s3BucketEndpoint) { - endpoint.pathname = '/' + bucket; - } + finishMultiPart: function finishMultiPart() { + var self = this; + var completeParams = { MultipartUpload: { Parts: self.completeInfo.slice(1) } }; + self.service.completeMultipartUpload(completeParams, function(err, data) { + if (err) { + return self.cleanup(err); + } - function finalizePost() { - return { - url: AWS.util.urlFormat(endpoint), - fields: self.preparePostFields( - config.credentials, - config.region, - bucket, - params.Fields, - params.Conditions, - params.Expires - ) - }; - } + if (data && typeof data.Location === 'string') { + data.Location = data.Location.replace(/%2F/g, '/'); + } - if (callback) { - config.getCredentials(function (err) { - if (err) { - callback(err); - } else { - try { - callback(null, finalizePost()); - } catch (err) { - callback(err); - } + if (Array.isArray(self.tags)) { + for (var i = 0; i < self.tags.length; i++) { + self.tags[i].Value = String(self.tags[i].Value); } - }); - } else { - return finalizePost(); - } + self.service.putObjectTagging( + {Tagging: {TagSet: self.tags}}, + function(e, d) { + if (e) { + self.callback(e); + } else { + self.callback(e, data); + } + } + ); + } else { + self.callback(err, data); + } + }); + }, + + /** + * @api private + */ + finishSinglePart: function finishSinglePart(err, data) { + var upload = this.request._managedUpload; + var httpReq = this.request.httpRequest; + var endpoint = httpReq.endpoint; + if (err) return upload.callback(err); + data.Location = + [endpoint.protocol, '//', endpoint.host, httpReq.path].join(''); + data.key = this.request.params.Key; // will stay undocumented + data.Key = this.request.params.Key; + data.Bucket = this.request.params.Bucket; + upload.callback(err, data); }, /** * @api private */ - preparePostFields: function preparePostFields( - credentials, - region, - bucket, - fields, - conditions, - expiresInSeconds - ) { - var now = this.getSkewCorrectedDate(); - if (!credentials || !region || !bucket) { - throw new Error('Unable to create a POST object policy without a bucket,' - + ' region, and credentials'); + progress: function progress(info) { + var upload = this._managedUpload; + if (this.operation === 'putObject') { + info.part = 1; + info.key = this.params.Key; + } else { + upload.totalUploadedBytes += info.loaded - this._lastUploadedBytes; + this._lastUploadedBytes = info.loaded; + info = { + loaded: upload.totalUploadedBytes, + total: upload.totalBytes, + part: this.params.PartNumber, + key: this.params.Key + }; } - fields = AWS.util.copy(fields || {}); - conditions = (conditions || []).slice(0); - expiresInSeconds = expiresInSeconds || 3600; + upload.emit('httpUploadProgress', [info]); + } +}); - var signingDate = AWS.util.date.iso8601(now).replace(/[:\-]|\.\d{3}/g, ''); - var shortDate = signingDate.substr(0, 8); - var scope = v4Credentials.createScope(shortDate, region, 's3'); - var credential = credentials.accessKeyId + '/' + scope; +AWS.util.mixin(AWS.S3.ManagedUpload, AWS.SequentialExecutor); - fields['bucket'] = bucket; - fields['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256'; - fields['X-Amz-Credential'] = credential; - fields['X-Amz-Date'] = signingDate; - if (credentials.sessionToken) { - fields['X-Amz-Security-Token'] = credentials.sessionToken; - } - for (var field in fields) { - if (fields.hasOwnProperty(field)) { - var condition = {}; - condition[field] = fields[field]; - conditions.push(condition); - } - } +/** + * @api private + */ +AWS.S3.ManagedUpload.addPromisesToClass = function addPromisesToClass(PromiseDependency) { + this.prototype.promise = AWS.util.promisifyMethod('send', PromiseDependency); +}; - fields.Policy = this.preparePostPolicy( - new Date(now.valueOf() + expiresInSeconds * 1000), - conditions - ); - fields['X-Amz-Signature'] = AWS.util.crypto.hmac( - v4Credentials.getSigningKey(credentials, shortDate, region, 's3', true), - fields.Policy, - 'hex' - ); +/** + * @api private + */ +AWS.S3.ManagedUpload.deletePromisesFromClass = function deletePromisesFromClass() { + delete this.prototype.promise; +}; - return fields; +AWS.util.addPromises(AWS.S3.ManagedUpload); + +/** + * @api private + */ +module.exports = AWS.S3.ManagedUpload; + + +/***/ }), + +/***/ 82310: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); + +/** + * @api private + * @!method on(eventName, callback) + * Registers an event listener callback for the event given by `eventName`. + * Parameters passed to the callback function depend on the individual event + * being triggered. See the event documentation for those parameters. + * + * @param eventName [String] the event name to register the listener for + * @param callback [Function] the listener callback function + * @param toHead [Boolean] attach the listener callback to the head of callback array if set to true. + * Default to be false. + * @return [AWS.SequentialExecutor] the same object for chaining + */ +AWS.SequentialExecutor = AWS.util.inherit({ + + constructor: function SequentialExecutor() { + this._events = {}; }, /** * @api private */ - preparePostPolicy: function preparePostPolicy(expiration, conditions) { - return AWS.util.base64.encode(JSON.stringify({ - expiration: AWS.util.date.iso8601(expiration), - conditions: conditions - })); + listeners: function listeners(eventName) { + return this._events[eventName] ? this._events[eventName].slice(0) : []; }, - /** - * @api private - */ - prepareSignedUrl: function prepareSignedUrl(request) { - request.addListener('validate', request.service.noPresignedContentLength); - request.removeListener('build', request.service.addContentType); - if (!request.params.Body) { - // no Content-MD5/SHA-256 if body is not provided - request.removeListener('build', request.service.computeContentMd5); + on: function on(eventName, listener, toHead) { + if (this._events[eventName]) { + toHead ? + this._events[eventName].unshift(listener) : + this._events[eventName].push(listener); } else { - request.addListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); + this._events[eventName] = [listener]; + } + return this; + }, + + onAsync: function onAsync(eventName, listener, toHead) { + listener._isAsync = true; + return this.on(eventName, listener, toHead); + }, + + removeListener: function removeListener(eventName, listener) { + var listeners = this._events[eventName]; + if (listeners) { + var length = listeners.length; + var position = -1; + for (var i = 0; i < length; ++i) { + if (listeners[i] === listener) { + position = i; + } + } + if (position > -1) { + listeners.splice(position, 1); + } + } + return this; + }, + + removeAllListeners: function removeAllListeners(eventName) { + if (eventName) { + delete this._events[eventName]; + } else { + this._events = {}; } + return this; }, /** * @api private - * @param request */ - disableBodySigning: function disableBodySigning(request) { - var headers = request.httpRequest.headers; - // Add the header to anything that isn't a presigned url, unless that presigned url had a body defined - if (!Object.prototype.hasOwnProperty.call(headers, 'presigned-expires')) { - headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD'; - } + emit: function emit(eventName, eventArgs, doneCallback) { + if (!doneCallback) doneCallback = function() { }; + var listeners = this.listeners(eventName); + var count = listeners.length; + this.callListeners(listeners, eventArgs, doneCallback); + return count > 0; }, /** * @api private */ - noPresignedContentLength: function noPresignedContentLength(request) { - if (request.params.ContentLength !== undefined) { - throw AWS.util.error(new Error(), {code: 'UnexpectedParameter', - message: 'ContentLength is not supported in pre-signed URLs.'}); - } - }, + callListeners: function callListeners(listeners, args, doneCallback, prevError) { + var self = this; + var error = prevError || null; - createBucket: function createBucket(params, callback) { - // When creating a bucket *outside* the classic region, the location - // constraint must be set for the bucket and it must match the endpoint. - // This chunk of code will set the location constraint param based - // on the region (when possible), but it will not override a passed-in - // location constraint. - if (typeof params === 'function' || !params) { - callback = callback || params; - params = {}; + function callNextListener(err) { + if (err) { + error = AWS.util.error(error || new Error(), err); + if (self._haltHandlersOnError) { + return doneCallback.call(self, error); + } + } + self.callListeners(listeners, args, doneCallback, error); } - var hostname = this.endpoint.hostname; - // copy params so that appending keys does not unintentioinallly - // mutate params object argument passed in by user - var copiedParams = AWS.util.copy(params); - if (hostname !== this.api.globalEndpoint && !params.CreateBucketConfiguration) { - copiedParams.CreateBucketConfiguration = { LocationConstraint: this.config.region }; + while (listeners.length > 0) { + var listener = listeners.shift(); + if (listener._isAsync) { // asynchronous listener + listener.apply(self, args.concat([callNextListener])); + return; // stop here, callNextListener will continue + } else { // synchronous listener + try { + listener.apply(self, args); + } catch (err) { + error = AWS.util.error(error || new Error(), err); + } + if (error && self._haltHandlersOnError) { + doneCallback.call(self, error); + return; + } + } } - return this.makeRequest('createBucket', copiedParams, callback); + doneCallback.call(self, error); }, - writeGetObjectResponse: function writeGetObjectResponse(params, callback) { + /** + * Adds or copies a set of listeners from another list of + * listeners or SequentialExecutor object. + * + * @param listeners [map>, AWS.SequentialExecutor] + * a list of events and callbacks, or an event emitter object + * containing listeners to add to this emitter object. + * @return [AWS.SequentialExecutor] the emitter object, for chaining. + * @example Adding listeners from a map of listeners + * emitter.addListeners({ + * event1: [function() { ... }, function() { ... }], + * event2: [function() { ... }] + * }); + * emitter.emit('event1'); // emitter has event1 + * emitter.emit('event2'); // emitter has event2 + * @example Adding listeners from another emitter object + * var emitter1 = new AWS.SequentialExecutor(); + * emitter1.on('event1', function() { ... }); + * emitter1.on('event2', function() { ... }); + * var emitter2 = new AWS.SequentialExecutor(); + * emitter2.addListeners(emitter1); + * emitter2.emit('event1'); // emitter2 has event1 + * emitter2.emit('event2'); // emitter2 has event2 + */ + addListeners: function addListeners(listeners) { + var self = this; - var request = this.makeRequest('writeGetObjectResponse', AWS.util.copy(params), callback); - var hostname = this.endpoint.hostname; - if (hostname.indexOf(this.config.region) !== -1) { - // hostname specifies a region already - hostname = hostname.replace('s3.', OBJECT_LAMBDA_SERVICE + '.'); - } else { - // Hostname doesn't have a region. - // Object Lambda requires an explicit region. - hostname = hostname.replace('s3.', OBJECT_LAMBDA_SERVICE + '.' + this.config.region + '.'); - } + // extract listeners if parameter is an SequentialExecutor object + if (listeners._events) listeners = listeners._events; - request.httpRequest.endpoint = new AWS.Endpoint(hostname, this.config); - return request; + AWS.util.each(listeners, function(event, callbacks) { + if (typeof callbacks === 'function') callbacks = [callbacks]; + AWS.util.arrayEach(callbacks, function(callback) { + self.on(event, callback); + }); + }); + + return self; }, /** - * @see AWS.S3.ManagedUpload - * @overload upload(params = {}, [options], [callback]) - * Uploads an arbitrarily sized buffer, blob, or stream, using intelligent - * concurrent handling of parts if the payload is large enough. You can - * configure the concurrent queue size by setting `options`. Note that this - * is the only operation for which the SDK can retry requests with stream - * bodies. + * Registers an event with {on} and saves the callback handle function + * as a property on the emitter object using a given `name`. * - * @param (see AWS.S3.putObject) - * @option (see AWS.S3.ManagedUpload.constructor) - * @return [AWS.S3.ManagedUpload] the managed upload object that can call - * `send()` or track progress. - * @example Uploading a stream object - * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; - * s3.upload(params, function(err, data) { - * console.log(err, data); - * }); - * @example Uploading a stream with concurrency of 1 and partSize of 10mb - * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; - * var options = {partSize: 10 * 1024 * 1024, queueSize: 1}; - * s3.upload(params, options, function(err, data) { - * console.log(err, data); - * }); - * @callback callback function(err, data) - * @param err [Error] an error or null if no error occurred. - * @param data [map] The response data from the successful upload: - * @param data.Location [String] the URL of the uploaded object - * @param data.ETag [String] the ETag of the uploaded object - * @param data.Bucket [String] the bucket to which the object was uploaded - * @param data.Key [String] the key to which the object was uploaded + * @param name [String] the property name to set on this object containing + * the callback function handle so that the listener can be removed in + * the future. + * @param (see on) + * @return (see on) + * @example Adding a named listener DATA_CALLBACK + * var listener = function() { doSomething(); }; + * emitter.addNamedListener('DATA_CALLBACK', 'data', listener); + * + * // the following prints: true + * console.log(emitter.DATA_CALLBACK == listener); */ - upload: function upload(params, options, callback) { - if (typeof options === 'function' && callback === undefined) { - callback = options; - options = null; - } + addNamedListener: function addNamedListener(name, eventName, callback, toHead) { + this[name] = callback; + this.addListener(eventName, callback, toHead); + return this; + }, - options = options || {}; - options = AWS.util.merge(options || {}, {service: this, params: params}); + /** + * @api private + */ + addNamedAsyncListener: function addNamedAsyncListener(name, eventName, callback, toHead) { + callback._isAsync = true; + return this.addNamedListener(name, eventName, callback, toHead); + }, - var uploader = new AWS.S3.ManagedUpload(options); - if (typeof callback === 'function') uploader.send(callback); - return uploader; + /** + * Helper method to add a set of named listeners using + * {addNamedListener}. The callback contains a parameter + * with a handle to the `addNamedListener` method. + * + * @callback callback function(add) + * The callback function is called immediately in order to provide + * the `add` function to the block. This simplifies the addition of + * a large group of named listeners. + * @param add [Function] the {addNamedListener} function to call + * when registering listeners. + * @example Adding a set of named listeners + * emitter.addNamedListeners(function(add) { + * add('DATA_CALLBACK', 'data', function() { ... }); + * add('OTHER', 'otherEvent', function() { ... }); + * add('LAST', 'lastEvent', function() { ... }); + * }); + * + * // these properties are now set: + * emitter.DATA_CALLBACK; + * emitter.OTHER; + * emitter.LAST; + */ + addNamedListeners: function addNamedListeners(callback) { + var self = this; + callback( + function() { + self.addNamedListener.apply(self, arguments); + }, + function() { + self.addNamedAsyncListener.apply(self, arguments); + } + ); + return this; } }); /** + * {on} is the prefered method. * @api private */ -AWS.S3.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.getSignedUrlPromise = AWS.util.promisifyMethod('getSignedUrl', PromiseDependency); -}; +AWS.SequentialExecutor.prototype.addListener = AWS.SequentialExecutor.prototype.on; /** * @api private */ -AWS.S3.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.getSignedUrlPromise; -}; - -AWS.util.addPromises(AWS.S3); +module.exports = AWS.SequentialExecutor; /***/ }), -/***/ 576: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 48228: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var s3util = __nccwpck_require__(50280); -var regionUtil = __nccwpck_require__(63698); +var AWS = __nccwpck_require__(53832); +var Api = __nccwpck_require__(34609); +var regionConfig = __nccwpck_require__(81940); -AWS.util.update(AWS.S3Control.prototype, { +var inherit = AWS.util.inherit; +var clientCount = 0; +var region_utils = __nccwpck_require__(7033); + +/** + * The service class representing an AWS service. + * + * @class_abstract This class is an abstract class. + * + * @!attribute apiVersions + * @return [Array] the list of API versions supported by this service. + * @readonly + */ +AWS.Service = inherit({ /** - * @api private + * Create a new service object with a configuration object + * + * @param config [map] a map of configuration options */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('extractError', this.extractHostId); - request.addListener('extractData', this.extractHostId); - request.addListener('validate', this.validateAccountId); - - var isArnInBucket = s3util.isArnInParam(request, 'Bucket'); - var isArnInName = s3util.isArnInParam(request, 'Name'); - - if (isArnInBucket) { - request._parsedArn = AWS.util.ARN.parse(request.params['Bucket']); - request.addListener('validate', this.validateOutpostsBucketArn); - request.addListener('validate', s3util.validateOutpostsArn); - request.addListener('afterBuild', this.addOutpostIdHeader); - } else if (isArnInName) { - request._parsedArn = AWS.util.ARN.parse(request.params['Name']); - request.addListener('validate', s3util.validateOutpostsAccessPointArn); - request.addListener('validate', s3util.validateOutpostsArn); - request.addListener('afterBuild', this.addOutpostIdHeader); + constructor: function Service(config) { + if (!this.loadServiceClass) { + throw AWS.util.error(new Error(), + 'Service must be constructed with `new\' operator'); } - if (isArnInBucket || isArnInName) { - request.addListener('validate', this.validateArnRegion); - request.addListener('validate', this.validateArnAccountWithParams, true); - request.addListener('validate', s3util.validateArnAccount); - request.addListener('validate', s3util.validateArnService); - request.addListener('build', this.populateParamFromArn, true); - request.addListener('build', this.populateUriFromArn); - request.addListener('build', s3util.validatePopulateUriFromArn); + if (config) { + if (config.region) { + var region = config.region; + if (region_utils.isFipsRegion(region)) { + config.region = region_utils.getRealRegion(region); + config.useFipsEndpoint = true; + } + if (region_utils.isGlobalRegion(region)) { + config.region = region_utils.getRealRegion(region); + } + } + if (typeof config.useDualstack === 'boolean' + && typeof config.useDualstackEndpoint !== 'boolean') { + config.useDualstackEndpoint = config.useDualstack; + } } - if (request.params.OutpostId && - (request.operation === 'createBucket' || - request.operation === 'listRegionalBuckets')) { - request.addListener('build', this.populateEndpointForOutpostId); + var ServiceClass = this.loadServiceClass(config || {}); + if (ServiceClass) { + var originalConfig = AWS.util.copy(config); + var svc = new ServiceClass(config); + Object.defineProperty(svc, '_originalConfig', { + get: function() { return originalConfig; }, + enumerable: false, + configurable: true + }); + svc._clientId = ++clientCount; + return svc; } + this.initialize(config); }, /** - * Adds outpostId header - */ - addOutpostIdHeader: function addOutpostIdHeader(req) { - req.httpRequest.headers['x-amz-outpost-id'] = req._parsedArn.outpostId; - }, - - /** - * Validate Outposts ARN supplied in Bucket parameter is a valid bucket name + * @api private */ - validateOutpostsBucketArn: function validateOutpostsBucketArn(req) { - var parsedArn = req._parsedArn; + initialize: function initialize(config) { + var svcConfig = AWS.config[this.serviceIdentifier]; + this.config = new AWS.Config(AWS.config); + if (svcConfig) this.config.update(svcConfig, true); + if (config) this.config.update(config, true); - //can be ':' or '/' - var delimiter = parsedArn.resource['outpost'.length]; + this.validateService(); + if (!this.config.endpoint) regionConfig.configureEndpoint(this); - if (parsedArn.resource.split(delimiter).length !== 4) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Bucket ARN should have two resources outpost/{outpostId}/bucket/{accesspointName}' + this.config.endpoint = this.endpointFromTemplate(this.config.endpoint); + this.setEndpoint(this.config.endpoint); + //enable attaching listeners to service client + AWS.SequentialExecutor.call(this); + AWS.Service.addDefaultMonitoringListeners(this); + if ((this.config.clientSideMonitoring || AWS.Service._clientSideMonitoring) && this.publisher) { + var publisher = this.publisher; + this.addNamedListener('PUBLISH_API_CALL', 'apiCall', function PUBLISH_API_CALL(event) { + process.nextTick(function() {publisher.eventHandler(event);}); }); - } - - var bucket = parsedArn.resource.split(delimiter)[3]; - if (!s3util.dnsCompatibleBucketName(bucket) || bucket.match(/\./)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Bucket ARN is not DNS compatible. Got ' + bucket + this.addNamedListener('PUBLISH_API_ATTEMPT', 'apiCallAttempt', function PUBLISH_API_ATTEMPT(event) { + process.nextTick(function() {publisher.eventHandler(event);}); }); } + }, - //set parsed valid bucket - req._parsedArn.bucket = bucket; + /** + * @api private + */ + validateService: function validateService() { }, /** * @api private */ - populateParamFromArn: function populateParamFromArn(req) { - var parsedArn = req._parsedArn; - if (s3util.isArnInParam(req, 'Bucket')) { - req.params.Bucket = parsedArn.bucket; - } else if (s3util.isArnInParam(req, 'Name')) { - req.params.Name = parsedArn.accessPoint; + loadServiceClass: function loadServiceClass(serviceConfig) { + var config = serviceConfig; + if (!AWS.util.isEmpty(this.api)) { + return null; + } else if (config.apiConfig) { + return AWS.Service.defineServiceApi(this.constructor, config.apiConfig); + } else if (!this.constructor.services) { + return null; + } else { + config = new AWS.Config(AWS.config); + config.update(serviceConfig, true); + var version = config.apiVersions[this.constructor.serviceIdentifier]; + version = version || config.apiVersion; + return this.getLatestServiceClass(version); } }, /** - * Populate URI according to the ARN + * @api private */ - populateUriFromArn: function populateUriFromArn(req) { - var parsedArn = req._parsedArn; - - var endpoint = req.httpRequest.endpoint; - var useArnRegion = req.service.config.s3UseArnRegion; - var useFipsEndpoint = req.service.config.useFipsEndpoint; + getLatestServiceClass: function getLatestServiceClass(version) { + version = this.getLatestServiceVersion(version); + if (this.constructor.services[version] === null) { + AWS.Service.defineServiceApi(this.constructor, version); + } - endpoint.hostname = [ - 's3-outposts' + (useFipsEndpoint ? '-fips': ''), - useArnRegion ? parsedArn.region : req.service.config.region, - 'amazonaws.com' - ].join('.'); - endpoint.host = endpoint.hostname; + return this.constructor.services[version]; }, /** * @api private */ - populateEndpointForOutpostId: function populateEndpointForOutpostId(req) { - var endpoint = req.httpRequest.endpoint; - var useFipsEndpoint = req.service.config.useFipsEndpoint; - endpoint.hostname = [ - 's3-outposts' + (useFipsEndpoint ? '-fips': ''), - req.service.config.region, - 'amazonaws.com' - ].join('.'); - endpoint.host = endpoint.hostname; + getLatestServiceVersion: function getLatestServiceVersion(version) { + if (!this.constructor.services || this.constructor.services.length === 0) { + throw new Error('No services defined on ' + + this.constructor.serviceIdentifier); + } + + if (!version) { + version = 'latest'; + } else if (AWS.util.isType(version, Date)) { + version = AWS.util.date.iso8601(version).split('T')[0]; + } + + if (Object.hasOwnProperty(this.constructor.services, version)) { + return version; + } + + var keys = Object.keys(this.constructor.services).sort(); + var selectedVersion = null; + for (var i = keys.length - 1; i >= 0; i--) { + // versions that end in "*" are not available on disk and can be + // skipped, so do not choose these as selectedVersions + if (keys[i][keys[i].length - 1] !== '*') { + selectedVersion = keys[i]; + } + if (keys[i].substr(0, 10) <= version) { + return selectedVersion; + } + } + + throw new Error('Could not find ' + this.constructor.serviceIdentifier + + ' API to satisfy version constraint `' + version + '\''); }, /** * @api private */ - extractHostId: function(response) { - var hostId = response.httpResponse.headers ? response.httpResponse.headers['x-amz-id-2'] : null; - response.extendedRequestId = hostId; - if (response.error) { - response.error.extendedRequestId = hostId; - } - }, + api: {}, /** * @api private */ - validateArnRegion: function validateArnRegion(req) { - s3util.validateArnRegion(req, { allowFipsEndpoint: true }); - }, + defaultRetryCount: 3, /** * @api private */ - validateArnAccountWithParams: function validateArnAccountWithParams(req) { - var params = req.params; - var inputModel = req.service.api.operations[req.operation].input; - if (inputModel.members.AccountId) { - var parsedArn = req._parsedArn; - if (parsedArn.accountId) { - if (params.AccountId) { - if (params.AccountId !== parsedArn.accountId) { - throw AWS.util.error( - new Error(), - {code: 'ValidationError', message: 'AccountId in ARN and request params should be same.'} - ); - } - } else { - // Store accountId from ARN in params - params.AccountId = parsedArn.accountId; - } - } + customizeRequests: function customizeRequests(callback) { + if (!callback) { + this.customRequestHandler = null; + } else if (typeof callback === 'function') { + this.customRequestHandler = callback; + } else { + throw new Error('Invalid callback type \'' + typeof callback + '\' provided in customizeRequests'); } }, /** - * @api private + * Calls an operation on a service with the given input parameters. + * + * @param operation [String] the name of the operation to call on the service. + * @param params [map] a map of input options for the operation + * @callback callback function(err, data) + * If a callback is supplied, it is called when a response is returned + * from the service. + * @param err [Error] the error object returned from the request. + * Set to `null` if the request is successful. + * @param data [Object] the de-serialized data returned from + * the request. Set to `null` if a request error occurs. */ - validateAccountId: function(request) { - var params = request.params; - if (!Object.prototype.hasOwnProperty.call(params, 'AccountId')) return; - var accountId = params.AccountId; - //validate type - if (typeof accountId !== 'string') { - throw AWS.util.error( - new Error(), - {code: 'ValidationError', message: 'AccountId must be a string.'} - ); - } - //validate length - if (accountId.length < 1 || accountId.length > 63) { - throw AWS.util.error( - new Error(), - {code: 'ValidationError', message: 'AccountId length should be between 1 to 63 characters, inclusive.'} - ); + makeRequest: function makeRequest(operation, params, callback) { + if (typeof params === 'function') { + callback = params; + params = null; } - //validate pattern - var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; - if (!hostPattern.test(accountId)) { - throw AWS.util.error(new Error(), - {code: 'ValidationError', message: 'AccountId should be hostname compatible. AccountId: ' + accountId}); + + params = params || {}; + if (this.config.params) { // copy only toplevel bound params + var rules = this.api.operations[operation]; + if (rules) { + params = AWS.util.copy(params); + AWS.util.each(this.config.params, function(key, value) { + if (rules.input.members[key]) { + if (params[key] === undefined || params[key] === null) { + params[key] = value; + } + } + }); + } } + + var request = new AWS.Request(this, operation, params); + this.addAllRequestListeners(request); + this.attachMonitoringEmitter(request); + if (callback) request.send(callback); + return request; }, /** - * @api private + * Calls an operation on a service with the given input parameters, without + * any authentication data. This method is useful for "public" API operations. + * + * @param operation [String] the name of the operation to call on the service. + * @param params [map] a map of input options for the operation + * @callback callback function(err, data) + * If a callback is supplied, it is called when a response is returned + * from the service. + * @param err [Error] the error object returned from the request. + * Set to `null` if the request is successful. + * @param data [Object] the de-serialized data returned from + * the request. Set to `null` if a request error occurs. */ - getSigningName: function getSigningName(req) { - var _super = AWS.Service.prototype.getSigningName; - if (req && req._parsedArn && req._parsedArn.service) { - return req._parsedArn.service; - } else if (req.params.OutpostId && - (req.operation === 'createBucket' || - req.operation === 'listRegionalBuckets')) { - return 's3-outposts'; - } else { - return _super.call(this, req); + makeUnauthenticatedRequest: function makeUnauthenticatedRequest(operation, params, callback) { + if (typeof params === 'function') { + callback = params; + params = {}; } + + var request = this.makeRequest(operation, params).toUnauthenticated(); + return callback ? request.send(callback) : request; + }, + + /** + * Waits for a given state + * + * @param state [String] the state on the service to wait for + * @param params [map] a map of parameters to pass with each request + * @option params $waiter [map] a map of configuration options for the waiter + * @option params $waiter.delay [Number] The number of seconds to wait between + * requests + * @option params $waiter.maxAttempts [Number] The maximum number of requests + * to send while waiting + * @callback callback function(err, data) + * If a callback is supplied, it is called when a response is returned + * from the service. + * @param err [Error] the error object returned from the request. + * Set to `null` if the request is successful. + * @param data [Object] the de-serialized data returned from + * the request. Set to `null` if a request error occurs. + */ + waitFor: function waitFor(state, params, callback) { + var waiter = new AWS.ResourceWaiter(this, state); + return waiter.wait(params, callback); }, -}); + /** + * @api private + */ + addAllRequestListeners: function addAllRequestListeners(request) { + var list = [AWS.events, AWS.EventListeners.Core, this.serviceInterface(), + AWS.EventListeners.CorePost]; + for (var i = 0; i < list.length; i++) { + if (list[i]) request.addListeners(list[i]); + } -/***/ }), + // disable parameter validation + if (!this.config.paramValidation) { + request.removeListener('validate', + AWS.EventListeners.Core.VALIDATE_PARAMETERS); + } -/***/ 50280: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (this.config.logger) { // add logging events + request.addListeners(AWS.EventListeners.Logger); + } -var AWS = __nccwpck_require__(14741); -var regionUtil = __nccwpck_require__(63698); + this.setupRequestListeners(request); + // call prototype's customRequestHandler + if (typeof this.constructor.prototype.customRequestHandler === 'function') { + this.constructor.prototype.customRequestHandler(request); + } + // call instance's customRequestHandler + if (Object.prototype.hasOwnProperty.call(this, 'customRequestHandler') && typeof this.customRequestHandler === 'function') { + this.customRequestHandler(request); + } + }, -var s3util = { /** + * Event recording metrics for a whole API call. + * @returns {object} a subset of api call metrics * @api private */ - isArnInParam: function isArnInParam(req, paramName) { - var inputShape = (req.service.api.operations[req.operation] || {}).input || {}; - var inputMembers = inputShape.members || {}; - if (!req.params[paramName] || !inputMembers[paramName]) return false; - return AWS.util.ARN.validate(req.params[paramName]); + apiCallEvent: function apiCallEvent(request) { + var api = request.service.api.operations[request.operation]; + var monitoringEvent = { + Type: 'ApiCall', + Api: api ? api.name : request.operation, + Version: 1, + Service: request.service.api.serviceId || request.service.api.endpointPrefix, + Region: request.httpRequest.region, + MaxRetriesExceeded: 0, + UserAgent: request.httpRequest.getUserAgent(), + }; + var response = request.response; + if (response.httpResponse.statusCode) { + monitoringEvent.FinalHttpStatusCode = response.httpResponse.statusCode; + } + if (response.error) { + var error = response.error; + var statusCode = response.httpResponse.statusCode; + if (statusCode > 299) { + if (error.code) monitoringEvent.FinalAwsException = error.code; + if (error.message) monitoringEvent.FinalAwsExceptionMessage = error.message; + } else { + if (error.code || error.name) monitoringEvent.FinalSdkException = error.code || error.name; + if (error.message) monitoringEvent.FinalSdkExceptionMessage = error.message; + } + } + return monitoringEvent; }, /** - * Validate service component from ARN supplied in Bucket parameter + * Event recording metrics for an API call attempt. + * @returns {object} a subset of api call attempt metrics + * @api private */ - validateArnService: function validateArnService(req) { - var parsedArn = req._parsedArn; - - if (parsedArn.service !== 's3' - && parsedArn.service !== 's3-outposts' - && parsedArn.service !== 's3-object-lambda') { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'expect \'s3\' or \'s3-outposts\' or \'s3-object-lambda\' in ARN service component' - }); + apiAttemptEvent: function apiAttemptEvent(request) { + var api = request.service.api.operations[request.operation]; + var monitoringEvent = { + Type: 'ApiCallAttempt', + Api: api ? api.name : request.operation, + Version: 1, + Service: request.service.api.serviceId || request.service.api.endpointPrefix, + Fqdn: request.httpRequest.endpoint.hostname, + UserAgent: request.httpRequest.getUserAgent(), + }; + var response = request.response; + if (response.httpResponse.statusCode) { + monitoringEvent.HttpStatusCode = response.httpResponse.statusCode; + } + if ( + !request._unAuthenticated && + request.service.config.credentials && + request.service.config.credentials.accessKeyId + ) { + monitoringEvent.AccessKey = request.service.config.credentials.accessKeyId; + } + if (!response.httpResponse.headers) return monitoringEvent; + if (request.httpRequest.headers['x-amz-security-token']) { + monitoringEvent.SessionToken = request.httpRequest.headers['x-amz-security-token']; + } + if (response.httpResponse.headers['x-amzn-requestid']) { + monitoringEvent.XAmznRequestId = response.httpResponse.headers['x-amzn-requestid']; + } + if (response.httpResponse.headers['x-amz-request-id']) { + monitoringEvent.XAmzRequestId = response.httpResponse.headers['x-amz-request-id']; } + if (response.httpResponse.headers['x-amz-id-2']) { + monitoringEvent.XAmzId2 = response.httpResponse.headers['x-amz-id-2']; + } + return monitoringEvent; }, /** - * Validate account ID from ARN supplied in Bucket parameter is a valid account + * Add metrics of failed request. + * @api private */ - validateArnAccount: function validateArnAccount(req) { - var parsedArn = req._parsedArn; - - if (!/[0-9]{12}/.exec(parsedArn.accountId)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'ARN accountID does not match regex "[0-9]{12}"' - }); + attemptFailEvent: function attemptFailEvent(request) { + var monitoringEvent = this.apiAttemptEvent(request); + var response = request.response; + var error = response.error; + if (response.httpResponse.statusCode > 299 ) { + if (error.code) monitoringEvent.AwsException = error.code; + if (error.message) monitoringEvent.AwsExceptionMessage = error.message; + } else { + if (error.code || error.name) monitoringEvent.SdkException = error.code || error.name; + if (error.message) monitoringEvent.SdkExceptionMessage = error.message; } + return monitoringEvent; }, /** - * Validate ARN supplied in Bucket parameter is a valid access point ARN + * Attach listeners to request object to fetch metrics of each request + * and emit data object through \'ApiCall\' and \'ApiCallAttempt\' events. + * @api private */ - validateS3AccessPointArn: function validateS3AccessPointArn(req) { - var parsedArn = req._parsedArn; - - //can be ':' or '/' - var delimiter = parsedArn.resource['accesspoint'.length]; - - if (parsedArn.resource.split(delimiter).length !== 2) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Access Point ARN should have one resource accesspoint/{accesspointName}' - }); - } + attachMonitoringEmitter: function attachMonitoringEmitter(request) { + var attemptTimestamp; //timestamp marking the beginning of a request attempt + var attemptStartRealTime; //Start time of request attempt. Used to calculating attemptLatency + var attemptLatency; //latency from request sent out to http response reaching SDK + var callStartRealTime; //Start time of API call. Used to calculating API call latency + var attemptCount = 0; //request.retryCount is not reliable here + var region; //region cache region for each attempt since it can be updated in plase (e.g. s3) + var callTimestamp; //timestamp when the request is created + var self = this; + var addToHead = true; - var accessPoint = parsedArn.resource.split(delimiter)[1]; - var accessPointPrefix = accessPoint + '-' + parsedArn.accountId; - if (!s3util.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\./)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Access point resource in ARN is not DNS compatible. Got ' + accessPoint - }); - } + request.on('validate', function () { + callStartRealTime = AWS.util.realClock.now(); + callTimestamp = Date.now(); + }, addToHead); + request.on('sign', function () { + attemptStartRealTime = AWS.util.realClock.now(); + attemptTimestamp = Date.now(); + region = request.httpRequest.region; + attemptCount++; + }, addToHead); + request.on('validateResponse', function() { + attemptLatency = Math.round(AWS.util.realClock.now() - attemptStartRealTime); + }); + request.addNamedListener('API_CALL_ATTEMPT', 'success', function API_CALL_ATTEMPT() { + var apiAttemptEvent = self.apiAttemptEvent(request); + apiAttemptEvent.Timestamp = attemptTimestamp; + apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; + apiAttemptEvent.Region = region; + self.emit('apiCallAttempt', [apiAttemptEvent]); + }); + request.addNamedListener('API_CALL_ATTEMPT_RETRY', 'retry', function API_CALL_ATTEMPT_RETRY() { + var apiAttemptEvent = self.attemptFailEvent(request); + apiAttemptEvent.Timestamp = attemptTimestamp; + //attemptLatency may not be available if fail before response + attemptLatency = attemptLatency || + Math.round(AWS.util.realClock.now() - attemptStartRealTime); + apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; + apiAttemptEvent.Region = region; + self.emit('apiCallAttempt', [apiAttemptEvent]); + }); + request.addNamedListener('API_CALL', 'complete', function API_CALL() { + var apiCallEvent = self.apiCallEvent(request); + apiCallEvent.AttemptCount = attemptCount; + if (apiCallEvent.AttemptCount <= 0) return; + apiCallEvent.Timestamp = callTimestamp; + var latency = Math.round(AWS.util.realClock.now() - callStartRealTime); + apiCallEvent.Latency = latency >= 0 ? latency : 0; + var response = request.response; + if ( + response.error && + response.error.retryable && + typeof response.retryCount === 'number' && + typeof response.maxRetries === 'number' && + (response.retryCount >= response.maxRetries) + ) { + apiCallEvent.MaxRetriesExceeded = 1; + } + self.emit('apiCall', [apiCallEvent]); + }); + }, - //set parsed valid access point - req._parsedArn.accessPoint = accessPoint; + /** + * Override this method to setup any custom request listeners for each + * new request to the service. + * + * @method_abstract This is an abstract method. + */ + setupRequestListeners: function setupRequestListeners(request) { }, /** - * Validate Outposts ARN supplied in Bucket parameter is a valid outposts ARN + * Gets the signing name for a given request + * @api private */ - validateOutpostsArn: function validateOutpostsArn(req) { - var parsedArn = req._parsedArn; + getSigningName: function getSigningName() { + return this.api.signingName || this.api.endpointPrefix; + }, - if ( - parsedArn.resource.indexOf('outpost:') !== 0 && - parsedArn.resource.indexOf('outpost/') !== 0 - ) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'ARN resource should begin with \'outpost/\'' - }); + /** + * Gets the signer class for a given request + * @api private + */ + getSignerClass: function getSignerClass(request) { + var version; + // get operation authtype if present + var operation = null; + var authtype = ''; + if (request) { + var operations = request.service.api.operations || {}; + operation = operations[request.operation] || null; + authtype = operation ? operation.authtype : ''; } - - //can be ':' or '/' - var delimiter = parsedArn.resource['outpost'.length]; - var outpostId = parsedArn.resource.split(delimiter)[1]; - var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(outpostId)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Outpost resource in ARN is not DNS compatible. Got ' + outpostId - }); + if (this.config.signatureVersion) { + version = this.config.signatureVersion; + } else if (authtype === 'v4' || authtype === 'v4-unsigned-body') { + version = 'v4'; + } else if (authtype === 'bearer') { + version = 'bearer'; + } else { + version = this.api.signatureVersion; } - req._parsedArn.outpostId = outpostId; + return AWS.Signers.RequestSigner.getVersion(version); }, /** - * Validate Outposts ARN supplied in Bucket parameter is a valid outposts ARN + * @api private */ - validateOutpostsAccessPointArn: function validateOutpostsAccessPointArn(req) { - var parsedArn = req._parsedArn; - - //can be ':' or '/' - var delimiter = parsedArn.resource['outpost'.length]; - - if (parsedArn.resource.split(delimiter).length !== 4) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}' - }); + serviceInterface: function serviceInterface() { + switch (this.api.protocol) { + case 'ec2': return AWS.EventListeners.Query; + case 'query': return AWS.EventListeners.Query; + case 'json': return AWS.EventListeners.Json; + case 'rest-json': return AWS.EventListeners.RestJson; + case 'rest-xml': return AWS.EventListeners.RestXml; } - - var accessPoint = parsedArn.resource.split(delimiter)[3]; - var accessPointPrefix = accessPoint + '-' + parsedArn.accountId; - if (!s3util.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\./)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Access point resource in ARN is not DNS compatible. Got ' + accessPoint - }); + if (this.api.protocol) { + throw new Error('Invalid service `protocol\' ' + + this.api.protocol + ' in API config'); } + }, - //set parsed valid access point - req._parsedArn.accessPoint = accessPoint; + /** + * @api private + */ + successfulResponse: function successfulResponse(resp) { + return resp.httpResponse.statusCode < 300; }, /** - * Validate region field in ARN supplied in Bucket parameter is a valid region + * How many times a failed request should be retried before giving up. + * the defaultRetryCount can be overriden by service classes. + * + * @api private */ - validateArnRegion: function validateArnRegion(req, options) { - if (options === undefined) { - options = {}; + numRetries: function numRetries() { + if (this.config.maxRetries !== undefined) { + return this.config.maxRetries; + } else { + return this.defaultRetryCount; } + }, - var useArnRegion = s3util.loadUseArnRegionConfig(req); - var regionFromArn = req._parsedArn.region; - var clientRegion = req.service.config.region; - var useFipsEndpoint = req.service.config.useFipsEndpoint; - var allowFipsEndpoint = options.allowFipsEndpoint || false; + /** + * @api private + */ + retryDelays: function retryDelays(retryCount, err) { + return AWS.util.calculateRetryDelay(retryCount, this.config.retryDelayOptions, err); + }, - if (!regionFromArn) { - var message = 'ARN region is empty'; - if (req._parsedArn.service === 's3') { - message = message + '\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. ' + - 'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).'; - } - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: message - }); - } + /** + * @api private + */ + retryableError: function retryableError(error) { + if (this.timeoutError(error)) return true; + if (this.networkingError(error)) return true; + if (this.expiredCredentialsError(error)) return true; + if (this.throttledError(error)) return true; + if (error.statusCode >= 500) return true; + return false; + }, - if (useFipsEndpoint && !allowFipsEndpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'ARN endpoint is not compatible with FIPS region' - }); - } + /** + * @api private + */ + networkingError: function networkingError(error) { + return error.code === 'NetworkingError'; + }, - if (regionFromArn.indexOf('fips') >= 0) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'FIPS region not allowed in ARN' - }); - } + /** + * @api private + */ + timeoutError: function timeoutError(error) { + return error.code === 'TimeoutError'; + }, - if (!useArnRegion && regionFromArn !== clientRegion) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Configured region conflicts with access point region' - }); - } else if ( - useArnRegion && - regionUtil.getEndpointSuffix(regionFromArn) !== regionUtil.getEndpointSuffix(clientRegion) - ) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Configured region and access point region not in same partition' - }); - } + /** + * @api private + */ + expiredCredentialsError: function expiredCredentialsError(error) { + // TODO : this only handles *one* of the expired credential codes + return (error.code === 'ExpiredTokenException'); + }, - if (req.service.config.useAccelerateEndpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'useAccelerateEndpoint config is not supported with access point ARN' - }); + /** + * @api private + */ + clockSkewError: function clockSkewError(error) { + switch (error.code) { + case 'RequestTimeTooSkewed': + case 'RequestExpired': + case 'InvalidSignatureException': + case 'SignatureDoesNotMatch': + case 'AuthFailure': + case 'RequestInTheFuture': + return true; + default: return false; } + }, - if (req._parsedArn.service === 's3-outposts' && req.service.config.useDualstackEndpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Dualstack is not supported with outposts access point ARN' - }); - } + /** + * @api private + */ + getSkewCorrectedDate: function getSkewCorrectedDate() { + return new Date(Date.now() + this.config.systemClockOffset); }, - loadUseArnRegionConfig: function loadUseArnRegionConfig(req) { - var envName = 'AWS_S3_USE_ARN_REGION'; - var configName = 's3_use_arn_region'; - var useArnRegion = true; - var originalConfig = req.service._originalConfig || {}; - if (req.service.config.s3UseArnRegion !== undefined) { - return req.service.config.s3UseArnRegion; - } else if (originalConfig.s3UseArnRegion !== undefined) { - useArnRegion = originalConfig.s3UseArnRegion === true; - } else if (AWS.util.isNode()) { - //load from environmental variable AWS_USE_ARN_REGION - if (process.env[envName]) { - var value = process.env[envName].trim().toLowerCase(); - if (['false', 'true'].indexOf(value) < 0) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: envName + ' only accepts true or false. Got ' + process.env[envName], - retryable: false - }); - } - useArnRegion = value === 'true'; - } else { //load from shared config property use_arn_region - var profiles = {}; - var profile = {}; - try { - profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader); - profile = profiles[process.env.AWS_PROFILE || AWS.util.defaultProfile]; - } catch (e) {} - if (profile[configName]) { - if (['false', 'true'].indexOf(profile[configName].trim().toLowerCase()) < 0) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: configName + ' only accepts true or false. Got ' + profile[configName], - retryable: false - }); - } - useArnRegion = profile[configName].trim().toLowerCase() === 'true'; - } - } + /** + * @api private + */ + applyClockOffset: function applyClockOffset(newServerTime) { + if (newServerTime) { + this.config.systemClockOffset = newServerTime - Date.now(); } - req.service.config.s3UseArnRegion = useArnRegion; - return useArnRegion; }, /** - * Validations before URI can be populated + * @api private */ - validatePopulateUriFromArn: function validatePopulateUriFromArn(req) { - if (req.service._originalConfig && req.service._originalConfig.endpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Custom endpoint is not compatible with access point ARN' - }); + isClockSkewed: function isClockSkewed(newServerTime) { + if (newServerTime) { + return Math.abs(this.getSkewCorrectedDate().getTime() - newServerTime) >= 300000; } + }, - if (req.service.config.s3ForcePathStyle) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Cannot construct path-style endpoint with access point' - }); + /** + * @api private + */ + throttledError: function throttledError(error) { + // this logic varies between services + if (error.statusCode === 429) return true; + switch (error.code) { + case 'ProvisionedThroughputExceededException': + case 'Throttling': + case 'ThrottlingException': + case 'RequestLimitExceeded': + case 'RequestThrottled': + case 'RequestThrottledException': + case 'TooManyRequestsException': + case 'TransactionInProgressException': //dynamodb + case 'EC2ThrottledException': + return true; + default: + return false; } }, /** - * Returns true if the bucket name is DNS compatible. Buckets created - * outside of the classic region MUST be DNS compatible. - * * @api private */ - dnsCompatibleBucketName: function dnsCompatibleBucketName(bucketName) { - var b = bucketName; - var domain = new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/); - var ipAddress = new RegExp(/(\d+\.){3}\d+/); - var dots = new RegExp(/\.\./); - return (b.match(domain) && !b.match(ipAddress) && !b.match(dots)) ? true : false; - }, -}; + endpointFromTemplate: function endpointFromTemplate(endpoint) { + if (typeof endpoint !== 'string') return endpoint; -/** - * @api private - */ -module.exports = s3util; + var e = endpoint; + e = e.replace(/\{service\}/g, this.api.endpointPrefix); + e = e.replace(/\{region\}/g, this.config.region); + e = e.replace(/\{scheme\}/g, this.config.sslEnabled ? 'https' : 'http'); + return e; + }, + /** + * @api private + */ + setEndpoint: function setEndpoint(endpoint) { + this.endpoint = new AWS.Endpoint(endpoint, this.config); + }, -/***/ }), + /** + * @api private + */ + paginationConfig: function paginationConfig(operation, throwException) { + var paginator = this.api.operations[operation].paginator; + if (!paginator) { + if (throwException) { + var e = new Error(); + throw AWS.util.error(e, 'No pagination configuration for ' + operation); + } + return null; + } -/***/ 82470: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + return paginator; + } +}); -var AWS = __nccwpck_require__(14741); +AWS.util.update(AWS.Service, { -AWS.util.update(AWS.SQS.prototype, { /** + * Adds one method for each operation described in the api configuration + * * @api private */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('build', this.buildEndpoint); - - if (request.service.config.computeChecksums) { - if (request.operation === 'sendMessage') { - request.addListener('extractData', this.verifySendMessageChecksum); - } else if (request.operation === 'sendMessageBatch') { - request.addListener('extractData', this.verifySendMessageBatchChecksum); - } else if (request.operation === 'receiveMessage') { - request.addListener('extractData', this.verifyReceiveMessageChecksum); + defineMethods: function defineMethods(svc) { + AWS.util.each(svc.prototype.api.operations, function iterator(method) { + if (svc.prototype[method]) return; + var operation = svc.prototype.api.operations[method]; + if (operation.authtype === 'none') { + svc.prototype[method] = function (params, callback) { + return this.makeUnauthenticatedRequest(method, params, callback); + }; + } else { + svc.prototype[method] = function (params, callback) { + return this.makeRequest(method, params, callback); + }; } - } + }); }, /** - * @api private + * Defines a new Service class using a service identifier and list of versions + * including an optional set of features (functions) to apply to the class + * prototype. + * + * @param serviceIdentifier [String] the identifier for the service + * @param versions [Array] a list of versions that work with this + * service + * @param features [Object] an object to attach to the prototype + * @return [Class] the service class defined by this function. */ - verifySendMessageChecksum: function verifySendMessageChecksum(response) { - if (!response.data) return; + defineService: function defineService(serviceIdentifier, versions, features) { + AWS.Service._serviceMap[serviceIdentifier] = true; + if (!Array.isArray(versions)) { + features = versions; + versions = []; + } - var md5 = response.data.MD5OfMessageBody; - var body = this.params.MessageBody; - var calculatedMd5 = this.service.calculateChecksum(body); - if (calculatedMd5 !== md5) { - var msg = 'Got "' + response.data.MD5OfMessageBody + - '", expecting "' + calculatedMd5 + '".'; - this.service.throwInvalidChecksumError(response, - [response.data.MessageId], msg); + var svc = inherit(AWS.Service, features || {}); + + if (typeof serviceIdentifier === 'string') { + AWS.Service.addVersions(svc, versions); + + var identifier = svc.serviceIdentifier || serviceIdentifier; + svc.serviceIdentifier = identifier; + } else { // defineService called with an API + svc.prototype.api = serviceIdentifier; + AWS.Service.defineMethods(svc); + } + AWS.SequentialExecutor.call(this.prototype); + //util.clientSideMonitoring is only available in node + if (!this.prototype.publisher && AWS.util.clientSideMonitoring) { + var Publisher = AWS.util.clientSideMonitoring.Publisher; + var configProvider = AWS.util.clientSideMonitoring.configProvider; + var publisherConfig = configProvider(); + this.prototype.publisher = new Publisher(publisherConfig); + if (publisherConfig.enabled) { + //if csm is enabled in environment, SDK should send all metrics + AWS.Service._clientSideMonitoring = true; + } } + AWS.SequentialExecutor.call(svc.prototype); + AWS.Service.addDefaultMonitoringListeners(svc.prototype); + return svc; }, /** * @api private */ - verifySendMessageBatchChecksum: function verifySendMessageBatchChecksum(response) { - if (!response.data) return; + addVersions: function addVersions(svc, versions) { + if (!Array.isArray(versions)) versions = [versions]; - var service = this.service; - var entries = {}; - var errors = []; - var messageIds = []; - AWS.util.arrayEach(response.data.Successful, function (entry) { - entries[entry.Id] = entry; - }); - AWS.util.arrayEach(this.params.Entries, function (entry) { - if (entries[entry.Id]) { - var md5 = entries[entry.Id].MD5OfMessageBody; - var body = entry.MessageBody; - if (!service.isChecksumValid(md5, body)) { - errors.push(entry.Id); - messageIds.push(entries[entry.Id].MessageId); - } + svc.services = svc.services || {}; + for (var i = 0; i < versions.length; i++) { + if (svc.services[versions[i]] === undefined) { + svc.services[versions[i]] = null; } - }); - - if (errors.length > 0) { - service.throwInvalidChecksumError(response, messageIds, - 'Invalid messages: ' + errors.join(', ')); } + + svc.apiVersions = Object.keys(svc.services).sort(); }, /** * @api private */ - verifyReceiveMessageChecksum: function verifyReceiveMessageChecksum(response) { - if (!response.data) return; + defineServiceApi: function defineServiceApi(superclass, version, apiConfig) { + var svc = inherit(superclass, { + serviceIdentifier: superclass.serviceIdentifier + }); - var service = this.service; - var messageIds = []; - AWS.util.arrayEach(response.data.Messages, function(message) { - var md5 = message.MD5OfBody; - var body = message.Body; - if (!service.isChecksumValid(md5, body)) { - messageIds.push(message.MessageId); + function setApi(api) { + if (api.isApi) { + svc.prototype.api = api; + } else { + svc.prototype.api = new Api(api, { + serviceIdentifier: superclass.serviceIdentifier + }); } - }); + } - if (messageIds.length > 0) { - service.throwInvalidChecksumError(response, messageIds, - 'Invalid messages: ' + messageIds.join(', ')); + if (typeof version === 'string') { + if (apiConfig) { + setApi(apiConfig); + } else { + try { + setApi(AWS.apiLoader(superclass.serviceIdentifier, version)); + } catch (err) { + throw AWS.util.error(err, { + message: 'Could not find API configuration ' + + superclass.serviceIdentifier + '-' + version + }); + } + } + if (!Object.prototype.hasOwnProperty.call(superclass.services, version)) { + superclass.apiVersions = superclass.apiVersions.concat(version).sort(); + } + superclass.services[version] = svc; + } else { + setApi(version); } - }, - /** - * @api private - */ - throwInvalidChecksumError: function throwInvalidChecksumError(response, ids, message) { - response.error = AWS.util.error(new Error(), { - retryable: true, - code: 'InvalidChecksum', - messageIds: ids, - message: response.request.operation + - ' returned an invalid MD5 response. ' + message - }); + AWS.Service.defineMethods(svc); + return svc; }, /** * @api private */ - isChecksumValid: function isChecksumValid(checksum, data) { - return this.calculateChecksum(data) === checksum; + hasService: function(identifier) { + return Object.prototype.hasOwnProperty.call(AWS.Service._serviceMap, identifier); }, /** + * @param attachOn attach default monitoring listeners to object + * + * Each monitoring event should be emitted from service client to service constructor prototype and then + * to global service prototype like bubbling up. These default monitoring events listener will transfer + * the monitoring events to the upper layer. * @api private */ - calculateChecksum: function calculateChecksum(data) { - return AWS.util.crypto.md5(data, 'hex'); + addDefaultMonitoringListeners: function addDefaultMonitoringListeners(attachOn) { + attachOn.addNamedListener('MONITOR_EVENTS_BUBBLE', 'apiCallAttempt', function EVENTS_BUBBLE(event) { + var baseClass = Object.getPrototypeOf(attachOn); + if (baseClass._events) baseClass.emit('apiCallAttempt', [event]); + }); + attachOn.addNamedListener('CALL_EVENTS_BUBBLE', 'apiCall', function CALL_EVENTS_BUBBLE(event) { + var baseClass = Object.getPrototypeOf(attachOn); + if (baseClass._events) baseClass.emit('apiCall', [event]); + }); }, /** * @api private */ - buildEndpoint: function buildEndpoint(request) { - var url = request.httpRequest.params.QueueUrl; - if (url) { - request.httpRequest.endpoint = new AWS.Endpoint(url); - - // signature version 4 requires the region name to be set, - // sqs queue urls contain the region name - var matches = request.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./); - if (matches) request.httpRequest.region = matches[1]; - } - } + _serviceMap: {} }); +AWS.util.mixin(AWS.Service, AWS.SequentialExecutor); -/***/ }), +/** + * @api private + */ +module.exports = AWS.Service; -/***/ 46889: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var resolveRegionalEndpointsFlag = __nccwpck_require__(4872); -var ENV_REGIONAL_ENDPOINT_ENABLED = 'AWS_STS_REGIONAL_ENDPOINTS'; -var CONFIG_REGIONAL_ENDPOINT_ENABLED = 'sts_regional_endpoints'; +/***/ }), -AWS.util.update(AWS.STS.prototype, { - /** - * @overload credentialsFrom(data, credentials = null) - * Creates a credentials object from STS response data containing - * credentials information. Useful for quickly setting AWS credentials. - * - * @note This is a low-level utility function. If you want to load temporary - * credentials into your process for subsequent requests to AWS resources, - * you should use {AWS.TemporaryCredentials} instead. - * @param data [map] data retrieved from a call to {getFederatedToken}, - * {getSessionToken}, {assumeRole}, or {assumeRoleWithWebIdentity}. - * @param credentials [AWS.Credentials] an optional credentials object to - * fill instead of creating a new object. Useful when modifying an - * existing credentials object from a refresh call. - * @return [AWS.TemporaryCredentials] the set of temporary credentials - * loaded from a raw STS operation response. - * @example Using credentialsFrom to load global AWS credentials - * var sts = new AWS.STS(); - * sts.getSessionToken(function (err, data) { - * if (err) console.log("Error getting credentials"); - * else { - * AWS.config.credentials = sts.credentialsFrom(data); - * } - * }); - * @see AWS.TemporaryCredentials - */ - credentialsFrom: function credentialsFrom(data, credentials) { - if (!data) return null; - if (!credentials) credentials = new AWS.TemporaryCredentials(); - credentials.expired = false; - credentials.accessKeyId = data.Credentials.AccessKeyId; - credentials.secretAccessKey = data.Credentials.SecretAccessKey; - credentials.sessionToken = data.Credentials.SessionToken; - credentials.expireTime = data.Credentials.Expiration; - return credentials; - }, +/***/ 46640: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - assumeRoleWithWebIdentity: function assumeRoleWithWebIdentity(params, callback) { - return this.makeUnauthenticatedRequest('assumeRoleWithWebIdentity', params, callback); - }, +var AWS = __nccwpck_require__(53832); - assumeRoleWithSAML: function assumeRoleWithSAML(params, callback) { - return this.makeUnauthenticatedRequest('assumeRoleWithSAML', params, callback); +AWS.util.update(AWS.APIGateway.prototype, { +/** + * Sets the Accept header to application/json. + * + * @api private + */ + setAcceptHeader: function setAcceptHeader(req) { + var httpRequest = req.httpRequest; + if (!httpRequest.headers.Accept) { + httpRequest.headers['Accept'] = 'application/json'; + } }, /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { - request.addListener('validate', this.optInRegionalEndpoint, true); - }, - - /** - * @api private - */ - optInRegionalEndpoint: function optInRegionalEndpoint(req) { - var service = req.service; - var config = service.config; - config.stsRegionalEndpoints = resolveRegionalEndpointsFlag(service._originalConfig, { - env: ENV_REGIONAL_ENDPOINT_ENABLED, - sharedConfig: CONFIG_REGIONAL_ENDPOINT_ENABLED, - clientConfig: 'stsRegionalEndpoints' - }); - if ( - config.stsRegionalEndpoints === 'regional' && - service.isGlobalEndpoint - ) { - //client will throw if region is not supplied; request will be signed with specified region - if (!config.region) { - throw AWS.util.error(new Error(), - {code: 'ConfigError', message: 'Missing region in config'}); + request.addListener('build', this.setAcceptHeader); + if (request.operation === 'getExport') { + var params = request.params || {}; + if (params.exportType === 'swagger') { + request.addListener('extractData', AWS.util.convertPayloadToString); } - var insertPoint = config.endpoint.indexOf('.amazonaws.com'); - var regionalEndpoint = config.endpoint.substring(0, insertPoint) + - '.' + config.region + config.endpoint.substring(insertPoint); - req.httpRequest.updateEndpoint(regionalEndpoint); - req.httpRequest.region = config.region; } } - }); + /***/ }), -/***/ 34613: +/***/ 47222: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); - -AWS.util.hideProperties(AWS, ['SimpleWorkflow']); - -/** - * @constant - * @readonly - * Backwards compatibility for access to the {AWS.SWF} service class. - */ -AWS.SimpleWorkflow = AWS.SWF; +var AWS = __nccwpck_require__(53832); +// pull in CloudFront signer +__nccwpck_require__(42712); -/***/ }), +AWS.util.update(AWS.CloudFront.prototype, { -/***/ 35858: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + setupRequestListeners: function setupRequestListeners(request) { + request.addListener('extractData', AWS.util.hoistPayloadMember); + } -var IniLoader = (__nccwpck_require__(4544).IniLoader); -/** - * Singleton object to load specified config/credentials files. - * It will cache all the files ever loaded; - */ -module.exports.b = new IniLoader(); +}); /***/ }), -/***/ 4544: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var os = __nccwpck_require__(22037); -var path = __nccwpck_require__(71017); - -function parseFile(filename) { - return AWS.util.ini.parse(AWS.util.readFileSync(filename)); -} - -function getProfiles(fileContent) { - var tmpContent = {}; - Object.keys(fileContent).forEach(function(sectionName) { - if (/^sso-session\s/.test(sectionName)) return; - Object.defineProperty(tmpContent, sectionName.replace(/^profile\s/, ''), { - value: fileContent[sectionName], - enumerable: true - }); - }); - return tmpContent; -} +/***/ 19657: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -function getSsoSessions(fileContent) { - var tmpContent = {}; - Object.keys(fileContent).forEach(function(sectionName) { - if (!/^sso-session\s/.test(sectionName)) return; - Object.defineProperty(tmpContent, sectionName.replace(/^sso-session\s/, ''), { - value: fileContent[sectionName], - enumerable: true - }); - }); - return tmpContent; -} +var AWS = __nccwpck_require__(53832); /** - * Ini file loader class the same as that used in the SDK. It loads and - * parses config and credentials files in .ini format and cache the content - * to assure files are only read once. - * Note that calling operations on the instance instantiated from this class - * won't affect the behavior of SDK since SDK uses an internal singleton of - * this class. - * @!macro nobrowser + * Constructs a service interface object. Each API operation is exposed as a + * function on service. + * + * ### Sending a Request Using CloudSearchDomain + * + * ```javascript + * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); + * csd.search(params, function (err, data) { + * if (err) console.log(err, err.stack); // an error occurred + * else console.log(data); // successful response + * }); + * ``` + * + * ### Locking the API Version + * + * In order to ensure that the CloudSearchDomain object uses this specific API, + * you can construct the object by passing the `apiVersion` option to the + * constructor: + * + * ```javascript + * var csd = new AWS.CloudSearchDomain({ + * endpoint: 'my.host.tld', + * apiVersion: '2013-01-01' + * }); + * ``` + * + * You can also set the API version globally in `AWS.config.apiVersions` using + * the **cloudsearchdomain** service identifier: + * + * ```javascript + * AWS.config.apiVersions = { + * cloudsearchdomain: '2013-01-01', + * // other service API versions + * }; + * + * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); + * ``` + * + * @note You *must* provide an `endpoint` configuration parameter when + * constructing this service. See {constructor} for more information. + * + * @!method constructor(options = {}) + * Constructs a service object. This object has one method for each + * API operation. + * + * @example Constructing a CloudSearchDomain object + * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); + * @note You *must* provide an `endpoint` when constructing this service. + * @option (see AWS.Config.constructor) + * + * @service cloudsearchdomain + * @version 2013-01-01 */ -AWS.IniLoader = AWS.util.inherit({ - constructor: function IniLoader() { - this.resolvedProfiles = {}; - this.resolvedSsoSessions = {}; - }, - - /** Remove all cached files. Used after config files are updated. */ - clearCachedFiles: function clearCachedFiles() { - this.resolvedProfiles = {}; - this.resolvedSsoSessions = {}; - }, - +AWS.util.update(AWS.CloudSearchDomain.prototype, { /** - * Load configurations from config/credentials files and cache them - * for later use. If no file is specified it will try to load default files. - * - * @param options [map] information describing the file - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var or '~/.aws/config' if - * isConfig is set to true) - * path to the file to be read. - * @option options isConfig [Boolean] (false) True to read config file. - * @return [map] object containing contents from file in key-value - * pairs. + * @api private */ - loadFrom: function loadFrom(options) { - options = options || {}; - var isConfig = options.isConfig === true; - var filename = options.filename || this.getDefaultFilePath(isConfig); - if (!this.resolvedProfiles[filename]) { - var fileContent = parseFile(filename); - if (isConfig) { - Object.defineProperty(this.resolvedProfiles, filename, { - value: getProfiles(fileContent) - }); - } else { - Object.defineProperty(this.resolvedProfiles, filename, { value: fileContent }); - } + validateService: function validateService() { + if (!this.config.endpoint || this.config.endpoint.indexOf('{') >= 0) { + var msg = 'AWS.CloudSearchDomain requires an explicit ' + + '`endpoint\' configuration option.'; + throw AWS.util.error(new Error(), + {name: 'InvalidEndpoint', message: msg}); } - return this.resolvedProfiles[filename]; }, /** - * Load sso sessions from config/credentials files and cache them - * for later use. If no file is specified it will try to load default file. - * - * @param options [map] information describing the file - * @option options filename [String] ('~/.aws/config' or defined by - * AWS_CONFIG_FILE process env var) - * @return [map] object containing contents from file in key-value - * pairs. + * @api private */ - loadSsoSessionsFrom: function loadSsoSessionsFrom(options) { - options = options || {}; - var filename = options.filename || this.getDefaultFilePath(true); - if (!this.resolvedSsoSessions[filename]) { - var fileContent = parseFile(filename); - Object.defineProperty(this.resolvedSsoSessions, filename, { - value: getSsoSessions(fileContent) - }); + setupRequestListeners: function setupRequestListeners(request) { + request.removeListener('validate', + AWS.EventListeners.Core.VALIDATE_CREDENTIALS + ); + request.onAsync('validate', this.validateCredentials); + request.addListener('validate', this.updateRegion); + if (request.operation === 'search') { + request.addListener('build', this.convertGetToPost); } - return this.resolvedSsoSessions[filename]; }, /** * @api private */ - getDefaultFilePath: function getDefaultFilePath(isConfig) { - return path.join( - this.getHomeDir(), - '.aws', - isConfig ? 'config' : 'credentials' - ); + validateCredentials: function(req, done) { + if (!req.service.api.signatureVersion) return done(); // none + req.service.config.getCredentials(function(err) { + if (err) { + req.removeListener('sign', AWS.EventListeners.Core.SIGN); + } + done(); + }); }, /** * @api private */ - getHomeDir: function getHomeDir() { - var env = process.env; - var home = env.HOME || - env.USERPROFILE || - (env.HOMEPATH ? ((env.HOMEDRIVE || 'C:/') + env.HOMEPATH) : null); - - if (home) { - return home; - } - - if (typeof os.homedir === 'function') { - return os.homedir(); + convertGetToPost: function(request) { + var httpRequest = request.httpRequest; + if (httpRequest.method === 'POST') { + return; } + // convert queries to POST to avoid length restrictions + var path = httpRequest.path.split('?'); + httpRequest.method = 'POST'; + httpRequest.path = path[0]; + httpRequest.body = path[1]; + httpRequest.headers['Content-Length'] = httpRequest.body.length; + httpRequest.headers['Content-Type'] = 'application/x-www-form-urlencoded'; + }, - throw AWS.util.error( - new Error('Cannot load credentials, HOME path not set') - ); + /** + * @api private + */ + updateRegion: function updateRegion(request) { + var endpoint = request.httpRequest.endpoint.hostname; + var zones = endpoint.split('.'); + request.httpRequest.region = zones[1] || request.httpRequest.region; } -}); - -var IniLoader = AWS.IniLoader; -module.exports = { - IniLoader: IniLoader -}; +}); /***/ }), -/***/ 56398: +/***/ 21980: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); +var AWS = __nccwpck_require__(53832); +var rdsutil = __nccwpck_require__(99991); /** - * @api private - */ -AWS.Signers.Bearer = AWS.util.inherit(AWS.Signers.RequestSigner, { - constructor: function Bearer(request) { - AWS.Signers.RequestSigner.call(this, request); - }, +* @api private +*/ +var crossRegionOperations = ['createDBCluster', 'copyDBClusterSnapshot']; - addAuthorization: function addAuthorization(token) { - this.request.headers['Authorization'] = 'Bearer ' + token.token; - } +AWS.util.update(AWS.DocDB.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + if ( + crossRegionOperations.indexOf(request.operation) !== -1 && + this.config.params && + this.config.params.SourceRegion && + request.params && + !request.params.SourceRegion + ) { + request.params.SourceRegion = this.config.params.SourceRegion; + } + rdsutil.setupRequestListeners(this, request, crossRegionOperations); + }, }); /***/ }), -/***/ 87969: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 48838: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; +var AWS = __nccwpck_require__(53832); +__nccwpck_require__(89513); -/** - * @api private - */ -var expiresHeader = 'presigned-expires'; +AWS.util.update(AWS.DynamoDB.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + if (request.service.config.dynamoDbCrc32) { + request.removeListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); + request.addListener('extractData', this.checkCrc32); + request.addListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); + } + }, -/** - * @api private - */ -function signedUrlBuilder(request) { - var expires = request.httpRequest.headers[expiresHeader]; - var signerClass = request.service.getSignerClass(request); + /** + * @api private + */ + checkCrc32: function checkCrc32(resp) { + if (!resp.httpResponse.streaming && !resp.request.service.crc32IsValid(resp)) { + resp.data = null; + resp.error = AWS.util.error(new Error(), { + code: 'CRC32CheckFailed', + message: 'CRC32 integrity check failed', + retryable: true + }); + resp.request.haltHandlersOnError(); + throw (resp.error); + } + }, - delete request.httpRequest.headers['User-Agent']; - delete request.httpRequest.headers['X-Amz-User-Agent']; + /** + * @api private + */ + crc32IsValid: function crc32IsValid(resp) { + var crc = resp.httpResponse.headers['x-amz-crc32']; + if (!crc) return true; // no (valid) CRC32 header + return parseInt(crc, 10) === AWS.util.crypto.crc32(resp.httpResponse.body); + }, - if (signerClass === AWS.Signers.V4) { - if (expires > 604800) { // one week expiry is invalid - var message = 'Presigning does not support expiry time greater ' + - 'than a week with SigV4 signing.'; - throw AWS.util.error(new Error(), { - code: 'InvalidExpiryTime', message: message, retryable: false - }); + /** + * @api private + */ + defaultRetryCount: 10, + + /** + * @api private + */ + retryDelays: function retryDelays(retryCount, err) { + var retryDelayOptions = AWS.util.copy(this.config.retryDelayOptions); + + if (typeof retryDelayOptions.base !== 'number') { + retryDelayOptions.base = 50; // default for dynamodb } - request.httpRequest.headers[expiresHeader] = expires; - } else if (signerClass === AWS.Signers.S3) { - var now = request.service ? request.service.getSkewCorrectedDate() : AWS.util.date.getDate(); - request.httpRequest.headers[expiresHeader] = parseInt( - AWS.util.date.unixTimestamp(now) + expires, 10).toString(); - } else { - throw AWS.util.error(new Error(), { - message: 'Presigning only supports S3 or SigV4 signing.', - code: 'UnsupportedSigner', retryable: false - }); + var delay = AWS.util.calculateRetryDelay(retryCount, retryDelayOptions, err); + return delay; } -} +}); -/** - * @api private - */ -function signedUrlSigner(request) { - var endpoint = request.httpRequest.endpoint; - var parsedUrl = AWS.util.urlParse(request.httpRequest.path); - var queryParams = {}; - if (parsedUrl.search) { - queryParams = AWS.util.queryStringParse(parsedUrl.search.substr(1)); - } +/***/ }), - var auth = request.httpRequest.headers['Authorization'].split(' '); - if (auth[0] === 'AWS') { - auth = auth[1].split(':'); - queryParams['Signature'] = auth.pop(); - queryParams['AWSAccessKeyId'] = auth.join(':'); +/***/ 99182: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - AWS.util.each(request.httpRequest.headers, function (key, value) { - if (key === expiresHeader) key = 'Expires'; - if (key.indexOf('x-amz-meta-') === 0) { - // Delete existing, potentially not normalized key - delete queryParams[key]; - key = key.toLowerCase(); - } - queryParams[key] = value; - }); - delete request.httpRequest.headers[expiresHeader]; - delete queryParams['Authorization']; - delete queryParams['Host']; - } else if (auth[0] === 'AWS4-HMAC-SHA256') { // SigV4 signing - auth.shift(); - var rest = auth.join(' '); - var signature = rest.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1]; - queryParams['X-Amz-Signature'] = signature; - delete queryParams['Expires']; - } +var AWS = __nccwpck_require__(53832); - // build URL - endpoint.pathname = parsedUrl.pathname; - endpoint.search = AWS.util.queryParamsToString(queryParams); -} +AWS.util.update(AWS.EC2.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR); + request.addListener('extractError', this.extractError); + + if (request.operation === 'copySnapshot') { + request.onAsync('validate', this.buildCopySnapshotPresignedUrl); + } + }, -/** - * @api private - */ -AWS.Signers.Presign = inherit({ /** * @api private */ - sign: function sign(request, expireTime, callback) { - request.httpRequest.headers[expiresHeader] = expireTime || 3600; - request.on('build', signedUrlBuilder); - request.on('sign', signedUrlSigner); - request.removeListener('afterBuild', - AWS.EventListeners.Core.SET_CONTENT_LENGTH); - request.removeListener('afterBuild', - AWS.EventListeners.Core.COMPUTE_SHA256); + buildCopySnapshotPresignedUrl: function buildCopySnapshotPresignedUrl(req, done) { + if (req.params.PresignedUrl || req._subRequest) { + return done(); + } - request.emit('beforePresign', [request]); + req.params = AWS.util.copy(req.params); + req.params.DestinationRegion = req.service.config.region; - if (callback) { - request.build(function() { - if (this.response.error) callback(this.response.error); - else { - callback(null, AWS.util.urlFormat(request.httpRequest.endpoint)); - } + var config = AWS.util.copy(req.service.config); + delete config.endpoint; + config.region = req.params.SourceRegion; + var svc = new req.service.constructor(config); + var newReq = svc[req.operation](req.params); + newReq._subRequest = true; + newReq.presign(function(err, url) { + if (err) done(err); + else { + req.params.PresignedUrl = url; + done(); + } + }); + }, + + /** + * @api private + */ + extractError: function extractError(resp) { + // EC2 nests the error code and message deeper than other AWS Query services. + var httpResponse = resp.httpResponse; + var data = new AWS.XML.Parser().parse(httpResponse.body.toString() || ''); + if (data.Errors) { + resp.error = AWS.util.error(new Error(), { + code: data.Errors.Error.Code, + message: data.Errors.Error.Message }); } else { - request.build(); - if (request.response.error) throw request.response.error; - return AWS.util.urlFormat(request.httpRequest.endpoint); + resp.error = AWS.util.error(new Error(), { + code: httpResponse.statusCode, + message: null + }); } + resp.error.requestId = data.RequestID || null; } }); -/** - * @api private - */ -module.exports = AWS.Signers.Presign; - /***/ }), -/***/ 83922: +/***/ 16029: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); - -var inherit = AWS.util.inherit; - -/** - * @api private - */ -AWS.Signers.RequestSigner = inherit({ - constructor: function RequestSigner(request) { - this.request = request; - }, +var AWS = __nccwpck_require__(53832); - setServiceClientId: function setServiceClientId(id) { - this.serviceClientId = id; +AWS.util.update(AWS.EventBridge.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + if (request.operation === 'putEvents') { + var params = request.params || {}; + if (params.EndpointId !== undefined) { + throw new AWS.util.error(new Error(), { + code: 'InvalidParameter', + message: 'EndpointId is not supported in current SDK.\n' + + 'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).' + }); + } + } }, - - getServiceClientId: function getServiceClientId() { - return this.serviceClientId; - } }); -AWS.Signers.RequestSigner.getVersion = function getVersion(version) { - switch (version) { - case 'v2': return AWS.Signers.V2; - case 'v3': return AWS.Signers.V3; - case 's3v4': return AWS.Signers.V4; - case 'v4': return AWS.Signers.V4; - case 's3': return AWS.Signers.S3; - case 'v3https': return AWS.Signers.V3Https; - case 'bearer': return AWS.Signers.Bearer; - } - throw new Error('Unknown signing version ' + version); -}; - -__nccwpck_require__(47004); -__nccwpck_require__(14507); -__nccwpck_require__(42096); -__nccwpck_require__(31833); -__nccwpck_require__(14399); -__nccwpck_require__(87969); -__nccwpck_require__(56398); - /***/ }), -/***/ 14399: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 82745: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; +var AWS = __nccwpck_require__(53832); -/** - * @api private - */ -AWS.Signers.S3 = inherit(AWS.Signers.RequestSigner, { +AWS.util.update(AWS.Glacier.prototype, { /** - * When building the stringToSign, these sub resource params should be - * part of the canonical resource string with their NON-decoded values + * @api private */ - subResources: { - 'acl': 1, - 'accelerate': 1, - 'analytics': 1, - 'cors': 1, - 'lifecycle': 1, - 'delete': 1, - 'inventory': 1, - 'location': 1, - 'logging': 1, - 'metrics': 1, - 'notification': 1, - 'partNumber': 1, - 'policy': 1, - 'requestPayment': 1, - 'replication': 1, - 'restore': 1, - 'tagging': 1, - 'torrent': 1, - 'uploadId': 1, - 'uploads': 1, - 'versionId': 1, - 'versioning': 1, - 'versions': 1, - 'website': 1 + setupRequestListeners: function setupRequestListeners(request) { + if (Array.isArray(request._events.validate)) { + request._events.validate.unshift(this.validateAccountId); + } else { + request.on('validate', this.validateAccountId); + } + request.removeListener('afterBuild', + AWS.EventListeners.Core.COMPUTE_SHA256); + request.on('build', this.addGlacierApiVersion); + request.on('build', this.addTreeHashHeaders); }, - // when building the stringToSign, these querystring params should be - // part of the canonical resource string with their NON-encoded values - responseHeaders: { - 'response-content-type': 1, - 'response-content-language': 1, - 'response-expires': 1, - 'response-cache-control': 1, - 'response-content-disposition': 1, - 'response-content-encoding': 1 + /** + * @api private + */ + validateAccountId: function validateAccountId(request) { + if (request.params.accountId !== undefined) return; + request.params = AWS.util.copy(request.params); + request.params.accountId = '-'; }, - addAuthorization: function addAuthorization(credentials, date) { - if (!this.request.headers['presigned-expires']) { - this.request.headers['X-Amz-Date'] = AWS.util.date.rfc822(date); - } + /** + * @api private + */ + addGlacierApiVersion: function addGlacierApiVersion(request) { + var version = request.service.api.apiVersion; + request.httpRequest.headers['x-amz-glacier-version'] = version; + }, - if (credentials.sessionToken) { - // presigned URLs require this header to be lowercased - this.request.headers['x-amz-security-token'] = credentials.sessionToken; - } + /** + * @api private + */ + addTreeHashHeaders: function addTreeHashHeaders(request) { + if (request.params.body === undefined) return; - var signature = this.sign(credentials.secretAccessKey, this.stringToSign()); - var auth = 'AWS ' + credentials.accessKeyId + ':' + signature; + var hashes = request.service.computeChecksums(request.params.body); + request.httpRequest.headers['X-Amz-Content-Sha256'] = hashes.linearHash; - this.request.headers['Authorization'] = auth; + if (!request.httpRequest.headers['x-amz-sha256-tree-hash']) { + request.httpRequest.headers['x-amz-sha256-tree-hash'] = hashes.treeHash; + } }, - stringToSign: function stringToSign() { - var r = this.request; - - var parts = []; - parts.push(r.method); - parts.push(r.headers['Content-MD5'] || ''); - parts.push(r.headers['Content-Type'] || ''); + /** + * @!group Computing Checksums + */ - // This is the "Date" header, but we use X-Amz-Date. - // The S3 signing mechanism requires us to pass an empty - // string for this Date header regardless. - parts.push(r.headers['presigned-expires'] || ''); + /** + * Computes the SHA-256 linear and tree hash checksums for a given + * block of Buffer data. Pass the tree hash of the computed checksums + * as the checksum input to the {completeMultipartUpload} when performing + * a multi-part upload. + * + * @example Calculate checksum of 5.5MB data chunk + * var glacier = new AWS.Glacier(); + * var data = Buffer.alloc(5.5 * 1024 * 1024); + * data.fill('0'); // fill with zeros + * var results = glacier.computeChecksums(data); + * // Result: { linearHash: '68aff0c5a9...', treeHash: '154e26c78f...' } + * @param data [Buffer, String] data to calculate the checksum for + * @return [map] a map containing + * the linearHash and treeHash properties representing hex based digests + * of the respective checksums. + * @see completeMultipartUpload + */ + computeChecksums: function computeChecksums(data) { + if (!AWS.util.Buffer.isBuffer(data)) data = AWS.util.buffer.toBuffer(data); - var headers = this.canonicalizedAmzHeaders(); - if (headers) parts.push(headers); - parts.push(this.canonicalizedResource()); + var mb = 1024 * 1024; + var hashes = []; + var hash = AWS.util.crypto.createHash('sha256'); - return parts.join('\n'); + // build leaf nodes in 1mb chunks + for (var i = 0; i < data.length; i += mb) { + var chunk = data.slice(i, Math.min(i + mb, data.length)); + hash.update(chunk); + hashes.push(AWS.util.crypto.sha256(chunk)); + } + return { + linearHash: hash.digest('hex'), + treeHash: this.buildHashTree(hashes) + }; }, - canonicalizedAmzHeaders: function canonicalizedAmzHeaders() { - - var amzHeaders = []; + /** + * @api private + */ + buildHashTree: function buildHashTree(hashes) { + // merge leaf nodes + while (hashes.length > 1) { + var tmpHashes = []; + for (var i = 0; i < hashes.length; i += 2) { + if (hashes[i + 1]) { + var tmpHash = AWS.util.buffer.alloc(64); + tmpHash.write(hashes[i], 0, 32, 'binary'); + tmpHash.write(hashes[i + 1], 32, 32, 'binary'); + tmpHashes.push(AWS.util.crypto.sha256(tmpHash)); + } else { + tmpHashes.push(hashes[i]); + } + } + hashes = tmpHashes; + } - AWS.util.each(this.request.headers, function (name) { - if (name.match(/^x-amz-/i)) - amzHeaders.push(name); - }); + return AWS.util.crypto.toHex(hashes[0]); + } +}); - amzHeaders.sort(function (a, b) { - return a.toLowerCase() < b.toLowerCase() ? -1 : 1; - }); - var parts = []; - AWS.util.arrayEach.call(this, amzHeaders, function (name) { - parts.push(name.toLowerCase() + ':' + String(this.request.headers[name])); - }); +/***/ }), - return parts.join('\n'); +/***/ 68072: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - }, +var AWS = __nccwpck_require__(53832); - canonicalizedResource: function canonicalizedResource() { +/** + * @api private + */ +var blobPayloadOutputOps = [ + 'deleteThingShadow', + 'getThingShadow', + 'updateThingShadow' +]; - var r = this.request; +/** + * Constructs a service interface object. Each API operation is exposed as a + * function on service. + * + * ### Sending a Request Using IotData + * + * ```javascript + * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); + * iotdata.getThingShadow(params, function (err, data) { + * if (err) console.log(err, err.stack); // an error occurred + * else console.log(data); // successful response + * }); + * ``` + * + * ### Locking the API Version + * + * In order to ensure that the IotData object uses this specific API, + * you can construct the object by passing the `apiVersion` option to the + * constructor: + * + * ```javascript + * var iotdata = new AWS.IotData({ + * endpoint: 'my.host.tld', + * apiVersion: '2015-05-28' + * }); + * ``` + * + * You can also set the API version globally in `AWS.config.apiVersions` using + * the **iotdata** service identifier: + * + * ```javascript + * AWS.config.apiVersions = { + * iotdata: '2015-05-28', + * // other service API versions + * }; + * + * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); + * ``` + * + * @note You *must* provide an `endpoint` configuration parameter when + * constructing this service. See {constructor} for more information. + * + * @!method constructor(options = {}) + * Constructs a service object. This object has one method for each + * API operation. + * + * @example Constructing a IotData object + * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); + * @note You *must* provide an `endpoint` when constructing this service. + * @option (see AWS.Config.constructor) + * + * @service iotdata + * @version 2015-05-28 + */ +AWS.util.update(AWS.IotData.prototype, { + /** + * @api private + */ + validateService: function validateService() { + if (!this.config.endpoint || this.config.endpoint.indexOf('{') >= 0) { + var msg = 'AWS.IotData requires an explicit ' + + '`endpoint\' configuration option.'; + throw AWS.util.error(new Error(), + {name: 'InvalidEndpoint', message: msg}); + } + }, - var parts = r.path.split('?'); - var path = parts[0]; - var querystring = parts[1]; + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + request.addListener('validateResponse', this.validateResponseBody); + if (blobPayloadOutputOps.indexOf(request.operation) > -1) { + request.addListener('extractData', AWS.util.convertPayloadToString); + } + }, - var resource = ''; + /** + * @api private + */ + validateResponseBody: function validateResponseBody(resp) { + var body = resp.httpResponse.body.toString() || '{}'; + var bodyCheck = body.trim(); + if (!bodyCheck || bodyCheck.charAt(0) !== '{') { + resp.httpResponse.body = ''; + } + } - if (r.virtualHostedBucket) - resource += '/' + r.virtualHostedBucket; +}); - resource += path; - if (querystring) { +/***/ }), - // collect a list of sub resources and query params that need to be signed - var resources = []; +/***/ 46849: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - AWS.util.arrayEach.call(this, querystring.split('&'), function (param) { - var name = param.split('=')[0]; - var value = param.split('=')[1]; - if (this.subResources[name] || this.responseHeaders[name]) { - var subresource = { name: name }; - if (value !== undefined) { - if (this.subResources[name]) { - subresource.value = value; - } else { - subresource.value = decodeURIComponent(value); - } - } - resources.push(subresource); - } - }); +var AWS = __nccwpck_require__(53832); - resources.sort(function (a, b) { return a.name < b.name ? -1 : 1; }); +AWS.util.update(AWS.Lambda.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + if (request.operation === 'invoke') { + request.addListener('extractData', AWS.util.convertPayloadToString); + } + } +}); - if (resources.length) { - querystring = []; - AWS.util.arrayEach(resources, function (res) { - if (res.value === undefined) { - querystring.push(res.name); - } else { - querystring.push(res.name + '=' + res.value); - } - }); - resource += '?' + querystring.join('&'); - } +/***/ }), - } +/***/ 26395: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - return resource; +var AWS = __nccwpck_require__(53832); +AWS.util.update(AWS.MachineLearning.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + if (request.operation === 'predict') { + request.addListener('build', this.buildEndpoint); + } }, - sign: function sign(secret, string) { - return AWS.util.crypto.hmac(secret, string, 'base64', 'sha1'); + /** + * Updates request endpoint from PredictEndpoint + * @api private + */ + buildEndpoint: function buildEndpoint(request) { + var url = request.params.PredictEndpoint; + if (url) { + request.httpRequest.endpoint = new AWS.Endpoint(url); + } } -}); -/** - * @api private - */ -module.exports = AWS.Signers.S3; +}); /***/ }), -/***/ 47004: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 5017: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; +var AWS = __nccwpck_require__(53832); +var rdsutil = __nccwpck_require__(99991); /** - * @api private - */ -AWS.Signers.V2 = inherit(AWS.Signers.RequestSigner, { - addAuthorization: function addAuthorization(credentials, date) { +* @api private +*/ +var crossRegionOperations = ['createDBCluster', 'copyDBClusterSnapshot']; - if (!date) date = AWS.util.date.getDate(); +AWS.util.update(AWS.Neptune.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + if ( + crossRegionOperations.indexOf(request.operation) !== -1 && + this.config.params && + this.config.params.SourceRegion && + request.params && + !request.params.SourceRegion + ) { + request.params.SourceRegion = this.config.params.SourceRegion; + } + rdsutil.setupRequestListeners(this, request, crossRegionOperations); + }, +}); - var r = this.request; - r.params.Timestamp = AWS.util.date.iso8601(date); - r.params.SignatureVersion = '2'; - r.params.SignatureMethod = 'HmacSHA256'; - r.params.AWSAccessKeyId = credentials.accessKeyId; +/***/ }), - if (credentials.sessionToken) { - r.params.SecurityToken = credentials.sessionToken; - } +/***/ 64300: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - delete r.params.Signature; // delete old Signature for re-signing - r.params.Signature = this.signature(credentials); +__nccwpck_require__(67727); - r.body = AWS.util.queryParamsToString(r.params); - r.headers['Content-Length'] = r.body.length; - }, - signature: function signature(credentials) { - return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); - }, +/***/ }), - stringToSign: function stringToSign() { - var parts = []; - parts.push(this.request.method); - parts.push(this.request.endpoint.host.toLowerCase()); - parts.push(this.request.pathname()); - parts.push(AWS.util.queryParamsToString(this.request.params)); - return parts.join('\n'); - } +/***/ 41731: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -}); +var AWS = __nccwpck_require__(53832); +var rdsutil = __nccwpck_require__(99991); +__nccwpck_require__(27417); + /** + * @api private + */ + var crossRegionOperations = ['copyDBSnapshot', 'createDBInstanceReadReplica', 'createDBCluster', 'copyDBClusterSnapshot', 'startDBInstanceAutomatedBackupsReplication']; -/** - * @api private - */ -module.exports = AWS.Signers.V2; + AWS.util.update(AWS.RDS.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + rdsutil.setupRequestListeners(this, request, crossRegionOperations); + }, + }); /***/ }), -/***/ 14507: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; +/***/ 54468: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * @api private - */ -AWS.Signers.V3 = inherit(AWS.Signers.RequestSigner, { - addAuthorization: function addAuthorization(credentials, date) { +var AWS = __nccwpck_require__(53832); - var datetime = AWS.util.date.rfc822(date); +AWS.util.update(AWS.RDSDataService.prototype, { + /** + * @return [Boolean] whether the error can be retried + * @api private + */ + retryableError: function retryableError(error) { + if (error.code === 'BadRequestException' && + error.message && + error.message.match(/^Communications link failure/) && + error.statusCode === 400) { + return true; + } else { + var _super = AWS.Service.prototype.retryableError; + return _super.call(this, error); + } + } +}); - this.request.headers['X-Amz-Date'] = datetime; - if (credentials.sessionToken) { - this.request.headers['x-amz-security-token'] = credentials.sessionToken; - } +/***/ }), - this.request.headers['X-Amzn-Authorization'] = - this.authorization(credentials, datetime); +/***/ 99991: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - }, +var AWS = __nccwpck_require__(53832); - authorization: function authorization(credentials) { - return 'AWS3 ' + - 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + - 'Algorithm=HmacSHA256,' + - 'SignedHeaders=' + this.signedHeaders() + ',' + - 'Signature=' + this.signature(credentials); +var rdsutil = { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(service, request, crossRegionOperations) { + if (crossRegionOperations.indexOf(request.operation) !== -1 && + request.params.SourceRegion) { + request.params = AWS.util.copy(request.params); + if (request.params.PreSignedUrl || + request.params.SourceRegion === service.config.region) { + delete request.params.SourceRegion; + } else { + var doesParamValidation = !!service.config.paramValidation; + // remove the validate parameters listener so we can re-add it after we build the URL + if (doesParamValidation) { + request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); + } + request.onAsync('validate', rdsutil.buildCrossRegionPresignedUrl); + if (doesParamValidation) { + request.addListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); + } + } + } }, - signedHeaders: function signedHeaders() { - var headers = []; - AWS.util.arrayEach(this.headersToSign(), function iterator(h) { - headers.push(h.toLowerCase()); - }); - return headers.sort().join(';'); - }, + /** + * @api private + */ + buildCrossRegionPresignedUrl: function buildCrossRegionPresignedUrl(req, done) { + var config = AWS.util.copy(req.service.config); + config.region = req.params.SourceRegion; + delete req.params.SourceRegion; + delete config.endpoint; + // relevant params for the operation will already be in req.params + delete config.params; + config.signatureVersion = 'v4'; + var destinationRegion = req.service.config.region; - canonicalHeaders: function canonicalHeaders() { - var headers = this.request.headers; - var parts = []; - AWS.util.arrayEach(this.headersToSign(), function iterator(h) { - parts.push(h.toLowerCase().trim() + ':' + String(headers[h]).trim()); + var svc = new req.service.constructor(config); + var newReq = svc[req.operation](AWS.util.copy(req.params)); + newReq.on('build', function addDestinationRegionParam(request) { + var httpRequest = request.httpRequest; + httpRequest.params.DestinationRegion = destinationRegion; + httpRequest.body = AWS.util.queryParamsToString(httpRequest.params); }); - return parts.sort().join('\n') + '\n'; - }, - - headersToSign: function headersToSign() { - var headers = []; - AWS.util.each(this.request.headers, function iterator(k) { - if (k === 'Host' || k === 'Content-Encoding' || k.match(/^X-Amz/i)) { - headers.push(k); + newReq.presign(function(err, url) { + if (err) done(err); + else { + req.params.PreSignedUrl = url; + done(); } }); - return headers; - }, - - signature: function signature(credentials) { - return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); - }, - - stringToSign: function stringToSign() { - var parts = []; - parts.push(this.request.method); - parts.push('/'); - parts.push(''); - parts.push(this.canonicalHeaders()); - parts.push(this.request.body); - return AWS.util.crypto.sha256(parts.join('\n')); } - -}); +}; /** * @api private */ -module.exports = AWS.Signers.V3; +module.exports = rdsutil; /***/ }), -/***/ 42096: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 34597: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var inherit = AWS.util.inherit; +var AWS = __nccwpck_require__(53832); -__nccwpck_require__(14507); +AWS.util.update(AWS.Route53.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + request.on('build', this.sanitizeUrl); + }, -/** - * @api private - */ -AWS.Signers.V3Https = inherit(AWS.Signers.V3, { - authorization: function authorization(credentials) { - return 'AWS3-HTTPS ' + - 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + - 'Algorithm=HmacSHA256,' + - 'Signature=' + this.signature(credentials); + /** + * @api private + */ + sanitizeUrl: function sanitizeUrl(request) { + var path = request.httpRequest.path; + request.httpRequest.path = path.replace(/\/%2F\w+%2F/, '/'); }, - stringToSign: function stringToSign() { - return this.request.headers['X-Amz-Date']; + /** + * @return [Boolean] whether the error can be retried + * @api private + */ + retryableError: function retryableError(error) { + if (error.code === 'PriorRequestNotComplete' && + error.statusCode === 400) { + return true; + } else { + var _super = AWS.Service.prototype.retryableError; + return _super.call(this, error); + } } }); -/** - * @api private - */ -module.exports = AWS.Signers.V3Https; - /***/ }), -/***/ 31833: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 59244: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var v4Credentials = __nccwpck_require__(44178); -var inherit = AWS.util.inherit; +var AWS = __nccwpck_require__(53832); +var v4Credentials = __nccwpck_require__(56012); +var resolveRegionalEndpointsFlag = __nccwpck_require__(88469); +var s3util = __nccwpck_require__(68568); +var regionUtil = __nccwpck_require__(81940); + +// Pull in managed upload extension +__nccwpck_require__(98215); /** * @api private */ -var expiresHeader = 'presigned-expires'; +var operationsWith200StatusCodeError = { + 'completeMultipartUpload': true, + 'copyObject': true, + 'uploadPartCopy': true +}; /** * @api private */ -AWS.Signers.V4 = inherit(AWS.Signers.RequestSigner, { - constructor: function V4(request, serviceName, options) { - AWS.Signers.RequestSigner.call(this, request); - this.serviceName = serviceName; - options = options || {}; - this.signatureCache = typeof options.signatureCache === 'boolean' ? options.signatureCache : true; - this.operation = options.operation; - this.signatureVersion = options.signatureVersion; - }, + var regionRedirectErrorCodes = [ + 'AuthorizationHeaderMalformed', // non-head operations on virtual-hosted global bucket endpoints + 'BadRequest', // head operations on virtual-hosted global bucket endpoints + 'PermanentRedirect', // non-head operations on path-style or regional endpoints + 301 // head operations on path-style or regional endpoints + ]; - algorithm: 'AWS4-HMAC-SHA256', +var OBJECT_LAMBDA_SERVICE = 's3-object-lambda'; - addAuthorization: function addAuthorization(credentials, date) { - var datetime = AWS.util.date.iso8601(date).replace(/[:\-]|\.\d{3}/g, ''); +AWS.util.update(AWS.S3.prototype, { + /** + * @api private + */ + getSignatureVersion: function getSignatureVersion(request) { + var defaultApiVersion = this.api.signatureVersion; + var userDefinedVersion = this._originalConfig ? this._originalConfig.signatureVersion : null; + var regionDefinedVersion = this.config.signatureVersion; + var isPresigned = request ? request.isPresigned() : false; + /* + 1) User defined version specified: + a) always return user defined version + 2) No user defined version specified: + a) If not using presigned urls, default to V4 + b) If using presigned urls, default to lowest version the region supports + */ + if (userDefinedVersion) { + userDefinedVersion = userDefinedVersion === 'v2' ? 's3' : userDefinedVersion; + return userDefinedVersion; + } + if (isPresigned !== true) { + defaultApiVersion = 'v4'; + } else if (regionDefinedVersion) { + defaultApiVersion = regionDefinedVersion; + } + return defaultApiVersion; + }, - if (this.isPresigned()) { - this.updateForPresigned(credentials, datetime); - } else { - this.addHeaders(credentials, datetime); + /** + * @api private + */ + getSigningName: function getSigningName(req) { + if (req && req.operation === 'writeGetObjectResponse') { + return OBJECT_LAMBDA_SERVICE; } - this.request.headers['Authorization'] = - this.authorization(credentials, datetime); + var _super = AWS.Service.prototype.getSigningName; + return (req && req._parsedArn && req._parsedArn.service) + ? req._parsedArn.service + : _super.call(this); }, - addHeaders: function addHeaders(credentials, datetime) { - this.request.headers['X-Amz-Date'] = datetime; - if (credentials.sessionToken) { - this.request.headers['x-amz-security-token'] = credentials.sessionToken; - } + /** + * @api private + */ + getSignerClass: function getSignerClass(request) { + var signatureVersion = this.getSignatureVersion(request); + return AWS.Signers.RequestSigner.getVersion(signatureVersion); }, - updateForPresigned: function updateForPresigned(credentials, datetime) { - var credString = this.credentialString(datetime); - var qs = { - 'X-Amz-Date': datetime, - 'X-Amz-Algorithm': this.algorithm, - 'X-Amz-Credential': credentials.accessKeyId + '/' + credString, - 'X-Amz-Expires': this.request.headers[expiresHeader], - 'X-Amz-SignedHeaders': this.signedHeaders() - }; + /** + * @api private + */ + validateService: function validateService() { + var msg; + var messages = []; - if (credentials.sessionToken) { - qs['X-Amz-Security-Token'] = credentials.sessionToken; - } + // default to us-east-1 when no region is provided + if (!this.config.region) this.config.region = 'us-east-1'; - if (this.request.headers['Content-Type']) { - qs['Content-Type'] = this.request.headers['Content-Type']; + if (!this.config.endpoint && this.config.s3BucketEndpoint) { + messages.push('An endpoint must be provided when configuring ' + + '`s3BucketEndpoint` to true.'); } - if (this.request.headers['Content-MD5']) { - qs['Content-MD5'] = this.request.headers['Content-MD5']; + if (messages.length === 1) { + msg = messages[0]; + } else if (messages.length > 1) { + msg = 'Multiple configuration errors:\n' + messages.join('\n'); } - if (this.request.headers['Cache-Control']) { - qs['Cache-Control'] = this.request.headers['Cache-Control']; + if (msg) { + throw AWS.util.error(new Error(), + {name: 'InvalidEndpoint', message: msg}); } - - // need to pull in any other X-Amz-* headers - AWS.util.each.call(this, this.request.headers, function(key, value) { - if (key === expiresHeader) return; - if (this.isSignableHeader(key)) { - var lowerKey = key.toLowerCase(); - // Metadata should be normalized - if (lowerKey.indexOf('x-amz-meta-') === 0) { - qs[lowerKey] = value; - } else if (lowerKey.indexOf('x-amz-') === 0) { - qs[key] = value; - } - } - }); - - var sep = this.request.path.indexOf('?') >= 0 ? '&' : '?'; - this.request.path += sep + AWS.util.queryParamsToString(qs); - }, - - authorization: function authorization(credentials, datetime) { - var parts = []; - var credString = this.credentialString(datetime); - parts.push(this.algorithm + ' Credential=' + - credentials.accessKeyId + '/' + credString); - parts.push('SignedHeaders=' + this.signedHeaders()); - parts.push('Signature=' + this.signature(credentials, datetime)); - return parts.join(', '); - }, - - signature: function signature(credentials, datetime) { - var signingKey = v4Credentials.getSigningKey( - credentials, - datetime.substr(0, 8), - this.request.region, - this.serviceName, - this.signatureCache - ); - return AWS.util.crypto.hmac(signingKey, this.stringToSign(datetime), 'hex'); }, - stringToSign: function stringToSign(datetime) { - var parts = []; - parts.push('AWS4-HMAC-SHA256'); - parts.push(datetime); - parts.push(this.credentialString(datetime)); - parts.push(this.hexEncodedHash(this.canonicalString())); - return parts.join('\n'); + /** + * @api private + */ + shouldDisableBodySigning: function shouldDisableBodySigning(request) { + var signerClass = this.getSignerClass(); + if (this.config.s3DisableBodySigning === true && signerClass === AWS.Signers.V4 + && request.httpRequest.endpoint.protocol === 'https:') { + return true; + } + return false; }, - canonicalString: function canonicalString() { - var parts = [], pathname = this.request.pathname(); - if (this.serviceName !== 's3' && this.signatureVersion !== 's3v4') pathname = AWS.util.uriEscapePath(pathname); + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + request.addListener('validateResponse', this.setExpiresString); + var prependListener = true; + request.addListener('validate', this.validateScheme); + request.addListener('validate', this.validateBucketName, prependListener); + request.addListener('validate', this.optInUsEast1RegionalEndpoint, prependListener); - parts.push(this.request.method); - parts.push(pathname); - parts.push(this.request.search()); - parts.push(this.canonicalHeaders() + '\n'); - parts.push(this.signedHeaders()); - parts.push(this.hexEncodedBodyHash()); - return parts.join('\n'); - }, + request.removeListener('validate', + AWS.EventListeners.Core.VALIDATE_REGION); + request.addListener('build', this.addContentType); + request.addListener('build', this.computeContentMd5); + request.addListener('build', this.computeSseCustomerKeyMd5); + request.addListener('build', this.populateURI); + request.addListener('afterBuild', this.addExpect100Continue); + request.addListener('extractError', this.extractError); + request.addListener('extractData', AWS.util.hoistPayloadMember); + request.addListener('extractData', this.extractData); + request.addListener('extractData', this.extractErrorFrom200Response); + request.addListener('beforePresign', this.prepareSignedUrl); + if (this.shouldDisableBodySigning(request)) { + request.removeListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); + request.addListener('afterBuild', this.disableBodySigning); + } + //deal with ARNs supplied to Bucket + if (request.operation !== 'createBucket' && s3util.isArnInParam(request, 'Bucket')) { + // avoid duplicate parsing in the future + request._parsedArn = AWS.util.ARN.parse(request.params.Bucket); - canonicalHeaders: function canonicalHeaders() { - var headers = []; - AWS.util.each.call(this, this.request.headers, function (key, item) { - headers.push([key, item]); - }); - headers.sort(function (a, b) { - return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : 1; - }); - var parts = []; - AWS.util.arrayEach.call(this, headers, function (item) { - var key = item[0].toLowerCase(); - if (this.isSignableHeader(key)) { - var value = item[1]; - if (typeof value === 'undefined' || value === null || typeof value.toString !== 'function') { - throw AWS.util.error(new Error('Header ' + key + ' contains invalid value'), { - code: 'InvalidHeader' - }); - } - parts.push(key + ':' + - this.canonicalHeaderValues(value.toString())); + request.removeListener('validate', this.validateBucketName); + request.removeListener('build', this.populateURI); + if (request._parsedArn.service === 's3') { + request.addListener('validate', s3util.validateS3AccessPointArn); + request.addListener('validate', this.validateArnResourceType); + request.addListener('validate', this.validateArnRegion); + } else if (request._parsedArn.service === 's3-outposts') { + request.addListener('validate', s3util.validateOutpostsAccessPointArn); + request.addListener('validate', s3util.validateOutpostsArn); + request.addListener('validate', s3util.validateArnRegion); } - }); - return parts.join('\n'); - }, - - canonicalHeaderValues: function canonicalHeaderValues(values) { - return values.replace(/\s+/g, ' ').replace(/^\s+|\s+$/g, ''); - }, - - signedHeaders: function signedHeaders() { - var keys = []; - AWS.util.each.call(this, this.request.headers, function (key) { - key = key.toLowerCase(); - if (this.isSignableHeader(key)) keys.push(key); - }); - return keys.sort().join(';'); - }, - - credentialString: function credentialString(datetime) { - return v4Credentials.createScope( - datetime.substr(0, 8), - this.request.region, - this.serviceName - ); - }, - - hexEncodedHash: function hash(string) { - return AWS.util.crypto.sha256(string, 'hex'); + request.addListener('validate', s3util.validateArnAccount); + request.addListener('validate', s3util.validateArnService); + request.addListener('build', this.populateUriFromAccessPointArn); + request.addListener('build', s3util.validatePopulateUriFromArn); + return; + } + //listeners regarding region inference + request.addListener('validate', this.validateBucketEndpoint); + request.addListener('validate', this.correctBucketRegionFromCache); + request.onAsync('extractError', this.requestBucketRegion); + if (AWS.util.isBrowser()) { + request.onAsync('retry', this.reqRegionForNetworkingError); + } }, - hexEncodedBodyHash: function hexEncodedBodyHash() { - var request = this.request; - if (this.isPresigned() && (['s3', 's3-object-lambda'].indexOf(this.serviceName) > -1) && !request.body) { - return 'UNSIGNED-PAYLOAD'; - } else if (request.headers['X-Amz-Content-Sha256']) { - return request.headers['X-Amz-Content-Sha256']; - } else { - return this.hexEncodedHash(this.request.body || ''); + /** + * @api private + */ + validateScheme: function(req) { + var params = req.params, + scheme = req.httpRequest.endpoint.protocol, + sensitive = params.SSECustomerKey || params.CopySourceSSECustomerKey; + if (sensitive && scheme !== 'https:') { + var msg = 'Cannot send SSE keys over HTTP. Set \'sslEnabled\'' + + 'to \'true\' in your configuration'; + throw AWS.util.error(new Error(), + { code: 'ConfigError', message: msg }); } }, - unsignableHeaders: [ - 'authorization', - 'content-type', - 'content-length', - 'user-agent', - expiresHeader, - 'expect', - 'x-amzn-trace-id' - ], - - isSignableHeader: function isSignableHeader(key) { - if (key.toLowerCase().indexOf('x-amz-') === 0) return true; - return this.unsignableHeaders.indexOf(key) < 0; + /** + * @api private + */ + validateBucketEndpoint: function(req) { + if (!req.params.Bucket && req.service.config.s3BucketEndpoint) { + var msg = 'Cannot send requests to root API with `s3BucketEndpoint` set.'; + throw AWS.util.error(new Error(), + { code: 'ConfigError', message: msg }); + } }, - isPresigned: function isPresigned() { - return this.request.headers[expiresHeader] ? true : false; - } - -}); - -/** - * @api private - */ -module.exports = AWS.Signers.V4; - - -/***/ }), - -/***/ 44178: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); - -/** - * @api private - */ -var cachedSecret = {}; + /** + * @api private + */ + validateArnRegion: function validateArnRegion(req) { + s3util.validateArnRegion(req, { allowFipsEndpoint: true }); + }, -/** - * @api private - */ -var cacheQueue = []; + /** + * Validate resource-type supplied in S3 ARN + */ + validateArnResourceType: function validateArnResourceType(req) { + var resource = req._parsedArn.resource; -/** - * @api private - */ -var maxCacheEntries = 50; + if ( + resource.indexOf('accesspoint:') !== 0 && + resource.indexOf('accesspoint/') !== 0 + ) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'ARN resource should begin with \'accesspoint/\'' + }); + } + }, -/** - * @api private - */ -var v4Identifier = 'aws4_request'; + /** + * @api private + */ + validateBucketName: function validateBucketName(req) { + var service = req.service; + var signatureVersion = service.getSignatureVersion(req); + var bucket = req.params && req.params.Bucket; + var key = req.params && req.params.Key; + var slashIndex = bucket && bucket.indexOf('/'); + if (bucket && slashIndex >= 0) { + if (typeof key === 'string' && slashIndex > 0) { + req.params = AWS.util.copy(req.params); + // Need to include trailing slash to match sigv2 behavior + var prefix = bucket.substr(slashIndex + 1) || ''; + req.params.Key = prefix + '/' + key; + req.params.Bucket = bucket.substr(0, slashIndex); + } else if (signatureVersion === 'v4') { + var msg = 'Bucket names cannot contain forward slashes. Bucket: ' + bucket; + throw AWS.util.error(new Error(), + { code: 'InvalidBucket', message: msg }); + } + } + }, -/** - * @api private - */ -module.exports = { /** * @api private - * - * @param date [String] - * @param region [String] - * @param serviceName [String] - * @return [String] */ - createScope: function createScope(date, region, serviceName) { - return [ - date.substr(0, 8), - region, - serviceName, - v4Identifier - ].join('/'); + isValidAccelerateOperation: function isValidAccelerateOperation(operation) { + var invalidOperations = [ + 'createBucket', + 'deleteBucket', + 'listBuckets' + ]; + return invalidOperations.indexOf(operation) === -1; }, /** + * When us-east-1 region endpoint configuration is set, in stead of sending request to + * global endpoint(e.g. 's3.amazonaws.com'), we will send request to + * 's3.us-east-1.amazonaws.com'. * @api private - * - * @param credentials [Credentials] - * @param date [String] - * @param region [String] - * @param service [String] - * @param shouldCache [Boolean] - * @return [String] */ - getSigningKey: function getSigningKey( - credentials, - date, - region, - service, - shouldCache - ) { - var credsIdentifier = AWS.util.crypto - .hmac(credentials.secretAccessKey, credentials.accessKeyId, 'base64'); - var cacheKey = [credsIdentifier, date, region, service].join('_'); - shouldCache = shouldCache !== false; - if (shouldCache && (cacheKey in cachedSecret)) { - return cachedSecret[cacheKey]; + optInUsEast1RegionalEndpoint: function optInUsEast1RegionalEndpoint(req) { + var service = req.service; + var config = service.config; + config.s3UsEast1RegionalEndpoint = resolveRegionalEndpointsFlag(service._originalConfig, { + env: 'AWS_S3_US_EAST_1_REGIONAL_ENDPOINT', + sharedConfig: 's3_us_east_1_regional_endpoint', + clientConfig: 's3UsEast1RegionalEndpoint' + }); + if ( + !(service._originalConfig || {}).endpoint && + req.httpRequest.region === 'us-east-1' && + config.s3UsEast1RegionalEndpoint === 'regional' && + req.httpRequest.endpoint.hostname.indexOf('s3.amazonaws.com') >= 0 + ) { + var insertPoint = config.endpoint.indexOf('.amazonaws.com'); + var regionalEndpoint = config.endpoint.substring(0, insertPoint) + + '.us-east-1' + config.endpoint.substring(insertPoint); + req.httpRequest.updateEndpoint(regionalEndpoint); } + }, - var kDate = AWS.util.crypto.hmac( - 'AWS4' + credentials.secretAccessKey, - date, - 'buffer' - ); - var kRegion = AWS.util.crypto.hmac(kDate, region, 'buffer'); - var kService = AWS.util.crypto.hmac(kRegion, service, 'buffer'); + /** + * S3 prefers dns-compatible bucket names to be moved from the uri path + * to the hostname as a sub-domain. This is not possible, even for dns-compat + * buckets when using SSL and the bucket name contains a dot ('.'). The + * ssl wildcard certificate is only 1-level deep. + * + * @api private + */ + populateURI: function populateURI(req) { + var httpRequest = req.httpRequest; + var b = req.params.Bucket; + var service = req.service; + var endpoint = httpRequest.endpoint; + if (b) { + if (!service.pathStyleBucketName(b)) { + if (service.config.useAccelerateEndpoint && service.isValidAccelerateOperation(req.operation)) { + if (service.config.useDualstackEndpoint) { + endpoint.hostname = b + '.s3-accelerate.dualstack.amazonaws.com'; + } else { + endpoint.hostname = b + '.s3-accelerate.amazonaws.com'; + } + } else if (!service.config.s3BucketEndpoint) { + endpoint.hostname = + b + '.' + endpoint.hostname; + } - var signingKey = AWS.util.crypto.hmac(kService, v4Identifier, 'buffer'); - if (shouldCache) { - cachedSecret[cacheKey] = signingKey; - cacheQueue.push(cacheKey); - if (cacheQueue.length > maxCacheEntries) { - // remove the oldest entry (not the least recently used) - delete cachedSecret[cacheQueue.shift()]; + var port = endpoint.port; + if (port !== 80 && port !== 443) { + endpoint.host = endpoint.hostname + ':' + + endpoint.port; + } else { + endpoint.host = endpoint.hostname; + } + + httpRequest.virtualHostedBucket = b; // needed for signing the request + service.removeVirtualHostedBucketFromPath(req); } } - - return signingKey; }, /** - * @api private + * Takes the bucket name out of the path if bucket is virtual-hosted * - * Empties the derived signing key cache. Made available for testing purposes - * only. + * @api private */ - emptyCache: function emptyCache() { - cachedSecret = {}; - cacheQueue = []; - } -}; + removeVirtualHostedBucketFromPath: function removeVirtualHostedBucketFromPath(req) { + var httpRequest = req.httpRequest; + var bucket = httpRequest.virtualHostedBucket; + if (bucket && httpRequest.path) { + if (req.params && req.params.Key) { + var encodedS3Key = '/' + AWS.util.uriEscapePath(req.params.Key); + if (httpRequest.path.indexOf(encodedS3Key) === 0 && (httpRequest.path.length === encodedS3Key.length || httpRequest.path[encodedS3Key.length] === '?')) { + //path only contains key or path contains only key and querystring + return; + } + } + httpRequest.path = httpRequest.path.replace(new RegExp('/' + bucket), ''); + if (httpRequest.path[0] !== '/') { + httpRequest.path = '/' + httpRequest.path; + } + } + }, + /** + * When user supply an access point ARN in the Bucket parameter, we need to + * populate the URI according to the ARN. + */ + populateUriFromAccessPointArn: function populateUriFromAccessPointArn(req) { + var accessPointArn = req._parsedArn; -/***/ }), + var isOutpostArn = accessPointArn.service === 's3-outposts'; + var isObjectLambdaArn = accessPointArn.service === 's3-object-lambda'; -/***/ 68093: -/***/ ((module) => { + var outpostsSuffix = isOutpostArn ? '.' + accessPointArn.outpostId: ''; + var serviceName = isOutpostArn ? 's3-outposts': 's3-accesspoint'; + var fipsSuffix = !isOutpostArn && req.service.config.useFipsEndpoint ? '-fips': ''; + var dualStackSuffix = !isOutpostArn && + req.service.config.useDualstackEndpoint ? '.dualstack' : ''; -function AcceptorStateMachine(states, state) { - this.currentState = state || null; - this.states = states || {}; -} + var endpoint = req.httpRequest.endpoint; + var dnsSuffix = regionUtil.getEndpointSuffix(accessPointArn.region); + var useArnRegion = req.service.config.s3UseArnRegion; -AcceptorStateMachine.prototype.runTo = function runTo(finalState, done, bindObject, inputError) { - if (typeof finalState === 'function') { - inputError = bindObject; bindObject = done; - done = finalState; finalState = null; - } + endpoint.hostname = [ + accessPointArn.accessPoint + '-' + accessPointArn.accountId + outpostsSuffix, + serviceName + fipsSuffix + dualStackSuffix, + useArnRegion ? accessPointArn.region : req.service.config.region, + dnsSuffix + ].join('.'); - var self = this; - var state = self.states[self.currentState]; - state.fn.call(bindObject || self, inputError, function(err) { - if (err) { - if (state.fail) self.currentState = state.fail; - else return done ? done.call(bindObject, err) : null; - } else { - if (state.accept) self.currentState = state.accept; - else return done ? done.call(bindObject) : null; + if (isObjectLambdaArn) { + // should be in the format: "accesspoint/${accesspointName}" + var serviceName = 's3-object-lambda'; + var accesspointName = accessPointArn.resource.split('/')[1]; + var fipsSuffix = req.service.config.useFipsEndpoint ? '-fips': ''; + endpoint.hostname = [ + accesspointName + '-' + accessPointArn.accountId, + serviceName + fipsSuffix, + useArnRegion ? accessPointArn.region : req.service.config.region, + dnsSuffix + ].join('.'); } - if (self.currentState === finalState) { - return done ? done.call(bindObject, err) : null; + endpoint.host = endpoint.hostname; + var encodedArn = AWS.util.uriEscape(req.params.Bucket); + var path = req.httpRequest.path; + //remove the Bucket value from path + req.httpRequest.path = path.replace(new RegExp('/' + encodedArn), ''); + if (req.httpRequest.path[0] !== '/') { + req.httpRequest.path = '/' + req.httpRequest.path; } + req.httpRequest.region = accessPointArn.region; //region used to sign + }, - self.runTo(finalState, done, bindObject, err); - }); -}; - -AcceptorStateMachine.prototype.addState = function addState(name, acceptState, failState, fn) { - if (typeof acceptState === 'function') { - fn = acceptState; acceptState = null; failState = null; - } else if (typeof failState === 'function') { - fn = failState; failState = null; - } - - if (!this.currentState) this.currentState = name; - this.states[name] = { accept: acceptState, fail: failState, fn: fn }; - return this; -}; - -/** - * @api private - */ -module.exports = AcceptorStateMachine; - - -/***/ }), - -/***/ 13918: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); - -/** - * Represents AWS token object, which contains {token}, and optional - * {expireTime}. - * Creating a `Token` object allows you to pass around your - * token to configuration and service objects. - * - * Note that this class typically does not need to be constructed manually, - * as the {AWS.Config} and {AWS.Service} classes both accept simple - * options hashes with the two keys. The token from this object will be used - * automatically in operations which require them. - * - * ## Expiring and Refreshing Token - * - * Occasionally token can expire in the middle of a long-running - * application. In this case, the SDK will automatically attempt to - * refresh the token from the storage location if the Token - * class implements the {refresh} method. - * - * If you are implementing a token storage location, you - * will want to create a subclass of the `Token` class and - * override the {refresh} method. This method allows token to be - * retrieved from the backing store, be it a file system, database, or - * some network storage. The method should reset the token attributes - * on the object. - * - * @!attribute token - * @return [String] represents the literal token string. This will typically - * be a base64 encoded string. - * @!attribute expireTime - * @return [Date] a time when token should be considered expired. Used - * in conjunction with {expired}. - * @!attribute expired - * @return [Boolean] whether the token is expired and require a refresh. Used - * in conjunction with {expireTime}. - */ -AWS.Token = AWS.util.inherit({ /** - * Creates a Token object with a given set of information in options hash. - * @option options token [String] represents the literal token string. - * @option options expireTime [Date] field representing the time at which - * the token expires. - * @example Create a token object - * var token = new AWS.Token({ token: 'token' }); + * Adds Expect: 100-continue header if payload is greater-or-equal 1MB + * @api private */ - constructor: function Token(options) { - // hide token from being displayed with util.inspect - AWS.util.hideProperties(this, ['token']); - - this.expired = false; - this.expireTime = null; - this.refreshCallbacks = []; - if (arguments.length === 1) { - var options = arguments[0]; - this.token = options.token; - this.expireTime = options.expireTime; + addExpect100Continue: function addExpect100Continue(req) { + var len = req.httpRequest.headers['Content-Length']; + if (AWS.util.isNode() && (len >= 1024 * 1024 || req.params.Body instanceof AWS.util.stream.Stream)) { + req.httpRequest.headers['Expect'] = '100-continue'; } }, /** - * @return [Integer] the number of seconds before {expireTime} during which - * the token will be considered expired. + * Adds a default content type if none is supplied. + * + * @api private */ - expiryWindow: 15, + addContentType: function addContentType(req) { + var httpRequest = req.httpRequest; + if (httpRequest.method === 'GET' || httpRequest.method === 'HEAD') { + // Content-Type is not set in GET/HEAD requests + delete httpRequest.headers['Content-Type']; + return; + } - /** - * @return [Boolean] whether the Token object should call {refresh} - * @note Subclasses should override this method to provide custom refresh - * logic. - */ - needsRefresh: function needsRefresh() { - var currentTime = AWS.util.date.getDate().getTime(); - var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); + if (!httpRequest.headers['Content-Type']) { // always have a Content-Type + httpRequest.headers['Content-Type'] = 'application/octet-stream'; + } - if (this.expireTime && adjustedTime > this.expireTime) - return true; + var contentType = httpRequest.headers['Content-Type']; + if (AWS.util.isBrowser()) { + if (typeof httpRequest.body === 'string' && !contentType.match(/;\s*charset=/)) { + var charset = '; charset=UTF-8'; + httpRequest.headers['Content-Type'] += charset; + } else { + var replaceFn = function(_, prefix, charsetName) { + return prefix + charsetName.toUpperCase(); + }; - return this.expired || !this.token; + httpRequest.headers['Content-Type'] = + contentType.replace(/(;\s*charset=)(.+)$/, replaceFn); + } + } }, /** - * Gets the existing token, refreshing them if they are not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload token when they are already - * loaded into the object. + * Checks whether checksums should be computed for the request if it's not + * already set by {AWS.EventListeners.Core.COMPUTE_CHECKSUM}. It depends on + * whether {AWS.Config.computeChecksums} is set. * - * @callback callback function(err) - * When this callback is called with no error, it means either token - * do not need to be refreshed or refreshed token information has - * been loaded into the object (as the `token` property). - * @param err [Error] if an error occurred, this value will be filled + * @param req [AWS.Request] the request to check against + * @return [Boolean] whether to compute checksums for a request. + * @api private */ - get: function get(callback) { - var self = this; - if (this.needsRefresh()) { - this.refresh(function(err) { - if (!err) self.expired = false; // reset expired flag - if (callback) callback(err); - }); - } else if (callback) { - callback(); + willComputeChecksums: function willComputeChecksums(req) { + var rules = req.service.api.operations[req.operation].input.members; + var body = req.httpRequest.body; + var needsContentMD5 = req.service.config.computeChecksums && + rules.ContentMD5 && + !req.params.ContentMD5 && + body && + (AWS.util.Buffer.isBuffer(req.httpRequest.body) || typeof req.httpRequest.body === 'string'); + + // Sha256 signing disabled, and not a presigned url + if (needsContentMD5 && req.service.shouldDisableBodySigning(req) && !req.isPresigned()) { + return true; + } + + // SigV2 and presign, for backwards compatibility purpose. + if (needsContentMD5 && this.getSignatureVersion(req) === 's3' && req.isPresigned()) { + return true; } + + return false; }, /** - * @!method getPromise() - * Returns a 'thenable' promise. - * Gets the existing token, refreshing it if it's not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload token when it's already - * loaded into the object. + * A listener that computes the Content-MD5 and sets it in the header. + * This listener is to support S3-specific features like + * s3DisableBodySigning and SigV2 presign. Content MD5 logic for SigV4 is + * handled in AWS.EventListeners.Core.COMPUTE_CHECKSUM * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it means - * either token does not need to be refreshed or refreshed token information - * has been loaded into the object (as the `token` property). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled. - * @return [Promise] A promise that represents the state of the `get` call. - * @example Calling the `getPromise` method. - * var promise = tokenProvider.getPromise(); - * promise.then(function() { ... }, function(err) { ... }); + * @api private */ + computeContentMd5: function computeContentMd5(req) { + if (req.service.willComputeChecksums(req)) { + var md5 = AWS.util.crypto.md5(req.httpRequest.body, 'base64'); + req.httpRequest.headers['Content-MD5'] = md5; + } + }, /** - * @!method refreshPromise() - * Returns a 'thenable' promise. - * Refreshes the token. Users should call {get} before attempting - * to forcibly refresh token. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it - * means refreshed token information has been loaded into the object - * (as the `token` property). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled. - * @return [Promise] A promise that represents the state of the `refresh` call. - * @example Calling the `refreshPromise` method. - * var promise = tokenProvider.refreshPromise(); - * promise.then(function() { ... }, function(err) { ... }); + * @api private */ + computeSseCustomerKeyMd5: function computeSseCustomerKeyMd5(req) { + var keys = { + SSECustomerKey: 'x-amz-server-side-encryption-customer-key-MD5', + CopySourceSSECustomerKey: 'x-amz-copy-source-server-side-encryption-customer-key-MD5' + }; + AWS.util.each(keys, function(key, header) { + if (req.params[key]) { + var value = AWS.util.crypto.md5(req.params[key], 'base64'); + req.httpRequest.headers[header] = value; + } + }); + }, /** - * Refreshes the token. Users should call {get} before attempting - * to forcibly refresh token. + * Returns true if the bucket name should be left in the URI path for + * a request to S3. This function takes into account the current + * endpoint protocol (e.g. http or https). * - * @callback callback function(err) - * When this callback is called with no error, it means refreshed - * token information has been loaded into the object (as the - * `token` property). - * @param err [Error] if an error occurred, this value will be filled - * @note Subclasses should override this class to reset the - * {token} on the token object and then call the callback with - * any error information. - * @see get + * @api private */ - refresh: function refresh(callback) { - this.expired = false; - callback(); + pathStyleBucketName: function pathStyleBucketName(bucketName) { + // user can force path style requests via the configuration + if (this.config.s3ForcePathStyle) return true; + if (this.config.s3BucketEndpoint) return false; + + if (s3util.dnsCompatibleBucketName(bucketName)) { + return (this.config.sslEnabled && bucketName.match(/\./)) ? true : false; + } else { + return true; // not dns compatible names must always use path style + } }, /** + * For COPY operations, some can be error even with status code 200. + * SDK treats the response as exception when response body indicates + * an exception or body is empty. + * * @api private - * @param callback */ - coalesceRefresh: function coalesceRefresh(callback, sync) { - var self = this; - if (self.refreshCallbacks.push(callback) === 1) { - self.load(function onLoad(err) { - AWS.util.arrayEach(self.refreshCallbacks, function(callback) { - if (sync) { - callback(err); - } else { - // callback could throw, so defer to ensure all callbacks are notified - AWS.util.defer(function () { - callback(err); - }); - } - }); - self.refreshCallbacks.length = 0; + extractErrorFrom200Response: function extractErrorFrom200Response(resp) { + var service = this.service ? this.service : this; + if (!service.is200Error(resp) && !operationsWith200StatusCodeError[resp.request.operation]) { + return; + } + var httpResponse = resp.httpResponse; + var bodyString = httpResponse.body && httpResponse.body.toString() || ''; + if (bodyString && bodyString.indexOf('') === bodyString.length - 8) { + // Response body with '...' indicates an exception. + // Get S3 client object. In ManagedUpload, this.service refers to + // S3 client object. + resp.data = null; + service.extractError(resp); + resp.error.is200Error = true; + throw resp.error; + } else if (!httpResponse.body || !bodyString.match(/<[\w_]/)) { + // When body is empty or incomplete, S3 might stop the request on detecting client + // side aborting the request. + resp.data = null; + throw AWS.util.error(new Error(), { + code: 'InternalError', + message: 'S3 aborted request' }); } }, /** * @api private - * @param callback + * @param resp - to evaluate. + * @return true if the response has status code 200 but is an error. */ - load: function load(callback) { - callback(); - } -}); - -/** - * @api private - */ -AWS.Token.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.getPromise = AWS.util.promisifyMethod('get', PromiseDependency); - this.prototype.refreshPromise = AWS.util.promisifyMethod('refresh', PromiseDependency); -}; - -/** - * @api private - */ -AWS.Token.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.getPromise; - delete this.prototype.refreshPromise; -}; - -AWS.util.addPromises(AWS.Token); - - -/***/ }), - -/***/ 35521: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(14741); -var crypto = __nccwpck_require__(6113); -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); -var iniLoader = AWS.util.iniLoader; - -// Tracking refresh attempt to ensure refresh is not attempted more than once every 30 seconds. -var lastRefreshAttemptTime = 0; - -/** - * Throws error is key is not present in token object. - * - * @param token [Object] Object to be validated. - * @param key [String] The key to be validated on the object. - */ -var validateTokenKey = function validateTokenKey(token, key) { - if (!token[key]) { - throw AWS.util.error( - new Error('Key "' + key + '" not present in SSO Token'), - { code: 'SSOTokenProviderFailure' } - ); - } -}; + is200Error: function is200Error(resp) { + var code = resp && resp.httpResponse && resp.httpResponse.statusCode; + if (code !== 200) { + return false; + } + try { + var req = resp.request; + var outputMembers = req.service.api.operations[req.operation].output.members; + var keys = Object.keys(outputMembers); + for (var i = 0; i < keys.length; ++i) { + var member = outputMembers[keys[i]]; + if (member.type === 'binary' && member.isStreaming) { + return false; + } + } -/** - * Calls callback function with or without error based on provided times in case - * of unsuccessful refresh. - * - * @param currentTime [number] current time in milliseconds since ECMAScript epoch. - * @param tokenExpireTime [number] token expire time in milliseconds since ECMAScript epoch. - * @param callback [Function] Callback to call in case of error. - */ -var refreshUnsuccessful = function refreshUnsuccessful( - currentTime, - tokenExpireTime, - callback -) { - if (tokenExpireTime > currentTime) { - // Cached token is still valid, return. - callback(null); - } else { - // Token invalid, throw error requesting user to sso login. - throw AWS.util.error( - new Error('SSO Token refresh failed. Please log in using "aws sso login"'), - { code: 'SSOTokenProviderFailure' } - ); - } -}; + var body = resp.httpResponse.body; + if (body && body.byteLength !== undefined) { + if (body.byteLength < 15 || body.byteLength > 3000) { + // body is too short or long to be an error message. + return false; + } + } + if (!body) { + return false; + } + var bodyString = body.toString(); + if (bodyString.indexOf('') === bodyString.length - 8) { + return true; + } + } catch (e) { + return false; + } + return false; + }, -/** - * Represents token loaded from disk derived from the AWS SSO device grant authorication flow. - * - * ## Using SSO Token Provider - * - * This provider is checked by default in the Node.js environment in TokenProviderChain. - * To use the SSO Token Provider, simply add your SSO Start URL and Region to the - * ~/.aws/config file in the following format: - * - * [default] - * sso_start_url = https://d-abc123.awsapps.com/start - * sso_region = us-east-1 - * - * ## Using custom profiles - * - * The SDK supports loading token for separate profiles. This can be done in two ways: - * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to loading the SDK. - * 2. Directly load the AWS.SSOTokenProvider: - * - * ```javascript - * var ssoTokenProvider = new AWS.SSOTokenProvider({profile: 'myprofile'}); - * ``` - * - * @!macro nobrowser - */ -AWS.SSOTokenProvider = AWS.util.inherit(AWS.Token, { /** - * Expiry window of five minutes. + * @return [Boolean] whether the error can be retried + * @api private */ - expiryWindow: 5 * 60, + retryableError: function retryableError(error, request) { + if (error.is200Error || + (operationsWith200StatusCodeError[request.operation] && error.statusCode === 200)) { + return true; + } else if (request._requestRegionForBucket && + request.service.bucketRegionCache[request._requestRegionForBucket]) { + return false; + } else if (error && error.code === 'RequestTimeout') { + return true; + } else if (error && + regionRedirectErrorCodes.indexOf(error.code) != -1 && + error.region && error.region != request.httpRequest.region) { + request.httpRequest.region = error.region; + if (error.statusCode === 301) { + request.service.updateReqBucketRegion(request); + } + return true; + } else { + var _super = AWS.Service.prototype.retryableError; + return _super.call(this, error, request); + } + }, /** - * Creates a new token object from cached access token. + * Updates httpRequest with region. If region is not provided, then + * the httpRequest will be updated based on httpRequest.region * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options callback [Function] (err) Token is eagerly loaded - * by the constructor. When the callback is called with no error, the - * token has been loaded successfully. + * @api private */ - constructor: function SSOTokenProvider(options) { - AWS.Token.call(this); + updateReqBucketRegion: function updateReqBucketRegion(request, region) { + var httpRequest = request.httpRequest; + if (typeof region === 'string' && region.length) { + httpRequest.region = region; + } + if (!httpRequest.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)) { + return; + } + var service = request.service; + var s3Config = service.config; + var s3BucketEndpoint = s3Config.s3BucketEndpoint; + if (s3BucketEndpoint) { + delete s3Config.s3BucketEndpoint; + } + var newConfig = AWS.util.copy(s3Config); + delete newConfig.endpoint; + newConfig.region = httpRequest.region; - options = options || {}; + httpRequest.endpoint = (new AWS.S3(newConfig)).endpoint; + service.populateURI(request); + s3Config.s3BucketEndpoint = s3BucketEndpoint; + httpRequest.headers.Host = httpRequest.endpoint.host; - this.expired = true; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.get(options.callback || AWS.util.fn.noop); + if (request._asm.currentState === 'validate') { + request.removeListener('build', service.populateURI); + request.addListener('build', service.removeVirtualHostedBucketFromPath); + } }, /** - * Reads sso_start_url from provided profile, and reads token from - * ~/.aws/sso/cache/.json - * - * Throws an error if required fields token and expiresAt are missing. - * Throws an error if token has expired and metadata to perform refresh is - * not available. - * Attempts to refresh the token if it's within 5 minutes before expiry time. + * Provides a specialized parser for getBucketLocation -- all other + * operations are parsed by the super class. * * @api private */ - load: function load(callback) { - var self = this; - var profiles = iniLoader.loadFrom({ isConfig: true }); - var profile = profiles[this.profile] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile "' + this.profile + '" not found'), - { code: 'SSOTokenProviderFailure' } - ); - } else if (!profile['sso_session']) { - throw AWS.util.error( - new Error('Profile "' + this.profile + '" is missing required property "sso_session".'), - { code: 'SSOTokenProviderFailure' } - ); + extractData: function extractData(resp) { + var req = resp.request; + if (req.operation === 'getBucketLocation') { + var match = resp.httpResponse.body.toString().match(/>(.+)<\/Location/); + delete resp.data['_']; + if (match) { + resp.data.LocationConstraint = match[1]; + } else { + resp.data.LocationConstraint = ''; + } + } + var bucket = req.params.Bucket || null; + if (req.operation === 'deleteBucket' && typeof bucket === 'string' && !resp.error) { + req.service.clearBucketRegionCache(bucket); + } else { + var headers = resp.httpResponse.headers || {}; + var region = headers['x-amz-bucket-region'] || null; + if (!region && req.operation === 'createBucket' && !resp.error) { + var createBucketConfiguration = req.params.CreateBucketConfiguration; + if (!createBucketConfiguration) { + region = 'us-east-1'; + } else if (createBucketConfiguration.LocationConstraint === 'EU') { + region = 'eu-west-1'; + } else { + region = createBucketConfiguration.LocationConstraint; + } + } + if (region) { + if (bucket && region !== req.service.bucketRegionCache[bucket]) { + req.service.bucketRegionCache[bucket] = region; + } + } } + req.service.extractRequestIds(resp); + }, - var ssoSessionName = profile['sso_session']; - var ssoSessions = iniLoader.loadSsoSessionsFrom(); - var ssoSession = ssoSessions[ssoSessionName]; + /** + * Extracts an error object from the http response. + * + * @api private + */ + extractError: function extractError(resp) { + var codes = { + 304: 'NotModified', + 403: 'Forbidden', + 400: 'BadRequest', + 404: 'NotFound' + }; - if (!ssoSession) { - throw AWS.util.error( - new Error('Sso session "' + ssoSessionName + '" not found'), - { code: 'SSOTokenProviderFailure' } - ); - } else if (!ssoSession['sso_start_url']) { - throw AWS.util.error( - new Error('Sso session "' + this.profile + '" is missing required property "sso_start_url".'), - { code: 'SSOTokenProviderFailure' } - ); - } else if (!ssoSession['sso_region']) { - throw AWS.util.error( - new Error('Sso session "' + this.profile + '" is missing required property "sso_region".'), - { code: 'SSOTokenProviderFailure' } - ); + var req = resp.request; + var code = resp.httpResponse.statusCode; + var body = resp.httpResponse.body || ''; + + var headers = resp.httpResponse.headers || {}; + var region = headers['x-amz-bucket-region'] || null; + var bucket = req.params.Bucket || null; + var bucketRegionCache = req.service.bucketRegionCache; + if (region && bucket && region !== bucketRegionCache[bucket]) { + bucketRegionCache[bucket] = region; } - var hasher = crypto.createHash('sha1'); - var fileName = hasher.update(ssoSessionName).digest('hex') + '.json'; - var cachePath = path.join(iniLoader.getHomeDir(), '.aws', 'sso', 'cache', fileName); - var tokenFromCache = JSON.parse(fs.readFileSync(cachePath)); + var cachedRegion; + if (codes[code] && body.length === 0) { + if (bucket && !region) { + cachedRegion = bucketRegionCache[bucket] || null; + if (cachedRegion !== req.httpRequest.region) { + region = cachedRegion; + } + } + resp.error = AWS.util.error(new Error(), { + code: codes[code], + message: null, + region: region + }); + } else { + var data = new AWS.XML.Parser().parse(body.toString()); - if (!tokenFromCache) { - throw AWS.util.error( - new Error('Cached token not found. Please log in using "aws sso login"' - + ' for profile "' + this.profile + '".'), - { code: 'SSOTokenProviderFailure' } - ); - } + if (data.Region && !region) { + region = data.Region; + if (bucket && region !== bucketRegionCache[bucket]) { + bucketRegionCache[bucket] = region; + } + } else if (bucket && !region && !data.Region) { + cachedRegion = bucketRegionCache[bucket] || null; + if (cachedRegion !== req.httpRequest.region) { + region = cachedRegion; + } + } - validateTokenKey(tokenFromCache, 'accessToken'); - validateTokenKey(tokenFromCache, 'expiresAt'); + resp.error = AWS.util.error(new Error(), { + code: data.Code || code, + message: data.Message || null, + region: region + }); + } + req.service.extractRequestIds(resp); + }, - var currentTime = AWS.util.date.getDate().getTime(); - var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); - var tokenExpireTime = new Date(tokenFromCache['expiresAt']); + /** + * If region was not obtained synchronously, then send async request + * to get bucket region for errors resulting from wrong region. + * + * @api private + */ + requestBucketRegion: function requestBucketRegion(resp, done) { + var error = resp.error; + var req = resp.request; + var bucket = req.params.Bucket || null; - if (tokenExpireTime > adjustedTime) { - // Token is valid and not expired. - self.token = tokenFromCache.accessToken; - self.expireTime = tokenExpireTime; - self.expired = false; - callback(null); - return; + if (!error || !bucket || error.region || req.operation === 'listObjects' || + (AWS.util.isNode() && req.operation === 'headBucket') || + (error.statusCode === 400 && req.operation !== 'headObject') || + regionRedirectErrorCodes.indexOf(error.code) === -1) { + return done(); } + var reqOperation = AWS.util.isNode() ? 'headBucket' : 'listObjects'; + var reqParams = {Bucket: bucket}; + if (reqOperation === 'listObjects') reqParams.MaxKeys = 0; + var regionReq = req.service[reqOperation](reqParams); + regionReq._requestRegionForBucket = bucket; + regionReq.send(function() { + var region = req.service.bucketRegionCache[bucket] || null; + error.region = region; + done(); + }); + }, - // Skip new refresh, if last refresh was done within 30 seconds. - if (currentTime - lastRefreshAttemptTime < 30 * 1000) { - refreshUnsuccessful(currentTime, tokenExpireTime, callback); - return; + /** + * For browser only. If NetworkingError received, will attempt to obtain + * the bucket region. + * + * @api private + */ + reqRegionForNetworkingError: function reqRegionForNetworkingError(resp, done) { + if (!AWS.util.isBrowser()) { + return done(); + } + var error = resp.error; + var request = resp.request; + var bucket = request.params.Bucket; + if (!error || error.code !== 'NetworkingError' || !bucket || + request.httpRequest.region === 'us-east-1') { + return done(); } + var service = request.service; + var bucketRegionCache = service.bucketRegionCache; + var cachedRegion = bucketRegionCache[bucket] || null; - // Token is in expiry window, refresh from SSOOIDC.createToken() call. - validateTokenKey(tokenFromCache, 'clientId'); - validateTokenKey(tokenFromCache, 'clientSecret'); - validateTokenKey(tokenFromCache, 'refreshToken'); + if (cachedRegion && cachedRegion !== request.httpRequest.region) { + service.updateReqBucketRegion(request, cachedRegion); + done(); + } else if (!s3util.dnsCompatibleBucketName(bucket)) { + service.updateReqBucketRegion(request, 'us-east-1'); + if (bucketRegionCache[bucket] !== 'us-east-1') { + bucketRegionCache[bucket] = 'us-east-1'; + } + done(); + } else if (request.httpRequest.virtualHostedBucket) { + var getRegionReq = service.listObjects({Bucket: bucket, MaxKeys: 0}); + service.updateReqBucketRegion(getRegionReq, 'us-east-1'); + getRegionReq._requestRegionForBucket = bucket; - if (!self.service || self.service.config.region !== ssoSession.sso_region) { - self.service = new AWS.SSOOIDC({ region: ssoSession.sso_region }); + getRegionReq.send(function() { + var region = service.bucketRegionCache[bucket] || null; + if (region && region !== request.httpRequest.region) { + service.updateReqBucketRegion(request, region); + } + done(); + }); + } else { + // DNS-compatible path-style + // (s3ForcePathStyle or bucket name with dot over https) + // Cannot obtain region information for this case + done(); } + }, - var params = { - clientId: tokenFromCache.clientId, - clientSecret: tokenFromCache.clientSecret, - refreshToken: tokenFromCache.refreshToken, - grantType: 'refresh_token', - }; - - lastRefreshAttemptTime = AWS.util.date.getDate().getTime(); - self.service.createToken(params, function(err, data) { - if (err || !data) { - refreshUnsuccessful(currentTime, tokenExpireTime, callback); - } else { - try { - validateTokenKey(data, 'accessToken'); - validateTokenKey(data, 'expiresIn'); - self.expired = false; - self.token = data.accessToken; - self.expireTime = new Date(Date.now() + data.expiresIn * 1000); - callback(null); + /** + * Cache for bucket region. + * + * @api private + */ + bucketRegionCache: {}, - try { - // Write updated token data to disk. - tokenFromCache.accessToken = data.accessToken; - tokenFromCache.expiresAt = self.expireTime.toISOString(); - tokenFromCache.refreshToken = data.refreshToken; - fs.writeFileSync(cachePath, JSON.stringify(tokenFromCache, null, 2)); - } catch (error) { - // Swallow error if unable to write token to file. - } - } catch (error) { - refreshUnsuccessful(currentTime, tokenExpireTime, callback); - } + /** + * Clears bucket region cache. + * + * @api private + */ + clearBucketRegionCache: function(buckets) { + var bucketRegionCache = this.bucketRegionCache; + if (!buckets) { + buckets = Object.keys(bucketRegionCache); + } else if (typeof buckets === 'string') { + buckets = [buckets]; + } + for (var i = 0; i < buckets.length; i++) { + delete bucketRegionCache[buckets[i]]; + } + return bucketRegionCache; + }, + + /** + * Corrects request region if bucket's cached region is different + * + * @api private + */ + correctBucketRegionFromCache: function correctBucketRegionFromCache(req) { + var bucket = req.params.Bucket || null; + if (bucket) { + var service = req.service; + var requestRegion = req.httpRequest.region; + var cachedRegion = service.bucketRegionCache[bucket]; + if (cachedRegion && cachedRegion !== requestRegion) { + service.updateReqBucketRegion(req, cachedRegion); } - }); + } }, /** - * Loads the cached access token from disk. + * Extracts S3 specific request ids from the http response. * - * @callback callback function(err) - * Called after the AWS SSO process has been executed. When this - * callback is called with no error, it means that the token information - * has been loaded into the object (as the `token` property). - * @param err [Error] if an error occurred, this value will be filled. - * @see get + * @api private */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, -}); - + extractRequestIds: function extractRequestIds(resp) { + var extendedRequestId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-id-2'] : null; + var cfId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-cf-id'] : null; + resp.extendedRequestId = extendedRequestId; + resp.cfId = cfId; -/***/ }), + if (resp.error) { + resp.error.requestId = resp.requestId || null; + resp.error.extendedRequestId = extendedRequestId; + resp.error.cfId = cfId; + } + }, -/***/ 27477: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + /** + * Get a pre-signed URL for a given operation name. + * + * @note You must ensure that you have static or previously resolved + * credentials if you call this method synchronously (with no callback), + * otherwise it may not properly sign the request. If you cannot guarantee + * this (you are using an asynchronous credential provider, i.e., EC2 + * IAM roles), you should always call this method with an asynchronous + * callback. + * @note Not all operation parameters are supported when using pre-signed + * URLs. Certain parameters, such as `SSECustomerKey`, `ACL`, `Expires`, + * `ContentLength`, or `Tagging` must be provided as headers when sending a + * request. If you are using pre-signed URLs to upload from a browser and + * need to use these fields, see {createPresignedPost}. + * @note The default signer allows altering the request by adding corresponding + * headers to set some parameters (e.g. Range) and these added parameters + * won't be signed. You must use signatureVersion v4 to to include these + * parameters in the signed portion of the URL and enforce exact matching + * between headers and signed params in the URL. + * @note This operation cannot be used with a promise. See note above regarding + * asynchronous credentials and use with a callback. + * @param operation [String] the name of the operation to call + * @param params [map] parameters to pass to the operation. See the given + * operation for the expected operation parameters. In addition, you can + * also pass the "Expires" parameter to inform S3 how long the URL should + * work for. + * @option params Expires [Integer] (900) the number of seconds to expire + * the pre-signed URL operation in. Defaults to 15 minutes. + * @param callback [Function] if a callback is provided, this function will + * pass the URL as the second parameter (after the error parameter) to + * the callback function. + * @return [String] if called synchronously (with no callback), returns the + * signed URL. + * @return [null] nothing is returned if a callback is provided. + * @example Pre-signing a getObject operation (synchronously) + * var params = {Bucket: 'bucket', Key: 'key'}; + * var url = s3.getSignedUrl('getObject', params); + * console.log('The URL is', url); + * @example Pre-signing a putObject (asynchronously) + * var params = {Bucket: 'bucket', Key: 'key'}; + * s3.getSignedUrl('putObject', params, function (err, url) { + * console.log('The URL is', url); + * }); + * @example Pre-signing a putObject operation with a specific payload + * var params = {Bucket: 'bucket', Key: 'key', Body: 'body'}; + * var url = s3.getSignedUrl('putObject', params); + * console.log('The URL is', url); + * @example Passing in a 1-minute expiry time for a pre-signed URL + * var params = {Bucket: 'bucket', Key: 'key', Expires: 60}; + * var url = s3.getSignedUrl('getObject', params); + * console.log('The URL is', url); // expires in 60 seconds + */ + getSignedUrl: function getSignedUrl(operation, params, callback) { + params = AWS.util.copy(params || {}); + var expires = params.Expires || 900; -var AWS = __nccwpck_require__(14741); + if (typeof expires !== 'number') { + throw AWS.util.error(new Error(), + { code: 'InvalidParameterException', message: 'The expiration must be a number, received ' + typeof expires }); + } -/** - * Creates a token provider chain that searches for token in a list of - * token providers specified by the {providers} property. - * - * By default, the chain will use the {defaultProviders} to resolve token. - * - * ## Setting Providers - * - * Each provider in the {providers} list should be a function that returns - * a {AWS.Token} object, or a hardcoded token object. The function - * form allows for delayed execution of the Token construction. - * - * ## Resolving Token from a Chain - * - * Call {resolve} to return the first valid token object that can be - * loaded by the provider chain. - * - * For example, to resolve a chain with a custom provider that checks a file - * on disk after the set of {defaultProviders}: - * - * ```javascript - * var diskProvider = new FileTokenProvider('./token.json'); - * var chain = new AWS.TokenProviderChain(); - * chain.providers.push(diskProvider); - * chain.resolve(); - * ``` - * - * The above code will return the `diskProvider` object if the - * file contains token and the `defaultProviders` do not contain - * any token. - * - * @!attribute providers - * @return [Array] - * a list of token objects or functions that return token - * objects. If the provider is a function, the function will be - * executed lazily when the provider needs to be checked for valid - * token. By default, this object will be set to the {defaultProviders}. - * @see defaultProviders - */ -AWS.TokenProviderChain = AWS.util.inherit(AWS.Token, { + delete params.Expires; // we can't validate this + var request = this.makeRequest(operation, params); - /** - * Creates a new TokenProviderChain with a default set of providers - * specified by {defaultProviders}. - */ - constructor: function TokenProviderChain(providers) { - if (providers) { - this.providers = providers; + if (callback) { + AWS.util.defer(function() { + request.presign(expires, callback); + }); } else { - this.providers = AWS.TokenProviderChain.defaultProviders.slice(0); + return request.presign(expires, callback); } - this.resolveCallbacks = []; }, /** - * @!method resolvePromise() - * Returns a 'thenable' promise. - * Resolves the provider chain by searching for the first token in {providers}. + * @!method getSignedUrlPromise() + * Returns a 'thenable' promise that will be resolved with a pre-signed URL + * for a given operation name. * * Two callbacks can be provided to the `then` method on the returned promise. * The first callback will be called if the promise is fulfilled, and the second * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(token) - * Called if the promise is fulfilled and the provider resolves the chain - * to a token object - * @param token [AWS.Token] the token object resolved by the provider chain. - * @callback rejectedCallback function(error) + * @note Not all operation parameters are supported when using pre-signed + * URLs. Certain parameters, such as `SSECustomerKey`, `ACL`, `Expires`, + * `ContentLength`, or `Tagging` must be provided as headers when sending a + * request. If you are using pre-signed URLs to upload from a browser and + * need to use these fields, see {createPresignedPost}. + * @param operation [String] the name of the operation to call + * @param params [map] parameters to pass to the operation. See the given + * operation for the expected operation parameters. In addition, you can + * also pass the "Expires" parameter to inform S3 how long the URL should + * work for. + * @option params Expires [Integer] (900) the number of seconds to expire + * the pre-signed URL operation in. Defaults to 15 minutes. + * @callback fulfilledCallback function(url) + * Called if the promise is fulfilled. + * @param url [String] the signed url + * @callback rejectedCallback function(err) * Called if the promise is rejected. - * @param err [Error] the error object returned if no token is found. - * @return [Promise] A promise that represents the state of the `resolve` method call. - * @example Calling the `resolvePromise` method. - * var promise = chain.resolvePromise(); - * promise.then(function(token) { ... }, function(err) { ... }); + * @param err [Error] if an error occurred, this value will be filled + * @return [Promise] A promise that represents the state of the `refresh` call. + * @example Pre-signing a getObject operation + * var params = {Bucket: 'bucket', Key: 'key'}; + * var promise = s3.getSignedUrlPromise('getObject', params); + * promise.then(function(url) { + * console.log('The URL is', url); + * }, function(err) { ... }); + * @example Pre-signing a putObject operation with a specific payload + * var params = {Bucket: 'bucket', Key: 'key', Body: 'body'}; + * var promise = s3.getSignedUrlPromise('putObject', params); + * promise.then(function(url) { + * console.log('The URL is', url); + * }, function(err) { ... }); + * @example Passing in a 1-minute expiry time for a pre-signed URL + * var params = {Bucket: 'bucket', Key: 'key', Expires: 60}; + * var promise = s3.getSignedUrlPromise('getObject', params); + * promise.then(function(url) { + * console.log('The URL is', url); + * }, function(err) { ... }); */ /** - * Resolves the provider chain by searching for the first token in {providers}. + * Get a pre-signed POST policy to support uploading to S3 directly from an + * HTML form. * - * @callback callback function(err, token) - * Called when the provider resolves the chain to a token object - * or null if no token can be found. + * @param params [map] + * @option params Bucket [String] The bucket to which the post should be + * uploaded + * @option params Expires [Integer] (3600) The number of seconds for which + * the presigned policy should be valid. + * @option params Conditions [Array] An array of conditions that must be met + * for the presigned policy to allow the + * upload. This can include required tags, + * the accepted range for content lengths, + * etc. + * @see http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html + * @option params Fields [map] Fields to include in the form. All + * values passed in as fields will be + * signed as exact match conditions. + * @param callback [Function] * - * @param err [Error] the error object returned if no token is found. - * @param token [AWS.Token] the token object resolved by the provider chain. - * @return [AWS.TokenProviderChain] the provider, for chaining. + * @note All fields passed in when creating presigned post data will be signed + * as exact match conditions. Any fields that will be interpolated by S3 + * must be added to the fields hash after signing, and an appropriate + * condition for such fields must be explicitly added to the Conditions + * array passed to this function before signing. + * + * @example Presiging post data with a known key + * var params = { + * Bucket: 'bucket', + * Fields: { + * key: 'key' + * } + * }; + * s3.createPresignedPost(params, function(err, data) { + * if (err) { + * console.error('Presigning post data encountered an error', err); + * } else { + * console.log('The post data is', data); + * } + * }); + * + * @example Presigning post data with an interpolated key + * var params = { + * Bucket: 'bucket', + * Conditions: [ + * ['starts-with', '$key', 'path/to/uploads/'] + * ] + * }; + * s3.createPresignedPost(params, function(err, data) { + * if (err) { + * console.error('Presigning post data encountered an error', err); + * } else { + * data.Fields.key = 'path/to/uploads/${filename}'; + * console.log('The post data is', data); + * } + * }); + * + * @note You must ensure that you have static or previously resolved + * credentials if you call this method synchronously (with no callback), + * otherwise it may not properly sign the request. If you cannot guarantee + * this (you are using an asynchronous credential provider, i.e., EC2 + * IAM roles), you should always call this method with an asynchronous + * callback. + * + * @return [map] If called synchronously (with no callback), returns a hash + * with the url to set as the form action and a hash of fields + * to include in the form. + * @return [null] Nothing is returned if a callback is provided. + * + * @callback callback function (err, data) + * @param err [Error] the error object returned from the policy signer + * @param data [map] The data necessary to construct an HTML form + * @param data.url [String] The URL to use as the action of the form + * @param data.fields [map] A hash of fields that must be included in the + * form for the upload to succeed. This hash will + * include the signed POST policy, your access key + * ID and security token (if present), etc. These + * may be safely included as input elements of type + * 'hidden.' */ - resolve: function resolve(callback) { - var self = this; - if (self.providers.length === 0) { - callback(new Error('No providers')); - return self; + createPresignedPost: function createPresignedPost(params, callback) { + if (typeof params === 'function' && callback === undefined) { + callback = params; + params = null; } - if (self.resolveCallbacks.push(callback) === 1) { - var index = 0; - var providers = self.providers.slice(0); - - function resolveNext(err, token) { - if ((!err && token) || index === providers.length) { - AWS.util.arrayEach(self.resolveCallbacks, function (callback) { - callback(err, token); - }); - self.resolveCallbacks.length = 0; - return; - } + params = AWS.util.copy(params || {}); + var boundParams = this.config.params || {}; + var bucket = params.Bucket || boundParams.Bucket, + self = this, + config = this.config, + endpoint = AWS.util.copy(this.endpoint); + if (!config.s3BucketEndpoint) { + endpoint.pathname = '/' + bucket; + } - var provider = providers[index++]; - if (typeof provider === 'function') { - token = provider.call(); - } else { - token = provider; - } + function finalizePost() { + return { + url: AWS.util.urlFormat(endpoint), + fields: self.preparePostFields( + config.credentials, + config.region, + bucket, + params.Fields, + params.Conditions, + params.Expires + ) + }; + } - if (token.get) { - token.get(function (getErr) { - resolveNext(getErr, getErr ? null : token); - }); + if (callback) { + config.getCredentials(function (err) { + if (err) { + callback(err); } else { - resolveNext(null, token); + try { + callback(null, finalizePost()); + } catch (err) { + callback(err); + } } - } - - resolveNext(); - } - - return self; - } -}); - -/** - * The default set of providers used by a vanilla TokenProviderChain. - * - * In the browser: - * - * ```javascript - * AWS.TokenProviderChain.defaultProviders = [] - * ``` - * - * In Node.js: - * - * ```javascript - * AWS.TokenProviderChain.defaultProviders = [ - * function () { return new AWS.SSOTokenProvider(); }, - * ] - * ``` - */ -AWS.TokenProviderChain.defaultProviders = []; - -/** - * @api private - */ -AWS.TokenProviderChain.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.resolvePromise = AWS.util.promisifyMethod('resolve', PromiseDependency); -}; - -/** - * @api private - */ -AWS.TokenProviderChain.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.resolvePromise; -}; - -AWS.util.addPromises(AWS.TokenProviderChain); - - -/***/ }), - -/***/ 43956: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/* eslint guard-for-in:0 */ -var AWS; - -/** - * A set of utility methods for use with the AWS SDK. - * - * @!attribute abort - * Return this value from an iterator function {each} or {arrayEach} - * to break out of the iteration. - * @example Breaking out of an iterator function - * AWS.util.each({a: 1, b: 2, c: 3}, function(key, value) { - * if (key == 'b') return AWS.util.abort; - * }); - * @see each - * @see arrayEach - * @api private - */ -var util = { - environment: 'nodejs', - engine: function engine() { - if (util.isBrowser() && typeof navigator !== 'undefined') { - return navigator.userAgent; + }); } else { - var engine = process.platform + '/' + process.version; - if (process.env.AWS_EXECUTION_ENV) { - engine += ' exec-env/' + process.env.AWS_EXECUTION_ENV; - } - return engine; + return finalizePost(); } }, - userAgent: function userAgent() { - var name = util.environment; - var agent = 'aws-sdk-' + name + '/' + (__nccwpck_require__(14741).VERSION); - if (name === 'nodejs') agent += ' ' + util.engine(); - return agent; - }, - - uriEscape: function uriEscape(string) { - var output = encodeURIComponent(string); - output = output.replace(/[^A-Za-z0-9_.~\-%]+/g, escape); - - // AWS percent-encodes some extra non-standard characters in a URI - output = output.replace(/[*]/g, function(ch) { - return '%' + ch.charCodeAt(0).toString(16).toUpperCase(); - }); - - return output; - }, - - uriEscapePath: function uriEscapePath(string) { - var parts = []; - util.arrayEach(string.split('/'), function (part) { - parts.push(util.uriEscape(part)); - }); - return parts.join('/'); - }, - - urlParse: function urlParse(url) { - return util.url.parse(url); - }, - - urlFormat: function urlFormat(url) { - return util.url.format(url); - }, - - queryStringParse: function queryStringParse(qs) { - return util.querystring.parse(qs); - }, + /** + * @api private + */ + preparePostFields: function preparePostFields( + credentials, + region, + bucket, + fields, + conditions, + expiresInSeconds + ) { + var now = this.getSkewCorrectedDate(); + if (!credentials || !region || !bucket) { + throw new Error('Unable to create a POST object policy without a bucket,' + + ' region, and credentials'); + } + fields = AWS.util.copy(fields || {}); + conditions = (conditions || []).slice(0); + expiresInSeconds = expiresInSeconds || 3600; - queryParamsToString: function queryParamsToString(params) { - var items = []; - var escape = util.uriEscape; - var sortedKeys = Object.keys(params).sort(); + var signingDate = AWS.util.date.iso8601(now).replace(/[:\-]|\.\d{3}/g, ''); + var shortDate = signingDate.substr(0, 8); + var scope = v4Credentials.createScope(shortDate, region, 's3'); + var credential = credentials.accessKeyId + '/' + scope; - util.arrayEach(sortedKeys, function(name) { - var value = params[name]; - var ename = escape(name); - var result = ename + '='; - if (Array.isArray(value)) { - var vals = []; - util.arrayEach(value, function(item) { vals.push(escape(item)); }); - result = ename + '=' + vals.sort().join('&' + ename + '='); - } else if (value !== undefined && value !== null) { - result = ename + '=' + escape(value); + fields['bucket'] = bucket; + fields['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256'; + fields['X-Amz-Credential'] = credential; + fields['X-Amz-Date'] = signingDate; + if (credentials.sessionToken) { + fields['X-Amz-Security-Token'] = credentials.sessionToken; + } + for (var field in fields) { + if (fields.hasOwnProperty(field)) { + var condition = {}; + condition[field] = fields[field]; + conditions.push(condition); } - items.push(result); - }); + } - return items.join('&'); - }, + fields.Policy = this.preparePostPolicy( + new Date(now.valueOf() + expiresInSeconds * 1000), + conditions + ); + fields['X-Amz-Signature'] = AWS.util.crypto.hmac( + v4Credentials.getSigningKey(credentials, shortDate, region, 's3', true), + fields.Policy, + 'hex' + ); - readFileSync: function readFileSync(path) { - if (util.isBrowser()) return null; - return (__nccwpck_require__(57147).readFileSync)(path, 'utf-8'); + return fields; }, - base64: { - encode: function encode64(string) { - if (typeof string === 'number') { - throw util.error(new Error('Cannot base64 encode number ' + string)); - } - if (string === null || typeof string === 'undefined') { - return string; - } - var buf = util.buffer.toBuffer(string); - return buf.toString('base64'); - }, + /** + * @api private + */ + preparePostPolicy: function preparePostPolicy(expiration, conditions) { + return AWS.util.base64.encode(JSON.stringify({ + expiration: AWS.util.date.iso8601(expiration), + conditions: conditions + })); + }, - decode: function decode64(string) { - if (typeof string === 'number') { - throw util.error(new Error('Cannot base64 decode number ' + string)); - } - if (string === null || typeof string === 'undefined') { - return string; - } - return util.buffer.toBuffer(string, 'base64'); + /** + * @api private + */ + prepareSignedUrl: function prepareSignedUrl(request) { + request.addListener('validate', request.service.noPresignedContentLength); + request.removeListener('build', request.service.addContentType); + if (!request.params.Body) { + // no Content-MD5/SHA-256 if body is not provided + request.removeListener('build', request.service.computeContentMd5); + } else { + request.addListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); } - }, - buffer: { - /** - * Buffer constructor for Node buffer and buffer pollyfill - */ - toBuffer: function(data, encoding) { - return (typeof util.Buffer.from === 'function' && util.Buffer.from !== Uint8Array.from) ? - util.Buffer.from(data, encoding) : new util.Buffer(data, encoding); - }, - - alloc: function(size, fill, encoding) { - if (typeof size !== 'number') { - throw new Error('size passed to alloc must be a number.'); - } - if (typeof util.Buffer.alloc === 'function') { - return util.Buffer.alloc(size, fill, encoding); - } else { - var buf = new util.Buffer(size); - if (fill !== undefined && typeof buf.fill === 'function') { - buf.fill(fill, undefined, undefined, encoding); - } - return buf; - } - }, - - toStream: function toStream(buffer) { - if (!util.Buffer.isBuffer(buffer)) buffer = util.buffer.toBuffer(buffer); - - var readable = new (util.stream.Readable)(); - var pos = 0; - readable._read = function(size) { - if (pos >= buffer.length) return readable.push(null); - - var end = pos + size; - if (end > buffer.length) end = buffer.length; - readable.push(buffer.slice(pos, end)); - pos = end; - }; - - return readable; - }, - - /** - * Concatenates a list of Buffer objects. - */ - concat: function(buffers) { - var length = 0, - offset = 0, - buffer = null, i; - - for (i = 0; i < buffers.length; i++) { - length += buffers[i].length; - } - - buffer = util.buffer.alloc(length); - - for (i = 0; i < buffers.length; i++) { - buffers[i].copy(buffer, offset); - offset += buffers[i].length; - } - - return buffer; + /** + * @api private + * @param request + */ + disableBodySigning: function disableBodySigning(request) { + var headers = request.httpRequest.headers; + // Add the header to anything that isn't a presigned url, unless that presigned url had a body defined + if (!Object.prototype.hasOwnProperty.call(headers, 'presigned-expires')) { + headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD'; } }, - string: { - byteLength: function byteLength(string) { - if (string === null || string === undefined) return 0; - if (typeof string === 'string') string = util.buffer.toBuffer(string); - - if (typeof string.byteLength === 'number') { - return string.byteLength; - } else if (typeof string.length === 'number') { - return string.length; - } else if (typeof string.size === 'number') { - return string.size; - } else if (typeof string.path === 'string') { - return (__nccwpck_require__(57147).lstatSync)(string.path).size; - } else { - throw util.error(new Error('Cannot determine length of ' + string), - { object: string }); - } - }, - - upperFirst: function upperFirst(string) { - return string[0].toUpperCase() + string.substr(1); - }, - - lowerFirst: function lowerFirst(string) { - return string[0].toLowerCase() + string.substr(1); + /** + * @api private + */ + noPresignedContentLength: function noPresignedContentLength(request) { + if (request.params.ContentLength !== undefined) { + throw AWS.util.error(new Error(), {code: 'UnexpectedParameter', + message: 'ContentLength is not supported in pre-signed URLs.'}); } }, - ini: { - parse: function string(ini) { - var currentSection, map = {}; - util.arrayEach(ini.split(/\r?\n/), function(line) { - line = line.split(/(^|\s)[;#]/)[0].trim(); // remove comments and trim - var isSection = line[0] === '[' && line[line.length - 1] === ']'; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (currentSection === '__proto__' || currentSection.split(/\s/)[1] === '__proto__') { - throw util.error( - new Error('Cannot load profile name \'' + currentSection + '\' from shared ini file.') - ); - } - } else if (currentSection) { - var indexOfEqualsSign = line.indexOf('='); - var start = 0; - var end = line.length - 1; - var isAssignment = - indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - - if (isAssignment) { - var name = line.substring(0, indexOfEqualsSign).trim(); - var value = line.substring(indexOfEqualsSign + 1).trim(); - - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } - } - }); + createBucket: function createBucket(params, callback) { + // When creating a bucket *outside* the classic region, the location + // constraint must be set for the bucket and it must match the endpoint. + // This chunk of code will set the location constraint param based + // on the region (when possible), but it will not override a passed-in + // location constraint. + if (typeof params === 'function' || !params) { + callback = callback || params; + params = {}; + } + var hostname = this.endpoint.hostname; + // copy params so that appending keys does not unintentioinallly + // mutate params object argument passed in by user + var copiedParams = AWS.util.copy(params); - return map; + if ( + this.config.region !== 'us-east-1' + && hostname !== this.api.globalEndpoint + && !params.CreateBucketConfiguration + ) { + copiedParams.CreateBucketConfiguration = { LocationConstraint: this.config.region }; } + return this.makeRequest('createBucket', copiedParams, callback); }, - fn: { - noop: function() {}, - callback: function (err) { if (err) throw err; }, - - /** - * Turn a synchronous function into as "async" function by making it call - * a callback. The underlying function is called with all but the last argument, - * which is treated as the callback. The callback is passed passed a first argument - * of null on success to mimick standard node callbacks. - */ - makeAsync: function makeAsync(fn, expectedArgs) { - if (expectedArgs && expectedArgs <= fn.length) { - return fn; - } + writeGetObjectResponse: function writeGetObjectResponse(params, callback) { - return function() { - var args = Array.prototype.slice.call(arguments, 0); - var callback = args.pop(); - var result = fn.apply(null, args); - callback(result); - }; + var request = this.makeRequest('writeGetObjectResponse', AWS.util.copy(params), callback); + var hostname = this.endpoint.hostname; + if (hostname.indexOf(this.config.region) !== -1) { + // hostname specifies a region already + hostname = hostname.replace('s3.', OBJECT_LAMBDA_SERVICE + '.'); + } else { + // Hostname doesn't have a region. + // Object Lambda requires an explicit region. + hostname = hostname.replace('s3.', OBJECT_LAMBDA_SERVICE + '.' + this.config.region + '.'); } + + request.httpRequest.endpoint = new AWS.Endpoint(hostname, this.config); + return request; }, /** - * Date and time utility functions. + * @see AWS.S3.ManagedUpload + * @overload upload(params = {}, [options], [callback]) + * Uploads an arbitrarily sized buffer, blob, or stream, using intelligent + * concurrent handling of parts if the payload is large enough. You can + * configure the concurrent queue size by setting `options`. Note that this + * is the only operation for which the SDK can retry requests with stream + * bodies. + * + * @param (see AWS.S3.putObject) + * @option (see AWS.S3.ManagedUpload.constructor) + * @return [AWS.S3.ManagedUpload] the managed upload object that can call + * `send()` or track progress. + * @example Uploading a stream object + * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; + * s3.upload(params, function(err, data) { + * console.log(err, data); + * }); + * @example Uploading a stream with concurrency of 1 and partSize of 10mb + * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; + * var options = {partSize: 10 * 1024 * 1024, queueSize: 1}; + * s3.upload(params, options, function(err, data) { + * console.log(err, data); + * }); + * @callback callback function(err, data) + * @param err [Error] an error or null if no error occurred. + * @param data [map] The response data from the successful upload: + * @param data.Location [String] the URL of the uploaded object + * @param data.ETag [String] the ETag of the uploaded object + * @param data.Bucket [String] the bucket to which the object was uploaded + * @param data.Key [String] the key to which the object was uploaded */ - date: { - - /** - * @return [Date] the current JavaScript date object. Since all - * AWS services rely on this date object, you can override - * this function to provide a special time value to AWS service - * requests. - */ - getDate: function getDate() { - if (!AWS) AWS = __nccwpck_require__(14741); - if (AWS.config.systemClockOffset) { // use offset when non-zero - return new Date(new Date().getTime() + AWS.config.systemClockOffset); - } else { - return new Date(); - } - }, - - /** - * @return [String] the date in ISO-8601 format - */ - iso8601: function iso8601(date) { - if (date === undefined) { date = util.date.getDate(); } - return date.toISOString().replace(/\.\d{3}Z$/, 'Z'); - }, + upload: function upload(params, options, callback) { + if (typeof options === 'function' && callback === undefined) { + callback = options; + options = null; + } - /** - * @return [String] the date in RFC 822 format - */ - rfc822: function rfc822(date) { - if (date === undefined) { date = util.date.getDate(); } - return date.toUTCString(); - }, + options = options || {}; + options = AWS.util.merge(options || {}, {service: this, params: params}); - /** - * @return [Integer] the UNIX timestamp value for the current time - */ - unixTimestamp: function unixTimestamp(date) { - if (date === undefined) { date = util.date.getDate(); } - return date.getTime() / 1000; - }, + var uploader = new AWS.S3.ManagedUpload(options); + if (typeof callback === 'function') uploader.send(callback); + return uploader; + }, - /** - * @param [String,number,Date] date - * @return [Date] - */ - from: function format(date) { - if (typeof date === 'number') { - return new Date(date * 1000); // unix timestamp - } else { - return new Date(date); + /** + * @api private + */ + setExpiresString: function setExpiresString(response) { + // Check if response contains Expires value, and populate ExpiresString. + if (response && response.httpResponse && response.httpResponse.headers) { + if ('expires' in response.httpResponse.headers) { + response.httpResponse.headers.expiresstring = response.httpResponse.headers.expires; } - }, - - /** - * Given a Date or date-like value, this function formats the - * date into a string of the requested value. - * @param [String,number,Date] date - * @param [String] formatter Valid formats are: - # * 'iso8601' - # * 'rfc822' - # * 'unixTimestamp' - * @return [String] - */ - format: function format(date, formatter) { - if (!formatter) formatter = 'iso8601'; - return util.date[formatter](util.date.from(date)); - }, + } - parseTimestamp: function parseTimestamp(value) { - if (typeof value === 'number') { // unix timestamp (number) - return new Date(value * 1000); - } else if (value.match(/^\d+$/)) { // unix timestamp - return new Date(value * 1000); - } else if (value.match(/^\d{4}/)) { // iso8601 - return new Date(value); - } else if (value.match(/^\w{3},/)) { // rfc822 - return new Date(value); - } else { - throw util.error( - new Error('unhandled timestamp format: ' + value), - {code: 'TimestampParserError'}); + // Check if value in Expires is not a Date using parseTimestamp. + try { + if (response && response.httpResponse && response.httpResponse.headers) { + if ('expires' in response.httpResponse.headers) { + AWS.util.date.parseTimestamp(response.httpResponse.headers.expires); + } } + } catch (e) { + console.log('AWS SDK', '(warning)', e); + delete response.httpResponse.headers.expires; } + } +}); - }, - - crypto: { - crc32Table: [ - 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, - 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, - 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, - 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, - 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, - 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 0x14015C4F, 0x63066CD9, - 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4, - 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, - 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, - 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC, 0x51DE003A, - 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, - 0xB8BDA50F, 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, - 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, 0x76DC4190, - 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, - 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, - 0xE10E9818, 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, - 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 0x6C0695ED, - 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, - 0x8BBEB8EA, 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, - 0xFBD44C65, 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, - 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A, - 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, - 0xAA0A4C5F, 0xDD0D7CC9, 0x5005713C, 0x270241AA, 0xBE0B1010, - 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, - 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, - 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, - 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, - 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, - 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, - 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, - 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, - 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, - 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, - 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 0xD80D2BDA, 0xAF0A1B4C, - 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, - 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, - 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, 0xC5BA3BBE, - 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, 0xB5D0CF31, - 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, - 0x026D930A, 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, - 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 0x92D28E9B, - 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242, - 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, - 0x18B74777, 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, - 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, 0xA00AE278, - 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, - 0x4969474D, 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, - 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, - 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, - 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, - 0x5D681B02, 0x2A6F2B94, 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, - 0x2D02EF8D], - - crc32: function crc32(data) { - var tbl = util.crypto.crc32Table; - var crc = 0 ^ -1; +/** + * @api private + */ +AWS.S3.addPromisesToClass = function addPromisesToClass(PromiseDependency) { + this.prototype.getSignedUrlPromise = AWS.util.promisifyMethod('getSignedUrl', PromiseDependency); +}; - if (typeof data === 'string') { - data = util.buffer.toBuffer(data); - } +/** + * @api private + */ +AWS.S3.deletePromisesFromClass = function deletePromisesFromClass() { + delete this.prototype.getSignedUrlPromise; +}; - for (var i = 0; i < data.length; i++) { - var code = data.readUInt8(i); - crc = (crc >>> 8) ^ tbl[(crc ^ code) & 0xFF]; - } - return (crc ^ -1) >>> 0; - }, +AWS.util.addPromises(AWS.S3); - hmac: function hmac(key, string, digest, fn) { - if (!digest) digest = 'binary'; - if (digest === 'buffer') { digest = undefined; } - if (!fn) fn = 'sha256'; - if (typeof string === 'string') string = util.buffer.toBuffer(string); - return util.crypto.lib.createHmac(fn, key).update(string).digest(digest); - }, - md5: function md5(data, digest, callback) { - return util.crypto.hash('md5', data, digest, callback); - }, +/***/ }), - sha256: function sha256(data, digest, callback) { - return util.crypto.hash('sha256', data, digest, callback); - }, +/***/ 72719: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - hash: function(algorithm, data, digest, callback) { - var hash = util.crypto.createHash(algorithm); - if (!digest) { digest = 'binary'; } - if (digest === 'buffer') { digest = undefined; } - if (typeof data === 'string') data = util.buffer.toBuffer(data); - var sliceFn = util.arraySliceFn(data); - var isBuffer = util.Buffer.isBuffer(data); - //Identifying objects with an ArrayBuffer as buffers - if (util.isBrowser() && typeof ArrayBuffer !== 'undefined' && data && data.buffer instanceof ArrayBuffer) isBuffer = true; +var AWS = __nccwpck_require__(53832); +var s3util = __nccwpck_require__(68568); +var regionUtil = __nccwpck_require__(81940); - if (callback && typeof data === 'object' && - typeof data.on === 'function' && !isBuffer) { - data.on('data', function(chunk) { hash.update(chunk); }); - data.on('error', function(err) { callback(err); }); - data.on('end', function() { callback(null, hash.digest(digest)); }); - } else if (callback && sliceFn && !isBuffer && - typeof FileReader !== 'undefined') { - // this might be a File/Blob - var index = 0, size = 1024 * 512; - var reader = new FileReader(); - reader.onerror = function() { - callback(new Error('Failed to read data.')); - }; - reader.onload = function() { - var buf = new util.Buffer(new Uint8Array(reader.result)); - hash.update(buf); - index += buf.length; - reader._continueReading(); - }; - reader._continueReading = function() { - if (index >= data.size) { - callback(null, hash.digest(digest)); - return; - } +AWS.util.update(AWS.S3Control.prototype, { + /** + * @api private + */ + setupRequestListeners: function setupRequestListeners(request) { + request.addListener('extractError', this.extractHostId); + request.addListener('extractData', this.extractHostId); + request.addListener('validate', this.validateAccountId); - var back = index + size; - if (back > data.size) back = data.size; - reader.readAsArrayBuffer(sliceFn.call(data, index, back)); - }; + var isArnInBucket = s3util.isArnInParam(request, 'Bucket'); + var isArnInName = s3util.isArnInParam(request, 'Name'); - reader._continueReading(); - } else { - if (util.isBrowser() && typeof data === 'object' && !isBuffer) { - data = new util.Buffer(new Uint8Array(data)); - } - var out = hash.update(data).digest(digest); - if (callback) callback(null, out); - return out; - } - }, + if (isArnInBucket) { + request._parsedArn = AWS.util.ARN.parse(request.params['Bucket']); + request.addListener('validate', this.validateOutpostsBucketArn); + request.addListener('validate', s3util.validateOutpostsArn); + request.addListener('afterBuild', this.addOutpostIdHeader); + } else if (isArnInName) { + request._parsedArn = AWS.util.ARN.parse(request.params['Name']); + request.addListener('validate', s3util.validateOutpostsAccessPointArn); + request.addListener('validate', s3util.validateOutpostsArn); + request.addListener('afterBuild', this.addOutpostIdHeader); + } - toHex: function toHex(data) { - var out = []; - for (var i = 0; i < data.length; i++) { - out.push(('0' + data.charCodeAt(i).toString(16)).substr(-2, 2)); - } - return out.join(''); - }, + if (isArnInBucket || isArnInName) { + request.addListener('validate', this.validateArnRegion); + request.addListener('validate', this.validateArnAccountWithParams, true); + request.addListener('validate', s3util.validateArnAccount); + request.addListener('validate', s3util.validateArnService); + request.addListener('build', this.populateParamFromArn, true); + request.addListener('build', this.populateUriFromArn); + request.addListener('build', s3util.validatePopulateUriFromArn); + } - createHash: function createHash(algorithm) { - return util.crypto.lib.createHash(algorithm); + if (request.params.OutpostId && + (request.operation === 'createBucket' || + request.operation === 'listRegionalBuckets')) { + request.addListener('build', this.populateEndpointForOutpostId); } + }, + /** + * Adds outpostId header + */ + addOutpostIdHeader: function addOutpostIdHeader(req) { + req.httpRequest.headers['x-amz-outpost-id'] = req._parsedArn.outpostId; }, - /** @!ignore */ + /** + * Validate Outposts ARN supplied in Bucket parameter is a valid bucket name + */ + validateOutpostsBucketArn: function validateOutpostsBucketArn(req) { + var parsedArn = req._parsedArn; - /* Abort constant */ - abort: {}, + //can be ':' or '/' + var delimiter = parsedArn.resource['outpost'.length]; - each: function each(object, iterFunction) { - for (var key in object) { - if (Object.prototype.hasOwnProperty.call(object, key)) { - var ret = iterFunction.call(this, key, object[key]); - if (ret === util.abort) break; - } + if (parsedArn.resource.split(delimiter).length !== 4) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'Bucket ARN should have two resources outpost/{outpostId}/bucket/{accesspointName}' + }); } + + var bucket = parsedArn.resource.split(delimiter)[3]; + if (!s3util.dnsCompatibleBucketName(bucket) || bucket.match(/\./)) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'Bucket ARN is not DNS compatible. Got ' + bucket + }); + } + + //set parsed valid bucket + req._parsedArn.bucket = bucket; }, - arrayEach: function arrayEach(array, iterFunction) { - for (var idx in array) { - if (Object.prototype.hasOwnProperty.call(array, idx)) { - var ret = iterFunction.call(this, array[idx], parseInt(idx, 10)); - if (ret === util.abort) break; - } + /** + * @api private + */ + populateParamFromArn: function populateParamFromArn(req) { + var parsedArn = req._parsedArn; + if (s3util.isArnInParam(req, 'Bucket')) { + req.params.Bucket = parsedArn.bucket; + } else if (s3util.isArnInParam(req, 'Name')) { + req.params.Name = parsedArn.accessPoint; } }, - update: function update(obj1, obj2) { - util.each(obj2, function iterator(key, item) { - obj1[key] = item; - }); - return obj1; + /** + * Populate URI according to the ARN + */ + populateUriFromArn: function populateUriFromArn(req) { + var parsedArn = req._parsedArn; + + var endpoint = req.httpRequest.endpoint; + var useArnRegion = req.service.config.s3UseArnRegion; + var useFipsEndpoint = req.service.config.useFipsEndpoint; + + endpoint.hostname = [ + 's3-outposts' + (useFipsEndpoint ? '-fips': ''), + useArnRegion ? parsedArn.region : req.service.config.region, + 'amazonaws.com' + ].join('.'); + endpoint.host = endpoint.hostname; }, - merge: function merge(obj1, obj2) { - return util.update(util.copy(obj1), obj2); + /** + * @api private + */ + populateEndpointForOutpostId: function populateEndpointForOutpostId(req) { + var endpoint = req.httpRequest.endpoint; + var useFipsEndpoint = req.service.config.useFipsEndpoint; + endpoint.hostname = [ + 's3-outposts' + (useFipsEndpoint ? '-fips': ''), + req.service.config.region, + 'amazonaws.com' + ].join('.'); + endpoint.host = endpoint.hostname; }, - copy: function copy(object) { - if (object === null || object === undefined) return object; - var dupe = {}; - // jshint forin:false - for (var key in object) { - dupe[key] = object[key]; + /** + * @api private + */ + extractHostId: function(response) { + var hostId = response.httpResponse.headers ? response.httpResponse.headers['x-amz-id-2'] : null; + response.extendedRequestId = hostId; + if (response.error) { + response.error.extendedRequestId = hostId; } - return dupe; }, - isEmpty: function isEmpty(obj) { - for (var prop in obj) { - if (Object.prototype.hasOwnProperty.call(obj, prop)) { - return false; + /** + * @api private + */ + validateArnRegion: function validateArnRegion(req) { + s3util.validateArnRegion(req, { allowFipsEndpoint: true }); + }, + + /** + * @api private + */ + validateArnAccountWithParams: function validateArnAccountWithParams(req) { + var params = req.params; + var inputModel = req.service.api.operations[req.operation].input; + if (inputModel.members.AccountId) { + var parsedArn = req._parsedArn; + if (parsedArn.accountId) { + if (params.AccountId) { + if (params.AccountId !== parsedArn.accountId) { + throw AWS.util.error( + new Error(), + {code: 'ValidationError', message: 'AccountId in ARN and request params should be same.'} + ); + } + } else { + // Store accountId from ARN in params + params.AccountId = parsedArn.accountId; + } } } - return true; }, - arraySliceFn: function arraySliceFn(obj) { - var fn = obj.slice || obj.webkitSlice || obj.mozSlice; - return typeof fn === 'function' ? fn : null; + /** + * @api private + */ + validateAccountId: function(request) { + var params = request.params; + if (!Object.prototype.hasOwnProperty.call(params, 'AccountId')) return; + var accountId = params.AccountId; + //validate type + if (typeof accountId !== 'string') { + throw AWS.util.error( + new Error(), + {code: 'ValidationError', message: 'AccountId must be a string.'} + ); + } + //validate length + if (accountId.length < 1 || accountId.length > 63) { + throw AWS.util.error( + new Error(), + {code: 'ValidationError', message: 'AccountId length should be between 1 to 63 characters, inclusive.'} + ); + } + //validate pattern + var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; + if (!hostPattern.test(accountId)) { + throw AWS.util.error(new Error(), + {code: 'ValidationError', message: 'AccountId should be hostname compatible. AccountId: ' + accountId}); + } }, - isType: function isType(obj, type) { - // handle cross-"frame" objects - if (typeof type === 'function') type = util.typeName(type); - return Object.prototype.toString.call(obj) === '[object ' + type + ']'; + /** + * @api private + */ + getSigningName: function getSigningName(req) { + var _super = AWS.Service.prototype.getSigningName; + if (req && req._parsedArn && req._parsedArn.service) { + return req._parsedArn.service; + } else if (req.params.OutpostId && + (req.operation === 'createBucket' || + req.operation === 'listRegionalBuckets')) { + return 's3-outposts'; + } else { + return _super.call(this, req); + } }, +}); - typeName: function typeName(type) { - if (Object.prototype.hasOwnProperty.call(type, 'name')) return type.name; - var str = type.toString(); - var match = str.match(/^\s*function (.+)\(/); - return match ? match[1] : str; - }, - error: function error(err, options) { - var originalError = null; - if (typeof err.message === 'string' && err.message !== '') { - if (typeof options === 'string' || (options && options.message)) { - originalError = util.copy(err); - originalError.message = err.message; - } - } - err.message = err.message || null; +/***/ }), - if (typeof options === 'string') { - err.message = options; - } else if (typeof options === 'object' && options !== null) { - util.update(err, options); - if (options.message) - err.message = options.message; - if (options.code || options.name) - err.code = options.code || options.name; - if (options.stack) - err.stack = options.stack; - } +/***/ 68568: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (typeof Object.defineProperty === 'function') { - Object.defineProperty(err, 'name', {writable: true, enumerable: false}); - Object.defineProperty(err, 'message', {enumerable: true}); - } +var AWS = __nccwpck_require__(53832); +var regionUtil = __nccwpck_require__(81940); - err.name = String(options && options.name || err.name || err.code || 'Error'); - err.time = new Date(); +var s3util = { + /** + * @api private + */ + isArnInParam: function isArnInParam(req, paramName) { + var inputShape = (req.service.api.operations[req.operation] || {}).input || {}; + var inputMembers = inputShape.members || {}; + if (!req.params[paramName] || !inputMembers[paramName]) return false; + return AWS.util.ARN.validate(req.params[paramName]); + }, - if (originalError) { - err.originalError = originalError; + /** + * Validate service component from ARN supplied in Bucket parameter + */ + validateArnService: function validateArnService(req) { + var parsedArn = req._parsedArn; + + if (parsedArn.service !== 's3' + && parsedArn.service !== 's3-outposts' + && parsedArn.service !== 's3-object-lambda') { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'expect \'s3\' or \'s3-outposts\' or \'s3-object-lambda\' in ARN service component' + }); } + }, + /** + * Validate account ID from ARN supplied in Bucket parameter is a valid account + */ + validateArnAccount: function validateArnAccount(req) { + var parsedArn = req._parsedArn; - for (var key in options || {}) { - if (key[0] === '[' && key[key.length - 1] === ']') { - key = key.slice(1, -1); - if (key === 'code' || key === 'message') { - continue; - } - err['[' + key + ']'] = 'See error.' + key + ' for details.'; - Object.defineProperty(err, key, { - value: err[key] || (options && options[key]) || (originalError && originalError[key]), - enumerable: false, - writable: true - }); - } + if (!/[0-9]{12}/.exec(parsedArn.accountId)) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'ARN accountID does not match regex "[0-9]{12}"' + }); } - - return err; }, /** - * @api private + * Validate ARN supplied in Bucket parameter is a valid access point ARN */ - inherit: function inherit(klass, features) { - var newObject = null; - if (features === undefined) { - features = klass; - klass = Object; - newObject = {}; - } else { - var ctor = function ConstructorWrapper() {}; - ctor.prototype = klass.prototype; - newObject = new ctor(); + validateS3AccessPointArn: function validateS3AccessPointArn(req) { + var parsedArn = req._parsedArn; + + //can be ':' or '/' + var delimiter = parsedArn.resource['accesspoint'.length]; + + if (parsedArn.resource.split(delimiter).length !== 2) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'Access Point ARN should have one resource accesspoint/{accesspointName}' + }); } - // constructor not supplied, create pass-through ctor - if (features.constructor === Object) { - features.constructor = function() { - if (klass !== Object) { - return klass.apply(this, arguments); - } - }; + var accessPoint = parsedArn.resource.split(delimiter)[1]; + var accessPointPrefix = accessPoint + '-' + parsedArn.accountId; + if (!s3util.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\./)) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'Access point resource in ARN is not DNS compatible. Got ' + accessPoint + }); } - features.constructor.prototype = newObject; - util.update(features.constructor.prototype, features); - features.constructor.__super__ = klass; - return features.constructor; + //set parsed valid access point + req._parsedArn.accessPoint = accessPoint; }, /** - * @api private + * Validate Outposts ARN supplied in Bucket parameter is a valid outposts ARN */ - mixin: function mixin() { - var klass = arguments[0]; - for (var i = 1; i < arguments.length; i++) { - // jshint forin:false - for (var prop in arguments[i].prototype) { - var fn = arguments[i].prototype[prop]; - if (prop !== 'constructor') { - klass.prototype[prop] = fn; - } - } + validateOutpostsArn: function validateOutpostsArn(req) { + var parsedArn = req._parsedArn; + + if ( + parsedArn.resource.indexOf('outpost:') !== 0 && + parsedArn.resource.indexOf('outpost/') !== 0 + ) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'ARN resource should begin with \'outpost/\'' + }); } - return klass; + + //can be ':' or '/' + var delimiter = parsedArn.resource['outpost'.length]; + var outpostId = parsedArn.resource.split(delimiter)[1]; + var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!dnsHostRegex.test(outpostId)) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'Outpost resource in ARN is not DNS compatible. Got ' + outpostId + }); + } + req._parsedArn.outpostId = outpostId; }, /** - * @api private + * Validate Outposts ARN supplied in Bucket parameter is a valid outposts ARN */ - hideProperties: function hideProperties(obj, props) { - if (typeof Object.defineProperty !== 'function') return; + validateOutpostsAccessPointArn: function validateOutpostsAccessPointArn(req) { + var parsedArn = req._parsedArn; - util.arrayEach(props, function (key) { - Object.defineProperty(obj, key, { - enumerable: false, writable: true, configurable: true }); - }); + //can be ':' or '/' + var delimiter = parsedArn.resource['outpost'.length]; + + if (parsedArn.resource.split(delimiter).length !== 4) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}' + }); + } + + var accessPoint = parsedArn.resource.split(delimiter)[3]; + var accessPointPrefix = accessPoint + '-' + parsedArn.accountId; + if (!s3util.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\./)) { + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: 'Access point resource in ARN is not DNS compatible. Got ' + accessPoint + }); + } + + //set parsed valid access point + req._parsedArn.accessPoint = accessPoint; }, /** - * @api private + * Validate region field in ARN supplied in Bucket parameter is a valid region */ - property: function property(obj, name, value, enumerable, isValue) { - var opts = { - configurable: true, - enumerable: enumerable !== undefined ? enumerable : true - }; - if (typeof value === 'function' && !isValue) { - opts.get = value; + validateArnRegion: function validateArnRegion(req, options) { + if (options === undefined) { + options = {}; } - else { - opts.value = value; opts.writable = true; + + var useArnRegion = s3util.loadUseArnRegionConfig(req); + var regionFromArn = req._parsedArn.region; + var clientRegion = req.service.config.region; + var useFipsEndpoint = req.service.config.useFipsEndpoint; + var allowFipsEndpoint = options.allowFipsEndpoint || false; + + if (!regionFromArn) { + var message = 'ARN region is empty'; + if (req._parsedArn.service === 's3') { + message = message + '\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. ' + + 'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).'; + } + throw AWS.util.error(new Error(), { + code: 'InvalidARN', + message: message + }); } - Object.defineProperty(obj, name, opts); + if (useFipsEndpoint && !allowFipsEndpoint) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'ARN endpoint is not compatible with FIPS region' + }); + } + + if (regionFromArn.indexOf('fips') >= 0) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'FIPS region not allowed in ARN' + }); + } + + if (!useArnRegion && regionFromArn !== clientRegion) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'Configured region conflicts with access point region' + }); + } else if ( + useArnRegion && + regionUtil.getEndpointSuffix(regionFromArn) !== regionUtil.getEndpointSuffix(clientRegion) + ) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'Configured region and access point region not in same partition' + }); + } + + if (req.service.config.useAccelerateEndpoint) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'useAccelerateEndpoint config is not supported with access point ARN' + }); + } + + if (req._parsedArn.service === 's3-outposts' && req.service.config.useDualstackEndpoint) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'Dualstack is not supported with outposts access point ARN' + }); + } + }, + + loadUseArnRegionConfig: function loadUseArnRegionConfig(req) { + var envName = 'AWS_S3_USE_ARN_REGION'; + var configName = 's3_use_arn_region'; + var useArnRegion = true; + var originalConfig = req.service._originalConfig || {}; + if (req.service.config.s3UseArnRegion !== undefined) { + return req.service.config.s3UseArnRegion; + } else if (originalConfig.s3UseArnRegion !== undefined) { + useArnRegion = originalConfig.s3UseArnRegion === true; + } else if (AWS.util.isNode()) { + //load from environmental variable AWS_USE_ARN_REGION + if (process.env[envName]) { + var value = process.env[envName].trim().toLowerCase(); + if (['false', 'true'].indexOf(value) < 0) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: envName + ' only accepts true or false. Got ' + process.env[envName], + retryable: false + }); + } + useArnRegion = value === 'true'; + } else { //load from shared config property use_arn_region + var profiles = {}; + var profile = {}; + try { + profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader); + profile = profiles[process.env.AWS_PROFILE || AWS.util.defaultProfile]; + } catch (e) {} + if (profile[configName]) { + if (['false', 'true'].indexOf(profile[configName].trim().toLowerCase()) < 0) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: configName + ' only accepts true or false. Got ' + profile[configName], + retryable: false + }); + } + useArnRegion = profile[configName].trim().toLowerCase() === 'true'; + } + } + } + req.service.config.s3UseArnRegion = useArnRegion; + return useArnRegion; }, /** - * @api private + * Validations before URI can be populated */ - memoizedProperty: function memoizedProperty(obj, name, get, enumerable) { - var cachedValue = null; + validatePopulateUriFromArn: function validatePopulateUriFromArn(req) { + if (req.service._originalConfig && req.service._originalConfig.endpoint) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'Custom endpoint is not compatible with access point ARN' + }); + } - // build enumerable attribute for each value with lazy accessor. - util.property(obj, name, function() { - if (cachedValue === null) { - cachedValue = get(); - } - return cachedValue; - }, enumerable); + if (req.service.config.s3ForcePathStyle) { + throw AWS.util.error(new Error(), { + code: 'InvalidConfiguration', + message: 'Cannot construct path-style endpoint with access point' + }); + } }, /** - * TODO Remove in major version revision - * This backfill populates response data without the - * top-level payload name. + * Returns true if the bucket name is DNS compatible. Buckets created + * outside of the classic region MUST be DNS compatible. * * @api private */ - hoistPayloadMember: function hoistPayloadMember(resp) { - var req = resp.request; - var operationName = req.operation; - var operation = req.service.api.operations[operationName]; - var output = operation.output; - if (output.payload && !operation.hasEventOutput) { - var payloadMember = output.members[output.payload]; - var responsePayload = resp.data[output.payload]; - if (payloadMember.type === 'structure') { - util.each(responsePayload, function(key, value) { - util.property(resp.data, key, value, false); - }); - } - } + dnsCompatibleBucketName: function dnsCompatibleBucketName(bucketName) { + var b = bucketName; + var domain = new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/); + var ipAddress = new RegExp(/(\d+\.){3}\d+/); + var dots = new RegExp(/\.\./); + return (b.match(domain) && !b.match(ipAddress) && !b.match(dots)) ? true : false; }, +}; + +/** + * @api private + */ +module.exports = s3util; + + +/***/ }), +/***/ 5341: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); + +AWS.util.update(AWS.SQS.prototype, { /** - * Compute SHA-256 checksums of streams - * * @api private */ - computeSha256: function computeSha256(body, done) { - if (util.isNode()) { - var Stream = util.stream.Stream; - var fs = __nccwpck_require__(57147); - if (typeof Stream === 'function' && body instanceof Stream) { - if (typeof body.path === 'string') { // assume file object - var settings = {}; - if (typeof body.start === 'number') { - settings.start = body.start; - } - if (typeof body.end === 'number') { - settings.end = body.end; - } - body = fs.createReadStream(body.path, settings); - } else { // TODO support other stream types - return done(new Error('Non-file stream objects are ' + - 'not supported with SigV4')); - } + setupRequestListeners: function setupRequestListeners(request) { + request.addListener('build', this.buildEndpoint); + + if (request.service.config.computeChecksums) { + if (request.operation === 'sendMessage') { + request.addListener('extractData', this.verifySendMessageChecksum); + } else if (request.operation === 'sendMessageBatch') { + request.addListener('extractData', this.verifySendMessageBatchChecksum); + } else if (request.operation === 'receiveMessage') { + request.addListener('extractData', this.verifyReceiveMessageChecksum); } } - - util.crypto.sha256(body, 'hex', function(err, sha) { - if (err) done(err); - else done(null, sha); - }); }, /** * @api private */ - isClockSkewed: function isClockSkewed(serverTime) { - if (serverTime) { - util.property(AWS.config, 'isClockSkewed', - Math.abs(new Date().getTime() - serverTime) >= 300000, false); - return AWS.config.isClockSkewed; - } - }, + verifySendMessageChecksum: function verifySendMessageChecksum(response) { + if (!response.data) return; - applyClockOffset: function applyClockOffset(serverTime) { - if (serverTime) - AWS.config.systemClockOffset = serverTime - new Date().getTime(); + var md5 = response.data.MD5OfMessageBody; + var body = this.params.MessageBody; + var calculatedMd5 = this.service.calculateChecksum(body); + if (calculatedMd5 !== md5) { + var msg = 'Got "' + response.data.MD5OfMessageBody + + '", expecting "' + calculatedMd5 + '".'; + this.service.throwInvalidChecksumError(response, + [response.data.MessageId], msg); + } }, /** * @api private */ - extractRequestId: function extractRequestId(resp) { - var requestId = resp.httpResponse.headers['x-amz-request-id'] || - resp.httpResponse.headers['x-amzn-requestid']; - - if (!requestId && resp.data && resp.data.ResponseMetadata) { - requestId = resp.data.ResponseMetadata.RequestId; - } + verifySendMessageBatchChecksum: function verifySendMessageBatchChecksum(response) { + if (!response.data) return; - if (requestId) { - resp.requestId = requestId; - } + var service = this.service; + var entries = {}; + var errors = []; + var messageIds = []; + AWS.util.arrayEach(response.data.Successful, function (entry) { + entries[entry.Id] = entry; + }); + AWS.util.arrayEach(this.params.Entries, function (entry) { + if (entries[entry.Id]) { + var md5 = entries[entry.Id].MD5OfMessageBody; + var body = entry.MessageBody; + if (!service.isChecksumValid(md5, body)) { + errors.push(entry.Id); + messageIds.push(entries[entry.Id].MessageId); + } + } + }); - if (resp.error) { - resp.error.requestId = requestId; + if (errors.length > 0) { + service.throwInvalidChecksumError(response, messageIds, + 'Invalid messages: ' + errors.join(', ')); } }, /** * @api private */ - addPromises: function addPromises(constructors, PromiseDependency) { - var deletePromises = false; - if (PromiseDependency === undefined && AWS && AWS.config) { - PromiseDependency = AWS.config.getPromisesDependency(); - } - if (PromiseDependency === undefined && typeof Promise !== 'undefined') { - PromiseDependency = Promise; - } - if (typeof PromiseDependency !== 'function') deletePromises = true; - if (!Array.isArray(constructors)) constructors = [constructors]; + verifyReceiveMessageChecksum: function verifyReceiveMessageChecksum(response) { + if (!response.data) return; - for (var ind = 0; ind < constructors.length; ind++) { - var constructor = constructors[ind]; - if (deletePromises) { - if (constructor.deletePromisesFromClass) { - constructor.deletePromisesFromClass(); - } - } else if (constructor.addPromisesToClass) { - constructor.addPromisesToClass(PromiseDependency); + var service = this.service; + var messageIds = []; + AWS.util.arrayEach(response.data.Messages, function(message) { + var md5 = message.MD5OfBody; + var body = message.Body; + if (!service.isChecksumValid(md5, body)) { + messageIds.push(message.MessageId); } + }); + + if (messageIds.length > 0) { + service.throwInvalidChecksumError(response, messageIds, + 'Invalid messages: ' + messageIds.join(', ')); } }, /** * @api private - * Return a function that will return a promise whose fate is decided by the - * callback behavior of the given method with `methodName`. The method to be - * promisified should conform to node.js convention of accepting a callback as - * last argument and calling that callback with error as the first argument - * and success value on the second argument. */ - promisifyMethod: function promisifyMethod(methodName, PromiseDependency) { - return function promise() { - var self = this; - var args = Array.prototype.slice.call(arguments); - return new PromiseDependency(function(resolve, reject) { - args.push(function(err, data) { - if (err) { - reject(err); - } else { - resolve(data); - } - }); - self[methodName].apply(self, args); - }); - }; + throwInvalidChecksumError: function throwInvalidChecksumError(response, ids, message) { + response.error = AWS.util.error(new Error(), { + retryable: true, + code: 'InvalidChecksum', + messageIds: ids, + message: response.request.operation + + ' returned an invalid MD5 response. ' + message + }); }, /** * @api private */ - isDualstackAvailable: function isDualstackAvailable(service) { - if (!service) return false; - var metadata = __nccwpck_require__(17752); - if (typeof service !== 'string') service = service.serviceIdentifier; - if (typeof service !== 'string' || !metadata.hasOwnProperty(service)) return false; - return !!metadata[service].dualstackAvailable; + isChecksumValid: function isChecksumValid(checksum, data) { + return this.calculateChecksum(data) === checksum; }, /** * @api private */ - calculateRetryDelay: function calculateRetryDelay(retryCount, retryDelayOptions, err) { - if (!retryDelayOptions) retryDelayOptions = {}; - var customBackoff = retryDelayOptions.customBackoff || null; - if (typeof customBackoff === 'function') { - return customBackoff(retryCount, err); - } - var base = typeof retryDelayOptions.base === 'number' ? retryDelayOptions.base : 100; - var delay = Math.random() * (Math.pow(2, retryCount) * base); - return delay; + calculateChecksum: function calculateChecksum(data) { + return AWS.util.crypto.md5(data, 'hex'); }, /** * @api private */ - handleRequestWithRetries: function handleRequestWithRetries(httpRequest, options, cb) { - if (!options) options = {}; - var http = AWS.HttpClient.getInstance(); - var httpOptions = options.httpOptions || {}; - var retryCount = 0; + buildEndpoint: function buildEndpoint(request) { + var url = request.httpRequest.params.QueueUrl; + if (url) { + request.httpRequest.endpoint = new AWS.Endpoint(url); - var errCallback = function(err) { - var maxRetries = options.maxRetries || 0; - if (err && err.code === 'TimeoutError') err.retryable = true; + // signature version 4 requires the region name to be set, + // sqs queue urls contain the region name + var matches = request.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./); + if (matches) request.httpRequest.region = matches[1]; + } + } +}); - // Call `calculateRetryDelay()` only when relevant, see #3401 - if (err && err.retryable && retryCount < maxRetries) { - var delay = util.calculateRetryDelay(retryCount, options.retryDelayOptions, err); - if (delay >= 0) { - retryCount++; - setTimeout(sendRequest, delay + (err.retryAfter || 0)); - return; - } - } - cb(err); - }; - var sendRequest = function() { - var data = ''; - http.handleRequest(httpRequest, httpOptions, function(httpResponse) { - httpResponse.on('data', function(chunk) { data += chunk.toString(); }); - httpResponse.on('end', function() { - var statusCode = httpResponse.statusCode; - if (statusCode < 300) { - cb(null, data); - } else { - var retryAfter = parseInt(httpResponse.headers['retry-after'], 10) * 1000 || 0; - var err = util.error(new Error(), - { - statusCode: statusCode, - retryable: statusCode >= 500 || statusCode === 429 - } - ); - if (retryAfter && err.retryable) err.retryAfter = retryAfter; - errCallback(err); - } - }); - }, errCallback); - }; +/***/ }), - AWS.util.defer(sendRequest); +/***/ 29596: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); +var resolveRegionalEndpointsFlag = __nccwpck_require__(88469); +var ENV_REGIONAL_ENDPOINT_ENABLED = 'AWS_STS_REGIONAL_ENDPOINTS'; +var CONFIG_REGIONAL_ENDPOINT_ENABLED = 'sts_regional_endpoints'; + +AWS.util.update(AWS.STS.prototype, { + /** + * @overload credentialsFrom(data, credentials = null) + * Creates a credentials object from STS response data containing + * credentials information. Useful for quickly setting AWS credentials. + * + * @note This is a low-level utility function. If you want to load temporary + * credentials into your process for subsequent requests to AWS resources, + * you should use {AWS.TemporaryCredentials} instead. + * @param data [map] data retrieved from a call to {getFederatedToken}, + * {getSessionToken}, {assumeRole}, or {assumeRoleWithWebIdentity}. + * @param credentials [AWS.Credentials] an optional credentials object to + * fill instead of creating a new object. Useful when modifying an + * existing credentials object from a refresh call. + * @return [AWS.TemporaryCredentials] the set of temporary credentials + * loaded from a raw STS operation response. + * @example Using credentialsFrom to load global AWS credentials + * var sts = new AWS.STS(); + * sts.getSessionToken(function (err, data) { + * if (err) console.log("Error getting credentials"); + * else { + * AWS.config.credentials = sts.credentialsFrom(data); + * } + * }); + * @see AWS.TemporaryCredentials + */ + credentialsFrom: function credentialsFrom(data, credentials) { + if (!data) return null; + if (!credentials) credentials = new AWS.TemporaryCredentials(); + credentials.expired = false; + credentials.accessKeyId = data.Credentials.AccessKeyId; + credentials.secretAccessKey = data.Credentials.SecretAccessKey; + credentials.sessionToken = data.Credentials.SessionToken; + credentials.expireTime = data.Credentials.Expiration; + return credentials; + }, + + assumeRoleWithWebIdentity: function assumeRoleWithWebIdentity(params, callback) { + return this.makeUnauthenticatedRequest('assumeRoleWithWebIdentity', params, callback); + }, + + assumeRoleWithSAML: function assumeRoleWithSAML(params, callback) { + return this.makeUnauthenticatedRequest('assumeRoleWithSAML', params, callback); }, /** * @api private */ - uuid: { - v4: function uuidV4() { - return (__nccwpck_require__(83370).v4)(); - } + setupRequestListeners: function setupRequestListeners(request) { + request.addListener('validate', this.optInRegionalEndpoint, true); }, /** * @api private */ - convertPayloadToString: function convertPayloadToString(resp) { - var req = resp.request; - var operation = req.operation; - var rules = req.service.api.operations[operation].output || {}; - if (rules.payload && resp.data[rules.payload]) { - resp.data[rules.payload] = resp.data[rules.payload].toString(); + optInRegionalEndpoint: function optInRegionalEndpoint(req) { + var service = req.service; + var config = service.config; + config.stsRegionalEndpoints = resolveRegionalEndpointsFlag(service._originalConfig, { + env: ENV_REGIONAL_ENDPOINT_ENABLED, + sharedConfig: CONFIG_REGIONAL_ENDPOINT_ENABLED, + clientConfig: 'stsRegionalEndpoints' + }); + if ( + config.stsRegionalEndpoints === 'regional' && + service.isGlobalEndpoint + ) { + //client will throw if region is not supplied; request will be signed with specified region + if (!config.region) { + throw AWS.util.error(new Error(), + {code: 'ConfigError', message: 'Missing region in config'}); + } + var insertPoint = config.endpoint.indexOf('.amazonaws.com'); + var regionalEndpoint = config.endpoint.substring(0, insertPoint) + + '.' + config.region + config.endpoint.substring(insertPoint); + req.httpRequest.updateEndpoint(regionalEndpoint); + req.httpRequest.region = config.region; } + } + +}); + + +/***/ }), + +/***/ 69252: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); + +AWS.util.hideProperties(AWS, ['SimpleWorkflow']); + +/** + * @constant + * @readonly + * Backwards compatibility for access to the {AWS.SWF} service class. + */ +AWS.SimpleWorkflow = AWS.SWF; + + +/***/ }), + +/***/ 32874: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var IniLoader = (__nccwpck_require__(14710).IniLoader); +/** + * Singleton object to load specified config/credentials files. + * It will cache all the files ever loaded; + */ +module.exports.s = new IniLoader(); + + +/***/ }), + +/***/ 14710: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var AWS = __nccwpck_require__(53832); +var os = __nccwpck_require__(70857); +var path = __nccwpck_require__(16928); + +function parseFile(filename) { + return AWS.util.ini.parse(AWS.util.readFileSync(filename)); +} + +function getProfiles(fileContent) { + var tmpContent = {}; + Object.keys(fileContent).forEach(function(sectionName) { + if (/^sso-session\s/.test(sectionName)) return; + Object.defineProperty(tmpContent, sectionName.replace(/^profile\s/, ''), { + value: fileContent[sectionName], + enumerable: true + }); + }); + return tmpContent; +} + +function getSsoSessions(fileContent) { + var tmpContent = {}; + Object.keys(fileContent).forEach(function(sectionName) { + if (!/^sso-session\s/.test(sectionName)) return; + Object.defineProperty(tmpContent, sectionName.replace(/^sso-session\s/, ''), { + value: fileContent[sectionName], + enumerable: true + }); + }); + return tmpContent; +} + +/** + * Ini file loader class the same as that used in the SDK. It loads and + * parses config and credentials files in .ini format and cache the content + * to assure files are only read once. + * Note that calling operations on the instance instantiated from this class + * won't affect the behavior of SDK since SDK uses an internal singleton of + * this class. + * @!macro nobrowser + */ +AWS.IniLoader = AWS.util.inherit({ + constructor: function IniLoader() { + this.resolvedProfiles = {}; + this.resolvedSsoSessions = {}; + }, + + /** Remove all cached files. Used after config files are updated. */ + clearCachedFiles: function clearCachedFiles() { + this.resolvedProfiles = {}; + this.resolvedSsoSessions = {}; }, /** - * @api private + * Load configurations from config/credentials files and cache them + * for later use. If no file is specified it will try to load default files. + * + * @param options [map] information describing the file + * @option options filename [String] ('~/.aws/credentials' or defined by + * AWS_SHARED_CREDENTIALS_FILE process env var or '~/.aws/config' if + * isConfig is set to true) + * path to the file to be read. + * @option options isConfig [Boolean] (false) True to read config file. + * @return [map] object containing contents from file in key-value + * pairs. */ - defer: function defer(callback) { - if (typeof process === 'object' && typeof process.nextTick === 'function') { - process.nextTick(callback); - } else if (typeof setImmediate === 'function') { - setImmediate(callback); - } else { - setTimeout(callback, 0); + loadFrom: function loadFrom(options) { + options = options || {}; + var isConfig = options.isConfig === true; + var filename = options.filename || this.getDefaultFilePath(isConfig); + if (!this.resolvedProfiles[filename]) { + var fileContent = parseFile(filename); + if (isConfig) { + Object.defineProperty(this.resolvedProfiles, filename, { + value: getProfiles(fileContent) + }); + } else { + Object.defineProperty(this.resolvedProfiles, filename, { value: fileContent }); + } } + return this.resolvedProfiles[filename]; }, /** - * @api private + * Load sso sessions from config/credentials files and cache them + * for later use. If no file is specified it will try to load default file. + * + * @param options [map] information describing the file + * @option options filename [String] ('~/.aws/config' or defined by + * AWS_CONFIG_FILE process env var) + * @return [map] object containing contents from file in key-value + * pairs. */ - getRequestPayloadShape: function getRequestPayloadShape(req) { - var operations = req.service.api.operations; - if (!operations) return undefined; - var operation = (operations || {})[req.operation]; - if (!operation || !operation.input || !operation.input.payload) return undefined; - return operation.input.members[operation.input.payload]; - }, - - getProfilesFromSharedConfig: function getProfilesFromSharedConfig(iniLoader, filename) { - var profiles = {}; - var profilesFromConfig = {}; - if (process.env[util.configOptInEnv]) { - var profilesFromConfig = iniLoader.loadFrom({ - isConfig: true, - filename: process.env[util.sharedConfigFileEnv] - }); - } - var profilesFromCreds= {}; - try { - var profilesFromCreds = iniLoader.loadFrom({ - filename: filename || - (process.env[util.configOptInEnv] && process.env[util.sharedCredentialsFileEnv]) + loadSsoSessionsFrom: function loadSsoSessionsFrom(options) { + options = options || {}; + var filename = options.filename || this.getDefaultFilePath(true); + if (!this.resolvedSsoSessions[filename]) { + var fileContent = parseFile(filename); + Object.defineProperty(this.resolvedSsoSessions, filename, { + value: getSsoSessions(fileContent) }); - } catch (error) { - // if using config, assume it is fully descriptive without a credentials file: - if (!process.env[util.configOptInEnv]) throw error; - } - for (var i = 0, profileNames = Object.keys(profilesFromConfig); i < profileNames.length; i++) { - profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromConfig[profileNames[i]]); - } - for (var i = 0, profileNames = Object.keys(profilesFromCreds); i < profileNames.length; i++) { - profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromCreds[profileNames[i]]); - } - return profiles; - - /** - * Roughly the semantics of `Object.assign(target, source)` - */ - function objectAssign(target, source) { - for (var i = 0, keys = Object.keys(source); i < keys.length; i++) { - target[keys[i]] = source[keys[i]]; - } - return target; } + return this.resolvedSsoSessions[filename]; }, - /** - * @api private - */ - ARN: { - validate: function validateARN(str) { - return str && str.indexOf('arn:') === 0 && str.split(':').length >= 6; - }, - parse: function parseARN(arn) { - var matched = arn.split(':'); - return { - partition: matched[1], - service: matched[2], - region: matched[3], - accountId: matched[4], - resource: matched.slice(5).join(':') - }; - }, - build: function buildARN(arnObject) { - if ( - arnObject.service === undefined || - arnObject.region === undefined || - arnObject.accountId === undefined || - arnObject.resource === undefined - ) throw util.error(new Error('Input ARN object is invalid')); - return 'arn:'+ (arnObject.partition || 'aws') + ':' + arnObject.service + - ':' + arnObject.region + ':' + arnObject.accountId + ':' + arnObject.resource; - } + getDefaultFilePath: function getDefaultFilePath(isConfig) { + return path.join( + this.getHomeDir(), + '.aws', + isConfig ? 'config' : 'credentials' + ); }, - /** - * @api private - */ - defaultProfile: 'default', + getHomeDir: function getHomeDir() { + var env = process.env; + var home = env.HOME || + env.USERPROFILE || + (env.HOMEPATH ? ((env.HOMEDRIVE || 'C:/') + env.HOMEPATH) : null); - /** - * @api private - */ - configOptInEnv: 'AWS_SDK_LOAD_CONFIG', + if (home) { + return home; + } - /** - * @api private - */ - sharedCredentialsFileEnv: 'AWS_SHARED_CREDENTIALS_FILE', + if (typeof os.homedir === 'function') { + return os.homedir(); + } - /** - * @api private - */ - sharedConfigFileEnv: 'AWS_CONFIG_FILE', + throw AWS.util.error( + new Error('Cannot load credentials, HOME path not set') + ); + } +}); - /** - * @api private - */ - imdsDisabledEnv: 'AWS_EC2_METADATA_DISABLED' -}; +var IniLoader = AWS.IniLoader; -/** - * @api private - */ -module.exports = util; +module.exports = { + IniLoader: IniLoader +}; /***/ }), -/***/ 88611: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(43956); -var XmlNode = (__nccwpck_require__(66427).XmlNode); -var XmlText = (__nccwpck_require__(97181).XmlText); +/***/ 68338: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -function XmlBuilder() { } +var AWS = __nccwpck_require__(53832); -XmlBuilder.prototype.toXML = function(params, shape, rootElement, noEmpty) { - var xml = new XmlNode(rootElement); - applyNamespaces(xml, shape, true); - serialize(xml, params, shape); - return xml.children.length > 0 || noEmpty ? xml.toString() : ''; -}; +/** + * @api private + */ +AWS.Signers.Bearer = AWS.util.inherit(AWS.Signers.RequestSigner, { + constructor: function Bearer(request) { + AWS.Signers.RequestSigner.call(this, request); + }, -function serialize(xml, value, shape) { - switch (shape.type) { - case 'structure': return serializeStructure(xml, value, shape); - case 'map': return serializeMap(xml, value, shape); - case 'list': return serializeList(xml, value, shape); - default: return serializeScalar(xml, value, shape); + addAuthorization: function addAuthorization(token) { + this.request.headers['Authorization'] = 'Bearer ' + token.token; } -} +}); -function serializeStructure(xml, params, shape) { - util.arrayEach(shape.memberNames, function(memberName) { - var memberShape = shape.members[memberName]; - if (memberShape.location !== 'body') return; - var value = params[memberName]; - var name = memberShape.name; - if (value !== undefined && value !== null) { - if (memberShape.isXmlAttribute) { - xml.addAttribute(name, value); - } else if (memberShape.flattened) { - serialize(xml, value, memberShape); - } else { - var element = new XmlNode(name); - xml.addChildNode(element); - applyNamespaces(element, memberShape); - serialize(element, value, memberShape); - } - } - }); -} +/***/ }), -function serializeMap(xml, map, shape) { - var xmlKey = shape.key.name || 'key'; - var xmlValue = shape.value.name || 'value'; +/***/ 17287: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - util.each(map, function(key, value) { - var entry = new XmlNode(shape.flattened ? shape.name : 'entry'); - xml.addChildNode(entry); +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; - var entryKey = new XmlNode(xmlKey); - var entryValue = new XmlNode(xmlValue); - entry.addChildNode(entryKey); - entry.addChildNode(entryValue); +/** + * @api private + */ +var expiresHeader = 'presigned-expires'; - serialize(entryKey, key, shape.key); - serialize(entryValue, value, shape.value); - }); -} +/** + * @api private + */ +function signedUrlBuilder(request) { + var expires = request.httpRequest.headers[expiresHeader]; + var signerClass = request.service.getSignerClass(request); -function serializeList(xml, list, shape) { - if (shape.flattened) { - util.arrayEach(list, function(value) { - var name = shape.member.name || shape.name; - var element = new XmlNode(name); - xml.addChildNode(element); - serialize(element, value, shape.member); - }); + delete request.httpRequest.headers['User-Agent']; + delete request.httpRequest.headers['X-Amz-User-Agent']; + + if (signerClass === AWS.Signers.V4) { + if (expires > 604800) { // one week expiry is invalid + var message = 'Presigning does not support expiry time greater ' + + 'than a week with SigV4 signing.'; + throw AWS.util.error(new Error(), { + code: 'InvalidExpiryTime', message: message, retryable: false + }); + } + request.httpRequest.headers[expiresHeader] = expires; + } else if (signerClass === AWS.Signers.S3) { + var now = request.service ? request.service.getSkewCorrectedDate() : AWS.util.date.getDate(); + request.httpRequest.headers[expiresHeader] = parseInt( + AWS.util.date.unixTimestamp(now) + expires, 10).toString(); } else { - util.arrayEach(list, function(value) { - var name = shape.member.name || 'member'; - var element = new XmlNode(name); - xml.addChildNode(element); - serialize(element, value, shape.member); + throw AWS.util.error(new Error(), { + message: 'Presigning only supports S3 or SigV4 signing.', + code: 'UnsupportedSigner', retryable: false }); } } -function serializeScalar(xml, value, shape) { - xml.addChildNode( - new XmlText(shape.toWireFormat(value)) - ); -} +/** + * @api private + */ +function signedUrlSigner(request) { + var endpoint = request.httpRequest.endpoint; + var parsedUrl = AWS.util.urlParse(request.httpRequest.path); + var queryParams = {}; -function applyNamespaces(xml, shape, isRoot) { - var uri, prefix = 'xmlns'; - if (shape.xmlNamespaceUri) { - uri = shape.xmlNamespaceUri; - if (shape.xmlNamespacePrefix) prefix += ':' + shape.xmlNamespacePrefix; - } else if (isRoot && shape.api.xmlNamespaceUri) { - uri = shape.api.xmlNamespaceUri; + if (parsedUrl.search) { + queryParams = AWS.util.queryStringParse(parsedUrl.search.substr(1)); } - if (uri) xml.addAttribute(prefix, uri); + var auth = request.httpRequest.headers['Authorization'].split(' '); + if (auth[0] === 'AWS') { + auth = auth[1].split(':'); + queryParams['Signature'] = auth.pop(); + queryParams['AWSAccessKeyId'] = auth.join(':'); + + AWS.util.each(request.httpRequest.headers, function (key, value) { + if (key === expiresHeader) key = 'Expires'; + if (key.indexOf('x-amz-meta-') === 0) { + // Delete existing, potentially not normalized key + delete queryParams[key]; + key = key.toLowerCase(); + } + queryParams[key] = value; + }); + delete request.httpRequest.headers[expiresHeader]; + delete queryParams['Authorization']; + delete queryParams['Host']; + } else if (auth[0] === 'AWS4-HMAC-SHA256') { // SigV4 signing + auth.shift(); + var rest = auth.join(' '); + var signature = rest.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1]; + queryParams['X-Amz-Signature'] = signature; + delete queryParams['Expires']; + } + + // build URL + endpoint.pathname = parsedUrl.pathname; + endpoint.search = AWS.util.queryParamsToString(queryParams); } /** * @api private */ -module.exports = XmlBuilder; - - -/***/ }), +AWS.Signers.Presign = inherit({ + /** + * @api private + */ + sign: function sign(request, expireTime, callback) { + request.httpRequest.headers[expiresHeader] = expireTime || 3600; + request.on('build', signedUrlBuilder); + request.on('sign', signedUrlSigner); + request.removeListener('afterBuild', + AWS.EventListeners.Core.SET_CONTENT_LENGTH); + request.removeListener('afterBuild', + AWS.EventListeners.Core.COMPUTE_SHA256); -/***/ 31931: -/***/ ((module) => { + request.emit('beforePresign', [request]); -/** - * Escapes characters that can not be in an XML attribute. - */ -function escapeAttribute(value) { - return value.replace(/&/g, '&').replace(/'/g, ''').replace(//g, '>').replace(/"/g, '"'); -} + if (callback) { + request.build(function() { + if (this.response.error) callback(this.response.error); + else { + callback(null, AWS.util.urlFormat(request.httpRequest.endpoint)); + } + }); + } else { + request.build(); + if (request.response.error) throw request.response.error; + return AWS.util.urlFormat(request.httpRequest.endpoint); + } + } +}); /** * @api private */ -module.exports = { - escapeAttribute: escapeAttribute -}; +module.exports = AWS.Signers.Presign; /***/ }), -/***/ 33479: -/***/ ((module) => { +/***/ 93475: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Escapes characters that can not be in an XML element. - */ -function escapeElement(value) { - return value.replace(/&/g, '&') - .replace(//g, '>') - .replace(/\r/g, ' ') - .replace(/\n/g, ' ') - .replace(/\u0085/g, '…') - .replace(/\u2028/, '
'); -} +var AWS = __nccwpck_require__(53832); + +var inherit = AWS.util.inherit; /** * @api private */ -module.exports = { - escapeElement: escapeElement +AWS.Signers.RequestSigner = inherit({ + constructor: function RequestSigner(request) { + this.request = request; + }, + + setServiceClientId: function setServiceClientId(id) { + this.serviceClientId = id; + }, + + getServiceClientId: function getServiceClientId() { + return this.serviceClientId; + } +}); + +AWS.Signers.RequestSigner.getVersion = function getVersion(version) { + switch (version) { + case 'v2': return AWS.Signers.V2; + case 'v3': return AWS.Signers.V3; + case 's3v4': return AWS.Signers.V4; + case 'v4': return AWS.Signers.V4; + case 's3': return AWS.Signers.S3; + case 'v3https': return AWS.Signers.V3Https; + case 'bearer': return AWS.Signers.Bearer; + } + throw new Error('Unknown signing version ' + version); }; +__nccwpck_require__(79495); +__nccwpck_require__(38992); +__nccwpck_require__(54831); +__nccwpck_require__(4261); +__nccwpck_require__(64265); +__nccwpck_require__(17287); +__nccwpck_require__(68338); + /***/ }), -/***/ 76687: +/***/ 64265: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var AWS = __nccwpck_require__(14741); -var util = AWS.util; -var Shape = AWS.Model.Shape; - -var xml2js = __nccwpck_require__(68245); +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; /** * @api private */ -var options = { // options passed to xml2js parser - explicitCharkey: false, // undocumented - trim: false, // trim the leading/trailing whitespace from text nodes - normalize: false, // trim interior whitespace inside text nodes - explicitRoot: false, // return the root node in the resulting object? - emptyTag: null, // the default value for empty nodes - explicitArray: true, // always put child nodes in an array - ignoreAttrs: false, // ignore attributes, only create text nodes - mergeAttrs: false, // merge attributes and child elements - validator: null // a callable validator -}; - -function NodeXmlParser() { } - -NodeXmlParser.prototype.parse = function(xml, shape) { - shape = shape || {}; +AWS.Signers.S3 = inherit(AWS.Signers.RequestSigner, { + /** + * When building the stringToSign, these sub resource params should be + * part of the canonical resource string with their NON-decoded values + */ + subResources: { + 'acl': 1, + 'accelerate': 1, + 'analytics': 1, + 'cors': 1, + 'lifecycle': 1, + 'delete': 1, + 'inventory': 1, + 'location': 1, + 'logging': 1, + 'metrics': 1, + 'notification': 1, + 'partNumber': 1, + 'policy': 1, + 'requestPayment': 1, + 'replication': 1, + 'restore': 1, + 'tagging': 1, + 'torrent': 1, + 'uploadId': 1, + 'uploads': 1, + 'versionId': 1, + 'versioning': 1, + 'versions': 1, + 'website': 1 + }, - var result = null; - var error = null; + // when building the stringToSign, these querystring params should be + // part of the canonical resource string with their NON-encoded values + responseHeaders: { + 'response-content-type': 1, + 'response-content-language': 1, + 'response-expires': 1, + 'response-cache-control': 1, + 'response-content-disposition': 1, + 'response-content-encoding': 1 + }, - var parser = new xml2js.Parser(options); - parser.parseString(xml, function (e, r) { - error = e; - result = r; - }); + addAuthorization: function addAuthorization(credentials, date) { + if (!this.request.headers['presigned-expires']) { + this.request.headers['X-Amz-Date'] = AWS.util.date.rfc822(date); + } - if (result) { - var data = parseXml(result, shape); - if (result.ResponseMetadata) { - data.ResponseMetadata = parseXml(result.ResponseMetadata[0], {}); + if (credentials.sessionToken) { + // presigned URLs require this header to be lowercased + this.request.headers['x-amz-security-token'] = credentials.sessionToken; } - return data; - } else if (error) { - throw util.error(error, {code: 'XMLParserError', retryable: true}); - } else { // empty xml document - return parseXml({}, shape); - } -}; -function parseXml(xml, shape) { - switch (shape.type) { - case 'structure': return parseStructure(xml, shape); - case 'map': return parseMap(xml, shape); - case 'list': return parseList(xml, shape); - case undefined: case null: return parseUnknown(xml); - default: return parseScalar(xml, shape); - } -} + var signature = this.sign(credentials.secretAccessKey, this.stringToSign()); + var auth = 'AWS ' + credentials.accessKeyId + ':' + signature; -function parseStructure(xml, shape) { - var data = {}; - if (xml === null) return data; + this.request.headers['Authorization'] = auth; + }, - util.each(shape.members, function(memberName, memberShape) { - var xmlName = memberShape.name; - if (Object.prototype.hasOwnProperty.call(xml, xmlName) && Array.isArray(xml[xmlName])) { - var xmlChild = xml[xmlName]; - if (!memberShape.flattened) xmlChild = xmlChild[0]; + stringToSign: function stringToSign() { + var r = this.request; - data[memberName] = parseXml(xmlChild, memberShape); - } else if (memberShape.isXmlAttribute && - xml.$ && Object.prototype.hasOwnProperty.call(xml.$, xmlName)) { - data[memberName] = parseScalar(xml.$[xmlName], memberShape); - } else if (memberShape.type === 'list' && !shape.api.xmlNoDefaultLists) { - data[memberName] = memberShape.defaultValue; - } - }); + var parts = []; + parts.push(r.method); + parts.push(r.headers['Content-MD5'] || ''); + parts.push(r.headers['Content-Type'] || ''); - return data; -} + // This is the "Date" header, but we use X-Amz-Date. + // The S3 signing mechanism requires us to pass an empty + // string for this Date header regardless. + parts.push(r.headers['presigned-expires'] || ''); -function parseMap(xml, shape) { - var data = {}; - if (xml === null) return data; + var headers = this.canonicalizedAmzHeaders(); + if (headers) parts.push(headers); + parts.push(this.canonicalizedResource()); - var xmlKey = shape.key.name || 'key'; - var xmlValue = shape.value.name || 'value'; - var iterable = shape.flattened ? xml : xml.entry; + return parts.join('\n'); - if (Array.isArray(iterable)) { - util.arrayEach(iterable, function(child) { - data[child[xmlKey][0]] = parseXml(child[xmlValue][0], shape.value); - }); - } + }, - return data; -} + canonicalizedAmzHeaders: function canonicalizedAmzHeaders() { -function parseList(xml, shape) { - var data = []; - var name = shape.member.name || 'member'; - if (shape.flattened) { - util.arrayEach(xml, function(xmlChild) { - data.push(parseXml(xmlChild, shape.member)); - }); - } else if (xml && Array.isArray(xml[name])) { - util.arrayEach(xml[name], function(child) { - data.push(parseXml(child, shape.member)); + var amzHeaders = []; + + AWS.util.each(this.request.headers, function (name) { + if (name.match(/^x-amz-/i)) + amzHeaders.push(name); }); - } - return data; -} + amzHeaders.sort(function (a, b) { + return a.toLowerCase() < b.toLowerCase() ? -1 : 1; + }); -function parseScalar(text, shape) { - if (text && text.$ && text.$.encoding === 'base64') { - shape = new Shape.create({type: text.$.encoding}); - } - if (text && text._) text = text._; + var parts = []; + AWS.util.arrayEach.call(this, amzHeaders, function (name) { + parts.push(name.toLowerCase() + ':' + String(this.request.headers[name])); + }); - if (typeof shape.toType === 'function') { - return shape.toType(text); - } else { - return text; - } -} + return parts.join('\n'); -function parseUnknown(xml) { - if (xml === undefined || xml === null) return ''; - if (typeof xml === 'string') return xml; + }, - // parse a list - if (Array.isArray(xml)) { - var arr = []; - for (i = 0; i < xml.length; i++) { - arr.push(parseXml(xml[i], {})); - } - return arr; - } + canonicalizedResource: function canonicalizedResource() { - // empty object - var keys = Object.keys(xml), i; - if (keys.length === 0 || (keys.length === 1 && keys[0] === '$')) { - return {}; - } + var r = this.request; - // object, parse as structure - var data = {}; - for (i = 0; i < keys.length; i++) { - var key = keys[i], value = xml[key]; - if (key === '$') continue; - if (value.length > 1) { // this member is a list - data[key] = parseList(value, {member: {}}); - } else { // this member is a single item - data[key] = parseXml(value[0], {}); - } - } - return data; -} + var parts = r.path.split('?'); + var path = parts[0]; + var querystring = parts[1]; -/** - * @api private - */ -module.exports = NodeXmlParser; + var resource = ''; + if (r.virtualHostedBucket) + resource += '/' + r.virtualHostedBucket; -/***/ }), + resource += path; -/***/ 66427: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (querystring) { -var escapeAttribute = (__nccwpck_require__(31931).escapeAttribute); + // collect a list of sub resources and query params that need to be signed + var resources = []; -/** - * Represents an XML node. - * @api private - */ -function XmlNode(name, children) { - if (children === void 0) { children = []; } - this.name = name; - this.children = children; - this.attributes = {}; -} -XmlNode.prototype.addAttribute = function (name, value) { - this.attributes[name] = value; - return this; -}; -XmlNode.prototype.addChildNode = function (child) { - this.children.push(child); - return this; -}; -XmlNode.prototype.removeAttribute = function (name) { - delete this.attributes[name]; - return this; -}; -XmlNode.prototype.toString = function () { - var hasChildren = Boolean(this.children.length); - var xmlText = '<' + this.name; - // add attributes - var attributes = this.attributes; - for (var i = 0, attributeNames = Object.keys(attributes); i < attributeNames.length; i++) { - var attributeName = attributeNames[i]; - var attribute = attributes[attributeName]; - if (typeof attribute !== 'undefined' && attribute !== null) { - xmlText += ' ' + attributeName + '=\"' + escapeAttribute('' + attribute) + '\"'; + AWS.util.arrayEach.call(this, querystring.split('&'), function (param) { + var name = param.split('=')[0]; + var value = param.split('=')[1]; + if (this.subResources[name] || this.responseHeaders[name]) { + var subresource = { name: name }; + if (value !== undefined) { + if (this.subResources[name]) { + subresource.value = value; + } else { + subresource.value = decodeURIComponent(value); + } + } + resources.push(subresource); } - } - return xmlText += !hasChildren ? '/>' : '>' + this.children.map(function (c) { return c.toString(); }).join('') + ''; -}; + }); -/** - * @api private - */ -module.exports = { - XmlNode: XmlNode -}; + resources.sort(function (a, b) { return a.name < b.name ? -1 : 1; }); + if (resources.length) { -/***/ }), + querystring = []; + AWS.util.arrayEach(resources, function (res) { + if (res.value === undefined) { + querystring.push(res.name); + } else { + querystring.push(res.name + '=' + res.value); + } + }); -/***/ 97181: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + resource += '?' + querystring.join('&'); + } -var escapeElement = (__nccwpck_require__(33479).escapeElement); + } -/** - * Represents an XML text value. - * @api private - */ -function XmlText(value) { - this.value = value; -} + return resource; -XmlText.prototype.toString = function () { - return escapeElement('' + this.value); -}; + }, + + sign: function sign(secret, string) { + return AWS.util.crypto.hmac(secret, string, 'base64', 'sha1'); + } +}); /** * @api private */ -module.exports = { - XmlText: XmlText -}; +module.exports = AWS.Signers.S3; /***/ }), -/***/ 27126: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - +/***/ 79495: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; /** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + * @api private */ -var byteToHex = []; - -for (var i = 0; i < 256; ++i) { - byteToHex[i] = (i + 0x100).toString(16).substr(1); -} +AWS.Signers.V2 = inherit(AWS.Signers.RequestSigner, { + addAuthorization: function addAuthorization(credentials, date) { -function bytesToUuid(buf, offset) { - var i = offset || 0; - var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 + if (!date) date = AWS.util.date.getDate(); - return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join(''); -} + var r = this.request; -var _default = bytesToUuid; -exports["default"] = _default; + r.params.Timestamp = AWS.util.date.iso8601(date); + r.params.SignatureVersion = '2'; + r.params.SignatureMethod = 'HmacSHA256'; + r.params.AWSAccessKeyId = credentials.accessKeyId; -/***/ }), + if (credentials.sessionToken) { + r.params.SecurityToken = credentials.sessionToken; + } -/***/ 83370: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + delete r.params.Signature; // delete old Signature for re-signing + r.params.Signature = this.signature(credentials); -"use strict"; -var __webpack_unused_export__; + r.body = AWS.util.queryParamsToString(r.params); + r.headers['Content-Length'] = r.body.length; + }, + signature: function signature(credentials) { + return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); + }, -__webpack_unused_export__ = ({ - value: true -}); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v.default; - } -}); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v2.default; - } -}); -Object.defineProperty(exports, "v4", ({ - enumerable: true, - get: function () { - return _v3.default; - } -})); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v4.default; + stringToSign: function stringToSign() { + var parts = []; + parts.push(this.request.method); + parts.push(this.request.endpoint.host.toLowerCase()); + parts.push(this.request.pathname()); + parts.push(AWS.util.queryParamsToString(this.request.params)); + return parts.join('\n'); } -}); - -var _v = _interopRequireDefault(__nccwpck_require__(16674)); -var _v2 = _interopRequireDefault(__nccwpck_require__(84053)); - -var _v3 = _interopRequireDefault(__nccwpck_require__(39474)); +}); -var _v4 = _interopRequireDefault(__nccwpck_require__(83733)); +/** + * @api private + */ +module.exports = AWS.Signers.V2; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), -/***/ 92639: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 38992: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; +/** + * @api private + */ +AWS.Signers.V3 = inherit(AWS.Signers.RequestSigner, { + addAuthorization: function addAuthorization(credentials, date) { -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + var datetime = AWS.util.date.rfc822(date); -var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + this.request.headers['X-Amz-Date'] = datetime; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + if (credentials.sessionToken) { + this.request.headers['x-amz-security-token'] = credentials.sessionToken; + } -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } + this.request.headers['X-Amzn-Authorization'] = + this.authorization(credentials, datetime); - return _crypto.default.createHash('md5').update(bytes).digest(); -} + }, -var _default = md5; -exports["default"] = _default; + authorization: function authorization(credentials) { + return 'AWS3 ' + + 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + + 'Algorithm=HmacSHA256,' + + 'SignedHeaders=' + this.signedHeaders() + ',' + + 'Signature=' + this.signature(credentials); + }, -/***/ }), + signedHeaders: function signedHeaders() { + var headers = []; + AWS.util.arrayEach(this.headersToSign(), function iterator(h) { + headers.push(h.toLowerCase()); + }); + return headers.sort().join(';'); + }, -/***/ 14357: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + canonicalHeaders: function canonicalHeaders() { + var headers = this.request.headers; + var parts = []; + AWS.util.arrayEach(this.headersToSign(), function iterator(h) { + parts.push(h.toLowerCase().trim() + ':' + String(headers[h]).trim()); + }); + return parts.sort().join('\n') + '\n'; + }, -"use strict"; + headersToSign: function headersToSign() { + var headers = []; + AWS.util.each(this.request.headers, function iterator(k) { + if (k === 'Host' || k === 'Content-Encoding' || k.match(/^X-Amz/i)) { + headers.push(k); + } + }); + return headers; + }, + signature: function signature(credentials) { + return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); + }, -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rng; + stringToSign: function stringToSign() { + var parts = []; + parts.push(this.request.method); + parts.push('/'); + parts.push(''); + parts.push(this.canonicalHeaders()); + parts.push(this.request.body); + return AWS.util.crypto.sha256(parts.join('\n')); + } -var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); +}); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/** + * @api private + */ +module.exports = AWS.Signers.V3; -function rng() { - return _crypto.default.randomBytes(16); -} /***/ }), -/***/ 42539: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - +/***/ 54831: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +var AWS = __nccwpck_require__(53832); +var inherit = AWS.util.inherit; -var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); +__nccwpck_require__(38992); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/** + * @api private + */ +AWS.Signers.V3Https = inherit(AWS.Signers.V3, { + authorization: function authorization(credentials) { + return 'AWS3-HTTPS ' + + 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + + 'Algorithm=HmacSHA256,' + + 'Signature=' + this.signature(credentials); + }, -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); + stringToSign: function stringToSign() { + return this.request.headers['X-Amz-Date']; } +}); - return _crypto.default.createHash('sha1').update(bytes).digest(); -} +/** + * @api private + */ +module.exports = AWS.Signers.V3Https; -var _default = sha1; -exports["default"] = _default; /***/ }), -/***/ 16674: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +/***/ 4261: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var _rng = _interopRequireDefault(__nccwpck_require__(14357)); +var AWS = __nccwpck_require__(53832); +var v4Credentials = __nccwpck_require__(56012); +var inherit = AWS.util.inherit; -var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(27126)); +/** + * @api private + */ +var expiresHeader = 'presigned-expires'; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/** + * @api private + */ +AWS.Signers.V4 = inherit(AWS.Signers.RequestSigner, { + constructor: function V4(request, serviceName, options) { + AWS.Signers.RequestSigner.call(this, request); + this.serviceName = serviceName; + options = options || {}; + this.signatureCache = typeof options.signatureCache === 'boolean' ? options.signatureCache : true; + this.operation = options.operation; + this.signatureVersion = options.signatureVersion; + }, -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -var _nodeId; + algorithm: 'AWS4-HMAC-SHA256', -var _clockseq; // Previous uuid creation time + addAuthorization: function addAuthorization(credentials, date) { + var datetime = AWS.util.date.iso8601(date).replace(/[:\-]|\.\d{3}/g, ''); + if (this.isPresigned()) { + this.updateForPresigned(credentials, datetime); + } else { + this.addHeaders(credentials, datetime); + } -var _lastMSecs = 0; -var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + this.request.headers['Authorization'] = + this.authorization(credentials, datetime); + }, -function v1(options, buf, offset) { - var i = buf && offset || 0; - var b = buf || []; - options = options || {}; - var node = options.node || _nodeId; - var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 + addHeaders: function addHeaders(credentials, datetime) { + this.request.headers['X-Amz-Date'] = datetime; + if (credentials.sessionToken) { + this.request.headers['x-amz-security-token'] = credentials.sessionToken; + } + }, - if (node == null || clockseq == null) { - var seedBytes = options.random || (options.rng || _rng.default)(); + updateForPresigned: function updateForPresigned(credentials, datetime) { + var credString = this.credentialString(datetime); + var qs = { + 'X-Amz-Date': datetime, + 'X-Amz-Algorithm': this.algorithm, + 'X-Amz-Credential': credentials.accessKeyId + '/' + credString, + 'X-Amz-Expires': this.request.headers[expiresHeader], + 'X-Amz-SignedHeaders': this.signedHeaders() + }; - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + if (credentials.sessionToken) { + qs['X-Amz-Security-Token'] = credentials.sessionToken; } - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + if (this.request.headers['Content-Type']) { + qs['Content-Type'] = this.request.headers['Content-Type']; + } + if (this.request.headers['Content-MD5']) { + qs['Content-MD5'] = this.request.headers['Content-MD5']; + } + if (this.request.headers['Cache-Control']) { + qs['Cache-Control'] = this.request.headers['Cache-Control']; } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - - - var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + // need to pull in any other X-Amz-* headers + AWS.util.each.call(this, this.request.headers, function(key, value) { + if (key === expiresHeader) return; + if (this.isSignableHeader(key)) { + var lowerKey = key.toLowerCase(); + // Metadata should be normalized + if (lowerKey.indexOf('x-amz-meta-') === 0) { + qs[lowerKey] = value; + } else if (lowerKey.indexOf('x-amz-') === 0) { + qs[key] = value; + } + } + }); - var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + var sep = this.request.path.indexOf('?') >= 0 ? '&' : '?'; + this.request.path += sep + AWS.util.queryParamsToString(qs); + }, - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval + authorization: function authorization(credentials, datetime) { + var parts = []; + var credString = this.credentialString(datetime); + parts.push(this.algorithm + ' Credential=' + + credentials.accessKeyId + '/' + credString); + parts.push('SignedHeaders=' + this.signedHeaders()); + parts.push('Signature=' + this.signature(credentials, datetime)); + return parts.join(', '); + }, + signature: function signature(credentials, datetime) { + var signingKey = v4Credentials.getSigningKey( + credentials, + datetime.substr(0, 8), + this.request.region, + this.serviceName, + this.signatureCache + ); + return AWS.util.crypto.hmac(signingKey, this.stringToSign(datetime), 'hex'); + }, - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested + stringToSign: function stringToSign(datetime) { + var parts = []; + parts.push('AWS4-HMAC-SHA256'); + parts.push(datetime); + parts.push(this.credentialString(datetime)); + parts.push(this.hexEncodedHash(this.canonicalString())); + return parts.join('\n'); + }, + canonicalString: function canonicalString() { + var parts = [], pathname = this.request.pathname(); + if (this.serviceName !== 's3' && this.signatureVersion !== 's3v4') pathname = AWS.util.uriEscapePath(pathname); - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } + parts.push(this.request.method); + parts.push(pathname); + parts.push(this.request.search()); + parts.push(this.canonicalHeaders() + '\n'); + parts.push(this.signedHeaders()); + parts.push(this.hexEncodedBodyHash()); + return parts.join('\n'); + }, - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + canonicalHeaders: function canonicalHeaders() { + var headers = []; + AWS.util.each.call(this, this.request.headers, function (key, item) { + headers.push([key, item]); + }); + headers.sort(function (a, b) { + return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : 1; + }); + var parts = []; + AWS.util.arrayEach.call(this, headers, function (item) { + var key = item[0].toLowerCase(); + if (this.isSignableHeader(key)) { + var value = item[1]; + if (typeof value === 'undefined' || value === null || typeof value.toString !== 'function') { + throw AWS.util.error(new Error('Header ' + key + ' contains invalid value'), { + code: 'InvalidHeader' + }); + } + parts.push(key + ':' + + this.canonicalHeaderValues(value.toString())); + } + }); + return parts.join('\n'); + }, - msecs += 12219292800000; // `time_low` + canonicalHeaderValues: function canonicalHeaderValues(values) { + return values.replace(/\s+/g, ' ').replace(/^\s+|\s+$/g, ''); + }, - var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` + signedHeaders: function signedHeaders() { + var keys = []; + AWS.util.each.call(this, this.request.headers, function (key) { + key = key.toLowerCase(); + if (this.isSignableHeader(key)) keys.push(key); + }); + return keys.sort().join(';'); + }, - var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` + credentialString: function credentialString(datetime) { + return v4Credentials.createScope( + datetime.substr(0, 8), + this.request.region, + this.serviceName + ); + }, - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + hexEncodedHash: function hash(string) { + return AWS.util.crypto.sha256(string, 'hex'); + }, - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + hexEncodedBodyHash: function hexEncodedBodyHash() { + var request = this.request; + if (this.isPresigned() && (['s3', 's3-object-lambda'].indexOf(this.serviceName) > -1) && !request.body) { + return 'UNSIGNED-PAYLOAD'; + } else if (request.headers['X-Amz-Content-Sha256']) { + return request.headers['X-Amz-Content-Sha256']; + } else { + return this.hexEncodedHash(this.request.body || ''); + } + }, - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + unsignableHeaders: [ + 'authorization', + 'content-type', + 'content-length', + 'user-agent', + expiresHeader, + 'expect', + 'x-amzn-trace-id' + ], - b[i++] = clockseq & 0xff; // `node` + isSignableHeader: function isSignableHeader(key) { + if (key.toLowerCase().indexOf('x-amz-') === 0) return true; + return this.unsignableHeaders.indexOf(key) < 0; + }, - for (var n = 0; n < 6; ++n) { - b[i + n] = node[n]; + isPresigned: function isPresigned() { + return this.request.headers[expiresHeader] ? true : false; } - return buf ? buf : (0, _bytesToUuid.default)(b); -} +}); + +/** + * @api private + */ +module.exports = AWS.Signers.V4; -var _default = v1; -exports["default"] = _default; /***/ }), -/***/ 84053: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 56012: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +var AWS = __nccwpck_require__(53832); +/** + * @api private + */ +var cachedSecret = {}; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +/** + * @api private + */ +var cacheQueue = []; -var _v = _interopRequireDefault(__nccwpck_require__(81672)); +/** + * @api private + */ +var maxCacheEntries = 50; -var _md = _interopRequireDefault(__nccwpck_require__(92639)); +/** + * @api private + */ +var v4Identifier = 'aws4_request'; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/** + * @api private + */ +module.exports = { + /** + * @api private + * + * @param date [String] + * @param region [String] + * @param serviceName [String] + * @return [String] + */ + createScope: function createScope(date, region, serviceName) { + return [ + date.substr(0, 8), + region, + serviceName, + v4Identifier + ].join('/'); + }, -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = v3; -exports["default"] = _default; + /** + * @api private + * + * @param credentials [Credentials] + * @param date [String] + * @param region [String] + * @param service [String] + * @param shouldCache [Boolean] + * @return [String] + */ + getSigningKey: function getSigningKey( + credentials, + date, + region, + service, + shouldCache + ) { + var credsIdentifier = AWS.util.crypto + .hmac(credentials.secretAccessKey, credentials.accessKeyId, 'base64'); + var cacheKey = [credsIdentifier, date, region, service].join('_'); + shouldCache = shouldCache !== false; + if (shouldCache && (cacheKey in cachedSecret)) { + return cachedSecret[cacheKey]; + } -/***/ }), + var kDate = AWS.util.crypto.hmac( + 'AWS4' + credentials.secretAccessKey, + date, + 'buffer' + ); + var kRegion = AWS.util.crypto.hmac(kDate, region, 'buffer'); + var kService = AWS.util.crypto.hmac(kRegion, service, 'buffer'); -/***/ 81672: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + var signingKey = AWS.util.crypto.hmac(kService, v4Identifier, 'buffer'); + if (shouldCache) { + cachedSecret[cacheKey] = signingKey; + cacheQueue.push(cacheKey); + if (cacheQueue.length > maxCacheEntries) { + // remove the oldest entry (not the least recently used) + delete cachedSecret[cacheQueue.shift()]; + } + } -"use strict"; + return signingKey; + }, + /** + * @api private + * + * Empties the derived signing key cache. Made available for testing purposes + * only. + */ + emptyCache: function emptyCache() { + cachedSecret = {}; + cacheQueue = []; + } +}; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -exports.URL = exports.DNS = void 0; -var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(27126)); +/***/ }), -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ 84531: +/***/ ((module) => { -function uuidToBytes(uuid) { - // Note: We assume we're being passed a valid uuid string - var bytes = []; - uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) { - bytes.push(parseInt(hex, 16)); - }); - return bytes; +function AcceptorStateMachine(states, state) { + this.currentState = state || null; + this.states = states || {}; } -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - var bytes = new Array(str.length); - - for (var i = 0; i < str.length; i++) { - bytes[i] = str.charCodeAt(i); +AcceptorStateMachine.prototype.runTo = function runTo(finalState, done, bindObject, inputError) { + if (typeof finalState === 'function') { + inputError = bindObject; bindObject = done; + done = finalState; finalState = null; } - return bytes; -} - -const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.DNS = DNS; -const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = URL; - -function _default(name, version, hashfunc) { - var generateUUID = function (value, namespace, buf, offset) { - var off = buf && offset || 0; - if (typeof value == 'string') value = stringToBytes(value); - if (typeof namespace == 'string') namespace = uuidToBytes(namespace); - if (!Array.isArray(value)) throw TypeError('value must be an array of bytes'); - if (!Array.isArray(namespace) || namespace.length !== 16) throw TypeError('namespace must be uuid string or an Array of 16 byte values'); // Per 4.3 - - var bytes = hashfunc(namespace.concat(value)); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - for (var idx = 0; idx < 16; ++idx) { - buf[off + idx] = bytes[idx]; - } + var self = this; + var state = self.states[self.currentState]; + state.fn.call(bindObject || self, inputError, function(err) { + if (err) { + if (state.fail) self.currentState = state.fail; + else return done ? done.call(bindObject, err) : null; + } else { + if (state.accept) self.currentState = state.accept; + else return done ? done.call(bindObject) : null; + } + if (self.currentState === finalState) { + return done ? done.call(bindObject, err) : null; } - return buf || (0, _bytesToUuid.default)(bytes); - }; // Function#name is not settable on some platforms (#270) + self.runTo(finalState, done, bindObject, err); + }); +}; +AcceptorStateMachine.prototype.addState = function addState(name, acceptState, failState, fn) { + if (typeof acceptState === 'function') { + fn = acceptState; acceptState = null; failState = null; + } else if (typeof failState === 'function') { + fn = failState; failState = null; + } - try { - generateUUID.name = name; - } catch (err) {} // For CommonJS default export support + if (!this.currentState) this.currentState = name; + this.states[name] = { accept: acceptState, fail: failState, fn: fn }; + return this; +}; +/** + * @api private + */ +module.exports = AcceptorStateMachine; - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} /***/ }), -/***/ 39474: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; +/***/ 90962: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +var AWS = __nccwpck_require__(53832); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +/** + * Represents AWS token object, which contains {token}, and optional + * {expireTime}. + * Creating a `Token` object allows you to pass around your + * token to configuration and service objects. + * + * Note that this class typically does not need to be constructed manually, + * as the {AWS.Config} and {AWS.Service} classes both accept simple + * options hashes with the two keys. The token from this object will be used + * automatically in operations which require them. + * + * ## Expiring and Refreshing Token + * + * Occasionally token can expire in the middle of a long-running + * application. In this case, the SDK will automatically attempt to + * refresh the token from the storage location if the Token + * class implements the {refresh} method. + * + * If you are implementing a token storage location, you + * will want to create a subclass of the `Token` class and + * override the {refresh} method. This method allows token to be + * retrieved from the backing store, be it a file system, database, or + * some network storage. The method should reset the token attributes + * on the object. + * + * @!attribute token + * @return [String] represents the literal token string. This will typically + * be a base64 encoded string. + * @!attribute expireTime + * @return [Date] a time when token should be considered expired. Used + * in conjunction with {expired}. + * @!attribute expired + * @return [Boolean] whether the token is expired and require a refresh. Used + * in conjunction with {expireTime}. + */ +AWS.Token = AWS.util.inherit({ + /** + * Creates a Token object with a given set of information in options hash. + * @option options token [String] represents the literal token string. + * @option options expireTime [Date] field representing the time at which + * the token expires. + * @example Create a token object + * var token = new AWS.Token({ token: 'token' }); + */ + constructor: function Token(options) { + // hide token from being displayed with util.inspect + AWS.util.hideProperties(this, ['token']); -var _rng = _interopRequireDefault(__nccwpck_require__(14357)); + this.expired = false; + this.expireTime = null; + this.refreshCallbacks = []; + if (arguments.length === 1) { + var options = arguments[0]; + this.token = options.token; + this.expireTime = options.expireTime; + } + }, -var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(27126)); + /** + * @return [Integer] the number of seconds before {expireTime} during which + * the token will be considered expired. + */ + expiryWindow: 15, -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /** + * @return [Boolean] whether the Token object should call {refresh} + * @note Subclasses should override this method to provide custom refresh + * logic. + */ + needsRefresh: function needsRefresh() { + var currentTime = AWS.util.date.getDate().getTime(); + var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); -function v4(options, buf, offset) { - var i = buf && offset || 0; + if (this.expireTime && adjustedTime > this.expireTime) + return true; - if (typeof options == 'string') { - buf = options === 'binary' ? new Array(16) : null; - options = null; - } + return this.expired || !this.token; + }, - options = options || {}; + /** + * Gets the existing token, refreshing them if they are not yet loaded + * or have expired. Users should call this method before using {refresh}, + * as this will not attempt to reload token when they are already + * loaded into the object. + * + * @callback callback function(err) + * When this callback is called with no error, it means either token + * do not need to be refreshed or refreshed token information has + * been loaded into the object (as the `token` property). + * @param err [Error] if an error occurred, this value will be filled + */ + get: function get(callback) { + var self = this; + if (this.needsRefresh()) { + this.refresh(function(err) { + if (!err) self.expired = false; // reset expired flag + if (callback) callback(err); + }); + } else if (callback) { + callback(); + } + }, - var rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + /** + * @!method getPromise() + * Returns a 'thenable' promise. + * Gets the existing token, refreshing it if it's not yet loaded + * or have expired. Users should call this method before using {refresh}, + * as this will not attempt to reload token when it's already + * loaded into the object. + * + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function() + * Called if the promise is fulfilled. When this callback is called, it means + * either token does not need to be refreshed or refreshed token information + * has been loaded into the object (as the `token` property). + * @callback rejectedCallback function(err) + * Called if the promise is rejected. + * @param err [Error] if an error occurred, this value will be filled. + * @return [Promise] A promise that represents the state of the `get` call. + * @example Calling the `getPromise` method. + * var promise = tokenProvider.getPromise(); + * promise.then(function() { ... }, function(err) { ... }); + */ + /** + * @!method refreshPromise() + * Returns a 'thenable' promise. + * Refreshes the token. Users should call {get} before attempting + * to forcibly refresh token. + * + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function() + * Called if the promise is fulfilled. When this callback is called, it + * means refreshed token information has been loaded into the object + * (as the `token` property). + * @callback rejectedCallback function(err) + * Called if the promise is rejected. + * @param err [Error] if an error occurred, this value will be filled. + * @return [Promise] A promise that represents the state of the `refresh` call. + * @example Calling the `refreshPromise` method. + * var promise = tokenProvider.refreshPromise(); + * promise.then(function() { ... }, function(err) { ... }); + */ - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + /** + * Refreshes the token. Users should call {get} before attempting + * to forcibly refresh token. + * + * @callback callback function(err) + * When this callback is called with no error, it means refreshed + * token information has been loaded into the object (as the + * `token` property). + * @param err [Error] if an error occurred, this value will be filled + * @note Subclasses should override this class to reset the + * {token} on the token object and then call the callback with + * any error information. + * @see get + */ + refresh: function refresh(callback) { + this.expired = false; + callback(); + }, - if (buf) { - for (var ii = 0; ii < 16; ++ii) { - buf[i + ii] = rnds[ii]; + /** + * @api private + * @param callback + */ + coalesceRefresh: function coalesceRefresh(callback, sync) { + var self = this; + if (self.refreshCallbacks.push(callback) === 1) { + self.load(function onLoad(err) { + AWS.util.arrayEach(self.refreshCallbacks, function(callback) { + if (sync) { + callback(err); + } else { + // callback could throw, so defer to ensure all callbacks are notified + AWS.util.defer(function () { + callback(err); + }); + } + }); + self.refreshCallbacks.length = 0; + }); } + }, + + /** + * @api private + * @param callback + */ + load: function load(callback) { + callback(); } +}); - return buf || (0, _bytesToUuid.default)(rnds); -} +/** + * @api private + */ +AWS.Token.addPromisesToClass = function addPromisesToClass(PromiseDependency) { + this.prototype.getPromise = AWS.util.promisifyMethod('get', PromiseDependency); + this.prototype.refreshPromise = AWS.util.promisifyMethod('refresh', PromiseDependency); +}; -var _default = v4; -exports["default"] = _default; +/** + * @api private + */ +AWS.Token.deletePromisesFromClass = function deletePromisesFromClass() { + delete this.prototype.getPromise; + delete this.prototype.refreshPromise; +}; -/***/ }), +AWS.util.addPromises(AWS.Token); -/***/ 83733: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +/***/ }), +/***/ 8018: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +var AWS = __nccwpck_require__(53832); +var crypto = __nccwpck_require__(76982); +var fs = __nccwpck_require__(79896); +var path = __nccwpck_require__(16928); +var iniLoader = AWS.util.iniLoader; -var _v = _interopRequireDefault(__nccwpck_require__(81672)); +// Tracking refresh attempt to ensure refresh is not attempted more than once every 30 seconds. +var lastRefreshAttemptTime = 0; -var _sha = _interopRequireDefault(__nccwpck_require__(42539)); +/** + * Throws error is key is not present in token object. + * + * @param token [Object] Object to be validated. + * @param key [String] The key to be validated on the object. + */ +var validateTokenKey = function validateTokenKey(token, key) { + if (!token[key]) { + throw AWS.util.error( + new Error('Key "' + key + '" not present in SSO Token'), + { code: 'SSOTokenProviderFailure' } + ); + } +}; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/** + * Calls callback function with or without error based on provided times in case + * of unsuccessful refresh. + * + * @param currentTime [number] current time in milliseconds since ECMAScript epoch. + * @param tokenExpireTime [number] token expire time in milliseconds since ECMAScript epoch. + * @param callback [Function] Callback to call in case of error. + */ +var refreshUnsuccessful = function refreshUnsuccessful( + currentTime, + tokenExpireTime, + callback +) { + if (tokenExpireTime > currentTime) { + // Cached token is still valid, return. + callback(null); + } else { + // Token invalid, throw error requesting user to sso login. + throw AWS.util.error( + new Error('SSO Token refresh failed. Please log in using "aws sso login"'), + { code: 'SSOTokenProviderFailure' } + ); + } +}; -const v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = v5; -exports["default"] = _default; +/** + * Represents token loaded from disk derived from the AWS SSO device grant authorication flow. + * + * ## Using SSO Token Provider + * + * This provider is checked by default in the Node.js environment in TokenProviderChain. + * To use the SSO Token Provider, simply add your SSO Start URL and Region to the + * ~/.aws/config file in the following format: + * + * [default] + * sso_start_url = https://d-abc123.awsapps.com/start + * sso_region = us-east-1 + * + * ## Using custom profiles + * + * The SDK supports loading token for separate profiles. This can be done in two ways: + * + * 1. Set the `AWS_PROFILE` environment variable in your process prior to loading the SDK. + * 2. Directly load the AWS.SSOTokenProvider: + * + * ```javascript + * var ssoTokenProvider = new AWS.SSOTokenProvider({profile: 'myprofile'}); + * ``` + * + * @!macro nobrowser + */ +AWS.SSOTokenProvider = AWS.util.inherit(AWS.Token, { + /** + * Expiry window of five minutes. + */ + expiryWindow: 5 * 60, -/***/ }), + /** + * Creates a new token object from cached access token. + * + * @param options [map] a set of options + * @option options profile [String] (AWS_PROFILE env var or 'default') + * the name of the profile to load. + * @option options callback [Function] (err) Token is eagerly loaded + * by the constructor. When the callback is called with no error, the + * token has been loaded successfully. + */ + constructor: function SSOTokenProvider(options) { + AWS.Token.call(this); -/***/ 60123: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + options = options || {}; -"use strict"; -var __webpack_unused_export__; + this.expired = true; + this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; + this.get(options.callback || AWS.util.fn.noop); + }, -__webpack_unused_export__ = ({ value: true }); -var LRU_1 = __nccwpck_require__(1635); -var CACHE_SIZE = 1000; -/** - * Inspired node-lru-cache[https://github.com/isaacs/node-lru-cache] - */ -var EndpointCache = /** @class */ (function () { - function EndpointCache(maxSize) { - if (maxSize === void 0) { maxSize = CACHE_SIZE; } - this.maxSize = maxSize; - this.cache = new LRU_1.LRUCache(maxSize); + /** + * Reads sso_start_url from provided profile, and reads token from + * ~/.aws/sso/cache/.json + * + * Throws an error if required fields token and expiresAt are missing. + * Throws an error if token has expired and metadata to perform refresh is + * not available. + * Attempts to refresh the token if it's within 5 minutes before expiry time. + * + * @api private + */ + load: function load(callback) { + var self = this; + var profiles = iniLoader.loadFrom({ isConfig: true }); + var profile = profiles[this.profile] || {}; + + if (Object.keys(profile).length === 0) { + throw AWS.util.error( + new Error('Profile "' + this.profile + '" not found'), + { code: 'SSOTokenProviderFailure' } + ); + } else if (!profile['sso_session']) { + throw AWS.util.error( + new Error('Profile "' + this.profile + '" is missing required property "sso_session".'), + { code: 'SSOTokenProviderFailure' } + ); } - ; - Object.defineProperty(EndpointCache.prototype, "size", { - get: function () { - return this.cache.length; - }, - enumerable: true, - configurable: true - }); - EndpointCache.prototype.put = function (key, value) { - var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; - var endpointRecord = this.populateValue(value); - this.cache.put(keyString, endpointRecord); - }; - EndpointCache.prototype.get = function (key) { - var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; - var now = Date.now(); - var records = this.cache.get(keyString); - if (records) { - for (var i = records.length-1; i >= 0; i--) { - var record = records[i]; - if (record.Expire < now) { - records.splice(i, 1); - } - } - if (records.length === 0) { - this.cache.remove(keyString); - return undefined; - } - } - return records; - }; - EndpointCache.getKeyString = function (key) { - var identifiers = []; - var identifierNames = Object.keys(key).sort(); - for (var i = 0; i < identifierNames.length; i++) { - var identifierName = identifierNames[i]; - if (key[identifierName] === undefined) - continue; - identifiers.push(key[identifierName]); - } - return identifiers.join(' '); - }; - EndpointCache.prototype.populateValue = function (endpoints) { - var now = Date.now(); - return endpoints.map(function (endpoint) { return ({ - Address: endpoint.Address || '', - Expire: now + (endpoint.CachePeriodInMinutes || 1) * 60 * 1000 - }); }); - }; - EndpointCache.prototype.empty = function () { - this.cache.empty(); - }; - EndpointCache.prototype.remove = function (key) { - var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; - this.cache.remove(keyString); - }; - return EndpointCache; -}()); -exports.$ = EndpointCache; -/***/ }), + var ssoSessionName = profile['sso_session']; + var ssoSessions = iniLoader.loadSsoSessionsFrom(); + var ssoSession = ssoSessions[ssoSessionName]; -/***/ 1635: -/***/ ((__unused_webpack_module, exports) => { + if (!ssoSession) { + throw AWS.util.error( + new Error('Sso session "' + ssoSessionName + '" not found'), + { code: 'SSOTokenProviderFailure' } + ); + } else if (!ssoSession['sso_start_url']) { + throw AWS.util.error( + new Error('Sso session "' + this.profile + '" is missing required property "sso_start_url".'), + { code: 'SSOTokenProviderFailure' } + ); + } else if (!ssoSession['sso_region']) { + throw AWS.util.error( + new Error('Sso session "' + this.profile + '" is missing required property "sso_region".'), + { code: 'SSOTokenProviderFailure' } + ); + } -"use strict"; + var hasher = crypto.createHash('sha1'); + var fileName = hasher.update(ssoSessionName).digest('hex') + '.json'; + var cachePath = path.join(iniLoader.getHomeDir(), '.aws', 'sso', 'cache', fileName); + var tokenFromCache = JSON.parse(fs.readFileSync(cachePath)); -Object.defineProperty(exports, "__esModule", ({ value: true })); -var LinkedListNode = /** @class */ (function () { - function LinkedListNode(key, value) { - this.key = key; - this.value = value; - } - return LinkedListNode; -}()); -var LRUCache = /** @class */ (function () { - function LRUCache(size) { - this.nodeMap = {}; - this.size = 0; - if (typeof size !== 'number' || size < 1) { - throw new Error('Cache size can only be positive number'); - } - this.sizeLimit = size; + if (!tokenFromCache) { + throw AWS.util.error( + new Error('Cached token not found. Please log in using "aws sso login"' + + ' for profile "' + this.profile + '".'), + { code: 'SSOTokenProviderFailure' } + ); } - Object.defineProperty(LRUCache.prototype, "length", { - get: function () { - return this.size; - }, - enumerable: true, - configurable: true - }); - LRUCache.prototype.prependToList = function (node) { - if (!this.headerNode) { - this.tailNode = node; - } - else { - this.headerNode.prev = node; - node.next = this.headerNode; - } - this.headerNode = node; - this.size++; - }; - LRUCache.prototype.removeFromTail = function () { - if (!this.tailNode) { - return undefined; - } - var node = this.tailNode; - var prevNode = node.prev; - if (prevNode) { - prevNode.next = undefined; - } - node.prev = undefined; - this.tailNode = prevNode; - this.size--; - return node; - }; - LRUCache.prototype.detachFromList = function (node) { - if (this.headerNode === node) { - this.headerNode = node.next; - } - if (this.tailNode === node) { - this.tailNode = node.prev; - } - if (node.prev) { - node.prev.next = node.next; - } - if (node.next) { - node.next.prev = node.prev; - } - node.next = undefined; - node.prev = undefined; - this.size--; - }; - LRUCache.prototype.get = function (key) { - if (this.nodeMap[key]) { - var node = this.nodeMap[key]; - this.detachFromList(node); - this.prependToList(node); - return node.value; - } - }; - LRUCache.prototype.remove = function (key) { - if (this.nodeMap[key]) { - var node = this.nodeMap[key]; - this.detachFromList(node); - delete this.nodeMap[key]; - } - }; - LRUCache.prototype.put = function (key, value) { - if (this.nodeMap[key]) { - this.remove(key); - } - else if (this.size === this.sizeLimit) { - var tailNode = this.removeFromTail(); - var key_1 = tailNode.key; - delete this.nodeMap[key_1]; - } - var newNode = new LinkedListNode(key, value); - this.nodeMap[key] = newNode; - this.prependToList(newNode); - }; - LRUCache.prototype.empty = function () { - var keys = Object.keys(this.nodeMap); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var node = this.nodeMap[key]; - this.detachFromList(node); - delete this.nodeMap[key]; - } - }; - return LRUCache; -}()); -exports.LRUCache = LRUCache; -/***/ }), - -/***/ 27410: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + validateTokenKey(tokenFromCache, 'accessToken'); + validateTokenKey(tokenFromCache, 'expiresAt'); -var aws4 = exports, - url = __nccwpck_require__(57310), - querystring = __nccwpck_require__(63477), - crypto = __nccwpck_require__(6113), - lru = __nccwpck_require__(35359), - credentialsCache = lru(1000) + var currentTime = AWS.util.date.getDate().getTime(); + var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); + var tokenExpireTime = new Date(tokenFromCache['expiresAt']); -// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html + if (tokenExpireTime > adjustedTime) { + // Token is valid and not expired. + self.token = tokenFromCache.accessToken; + self.expireTime = tokenExpireTime; + self.expired = false; + callback(null); + return; + } -function hmac(key, string, encoding) { - return crypto.createHmac('sha256', key).update(string, 'utf8').digest(encoding) -} + // Skip new refresh, if last refresh was done within 30 seconds. + if (currentTime - lastRefreshAttemptTime < 30 * 1000) { + refreshUnsuccessful(currentTime, tokenExpireTime, callback); + return; + } -function hash(string, encoding) { - return crypto.createHash('sha256').update(string, 'utf8').digest(encoding) -} + // Token is in expiry window, refresh from SSOOIDC.createToken() call. + validateTokenKey(tokenFromCache, 'clientId'); + validateTokenKey(tokenFromCache, 'clientSecret'); + validateTokenKey(tokenFromCache, 'refreshToken'); -// This function assumes the string has already been percent encoded -function encodeRfc3986(urlEncodedString) { - return urlEncodedString.replace(/[!'()*]/g, function(c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase() - }) -} + if (!self.service || self.service.config.region !== ssoSession.sso_region) { + self.service = new AWS.SSOOIDC({ region: ssoSession.sso_region }); + } -function encodeRfc3986Full(str) { - return encodeRfc3986(encodeURIComponent(str)) -} + var params = { + clientId: tokenFromCache.clientId, + clientSecret: tokenFromCache.clientSecret, + refreshToken: tokenFromCache.refreshToken, + grantType: 'refresh_token', + }; -// A bit of a combination of: -// https://github.com/aws/aws-sdk-java-v2/blob/dc695de6ab49ad03934e1b02e7263abbd2354be0/core/auth/src/main/java/software/amazon/awssdk/auth/signer/internal/AbstractAws4Signer.java#L59 -// https://github.com/aws/aws-sdk-js/blob/18cb7e5b463b46239f9fdd4a65e2ff8c81831e8f/lib/signers/v4.js#L191-L199 -// https://github.com/mhart/aws4fetch/blob/b3aed16b6f17384cf36ea33bcba3c1e9f3bdfefd/src/main.js#L25-L34 -var HEADERS_TO_IGNORE = { - 'authorization': true, - 'connection': true, - 'x-amzn-trace-id': true, - 'user-agent': true, - 'expect': true, - 'presigned-expires': true, - 'range': true, -} + lastRefreshAttemptTime = AWS.util.date.getDate().getTime(); + self.service.createToken(params, function(err, data) { + if (err || !data) { + refreshUnsuccessful(currentTime, tokenExpireTime, callback); + } else { + try { + validateTokenKey(data, 'accessToken'); + validateTokenKey(data, 'expiresIn'); + self.expired = false; + self.token = data.accessToken; + self.expireTime = new Date(Date.now() + data.expiresIn * 1000); + callback(null); -// request: { path | body, [host], [method], [headers], [service], [region] } -// credentials: { accessKeyId, secretAccessKey, [sessionToken] } -function RequestSigner(request, credentials) { + try { + // Write updated token data to disk. + tokenFromCache.accessToken = data.accessToken; + tokenFromCache.expiresAt = self.expireTime.toISOString(); + tokenFromCache.refreshToken = data.refreshToken; + fs.writeFileSync(cachePath, JSON.stringify(tokenFromCache, null, 2)); + } catch (error) { + // Swallow error if unable to write token to file. + } + } catch (error) { + refreshUnsuccessful(currentTime, tokenExpireTime, callback); + } + } + }); + }, - if (typeof request === 'string') request = url.parse(request) + /** + * Loads the cached access token from disk. + * + * @callback callback function(err) + * Called after the AWS SSO process has been executed. When this + * callback is called with no error, it means that the token information + * has been loaded into the object (as the `token` property). + * @param err [Error] if an error occurred, this value will be filled. + * @see get + */ + refresh: function refresh(callback) { + iniLoader.clearCachedFiles(); + this.coalesceRefresh(callback || AWS.util.fn.callback); + }, +}); - var headers = request.headers = (request.headers || {}), - hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host) - this.request = request - this.credentials = credentials || this.defaultCredentials() +/***/ }), - this.service = request.service || hostParts[0] || '' - this.region = request.region || hostParts[1] || 'us-east-1' +/***/ 96712: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - // SES uses a different domain from the service name - if (this.service === 'email') this.service = 'ses' +var AWS = __nccwpck_require__(53832); - if (!request.method && request.body) - request.method = 'POST' +/** + * Creates a token provider chain that searches for token in a list of + * token providers specified by the {providers} property. + * + * By default, the chain will use the {defaultProviders} to resolve token. + * + * ## Setting Providers + * + * Each provider in the {providers} list should be a function that returns + * a {AWS.Token} object, or a hardcoded token object. The function + * form allows for delayed execution of the Token construction. + * + * ## Resolving Token from a Chain + * + * Call {resolve} to return the first valid token object that can be + * loaded by the provider chain. + * + * For example, to resolve a chain with a custom provider that checks a file + * on disk after the set of {defaultProviders}: + * + * ```javascript + * var diskProvider = new FileTokenProvider('./token.json'); + * var chain = new AWS.TokenProviderChain(); + * chain.providers.push(diskProvider); + * chain.resolve(); + * ``` + * + * The above code will return the `diskProvider` object if the + * file contains token and the `defaultProviders` do not contain + * any token. + * + * @!attribute providers + * @return [Array] + * a list of token objects or functions that return token + * objects. If the provider is a function, the function will be + * executed lazily when the provider needs to be checked for valid + * token. By default, this object will be set to the {defaultProviders}. + * @see defaultProviders + */ +AWS.TokenProviderChain = AWS.util.inherit(AWS.Token, { - if (!headers.Host && !headers.host) { - headers.Host = request.hostname || request.host || this.createHost() + /** + * Creates a new TokenProviderChain with a default set of providers + * specified by {defaultProviders}. + */ + constructor: function TokenProviderChain(providers) { + if (providers) { + this.providers = providers; + } else { + this.providers = AWS.TokenProviderChain.defaultProviders.slice(0); + } + this.resolveCallbacks = []; + }, - // If a port is specified explicitly, use it as is - if (request.port) - headers.Host += ':' + request.port - } - if (!request.hostname && !request.host) - request.hostname = headers.Host || headers.host + /** + * @!method resolvePromise() + * Returns a 'thenable' promise. + * Resolves the provider chain by searching for the first token in {providers}. + * + * Two callbacks can be provided to the `then` method on the returned promise. + * The first callback will be called if the promise is fulfilled, and the second + * callback will be called if the promise is rejected. + * @callback fulfilledCallback function(token) + * Called if the promise is fulfilled and the provider resolves the chain + * to a token object + * @param token [AWS.Token] the token object resolved by the provider chain. + * @callback rejectedCallback function(error) + * Called if the promise is rejected. + * @param err [Error] the error object returned if no token is found. + * @return [Promise] A promise that represents the state of the `resolve` method call. + * @example Calling the `resolvePromise` method. + * var promise = chain.resolvePromise(); + * promise.then(function(token) { ... }, function(err) { ... }); + */ - this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT' + /** + * Resolves the provider chain by searching for the first token in {providers}. + * + * @callback callback function(err, token) + * Called when the provider resolves the chain to a token object + * or null if no token can be found. + * + * @param err [Error] the error object returned if no token is found. + * @param token [AWS.Token] the token object resolved by the provider chain. + * @return [AWS.TokenProviderChain] the provider, for chaining. + */ + resolve: function resolve(callback) { + var self = this; + if (self.providers.length === 0) { + callback(new Error('No providers')); + return self; + } - this.extraHeadersToIgnore = request.extraHeadersToIgnore || Object.create(null) - this.extraHeadersToInclude = request.extraHeadersToInclude || Object.create(null) -} + if (self.resolveCallbacks.push(callback) === 1) { + var index = 0; + var providers = self.providers.slice(0); -RequestSigner.prototype.matchHost = function(host) { - var match = (host || '').match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/) - var hostParts = (match || []).slice(1, 3) + function resolveNext(err, token) { + if ((!err && token) || index === providers.length) { + AWS.util.arrayEach(self.resolveCallbacks, function (callback) { + callback(err, token); + }); + self.resolveCallbacks.length = 0; + return; + } - // ES's hostParts are sometimes the other way round, if the value that is expected - // to be region equals ‘es’ switch them back - // e.g. search-cluster-name-aaaa00aaaa0aaa0aaaaaaa0aaa.us-east-1.es.amazonaws.com - if (hostParts[1] === 'es' || hostParts[1] === 'aoss') - hostParts = hostParts.reverse() + var provider = providers[index++]; + if (typeof provider === 'function') { + token = provider.call(); + } else { + token = provider; + } - if (hostParts[1] == 's3') { - hostParts[0] = 's3' - hostParts[1] = 'us-east-1' - } else { - for (var i = 0; i < 2; i++) { - if (/^s3-/.test(hostParts[i])) { - hostParts[1] = hostParts[i].slice(3) - hostParts[0] = 's3' - break + if (token.get) { + token.get(function (getErr) { + resolveNext(getErr, getErr ? null : token); + }); + } else { + resolveNext(null, token); + } } - } - } - return hostParts -} + resolveNext(); + } -// http://docs.aws.amazon.com/general/latest/gr/rande.html -RequestSigner.prototype.isSingleRegion = function() { - // Special case for S3 and SimpleDB in us-east-1 - if (['s3', 'sdb'].indexOf(this.service) >= 0 && this.region === 'us-east-1') return true + return self; + } +}); - return ['cloudfront', 'ls', 'route53', 'iam', 'importexport', 'sts'] - .indexOf(this.service) >= 0 -} +/** + * The default set of providers used by a vanilla TokenProviderChain. + * + * In the browser: + * + * ```javascript + * AWS.TokenProviderChain.defaultProviders = [] + * ``` + * + * In Node.js: + * + * ```javascript + * AWS.TokenProviderChain.defaultProviders = [ + * function () { return new AWS.SSOTokenProvider(); }, + * ] + * ``` + */ +AWS.TokenProviderChain.defaultProviders = []; -RequestSigner.prototype.createHost = function() { - var region = this.isSingleRegion() ? '' : '.' + this.region, - subdomain = this.service === 'ses' ? 'email' : this.service - return subdomain + region + '.amazonaws.com' -} +/** + * @api private + */ +AWS.TokenProviderChain.addPromisesToClass = function addPromisesToClass(PromiseDependency) { + this.prototype.resolvePromise = AWS.util.promisifyMethod('resolve', PromiseDependency); +}; -RequestSigner.prototype.prepareRequest = function() { - this.parsePath() +/** + * @api private + */ +AWS.TokenProviderChain.deletePromisesFromClass = function deletePromisesFromClass() { + delete this.prototype.resolvePromise; +}; - var request = this.request, headers = request.headers, query +AWS.util.addPromises(AWS.TokenProviderChain); - if (request.signQuery) { - this.parsedPath.query = query = this.parsedPath.query || {} +/***/ }), - if (this.credentials.sessionToken) - query['X-Amz-Security-Token'] = this.credentials.sessionToken +/***/ 30879: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (this.service === 's3' && !query['X-Amz-Expires']) - query['X-Amz-Expires'] = 86400 +/* eslint guard-for-in:0 */ +var AWS; - if (query['X-Amz-Date']) - this.datetime = query['X-Amz-Date'] - else - query['X-Amz-Date'] = this.getDateTime() +/** + * A set of utility methods for use with the AWS SDK. + * + * @!attribute abort + * Return this value from an iterator function {each} or {arrayEach} + * to break out of the iteration. + * @example Breaking out of an iterator function + * AWS.util.each({a: 1, b: 2, c: 3}, function(key, value) { + * if (key == 'b') return AWS.util.abort; + * }); + * @see each + * @see arrayEach + * @api private + */ +var util = { + environment: 'nodejs', + engine: function engine() { + if (util.isBrowser() && typeof navigator !== 'undefined') { + return navigator.userAgent; + } else { + var engine = process.platform + '/' + process.version; + if (process.env.AWS_EXECUTION_ENV) { + engine += ' exec-env/' + process.env.AWS_EXECUTION_ENV; + } + return engine; + } + }, - query['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256' - query['X-Amz-Credential'] = this.credentials.accessKeyId + '/' + this.credentialString() - query['X-Amz-SignedHeaders'] = this.signedHeaders() + userAgent: function userAgent() { + var name = util.environment; + var agent = 'aws-sdk-' + name + '/' + (__nccwpck_require__(53832).VERSION); + if (name === 'nodejs') agent += ' ' + util.engine(); + return agent; + }, - } else { + uriEscape: function uriEscape(string) { + var output = encodeURIComponent(string); + output = output.replace(/[^A-Za-z0-9_.~\-%]+/g, escape); - if (!request.doNotModifyHeaders && !this.isCodeCommitGit) { - if (request.body && !headers['Content-Type'] && !headers['content-type']) - headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8' + // AWS percent-encodes some extra non-standard characters in a URI + output = output.replace(/[*]/g, function(ch) { + return '%' + ch.charCodeAt(0).toString(16).toUpperCase(); + }); - if (request.body && !headers['Content-Length'] && !headers['content-length']) - headers['Content-Length'] = Buffer.byteLength(request.body) + return output; + }, - if (this.credentials.sessionToken && !headers['X-Amz-Security-Token'] && !headers['x-amz-security-token']) - headers['X-Amz-Security-Token'] = this.credentials.sessionToken + uriEscapePath: function uriEscapePath(string) { + var parts = []; + util.arrayEach(string.split('/'), function (part) { + parts.push(util.uriEscape(part)); + }); + return parts.join('/'); + }, - if (this.service === 's3' && !headers['X-Amz-Content-Sha256'] && !headers['x-amz-content-sha256']) - headers['X-Amz-Content-Sha256'] = hash(this.request.body || '', 'hex') + urlParse: function urlParse(url) { + return util.url.parse(url); + }, - if (headers['X-Amz-Date'] || headers['x-amz-date']) - this.datetime = headers['X-Amz-Date'] || headers['x-amz-date'] - else - headers['X-Amz-Date'] = this.getDateTime() - } + urlFormat: function urlFormat(url) { + return util.url.format(url); + }, - delete headers.Authorization - delete headers.authorization - } -} + queryStringParse: function queryStringParse(qs) { + return util.querystring.parse(qs); + }, -RequestSigner.prototype.sign = function() { - if (!this.parsedPath) this.prepareRequest() + queryParamsToString: function queryParamsToString(params) { + var items = []; + var escape = util.uriEscape; + var sortedKeys = Object.keys(params).sort(); - if (this.request.signQuery) { - this.parsedPath.query['X-Amz-Signature'] = this.signature() - } else { - this.request.headers.Authorization = this.authHeader() - } + util.arrayEach(sortedKeys, function(name) { + var value = params[name]; + var ename = escape(name); + var result = ename + '='; + if (Array.isArray(value)) { + var vals = []; + util.arrayEach(value, function(item) { vals.push(escape(item)); }); + result = ename + '=' + vals.sort().join('&' + ename + '='); + } else if (value !== undefined && value !== null) { + result = ename + '=' + escape(value); + } + items.push(result); + }); - this.request.path = this.formatPath() + return items.join('&'); + }, - return this.request -} + readFileSync: function readFileSync(path) { + if (util.isBrowser()) return null; + return (__nccwpck_require__(79896).readFileSync)(path, 'utf-8'); + }, -RequestSigner.prototype.getDateTime = function() { - if (!this.datetime) { - var headers = this.request.headers, - date = new Date(headers.Date || headers.date || new Date) + base64: { + encode: function encode64(string) { + if (typeof string === 'number') { + throw util.error(new Error('Cannot base64 encode number ' + string)); + } + if (string === null || typeof string === 'undefined') { + return string; + } + var buf = util.buffer.toBuffer(string); + return buf.toString('base64'); + }, - this.datetime = date.toISOString().replace(/[:\-]|\.\d{3}/g, '') + decode: function decode64(string) { + if (typeof string === 'number') { + throw util.error(new Error('Cannot base64 decode number ' + string)); + } + if (string === null || typeof string === 'undefined') { + return string; + } + return util.buffer.toBuffer(string, 'base64'); + } - // Remove the trailing 'Z' on the timestamp string for CodeCommit git access - if (this.isCodeCommitGit) this.datetime = this.datetime.slice(0, -1) - } - return this.datetime -} + }, -RequestSigner.prototype.getDate = function() { - return this.getDateTime().substr(0, 8) -} + buffer: { + /** + * Buffer constructor for Node buffer and buffer pollyfill + */ + toBuffer: function(data, encoding) { + return (typeof util.Buffer.from === 'function' && util.Buffer.from !== Uint8Array.from) ? + util.Buffer.from(data, encoding) : new util.Buffer(data, encoding); + }, -RequestSigner.prototype.authHeader = function() { - return [ - 'AWS4-HMAC-SHA256 Credential=' + this.credentials.accessKeyId + '/' + this.credentialString(), - 'SignedHeaders=' + this.signedHeaders(), - 'Signature=' + this.signature(), - ].join(', ') -} + alloc: function(size, fill, encoding) { + if (typeof size !== 'number') { + throw new Error('size passed to alloc must be a number.'); + } + if (typeof util.Buffer.alloc === 'function') { + return util.Buffer.alloc(size, fill, encoding); + } else { + var buf = new util.Buffer(size); + if (fill !== undefined && typeof buf.fill === 'function') { + buf.fill(fill, undefined, undefined, encoding); + } + return buf; + } + }, -RequestSigner.prototype.signature = function() { - var date = this.getDate(), - cacheKey = [this.credentials.secretAccessKey, date, this.region, this.service].join(), - kDate, kRegion, kService, kCredentials = credentialsCache.get(cacheKey) - if (!kCredentials) { - kDate = hmac('AWS4' + this.credentials.secretAccessKey, date) - kRegion = hmac(kDate, this.region) - kService = hmac(kRegion, this.service) - kCredentials = hmac(kService, 'aws4_request') - credentialsCache.set(cacheKey, kCredentials) - } - return hmac(kCredentials, this.stringToSign(), 'hex') -} + toStream: function toStream(buffer) { + if (!util.Buffer.isBuffer(buffer)) buffer = util.buffer.toBuffer(buffer); -RequestSigner.prototype.stringToSign = function() { - return [ - 'AWS4-HMAC-SHA256', - this.getDateTime(), - this.credentialString(), - hash(this.canonicalString(), 'hex'), - ].join('\n') -} + var readable = new (util.stream.Readable)(); + var pos = 0; + readable._read = function(size) { + if (pos >= buffer.length) return readable.push(null); -RequestSigner.prototype.canonicalString = function() { - if (!this.parsedPath) this.prepareRequest() + var end = pos + size; + if (end > buffer.length) end = buffer.length; + readable.push(buffer.slice(pos, end)); + pos = end; + }; - var pathStr = this.parsedPath.path, - query = this.parsedPath.query, - headers = this.request.headers, - queryStr = '', - normalizePath = this.service !== 's3', - decodePath = this.service === 's3' || this.request.doNotEncodePath, - decodeSlashesInPath = this.service === 's3', - firstValOnly = this.service === 's3', - bodyHash + return readable; + }, - if (this.service === 's3' && this.request.signQuery) { - bodyHash = 'UNSIGNED-PAYLOAD' - } else if (this.isCodeCommitGit) { - bodyHash = '' - } else { - bodyHash = headers['X-Amz-Content-Sha256'] || headers['x-amz-content-sha256'] || - hash(this.request.body || '', 'hex') - } + /** + * Concatenates a list of Buffer objects. + */ + concat: function(buffers) { + var length = 0, + offset = 0, + buffer = null, i; - if (query) { - var reducedQuery = Object.keys(query).reduce(function(obj, key) { - if (!key) return obj - obj[encodeRfc3986Full(key)] = !Array.isArray(query[key]) ? query[key] : - (firstValOnly ? query[key][0] : query[key]) - return obj - }, {}) - var encodedQueryPieces = [] - Object.keys(reducedQuery).sort().forEach(function(key) { - if (!Array.isArray(reducedQuery[key])) { - encodedQueryPieces.push(key + '=' + encodeRfc3986Full(reducedQuery[key])) - } else { - reducedQuery[key].map(encodeRfc3986Full).sort() - .forEach(function(val) { encodedQueryPieces.push(key + '=' + val) }) - } - }) - queryStr = encodedQueryPieces.join('&') - } - if (pathStr !== '/') { - if (normalizePath) pathStr = pathStr.replace(/\/{2,}/g, '/') - pathStr = pathStr.split('/').reduce(function(path, piece) { - if (normalizePath && piece === '..') { - path.pop() - } else if (!normalizePath || piece !== '.') { - if (decodePath) piece = decodeURIComponent(piece.replace(/\+/g, ' ')) - path.push(encodeRfc3986Full(piece)) + for (i = 0; i < buffers.length; i++) { + length += buffers[i].length; } - return path - }, []).join('/') - if (pathStr[0] !== '/') pathStr = '/' + pathStr - if (decodeSlashesInPath) pathStr = pathStr.replace(/%2F/g, '/') - } - - return [ - this.request.method || 'GET', - pathStr, - queryStr, - this.canonicalHeaders() + '\n', - this.signedHeaders(), - bodyHash, - ].join('\n') -} -RequestSigner.prototype.canonicalHeaders = function() { - var headers = this.request.headers - function trimAll(header) { - return header.toString().trim().replace(/\s+/g, ' ') - } - return Object.keys(headers) - .filter(function(key) { return HEADERS_TO_IGNORE[key.toLowerCase()] == null }) - .sort(function(a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1 }) - .map(function(key) { return key.toLowerCase() + ':' + trimAll(headers[key]) }) - .join('\n') -} + buffer = util.buffer.alloc(length); -RequestSigner.prototype.signedHeaders = function() { - var extraHeadersToInclude = this.extraHeadersToInclude, - extraHeadersToIgnore = this.extraHeadersToIgnore - return Object.keys(this.request.headers) - .map(function(key) { return key.toLowerCase() }) - .filter(function(key) { - return extraHeadersToInclude[key] || - (HEADERS_TO_IGNORE[key] == null && !extraHeadersToIgnore[key]) - }) - .sort() - .join(';') -} + for (i = 0; i < buffers.length; i++) { + buffers[i].copy(buffer, offset); + offset += buffers[i].length; + } -RequestSigner.prototype.credentialString = function() { - return [ - this.getDate(), - this.region, - this.service, - 'aws4_request', - ].join('/') -} + return buffer; + } + }, -RequestSigner.prototype.defaultCredentials = function() { - var env = process.env - return { - accessKeyId: env.AWS_ACCESS_KEY_ID || env.AWS_ACCESS_KEY, - secretAccessKey: env.AWS_SECRET_ACCESS_KEY || env.AWS_SECRET_KEY, - sessionToken: env.AWS_SESSION_TOKEN, - } -} + string: { + byteLength: function byteLength(string) { + if (string === null || string === undefined) return 0; + if (typeof string === 'string') string = util.buffer.toBuffer(string); -RequestSigner.prototype.parsePath = function() { - var path = this.request.path || '/' + if (typeof string.byteLength === 'number') { + return string.byteLength; + } else if (typeof string.length === 'number') { + return string.length; + } else if (typeof string.size === 'number') { + return string.size; + } else if (typeof string.path === 'string') { + return (__nccwpck_require__(79896).lstatSync)(string.path).size; + } else { + throw util.error(new Error('Cannot determine length of ' + string), + { object: string }); + } + }, - // S3 doesn't always encode characters > 127 correctly and - // all services don't encode characters > 255 correctly - // So if there are non-reserved chars (and it's not already all % encoded), just encode them all - if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path)) { - path = encodeURI(decodeURI(path)) - } + upperFirst: function upperFirst(string) { + return string[0].toUpperCase() + string.substr(1); + }, - var queryIx = path.indexOf('?'), - query = null + lowerFirst: function lowerFirst(string) { + return string[0].toLowerCase() + string.substr(1); + } + }, - if (queryIx >= 0) { - query = querystring.parse(path.slice(queryIx + 1)) - path = path.slice(0, queryIx) - } + ini: { + parse: function string(ini) { + var currentSection, map = {}; + util.arrayEach(ini.split(/\r?\n/), function(line) { + line = line.split(/(^|\s)[;#]/)[0].trim(); // remove comments and trim + var isSection = line[0] === '[' && line[line.length - 1] === ']'; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (currentSection === '__proto__' || currentSection.split(/\s/)[1] === '__proto__') { + throw util.error( + new Error('Cannot load profile name \'' + currentSection + '\' from shared ini file.') + ); + } + } else if (currentSection) { + var indexOfEqualsSign = line.indexOf('='); + var start = 0; + var end = line.length - 1; + var isAssignment = + indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - this.parsedPath = { - path: path, - query: query, - } -} + if (isAssignment) { + var name = line.substring(0, indexOfEqualsSign).trim(); + var value = line.substring(indexOfEqualsSign + 1).trim(); -RequestSigner.prototype.formatPath = function() { - var path = this.parsedPath.path, - query = this.parsedPath.query + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } + }); - if (!query) return path + return map; + } + }, - // Services don't support empty query string keys - if (query[''] != null) delete query[''] + fn: { + noop: function() {}, + callback: function (err) { if (err) throw err; }, - return path + '?' + encodeRfc3986(querystring.stringify(query)) -} + /** + * Turn a synchronous function into as "async" function by making it call + * a callback. The underlying function is called with all but the last argument, + * which is treated as the callback. The callback is passed passed a first argument + * of null on success to mimick standard node callbacks. + */ + makeAsync: function makeAsync(fn, expectedArgs) { + if (expectedArgs && expectedArgs <= fn.length) { + return fn; + } -aws4.RequestSigner = RequestSigner + return function() { + var args = Array.prototype.slice.call(arguments, 0); + var callback = args.pop(); + var result = fn.apply(null, args); + callback(result); + }; + } + }, -aws4.sign = function(request, credentials) { - return new RequestSigner(request, credentials).sign() -} + /** + * Date and time utility functions. + */ + date: { + /** + * @return [Date] the current JavaScript date object. Since all + * AWS services rely on this date object, you can override + * this function to provide a special time value to AWS service + * requests. + */ + getDate: function getDate() { + if (!AWS) AWS = __nccwpck_require__(53832); + if (AWS.config.systemClockOffset) { // use offset when non-zero + return new Date(new Date().getTime() + AWS.config.systemClockOffset); + } else { + return new Date(); + } + }, -/***/ }), + /** + * @return [String] the date in ISO-8601 format + */ + iso8601: function iso8601(date) { + if (date === undefined) { date = util.date.getDate(); } + return date.toISOString().replace(/\.\d{3}Z$/, 'Z'); + }, -/***/ 35359: -/***/ ((module) => { + /** + * @return [String] the date in RFC 822 format + */ + rfc822: function rfc822(date) { + if (date === undefined) { date = util.date.getDate(); } + return date.toUTCString(); + }, -module.exports = function(size) { - return new LruCache(size) -} + /** + * @return [Integer] the UNIX timestamp value for the current time + */ + unixTimestamp: function unixTimestamp(date) { + if (date === undefined) { date = util.date.getDate(); } + return date.getTime() / 1000; + }, -function LruCache(size) { - this.capacity = size | 0 - this.map = Object.create(null) - this.list = new DoublyLinkedList() -} + /** + * @param [String,number,Date] date + * @return [Date] + */ + from: function format(date) { + if (typeof date === 'number') { + return new Date(date * 1000); // unix timestamp + } else { + return new Date(date); + } + }, -LruCache.prototype.get = function(key) { - var node = this.map[key] - if (node == null) return undefined - this.used(node) - return node.val -} + /** + * Given a Date or date-like value, this function formats the + * date into a string of the requested value. + * @param [String,number,Date] date + * @param [String] formatter Valid formats are: + # * 'iso8601' + # * 'rfc822' + # * 'unixTimestamp' + * @return [String] + */ + format: function format(date, formatter) { + if (!formatter) formatter = 'iso8601'; + return util.date[formatter](util.date.from(date)); + }, -LruCache.prototype.set = function(key, val) { - var node = this.map[key] - if (node != null) { - node.val = val - } else { - if (!this.capacity) this.prune() - if (!this.capacity) return false - node = new DoublyLinkedNode(key, val) - this.map[key] = node - this.capacity-- - } - this.used(node) - return true -} + parseTimestamp: function parseTimestamp(value) { + if (typeof value === 'number') { // unix timestamp (number) + return new Date(value * 1000); + } else if (value.match(/^\d+$/)) { // unix timestamp + return new Date(value * 1000); + } else if (value.match(/^\d{4}/)) { // iso8601 + return new Date(value); + } else if (value.match(/^\w{3},/)) { // rfc822 + return new Date(value); + } else { + throw util.error( + new Error('unhandled timestamp format: ' + value), + {code: 'TimestampParserError'}); + } + } -LruCache.prototype.used = function(node) { - this.list.moveToFront(node) -} + }, -LruCache.prototype.prune = function() { - var node = this.list.pop() - if (node != null) { - delete this.map[node.key] - this.capacity++ - } -} + crypto: { + crc32Table: [ + 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, + 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, + 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, + 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, + 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, + 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 0x14015C4F, 0x63066CD9, + 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4, + 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, + 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, + 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC, 0x51DE003A, + 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, + 0xB8BDA50F, 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, + 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, 0x76DC4190, + 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, + 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, + 0xE10E9818, 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, + 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 0x6C0695ED, + 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, + 0x8BBEB8EA, 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, + 0xFBD44C65, 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, + 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A, + 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, + 0xAA0A4C5F, 0xDD0D7CC9, 0x5005713C, 0x270241AA, 0xBE0B1010, + 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, + 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, + 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, + 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, + 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, + 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, + 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, + 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, + 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, + 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, + 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 0xD80D2BDA, 0xAF0A1B4C, + 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, + 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, + 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, 0xC5BA3BBE, + 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, 0xB5D0CF31, + 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, + 0x026D930A, 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, + 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 0x92D28E9B, + 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242, + 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, + 0x18B74777, 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, + 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, 0xA00AE278, + 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, + 0x4969474D, 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, + 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, + 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, + 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, + 0x5D681B02, 0x2A6F2B94, 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, + 0x2D02EF8D], + crc32: function crc32(data) { + var tbl = util.crypto.crc32Table; + var crc = 0 ^ -1; -function DoublyLinkedList() { - this.firstNode = null - this.lastNode = null -} + if (typeof data === 'string') { + data = util.buffer.toBuffer(data); + } -DoublyLinkedList.prototype.moveToFront = function(node) { - if (this.firstNode == node) return + for (var i = 0; i < data.length; i++) { + var code = data.readUInt8(i); + crc = (crc >>> 8) ^ tbl[(crc ^ code) & 0xFF]; + } + return (crc ^ -1) >>> 0; + }, - this.remove(node) + hmac: function hmac(key, string, digest, fn) { + if (!digest) digest = 'binary'; + if (digest === 'buffer') { digest = undefined; } + if (!fn) fn = 'sha256'; + if (typeof string === 'string') string = util.buffer.toBuffer(string); + return util.crypto.lib.createHmac(fn, key).update(string).digest(digest); + }, - if (this.firstNode == null) { - this.firstNode = node - this.lastNode = node - node.prev = null - node.next = null - } else { - node.prev = null - node.next = this.firstNode - node.next.prev = node - this.firstNode = node - } -} + md5: function md5(data, digest, callback) { + return util.crypto.hash('md5', data, digest, callback); + }, -DoublyLinkedList.prototype.pop = function() { - var lastNode = this.lastNode - if (lastNode != null) { - this.remove(lastNode) - } - return lastNode -} + sha256: function sha256(data, digest, callback) { + return util.crypto.hash('sha256', data, digest, callback); + }, -DoublyLinkedList.prototype.remove = function(node) { - if (this.firstNode == node) { - this.firstNode = node.next - } else if (node.prev != null) { - node.prev.next = node.next - } - if (this.lastNode == node) { - this.lastNode = node.prev - } else if (node.next != null) { - node.next.prev = node.prev - } -} + hash: function(algorithm, data, digest, callback) { + var hash = util.crypto.createHash(algorithm); + if (!digest) { digest = 'binary'; } + if (digest === 'buffer') { digest = undefined; } + if (typeof data === 'string') data = util.buffer.toBuffer(data); + var sliceFn = util.arraySliceFn(data); + var isBuffer = util.Buffer.isBuffer(data); + //Identifying objects with an ArrayBuffer as buffers + if (util.isBrowser() && typeof ArrayBuffer !== 'undefined' && data && data.buffer instanceof ArrayBuffer) isBuffer = true; + if (callback && typeof data === 'object' && + typeof data.on === 'function' && !isBuffer) { + data.on('data', function(chunk) { hash.update(chunk); }); + data.on('error', function(err) { callback(err); }); + data.on('end', function() { callback(null, hash.digest(digest)); }); + } else if (callback && sliceFn && !isBuffer && + typeof FileReader !== 'undefined') { + // this might be a File/Blob + var index = 0, size = 1024 * 512; + var reader = new FileReader(); + reader.onerror = function() { + callback(new Error('Failed to read data.')); + }; + reader.onload = function() { + var buf = new util.Buffer(new Uint8Array(reader.result)); + hash.update(buf); + index += buf.length; + reader._continueReading(); + }; + reader._continueReading = function() { + if (index >= data.size) { + callback(null, hash.digest(digest)); + return; + } -function DoublyLinkedNode(key, val) { - this.key = key - this.val = val - this.prev = null - this.next = null -} + var back = index + size; + if (back > data.size) back = data.size; + reader.readAsArrayBuffer(sliceFn.call(data, index, back)); + }; + reader._continueReading(); + } else { + if (util.isBrowser() && typeof data === 'object' && !isBuffer) { + data = new util.Buffer(new Uint8Array(data)); + } + var out = hash.update(data).digest(digest); + if (callback) callback(null, out); + return out; + } + }, -/***/ }), + toHex: function toHex(data) { + var out = []; + for (var i = 0; i < data.length; i++) { + out.push(('0' + data.charCodeAt(i).toString(16)).substr(-2, 2)); + } + return out.join(''); + }, -/***/ 46605: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + createHash: function createHash(algorithm) { + return util.crypto.lib.createHash(algorithm); + } -module.exports = __nccwpck_require__(23384); + }, -/***/ }), + /** @!ignore */ -/***/ 12787: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /* Abort constant */ + abort: {}, -"use strict"; + each: function each(object, iterFunction) { + for (var key in object) { + if (Object.prototype.hasOwnProperty.call(object, key)) { + var ret = iterFunction.call(this, key, object[key]); + if (ret === util.abort) break; + } + } + }, + arrayEach: function arrayEach(array, iterFunction) { + for (var idx in array) { + if (Object.prototype.hasOwnProperty.call(array, idx)) { + var ret = iterFunction.call(this, array[idx], parseInt(idx, 10)); + if (ret === util.abort) break; + } + } + }, -var utils = __nccwpck_require__(6218); -var settle = __nccwpck_require__(57084); -var buildFullPath = __nccwpck_require__(69263); -var buildURL = __nccwpck_require__(9185); -var http = __nccwpck_require__(13685); -var https = __nccwpck_require__(95687); -var httpFollow = (__nccwpck_require__(24214).http); -var httpsFollow = (__nccwpck_require__(24214).https); -var url = __nccwpck_require__(57310); -var zlib = __nccwpck_require__(59796); -var pkg = __nccwpck_require__(88593); -var createError = __nccwpck_require__(45414); -var enhanceError = __nccwpck_require__(35299); + update: function update(obj1, obj2) { + util.each(obj2, function iterator(key, item) { + obj1[key] = item; + }); + return obj1; + }, -var isHttps = /https:?/; + merge: function merge(obj1, obj2) { + return util.update(util.copy(obj1), obj2); + }, -/** - * - * @param {http.ClientRequestArgs} options - * @param {AxiosProxyConfig} proxy - * @param {string} location - */ -function setProxy(options, proxy, location) { - options.hostname = proxy.host; - options.host = proxy.host; - options.port = proxy.port; - options.path = location; + copy: function copy(object) { + if (object === null || object === undefined) return object; + var dupe = {}; + // jshint forin:false + for (var key in object) { + dupe[key] = object[key]; + } + return dupe; + }, - // Basic proxy authorization - if (proxy.auth) { - var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64'); - options.headers['Proxy-Authorization'] = 'Basic ' + base64; - } + isEmpty: function isEmpty(obj) { + for (var prop in obj) { + if (Object.prototype.hasOwnProperty.call(obj, prop)) { + return false; + } + } + return true; + }, - // If a proxy is used, any redirects must also pass through the proxy - options.beforeRedirect = function beforeRedirect(redirection) { - redirection.headers.host = redirection.host; - setProxy(redirection, proxy, redirection.href); - }; -} + arraySliceFn: function arraySliceFn(obj) { + var fn = obj.slice || obj.webkitSlice || obj.mozSlice; + return typeof fn === 'function' ? fn : null; + }, -/*eslint consistent-return:0*/ -module.exports = function httpAdapter(config) { - return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) { - var resolve = function resolve(value) { - resolvePromise(value); - }; - var reject = function reject(value) { - rejectPromise(value); - }; - var data = config.data; - var headers = config.headers; + isType: function isType(obj, type) { + // handle cross-"frame" objects + if (typeof type === 'function') type = util.typeName(type); + return Object.prototype.toString.call(obj) === '[object ' + type + ']'; + }, - // Set User-Agent (required by some servers) - // See https://github.com/axios/axios/issues/69 - if ('User-Agent' in headers || 'user-agent' in headers) { - // User-Agent is specified; handle case where no UA header is desired - if (!headers['User-Agent'] && !headers['user-agent']) { - delete headers['User-Agent']; - delete headers['user-agent']; - } - // Otherwise, use specified value - } else { - // Only set header if it hasn't been set in config - headers['User-Agent'] = 'axios/' + pkg.version; - } + typeName: function typeName(type) { + if (Object.prototype.hasOwnProperty.call(type, 'name')) return type.name; + var str = type.toString(); + var match = str.match(/^\s*function (.+)\(/); + return match ? match[1] : str; + }, - if (data && !utils.isStream(data)) { - if (Buffer.isBuffer(data)) { - // Nothing to do... - } else if (utils.isArrayBuffer(data)) { - data = Buffer.from(new Uint8Array(data)); - } else if (utils.isString(data)) { - data = Buffer.from(data, 'utf-8'); - } else { - return reject(createError( - 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', - config - )); + error: function error(err, options) { + var originalError = null; + if (typeof err.message === 'string' && err.message !== '') { + if (typeof options === 'string' || (options && options.message)) { + originalError = util.copy(err); + originalError.message = err.message; } + } + err.message = err.message || null; - // Add Content-Length header if data exists - headers['Content-Length'] = data.length; + if (typeof options === 'string') { + err.message = options; + } else if (typeof options === 'object' && options !== null) { + util.update(err, options); + if (options.message) + err.message = options.message; + if (options.code || options.name) + err.code = options.code || options.name; + if (options.stack) + err.stack = options.stack; } - // HTTP basic authentication - var auth = undefined; - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password || ''; - auth = username + ':' + password; + if (typeof Object.defineProperty === 'function') { + Object.defineProperty(err, 'name', {writable: true, enumerable: false}); + Object.defineProperty(err, 'message', {enumerable: true}); } - // Parse url - var fullPath = buildFullPath(config.baseURL, config.url); - var parsed = url.parse(fullPath); - var protocol = parsed.protocol || 'http:'; + err.name = String(options && options.name || err.name || err.code || 'Error'); + err.time = new Date(); - if (!auth && parsed.auth) { - var urlAuth = parsed.auth.split(':'); - var urlUsername = urlAuth[0] || ''; - var urlPassword = urlAuth[1] || ''; - auth = urlUsername + ':' + urlPassword; + if (originalError) { + err.originalError = originalError; } - if (auth) { - delete headers.Authorization; - } - var isHttpsRequest = isHttps.test(protocol); - var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; + for (var key in options || {}) { + if (key[0] === '[' && key[key.length - 1] === ']') { + key = key.slice(1, -1); + if (key === 'code' || key === 'message') { + continue; + } + err['[' + key + ']'] = 'See error.' + key + ' for details.'; + Object.defineProperty(err, key, { + value: err[key] || (options && options[key]) || (originalError && originalError[key]), + enumerable: false, + writable: true + }); + } + } - var options = { - path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''), - method: config.method.toUpperCase(), - headers: headers, - agent: agent, - agents: { http: config.httpAgent, https: config.httpsAgent }, - auth: auth - }; + return err; + }, - if (config.socketPath) { - options.socketPath = config.socketPath; + /** + * @api private + */ + inherit: function inherit(klass, features) { + var newObject = null; + if (features === undefined) { + features = klass; + klass = Object; + newObject = {}; } else { - options.hostname = parsed.hostname; - options.port = parsed.port; - } - - var proxy = config.proxy; - if (!proxy && proxy !== false) { - var proxyEnv = protocol.slice(0, -1) + '_proxy'; - var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()]; - if (proxyUrl) { - var parsedProxyUrl = url.parse(proxyUrl); - var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY; - var shouldProxy = true; - - if (noProxyEnv) { - var noProxy = noProxyEnv.split(',').map(function trim(s) { - return s.trim(); - }); - - shouldProxy = !noProxy.some(function proxyMatch(proxyElement) { - if (!proxyElement) { - return false; - } - if (proxyElement === '*') { - return true; - } - if (proxyElement[0] === '.' && - parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) { - return true; - } + var ctor = function ConstructorWrapper() {}; + ctor.prototype = klass.prototype; + newObject = new ctor(); + } - return parsed.hostname === proxyElement; - }); + // constructor not supplied, create pass-through ctor + if (features.constructor === Object) { + features.constructor = function() { + if (klass !== Object) { + return klass.apply(this, arguments); } + }; + } - if (shouldProxy) { - proxy = { - host: parsedProxyUrl.hostname, - port: parsedProxyUrl.port, - protocol: parsedProxyUrl.protocol - }; + features.constructor.prototype = newObject; + util.update(features.constructor.prototype, features); + features.constructor.__super__ = klass; + return features.constructor; + }, - if (parsedProxyUrl.auth) { - var proxyUrlAuth = parsedProxyUrl.auth.split(':'); - proxy.auth = { - username: proxyUrlAuth[0], - password: proxyUrlAuth[1] - }; - } + /** + * @api private + */ + mixin: function mixin() { + var klass = arguments[0]; + for (var i = 1; i < arguments.length; i++) { + // jshint forin:false + for (var prop in arguments[i].prototype) { + var fn = arguments[i].prototype[prop]; + if (prop !== 'constructor') { + klass.prototype[prop] = fn; } } } + return klass; + }, - if (proxy) { - options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : ''); - setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path); - } + /** + * @api private + */ + hideProperties: function hideProperties(obj, props) { + if (typeof Object.defineProperty !== 'function') return; - var transport; - var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true); - if (config.transport) { - transport = config.transport; - } else if (config.maxRedirects === 0) { - transport = isHttpsProxy ? https : http; - } else { - if (config.maxRedirects) { - options.maxRedirects = config.maxRedirects; - } - transport = isHttpsProxy ? httpsFollow : httpFollow; - } + util.arrayEach(props, function (key) { + Object.defineProperty(obj, key, { + enumerable: false, writable: true, configurable: true }); + }); + }, - if (config.maxBodyLength > -1) { - options.maxBodyLength = config.maxBodyLength; + /** + * @api private + */ + property: function property(obj, name, value, enumerable, isValue) { + var opts = { + configurable: true, + enumerable: enumerable !== undefined ? enumerable : true + }; + if (typeof value === 'function' && !isValue) { + opts.get = value; + } + else { + opts.value = value; opts.writable = true; } - // Create the request - var req = transport.request(options, function handleResponse(res) { - if (req.aborted) return; - - // uncompress the response body transparently if required - var stream = res; - - // return the last request in case of redirects - var lastRequest = res.req || req; - + Object.defineProperty(obj, name, opts); + }, - // if no content, is HEAD request or decompress disabled we should not decompress - if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) { - switch (res.headers['content-encoding']) { - /*eslint default-case:0*/ - case 'gzip': - case 'compress': - case 'deflate': - // add the unzipper to the body stream processing pipeline - stream = stream.pipe(zlib.createUnzip()); + /** + * @api private + */ + memoizedProperty: function memoizedProperty(obj, name, get, enumerable) { + var cachedValue = null; - // remove the content-encoding in order to not confuse downstream operations - delete res.headers['content-encoding']; - break; - } + // build enumerable attribute for each value with lazy accessor. + util.property(obj, name, function() { + if (cachedValue === null) { + cachedValue = get(); } + return cachedValue; + }, enumerable); + }, - var response = { - status: res.statusCode, - statusText: res.statusMessage, - headers: res.headers, - config: config, - request: lastRequest - }; - - if (config.responseType === 'stream') { - response.data = stream; - settle(resolve, reject, response); - } else { - var responseBuffer = []; - var totalResponseBytes = 0; - stream.on('data', function handleStreamData(chunk) { - responseBuffer.push(chunk); - totalResponseBytes += chunk.length; - - // make sure the content length is not over the maxContentLength if specified - if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { - stream.destroy(); - reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded', - config, null, lastRequest)); - } - }); - - stream.on('error', function handleStreamError(err) { - if (req.aborted) return; - reject(enhanceError(err, config, null, lastRequest)); + /** + * TODO Remove in major version revision + * This backfill populates response data without the + * top-level payload name. + * + * @api private + */ + hoistPayloadMember: function hoistPayloadMember(resp) { + var req = resp.request; + var operationName = req.operation; + var operation = req.service.api.operations[operationName]; + var output = operation.output; + if (output.payload && !operation.hasEventOutput) { + var payloadMember = output.members[output.payload]; + var responsePayload = resp.data[output.payload]; + if (payloadMember.type === 'structure') { + util.each(responsePayload, function(key, value) { + util.property(resp.data, key, value, false); }); + } + } + }, - stream.on('end', function handleStreamEnd() { - var responseData = Buffer.concat(responseBuffer); - if (config.responseType !== 'arraybuffer') { - responseData = responseData.toString(config.responseEncoding); - if (!config.responseEncoding || config.responseEncoding === 'utf8') { - responseData = utils.stripBOM(responseData); - } + /** + * Compute SHA-256 checksums of streams + * + * @api private + */ + computeSha256: function computeSha256(body, done) { + if (util.isNode()) { + var Stream = util.stream.Stream; + var fs = __nccwpck_require__(79896); + if (typeof Stream === 'function' && body instanceof Stream) { + if (typeof body.path === 'string') { // assume file object + var settings = {}; + if (typeof body.start === 'number') { + settings.start = body.start; } - - response.data = responseData; - settle(resolve, reject, response); - }); + if (typeof body.end === 'number') { + settings.end = body.end; + } + body = fs.createReadStream(body.path, settings); + } else { // TODO support other stream types + return done(new Error('Non-file stream objects are ' + + 'not supported with SigV4')); + } } - }); + } - // Handle errors - req.on('error', function handleRequestError(err) { - if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return; - reject(enhanceError(err, config, null, req)); + util.crypto.sha256(body, 'hex', function(err, sha) { + if (err) done(err); + else done(null, sha); }); + }, - // Handle request timeout - if (config.timeout) { - // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. - var timeout = parseInt(config.timeout, 10); - - if (isNaN(timeout)) { - reject(createError( - 'error trying to parse `config.timeout` to int', - config, - 'ERR_PARSE_TIMEOUT', - req - )); - - return; - } - - // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system. - // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET. - // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up. - // And then these socket which be hang up will devoring CPU little by little. - // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect. - req.setTimeout(timeout, function handleRequestTimeout() { - req.abort(); - reject(createError( - 'timeout of ' + timeout + 'ms exceeded', - config, - config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED', - req - )); - }); + /** + * @api private + */ + isClockSkewed: function isClockSkewed(serverTime) { + if (serverTime) { + util.property(AWS.config, 'isClockSkewed', + Math.abs(new Date().getTime() - serverTime) >= 300000, false); + return AWS.config.isClockSkewed; } + }, - if (config.cancelToken) { - // Handle cancellation - config.cancelToken.promise.then(function onCanceled(cancel) { - if (req.aborted) return; + applyClockOffset: function applyClockOffset(serverTime) { + if (serverTime) + AWS.config.systemClockOffset = serverTime - new Date().getTime(); + }, - req.abort(); - reject(cancel); - }); - } + /** + * @api private + */ + extractRequestId: function extractRequestId(resp) { + var requestId = resp.httpResponse.headers['x-amz-request-id'] || + resp.httpResponse.headers['x-amzn-requestid']; - // Send the request - if (utils.isStream(data)) { - data.on('error', function handleStreamError(err) { - reject(enhanceError(err, config, null, req)); - }).pipe(req); - } else { - req.end(data); + if (!requestId && resp.data && resp.data.ResponseMetadata) { + requestId = resp.data.ResponseMetadata.RequestId; } - }); -}; - - -/***/ }), - -/***/ 35005: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -var utils = __nccwpck_require__(6218); -var settle = __nccwpck_require__(57084); -var cookies = __nccwpck_require__(44914); -var buildURL = __nccwpck_require__(9185); -var buildFullPath = __nccwpck_require__(69263); -var parseHeaders = __nccwpck_require__(88216); -var isURLSameOrigin = __nccwpck_require__(86281); -var createError = __nccwpck_require__(45414); - -module.exports = function xhrAdapter(config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - var requestData = config.data; - var requestHeaders = config.headers; - var responseType = config.responseType; - - if (utils.isFormData(requestData)) { - delete requestHeaders['Content-Type']; // Let the browser set it + if (requestId) { + resp.requestId = requestId; } - var request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); + if (resp.error) { + resp.error.requestId = requestId; } + }, - var fullPath = buildFullPath(config.baseURL, config.url); - request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - function onloadend() { - if (!request) { - return; - } - // Prepare the response - var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; - var responseData = !responseType || responseType === 'text' || responseType === 'json' ? - request.responseText : request.response; - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; - - settle(resolve, reject, response); - - // Clean up request - request = null; + /** + * @api private + */ + addPromises: function addPromises(constructors, PromiseDependency) { + var deletePromises = false; + if (PromiseDependency === undefined && AWS && AWS.config) { + PromiseDependency = AWS.config.getPromisesDependency(); } + if (PromiseDependency === undefined && typeof Promise !== 'undefined') { + PromiseDependency = Promise; + } + if (typeof PromiseDependency !== 'function') deletePromises = true; + if (!Array.isArray(constructors)) constructors = [constructors]; - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; + for (var ind = 0; ind < constructors.length; ind++) { + var constructor = constructors[ind]; + if (deletePromises) { + if (constructor.deletePromisesFromClass) { + constructor.deletePromisesFromClass(); } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; + } else if (constructor.addPromisesToClass) { + constructor.addPromisesToClass(PromiseDependency); + } } + }, - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } + /** + * @api private + * Return a function that will return a promise whose fate is decided by the + * callback behavior of the given method with `methodName`. The method to be + * promisified should conform to node.js convention of accepting a callback as + * last argument and calling that callback with error as the first argument + * and success value on the second argument. + */ + promisifyMethod: function promisifyMethod(methodName, PromiseDependency) { + return function promise() { + var self = this; + var args = Array.prototype.slice.call(arguments); + return new PromiseDependency(function(resolve, reject) { + args.push(function(err, data) { + if (err) { + reject(err); + } else { + resolve(data); + } + }); + self[methodName].apply(self, args); + }); + }; + }, - reject(createError('Request aborted', config, 'ECONNABORTED', request)); + /** + * @api private + */ + isDualstackAvailable: function isDualstackAvailable(service) { + if (!service) return false; + var metadata = __nccwpck_require__(15087); + if (typeof service !== 'string') service = service.serviceIdentifier; + if (typeof service !== 'string' || !metadata.hasOwnProperty(service)) return false; + return !!metadata[service].dualstackAvailable; + }, - // Clean up request - request = null; - }; + /** + * @api private + */ + calculateRetryDelay: function calculateRetryDelay(retryCount, retryDelayOptions, err) { + if (!retryDelayOptions) retryDelayOptions = {}; + var customBackoff = retryDelayOptions.customBackoff || null; + if (typeof customBackoff === 'function') { + return customBackoff(retryCount, err); + } + var base = typeof retryDelayOptions.base === 'number' ? retryDelayOptions.base : 100; + var delay = Math.random() * (Math.pow(2, retryCount) * base); + return delay; + }, - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(createError('Network Error', config, null, request)); + /** + * @api private + */ + handleRequestWithRetries: function handleRequestWithRetries(httpRequest, options, cb) { + if (!options) options = {}; + var http = AWS.HttpClient.getInstance(); + var httpOptions = options.httpOptions || {}; + var retryCount = 0; - // Clean up request - request = null; - }; + var errCallback = function(err) { + var maxRetries = options.maxRetries || 0; + if (err && err.code === 'TimeoutError') err.retryable = true; - // Handle timeout - request.ontimeout = function handleTimeout() { - var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; + // Call `calculateRetryDelay()` only when relevant, see #3401 + if (err && err.retryable && retryCount < maxRetries) { + var delay = util.calculateRetryDelay(retryCount, options.retryDelayOptions, err); + if (delay >= 0) { + retryCount++; + setTimeout(sendRequest, delay + (err.retryAfter || 0)); + return; + } } - reject(createError( - timeoutErrorMessage, - config, - config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED', - request)); - - // Clean up request - request = null; + cb(err); }; - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if (utils.isStandardBrowserEnv()) { - // Add xsrf header - var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? - cookies.read(config.xsrfCookieName) : - undefined; + var sendRequest = function() { + var data = ''; + http.handleRequest(httpRequest, httpOptions, function(httpResponse) { + httpResponse.on('data', function(chunk) { data += chunk.toString(); }); + httpResponse.on('end', function() { + var statusCode = httpResponse.statusCode; + if (statusCode < 300) { + cb(null, data); + } else { + var retryAfter = parseInt(httpResponse.headers['retry-after'], 10) * 1000 || 0; + var err = util.error(new Error(), + { + statusCode: statusCode, + retryable: statusCode >= 500 || statusCode === 429 + } + ); + if (retryAfter && err.retryable) err.retryAfter = retryAfter; + errCallback(err); + } + }); + }, errCallback); + }; - if (xsrfValue) { - requestHeaders[config.xsrfHeaderName] = xsrfValue; - } - } + AWS.util.defer(sendRequest); + }, - // Add headers to the request - if ('setRequestHeader' in request) { - utils.forEach(requestHeaders, function setRequestHeader(val, key) { - if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { - // Remove Content-Type if data is undefined - delete requestHeaders[key]; - } else { - // Otherwise add header to the request - request.setRequestHeader(key, val); - } - }); + /** + * @api private + */ + uuid: { + v4: function uuidV4() { + return (__nccwpck_require__(10925).v4)(); } + }, - // Add withCredentials to request if needed - if (!utils.isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; + /** + * @api private + */ + convertPayloadToString: function convertPayloadToString(resp) { + var req = resp.request; + var operation = req.operation; + var rules = req.service.api.operations[operation].output || {}; + if (rules.payload && resp.data[rules.payload]) { + resp.data[rules.payload] = resp.data[rules.payload].toString(); } + }, - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; + /** + * @api private + */ + defer: function defer(callback) { + if (typeof process === 'object' && typeof process.nextTick === 'function') { + process.nextTick(callback); + } else if (typeof setImmediate === 'function') { + setImmediate(callback); + } else { + setTimeout(callback, 0); } + }, - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', config.onDownloadProgress); - } + /** + * @api private + */ + getRequestPayloadShape: function getRequestPayloadShape(req) { + var operations = req.service.api.operations; + if (!operations) return undefined; + var operation = (operations || {})[req.operation]; + if (!operation || !operation.input || !operation.input.payload) return undefined; + return operation.input.members[operation.input.payload]; + }, - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', config.onUploadProgress); + getProfilesFromSharedConfig: function getProfilesFromSharedConfig(iniLoader, filename) { + var profiles = {}; + var profilesFromConfig = {}; + if (process.env[util.configOptInEnv]) { + var profilesFromConfig = iniLoader.loadFrom({ + isConfig: true, + filename: process.env[util.sharedConfigFileEnv] + }); } - - if (config.cancelToken) { - // Handle cancellation - config.cancelToken.promise.then(function onCanceled(cancel) { - if (!request) { - return; - } - - request.abort(); - reject(cancel); - // Clean up request - request = null; + var profilesFromCreds= {}; + try { + var profilesFromCreds = iniLoader.loadFrom({ + filename: filename || + (process.env[util.configOptInEnv] && process.env[util.sharedCredentialsFileEnv]) }); + } catch (error) { + // if using config, assume it is fully descriptive without a credentials file: + if (!process.env[util.configOptInEnv]) throw error; } - - if (!requestData) { - requestData = null; + for (var i = 0, profileNames = Object.keys(profilesFromConfig); i < profileNames.length; i++) { + profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromConfig[profileNames[i]]); } + for (var i = 0, profileNames = Object.keys(profilesFromCreds); i < profileNames.length; i++) { + profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromCreds[profileNames[i]]); + } + return profiles; - // Send the request - request.send(requestData); - }); -}; + /** + * Roughly the semantics of `Object.assign(target, source)` + */ + function objectAssign(target, source) { + for (var i = 0, keys = Object.keys(source); i < keys.length; i++) { + target[keys[i]] = source[keys[i]]; + } + return target; + } + }, + /** + * @api private + */ + ARN: { + validate: function validateARN(str) { + return str && str.indexOf('arn:') === 0 && str.split(':').length >= 6; + }, + parse: function parseARN(arn) { + var matched = arn.split(':'); + return { + partition: matched[1], + service: matched[2], + region: matched[3], + accountId: matched[4], + resource: matched.slice(5).join(':') + }; + }, + build: function buildARN(arnObject) { + if ( + arnObject.service === undefined || + arnObject.region === undefined || + arnObject.accountId === undefined || + arnObject.resource === undefined + ) throw util.error(new Error('Input ARN object is invalid')); + return 'arn:'+ (arnObject.partition || 'aws') + ':' + arnObject.service + + ':' + arnObject.region + ':' + arnObject.accountId + ':' + arnObject.resource; + } + }, -/***/ }), + /** + * @api private + */ + defaultProfile: 'default', -/***/ 23384: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** + * @api private + */ + configOptInEnv: 'AWS_SDK_LOAD_CONFIG', -"use strict"; + /** + * @api private + */ + sharedCredentialsFileEnv: 'AWS_SHARED_CREDENTIALS_FILE', + /** + * @api private + */ + sharedConfigFileEnv: 'AWS_CONFIG_FILE', -var utils = __nccwpck_require__(6218); -var bind = __nccwpck_require__(7759); -var Axios = __nccwpck_require__(13737); -var mergeConfig = __nccwpck_require__(13776); -var defaults = __nccwpck_require__(44589); + /** + * @api private + */ + imdsDisabledEnv: 'AWS_EC2_METADATA_DISABLED' +}; /** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * @return {Axios} A new instance of Axios + * @api private */ -function createInstance(defaultConfig) { - var context = new Axios(defaultConfig); - var instance = bind(Axios.prototype.request, context); - - // Copy axios.prototype to instance - utils.extend(instance, Axios.prototype, context); - - // Copy context to instance - utils.extend(instance, context); +module.exports = util; - return instance; -} -// Create the default instance to be exported -var axios = createInstance(defaults); +/***/ }), -// Expose Axios class to allow class inheritance -axios.Axios = Axios; +/***/ 15898: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// Factory for creating new instances -axios.create = function create(instanceConfig) { - return createInstance(mergeConfig(axios.defaults, instanceConfig)); -}; +var util = __nccwpck_require__(30879); +var XmlNode = (__nccwpck_require__(61185).XmlNode); +var XmlText = (__nccwpck_require__(50146).XmlText); -// Expose Cancel & CancelToken -axios.Cancel = __nccwpck_require__(12792); -axios.CancelToken = __nccwpck_require__(40021); -axios.isCancel = __nccwpck_require__(12501); +function XmlBuilder() { } -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); +XmlBuilder.prototype.toXML = function(params, shape, rootElement, noEmpty) { + var xml = new XmlNode(rootElement); + applyNamespaces(xml, shape, true); + serialize(xml, params, shape); + return xml.children.length > 0 || noEmpty ? xml.toString() : ''; }; -axios.spread = __nccwpck_require__(43861); - -// Expose isAxiosError -axios.isAxiosError = __nccwpck_require__(93932); - -module.exports = axios; - -// Allow use of default import syntax in TypeScript -module.exports["default"] = axios; - - -/***/ }), - -/***/ 12792: -/***/ ((module) => { -"use strict"; +function serialize(xml, value, shape) { + switch (shape.type) { + case 'structure': return serializeStructure(xml, value, shape); + case 'map': return serializeMap(xml, value, shape); + case 'list': return serializeList(xml, value, shape); + default: return serializeScalar(xml, value, shape); + } +} +function serializeStructure(xml, params, shape) { + util.arrayEach(shape.memberNames, function(memberName) { + var memberShape = shape.members[memberName]; + if (memberShape.location !== 'body') return; -/** - * A `Cancel` is an object that is thrown when an operation is canceled. - * - * @class - * @param {string=} message The message. - */ -function Cancel(message) { - this.message = message; + var value = params[memberName]; + var name = memberShape.name; + if (value !== undefined && value !== null) { + if (memberShape.isXmlAttribute) { + xml.addAttribute(name, value); + } else if (memberShape.flattened) { + serialize(xml, value, memberShape); + } else { + var element = new XmlNode(name); + xml.addChildNode(element); + applyNamespaces(element, memberShape); + serialize(element, value, memberShape); + } + } + }); } -Cancel.prototype.toString = function toString() { - return 'Cancel' + (this.message ? ': ' + this.message : ''); -}; - -Cancel.prototype.__CANCEL__ = true; +function serializeMap(xml, map, shape) { + var xmlKey = shape.key.name || 'key'; + var xmlValue = shape.value.name || 'value'; -module.exports = Cancel; + util.each(map, function(key, value) { + var entry = new XmlNode(shape.flattened ? shape.name : 'entry'); + xml.addChildNode(entry); + var entryKey = new XmlNode(xmlKey); + var entryValue = new XmlNode(xmlValue); + entry.addChildNode(entryKey); + entry.addChildNode(entryValue); -/***/ }), + serialize(entryKey, key, shape.key); + serialize(entryValue, value, shape.value); + }); +} -/***/ 40021: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function serializeList(xml, list, shape) { + if (shape.flattened) { + util.arrayEach(list, function(value) { + var name = shape.member.name || shape.name; + var element = new XmlNode(name); + xml.addChildNode(element); + serialize(element, value, shape.member); + }); + } else { + util.arrayEach(list, function(value) { + var name = shape.member.name || 'member'; + var element = new XmlNode(name); + xml.addChildNode(element); + serialize(element, value, shape.member); + }); + } +} -"use strict"; +function serializeScalar(xml, value, shape) { + xml.addChildNode( + new XmlText(shape.toWireFormat(value)) + ); +} +function applyNamespaces(xml, shape, isRoot) { + var uri, prefix = 'xmlns'; + if (shape.xmlNamespaceUri) { + uri = shape.xmlNamespaceUri; + if (shape.xmlNamespacePrefix) prefix += ':' + shape.xmlNamespacePrefix; + } else if (isRoot && shape.api.xmlNamespaceUri) { + uri = shape.api.xmlNamespaceUri; + } -var Cancel = __nccwpck_require__(12792); + if (uri) xml.addAttribute(prefix, uri); +} /** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @class - * @param {Function} executor The executor function. + * @api private */ -function CancelToken(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } +module.exports = XmlBuilder; - var resolvePromise; - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - var token = this; - executor(function cancel(message) { - if (token.reason) { - // Cancellation has already been requested - return; - } +/***/ }), - token.reason = new Cancel(message); - resolvePromise(token.reason); - }); -} +/***/ 45379: +/***/ ((module) => { /** - * Throws a `Cancel` if cancellation has been requested. + * Escapes characters that can not be in an XML attribute. */ -CancelToken.prototype.throwIfRequested = function throwIfRequested() { - if (this.reason) { - throw this.reason; - } -}; +function escapeAttribute(value) { + return value.replace(/&/g, '&').replace(/'/g, ''').replace(//g, '>').replace(/"/g, '"'); +} /** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. + * @api private */ -CancelToken.source = function source() { - var cancel; - var token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token: token, - cancel: cancel - }; +module.exports = { + escapeAttribute: escapeAttribute }; -module.exports = CancelToken; - /***/ }), -/***/ 12501: +/***/ 53003: /***/ ((module) => { -"use strict"; - +/** + * Escapes characters that can not be in an XML element. + */ +function escapeElement(value) { + return value.replace(/&/g, '&') + .replace(//g, '>') + .replace(/\r/g, ' ') + .replace(/\n/g, ' ') + .replace(/\u0085/g, '…') + .replace(/\u2028/, '
'); +} -module.exports = function isCancel(value) { - return !!(value && value.__CANCEL__); +/** + * @api private + */ +module.exports = { + escapeElement: escapeElement }; /***/ }), -/***/ 13737: +/***/ 63375: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; - +var AWS = __nccwpck_require__(53832); +var util = AWS.util; +var Shape = AWS.Model.Shape; -var utils = __nccwpck_require__(6218); -var buildURL = __nccwpck_require__(9185); -var InterceptorManager = __nccwpck_require__(77119); -var dispatchRequest = __nccwpck_require__(77987); -var mergeConfig = __nccwpck_require__(13776); -var validator = __nccwpck_require__(39047); +var xml2js = __nccwpck_require__(46353); -var validators = validator.validators; /** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance + * @api private */ -function Axios(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new InterceptorManager(), - response: new InterceptorManager() - }; -} +var options = { // options passed to xml2js parser + explicitCharkey: false, // undocumented + trim: false, // trim the leading/trailing whitespace from text nodes + normalize: false, // trim interior whitespace inside text nodes + explicitRoot: false, // return the root node in the resulting object? + emptyTag: null, // the default value for empty nodes + explicitArray: true, // always put child nodes in an array + ignoreAttrs: false, // ignore attributes, only create text nodes + mergeAttrs: false, // merge attributes and child elements + validator: null // a callable validator +}; -/** - * Dispatch a request - * - * @param {Object} config The config specific for this request (merged with this.defaults) - */ -Axios.prototype.request = function request(config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof config === 'string') { - config = arguments[1] || {}; - config.url = arguments[0]; - } else { - config = config || {}; - } +function NodeXmlParser() { } - config = mergeConfig(this.defaults, config); +NodeXmlParser.prototype.parse = function(xml, shape) { + shape = shape || {}; - // Set config.method - if (config.method) { - config.method = config.method.toLowerCase(); - } else if (this.defaults.method) { - config.method = this.defaults.method.toLowerCase(); - } else { - config.method = 'get'; - } + var result = null; + var error = null; - var transitional = config.transitional; + var parser = new xml2js.Parser(options); + parser.parseString(xml, function (e, r) { + error = e; + result = r; + }); - if (transitional !== undefined) { - validator.assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'), - forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'), - clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0') - }, false); + if (result) { + var data = parseXml(result, shape); + if (result.ResponseMetadata) { + data.ResponseMetadata = parseXml(result.ResponseMetadata[0], {}); + } + return data; + } else if (error) { + throw util.error(error, {code: 'XMLParserError', retryable: true}); + } else { // empty xml document + return parseXml({}, shape); } +}; - // filter out skipped interceptors - var requestInterceptorChain = []; - var synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } +function parseXml(xml, shape) { + switch (shape.type) { + case 'structure': return parseStructure(xml, shape); + case 'map': return parseMap(xml, shape); + case 'list': return parseList(xml, shape); + case undefined: case null: return parseUnknown(xml); + default: return parseScalar(xml, shape); + } +} - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; +function parseStructure(xml, shape) { + var data = {}; + if (xml === null) return data; - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); + util.each(shape.members, function(memberName, memberShape) { + var xmlName = memberShape.name; + if (Object.prototype.hasOwnProperty.call(xml, xmlName) && Array.isArray(xml[xmlName])) { + var xmlChild = xml[xmlName]; + if (!memberShape.flattened) xmlChild = xmlChild[0]; - var responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + data[memberName] = parseXml(xmlChild, memberShape); + } else if (memberShape.isXmlAttribute && + xml.$ && Object.prototype.hasOwnProperty.call(xml.$, xmlName)) { + data[memberName] = parseScalar(xml.$[xmlName], memberShape); + } else if (memberShape.type === 'list' && !shape.api.xmlNoDefaultLists) { + data[memberName] = memberShape.defaultValue; + } }); - var promise; - - if (!synchronousRequestInterceptors) { - var chain = [dispatchRequest, undefined]; + return data; +} - Array.prototype.unshift.apply(chain, requestInterceptorChain); - chain = chain.concat(responseInterceptorChain); +function parseMap(xml, shape) { + var data = {}; + if (xml === null) return data; - promise = Promise.resolve(config); - while (chain.length) { - promise = promise.then(chain.shift(), chain.shift()); - } + var xmlKey = shape.key.name || 'key'; + var xmlValue = shape.value.name || 'value'; + var iterable = shape.flattened ? xml : xml.entry; - return promise; + if (Array.isArray(iterable)) { + util.arrayEach(iterable, function(child) { + data[child[xmlKey][0]] = parseXml(child[xmlValue][0], shape.value); + }); } + return data; +} - var newConfig = config; - while (requestInterceptorChain.length) { - var onFulfilled = requestInterceptorChain.shift(); - var onRejected = requestInterceptorChain.shift(); - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected(error); - break; - } +function parseList(xml, shape) { + var data = []; + var name = shape.member.name || 'member'; + if (shape.flattened) { + util.arrayEach(xml, function(xmlChild) { + data.push(parseXml(xmlChild, shape.member)); + }); + } else if (xml && Array.isArray(xml[name])) { + util.arrayEach(xml[name], function(child) { + data.push(parseXml(child, shape.member)); + }); } - try { - promise = dispatchRequest(newConfig); - } catch (error) { - return Promise.reject(error); + return data; +} + +function parseScalar(text, shape) { + if (text && text.$ && text.$.encoding === 'base64') { + shape = new Shape.create({type: text.$.encoding}); } + if (text && text._) text = text._; - while (responseInterceptorChain.length) { - promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift()); + if (typeof shape.toType === 'function') { + return shape.toType(text); + } else { + return text; } +} - return promise; -}; +function parseUnknown(xml) { + if (xml === undefined || xml === null) return ''; + if (typeof xml === 'string') return xml; -Axios.prototype.getUri = function getUri(config) { - config = mergeConfig(this.defaults, config); - return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); -}; + // parse a list + if (Array.isArray(xml)) { + var arr = []; + for (i = 0; i < xml.length; i++) { + arr.push(parseXml(xml[i], {})); + } + return arr; + } -// Provide aliases for supported request methods -utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: (config || {}).data - })); - }; -}); + // empty object + var keys = Object.keys(xml), i; + if (keys.length === 0 || (keys.length === 1 && keys[0] === '$')) { + return {}; + } -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, data, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: data - })); - }; -}); + // object, parse as structure + var data = {}; + for (i = 0; i < keys.length; i++) { + var key = keys[i], value = xml[key]; + if (key === '$') continue; + if (value.length > 1) { // this member is a list + data[key] = parseList(value, {member: {}}); + } else { // this member is a single item + data[key] = parseXml(value[0], {}); + } + } + return data; +} -module.exports = Axios; +/** + * @api private + */ +module.exports = NodeXmlParser; /***/ }), -/***/ 77119: +/***/ 61185: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; - - -var utils = __nccwpck_require__(6218); - -function InterceptorManager() { - this.handlers = []; -} +var escapeAttribute = (__nccwpck_require__(45379).escapeAttribute); /** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later + * Represents an XML node. + * @api private */ -InterceptorManager.prototype.use = function use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled: fulfilled, - rejected: rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; +function XmlNode(name, children) { + if (children === void 0) { children = []; } + this.name = name; + this.children = children; + this.attributes = {}; +} +XmlNode.prototype.addAttribute = function (name, value) { + this.attributes[name] = value; + return this; }; - -/** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - */ -InterceptorManager.prototype.eject = function eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } +XmlNode.prototype.addChildNode = function (child) { + this.children.push(child); + return this; }; - -/** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - */ -InterceptorManager.prototype.forEach = function forEach(fn) { - utils.forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); +XmlNode.prototype.removeAttribute = function (name) { + delete this.attributes[name]; + return this; +}; +XmlNode.prototype.toString = function () { + var hasChildren = Boolean(this.children.length); + var xmlText = '<' + this.name; + // add attributes + var attributes = this.attributes; + for (var i = 0, attributeNames = Object.keys(attributes); i < attributeNames.length; i++) { + var attributeName = attributeNames[i]; + var attribute = attributes[attributeName]; + if (typeof attribute !== 'undefined' && attribute !== null) { + xmlText += ' ' + attributeName + '=\"' + escapeAttribute('' + attribute) + '\"'; + } } - }); + return xmlText += !hasChildren ? '/>' : '>' + this.children.map(function (c) { return c.toString(); }).join('') + ''; }; -module.exports = InterceptorManager; - - -/***/ }), - -/***/ 69263: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -var isAbsoluteURL = __nccwpck_require__(57462); -var combineURLs = __nccwpck_require__(2796); - /** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * @returns {string} The combined full path + * @api private */ -module.exports = function buildFullPath(baseURL, requestedURL) { - if (baseURL && !isAbsoluteURL(requestedURL)) { - return combineURLs(baseURL, requestedURL); - } - return requestedURL; +module.exports = { + XmlNode: XmlNode }; /***/ }), -/***/ 45414: +/***/ 50146: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +var escapeElement = (__nccwpck_require__(53003).escapeElement); +/** + * Represents an XML text value. + * @api private + */ +function XmlText(value) { + this.value = value; +} -var enhanceError = __nccwpck_require__(35299); +XmlText.prototype.toString = function () { + return escapeElement('' + this.value); +}; /** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The created error. + * @api private */ -module.exports = function createError(message, config, code, request, response) { - var error = new Error(message); - return enhanceError(error, config, code, request, response); +module.exports = { + XmlText: XmlText }; /***/ }), -/***/ 77987: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 12212: +/***/ ((__unused_webpack_module, exports) => { "use strict"; -var utils = __nccwpck_require__(6218); -var transformData = __nccwpck_require__(18753); -var isCancel = __nccwpck_require__(12501); -var defaults = __nccwpck_require__(44589); - -/** - * Throws a `Cancel` if cancellation has been requested. - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; /** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * @returns {Promise} The Promise to be fulfilled + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX */ -module.exports = function dispatchRequest(config) { - throwIfCancellationRequested(config); - - // Ensure headers exist - config.headers = config.headers || {}; - - // Transform request data - config.data = transformData.call( - config, - config.data, - config.headers, - config.transformRequest - ); - - // Flatten headers - config.headers = utils.merge( - config.headers.common || {}, - config.headers[config.method] || {}, - config.headers - ); - - utils.forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - function cleanHeaderConfig(method) { - delete config.headers[method]; - } - ); - - var adapter = config.adapter || defaults.adapter; - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); +var byteToHex = []; - // Transform response data - response.data = transformData.call( - config, - response.data, - response.headers, - config.transformResponse - ); +for (var i = 0; i < 256; ++i) { + byteToHex[i] = (i + 0x100).toString(16).substr(1); +} - return response; - }, function onAdapterRejection(reason) { - if (!isCancel(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = transformData.call( - config, - reason.response.data, - reason.response.headers, - config.transformResponse - ); - } - } +function bytesToUuid(buf, offset) { + var i = offset || 0; + var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - return Promise.reject(reason); - }); -}; + return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join(''); +} +var _default = bytesToUuid; +exports["default"] = _default; /***/ }), -/***/ 35299: -/***/ ((module) => { +/***/ 10925: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; +var __webpack_unused_export__; -/** - * Update an Error with the specified config, error code, and response. - * - * @param {Error} error The error to update. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The error. - */ -module.exports = function enhanceError(error, config, code, request, response) { - error.config = config; - if (code) { - error.code = code; +__webpack_unused_export__ = ({ + value: true +}); +__webpack_unused_export__ = ({ + enumerable: true, + get: function () { + return _v.default; + } +}); +__webpack_unused_export__ = ({ + enumerable: true, + get: function () { + return _v2.default; + } +}); +Object.defineProperty(exports, "v4", ({ + enumerable: true, + get: function () { + return _v3.default; } +})); +__webpack_unused_export__ = ({ + enumerable: true, + get: function () { + return _v4.default; + } +}); - error.request = request; - error.response = response; - error.isAxiosError = true; +var _v = _interopRequireDefault(__nccwpck_require__(71072)); - error.toJSON = function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: this.config, - code: this.code - }; - }; - return error; -}; +var _v2 = _interopRequireDefault(__nccwpck_require__(1866)); + +var _v3 = _interopRequireDefault(__nccwpck_require__(56083)); +var _v4 = _interopRequireDefault(__nccwpck_require__(55820)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), -/***/ 13776: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 56889: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var utils = __nccwpck_require__(6218); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * @returns {Object} New object resulting from merging config2 to config1 - */ -module.exports = function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - var config = {}; +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); - var valueFromConfig2Keys = ['url', 'method', 'data']; - var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; - var defaultToConfig2Keys = [ - 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', - 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', - 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', - 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', - 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' - ]; - var directMergeKeys = ['validateStatus']; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function getMergedValue(target, source) { - if (utils.isPlainObject(target) && utils.isPlainObject(source)) { - return utils.merge(target, source); - } else if (utils.isPlainObject(source)) { - return utils.merge({}, source); - } else if (utils.isArray(source)) { - return source.slice(); - } - return source; +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); } - function mergeDeepProperties(prop) { - if (!utils.isUndefined(config2[prop])) { - config[prop] = getMergedValue(config1[prop], config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - config[prop] = getMergedValue(undefined, config1[prop]); - } - } + return _crypto.default.createHash('md5').update(bytes).digest(); +} - utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - config[prop] = getMergedValue(undefined, config2[prop]); - } - }); +var _default = md5; +exports["default"] = _default; - utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); +/***/ }), - utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - config[prop] = getMergedValue(undefined, config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - config[prop] = getMergedValue(undefined, config1[prop]); - } - }); +/***/ 26672: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - utils.forEach(directMergeKeys, function merge(prop) { - if (prop in config2) { - config[prop] = getMergedValue(config1[prop], config2[prop]); - } else if (prop in config1) { - config[prop] = getMergedValue(undefined, config1[prop]); - } - }); +"use strict"; - var axiosKeys = valueFromConfig2Keys - .concat(mergeDeepPropertiesKeys) - .concat(defaultToConfig2Keys) - .concat(directMergeKeys); - var otherKeys = Object - .keys(config1) - .concat(Object.keys(config2)) - .filter(function filterAxiosKeys(key) { - return axiosKeys.indexOf(key) === -1; - }); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rng; - utils.forEach(otherKeys, mergeDeepProperties); +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); - return config; -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function rng() { + return _crypto.default.randomBytes(16); +} /***/ }), -/***/ 57084: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 79732: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var createError = __nccwpck_require__(45414); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - */ -module.exports = function settle(resolve, reject, response) { - var validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(createError( - 'Request failed with status code ' + response.status, - response.config, - null, - response.request, - response - )); +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); } -}; + return _crypto.default.createHash('sha1').update(bytes).digest(); +} + +var _default = sha1; +exports["default"] = _default; /***/ }), -/***/ 18753: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 71072: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var utils = __nccwpck_require__(6218); -var defaults = __nccwpck_require__(44589); - -/** - * Transform the data for a request or a response - * - * @param {Object|String} data The data to be transformed - * @param {Array} headers The headers for the request or response - * @param {Array|Function} fns A single function or Array of functions - * @returns {*} The resulting transformed data - */ -module.exports = function transformData(data, headers, fns) { - var context = this || defaults; - /*eslint no-param-reassign:0*/ - utils.forEach(fns, function transform(fn) { - data = fn.call(context, data, headers); - }); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return data; -}; +var _rng = _interopRequireDefault(__nccwpck_require__(26672)); +var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(12212)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -/***/ 44589: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +var _nodeId; -"use strict"; +var _clockseq; // Previous uuid creation time -var utils = __nccwpck_require__(6218); -var normalizeHeaderName = __nccwpck_require__(2480); -var enhanceError = __nccwpck_require__(35299); +var _lastMSecs = 0; +var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details -var DEFAULT_CONTENT_TYPE = { - 'Content-Type': 'application/x-www-form-urlencoded' -}; +function v1(options, buf, offset) { + var i = buf && offset || 0; + var b = buf || []; + options = options || {}; + var node = options.node || _nodeId; + var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 -function setContentTypeIfUnset(headers, value) { - if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { - headers['Content-Type'] = value; - } -} + if (node == null || clockseq == null) { + var seedBytes = options.random || (options.rng || _rng.default)(); -function getDefaultAdapter() { - var adapter; - if (typeof XMLHttpRequest !== 'undefined') { - // For browsers use XHR adapter - adapter = __nccwpck_require__(35005); - } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { - // For node use HTTP adapter - adapter = __nccwpck_require__(12787); - } - return adapter; -} + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } -function stringifySafely(rawValue, parser, encoder) { - if (utils.isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return utils.trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; } - } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - return (encoder || JSON.stringify)(rawValue); -} -var defaults = { + var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock - transitional: { - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false - }, + var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - adapter: getDefaultAdapter(), + var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - transformRequest: [function transformRequest(data, headers) { - normalizeHeaderName(headers, 'Accept'); - normalizeHeaderName(headers, 'Content-Type'); + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval - if (utils.isFormData(data) || - utils.isArrayBuffer(data) || - utils.isBuffer(data) || - utils.isStream(data) || - utils.isFile(data) || - utils.isBlob(data) - ) { - return data; - } - if (utils.isArrayBufferView(data)) { - return data.buffer; - } - if (utils.isURLSearchParams(data)) { - setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); - return data.toString(); - } - if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) { - setContentTypeIfUnset(headers, 'application/json'); - return stringifySafely(data); - } - return data; - }], - transformResponse: [function transformResponse(data) { - var transitional = this.transitional; - var silentJSONParsing = transitional && transitional.silentJSONParsing; - var forcedJSONParsing = transitional && transitional.forcedJSONParsing; - var strictJSONParsing = !silentJSONParsing && this.responseType === 'json'; + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested - if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) { - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw enhanceError(e, this, 'E_JSON_PARSE'); - } - throw e; - } - } - } - return data; - }], + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', + msecs += 12219292800000; // `time_low` - maxContentLength: -1, - maxBodyLength: -1, + var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - } -}; + var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` -defaults.headers = { - common: { - 'Accept': 'application/json, text/plain, */*' - } -}; + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version -utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { - defaults.headers[method] = {}; -}); + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); -}); + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (var n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } -module.exports = defaults; + return buf ? buf : (0, _bytesToUuid.default)(b); +} +var _default = v1; +exports["default"] = _default; /***/ }), -/***/ 7759: -/***/ ((module) => { +/***/ 1866: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = function bind(fn, thisArg) { - return function wrap() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - return fn.apply(thisArg, args); - }; -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(94035)); + +var _md = _interopRequireDefault(__nccwpck_require__(56889)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports["default"] = _default; /***/ }), -/***/ 9185: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 94035: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var utils = __nccwpck_require__(6218); - -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +exports.URL = exports.DNS = void 0; -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @returns {string} The formatted url - */ -module.exports = function buildURL(url, params, paramsSerializer) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } +var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(12212)); - var serializedParams; - if (paramsSerializer) { - serializedParams = paramsSerializer(params); - } else if (utils.isURLSearchParams(params)) { - serializedParams = params.toString(); - } else { - var parts = []; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - utils.forEach(params, function serialize(val, key) { - if (val === null || typeof val === 'undefined') { - return; - } +function uuidToBytes(uuid) { + // Note: We assume we're being passed a valid uuid string + var bytes = []; + uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) { + bytes.push(parseInt(hex, 16)); + }); + return bytes; +} - if (utils.isArray(val)) { - key = key + '[]'; - } else { - val = [val]; - } +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape - utils.forEach(val, function parseValue(v) { - if (utils.isDate(v)) { - v = v.toISOString(); - } else if (utils.isObject(v)) { - v = JSON.stringify(v); - } - parts.push(encode(key) + '=' + encode(v)); - }); - }); + var bytes = new Array(str.length); - serializedParams = parts.join('&'); + for (var i = 0; i < str.length; i++) { + bytes[i] = str.charCodeAt(i); } - if (serializedParams) { - var hashmarkIndex = url.indexOf('#'); - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } + return bytes; +} - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; - return url; -}; +function _default(name, version, hashfunc) { + var generateUUID = function (value, namespace, buf, offset) { + var off = buf && offset || 0; + if (typeof value == 'string') value = stringToBytes(value); + if (typeof namespace == 'string') namespace = uuidToBytes(namespace); + if (!Array.isArray(value)) throw TypeError('value must be an array of bytes'); + if (!Array.isArray(namespace) || namespace.length !== 16) throw TypeError('namespace must be uuid string or an Array of 16 byte values'); // Per 4.3 + var bytes = hashfunc(namespace.concat(value)); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; -/***/ }), + if (buf) { + for (var idx = 0; idx < 16; ++idx) { + buf[off + idx] = bytes[idx]; + } + } -/***/ 2796: -/***/ ((module) => { + return buf || (0, _bytesToUuid.default)(bytes); + }; // Function#name is not settable on some platforms (#270) -"use strict"; + try { + generateUUID.name = name; + } catch (err) {} // For CommonJS default export support -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * @returns {string} The combined URL - */ -module.exports = function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -}; + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} /***/ }), -/***/ 44914: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 56083: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var utils = __nccwpck_require__(6218); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -module.exports = ( - utils.isStandardBrowserEnv() ? +var _rng = _interopRequireDefault(__nccwpck_require__(26672)); - // Standard browser envs support document.cookie - (function standardBrowserEnv() { - return { - write: function write(name, value, expires, path, domain, secure) { - var cookie = []; - cookie.push(name + '=' + encodeURIComponent(value)); +var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(12212)); - if (utils.isNumber(expires)) { - cookie.push('expires=' + new Date(expires).toGMTString()); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - if (utils.isString(path)) { - cookie.push('path=' + path); - } +function v4(options, buf, offset) { + var i = buf && offset || 0; - if (utils.isString(domain)) { - cookie.push('domain=' + domain); - } + if (typeof options == 'string') { + buf = options === 'binary' ? new Array(16) : null; + options = null; + } - if (secure === true) { - cookie.push('secure'); - } + options = options || {}; - document.cookie = cookie.join('; '); - }, + var rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - read: function read(name) { - var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - remove: function remove(name) { - this.write(name, '', Date.now() - 86400000); - } - }; - })() : + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - // Non standard browser env (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return { - write: function write() {}, - read: function read() { return null; }, - remove: function remove() {} - }; - })() -); + if (buf) { + for (var ii = 0; ii < 16; ++ii) { + buf[i + ii] = rnds[ii]; + } + } + return buf || (0, _bytesToUuid.default)(rnds); +} + +var _default = v4; +exports["default"] = _default; /***/ }), -/***/ 57462: -/***/ ((module) => { +/***/ 55820: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -module.exports = function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(94035)); +var _sha = _interopRequireDefault(__nccwpck_require__(79732)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports["default"] = _default; /***/ }), -/***/ 93932: -/***/ ((module) => { +/***/ 1437: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; +var __webpack_unused_export__; - +__webpack_unused_export__ = ({ value: true }); +var LRU_1 = __nccwpck_require__(94226); +var CACHE_SIZE = 1000; /** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + * Inspired node-lru-cache[https://github.com/isaacs/node-lru-cache] */ -module.exports = function isAxiosError(payload) { - return (typeof payload === 'object') && (payload.isAxiosError === true); -}; - +var EndpointCache = /** @class */ (function () { + function EndpointCache(maxSize) { + if (maxSize === void 0) { maxSize = CACHE_SIZE; } + this.maxSize = maxSize; + this.cache = new LRU_1.LRUCache(maxSize); + } + ; + Object.defineProperty(EndpointCache.prototype, "size", { + get: function () { + return this.cache.length; + }, + enumerable: true, + configurable: true + }); + EndpointCache.prototype.put = function (key, value) { + var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; + var endpointRecord = this.populateValue(value); + this.cache.put(keyString, endpointRecord); + }; + EndpointCache.prototype.get = function (key) { + var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; + var now = Date.now(); + var records = this.cache.get(keyString); + if (records) { + for (var i = records.length-1; i >= 0; i--) { + var record = records[i]; + if (record.Expire < now) { + records.splice(i, 1); + } + } + if (records.length === 0) { + this.cache.remove(keyString); + return undefined; + } + } + return records; + }; + EndpointCache.getKeyString = function (key) { + var identifiers = []; + var identifierNames = Object.keys(key).sort(); + for (var i = 0; i < identifierNames.length; i++) { + var identifierName = identifierNames[i]; + if (key[identifierName] === undefined) + continue; + identifiers.push(key[identifierName]); + } + return identifiers.join(' '); + }; + EndpointCache.prototype.populateValue = function (endpoints) { + var now = Date.now(); + return endpoints.map(function (endpoint) { return ({ + Address: endpoint.Address || '', + Expire: now + (endpoint.CachePeriodInMinutes || 1) * 60 * 1000 + }); }); + }; + EndpointCache.prototype.empty = function () { + this.cache.empty(); + }; + EndpointCache.prototype.remove = function (key) { + var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; + this.cache.remove(keyString); + }; + return EndpointCache; +}()); +exports.k = EndpointCache; /***/ }), -/***/ 86281: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 94226: +/***/ ((__unused_webpack_module, exports) => { "use strict"; - -var utils = __nccwpck_require__(6218); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs have full support of the APIs needed to test - // whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - var msie = /(msie|trident)/i.test(navigator.userAgent); - var urlParsingNode = document.createElement('a'); - var originURL; - - /** - * Parse a URL to discover it's components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - var href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; +Object.defineProperty(exports, "__esModule", ({ value: true })); +var LinkedListNode = /** @class */ (function () { + function LinkedListNode(key, value) { + this.key = key; + this.value = value; + } + return LinkedListNode; +}()); +var LRUCache = /** @class */ (function () { + function LRUCache(size) { + this.nodeMap = {}; + this.size = 0; + if (typeof size !== 'number' || size < 1) { + throw new Error('Cache size can only be positive number'); + } + this.sizeLimit = size; + } + Object.defineProperty(LRUCache.prototype, "length", { + get: function () { + return this.size; + }, + enumerable: true, + configurable: true + }); + LRUCache.prototype.prependToList = function (node) { + if (!this.headerNode) { + this.tailNode = node; + } + else { + this.headerNode.prev = node; + node.next = this.headerNode; + } + this.headerNode = node; + this.size++; + }; + LRUCache.prototype.removeFromTail = function () { + if (!this.tailNode) { + return undefined; + } + var node = this.tailNode; + var prevNode = node.prev; + if (prevNode) { + prevNode.next = undefined; + } + node.prev = undefined; + this.tailNode = prevNode; + this.size--; + return node; + }; + LRUCache.prototype.detachFromList = function (node) { + if (this.headerNode === node) { + this.headerNode = node.next; + } + if (this.tailNode === node) { + this.tailNode = node.prev; + } + if (node.prev) { + node.prev.next = node.next; + } + if (node.next) { + node.next.prev = node.prev; + } + node.next = undefined; + node.prev = undefined; + this.size--; + }; + LRUCache.prototype.get = function (key) { + if (this.nodeMap[key]) { + var node = this.nodeMap[key]; + this.detachFromList(node); + this.prependToList(node); + return node.value; + } + }; + LRUCache.prototype.remove = function (key) { + if (this.nodeMap[key]) { + var node = this.nodeMap[key]; + this.detachFromList(node); + delete this.nodeMap[key]; + } + }; + LRUCache.prototype.put = function (key, value) { + if (this.nodeMap[key]) { + this.remove(key); + } + else if (this.size === this.sizeLimit) { + var tailNode = this.removeFromTail(); + var key_1 = tailNode.key; + delete this.nodeMap[key_1]; + } + var newNode = new LinkedListNode(key, value); + this.nodeMap[key] = newNode; + this.prependToList(newNode); + }; + LRUCache.prototype.empty = function () { + var keys = Object.keys(this.nodeMap); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var node = this.nodeMap[key]; + this.detachFromList(node); + delete this.nodeMap[key]; } + }; + return LRUCache; +}()); +exports.LRUCache = LRUCache; - urlParsingNode.setAttribute('href', href); +/***/ }), - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } +/***/ 239: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - originURL = resolveURL(window.location.href); +var aws4 = exports, + url = __nccwpck_require__(87016), + querystring = __nccwpck_require__(83480), + crypto = __nccwpck_require__(76982), + lru = __nccwpck_require__(79171), + credentialsCache = lru(1000) - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : +// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })() -); +function hmac(key, string, encoding) { + return crypto.createHmac('sha256', key).update(string, 'utf8').digest(encoding) +} +function hash(string, encoding) { + return crypto.createHash('sha256').update(string, 'utf8').digest(encoding) +} -/***/ }), +// This function assumes the string has already been percent encoded +function encodeRfc3986(urlEncodedString) { + return urlEncodedString.replace(/[!'()*]/g, function(c) { + return '%' + c.charCodeAt(0).toString(16).toUpperCase() + }) +} -/***/ 2480: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function encodeRfc3986Full(str) { + return encodeRfc3986(encodeURIComponent(str)) +} -"use strict"; +// A bit of a combination of: +// https://github.com/aws/aws-sdk-java-v2/blob/dc695de6ab49ad03934e1b02e7263abbd2354be0/core/auth/src/main/java/software/amazon/awssdk/auth/signer/internal/AbstractAws4Signer.java#L59 +// https://github.com/aws/aws-sdk-js/blob/18cb7e5b463b46239f9fdd4a65e2ff8c81831e8f/lib/signers/v4.js#L191-L199 +// https://github.com/mhart/aws4fetch/blob/b3aed16b6f17384cf36ea33bcba3c1e9f3bdfefd/src/main.js#L25-L34 +var HEADERS_TO_IGNORE = { + 'authorization': true, + 'connection': true, + 'x-amzn-trace-id': true, + 'user-agent': true, + 'expect': true, + 'presigned-expires': true, + 'range': true, +} +// request: { path | body, [host], [method], [headers], [service], [region] } +// credentials: { accessKeyId, secretAccessKey, [sessionToken] } +function RequestSigner(request, credentials) { -var utils = __nccwpck_require__(6218); + if (typeof request === 'string') request = url.parse(request) -module.exports = function normalizeHeaderName(headers, normalizedName) { - utils.forEach(headers, function processHeader(value, name) { - if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { - headers[normalizedName] = value; - delete headers[name]; - } - }); -}; + var headers = request.headers = Object.assign({}, (request.headers || {})), + hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host) + this.request = request + this.credentials = credentials || this.defaultCredentials() -/***/ }), + this.service = request.service || hostParts[0] || '' + this.region = request.region || hostParts[1] || 'us-east-1' -/***/ 88216: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // SES uses a different domain from the service name + if (this.service === 'email') this.service = 'ses' -"use strict"; + if (!request.method && request.body) + request.method = 'POST' + if (!headers.Host && !headers.host) { + headers.Host = request.hostname || request.host || this.createHost() -var utils = __nccwpck_require__(6218); + // If a port is specified explicitly, use it as is + if (request.port) + headers.Host += ':' + request.port + } + if (!request.hostname && !request.host) + request.hostname = headers.Host || headers.host -// Headers whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -var ignoreDuplicateOf = [ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]; + this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT' -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} headers Headers needing to be parsed - * @returns {Object} Headers parsed into an object - */ -module.exports = function parseHeaders(headers) { - var parsed = {}; - var key; - var val; - var i; + this.extraHeadersToIgnore = request.extraHeadersToIgnore || Object.create(null) + this.extraHeadersToInclude = request.extraHeadersToInclude || Object.create(null) +} - if (!headers) { return parsed; } +RequestSigner.prototype.matchHost = function(host) { + var match = (host || '').match(/([^\.]{1,63})\.(?:([^\.]{0,63})\.)?amazonaws\.com(\.cn)?$/) + var hostParts = (match || []).slice(1, 3) - utils.forEach(headers.split('\n'), function parser(line) { - i = line.indexOf(':'); - key = utils.trim(line.substr(0, i)).toLowerCase(); - val = utils.trim(line.substr(i + 1)); + // ES's hostParts are sometimes the other way round, if the value that is expected + // to be region equals ‘es’ switch them back + // e.g. search-cluster-name-aaaa00aaaa0aaa0aaaaaaa0aaa.us-east-1.es.amazonaws.com + if (hostParts[1] === 'es' || hostParts[1] === 'aoss') + hostParts = hostParts.reverse() - if (key) { - if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { - return; - } - if (key === 'set-cookie') { - parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + if (hostParts[1] == 's3') { + hostParts[0] = 's3' + hostParts[1] = 'us-east-1' + } else { + for (var i = 0; i < 2; i++) { + if (/^s3-/.test(hostParts[i])) { + hostParts[1] = hostParts[i].slice(3) + hostParts[0] = 's3' + break } } - }); + } - return parsed; -}; + return hostParts +} +// http://docs.aws.amazon.com/general/latest/gr/rande.html +RequestSigner.prototype.isSingleRegion = function() { + // Special case for S3 and SimpleDB in us-east-1 + if (['s3', 'sdb'].indexOf(this.service) >= 0 && this.region === 'us-east-1') return true -/***/ }), + return ['cloudfront', 'ls', 'route53', 'iam', 'importexport', 'sts'] + .indexOf(this.service) >= 0 +} -/***/ 43861: -/***/ ((module) => { +RequestSigner.prototype.createHost = function() { + var region = this.isSingleRegion() ? '' : '.' + this.region, + subdomain = this.service === 'ses' ? 'email' : this.service + return subdomain + region + '.amazonaws.com' +} -"use strict"; +RequestSigner.prototype.prepareRequest = function() { + this.parsePath() + var request = this.request, headers = request.headers, query -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ -module.exports = function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -}; + if (request.signQuery) { + this.parsedPath.query = query = this.parsedPath.query || {} -/***/ }), + if (this.credentials.sessionToken) + query['X-Amz-Security-Token'] = this.credentials.sessionToken -/***/ 39047: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (this.service === 's3' && !query['X-Amz-Expires']) + query['X-Amz-Expires'] = 86400 -"use strict"; + if (query['X-Amz-Date']) + this.datetime = query['X-Amz-Date'] + else + query['X-Amz-Date'] = this.getDateTime() + + query['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256' + query['X-Amz-Credential'] = this.credentials.accessKeyId + '/' + this.credentialString() + query['X-Amz-SignedHeaders'] = this.signedHeaders() + } else { -var pkg = __nccwpck_require__(88593); + if (!request.doNotModifyHeaders && !this.isCodeCommitGit) { + if (request.body && !headers['Content-Type'] && !headers['content-type']) + headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8' -var validators = {}; + if (request.body && !headers['Content-Length'] && !headers['content-length']) + headers['Content-Length'] = Buffer.byteLength(request.body) -// eslint-disable-next-line func-names -['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) { - validators[type] = function validator(thing) { - return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; -}); + if (this.credentials.sessionToken && !headers['X-Amz-Security-Token'] && !headers['x-amz-security-token']) + headers['X-Amz-Security-Token'] = this.credentials.sessionToken -var deprecatedWarnings = {}; -var currentVerArr = pkg.version.split('.'); + if (this.service === 's3' && !headers['X-Amz-Content-Sha256'] && !headers['x-amz-content-sha256']) + headers['X-Amz-Content-Sha256'] = hash(this.request.body || '', 'hex') -/** - * Compare package versions - * @param {string} version - * @param {string?} thanVersion - * @returns {boolean} - */ -function isOlderVersion(version, thanVersion) { - var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr; - var destVer = version.split('.'); - for (var i = 0; i < 3; i++) { - if (pkgVersionArr[i] > destVer[i]) { - return true; - } else if (pkgVersionArr[i] < destVer[i]) { - return false; + if (headers['X-Amz-Date'] || headers['x-amz-date']) + this.datetime = headers['X-Amz-Date'] || headers['x-amz-date'] + else + headers['X-Amz-Date'] = this.getDateTime() } + + delete headers.Authorization + delete headers.authorization } - return false; } -/** - * Transitional option validator - * @param {function|boolean?} validator - * @param {string?} version - * @param {string} message - * @returns {function} - */ -validators.transitional = function transitional(validator, version, message) { - var isDeprecated = version && isOlderVersion(version); +RequestSigner.prototype.sign = function() { + if (!this.parsedPath) this.prepareRequest() - function formatMessage(opt, desc) { - return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + if (this.request.signQuery) { + this.parsedPath.query['X-Amz-Signature'] = this.signature() + } else { + this.request.headers.Authorization = this.authHeader() } - // eslint-disable-next-line func-names - return function(value, opt, opts) { - if (validator === false) { - throw new Error(formatMessage(opt, ' has been removed in ' + version)); - } + this.request.path = this.formatPath() - if (isDeprecated && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn( - formatMessage( - opt, - ' has been deprecated since v' + version + ' and will be removed in the near future' - ) - ); - } + return this.request +} - return validator ? validator(value, opt, opts) : true; - }; -}; +RequestSigner.prototype.getDateTime = function() { + if (!this.datetime) { + var headers = this.request.headers, + date = new Date(headers.Date || headers.date || new Date) -/** - * Assert object's properties type - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - */ + this.datetime = date.toISOString().replace(/[:\-]|\.\d{3}/g, '') -function assertOptions(options, schema, allowUnknown) { - if (typeof options !== 'object') { - throw new TypeError('options must be an object'); - } - var keys = Object.keys(options); - var i = keys.length; - while (i-- > 0) { - var opt = keys[i]; - var validator = schema[opt]; - if (validator) { - var value = options[opt]; - var result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new TypeError('option ' + opt + ' must be ' + result); - } - continue; - } - if (allowUnknown !== true) { - throw Error('Unknown option ' + opt); - } + // Remove the trailing 'Z' on the timestamp string for CodeCommit git access + if (this.isCodeCommitGit) this.datetime = this.datetime.slice(0, -1) } + return this.datetime } -module.exports = { - isOlderVersion: isOlderVersion, - assertOptions: assertOptions, - validators: validators -}; - +RequestSigner.prototype.getDate = function() { + return this.getDateTime().substr(0, 8) +} -/***/ }), +RequestSigner.prototype.authHeader = function() { + return [ + 'AWS4-HMAC-SHA256 Credential=' + this.credentials.accessKeyId + '/' + this.credentialString(), + 'SignedHeaders=' + this.signedHeaders(), + 'Signature=' + this.signature(), + ].join(', ') +} -/***/ 6218: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RequestSigner.prototype.signature = function() { + var date = this.getDate(), + cacheKey = [this.credentials.secretAccessKey, date, this.region, this.service].join(), + kDate, kRegion, kService, kCredentials = credentialsCache.get(cacheKey) + if (!kCredentials) { + kDate = hmac('AWS4' + this.credentials.secretAccessKey, date) + kRegion = hmac(kDate, this.region) + kService = hmac(kRegion, this.service) + kCredentials = hmac(kService, 'aws4_request') + credentialsCache.set(cacheKey, kCredentials) + } + return hmac(kCredentials, this.stringToSign(), 'hex') +} -"use strict"; +RequestSigner.prototype.stringToSign = function() { + return [ + 'AWS4-HMAC-SHA256', + this.getDateTime(), + this.credentialString(), + hash(this.canonicalString(), 'hex'), + ].join('\n') +} +RequestSigner.prototype.canonicalString = function() { + if (!this.parsedPath) this.prepareRequest() -var bind = __nccwpck_require__(7759); + var pathStr = this.parsedPath.path, + query = this.parsedPath.query, + headers = this.request.headers, + queryStr = '', + normalizePath = this.service !== 's3', + decodePath = this.service === 's3' || this.request.doNotEncodePath, + decodeSlashesInPath = this.service === 's3', + firstValOnly = this.service === 's3', + bodyHash -// utils is a library of generic helper functions non-specific to axios + if (this.service === 's3' && this.request.signQuery) { + bodyHash = 'UNSIGNED-PAYLOAD' + } else if (this.isCodeCommitGit) { + bodyHash = '' + } else { + bodyHash = headers['X-Amz-Content-Sha256'] || headers['x-amz-content-sha256'] || + hash(this.request.body || '', 'hex') + } -var toString = Object.prototype.toString; + if (query) { + var reducedQuery = Object.keys(query).reduce(function(obj, key) { + if (!key) return obj + obj[encodeRfc3986Full(key)] = !Array.isArray(query[key]) ? query[key] : + (firstValOnly ? query[key][0] : query[key]) + return obj + }, {}) + var encodedQueryPieces = [] + Object.keys(reducedQuery).sort().forEach(function(key) { + if (!Array.isArray(reducedQuery[key])) { + encodedQueryPieces.push(key + '=' + encodeRfc3986Full(reducedQuery[key])) + } else { + reducedQuery[key].map(encodeRfc3986Full).sort() + .forEach(function(val) { encodedQueryPieces.push(key + '=' + val) }) + } + }) + queryStr = encodedQueryPieces.join('&') + } + if (pathStr !== '/') { + if (normalizePath) pathStr = pathStr.replace(/\/{2,}/g, '/') + pathStr = pathStr.split('/').reduce(function(path, piece) { + if (normalizePath && piece === '..') { + path.pop() + } else if (!normalizePath || piece !== '.') { + if (decodePath) piece = decodeURIComponent(piece.replace(/\+/g, ' ')) + path.push(encodeRfc3986Full(piece)) + } + return path + }, []).join('/') + if (pathStr[0] !== '/') pathStr = '/' + pathStr + if (decodeSlashesInPath) pathStr = pathStr.replace(/%2F/g, '/') + } -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Array, otherwise false - */ -function isArray(val) { - return toString.call(val) === '[object Array]'; + return [ + this.request.method || 'GET', + pathStr, + queryStr, + this.canonicalHeaders() + '\n', + this.signedHeaders(), + bodyHash, + ].join('\n') } -/** - * Determine if a value is undefined - * - * @param {Object} val The value to test - * @returns {boolean} True if the value is undefined, otherwise false - */ -function isUndefined(val) { - return typeof val === 'undefined'; +RequestSigner.prototype.filterHeaders = function() { + var headers = this.request.headers, + extraHeadersToInclude = this.extraHeadersToInclude, + extraHeadersToIgnore = this.extraHeadersToIgnore + this.filteredHeaders = Object.keys(headers) + .map(function(key) { return [key.toLowerCase(), headers[key]] }) + .filter(function(entry) { + return extraHeadersToInclude[entry[0]] || + (HEADERS_TO_IGNORE[entry[0]] == null && !extraHeadersToIgnore[entry[0]]) + }) + .sort(function(a, b) { return a[0] < b[0] ? -1 : 1 }) } -/** - * Determine if a value is a Buffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); +RequestSigner.prototype.canonicalHeaders = function() { + if (!this.filteredHeaders) this.filterHeaders() + + return this.filteredHeaders.map(function(entry) { + return entry[0] + ':' + entry[1].toString().trim().replace(/\s+/g, ' ') + }).join('\n') } -/** - * Determine if a value is an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -function isArrayBuffer(val) { - return toString.call(val) === '[object ArrayBuffer]'; +RequestSigner.prototype.signedHeaders = function() { + if (!this.filteredHeaders) this.filterHeaders() + + return this.filteredHeaders.map(function(entry) { return entry[0] }).join(';') } -/** - * Determine if a value is a FormData - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an FormData, otherwise false - */ -function isFormData(val) { - return (typeof FormData !== 'undefined') && (val instanceof FormData); +RequestSigner.prototype.credentialString = function() { + return [ + this.getDate(), + this.region, + this.service, + 'aws4_request', + ].join('/') } -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - var result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); +RequestSigner.prototype.defaultCredentials = function() { + var env = process.env + return { + accessKeyId: env.AWS_ACCESS_KEY_ID || env.AWS_ACCESS_KEY, + secretAccessKey: env.AWS_SECRET_ACCESS_KEY || env.AWS_SECRET_KEY, + sessionToken: env.AWS_SESSION_TOKEN, } - return result; } -/** - * Determine if a value is a String - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a String, otherwise false - */ -function isString(val) { - return typeof val === 'string'; -} +RequestSigner.prototype.parsePath = function() { + var path = this.request.path || '/' -/** - * Determine if a value is a Number - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Number, otherwise false - */ -function isNumber(val) { - return typeof val === 'number'; -} + // S3 doesn't always encode characters > 127 correctly and + // all services don't encode characters > 255 correctly + // So if there are non-reserved chars (and it's not already all % encoded), just encode them all + if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path)) { + path = encodeURI(decodeURI(path)) + } -/** - * Determine if a value is an Object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Object, otherwise false - */ -function isObject(val) { - return val !== null && typeof val === 'object'; -} + var queryIx = path.indexOf('?'), + query = null -/** - * Determine if a value is a plain Object - * - * @param {Object} val The value to test - * @return {boolean} True if value is a plain Object, otherwise false - */ -function isPlainObject(val) { - if (toString.call(val) !== '[object Object]') { - return false; + if (queryIx >= 0) { + query = querystring.parse(path.slice(queryIx + 1)) + path = path.slice(0, queryIx) } - var prototype = Object.getPrototypeOf(val); - return prototype === null || prototype === Object.prototype; + this.parsedPath = { + path: path, + query: query, + } } -/** - * Determine if a value is a Date - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Date, otherwise false - */ -function isDate(val) { - return toString.call(val) === '[object Date]'; +RequestSigner.prototype.formatPath = function() { + var path = this.parsedPath.path, + query = this.parsedPath.query + + if (!query) return path + + // Services don't support empty query string keys + if (query[''] != null) delete query[''] + + return path + '?' + encodeRfc3986(querystring.stringify(query)) } -/** - * Determine if a value is a File - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a File, otherwise false - */ -function isFile(val) { - return toString.call(val) === '[object File]'; +aws4.RequestSigner = RequestSigner + +aws4.sign = function(request, credentials) { + return new RequestSigner(request, credentials).sign() } -/** - * Determine if a value is a Blob - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Blob, otherwise false - */ -function isBlob(val) { - return toString.call(val) === '[object Blob]'; + +/***/ }), + +/***/ 79171: +/***/ ((module) => { + +module.exports = function(size) { + return new LruCache(size) } -/** - * Determine if a value is a Function - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -function isFunction(val) { - return toString.call(val) === '[object Function]'; +function LruCache(size) { + this.capacity = size | 0 + this.map = Object.create(null) + this.list = new DoublyLinkedList() } -/** - * Determine if a value is a Stream - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Stream, otherwise false - */ -function isStream(val) { - return isObject(val) && isFunction(val.pipe); +LruCache.prototype.get = function(key) { + var node = this.map[key] + if (node == null) return undefined + this.used(node) + return node.val } -/** - * Determine if a value is a URLSearchParams object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -function isURLSearchParams(val) { - return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; +LruCache.prototype.set = function(key, val) { + var node = this.map[key] + if (node != null) { + node.val = val + } else { + if (!this.capacity) this.prune() + if (!this.capacity) return false + node = new DoublyLinkedNode(key, val) + this.map[key] = node + this.capacity-- + } + this.used(node) + return true } -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * @returns {String} The String freed of excess whitespace - */ -function trim(str) { - return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); +LruCache.prototype.used = function(node) { + this.list.moveToFront(node) } -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - */ -function isStandardBrowserEnv() { - if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || - navigator.product === 'NativeScript' || - navigator.product === 'NS')) { - return false; +LruCache.prototype.prune = function() { + var node = this.list.pop() + if (node != null) { + delete this.map[node.key] + this.capacity++ } - return ( - typeof window !== 'undefined' && - typeof document !== 'undefined' - ); } -/** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - */ -function forEach(obj, fn) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } +function DoublyLinkedList() { + this.firstNode = null + this.lastNode = null +} - if (isArray(obj)) { - // Iterate over array values - for (var i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } +DoublyLinkedList.prototype.moveToFront = function(node) { + if (this.firstNode == node) return + + this.remove(node) + + if (this.firstNode == null) { + this.firstNode = node + this.lastNode = node + node.prev = null + node.next = null } else { - // Iterate over object keys - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - fn.call(null, obj[key], key, obj); - } - } + node.prev = null + node.next = this.firstNode + node.next.prev = node + this.firstNode = node } } -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - var result = {}; - function assignValue(val, key) { - if (isPlainObject(result[key]) && isPlainObject(val)) { - result[key] = merge(result[key], val); - } else if (isPlainObject(val)) { - result[key] = merge({}, val); - } else if (isArray(val)) { - result[key] = val.slice(); - } else { - result[key] = val; - } +DoublyLinkedList.prototype.pop = function() { + var lastNode = this.lastNode + if (lastNode != null) { + this.remove(lastNode) } + return lastNode +} - for (var i = 0, l = arguments.length; i < l; i++) { - forEach(arguments[i], assignValue); +DoublyLinkedList.prototype.remove = function(node) { + if (this.firstNode == node) { + this.firstNode = node.next + } else if (node.prev != null) { + node.prev.next = node.next + } + if (this.lastNode == node) { + this.lastNode = node.prev + } else if (node.next != null) { + node.next.prev = node.prev } - return result; } -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * @return {Object} The resulting value of object a - */ -function extend(a, b, thisArg) { - forEach(b, function assignValue(val, key) { - if (thisArg && typeof val === 'function') { - a[key] = bind(val, thisArg); - } else { - a[key] = val; - } - }); - return a; -} -/** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * @return {string} content value without BOM - */ -function stripBOM(content) { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; +function DoublyLinkedNode(key, val) { + this.key = key + this.val = val + this.prev = null + this.next = null } -module.exports = { - isArray: isArray, - isArrayBuffer: isArrayBuffer, - isBuffer: isBuffer, - isFormData: isFormData, - isArrayBufferView: isArrayBufferView, - isString: isString, - isNumber: isNumber, - isObject: isObject, - isPlainObject: isPlainObject, - isUndefined: isUndefined, - isDate: isDate, - isFile: isFile, - isBlob: isBlob, - isFunction: isFunction, - isStream: isStream, - isURLSearchParams: isURLSearchParams, - isStandardBrowserEnv: isStandardBrowserEnv, - forEach: forEach, - merge: merge, - extend: extend, - trim: trim, - stripBOM: stripBOM -}; - - -/***/ }), - -/***/ 8617: + +/***/ }), + +/***/ 54170: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -158002,17 +235534,17 @@ function fromByteArray (uint8) { /***/ }), -/***/ 50470: +/***/ 90982: /***/ (function(module) { ;(function (globalObject) { 'use strict'; /* - * bignumber.js v9.1.2 + * bignumber.js v9.3.1 * A JavaScript library for arbitrary-precision arithmetic. * https://github.com/MikeMcl/bignumber.js - * Copyright (c) 2022 Michael Mclaughlin + * Copyright (c) 2025 Michael Mclaughlin * MIT Licensed. * * BigNumber.prototype methods | BigNumber methods @@ -158913,7 +236445,7 @@ function fromByteArray (uint8) { // xc now represents str converted to baseOut. - // THe index of the rounding digit. + // The index of the rounding digit. d = e + dp + 1; // The rounding digit: the digit to the right of the digit that may be rounded up. @@ -159277,7 +236809,7 @@ function fromByteArray (uint8) { // Fixed-point notation. } else { - i -= ne; + i -= ne + (id === 2 && e > ne); str = toFixedPoint(str, e, '0'); // Append zeros? @@ -160931,56753 +238463,118887 @@ function fromByteArray (uint8) { /***/ }), -/***/ 96185: +/***/ 81377: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/*jshint node:true */ + +var Buffer = (__nccwpck_require__(20181).Buffer); // browserify +var SlowBuffer = (__nccwpck_require__(20181).SlowBuffer); + +module.exports = bufferEq; + +function bufferEq(a, b) { + + // shortcutting on type is necessary for correctness + if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { + return false; + } + + // buffer sizes should be well-known information, so despite this + // shortcutting, it doesn't leak any information about the *contents* of the + // buffers. + if (a.length !== b.length) { + return false; + } + + var c = 0; + for (var i = 0; i < a.length; i++) { + /*jshint bitwise:false */ + c |= a[i] ^ b[i]; // XOR + } + return c === 0; +} + +bufferEq.install = function() { + Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) { + return bufferEq(this, that); + }; +}; + +var origBufEqual = Buffer.prototype.equal; +var origSlowBufEqual = SlowBuffer.prototype.equal; +bufferEq.restore = function() { + Buffer.prototype.equal = origBufEqual; + SlowBuffer.prototype.equal = origSlowBufEqual; +}; + + +/***/ }), + +/***/ 87052: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var bind = __nccwpck_require__(39587); + +var $apply = __nccwpck_require__(17590); +var $call = __nccwpck_require__(98328); +var $reflectApply = __nccwpck_require__(12747); + +/** @type {import('./actualApply')} */ +module.exports = $reflectApply || bind.call($call, $apply); + + +/***/ }), + +/***/ 17590: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./functionApply')} */ +module.exports = Function.prototype.apply; + + +/***/ }), + +/***/ 98328: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./functionCall')} */ +module.exports = Function.prototype.call; + + +/***/ }), + +/***/ 87474: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var bind = __nccwpck_require__(39587); +var $TypeError = __nccwpck_require__(97183); + +var $call = __nccwpck_require__(98328); +var $actualApply = __nccwpck_require__(87052); + +/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */ +module.exports = function callBindBasic(args) { + if (args.length < 1 || typeof args[0] !== 'function') { + throw new $TypeError('a function is required'); + } + return $actualApply(bind, $call, args); +}; + + +/***/ }), + +/***/ 12747: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./reflectApply')} */ +module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply; + + +/***/ }), + +/***/ 96000: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var GetIntrinsic = __nccwpck_require__(83953); + +var callBindBasic = __nccwpck_require__(87474); + +/** @type {(thisArg: string, searchString: string, position?: number) => number} */ +var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]); + +/** @type {import('.')} */ +module.exports = function callBoundIntrinsic(name, allowMissing) { + /* eslint no-extra-parens: 0 */ + + var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing)); + if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { + return callBindBasic(/** @type {const} */ ([intrinsic])); + } + return intrinsic; +}; + + +/***/ }), + +/***/ 40573: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var util = __nccwpck_require__(39023); +var Stream = (__nccwpck_require__(2203).Stream); +var DelayedStream = __nccwpck_require__(3777); + +module.exports = CombinedStream; +function CombinedStream() { + this.writable = false; + this.readable = true; + this.dataSize = 0; + this.maxDataSize = 2 * 1024 * 1024; + this.pauseStreams = true; + + this._released = false; + this._streams = []; + this._currentStream = null; + this._insideLoop = false; + this._pendingNext = false; +} +util.inherits(CombinedStream, Stream); + +CombinedStream.create = function(options) { + var combinedStream = new this(); + + options = options || {}; + for (var option in options) { + combinedStream[option] = options[option]; + } + + return combinedStream; +}; + +CombinedStream.isStreamLike = function(stream) { + return (typeof stream !== 'function') + && (typeof stream !== 'string') + && (typeof stream !== 'boolean') + && (typeof stream !== 'number') + && (!Buffer.isBuffer(stream)); +}; + +CombinedStream.prototype.append = function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + + if (isStreamLike) { + if (!(stream instanceof DelayedStream)) { + var newStream = DelayedStream.create(stream, { + maxDataSize: Infinity, + pauseStream: this.pauseStreams, + }); + stream.on('data', this._checkDataSize.bind(this)); + stream = newStream; + } + + this._handleErrors(stream); + + if (this.pauseStreams) { + stream.pause(); + } + } + + this._streams.push(stream); + return this; +}; + +CombinedStream.prototype.pipe = function(dest, options) { + Stream.prototype.pipe.call(this, dest, options); + this.resume(); + return dest; +}; + +CombinedStream.prototype._getNext = function() { + this._currentStream = null; + + if (this._insideLoop) { + this._pendingNext = true; + return; // defer call + } + + this._insideLoop = true; + try { + do { + this._pendingNext = false; + this._realGetNext(); + } while (this._pendingNext); + } finally { + this._insideLoop = false; + } +}; + +CombinedStream.prototype._realGetNext = function() { + var stream = this._streams.shift(); + + + if (typeof stream == 'undefined') { + this.end(); + return; + } + + if (typeof stream !== 'function') { + this._pipeNext(stream); + return; + } + + var getStream = stream; + getStream(function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('data', this._checkDataSize.bind(this)); + this._handleErrors(stream); + } + + this._pipeNext(stream); + }.bind(this)); +}; + +CombinedStream.prototype._pipeNext = function(stream) { + this._currentStream = stream; + + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('end', this._getNext.bind(this)); + stream.pipe(this, {end: false}); + return; + } + + var value = stream; + this.write(value); + this._getNext(); +}; + +CombinedStream.prototype._handleErrors = function(stream) { + var self = this; + stream.on('error', function(err) { + self._emitError(err); + }); +}; + +CombinedStream.prototype.write = function(data) { + this.emit('data', data); +}; + +CombinedStream.prototype.pause = function() { + if (!this.pauseStreams) { + return; + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); + this.emit('pause'); +}; + +CombinedStream.prototype.resume = function() { + if (!this._released) { + this._released = true; + this.writable = true; + this._getNext(); + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); + this.emit('resume'); +}; + +CombinedStream.prototype.end = function() { + this._reset(); + this.emit('end'); +}; + +CombinedStream.prototype.destroy = function() { + this._reset(); + this.emit('close'); +}; + +CombinedStream.prototype._reset = function() { + this.writable = false; + this._streams = []; + this._currentStream = null; +}; + +CombinedStream.prototype._checkDataSize = function() { + this._updateDataSize(); + if (this.dataSize <= this.maxDataSize) { + return; + } + + var message = + 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; + this._emitError(new Error(message)); +}; + +CombinedStream.prototype._updateDataSize = function() { + this.dataSize = 0; + + var self = this; + this._streams.forEach(function(stream) { + if (!stream.dataSize) { + return; + } + + self.dataSize += stream.dataSize; + }); + + if (this._currentStream && this._currentStream.dataSize) { + this.dataSize += this._currentStream.dataSize; + } +}; + +CombinedStream.prototype._emitError = function(err) { + this._reset(); + this.emit('error', err); +}; + + +/***/ }), + +/***/ 2187: +/***/ ((__unused_webpack_module, exports) => { + +var __webpack_unused_export__; +/* jshint node: true */ +(function () { + "use strict"; + + function CookieAccessInfo(domain, path, secure, script) { + if (this instanceof CookieAccessInfo) { + this.domain = domain || undefined; + this.path = path || "/"; + this.secure = !!secure; + this.script = !!script; + return this; + } + return new CookieAccessInfo(domain, path, secure, script); + } + CookieAccessInfo.All = Object.freeze(Object.create(null)); + exports.xW = CookieAccessInfo; + + function Cookie(cookiestr, request_domain, request_path) { + if (cookiestr instanceof Cookie) { + return cookiestr; + } + if (this instanceof Cookie) { + this.name = null; + this.value = null; + this.expiration_date = Infinity; + this.path = String(request_path || "/"); + this.explicit_path = false; + this.domain = request_domain || null; + this.explicit_domain = false; + this.secure = false; //how to define default? + this.noscript = false; //httponly + if (cookiestr) { + this.parse(cookiestr, request_domain, request_path); + } + return this; + } + return new Cookie(cookiestr, request_domain, request_path); + } + __webpack_unused_export__ = Cookie; + + Cookie.prototype.toString = function toString() { + var str = [this.name + "=" + this.value]; + if (this.expiration_date !== Infinity) { + str.push("expires=" + (new Date(this.expiration_date)).toGMTString()); + } + if (this.domain) { + str.push("domain=" + this.domain); + } + if (this.path) { + str.push("path=" + this.path); + } + if (this.secure) { + str.push("secure"); + } + if (this.noscript) { + str.push("httponly"); + } + return str.join("; "); + }; + + Cookie.prototype.toValueString = function toValueString() { + return this.name + "=" + this.value; + }; + + var cookie_str_splitter = /[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g; + Cookie.prototype.parse = function parse(str, request_domain, request_path) { + if (this instanceof Cookie) { + if ( str.length > 32768 ) { + console.warn("Cookie too long for parsing (>32768 characters)"); + return; + } + + var parts = str.split(";").filter(function (value) { + return !!value; + }); + var i; + + var pair = parts[0].match(/([^=]+)=([\s\S]*)/); + if (!pair) { + console.warn("Invalid cookie header encountered. Header: '"+str+"'"); + return; + } + + var key = pair[1]; + var value = pair[2]; + if ( typeof key !== 'string' || key.length === 0 || typeof value !== 'string' ) { + console.warn("Unable to extract values from cookie header. Cookie: '"+str+"'"); + return; + } + + this.name = key; + this.value = value; + + for (i = 1; i < parts.length; i += 1) { + pair = parts[i].match(/([^=]+)(?:=([\s\S]*))?/); + key = pair[1].trim().toLowerCase(); + value = pair[2]; + switch (key) { + case "httponly": + this.noscript = true; + break; + case "expires": + this.expiration_date = value ? + Number(Date.parse(value)) : + Infinity; + break; + case "path": + this.path = value ? + value.trim() : + ""; + this.explicit_path = true; + break; + case "domain": + this.domain = value ? + value.trim() : + ""; + this.explicit_domain = !!this.domain; + break; + case "secure": + this.secure = true; + break; + } + } + + if (!this.explicit_path) { + this.path = request_path || "/"; + } + if (!this.explicit_domain) { + this.domain = request_domain; + } + + return this; + } + return new Cookie().parse(str, request_domain, request_path); + }; + + Cookie.prototype.matches = function matches(access_info) { + if (access_info === CookieAccessInfo.All) { + return true; + } + if (this.noscript && access_info.script || + this.secure && !access_info.secure || + !this.collidesWith(access_info)) { + return false; + } + return true; + }; + + Cookie.prototype.collidesWith = function collidesWith(access_info) { + if ((this.path && !access_info.path) || (this.domain && !access_info.domain)) { + return false; + } + if (this.path && access_info.path.indexOf(this.path) !== 0) { + return false; + } + if (this.explicit_path && access_info.path.indexOf( this.path ) !== 0) { + return false; + } + var access_domain = access_info.domain && access_info.domain.replace(/^[\.]/,''); + var cookie_domain = this.domain && this.domain.replace(/^[\.]/,''); + if (cookie_domain === access_domain) { + return true; + } + if (cookie_domain) { + if (!this.explicit_domain) { + return false; // we already checked if the domains were exactly the same + } + var wildcard = access_domain.indexOf(cookie_domain); + if (wildcard === -1 || wildcard !== access_domain.length - cookie_domain.length) { + return false; + } + return true; + } + return true; + }; + + function CookieJar() { + var cookies, cookies_list, collidable_cookie; + if (this instanceof CookieJar) { + cookies = Object.create(null); //name: [Cookie] + + this.setCookie = function setCookie(cookie, request_domain, request_path) { + var remove, i; + cookie = new Cookie(cookie, request_domain, request_path); + //Delete the cookie if the set is past the current time + remove = cookie.expiration_date <= Date.now(); + if (cookies[cookie.name] !== undefined) { + cookies_list = cookies[cookie.name]; + for (i = 0; i < cookies_list.length; i += 1) { + collidable_cookie = cookies_list[i]; + if (collidable_cookie.collidesWith(cookie)) { + if (remove) { + cookies_list.splice(i, 1); + if (cookies_list.length === 0) { + delete cookies[cookie.name]; + } + return false; + } + cookies_list[i] = cookie; + return cookie; + } + } + if (remove) { + return false; + } + cookies_list.push(cookie); + return cookie; + } + if (remove) { + return false; + } + cookies[cookie.name] = [cookie]; + return cookies[cookie.name]; + }; + //returns a cookie + this.getCookie = function getCookie(cookie_name, access_info) { + var cookie, i; + cookies_list = cookies[cookie_name]; + if (!cookies_list) { + return; + } + for (i = 0; i < cookies_list.length; i += 1) { + cookie = cookies_list[i]; + if (cookie.expiration_date <= Date.now()) { + if (cookies_list.length === 0) { + delete cookies[cookie.name]; + } + continue; + } + + if (cookie.matches(access_info)) { + return cookie; + } + } + }; + //returns a list of cookies + this.getCookies = function getCookies(access_info) { + var matches = [], cookie_name, cookie; + for (cookie_name in cookies) { + cookie = this.getCookie(cookie_name, access_info); + if (cookie) { + matches.push(cookie); + } + } + matches.toString = function toString() { + return matches.join(":"); + }; + matches.toValueString = function toValueString() { + return matches.map(function (c) { + return c.toValueString(); + }).join('; '); + }; + return matches; + }; + + return this; + } + return new CookieJar(); + } + exports.cP = CookieJar; + + //returns list of cookies that were set correctly. Cookies that are expired and removed are not returned. + CookieJar.prototype.setCookies = function setCookies(cookies, request_domain, request_path) { + cookies = Array.isArray(cookies) ? + cookies : + cookies.split(cookie_str_splitter); + var successful = [], + i, + cookie; + cookies = cookies.map(function(item){ + return new Cookie(item, request_domain, request_path); + }); + for (i = 0; i < cookies.length; i += 1) { + cookie = cookies[i]; + if (this.setCookie(cookie, request_domain, request_path)) { + successful.push(cookie); + } + } + return successful; + }; +}()); + + +/***/ }), + +/***/ 72293: +/***/ ((module, exports, __nccwpck_require__) => { + +/* eslint-env browser */ + +/** + * This is the web browser implementation of `debug()`. + */ + +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; +exports.storage = localstorage(); +exports.destroy = (() => { + let warned = false; + + return () => { + if (!warned) { + warned = true; + console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); + } + }; +})(); + +/** + * Colors. + */ + +exports.colors = [ + '#0000CC', + '#0000FF', + '#0033CC', + '#0033FF', + '#0066CC', + '#0066FF', + '#0099CC', + '#0099FF', + '#00CC00', + '#00CC33', + '#00CC66', + '#00CC99', + '#00CCCC', + '#00CCFF', + '#3300CC', + '#3300FF', + '#3333CC', + '#3333FF', + '#3366CC', + '#3366FF', + '#3399CC', + '#3399FF', + '#33CC00', + '#33CC33', + '#33CC66', + '#33CC99', + '#33CCCC', + '#33CCFF', + '#6600CC', + '#6600FF', + '#6633CC', + '#6633FF', + '#66CC00', + '#66CC33', + '#9900CC', + '#9900FF', + '#9933CC', + '#9933FF', + '#99CC00', + '#99CC33', + '#CC0000', + '#CC0033', + '#CC0066', + '#CC0099', + '#CC00CC', + '#CC00FF', + '#CC3300', + '#CC3333', + '#CC3366', + '#CC3399', + '#CC33CC', + '#CC33FF', + '#CC6600', + '#CC6633', + '#CC9900', + '#CC9933', + '#CCCC00', + '#CCCC33', + '#FF0000', + '#FF0033', + '#FF0066', + '#FF0099', + '#FF00CC', + '#FF00FF', + '#FF3300', + '#FF3333', + '#FF3366', + '#FF3399', + '#FF33CC', + '#FF33FF', + '#FF6600', + '#FF6633', + '#FF9900', + '#FF9933', + '#FFCC00', + '#FFCC33' +]; + +/** + * Currently only WebKit-based Web Inspectors, Firefox >= v31, + * and the Firebug extension (any Firefox version) are known + * to support "%c" CSS customizations. + * + * TODO: add a `localStorage` variable to explicitly enable/disable colors + */ + +// eslint-disable-next-line complexity +function useColors() { + // NB: In an Electron preload script, document will be defined but not fully + // initialized. Since we know we're in Chrome, we'll just detect this case + // explicitly + if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { + return true; + } + + // Internet Explorer and Edge do not support colors. + if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { + return false; + } + + let m; + + // Is webkit? http://stackoverflow.com/a/16459606/376773 + // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 + // eslint-disable-next-line no-return-assign + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // Is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // Is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) || + // Double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); +} + +/** + * Colorize log arguments if enabled. + * + * @api public + */ + +function formatArgs(args) { + args[0] = (this.useColors ? '%c' : '') + + this.namespace + + (this.useColors ? ' %c' : ' ') + + args[0] + + (this.useColors ? '%c ' : ' ') + + '+' + module.exports.humanize(this.diff); + + if (!this.useColors) { + return; + } + + const c = 'color: ' + this.color; + args.splice(1, 0, c, 'color: inherit'); + + // The final "%c" is somewhat tricky, because there could be other + // arguments passed either before or after the %c, so we need to + // figure out the correct index to insert the CSS into + let index = 0; + let lastC = 0; + args[0].replace(/%[a-zA-Z%]/g, match => { + if (match === '%%') { + return; + } + index++; + if (match === '%c') { + // We only are interested in the *last* %c + // (the user may have provided their own) + lastC = index; + } + }); + + args.splice(lastC, 0, c); +} + +/** + * Invokes `console.debug()` when available. + * No-op when `console.debug` is not a "function". + * If `console.debug` is not available, falls back + * to `console.log`. + * + * @api public + */ +exports.log = console.debug || console.log || (() => {}); + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + try { + if (namespaces) { + exports.storage.setItem('debug', namespaces); + } else { + exports.storage.removeItem('debug'); + } + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ +function load() { + let r; + try { + r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ; + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } + + // If debug isn't set in LS, and we're in Electron, try to load $DEBUG + if (!r && typeof process !== 'undefined' && 'env' in process) { + r = process.env.DEBUG; + } + + return r; +} + +/** + * Localstorage attempts to return the localstorage. + * + * This is necessary because safari throws + * when a user disables cookies/localstorage + * and you attempt to access it. + * + * @return {LocalStorage} + * @api private + */ + +function localstorage() { + try { + // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context + // The Browser also has localStorage in the global context. + return localStorage; + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +module.exports = __nccwpck_require__(59444)(exports); + +const {formatters} = module.exports; + +/** + * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. + */ + +formatters.j = function (v) { + try { + return JSON.stringify(v); + } catch (error) { + return '[UnexpectedJSONParseError]: ' + error.message; + } +}; + + +/***/ }), + +/***/ 59444: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + + +/** + * This is the common logic for both the Node.js and web browser + * implementations of `debug()`. + */ + +function setup(env) { + createDebug.debug = createDebug; + createDebug.default = createDebug; + createDebug.coerce = coerce; + createDebug.disable = disable; + createDebug.enable = enable; + createDebug.enabled = enabled; + createDebug.humanize = __nccwpck_require__(51133); + createDebug.destroy = destroy; + + Object.keys(env).forEach(key => { + createDebug[key] = env[key]; + }); + + /** + * The currently active debug mode names, and names to skip. + */ + + createDebug.names = []; + createDebug.skips = []; + + /** + * Map of special "%n" handling functions, for the debug "format" argument. + * + * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". + */ + createDebug.formatters = {}; + + /** + * Selects a color for a debug namespace + * @param {String} namespace The namespace string for the debug instance to be colored + * @return {Number|String} An ANSI color code for the given namespace + * @api private + */ + function selectColor(namespace) { + let hash = 0; + + for (let i = 0; i < namespace.length; i++) { + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); + hash |= 0; // Convert to 32bit integer + } + + return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; + } + createDebug.selectColor = selectColor; + + /** + * Create a debugger with the given `namespace`. + * + * @param {String} namespace + * @return {Function} + * @api public + */ + function createDebug(namespace) { + let prevTime; + let enableOverride = null; + let namespacesCache; + let enabledCache; + + function debug(...args) { + // Disabled? + if (!debug.enabled) { + return; + } + + const self = debug; + + // Set `diff` timestamp + const curr = Number(new Date()); + const ms = curr - (prevTime || curr); + self.diff = ms; + self.prev = prevTime; + self.curr = curr; + prevTime = curr; + + args[0] = createDebug.coerce(args[0]); + + if (typeof args[0] !== 'string') { + // Anything else let's inspect with %O + args.unshift('%O'); + } + + // Apply any `formatters` transformations + let index = 0; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { + // If we encounter an escaped % then don't increase the array index + if (match === '%%') { + return '%'; + } + index++; + const formatter = createDebug.formatters[format]; + if (typeof formatter === 'function') { + const val = args[index]; + match = formatter.call(self, val); + + // Now we need to remove `args[index]` since it's inlined in the `format` + args.splice(index, 1); + index--; + } + return match; + }); + + // Apply env-specific formatting (colors, etc.) + createDebug.formatArgs.call(self, args); + + const logFn = self.log || createDebug.log; + logFn.apply(self, args); + } + + debug.namespace = namespace; + debug.useColors = createDebug.useColors(); + debug.color = createDebug.selectColor(namespace); + debug.extend = extend; + debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. + + Object.defineProperty(debug, 'enabled', { + enumerable: true, + configurable: false, + get: () => { + if (enableOverride !== null) { + return enableOverride; + } + if (namespacesCache !== createDebug.namespaces) { + namespacesCache = createDebug.namespaces; + enabledCache = createDebug.enabled(namespace); + } + + return enabledCache; + }, + set: v => { + enableOverride = v; + } + }); + + // Env-specific initialization logic for debug instances + if (typeof createDebug.init === 'function') { + createDebug.init(debug); + } + + return debug; + } + + function extend(namespace, delimiter) { + const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); + newDebug.log = this.log; + return newDebug; + } + + /** + * Enables a debug mode by namespaces. This can include modes + * separated by a colon and wildcards. + * + * @param {String} namespaces + * @api public + */ + function enable(namespaces) { + createDebug.save(namespaces); + createDebug.namespaces = namespaces; + + createDebug.names = []; + createDebug.skips = []; + + const split = (typeof namespaces === 'string' ? namespaces : '') + .trim() + .replace(/\s+/g, ',') + .split(',') + .filter(Boolean); + + for (const ns of split) { + if (ns[0] === '-') { + createDebug.skips.push(ns.slice(1)); + } else { + createDebug.names.push(ns); + } + } + } + + /** + * Checks if the given string matches a namespace template, honoring + * asterisks as wildcards. + * + * @param {String} search + * @param {String} template + * @return {Boolean} + */ + function matchesTemplate(search, template) { + let searchIndex = 0; + let templateIndex = 0; + let starIndex = -1; + let matchIndex = 0; + + while (searchIndex < search.length) { + if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) { + // Match character or proceed with wildcard + if (template[templateIndex] === '*') { + starIndex = templateIndex; + matchIndex = searchIndex; + templateIndex++; // Skip the '*' + } else { + searchIndex++; + templateIndex++; + } + } else if (starIndex !== -1) { // eslint-disable-line no-negated-condition + // Backtrack to the last '*' and try to match more characters + templateIndex = starIndex + 1; + matchIndex++; + searchIndex = matchIndex; + } else { + return false; // No match + } + } + + // Handle trailing '*' in template + while (templateIndex < template.length && template[templateIndex] === '*') { + templateIndex++; + } + + return templateIndex === template.length; + } + + /** + * Disable debug output. + * + * @return {String} namespaces + * @api public + */ + function disable() { + const namespaces = [ + ...createDebug.names, + ...createDebug.skips.map(namespace => '-' + namespace) + ].join(','); + createDebug.enable(''); + return namespaces; + } + + /** + * Returns true if the given mode name is enabled, false otherwise. + * + * @param {String} name + * @return {Boolean} + * @api public + */ + function enabled(name) { + for (const skip of createDebug.skips) { + if (matchesTemplate(name, skip)) { + return false; + } + } + + for (const ns of createDebug.names) { + if (matchesTemplate(name, ns)) { + return true; + } + } + + return false; + } + + /** + * Coerce `val`. + * + * @param {Mixed} val + * @return {Mixed} + * @api private + */ + function coerce(val) { + if (val instanceof Error) { + return val.stack || val.message; + } + return val; + } + + /** + * XXX DO NOT USE. This is a temporary stub function. + * XXX It WILL be removed in the next major release. + */ + function destroy() { + console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); + } + + createDebug.enable(createDebug.load()); + + return createDebug; +} + +module.exports = setup; + + +/***/ }), + +/***/ 78549: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Detect Electron renderer / nwjs process, which is node, but we should + * treat as a browser. + */ + +if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { + module.exports = __nccwpck_require__(72293); +} else { + module.exports = __nccwpck_require__(79837); +} + + +/***/ }), + +/***/ 79837: +/***/ ((module, exports, __nccwpck_require__) => { + +/** + * Module dependencies. + */ + +const tty = __nccwpck_require__(52018); +const util = __nccwpck_require__(39023); + +/** + * This is the Node.js implementation of `debug()`. + */ + +exports.init = init; +exports.log = log; +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; +exports.destroy = util.deprecate( + () => {}, + 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' +); + +/** + * Colors. + */ + +exports.colors = [6, 2, 3, 4, 5, 1]; + +try { + // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) + // eslint-disable-next-line import/no-extraneous-dependencies + const supportsColor = __nccwpck_require__(61659); + + if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { + exports.colors = [ + 20, + 21, + 26, + 27, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 56, + 57, + 62, + 63, + 68, + 69, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 92, + 93, + 98, + 99, + 112, + 113, + 128, + 129, + 134, + 135, + 148, + 149, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 178, + 179, + 184, + 185, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 214, + 215, + 220, + 221 + ]; + } +} catch (error) { + // Swallow - we only care if `supports-color` is available; it doesn't have to be. +} + +/** + * Build up the default `inspectOpts` object from the environment variables. + * + * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js + */ + +exports.inspectOpts = Object.keys(process.env).filter(key => { + return /^debug_/i.test(key); +}).reduce((obj, key) => { + // Camel-case + const prop = key + .substring(6) + .toLowerCase() + .replace(/_([a-z])/g, (_, k) => { + return k.toUpperCase(); + }); + + // Coerce string value into JS value + let val = process.env[key]; + if (/^(yes|on|true|enabled)$/i.test(val)) { + val = true; + } else if (/^(no|off|false|disabled)$/i.test(val)) { + val = false; + } else if (val === 'null') { + val = null; + } else { + val = Number(val); + } + + obj[prop] = val; + return obj; +}, {}); + +/** + * Is stdout a TTY? Colored output is enabled when `true`. + */ + +function useColors() { + return 'colors' in exports.inspectOpts ? + Boolean(exports.inspectOpts.colors) : + tty.isatty(process.stderr.fd); +} + +/** + * Adds ANSI color escape codes if enabled. + * + * @api public + */ + +function formatArgs(args) { + const {namespace: name, useColors} = this; + + if (useColors) { + const c = this.color; + const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); + const prefix = ` ${colorCode};1m${name} \u001B[0m`; + + args[0] = prefix + args[0].split('\n').join('\n' + prefix); + args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); + } else { + args[0] = getDate() + name + ' ' + args[0]; + } +} + +function getDate() { + if (exports.inspectOpts.hideDate) { + return ''; + } + return new Date().toISOString() + ' '; +} + +/** + * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. + */ + +function log(...args) { + return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n'); +} + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + if (namespaces) { + process.env.DEBUG = namespaces; + } else { + // If you set a process.env field to null or undefined, it gets cast to the + // string 'null' or 'undefined'. Just delete instead. + delete process.env.DEBUG; + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ + +function load() { + return process.env.DEBUG; +} + +/** + * Init logic for `debug` instances. + * + * Create a new `inspectOpts` object in case `useColors` is set + * differently for a particular `debug` instance. + */ + +function init(debug) { + debug.inspectOpts = {}; + + const keys = Object.keys(exports.inspectOpts); + for (let i = 0; i < keys.length; i++) { + debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; + } +} + +module.exports = __nccwpck_require__(59444)(exports); + +const {formatters} = module.exports; + +/** + * Map %o to `util.inspect()`, all on a single line. + */ + +formatters.o = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts) + .split('\n') + .map(str => str.trim()) + .join(' '); +}; + +/** + * Map %O to `util.inspect()`, allowing multiple lines if needed. + */ + +formatters.O = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts); +}; + + +/***/ }), + +/***/ 3777: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var Stream = (__nccwpck_require__(2203).Stream); +var util = __nccwpck_require__(39023); + +module.exports = DelayedStream; +function DelayedStream() { + this.source = null; + this.dataSize = 0; + this.maxDataSize = 1024 * 1024; + this.pauseStream = true; + + this._maxDataSizeExceeded = false; + this._released = false; + this._bufferedEvents = []; +} +util.inherits(DelayedStream, Stream); + +DelayedStream.create = function(source, options) { + var delayedStream = new this(); + + options = options || {}; + for (var option in options) { + delayedStream[option] = options[option]; + } + + delayedStream.source = source; + + var realEmit = source.emit; + source.emit = function() { + delayedStream._handleEmit(arguments); + return realEmit.apply(source, arguments); + }; + + source.on('error', function() {}); + if (delayedStream.pauseStream) { + source.pause(); + } + + return delayedStream; +}; + +Object.defineProperty(DelayedStream.prototype, 'readable', { + configurable: true, + enumerable: true, + get: function() { + return this.source.readable; + } +}); + +DelayedStream.prototype.setEncoding = function() { + return this.source.setEncoding.apply(this.source, arguments); +}; + +DelayedStream.prototype.resume = function() { + if (!this._released) { + this.release(); + } + + this.source.resume(); +}; + +DelayedStream.prototype.pause = function() { + this.source.pause(); +}; + +DelayedStream.prototype.release = function() { + this._released = true; + + this._bufferedEvents.forEach(function(args) { + this.emit.apply(this, args); + }.bind(this)); + this._bufferedEvents = []; +}; + +DelayedStream.prototype.pipe = function() { + var r = Stream.prototype.pipe.apply(this, arguments); + this.resume(); + return r; +}; + +DelayedStream.prototype._handleEmit = function(args) { + if (this._released) { + this.emit.apply(this, args); + return; + } + + if (args[0] === 'data') { + this.dataSize += args[1].length; + this._checkIfMaxDataSizeExceeded(); + } + + this._bufferedEvents.push(args); +}; + +DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { + if (this._maxDataSizeExceeded) { + return; + } + + if (this.dataSize <= this.maxDataSize) { + return; + } + + this._maxDataSizeExceeded = true; + var message = + 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.' + this.emit('error', new Error(message)); +}; + + +/***/ }), + +/***/ 17628: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var callBind = __nccwpck_require__(87474); +var gOPD = __nccwpck_require__(8599); + +var hasProtoAccessor; +try { + // eslint-disable-next-line no-extra-parens, no-proto + hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype; +} catch (e) { + if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') { + throw e; + } +} + +// eslint-disable-next-line no-extra-parens +var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__')); + +var $Object = Object; +var $getPrototypeOf = $Object.getPrototypeOf; + +/** @type {import('./get')} */ +module.exports = desc && typeof desc.get === 'function' + ? callBind([desc.get]) + : typeof $getPrototypeOf === 'function' + ? /** @type {import('./get')} */ function getDunder(value) { + // eslint-disable-next-line eqeqeq + return $getPrototypeOf(value == null ? value : $Object(value)); + } + : false; + + +/***/ }), + +/***/ 32443: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var stream = __nccwpck_require__(89482) +var eos = __nccwpck_require__(909) +var inherits = __nccwpck_require__(42109) +var shift = __nccwpck_require__(8608) + +var SIGNAL_FLUSH = (Buffer.from && Buffer.from !== Uint8Array.from) + ? Buffer.from([0]) + : new Buffer([0]) + +var onuncork = function(self, fn) { + if (self._corked) self.once('uncork', fn) + else fn() +} + +var autoDestroy = function (self, err) { + if (self._autoDestroy) self.destroy(err) +} + +var destroyer = function(self, end) { + return function(err) { + if (err) autoDestroy(self, err.message === 'premature close' ? null : err) + else if (end && !self._ended) self.end() + } +} + +var end = function(ws, fn) { + if (!ws) return fn() + if (ws._writableState && ws._writableState.finished) return fn() + if (ws._writableState) return ws.end(fn) + ws.end() + fn() +} + +var noop = function() {} + +var toStreams2 = function(rs) { + return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs) +} + +var Duplexify = function(writable, readable, opts) { + if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts) + stream.Duplex.call(this, opts) + + this._writable = null + this._readable = null + this._readable2 = null + + this._autoDestroy = !opts || opts.autoDestroy !== false + this._forwardDestroy = !opts || opts.destroy !== false + this._forwardEnd = !opts || opts.end !== false + this._corked = 1 // start corked + this._ondrain = null + this._drained = false + this._forwarding = false + this._unwrite = null + this._unread = null + this._ended = false + + this.destroyed = false + + if (writable) this.setWritable(writable) + if (readable) this.setReadable(readable) +} + +inherits(Duplexify, stream.Duplex) + +Duplexify.obj = function(writable, readable, opts) { + if (!opts) opts = {} + opts.objectMode = true + opts.highWaterMark = 16 + return new Duplexify(writable, readable, opts) +} + +Duplexify.prototype.cork = function() { + if (++this._corked === 1) this.emit('cork') +} + +Duplexify.prototype.uncork = function() { + if (this._corked && --this._corked === 0) this.emit('uncork') +} + +Duplexify.prototype.setWritable = function(writable) { + if (this._unwrite) this._unwrite() + + if (this.destroyed) { + if (writable && writable.destroy) writable.destroy() + return + } + + if (writable === null || writable === false) { + this.end() + return + } + + var self = this + var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd)) + + var ondrain = function() { + var ondrain = self._ondrain + self._ondrain = null + if (ondrain) ondrain() + } + + var clear = function() { + self._writable.removeListener('drain', ondrain) + unend() + } + + if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks + + this._writable = writable + this._writable.on('drain', ondrain) + this._unwrite = clear + + this.uncork() // always uncork setWritable +} + +Duplexify.prototype.setReadable = function(readable) { + if (this._unread) this._unread() + + if (this.destroyed) { + if (readable && readable.destroy) readable.destroy() + return + } + + if (readable === null || readable === false) { + this.push(null) + this.resume() + return + } + + var self = this + var unend = eos(readable, {writable:false, readable:true}, destroyer(this)) + + var onreadable = function() { + self._forward() + } + + var onend = function() { + self.push(null) + } + + var clear = function() { + self._readable2.removeListener('readable', onreadable) + self._readable2.removeListener('end', onend) + unend() + } + + this._drained = true + this._readable = readable + this._readable2 = readable._readableState ? readable : toStreams2(readable) + this._readable2.on('readable', onreadable) + this._readable2.on('end', onend) + this._unread = clear + + this._forward() +} + +Duplexify.prototype._read = function() { + this._drained = true + this._forward() +} + +Duplexify.prototype._forward = function() { + if (this._forwarding || !this._readable2 || !this._drained) return + this._forwarding = true + + var data + + while (this._drained && (data = shift(this._readable2)) !== null) { + if (this.destroyed) continue + this._drained = this.push(data) + } + + this._forwarding = false +} + +Duplexify.prototype.destroy = function(err, cb) { + if (!cb) cb = noop + if (this.destroyed) return cb(null) + this.destroyed = true + + var self = this + process.nextTick(function() { + self._destroy(err) + cb(null) + }) +} + +Duplexify.prototype._destroy = function(err) { + if (err) { + var ondrain = this._ondrain + this._ondrain = null + if (ondrain) ondrain(err) + else this.emit('error', err) + } + + if (this._forwardDestroy) { + if (this._readable && this._readable.destroy) this._readable.destroy() + if (this._writable && this._writable.destroy) this._writable.destroy() + } + + this.emit('close') +} + +Duplexify.prototype._write = function(data, enc, cb) { + if (this.destroyed) return + if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb)) + if (data === SIGNAL_FLUSH) return this._finish(cb) + if (!this._writable) return cb() + + if (this._writable.write(data) === false) this._ondrain = cb + else if (!this.destroyed) cb() +} + +Duplexify.prototype._finish = function(cb) { + var self = this + this.emit('preend') + onuncork(this, function() { + end(self._forwardEnd && self._writable, function() { + // haxx to not emit prefinish twice + if (self._writableState.prefinished === false) self._writableState.prefinished = true + self.emit('prefinish') + onuncork(self, cb) + }) + }) +} + +Duplexify.prototype.end = function(data, enc, cb) { + if (typeof data === 'function') return this.end(null, null, data) + if (typeof enc === 'function') return this.end(data, null, enc) + this._ended = true + if (data) this.write(data) + if (!this._writableState.ending && !this._writableState.destroyed) this.write(SIGNAL_FLUSH) + return stream.Writable.prototype.end.call(this, cb) +} + +module.exports = Duplexify + + +/***/ }), + +/***/ 59086: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Buffer = (__nccwpck_require__(32857).Buffer); + +var getParamBytesForAlg = __nccwpck_require__(49475); + +var MAX_OCTET = 0x80, + CLASS_UNIVERSAL = 0, + PRIMITIVE_BIT = 0x20, + TAG_SEQ = 0x10, + TAG_INT = 0x02, + ENCODED_TAG_SEQ = (TAG_SEQ | PRIMITIVE_BIT) | (CLASS_UNIVERSAL << 6), + ENCODED_TAG_INT = TAG_INT | (CLASS_UNIVERSAL << 6); + +function base64Url(base64) { + return base64 + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function signatureAsBuffer(signature) { + if (Buffer.isBuffer(signature)) { + return signature; + } else if ('string' === typeof signature) { + return Buffer.from(signature, 'base64'); + } + + throw new TypeError('ECDSA signature must be a Base64 string or a Buffer'); +} + +function derToJose(signature, alg) { + signature = signatureAsBuffer(signature); + var paramBytes = getParamBytesForAlg(alg); + + // the DER encoded param should at most be the param size, plus a padding + // zero, since due to being a signed integer + var maxEncodedParamLength = paramBytes + 1; + + var inputLength = signature.length; + + var offset = 0; + if (signature[offset++] !== ENCODED_TAG_SEQ) { + throw new Error('Could not find expected "seq"'); + } + + var seqLength = signature[offset++]; + if (seqLength === (MAX_OCTET | 1)) { + seqLength = signature[offset++]; + } + + if (inputLength - offset < seqLength) { + throw new Error('"seq" specified length of "' + seqLength + '", only "' + (inputLength - offset) + '" remaining'); + } + + if (signature[offset++] !== ENCODED_TAG_INT) { + throw new Error('Could not find expected "int" for "r"'); + } + + var rLength = signature[offset++]; + + if (inputLength - offset - 2 < rLength) { + throw new Error('"r" specified length of "' + rLength + '", only "' + (inputLength - offset - 2) + '" available'); + } + + if (maxEncodedParamLength < rLength) { + throw new Error('"r" specified length of "' + rLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); + } + + var rOffset = offset; + offset += rLength; + + if (signature[offset++] !== ENCODED_TAG_INT) { + throw new Error('Could not find expected "int" for "s"'); + } + + var sLength = signature[offset++]; + + if (inputLength - offset !== sLength) { + throw new Error('"s" specified length of "' + sLength + '", expected "' + (inputLength - offset) + '"'); + } + + if (maxEncodedParamLength < sLength) { + throw new Error('"s" specified length of "' + sLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); + } + + var sOffset = offset; + offset += sLength; + + if (offset !== inputLength) { + throw new Error('Expected to consume entire buffer, but "' + (inputLength - offset) + '" bytes remain'); + } + + var rPadding = paramBytes - rLength, + sPadding = paramBytes - sLength; + + var dst = Buffer.allocUnsafe(rPadding + rLength + sPadding + sLength); + + for (offset = 0; offset < rPadding; ++offset) { + dst[offset] = 0; + } + signature.copy(dst, offset, rOffset + Math.max(-rPadding, 0), rOffset + rLength); + + offset = paramBytes; + + for (var o = offset; offset < o + sPadding; ++offset) { + dst[offset] = 0; + } + signature.copy(dst, offset, sOffset + Math.max(-sPadding, 0), sOffset + sLength); + + dst = dst.toString('base64'); + dst = base64Url(dst); + + return dst; +} + +function countPadding(buf, start, stop) { + var padding = 0; + while (start + padding < stop && buf[start + padding] === 0) { + ++padding; + } + + var needsSign = buf[start + padding] >= MAX_OCTET; + if (needsSign) { + --padding; + } + + return padding; +} + +function joseToDer(signature, alg) { + signature = signatureAsBuffer(signature); + var paramBytes = getParamBytesForAlg(alg); + + var signatureBytes = signature.length; + if (signatureBytes !== paramBytes * 2) { + throw new TypeError('"' + alg + '" signatures must be "' + paramBytes * 2 + '" bytes, saw "' + signatureBytes + '"'); + } + + var rPadding = countPadding(signature, 0, paramBytes); + var sPadding = countPadding(signature, paramBytes, signature.length); + var rLength = paramBytes - rPadding; + var sLength = paramBytes - sPadding; + + var rsBytes = 1 + 1 + rLength + 1 + 1 + sLength; + + var shortLength = rsBytes < MAX_OCTET; + + var dst = Buffer.allocUnsafe((shortLength ? 2 : 3) + rsBytes); + + var offset = 0; + dst[offset++] = ENCODED_TAG_SEQ; + if (shortLength) { + // Bit 8 has value "0" + // bits 7-1 give the length. + dst[offset++] = rsBytes; + } else { + // Bit 8 of first octet has value "1" + // bits 7-1 give the number of additional length octets. + dst[offset++] = MAX_OCTET | 1; + // length, base 256 + dst[offset++] = rsBytes & 0xff; + } + dst[offset++] = ENCODED_TAG_INT; + dst[offset++] = rLength; + if (rPadding < 0) { + dst[offset++] = 0; + offset += signature.copy(dst, offset, 0, paramBytes); + } else { + offset += signature.copy(dst, offset, rPadding, paramBytes); + } + dst[offset++] = ENCODED_TAG_INT; + dst[offset++] = sLength; + if (sPadding < 0) { + dst[offset++] = 0; + signature.copy(dst, offset, paramBytes); + } else { + signature.copy(dst, offset, paramBytes + sPadding); + } + + return dst; +} + +module.exports = { + derToJose: derToJose, + joseToDer: joseToDer +}; + + +/***/ }), + +/***/ 49475: +/***/ ((module) => { + +"use strict"; + + +function getParamSize(keySize) { + var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); + return result; +} + +var paramBytesForAlg = { + ES256: getParamSize(256), + ES384: getParamSize(384), + ES512: getParamSize(521) +}; + +function getParamBytesForAlg(alg) { + var paramBytes = paramBytesForAlg[alg]; + if (paramBytes) { + return paramBytes; + } + + throw new Error('Unknown algorithm "' + alg + '"'); +} + +module.exports = getParamBytesForAlg; + + +/***/ }), + +/***/ 909: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var once = __nccwpck_require__(67611); + +var noop = function() {}; + +var qnt = global.Bare ? queueMicrotask : process.nextTick.bind(process); + +var isRequest = function(stream) { + return stream.setHeader && typeof stream.abort === 'function'; +}; + +var isChildProcess = function(stream) { + return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 +}; + +var eos = function(stream, opts, callback) { + if (typeof opts === 'function') return eos(stream, null, opts); + if (!opts) opts = {}; + + callback = once(callback || noop); + + var ws = stream._writableState; + var rs = stream._readableState; + var readable = opts.readable || (opts.readable !== false && stream.readable); + var writable = opts.writable || (opts.writable !== false && stream.writable); + var cancelled = false; + + var onlegacyfinish = function() { + if (!stream.writable) onfinish(); + }; + + var onfinish = function() { + writable = false; + if (!readable) callback.call(stream); + }; + + var onend = function() { + readable = false; + if (!writable) callback.call(stream); + }; + + var onexit = function(exitCode) { + callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); + }; + + var onerror = function(err) { + callback.call(stream, err); + }; + + var onclose = function() { + qnt(onclosenexttick); + }; + + var onclosenexttick = function() { + if (cancelled) return; + if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); + if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); + }; + + var onrequest = function() { + stream.req.on('finish', onfinish); + }; + + if (isRequest(stream)) { + stream.on('complete', onfinish); + stream.on('abort', onclose); + if (stream.req) onrequest(); + else stream.on('request', onrequest); + } else if (writable && !ws) { // legacy streams + stream.on('end', onlegacyfinish); + stream.on('close', onlegacyfinish); + } + + if (isChildProcess(stream)) stream.on('exit', onexit); + + stream.on('end', onend); + stream.on('finish', onfinish); + if (opts.error !== false) stream.on('error', onerror); + stream.on('close', onclose); + + return function() { + cancelled = true; + stream.removeListener('complete', onfinish); + stream.removeListener('abort', onclose); + stream.removeListener('request', onrequest); + if (stream.req) stream.req.removeListener('finish', onfinish); + stream.removeListener('end', onlegacyfinish); + stream.removeListener('close', onlegacyfinish); + stream.removeListener('finish', onfinish); + stream.removeListener('exit', onexit); + stream.removeListener('end', onend); + stream.removeListener('error', onerror); + stream.removeListener('close', onclose); + }; +}; + +module.exports = eos; + + +/***/ }), + +/***/ 29123: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('.')} */ +var $defineProperty = Object.defineProperty || false; +if ($defineProperty) { + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + // IE 8 has a broken defineProperty + $defineProperty = false; + } +} + +module.exports = $defineProperty; + + +/***/ }), + +/***/ 84241: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./eval')} */ +module.exports = EvalError; + + +/***/ }), + +/***/ 98011: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('.')} */ +module.exports = Error; + + +/***/ }), + +/***/ 91790: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./range')} */ +module.exports = RangeError; + + +/***/ }), + +/***/ 24350: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./ref')} */ +module.exports = ReferenceError; + + +/***/ }), + +/***/ 45304: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./syntax')} */ +module.exports = SyntaxError; + + +/***/ }), + +/***/ 97183: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./type')} */ +module.exports = TypeError; + + +/***/ }), + +/***/ 64213: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./uri')} */ +module.exports = URIError; + + +/***/ }), + +/***/ 98536: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('.')} */ +module.exports = Object; + + +/***/ }), + +/***/ 88033: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var GetIntrinsic = __nccwpck_require__(83953); + +var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); + +var hasToStringTag = __nccwpck_require__(77768)(); +var hasOwn = __nccwpck_require__(63689); +var $TypeError = __nccwpck_require__(97183); + +var toStringTag = hasToStringTag ? Symbol.toStringTag : null; + +/** @type {import('.')} */ +module.exports = function setToStringTag(object, value) { + var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force; + var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable; + if ( + (typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean') + || (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean') + ) { + throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans'); + } + if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) { + if ($defineProperty) { + $defineProperty(object, toStringTag, { + configurable: !nonConfigurable, + enumerable: false, + value: value, + writable: false + }); + } else { + object[toStringTag] = value; // eslint-disable-line no-param-reassign + } + } +}; + + +/***/ }), + +/***/ 22024: +/***/ ((module, exports) => { + +"use strict"; +/** + * @author Toru Nagashima + * @copyright 2015 Toru Nagashima. All rights reserved. + * See LICENSE file in root directory for full license. + */ + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +/** + * @typedef {object} PrivateData + * @property {EventTarget} eventTarget The event target. + * @property {{type:string}} event The original event object. + * @property {number} eventPhase The current event phase. + * @property {EventTarget|null} currentTarget The current event target. + * @property {boolean} canceled The flag to prevent default. + * @property {boolean} stopped The flag to stop propagation. + * @property {boolean} immediateStopped The flag to stop propagation immediately. + * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null. + * @property {number} timeStamp The unix time. + * @private + */ + +/** + * Private data for event wrappers. + * @type {WeakMap} + * @private + */ +const privateData = new WeakMap(); + +/** + * Cache for wrapper classes. + * @type {WeakMap} + * @private + */ +const wrappers = new WeakMap(); + +/** + * Get private data. + * @param {Event} event The event object to get private data. + * @returns {PrivateData} The private data of the event. + * @private + */ +function pd(event) { + const retv = privateData.get(event); + console.assert( + retv != null, + "'this' is expected an Event object, but got", + event + ); + return retv +} + +/** + * https://dom.spec.whatwg.org/#set-the-canceled-flag + * @param data {PrivateData} private data. + */ +function setCancelFlag(data) { + if (data.passiveListener != null) { + if ( + typeof console !== "undefined" && + typeof console.error === "function" + ) { + console.error( + "Unable to preventDefault inside passive event listener invocation.", + data.passiveListener + ); + } + return + } + if (!data.event.cancelable) { + return + } + + data.canceled = true; + if (typeof data.event.preventDefault === "function") { + data.event.preventDefault(); + } +} + +/** + * @see https://dom.spec.whatwg.org/#interface-event + * @private + */ +/** + * The event wrapper. + * @constructor + * @param {EventTarget} eventTarget The event target of this dispatching. + * @param {Event|{type:string}} event The original event to wrap. + */ +function Event(eventTarget, event) { + privateData.set(this, { + eventTarget, + event, + eventPhase: 2, + currentTarget: eventTarget, + canceled: false, + stopped: false, + immediateStopped: false, + passiveListener: null, + timeStamp: event.timeStamp || Date.now(), + }); + + // https://heycam.github.io/webidl/#Unforgeable + Object.defineProperty(this, "isTrusted", { value: false, enumerable: true }); + + // Define accessors + const keys = Object.keys(event); + for (let i = 0; i < keys.length; ++i) { + const key = keys[i]; + if (!(key in this)) { + Object.defineProperty(this, key, defineRedirectDescriptor(key)); + } + } +} + +// Should be enumerable, but class methods are not enumerable. +Event.prototype = { + /** + * The type of this event. + * @type {string} + */ + get type() { + return pd(this).event.type + }, + + /** + * The target of this event. + * @type {EventTarget} + */ + get target() { + return pd(this).eventTarget + }, + + /** + * The target of this event. + * @type {EventTarget} + */ + get currentTarget() { + return pd(this).currentTarget + }, + + /** + * @returns {EventTarget[]} The composed path of this event. + */ + composedPath() { + const currentTarget = pd(this).currentTarget; + if (currentTarget == null) { + return [] + } + return [currentTarget] + }, + + /** + * Constant of NONE. + * @type {number} + */ + get NONE() { + return 0 + }, + + /** + * Constant of CAPTURING_PHASE. + * @type {number} + */ + get CAPTURING_PHASE() { + return 1 + }, + + /** + * Constant of AT_TARGET. + * @type {number} + */ + get AT_TARGET() { + return 2 + }, + + /** + * Constant of BUBBLING_PHASE. + * @type {number} + */ + get BUBBLING_PHASE() { + return 3 + }, + + /** + * The target of this event. + * @type {number} + */ + get eventPhase() { + return pd(this).eventPhase + }, + + /** + * Stop event bubbling. + * @returns {void} + */ + stopPropagation() { + const data = pd(this); + + data.stopped = true; + if (typeof data.event.stopPropagation === "function") { + data.event.stopPropagation(); + } + }, + + /** + * Stop event bubbling. + * @returns {void} + */ + stopImmediatePropagation() { + const data = pd(this); + + data.stopped = true; + data.immediateStopped = true; + if (typeof data.event.stopImmediatePropagation === "function") { + data.event.stopImmediatePropagation(); + } + }, + + /** + * The flag to be bubbling. + * @type {boolean} + */ + get bubbles() { + return Boolean(pd(this).event.bubbles) + }, + + /** + * The flag to be cancelable. + * @type {boolean} + */ + get cancelable() { + return Boolean(pd(this).event.cancelable) + }, + + /** + * Cancel this event. + * @returns {void} + */ + preventDefault() { + setCancelFlag(pd(this)); + }, + + /** + * The flag to indicate cancellation state. + * @type {boolean} + */ + get defaultPrevented() { + return pd(this).canceled + }, + + /** + * The flag to be composed. + * @type {boolean} + */ + get composed() { + return Boolean(pd(this).event.composed) + }, + + /** + * The unix time of this event. + * @type {number} + */ + get timeStamp() { + return pd(this).timeStamp + }, + + /** + * The target of this event. + * @type {EventTarget} + * @deprecated + */ + get srcElement() { + return pd(this).eventTarget + }, + + /** + * The flag to stop event bubbling. + * @type {boolean} + * @deprecated + */ + get cancelBubble() { + return pd(this).stopped + }, + set cancelBubble(value) { + if (!value) { + return + } + const data = pd(this); + + data.stopped = true; + if (typeof data.event.cancelBubble === "boolean") { + data.event.cancelBubble = true; + } + }, + + /** + * The flag to indicate cancellation state. + * @type {boolean} + * @deprecated + */ + get returnValue() { + return !pd(this).canceled + }, + set returnValue(value) { + if (!value) { + setCancelFlag(pd(this)); + } + }, + + /** + * Initialize this event object. But do nothing under event dispatching. + * @param {string} type The event type. + * @param {boolean} [bubbles=false] The flag to be possible to bubble up. + * @param {boolean} [cancelable=false] The flag to be possible to cancel. + * @deprecated + */ + initEvent() { + // Do nothing. + }, +}; + +// `constructor` is not enumerable. +Object.defineProperty(Event.prototype, "constructor", { + value: Event, + configurable: true, + writable: true, +}); + +// Ensure `event instanceof window.Event` is `true`. +if (typeof window !== "undefined" && typeof window.Event !== "undefined") { + Object.setPrototypeOf(Event.prototype, window.Event.prototype); + + // Make association for wrappers. + wrappers.set(window.Event.prototype, Event); +} + +/** + * Get the property descriptor to redirect a given property. + * @param {string} key Property name to define property descriptor. + * @returns {PropertyDescriptor} The property descriptor to redirect the property. + * @private + */ +function defineRedirectDescriptor(key) { + return { + get() { + return pd(this).event[key] + }, + set(value) { + pd(this).event[key] = value; + }, + configurable: true, + enumerable: true, + } +} + +/** + * Get the property descriptor to call a given method property. + * @param {string} key Property name to define property descriptor. + * @returns {PropertyDescriptor} The property descriptor to call the method property. + * @private + */ +function defineCallDescriptor(key) { + return { + value() { + const event = pd(this).event; + return event[key].apply(event, arguments) + }, + configurable: true, + enumerable: true, + } +} + +/** + * Define new wrapper class. + * @param {Function} BaseEvent The base wrapper class. + * @param {Object} proto The prototype of the original event. + * @returns {Function} The defined wrapper class. + * @private + */ +function defineWrapper(BaseEvent, proto) { + const keys = Object.keys(proto); + if (keys.length === 0) { + return BaseEvent + } + + /** CustomEvent */ + function CustomEvent(eventTarget, event) { + BaseEvent.call(this, eventTarget, event); + } + + CustomEvent.prototype = Object.create(BaseEvent.prototype, { + constructor: { value: CustomEvent, configurable: true, writable: true }, + }); + + // Define accessors. + for (let i = 0; i < keys.length; ++i) { + const key = keys[i]; + if (!(key in BaseEvent.prototype)) { + const descriptor = Object.getOwnPropertyDescriptor(proto, key); + const isFunc = typeof descriptor.value === "function"; + Object.defineProperty( + CustomEvent.prototype, + key, + isFunc + ? defineCallDescriptor(key) + : defineRedirectDescriptor(key) + ); + } + } + + return CustomEvent +} + +/** + * Get the wrapper class of a given prototype. + * @param {Object} proto The prototype of the original event to get its wrapper. + * @returns {Function} The wrapper class. + * @private + */ +function getWrapper(proto) { + if (proto == null || proto === Object.prototype) { + return Event + } + + let wrapper = wrappers.get(proto); + if (wrapper == null) { + wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto); + wrappers.set(proto, wrapper); + } + return wrapper +} + +/** + * Wrap a given event to management a dispatching. + * @param {EventTarget} eventTarget The event target of this dispatching. + * @param {Object} event The event to wrap. + * @returns {Event} The wrapper instance. + * @private + */ +function wrapEvent(eventTarget, event) { + const Wrapper = getWrapper(Object.getPrototypeOf(event)); + return new Wrapper(eventTarget, event) +} + +/** + * Get the immediateStopped flag of a given event. + * @param {Event} event The event to get. + * @returns {boolean} The flag to stop propagation immediately. + * @private + */ +function isStopped(event) { + return pd(event).immediateStopped +} + +/** + * Set the current event phase of a given event. + * @param {Event} event The event to set current target. + * @param {number} eventPhase New event phase. + * @returns {void} + * @private + */ +function setEventPhase(event, eventPhase) { + pd(event).eventPhase = eventPhase; +} + +/** + * Set the current target of a given event. + * @param {Event} event The event to set current target. + * @param {EventTarget|null} currentTarget New current target. + * @returns {void} + * @private + */ +function setCurrentTarget(event, currentTarget) { + pd(event).currentTarget = currentTarget; +} + +/** + * Set a passive listener of a given event. + * @param {Event} event The event to set current target. + * @param {Function|null} passiveListener New passive listener. + * @returns {void} + * @private + */ +function setPassiveListener(event, passiveListener) { + pd(event).passiveListener = passiveListener; +} + +/** + * @typedef {object} ListenerNode + * @property {Function} listener + * @property {1|2|3} listenerType + * @property {boolean} passive + * @property {boolean} once + * @property {ListenerNode|null} next + * @private + */ + +/** + * @type {WeakMap>} + * @private + */ +const listenersMap = new WeakMap(); + +// Listener types +const CAPTURE = 1; +const BUBBLE = 2; +const ATTRIBUTE = 3; + +/** + * Check whether a given value is an object or not. + * @param {any} x The value to check. + * @returns {boolean} `true` if the value is an object. + */ +function isObject(x) { + return x !== null && typeof x === "object" //eslint-disable-line no-restricted-syntax +} + +/** + * Get listeners. + * @param {EventTarget} eventTarget The event target to get. + * @returns {Map} The listeners. + * @private + */ +function getListeners(eventTarget) { + const listeners = listenersMap.get(eventTarget); + if (listeners == null) { + throw new TypeError( + "'this' is expected an EventTarget object, but got another value." + ) + } + return listeners +} + +/** + * Get the property descriptor for the event attribute of a given event. + * @param {string} eventName The event name to get property descriptor. + * @returns {PropertyDescriptor} The property descriptor. + * @private + */ +function defineEventAttributeDescriptor(eventName) { + return { + get() { + const listeners = getListeners(this); + let node = listeners.get(eventName); + while (node != null) { + if (node.listenerType === ATTRIBUTE) { + return node.listener + } + node = node.next; + } + return null + }, + + set(listener) { + if (typeof listener !== "function" && !isObject(listener)) { + listener = null; // eslint-disable-line no-param-reassign + } + const listeners = getListeners(this); + + // Traverse to the tail while removing old value. + let prev = null; + let node = listeners.get(eventName); + while (node != null) { + if (node.listenerType === ATTRIBUTE) { + // Remove old value. + if (prev !== null) { + prev.next = node.next; + } else if (node.next !== null) { + listeners.set(eventName, node.next); + } else { + listeners.delete(eventName); + } + } else { + prev = node; + } + + node = node.next; + } + + // Add new value. + if (listener !== null) { + const newNode = { + listener, + listenerType: ATTRIBUTE, + passive: false, + once: false, + next: null, + }; + if (prev === null) { + listeners.set(eventName, newNode); + } else { + prev.next = newNode; + } + } + }, + configurable: true, + enumerable: true, + } +} + +/** + * Define an event attribute (e.g. `eventTarget.onclick`). + * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite. + * @param {string} eventName The event name to define. + * @returns {void} + */ +function defineEventAttribute(eventTargetPrototype, eventName) { + Object.defineProperty( + eventTargetPrototype, + `on${eventName}`, + defineEventAttributeDescriptor(eventName) + ); +} + +/** + * Define a custom EventTarget with event attributes. + * @param {string[]} eventNames Event names for event attributes. + * @returns {EventTarget} The custom EventTarget. + * @private + */ +function defineCustomEventTarget(eventNames) { + /** CustomEventTarget */ + function CustomEventTarget() { + EventTarget.call(this); + } + + CustomEventTarget.prototype = Object.create(EventTarget.prototype, { + constructor: { + value: CustomEventTarget, + configurable: true, + writable: true, + }, + }); + + for (let i = 0; i < eventNames.length; ++i) { + defineEventAttribute(CustomEventTarget.prototype, eventNames[i]); + } + + return CustomEventTarget +} + +/** + * EventTarget. + * + * - This is constructor if no arguments. + * - This is a function which returns a CustomEventTarget constructor if there are arguments. + * + * For example: + * + * class A extends EventTarget {} + * class B extends EventTarget("message") {} + * class C extends EventTarget("message", "error") {} + * class D extends EventTarget(["message", "error"]) {} + */ +function EventTarget() { + /*eslint-disable consistent-return */ + if (this instanceof EventTarget) { + listenersMap.set(this, new Map()); + return + } + if (arguments.length === 1 && Array.isArray(arguments[0])) { + return defineCustomEventTarget(arguments[0]) + } + if (arguments.length > 0) { + const types = new Array(arguments.length); + for (let i = 0; i < arguments.length; ++i) { + types[i] = arguments[i]; + } + return defineCustomEventTarget(types) + } + throw new TypeError("Cannot call a class as a function") + /*eslint-enable consistent-return */ +} + +// Should be enumerable, but class methods are not enumerable. +EventTarget.prototype = { + /** + * Add a given listener to this event target. + * @param {string} eventName The event name to add. + * @param {Function} listener The listener to add. + * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener. + * @returns {void} + */ + addEventListener(eventName, listener, options) { + if (listener == null) { + return + } + if (typeof listener !== "function" && !isObject(listener)) { + throw new TypeError("'listener' should be a function or an object.") + } + + const listeners = getListeners(this); + const optionsIsObj = isObject(options); + const capture = optionsIsObj + ? Boolean(options.capture) + : Boolean(options); + const listenerType = capture ? CAPTURE : BUBBLE; + const newNode = { + listener, + listenerType, + passive: optionsIsObj && Boolean(options.passive), + once: optionsIsObj && Boolean(options.once), + next: null, + }; + + // Set it as the first node if the first node is null. + let node = listeners.get(eventName); + if (node === undefined) { + listeners.set(eventName, newNode); + return + } + + // Traverse to the tail while checking duplication.. + let prev = null; + while (node != null) { + if ( + node.listener === listener && + node.listenerType === listenerType + ) { + // Should ignore duplication. + return + } + prev = node; + node = node.next; + } + + // Add it. + prev.next = newNode; + }, + + /** + * Remove a given listener from this event target. + * @param {string} eventName The event name to remove. + * @param {Function} listener The listener to remove. + * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener. + * @returns {void} + */ + removeEventListener(eventName, listener, options) { + if (listener == null) { + return + } + + const listeners = getListeners(this); + const capture = isObject(options) + ? Boolean(options.capture) + : Boolean(options); + const listenerType = capture ? CAPTURE : BUBBLE; + + let prev = null; + let node = listeners.get(eventName); + while (node != null) { + if ( + node.listener === listener && + node.listenerType === listenerType + ) { + if (prev !== null) { + prev.next = node.next; + } else if (node.next !== null) { + listeners.set(eventName, node.next); + } else { + listeners.delete(eventName); + } + return + } + + prev = node; + node = node.next; + } + }, + + /** + * Dispatch a given event. + * @param {Event|{type:string}} event The event to dispatch. + * @returns {boolean} `false` if canceled. + */ + dispatchEvent(event) { + if (event == null || typeof event.type !== "string") { + throw new TypeError('"event.type" should be a string.') + } + + // If listeners aren't registered, terminate. + const listeners = getListeners(this); + const eventName = event.type; + let node = listeners.get(eventName); + if (node == null) { + return true + } + + // Since we cannot rewrite several properties, so wrap object. + const wrappedEvent = wrapEvent(this, event); + + // This doesn't process capturing phase and bubbling phase. + // This isn't participating in a tree. + let prev = null; + while (node != null) { + // Remove this listener if it's once + if (node.once) { + if (prev !== null) { + prev.next = node.next; + } else if (node.next !== null) { + listeners.set(eventName, node.next); + } else { + listeners.delete(eventName); + } + } else { + prev = node; + } + + // Call this listener + setPassiveListener( + wrappedEvent, + node.passive ? node.listener : null + ); + if (typeof node.listener === "function") { + try { + node.listener.call(this, wrappedEvent); + } catch (err) { + if ( + typeof console !== "undefined" && + typeof console.error === "function" + ) { + console.error(err); + } + } + } else if ( + node.listenerType !== ATTRIBUTE && + typeof node.listener.handleEvent === "function" + ) { + node.listener.handleEvent(wrappedEvent); + } + + // Break if `event.stopImmediatePropagation` was called. + if (isStopped(wrappedEvent)) { + break + } + + node = node.next; + } + setPassiveListener(wrappedEvent, null); + setEventPhase(wrappedEvent, 0); + setCurrentTarget(wrappedEvent, null); + + return !wrappedEvent.defaultPrevented + }, +}; + +// `constructor` is not enumerable. +Object.defineProperty(EventTarget.prototype, "constructor", { + value: EventTarget, + configurable: true, + writable: true, +}); + +// Ensure `eventTarget instanceof window.EventTarget` is `true`. +if ( + typeof window !== "undefined" && + typeof window.EventTarget !== "undefined" +) { + Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype); +} + +exports.defineEventAttribute = defineEventAttribute; +exports.EventTarget = EventTarget; +exports["default"] = EventTarget; + +module.exports = EventTarget +module.exports.EventTarget = module.exports["default"] = EventTarget +module.exports.defineEventAttribute = defineEventAttribute +//# sourceMappingURL=event-target-shim.js.map + + +/***/ }), + +/***/ 92229: +/***/ ((module) => { + +"use strict"; + + +var hasOwn = Object.prototype.hasOwnProperty; +var toStr = Object.prototype.toString; +var defineProperty = Object.defineProperty; +var gOPD = Object.getOwnPropertyDescriptor; + +var isArray = function isArray(arr) { + if (typeof Array.isArray === 'function') { + return Array.isArray(arr); + } + + return toStr.call(arr) === '[object Array]'; +}; + +var isPlainObject = function isPlainObject(obj) { + if (!obj || toStr.call(obj) !== '[object Object]') { + return false; + } + + var hasOwnConstructor = hasOwn.call(obj, 'constructor'); + var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); + // Not own constructor property must be Object + if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + var key; + for (key in obj) { /**/ } + + return typeof key === 'undefined' || hasOwn.call(obj, key); +}; + +// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target +var setProperty = function setProperty(target, options) { + if (defineProperty && options.name === '__proto__') { + defineProperty(target, options.name, { + enumerable: true, + configurable: true, + value: options.newValue, + writable: true + }); + } else { + target[options.name] = options.newValue; + } +}; + +// Return undefined instead of __proto__ if '__proto__' is not an own property +var getProperty = function getProperty(obj, name) { + if (name === '__proto__') { + if (!hasOwn.call(obj, name)) { + return void 0; + } else if (gOPD) { + // In early versions of node, obj['__proto__'] is buggy when obj has + // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. + return gOPD(obj, name).value; + } + } + + return obj[name]; +}; + +module.exports = function extend() { + var options, name, src, copy, copyIsArray, clone; + var target = arguments[0]; + var i = 1; + var length = arguments.length; + var deep = false; + + // Handle a deep copy situation + if (typeof target === 'boolean') { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + if (target == null || (typeof target !== 'object' && typeof target !== 'function')) { + target = {}; + } + + for (; i < length; ++i) { + options = arguments[i]; + // Only deal with non-null/undefined values + if (options != null) { + // Extend the base object + for (name in options) { + src = getProperty(target, name); + copy = getProperty(options, name); + + // Prevent never-ending loop + if (target !== copy) { + // Recurse if we're merging plain objects or arrays + if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) { + if (copyIsArray) { + copyIsArray = false; + clone = src && isArray(src) ? src : []; + } else { + clone = src && isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); + + // Don't bring in undefined values + } else if (typeof copy !== 'undefined') { + setProperty(target, { name: name, newValue: copy }); + } + } + } + } + } + + // Return the modified object + return target; +}; + + +/***/ }), + +/***/ 93772: +/***/ (function() { + +(function(scope) {'use strict'; +function B(r,e){var f;return r instanceof Buffer?f=r:f=Buffer.from(r.buffer,r.byteOffset,r.byteLength),f.toString(e)}var w=function(r){return Buffer.from(r)};function h(r){for(var e=0,f=Math.min(256*256,r.length+1),n=new Uint16Array(f),i=[],o=0;;){var t=e=f-1){var s=n.subarray(0,o),m=s;if(i.push(String.fromCharCode.apply(null,m)),!t)return i.join("");r=r.subarray(e),e=0,o=0}var a=r[e++];if((a&128)===0)n[o++]=a;else if((a&224)===192){var d=r[e++]&63;n[o++]=(a&31)<<6|d}else if((a&240)===224){var d=r[e++]&63,l=r[e++]&63;n[o++]=(a&31)<<12|d<<6|l}else if((a&248)===240){var d=r[e++]&63,l=r[e++]&63,R=r[e++]&63,c=(a&7)<<18|d<<12|l<<6|R;c>65535&&(c-=65536,n[o++]=c>>>10&1023|55296,c=56320|c&1023),n[o++]=c}}}function F(r){for(var e=0,f=r.length,n=0,i=Math.max(32,f+(f>>>1)+7),o=new Uint8Array(i>>>3<<3);e=55296&&t<=56319){if(e=55296&&t<=56319)continue}if(n+4>o.length){i+=8,i*=1+e/r.length*2,i=i>>>3<<3;var m=new Uint8Array(i);m.set(o),o=m}if((t&4294967168)===0){o[n++]=t;continue}else if((t&4294965248)===0)o[n++]=t>>>6&31|192;else if((t&4294901760)===0)o[n++]=t>>>12&15|224,o[n++]=t>>>6&63|128;else if((t&4292870144)===0)o[n++]=t>>>18&7|240,o[n++]=t>>>12&63|128,o[n++]=t>>>6&63|128;else continue;o[n++]=t&63|128}return o.slice?o.slice(0,n):o.subarray(0,n)}var u="Failed to ",p=function(r,e,f){if(r)throw new Error("".concat(u).concat(e,": the '").concat(f,"' option is unsupported."))};var x=typeof Buffer=="function"&&Buffer.from;var A=x?w:F;function v(){this.encoding="utf-8"}v.prototype.encode=function(r,e){return p(e&&e.stream,"encode","stream"),A(r)};function U(r){var e;try{var f=new Blob([r],{type:"text/plain;charset=UTF-8"});e=URL.createObjectURL(f);var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}finally{e&&URL.revokeObjectURL(e)}}var O=!x&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",S=["utf-8","utf8","unicode-1-1-utf-8"],T=h;x?T=B:O&&(T=function(r){try{return U(r)}catch(e){return h(r)}});var y="construct 'TextDecoder'",E="".concat(u," ").concat(y,": the ");function g(r,e){p(e&&e.fatal,y,"fatal"),r=r||"utf-8";var f;if(x?f=Buffer.isEncoding(r):f=S.indexOf(r.toLowerCase())!==-1,!f)throw new RangeError("".concat(E," encoding label provided ('").concat(r,"') is invalid."));this.encoding=r,this.fatal=!1,this.ignoreBOM=!1}g.prototype.decode=function(r,e){p(e&&e.stream,"decode","stream");var f;return r instanceof Uint8Array?f=r:r.buffer instanceof ArrayBuffer?f=new Uint8Array(r.buffer):f=new Uint8Array(r),T(f,this.encoding)};scope.TextEncoder=scope.TextEncoder||v;scope.TextDecoder=scope.TextDecoder||g; +}(typeof window !== 'undefined' ? window : (typeof global !== 'undefined' ? global : this))); + + +/***/ }), + +/***/ 53005: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var CombinedStream = __nccwpck_require__(40573); +var util = __nccwpck_require__(39023); +var path = __nccwpck_require__(16928); +var http = __nccwpck_require__(58611); +var https = __nccwpck_require__(65692); +var parseUrl = (__nccwpck_require__(87016).parse); +var fs = __nccwpck_require__(79896); +var crypto = __nccwpck_require__(76982); +var mime = __nccwpck_require__(77949); +var asynckit = __nccwpck_require__(15181); +var hasOwn = __nccwpck_require__(63689); +var setToStringTag = __nccwpck_require__(88033); +var populate = __nccwpck_require__(38638); +var Buffer = (__nccwpck_require__(32857).Buffer); + +/** + * Create readable "multipart/form-data" streams. + * Can be used to submit forms + * and file uploads to other web applications. + * + * @constructor + * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream + */ +function FormData(options) { + if (!(this instanceof FormData)) { + return new FormData(); + } + + this._overheadLength = 0; + this._valueLength = 0; + this._valuesToMeasure = []; + + CombinedStream.call(this); + + options = options || {}; + for (var option in options) { // eslint-disable-line no-restricted-syntax + this[option] = options[option]; + } +} + +// make it a Stream +util.inherits(FormData, CombinedStream); + +FormData.LINE_BREAK = '\r\n'; +FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream'; + +FormData.prototype.append = function (field, value, options) { + + options = options || {}; + + // allow filename as single option + if (typeof options === 'string') { + options = { filename: options }; + } + + var append = CombinedStream.prototype.append.bind(this); + + // all that streamy business can't handle numbers + if (typeof value === 'number' || value == null) { + value = String(value); + } + + // https://github.com/felixge/node-form-data/issues/38 + if (Array.isArray(value)) { + /* + * Please convert your array into string + * the way web server expects it + */ + this._error(new Error('Arrays are not supported.')); + return; + } + + var header = this._multiPartHeader(field, value, options); + var footer = this._multiPartFooter(); + + append(header); + append(value); + append(footer); + + // pass along options.knownLength + this._trackLength(header, value, options); +}; + +FormData.prototype._trackLength = function (header, value, options) { + var valueLength = 0; + + /* + * used w/ getLengthSync(), when length is known. + * e.g. for streaming directly from a remote server, + * w/ a known file a size, and not wanting to wait for + * incoming file to finish to get its size. + */ + if (options.knownLength != null) { + valueLength += Number(options.knownLength); + } else if (Buffer.isBuffer(value)) { + valueLength = value.length; + } else if (typeof value === 'string') { + valueLength = Buffer.byteLength(value); + } + + this._valueLength += valueLength; + + // @check why add CRLF? does this account for custom/multiple CRLFs? + this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length; + + // empty or either doesn't have path or not an http response + if (!value || (!value.path && !(value.readable && hasOwn(value, 'httpVersion')))) { + return; + } + + // no need to bother with the length + if (!options.knownLength) { + this._valuesToMeasure.push(value); + } +}; + +FormData.prototype._lengthRetriever = function (value, callback) { + if (hasOwn(value, 'fd')) { + + /* + * take read range into a account + * `end` = Infinity –> read file till the end + * + * TODO: Looks like there is bug in Node fs.createReadStream + * it doesn't respect `end` options without `start` options + * Fix it when node fixes it. + * https://github.com/joyent/node/issues/7819 + */ + if (value.end != null && value.end !== Infinity && value.start != null) { + + /* + * when end specified + * no need to calculate range + * inclusive, starts with 0 + */ + callback(null, value.end + 1 - (value.start ? value.start : 0)); + + // not that fast snoopy + } else { + // still need to fetch file size from fs + fs.stat(value.path, function (err, stat) { + + var fileSize; + + if (err) { + callback(err); + return; + } + + // update final size based on the range options + fileSize = stat.size - (value.start ? value.start : 0); + callback(null, fileSize); + }); + } + + // or http response + } else if (hasOwn(value, 'httpVersion')) { + callback(null, Number(value.headers['content-length'])); + + // or request stream http://github.com/mikeal/request + } else if (hasOwn(value, 'httpModule')) { + // wait till response come back + value.on('response', function (response) { + value.pause(); + callback(null, Number(response.headers['content-length'])); + }); + value.resume(); + + // something else + } else { + callback('Unknown stream'); + } +}; + +FormData.prototype._multiPartHeader = function (field, value, options) { + /* + * custom header specified (as string)? + * it becomes responsible for boundary + * (e.g. to handle extra CRLFs on .NET servers) + */ + if (typeof options.header === 'string') { + return options.header; + } + + var contentDisposition = this._getContentDisposition(value, options); + var contentType = this._getContentType(value, options); + + var contents = ''; + var headers = { + // add custom disposition as third element or keep it two elements if not + 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []), + // if no content type. allow it to be empty array + 'Content-Type': [].concat(contentType || []), + }; + + // allow custom headers. + if (typeof options.header === 'object') { + populate(headers, options.header); + } + + var header; + for (var prop in headers) { // eslint-disable-line no-restricted-syntax + if (hasOwn(headers, prop)) { + header = headers[prop]; + + // skip nullish headers. + if (header == null) { + continue; // eslint-disable-line no-continue, no-restricted-syntax + } + + // convert all headers to arrays. + if (!Array.isArray(header)) { + header = [header]; + } + + // add non-empty headers. + if (header.length) { + contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK; + } + } + } + + return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK; +}; + +FormData.prototype._getContentDisposition = function (value, options) { + + var filename, + contentDisposition; + if (typeof options.filepath === 'string') { + // custom filepath for relative paths + filename = path.normalize(options.filepath).replace(/\\/g, '/'); + } else if (options.filename || (value && (value.name || value.path))) { + /* + * custom filename take precedence + * formidable and the browser add a name property + * fs- and request- streams have path property + */ + filename = path.basename(options.filename || (value && (value.name || value.path))); + } else if (value && value.readable && hasOwn(value, 'httpVersion')) { + // or try http response + filename = path.basename(value.client._httpMessage.path || ''); + } + + if (filename) { + contentDisposition = 'filename="' + filename + '"'; + } + + return contentDisposition; +}; + +FormData.prototype._getContentType = function (value, options) { + + // use custom content-type above all + var contentType = options.contentType; + + // or try `name` from formidable, browser + if (!contentType && value && value.name) { + contentType = mime.lookup(value.name); + } + + // or try `path` from fs-, request- streams + if (!contentType && value && value.path) { + contentType = mime.lookup(value.path); + } + + // or if it's http-reponse + if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) { + contentType = value.headers['content-type']; + } + + // or guess it from the filepath or filename + if (!contentType && (options.filepath || options.filename)) { + contentType = mime.lookup(options.filepath || options.filename); + } + + // fallback to the default content type if `value` is not simple value + if (!contentType && value && typeof value === 'object') { + contentType = FormData.DEFAULT_CONTENT_TYPE; + } + + return contentType; +}; + +FormData.prototype._multiPartFooter = function () { + return function (next) { + var footer = FormData.LINE_BREAK; + + var lastPart = this._streams.length === 0; + if (lastPart) { + footer += this._lastBoundary(); + } + + next(footer); + }.bind(this); +}; + +FormData.prototype._lastBoundary = function () { + return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK; +}; + +FormData.prototype.getHeaders = function (userHeaders) { + var header; + var formHeaders = { + 'content-type': 'multipart/form-data; boundary=' + this.getBoundary(), + }; + + for (header in userHeaders) { // eslint-disable-line no-restricted-syntax + if (hasOwn(userHeaders, header)) { + formHeaders[header.toLowerCase()] = userHeaders[header]; + } + } + + return formHeaders; +}; + +FormData.prototype.setBoundary = function (boundary) { + if (typeof boundary !== 'string') { + throw new TypeError('FormData boundary must be a string'); + } + this._boundary = boundary; +}; + +FormData.prototype.getBoundary = function () { + if (!this._boundary) { + this._generateBoundary(); + } + + return this._boundary; +}; + +FormData.prototype.getBuffer = function () { + var dataBuffer = Buffer.alloc(0); + var boundary = this.getBoundary(); + + // Create the form content. Add Line breaks to the end of data. + for (var i = 0, len = this._streams.length; i < len; i++) { + if (typeof this._streams[i] !== 'function') { + + // Add content to the buffer. + if (Buffer.isBuffer(this._streams[i])) { + dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]); + } else { + dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]); + } + + // Add break after content. + if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) { + dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData.LINE_BREAK)]); + } + } + } + + // Add the footer and return the Buffer object. + return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]); +}; + +FormData.prototype._generateBoundary = function () { + // This generates a 50 character boundary similar to those used by Firefox. + + // They are optimized for boyer-moore parsing. + this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex'); +}; + +/* + * Note: getLengthSync DOESN'T calculate streams length + * As workaround one can calculate file size manually + * and add it as knownLength option + */ +FormData.prototype.getLengthSync = function () { + var knownLength = this._overheadLength + this._valueLength; + + /* + * Don't get confused, there are 3 "internal" streams for each keyval pair + * so it basically checks if there is any value added to the form + */ + if (this._streams.length) { + knownLength += this._lastBoundary().length; + } + + // https://github.com/form-data/form-data/issues/40 + if (!this.hasKnownLength()) { + /* + * Some async length retrievers are present + * therefore synchronous length calculation is false. + * Please use getLength(callback) to get proper length + */ + this._error(new Error('Cannot calculate proper length in synchronous way.')); + } + + return knownLength; +}; + +/* + * Public API to check if length of added values is known + * https://github.com/form-data/form-data/issues/196 + * https://github.com/form-data/form-data/issues/262 + */ +FormData.prototype.hasKnownLength = function () { + var hasKnownLength = true; + + if (this._valuesToMeasure.length) { + hasKnownLength = false; + } + + return hasKnownLength; +}; + +FormData.prototype.getLength = function (cb) { + var knownLength = this._overheadLength + this._valueLength; + + if (this._streams.length) { + knownLength += this._lastBoundary().length; + } + + if (!this._valuesToMeasure.length) { + process.nextTick(cb.bind(this, null, knownLength)); + return; + } + + asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function (err, values) { + if (err) { + cb(err); + return; + } + + values.forEach(function (length) { + knownLength += length; + }); + + cb(null, knownLength); + }); +}; + +FormData.prototype.submit = function (params, cb) { + var request; + var options; + var defaults = { method: 'post' }; + + /* + * parse provided url if it's string + * or treat it as options object + */ + if (typeof params === 'string') { + + params = parseUrl(params); + options = populate({ + port: params.port, + path: params.pathname, + host: params.hostname, + protocol: params.protocol, + }, defaults); + + // use custom params + } else { + + options = populate(params, defaults); + // if no port provided use default one + if (!options.port) { + options.port = options.protocol === 'https:' ? 443 : 80; + } + } + + // put that good code in getHeaders to some use + options.headers = this.getHeaders(params.headers); + + // https if specified, fallback to http in any other case + if (options.protocol === 'https:') { + request = https.request(options); + } else { + request = http.request(options); + } + + // get content length and fire away + this.getLength(function (err, length) { + if (err) { + this._error(err); + return; + } + + // add content length + request.setHeader('Content-Length', length); + + this.pipe(request); + if (cb) { + request.on('error', cb); + request.on('response', cb.bind(this, null)); + } + }.bind(this)); + + return request; +}; + +FormData.prototype._error = function (err) { + if (!this.error) { + this.error = err; + this.pause(); + this.emit('error', err); + } +}; + +FormData.prototype.toString = function () { + return '[object FormData]'; +}; +setToStringTag(FormData, 'FormData'); + +module.exports = FormData; + + +/***/ }), + +/***/ 38638: +/***/ ((module) => { + +"use strict"; + + +// populates missing values +module.exports = function (dst, src) { + Object.keys(src).forEach(function (prop) { + dst[prop] = dst[prop] || src[prop]; + }); + + return dst; +}; + + +/***/ }), + +/***/ 70190: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var require;if (global.GENTLY) require = GENTLY.hijack(require); + +var util = __nccwpck_require__(39023), + fs = __nccwpck_require__(79896), + EventEmitter = (__nccwpck_require__(24434).EventEmitter), + crypto = __nccwpck_require__(76982); + +function File(properties) { + EventEmitter.call(this); + + this.size = 0; + this.path = null; + this.name = null; + this.type = null; + this.hash = null; + this.lastModifiedDate = null; + + this._writeStream = null; + + for (var key in properties) { + this[key] = properties[key]; + } + + if(typeof this.hash === 'string') { + this.hash = crypto.createHash(properties.hash); + } else { + this.hash = null; + } +} +module.exports = File; +util.inherits(File, EventEmitter); + +File.prototype.open = function() { + this._writeStream = new fs.WriteStream(this.path); +}; + +File.prototype.toJSON = function() { + var json = { + size: this.size, + path: this.path, + name: this.name, + type: this.type, + mtime: this.lastModifiedDate, + length: this.length, + filename: this.filename, + mime: this.mime + }; + if (this.hash && this.hash != "") { + json.hash = this.hash; + } + return json; +}; + +File.prototype.write = function(buffer, cb) { + var self = this; + if (self.hash) { + self.hash.update(buffer); + } + + if (this._writeStream.closed) { + return cb(); + } + + this._writeStream.write(buffer, function() { + self.lastModifiedDate = new Date(); + self.size += buffer.length; + self.emit('progress', self.size); + cb(); + }); +}; + +File.prototype.end = function(cb) { + var self = this; + if (self.hash) { + self.hash = self.hash.digest('hex'); + } + this._writeStream.end(function() { + self.emit('end'); + cb(); + }); +}; + + +/***/ }), + +/***/ 80845: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +var require;if (global.GENTLY) require = GENTLY.hijack(require); + +var crypto = __nccwpck_require__(76982); +var fs = __nccwpck_require__(79896); +var util = __nccwpck_require__(39023), + path = __nccwpck_require__(16928), + File = __nccwpck_require__(70190), + MultipartParser = (__nccwpck_require__(60510).MultipartParser), + QuerystringParser = (__nccwpck_require__(90209)/* .QuerystringParser */ .V), + OctetParser = (__nccwpck_require__(11359)/* .OctetParser */ .h), + JSONParser = (__nccwpck_require__(98078)/* .JSONParser */ .o), + StringDecoder = (__nccwpck_require__(13193).StringDecoder), + EventEmitter = (__nccwpck_require__(24434).EventEmitter), + Stream = (__nccwpck_require__(2203).Stream), + os = __nccwpck_require__(70857); + +function IncomingForm(opts) { + if (!(this instanceof IncomingForm)) return new IncomingForm(opts); + EventEmitter.call(this); + + opts=opts||{}; + + this.error = null; + this.ended = false; + + this.maxFields = opts.maxFields || 1000; + this.maxFieldsSize = opts.maxFieldsSize || 20 * 1024 * 1024; + this.maxFileSize = opts.maxFileSize || 200 * 1024 * 1024; + this.keepExtensions = opts.keepExtensions || false; + this.uploadDir = opts.uploadDir || (os.tmpdir && os.tmpdir()) || os.tmpDir(); + this.encoding = opts.encoding || 'utf-8'; + this.headers = null; + this.type = null; + this.hash = opts.hash || false; + this.multiples = opts.multiples || false; + + this.bytesReceived = null; + this.bytesExpected = null; + + this._parser = null; + this._flushing = 0; + this._fieldsSize = 0; + this._fileSize = 0; + this.openedFiles = []; + + return this; +} +util.inherits(IncomingForm, EventEmitter); +exports.h = IncomingForm; + +IncomingForm.prototype.parse = function(req, cb) { + this.pause = function() { + try { + req.pause(); + } catch (err) { + // the stream was destroyed + if (!this.ended) { + // before it was completed, crash & burn + this._error(err); + } + return false; + } + return true; + }; + + this.resume = function() { + try { + req.resume(); + } catch (err) { + // the stream was destroyed + if (!this.ended) { + // before it was completed, crash & burn + this._error(err); + } + return false; + } + + return true; + }; + + // Setup callback first, so we don't miss anything from data events emitted + // immediately. + if (cb) { + var fields = {}, files = {}; + this + .on('field', function(name, value) { + fields[name] = value; + }) + .on('file', function(name, file) { + if (this.multiples) { + if (files[name]) { + if (!Array.isArray(files[name])) { + files[name] = [files[name]]; + } + files[name].push(file); + } else { + files[name] = file; + } + } else { + files[name] = file; + } + }) + .on('error', function(err) { + cb(err, fields, files); + }) + .on('end', function() { + cb(null, fields, files); + }); + } + + // Parse headers and setup the parser, ready to start listening for data. + this.writeHeaders(req.headers); + + // Start listening for data. + var self = this; + req + .on('error', function(err) { + self._error(err); + }) + .on('aborted', function() { + self.emit('aborted'); + self._error(new Error('Request aborted')); + }) + .on('data', function(buffer) { + self.write(buffer); + }) + .on('end', function() { + if (self.error) { + return; + } + + var err = self._parser.end(); + if (err) { + self._error(err); + } + }); + + return this; +}; + +IncomingForm.prototype.writeHeaders = function(headers) { + this.headers = headers; + this._parseContentLength(); + this._parseContentType(); +}; + +IncomingForm.prototype.write = function(buffer) { + if (this.error) { + return; + } + if (!this._parser) { + this._error(new Error('uninitialized parser')); + return; + } + if (typeof this._parser.write !== 'function') { + this._error(new Error('did not expect data')); + return; + } + + this.bytesReceived += buffer.length; + this.emit('progress', this.bytesReceived, this.bytesExpected); + + var bytesParsed = this._parser.write(buffer); + if (bytesParsed !== buffer.length) { + this._error(new Error('parser error, '+bytesParsed+' of '+buffer.length+' bytes parsed')); + } + + return bytesParsed; +}; + +IncomingForm.prototype.pause = function() { + // this does nothing, unless overwritten in IncomingForm.parse + return false; +}; + +IncomingForm.prototype.resume = function() { + // this does nothing, unless overwritten in IncomingForm.parse + return false; +}; + +IncomingForm.prototype.onPart = function(part) { + // this method can be overwritten by the user + this.handlePart(part); +}; + +IncomingForm.prototype.handlePart = function(part) { + var self = this; + + // This MUST check exactly for undefined. You can not change it to !part.filename. + if (part.filename === undefined) { + var value = '' + , decoder = new StringDecoder(this.encoding); + + part.on('data', function(buffer) { + self._fieldsSize += buffer.length; + if (self._fieldsSize > self.maxFieldsSize) { + self._error(new Error('maxFieldsSize exceeded, received '+self._fieldsSize+' bytes of field data')); + return; + } + value += decoder.write(buffer); + }); + + part.on('end', function() { + self.emit('field', part.name, value); + }); + return; + } + + this._flushing++; + + var file = new File({ + path: this._uploadPath(part.filename), + name: part.filename, + type: part.mime, + hash: self.hash + }); + + this.emit('fileBegin', part.name, file); + + file.open(); + this.openedFiles.push(file); + + part.on('data', function(buffer) { + self._fileSize += buffer.length; + if (self._fileSize > self.maxFileSize) { + self._error(new Error('maxFileSize exceeded, received '+self._fileSize+' bytes of file data')); + return; + } + if (buffer.length == 0) { + return; + } + self.pause(); + file.write(buffer, function() { + self.resume(); + }); + }); + + part.on('end', function() { + file.end(function() { + self._flushing--; + self.emit('file', part.name, file); + self._maybeEnd(); + }); + }); +}; + +function dummyParser(self) { + return { + end: function () { + self.ended = true; + self._maybeEnd(); + return null; + } + }; +} + +IncomingForm.prototype._parseContentType = function() { + if (this.bytesExpected === 0) { + this._parser = dummyParser(this); + return; + } + + if (!this.headers['content-type']) { + this._error(new Error('bad content-type header, no content-type')); + return; + } + + if (this.headers['content-type'].match(/octet-stream/i)) { + this._initOctetStream(); + return; + } + + if (this.headers['content-type'].match(/urlencoded/i)) { + this._initUrlencoded(); + return; + } + + if (this.headers['content-type'].match(/multipart/i)) { + var m = this.headers['content-type'].match(/boundary=(?:"([^"]+)"|([^;]+))/i); + if (m) { + this._initMultipart(m[1] || m[2]); + } else { + this._error(new Error('bad content-type header, no multipart boundary')); + } + return; + } + + if (this.headers['content-type'].match(/json/i)) { + this._initJSONencoded(); + return; + } + + this._error(new Error('bad content-type header, unknown content-type: '+this.headers['content-type'])); +}; + +IncomingForm.prototype._error = function(err) { + if (this.error || this.ended) { + return; + } + + this.error = err; + this.emit('error', err); + + if (Array.isArray(this.openedFiles)) { + this.openedFiles.forEach(function(file) { + file._writeStream + .on('error', function() {}) + .destroy(); + setTimeout(fs.unlink, 0, file.path, function(error) { }); + }); + } +}; + +IncomingForm.prototype._parseContentLength = function() { + this.bytesReceived = 0; + if (this.headers['content-length']) { + this.bytesExpected = parseInt(this.headers['content-length'], 10); + } else if (this.headers['transfer-encoding'] === undefined) { + this.bytesExpected = 0; + } + + if (this.bytesExpected !== null) { + this.emit('progress', this.bytesReceived, this.bytesExpected); + } +}; + +IncomingForm.prototype._newParser = function() { + return new MultipartParser(); +}; + +IncomingForm.prototype._initMultipart = function(boundary) { + this.type = 'multipart'; + + var parser = new MultipartParser(), + self = this, + headerField, + headerValue, + part; + + parser.initWithBoundary(boundary); + + parser.onPartBegin = function() { + part = new Stream(); + part.readable = true; + part.headers = {}; + part.name = null; + part.filename = null; + part.mime = null; + + part.transferEncoding = 'binary'; + part.transferBuffer = ''; + + headerField = ''; + headerValue = ''; + }; + + parser.onHeaderField = function(b, start, end) { + headerField += b.toString(self.encoding, start, end); + }; + + parser.onHeaderValue = function(b, start, end) { + headerValue += b.toString(self.encoding, start, end); + }; + + parser.onHeaderEnd = function() { + headerField = headerField.toLowerCase(); + part.headers[headerField] = headerValue; + + // matches either a quoted-string or a token (RFC 2616 section 19.5.1) + var m = headerValue.match(/\bname=("([^"]*)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))/i); + if (headerField == 'content-disposition') { + if (m) { + part.name = m[2] || m[3] || ''; + } + + part.filename = self._fileName(headerValue); + } else if (headerField == 'content-type') { + part.mime = headerValue; + } else if (headerField == 'content-transfer-encoding') { + part.transferEncoding = headerValue.toLowerCase(); + } + + headerField = ''; + headerValue = ''; + }; + + parser.onHeadersEnd = function() { + switch(part.transferEncoding){ + case 'binary': + case '7bit': + case '8bit': + parser.onPartData = function(b, start, end) { + part.emit('data', b.slice(start, end)); + }; + + parser.onPartEnd = function() { + part.emit('end'); + }; + break; + + case 'base64': + parser.onPartData = function(b, start, end) { + part.transferBuffer += b.slice(start, end).toString('ascii'); + + /* + four bytes (chars) in base64 converts to three bytes in binary + encoding. So we should always work with a number of bytes that + can be divided by 4, it will result in a number of buytes that + can be divided vy 3. + */ + var offset = parseInt(part.transferBuffer.length / 4, 10) * 4; + part.emit('data', new Buffer(part.transferBuffer.substring(0, offset), 'base64')); + part.transferBuffer = part.transferBuffer.substring(offset); + }; + + parser.onPartEnd = function() { + part.emit('data', new Buffer(part.transferBuffer, 'base64')); + part.emit('end'); + }; + break; + + default: + return self._error(new Error('unknown transfer-encoding')); + } + + self.onPart(part); + }; + + + parser.onEnd = function() { + self.ended = true; + self._maybeEnd(); + }; + + this._parser = parser; +}; + +IncomingForm.prototype._fileName = function(headerValue) { + // matches either a quoted-string or a token (RFC 2616 section 19.5.1) + var m = headerValue.match(/\bfilename=("(.*?)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))($|;\s)/i); + if (!m) return; + + var match = m[2] || m[3] || ''; + var filename = match.substr(match.lastIndexOf('\\') + 1); + filename = filename.replace(/%22/g, '"'); + filename = filename.replace(/&#([\d]{4});/g, function(m, code) { + return String.fromCharCode(code); + }); + return filename; +}; + +IncomingForm.prototype._initUrlencoded = function() { + this.type = 'urlencoded'; + + var parser = new QuerystringParser(this.maxFields) + , self = this; + + parser.onField = function(key, val) { + self.emit('field', key, val); + }; + + parser.onEnd = function() { + self.ended = true; + self._maybeEnd(); + }; + + this._parser = parser; +}; + +IncomingForm.prototype._initOctetStream = function() { + this.type = 'octet-stream'; + var filename = this.headers['x-file-name']; + var mime = this.headers['content-type']; + + var file = new File({ + path: this._uploadPath(filename), + name: filename, + type: mime + }); + + this.emit('fileBegin', filename, file); + file.open(); + this.openedFiles.push(file); + this._flushing++; + + var self = this; + + self._parser = new OctetParser(); + + //Keep track of writes that haven't finished so we don't emit the file before it's done being written + var outstandingWrites = 0; + + self._parser.on('data', function(buffer){ + self.pause(); + outstandingWrites++; + + file.write(buffer, function() { + outstandingWrites--; + self.resume(); + + if(self.ended){ + self._parser.emit('doneWritingFile'); + } + }); + }); + + self._parser.on('end', function(){ + self._flushing--; + self.ended = true; + + var done = function(){ + file.end(function() { + self.emit('file', 'file', file); + self._maybeEnd(); + }); + }; + + if(outstandingWrites === 0){ + done(); + } else { + self._parser.once('doneWritingFile', done); + } + }); +}; + +IncomingForm.prototype._initJSONencoded = function() { + this.type = 'json'; + + var parser = new JSONParser(this) + , self = this; + + parser.onField = function(key, val) { + self.emit('field', key, val); + }; + + parser.onEnd = function() { + self.ended = true; + self._maybeEnd(); + }; + + this._parser = parser; +}; + +IncomingForm.prototype._uploadPath = function(filename) { + var buf = crypto.randomBytes(16); + var name = 'upload_' + buf.toString('hex'); + + if (this.keepExtensions) { + var ext = path.extname(filename); + ext = ext.replace(/(\.[a-z0-9]+).*/i, '$1'); + + name += ext; + } + + return path.join(this.uploadDir, name); +}; + +IncomingForm.prototype._maybeEnd = function() { + if (!this.ended || this._flushing || this.error) { + return; + } + + this.emit('end'); +}; + + +/***/ }), + +/***/ 48970: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var IncomingForm = (__nccwpck_require__(80845)/* .IncomingForm */ .h); +IncomingForm.IncomingForm = IncomingForm; +module.exports = IncomingForm; + + +/***/ }), + +/***/ 98078: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +var require;if (global.GENTLY) require = GENTLY.hijack(require); + +var Buffer = (__nccwpck_require__(20181).Buffer); + +function JSONParser(parent) { + this.parent = parent; + this.chunks = []; + this.bytesWritten = 0; +} +exports.o = JSONParser; + +JSONParser.prototype.write = function(buffer) { + this.bytesWritten += buffer.length; + this.chunks.push(buffer); + return buffer.length; +}; + +JSONParser.prototype.end = function() { + try { + var fields = JSON.parse(Buffer.concat(this.chunks)); + for (var field in fields) { + this.onField(field, fields[field]); + } + } catch (e) { + this.parent.emit('error', e); + } + this.data = null; + + this.onEnd(); +}; + + +/***/ }), + +/***/ 60510: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +var Buffer = (__nccwpck_require__(20181).Buffer), + s = 0, + S = + { PARSER_UNINITIALIZED: s++, + START: s++, + START_BOUNDARY: s++, + HEADER_FIELD_START: s++, + HEADER_FIELD: s++, + HEADER_VALUE_START: s++, + HEADER_VALUE: s++, + HEADER_VALUE_ALMOST_DONE: s++, + HEADERS_ALMOST_DONE: s++, + PART_DATA_START: s++, + PART_DATA: s++, + PART_END: s++, + END: s++ + }, + + f = 1, + F = + { PART_BOUNDARY: f, + LAST_BOUNDARY: f *= 2 + }, + + LF = 10, + CR = 13, + SPACE = 32, + HYPHEN = 45, + COLON = 58, + A = 97, + Z = 122, + + lower = function(c) { + return c | 0x20; + }; + +for (s in S) { + exports[s] = S[s]; +} + +function MultipartParser() { + this.boundary = null; + this.boundaryChars = null; + this.lookbehind = null; + this.state = S.PARSER_UNINITIALIZED; + + this.index = null; + this.flags = 0; +} +exports.MultipartParser = MultipartParser; + +MultipartParser.stateToString = function(stateNumber) { + for (var state in S) { + var number = S[state]; + if (number === stateNumber) return state; + } +}; + +MultipartParser.prototype.initWithBoundary = function(str) { + this.boundary = new Buffer(str.length+4); + this.boundary.write('\r\n--', 0); + this.boundary.write(str, 4); + this.lookbehind = new Buffer(this.boundary.length+8); + this.state = S.START; + + this.boundaryChars = {}; + for (var i = 0; i < this.boundary.length; i++) { + this.boundaryChars[this.boundary[i]] = true; + } +}; + +MultipartParser.prototype.write = function(buffer) { + var self = this, + i = 0, + len = buffer.length, + prevIndex = this.index, + index = this.index, + state = this.state, + flags = this.flags, + lookbehind = this.lookbehind, + boundary = this.boundary, + boundaryChars = this.boundaryChars, + boundaryLength = this.boundary.length, + boundaryEnd = boundaryLength - 1, + bufferLength = buffer.length, + c, + cl, + + mark = function(name) { + self[name+'Mark'] = i; + }, + clear = function(name) { + delete self[name+'Mark']; + }, + callback = function(name, buffer, start, end) { + if (start !== undefined && start === end) { + return; + } + + var callbackSymbol = 'on'+name.substr(0, 1).toUpperCase()+name.substr(1); + if (callbackSymbol in self) { + self[callbackSymbol](buffer, start, end); + } + }, + dataCallback = function(name, clear) { + var markSymbol = name+'Mark'; + if (!(markSymbol in self)) { + return; + } + + if (!clear) { + callback(name, buffer, self[markSymbol], buffer.length); + self[markSymbol] = 0; + } else { + callback(name, buffer, self[markSymbol], i); + delete self[markSymbol]; + } + }; + + for (i = 0; i < len; i++) { + c = buffer[i]; + switch (state) { + case S.PARSER_UNINITIALIZED: + return i; + case S.START: + index = 0; + state = S.START_BOUNDARY; + case S.START_BOUNDARY: + if (index == boundary.length - 2) { + if (c == HYPHEN) { + flags |= F.LAST_BOUNDARY; + } else if (c != CR) { + return i; + } + index++; + break; + } else if (index - 1 == boundary.length - 2) { + if (flags & F.LAST_BOUNDARY && c == HYPHEN){ + callback('end'); + state = S.END; + flags = 0; + } else if (!(flags & F.LAST_BOUNDARY) && c == LF) { + index = 0; + callback('partBegin'); + state = S.HEADER_FIELD_START; + } else { + return i; + } + break; + } + + if (c != boundary[index+2]) { + index = -2; + } + if (c == boundary[index+2]) { + index++; + } + break; + case S.HEADER_FIELD_START: + state = S.HEADER_FIELD; + mark('headerField'); + index = 0; + case S.HEADER_FIELD: + if (c == CR) { + clear('headerField'); + state = S.HEADERS_ALMOST_DONE; + break; + } + + index++; + if (c == HYPHEN) { + break; + } + + if (c == COLON) { + if (index == 1) { + // empty header field + return i; + } + dataCallback('headerField', true); + state = S.HEADER_VALUE_START; + break; + } + + cl = lower(c); + if (cl < A || cl > Z) { + return i; + } + break; + case S.HEADER_VALUE_START: + if (c == SPACE) { + break; + } + + mark('headerValue'); + state = S.HEADER_VALUE; + case S.HEADER_VALUE: + if (c == CR) { + dataCallback('headerValue', true); + callback('headerEnd'); + state = S.HEADER_VALUE_ALMOST_DONE; + } + break; + case S.HEADER_VALUE_ALMOST_DONE: + if (c != LF) { + return i; + } + state = S.HEADER_FIELD_START; + break; + case S.HEADERS_ALMOST_DONE: + if (c != LF) { + return i; + } + + callback('headersEnd'); + state = S.PART_DATA_START; + break; + case S.PART_DATA_START: + state = S.PART_DATA; + mark('partData'); + case S.PART_DATA: + prevIndex = index; + + if (index === 0) { + // boyer-moore derrived algorithm to safely skip non-boundary data + i += boundaryEnd; + while (i < bufferLength && !(buffer[i] in boundaryChars)) { + i += boundaryLength; + } + i -= boundaryEnd; + c = buffer[i]; + } + + if (index < boundary.length) { + if (boundary[index] == c) { + if (index === 0) { + dataCallback('partData', true); + } + index++; + } else { + index = 0; + } + } else if (index == boundary.length) { + index++; + if (c == CR) { + // CR = part boundary + flags |= F.PART_BOUNDARY; + } else if (c == HYPHEN) { + // HYPHEN = end boundary + flags |= F.LAST_BOUNDARY; + } else { + index = 0; + } + } else if (index - 1 == boundary.length) { + if (flags & F.PART_BOUNDARY) { + index = 0; + if (c == LF) { + // unset the PART_BOUNDARY flag + flags &= ~F.PART_BOUNDARY; + callback('partEnd'); + callback('partBegin'); + state = S.HEADER_FIELD_START; + break; + } + } else if (flags & F.LAST_BOUNDARY) { + if (c == HYPHEN) { + callback('partEnd'); + callback('end'); + state = S.END; + flags = 0; + } else { + index = 0; + } + } else { + index = 0; + } + } + + if (index > 0) { + // when matching a possible boundary, keep a lookbehind reference + // in case it turns out to be a false lead + lookbehind[index-1] = c; + } else if (prevIndex > 0) { + // if our boundary turned out to be rubbish, the captured lookbehind + // belongs to partData + callback('partData', lookbehind, 0, prevIndex); + prevIndex = 0; + mark('partData'); + + // reconsider the current character even so it interrupted the sequence + // it could be the beginning of a new sequence + i--; + } + + break; + case S.END: + break; + default: + return i; + } + } + + dataCallback('headerField'); + dataCallback('headerValue'); + dataCallback('partData'); + + this.index = index; + this.state = state; + this.flags = flags; + + return len; +}; + +MultipartParser.prototype.end = function() { + var callback = function(self, name) { + var callbackSymbol = 'on'+name.substr(0, 1).toUpperCase()+name.substr(1); + if (callbackSymbol in self) { + self[callbackSymbol](); + } + }; + if ((this.state == S.HEADER_FIELD_START && this.index === 0) || + (this.state == S.PART_DATA && this.index == this.boundary.length)) { + callback(this, 'partEnd'); + callback(this, 'end'); + } else if (this.state != S.END) { + return new Error('MultipartParser.end(): stream ended unexpectedly: ' + this.explain()); + } +}; + +MultipartParser.prototype.explain = function() { + return 'state = ' + MultipartParser.stateToString(this.state); +}; + + +/***/ }), + +/***/ 11359: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +var EventEmitter = (__nccwpck_require__(24434).EventEmitter) + , util = __nccwpck_require__(39023); + +function OctetParser(options){ + if(!(this instanceof OctetParser)) return new OctetParser(options); + EventEmitter.call(this); +} + +util.inherits(OctetParser, EventEmitter); + +exports.h = OctetParser; + +OctetParser.prototype.write = function(buffer) { + this.emit('data', buffer); + return buffer.length; +}; + +OctetParser.prototype.end = function() { + this.emit('end'); +}; + + +/***/ }), + +/***/ 90209: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +var require;if (global.GENTLY) require = GENTLY.hijack(require); + +// This is a buffering parser, not quite as nice as the multipart one. +// If I find time I'll rewrite this to be fully streaming as well +var querystring = __nccwpck_require__(83480); + +function QuerystringParser(maxKeys) { + this.maxKeys = maxKeys; + this.buffer = ''; +} +exports.V = QuerystringParser; + +QuerystringParser.prototype.write = function(buffer) { + this.buffer += buffer.toString('ascii'); + return buffer.length; +}; + +QuerystringParser.prototype.end = function() { + var fields = querystring.parse(this.buffer, '&', '=', { maxKeys: this.maxKeys }); + for (var field in fields) { + this.onField(field, fields[field]); + } + this.buffer = ''; + + this.onEnd(); +}; + + + +/***/ }), + +/***/ 39029: +/***/ ((module) => { + +"use strict"; + + +/* eslint no-invalid-this: 1 */ + +var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; +var toStr = Object.prototype.toString; +var max = Math.max; +var funcType = '[object Function]'; + +var concatty = function concatty(a, b) { + var arr = []; + + for (var i = 0; i < a.length; i += 1) { + arr[i] = a[i]; + } + for (var j = 0; j < b.length; j += 1) { + arr[j + a.length] = b[j]; + } + + return arr; +}; + +var slicy = function slicy(arrLike, offset) { + var arr = []; + for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { + arr[j] = arrLike[i]; + } + return arr; +}; + +var joiny = function (arr, joiner) { + var str = ''; + for (var i = 0; i < arr.length; i += 1) { + str += arr[i]; + if (i + 1 < arr.length) { + str += joiner; + } + } + return str; +}; + +module.exports = function bind(that) { + var target = this; + if (typeof target !== 'function' || toStr.apply(target) !== funcType) { + throw new TypeError(ERROR_MESSAGE + target); + } + var args = slicy(arguments, 1); + + var bound; + var binder = function () { + if (this instanceof bound) { + var result = target.apply( + this, + concatty(args, arguments) + ); + if (Object(result) === result) { + return result; + } + return this; + } + return target.apply( + that, + concatty(args, arguments) + ); + + }; + + var boundLength = max(0, target.length - args.length); + var boundArgs = []; + for (var i = 0; i < boundLength; i++) { + boundArgs[i] = '$' + i; + } + + bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); + + if (target.prototype) { + var Empty = function Empty() {}; + Empty.prototype = target.prototype; + bound.prototype = new Empty(); + Empty.prototype = null; + } + + return bound; +}; + + +/***/ }), + +/***/ 39587: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var implementation = __nccwpck_require__(39029); + +module.exports = Function.prototype.bind || implementation; + + +/***/ }), + +/***/ 89905: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GaxiosError = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +class GaxiosError extends Error { + constructor(message, options, response) { + super(message); + this.response = response; + this.config = options; + this.code = response.status.toString(); + } +} +exports.GaxiosError = GaxiosError; +//# sourceMappingURL=common.js.map + +/***/ }), + +/***/ 72261: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Gaxios = void 0; +const extend_1 = __importDefault(__nccwpck_require__(92229)); +const https_1 = __nccwpck_require__(65692); +const node_fetch_1 = __importDefault(__nccwpck_require__(78704)); +const querystring_1 = __importDefault(__nccwpck_require__(83480)); +const is_stream_1 = __importDefault(__nccwpck_require__(20580)); +const url_1 = __nccwpck_require__(87016); +const common_1 = __nccwpck_require__(89905); +const retry_1 = __nccwpck_require__(50780); +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fetch = hasFetch() ? window.fetch : node_fetch_1.default; +function hasWindow() { + return typeof window !== 'undefined' && !!window; +} +function hasFetch() { + return hasWindow() && !!window.fetch; +} +function hasBuffer() { + return typeof Buffer !== 'undefined'; +} +function hasHeader(options, header) { + return !!getHeader(options, header); +} +function getHeader(options, header) { + header = header.toLowerCase(); + for (const key of Object.keys((options === null || options === void 0 ? void 0 : options.headers) || {})) { + if (header === key.toLowerCase()) { + return options.headers[key]; + } + } + return undefined; +} +let HttpsProxyAgent; +function loadProxy() { + const proxy = process.env.HTTPS_PROXY || + process.env.https_proxy || + process.env.HTTP_PROXY || + process.env.http_proxy; + if (proxy) { + HttpsProxyAgent = __nccwpck_require__(81765); + } + return proxy; +} +loadProxy(); +function skipProxy(url) { + var _a; + const noProxyEnv = (_a = process.env.NO_PROXY) !== null && _a !== void 0 ? _a : process.env.no_proxy; + if (!noProxyEnv) { + return false; + } + const noProxyUrls = noProxyEnv.split(','); + const parsedURL = new url_1.URL(url); + return !!noProxyUrls.find(url => { + if (url.startsWith('*.') || url.startsWith('.')) { + url = url.replace(/^\*\./, '.'); + return parsedURL.hostname.endsWith(url); + } + else { + return url === parsedURL.origin || url === parsedURL.hostname; + } + }); +} +// Figure out if we should be using a proxy. Only if it's required, load +// the https-proxy-agent module as it adds startup cost. +function getProxy(url) { + // If there is a match between the no_proxy env variables and the url, then do not proxy + if (skipProxy(url)) { + return undefined; + // If there is not a match between the no_proxy env variables and the url, check to see if there should be a proxy + } + else { + return loadProxy(); + } +} +class Gaxios { + /** + * The Gaxios class is responsible for making HTTP requests. + * @param defaults The default set of options to be used for this instance. + */ + constructor(defaults) { + this.agentCache = new Map(); + this.defaults = defaults || {}; + } + /** + * Perform an HTTP request with the given options. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async request(opts = {}) { + opts = this.validateOpts(opts); + return this._request(opts); + } + async _defaultAdapter(opts) { + const fetchImpl = opts.fetchImplementation || fetch; + const res = (await fetchImpl(opts.url, opts)); + const data = await this.getResponseData(opts, res); + return this.translateResponse(opts, res, data); + } + /** + * Internal, retryable version of the `request` method. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async _request(opts = {}) { + try { + let translatedResponse; + if (opts.adapter) { + translatedResponse = await opts.adapter(opts, this._defaultAdapter.bind(this)); + } + else { + translatedResponse = await this._defaultAdapter(opts); + } + if (!opts.validateStatus(translatedResponse.status)) { + throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); + } + return translatedResponse; + } + catch (e) { + const err = e; + err.config = opts; + const { shouldRetry, config } = await retry_1.getRetryConfig(e); + if (shouldRetry && config) { + err.config.retryConfig.currentRetryAttempt = + config.retryConfig.currentRetryAttempt; + return this._request(err.config); + } + throw err; + } + } + async getResponseData(opts, res) { + switch (opts.responseType) { + case 'stream': + return res.body; + case 'json': { + let data = await res.text(); + try { + data = JSON.parse(data); + } + catch (_a) { + // continue + } + return data; + } + case 'arraybuffer': + return res.arrayBuffer(); + case 'blob': + return res.blob(); + default: + return res.text(); + } + } + /** + * Validates the options, and merges them with defaults. + * @param opts The original options passed from the client. + */ + validateOpts(options) { + const opts = extend_1.default(true, {}, this.defaults, options); + if (!opts.url) { + throw new Error('URL is required.'); + } + // baseUrl has been deprecated, remove in 2.0 + const baseUrl = opts.baseUrl || opts.baseURL; + if (baseUrl) { + opts.url = baseUrl + opts.url; + } + opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; + if (opts.params && Object.keys(opts.params).length > 0) { + let additionalQueryParams = opts.paramsSerializer(opts.params); + if (additionalQueryParams.startsWith('?')) { + additionalQueryParams = additionalQueryParams.slice(1); + } + const prefix = opts.url.includes('?') ? '&' : '?'; + opts.url = opts.url + prefix + additionalQueryParams; + } + if (typeof options.maxContentLength === 'number') { + opts.size = options.maxContentLength; + } + if (typeof options.maxRedirects === 'number') { + opts.follow = options.maxRedirects; + } + opts.headers = opts.headers || {}; + if (opts.data) { + const isFormData = typeof FormData === 'undefined' + ? false + : (opts === null || opts === void 0 ? void 0 : opts.data) instanceof FormData; + if (is_stream_1.default.readable(opts.data)) { + opts.body = opts.data; + } + else if (hasBuffer() && Buffer.isBuffer(opts.data)) { + // Do not attempt to JSON.stringify() a Buffer: + opts.body = opts.data; + if (!hasHeader(opts, 'Content-Type')) { + opts.headers['Content-Type'] = 'application/json'; + } + } + else if (typeof opts.data === 'object') { + // If www-form-urlencoded content type has been set, but data is + // provided as an object, serialize the content using querystring: + if (!isFormData) { + if (getHeader(opts, 'content-type') === + 'application/x-www-form-urlencoded') { + opts.body = opts.paramsSerializer(opts.data); + } + else { + // } else if (!(opts.data instanceof FormData)) { + if (!hasHeader(opts, 'Content-Type')) { + opts.headers['Content-Type'] = 'application/json'; + } + opts.body = JSON.stringify(opts.data); + } + } + } + else { + opts.body = opts.data; + } + } + opts.validateStatus = opts.validateStatus || this.validateStatus; + opts.responseType = opts.responseType || 'json'; + if (!opts.headers['Accept'] && opts.responseType === 'json') { + opts.headers['Accept'] = 'application/json'; + } + opts.method = opts.method || 'GET'; + const proxy = getProxy(opts.url); + if (proxy) { + if (this.agentCache.has(proxy)) { + opts.agent = this.agentCache.get(proxy); + } + else { + // Proxy is being used in conjunction with mTLS. + if (opts.cert && opts.key) { + const parsedURL = new url_1.URL(proxy); + opts.agent = new HttpsProxyAgent({ + port: parsedURL.port, + host: parsedURL.host, + protocol: parsedURL.protocol, + cert: opts.cert, + key: opts.key, + }); + } + else { + opts.agent = new HttpsProxyAgent(proxy); + } + this.agentCache.set(proxy, opts.agent); + } + } + else if (opts.cert && opts.key) { + // Configure client for mTLS: + if (this.agentCache.has(opts.key)) { + opts.agent = this.agentCache.get(opts.key); + } + else { + opts.agent = new https_1.Agent({ + cert: opts.cert, + key: opts.key, + }); + this.agentCache.set(opts.key, opts.agent); + } + } + return opts; + } + /** + * By default, throw for any non-2xx status code + * @param status status code from the HTTP response + */ + validateStatus(status) { + return status >= 200 && status < 300; + } + /** + * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) + * @param params key value pars to encode + */ + paramsSerializer(params) { + return querystring_1.default.stringify(params); + } + translateResponse(opts, res, data) { + // headers need to be converted from a map to an obj + const headers = {}; + res.headers.forEach((value, key) => { + headers[key] = value; + }); + return { + config: opts, + data: data, + headers, + status: res.status, + statusText: res.statusText, + // XMLHttpRequestLike + request: { + responseURL: res.url, + }, + }; + } +} +exports.Gaxios = Gaxios; +//# sourceMappingURL=gaxios.js.map + +/***/ }), + +/***/ 46814: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.request = exports.instance = exports.Gaxios = void 0; +const gaxios_1 = __nccwpck_require__(72261); +Object.defineProperty(exports, "Gaxios", ({ enumerable: true, get: function () { return gaxios_1.Gaxios; } })); +var common_1 = __nccwpck_require__(89905); +Object.defineProperty(exports, "GaxiosError", ({ enumerable: true, get: function () { return common_1.GaxiosError; } })); +/** + * The default instance used when the `request` method is directly + * invoked. + */ +exports.instance = new gaxios_1.Gaxios(); +/** + * Make an HTTP request using the given options. + * @param opts Options for the request + */ +async function request(opts) { + return exports.instance.request(opts); +} +exports.request = request; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 50780: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRetryConfig = void 0; +async function getRetryConfig(err) { + var _a; + let config = getConfig(err); + if (!err || !err.config || (!config && !err.config.retry)) { + return { shouldRetry: false }; + } + config = config || {}; + config.currentRetryAttempt = config.currentRetryAttempt || 0; + config.retry = + config.retry === undefined || config.retry === null ? 3 : config.retry; + config.httpMethodsToRetry = config.httpMethodsToRetry || [ + 'GET', + 'HEAD', + 'PUT', + 'OPTIONS', + 'DELETE', + ]; + config.noResponseRetries = + config.noResponseRetries === undefined || config.noResponseRetries === null + ? 2 + : config.noResponseRetries; + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + const retryRanges = [ + // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes + // 1xx - Retry (Informational, request still processing) + // 2xx - Do not retry (Success) + // 3xx - Do not retry (Redirect) + // 4xx - Do not retry (Client errors) + // 429 - Retry ("Too Many Requests") + // 5xx - Retry (Server errors) + [100, 199], + [429, 429], + [500, 599], + ]; + config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; + // Put the config back into the err + err.config.retryConfig = config; + // Determine if we should retry the request + const shouldRetryFn = config.shouldRetry || shouldRetryRequest; + if (!(await shouldRetryFn(err))) { + return { shouldRetry: false, config: err.config }; + } + // Calculate time to wait with exponential backoff. + // If this is the first retry, look for a configured retryDelay. + const retryDelay = config.currentRetryAttempt ? 0 : (_a = config.retryDelay) !== null && _a !== void 0 ? _a : 100; + // Formula: retryDelay + ((2^c - 1 / 2) * 1000) + const delay = retryDelay + ((Math.pow(2, config.currentRetryAttempt) - 1) / 2) * 1000; + // We're going to retry! Incremenent the counter. + err.config.retryConfig.currentRetryAttempt += 1; + // Create a promise that invokes the retry after the backOffDelay + const backoff = new Promise(resolve => { + setTimeout(resolve, delay); + }); + // Notify the user if they added an `onRetryAttempt` handler + if (config.onRetryAttempt) { + config.onRetryAttempt(err); + } + // Return the promise in which recalls Gaxios to retry the request + await backoff; + return { shouldRetry: true, config: err.config }; +} +exports.getRetryConfig = getRetryConfig; +/** + * Determine based on config if we should retry the request. + * @param err The GaxiosError passed to the interceptor. + */ +function shouldRetryRequest(err) { + const config = getConfig(err); + // node-fetch raises an AbortError if signaled: + // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal + if (err.name === 'AbortError') { + return false; + } + // If there's no config, or retries are disabled, return. + if (!config || config.retry === 0) { + return false; + } + // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) + if (!err.response && + (config.currentRetryAttempt || 0) >= config.noResponseRetries) { + return false; + } + // Only retry with configured HttpMethods. + if (!err.config.method || + config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { + return false; + } + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + if (err.response && err.response.status) { + let isInRange = false; + for (const [min, max] of config.statusCodesToRetry) { + const status = err.response.status; + if (status >= min && status <= max) { + isInRange = true; + break; + } + } + if (!isInRange) { + return false; + } + } + // If we are out of retry attempts, return + config.currentRetryAttempt = config.currentRetryAttempt || 0; + if (config.currentRetryAttempt >= config.retry) { + return false; + } + return true; +} +/** + * Acquire the raxConfig object from an GaxiosError if available. + * @param err The Gaxios error with a config object. + */ +function getConfig(err) { + if (err && err.config && err.config.retryConfig) { + return err.config.retryConfig; + } + return; +} +//# sourceMappingURL=retry.js.map + +/***/ }), + +/***/ 88287: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const events_1 = __nccwpck_require__(24434); +const debug_1 = __importDefault(__nccwpck_require__(78549)); +const promisify_1 = __importDefault(__nccwpck_require__(59939)); +const debug = debug_1.default('agent-base'); +function isAgent(v) { + return Boolean(v) && typeof v.addRequest === 'function'; +} +function isSecureEndpoint() { + const { stack } = new Error(); + if (typeof stack !== 'string') + return false; + return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1); +} +function createAgent(callback, opts) { + return new createAgent.Agent(callback, opts); +} +(function (createAgent) { + /** + * Base `http.Agent` implementation. + * No pooling/keep-alive is implemented by default. + * + * @param {Function} callback + * @api public + */ + class Agent extends events_1.EventEmitter { + constructor(callback, _opts) { + super(); + let opts = _opts; + if (typeof callback === 'function') { + this.callback = callback; + } + else if (callback) { + opts = callback; + } + // Timeout for the socket to be returned from the callback + this.timeout = null; + if (opts && typeof opts.timeout === 'number') { + this.timeout = opts.timeout; + } + // These aren't actually used by `agent-base`, but are required + // for the TypeScript definition files in `@types/node` :/ + this.maxFreeSockets = 1; + this.maxSockets = 1; + this.maxTotalSockets = Infinity; + this.sockets = {}; + this.freeSockets = {}; + this.requests = {}; + this.options = {}; + } + get defaultPort() { + if (typeof this.explicitDefaultPort === 'number') { + return this.explicitDefaultPort; + } + return isSecureEndpoint() ? 443 : 80; + } + set defaultPort(v) { + this.explicitDefaultPort = v; + } + get protocol() { + if (typeof this.explicitProtocol === 'string') { + return this.explicitProtocol; + } + return isSecureEndpoint() ? 'https:' : 'http:'; + } + set protocol(v) { + this.explicitProtocol = v; + } + callback(req, opts, fn) { + throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); + } + /** + * Called by node-core's "_http_client.js" module when creating + * a new HTTP request with this Agent instance. + * + * @api public + */ + addRequest(req, _opts) { + const opts = Object.assign({}, _opts); + if (typeof opts.secureEndpoint !== 'boolean') { + opts.secureEndpoint = isSecureEndpoint(); + } + if (opts.host == null) { + opts.host = 'localhost'; + } + if (opts.port == null) { + opts.port = opts.secureEndpoint ? 443 : 80; + } + if (opts.protocol == null) { + opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; + } + if (opts.host && opts.path) { + // If both a `host` and `path` are specified then it's most + // likely the result of a `url.parse()` call... we need to + // remove the `path` portion so that `net.connect()` doesn't + // attempt to open that as a unix socket file. + delete opts.path; + } + delete opts.agent; + delete opts.hostname; + delete opts._defaultAgent; + delete opts.defaultPort; + delete opts.createConnection; + // Hint to use "Connection: close" + // XXX: non-documented `http` module API :( + req._last = true; + req.shouldKeepAlive = false; + let timedOut = false; + let timeoutId = null; + const timeoutMs = opts.timeout || this.timeout; + const onerror = (err) => { + if (req._hadError) + return; + req.emit('error', err); + // For Safety. Some additional errors might fire later on + // and we need to make sure we don't double-fire the error event. + req._hadError = true; + }; + const ontimeout = () => { + timeoutId = null; + timedOut = true; + const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`); + err.code = 'ETIMEOUT'; + onerror(err); + }; + const callbackError = (err) => { + if (timedOut) + return; + if (timeoutId !== null) { + clearTimeout(timeoutId); + timeoutId = null; + } + onerror(err); + }; + const onsocket = (socket) => { + if (timedOut) + return; + if (timeoutId != null) { + clearTimeout(timeoutId); + timeoutId = null; + } + if (isAgent(socket)) { + // `socket` is actually an `http.Agent` instance, so + // relinquish responsibility for this `req` to the Agent + // from here on + debug('Callback returned another Agent instance %o', socket.constructor.name); + socket.addRequest(req, opts); + return; + } + if (socket) { + socket.once('free', () => { + this.freeSocket(socket, opts); + }); + req.onSocket(socket); + return; + } + const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``); + onerror(err); + }; + if (typeof this.callback !== 'function') { + onerror(new Error('`callback` is not defined')); + return; + } + if (!this.promisifiedCallback) { + if (this.callback.length >= 3) { + debug('Converting legacy callback function to promise'); + this.promisifiedCallback = promisify_1.default(this.callback); + } + else { + this.promisifiedCallback = this.callback; + } + } + if (typeof timeoutMs === 'number' && timeoutMs > 0) { + timeoutId = setTimeout(ontimeout, timeoutMs); + } + if ('port' in opts && typeof opts.port !== 'number') { + opts.port = Number(opts.port); + } + try { + debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); + Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); + } + catch (err) { + Promise.reject(err).catch(callbackError); + } + } + freeSocket(socket, opts) { + debug('Freeing socket %o %o', socket.constructor.name, opts); + socket.destroy(); + } + destroy() { + debug('Destroying agent %o', this.constructor.name); + } + } + createAgent.Agent = Agent; + // So that `instanceof` works correctly + createAgent.prototype = createAgent.Agent.prototype; +})(createAgent || (createAgent = {})); +module.exports = createAgent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 59939: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +function promisify(fn) { + return function (req, opts) { + return new Promise((resolve, reject) => { + fn.call(this, req, opts, (err, rtn) => { + if (err) { + reject(err); + } + else { + resolve(rtn); + } + }); + }); + }; +} +exports["default"] = promisify; +//# sourceMappingURL=promisify.js.map + +/***/ }), + +/***/ 96856: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +const net_1 = __importDefault(__nccwpck_require__(69278)); +const tls_1 = __importDefault(__nccwpck_require__(64756)); +const url_1 = __importDefault(__nccwpck_require__(87016)); +const assert_1 = __importDefault(__nccwpck_require__(42613)); +const debug_1 = __importDefault(__nccwpck_require__(78549)); +const agent_base_1 = __nccwpck_require__(88287); +const parse_proxy_response_1 = __importDefault(__nccwpck_require__(50151)); +const debug = debug_1.default('https-proxy-agent:agent'); +/** + * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to + * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. + * + * Outgoing HTTP requests are first tunneled through the proxy server using the + * `CONNECT` HTTP request method to establish a connection to the proxy server, + * and then the proxy server connects to the destination target and issues the + * HTTP request from the proxy server. + * + * `https:` requests have their socket connection upgraded to TLS once + * the connection to the proxy server has been established. + * + * @api public + */ +class HttpsProxyAgent extends agent_base_1.Agent { + constructor(_opts) { + let opts; + if (typeof _opts === 'string') { + opts = url_1.default.parse(_opts); + } + else { + opts = _opts; + } + if (!opts) { + throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); + } + debug('creating new HttpsProxyAgent instance: %o', opts); + super(opts); + const proxy = Object.assign({}, opts); + // If `true`, then connect to the proxy server over TLS. + // Defaults to `false`. + this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); + // Prefer `hostname` over `host`, and set the `port` if needed. + proxy.host = proxy.hostname || proxy.host; + if (typeof proxy.port === 'string') { + proxy.port = parseInt(proxy.port, 10); + } + if (!proxy.port && proxy.host) { + proxy.port = this.secureProxy ? 443 : 80; + } + // ALPN is supported by Node.js >= v5. + // attempt to negotiate http/1.1 for proxy servers that support http/2 + if (this.secureProxy && !('ALPNProtocols' in proxy)) { + proxy.ALPNProtocols = ['http 1.1']; + } + if (proxy.host && proxy.path) { + // If both a `host` and `path` are specified then it's most likely + // the result of a `url.parse()` call... we need to remove the + // `path` portion so that `net.connect()` doesn't attempt to open + // that as a Unix socket file. + delete proxy.path; + delete proxy.pathname; + } + this.proxy = proxy; + } + /** + * Called when the node-core HTTP client library is creating a + * new HTTP request. + * + * @api protected + */ + callback(req, opts) { + return __awaiter(this, void 0, void 0, function* () { + const { proxy, secureProxy } = this; + // Create a socket connection to the proxy server. + let socket; + if (secureProxy) { + debug('Creating `tls.Socket`: %o', proxy); + socket = tls_1.default.connect(proxy); + } + else { + debug('Creating `net.Socket`: %o', proxy); + socket = net_1.default.connect(proxy); + } + const headers = Object.assign({}, proxy.headers); + const hostname = `${opts.host}:${opts.port}`; + let payload = `CONNECT ${hostname} HTTP/1.1\r\n`; + // Inject the `Proxy-Authorization` header if necessary. + if (proxy.auth) { + headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`; + } + // The `Host` header should only include the port + // number when it is not the default port. + let { host, port, secureEndpoint } = opts; + if (!isDefaultPort(port, secureEndpoint)) { + host += `:${port}`; + } + headers.Host = host; + headers.Connection = 'close'; + for (const name of Object.keys(headers)) { + payload += `${name}: ${headers[name]}\r\n`; + } + const proxyResponsePromise = parse_proxy_response_1.default(socket); + socket.write(`${payload}\r\n`); + const { statusCode, buffered } = yield proxyResponsePromise; + if (statusCode === 200) { + req.once('socket', resume); + if (opts.secureEndpoint) { + // The proxy is connecting to a TLS server, so upgrade + // this socket connection to a TLS connection. + debug('Upgrading socket connection to TLS'); + const servername = opts.servername || opts.host; + return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, + servername })); + } + return socket; + } + // Some other status code that's not 200... need to re-play the HTTP + // header "data" events onto the socket once the HTTP machinery is + // attached so that the node core `http` can parse and handle the + // error status code. + // Close the original socket, and a new "fake" socket is returned + // instead, so that the proxy doesn't get the HTTP request + // written to it (which may contain `Authorization` headers or other + // sensitive data). + // + // See: https://hackerone.com/reports/541502 + socket.destroy(); + const fakeSocket = new net_1.default.Socket({ writable: false }); + fakeSocket.readable = true; + // Need to wait for the "socket" event to re-play the "data" events. + req.once('socket', (s) => { + debug('replaying proxy buffer for failed request'); + assert_1.default(s.listenerCount('data') > 0); + // Replay the "buffered" Buffer onto the fake `socket`, since at + // this point the HTTP module machinery has been hooked up for + // the user. + s.push(buffered); + s.push(null); + }); + return fakeSocket; + }); + } +} +exports["default"] = HttpsProxyAgent; +function resume(socket) { + socket.resume(); +} +function isDefaultPort(port, secure) { + return Boolean((!secure && port === 80) || (secure && port === 443)); +} +function isHTTPS(protocol) { + return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; +} +function omit(obj, ...keys) { + const ret = {}; + let key; + for (key in obj) { + if (!keys.includes(key)) { + ret[key] = obj[key]; + } + } + return ret; +} +//# sourceMappingURL=agent.js.map + +/***/ }), + +/***/ 81765: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const agent_1 = __importDefault(__nccwpck_require__(96856)); +function createHttpsProxyAgent(opts) { + return new agent_1.default(opts); +} +(function (createHttpsProxyAgent) { + createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; + createHttpsProxyAgent.prototype = agent_1.default.prototype; +})(createHttpsProxyAgent || (createHttpsProxyAgent = {})); +module.exports = createHttpsProxyAgent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 50151: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +const debug_1 = __importDefault(__nccwpck_require__(78549)); +const debug = debug_1.default('https-proxy-agent:parse-proxy-response'); +function parseProxyResponse(socket) { + return new Promise((resolve, reject) => { + // we need to buffer any HTTP traffic that happens with the proxy before we get + // the CONNECT response, so that if the response is anything other than an "200" + // response code, then we can re-play the "data" events on the socket once the + // HTTP parser is hooked up... + let buffersLength = 0; + const buffers = []; + function read() { + const b = socket.read(); + if (b) + ondata(b); + else + socket.once('readable', read); + } + function cleanup() { + socket.removeListener('end', onend); + socket.removeListener('error', onerror); + socket.removeListener('close', onclose); + socket.removeListener('readable', read); + } + function onclose(err) { + debug('onclose had error %o', err); + } + function onend() { + debug('onend'); + } + function onerror(err) { + cleanup(); + debug('onerror %o', err); + reject(err); + } + function ondata(b) { + buffers.push(b); + buffersLength += b.length; + const buffered = Buffer.concat(buffers, buffersLength); + const endOfHeaders = buffered.indexOf('\r\n\r\n'); + if (endOfHeaders === -1) { + // keep buffering + debug('have not received end of HTTP headers yet...'); + read(); + return; + } + const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n')); + const statusCode = +firstLine.split(' ')[1]; + debug('got proxy server response: %o', firstLine); + resolve({ + statusCode, + buffered + }); + } + socket.on('error', onerror); + socket.on('close', onclose); + socket.on('end', onend); + read(); + }); +} +exports["default"] = parseProxyResponse; +//# sourceMappingURL=parse-proxy-response.js.map + +/***/ }), + +/***/ 81007: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.requestTimeout = exports.resetIsAvailableCache = exports.isAvailable = exports.project = exports.instance = exports.HEADERS = exports.HEADER_VALUE = exports.HEADER_NAME = exports.SECONDARY_HOST_ADDRESS = exports.HOST_ADDRESS = exports.BASE_PATH = void 0; +const gaxios_1 = __nccwpck_require__(46814); +const jsonBigint = __nccwpck_require__(18857); +exports.BASE_PATH = '/computeMetadata/v1'; +exports.HOST_ADDRESS = 'http://169.254.169.254'; +exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; +exports.HEADER_NAME = 'Metadata-Flavor'; +exports.HEADER_VALUE = 'Google'; +exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); +/** + * Returns the base URL while taking into account the GCE_METADATA_HOST + * environment variable if it exists. + * + * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. + */ +function getBaseUrl(baseUrl) { + if (!baseUrl) { + baseUrl = + process.env.GCE_METADATA_IP || + process.env.GCE_METADATA_HOST || + exports.HOST_ADDRESS; + } + // If no scheme is provided default to HTTP: + if (!/^https?:\/\//.test(baseUrl)) { + baseUrl = `http://${baseUrl}`; + } + return new URL(exports.BASE_PATH, baseUrl).href; +} +// Accepts an options object passed from the user to the API. In previous +// versions of the API, it referred to a `Request` or an `Axios` request +// options object. Now it refers to an object with very limited property +// names. This is here to help ensure users don't pass invalid options when +// they upgrade from 0.4 to 0.5 to 0.8. +function validate(options) { + Object.keys(options).forEach(key => { + switch (key) { + case 'params': + case 'property': + case 'headers': + break; + case 'qs': + throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); + default: + throw new Error(`'${key}' is not a valid configuration option.`); + } + }); +} +async function metadataAccessor(type, options, noResponseRetries = 3, fastFail = false) { + options = options || {}; + if (typeof options === 'string') { + options = { property: options }; + } + let property = ''; + if (typeof options === 'object' && options.property) { + property = '/' + options.property; + } + validate(options); + try { + const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; + const res = await requestMethod({ + url: `${getBaseUrl()}/${type}${property}`, + headers: Object.assign({}, exports.HEADERS, options.headers), + retryConfig: { noResponseRetries }, + params: options.params, + responseType: 'text', + timeout: requestTimeout(), + }); + // NOTE: node.js converts all incoming headers to lower case. + if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { + throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header.`); + } + else if (!res.data) { + throw new Error('Invalid response from the metadata service'); + } + if (typeof res.data === 'string') { + try { + return jsonBigint.parse(res.data); + } + catch (_a) { + /* ignore */ + } + } + return res.data; + } + catch (e) { + if (e.response && e.response.status !== 200) { + e.message = `Unsuccessful response status code. ${e.message}`; + } + throw e; + } +} +async function fastFailMetadataRequest(options) { + const secondaryOptions = { + ...options, + url: options.url.replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), + }; + // We race a connection between DNS/IP to metadata server. There are a couple + // reasons for this: + // + // 1. the DNS is slow in some GCP environments; by checking both, we might + // detect the runtime environment signficantly faster. + // 2. we can't just check the IP, which is tarpitted and slow to respond + // on a user's local machine. + // + // Additional logic has been added to make sure that we don't create an + // unhandled rejection in scenarios where a failure happens sometime + // after a success. + // + // Note, however, if a failure happens prior to a success, a rejection should + // occur, this is for folks running locally. + // + let responded = false; + const r1 = gaxios_1.request(options) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r2; + } + else { + responded = true; + throw err; + } + }); + const r2 = gaxios_1.request(secondaryOptions) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r1; + } + else { + responded = true; + throw err; + } + }); + return Promise.race([r1, r2]); +} +/** + * Obtain metadata for the current GCE instance + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function instance(options) { + return metadataAccessor('instance', options); +} +exports.instance = instance; +/** + * Obtain metadata for the current GCP Project. + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function project(options) { + return metadataAccessor('project', options); +} +exports.project = project; +/* + * How many times should we retry detecting GCP environment. + */ +function detectGCPAvailableRetries() { + return process.env.DETECT_GCP_RETRIES + ? Number(process.env.DETECT_GCP_RETRIES) + : 0; +} +let cachedIsAvailableResponse; +/** + * Determine if the metadata server is currently available. + */ +async function isAvailable() { + try { + // If a user is instantiating several GCP libraries at the same time, + // this may result in multiple calls to isAvailable(), to detect the + // runtime environment. We use the same promise for each of these calls + // to reduce the network load. + if (cachedIsAvailableResponse === undefined) { + cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), + // If the default HOST_ADDRESS has been overridden, we should not + // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in + // a non-GCP environment): + !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST)); + } + await cachedIsAvailableResponse; + return true; + } + catch (err) { + if (process.env.DEBUG_AUTH) { + console.info(err); + } + if (err.type === 'request-timeout') { + // If running in a GCP environment, metadata endpoint should return + // within ms. + return false; + } + if (err.response && err.response.status === 404) { + return false; + } + else { + if (!(err.response && err.response.status === 404) && + // A warning is emitted if we see an unexpected err.code, or err.code + // is not populated: + (!err.code || + ![ + 'EHOSTDOWN', + 'EHOSTUNREACH', + 'ENETUNREACH', + 'ENOENT', + 'ENOTFOUND', + 'ECONNREFUSED', + ].includes(err.code))) { + let code = 'UNKNOWN'; + if (err.code) + code = err.code; + process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); + } + // Failure to resolve the metadata service means that it is not available. + return false; + } + } +} +exports.isAvailable = isAvailable; +/** + * reset the memoized isAvailable() lookup. + */ +function resetIsAvailableCache() { + cachedIsAvailableResponse = undefined; +} +exports.resetIsAvailableCache = resetIsAvailableCache; +/** + * Obtain the timeout for requests to the metadata server. + */ +function requestTimeout() { + // In testing, we were able to reproduce behavior similar to + // https://github.com/googleapis/google-auth-library-nodejs/issues/798 + // by making many concurrent network requests. Requests do not actually fail, + // rather they take significantly longer to complete (and we hit our + // default 3000ms timeout). + // + // This logic detects a GCF environment, using the documented environment + // variables K_SERVICE and FUNCTION_NAME: + // https://cloud.google.com/functions/docs/env-var and, in a GCF environment + // eliminates timeouts (by setting the value to 0 to disable). + return process.env.K_SERVICE || process.env.FUNCTION_NAME ? 0 : 3000; +} +exports.requestTimeout = requestTimeout; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 83953: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var undefined; + +var $Object = __nccwpck_require__(98536); + +var $Error = __nccwpck_require__(98011); +var $EvalError = __nccwpck_require__(84241); +var $RangeError = __nccwpck_require__(91790); +var $ReferenceError = __nccwpck_require__(24350); +var $SyntaxError = __nccwpck_require__(45304); +var $TypeError = __nccwpck_require__(97183); +var $URIError = __nccwpck_require__(64213); + +var abs = __nccwpck_require__(49302); +var floor = __nccwpck_require__(78180); +var max = __nccwpck_require__(33936); +var min = __nccwpck_require__(63982); +var pow = __nccwpck_require__(996); +var round = __nccwpck_require__(61082); +var sign = __nccwpck_require__(5177); + +var $Function = Function; + +// eslint-disable-next-line consistent-return +var getEvalledConstructor = function (expressionSyntax) { + try { + return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); + } catch (e) {} +}; + +var $gOPD = __nccwpck_require__(8599); +var $defineProperty = __nccwpck_require__(29123); + +var throwTypeError = function () { + throw new $TypeError(); +}; +var ThrowTypeError = $gOPD + ? (function () { + try { + // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties + arguments.callee; // IE 8 does not throw here + return throwTypeError; + } catch (calleeThrows) { + try { + // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') + return $gOPD(arguments, 'callee').get; + } catch (gOPDthrows) { + return throwTypeError; + } + } + }()) + : throwTypeError; + +var hasSymbols = __nccwpck_require__(4347)(); + +var getProto = __nccwpck_require__(44456); +var $ObjectGPO = __nccwpck_require__(39116); +var $ReflectGPO = __nccwpck_require__(32580); + +var $apply = __nccwpck_require__(17590); +var $call = __nccwpck_require__(98328); + +var needsEval = {}; + +var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); + +var INTRINSICS = { + __proto__: null, + '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, + '%Array%': Array, + '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, + '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, + '%AsyncFromSyncIteratorPrototype%': undefined, + '%AsyncFunction%': needsEval, + '%AsyncGenerator%': needsEval, + '%AsyncGeneratorFunction%': needsEval, + '%AsyncIteratorPrototype%': needsEval, + '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, + '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, + '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, + '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, + '%Boolean%': Boolean, + '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, + '%Date%': Date, + '%decodeURI%': decodeURI, + '%decodeURIComponent%': decodeURIComponent, + '%encodeURI%': encodeURI, + '%encodeURIComponent%': encodeURIComponent, + '%Error%': $Error, + '%eval%': eval, // eslint-disable-line no-eval + '%EvalError%': $EvalError, + '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array, + '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, + '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, + '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, + '%Function%': $Function, + '%GeneratorFunction%': needsEval, + '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, + '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, + '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, + '%isFinite%': isFinite, + '%isNaN%': isNaN, + '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%JSON%': typeof JSON === 'object' ? JSON : undefined, + '%Map%': typeof Map === 'undefined' ? undefined : Map, + '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), + '%Math%': Math, + '%Number%': Number, + '%Object%': $Object, + '%Object.getOwnPropertyDescriptor%': $gOPD, + '%parseFloat%': parseFloat, + '%parseInt%': parseInt, + '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, + '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, + '%RangeError%': $RangeError, + '%ReferenceError%': $ReferenceError, + '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, + '%RegExp%': RegExp, + '%Set%': typeof Set === 'undefined' ? undefined : Set, + '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), + '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, + '%String%': String, + '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, + '%Symbol%': hasSymbols ? Symbol : undefined, + '%SyntaxError%': $SyntaxError, + '%ThrowTypeError%': ThrowTypeError, + '%TypedArray%': TypedArray, + '%TypeError%': $TypeError, + '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, + '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, + '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, + '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, + '%URIError%': $URIError, + '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, + '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, + '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, + + '%Function.prototype.call%': $call, + '%Function.prototype.apply%': $apply, + '%Object.defineProperty%': $defineProperty, + '%Object.getPrototypeOf%': $ObjectGPO, + '%Math.abs%': abs, + '%Math.floor%': floor, + '%Math.max%': max, + '%Math.min%': min, + '%Math.pow%': pow, + '%Math.round%': round, + '%Math.sign%': sign, + '%Reflect.getPrototypeOf%': $ReflectGPO +}; + +if (getProto) { + try { + null.error; // eslint-disable-line no-unused-expressions + } catch (e) { + // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 + var errorProto = getProto(getProto(e)); + INTRINSICS['%Error.prototype%'] = errorProto; + } +} + +var doEval = function doEval(name) { + var value; + if (name === '%AsyncFunction%') { + value = getEvalledConstructor('async function () {}'); + } else if (name === '%GeneratorFunction%') { + value = getEvalledConstructor('function* () {}'); + } else if (name === '%AsyncGeneratorFunction%') { + value = getEvalledConstructor('async function* () {}'); + } else if (name === '%AsyncGenerator%') { + var fn = doEval('%AsyncGeneratorFunction%'); + if (fn) { + value = fn.prototype; + } + } else if (name === '%AsyncIteratorPrototype%') { + var gen = doEval('%AsyncGenerator%'); + if (gen && getProto) { + value = getProto(gen.prototype); + } + } + + INTRINSICS[name] = value; + + return value; +}; + +var LEGACY_ALIASES = { + __proto__: null, + '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], + '%ArrayPrototype%': ['Array', 'prototype'], + '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], + '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], + '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], + '%ArrayProto_values%': ['Array', 'prototype', 'values'], + '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], + '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], + '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], + '%BooleanPrototype%': ['Boolean', 'prototype'], + '%DataViewPrototype%': ['DataView', 'prototype'], + '%DatePrototype%': ['Date', 'prototype'], + '%ErrorPrototype%': ['Error', 'prototype'], + '%EvalErrorPrototype%': ['EvalError', 'prototype'], + '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], + '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], + '%FunctionPrototype%': ['Function', 'prototype'], + '%Generator%': ['GeneratorFunction', 'prototype'], + '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], + '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], + '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], + '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], + '%JSONParse%': ['JSON', 'parse'], + '%JSONStringify%': ['JSON', 'stringify'], + '%MapPrototype%': ['Map', 'prototype'], + '%NumberPrototype%': ['Number', 'prototype'], + '%ObjectPrototype%': ['Object', 'prototype'], + '%ObjProto_toString%': ['Object', 'prototype', 'toString'], + '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], + '%PromisePrototype%': ['Promise', 'prototype'], + '%PromiseProto_then%': ['Promise', 'prototype', 'then'], + '%Promise_all%': ['Promise', 'all'], + '%Promise_reject%': ['Promise', 'reject'], + '%Promise_resolve%': ['Promise', 'resolve'], + '%RangeErrorPrototype%': ['RangeError', 'prototype'], + '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], + '%RegExpPrototype%': ['RegExp', 'prototype'], + '%SetPrototype%': ['Set', 'prototype'], + '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], + '%StringPrototype%': ['String', 'prototype'], + '%SymbolPrototype%': ['Symbol', 'prototype'], + '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], + '%TypedArrayPrototype%': ['TypedArray', 'prototype'], + '%TypeErrorPrototype%': ['TypeError', 'prototype'], + '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], + '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], + '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], + '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], + '%URIErrorPrototype%': ['URIError', 'prototype'], + '%WeakMapPrototype%': ['WeakMap', 'prototype'], + '%WeakSetPrototype%': ['WeakSet', 'prototype'] +}; + +var bind = __nccwpck_require__(39587); +var hasOwn = __nccwpck_require__(63689); +var $concat = bind.call($call, Array.prototype.concat); +var $spliceApply = bind.call($apply, Array.prototype.splice); +var $replace = bind.call($call, String.prototype.replace); +var $strSlice = bind.call($call, String.prototype.slice); +var $exec = bind.call($call, RegExp.prototype.exec); + +/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ +var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; +var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ +var stringToPath = function stringToPath(string) { + var first = $strSlice(string, 0, 1); + var last = $strSlice(string, -1); + if (first === '%' && last !== '%') { + throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); + } else if (last === '%' && first !== '%') { + throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); + } + var result = []; + $replace(string, rePropName, function (match, number, quote, subString) { + result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; + }); + return result; +}; +/* end adaptation */ + +var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { + var intrinsicName = name; + var alias; + if (hasOwn(LEGACY_ALIASES, intrinsicName)) { + alias = LEGACY_ALIASES[intrinsicName]; + intrinsicName = '%' + alias[0] + '%'; + } + + if (hasOwn(INTRINSICS, intrinsicName)) { + var value = INTRINSICS[intrinsicName]; + if (value === needsEval) { + value = doEval(intrinsicName); + } + if (typeof value === 'undefined' && !allowMissing) { + throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); + } + + return { + alias: alias, + name: intrinsicName, + value: value + }; + } + + throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); +}; + +module.exports = function GetIntrinsic(name, allowMissing) { + if (typeof name !== 'string' || name.length === 0) { + throw new $TypeError('intrinsic name must be a non-empty string'); + } + if (arguments.length > 1 && typeof allowMissing !== 'boolean') { + throw new $TypeError('"allowMissing" argument must be a boolean'); + } + + if ($exec(/^%?[^%]*%?$/, name) === null) { + throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); + } + var parts = stringToPath(name); + var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; + + var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); + var intrinsicRealName = intrinsic.name; + var value = intrinsic.value; + var skipFurtherCaching = false; + + var alias = intrinsic.alias; + if (alias) { + intrinsicBaseName = alias[0]; + $spliceApply(parts, $concat([0, 1], alias)); + } + + for (var i = 1, isOwn = true; i < parts.length; i += 1) { + var part = parts[i]; + var first = $strSlice(part, 0, 1); + var last = $strSlice(part, -1); + if ( + ( + (first === '"' || first === "'" || first === '`') + || (last === '"' || last === "'" || last === '`') + ) + && first !== last + ) { + throw new $SyntaxError('property names with quotes must have matching quotes'); + } + if (part === 'constructor' || !isOwn) { + skipFurtherCaching = true; + } + + intrinsicBaseName += '.' + part; + intrinsicRealName = '%' + intrinsicBaseName + '%'; + + if (hasOwn(INTRINSICS, intrinsicRealName)) { + value = INTRINSICS[intrinsicRealName]; + } else if (value != null) { + if (!(part in value)) { + if (!allowMissing) { + throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); + } + return void undefined; + } + if ($gOPD && (i + 1) >= parts.length) { + var desc = $gOPD(value, part); + isOwn = !!desc; + + // By convention, when a data property is converted to an accessor + // property to emulate a data property that does not suffer from + // the override mistake, that accessor's getter is marked with + // an `originalValue` property. Here, when we detect this, we + // uphold the illusion by pretending to see that original data + // property, i.e., returning the value rather than the getter + // itself. + if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { + value = desc.get; + } else { + value = value[part]; + } + } else { + isOwn = hasOwn(value, part); + value = value[part]; + } + + if (isOwn && !skipFurtherCaching) { + INTRINSICS[intrinsicRealName] = value; + } + } + } + return value; +}; + + +/***/ }), + +/***/ 39116: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var $Object = __nccwpck_require__(98536); + +/** @type {import('./Object.getPrototypeOf')} */ +module.exports = $Object.getPrototypeOf || null; + + +/***/ }), + +/***/ 32580: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./Reflect.getPrototypeOf')} */ +module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null; + + +/***/ }), + +/***/ 44456: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var reflectGetProto = __nccwpck_require__(32580); +var originalGetProto = __nccwpck_require__(39116); + +var getDunderProto = __nccwpck_require__(17628); + +/** @type {import('.')} */ +module.exports = reflectGetProto + ? function getProto(O) { + // @ts-expect-error TS can't narrow inside a closure, for some reason + return reflectGetProto(O); + } + : originalGetProto + ? function getProto(O) { + if (!O || (typeof O !== 'object' && typeof O !== 'function')) { + throw new TypeError('getProto: not an object'); + } + // @ts-expect-error TS can't narrow inside a closure, for some reason + return originalGetProto(O); + } + : getDunderProto + ? function getProto(O) { + // @ts-expect-error TS can't narrow inside a closure, for some reason + return getDunderProto(O); + } + : null; + + +/***/ }), + +/***/ 68253: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2012 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthClient = void 0; +const events_1 = __nccwpck_require__(24434); +const transporters_1 = __nccwpck_require__(26952); +class AuthClient extends events_1.EventEmitter { + constructor() { + super(...arguments); + this.transporter = new transporters_1.DefaultTransporter(); + this.credentials = {}; + this.eagerRefreshThresholdMillis = 5 * 60 * 1000; + this.forceRefreshOnFailure = false; + } + /** + * Sets the auth credentials. + */ + setCredentials(credentials) { + this.credentials = credentials; + } + /** + * Append additional headers, e.g., x-goog-user-project, shared across the + * classes inheriting AuthClient. This method should be used by any method + * that overrides getRequestMetadataAsync(), which is a shared helper for + * setting request information in both gRPC and HTTP API calls. + * + * @param headers object to append additional headers to. + */ + addSharedMetadataHeaders(headers) { + // quota_project_id, stored in application_default_credentials.json, is set in + // the x-goog-user-project header, to indicate an alternate account for + // billing and quota: + if (!headers['x-goog-user-project'] && // don't override a value the user sets. + this.quotaProjectId) { + headers['x-goog-user-project'] = this.quotaProjectId; + } + return headers; + } +} +exports.AuthClient = AuthClient; +//# sourceMappingURL=authclient.js.map + +/***/ }), + +/***/ 44200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsClient = void 0; +const awsrequestsigner_1 = __nccwpck_require__(29312); +const baseexternalclient_1 = __nccwpck_require__(83645); +/** + * AWS external account client. This is used for AWS workloads, where + * AWS STS GetCallerIdentity serialized signed requests are exchanged for + * GCP access token. + */ +class AwsClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiates an AwsClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid AWS credential. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + var _a; + super(options, additionalOptions); + this.environmentId = options.credential_source.environment_id; + // This is only required if the AWS region is not available in the + // AWS_REGION or AWS_DEFAULT_REGION environment variables. + this.regionUrl = options.credential_source.region_url; + // This is only required if AWS security credentials are not available in + // environment variables. + this.securityCredentialsUrl = options.credential_source.url; + this.regionalCredVerificationUrl = + options.credential_source.regional_cred_verification_url; + this.imdsV2SessionTokenUrl = + options.credential_source.imdsv2_session_token_url; + const match = (_a = this.environmentId) === null || _a === void 0 ? void 0 : _a.match(/^(aws)(\d+)$/); + if (!match || !this.regionalCredVerificationUrl) { + throw new Error('No valid AWS "credential_source" provided'); + } + else if (parseInt(match[2], 10) !== 1) { + throw new Error(`aws version "${match[2]}" is not supported in the current build.`); + } + this.awsRequestSigner = null; + this.region = ''; + } + /** + * Triggered when an external subject token is needed to be exchanged for a + * GCP access token via GCP STS endpoint. + * This uses the `options.credential_source` object to figure out how + * to retrieve the token using the current environment. In this case, + * this uses a serialized AWS signed request to the STS GetCallerIdentity + * endpoint. + * The logic is summarized as: + * 1. If imdsv2_session_token_url is provided in the credential source, then + * fetch the aws session token and include it in the headers of the + * metadata requests. This is a requirement for IDMSv2 but optional + * for IDMSv1. + * 2. Retrieve AWS region from availability-zone. + * 3a. Check AWS credentials in environment variables. If not found, get + * from security-credentials endpoint. + * 3b. Get AWS credentials from security-credentials endpoint. In order + * to retrieve this, the AWS role needs to be determined by calling + * security-credentials endpoint without any argument. Then the + * credentials can be retrieved via: security-credentials/role_name + * 4. Generate the signed request to AWS STS GetCallerIdentity action. + * 5. Inject x-goog-cloud-target-resource into header and serialize the + * signed request. This will be the subject-token to pass to GCP STS. + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + // Initialize AWS request signer if not already initialized. + if (!this.awsRequestSigner) { + const metadataHeaders = {}; + if (this.imdsV2SessionTokenUrl) { + metadataHeaders['x-aws-ec2-metadata-token'] = + await this.getImdsV2SessionToken(); + } + this.region = await this.getAwsRegion(metadataHeaders); + this.awsRequestSigner = new awsrequestsigner_1.AwsRequestSigner(async () => { + // Check environment variables for permanent credentials first. + // https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html + if (process.env['AWS_ACCESS_KEY_ID'] && + process.env['AWS_SECRET_ACCESS_KEY']) { + return { + accessKeyId: process.env['AWS_ACCESS_KEY_ID'], + secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY'], + // This is normally not available for permanent credentials. + token: process.env['AWS_SESSION_TOKEN'], + }; + } + // Since the role on a VM can change, we don't need to cache it. + const roleName = await this.getAwsRoleName(metadataHeaders); + // Temporary credentials typically last for several hours. + // Expiration is returned in response. + // Consider future optimization of this logic to cache AWS tokens + // until their natural expiration. + const awsCreds = await this.getAwsSecurityCredentials(roleName, metadataHeaders); + return { + accessKeyId: awsCreds.AccessKeyId, + secretAccessKey: awsCreds.SecretAccessKey, + token: awsCreds.Token, + }; + }, this.region); + } + // Generate signed request to AWS STS GetCallerIdentity API. + // Use the required regional endpoint. Otherwise, the request will fail. + const options = await this.awsRequestSigner.getRequestOptions({ + url: this.regionalCredVerificationUrl.replace('{region}', this.region), + method: 'POST', + }); + // The GCP STS endpoint expects the headers to be formatted as: + // [ + // {key: 'x-amz-date', value: '...'}, + // {key: 'Authorization', value: '...'}, + // ... + // ] + // And then serialized as: + // encodeURIComponent(JSON.stringify({ + // url: '...', + // method: 'POST', + // headers: [{key: 'x-amz-date', value: '...'}, ...] + // })) + const reformattedHeader = []; + const extendedHeaders = Object.assign({ + // The full, canonical resource name of the workload identity pool + // provider, with or without the HTTPS prefix. + // Including this header as part of the signature is recommended to + // ensure data integrity. + 'x-goog-cloud-target-resource': this.audience, + }, options.headers); + // Reformat header to GCP STS expected format. + for (const key in extendedHeaders) { + reformattedHeader.push({ + key, + value: extendedHeaders[key], + }); + } + // Serialize the reformatted signed request. + return encodeURIComponent(JSON.stringify({ + url: options.url, + method: options.method, + headers: reformattedHeader, + })); + } + /** + * @return A promise that resolves with the IMDSv2 Session Token. + */ + async getImdsV2SessionToken() { + const opts = { + url: this.imdsV2SessionTokenUrl, + method: 'PUT', + responseType: 'text', + headers: { 'x-aws-ec2-metadata-token-ttl-seconds': '300' }, + }; + const response = await this.transporter.request(opts); + return response.data; + } + /** + * @param headers The headers to be used in the metadata request. + * @return A promise that resolves with the current AWS region. + */ + async getAwsRegion(headers) { + // Priority order for region determination: + // AWS_REGION > AWS_DEFAULT_REGION > metadata server. + if (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION']) { + return (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION']); + } + if (!this.regionUrl) { + throw new Error('Unable to determine AWS region due to missing ' + + '"options.credential_source.region_url"'); + } + const opts = { + url: this.regionUrl, + method: 'GET', + responseType: 'text', + headers: headers, + }; + const response = await this.transporter.request(opts); + // Remove last character. For example, if us-east-2b is returned, + // the region would be us-east-2. + return response.data.substr(0, response.data.length - 1); + } + /** + * @param headers The headers to be used in the metadata request. + * @return A promise that resolves with the assigned role to the current + * AWS VM. This is needed for calling the security-credentials endpoint. + */ + async getAwsRoleName(headers) { + if (!this.securityCredentialsUrl) { + throw new Error('Unable to determine AWS role name due to missing ' + + '"options.credential_source.url"'); + } + const opts = { + url: this.securityCredentialsUrl, + method: 'GET', + responseType: 'text', + headers: headers, + }; + const response = await this.transporter.request(opts); + return response.data; + } + /** + * Retrieves the temporary AWS credentials by calling the security-credentials + * endpoint as specified in the `credential_source` object. + * @param roleName The role attached to the current VM. + * @param headers The headers to be used in the metadata request. + * @return A promise that resolves with the temporary AWS credentials + * needed for creating the GetCallerIdentity signed request. + */ + async getAwsSecurityCredentials(roleName, headers) { + const response = await this.transporter.request({ + url: `${this.securityCredentialsUrl}/${roleName}`, + responseType: 'json', + headers: headers, + }); + return response.data; + } +} +exports.AwsClient = AwsClient; +//# sourceMappingURL=awsclient.js.map + +/***/ }), + +/***/ 29312: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsRequestSigner = void 0; +const crypto_1 = __nccwpck_require__(47136); +/** AWS Signature Version 4 signing algorithm identifier. */ +const AWS_ALGORITHM = 'AWS4-HMAC-SHA256'; +/** + * The termination string for the AWS credential scope value as defined in + * https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html + */ +const AWS_REQUEST_TYPE = 'aws4_request'; +/** + * Implements an AWS API request signer based on the AWS Signature Version 4 + * signing process. + * https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + */ +class AwsRequestSigner { + /** + * Instantiates an AWS API request signer used to send authenticated signed + * requests to AWS APIs based on the AWS Signature Version 4 signing process. + * This also provides a mechanism to generate the signed request without + * sending it. + * @param getCredentials A mechanism to retrieve AWS security credentials + * when needed. + * @param region The AWS region to use. + */ + constructor(getCredentials, region) { + this.getCredentials = getCredentials; + this.region = region; + this.crypto = crypto_1.createCrypto(); + } + /** + * Generates the signed request for the provided HTTP request for calling + * an AWS API. This follows the steps described at: + * https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html + * @param amzOptions The AWS request options that need to be signed. + * @return A promise that resolves with the GaxiosOptions containing the + * signed HTTP request parameters. + */ + async getRequestOptions(amzOptions) { + if (!amzOptions.url) { + throw new Error('"url" is required in "amzOptions"'); + } + // Stringify JSON requests. This will be set in the request body of the + // generated signed request. + const requestPayloadData = typeof amzOptions.data === 'object' + ? JSON.stringify(amzOptions.data) + : amzOptions.data; + const url = amzOptions.url; + const method = amzOptions.method || 'GET'; + const requestPayload = amzOptions.body || requestPayloadData; + const additionalAmzHeaders = amzOptions.headers; + const awsSecurityCredentials = await this.getCredentials(); + const uri = new URL(url); + const headerMap = await generateAuthenticationHeaderMap({ + crypto: this.crypto, + host: uri.host, + canonicalUri: uri.pathname, + canonicalQuerystring: uri.search.substr(1), + method, + region: this.region, + securityCredentials: awsSecurityCredentials, + requestPayload, + additionalAmzHeaders, + }); + // Append additional optional headers, eg. X-Amz-Target, Content-Type, etc. + const headers = Object.assign( + // Add x-amz-date if available. + headerMap.amzDate ? { 'x-amz-date': headerMap.amzDate } : {}, { + Authorization: headerMap.authorizationHeader, + host: uri.host, + }, additionalAmzHeaders || {}); + if (awsSecurityCredentials.token) { + Object.assign(headers, { + 'x-amz-security-token': awsSecurityCredentials.token, + }); + } + const awsSignedReq = { + url, + method: method, + headers, + }; + if (typeof requestPayload !== 'undefined') { + awsSignedReq.body = requestPayload; + } + return awsSignedReq; + } +} +exports.AwsRequestSigner = AwsRequestSigner; +/** + * Creates the HMAC-SHA256 hash of the provided message using the + * provided key. + * + * @param crypto The crypto instance used to facilitate cryptographic + * operations. + * @param key The HMAC-SHA256 key to use. + * @param msg The message to hash. + * @return The computed hash bytes. + */ +async function sign(crypto, key, msg) { + return await crypto.signWithHmacSha256(key, msg); +} +/** + * Calculates the signing key used to calculate the signature for + * AWS Signature Version 4 based on: + * https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + * + * @param crypto The crypto instance used to facilitate cryptographic + * operations. + * @param key The AWS secret access key. + * @param dateStamp The '%Y%m%d' date format. + * @param region The AWS region. + * @param serviceName The AWS service name, eg. sts. + * @return The signing key bytes. + */ +async function getSigningKey(crypto, key, dateStamp, region, serviceName) { + const kDate = await sign(crypto, `AWS4${key}`, dateStamp); + const kRegion = await sign(crypto, kDate, region); + const kService = await sign(crypto, kRegion, serviceName); + const kSigning = await sign(crypto, kService, 'aws4_request'); + return kSigning; +} +/** + * Generates the authentication header map needed for generating the AWS + * Signature Version 4 signed request. + * + * @param option The options needed to compute the authentication header map. + * @return The AWS authentication header map which constitutes of the following + * components: amz-date, authorization header and canonical query string. + */ +async function generateAuthenticationHeaderMap(options) { + const additionalAmzHeaders = options.additionalAmzHeaders || {}; + const requestPayload = options.requestPayload || ''; + // iam.amazonaws.com host => iam service. + // sts.us-east-2.amazonaws.com => sts service. + const serviceName = options.host.split('.')[0]; + const now = new Date(); + // Format: '%Y%m%dT%H%M%SZ'. + const amzDate = now + .toISOString() + .replace(/[-:]/g, '') + .replace(/\.[0-9]+/, ''); + // Format: '%Y%m%d'. + const dateStamp = now.toISOString().replace(/[-]/g, '').replace(/T.*/, ''); + // Change all additional headers to be lower case. + const reformattedAdditionalAmzHeaders = {}; + Object.keys(additionalAmzHeaders).forEach(key => { + reformattedAdditionalAmzHeaders[key.toLowerCase()] = + additionalAmzHeaders[key]; + }); + // Add AWS token if available. + if (options.securityCredentials.token) { + reformattedAdditionalAmzHeaders['x-amz-security-token'] = + options.securityCredentials.token; + } + // Header keys need to be sorted alphabetically. + const amzHeaders = Object.assign({ + host: options.host, + }, + // Previously the date was not fixed with x-amz- and could be provided manually. + // https://github.com/boto/botocore/blob/879f8440a4e9ace5d3cf145ce8b3d5e5ffb892ef/tests/unit/auth/aws4_testsuite/get-header-value-trim.req + reformattedAdditionalAmzHeaders.date ? {} : { 'x-amz-date': amzDate }, reformattedAdditionalAmzHeaders); + let canonicalHeaders = ''; + const signedHeadersList = Object.keys(amzHeaders).sort(); + signedHeadersList.forEach(key => { + canonicalHeaders += `${key}:${amzHeaders[key]}\n`; + }); + const signedHeaders = signedHeadersList.join(';'); + const payloadHash = await options.crypto.sha256DigestHex(requestPayload); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html + const canonicalRequest = `${options.method}\n` + + `${options.canonicalUri}\n` + + `${options.canonicalQuerystring}\n` + + `${canonicalHeaders}\n` + + `${signedHeaders}\n` + + `${payloadHash}`; + const credentialScope = `${dateStamp}/${options.region}/${serviceName}/${AWS_REQUEST_TYPE}`; + // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html + const stringToSign = `${AWS_ALGORITHM}\n` + + `${amzDate}\n` + + `${credentialScope}\n` + + (await options.crypto.sha256DigestHex(canonicalRequest)); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName); + const signature = await sign(options.crypto, signingKey, stringToSign); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html + const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/` + + `${credentialScope}, SignedHeaders=${signedHeaders}, ` + + `Signature=${crypto_1.fromArrayBufferToHex(signature)}`; + return { + // Do not return x-amz-date if date is available. + amzDate: reformattedAdditionalAmzHeaders.date ? undefined : amzDate, + authorizationHeader, + canonicalQuerystring: options.canonicalQuerystring, + }; +} +//# sourceMappingURL=awsrequestsigner.js.map + +/***/ }), + +/***/ 83645: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseExternalAccountClient = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0; +const stream = __nccwpck_require__(2203); +const authclient_1 = __nccwpck_require__(68253); +const sts = __nccwpck_require__(93822); +/** + * The required token exchange grant_type: rfc8693#section-2.1 + */ +const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; +/** + * The requested token exchange requested_token_type: rfc8693#section-2.1 + */ +const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** The default OAuth scope to request when none is provided. */ +const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; +/** The google apis domain pattern. */ +const GOOGLE_APIS_DOMAIN_PATTERN = '\\.googleapis\\.com$'; +/** The variable portion pattern in a Google APIs domain. */ +const VARIABLE_PORTION_PATTERN = '[^\\.\\s\\/\\\\]+'; +/** + * Offset to take into account network delays and server clock skews. + */ +exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +/** + * The credentials JSON file type for external account clients. + * There are 3 types of JSON configs: + * 1. authorized_user => Google end user credential + * 2. service_account => Google service account credential + * 3. external_Account => non-GCP service (eg. AWS, Azure, K8s) + */ +exports.EXTERNAL_ACCOUNT_TYPE = 'external_account'; +/** Cloud resource manager URL used to retrieve project information. */ +exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/'; +/** The workforce audience pattern. */ +const WORKFORCE_AUDIENCE_PATTERN = '//iam.googleapis.com/locations/[^/]+/workforcePools/[^/]+/providers/.+'; +/** + * Base external account client. This is used to instantiate AuthClients for + * exchanging external account credentials for GCP access token and authorizing + * requests to GCP APIs. + * The base class implements common logic for exchanging various type of + * external credentials for GCP access token. The logic of determining and + * retrieving the external credential based on the environment and + * credential_source will be left for the subclasses. + */ +class BaseExternalAccountClient extends authclient_1.AuthClient { + /** + * Instantiate a BaseExternalAccountClient instance using the provided JSON + * object loaded from an external account credentials file. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + super(); + if (options.type !== exports.EXTERNAL_ACCOUNT_TYPE) { + throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` + + `received "${options.type}"`); + } + this.clientAuth = options.client_id + ? { + confidentialClientType: 'basic', + clientId: options.client_id, + clientSecret: options.client_secret, + } + : undefined; + if (!this.validateGoogleAPIsUrl('sts', options.token_url)) { + throw new Error(`"${options.token_url}" is not a valid token url.`); + } + this.stsCredential = new sts.StsCredentials(options.token_url, this.clientAuth); + // Default OAuth scope. This could be overridden via public property. + this.scopes = [DEFAULT_OAUTH_SCOPE]; + this.cachedAccessToken = null; + this.audience = options.audience; + this.subjectTokenType = options.subject_token_type; + this.quotaProjectId = options.quota_project_id; + this.workforcePoolUserProject = options.workforce_pool_user_project; + const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN); + if (this.workforcePoolUserProject && + !this.audience.match(workforceAudiencePattern)) { + throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' + + 'credentials.'); + } + if (typeof options.service_account_impersonation_url !== 'undefined' && + !this.validateGoogleAPIsUrl('iamcredentials', options.service_account_impersonation_url)) { + throw new Error(`"${options.service_account_impersonation_url}" is ` + + 'not a valid service account impersonation url.'); + } + this.serviceAccountImpersonationUrl = + options.service_account_impersonation_url; + // As threshold could be zero, + // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the + // zero value. + if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { + this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; + } + else { + this.eagerRefreshThresholdMillis = additionalOptions + .eagerRefreshThresholdMillis; + } + this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); + this.projectId = null; + this.projectNumber = this.getProjectNumber(this.audience); + } + /** The service account email to be impersonated, if available. */ + getServiceAccountEmail() { + var _a; + if (this.serviceAccountImpersonationUrl) { + // Parse email from URL. The formal looks as follows: + // https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken + const re = /serviceAccounts\/(?[^:]+):generateAccessToken$/; + const result = re.exec(this.serviceAccountImpersonationUrl); + return ((_a = result === null || result === void 0 ? void 0 : result.groups) === null || _a === void 0 ? void 0 : _a.email) || null; + } + return null; + } + /** + * Provides a mechanism to inject GCP access tokens directly. + * When the provided credential expires, a new credential, using the + * external account options, is retrieved. + * @param credentials The Credentials object to set on the current client. + */ + setCredentials(credentials) { + super.setCredentials(credentials); + this.cachedAccessToken = credentials; + } + /** + * @return A promise that resolves with the current GCP access token + * response. If the current credential is expired, a new one is retrieved. + */ + async getAccessToken() { + // If cached access token is unavailable or expired, force refresh. + if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return GCP access token in GetAccessTokenResponse format. + return { + token: this.cachedAccessToken.access_token, + res: this.cachedAccessToken.res, + }; + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * The result has the form: + * { Authorization: 'Bearer ' } + */ + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * @return A promise that resolves with the project ID corresponding to the + * current workload identity pool or current workforce pool if + * determinable. For workforce pool credential, it returns the project ID + * corresponding to the workforcePoolUserProject. + * This is introduced to match the current pattern of using the Auth + * library: + * const projectId = await auth.getProjectId(); + * const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; + * const res = await client.request({ url }); + * The resource may not have permission + * (resourcemanager.projects.get) to call this API or the required + * scopes may not be selected: + * https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes + */ + async getProjectId() { + const projectNumber = this.projectNumber || this.workforcePoolUserProject; + if (this.projectId) { + // Return previously determined project ID. + return this.projectId; + } + else if (projectNumber) { + // Preferable not to use request() to avoid retrial policies. + const headers = await this.getRequestHeaders(); + const response = await this.transporter.request({ + headers, + url: `${exports.CLOUD_RESOURCE_MANAGER}${projectNumber}`, + responseType: 'json', + }); + this.projectId = response.data.projectId; + return this.projectId; + } + return null; + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param retry Whether the current attempt is a retry after a failed attempt. + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, retry = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } + } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * External credentials are exchanged for GCP access tokens via the token + * exchange endpoint and other settings provided in the client options + * object. + * If the service_account_impersonation_url is provided, an additional + * step to exchange the external account GCP access token for a service + * account impersonated token is performed. + * @return A promise that resolves with the fresh GCP access tokens. + */ + async refreshAccessTokenAsync() { + // Retrieve the external credential. + const subjectToken = await this.retrieveSubjectToken(); + // Construct the STS credentials options. + const stsCredentialsOptions = { + grantType: STS_GRANT_TYPE, + audience: this.audience, + requestedTokenType: STS_REQUEST_TOKEN_TYPE, + subjectToken, + subjectTokenType: this.subjectTokenType, + // generateAccessToken requires the provided access token to have + // scopes: + // https://www.googleapis.com/auth/iam or + // https://www.googleapis.com/auth/cloud-platform + // The new service account access token scopes will match the user + // provided ones. + scope: this.serviceAccountImpersonationUrl + ? [DEFAULT_OAUTH_SCOPE] + : this.getScopesArray(), + }; + // Exchange the external credentials for a GCP access token. + // Client auth is prioritized over passing the workforcePoolUserProject + // parameter for STS token exchange. + const additionalOptions = !this.clientAuth && this.workforcePoolUserProject + ? { userProject: this.workforcePoolUserProject } + : undefined; + const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, additionalOptions); + if (this.serviceAccountImpersonationUrl) { + this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token); + } + else if (stsResponse.expires_in) { + // Save response in cached access token. + this.cachedAccessToken = { + access_token: stsResponse.access_token, + expiry_date: new Date().getTime() + stsResponse.expires_in * 1000, + res: stsResponse.res, + }; + } + else { + // Save response in cached access token. + this.cachedAccessToken = { + access_token: stsResponse.access_token, + res: stsResponse.res, + }; + } + // Save credentials. + this.credentials = {}; + Object.assign(this.credentials, this.cachedAccessToken); + delete this.credentials.res; + // Trigger tokens event to notify external listeners. + this.emit('tokens', { + refresh_token: null, + expiry_date: this.cachedAccessToken.expiry_date, + access_token: this.cachedAccessToken.access_token, + token_type: 'Bearer', + id_token: null, + }); + // Return the cached access token. + return this.cachedAccessToken; + } + /** + * Returns the workload identity pool project number if it is determinable + * from the audience resource name. + * @param audience The STS audience used to determine the project number. + * @return The project number associated with the workload identity pool, if + * this can be determined from the STS audience field. Otherwise, null is + * returned. + */ + getProjectNumber(audience) { + // STS audience pattern: + // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/... + const match = audience.match(/\/projects\/([^/]+)/); + if (!match) { + return null; + } + return match[1]; + } + /** + * Exchanges an external account GCP access token for a service + * account impersonated access token using iamcredentials + * GenerateAccessToken API. + * @param token The access token to exchange for a service account access + * token. + * @return A promise that resolves with the service account impersonated + * credentials response. + */ + async getImpersonatedAccessToken(token) { + const opts = { + url: this.serviceAccountImpersonationUrl, + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Authorization: `Bearer ${token}`, + }, + data: { + scope: this.getScopesArray(), + }, + responseType: 'json', + }; + const response = await this.transporter.request(opts); + const successResponse = response.data; + return { + access_token: successResponse.accessToken, + // Convert from ISO format to timestamp. + expiry_date: new Date(successResponse.expireTime).getTime(), + res: response, + }; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param accessToken The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(accessToken) { + const now = new Date().getTime(); + return accessToken.expiry_date + ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis + : false; + } + /** + * @return The list of scopes for the requested GCP access token. + */ + getScopesArray() { + // Since scopes can be provided as string or array, the type should + // be normalized. + if (typeof this.scopes === 'string') { + return [this.scopes]; + } + else if (typeof this.scopes === 'undefined') { + return [DEFAULT_OAUTH_SCOPE]; + } + else { + return this.scopes; + } + } + /** + * Checks whether Google APIs URL is valid. + * @param apiName The apiName of url. + * @param url The Google API URL to validate. + * @return Whether the URL is valid or not. + */ + validateGoogleAPIsUrl(apiName, url) { + let parsedUrl; + // Return false if error is thrown during parsing URL. + try { + parsedUrl = new URL(url); + } + catch (e) { + return false; + } + const urlDomain = parsedUrl.hostname; + // Check the protocol is https. + if (parsedUrl.protocol !== 'https:') { + return false; + } + const googleAPIsDomainPatterns = [ + new RegExp('^' + + VARIABLE_PORTION_PATTERN + + '\\.' + + apiName + + GOOGLE_APIS_DOMAIN_PATTERN), + new RegExp('^' + apiName + GOOGLE_APIS_DOMAIN_PATTERN), + new RegExp('^' + + apiName + + '\\.' + + VARIABLE_PORTION_PATTERN + + GOOGLE_APIS_DOMAIN_PATTERN), + new RegExp('^' + + VARIABLE_PORTION_PATTERN + + '\\-' + + apiName + + GOOGLE_APIS_DOMAIN_PATTERN), + ]; + for (const googleAPIsDomainPattern of googleAPIsDomainPatterns) { + if (urlDomain.match(googleAPIsDomainPattern)) { + return true; + } + } + return false; + } +} +exports.BaseExternalAccountClient = BaseExternalAccountClient; +//# sourceMappingURL=baseexternalclient.js.map + +/***/ }), + +/***/ 27052: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2013 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Compute = void 0; +const arrify = __nccwpck_require__(13730); +const gcpMetadata = __nccwpck_require__(81007); +const oauth2client_1 = __nccwpck_require__(91272); +class Compute extends oauth2client_1.OAuth2Client { + /** + * Google Compute Engine service account credentials. + * + * Retrieve access token from the metadata server. + * See: https://developers.google.com/compute/docs/authentication + */ + constructor(options = {}) { + super(options); + // Start with an expired refresh token, which will automatically be + // refreshed before the first API call is made. + this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; + this.serviceAccountEmail = options.serviceAccountEmail || 'default'; + this.scopes = arrify(options.scopes); + } + /** + * Refreshes the access token. + * @param refreshToken Unused parameter + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; + let data; + try { + const instanceOptions = { + property: tokenPath, + }; + if (this.scopes.length > 0) { + instanceOptions.params = { + scopes: this.scopes.join(','), + }; + } + data = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + e.message = `Could not refresh access token: ${e.message}`; + this.wrapError(e); + throw e; + } + const tokens = data; + if (data && data.expires_in) { + tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res: null }; + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + + `?format=full&audience=${targetAudience}`; + let idToken; + try { + const instanceOptions = { + property: idTokenPath, + }; + idToken = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + e.message = `Could not fetch ID token: ${e.message}`; + throw e; + } + return idToken; + } + wrapError(e) { + const res = e.response; + if (res && res.status) { + e.code = res.status.toString(); + if (res.status === 403) { + e.message = + 'A Forbidden error was returned while attempting to retrieve an access ' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have the correct permission scopes specified: ' + + e.message; + } + else if (res.status === 404) { + e.message = + 'A Not Found error was returned while attempting to retrieve an access' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have any permission scopes specified: ' + + e.message; + } + } + } +} +exports.Compute = Compute; +//# sourceMappingURL=computeclient.js.map + +/***/ }), + +/***/ 50575: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0; +const stream = __nccwpck_require__(2203); +const authclient_1 = __nccwpck_require__(68253); +const sts = __nccwpck_require__(93822); +/** + * The required token exchange grant_type: rfc8693#section-2.1 + */ +const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; +/** + * The requested token exchange requested_token_type: rfc8693#section-2.1 + */ +const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** + * The requested token exchange subject_token_type: rfc8693#section-2.1 + */ +const STS_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** The STS access token exchange end point. */ +const STS_ACCESS_TOKEN_URL = 'https://sts.googleapis.com/v1/token'; +/** + * The maximum number of access boundary rules a Credential Access Boundary + * can contain. + */ +exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10; +/** + * Offset to take into account network delays and server clock skews. + */ +exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +/** + * Defines a set of Google credentials that are downscoped from an existing set + * of Google OAuth2 credentials. This is useful to restrict the Identity and + * Access Management (IAM) permissions that a short-lived credential can use. + * The common pattern of usage is to have a token broker with elevated access + * generate these downscoped credentials from higher access source credentials + * and pass the downscoped short-lived access tokens to a token consumer via + * some secure authenticated channel for limited access to Google Cloud Storage + * resources. + */ +class DownscopedClient extends authclient_1.AuthClient { + /** + * Instantiates a downscoped client object using the provided source + * AuthClient and credential access boundary rules. + * To downscope permissions of a source AuthClient, a Credential Access + * Boundary that specifies which resources the new credential can access, as + * well as an upper bound on the permissions that are available on each + * resource, has to be defined. A downscoped client can then be instantiated + * using the source AuthClient and the Credential Access Boundary. + * @param authClient The source AuthClient to be downscoped based on the + * provided Credential Access Boundary rules. + * @param credentialAccessBoundary The Credential Access Boundary which + * contains a list of access boundary rules. Each rule contains information + * on the resource that the rule applies to, the upper bound of the + * permissions that are available on that resource and an optional + * condition to further restrict permissions. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + * @param quotaProjectId Optional quota project id for setting up in the + * x-goog-user-project header. + */ + constructor(authClient, credentialAccessBoundary, additionalOptions, quotaProjectId) { + super(); + this.authClient = authClient; + this.credentialAccessBoundary = credentialAccessBoundary; + // Check 1-10 Access Boundary Rules are defined within Credential Access + // Boundary. + if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length === 0) { + throw new Error('At least one access boundary rule needs to be defined.'); + } + else if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length > + exports.MAX_ACCESS_BOUNDARY_RULES_COUNT) { + throw new Error('The provided access boundary has more than ' + + `${exports.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`); + } + // Check at least one permission should be defined in each Access Boundary + // Rule. + for (const rule of credentialAccessBoundary.accessBoundary + .accessBoundaryRules) { + if (rule.availablePermissions.length === 0) { + throw new Error('At least one permission should be defined in access boundary rules.'); + } + } + this.stsCredential = new sts.StsCredentials(STS_ACCESS_TOKEN_URL); + this.cachedDownscopedAccessToken = null; + // As threshold could be zero, + // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the + // zero value. + if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { + this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; + } + else { + this.eagerRefreshThresholdMillis = additionalOptions + .eagerRefreshThresholdMillis; + } + this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); + this.quotaProjectId = quotaProjectId; + } + /** + * Provides a mechanism to inject Downscoped access tokens directly. + * The expiry_date field is required to facilitate determination of the token + * expiration which would make it easier for the token consumer to handle. + * @param credentials The Credentials object to set on the current client. + */ + setCredentials(credentials) { + if (!credentials.expiry_date) { + throw new Error('The access token expiry_date field is missing in the provided ' + + 'credentials.'); + } + super.setCredentials(credentials); + this.cachedDownscopedAccessToken = credentials; + } + async getAccessToken() { + // If the cached access token is unavailable or expired, force refresh. + // The Downscoped access token will be returned in + // DownscopedAccessTokenResponse format. + if (!this.cachedDownscopedAccessToken || + this.isExpired(this.cachedDownscopedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return Downscoped access token in DownscopedAccessTokenResponse format. + return { + token: this.cachedDownscopedAccessToken.access_token, + expirationTime: this.cachedDownscopedAccessToken.expiry_date, + res: this.cachedDownscopedAccessToken.res, + }; + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * The result has the form: + * { Authorization: 'Bearer ' } + */ + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param retry Whether the current attempt is a retry after a failed attempt. + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, retry = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } + } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * GCP access tokens are retrieved from authclient object/source credential. + * Then GCP access tokens are exchanged for downscoped access tokens via the + * token exchange endpoint. + * @return A promise that resolves with the fresh downscoped access token. + */ + async refreshAccessTokenAsync() { + var _a; + // Retrieve GCP access token from source credential. + const subjectToken = (await this.authClient.getAccessToken()).token; + // Construct the STS credentials options. + const stsCredentialsOptions = { + grantType: STS_GRANT_TYPE, + requestedTokenType: STS_REQUEST_TOKEN_TYPE, + subjectToken: subjectToken, + subjectTokenType: STS_SUBJECT_TOKEN_TYPE, + }; + // Exchange the source AuthClient access token for a Downscoped access + // token. + const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, this.credentialAccessBoundary); + /** + * The STS endpoint will only return the expiration time for the downscoped + * access token if the original access token represents a service account. + * The downscoped token's expiration time will always match the source + * credential expiration. When no expires_in is returned, we can copy the + * source credential's expiration time. + */ + const sourceCredExpireDate = ((_a = this.authClient.credentials) === null || _a === void 0 ? void 0 : _a.expiry_date) || null; + const expiryDate = stsResponse.expires_in + ? new Date().getTime() + stsResponse.expires_in * 1000 + : sourceCredExpireDate; + // Save response in cached access token. + this.cachedDownscopedAccessToken = { + access_token: stsResponse.access_token, + expiry_date: expiryDate, + res: stsResponse.res, + }; + // Save credentials. + this.credentials = {}; + Object.assign(this.credentials, this.cachedDownscopedAccessToken); + delete this.credentials.res; + // Trigger tokens event to notify external listeners. + this.emit('tokens', { + refresh_token: null, + expiry_date: this.cachedDownscopedAccessToken.expiry_date, + access_token: this.cachedDownscopedAccessToken.access_token, + token_type: 'Bearer', + id_token: null, + }); + // Return the cached access token. + return this.cachedDownscopedAccessToken; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param downscopedAccessToken The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(downscopedAccessToken) { + const now = new Date().getTime(); + return downscopedAccessToken.expiry_date + ? now >= + downscopedAccessToken.expiry_date - this.eagerRefreshThresholdMillis + : false; + } +} +exports.DownscopedClient = DownscopedClient; +//# sourceMappingURL=downscopedclient.js.map + +/***/ }), + +/***/ 93670: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getEnv = exports.clear = exports.GCPEnv = void 0; +const gcpMetadata = __nccwpck_require__(81007); +var GCPEnv; +(function (GCPEnv) { + GCPEnv["APP_ENGINE"] = "APP_ENGINE"; + GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; + GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; + GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; + GCPEnv["CLOUD_RUN"] = "CLOUD_RUN"; + GCPEnv["NONE"] = "NONE"; +})(GCPEnv = exports.GCPEnv || (exports.GCPEnv = {})); +let envPromise; +function clear() { + envPromise = undefined; +} +exports.clear = clear; +async function getEnv() { + if (envPromise) { + return envPromise; + } + envPromise = getEnvMemoized(); + return envPromise; +} +exports.getEnv = getEnv; +async function getEnvMemoized() { + let env = GCPEnv.NONE; + if (isAppEngine()) { + env = GCPEnv.APP_ENGINE; + } + else if (isCloudFunction()) { + env = GCPEnv.CLOUD_FUNCTIONS; + } + else if (await isComputeEngine()) { + if (await isKubernetesEngine()) { + env = GCPEnv.KUBERNETES_ENGINE; + } + else if (isCloudRun()) { + env = GCPEnv.CLOUD_RUN; + } + else { + env = GCPEnv.COMPUTE_ENGINE; + } + } + else { + env = GCPEnv.NONE; + } + return env; +} +function isAppEngine() { + return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); +} +function isCloudFunction() { + return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); +} +/** + * This check only verifies that the environment is running knative. + * This must be run *after* checking for Kubernetes, otherwise it will + * return a false positive. + */ +function isCloudRun() { + return !!process.env.K_CONFIGURATION; +} +async function isKubernetesEngine() { + try { + await gcpMetadata.instance('attributes/cluster-name'); + return true; + } + catch (e) { + return false; + } +} +async function isComputeEngine() { + return gcpMetadata.isAvailable(); +} +//# sourceMappingURL=envDetect.js.map + +/***/ }), + +/***/ 53528: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ExternalAccountClient = void 0; +const baseexternalclient_1 = __nccwpck_require__(83645); +const identitypoolclient_1 = __nccwpck_require__(6191); +const awsclient_1 = __nccwpck_require__(44200); +/** + * Dummy class with no constructor. Developers are expected to use fromJSON. + */ +class ExternalAccountClient { + constructor() { + throw new Error('ExternalAccountClients should be initialized via: ' + + 'ExternalAccountClient.fromJSON(), ' + + 'directly via explicit constructors, eg. ' + + 'new AwsClient(options), new IdentityPoolClient(options) or via ' + + 'new GoogleAuth(options).getClient()'); + } + /** + * This static method will instantiate the + * corresponding type of external account credential depending on the + * underlying credential source. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + * @return A BaseExternalAccountClient instance or null if the options + * provided do not correspond to an external account credential. + */ + static fromJSON(options, additionalOptions) { + var _a; + if (options && options.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + if ((_a = options.credential_source) === null || _a === void 0 ? void 0 : _a.environment_id) { + return new awsclient_1.AwsClient(options, additionalOptions); + } + else { + return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions); + } + } + else { + return null; + } + } +} +exports.ExternalAccountClient = ExternalAccountClient; +//# sourceMappingURL=externalclient.js.map + +/***/ }), + +/***/ 90833: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleAuth = exports.CLOUD_SDK_CLIENT_ID = void 0; +const child_process_1 = __nccwpck_require__(35317); +const fs = __nccwpck_require__(79896); +const gcpMetadata = __nccwpck_require__(81007); +const os = __nccwpck_require__(70857); +const path = __nccwpck_require__(16928); +const crypto_1 = __nccwpck_require__(47136); +const transporters_1 = __nccwpck_require__(26952); +const computeclient_1 = __nccwpck_require__(27052); +const idtokenclient_1 = __nccwpck_require__(38415); +const envDetect_1 = __nccwpck_require__(93670); +const jwtclient_1 = __nccwpck_require__(73752); +const refreshclient_1 = __nccwpck_require__(82338); +const externalclient_1 = __nccwpck_require__(53528); +const baseexternalclient_1 = __nccwpck_require__(83645); +exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; +class GoogleAuth { + constructor(opts) { + /** + * Caches a value indicating whether the auth layer is running on Google + * Compute Engine. + * @private + */ + this.checkIsGCE = undefined; + // To save the contents of the JSON credential file + this.jsonContent = null; + this.cachedCredential = null; + opts = opts || {}; + this._cachedProjectId = opts.projectId || null; + this.cachedCredential = opts.authClient || null; + this.keyFilename = opts.keyFilename || opts.keyFile; + this.scopes = opts.scopes; + this.jsonContent = opts.credentials || null; + this.clientOptions = opts.clientOptions; + } + // Note: this properly is only public to satisify unit tests. + // https://github.com/Microsoft/TypeScript/issues/5228 + get isGCE() { + return this.checkIsGCE; + } + // GAPIC client libraries should always use self-signed JWTs. The following + // variables are set on the JWT client in order to indicate the type of library, + // and sign the JWT with the correct audience and scopes (if not supplied). + setGapicJWTValues(client) { + client.defaultServicePath = this.defaultServicePath; + client.useJWTAccessWithScope = this.useJWTAccessWithScope; + client.defaultScopes = this.defaultScopes; + } + getProjectId(callback) { + if (callback) { + this.getProjectIdAsync().then(r => callback(null, r), callback); + } + else { + return this.getProjectIdAsync(); + } + } + getProjectIdAsync() { + if (this._cachedProjectId) { + return Promise.resolve(this._cachedProjectId); + } + // In implicit case, supports three environments. In order of precedence, + // the implicit environments are: + // - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable + // - GOOGLE_APPLICATION_CREDENTIALS JSON file + // - Cloud SDK: `gcloud config config-helper --format json` + // - GCE project ID from metadata server) + if (!this._getDefaultProjectIdPromise) { + // TODO: refactor the below code so that it doesn't mix and match + // promises and async/await. + this._getDefaultProjectIdPromise = new Promise( + // eslint-disable-next-line no-async-promise-executor + async (resolve, reject) => { + try { + const projectId = this.getProductionProjectId() || + (await this.getFileProjectId()) || + (await this.getDefaultServiceProjectId()) || + (await this.getGCEProjectId()) || + (await this.getExternalAccountClientProjectId()); + this._cachedProjectId = projectId; + if (!projectId) { + throw new Error('Unable to detect a Project Id in the current environment. \n' + + 'To learn more about authentication and Google APIs, visit: \n' + + 'https://cloud.google.com/docs/authentication/getting-started'); + } + resolve(projectId); + } + catch (e) { + reject(e); + } + }); + } + return this._getDefaultProjectIdPromise; + } + /** + * @returns Any scopes (user-specified or default scopes specified by the + * client library) that need to be set on the current Auth client. + */ + getAnyScopes() { + return this.scopes || this.defaultScopes; + } + getApplicationDefault(optionsOrCallback = {}, callback) { + let options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + } + else { + options = optionsOrCallback; + } + if (callback) { + this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); + } + else { + return this.getApplicationDefaultAsync(options); + } + } + async getApplicationDefaultAsync(options = {}) { + // If we've already got a cached credential, just return it. + if (this.cachedCredential) { + return { + credential: this.cachedCredential, + projectId: await this.getProjectIdAsync(), + }; + } + let credential; + let projectId; + // Check for the existence of a local environment variable pointing to the + // location of the credential file. This is typically used in local + // developer scenarios. + credential = + await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { + credential.scopes = this.getAnyScopes(); + } + this.cachedCredential = credential; + projectId = await this.getProjectId(); + return { credential, projectId }; + } + // Look in the well-known credential file location. + credential = await this._tryGetApplicationCredentialsFromWellKnownFile(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { + credential.scopes = this.getAnyScopes(); + } + this.cachedCredential = credential; + projectId = await this.getProjectId(); + return { credential, projectId }; + } + // Determine if we're running on GCE. + let isGCE; + try { + isGCE = await this._checkIsGCE(); + } + catch (e) { + if (e instanceof Error) { + e.message = `Unexpected error determining execution environment: ${e.message}`; + } + throw e; + } + if (!isGCE) { + // We failed to find the default credentials. Bail out with an error. + throw new Error('Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.'); + } + // For GCE, just return a default ComputeClient. It will take care of + // the rest. + options.scopes = this.getAnyScopes(); + this.cachedCredential = new computeclient_1.Compute(options); + projectId = await this.getProjectId(); + return { projectId, credential: this.cachedCredential }; + } + /** + * Determines whether the auth layer is running on Google Compute Engine. + * @returns A promise that resolves with the boolean. + * @api private + */ + async _checkIsGCE() { + if (this.checkIsGCE === undefined) { + this.checkIsGCE = await gcpMetadata.isAvailable(); + } + return this.checkIsGCE; + } + /** + * Attempts to load default credentials from the environment variable path.. + * @returns Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { + const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || + process.env['google_application_credentials']; + if (!credentialsPath || credentialsPath.length === 0) { + return null; + } + try { + return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + } + catch (e) { + if (e instanceof Error) { + e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; + } + throw e; + } + } + /** + * Attempts to load default credentials from a well-known file location + * @return Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromWellKnownFile(options) { + // First, figure out the location of the file, depending upon the OS type. + let location = null; + if (this._isWindows()) { + // Windows + location = process.env['APPDATA']; + } + else { + // Linux or Mac + const home = process.env['HOME']; + if (home) { + location = path.join(home, '.config'); + } + } + // If we found the root path, expand it. + if (location) { + location = path.join(location, 'gcloud', 'application_default_credentials.json'); + if (!fs.existsSync(location)) { + location = null; + } + } + // The file does not exist. + if (!location) { + return null; + } + // The file seems to exist. Try to use it. + const client = await this._getApplicationCredentialsFromFilePath(location, options); + return client; + } + /** + * Attempts to load default credentials from a file at the given path.. + * @param filePath The path to the file to read. + * @returns Promise that resolves with the OAuth2Client + * @api private + */ + async _getApplicationCredentialsFromFilePath(filePath, options = {}) { + // Make sure the path looks like a string. + if (!filePath || filePath.length === 0) { + throw new Error('The file path is invalid.'); + } + // Make sure there is a file at the path. lstatSync will throw if there is + // nothing there. + try { + // Resolve path to actual file in case of symlink. Expect a thrown error + // if not resolvable. + filePath = fs.realpathSync(filePath); + if (!fs.lstatSync(filePath).isFile()) { + throw new Error(); + } + } + catch (err) { + if (err instanceof Error) { + err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + } + throw err; + } + // Now open a read stream on the file, and parse it. + const readStream = fs.createReadStream(filePath); + return this.fromStream(readStream, options); + } + /** + * Create a credentials instance using the given input options. + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + fromJSON(json, options) { + let client; + if (!json) { + throw new Error('Must pass in a JSON object containing the Google auth settings.'); + } + options = options || {}; + if (json.type === 'authorized_user') { + client = new refreshclient_1.UserRefreshClient(options); + client.fromJSON(json); + } + else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + client = externalclient_1.ExternalAccountClient.fromJSON(json, options); + client.scopes = this.getAnyScopes(); + } + else { + options.scopes = this.scopes; + client = new jwtclient_1.JWT(options); + this.setGapicJWTValues(client); + client.fromJSON(json); + } + return client; + } + /** + * Return a JWT or UserRefreshClient from JavaScript object, caching both the + * object used to instantiate and the client. + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + _cacheClientFromJSON(json, options) { + let client; + // create either a UserRefreshClient or JWT client. + options = options || {}; + if (json.type === 'authorized_user') { + client = new refreshclient_1.UserRefreshClient(options); + client.fromJSON(json); + } + else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + client = externalclient_1.ExternalAccountClient.fromJSON(json, options); + client.scopes = this.getAnyScopes(); + } + else { + options.scopes = this.scopes; + client = new jwtclient_1.JWT(options); + this.setGapicJWTValues(client); + client.fromJSON(json); + } + // cache both raw data used to instantiate client and client itself. + this.jsonContent = json; + this.cachedCredential = client; + return client; + } + fromStream(inputStream, optionsOrCallback = {}, callback) { + let options = {}; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + } + else { + options = optionsOrCallback; + } + if (callback) { + this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); + } + else { + return this.fromStreamAsync(inputStream, options); + } + } + fromStreamAsync(inputStream, options) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the Google auth settings.'); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + try { + const data = JSON.parse(s); + const r = this._cacheClientFromJSON(data, options); + return resolve(r); + } + catch (err) { + // If we failed parsing this.keyFileName, assume that it + // is a PEM or p12 certificate: + if (!this.keyFilename) + throw err; + const client = new jwtclient_1.JWT({ + ...this.clientOptions, + keyFile: this.keyFilename, + }); + this.cachedCredential = client; + this.setGapicJWTValues(client); + return resolve(client); + } + } + catch (err) { + return reject(err); + } + }); + }); + } + /** + * Create a credentials instance using the given API key string. + * @param apiKey The API key string + * @param options An optional options object. + * @returns A JWT loaded from the key + */ + fromAPIKey(apiKey, options) { + options = options || {}; + const client = new jwtclient_1.JWT(options); + client.fromAPIKey(apiKey); + return client; + } + /** + * Determines whether the current operating system is Windows. + * @api private + */ + _isWindows() { + const sys = os.platform(); + if (sys && sys.length >= 3) { + if (sys.substring(0, 3).toLowerCase() === 'win') { + return true; + } + } + return false; + } + /** + * Run the Google Cloud SDK command that prints the default project ID + */ + async getDefaultServiceProjectId() { + return new Promise(resolve => { + child_process_1.exec('gcloud config config-helper --format json', (err, stdout) => { + if (!err && stdout) { + try { + const projectId = JSON.parse(stdout).configuration.properties.core.project; + resolve(projectId); + return; + } + catch (e) { + // ignore errors + } + } + resolve(null); + }); + }); + } + /** + * Loads the project id from environment variables. + * @api private + */ + getProductionProjectId() { + return (process.env['GCLOUD_PROJECT'] || + process.env['GOOGLE_CLOUD_PROJECT'] || + process.env['gcloud_project'] || + process.env['google_cloud_project']); + } + /** + * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. + * @api private + */ + async getFileProjectId() { + if (this.cachedCredential) { + // Try to read the project ID from the cached credentials file + return this.cachedCredential.projectId; + } + // Ensure the projectId is loaded from the keyFile if available. + if (this.keyFilename) { + const creds = await this.getClient(); + if (creds && creds.projectId) { + return creds.projectId; + } + } + // Try to load a credentials file and read its project ID + const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); + if (r) { + return r.projectId; + } + else { + return null; + } + } + /** + * Gets the project ID from external account client if available. + */ + async getExternalAccountClientProjectId() { + if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + return null; + } + const creds = await this.getClient(); + // Do not suppress the underlying error, as the error could contain helpful + // information for debugging and fixing. This is especially true for + // external account creds as in order to get the project ID, the following + // operations have to succeed: + // 1. Valid credentials file should be supplied. + // 2. Ability to retrieve access tokens from STS token exchange API. + // 3. Ability to exchange for service account impersonated credentials (if + // enabled). + // 4. Ability to get project info using the access token from step 2 or 3. + // Without surfacing the error, it is harder for developers to determine + // which step went wrong. + return await creds.getProjectId(); + } + /** + * Gets the Compute Engine project ID if it can be inferred. + */ + async getGCEProjectId() { + try { + const r = await gcpMetadata.project('project-id'); + return r; + } + catch (e) { + // Ignore any errors + return null; + } + } + getCredentials(callback) { + if (callback) { + this.getCredentialsAsync().then(r => callback(null, r), callback); + } + else { + return this.getCredentialsAsync(); + } + } + async getCredentialsAsync() { + await this.getClient(); + if (this.jsonContent) { + const credential = { + client_email: this.jsonContent.client_email, + private_key: this.jsonContent.private_key, + }; + return credential; + } + const isGCE = await this._checkIsGCE(); + if (!isGCE) { + throw new Error('Unknown error.'); + } + // For GCE, return the service account details from the metadata server + // NOTE: The trailing '/' at the end of service-accounts/ is very important! + // The GCF metadata server doesn't respect querystring params if this / is + // not included. + const data = await gcpMetadata.instance({ + property: 'service-accounts/', + params: { recursive: 'true' }, + }); + if (!data || !data.default || !data.default.email) { + throw new Error('Failure from metadata server.'); + } + return { client_email: data.default.email }; + } + /** + * Automatically obtain a client based on the provided configuration. If no + * options were passed, use Application Default Credentials. + */ + async getClient(options) { + if (options) { + throw new Error('Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.'); + } + if (!this.cachedCredential) { + if (this.jsonContent) { + this._cacheClientFromJSON(this.jsonContent, this.clientOptions); + } + else if (this.keyFilename) { + const filePath = path.resolve(this.keyFilename); + const stream = fs.createReadStream(filePath); + await this.fromStreamAsync(stream, this.clientOptions); + } + else { + await this.getApplicationDefaultAsync(this.clientOptions); + } + } + return this.cachedCredential; + } + /** + * Creates a client which will fetch an ID token for authorization. + * @param targetAudience the audience for the fetched ID token. + * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. + */ + async getIdTokenClient(targetAudience) { + const client = await this.getClient(); + if (!('fetchIdToken' in client)) { + throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); + } + return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); + } + /** + * Automatically obtain application default credentials, and return + * an access token for making requests. + */ + async getAccessToken() { + const client = await this.getClient(); + return (await client.getAccessToken()).token; + } + /** + * Obtain the HTTP headers that will provide authorization for a given + * request. + */ + async getRequestHeaders(url) { + const client = await this.getClient(); + return client.getRequestHeaders(url); + } + /** + * Obtain credentials for a request, then attach the appropriate headers to + * the request options. + * @param opts Axios or Request options on which to attach the headers + */ + async authorizeRequest(opts) { + opts = opts || {}; + const url = opts.url || opts.uri; + const client = await this.getClient(); + const headers = await client.getRequestHeaders(url); + opts.headers = Object.assign(opts.headers || {}, headers); + return opts; + } + /** + * Automatically obtain application default credentials, and make an + * HTTP request using the given options. + * @param opts Axios request options for the HTTP request. + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + async request(opts) { + const client = await this.getClient(); + return client.request(opts); + } + /** + * Determine the compute environment in which the code is running. + */ + getEnv() { + return envDetect_1.getEnv(); + } + /** + * Sign the given data with the current private key, or go out + * to the IAM API to sign it. + * @param data The data to be signed. + */ + async sign(data) { + const client = await this.getClient(); + const crypto = crypto_1.createCrypto(); + if (client instanceof jwtclient_1.JWT && client.key) { + const sign = await crypto.sign(client.key, data); + return sign; + } + // signBlob requires a service account email and the underlying + // access token to have iam.serviceAccounts.signBlob permission + // on the specified resource name. + // The "Service Account Token Creator" role should cover this. + // As a result external account credentials can support this + // operation when service account impersonation is enabled. + if (client instanceof baseexternalclient_1.BaseExternalAccountClient && + client.getServiceAccountEmail()) { + return this.signBlob(crypto, client.getServiceAccountEmail(), data); + } + const projectId = await this.getProjectId(); + if (!projectId) { + throw new Error('Cannot sign data without a project ID.'); + } + const creds = await this.getCredentials(); + if (!creds.client_email) { + throw new Error('Cannot sign data without `client_email`.'); + } + return this.signBlob(crypto, creds.client_email, data); + } + async signBlob(crypto, emailOrUniqueId, data) { + const url = 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/' + + `${emailOrUniqueId}:signBlob`; + const res = await this.request({ + method: 'POST', + url, + data: { + payload: crypto.encodeBase64StringUtf8(data), + }, + }); + return res.data.signedBlob; + } +} +exports.GoogleAuth = GoogleAuth; +/** + * Export DefaultTransporter as a static property of the class. + */ +GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; +//# sourceMappingURL=googleauth.js.map + +/***/ }), + +/***/ 13595: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2014 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IAMAuth = void 0; +class IAMAuth { + /** + * IAM credentials. + * + * @param selector the iam authority selector + * @param token the token + * @constructor + */ + constructor(selector, token) { + this.selector = selector; + this.token = token; + this.selector = selector; + this.token = token; + } + /** + * Acquire the HTTP headers required to make an authenticated request. + */ + getRequestHeaders() { + return { + 'x-goog-iam-authority-selector': this.selector, + 'x-goog-iam-authorization-token': this.token, + }; + } +} +exports.IAMAuth = IAMAuth; +//# sourceMappingURL=iam.js.map + +/***/ }), + +/***/ 6191: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var _a, _b, _c; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IdentityPoolClient = void 0; +const fs = __nccwpck_require__(79896); +const util_1 = __nccwpck_require__(39023); +const baseexternalclient_1 = __nccwpck_require__(83645); +// fs.readfile is undefined in browser karma tests causing +// `npm run browser-test` to fail as test.oauth2.ts imports this file via +// src/index.ts. +// Fallback to void function to avoid promisify throwing a TypeError. +const readFile = util_1.promisify((_a = fs.readFile) !== null && _a !== void 0 ? _a : (() => { })); +const realpath = util_1.promisify((_b = fs.realpath) !== null && _b !== void 0 ? _b : (() => { })); +const lstat = util_1.promisify((_c = fs.lstat) !== null && _c !== void 0 ? _c : (() => { })); +/** + * Defines the Url-sourced and file-sourced external account clients mainly + * used for K8s and Azure workloads. + */ +class IdentityPoolClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiate an IdentityPoolClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid file-sourced or + * url-sourced credential or a workforce pool user project is provided + * with a non workforce audience. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + var _a, _b; + super(options, additionalOptions); + this.file = options.credential_source.file; + this.url = options.credential_source.url; + this.headers = options.credential_source.headers; + if (!this.file && !this.url) { + throw new Error('No valid Identity Pool "credential_source" provided'); + } + // Text is the default format type. + this.formatType = ((_a = options.credential_source.format) === null || _a === void 0 ? void 0 : _a.type) || 'text'; + this.formatSubjectTokenFieldName = (_b = options.credential_source.format) === null || _b === void 0 ? void 0 : _b.subject_token_field_name; + if (this.formatType !== 'json' && this.formatType !== 'text') { + throw new Error(`Invalid credential_source format "${this.formatType}"`); + } + if (this.formatType === 'json' && !this.formatSubjectTokenFieldName) { + throw new Error('Missing subject_token_field_name for JSON credential_source format'); + } + } + /** + * Triggered when a external subject token is needed to be exchanged for a GCP + * access token via GCP STS endpoint. + * This uses the `options.credential_source` object to figure out how + * to retrieve the token using the current environment. In this case, + * this either retrieves the local credential from a file location (k8s + * workload) or by sending a GET request to a local metadata server (Azure + * workloads). + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + if (this.file) { + return await this.getTokenFromFile(this.file, this.formatType, this.formatSubjectTokenFieldName); + } + return await this.getTokenFromUrl(this.url, this.formatType, this.formatSubjectTokenFieldName, this.headers); + } + /** + * Looks up the external subject token in the file path provided and + * resolves with that token. + * @param file The file path where the external credential is located. + * @param formatType The token file or URL response type (JSON or text). + * @param formatSubjectTokenFieldName For JSON response types, this is the + * subject_token field name. For Azure, this is access_token. For text + * response types, this is ignored. + * @return A promise that resolves with the external subject token. + */ + async getTokenFromFile(filePath, formatType, formatSubjectTokenFieldName) { + // Make sure there is a file at the path. lstatSync will throw if there is + // nothing there. + try { + // Resolve path to actual file in case of symlink. Expect a thrown error + // if not resolvable. + filePath = await realpath(filePath); + if (!(await lstat(filePath)).isFile()) { + throw new Error(); + } + } + catch (err) { + err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + throw err; + } + let subjectToken; + const rawText = await readFile(filePath, { encoding: 'utf8' }); + if (formatType === 'text') { + subjectToken = rawText; + } + else if (formatType === 'json' && formatSubjectTokenFieldName) { + const json = JSON.parse(rawText); + subjectToken = json[formatSubjectTokenFieldName]; + } + if (!subjectToken) { + throw new Error('Unable to parse the subject_token from the credential_source file'); + } + return subjectToken; + } + /** + * Sends a GET request to the URL provided and resolves with the returned + * external subject token. + * @param url The URL to call to retrieve the subject token. This is typically + * a local metadata server. + * @param formatType The token file or URL response type (JSON or text). + * @param formatSubjectTokenFieldName For JSON response types, this is the + * subject_token field name. For Azure, this is access_token. For text + * response types, this is ignored. + * @param headers The optional additional headers to send with the request to + * the metadata server url. + * @return A promise that resolves with the external subject token. + */ + async getTokenFromUrl(url, formatType, formatSubjectTokenFieldName, headers) { + const opts = { + url, + method: 'GET', + headers, + responseType: formatType, + }; + let subjectToken; + if (formatType === 'text') { + const response = await this.transporter.request(opts); + subjectToken = response.data; + } + else if (formatType === 'json' && formatSubjectTokenFieldName) { + const response = await this.transporter.request(opts); + subjectToken = response.data[formatSubjectTokenFieldName]; + } + if (!subjectToken) { + throw new Error('Unable to parse the subject_token from the credential_source URL'); + } + return subjectToken; + } +} +exports.IdentityPoolClient = IdentityPoolClient; +//# sourceMappingURL=identitypoolclient.js.map + +/***/ }), + +/***/ 38415: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IdTokenClient = void 0; +const oauth2client_1 = __nccwpck_require__(91272); +class IdTokenClient extends oauth2client_1.OAuth2Client { + /** + * Google ID Token client + * + * Retrieve access token from the metadata server. + * See: https://developers.google.com/compute/docs/authentication + */ + constructor(options) { + super(); + this.targetAudience = options.targetAudience; + this.idTokenProvider = options.idTokenProvider; + } + async getRequestMetadataAsync( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + url) { + if (!this.credentials.id_token || + (this.credentials.expiry_date || 0) < Date.now()) { + const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); + this.credentials = { + id_token: idToken, + expiry_date: this.getIdTokenExpiryDate(idToken), + }; + } + const headers = { + Authorization: 'Bearer ' + this.credentials.id_token, + }; + return { headers }; + } + getIdTokenExpiryDate(idToken) { + const payloadB64 = idToken.split('.')[1]; + if (payloadB64) { + const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); + return payload.exp * 1000; + } + } +} +exports.IdTokenClient = IdTokenClient; +//# sourceMappingURL=idtokenclient.js.map + +/***/ }), + +/***/ 15560: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Impersonated = void 0; +const oauth2client_1 = __nccwpck_require__(91272); +class Impersonated extends oauth2client_1.OAuth2Client { + /** + * Impersonated service account credentials. + * + * Create a new access token by impersonating another service account. + * + * Impersonated Credentials allowing credentials issued to a user or + * service account to impersonate another. The source project using + * Impersonated Credentials must enable the "IAMCredentials" API. + * Also, the target service account must grant the orginating principal + * the "Service Account Token Creator" IAM role. + * + * @param {object} options - The configuration object. + * @param {object} [options.sourceClient] the source credential used as to + * acquire the impersonated credentials. + * @param {string} [options.targetPrincipal] the service account to + * impersonate. + * @param {string[]} [options.delegates] the chained list of delegates + * required to grant the final access_token. If set, the sequence of + * identities must have "Service Account Token Creator" capability granted to + * the preceding identity. For example, if set to [serviceAccountB, + * serviceAccountC], the sourceCredential must have the Token Creator role on + * serviceAccountB. serviceAccountB must have the Token Creator on + * serviceAccountC. Finally, C must have Token Creator on target_principal. + * If left unset, sourceCredential must have that role on targetPrincipal. + * @param {string[]} [options.targetScopes] scopes to request during the + * authorization grant. + * @param {number} [options.lifetime] number of seconds the delegated + * credential should be valid for up to 3600 seconds by default, or 43,200 + * seconds by extending the token's lifetime, see: + * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth + * @param {string} [options.endpoint] api endpoint override. + */ + constructor(options = {}) { + var _a, _b, _c, _d, _e, _f; + super(options); + this.credentials = { + expiry_date: 1, + refresh_token: 'impersonated-placeholder', + }; + this.sourceClient = (_a = options.sourceClient) !== null && _a !== void 0 ? _a : new oauth2client_1.OAuth2Client(); + this.targetPrincipal = (_b = options.targetPrincipal) !== null && _b !== void 0 ? _b : ''; + this.delegates = (_c = options.delegates) !== null && _c !== void 0 ? _c : []; + this.targetScopes = (_d = options.targetScopes) !== null && _d !== void 0 ? _d : []; + this.lifetime = (_e = options.lifetime) !== null && _e !== void 0 ? _e : 3600; + this.endpoint = (_f = options.endpoint) !== null && _f !== void 0 ? _f : 'https://iamcredentials.googleapis.com'; + } + /** + * Refreshes the access token. + * @param refreshToken Unused parameter + */ + async refreshToken(refreshToken) { + var _a, _b, _c, _d, _e, _f; + try { + await this.sourceClient.getAccessToken(); + const name = 'projects/-/serviceAccounts/' + this.targetPrincipal; + const u = `${this.endpoint}/v1/${name}:generateAccessToken`; + const body = { + delegates: this.delegates, + scope: this.targetScopes, + lifetime: this.lifetime + 's', + }; + const res = await this.sourceClient.request({ + url: u, + data: body, + method: 'POST', + }); + const tokenResponse = res.data; + this.credentials.access_token = tokenResponse.accessToken; + this.credentials.expiry_date = Date.parse(tokenResponse.expireTime); + return { + tokens: this.credentials, + res, + }; + } + catch (error) { + const status = (_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.status; + const message = (_f = (_e = (_d = error === null || error === void 0 ? void 0 : error.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f.message; + if (status && message) { + error.message = `${status}: unable to impersonate: ${message}`; + throw error; + } + else { + error.message = `unable to impersonate: ${error}`; + throw error; + } + } + } +} +exports.Impersonated = Impersonated; +//# sourceMappingURL=impersonated.js.map + +/***/ }), + +/***/ 29249: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.JWTAccess = void 0; +const jws = __nccwpck_require__(84383); +const LRU = __nccwpck_require__(10857); +const DEFAULT_HEADER = { + alg: 'RS256', + typ: 'JWT', +}; +class JWTAccess { + /** + * JWTAccess service account credentials. + * + * Create a new access token by using the credential to create a new JWT token + * that's recognized as the access token. + * + * @param email the service account email address. + * @param key the private key that will be used to sign the token. + * @param keyId the ID of the private key used to sign the token. + */ + constructor(email, key, keyId, eagerRefreshThresholdMillis) { + this.cache = new LRU({ + max: 500, + maxAge: 60 * 60 * 1000, + }); + this.email = email; + this.key = key; + this.keyId = keyId; + this.eagerRefreshThresholdMillis = eagerRefreshThresholdMillis !== null && eagerRefreshThresholdMillis !== void 0 ? eagerRefreshThresholdMillis : 5 * 60 * 1000; + } + /** + * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url + * + * @param url The URI being authorized. + * @param scopes The scope or scopes being authorized + * @returns A string that returns the cached key. + */ + getCachedKey(url, scopes) { + let cacheKey = url; + if (scopes && Array.isArray(scopes) && scopes.length) { + cacheKey = url ? `${url}_${scopes.join('_')}` : `${scopes.join('_')}`; + } + else if (typeof scopes === 'string') { + cacheKey = url ? `${url}_${scopes}` : scopes; + } + if (!cacheKey) { + throw Error('Scopes or url must be provided'); + } + return cacheKey; + } + /** + * Get a non-expired access token, after refreshing if necessary. + * + * @param url The URI being authorized. + * @param additionalClaims An object with a set of additional claims to + * include in the payload. + * @returns An object that includes the authorization header. + */ + getRequestHeaders(url, additionalClaims, scopes) { + // Return cached authorization headers, unless we are within + // eagerRefreshThresholdMillis ms of them expiring: + const key = this.getCachedKey(url, scopes); + const cachedToken = this.cache.get(key); + const now = Date.now(); + if (cachedToken && + cachedToken.expiration - now > this.eagerRefreshThresholdMillis) { + return cachedToken.headers; + } + const iat = Math.floor(Date.now() / 1000); + const exp = JWTAccess.getExpirationTime(iat); + let defaultClaims; + // Turn scopes into space-separated string + if (Array.isArray(scopes)) { + scopes = scopes.join(' '); + } + // If scopes are specified, sign with scopes + if (scopes) { + defaultClaims = { + iss: this.email, + sub: this.email, + scope: scopes, + exp, + iat, + }; + } + else { + defaultClaims = { + iss: this.email, + sub: this.email, + aud: url, + exp, + iat, + }; + } + // if additionalClaims are provided, ensure they do not collide with + // other required claims. + if (additionalClaims) { + for (const claim in defaultClaims) { + if (additionalClaims[claim]) { + throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); + } + } + } + const header = this.keyId + ? { ...DEFAULT_HEADER, kid: this.keyId } + : DEFAULT_HEADER; + const payload = Object.assign(defaultClaims, additionalClaims); + // Sign the jwt and add it to the cache + const signedJWT = jws.sign({ header, payload, secret: this.key }); + const headers = { Authorization: `Bearer ${signedJWT}` }; + this.cache.set(key, { + expiration: exp * 1000, + headers, + }); + return headers; + } + /** + * Returns an expiration time for the JWT token. + * + * @param iat The issued at time for the JWT. + * @returns An expiration time for the JWT. + */ + static getExpirationTime(iat) { + const exp = iat + 3600; // 3600 seconds = 1 hour + return exp; + } + /** + * Create a JWTAccess credentials instance using the given input options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + reject(new Error('Must pass in a stream containing the service account auth settings.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('data', chunk => (s += chunk)) + .on('error', reject) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (err) { + reject(err); + } + }); + }); + } +} +exports.JWTAccess = JWTAccess; +//# sourceMappingURL=jwtaccess.js.map + +/***/ }), + +/***/ 73752: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2013 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.JWT = void 0; +const gtoken_1 = __nccwpck_require__(50955); +const jwtaccess_1 = __nccwpck_require__(29249); +const oauth2client_1 = __nccwpck_require__(91272); +class JWT extends oauth2client_1.OAuth2Client { + constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { + const opts = optionsOrEmail && typeof optionsOrEmail === 'object' + ? optionsOrEmail + : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; + super({ + eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, + forceRefreshOnFailure: opts.forceRefreshOnFailure, + }); + this.email = opts.email; + this.keyFile = opts.keyFile; + this.key = opts.key; + this.keyId = opts.keyId; + this.scopes = opts.scopes; + this.subject = opts.subject; + this.additionalClaims = opts.additionalClaims; + this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; + } + /** + * Creates a copy of the credential with the specified scopes. + * @param scopes List of requested scopes or a single scope. + * @return The cloned instance. + */ + createScoped(scopes) { + return new JWT({ + email: this.email, + keyFile: this.keyFile, + key: this.key, + keyId: this.keyId, + scopes, + subject: this.subject, + additionalClaims: this.additionalClaims, + }); + } + /** + * Obtains the metadata to be sent with the request. + * + * @param url the URI being authorized. + */ + async getRequestMetadataAsync(url) { + url = this.defaultServicePath ? `https://${this.defaultServicePath}/` : url; + const useSelfSignedJWT = (!this.hasUserScopes() && url) || + (this.useJWTAccessWithScope && this.hasAnyScopes()); + if (!this.apiKey && useSelfSignedJWT) { + if (this.additionalClaims && + this.additionalClaims.target_audience) { + const { tokens } = await this.refreshToken(); + return { + headers: this.addSharedMetadataHeaders({ + Authorization: `Bearer ${tokens.id_token}`, + }), + }; + } + else { + // no scopes have been set, but a uri has been provided. Use JWTAccess + // credentials. + if (!this.access) { + this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId, this.eagerRefreshThresholdMillis); + } + let scopes; + if (this.hasUserScopes()) { + scopes = this.scopes; + } + else if (!url) { + scopes = this.defaultScopes; + } + const headers = await this.access.getRequestHeaders(url !== null && url !== void 0 ? url : undefined, this.additionalClaims, + // Scopes take precedent over audience for signing, + // so we only provide them if useJWTAccessWithScope is on + this.useJWTAccessWithScope ? scopes : undefined); + return { headers: this.addSharedMetadataHeaders(headers) }; + } + } + else if (this.hasAnyScopes() || this.apiKey) { + return super.getRequestMetadataAsync(url); + } + else { + // If no audience, apiKey, or scopes are provided, we should not attempt + // to populate any headers: + return { headers: {} }; + } + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + // Create a new gToken for fetching an ID token + const gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes || this.defaultScopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: { target_audience: targetAudience }, + }); + await gtoken.getToken({ + forceRefresh: true, + }); + if (!gtoken.idToken) { + throw new Error('Unknown error: Failed to fetch ID token'); + } + return gtoken.idToken; + } + /** + * Determine if there are currently scopes available. + */ + hasUserScopes() { + if (!this.scopes) { + return false; + } + return this.scopes.length > 0; + } + /** + * Are there any default or user scopes defined. + */ + hasAnyScopes() { + if (this.scopes && this.scopes.length > 0) + return true; + if (this.defaultScopes && this.defaultScopes.length > 0) + return true; + return false; + } + authorize(callback) { + if (callback) { + this.authorizeAsync().then(r => callback(null, r), callback); + } + else { + return this.authorizeAsync(); + } + } + async authorizeAsync() { + const result = await this.refreshToken(); + if (!result) { + throw new Error('No result returned'); + } + this.credentials = result.tokens; + this.credentials.refresh_token = 'jwt-placeholder'; + this.key = this.gtoken.key; + this.email = this.gtoken.iss; + return result.tokens; + } + /** + * Refreshes the access token. + * @param refreshToken ignored + * @private + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + const gtoken = this.createGToken(); + const token = await gtoken.getToken({ + forceRefresh: this.isTokenExpiring(), + }); + const tokens = { + access_token: token.access_token, + token_type: 'Bearer', + expiry_date: gtoken.expiresAt, + id_token: gtoken.idToken, + }; + this.emit('tokens', tokens); + return { res: null, tokens }; + } + /** + * Create a gToken if it doesn't already exist. + */ + createGToken() { + if (!this.gtoken) { + this.gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes || this.defaultScopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: this.additionalClaims, + }); + } + return this.gtoken; + } + /** + * Create a JWT credentials instance using the given input options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + this.quotaProjectId = json.quota_project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the service account auth settings.'); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Creates a JWT credentials instance using an API Key for authentication. + * @param apiKey The API Key in string form. + */ + fromAPIKey(apiKey) { + if (typeof apiKey !== 'string') { + throw new Error('Must provide an API Key string.'); + } + this.apiKey = apiKey; + } + /** + * Using the key or keyFile on the JWT client, obtain an object that contains + * the key and the client email. + */ + async getCredentials() { + if (this.key) { + return { private_key: this.key, client_email: this.email }; + } + else if (this.keyFile) { + const gtoken = this.createGToken(); + const creds = await gtoken.getCredentials(this.keyFile); + return { private_key: creds.privateKey, client_email: creds.clientEmail }; + } + throw new Error('A key or a keyFile must be provided to getCredentials.'); + } +} +exports.JWT = JWT; +//# sourceMappingURL=jwtclient.js.map + +/***/ }), + +/***/ 10039: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2014 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LoginTicket = void 0; +class LoginTicket { + /** + * Create a simple class to extract user ID from an ID Token + * + * @param {string} env Envelope of the jwt + * @param {TokenPayload} pay Payload of the jwt + * @constructor + */ + constructor(env, pay) { + this.envelope = env; + this.payload = pay; + } + getEnvelope() { + return this.envelope; + } + getPayload() { + return this.payload; + } + /** + * Create a simple class to extract user ID from an ID Token + * + * @return The user ID + */ + getUserId() { + const payload = this.getPayload(); + if (payload && payload.sub) { + return payload.sub; + } + return null; + } + /** + * Returns attributes from the login ticket. This can contain + * various information about the user session. + * + * @return The envelope and payload + */ + getAttributes() { + return { envelope: this.getEnvelope(), payload: this.getPayload() }; + } +} +exports.LoginTicket = LoginTicket; +//# sourceMappingURL=loginticket.js.map + +/***/ }), + +/***/ 91272: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OAuth2Client = exports.CertificateFormat = exports.CodeChallengeMethod = void 0; +const querystring = __nccwpck_require__(83480); +const stream = __nccwpck_require__(2203); +const formatEcdsa = __nccwpck_require__(59086); +const crypto_1 = __nccwpck_require__(47136); +const authclient_1 = __nccwpck_require__(68253); +const loginticket_1 = __nccwpck_require__(10039); +var CodeChallengeMethod; +(function (CodeChallengeMethod) { + CodeChallengeMethod["Plain"] = "plain"; + CodeChallengeMethod["S256"] = "S256"; +})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {})); +var CertificateFormat; +(function (CertificateFormat) { + CertificateFormat["PEM"] = "PEM"; + CertificateFormat["JWK"] = "JWK"; +})(CertificateFormat = exports.CertificateFormat || (exports.CertificateFormat = {})); +class OAuth2Client extends authclient_1.AuthClient { + constructor(optionsOrClientId, clientSecret, redirectUri) { + super(); + this.certificateCache = {}; + this.certificateExpiry = null; + this.certificateCacheFormat = CertificateFormat.PEM; + this.refreshTokenPromises = new Map(); + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { clientId: optionsOrClientId, clientSecret, redirectUri }; + this._clientId = opts.clientId; + this._clientSecret = opts.clientSecret; + this.redirectUri = opts.redirectUri; + this.eagerRefreshThresholdMillis = + opts.eagerRefreshThresholdMillis || 5 * 60 * 1000; + this.forceRefreshOnFailure = !!opts.forceRefreshOnFailure; + } + /** + * Generates URL for consent page landing. + * @param opts Options. + * @return URL to consent page. + */ + generateAuthUrl(opts = {}) { + if (opts.code_challenge_method && !opts.code_challenge) { + throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); + } + opts.response_type = opts.response_type || 'code'; + opts.client_id = opts.client_id || this._clientId; + opts.redirect_uri = opts.redirect_uri || this.redirectUri; + // Allow scopes to be passed either as array or a string + if (opts.scope instanceof Array) { + opts.scope = opts.scope.join(' '); + } + const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; + return (rootUrl + + '?' + + querystring.stringify(opts)); + } + generateCodeVerifier() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); + } + /** + * Convenience method to automatically generate a code_verifier, and its + * resulting SHA256. If used, this must be paired with a S256 + * code_challenge_method. + * + * For a full example see: + * https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js + */ + async generateCodeVerifierAsync() { + // base64 encoding uses 6 bits per character, and we want to generate128 + // characters. 6*128/8 = 96. + const crypto = crypto_1.createCrypto(); + const randomString = crypto.randomBytesBase64(96); + // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ + // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just + // swapping out a few chars. + const codeVerifier = randomString + .replace(/\+/g, '~') + .replace(/=/g, '_') + .replace(/\//g, '-'); + // Generate the base64 encoded SHA256 + const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); + // We need to use base64UrlEncoding instead of standard base64 + const codeChallenge = unencodedCodeChallenge + .split('=')[0] + .replace(/\+/g, '-') + .replace(/\//g, '_'); + return { codeVerifier, codeChallenge }; + } + getToken(codeOrOptions, callback) { + const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; + if (callback) { + this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); + } + else { + return this.getTokenAsync(options); + } + } + async getTokenAsync(options) { + const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; + const values = { + code: options.code, + client_id: options.client_id || this._clientId, + client_secret: this._clientSecret, + redirect_uri: options.redirect_uri || this.redirectUri, + grant_type: 'authorization_code', + code_verifier: options.codeVerifier, + }; + const res = await this.transporter.request({ + method: 'POST', + url, + data: querystring.stringify(values), + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + }); + const tokens = res.data; + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + /** + * Refreshes the access token. + * @param refresh_token Existing refresh token. + * @private + */ + async refreshToken(refreshToken) { + if (!refreshToken) { + return this.refreshTokenNoCache(refreshToken); + } + // If a request to refresh using the same token has started, + // return the same promise. + if (this.refreshTokenPromises.has(refreshToken)) { + return this.refreshTokenPromises.get(refreshToken); + } + const p = this.refreshTokenNoCache(refreshToken).then(r => { + this.refreshTokenPromises.delete(refreshToken); + return r; + }, e => { + this.refreshTokenPromises.delete(refreshToken); + throw e; + }); + this.refreshTokenPromises.set(refreshToken, p); + return p; + } + async refreshTokenNoCache(refreshToken) { + if (!refreshToken) { + throw new Error('No refresh token is set.'); + } + const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; + const data = { + refresh_token: refreshToken, + client_id: this._clientId, + client_secret: this._clientSecret, + grant_type: 'refresh_token', + }; + // request for new token + const res = await this.transporter.request({ + method: 'POST', + url, + data: querystring.stringify(data), + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + }); + const tokens = res.data; + // TODO: de-duplicate this code from a few spots + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + refreshAccessToken(callback) { + if (callback) { + this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); + } + else { + return this.refreshAccessTokenAsync(); + } + } + async refreshAccessTokenAsync() { + const r = await this.refreshToken(this.credentials.refresh_token); + const tokens = r.tokens; + tokens.refresh_token = this.credentials.refresh_token; + this.credentials = tokens; + return { credentials: this.credentials, res: r.res }; + } + getAccessToken(callback) { + if (callback) { + this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); + } + else { + return this.getAccessTokenAsync(); + } + } + async getAccessTokenAsync() { + const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); + if (shouldRefresh) { + if (!this.credentials.refresh_token) { + if (this.refreshHandler) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + return { token: this.credentials.access_token }; + } + } + else { + throw new Error('No refresh token or refresh handler callback is set.'); + } + } + const r = await this.refreshAccessTokenAsync(); + if (!r.credentials || (r.credentials && !r.credentials.access_token)) { + throw new Error('Could not refresh access token.'); + } + return { token: r.credentials.access_token, res: r.res }; + } + else { + return { token: this.credentials.access_token }; + } + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * In OAuth2Client, the result has the form: + * { Authorization: 'Bearer ' } + * @param url The optional url being authorized + */ + async getRequestHeaders(url) { + const headers = (await this.getRequestMetadataAsync(url)).headers; + return headers; + } + async getRequestMetadataAsync( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + url) { + const thisCreds = this.credentials; + if (!thisCreds.access_token && + !thisCreds.refresh_token && + !this.apiKey && + !this.refreshHandler) { + throw new Error('No access, refresh token, API key or refresh handler callback is set.'); + } + if (thisCreds.access_token && !this.isTokenExpiring()) { + thisCreds.token_type = thisCreds.token_type || 'Bearer'; + const headers = { + Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers) }; + } + // If refreshHandler exists, call processAndValidateRefreshHandler(). + if (this.refreshHandler) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + const headers = { + Authorization: 'Bearer ' + this.credentials.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers) }; + } + } + if (this.apiKey) { + return { headers: { 'X-Goog-Api-Key': this.apiKey } }; + } + let r = null; + let tokens = null; + try { + r = await this.refreshToken(thisCreds.refresh_token); + tokens = r.tokens; + } + catch (err) { + const e = err; + if (e.response && + (e.response.status === 403 || e.response.status === 404)) { + e.message = `Could not refresh access token: ${e.message}`; + } + throw e; + } + const credentials = this.credentials; + credentials.token_type = credentials.token_type || 'Bearer'; + tokens.refresh_token = credentials.refresh_token; + this.credentials = tokens; + const headers = { + Authorization: credentials.token_type + ' ' + tokens.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; + } + /** + * Generates an URL to revoke the given token. + * @param token The existing token to be revoked. + */ + static getRevokeTokenUrl(token) { + const parameters = querystring.stringify({ token }); + return `${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${parameters}`; + } + revokeToken(token, callback) { + const opts = { + url: OAuth2Client.getRevokeTokenUrl(token), + method: 'POST', + }; + if (callback) { + this.transporter + .request(opts) + .then(r => callback(null, r), callback); + } + else { + return this.transporter.request(opts); + } + } + revokeCredentials(callback) { + if (callback) { + this.revokeCredentialsAsync().then(res => callback(null, res), callback); + } + else { + return this.revokeCredentialsAsync(); + } + } + async revokeCredentialsAsync() { + const token = this.credentials.access_token; + this.credentials = {}; + if (token) { + return this.revokeToken(token); + } + else { + throw new Error('No access token to revoke.'); + } + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + async requestAsync(opts, retry = false) { + let r2; + try { + const r = await this.getRequestMetadataAsync(opts.url); + opts.headers = opts.headers || {}; + if (r.headers && r.headers['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; + } + if (r.headers && r.headers.Authorization) { + opts.headers.Authorization = r.headers.Authorization; + } + if (this.apiKey) { + opts.headers['X-Goog-Api-Key'] = this.apiKey; + } + r2 = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - An access_token and refresh_token were available, but either no + // expiry_date was available or the forceRefreshOnFailure flag is set. + // The absent expiry_date case can happen when developers stash the + // access_token and refresh_token for later use, but the access_token + // fails on the first try because it's expired. Some developers may + // choose to enable forceRefreshOnFailure to mitigate time-related + // errors. + // Or the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - No refresh_token was available + // - An access_token and a refreshHandler callback were available, but + // either no expiry_date was available or the forceRefreshOnFailure + // flag is set. The access_token fails on the first try because it's + // expired. Some developers may choose to enable forceRefreshOnFailure + // to mitigate time-related errors. + const mayRequireRefresh = this.credentials && + this.credentials.access_token && + this.credentials.refresh_token && + (!this.credentials.expiry_date || this.forceRefreshOnFailure); + const mayRequireRefreshWithNoRefreshToken = this.credentials && + this.credentials.access_token && + !this.credentials.refresh_token && + (!this.credentials.expiry_date || this.forceRefreshOnFailure) && + this.refreshHandler; + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && isAuthErr && !isReadableStream && mayRequireRefresh) { + await this.refreshAccessTokenAsync(); + return this.requestAsync(opts, true); + } + else if (!retry && + isAuthErr && + !isReadableStream && + mayRequireRefreshWithNoRefreshToken) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + } + return this.requestAsync(opts, true); + } + } + throw e; + } + return r2; + } + verifyIdToken(options, callback) { + // This function used to accept two arguments instead of an options object. + // Check the types to help users upgrade with less pain. + // This check can be removed after a 2.0 release. + if (callback && typeof callback !== 'function') { + throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); + } + if (callback) { + this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); + } + else { + return this.verifyIdTokenAsync(options); + } + } + async verifyIdTokenAsync(options) { + if (!options.idToken) { + throw new Error('The verifyIdToken method requires an ID Token'); + } + const response = await this.getFederatedSignonCertsAsync(); + const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, OAuth2Client.ISSUERS_, options.maxExpiry); + return login; + } + /** + * Obtains information about the provisioned access token. Especially useful + * if you want to check the scopes that were provisioned to a given token. + * + * @param accessToken Required. The Access Token for which you want to get + * user info. + */ + async getTokenInfo(accessToken) { + const { data } = await this.transporter.request({ + method: 'POST', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: `Bearer ${accessToken}`, + }, + url: OAuth2Client.GOOGLE_TOKEN_INFO_URL, + }); + const info = Object.assign({ + expiry_date: new Date().getTime() + data.expires_in * 1000, + scopes: data.scope.split(' '), + }, data); + delete info.expires_in; + delete info.scope; + return info; + } + getFederatedSignonCerts(callback) { + if (callback) { + this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); + } + else { + return this.getFederatedSignonCertsAsync(); + } + } + async getFederatedSignonCertsAsync() { + const nowTime = new Date().getTime(); + const format = crypto_1.hasBrowserCrypto() + ? CertificateFormat.JWK + : CertificateFormat.PEM; + if (this.certificateExpiry && + nowTime < this.certificateExpiry.getTime() && + this.certificateCacheFormat === format) { + return { certs: this.certificateCache, format }; + } + let res; + let url; + switch (format) { + case CertificateFormat.PEM: + url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_; + break; + case CertificateFormat.JWK: + url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_; + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + try { + res = await this.transporter.request({ url }); + } + catch (e) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + throw e; + } + const cacheControl = res ? res.headers['cache-control'] : undefined; + let cacheAge = -1; + if (cacheControl) { + const pattern = new RegExp('max-age=([0-9]*)'); + const regexResult = pattern.exec(cacheControl); + if (regexResult && regexResult.length === 2) { + // Cache results with max-age (in seconds) + cacheAge = Number(regexResult[1]) * 1000; // milliseconds + } + } + let certificates = {}; + switch (format) { + case CertificateFormat.PEM: + certificates = res.data; + break; + case CertificateFormat.JWK: + for (const key of res.data.keys) { + certificates[key.kid] = key; + } + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + const now = new Date(); + this.certificateExpiry = + cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); + this.certificateCache = certificates; + this.certificateCacheFormat = format; + return { certs: certificates, format, res }; + } + getIapPublicKeys(callback) { + if (callback) { + this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); + } + else { + return this.getIapPublicKeysAsync(); + } + } + async getIapPublicKeysAsync() { + let res; + const url = OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_; + try { + res = await this.transporter.request({ url }); + } + catch (e) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + throw e; + } + return { pubkeys: res.data, res }; + } + verifySignedJwtWithCerts() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); + } + /** + * Verify the id token is signed with the correct certificate + * and is from the correct audience. + * @param jwt The jwt to verify (The ID Token in this case). + * @param certs The array of certs to test the jwt against. + * @param requiredAudience The audience to test the jwt against. + * @param issuers The allowed issuers of the jwt (Optional). + * @param maxExpiry The max expiry the certificate can be (Optional). + * @return Returns a promise resolving to LoginTicket on verification. + */ + async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { + const crypto = crypto_1.createCrypto(); + if (!maxExpiry) { + maxExpiry = OAuth2Client.MAX_TOKEN_LIFETIME_SECS_; + } + const segments = jwt.split('.'); + if (segments.length !== 3) { + throw new Error('Wrong number of segments in token: ' + jwt); + } + const signed = segments[0] + '.' + segments[1]; + let signature = segments[2]; + let envelope; + let payload; + try { + envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); + } + catch (err) { + err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; + throw err; + } + if (!envelope) { + throw new Error("Can't parse token envelope: " + segments[0]); + } + try { + payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); + } + catch (err) { + err.message = `Can't parse token payload '${segments[0]}`; + throw err; + } + if (!payload) { + throw new Error("Can't parse token payload: " + segments[1]); + } + if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { + // If this is not present, then there's no reason to attempt verification + throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); + } + const cert = certs[envelope.kid]; + if (envelope.alg === 'ES256') { + signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); + } + const verified = await crypto.verify(cert, signed, signature); + if (!verified) { + throw new Error('Invalid token signature: ' + jwt); + } + if (!payload.iat) { + throw new Error('No issue time in token: ' + JSON.stringify(payload)); + } + if (!payload.exp) { + throw new Error('No expiration time in token: ' + JSON.stringify(payload)); + } + const iat = Number(payload.iat); + if (isNaN(iat)) + throw new Error('iat field using invalid format'); + const exp = Number(payload.exp); + if (isNaN(exp)) + throw new Error('exp field using invalid format'); + const now = new Date().getTime() / 1000; + if (exp >= now + maxExpiry) { + throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); + } + const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; + const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; + if (now < earliest) { + throw new Error('Token used too early, ' + + now + + ' < ' + + earliest + + ': ' + + JSON.stringify(payload)); + } + if (now > latest) { + throw new Error('Token used too late, ' + + now + + ' > ' + + latest + + ': ' + + JSON.stringify(payload)); + } + if (issuers && issuers.indexOf(payload.iss) < 0) { + throw new Error('Invalid issuer, expected one of [' + + issuers + + '], but got ' + + payload.iss); + } + // Check the audience matches if we have one + if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { + const aud = payload.aud; + let audVerified = false; + // If the requiredAudience is an array, check if it contains token + // audience + if (requiredAudience.constructor === Array) { + audVerified = requiredAudience.indexOf(aud) > -1; + } + else { + audVerified = aud === requiredAudience; + } + if (!audVerified) { + throw new Error('Wrong recipient, payload audience != requiredAudience'); + } + } + return new loginticket_1.LoginTicket(envelope, payload); + } + /** + * Returns a promise that resolves with AccessTokenResponse type if + * refreshHandler is defined. + * If not, nothing is returned. + */ + async processAndValidateRefreshHandler() { + if (this.refreshHandler) { + const accessTokenResponse = await this.refreshHandler(); + if (!accessTokenResponse.access_token) { + throw new Error('No access token is returned by the refreshHandler callback.'); + } + return accessTokenResponse; + } + return; + } + /** + * Returns true if a token is expired or will expire within + * eagerRefreshThresholdMillismilliseconds. + * If there is no expiry time, assumes the token is not expired or expiring. + */ + isTokenExpiring() { + const expiryDate = this.credentials.expiry_date; + return expiryDate + ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis + : false; + } +} +exports.OAuth2Client = OAuth2Client; +OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; +/** + * The base URL for auth endpoints. + */ +OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth'; +/** + * The base endpoint for token retrieval. + */ +OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_ = 'https://oauth2.googleapis.com/token'; +/** + * The base endpoint to revoke tokens. + */ +OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ = 'https://oauth2.googleapis.com/revoke'; +/** + * Google Sign on certificates in PEM format. + */ +OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v1/certs'; +/** + * Google Sign on certificates in JWK format. + */ +OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v3/certs'; +/** + * Google Sign on certificates in JWK format. + */ +OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_ = 'https://www.gstatic.com/iap/verify/public_key'; +/** + * Clock skew - five minutes in seconds + */ +OAuth2Client.CLOCK_SKEW_SECS_ = 300; +/** + * Max Token Lifetime is one day in seconds + */ +OAuth2Client.MAX_TOKEN_LIFETIME_SECS_ = 86400; +/** + * The allowed oauth token issuers. + */ +OAuth2Client.ISSUERS_ = [ + 'accounts.google.com', + 'https://accounts.google.com', +]; +//# sourceMappingURL=oauth2client.js.map + +/***/ }), + +/***/ 84142: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getErrorFromOAuthErrorResponse = exports.OAuthClientAuthHandler = void 0; +const querystring = __nccwpck_require__(83480); +const crypto_1 = __nccwpck_require__(47136); +/** List of HTTP methods that accept request bodies. */ +const METHODS_SUPPORTING_REQUEST_BODY = ['PUT', 'POST', 'PATCH']; +/** + * Abstract class for handling client authentication in OAuth-based + * operations. + * When request-body client authentication is used, only application/json and + * application/x-www-form-urlencoded content types for HTTP methods that support + * request bodies are supported. + */ +class OAuthClientAuthHandler { + /** + * Instantiates an OAuth client authentication handler. + * @param clientAuthentication The client auth credentials. + */ + constructor(clientAuthentication) { + this.clientAuthentication = clientAuthentication; + this.crypto = crypto_1.createCrypto(); + } + /** + * Applies client authentication on the OAuth request's headers or POST + * body but does not process the request. + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + * @param bearerToken The optional bearer token to use for authentication. + * When this is used, no client authentication credentials are needed. + */ + applyClientAuthenticationOptions(opts, bearerToken) { + // Inject authenticated header. + this.injectAuthenticatedHeaders(opts, bearerToken); + // Inject authenticated request body. + if (!bearerToken) { + this.injectAuthenticatedRequestBody(opts); + } + } + /** + * Applies client authentication on the request's header if either + * basic authentication or bearer token authentication is selected. + * + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + * @param bearerToken The optional bearer token to use for authentication. + * When this is used, no client authentication credentials are needed. + */ + injectAuthenticatedHeaders(opts, bearerToken) { + var _a; + // Bearer token prioritized higher than basic Auth. + if (bearerToken) { + opts.headers = opts.headers || {}; + Object.assign(opts.headers, { + Authorization: `Bearer ${bearerToken}}`, + }); + } + else if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'basic') { + opts.headers = opts.headers || {}; + const clientId = this.clientAuthentication.clientId; + const clientSecret = this.clientAuthentication.clientSecret || ''; + const base64EncodedCreds = this.crypto.encodeBase64StringUtf8(`${clientId}:${clientSecret}`); + Object.assign(opts.headers, { + Authorization: `Basic ${base64EncodedCreds}`, + }); + } + } + /** + * Applies client authentication on the request's body if request-body + * client authentication is selected. + * + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + */ + injectAuthenticatedRequestBody(opts) { + var _a; + if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'request-body') { + const method = (opts.method || 'GET').toUpperCase(); + // Inject authenticated request body. + if (METHODS_SUPPORTING_REQUEST_BODY.indexOf(method) !== -1) { + // Get content-type. + let contentType; + const headers = opts.headers || {}; + for (const key in headers) { + if (key.toLowerCase() === 'content-type' && headers[key]) { + contentType = headers[key].toLowerCase(); + break; + } + } + if (contentType === 'application/x-www-form-urlencoded') { + opts.data = opts.data || ''; + const data = querystring.parse(opts.data); + Object.assign(data, { + client_id: this.clientAuthentication.clientId, + client_secret: this.clientAuthentication.clientSecret || '', + }); + opts.data = querystring.stringify(data); + } + else if (contentType === 'application/json') { + opts.data = opts.data || {}; + Object.assign(opts.data, { + client_id: this.clientAuthentication.clientId, + client_secret: this.clientAuthentication.clientSecret || '', + }); + } + else { + throw new Error(`${contentType} content-types are not supported with ` + + `${this.clientAuthentication.confidentialClientType} ` + + 'client authentication'); + } + } + else { + throw new Error(`${method} HTTP method does not support ` + + `${this.clientAuthentication.confidentialClientType} ` + + 'client authentication'); + } + } + } +} +exports.OAuthClientAuthHandler = OAuthClientAuthHandler; +/** + * Converts an OAuth error response to a native JavaScript Error. + * @param resp The OAuth error response to convert to a native Error object. + * @param err The optional original error. If provided, the error properties + * will be copied to the new error. + * @return The converted native Error object. + */ +function getErrorFromOAuthErrorResponse(resp, err) { + // Error response. + const errorCode = resp.error; + const errorDescription = resp.error_description; + const errorUri = resp.error_uri; + let message = `Error code ${errorCode}`; + if (typeof errorDescription !== 'undefined') { + message += `: ${errorDescription}`; + } + if (typeof errorUri !== 'undefined') { + message += ` - ${errorUri}`; + } + const newError = new Error(message); + // Copy properties from original error to newly generated error. + if (err) { + const keys = Object.keys(err); + if (err.stack) { + // Copy error.stack if available. + keys.push('stack'); + } + keys.forEach(key => { + // Do not overwrite the message field. + if (key !== 'message') { + Object.defineProperty(newError, key, { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + value: err[key], + writable: false, + enumerable: true, + }); + } + }); + } + return newError; +} +exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse; +//# sourceMappingURL=oauth2common.js.map + +/***/ }), + +/***/ 82338: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UserRefreshClient = void 0; +const oauth2client_1 = __nccwpck_require__(91272); +class UserRefreshClient extends oauth2client_1.OAuth2Client { + constructor(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure) { + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { + clientId: optionsOrClientId, + clientSecret, + refreshToken, + eagerRefreshThresholdMillis, + forceRefreshOnFailure, + }; + super({ + clientId: opts.clientId, + clientSecret: opts.clientSecret, + eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, + forceRefreshOnFailure: opts.forceRefreshOnFailure, + }); + this._refreshToken = opts.refreshToken; + this.credentials.refresh_token = opts.refreshToken; + } + /** + * Refreshes the access token. + * @param refreshToken An ignored refreshToken.. + * @param callback Optional callback. + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + return super.refreshTokenNoCache(this._refreshToken); + } + /** + * Create a UserRefreshClient credentials instance using the given input + * options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the user refresh token'); + } + if (json.type !== 'authorized_user') { + throw new Error('The incoming JSON object does not have the "authorized_user" type'); + } + if (!json.client_id) { + throw new Error('The incoming JSON object does not contain a client_id field'); + } + if (!json.client_secret) { + throw new Error('The incoming JSON object does not contain a client_secret field'); + } + if (!json.refresh_token) { + throw new Error('The incoming JSON object does not contain a refresh_token field'); + } + this._clientId = json.client_id; + this._clientSecret = json.client_secret; + this._refreshToken = json.refresh_token; + this.credentials.refresh_token = json.refresh_token; + this.quotaProjectId = json.quota_project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + async fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + return reject(new Error('Must pass in a stream containing the user refresh token.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + return resolve(); + } + catch (err) { + return reject(err); + } + }); + }); + } +} +exports.UserRefreshClient = UserRefreshClient; +//# sourceMappingURL=refreshclient.js.map + +/***/ }), + +/***/ 93822: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StsCredentials = void 0; +const querystring = __nccwpck_require__(83480); +const transporters_1 = __nccwpck_require__(26952); +const oauth2common_1 = __nccwpck_require__(84142); +/** + * Implements the OAuth 2.0 token exchange based on + * https://tools.ietf.org/html/rfc8693 + */ +class StsCredentials extends oauth2common_1.OAuthClientAuthHandler { + /** + * Initializes an STS credentials instance. + * @param tokenExchangeEndpoint The token exchange endpoint. + * @param clientAuthentication The client authentication credentials if + * available. + */ + constructor(tokenExchangeEndpoint, clientAuthentication) { + super(clientAuthentication); + this.tokenExchangeEndpoint = tokenExchangeEndpoint; + this.transporter = new transporters_1.DefaultTransporter(); + } + /** + * Exchanges the provided token for another type of token based on the + * rfc8693 spec. + * @param stsCredentialsOptions The token exchange options used to populate + * the token exchange request. + * @param additionalHeaders Optional additional headers to pass along the + * request. + * @param options Optional additional GCP-specific non-spec defined options + * to send with the request. + * Example: `&options=${encodeUriComponent(JSON.stringified(options))}` + * @return A promise that resolves with the token exchange response containing + * the requested token and its expiration time. + */ + async exchangeToken(stsCredentialsOptions, additionalHeaders, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + options) { + var _a, _b, _c; + const values = { + grant_type: stsCredentialsOptions.grantType, + resource: stsCredentialsOptions.resource, + audience: stsCredentialsOptions.audience, + scope: (_a = stsCredentialsOptions.scope) === null || _a === void 0 ? void 0 : _a.join(' '), + requested_token_type: stsCredentialsOptions.requestedTokenType, + subject_token: stsCredentialsOptions.subjectToken, + subject_token_type: stsCredentialsOptions.subjectTokenType, + actor_token: (_b = stsCredentialsOptions.actingParty) === null || _b === void 0 ? void 0 : _b.actorToken, + actor_token_type: (_c = stsCredentialsOptions.actingParty) === null || _c === void 0 ? void 0 : _c.actorTokenType, + // Non-standard GCP-specific options. + options: options && JSON.stringify(options), + }; + // Remove undefined fields. + Object.keys(values).forEach(key => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (typeof values[key] === 'undefined') { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + delete values[key]; + } + }); + const headers = { + 'Content-Type': 'application/x-www-form-urlencoded', + }; + // Inject additional STS headers if available. + Object.assign(headers, additionalHeaders || {}); + const opts = { + url: this.tokenExchangeEndpoint, + method: 'POST', + headers, + data: querystring.stringify(values), + responseType: 'json', + }; + // Apply OAuth client authentication. + this.applyClientAuthenticationOptions(opts); + try { + const response = await this.transporter.request(opts); + // Successful response. + const stsSuccessfulResponse = response.data; + stsSuccessfulResponse.res = response; + return stsSuccessfulResponse; + } + catch (error) { + // Translate error to OAuthError. + if (error.response) { + throw oauth2common_1.getErrorFromOAuthErrorResponse(error.response.data, + // Preserve other fields from the original error. + error); + } + // Request could fail before the server responds. + throw error; + } + } +} +exports.StsCredentials = StsCredentials; +//# sourceMappingURL=stscredentials.js.map + +/***/ }), + +/***/ 63393: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/* global window */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BrowserCrypto = void 0; +// This file implements crypto functions we need using in-browser +// SubtleCrypto interface `window.crypto.subtle`. +const base64js = __nccwpck_require__(54170); +// Not all browsers support `TextEncoder`. The following `require` will +// provide a fast UTF8-only replacement for those browsers that don't support +// text encoding natively. +// eslint-disable-next-line node/no-unsupported-features/node-builtins +if (typeof process === 'undefined' && typeof TextEncoder === 'undefined') { + __nccwpck_require__(93772); +} +const crypto_1 = __nccwpck_require__(47136); +class BrowserCrypto { + constructor() { + if (typeof window === 'undefined' || + window.crypto === undefined || + window.crypto.subtle === undefined) { + throw new Error("SubtleCrypto not found. Make sure it's an https:// website."); + } + } + async sha256DigestBase64(str) { + // SubtleCrypto digest() method is async, so we must make + // this method async as well. + // To calculate SHA256 digest using SubtleCrypto, we first + // need to convert an input string to an ArrayBuffer: + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const inputBuffer = new TextEncoder().encode(str); + // Result is ArrayBuffer as well. + const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); + return base64js.fromByteArray(new Uint8Array(outputBuffer)); + } + randomBytesBase64(count) { + const array = new Uint8Array(count); + window.crypto.getRandomValues(array); + return base64js.fromByteArray(array); + } + static padBase64(base64) { + // base64js requires padding, so let's add some '=' + while (base64.length % 4 !== 0) { + base64 += '='; + } + return base64; + } + async verify(pubkey, data, signature) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const dataArray = new TextEncoder().encode(data); + const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature)); + const cryptoKey = await window.crypto.subtle.importKey('jwk', pubkey, algo, true, ['verify']); + // SubtleCrypto's verify method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.verify(algo, cryptoKey, signatureArray, dataArray); + return result; + } + async sign(privateKey, data) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const dataArray = new TextEncoder().encode(data); + const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']); + // SubtleCrypto's sign method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.sign(algo, cryptoKey, dataArray); + return base64js.fromByteArray(new Uint8Array(result)); + } + decodeBase64StringUtf8(base64) { + const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64)); + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const result = new TextDecoder().decode(uint8array); + return result; + } + encodeBase64StringUtf8(text) { + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const uint8array = new TextEncoder().encode(text); + const result = base64js.fromByteArray(uint8array); + return result; + } + /** + * Computes the SHA-256 hash of the provided string. + * @param str The plain text string to hash. + * @return A promise that resolves with the SHA-256 hash of the provided + * string in hexadecimal encoding. + */ + async sha256DigestHex(str) { + // SubtleCrypto digest() method is async, so we must make + // this method async as well. + // To calculate SHA256 digest using SubtleCrypto, we first + // need to convert an input string to an ArrayBuffer: + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const inputBuffer = new TextEncoder().encode(str); + // Result is ArrayBuffer as well. + const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); + return crypto_1.fromArrayBufferToHex(outputBuffer); + } + /** + * Computes the HMAC hash of a message using the provided crypto key and the + * SHA-256 algorithm. + * @param key The secret crypto key in utf-8 or ArrayBuffer format. + * @param msg The plain text message. + * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer + * format. + */ + async signWithHmacSha256(key, msg) { + // Convert key, if provided in ArrayBuffer format, to string. + const rawKey = typeof key === 'string' + ? key + : String.fromCharCode(...new Uint16Array(key)); + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const enc = new TextEncoder(); + const cryptoKey = await window.crypto.subtle.importKey('raw', enc.encode(rawKey), { + name: 'HMAC', + hash: { + name: 'SHA-256', + }, + }, false, ['sign']); + return window.crypto.subtle.sign('HMAC', cryptoKey, enc.encode(msg)); + } +} +exports.BrowserCrypto = BrowserCrypto; +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 47136: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/* global window */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromArrayBufferToHex = exports.hasBrowserCrypto = exports.createCrypto = void 0; +const crypto_1 = __nccwpck_require__(63393); +const crypto_2 = __nccwpck_require__(64377); +function createCrypto() { + if (hasBrowserCrypto()) { + return new crypto_1.BrowserCrypto(); + } + return new crypto_2.NodeCrypto(); +} +exports.createCrypto = createCrypto; +function hasBrowserCrypto() { + return (typeof window !== 'undefined' && + typeof window.crypto !== 'undefined' && + typeof window.crypto.subtle !== 'undefined'); +} +exports.hasBrowserCrypto = hasBrowserCrypto; +/** + * Converts an ArrayBuffer to a hexadecimal string. + * @param arrayBuffer The ArrayBuffer to convert to hexadecimal string. + * @return The hexadecimal encoding of the ArrayBuffer. + */ +function fromArrayBufferToHex(arrayBuffer) { + // Convert buffer to byte array. + const byteArray = Array.from(new Uint8Array(arrayBuffer)); + // Convert bytes to hex string. + return byteArray + .map(byte => { + return byte.toString(16).padStart(2, '0'); + }) + .join(''); +} +exports.fromArrayBufferToHex = fromArrayBufferToHex; +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 64377: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NodeCrypto = void 0; +const crypto = __nccwpck_require__(76982); +class NodeCrypto { + async sha256DigestBase64(str) { + return crypto.createHash('sha256').update(str).digest('base64'); + } + randomBytesBase64(count) { + return crypto.randomBytes(count).toString('base64'); + } + async verify(pubkey, data, signature) { + const verifier = crypto.createVerify('sha256'); + verifier.update(data); + verifier.end(); + return verifier.verify(pubkey, signature, 'base64'); + } + async sign(privateKey, data) { + const signer = crypto.createSign('RSA-SHA256'); + signer.update(data); + signer.end(); + return signer.sign(privateKey, 'base64'); + } + decodeBase64StringUtf8(base64) { + return Buffer.from(base64, 'base64').toString('utf-8'); + } + encodeBase64StringUtf8(text) { + return Buffer.from(text, 'utf-8').toString('base64'); + } + /** + * Computes the SHA-256 hash of the provided string. + * @param str The plain text string to hash. + * @return A promise that resolves with the SHA-256 hash of the provided + * string in hexadecimal encoding. + */ + async sha256DigestHex(str) { + return crypto.createHash('sha256').update(str).digest('hex'); + } + /** + * Computes the HMAC hash of a message using the provided crypto key and the + * SHA-256 algorithm. + * @param key The secret crypto key in utf-8 or ArrayBuffer format. + * @param msg The plain text message. + * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer + * format. + */ + async signWithHmacSha256(key, msg) { + const cryptoKey = typeof key === 'string' ? key : toBuffer(key); + return toArrayBuffer(crypto.createHmac('sha256', cryptoKey).update(msg).digest()); + } +} +exports.NodeCrypto = NodeCrypto; +/** + * Converts a Node.js Buffer to an ArrayBuffer. + * https://stackoverflow.com/questions/8609289/convert-a-binary-nodejs-buffer-to-javascript-arraybuffer + * @param buffer The Buffer input to covert. + * @return The ArrayBuffer representation of the input. + */ +function toArrayBuffer(buffer) { + return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength); +} +/** + * Converts an ArrayBuffer to a Node.js Buffer. + * @param arrayBuffer The ArrayBuffer input to covert. + * @return The Buffer representation of the input. + */ +function toBuffer(arrayBuffer) { + return Buffer.from(arrayBuffer); +} +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 959: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleAuth = exports.auth = void 0; +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +const googleauth_1 = __nccwpck_require__(90833); +Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return googleauth_1.GoogleAuth; } })); +var authclient_1 = __nccwpck_require__(68253); +Object.defineProperty(exports, "AuthClient", ({ enumerable: true, get: function () { return authclient_1.AuthClient; } })); +var computeclient_1 = __nccwpck_require__(27052); +Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return computeclient_1.Compute; } })); +var envDetect_1 = __nccwpck_require__(93670); +Object.defineProperty(exports, "GCPEnv", ({ enumerable: true, get: function () { return envDetect_1.GCPEnv; } })); +var iam_1 = __nccwpck_require__(13595); +Object.defineProperty(exports, "IAMAuth", ({ enumerable: true, get: function () { return iam_1.IAMAuth; } })); +var idtokenclient_1 = __nccwpck_require__(38415); +Object.defineProperty(exports, "IdTokenClient", ({ enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } })); +var jwtaccess_1 = __nccwpck_require__(29249); +Object.defineProperty(exports, "JWTAccess", ({ enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } })); +var jwtclient_1 = __nccwpck_require__(73752); +Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return jwtclient_1.JWT; } })); +var impersonated_1 = __nccwpck_require__(15560); +Object.defineProperty(exports, "Impersonated", ({ enumerable: true, get: function () { return impersonated_1.Impersonated; } })); +var oauth2client_1 = __nccwpck_require__(91272); +Object.defineProperty(exports, "CodeChallengeMethod", ({ enumerable: true, get: function () { return oauth2client_1.CodeChallengeMethod; } })); +Object.defineProperty(exports, "OAuth2Client", ({ enumerable: true, get: function () { return oauth2client_1.OAuth2Client; } })); +var loginticket_1 = __nccwpck_require__(10039); +Object.defineProperty(exports, "LoginTicket", ({ enumerable: true, get: function () { return loginticket_1.LoginTicket; } })); +var refreshclient_1 = __nccwpck_require__(82338); +Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } })); +var awsclient_1 = __nccwpck_require__(44200); +Object.defineProperty(exports, "AwsClient", ({ enumerable: true, get: function () { return awsclient_1.AwsClient; } })); +var identitypoolclient_1 = __nccwpck_require__(6191); +Object.defineProperty(exports, "IdentityPoolClient", ({ enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } })); +var externalclient_1 = __nccwpck_require__(53528); +Object.defineProperty(exports, "ExternalAccountClient", ({ enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } })); +var baseexternalclient_1 = __nccwpck_require__(83645); +Object.defineProperty(exports, "BaseExternalAccountClient", ({ enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } })); +var downscopedclient_1 = __nccwpck_require__(50575); +Object.defineProperty(exports, "DownscopedClient", ({ enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } })); +var transporters_1 = __nccwpck_require__(26952); +Object.defineProperty(exports, "DefaultTransporter", ({ enumerable: true, get: function () { return transporters_1.DefaultTransporter; } })); +const auth = new googleauth_1.GoogleAuth(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 82149: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.validate = void 0; +// Accepts an options object passed from the user to the API. In the +// previous version of the API, it referred to a `Request` options object. +// Now it refers to an Axiox Request Config object. This is here to help +// ensure users don't pass invalid options when they upgrade from 0.x to 1.x. +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function validate(options) { + const vpairs = [ + { invalid: 'uri', expected: 'url' }, + { invalid: 'json', expected: 'data' }, + { invalid: 'qs', expected: 'params' }, + ]; + for (const pair of vpairs) { + if (options[pair.invalid]) { + const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; + throw new Error(e); + } + } +} +exports.validate = validate; +//# sourceMappingURL=options.js.map + +/***/ }), + +/***/ 26952: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DefaultTransporter = void 0; +const gaxios_1 = __nccwpck_require__(46814); +const options_1 = __nccwpck_require__(82149); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(96066); +const PRODUCT_NAME = 'google-api-nodejs-client'; +class DefaultTransporter { + /** + * Configures request options before making a request. + * @param opts GaxiosOptions options. + * @return Configured options. + */ + configure(opts = {}) { + opts.headers = opts.headers || {}; + if (typeof window === 'undefined') { + // set transporter user agent if not in browser + const uaValue = opts.headers['User-Agent']; + if (!uaValue) { + opts.headers['User-Agent'] = DefaultTransporter.USER_AGENT; + } + else if (!uaValue.includes(`${PRODUCT_NAME}/`)) { + opts.headers['User-Agent'] = `${uaValue} ${DefaultTransporter.USER_AGENT}`; + } + // track google-auth-library-nodejs version: + const authVersion = `auth/${pkg.version}`; + if (opts.headers['x-goog-api-client'] && + !opts.headers['x-goog-api-client'].includes(authVersion)) { + opts.headers['x-goog-api-client'] = `${opts.headers['x-goog-api-client']} ${authVersion}`; + } + else if (!opts.headers['x-goog-api-client']) { + const nodeVersion = process.version.replace(/^v/, ''); + opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion} ${authVersion}`; + } + } + return opts; + } + request(opts, callback) { + // ensure the user isn't passing in request-style options + opts = this.configure(opts); + try { + options_1.validate(opts); + } + catch (e) { + if (callback) { + return callback(e); + } + else { + throw e; + } + } + if (callback) { + gaxios_1.request(opts).then(r => { + callback(null, r); + }, e => { + callback(this.processError(e)); + }); + } + else { + return gaxios_1.request(opts).catch(e => { + throw this.processError(e); + }); + } + } + /** + * Changes the error to include details from the body. + */ + processError(e) { + const res = e.response; + const err = e; + const body = res ? res.data : null; + if (res && body && body.error && res.status !== 200) { + if (typeof body.error === 'string') { + err.message = body.error; + err.code = res.status.toString(); + } + else if (Array.isArray(body.error.errors)) { + err.message = body.error.errors + .map((err2) => err2.message) + .join('\n'); + err.code = body.error.code; + err.errors = body.error.errors; + } + else { + err.message = body.error.message; + err.code = body.error.code || res.status; + } + } + else if (res && res.status >= 400) { + // Consider all 4xx and 5xx responses errors. + err.message = body; + err.code = res.status.toString(); + } + return err; + } +} +exports.DefaultTransporter = DefaultTransporter; +/** + * Default user agent. + */ +DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; +//# sourceMappingURL=transporters.js.map + +/***/ }), + +/***/ 10857: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +// A linked list to keep track of recently-used-ness +const Yallist = __nccwpck_require__(82363) + +const MAX = Symbol('max') +const LENGTH = Symbol('length') +const LENGTH_CALCULATOR = Symbol('lengthCalculator') +const ALLOW_STALE = Symbol('allowStale') +const MAX_AGE = Symbol('maxAge') +const DISPOSE = Symbol('dispose') +const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') +const LRU_LIST = Symbol('lruList') +const CACHE = Symbol('cache') +const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') + +const naiveLength = () => 1 + +// lruList is a yallist where the head is the youngest +// item, and the tail is the oldest. the list contains the Hit +// objects as the entries. +// Each Hit object has a reference to its Yallist.Node. This +// never changes. +// +// cache is a Map (or PseudoMap) that matches the keys to +// the Yallist.Node object. +class LRUCache { + constructor (options) { + if (typeof options === 'number') + options = { max: options } + + if (!options) + options = {} + + if (options.max && (typeof options.max !== 'number' || options.max < 0)) + throw new TypeError('max must be a non-negative number') + // Kind of weird to have a default max of Infinity, but oh well. + const max = this[MAX] = options.max || Infinity + + const lc = options.length || naiveLength + this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc + this[ALLOW_STALE] = options.stale || false + if (options.maxAge && typeof options.maxAge !== 'number') + throw new TypeError('maxAge must be a number') + this[MAX_AGE] = options.maxAge || 0 + this[DISPOSE] = options.dispose + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false + this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false + this.reset() + } + + // resize the cache when the max changes. + set max (mL) { + if (typeof mL !== 'number' || mL < 0) + throw new TypeError('max must be a non-negative number') + + this[MAX] = mL || Infinity + trim(this) + } + get max () { + return this[MAX] + } + + set allowStale (allowStale) { + this[ALLOW_STALE] = !!allowStale + } + get allowStale () { + return this[ALLOW_STALE] + } + + set maxAge (mA) { + if (typeof mA !== 'number') + throw new TypeError('maxAge must be a non-negative number') + + this[MAX_AGE] = mA + trim(this) + } + get maxAge () { + return this[MAX_AGE] + } + + // resize the cache when the lengthCalculator changes. + set lengthCalculator (lC) { + if (typeof lC !== 'function') + lC = naiveLength + + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC + this[LENGTH] = 0 + this[LRU_LIST].forEach(hit => { + hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) + this[LENGTH] += hit.length + }) + } + trim(this) + } + get lengthCalculator () { return this[LENGTH_CALCULATOR] } + + get length () { return this[LENGTH] } + get itemCount () { return this[LRU_LIST].length } + + rforEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].tail; walker !== null;) { + const prev = walker.prev + forEachStep(this, fn, walker, thisp) + walker = prev + } + } + + forEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].head; walker !== null;) { + const next = walker.next + forEachStep(this, fn, walker, thisp) + walker = next + } + } + + keys () { + return this[LRU_LIST].toArray().map(k => k.key) + } + + values () { + return this[LRU_LIST].toArray().map(k => k.value) + } + + reset () { + if (this[DISPOSE] && + this[LRU_LIST] && + this[LRU_LIST].length) { + this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) + } + + this[CACHE] = new Map() // hash of items by key + this[LRU_LIST] = new Yallist() // list of items in order of use recency + this[LENGTH] = 0 // length of items in the list + } + + dump () { + return this[LRU_LIST].map(hit => + isStale(this, hit) ? false : { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + }).toArray().filter(h => h) + } + + dumpLru () { + return this[LRU_LIST] + } + + set (key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE] + + if (maxAge && typeof maxAge !== 'number') + throw new TypeError('maxAge must be a number') + + const now = maxAge ? Date.now() : 0 + const len = this[LENGTH_CALCULATOR](value, key) + + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + del(this, this[CACHE].get(key)) + return false + } + + const node = this[CACHE].get(key) + const item = node.value + + // dispose of the old one before overwriting + // split out into 2 ifs for better coverage tracking + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) + this[DISPOSE](key, item.value) + } + + item.now = now + item.maxAge = maxAge + item.value = value + this[LENGTH] += len - item.length + item.length = len + this.get(key) + trim(this) + return true + } + + const hit = new Entry(key, value, len, now, maxAge) + + // oversized objects fall out of cache automatically. + if (hit.length > this[MAX]) { + if (this[DISPOSE]) + this[DISPOSE](key, value) + + return false + } + + this[LENGTH] += hit.length + this[LRU_LIST].unshift(hit) + this[CACHE].set(key, this[LRU_LIST].head) + trim(this) + return true + } + + has (key) { + if (!this[CACHE].has(key)) return false + const hit = this[CACHE].get(key).value + return !isStale(this, hit) + } + + get (key) { + return get(this, key, true) + } + + peek (key) { + return get(this, key, false) + } + + pop () { + const node = this[LRU_LIST].tail + if (!node) + return null + + del(this, node) + return node.value + } + + del (key) { + del(this, this[CACHE].get(key)) + } + + load (arr) { + // reset the cache + this.reset() + + const now = Date.now() + // A previous serialized cache has the most recent items first + for (let l = arr.length - 1; l >= 0; l--) { + const hit = arr[l] + const expiresAt = hit.e || 0 + if (expiresAt === 0) + // the item was created without expiration in a non aged cache + this.set(hit.k, hit.v) + else { + const maxAge = expiresAt - now + // dont add already expired items + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge) + } + } + } + } + + prune () { + this[CACHE].forEach((value, key) => get(this, key, false)) + } +} + +const get = (self, key, doUse) => { + const node = self[CACHE].get(key) + if (node) { + const hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + return undefined + } else { + if (doUse) { + if (self[UPDATE_AGE_ON_GET]) + node.value.now = Date.now() + self[LRU_LIST].unshiftNode(node) + } + } + return hit.value + } +} + +const isStale = (self, hit) => { + if (!hit || (!hit.maxAge && !self[MAX_AGE])) + return false + + const diff = Date.now() - hit.now + return hit.maxAge ? diff > hit.maxAge + : self[MAX_AGE] && (diff > self[MAX_AGE]) +} + +const trim = self => { + if (self[LENGTH] > self[MAX]) { + for (let walker = self[LRU_LIST].tail; + self[LENGTH] > self[MAX] && walker !== null;) { + // We know that we're about to delete this one, and also + // what the next least recently used key will be, so just + // go ahead and set it now. + const prev = walker.prev + del(self, walker) + walker = prev + } + } +} + +const del = (self, node) => { + if (node) { + const hit = node.value + if (self[DISPOSE]) + self[DISPOSE](hit.key, hit.value) + + self[LENGTH] -= hit.length + self[CACHE].delete(hit.key) + self[LRU_LIST].removeNode(node) + } +} + +class Entry { + constructor (key, value, length, now, maxAge) { + this.key = key + this.value = value + this.length = length + this.now = now + this.maxAge = maxAge || 0 + } +} + +const forEachStep = (self, fn, node, thisp) => { + let hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + hit = undefined + } + if (hit) + fn.call(thisp, hit.value, hit.key, self) +} + +module.exports = LRUCache + + +/***/ }), + +/***/ 33487: +/***/ ((module) => { + +"use strict"; + +module.exports = function (Yallist) { + Yallist.prototype[Symbol.iterator] = function* () { + for (let walker = this.head; walker; walker = walker.next) { + yield walker.value + } + } +} + + +/***/ }), + +/***/ 82363: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = Yallist + +Yallist.Node = Node +Yallist.create = Yallist + +function Yallist (list) { + var self = this + if (!(self instanceof Yallist)) { + self = new Yallist() + } + + self.tail = null + self.head = null + self.length = 0 + + if (list && typeof list.forEach === 'function') { + list.forEach(function (item) { + self.push(item) + }) + } else if (arguments.length > 0) { + for (var i = 0, l = arguments.length; i < l; i++) { + self.push(arguments[i]) + } + } + + return self +} + +Yallist.prototype.removeNode = function (node) { + if (node.list !== this) { + throw new Error('removing node which does not belong to this list') + } + + var next = node.next + var prev = node.prev + + if (next) { + next.prev = prev + } + + if (prev) { + prev.next = next + } + + if (node === this.head) { + this.head = next + } + if (node === this.tail) { + this.tail = prev + } + + node.list.length-- + node.next = null + node.prev = null + node.list = null + + return next +} + +Yallist.prototype.unshiftNode = function (node) { + if (node === this.head) { + return + } + + if (node.list) { + node.list.removeNode(node) + } + + var head = this.head + node.list = this + node.next = head + if (head) { + head.prev = node + } + + this.head = node + if (!this.tail) { + this.tail = node + } + this.length++ +} + +Yallist.prototype.pushNode = function (node) { + if (node === this.tail) { + return + } + + if (node.list) { + node.list.removeNode(node) + } + + var tail = this.tail + node.list = this + node.prev = tail + if (tail) { + tail.next = node + } + + this.tail = node + if (!this.head) { + this.head = node + } + this.length++ +} + +Yallist.prototype.push = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + push(this, arguments[i]) + } + return this.length +} + +Yallist.prototype.unshift = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + unshift(this, arguments[i]) + } + return this.length +} + +Yallist.prototype.pop = function () { + if (!this.tail) { + return undefined + } + + var res = this.tail.value + this.tail = this.tail.prev + if (this.tail) { + this.tail.next = null + } else { + this.head = null + } + this.length-- + return res +} + +Yallist.prototype.shift = function () { + if (!this.head) { + return undefined + } + + var res = this.head.value + this.head = this.head.next + if (this.head) { + this.head.prev = null + } else { + this.tail = null + } + this.length-- + return res +} + +Yallist.prototype.forEach = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.head, i = 0; walker !== null; i++) { + fn.call(thisp, walker.value, i, this) + walker = walker.next + } +} + +Yallist.prototype.forEachReverse = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { + fn.call(thisp, walker.value, i, this) + walker = walker.prev + } +} + +Yallist.prototype.get = function (n) { + for (var i = 0, walker = this.head; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.next + } + if (i === n && walker !== null) { + return walker.value + } +} + +Yallist.prototype.getReverse = function (n) { + for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.prev + } + if (i === n && walker !== null) { + return walker.value + } +} + +Yallist.prototype.map = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.head; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.next + } + return res +} + +Yallist.prototype.mapReverse = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.tail; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.prev + } + return res +} + +Yallist.prototype.reduce = function (fn, initial) { + var acc + var walker = this.head + if (arguments.length > 1) { + acc = initial + } else if (this.head) { + walker = this.head.next + acc = this.head.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } + + for (var i = 0; walker !== null; i++) { + acc = fn(acc, walker.value, i) + walker = walker.next + } + + return acc +} + +Yallist.prototype.reduceReverse = function (fn, initial) { + var acc + var walker = this.tail + if (arguments.length > 1) { + acc = initial + } else if (this.tail) { + walker = this.tail.prev + acc = this.tail.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } + + for (var i = this.length - 1; walker !== null; i--) { + acc = fn(acc, walker.value, i) + walker = walker.prev + } + + return acc +} + +Yallist.prototype.toArray = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.head; walker !== null; i++) { + arr[i] = walker.value + walker = walker.next + } + return arr +} + +Yallist.prototype.toArrayReverse = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.tail; walker !== null; i++) { + arr[i] = walker.value + walker = walker.prev + } + return arr +} + +Yallist.prototype.slice = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length + } + from = from || 0 + if (from < 0) { + from += this.length + } + var ret = new Yallist() + if (to < from || to < 0) { + return ret + } + if (from < 0) { + from = 0 + } + if (to > this.length) { + to = this.length + } + for (var i = 0, walker = this.head; walker !== null && i < from; i++) { + walker = walker.next + } + for (; walker !== null && i < to; i++, walker = walker.next) { + ret.push(walker.value) + } + return ret +} + +Yallist.prototype.sliceReverse = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length + } + from = from || 0 + if (from < 0) { + from += this.length + } + var ret = new Yallist() + if (to < from || to < 0) { + return ret + } + if (from < 0) { + from = 0 + } + if (to > this.length) { + to = this.length + } + for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { + walker = walker.prev + } + for (; walker !== null && i > from; i--, walker = walker.prev) { + ret.push(walker.value) + } + return ret +} + +Yallist.prototype.splice = function (start, deleteCount, ...nodes) { + if (start > this.length) { + start = this.length - 1 + } + if (start < 0) { + start = this.length + start; + } + + for (var i = 0, walker = this.head; walker !== null && i < start; i++) { + walker = walker.next + } + + var ret = [] + for (var i = 0; walker && i < deleteCount; i++) { + ret.push(walker.value) + walker = this.removeNode(walker) + } + if (walker === null) { + walker = this.tail + } + + if (walker !== this.head && walker !== this.tail) { + walker = walker.prev + } + + for (var i = 0; i < nodes.length; i++) { + walker = insert(this, walker, nodes[i]) + } + return ret; +} + +Yallist.prototype.reverse = function () { + var head = this.head + var tail = this.tail + for (var walker = head; walker !== null; walker = walker.prev) { + var p = walker.prev + walker.prev = walker.next + walker.next = p + } + this.head = tail + this.tail = head + return this +} + +function insert (self, node, value) { + var inserted = node === self.head ? + new Node(value, null, node, self) : + new Node(value, node, node.next, self) + + if (inserted.next === null) { + self.tail = inserted + } + if (inserted.prev === null) { + self.head = inserted + } + + self.length++ + + return inserted +} + +function push (self, item) { + self.tail = new Node(item, self.tail, null, self) + if (!self.head) { + self.head = self.tail + } + self.length++ +} + +function unshift (self, item) { + self.head = new Node(item, null, self.head, self) + if (!self.tail) { + self.tail = self.head + } + self.length++ +} + +function Node (value, prev, next, list) { + if (!(this instanceof Node)) { + return new Node(value, prev, next, list) + } + + this.list = list + this.value = value + + if (prev) { + prev.next = this + this.prev = prev + } else { + this.prev = null + } + + if (next) { + next.prev = this + this.next = next + } else { + this.next = null + } +} + +try { + // add if support for Symbol.iterator is present + __nccwpck_require__(33487)(Yallist) +} catch (er) {} + + +/***/ }), + +/***/ 55035: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/* module decorator */ module = __nccwpck_require__.nmd(module); +(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e): true&&module&&module.exports&&(module.exports=e(__nccwpck_require__(38590)))})(function(o){var e,t,n,r,F,a=o.Reader,i=o.Writer,p=o.util,l=o.roots.iam_protos||(o.roots.iam_protos={});function B(e,t,n){o.rpc.Service.call(this,e,t,n)}function s(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.resource=e.string();break;case 2:o.policy=l.google.iam.v1.Policy.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},s.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},s.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.policy&&e.hasOwnProperty("policy")){e=l.google.iam.v1.Policy.verify(e.policy);if(e)return"policy."+e}return null},s.fromObject=function(e){if(e instanceof l.google.iam.v1.SetIamPolicyRequest)return e;var t=new l.google.iam.v1.SetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.policy){if("object"!=typeof e.policy)throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected");t.policy=l.google.iam.v1.Policy.fromObject(e.policy)}return t},s.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.resource="",n.policy=null),null!=e.resource&&e.hasOwnProperty("resource")&&(n.resource=e.resource),null!=e.policy&&e.hasOwnProperty("policy")&&(n.policy=l.google.iam.v1.Policy.toObject(e.policy,t)),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},s),t.GetIamPolicyRequest=(u.prototype.resource="",u.prototype.options=null,u.create=function(e){return new u(e)},u.encode=function(e,t){return t=t||i.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.iam.v1.GetPolicyOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},u.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},u.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.GetIamPolicyRequest;e.pos>>3){case 1:o.resource=e.string();break;case 2:o.options=l.google.iam.v1.GetPolicyOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},u.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},u.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.iam.v1.GetPolicyOptions.verify(e.options);if(e)return"options."+e}return null},u.fromObject=function(e){if(e instanceof l.google.iam.v1.GetIamPolicyRequest)return e;var t=new l.google.iam.v1.GetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.iam.v1.GetIamPolicyRequest.options: object expected");t.options=l.google.iam.v1.GetPolicyOptions.fromObject(e.options)}return t},u.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.resource="",n.options=null),null!=e.resource&&e.hasOwnProperty("resource")&&(n.resource=e.resource),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.iam.v1.GetPolicyOptions.toObject(e.options,t)),n},u.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},u),t.TestIamPermissionsRequest=(c.prototype.resource="",c.prototype.permissions=p.emptyArray,c.create=function(e){return new c(e)},c.encode=function(e,t){if(t=t||i.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.permissions&&e.permissions.length)for(var n=0;n>>3){case 1:o.resource=e.string();break;case 2:o.permissions&&o.permissions.length||(o.permissions=[]),o.permissions.push(e.string());break;default:e.skipType(7&r)}}return o},c.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},c.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t>>3==1?(o.permissions&&o.permissions.length||(o.permissions=[]),o.permissions.push(e.string())):e.skipType(7&r)}return o},G.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},G.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t>>3==1?o.requestedPolicyVersion=e.int32():e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},U.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&!p.isInteger(e.requestedPolicyVersion)?"requestedPolicyVersion: integer expected":null},U.fromObject=function(e){var t;return e instanceof l.google.iam.v1.GetPolicyOptions?e:(t=new l.google.iam.v1.GetPolicyOptions,null!=e.requestedPolicyVersion&&(t.requestedPolicyVersion=0|e.requestedPolicyVersion),t)},U.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.requestedPolicyVersion=0),null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&(n.requestedPolicyVersion=e.requestedPolicyVersion),n},U.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},U),t.Policy=(d.prototype.version=0,d.prototype.bindings=p.emptyArray,d.prototype.etag=p.newBuffer([]),d.create=function(e){return new d(e)},d.encode=function(e,t){if(t=t||i.create(),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(8).int32(e.version),null!=e.etag&&Object.hasOwnProperty.call(e,"etag")&&t.uint32(26).bytes(e.etag),null!=e.bindings&&e.bindings.length)for(var n=0;n>>3){case 1:o.version=e.int32();break;case 4:o.bindings&&o.bindings.length||(o.bindings=[]),o.bindings.push(l.google.iam.v1.Binding.decode(e,e.uint32()));break;case 3:o.etag=e.bytes();break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},d.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.version&&e.hasOwnProperty("version")&&!p.isInteger(e.version))return"version: integer expected";if(null!=e.bindings&&e.hasOwnProperty("bindings")){if(!Array.isArray(e.bindings))return"bindings: array expected";for(var t=0;t>>3){case 1:o.role=e.string();break;case 2:o.members&&o.members.length||(o.members=[]),o.members.push(e.string());break;case 3:o.condition=l.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},g.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.role&&e.hasOwnProperty("role")&&!p.isString(e.role))return"role: string expected";if(null!=e.members&&e.hasOwnProperty("members")){if(!Array.isArray(e.members))return"members: array expected";for(var t=0;t>>3){case 1:o.bindingDeltas&&o.bindingDeltas.length||(o.bindingDeltas=[]),o.bindingDeltas.push(l.google.iam.v1.BindingDelta.decode(e,e.uint32()));break;case 2:o.auditConfigDeltas&&o.auditConfigDeltas.length||(o.auditConfigDeltas=[]),o.auditConfigDeltas.push(l.google.iam.v1.AuditConfigDelta.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},M.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.bindingDeltas&&e.hasOwnProperty("bindingDeltas")){if(!Array.isArray(e.bindingDeltas))return"bindingDeltas: array expected";for(var t=0;t>>3){case 1:o.action=e.int32();break;case 2:o.role=e.string();break;case 3:o.member=e.string();break;case 4:o.condition=l.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},f.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}if(null!=e.role&&e.hasOwnProperty("role")&&!p.isString(e.role))return"role: string expected";if(null!=e.member&&e.hasOwnProperty("member")&&!p.isString(e.member))return"member: string expected";if(null!=e.condition&&e.hasOwnProperty("condition")){e=l.google.type.Expr.verify(e.condition);if(e)return"condition."+e}return null},f.fromObject=function(e){if(e instanceof l.google.iam.v1.BindingDelta)return e;var t=new l.google.iam.v1.BindingDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}if(null!=e.role&&(t.role=String(e.role)),null!=e.member&&(t.member=String(e.member)),null!=e.condition){if("object"!=typeof e.condition)throw TypeError(".google.iam.v1.BindingDelta.condition: object expected");t.condition=l.google.type.Expr.fromObject(e.condition)}return t},f.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.action=t.enums===String?"ACTION_UNSPECIFIED":0,n.role="",n.member="",n.condition=null),null!=e.action&&e.hasOwnProperty("action")&&(n.action=t.enums===String?l.google.iam.v1.BindingDelta.Action[e.action]:e.action),null!=e.role&&e.hasOwnProperty("role")&&(n.role=e.role),null!=e.member&&e.hasOwnProperty("member")&&(n.member=e.member),null!=e.condition&&e.hasOwnProperty("condition")&&(n.condition=l.google.type.Expr.toObject(e.condition,t)),n},f.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},f.Action=(e={},(r=Object.create(e))[e[0]="ACTION_UNSPECIFIED"]=0,r[e[1]="ADD"]=1,r[e[2]="REMOVE"]=2,r),f),t.AuditConfigDelta=(y.prototype.action=0,y.prototype.service="",y.prototype.exemptedMember="",y.prototype.logType="",y.create=function(e){return new y(e)},y.encode=function(e,t){return t=t||i.create(),null!=e.action&&Object.hasOwnProperty.call(e,"action")&&t.uint32(8).int32(e.action),null!=e.service&&Object.hasOwnProperty.call(e,"service")&&t.uint32(18).string(e.service),null!=e.exemptedMember&&Object.hasOwnProperty.call(e,"exemptedMember")&&t.uint32(26).string(e.exemptedMember),null!=e.logType&&Object.hasOwnProperty.call(e,"logType")&&t.uint32(34).string(e.logType),t},y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.AuditConfigDelta;e.pos>>3){case 1:o.action=e.int32();break;case 2:o.service=e.string();break;case 3:o.exemptedMember=e.string();break;case 4:o.logType=e.string();break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}return null!=e.service&&e.hasOwnProperty("service")&&!p.isString(e.service)?"service: string expected":null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&!p.isString(e.exemptedMember)?"exemptedMember: string expected":null!=e.logType&&e.hasOwnProperty("logType")&&!p.isString(e.logType)?"logType: string expected":null},y.fromObject=function(e){if(e instanceof l.google.iam.v1.AuditConfigDelta)return e;var t=new l.google.iam.v1.AuditConfigDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}return null!=e.service&&(t.service=String(e.service)),null!=e.exemptedMember&&(t.exemptedMember=String(e.exemptedMember)),null!=e.logType&&(t.logType=String(e.logType)),t},y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.action=t.enums===String?"ACTION_UNSPECIFIED":0,n.service="",n.exemptedMember="",n.logType=""),null!=e.action&&e.hasOwnProperty("action")&&(n.action=t.enums===String?l.google.iam.v1.AuditConfigDelta.Action[e.action]:e.action),null!=e.service&&e.hasOwnProperty("service")&&(n.service=e.service),null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&(n.exemptedMember=e.exemptedMember),null!=e.logType&&e.hasOwnProperty("logType")&&(n.logType=e.logType),n},y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},y.Action=(e={},(r=Object.create(e))[e[0]="ACTION_UNSPECIFIED"]=0,r[e[1]="ADD"]=1,r[e[2]="REMOVE"]=2,r),y),t.logging=((e={}).AuditData=(L.prototype.policyDelta=null,L.create=function(e){return new L(e)},L.encode=function(e,t){return t=t||i.create(),null!=e.policyDelta&&Object.hasOwnProperty.call(e,"policyDelta")&&l.google.iam.v1.PolicyDelta.encode(e.policyDelta,t.uint32(18).fork()).ldelim(),t},L.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},L.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.logging.AuditData;e.pos>>3==2?o.policyDelta=l.google.iam.v1.PolicyDelta.decode(e,e.uint32()):e.skipType(7&r)}return o},L.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},L.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.policyDelta&&e.hasOwnProperty("policyDelta")){e=l.google.iam.v1.PolicyDelta.verify(e.policyDelta);if(e)return"policyDelta."+e}return null},L.fromObject=function(e){if(e instanceof l.google.iam.v1.logging.AuditData)return e;var t=new l.google.iam.v1.logging.AuditData;if(null!=e.policyDelta){if("object"!=typeof e.policyDelta)throw TypeError(".google.iam.v1.logging.AuditData.policyDelta: object expected");t.policyDelta=l.google.iam.v1.PolicyDelta.fromObject(e.policyDelta)}return t},L.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.policyDelta=null),null!=e.policyDelta&&e.hasOwnProperty("policyDelta")&&(n.policyDelta=l.google.iam.v1.PolicyDelta.toObject(e.policyDelta,t)),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},L),e),t),n),F.api=((r={}).Http=(J.prototype.rules=p.emptyArray,J.prototype.fullyDecodeReservedExpansion=!1,J.create=function(e){return new J(e)},J.encode=function(e,t){if(t=t||i.create(),null!=e.rules&&e.rules.length)for(var n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(l.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},J.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=l.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(l.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},h.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!p.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!p.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=l.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!p.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!p.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},_.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},_.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!p.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!p.isString(e.path)?"path: string expected":null},_.fromObject=function(e){var t;return e instanceof l.google.api.CustomHttpPattern?e:(t=new l.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},_.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},_.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},_),r.FieldBehavior=(e={},(t=Object.create(e))[e[0]="FIELD_BEHAVIOR_UNSPECIFIED"]=0,t[e[1]="OPTIONAL"]=1,t[e[2]="REQUIRED"]=2,t[e[3]="OUTPUT_ONLY"]=3,t[e[4]="INPUT_ONLY"]=4,t[e[5]="IMMUTABLE"]=5,t),r.ResourceDescriptor=(b.prototype.type="",b.prototype.pattern=p.emptyArray,b.prototype.nameField="",b.prototype.history=0,b.prototype.plural="",b.prototype.singular="",b.create=function(e){return new b(e)},b.encode=function(e,t){if(t=t||i.create(),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.pattern&&e.pattern.length)for(var n=0;n>>3){case 1:o.type=e.string();break;case 2:o.pattern&&o.pattern.length||(o.pattern=[]),o.pattern.push(e.string());break;case 3:o.nameField=e.string();break;case 4:o.history=e.int32();break;case 5:o.plural=e.string();break;case 6:o.singular=e.string();break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type")&&!p.isString(e.type))return"type: string expected";if(null!=e.pattern&&e.hasOwnProperty("pattern")){if(!Array.isArray(e.pattern))return"pattern: array expected";for(var t=0;t>>3){case 1:o.type=e.string();break;case 2:o.childType=e.string();break;default:e.skipType(7&r)}}return o},H.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},H.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type&&e.hasOwnProperty("type")&&!p.isString(e.type)?"type: string expected":null!=e.childType&&e.hasOwnProperty("childType")&&!p.isString(e.childType)?"childType: string expected":null},H.fromObject=function(e){var t;return e instanceof l.google.api.ResourceReference?e:(t=new l.google.api.ResourceReference,null!=e.type&&(t.type=String(e.type)),null!=e.childType&&(t.childType=String(e.childType)),t)},H.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type="",n.childType=""),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.childType&&e.hasOwnProperty("childType")&&(n.childType=e.childType),n},H.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},H),r),F.protobuf=((n={}).FileDescriptorSet=(q.prototype.file=p.emptyArray,q.create=function(e){return new q(e)},q.encode=function(e,t){if(t=t||i.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(l.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(l.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(l.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(l.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=l.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(l.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=l.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},v.fromObject=function(e){if(e instanceof l.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new l.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=l.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},v.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},v.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},v),O.ReservedRange=(Y.prototype.start=0,Y.prototype.end=0,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){return t=t||i.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},Y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},Y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end)?"end: integer expected":null},Y.fromObject=function(e){var t;return e instanceof l.google.protobuf.DescriptorProto.ReservedRange?e:(t=new l.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},Y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},Y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},Y),O),n.ExtensionRangeOptions=(z.prototype.uninterpretedOption=p.emptyArray,z.create=function(e){return new z(e)},z.encode=function(e,t){if(t=t||i.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=l.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},P.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!p.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";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:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!p.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!p.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!p.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!p.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!p.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},P.fromObject=function(e){if(e instanceof l.google.protobuf.FieldDescriptorProto)return e;var t=new l.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=l.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},P.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?l.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},P.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},P.Type=(e={},(t=Object.create(e))[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t),P.Label=(e={},(t=Object.create(e))[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t),P),n.OneofDescriptorProto=(W.prototype.name="",W.prototype.options=null,W.create=function(e){return new W(e)},W.encode=function(e,t){return t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},W.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},W.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=l.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},W.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},W.fromObject=function(e){if(e instanceof l.google.protobuf.OneofDescriptorProto)return e;var t=new l.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=l.google.protobuf.OneofOptions.fromObject(e.options)}return t},W.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.OneofOptions.toObject(e.options,t)),n},W.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},W),n.EnumDescriptorProto=(w.prototype.name="",w.prototype.value=p.emptyArray,w.prototype.options=null,w.prototype.reservedRange=p.emptyArray,w.prototype.reservedName=p.emptyArray,w.create=function(e){return new w(e)},w.encode=function(e,t){if(t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(l.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=l.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(l.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},X.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},X.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end)?"end: integer expected":null},X.fromObject=function(e){var t;return e instanceof l.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new l.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},X.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},X.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},X),w),n.EnumValueDescriptorProto=(j.prototype.name="",j.prototype.number=0,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){return t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=l.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!p.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},j.fromObject=function(e){if(e instanceof l.google.protobuf.EnumValueDescriptorProto)return e;var t=new l.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=l.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},j.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},j.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},j),n.ServiceDescriptorProto=(D.prototype.name="",D.prototype.method=p.emptyArray,D.prototype.options=null,D.create=function(e){return new D(e)},D.encode=function(e,t){if(t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(l.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=l.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=l.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!p.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!p.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof l.google.protobuf.MethodDescriptorProto)return e;var t=new l.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=l.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),n.FileOptions=(S.prototype.javaPackage="",S.prototype.javaOuterClassname="",S.prototype.javaMultipleFiles=!1,S.prototype.javaGenerateEqualsAndHash=!1,S.prototype.javaStringCheckUtf8=!1,S.prototype.optimizeFor=1,S.prototype.goPackage="",S.prototype.ccGenericServices=!1,S.prototype.javaGenericServices=!1,S.prototype.pyGenericServices=!1,S.prototype.phpGenericServices=!1,S.prototype.deprecated=!1,S.prototype.ccEnableArenas=!0,S.prototype.objcClassPrefix="",S.prototype.csharpNamespace="",S.prototype.swiftPrefix="",S.prototype.phpClassPrefix="",S.prototype.phpNamespace="",S.prototype.phpMetadataNamespace="",S.prototype.rubyPackage="",S.prototype.uninterpretedOption=p.emptyArray,S.prototype[".google.api.resourceDefinition"]=p.emptyArray,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||i.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:o[".google.api.resourceDefinition"]&&o[".google.api.resourceDefinition"].length||(o[".google.api.resourceDefinition"]=[]),o[".google.api.resourceDefinition"].push(l.google.api.ResourceDescriptor.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!p.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!p.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!p.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!p.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!p.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!p.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!p.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!p.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!p.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!p.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:o[".google.api.resource"]=l.google.api.ResourceDescriptor.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1052:if(o[".google.api.fieldBehavior"]&&o[".google.api.fieldBehavior"].length||(o[".google.api.fieldBehavior"]=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},Q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},K.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},K.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:o[".google.api.http"]=l.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(l.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},R.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},R.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(p.Long?(t.negativeIntValue=p.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new p.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?p.base64.decode(e.stringValue,t.stringValue=p.newBuffer(p.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},R.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",p.Long?(n=new p.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,p.Long?(n=new p.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=p.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?p.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new p.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?p.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},R.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},R.NamePart=(Z.prototype.namePart="",Z.prototype.isExtension=!1,Z.create=function(e){return new Z(e)},Z.encode=function(e,t){return(t=t||i.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},Z.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Z.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw p.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw p.ProtocolError("missing required 'isExtension'",{instance:o})},Z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Z.verify=function(e){return"object"!=typeof e||null===e?"object expected":p.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},Z.fromObject=function(e){var t;return e instanceof l.google.protobuf.UninterpretedOption.NamePart?e:(t=new l.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},Z.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},Z.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},Z),R),n.SourceCodeInfo=($.prototype.location=p.emptyArray,$.create=function(e){return new $(e)},$.encode=function(e,t){if(t=t||i.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(l.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},$.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},$.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(l.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},ee.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},ee.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.expression=e.string();break;case 2:o.title=e.string();break;case 3:o.description=e.string();break;case 4:o.location=e.string();break;default:e.skipType(7&r)}}return o},V.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},V.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.expression&&e.hasOwnProperty("expression")&&!p.isString(e.expression)?"expression: string expected":null!=e.title&&e.hasOwnProperty("title")&&!p.isString(e.title)?"title: string expected":null!=e.description&&e.hasOwnProperty("description")&&!p.isString(e.description)?"description: string expected":null!=e.location&&e.hasOwnProperty("location")&&!p.isString(e.location)?"location: string expected":null},V.fromObject=function(e){var t;return e instanceof l.google.type.Expr?e:(t=new l.google.type.Expr,null!=e.expression&&(t.expression=String(e.expression)),null!=e.title&&(t.title=String(e.title)),null!=e.description&&(t.description=String(e.description)),null!=e.location&&(t.location=String(e.location)),t)},V.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.expression="",n.title="",n.description="",n.location=""),null!=e.expression&&e.hasOwnProperty("expression")&&(n.expression=e.expression),null!=e.title&&e.hasOwnProperty("title")&&(n.title=e.title),null!=e.description&&e.hasOwnProperty("description")&&(n.description=e.description),null!=e.location&&e.hasOwnProperty("location")&&(n.location=e.location),n},V.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},V),r),F),l}); + +/***/ }), + +/***/ 61758: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/* module decorator */ module = __nccwpck_require__.nmd(module); +(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e): true&&module&&module.exports&&(module.exports=e(__nccwpck_require__(38590)))})(function(o){var e,t,n,F,s=o.Reader,r=o.Writer,u=o.util,c=o.roots.locations_protos||(o.roots.locations_protos={});function L(e,t,n){o.rpc.Service.call(this,e,t,n)}function i(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.name=e.string();break;case 2:o.filter=e.string();break;case 3:o.pageSize=e.int32();break;case 4:o.pageToken=e.string();break;default:e.skipType(7&r)}}return o},i.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!u.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!u.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!u.isString(e.pageToken)?"pageToken: string expected":null},i.fromObject=function(e){var t;return e instanceof c.google.cloud.location.ListLocationsRequest?e:(t=new c.google.cloud.location.ListLocationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},i.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.filter="",n.pageSize=0,n.pageToken=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.filter&&e.hasOwnProperty("filter")&&(n.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(n.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(n.pageToken=e.pageToken),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},i),e.ListLocationsResponse=(a.prototype.locations=u.emptyArray,a.prototype.nextPageToken="",a.create=function(e){return new a(e)},a.encode=function(e,t){if(t=t||r.create(),null!=e.locations&&e.locations.length)for(var n=0;n>>3){case 1:o.locations&&o.locations.length||(o.locations=[]),o.locations.push(c.google.cloud.location.Location.decode(e,e.uint32()));break;case 2:o.nextPageToken=e.string();break;default:e.skipType(7&r)}}return o},a.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},a.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.locations&&e.hasOwnProperty("locations")){if(!Array.isArray(e.locations))return"locations: array expected";for(var t=0;t>>3==1?o.name=e.string():e.skipType(7&r)}return o},G.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},G.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name)?"name: string expected":null},G.fromObject=function(e){var t;return e instanceof c.google.cloud.location.GetLocationRequest?e:(t=new c.google.cloud.location.GetLocationRequest,null!=e.name&&(t.name=String(e.name)),t)},G.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},G.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},G),e.Location=(p.prototype.name="",p.prototype.locationId="",p.prototype.displayName="",p.prototype.labels=u.emptyObject,p.prototype.metadata=null,p.create=function(e){return new p(e)},p.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.labels&&Object.hasOwnProperty.call(e,"labels"))for(var n=Object.keys(e.labels),o=0;o>>3){case 1:o.name=e.string();break;case 4:o.locationId=e.string();break;case 5:o.displayName=e.string();break;case 2:o.labels===u.emptyObject&&(o.labels={});for(var i=e.uint32()+e.pos,a="",p="";e.pos>>3){case 1:a=e.string();break;case 2:p=e.string();break;default:e.skipType(7&l)}}o.labels[a]=p;break;case 3:o.metadata=c.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},p.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},p.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.locationId&&e.hasOwnProperty("locationId")&&!u.isString(e.locationId))return"locationId: string expected";if(null!=e.displayName&&e.hasOwnProperty("displayName")&&!u.isString(e.displayName))return"displayName: string expected";if(null!=e.labels&&e.hasOwnProperty("labels")){if(!u.isObject(e.labels))return"labels: object expected";for(var t=Object.keys(e.labels),n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(c.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},l.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},l.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=c.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(c.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},d.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!u.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!u.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=c.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!u.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!u.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},g.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!u.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!u.isString(e.path)?"path: string expected":null},g.fromObject=function(e){var t;return e instanceof c.google.api.CustomHttpPattern?e:(t=new c.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},g.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},g.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},g),e),F.protobuf=((n={}).FileDescriptorSet=(B.prototype.file=u.emptyArray,B.create=function(e){return new B(e)},B.encode=function(e,t){if(t=t||r.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(c.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},B.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},B.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(c.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(c.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(c.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(c.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(c.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(c.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=c.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(c.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=c.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},h.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},h.fromObject=function(e){if(e instanceof c.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new c.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=c.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},h.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},h.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},h),y.ReservedRange=(b.prototype.start=0,b.prototype.end=0,b.create=function(e){return new b(e)},b.encode=function(e,t){return t=t||r.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},b.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},b.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},b.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end)?"end: integer expected":null},b.fromObject=function(e){var t;return e instanceof c.google.protobuf.DescriptorProto.ReservedRange?e:(t=new c.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},b.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},b.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},b),y),n.ExtensionRangeOptions=(U.prototype.uninterpretedOption=u.emptyArray,U.create=function(e){return new U(e)},U.encode=function(e,t){if(t=t||r.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},U.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=c.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!u.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";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:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!u.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!u.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!u.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!u.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!u.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=c.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},O.fromObject=function(e){if(e instanceof c.google.protobuf.FieldDescriptorProto)return e;var t=new c.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=c.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},O.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?c.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?c.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},O.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},O.Type=(e={},(t=Object.create(e))[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t),O.Label=(e={},(t=Object.create(e))[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t),O),n.OneofDescriptorProto=(m.prototype.name="",m.prototype.options=null,m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&c.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=c.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},m.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},m.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},m.fromObject=function(e){if(e instanceof c.google.protobuf.OneofDescriptorProto)return e;var t=new c.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=c.google.protobuf.OneofOptions.fromObject(e.options)}return t},m.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.OneofOptions.toObject(e.options,t)),n},m.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},m),n.EnumDescriptorProto=(v.prototype.name="",v.prototype.value=u.emptyArray,v.prototype.options=null,v.prototype.reservedRange=u.emptyArray,v.prototype.reservedName=u.emptyArray,v.create=function(e){return new v(e)},v.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(c.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=c.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(c.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},P.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end)?"end: integer expected":null},P.fromObject=function(e){var t;return e instanceof c.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new c.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},P.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},P.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},P),v),n.EnumValueDescriptorProto=(w.prototype.name="",w.prototype.number=0,w.prototype.options=null,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&c.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=c.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!u.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},w.fromObject=function(e){if(e instanceof c.google.protobuf.EnumValueDescriptorProto)return e;var t=new c.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=c.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},w.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},w.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},w),n.ServiceDescriptorProto=(j.prototype.name="",j.prototype.method=u.emptyArray,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(c.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=c.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=c.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!u.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!u.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=c.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof c.google.protobuf.MethodDescriptorProto)return e;var t=new c.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=c.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),n.FileOptions=(S.prototype.javaPackage="",S.prototype.javaOuterClassname="",S.prototype.javaMultipleFiles=!1,S.prototype.javaGenerateEqualsAndHash=!1,S.prototype.javaStringCheckUtf8=!1,S.prototype.optimizeFor=1,S.prototype.goPackage="",S.prototype.ccGenericServices=!1,S.prototype.javaGenericServices=!1,S.prototype.pyGenericServices=!1,S.prototype.phpGenericServices=!1,S.prototype.deprecated=!1,S.prototype.ccEnableArenas=!0,S.prototype.objcClassPrefix="",S.prototype.csharpNamespace="",S.prototype.swiftPrefix="",S.prototype.phpClassPrefix="",S.prototype.phpNamespace="",S.prototype.phpMetadataNamespace="",S.prototype.rubyPackage="",S.prototype.uninterpretedOption=u.emptyArray,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||r.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!u.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!u.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!u.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!u.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!u.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!u.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!u.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!u.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!u.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!u.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},M.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},T.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},T.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:o[".google.api.http"]=c.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(c.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},I.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(u.Long?(t.negativeIntValue=u.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new u.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?u.base64.decode(e.stringValue,t.stringValue=u.newBuffer(u.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},I.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",u.Long?(n=new u.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,u.Long?(n=new u.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=u.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?u.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new u.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?u.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},I.NamePart=(R.prototype.namePart="",R.prototype.isExtension=!1,R.create=function(e){return new R(e)},R.encode=function(e,t){return(t=t||r.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},R.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},R.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw u.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw u.ProtocolError("missing required 'isExtension'",{instance:o})},R.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},R.verify=function(e){return"object"!=typeof e||null===e?"object expected":u.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},R.fromObject=function(e){var t;return e instanceof c.google.protobuf.UninterpretedOption.NamePart?e:(t=new c.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},R.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},R.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},R),I),n.SourceCodeInfo=(_.prototype.location=u.emptyArray,_.create=function(e){return new _(e)},_.encode=function(e,t){if(t=t||r.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(c.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},_.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},_.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(c.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},J.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.type_url=e.string();break;case 2:o.value=e.bytes();break;default:e.skipType(7&r)}}return o},H.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},H.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!u.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||u.isString(e.value))?"value: buffer expected":null},H.fromObject=function(e){var t;return e instanceof c.google.protobuf.Any?e:(t=new c.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?u.base64.decode(e.value,t.value=u.newBuffer(u.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},H.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type_url="",t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=u.newBuffer(n.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(n.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?u.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},H.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},H),n),F),c}); + +/***/ }), + +/***/ 754: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/* module decorator */ module = __nccwpck_require__.nmd(module); +(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e): true&&module&&module.exports&&(module.exports=e(__nccwpck_require__(38590)))})(function(o){var e,t,n,F,a=o.Reader,r=o.Writer,i=o.util,p=o.roots.operations_protos||(o.roots.operations_protos={});function G(e,t,n){o.rpc.Service.call(this,e,t,n)}function l(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.name=e.string();break;case 2:o.metadata=p.google.protobuf.Any.decode(e,e.uint32());break;case 3:o.done=e.bool();break;case 4:o.error=p.google.rpc.Status.decode(e,e.uint32());break;case 5:o.response=p.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},l.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},l.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t,n={};if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")&&(t=p.google.protobuf.Any.verify(e.metadata)))return"metadata."+t;if(null!=e.done&&e.hasOwnProperty("done")&&"boolean"!=typeof e.done)return"done: boolean expected";if(null!=e.error&&e.hasOwnProperty("error")&&(n.result=1,t=p.google.rpc.Status.verify(e.error)))return"error."+t;if(null!=e.response&&e.hasOwnProperty("response")){if(1===n.result)return"result: multiple values";if(n.result=1,t=p.google.protobuf.Any.verify(e.response))return"response."+t}return null},l.fromObject=function(e){if(e instanceof p.google.longrunning.Operation)return e;var t=new p.google.longrunning.Operation;if(null!=e.name&&(t.name=String(e.name)),null!=e.metadata){if("object"!=typeof e.metadata)throw TypeError(".google.longrunning.Operation.metadata: object expected");t.metadata=p.google.protobuf.Any.fromObject(e.metadata)}if(null!=e.done&&(t.done=Boolean(e.done)),null!=e.error){if("object"!=typeof e.error)throw TypeError(".google.longrunning.Operation.error: object expected");t.error=p.google.rpc.Status.fromObject(e.error)}if(null!=e.response){if("object"!=typeof e.response)throw TypeError(".google.longrunning.Operation.response: object expected");t.response=p.google.protobuf.Any.fromObject(e.response)}return t},l.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.metadata=null,n.done=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.metadata&&e.hasOwnProperty("metadata")&&(n.metadata=p.google.protobuf.Any.toObject(e.metadata,t)),null!=e.done&&e.hasOwnProperty("done")&&(n.done=e.done),null!=e.error&&e.hasOwnProperty("error")&&(n.error=p.google.rpc.Status.toObject(e.error,t),t.oneofs)&&(n.result="error"),null!=e.response&&e.hasOwnProperty("response")&&(n.response=p.google.protobuf.Any.toObject(e.response,t),t.oneofs)&&(n.result="response"),n},l.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},l),t.GetOperationRequest=(B.prototype.name="",B.create=function(e){return new B(e)},B.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},B.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},B.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.GetOperationRequest;e.pos>>3==1?o.name=e.string():e.skipType(7&r)}return o},B.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},B.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},B.fromObject=function(e){var t;return e instanceof p.google.longrunning.GetOperationRequest?e:(t=new p.google.longrunning.GetOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},B.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},B.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},B),t.ListOperationsRequest=(s.prototype.name="",s.prototype.filter="",s.prototype.pageSize=0,s.prototype.pageToken="",s.create=function(e){return new s(e)},s.encode=function(e,t){return t=t||r.create(),null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&t.uint32(10).string(e.filter),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(34).string(e.name),t},s.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},s.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.ListOperationsRequest;e.pos>>3){case 4:o.name=e.string();break;case 1:o.filter=e.string();break;case 2:o.pageSize=e.int32();break;case 3:o.pageToken=e.string();break;default:e.skipType(7&r)}}return o},s.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},s.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!i.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!i.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!i.isString(e.pageToken)?"pageToken: string expected":null},s.fromObject=function(e){var t;return e instanceof p.google.longrunning.ListOperationsRequest?e:(t=new p.google.longrunning.ListOperationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},s.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.filter="",n.pageSize=0,n.pageToken="",n.name=""),null!=e.filter&&e.hasOwnProperty("filter")&&(n.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(n.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(n.pageToken=e.pageToken),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},s),t.ListOperationsResponse=(u.prototype.operations=i.emptyArray,u.prototype.nextPageToken="",u.create=function(e){return new u(e)},u.encode=function(e,t){if(t=t||r.create(),null!=e.operations&&e.operations.length)for(var n=0;n>>3){case 1:o.operations&&o.operations.length||(o.operations=[]),o.operations.push(p.google.longrunning.Operation.decode(e,e.uint32()));break;case 2:o.nextPageToken=e.string();break;default:e.skipType(7&r)}}return o},u.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},u.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.operations&&e.hasOwnProperty("operations")){if(!Array.isArray(e.operations))return"operations: array expected";for(var t=0;t>>3==1?o.name=e.string():e.skipType(7&r)}return o},L.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},L.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},L.fromObject=function(e){var t;return e instanceof p.google.longrunning.CancelOperationRequest?e:(t=new p.google.longrunning.CancelOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},L.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},L),t.DeleteOperationRequest=(U.prototype.name="",U.create=function(e){return new U(e)},U.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},U.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},U.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.DeleteOperationRequest;e.pos>>3==1?o.name=e.string():e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},U.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},U.fromObject=function(e){var t;return e instanceof p.google.longrunning.DeleteOperationRequest?e:(t=new p.google.longrunning.DeleteOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},U.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},U.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},U),t.WaitOperationRequest=(c.prototype.name="",c.prototype.timeout=null,c.create=function(e){return new c(e)},c.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.timeout&&Object.hasOwnProperty.call(e,"timeout")&&p.google.protobuf.Duration.encode(e.timeout,t.uint32(18).fork()).ldelim(),t},c.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},c.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.WaitOperationRequest;e.pos>>3){case 1:o.name=e.string();break;case 2:o.timeout=p.google.protobuf.Duration.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},c.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},c.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.timeout&&e.hasOwnProperty("timeout")){e=p.google.protobuf.Duration.verify(e.timeout);if(e)return"timeout."+e}return null},c.fromObject=function(e){if(e instanceof p.google.longrunning.WaitOperationRequest)return e;var t=new p.google.longrunning.WaitOperationRequest;if(null!=e.name&&(t.name=String(e.name)),null!=e.timeout){if("object"!=typeof e.timeout)throw TypeError(".google.longrunning.WaitOperationRequest.timeout: object expected");t.timeout=p.google.protobuf.Duration.fromObject(e.timeout)}return t},c.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.timeout=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.timeout&&e.hasOwnProperty("timeout")&&(n.timeout=p.google.protobuf.Duration.toObject(e.timeout,t)),n},c.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},c),t.OperationInfo=(d.prototype.responseType="",d.prototype.metadataType="",d.create=function(e){return new d(e)},d.encode=function(e,t){return t=t||r.create(),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(10).string(e.responseType),null!=e.metadataType&&Object.hasOwnProperty.call(e,"metadataType")&&t.uint32(18).string(e.metadataType),t},d.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},d.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.OperationInfo;e.pos>>3){case 1:o.responseType=e.string();break;case 2:o.metadataType=e.string();break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},d.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.responseType&&e.hasOwnProperty("responseType")&&!i.isString(e.responseType)?"responseType: string expected":null!=e.metadataType&&e.hasOwnProperty("metadataType")&&!i.isString(e.metadataType)?"metadataType: string expected":null},d.fromObject=function(e){var t;return e instanceof p.google.longrunning.OperationInfo?e:(t=new p.google.longrunning.OperationInfo,null!=e.responseType&&(t.responseType=String(e.responseType)),null!=e.metadataType&&(t.metadataType=String(e.metadataType)),t)},d.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.responseType="",n.metadataType=""),null!=e.responseType&&e.hasOwnProperty("responseType")&&(n.responseType=e.responseType),null!=e.metadataType&&e.hasOwnProperty("metadataType")&&(n.metadataType=e.metadataType),n},d.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},d),t),F.api=((n={}).Http=(g.prototype.rules=i.emptyArray,g.prototype.fullyDecodeReservedExpansion=!1,g.create=function(e){return new g(e)},g.encode=function(e,t){if(t=t||r.create(),null!=e.rules&&e.rules.length)for(var n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(p.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},g.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=p.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(p.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},f.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!i.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!i.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=p.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!i.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!i.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!i.isString(e.path)?"path: string expected":null},y.fromObject=function(e){var t;return e instanceof p.google.api.CustomHttpPattern?e:(t=new p.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},y),n),F.protobuf=((t={}).FileDescriptorSet=(J.prototype.file=i.emptyArray,J.create=function(e){return new J(e)},J.encode=function(e,t){if(t=t||r.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(p.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},J.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(p.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(p.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(p.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(p.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=p.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(p.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=p.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},b.fromObject=function(e){if(e instanceof p.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new p.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=p.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},b.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},b.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},b),O.ReservedRange=(m.prototype.start=0,m.prototype.end=0,m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||r.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},m.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},m.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end)?"end: integer expected":null},m.fromObject=function(e){var t;return e instanceof p.google.protobuf.DescriptorProto.ReservedRange?e:(t=new p.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},m.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},m.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},m),O),t.ExtensionRangeOptions=(M.prototype.uninterpretedOption=i.emptyArray,M.create=function(e){return new M(e)},M.encode=function(e,t){if(t=t||r.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},M.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=p.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!i.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";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:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!i.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!i.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!i.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!i.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!i.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},v.fromObject=function(e){if(e instanceof p.google.protobuf.FieldDescriptorProto)return e;var t=new p.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=p.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},v.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?p.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?p.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},v.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},v.Type=(n={},(e=Object.create(n))[n[1]="TYPE_DOUBLE"]=1,e[n[2]="TYPE_FLOAT"]=2,e[n[3]="TYPE_INT64"]=3,e[n[4]="TYPE_UINT64"]=4,e[n[5]="TYPE_INT32"]=5,e[n[6]="TYPE_FIXED64"]=6,e[n[7]="TYPE_FIXED32"]=7,e[n[8]="TYPE_BOOL"]=8,e[n[9]="TYPE_STRING"]=9,e[n[10]="TYPE_GROUP"]=10,e[n[11]="TYPE_MESSAGE"]=11,e[n[12]="TYPE_BYTES"]=12,e[n[13]="TYPE_UINT32"]=13,e[n[14]="TYPE_ENUM"]=14,e[n[15]="TYPE_SFIXED32"]=15,e[n[16]="TYPE_SFIXED64"]=16,e[n[17]="TYPE_SINT32"]=17,e[n[18]="TYPE_SINT64"]=18,e),v.Label=(n={},(e=Object.create(n))[n[1]="LABEL_OPTIONAL"]=1,e[n[2]="LABEL_REQUIRED"]=2,e[n[3]="LABEL_REPEATED"]=3,e),v),t.OneofDescriptorProto=(w.prototype.name="",w.prototype.options=null,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=p.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},w.fromObject=function(e){if(e instanceof p.google.protobuf.OneofDescriptorProto)return e;var t=new p.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=p.google.protobuf.OneofOptions.fromObject(e.options)}return t},w.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.OneofOptions.toObject(e.options,t)),n},w.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},w),t.EnumDescriptorProto=(P.prototype.name="",P.prototype.value=i.emptyArray,P.prototype.options=null,P.prototype.reservedRange=i.emptyArray,P.prototype.reservedName=i.emptyArray,P.create=function(e){return new P(e)},P.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(p.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=p.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(p.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},P.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},_.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},_.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end)?"end: integer expected":null},_.fromObject=function(e){var t;return e instanceof p.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new p.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},_.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},_.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},_),P),t.EnumValueDescriptorProto=(j.prototype.name="",j.prototype.number=0,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=p.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!i.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},j.fromObject=function(e){if(e instanceof p.google.protobuf.EnumValueDescriptorProto)return e;var t=new p.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=p.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},j.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},j.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},j),t.ServiceDescriptorProto=(S.prototype.name="",S.prototype.method=i.emptyArray,S.prototype.options=null,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(p.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=p.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=p.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!i.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!i.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof p.google.protobuf.MethodDescriptorProto)return e;var t=new p.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=p.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),t.FileOptions=(k.prototype.javaPackage="",k.prototype.javaOuterClassname="",k.prototype.javaMultipleFiles=!1,k.prototype.javaGenerateEqualsAndHash=!1,k.prototype.javaStringCheckUtf8=!1,k.prototype.optimizeFor=1,k.prototype.goPackage="",k.prototype.ccGenericServices=!1,k.prototype.javaGenericServices=!1,k.prototype.pyGenericServices=!1,k.prototype.phpGenericServices=!1,k.prototype.deprecated=!1,k.prototype.ccEnableArenas=!0,k.prototype.objcClassPrefix="",k.prototype.csharpNamespace="",k.prototype.swiftPrefix="",k.prototype.phpClassPrefix="",k.prototype.phpNamespace="",k.prototype.phpMetadataNamespace="",k.prototype.rubyPackage="",k.prototype.uninterpretedOption=i.emptyArray,k.create=function(e){return new k(e)},k.encode=function(e,t){if(t=t||r.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!i.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!i.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!i.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!i.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!i.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!i.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!i.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!i.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!i.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!i.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},T.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},T.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},H.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},H.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.longrunning.operationInfo"]=p.google.longrunning.OperationInfo.decode(e,e.uint32());break;case 72295728:o[".google.api.http"]=p.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(p.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},I.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(i.Long?(t.negativeIntValue=i.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new i.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?i.base64.decode(e.stringValue,t.stringValue=i.newBuffer(i.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},I.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",i.Long?(n=new i.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,i.Long?(n=new i.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=i.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?i.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new i.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?i.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},I.NamePart=(q.prototype.namePart="",q.prototype.isExtension=!1,q.create=function(e){return new q(e)},q.encode=function(e,t){return(t=t||r.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw i.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw i.ProtocolError("missing required 'isExtension'",{instance:o})},q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},q.verify=function(e){return"object"!=typeof e||null===e?"object expected":i.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},q.fromObject=function(e){var t;return e instanceof p.google.protobuf.UninterpretedOption.NamePart?e:(t=new p.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},q.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},q.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},q),I),t.SourceCodeInfo=(Y.prototype.location=i.emptyArray,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){if(t=t||r.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(p.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},Y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(p.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},W.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.type_url=e.string();break;case 2:o.value=e.bytes();break;default:e.skipType(7&r)}}return o},X.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},X.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!i.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||i.isString(e.value))?"value: buffer expected":null},X.fromObject=function(e){var t;return e instanceof p.google.protobuf.Any?e:(t=new p.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?i.base64.decode(e.value,t.value=i.newBuffer(i.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},X.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type_url="",t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=i.newBuffer(n.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(n.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?i.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},X.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},X),t.Duration=(K.prototype.seconds=i.Long?i.Long.fromBits(0,0,!1):0,K.prototype.nanos=0,K.create=function(e){return new K(e)},K.encode=function(e,t){return t=t||r.create(),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},K.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},K.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.Duration;e.pos>>3){case 1:o.seconds=e.int64();break;case 2:o.nanos=e.int32();break;default:e.skipType(7&r)}}return o},K.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},K.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.seconds&&e.hasOwnProperty("seconds")&&!(i.isInteger(e.seconds)||e.seconds&&i.isInteger(e.seconds.low)&&i.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&e.hasOwnProperty("nanos")&&!i.isInteger(e.nanos)?"nanos: integer expected":null},K.fromObject=function(e){var t;return e instanceof p.google.protobuf.Duration?e:(t=new p.google.protobuf.Duration,null!=e.seconds&&(i.Long?(t.seconds=i.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t)},K.toObject=function(e,t){var n,o={};return(t=t||{}).defaults&&(i.Long?(n=new i.Long(0,0,!1),o.seconds=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.seconds=t.longs===String?"0":0,o.nanos=0),null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?o.seconds=t.longs===String?String(e.seconds):e.seconds:o.seconds=t.longs===String?i.Long.prototype.toString.call(e.seconds):t.longs===Number?new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(o.nanos=e.nanos),o},K.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},K),t.Empty=(Q.create=function(e){return new Q(e)},Q.encode=function(e,t){return t=t||r.create()},Q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,t=new p.google.protobuf.Empty;e.pos>>3){case 1:o.code=e.int32();break;case 2:o.message=e.string();break;case 3:o.details&&o.details.length||(o.details=[]),o.details.push(p.google.protobuf.Any.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},V.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},V.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.code&&e.hasOwnProperty("code")&&!i.isInteger(e.code))return"code: integer expected";if(null!=e.message&&e.hasOwnProperty("message")&&!i.isString(e.message))return"message: string expected";if(null!=e.details&&e.hasOwnProperty("details")){if(!Array.isArray(e.details))return"details: array expected";for(var t=0;t { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createAPICaller = createAPICaller; +const normalApiCaller_1 = __nccwpck_require__(15996); +function createAPICaller(settings, descriptor) { + if (!descriptor) { + return new normalApiCaller_1.NormalApiCaller(); + } + return descriptor.getApiCaller(settings); +} +//# sourceMappingURL=apiCaller.js.map + +/***/ }), + +/***/ 23353: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BundleApiCaller = void 0; +const call_1 = __nccwpck_require__(97425); +const googleError_1 = __nccwpck_require__(79110); +/** + * An implementation of APICaller for bundled calls. + * Uses BundleExecutor to do bundling. + */ +class BundleApiCaller { + constructor(bundler) { + this.bundler = bundler; + } + init(callback) { + if (callback) { + return new call_1.OngoingCall(callback); + } + return new call_1.OngoingCallPromise(); + } + wrap(func) { + return func; + } + call(apiCall, argument, settings, status) { + if (!settings.isBundling) { + throw new googleError_1.GoogleError('Bundling enabled with no isBundling!'); + } + status.call((argument, callback) => { + this.bundler.schedule(apiCall, argument, callback); + return status; + }, argument); + } + fail(canceller, err) { + canceller.callback(err); + } + result(canceller) { + return canceller.promise; + } +} +exports.BundleApiCaller = BundleApiCaller; +//# sourceMappingURL=bundleApiCaller.js.map + +/***/ }), + +/***/ 1661: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BundleDescriptor = void 0; +const normalApiCaller_1 = __nccwpck_require__(15996); +const bundleApiCaller_1 = __nccwpck_require__(23353); +const bundleExecutor_1 = __nccwpck_require__(88617); +const util_1 = __nccwpck_require__(44953); +/** + * A descriptor for calls that can be bundled into one call. + */ +class BundleDescriptor { + /** + * Describes the structure of bundled call. + * + * requestDiscriminatorFields may include '.' as a separator, which is used to + * indicate object traversal. This allows fields in nested objects to be used + * to determine what request to bundle. + * + * @property {String} bundledField + * @property {String} requestDiscriminatorFields + * @property {String} subresponseField + * @property {Function} byteLengthFunction + * + * @param {String} bundledField - the repeated field in the request message + * that will have its elements aggregated by bundling. + * @param {String} requestDiscriminatorFields - a list of fields in the + * target request message class that are used to detemrine which request + * messages should be bundled together. + * @param {String} subresponseField - an optional field, when present it + * indicates the field in the response message that should be used to + * demultiplex the response into multiple response messages. + * @param {Function} byteLengthFunction - a function to obtain the byte + * length to be consumed for the bundled field messages. Because Node.JS + * protobuf.js/gRPC uses builtin Objects for the user-visible data and + * internally they are encoded/decoded in protobuf manner, this function + * is actually necessary to calculate the byte length. + * @constructor + */ + constructor(bundledField, requestDiscriminatorFields, subresponseField, byteLengthFunction) { + if (!byteLengthFunction && typeof subresponseField === 'function') { + byteLengthFunction = subresponseField; + subresponseField = null; + } + this.bundledField = bundledField; + this.requestDiscriminatorFields = + requestDiscriminatorFields.map(util_1.toCamelCase); + this.subresponseField = subresponseField; + this.byteLengthFunction = byteLengthFunction; + } + getApiCaller(settings) { + if (settings.isBundling === false) { + return new normalApiCaller_1.NormalApiCaller(); + } + return new bundleApiCaller_1.BundleApiCaller(new bundleExecutor_1.BundleExecutor(settings.bundleOptions, this)); + } +} +exports.BundleDescriptor = BundleDescriptor; +//# sourceMappingURL=bundleDescriptor.js.map + +/***/ }), + +/***/ 88617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BundleExecutor = void 0; +const status_1 = __nccwpck_require__(56123); +const googleError_1 = __nccwpck_require__(79110); +const warnings_1 = __nccwpck_require__(30100); +const bundlingUtils_1 = __nccwpck_require__(63517); +const task_1 = __nccwpck_require__(99837); +function noop() { } +/** + * BundleExecutor stores several timers for each bundle (calls are bundled based + * on the options passed, each bundle has unique ID that is calculated based on + * field values). Each timer fires and sends a call after certain amount of + * time, and if a new request comes to the same bundle, the timer can be + * restarted. + */ +class BundleExecutor { + /** + * Organizes requests for an api service that requires to bundle them. + * + * @param {BundleOptions} bundleOptions - configures strategy this instance + * uses when executing bundled functions. + * @param {BundleDescriptor} bundleDescriptor - the description of the bundling. + * @constructor + */ + constructor(bundleOptions, bundleDescriptor) { + this._options = bundleOptions; + this._descriptor = bundleDescriptor; + this._tasks = {}; + this._timers = {}; + this._invocations = {}; + this._invocationId = 0; + } + /** + * Schedule a method call. + * + * @param {function} apiCall - the function for an API call. + * @param {Object} request - the request object to be bundled with others. + * @param {APICallback} callback - the callback to be called when the method finished. + * @return {function()} - the function to cancel the scheduled invocation. + */ + schedule(apiCall, request, callback) { + const bundleId = (0, bundlingUtils_1.computeBundleId)(request, this._descriptor.requestDiscriminatorFields); + callback = (callback || noop); + if (bundleId === undefined) { + (0, warnings_1.warn)('bundling_schedule_bundleid_undefined', 'The request does not have enough information for request bundling. ' + + `Invoking immediately. Request: ${JSON.stringify(request)} ` + + `discriminator fields: ${this._descriptor.requestDiscriminatorFields}`); + return apiCall(request, callback); + } + if (request[this._descriptor.bundledField] === undefined) { + (0, warnings_1.warn)('bundling_no_bundled_field', `Request does not contain field ${this._descriptor.bundledField} that must present for bundling. ` + + `Invoking immediately. Request: ${JSON.stringify(request)}`); + return apiCall(request, callback); + } + if (!(bundleId in this._tasks)) { + this._tasks[bundleId] = new task_1.Task(apiCall, request, this._descriptor.bundledField, this._descriptor.subresponseField); + } + let task = this._tasks[bundleId]; + callback.id = String(this._invocationId++); + this._invocations[callback.id] = bundleId; + const bundledField = request[this._descriptor.bundledField]; + const elementCount = bundledField.length; + let requestBytes = 0; + // eslint-disable-next-line @typescript-eslint/no-this-alias + const self = this; + bundledField.forEach(obj => { + requestBytes += this._descriptor.byteLengthFunction(obj); + }); + const countLimit = this._options.elementCountLimit || 0; + const byteLimit = this._options.requestByteLimit || 0; + if ((countLimit > 0 && elementCount > countLimit) || + (byteLimit > 0 && requestBytes >= byteLimit)) { + let message; + if (countLimit > 0 && elementCount > countLimit) { + message = + 'The number of elements ' + + elementCount + + ' exceeds the limit ' + + this._options.elementCountLimit; + } + else { + message = + 'The required bytes ' + + requestBytes + + ' exceeds the limit ' + + this._options.requestByteLimit; + } + const error = new googleError_1.GoogleError(message); + error.code = status_1.Status.INVALID_ARGUMENT; + callback(error); + return { + cancel: noop, + }; + } + const existingCount = task.getElementCount(); + const existingBytes = task.getRequestByteSize(); + if ((countLimit > 0 && elementCount + existingCount >= countLimit) || + (byteLimit > 0 && requestBytes + existingBytes >= byteLimit)) { + this._runNow(bundleId); + this._tasks[bundleId] = new task_1.Task(apiCall, request, this._descriptor.bundledField, this._descriptor.subresponseField); + task = this._tasks[bundleId]; + } + task.extend(bundledField, requestBytes, callback); + const ret = { + cancel() { + self._cancel(callback.id); + }, + }; + const countThreshold = this._options.elementCountThreshold || 0; + const sizeThreshold = this._options.requestByteThreshold || 0; + if ((countThreshold > 0 && task.getElementCount() >= countThreshold) || + (sizeThreshold > 0 && task.getRequestByteSize() >= sizeThreshold)) { + this._runNow(bundleId); + return ret; + } + if (!(bundleId in this._timers) && this._options.delayThreshold > 0) { + this._timers[bundleId] = setTimeout(() => { + delete this._timers[bundleId]; + this._runNow(bundleId); + }, this._options.delayThreshold); + } + return ret; + } + /** + * Clears scheduled timeout if it exists. + * + * @param {String} bundleId - the id for the task whose timeout needs to be + * cleared. + * @private + */ + _maybeClearTimeout(bundleId) { + if (bundleId in this._timers) { + const timerId = this._timers[bundleId]; + delete this._timers[bundleId]; + clearTimeout(timerId); + } + } + /** + * Cancels an event. + * + * @param {String} id - The id for the event in the task. + * @private + */ + _cancel(id) { + if (!(id in this._invocations)) { + return; + } + const bundleId = this._invocations[id]; + if (!(bundleId in this._tasks)) { + return; + } + const task = this._tasks[bundleId]; + delete this._invocations[id]; + if (task.cancel(id)) { + this._maybeClearTimeout(bundleId); + delete this._tasks[bundleId]; + } + } + /** + * Invokes a task. + * + * @param {String} bundleId - The id for the task. + * @private + */ + _runNow(bundleId) { + if (!(bundleId in this._tasks)) { + (0, warnings_1.warn)('bundle_runnow_bundleid_unknown', `No such bundleid: ${bundleId}`); + return; + } + this._maybeClearTimeout(bundleId); + const task = this._tasks[bundleId]; + delete this._tasks[bundleId]; + task.run().forEach(id => { + delete this._invocations[id]; + }); + } +} +exports.BundleExecutor = BundleExecutor; +//# sourceMappingURL=bundleExecutor.js.map + +/***/ }), + +/***/ 63517: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.computeBundleId = computeBundleId; +/** + * Compute the identifier of the `obj`. The objects of the same ID + * will be bundled together. + * + * @param {RequestType} obj - The request object. + * @param {String[]} discriminatorFields - The array of field names. + * A field name may include '.' as a separator, which is used to + * indicate object traversal. + * @return {String|undefined} - the identifier string, or undefined if any + * discriminator fields do not exist. + */ +function computeBundleId(obj, discriminatorFields) { + const ids = []; + let hasIds = false; + for (const field of discriminatorFields) { + const id = at(obj, field); + if (id === undefined) { + ids.push(null); + } + else { + hasIds = true; + ids.push(id); + } + } + if (!hasIds) { + return undefined; + } + return JSON.stringify(ids); +} +/** + * Given an object field path that may contain dots, dig into the obj and find + * the value at the given path. + * @example + * const obj = { + * a: { + * b: 5 + * } + * } + * const id = at(obj, 'a.b'); + * // id = 5 + * @param field Path to the property with `.` notation + * @param obj The object to traverse + * @returns the value at the given path + */ +function at(obj, field) { + const pathParts = field.split('.'); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let currentObj = obj; + for (const pathPart of pathParts) { + currentObj = currentObj === null || currentObj === void 0 ? void 0 : currentObj[pathPart]; + } + return currentObj; +} +//# sourceMappingURL=bundlingUtils.js.map + +/***/ }), + +/***/ 99837: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Task = void 0; +exports.deepCopyForResponse = deepCopyForResponse; +const status_1 = __nccwpck_require__(56123); +const googleError_1 = __nccwpck_require__(79110); +/** + * Creates a deep copy of the object with the consideration of subresponse + * fields for bundling. + * + * @param {Object} obj - The source object. + * @param {Object?} subresponseInfo - The information to copy the subset of + * the field for the response. Do nothing if it's null. + * @param {String} subresponseInfo.field - The field name. + * @param {number} subresponseInfo.start - The offset where the copying + * element should starts with. + * @param {number} subresponseInfo.end - The ending index where the copying + * region of the elements ends. + * @return {Object} The copied object. + * @private + */ +function deepCopyForResponse( +// eslint-disable-next-line @typescript-eslint/no-explicit-any +obj, subresponseInfo) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let result; + if (obj === null) { + return null; + } + if (obj === undefined) { + return undefined; + } + if (Array.isArray(obj)) { + result = []; + obj.forEach(element => { + result.push(deepCopyForResponse(element, null)); + }); + return result; + } + // Some objects (such as ByteBuffer) have copy method. + if (obj.copy !== undefined) { + return obj.copy(); + } + // ArrayBuffer should be copied through slice(). + if (obj instanceof ArrayBuffer) { + return obj.slice(0); + } + if (typeof obj === 'object') { + result = {}; + Object.keys(obj).forEach(key => { + if (subresponseInfo && + key === subresponseInfo.field && + Array.isArray(obj[key])) { + // Note that subresponses are not deep-copied. This is safe because + // those subresponses are not shared among callbacks. + result[key] = obj[key].slice(subresponseInfo.start, subresponseInfo.end); + } + else { + result[key] = deepCopyForResponse(obj[key], null); + } + }); + return result; + } + return obj; +} +class Task { + /** + * A task coordinates the execution of a single bundle. + * + * @param {function} apiCall - The function to conduct calling API. + * @param {Object} bundlingRequest - The base request object to be used + * for the actual API call. + * @param {string} bundledField - The name of the field in bundlingRequest + * to be bundled. + * @param {string=} subresponseField - The name of the field in the response + * to be passed to the callback. + * @constructor + * @private + */ + constructor(apiCall, bundlingRequest, bundledField, subresponseField) { + this._apiCall = apiCall; + this._request = bundlingRequest; + this._bundledField = bundledField; + this._subresponseField = subresponseField; + this._data = []; + } + /** + * Returns the number of elements in a task. + * @return {number} The number of elements. + */ + getElementCount() { + let count = 0; + for (let i = 0; i < this._data.length; ++i) { + count += this._data[i].elements.length; + } + return count; + } + /** + * Returns the total byte size of the elements in a task. + * @return {number} The byte size. + */ + getRequestByteSize() { + let size = 0; + for (let i = 0; i < this._data.length; ++i) { + size += this._data[i].bytes; + } + return size; + } + /** + * Invokes the actual API call with current elements. + * @return {string[]} - the list of ids for invocations to be run. + */ + run() { + if (this._data.length === 0) { + return []; + } + const request = this._request; + const elements = []; + const ids = []; + for (let i = 0; i < this._data.length; ++i) { + elements.push(...this._data[i].elements); + ids.push(this._data[i].callback.id); + } + request[this._bundledField] = elements; + // eslint-disable-next-line @typescript-eslint/no-this-alias + const self = this; + this.callCanceller = this._apiCall(request, (err, response) => { + const responses = []; + if (err) { + self._data.forEach(() => { + responses.push(undefined); + }); + } + else { + let subresponseInfo = null; + if (self._subresponseField) { + subresponseInfo = { + field: self._subresponseField, + start: 0, + }; + } + self._data.forEach(data => { + if (subresponseInfo) { + subresponseInfo.end = + subresponseInfo.start + data.elements.length; + } + responses.push(deepCopyForResponse(response, subresponseInfo)); + if (subresponseInfo) { + subresponseInfo.start = subresponseInfo.end; + } + }); + } + for (let i = 0; i < self._data.length; ++i) { + if (self._data[i].cancelled) { + const error = new googleError_1.GoogleError('cancelled'); + error.code = status_1.Status.CANCELLED; + self._data[i].callback(error); + } + else { + self._data[i].callback(err, responses[i]); + } + } + }); + return ids; + } + /** + * Appends the list of elements into the task. + * @param {Object[]} elements - the new list of elements. + * @param {number} bytes - the byte size required to encode elements in the API. + * @param {APICallback} callback - the callback of the method call. + */ + extend(elements, bytes, callback) { + this._data.push({ + elements, + bytes, + callback, + }); + } + /** + * Cancels a part of elements. + * @param {string} id - The identifier of the part of elements. + * @return {boolean} Whether the entire task will be canceled or not. + */ + cancel(id) { + if (this.callCanceller) { + let allCancelled = true; + this._data.forEach(d => { + if (d.callback.id === id) { + d.cancelled = true; + } + if (!d.cancelled) { + allCancelled = false; + } + }); + if (allCancelled) { + this.callCanceller.cancel(); + } + return allCancelled; + } + for (let i = 0; i < this._data.length; ++i) { + if (this._data[i].callback.id === id) { + const error = new googleError_1.GoogleError('cancelled'); + error.code = status_1.Status.CANCELLED; + this._data[i].callback(error); + this._data.splice(i, 1); + break; + } + } + return this._data.length === 0; + } +} +exports.Task = Task; +//# sourceMappingURL=task.js.map + +/***/ }), + +/***/ 97425: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OngoingCallPromise = exports.OngoingCall = void 0; +const status_1 = __nccwpck_require__(56123); +const googleError_1 = __nccwpck_require__(79110); +class OngoingCall { + /** + * OngoingCall manages callback, API calls, and cancellation + * of the API calls. + * @param {APICallback=} callback + * The callback to be called asynchronously when the API call + * finishes. + * @constructor + * @property {APICallback} callback + * The callback function to be called. + * @private + */ + constructor(callback) { + this.callback = callback; + this.completed = false; + } + /** + * Cancels the ongoing promise. + */ + cancel() { + if (this.completed) { + return; + } + this.completed = true; + if (this.cancelFunc) { + this.cancelFunc(); + } + else { + const error = new googleError_1.GoogleError('cancelled'); + error.code = status_1.Status.CANCELLED; + this.callback(error); + } + } + /** + * Call calls the specified function. Result will be used to fulfill + * the promise. + * + * @param {SimpleCallbackFunction} func + * A function for an API call. + * @param {Object} argument + * A request object. + */ + call(func, argument) { + if (this.completed) { + return; + } + const canceller = func(argument, (err, response, next, rawResponse) => { + this.completed = true; + setImmediate(this.callback, err, response, next, rawResponse); + }); + if (canceller instanceof Promise) { + canceller.catch(err => { + setImmediate(this.callback, new googleError_1.GoogleError(err), null, null, null); + }); + } + this.cancelFunc = () => canceller.cancel(); + } +} +exports.OngoingCall = OngoingCall; +class OngoingCallPromise extends OngoingCall { + /** + * GaxPromise is GRPCCallbackWrapper, but it holds a promise when + * the API call finishes. + * @constructor + * @private + */ + constructor() { + let resolveCallback; + let rejectCallback; + const callback = (err, response, next, rawResponse) => { + if (err) { + // If gRPC metadata exist, parsed google.rpc.status details. + if (err.metadata) { + rejectCallback(googleError_1.GoogleError.parseGRPCStatusDetails(err)); + } + else { + rejectCallback(err); + } + } + else if (response !== undefined) { + resolveCallback([response, next || null, rawResponse || null]); + } + else { + throw new googleError_1.GoogleError('Neither error nor response are defined'); + } + }; + const promise = new Promise((resolve, reject) => { + resolveCallback = resolve; + rejectCallback = reject; + }); + super(callback); + this.promise = promise; + this.promise.cancel = () => { + this.cancel(); + }; + } +} +exports.OngoingCallPromise = OngoingCallPromise; +//# sourceMappingURL=call.js.map + +/***/ }), + +/***/ 33553: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createApiCall = createApiCall; +/** + * Provides function wrappers that implement page streaming and retrying. + */ +const apiCaller_1 = __nccwpck_require__(83870); +const gax_1 = __nccwpck_require__(23185); +const retries_1 = __nccwpck_require__(4356); +const timeout_1 = __nccwpck_require__(60269); +const streamingApiCaller_1 = __nccwpck_require__(33896); +const warnings_1 = __nccwpck_require__(30100); +/** + * Converts an rpc call into an API call governed by the settings. + * + * In typical usage, `func` will be a promise to a callable used to make an rpc + * request. This will mostly likely be a bound method from a request stub used + * to make an rpc call. It is not a direct function but a Promise instance, + * because of its asynchronism (typically, obtaining the auth information). + * + * The result is a function which manages the API call with the given settings + * and the options on the invocation. + * + * @param {Promise|GRPCCall} func - is either a promise to be used to make + * a bare RPC call, or just a bare RPC call. + * @param {CallSettings} settings - provides the settings for this call + * @param {Descriptor} descriptor - optionally specify the descriptor for + * the method call. + * @return {GaxCall} func - a bound method on a request stub used + * to make an rpc call. + */ +function createApiCall(func, settings, descriptor, +// eslint-disable-next-line @typescript-eslint/no-unused-vars +_fallback // unused here, used in fallback.ts implementation +) { + // we want to be able to accept both promise resolving to a function and a + // function. Currently client librares are only calling this method with a + // promise, but it will change. + const funcPromise = typeof func === 'function' ? Promise.resolve(func) : func; + // the following apiCaller will be used for all calls of this function... + const apiCaller = (0, apiCaller_1.createAPICaller)(settings, descriptor); + return (request, callOptions, callback) => { + var _a, _b; + let currentApiCaller = apiCaller; + let thisSettings; + if (currentApiCaller instanceof streamingApiCaller_1.StreamingApiCaller) { + const gaxStreamingRetries = (_b = (_a = currentApiCaller.descriptor) === null || _a === void 0 ? void 0 : _a.gaxStreamingRetries) !== null && _b !== void 0 ? _b : false; + // If Gax streaming retries are enabled, check settings passed at call time and convert parameters if needed + const convertedRetryOptions = (0, gax_1.convertRetryOptions)(callOptions, gaxStreamingRetries); + thisSettings = settings.merge(convertedRetryOptions); + } + else { + thisSettings = settings.merge(callOptions); + } + // special case: if bundling is disabled for this one call, + // use default API caller instead + if (settings.isBundling && !thisSettings.isBundling) { + currentApiCaller = (0, apiCaller_1.createAPICaller)(settings, undefined); + } + const ongoingCall = currentApiCaller.init(callback); + funcPromise + .then((func) => { + var _a, _b; + var _c; + // Initially, the function is just what gRPC server stub contains. + func = currentApiCaller.wrap(func); + const streaming = (_a = currentApiCaller.descriptor) === null || _a === void 0 ? void 0 : _a.streaming; + const retry = thisSettings.retry; + if (streaming && retry) { + if (retry.retryCodes.length > 0 && retry.shouldRetryFn) { + (0, warnings_1.warn)('either_retrycodes_or_shouldretryfn', 'Only one of retryCodes or shouldRetryFn may be defined. Ignoring retryCodes.'); + retry.retryCodes = []; + } + if (!currentApiCaller.descriptor + .gaxStreamingRetries && + retry.getResumptionRequestFn) { + throw new Error('getResumptionRequestFn can only be used when gaxStreamingRetries is set to true.'); + } + } + if (!streaming && retry) { + if (retry.shouldRetryFn) { + throw new Error('Using a function to determine retry eligibility is only supported with server streaming calls'); + } + if (retry.getResumptionRequestFn) { + throw new Error('Resumption strategy can only be used with server streaming retries'); + } + if (retry.retryCodes && retry.retryCodes.length > 0) { + (_b = (_c = retry.backoffSettings).initialRpcTimeoutMillis) !== null && _b !== void 0 ? _b : (_c.initialRpcTimeoutMillis = thisSettings.timeout); + return (0, retries_1.retryable)(func, thisSettings.retry, thisSettings.otherArgs, thisSettings.apiName); + } + } + return (0, timeout_1.addTimeoutArg)(func, thisSettings.timeout, thisSettings.otherArgs); + }) + .then((apiCall) => { + // After adding retries / timeouts, the call function becomes simpler: + // it only accepts request and callback. + currentApiCaller.call(apiCall, request, thisSettings, ongoingCall); + }) + .catch(err => { + currentApiCaller.fail(ongoingCall, err); + }); + // Calls normally return a "cancellable promise" that can be used to `await` for the actual result, + // or to cancel the ongoing call. + return currentApiCaller.result(ongoingCall); + }; +} +//# sourceMappingURL=createApiCall.js.map + +/***/ }), + +/***/ 61700: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BundleDescriptor = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = void 0; +var longRunningDescriptor_1 = __nccwpck_require__(90924); +Object.defineProperty(exports, "LongrunningDescriptor", ({ enumerable: true, get: function () { return longRunningDescriptor_1.LongRunningDescriptor; } })); +var pageDescriptor_1 = __nccwpck_require__(70765); +Object.defineProperty(exports, "PageDescriptor", ({ enumerable: true, get: function () { return pageDescriptor_1.PageDescriptor; } })); +var streamDescriptor_1 = __nccwpck_require__(70230); +Object.defineProperty(exports, "StreamDescriptor", ({ enumerable: true, get: function () { return streamDescriptor_1.StreamDescriptor; } })); +var bundleDescriptor_1 = __nccwpck_require__(1661); +Object.defineProperty(exports, "BundleDescriptor", ({ enumerable: true, get: function () { return bundleDescriptor_1.BundleDescriptor; } })); +//# sourceMappingURL=descriptor.js.map + +/***/ }), + +/***/ 10263: +/***/ ((module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fallback = exports.GoogleError = exports.operation = exports.Operation = exports.warn = exports.protobufMinimal = exports.protobuf = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.GrpcClient = exports.defaultToObjectOptions = exports.makeUUID = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.StreamType = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.version = exports.createDefaultBackoffSettings = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.routingHeader = exports.PathTemplate = void 0; +exports.lro = lro; +exports.createApiCall = createApiCall; +const objectHash = __nccwpck_require__(6493); +const protobuf = __nccwpck_require__(85321); +exports.protobuf = protobuf; +const gax = __nccwpck_require__(23185); +const routingHeader = __nccwpck_require__(67298); +exports.routingHeader = routingHeader; +const status_1 = __nccwpck_require__(56123); +const google_auth_library_1 = __nccwpck_require__(24229); +const operationsClient_1 = __nccwpck_require__(46526); +const createApiCall_1 = __nccwpck_require__(33553); +const fallbackRest = __nccwpck_require__(89169); +const featureDetection_1 = __nccwpck_require__(80876); +const fallbackServiceStub_1 = __nccwpck_require__(61832); +const streaming_1 = __nccwpck_require__(63123); +const util_1 = __nccwpck_require__(44953); +const IamProtos = __nccwpck_require__(55035); +exports.IamProtos = IamProtos; +const LocationProtos = __nccwpck_require__(61758); +exports.LocationProtos = LocationProtos; +const operationsProtos = __nccwpck_require__(754); +exports.operationsProtos = operationsProtos; +var pathTemplate_1 = __nccwpck_require__(94460); +Object.defineProperty(exports, "PathTemplate", ({ enumerable: true, get: function () { return pathTemplate_1.PathTemplate; } })); +var gax_1 = __nccwpck_require__(23185); +Object.defineProperty(exports, "CallSettings", ({ enumerable: true, get: function () { return gax_1.CallSettings; } })); +Object.defineProperty(exports, "constructSettings", ({ enumerable: true, get: function () { return gax_1.constructSettings; } })); +Object.defineProperty(exports, "RetryOptions", ({ enumerable: true, get: function () { return gax_1.RetryOptions; } })); +Object.defineProperty(exports, "createDefaultBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createDefaultBackoffSettings; } })); +exports.version = (__nccwpck_require__(57564).version) + '-fallback'; +var descriptor_1 = __nccwpck_require__(61700); +Object.defineProperty(exports, "BundleDescriptor", ({ enumerable: true, get: function () { return descriptor_1.BundleDescriptor; } })); +Object.defineProperty(exports, "LongrunningDescriptor", ({ enumerable: true, get: function () { return descriptor_1.LongrunningDescriptor; } })); +Object.defineProperty(exports, "PageDescriptor", ({ enumerable: true, get: function () { return descriptor_1.PageDescriptor; } })); +Object.defineProperty(exports, "StreamDescriptor", ({ enumerable: true, get: function () { return descriptor_1.StreamDescriptor; } })); +var streaming_2 = __nccwpck_require__(63123); +Object.defineProperty(exports, "StreamType", ({ enumerable: true, get: function () { return streaming_2.StreamType; } })); +var operationsClient_2 = __nccwpck_require__(46526); +Object.defineProperty(exports, "OperationsClient", ({ enumerable: true, get: function () { return operationsClient_2.OperationsClient; } })); +var iamService_1 = __nccwpck_require__(11997); +Object.defineProperty(exports, "IamClient", ({ enumerable: true, get: function () { return iamService_1.IamClient; } })); +var locationService_1 = __nccwpck_require__(37031); +Object.defineProperty(exports, "LocationsClient", ({ enumerable: true, get: function () { return locationService_1.LocationsClient; } })); +var util_2 = __nccwpck_require__(44953); +Object.defineProperty(exports, "makeUUID", ({ enumerable: true, get: function () { return util_2.makeUUID; } })); +exports.defaultToObjectOptions = { + keepCase: false, + longs: String, + enums: String, + defaults: true, + oneofs: true, +}; +const CLIENT_VERSION_HEADER = 'x-goog-api-client'; +class GrpcClient { + /** + * In rare cases users might need to deallocate all memory consumed by loaded protos. + * This method will delete the proto cache content. + */ + static clearProtoCache() { + GrpcClient.protoCache.clear(); + } + /** + * gRPC-fallback version of GrpcClient + * Implements GrpcClient API for a browser using grpc-fallback protocol (sends serialized protobuf to HTTP/1 $rpc endpoint). + * + * @param {Object=} options.auth - An instance of OAuth2Client to use in browser, or an instance of GoogleAuth from google-auth-library + * to use in Node.js. Required for browser, optional for Node.js. + * @constructor + */ + constructor(options = {}) { + var _a; + if (!(0, featureDetection_1.isNodeJS)()) { + if (!options.auth) { + throw new Error(JSON.stringify(options) + + 'You need to pass auth instance to use gRPC-fallback client in browser or other non-Node.js environments. Use OAuth2Client from google-auth-library.'); + } + this.auth = options.auth; + } + else { + this.auth = + options.auth || + new google_auth_library_1.GoogleAuth(options); + } + this.fallback = options.fallback ? true : false; + this.grpcVersion = (__nccwpck_require__(57564).version); + this.httpRules = options.httpRules; + this.numericEnums = (_a = options.numericEnums) !== null && _a !== void 0 ? _a : false; + } + /** + * gRPC-fallback version of loadProto + * Loads the protobuf root object from a JSON object created from a proto file + * @param {Object} jsonObject - A JSON version of a protofile created usin protobuf.js + * @returns {Object} Root namespace of proto JSON + */ + loadProto(jsonObject) { + const rootObject = protobuf.Root.fromJSON(jsonObject); + return rootObject; + } + loadProtoJSON(json, ignoreCache = false) { + const hash = objectHash(JSON.stringify(json)).toString(); + const cached = GrpcClient.protoCache.get(hash); + if (cached && !ignoreCache) { + return cached; + } + const root = protobuf.Root.fromJSON(json); + GrpcClient.protoCache.set(hash, root); + return root; + } + static getServiceMethods(service) { + const methods = {}; + for (const [methodName, methodObject] of Object.entries(service.methods)) { + const methodNameLowerCamelCase = (0, util_1.toLowerCamelCase)(methodName); + methods[methodNameLowerCamelCase] = methodObject; + } + return methods; + } + /** + * gRPC-fallback version of constructSettings + * A wrapper of {@link constructSettings} function under the gRPC context. + * + * Most of parameters are common among constructSettings, please take a look. + * @param {string} serviceName - The fullly-qualified name of the service. + * @param {Object} clientConfig - A dictionary of the client config. + * @param {Object} configOverrides - A dictionary of overriding configs. + * @param {Object} headers - A dictionary of additional HTTP header name to + * its value. + * @return {Object} A mapping of method names to CallSettings. + */ + constructSettings(serviceName, clientConfig, configOverrides, headers) { + function buildMetadata(abTests, moreHeaders) { + const metadata = {}; + if (!headers) { + headers = {}; + } + // Since gRPC expects each header to be an array, + // we are doing the same for fallback here. + for (const key in headers) { + metadata[key] = Array.isArray(headers[key]) + ? headers[key] + : [headers[key]]; + } + // gRPC-fallback request must have 'grpc-web/' in 'x-goog-api-client' + const clientVersions = []; + if (metadata[CLIENT_VERSION_HEADER] && + metadata[CLIENT_VERSION_HEADER][0]) { + clientVersions.push(...metadata[CLIENT_VERSION_HEADER][0].split(' ')); + } + clientVersions.push(`grpc-web/${exports.version}`); + metadata[CLIENT_VERSION_HEADER] = [clientVersions.join(' ')]; + if (!moreHeaders) { + return metadata; + } + for (const key in moreHeaders) { + if (key.toLowerCase() !== CLIENT_VERSION_HEADER) { + const value = moreHeaders[key]; + if (Array.isArray(value)) { + if (metadata[key] === undefined) { + metadata[key] = value; + } + else { + if (Array.isArray(metadata[key])) { + metadata[key].push(...value); + } + else { + throw new Error(`Can not add value ${value} to the call metadata.`); + } + } + } + else { + metadata[key] = [value]; + } + } + } + return metadata; + } + return gax.constructSettings(serviceName, clientConfig, configOverrides, status_1.Status, { metadataBuilder: buildMetadata }); + } + /** + * gRPC-fallback version of createStub + * Creates a gRPC-fallback stub with authentication headers built from supplied OAuth2Client instance + * + * @param {function} CreateStub - The constructor function of the stub. + * @param {Object} service - A protobufjs Service object (as returned by lookupService) + * @param {Object} opts - Connection options, as described below. + * @param {string} opts.servicePath - The hostname of the API endpoint service. + * @param {number} opts.port - The port of the service. + * @return {Promise} A promise which resolves to a gRPC-fallback service stub, which is a protobuf.js service stub instance modified to match the gRPC stub API + */ + async createStub(service, opts, + // For consistency with createStub in grpc.ts, customServicePath is defined: + // eslint-disable-next-line @typescript-eslint/no-unused-vars + customServicePath) { + if (!this.authClient) { + if (this.auth && 'getClient' in this.auth) { + this.authClient = (await this.auth.getClient()); + } + else if (this.auth && 'getRequestHeaders' in this.auth) { + this.authClient = this.auth; + } + } + if (!this.authClient) { + throw new Error('No authentication was provided'); + } + if (!opts.universeDomain) { + opts.universeDomain = 'googleapis.com'; + } + if (opts.universeDomain) { + const universeFromAuth = this.authClient.universeDomain; + if (universeFromAuth && opts.universeDomain !== universeFromAuth) { + throw new Error(`The configured universe domain (${opts.universeDomain}) does not match the universe domain found in the credentials (${universeFromAuth}). ` + + "If you haven't configured the universe domain explicitly, googleapis.com is the default."); + } + } + service.resolveAll(); + const methods = GrpcClient.getServiceMethods(service); + const protocol = opts.protocol || 'https'; + let servicePath = opts.servicePath; + if (!servicePath && + service.options && + service.options['(google.api.default_host)']) { + servicePath = service.options['(google.api.default_host)']; + } + if (!servicePath) { + throw new Error(`Cannot determine service API path for service ${service.name}.`); + } + let servicePort; + const match = servicePath.match(/^(.*):(\d+)$/); + if (match) { + servicePath = match[1]; + servicePort = parseInt(match[2]); + } + if (opts.port) { + servicePort = opts.port; + } + else if (!servicePort) { + servicePort = 443; + } + const encoder = fallbackRest.encodeRequest; + const decoder = fallbackRest.decodeResponse; + const serviceStub = (0, fallbackServiceStub_1.generateServiceStub)(methods, protocol, servicePath, servicePort, this.authClient, encoder, decoder, this.numericEnums); + return serviceStub; + } + /** + * Creates a 'bytelength' function for a given proto message class. + * + * See {@link BundleDescriptor} about the meaning of the return value. + * + * @param {function} message - a constructor function that is generated by + * protobuf.js. Assumes 'encoder' field in the message. + * @return {function(Object):number} - a function to compute the byte length + * for an object. + */ + static createByteLengthFunction(message) { + return gax.createByteLengthFunction(message); + } +} +exports.GrpcClient = GrpcClient; +GrpcClient.protoCache = new Map(); +/** + * gRPC-fallback version of lro + * + * @param {Object=} options.auth - An instance of google-auth-library. + * @return {Object} A OperationsClientBuilder that will return a OperationsClient + */ +function lro(options) { + options = Object.assign({ scopes: [] }, options); + if (options.protoJson) { + options = Object.assign(options, { fallback: true }); + } + const gaxGrpc = new GrpcClient(options); + return new operationsClient_1.OperationsClientBuilder(gaxGrpc, options.protoJson); +} +/** + * gRPC-fallback version of createApiCall + * + * Converts an rpc call into an API call governed by the settings. + * + * In typical usage, `func` will be a promise to a callable used to make an rpc + * request. This will mostly likely be a bound method from a request stub used + * to make an rpc call. It is not a direct function but a Promise instance, + * because of its asynchronism (typically, obtaining the auth information). + * + * The result is a function which manages the API call with the given settings + * and the options on the invocation. + * + * Throws exception on unsupported streaming calls + * + * @param {Promise|GRPCCall} func - is either a promise to be used to make + * a bare RPC call, or just a bare RPC call. + * @param {CallSettings} settings - provides the settings for this call + * @param {Descriptor} descriptor - optionally specify the descriptor for + * the method call. + * @return {GaxCall} func - a bound method on a request stub used + * to make an rpc call. + */ +function createApiCall(func, settings, descriptor, +// eslint-disable-next-line @typescript-eslint/no-unused-vars +_fallback // unused; for compatibility only +) { + if (descriptor && + 'streaming' in descriptor && + descriptor.type !== streaming_1.StreamType.SERVER_STREAMING) { + return () => { + throw new Error('The REST transport currently does not support client-streaming or bidi-stream calls.'); + }; + } + if (descriptor && 'streaming' in descriptor && !(0, featureDetection_1.isNodeJS)()) { + return () => { + throw new Error('Server streaming over the REST transport is only supported in Node.js.'); + }; + } + return (0, createApiCall_1.createApiCall)(func, settings, descriptor); +} +exports.protobufMinimal = __nccwpck_require__(38590); +var warnings_1 = __nccwpck_require__(30100); +Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warnings_1.warn; } })); +var longrunning_1 = __nccwpck_require__(41789); +Object.defineProperty(exports, "Operation", ({ enumerable: true, get: function () { return longrunning_1.Operation; } })); +Object.defineProperty(exports, "operation", ({ enumerable: true, get: function () { return longrunning_1.operation; } })); +var googleError_1 = __nccwpck_require__(79110); +Object.defineProperty(exports, "GoogleError", ({ enumerable: true, get: function () { return googleError_1.GoogleError; } })); +// Different environments or bundlers may or may not respect "browser" field +// in package.json (e.g. Electron does not respect it, but if you run the code +// through webpack first, it will follow the "browser" field). +// To make it safer and more compatible, let's make sure that if you do +// const gax = require("google-gax"); +// you can always ask for gax.fallback, regardless of "browser" field being +// understood or not. +const fallback = module.exports; +exports.fallback = fallback; +//# sourceMappingURL=fallback.js.map + +/***/ }), + +/***/ 89169: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.encodeRequest = encodeRequest; +exports.decodeResponse = decodeResponse; +// proto-over-HTTP request encoding and decoding +const serializer = __nccwpck_require__(75728); +const fallback_1 = __nccwpck_require__(10263); +const googleError_1 = __nccwpck_require__(79110); +const transcoding_1 = __nccwpck_require__(14965); +function encodeRequest(rpc, protocol, servicePath, servicePort, request, numericEnums) { + const headers = { + 'Content-Type': 'application/json', + }; + const message = rpc.resolvedRequestType.fromObject(request); + const json = serializer.toProto3JSON(message, { + numericEnums, + }); + if (!json) { + throw new Error(`Cannot send null request to RPC ${rpc.name}.`); + } + if (typeof json !== 'object' || Array.isArray(json)) { + throw new Error(`Request to RPC ${rpc.name} must be an object.`); + } + const transcoded = (0, transcoding_1.transcode)(json, rpc.parsedOptions); + if (!transcoded) { + throw new Error(`Cannot build HTTP request for ${JSON.stringify(json)}, method: ${rpc.name}`); + } + // If numeric enums feature is requested, add extra parameter to the query string + if (numericEnums) { + transcoded.queryString = + (transcoded.queryString ? `${transcoded.queryString}&` : '') + + '$alt=json%3Benum-encoding=int'; + } + // Converts httpMethod to method that permitted in standard Fetch API spec + // https://fetch.spec.whatwg.org/#methods + const method = transcoded.httpMethod.toUpperCase(); + const body = JSON.stringify(transcoded.data); + const url = `${protocol}://${servicePath}:${servicePort}/${transcoded.url.replace(/^\//, '')}?${transcoded.queryString}`; + return { + method, + url, + headers, + body, + }; +} +function decodeResponse(rpc, ok, response) { + // eslint-disable-next-line n/no-unsupported-features/node-builtins + const decodedString = new TextDecoder().decode(response); + if (!decodedString) { + throw new Error(`Received null response from RPC ${rpc.name}`); + } + const json = JSON.parse(decodedString); + if (!ok) { + const error = googleError_1.GoogleError.parseHttpError(json); + throw error; + } + const message = serializer.fromProto3JSON(rpc.resolvedResponseType, json); + if (!message) { + throw new Error(`Received null or malformed response from JSON serializer from RPC ${rpc.name}`); + } + return rpc.resolvedResponseType.toObject(message, fallback_1.defaultToObjectOptions); +} +//# sourceMappingURL=fallbackRest.js.map + +/***/ }), + +/***/ 61832: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.generateServiceStub = generateServiceStub; +/* global window */ +/* global AbortController */ +const node_fetch_1 = __nccwpck_require__(78704); +const abort_controller_1 = __nccwpck_require__(45316); +const featureDetection_1 = __nccwpck_require__(80876); +const streamArrayParser_1 = __nccwpck_require__(3680); +const stream_1 = __nccwpck_require__(2203); +function generateServiceStub(rpcs, protocol, servicePath, servicePort, authClient, requestEncoder, responseDecoder, numericEnums) { + const fetch = (0, featureDetection_1.hasWindowFetch)() + ? window.fetch + : node_fetch_1.default; + const serviceStub = { + // close method should close all cancel controllers. If this feature request in the future, we can have a cancelControllerFactory that tracks created cancel controllers, and abort them all in close method. + close: () => { + return { cancel: () => { } }; + }, + }; + for (const [rpcName, rpc] of Object.entries(rpcs)) { + serviceStub[rpcName] = (request, options, _metadata, callback) => { + options !== null && options !== void 0 ? options : (options = {}); + // We cannot use async-await in this function because we need to return the canceller object as soon as possible. + // Using plain old promises instead. + let fetchParameters; + try { + fetchParameters = requestEncoder(rpc, protocol, servicePath, servicePort, request, numericEnums); + } + catch (err) { + // we could not encode parameters; pass error to the callback + // and return a no-op canceler object. + if (callback) { + callback(err); + } + return { + cancel() { }, + }; + } + const cancelController = (0, featureDetection_1.hasAbortController)() + ? new AbortController() + : new abort_controller_1.AbortController(); + const cancelSignal = cancelController.signal; + let cancelRequested = false; + const url = fetchParameters.url; + const headers = fetchParameters.headers; + for (const key of Object.keys(options)) { + headers[key] = options[key][0]; + } + const streamArrayParser = new streamArrayParser_1.StreamArrayParser(rpc); + authClient + .getRequestHeaders() + .then(authHeader => { + const fetchRequest = { + headers: { + ...authHeader, + ...headers, + }, + body: fetchParameters.body, + method: fetchParameters.method, + signal: cancelSignal, + }; + if (fetchParameters.method === 'GET' || + fetchParameters.method === 'DELETE') { + delete fetchRequest['body']; + } + return fetch(url, fetchRequest); + }) + .then((response) => { + if (response.ok && rpc.responseStream) { + (0, stream_1.pipeline)(response.body, streamArrayParser, (err) => { + if (err && + (!cancelRequested || + (err instanceof Error && err.name !== 'AbortError'))) { + if (callback) { + callback(err); + } + streamArrayParser.emit('error', err); + } + }); + return; + } + else { + return Promise.all([ + Promise.resolve(response.ok), + response.arrayBuffer(), + ]) + .then(([ok, buffer]) => { + const response = responseDecoder(rpc, ok, buffer); + callback(null, response); + }) + .catch((err) => { + if (!cancelRequested || err.name !== 'AbortError') { + if (rpc.responseStream) { + if (callback) { + callback(err); + } + streamArrayParser.emit('error', err); + } + else if (callback) { + callback(err); + } + else { + throw err; + } + } + }); + } + }) + .catch((err) => { + if (rpc.responseStream) { + if (callback) { + callback(err); + } + streamArrayParser.emit('error', err); + } + else if (callback) { + callback(err); + } + else { + throw err; + } + }); + if (rpc.responseStream) { + return streamArrayParser; + } + return { + cancel: () => { + cancelRequested = true; + cancelController.abort(); + }, + }; + }; + } + return serviceStub; +} +//# sourceMappingURL=fallbackServiceStub.js.map + +/***/ }), + +/***/ 80876: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.hasWindowFetch = hasWindowFetch; +exports.isNodeJS = isNodeJS; +exports.hasAbortController = hasAbortController; +/* global window */ +const features = { + windowFetch: typeof window !== 'undefined' && + (window === null || window === void 0 ? void 0 : window.fetch) && + typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function', + // eslint-disable-next-line n/no-unsupported-features/node-builtins + textEncoder: typeof TextEncoder !== 'undefined', + // eslint-disable-next-line n/no-unsupported-features/node-builtins + textDecoder: typeof TextDecoder !== 'undefined', + nodeJS: typeof process !== 'undefined' && ((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node), + abortController: typeof AbortController !== 'undefined', +}; +function hasWindowFetch() { + return features.windowFetch; +} +function isNodeJS() { + return features.nodeJS; +} +function hasAbortController() { + return features.abortController; +} +//# sourceMappingURL=featureDetection.js.map + +/***/ }), + +/***/ 23185: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CallSettings = exports.RetryOptions = void 0; +exports.convertRetryOptions = convertRetryOptions; +exports.createRetryOptions = createRetryOptions; +exports.createBackoffSettings = createBackoffSettings; +exports.createDefaultBackoffSettings = createDefaultBackoffSettings; +exports.createMaxRetriesBackoffSettings = createMaxRetriesBackoffSettings; +exports.createBundleOptions = createBundleOptions; +exports.constructSettings = constructSettings; +exports.createByteLengthFunction = createByteLengthFunction; +const warnings_1 = __nccwpck_require__(30100); +const util_1 = __nccwpck_require__(44953); +const status_1 = __nccwpck_require__(56123); +/** + * Encapsulates the overridable settings for a particular API call. + * + * ``CallOptions`` is an optional arg for all GAX API calls. It is used to + * configure the settings of a specific API call. + * + * When provided, its values override the GAX service defaults for that + * particular call. + * + * Typically the API clients will accept this as the second to the last + * argument. See the examples below. + * @typedef {Object} CallOptions + * @property {number=} timeout - The client-side timeout for API calls. + * @property {RetryOptions=} retry - determines whether and how to retry + * on transient errors. When set to null, the call will not retry. + * @property {boolean=} autoPaginate - If set to false and the call is + * configured for paged iteration, page unrolling is not performed, instead + * the callback will be called with the response object. + * @property {Object=} pageToken - If set and the call is configured for + * paged iteration, paged iteration is not performed and requested with this + * pageToken. + * @property {number} maxResults - If set and the call is configured for + * paged iteration, the call will stop when the number of response elements + * reaches to the specified size. By default, it will unroll the page to + * the end of the list. + * @property {boolean=} isBundling - If set to false and the call is configured + * for bundling, bundling is not performed. + * @property {BackoffSettings=} longrunning - BackoffSettings used for polling. + * @example + * // suppress bundling for bundled method. + * api.bundlingMethod( + * param, {optParam: aValue, isBundling: false}, function(err, response) { + * // handle response. + * }); + * @example + * // suppress streaming for page-streaming method. + * api.pageStreamingMethod( + * param, {optParam: aValue, autoPaginate: false}, function(err, page) { + * // not returning a stream, but callback is called with the paged response. + * }); + */ +/** + * Per-call configurable settings for retrying upon transient failure. + * @implements {RetryOptionsType} + * @typedef {Object} RetryOptions + * @property {number[]} retryCodes + * @property {BackoffSettings} backoffSettings + * @property {(function)} shouldRetryFn + * @property {(function)} getResumptionRequestFn + */ +class RetryOptions { + constructor(retryCodes, backoffSettings, shouldRetryFn, getResumptionRequestFn) { + this.retryCodes = retryCodes; + this.backoffSettings = backoffSettings; + this.shouldRetryFn = shouldRetryFn; + this.getResumptionRequestFn = getResumptionRequestFn; + } +} +exports.RetryOptions = RetryOptions; +class CallSettings { + /** + * @param {Object} settings - An object containing parameters of this settings. + * @param {number} settings.timeout - The client-side timeout for API calls. + * This parameter is ignored for retrying calls. + * @param {RetryOptions} settings.retry - The configuration for retrying upon + * transient error. If set to null, this call will not retry. + * @param {boolean} settings.autoPaginate - If there is no `pageDescriptor`, + * this attrbute has no meaning. Otherwise, determines whether a page + * streamed response should make the page structure transparent to the user by + * flattening the repeated field in the returned generator. + * @param {number} settings.pageToken - If there is no `pageDescriptor`, + * this attribute has no meaning. Otherwise, determines the page token used + * in the page streaming request. + * @param {Object} settings.otherArgs - Additional arguments to be passed to + * the API calls. + * + * @constructor + */ + constructor(settings) { + var _a; + settings = settings || {}; + this.timeout = settings.timeout || 30 * 1000; + this.retry = settings.retry; + this.autoPaginate = + 'autoPaginate' in settings ? settings.autoPaginate : true; + this.maxResults = settings.maxResults; + this.otherArgs = settings.otherArgs || {}; + this.bundleOptions = settings.bundleOptions; + this.isBundling = 'isBundling' in settings ? settings.isBundling : true; + this.longrunning = + 'longrunning' in settings ? settings.longrunning : undefined; + this.apiName = (_a = settings.apiName) !== null && _a !== void 0 ? _a : undefined; + this.retryRequestOptions = settings.retryRequestOptions; + } + /** + * Returns a new CallSettings merged from this and a CallOptions object. + * + * @param {CallOptions} options - an instance whose values override + * those in this object. If null, ``merge`` returns a copy of this + * object + * @return {CallSettings} The merged CallSettings instance. + */ + merge(options) { + if (!options) { + return new CallSettings(this); + } + let timeout = this.timeout; + let retry = this.retry; + let autoPaginate = this.autoPaginate; + let maxResults = this.maxResults; + let otherArgs = this.otherArgs; + let isBundling = this.isBundling; + let longrunning = this.longrunning; + let apiName = this.apiName; + let retryRequestOptions = this.retryRequestOptions; + // If the user provides a timeout to the method, that timeout value will be used + // to override the backoff settings. + if ('timeout' in options) { + timeout = options.timeout; + } + // If a method-specific timeout is set in the service config, and the retry codes for that + // method are non-null, then that timeout value will be used to + // override backoff settings. + if (retry === null || retry === void 0 ? void 0 : retry.retryCodes) { + retry.backoffSettings.initialRpcTimeoutMillis = timeout; + retry.backoffSettings.maxRpcTimeoutMillis = timeout; + retry.backoffSettings.totalTimeoutMillis = timeout; + } + if ('retry' in options) { + retry = mergeRetryOptions(retry || {}, options.retry); + } + if ('autoPaginate' in options && !options.autoPaginate) { + autoPaginate = false; + } + if ('maxResults' in options) { + maxResults = options.maxResults; + } + if ('otherArgs' in options) { + otherArgs = {}; + for (const key in this.otherArgs) { + otherArgs[key] = this.otherArgs[key]; + } + for (const optionsKey in options.otherArgs) { + otherArgs[optionsKey] = options.otherArgs[optionsKey]; + } + } + if ('isBundling' in options) { + isBundling = options.isBundling; + } + if ('maxRetries' in options && options.maxRetries !== undefined) { + retry.backoffSettings.maxRetries = options.maxRetries; + delete retry.backoffSettings.totalTimeoutMillis; + } + if ('longrunning' in options) { + longrunning = options.longrunning; + } + if ('apiName' in options) { + apiName = options.apiName; + } + if ('retryRequestOptions' in options) { + retryRequestOptions = options.retryRequestOptions; + } + return new CallSettings({ + timeout, + retry, + bundleOptions: this.bundleOptions, + longrunning, + autoPaginate, + maxResults, + otherArgs, + isBundling, + apiName, + retryRequestOptions, + }); + } +} +exports.CallSettings = CallSettings; +/** + * Validates passed retry options in preparation for eventual parameter deprecation + * converts retryRequestOptions to retryOptions + * then sets retryRequestOptions to null + * + * @param {CallOptions} options - a list of passed retry option + * @return {CallOptions} A new CallOptions object. + * + */ +function convertRetryOptions(options, gaxStreamingRetries) { + var _a, _b, _c, _d; + // options will be undefined if no CallOptions object is passed at call time + if (!options) { + return options; + } + // if a user provided retry AND retryRequestOptions at call time, throw an error + // otherwise, convert supported parameters + if (!gaxStreamingRetries) { + return options; + } + if (options.retry && options.retryRequestOptions) { + throw new Error('Only one of retry or retryRequestOptions may be set'); + } // handles parameter conversion from retryRequestOptions to retryOptions + if (options.retryRequestOptions) { + if (options.retryRequestOptions.objectMode !== undefined) { + (0, warnings_1.warn)('retry_request_options', 'objectMode override is not supported. It is set to true internally by default in gax.', 'UnsupportedParameterWarning'); + } + if (options.retryRequestOptions.noResponseRetries !== undefined) { + (0, warnings_1.warn)('retry_request_options', 'noResponseRetries override is not supported. Please specify retry codes or a function to determine retry eligibility.', 'UnsupportedParameterWarning'); + } + if (options.retryRequestOptions.currentRetryAttempt !== undefined) { + (0, warnings_1.warn)('retry_request_options', 'currentRetryAttempt override is not supported. Retry attempts are tracked internally.', 'UnsupportedParameterWarning'); + } + let retryCodes = [status_1.Status.UNAVAILABLE]; + let shouldRetryFn; + if (options.retryRequestOptions.shouldRetryFn) { + retryCodes = []; + shouldRetryFn = options.retryRequestOptions.shouldRetryFn; + } + //Backoff settings + options.maxRetries = + (_b = (_a = options === null || options === void 0 ? void 0 : options.retryRequestOptions) === null || _a === void 0 ? void 0 : _a.retries) !== null && _b !== void 0 ? _b : options.maxRetries; + // create a default backoff settings object in case the user didn't provide overrides for everything + const backoffSettings = createDefaultBackoffSettings(); + let maxRetryDelayMillis; + let totalTimeoutMillis; + // maxRetryDelay - this is in seconds, need to convert to milliseconds + if (options.retryRequestOptions.maxRetryDelay !== undefined) { + maxRetryDelayMillis = options.retryRequestOptions.maxRetryDelay * 1000; + } + // retryDelayMultiplier - should be a one to one mapping to retryDelayMultiplier + const retryDelayMultiplier = (_d = (_c = options === null || options === void 0 ? void 0 : options.retryRequestOptions) === null || _c === void 0 ? void 0 : _c.retryDelayMultiplier) !== null && _d !== void 0 ? _d : backoffSettings.retryDelayMultiplier; + // this is in seconds and needs to be converted to milliseconds and the totalTimeoutMillis parameter + if (options.retryRequestOptions.totalTimeout !== undefined) { + totalTimeoutMillis = options.retryRequestOptions.totalTimeout * 1000; + } + else { + if (options.maxRetries === undefined) { + totalTimeoutMillis = 30000; + (0, warnings_1.warn)('retry_request_options_no_max_retries_timeout', 'Neither maxRetries nor totalTimeout were passed. Defaulting to totalTimeout of 30000ms.', 'MissingParameterWarning'); + } + } + // for the variables the user wants to override, override in the backoff settings object we made + backoffSettings.maxRetryDelayMillis = + maxRetryDelayMillis !== null && maxRetryDelayMillis !== void 0 ? maxRetryDelayMillis : backoffSettings.maxRetryDelayMillis; + backoffSettings.retryDelayMultiplier = + retryDelayMultiplier !== null && retryDelayMultiplier !== void 0 ? retryDelayMultiplier : backoffSettings.retryDelayMultiplier; + backoffSettings.totalTimeoutMillis = + totalTimeoutMillis !== null && totalTimeoutMillis !== void 0 ? totalTimeoutMillis : backoffSettings.totalTimeoutMillis; + const convertedRetryOptions = createRetryOptions(retryCodes, backoffSettings, shouldRetryFn); + options.retry = convertedRetryOptions; + delete options.retryRequestOptions; // completely remove them to avoid any further confusion + (0, warnings_1.warn)('retry_request_options', 'retryRequestOptions will be deprecated in a future release. Please use retryOptions to pass retry options at call time', 'DeprecationWarning'); + } + return options; +} +/** + * Per-call configurable settings for retrying upon transient failure. + * @param {number[]} retryCodes - a list of Google API canonical error codes OR a function that returns a boolean to determine retry behavior + * upon which a retry should be attempted. + * @param {BackoffSettings} backoffSettings - configures the retry + * exponential backoff algorithm. + * @param {function} shouldRetryFn - a function that determines whether a call should retry. If this is defined retryCodes must be empty + * @param {function} getResumptionRequestFn - a function with a resumption strategy - only used with server streaming retries + * @return {RetryOptions} A new RetryOptions object. + * + */ +function createRetryOptions(retryCodes, backoffSettings, shouldRetryFn, getResumptionRequestFn) { + return { + retryCodes, + backoffSettings, + shouldRetryFn, + getResumptionRequestFn, + }; +} +/** + * Parameters to the exponential backoff algorithm for retrying. + * + * @param {number} initialRetryDelayMillis - the initial delay time, + * in milliseconds, between the completion of the first failed request and the + * initiation of the first retrying request. + * @param {number} retryDelayMultiplier - the multiplier by which to + * increase the delay time between the completion of failed requests, and the + * initiation of the subsequent retrying request. + * @param {number} maxRetryDelayMillis - the maximum delay time, in + * milliseconds, between requests. When this value is reached, + * ``retryDelayMultiplier`` will no longer be used to increase delay time. + * @param {number} initialRpcTimeoutMillis - the initial timeout parameter + * to the request. + * @param {number} rpcTimeoutMultiplier - the multiplier by which to + * increase the timeout parameter between failed requests. + * @param {number} maxRpcTimeoutMillis - the maximum timeout parameter, in + * milliseconds, for a request. When this value is reached, + * ``rpcTimeoutMultiplier`` will no longer be used to increase the timeout. + * @param {number} totalTimeoutMillis - the total time, in milliseconds, + * starting from when the initial request is sent, after which an error will + * be returned, regardless of the retrying attempts made meanwhile. + * @return {BackoffSettings} a new settings. + * + */ +function createBackoffSettings(initialRetryDelayMillis, retryDelayMultiplier, maxRetryDelayMillis, initialRpcTimeoutMillis, rpcTimeoutMultiplier, maxRpcTimeoutMillis, totalTimeoutMillis) { + return { + initialRetryDelayMillis, + retryDelayMultiplier, + maxRetryDelayMillis, + initialRpcTimeoutMillis, + rpcTimeoutMultiplier, + maxRpcTimeoutMillis, + totalTimeoutMillis, + }; +} +function createDefaultBackoffSettings() { + return createBackoffSettings(100, 1.3, 60000, null, null, null, null); +} +/** + * Parameters to the exponential backoff algorithm for retrying. + * This function is unsupported, and intended for internal use only. + * + * @param {number} initialRetryDelayMillis - the initial delay time, + * in milliseconds, between the completion of the first failed request and the + * initiation of the first retrying request. + * @param {number} retryDelayMultiplier - the multiplier by which to + * increase the delay time between the completion of failed requests, and the + * initiation of the subsequent retrying request. + * @param {number} maxRetryDelayMillis - the maximum delay time, in + * milliseconds, between requests. When this value is reached, + * ``retryDelayMultiplier`` will no longer be used to increase delay time. + * @param {number} initialRpcTimeoutMillis - the initial timeout parameter + * to the request. + * @param {number} rpcTimeoutMultiplier - the multiplier by which to + * increase the timeout parameter between failed requests. + * @param {number} maxRpcTimeoutMillis - the maximum timeout parameter, in + * milliseconds, for a request. When this value is reached, + * ``rpcTimeoutMultiplier`` will no longer be used to increase the timeout. + * @param {number} maxRetries - the maximum number of retrying attempts that + * will be made. If reached, an error will be returned. + * @return {BackoffSettings} a new settings. + * + */ +function createMaxRetriesBackoffSettings(initialRetryDelayMillis, retryDelayMultiplier, maxRetryDelayMillis, initialRpcTimeoutMillis, rpcTimeoutMultiplier, maxRpcTimeoutMillis, maxRetries) { + return { + initialRetryDelayMillis, + retryDelayMultiplier, + maxRetryDelayMillis, + initialRpcTimeoutMillis, + rpcTimeoutMultiplier, + maxRpcTimeoutMillis, + maxRetries, + }; +} +/** + * Creates a new {@link BundleOptions}. + * + * @private + * @param {Object} options - An object to hold optional parameters. See + * properties for the content of options. + * @return {BundleOptions} - A new options. + */ +function createBundleOptions(options) { + const params = [ + 'element_count_threshold', + 'element_count_limit', + 'request_byte_threshold', + 'request_byte_limit', + 'delay_threshold_millis', + ]; + params.forEach(param => { + if (param in options && typeof options[param] !== 'number') { + throw new Error(`${param} should be a number`); + } + }); + const elementCountThreshold = options.element_count_threshold || 0; + const elementCountLimit = options.element_count_limit || 0; + const requestByteThreshold = options.request_byte_threshold || 0; + const requestByteLimit = options.request_byte_limit || 0; + const delayThreshold = options.delay_threshold_millis || 0; + if (elementCountThreshold === 0 && + requestByteThreshold === 0 && + delayThreshold === 0) { + throw new Error('one threshold should be > 0'); + } + return { + elementCountThreshold, + elementCountLimit, + requestByteThreshold, + requestByteLimit, + delayThreshold, + }; +} +/** + * Helper for {@link constructSettings} + * + * @private + * + * @param {Object} methodConfig - A dictionary representing a single + * `methods` entry of the standard API client config file. (See + * {@link constructSettings} for information on this yaml.) + * @param {?Object} retryCodes - A dictionary parsed from the + * `retry_codes_def` entry of the standard API client config + * file. (See {@link constructSettings} for information on this yaml.) + * @param {Object} retryParams - A dictionary parsed from the + * `retry_params` entry of the standard API client config + * file. (See {@link constructSettings} for information on this yaml.) + * @param {Object} retryNames - A dictionary mapping the string names + * used in the standard API client config file to API response + * status codes. + * @return {?RetryOptions} The new retry options. + */ +function constructRetry(methodConfig, retryCodes, retryParams, retryNames) { + if (!methodConfig) { + return null; + } + let codes = null; // this is one instance where it will NOT be an array OR a function because we do not allow shouldRetryFn in the client + if (retryCodes && 'retry_codes_name' in methodConfig) { + const retryCodesName = methodConfig['retry_codes_name']; + codes = (retryCodes[retryCodesName] || []).map(name => { + return Number(retryNames[name]); + }); + } + let backoffSettings = null; + if (retryParams && 'retry_params_name' in methodConfig) { + const params = retryParams[methodConfig.retry_params_name]; + backoffSettings = createBackoffSettings(params.initial_retry_delay_millis, params.retry_delay_multiplier, params.max_retry_delay_millis, params.initial_rpc_timeout_millis, params.rpc_timeout_multiplier, params.max_rpc_timeout_millis, params.total_timeout_millis); + } + return createRetryOptions(codes, backoffSettings); +} +/** + * Helper for {@link constructSettings} + * + * Takes two retry options, and merges them into a single RetryOption instance. + * + * @private + * + * @param {RetryOptions} retry - The base RetryOptions. + * @param {RetryOptions} overrides - The RetryOptions used for overriding + * `retry`. Use the values if it is not null. If entire `overrides` is null, + * ignore the base retry and return null. + * @return {?RetryOptions} The merged RetryOptions. + */ +function mergeRetryOptions(retry, overrides) { + if (!overrides) { + return null; + } + if (!overrides.retryCodes && + !overrides.backoffSettings && + !overrides.shouldRetryFn && + !overrides.getResumptionRequestFn) { + return retry; + } + const retryCodes = overrides.retryCodes + ? overrides.retryCodes + : retry.retryCodes; + const backoffSettings = overrides.backoffSettings + ? overrides.backoffSettings + : retry.backoffSettings; + const shouldRetryFn = overrides.shouldRetryFn + ? overrides.shouldRetryFn + : retry.shouldRetryFn; + const getResumptionRequestFn = overrides.getResumptionRequestFn + ? overrides.getResumptionRequestFn + : retry.getResumptionRequestFn; + return createRetryOptions(retryCodes, backoffSettings, shouldRetryFn, getResumptionRequestFn); +} +/** + * Constructs a dictionary mapping method names to {@link CallSettings}. + * + * The `clientConfig` parameter is parsed from a client configuration JSON + * file of the form: + * + * { + * "interfaces": { + * "google.fake.v1.ServiceName": { + * "retry_codes": { + * "idempotent": ["UNAVAILABLE", "DEADLINE_EXCEEDED"], + * "non_idempotent": [] + * }, + * "retry_params": { + * "default": { + * "initial_retry_delay_millis": 100, + * "retry_delay_multiplier": 1.2, + * "max_retry_delay_millis": 1000, + * "initial_rpc_timeout_millis": 2000, + * "rpc_timeout_multiplier": 1.5, + * "max_rpc_timeout_millis": 30000, + * "total_timeout_millis": 45000 + * } + * }, + * "methods": { + * "CreateFoo": { + * "retry_codes_name": "idempotent", + * "retry_params_name": "default" + * }, + * "Publish": { + * "retry_codes_name": "non_idempotent", + * "retry_params_name": "default", + * "bundling": { + * "element_count_threshold": 40, + * "element_count_limit": 200, + * "request_byte_threshold": 90000, + * "request_byte_limit": 100000, + * "delay_threshold_millis": 100 + * } + * } + * } + * } + * } + * } + * + * @param {String} serviceName - The fully-qualified name of this + * service, used as a key into the client config file (in the + * example above, this value should be 'google.fake.v1.ServiceName'). + * @param {Object} clientConfig - A dictionary parsed from the + * standard API client config file. + * @param {Object} configOverrides - A dictionary in the same structure of + * client_config to override the settings. + * @param {Object.} retryNames - A dictionary mapping the strings + * referring to response status codes to objects representing + * those codes. + * @param {Object} otherArgs - the non-request arguments to be passed to the API + * calls. + * @return {Object} A mapping from method name to CallSettings, or null if the + * service is not found in the config. + */ +function constructSettings(serviceName, clientConfig, configOverrides, retryNames, otherArgs) { + otherArgs = otherArgs || {}; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const defaults = {}; + const serviceConfig = (clientConfig.interfaces || {})[serviceName]; + if (!serviceConfig) { + return null; + } + // users can override the config from client side, like bundling options. + // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/main/src/gax.ts#L546 + // The way to override bundling options: + // + // const customConfig = {"interfaces": {"service": {"methods": {"methodName": {"bundling": {..}}}}}} + // const client = new Client({ projectId, customConfig }); + const overrides = (configOverrides.interfaces || {})[serviceName] || {}; + const methods = serviceConfig.methods; + const overridingMethods = overrides.methods || {}; + for (const methodName in methods) { + const methodConfig = methods[methodName]; + const jsName = (0, util_1.toLowerCamelCase)(methodName); + let retry = constructRetry(methodConfig, serviceConfig.retry_codes, serviceConfig.retry_params, retryNames); + let bundlingConfig = methodConfig.bundling; + let timeout = methodConfig.timeout_millis; + if (methodName in overridingMethods) { + const overridingMethod = overridingMethods[methodName]; + if (overridingMethod) { + if ('bundling' in overridingMethod) { + bundlingConfig = overridingMethod.bundling; + } + if ('timeout_millis' in overridingMethod) { + timeout = overridingMethod.timeout_millis; + } + } + retry = mergeRetryOptions(retry, constructRetry(overridingMethod, overrides.retry_codes, overrides.retry_params, retryNames)); + } + const apiName = serviceName; + defaults[jsName] = new CallSettings({ + timeout, + retry, + bundleOptions: bundlingConfig + ? createBundleOptions(bundlingConfig) + : null, + otherArgs, + apiName, + }); + } + return defaults; +} +function createByteLengthFunction(message) { + return function getByteLength(obj) { + try { + return message.encode(obj).finish().length; + } + catch (err) { + const stringified = JSON.stringify(obj); + (0, warnings_1.warn)('error_encoding_protobufjs_object', `Cannot encode protobuf.js object: ${stringified}: ${err}`); + // We failed to encode the object properly, let's just return an upper boundary of its length. + // It's only needed for calculating the size of the batch, so it's safe if it's bigger than needed. + return stringified.length; + } + }; +} +//# sourceMappingURL=gax.js.map + +/***/ }), + +/***/ 79110: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleErrorDecoder = exports.GoogleError = void 0; +const status_1 = __nccwpck_require__(56123); +const protobuf = __nccwpck_require__(85321); +const serializer = __nccwpck_require__(75728); +const fallback_1 = __nccwpck_require__(10263); +class GoogleError extends Error { + // Parse details field in google.rpc.status wire over gRPC medatadata. + // Promote google.rpc.ErrorInfo if exist. + static parseGRPCStatusDetails(err) { + const decoder = new GoogleErrorDecoder(); + try { + if (err.metadata && err.metadata.get('grpc-status-details-bin')) { + const statusDetailsObj = decoder.decodeGRPCStatusDetails(err.metadata.get('grpc-status-details-bin')); + if (statusDetailsObj && + statusDetailsObj.details && + statusDetailsObj.details.length > 0) { + err.statusDetails = statusDetailsObj.details; + } + if (statusDetailsObj && statusDetailsObj.errorInfo) { + err.reason = statusDetailsObj.errorInfo.reason; + err.domain = statusDetailsObj.errorInfo.domain; + err.errorInfoMetadata = statusDetailsObj.errorInfo.metadata; + } + } + } + catch (decodeErr) { + // ignoring the error + } + return err; + } + // Parse http JSON error and promote google.rpc.ErrorInfo if exist. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + static parseHttpError(json) { + if (Array.isArray(json)) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + json = json.find((obj) => { + return 'error' in obj; + }); + } + // fallback logic. + // related issue: https://github.com/googleapis/gax-nodejs/issues/1303 + // google error mapping: https://cloud.google.com/apis/design/errors + // if input json doesn't have 'error' fields, wrap the whole object with 'error' field + if (!json['error']) { + json['error'] = {}; + Object.keys(json) + .filter(key => key !== 'error') + .forEach(key => { + json['error'][key] = json[key]; + delete json[key]; + }); + } + const decoder = new GoogleErrorDecoder(); + const proto3Error = decoder.decodeHTTPError(json['error']); + const error = Object.assign(new GoogleError(json['error']['message']), proto3Error); + // Map Http Status Code to gRPC Status Code + if (json['error']['code']) { + error.code = (0, status_1.rpcCodeFromHttpStatusCode)(json['error']['code']); + } + else { + // If error code is absent, proto3 message default value is 0. We should + // keep error code as undefined. + delete error.code; + } + // Keep consistency with gRPC statusDetails fields. gRPC details has been occupied before. + // Rename "details" to "statusDetails". + if (error.details) { + try { + const statusDetailsObj = decoder.decodeHttpStatusDetails(error.details); + if (statusDetailsObj && + statusDetailsObj.details && + statusDetailsObj.details.length > 0) { + error.statusDetails = statusDetailsObj.details; + } + if (statusDetailsObj && statusDetailsObj.errorInfo) { + error.reason = statusDetailsObj.errorInfo.reason; + error.domain = statusDetailsObj.errorInfo.domain; + // error.metadata has been occupied for gRPC metadata, so we use + // errorInfoMetadata to represent ErrorInfo' metadata field. Keep + // consistency with gRPC ErrorInfo metadata field name. + error.errorInfoMetadata = statusDetailsObj.errorInfo.metadata; + } + } + catch (decodeErr) { + // ignoring the error + } + } + return error; + } +} +exports.GoogleError = GoogleError; +class GoogleErrorDecoder { + constructor() { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const errorProtoJson = __nccwpck_require__(64765); + this.root = protobuf.Root.fromJSON(errorProtoJson); + this.anyType = this.root.lookupType('google.protobuf.Any'); + this.statusType = this.root.lookupType('google.rpc.Status'); + } + decodeProtobufAny(anyValue) { + const match = anyValue.type_url.match(/^type.googleapis.com\/(.*)/); + if (!match) { + throw new Error(`Unknown type encoded in google.protobuf.any: ${anyValue.type_url}`); + } + const typeName = match[1]; + const type = this.root.lookupType(typeName); + if (!type) { + throw new Error(`Cannot lookup type ${typeName}`); + } + return type.decode(anyValue.value); + } + // Decodes gRPC-fallback error which is an instance of google.rpc.Status. + decodeRpcStatus(buffer) { + const uint8array = new Uint8Array(buffer); + const status = this.statusType.decode(uint8array); + // google.rpc.Status contains an array of google.protobuf.Any + // which need a special treatment + const details = []; + let errorInfo; + for (const detail of status.details) { + try { + const decodedDetail = this.decodeProtobufAny(detail); + details.push(decodedDetail); + if (detail.type_url === 'type.googleapis.com/google.rpc.ErrorInfo') { + errorInfo = decodedDetail; + } + } + catch (err) { + // cannot decode detail, likely because of the unknown type - just skip it + } + } + const result = { + code: status.code, + message: status.message, + statusDetails: details, + reason: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.reason, + domain: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.domain, + errorInfoMetadata: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.metadata, + }; + return result; + } + // Construct an Error from a StatusObject. + // Adapted from https://github.com/grpc/grpc-node/blob/main/packages/grpc-js/src/call.ts#L79 + callErrorFromStatus(status) { + status.message = `${status.code} ${status_1.Status[status.code]}: ${status.message}`; + return Object.assign(new GoogleError(status.message), status); + } + // Decodes gRPC-fallback error which is an instance of google.rpc.Status, + // and puts it into the object similar to gRPC ServiceError object. + decodeErrorFromBuffer(buffer) { + return this.callErrorFromStatus(this.decodeRpcStatus(buffer)); + } + // Decodes gRPC metadata error details which is an instance of google.rpc.Status. + decodeGRPCStatusDetails(bufferArr) { + const details = []; + let errorInfo; + bufferArr.forEach(buffer => { + const uint8array = new Uint8Array(buffer); + const rpcStatus = this.statusType.decode(uint8array); + for (const detail of rpcStatus.details) { + try { + const decodedDetail = this.decodeProtobufAny(detail); + details.push(decodedDetail); + if (detail.type_url === 'type.googleapis.com/google.rpc.ErrorInfo') { + errorInfo = decodedDetail; + } + } + catch (err) { + // cannot decode detail, likely because of the unknown type - just skip it + } + } + }); + const result = { + details, + errorInfo, + }; + return result; + } + // Decodes http error which is an instance of google.rpc.Status. + decodeHTTPError(json) { + const errorMessage = serializer.fromProto3JSON(this.statusType, json); + if (!errorMessage) { + throw new Error(`Received error message ${json}, but failed to serialize as proto3 message`); + } + return this.statusType.toObject(errorMessage, fallback_1.defaultToObjectOptions); + } + // Decodes http error details which is an instance of Array. + decodeHttpStatusDetails(rawDetails) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const details = []; + let errorInfo; + for (const detail of rawDetails) { + try { + const decodedDetail = this.decodeProtobufAny(detail); + details.push(decodedDetail); + if (detail.type_url === 'type.googleapis.com/google.rpc.ErrorInfo') { + errorInfo = decodedDetail; + } + } + catch (err) { + // cannot decode detail, likely because of the unknown type - just skip it + } + } + return { details, errorInfo }; + } +} +exports.GoogleErrorDecoder = GoogleErrorDecoder; +//# sourceMappingURL=googleError.js.map + +/***/ }), + +/***/ 86333: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleProtoFilesRoot = exports.GrpcClient = exports.ClientStub = void 0; +const grpcProtoLoader = __nccwpck_require__(52808); +const child_process_1 = __nccwpck_require__(35317); +const fs = __nccwpck_require__(79896); +const google_auth_library_1 = __nccwpck_require__(24229); +const grpc = __nccwpck_require__(58046); +const os = __nccwpck_require__(70857); +const path_1 = __nccwpck_require__(16928); +const path = __nccwpck_require__(16928); +const protobuf = __nccwpck_require__(85321); +const objectHash = __nccwpck_require__(6493); +const gax = __nccwpck_require__(23185); +const googleProtoFilesDir = __nccwpck_require__.ab + "protos"; +// INCLUDE_DIRS is passed to @grpc/proto-loader +const INCLUDE_DIRS = []; +INCLUDE_DIRS.push(googleProtoFilesDir); +// COMMON_PROTO_FILES logic is here for protobufjs loads (see +// GoogleProtoFilesRoot below) +const commonProtoFiles = __nccwpck_require__(7085); +// use the correct path separator for the OS we are running on +const COMMON_PROTO_FILES = commonProtoFiles.map(file => file.replace(/[/\\]/g, path.sep)); +/* + * Async version of readFile. + * + * @returns {Promise} Contents of file at path. + */ +async function readFileAsync(path) { + return new Promise((resolve, reject) => { + fs.readFile(path, 'utf8', (err, content) => { + if (err) + return reject(err); + else + resolve(content); + }); + }); +} +/* + * Async version of execFile. + * + * @returns {Promise} stdout from command execution. + */ +async function execFileAsync(command, args) { + return new Promise((resolve, reject) => { + (0, child_process_1.execFile)(command, args, (err, stdout) => { + if (err) + return reject(err); + else + resolve(stdout); + }); + }); +} +class ClientStub extends grpc.Client { +} +exports.ClientStub = ClientStub; +class GrpcClient { + /** + * Key for proto cache map. We are doing our best to make sure we respect + * the options, so if the same proto file is loaded with different set of + * options, the cache won't be used. Since some of the options are + * Functions (e.g. `enums: String` - see below in `loadProto()`), + * they will be omitted from the cache key. If the cache breaks anything + * for you, use the `ignoreCache` parameter of `loadProto()` to disable it. + */ + static protoCacheKey(filename, options) { + if (!filename || + (Array.isArray(filename) && (filename.length === 0 || !filename[0]))) { + return undefined; + } + return JSON.stringify(filename) + ' ' + JSON.stringify(options); + } + /** + * In rare cases users might need to deallocate all memory consumed by loaded protos. + * This method will delete the proto cache content. + */ + static clearProtoCache() { + GrpcClient.protoCache.clear(); + } + /** + * A class which keeps the context of gRPC and auth for the gRPC. + * + * @param {Object=} options - The optional parameters. It will be directly + * passed to google-auth-library library, so parameters like keyFile or + * credentials will be valid. + * @param {Object=} options.auth - An instance of google-auth-library. + * When specified, this auth instance will be used instead of creating + * a new one. + * @param {Object=} options.grpc - When specified, this will be used + * for the 'grpc' module in this context. By default, it will load the grpc + * module in the standard way. + * @constructor + */ + constructor(options = {}) { + var _a; + this.auth = options.auth || new google_auth_library_1.GoogleAuth(options); + this.fallback = false; + const minimumVersion = 10; + const major = Number((_a = process.version.match(/^v(\d+)/)) === null || _a === void 0 ? void 0 : _a[1]); + if (Number.isNaN(major) || major < minimumVersion) { + const errorMessage = `Node.js v${minimumVersion}.0.0 is a minimum requirement. To learn about legacy version support visit: ` + + 'https://github.com/googleapis/google-cloud-node#supported-nodejs-versions'; + throw new Error(errorMessage); + } + if ('grpc' in options) { + this.grpc = options.grpc; + this.grpcVersion = ''; + } + else { + this.grpc = grpc; + this.grpcVersion = (__nccwpck_require__(9943)/* .version */ .rE); + } + } + /** + * Creates a gRPC credentials. It asks the auth data if necessary. + * @private + * @param {Object} opts - options values for configuring credentials. + * @param {Object=} opts.sslCreds - when specified, this is used instead + * of default channel credentials. + * @return {Promise} The promise which will be resolved to the gRPC credential. + */ + async _getCredentials(opts) { + if (opts.sslCreds) { + return opts.sslCreds; + } + const grpc = this.grpc; + const sslCreds = opts.cert && opts.key + ? grpc.credentials.createSsl(null, Buffer.from(opts.key), Buffer.from(opts.cert)) + : grpc.credentials.createSsl(); + const client = await this.auth.getClient(); + const credentials = grpc.credentials.combineChannelCredentials(sslCreds, grpc.credentials.createFromGoogleCredential(client)); + return credentials; + } + static defaultOptions() { + // This set of @grpc/proto-loader options + // 'closely approximates the existing behavior of grpc.load' + const includeDirs = INCLUDE_DIRS.slice(); + const options = { + keepCase: false, + longs: String, + enums: String, + defaults: true, + oneofs: true, + includeDirs, + }; + return options; + } + /** + * Loads the gRPC service from the proto file(s) at the given path and with the + * given options. Caches the loaded protos so the subsequent loads don't do + * any disk reads. + * @param filename The path to the proto file(s). + * @param options Options for loading the proto file. + * @param ignoreCache Defaults to `false`. Set it to `true` if the caching logic + * incorrectly decides that the options object is the same, or if you want to + * re-read the protos from disk for any other reason. + */ + loadFromProto(filename, options, ignoreCache = false) { + const cacheKey = GrpcClient.protoCacheKey(filename, options); + let grpcPackage = cacheKey + ? GrpcClient.protoCache.get(cacheKey) + : undefined; + if (ignoreCache || !grpcPackage) { + const packageDef = grpcProtoLoader.loadSync(filename, options); + grpcPackage = this.grpc.loadPackageDefinition(packageDef); + if (cacheKey) { + GrpcClient.protoCache.set(cacheKey, grpcPackage); + } + } + return grpcPackage; + } + /** + * Load gRPC proto service from a filename looking in googleapis common protos + * when necessary. Caches the loaded protos so the subsequent loads don't do + * any disk reads. + * @param {String} protoPath - The directory to search for the protofile. + * @param {String|String[]} filename - The filename(s) of the proto(s) to be loaded. + * If omitted, protoPath will be treated as a file path to load. + * @param ignoreCache Defaults to `false`. Set it to `true` if the caching logic + * incorrectly decides that the options object is the same, or if you want to + * re-read the protos from disk for any other reason. + * @return {Object} The gRPC loaded result (the toplevel namespace + * object). + */ + loadProto(protoPath, filename, ignoreCache = false) { + if (!filename) { + filename = path.basename(protoPath); + protoPath = path.dirname(protoPath); + } + if (Array.isArray(filename) && filename.length === 0) { + return {}; + } + const options = GrpcClient.defaultOptions(); + options.includeDirs.unshift(protoPath); + return this.loadFromProto(filename, options, ignoreCache); + } + static _resolveFile(protoPath, filename) { + if (fs.existsSync(path.join(protoPath, filename))) { + return path.join(protoPath, filename); + } + else if (COMMON_PROTO_FILES.indexOf(filename) > -1) { + return path.join(googleProtoFilesDir, filename); + } + throw new Error(filename + ' could not be found in ' + protoPath); + } + loadProtoJSON(json, ignoreCache = false) { + const hash = objectHash(JSON.stringify(json)).toString(); + const cached = GrpcClient.protoCache.get(hash); + if (cached && !ignoreCache) { + return cached; + } + const options = GrpcClient.defaultOptions(); + const packageDefinition = grpcProtoLoader.fromJSON(json, options); + const grpcPackage = this.grpc.loadPackageDefinition(packageDefinition); + GrpcClient.protoCache.set(hash, grpcPackage); + return grpcPackage; + } + metadataBuilder(headers) { + const Metadata = this.grpc.Metadata; + const baseMetadata = new Metadata(); + for (const key in headers) { + const value = headers[key]; + if (Array.isArray(value)) { + value.forEach(v => baseMetadata.add(key, v)); + } + else { + baseMetadata.set(key, `${value}`); + } + } + return function buildMetadata(abTests, moreHeaders) { + // TODO: bring the A/B testing info into the metadata. + let copied = false; + let metadata = baseMetadata; + if (moreHeaders) { + for (const key in moreHeaders) { + if (key.toLowerCase() !== 'x-goog-api-client') { + if (!copied) { + copied = true; + metadata = metadata.clone(); + } + const value = moreHeaders[key]; + if (Array.isArray(value)) { + value.forEach(v => metadata.add(key, v)); + } + else { + metadata.set(key, `${value}`); + } + } + } + } + return metadata; + }; + } + /** + * A wrapper of {@link constructSettings} function under the gRPC context. + * + * Most of parameters are common among constructSettings, please take a look. + * @param {string} serviceName - The fullly-qualified name of the service. + * @param {Object} clientConfig - A dictionary of the client config. + * @param {Object} configOverrides - A dictionary of overriding configs. + * @param {Object} headers - A dictionary of additional HTTP header name to + * its value. + * @return {Object} A mapping of method names to CallSettings. + */ + constructSettings(serviceName, clientConfig, configOverrides, headers) { + return gax.constructSettings(serviceName, clientConfig, configOverrides, this.grpc.status, { metadataBuilder: this.metadataBuilder(headers) }); + } + /** + * Creates a gRPC stub with current gRPC and auth. + * @param {function} CreateStub - The constructor function of the stub. + * @param {Object} options - The optional arguments to customize + * gRPC connection. This options will be passed to the constructor of + * gRPC client too. + * @param {string} options.servicePath - The name of the server of the service. + * @param {number} options.port - The port of the service. + * @param {grpcTypes.ClientCredentials=} options.sslCreds - The credentials to be used + * to set up gRPC connection. + * @param {string} defaultServicePath - The default service path. + * @return {Promise} A promise which resolves to a gRPC stub instance. + */ + async createStub(CreateStub, options, customServicePath) { + // The following options are understood by grpc-gcp and need a special treatment + // (should be passed without a `grpc.` prefix) + const grpcGcpOptions = [ + 'grpc.callInvocationTransformer', + 'grpc.channelFactoryOverride', + 'grpc.gcpApiConfig', + ]; + const [cert, key] = await this._detectClientCertificate(options, options.universeDomain); + const servicePath = this._mtlsServicePath(options.servicePath, customServicePath, cert && key); + const opts = Object.assign({}, options, { cert, key, servicePath }); + const serviceAddress = servicePath + ':' + opts.port; + if (!options.universeDomain) { + options.universeDomain = 'googleapis.com'; + } + if (options.universeDomain) { + const universeFromAuth = await this.auth.getUniverseDomain(); + if (universeFromAuth && options.universeDomain !== universeFromAuth) { + throw new Error(`The configured universe domain (${options.universeDomain}) does not match the universe domain found in the credentials (${universeFromAuth}). ` + + "If you haven't configured the universe domain explicitly, googleapis.com is the default."); + } + } + const creds = await this._getCredentials(opts); + const grpcOptions = {}; + // @grpc/grpc-js limits max receive/send message length starting from v0.8.0 + // https://github.com/grpc/grpc-node/releases/tag/%40grpc%2Fgrpc-js%400.8.0 + // To keep the existing behavior and avoid libraries breakage, we pass -1 there as suggested. + grpcOptions['grpc.max_receive_message_length'] = -1; + grpcOptions['grpc.max_send_message_length'] = -1; + grpcOptions['grpc.initial_reconnect_backoff_ms'] = 1000; + Object.keys(opts).forEach(key => { + const value = options[key]; + // the older versions had a bug which required users to call an option + // grpc.grpc.* to make it actually pass to gRPC as grpc.*, let's handle + // this here until the next major release + if (key.startsWith('grpc.grpc.')) { + key = key.replace(/^grpc\./, ''); + } + if (key.startsWith('grpc.')) { + if (grpcGcpOptions.includes(key)) { + key = key.replace(/^grpc\./, ''); + } + grpcOptions[key] = value; + } + if (key.startsWith('grpc-node.')) { + grpcOptions[key] = value; + } + }); + const stub = new CreateStub(serviceAddress, creds, grpcOptions); + return stub; + } + /** + * Detect mTLS client certificate based on logic described in + * https://google.aip.dev/auth/4114. + * + * @param {object} [options] - The configuration object. + * @returns {Promise} Resolves array of strings representing cert and key. + */ + async _detectClientCertificate(opts, universeDomain) { + var _a; + const certRegex = /(?-----BEGIN CERTIFICATE-----.*?-----END CERTIFICATE-----)/s; + const keyRegex = /(?-----BEGIN PRIVATE KEY-----.*?-----END PRIVATE KEY-----)/s; + // If GOOGLE_API_USE_CLIENT_CERTIFICATE is true...: + if (typeof process !== 'undefined' && + ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.GOOGLE_API_USE_CLIENT_CERTIFICATE) === 'true') { + if (universeDomain && universeDomain !== 'googleapis.com') { + throw new Error('mTLS is not supported outside of googleapis.com universe domain.'); + } + if ((opts === null || opts === void 0 ? void 0 : opts.cert) && (opts === null || opts === void 0 ? void 0 : opts.key)) { + return [opts.cert, opts.key]; + } + // If context aware metadata exists, run the cert provider command, + // parse the output to extract cert and key, and use this cert/key. + const metadataPath = (0, path_1.join)(os.homedir(), '.secureConnect', 'context_aware_metadata.json'); + const metadata = JSON.parse(await readFileAsync(metadataPath)); + if (!metadata.cert_provider_command) { + throw Error('no cert_provider_command found'); + } + const stdout = await execFileAsync(metadata.cert_provider_command[0], metadata.cert_provider_command.slice(1)); + const matchCert = stdout.toString().match(certRegex); + const matchKey = stdout.toString().match(keyRegex); + if (!((matchCert === null || matchCert === void 0 ? void 0 : matchCert.groups) && (matchKey === null || matchKey === void 0 ? void 0 : matchKey.groups))) { + throw Error('unable to parse certificate and key'); + } + else { + return [matchCert.groups.cert, matchKey.groups.key]; + } + } + // If GOOGLE_API_USE_CLIENT_CERTIFICATE is not set or false, + // use no cert or key: + return [undefined, undefined]; + } + /** + * Return service path, taking into account mTLS logic. + * See: https://google.aip.dev/auth/4114 + * + * @param {string|undefined} servicePath - The path of the service. + * @param {string|undefined} customServicePath - Did the user provide a custom service URL. + * @param {boolean} hasCertificate - Was a certificate found. + * @returns {string} The DNS address for this service. + */ + _mtlsServicePath(servicePath, customServicePath, hasCertificate) { + var _a, _b; + // If user provides a custom service path, return the current service + // path and do not attempt to add mtls subdomain: + if (customServicePath || !servicePath) + return servicePath; + if (typeof process !== 'undefined' && + ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.GOOGLE_API_USE_MTLS_ENDPOINT) === 'never') { + // It was explicitly asked that mtls endpoint not be used: + return servicePath; + } + else if ((typeof process !== 'undefined' && + ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.GOOGLE_API_USE_MTLS_ENDPOINT) === 'always') || + hasCertificate) { + // Either auto-detect or explicit setting of endpoint: + return servicePath.replace('googleapis.com', 'mtls.googleapis.com'); + } + return servicePath; + } + /** + * Creates a 'bytelength' function for a given proto message class. + * + * See {@link BundleDescriptor} about the meaning of the return value. + * + * @param {function} message - a constructor function that is generated by + * protobuf.js. Assumes 'encoder' field in the message. + * @return {function(Object):number} - a function to compute the byte length + * for an object. + */ + static createByteLengthFunction(message) { + return gax.createByteLengthFunction(message); + } +} +exports.GrpcClient = GrpcClient; +GrpcClient.protoCache = new Map(); +class GoogleProtoFilesRoot extends protobuf.Root { + constructor(...args) { + super(...args); + } + // Causes the loading of an included proto to check if it is a common + // proto. If it is a common proto, use the bundled proto. + resolvePath(originPath, includePath) { + originPath = path.normalize(originPath); + includePath = path.normalize(includePath); + // Fully qualified paths don't need to be resolved. + if (path.isAbsolute(includePath)) { + if (!fs.existsSync(includePath)) { + throw new Error('The include `' + includePath + '` was not found.'); + } + return includePath; + } + if (COMMON_PROTO_FILES.indexOf(includePath) > -1) { + return path.join(googleProtoFilesDir, includePath); + } + return GoogleProtoFilesRoot._findIncludePath(originPath, includePath); + } + static _findIncludePath(originPath, includePath) { + originPath = path.normalize(originPath); + includePath = path.normalize(includePath); + let current = originPath; + let found = fs.existsSync(path.join(current, includePath)); + while (!found && current.length > 0) { + current = current.substring(0, current.lastIndexOf(path.sep)); + found = fs.existsSync(path.join(current, includePath)); + } + if (!found) { + throw new Error('The include `' + includePath + '` was not found.'); + } + return path.join(current, includePath); + } +} +exports.GoogleProtoFilesRoot = GoogleProtoFilesRoot; +//# sourceMappingURL=grpc.js.map + +/***/ }), + +/***/ 11997: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IamClient = void 0; +const createApiCall_1 = __nccwpck_require__(33553); +const routingHeader = __nccwpck_require__(67298); +const gapicConfig = __nccwpck_require__(55083); +const fallback = __nccwpck_require__(10263); +let version = (__nccwpck_require__(57564).version); +const jsonProtos = __nccwpck_require__(70192); +/** + * Google Cloud IAM Client. + * This is manually written for providing methods [setIamPolicy, getIamPolicy, testIamPerssion] to the generated client. + */ +class IamClient { + constructor(gaxGrpc, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + options) { + this._terminated = false; + this.descriptors = { page: {}, stream: {}, longrunning: {} }; + this.innerApiCalls = {}; + this.gaxGrpc = gaxGrpc; + // Ensure that options include the service address and port. + const opts = Object.assign({ + servicePath: options.servicePath, + port: options.port, + clientConfig: options.clientConfig, + apiEndpoint: options.apiEndpoint, + fallback: options.fallback, + }, options); + version = opts.fallback ? fallback.version : version; + opts.scopes = this.constructor.scopes; + // Save options to use in initialize() method. + this._opts = opts; + // Save the auth object to the client, for use by other methods. + this.auth = gaxGrpc.auth; + // Determine the client header string. + const clientHeader = [`gax/${version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } + else { + clientHeader.push(`gl-web/${version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this.gaxGrpc.loadProtoJSON(jsonProtos); + // Put together the default options sent with requests. + this._defaults = gaxGrpc.constructSettings('google.iam.v1.IAMPolicy', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); + this.innerApiCalls = {}; + } + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.iamPolicyStub) { + return this.iamPolicyStub; + } + // Put together the "service stub" for + // google.iam.v1.IAMPolicy. + this.iamPolicyStub = this.gaxGrpc.createStub(this._opts.fallback + ? this._protos.lookupService('google.iam.v1.IAMPolicy') + : this._protos.google.iam.v1.IAMPolicy, this._opts); + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const iamPolicyStubMethods = [ + 'getIamPolicy', + 'setIamPolicy', + 'testIamPermissions', + ]; + for (const methodName of iamPolicyStubMethods) { + const innerCallPromise = this.iamPolicyStub.then(stub => (...args) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err) => () => { + throw err; + }); + this.innerApiCalls[methodName] = (0, createApiCall_1.createApiCall)(innerCallPromise, this._defaults[methodName], this.descriptors.page[methodName]); + } + return this.iamPolicyStub; + } + /** + * The DNS address for this API service. + */ + static get servicePath() { + return 'cloudkms.googleapis.com'; + } + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + */ + static get apiEndpoint() { + return 'cloudkms.googleapis.com'; + } + /** + * The port for this API service. + */ + static get port() { + return 443; + } + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloudkms', + ]; + } + getProjectId(callback) { + if (this.auth && 'getProjectId' in this.auth) { + return this.auth.getProjectId(callback); + } + if (callback) { + callback(new Error('Cannot determine project ID.')); + } + else { + return Promise.reject('Cannot determine project ID.'); + } + } + getIamPolicy(request, optionsOrCallback, callback) { + let options; + if (optionsOrCallback instanceof Function && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + routingHeader.fromParams({ + resource: request.resource, + }); + this.initialize(); + return this.innerApiCalls.getIamPolicy(request, options, callback); + } + setIamPolicy(request, optionsOrCallback, callback) { + let options; + if (optionsOrCallback instanceof Function && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + routingHeader.fromParams({ + resource: request.resource, + }); + this.initialize(); + return this.innerApiCalls.setIamPolicy(request, options, callback); + } + testIamPermissions(request, optionsOrCallback, callback) { + let options; + if (optionsOrCallback instanceof Function && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + routingHeader.fromParams({ + resource: request.resource, + }); + this.initialize(); + return this.innerApiCalls.testIamPermissions(request, options, callback); + } + /** + * Terminate the GRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + */ + close() { + this.initialize(); + if (!this._terminated) { + return this.iamPolicyStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} +exports.IamClient = IamClient; +//# sourceMappingURL=iamService.js.map + +/***/ }), + +/***/ 83697: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serializer = exports.warn = exports.ChannelCredentials = exports.makeUUID = exports.fallback = exports.protobufMinimal = exports.protobuf = exports.version = exports.createByteLengthFunction = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.routingHeader = exports.StreamType = exports.Status = exports.PathTemplate = exports.operation = exports.Operation = exports.GrpcClient = exports.GoogleProtoFilesRoot = exports.ClientStub = exports.GoogleError = exports.createMaxRetriesBackoffSettings = exports.createDefaultBackoffSettings = exports.createBackoffSettings = exports.createBundleOptions = exports.createRetryOptions = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.createApiCall = exports.OngoingCall = exports.grpc = exports.GoogleAuth = void 0; +exports.lro = lro; +const grpc = __nccwpck_require__(58046); +exports.grpc = grpc; +const grpc_1 = __nccwpck_require__(86333); +const IamProtos = __nccwpck_require__(55035); +exports.IamProtos = IamProtos; +const LocationProtos = __nccwpck_require__(61758); +exports.LocationProtos = LocationProtos; +const operationsProtos = __nccwpck_require__(754); +exports.operationsProtos = operationsProtos; +const operationsClient = __nccwpck_require__(46526); +const routingHeader = __nccwpck_require__(67298); +exports.routingHeader = routingHeader; +var google_auth_library_1 = __nccwpck_require__(24229); +Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return google_auth_library_1.GoogleAuth; } })); +var call_1 = __nccwpck_require__(97425); +Object.defineProperty(exports, "OngoingCall", ({ enumerable: true, get: function () { return call_1.OngoingCall; } })); +var createApiCall_1 = __nccwpck_require__(33553); +Object.defineProperty(exports, "createApiCall", ({ enumerable: true, get: function () { return createApiCall_1.createApiCall; } })); +var descriptor_1 = __nccwpck_require__(61700); +Object.defineProperty(exports, "BundleDescriptor", ({ enumerable: true, get: function () { return descriptor_1.BundleDescriptor; } })); +Object.defineProperty(exports, "LongrunningDescriptor", ({ enumerable: true, get: function () { return descriptor_1.LongrunningDescriptor; } })); +Object.defineProperty(exports, "PageDescriptor", ({ enumerable: true, get: function () { return descriptor_1.PageDescriptor; } })); +Object.defineProperty(exports, "StreamDescriptor", ({ enumerable: true, get: function () { return descriptor_1.StreamDescriptor; } })); +var gax_1 = __nccwpck_require__(23185); +Object.defineProperty(exports, "CallSettings", ({ enumerable: true, get: function () { return gax_1.CallSettings; } })); +Object.defineProperty(exports, "constructSettings", ({ enumerable: true, get: function () { return gax_1.constructSettings; } })); +Object.defineProperty(exports, "RetryOptions", ({ enumerable: true, get: function () { return gax_1.RetryOptions; } })); +Object.defineProperty(exports, "createRetryOptions", ({ enumerable: true, get: function () { return gax_1.createRetryOptions; } })); +Object.defineProperty(exports, "createBundleOptions", ({ enumerable: true, get: function () { return gax_1.createBundleOptions; } })); +Object.defineProperty(exports, "createBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createBackoffSettings; } })); +Object.defineProperty(exports, "createDefaultBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createDefaultBackoffSettings; } })); +Object.defineProperty(exports, "createMaxRetriesBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createMaxRetriesBackoffSettings; } })); +var googleError_1 = __nccwpck_require__(79110); +Object.defineProperty(exports, "GoogleError", ({ enumerable: true, get: function () { return googleError_1.GoogleError; } })); +var grpc_2 = __nccwpck_require__(86333); +Object.defineProperty(exports, "ClientStub", ({ enumerable: true, get: function () { return grpc_2.ClientStub; } })); +Object.defineProperty(exports, "GoogleProtoFilesRoot", ({ enumerable: true, get: function () { return grpc_2.GoogleProtoFilesRoot; } })); +Object.defineProperty(exports, "GrpcClient", ({ enumerable: true, get: function () { return grpc_2.GrpcClient; } })); +var longrunning_1 = __nccwpck_require__(41789); +Object.defineProperty(exports, "Operation", ({ enumerable: true, get: function () { return longrunning_1.Operation; } })); +Object.defineProperty(exports, "operation", ({ enumerable: true, get: function () { return longrunning_1.operation; } })); +var pathTemplate_1 = __nccwpck_require__(94460); +Object.defineProperty(exports, "PathTemplate", ({ enumerable: true, get: function () { return pathTemplate_1.PathTemplate; } })); +var status_1 = __nccwpck_require__(56123); +Object.defineProperty(exports, "Status", ({ enumerable: true, get: function () { return status_1.Status; } })); +var streaming_1 = __nccwpck_require__(63123); +Object.defineProperty(exports, "StreamType", ({ enumerable: true, get: function () { return streaming_1.StreamType; } })); +function lro(options) { + options = Object.assign({ scopes: lro.ALL_SCOPES }, options); + const gaxGrpc = new grpc_1.GrpcClient(options); + return new operationsClient.OperationsClientBuilder(gaxGrpc); +} +lro.SERVICE_ADDRESS = operationsClient.SERVICE_ADDRESS; +lro.ALL_SCOPES = operationsClient.ALL_SCOPES; +var operationsClient_1 = __nccwpck_require__(46526); +Object.defineProperty(exports, "OperationsClient", ({ enumerable: true, get: function () { return operationsClient_1.OperationsClient; } })); +var iamService_1 = __nccwpck_require__(11997); +Object.defineProperty(exports, "IamClient", ({ enumerable: true, get: function () { return iamService_1.IamClient; } })); +var locationService_1 = __nccwpck_require__(37031); +Object.defineProperty(exports, "LocationsClient", ({ enumerable: true, get: function () { return locationService_1.LocationsClient; } })); +exports.createByteLengthFunction = grpc_1.GrpcClient.createByteLengthFunction; +exports.version = __nccwpck_require__(57564).version; +const protobuf = __nccwpck_require__(85321); +exports.protobuf = protobuf; +exports.protobufMinimal = __nccwpck_require__(38590); +const fallback = __nccwpck_require__(10263); +exports.fallback = fallback; +var util_1 = __nccwpck_require__(44953); +Object.defineProperty(exports, "makeUUID", ({ enumerable: true, get: function () { return util_1.makeUUID; } })); +var grpc_js_1 = __nccwpck_require__(58046); +Object.defineProperty(exports, "ChannelCredentials", ({ enumerable: true, get: function () { return grpc_js_1.ChannelCredentials; } })); +var warnings_1 = __nccwpck_require__(30100); +Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warnings_1.warn; } })); +const serializer = __nccwpck_require__(75728); +exports.serializer = serializer; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 37031: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LocationsClient = void 0; +/* global window */ +const gax = __nccwpck_require__(23185); +const warnings_1 = __nccwpck_require__(30100); +const createApiCall_1 = __nccwpck_require__(33553); +const routingHeader = __nccwpck_require__(67298); +const pageDescriptor_1 = __nccwpck_require__(70765); +const jsonProtos = __nccwpck_require__(44909); +/** + * This file defines retry strategy and timeouts for all API methods in this library. + */ +const gapicConfig = __nccwpck_require__(29343); +const version = (__nccwpck_require__(57564).version); +/** + * Google Cloud Locations Client. + * This is manually written for providing methods [listLocations, getLocations] to the generated client. + */ +class LocationsClient { + /** + * Construct an instance of LocationsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. + * In fallback mode, a special browser-compatible transport implementation is used + * instead of gRPC transport. In browser context (if the `window` object is defined) + * the fallback mode is enabled automatically; set `options.fallback` to `false` + * if you need to override this behavior. + */ + constructor(gaxGrpc, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + opts) { + var _a, _b; + this._terminated = false; + this.descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + // Ensure that options include all the required fields. + this.gaxGrpc = gaxGrpc; + const staticMembers = this.constructor; + const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath; + this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint)); + const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port; + const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {}; + const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function'); + opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts); + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + // Save options to use in initialize() method. + this._opts = opts; + // Save the auth object to the client, for use by other methods. + this.auth = gaxGrpc.auth; + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + // Determine the client header string. + const clientHeader = [`gax/${version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } + else { + clientHeader.push(`gl-web/${version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); + } + else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = gaxGrpc.loadProtoJSON(jsonProtos); + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listLocations: new pageDescriptor_1.PageDescriptor('pageToken', 'nextPageToken', 'locations'), + }; + // Put together the default options sent with requests. + this._defaults = gaxGrpc.constructSettings('google.cloud.location.Locations', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + // Add a warn function to the client constructor so it can be easily tested. + this.warn = warnings_1.warn; + } + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.locationsStub) { + return this.locationsStub; + } + // Put together the "service stub" for + // google.cloud.location.Locations. + this.locationsStub = this.gaxGrpc.createStub(this._opts.fallback + ? this._protos.lookupService('google.cloud.location.Locations') + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + this._protos.google.cloud.location.Locations, this._opts, this._providedCustomServicePath); + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const locationsStubMethods = ['listLocations', 'getLocation']; + for (const methodName of locationsStubMethods) { + const callPromise = this.locationsStub.then(stub => (...args) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err) => () => { + throw err; + }); + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = (0, createApiCall_1.createApiCall)(callPromise, this._defaults[methodName], descriptor); + this.innerApiCalls[methodName] = apiCall; + } + return this.locationsStub; + } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'cloud.googleapis.com'; + } + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'cloud.googleapis.com'; + } + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + getProjectId(callback) { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getLocation(request); + */ + getLocation(request, optionsOrCallback, callback) { + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getLocation(request, options, callback); + } + /** + * Lists information about the supported locations for this service. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Location]{@link google.cloud.location.Location}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listLocationsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listLocations(request, optionsOrCallback, callback) { + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.listLocations(request, options, callback); + } + /** + * Equivalent to `listLocations`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listLocationsAsync(request, options) { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + routingHeader.fromParams({ + name: request.name || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listLocations.asyncIterate(this.innerApiCalls['listLocations'], request, callSettings); + } + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close() { + this.initialize(); + if (!this._terminated) { + return this.locationsStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} +exports.LocationsClient = LocationsClient; +//# sourceMappingURL=locationService.js.map + +/***/ }), + +/***/ 92102: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LongrunningApiCaller = void 0; +const call_1 = __nccwpck_require__(97425); +const gax_1 = __nccwpck_require__(23185); +const longrunning_1 = __nccwpck_require__(41789); +class LongrunningApiCaller { + /** + * Creates an API caller that performs polling on a long running operation. + * + * @private + * @constructor + * @param {LongRunningDescriptor} longrunningDescriptor - Holds the + * decoders used for unpacking responses and the operationsClient + * used for polling the operation. + */ + constructor(longrunningDescriptor) { + this.longrunningDescriptor = longrunningDescriptor; + } + init(callback) { + if (callback) { + return new call_1.OngoingCall(callback); + } + return new call_1.OngoingCallPromise(); + } + wrap(func) { + return func; + } + call(apiCall, argument, settings, canceller) { + canceller.call((argument, callback) => { + return this._wrapOperation(apiCall, settings, argument, callback); + }, argument); + } + _wrapOperation(apiCall, settings, argument, callback) { + let backoffSettings = settings.longrunning; + if (!backoffSettings) { + backoffSettings = (0, gax_1.createDefaultBackoffSettings)(); + } + const longrunningDescriptor = this.longrunningDescriptor; + return apiCall(argument, (err, rawResponse) => { + if (err) { + callback(err, null, null, rawResponse); + return; + } + const operation = new longrunning_1.Operation(rawResponse, longrunningDescriptor, backoffSettings, settings); + callback(null, operation, rawResponse); + }); + } + fail(canceller, err) { + canceller.callback(err); + } + result(canceller) { + return canceller.promise; + } +} +exports.LongrunningApiCaller = LongrunningApiCaller; +//# sourceMappingURL=longRunningApiCaller.js.map + +/***/ }), + +/***/ 90924: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LongRunningDescriptor = void 0; +const longRunningApiCaller_1 = __nccwpck_require__(92102); +/** + * A descriptor for long-running operations. + */ +class LongRunningDescriptor { + constructor(operationsClient, responseDecoder, metadataDecoder) { + this.operationsClient = operationsClient; + this.responseDecoder = responseDecoder; + this.metadataDecoder = metadataDecoder; + } + getApiCaller() { + return new longRunningApiCaller_1.LongrunningApiCaller(this); + } +} +exports.LongRunningDescriptor = LongRunningDescriptor; +//# sourceMappingURL=longRunningDescriptor.js.map + +/***/ }), + +/***/ 41789: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Operation = void 0; +exports.operation = operation; +const events_1 = __nccwpck_require__(24434); +const status_1 = __nccwpck_require__(56123); +const googleError_1 = __nccwpck_require__(79110); +const operationProtos = __nccwpck_require__(754); +class Operation extends events_1.EventEmitter { + /** + * Wrapper for a google.longrunnung.Operation. + * + * @constructor + * + * @param {google.longrunning.Operation} grpcOp - The operation to be wrapped. + * @param {LongRunningDescriptor} longrunningDescriptor - This defines the + * operations service client and unpacking mechanisms for the operation. + * @param {BackoffSettings} backoffSettings - The backoff settings used in + * in polling the operation. + * @param {CallOptions} callOptions - CallOptions used in making get operation + * requests. + */ + constructor(grpcOp, longrunningDescriptor, backoffSettings, callOptions) { + super(); + this.completeListeners = 0; + this.hasActiveListeners = false; + this.latestResponse = grpcOp; + this.name = this.latestResponse.name; + this.done = this.latestResponse.done; + this.error = this.latestResponse.error; + this.longrunningDescriptor = longrunningDescriptor; + this.result = null; + this.metadata = null; + this.backoffSettings = backoffSettings; + this._unpackResponse(grpcOp); + this._listenForEvents(); + this._callOptions = callOptions; + } + /** + * Begin listening for events on the operation. This method keeps track of how + * many "complete" listeners are registered and removed, making sure polling + * is handled automatically. + * + * As long as there is one active "complete" listener, the connection is open. + * When there are no more listeners, the polling stops. + * + * @private + */ + _listenForEvents() { + this.on('newListener', event => { + if (event === 'complete') { + this.completeListeners++; + if (!this.hasActiveListeners) { + this.hasActiveListeners = true; + this.startPolling_(); + } + } + }); + this.on('removeListener', event => { + if (event === 'complete' && --this.completeListeners === 0) { + this.hasActiveListeners = false; + } + }); + } + /** + * Cancels current polling api call and cancels the operation. + * + * @return {Promise} the promise of the OperationsClient#cancelOperation api + * request. + */ + cancel() { + if (this.currentCallPromise_) { + this.currentCallPromise_.cancel(); + } + const operationsClient = this.longrunningDescriptor.operationsClient; + const cancelRequest = new operationProtos.google.longrunning.CancelOperationRequest(); + cancelRequest.name = this.latestResponse.name; + return operationsClient.cancelOperation(cancelRequest); + } + getOperation(callback) { + // eslint-disable-next-line @typescript-eslint/no-this-alias + const self = this; + const operationsClient = this.longrunningDescriptor.operationsClient; + function promisifyResponse() { + if (!callback) { + return new Promise((resolve, reject) => { + if (self.latestResponse.error) { + const error = new googleError_1.GoogleError(self.latestResponse.error.message); + error.code = self.latestResponse.error.code; + reject(error); + } + else { + resolve([self.result, self.metadata, self.latestResponse]); + } + }); + } + return; + } + if (this.latestResponse.done) { + this._unpackResponse(this.latestResponse, callback); + return promisifyResponse(); + } + const request = new operationProtos.google.longrunning.GetOperationRequest(); + request.name = this.latestResponse.name; + this.currentCallPromise_ = operationsClient.getOperationInternal(request, this._callOptions); + const noCallbackPromise = this.currentCallPromise_.then(responses => { + self.latestResponse = responses[0]; + self._unpackResponse(responses[0], callback); + return promisifyResponse(); + }, (err) => { + if (callback) { + callback(err); + return; + } + return Promise.reject(err); + }); + if (!callback) { + return noCallbackPromise; + } + } + _unpackResponse(op, callback) { + const responseDecoder = this.longrunningDescriptor.responseDecoder; + const metadataDecoder = this.longrunningDescriptor.metadataDecoder; + let response; + let metadata; + if (op.done) { + if (op.result === 'error') { + const error = new googleError_1.GoogleError(op.error.message); + error.code = op.error.code; + this.error = error; + if (callback) { + callback(error); + } + return; + } + if (responseDecoder && op.response) { + this.response = op.response; + response = responseDecoder(op.response.value); + this.result = response; + this.done = true; + } + } + if (metadataDecoder && op.metadata) { + metadata = metadataDecoder(op.metadata.value); + this.metadata = metadata; + } + if (callback) { + callback(null, response, metadata, op); + } + } + /** + * Poll `getOperation` to check the operation's status. This runs a loop to + * ping using the backoff strategy specified at initialization. + * + * Note: This method is automatically called once a "complete" event handler + * is registered on the operation. + * + * @private + */ + startPolling_() { + // eslint-disable-next-line @typescript-eslint/no-this-alias + const self = this; + let now = new Date(); + const delayMult = this.backoffSettings.retryDelayMultiplier; + const maxDelay = this.backoffSettings.maxRetryDelayMillis; + let delay = this.backoffSettings.initialRetryDelayMillis; + let deadline = Infinity; + if (this.backoffSettings.totalTimeoutMillis) { + deadline = now.getTime() + this.backoffSettings.totalTimeoutMillis; + } + let previousMetadataBytes; + if (this.latestResponse.metadata) { + previousMetadataBytes = this.latestResponse.metadata.value; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + function emit(event, ...args) { + self.emit(event, ...args); + } + // Helper function to replace nodejs buffer's equals() + function arrayEquals(a, b) { + if (a.byteLength !== b.byteLength) { + return false; + } + for (let i = 0; i < a.byteLength; ++i) { + if (a[i] !== b[i]) + return false; + } + return true; + } + function retry() { + if (!self.hasActiveListeners) { + return; + } + if (now.getTime() >= deadline) { + const error = new googleError_1.GoogleError('Total timeout exceeded before any response was received'); + error.code = status_1.Status.DEADLINE_EXCEEDED; + setImmediate(emit, 'error', error); + return; + } + self.getOperation((err, result, metadata, rawResponse) => { + if (err) { + setImmediate(emit, 'error', err); + return; + } + if (!result) { + if (rawResponse.metadata && + (!previousMetadataBytes || + (rawResponse && + !arrayEquals(rawResponse.metadata.value, previousMetadataBytes)))) { + setImmediate(emit, 'progress', metadata, rawResponse); + previousMetadataBytes = rawResponse.metadata.value; + } + // special case: some APIs fail to set either result or error + // but set done = true (e.g. speech with silent file). + // Some APIs just use this for the normal completion + // (e.g. nodejs-contact-center-insights), so let's just return + // an empty response in this case. + if (rawResponse.done) { + setImmediate(emit, 'complete', {}, metadata, rawResponse); + return; + } + setTimeout(() => { + now = new Date(); + delay = Math.min(delay * delayMult, maxDelay); + retry(); + }, delay); + return; + } + setImmediate(emit, 'complete', result, metadata, rawResponse); + }); + } + retry(); + } + /** + * Wraps the `complete` and `error` events in a Promise. + * + * @return {promise} - Promise that resolves on operation completion and rejects + * on operation error. + */ + promise() { + return new Promise((resolve, reject) => { + this.on('error', reject).on('complete', (result, metadata, rawResponse) => { + resolve([result, metadata, rawResponse]); + }); + }); + } +} +exports.Operation = Operation; +/** + * Method used to create Operation objects. + * + * @constructor + * + * @param {google.longrunning.Operation} op - The operation to be wrapped. + * @param {LongRunningDescriptor} longrunningDescriptor - This defines the + * operations service client and unpacking mechanisms for the operation. + * @param {BackoffSettings} backoffSettings - The backoff settings used in + * in polling the operation. + * @param {CallOptions=} callOptions - CallOptions used in making get operation + * requests. + */ +function operation(op, longrunningDescriptor, backoffSettings, callOptions) { + return new Operation(op, longrunningDescriptor, backoffSettings, callOptions); +} +//# sourceMappingURL=longrunning.js.map + +/***/ }), + +/***/ 15996: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NormalApiCaller = void 0; +const call_1 = __nccwpck_require__(97425); +/** + * Creates an API caller for regular unary methods. + */ +class NormalApiCaller { + init(callback) { + if (callback) { + return new call_1.OngoingCall(callback); + } + return new call_1.OngoingCallPromise(); + } + wrap(func) { + return func; + } + call(apiCall, argument, settings, canceller) { + canceller.call(apiCall, argument); + } + fail(canceller, err) { + canceller.callback(err); + } + result(canceller) { + return canceller.promise; + } +} +exports.NormalApiCaller = NormalApiCaller; +//# sourceMappingURL=normalApiCaller.js.map + +/***/ }), + +/***/ 4356: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.retryable = retryable; +const status_1 = __nccwpck_require__(56123); +const googleError_1 = __nccwpck_require__(79110); +const timeout_1 = __nccwpck_require__(60269); +/** + * Creates a function equivalent to func, but that retries on certain + * exceptions. + * + * @private + * + * @param {GRPCCall} func - A function. + * @param {RetryOptions} retry - Configures the exceptions upon which the + * function eshould retry, and the parameters to the exponential backoff retry + * algorithm. + * @param {GRPCCallOtherArgs} otherArgs - the additional arguments to be passed to func. + * @return {SimpleCallbackFunction} A function that will retry. + */ +function retryable(func, retry, otherArgs, apiName) { + const delayMult = retry.backoffSettings.retryDelayMultiplier; + const maxDelay = retry.backoffSettings.maxRetryDelayMillis; + const timeoutMult = retry.backoffSettings.rpcTimeoutMultiplier; + const maxTimeout = retry.backoffSettings.maxRpcTimeoutMillis; + let delay = retry.backoffSettings.initialRetryDelayMillis; + let timeout = retry.backoffSettings.initialRpcTimeoutMillis; + /** + * Equivalent to ``func``, but retries upon transient failure. + * + * Retrying is done through an exponential backoff algorithm configured + * by the options in ``retry``. + * @param {RequestType} argument The request object. + * @param {APICallback} callback The callback. + * @return {GRPCCall} + */ + return (argument, callback) => { + let canceller; + let timeoutId; + let now = new Date(); + let deadline; + if (retry.backoffSettings.totalTimeoutMillis) { + deadline = now.getTime() + retry.backoffSettings.totalTimeoutMillis; + } + let retries = 0; + const maxRetries = retry.backoffSettings.maxRetries; + // TODO: define A/B testing values for retry behaviors. + /** Repeat the API call as long as necessary. */ + function repeat(err) { + timeoutId = null; + if (deadline && now.getTime() >= deadline) { + const error = new googleError_1.GoogleError(`Total timeout of API ${apiName} exceeded ${retry.backoffSettings.totalTimeoutMillis} milliseconds ${err ? `retrying error ${err} ` : ''} before any response was received.`); + error.code = status_1.Status.DEADLINE_EXCEEDED; + callback(error); + return; + } + if (retries && retries >= maxRetries) { + const error = new googleError_1.GoogleError('Exceeded maximum number of retries ' + + (err ? `retrying error ${err} ` : '') + + 'before any response was received'); + error.code = status_1.Status.DEADLINE_EXCEEDED; + callback(error); + return; + } + retries++; + let lastError = err; + const toCall = (0, timeout_1.addTimeoutArg)(func, timeout, otherArgs); + canceller = toCall(argument, (err, response, next, rawResponse) => { + // Save only the error before deadline exceeded + if (err && err.code !== 4) { + lastError = err; + } + if (!err) { + callback(null, response, next, rawResponse); + return; + } + canceller = null; + if (retry.retryCodes.length > 0 && + retry.retryCodes.indexOf(err.code) < 0) { + err.note = + 'Exception occurred in retry method that was ' + + 'not classified as transient'; + callback(err); + } + else { + const toSleep = Math.random() * delay; + timeoutId = setTimeout(() => { + now = new Date(); + delay = Math.min(delay * delayMult, maxDelay); + const timeoutCal = timeout && timeoutMult ? timeout * timeoutMult : 0; + const rpcTimeout = maxTimeout ? maxTimeout : 0; + const newDeadline = deadline ? deadline - now.getTime() : 0; + timeout = Math.min(timeoutCal, rpcTimeout, newDeadline); + repeat(lastError); + }, toSleep); + } + }); + if (canceller instanceof Promise) { + canceller.catch(err => { + callback(new googleError_1.GoogleError(err)); + }); + } + } + if (maxRetries && deadline) { + const error = new googleError_1.GoogleError('Cannot set both totalTimeoutMillis and maxRetries ' + + 'in backoffSettings.'); + error.code = status_1.Status.INVALID_ARGUMENT; + callback(error); + } + else { + repeat(); + } + return { + cancel() { + if (timeoutId) { + clearTimeout(timeoutId); + } + if (canceller) { + canceller.cancel(); + } + else { + const error = new googleError_1.GoogleError('cancelled'); + error.code = status_1.Status.CANCELLED; + callback(error); + } + }, + }; + }; +} +//# sourceMappingURL=retries.js.map + +/***/ }), + +/***/ 60269: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.addTimeoutArg = addTimeoutArg; +/** + * Updates func so that it gets called with the timeout as its final arg. + * + * This converts a function, func, into another function with updated deadline. + * + * @private + * + * @param {GRPCCall} func - a function to be updated. + * @param {number} timeout - to be added to the original function as it final + * positional arg. + * @param {Object} otherArgs - the additional arguments to be passed to func. + * @param {Object=} abTests - the A/B testing key/value pairs. + * @return {function(Object, APICallback)} + * the function with other arguments and the timeout. + */ +function addTimeoutArg(func, timeout, otherArgs, abTests) { + // TODO: this assumes the other arguments consist of metadata and options, + // which is specific to gRPC calls. Remove the hidden dependency on gRPC. + return (argument, callback) => { + const now = new Date(); + const options = otherArgs.options || {}; + options.deadline = new Date(now.getTime() + timeout); + const metadata = otherArgs.metadataBuilder + ? otherArgs.metadataBuilder(abTests, otherArgs.headers || {}) + : null; + return func(argument, metadata, options, callback); + }; +} +//# sourceMappingURL=timeout.js.map + +/***/ }), + +/***/ 46526: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OperationsClientBuilder = exports.OperationsClient = exports.ALL_SCOPES = exports.SERVICE_ADDRESS = void 0; +const createApiCall_1 = __nccwpck_require__(33553); +const descriptor_1 = __nccwpck_require__(61700); +const gax = __nccwpck_require__(23185); +const configData = __nccwpck_require__(25365); +const operationProtoJson = __nccwpck_require__(9961); +const transcoding_1 = __nccwpck_require__(14965); +exports.SERVICE_ADDRESS = 'longrunning.googleapis.com'; +const version = (__nccwpck_require__(57564).version); +const DEFAULT_SERVICE_PORT = 443; +const CODE_GEN_NAME_VERSION = 'gapic/0.7.1'; +/** + * The scopes needed to make gRPC calls to all of the methods defined in + * this service. + */ +exports.ALL_SCOPES = []; +/** + * Manages long-running operations with an API service. + * + * When an API method normally takes long time to complete, it can be designed + * to return {@link Operation} to the client, and the client can use this + * interface to receive the real response asynchronously by polling the + * operation resource, or pass the operation resource to another API (such as + * Google Cloud Pub/Sub API) to receive the response. Any API service that + * returns long-running operations should implement the `Operations` interface + * so developers can have a consistent client experience. + * + * This will be created through a builder function which can be obtained by the + * module. See the following example of how to initialize the module and how to + * access to the builder. + * @see {@link operationsClient} + * + * @class + */ +class OperationsClient { + constructor(gaxGrpc, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + operationsProtos, options) { + const opts = Object.assign({ + servicePath: exports.SERVICE_ADDRESS, + port: DEFAULT_SERVICE_PORT, + clientConfig: {}, + }, options); + const googleApiClient = ['gl-node/' + process.versions.node]; + if (opts.libName && opts.libVersion) { + googleApiClient.push(opts.libName + '/' + opts.libVersion); + } + googleApiClient.push(CODE_GEN_NAME_VERSION, 'gax/' + version); + if (opts.fallback) { + googleApiClient.push('gl-web/' + version); + } + else { + googleApiClient.push('grpc/' + gaxGrpc.grpcVersion); + } + const defaults = gaxGrpc.constructSettings('google.longrunning.Operations', configData, opts.clientConfig || {}, { 'x-goog-api-client': googleApiClient.join(' ') }); + this.auth = gaxGrpc.auth; + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + this.descriptor = { + listOperations: new descriptor_1.PageDescriptor('pageToken', 'nextPageToken', 'operations'), + }; + // Put together the "service stub" for + // google.longrunning.Operations. + this.operationsStub = gaxGrpc.createStub(opts.fallback + ? operationsProtos.lookupService('google.longrunning.Operations') + : operationsProtos.google.longrunning.Operations, opts); + const operationsStubMethods = [ + 'getOperation', + 'listOperations', + 'cancelOperation', + 'deleteOperation', + ]; + for (const methodName of operationsStubMethods) { + const innerCallPromise = this.operationsStub.then(stub => (...args) => { + const func = stub[methodName]; + return func.apply(stub, args); + }, err => () => { + throw err; + }); + this.innerApiCalls[methodName] = (0, createApiCall_1.createApiCall)(innerCallPromise, defaults[methodName], this.descriptor[methodName]); + } + } + /** Closes this operations client. */ + close() { + this.operationsStub.then(stub => stub.close()); + } + getProjectId(callback) { + if (this.auth && 'getProjectId' in this.auth) { + return this.auth.getProjectId(callback); + } + if (callback) { + callback(new Error('Cannot determine project ID.')); + } + else { + return Promise.reject('Cannot determine project ID.'); + } + } + // Service calls + getOperationInternal(request, options, callback) { + request = request || {}; + options = options || {}; + return this.innerApiCalls.getOperation(request, options, callback); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + */ + getOperation(request, optionsOrCallback, callback) { + let options; + if (optionsOrCallback instanceof Function && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + request = request || {}; + options = options || {}; + return this.innerApiCalls.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding below allows API services to override the binding + * to use different resource name schemes. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Array, ?Object, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is Array of + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * + * When autoPaginate: false is specified through options, it contains the + * result in a single response. If the response indicates the next page + * exists, the third parameter is set to be used for the next request object. + * The fourth parameter keeps the raw response object of an object + * representing [google.longrunning.ListOperationsResponse]{@link + * external:"google.longrunning.ListOperationsResponse"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is Array of + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * + * When autoPaginate: false is specified through options, the array has + * three elements. The first element is Array of + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"} in a single response. The second + * element is the next request object if the response indicates the next page + * exists, or null. The third element is an object representing + * [google.longrunning.ListOperationsResponse]{@link + * external:"google.longrunning.ListOperationsResponse"}. + * + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * + * const client = longrunning.operationsClient(); + * const request = { + * name: '', + * filter: '' + * }; + * // Iterate over all elements. + * const [resources] = await client.listOperations(request); + * for (const resource of resources) { + * console.log(resources); + * } + * + * // Or obtain the paged response. + * const options = {autoPaginate: false}; + * let nextRequest = request; + * while(nextRequest) { + * const response = await client.listOperations(nextRequest, options); + * const resources = response[0]; + * nextRequest = response[1]; + * const rawResponse = response[2]; + * for (const resource of resources) { + * // doThingsWith(resource); + * } + * }; + */ + listOperations(request, optionsOrCallback, callback) { + let options; + if (optionsOrCallback instanceof Function && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + request = request || {}; + options = options || {}; + return this.innerApiCalls.listOperations(request, options, callback); + } + /** + * Equivalent to {@link listOperations}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listOperations} continuously + * and invokes the callback registered for 'data' event for each element in + * the responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @return {Stream} - An object stream which emits an object representing [google.longrunning.Operation]{@link external:"google.longrunning.Operation"} on 'data' event. + * + * @example + * + * const client = longrunning.operationsClient(); + * const request = { + * name: '', + * filter: '' + * }; + * client.listOperationsStream(request) + * .on('data', element => { + * // doThingsWith(element) + * }) + * .on('error', err => { + * console.error(err); + * }); + */ + listOperationsStream(request, options) { + const callSettings = new gax.CallSettings(options); + return this.descriptor.listOperations.createStream(this.innerApiCalls.listOperations, request, callSettings); + } + /** + * Equivalent to {@link listOperations}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listOperationsAsync(request, options) { + request = request || {}; + options = options || {}; + const callSettings = new gax.CallSettings(options); + return this.descriptor.listOperations.asyncIterate(this.innerApiCalls.listOperations, request, callSettings); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + */ + cancelOperation(request, optionsOrCallback, callback) { + let options; + if (optionsOrCallback instanceof Function && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + request = request || {}; + options = options || {}; + return this.innerApiCalls.cancelOperation(request, options, callback); + } + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + */ + deleteOperation(request, optionsOrCallback, callback) { + let options; + if (optionsOrCallback instanceof Function && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + request = request || {}; + options = options || {}; + return this.innerApiCalls.deleteOperation(request, options, callback); + } +} +exports.OperationsClient = OperationsClient; +class OperationsClientBuilder { + /** + * Builds a new Operations Client + * @param gaxGrpc {GrpcClient} + */ + constructor(gaxGrpc, protoJson) { + if (protoJson && gaxGrpc.httpRules) { + // overwrite the http rules if provide in service yaml. + (0, transcoding_1.overrideHttpRules)(gaxGrpc.httpRules, protoJson); + } + const operationsProtos = protoJson !== null && protoJson !== void 0 ? protoJson : gaxGrpc.loadProtoJSON(operationProtoJson); + /** + * Build a new instance of {@link OperationsClient}. + * + * @param {Object=} opts - The optional parameters. + * @param {String=} opts.servicePath - Domain name of the API remote host. + * @param {number=} opts.port - The port on which to connect to the remote host. + * @param {grpc.ClientCredentials=} opts.sslCreds - A ClientCredentials for use with an SSL-enabled channel. + * @param {Object=} opts.clientConfig - The customized config to build the call settings. See {@link gax.constructSettings} for the format. + */ + this.operationsClient = opts => { + if (gaxGrpc.fallback) { + opts.fallback = gaxGrpc.fallback; + } + return new OperationsClient(gaxGrpc, operationsProtos, opts); + }; + Object.assign(this.operationsClient, OperationsClient); + } +} +exports.OperationsClientBuilder = OperationsClientBuilder; +//# sourceMappingURL=operationsClient.js.map + +/***/ }), + +/***/ 70765: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PageDescriptor = void 0; +const stream_1 = __nccwpck_require__(2203); +const normalApiCaller_1 = __nccwpck_require__(15996); +const warnings_1 = __nccwpck_require__(30100); +const pagedApiCaller_1 = __nccwpck_require__(41275); +const maxAttemptsEmptyResponse = 10; +/** + * A descriptor for methods that support pagination. + */ +class PageDescriptor { + constructor(requestPageTokenField, responsePageTokenField, resourceField) { + this.requestPageTokenField = requestPageTokenField; + this.responsePageTokenField = responsePageTokenField; + this.resourceField = resourceField; + } + /** + * Creates a new object Stream which emits the resource on 'data' event. + */ + createStream(apiCall, request, options) { + if (options === null || options === void 0 ? void 0 : options.autoPaginate) { + (0, warnings_1.warn)('autoPaginate true', 'Autopaginate will always be set to false in stream paging methods. See more info at https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure paging calls', 'AutopaginateTrueWarning'); + } + const stream = new stream_1.PassThrough({ objectMode: true }); + options = Object.assign({}, options, { autoPaginate: false }); + const maxResults = 'maxResults' in options ? options.maxResults : -1; + let pushCount = 0; + let started = false; + function callback(err, resources, next, apiResp) { + if (err) { + stream.emit('error', err); + return; + } + // emit full api response with every page. + stream.emit('response', apiResp); + for (let i = 0; i < resources.length; ++i) { + // TODO: rewrite without accessing stream internals + if (stream + ._readableState.ended) { + return; + } + if (resources[i] === null) { + continue; + } + stream.push(resources[i]); + pushCount++; + if (pushCount === maxResults) { + stream.end(); + } + } + // TODO: rewrite without accessing stream internals + if (stream._readableState + .ended) { + return; + } + if (!next) { + stream.end(); + return; + } + // When pageToken is specified in the original options, it will overwrite + // the page token field in the next request. Therefore it must be cleared. + if ('pageToken' in options) { + delete options.pageToken; + } + if (stream.isPaused()) { + request = next; + started = false; + } + else { + setImmediate(apiCall, next, options, callback); + } + } + stream.on('resume', () => { + if (!started) { + started = true; + apiCall(request, options, callback); + } + }); + return stream; + } + /** + * Create an async iterable which can be recursively called for data on-demand. + */ + asyncIterate(apiCall, request, options) { + if (options === null || options === void 0 ? void 0 : options.autoPaginate) { + (0, warnings_1.warn)('autoPaginate true', 'Autopaginate will always be set to false in Async paging methods. See more info at https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure paging calls', 'AutopaginateTrueWarning'); + } + options = Object.assign({}, options, { autoPaginate: false }); + const iterable = this.createIterator(apiCall, request, options); + return iterable; + } + createIterator(apiCall, request, options) { + const asyncIterable = { + [Symbol.asyncIterator]() { + let nextPageRequest = request; + const cache = []; + return { + async next() { + if (cache.length > 0) { + return Promise.resolve({ + done: false, + value: cache.shift(), + }); + } + let attempts = 0; + while (cache.length === 0 && nextPageRequest) { + let result; + [result, nextPageRequest] = (await apiCall(nextPageRequest, options)); + // For pagination response with protobuf map type, use tuple as representation. + if (result && !Array.isArray(result)) { + for (const [key, value] of Object.entries(result)) { + cache.push([key, value]); + } + } + else { + cache.push(...result); + } + if (cache.length === 0) { + ++attempts; + if (attempts > maxAttemptsEmptyResponse) { + break; + } + } + } + if (cache.length === 0) { + return Promise.resolve({ done: true, value: undefined }); + } + return Promise.resolve({ done: false, value: cache.shift() }); + }, + }; + }, + }; + return asyncIterable; + } + getApiCaller(settings) { + if (!settings.autoPaginate) { + return new normalApiCaller_1.NormalApiCaller(); + } + return new pagedApiCaller_1.PagedApiCaller(this); + } +} +exports.PageDescriptor = PageDescriptor; +//# sourceMappingURL=pageDescriptor.js.map + +/***/ }), + +/***/ 41275: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PagedApiCaller = void 0; +const call_1 = __nccwpck_require__(97425); +const googleError_1 = __nccwpck_require__(79110); +const resourceCollector_1 = __nccwpck_require__(30136); +const warnings_1 = __nccwpck_require__(30100); +class PagedApiCaller { + /** + * Creates an API caller that returns a stream to performs page-streaming. + * + * @private + * @constructor + * @param {PageDescriptor} pageDescriptor - indicates the structure + * of page streaming to be performed. + */ + constructor(pageDescriptor) { + this.pageDescriptor = pageDescriptor; + } + /** + * This function translates between regular gRPC calls (that accepts a request and returns a response, + * and does not know anything about pages and page tokens) and the users' callback (that expects + * to see resources from one page, a request to get the next page, and the raw response from the server). + * + * It generates a function that can be passed as a callback function to a gRPC call, will understand + * pagination-specific fields in the response, and call the users' callback after having those fields + * parsed. + * + * @param request Request object. It needs to be passed to all subsequent next page requests + * (the main content of the request object stays unchanged, only the next page token changes) + * @param callback The user's callback that expects the page content, next page request, and raw response. + */ + generateParseResponseCallback(request, callback) { + const resourceFieldName = this.pageDescriptor.resourceField; + const responsePageTokenFieldName = this.pageDescriptor.responsePageTokenField; + const requestPageTokenFieldName = this.pageDescriptor.requestPageTokenField; + return (err, response) => { + if (err) { + callback(err); + return; + } + if (!request) { + callback(new googleError_1.GoogleError('Undefined request in pagination method callback.')); + return; + } + if (!response) { + callback(new googleError_1.GoogleError('Undefined response in pagination method callback.')); + return; + } + const resources = response[resourceFieldName] || []; + const pageToken = response[responsePageTokenFieldName]; + let nextPageRequest = null; + if (pageToken) { + nextPageRequest = Object.assign({}, request); + nextPageRequest[requestPageTokenFieldName] = pageToken; + } + callback(err, resources, nextPageRequest, response); + }; + } + /** + * Adds a special ability to understand pagination-specific fields to the existing gRPC call. + * The original gRPC call just calls callback(err, result). + * The wrapped one will call callback(err, resources, nextPageRequest, rawResponse) instead. + * + * @param func gRPC call (normally, a service stub call). The gRPC call is expected to accept four parameters: + * request, metadata, call options, and callback. + */ + wrap(func) { + // eslint-disable-next-line @typescript-eslint/no-this-alias + const self = this; + return function wrappedCall(argument, metadata, options, callback) { + return func(argument, metadata, options, self.generateParseResponseCallback(argument, callback)); + }; + } + /** + * Makes it possible to use both callback-based and promise-based calls. + * Returns an OngoingCall or OngoingCallPromise object. + * Regardless of which one is returned, it always has a `.callback` to call. + * + * @param settings Call settings. Can only be used to replace Promise with another promise implementation. + * @param [callback] Callback to be called, if any. + */ + init(callback) { + if (callback) { + return new call_1.OngoingCall(callback); + } + return new call_1.OngoingCallPromise(); + } + /** + * Implements auto-pagination logic. + * + * @param apiCall A function that performs gRPC request and calls its callback with a response or an error. + * It's supposed to be a gRPC service stub function wrapped into several layers of wrappers that make it + * accept just two parameters: (request, callback). + * @param request A request object that came from the user. + * @param settings Call settings. We are interested in `maxResults` and `autoPaginate` (they are optional). + * @param ongoingCall An instance of OngoingCall or OngoingCallPromise that can be used for call cancellation, + * and is used to return results to the user. + */ + call(apiCall, request, settings, ongoingCall) { + request = Object.assign({}, request); + if (!settings.autoPaginate) { + // they don't want auto-pagination this time - okay, just call once + ongoingCall.call(apiCall, request); + return; + } + if (request.pageSize && settings.autoPaginate) { + (0, warnings_1.warn)('autoPaginate true', 'Providing a pageSize without setting autoPaginate to false will still return all results. See https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure manual paging', 'AutopaginateTrueWarning'); + } + const maxResults = settings.maxResults || -1; + const resourceCollector = new resourceCollector_1.ResourceCollector(apiCall, maxResults); + resourceCollector.processAllPages(request).then(resources => ongoingCall.callback(null, resources), err => ongoingCall.callback(err)); + } + fail(ongoingCall, err) { + ongoingCall.callback(err); + } + result(ongoingCall) { + return ongoingCall.promise; + } +} +exports.PagedApiCaller = PagedApiCaller; +//# sourceMappingURL=pagedApiCaller.js.map + +/***/ }), + +/***/ 30136: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResourceCollector = void 0; +/** + * ResourceCollector class implements asynchronous logic of calling the API call that supports pagination, + * page by page, collecting all resources (up to `maxResults`) in the array. + * + * Usage: + * const resourceCollector = new ResourceCollector(apiCall, maxResults); // -1 for unlimited + * resourceCollector.processAllPages(request).then(resources => ...); + */ +class ResourceCollector { + constructor(apiCall, maxResults = -1) { + this.apiCall = apiCall; + this.resources = []; + this.maxResults = maxResults; + } + callback(err, resources, nextPageRequest) { + if (err) { + // Something went wrong with this request - failing everything + this.rejectCallback(err); + return; + } + // Process one page + for (const resource of resources) { + this.resources.push(resource); + if (this.resources.length === this.maxResults) { + nextPageRequest = null; + break; + } + } + // All done? + if (!nextPageRequest) { + this.resolveCallback(this.resources); + return; + } + // Schedule the next call + const callback = (...args) => this.callback(...args); + setImmediate(this.apiCall, nextPageRequest, callback); + } + processAllPages(firstRequest) { + return new Promise((resolve, reject) => { + this.resolveCallback = resolve; + this.rejectCallback = reject; + // Schedule the first call + const callback = (...args) => this.callback(...args); + setImmediate(this.apiCall, firstRequest, callback); + }); + } +} +exports.ResourceCollector = ResourceCollector; +//# sourceMappingURL=resourceCollector.js.map + +/***/ }), + +/***/ 94460: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PathTemplate = void 0; +class PathTemplate { + /** + * @param {String} data the of the template + * + * @constructor + */ + constructor(data) { + this.bindings = {}; + this.data = data; + this.segments = this.parsePathTemplate(data); + this.size = this.segments.length; + } + /** + * Matches a fully-qualified path template string. + * + * @param {String} path a fully-qualified path template string + * @return {Object} contains const names matched to binding values + * @throws {TypeError} if path can't be matched to this template + */ + match(path) { + let pathSegments = path.split('/'); + const bindings = {}; + if (pathSegments.length !== this.segments.length) { + // if the path contains a wildcard, then the length may differ by 1. + if (!this.data.includes('**')) { + throw new TypeError(`This path ${path} does not match path template ${this.data}, the number of parameters is not same.`); + } + else if (pathSegments.length !== this.segments.length + 1) { + throw new TypeError(`This path ${path} does not match path template ${this.data}, the number of parameters is not same with one wildcard.`); + } + } + for (let index = 0; index < this.segments.length && pathSegments.length > 0; index++) { + if (this.segments[index] !== pathSegments[0]) { + if (!this.segments[index].includes('*')) { + throw new TypeError(`segment does not match, ${this.segments[index]} and ${pathSegments[index]}.`); + } + else { + let segment = this.segments[index]; + const matches = segment.match(/\{[$0-9a-zA-Z_]+=.*?\}/g); + if (!matches) { + throw new Error(`Error processing path template segment ${segment}`); + } + const variables = matches.map(str => str.replace(/^\{/, '').replace(/=.*/, '')); + if (segment.includes('**')) { + bindings[variables[0]] = pathSegments[0] + '/' + pathSegments[1]; + pathSegments = pathSegments.slice(2); + } + else { + // atomic resource + if (variables.length === 1) { + bindings[variables[0]] = pathSegments[0]; + } + else { + // non-slash resource + // segment: {blurb_id=*}.{legacy_user=*} to match pathSegments: ['bar.user2'] + // split the match pathSegments[0] -> value: ['bar', 'user2'] + // compare the length of two arrays, and compare array items + const value = pathSegments[0].split(/[-_.~]/); + if (value.length !== variables.length) { + throw new Error(`segment ${segment} does not match ${pathSegments[0]}`); + } + for (const v of variables) { + bindings[v] = value[0]; + segment = segment.replace(`{${v}=*}`, `${value[0]}`); + value.shift(); + } + // segment: {blurb_id=*}.{legacy_user=*} matching pathSegments: ['bar~user2'] should fail + if (segment !== pathSegments[0]) { + throw new TypeError(`non slash resource pattern ${this.segments[index]} and ${pathSegments[0]} should have same separator`); + } + } + pathSegments.shift(); + } + } + } + else { + pathSegments.shift(); + } + } + return bindings; + } + /** + * Renders a path template using the provided bindings. + * + * @param {Object} bindings a mapping of const names to binding strings + * @return {String} a rendered representation of the path template + * @throws {TypeError} if a key is missing, or if a sub-template cannot be + * parsed + */ + render(bindings) { + if (Object.keys(bindings).length !== Object.keys(this.bindings).length) { + throw new TypeError(`The number of variables ${Object.keys(bindings).length} does not match the number of needed variables ${Object.keys(this.bindings).length}`); + } + let path = this.inspect(); + for (const key of Object.keys(bindings)) { + const b = bindings[key].toString(); + if (!this.bindings[key]) { + throw new TypeError(`render fails for not matching ${bindings[key]}`); + } + const variable = this.bindings[key]; + if (variable === '*') { + if (!b.match(/[^/{}]+/)) { + throw new TypeError(`render fails for not matching ${b}`); + } + path = path.replace(`{${key}=*}`, `${b}`); + } + else if (variable === '**') { + if (!b.match(/[^{}]+/)) { + throw new TypeError(`render fails for not matching ${b}`); + } + path = path.replace(`{${key}=**}`, `${b}`); + } + } + return path; + } + /** + * Renders the path template. + * + * @return {string} contains const names matched to binding values + */ + inspect() { + return this.segments.join('/'); + } + /** + * Parse the path template. + * + * @return {string[]} return segments of the input path. + * For example: 'buckets/{hello}'' will give back ['buckets', {hello=*}] + */ + parsePathTemplate(data) { + const pathSegments = splitPathTemplate(data); + let index = 0; + let wildCardCount = 0; + const segments = []; + let matches; + pathSegments.forEach(segment => { + // * or ** -> segments.push('{$0=*}'); + // -> bindings['$0'] = '*' + if (segment === '*' || segment === '**') { + this.bindings[`$${index}`] = segment; + segments.push(`{$${index}=${segment}}`); + index = index + 1; + if (segment === '**') { + ++wildCardCount; + } + } + else if ((matches = segment.match(/\{[0-9a-zA-Z-.~_]+(?:=.*?)?\}/g))) { + for (const subsegment of matches) { + const pairMatch = subsegment.match(/^\{([0-9a-zA-Z-.~_]+)(?:=(.*?))?\}$/); + if (!pairMatch) { + throw new Error(`Cannot process path template segment ${subsegment}`); + } + const key = pairMatch[1]; + let value = pairMatch[2]; + if (!value) { + value = '*'; + segment = segment.replace(key, key + '=*'); + this.bindings[key] = value; + } + else if (value === '*') { + this.bindings[key] = value; + } + else if (value === '**') { + ++wildCardCount; + this.bindings[key] = value; + } + } + segments.push(segment); + } + else if (segment.match(/[0-9a-zA-Z-.~_]+/)) { + segments.push(segment); + } + }); + if (wildCardCount > 1) { + throw new TypeError('Can not have more than one wildcard.'); + } + return segments; + } +} +exports.PathTemplate = PathTemplate; +/** + * Split the path template by `/`. + * It can not be simply splitted by `/` because there might be `/` in the segments. + * For example: 'a/b/{a=hello/world}' we do not want to break the brackets pair + * so above path will be splitted as ['a', 'b', '{a=hello/world}'] + */ +function splitPathTemplate(data) { + let left = 0; + let right = 0; + let bracketCount = 0; + const segments = []; + while (right >= left && right < data.length) { + if (data.charAt(right) === '{') { + bracketCount = bracketCount + 1; + } + else if (data.charAt(right) === '}') { + bracketCount = bracketCount - 1; + } + else if (data.charAt(right) === '/') { + if (right === data.length - 1) { + throw new TypeError('Invalid path, it can not be ended by /'); + } + if (bracketCount === 0) { + // complete bracket, to avoid the case a/b/**/*/{a=hello/world} + segments.push(data.substring(left, right)); + left = right + 1; + } + } + if (right === data.length - 1) { + if (bracketCount !== 0) { + throw new TypeError('Brackets are invalid.'); + } + segments.push(data.substring(left)); + } + right = right + 1; + } + return segments; +} +//# sourceMappingURL=pathTemplate.js.map + +/***/ }), + +/***/ 32766: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + +/** + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +__webpack_unused_export__ = ({ value: true }); +exports.protobufMinimal = void 0; +// This file is here to re-export protobuf.js so that the proto.js files +// produced by tools/compileProtos.ts did not depend on protobuf.js +// directly. +// Usage: +// const {protobufMinimal} = require('google-gax/build/src/protobuf'); +exports.protobufMinimal = __nccwpck_require__(38590); +//# sourceMappingURL=protobuf.js.map + +/***/ }), + +/***/ 67298: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromParams = fromParams; +const querystring = __nccwpck_require__(83480); +/** + * Helpers for constructing routing headers. + * + * These headers are used by Google infrastructure to determine how to route + * requests, especially for services that are regional. + * + * Generally, these headers are specified as gRPC metadata. + */ +/** + * Constructs the routing header from the given params + * + * @param {Object} params - the request header parameters. + * @return {string} the routing header value. + */ +function fromParams(params) { + return querystring.stringify(params); +} +//# sourceMappingURL=routingHeader.js.map + +/***/ }), + +/***/ 56123: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpCodeToRpcCodeMap = exports.Status = void 0; +exports.rpcCodeFromHttpStatusCode = rpcCodeFromHttpStatusCode; +// The following is a copy of the Status enum defined in @grpc/grpc-js, +// src/constants.ts. We need to use some of these statuses here and there, +// but we don't want to include the whole @grpc/grpc-js into the browser +// bundle just to have this small enum. +var Status; +(function (Status) { + Status[Status["OK"] = 0] = "OK"; + Status[Status["CANCELLED"] = 1] = "CANCELLED"; + Status[Status["UNKNOWN"] = 2] = "UNKNOWN"; + Status[Status["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT"; + Status[Status["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED"; + Status[Status["NOT_FOUND"] = 5] = "NOT_FOUND"; + Status[Status["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS"; + Status[Status["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED"; + Status[Status["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED"; + Status[Status["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION"; + Status[Status["ABORTED"] = 10] = "ABORTED"; + Status[Status["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE"; + Status[Status["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED"; + Status[Status["INTERNAL"] = 13] = "INTERNAL"; + Status[Status["UNAVAILABLE"] = 14] = "UNAVAILABLE"; + Status[Status["DATA_LOSS"] = 15] = "DATA_LOSS"; + Status[Status["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED"; +})(Status || (exports.Status = Status = {})); +exports.HttpCodeToRpcCodeMap = new Map([ + [400, Status.INVALID_ARGUMENT], + [401, Status.UNAUTHENTICATED], + [403, Status.PERMISSION_DENIED], + [404, Status.NOT_FOUND], + [409, Status.ABORTED], + [416, Status.OUT_OF_RANGE], + [429, Status.RESOURCE_EXHAUSTED], + [499, Status.CANCELLED], + [501, Status.UNIMPLEMENTED], + [503, Status.UNAVAILABLE], + [504, Status.DEADLINE_EXCEEDED], +]); +// Maps HTTP status codes to gRPC status codes above. +function rpcCodeFromHttpStatusCode(httpStatusCode) { + if (exports.HttpCodeToRpcCodeMap.has(httpStatusCode)) { + return exports.HttpCodeToRpcCodeMap.get(httpStatusCode); + } + // All 2xx + if (httpStatusCode >= 200 && httpStatusCode < 300) { + return Status.OK; + } + // All other 4xx + if (httpStatusCode >= 400 && httpStatusCode < 500) { + return Status.FAILED_PRECONDITION; + } + // All other 5xx + if (httpStatusCode >= 500 && httpStatusCode < 600) { + return Status.INTERNAL; + } + // Everything else + return Status.UNKNOWN; +} +//# sourceMappingURL=status.js.map + +/***/ }), + +/***/ 3680: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StreamArrayParser = void 0; +const abort_controller_1 = __nccwpck_require__(45316); +const stream_1 = __nccwpck_require__(2203); +const fallbackRest_1 = __nccwpck_require__(89169); +const featureDetection_1 = __nccwpck_require__(80876); +class StreamArrayParser extends stream_1.Transform { + /** + * StreamArrayParser processes array of valid JSON objects in random chunks + * through readable stream, and produces a stream of plain Javascript objects + * where it converted from the corresponding protobuf message instance. + * + * The default JSON parser decodes the input stream under the + * following rules: + * 1. The stream represents a valid JSON array (must start with a "[" and + * close with the corresponding "]"). Each element of this array is assumed to + * be either an array or an object, and will be decoded as a JS object and + * delivered. + * 2. All JSON elements in the buffer will be decoded and delivered in a + * stream. + * + * @private + * @constructor + * @param {protobuf.Method} rpc - the protobuf method produce array of JSON. + * @param {Object} options - the options pass to Transform Stream. See more + * details + * https://nodejs.org/api/stream.html#stream_new_stream_transform_options. + */ + constructor(rpc, options) { + super(Object.assign({}, options, { readableObjectMode: true })); + this._done = false; + this._prevBlock = Buffer.from(''); + this._isInString = false; + this._isSkipped = false; + this._level = 0; + this.rpc = rpc; + this.cancelController = (0, featureDetection_1.hasAbortController)() + ? new AbortController() + : new abort_controller_1.AbortController(); + this.cancelSignal = this.cancelController.signal; + this.cancelRequested = false; + } + _transform(chunk, _, callback) { + let objectStart = 0; + let curIndex = 0; + if (this._level === 0 && curIndex === 0) { + if (String.fromCharCode(chunk[0]) !== '[') { + this.emit('error', new Error(`Internal Error: API service stream data must start with a '[' and close with the corresponding ']', but it start with ${String.fromCharCode(chunk[0])}`)); + } + curIndex++; + this._level++; + } + while (curIndex < chunk.length) { + const curValue = String.fromCharCode(chunk[curIndex]); + if (!this._isSkipped) { + switch (curValue) { + case '{': + // Check if it's in string, we ignore the curly brace in string. + // Otherwise the object level++. + if (!this._isInString) { + this._level++; + } + if (!this._isInString && this._level === 2) { + objectStart = curIndex; + } + break; + case '"': + // Flip the string status + this._isInString = !this._isInString; + break; + case '}': + // check if it's in string + // if true, do nothing + // if false and level = 0, push data + if (!this._isInString) { + this._level--; + } + if (!this._isInString && this._level === 1) { + // find a object + const objBuff = Buffer.concat([ + this._prevBlock, + chunk.slice(objectStart, curIndex + 1), + ]); + try { + // HTTP response.ok is true. + const msgObj = (0, fallbackRest_1.decodeResponse)(this.rpc, true, objBuff); + this.push(msgObj); + } + catch (err) { + this.emit('error', err); + } + objectStart = curIndex + 1; + this._prevBlock = Buffer.from(''); + } + break; + case ']': + if (!this._isInString && this._level === 1) { + this._done = true; + this.push(null); + } + break; + case '\\': + // Escaping escape character. + this._isSkipped = true; + break; + default: + break; + } + } + else { + this._isSkipped = false; + } + curIndex++; + } + if (this._level > 1) { + this._prevBlock = Buffer.concat([ + this._prevBlock, + chunk.slice(objectStart, curIndex), + ]); + } + callback(); + } + _flush(callback) { + callback(); + } + cancel() { + this._done = true; + this.cancelRequested = true; + this.cancelController.abort(); + this.end(); + } +} +exports.StreamArrayParser = StreamArrayParser; +//# sourceMappingURL=streamArrayParser.js.map + +/***/ }), + +/***/ 70230: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StreamDescriptor = void 0; +const streamingApiCaller_1 = __nccwpck_require__(33896); +/** + * A descriptor for streaming calls. + */ +class StreamDescriptor { + constructor(streamType, rest, gaxStreamingRetries) { + this.type = streamType; + this.streaming = true; + this.rest = rest; + this.gaxStreamingRetries = gaxStreamingRetries; + } + getApiCaller() { + // Right now retrying does not work with gRPC-streaming, because retryable + // assumes an API call returns an event emitter while gRPC-streaming methods + // return Stream. + return new streamingApiCaller_1.StreamingApiCaller(this); + } +} +exports.StreamDescriptor = StreamDescriptor; +//# sourceMappingURL=streamDescriptor.js.map + +/***/ }), + +/***/ 63123: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StreamProxy = exports.StreamType = void 0; +const gax_1 = __nccwpck_require__(23185); +const googleError_1 = __nccwpck_require__(79110); +const status_1 = __nccwpck_require__(56123); +const stream_1 = __nccwpck_require__(2203); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const duplexify = __nccwpck_require__(32443); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const retryRequest = __nccwpck_require__(42313); +/** + * The type of gRPC streaming. + * @enum {number} + */ +var StreamType; +(function (StreamType) { + /** Client sends a single request, server streams responses. */ + StreamType[StreamType["SERVER_STREAMING"] = 1] = "SERVER_STREAMING"; + /** Client streams requests, server returns a single response. */ + StreamType[StreamType["CLIENT_STREAMING"] = 2] = "CLIENT_STREAMING"; + /** Both client and server stream objects. */ + StreamType[StreamType["BIDI_STREAMING"] = 3] = "BIDI_STREAMING"; +})(StreamType || (exports.StreamType = StreamType = {})); +// In retry-request, you could pass parameters to request using the requestOpts parameter +// when we called retry-request from gax, we always passed null +// passing null here removes an unnecessary parameter from this implementation +const requestOps = null; +class StreamProxy extends duplexify { + /** + * StreamProxy is a proxy to gRPC-streaming method. + * + * @private + * @constructor + * @param {StreamType} type - the type of gRPC stream. + * @param {ApiCallback} callback - the callback for further API call. + */ + constructor(type, callback, rest, gaxServerStreamingRetries) { + super(undefined, undefined, { + objectMode: true, + readable: type !== StreamType.CLIENT_STREAMING, + writable: type !== StreamType.SERVER_STREAMING, + }); + this.type = type; + this._callback = callback; + this._isCancelCalled = false; + this._responseHasSent = false; + this.rest = rest; + this.gaxServerStreamingRetries = gaxServerStreamingRetries; + } + shouldRetryRequest(error, retry) { + const e = googleError_1.GoogleError.parseGRPCStatusDetails(error); + let shouldRetry = this.defaultShouldRetry(e, retry); + if (retry.shouldRetryFn) { + shouldRetry = retry.shouldRetryFn(e); + } + return shouldRetry; + } + cancel() { + if (this.stream) { + this.stream.cancel(); + } + else { + this._isCancelCalled = true; + } + } + /** + * Helper function to handle total timeout + max retry check for server streaming retries + * @param {number} deadline - the current retry deadline + * @param {number} maxRetries - maximum total number of retries + * @param {number} totalTimeoutMillis - total timeout in milliseconds used in timeout calculation + * @param {GoogleError} originalError - underlying error received by the stream + * @param {originalTimeout} originalTimeout - the original Timeout set in backoff settings + * @param {retries} retries - the number of retries the call has made so far + */ + throwIfMaxRetriesOrTotalTimeoutExceeded(deadline, maxRetries, totalTimeoutMillis, originalError, originalTimeout, retries) { + const now = new Date(); + const nowTime = now.getTime(); + if (originalTimeout && + (totalTimeoutMillis === 0 || + totalTimeoutMillis < 0 || + (deadline && nowTime >= deadline))) { + const error = new googleError_1.GoogleError(`Total timeout of API exceeded ${originalTimeout} milliseconds ${originalError ? `retrying error ${originalError} ` : ''} before any response was received.`); + error.code = status_1.Status.DEADLINE_EXCEEDED; + throw error; + } + if (maxRetries === 0) { + const error = originalError; + error.note = 'Max retries is set to zero.'; + throw error; + } + if (retries && retries >= maxRetries) { + const error = new googleError_1.GoogleError('Exceeded maximum number of retries ' + + (originalError ? `retrying error ${originalError} ` : '') + + 'before any response was received'); + error.code = status_1.Status.DEADLINE_EXCEEDED; + throw error; + } + } + /** + * Forwards events from an API request stream to the user's stream. + * @param {Stream} stream - The API request stream. + */ + eventForwardHelper(stream) { + const eventsToForward = ['metadata', 'response', 'status']; + eventsToForward.forEach(event => { + stream.on(event, this.emit.bind(this, event)); + }); + } + /** + * Helper function that emits a response on the stream after either a 'metadata' + * or a 'status' event - this helps streams to behave more like http consumers expect + * @param {Stream} stream - The API request stream. + */ + statusMetadataHelper(stream) { + // gRPC is guaranteed emit the 'status' event but not 'metadata', and 'status' is the last event to emit. + // Emit the 'response' event if stream has no 'metadata' event. + // This avoids the stream swallowing the other events, such as 'end'. + stream.on('status', () => { + if (!this._responseHasSent) { + stream.emit('response', { + code: 200, + details: '', + message: 'OK', + }); + } + }); + // We also want to supply the status data as 'response' event to support + // the behavior of google-cloud-node expects. + // see: + // https://github.com/GoogleCloudPlatform/google-cloud-node/pull/1775#issuecomment-259141029 + // https://github.com/GoogleCloudPlatform/google-cloud-node/blob/116436fa789d8b0f7fc5100b19b424e3ec63e6bf/packages/common/src/grpc-service.js#L355 + stream.on('metadata', metadata => { + // Create a response object with succeeds. + // TODO: unify this logic with the decoration of gRPC response when it's + // added. see: https://github.com/googleapis/gax-nodejs/issues/65 + stream.emit('response', { + code: 200, + details: '', + message: 'OK', + metadata, + }); + this._responseHasSent = true; + }); + } + /** + * Forward events from an API request stream to the user's stream. + * @param {Stream} stream - The API request stream. + * @param {RetryOptions} retry - Configures the exceptions upon which the + * function should retry, and the parameters to the exponential backoff retry + * algorithm. + */ + forwardEvents(stream) { + this.eventForwardHelper(stream); + this.statusMetadataHelper(stream); + stream.on('error', error => { + googleError_1.GoogleError.parseGRPCStatusDetails(error); + }); + } + /** + * Default mechanism for determining whether a streaming call should retry + * If a user passes in a "shouldRetryFn", this will not be used + * @param {GoogleError} errpr - The error we need to determine is retryable or not + * @param {RetryOptions} retry - Configures the exceptions upon which the + * function should retry, and the parameters to the exponential backoff retry + * algorithm. + */ + defaultShouldRetry(error, retry) { + if ((retry.retryCodes.length > 0 && + retry.retryCodes.indexOf(error.code) < 0) || + retry.retryCodes.length === 0) { + return false; + } + return true; + } + /** + * Specifies the target stream. + * @param {ApiCall} apiCall - the API function to be called. + * @param {Object} argument - the argument to be passed to the apiCall. + * @param {RetryOptions} retry - Configures the exceptions upon which the + * function should retry, and the parameters to the exponential backoff retry + * algorithm. + */ + setStream(apiCall, argument, retryRequestOptions = {}, retry) { + this.apiCall = apiCall; + this.argument = argument; + if (this.type === StreamType.SERVER_STREAMING) { + if (this.rest) { + const stream = apiCall(argument, this._callback); + this.stream = stream; + this.setReadable(stream); + } + else if (this.gaxServerStreamingRetries) { + const request = () => { + if (this._isCancelCalled) { + if (this.stream) { + this.stream.cancel(); + } + return; + } + const stream = apiCall(argument, this._callback); + return stream; + }; + const retryStream = this.newStreamingRetryRequest({ request, retry }); + this.stream = retryStream; + this.eventForwardHelper(retryStream); + this.setReadable(retryStream); + } + else { + const retryStream = retryRequest(null, { + objectMode: true, + request: () => { + if (this._isCancelCalled) { + if (this.stream) { + this.stream.cancel(); + } + return; + } + const stream = apiCall(argument, this._callback); + this.stream = stream; + this.forwardEvents(stream); + return stream; + }, + retries: retryRequestOptions.retries, + currentRetryAttempt: retryRequestOptions.currentRetryAttempt, + noResponseRetries: retryRequestOptions.noResponseRetries, + shouldRetryFn: retryRequestOptions.shouldRetryFn, + }); + this.setReadable(retryStream); + } + return; + } + const stream = apiCall(argument, this._callback); + this.stream = stream; + this.forwardEvents(stream); + if (this.type === StreamType.CLIENT_STREAMING) { + this.setWritable(stream); + } + if (this.type === StreamType.BIDI_STREAMING) { + this.setReadable(stream); + this.setWritable(stream); + } + if (this._isCancelCalled && this.stream) { + this.stream.cancel(); + } + } + /** + * Creates a new retry request stream - + *inner arrow function "newMakeRequest" handles retrying and resumption + * @param {streamingRetryRequestOptions} opts + * {request} - the request to be made if the stream errors + * {retry} - the retry options associated with the call + * @returns {CancellableStream} - the stream that handles retry logic + */ + newStreamingRetryRequest(opts) { + var _a, _b, _c, _d; + // at this point, it would be unexpected if retry were undefined + // but if it is, provide a logical default so we don't run into trouble + const retry = (_a = opts.retry) !== null && _a !== void 0 ? _a : { + retryCodes: [], + backoffSettings: (0, gax_1.createDefaultBackoffSettings)(), + }; + let retries = 0; + const retryStream = new stream_1.PassThrough({ + objectMode: true, + }); + const totalTimeout = (_b = retry.backoffSettings.totalTimeoutMillis) !== null && _b !== void 0 ? _b : undefined; + const maxRetries = (_c = retry.backoffSettings.maxRetries) !== null && _c !== void 0 ? _c : undefined; + let timeout = (_d = retry.backoffSettings.initialRpcTimeoutMillis) !== null && _d !== void 0 ? _d : undefined; + let now = new Date(); + let deadline = 0; + if (totalTimeout) { + deadline = now.getTime() + totalTimeout; + } + const transientErrorHelper = (error, requestStream) => { + const e = googleError_1.GoogleError.parseGRPCStatusDetails(error); + e.note = + 'Exception occurred in retry method that was ' + + 'not classified as transient'; + // clean up the request stream and retryStreams, silently destroy it on the request stream + // but do raise it on destructin of the retryStream so the consumer can see it + requestStream.destroy(); + retryStream.destroy(e); + return retryStream; + }; + const newMakeRequest = (newopts) => { + let dataEnd = false; + let statusReceived = false; + let enteredError = false; + // make the request + const requestStream = newopts.request(requestOps); + retryStream.cancel = requestStream.cancel; // make sure the retryStream is also cancellable by the user + const eventsToForward = ['metadata', 'response', 'status']; + eventsToForward.forEach(event => { + requestStream.on(event, retryStream.emit.bind(retryStream, event)); + }); + this.statusMetadataHelper(requestStream); + // TODO - b/353262542 address buffer stuff + requestStream.on('data', (data) => { + retries = 0; + this.emit.bind(this, 'data')(data); + }); + /* in retry-request, which previously handled retries, + * "end" could be emitted on a request stream before other gRPC events. + * To ensure it doesn't reach the consumer stream prematurely, retry-request piped + * two streams together (delayStream and retryStream) + * to ensure that "end" only emitted after a "response" event + * + * We are consciously NOT using pipeline or .pipe as part of similar logic here + * because we want more control over what happens during event handoff and we want to + * avoid the undesired behavior that can happen with error events + * if consumers in client libraries are also using pipes + * + * Since "status" is guaranteed to be the last event emitted by gRPC. + * If we have seen an "end" event, the dataEnd boolean will be true and we can safely + * end the stream. + * + * The "statusReceived" boolean covers the opposite case - that we receive the "status" event before + * a successful stream end event - this signals the .on('end') event handler that it's okay to end the stream + * + * + */ + requestStream.on('status', () => { + statusReceived = true; + if (dataEnd) { + retryStream.end(); + } + return retryStream; + }); + requestStream.on('end', () => { + if (!enteredError) { + dataEnd = true; + // in this case, we've already received "status" + // which is the last event from gRPC, so it's cool to end the stream + if (statusReceived) { + retryStream.end(); + } + } + return retryStream; + // there is no else case because if enteredError + // is true, we will handle stream destruction as part of + // either retrying (where we don't want to end the stream) + // or as part of error handling, which will take care of stream destruction + }); + requestStream.on('error', (error) => { + enteredError = true; + // type check for undefined instead of for truthiness in case maxRetries or timeout is equal to zero + if (typeof maxRetries !== undefined || + typeof totalTimeout !== undefined) { + if (this.shouldRetryRequest(error, retry)) { + if (maxRetries && totalTimeout) { + const newError = new googleError_1.GoogleError('Cannot set both totalTimeoutMillis and maxRetries ' + + 'in backoffSettings.'); + newError.code = status_1.Status.INVALID_ARGUMENT; + // clean up the request stream and retryStreams, silently destroy it on the request stream + // but do raise it on destructin of the retryStream so the consumer can see it + requestStream.destroy(); + retryStream.destroy(newError); + return retryStream; + } + else { + // check for exceeding timeout or max retries + try { + this.throwIfMaxRetriesOrTotalTimeoutExceeded(deadline, maxRetries, timeout, error, totalTimeout, retries); + } + catch (error) { + const e = googleError_1.GoogleError.parseGRPCStatusDetails(error); + // clean up the request stream and retryStreams, silently destroy it on the request stream + // but do raise it on destruction of the retryStream so the consumer can see it + requestStream.destroy(); + retryStream.destroy(e); + return retryStream; + } + const delayMult = retry.backoffSettings.retryDelayMultiplier; + const maxDelay = retry.backoffSettings.maxRetryDelayMillis; + const timeoutMult = retry.backoffSettings.rpcTimeoutMultiplier; + const maxTimeout = retry.backoffSettings.maxRpcTimeoutMillis; + let delay = retry.backoffSettings.initialRetryDelayMillis; + // calculate new deadlines + const toSleep = Math.random() * delay; + const calculateTimeoutAndResumptionFunction = () => { + setTimeout(() => { + // only do timeout calculations if not using maxRetries + if (timeout) { + now = new Date(); + delay = Math.min(delay * delayMult, maxDelay); + const timeoutCal = timeout && timeoutMult ? timeout * timeoutMult : 0; + const rpcTimeout = maxTimeout ? maxTimeout : 0; + const newDeadline = deadline ? deadline - now.getTime() : 0; + timeout = Math.min(timeoutCal, rpcTimeout, newDeadline); + } + retries++; + let retryArgument = this.argument; + // if resumption logic is passed, use it to determined the + // new argument for the new request made to the server + // otherwise, the original argument will be passed + if (retry.getResumptionRequestFn !== undefined) { + retryArgument = retry.getResumptionRequestFn(retryArgument); + } + const newRequest = () => { + if (this._isCancelCalled) { + if (this.stream) { + this.stream.cancel(); + } + return; + } + const newStream = this.apiCall(retryArgument, this._callback); + return newStream; + }; + opts.request = newRequest; + // make a request with the updated parameters + // based on the resumption strategy + return newMakeRequest(opts); + }, toSleep); + }; + return calculateTimeoutAndResumptionFunction(); + } + } + else { + // non retryable error + return transientErrorHelper(error, requestStream); + } + } + else { + // neither timeout nor maxRetries are defined, surface the error to the caller + return transientErrorHelper(error, requestStream); + } + }); + // return the stream if we didn't return it as + // part of an error state + return retryStream; + }; + // this is the first make request call with the options the user passed in + return newMakeRequest(opts); + } +} +exports.StreamProxy = StreamProxy; +//# sourceMappingURL=streaming.js.map + +/***/ }), + +/***/ 33896: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StreamingApiCaller = void 0; +const warnings_1 = __nccwpck_require__(30100); +const streaming_1 = __nccwpck_require__(63123); +class StreamingApiCaller { + /** + * An API caller for methods of gRPC streaming. + * @private + * @constructor + * @param {StreamDescriptor} descriptor - the descriptor of the method structure. + */ + constructor(descriptor) { + this.descriptor = descriptor; + } + init(callback) { + return new streaming_1.StreamProxy(this.descriptor.type, callback, this.descriptor.rest, this.descriptor.gaxStreamingRetries); + } + wrap(func) { + switch (this.descriptor.type) { + case streaming_1.StreamType.SERVER_STREAMING: + return (argument, metadata, options) => { + return func(argument, metadata, options); + }; + case streaming_1.StreamType.CLIENT_STREAMING: + return (argument, metadata, options, callback) => { + return func(metadata, options, callback); + }; + case streaming_1.StreamType.BIDI_STREAMING: + return (argument, metadata, options) => { + return func(metadata, options); + }; + default: + (0, warnings_1.warn)('streaming_wrap_unknown_stream_type', `Unknown stream type: ${this.descriptor.type}`); + } + return func; + } + call(apiCall, argument, settings, stream) { + stream.setStream(apiCall, argument, settings.retryRequestOptions, settings.retry); + } + fail(stream, err) { + stream.emit('error', err); + } + result(stream) { + return stream; + } +} +exports.StreamingApiCaller = StreamingApiCaller; +//# sourceMappingURL=streamingApiCaller.js.map + +/***/ }), + +/***/ 14965: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getField = getField; +exports.deepCopyWithoutMatchedFields = deepCopyWithoutMatchedFields; +exports.deleteField = deleteField; +exports.buildQueryStringComponents = buildQueryStringComponents; +exports.encodeWithSlashes = encodeWithSlashes; +exports.encodeWithoutSlashes = encodeWithoutSlashes; +exports.applyPattern = applyPattern; +exports.match = match; +exports.flattenObject = flattenObject; +exports.isProto3OptionalField = isProto3OptionalField; +exports.transcode = transcode; +exports.overrideHttpRules = overrideHttpRules; +const util_1 = __nccwpck_require__(44953); +const httpOptionName = '(google.api.http)'; +const proto3OptionalName = 'proto3_optional'; +// List of methods as defined in google/api/http.proto (see HttpRule) +const supportedHttpMethods = ['get', 'post', 'put', 'patch', 'delete']; +function getField(request, field, allowObjects = false // in most cases, we need leaf fields +) { + const parts = field.split('.'); + let value = request; + for (const part of parts) { + if (typeof value !== 'object') { + return undefined; + } + value = value[part]; + } + if (!allowObjects && + typeof value === 'object' && + !Array.isArray(value) && + value !== null) { + return undefined; + } + return value; +} +function deepCopyWithoutMatchedFields(request, fieldsToSkip, fullNamePrefix = '') { + if (typeof request !== 'object' || request === null) { + return request; + } + const copy = Object.assign({}, request); + for (const key in copy) { + if (fieldsToSkip.has(`${fullNamePrefix}${key}`)) { + delete copy[key]; + continue; + } + const nextFullNamePrefix = `${fullNamePrefix}${key}.`; + if (Array.isArray(copy[key])) { + // a field of an array cannot be addressed as "request.field", so we omit the skipping logic for array descendants + copy[key] = copy[key].map(value => deepCopyWithoutMatchedFields(value, new Set())); + } + else if (typeof copy[key] === 'object' && copy[key] !== null) { + copy[key] = deepCopyWithoutMatchedFields(copy[key], fieldsToSkip, nextFullNamePrefix); + } + } + return copy; +} +function deleteField(request, field) { + const parts = field.split('.'); + while (parts.length > 1) { + if (typeof request !== 'object') { + return; + } + const part = parts.shift(); + request = request[part]; + } + const part = parts.shift(); + if (typeof request !== 'object') { + return; + } + delete request[part]; +} +function buildQueryStringComponents(request, prefix = '') { + const resultList = []; + for (const key in request) { + if (Array.isArray(request[key])) { + for (const value of request[key]) { + resultList.push(`${prefix}${encodeWithoutSlashes(key)}=${encodeWithoutSlashes(value.toString())}`); + } + } + else if (typeof request[key] === 'object' && request[key] !== null) { + resultList.push(...buildQueryStringComponents(request[key], `${key}.`)); + } + else { + resultList.push(`${prefix}${encodeWithoutSlashes(key)}=${encodeWithoutSlashes(request[key] === null ? 'null' : request[key].toString())}`); + } + } + return resultList; +} +function encodeWithSlashes(str) { + return str + .split('') + .map(c => (c.match(/[-_.~0-9a-zA-Z]/) ? c : encodeURIComponent(c))) + .join(''); +} +function encodeWithoutSlashes(str) { + return str + .split('') + .map(c => (c.match(/[-_.~0-9a-zA-Z/]/) ? c : encodeURIComponent(c))) + .join(''); +} +function escapeRegExp(str) { + return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); +} +function applyPattern(pattern, fieldValue) { + if (!pattern || pattern === '*') { + return encodeWithSlashes(fieldValue); + } + if (!pattern.includes('*') && pattern !== fieldValue) { + return undefined; + } + // since we're converting the pattern to a regex, make necessary precautions: + const regex = new RegExp('^' + + escapeRegExp(pattern) + .replace(/\\\*\\\*/g, '(.+)') + .replace(/\\\*/g, '([^/]+)') + + '$'); + if (!fieldValue.match(regex)) { + return undefined; + } + return encodeWithoutSlashes(fieldValue); +} +function fieldToCamelCase(field) { + const parts = field.split('.'); + return parts.map(part => (0, util_1.toCamelCase)(part)).join('.'); +} +function match(request, pattern) { + let url = pattern; + const matchedFields = []; + for (;;) { + const match = url.match(/^(.*)\{([^}=]+)(?:=([^}]*))?\}(.*)/); + if (!match) { + break; + } + const [, before, field, pattern, after] = match; + const camelCasedField = fieldToCamelCase(field); + matchedFields.push(fieldToCamelCase(camelCasedField)); + const fieldValue = getField(request, camelCasedField); + if (fieldValue === undefined) { + return undefined; + } + const appliedPattern = applyPattern(pattern, fieldValue === null ? 'null' : fieldValue.toString()); + if (appliedPattern === undefined) { + return undefined; + } + url = before + appliedPattern + after; + } + return { matchedFields, url }; +} +function flattenObject(request) { + const result = {}; + for (const key in request) { + if (request[key] === undefined) { + continue; + } + if (Array.isArray(request[key])) { + // According to the http.proto comments, a repeated field may only + // contain primitive types, so no extra recursion here. + result[key] = request[key]; + continue; + } + if (typeof request[key] === 'object' && request[key] !== null) { + const nested = flattenObject(request[key]); + for (const nestedKey in nested) { + result[`${key}.${nestedKey}`] = nested[nestedKey]; + } + continue; + } + result[key] = request[key]; + } + return result; +} +function isProto3OptionalField(field) { + return field && field.options && field.options[proto3OptionalName]; +} +function transcode(request, parsedOptions) { + const httpRules = []; + for (const option of parsedOptions) { + if (!(httpOptionName in option)) { + continue; + } + const httpRule = option[httpOptionName]; + httpRules.push(httpRule); + if (httpRule === null || httpRule === void 0 ? void 0 : httpRule.additional_bindings) { + const additionalBindings = Array.isArray(httpRule.additional_bindings) + ? httpRule.additional_bindings + : [httpRule.additional_bindings]; + httpRules.push(...additionalBindings); + } + } + for (const httpRule of httpRules) { + for (const httpMethod of supportedHttpMethods) { + if (!(httpMethod in httpRule)) { + continue; + } + const pathTemplate = httpRule[httpMethod]; + const matchResult = match(request, pathTemplate); + if (matchResult === undefined) { + continue; + } + const { url, matchedFields } = matchResult; + let data = deepCopyWithoutMatchedFields(request, new Set(matchedFields)); + if (httpRule.body === '*') { + return { httpMethod, url, queryString: '', data }; + } + // one field possibly goes to request data, others go to query string + const queryStringObject = data; + if (httpRule.body) { + data = getField(queryStringObject, fieldToCamelCase(httpRule.body), + /*allowObjects:*/ true); + deleteField(queryStringObject, fieldToCamelCase(httpRule.body)); + } + else { + data = ''; + } + const queryStringComponents = buildQueryStringComponents(queryStringObject); + const queryString = queryStringComponents.join('&'); + if (!data || + (typeof data === 'object' && Object.keys(data).length === 0)) { + data = ''; + } + return { httpMethod, url, queryString, data }; + } + } + return undefined; +} +// Override the protobuf json's the http rules. +function overrideHttpRules(httpRules, protoJson) { + for (const rule of httpRules) { + if (!rule.selector) { + continue; + } + const rpc = protoJson.lookup(rule.selector); + // Not support override on non-exist RPC or a RPC without an annotation. + // We could reconsider if we have the use case later. + if (!rpc || !rpc.parsedOptions) { + continue; + } + for (const item of rpc.parsedOptions) { + if (!(httpOptionName in item)) { + continue; + } + const httpOptions = item[httpOptionName]; + for (const httpMethod in httpOptions) { + if (httpMethod in rule) { + if (httpMethod === 'additional_bindings') { + continue; + } + httpOptions[httpMethod] = + rule[httpMethod]; + } + if (rule.additional_bindings) { + httpOptions['additional_bindings'] = !httpOptions['additional_bindings'] + ? [] + : Array.isArray(httpOptions['additional_bindings']) + ? httpOptions['additional_bindings'] + : [httpOptions['additional_bindings']]; + // Make the additional_binding to be an array if it is not. + httpOptions['additional_bindings'].push(...rule.additional_bindings); + } + } + } + } +} +//# sourceMappingURL=transcoding.js.map + +/***/ }), + +/***/ 44953: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.camelToSnakeCase = camelToSnakeCase; +exports.toCamelCase = toCamelCase; +exports.toLowerCamelCase = toLowerCamelCase; +exports.makeUUID = makeUUID; +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const uuid_1 = __nccwpck_require__(86561); +function words(str, normalize = false) { + if (normalize) { + // strings like somethingABCSomething are special case for protobuf.js, + // they should be split as "something", "abc", "something". + // Deal with sequences of capital letters first. + str = str.replace(/([A-Z])([A-Z]+)([A-Z])/g, (str) => { + return (str[0] + + str.slice(1, str.length - 1).toLowerCase() + + str[str.length - 1]); + }); + } + // split on spaces, non-alphanumeric, or capital letters + // note: we keep the capitalization of the first word (special case: IPProtocol) + return str + .split(/(?=[A-Z])|[^A-Za-z0-9.]+/) + .filter(w => w.length > 0) + .map((w, index) => (index === 0 ? w : w.toLowerCase())); +} +/** + * Converts the first character of the given string to lower case. + */ +function lowercase(str) { + if (str.length === 0) { + return str; + } + return str[0].toLowerCase() + str.slice(1); +} +/** + * Converts a given string from camelCase (used by protobuf.js and in JSON) + * to snake_case (normally used in proto definitions). + */ +function camelToSnakeCase(str) { + // Keep the first position capitalization, otherwise decapitalize with underscore. + const wordsList = words(str); + if (wordsList.length === 0) { + return str; + } + const result = [wordsList[0]]; + result.push(...wordsList.slice(1).map(lowercase)); + return result.join('_'); +} +/** + * Capitalizes the first character of the given string. + */ +function capitalize(str) { + if (str.length === 0) { + return str; + } + return str[0].toUpperCase() + str.slice(1); +} +/** + * Converts a given string from snake_case (normally used in proto definitions) or + * PascalCase (also used in proto definitions) to camelCase (used by protobuf.js). + * Preserves capitalization of the first character. + */ +function toCamelCase(str) { + const wordsList = words(str, /*normalize:*/ true); + if (wordsList.length === 0) { + return str; + } + const result = [wordsList[0]]; + result.push(...wordsList.slice(1).map(w => { + if (w.match(/^\d+$/)) { + return '_' + w; + } + return capitalize(w); + })); + return result.join(''); +} +/** + * Converts a given string to lower camel case (forcing the first character to be + * in lower case). + */ +function toLowerCamelCase(str) { + const camelCase = toCamelCase(str); + if (camelCase.length === 0) { + return camelCase; + } + return camelCase[0].toLowerCase() + camelCase.slice(1); +} +/** + * Converts a given string to lower camel case (forcing the first character to be + * in lower case). + */ +function makeUUID() { + return (0, uuid_1.v4)(); +} +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 30100: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.warn = warn; +const featureDetection_1 = __nccwpck_require__(80876); +const emittedWarnings = new Set(); +// warnType is the type of warning (e.g. 'DeprecationWarning', 'ExperimentalWarning', etc.) +function warn(code, message, warnType) { + // Only show a given warning once + if (emittedWarnings.has(code)) { + return; + } + emittedWarnings.add(code); + if (!(0, featureDetection_1.isNodeJS)()) { + console.warn(message); + } + else if (typeof warnType !== 'undefined') { + process.emitWarning(message, { + type: warnType, + }); + } + else { + process.emitWarning(message); + } +} +//# sourceMappingURL=warnings.js.map + +/***/ }), + +/***/ 78099: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GaxiosError = exports.GAXIOS_ERROR_SYMBOL = void 0; +exports.defaultErrorRedactor = defaultErrorRedactor; +const url_1 = __nccwpck_require__(87016); +const util_1 = __nccwpck_require__(90218); +const extend_1 = __importDefault(__nccwpck_require__(92229)); +/** + * Support `instanceof` operator for `GaxiosError`s in different versions of this library. + * + * @see {@link GaxiosError[Symbol.hasInstance]} + */ +exports.GAXIOS_ERROR_SYMBOL = Symbol.for(`${util_1.pkg.name}-gaxios-error`); +/* eslint-disable-next-line @typescript-eslint/no-explicit-any */ +class GaxiosError extends Error { + /** + * Support `instanceof` operator for `GaxiosError` across builds/duplicated files. + * + * @see {@link GAXIOS_ERROR_SYMBOL} + * @see {@link GaxiosError[GAXIOS_ERROR_SYMBOL]} + */ + static [(_a = exports.GAXIOS_ERROR_SYMBOL, Symbol.hasInstance)](instance) { + if (instance && + typeof instance === 'object' && + exports.GAXIOS_ERROR_SYMBOL in instance && + instance[exports.GAXIOS_ERROR_SYMBOL] === util_1.pkg.version) { + return true; + } + // fallback to native + return Function.prototype[Symbol.hasInstance].call(GaxiosError, instance); + } + constructor(message, config, response, error) { + var _b; + super(message); + this.config = config; + this.response = response; + this.error = error; + /** + * Support `instanceof` operator for `GaxiosError` across builds/duplicated files. + * + * @see {@link GAXIOS_ERROR_SYMBOL} + * @see {@link GaxiosError[Symbol.hasInstance]} + * @see {@link https://github.com/microsoft/TypeScript/issues/13965#issuecomment-278570200} + * @see {@link https://stackoverflow.com/questions/46618852/require-and-instanceof} + * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/@@hasInstance#reverting_to_default_instanceof_behavior} + */ + this[_a] = util_1.pkg.version; + // deep-copy config as we do not want to mutate + // the existing config for future retries/use + this.config = (0, extend_1.default)(true, {}, config); + if (this.response) { + this.response.config = (0, extend_1.default)(true, {}, this.response.config); + } + if (this.response) { + try { + this.response.data = translateData(this.config.responseType, (_b = this.response) === null || _b === void 0 ? void 0 : _b.data); + } + catch (_c) { + // best effort - don't throw an error within an error + // we could set `this.response.config.responseType = 'unknown'`, but + // that would mutate future calls with this config object. + } + this.status = this.response.status; + } + if (error && 'code' in error && error.code) { + this.code = error.code; + } + if (config.errorRedactor) { + config.errorRedactor({ + config: this.config, + response: this.response, + }); + } + } +} +exports.GaxiosError = GaxiosError; +function translateData(responseType, data) { + switch (responseType) { + case 'stream': + return data; + case 'json': + return JSON.parse(JSON.stringify(data)); + case 'arraybuffer': + return JSON.parse(Buffer.from(data).toString('utf8')); + case 'blob': + return JSON.parse(data.text()); + default: + return data; + } +} +/** + * An experimental error redactor. + * + * @param config Config to potentially redact properties of + * @param response Config to potentially redact properties of + * + * @experimental + */ +function defaultErrorRedactor(data) { + const REDACT = '< - See `errorRedactor` option in `gaxios` for configuration>.'; + function redactHeaders(headers) { + if (!headers) + return; + for (const key of Object.keys(headers)) { + // any casing of `Authentication` + if (/^authentication$/i.test(key)) { + headers[key] = REDACT; + } + // any casing of `Authorization` + if (/^authorization$/i.test(key)) { + headers[key] = REDACT; + } + // anything containing secret, such as 'client secret' + if (/secret/i.test(key)) { + headers[key] = REDACT; + } + } + } + function redactString(obj, key) { + if (typeof obj === 'object' && + obj !== null && + typeof obj[key] === 'string') { + const text = obj[key]; + if (/grant_type=/i.test(text) || + /assertion=/i.test(text) || + /secret/i.test(text)) { + obj[key] = REDACT; + } + } + } + function redactObject(obj) { + if (typeof obj === 'object' && obj !== null) { + if ('grant_type' in obj) { + obj['grant_type'] = REDACT; + } + if ('assertion' in obj) { + obj['assertion'] = REDACT; + } + if ('client_secret' in obj) { + obj['client_secret'] = REDACT; + } + } + } + if (data.config) { + redactHeaders(data.config.headers); + redactString(data.config, 'data'); + redactObject(data.config.data); + redactString(data.config, 'body'); + redactObject(data.config.body); + try { + const url = new url_1.URL('', data.config.url); + if (url.searchParams.has('token')) { + url.searchParams.set('token', REDACT); + } + if (url.searchParams.has('client_secret')) { + url.searchParams.set('client_secret', REDACT); + } + data.config.url = url.toString(); + } + catch (_b) { + // ignore error - no need to parse an invalid URL + } + } + if (data.response) { + defaultErrorRedactor({ config: data.response.config }); + redactHeaders(data.response.headers); + redactString(data.response, 'data'); + redactObject(data.response.data); + } + return data; +} +//# sourceMappingURL=common.js.map + +/***/ }), + +/***/ 98187: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var _Gaxios_instances, _a, _Gaxios_urlMayUseProxy, _Gaxios_applyRequestInterceptors, _Gaxios_applyResponseInterceptors, _Gaxios_prepareRequest, _Gaxios_proxyAgent, _Gaxios_getProxyAgent; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Gaxios = void 0; +const extend_1 = __importDefault(__nccwpck_require__(92229)); +const https_1 = __nccwpck_require__(65692); +const node_fetch_1 = __importDefault(__nccwpck_require__(78704)); +const querystring_1 = __importDefault(__nccwpck_require__(83480)); +const is_stream_1 = __importDefault(__nccwpck_require__(20580)); +const url_1 = __nccwpck_require__(87016); +const common_1 = __nccwpck_require__(78099); +const retry_1 = __nccwpck_require__(6586); +const stream_1 = __nccwpck_require__(2203); +const uuid_1 = __nccwpck_require__(86561); +const interceptor_1 = __nccwpck_require__(21731); +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fetch = hasFetch() ? window.fetch : node_fetch_1.default; +function hasWindow() { + return typeof window !== 'undefined' && !!window; +} +function hasFetch() { + return hasWindow() && !!window.fetch; +} +function hasBuffer() { + return typeof Buffer !== 'undefined'; +} +function hasHeader(options, header) { + return !!getHeader(options, header); +} +function getHeader(options, header) { + header = header.toLowerCase(); + for (const key of Object.keys((options === null || options === void 0 ? void 0 : options.headers) || {})) { + if (header === key.toLowerCase()) { + return options.headers[key]; + } + } + return undefined; +} +class Gaxios { + /** + * The Gaxios class is responsible for making HTTP requests. + * @param defaults The default set of options to be used for this instance. + */ + constructor(defaults) { + _Gaxios_instances.add(this); + this.agentCache = new Map(); + this.defaults = defaults || {}; + this.interceptors = { + request: new interceptor_1.GaxiosInterceptorManager(), + response: new interceptor_1.GaxiosInterceptorManager(), + }; + } + /** + * Perform an HTTP request with the given options. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async request(opts = {}) { + opts = await __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_prepareRequest).call(this, opts); + opts = await __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_applyRequestInterceptors).call(this, opts); + return __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_applyResponseInterceptors).call(this, this._request(opts)); + } + async _defaultAdapter(opts) { + const fetchImpl = opts.fetchImplementation || fetch; + const res = (await fetchImpl(opts.url, opts)); + const data = await this.getResponseData(opts, res); + return this.translateResponse(opts, res, data); + } + /** + * Internal, retryable version of the `request` method. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async _request(opts = {}) { + var _b; + try { + let translatedResponse; + if (opts.adapter) { + translatedResponse = await opts.adapter(opts, this._defaultAdapter.bind(this)); + } + else { + translatedResponse = await this._defaultAdapter(opts); + } + if (!opts.validateStatus(translatedResponse.status)) { + if (opts.responseType === 'stream') { + let response = ''; + await new Promise(resolve => { + (translatedResponse === null || translatedResponse === void 0 ? void 0 : translatedResponse.data).on('data', chunk => { + response += chunk; + }); + (translatedResponse === null || translatedResponse === void 0 ? void 0 : translatedResponse.data).on('end', resolve); + }); + translatedResponse.data = response; + } + throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); + } + return translatedResponse; + } + catch (e) { + const err = e instanceof common_1.GaxiosError + ? e + : new common_1.GaxiosError(e.message, opts, undefined, e); + const { shouldRetry, config } = await (0, retry_1.getRetryConfig)(err); + if (shouldRetry && config) { + err.config.retryConfig.currentRetryAttempt = + config.retryConfig.currentRetryAttempt; + // The error's config could be redacted - therefore we only want to + // copy the retry state over to the existing config + opts.retryConfig = (_b = err.config) === null || _b === void 0 ? void 0 : _b.retryConfig; + return this._request(opts); + } + throw err; + } + } + async getResponseData(opts, res) { + switch (opts.responseType) { + case 'stream': + return res.body; + case 'json': { + let data = await res.text(); + try { + data = JSON.parse(data); + } + catch (_b) { + // continue + } + return data; + } + case 'arraybuffer': + return res.arrayBuffer(); + case 'blob': + return res.blob(); + case 'text': + return res.text(); + default: + return this.getResponseDataFromContentType(res); + } + } + /** + * By default, throw for any non-2xx status code + * @param status status code from the HTTP response + */ + validateStatus(status) { + return status >= 200 && status < 300; + } + /** + * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) + * @param params key value pars to encode + */ + paramsSerializer(params) { + return querystring_1.default.stringify(params); + } + translateResponse(opts, res, data) { + // headers need to be converted from a map to an obj + const headers = {}; + res.headers.forEach((value, key) => { + headers[key] = value; + }); + return { + config: opts, + data: data, + headers, + status: res.status, + statusText: res.statusText, + // XMLHttpRequestLike + request: { + responseURL: res.url, + }, + }; + } + /** + * Attempts to parse a response by looking at the Content-Type header. + * @param {FetchResponse} response the HTTP response. + * @returns {Promise} a promise that resolves to the response data. + */ + async getResponseDataFromContentType(response) { + let contentType = response.headers.get('Content-Type'); + if (contentType === null) { + // Maintain existing functionality by calling text() + return response.text(); + } + contentType = contentType.toLowerCase(); + if (contentType.includes('application/json')) { + let data = await response.text(); + try { + data = JSON.parse(data); + } + catch (_b) { + // continue + } + return data; + } + else if (contentType.match(/^text\//)) { + return response.text(); + } + else { + // If the content type is something not easily handled, just return the raw data (blob) + return response.blob(); + } + } + /** + * Creates an async generator that yields the pieces of a multipart/related request body. + * This implementation follows the spec: https://www.ietf.org/rfc/rfc2387.txt. However, recursive + * multipart/related requests are not currently supported. + * + * @param {GaxioMultipartOptions[]} multipartOptions the pieces to turn into a multipart/related body. + * @param {string} boundary the boundary string to be placed between each part. + */ + async *getMultipartRequest(multipartOptions, boundary) { + const finale = `--${boundary}--`; + for (const currentPart of multipartOptions) { + const partContentType = currentPart.headers['Content-Type'] || 'application/octet-stream'; + const preamble = `--${boundary}\r\nContent-Type: ${partContentType}\r\n\r\n`; + yield preamble; + if (typeof currentPart.content === 'string') { + yield currentPart.content; + } + else { + yield* currentPart.content; + } + yield '\r\n'; + } + yield finale; + } +} +exports.Gaxios = Gaxios; +_a = Gaxios, _Gaxios_instances = new WeakSet(), _Gaxios_urlMayUseProxy = function _Gaxios_urlMayUseProxy(url, noProxy = []) { + var _b, _c; + const candidate = new url_1.URL(url); + const noProxyList = [...noProxy]; + const noProxyEnvList = ((_c = ((_b = process.env.NO_PROXY) !== null && _b !== void 0 ? _b : process.env.no_proxy)) === null || _c === void 0 ? void 0 : _c.split(',')) || []; + for (const rule of noProxyEnvList) { + noProxyList.push(rule.trim()); + } + for (const rule of noProxyList) { + // Match regex + if (rule instanceof RegExp) { + if (rule.test(candidate.toString())) { + return false; + } + } + // Match URL + else if (rule instanceof url_1.URL) { + if (rule.origin === candidate.origin) { + return false; + } + } + // Match string regex + else if (rule.startsWith('*.') || rule.startsWith('.')) { + const cleanedRule = rule.replace(/^\*\./, '.'); + if (candidate.hostname.endsWith(cleanedRule)) { + return false; + } + } + // Basic string match + else if (rule === candidate.origin || + rule === candidate.hostname || + rule === candidate.href) { + return false; + } + } + return true; +}, _Gaxios_applyRequestInterceptors = +/** + * Applies the request interceptors. The request interceptors are applied after the + * call to prepareRequest is completed. + * + * @param {GaxiosOptions} options The current set of options. + * + * @returns {Promise} Promise that resolves to the set of options or response after interceptors are applied. + */ +async function _Gaxios_applyRequestInterceptors(options) { + let promiseChain = Promise.resolve(options); + for (const interceptor of this.interceptors.request.values()) { + if (interceptor) { + promiseChain = promiseChain.then(interceptor.resolved, interceptor.rejected); + } + } + return promiseChain; +}, _Gaxios_applyResponseInterceptors = +/** + * Applies the response interceptors. The response interceptors are applied after the + * call to request is made. + * + * @param {GaxiosOptions} options The current set of options. + * + * @returns {Promise} Promise that resolves to the set of options or response after interceptors are applied. + */ +async function _Gaxios_applyResponseInterceptors(response) { + let promiseChain = Promise.resolve(response); + for (const interceptor of this.interceptors.response.values()) { + if (interceptor) { + promiseChain = promiseChain.then(interceptor.resolved, interceptor.rejected); + } + } + return promiseChain; +}, _Gaxios_prepareRequest = +/** + * Validates the options, merges them with defaults, and prepare request. + * + * @param options The original options passed from the client. + * @returns Prepared options, ready to make a request + */ +async function _Gaxios_prepareRequest(options) { + var _b, _c, _d, _e; + const opts = (0, extend_1.default)(true, {}, this.defaults, options); + if (!opts.url) { + throw new Error('URL is required.'); + } + // baseUrl has been deprecated, remove in 2.0 + const baseUrl = opts.baseUrl || opts.baseURL; + if (baseUrl) { + opts.url = baseUrl.toString() + opts.url; + } + opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; + if (opts.params && Object.keys(opts.params).length > 0) { + let additionalQueryParams = opts.paramsSerializer(opts.params); + if (additionalQueryParams.startsWith('?')) { + additionalQueryParams = additionalQueryParams.slice(1); + } + const prefix = opts.url.toString().includes('?') ? '&' : '?'; + opts.url = opts.url + prefix + additionalQueryParams; + } + if (typeof options.maxContentLength === 'number') { + opts.size = options.maxContentLength; + } + if (typeof options.maxRedirects === 'number') { + opts.follow = options.maxRedirects; + } + opts.headers = opts.headers || {}; + if (opts.multipart === undefined && opts.data) { + const isFormData = typeof FormData === 'undefined' + ? false + : (opts === null || opts === void 0 ? void 0 : opts.data) instanceof FormData; + if (is_stream_1.default.readable(opts.data)) { + opts.body = opts.data; + } + else if (hasBuffer() && Buffer.isBuffer(opts.data)) { + // Do not attempt to JSON.stringify() a Buffer: + opts.body = opts.data; + if (!hasHeader(opts, 'Content-Type')) { + opts.headers['Content-Type'] = 'application/json'; + } + } + else if (typeof opts.data === 'object') { + // If www-form-urlencoded content type has been set, but data is + // provided as an object, serialize the content using querystring: + if (!isFormData) { + if (getHeader(opts, 'content-type') === + 'application/x-www-form-urlencoded') { + opts.body = opts.paramsSerializer(opts.data); + } + else { + // } else if (!(opts.data instanceof FormData)) { + if (!hasHeader(opts, 'Content-Type')) { + opts.headers['Content-Type'] = 'application/json'; + } + opts.body = JSON.stringify(opts.data); + } + } + } + else { + opts.body = opts.data; + } + } + else if (opts.multipart && opts.multipart.length > 0) { + // note: once the minimum version reaches Node 16, + // this can be replaced with randomUUID() function from crypto + // and the dependency on UUID removed + const boundary = (0, uuid_1.v4)(); + opts.headers['Content-Type'] = `multipart/related; boundary=${boundary}`; + const bodyStream = new stream_1.PassThrough(); + opts.body = bodyStream; + (0, stream_1.pipeline)(this.getMultipartRequest(opts.multipart, boundary), bodyStream, () => { }); + } + opts.validateStatus = opts.validateStatus || this.validateStatus; + opts.responseType = opts.responseType || 'unknown'; + if (!opts.headers['Accept'] && opts.responseType === 'json') { + opts.headers['Accept'] = 'application/json'; + } + opts.method = opts.method || 'GET'; + const proxy = opts.proxy || + ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.HTTPS_PROXY) || + ((_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c.https_proxy) || + ((_d = process === null || process === void 0 ? void 0 : process.env) === null || _d === void 0 ? void 0 : _d.HTTP_PROXY) || + ((_e = process === null || process === void 0 ? void 0 : process.env) === null || _e === void 0 ? void 0 : _e.http_proxy); + const urlMayUseProxy = __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_urlMayUseProxy).call(this, opts.url, opts.noProxy); + if (opts.agent) { + // don't do any of the following options - use the user-provided agent. + } + else if (proxy && urlMayUseProxy) { + const HttpsProxyAgent = await __classPrivateFieldGet(_a, _a, "m", _Gaxios_getProxyAgent).call(_a); + if (this.agentCache.has(proxy)) { + opts.agent = this.agentCache.get(proxy); + } + else { + opts.agent = new HttpsProxyAgent(proxy, { + cert: opts.cert, + key: opts.key, + }); + this.agentCache.set(proxy, opts.agent); + } + } + else if (opts.cert && opts.key) { + // Configure client for mTLS + if (this.agentCache.has(opts.key)) { + opts.agent = this.agentCache.get(opts.key); + } + else { + opts.agent = new https_1.Agent({ + cert: opts.cert, + key: opts.key, + }); + this.agentCache.set(opts.key, opts.agent); + } + } + if (typeof opts.errorRedactor !== 'function' && + opts.errorRedactor !== false) { + opts.errorRedactor = common_1.defaultErrorRedactor; + } + return opts; +}, _Gaxios_getProxyAgent = async function _Gaxios_getProxyAgent() { + __classPrivateFieldSet(this, _a, __classPrivateFieldGet(this, _a, "f", _Gaxios_proxyAgent) || (await Promise.resolve().then(() => __importStar(__nccwpck_require__(12012)))).HttpsProxyAgent, "f", _Gaxios_proxyAgent); + return __classPrivateFieldGet(this, _a, "f", _Gaxios_proxyAgent); +}; +/** + * A cache for the lazily-loaded proxy agent. + * + * Should use {@link Gaxios[#getProxyAgent]} to retrieve. + */ +// using `import` to dynamically import the types here +_Gaxios_proxyAgent = { value: void 0 }; +//# sourceMappingURL=gaxios.js.map + +/***/ }), + +/***/ 9024: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.instance = exports.Gaxios = exports.GaxiosError = void 0; +exports.request = request; +const gaxios_1 = __nccwpck_require__(98187); +Object.defineProperty(exports, "Gaxios", ({ enumerable: true, get: function () { return gaxios_1.Gaxios; } })); +var common_1 = __nccwpck_require__(78099); +Object.defineProperty(exports, "GaxiosError", ({ enumerable: true, get: function () { return common_1.GaxiosError; } })); +__exportStar(__nccwpck_require__(21731), exports); +/** + * The default instance used when the `request` method is directly + * invoked. + */ +exports.instance = new gaxios_1.Gaxios(); +/** + * Make an HTTP request using the given options. + * @param opts Options for the request + */ +async function request(opts) { + return exports.instance.request(opts); +} +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 21731: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2024 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GaxiosInterceptorManager = void 0; +/** + * Class to manage collections of GaxiosInterceptors for both requests and responses. + */ +class GaxiosInterceptorManager extends Set { +} +exports.GaxiosInterceptorManager = GaxiosInterceptorManager; +//# sourceMappingURL=interceptor.js.map + +/***/ }), + +/***/ 6586: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRetryConfig = getRetryConfig; +async function getRetryConfig(err) { + let config = getConfig(err); + if (!err || !err.config || (!config && !err.config.retry)) { + return { shouldRetry: false }; + } + config = config || {}; + config.currentRetryAttempt = config.currentRetryAttempt || 0; + config.retry = + config.retry === undefined || config.retry === null ? 3 : config.retry; + config.httpMethodsToRetry = config.httpMethodsToRetry || [ + 'GET', + 'HEAD', + 'PUT', + 'OPTIONS', + 'DELETE', + ]; + config.noResponseRetries = + config.noResponseRetries === undefined || config.noResponseRetries === null + ? 2 + : config.noResponseRetries; + config.retryDelayMultiplier = config.retryDelayMultiplier + ? config.retryDelayMultiplier + : 2; + config.timeOfFirstRequest = config.timeOfFirstRequest + ? config.timeOfFirstRequest + : Date.now(); + config.totalTimeout = config.totalTimeout + ? config.totalTimeout + : Number.MAX_SAFE_INTEGER; + config.maxRetryDelay = config.maxRetryDelay + ? config.maxRetryDelay + : Number.MAX_SAFE_INTEGER; + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + const retryRanges = [ + // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes + // 1xx - Retry (Informational, request still processing) + // 2xx - Do not retry (Success) + // 3xx - Do not retry (Redirect) + // 4xx - Do not retry (Client errors) + // 408 - Retry ("Request Timeout") + // 429 - Retry ("Too Many Requests") + // 5xx - Retry (Server errors) + [100, 199], + [408, 408], + [429, 429], + [500, 599], + ]; + config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; + // Put the config back into the err + err.config.retryConfig = config; + // Determine if we should retry the request + const shouldRetryFn = config.shouldRetry || shouldRetryRequest; + if (!(await shouldRetryFn(err))) { + return { shouldRetry: false, config: err.config }; + } + const delay = getNextRetryDelay(config); + // We're going to retry! Incremenent the counter. + err.config.retryConfig.currentRetryAttempt += 1; + // Create a promise that invokes the retry after the backOffDelay + const backoff = config.retryBackoff + ? config.retryBackoff(err, delay) + : new Promise(resolve => { + setTimeout(resolve, delay); + }); + // Notify the user if they added an `onRetryAttempt` handler + if (config.onRetryAttempt) { + config.onRetryAttempt(err); + } + // Return the promise in which recalls Gaxios to retry the request + await backoff; + return { shouldRetry: true, config: err.config }; +} +/** + * Determine based on config if we should retry the request. + * @param err The GaxiosError passed to the interceptor. + */ +function shouldRetryRequest(err) { + var _a; + const config = getConfig(err); + // node-fetch raises an AbortError if signaled: + // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal + if (err.name === 'AbortError' || ((_a = err.error) === null || _a === void 0 ? void 0 : _a.name) === 'AbortError') { + return false; + } + // If there's no config, or retries are disabled, return. + if (!config || config.retry === 0) { + return false; + } + // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) + if (!err.response && + (config.currentRetryAttempt || 0) >= config.noResponseRetries) { + return false; + } + // Only retry with configured HttpMethods. + if (!err.config.method || + config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { + return false; + } + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + if (err.response && err.response.status) { + let isInRange = false; + for (const [min, max] of config.statusCodesToRetry) { + const status = err.response.status; + if (status >= min && status <= max) { + isInRange = true; + break; + } + } + if (!isInRange) { + return false; + } + } + // If we are out of retry attempts, return + config.currentRetryAttempt = config.currentRetryAttempt || 0; + if (config.currentRetryAttempt >= config.retry) { + return false; + } + return true; +} +/** + * Acquire the raxConfig object from an GaxiosError if available. + * @param err The Gaxios error with a config object. + */ +function getConfig(err) { + if (err && err.config && err.config.retryConfig) { + return err.config.retryConfig; + } + return; +} +/** + * Gets the delay to wait before the next retry. + * + * @param {RetryConfig} config The current set of retry options + * @returns {number} the amount of ms to wait before the next retry attempt. + */ +function getNextRetryDelay(config) { + var _a; + // Calculate time to wait with exponential backoff. + // If this is the first retry, look for a configured retryDelay. + const retryDelay = config.currentRetryAttempt ? 0 : (_a = config.retryDelay) !== null && _a !== void 0 ? _a : 100; + // Formula: retryDelay + ((retryDelayMultiplier^currentRetryAttempt - 1 / 2) * 1000) + const calculatedDelay = retryDelay + + ((Math.pow(config.retryDelayMultiplier, config.currentRetryAttempt) - 1) / + 2) * + 1000; + const maxAllowableDelay = config.totalTimeout - (Date.now() - config.timeOfFirstRequest); + return Math.min(calculatedDelay, maxAllowableDelay, config.maxRetryDelay); +} +//# sourceMappingURL=retry.js.map + +/***/ }), + +/***/ 90218: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2023 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pkg = void 0; +exports.pkg = __nccwpck_require__(34761); +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 84566: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GCE_LINUX_BIOS_PATHS = void 0; +exports.isGoogleCloudServerless = isGoogleCloudServerless; +exports.isGoogleComputeEngineLinux = isGoogleComputeEngineLinux; +exports.isGoogleComputeEngineMACAddress = isGoogleComputeEngineMACAddress; +exports.isGoogleComputeEngine = isGoogleComputeEngine; +exports.detectGCPResidency = detectGCPResidency; +const fs_1 = __nccwpck_require__(79896); +const os_1 = __nccwpck_require__(70857); +/** + * Known paths unique to Google Compute Engine Linux instances + */ +exports.GCE_LINUX_BIOS_PATHS = { + BIOS_DATE: '/sys/class/dmi/id/bios_date', + BIOS_VENDOR: '/sys/class/dmi/id/bios_vendor', +}; +const GCE_MAC_ADDRESS_REGEX = /^42:01/; +/** + * Determines if the process is running on a Google Cloud Serverless environment (Cloud Run or Cloud Functions instance). + * + * Uses the: + * - {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. + * - {@link https://cloud.google.com/functions/docs/env-var Cloud Functions environment variables}. + * + * @returns {boolean} `true` if the process is running on GCP serverless, `false` otherwise. + */ +function isGoogleCloudServerless() { + /** + * `CLOUD_RUN_JOB` is used for Cloud Run Jobs + * - See {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. + * + * `FUNCTION_NAME` is used in older Cloud Functions environments: + * - See {@link https://cloud.google.com/functions/docs/env-var Python 3.7 and Go 1.11}. + * + * `K_SERVICE` is used in Cloud Run and newer Cloud Functions environments: + * - See {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. + * - See {@link https://cloud.google.com/functions/docs/env-var Cloud Functions newer runtimes}. + */ + const isGFEnvironment = process.env.CLOUD_RUN_JOB || + process.env.FUNCTION_NAME || + process.env.K_SERVICE; + return !!isGFEnvironment; +} +/** + * Determines if the process is running on a Linux Google Compute Engine instance. + * + * @returns {boolean} `true` if the process is running on Linux GCE, `false` otherwise. + */ +function isGoogleComputeEngineLinux() { + if ((0, os_1.platform)() !== 'linux') + return false; + try { + // ensure this file exist + (0, fs_1.statSync)(exports.GCE_LINUX_BIOS_PATHS.BIOS_DATE); + // ensure this file exist and matches + const biosVendor = (0, fs_1.readFileSync)(exports.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR, 'utf8'); + return /Google/.test(biosVendor); + } + catch (_a) { + return false; + } +} +/** + * Determines if the process is running on a Google Compute Engine instance with a known + * MAC address. + * + * @returns {boolean} `true` if the process is running on GCE (as determined by MAC address), `false` otherwise. + */ +function isGoogleComputeEngineMACAddress() { + const interfaces = (0, os_1.networkInterfaces)(); + for (const item of Object.values(interfaces)) { + if (!item) + continue; + for (const { mac } of item) { + if (GCE_MAC_ADDRESS_REGEX.test(mac)) { + return true; + } + } + } + return false; +} +/** + * Determines if the process is running on a Google Compute Engine instance. + * + * @returns {boolean} `true` if the process is running on GCE, `false` otherwise. + */ +function isGoogleComputeEngine() { + return isGoogleComputeEngineLinux() || isGoogleComputeEngineMACAddress(); +} +/** + * Determines if the process is running on Google Cloud Platform. + * + * @returns {boolean} `true` if the process is running on GCP, `false` otherwise. + */ +function detectGCPResidency() { + return isGoogleCloudServerless() || isGoogleComputeEngine(); +} +//# sourceMappingURL=gcp-residency.js.map + +/***/ }), + +/***/ 87045: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.gcpResidencyCache = exports.METADATA_SERVER_DETECTION = exports.HEADERS = exports.HEADER_VALUE = exports.HEADER_NAME = exports.SECONDARY_HOST_ADDRESS = exports.HOST_ADDRESS = exports.BASE_PATH = void 0; +exports.instance = instance; +exports.project = project; +exports.universe = universe; +exports.bulk = bulk; +exports.isAvailable = isAvailable; +exports.resetIsAvailableCache = resetIsAvailableCache; +exports.getGCPResidency = getGCPResidency; +exports.setGCPResidency = setGCPResidency; +exports.requestTimeout = requestTimeout; +const gaxios_1 = __nccwpck_require__(9024); +const jsonBigint = __nccwpck_require__(18857); +const gcp_residency_1 = __nccwpck_require__(84566); +const logger = __nccwpck_require__(1556); +exports.BASE_PATH = '/computeMetadata/v1'; +exports.HOST_ADDRESS = 'http://169.254.169.254'; +exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; +exports.HEADER_NAME = 'Metadata-Flavor'; +exports.HEADER_VALUE = 'Google'; +exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); +const log = logger.log('gcp metadata'); +/** + * Metadata server detection override options. + * + * Available via `process.env.METADATA_SERVER_DETECTION`. + */ +exports.METADATA_SERVER_DETECTION = Object.freeze({ + 'assume-present': "don't try to ping the metadata server, but assume it's present", + none: "don't try to ping the metadata server, but don't try to use it either", + 'bios-only': "treat the result of a BIOS probe as canonical (don't fall back to pinging)", + 'ping-only': 'skip the BIOS probe, and go straight to pinging', +}); +/** + * Returns the base URL while taking into account the GCE_METADATA_HOST + * environment variable if it exists. + * + * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. + */ +function getBaseUrl(baseUrl) { + if (!baseUrl) { + baseUrl = + process.env.GCE_METADATA_IP || + process.env.GCE_METADATA_HOST || + exports.HOST_ADDRESS; + } + // If no scheme is provided default to HTTP: + if (!/^https?:\/\//.test(baseUrl)) { + baseUrl = `http://${baseUrl}`; + } + return new URL(exports.BASE_PATH, baseUrl).href; +} +// Accepts an options object passed from the user to the API. In previous +// versions of the API, it referred to a `Request` or an `Axios` request +// options object. Now it refers to an object with very limited property +// names. This is here to help ensure users don't pass invalid options when +// they upgrade from 0.4 to 0.5 to 0.8. +function validate(options) { + Object.keys(options).forEach(key => { + switch (key) { + case 'params': + case 'property': + case 'headers': + break; + case 'qs': + throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); + default: + throw new Error(`'${key}' is not a valid configuration option.`); + } + }); +} +async function metadataAccessor(type, options = {}, noResponseRetries = 3, fastFail = false) { + let metadataKey = ''; + let params = {}; + let headers = {}; + if (typeof type === 'object') { + const metadataAccessor = type; + metadataKey = metadataAccessor.metadataKey; + params = metadataAccessor.params || params; + headers = metadataAccessor.headers || headers; + noResponseRetries = metadataAccessor.noResponseRetries || noResponseRetries; + fastFail = metadataAccessor.fastFail || fastFail; + } + else { + metadataKey = type; + } + if (typeof options === 'string') { + metadataKey += `/${options}`; + } + else { + validate(options); + if (options.property) { + metadataKey += `/${options.property}`; + } + headers = options.headers || headers; + params = options.params || params; + } + const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; + const req = { + url: `${getBaseUrl()}/${metadataKey}`, + headers: { ...exports.HEADERS, ...headers }, + retryConfig: { noResponseRetries }, + params, + responseType: 'text', + timeout: requestTimeout(), + }; + log.info('instance request %j', req); + const res = await requestMethod(req); + log.info('instance metadata is %s', res.data); + // NOTE: node.js converts all incoming headers to lower case. + if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { + throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header. Expected '${exports.HEADER_VALUE}', got ${res.headers[exports.HEADER_NAME.toLowerCase()] ? `'${res.headers[exports.HEADER_NAME.toLowerCase()]}'` : 'no header'}`); + } + if (typeof res.data === 'string') { + try { + return jsonBigint.parse(res.data); + } + catch (_a) { + /* ignore */ + } + } + return res.data; +} +async function fastFailMetadataRequest(options) { + var _a; + const secondaryOptions = { + ...options, + url: (_a = options.url) === null || _a === void 0 ? void 0 : _a.toString().replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), + }; + // We race a connection between DNS/IP to metadata server. There are a couple + // reasons for this: + // + // 1. the DNS is slow in some GCP environments; by checking both, we might + // detect the runtime environment signficantly faster. + // 2. we can't just check the IP, which is tarpitted and slow to respond + // on a user's local machine. + // + // Additional logic has been added to make sure that we don't create an + // unhandled rejection in scenarios where a failure happens sometime + // after a success. + // + // Note, however, if a failure happens prior to a success, a rejection should + // occur, this is for folks running locally. + // + let responded = false; + const r1 = (0, gaxios_1.request)(options) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r2; + } + else { + responded = true; + throw err; + } + }); + const r2 = (0, gaxios_1.request)(secondaryOptions) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r1; + } + else { + responded = true; + throw err; + } + }); + return Promise.race([r1, r2]); +} +/** + * Obtain metadata for the current GCE instance. + * + * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} + * + * @example + * ``` + * const serviceAccount: {} = await instance('service-accounts/'); + * const serviceAccountEmail: string = await instance('service-accounts/default/email'); + * ``` + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function instance(options) { + return metadataAccessor('instance', options); +} +/** + * Obtain metadata for the current GCP project. + * + * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} + * + * @example + * ``` + * const projectId: string = await project('project-id'); + * const numericProjectId: number = await project('numeric-project-id'); + * ``` + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function project(options) { + return metadataAccessor('project', options); +} +/** + * Obtain metadata for the current universe. + * + * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} + * + * @example + * ``` + * const universeDomain: string = await universe('universe-domain'); + * ``` + */ +function universe(options) { + return metadataAccessor('universe', options); +} +/** + * Retrieve metadata items in parallel. + * + * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} + * + * @example + * ``` + * const data = await bulk([ + * { + * metadataKey: 'instance', + * }, + * { + * metadataKey: 'project/project-id', + * }, + * ] as const); + * + * // data.instance; + * // data['project/project-id']; + * ``` + * + * @param properties The metadata properties to retrieve + * @returns The metadata in `metadatakey:value` format + */ +async function bulk(properties) { + const r = {}; + await Promise.all(properties.map(item => { + return (async () => { + const res = await metadataAccessor(item); + const key = item.metadataKey; + r[key] = res; + })(); + })); + return r; +} +/* + * How many times should we retry detecting GCP environment. + */ +function detectGCPAvailableRetries() { + return process.env.DETECT_GCP_RETRIES + ? Number(process.env.DETECT_GCP_RETRIES) + : 0; +} +let cachedIsAvailableResponse; +/** + * Determine if the metadata server is currently available. + */ +async function isAvailable() { + if (process.env.METADATA_SERVER_DETECTION) { + const value = process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase(); + if (!(value in exports.METADATA_SERVER_DETECTION)) { + throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${value}\`, but it should be \`${Object.keys(exports.METADATA_SERVER_DETECTION).join('`, `')}\`, or unset`); + } + switch (value) { + case 'assume-present': + return true; + case 'none': + return false; + case 'bios-only': + return getGCPResidency(); + case 'ping-only': + // continue, we want to ping the server + } + } + try { + // If a user is instantiating several GCP libraries at the same time, + // this may result in multiple calls to isAvailable(), to detect the + // runtime environment. We use the same promise for each of these calls + // to reduce the network load. + if (cachedIsAvailableResponse === undefined) { + cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), + // If the default HOST_ADDRESS has been overridden, we should not + // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in + // a non-GCP environment): + !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST)); + } + await cachedIsAvailableResponse; + return true; + } + catch (e) { + const err = e; + if (process.env.DEBUG_AUTH) { + console.info(err); + } + if (err.type === 'request-timeout') { + // If running in a GCP environment, metadata endpoint should return + // within ms. + return false; + } + if (err.response && err.response.status === 404) { + return false; + } + else { + if (!(err.response && err.response.status === 404) && + // A warning is emitted if we see an unexpected err.code, or err.code + // is not populated: + (!err.code || + ![ + 'EHOSTDOWN', + 'EHOSTUNREACH', + 'ENETUNREACH', + 'ENOENT', + 'ENOTFOUND', + 'ECONNREFUSED', + ].includes(err.code))) { + let code = 'UNKNOWN'; + if (err.code) + code = err.code; + process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); + } + // Failure to resolve the metadata service means that it is not available. + return false; + } + } +} +/** + * reset the memoized isAvailable() lookup. + */ +function resetIsAvailableCache() { + cachedIsAvailableResponse = undefined; +} +/** + * A cache for the detected GCP Residency. + */ +exports.gcpResidencyCache = null; +/** + * Detects GCP Residency. + * Caches results to reduce costs for subsequent calls. + * + * @see setGCPResidency for setting + */ +function getGCPResidency() { + if (exports.gcpResidencyCache === null) { + setGCPResidency(); + } + return exports.gcpResidencyCache; +} +/** + * Sets the detected GCP Residency. + * Useful for forcing metadata server detection behavior. + * + * Set `null` to autodetect the environment (default behavior). + * @see getGCPResidency for getting + */ +function setGCPResidency(value = null) { + exports.gcpResidencyCache = value !== null ? value : (0, gcp_residency_1.detectGCPResidency)(); +} +/** + * Obtain the timeout for requests to the metadata server. + * + * In certain environments and conditions requests can take longer than + * the default timeout to complete. This function will determine the + * appropriate timeout based on the environment. + * + * @returns {number} a request timeout duration in milliseconds. + */ +function requestTimeout() { + return getGCPResidency() ? 0 : 3000; +} +__exportStar(__nccwpck_require__(84566), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 60611: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2012 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthClient = exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS = exports.DEFAULT_UNIVERSE = void 0; +const events_1 = __nccwpck_require__(24434); +const gaxios_1 = __nccwpck_require__(9024); +const transporters_1 = __nccwpck_require__(55714); +const util_1 = __nccwpck_require__(30261); +/** + * The default cloud universe + * + * @see {@link AuthJSONOptions.universe_domain} + */ +exports.DEFAULT_UNIVERSE = 'googleapis.com'; +/** + * The default {@link AuthClientOptions.eagerRefreshThresholdMillis} + */ +exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS = 5 * 60 * 1000; +class AuthClient extends events_1.EventEmitter { + constructor(opts = {}) { + var _a, _b, _c, _d, _e; + super(); + this.credentials = {}; + this.eagerRefreshThresholdMillis = exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS; + this.forceRefreshOnFailure = false; + this.universeDomain = exports.DEFAULT_UNIVERSE; + const options = (0, util_1.originalOrCamelOptions)(opts); + // Shared auth options + this.apiKey = opts.apiKey; + this.projectId = (_a = options.get('project_id')) !== null && _a !== void 0 ? _a : null; + this.quotaProjectId = options.get('quota_project_id'); + this.credentials = (_b = options.get('credentials')) !== null && _b !== void 0 ? _b : {}; + this.universeDomain = (_c = options.get('universe_domain')) !== null && _c !== void 0 ? _c : exports.DEFAULT_UNIVERSE; + // Shared client options + this.transporter = (_d = opts.transporter) !== null && _d !== void 0 ? _d : new transporters_1.DefaultTransporter(); + if (opts.transporterOptions) { + this.transporter.defaults = opts.transporterOptions; + } + if (opts.eagerRefreshThresholdMillis) { + this.eagerRefreshThresholdMillis = opts.eagerRefreshThresholdMillis; + } + this.forceRefreshOnFailure = (_e = opts.forceRefreshOnFailure) !== null && _e !== void 0 ? _e : false; + } + /** + * Return the {@link Gaxios `Gaxios`} instance from the {@link AuthClient.transporter}. + * + * @expiremental + */ + get gaxios() { + if (this.transporter instanceof gaxios_1.Gaxios) { + return this.transporter; + } + else if (this.transporter instanceof transporters_1.DefaultTransporter) { + return this.transporter.instance; + } + else if ('instance' in this.transporter && + this.transporter.instance instanceof gaxios_1.Gaxios) { + return this.transporter.instance; + } + return null; + } + /** + * Sets the auth credentials. + */ + setCredentials(credentials) { + this.credentials = credentials; + } + /** + * Append additional headers, e.g., x-goog-user-project, shared across the + * classes inheriting AuthClient. This method should be used by any method + * that overrides getRequestMetadataAsync(), which is a shared helper for + * setting request information in both gRPC and HTTP API calls. + * + * @param headers object to append additional headers to. + */ + addSharedMetadataHeaders(headers) { + // quota_project_id, stored in application_default_credentials.json, is set in + // the x-goog-user-project header, to indicate an alternate account for + // billing and quota: + if (!headers['x-goog-user-project'] && // don't override a value the user sets. + this.quotaProjectId) { + headers['x-goog-user-project'] = this.quotaProjectId; + } + return headers; + } + /** + * Retry config for Auth-related requests. + * + * @remarks + * + * This is not a part of the default {@link AuthClient.transporter transporter/gaxios} + * config as some downstream APIs would prefer if customers explicitly enable retries, + * such as GCS. + */ + static get RETRY_CONFIG() { + return { + retry: true, + retryConfig: { + httpMethodsToRetry: ['GET', 'PUT', 'POST', 'HEAD', 'OPTIONS', 'DELETE'], + }, + }; + } +} +exports.AuthClient = AuthClient; + + +/***/ }), + +/***/ 18746: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var _a, _AwsClient_DEFAULT_AWS_REGIONAL_CREDENTIAL_VERIFICATION_URL; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsClient = void 0; +const awsrequestsigner_1 = __nccwpck_require__(48286); +const baseexternalclient_1 = __nccwpck_require__(92163); +const defaultawssecuritycredentialssupplier_1 = __nccwpck_require__(53302); +const util_1 = __nccwpck_require__(30261); +/** + * AWS external account client. This is used for AWS workloads, where + * AWS STS GetCallerIdentity serialized signed requests are exchanged for + * GCP access token. + */ +class AwsClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiates an AwsClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid AWS credential. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions **DEPRECATED, all options are available in the + * `options` parameter.** Optional additional behavior customization options. + * These currently customize expiration threshold time and whether to retry + * on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + super(options, additionalOptions); + const opts = (0, util_1.originalOrCamelOptions)(options); + const credentialSource = opts.get('credential_source'); + const awsSecurityCredentialsSupplier = opts.get('aws_security_credentials_supplier'); + // Validate credential sourcing configuration. + if (!credentialSource && !awsSecurityCredentialsSupplier) { + throw new Error('A credential source or AWS security credentials supplier must be specified.'); + } + if (credentialSource && awsSecurityCredentialsSupplier) { + throw new Error('Only one of credential source or AWS security credentials supplier can be specified.'); + } + if (awsSecurityCredentialsSupplier) { + this.awsSecurityCredentialsSupplier = awsSecurityCredentialsSupplier; + this.regionalCredVerificationUrl = + __classPrivateFieldGet(_a, _a, "f", _AwsClient_DEFAULT_AWS_REGIONAL_CREDENTIAL_VERIFICATION_URL); + this.credentialSourceType = 'programmatic'; + } + else { + const credentialSourceOpts = (0, util_1.originalOrCamelOptions)(credentialSource); + this.environmentId = credentialSourceOpts.get('environment_id'); + // This is only required if the AWS region is not available in the + // AWS_REGION or AWS_DEFAULT_REGION environment variables. + const regionUrl = credentialSourceOpts.get('region_url'); + // This is only required if AWS security credentials are not available in + // environment variables. + const securityCredentialsUrl = credentialSourceOpts.get('url'); + const imdsV2SessionTokenUrl = credentialSourceOpts.get('imdsv2_session_token_url'); + this.awsSecurityCredentialsSupplier = + new defaultawssecuritycredentialssupplier_1.DefaultAwsSecurityCredentialsSupplier({ + regionUrl: regionUrl, + securityCredentialsUrl: securityCredentialsUrl, + imdsV2SessionTokenUrl: imdsV2SessionTokenUrl, + }); + this.regionalCredVerificationUrl = credentialSourceOpts.get('regional_cred_verification_url'); + this.credentialSourceType = 'aws'; + // Data validators. + this.validateEnvironmentId(); + } + this.awsRequestSigner = null; + this.region = ''; + } + validateEnvironmentId() { + var _b; + const match = (_b = this.environmentId) === null || _b === void 0 ? void 0 : _b.match(/^(aws)(\d+)$/); + if (!match || !this.regionalCredVerificationUrl) { + throw new Error('No valid AWS "credential_source" provided'); + } + else if (parseInt(match[2], 10) !== 1) { + throw new Error(`aws version "${match[2]}" is not supported in the current build.`); + } + } + /** + * Triggered when an external subject token is needed to be exchanged for a + * GCP access token via GCP STS endpoint. This will call the + * {@link AwsSecurityCredentialsSupplier} to retrieve an AWS region and AWS + * Security Credentials, then use them to create a signed AWS STS request that + * can be exchanged for a GCP access token. + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + // Initialize AWS request signer if not already initialized. + if (!this.awsRequestSigner) { + this.region = await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext); + this.awsRequestSigner = new awsrequestsigner_1.AwsRequestSigner(async () => { + return this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext); + }, this.region); + } + // Generate signed request to AWS STS GetCallerIdentity API. + // Use the required regional endpoint. Otherwise, the request will fail. + const options = await this.awsRequestSigner.getRequestOptions({ + ..._a.RETRY_CONFIG, + url: this.regionalCredVerificationUrl.replace('{region}', this.region), + method: 'POST', + }); + // The GCP STS endpoint expects the headers to be formatted as: + // [ + // {key: 'x-amz-date', value: '...'}, + // {key: 'Authorization', value: '...'}, + // ... + // ] + // And then serialized as: + // encodeURIComponent(JSON.stringify({ + // url: '...', + // method: 'POST', + // headers: [{key: 'x-amz-date', value: '...'}, ...] + // })) + const reformattedHeader = []; + const extendedHeaders = Object.assign({ + // The full, canonical resource name of the workload identity pool + // provider, with or without the HTTPS prefix. + // Including this header as part of the signature is recommended to + // ensure data integrity. + 'x-goog-cloud-target-resource': this.audience, + }, options.headers); + // Reformat header to GCP STS expected format. + for (const key in extendedHeaders) { + reformattedHeader.push({ + key, + value: extendedHeaders[key], + }); + } + // Serialize the reformatted signed request. + return encodeURIComponent(JSON.stringify({ + url: options.url, + method: options.method, + headers: reformattedHeader, + })); + } +} +exports.AwsClient = AwsClient; +_a = AwsClient; +_AwsClient_DEFAULT_AWS_REGIONAL_CREDENTIAL_VERIFICATION_URL = { value: 'https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15' }; +/** + * @deprecated AWS client no validates the EC2 metadata address. + **/ +AwsClient.AWS_EC2_METADATA_IPV4_ADDRESS = '169.254.169.254'; +/** + * @deprecated AWS client no validates the EC2 metadata address. + **/ +AwsClient.AWS_EC2_METADATA_IPV6_ADDRESS = 'fd00:ec2::254'; + + +/***/ }), + +/***/ 48286: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsRequestSigner = void 0; +const crypto_1 = __nccwpck_require__(71566); +/** AWS Signature Version 4 signing algorithm identifier. */ +const AWS_ALGORITHM = 'AWS4-HMAC-SHA256'; +/** + * The termination string for the AWS credential scope value as defined in + * https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html + */ +const AWS_REQUEST_TYPE = 'aws4_request'; +/** + * Implements an AWS API request signer based on the AWS Signature Version 4 + * signing process. + * https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + */ +class AwsRequestSigner { + /** + * Instantiates an AWS API request signer used to send authenticated signed + * requests to AWS APIs based on the AWS Signature Version 4 signing process. + * This also provides a mechanism to generate the signed request without + * sending it. + * @param getCredentials A mechanism to retrieve AWS security credentials + * when needed. + * @param region The AWS region to use. + */ + constructor(getCredentials, region) { + this.getCredentials = getCredentials; + this.region = region; + this.crypto = (0, crypto_1.createCrypto)(); + } + /** + * Generates the signed request for the provided HTTP request for calling + * an AWS API. This follows the steps described at: + * https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html + * @param amzOptions The AWS request options that need to be signed. + * @return A promise that resolves with the GaxiosOptions containing the + * signed HTTP request parameters. + */ + async getRequestOptions(amzOptions) { + if (!amzOptions.url) { + throw new Error('"url" is required in "amzOptions"'); + } + // Stringify JSON requests. This will be set in the request body of the + // generated signed request. + const requestPayloadData = typeof amzOptions.data === 'object' + ? JSON.stringify(amzOptions.data) + : amzOptions.data; + const url = amzOptions.url; + const method = amzOptions.method || 'GET'; + const requestPayload = amzOptions.body || requestPayloadData; + const additionalAmzHeaders = amzOptions.headers; + const awsSecurityCredentials = await this.getCredentials(); + const uri = new URL(url); + const headerMap = await generateAuthenticationHeaderMap({ + crypto: this.crypto, + host: uri.host, + canonicalUri: uri.pathname, + canonicalQuerystring: uri.search.substr(1), + method, + region: this.region, + securityCredentials: awsSecurityCredentials, + requestPayload, + additionalAmzHeaders, + }); + // Append additional optional headers, eg. X-Amz-Target, Content-Type, etc. + const headers = Object.assign( + // Add x-amz-date if available. + headerMap.amzDate ? { 'x-amz-date': headerMap.amzDate } : {}, { + Authorization: headerMap.authorizationHeader, + host: uri.host, + }, additionalAmzHeaders || {}); + if (awsSecurityCredentials.token) { + Object.assign(headers, { + 'x-amz-security-token': awsSecurityCredentials.token, + }); + } + const awsSignedReq = { + url, + method: method, + headers, + }; + if (typeof requestPayload !== 'undefined') { + awsSignedReq.body = requestPayload; + } + return awsSignedReq; + } +} +exports.AwsRequestSigner = AwsRequestSigner; +/** + * Creates the HMAC-SHA256 hash of the provided message using the + * provided key. + * + * @param crypto The crypto instance used to facilitate cryptographic + * operations. + * @param key The HMAC-SHA256 key to use. + * @param msg The message to hash. + * @return The computed hash bytes. + */ +async function sign(crypto, key, msg) { + return await crypto.signWithHmacSha256(key, msg); +} +/** + * Calculates the signing key used to calculate the signature for + * AWS Signature Version 4 based on: + * https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + * + * @param crypto The crypto instance used to facilitate cryptographic + * operations. + * @param key The AWS secret access key. + * @param dateStamp The '%Y%m%d' date format. + * @param region The AWS region. + * @param serviceName The AWS service name, eg. sts. + * @return The signing key bytes. + */ +async function getSigningKey(crypto, key, dateStamp, region, serviceName) { + const kDate = await sign(crypto, `AWS4${key}`, dateStamp); + const kRegion = await sign(crypto, kDate, region); + const kService = await sign(crypto, kRegion, serviceName); + const kSigning = await sign(crypto, kService, 'aws4_request'); + return kSigning; +} +/** + * Generates the authentication header map needed for generating the AWS + * Signature Version 4 signed request. + * + * @param option The options needed to compute the authentication header map. + * @return The AWS authentication header map which constitutes of the following + * components: amz-date, authorization header and canonical query string. + */ +async function generateAuthenticationHeaderMap(options) { + const additionalAmzHeaders = options.additionalAmzHeaders || {}; + const requestPayload = options.requestPayload || ''; + // iam.amazonaws.com host => iam service. + // sts.us-east-2.amazonaws.com => sts service. + const serviceName = options.host.split('.')[0]; + const now = new Date(); + // Format: '%Y%m%dT%H%M%SZ'. + const amzDate = now + .toISOString() + .replace(/[-:]/g, '') + .replace(/\.[0-9]+/, ''); + // Format: '%Y%m%d'. + const dateStamp = now.toISOString().replace(/[-]/g, '').replace(/T.*/, ''); + // Change all additional headers to be lower case. + const reformattedAdditionalAmzHeaders = {}; + Object.keys(additionalAmzHeaders).forEach(key => { + reformattedAdditionalAmzHeaders[key.toLowerCase()] = + additionalAmzHeaders[key]; + }); + // Add AWS token if available. + if (options.securityCredentials.token) { + reformattedAdditionalAmzHeaders['x-amz-security-token'] = + options.securityCredentials.token; + } + // Header keys need to be sorted alphabetically. + const amzHeaders = Object.assign({ + host: options.host, + }, + // Previously the date was not fixed with x-amz- and could be provided manually. + // https://github.com/boto/botocore/blob/879f8440a4e9ace5d3cf145ce8b3d5e5ffb892ef/tests/unit/auth/aws4_testsuite/get-header-value-trim.req + reformattedAdditionalAmzHeaders.date ? {} : { 'x-amz-date': amzDate }, reformattedAdditionalAmzHeaders); + let canonicalHeaders = ''; + const signedHeadersList = Object.keys(amzHeaders).sort(); + signedHeadersList.forEach(key => { + canonicalHeaders += `${key}:${amzHeaders[key]}\n`; + }); + const signedHeaders = signedHeadersList.join(';'); + const payloadHash = await options.crypto.sha256DigestHex(requestPayload); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html + const canonicalRequest = `${options.method}\n` + + `${options.canonicalUri}\n` + + `${options.canonicalQuerystring}\n` + + `${canonicalHeaders}\n` + + `${signedHeaders}\n` + + `${payloadHash}`; + const credentialScope = `${dateStamp}/${options.region}/${serviceName}/${AWS_REQUEST_TYPE}`; + // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html + const stringToSign = `${AWS_ALGORITHM}\n` + + `${amzDate}\n` + + `${credentialScope}\n` + + (await options.crypto.sha256DigestHex(canonicalRequest)); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName); + const signature = await sign(options.crypto, signingKey, stringToSign); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html + const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/` + + `${credentialScope}, SignedHeaders=${signedHeaders}, ` + + `Signature=${(0, crypto_1.fromArrayBufferToHex)(signature)}`; + return { + // Do not return x-amz-date if date is available. + amzDate: reformattedAdditionalAmzHeaders.date ? undefined : amzDate, + authorizationHeader, + canonicalQuerystring: options.canonicalQuerystring, + }; +} + + +/***/ }), + +/***/ 92163: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +}; +var _BaseExternalAccountClient_instances, _BaseExternalAccountClient_pendingAccessToken, _BaseExternalAccountClient_internalRefreshAccessTokenAsync; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseExternalAccountClient = exports.DEFAULT_UNIVERSE = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0; +const stream = __nccwpck_require__(2203); +const authclient_1 = __nccwpck_require__(60611); +const sts = __nccwpck_require__(52548); +const util_1 = __nccwpck_require__(30261); +/** + * The required token exchange grant_type: rfc8693#section-2.1 + */ +const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; +/** + * The requested token exchange requested_token_type: rfc8693#section-2.1 + */ +const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** The default OAuth scope to request when none is provided. */ +const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; +/** Default impersonated token lifespan in seconds.*/ +const DEFAULT_TOKEN_LIFESPAN = 3600; +/** + * Offset to take into account network delays and server clock skews. + */ +exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +/** + * The credentials JSON file type for external account clients. + * There are 3 types of JSON configs: + * 1. authorized_user => Google end user credential + * 2. service_account => Google service account credential + * 3. external_Account => non-GCP service (eg. AWS, Azure, K8s) + */ +exports.EXTERNAL_ACCOUNT_TYPE = 'external_account'; +/** + * Cloud resource manager URL used to retrieve project information. + * + * @deprecated use {@link BaseExternalAccountClient.cloudResourceManagerURL} instead + **/ +exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/'; +/** The workforce audience pattern. */ +const WORKFORCE_AUDIENCE_PATTERN = '//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+'; +const DEFAULT_TOKEN_URL = 'https://sts.{universeDomain}/v1/token'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(86088); +/** + * For backwards compatibility. + */ +var authclient_2 = __nccwpck_require__(60611); +Object.defineProperty(exports, "DEFAULT_UNIVERSE", ({ enumerable: true, get: function () { return authclient_2.DEFAULT_UNIVERSE; } })); +/** + * Base external account client. This is used to instantiate AuthClients for + * exchanging external account credentials for GCP access token and authorizing + * requests to GCP APIs. + * The base class implements common logic for exchanging various type of + * external credentials for GCP access token. The logic of determining and + * retrieving the external credential based on the environment and + * credential_source will be left for the subclasses. + */ +class BaseExternalAccountClient extends authclient_1.AuthClient { + /** + * Instantiate a BaseExternalAccountClient instance using the provided JSON + * object loaded from an external account credentials file. + * @param options The external account options object typically loaded + * from the external account JSON credential file. The camelCased options + * are aliases for the snake_cased options. + * @param additionalOptions **DEPRECATED, all options are available in the + * `options` parameter.** Optional additional behavior customization options. + * These currently customize expiration threshold time and whether to retry + * on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + var _a; + super({ ...options, ...additionalOptions }); + _BaseExternalAccountClient_instances.add(this); + /** + * A pending access token request. Used for concurrent calls. + */ + _BaseExternalAccountClient_pendingAccessToken.set(this, null); + const opts = (0, util_1.originalOrCamelOptions)(options); + const type = opts.get('type'); + if (type && type !== exports.EXTERNAL_ACCOUNT_TYPE) { + throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` + + `received "${options.type}"`); + } + const clientId = opts.get('client_id'); + const clientSecret = opts.get('client_secret'); + const tokenUrl = (_a = opts.get('token_url')) !== null && _a !== void 0 ? _a : DEFAULT_TOKEN_URL.replace('{universeDomain}', this.universeDomain); + const subjectTokenType = opts.get('subject_token_type'); + const workforcePoolUserProject = opts.get('workforce_pool_user_project'); + const serviceAccountImpersonationUrl = opts.get('service_account_impersonation_url'); + const serviceAccountImpersonation = opts.get('service_account_impersonation'); + const serviceAccountImpersonationLifetime = (0, util_1.originalOrCamelOptions)(serviceAccountImpersonation).get('token_lifetime_seconds'); + this.cloudResourceManagerURL = new URL(opts.get('cloud_resource_manager_url') || + `https://cloudresourcemanager.${this.universeDomain}/v1/projects/`); + if (clientId) { + this.clientAuth = { + confidentialClientType: 'basic', + clientId, + clientSecret, + }; + } + this.stsCredential = new sts.StsCredentials(tokenUrl, this.clientAuth); + this.scopes = opts.get('scopes') || [DEFAULT_OAUTH_SCOPE]; + this.cachedAccessToken = null; + this.audience = opts.get('audience'); + this.subjectTokenType = subjectTokenType; + this.workforcePoolUserProject = workforcePoolUserProject; + const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN); + if (this.workforcePoolUserProject && + !this.audience.match(workforceAudiencePattern)) { + throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' + + 'credentials.'); + } + this.serviceAccountImpersonationUrl = serviceAccountImpersonationUrl; + this.serviceAccountImpersonationLifetime = + serviceAccountImpersonationLifetime; + if (this.serviceAccountImpersonationLifetime) { + this.configLifetimeRequested = true; + } + else { + this.configLifetimeRequested = false; + this.serviceAccountImpersonationLifetime = DEFAULT_TOKEN_LIFESPAN; + } + this.projectNumber = this.getProjectNumber(this.audience); + this.supplierContext = { + audience: this.audience, + subjectTokenType: this.subjectTokenType, + transporter: this.transporter, + }; + } + /** The service account email to be impersonated, if available. */ + getServiceAccountEmail() { + var _a; + if (this.serviceAccountImpersonationUrl) { + if (this.serviceAccountImpersonationUrl.length > 256) { + /** + * Prevents DOS attacks. + * @see {@link https://github.com/googleapis/google-auth-library-nodejs/security/code-scanning/84} + **/ + throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`); + } + // Parse email from URL. The formal looks as follows: + // https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken + const re = /serviceAccounts\/(?[^:]+):generateAccessToken$/; + const result = re.exec(this.serviceAccountImpersonationUrl); + return ((_a = result === null || result === void 0 ? void 0 : result.groups) === null || _a === void 0 ? void 0 : _a.email) || null; + } + return null; + } + /** + * Provides a mechanism to inject GCP access tokens directly. + * When the provided credential expires, a new credential, using the + * external account options, is retrieved. + * @param credentials The Credentials object to set on the current client. + */ + setCredentials(credentials) { + super.setCredentials(credentials); + this.cachedAccessToken = credentials; + } + /** + * @return A promise that resolves with the current GCP access token + * response. If the current credential is expired, a new one is retrieved. + */ + async getAccessToken() { + // If cached access token is unavailable or expired, force refresh. + if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return GCP access token in GetAccessTokenResponse format. + return { + token: this.cachedAccessToken.access_token, + res: this.cachedAccessToken.res, + }; + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * The result has the form: + * { Authorization: 'Bearer ' } + */ + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * @return A promise that resolves with the project ID corresponding to the + * current workload identity pool or current workforce pool if + * determinable. For workforce pool credential, it returns the project ID + * corresponding to the workforcePoolUserProject. + * This is introduced to match the current pattern of using the Auth + * library: + * const projectId = await auth.getProjectId(); + * const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; + * const res = await client.request({ url }); + * The resource may not have permission + * (resourcemanager.projects.get) to call this API or the required + * scopes may not be selected: + * https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes + */ + async getProjectId() { + const projectNumber = this.projectNumber || this.workforcePoolUserProject; + if (this.projectId) { + // Return previously determined project ID. + return this.projectId; + } + else if (projectNumber) { + // Preferable not to use request() to avoid retrial policies. + const headers = await this.getRequestHeaders(); + const response = await this.transporter.request({ + ...BaseExternalAccountClient.RETRY_CONFIG, + headers, + url: `${this.cloudResourceManagerURL.toString()}${projectNumber}`, + responseType: 'json', + }); + this.projectId = response.data.projectId; + return this.projectId; + } + return null; + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure. + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, reAuthRetried = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!reAuthRetried && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } + } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * External credentials are exchanged for GCP access tokens via the token + * exchange endpoint and other settings provided in the client options + * object. + * If the service_account_impersonation_url is provided, an additional + * step to exchange the external account GCP access token for a service + * account impersonated token is performed. + * @return A promise that resolves with the fresh GCP access tokens. + */ + async refreshAccessTokenAsync() { + // Use an existing access token request, or cache a new one + __classPrivateFieldSet(this, _BaseExternalAccountClient_pendingAccessToken, __classPrivateFieldGet(this, _BaseExternalAccountClient_pendingAccessToken, "f") || __classPrivateFieldGet(this, _BaseExternalAccountClient_instances, "m", _BaseExternalAccountClient_internalRefreshAccessTokenAsync).call(this), "f"); + try { + return await __classPrivateFieldGet(this, _BaseExternalAccountClient_pendingAccessToken, "f"); + } + finally { + // clear pending access token for future requests + __classPrivateFieldSet(this, _BaseExternalAccountClient_pendingAccessToken, null, "f"); + } + } + /** + * Returns the workload identity pool project number if it is determinable + * from the audience resource name. + * @param audience The STS audience used to determine the project number. + * @return The project number associated with the workload identity pool, if + * this can be determined from the STS audience field. Otherwise, null is + * returned. + */ + getProjectNumber(audience) { + // STS audience pattern: + // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/... + const match = audience.match(/\/projects\/([^/]+)/); + if (!match) { + return null; + } + return match[1]; + } + /** + * Exchanges an external account GCP access token for a service + * account impersonated access token using iamcredentials + * GenerateAccessToken API. + * @param token The access token to exchange for a service account access + * token. + * @return A promise that resolves with the service account impersonated + * credentials response. + */ + async getImpersonatedAccessToken(token) { + const opts = { + ...BaseExternalAccountClient.RETRY_CONFIG, + url: this.serviceAccountImpersonationUrl, + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Authorization: `Bearer ${token}`, + }, + data: { + scope: this.getScopesArray(), + lifetime: this.serviceAccountImpersonationLifetime + 's', + }, + responseType: 'json', + }; + const response = await this.transporter.request(opts); + const successResponse = response.data; + return { + access_token: successResponse.accessToken, + // Convert from ISO format to timestamp. + expiry_date: new Date(successResponse.expireTime).getTime(), + res: response, + }; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param accessToken The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(accessToken) { + const now = new Date().getTime(); + return accessToken.expiry_date + ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis + : false; + } + /** + * @return The list of scopes for the requested GCP access token. + */ + getScopesArray() { + // Since scopes can be provided as string or array, the type should + // be normalized. + if (typeof this.scopes === 'string') { + return [this.scopes]; + } + return this.scopes || [DEFAULT_OAUTH_SCOPE]; + } + getMetricsHeaderValue() { + const nodeVersion = process.version.replace(/^v/, ''); + const saImpersonation = this.serviceAccountImpersonationUrl !== undefined; + const credentialSourceType = this.credentialSourceType + ? this.credentialSourceType + : 'unknown'; + return `gl-node/${nodeVersion} auth/${pkg.version} google-byoid-sdk source/${credentialSourceType} sa-impersonation/${saImpersonation} config-lifetime/${this.configLifetimeRequested}`; + } +} +exports.BaseExternalAccountClient = BaseExternalAccountClient; +_BaseExternalAccountClient_pendingAccessToken = new WeakMap(), _BaseExternalAccountClient_instances = new WeakSet(), _BaseExternalAccountClient_internalRefreshAccessTokenAsync = async function _BaseExternalAccountClient_internalRefreshAccessTokenAsync() { + // Retrieve the external credential. + const subjectToken = await this.retrieveSubjectToken(); + // Construct the STS credentials options. + const stsCredentialsOptions = { + grantType: STS_GRANT_TYPE, + audience: this.audience, + requestedTokenType: STS_REQUEST_TOKEN_TYPE, + subjectToken, + subjectTokenType: this.subjectTokenType, + // generateAccessToken requires the provided access token to have + // scopes: + // https://www.googleapis.com/auth/iam or + // https://www.googleapis.com/auth/cloud-platform + // The new service account access token scopes will match the user + // provided ones. + scope: this.serviceAccountImpersonationUrl + ? [DEFAULT_OAUTH_SCOPE] + : this.getScopesArray(), + }; + // Exchange the external credentials for a GCP access token. + // Client auth is prioritized over passing the workforcePoolUserProject + // parameter for STS token exchange. + const additionalOptions = !this.clientAuth && this.workforcePoolUserProject + ? { userProject: this.workforcePoolUserProject } + : undefined; + const additionalHeaders = { + 'x-goog-api-client': this.getMetricsHeaderValue(), + }; + const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, additionalHeaders, additionalOptions); + if (this.serviceAccountImpersonationUrl) { + this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token); + } + else if (stsResponse.expires_in) { + // Save response in cached access token. + this.cachedAccessToken = { + access_token: stsResponse.access_token, + expiry_date: new Date().getTime() + stsResponse.expires_in * 1000, + res: stsResponse.res, + }; + } + else { + // Save response in cached access token. + this.cachedAccessToken = { + access_token: stsResponse.access_token, + res: stsResponse.res, + }; + } + // Save credentials. + this.credentials = {}; + Object.assign(this.credentials, this.cachedAccessToken); + delete this.credentials.res; + // Trigger tokens event to notify external listeners. + this.emit('tokens', { + refresh_token: null, + expiry_date: this.cachedAccessToken.expiry_date, + access_token: this.cachedAccessToken.access_token, + token_type: 'Bearer', + id_token: null, + }); + // Return the cached access token. + return this.cachedAccessToken; +}; + + +/***/ }), + +/***/ 22790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2013 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Compute = void 0; +const gaxios_1 = __nccwpck_require__(9024); +const gcpMetadata = __nccwpck_require__(87045); +const oauth2client_1 = __nccwpck_require__(33502); +class Compute extends oauth2client_1.OAuth2Client { + /** + * Google Compute Engine service account credentials. + * + * Retrieve access token from the metadata server. + * See: https://cloud.google.com/compute/docs/access/authenticate-workloads#applications + */ + constructor(options = {}) { + super(options); + // Start with an expired refresh token, which will automatically be + // refreshed before the first API call is made. + this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; + this.serviceAccountEmail = options.serviceAccountEmail || 'default'; + this.scopes = Array.isArray(options.scopes) + ? options.scopes + : options.scopes + ? [options.scopes] + : []; + } + /** + * Refreshes the access token. + * @param refreshToken Unused parameter + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; + let data; + try { + const instanceOptions = { + property: tokenPath, + }; + if (this.scopes.length > 0) { + instanceOptions.params = { + scopes: this.scopes.join(','), + }; + } + data = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + if (e instanceof gaxios_1.GaxiosError) { + e.message = `Could not refresh access token: ${e.message}`; + this.wrapError(e); + } + throw e; + } + const tokens = data; + if (data && data.expires_in) { + tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res: null }; + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + + `?format=full&audience=${targetAudience}`; + let idToken; + try { + const instanceOptions = { + property: idTokenPath, + }; + idToken = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + if (e instanceof Error) { + e.message = `Could not fetch ID token: ${e.message}`; + } + throw e; + } + return idToken; + } + wrapError(e) { + const res = e.response; + if (res && res.status) { + e.status = res.status; + if (res.status === 403) { + e.message = + 'A Forbidden error was returned while attempting to retrieve an access ' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have the correct permission scopes specified: ' + + e.message; + } + else if (res.status === 404) { + e.message = + 'A Not Found error was returned while attempting to retrieve an access' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have any permission scopes specified: ' + + e.message; + } + } + } +} +exports.Compute = Compute; + + +/***/ }), + +/***/ 53302: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var _DefaultAwsSecurityCredentialsSupplier_instances, _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken, _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName, _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials, _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get, _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DefaultAwsSecurityCredentialsSupplier = void 0; +/** + * Internal AWS security credentials supplier implementation used by {@link AwsClient} + * when a credential source is provided instead of a user defined supplier. + * The logic is summarized as: + * 1. If imdsv2_session_token_url is provided in the credential source, then + * fetch the aws session token and include it in the headers of the + * metadata requests. This is a requirement for IDMSv2 but optional + * for IDMSv1. + * 2. Retrieve AWS region from availability-zone. + * 3a. Check AWS credentials in environment variables. If not found, get + * from security-credentials endpoint. + * 3b. Get AWS credentials from security-credentials endpoint. In order + * to retrieve this, the AWS role needs to be determined by calling + * security-credentials endpoint without any argument. Then the + * credentials can be retrieved via: security-credentials/role_name + * 4. Generate the signed request to AWS STS GetCallerIdentity action. + * 5. Inject x-goog-cloud-target-resource into header and serialize the + * signed request. This will be the subject-token to pass to GCP STS. + */ +class DefaultAwsSecurityCredentialsSupplier { + /** + * Instantiates a new DefaultAwsSecurityCredentialsSupplier using information + * from the credential_source stored in the ADC file. + * @param opts The default aws security credentials supplier options object to + * build the supplier with. + */ + constructor(opts) { + _DefaultAwsSecurityCredentialsSupplier_instances.add(this); + this.regionUrl = opts.regionUrl; + this.securityCredentialsUrl = opts.securityCredentialsUrl; + this.imdsV2SessionTokenUrl = opts.imdsV2SessionTokenUrl; + this.additionalGaxiosOptions = opts.additionalGaxiosOptions; + } + /** + * Returns the active AWS region. This first checks to see if the region + * is available as an environment variable. If it is not, then the supplier + * will call the region URL. + * @param context {@link ExternalAccountSupplierContext} from the calling + * {@link AwsClient}, contains the requested audience and subject token type + * for the external account identity. + * @return A promise that resolves with the AWS region string. + */ + async getAwsRegion(context) { + // Priority order for region determination: + // AWS_REGION > AWS_DEFAULT_REGION > metadata server. + if (__classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get)) { + return __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get); + } + const metadataHeaders = {}; + if (!__classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get) && this.imdsV2SessionTokenUrl) { + metadataHeaders['x-aws-ec2-metadata-token'] = + await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken).call(this, context.transporter); + } + if (!this.regionUrl) { + throw new Error('Unable to determine AWS region due to missing ' + + '"options.credential_source.region_url"'); + } + const opts = { + ...this.additionalGaxiosOptions, + url: this.regionUrl, + method: 'GET', + responseType: 'text', + headers: metadataHeaders, + }; + const response = await context.transporter.request(opts); + // Remove last character. For example, if us-east-2b is returned, + // the region would be us-east-2. + return response.data.substr(0, response.data.length - 1); + } + /** + * Returns AWS security credentials. This first checks to see if the credentials + * is available as environment variables. If it is not, then the supplier + * will call the security credentials URL. + * @param context {@link ExternalAccountSupplierContext} from the calling + * {@link AwsClient}, contains the requested audience and subject token type + * for the external account identity. + * @return A promise that resolves with the AWS security credentials. + */ + async getAwsSecurityCredentials(context) { + // Check environment variables for permanent credentials first. + // https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html + if (__classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get)) { + return __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get); + } + const metadataHeaders = {}; + if (this.imdsV2SessionTokenUrl) { + metadataHeaders['x-aws-ec2-metadata-token'] = + await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken).call(this, context.transporter); + } + // Since the role on a VM can change, we don't need to cache it. + const roleName = await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName).call(this, metadataHeaders, context.transporter); + // Temporary credentials typically last for several hours. + // Expiration is returned in response. + // Consider future optimization of this logic to cache AWS tokens + // until their natural expiration. + const awsCreds = await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials).call(this, roleName, metadataHeaders, context.transporter); + return { + accessKeyId: awsCreds.AccessKeyId, + secretAccessKey: awsCreds.SecretAccessKey, + token: awsCreds.Token, + }; + } +} +exports.DefaultAwsSecurityCredentialsSupplier = DefaultAwsSecurityCredentialsSupplier; +_DefaultAwsSecurityCredentialsSupplier_instances = new WeakSet(), _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken = +/** + * @param transporter The transporter to use for requests. + * @return A promise that resolves with the IMDSv2 Session Token. + */ +async function _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken(transporter) { + const opts = { + ...this.additionalGaxiosOptions, + url: this.imdsV2SessionTokenUrl, + method: 'PUT', + responseType: 'text', + headers: { 'x-aws-ec2-metadata-token-ttl-seconds': '300' }, + }; + const response = await transporter.request(opts); + return response.data; +}, _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName = +/** + * @param headers The headers to be used in the metadata request. + * @param transporter The transporter to use for requests. + * @return A promise that resolves with the assigned role to the current + * AWS VM. This is needed for calling the security-credentials endpoint. + */ +async function _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName(headers, transporter) { + if (!this.securityCredentialsUrl) { + throw new Error('Unable to determine AWS role name due to missing ' + + '"options.credential_source.url"'); + } + const opts = { + ...this.additionalGaxiosOptions, + url: this.securityCredentialsUrl, + method: 'GET', + responseType: 'text', + headers: headers, + }; + const response = await transporter.request(opts); + return response.data; +}, _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials = +/** + * Retrieves the temporary AWS credentials by calling the security-credentials + * endpoint as specified in the `credential_source` object. + * @param roleName The role attached to the current VM. + * @param headers The headers to be used in the metadata request. + * @param transporter The transporter to use for requests. + * @return A promise that resolves with the temporary AWS credentials + * needed for creating the GetCallerIdentity signed request. + */ +async function _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials(roleName, headers, transporter) { + const response = await transporter.request({ + ...this.additionalGaxiosOptions, + url: `${this.securityCredentialsUrl}/${roleName}`, + responseType: 'json', + headers: headers, + }); + return response.data; +}, _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get = function _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get() { + // The AWS region can be provided through AWS_REGION or AWS_DEFAULT_REGION. + // Only one is required. + return (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION'] || null); +}, _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get = function _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get() { + // Both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are required. + if (process.env['AWS_ACCESS_KEY_ID'] && + process.env['AWS_SECRET_ACCESS_KEY']) { + return { + accessKeyId: process.env['AWS_ACCESS_KEY_ID'], + secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY'], + token: process.env['AWS_SESSION_TOKEN'], + }; + } + return null; +}; + + +/***/ }), + +/***/ 58997: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0; +const stream = __nccwpck_require__(2203); +const authclient_1 = __nccwpck_require__(60611); +const sts = __nccwpck_require__(52548); +/** + * The required token exchange grant_type: rfc8693#section-2.1 + */ +const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; +/** + * The requested token exchange requested_token_type: rfc8693#section-2.1 + */ +const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** + * The requested token exchange subject_token_type: rfc8693#section-2.1 + */ +const STS_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** + * The maximum number of access boundary rules a Credential Access Boundary + * can contain. + */ +exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10; +/** + * Offset to take into account network delays and server clock skews. + */ +exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +/** + * Defines a set of Google credentials that are downscoped from an existing set + * of Google OAuth2 credentials. This is useful to restrict the Identity and + * Access Management (IAM) permissions that a short-lived credential can use. + * The common pattern of usage is to have a token broker with elevated access + * generate these downscoped credentials from higher access source credentials + * and pass the downscoped short-lived access tokens to a token consumer via + * some secure authenticated channel for limited access to Google Cloud Storage + * resources. + */ +class DownscopedClient extends authclient_1.AuthClient { + /** + * Instantiates a downscoped client object using the provided source + * AuthClient and credential access boundary rules. + * To downscope permissions of a source AuthClient, a Credential Access + * Boundary that specifies which resources the new credential can access, as + * well as an upper bound on the permissions that are available on each + * resource, has to be defined. A downscoped client can then be instantiated + * using the source AuthClient and the Credential Access Boundary. + * @param authClient The source AuthClient to be downscoped based on the + * provided Credential Access Boundary rules. + * @param credentialAccessBoundary The Credential Access Boundary which + * contains a list of access boundary rules. Each rule contains information + * on the resource that the rule applies to, the upper bound of the + * permissions that are available on that resource and an optional + * condition to further restrict permissions. + * @param additionalOptions **DEPRECATED, set this in the provided `authClient`.** + * Optional additional behavior customization options. + * @param quotaProjectId **DEPRECATED, set this in the provided `authClient`.** + * Optional quota project id for setting up in the x-goog-user-project header. + */ + constructor(authClient, credentialAccessBoundary, additionalOptions, quotaProjectId) { + super({ ...additionalOptions, quotaProjectId }); + this.authClient = authClient; + this.credentialAccessBoundary = credentialAccessBoundary; + // Check 1-10 Access Boundary Rules are defined within Credential Access + // Boundary. + if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length === 0) { + throw new Error('At least one access boundary rule needs to be defined.'); + } + else if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length > + exports.MAX_ACCESS_BOUNDARY_RULES_COUNT) { + throw new Error('The provided access boundary has more than ' + + `${exports.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`); + } + // Check at least one permission should be defined in each Access Boundary + // Rule. + for (const rule of credentialAccessBoundary.accessBoundary + .accessBoundaryRules) { + if (rule.availablePermissions.length === 0) { + throw new Error('At least one permission should be defined in access boundary rules.'); + } + } + this.stsCredential = new sts.StsCredentials(`https://sts.${this.universeDomain}/v1/token`); + this.cachedDownscopedAccessToken = null; + } + /** + * Provides a mechanism to inject Downscoped access tokens directly. + * The expiry_date field is required to facilitate determination of the token + * expiration which would make it easier for the token consumer to handle. + * @param credentials The Credentials object to set on the current client. + */ + setCredentials(credentials) { + if (!credentials.expiry_date) { + throw new Error('The access token expiry_date field is missing in the provided ' + + 'credentials.'); + } + super.setCredentials(credentials); + this.cachedDownscopedAccessToken = credentials; + } + async getAccessToken() { + // If the cached access token is unavailable or expired, force refresh. + // The Downscoped access token will be returned in + // DownscopedAccessTokenResponse format. + if (!this.cachedDownscopedAccessToken || + this.isExpired(this.cachedDownscopedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return Downscoped access token in DownscopedAccessTokenResponse format. + return { + token: this.cachedDownscopedAccessToken.access_token, + expirationTime: this.cachedDownscopedAccessToken.expiry_date, + res: this.cachedDownscopedAccessToken.res, + }; + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * The result has the form: + * { Authorization: 'Bearer ' } + */ + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, reAuthRetried = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!reAuthRetried && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } + } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * GCP access tokens are retrieved from authclient object/source credential. + * Then GCP access tokens are exchanged for downscoped access tokens via the + * token exchange endpoint. + * @return A promise that resolves with the fresh downscoped access token. + */ + async refreshAccessTokenAsync() { + var _a; + // Retrieve GCP access token from source credential. + const subjectToken = (await this.authClient.getAccessToken()).token; + // Construct the STS credentials options. + const stsCredentialsOptions = { + grantType: STS_GRANT_TYPE, + requestedTokenType: STS_REQUEST_TOKEN_TYPE, + subjectToken: subjectToken, + subjectTokenType: STS_SUBJECT_TOKEN_TYPE, + }; + // Exchange the source AuthClient access token for a Downscoped access + // token. + const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, this.credentialAccessBoundary); + /** + * The STS endpoint will only return the expiration time for the downscoped + * access token if the original access token represents a service account. + * The downscoped token's expiration time will always match the source + * credential expiration. When no expires_in is returned, we can copy the + * source credential's expiration time. + */ + const sourceCredExpireDate = ((_a = this.authClient.credentials) === null || _a === void 0 ? void 0 : _a.expiry_date) || null; + const expiryDate = stsResponse.expires_in + ? new Date().getTime() + stsResponse.expires_in * 1000 + : sourceCredExpireDate; + // Save response in cached access token. + this.cachedDownscopedAccessToken = { + access_token: stsResponse.access_token, + expiry_date: expiryDate, + res: stsResponse.res, + }; + // Save credentials. + this.credentials = {}; + Object.assign(this.credentials, this.cachedDownscopedAccessToken); + delete this.credentials.res; + // Trigger tokens event to notify external listeners. + this.emit('tokens', { + refresh_token: null, + expiry_date: this.cachedDownscopedAccessToken.expiry_date, + access_token: this.cachedDownscopedAccessToken.access_token, + token_type: 'Bearer', + id_token: null, + }); + // Return the cached access token. + return this.cachedDownscopedAccessToken; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param downscopedAccessToken The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(downscopedAccessToken) { + const now = new Date().getTime(); + return downscopedAccessToken.expiry_date + ? now >= + downscopedAccessToken.expiry_date - this.eagerRefreshThresholdMillis + : false; + } +} +exports.DownscopedClient = DownscopedClient; + + +/***/ }), + +/***/ 57076: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GCPEnv = void 0; +exports.clear = clear; +exports.getEnv = getEnv; +const gcpMetadata = __nccwpck_require__(87045); +var GCPEnv; +(function (GCPEnv) { + GCPEnv["APP_ENGINE"] = "APP_ENGINE"; + GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; + GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; + GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; + GCPEnv["CLOUD_RUN"] = "CLOUD_RUN"; + GCPEnv["NONE"] = "NONE"; +})(GCPEnv || (exports.GCPEnv = GCPEnv = {})); +let envPromise; +function clear() { + envPromise = undefined; +} +async function getEnv() { + if (envPromise) { + return envPromise; + } + envPromise = getEnvMemoized(); + return envPromise; +} +async function getEnvMemoized() { + let env = GCPEnv.NONE; + if (isAppEngine()) { + env = GCPEnv.APP_ENGINE; + } + else if (isCloudFunction()) { + env = GCPEnv.CLOUD_FUNCTIONS; + } + else if (await isComputeEngine()) { + if (await isKubernetesEngine()) { + env = GCPEnv.KUBERNETES_ENGINE; + } + else if (isCloudRun()) { + env = GCPEnv.CLOUD_RUN; + } + else { + env = GCPEnv.COMPUTE_ENGINE; + } + } + else { + env = GCPEnv.NONE; + } + return env; +} +function isAppEngine() { + return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); +} +function isCloudFunction() { + return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); +} +/** + * This check only verifies that the environment is running knative. + * This must be run *after* checking for Kubernetes, otherwise it will + * return a false positive. + */ +function isCloudRun() { + return !!process.env.K_CONFIGURATION; +} +async function isKubernetesEngine() { + try { + await gcpMetadata.instance('attributes/cluster-name'); + return true; + } + catch (e) { + return false; + } +} +async function isComputeEngine() { + return gcpMetadata.isAvailable(); +} + + +/***/ }), + +/***/ 59984: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.InvalidSubjectTokenError = exports.InvalidMessageFieldError = exports.InvalidCodeFieldError = exports.InvalidTokenTypeFieldError = exports.InvalidExpirationTimeFieldError = exports.InvalidSuccessFieldError = exports.InvalidVersionFieldError = exports.ExecutableResponseError = exports.ExecutableResponse = void 0; +const SAML_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:saml2'; +const OIDC_SUBJECT_TOKEN_TYPE1 = 'urn:ietf:params:oauth:token-type:id_token'; +const OIDC_SUBJECT_TOKEN_TYPE2 = 'urn:ietf:params:oauth:token-type:jwt'; +/** + * Defines the response of a 3rd party executable run by the pluggable auth client. + */ +class ExecutableResponse { + /** + * Instantiates an ExecutableResponse instance using the provided JSON object + * from the output of the executable. + * @param responseJson Response from a 3rd party executable, loaded from a + * run of the executable or a cached output file. + */ + constructor(responseJson) { + // Check that the required fields exist in the json response. + if (!responseJson.version) { + throw new InvalidVersionFieldError("Executable response must contain a 'version' field."); + } + if (responseJson.success === undefined) { + throw new InvalidSuccessFieldError("Executable response must contain a 'success' field."); + } + this.version = responseJson.version; + this.success = responseJson.success; + // Validate required fields for a successful response. + if (this.success) { + this.expirationTime = responseJson.expiration_time; + this.tokenType = responseJson.token_type; + // Validate token type field. + if (this.tokenType !== SAML_SUBJECT_TOKEN_TYPE && + this.tokenType !== OIDC_SUBJECT_TOKEN_TYPE1 && + this.tokenType !== OIDC_SUBJECT_TOKEN_TYPE2) { + throw new InvalidTokenTypeFieldError("Executable response must contain a 'token_type' field when successful " + + `and it must be one of ${OIDC_SUBJECT_TOKEN_TYPE1}, ${OIDC_SUBJECT_TOKEN_TYPE2}, or ${SAML_SUBJECT_TOKEN_TYPE}.`); + } + // Validate subject token. + if (this.tokenType === SAML_SUBJECT_TOKEN_TYPE) { + if (!responseJson.saml_response) { + throw new InvalidSubjectTokenError(`Executable response must contain a 'saml_response' field when token_type=${SAML_SUBJECT_TOKEN_TYPE}.`); + } + this.subjectToken = responseJson.saml_response; + } + else { + if (!responseJson.id_token) { + throw new InvalidSubjectTokenError("Executable response must contain a 'id_token' field when " + + `token_type=${OIDC_SUBJECT_TOKEN_TYPE1} or ${OIDC_SUBJECT_TOKEN_TYPE2}.`); + } + this.subjectToken = responseJson.id_token; + } + } + else { + // Both code and message must be provided for unsuccessful responses. + if (!responseJson.code) { + throw new InvalidCodeFieldError("Executable response must contain a 'code' field when unsuccessful."); + } + if (!responseJson.message) { + throw new InvalidMessageFieldError("Executable response must contain a 'message' field when unsuccessful."); + } + this.errorCode = responseJson.code; + this.errorMessage = responseJson.message; + } + } + /** + * @return A boolean representing if the response has a valid token. Returns + * true when the response was successful and the token is not expired. + */ + isValid() { + return !this.isExpired() && this.success; + } + /** + * @return A boolean representing if the response is expired. Returns true if the + * provided timeout has passed. + */ + isExpired() { + return (this.expirationTime !== undefined && + this.expirationTime < Math.round(Date.now() / 1000)); + } +} +exports.ExecutableResponse = ExecutableResponse; +/** + * An error thrown by the ExecutableResponse class. + */ +class ExecutableResponseError extends Error { + constructor(message) { + super(message); + Object.setPrototypeOf(this, new.target.prototype); + } +} +exports.ExecutableResponseError = ExecutableResponseError; +/** + * An error thrown when the 'version' field in an executable response is missing or invalid. + */ +class InvalidVersionFieldError extends ExecutableResponseError { +} +exports.InvalidVersionFieldError = InvalidVersionFieldError; +/** + * An error thrown when the 'success' field in an executable response is missing or invalid. + */ +class InvalidSuccessFieldError extends ExecutableResponseError { +} +exports.InvalidSuccessFieldError = InvalidSuccessFieldError; +/** + * An error thrown when the 'expiration_time' field in an executable response is missing or invalid. + */ +class InvalidExpirationTimeFieldError extends ExecutableResponseError { +} +exports.InvalidExpirationTimeFieldError = InvalidExpirationTimeFieldError; +/** + * An error thrown when the 'token_type' field in an executable response is missing or invalid. + */ +class InvalidTokenTypeFieldError extends ExecutableResponseError { +} +exports.InvalidTokenTypeFieldError = InvalidTokenTypeFieldError; +/** + * An error thrown when the 'code' field in an executable response is missing or invalid. + */ +class InvalidCodeFieldError extends ExecutableResponseError { +} +exports.InvalidCodeFieldError = InvalidCodeFieldError; +/** + * An error thrown when the 'message' field in an executable response is missing or invalid. + */ +class InvalidMessageFieldError extends ExecutableResponseError { +} +exports.InvalidMessageFieldError = InvalidMessageFieldError; +/** + * An error thrown when the subject token in an executable response is missing or invalid. + */ +class InvalidSubjectTokenError extends ExecutableResponseError { +} +exports.InvalidSubjectTokenError = InvalidSubjectTokenError; + + +/***/ }), + +/***/ 26435: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ExternalAccountAuthorizedUserClient = exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = void 0; +const authclient_1 = __nccwpck_require__(60611); +const oauth2common_1 = __nccwpck_require__(46564); +const gaxios_1 = __nccwpck_require__(9024); +const stream = __nccwpck_require__(2203); +const baseexternalclient_1 = __nccwpck_require__(92163); +/** + * The credentials JSON file type for external account authorized user clients. + */ +exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = 'external_account_authorized_user'; +const DEFAULT_TOKEN_URL = 'https://sts.{universeDomain}/v1/oauthtoken'; +/** + * Handler for token refresh requests sent to the token_url endpoint for external + * authorized user credentials. + */ +class ExternalAccountAuthorizedUserHandler extends oauth2common_1.OAuthClientAuthHandler { + /** + * Initializes an ExternalAccountAuthorizedUserHandler instance. + * @param url The URL of the token refresh endpoint. + * @param transporter The transporter to use for the refresh request. + * @param clientAuthentication The client authentication credentials to use + * for the refresh request. + */ + constructor(url, transporter, clientAuthentication) { + super(clientAuthentication); + this.url = url; + this.transporter = transporter; + } + /** + * Requests a new access token from the token_url endpoint using the provided + * refresh token. + * @param refreshToken The refresh token to use to generate a new access token. + * @param additionalHeaders Optional additional headers to pass along the + * request. + * @return A promise that resolves with the token refresh response containing + * the requested access token and its expiration time. + */ + async refreshToken(refreshToken, additionalHeaders) { + const values = new URLSearchParams({ + grant_type: 'refresh_token', + refresh_token: refreshToken, + }); + const headers = { + 'Content-Type': 'application/x-www-form-urlencoded', + ...additionalHeaders, + }; + const opts = { + ...ExternalAccountAuthorizedUserHandler.RETRY_CONFIG, + url: this.url, + method: 'POST', + headers, + data: values.toString(), + responseType: 'json', + }; + // Apply OAuth client authentication. + this.applyClientAuthenticationOptions(opts); + try { + const response = await this.transporter.request(opts); + // Successful response. + const tokenRefreshResponse = response.data; + tokenRefreshResponse.res = response; + return tokenRefreshResponse; + } + catch (error) { + // Translate error to OAuthError. + if (error instanceof gaxios_1.GaxiosError && error.response) { + throw (0, oauth2common_1.getErrorFromOAuthErrorResponse)(error.response.data, + // Preserve other fields from the original error. + error); + } + // Request could fail before the server responds. + throw error; + } + } +} +/** + * External Account Authorized User Client. This is used for OAuth2 credentials + * sourced using external identities through Workforce Identity Federation. + * Obtaining the initial access and refresh token can be done through the + * Google Cloud CLI. + */ +class ExternalAccountAuthorizedUserClient extends authclient_1.AuthClient { + /** + * Instantiates an ExternalAccountAuthorizedUserClient instances using the + * provided JSON object loaded from a credentials files. + * An error is throws if the credential is not valid. + * @param options The external account authorized user option object typically + * from the external accoutn authorized user JSON credential file. + * @param additionalOptions **DEPRECATED, all options are available in the + * `options` parameter.** Optional additional behavior customization options. + * These currently customize expiration threshold time and whether to retry + * on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + var _a; + super({ ...options, ...additionalOptions }); + if (options.universe_domain) { + this.universeDomain = options.universe_domain; + } + this.refreshToken = options.refresh_token; + const clientAuth = { + confidentialClientType: 'basic', + clientId: options.client_id, + clientSecret: options.client_secret, + }; + this.externalAccountAuthorizedUserHandler = + new ExternalAccountAuthorizedUserHandler((_a = options.token_url) !== null && _a !== void 0 ? _a : DEFAULT_TOKEN_URL.replace('{universeDomain}', this.universeDomain), this.transporter, clientAuth); + this.cachedAccessToken = null; + this.quotaProjectId = options.quota_project_id; + // As threshold could be zero, + // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the + // zero value. + if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { + this.eagerRefreshThresholdMillis = baseexternalclient_1.EXPIRATION_TIME_OFFSET; + } + else { + this.eagerRefreshThresholdMillis = additionalOptions + .eagerRefreshThresholdMillis; + } + this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); + } + async getAccessToken() { + // If cached access token is unavailable or expired, force refresh. + if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return GCP access token in GetAccessTokenResponse format. + return { + token: this.cachedAccessToken.access_token, + res: this.cachedAccessToken.res, + }; + } + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure. + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, reAuthRetried = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!reAuthRetried && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } + } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * @return A promise that resolves with the refreshed credential. + */ + async refreshAccessTokenAsync() { + // Refresh the access token using the refresh token. + const refreshResponse = await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken); + this.cachedAccessToken = { + access_token: refreshResponse.access_token, + expiry_date: new Date().getTime() + refreshResponse.expires_in * 1000, + res: refreshResponse.res, + }; + if (refreshResponse.refresh_token !== undefined) { + this.refreshToken = refreshResponse.refresh_token; + } + return this.cachedAccessToken; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param credentials The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(credentials) { + const now = new Date().getTime(); + return credentials.expiry_date + ? now >= credentials.expiry_date - this.eagerRefreshThresholdMillis + : false; + } +} +exports.ExternalAccountAuthorizedUserClient = ExternalAccountAuthorizedUserClient; + + +/***/ }), + +/***/ 68246: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ExternalAccountClient = void 0; +const baseexternalclient_1 = __nccwpck_require__(92163); +const identitypoolclient_1 = __nccwpck_require__(81801); +const awsclient_1 = __nccwpck_require__(18746); +const pluggable_auth_client_1 = __nccwpck_require__(52582); +/** + * Dummy class with no constructor. Developers are expected to use fromJSON. + */ +class ExternalAccountClient { + constructor() { + throw new Error('ExternalAccountClients should be initialized via: ' + + 'ExternalAccountClient.fromJSON(), ' + + 'directly via explicit constructors, eg. ' + + 'new AwsClient(options), new IdentityPoolClient(options), new' + + 'PluggableAuthClientOptions, or via ' + + 'new GoogleAuth(options).getClient()'); + } + /** + * This static method will instantiate the + * corresponding type of external account credential depending on the + * underlying credential source. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions **DEPRECATED, all options are available in the + * `options` parameter.** Optional additional behavior customization options. + * These currently customize expiration threshold time and whether to retry + * on 401/403 API request errors. + * @return A BaseExternalAccountClient instance or null if the options + * provided do not correspond to an external account credential. + */ + static fromJSON(options, additionalOptions) { + var _a, _b; + if (options && options.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + if ((_a = options.credential_source) === null || _a === void 0 ? void 0 : _a.environment_id) { + return new awsclient_1.AwsClient(options, additionalOptions); + } + else if ((_b = options.credential_source) === null || _b === void 0 ? void 0 : _b.executable) { + return new pluggable_auth_client_1.PluggableAuthClient(options, additionalOptions); + } + else { + return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions); + } + } + else { + return null; + } + } +} +exports.ExternalAccountClient = ExternalAccountClient; + + +/***/ }), + +/***/ 14189: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var _a, _b, _c; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FileSubjectTokenSupplier = void 0; +const util_1 = __nccwpck_require__(39023); +const fs = __nccwpck_require__(79896); +// fs.readfile is undefined in browser karma tests causing +// `npm run browser-test` to fail as test.oauth2.ts imports this file via +// src/index.ts. +// Fallback to void function to avoid promisify throwing a TypeError. +const readFile = (0, util_1.promisify)((_a = fs.readFile) !== null && _a !== void 0 ? _a : (() => { })); +const realpath = (0, util_1.promisify)((_b = fs.realpath) !== null && _b !== void 0 ? _b : (() => { })); +const lstat = (0, util_1.promisify)((_c = fs.lstat) !== null && _c !== void 0 ? _c : (() => { })); +/** + * Internal subject token supplier implementation used when a file location + * is configured in the credential configuration used to build an {@link IdentityPoolClient} + */ +class FileSubjectTokenSupplier { + /** + * Instantiates a new file based subject token supplier. + * @param opts The file subject token supplier options to build the supplier + * with. + */ + constructor(opts) { + this.filePath = opts.filePath; + this.formatType = opts.formatType; + this.subjectTokenFieldName = opts.subjectTokenFieldName; + } + /** + * Returns the subject token stored at the file specified in the constructor. + * @param context {@link ExternalAccountSupplierContext} from the calling + * {@link IdentityPoolClient}, contains the requested audience and subject + * token type for the external account identity. Not used. + */ + async getSubjectToken(context) { + // Make sure there is a file at the path. lstatSync will throw if there is + // nothing there. + let parsedFilePath = this.filePath; + try { + // Resolve path to actual file in case of symlink. Expect a thrown error + // if not resolvable. + parsedFilePath = await realpath(parsedFilePath); + if (!(await lstat(parsedFilePath)).isFile()) { + throw new Error(); + } + } + catch (err) { + if (err instanceof Error) { + err.message = `The file at ${parsedFilePath} does not exist, or it is not a file. ${err.message}`; + } + throw err; + } + let subjectToken; + const rawText = await readFile(parsedFilePath, { encoding: 'utf8' }); + if (this.formatType === 'text') { + subjectToken = rawText; + } + else if (this.formatType === 'json' && this.subjectTokenFieldName) { + const json = JSON.parse(rawText); + subjectToken = json[this.subjectTokenFieldName]; + } + if (!subjectToken) { + throw new Error('Unable to parse the subject_token from the credential_source file'); + } + return subjectToken; + } +} +exports.FileSubjectTokenSupplier = FileSubjectTokenSupplier; + + +/***/ }), + +/***/ 135: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +}; +var _GoogleAuth_instances, _GoogleAuth_pendingAuthClient, _GoogleAuth_prepareAndCacheClient, _GoogleAuth_determineClient; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleAuth = exports.GoogleAuthExceptionMessages = exports.CLOUD_SDK_CLIENT_ID = void 0; +const child_process_1 = __nccwpck_require__(35317); +const fs = __nccwpck_require__(79896); +const gcpMetadata = __nccwpck_require__(87045); +const os = __nccwpck_require__(70857); +const path = __nccwpck_require__(16928); +const crypto_1 = __nccwpck_require__(71566); +const transporters_1 = __nccwpck_require__(55714); +const computeclient_1 = __nccwpck_require__(22790); +const idtokenclient_1 = __nccwpck_require__(42029); +const envDetect_1 = __nccwpck_require__(57076); +const jwtclient_1 = __nccwpck_require__(14946); +const refreshclient_1 = __nccwpck_require__(24988); +const impersonated_1 = __nccwpck_require__(20345); +const externalclient_1 = __nccwpck_require__(68246); +const baseexternalclient_1 = __nccwpck_require__(92163); +const authclient_1 = __nccwpck_require__(60611); +const externalAccountAuthorizedUserClient_1 = __nccwpck_require__(26435); +const util_1 = __nccwpck_require__(30261); +exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; +exports.GoogleAuthExceptionMessages = { + API_KEY_WITH_CREDENTIALS: 'API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.', + NO_PROJECT_ID_FOUND: 'Unable to detect a Project Id in the current environment. \n' + + 'To learn more about authentication and Google APIs, visit: \n' + + 'https://cloud.google.com/docs/authentication/getting-started', + NO_CREDENTIALS_FOUND: 'Unable to find credentials in current environment. \n' + + 'To learn more about authentication and Google APIs, visit: \n' + + 'https://cloud.google.com/docs/authentication/getting-started', + NO_ADC_FOUND: 'Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.', + NO_UNIVERSE_DOMAIN_FOUND: 'Unable to detect a Universe Domain in the current environment.\n' + + 'To learn more about Universe Domain retrieval, visit: \n' + + 'https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys', +}; +class GoogleAuth { + // Note: this properly is only public to satisfy unit tests. + // https://github.com/Microsoft/TypeScript/issues/5228 + get isGCE() { + return this.checkIsGCE; + } + /** + * Configuration is resolved in the following order of precedence: + * - {@link GoogleAuthOptions.credentials `credentials`} + * - {@link GoogleAuthOptions.keyFilename `keyFilename`} + * - {@link GoogleAuthOptions.keyFile `keyFile`} + * + * {@link GoogleAuthOptions.clientOptions `clientOptions`} are passed to the + * {@link AuthClient `AuthClient`s}. + * + * @param opts + */ + constructor(opts = {}) { + _GoogleAuth_instances.add(this); + /** + * Caches a value indicating whether the auth layer is running on Google + * Compute Engine. + * @private + */ + this.checkIsGCE = undefined; + // To save the contents of the JSON credential file + this.jsonContent = null; + this.cachedCredential = null; + /** + * A pending {@link AuthClient}. Used for concurrent {@link GoogleAuth.getClient} calls. + */ + _GoogleAuth_pendingAuthClient.set(this, null); + this.clientOptions = {}; + this._cachedProjectId = opts.projectId || null; + this.cachedCredential = opts.authClient || null; + this.keyFilename = opts.keyFilename || opts.keyFile; + this.scopes = opts.scopes; + this.clientOptions = opts.clientOptions || {}; + this.jsonContent = opts.credentials || null; + this.apiKey = opts.apiKey || this.clientOptions.apiKey || null; + // Cannot use both API Key + Credentials + if (this.apiKey && (this.jsonContent || this.clientOptions.credentials)) { + throw new RangeError(exports.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS); + } + if (opts.universeDomain) { + this.clientOptions.universeDomain = opts.universeDomain; + } + } + // GAPIC client libraries should always use self-signed JWTs. The following + // variables are set on the JWT client in order to indicate the type of library, + // and sign the JWT with the correct audience and scopes (if not supplied). + setGapicJWTValues(client) { + client.defaultServicePath = this.defaultServicePath; + client.useJWTAccessWithScope = this.useJWTAccessWithScope; + client.defaultScopes = this.defaultScopes; + } + getProjectId(callback) { + if (callback) { + this.getProjectIdAsync().then(r => callback(null, r), callback); + } + else { + return this.getProjectIdAsync(); + } + } + /** + * A temporary method for internal `getProjectId` usages where `null` is + * acceptable. In a future major release, `getProjectId` should return `null` + * (as the `Promise` base signature describes) and this private + * method should be removed. + * + * @returns Promise that resolves with project id (or `null`) + */ + async getProjectIdOptional() { + try { + return await this.getProjectId(); + } + catch (e) { + if (e instanceof Error && + e.message === exports.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND) { + return null; + } + else { + throw e; + } + } + } + /** + * A private method for finding and caching a projectId. + * + * Supports environments in order of precedence: + * - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable + * - GOOGLE_APPLICATION_CREDENTIALS JSON file + * - Cloud SDK: `gcloud config config-helper --format json` + * - GCE project ID from metadata server + * + * @returns projectId + */ + async findAndCacheProjectId() { + let projectId = null; + projectId || (projectId = await this.getProductionProjectId()); + projectId || (projectId = await this.getFileProjectId()); + projectId || (projectId = await this.getDefaultServiceProjectId()); + projectId || (projectId = await this.getGCEProjectId()); + projectId || (projectId = await this.getExternalAccountClientProjectId()); + if (projectId) { + this._cachedProjectId = projectId; + return projectId; + } + else { + throw new Error(exports.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND); + } + } + async getProjectIdAsync() { + if (this._cachedProjectId) { + return this._cachedProjectId; + } + if (!this._findProjectIdPromise) { + this._findProjectIdPromise = this.findAndCacheProjectId(); + } + return this._findProjectIdPromise; + } + /** + * Retrieves a universe domain from the metadata server via + * {@link gcpMetadata.universe}. + * + * @returns a universe domain + */ + async getUniverseDomainFromMetadataServer() { + var _a; + let universeDomain; + try { + universeDomain = await gcpMetadata.universe('universe-domain'); + universeDomain || (universeDomain = authclient_1.DEFAULT_UNIVERSE); + } + catch (e) { + if (e && ((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.status) === 404) { + universeDomain = authclient_1.DEFAULT_UNIVERSE; + } + else { + throw e; + } + } + return universeDomain; + } + /** + * Retrieves, caches, and returns the universe domain in the following order + * of precedence: + * - The universe domain in {@link GoogleAuth.clientOptions} + * - An existing or ADC {@link AuthClient}'s universe domain + * - {@link gcpMetadata.universe}, if {@link Compute} client + * + * @returns The universe domain + */ + async getUniverseDomain() { + let universeDomain = (0, util_1.originalOrCamelOptions)(this.clientOptions).get('universe_domain'); + try { + universeDomain !== null && universeDomain !== void 0 ? universeDomain : (universeDomain = (await this.getClient()).universeDomain); + } + catch (_a) { + // client or ADC is not available + universeDomain !== null && universeDomain !== void 0 ? universeDomain : (universeDomain = authclient_1.DEFAULT_UNIVERSE); + } + return universeDomain; + } + /** + * @returns Any scopes (user-specified or default scopes specified by the + * client library) that need to be set on the current Auth client. + */ + getAnyScopes() { + return this.scopes || this.defaultScopes; + } + getApplicationDefault(optionsOrCallback = {}, callback) { + let options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + } + else { + options = optionsOrCallback; + } + if (callback) { + this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); + } + else { + return this.getApplicationDefaultAsync(options); + } + } + async getApplicationDefaultAsync(options = {}) { + // If we've already got a cached credential, return it. + // This will also preserve one's configured quota project, in case they + // set one directly on the credential previously. + if (this.cachedCredential) { + // cache, while preserving existing quota project preferences + return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, this.cachedCredential, null); + } + let credential; + // Check for the existence of a local environment variable pointing to the + // location of the credential file. This is typically used in local + // developer scenarios. + credential = + await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { + credential.scopes = this.getAnyScopes(); + } + return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, credential); + } + // Look in the well-known credential file location. + credential = + await this._tryGetApplicationCredentialsFromWellKnownFile(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { + credential.scopes = this.getAnyScopes(); + } + return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, credential); + } + // Determine if we're running on GCE. + if (await this._checkIsGCE()) { + options.scopes = this.getAnyScopes(); + return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, new computeclient_1.Compute(options)); + } + throw new Error(exports.GoogleAuthExceptionMessages.NO_ADC_FOUND); + } + /** + * Determines whether the auth layer is running on Google Compute Engine. + * Checks for GCP Residency, then fallback to checking if metadata server + * is available. + * + * @returns A promise that resolves with the boolean. + * @api private + */ + async _checkIsGCE() { + if (this.checkIsGCE === undefined) { + this.checkIsGCE = + gcpMetadata.getGCPResidency() || (await gcpMetadata.isAvailable()); + } + return this.checkIsGCE; + } + /** + * Attempts to load default credentials from the environment variable path.. + * @returns Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { + const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || + process.env['google_application_credentials']; + if (!credentialsPath || credentialsPath.length === 0) { + return null; + } + try { + return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + } + catch (e) { + if (e instanceof Error) { + e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; + } + throw e; + } + } + /** + * Attempts to load default credentials from a well-known file location + * @return Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromWellKnownFile(options) { + // First, figure out the location of the file, depending upon the OS type. + let location = null; + if (this._isWindows()) { + // Windows + location = process.env['APPDATA']; + } + else { + // Linux or Mac + const home = process.env['HOME']; + if (home) { + location = path.join(home, '.config'); + } + } + // If we found the root path, expand it. + if (location) { + location = path.join(location, 'gcloud', 'application_default_credentials.json'); + if (!fs.existsSync(location)) { + location = null; + } + } + // The file does not exist. + if (!location) { + return null; + } + // The file seems to exist. Try to use it. + const client = await this._getApplicationCredentialsFromFilePath(location, options); + return client; + } + /** + * Attempts to load default credentials from a file at the given path.. + * @param filePath The path to the file to read. + * @returns Promise that resolves with the OAuth2Client + * @api private + */ + async _getApplicationCredentialsFromFilePath(filePath, options = {}) { + // Make sure the path looks like a string. + if (!filePath || filePath.length === 0) { + throw new Error('The file path is invalid.'); + } + // Make sure there is a file at the path. lstatSync will throw if there is + // nothing there. + try { + // Resolve path to actual file in case of symlink. Expect a thrown error + // if not resolvable. + filePath = fs.realpathSync(filePath); + if (!fs.lstatSync(filePath).isFile()) { + throw new Error(); + } + } + catch (err) { + if (err instanceof Error) { + err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + } + throw err; + } + // Now open a read stream on the file, and parse it. + const readStream = fs.createReadStream(filePath); + return this.fromStream(readStream, options); + } + /** + * Create a credentials instance using a given impersonated input options. + * @param json The impersonated input object. + * @returns JWT or UserRefresh Client with data + */ + fromImpersonatedJSON(json) { + var _a, _b, _c, _d; + if (!json) { + throw new Error('Must pass in a JSON object containing an impersonated refresh token'); + } + if (json.type !== impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { + throw new Error(`The incoming JSON object does not have the "${impersonated_1.IMPERSONATED_ACCOUNT_TYPE}" type`); + } + if (!json.source_credentials) { + throw new Error('The incoming JSON object does not contain a source_credentials field'); + } + if (!json.service_account_impersonation_url) { + throw new Error('The incoming JSON object does not contain a service_account_impersonation_url field'); + } + const sourceClient = this.fromJSON(json.source_credentials); + if (((_a = json.service_account_impersonation_url) === null || _a === void 0 ? void 0 : _a.length) > 256) { + /** + * Prevents DOS attacks. + * @see {@link https://github.com/googleapis/google-auth-library-nodejs/security/code-scanning/85} + **/ + throw new RangeError(`Target principal is too long: ${json.service_account_impersonation_url}`); + } + // Extract service account from service_account_impersonation_url + const targetPrincipal = (_c = (_b = /(?[^/]+):(generateAccessToken|generateIdToken)$/.exec(json.service_account_impersonation_url)) === null || _b === void 0 ? void 0 : _b.groups) === null || _c === void 0 ? void 0 : _c.target; + if (!targetPrincipal) { + throw new RangeError(`Cannot extract target principal from ${json.service_account_impersonation_url}`); + } + const targetScopes = (_d = this.getAnyScopes()) !== null && _d !== void 0 ? _d : []; + return new impersonated_1.Impersonated({ + ...json, + sourceClient, + targetPrincipal, + targetScopes: Array.isArray(targetScopes) ? targetScopes : [targetScopes], + }); + } + /** + * Create a credentials instance using the given input options. + * This client is not cached. + * + * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an external source for authentication to Google Cloud, you must validate it before providing it to any Google API or library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to {@link https://cloud.google.com/docs/authentication/external/externally-sourced-credentials Validate credential configurations from external sources}. + * + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + fromJSON(json, options = {}) { + let client; + // user's preferred universe domain + const preferredUniverseDomain = (0, util_1.originalOrCamelOptions)(options).get('universe_domain'); + if (json.type === refreshclient_1.USER_REFRESH_ACCOUNT_TYPE) { + client = new refreshclient_1.UserRefreshClient(options); + client.fromJSON(json); + } + else if (json.type === impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { + client = this.fromImpersonatedJSON(json); + } + else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + client = externalclient_1.ExternalAccountClient.fromJSON(json, options); + client.scopes = this.getAnyScopes(); + } + else if (json.type === externalAccountAuthorizedUserClient_1.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE) { + client = new externalAccountAuthorizedUserClient_1.ExternalAccountAuthorizedUserClient(json, options); + } + else { + options.scopes = this.scopes; + client = new jwtclient_1.JWT(options); + this.setGapicJWTValues(client); + client.fromJSON(json); + } + if (preferredUniverseDomain) { + client.universeDomain = preferredUniverseDomain; + } + return client; + } + /** + * Return a JWT or UserRefreshClient from JavaScript object, caching both the + * object used to instantiate and the client. + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + _cacheClientFromJSON(json, options) { + const client = this.fromJSON(json, options); + // cache both raw data used to instantiate client and client itself. + this.jsonContent = json; + this.cachedCredential = client; + return client; + } + fromStream(inputStream, optionsOrCallback = {}, callback) { + let options = {}; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + } + else { + options = optionsOrCallback; + } + if (callback) { + this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); + } + else { + return this.fromStreamAsync(inputStream, options); + } + } + fromStreamAsync(inputStream, options) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the Google auth settings.'); + } + const chunks = []; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => chunks.push(chunk)) + .on('end', () => { + try { + try { + const data = JSON.parse(chunks.join('')); + const r = this._cacheClientFromJSON(data, options); + return resolve(r); + } + catch (err) { + // If we failed parsing this.keyFileName, assume that it + // is a PEM or p12 certificate: + if (!this.keyFilename) + throw err; + const client = new jwtclient_1.JWT({ + ...this.clientOptions, + keyFile: this.keyFilename, + }); + this.cachedCredential = client; + this.setGapicJWTValues(client); + return resolve(client); + } + } + catch (err) { + return reject(err); + } + }); + }); + } + /** + * Create a credentials instance using the given API key string. + * The created client is not cached. In order to create and cache it use the {@link GoogleAuth.getClient `getClient`} method after first providing an {@link GoogleAuth.apiKey `apiKey`}. + * + * @param apiKey The API key string + * @param options An optional options object. + * @returns A JWT loaded from the key + */ + fromAPIKey(apiKey, options = {}) { + return new jwtclient_1.JWT({ ...options, apiKey }); + } + /** + * Determines whether the current operating system is Windows. + * @api private + */ + _isWindows() { + const sys = os.platform(); + if (sys && sys.length >= 3) { + if (sys.substring(0, 3).toLowerCase() === 'win') { + return true; + } + } + return false; + } + /** + * Run the Google Cloud SDK command that prints the default project ID + */ + async getDefaultServiceProjectId() { + return new Promise(resolve => { + (0, child_process_1.exec)('gcloud config config-helper --format json', (err, stdout) => { + if (!err && stdout) { + try { + const projectId = JSON.parse(stdout).configuration.properties.core.project; + resolve(projectId); + return; + } + catch (e) { + // ignore errors + } + } + resolve(null); + }); + }); + } + /** + * Loads the project id from environment variables. + * @api private + */ + getProductionProjectId() { + return (process.env['GCLOUD_PROJECT'] || + process.env['GOOGLE_CLOUD_PROJECT'] || + process.env['gcloud_project'] || + process.env['google_cloud_project']); + } + /** + * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. + * @api private + */ + async getFileProjectId() { + if (this.cachedCredential) { + // Try to read the project ID from the cached credentials file + return this.cachedCredential.projectId; + } + // Ensure the projectId is loaded from the keyFile if available. + if (this.keyFilename) { + const creds = await this.getClient(); + if (creds && creds.projectId) { + return creds.projectId; + } + } + // Try to load a credentials file and read its project ID + const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); + if (r) { + return r.projectId; + } + else { + return null; + } + } + /** + * Gets the project ID from external account client if available. + */ + async getExternalAccountClientProjectId() { + if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + return null; + } + const creds = await this.getClient(); + // Do not suppress the underlying error, as the error could contain helpful + // information for debugging and fixing. This is especially true for + // external account creds as in order to get the project ID, the following + // operations have to succeed: + // 1. Valid credentials file should be supplied. + // 2. Ability to retrieve access tokens from STS token exchange API. + // 3. Ability to exchange for service account impersonated credentials (if + // enabled). + // 4. Ability to get project info using the access token from step 2 or 3. + // Without surfacing the error, it is harder for developers to determine + // which step went wrong. + return await creds.getProjectId(); + } + /** + * Gets the Compute Engine project ID if it can be inferred. + */ + async getGCEProjectId() { + try { + const r = await gcpMetadata.project('project-id'); + return r; + } + catch (e) { + // Ignore any errors + return null; + } + } + getCredentials(callback) { + if (callback) { + this.getCredentialsAsync().then(r => callback(null, r), callback); + } + else { + return this.getCredentialsAsync(); + } + } + async getCredentialsAsync() { + const client = await this.getClient(); + if (client instanceof impersonated_1.Impersonated) { + return { client_email: client.getTargetPrincipal() }; + } + if (client instanceof baseexternalclient_1.BaseExternalAccountClient) { + const serviceAccountEmail = client.getServiceAccountEmail(); + if (serviceAccountEmail) { + return { + client_email: serviceAccountEmail, + universe_domain: client.universeDomain, + }; + } + } + if (this.jsonContent) { + return { + client_email: this.jsonContent.client_email, + private_key: this.jsonContent.private_key, + universe_domain: this.jsonContent.universe_domain, + }; + } + if (await this._checkIsGCE()) { + const [client_email, universe_domain] = await Promise.all([ + gcpMetadata.instance('service-accounts/default/email'), + this.getUniverseDomain(), + ]); + return { client_email, universe_domain }; + } + throw new Error(exports.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND); + } + /** + * Automatically obtain an {@link AuthClient `AuthClient`} based on the + * provided configuration. If no options were passed, use Application + * Default Credentials. + */ + async getClient() { + if (this.cachedCredential) { + return this.cachedCredential; + } + // Use an existing auth client request, or cache a new one + __classPrivateFieldSet(this, _GoogleAuth_pendingAuthClient, __classPrivateFieldGet(this, _GoogleAuth_pendingAuthClient, "f") || __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_determineClient).call(this), "f"); + try { + return await __classPrivateFieldGet(this, _GoogleAuth_pendingAuthClient, "f"); + } + finally { + // reset the pending auth client in case it is changed later + __classPrivateFieldSet(this, _GoogleAuth_pendingAuthClient, null, "f"); + } + } + /** + * Creates a client which will fetch an ID token for authorization. + * @param targetAudience the audience for the fetched ID token. + * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. + */ + async getIdTokenClient(targetAudience) { + const client = await this.getClient(); + if (!('fetchIdToken' in client)) { + throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); + } + return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); + } + /** + * Automatically obtain application default credentials, and return + * an access token for making requests. + */ + async getAccessToken() { + const client = await this.getClient(); + return (await client.getAccessToken()).token; + } + /** + * Obtain the HTTP headers that will provide authorization for a given + * request. + */ + async getRequestHeaders(url) { + const client = await this.getClient(); + return client.getRequestHeaders(url); + } + /** + * Obtain credentials for a request, then attach the appropriate headers to + * the request options. + * @param opts Axios or Request options on which to attach the headers + */ + async authorizeRequest(opts) { + opts = opts || {}; + const url = opts.url || opts.uri; + const client = await this.getClient(); + const headers = await client.getRequestHeaders(url); + opts.headers = Object.assign(opts.headers || {}, headers); + return opts; + } + /** + * Automatically obtain application default credentials, and make an + * HTTP request using the given options. + * @param opts Axios request options for the HTTP request. + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + async request(opts) { + const client = await this.getClient(); + return client.request(opts); + } + /** + * Determine the compute environment in which the code is running. + */ + getEnv() { + return (0, envDetect_1.getEnv)(); + } + /** + * Sign the given data with the current private key, or go out + * to the IAM API to sign it. + * @param data The data to be signed. + * @param endpoint A custom endpoint to use. + * + * @example + * ``` + * sign('data', 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/'); + * ``` + */ + async sign(data, endpoint) { + const client = await this.getClient(); + const universe = await this.getUniverseDomain(); + endpoint = + endpoint || + `https://iamcredentials.${universe}/v1/projects/-/serviceAccounts/`; + if (client instanceof impersonated_1.Impersonated) { + const signed = await client.sign(data); + return signed.signedBlob; + } + const crypto = (0, crypto_1.createCrypto)(); + if (client instanceof jwtclient_1.JWT && client.key) { + const sign = await crypto.sign(client.key, data); + return sign; + } + const creds = await this.getCredentials(); + if (!creds.client_email) { + throw new Error('Cannot sign data without `client_email`.'); + } + return this.signBlob(crypto, creds.client_email, data, endpoint); + } + async signBlob(crypto, emailOrUniqueId, data, endpoint) { + const url = new URL(endpoint + `${emailOrUniqueId}:signBlob`); + const res = await this.request({ + method: 'POST', + url: url.href, + data: { + payload: crypto.encodeBase64StringUtf8(data), + }, + retry: true, + retryConfig: { + httpMethodsToRetry: ['POST'], + }, + }); + return res.data.signedBlob; + } +} +exports.GoogleAuth = GoogleAuth; +_GoogleAuth_pendingAuthClient = new WeakMap(), _GoogleAuth_instances = new WeakSet(), _GoogleAuth_prepareAndCacheClient = async function _GoogleAuth_prepareAndCacheClient(credential, quotaProjectIdOverride = process.env['GOOGLE_CLOUD_QUOTA_PROJECT'] || null) { + const projectId = await this.getProjectIdOptional(); + if (quotaProjectIdOverride) { + credential.quotaProjectId = quotaProjectIdOverride; + } + this.cachedCredential = credential; + return { credential, projectId }; +}, _GoogleAuth_determineClient = async function _GoogleAuth_determineClient() { + if (this.jsonContent) { + return this._cacheClientFromJSON(this.jsonContent, this.clientOptions); + } + else if (this.keyFilename) { + const filePath = path.resolve(this.keyFilename); + const stream = fs.createReadStream(filePath); + return await this.fromStreamAsync(stream, this.clientOptions); + } + else if (this.apiKey) { + const client = await this.fromAPIKey(this.apiKey, this.clientOptions); + client.scopes = this.scopes; + const { credential } = await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, client); + return credential; + } + else { + const { credential } = await this.getApplicationDefaultAsync(this.clientOptions); + return credential; + } +}; +/** + * Export DefaultTransporter as a static property of the class. + */ +GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; + + +/***/ }), + +/***/ 89061: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2014 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IAMAuth = void 0; +class IAMAuth { + /** + * IAM credentials. + * + * @param selector the iam authority selector + * @param token the token + * @constructor + */ + constructor(selector, token) { + this.selector = selector; + this.token = token; + this.selector = selector; + this.token = token; + } + /** + * Acquire the HTTP headers required to make an authenticated request. + */ + getRequestHeaders() { + return { + 'x-goog-iam-authority-selector': this.selector, + 'x-goog-iam-authorization-token': this.token, + }; + } +} +exports.IAMAuth = IAMAuth; + + +/***/ }), + +/***/ 81801: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IdentityPoolClient = void 0; +const baseexternalclient_1 = __nccwpck_require__(92163); +const util_1 = __nccwpck_require__(30261); +const filesubjecttokensupplier_1 = __nccwpck_require__(14189); +const urlsubjecttokensupplier_1 = __nccwpck_require__(67236); +/** + * Defines the Url-sourced and file-sourced external account clients mainly + * used for K8s and Azure workloads. + */ +class IdentityPoolClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiate an IdentityPoolClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid file-sourced or + * url-sourced credential or a workforce pool user project is provided + * with a non workforce audience. + * @param options The external account options object typically loaded + * from the external account JSON credential file. The camelCased options + * are aliases for the snake_cased options. + * @param additionalOptions **DEPRECATED, all options are available in the + * `options` parameter.** Optional additional behavior customization options. + * These currently customize expiration threshold time and whether to retry + * on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + super(options, additionalOptions); + const opts = (0, util_1.originalOrCamelOptions)(options); + const credentialSource = opts.get('credential_source'); + const subjectTokenSupplier = opts.get('subject_token_supplier'); + // Validate credential sourcing configuration. + if (!credentialSource && !subjectTokenSupplier) { + throw new Error('A credential source or subject token supplier must be specified.'); + } + if (credentialSource && subjectTokenSupplier) { + throw new Error('Only one of credential source or subject token supplier can be specified.'); + } + if (subjectTokenSupplier) { + this.subjectTokenSupplier = subjectTokenSupplier; + this.credentialSourceType = 'programmatic'; + } + else { + const credentialSourceOpts = (0, util_1.originalOrCamelOptions)(credentialSource); + const formatOpts = (0, util_1.originalOrCamelOptions)(credentialSourceOpts.get('format')); + // Text is the default format type. + const formatType = formatOpts.get('type') || 'text'; + const formatSubjectTokenFieldName = formatOpts.get('subject_token_field_name'); + if (formatType !== 'json' && formatType !== 'text') { + throw new Error(`Invalid credential_source format "${formatType}"`); + } + if (formatType === 'json' && !formatSubjectTokenFieldName) { + throw new Error('Missing subject_token_field_name for JSON credential_source format'); + } + const file = credentialSourceOpts.get('file'); + const url = credentialSourceOpts.get('url'); + const headers = credentialSourceOpts.get('headers'); + if (file && url) { + throw new Error('No valid Identity Pool "credential_source" provided, must be either file or url.'); + } + else if (file && !url) { + this.credentialSourceType = 'file'; + this.subjectTokenSupplier = new filesubjecttokensupplier_1.FileSubjectTokenSupplier({ + filePath: file, + formatType: formatType, + subjectTokenFieldName: formatSubjectTokenFieldName, + }); + } + else if (!file && url) { + this.credentialSourceType = 'url'; + this.subjectTokenSupplier = new urlsubjecttokensupplier_1.UrlSubjectTokenSupplier({ + url: url, + formatType: formatType, + subjectTokenFieldName: formatSubjectTokenFieldName, + headers: headers, + additionalGaxiosOptions: IdentityPoolClient.RETRY_CONFIG, + }); + } + else { + throw new Error('No valid Identity Pool "credential_source" provided, must be either file or url.'); + } + } + } + /** + * Triggered when a external subject token is needed to be exchanged for a GCP + * access token via GCP STS endpoint. Gets a subject token by calling + * the configured {@link SubjectTokenSupplier} + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + return this.subjectTokenSupplier.getSubjectToken(this.supplierContext); + } +} +exports.IdentityPoolClient = IdentityPoolClient; + + +/***/ }), + +/***/ 42029: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IdTokenClient = void 0; +const oauth2client_1 = __nccwpck_require__(33502); +class IdTokenClient extends oauth2client_1.OAuth2Client { + /** + * Google ID Token client + * + * Retrieve ID token from the metadata server. + * See: https://cloud.google.com/docs/authentication/get-id-token#metadata-server + */ + constructor(options) { + super(options); + this.targetAudience = options.targetAudience; + this.idTokenProvider = options.idTokenProvider; + } + async getRequestMetadataAsync( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + url) { + if (!this.credentials.id_token || + !this.credentials.expiry_date || + this.isTokenExpiring()) { + const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); + this.credentials = { + id_token: idToken, + expiry_date: this.getIdTokenExpiryDate(idToken), + }; + } + const headers = { + Authorization: 'Bearer ' + this.credentials.id_token, + }; + return { headers }; + } + getIdTokenExpiryDate(idToken) { + const payloadB64 = idToken.split('.')[1]; + if (payloadB64) { + const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); + return payload.exp * 1000; + } + } +} +exports.IdTokenClient = IdTokenClient; + + +/***/ }), + +/***/ 20345: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Impersonated = exports.IMPERSONATED_ACCOUNT_TYPE = void 0; +const oauth2client_1 = __nccwpck_require__(33502); +const gaxios_1 = __nccwpck_require__(9024); +const util_1 = __nccwpck_require__(30261); +exports.IMPERSONATED_ACCOUNT_TYPE = 'impersonated_service_account'; +class Impersonated extends oauth2client_1.OAuth2Client { + /** + * Impersonated service account credentials. + * + * Create a new access token by impersonating another service account. + * + * Impersonated Credentials allowing credentials issued to a user or + * service account to impersonate another. The source project using + * Impersonated Credentials must enable the "IAMCredentials" API. + * Also, the target service account must grant the orginating principal + * the "Service Account Token Creator" IAM role. + * + * @param {object} options - The configuration object. + * @param {object} [options.sourceClient] the source credential used as to + * acquire the impersonated credentials. + * @param {string} [options.targetPrincipal] the service account to + * impersonate. + * @param {string[]} [options.delegates] the chained list of delegates + * required to grant the final access_token. If set, the sequence of + * identities must have "Service Account Token Creator" capability granted to + * the preceding identity. For example, if set to [serviceAccountB, + * serviceAccountC], the sourceCredential must have the Token Creator role on + * serviceAccountB. serviceAccountB must have the Token Creator on + * serviceAccountC. Finally, C must have Token Creator on target_principal. + * If left unset, sourceCredential must have that role on targetPrincipal. + * @param {string[]} [options.targetScopes] scopes to request during the + * authorization grant. + * @param {number} [options.lifetime] number of seconds the delegated + * credential should be valid for up to 3600 seconds by default, or 43,200 + * seconds by extending the token's lifetime, see: + * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth + * @param {string} [options.endpoint] api endpoint override. + */ + constructor(options = {}) { + var _a, _b, _c, _d, _e, _f; + super(options); + // Start with an expired refresh token, which will automatically be + // refreshed before the first API call is made. + this.credentials = { + expiry_date: 1, + refresh_token: 'impersonated-placeholder', + }; + this.sourceClient = (_a = options.sourceClient) !== null && _a !== void 0 ? _a : new oauth2client_1.OAuth2Client(); + this.targetPrincipal = (_b = options.targetPrincipal) !== null && _b !== void 0 ? _b : ''; + this.delegates = (_c = options.delegates) !== null && _c !== void 0 ? _c : []; + this.targetScopes = (_d = options.targetScopes) !== null && _d !== void 0 ? _d : []; + this.lifetime = (_e = options.lifetime) !== null && _e !== void 0 ? _e : 3600; + const usingExplicitUniverseDomain = !!(0, util_1.originalOrCamelOptions)(options).get('universe_domain'); + if (!usingExplicitUniverseDomain) { + // override the default universe with the source's universe + this.universeDomain = this.sourceClient.universeDomain; + } + else if (this.sourceClient.universeDomain !== this.universeDomain) { + // non-default universe and is not matching the source - this could be a credential leak + throw new RangeError(`Universe domain ${this.sourceClient.universeDomain} in source credentials does not match ${this.universeDomain} universe domain set for impersonated credentials.`); + } + this.endpoint = + (_f = options.endpoint) !== null && _f !== void 0 ? _f : `https://iamcredentials.${this.universeDomain}`; + } + /** + * Signs some bytes. + * + * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/signBlob Reference Documentation} + * @param blobToSign String to sign. + * + * @returns A {@link SignBlobResponse} denoting the keyID and signedBlob in base64 string + */ + async sign(blobToSign) { + await this.sourceClient.getAccessToken(); + const name = `projects/-/serviceAccounts/${this.targetPrincipal}`; + const u = `${this.endpoint}/v1/${name}:signBlob`; + const body = { + delegates: this.delegates, + payload: Buffer.from(blobToSign).toString('base64'), + }; + const res = await this.sourceClient.request({ + ...Impersonated.RETRY_CONFIG, + url: u, + data: body, + method: 'POST', + }); + return res.data; + } + /** The service account email to be impersonated. */ + getTargetPrincipal() { + return this.targetPrincipal; + } + /** + * Refreshes the access token. + */ + async refreshToken() { + var _a, _b, _c, _d, _e, _f; + try { + await this.sourceClient.getAccessToken(); + const name = 'projects/-/serviceAccounts/' + this.targetPrincipal; + const u = `${this.endpoint}/v1/${name}:generateAccessToken`; + const body = { + delegates: this.delegates, + scope: this.targetScopes, + lifetime: this.lifetime + 's', + }; + const res = await this.sourceClient.request({ + ...Impersonated.RETRY_CONFIG, + url: u, + data: body, + method: 'POST', + }); + const tokenResponse = res.data; + this.credentials.access_token = tokenResponse.accessToken; + this.credentials.expiry_date = Date.parse(tokenResponse.expireTime); + return { + tokens: this.credentials, + res, + }; + } + catch (error) { + if (!(error instanceof Error)) + throw error; + let status = 0; + let message = ''; + if (error instanceof gaxios_1.GaxiosError) { + status = (_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.status; + message = (_f = (_e = (_d = error === null || error === void 0 ? void 0 : error.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f.message; + } + if (status && message) { + error.message = `${status}: unable to impersonate: ${message}`; + throw error; + } + else { + error.message = `unable to impersonate: ${error}`; + throw error; + } + } + } + /** + * Generates an OpenID Connect ID token for a service account. + * + * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/generateIdToken Reference Documentation} + * + * @param targetAudience the audience for the fetched ID token. + * @param options the for the request + * @return an OpenID Connect ID token + */ + async fetchIdToken(targetAudience, options) { + var _a, _b; + await this.sourceClient.getAccessToken(); + const name = `projects/-/serviceAccounts/${this.targetPrincipal}`; + const u = `${this.endpoint}/v1/${name}:generateIdToken`; + const body = { + delegates: this.delegates, + audience: targetAudience, + includeEmail: (_a = options === null || options === void 0 ? void 0 : options.includeEmail) !== null && _a !== void 0 ? _a : true, + useEmailAzp: (_b = options === null || options === void 0 ? void 0 : options.includeEmail) !== null && _b !== void 0 ? _b : true, + }; + const res = await this.sourceClient.request({ + ...Impersonated.RETRY_CONFIG, + url: u, + data: body, + method: 'POST', + }); + return res.data.token; + } +} +exports.Impersonated = Impersonated; + + +/***/ }), + +/***/ 74651: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.JWTAccess = void 0; +const jws = __nccwpck_require__(84383); +const util_1 = __nccwpck_require__(30261); +const DEFAULT_HEADER = { + alg: 'RS256', + typ: 'JWT', +}; +class JWTAccess { + /** + * JWTAccess service account credentials. + * + * Create a new access token by using the credential to create a new JWT token + * that's recognized as the access token. + * + * @param email the service account email address. + * @param key the private key that will be used to sign the token. + * @param keyId the ID of the private key used to sign the token. + */ + constructor(email, key, keyId, eagerRefreshThresholdMillis) { + this.cache = new util_1.LRUCache({ + capacity: 500, + maxAge: 60 * 60 * 1000, + }); + this.email = email; + this.key = key; + this.keyId = keyId; + this.eagerRefreshThresholdMillis = + eagerRefreshThresholdMillis !== null && eagerRefreshThresholdMillis !== void 0 ? eagerRefreshThresholdMillis : 5 * 60 * 1000; + } + /** + * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url + * + * @param url The URI being authorized. + * @param scopes The scope or scopes being authorized + * @returns A string that returns the cached key. + */ + getCachedKey(url, scopes) { + let cacheKey = url; + if (scopes && Array.isArray(scopes) && scopes.length) { + cacheKey = url ? `${url}_${scopes.join('_')}` : `${scopes.join('_')}`; + } + else if (typeof scopes === 'string') { + cacheKey = url ? `${url}_${scopes}` : scopes; + } + if (!cacheKey) { + throw Error('Scopes or url must be provided'); + } + return cacheKey; + } + /** + * Get a non-expired access token, after refreshing if necessary. + * + * @param url The URI being authorized. + * @param additionalClaims An object with a set of additional claims to + * include in the payload. + * @returns An object that includes the authorization header. + */ + getRequestHeaders(url, additionalClaims, scopes) { + // Return cached authorization headers, unless we are within + // eagerRefreshThresholdMillis ms of them expiring: + const key = this.getCachedKey(url, scopes); + const cachedToken = this.cache.get(key); + const now = Date.now(); + if (cachedToken && + cachedToken.expiration - now > this.eagerRefreshThresholdMillis) { + return cachedToken.headers; + } + const iat = Math.floor(Date.now() / 1000); + const exp = JWTAccess.getExpirationTime(iat); + let defaultClaims; + // Turn scopes into space-separated string + if (Array.isArray(scopes)) { + scopes = scopes.join(' '); + } + // If scopes are specified, sign with scopes + if (scopes) { + defaultClaims = { + iss: this.email, + sub: this.email, + scope: scopes, + exp, + iat, + }; + } + else { + defaultClaims = { + iss: this.email, + sub: this.email, + aud: url, + exp, + iat, + }; + } + // if additionalClaims are provided, ensure they do not collide with + // other required claims. + if (additionalClaims) { + for (const claim in defaultClaims) { + if (additionalClaims[claim]) { + throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); + } + } + } + const header = this.keyId + ? { ...DEFAULT_HEADER, kid: this.keyId } + : DEFAULT_HEADER; + const payload = Object.assign(defaultClaims, additionalClaims); + // Sign the jwt and add it to the cache + const signedJWT = jws.sign({ header, payload, secret: this.key }); + const headers = { Authorization: `Bearer ${signedJWT}` }; + this.cache.set(key, { + expiration: exp * 1000, + headers, + }); + return headers; + } + /** + * Returns an expiration time for the JWT token. + * + * @param iat The issued at time for the JWT. + * @returns An expiration time for the JWT. + */ + static getExpirationTime(iat) { + const exp = iat + 3600; // 3600 seconds = 1 hour + return exp; + } + /** + * Create a JWTAccess credentials instance using the given input options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + reject(new Error('Must pass in a stream containing the service account auth settings.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('data', chunk => (s += chunk)) + .on('error', reject) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (err) { + reject(err); + } + }); + }); + } +} +exports.JWTAccess = JWTAccess; + + +/***/ }), + +/***/ 14946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2013 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.JWT = void 0; +const gtoken_1 = __nccwpck_require__(31135); +const jwtaccess_1 = __nccwpck_require__(74651); +const oauth2client_1 = __nccwpck_require__(33502); +const authclient_1 = __nccwpck_require__(60611); +class JWT extends oauth2client_1.OAuth2Client { + constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { + const opts = optionsOrEmail && typeof optionsOrEmail === 'object' + ? optionsOrEmail + : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; + super(opts); + this.email = opts.email; + this.keyFile = opts.keyFile; + this.key = opts.key; + this.keyId = opts.keyId; + this.scopes = opts.scopes; + this.subject = opts.subject; + this.additionalClaims = opts.additionalClaims; + // Start with an expired refresh token, which will automatically be + // refreshed before the first API call is made. + this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; + } + /** + * Creates a copy of the credential with the specified scopes. + * @param scopes List of requested scopes or a single scope. + * @return The cloned instance. + */ + createScoped(scopes) { + const jwt = new JWT(this); + jwt.scopes = scopes; + return jwt; + } + /** + * Obtains the metadata to be sent with the request. + * + * @param url the URI being authorized. + */ + async getRequestMetadataAsync(url) { + url = this.defaultServicePath ? `https://${this.defaultServicePath}/` : url; + const useSelfSignedJWT = (!this.hasUserScopes() && url) || + (this.useJWTAccessWithScope && this.hasAnyScopes()) || + this.universeDomain !== authclient_1.DEFAULT_UNIVERSE; + if (this.subject && this.universeDomain !== authclient_1.DEFAULT_UNIVERSE) { + throw new RangeError(`Service Account user is configured for the credential. Domain-wide delegation is not supported in universes other than ${authclient_1.DEFAULT_UNIVERSE}`); + } + if (!this.apiKey && useSelfSignedJWT) { + if (this.additionalClaims && + this.additionalClaims.target_audience) { + const { tokens } = await this.refreshToken(); + return { + headers: this.addSharedMetadataHeaders({ + Authorization: `Bearer ${tokens.id_token}`, + }), + }; + } + else { + // no scopes have been set, but a uri has been provided. Use JWTAccess + // credentials. + if (!this.access) { + this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId, this.eagerRefreshThresholdMillis); + } + let scopes; + if (this.hasUserScopes()) { + scopes = this.scopes; + } + else if (!url) { + scopes = this.defaultScopes; + } + const useScopes = this.useJWTAccessWithScope || + this.universeDomain !== authclient_1.DEFAULT_UNIVERSE; + const headers = await this.access.getRequestHeaders(url !== null && url !== void 0 ? url : undefined, this.additionalClaims, + // Scopes take precedent over audience for signing, + // so we only provide them if `useJWTAccessWithScope` is on or + // if we are in a non-default universe + useScopes ? scopes : undefined); + return { headers: this.addSharedMetadataHeaders(headers) }; + } + } + else if (this.hasAnyScopes() || this.apiKey) { + return super.getRequestMetadataAsync(url); + } + else { + // If no audience, apiKey, or scopes are provided, we should not attempt + // to populate any headers: + return { headers: {} }; + } + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + // Create a new gToken for fetching an ID token + const gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes || this.defaultScopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: { target_audience: targetAudience }, + transporter: this.transporter, + }); + await gtoken.getToken({ + forceRefresh: true, + }); + if (!gtoken.idToken) { + throw new Error('Unknown error: Failed to fetch ID token'); + } + return gtoken.idToken; + } + /** + * Determine if there are currently scopes available. + */ + hasUserScopes() { + if (!this.scopes) { + return false; + } + return this.scopes.length > 0; + } + /** + * Are there any default or user scopes defined. + */ + hasAnyScopes() { + if (this.scopes && this.scopes.length > 0) + return true; + if (this.defaultScopes && this.defaultScopes.length > 0) + return true; + return false; + } + authorize(callback) { + if (callback) { + this.authorizeAsync().then(r => callback(null, r), callback); + } + else { + return this.authorizeAsync(); + } + } + async authorizeAsync() { + const result = await this.refreshToken(); + if (!result) { + throw new Error('No result returned'); + } + this.credentials = result.tokens; + this.credentials.refresh_token = 'jwt-placeholder'; + this.key = this.gtoken.key; + this.email = this.gtoken.iss; + return result.tokens; + } + /** + * Refreshes the access token. + * @param refreshToken ignored + * @private + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + const gtoken = this.createGToken(); + const token = await gtoken.getToken({ + forceRefresh: this.isTokenExpiring(), + }); + const tokens = { + access_token: token.access_token, + token_type: 'Bearer', + expiry_date: gtoken.expiresAt, + id_token: gtoken.idToken, + }; + this.emit('tokens', tokens); + return { res: null, tokens }; + } + /** + * Create a gToken if it doesn't already exist. + */ + createGToken() { + if (!this.gtoken) { + this.gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes || this.defaultScopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: this.additionalClaims, + transporter: this.transporter, + }); + } + return this.gtoken; + } + /** + * Create a JWT credentials instance using the given input options. + * @param json The input object. + * + * @remarks + * + * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an external source for authentication to Google Cloud, you must validate it before providing it to any Google API or library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to {@link https://cloud.google.com/docs/authentication/external/externally-sourced-credentials Validate credential configurations from external sources}. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + this.quotaProjectId = json.quota_project_id; + this.universeDomain = json.universe_domain || this.universeDomain; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the service account auth settings.'); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Creates a JWT credentials instance using an API Key for authentication. + * @param apiKey The API Key in string form. + */ + fromAPIKey(apiKey) { + if (typeof apiKey !== 'string') { + throw new Error('Must provide an API Key string.'); + } + this.apiKey = apiKey; + } + /** + * Using the key or keyFile on the JWT client, obtain an object that contains + * the key and the client email. + */ + async getCredentials() { + if (this.key) { + return { private_key: this.key, client_email: this.email }; + } + else if (this.keyFile) { + const gtoken = this.createGToken(); + const creds = await gtoken.getCredentials(this.keyFile); + return { private_key: creds.privateKey, client_email: creds.clientEmail }; + } + throw new Error('A key or a keyFile must be provided to getCredentials.'); + } +} +exports.JWT = JWT; + + +/***/ }), + +/***/ 30869: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2014 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LoginTicket = void 0; +class LoginTicket { + /** + * Create a simple class to extract user ID from an ID Token + * + * @param {string} env Envelope of the jwt + * @param {TokenPayload} pay Payload of the jwt + * @constructor + */ + constructor(env, pay) { + this.envelope = env; + this.payload = pay; + } + getEnvelope() { + return this.envelope; + } + getPayload() { + return this.payload; + } + /** + * Create a simple class to extract user ID from an ID Token + * + * @return The user ID + */ + getUserId() { + const payload = this.getPayload(); + if (payload && payload.sub) { + return payload.sub; + } + return null; + } + /** + * Returns attributes from the login ticket. This can contain + * various information about the user session. + * + * @return The envelope and payload + */ + getAttributes() { + return { envelope: this.getEnvelope(), payload: this.getPayload() }; + } +} +exports.LoginTicket = LoginTicket; + + +/***/ }), + +/***/ 33502: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OAuth2Client = exports.ClientAuthentication = exports.CertificateFormat = exports.CodeChallengeMethod = void 0; +const gaxios_1 = __nccwpck_require__(9024); +const querystring = __nccwpck_require__(83480); +const stream = __nccwpck_require__(2203); +const formatEcdsa = __nccwpck_require__(59086); +const crypto_1 = __nccwpck_require__(71566); +const authclient_1 = __nccwpck_require__(60611); +const loginticket_1 = __nccwpck_require__(30869); +var CodeChallengeMethod; +(function (CodeChallengeMethod) { + CodeChallengeMethod["Plain"] = "plain"; + CodeChallengeMethod["S256"] = "S256"; +})(CodeChallengeMethod || (exports.CodeChallengeMethod = CodeChallengeMethod = {})); +var CertificateFormat; +(function (CertificateFormat) { + CertificateFormat["PEM"] = "PEM"; + CertificateFormat["JWK"] = "JWK"; +})(CertificateFormat || (exports.CertificateFormat = CertificateFormat = {})); +/** + * The client authentication type. Supported values are basic, post, and none. + * https://datatracker.ietf.org/doc/html/rfc7591#section-2 + */ +var ClientAuthentication; +(function (ClientAuthentication) { + ClientAuthentication["ClientSecretPost"] = "ClientSecretPost"; + ClientAuthentication["ClientSecretBasic"] = "ClientSecretBasic"; + ClientAuthentication["None"] = "None"; +})(ClientAuthentication || (exports.ClientAuthentication = ClientAuthentication = {})); +class OAuth2Client extends authclient_1.AuthClient { + constructor(optionsOrClientId, clientSecret, redirectUri) { + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { clientId: optionsOrClientId, clientSecret, redirectUri }; + super(opts); + this.certificateCache = {}; + this.certificateExpiry = null; + this.certificateCacheFormat = CertificateFormat.PEM; + this.refreshTokenPromises = new Map(); + this._clientId = opts.clientId; + this._clientSecret = opts.clientSecret; + this.redirectUri = opts.redirectUri; + this.endpoints = { + tokenInfoUrl: 'https://oauth2.googleapis.com/tokeninfo', + oauth2AuthBaseUrl: 'https://accounts.google.com/o/oauth2/v2/auth', + oauth2TokenUrl: 'https://oauth2.googleapis.com/token', + oauth2RevokeUrl: 'https://oauth2.googleapis.com/revoke', + oauth2FederatedSignonPemCertsUrl: 'https://www.googleapis.com/oauth2/v1/certs', + oauth2FederatedSignonJwkCertsUrl: 'https://www.googleapis.com/oauth2/v3/certs', + oauth2IapPublicKeyUrl: 'https://www.gstatic.com/iap/verify/public_key', + ...opts.endpoints, + }; + this.clientAuthentication = + opts.clientAuthentication || ClientAuthentication.ClientSecretPost; + this.issuers = opts.issuers || [ + 'accounts.google.com', + 'https://accounts.google.com', + this.universeDomain, + ]; + } + /** + * Generates URL for consent page landing. + * @param opts Options. + * @return URL to consent page. + */ + generateAuthUrl(opts = {}) { + if (opts.code_challenge_method && !opts.code_challenge) { + throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); + } + opts.response_type = opts.response_type || 'code'; + opts.client_id = opts.client_id || this._clientId; + opts.redirect_uri = opts.redirect_uri || this.redirectUri; + // Allow scopes to be passed either as array or a string + if (Array.isArray(opts.scope)) { + opts.scope = opts.scope.join(' '); + } + const rootUrl = this.endpoints.oauth2AuthBaseUrl.toString(); + return (rootUrl + + '?' + + querystring.stringify(opts)); + } + generateCodeVerifier() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); + } + /** + * Convenience method to automatically generate a code_verifier, and its + * resulting SHA256. If used, this must be paired with a S256 + * code_challenge_method. + * + * For a full example see: + * https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js + */ + async generateCodeVerifierAsync() { + // base64 encoding uses 6 bits per character, and we want to generate128 + // characters. 6*128/8 = 96. + const crypto = (0, crypto_1.createCrypto)(); + const randomString = crypto.randomBytesBase64(96); + // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ + // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just + // swapping out a few chars. + const codeVerifier = randomString + .replace(/\+/g, '~') + .replace(/=/g, '_') + .replace(/\//g, '-'); + // Generate the base64 encoded SHA256 + const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); + // We need to use base64UrlEncoding instead of standard base64 + const codeChallenge = unencodedCodeChallenge + .split('=')[0] + .replace(/\+/g, '-') + .replace(/\//g, '_'); + return { codeVerifier, codeChallenge }; + } + getToken(codeOrOptions, callback) { + const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; + if (callback) { + this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); + } + else { + return this.getTokenAsync(options); + } + } + async getTokenAsync(options) { + const url = this.endpoints.oauth2TokenUrl.toString(); + const headers = { + 'Content-Type': 'application/x-www-form-urlencoded', + }; + const values = { + client_id: options.client_id || this._clientId, + code_verifier: options.codeVerifier, + code: options.code, + grant_type: 'authorization_code', + redirect_uri: options.redirect_uri || this.redirectUri, + }; + if (this.clientAuthentication === ClientAuthentication.ClientSecretBasic) { + const basic = Buffer.from(`${this._clientId}:${this._clientSecret}`); + headers['Authorization'] = `Basic ${basic.toString('base64')}`; + } + if (this.clientAuthentication === ClientAuthentication.ClientSecretPost) { + values.client_secret = this._clientSecret; + } + const res = await this.transporter.request({ + ...OAuth2Client.RETRY_CONFIG, + method: 'POST', + url, + data: querystring.stringify(values), + headers, + }); + const tokens = res.data; + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + /** + * Refreshes the access token. + * @param refresh_token Existing refresh token. + * @private + */ + async refreshToken(refreshToken) { + if (!refreshToken) { + return this.refreshTokenNoCache(refreshToken); + } + // If a request to refresh using the same token has started, + // return the same promise. + if (this.refreshTokenPromises.has(refreshToken)) { + return this.refreshTokenPromises.get(refreshToken); + } + const p = this.refreshTokenNoCache(refreshToken).then(r => { + this.refreshTokenPromises.delete(refreshToken); + return r; + }, e => { + this.refreshTokenPromises.delete(refreshToken); + throw e; + }); + this.refreshTokenPromises.set(refreshToken, p); + return p; + } + async refreshTokenNoCache(refreshToken) { + var _a; + if (!refreshToken) { + throw new Error('No refresh token is set.'); + } + const url = this.endpoints.oauth2TokenUrl.toString(); + const data = { + refresh_token: refreshToken, + client_id: this._clientId, + client_secret: this._clientSecret, + grant_type: 'refresh_token', + }; + let res; + try { + // request for new token + res = await this.transporter.request({ + ...OAuth2Client.RETRY_CONFIG, + method: 'POST', + url, + data: querystring.stringify(data), + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + }); + } + catch (e) { + if (e instanceof gaxios_1.GaxiosError && + e.message === 'invalid_grant' && + ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) && + /ReAuth/i.test(e.response.data.error_description)) { + e.message = JSON.stringify(e.response.data); + } + throw e; + } + const tokens = res.data; + // TODO: de-duplicate this code from a few spots + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + refreshAccessToken(callback) { + if (callback) { + this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); + } + else { + return this.refreshAccessTokenAsync(); + } + } + async refreshAccessTokenAsync() { + const r = await this.refreshToken(this.credentials.refresh_token); + const tokens = r.tokens; + tokens.refresh_token = this.credentials.refresh_token; + this.credentials = tokens; + return { credentials: this.credentials, res: r.res }; + } + getAccessToken(callback) { + if (callback) { + this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); + } + else { + return this.getAccessTokenAsync(); + } + } + async getAccessTokenAsync() { + const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); + if (shouldRefresh) { + if (!this.credentials.refresh_token) { + if (this.refreshHandler) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + return { token: this.credentials.access_token }; + } + } + else { + throw new Error('No refresh token or refresh handler callback is set.'); + } + } + const r = await this.refreshAccessTokenAsync(); + if (!r.credentials || (r.credentials && !r.credentials.access_token)) { + throw new Error('Could not refresh access token.'); + } + return { token: r.credentials.access_token, res: r.res }; + } + else { + return { token: this.credentials.access_token }; + } + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * In OAuth2Client, the result has the form: + * { Authorization: 'Bearer ' } + * @param url The optional url being authorized + */ + async getRequestHeaders(url) { + const headers = (await this.getRequestMetadataAsync(url)).headers; + return headers; + } + async getRequestMetadataAsync( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + url) { + const thisCreds = this.credentials; + if (!thisCreds.access_token && + !thisCreds.refresh_token && + !this.apiKey && + !this.refreshHandler) { + throw new Error('No access, refresh token, API key or refresh handler callback is set.'); + } + if (thisCreds.access_token && !this.isTokenExpiring()) { + thisCreds.token_type = thisCreds.token_type || 'Bearer'; + const headers = { + Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers) }; + } + // If refreshHandler exists, call processAndValidateRefreshHandler(). + if (this.refreshHandler) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + const headers = { + Authorization: 'Bearer ' + this.credentials.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers) }; + } + } + if (this.apiKey) { + return { headers: { 'X-Goog-Api-Key': this.apiKey } }; + } + let r = null; + let tokens = null; + try { + r = await this.refreshToken(thisCreds.refresh_token); + tokens = r.tokens; + } + catch (err) { + const e = err; + if (e.response && + (e.response.status === 403 || e.response.status === 404)) { + e.message = `Could not refresh access token: ${e.message}`; + } + throw e; + } + const credentials = this.credentials; + credentials.token_type = credentials.token_type || 'Bearer'; + tokens.refresh_token = credentials.refresh_token; + this.credentials = tokens; + const headers = { + Authorization: credentials.token_type + ' ' + tokens.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; + } + /** + * Generates an URL to revoke the given token. + * @param token The existing token to be revoked. + * + * @deprecated use instance method {@link OAuth2Client.getRevokeTokenURL} + */ + static getRevokeTokenUrl(token) { + return new OAuth2Client().getRevokeTokenURL(token).toString(); + } + /** + * Generates a URL to revoke the given token. + * + * @param token The existing token to be revoked. + */ + getRevokeTokenURL(token) { + const url = new URL(this.endpoints.oauth2RevokeUrl); + url.searchParams.append('token', token); + return url; + } + revokeToken(token, callback) { + const opts = { + ...OAuth2Client.RETRY_CONFIG, + url: this.getRevokeTokenURL(token).toString(), + method: 'POST', + }; + if (callback) { + this.transporter + .request(opts) + .then(r => callback(null, r), callback); + } + else { + return this.transporter.request(opts); + } + } + revokeCredentials(callback) { + if (callback) { + this.revokeCredentialsAsync().then(res => callback(null, res), callback); + } + else { + return this.revokeCredentialsAsync(); + } + } + async revokeCredentialsAsync() { + const token = this.credentials.access_token; + this.credentials = {}; + if (token) { + return this.revokeToken(token); + } + else { + throw new Error('No access token to revoke.'); + } + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + async requestAsync(opts, reAuthRetried = false) { + let r2; + try { + const r = await this.getRequestMetadataAsync(opts.url); + opts.headers = opts.headers || {}; + if (r.headers && r.headers['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; + } + if (r.headers && r.headers.Authorization) { + opts.headers.Authorization = r.headers.Authorization; + } + if (this.apiKey) { + opts.headers['X-Goog-Api-Key'] = this.apiKey; + } + r2 = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - An access_token and refresh_token were available, but either no + // expiry_date was available or the forceRefreshOnFailure flag is set. + // The absent expiry_date case can happen when developers stash the + // access_token and refresh_token for later use, but the access_token + // fails on the first try because it's expired. Some developers may + // choose to enable forceRefreshOnFailure to mitigate time-related + // errors. + // Or the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - No refresh_token was available + // - An access_token and a refreshHandler callback were available, but + // either no expiry_date was available or the forceRefreshOnFailure + // flag is set. The access_token fails on the first try because it's + // expired. Some developers may choose to enable forceRefreshOnFailure + // to mitigate time-related errors. + const mayRequireRefresh = this.credentials && + this.credentials.access_token && + this.credentials.refresh_token && + (!this.credentials.expiry_date || this.forceRefreshOnFailure); + const mayRequireRefreshWithNoRefreshToken = this.credentials && + this.credentials.access_token && + !this.credentials.refresh_token && + (!this.credentials.expiry_date || this.forceRefreshOnFailure) && + this.refreshHandler; + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!reAuthRetried && + isAuthErr && + !isReadableStream && + mayRequireRefresh) { + await this.refreshAccessTokenAsync(); + return this.requestAsync(opts, true); + } + else if (!reAuthRetried && + isAuthErr && + !isReadableStream && + mayRequireRefreshWithNoRefreshToken) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + } + return this.requestAsync(opts, true); + } + } + throw e; + } + return r2; + } + verifyIdToken(options, callback) { + // This function used to accept two arguments instead of an options object. + // Check the types to help users upgrade with less pain. + // This check can be removed after a 2.0 release. + if (callback && typeof callback !== 'function') { + throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); + } + if (callback) { + this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); + } + else { + return this.verifyIdTokenAsync(options); + } + } + async verifyIdTokenAsync(options) { + if (!options.idToken) { + throw new Error('The verifyIdToken method requires an ID Token'); + } + const response = await this.getFederatedSignonCertsAsync(); + const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, this.issuers, options.maxExpiry); + return login; + } + /** + * Obtains information about the provisioned access token. Especially useful + * if you want to check the scopes that were provisioned to a given token. + * + * @param accessToken Required. The Access Token for which you want to get + * user info. + */ + async getTokenInfo(accessToken) { + const { data } = await this.transporter.request({ + ...OAuth2Client.RETRY_CONFIG, + method: 'POST', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: `Bearer ${accessToken}`, + }, + url: this.endpoints.tokenInfoUrl.toString(), + }); + const info = Object.assign({ + expiry_date: new Date().getTime() + data.expires_in * 1000, + scopes: data.scope.split(' '), + }, data); + delete info.expires_in; + delete info.scope; + return info; + } + getFederatedSignonCerts(callback) { + if (callback) { + this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); + } + else { + return this.getFederatedSignonCertsAsync(); + } + } + async getFederatedSignonCertsAsync() { + const nowTime = new Date().getTime(); + const format = (0, crypto_1.hasBrowserCrypto)() + ? CertificateFormat.JWK + : CertificateFormat.PEM; + if (this.certificateExpiry && + nowTime < this.certificateExpiry.getTime() && + this.certificateCacheFormat === format) { + return { certs: this.certificateCache, format }; + } + let res; + let url; + switch (format) { + case CertificateFormat.PEM: + url = this.endpoints.oauth2FederatedSignonPemCertsUrl.toString(); + break; + case CertificateFormat.JWK: + url = this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString(); + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + try { + res = await this.transporter.request({ + ...OAuth2Client.RETRY_CONFIG, + url, + }); + } + catch (e) { + if (e instanceof Error) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + } + throw e; + } + const cacheControl = res ? res.headers['cache-control'] : undefined; + let cacheAge = -1; + if (cacheControl) { + const pattern = new RegExp('max-age=([0-9]*)'); + const regexResult = pattern.exec(cacheControl); + if (regexResult && regexResult.length === 2) { + // Cache results with max-age (in seconds) + cacheAge = Number(regexResult[1]) * 1000; // milliseconds + } + } + let certificates = {}; + switch (format) { + case CertificateFormat.PEM: + certificates = res.data; + break; + case CertificateFormat.JWK: + for (const key of res.data.keys) { + certificates[key.kid] = key; + } + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + const now = new Date(); + this.certificateExpiry = + cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); + this.certificateCache = certificates; + this.certificateCacheFormat = format; + return { certs: certificates, format, res }; + } + getIapPublicKeys(callback) { + if (callback) { + this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); + } + else { + return this.getIapPublicKeysAsync(); + } + } + async getIapPublicKeysAsync() { + let res; + const url = this.endpoints.oauth2IapPublicKeyUrl.toString(); + try { + res = await this.transporter.request({ + ...OAuth2Client.RETRY_CONFIG, + url, + }); + } + catch (e) { + if (e instanceof Error) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + } + throw e; + } + return { pubkeys: res.data, res }; + } + verifySignedJwtWithCerts() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); + } + /** + * Verify the id token is signed with the correct certificate + * and is from the correct audience. + * @param jwt The jwt to verify (The ID Token in this case). + * @param certs The array of certs to test the jwt against. + * @param requiredAudience The audience to test the jwt against. + * @param issuers The allowed issuers of the jwt (Optional). + * @param maxExpiry The max expiry the certificate can be (Optional). + * @return Returns a promise resolving to LoginTicket on verification. + */ + async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { + const crypto = (0, crypto_1.createCrypto)(); + if (!maxExpiry) { + maxExpiry = OAuth2Client.DEFAULT_MAX_TOKEN_LIFETIME_SECS_; + } + const segments = jwt.split('.'); + if (segments.length !== 3) { + throw new Error('Wrong number of segments in token: ' + jwt); + } + const signed = segments[0] + '.' + segments[1]; + let signature = segments[2]; + let envelope; + let payload; + try { + envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); + } + catch (err) { + if (err instanceof Error) { + err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; + } + throw err; + } + if (!envelope) { + throw new Error("Can't parse token envelope: " + segments[0]); + } + try { + payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); + } + catch (err) { + if (err instanceof Error) { + err.message = `Can't parse token payload '${segments[0]}`; + } + throw err; + } + if (!payload) { + throw new Error("Can't parse token payload: " + segments[1]); + } + if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { + // If this is not present, then there's no reason to attempt verification + throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); + } + const cert = certs[envelope.kid]; + if (envelope.alg === 'ES256') { + signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); + } + const verified = await crypto.verify(cert, signed, signature); + if (!verified) { + throw new Error('Invalid token signature: ' + jwt); + } + if (!payload.iat) { + throw new Error('No issue time in token: ' + JSON.stringify(payload)); + } + if (!payload.exp) { + throw new Error('No expiration time in token: ' + JSON.stringify(payload)); + } + const iat = Number(payload.iat); + if (isNaN(iat)) + throw new Error('iat field using invalid format'); + const exp = Number(payload.exp); + if (isNaN(exp)) + throw new Error('exp field using invalid format'); + const now = new Date().getTime() / 1000; + if (exp >= now + maxExpiry) { + throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); + } + const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; + const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; + if (now < earliest) { + throw new Error('Token used too early, ' + + now + + ' < ' + + earliest + + ': ' + + JSON.stringify(payload)); + } + if (now > latest) { + throw new Error('Token used too late, ' + + now + + ' > ' + + latest + + ': ' + + JSON.stringify(payload)); + } + if (issuers && issuers.indexOf(payload.iss) < 0) { + throw new Error('Invalid issuer, expected one of [' + + issuers + + '], but got ' + + payload.iss); + } + // Check the audience matches if we have one + if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { + const aud = payload.aud; + let audVerified = false; + // If the requiredAudience is an array, check if it contains token + // audience + if (requiredAudience.constructor === Array) { + audVerified = requiredAudience.indexOf(aud) > -1; + } + else { + audVerified = aud === requiredAudience; + } + if (!audVerified) { + throw new Error('Wrong recipient, payload audience != requiredAudience'); + } + } + return new loginticket_1.LoginTicket(envelope, payload); + } + /** + * Returns a promise that resolves with AccessTokenResponse type if + * refreshHandler is defined. + * If not, nothing is returned. + */ + async processAndValidateRefreshHandler() { + if (this.refreshHandler) { + const accessTokenResponse = await this.refreshHandler(); + if (!accessTokenResponse.access_token) { + throw new Error('No access token is returned by the refreshHandler callback.'); + } + return accessTokenResponse; + } + return; + } + /** + * Returns true if a token is expired or will expire within + * eagerRefreshThresholdMillismilliseconds. + * If there is no expiry time, assumes the token is not expired or expiring. + */ + isTokenExpiring() { + const expiryDate = this.credentials.expiry_date; + return expiryDate + ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis + : false; + } +} +exports.OAuth2Client = OAuth2Client; +/** + * @deprecated use instance's {@link OAuth2Client.endpoints} + */ +OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; +/** + * Clock skew - five minutes in seconds + */ +OAuth2Client.CLOCK_SKEW_SECS_ = 300; +/** + * The default max Token Lifetime is one day in seconds + */ +OAuth2Client.DEFAULT_MAX_TOKEN_LIFETIME_SECS_ = 86400; + + +/***/ }), + +/***/ 46564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OAuthClientAuthHandler = void 0; +exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse; +const querystring = __nccwpck_require__(83480); +const crypto_1 = __nccwpck_require__(71566); +/** List of HTTP methods that accept request bodies. */ +const METHODS_SUPPORTING_REQUEST_BODY = ['PUT', 'POST', 'PATCH']; +/** + * Abstract class for handling client authentication in OAuth-based + * operations. + * When request-body client authentication is used, only application/json and + * application/x-www-form-urlencoded content types for HTTP methods that support + * request bodies are supported. + */ +class OAuthClientAuthHandler { + /** + * Instantiates an OAuth client authentication handler. + * @param clientAuthentication The client auth credentials. + */ + constructor(clientAuthentication) { + this.clientAuthentication = clientAuthentication; + this.crypto = (0, crypto_1.createCrypto)(); + } + /** + * Applies client authentication on the OAuth request's headers or POST + * body but does not process the request. + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + * @param bearerToken The optional bearer token to use for authentication. + * When this is used, no client authentication credentials are needed. + */ + applyClientAuthenticationOptions(opts, bearerToken) { + // Inject authenticated header. + this.injectAuthenticatedHeaders(opts, bearerToken); + // Inject authenticated request body. + if (!bearerToken) { + this.injectAuthenticatedRequestBody(opts); + } + } + /** + * Applies client authentication on the request's header if either + * basic authentication or bearer token authentication is selected. + * + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + * @param bearerToken The optional bearer token to use for authentication. + * When this is used, no client authentication credentials are needed. + */ + injectAuthenticatedHeaders(opts, bearerToken) { + var _a; + // Bearer token prioritized higher than basic Auth. + if (bearerToken) { + opts.headers = opts.headers || {}; + Object.assign(opts.headers, { + Authorization: `Bearer ${bearerToken}}`, + }); + } + else if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'basic') { + opts.headers = opts.headers || {}; + const clientId = this.clientAuthentication.clientId; + const clientSecret = this.clientAuthentication.clientSecret || ''; + const base64EncodedCreds = this.crypto.encodeBase64StringUtf8(`${clientId}:${clientSecret}`); + Object.assign(opts.headers, { + Authorization: `Basic ${base64EncodedCreds}`, + }); + } + } + /** + * Applies client authentication on the request's body if request-body + * client authentication is selected. + * + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + */ + injectAuthenticatedRequestBody(opts) { + var _a; + if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'request-body') { + const method = (opts.method || 'GET').toUpperCase(); + // Inject authenticated request body. + if (METHODS_SUPPORTING_REQUEST_BODY.indexOf(method) !== -1) { + // Get content-type. + let contentType; + const headers = opts.headers || {}; + for (const key in headers) { + if (key.toLowerCase() === 'content-type' && headers[key]) { + contentType = headers[key].toLowerCase(); + break; + } + } + if (contentType === 'application/x-www-form-urlencoded') { + opts.data = opts.data || ''; + const data = querystring.parse(opts.data); + Object.assign(data, { + client_id: this.clientAuthentication.clientId, + client_secret: this.clientAuthentication.clientSecret || '', + }); + opts.data = querystring.stringify(data); + } + else if (contentType === 'application/json') { + opts.data = opts.data || {}; + Object.assign(opts.data, { + client_id: this.clientAuthentication.clientId, + client_secret: this.clientAuthentication.clientSecret || '', + }); + } + else { + throw new Error(`${contentType} content-types are not supported with ` + + `${this.clientAuthentication.confidentialClientType} ` + + 'client authentication'); + } + } + else { + throw new Error(`${method} HTTP method does not support ` + + `${this.clientAuthentication.confidentialClientType} ` + + 'client authentication'); + } + } + } + /** + * Retry config for Auth-related requests. + * + * @remarks + * + * This is not a part of the default {@link AuthClient.transporter transporter/gaxios} + * config as some downstream APIs would prefer if customers explicitly enable retries, + * such as GCS. + */ + static get RETRY_CONFIG() { + return { + retry: true, + retryConfig: { + httpMethodsToRetry: ['GET', 'PUT', 'POST', 'HEAD', 'OPTIONS', 'DELETE'], + }, + }; + } +} +exports.OAuthClientAuthHandler = OAuthClientAuthHandler; +/** + * Converts an OAuth error response to a native JavaScript Error. + * @param resp The OAuth error response to convert to a native Error object. + * @param err The optional original error. If provided, the error properties + * will be copied to the new error. + * @return The converted native Error object. + */ +function getErrorFromOAuthErrorResponse(resp, err) { + // Error response. + const errorCode = resp.error; + const errorDescription = resp.error_description; + const errorUri = resp.error_uri; + let message = `Error code ${errorCode}`; + if (typeof errorDescription !== 'undefined') { + message += `: ${errorDescription}`; + } + if (typeof errorUri !== 'undefined') { + message += ` - ${errorUri}`; + } + const newError = new Error(message); + // Copy properties from original error to newly generated error. + if (err) { + const keys = Object.keys(err); + if (err.stack) { + // Copy error.stack if available. + keys.push('stack'); + } + keys.forEach(key => { + // Do not overwrite the message field. + if (key !== 'message') { + Object.defineProperty(newError, key, { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + value: err[key], + writable: false, + enumerable: true, + }); + } + }); + } + return newError; +} + + +/***/ }), + +/***/ 20654: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PassThroughClient = void 0; +const authclient_1 = __nccwpck_require__(60611); +/** + * An AuthClient without any Authentication information. Useful for: + * - Anonymous access + * - Local Emulators + * - Testing Environments + * + */ +class PassThroughClient extends authclient_1.AuthClient { + /** + * Creates a request without any authentication headers or checks. + * + * @remarks + * + * In testing environments it may be useful to change the provided + * {@link AuthClient.transporter} for any desired request overrides/handling. + * + * @param opts + * @returns The response of the request. + */ + async request(opts) { + return this.transporter.request(opts); + } + /** + * A required method of the base class. + * Always will return an empty object. + * + * @returns {} + */ + async getAccessToken() { + return {}; + } + /** + * A required method of the base class. + * Always will return an empty object. + * + * @returns {} + */ + async getRequestHeaders() { + return {}; + } +} +exports.PassThroughClient = PassThroughClient; +const a = new PassThroughClient(); +a.getAccessToken(); + + +/***/ }), + +/***/ 52582: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PluggableAuthClient = exports.ExecutableError = void 0; +const baseexternalclient_1 = __nccwpck_require__(92163); +const executable_response_1 = __nccwpck_require__(59984); +const pluggable_auth_handler_1 = __nccwpck_require__(18569); +/** + * Error thrown from the executable run by PluggableAuthClient. + */ +class ExecutableError extends Error { + constructor(message, code) { + super(`The executable failed with exit code: ${code} and error message: ${message}.`); + this.code = code; + Object.setPrototypeOf(this, new.target.prototype); + } +} +exports.ExecutableError = ExecutableError; +/** + * The default executable timeout when none is provided, in milliseconds. + */ +const DEFAULT_EXECUTABLE_TIMEOUT_MILLIS = 30 * 1000; +/** + * The minimum allowed executable timeout in milliseconds. + */ +const MINIMUM_EXECUTABLE_TIMEOUT_MILLIS = 5 * 1000; +/** + * The maximum allowed executable timeout in milliseconds. + */ +const MAXIMUM_EXECUTABLE_TIMEOUT_MILLIS = 120 * 1000; +/** + * The environment variable to check to see if executable can be run. + * Value must be set to '1' for the executable to run. + */ +const GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES = 'GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES'; +/** + * The maximum currently supported executable version. + */ +const MAXIMUM_EXECUTABLE_VERSION = 1; +/** + * PluggableAuthClient enables the exchange of workload identity pool external credentials for + * Google access tokens by retrieving 3rd party tokens through a user supplied executable. These + * scripts/executables are completely independent of the Google Cloud Auth libraries. These + * credentials plug into ADC and will call the specified executable to retrieve the 3rd party token + * to be exchanged for a Google access token. + * + *

To use these credentials, the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment variable + * must be set to '1'. This is for security reasons. + * + *

Both OIDC and SAML are supported. The executable must adhere to a specific response format + * defined below. + * + *

The executable must print out the 3rd party token to STDOUT in JSON format. When an + * output_file is specified in the credential configuration, the executable must also handle writing the + * JSON response to this file. + * + *

+ * OIDC response sample:
+ * {
+ *   "version": 1,
+ *   "success": true,
+ *   "token_type": "urn:ietf:params:oauth:token-type:id_token",
+ *   "id_token": "HEADER.PAYLOAD.SIGNATURE",
+ *   "expiration_time": 1620433341
+ * }
+ *
+ * SAML2 response sample:
+ * {
+ *   "version": 1,
+ *   "success": true,
+ *   "token_type": "urn:ietf:params:oauth:token-type:saml2",
+ *   "saml_response": "...",
+ *   "expiration_time": 1620433341
+ * }
+ *
+ * Error response sample:
+ * {
+ *   "version": 1,
+ *   "success": false,
+ *   "code": "401",
+ *   "message": "Error message."
+ * }
+ * 
+ * + *

The "expiration_time" field in the JSON response is only required for successful + * responses when an output file was specified in the credential configuration + * + *

The auth libraries will populate certain environment variables that will be accessible by the + * executable, such as: GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE, GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE, + * GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE, GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL, and + * GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE. + * + *

Please see this repositories README for a complete executable request/response specification. + */ +class PluggableAuthClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiates a PluggableAuthClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid pluggable auth credential. + * @param options The external account options object typically loaded from + * the external account JSON credential file. + * @param additionalOptions **DEPRECATED, all options are available in the + * `options` parameter.** Optional additional behavior customization options. + * These currently customize expiration threshold time and whether to retry + * on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + super(options, additionalOptions); + if (!options.credential_source.executable) { + throw new Error('No valid Pluggable Auth "credential_source" provided.'); + } + this.command = options.credential_source.executable.command; + if (!this.command) { + throw new Error('No valid Pluggable Auth "credential_source" provided.'); + } + // Check if the provided timeout exists and if it is valid. + if (options.credential_source.executable.timeout_millis === undefined) { + this.timeoutMillis = DEFAULT_EXECUTABLE_TIMEOUT_MILLIS; + } + else { + this.timeoutMillis = options.credential_source.executable.timeout_millis; + if (this.timeoutMillis < MINIMUM_EXECUTABLE_TIMEOUT_MILLIS || + this.timeoutMillis > MAXIMUM_EXECUTABLE_TIMEOUT_MILLIS) { + throw new Error(`Timeout must be between ${MINIMUM_EXECUTABLE_TIMEOUT_MILLIS} and ` + + `${MAXIMUM_EXECUTABLE_TIMEOUT_MILLIS} milliseconds.`); + } + } + this.outputFile = options.credential_source.executable.output_file; + this.handler = new pluggable_auth_handler_1.PluggableAuthHandler({ + command: this.command, + timeoutMillis: this.timeoutMillis, + outputFile: this.outputFile, + }); + this.credentialSourceType = 'executable'; + } + /** + * Triggered when an external subject token is needed to be exchanged for a + * GCP access token via GCP STS endpoint. + * This uses the `options.credential_source` object to figure out how + * to retrieve the token using the current environment. In this case, + * this calls a user provided executable which returns the subject token. + * The logic is summarized as: + * 1. Validated that the executable is allowed to run. The + * GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment must be set to + * 1 for security reasons. + * 2. If an output file is specified by the user, check the file location + * for a response. If the file exists and contains a valid response, + * return the subject token from the file. + * 3. Call the provided executable and return response. + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + // Check if the executable is allowed to run. + if (process.env[GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES] !== '1') { + throw new Error('Pluggable Auth executables need to be explicitly allowed to run by ' + + 'setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment ' + + 'Variable to 1.'); + } + let executableResponse = undefined; + // Try to get cached executable response from output file. + if (this.outputFile) { + executableResponse = await this.handler.retrieveCachedResponse(); + } + // If no response from output file, call the executable. + if (!executableResponse) { + // Set up environment map with required values for the executable. + const envMap = new Map(); + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE', this.audience); + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE', this.subjectTokenType); + // Always set to 0 because interactive mode is not supported. + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE', '0'); + if (this.outputFile) { + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE', this.outputFile); + } + const serviceAccountEmail = this.getServiceAccountEmail(); + if (serviceAccountEmail) { + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL', serviceAccountEmail); + } + executableResponse = + await this.handler.retrieveResponseFromExecutable(envMap); + } + if (executableResponse.version > MAXIMUM_EXECUTABLE_VERSION) { + throw new Error(`Version of executable is not currently supported, maximum supported version is ${MAXIMUM_EXECUTABLE_VERSION}.`); + } + // Check that response was successful. + if (!executableResponse.success) { + throw new ExecutableError(executableResponse.errorMessage, executableResponse.errorCode); + } + // Check that response contains expiration time if output file was specified. + if (this.outputFile) { + if (!executableResponse.expirationTime) { + throw new executable_response_1.InvalidExpirationTimeFieldError('The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.'); + } + } + // Check that response is not expired. + if (executableResponse.isExpired()) { + throw new Error('Executable response is expired.'); + } + // Return subject token from response. + return executableResponse.subjectToken; + } +} +exports.PluggableAuthClient = PluggableAuthClient; + + +/***/ }), + +/***/ 18569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PluggableAuthHandler = void 0; +const pluggable_auth_client_1 = __nccwpck_require__(52582); +const executable_response_1 = __nccwpck_require__(59984); +const childProcess = __nccwpck_require__(35317); +const fs = __nccwpck_require__(79896); +/** + * A handler used to retrieve 3rd party token responses from user defined + * executables and cached file output for the PluggableAuthClient class. + */ +class PluggableAuthHandler { + /** + * Instantiates a PluggableAuthHandler instance using the provided + * PluggableAuthHandlerOptions object. + */ + constructor(options) { + if (!options.command) { + throw new Error('No command provided.'); + } + this.commandComponents = PluggableAuthHandler.parseCommand(options.command); + this.timeoutMillis = options.timeoutMillis; + if (!this.timeoutMillis) { + throw new Error('No timeoutMillis provided.'); + } + this.outputFile = options.outputFile; + } + /** + * Calls user provided executable to get a 3rd party subject token and + * returns the response. + * @param envMap a Map of additional Environment Variables required for + * the executable. + * @return A promise that resolves with the executable response. + */ + retrieveResponseFromExecutable(envMap) { + return new Promise((resolve, reject) => { + // Spawn process to run executable using added environment variables. + const child = childProcess.spawn(this.commandComponents[0], this.commandComponents.slice(1), { + env: { ...process.env, ...Object.fromEntries(envMap) }, + }); + let output = ''; + // Append stdout to output as executable runs. + child.stdout.on('data', (data) => { + output += data; + }); + // Append stderr as executable runs. + child.stderr.on('data', (err) => { + output += err; + }); + // Set up a timeout to end the child process and throw an error. + const timeout = setTimeout(() => { + // Kill child process and remove listeners so 'close' event doesn't get + // read after child process is killed. + child.removeAllListeners(); + child.kill(); + return reject(new Error('The executable failed to finish within the timeout specified.')); + }, this.timeoutMillis); + child.on('close', (code) => { + // Cancel timeout if executable closes before timeout is reached. + clearTimeout(timeout); + if (code === 0) { + // If the executable completed successfully, try to return the parsed response. + try { + const responseJson = JSON.parse(output); + const response = new executable_response_1.ExecutableResponse(responseJson); + return resolve(response); + } + catch (error) { + if (error instanceof executable_response_1.ExecutableResponseError) { + return reject(error); + } + return reject(new executable_response_1.ExecutableResponseError(`The executable returned an invalid response: ${output}`)); + } + } + else { + return reject(new pluggable_auth_client_1.ExecutableError(output, code.toString())); + } + }); + }); + } + /** + * Checks user provided output file for response from previous run of + * executable and return the response if it exists, is formatted correctly, and is not expired. + */ + async retrieveCachedResponse() { + if (!this.outputFile || this.outputFile.length === 0) { + return undefined; + } + let filePath; + try { + filePath = await fs.promises.realpath(this.outputFile); + } + catch (_a) { + // If file path cannot be resolved, return undefined. + return undefined; + } + if (!(await fs.promises.lstat(filePath)).isFile()) { + // If path does not lead to file, return undefined. + return undefined; + } + const responseString = await fs.promises.readFile(filePath, { + encoding: 'utf8', + }); + if (responseString === '') { + return undefined; + } + try { + const responseJson = JSON.parse(responseString); + const response = new executable_response_1.ExecutableResponse(responseJson); + // Check if response is successful and unexpired. + if (response.isValid()) { + return new executable_response_1.ExecutableResponse(responseJson); + } + return undefined; + } + catch (error) { + if (error instanceof executable_response_1.ExecutableResponseError) { + throw error; + } + throw new executable_response_1.ExecutableResponseError(`The output file contained an invalid response: ${responseString}`); + } + } + /** + * Parses given command string into component array, splitting on spaces unless + * spaces are between quotation marks. + */ + static parseCommand(command) { + // Split the command into components by splitting on spaces, + // unless spaces are contained in quotation marks. + const components = command.match(/(?:[^\s"]+|"[^"]*")+/g); + if (!components) { + throw new Error(`Provided command: "${command}" could not be parsed.`); + } + // Remove quotation marks from the beginning and end of each component if they are present. + for (let i = 0; i < components.length; i++) { + if (components[i][0] === '"' && components[i].slice(-1) === '"') { + components[i] = components[i].slice(1, -1); + } + } + return components; + } +} +exports.PluggableAuthHandler = PluggableAuthHandler; + + +/***/ }), + +/***/ 24988: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UserRefreshClient = exports.USER_REFRESH_ACCOUNT_TYPE = void 0; +const oauth2client_1 = __nccwpck_require__(33502); +const querystring_1 = __nccwpck_require__(83480); +exports.USER_REFRESH_ACCOUNT_TYPE = 'authorized_user'; +class UserRefreshClient extends oauth2client_1.OAuth2Client { + constructor(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure) { + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { + clientId: optionsOrClientId, + clientSecret, + refreshToken, + eagerRefreshThresholdMillis, + forceRefreshOnFailure, + }; + super(opts); + this._refreshToken = opts.refreshToken; + this.credentials.refresh_token = opts.refreshToken; + } + /** + * Refreshes the access token. + * @param refreshToken An ignored refreshToken.. + * @param callback Optional callback. + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + return super.refreshTokenNoCache(this._refreshToken); + } + async fetchIdToken(targetAudience) { + const res = await this.transporter.request({ + ...UserRefreshClient.RETRY_CONFIG, + url: this.endpoints.oauth2TokenUrl, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + method: 'POST', + data: (0, querystring_1.stringify)({ + client_id: this._clientId, + client_secret: this._clientSecret, + grant_type: 'refresh_token', + refresh_token: this._refreshToken, + target_audience: targetAudience, + }), + }); + return res.data.id_token; + } + /** + * Create a UserRefreshClient credentials instance using the given input + * options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the user refresh token'); + } + if (json.type !== 'authorized_user') { + throw new Error('The incoming JSON object does not have the "authorized_user" type'); + } + if (!json.client_id) { + throw new Error('The incoming JSON object does not contain a client_id field'); + } + if (!json.client_secret) { + throw new Error('The incoming JSON object does not contain a client_secret field'); + } + if (!json.refresh_token) { + throw new Error('The incoming JSON object does not contain a refresh_token field'); + } + this._clientId = json.client_id; + this._clientSecret = json.client_secret; + this._refreshToken = json.refresh_token; + this.credentials.refresh_token = json.refresh_token; + this.quotaProjectId = json.quota_project_id; + this.universeDomain = json.universe_domain || this.universeDomain; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + async fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + return reject(new Error('Must pass in a stream containing the user refresh token.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + return resolve(); + } + catch (err) { + return reject(err); + } + }); + }); + } + /** + * Create a UserRefreshClient credentials instance using the given input + * options. + * @param json The input object. + */ + static fromJSON(json) { + const client = new UserRefreshClient(); + client.fromJSON(json); + return client; + } +} +exports.UserRefreshClient = UserRefreshClient; + + +/***/ }), + +/***/ 52548: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StsCredentials = void 0; +const gaxios_1 = __nccwpck_require__(9024); +const querystring = __nccwpck_require__(83480); +const transporters_1 = __nccwpck_require__(55714); +const oauth2common_1 = __nccwpck_require__(46564); +/** + * Implements the OAuth 2.0 token exchange based on + * https://tools.ietf.org/html/rfc8693 + */ +class StsCredentials extends oauth2common_1.OAuthClientAuthHandler { + /** + * Initializes an STS credentials instance. + * @param tokenExchangeEndpoint The token exchange endpoint. + * @param clientAuthentication The client authentication credentials if + * available. + */ + constructor(tokenExchangeEndpoint, clientAuthentication) { + super(clientAuthentication); + this.tokenExchangeEndpoint = tokenExchangeEndpoint; + this.transporter = new transporters_1.DefaultTransporter(); + } + /** + * Exchanges the provided token for another type of token based on the + * rfc8693 spec. + * @param stsCredentialsOptions The token exchange options used to populate + * the token exchange request. + * @param additionalHeaders Optional additional headers to pass along the + * request. + * @param options Optional additional GCP-specific non-spec defined options + * to send with the request. + * Example: `&options=${encodeUriComponent(JSON.stringified(options))}` + * @return A promise that resolves with the token exchange response containing + * the requested token and its expiration time. + */ + async exchangeToken(stsCredentialsOptions, additionalHeaders, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + options) { + var _a, _b, _c; + const values = { + grant_type: stsCredentialsOptions.grantType, + resource: stsCredentialsOptions.resource, + audience: stsCredentialsOptions.audience, + scope: (_a = stsCredentialsOptions.scope) === null || _a === void 0 ? void 0 : _a.join(' '), + requested_token_type: stsCredentialsOptions.requestedTokenType, + subject_token: stsCredentialsOptions.subjectToken, + subject_token_type: stsCredentialsOptions.subjectTokenType, + actor_token: (_b = stsCredentialsOptions.actingParty) === null || _b === void 0 ? void 0 : _b.actorToken, + actor_token_type: (_c = stsCredentialsOptions.actingParty) === null || _c === void 0 ? void 0 : _c.actorTokenType, + // Non-standard GCP-specific options. + options: options && JSON.stringify(options), + }; + // Remove undefined fields. + Object.keys(values).forEach(key => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (typeof values[key] === 'undefined') { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + delete values[key]; + } + }); + const headers = { + 'Content-Type': 'application/x-www-form-urlencoded', + }; + // Inject additional STS headers if available. + Object.assign(headers, additionalHeaders || {}); + const opts = { + ...StsCredentials.RETRY_CONFIG, + url: this.tokenExchangeEndpoint.toString(), + method: 'POST', + headers, + data: querystring.stringify(values), + responseType: 'json', + }; + // Apply OAuth client authentication. + this.applyClientAuthenticationOptions(opts); + try { + const response = await this.transporter.request(opts); + // Successful response. + const stsSuccessfulResponse = response.data; + stsSuccessfulResponse.res = response; + return stsSuccessfulResponse; + } + catch (error) { + // Translate error to OAuthError. + if (error instanceof gaxios_1.GaxiosError && error.response) { + throw (0, oauth2common_1.getErrorFromOAuthErrorResponse)(error.response.data, + // Preserve other fields from the original error. + error); + } + // Request could fail before the server responds. + throw error; + } + } +} +exports.StsCredentials = StsCredentials; + + +/***/ }), + +/***/ 67236: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UrlSubjectTokenSupplier = void 0; +/** + * Internal subject token supplier implementation used when a URL + * is configured in the credential configuration used to build an {@link IdentityPoolClient} + */ +class UrlSubjectTokenSupplier { + /** + * Instantiates a URL subject token supplier. + * @param opts The URL subject token supplier options to build the supplier with. + */ + constructor(opts) { + this.url = opts.url; + this.formatType = opts.formatType; + this.subjectTokenFieldName = opts.subjectTokenFieldName; + this.headers = opts.headers; + this.additionalGaxiosOptions = opts.additionalGaxiosOptions; + } + /** + * Sends a GET request to the URL provided in the constructor and resolves + * with the returned external subject token. + * @param context {@link ExternalAccountSupplierContext} from the calling + * {@link IdentityPoolClient}, contains the requested audience and subject + * token type for the external account identity. Not used. + */ + async getSubjectToken(context) { + const opts = { + ...this.additionalGaxiosOptions, + url: this.url, + method: 'GET', + headers: this.headers, + responseType: this.formatType, + }; + let subjectToken; + if (this.formatType === 'text') { + const response = await context.transporter.request(opts); + subjectToken = response.data; + } + else if (this.formatType === 'json' && this.subjectTokenFieldName) { + const response = await context.transporter.request(opts); + subjectToken = response.data[this.subjectTokenFieldName]; + } + if (!subjectToken) { + throw new Error('Unable to parse the subject_token from the credential_source URL'); + } + return subjectToken; + } +} +exports.UrlSubjectTokenSupplier = UrlSubjectTokenSupplier; + + +/***/ }), + +/***/ 78307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/* global window */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BrowserCrypto = void 0; +// This file implements crypto functions we need using in-browser +// SubtleCrypto interface `window.crypto.subtle`. +const base64js = __nccwpck_require__(54170); +const crypto_1 = __nccwpck_require__(71566); +class BrowserCrypto { + constructor() { + if (typeof window === 'undefined' || + window.crypto === undefined || + window.crypto.subtle === undefined) { + throw new Error("SubtleCrypto not found. Make sure it's an https:// website."); + } + } + async sha256DigestBase64(str) { + // SubtleCrypto digest() method is async, so we must make + // this method async as well. + // To calculate SHA256 digest using SubtleCrypto, we first + // need to convert an input string to an ArrayBuffer: + const inputBuffer = new TextEncoder().encode(str); + // Result is ArrayBuffer as well. + const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); + return base64js.fromByteArray(new Uint8Array(outputBuffer)); + } + randomBytesBase64(count) { + const array = new Uint8Array(count); + window.crypto.getRandomValues(array); + return base64js.fromByteArray(array); + } + static padBase64(base64) { + // base64js requires padding, so let's add some '=' + while (base64.length % 4 !== 0) { + base64 += '='; + } + return base64; + } + async verify(pubkey, data, signature) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + const dataArray = new TextEncoder().encode(data); + const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature)); + const cryptoKey = await window.crypto.subtle.importKey('jwk', pubkey, algo, true, ['verify']); + // SubtleCrypto's verify method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.verify(algo, cryptoKey, signatureArray, dataArray); + return result; + } + async sign(privateKey, data) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + const dataArray = new TextEncoder().encode(data); + const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']); + // SubtleCrypto's sign method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.sign(algo, cryptoKey, dataArray); + return base64js.fromByteArray(new Uint8Array(result)); + } + decodeBase64StringUtf8(base64) { + const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64)); + const result = new TextDecoder().decode(uint8array); + return result; + } + encodeBase64StringUtf8(text) { + const uint8array = new TextEncoder().encode(text); + const result = base64js.fromByteArray(uint8array); + return result; + } + /** + * Computes the SHA-256 hash of the provided string. + * @param str The plain text string to hash. + * @return A promise that resolves with the SHA-256 hash of the provided + * string in hexadecimal encoding. + */ + async sha256DigestHex(str) { + // SubtleCrypto digest() method is async, so we must make + // this method async as well. + // To calculate SHA256 digest using SubtleCrypto, we first + // need to convert an input string to an ArrayBuffer: + const inputBuffer = new TextEncoder().encode(str); + // Result is ArrayBuffer as well. + const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); + return (0, crypto_1.fromArrayBufferToHex)(outputBuffer); + } + /** + * Computes the HMAC hash of a message using the provided crypto key and the + * SHA-256 algorithm. + * @param key The secret crypto key in utf-8 or ArrayBuffer format. + * @param msg The plain text message. + * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer + * format. + */ + async signWithHmacSha256(key, msg) { + // Convert key, if provided in ArrayBuffer format, to string. + const rawKey = typeof key === 'string' + ? key + : String.fromCharCode(...new Uint16Array(key)); + const enc = new TextEncoder(); + const cryptoKey = await window.crypto.subtle.importKey('raw', enc.encode(rawKey), { + name: 'HMAC', + hash: { + name: 'SHA-256', + }, + }, false, ['sign']); + return window.crypto.subtle.sign('HMAC', cryptoKey, enc.encode(msg)); + } +} +exports.BrowserCrypto = BrowserCrypto; + + +/***/ }), + +/***/ 71566: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/* global window */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createCrypto = createCrypto; +exports.hasBrowserCrypto = hasBrowserCrypto; +exports.fromArrayBufferToHex = fromArrayBufferToHex; +const crypto_1 = __nccwpck_require__(78307); +const crypto_2 = __nccwpck_require__(48687); +function createCrypto() { + if (hasBrowserCrypto()) { + return new crypto_1.BrowserCrypto(); + } + return new crypto_2.NodeCrypto(); +} +function hasBrowserCrypto() { + return (typeof window !== 'undefined' && + typeof window.crypto !== 'undefined' && + typeof window.crypto.subtle !== 'undefined'); +} +/** + * Converts an ArrayBuffer to a hexadecimal string. + * @param arrayBuffer The ArrayBuffer to convert to hexadecimal string. + * @return The hexadecimal encoding of the ArrayBuffer. + */ +function fromArrayBufferToHex(arrayBuffer) { + // Convert buffer to byte array. + const byteArray = Array.from(new Uint8Array(arrayBuffer)); + // Convert bytes to hex string. + return byteArray + .map(byte => { + return byte.toString(16).padStart(2, '0'); + }) + .join(''); +} + + +/***/ }), + +/***/ 48687: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NodeCrypto = void 0; +const crypto = __nccwpck_require__(76982); +class NodeCrypto { + async sha256DigestBase64(str) { + return crypto.createHash('sha256').update(str).digest('base64'); + } + randomBytesBase64(count) { + return crypto.randomBytes(count).toString('base64'); + } + async verify(pubkey, data, signature) { + const verifier = crypto.createVerify('RSA-SHA256'); + verifier.update(data); + verifier.end(); + return verifier.verify(pubkey, signature, 'base64'); + } + async sign(privateKey, data) { + const signer = crypto.createSign('RSA-SHA256'); + signer.update(data); + signer.end(); + return signer.sign(privateKey, 'base64'); + } + decodeBase64StringUtf8(base64) { + return Buffer.from(base64, 'base64').toString('utf-8'); + } + encodeBase64StringUtf8(text) { + return Buffer.from(text, 'utf-8').toString('base64'); + } + /** + * Computes the SHA-256 hash of the provided string. + * @param str The plain text string to hash. + * @return A promise that resolves with the SHA-256 hash of the provided + * string in hexadecimal encoding. + */ + async sha256DigestHex(str) { + return crypto.createHash('sha256').update(str).digest('hex'); + } + /** + * Computes the HMAC hash of a message using the provided crypto key and the + * SHA-256 algorithm. + * @param key The secret crypto key in utf-8 or ArrayBuffer format. + * @param msg The plain text message. + * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer + * format. + */ + async signWithHmacSha256(key, msg) { + const cryptoKey = typeof key === 'string' ? key : toBuffer(key); + return toArrayBuffer(crypto.createHmac('sha256', cryptoKey).update(msg).digest()); + } +} +exports.NodeCrypto = NodeCrypto; +/** + * Converts a Node.js Buffer to an ArrayBuffer. + * https://stackoverflow.com/questions/8609289/convert-a-binary-nodejs-buffer-to-javascript-arraybuffer + * @param buffer The Buffer input to covert. + * @return The ArrayBuffer representation of the input. + */ +function toArrayBuffer(buffer) { + return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength); +} +/** + * Converts an ArrayBuffer to a Node.js Buffer. + * @param arrayBuffer The ArrayBuffer input to covert. + * @return The Buffer representation of the input. + */ +function toBuffer(arrayBuffer) { + return Buffer.from(arrayBuffer); +} + + +/***/ }), + +/***/ 24229: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleAuth = exports.auth = exports.DefaultTransporter = exports.PassThroughClient = exports.ExecutableError = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsRequestSigner = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.ClientAuthentication = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.DEFAULT_UNIVERSE = exports.AuthClient = exports.gaxios = exports.gcpMetadata = void 0; +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +const googleauth_1 = __nccwpck_require__(135); +Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return googleauth_1.GoogleAuth; } })); +// Export common deps to ensure types/instances are the exact match. Useful +// for consistently configuring the library across versions. +exports.gcpMetadata = __nccwpck_require__(87045); +exports.gaxios = __nccwpck_require__(9024); +var authclient_1 = __nccwpck_require__(60611); +Object.defineProperty(exports, "AuthClient", ({ enumerable: true, get: function () { return authclient_1.AuthClient; } })); +Object.defineProperty(exports, "DEFAULT_UNIVERSE", ({ enumerable: true, get: function () { return authclient_1.DEFAULT_UNIVERSE; } })); +var computeclient_1 = __nccwpck_require__(22790); +Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return computeclient_1.Compute; } })); +var envDetect_1 = __nccwpck_require__(57076); +Object.defineProperty(exports, "GCPEnv", ({ enumerable: true, get: function () { return envDetect_1.GCPEnv; } })); +var iam_1 = __nccwpck_require__(89061); +Object.defineProperty(exports, "IAMAuth", ({ enumerable: true, get: function () { return iam_1.IAMAuth; } })); +var idtokenclient_1 = __nccwpck_require__(42029); +Object.defineProperty(exports, "IdTokenClient", ({ enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } })); +var jwtaccess_1 = __nccwpck_require__(74651); +Object.defineProperty(exports, "JWTAccess", ({ enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } })); +var jwtclient_1 = __nccwpck_require__(14946); +Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return jwtclient_1.JWT; } })); +var impersonated_1 = __nccwpck_require__(20345); +Object.defineProperty(exports, "Impersonated", ({ enumerable: true, get: function () { return impersonated_1.Impersonated; } })); +var oauth2client_1 = __nccwpck_require__(33502); +Object.defineProperty(exports, "CodeChallengeMethod", ({ enumerable: true, get: function () { return oauth2client_1.CodeChallengeMethod; } })); +Object.defineProperty(exports, "OAuth2Client", ({ enumerable: true, get: function () { return oauth2client_1.OAuth2Client; } })); +Object.defineProperty(exports, "ClientAuthentication", ({ enumerable: true, get: function () { return oauth2client_1.ClientAuthentication; } })); +var loginticket_1 = __nccwpck_require__(30869); +Object.defineProperty(exports, "LoginTicket", ({ enumerable: true, get: function () { return loginticket_1.LoginTicket; } })); +var refreshclient_1 = __nccwpck_require__(24988); +Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } })); +var awsclient_1 = __nccwpck_require__(18746); +Object.defineProperty(exports, "AwsClient", ({ enumerable: true, get: function () { return awsclient_1.AwsClient; } })); +var awsrequestsigner_1 = __nccwpck_require__(48286); +Object.defineProperty(exports, "AwsRequestSigner", ({ enumerable: true, get: function () { return awsrequestsigner_1.AwsRequestSigner; } })); +var identitypoolclient_1 = __nccwpck_require__(81801); +Object.defineProperty(exports, "IdentityPoolClient", ({ enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } })); +var externalclient_1 = __nccwpck_require__(68246); +Object.defineProperty(exports, "ExternalAccountClient", ({ enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } })); +var baseexternalclient_1 = __nccwpck_require__(92163); +Object.defineProperty(exports, "BaseExternalAccountClient", ({ enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } })); +var downscopedclient_1 = __nccwpck_require__(58997); +Object.defineProperty(exports, "DownscopedClient", ({ enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } })); +var pluggable_auth_client_1 = __nccwpck_require__(52582); +Object.defineProperty(exports, "PluggableAuthClient", ({ enumerable: true, get: function () { return pluggable_auth_client_1.PluggableAuthClient; } })); +Object.defineProperty(exports, "ExecutableError", ({ enumerable: true, get: function () { return pluggable_auth_client_1.ExecutableError; } })); +var passthrough_1 = __nccwpck_require__(20654); +Object.defineProperty(exports, "PassThroughClient", ({ enumerable: true, get: function () { return passthrough_1.PassThroughClient; } })); +var transporters_1 = __nccwpck_require__(55714); +Object.defineProperty(exports, "DefaultTransporter", ({ enumerable: true, get: function () { return transporters_1.DefaultTransporter; } })); +const auth = new googleauth_1.GoogleAuth(); +exports.auth = auth; + + +/***/ }), + +/***/ 14919: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.validate = validate; +// Accepts an options object passed from the user to the API. In the +// previous version of the API, it referred to a `Request` options object. +// Now it refers to an Axiox Request Config object. This is here to help +// ensure users don't pass invalid options when they upgrade from 0.x to 1.x. +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function validate(options) { + const vpairs = [ + { invalid: 'uri', expected: 'url' }, + { invalid: 'json', expected: 'data' }, + { invalid: 'qs', expected: 'params' }, + ]; + for (const pair of vpairs) { + if (options[pair.invalid]) { + const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; + throw new Error(e); + } + } +} + + +/***/ }), + +/***/ 55714: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DefaultTransporter = void 0; +const gaxios_1 = __nccwpck_require__(9024); +const options_1 = __nccwpck_require__(14919); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(86088); +const PRODUCT_NAME = 'google-api-nodejs-client'; +class DefaultTransporter { + constructor() { + /** + * A configurable, replacable `Gaxios` instance. + */ + this.instance = new gaxios_1.Gaxios(); + } + /** + * Configures request options before making a request. + * @param opts GaxiosOptions options. + * @return Configured options. + */ + configure(opts = {}) { + opts.headers = opts.headers || {}; + if (typeof window === 'undefined') { + // set transporter user agent if not in browser + const uaValue = opts.headers['User-Agent']; + if (!uaValue) { + opts.headers['User-Agent'] = DefaultTransporter.USER_AGENT; + } + else if (!uaValue.includes(`${PRODUCT_NAME}/`)) { + opts.headers['User-Agent'] = + `${uaValue} ${DefaultTransporter.USER_AGENT}`; + } + // track google-auth-library-nodejs version: + if (!opts.headers['x-goog-api-client']) { + const nodeVersion = process.version.replace(/^v/, ''); + opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion}`; + } + } + return opts; + } + /** + * Makes a request using Gaxios with given options. + * @param opts GaxiosOptions options. + * @param callback optional callback that contains GaxiosResponse object. + * @return GaxiosPromise, assuming no callback is passed. + */ + request(opts) { + // ensure the user isn't passing in request-style options + opts = this.configure(opts); + (0, options_1.validate)(opts); + return this.instance.request(opts).catch(e => { + throw this.processError(e); + }); + } + get defaults() { + return this.instance.defaults; + } + set defaults(opts) { + this.instance.defaults = opts; + } + /** + * Changes the error to include details from the body. + */ + processError(e) { + const res = e.response; + const err = e; + const body = res ? res.data : null; + if (res && body && body.error && res.status !== 200) { + if (typeof body.error === 'string') { + err.message = body.error; + err.status = res.status; + } + else if (Array.isArray(body.error.errors)) { + err.message = body.error.errors + .map((err2) => err2.message) + .join('\n'); + err.code = body.error.code; + err.errors = body.error.errors; + } + else { + err.message = body.error.message; + err.code = body.error.code; + } + } + else if (res && res.status >= 400) { + // Consider all 4xx and 5xx responses errors. + err.message = body; + err.status = res.status; + } + return err; + } +} +exports.DefaultTransporter = DefaultTransporter; +/** + * Default user agent. + */ +DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; + + +/***/ }), + +/***/ 30261: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var _LRUCache_instances, _LRUCache_cache, _LRUCache_moveToEnd, _LRUCache_evict; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LRUCache = void 0; +exports.snakeToCamel = snakeToCamel; +exports.originalOrCamelOptions = originalOrCamelOptions; +/** + * Returns the camel case of a provided string. + * + * @remarks + * + * Match any `_` and not `_` pair, then return the uppercase of the not `_` + * character. + * + * @internal + * + * @param str the string to convert + * @returns the camelCase'd string + */ +function snakeToCamel(str) { + return str.replace(/([_][^_])/g, match => match.slice(1).toUpperCase()); +} +/** + * Get the value of `obj[key]` or `obj[camelCaseKey]`, with a preference + * for original, non-camelCase key. + * + * @param obj object to lookup a value in + * @returns a `get` function for getting `obj[key || snakeKey]`, if available + */ +function originalOrCamelOptions(obj) { + /** + * + * @param key an index of object, preferably snake_case + * @returns the value `obj[key || snakeKey]`, if available + */ + function get(key) { + var _a; + const o = (obj || {}); + return (_a = o[key]) !== null && _a !== void 0 ? _a : o[snakeToCamel(key)]; + } + return { get }; +} +/** + * A simple LRU cache utility. + * Not meant for external usage. + * + * @experimental + * @internal + */ +class LRUCache { + constructor(options) { + _LRUCache_instances.add(this); + /** + * Maps are in order. Thus, the older item is the first item. + * + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map} + */ + _LRUCache_cache.set(this, new Map()); + this.capacity = options.capacity; + this.maxAge = options.maxAge; + } + /** + * Add an item to the cache. + * + * @param key the key to upsert + * @param value the value of the key + */ + set(key, value) { + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_moveToEnd).call(this, key, value); + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_evict).call(this); + } + /** + * Get an item from the cache. + * + * @param key the key to retrieve + */ + get(key) { + const item = __classPrivateFieldGet(this, _LRUCache_cache, "f").get(key); + if (!item) + return; + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_moveToEnd).call(this, key, item.value); + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_evict).call(this); + return item.value; + } +} +exports.LRUCache = LRUCache; +_LRUCache_cache = new WeakMap(), _LRUCache_instances = new WeakSet(), _LRUCache_moveToEnd = function _LRUCache_moveToEnd(key, value) { + __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(key); + __classPrivateFieldGet(this, _LRUCache_cache, "f").set(key, { + value, + lastAccessed: Date.now(), + }); +}, _LRUCache_evict = function _LRUCache_evict() { + const cutoffDate = this.maxAge ? Date.now() - this.maxAge : 0; + /** + * Because we know Maps are in order, this item is both the + * last item in the list (capacity) and oldest (maxAge). + */ + let oldestItem = __classPrivateFieldGet(this, _LRUCache_cache, "f").entries().next(); + while (!oldestItem.done && + (__classPrivateFieldGet(this, _LRUCache_cache, "f").size > this.capacity || // too many + oldestItem.value[1].lastAccessed < cutoffDate) // too old + ) { + __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(oldestItem.value[0]); + oldestItem = __classPrivateFieldGet(this, _LRUCache_cache, "f").entries().next(); + } +}; + + +/***/ }), + +/***/ 31135: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +}; +var _GoogleToken_instances, _GoogleToken_inFlightRequest, _GoogleToken_getTokenAsync, _GoogleToken_getTokenAsyncInner, _GoogleToken_ensureEmail, _GoogleToken_revokeTokenAsync, _GoogleToken_configure, _GoogleToken_requestToken; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleToken = void 0; +const fs = __nccwpck_require__(79896); +const gaxios_1 = __nccwpck_require__(9024); +const jws = __nccwpck_require__(84383); +const path = __nccwpck_require__(16928); +const util_1 = __nccwpck_require__(39023); +const readFile = fs.readFile + ? (0, util_1.promisify)(fs.readFile) + : async () => { + // if running in the web-browser, fs.readFile may not have been shimmed. + throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); + }; +const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; +const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; +class ErrorWithCode extends Error { + constructor(message, code) { + super(message); + this.code = code; + } +} +class GoogleToken { + get accessToken() { + return this.rawToken ? this.rawToken.access_token : undefined; + } + get idToken() { + return this.rawToken ? this.rawToken.id_token : undefined; + } + get tokenType() { + return this.rawToken ? this.rawToken.token_type : undefined; + } + get refreshToken() { + return this.rawToken ? this.rawToken.refresh_token : undefined; + } + /** + * Create a GoogleToken. + * + * @param options Configuration object. + */ + constructor(options) { + _GoogleToken_instances.add(this); + this.transporter = { + request: opts => (0, gaxios_1.request)(opts), + }; + _GoogleToken_inFlightRequest.set(this, void 0); + __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_configure).call(this, options); + } + /** + * Returns whether the token has expired. + * + * @return true if the token has expired, false otherwise. + */ + hasExpired() { + const now = new Date().getTime(); + if (this.rawToken && this.expiresAt) { + return now >= this.expiresAt; + } + else { + return true; + } + } + /** + * Returns whether the token will expire within eagerRefreshThresholdMillis + * + * @return true if the token will be expired within eagerRefreshThresholdMillis, false otherwise. + */ + isTokenExpiring() { + var _a; + const now = new Date().getTime(); + const eagerRefreshThresholdMillis = (_a = this.eagerRefreshThresholdMillis) !== null && _a !== void 0 ? _a : 0; + if (this.rawToken && this.expiresAt) { + return this.expiresAt <= now + eagerRefreshThresholdMillis; + } + else { + return true; + } + } + getToken(callback, opts = {}) { + if (typeof callback === 'object') { + opts = callback; + callback = undefined; + } + opts = Object.assign({ + forceRefresh: false, + }, opts); + if (callback) { + const cb = callback; + __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_getTokenAsync).call(this, opts).then(t => cb(null, t), callback); + return; + } + return __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_getTokenAsync).call(this, opts); + } + /** + * Given a keyFile, extract the key and client email if available + * @param keyFile Path to a json, pem, or p12 file that contains the key. + * @returns an object with privateKey and clientEmail properties + */ + async getCredentials(keyFile) { + const ext = path.extname(keyFile); + switch (ext) { + case '.json': { + const key = await readFile(keyFile, 'utf8'); + const body = JSON.parse(key); + const privateKey = body.private_key; + const clientEmail = body.client_email; + if (!privateKey || !clientEmail) { + throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); + } + return { privateKey, clientEmail }; + } + case '.der': + case '.crt': + case '.pem': { + const privateKey = await readFile(keyFile, 'utf8'); + return { privateKey }; + } + case '.p12': + case '.pfx': { + throw new ErrorWithCode('*.p12 certificates are not supported after v6.1.2. ' + + 'Consider utilizing *.json format or converting *.p12 to *.pem using the OpenSSL CLI.', 'UNKNOWN_CERTIFICATE_TYPE'); + } + default: + throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + + 'Current supported extensions are *.json, and *.pem.', 'UNKNOWN_CERTIFICATE_TYPE'); + } + } + revokeToken(callback) { + if (callback) { + __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_revokeTokenAsync).call(this).then(() => callback(), callback); + return; + } + return __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_revokeTokenAsync).call(this); + } +} +exports.GoogleToken = GoogleToken; +_GoogleToken_inFlightRequest = new WeakMap(), _GoogleToken_instances = new WeakSet(), _GoogleToken_getTokenAsync = async function _GoogleToken_getTokenAsync(opts) { + if (__classPrivateFieldGet(this, _GoogleToken_inFlightRequest, "f") && !opts.forceRefresh) { + return __classPrivateFieldGet(this, _GoogleToken_inFlightRequest, "f"); + } + try { + return await (__classPrivateFieldSet(this, _GoogleToken_inFlightRequest, __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_getTokenAsyncInner).call(this, opts), "f")); + } + finally { + __classPrivateFieldSet(this, _GoogleToken_inFlightRequest, undefined, "f"); + } +}, _GoogleToken_getTokenAsyncInner = async function _GoogleToken_getTokenAsyncInner(opts) { + if (this.isTokenExpiring() === false && opts.forceRefresh === false) { + return Promise.resolve(this.rawToken); + } + if (!this.key && !this.keyFile) { + throw new Error('No key or keyFile set.'); + } + if (!this.key && this.keyFile) { + const creds = await this.getCredentials(this.keyFile); + this.key = creds.privateKey; + this.iss = creds.clientEmail || this.iss; + if (!creds.clientEmail) { + __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_ensureEmail).call(this); + } + } + return __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_requestToken).call(this); +}, _GoogleToken_ensureEmail = function _GoogleToken_ensureEmail() { + if (!this.iss) { + throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); + } +}, _GoogleToken_revokeTokenAsync = async function _GoogleToken_revokeTokenAsync() { + if (!this.accessToken) { + throw new Error('No token to revoke.'); + } + const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; + await this.transporter.request({ + url, + retry: true, + }); + __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_configure).call(this, { + email: this.iss, + sub: this.sub, + key: this.key, + keyFile: this.keyFile, + scope: this.scope, + additionalClaims: this.additionalClaims, + }); +}, _GoogleToken_configure = function _GoogleToken_configure(options = {}) { + this.keyFile = options.keyFile; + this.key = options.key; + this.rawToken = undefined; + this.iss = options.email || options.iss; + this.sub = options.sub; + this.additionalClaims = options.additionalClaims; + if (typeof options.scope === 'object') { + this.scope = options.scope.join(' '); + } + else { + this.scope = options.scope; + } + this.eagerRefreshThresholdMillis = options.eagerRefreshThresholdMillis; + if (options.transporter) { + this.transporter = options.transporter; + } +}, _GoogleToken_requestToken = +/** + * Request the token from Google. + */ +async function _GoogleToken_requestToken() { + var _a, _b; + const iat = Math.floor(new Date().getTime() / 1000); + const additionalClaims = this.additionalClaims || {}; + const payload = Object.assign({ + iss: this.iss, + scope: this.scope, + aud: GOOGLE_TOKEN_URL, + exp: iat + 3600, + iat, + sub: this.sub, + }, additionalClaims); + const signedJWT = jws.sign({ + header: { alg: 'RS256' }, + payload, + secret: this.key, + }); + try { + const r = await this.transporter.request({ + method: 'POST', + url: GOOGLE_TOKEN_URL, + data: { + grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', + assertion: signedJWT, + }, + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + responseType: 'json', + retryConfig: { + httpMethodsToRetry: ['POST'], + }, + }); + this.rawToken = r.data; + this.expiresAt = + r.data.expires_in === null || r.data.expires_in === undefined + ? undefined + : (iat + r.data.expires_in) * 1000; + return this.rawToken; + } + catch (e) { + this.rawToken = undefined; + this.tokenExpires = undefined; + const body = e.response && ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) + ? (_b = e.response) === null || _b === void 0 ? void 0 : _b.data + : {}; + if (body.error) { + const desc = body.error_description + ? `: ${body.error_description}` + : ''; + e.message = `${body.error}${desc}`; + } + throw e; + } +}; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 86561: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "NIL", ({ + enumerable: true, + get: function () { + return _nil.default; + } +})); +Object.defineProperty(exports, "parse", ({ + enumerable: true, + get: function () { + return _parse.default; + } +})); +Object.defineProperty(exports, "stringify", ({ + enumerable: true, + get: function () { + return _stringify.default; + } +})); +Object.defineProperty(exports, "v1", ({ + enumerable: true, + get: function () { + return _v.default; + } +})); +Object.defineProperty(exports, "v3", ({ + enumerable: true, + get: function () { + return _v2.default; + } +})); +Object.defineProperty(exports, "v4", ({ + enumerable: true, + get: function () { + return _v3.default; + } +})); +Object.defineProperty(exports, "v5", ({ + enumerable: true, + get: function () { + return _v4.default; + } +})); +Object.defineProperty(exports, "validate", ({ + enumerable: true, + get: function () { + return _validate.default; + } +})); +Object.defineProperty(exports, "version", ({ + enumerable: true, + get: function () { + return _version.default; + } +})); + +var _v = _interopRequireDefault(__nccwpck_require__(21788)); + +var _v2 = _interopRequireDefault(__nccwpck_require__(83782)); + +var _v3 = _interopRequireDefault(__nccwpck_require__(3463)); + +var _v4 = _interopRequireDefault(__nccwpck_require__(79312)); + +var _nil = _interopRequireDefault(__nccwpck_require__(87794)); + +var _version = _interopRequireDefault(__nccwpck_require__(86945)); + +var _validate = _interopRequireDefault(__nccwpck_require__(41179)); + +var _stringify = _interopRequireDefault(__nccwpck_require__(68907)); + +var _parse = _interopRequireDefault(__nccwpck_require__(89942)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/***/ }), + +/***/ 71341: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('md5').update(bytes).digest(); +} + +var _default = md5; +exports["default"] = _default; + +/***/ }), + +/***/ 90350: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var _default = { + randomUUID: _crypto.default.randomUUID +}; +exports["default"] = _default; + +/***/ }), + +/***/ 87794: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _default = '00000000-0000-0000-0000-000000000000'; +exports["default"] = _default; + +/***/ }), + +/***/ 89942: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(41179)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +var _default = parse; +exports["default"] = _default; + +/***/ }), + +/***/ 29646: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +exports["default"] = _default; + +/***/ }), + +/***/ 27756: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rng; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; + +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} + +/***/ }), + +/***/ 33928: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('sha1').update(bytes).digest(); +} + +var _default = sha1; +exports["default"] = _default; + +/***/ }), + +/***/ 68907: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +exports.unsafeStringify = unsafeStringify; + +var _validate = _interopRequireDefault(__nccwpck_require__(41179)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).slice(1)); +} + +function unsafeStringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]; +} + +function stringify(arr, offset = 0) { + const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!(0, _validate.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +var _default = stringify; +exports["default"] = _default; + +/***/ }), + +/***/ 21788: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _rng = _interopRequireDefault(__nccwpck_require__(27756)); + +var _stringify = __nccwpck_require__(68907); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || (0, _stringify.unsafeStringify)(b); +} + +var _default = v1; +exports["default"] = _default; + +/***/ }), + +/***/ 83782: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(6735)); + +var _md = _interopRequireDefault(__nccwpck_require__(71341)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports["default"] = _default; + +/***/ }), + +/***/ 6735: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.URL = exports.DNS = void 0; +exports["default"] = v35; + +var _stringify = __nccwpck_require__(68907); + +var _parse = _interopRequireDefault(__nccwpck_require__(89942)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; + +function v35(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + var _namespace; + + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = (0, _parse.default)(namespace); + } + + if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return (0, _stringify.unsafeStringify)(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} + +/***/ }), + +/***/ 3463: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _native = _interopRequireDefault(__nccwpck_require__(90350)); + +var _rng = _interopRequireDefault(__nccwpck_require__(27756)); + +var _stringify = __nccwpck_require__(68907); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function v4(options, buf, offset) { + if (_native.default.randomUUID && !buf && !options) { + return _native.default.randomUUID(); + } + + options = options || {}; + + const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return (0, _stringify.unsafeStringify)(rnds); +} + +var _default = v4; +exports["default"] = _default; + +/***/ }), + +/***/ 79312: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(6735)); + +var _sha = _interopRequireDefault(__nccwpck_require__(33928)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports["default"] = _default; + +/***/ }), + +/***/ 41179: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _regex = _interopRequireDefault(__nccwpck_require__(29646)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function validate(uuid) { + return typeof uuid === 'string' && _regex.default.test(uuid); +} + +var _default = validate; +exports["default"] = _default; + +/***/ }), + +/***/ 86945: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(41179)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.slice(14, 15), 16); +} + +var _default = version; +exports["default"] = _default; + +/***/ }), + +/***/ 69230: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Colours = void 0; +/** + * Handles figuring out if we can use ANSI colours and handing out the escape codes. + * + * This is for package-internal use only, and may change at any time. + * + * @private + * @internal + */ +class Colours { + /** + * @param stream The stream (e.g. process.stderr) + * @returns true if the stream should have colourization enabled + */ + static isEnabled(stream) { + return (stream.isTTY && + (typeof stream.getColorDepth === 'function' + ? stream.getColorDepth() > 2 + : true)); + } + static refresh() { + Colours.enabled = Colours.isEnabled(process.stderr); + if (!this.enabled) { + Colours.reset = ''; + Colours.bright = ''; + Colours.dim = ''; + Colours.red = ''; + Colours.green = ''; + Colours.yellow = ''; + Colours.blue = ''; + Colours.magenta = ''; + Colours.cyan = ''; + Colours.white = ''; + Colours.grey = ''; + } + else { + Colours.reset = '\u001b[0m'; + Colours.bright = '\u001b[1m'; + Colours.dim = '\u001b[2m'; + Colours.red = '\u001b[31m'; + Colours.green = '\u001b[32m'; + Colours.yellow = '\u001b[33m'; + Colours.blue = '\u001b[34m'; + Colours.magenta = '\u001b[35m'; + Colours.cyan = '\u001b[36m'; + Colours.white = '\u001b[37m'; + Colours.grey = '\u001b[90m'; + } + } +} +exports.Colours = Colours; +Colours.enabled = false; +Colours.reset = ''; +Colours.bright = ''; +Colours.dim = ''; +Colours.red = ''; +Colours.green = ''; +Colours.yellow = ''; +Colours.blue = ''; +Colours.magenta = ''; +Colours.cyan = ''; +Colours.white = ''; +Colours.grey = ''; +Colours.refresh(); +//# sourceMappingURL=colours.js.map + +/***/ }), + +/***/ 1556: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +__exportStar(__nccwpck_require__(40761), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 40761: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2021-2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.env = exports.DebugLogBackendBase = exports.placeholder = exports.AdhocDebugLogger = exports.LogSeverity = void 0; +exports.getNodeBackend = getNodeBackend; +exports.getDebugBackend = getDebugBackend; +exports.getStructuredBackend = getStructuredBackend; +exports.setBackend = setBackend; +exports.log = log; +const node_events_1 = __nccwpck_require__(78474); +const process = __importStar(__nccwpck_require__(1708)); +const util = __importStar(__nccwpck_require__(57975)); +const colours_1 = __nccwpck_require__(69230); +// Some functions (as noted) are based on the Node standard library, from +// the following file: +// +// https://github.com/nodejs/node/blob/main/lib/internal/util/debuglog.js +/** + * This module defines an ad-hoc debug logger for Google Cloud Platform + * client libraries in Node. An ad-hoc debug logger is a tool which lets + * users use an external, unified interface (in this case, environment + * variables) to determine what logging they want to see at runtime. This + * isn't necessarily fed into the console, but is meant to be under the + * control of the user. The kind of logging that will be produced by this + * is more like "call retry happened", not "event you'd want to record + * in Cloud Logger". + * + * More for Googlers implementing libraries with it: + * go/cloud-client-logging-design + */ +/** + * Possible log levels. These are a subset of Cloud Observability levels. + * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity + */ +var LogSeverity; +(function (LogSeverity) { + LogSeverity["DEFAULT"] = "DEFAULT"; + LogSeverity["DEBUG"] = "DEBUG"; + LogSeverity["INFO"] = "INFO"; + LogSeverity["WARNING"] = "WARNING"; + LogSeverity["ERROR"] = "ERROR"; +})(LogSeverity || (exports.LogSeverity = LogSeverity = {})); +/** + * Our logger instance. This actually contains the meat of dealing + * with log lines, including EventEmitter. This contains the function + * that will be passed back to users of the package. + */ +class AdhocDebugLogger extends node_events_1.EventEmitter { + /** + * @param upstream The backend will pass a function that will be + * called whenever our logger function is invoked. + */ + constructor(namespace, upstream) { + super(); + this.namespace = namespace; + this.upstream = upstream; + this.func = Object.assign(this.invoke.bind(this), { + // Also add an instance pointer back to us. + instance: this, + // And pull over the EventEmitter functionality. + on: (event, listener) => this.on(event, listener), + }); + // Convenience methods for log levels. + this.func.debug = (...args) => this.invokeSeverity(LogSeverity.DEBUG, ...args); + this.func.info = (...args) => this.invokeSeverity(LogSeverity.INFO, ...args); + this.func.warn = (...args) => this.invokeSeverity(LogSeverity.WARNING, ...args); + this.func.error = (...args) => this.invokeSeverity(LogSeverity.ERROR, ...args); + this.func.sublog = (namespace) => log(namespace, this.func); + } + invoke(fields, ...args) { + // Push out any upstream logger first. + if (this.upstream) { + this.upstream(fields, ...args); + } + // Emit sink events. + this.emit('log', fields, args); + } + invokeSeverity(severity, ...args) { + this.invoke({ severity }, ...args); + } +} +exports.AdhocDebugLogger = AdhocDebugLogger; +/** + * This can be used in place of a real logger while waiting for Promises or disabling logging. + */ +exports.placeholder = new AdhocDebugLogger('', () => { }).func; +/** + * The base class for debug logging backends. It's possible to use this, but the + * same non-guarantees above still apply (unstable interface, etc). + * + * @private + * @internal + */ +class DebugLogBackendBase { + constructor() { + var _a; + this.cached = new Map(); + this.filters = []; + this.filtersSet = false; + // Look for the Node config variable for what systems to enable. We'll store + // these for the log method below, which will call setFilters() once. + let nodeFlag = (_a = process.env[exports.env.nodeEnables]) !== null && _a !== void 0 ? _a : '*'; + if (nodeFlag === 'all') { + nodeFlag = '*'; + } + this.filters = nodeFlag.split(','); + } + log(namespace, fields, ...args) { + try { + if (!this.filtersSet) { + this.setFilters(); + this.filtersSet = true; + } + let logger = this.cached.get(namespace); + if (!logger) { + logger = this.makeLogger(namespace); + this.cached.set(namespace, logger); + } + logger(fields, ...args); + } + catch (e) { + // Silently ignore all errors; we don't want them to interfere with + // the user's running app. + // e; + console.error(e); + } + } +} +exports.DebugLogBackendBase = DebugLogBackendBase; +// The basic backend. This one definitely works, but it's less feature-filled. +// +// Rather than using util.debuglog, this implements the same basic logic directly. +// The reason for this decision is that debuglog checks the value of the +// NODE_DEBUG environment variable before any user code runs; we therefore +// can't pipe our own enables into it (and util.debuglog will never print unless +// the user duplicates it into NODE_DEBUG, which isn't reasonable). +// +class NodeBackend extends DebugLogBackendBase { + constructor() { + super(...arguments); + // Default to allowing all systems, since we gate earlier based on whether the + // variable is empty. + this.enabledRegexp = /.*/g; + } + isEnabled(namespace) { + return this.enabledRegexp.test(namespace); + } + makeLogger(namespace) { + if (!this.enabledRegexp.test(namespace)) { + return () => { }; + } + return (fields, ...args) => { + var _a; + // TODO: `fields` needs to be turned into a string here, one way or another. + const nscolour = `${colours_1.Colours.green}${namespace}${colours_1.Colours.reset}`; + const pid = `${colours_1.Colours.yellow}${process.pid}${colours_1.Colours.reset}`; + let level; + switch (fields.severity) { + case LogSeverity.ERROR: + level = `${colours_1.Colours.red}${fields.severity}${colours_1.Colours.reset}`; + break; + case LogSeverity.INFO: + level = `${colours_1.Colours.magenta}${fields.severity}${colours_1.Colours.reset}`; + break; + case LogSeverity.WARNING: + level = `${colours_1.Colours.yellow}${fields.severity}${colours_1.Colours.reset}`; + break; + default: + level = (_a = fields.severity) !== null && _a !== void 0 ? _a : LogSeverity.DEFAULT; + break; + } + const msg = util.formatWithOptions({ colors: colours_1.Colours.enabled }, ...args); + const filteredFields = Object.assign({}, fields); + delete filteredFields.severity; + const fieldsJson = Object.getOwnPropertyNames(filteredFields).length + ? JSON.stringify(filteredFields) + : ''; + const fieldsColour = fieldsJson + ? `${colours_1.Colours.grey}${fieldsJson}${colours_1.Colours.reset}` + : ''; + console.error('%s [%s|%s] %s%s', pid, nscolour, level, msg, fieldsJson ? ` ${fieldsColour}` : ''); + }; + } + // Regexp patterns below are from here: + // https://github.com/nodejs/node/blob/c0aebed4b3395bd65d54b18d1fd00f071002ac20/lib/internal/util/debuglog.js#L36 + setFilters() { + const totalFilters = this.filters.join(','); + const regexp = totalFilters + .replace(/[|\\{}()[\]^$+?.]/g, '\\$&') + .replace(/\*/g, '.*') + .replace(/,/g, '$|^'); + this.enabledRegexp = new RegExp(`^${regexp}$`, 'i'); + } +} +/** + * @returns A backend based on Node util.debuglog; this is the default. + */ +function getNodeBackend() { + return new NodeBackend(); +} +class DebugBackend extends DebugLogBackendBase { + constructor(pkg) { + super(); + this.debugPkg = pkg; + } + makeLogger(namespace) { + const debugLogger = this.debugPkg(namespace); + return (fields, ...args) => { + // TODO: `fields` needs to be turned into a string here. + debugLogger(args[0], ...args.slice(1)); + }; + } + setFilters() { + var _a; + const existingFilters = (_a = process.env['NODE_DEBUG']) !== null && _a !== void 0 ? _a : ''; + process.env['NODE_DEBUG'] = `${existingFilters}${existingFilters ? ',' : ''}${this.filters.join(',')}`; + } +} +/** + * Creates a "debug" package backend. The user must call require('debug') and pass + * the resulting object to this function. + * + * ``` + * setBackend(getDebugBackend(require('debug'))) + * ``` + * + * https://www.npmjs.com/package/debug + * + * Note: Google does not explicitly endorse or recommend this package; it's just + * being provided as an option. + * + * @returns A backend based on the npm "debug" package. + */ +function getDebugBackend(debugPkg) { + return new DebugBackend(debugPkg); +} +/** + * This pretty much works like the Node logger, but it outputs structured + * logging JSON matching Google Cloud's ingestion specs. Rather than handling + * its own output, it wraps another backend. The passed backend must be a subclass + * of `DebugLogBackendBase` (any of the backends exposed by this package will work). + */ +class StructuredBackend extends DebugLogBackendBase { + constructor(upstream) { + var _a; + super(); + this.upstream = (_a = upstream) !== null && _a !== void 0 ? _a : new NodeBackend(); + } + makeLogger(namespace) { + const debugLogger = this.upstream.makeLogger(namespace); + return (fields, ...args) => { + var _a; + const severity = (_a = fields.severity) !== null && _a !== void 0 ? _a : LogSeverity.INFO; + const json = Object.assign({ + severity, + message: util.format(...args), + }, fields); + const jsonString = JSON.stringify(json); + debugLogger(fields, jsonString); + }; + } + setFilters() { + this.upstream.setFilters(); + } +} +/** + * Creates a "structured logging" backend. This pretty much works like the + * Node logger, but it outputs structured logging JSON matching Google + * Cloud's ingestion specs instead of plain text. + * + * ``` + * setBackend(getStructuredBackend()) + * ``` + * + * @param upstream If you want to use something besides the Node backend to + * write the actual log lines into, pass that here. + * @returns A backend based on Google Cloud structured logging. + */ +function getStructuredBackend(upstream) { + return new StructuredBackend(upstream); +} +/** + * The environment variables that we standardized on, for all ad-hoc logging. + */ +exports.env = { + /** + * Filter wildcards specific to the Node syntax, and similar to the built-in + * utils.debuglog() environment variable. If missing, disables logging. + */ + nodeEnables: 'GOOGLE_SDK_NODE_LOGGING', +}; +// Keep a copy of all namespaced loggers so users can reliably .on() them. +// Note that these cached functions will need to deal with changes in the backend. +const loggerCache = new Map(); +// Our current global backend. This might be: +let cachedBackend = undefined; +/** + * Set the backend to use for our log output. + * - A backend object + * - null to disable logging + * - undefined for "nothing yet", defaults to the Node backend + * + * @param backend Results from one of the get*Backend() functions. + */ +function setBackend(backend) { + cachedBackend = backend; + loggerCache.clear(); +} +/** + * Creates a logging function. Multiple calls to this with the same namespace + * will produce the same logger, with the same event emitter hooks. + * + * Namespaces can be a simple string ("system" name), or a qualified string + * (system:subsystem), which can be used for filtering, or for "system:*". + * + * @param namespace The namespace, a descriptive text string. + * @returns A function you can call that works similar to console.log(). + */ +function log(namespace, parent) { + // If the enable flag isn't set, do nothing. + const enablesFlag = process.env[exports.env.nodeEnables]; + if (!enablesFlag) { + return exports.placeholder; + } + // This might happen mostly if the typings are dropped in a user's code, + // or if they're calling from JavaScript. + if (!namespace) { + return exports.placeholder; + } + // Handle sub-loggers. + if (parent) { + namespace = `${parent.instance.namespace}:${namespace}`; + } + // Reuse loggers so things like event sinks are persistent. + const existing = loggerCache.get(namespace); + if (existing) { + return existing.func; + } + // Do we have a backend yet? + if (cachedBackend === null) { + // Explicitly disabled. + return exports.placeholder; + } + else if (cachedBackend === undefined) { + // One hasn't been made yet, so default to Node. + cachedBackend = getNodeBackend(); + } + // The logger is further wrapped so we can handle the backend changing out. + const logger = (() => { + let previousBackend = undefined; + const newLogger = new AdhocDebugLogger(namespace, (fields, ...args) => { + if (previousBackend !== cachedBackend) { + // Did the user pass a custom backend? + if (cachedBackend === null) { + // Explicitly disabled. + return; + } + else if (cachedBackend === undefined) { + // One hasn't been made yet, so default to Node. + cachedBackend = getNodeBackend(); + } + previousBackend = cachedBackend; + } + cachedBackend === null || cachedBackend === void 0 ? void 0 : cachedBackend.log(namespace, fields, ...args); + }); + return newLogger; + })(); + loggerCache.set(namespace, logger); + return logger.func; +} +//# sourceMappingURL=logging-utils.js.map + +/***/ }), + +/***/ 91993: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getPem = void 0; +const fs = __nccwpck_require__(79896); +const forge = __nccwpck_require__(58575); +const util_1 = __nccwpck_require__(39023); +const readFile = util_1.promisify(fs.readFile); +function getPem(filename, callback) { + if (callback) { + getPemAsync(filename) + .then(pem => callback(null, pem)) + .catch(err => callback(err, null)); + } + else { + return getPemAsync(filename); + } +} +exports.getPem = getPem; +function getPemAsync(filename) { + return readFile(filename, { encoding: 'base64' }).then(keyp12 => { + return convertToPem(keyp12); + }); +} +/** + * Converts a P12 in base64 encoding to a pem. + * @param p12base64 String containing base64 encoded p12. + * @returns a string containing the pem. + */ +function convertToPem(p12base64) { + const p12Der = forge.util.decode64(p12base64); + const p12Asn1 = forge.asn1.fromDer(p12Der); + const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'notasecret'); + const bags = p12.getBags({ friendlyName: 'privatekey' }); + if (bags.friendlyName) { + const privateKey = bags.friendlyName[0].key; + const pem = forge.pki.privateKeyToPem(privateKey); + return pem.replace(/\r\n/g, '\n'); + } + else { + throw new Error('Unable to get friendly name.'); + } +} +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 27697: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./gOPD')} */ +module.exports = Object.getOwnPropertyDescriptor; + + +/***/ }), + +/***/ 8599: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/** @type {import('.')} */ +var $gOPD = __nccwpck_require__(27697); + +if ($gOPD) { + try { + $gOPD([], 'length'); + } catch (e) { + // IE 8 has a broken gOPD + $gOPD = null; + } +} + +module.exports = $gOPD; + + +/***/ }), + +/***/ 50955: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleToken = void 0; +const fs = __nccwpck_require__(79896); +const gaxios_1 = __nccwpck_require__(46814); +const jws = __nccwpck_require__(84383); +const path = __nccwpck_require__(16928); +const util_1 = __nccwpck_require__(39023); +const readFile = fs.readFile + ? util_1.promisify(fs.readFile) + : async () => { + // if running in the web-browser, fs.readFile may not have been shimmed. + throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); + }; +const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; +const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; +class ErrorWithCode extends Error { + constructor(message, code) { + super(message); + this.code = code; + } +} +let getPem; +class GoogleToken { + /** + * Create a GoogleToken. + * + * @param options Configuration object. + */ + constructor(options) { + this.configure(options); + } + get accessToken() { + return this.rawToken ? this.rawToken.access_token : undefined; + } + get idToken() { + return this.rawToken ? this.rawToken.id_token : undefined; + } + get tokenType() { + return this.rawToken ? this.rawToken.token_type : undefined; + } + get refreshToken() { + return this.rawToken ? this.rawToken.refresh_token : undefined; + } + /** + * Returns whether the token has expired. + * + * @return true if the token has expired, false otherwise. + */ + hasExpired() { + const now = new Date().getTime(); + if (this.rawToken && this.expiresAt) { + return now >= this.expiresAt; + } + else { + return true; + } + } + /** + * Returns whether the token will expire within eagerRefreshThresholdMillis + * + * @return true if the token will be expired within eagerRefreshThresholdMillis, false otherwise. + */ + isTokenExpiring() { + var _a; + const now = new Date().getTime(); + const eagerRefreshThresholdMillis = (_a = this.eagerRefreshThresholdMillis) !== null && _a !== void 0 ? _a : 0; + if (this.rawToken && this.expiresAt) { + return this.expiresAt <= now + eagerRefreshThresholdMillis; + } + else { + return true; + } + } + getToken(callback, opts = {}) { + if (typeof callback === 'object') { + opts = callback; + callback = undefined; + } + opts = Object.assign({ + forceRefresh: false, + }, opts); + if (callback) { + const cb = callback; + this.getTokenAsync(opts).then(t => cb(null, t), callback); + return; + } + return this.getTokenAsync(opts); + } + /** + * Given a keyFile, extract the key and client email if available + * @param keyFile Path to a json, pem, or p12 file that contains the key. + * @returns an object with privateKey and clientEmail properties + */ + async getCredentials(keyFile) { + const ext = path.extname(keyFile); + switch (ext) { + case '.json': { + const key = await readFile(keyFile, 'utf8'); + const body = JSON.parse(key); + const privateKey = body.private_key; + const clientEmail = body.client_email; + if (!privateKey || !clientEmail) { + throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); + } + return { privateKey, clientEmail }; + } + case '.der': + case '.crt': + case '.pem': { + const privateKey = await readFile(keyFile, 'utf8'); + return { privateKey }; + } + case '.p12': + case '.pfx': { + // NOTE: The loading of `google-p12-pem` is deferred for performance + // reasons. The `node-forge` npm module in `google-p12-pem` adds a fair + // bit time to overall module loading, and is likely not frequently + // used. In a future release, p12 support will be entirely removed. + if (!getPem) { + getPem = (await Promise.resolve().then(() => __nccwpck_require__(91993))).getPem; + } + const privateKey = await getPem(keyFile); + return { privateKey }; + } + default: + throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + + 'Current supported extensions are *.json, *.pem, and *.p12.', 'UNKNOWN_CERTIFICATE_TYPE'); + } + } + async getTokenAsync(opts) { + if (this.inFlightRequest && !opts.forceRefresh) { + return this.inFlightRequest; + } + try { + return await (this.inFlightRequest = this.getTokenAsyncInner(opts)); + } + finally { + this.inFlightRequest = undefined; + } + } + async getTokenAsyncInner(opts) { + if (this.isTokenExpiring() === false && opts.forceRefresh === false) { + return Promise.resolve(this.rawToken); + } + if (!this.key && !this.keyFile) { + throw new Error('No key or keyFile set.'); + } + if (!this.key && this.keyFile) { + const creds = await this.getCredentials(this.keyFile); + this.key = creds.privateKey; + this.iss = creds.clientEmail || this.iss; + if (!creds.clientEmail) { + this.ensureEmail(); + } + } + return this.requestToken(); + } + ensureEmail() { + if (!this.iss) { + throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); + } + } + revokeToken(callback) { + if (callback) { + this.revokeTokenAsync().then(() => callback(), callback); + return; + } + return this.revokeTokenAsync(); + } + async revokeTokenAsync() { + if (!this.accessToken) { + throw new Error('No token to revoke.'); + } + const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; + await gaxios_1.request({ url }); + this.configure({ + email: this.iss, + sub: this.sub, + key: this.key, + keyFile: this.keyFile, + scope: this.scope, + additionalClaims: this.additionalClaims, + }); + } + /** + * Configure the GoogleToken for re-use. + * @param {object} options Configuration object. + */ + configure(options = {}) { + this.keyFile = options.keyFile; + this.key = options.key; + this.rawToken = undefined; + this.iss = options.email || options.iss; + this.sub = options.sub; + this.additionalClaims = options.additionalClaims; + if (typeof options.scope === 'object') { + this.scope = options.scope.join(' '); + } + else { + this.scope = options.scope; + } + this.eagerRefreshThresholdMillis = options.eagerRefreshThresholdMillis; + } + /** + * Request the token from Google. + */ + async requestToken() { + const iat = Math.floor(new Date().getTime() / 1000); + const additionalClaims = this.additionalClaims || {}; + const payload = Object.assign({ + iss: this.iss, + scope: this.scope, + aud: GOOGLE_TOKEN_URL, + exp: iat + 3600, + iat, + sub: this.sub, + }, additionalClaims); + const signedJWT = jws.sign({ + header: { alg: 'RS256' }, + payload, + secret: this.key, + }); + try { + const r = await gaxios_1.request({ + method: 'POST', + url: GOOGLE_TOKEN_URL, + data: { + grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', + assertion: signedJWT, + }, + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + responseType: 'json', + }); + this.rawToken = r.data; + this.expiresAt = + r.data.expires_in === null || r.data.expires_in === undefined + ? undefined + : (iat + r.data.expires_in) * 1000; + return this.rawToken; + } + catch (e) { + this.rawToken = undefined; + this.tokenExpires = undefined; + const body = e.response && e.response.data ? e.response.data : {}; + if (body.error) { + const desc = body.error_description + ? `: ${body.error_description}` + : ''; + e.message = `${body.error}${desc}`; + } + throw e; + } + } +} +exports.GoogleToken = GoogleToken; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 25560: +/***/ ((module) => { + +"use strict"; + + +module.exports = (flag, argv = process.argv) => { + const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); + const position = argv.indexOf(prefix + flag); + const terminatorPosition = argv.indexOf('--'); + return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); +}; + + +/***/ }), + +/***/ 4347: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var origSymbol = typeof Symbol !== 'undefined' && Symbol; +var hasSymbolSham = __nccwpck_require__(64297); + +/** @type {import('.')} */ +module.exports = function hasNativeSymbols() { + if (typeof origSymbol !== 'function') { return false; } + if (typeof Symbol !== 'function') { return false; } + if (typeof origSymbol('foo') !== 'symbol') { return false; } + if (typeof Symbol('bar') !== 'symbol') { return false; } + + return hasSymbolSham(); +}; + + +/***/ }), + +/***/ 64297: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./shams')} */ +/* eslint complexity: [2, 18], max-statements: [2, 33] */ +module.exports = function hasSymbols() { + if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } + if (typeof Symbol.iterator === 'symbol') { return true; } + + /** @type {{ [k in symbol]?: unknown }} */ + var obj = {}; + var sym = Symbol('test'); + var symObj = Object(sym); + if (typeof sym === 'string') { return false; } + + if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } + if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } + + // temp disabled per https://github.com/ljharb/object.assign/issues/17 + // if (sym instanceof Symbol) { return false; } + // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 + // if (!(symObj instanceof Symbol)) { return false; } + + // if (typeof Symbol.prototype.toString !== 'function') { return false; } + // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } + + var symVal = 42; + obj[sym] = symVal; + for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop + if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } + + if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } + + var syms = Object.getOwnPropertySymbols(obj); + if (syms.length !== 1 || syms[0] !== sym) { return false; } + + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } + + if (typeof Object.getOwnPropertyDescriptor === 'function') { + // eslint-disable-next-line no-extra-parens + var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym)); + if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } + } + + return true; +}; + + +/***/ }), + +/***/ 77768: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var hasSymbols = __nccwpck_require__(64297); + +/** @type {import('.')} */ +module.exports = function hasToStringTagShams() { + return hasSymbols() && !!Symbol.toStringTag; +}; + + +/***/ }), + +/***/ 63689: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var call = Function.prototype.call; +var $hasOwn = Object.prototype.hasOwnProperty; +var bind = __nccwpck_require__(39587); + +/** @type {import('.')} */ +module.exports = bind.call(call, $hasOwn); + + +/***/ }), + +/***/ 35321: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpProxyAgent = void 0; +const net = __importStar(__nccwpck_require__(69278)); +const tls = __importStar(__nccwpck_require__(64756)); +const debug_1 = __importDefault(__nccwpck_require__(78549)); +const events_1 = __nccwpck_require__(24434); +const agent_base_1 = __nccwpck_require__(94449); +const url_1 = __nccwpck_require__(87016); +const debug = (0, debug_1.default)('http-proxy-agent'); +/** + * The `HttpProxyAgent` implements an HTTP Agent subclass that connects + * to the specified "HTTP proxy server" in order to proxy HTTP requests. + */ +class HttpProxyAgent extends agent_base_1.Agent { + constructor(proxy, opts) { + super(opts); + this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; + this.proxyHeaders = opts?.headers ?? {}; + debug('Creating new HttpProxyAgent instance: %o', this.proxy.href); + // Trim off the brackets from IPv6 addresses + const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ''); + const port = this.proxy.port + ? parseInt(this.proxy.port, 10) + : this.proxy.protocol === 'https:' + ? 443 + : 80; + this.connectOpts = { + ...(opts ? omit(opts, 'headers') : null), + host, + port, + }; + } + addRequest(req, opts) { + req._header = null; + this.setRequestProps(req, opts); + // @ts-expect-error `addRequest()` isn't defined in `@types/node` + super.addRequest(req, opts); + } + setRequestProps(req, opts) { + const { proxy } = this; + const protocol = opts.secureEndpoint ? 'https:' : 'http:'; + const hostname = req.getHeader('host') || 'localhost'; + const base = `${protocol}//${hostname}`; + const url = new url_1.URL(req.path, base); + if (opts.port !== 80) { + url.port = String(opts.port); + } + // Change the `http.ClientRequest` instance's "path" field + // to the absolute path of the URL that will be requested. + req.path = String(url); + // Inject the `Proxy-Authorization` header if necessary. + const headers = typeof this.proxyHeaders === 'function' + ? this.proxyHeaders() + : { ...this.proxyHeaders }; + if (proxy.username || proxy.password) { + const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`; + headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`; + } + if (!headers['Proxy-Connection']) { + headers['Proxy-Connection'] = this.keepAlive + ? 'Keep-Alive' + : 'close'; + } + for (const name of Object.keys(headers)) { + const value = headers[name]; + if (value) { + req.setHeader(name, value); + } + } + } + async connect(req, opts) { + req._header = null; + if (!req.path.includes('://')) { + this.setRequestProps(req, opts); + } + // At this point, the http ClientRequest's internal `_header` field + // might have already been set. If this is the case then we'll need + // to re-generate the string since we just changed the `req.path`. + let first; + let endOfHeaders; + debug('Regenerating stored HTTP header string for request'); + req._implicitHeader(); + if (req.outputData && req.outputData.length > 0) { + debug('Patching connection write() output buffer with updated header'); + first = req.outputData[0].data; + endOfHeaders = first.indexOf('\r\n\r\n') + 4; + req.outputData[0].data = + req._header + first.substring(endOfHeaders); + debug('Output buffer: %o', req.outputData[0].data); + } + // Create a socket connection to the proxy server. + let socket; + if (this.proxy.protocol === 'https:') { + debug('Creating `tls.Socket`: %o', this.connectOpts); + socket = tls.connect(this.connectOpts); + } + else { + debug('Creating `net.Socket`: %o', this.connectOpts); + socket = net.connect(this.connectOpts); + } + // Wait for the socket's `connect` event, so that this `callback()` + // function throws instead of the `http` request machinery. This is + // important for i.e. `PacProxyAgent` which determines a failed proxy + // connection via the `callback()` function throwing. + await (0, events_1.once)(socket, 'connect'); + return socket; + } +} +HttpProxyAgent.protocols = ['http', 'https']; +exports.HttpProxyAgent = HttpProxyAgent; +function omit(obj, ...keys) { + const ret = {}; + let key; + for (key in obj) { + if (!keys.includes(key)) { + ret[key] = obj[key]; + } + } + return ret; +} +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 12012: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpsProxyAgent = void 0; +const net = __importStar(__nccwpck_require__(69278)); +const tls = __importStar(__nccwpck_require__(64756)); +const assert_1 = __importDefault(__nccwpck_require__(42613)); +const debug_1 = __importDefault(__nccwpck_require__(78549)); +const agent_base_1 = __nccwpck_require__(94449); +const url_1 = __nccwpck_require__(87016); +const parse_proxy_response_1 = __nccwpck_require__(5256); +const debug = (0, debug_1.default)('https-proxy-agent'); +const setServernameFromNonIpHost = (options) => { + if (options.servername === undefined && + options.host && + !net.isIP(options.host)) { + return { + ...options, + servername: options.host, + }; + } + return options; +}; +/** + * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to + * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. + * + * Outgoing HTTP requests are first tunneled through the proxy server using the + * `CONNECT` HTTP request method to establish a connection to the proxy server, + * and then the proxy server connects to the destination target and issues the + * HTTP request from the proxy server. + * + * `https:` requests have their socket connection upgraded to TLS once + * the connection to the proxy server has been established. + */ +class HttpsProxyAgent extends agent_base_1.Agent { + constructor(proxy, opts) { + super(opts); + this.options = { path: undefined }; + this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; + this.proxyHeaders = opts?.headers ?? {}; + debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href); + // Trim off the brackets from IPv6 addresses + const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ''); + const port = this.proxy.port + ? parseInt(this.proxy.port, 10) + : this.proxy.protocol === 'https:' + ? 443 + : 80; + this.connectOpts = { + // Attempt to negotiate http/1.1 for proxy servers that support http/2 + ALPNProtocols: ['http/1.1'], + ...(opts ? omit(opts, 'headers') : null), + host, + port, + }; + } + /** + * Called when the node-core HTTP client library is creating a + * new HTTP request. + */ + async connect(req, opts) { + const { proxy } = this; + if (!opts.host) { + throw new TypeError('No "host" provided'); + } + // Create a socket connection to the proxy server. + let socket; + if (proxy.protocol === 'https:') { + debug('Creating `tls.Socket`: %o', this.connectOpts); + socket = tls.connect(setServernameFromNonIpHost(this.connectOpts)); + } + else { + debug('Creating `net.Socket`: %o', this.connectOpts); + socket = net.connect(this.connectOpts); + } + const headers = typeof this.proxyHeaders === 'function' + ? this.proxyHeaders() + : { ...this.proxyHeaders }; + const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host; + let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r\n`; + // Inject the `Proxy-Authorization` header if necessary. + if (proxy.username || proxy.password) { + const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`; + headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`; + } + headers.Host = `${host}:${opts.port}`; + if (!headers['Proxy-Connection']) { + headers['Proxy-Connection'] = this.keepAlive + ? 'Keep-Alive' + : 'close'; + } + for (const name of Object.keys(headers)) { + payload += `${name}: ${headers[name]}\r\n`; + } + const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket); + socket.write(`${payload}\r\n`); + const { connect, buffered } = await proxyResponsePromise; + req.emit('proxyConnect', connect); + this.emit('proxyConnect', connect, req); + if (connect.statusCode === 200) { + req.once('socket', resume); + if (opts.secureEndpoint) { + // The proxy is connecting to a TLS server, so upgrade + // this socket connection to a TLS connection. + debug('Upgrading socket connection to TLS'); + return tls.connect({ + ...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'), + socket, + }); + } + return socket; + } + // Some other status code that's not 200... need to re-play the HTTP + // header "data" events onto the socket once the HTTP machinery is + // attached so that the node core `http` can parse and handle the + // error status code. + // Close the original socket, and a new "fake" socket is returned + // instead, so that the proxy doesn't get the HTTP request + // written to it (which may contain `Authorization` headers or other + // sensitive data). + // + // See: https://hackerone.com/reports/541502 + socket.destroy(); + const fakeSocket = new net.Socket({ writable: false }); + fakeSocket.readable = true; + // Need to wait for the "socket" event to re-play the "data" events. + req.once('socket', (s) => { + debug('Replaying proxy buffer for failed request'); + (0, assert_1.default)(s.listenerCount('data') > 0); + // Replay the "buffered" Buffer onto the fake `socket`, since at + // this point the HTTP module machinery has been hooked up for + // the user. + s.push(buffered); + s.push(null); + }); + return fakeSocket; + } +} +HttpsProxyAgent.protocols = ['http', 'https']; +exports.HttpsProxyAgent = HttpsProxyAgent; +function resume(socket) { + socket.resume(); +} +function omit(obj, ...keys) { + const ret = {}; + let key; + for (key in obj) { + if (!keys.includes(key)) { + ret[key] = obj[key]; + } + } + return ret; +} +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 5256: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseProxyResponse = void 0; +const debug_1 = __importDefault(__nccwpck_require__(78549)); +const debug = (0, debug_1.default)('https-proxy-agent:parse-proxy-response'); +function parseProxyResponse(socket) { + return new Promise((resolve, reject) => { + // we need to buffer any HTTP traffic that happens with the proxy before we get + // the CONNECT response, so that if the response is anything other than an "200" + // response code, then we can re-play the "data" events on the socket once the + // HTTP parser is hooked up... + let buffersLength = 0; + const buffers = []; + function read() { + const b = socket.read(); + if (b) + ondata(b); + else + socket.once('readable', read); + } + function cleanup() { + socket.removeListener('end', onend); + socket.removeListener('error', onerror); + socket.removeListener('readable', read); + } + function onend() { + cleanup(); + debug('onend'); + reject(new Error('Proxy connection ended before receiving CONNECT response')); + } + function onerror(err) { + cleanup(); + debug('onerror %o', err); + reject(err); + } + function ondata(b) { + buffers.push(b); + buffersLength += b.length; + const buffered = Buffer.concat(buffers, buffersLength); + const endOfHeaders = buffered.indexOf('\r\n\r\n'); + if (endOfHeaders === -1) { + // keep buffering + debug('have not received end of HTTP headers yet...'); + read(); + return; + } + const headerParts = buffered + .slice(0, endOfHeaders) + .toString('ascii') + .split('\r\n'); + const firstLine = headerParts.shift(); + if (!firstLine) { + socket.destroy(); + return reject(new Error('No header received from proxy CONNECT response')); + } + const firstLineParts = firstLine.split(' '); + const statusCode = +firstLineParts[1]; + const statusText = firstLineParts.slice(2).join(' '); + const headers = {}; + for (const header of headerParts) { + if (!header) + continue; + const firstColon = header.indexOf(':'); + if (firstColon === -1) { + socket.destroy(); + return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`)); + } + const key = header.slice(0, firstColon).toLowerCase(); + const value = header.slice(firstColon + 1).trimStart(); + const current = headers[key]; + if (typeof current === 'string') { + headers[key] = [current, value]; + } + else if (Array.isArray(current)) { + current.push(value); + } + else { + headers[key] = value; + } + } + debug('got proxy server response: %o %o', firstLine, headers); + cleanup(); + resolve({ + connect: { + statusCode, + statusText, + headers, + }, + buffered, + }); + } + socket.on('error', onerror); + socket.on('end', onend); + read(); + }); +} +exports.parseProxyResponse = parseProxyResponse; +//# sourceMappingURL=parse-proxy-response.js.map + +/***/ }), + +/***/ 42109: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +try { + var util = __nccwpck_require__(39023); + /* istanbul ignore next */ + if (typeof util.inherits !== 'function') throw ''; + module.exports = util.inherits; +} catch (e) { + /* istanbul ignore next */ + module.exports = __nccwpck_require__(4198); +} + + +/***/ }), + +/***/ 4198: +/***/ ((module) => { + +if (typeof Object.create === 'function') { + // implementation from standard node.js 'util' module + module.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } + }) + } + }; +} else { + // old school shim for old browsers + module.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor + var TempCtor = function () {} + TempCtor.prototype = superCtor.prototype + ctor.prototype = new TempCtor() + ctor.prototype.constructor = ctor + } + } +} + + +/***/ }), + +/***/ 20580: +/***/ ((module) => { + +"use strict"; + + +const isStream = stream => + stream !== null && + typeof stream === 'object' && + typeof stream.pipe === 'function'; + +isStream.writable = stream => + isStream(stream) && + stream.writable !== false && + typeof stream._write === 'function' && + typeof stream._writableState === 'object'; + +isStream.readable = stream => + isStream(stream) && + stream.readable !== false && + typeof stream._read === 'function' && + typeof stream._readableState === 'object'; + +isStream.duplex = stream => + isStream.writable(stream) && + isStream.readable(stream); + +isStream.transform = stream => + isStream.duplex(stream) && + typeof stream._transform === 'function'; + +module.exports = isStream; + + +/***/ }), + +/***/ 5769: +/***/ ((__unused_webpack_module, exports) => { + +(function(exports) { + "use strict"; + + function isArray(obj) { + if (obj !== null) { + return Object.prototype.toString.call(obj) === "[object Array]"; + } else { + return false; + } + } + + function isObject(obj) { + if (obj !== null) { + return Object.prototype.toString.call(obj) === "[object Object]"; + } else { + return false; + } + } + + function strictDeepEqual(first, second) { + // Check the scalar case first. + if (first === second) { + return true; + } + + // Check if they are the same type. + var firstType = Object.prototype.toString.call(first); + if (firstType !== Object.prototype.toString.call(second)) { + return false; + } + // We know that first and second have the same type so we can just check the + // first type from now on. + if (isArray(first) === true) { + // Short circuit if they're not the same length; + if (first.length !== second.length) { + return false; + } + for (var i = 0; i < first.length; i++) { + if (strictDeepEqual(first[i], second[i]) === false) { + return false; + } + } + return true; + } + if (isObject(first) === true) { + // An object is equal if it has the same key/value pairs. + var keysSeen = {}; + for (var key in first) { + if (hasOwnProperty.call(first, key)) { + if (strictDeepEqual(first[key], second[key]) === false) { + return false; + } + keysSeen[key] = true; + } + } + // Now check that there aren't any keys in second that weren't + // in first. + for (var key2 in second) { + if (hasOwnProperty.call(second, key2)) { + if (keysSeen[key2] !== true) { + return false; + } + } + } + return true; + } + return false; + } + + function isFalse(obj) { + // From the spec: + // A false value corresponds to the following values: + // Empty list + // Empty object + // Empty string + // False boolean + // null value + + // First check the scalar values. + if (obj === "" || obj === false || obj === null) { + return true; + } else if (isArray(obj) && obj.length === 0) { + // Check for an empty array. + return true; + } else if (isObject(obj)) { + // Check for an empty object. + for (var key in obj) { + // If there are any keys, then + // the object is not empty so the object + // is not false. + if (obj.hasOwnProperty(key)) { + return false; + } + } + return true; + } else { + return false; + } + } + + function objValues(obj) { + var keys = Object.keys(obj); + var values = []; + for (var i = 0; i < keys.length; i++) { + values.push(obj[keys[i]]); + } + return values; + } + + function merge(a, b) { + var merged = {}; + for (var key in a) { + merged[key] = a[key]; + } + for (var key2 in b) { + merged[key2] = b[key2]; + } + return merged; + } + + var trimLeft; + if (typeof String.prototype.trimLeft === "function") { + trimLeft = function(str) { + return str.trimLeft(); + }; + } else { + trimLeft = function(str) { + return str.match(/^\s*(.*)/)[1]; + }; + } + + // Type constants used to define functions. + var TYPE_NUMBER = 0; + var TYPE_ANY = 1; + var TYPE_STRING = 2; + var TYPE_ARRAY = 3; + var TYPE_OBJECT = 4; + var TYPE_BOOLEAN = 5; + var TYPE_EXPREF = 6; + var TYPE_NULL = 7; + var TYPE_ARRAY_NUMBER = 8; + var TYPE_ARRAY_STRING = 9; + var TYPE_NAME_TABLE = { + 0: 'number', + 1: 'any', + 2: 'string', + 3: 'array', + 4: 'object', + 5: 'boolean', + 6: 'expression', + 7: 'null', + 8: 'Array', + 9: 'Array' + }; + + var TOK_EOF = "EOF"; + var TOK_UNQUOTEDIDENTIFIER = "UnquotedIdentifier"; + var TOK_QUOTEDIDENTIFIER = "QuotedIdentifier"; + var TOK_RBRACKET = "Rbracket"; + var TOK_RPAREN = "Rparen"; + var TOK_COMMA = "Comma"; + var TOK_COLON = "Colon"; + var TOK_RBRACE = "Rbrace"; + var TOK_NUMBER = "Number"; + var TOK_CURRENT = "Current"; + var TOK_EXPREF = "Expref"; + var TOK_PIPE = "Pipe"; + var TOK_OR = "Or"; + var TOK_AND = "And"; + var TOK_EQ = "EQ"; + var TOK_GT = "GT"; + var TOK_LT = "LT"; + var TOK_GTE = "GTE"; + var TOK_LTE = "LTE"; + var TOK_NE = "NE"; + var TOK_FLATTEN = "Flatten"; + var TOK_STAR = "Star"; + var TOK_FILTER = "Filter"; + var TOK_DOT = "Dot"; + var TOK_NOT = "Not"; + var TOK_LBRACE = "Lbrace"; + var TOK_LBRACKET = "Lbracket"; + var TOK_LPAREN= "Lparen"; + var TOK_LITERAL= "Literal"; + + // The "&", "[", "<", ">" tokens + // are not in basicToken because + // there are two token variants + // ("&&", "[?", "<=", ">="). This is specially handled + // below. + + var basicTokens = { + ".": TOK_DOT, + "*": TOK_STAR, + ",": TOK_COMMA, + ":": TOK_COLON, + "{": TOK_LBRACE, + "}": TOK_RBRACE, + "]": TOK_RBRACKET, + "(": TOK_LPAREN, + ")": TOK_RPAREN, + "@": TOK_CURRENT + }; + + var operatorStartToken = { + "<": true, + ">": true, + "=": true, + "!": true + }; + + var skipChars = { + " ": true, + "\t": true, + "\n": true + }; + + + function isAlpha(ch) { + return (ch >= "a" && ch <= "z") || + (ch >= "A" && ch <= "Z") || + ch === "_"; + } + + function isNum(ch) { + return (ch >= "0" && ch <= "9") || + ch === "-"; + } + function isAlphaNum(ch) { + return (ch >= "a" && ch <= "z") || + (ch >= "A" && ch <= "Z") || + (ch >= "0" && ch <= "9") || + ch === "_"; + } + + function Lexer() { + } + Lexer.prototype = { + tokenize: function(stream) { + var tokens = []; + this._current = 0; + var start; + var identifier; + var token; + while (this._current < stream.length) { + if (isAlpha(stream[this._current])) { + start = this._current; + identifier = this._consumeUnquotedIdentifier(stream); + tokens.push({type: TOK_UNQUOTEDIDENTIFIER, + value: identifier, + start: start}); + } else if (basicTokens[stream[this._current]] !== undefined) { + tokens.push({type: basicTokens[stream[this._current]], + value: stream[this._current], + start: this._current}); + this._current++; + } else if (isNum(stream[this._current])) { + token = this._consumeNumber(stream); + tokens.push(token); + } else if (stream[this._current] === "[") { + // No need to increment this._current. This happens + // in _consumeLBracket + token = this._consumeLBracket(stream); + tokens.push(token); + } else if (stream[this._current] === "\"") { + start = this._current; + identifier = this._consumeQuotedIdentifier(stream); + tokens.push({type: TOK_QUOTEDIDENTIFIER, + value: identifier, + start: start}); + } else if (stream[this._current] === "'") { + start = this._current; + identifier = this._consumeRawStringLiteral(stream); + tokens.push({type: TOK_LITERAL, + value: identifier, + start: start}); + } else if (stream[this._current] === "`") { + start = this._current; + var literal = this._consumeLiteral(stream); + tokens.push({type: TOK_LITERAL, + value: literal, + start: start}); + } else if (operatorStartToken[stream[this._current]] !== undefined) { + tokens.push(this._consumeOperator(stream)); + } else if (skipChars[stream[this._current]] !== undefined) { + // Ignore whitespace. + this._current++; + } else if (stream[this._current] === "&") { + start = this._current; + this._current++; + if (stream[this._current] === "&") { + this._current++; + tokens.push({type: TOK_AND, value: "&&", start: start}); + } else { + tokens.push({type: TOK_EXPREF, value: "&", start: start}); + } + } else if (stream[this._current] === "|") { + start = this._current; + this._current++; + if (stream[this._current] === "|") { + this._current++; + tokens.push({type: TOK_OR, value: "||", start: start}); + } else { + tokens.push({type: TOK_PIPE, value: "|", start: start}); + } + } else { + var error = new Error("Unknown character:" + stream[this._current]); + error.name = "LexerError"; + throw error; + } + } + return tokens; + }, + + _consumeUnquotedIdentifier: function(stream) { + var start = this._current; + this._current++; + while (this._current < stream.length && isAlphaNum(stream[this._current])) { + this._current++; + } + return stream.slice(start, this._current); + }, + + _consumeQuotedIdentifier: function(stream) { + var start = this._current; + this._current++; + var maxLength = stream.length; + while (stream[this._current] !== "\"" && this._current < maxLength) { + // You can escape a double quote and you can escape an escape. + var current = this._current; + if (stream[current] === "\\" && (stream[current + 1] === "\\" || + stream[current + 1] === "\"")) { + current += 2; + } else { + current++; + } + this._current = current; + } + this._current++; + return JSON.parse(stream.slice(start, this._current)); + }, + + _consumeRawStringLiteral: function(stream) { + var start = this._current; + this._current++; + var maxLength = stream.length; + while (stream[this._current] !== "'" && this._current < maxLength) { + // You can escape a single quote and you can escape an escape. + var current = this._current; + if (stream[current] === "\\" && (stream[current + 1] === "\\" || + stream[current + 1] === "'")) { + current += 2; + } else { + current++; + } + this._current = current; + } + this._current++; + var literal = stream.slice(start + 1, this._current - 1); + return literal.replace("\\'", "'"); + }, + + _consumeNumber: function(stream) { + var start = this._current; + this._current++; + var maxLength = stream.length; + while (isNum(stream[this._current]) && this._current < maxLength) { + this._current++; + } + var value = parseInt(stream.slice(start, this._current)); + return {type: TOK_NUMBER, value: value, start: start}; + }, + + _consumeLBracket: function(stream) { + var start = this._current; + this._current++; + if (stream[this._current] === "?") { + this._current++; + return {type: TOK_FILTER, value: "[?", start: start}; + } else if (stream[this._current] === "]") { + this._current++; + return {type: TOK_FLATTEN, value: "[]", start: start}; + } else { + return {type: TOK_LBRACKET, value: "[", start: start}; + } + }, + + _consumeOperator: function(stream) { + var start = this._current; + var startingChar = stream[start]; + this._current++; + if (startingChar === "!") { + if (stream[this._current] === "=") { + this._current++; + return {type: TOK_NE, value: "!=", start: start}; + } else { + return {type: TOK_NOT, value: "!", start: start}; + } + } else if (startingChar === "<") { + if (stream[this._current] === "=") { + this._current++; + return {type: TOK_LTE, value: "<=", start: start}; + } else { + return {type: TOK_LT, value: "<", start: start}; + } + } else if (startingChar === ">") { + if (stream[this._current] === "=") { + this._current++; + return {type: TOK_GTE, value: ">=", start: start}; + } else { + return {type: TOK_GT, value: ">", start: start}; + } + } else if (startingChar === "=") { + if (stream[this._current] === "=") { + this._current++; + return {type: TOK_EQ, value: "==", start: start}; + } + } + }, + + _consumeLiteral: function(stream) { + this._current++; + var start = this._current; + var maxLength = stream.length; + var literal; + while(stream[this._current] !== "`" && this._current < maxLength) { + // You can escape a literal char or you can escape the escape. + var current = this._current; + if (stream[current] === "\\" && (stream[current + 1] === "\\" || + stream[current + 1] === "`")) { + current += 2; + } else { + current++; + } + this._current = current; + } + var literalString = trimLeft(stream.slice(start, this._current)); + literalString = literalString.replace("\\`", "`"); + if (this._looksLikeJSON(literalString)) { + literal = JSON.parse(literalString); + } else { + // Try to JSON parse it as "" + literal = JSON.parse("\"" + literalString + "\""); + } + // +1 gets us to the ending "`", +1 to move on to the next char. + this._current++; + return literal; + }, + + _looksLikeJSON: function(literalString) { + var startingChars = "[{\""; + var jsonLiterals = ["true", "false", "null"]; + var numberLooking = "-0123456789"; + + if (literalString === "") { + return false; + } else if (startingChars.indexOf(literalString[0]) >= 0) { + return true; + } else if (jsonLiterals.indexOf(literalString) >= 0) { + return true; + } else if (numberLooking.indexOf(literalString[0]) >= 0) { + try { + JSON.parse(literalString); + return true; + } catch (ex) { + return false; + } + } else { + return false; + } + } + }; + + var bindingPower = {}; + bindingPower[TOK_EOF] = 0; + bindingPower[TOK_UNQUOTEDIDENTIFIER] = 0; + bindingPower[TOK_QUOTEDIDENTIFIER] = 0; + bindingPower[TOK_RBRACKET] = 0; + bindingPower[TOK_RPAREN] = 0; + bindingPower[TOK_COMMA] = 0; + bindingPower[TOK_RBRACE] = 0; + bindingPower[TOK_NUMBER] = 0; + bindingPower[TOK_CURRENT] = 0; + bindingPower[TOK_EXPREF] = 0; + bindingPower[TOK_PIPE] = 1; + bindingPower[TOK_OR] = 2; + bindingPower[TOK_AND] = 3; + bindingPower[TOK_EQ] = 5; + bindingPower[TOK_GT] = 5; + bindingPower[TOK_LT] = 5; + bindingPower[TOK_GTE] = 5; + bindingPower[TOK_LTE] = 5; + bindingPower[TOK_NE] = 5; + bindingPower[TOK_FLATTEN] = 9; + bindingPower[TOK_STAR] = 20; + bindingPower[TOK_FILTER] = 21; + bindingPower[TOK_DOT] = 40; + bindingPower[TOK_NOT] = 45; + bindingPower[TOK_LBRACE] = 50; + bindingPower[TOK_LBRACKET] = 55; + bindingPower[TOK_LPAREN] = 60; + + function Parser() { + } + + Parser.prototype = { + parse: function(expression) { + this._loadTokens(expression); + this.index = 0; + var ast = this.expression(0); + if (this._lookahead(0) !== TOK_EOF) { + var t = this._lookaheadToken(0); + var error = new Error( + "Unexpected token type: " + t.type + ", value: " + t.value); + error.name = "ParserError"; + throw error; + } + return ast; + }, + + _loadTokens: function(expression) { + var lexer = new Lexer(); + var tokens = lexer.tokenize(expression); + tokens.push({type: TOK_EOF, value: "", start: expression.length}); + this.tokens = tokens; + }, + + expression: function(rbp) { + var leftToken = this._lookaheadToken(0); + this._advance(); + var left = this.nud(leftToken); + var currentToken = this._lookahead(0); + while (rbp < bindingPower[currentToken]) { + this._advance(); + left = this.led(currentToken, left); + currentToken = this._lookahead(0); + } + return left; + }, + + _lookahead: function(number) { + return this.tokens[this.index + number].type; + }, + + _lookaheadToken: function(number) { + return this.tokens[this.index + number]; + }, + + _advance: function() { + this.index++; + }, + + nud: function(token) { + var left; + var right; + var expression; + switch (token.type) { + case TOK_LITERAL: + return {type: "Literal", value: token.value}; + case TOK_UNQUOTEDIDENTIFIER: + return {type: "Field", name: token.value}; + case TOK_QUOTEDIDENTIFIER: + var node = {type: "Field", name: token.value}; + if (this._lookahead(0) === TOK_LPAREN) { + throw new Error("Quoted identifier not allowed for function names."); + } + return node; + case TOK_NOT: + right = this.expression(bindingPower.Not); + return {type: "NotExpression", children: [right]}; + case TOK_STAR: + left = {type: "Identity"}; + right = null; + if (this._lookahead(0) === TOK_RBRACKET) { + // This can happen in a multiselect, + // [a, b, *] + right = {type: "Identity"}; + } else { + right = this._parseProjectionRHS(bindingPower.Star); + } + return {type: "ValueProjection", children: [left, right]}; + case TOK_FILTER: + return this.led(token.type, {type: "Identity"}); + case TOK_LBRACE: + return this._parseMultiselectHash(); + case TOK_FLATTEN: + left = {type: TOK_FLATTEN, children: [{type: "Identity"}]}; + right = this._parseProjectionRHS(bindingPower.Flatten); + return {type: "Projection", children: [left, right]}; + case TOK_LBRACKET: + if (this._lookahead(0) === TOK_NUMBER || this._lookahead(0) === TOK_COLON) { + right = this._parseIndexExpression(); + return this._projectIfSlice({type: "Identity"}, right); + } else if (this._lookahead(0) === TOK_STAR && + this._lookahead(1) === TOK_RBRACKET) { + this._advance(); + this._advance(); + right = this._parseProjectionRHS(bindingPower.Star); + return {type: "Projection", + children: [{type: "Identity"}, right]}; + } + return this._parseMultiselectList(); + case TOK_CURRENT: + return {type: TOK_CURRENT}; + case TOK_EXPREF: + expression = this.expression(bindingPower.Expref); + return {type: "ExpressionReference", children: [expression]}; + case TOK_LPAREN: + var args = []; + while (this._lookahead(0) !== TOK_RPAREN) { + if (this._lookahead(0) === TOK_CURRENT) { + expression = {type: TOK_CURRENT}; + this._advance(); + } else { + expression = this.expression(0); + } + args.push(expression); + } + this._match(TOK_RPAREN); + return args[0]; + default: + this._errorToken(token); + } + }, + + led: function(tokenName, left) { + var right; + switch(tokenName) { + case TOK_DOT: + var rbp = bindingPower.Dot; + if (this._lookahead(0) !== TOK_STAR) { + right = this._parseDotRHS(rbp); + return {type: "Subexpression", children: [left, right]}; + } + // Creating a projection. + this._advance(); + right = this._parseProjectionRHS(rbp); + return {type: "ValueProjection", children: [left, right]}; + case TOK_PIPE: + right = this.expression(bindingPower.Pipe); + return {type: TOK_PIPE, children: [left, right]}; + case TOK_OR: + right = this.expression(bindingPower.Or); + return {type: "OrExpression", children: [left, right]}; + case TOK_AND: + right = this.expression(bindingPower.And); + return {type: "AndExpression", children: [left, right]}; + case TOK_LPAREN: + var name = left.name; + var args = []; + var expression, node; + while (this._lookahead(0) !== TOK_RPAREN) { + if (this._lookahead(0) === TOK_CURRENT) { + expression = {type: TOK_CURRENT}; + this._advance(); + } else { + expression = this.expression(0); + } + if (this._lookahead(0) === TOK_COMMA) { + this._match(TOK_COMMA); + } + args.push(expression); + } + this._match(TOK_RPAREN); + node = {type: "Function", name: name, children: args}; + return node; + case TOK_FILTER: + var condition = this.expression(0); + this._match(TOK_RBRACKET); + if (this._lookahead(0) === TOK_FLATTEN) { + right = {type: "Identity"}; + } else { + right = this._parseProjectionRHS(bindingPower.Filter); + } + return {type: "FilterProjection", children: [left, right, condition]}; + case TOK_FLATTEN: + var leftNode = {type: TOK_FLATTEN, children: [left]}; + var rightNode = this._parseProjectionRHS(bindingPower.Flatten); + return {type: "Projection", children: [leftNode, rightNode]}; + case TOK_EQ: + case TOK_NE: + case TOK_GT: + case TOK_GTE: + case TOK_LT: + case TOK_LTE: + return this._parseComparator(left, tokenName); + case TOK_LBRACKET: + var token = this._lookaheadToken(0); + if (token.type === TOK_NUMBER || token.type === TOK_COLON) { + right = this._parseIndexExpression(); + return this._projectIfSlice(left, right); + } + this._match(TOK_STAR); + this._match(TOK_RBRACKET); + right = this._parseProjectionRHS(bindingPower.Star); + return {type: "Projection", children: [left, right]}; + default: + this._errorToken(this._lookaheadToken(0)); + } + }, + + _match: function(tokenType) { + if (this._lookahead(0) === tokenType) { + this._advance(); + } else { + var t = this._lookaheadToken(0); + var error = new Error("Expected " + tokenType + ", got: " + t.type); + error.name = "ParserError"; + throw error; + } + }, + + _errorToken: function(token) { + var error = new Error("Invalid token (" + + token.type + "): \"" + + token.value + "\""); + error.name = "ParserError"; + throw error; + }, + + + _parseIndexExpression: function() { + if (this._lookahead(0) === TOK_COLON || this._lookahead(1) === TOK_COLON) { + return this._parseSliceExpression(); + } else { + var node = { + type: "Index", + value: this._lookaheadToken(0).value}; + this._advance(); + this._match(TOK_RBRACKET); + return node; + } + }, + + _projectIfSlice: function(left, right) { + var indexExpr = {type: "IndexExpression", children: [left, right]}; + if (right.type === "Slice") { + return { + type: "Projection", + children: [indexExpr, this._parseProjectionRHS(bindingPower.Star)] + }; + } else { + return indexExpr; + } + }, + + _parseSliceExpression: function() { + // [start:end:step] where each part is optional, as well as the last + // colon. + var parts = [null, null, null]; + var index = 0; + var currentToken = this._lookahead(0); + while (currentToken !== TOK_RBRACKET && index < 3) { + if (currentToken === TOK_COLON) { + index++; + this._advance(); + } else if (currentToken === TOK_NUMBER) { + parts[index] = this._lookaheadToken(0).value; + this._advance(); + } else { + var t = this._lookahead(0); + var error = new Error("Syntax error, unexpected token: " + + t.value + "(" + t.type + ")"); + error.name = "Parsererror"; + throw error; + } + currentToken = this._lookahead(0); + } + this._match(TOK_RBRACKET); + return { + type: "Slice", + children: parts + }; + }, + + _parseComparator: function(left, comparator) { + var right = this.expression(bindingPower[comparator]); + return {type: "Comparator", name: comparator, children: [left, right]}; + }, + + _parseDotRHS: function(rbp) { + var lookahead = this._lookahead(0); + var exprTokens = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER, TOK_STAR]; + if (exprTokens.indexOf(lookahead) >= 0) { + return this.expression(rbp); + } else if (lookahead === TOK_LBRACKET) { + this._match(TOK_LBRACKET); + return this._parseMultiselectList(); + } else if (lookahead === TOK_LBRACE) { + this._match(TOK_LBRACE); + return this._parseMultiselectHash(); + } + }, + + _parseProjectionRHS: function(rbp) { + var right; + if (bindingPower[this._lookahead(0)] < 10) { + right = {type: "Identity"}; + } else if (this._lookahead(0) === TOK_LBRACKET) { + right = this.expression(rbp); + } else if (this._lookahead(0) === TOK_FILTER) { + right = this.expression(rbp); + } else if (this._lookahead(0) === TOK_DOT) { + this._match(TOK_DOT); + right = this._parseDotRHS(rbp); + } else { + var t = this._lookaheadToken(0); + var error = new Error("Sytanx error, unexpected token: " + + t.value + "(" + t.type + ")"); + error.name = "ParserError"; + throw error; + } + return right; + }, + + _parseMultiselectList: function() { + var expressions = []; + while (this._lookahead(0) !== TOK_RBRACKET) { + var expression = this.expression(0); + expressions.push(expression); + if (this._lookahead(0) === TOK_COMMA) { + this._match(TOK_COMMA); + if (this._lookahead(0) === TOK_RBRACKET) { + throw new Error("Unexpected token Rbracket"); + } + } + } + this._match(TOK_RBRACKET); + return {type: "MultiSelectList", children: expressions}; + }, + + _parseMultiselectHash: function() { + var pairs = []; + var identifierTypes = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER]; + var keyToken, keyName, value, node; + for (;;) { + keyToken = this._lookaheadToken(0); + if (identifierTypes.indexOf(keyToken.type) < 0) { + throw new Error("Expecting an identifier token, got: " + + keyToken.type); + } + keyName = keyToken.value; + this._advance(); + this._match(TOK_COLON); + value = this.expression(0); + node = {type: "KeyValuePair", name: keyName, value: value}; + pairs.push(node); + if (this._lookahead(0) === TOK_COMMA) { + this._match(TOK_COMMA); + } else if (this._lookahead(0) === TOK_RBRACE) { + this._match(TOK_RBRACE); + break; + } + } + return {type: "MultiSelectHash", children: pairs}; + } + }; + + + function TreeInterpreter(runtime) { + this.runtime = runtime; + } + + TreeInterpreter.prototype = { + search: function(node, value) { + return this.visit(node, value); + }, + + visit: function(node, value) { + var matched, current, result, first, second, field, left, right, collected, i; + switch (node.type) { + case "Field": + if (value !== null && isObject(value)) { + field = value[node.name]; + if (field === undefined) { + return null; + } else { + return field; + } + } + return null; + case "Subexpression": + result = this.visit(node.children[0], value); + for (i = 1; i < node.children.length; i++) { + result = this.visit(node.children[1], result); + if (result === null) { + return null; + } + } + return result; + case "IndexExpression": + left = this.visit(node.children[0], value); + right = this.visit(node.children[1], left); + return right; + case "Index": + if (!isArray(value)) { + return null; + } + var index = node.value; + if (index < 0) { + index = value.length + index; + } + result = value[index]; + if (result === undefined) { + result = null; + } + return result; + case "Slice": + if (!isArray(value)) { + return null; + } + var sliceParams = node.children.slice(0); + var computed = this.computeSliceParams(value.length, sliceParams); + var start = computed[0]; + var stop = computed[1]; + var step = computed[2]; + result = []; + if (step > 0) { + for (i = start; i < stop; i += step) { + result.push(value[i]); + } + } else { + for (i = start; i > stop; i += step) { + result.push(value[i]); + } + } + return result; + case "Projection": + // Evaluate left child. + var base = this.visit(node.children[0], value); + if (!isArray(base)) { + return null; + } + collected = []; + for (i = 0; i < base.length; i++) { + current = this.visit(node.children[1], base[i]); + if (current !== null) { + collected.push(current); + } + } + return collected; + case "ValueProjection": + // Evaluate left child. + base = this.visit(node.children[0], value); + if (!isObject(base)) { + return null; + } + collected = []; + var values = objValues(base); + for (i = 0; i < values.length; i++) { + current = this.visit(node.children[1], values[i]); + if (current !== null) { + collected.push(current); + } + } + return collected; + case "FilterProjection": + base = this.visit(node.children[0], value); + if (!isArray(base)) { + return null; + } + var filtered = []; + var finalResults = []; + for (i = 0; i < base.length; i++) { + matched = this.visit(node.children[2], base[i]); + if (!isFalse(matched)) { + filtered.push(base[i]); + } + } + for (var j = 0; j < filtered.length; j++) { + current = this.visit(node.children[1], filtered[j]); + if (current !== null) { + finalResults.push(current); + } + } + return finalResults; + case "Comparator": + first = this.visit(node.children[0], value); + second = this.visit(node.children[1], value); + switch(node.name) { + case TOK_EQ: + result = strictDeepEqual(first, second); + break; + case TOK_NE: + result = !strictDeepEqual(first, second); + break; + case TOK_GT: + result = first > second; + break; + case TOK_GTE: + result = first >= second; + break; + case TOK_LT: + result = first < second; + break; + case TOK_LTE: + result = first <= second; + break; + default: + throw new Error("Unknown comparator: " + node.name); + } + return result; + case TOK_FLATTEN: + var original = this.visit(node.children[0], value); + if (!isArray(original)) { + return null; + } + var merged = []; + for (i = 0; i < original.length; i++) { + current = original[i]; + if (isArray(current)) { + merged.push.apply(merged, current); + } else { + merged.push(current); + } + } + return merged; + case "Identity": + return value; + case "MultiSelectList": + if (value === null) { + return null; + } + collected = []; + for (i = 0; i < node.children.length; i++) { + collected.push(this.visit(node.children[i], value)); + } + return collected; + case "MultiSelectHash": + if (value === null) { + return null; + } + collected = {}; + var child; + for (i = 0; i < node.children.length; i++) { + child = node.children[i]; + collected[child.name] = this.visit(child.value, value); + } + return collected; + case "OrExpression": + matched = this.visit(node.children[0], value); + if (isFalse(matched)) { + matched = this.visit(node.children[1], value); + } + return matched; + case "AndExpression": + first = this.visit(node.children[0], value); + + if (isFalse(first) === true) { + return first; + } + return this.visit(node.children[1], value); + case "NotExpression": + first = this.visit(node.children[0], value); + return isFalse(first); + case "Literal": + return node.value; + case TOK_PIPE: + left = this.visit(node.children[0], value); + return this.visit(node.children[1], left); + case TOK_CURRENT: + return value; + case "Function": + var resolvedArgs = []; + for (i = 0; i < node.children.length; i++) { + resolvedArgs.push(this.visit(node.children[i], value)); + } + return this.runtime.callFunction(node.name, resolvedArgs); + case "ExpressionReference": + var refNode = node.children[0]; + // Tag the node with a specific attribute so the type + // checker verify the type. + refNode.jmespathType = TOK_EXPREF; + return refNode; + default: + throw new Error("Unknown node type: " + node.type); + } + }, + + computeSliceParams: function(arrayLength, sliceParams) { + var start = sliceParams[0]; + var stop = sliceParams[1]; + var step = sliceParams[2]; + var computed = [null, null, null]; + if (step === null) { + step = 1; + } else if (step === 0) { + var error = new Error("Invalid slice, step cannot be 0"); + error.name = "RuntimeError"; + throw error; + } + var stepValueNegative = step < 0 ? true : false; + + if (start === null) { + start = stepValueNegative ? arrayLength - 1 : 0; + } else { + start = this.capSliceRange(arrayLength, start, step); + } + + if (stop === null) { + stop = stepValueNegative ? -1 : arrayLength; + } else { + stop = this.capSliceRange(arrayLength, stop, step); + } + computed[0] = start; + computed[1] = stop; + computed[2] = step; + return computed; + }, + + capSliceRange: function(arrayLength, actualValue, step) { + if (actualValue < 0) { + actualValue += arrayLength; + if (actualValue < 0) { + actualValue = step < 0 ? -1 : 0; + } + } else if (actualValue >= arrayLength) { + actualValue = step < 0 ? arrayLength - 1 : arrayLength; + } + return actualValue; + } + + }; + + function Runtime(interpreter) { + this._interpreter = interpreter; + this.functionTable = { + // name: [function, ] + // The can be: + // + // { + // args: [[type1, type2], [type1, type2]], + // variadic: true|false + // } + // + // Each arg in the arg list is a list of valid types + // (if the function is overloaded and supports multiple + // types. If the type is "any" then no type checking + // occurs on the argument. Variadic is optional + // and if not provided is assumed to be false. + abs: {_func: this._functionAbs, _signature: [{types: [TYPE_NUMBER]}]}, + avg: {_func: this._functionAvg, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, + ceil: {_func: this._functionCeil, _signature: [{types: [TYPE_NUMBER]}]}, + contains: { + _func: this._functionContains, + _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}, + {types: [TYPE_ANY]}]}, + "ends_with": { + _func: this._functionEndsWith, + _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, + floor: {_func: this._functionFloor, _signature: [{types: [TYPE_NUMBER]}]}, + length: { + _func: this._functionLength, + _signature: [{types: [TYPE_STRING, TYPE_ARRAY, TYPE_OBJECT]}]}, + map: { + _func: this._functionMap, + _signature: [{types: [TYPE_EXPREF]}, {types: [TYPE_ARRAY]}]}, + max: { + _func: this._functionMax, + _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, + "merge": { + _func: this._functionMerge, + _signature: [{types: [TYPE_OBJECT], variadic: true}] + }, + "max_by": { + _func: this._functionMaxBy, + _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] + }, + sum: {_func: this._functionSum, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, + "starts_with": { + _func: this._functionStartsWith, + _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, + min: { + _func: this._functionMin, + _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, + "min_by": { + _func: this._functionMinBy, + _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] + }, + type: {_func: this._functionType, _signature: [{types: [TYPE_ANY]}]}, + keys: {_func: this._functionKeys, _signature: [{types: [TYPE_OBJECT]}]}, + values: {_func: this._functionValues, _signature: [{types: [TYPE_OBJECT]}]}, + sort: {_func: this._functionSort, _signature: [{types: [TYPE_ARRAY_STRING, TYPE_ARRAY_NUMBER]}]}, + "sort_by": { + _func: this._functionSortBy, + _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] + }, + join: { + _func: this._functionJoin, + _signature: [ + {types: [TYPE_STRING]}, + {types: [TYPE_ARRAY_STRING]} + ] + }, + reverse: { + _func: this._functionReverse, + _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}]}, + "to_array": {_func: this._functionToArray, _signature: [{types: [TYPE_ANY]}]}, + "to_string": {_func: this._functionToString, _signature: [{types: [TYPE_ANY]}]}, + "to_number": {_func: this._functionToNumber, _signature: [{types: [TYPE_ANY]}]}, + "not_null": { + _func: this._functionNotNull, + _signature: [{types: [TYPE_ANY], variadic: true}] + } + }; + } + + Runtime.prototype = { + callFunction: function(name, resolvedArgs) { + var functionEntry = this.functionTable[name]; + if (functionEntry === undefined) { + throw new Error("Unknown function: " + name + "()"); + } + this._validateArgs(name, resolvedArgs, functionEntry._signature); + return functionEntry._func.call(this, resolvedArgs); + }, + + _validateArgs: function(name, args, signature) { + // Validating the args requires validating + // the correct arity and the correct type of each arg. + // If the last argument is declared as variadic, then we need + // a minimum number of args to be required. Otherwise it has to + // be an exact amount. + var pluralized; + if (signature[signature.length - 1].variadic) { + if (args.length < signature.length) { + pluralized = signature.length === 1 ? " argument" : " arguments"; + throw new Error("ArgumentError: " + name + "() " + + "takes at least" + signature.length + pluralized + + " but received " + args.length); + } + } else if (args.length !== signature.length) { + pluralized = signature.length === 1 ? " argument" : " arguments"; + throw new Error("ArgumentError: " + name + "() " + + "takes " + signature.length + pluralized + + " but received " + args.length); + } + var currentSpec; + var actualType; + var typeMatched; + for (var i = 0; i < signature.length; i++) { + typeMatched = false; + currentSpec = signature[i].types; + actualType = this._getTypeName(args[i]); + for (var j = 0; j < currentSpec.length; j++) { + if (this._typeMatches(actualType, currentSpec[j], args[i])) { + typeMatched = true; + break; + } + } + if (!typeMatched) { + var expected = currentSpec + .map(function(typeIdentifier) { + return TYPE_NAME_TABLE[typeIdentifier]; + }) + .join(','); + throw new Error("TypeError: " + name + "() " + + "expected argument " + (i + 1) + + " to be type " + expected + + " but received type " + + TYPE_NAME_TABLE[actualType] + " instead."); + } + } + }, + + _typeMatches: function(actual, expected, argValue) { + if (expected === TYPE_ANY) { + return true; + } + if (expected === TYPE_ARRAY_STRING || + expected === TYPE_ARRAY_NUMBER || + expected === TYPE_ARRAY) { + // The expected type can either just be array, + // or it can require a specific subtype (array of numbers). + // + // The simplest case is if "array" with no subtype is specified. + if (expected === TYPE_ARRAY) { + return actual === TYPE_ARRAY; + } else if (actual === TYPE_ARRAY) { + // Otherwise we need to check subtypes. + // I think this has potential to be improved. + var subtype; + if (expected === TYPE_ARRAY_NUMBER) { + subtype = TYPE_NUMBER; + } else if (expected === TYPE_ARRAY_STRING) { + subtype = TYPE_STRING; + } + for (var i = 0; i < argValue.length; i++) { + if (!this._typeMatches( + this._getTypeName(argValue[i]), subtype, + argValue[i])) { + return false; + } + } + return true; + } + } else { + return actual === expected; + } + }, + _getTypeName: function(obj) { + switch (Object.prototype.toString.call(obj)) { + case "[object String]": + return TYPE_STRING; + case "[object Number]": + return TYPE_NUMBER; + case "[object Array]": + return TYPE_ARRAY; + case "[object Boolean]": + return TYPE_BOOLEAN; + case "[object Null]": + return TYPE_NULL; + case "[object Object]": + // Check if it's an expref. If it has, it's been + // tagged with a jmespathType attr of 'Expref'; + if (obj.jmespathType === TOK_EXPREF) { + return TYPE_EXPREF; + } else { + return TYPE_OBJECT; + } + } + }, + + _functionStartsWith: function(resolvedArgs) { + return resolvedArgs[0].lastIndexOf(resolvedArgs[1]) === 0; + }, + + _functionEndsWith: function(resolvedArgs) { + var searchStr = resolvedArgs[0]; + var suffix = resolvedArgs[1]; + return searchStr.indexOf(suffix, searchStr.length - suffix.length) !== -1; + }, + + _functionReverse: function(resolvedArgs) { + var typeName = this._getTypeName(resolvedArgs[0]); + if (typeName === TYPE_STRING) { + var originalStr = resolvedArgs[0]; + var reversedStr = ""; + for (var i = originalStr.length - 1; i >= 0; i--) { + reversedStr += originalStr[i]; + } + return reversedStr; + } else { + var reversedArray = resolvedArgs[0].slice(0); + reversedArray.reverse(); + return reversedArray; + } + }, + + _functionAbs: function(resolvedArgs) { + return Math.abs(resolvedArgs[0]); + }, + + _functionCeil: function(resolvedArgs) { + return Math.ceil(resolvedArgs[0]); + }, + + _functionAvg: function(resolvedArgs) { + var sum = 0; + var inputArray = resolvedArgs[0]; + for (var i = 0; i < inputArray.length; i++) { + sum += inputArray[i]; + } + return sum / inputArray.length; + }, + + _functionContains: function(resolvedArgs) { + return resolvedArgs[0].indexOf(resolvedArgs[1]) >= 0; + }, + + _functionFloor: function(resolvedArgs) { + return Math.floor(resolvedArgs[0]); + }, + + _functionLength: function(resolvedArgs) { + if (!isObject(resolvedArgs[0])) { + return resolvedArgs[0].length; + } else { + // As far as I can tell, there's no way to get the length + // of an object without O(n) iteration through the object. + return Object.keys(resolvedArgs[0]).length; + } + }, + + _functionMap: function(resolvedArgs) { + var mapped = []; + var interpreter = this._interpreter; + var exprefNode = resolvedArgs[0]; + var elements = resolvedArgs[1]; + for (var i = 0; i < elements.length; i++) { + mapped.push(interpreter.visit(exprefNode, elements[i])); + } + return mapped; + }, + + _functionMerge: function(resolvedArgs) { + var merged = {}; + for (var i = 0; i < resolvedArgs.length; i++) { + var current = resolvedArgs[i]; + for (var key in current) { + merged[key] = current[key]; + } + } + return merged; + }, + + _functionMax: function(resolvedArgs) { + if (resolvedArgs[0].length > 0) { + var typeName = this._getTypeName(resolvedArgs[0][0]); + if (typeName === TYPE_NUMBER) { + return Math.max.apply(Math, resolvedArgs[0]); + } else { + var elements = resolvedArgs[0]; + var maxElement = elements[0]; + for (var i = 1; i < elements.length; i++) { + if (maxElement.localeCompare(elements[i]) < 0) { + maxElement = elements[i]; + } + } + return maxElement; + } + } else { + return null; + } + }, + + _functionMin: function(resolvedArgs) { + if (resolvedArgs[0].length > 0) { + var typeName = this._getTypeName(resolvedArgs[0][0]); + if (typeName === TYPE_NUMBER) { + return Math.min.apply(Math, resolvedArgs[0]); + } else { + var elements = resolvedArgs[0]; + var minElement = elements[0]; + for (var i = 1; i < elements.length; i++) { + if (elements[i].localeCompare(minElement) < 0) { + minElement = elements[i]; + } + } + return minElement; + } + } else { + return null; + } + }, + + _functionSum: function(resolvedArgs) { + var sum = 0; + var listToSum = resolvedArgs[0]; + for (var i = 0; i < listToSum.length; i++) { + sum += listToSum[i]; + } + return sum; + }, + + _functionType: function(resolvedArgs) { + switch (this._getTypeName(resolvedArgs[0])) { + case TYPE_NUMBER: + return "number"; + case TYPE_STRING: + return "string"; + case TYPE_ARRAY: + return "array"; + case TYPE_OBJECT: + return "object"; + case TYPE_BOOLEAN: + return "boolean"; + case TYPE_EXPREF: + return "expref"; + case TYPE_NULL: + return "null"; + } + }, + + _functionKeys: function(resolvedArgs) { + return Object.keys(resolvedArgs[0]); + }, + + _functionValues: function(resolvedArgs) { + var obj = resolvedArgs[0]; + var keys = Object.keys(obj); + var values = []; + for (var i = 0; i < keys.length; i++) { + values.push(obj[keys[i]]); + } + return values; + }, + + _functionJoin: function(resolvedArgs) { + var joinChar = resolvedArgs[0]; + var listJoin = resolvedArgs[1]; + return listJoin.join(joinChar); + }, + + _functionToArray: function(resolvedArgs) { + if (this._getTypeName(resolvedArgs[0]) === TYPE_ARRAY) { + return resolvedArgs[0]; + } else { + return [resolvedArgs[0]]; + } + }, + + _functionToString: function(resolvedArgs) { + if (this._getTypeName(resolvedArgs[0]) === TYPE_STRING) { + return resolvedArgs[0]; + } else { + return JSON.stringify(resolvedArgs[0]); + } + }, + + _functionToNumber: function(resolvedArgs) { + var typeName = this._getTypeName(resolvedArgs[0]); + var convertedValue; + if (typeName === TYPE_NUMBER) { + return resolvedArgs[0]; + } else if (typeName === TYPE_STRING) { + convertedValue = +resolvedArgs[0]; + if (!isNaN(convertedValue)) { + return convertedValue; + } + } + return null; + }, + + _functionNotNull: function(resolvedArgs) { + for (var i = 0; i < resolvedArgs.length; i++) { + if (this._getTypeName(resolvedArgs[i]) !== TYPE_NULL) { + return resolvedArgs[i]; + } + } + return null; + }, + + _functionSort: function(resolvedArgs) { + var sortedArray = resolvedArgs[0].slice(0); + sortedArray.sort(); + return sortedArray; + }, + + _functionSortBy: function(resolvedArgs) { + var sortedArray = resolvedArgs[0].slice(0); + if (sortedArray.length === 0) { + return sortedArray; + } + var interpreter = this._interpreter; + var exprefNode = resolvedArgs[1]; + var requiredType = this._getTypeName( + interpreter.visit(exprefNode, sortedArray[0])); + if ([TYPE_NUMBER, TYPE_STRING].indexOf(requiredType) < 0) { + throw new Error("TypeError"); + } + var that = this; + // In order to get a stable sort out of an unstable + // sort algorithm, we decorate/sort/undecorate (DSU) + // by creating a new list of [index, element] pairs. + // In the cmp function, if the evaluated elements are + // equal, then the index will be used as the tiebreaker. + // After the decorated list has been sorted, it will be + // undecorated to extract the original elements. + var decorated = []; + for (var i = 0; i < sortedArray.length; i++) { + decorated.push([i, sortedArray[i]]); + } + decorated.sort(function(a, b) { + var exprA = interpreter.visit(exprefNode, a[1]); + var exprB = interpreter.visit(exprefNode, b[1]); + if (that._getTypeName(exprA) !== requiredType) { + throw new Error( + "TypeError: expected " + requiredType + ", received " + + that._getTypeName(exprA)); + } else if (that._getTypeName(exprB) !== requiredType) { + throw new Error( + "TypeError: expected " + requiredType + ", received " + + that._getTypeName(exprB)); + } + if (exprA > exprB) { + return 1; + } else if (exprA < exprB) { + return -1; + } else { + // If they're equal compare the items by their + // order to maintain relative order of equal keys + // (i.e. to get a stable sort). + return a[0] - b[0]; + } + }); + // Undecorate: extract out the original list elements. + for (var j = 0; j < decorated.length; j++) { + sortedArray[j] = decorated[j][1]; + } + return sortedArray; + }, + + _functionMaxBy: function(resolvedArgs) { + var exprefNode = resolvedArgs[1]; + var resolvedArray = resolvedArgs[0]; + var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); + var maxNumber = -Infinity; + var maxRecord; + var current; + for (var i = 0; i < resolvedArray.length; i++) { + current = keyFunction(resolvedArray[i]); + if (current > maxNumber) { + maxNumber = current; + maxRecord = resolvedArray[i]; + } + } + return maxRecord; + }, + + _functionMinBy: function(resolvedArgs) { + var exprefNode = resolvedArgs[1]; + var resolvedArray = resolvedArgs[0]; + var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); + var minNumber = Infinity; + var minRecord; + var current; + for (var i = 0; i < resolvedArray.length; i++) { + current = keyFunction(resolvedArray[i]); + if (current < minNumber) { + minNumber = current; + minRecord = resolvedArray[i]; + } + } + return minRecord; + }, + + createKeyFunction: function(exprefNode, allowedTypes) { + var that = this; + var interpreter = this._interpreter; + var keyFunc = function(x) { + var current = interpreter.visit(exprefNode, x); + if (allowedTypes.indexOf(that._getTypeName(current)) < 0) { + var msg = "TypeError: expected one of " + allowedTypes + + ", received " + that._getTypeName(current); + throw new Error(msg); + } + return current; + }; + return keyFunc; + } + + }; + + function compile(stream) { + var parser = new Parser(); + var ast = parser.parse(stream); + return ast; + } + + function tokenize(stream) { + var lexer = new Lexer(); + return lexer.tokenize(stream); + } + + function search(data, expression) { + var parser = new Parser(); + // This needs to be improved. Both the interpreter and runtime depend on + // each other. The runtime needs the interpreter to support exprefs. + // There's likely a clean way to avoid the cyclic dependency. + var runtime = new Runtime(); + var interpreter = new TreeInterpreter(runtime); + runtime._interpreter = interpreter; + var node = parser.parse(expression); + return interpreter.search(node, data); + } + + exports.tokenize = tokenize; + exports.compile = compile; + exports.search = search; + exports.strictDeepEqual = strictDeepEqual; +})( false ? 0 : exports); + + +/***/ }), + +/***/ 71750: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + + +var loader = __nccwpck_require__(15399); +var dumper = __nccwpck_require__(48713); + + +function renamed(from, to) { + return function () { + throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + + 'Use yaml.' + to + ' instead, which is now safe by default.'); + }; +} + + +module.exports.Type = __nccwpck_require__(38792); +module.exports.Schema = __nccwpck_require__(81891); +module.exports.FAILSAFE_SCHEMA = __nccwpck_require__(71067); +module.exports.JSON_SCHEMA = __nccwpck_require__(85092); +module.exports.CORE_SCHEMA = __nccwpck_require__(97845); +module.exports.DEFAULT_SCHEMA = __nccwpck_require__(43189); +module.exports.load = loader.load; +module.exports.loadAll = loader.loadAll; +module.exports.dump = dumper.dump; +module.exports.YAMLException = __nccwpck_require__(41691); + +// Re-export all types in case user wants to create custom schema +module.exports.types = { + binary: __nccwpck_require__(76770), + float: __nccwpck_require__(24281), + map: __nccwpck_require__(55773), + null: __nccwpck_require__(11210), + pairs: __nccwpck_require__(38546), + set: __nccwpck_require__(15003), + timestamp: __nccwpck_require__(84347), + bool: __nccwpck_require__(83915), + int: __nccwpck_require__(86182), + merge: __nccwpck_require__(7455), + omap: __nccwpck_require__(30398), + seq: __nccwpck_require__(82856), + str: __nccwpck_require__(80712) +}; + +// Removed functions from JS-YAML 3.0.x +module.exports.safeLoad = renamed('safeLoad', 'load'); +module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll'); +module.exports.safeDump = renamed('safeDump', 'dump'); + + +/***/ }), + +/***/ 8629: +/***/ ((module) => { + +"use strict"; + + + +function isNothing(subject) { + return (typeof subject === 'undefined') || (subject === null); +} + + +function isObject(subject) { + return (typeof subject === 'object') && (subject !== null); +} + + +function toArray(sequence) { + if (Array.isArray(sequence)) return sequence; + else if (isNothing(sequence)) return []; + + return [ sequence ]; +} + + +function extend(target, source) { + var index, length, key, sourceKeys; + + if (source) { + sourceKeys = Object.keys(source); + + for (index = 0, length = sourceKeys.length; index < length; index += 1) { + key = sourceKeys[index]; + target[key] = source[key]; + } + } + + return target; +} + + +function repeat(string, count) { + var result = '', cycle; + + for (cycle = 0; cycle < count; cycle += 1) { + result += string; + } + + return result; +} + + +function isNegativeZero(number) { + return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); +} + + +module.exports.isNothing = isNothing; +module.exports.isObject = isObject; +module.exports.toArray = toArray; +module.exports.repeat = repeat; +module.exports.isNegativeZero = isNegativeZero; +module.exports.extend = extend; + + +/***/ }), + +/***/ 48713: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/*eslint-disable no-use-before-define*/ + +var common = __nccwpck_require__(8629); +var YAMLException = __nccwpck_require__(41691); +var DEFAULT_SCHEMA = __nccwpck_require__(43189); + +var _toString = Object.prototype.toString; +var _hasOwnProperty = Object.prototype.hasOwnProperty; + +var CHAR_BOM = 0xFEFF; +var CHAR_TAB = 0x09; /* Tab */ +var CHAR_LINE_FEED = 0x0A; /* LF */ +var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ +var CHAR_SPACE = 0x20; /* Space */ +var CHAR_EXCLAMATION = 0x21; /* ! */ +var CHAR_DOUBLE_QUOTE = 0x22; /* " */ +var CHAR_SHARP = 0x23; /* # */ +var CHAR_PERCENT = 0x25; /* % */ +var CHAR_AMPERSAND = 0x26; /* & */ +var CHAR_SINGLE_QUOTE = 0x27; /* ' */ +var CHAR_ASTERISK = 0x2A; /* * */ +var CHAR_COMMA = 0x2C; /* , */ +var CHAR_MINUS = 0x2D; /* - */ +var CHAR_COLON = 0x3A; /* : */ +var CHAR_EQUALS = 0x3D; /* = */ +var CHAR_GREATER_THAN = 0x3E; /* > */ +var CHAR_QUESTION = 0x3F; /* ? */ +var CHAR_COMMERCIAL_AT = 0x40; /* @ */ +var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ +var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ +var CHAR_GRAVE_ACCENT = 0x60; /* ` */ +var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ +var CHAR_VERTICAL_LINE = 0x7C; /* | */ +var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ + +var ESCAPE_SEQUENCES = {}; + +ESCAPE_SEQUENCES[0x00] = '\\0'; +ESCAPE_SEQUENCES[0x07] = '\\a'; +ESCAPE_SEQUENCES[0x08] = '\\b'; +ESCAPE_SEQUENCES[0x09] = '\\t'; +ESCAPE_SEQUENCES[0x0A] = '\\n'; +ESCAPE_SEQUENCES[0x0B] = '\\v'; +ESCAPE_SEQUENCES[0x0C] = '\\f'; +ESCAPE_SEQUENCES[0x0D] = '\\r'; +ESCAPE_SEQUENCES[0x1B] = '\\e'; +ESCAPE_SEQUENCES[0x22] = '\\"'; +ESCAPE_SEQUENCES[0x5C] = '\\\\'; +ESCAPE_SEQUENCES[0x85] = '\\N'; +ESCAPE_SEQUENCES[0xA0] = '\\_'; +ESCAPE_SEQUENCES[0x2028] = '\\L'; +ESCAPE_SEQUENCES[0x2029] = '\\P'; + +var DEPRECATED_BOOLEANS_SYNTAX = [ + 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', + 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' +]; + +var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; + +function compileStyleMap(schema, map) { + var result, keys, index, length, tag, style, type; + + if (map === null) return {}; + + result = {}; + keys = Object.keys(map); + + for (index = 0, length = keys.length; index < length; index += 1) { + tag = keys[index]; + style = String(map[tag]); + + if (tag.slice(0, 2) === '!!') { + tag = 'tag:yaml.org,2002:' + tag.slice(2); + } + type = schema.compiledTypeMap['fallback'][tag]; + + if (type && _hasOwnProperty.call(type.styleAliases, style)) { + style = type.styleAliases[style]; + } + + result[tag] = style; + } + + return result; +} + +function encodeHex(character) { + var string, handle, length; + + string = character.toString(16).toUpperCase(); + + if (character <= 0xFF) { + handle = 'x'; + length = 2; + } else if (character <= 0xFFFF) { + handle = 'u'; + length = 4; + } else if (character <= 0xFFFFFFFF) { + handle = 'U'; + length = 8; + } else { + throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF'); + } + + return '\\' + handle + common.repeat('0', length - string.length) + string; +} + + +var QUOTING_TYPE_SINGLE = 1, + QUOTING_TYPE_DOUBLE = 2; + +function State(options) { + this.schema = options['schema'] || DEFAULT_SCHEMA; + this.indent = Math.max(1, (options['indent'] || 2)); + this.noArrayIndent = options['noArrayIndent'] || false; + this.skipInvalid = options['skipInvalid'] || false; + this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); + this.styleMap = compileStyleMap(this.schema, options['styles'] || null); + this.sortKeys = options['sortKeys'] || false; + this.lineWidth = options['lineWidth'] || 80; + this.noRefs = options['noRefs'] || false; + this.noCompatMode = options['noCompatMode'] || false; + this.condenseFlow = options['condenseFlow'] || false; + this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; + this.forceQuotes = options['forceQuotes'] || false; + this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; + + this.implicitTypes = this.schema.compiledImplicit; + this.explicitTypes = this.schema.compiledExplicit; + + this.tag = null; + this.result = ''; + + this.duplicates = []; + this.usedDuplicates = null; +} + +// Indents every line in a string. Empty lines (\n only) are not indented. +function indentString(string, spaces) { + var ind = common.repeat(' ', spaces), + position = 0, + next = -1, + result = '', + line, + length = string.length; + + while (position < length) { + next = string.indexOf('\n', position); + if (next === -1) { + line = string.slice(position); + position = length; + } else { + line = string.slice(position, next + 1); + position = next + 1; + } + + if (line.length && line !== '\n') result += ind; + + result += line; + } + + return result; +} + +function generateNextLine(state, level) { + return '\n' + common.repeat(' ', state.indent * level); +} + +function testImplicitResolving(state, str) { + var index, length, type; + + for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { + type = state.implicitTypes[index]; + + if (type.resolve(str)) { + return true; + } + } + + return false; +} + +// [33] s-white ::= s-space | s-tab +function isWhitespace(c) { + return c === CHAR_SPACE || c === CHAR_TAB; +} + +// Returns true if the character can be printed without escaping. +// From YAML 1.2: "any allowed characters known to be non-printable +// should also be escaped. [However,] This isn’t mandatory" +// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. +function isPrintable(c) { + return (0x00020 <= c && c <= 0x00007E) + || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) + || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) + || (0x10000 <= c && c <= 0x10FFFF); +} + +// [34] ns-char ::= nb-char - s-white +// [27] nb-char ::= c-printable - b-char - c-byte-order-mark +// [26] b-char ::= b-line-feed | b-carriage-return +// Including s-white (for some reason, examples doesn't match specs in this aspect) +// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark +function isNsCharOrWhitespace(c) { + return isPrintable(c) + && c !== CHAR_BOM + // - b-char + && c !== CHAR_CARRIAGE_RETURN + && c !== CHAR_LINE_FEED; +} + +// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out +// c = flow-in ⇒ ns-plain-safe-in +// c = block-key ⇒ ns-plain-safe-out +// c = flow-key ⇒ ns-plain-safe-in +// [128] ns-plain-safe-out ::= ns-char +// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator +// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) +// | ( /* An ns-char preceding */ “#” ) +// | ( “:” /* Followed by an ns-plain-safe(c) */ ) +function isPlainSafe(c, prev, inblock) { + var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); + var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); + return ( + // ns-plain-safe + inblock ? // c = flow-in + cIsNsCharOrWhitespace + : cIsNsCharOrWhitespace + // - c-flow-indicator + && c !== CHAR_COMMA + && c !== CHAR_LEFT_SQUARE_BRACKET + && c !== CHAR_RIGHT_SQUARE_BRACKET + && c !== CHAR_LEFT_CURLY_BRACKET + && c !== CHAR_RIGHT_CURLY_BRACKET + ) + // ns-plain-char + && c !== CHAR_SHARP // false on '#' + && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' + || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' + || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' +} + +// Simplified test for values allowed as the first character in plain style. +function isPlainSafeFirst(c) { + // Uses a subset of ns-char - c-indicator + // where ns-char = nb-char - s-white. + // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part + return isPrintable(c) && c !== CHAR_BOM + && !isWhitespace(c) // - s-white + // - (c-indicator ::= + // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” + && c !== CHAR_MINUS + && c !== CHAR_QUESTION + && c !== CHAR_COLON + && c !== CHAR_COMMA + && c !== CHAR_LEFT_SQUARE_BRACKET + && c !== CHAR_RIGHT_SQUARE_BRACKET + && c !== CHAR_LEFT_CURLY_BRACKET + && c !== CHAR_RIGHT_CURLY_BRACKET + // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” + && c !== CHAR_SHARP + && c !== CHAR_AMPERSAND + && c !== CHAR_ASTERISK + && c !== CHAR_EXCLAMATION + && c !== CHAR_VERTICAL_LINE + && c !== CHAR_EQUALS + && c !== CHAR_GREATER_THAN + && c !== CHAR_SINGLE_QUOTE + && c !== CHAR_DOUBLE_QUOTE + // | “%” | “@” | “`”) + && c !== CHAR_PERCENT + && c !== CHAR_COMMERCIAL_AT + && c !== CHAR_GRAVE_ACCENT; +} + +// Simplified test for values allowed as the last character in plain style. +function isPlainSafeLast(c) { + // just not whitespace or colon, it will be checked to be plain character later + return !isWhitespace(c) && c !== CHAR_COLON; +} + +// Same as 'string'.codePointAt(pos), but works in older browsers. +function codePointAt(string, pos) { + var first = string.charCodeAt(pos), second; + if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { + second = string.charCodeAt(pos + 1); + if (second >= 0xDC00 && second <= 0xDFFF) { + // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; + } + } + return first; +} + +// Determines whether block indentation indicator is required. +function needIndentIndicator(string) { + var leadingSpaceRe = /^\n* /; + return leadingSpaceRe.test(string); +} + +var STYLE_PLAIN = 1, + STYLE_SINGLE = 2, + STYLE_LITERAL = 3, + STYLE_FOLDED = 4, + STYLE_DOUBLE = 5; + +// Determines which scalar styles are possible and returns the preferred style. +// lineWidth = -1 => no limit. +// Pre-conditions: str.length > 0. +// Post-conditions: +// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. +// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). +// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). +function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, + testAmbiguousType, quotingType, forceQuotes, inblock) { + + var i; + var char = 0; + var prevChar = null; + var hasLineBreak = false; + var hasFoldableLine = false; // only checked if shouldTrackWidth + var shouldTrackWidth = lineWidth !== -1; + var previousLineBreak = -1; // count the first line correctly + var plain = isPlainSafeFirst(codePointAt(string, 0)) + && isPlainSafeLast(codePointAt(string, string.length - 1)); + + if (singleLineOnly || forceQuotes) { + // Case: no block styles. + // Check for disallowed characters to rule out plain and single. + for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { + char = codePointAt(string, i); + if (!isPrintable(char)) { + return STYLE_DOUBLE; + } + plain = plain && isPlainSafe(char, prevChar, inblock); + prevChar = char; + } + } else { + // Case: block styles permitted. + for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { + char = codePointAt(string, i); + if (char === CHAR_LINE_FEED) { + hasLineBreak = true; + // Check if any line can be folded. + if (shouldTrackWidth) { + hasFoldableLine = hasFoldableLine || + // Foldable line = too long, and not more-indented. + (i - previousLineBreak - 1 > lineWidth && + string[previousLineBreak + 1] !== ' '); + previousLineBreak = i; + } + } else if (!isPrintable(char)) { + return STYLE_DOUBLE; + } + plain = plain && isPlainSafe(char, prevChar, inblock); + prevChar = char; + } + // in case the end is missing a \n + hasFoldableLine = hasFoldableLine || (shouldTrackWidth && + (i - previousLineBreak - 1 > lineWidth && + string[previousLineBreak + 1] !== ' ')); + } + // Although every style can represent \n without escaping, prefer block styles + // for multiline, since they're more readable and they don't add empty lines. + // Also prefer folding a super-long line. + if (!hasLineBreak && !hasFoldableLine) { + // Strings interpretable as another type have to be quoted; + // e.g. the string 'true' vs. the boolean true. + if (plain && !forceQuotes && !testAmbiguousType(string)) { + return STYLE_PLAIN; + } + return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; + } + // Edge case: block indentation indicator can only have one digit. + if (indentPerLevel > 9 && needIndentIndicator(string)) { + return STYLE_DOUBLE; + } + // At this point we know block styles are valid. + // Prefer literal style unless we want to fold. + if (!forceQuotes) { + return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; + } + return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; +} + +// Note: line breaking/folding is implemented for only the folded style. +// NB. We drop the last trailing newline (if any) of a returned block scalar +// since the dumper adds its own newline. This always works: +// • No ending newline => unaffected; already using strip "-" chomping. +// • Ending newline => removed then restored. +// Importantly, this keeps the "+" chomp indicator from gaining an extra line. +function writeScalar(state, string, level, iskey, inblock) { + state.dump = (function () { + if (string.length === 0) { + return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; + } + if (!state.noCompatMode) { + if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { + return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); + } + } + + var indent = state.indent * Math.max(1, level); // no 0-indent scalars + // As indentation gets deeper, let the width decrease monotonically + // to the lower bound min(state.lineWidth, 40). + // Note that this implies + // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. + // state.lineWidth > 40 + state.indent: width decreases until the lower bound. + // This behaves better than a constant minimum width which disallows narrower options, + // or an indent threshold which causes the width to suddenly increase. + var lineWidth = state.lineWidth === -1 + ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); + + // Without knowing if keys are implicit/explicit, assume implicit for safety. + var singleLineOnly = iskey + // No block styles in flow mode. + || (state.flowLevel > -1 && level >= state.flowLevel); + function testAmbiguity(string) { + return testImplicitResolving(state, string); + } + + switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, + testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { + + case STYLE_PLAIN: + return string; + case STYLE_SINGLE: + return "'" + string.replace(/'/g, "''") + "'"; + case STYLE_LITERAL: + return '|' + blockHeader(string, state.indent) + + dropEndingNewline(indentString(string, indent)); + case STYLE_FOLDED: + return '>' + blockHeader(string, state.indent) + + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); + case STYLE_DOUBLE: + return '"' + escapeString(string, lineWidth) + '"'; + default: + throw new YAMLException('impossible error: invalid scalar style'); + } + }()); +} + +// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. +function blockHeader(string, indentPerLevel) { + var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; + + // note the special case: the string '\n' counts as a "trailing" empty line. + var clip = string[string.length - 1] === '\n'; + var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); + var chomp = keep ? '+' : (clip ? '' : '-'); + + return indentIndicator + chomp + '\n'; +} + +// (See the note for writeScalar.) +function dropEndingNewline(string) { + return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; +} + +// Note: a long line without a suitable break point will exceed the width limit. +// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. +function foldString(string, width) { + // In folded style, $k$ consecutive newlines output as $k+1$ newlines— + // unless they're before or after a more-indented line, or at the very + // beginning or end, in which case $k$ maps to $k$. + // Therefore, parse each chunk as newline(s) followed by a content line. + var lineRe = /(\n+)([^\n]*)/g; + + // first line (possibly an empty line) + var result = (function () { + var nextLF = string.indexOf('\n'); + nextLF = nextLF !== -1 ? nextLF : string.length; + lineRe.lastIndex = nextLF; + return foldLine(string.slice(0, nextLF), width); + }()); + // If we haven't reached the first content line yet, don't add an extra \n. + var prevMoreIndented = string[0] === '\n' || string[0] === ' '; + var moreIndented; + + // rest of the lines + var match; + while ((match = lineRe.exec(string))) { + var prefix = match[1], line = match[2]; + moreIndented = (line[0] === ' '); + result += prefix + + (!prevMoreIndented && !moreIndented && line !== '' + ? '\n' : '') + + foldLine(line, width); + prevMoreIndented = moreIndented; + } + + return result; +} + +// Greedy line breaking. +// Picks the longest line under the limit each time, +// otherwise settles for the shortest line over the limit. +// NB. More-indented lines *cannot* be folded, as that would add an extra \n. +function foldLine(line, width) { + if (line === '' || line[0] === ' ') return line; + + // Since a more-indented line adds a \n, breaks can't be followed by a space. + var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. + var match; + // start is an inclusive index. end, curr, and next are exclusive. + var start = 0, end, curr = 0, next = 0; + var result = ''; + + // Invariants: 0 <= start <= length-1. + // 0 <= curr <= next <= max(0, length-2). curr - start <= width. + // Inside the loop: + // A match implies length >= 2, so curr and next are <= length-2. + while ((match = breakRe.exec(line))) { + next = match.index; + // maintain invariant: curr - start <= width + if (next - start > width) { + end = (curr > start) ? curr : next; // derive end <= length-2 + result += '\n' + line.slice(start, end); + // skip the space that was output as \n + start = end + 1; // derive start <= length-1 + } + curr = next; + } + + // By the invariants, start <= length-1, so there is something left over. + // It is either the whole string or a part starting from non-whitespace. + result += '\n'; + // Insert a break if the remainder is too long and there is a break available. + if (line.length - start > width && curr > start) { + result += line.slice(start, curr) + '\n' + line.slice(curr + 1); + } else { + result += line.slice(start); + } + + return result.slice(1); // drop extra \n joiner +} + +// Escapes a double-quoted string. +function escapeString(string) { + var result = ''; + var char = 0; + var escapeSeq; + + for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { + char = codePointAt(string, i); + escapeSeq = ESCAPE_SEQUENCES[char]; + + if (!escapeSeq && isPrintable(char)) { + result += string[i]; + if (char >= 0x10000) result += string[i + 1]; + } else { + result += escapeSeq || encodeHex(char); + } + } + + return result; +} + +function writeFlowSequence(state, level, object) { + var _result = '', + _tag = state.tag, + index, + length, + value; + + for (index = 0, length = object.length; index < length; index += 1) { + value = object[index]; + + if (state.replacer) { + value = state.replacer.call(object, String(index), value); + } + + // Write only valid elements, put null instead of invalid elements. + if (writeNode(state, level, value, false, false) || + (typeof value === 'undefined' && + writeNode(state, level, null, false, false))) { + + if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); + _result += state.dump; + } + } + + state.tag = _tag; + state.dump = '[' + _result + ']'; +} + +function writeBlockSequence(state, level, object, compact) { + var _result = '', + _tag = state.tag, + index, + length, + value; + + for (index = 0, length = object.length; index < length; index += 1) { + value = object[index]; + + if (state.replacer) { + value = state.replacer.call(object, String(index), value); + } + + // Write only valid elements, put null instead of invalid elements. + if (writeNode(state, level + 1, value, true, true, false, true) || + (typeof value === 'undefined' && + writeNode(state, level + 1, null, true, true, false, true))) { + + if (!compact || _result !== '') { + _result += generateNextLine(state, level); + } + + if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { + _result += '-'; + } else { + _result += '- '; + } + + _result += state.dump; + } + } + + state.tag = _tag; + state.dump = _result || '[]'; // Empty sequence if no valid values. +} + +function writeFlowMapping(state, level, object) { + var _result = '', + _tag = state.tag, + objectKeyList = Object.keys(object), + index, + length, + objectKey, + objectValue, + pairBuffer; + + for (index = 0, length = objectKeyList.length; index < length; index += 1) { + + pairBuffer = ''; + if (_result !== '') pairBuffer += ', '; + + if (state.condenseFlow) pairBuffer += '"'; + + objectKey = objectKeyList[index]; + objectValue = object[objectKey]; + + if (state.replacer) { + objectValue = state.replacer.call(object, objectKey, objectValue); + } + + if (!writeNode(state, level, objectKey, false, false)) { + continue; // Skip this pair because of invalid key; + } + + if (state.dump.length > 1024) pairBuffer += '? '; + + pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); + + if (!writeNode(state, level, objectValue, false, false)) { + continue; // Skip this pair because of invalid value. + } + + pairBuffer += state.dump; + + // Both key and value are valid. + _result += pairBuffer; + } + + state.tag = _tag; + state.dump = '{' + _result + '}'; +} + +function writeBlockMapping(state, level, object, compact) { + var _result = '', + _tag = state.tag, + objectKeyList = Object.keys(object), + index, + length, + objectKey, + objectValue, + explicitPair, + pairBuffer; + + // Allow sorting keys so that the output file is deterministic + if (state.sortKeys === true) { + // Default sorting + objectKeyList.sort(); + } else if (typeof state.sortKeys === 'function') { + // Custom sort function + objectKeyList.sort(state.sortKeys); + } else if (state.sortKeys) { + // Something is wrong + throw new YAMLException('sortKeys must be a boolean or a function'); + } + + for (index = 0, length = objectKeyList.length; index < length; index += 1) { + pairBuffer = ''; + + if (!compact || _result !== '') { + pairBuffer += generateNextLine(state, level); + } + + objectKey = objectKeyList[index]; + objectValue = object[objectKey]; + + if (state.replacer) { + objectValue = state.replacer.call(object, objectKey, objectValue); + } + + if (!writeNode(state, level + 1, objectKey, true, true, true)) { + continue; // Skip this pair because of invalid key. + } + + explicitPair = (state.tag !== null && state.tag !== '?') || + (state.dump && state.dump.length > 1024); + + if (explicitPair) { + if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { + pairBuffer += '?'; + } else { + pairBuffer += '? '; + } + } + + pairBuffer += state.dump; + + if (explicitPair) { + pairBuffer += generateNextLine(state, level); + } + + if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { + continue; // Skip this pair because of invalid value. + } + + if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { + pairBuffer += ':'; + } else { + pairBuffer += ': '; + } + + pairBuffer += state.dump; + + // Both key and value are valid. + _result += pairBuffer; + } + + state.tag = _tag; + state.dump = _result || '{}'; // Empty mapping if no valid pairs. +} + +function detectType(state, object, explicit) { + var _result, typeList, index, length, type, style; + + typeList = explicit ? state.explicitTypes : state.implicitTypes; + + for (index = 0, length = typeList.length; index < length; index += 1) { + type = typeList[index]; + + if ((type.instanceOf || type.predicate) && + (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && + (!type.predicate || type.predicate(object))) { + + if (explicit) { + if (type.multi && type.representName) { + state.tag = type.representName(object); + } else { + state.tag = type.tag; + } + } else { + state.tag = '?'; + } + + if (type.represent) { + style = state.styleMap[type.tag] || type.defaultStyle; + + if (_toString.call(type.represent) === '[object Function]') { + _result = type.represent(object, style); + } else if (_hasOwnProperty.call(type.represent, style)) { + _result = type.represent[style](object, style); + } else { + throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); + } + + state.dump = _result; + } + + return true; + } + } + + return false; +} + +// Serializes `object` and writes it to global `result`. +// Returns true on success, or false on invalid object. +// +function writeNode(state, level, object, block, compact, iskey, isblockseq) { + state.tag = null; + state.dump = object; + + if (!detectType(state, object, false)) { + detectType(state, object, true); + } + + var type = _toString.call(state.dump); + var inblock = block; + var tagStr; + + if (block) { + block = (state.flowLevel < 0 || state.flowLevel > level); + } + + var objectOrArray = type === '[object Object]' || type === '[object Array]', + duplicateIndex, + duplicate; + + if (objectOrArray) { + duplicateIndex = state.duplicates.indexOf(object); + duplicate = duplicateIndex !== -1; + } + + if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { + compact = false; + } + + if (duplicate && state.usedDuplicates[duplicateIndex]) { + state.dump = '*ref_' + duplicateIndex; + } else { + if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { + state.usedDuplicates[duplicateIndex] = true; + } + if (type === '[object Object]') { + if (block && (Object.keys(state.dump).length !== 0)) { + writeBlockMapping(state, level, state.dump, compact); + if (duplicate) { + state.dump = '&ref_' + duplicateIndex + state.dump; + } + } else { + writeFlowMapping(state, level, state.dump); + if (duplicate) { + state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; + } + } + } else if (type === '[object Array]') { + if (block && (state.dump.length !== 0)) { + if (state.noArrayIndent && !isblockseq && level > 0) { + writeBlockSequence(state, level - 1, state.dump, compact); + } else { + writeBlockSequence(state, level, state.dump, compact); + } + if (duplicate) { + state.dump = '&ref_' + duplicateIndex + state.dump; + } + } else { + writeFlowSequence(state, level, state.dump); + if (duplicate) { + state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; + } + } + } else if (type === '[object String]') { + if (state.tag !== '?') { + writeScalar(state, state.dump, level, iskey, inblock); + } + } else if (type === '[object Undefined]') { + return false; + } else { + if (state.skipInvalid) return false; + throw new YAMLException('unacceptable kind of an object to dump ' + type); + } + + if (state.tag !== null && state.tag !== '?') { + // Need to encode all characters except those allowed by the spec: + // + // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ + // [36] ns-hex-digit ::= ns-dec-digit + // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ + // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ + // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” + // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” + // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” + // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” + // + // Also need to encode '!' because it has special meaning (end of tag prefix). + // + tagStr = encodeURI( + state.tag[0] === '!' ? state.tag.slice(1) : state.tag + ).replace(/!/g, '%21'); + + if (state.tag[0] === '!') { + tagStr = '!' + tagStr; + } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { + tagStr = '!!' + tagStr.slice(18); + } else { + tagStr = '!<' + tagStr + '>'; + } + + state.dump = tagStr + ' ' + state.dump; + } + } + + return true; +} + +function getDuplicateReferences(object, state) { + var objects = [], + duplicatesIndexes = [], + index, + length; + + inspectNode(object, objects, duplicatesIndexes); + + for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { + state.duplicates.push(objects[duplicatesIndexes[index]]); + } + state.usedDuplicates = new Array(length); +} + +function inspectNode(object, objects, duplicatesIndexes) { + var objectKeyList, + index, + length; + + if (object !== null && typeof object === 'object') { + index = objects.indexOf(object); + if (index !== -1) { + if (duplicatesIndexes.indexOf(index) === -1) { + duplicatesIndexes.push(index); + } + } else { + objects.push(object); + + if (Array.isArray(object)) { + for (index = 0, length = object.length; index < length; index += 1) { + inspectNode(object[index], objects, duplicatesIndexes); + } + } else { + objectKeyList = Object.keys(object); + + for (index = 0, length = objectKeyList.length; index < length; index += 1) { + inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); + } + } + } + } +} + +function dump(input, options) { + options = options || {}; + + var state = new State(options); + + if (!state.noRefs) getDuplicateReferences(input, state); + + var value = input; + + if (state.replacer) { + value = state.replacer.call({ '': value }, '', value); + } + + if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; + + return ''; +} + +module.exports.dump = dump; + + +/***/ }), + +/***/ 41691: +/***/ ((module) => { + +"use strict"; +// YAML error class. http://stackoverflow.com/questions/8458984 +// + + + +function formatError(exception, compact) { + var where = '', message = exception.reason || '(unknown reason)'; + + if (!exception.mark) return message; + + if (exception.mark.name) { + where += 'in "' + exception.mark.name + '" '; + } + + where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; + + if (!compact && exception.mark.snippet) { + where += '\n\n' + exception.mark.snippet; + } + + return message + ' ' + where; +} + + +function YAMLException(reason, mark) { + // Super constructor + Error.call(this); + + this.name = 'YAMLException'; + this.reason = reason; + this.mark = mark; + this.message = formatError(this, false); + + // Include stack trace in error object + if (Error.captureStackTrace) { + // Chrome and NodeJS + Error.captureStackTrace(this, this.constructor); + } else { + // FF, IE 10+ and Safari 6+. Fallback for others + this.stack = (new Error()).stack || ''; + } +} + + +// Inherit from Error +YAMLException.prototype = Object.create(Error.prototype); +YAMLException.prototype.constructor = YAMLException; + + +YAMLException.prototype.toString = function toString(compact) { + return this.name + ': ' + formatError(this, compact); +}; + + +module.exports = YAMLException; + + +/***/ }), + +/***/ 15399: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/*eslint-disable max-len,no-use-before-define*/ + +var common = __nccwpck_require__(8629); +var YAMLException = __nccwpck_require__(41691); +var makeSnippet = __nccwpck_require__(59391); +var DEFAULT_SCHEMA = __nccwpck_require__(43189); + + +var _hasOwnProperty = Object.prototype.hasOwnProperty; + + +var CONTEXT_FLOW_IN = 1; +var CONTEXT_FLOW_OUT = 2; +var CONTEXT_BLOCK_IN = 3; +var CONTEXT_BLOCK_OUT = 4; + + +var CHOMPING_CLIP = 1; +var CHOMPING_STRIP = 2; +var CHOMPING_KEEP = 3; + + +var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; +var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; +var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; +var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; +var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; + + +function _class(obj) { return Object.prototype.toString.call(obj); } + +function is_EOL(c) { + return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); +} + +function is_WHITE_SPACE(c) { + return (c === 0x09/* Tab */) || (c === 0x20/* Space */); +} + +function is_WS_OR_EOL(c) { + return (c === 0x09/* Tab */) || + (c === 0x20/* Space */) || + (c === 0x0A/* LF */) || + (c === 0x0D/* CR */); +} + +function is_FLOW_INDICATOR(c) { + return c === 0x2C/* , */ || + c === 0x5B/* [ */ || + c === 0x5D/* ] */ || + c === 0x7B/* { */ || + c === 0x7D/* } */; +} + +function fromHexCode(c) { + var lc; + + if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { + return c - 0x30; + } + + /*eslint-disable no-bitwise*/ + lc = c | 0x20; + + if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { + return lc - 0x61 + 10; + } + + return -1; +} + +function escapedHexLen(c) { + if (c === 0x78/* x */) { return 2; } + if (c === 0x75/* u */) { return 4; } + if (c === 0x55/* U */) { return 8; } + return 0; +} + +function fromDecimalCode(c) { + if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { + return c - 0x30; + } + + return -1; +} + +function simpleEscapeSequence(c) { + /* eslint-disable indent */ + return (c === 0x30/* 0 */) ? '\x00' : + (c === 0x61/* a */) ? '\x07' : + (c === 0x62/* b */) ? '\x08' : + (c === 0x74/* t */) ? '\x09' : + (c === 0x09/* Tab */) ? '\x09' : + (c === 0x6E/* n */) ? '\x0A' : + (c === 0x76/* v */) ? '\x0B' : + (c === 0x66/* f */) ? '\x0C' : + (c === 0x72/* r */) ? '\x0D' : + (c === 0x65/* e */) ? '\x1B' : + (c === 0x20/* Space */) ? ' ' : + (c === 0x22/* " */) ? '\x22' : + (c === 0x2F/* / */) ? '/' : + (c === 0x5C/* \ */) ? '\x5C' : + (c === 0x4E/* N */) ? '\x85' : + (c === 0x5F/* _ */) ? '\xA0' : + (c === 0x4C/* L */) ? '\u2028' : + (c === 0x50/* P */) ? '\u2029' : ''; +} + +function charFromCodepoint(c) { + if (c <= 0xFFFF) { + return String.fromCharCode(c); + } + // Encode UTF-16 surrogate pair + // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF + return String.fromCharCode( + ((c - 0x010000) >> 10) + 0xD800, + ((c - 0x010000) & 0x03FF) + 0xDC00 + ); +} + +// set a property of a literal object, while protecting against prototype pollution, +// see https://github.com/nodeca/js-yaml/issues/164 for more details +function setProperty(object, key, value) { + // used for this specific key only because Object.defineProperty is slow + if (key === '__proto__') { + Object.defineProperty(object, key, { + configurable: true, + enumerable: true, + writable: true, + value: value + }); + } else { + object[key] = value; + } +} + +var simpleEscapeCheck = new Array(256); // integer, for fast access +var simpleEscapeMap = new Array(256); +for (var i = 0; i < 256; i++) { + simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; + simpleEscapeMap[i] = simpleEscapeSequence(i); +} + + +function State(input, options) { + this.input = input; + + this.filename = options['filename'] || null; + this.schema = options['schema'] || DEFAULT_SCHEMA; + this.onWarning = options['onWarning'] || null; + // (Hidden) Remove? makes the loader to expect YAML 1.1 documents + // if such documents have no explicit %YAML directive + this.legacy = options['legacy'] || false; + + this.json = options['json'] || false; + this.listener = options['listener'] || null; + + this.implicitTypes = this.schema.compiledImplicit; + this.typeMap = this.schema.compiledTypeMap; + + this.length = input.length; + this.position = 0; + this.line = 0; + this.lineStart = 0; + this.lineIndent = 0; + + // position of first leading tab in the current line, + // used to make sure there are no tabs in the indentation + this.firstTabInLine = -1; + + this.documents = []; + + /* + this.version; + this.checkLineBreaks; + this.tagMap; + this.anchorMap; + this.tag; + this.anchor; + this.kind; + this.result;*/ + +} + + +function generateError(state, message) { + var mark = { + name: state.filename, + buffer: state.input.slice(0, -1), // omit trailing \0 + position: state.position, + line: state.line, + column: state.position - state.lineStart + }; + + mark.snippet = makeSnippet(mark); + + return new YAMLException(message, mark); +} + +function throwError(state, message) { + throw generateError(state, message); +} + +function throwWarning(state, message) { + if (state.onWarning) { + state.onWarning.call(null, generateError(state, message)); + } +} + + +var directiveHandlers = { + + YAML: function handleYamlDirective(state, name, args) { + + var match, major, minor; + + if (state.version !== null) { + throwError(state, 'duplication of %YAML directive'); + } + + if (args.length !== 1) { + throwError(state, 'YAML directive accepts exactly one argument'); + } + + match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); + + if (match === null) { + throwError(state, 'ill-formed argument of the YAML directive'); + } + + major = parseInt(match[1], 10); + minor = parseInt(match[2], 10); + + if (major !== 1) { + throwError(state, 'unacceptable YAML version of the document'); + } + + state.version = args[0]; + state.checkLineBreaks = (minor < 2); + + if (minor !== 1 && minor !== 2) { + throwWarning(state, 'unsupported YAML version of the document'); + } + }, + + TAG: function handleTagDirective(state, name, args) { + + var handle, prefix; + + if (args.length !== 2) { + throwError(state, 'TAG directive accepts exactly two arguments'); + } + + handle = args[0]; + prefix = args[1]; + + if (!PATTERN_TAG_HANDLE.test(handle)) { + throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); + } + + if (_hasOwnProperty.call(state.tagMap, handle)) { + throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); + } + + if (!PATTERN_TAG_URI.test(prefix)) { + throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); + } + + try { + prefix = decodeURIComponent(prefix); + } catch (err) { + throwError(state, 'tag prefix is malformed: ' + prefix); + } + + state.tagMap[handle] = prefix; + } +}; + + +function captureSegment(state, start, end, checkJson) { + var _position, _length, _character, _result; + + if (start < end) { + _result = state.input.slice(start, end); + + if (checkJson) { + for (_position = 0, _length = _result.length; _position < _length; _position += 1) { + _character = _result.charCodeAt(_position); + if (!(_character === 0x09 || + (0x20 <= _character && _character <= 0x10FFFF))) { + throwError(state, 'expected valid JSON character'); + } + } + } else if (PATTERN_NON_PRINTABLE.test(_result)) { + throwError(state, 'the stream contains non-printable characters'); + } + + state.result += _result; + } +} + +function mergeMappings(state, destination, source, overridableKeys) { + var sourceKeys, key, index, quantity; + + if (!common.isObject(source)) { + throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); + } + + sourceKeys = Object.keys(source); + + for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { + key = sourceKeys[index]; + + if (!_hasOwnProperty.call(destination, key)) { + setProperty(destination, key, source[key]); + overridableKeys[key] = true; + } + } +} + +function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, + startLine, startLineStart, startPos) { + + var index, quantity; + + // The output is a plain object here, so keys can only be strings. + // We need to convert keyNode to a string, but doing so can hang the process + // (deeply nested arrays that explode exponentially using aliases). + if (Array.isArray(keyNode)) { + keyNode = Array.prototype.slice.call(keyNode); + + for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { + if (Array.isArray(keyNode[index])) { + throwError(state, 'nested arrays are not supported inside keys'); + } + + if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { + keyNode[index] = '[object Object]'; + } + } + } + + // Avoid code execution in load() via toString property + // (still use its own toString for arrays, timestamps, + // and whatever user schema extensions happen to have @@toStringTag) + if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { + keyNode = '[object Object]'; + } + + + keyNode = String(keyNode); + + if (_result === null) { + _result = {}; + } + + if (keyTag === 'tag:yaml.org,2002:merge') { + if (Array.isArray(valueNode)) { + for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { + mergeMappings(state, _result, valueNode[index], overridableKeys); + } + } else { + mergeMappings(state, _result, valueNode, overridableKeys); + } + } else { + if (!state.json && + !_hasOwnProperty.call(overridableKeys, keyNode) && + _hasOwnProperty.call(_result, keyNode)) { + state.line = startLine || state.line; + state.lineStart = startLineStart || state.lineStart; + state.position = startPos || state.position; + throwError(state, 'duplicated mapping key'); + } + + setProperty(_result, keyNode, valueNode); + delete overridableKeys[keyNode]; + } + + return _result; +} + +function readLineBreak(state) { + var ch; + + ch = state.input.charCodeAt(state.position); + + if (ch === 0x0A/* LF */) { + state.position++; + } else if (ch === 0x0D/* CR */) { + state.position++; + if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { + state.position++; + } + } else { + throwError(state, 'a line break is expected'); + } + + state.line += 1; + state.lineStart = state.position; + state.firstTabInLine = -1; +} + +function skipSeparationSpace(state, allowComments, checkIndent) { + var lineBreaks = 0, + ch = state.input.charCodeAt(state.position); + + while (ch !== 0) { + while (is_WHITE_SPACE(ch)) { + if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { + state.firstTabInLine = state.position; + } + ch = state.input.charCodeAt(++state.position); + } + + if (allowComments && ch === 0x23/* # */) { + do { + ch = state.input.charCodeAt(++state.position); + } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); + } + + if (is_EOL(ch)) { + readLineBreak(state); + + ch = state.input.charCodeAt(state.position); + lineBreaks++; + state.lineIndent = 0; + + while (ch === 0x20/* Space */) { + state.lineIndent++; + ch = state.input.charCodeAt(++state.position); + } + } else { + break; + } + } + + if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { + throwWarning(state, 'deficient indentation'); + } + + return lineBreaks; +} + +function testDocumentSeparator(state) { + var _position = state.position, + ch; + + ch = state.input.charCodeAt(_position); + + // Condition state.position === state.lineStart is tested + // in parent on each call, for efficiency. No needs to test here again. + if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && + ch === state.input.charCodeAt(_position + 1) && + ch === state.input.charCodeAt(_position + 2)) { + + _position += 3; + + ch = state.input.charCodeAt(_position); + + if (ch === 0 || is_WS_OR_EOL(ch)) { + return true; + } + } + + return false; +} + +function writeFoldedLines(state, count) { + if (count === 1) { + state.result += ' '; + } else if (count > 1) { + state.result += common.repeat('\n', count - 1); + } +} + + +function readPlainScalar(state, nodeIndent, withinFlowCollection) { + var preceding, + following, + captureStart, + captureEnd, + hasPendingContent, + _line, + _lineStart, + _lineIndent, + _kind = state.kind, + _result = state.result, + ch; + + ch = state.input.charCodeAt(state.position); + + if (is_WS_OR_EOL(ch) || + is_FLOW_INDICATOR(ch) || + ch === 0x23/* # */ || + ch === 0x26/* & */ || + ch === 0x2A/* * */ || + ch === 0x21/* ! */ || + ch === 0x7C/* | */ || + ch === 0x3E/* > */ || + ch === 0x27/* ' */ || + ch === 0x22/* " */ || + ch === 0x25/* % */ || + ch === 0x40/* @ */ || + ch === 0x60/* ` */) { + return false; + } + + if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { + following = state.input.charCodeAt(state.position + 1); + + if (is_WS_OR_EOL(following) || + withinFlowCollection && is_FLOW_INDICATOR(following)) { + return false; + } + } + + state.kind = 'scalar'; + state.result = ''; + captureStart = captureEnd = state.position; + hasPendingContent = false; + + while (ch !== 0) { + if (ch === 0x3A/* : */) { + following = state.input.charCodeAt(state.position + 1); + + if (is_WS_OR_EOL(following) || + withinFlowCollection && is_FLOW_INDICATOR(following)) { + break; + } + + } else if (ch === 0x23/* # */) { + preceding = state.input.charCodeAt(state.position - 1); + + if (is_WS_OR_EOL(preceding)) { + break; + } + + } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || + withinFlowCollection && is_FLOW_INDICATOR(ch)) { + break; + + } else if (is_EOL(ch)) { + _line = state.line; + _lineStart = state.lineStart; + _lineIndent = state.lineIndent; + skipSeparationSpace(state, false, -1); + + if (state.lineIndent >= nodeIndent) { + hasPendingContent = true; + ch = state.input.charCodeAt(state.position); + continue; + } else { + state.position = captureEnd; + state.line = _line; + state.lineStart = _lineStart; + state.lineIndent = _lineIndent; + break; + } + } + + if (hasPendingContent) { + captureSegment(state, captureStart, captureEnd, false); + writeFoldedLines(state, state.line - _line); + captureStart = captureEnd = state.position; + hasPendingContent = false; + } + + if (!is_WHITE_SPACE(ch)) { + captureEnd = state.position + 1; + } + + ch = state.input.charCodeAt(++state.position); + } + + captureSegment(state, captureStart, captureEnd, false); + + if (state.result) { + return true; + } + + state.kind = _kind; + state.result = _result; + return false; +} + +function readSingleQuotedScalar(state, nodeIndent) { + var ch, + captureStart, captureEnd; + + ch = state.input.charCodeAt(state.position); + + if (ch !== 0x27/* ' */) { + return false; + } + + state.kind = 'scalar'; + state.result = ''; + state.position++; + captureStart = captureEnd = state.position; + + while ((ch = state.input.charCodeAt(state.position)) !== 0) { + if (ch === 0x27/* ' */) { + captureSegment(state, captureStart, state.position, true); + ch = state.input.charCodeAt(++state.position); + + if (ch === 0x27/* ' */) { + captureStart = state.position; + state.position++; + captureEnd = state.position; + } else { + return true; + } + + } else if (is_EOL(ch)) { + captureSegment(state, captureStart, captureEnd, true); + writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); + captureStart = captureEnd = state.position; + + } else if (state.position === state.lineStart && testDocumentSeparator(state)) { + throwError(state, 'unexpected end of the document within a single quoted scalar'); + + } else { + state.position++; + captureEnd = state.position; + } + } + + throwError(state, 'unexpected end of the stream within a single quoted scalar'); +} + +function readDoubleQuotedScalar(state, nodeIndent) { + var captureStart, + captureEnd, + hexLength, + hexResult, + tmp, + ch; + + ch = state.input.charCodeAt(state.position); + + if (ch !== 0x22/* " */) { + return false; + } + + state.kind = 'scalar'; + state.result = ''; + state.position++; + captureStart = captureEnd = state.position; + + while ((ch = state.input.charCodeAt(state.position)) !== 0) { + if (ch === 0x22/* " */) { + captureSegment(state, captureStart, state.position, true); + state.position++; + return true; + + } else if (ch === 0x5C/* \ */) { + captureSegment(state, captureStart, state.position, true); + ch = state.input.charCodeAt(++state.position); + + if (is_EOL(ch)) { + skipSeparationSpace(state, false, nodeIndent); + + // TODO: rework to inline fn with no type cast? + } else if (ch < 256 && simpleEscapeCheck[ch]) { + state.result += simpleEscapeMap[ch]; + state.position++; + + } else if ((tmp = escapedHexLen(ch)) > 0) { + hexLength = tmp; + hexResult = 0; + + for (; hexLength > 0; hexLength--) { + ch = state.input.charCodeAt(++state.position); + + if ((tmp = fromHexCode(ch)) >= 0) { + hexResult = (hexResult << 4) + tmp; + + } else { + throwError(state, 'expected hexadecimal character'); + } + } + + state.result += charFromCodepoint(hexResult); + + state.position++; + + } else { + throwError(state, 'unknown escape sequence'); + } + + captureStart = captureEnd = state.position; + + } else if (is_EOL(ch)) { + captureSegment(state, captureStart, captureEnd, true); + writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); + captureStart = captureEnd = state.position; + + } else if (state.position === state.lineStart && testDocumentSeparator(state)) { + throwError(state, 'unexpected end of the document within a double quoted scalar'); + + } else { + state.position++; + captureEnd = state.position; + } + } + + throwError(state, 'unexpected end of the stream within a double quoted scalar'); +} + +function readFlowCollection(state, nodeIndent) { + var readNext = true, + _line, + _lineStart, + _pos, + _tag = state.tag, + _result, + _anchor = state.anchor, + following, + terminator, + isPair, + isExplicitPair, + isMapping, + overridableKeys = Object.create(null), + keyNode, + keyTag, + valueNode, + ch; + + ch = state.input.charCodeAt(state.position); + + if (ch === 0x5B/* [ */) { + terminator = 0x5D;/* ] */ + isMapping = false; + _result = []; + } else if (ch === 0x7B/* { */) { + terminator = 0x7D;/* } */ + isMapping = true; + _result = {}; + } else { + return false; + } + + if (state.anchor !== null) { + state.anchorMap[state.anchor] = _result; + } + + ch = state.input.charCodeAt(++state.position); + + while (ch !== 0) { + skipSeparationSpace(state, true, nodeIndent); + + ch = state.input.charCodeAt(state.position); + + if (ch === terminator) { + state.position++; + state.tag = _tag; + state.anchor = _anchor; + state.kind = isMapping ? 'mapping' : 'sequence'; + state.result = _result; + return true; + } else if (!readNext) { + throwError(state, 'missed comma between flow collection entries'); + } else if (ch === 0x2C/* , */) { + // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 + throwError(state, "expected the node content, but found ','"); + } + + keyTag = keyNode = valueNode = null; + isPair = isExplicitPair = false; + + if (ch === 0x3F/* ? */) { + following = state.input.charCodeAt(state.position + 1); + + if (is_WS_OR_EOL(following)) { + isPair = isExplicitPair = true; + state.position++; + skipSeparationSpace(state, true, nodeIndent); + } + } + + _line = state.line; // Save the current line. + _lineStart = state.lineStart; + _pos = state.position; + composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); + keyTag = state.tag; + keyNode = state.result; + skipSeparationSpace(state, true, nodeIndent); + + ch = state.input.charCodeAt(state.position); + + if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { + isPair = true; + ch = state.input.charCodeAt(++state.position); + skipSeparationSpace(state, true, nodeIndent); + composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); + valueNode = state.result; + } + + if (isMapping) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); + } else if (isPair) { + _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); + } else { + _result.push(keyNode); + } + + skipSeparationSpace(state, true, nodeIndent); + + ch = state.input.charCodeAt(state.position); + + if (ch === 0x2C/* , */) { + readNext = true; + ch = state.input.charCodeAt(++state.position); + } else { + readNext = false; + } + } + + throwError(state, 'unexpected end of the stream within a flow collection'); +} + +function readBlockScalar(state, nodeIndent) { + var captureStart, + folding, + chomping = CHOMPING_CLIP, + didReadContent = false, + detectedIndent = false, + textIndent = nodeIndent, + emptyLines = 0, + atMoreIndented = false, + tmp, + ch; + + ch = state.input.charCodeAt(state.position); + + if (ch === 0x7C/* | */) { + folding = false; + } else if (ch === 0x3E/* > */) { + folding = true; + } else { + return false; + } + + state.kind = 'scalar'; + state.result = ''; + + while (ch !== 0) { + ch = state.input.charCodeAt(++state.position); + + if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { + if (CHOMPING_CLIP === chomping) { + chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; + } else { + throwError(state, 'repeat of a chomping mode identifier'); + } + + } else if ((tmp = fromDecimalCode(ch)) >= 0) { + if (tmp === 0) { + throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); + } else if (!detectedIndent) { + textIndent = nodeIndent + tmp - 1; + detectedIndent = true; + } else { + throwError(state, 'repeat of an indentation width identifier'); + } + + } else { + break; + } + } + + if (is_WHITE_SPACE(ch)) { + do { ch = state.input.charCodeAt(++state.position); } + while (is_WHITE_SPACE(ch)); + + if (ch === 0x23/* # */) { + do { ch = state.input.charCodeAt(++state.position); } + while (!is_EOL(ch) && (ch !== 0)); + } + } + + while (ch !== 0) { + readLineBreak(state); + state.lineIndent = 0; + + ch = state.input.charCodeAt(state.position); + + while ((!detectedIndent || state.lineIndent < textIndent) && + (ch === 0x20/* Space */)) { + state.lineIndent++; + ch = state.input.charCodeAt(++state.position); + } + + if (!detectedIndent && state.lineIndent > textIndent) { + textIndent = state.lineIndent; + } + + if (is_EOL(ch)) { + emptyLines++; + continue; + } + + // End of the scalar. + if (state.lineIndent < textIndent) { + + // Perform the chomping. + if (chomping === CHOMPING_KEEP) { + state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); + } else if (chomping === CHOMPING_CLIP) { + if (didReadContent) { // i.e. only if the scalar is not empty. + state.result += '\n'; + } + } + + // Break this `while` cycle and go to the funciton's epilogue. + break; + } + + // Folded style: use fancy rules to handle line breaks. + if (folding) { + + // Lines starting with white space characters (more-indented lines) are not folded. + if (is_WHITE_SPACE(ch)) { + atMoreIndented = true; + // except for the first content line (cf. Example 8.1) + state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); + + // End of more-indented block. + } else if (atMoreIndented) { + atMoreIndented = false; + state.result += common.repeat('\n', emptyLines + 1); + + // Just one line break - perceive as the same line. + } else if (emptyLines === 0) { + if (didReadContent) { // i.e. only if we have already read some scalar content. + state.result += ' '; + } + + // Several line breaks - perceive as different lines. + } else { + state.result += common.repeat('\n', emptyLines); + } + + // Literal style: just add exact number of line breaks between content lines. + } else { + // Keep all line breaks except the header line break. + state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); + } + + didReadContent = true; + detectedIndent = true; + emptyLines = 0; + captureStart = state.position; + + while (!is_EOL(ch) && (ch !== 0)) { + ch = state.input.charCodeAt(++state.position); + } + + captureSegment(state, captureStart, state.position, false); + } + + return true; +} + +function readBlockSequence(state, nodeIndent) { + var _line, + _tag = state.tag, + _anchor = state.anchor, + _result = [], + following, + detected = false, + ch; + + // there is a leading tab before this token, so it can't be a block sequence/mapping; + // it can still be flow sequence/mapping or a scalar + if (state.firstTabInLine !== -1) return false; + + if (state.anchor !== null) { + state.anchorMap[state.anchor] = _result; + } + + ch = state.input.charCodeAt(state.position); + + while (ch !== 0) { + if (state.firstTabInLine !== -1) { + state.position = state.firstTabInLine; + throwError(state, 'tab characters must not be used in indentation'); + } + + if (ch !== 0x2D/* - */) { + break; + } + + following = state.input.charCodeAt(state.position + 1); + + if (!is_WS_OR_EOL(following)) { + break; + } + + detected = true; + state.position++; + + if (skipSeparationSpace(state, true, -1)) { + if (state.lineIndent <= nodeIndent) { + _result.push(null); + ch = state.input.charCodeAt(state.position); + continue; + } + } + + _line = state.line; + composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); + _result.push(state.result); + skipSeparationSpace(state, true, -1); + + ch = state.input.charCodeAt(state.position); + + if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { + throwError(state, 'bad indentation of a sequence entry'); + } else if (state.lineIndent < nodeIndent) { + break; + } + } + + if (detected) { + state.tag = _tag; + state.anchor = _anchor; + state.kind = 'sequence'; + state.result = _result; + return true; + } + return false; +} + +function readBlockMapping(state, nodeIndent, flowIndent) { + var following, + allowCompact, + _line, + _keyLine, + _keyLineStart, + _keyPos, + _tag = state.tag, + _anchor = state.anchor, + _result = {}, + overridableKeys = Object.create(null), + keyTag = null, + keyNode = null, + valueNode = null, + atExplicitKey = false, + detected = false, + ch; + + // there is a leading tab before this token, so it can't be a block sequence/mapping; + // it can still be flow sequence/mapping or a scalar + if (state.firstTabInLine !== -1) return false; + + if (state.anchor !== null) { + state.anchorMap[state.anchor] = _result; + } + + ch = state.input.charCodeAt(state.position); + + while (ch !== 0) { + if (!atExplicitKey && state.firstTabInLine !== -1) { + state.position = state.firstTabInLine; + throwError(state, 'tab characters must not be used in indentation'); + } + + following = state.input.charCodeAt(state.position + 1); + _line = state.line; // Save the current line. + + // + // Explicit notation case. There are two separate blocks: + // first for the key (denoted by "?") and second for the value (denoted by ":") + // + if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { + + if (ch === 0x3F/* ? */) { + if (atExplicitKey) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); + keyTag = keyNode = valueNode = null; + } + + detected = true; + atExplicitKey = true; + allowCompact = true; + + } else if (atExplicitKey) { + // i.e. 0x3A/* : */ === character after the explicit key. + atExplicitKey = false; + allowCompact = true; + + } else { + throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); + } + + state.position += 1; + ch = following; + + // + // Implicit notation case. Flow-style node as the key first, then ":", and the value. + // + } else { + _keyLine = state.line; + _keyLineStart = state.lineStart; + _keyPos = state.position; + + if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { + // Neither implicit nor explicit notation. + // Reading is done. Go to the epilogue. + break; + } + + if (state.line === _line) { + ch = state.input.charCodeAt(state.position); + + while (is_WHITE_SPACE(ch)) { + ch = state.input.charCodeAt(++state.position); + } + + if (ch === 0x3A/* : */) { + ch = state.input.charCodeAt(++state.position); + + if (!is_WS_OR_EOL(ch)) { + throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); + } + + if (atExplicitKey) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); + keyTag = keyNode = valueNode = null; + } + + detected = true; + atExplicitKey = false; + allowCompact = false; + keyTag = state.tag; + keyNode = state.result; + + } else if (detected) { + throwError(state, 'can not read an implicit mapping pair; a colon is missed'); + + } else { + state.tag = _tag; + state.anchor = _anchor; + return true; // Keep the result of `composeNode`. + } + + } else if (detected) { + throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); + + } else { + state.tag = _tag; + state.anchor = _anchor; + return true; // Keep the result of `composeNode`. + } + } + + // + // Common reading code for both explicit and implicit notations. + // + if (state.line === _line || state.lineIndent > nodeIndent) { + if (atExplicitKey) { + _keyLine = state.line; + _keyLineStart = state.lineStart; + _keyPos = state.position; + } + + if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { + if (atExplicitKey) { + keyNode = state.result; + } else { + valueNode = state.result; + } + } + + if (!atExplicitKey) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); + keyTag = keyNode = valueNode = null; + } + + skipSeparationSpace(state, true, -1); + ch = state.input.charCodeAt(state.position); + } + + if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { + throwError(state, 'bad indentation of a mapping entry'); + } else if (state.lineIndent < nodeIndent) { + break; + } + } + + // + // Epilogue. + // + + // Special case: last mapping's node contains only the key in explicit notation. + if (atExplicitKey) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); + } + + // Expose the resulting mapping. + if (detected) { + state.tag = _tag; + state.anchor = _anchor; + state.kind = 'mapping'; + state.result = _result; + } + + return detected; +} + +function readTagProperty(state) { + var _position, + isVerbatim = false, + isNamed = false, + tagHandle, + tagName, + ch; + + ch = state.input.charCodeAt(state.position); + + if (ch !== 0x21/* ! */) return false; + + if (state.tag !== null) { + throwError(state, 'duplication of a tag property'); + } + + ch = state.input.charCodeAt(++state.position); + + if (ch === 0x3C/* < */) { + isVerbatim = true; + ch = state.input.charCodeAt(++state.position); + + } else if (ch === 0x21/* ! */) { + isNamed = true; + tagHandle = '!!'; + ch = state.input.charCodeAt(++state.position); + + } else { + tagHandle = '!'; + } + + _position = state.position; + + if (isVerbatim) { + do { ch = state.input.charCodeAt(++state.position); } + while (ch !== 0 && ch !== 0x3E/* > */); + + if (state.position < state.length) { + tagName = state.input.slice(_position, state.position); + ch = state.input.charCodeAt(++state.position); + } else { + throwError(state, 'unexpected end of the stream within a verbatim tag'); + } + } else { + while (ch !== 0 && !is_WS_OR_EOL(ch)) { + + if (ch === 0x21/* ! */) { + if (!isNamed) { + tagHandle = state.input.slice(_position - 1, state.position + 1); + + if (!PATTERN_TAG_HANDLE.test(tagHandle)) { + throwError(state, 'named tag handle cannot contain such characters'); + } + + isNamed = true; + _position = state.position + 1; + } else { + throwError(state, 'tag suffix cannot contain exclamation marks'); + } + } + + ch = state.input.charCodeAt(++state.position); + } + + tagName = state.input.slice(_position, state.position); + + if (PATTERN_FLOW_INDICATORS.test(tagName)) { + throwError(state, 'tag suffix cannot contain flow indicator characters'); + } + } + + if (tagName && !PATTERN_TAG_URI.test(tagName)) { + throwError(state, 'tag name cannot contain such characters: ' + tagName); + } + + try { + tagName = decodeURIComponent(tagName); + } catch (err) { + throwError(state, 'tag name is malformed: ' + tagName); + } + + if (isVerbatim) { + state.tag = tagName; + + } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) { + state.tag = state.tagMap[tagHandle] + tagName; + + } else if (tagHandle === '!') { + state.tag = '!' + tagName; + + } else if (tagHandle === '!!') { + state.tag = 'tag:yaml.org,2002:' + tagName; + + } else { + throwError(state, 'undeclared tag handle "' + tagHandle + '"'); + } + + return true; +} + +function readAnchorProperty(state) { + var _position, + ch; + + ch = state.input.charCodeAt(state.position); + + if (ch !== 0x26/* & */) return false; + + if (state.anchor !== null) { + throwError(state, 'duplication of an anchor property'); + } + + ch = state.input.charCodeAt(++state.position); + _position = state.position; + + while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { + ch = state.input.charCodeAt(++state.position); + } + + if (state.position === _position) { + throwError(state, 'name of an anchor node must contain at least one character'); + } + + state.anchor = state.input.slice(_position, state.position); + return true; +} + +function readAlias(state) { + var _position, alias, + ch; + + ch = state.input.charCodeAt(state.position); + + if (ch !== 0x2A/* * */) return false; + + ch = state.input.charCodeAt(++state.position); + _position = state.position; + + while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { + ch = state.input.charCodeAt(++state.position); + } + + if (state.position === _position) { + throwError(state, 'name of an alias node must contain at least one character'); + } + + alias = state.input.slice(_position, state.position); + + if (!_hasOwnProperty.call(state.anchorMap, alias)) { + throwError(state, 'unidentified alias "' + alias + '"'); + } + + state.result = state.anchorMap[alias]; + skipSeparationSpace(state, true, -1); + return true; +} + +function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { + var allowBlockStyles, + allowBlockScalars, + allowBlockCollections, + indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { + indentStatus = 1; + } else if (state.lineIndent === parentIndent) { + indentStatus = 0; + } else if (state.lineIndent < parentIndent) { + indentStatus = -1; + } + } + } + + if (indentStatus === 1) { + while (readTagProperty(state) || readAnchorProperty(state)) { + if (skipSeparationSpace(state, true, -1)) { + atNewLine = true; + allowBlockCollections = allowBlockStyles; + + if (state.lineIndent > parentIndent) { + indentStatus = 1; + } else if (state.lineIndent === parentIndent) { + indentStatus = 0; + } else if (state.lineIndent < parentIndent) { + indentStatus = -1; + } + } else { + allowBlockCollections = false; + } + } + } + + if (allowBlockCollections) { + allowBlockCollections = atNewLine || allowCompact; + } + + if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { + if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { + flowIndent = parentIndent; + } else { + flowIndent = parentIndent + 1; + } + + blockIndent = state.position - state.lineStart; + + if (indentStatus === 1) { + if (allowBlockCollections && + (readBlockSequence(state, blockIndent) || + readBlockMapping(state, blockIndent, flowIndent)) || + readFlowCollection(state, flowIndent)) { + hasContent = true; + } else { + if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || + readSingleQuotedScalar(state, flowIndent) || + readDoubleQuotedScalar(state, flowIndent)) { + hasContent = true; + + } else if (readAlias(state)) { + hasContent = true; + + if (state.tag !== null || state.anchor !== null) { + throwError(state, 'alias node should not have any properties'); + } + + } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { + hasContent = true; + + if (state.tag === null) { + state.tag = '?'; + } + } + + if (state.anchor !== null) { + state.anchorMap[state.anchor] = state.result; + } + } + } else if (indentStatus === 0) { + // Special case: block sequences are allowed to have same indentation level as the parent. + // http://www.yaml.org/spec/1.2/spec.html#id2799784 + hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); + } + } + + if (state.tag === null) { + if (state.anchor !== null) { + state.anchorMap[state.anchor] = state.result; + } + + } else if (state.tag === '?') { + // Implicit resolving is not allowed for non-scalar types, and '?' + // non-specific tag is only automatically assigned to plain scalars. + // + // We only need to check kind conformity in case user explicitly assigns '?' + // tag, for example like this: "! [0]" + // + if (state.result !== null && state.kind !== 'scalar') { + throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); + } + + for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { + type = state.implicitTypes[typeIndex]; + + if (type.resolve(state.result)) { // `state.result` updated in resolver if matched + state.result = type.construct(state.result); + state.tag = type.tag; + if (state.anchor !== null) { + state.anchorMap[state.anchor] = state.result; + } + break; + } + } + } else if (state.tag !== '!') { + if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) { + type = state.typeMap[state.kind || 'fallback'][state.tag]; + } else { + // looking for multi type + type = null; + typeList = state.typeMap.multi[state.kind || 'fallback']; + + for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { + if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { + type = typeList[typeIndex]; + break; + } + } + } + + if (!type) { + throwError(state, 'unknown tag !<' + state.tag + '>'); + } + + if (state.result !== null && type.kind !== state.kind) { + throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); + } + + if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched + throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); + } else { + state.result = type.construct(state.result, state.tag); + if (state.anchor !== null) { + state.anchorMap[state.anchor] = state.result; + } + } + } + + if (state.listener !== null) { + state.listener('close', state); + } + return state.tag !== null || state.anchor !== null || hasContent; +} + +function readDocument(state) { + var documentStart = state.position, + _position, + directiveName, + directiveArgs, + hasDirectives = false, + ch; + + state.version = null; + state.checkLineBreaks = state.legacy; + state.tagMap = Object.create(null); + state.anchorMap = Object.create(null); + + while ((ch = state.input.charCodeAt(state.position)) !== 0) { + skipSeparationSpace(state, true, -1); + + ch = state.input.charCodeAt(state.position); + + if (state.lineIndent > 0 || ch !== 0x25/* % */) { + break; + } + + hasDirectives = true; + ch = state.input.charCodeAt(++state.position); + _position = state.position; + + while (ch !== 0 && !is_WS_OR_EOL(ch)) { + ch = state.input.charCodeAt(++state.position); + } + + directiveName = state.input.slice(_position, state.position); + directiveArgs = []; + + if (directiveName.length < 1) { + throwError(state, 'directive name must not be less than one character in length'); + } + + while (ch !== 0) { + while (is_WHITE_SPACE(ch)) { + ch = state.input.charCodeAt(++state.position); + } + + if (ch === 0x23/* # */) { + do { ch = state.input.charCodeAt(++state.position); } + while (ch !== 0 && !is_EOL(ch)); + break; + } + + if (is_EOL(ch)) break; + + _position = state.position; + + while (ch !== 0 && !is_WS_OR_EOL(ch)) { + ch = state.input.charCodeAt(++state.position); + } + + directiveArgs.push(state.input.slice(_position, state.position)); + } + + if (ch !== 0) readLineBreak(state); + + if (_hasOwnProperty.call(directiveHandlers, directiveName)) { + directiveHandlers[directiveName](state, directiveName, directiveArgs); + } else { + throwWarning(state, 'unknown document directive "' + directiveName + '"'); + } + } + + skipSeparationSpace(state, true, -1); + + if (state.lineIndent === 0 && + state.input.charCodeAt(state.position) === 0x2D/* - */ && + state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && + state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { + state.position += 3; + skipSeparationSpace(state, true, -1); + + } else if (hasDirectives) { + throwError(state, 'directives end mark is expected'); + } + + composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); + skipSeparationSpace(state, true, -1); + + if (state.checkLineBreaks && + PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { + throwWarning(state, 'non-ASCII line breaks are interpreted as content'); + } + + state.documents.push(state.result); + + if (state.position === state.lineStart && testDocumentSeparator(state)) { + + if (state.input.charCodeAt(state.position) === 0x2E/* . */) { + state.position += 3; + skipSeparationSpace(state, true, -1); + } + return; + } + + if (state.position < (state.length - 1)) { + throwError(state, 'end of the stream or a document separator is expected'); + } else { + return; + } +} + + +function loadDocuments(input, options) { + input = String(input); + options = options || {}; + + if (input.length !== 0) { + + // Add tailing `\n` if not exists + if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && + input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { + input += '\n'; + } + + // Strip BOM + if (input.charCodeAt(0) === 0xFEFF) { + input = input.slice(1); + } + } + + var state = new State(input, options); + + var nullpos = input.indexOf('\0'); + + if (nullpos !== -1) { + state.position = nullpos; + throwError(state, 'null byte is not allowed in input'); + } + + // Use 0 as string terminator. That significantly simplifies bounds check. + state.input += '\0'; + + while (state.input.charCodeAt(state.position) === 0x20/* Space */) { + state.lineIndent += 1; + state.position += 1; + } + + while (state.position < (state.length - 1)) { + readDocument(state); + } + + return state.documents; +} + + +function loadAll(input, iterator, options) { + if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { + options = iterator; + iterator = null; + } + + var documents = loadDocuments(input, options); + + if (typeof iterator !== 'function') { + return documents; + } + + for (var index = 0, length = documents.length; index < length; index += 1) { + iterator(documents[index]); + } +} + + +function load(input, options) { + var documents = loadDocuments(input, options); + + if (documents.length === 0) { + /*eslint-disable no-undefined*/ + return undefined; + } else if (documents.length === 1) { + return documents[0]; + } + throw new YAMLException('expected a single document in the stream, but found more'); +} + + +module.exports.loadAll = loadAll; +module.exports.load = load; + + +/***/ }), + +/***/ 81891: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/*eslint-disable max-len*/ + +var YAMLException = __nccwpck_require__(41691); +var Type = __nccwpck_require__(38792); + + +function compileList(schema, name) { + var result = []; + + schema[name].forEach(function (currentType) { + var newIndex = result.length; + + result.forEach(function (previousType, previousIndex) { + if (previousType.tag === currentType.tag && + previousType.kind === currentType.kind && + previousType.multi === currentType.multi) { + + newIndex = previousIndex; + } + }); + + result[newIndex] = currentType; + }); + + return result; +} + + +function compileMap(/* lists... */) { + var result = { + scalar: {}, + sequence: {}, + mapping: {}, + fallback: {}, + multi: { + scalar: [], + sequence: [], + mapping: [], + fallback: [] + } + }, index, length; + + function collectType(type) { + if (type.multi) { + result.multi[type.kind].push(type); + result.multi['fallback'].push(type); + } else { + result[type.kind][type.tag] = result['fallback'][type.tag] = type; + } + } + + for (index = 0, length = arguments.length; index < length; index += 1) { + arguments[index].forEach(collectType); + } + return result; +} + + +function Schema(definition) { + return this.extend(definition); +} + + +Schema.prototype.extend = function extend(definition) { + var implicit = []; + var explicit = []; + + if (definition instanceof Type) { + // Schema.extend(type) + explicit.push(definition); + + } else if (Array.isArray(definition)) { + // Schema.extend([ type1, type2, ... ]) + explicit = explicit.concat(definition); + + } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { + // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) + if (definition.implicit) implicit = implicit.concat(definition.implicit); + if (definition.explicit) explicit = explicit.concat(definition.explicit); + + } else { + throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' + + 'or a schema definition ({ implicit: [...], explicit: [...] })'); + } + + implicit.forEach(function (type) { + if (!(type instanceof Type)) { + throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); + } + + if (type.loadKind && type.loadKind !== 'scalar') { + throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); + } + + if (type.multi) { + throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); + } + }); + + explicit.forEach(function (type) { + if (!(type instanceof Type)) { + throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); + } + }); + + var result = Object.create(Schema.prototype); + + result.implicit = (this.implicit || []).concat(implicit); + result.explicit = (this.explicit || []).concat(explicit); + + result.compiledImplicit = compileList(result, 'implicit'); + result.compiledExplicit = compileList(result, 'explicit'); + result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); + + return result; +}; + + +module.exports = Schema; + + +/***/ }), + +/***/ 97845: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Standard YAML's Core schema. +// http://www.yaml.org/spec/1.2/spec.html#id2804923 +// +// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. +// So, Core schema has no distinctions from JSON schema is JS-YAML. + + + + + +module.exports = __nccwpck_require__(85092); + + +/***/ }), + +/***/ 43189: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// JS-YAML's default schema for `safeLoad` function. +// It is not described in the YAML specification. +// +// This schema is based on standard YAML's Core schema and includes most of +// extra types described at YAML tag repository. (http://yaml.org/type/) + + + + + +module.exports = (__nccwpck_require__(97845).extend)({ + implicit: [ + __nccwpck_require__(84347), + __nccwpck_require__(7455) + ], + explicit: [ + __nccwpck_require__(76770), + __nccwpck_require__(30398), + __nccwpck_require__(38546), + __nccwpck_require__(15003) + ] +}); + + +/***/ }), + +/***/ 71067: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Standard YAML's Failsafe schema. +// http://www.yaml.org/spec/1.2/spec.html#id2802346 + + + + + +var Schema = __nccwpck_require__(81891); + + +module.exports = new Schema({ + explicit: [ + __nccwpck_require__(80712), + __nccwpck_require__(82856), + __nccwpck_require__(55773) + ] +}); + + +/***/ }), + +/***/ 85092: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Standard YAML's JSON schema. +// http://www.yaml.org/spec/1.2/spec.html#id2803231 +// +// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. +// So, this schema is not such strict as defined in the YAML specification. +// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. + + + + + +module.exports = (__nccwpck_require__(71067).extend)({ + implicit: [ + __nccwpck_require__(11210), + __nccwpck_require__(83915), + __nccwpck_require__(86182), + __nccwpck_require__(24281) + ] +}); + + +/***/ }), + +/***/ 59391: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + + +var common = __nccwpck_require__(8629); + + +// get snippet for a single line, respecting maxLength +function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { + var head = ''; + var tail = ''; + var maxHalfLength = Math.floor(maxLineLength / 2) - 1; + + if (position - lineStart > maxHalfLength) { + head = ' ... '; + lineStart = position - maxHalfLength + head.length; + } + + if (lineEnd - position > maxHalfLength) { + tail = ' ...'; + lineEnd = position + maxHalfLength - tail.length; + } + + return { + str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, + pos: position - lineStart + head.length // relative position + }; +} + + +function padStart(string, max) { + return common.repeat(' ', max - string.length) + string; +} + + +function makeSnippet(mark, options) { + options = Object.create(options || null); + + if (!mark.buffer) return null; + + if (!options.maxLength) options.maxLength = 79; + if (typeof options.indent !== 'number') options.indent = 1; + if (typeof options.linesBefore !== 'number') options.linesBefore = 3; + if (typeof options.linesAfter !== 'number') options.linesAfter = 2; + + var re = /\r?\n|\r|\0/g; + var lineStarts = [ 0 ]; + var lineEnds = []; + var match; + var foundLineNo = -1; + + while ((match = re.exec(mark.buffer))) { + lineEnds.push(match.index); + lineStarts.push(match.index + match[0].length); + + if (mark.position <= match.index && foundLineNo < 0) { + foundLineNo = lineStarts.length - 2; + } + } + + if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; + + var result = '', i, line; + var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; + var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); + + for (i = 1; i <= options.linesBefore; i++) { + if (foundLineNo - i < 0) break; + line = getLine( + mark.buffer, + lineStarts[foundLineNo - i], + lineEnds[foundLineNo - i], + mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), + maxLineLength + ); + result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + + ' | ' + line.str + '\n' + result; + } + + line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); + result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + + ' | ' + line.str + '\n'; + result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; + + for (i = 1; i <= options.linesAfter; i++) { + if (foundLineNo + i >= lineEnds.length) break; + line = getLine( + mark.buffer, + lineStarts[foundLineNo + i], + lineEnds[foundLineNo + i], + mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), + maxLineLength + ); + result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + + ' | ' + line.str + '\n'; + } + + return result.replace(/\n$/, ''); +} + + +module.exports = makeSnippet; + + +/***/ }), + +/***/ 38792: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var YAMLException = __nccwpck_require__(41691); + +var TYPE_CONSTRUCTOR_OPTIONS = [ + 'kind', + 'multi', + 'resolve', + 'construct', + 'instanceOf', + 'predicate', + 'represent', + 'representName', + 'defaultStyle', + 'styleAliases' +]; + +var YAML_NODE_KINDS = [ + 'scalar', + 'sequence', + 'mapping' +]; + +function compileStyleAliases(map) { + var result = {}; + + if (map !== null) { + Object.keys(map).forEach(function (style) { + map[style].forEach(function (alias) { + result[String(alias)] = style; + }); + }); + } + + return result; +} + +function Type(tag, options) { + options = options || {}; + + Object.keys(options).forEach(function (name) { + if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { + throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); + } + }); + + // TODO: Add tag format check. + this.options = options; // keep original options in case user wants to extend this type later + this.tag = tag; + this.kind = options['kind'] || null; + this.resolve = options['resolve'] || function () { return true; }; + this.construct = options['construct'] || function (data) { return data; }; + this.instanceOf = options['instanceOf'] || null; + this.predicate = options['predicate'] || null; + this.represent = options['represent'] || null; + this.representName = options['representName'] || null; + this.defaultStyle = options['defaultStyle'] || null; + this.multi = options['multi'] || false; + this.styleAliases = compileStyleAliases(options['styleAliases'] || null); + + if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { + throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); + } +} + +module.exports = Type; + + +/***/ }), + +/***/ 76770: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/*eslint-disable no-bitwise*/ + + +var Type = __nccwpck_require__(38792); + + +// [ 64, 65, 66 ] -> [ padding, CR, LF ] +var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; + + +function resolveYamlBinary(data) { + if (data === null) return false; + + var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; + + // Convert one by one. + for (idx = 0; idx < max; idx++) { + code = map.indexOf(data.charAt(idx)); + + // Skip CR/LF + if (code > 64) continue; + + // Fail on illegal characters + if (code < 0) return false; + + bitlen += 6; + } + + // If there are any bits left, source was corrupted + return (bitlen % 8) === 0; +} + +function constructYamlBinary(data) { + var idx, tailbits, + input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan + max = input.length, + map = BASE64_MAP, + bits = 0, + result = []; + + // Collect by 6*4 bits (3 bytes) + + for (idx = 0; idx < max; idx++) { + if ((idx % 4 === 0) && idx) { + result.push((bits >> 16) & 0xFF); + result.push((bits >> 8) & 0xFF); + result.push(bits & 0xFF); + } + + bits = (bits << 6) | map.indexOf(input.charAt(idx)); + } + + // Dump tail + + tailbits = (max % 4) * 6; + + if (tailbits === 0) { + result.push((bits >> 16) & 0xFF); + result.push((bits >> 8) & 0xFF); + result.push(bits & 0xFF); + } else if (tailbits === 18) { + result.push((bits >> 10) & 0xFF); + result.push((bits >> 2) & 0xFF); + } else if (tailbits === 12) { + result.push((bits >> 4) & 0xFF); + } + + return new Uint8Array(result); +} + +function representYamlBinary(object /*, style*/) { + var result = '', bits = 0, idx, tail, + max = object.length, + map = BASE64_MAP; + + // Convert every three bytes to 4 ASCII characters. + + for (idx = 0; idx < max; idx++) { + if ((idx % 3 === 0) && idx) { + result += map[(bits >> 18) & 0x3F]; + result += map[(bits >> 12) & 0x3F]; + result += map[(bits >> 6) & 0x3F]; + result += map[bits & 0x3F]; + } + + bits = (bits << 8) + object[idx]; + } + + // Dump tail + + tail = max % 3; + + if (tail === 0) { + result += map[(bits >> 18) & 0x3F]; + result += map[(bits >> 12) & 0x3F]; + result += map[(bits >> 6) & 0x3F]; + result += map[bits & 0x3F]; + } else if (tail === 2) { + result += map[(bits >> 10) & 0x3F]; + result += map[(bits >> 4) & 0x3F]; + result += map[(bits << 2) & 0x3F]; + result += map[64]; + } else if (tail === 1) { + result += map[(bits >> 2) & 0x3F]; + result += map[(bits << 4) & 0x3F]; + result += map[64]; + result += map[64]; + } + + return result; +} + +function isBinary(obj) { + return Object.prototype.toString.call(obj) === '[object Uint8Array]'; +} + +module.exports = new Type('tag:yaml.org,2002:binary', { + kind: 'scalar', + resolve: resolveYamlBinary, + construct: constructYamlBinary, + predicate: isBinary, + represent: representYamlBinary +}); + + +/***/ }), + +/***/ 83915: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +function resolveYamlBoolean(data) { + if (data === null) return false; + + var max = data.length; + + return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || + (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); +} + +function constructYamlBoolean(data) { + return data === 'true' || + data === 'True' || + data === 'TRUE'; +} + +function isBoolean(object) { + return Object.prototype.toString.call(object) === '[object Boolean]'; +} + +module.exports = new Type('tag:yaml.org,2002:bool', { + kind: 'scalar', + resolve: resolveYamlBoolean, + construct: constructYamlBoolean, + predicate: isBoolean, + represent: { + lowercase: function (object) { return object ? 'true' : 'false'; }, + uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, + camelcase: function (object) { return object ? 'True' : 'False'; } + }, + defaultStyle: 'lowercase' +}); + + +/***/ }), + +/***/ 24281: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var common = __nccwpck_require__(8629); +var Type = __nccwpck_require__(38792); + +var YAML_FLOAT_PATTERN = new RegExp( + // 2.5e4, 2.5 and integers + '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + + // .2e4, .2 + // special case, seems not from spec + '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + + // .inf + '|[-+]?\\.(?:inf|Inf|INF)' + + // .nan + '|\\.(?:nan|NaN|NAN))$'); + +function resolveYamlFloat(data) { + if (data === null) return false; + + if (!YAML_FLOAT_PATTERN.test(data) || + // Quick hack to not allow integers end with `_` + // Probably should update regexp & check speed + data[data.length - 1] === '_') { + return false; + } + + return true; +} + +function constructYamlFloat(data) { + var value, sign; + + value = data.replace(/_/g, '').toLowerCase(); + sign = value[0] === '-' ? -1 : 1; + + if ('+-'.indexOf(value[0]) >= 0) { + value = value.slice(1); + } + + if (value === '.inf') { + return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; + + } else if (value === '.nan') { + return NaN; + } + return sign * parseFloat(value, 10); +} + + +var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; + +function representYamlFloat(object, style) { + var res; + + if (isNaN(object)) { + switch (style) { + case 'lowercase': return '.nan'; + case 'uppercase': return '.NAN'; + case 'camelcase': return '.NaN'; + } + } else if (Number.POSITIVE_INFINITY === object) { + switch (style) { + case 'lowercase': return '.inf'; + case 'uppercase': return '.INF'; + case 'camelcase': return '.Inf'; + } + } else if (Number.NEGATIVE_INFINITY === object) { + switch (style) { + case 'lowercase': return '-.inf'; + case 'uppercase': return '-.INF'; + case 'camelcase': return '-.Inf'; + } + } else if (common.isNegativeZero(object)) { + return '-0.0'; + } + + res = object.toString(10); + + // JS stringifier can build scientific format without dots: 5e-100, + // while YAML requres dot: 5.e-100. Fix it with simple hack + + return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; +} + +function isFloat(object) { + return (Object.prototype.toString.call(object) === '[object Number]') && + (object % 1 !== 0 || common.isNegativeZero(object)); +} + +module.exports = new Type('tag:yaml.org,2002:float', { + kind: 'scalar', + resolve: resolveYamlFloat, + construct: constructYamlFloat, + predicate: isFloat, + represent: representYamlFloat, + defaultStyle: 'lowercase' +}); + + +/***/ }), + +/***/ 86182: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var common = __nccwpck_require__(8629); +var Type = __nccwpck_require__(38792); + +function isHexCode(c) { + return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || + ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || + ((0x61/* a */ <= c) && (c <= 0x66/* f */)); +} + +function isOctCode(c) { + return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); +} + +function isDecCode(c) { + return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); +} + +function resolveYamlInteger(data) { + if (data === null) return false; + + var max = data.length, + index = 0, + hasDigits = false, + ch; + + if (!max) return false; + + ch = data[index]; + + // sign + if (ch === '-' || ch === '+') { + ch = data[++index]; + } + + if (ch === '0') { + // 0 + if (index + 1 === max) return true; + ch = data[++index]; + + // base 2, base 8, base 16 + + if (ch === 'b') { + // base 2 + index++; + + for (; index < max; index++) { + ch = data[index]; + if (ch === '_') continue; + if (ch !== '0' && ch !== '1') return false; + hasDigits = true; + } + return hasDigits && ch !== '_'; + } + + + if (ch === 'x') { + // base 16 + index++; + + for (; index < max; index++) { + ch = data[index]; + if (ch === '_') continue; + if (!isHexCode(data.charCodeAt(index))) return false; + hasDigits = true; + } + return hasDigits && ch !== '_'; + } + + + if (ch === 'o') { + // base 8 + index++; + + for (; index < max; index++) { + ch = data[index]; + if (ch === '_') continue; + if (!isOctCode(data.charCodeAt(index))) return false; + hasDigits = true; + } + return hasDigits && ch !== '_'; + } + } + + // base 10 (except 0) + + // value should not start with `_`; + if (ch === '_') return false; + + for (; index < max; index++) { + ch = data[index]; + if (ch === '_') continue; + if (!isDecCode(data.charCodeAt(index))) { + return false; + } + hasDigits = true; + } + + // Should have digits and should not end with `_` + if (!hasDigits || ch === '_') return false; + + return true; +} + +function constructYamlInteger(data) { + var value = data, sign = 1, ch; + + if (value.indexOf('_') !== -1) { + value = value.replace(/_/g, ''); + } + + ch = value[0]; + + if (ch === '-' || ch === '+') { + if (ch === '-') sign = -1; + value = value.slice(1); + ch = value[0]; + } + + if (value === '0') return 0; + + if (ch === '0') { + if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); + if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); + if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); + } + + return sign * parseInt(value, 10); +} + +function isInteger(object) { + return (Object.prototype.toString.call(object)) === '[object Number]' && + (object % 1 === 0 && !common.isNegativeZero(object)); +} + +module.exports = new Type('tag:yaml.org,2002:int', { + kind: 'scalar', + resolve: resolveYamlInteger, + construct: constructYamlInteger, + predicate: isInteger, + represent: { + binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, + octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, + decimal: function (obj) { return obj.toString(10); }, + /* eslint-disable max-len */ + hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } + }, + defaultStyle: 'decimal', + styleAliases: { + binary: [ 2, 'bin' ], + octal: [ 8, 'oct' ], + decimal: [ 10, 'dec' ], + hexadecimal: [ 16, 'hex' ] + } +}); + + +/***/ }), + +/***/ 55773: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +module.exports = new Type('tag:yaml.org,2002:map', { + kind: 'mapping', + construct: function (data) { return data !== null ? data : {}; } +}); + + +/***/ }), + +/***/ 7455: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +function resolveYamlMerge(data) { + return data === '<<' || data === null; +} + +module.exports = new Type('tag:yaml.org,2002:merge', { + kind: 'scalar', + resolve: resolveYamlMerge +}); + + +/***/ }), + +/***/ 11210: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +function resolveYamlNull(data) { + if (data === null) return true; + + var max = data.length; + + return (max === 1 && data === '~') || + (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); +} + +function constructYamlNull() { + return null; +} + +function isNull(object) { + return object === null; +} + +module.exports = new Type('tag:yaml.org,2002:null', { + kind: 'scalar', + resolve: resolveYamlNull, + construct: constructYamlNull, + predicate: isNull, + represent: { + canonical: function () { return '~'; }, + lowercase: function () { return 'null'; }, + uppercase: function () { return 'NULL'; }, + camelcase: function () { return 'Null'; }, + empty: function () { return ''; } + }, + defaultStyle: 'lowercase' +}); + + +/***/ }), + +/***/ 30398: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +var _hasOwnProperty = Object.prototype.hasOwnProperty; +var _toString = Object.prototype.toString; + +function resolveYamlOmap(data) { + if (data === null) return true; + + var objectKeys = [], index, length, pair, pairKey, pairHasKey, + object = data; + + for (index = 0, length = object.length; index < length; index += 1) { + pair = object[index]; + pairHasKey = false; + + if (_toString.call(pair) !== '[object Object]') return false; + + for (pairKey in pair) { + if (_hasOwnProperty.call(pair, pairKey)) { + if (!pairHasKey) pairHasKey = true; + else return false; + } + } + + if (!pairHasKey) return false; + + if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); + else return false; + } + + return true; +} + +function constructYamlOmap(data) { + return data !== null ? data : []; +} + +module.exports = new Type('tag:yaml.org,2002:omap', { + kind: 'sequence', + resolve: resolveYamlOmap, + construct: constructYamlOmap +}); + + +/***/ }), + +/***/ 38546: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +var _toString = Object.prototype.toString; + +function resolveYamlPairs(data) { + if (data === null) return true; + + var index, length, pair, keys, result, + object = data; + + result = new Array(object.length); + + for (index = 0, length = object.length; index < length; index += 1) { + pair = object[index]; + + if (_toString.call(pair) !== '[object Object]') return false; + + keys = Object.keys(pair); + + if (keys.length !== 1) return false; + + result[index] = [ keys[0], pair[keys[0]] ]; + } + + return true; +} + +function constructYamlPairs(data) { + if (data === null) return []; + + var index, length, pair, keys, result, + object = data; + + result = new Array(object.length); + + for (index = 0, length = object.length; index < length; index += 1) { + pair = object[index]; + + keys = Object.keys(pair); + + result[index] = [ keys[0], pair[keys[0]] ]; + } + + return result; +} + +module.exports = new Type('tag:yaml.org,2002:pairs', { + kind: 'sequence', + resolve: resolveYamlPairs, + construct: constructYamlPairs +}); + + +/***/ }), + +/***/ 82856: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +module.exports = new Type('tag:yaml.org,2002:seq', { + kind: 'sequence', + construct: function (data) { return data !== null ? data : []; } +}); + + +/***/ }), + +/***/ 15003: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +var _hasOwnProperty = Object.prototype.hasOwnProperty; + +function resolveYamlSet(data) { + if (data === null) return true; + + var key, object = data; + + for (key in object) { + if (_hasOwnProperty.call(object, key)) { + if (object[key] !== null) return false; + } + } + + return true; +} + +function constructYamlSet(data) { + return data !== null ? data : {}; +} + +module.exports = new Type('tag:yaml.org,2002:set', { + kind: 'mapping', + resolve: resolveYamlSet, + construct: constructYamlSet +}); + + +/***/ }), + +/***/ 80712: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +module.exports = new Type('tag:yaml.org,2002:str', { + kind: 'scalar', + construct: function (data) { return data !== null ? data : ''; } +}); + + +/***/ }), + +/***/ 84347: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Type = __nccwpck_require__(38792); + +var YAML_DATE_REGEXP = new RegExp( + '^([0-9][0-9][0-9][0-9])' + // [1] year + '-([0-9][0-9])' + // [2] month + '-([0-9][0-9])$'); // [3] day + +var YAML_TIMESTAMP_REGEXP = new RegExp( + '^([0-9][0-9][0-9][0-9])' + // [1] year + '-([0-9][0-9]?)' + // [2] month + '-([0-9][0-9]?)' + // [3] day + '(?:[Tt]|[ \\t]+)' + // ... + '([0-9][0-9]?)' + // [4] hour + ':([0-9][0-9])' + // [5] minute + ':([0-9][0-9])' + // [6] second + '(?:\\.([0-9]*))?' + // [7] fraction + '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour + '(?::([0-9][0-9]))?))?$'); // [11] tz_minute + +function resolveYamlTimestamp(data) { + if (data === null) return false; + if (YAML_DATE_REGEXP.exec(data) !== null) return true; + if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; + return false; +} + +function constructYamlTimestamp(data) { + var match, year, month, day, hour, minute, second, fraction = 0, + delta = null, tz_hour, tz_minute, date; + + match = YAML_DATE_REGEXP.exec(data); + if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); + + if (match === null) throw new Error('Date resolve error'); + + // match: [1] year [2] month [3] day + + year = +(match[1]); + month = +(match[2]) - 1; // JS month starts with 0 + day = +(match[3]); + + if (!match[4]) { // no hour + return new Date(Date.UTC(year, month, day)); + } + + // match: [4] hour [5] minute [6] second [7] fraction + + hour = +(match[4]); + minute = +(match[5]); + second = +(match[6]); + + if (match[7]) { + fraction = match[7].slice(0, 3); + while (fraction.length < 3) { // milli-seconds + fraction += '0'; + } + fraction = +fraction; + } + + // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute + + if (match[9]) { + tz_hour = +(match[10]); + tz_minute = +(match[11] || 0); + delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds + if (match[9] === '-') delta = -delta; + } + + date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); + + if (delta) date.setTime(date.getTime() - delta); + + return date; +} + +function representYamlTimestamp(object /*, style*/) { + return object.toISOString(); +} + +module.exports = new Type('tag:yaml.org,2002:timestamp', { + kind: 'scalar', + resolve: resolveYamlTimestamp, + construct: constructYamlTimestamp, + instanceOf: Date, + represent: representYamlTimestamp +}); + + +/***/ }), + +/***/ 18857: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var json_stringify = (__nccwpck_require__(18088).stringify); +var json_parse = __nccwpck_require__(53414); + +module.exports = function(options) { + return { + parse: json_parse(options), + stringify: json_stringify + } +}; +//create the default method members with no options applied for backwards compatibility +module.exports.parse = json_parse(); +module.exports.stringify = json_stringify; + + +/***/ }), + +/***/ 53414: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var BigNumber = null; + +// regexpxs extracted from +// (c) BSD-3-Clause +// https://github.com/fastify/secure-json-parse/graphs/contributors and https://github.com/hapijs/bourne/graphs/contributors + +const suspectProtoRx = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/; +const suspectConstructorRx = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/; + +/* + json_parse.js + 2012-06-20 + + Public Domain. + + NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + + This file creates a json_parse function. + During create you can (optionally) specify some behavioural switches + + require('json-bigint')(options) + + The optional options parameter holds switches that drive certain + aspects of the parsing process: + * options.strict = true will warn about duplicate-key usage in the json. + The default (strict = false) will silently ignore those and overwrite + values for keys that are in duplicate use. + + The resulting function follows this signature: + json_parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = json_parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + This is a reference implementation. You are free to copy, modify, or + redistribute. + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. +*/ + +/*members "", "\"", "\/", "\\", at, b, call, charAt, f, fromCharCode, + hasOwnProperty, message, n, name, prototype, push, r, t, text +*/ + +var json_parse = function (options) { + 'use strict'; + + // This is a function that can parse a JSON text, producing a JavaScript + // data structure. It is a simple, recursive descent parser. It does not use + // eval or regular expressions, so it can be used as a model for implementing + // a JSON parser in other languages. + + // We are defining the function inside of another function to avoid creating + // global variables. + + // Default options one can override by passing options to the parse() + var _options = { + strict: false, // not being strict means do not generate syntax errors for "duplicate key" + storeAsString: false, // toggles whether the values should be stored as BigNumber (default) or a string + alwaysParseAsBig: false, // toggles whether all numbers should be Big + useNativeBigInt: false, // toggles whether to use native BigInt instead of bignumber.js + protoAction: 'error', + constructorAction: 'error', + }; + + // If there are options, then use them to override the default _options + if (options !== undefined && options !== null) { + if (options.strict === true) { + _options.strict = true; + } + if (options.storeAsString === true) { + _options.storeAsString = true; + } + _options.alwaysParseAsBig = + options.alwaysParseAsBig === true ? options.alwaysParseAsBig : false; + _options.useNativeBigInt = + options.useNativeBigInt === true ? options.useNativeBigInt : false; + + if (typeof options.constructorAction !== 'undefined') { + if ( + options.constructorAction === 'error' || + options.constructorAction === 'ignore' || + options.constructorAction === 'preserve' + ) { + _options.constructorAction = options.constructorAction; + } else { + throw new Error( + `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${options.constructorAction}` + ); + } + } + + if (typeof options.protoAction !== 'undefined') { + if ( + options.protoAction === 'error' || + options.protoAction === 'ignore' || + options.protoAction === 'preserve' + ) { + _options.protoAction = options.protoAction; + } else { + throw new Error( + `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${options.protoAction}` + ); + } + } + } + + var at, // The index of the current character + ch, // The current character + escapee = { + '"': '"', + '\\': '\\', + '/': '/', + b: '\b', + f: '\f', + n: '\n', + r: '\r', + t: '\t', + }, + text, + error = function (m) { + // Call error when something is wrong. + + throw { + name: 'SyntaxError', + message: m, + at: at, + text: text, + }; + }, + next = function (c) { + // If a c parameter is provided, verify that it matches the current character. + + if (c && c !== ch) { + error("Expected '" + c + "' instead of '" + ch + "'"); + } + + // Get the next character. When there are no more characters, + // return the empty string. + + ch = text.charAt(at); + at += 1; + return ch; + }, + number = function () { + // Parse a number value. + + var number, + string = ''; + + if (ch === '-') { + string = '-'; + next('-'); + } + while (ch >= '0' && ch <= '9') { + string += ch; + next(); + } + if (ch === '.') { + string += '.'; + while (next() && ch >= '0' && ch <= '9') { + string += ch; + } + } + if (ch === 'e' || ch === 'E') { + string += ch; + next(); + if (ch === '-' || ch === '+') { + string += ch; + next(); + } + while (ch >= '0' && ch <= '9') { + string += ch; + next(); + } + } + number = +string; + if (!isFinite(number)) { + error('Bad number'); + } else { + if (BigNumber == null) BigNumber = __nccwpck_require__(90982); + //if (number > 9007199254740992 || number < -9007199254740992) + // Bignumber has stricter check: everything with length > 15 digits disallowed + if (string.length > 15) + return _options.storeAsString + ? string + : _options.useNativeBigInt + ? BigInt(string) + : new BigNumber(string); + else + return !_options.alwaysParseAsBig + ? number + : _options.useNativeBigInt + ? BigInt(number) + : new BigNumber(number); + } + }, + string = function () { + // Parse a string value. + + var hex, + i, + string = '', + uffff; + + // When parsing for string values, we must look for " and \ characters. + + if (ch === '"') { + var startAt = at; + while (next()) { + if (ch === '"') { + if (at - 1 > startAt) string += text.substring(startAt, at - 1); + next(); + return string; + } + if (ch === '\\') { + if (at - 1 > startAt) string += text.substring(startAt, at - 1); + next(); + if (ch === 'u') { + uffff = 0; + for (i = 0; i < 4; i += 1) { + hex = parseInt(next(), 16); + if (!isFinite(hex)) { + break; + } + uffff = uffff * 16 + hex; + } + string += String.fromCharCode(uffff); + } else if (typeof escapee[ch] === 'string') { + string += escapee[ch]; + } else { + break; + } + startAt = at; + } + } + } + error('Bad string'); + }, + white = function () { + // Skip whitespace. + + while (ch && ch <= ' ') { + next(); + } + }, + word = function () { + // true, false, or null. + + switch (ch) { + case 't': + next('t'); + next('r'); + next('u'); + next('e'); + return true; + case 'f': + next('f'); + next('a'); + next('l'); + next('s'); + next('e'); + return false; + case 'n': + next('n'); + next('u'); + next('l'); + next('l'); + return null; + } + error("Unexpected '" + ch + "'"); + }, + value, // Place holder for the value function. + array = function () { + // Parse an array value. + + var array = []; + + if (ch === '[') { + next('['); + white(); + if (ch === ']') { + next(']'); + return array; // empty array + } + while (ch) { + array.push(value()); + white(); + if (ch === ']') { + next(']'); + return array; + } + next(','); + white(); + } + } + error('Bad array'); + }, + object = function () { + // Parse an object value. + + var key, + object = Object.create(null); + + if (ch === '{') { + next('{'); + white(); + if (ch === '}') { + next('}'); + return object; // empty object + } + while (ch) { + key = string(); + white(); + next(':'); + if ( + _options.strict === true && + Object.hasOwnProperty.call(object, key) + ) { + error('Duplicate key "' + key + '"'); + } + + if (suspectProtoRx.test(key) === true) { + if (_options.protoAction === 'error') { + error('Object contains forbidden prototype property'); + } else if (_options.protoAction === 'ignore') { + value(); + } else { + object[key] = value(); + } + } else if (suspectConstructorRx.test(key) === true) { + if (_options.constructorAction === 'error') { + error('Object contains forbidden constructor property'); + } else if (_options.constructorAction === 'ignore') { + value(); + } else { + object[key] = value(); + } + } else { + object[key] = value(); + } + + white(); + if (ch === '}') { + next('}'); + return object; + } + next(','); + white(); + } + } + error('Bad object'); + }; + + value = function () { + // Parse a JSON value. It could be an object, an array, a string, a number, + // or a word. + + white(); + switch (ch) { + case '{': + return object(); + case '[': + return array(); + case '"': + return string(); + case '-': + return number(); + default: + return ch >= '0' && ch <= '9' ? number() : word(); + } + }; + + // Return the json_parse function. It will have access to all of the above + // functions and variables. + + return function (source, reviver) { + var result; + + text = source + ''; + at = 0; + ch = ' '; + result = value(); + white(); + if (ch) { + error('Syntax error'); + } + + // If there is a reviver function, we recursively walk the new structure, + // passing each name/value pair to the reviver function for possible + // transformation, starting with a temporary root object that holds the result + // in an empty key. If there is not a reviver function, we simply return the + // result. + + return typeof reviver === 'function' + ? (function walk(holder, key) { + var k, + v, + value = holder[key]; + if (value && typeof value === 'object') { + Object.keys(value).forEach(function (k) { + v = walk(value, k); + if (v !== undefined) { + value[k] = v; + } else { + delete value[k]; + } + }); + } + return reviver.call(holder, key, value); + })({ '': result }, '') + : result; + }; +}; + +module.exports = json_parse; + + +/***/ }), + +/***/ 18088: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var BigNumber = __nccwpck_require__(90982); + +/* + json2.js + 2013-05-26 + + Public Domain. + + NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + + See http://www.JSON.org/js.html + + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. + + + This file creates a global JSON object containing two methods: stringify + and parse. + + JSON.stringify(value, replacer, space) + value any JavaScript value, usually an object or array. + + replacer an optional parameter that determines how object + values are stringified for objects. It can be a + function or an array of strings. + + space an optional parameter that specifies the indentation + of nested structures. If it is omitted, the text will + be packed without extra whitespace. If it is a number, + it will specify the number of spaces to indent at each + level. If it is a string (such as '\t' or ' '), + it contains the characters used to indent at each level. + + This method produces a JSON text from a JavaScript value. + + When an object value is found, if the object contains a toJSON + method, its toJSON method will be called and the result will be + stringified. A toJSON method does not serialize: it returns the + value represented by the name/value pair that should be serialized, + or undefined if nothing should be serialized. The toJSON method + will be passed the key associated with the value, and this will be + bound to the value + + For example, this would serialize Dates as ISO strings. + + Date.prototype.toJSON = function (key) { + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; + }; + + You can provide an optional replacer method. It will be passed the + key and value of each member, with this bound to the containing + object. The value that is returned from your method will be + serialized. If your method returns undefined, then the member will + be excluded from the serialization. + + If the replacer parameter is an array of strings, then it will be + used to select the members to be serialized. It filters the results + such that only members with keys listed in the replacer array are + stringified. + + Values that do not have JSON representations, such as undefined or + functions, will not be serialized. Such values in objects will be + dropped; in arrays they will be replaced with null. You can use + a replacer function to replace those with JSON values. + JSON.stringify(undefined) returns undefined. + + The optional space parameter produces a stringification of the + value that is filled with line breaks and indentation to make it + easier to read. + + If the space parameter is a non-empty string, then that string will + be used for indentation. If the space parameter is a number, then + the indentation will be that many spaces. + + Example: + + text = JSON.stringify(['e', {pluribus: 'unum'}]); + // text is '["e",{"pluribus":"unum"}]' + + + text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); + // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + + text = JSON.stringify([new Date()], function (key, value) { + return this[key] instanceof Date ? + 'Date(' + this[key] + ')' : value; + }); + // text is '["Date(---current time---)"]' + + + JSON.parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = JSON.parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { + var d; + if (typeof value === 'string' && + value.slice(0, 5) === 'Date(' && + value.slice(-1) === ')') { + d = new Date(value.slice(5, -1)); + if (d) { + return d; + } + } + return value; + }); + + + This is a reference implementation. You are free to copy, modify, or + redistribute. +*/ + +/*jslint evil: true, regexp: true */ + +/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, + call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, + getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, + lastIndex, length, parse, prototype, push, replace, slice, stringify, + test, toJSON, toString, valueOf +*/ + + +// Create a JSON object only if one does not already exist. We create the +// methods in a closure to avoid creating global variables. + +var JSON = module.exports; + +(function () { + 'use strict'; + + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + gap, + indent, + meta = { // table of character substitutions + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '"' : '\\"', + '\\': '\\\\' + }, + rep; + + + function quote(string) { + +// If the string contains no control characters, no quote characters, and no +// backslash characters, then we can safely slap some quotes around it. +// Otherwise we must also replace the offending characters with safe escape +// sequences. + + escapable.lastIndex = 0; + return escapable.test(string) ? '"' + string.replace(escapable, function (a) { + var c = meta[a]; + return typeof c === 'string' + ? c + : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"' : '"' + string + '"'; + } + + + function str(key, holder) { + +// Produce a string from holder[key]. + + var i, // The loop counter. + k, // The member key. + v, // The member value. + length, + mind = gap, + partial, + value = holder[key], + isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value)); + +// If the value has a toJSON method, call it to obtain a replacement value. + + if (value && typeof value === 'object' && + typeof value.toJSON === 'function') { + value = value.toJSON(key); + } + +// If we were called with a replacer function, then call the replacer to +// obtain a replacement value. + + if (typeof rep === 'function') { + value = rep.call(holder, key, value); + } + +// What happens next depends on the value's type. + + switch (typeof value) { + case 'string': + if (isBigNumber) { + return value; + } else { + return quote(value); + } + + case 'number': + +// JSON numbers must be finite. Encode non-finite numbers as null. + + return isFinite(value) ? String(value) : 'null'; + + case 'boolean': + case 'null': + case 'bigint': + +// If the value is a boolean or null, convert it to a string. Note: +// typeof null does not produce 'null'. The case is included here in +// the remote chance that this gets fixed someday. + + return String(value); + +// If the type is 'object', we might be dealing with an object or an array or +// null. + + case 'object': + +// Due to a specification blunder in ECMAScript, typeof null is 'object', +// so watch out for that case. + + if (!value) { + return 'null'; + } + +// Make an array to hold the partial results of stringifying this object value. + + gap += indent; + partial = []; + +// Is the value an array? + + if (Object.prototype.toString.apply(value) === '[object Array]') { + +// The value is an array. Stringify every element. Use null as a placeholder +// for non-JSON values. + + length = value.length; + for (i = 0; i < length; i += 1) { + partial[i] = str(i, value) || 'null'; + } + +// Join all of the elements together, separated with commas, and wrap them in +// brackets. + + v = partial.length === 0 + ? '[]' + : gap + ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' + : '[' + partial.join(',') + ']'; + gap = mind; + return v; + } + +// If the replacer is an array, use it to select the members to be stringified. + + if (rep && typeof rep === 'object') { + length = rep.length; + for (i = 0; i < length; i += 1) { + if (typeof rep[i] === 'string') { + k = rep[i]; + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } else { + +// Otherwise, iterate through all of the keys in the object. + + Object.keys(value).forEach(function(k) { + var v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + }); + } + +// Join all of the member texts together, separated with commas, +// and wrap them in braces. + + v = partial.length === 0 + ? '{}' + : gap + ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' + : '{' + partial.join(',') + '}'; + gap = mind; + return v; + } + } + +// If the JSON object does not yet have a stringify method, give it one. + + if (typeof JSON.stringify !== 'function') { + JSON.stringify = function (value, replacer, space) { + +// The stringify method takes a value and an optional replacer, and an optional +// space parameter, and returns a JSON text. The replacer can be a function +// that can replace values, or an array of strings that will select the keys. +// A default replacer method can be provided. Use of the space parameter can +// produce text that is more easily readable. + + var i; + gap = ''; + indent = ''; + +// If the space parameter is a number, make an indent string containing that +// many spaces. + + if (typeof space === 'number') { + for (i = 0; i < space; i += 1) { + indent += ' '; + } + +// If the space parameter is a string, it will be used as the indent string. + + } else if (typeof space === 'string') { + indent = space; + } + +// If there is a replacer, it must be a function or an array. +// Otherwise, throw an error. + + rep = replacer; + if (replacer && typeof replacer !== 'function' && + (typeof replacer !== 'object' || + typeof replacer.length !== 'number')) { + throw new Error('JSON.stringify'); + } + +// Make a fake root object containing our value under the key of ''. +// Return the result of stringifying the value. + + return str('', {'': value}); + }; + } +}()); + + +/***/ }), + +/***/ 88256: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var jws = __nccwpck_require__(84383); + +module.exports = function (jwt, options) { + options = options || {}; + var decoded = jws.decode(jwt, options); + if (!decoded) { return null; } + var payload = decoded.payload; + + //try parse the payload + if(typeof payload === 'string') { + try { + var obj = JSON.parse(payload); + if(obj !== null && typeof obj === 'object') { + payload = obj; + } + } catch (e) { } + } + + //return header if `complete` option is enabled. header includes claims + //such as `kid` and `alg` used to select the key within a JWKS needed to + //verify the signature + if (options.complete === true) { + return { + header: decoded.header, + payload: payload, + signature: decoded.signature + }; + } + return payload; +}; + + +/***/ }), + +/***/ 51684: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = { + decode: __nccwpck_require__(88256), + verify: __nccwpck_require__(30127), + sign: __nccwpck_require__(21167), + JsonWebTokenError: __nccwpck_require__(13937), + NotBeforeError: __nccwpck_require__(10018), + TokenExpiredError: __nccwpck_require__(20720), +}; + + +/***/ }), + +/***/ 13937: +/***/ ((module) => { + +var JsonWebTokenError = function (message, error) { + Error.call(this, message); + if(Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + this.name = 'JsonWebTokenError'; + this.message = message; + if (error) this.inner = error; +}; + +JsonWebTokenError.prototype = Object.create(Error.prototype); +JsonWebTokenError.prototype.constructor = JsonWebTokenError; + +module.exports = JsonWebTokenError; + + +/***/ }), + +/***/ 10018: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var JsonWebTokenError = __nccwpck_require__(13937); + +var NotBeforeError = function (message, date) { + JsonWebTokenError.call(this, message); + this.name = 'NotBeforeError'; + this.date = date; +}; + +NotBeforeError.prototype = Object.create(JsonWebTokenError.prototype); + +NotBeforeError.prototype.constructor = NotBeforeError; + +module.exports = NotBeforeError; + +/***/ }), + +/***/ 20720: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var JsonWebTokenError = __nccwpck_require__(13937); + +var TokenExpiredError = function (message, expiredAt) { + JsonWebTokenError.call(this, message); + this.name = 'TokenExpiredError'; + this.expiredAt = expiredAt; +}; + +TokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype); + +TokenExpiredError.prototype.constructor = TokenExpiredError; + +module.exports = TokenExpiredError; + +/***/ }), + +/***/ 95213: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const semver = __nccwpck_require__(10892); + +module.exports = semver.satisfies(process.version, '>=15.7.0'); + + +/***/ }), + +/***/ 56845: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var semver = __nccwpck_require__(10892); + +module.exports = semver.satisfies(process.version, '^6.12.0 || >=8.0.0'); + + +/***/ }), + +/***/ 16323: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const semver = __nccwpck_require__(10892); + +module.exports = semver.satisfies(process.version, '>=16.9.0'); + + +/***/ }), + +/***/ 73283: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var ms = __nccwpck_require__(51133); + +module.exports = function (time, iat) { + var timestamp = iat || Math.floor(Date.now() / 1000); + + if (typeof time === 'string') { + var milliseconds = ms(time); + if (typeof milliseconds === 'undefined') { + return; + } + return Math.floor(timestamp + milliseconds / 1000); + } else if (typeof time === 'number') { + return timestamp + time; + } else { + return; + } + +}; + +/***/ }), + +/***/ 68095: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const ASYMMETRIC_KEY_DETAILS_SUPPORTED = __nccwpck_require__(95213); +const RSA_PSS_KEY_DETAILS_SUPPORTED = __nccwpck_require__(16323); + +const allowedAlgorithmsForKeys = { + 'ec': ['ES256', 'ES384', 'ES512'], + 'rsa': ['RS256', 'PS256', 'RS384', 'PS384', 'RS512', 'PS512'], + 'rsa-pss': ['PS256', 'PS384', 'PS512'] +}; + +const allowedCurves = { + ES256: 'prime256v1', + ES384: 'secp384r1', + ES512: 'secp521r1', +}; + +module.exports = function(algorithm, key) { + if (!algorithm || !key) return; + + const keyType = key.asymmetricKeyType; + if (!keyType) return; + + const allowedAlgorithms = allowedAlgorithmsForKeys[keyType]; + + if (!allowedAlgorithms) { + throw new Error(`Unknown key type "${keyType}".`); + } + + if (!allowedAlgorithms.includes(algorithm)) { + throw new Error(`"alg" parameter for "${keyType}" key type must be one of: ${allowedAlgorithms.join(', ')}.`) + } + + /* + * Ignore the next block from test coverage because it gets executed + * conditionally depending on the Node version. Not ignoring it would + * prevent us from reaching the target % of coverage for versions of + * Node under 15.7.0. + */ + /* istanbul ignore next */ + if (ASYMMETRIC_KEY_DETAILS_SUPPORTED) { + switch (keyType) { + case 'ec': + const keyCurve = key.asymmetricKeyDetails.namedCurve; + const allowedCurve = allowedCurves[algorithm]; + + if (keyCurve !== allowedCurve) { + throw new Error(`"alg" parameter "${algorithm}" requires curve "${allowedCurve}".`); + } + break; + + case 'rsa-pss': + if (RSA_PSS_KEY_DETAILS_SUPPORTED) { + const length = parseInt(algorithm.slice(-3), 10); + const { hashAlgorithm, mgf1HashAlgorithm, saltLength } = key.asymmetricKeyDetails; + + if (hashAlgorithm !== `sha${length}` || mgf1HashAlgorithm !== hashAlgorithm) { + throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${algorithm}.`); + } + + if (saltLength !== undefined && saltLength > length >> 3) { + throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${algorithm}.`) + } + } + break; + } + } +} + + +/***/ }), + +/***/ 96783: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const ANY = Symbol('SemVer ANY') +// hoisted class for cyclic dependency +class Comparator { + static get ANY () { + return ANY + } + + constructor (comp, options) { + options = parseOptions(options) + + if (comp instanceof Comparator) { + if (comp.loose === !!options.loose) { + return comp + } else { + comp = comp.value + } + } + + comp = comp.trim().split(/\s+/).join(' ') + debug('comparator', comp, options) + this.options = options + this.loose = !!options.loose + this.parse(comp) + + if (this.semver === ANY) { + this.value = '' + } else { + this.value = this.operator + this.semver.version + } + + debug('comp', this) + } + + parse (comp) { + const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR] + const m = comp.match(r) + + if (!m) { + throw new TypeError(`Invalid comparator: ${comp}`) + } + + this.operator = m[1] !== undefined ? m[1] : '' + if (this.operator === '=') { + this.operator = '' + } + + // if it literally is just '>' or '' then allow anything. + if (!m[2]) { + this.semver = ANY + } else { + this.semver = new SemVer(m[2], this.options.loose) + } + } + + toString () { + return this.value + } + + test (version) { + debug('Comparator.test', version, this.options.loose) + + if (this.semver === ANY || version === ANY) { + return true + } + + if (typeof version === 'string') { + try { + version = new SemVer(version, this.options) + } catch (er) { + return false + } + } + + return cmp(version, this.operator, this.semver, this.options) + } + + intersects (comp, options) { + if (!(comp instanceof Comparator)) { + throw new TypeError('a Comparator is required') + } + + if (this.operator === '') { + if (this.value === '') { + return true + } + return new Range(comp.value, options).test(this.value) + } else if (comp.operator === '') { + if (comp.value === '') { + return true + } + return new Range(this.value, options).test(comp.semver) + } + + options = parseOptions(options) + + // Special cases where nothing can possibly be lower + if (options.includePrerelease && + (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) { + return false + } + if (!options.includePrerelease && + (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) { + return false + } + + // Same direction increasing (> or >=) + if (this.operator.startsWith('>') && comp.operator.startsWith('>')) { + return true + } + // Same direction decreasing (< or <=) + if (this.operator.startsWith('<') && comp.operator.startsWith('<')) { + return true + } + // same SemVer and both sides are inclusive (<= or >=) + if ( + (this.semver.version === comp.semver.version) && + this.operator.includes('=') && comp.operator.includes('=')) { + return true + } + // opposite directions less than + if (cmp(this.semver, '<', comp.semver, options) && + this.operator.startsWith('>') && comp.operator.startsWith('<')) { + return true + } + // opposite directions greater than + if (cmp(this.semver, '>', comp.semver, options) && + this.operator.startsWith('<') && comp.operator.startsWith('>')) { + return true + } + return false + } +} + +module.exports = Comparator + +const parseOptions = __nccwpck_require__(58024) +const { safeRe: re, t } = __nccwpck_require__(48835) +const cmp = __nccwpck_require__(78466) +const debug = __nccwpck_require__(32859) +const SemVer = __nccwpck_require__(2487) +const Range = __nccwpck_require__(77082) + + +/***/ }), + +/***/ 77082: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SPACE_CHARACTERS = /\s+/g + +// hoisted class for cyclic dependency +class Range { + constructor (range, options) { + options = parseOptions(options) + + if (range instanceof Range) { + if ( + range.loose === !!options.loose && + range.includePrerelease === !!options.includePrerelease + ) { + return range + } else { + return new Range(range.raw, options) + } + } + + if (range instanceof Comparator) { + // just put it in the set and return + this.raw = range.value + this.set = [[range]] + this.formatted = undefined + return this + } + + this.options = options + this.loose = !!options.loose + this.includePrerelease = !!options.includePrerelease + + // First reduce all whitespace as much as possible so we do not have to rely + // on potentially slow regexes like \s*. This is then stored and used for + // future error messages as well. + this.raw = range.trim().replace(SPACE_CHARACTERS, ' ') + + // First, split on || + this.set = this.raw + .split('||') + // map the range to a 2d array of comparators + .map(r => this.parseRange(r.trim())) + // throw out any comparator lists that are empty + // this generally means that it was not a valid range, which is allowed + // in loose mode, but will still throw if the WHOLE range is invalid. + .filter(c => c.length) + + if (!this.set.length) { + throw new TypeError(`Invalid SemVer Range: ${this.raw}`) + } + + // if we have any that are not the null set, throw out null sets. + if (this.set.length > 1) { + // keep the first one, in case they're all null sets + const first = this.set[0] + this.set = this.set.filter(c => !isNullSet(c[0])) + if (this.set.length === 0) { + this.set = [first] + } else if (this.set.length > 1) { + // if we have any that are *, then the range is just * + for (const c of this.set) { + if (c.length === 1 && isAny(c[0])) { + this.set = [c] + break + } + } + } + } + + this.formatted = undefined + } + + get range () { + if (this.formatted === undefined) { + this.formatted = '' + for (let i = 0; i < this.set.length; i++) { + if (i > 0) { + this.formatted += '||' + } + const comps = this.set[i] + for (let k = 0; k < comps.length; k++) { + if (k > 0) { + this.formatted += ' ' + } + this.formatted += comps[k].toString().trim() + } + } + } + return this.formatted + } + + format () { + return this.range + } + + toString () { + return this.range + } + + parseRange (range) { + // memoize range parsing for performance. + // this is a very hot path, and fully deterministic. + const memoOpts = + (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | + (this.options.loose && FLAG_LOOSE) + const memoKey = memoOpts + ':' + range + const cached = cache.get(memoKey) + if (cached) { + return cached + } + + const loose = this.options.loose + // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` + const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE] + range = range.replace(hr, hyphenReplace(this.options.includePrerelease)) + debug('hyphen replace', range) + + // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` + range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace) + debug('comparator trim', range) + + // `~ 1.2.3` => `~1.2.3` + range = range.replace(re[t.TILDETRIM], tildeTrimReplace) + debug('tilde trim', range) + + // `^ 1.2.3` => `^1.2.3` + range = range.replace(re[t.CARETTRIM], caretTrimReplace) + debug('caret trim', range) + + // At this point, the range is completely trimmed and + // ready to be split into comparators. + + let rangeList = range + .split(' ') + .map(comp => parseComparator(comp, this.options)) + .join(' ') + .split(/\s+/) + // >=0.0.0 is equivalent to * + .map(comp => replaceGTE0(comp, this.options)) + + if (loose) { + // in loose mode, throw out any that are not valid comparators + rangeList = rangeList.filter(comp => { + debug('loose invalid filter', comp, this.options) + return !!comp.match(re[t.COMPARATORLOOSE]) + }) + } + debug('range list', rangeList) + + // if any comparators are the null set, then replace with JUST null set + // if more than one comparator, remove any * comparators + // also, don't include the same comparator more than once + const rangeMap = new Map() + const comparators = rangeList.map(comp => new Comparator(comp, this.options)) + for (const comp of comparators) { + if (isNullSet(comp)) { + return [comp] + } + rangeMap.set(comp.value, comp) + } + if (rangeMap.size > 1 && rangeMap.has('')) { + rangeMap.delete('') + } + + const result = [...rangeMap.values()] + cache.set(memoKey, result) + return result + } + + intersects (range, options) { + if (!(range instanceof Range)) { + throw new TypeError('a Range is required') + } + + return this.set.some((thisComparators) => { + return ( + isSatisfiable(thisComparators, options) && + range.set.some((rangeComparators) => { + return ( + isSatisfiable(rangeComparators, options) && + thisComparators.every((thisComparator) => { + return rangeComparators.every((rangeComparator) => { + return thisComparator.intersects(rangeComparator, options) + }) + }) + ) + }) + ) + }) + } + + // if ANY of the sets match ALL of its comparators, then pass + test (version) { + if (!version) { + return false + } + + if (typeof version === 'string') { + try { + version = new SemVer(version, this.options) + } catch (er) { + return false + } + } + + for (let i = 0; i < this.set.length; i++) { + if (testSet(this.set[i], version, this.options)) { + return true + } + } + return false + } +} + +module.exports = Range + +const LRU = __nccwpck_require__(82491) +const cache = new LRU() + +const parseOptions = __nccwpck_require__(58024) +const Comparator = __nccwpck_require__(96783) +const debug = __nccwpck_require__(32859) +const SemVer = __nccwpck_require__(2487) +const { + safeRe: re, + t, + comparatorTrimReplace, + tildeTrimReplace, + caretTrimReplace, +} = __nccwpck_require__(48835) +const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(92169) + +const isNullSet = c => c.value === '<0.0.0-0' +const isAny = c => c.value === '' + +// take a set of comparators and determine whether there +// exists a version which can satisfy it +const isSatisfiable = (comparators, options) => { + let result = true + const remainingComparators = comparators.slice() + let testComparator = remainingComparators.pop() + + while (result && remainingComparators.length) { + result = remainingComparators.every((otherComparator) => { + return testComparator.intersects(otherComparator, options) + }) + + testComparator = remainingComparators.pop() + } + + return result +} + +// comprised of xranges, tildes, stars, and gtlt's at this point. +// already replaced the hyphen ranges +// turn into a set of JUST comparators. +const parseComparator = (comp, options) => { + comp = comp.replace(re[t.BUILD], '') + debug('comp', comp, options) + comp = replaceCarets(comp, options) + debug('caret', comp) + comp = replaceTildes(comp, options) + debug('tildes', comp) + comp = replaceXRanges(comp, options) + debug('xrange', comp) + comp = replaceStars(comp, options) + debug('stars', comp) + return comp +} + +const isX = id => !id || id.toLowerCase() === 'x' || id === '*' + +// ~, ~> --> * (any, kinda silly) +// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0 +// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0 +// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0 +// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0 +// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0 +// ~0.0.1 --> >=0.0.1 <0.1.0-0 +const replaceTildes = (comp, options) => { + return comp + .trim() + .split(/\s+/) + .map((c) => replaceTilde(c, options)) + .join(' ') +} + +const replaceTilde = (comp, options) => { + const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE] + return comp.replace(r, (_, M, m, p, pr) => { + debug('tilde', comp, _, M, m, p, pr) + let ret + + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = `>=${M}.0.0 <${+M + 1}.0.0-0` + } else if (isX(p)) { + // ~1.2 == >=1.2.0 <1.3.0-0 + ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` + } else if (pr) { + debug('replaceTilde pr', pr) + ret = `>=${M}.${m}.${p}-${pr + } <${M}.${+m + 1}.0-0` + } else { + // ~1.2.3 == >=1.2.3 <1.3.0-0 + ret = `>=${M}.${m}.${p + } <${M}.${+m + 1}.0-0` + } + + debug('tilde return', ret) + return ret + }) +} + +// ^ --> * (any, kinda silly) +// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0 +// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0 +// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0 +// ^1.2.3 --> >=1.2.3 <2.0.0-0 +// ^1.2.0 --> >=1.2.0 <2.0.0-0 +// ^0.0.1 --> >=0.0.1 <0.0.2-0 +// ^0.1.0 --> >=0.1.0 <0.2.0-0 +const replaceCarets = (comp, options) => { + return comp + .trim() + .split(/\s+/) + .map((c) => replaceCaret(c, options)) + .join(' ') +} + +const replaceCaret = (comp, options) => { + debug('caret', comp, options) + const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET] + const z = options.includePrerelease ? '-0' : '' + return comp.replace(r, (_, M, m, p, pr) => { + debug('caret', comp, _, M, m, p, pr) + let ret + + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` + } else if (isX(p)) { + if (M === '0') { + ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` + } else { + ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` + } + } else if (pr) { + debug('replaceCaret pr', pr) + if (M === '0') { + if (m === '0') { + ret = `>=${M}.${m}.${p}-${pr + } <${M}.${m}.${+p + 1}-0` + } else { + ret = `>=${M}.${m}.${p}-${pr + } <${M}.${+m + 1}.0-0` + } + } else { + ret = `>=${M}.${m}.${p}-${pr + } <${+M + 1}.0.0-0` + } + } else { + debug('no pr') + if (M === '0') { + if (m === '0') { + ret = `>=${M}.${m}.${p + }${z} <${M}.${m}.${+p + 1}-0` + } else { + ret = `>=${M}.${m}.${p + }${z} <${M}.${+m + 1}.0-0` + } + } else { + ret = `>=${M}.${m}.${p + } <${+M + 1}.0.0-0` + } + } + + debug('caret return', ret) + return ret + }) +} + +const replaceXRanges = (comp, options) => { + debug('replaceXRanges', comp, options) + return comp + .split(/\s+/) + .map((c) => replaceXRange(c, options)) + .join(' ') +} + +const replaceXRange = (comp, options) => { + comp = comp.trim() + const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE] + return comp.replace(r, (ret, gtlt, M, m, p, pr) => { + debug('xRange', comp, ret, gtlt, M, m, p, pr) + const xM = isX(M) + const xm = xM || isX(m) + const xp = xm || isX(p) + const anyX = xp + + if (gtlt === '=' && anyX) { + gtlt = '' + } + + // if we're including prereleases in the match, then we need + // to fix this to -0, the lowest possible prerelease value + pr = options.includePrerelease ? '-0' : '' + + if (xM) { + if (gtlt === '>' || gtlt === '<') { + // nothing is allowed + ret = '<0.0.0-0' + } else { + // nothing is forbidden + ret = '*' + } + } else if (gtlt && anyX) { + // we know patch is an x, because we have any x at all. + // replace X with 0 + if (xm) { + m = 0 + } + p = 0 + + if (gtlt === '>') { + // >1 => >=2.0.0 + // >1.2 => >=1.3.0 + gtlt = '>=' + if (xm) { + M = +M + 1 + m = 0 + p = 0 + } else { + m = +m + 1 + p = 0 + } + } else if (gtlt === '<=') { + // <=0.7.x is actually <0.8.0, since any 0.7.x should + // pass. Similarly, <=7.x is actually <8.0.0, etc. + gtlt = '<' + if (xm) { + M = +M + 1 + } else { + m = +m + 1 + } + } + + if (gtlt === '<') { + pr = '-0' + } + + ret = `${gtlt + M}.${m}.${p}${pr}` + } else if (xm) { + ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` + } else if (xp) { + ret = `>=${M}.${m}.0${pr + } <${M}.${+m + 1}.0-0` + } + + debug('xRange return', ret) + + return ret + }) +} + +// Because * is AND-ed with everything else in the comparator, +// and '' means "any version", just remove the *s entirely. +const replaceStars = (comp, options) => { + debug('replaceStars', comp, options) + // Looseness is ignored here. star is always as loose as it gets! + return comp + .trim() + .replace(re[t.STAR], '') +} + +const replaceGTE0 = (comp, options) => { + debug('replaceGTE0', comp, options) + return comp + .trim() + .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '') +} + +// This function is passed to string.replace(re[t.HYPHENRANGE]) +// M, m, patch, prerelease, build +// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 +// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do +// 1.2 - 3.4 => >=1.2.0 <3.5.0-0 +// TODO build? +const hyphenReplace = incPr => ($0, + from, fM, fm, fp, fpr, fb, + to, tM, tm, tp, tpr) => { + if (isX(fM)) { + from = '' + } else if (isX(fm)) { + from = `>=${fM}.0.0${incPr ? '-0' : ''}` + } else if (isX(fp)) { + from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}` + } else if (fpr) { + from = `>=${from}` + } else { + from = `>=${from}${incPr ? '-0' : ''}` + } + + if (isX(tM)) { + to = '' + } else if (isX(tm)) { + to = `<${+tM + 1}.0.0-0` + } else if (isX(tp)) { + to = `<${tM}.${+tm + 1}.0-0` + } else if (tpr) { + to = `<=${tM}.${tm}.${tp}-${tpr}` + } else if (incPr) { + to = `<${tM}.${tm}.${+tp + 1}-0` + } else { + to = `<=${to}` + } + + return `${from} ${to}`.trim() +} + +const testSet = (set, version, options) => { + for (let i = 0; i < set.length; i++) { + if (!set[i].test(version)) { + return false + } + } + + if (version.prerelease.length && !options.includePrerelease) { + // Find the set of versions that are allowed to have prereleases + // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 + // That should allow `1.2.3-pr.2` to pass. + // However, `1.2.4-alpha.notready` should NOT be allowed, + // even though it's within the range set by the comparators. + for (let i = 0; i < set.length; i++) { + debug(set[i].semver) + if (set[i].semver === Comparator.ANY) { + continue + } + + if (set[i].semver.prerelease.length > 0) { + const allowed = set[i].semver + if (allowed.major === version.major && + allowed.minor === version.minor && + allowed.patch === version.patch) { + return true + } + } + } + + // Version has a -pre, but it's not one of the ones we like. + return false + } + + return true +} + + +/***/ }), + +/***/ 2487: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const debug = __nccwpck_require__(32859) +const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(92169) +const { safeRe: re, t } = __nccwpck_require__(48835) + +const parseOptions = __nccwpck_require__(58024) +const { compareIdentifiers } = __nccwpck_require__(59048) +class SemVer { + constructor (version, options) { + options = parseOptions(options) + + if (version instanceof SemVer) { + if (version.loose === !!options.loose && + version.includePrerelease === !!options.includePrerelease) { + return version + } else { + version = version.version + } + } else if (typeof version !== 'string') { + throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`) + } + + if (version.length > MAX_LENGTH) { + throw new TypeError( + `version is longer than ${MAX_LENGTH} characters` + ) + } + + debug('SemVer', version, options) + this.options = options + this.loose = !!options.loose + // this isn't actually relevant for versions, but keep it so that we + // don't run into trouble passing this.options around. + this.includePrerelease = !!options.includePrerelease + + const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]) + + if (!m) { + throw new TypeError(`Invalid Version: ${version}`) + } + + this.raw = version + + // these are actually numbers + this.major = +m[1] + this.minor = +m[2] + this.patch = +m[3] + + if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + throw new TypeError('Invalid major version') + } + + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + throw new TypeError('Invalid minor version') + } + + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + throw new TypeError('Invalid patch version') + } + + // numberify any prerelease numeric ids + if (!m[4]) { + this.prerelease = [] + } else { + this.prerelease = m[4].split('.').map((id) => { + if (/^[0-9]+$/.test(id)) { + const num = +id + if (num >= 0 && num < MAX_SAFE_INTEGER) { + return num + } + } + return id + }) + } + + this.build = m[5] ? m[5].split('.') : [] + this.format() + } + + format () { + this.version = `${this.major}.${this.minor}.${this.patch}` + if (this.prerelease.length) { + this.version += `-${this.prerelease.join('.')}` + } + return this.version + } + + toString () { + return this.version + } + + compare (other) { + debug('SemVer.compare', this.version, this.options, other) + if (!(other instanceof SemVer)) { + if (typeof other === 'string' && other === this.version) { + return 0 + } + other = new SemVer(other, this.options) + } + + if (other.version === this.version) { + return 0 + } + + return this.compareMain(other) || this.comparePre(other) + } + + compareMain (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + if (this.major < other.major) { + return -1 + } + if (this.major > other.major) { + return 1 + } + if (this.minor < other.minor) { + return -1 + } + if (this.minor > other.minor) { + return 1 + } + if (this.patch < other.patch) { + return -1 + } + if (this.patch > other.patch) { + return 1 + } + return 0 + } + + comparePre (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + // NOT having a prerelease is > having one + if (this.prerelease.length && !other.prerelease.length) { + return -1 + } else if (!this.prerelease.length && other.prerelease.length) { + return 1 + } else if (!this.prerelease.length && !other.prerelease.length) { + return 0 + } + + let i = 0 + do { + const a = this.prerelease[i] + const b = other.prerelease[i] + debug('prerelease compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) + } + } while (++i) + } + + compareBuild (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + let i = 0 + do { + const a = this.build[i] + const b = other.build[i] + debug('build compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) + } + } while (++i) + } + + // preminor will bump the version up to the next minor release, and immediately + // down to pre-release. premajor and prepatch work the same way. + inc (release, identifier, identifierBase) { + if (release.startsWith('pre')) { + if (!identifier && identifierBase === false) { + throw new Error('invalid increment argument: identifier is empty') + } + // Avoid an invalid semver results + if (identifier) { + const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]) + if (!match || match[1] !== identifier) { + throw new Error(`invalid identifier: ${identifier}`) + } + } + } + + switch (release) { + case 'premajor': + this.prerelease.length = 0 + this.patch = 0 + this.minor = 0 + this.major++ + this.inc('pre', identifier, identifierBase) + break + case 'preminor': + this.prerelease.length = 0 + this.patch = 0 + this.minor++ + this.inc('pre', identifier, identifierBase) + break + case 'prepatch': + // If this is already a prerelease, it will bump to the next version + // drop any prereleases that might already exist, since they are not + // relevant at this point. + this.prerelease.length = 0 + this.inc('patch', identifier, identifierBase) + this.inc('pre', identifier, identifierBase) + break + // If the input is a non-prerelease version, this acts the same as + // prepatch. + case 'prerelease': + if (this.prerelease.length === 0) { + this.inc('patch', identifier, identifierBase) + } + this.inc('pre', identifier, identifierBase) + break + case 'release': + if (this.prerelease.length === 0) { + throw new Error(`version ${this.raw} is not a prerelease`) + } + this.prerelease.length = 0 + break + + case 'major': + // If this is a pre-major version, bump up to the same major version. + // Otherwise increment major. + // 1.0.0-5 bumps to 1.0.0 + // 1.1.0 bumps to 2.0.0 + if ( + this.minor !== 0 || + this.patch !== 0 || + this.prerelease.length === 0 + ) { + this.major++ + } + this.minor = 0 + this.patch = 0 + this.prerelease = [] + break + case 'minor': + // If this is a pre-minor version, bump up to the same minor version. + // Otherwise increment minor. + // 1.2.0-5 bumps to 1.2.0 + // 1.2.1 bumps to 1.3.0 + if (this.patch !== 0 || this.prerelease.length === 0) { + this.minor++ + } + this.patch = 0 + this.prerelease = [] + break + case 'patch': + // If this is not a pre-release version, it will increment the patch. + // If it is a pre-release it will bump up to the same patch version. + // 1.2.0-5 patches to 1.2.0 + // 1.2.0 patches to 1.2.1 + if (this.prerelease.length === 0) { + this.patch++ + } + this.prerelease = [] + break + // This probably shouldn't be used publicly. + // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. + case 'pre': { + const base = Number(identifierBase) ? 1 : 0 + + if (this.prerelease.length === 0) { + this.prerelease = [base] + } else { + let i = this.prerelease.length + while (--i >= 0) { + if (typeof this.prerelease[i] === 'number') { + this.prerelease[i]++ + i = -2 + } + } + if (i === -1) { + // didn't increment anything + if (identifier === this.prerelease.join('.') && identifierBase === false) { + throw new Error('invalid increment argument: identifier already exists') + } + this.prerelease.push(base) + } + } + if (identifier) { + // 1.2.0-beta.1 bumps to 1.2.0-beta.2, + // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 + let prerelease = [identifier, base] + if (identifierBase === false) { + prerelease = [identifier] + } + if (compareIdentifiers(this.prerelease[0], identifier) === 0) { + if (isNaN(this.prerelease[1])) { + this.prerelease = prerelease + } + } else { + this.prerelease = prerelease + } + } + break + } + default: + throw new Error(`invalid increment argument: ${release}`) + } + this.raw = this.format() + if (this.build.length) { + this.raw += `+${this.build.join('.')}` + } + return this + } +} + +module.exports = SemVer + + +/***/ }), + +/***/ 93747: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const parse = __nccwpck_require__(52157) +const clean = (version, options) => { + const s = parse(version.trim().replace(/^[=v]+/, ''), options) + return s ? s.version : null +} +module.exports = clean + + +/***/ }), + +/***/ 78466: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const eq = __nccwpck_require__(62702) +const neq = __nccwpck_require__(16130) +const gt = __nccwpck_require__(53267) +const gte = __nccwpck_require__(45712) +const lt = __nccwpck_require__(64892) +const lte = __nccwpck_require__(78537) + +const cmp = (a, op, b, loose) => { + switch (op) { + case '===': + if (typeof a === 'object') { + a = a.version + } + if (typeof b === 'object') { + b = b.version + } + return a === b + + case '!==': + if (typeof a === 'object') { + a = a.version + } + if (typeof b === 'object') { + b = b.version + } + return a !== b + + case '': + case '=': + case '==': + return eq(a, b, loose) + + case '!=': + return neq(a, b, loose) + + case '>': + return gt(a, b, loose) + + case '>=': + return gte(a, b, loose) + + case '<': + return lt(a, b, loose) + + case '<=': + return lte(a, b, loose) + + default: + throw new TypeError(`Invalid operator: ${op}`) + } +} +module.exports = cmp + + +/***/ }), + +/***/ 64669: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const parse = __nccwpck_require__(52157) +const { safeRe: re, t } = __nccwpck_require__(48835) + +const coerce = (version, options) => { + if (version instanceof SemVer) { + return version + } + + if (typeof version === 'number') { + version = String(version) + } + + if (typeof version !== 'string') { + return null + } + + options = options || {} + + let match = null + if (!options.rtl) { + match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]) + } else { + // Find the right-most coercible string that does not share + // a terminus with a more left-ward coercible string. + // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' + // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4' + // + // Walk through the string checking with a /g regexp + // Manually set the index so as to pick up overlapping matches. + // Stop when we get a match that ends at the string end, since no + // coercible string can be more right-ward without the same terminus. + const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL] + let next + while ((next = coerceRtlRegex.exec(version)) && + (!match || match.index + match[0].length !== version.length) + ) { + if (!match || + next.index + next[0].length !== match.index + match[0].length) { + match = next + } + coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length + } + // leave it in a clean state + coerceRtlRegex.lastIndex = -1 + } + + if (match === null) { + return null + } + + const major = match[2] + const minor = match[3] || '0' + const patch = match[4] || '0' + const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '' + const build = options.includePrerelease && match[6] ? `+${match[6]}` : '' + + return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options) +} +module.exports = coerce + + +/***/ }), + +/***/ 57724: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const compareBuild = (a, b, loose) => { + const versionA = new SemVer(a, loose) + const versionB = new SemVer(b, loose) + return versionA.compare(versionB) || versionA.compareBuild(versionB) +} +module.exports = compareBuild + + +/***/ }), + +/***/ 87246: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const compareLoose = (a, b) => compare(a, b, true) +module.exports = compareLoose + + +/***/ }), + +/***/ 32865: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const compare = (a, b, loose) => + new SemVer(a, loose).compare(new SemVer(b, loose)) + +module.exports = compare + + +/***/ }), + +/***/ 10795: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const parse = __nccwpck_require__(52157) + +const diff = (version1, version2) => { + const v1 = parse(version1, null, true) + const v2 = parse(version2, null, true) + const comparison = v1.compare(v2) + + if (comparison === 0) { + return null + } + + const v1Higher = comparison > 0 + const highVersion = v1Higher ? v1 : v2 + const lowVersion = v1Higher ? v2 : v1 + const highHasPre = !!highVersion.prerelease.length + const lowHasPre = !!lowVersion.prerelease.length + + if (lowHasPre && !highHasPre) { + // Going from prerelease -> no prerelease requires some special casing + + // If the low version has only a major, then it will always be a major + // Some examples: + // 1.0.0-1 -> 1.0.0 + // 1.0.0-1 -> 1.1.1 + // 1.0.0-1 -> 2.0.0 + if (!lowVersion.patch && !lowVersion.minor) { + return 'major' + } + + // If the main part has no difference + if (lowVersion.compareMain(highVersion) === 0) { + if (lowVersion.minor && !lowVersion.patch) { + return 'minor' + } + return 'patch' + } + } + + // add the `pre` prefix if we are going to a prerelease version + const prefix = highHasPre ? 'pre' : '' + + if (v1.major !== v2.major) { + return prefix + 'major' + } + + if (v1.minor !== v2.minor) { + return prefix + 'minor' + } + + if (v1.patch !== v2.patch) { + return prefix + 'patch' + } + + // high and low are prereleases + return 'prerelease' +} + +module.exports = diff + + +/***/ }), + +/***/ 62702: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const eq = (a, b, loose) => compare(a, b, loose) === 0 +module.exports = eq + + +/***/ }), + +/***/ 53267: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const gt = (a, b, loose) => compare(a, b, loose) > 0 +module.exports = gt + + +/***/ }), + +/***/ 45712: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const gte = (a, b, loose) => compare(a, b, loose) >= 0 +module.exports = gte + + +/***/ }), + +/***/ 67550: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) + +const inc = (version, release, options, identifier, identifierBase) => { + if (typeof (options) === 'string') { + identifierBase = identifier + identifier = options + options = undefined + } + + try { + return new SemVer( + version instanceof SemVer ? version.version : version, + options + ).inc(release, identifier, identifierBase).version + } catch (er) { + return null + } +} +module.exports = inc + + +/***/ }), + +/***/ 64892: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const lt = (a, b, loose) => compare(a, b, loose) < 0 +module.exports = lt + + +/***/ }), + +/***/ 78537: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const lte = (a, b, loose) => compare(a, b, loose) <= 0 +module.exports = lte + + +/***/ }), + +/***/ 86227: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const major = (a, loose) => new SemVer(a, loose).major +module.exports = major + + +/***/ }), + +/***/ 29271: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const minor = (a, loose) => new SemVer(a, loose).minor +module.exports = minor + + +/***/ }), + +/***/ 16130: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const neq = (a, b, loose) => compare(a, b, loose) !== 0 +module.exports = neq + + +/***/ }), + +/***/ 52157: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const parse = (version, options, throwErrors = false) => { + if (version instanceof SemVer) { + return version + } + try { + return new SemVer(version, options) + } catch (er) { + if (!throwErrors) { + return null + } + throw er + } +} + +module.exports = parse + + +/***/ }), + +/***/ 1136: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const patch = (a, loose) => new SemVer(a, loose).patch +module.exports = patch + + +/***/ }), + +/***/ 64182: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const parse = __nccwpck_require__(52157) +const prerelease = (version, options) => { + const parsed = parse(version, options) + return (parsed && parsed.prerelease.length) ? parsed.prerelease : null +} +module.exports = prerelease + + +/***/ }), + +/***/ 77473: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compare = __nccwpck_require__(32865) +const rcompare = (a, b, loose) => compare(b, a, loose) +module.exports = rcompare + + +/***/ }), + +/***/ 7788: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compareBuild = __nccwpck_require__(57724) +const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) +module.exports = rsort + + +/***/ }), + +/***/ 76759: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Range = __nccwpck_require__(77082) +const satisfies = (version, range, options) => { + try { + range = new Range(range, options) + } catch (er) { + return false + } + return range.test(version) +} +module.exports = satisfies + + +/***/ }), + +/***/ 97228: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const compareBuild = __nccwpck_require__(57724) +const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) +module.exports = sort + + +/***/ }), + +/***/ 19544: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const parse = __nccwpck_require__(52157) +const valid = (version, options) => { + const v = parse(version, options) + return v ? v.version : null +} +module.exports = valid + + +/***/ }), + +/***/ 10892: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +// just pre-load all the stuff that index.js lazily exports +const internalRe = __nccwpck_require__(48835) +const constants = __nccwpck_require__(92169) +const SemVer = __nccwpck_require__(2487) +const identifiers = __nccwpck_require__(59048) +const parse = __nccwpck_require__(52157) +const valid = __nccwpck_require__(19544) +const clean = __nccwpck_require__(93747) +const inc = __nccwpck_require__(67550) +const diff = __nccwpck_require__(10795) +const major = __nccwpck_require__(86227) +const minor = __nccwpck_require__(29271) +const patch = __nccwpck_require__(1136) +const prerelease = __nccwpck_require__(64182) +const compare = __nccwpck_require__(32865) +const rcompare = __nccwpck_require__(77473) +const compareLoose = __nccwpck_require__(87246) +const compareBuild = __nccwpck_require__(57724) +const sort = __nccwpck_require__(97228) +const rsort = __nccwpck_require__(7788) +const gt = __nccwpck_require__(53267) +const lt = __nccwpck_require__(64892) +const eq = __nccwpck_require__(62702) +const neq = __nccwpck_require__(16130) +const gte = __nccwpck_require__(45712) +const lte = __nccwpck_require__(78537) +const cmp = __nccwpck_require__(78466) +const coerce = __nccwpck_require__(64669) +const Comparator = __nccwpck_require__(96783) +const Range = __nccwpck_require__(77082) +const satisfies = __nccwpck_require__(76759) +const toComparators = __nccwpck_require__(52994) +const maxSatisfying = __nccwpck_require__(95685) +const minSatisfying = __nccwpck_require__(1687) +const minVersion = __nccwpck_require__(38438) +const validRange = __nccwpck_require__(47805) +const outside = __nccwpck_require__(50228) +const gtr = __nccwpck_require__(15512) +const ltr = __nccwpck_require__(77089) +const intersects = __nccwpck_require__(13709) +const simplifyRange = __nccwpck_require__(15936) +const subset = __nccwpck_require__(33317) +module.exports = { + parse, + valid, + clean, + inc, + diff, + major, + minor, + patch, + prerelease, + compare, + rcompare, + compareLoose, + compareBuild, + sort, + rsort, + gt, + lt, + eq, + neq, + gte, + lte, + cmp, + coerce, + Comparator, + Range, + satisfies, + toComparators, + maxSatisfying, + minSatisfying, + minVersion, + validRange, + outside, + gtr, + ltr, + intersects, + simplifyRange, + subset, + SemVer, + re: internalRe.re, + src: internalRe.src, + tokens: internalRe.t, + SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, + RELEASE_TYPES: constants.RELEASE_TYPES, + compareIdentifiers: identifiers.compareIdentifiers, + rcompareIdentifiers: identifiers.rcompareIdentifiers, +} + + +/***/ }), + +/***/ 92169: +/***/ ((module) => { + +"use strict"; + + +// Note: this is the semver.org version of the spec that it implements +// Not necessarily the package version of this code. +const SEMVER_SPEC_VERSION = '2.0.0' + +const MAX_LENGTH = 256 +const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || +/* istanbul ignore next */ 9007199254740991 + +// Max safe segment length for coercion. +const MAX_SAFE_COMPONENT_LENGTH = 16 + +// Max safe length for a build identifier. The max length minus 6 characters for +// the shortest version with a build 0.0.0+BUILD. +const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 + +const RELEASE_TYPES = [ + 'major', + 'premajor', + 'minor', + 'preminor', + 'patch', + 'prepatch', + 'prerelease', +] + +module.exports = { + MAX_LENGTH, + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_SAFE_INTEGER, + RELEASE_TYPES, + SEMVER_SPEC_VERSION, + FLAG_INCLUDE_PRERELEASE: 0b001, + FLAG_LOOSE: 0b010, +} + + +/***/ }), + +/***/ 32859: +/***/ ((module) => { + +"use strict"; + + +const debug = ( + typeof process === 'object' && + process.env && + process.env.NODE_DEBUG && + /\bsemver\b/i.test(process.env.NODE_DEBUG) +) ? (...args) => console.error('SEMVER', ...args) + : () => {} + +module.exports = debug + + +/***/ }), + +/***/ 59048: +/***/ ((module) => { + +"use strict"; + + +const numeric = /^[0-9]+$/ +const compareIdentifiers = (a, b) => { + if (typeof a === 'number' && typeof b === 'number') { + return a === b ? 0 : a < b ? -1 : 1 + } + + const anum = numeric.test(a) + const bnum = numeric.test(b) + + if (anum && bnum) { + a = +a + b = +b + } + + return a === b ? 0 + : (anum && !bnum) ? -1 + : (bnum && !anum) ? 1 + : a < b ? -1 + : 1 +} + +const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) + +module.exports = { + compareIdentifiers, + rcompareIdentifiers, +} + + +/***/ }), + +/***/ 82491: +/***/ ((module) => { + +"use strict"; + + +class LRUCache { + constructor () { + this.max = 1000 + this.map = new Map() + } + + get (key) { + const value = this.map.get(key) + if (value === undefined) { + return undefined + } else { + // Remove the key from the map and add it to the end + this.map.delete(key) + this.map.set(key, value) + return value + } + } + + delete (key) { + return this.map.delete(key) + } + + set (key, value) { + const deleted = this.delete(key) + + if (!deleted && value !== undefined) { + // If cache is full, delete the least recently used item + if (this.map.size >= this.max) { + const firstKey = this.map.keys().next().value + this.delete(firstKey) + } + + this.map.set(key, value) + } + + return this + } +} + +module.exports = LRUCache + + +/***/ }), + +/***/ 58024: +/***/ ((module) => { + +"use strict"; + + +// parse out just the options we care about +const looseOption = Object.freeze({ loose: true }) +const emptyOpts = Object.freeze({ }) +const parseOptions = options => { + if (!options) { + return emptyOpts + } + + if (typeof options !== 'object') { + return looseOption + } + + return options +} +module.exports = parseOptions + + +/***/ }), + +/***/ 48835: +/***/ ((module, exports, __nccwpck_require__) => { + +"use strict"; + + +const { + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_LENGTH, +} = __nccwpck_require__(92169) +const debug = __nccwpck_require__(32859) +exports = module.exports = {} + +// The actual regexps go on exports.re +const re = exports.re = [] +const safeRe = exports.safeRe = [] +const src = exports.src = [] +const safeSrc = exports.safeSrc = [] +const t = exports.t = {} +let R = 0 + +const LETTERDASHNUMBER = '[a-zA-Z0-9-]' + +// Replace some greedy regex tokens to prevent regex dos issues. These regex are +// used internally via the safeRe object since all inputs in this library get +// normalized first to trim and collapse all extra whitespace. The original +// regexes are exported for userland consumption and lower level usage. A +// future breaking change could export the safer regex only with a note that +// all input should have extra whitespace removed. +const safeRegexReplacements = [ + ['\\s', 1], + ['\\d', MAX_LENGTH], + [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], +] + +const makeSafeRegex = (value) => { + for (const [token, max] of safeRegexReplacements) { + value = value + .split(`${token}*`).join(`${token}{0,${max}}`) + .split(`${token}+`).join(`${token}{1,${max}}`) + } + return value +} + +const createToken = (name, value, isGlobal) => { + const safe = makeSafeRegex(value) + const index = R++ + debug(name, index, value) + t[name] = index + src[index] = value + safeSrc[index] = safe + re[index] = new RegExp(value, isGlobal ? 'g' : undefined) + safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) +} + +// The following Regular Expressions can be used for tokenizing, +// validating, and parsing SemVer version strings. + +// ## Numeric Identifier +// A single `0`, or a non-zero digit followed by zero or more digits. + +createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*') +createToken('NUMERICIDENTIFIERLOOSE', '\\d+') + +// ## Non-numeric Identifier +// Zero or more digits, followed by a letter or hyphen, and then zero or +// more letters, digits, or hyphens. + +createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`) + +// ## Main Version +// Three dot-separated numeric identifiers. + +createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + + `(${src[t.NUMERICIDENTIFIER]})\\.` + + `(${src[t.NUMERICIDENTIFIER]})`) + +createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + + `(${src[t.NUMERICIDENTIFIERLOOSE]})`) + +// ## Pre-release Version Identifier +// A numeric identifier, or a non-numeric identifier. +// Non-numeric identifiers include numeric identifiers but can be longer. +// Therefore non-numeric identifiers must go first. + +createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER] +}|${src[t.NUMERICIDENTIFIER]})`) + +createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER] +}|${src[t.NUMERICIDENTIFIERLOOSE]})`) + +// ## Pre-release Version +// Hyphen, followed by one or more dot-separated pre-release version +// identifiers. + +createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER] +}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`) + +createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE] +}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`) + +// ## Build Metadata Identifier +// Any combination of digits, letters, or hyphens. + +createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`) + +// ## Build Metadata +// Plus sign, followed by one or more period-separated build metadata +// identifiers. + +createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER] +}(?:\\.${src[t.BUILDIDENTIFIER]})*))`) + +// ## Full Version String +// A main version, followed optionally by a pre-release version and +// build metadata. + +// Note that the only major, minor, patch, and pre-release sections of +// the version string are capturing groups. The build metadata is not a +// capturing group, because it should not ever be used in version +// comparison. + +createToken('FULLPLAIN', `v?${src[t.MAINVERSION] +}${src[t.PRERELEASE]}?${ + src[t.BUILD]}?`) + +createToken('FULL', `^${src[t.FULLPLAIN]}$`) + +// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. +// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty +// common in the npm registry. +createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE] +}${src[t.PRERELEASELOOSE]}?${ + src[t.BUILD]}?`) + +createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`) + +createToken('GTLT', '((?:<|>)?=?)') + +// Something like "2.*" or "1.2.x". +// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Only the first item is strictly required. +createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`) +createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`) + +createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + + `(?:${src[t.PRERELEASE]})?${ + src[t.BUILD]}?` + + `)?)?`) + +createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + + `(?:${src[t.PRERELEASELOOSE]})?${ + src[t.BUILD]}?` + + `)?)?`) + +createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`) +createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`) + +// Coercion. +// Extract anything that could conceivably be a part of a valid semver +createToken('COERCEPLAIN', `${'(^|[^\\d])' + + '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`) +createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`) +createToken('COERCEFULL', src[t.COERCEPLAIN] + + `(?:${src[t.PRERELEASE]})?` + + `(?:${src[t.BUILD]})?` + + `(?:$|[^\\d])`) +createToken('COERCERTL', src[t.COERCE], true) +createToken('COERCERTLFULL', src[t.COERCEFULL], true) + +// Tilde ranges. +// Meaning is "reasonably at or greater than" +createToken('LONETILDE', '(?:~>?)') + +createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true) +exports.tildeTrimReplace = '$1~' + +createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`) +createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`) + +// Caret ranges. +// Meaning is "at least and backwards compatible with" +createToken('LONECARET', '(?:\\^)') + +createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true) +exports.caretTrimReplace = '$1^' + +createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`) +createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`) + +// A simple gt/lt/eq thing, or just "" to indicate "any version" +createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`) +createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`) + +// An expression to strip any whitespace between the gtlt and the thing +// it modifies, so that `> 1.2.3` ==> `>1.2.3` +createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT] +}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true) +exports.comparatorTrimReplace = '$1$2$3' + +// Something like `1.2.3 - 1.2.4` +// Note that these all use the loose form, because they'll be +// checked against either the strict or loose comparator form +// later. +createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` + + `\\s+-\\s+` + + `(${src[t.XRANGEPLAIN]})` + + `\\s*$`) + +createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + + `\\s+-\\s+` + + `(${src[t.XRANGEPLAINLOOSE]})` + + `\\s*$`) + +// Star ranges basically just allow anything at all. +createToken('STAR', '(<|>)?=?\\s*\\*') +// >=0.0.0 is like a star +createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$') +createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$') + + +/***/ }), + +/***/ 15512: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +// Determine if version is greater than all the versions possible in the range. +const outside = __nccwpck_require__(50228) +const gtr = (version, range, options) => outside(version, range, '>', options) +module.exports = gtr + + +/***/ }), + +/***/ 13709: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Range = __nccwpck_require__(77082) +const intersects = (r1, r2, options) => { + r1 = new Range(r1, options) + r2 = new Range(r2, options) + return r1.intersects(r2, options) +} +module.exports = intersects + + +/***/ }), + +/***/ 77089: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const outside = __nccwpck_require__(50228) +// Determine if version is less than all the versions possible in the range +const ltr = (version, range, options) => outside(version, range, '<', options) +module.exports = ltr + + +/***/ }), + +/***/ 95685: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const Range = __nccwpck_require__(77082) + +const maxSatisfying = (versions, range, options) => { + let max = null + let maxSV = null + let rangeObj = null + try { + rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach((v) => { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!max || maxSV.compare(v) === -1) { + // compare(max, v, true) + max = v + maxSV = new SemVer(max, options) + } + } + }) + return max +} +module.exports = maxSatisfying + + +/***/ }), + +/***/ 1687: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const Range = __nccwpck_require__(77082) +const minSatisfying = (versions, range, options) => { + let min = null + let minSV = null + let rangeObj = null + try { + rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach((v) => { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!min || minSV.compare(v) === 1) { + // compare(min, v, true) + min = v + minSV = new SemVer(min, options) + } + } + }) + return min +} +module.exports = minSatisfying + + +/***/ }), + +/***/ 38438: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const Range = __nccwpck_require__(77082) +const gt = __nccwpck_require__(53267) + +const minVersion = (range, loose) => { + range = new Range(range, loose) + + let minver = new SemVer('0.0.0') + if (range.test(minver)) { + return minver + } + + minver = new SemVer('0.0.0-0') + if (range.test(minver)) { + return minver + } + + minver = null + for (let i = 0; i < range.set.length; ++i) { + const comparators = range.set[i] + + let setMin = null + comparators.forEach((comparator) => { + // Clone to avoid manipulating the comparator's semver object. + const compver = new SemVer(comparator.semver.version) + switch (comparator.operator) { + case '>': + if (compver.prerelease.length === 0) { + compver.patch++ + } else { + compver.prerelease.push(0) + } + compver.raw = compver.format() + /* fallthrough */ + case '': + case '>=': + if (!setMin || gt(compver, setMin)) { + setMin = compver + } + break + case '<': + case '<=': + /* Ignore maximum versions */ + break + /* istanbul ignore next */ + default: + throw new Error(`Unexpected operation: ${comparator.operator}`) + } + }) + if (setMin && (!minver || gt(minver, setMin))) { + minver = setMin + } + } + + if (minver && range.test(minver)) { + return minver + } + + return null +} +module.exports = minVersion + + +/***/ }), + +/***/ 50228: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const SemVer = __nccwpck_require__(2487) +const Comparator = __nccwpck_require__(96783) +const { ANY } = Comparator +const Range = __nccwpck_require__(77082) +const satisfies = __nccwpck_require__(76759) +const gt = __nccwpck_require__(53267) +const lt = __nccwpck_require__(64892) +const lte = __nccwpck_require__(78537) +const gte = __nccwpck_require__(45712) + +const outside = (version, range, hilo, options) => { + version = new SemVer(version, options) + range = new Range(range, options) + + let gtfn, ltefn, ltfn, comp, ecomp + switch (hilo) { + case '>': + gtfn = gt + ltefn = lte + ltfn = lt + comp = '>' + ecomp = '>=' + break + case '<': + gtfn = lt + ltefn = gte + ltfn = gt + comp = '<' + ecomp = '<=' + break + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } + + // If it satisfies the range it is not outside + if (satisfies(version, range, options)) { + return false + } + + // From now on, variable terms are as if we're in "gtr" mode. + // but note that everything is flipped for the "ltr" function. + + for (let i = 0; i < range.set.length; ++i) { + const comparators = range.set[i] + + let high = null + let low = null + + comparators.forEach((comparator) => { + if (comparator.semver === ANY) { + comparator = new Comparator('>=0.0.0') + } + high = high || comparator + low = low || comparator + if (gtfn(comparator.semver, high.semver, options)) { + high = comparator + } else if (ltfn(comparator.semver, low.semver, options)) { + low = comparator + } + }) + + // If the edge version comparator has a operator then our version + // isn't outside it + if (high.operator === comp || high.operator === ecomp) { + return false + } + + // If the lowest version comparator has an operator and our version + // is less than it then it isn't higher than the range + if ((!low.operator || low.operator === comp) && + ltefn(version, low.semver)) { + return false + } else if (low.operator === ecomp && ltfn(version, low.semver)) { + return false + } + } + return true +} + +module.exports = outside + + +/***/ }), + +/***/ 15936: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +// given a set of versions and a range, create a "simplified" range +// that includes the same versions that the original range does +// If the original range is shorter than the simplified one, return that. +const satisfies = __nccwpck_require__(76759) +const compare = __nccwpck_require__(32865) +module.exports = (versions, range, options) => { + const set = [] + let first = null + let prev = null + const v = versions.sort((a, b) => compare(a, b, options)) + for (const version of v) { + const included = satisfies(version, range, options) + if (included) { + prev = version + if (!first) { + first = version + } + } else { + if (prev) { + set.push([first, prev]) + } + prev = null + first = null + } + } + if (first) { + set.push([first, null]) + } + + const ranges = [] + for (const [min, max] of set) { + if (min === max) { + ranges.push(min) + } else if (!max && min === v[0]) { + ranges.push('*') + } else if (!max) { + ranges.push(`>=${min}`) + } else if (min === v[0]) { + ranges.push(`<=${max}`) + } else { + ranges.push(`${min} - ${max}`) + } + } + const simplified = ranges.join(' || ') + const original = typeof range.raw === 'string' ? range.raw : String(range) + return simplified.length < original.length ? simplified : range +} + + +/***/ }), + +/***/ 33317: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Range = __nccwpck_require__(77082) +const Comparator = __nccwpck_require__(96783) +const { ANY } = Comparator +const satisfies = __nccwpck_require__(76759) +const compare = __nccwpck_require__(32865) + +// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff: +// - Every simple range `r1, r2, ...` is a null set, OR +// - Every simple range `r1, r2, ...` which is not a null set is a subset of +// some `R1, R2, ...` +// +// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff: +// - If c is only the ANY comparator +// - If C is only the ANY comparator, return true +// - Else if in prerelease mode, return false +// - else replace c with `[>=0.0.0]` +// - If C is only the ANY comparator +// - if in prerelease mode, return true +// - else replace C with `[>=0.0.0]` +// - Let EQ be the set of = comparators in c +// - If EQ is more than one, return true (null set) +// - Let GT be the highest > or >= comparator in c +// - Let LT be the lowest < or <= comparator in c +// - If GT and LT, and GT.semver > LT.semver, return true (null set) +// - If any C is a = range, and GT or LT are set, return false +// - If EQ +// - If GT, and EQ does not satisfy GT, return true (null set) +// - If LT, and EQ does not satisfy LT, return true (null set) +// - If EQ satisfies every C, return true +// - Else return false +// - If GT +// - If GT.semver is lower than any > or >= comp in C, return false +// - If GT is >=, and GT.semver does not satisfy every C, return false +// - If GT.semver has a prerelease, and not in prerelease mode +// - If no C has a prerelease and the GT.semver tuple, return false +// - If LT +// - If LT.semver is greater than any < or <= comp in C, return false +// - If LT is <=, and LT.semver does not satisfy every C, return false +// - If LT.semver has a prerelease, and not in prerelease mode +// - If no C has a prerelease and the LT.semver tuple, return false +// - Else return true + +const subset = (sub, dom, options = {}) => { + if (sub === dom) { + return true + } + + sub = new Range(sub, options) + dom = new Range(dom, options) + let sawNonNull = false + + OUTER: for (const simpleSub of sub.set) { + for (const simpleDom of dom.set) { + const isSub = simpleSubset(simpleSub, simpleDom, options) + sawNonNull = sawNonNull || isSub !== null + if (isSub) { + continue OUTER + } + } + // the null set is a subset of everything, but null simple ranges in + // a complex range should be ignored. so if we saw a non-null range, + // then we know this isn't a subset, but if EVERY simple range was null, + // then it is a subset. + if (sawNonNull) { + return false + } + } + return true +} + +const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')] +const minimumVersion = [new Comparator('>=0.0.0')] + +const simpleSubset = (sub, dom, options) => { + if (sub === dom) { + return true + } + + if (sub.length === 1 && sub[0].semver === ANY) { + if (dom.length === 1 && dom[0].semver === ANY) { + return true + } else if (options.includePrerelease) { + sub = minimumVersionWithPreRelease + } else { + sub = minimumVersion + } + } + + if (dom.length === 1 && dom[0].semver === ANY) { + if (options.includePrerelease) { + return true + } else { + dom = minimumVersion + } + } + + const eqSet = new Set() + let gt, lt + for (const c of sub) { + if (c.operator === '>' || c.operator === '>=') { + gt = higherGT(gt, c, options) + } else if (c.operator === '<' || c.operator === '<=') { + lt = lowerLT(lt, c, options) + } else { + eqSet.add(c.semver) + } + } + + if (eqSet.size > 1) { + return null + } + + let gtltComp + if (gt && lt) { + gtltComp = compare(gt.semver, lt.semver, options) + if (gtltComp > 0) { + return null + } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) { + return null + } + } + + // will iterate one or zero times + for (const eq of eqSet) { + if (gt && !satisfies(eq, String(gt), options)) { + return null + } + + if (lt && !satisfies(eq, String(lt), options)) { + return null + } + + for (const c of dom) { + if (!satisfies(eq, String(c), options)) { + return false + } + } + + return true + } + + let higher, lower + let hasDomLT, hasDomGT + // if the subset has a prerelease, we need a comparator in the superset + // with the same tuple and a prerelease, or it's not a subset + let needDomLTPre = lt && + !options.includePrerelease && + lt.semver.prerelease.length ? lt.semver : false + let needDomGTPre = gt && + !options.includePrerelease && + gt.semver.prerelease.length ? gt.semver : false + // exception: <1.2.3-0 is the same as <1.2.3 + if (needDomLTPre && needDomLTPre.prerelease.length === 1 && + lt.operator === '<' && needDomLTPre.prerelease[0] === 0) { + needDomLTPre = false + } + + for (const c of dom) { + hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=' + hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=' + if (gt) { + if (needDomGTPre) { + if (c.semver.prerelease && c.semver.prerelease.length && + c.semver.major === needDomGTPre.major && + c.semver.minor === needDomGTPre.minor && + c.semver.patch === needDomGTPre.patch) { + needDomGTPre = false + } + } + if (c.operator === '>' || c.operator === '>=') { + higher = higherGT(gt, c, options) + if (higher === c && higher !== gt) { + return false + } + } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) { + return false + } + } + if (lt) { + if (needDomLTPre) { + if (c.semver.prerelease && c.semver.prerelease.length && + c.semver.major === needDomLTPre.major && + c.semver.minor === needDomLTPre.minor && + c.semver.patch === needDomLTPre.patch) { + needDomLTPre = false + } + } + if (c.operator === '<' || c.operator === '<=') { + lower = lowerLT(lt, c, options) + if (lower === c && lower !== lt) { + return false + } + } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) { + return false + } + } + if (!c.operator && (lt || gt) && gtltComp !== 0) { + return false + } + } + + // if there was a < or >, and nothing in the dom, then must be false + // UNLESS it was limited by another range in the other direction. + // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0 + if (gt && hasDomLT && !lt && gtltComp !== 0) { + return false + } + + if (lt && hasDomGT && !gt && gtltComp !== 0) { + return false + } + + // we needed a prerelease range in a specific tuple, but didn't get one + // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0, + // because it includes prereleases in the 1.2.3 tuple + if (needDomGTPre || needDomLTPre) { + return false + } + + return true +} + +// >=1.2.3 is lower than >1.2.3 +const higherGT = (a, b, options) => { + if (!a) { + return b + } + const comp = compare(a.semver, b.semver, options) + return comp > 0 ? a + : comp < 0 ? b + : b.operator === '>' && a.operator === '>=' ? b + : a +} + +// <=1.2.3 is higher than <1.2.3 +const lowerLT = (a, b, options) => { + if (!a) { + return b + } + const comp = compare(a.semver, b.semver, options) + return comp < 0 ? a + : comp > 0 ? b + : b.operator === '<' && a.operator === '<=' ? b + : a +} + +module.exports = subset + + +/***/ }), + +/***/ 52994: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Range = __nccwpck_require__(77082) + +// Mostly just for testing and legacy API reasons +const toComparators = (range, options) => + new Range(range, options).set + .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) + +module.exports = toComparators + + +/***/ }), + +/***/ 47805: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Range = __nccwpck_require__(77082) +const validRange = (range, options) => { + try { + // Return '*' instead of '' so that truthiness works. + // This will throw if it's invalid anyway + return new Range(range, options).range || '*' + } catch (er) { + return null + } +} +module.exports = validRange + + +/***/ }), + +/***/ 21167: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const timespan = __nccwpck_require__(73283); +const PS_SUPPORTED = __nccwpck_require__(56845); +const validateAsymmetricKey = __nccwpck_require__(68095); +const jws = __nccwpck_require__(84383); +const includes = __nccwpck_require__(2411); +const isBoolean = __nccwpck_require__(92414); +const isInteger = __nccwpck_require__(60932); +const isNumber = __nccwpck_require__(59803); +const isPlainObject = __nccwpck_require__(77901); +const isString = __nccwpck_require__(47527); +const once = __nccwpck_require__(87943); +const { KeyObject, createSecretKey, createPrivateKey } = __nccwpck_require__(76982) + +const SUPPORTED_ALGS = ['RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'HS256', 'HS384', 'HS512', 'none']; +if (PS_SUPPORTED) { + SUPPORTED_ALGS.splice(3, 0, 'PS256', 'PS384', 'PS512'); +} + +const sign_options_schema = { + expiresIn: { isValid: function(value) { return isInteger(value) || (isString(value) && value); }, message: '"expiresIn" should be a number of seconds or string representing a timespan' }, + notBefore: { isValid: function(value) { return isInteger(value) || (isString(value) && value); }, message: '"notBefore" should be a number of seconds or string representing a timespan' }, + audience: { isValid: function(value) { return isString(value) || Array.isArray(value); }, message: '"audience" must be a string or array' }, + algorithm: { isValid: includes.bind(null, SUPPORTED_ALGS), message: '"algorithm" must be a valid string enum value' }, + header: { isValid: isPlainObject, message: '"header" must be an object' }, + encoding: { isValid: isString, message: '"encoding" must be a string' }, + issuer: { isValid: isString, message: '"issuer" must be a string' }, + subject: { isValid: isString, message: '"subject" must be a string' }, + jwtid: { isValid: isString, message: '"jwtid" must be a string' }, + noTimestamp: { isValid: isBoolean, message: '"noTimestamp" must be a boolean' }, + keyid: { isValid: isString, message: '"keyid" must be a string' }, + mutatePayload: { isValid: isBoolean, message: '"mutatePayload" must be a boolean' }, + allowInsecureKeySizes: { isValid: isBoolean, message: '"allowInsecureKeySizes" must be a boolean'}, + allowInvalidAsymmetricKeyTypes: { isValid: isBoolean, message: '"allowInvalidAsymmetricKeyTypes" must be a boolean'} +}; + +const registered_claims_schema = { + iat: { isValid: isNumber, message: '"iat" should be a number of seconds' }, + exp: { isValid: isNumber, message: '"exp" should be a number of seconds' }, + nbf: { isValid: isNumber, message: '"nbf" should be a number of seconds' } +}; + +function validate(schema, allowUnknown, object, parameterName) { + if (!isPlainObject(object)) { + throw new Error('Expected "' + parameterName + '" to be a plain object.'); + } + Object.keys(object) + .forEach(function(key) { + const validator = schema[key]; + if (!validator) { + if (!allowUnknown) { + throw new Error('"' + key + '" is not allowed in "' + parameterName + '"'); + } + return; + } + if (!validator.isValid(object[key])) { + throw new Error(validator.message); + } + }); +} + +function validateOptions(options) { + return validate(sign_options_schema, false, options, 'options'); +} + +function validatePayload(payload) { + return validate(registered_claims_schema, true, payload, 'payload'); +} + +const options_to_payload = { + 'audience': 'aud', + 'issuer': 'iss', + 'subject': 'sub', + 'jwtid': 'jti' +}; + +const options_for_objects = [ + 'expiresIn', + 'notBefore', + 'noTimestamp', + 'audience', + 'issuer', + 'subject', + 'jwtid', +]; + +module.exports = function (payload, secretOrPrivateKey, options, callback) { + if (typeof options === 'function') { + callback = options; + options = {}; + } else { + options = options || {}; + } + + const isObjectPayload = typeof payload === 'object' && + !Buffer.isBuffer(payload); + + const header = Object.assign({ + alg: options.algorithm || 'HS256', + typ: isObjectPayload ? 'JWT' : undefined, + kid: options.keyid + }, options.header); + + function failure(err) { + if (callback) { + return callback(err); + } + throw err; + } + + if (!secretOrPrivateKey && options.algorithm !== 'none') { + return failure(new Error('secretOrPrivateKey must have a value')); + } + + if (secretOrPrivateKey != null && !(secretOrPrivateKey instanceof KeyObject)) { + try { + secretOrPrivateKey = createPrivateKey(secretOrPrivateKey) + } catch (_) { + try { + secretOrPrivateKey = createSecretKey(typeof secretOrPrivateKey === 'string' ? Buffer.from(secretOrPrivateKey) : secretOrPrivateKey) + } catch (_) { + return failure(new Error('secretOrPrivateKey is not valid key material')); + } + } + } + + if (header.alg.startsWith('HS') && secretOrPrivateKey.type !== 'secret') { + return failure(new Error((`secretOrPrivateKey must be a symmetric key when using ${header.alg}`))) + } else if (/^(?:RS|PS|ES)/.test(header.alg)) { + if (secretOrPrivateKey.type !== 'private') { + return failure(new Error((`secretOrPrivateKey must be an asymmetric key when using ${header.alg}`))) + } + if (!options.allowInsecureKeySizes && + !header.alg.startsWith('ES') && + secretOrPrivateKey.asymmetricKeyDetails !== undefined && //KeyObject.asymmetricKeyDetails is supported in Node 15+ + secretOrPrivateKey.asymmetricKeyDetails.modulusLength < 2048) { + return failure(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`)); + } + } + + if (typeof payload === 'undefined') { + return failure(new Error('payload is required')); + } else if (isObjectPayload) { + try { + validatePayload(payload); + } + catch (error) { + return failure(error); + } + if (!options.mutatePayload) { + payload = Object.assign({},payload); + } + } else { + const invalid_options = options_for_objects.filter(function (opt) { + return typeof options[opt] !== 'undefined'; + }); + + if (invalid_options.length > 0) { + return failure(new Error('invalid ' + invalid_options.join(',') + ' option for ' + (typeof payload ) + ' payload')); + } + } + + if (typeof payload.exp !== 'undefined' && typeof options.expiresIn !== 'undefined') { + return failure(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.')); + } + + if (typeof payload.nbf !== 'undefined' && typeof options.notBefore !== 'undefined') { + return failure(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.')); + } + + try { + validateOptions(options); + } + catch (error) { + return failure(error); + } + + if (!options.allowInvalidAsymmetricKeyTypes) { + try { + validateAsymmetricKey(header.alg, secretOrPrivateKey); + } catch (error) { + return failure(error); + } + } + + const timestamp = payload.iat || Math.floor(Date.now() / 1000); + + if (options.noTimestamp) { + delete payload.iat; + } else if (isObjectPayload) { + payload.iat = timestamp; + } + + if (typeof options.notBefore !== 'undefined') { + try { + payload.nbf = timespan(options.notBefore, timestamp); + } + catch (err) { + return failure(err); + } + if (typeof payload.nbf === 'undefined') { + return failure(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); + } + } + + if (typeof options.expiresIn !== 'undefined' && typeof payload === 'object') { + try { + payload.exp = timespan(options.expiresIn, timestamp); + } + catch (err) { + return failure(err); + } + if (typeof payload.exp === 'undefined') { + return failure(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); + } + } + + Object.keys(options_to_payload).forEach(function (key) { + const claim = options_to_payload[key]; + if (typeof options[key] !== 'undefined') { + if (typeof payload[claim] !== 'undefined') { + return failure(new Error('Bad "options.' + key + '" option. The payload already has an "' + claim + '" property.')); + } + payload[claim] = options[key]; + } + }); + + const encoding = options.encoding || 'utf8'; + + if (typeof callback === 'function') { + callback = callback && once(callback); + + jws.createSign({ + header: header, + privateKey: secretOrPrivateKey, + payload: payload, + encoding: encoding + }).once('error', callback) + .once('done', function (signature) { + // TODO: Remove in favor of the modulus length check before signing once node 15+ is the minimum supported version + if(!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) { + return callback(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`)) + } + callback(null, signature); + }); + } else { + let signature = jws.sign({header: header, payload: payload, secret: secretOrPrivateKey, encoding: encoding}); + // TODO: Remove in favor of the modulus length check before signing once node 15+ is the minimum supported version + if(!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) { + throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`) + } + return signature + } +}; + + +/***/ }), + +/***/ 30127: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const JsonWebTokenError = __nccwpck_require__(13937); +const NotBeforeError = __nccwpck_require__(10018); +const TokenExpiredError = __nccwpck_require__(20720); +const decode = __nccwpck_require__(88256); +const timespan = __nccwpck_require__(73283); +const validateAsymmetricKey = __nccwpck_require__(68095); +const PS_SUPPORTED = __nccwpck_require__(56845); +const jws = __nccwpck_require__(84383); +const {KeyObject, createSecretKey, createPublicKey} = __nccwpck_require__(76982); + +const PUB_KEY_ALGS = ['RS256', 'RS384', 'RS512']; +const EC_KEY_ALGS = ['ES256', 'ES384', 'ES512']; +const RSA_KEY_ALGS = ['RS256', 'RS384', 'RS512']; +const HS_ALGS = ['HS256', 'HS384', 'HS512']; + +if (PS_SUPPORTED) { + PUB_KEY_ALGS.splice(PUB_KEY_ALGS.length, 0, 'PS256', 'PS384', 'PS512'); + RSA_KEY_ALGS.splice(RSA_KEY_ALGS.length, 0, 'PS256', 'PS384', 'PS512'); +} + +module.exports = function (jwtString, secretOrPublicKey, options, callback) { + if ((typeof options === 'function') && !callback) { + callback = options; + options = {}; + } + + if (!options) { + options = {}; + } + + //clone this object since we are going to mutate it. + options = Object.assign({}, options); + + let done; + + if (callback) { + done = callback; + } else { + done = function(err, data) { + if (err) throw err; + return data; + }; + } + + if (options.clockTimestamp && typeof options.clockTimestamp !== 'number') { + return done(new JsonWebTokenError('clockTimestamp must be a number')); + } + + if (options.nonce !== undefined && (typeof options.nonce !== 'string' || options.nonce.trim() === '')) { + return done(new JsonWebTokenError('nonce must be a non-empty string')); + } + + if (options.allowInvalidAsymmetricKeyTypes !== undefined && typeof options.allowInvalidAsymmetricKeyTypes !== 'boolean') { + return done(new JsonWebTokenError('allowInvalidAsymmetricKeyTypes must be a boolean')); + } + + const clockTimestamp = options.clockTimestamp || Math.floor(Date.now() / 1000); + + if (!jwtString){ + return done(new JsonWebTokenError('jwt must be provided')); + } + + if (typeof jwtString !== 'string') { + return done(new JsonWebTokenError('jwt must be a string')); + } + + const parts = jwtString.split('.'); + + if (parts.length !== 3){ + return done(new JsonWebTokenError('jwt malformed')); + } + + let decodedToken; + + try { + decodedToken = decode(jwtString, { complete: true }); + } catch(err) { + return done(err); + } + + if (!decodedToken) { + return done(new JsonWebTokenError('invalid token')); + } + + const header = decodedToken.header; + let getSecret; + + if(typeof secretOrPublicKey === 'function') { + if(!callback) { + return done(new JsonWebTokenError('verify must be called asynchronous if secret or public key is provided as a callback')); + } + + getSecret = secretOrPublicKey; + } + else { + getSecret = function(header, secretCallback) { + return secretCallback(null, secretOrPublicKey); + }; + } + + return getSecret(header, function(err, secretOrPublicKey) { + if(err) { + return done(new JsonWebTokenError('error in secret or public key callback: ' + err.message)); + } + + const hasSignature = parts[2].trim() !== ''; + + if (!hasSignature && secretOrPublicKey){ + return done(new JsonWebTokenError('jwt signature is required')); + } + + if (hasSignature && !secretOrPublicKey) { + return done(new JsonWebTokenError('secret or public key must be provided')); + } + + if (!hasSignature && !options.algorithms) { + return done(new JsonWebTokenError('please specify "none" in "algorithms" to verify unsigned tokens')); + } + + if (secretOrPublicKey != null && !(secretOrPublicKey instanceof KeyObject)) { + try { + secretOrPublicKey = createPublicKey(secretOrPublicKey); + } catch (_) { + try { + secretOrPublicKey = createSecretKey(typeof secretOrPublicKey === 'string' ? Buffer.from(secretOrPublicKey) : secretOrPublicKey); + } catch (_) { + return done(new JsonWebTokenError('secretOrPublicKey is not valid key material')) + } + } + } + + if (!options.algorithms) { + if (secretOrPublicKey.type === 'secret') { + options.algorithms = HS_ALGS; + } else if (['rsa', 'rsa-pss'].includes(secretOrPublicKey.asymmetricKeyType)) { + options.algorithms = RSA_KEY_ALGS + } else if (secretOrPublicKey.asymmetricKeyType === 'ec') { + options.algorithms = EC_KEY_ALGS + } else { + options.algorithms = PUB_KEY_ALGS + } + } + + if (options.algorithms.indexOf(decodedToken.header.alg) === -1) { + return done(new JsonWebTokenError('invalid algorithm')); + } + + if (header.alg.startsWith('HS') && secretOrPublicKey.type !== 'secret') { + return done(new JsonWebTokenError((`secretOrPublicKey must be a symmetric key when using ${header.alg}`))) + } else if (/^(?:RS|PS|ES)/.test(header.alg) && secretOrPublicKey.type !== 'public') { + return done(new JsonWebTokenError((`secretOrPublicKey must be an asymmetric key when using ${header.alg}`))) + } + + if (!options.allowInvalidAsymmetricKeyTypes) { + try { + validateAsymmetricKey(header.alg, secretOrPublicKey); + } catch (e) { + return done(e); + } + } + + let valid; + + try { + valid = jws.verify(jwtString, decodedToken.header.alg, secretOrPublicKey); + } catch (e) { + return done(e); + } + + if (!valid) { + return done(new JsonWebTokenError('invalid signature')); + } + + const payload = decodedToken.payload; + + if (typeof payload.nbf !== 'undefined' && !options.ignoreNotBefore) { + if (typeof payload.nbf !== 'number') { + return done(new JsonWebTokenError('invalid nbf value')); + } + if (payload.nbf > clockTimestamp + (options.clockTolerance || 0)) { + return done(new NotBeforeError('jwt not active', new Date(payload.nbf * 1000))); + } + } + + if (typeof payload.exp !== 'undefined' && !options.ignoreExpiration) { + if (typeof payload.exp !== 'number') { + return done(new JsonWebTokenError('invalid exp value')); + } + if (clockTimestamp >= payload.exp + (options.clockTolerance || 0)) { + return done(new TokenExpiredError('jwt expired', new Date(payload.exp * 1000))); + } + } + + if (options.audience) { + const audiences = Array.isArray(options.audience) ? options.audience : [options.audience]; + const target = Array.isArray(payload.aud) ? payload.aud : [payload.aud]; + + const match = target.some(function (targetAudience) { + return audiences.some(function (audience) { + return audience instanceof RegExp ? audience.test(targetAudience) : audience === targetAudience; + }); + }); + + if (!match) { + return done(new JsonWebTokenError('jwt audience invalid. expected: ' + audiences.join(' or '))); + } + } + + if (options.issuer) { + const invalid_issuer = + (typeof options.issuer === 'string' && payload.iss !== options.issuer) || + (Array.isArray(options.issuer) && options.issuer.indexOf(payload.iss) === -1); + + if (invalid_issuer) { + return done(new JsonWebTokenError('jwt issuer invalid. expected: ' + options.issuer)); + } + } + + if (options.subject) { + if (payload.sub !== options.subject) { + return done(new JsonWebTokenError('jwt subject invalid. expected: ' + options.subject)); + } + } + + if (options.jwtid) { + if (payload.jti !== options.jwtid) { + return done(new JsonWebTokenError('jwt jwtid invalid. expected: ' + options.jwtid)); + } + } + + if (options.nonce) { + if (payload.nonce !== options.nonce) { + return done(new JsonWebTokenError('jwt nonce invalid. expected: ' + options.nonce)); + } + } + + if (options.maxAge) { + if (typeof payload.iat !== 'number') { + return done(new JsonWebTokenError('iat required when maxAge is specified')); + } + + const maxAgeTimestamp = timespan(options.maxAge, payload.iat); + if (typeof maxAgeTimestamp === 'undefined') { + return done(new JsonWebTokenError('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); + } + if (clockTimestamp >= maxAgeTimestamp + (options.clockTolerance || 0)) { + return done(new TokenExpiredError('maxAge exceeded', new Date(maxAgeTimestamp * 1000))); + } + } + + if (options.complete === true) { + const signature = decodedToken.signature; + + return done(null, { + header: header, + payload: payload, + signature: signature + }); + } + + return done(null, payload); + }); +}; + + +/***/ }), + +/***/ 51553: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var Buffer = (__nccwpck_require__(32857).Buffer); +var crypto = __nccwpck_require__(76982); +var formatEcdsa = __nccwpck_require__(59086); +var util = __nccwpck_require__(39023); + +var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".' +var MSG_INVALID_SECRET = 'secret must be a string or buffer'; +var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer'; +var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; + +var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; +if (supportsKeyObjects) { + MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; + MSG_INVALID_SECRET += 'or a KeyObject'; +} + +function checkIsPublicKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return; + } + + if (!supportsKeyObjects) { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key !== 'object') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.type !== 'string') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.asymmetricKeyType !== 'string') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.export !== 'function') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } +}; + +function checkIsPrivateKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return; + } + + if (typeof key === 'object') { + return; + } + + throw typeError(MSG_INVALID_SIGNER_KEY); +}; + +function checkIsSecretKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return key; + } + + if (!supportsKeyObjects) { + throw typeError(MSG_INVALID_SECRET); + } + + if (typeof key !== 'object') { + throw typeError(MSG_INVALID_SECRET); + } + + if (key.type !== 'secret') { + throw typeError(MSG_INVALID_SECRET); + } + + if (typeof key.export !== 'function') { + throw typeError(MSG_INVALID_SECRET); + } +} + +function fromBase64(base64) { + return base64 + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function toBase64(base64url) { + base64url = base64url.toString(); + + var padding = 4 - base64url.length % 4; + if (padding !== 4) { + for (var i = 0; i < padding; ++i) { + base64url += '='; + } + } + + return base64url + .replace(/\-/g, '+') + .replace(/_/g, '/'); +} + +function typeError(template) { + var args = [].slice.call(arguments, 1); + var errMsg = util.format.bind(util, template).apply(null, args); + return new TypeError(errMsg); +} + +function bufferOrString(obj) { + return Buffer.isBuffer(obj) || typeof obj === 'string'; +} + +function normalizeInput(thing) { + if (!bufferOrString(thing)) + thing = JSON.stringify(thing); + return thing; +} + +function createHmacSigner(bits) { + return function sign(thing, secret) { + checkIsSecretKey(secret); + thing = normalizeInput(thing); + var hmac = crypto.createHmac('sha' + bits, secret); + var sig = (hmac.update(thing), hmac.digest('base64')) + return fromBase64(sig); + } +} + +var bufferEqual; +var timingSafeEqual = 'timingSafeEqual' in crypto ? function timingSafeEqual(a, b) { + if (a.byteLength !== b.byteLength) { + return false; + } + + return crypto.timingSafeEqual(a, b) +} : function timingSafeEqual(a, b) { + if (!bufferEqual) { + bufferEqual = __nccwpck_require__(81377); + } + + return bufferEqual(a, b) +} + +function createHmacVerifier(bits) { + return function verify(thing, signature, secret) { + var computedSig = createHmacSigner(bits)(thing, secret); + return timingSafeEqual(Buffer.from(signature), Buffer.from(computedSig)); + } +} + +function createKeySigner(bits) { + return function sign(thing, privateKey) { + checkIsPrivateKey(privateKey); + thing = normalizeInput(thing); + // Even though we are specifying "RSA" here, this works with ECDSA + // keys as well. + var signer = crypto.createSign('RSA-SHA' + bits); + var sig = (signer.update(thing), signer.sign(privateKey, 'base64')); + return fromBase64(sig); + } +} + +function createKeyVerifier(bits) { + return function verify(thing, signature, publicKey) { + checkIsPublicKey(publicKey); + thing = normalizeInput(thing); + signature = toBase64(signature); + var verifier = crypto.createVerify('RSA-SHA' + bits); + verifier.update(thing); + return verifier.verify(publicKey, signature, 'base64'); + } +} + +function createPSSKeySigner(bits) { + return function sign(thing, privateKey) { + checkIsPrivateKey(privateKey); + thing = normalizeInput(thing); + var signer = crypto.createSign('RSA-SHA' + bits); + var sig = (signer.update(thing), signer.sign({ + key: privateKey, + padding: crypto.constants.RSA_PKCS1_PSS_PADDING, + saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST + }, 'base64')); + return fromBase64(sig); + } +} + +function createPSSKeyVerifier(bits) { + return function verify(thing, signature, publicKey) { + checkIsPublicKey(publicKey); + thing = normalizeInput(thing); + signature = toBase64(signature); + var verifier = crypto.createVerify('RSA-SHA' + bits); + verifier.update(thing); + return verifier.verify({ + key: publicKey, + padding: crypto.constants.RSA_PKCS1_PSS_PADDING, + saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST + }, signature, 'base64'); + } +} + +function createECDSASigner(bits) { + var inner = createKeySigner(bits); + return function sign() { + var signature = inner.apply(null, arguments); + signature = formatEcdsa.derToJose(signature, 'ES' + bits); + return signature; + }; +} + +function createECDSAVerifer(bits) { + var inner = createKeyVerifier(bits); + return function verify(thing, signature, publicKey) { + signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64'); + var result = inner(thing, signature, publicKey); + return result; + }; +} + +function createNoneSigner() { + return function sign() { + return ''; + } +} + +function createNoneVerifier() { + return function verify(thing, signature) { + return signature === ''; + } +} + +module.exports = function jwa(algorithm) { + var signerFactories = { + hs: createHmacSigner, + rs: createKeySigner, + ps: createPSSKeySigner, + es: createECDSASigner, + none: createNoneSigner, + } + var verifierFactories = { + hs: createHmacVerifier, + rs: createKeyVerifier, + ps: createPSSKeyVerifier, + es: createECDSAVerifer, + none: createNoneVerifier, + } + var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); + if (!match) + throw typeError(MSG_INVALID_ALGORITHM, algorithm); + var algo = (match[1] || match[3]).toLowerCase(); + var bits = match[2]; + + return { + sign: signerFactories[algo](bits), + verify: verifierFactories[algo](bits), + } +}; + + +/***/ }), + +/***/ 84383: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +/*global exports*/ +var SignStream = __nccwpck_require__(53007); +var VerifyStream = __nccwpck_require__(40347); + +var ALGORITHMS = [ + 'HS256', 'HS384', 'HS512', + 'RS256', 'RS384', 'RS512', + 'PS256', 'PS384', 'PS512', + 'ES256', 'ES384', 'ES512' +]; + +exports.ALGORITHMS = ALGORITHMS; +exports.sign = SignStream.sign; +exports.verify = VerifyStream.verify; +exports.decode = VerifyStream.decode; +exports.isValid = VerifyStream.isValid; +exports.createSign = function createSign(opts) { + return new SignStream(opts); +}; +exports.createVerify = function createVerify(opts) { + return new VerifyStream(opts); +}; + + +/***/ }), + +/***/ 40504: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module, process*/ +var Buffer = (__nccwpck_require__(32857).Buffer); +var Stream = __nccwpck_require__(2203); +var util = __nccwpck_require__(39023); + +function DataStream(data) { + this.buffer = null; + this.writable = true; + this.readable = true; + + // No input + if (!data) { + this.buffer = Buffer.alloc(0); + return this; + } + + // Stream + if (typeof data.pipe === 'function') { + this.buffer = Buffer.alloc(0); + data.pipe(this); + return this; + } + + // Buffer or String + // or Object (assumedly a passworded key) + if (data.length || typeof data === 'object') { + this.buffer = data; + this.writable = false; + process.nextTick(function () { + this.emit('end', data); + this.readable = false; + this.emit('close'); + }.bind(this)); + return this; + } + + throw new TypeError('Unexpected data type ('+ typeof data + ')'); +} +util.inherits(DataStream, Stream); + +DataStream.prototype.write = function write(data) { + this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); + this.emit('data', data); +}; + +DataStream.prototype.end = function end(data) { + if (data) + this.write(data); + this.emit('end', data); + this.emit('close'); + this.writable = false; + this.readable = false; +}; + +module.exports = DataStream; + + +/***/ }), + +/***/ 53007: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(32857).Buffer); +var DataStream = __nccwpck_require__(40504); +var jwa = __nccwpck_require__(51553); +var Stream = __nccwpck_require__(2203); +var toString = __nccwpck_require__(33415); +var util = __nccwpck_require__(39023); + +function base64url(string, encoding) { + return Buffer + .from(string, encoding) + .toString('base64') + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function jwsSecuredInput(header, payload, encoding) { + encoding = encoding || 'utf8'; + var encodedHeader = base64url(toString(header), 'binary'); + var encodedPayload = base64url(toString(payload), encoding); + return util.format('%s.%s', encodedHeader, encodedPayload); +} + +function jwsSign(opts) { + var header = opts.header; + var payload = opts.payload; + var secretOrKey = opts.secret || opts.privateKey; + var encoding = opts.encoding; + var algo = jwa(header.alg); + var securedInput = jwsSecuredInput(header, payload, encoding); + var signature = algo.sign(securedInput, secretOrKey); + return util.format('%s.%s', securedInput, signature); +} + +function SignStream(opts) { + var secret = opts.secret; + secret = secret == null ? opts.privateKey : secret; + secret = secret == null ? opts.key : secret; + if (/^hs/i.test(opts.header.alg) === true && secret == null) { + throw new TypeError('secret must be a string or buffer or a KeyObject') + } + var secretStream = new DataStream(secret); + this.readable = true; + this.header = opts.header; + this.encoding = opts.encoding; + this.secret = this.privateKey = this.key = secretStream; + this.payload = new DataStream(opts.payload); + this.secret.once('close', function () { + if (!this.payload.writable && this.readable) + this.sign(); + }.bind(this)); + + this.payload.once('close', function () { + if (!this.secret.writable && this.readable) + this.sign(); + }.bind(this)); +} +util.inherits(SignStream, Stream); + +SignStream.prototype.sign = function sign() { + try { + var signature = jwsSign({ + header: this.header, + payload: this.payload.buffer, + secret: this.secret.buffer, + encoding: this.encoding + }); + this.emit('done', signature); + this.emit('data', signature); + this.emit('end'); + this.readable = false; + return signature; + } catch (e) { + this.readable = false; + this.emit('error', e); + this.emit('close'); + } +}; + +SignStream.sign = jwsSign; + +module.exports = SignStream; + + +/***/ }), + +/***/ 33415: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(20181).Buffer); + +module.exports = function toString(obj) { + if (typeof obj === 'string') + return obj; + if (typeof obj === 'number' || Buffer.isBuffer(obj)) + return obj.toString(); + return JSON.stringify(obj); +}; + + +/***/ }), + +/***/ 40347: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(32857).Buffer); +var DataStream = __nccwpck_require__(40504); +var jwa = __nccwpck_require__(51553); +var Stream = __nccwpck_require__(2203); +var toString = __nccwpck_require__(33415); +var util = __nccwpck_require__(39023); +var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; + +function isObject(thing) { + return Object.prototype.toString.call(thing) === '[object Object]'; +} + +function safeJsonParse(thing) { + if (isObject(thing)) + return thing; + try { return JSON.parse(thing); } + catch (e) { return undefined; } +} + +function headerFromJWS(jwsSig) { + var encodedHeader = jwsSig.split('.', 1)[0]; + return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary')); +} + +function securedInputFromJWS(jwsSig) { + return jwsSig.split('.', 2).join('.'); +} + +function signatureFromJWS(jwsSig) { + return jwsSig.split('.')[2]; +} + +function payloadFromJWS(jwsSig, encoding) { + encoding = encoding || 'utf8'; + var payload = jwsSig.split('.')[1]; + return Buffer.from(payload, 'base64').toString(encoding); +} + +function isValidJws(string) { + return JWS_REGEX.test(string) && !!headerFromJWS(string); +} + +function jwsVerify(jwsSig, algorithm, secretOrKey) { + if (!algorithm) { + var err = new Error("Missing algorithm parameter for jws.verify"); + err.code = "MISSING_ALGORITHM"; + throw err; + } + jwsSig = toString(jwsSig); + var signature = signatureFromJWS(jwsSig); + var securedInput = securedInputFromJWS(jwsSig); + var algo = jwa(algorithm); + return algo.verify(securedInput, signature, secretOrKey); +} + +function jwsDecode(jwsSig, opts) { + opts = opts || {}; + jwsSig = toString(jwsSig); + + if (!isValidJws(jwsSig)) + return null; + + var header = headerFromJWS(jwsSig); + + if (!header) + return null; + + var payload = payloadFromJWS(jwsSig); + if (header.typ === 'JWT' || opts.json) + payload = JSON.parse(payload, opts.encoding); + + return { + header: header, + payload: payload, + signature: signatureFromJWS(jwsSig) + }; +} + +function VerifyStream(opts) { + opts = opts || {}; + var secretOrKey = opts.secret; + secretOrKey = secretOrKey == null ? opts.publicKey : secretOrKey; + secretOrKey = secretOrKey == null ? opts.key : secretOrKey; + if (/^hs/i.test(opts.algorithm) === true && secretOrKey == null) { + throw new TypeError('secret must be a string or buffer or a KeyObject') + } + var secretStream = new DataStream(secretOrKey); + this.readable = true; + this.algorithm = opts.algorithm; + this.encoding = opts.encoding; + this.secret = this.publicKey = this.key = secretStream; + this.signature = new DataStream(opts.signature); + this.secret.once('close', function () { + if (!this.signature.writable && this.readable) + this.verify(); + }.bind(this)); + + this.signature.once('close', function () { + if (!this.secret.writable && this.readable) + this.verify(); + }.bind(this)); +} +util.inherits(VerifyStream, Stream); +VerifyStream.prototype.verify = function verify() { + try { + var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); + var obj = jwsDecode(this.signature.buffer, this.encoding); + this.emit('done', valid, obj); + this.emit('data', valid); + this.emit('end'); + this.readable = false; + return valid; + } catch (e) { + this.readable = false; + this.emit('error', e); + this.emit('close'); + } +}; + +VerifyStream.decode = jwsDecode; +VerifyStream.isValid = isValidJws; +VerifyStream.verify = jwsVerify; + +module.exports = VerifyStream; + + +/***/ }), + +/***/ 86888: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; + +/** Used to match words composed of alphanumeric characters. */ +var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; + +/** Used to match Latin Unicode letters (excluding mathematical operators). */ +var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; + +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', + rsComboSymbolsRange = '\\u20d0-\\u20f0', + rsDingbatRange = '\\u2700-\\u27bf', + rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', + rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', + rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', + rsPunctuationRange = '\\u2000-\\u206f', + rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', + rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', + rsVarRange = '\\ufe0e\\ufe0f', + rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; + +/** Used to compose unicode capture groups. */ +var rsApos = "['\u2019]", + rsAstral = '[' + rsAstralRange + ']', + rsBreak = '[' + rsBreakRange + ']', + rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']', + rsDigits = '\\d+', + rsDingbat = '[' + rsDingbatRange + ']', + rsLower = '[' + rsLowerRange + ']', + rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', + rsNonAstral = '[^' + rsAstralRange + ']', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsUpper = '[' + rsUpperRange + ']', + rsZWJ = '\\u200d'; + +/** Used to compose unicode regexes. */ +var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')', + rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')', + rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', + rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', + reOptMod = rsModifier + '?', + rsOptVar = '[' + rsVarRange + ']?', + rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsSeq = rsOptVar + reOptMod + rsOptJoin, + rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, + rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; + +/** Used to match apostrophes. */ +var reApos = RegExp(rsApos, 'g'); + +/** + * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and + * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). + */ +var reComboMark = RegExp(rsCombo, 'g'); + +/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ +var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + +/** Used to match complex or compound words. */ +var reUnicodeWord = RegExp([ + rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', + rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', + rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, + rsUpper + '+' + rsOptUpperContr, + rsDigits, + rsEmoji +].join('|'), 'g'); + +/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ +var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); + +/** Used to detect strings that need a more robust regexp to match words. */ +var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; + +/** Used to map Latin Unicode letters to basic Latin letters. */ +var deburredLetters = { + // Latin-1 Supplement block. + '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', + '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', + '\xc7': 'C', '\xe7': 'c', + '\xd0': 'D', '\xf0': 'd', + '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', + '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', + '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', + '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', + '\xd1': 'N', '\xf1': 'n', + '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', + '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', + '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', + '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', + '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', + '\xc6': 'Ae', '\xe6': 'ae', + '\xde': 'Th', '\xfe': 'th', + '\xdf': 'ss', + // Latin Extended-A block. + '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', + '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', + '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', + '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', + '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', + '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', + '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', + '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', + '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', + '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', + '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', + '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', + '\u0134': 'J', '\u0135': 'j', + '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', + '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', + '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', + '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', + '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', + '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', + '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', + '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', + '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', + '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', + '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', + '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', + '\u0163': 't', '\u0165': 't', '\u0167': 't', + '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', + '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', + '\u0174': 'W', '\u0175': 'w', + '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', + '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', + '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', + '\u0132': 'IJ', '\u0133': 'ij', + '\u0152': 'Oe', '\u0153': 'oe', + '\u0149': "'n", '\u017f': 'ss' +}; + +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +/** + * A specialized version of `_.reduce` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initAccum] Specify using the first element of `array` as + * the initial value. + * @returns {*} Returns the accumulated value. + */ +function arrayReduce(array, iteratee, accumulator, initAccum) { + var index = -1, + length = array ? array.length : 0; + + if (initAccum && length) { + accumulator = array[++index]; + } + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); + } + return accumulator; +} + +/** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function asciiToArray(string) { + return string.split(''); +} + +/** + * Splits an ASCII `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ +function asciiWords(string) { + return string.match(reAsciiWord) || []; +} + +/** + * The base implementation of `_.propertyOf` without support for deep paths. + * + * @private + * @param {Object} object The object to query. + * @returns {Function} Returns the new accessor function. + */ +function basePropertyOf(object) { + return function(key) { + return object == null ? undefined : object[key]; + }; +} + +/** + * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A + * letters to basic Latin letters. + * + * @private + * @param {string} letter The matched letter to deburr. + * @returns {string} Returns the deburred letter. + */ +var deburrLetter = basePropertyOf(deburredLetters); + +/** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */ +function hasUnicode(string) { + return reHasUnicode.test(string); +} + +/** + * Checks if `string` contains a word composed of Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a word is found, else `false`. + */ +function hasUnicodeWord(string) { + return reHasUnicodeWord.test(string); +} + +/** + * Converts `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function stringToArray(string) { + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); +} + +/** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function unicodeToArray(string) { + return string.match(reUnicode) || []; +} + +/** + * Splits a Unicode `string` into an array of its words. + * + * @private + * @param {string} The string to inspect. + * @returns {Array} Returns the words of `string`. + */ +function unicodeWords(string) { + return string.match(reUnicodeWord) || []; +} + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Built-in value references. */ +var Symbol = root.Symbol; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; + +/** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ +function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; +} + +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +/** + * Casts `array` to a slice if it's needed. + * + * @private + * @param {Array} array The array to inspect. + * @param {number} start The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the cast slice. + */ +function castSlice(array, start, end) { + var length = array.length; + end = end === undefined ? length : end; + return (!start && end >= length) ? array : baseSlice(array, start, end); +} + +/** + * Creates a function like `_.lowerFirst`. + * + * @private + * @param {string} methodName The name of the `String` case method to use. + * @returns {Function} Returns the new case function. + */ +function createCaseFirst(methodName) { + return function(string) { + string = toString(string); + + var strSymbols = hasUnicode(string) + ? stringToArray(string) + : undefined; + + var chr = strSymbols + ? strSymbols[0] + : string.charAt(0); + + var trailing = strSymbols + ? castSlice(strSymbols, 1).join('') + : string.slice(1); + + return chr[methodName]() + trailing; + }; +} + +/** + * Creates a function like `_.camelCase`. + * + * @private + * @param {Function} callback The function to combine each word. + * @returns {Function} Returns the new compounder function. + */ +function createCompounder(callback) { + return function(string) { + return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); + }; +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && objectToString.call(value) == symbolTag); +} + +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {string} Returns the string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} + +/** + * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the camel cased string. + * @example + * + * _.camelCase('Foo Bar'); + * // => 'fooBar' + * + * _.camelCase('--foo-bar--'); + * // => 'fooBar' + * + * _.camelCase('__FOO_BAR__'); + * // => 'fooBar' + */ +var camelCase = createCompounder(function(result, word, index) { + word = word.toLowerCase(); + return result + (index ? capitalize(word) : word); +}); + +/** + * Converts the first character of `string` to upper case and the remaining + * to lower case. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to capitalize. + * @returns {string} Returns the capitalized string. + * @example + * + * _.capitalize('FRED'); + * // => 'Fred' + */ +function capitalize(string) { + return upperFirst(toString(string).toLowerCase()); +} + +/** + * Deburrs `string` by converting + * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) + * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) + * letters to basic Latin letters and removing + * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to deburr. + * @returns {string} Returns the deburred string. + * @example + * + * _.deburr('déjà vu'); + * // => 'deja vu' + */ +function deburr(string) { + string = toString(string); + return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); +} + +/** + * Converts the first character of `string` to upper case. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.upperFirst('fred'); + * // => 'Fred' + * + * _.upperFirst('FRED'); + * // => 'FRED' + */ +var upperFirst = createCaseFirst('toUpperCase'); + +/** + * Splits `string` into an array of its words. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to inspect. + * @param {RegExp|string} [pattern] The pattern to match words. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the words of `string`. + * @example + * + * _.words('fred, barney, & pebbles'); + * // => ['fred', 'barney', 'pebbles'] + * + * _.words('fred, barney, & pebbles', /[^, ]+/g); + * // => ['fred', 'barney', '&', 'pebbles'] + */ +function words(string, pattern, guard) { + string = toString(string); + pattern = guard ? undefined : pattern; + + if (pattern === undefined) { + return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); + } + return string.match(pattern) || []; +} + +module.exports = camelCase; + + +/***/ }), + +/***/ 2411: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_SAFE_INTEGER = 9007199254740991, + MAX_INTEGER = 1.7976931348623157e+308, + NAN = 0 / 0; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +/** Used to match leading and trailing whitespace. */ +var reTrim = /^\s+|\s+$/g; + +/** Used to detect bad signed hexadecimal string values. */ +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + +/** Used to detect binary string values. */ +var reIsBinary = /^0b[01]+$/i; + +/** Used to detect octal string values. */ +var reIsOctal = /^0o[0-7]+$/i; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** Built-in method references without a dependency on `root`. */ +var freeParseInt = parseInt; + +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array ? array.length : 0, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} + +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + if (value !== value) { + return baseFindIndex(array, baseIsNaN, fromIndex); + } + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +/** + * The base implementation of `_.values` and `_.valuesIn` which creates an + * array of `object` property values corresponding to the property names + * of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the array of property values. + */ +function baseValues(object, props) { + return arrayMap(props, function(key) { + return object[key]; + }); +} + +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object), + nativeMax = Math.max; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. + // Safari 9 makes `arguments.length` enumerable in strict mode. + var result = (isArray(value) || isArguments(value)) + ? baseTimes(value.length, String) + : []; + + var length = result.length, + skipIndexes = !!length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && (key == 'length' || isIndex(key, length)))) { + result.push(key); + } + } + return result; +} + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && + (typeof value == 'number' || reIsUint.test(value)) && + (value > -1 && value % 1 == 0 && value < length); +} + +/** + * Checks if `value` is likely a prototype object. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. + */ +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; +} + +/** + * Checks if `value` is in `collection`. If `collection` is a string, it's + * checked for a substring of `value`, otherwise + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * is used for equality comparisons. If `fromIndex` is negative, it's used as + * the offset from the end of `collection`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {boolean} Returns `true` if `value` is found, else `false`. + * @example + * + * _.includes([1, 2, 3], 1); + * // => true + * + * _.includes([1, 2, 3], 1, 2); + * // => false + * + * _.includes({ 'a': 1, 'b': 2 }, 1); + * // => true + * + * _.includes('abcd', 'bc'); + * // => true + */ +function includes(collection, value, fromIndex, guard) { + collection = isArrayLike(collection) ? collection : values(collection); + fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; + + var length = collection.length; + if (fromIndex < 0) { + fromIndex = nativeMax(length + fromIndex, 0); + } + return isString(collection) + ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) + : (!!length && baseIndexOf(collection, value, fromIndex) > -1); +} + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +function isArguments(value) { + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. + return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && + (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); +} + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ +function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); +} + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && objectToString.call(value) == symbolTag); +} + +/** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ +function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; +} + +/** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ +function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; +} + +/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ +function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); +} + +/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ +function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); +} + +/** + * Creates an array of the own enumerable string keyed property values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.values(new Foo); + * // => [1, 2] (iteration order is not guaranteed) + * + * _.values('hi'); + * // => ['h', 'i'] + */ +function values(object) { + return object ? baseValues(object, keys(object)) : []; +} + +module.exports = includes; + + +/***/ }), + +/***/ 92414: +/***/ ((module) => { + +/** + * lodash 3.0.3 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** + * Checks if `value` is classified as a boolean primitive or object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isBoolean(false); + * // => true + * + * _.isBoolean(null); + * // => false + */ +function isBoolean(value) { + return value === true || value === false || + (isObjectLike(value) && objectToString.call(value) == boolTag); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +module.exports = isBoolean; + + +/***/ }), + +/***/ 60932: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_INTEGER = 1.7976931348623157e+308, + NAN = 0 / 0; + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; + +/** Used to match leading and trailing whitespace. */ +var reTrim = /^\s+|\s+$/g; + +/** Used to detect bad signed hexadecimal string values. */ +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + +/** Used to detect binary string values. */ +var reIsBinary = /^0b[01]+$/i; + +/** Used to detect octal string values. */ +var reIsOctal = /^0o[0-7]+$/i; + +/** Built-in method references without a dependency on `root`. */ +var freeParseInt = parseInt; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** + * Checks if `value` is an integer. + * + * **Note:** This method is based on + * [`Number.isInteger`](https://mdn.io/Number/isInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an integer, else `false`. + * @example + * + * _.isInteger(3); + * // => true + * + * _.isInteger(Number.MIN_VALUE); + * // => false + * + * _.isInteger(Infinity); + * // => false + * + * _.isInteger('3'); + * // => false + */ +function isInteger(value) { + return typeof value == 'number' && value == toInteger(value); +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && objectToString.call(value) == symbolTag); +} + +/** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ +function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; +} + +/** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ +function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; +} + +/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ +function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); +} + +module.exports = isInteger; + + +/***/ }), + +/***/ 59803: +/***/ ((module) => { + +/** + * lodash 3.0.3 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ + +/** `Object#toString` result references. */ +var numberTag = '[object Number]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is classified as a `Number` primitive or object. + * + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified + * as numbers, use the `_.isFinite` method. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isNumber(3); + * // => true + * + * _.isNumber(Number.MIN_VALUE); + * // => true + * + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); + * // => false + */ +function isNumber(value) { + return typeof value == 'number' || + (isObjectLike(value) && objectToString.call(value) == numberTag); +} + +module.exports = isNumber; + + +/***/ }), + +/***/ 77901: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** `Object#toString` result references. */ +var objectTag = '[object Object]'; + +/** + * Checks if `value` is a host object in IE < 9. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + */ +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} + } + return result; +} + +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to infer the `Object` constructor. */ +var objectCtorString = funcToString.call(Object); + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Built-in value references. */ +var getPrototype = overArg(Object.getPrototypeOf, Object); + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * @static + * @memberOf _ + * @since 0.8.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */ +function isPlainObject(value) { + if (!isObjectLike(value) || + objectToString.call(value) != objectTag || isHostObject(value)) { + return false; + } + var proto = getPrototype(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; + return (typeof Ctor == 'function' && + Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); +} + +module.exports = isPlainObject; + + +/***/ }), + +/***/ 47527: +/***/ ((module) => { + +/** + * lodash 4.0.1 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ + +/** `Object#toString` result references. */ +var stringTag = '[object String]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @type Function + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ +function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); +} + +module.exports = isString; + + +/***/ }), + +/***/ 87943: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as the `TypeError` message for "Functions" methods. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_INTEGER = 1.7976931348623157e+308, + NAN = 0 / 0; + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; + +/** Used to match leading and trailing whitespace. */ +var reTrim = /^\s+|\s+$/g; + +/** Used to detect bad signed hexadecimal string values. */ +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + +/** Used to detect binary string values. */ +var reIsBinary = /^0b[01]+$/i; + +/** Used to detect octal string values. */ +var reIsOctal = /^0o[0-7]+$/i; + +/** Built-in method references without a dependency on `root`. */ +var freeParseInt = parseInt; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** + * Creates a function that invokes `func`, with the `this` binding and arguments + * of the created function, while it's called less than `n` times. Subsequent + * calls to the created function return the result of the last `func` invocation. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {number} n The number of calls at which `func` is no longer invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * jQuery(element).on('click', _.before(5, addContactToList)); + * // => Allows adding up to 4 contacts to the list. + */ +function before(n, func) { + var result; + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + n = toInteger(n); + return function() { + if (--n > 0) { + result = func.apply(this, arguments); + } + if (n <= 1) { + func = undefined; + } + return result; + }; +} + +/** + * Creates a function that is restricted to invoking `func` once. Repeat calls + * to the function return the value of the first invocation. The `func` is + * invoked with the `this` binding and arguments of the created function. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * var initialize = _.once(createApplication); + * initialize(); + * initialize(); + * // => `createApplication` is invoked once + */ +function once(func) { + return before(2, func); +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && objectToString.call(value) == symbolTag); +} + +/** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ +function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; +} + +/** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ +function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; +} + +/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ +function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); +} + +module.exports = once; + + +/***/ }), + +/***/ 49302: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./abs')} */ +module.exports = Math.abs; + + +/***/ }), + +/***/ 78180: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./floor')} */ +module.exports = Math.floor; + + +/***/ }), + +/***/ 95111: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./isNaN')} */ +module.exports = Number.isNaN || function isNaN(a) { + return a !== a; +}; + + +/***/ }), + +/***/ 33936: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./max')} */ +module.exports = Math.max; + + +/***/ }), + +/***/ 63982: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./min')} */ +module.exports = Math.min; + + +/***/ }), + +/***/ 996: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./pow')} */ +module.exports = Math.pow; + + +/***/ }), + +/***/ 61082: +/***/ ((module) => { + +"use strict"; + + +/** @type {import('./round')} */ +module.exports = Math.round; + + +/***/ }), + +/***/ 5177: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var $isNaN = __nccwpck_require__(95111); + +/** @type {import('./sign')} */ +module.exports = function sign(number) { + if ($isNaN(number) || number === 0) { + return number; + } + return number < 0 ? -1 : +1; +}; + + +/***/ }), + +/***/ 3317: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/*! + * methods + * Copyright(c) 2013-2014 TJ Holowaychuk + * Copyright(c) 2015-2016 Douglas Christopher Wilson + * MIT Licensed + */ + + + +/** + * Module dependencies. + * @private + */ + +var http = __nccwpck_require__(58611); + +/** + * Module exports. + * @public + */ + +module.exports = getCurrentNodeMethods() || getBasicNodeMethods(); + +/** + * Get the current Node.js methods. + * @private + */ + +function getCurrentNodeMethods() { + return http.METHODS && http.METHODS.map(function lowerCaseMethod(method) { + return method.toLowerCase(); + }); +} + +/** + * Get the "basic" Node.js methods, a snapshot from Node.js 0.10. + * @private + */ + +function getBasicNodeMethods() { + return [ + 'get', + 'post', + 'put', + 'head', + 'delete', + 'options', + 'trace', + 'copy', + 'lock', + 'mkcol', + 'move', + 'purge', + 'propfind', + 'proppatch', + 'unlock', + 'report', + 'mkactivity', + 'checkout', + 'merge', + 'm-search', + 'notify', + 'subscribe', + 'unsubscribe', + 'patch', + 'search', + 'connect' + ]; +} + + +/***/ }), + +/***/ 26106: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*! + * mime-db + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015-2022 Douglas Christopher Wilson + * MIT Licensed + */ + +/** + * Module exports. + */ + +module.exports = __nccwpck_require__(81813) + + +/***/ }), + +/***/ 77949: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +/*! + * mime-types + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */ + + + +/** + * Module dependencies. + * @private + */ + +var db = __nccwpck_require__(26106) +var extname = (__nccwpck_require__(16928).extname) + +/** + * Module variables. + * @private + */ + +var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ +var TEXT_TYPE_REGEXP = /^text\//i + +/** + * Module exports. + * @public + */ + +exports.charset = charset +exports.charsets = { lookup: charset } +exports.contentType = contentType +exports.extension = extension +exports.extensions = Object.create(null) +exports.lookup = lookup +exports.types = Object.create(null) + +// Populate the extensions/types maps +populateMaps(exports.extensions, exports.types) + +/** + * Get the default charset for a MIME type. + * + * @param {string} type + * @return {boolean|string} + */ + +function charset (type) { + if (!type || typeof type !== 'string') { + return false + } + + // TODO: use media-typer + var match = EXTRACT_TYPE_REGEXP.exec(type) + var mime = match && db[match[1].toLowerCase()] + + if (mime && mime.charset) { + return mime.charset + } + + // default text/* to utf-8 + if (match && TEXT_TYPE_REGEXP.test(match[1])) { + return 'UTF-8' + } + + return false +} + +/** + * Create a full Content-Type header given a MIME type or extension. + * + * @param {string} str + * @return {boolean|string} + */ + +function contentType (str) { + // TODO: should this even be in this module? + if (!str || typeof str !== 'string') { + return false + } + + var mime = str.indexOf('/') === -1 + ? exports.lookup(str) + : str + + if (!mime) { + return false + } + + // TODO: use content-type or other module + if (mime.indexOf('charset') === -1) { + var charset = exports.charset(mime) + if (charset) mime += '; charset=' + charset.toLowerCase() + } + + return mime +} + +/** + * Get the default extension for a MIME type. + * + * @param {string} type + * @return {boolean|string} + */ + +function extension (type) { + if (!type || typeof type !== 'string') { + return false + } + + // TODO: use media-typer + var match = EXTRACT_TYPE_REGEXP.exec(type) + + // get extensions + var exts = match && exports.extensions[match[1].toLowerCase()] + + if (!exts || !exts.length) { + return false + } + + return exts[0] +} + +/** + * Lookup the MIME type for a file path/extension. + * + * @param {string} path + * @return {boolean|string} + */ + +function lookup (path) { + if (!path || typeof path !== 'string') { + return false + } + + // get the extension ("ext" or ".ext" or full path) + var extension = extname('x.' + path) + .toLowerCase() + .substr(1) + + if (!extension) { + return false + } + + return exports.types[extension] || false +} + +/** + * Populate the extensions and types maps. + * @private + */ + +function populateMaps (extensions, types) { + // source preference (least -> most) + var preference = ['nginx', 'apache', undefined, 'iana'] + + Object.keys(db).forEach(function forEachMimeType (type) { + var mime = db[type] + var exts = mime.extensions + + if (!exts || !exts.length) { + return + } + + // mime -> extensions + extensions[type] = exts + + // extension -> mime + for (var i = 0; i < exts.length; i++) { + var extension = exts[i] + + if (types[extension]) { + var from = preference.indexOf(db[types[extension]].source) + var to = preference.indexOf(mime.source) + + if (types[extension] !== 'application/octet-stream' && + (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) { + // skip the remapping + continue + } + } + + // set the extension -> mime + types[extension] = type + } + }) +} + + +/***/ }), + +/***/ 90557: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var path = __nccwpck_require__(16928); +var fs = __nccwpck_require__(79896); + +function Mime() { + // Map of extension -> mime type + this.types = Object.create(null); + + // Map of mime type -> extension + this.extensions = Object.create(null); +} + +/** + * Define mimetype -> extension mappings. Each key is a mime-type that maps + * to an array of extensions associated with the type. The first extension is + * used as the default extension for the type. + * + * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']}); + * + * @param map (Object) type definitions + */ +Mime.prototype.define = function (map) { + for (var type in map) { + var exts = map[type]; + for (var i = 0; i < exts.length; i++) { + if (process.env.DEBUG_MIME && this.types[exts[i]]) { + console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' + + this.types[exts[i]] + ' to ' + type); + } + + this.types[exts[i]] = type; + } + + // Default extension is the first one we encounter + if (!this.extensions[type]) { + this.extensions[type] = exts[0]; + } + } +}; + +/** + * Load an Apache2-style ".types" file + * + * This may be called multiple times (it's expected). Where files declare + * overlapping types/extensions, the last file wins. + * + * @param file (String) path of file to load. + */ +Mime.prototype.load = function(file) { + this._loading = file; + // Read file and split into lines + var map = {}, + content = fs.readFileSync(file, 'ascii'), + lines = content.split(/[\r\n]+/); + + lines.forEach(function(line) { + // Clean up whitespace/comments, and split into fields + var fields = line.replace(/\s*#.*|^\s*|\s*$/g, '').split(/\s+/); + map[fields.shift()] = fields; + }); + + this.define(map); + + this._loading = null; +}; + +/** + * Lookup a mime type based on extension + */ +Mime.prototype.lookup = function(path, fallback) { + var ext = path.replace(/^.*[\.\/\\]/, '').toLowerCase(); + + return this.types[ext] || fallback || this.default_type; +}; + +/** + * Return file extension associated with a mime type + */ +Mime.prototype.extension = function(mimeType) { + var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase(); + return this.extensions[type]; +}; + +// Default instance +var mime = new Mime(); + +// Define built-in types +mime.define(__nccwpck_require__(9415)); + +// Default type +mime.default_type = mime.lookup('bin'); + +// +// Additional API specific to the default instance +// + +mime.Mime = Mime; + +/** + * Lookup a charset based on mime type. + */ +mime.charsets = { + lookup: function(mimeType, fallback) { + // Assume text types are utf8 + return (/^text\/|^application\/(javascript|json)/).test(mimeType) ? 'UTF-8' : fallback; + } +}; + +module.exports = mime; + + +/***/ }), + +/***/ 51133: +/***/ ((module) => { + +/** + * Helpers. + */ + +var s = 1000; +var m = s * 60; +var h = m * 60; +var d = h * 24; +var w = d * 7; +var y = d * 365.25; + +/** + * Parse or format the given `val`. + * + * Options: + * + * - `long` verbose formatting [false] + * + * @param {String|Number} val + * @param {Object} [options] + * @throws {Error} throw an error if val is not a non-empty string or a number + * @return {String|Number} + * @api public + */ + +module.exports = function (val, options) { + options = options || {}; + var type = typeof val; + if (type === 'string' && val.length > 0) { + return parse(val); + } else if (type === 'number' && isFinite(val)) { + return options.long ? fmtLong(val) : fmtShort(val); + } + throw new Error( + 'val is not a non-empty string or a valid number. val=' + + JSON.stringify(val) + ); +}; + +/** + * Parse the given `str` and return milliseconds. + * + * @param {String} str + * @return {Number} + * @api private + */ + +function parse(str) { + str = String(str); + if (str.length > 100) { + return; + } + var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + str + ); + if (!match) { + return; + } + var n = parseFloat(match[1]); + var type = (match[2] || 'ms').toLowerCase(); + switch (type) { + case 'years': + case 'year': + case 'yrs': + case 'yr': + case 'y': + return n * y; + case 'weeks': + case 'week': + case 'w': + return n * w; + case 'days': + case 'day': + case 'd': + return n * d; + case 'hours': + case 'hour': + case 'hrs': + case 'hr': + case 'h': + return n * h; + case 'minutes': + case 'minute': + case 'mins': + case 'min': + case 'm': + return n * m; + case 'seconds': + case 'second': + case 'secs': + case 'sec': + case 's': + return n * s; + case 'milliseconds': + case 'millisecond': + case 'msecs': + case 'msec': + case 'ms': + return n; + default: + return undefined; + } +} + +/** + * Short format for `ms`. + * + * @param {Number} ms + * @return {String} + * @api private + */ + +function fmtShort(ms) { + var msAbs = Math.abs(ms); + if (msAbs >= d) { + return Math.round(ms / d) + 'd'; + } + if (msAbs >= h) { + return Math.round(ms / h) + 'h'; + } + if (msAbs >= m) { + return Math.round(ms / m) + 'm'; + } + if (msAbs >= s) { + return Math.round(ms / s) + 's'; + } + return ms + 'ms'; +} + +/** + * Long format for `ms`. + * + * @param {Number} ms + * @return {String} + * @api private + */ + +function fmtLong(ms) { + var msAbs = Math.abs(ms); + if (msAbs >= d) { + return plural(ms, msAbs, d, 'day'); + } + if (msAbs >= h) { + return plural(ms, msAbs, h, 'hour'); + } + if (msAbs >= m) { + return plural(ms, msAbs, m, 'minute'); + } + if (msAbs >= s) { + return plural(ms, msAbs, s, 'second'); + } + return ms + ' ms'; +} + +/** + * Pluralization helper. + */ + +function plural(ms, msAbs, n, name) { + var isPlural = msAbs >= n * 1.5; + return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); +} + + +/***/ }), + +/***/ 78704: +/***/ ((module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var Stream = _interopDefault(__nccwpck_require__(2203)); +var http = _interopDefault(__nccwpck_require__(58611)); +var Url = _interopDefault(__nccwpck_require__(87016)); +var whatwgUrl = _interopDefault(__nccwpck_require__(94661)); +var https = _interopDefault(__nccwpck_require__(65692)); +var zlib = _interopDefault(__nccwpck_require__(43106)); + +// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js + +// fix for "Readable" isn't a named export issue +const Readable = Stream.Readable; + +const BUFFER = Symbol('buffer'); +const TYPE = Symbol('type'); + +class Blob { + constructor() { + this[TYPE] = ''; + + const blobParts = arguments[0]; + const options = arguments[1]; + + const buffers = []; + let size = 0; + + if (blobParts) { + const a = blobParts; + const length = Number(a.length); + for (let i = 0; i < length; i++) { + const element = a[i]; + let buffer; + if (element instanceof Buffer) { + buffer = element; + } else if (ArrayBuffer.isView(element)) { + buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); + } else if (element instanceof ArrayBuffer) { + buffer = Buffer.from(element); + } else if (element instanceof Blob) { + buffer = element[BUFFER]; + } else { + buffer = Buffer.from(typeof element === 'string' ? element : String(element)); + } + size += buffer.length; + buffers.push(buffer); + } + } + + this[BUFFER] = Buffer.concat(buffers); + + let type = options && options.type !== undefined && String(options.type).toLowerCase(); + if (type && !/[^\u0020-\u007E]/.test(type)) { + this[TYPE] = type; + } + } + get size() { + return this[BUFFER].length; + } + get type() { + return this[TYPE]; + } + text() { + return Promise.resolve(this[BUFFER].toString()); + } + arrayBuffer() { + const buf = this[BUFFER]; + const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + return Promise.resolve(ab); + } + stream() { + const readable = new Readable(); + readable._read = function () {}; + readable.push(this[BUFFER]); + readable.push(null); + return readable; + } + toString() { + return '[object Blob]'; + } + slice() { + const size = this.size; + + const start = arguments[0]; + const end = arguments[1]; + let relativeStart, relativeEnd; + if (start === undefined) { + relativeStart = 0; + } else if (start < 0) { + relativeStart = Math.max(size + start, 0); + } else { + relativeStart = Math.min(start, size); + } + if (end === undefined) { + relativeEnd = size; + } else if (end < 0) { + relativeEnd = Math.max(size + end, 0); + } else { + relativeEnd = Math.min(end, size); + } + const span = Math.max(relativeEnd - relativeStart, 0); + + const buffer = this[BUFFER]; + const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); + const blob = new Blob([], { type: arguments[2] }); + blob[BUFFER] = slicedBuffer; + return blob; + } +} + +Object.defineProperties(Blob.prototype, { + size: { enumerable: true }, + type: { enumerable: true }, + slice: { enumerable: true } +}); + +Object.defineProperty(Blob.prototype, Symbol.toStringTag, { + value: 'Blob', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * fetch-error.js + * + * FetchError interface for operational errors + */ + +/** + * Create FetchError instance + * + * @param String message Error message for human + * @param String type Error type for machine + * @param String systemError For Node.js system error + * @return FetchError + */ +function FetchError(message, type, systemError) { + Error.call(this, message); + + this.message = message; + this.type = type; + + // when err.type is `system`, err.code contains system error code + if (systemError) { + this.code = this.errno = systemError.code; + } + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +FetchError.prototype = Object.create(Error.prototype); +FetchError.prototype.constructor = FetchError; +FetchError.prototype.name = 'FetchError'; + +let convert; +try { + convert = (__nccwpck_require__(37851).convert); +} catch (e) {} + +const INTERNALS = Symbol('Body internals'); + +// fix an issue where "PassThrough" isn't a named export for node <10 +const PassThrough = Stream.PassThrough; + +/** + * Body mixin + * + * Ref: https://fetch.spec.whatwg.org/#body + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +function Body(body) { + var _this = this; + + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$size = _ref.size; + + let size = _ref$size === undefined ? 0 : _ref$size; + var _ref$timeout = _ref.timeout; + let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; + + if (body == null) { + // body is undefined or null + body = null; + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams + body = Buffer.from(body.toString()); + } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { + // body is ArrayBuffer + body = Buffer.from(body); + } else if (ArrayBuffer.isView(body)) { + // body is ArrayBufferView + body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); + } else if (body instanceof Stream) ; else { + // none of the above + // coerce to string then buffer + body = Buffer.from(String(body)); + } + this[INTERNALS] = { + body, + disturbed: false, + error: null + }; + this.size = size; + this.timeout = timeout; + + if (body instanceof Stream) { + body.on('error', function (err) { + const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); + _this[INTERNALS].error = error; + }); + } +} + +Body.prototype = { + get body() { + return this[INTERNALS].body; + }, + + get bodyUsed() { + return this[INTERNALS].disturbed; + }, + + /** + * Decode response as ArrayBuffer + * + * @return Promise + */ + arrayBuffer() { + return consumeBody.call(this).then(function (buf) { + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + }); + }, + + /** + * Return raw response as Blob + * + * @return Promise + */ + blob() { + let ct = this.headers && this.headers.get('content-type') || ''; + return consumeBody.call(this).then(function (buf) { + return Object.assign( + // Prevent copying + new Blob([], { + type: ct.toLowerCase() + }), { + [BUFFER]: buf + }); + }); + }, + + /** + * Decode response as json + * + * @return Promise + */ + json() { + var _this2 = this; + + return consumeBody.call(this).then(function (buffer) { + try { + return JSON.parse(buffer.toString()); + } catch (err) { + return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); + } + }); + }, + + /** + * Decode response as text + * + * @return Promise + */ + text() { + return consumeBody.call(this).then(function (buffer) { + return buffer.toString(); + }); + }, + + /** + * Decode response as buffer (non-spec api) + * + * @return Promise + */ + buffer() { + return consumeBody.call(this); + }, + + /** + * Decode response as text, while automatically detecting the encoding and + * trying to decode to UTF-8 (non-spec api) + * + * @return Promise + */ + textConverted() { + var _this3 = this; + + return consumeBody.call(this).then(function (buffer) { + return convertBody(buffer, _this3.headers); + }); + } +}; + +// In browsers, all properties are enumerable. +Object.defineProperties(Body.prototype, { + body: { enumerable: true }, + bodyUsed: { enumerable: true }, + arrayBuffer: { enumerable: true }, + blob: { enumerable: true }, + json: { enumerable: true }, + text: { enumerable: true } +}); + +Body.mixIn = function (proto) { + for (const name of Object.getOwnPropertyNames(Body.prototype)) { + // istanbul ignore else: future proof + if (!(name in proto)) { + const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); + Object.defineProperty(proto, name, desc); + } + } +}; + +/** + * Consume and convert an entire Body to a Buffer. + * + * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body + * + * @return Promise + */ +function consumeBody() { + var _this4 = this; + + if (this[INTERNALS].disturbed) { + return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); + } + + this[INTERNALS].disturbed = true; + + if (this[INTERNALS].error) { + return Body.Promise.reject(this[INTERNALS].error); + } + + let body = this.body; + + // body is null + if (body === null) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is blob + if (isBlob(body)) { + body = body.stream(); + } + + // body is buffer + if (Buffer.isBuffer(body)) { + return Body.Promise.resolve(body); + } + + // istanbul ignore if: should never happen + if (!(body instanceof Stream)) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is stream + // get ready to actually consume the body + let accum = []; + let accumBytes = 0; + let abort = false; + + return new Body.Promise(function (resolve, reject) { + let resTimeout; + + // allow timeout on slow response body + if (_this4.timeout) { + resTimeout = setTimeout(function () { + abort = true; + reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); + }, _this4.timeout); + } + + // handle stream errors + body.on('error', function (err) { + if (err.name === 'AbortError') { + // if the request was aborted, reject with this Error + abort = true; + reject(err); + } else { + // other errors, such as incorrect content-encoding + reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + + body.on('data', function (chunk) { + if (abort || chunk === null) { + return; + } + + if (_this4.size && accumBytes + chunk.length > _this4.size) { + abort = true; + reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); + return; + } + + accumBytes += chunk.length; + accum.push(chunk); + }); + + body.on('end', function () { + if (abort) { + return; + } + + clearTimeout(resTimeout); + + try { + resolve(Buffer.concat(accum, accumBytes)); + } catch (err) { + // handle streams that have accumulated too much data (issue #414) + reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + }); +} + +/** + * Detect buffer encoding and convert to target encoding + * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding + * + * @param Buffer buffer Incoming buffer + * @param String encoding Target encoding + * @return String + */ +function convertBody(buffer, headers) { + if (typeof convert !== 'function') { + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + } + + const ct = headers.get('content-type'); + let charset = 'utf-8'; + let res, str; + + // header + if (ct) { + res = /charset=([^;]*)/i.exec(ct); + } + + // no charset in content type, peek at response body for at most 1024 bytes + str = buffer.slice(0, 1024).toString(); + + // html5 + if (!res && str) { + res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; + + this[MAP] = Object.create(null); + + if (init instanceof Headers) { + const rawHeaders = init.raw(); + const headerNames = Object.keys(rawHeaders); + + for (const headerName of headerNames) { + for (const value of rawHeaders[headerName]) { + this.append(headerName, value); + } + } + + return; + } + + // We don't worry about converting prop to ByteString here as append() + // will handle it. + if (init == null) ; else if (typeof init === 'object') { + const method = init[Symbol.iterator]; + if (method != null) { + if (typeof method !== 'function') { + throw new TypeError('Header pairs must be iterable'); + } + + // sequence> + // Note: per spec we have to first exhaust the lists then process them + const pairs = []; + for (const pair of init) { + if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { + throw new TypeError('Each header pair must be iterable'); + } + pairs.push(Array.from(pair)); + } + + for (const pair of pairs) { + if (pair.length !== 2) { + throw new TypeError('Each header pair must be a name/value tuple'); + } + this.append(pair[0], pair[1]); + } + } else { + // record + for (const key of Object.keys(init)) { + const value = init[key]; + this.append(key, value); + } + } + } else { + throw new TypeError('Provided initializer must be an object'); + } + } + + /** + * Return combined header value given name + * + * @param String name Header name + * @return Mixed + */ + get(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key === undefined) { + return null; + } + + return this[MAP][key].join(', '); + } + + /** + * Iterate over all headers + * + * @param Function callback Executed for each item with parameters (value, name, thisArg) + * @param Boolean thisArg `this` context for callback function + * @return Void + */ + forEach(callback) { + let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + + let pairs = getHeaders(this); + let i = 0; + while (i < pairs.length) { + var _pairs$i = pairs[i]; + const name = _pairs$i[0], + value = _pairs$i[1]; + + callback.call(thisArg, value, name, this); + pairs = getHeaders(this); + i++; + } + } + + /** + * Overwrite header values given name + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + set(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + this[MAP][key !== undefined ? key : name] = [value]; + } + + /** + * Append a value onto existing header + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + append(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + if (key !== undefined) { + this[MAP][key].push(value); + } else { + this[MAP][name] = [value]; + } + } + + /** + * Check for header name existence + * + * @param String name Header name + * @return Boolean + */ + has(name) { + name = `${name}`; + validateName(name); + return find(this[MAP], name) !== undefined; + } + + /** + * Delete all header values given name + * + * @param String name Header name + * @return Void + */ + delete(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key !== undefined) { + delete this[MAP][key]; + } + } + + /** + * Return raw headers (non-spec api) + * + * @return Object + */ + raw() { + return this[MAP]; + } + + /** + * Get an iterator on keys. + * + * @return Iterator + */ + keys() { + return createHeadersIterator(this, 'key'); + } + + /** + * Get an iterator on values. + * + * @return Iterator + */ + values() { + return createHeadersIterator(this, 'value'); + } + + /** + * Get an iterator on entries. + * + * This is the default iterator of the Headers object. + * + * @return Iterator + */ + [Symbol.iterator]() { + return createHeadersIterator(this, 'key+value'); + } +} +Headers.prototype.entries = Headers.prototype[Symbol.iterator]; + +Object.defineProperty(Headers.prototype, Symbol.toStringTag, { + value: 'Headers', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Headers.prototype, { + get: { enumerable: true }, + forEach: { enumerable: true }, + set: { enumerable: true }, + append: { enumerable: true }, + has: { enumerable: true }, + delete: { enumerable: true }, + keys: { enumerable: true }, + values: { enumerable: true }, + entries: { enumerable: true } +}); + +function getHeaders(headers) { + let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; + + const keys = Object.keys(headers[MAP]).sort(); + return keys.map(kind === 'key' ? function (k) { + return k.toLowerCase(); + } : kind === 'value' ? function (k) { + return headers[MAP][k].join(', '); + } : function (k) { + return [k.toLowerCase(), headers[MAP][k].join(', ')]; + }); +} + +const INTERNAL = Symbol('internal'); + +function createHeadersIterator(target, kind) { + const iterator = Object.create(HeadersIteratorPrototype); + iterator[INTERNAL] = { + target, + kind, + index: 0 + }; + return iterator; +} + +const HeadersIteratorPrototype = Object.setPrototypeOf({ + next() { + // istanbul ignore if + if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { + throw new TypeError('Value of `this` is not a HeadersIterator'); + } + + var _INTERNAL = this[INTERNAL]; + const target = _INTERNAL.target, + kind = _INTERNAL.kind, + index = _INTERNAL.index; + + const values = getHeaders(target, kind); + const len = values.length; + if (index >= len) { + return { + value: undefined, + done: true + }; + } + + this[INTERNAL].index = index + 1; + + return { + value: values[index], + done: false + }; + } +}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); + +Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { + value: 'HeadersIterator', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * Export the Headers object in a form that Node.js can consume. + * + * @param Headers headers + * @return Object + */ +function exportNodeCompatibleHeaders(headers) { + const obj = Object.assign({ __proto__: null }, headers[MAP]); + + // http.request() only supports string as Host header. This hack makes + // specifying custom Host header possible. + const hostHeaderKey = find(headers[MAP], 'Host'); + if (hostHeaderKey !== undefined) { + obj[hostHeaderKey] = obj[hostHeaderKey][0]; + } + + return obj; +} + +/** + * Create a Headers object from an object of headers, ignoring those that do + * not conform to HTTP grammar productions. + * + * @param Object obj Object of headers + * @return Headers + */ +function createHeadersLenient(obj) { + const headers = new Headers(); + for (const name of Object.keys(obj)) { + if (invalidTokenRegex.test(name)) { + continue; + } + if (Array.isArray(obj[name])) { + for (const val of obj[name]) { + if (invalidHeaderCharRegex.test(val)) { + continue; + } + if (headers[MAP][name] === undefined) { + headers[MAP][name] = [val]; + } else { + headers[MAP][name].push(val); + } + } + } else if (!invalidHeaderCharRegex.test(obj[name])) { + headers[MAP][name] = [obj[name]]; + } + } + return headers; +} + +const INTERNALS$1 = Symbol('Response internals'); + +// fix an issue where "STATUS_CODES" aren't a named export for node <10 +const STATUS_CODES = http.STATUS_CODES; + +/** + * Response class + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +class Response { + constructor() { + let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + Body.call(this, body, opts); + + const status = opts.status || 200; + const headers = new Headers(opts.headers); + + if (body != null && !headers.has('Content-Type')) { + const contentType = extractContentType(body); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + this[INTERNALS$1] = { + url: opts.url, + status, + statusText: opts.statusText || STATUS_CODES[status], + headers, + counter: opts.counter + }; + } + + get url() { + return this[INTERNALS$1].url || ''; + } + + get status() { + return this[INTERNALS$1].status; + } + + /** + * Convenience property representing if the request ended normally + */ + get ok() { + return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; + } + + get redirected() { + return this[INTERNALS$1].counter > 0; + } + + get statusText() { + return this[INTERNALS$1].statusText; + } + + get headers() { + return this[INTERNALS$1].headers; + } + + /** + * Clone this response + * + * @return Response + */ + clone() { + return new Response(clone(this), { + url: this.url, + status: this.status, + statusText: this.statusText, + headers: this.headers, + ok: this.ok, + redirected: this.redirected + }); + } +} + +Body.mixIn(Response.prototype); + +Object.defineProperties(Response.prototype, { + url: { enumerable: true }, + status: { enumerable: true }, + ok: { enumerable: true }, + redirected: { enumerable: true }, + statusText: { enumerable: true }, + headers: { enumerable: true }, + clone: { enumerable: true } +}); + +Object.defineProperty(Response.prototype, Symbol.toStringTag, { + value: 'Response', + writable: false, + enumerable: false, + configurable: true +}); + +const INTERNALS$2 = Symbol('Request internals'); +const URL = Url.URL || whatwgUrl.URL; + +// fix an issue where "format", "parse" aren't a named export for node <10 +const parse_url = Url.parse; +const format_url = Url.format; + +/** + * Wrapper around `new URL` to handle arbitrary URLs + * + * @param {string} urlStr + * @return {void} + */ +function parseURL(urlStr) { + /* + Check whether the URL is absolute or not + Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 + Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 + */ + if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { + urlStr = new URL(urlStr).toString(); + } + + // Fallback to old implementation for arbitrary URLs + return parse_url(urlStr); +} + +const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; + +/** + * Check if a value is an instance of Request. + * + * @param Mixed input + * @return Boolean + */ +function isRequest(input) { + return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; +} + +function isAbortSignal(signal) { + const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); + return !!(proto && proto.constructor.name === 'AbortSignal'); +} + +/** + * Request class + * + * @param Mixed input Url or Request instance + * @param Object init Custom options + * @return Void + */ +class Request { + constructor(input) { + let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + let parsedURL; + + // normalize input + if (!isRequest(input)) { + if (input && input.href) { + // in order to support Node.js' Url objects; though WHATWG's URL objects + // will fall into this branch also (since their `toString()` will return + // `href` property anyway) + parsedURL = parseURL(input.href); + } else { + // coerce input to a string before attempting to parse + parsedURL = parseURL(`${input}`); + } + input = {}; + } else { + parsedURL = parseURL(input.url); + } + + let method = init.method || input.method || 'GET'; + method = method.toUpperCase(); + + if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { + throw new TypeError('Request with GET/HEAD method cannot have body'); + } + + let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; + + Body.call(this, inputBody, { + timeout: init.timeout || input.timeout || 0, + size: init.size || input.size || 0 + }); + + const headers = new Headers(init.headers || input.headers || {}); + + if (inputBody != null && !headers.has('Content-Type')) { + const contentType = extractContentType(inputBody); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + let signal = isRequest(input) ? input.signal : null; + if ('signal' in init) signal = init.signal; + + if (signal != null && !isAbortSignal(signal)) { + throw new TypeError('Expected signal to be an instanceof AbortSignal'); + } + + this[INTERNALS$2] = { + method, + redirect: init.redirect || input.redirect || 'follow', + headers, + parsedURL, + signal + }; + + // node-fetch-only options + this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; + this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; + this.counter = init.counter || input.counter || 0; + this.agent = init.agent || input.agent; + } + + get method() { + return this[INTERNALS$2].method; + } + + get url() { + return format_url(this[INTERNALS$2].parsedURL); + } + + get headers() { + return this[INTERNALS$2].headers; + } + + get redirect() { + return this[INTERNALS$2].redirect; + } + + get signal() { + return this[INTERNALS$2].signal; + } + + /** + * Clone this request + * + * @return Request + */ + clone() { + return new Request(this); + } +} + +Body.mixIn(Request.prototype); + +Object.defineProperty(Request.prototype, Symbol.toStringTag, { + value: 'Request', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Request.prototype, { + method: { enumerable: true }, + url: { enumerable: true }, + headers: { enumerable: true }, + redirect: { enumerable: true }, + clone: { enumerable: true }, + signal: { enumerable: true } +}); + +/** + * Convert a Request to Node.js http request options. + * + * @param Request A Request instance + * @return Object The options object to be passed to http.request + */ +function getNodeRequestOptions(request) { + const parsedURL = request[INTERNALS$2].parsedURL; + const headers = new Headers(request[INTERNALS$2].headers); + + // fetch step 1.3 + if (!headers.has('Accept')) { + headers.set('Accept', '*/*'); + } + + // Basic fetch + if (!parsedURL.protocol || !parsedURL.hostname) { + throw new TypeError('Only absolute URLs are supported'); + } + + if (!/^https?:$/.test(parsedURL.protocol)) { + throw new TypeError('Only HTTP(S) protocols are supported'); + } + + if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { + throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); + } + + // HTTP-network-or-cache fetch steps 2.4-2.7 + let contentLengthValue = null; + if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { + contentLengthValue = '0'; + } + if (request.body != null) { + const totalBytes = getTotalBytes(request); + if (typeof totalBytes === 'number') { + contentLengthValue = String(totalBytes); + } + } + if (contentLengthValue) { + headers.set('Content-Length', contentLengthValue); + } + + // HTTP-network-or-cache fetch step 2.11 + if (!headers.has('User-Agent')) { + headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); + } + + // HTTP-network-or-cache fetch step 2.15 + if (request.compress && !headers.has('Accept-Encoding')) { + headers.set('Accept-Encoding', 'gzip,deflate'); + } + + let agent = request.agent; + if (typeof agent === 'function') { + agent = agent(parsedURL); + } + + // HTTP-network fetch step 4.2 + // chunked encoding is handled by Node.js + + return Object.assign({}, parsedURL, { + method: request.method, + headers: exportNodeCompatibleHeaders(headers), + agent + }); +} + +/** + * abort-error.js + * + * AbortError interface for cancelled requests + */ + +/** + * Create AbortError instance + * + * @param String message Error message for human + * @return AbortError + */ +function AbortError(message) { + Error.call(this, message); + + this.type = 'aborted'; + this.message = message; + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +AbortError.prototype = Object.create(Error.prototype); +AbortError.prototype.constructor = AbortError; +AbortError.prototype.name = 'AbortError'; + +const URL$1 = Url.URL || whatwgUrl.URL; + +// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 +const PassThrough$1 = Stream.PassThrough; + +const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { + const orig = new URL$1(original).hostname; + const dest = new URL$1(destination).hostname; + + return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); +}; + +/** + * isSameProtocol reports whether the two provided URLs use the same protocol. + * + * Both domains must already be in canonical form. + * @param {string|URL} original + * @param {string|URL} destination + */ +const isSameProtocol = function isSameProtocol(destination, original) { + const orig = new URL$1(original).protocol; + const dest = new URL$1(destination).protocol; + + return orig === dest; +}; + +/** + * Fetch function + * + * @param Mixed url Absolute url or Request instance + * @param Object opts Fetch options + * @return Promise + */ +function fetch(url, opts) { + + // allow custom promise + if (!fetch.Promise) { + throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); + } + + Body.Promise = fetch.Promise; + + // wrap http.request into fetch + return new fetch.Promise(function (resolve, reject) { + // build request object + const request = new Request(url, opts); + const options = getNodeRequestOptions(request); + + const send = (options.protocol === 'https:' ? https : http).request; + const signal = request.signal; + + let response = null; + + const abort = function abort() { + let error = new AbortError('The user aborted a request.'); + reject(error); + if (request.body && request.body instanceof Stream.Readable) { + destroyStream(request.body, error); + } + if (!response || !response.body) return; + response.body.emit('error', error); + }; + + if (signal && signal.aborted) { + abort(); + return; + } + + const abortAndFinalize = function abortAndFinalize() { + abort(); + finalize(); + }; + + // send request + const req = send(options); + let reqTimeout; + + if (signal) { + signal.addEventListener('abort', abortAndFinalize); + } + + function finalize() { + req.abort(); + if (signal) signal.removeEventListener('abort', abortAndFinalize); + clearTimeout(reqTimeout); + } + + if (request.timeout) { + req.once('socket', function (socket) { + reqTimeout = setTimeout(function () { + reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); + finalize(); + }, request.timeout); + }); + } + + req.on('error', function (err) { + reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); + + if (response && response.body) { + destroyStream(response.body, err); + } + + finalize(); + }); + + fixResponseChunkedTransferBadEnding(req, function (err) { + if (signal && signal.aborted) { + return; + } + + if (response && response.body) { + destroyStream(response.body, err); + } + }); + + /* c8 ignore next 18 */ + if (parseInt(process.version.substring(1)) < 14) { + // Before Node.js 14, pipeline() does not fully support async iterators and does not always + // properly handle when the socket close/end events are out of order. + req.on('socket', function (s) { + s.addListener('close', function (hadError) { + // if a data listener is still present we didn't end cleanly + const hasDataListener = s.listenerCount('data') > 0; + + // if end happened before close but the socket didn't emit an error, do it now + if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { + const err = new Error('Premature close'); + err.code = 'ERR_STREAM_PREMATURE_CLOSE'; + response.body.emit('error', err); + } + }); + }); + } + + req.on('response', function (res) { + clearTimeout(reqTimeout); + + const headers = createHeadersLenient(res.headers); + + // HTTP fetch step 5 + if (fetch.isRedirect(res.statusCode)) { + // HTTP fetch step 5.2 + const location = headers.get('Location'); + + // HTTP fetch step 5.3 + let locationURL = null; + try { + locationURL = location === null ? null : new URL$1(location, request.url).toString(); + } catch (err) { + // error here can only be invalid URL in Location: header + // do not throw when options.redirect == manual + // let the user extract the errorneous redirect URL + if (request.redirect !== 'manual') { + reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); + finalize(); + return; + } + } + + // HTTP fetch step 5.5 + switch (request.redirect) { + case 'error': + reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); + finalize(); + return; + case 'manual': + // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. + if (locationURL !== null) { + // handle corrupted header + try { + headers.set('Location', locationURL); + } catch (err) { + // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request + reject(err); + } + } + break; + case 'follow': + // HTTP-redirect fetch step 2 + if (locationURL === null) { + break; + } + + // HTTP-redirect fetch step 5 + if (request.counter >= request.follow) { + reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 6 (counter increment) + // Create a new Request object. + const requestOpts = { + headers: new Headers(request.headers), + follow: request.follow, + counter: request.counter + 1, + agent: request.agent, + compress: request.compress, + method: request.method, + body: request.body, + signal: request.signal, + timeout: request.timeout, + size: request.size + }; + + if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { + for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { + requestOpts.headers.delete(name); + } + } + + // HTTP-redirect fetch step 9 + if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { + reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 11 + if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { + requestOpts.method = 'GET'; + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); + } + + // HTTP-redirect fetch step 15 + resolve(fetch(new Request(locationURL, requestOpts))); + finalize(); + return; + } + } + + // prepare response + res.once('end', function () { + if (signal) signal.removeEventListener('abort', abortAndFinalize); + }); + let body = res.pipe(new PassThrough$1()); + + const response_options = { + url: request.url, + status: res.statusCode, + statusText: res.statusMessage, + headers: headers, + size: request.size, + timeout: request.timeout, + counter: request.counter + }; + + // HTTP-network fetch step 12.1.1.3 + const codings = headers.get('Content-Encoding'); + + // HTTP-network fetch step 12.1.1.4: handle content codings + + // in following scenarios we ignore compression support + // 1. compression support is disabled + // 2. HEAD request + // 3. no Content-Encoding header + // 4. no content response (204) + // 5. content not modified response (304) + if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { + response = new Response(body, response_options); + resolve(response); + return; + } + + // For Node v6+ + // Be less strict when decoding compressed responses, since sometimes + // servers send slightly invalid responses that are still accepted + // by common browsers. + // Always using Z_SYNC_FLUSH is what cURL does. + const zlibOptions = { + flush: zlib.Z_SYNC_FLUSH, + finishFlush: zlib.Z_SYNC_FLUSH + }; + + // for gzip + if (codings == 'gzip' || codings == 'x-gzip') { + body = body.pipe(zlib.createGunzip(zlibOptions)); + response = new Response(body, response_options); + resolve(response); + return; + } + + // for deflate + if (codings == 'deflate' || codings == 'x-deflate') { + // handle the infamous raw deflate response from old servers + // a hack for old IIS and Apache servers + const raw = res.pipe(new PassThrough$1()); + raw.once('data', function (chunk) { + // see http://stackoverflow.com/questions/37519828 + if ((chunk[0] & 0x0F) === 0x08) { + body = body.pipe(zlib.createInflate()); + } else { + body = body.pipe(zlib.createInflateRaw()); + } + response = new Response(body, response_options); + resolve(response); + }); + raw.on('end', function () { + // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. + if (!response) { + response = new Response(body, response_options); + resolve(response); + } + }); + return; + } + + // for br + if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { + body = body.pipe(zlib.createBrotliDecompress()); + response = new Response(body, response_options); + resolve(response); + return; + } + + // otherwise, use response as-is + response = new Response(body, response_options); + resolve(response); + }); + + writeToStream(req, request); + }); +} +function fixResponseChunkedTransferBadEnding(request, errorCallback) { + let socket; + + request.on('socket', function (s) { + socket = s; + }); + + request.on('response', function (response) { + const headers = response.headers; + + if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { + response.once('close', function (hadError) { + // tests for socket presence, as in some situations the + // the 'socket' event is not triggered for the request + // (happens in deno), avoids `TypeError` + // if a data listener is still present we didn't end cleanly + const hasDataListener = socket && socket.listenerCount('data') > 0; + + if (hasDataListener && !hadError) { + const err = new Error('Premature close'); + err.code = 'ERR_STREAM_PREMATURE_CLOSE'; + errorCallback(err); + } + }); + } + }); +} + +function destroyStream(stream, err) { + if (stream.destroy) { + stream.destroy(err); + } else { + // node < 8 + stream.emit('error', err); + stream.end(); + } +} + +/** + * Redirect code matching + * + * @param Number code Status code + * @return Boolean + */ +fetch.isRedirect = function (code) { + return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; +}; + +// expose Promise +fetch.Promise = global.Promise; + +module.exports = exports = fetch; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports["default"] = exports; +exports.Headers = Headers; +exports.Request = Request; +exports.Response = Response; +exports.FetchError = FetchError; +exports.AbortError = AbortError; + + +/***/ }), + +/***/ 12004: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Advanced Encryption Standard (AES) implementation. + * + * This implementation is based on the public domain library 'jscrypto' which + * was written by: + * + * Emily Stark (estark@stanford.edu) + * Mike Hamburg (mhamburg@stanford.edu) + * Dan Boneh (dabo@cs.stanford.edu) + * + * Parts of this code are based on the OpenSSL implementation of AES: + * http://www.openssl.org + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(24824); +__nccwpck_require__(65414); +__nccwpck_require__(46831); + +/* AES API */ +module.exports = forge.aes = forge.aes || {}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('AES-', key); + * cipher.start({iv: iv}); + * + * Creates an AES cipher object to encrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as a string of bytes, an array of bytes, + * a byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.startEncrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: false, + mode: mode + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('AES-', key); + * + * Creates an AES cipher object to encrypt data using the given symmetric key. + * + * The key may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.createEncryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: false, + mode: mode + }); +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('AES-', key); + * decipher.start({iv: iv}); + * + * Creates an AES cipher object to decrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as a string of bytes, an array of bytes, + * a byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.startDecrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: true, + mode: mode + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('AES-', key); + * + * Creates an AES cipher object to decrypt data using the given symmetric key. + * + * The key may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.createDecryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: true, + mode: mode + }); +}; + +/** + * Creates a new AES cipher algorithm object. + * + * @param name the name of the algorithm. + * @param mode the mode factory function. + * + * @return the AES algorithm object. + */ +forge.aes.Algorithm = function(name, mode) { + if(!init) { + initialize(); + } + var self = this; + self.name = name; + self.mode = new mode({ + blockSize: 16, + cipher: { + encrypt: function(inBlock, outBlock) { + return _updateBlock(self._w, inBlock, outBlock, false); + }, + decrypt: function(inBlock, outBlock) { + return _updateBlock(self._w, inBlock, outBlock, true); + } + } + }); + self._init = false; +}; + +/** + * Initializes this AES algorithm by expanding its key. + * + * @param options the options to use. + * key the key to use with this algorithm. + * decrypt true if the algorithm should be initialized for decryption, + * false for encryption. + */ +forge.aes.Algorithm.prototype.initialize = function(options) { + if(this._init) { + return; + } + + var key = options.key; + var tmp; + + /* Note: The key may be a string of bytes, an array of bytes, a byte + buffer, or an array of 32-bit integers. If the key is in bytes, then + it must be 16, 24, or 32 bytes in length. If it is in 32-bit + integers, it must be 4, 6, or 8 integers long. */ + + if(typeof key === 'string' && + (key.length === 16 || key.length === 24 || key.length === 32)) { + // convert key string into byte buffer + key = forge.util.createBuffer(key); + } else if(forge.util.isArray(key) && + (key.length === 16 || key.length === 24 || key.length === 32)) { + // convert key integer array into byte buffer + tmp = key; + key = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + key.putByte(tmp[i]); + } + } + + // convert key byte buffer into 32-bit integer array + if(!forge.util.isArray(key)) { + tmp = key; + key = []; + + // key lengths of 16, 24, 32 bytes allowed + var len = tmp.length(); + if(len === 16 || len === 24 || len === 32) { + len = len >>> 2; + for(var i = 0; i < len; ++i) { + key.push(tmp.getInt32()); + } + } + } + + // key must be an array of 32-bit integers by now + if(!forge.util.isArray(key) || + !(key.length === 4 || key.length === 6 || key.length === 8)) { + throw new Error('Invalid key parameter.'); + } + + // encryption operation is always used for these modes + var mode = this.mode.name; + var encryptOp = (['CFB', 'OFB', 'CTR', 'GCM'].indexOf(mode) !== -1); + + // do key expansion + this._w = _expandKey(key, options.decrypt && !encryptOp); + this._init = true; +}; + +/** + * Expands a key. Typically only used for testing. + * + * @param key the symmetric key to expand, as an array of 32-bit words. + * @param decrypt true to expand for decryption, false for encryption. + * + * @return the expanded key. + */ +forge.aes._expandKey = function(key, decrypt) { + if(!init) { + initialize(); + } + return _expandKey(key, decrypt); +}; + +/** + * Updates a single block. Typically only used for testing. + * + * @param w the expanded key to use. + * @param input an array of block-size 32-bit words. + * @param output an array of block-size 32-bit words. + * @param decrypt true to decrypt, false to encrypt. + */ +forge.aes._updateBlock = _updateBlock; + +/** Register AES algorithms **/ + +registerAlgorithm('AES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('AES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('AES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('AES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('AES-CTR', forge.cipher.modes.ctr); +registerAlgorithm('AES-GCM', forge.cipher.modes.gcm); + +function registerAlgorithm(name, mode) { + var factory = function() { + return new forge.aes.Algorithm(name, mode); + }; + forge.cipher.registerAlgorithm(name, factory); +} + +/** AES implementation **/ + +var init = false; // not yet initialized +var Nb = 4; // number of words comprising the state (AES = 4) +var sbox; // non-linear substitution table used in key expansion +var isbox; // inversion of sbox +var rcon; // round constant word array +var mix; // mix-columns table +var imix; // inverse mix-columns table + +/** + * Performs initialization, ie: precomputes tables to optimize for speed. + * + * One way to understand how AES works is to imagine that 'addition' and + * 'multiplication' are interfaces that require certain mathematical + * properties to hold true (ie: they are associative) but they might have + * different implementations and produce different kinds of results ... + * provided that their mathematical properties remain true. AES defines + * its own methods of addition and multiplication but keeps some important + * properties the same, ie: associativity and distributivity. The + * explanation below tries to shed some light on how AES defines addition + * and multiplication of bytes and 32-bit words in order to perform its + * encryption and decryption algorithms. + * + * The basics: + * + * The AES algorithm views bytes as binary representations of polynomials + * that have either 1 or 0 as the coefficients. It defines the addition + * or subtraction of two bytes as the XOR operation. It also defines the + * multiplication of two bytes as a finite field referred to as GF(2^8) + * (Note: 'GF' means "Galois Field" which is a field that contains a finite + * number of elements so GF(2^8) has 256 elements). + * + * This means that any two bytes can be represented as binary polynomials; + * when they multiplied together and modularly reduced by an irreducible + * polynomial of the 8th degree, the results are the field GF(2^8). The + * specific irreducible polynomial that AES uses in hexadecimal is 0x11b. + * This multiplication is associative with 0x01 as the identity: + * + * (b * 0x01 = GF(b, 0x01) = b). + * + * The operation GF(b, 0x02) can be performed at the byte level by left + * shifting b once and then XOR'ing it (to perform the modular reduction) + * with 0x11b if b is >= 128. Repeated application of the multiplication + * of 0x02 can be used to implement the multiplication of any two bytes. + * + * For instance, multiplying 0x57 and 0x13, denoted as GF(0x57, 0x13), can + * be performed by factoring 0x13 into 0x01, 0x02, and 0x10. Then these + * factors can each be multiplied by 0x57 and then added together. To do + * the multiplication, values for 0x57 multiplied by each of these 3 factors + * can be precomputed and stored in a table. To add them, the values from + * the table are XOR'd together. + * + * AES also defines addition and multiplication of words, that is 4-byte + * numbers represented as polynomials of 3 degrees where the coefficients + * are the values of the bytes. + * + * The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0. + * + * Addition is performed by XOR'ing like powers of x. Multiplication + * is performed in two steps, the first is an algebraic expansion as + * you would do normally (where addition is XOR). But the result is + * a polynomial larger than 3 degrees and thus it cannot fit in a word. So + * next the result is modularly reduced by an AES-specific polynomial of + * degree 4 which will always produce a polynomial of less than 4 degrees + * such that it will fit in a word. In AES, this polynomial is x^4 + 1. + * + * The modular product of two polynomials 'a' and 'b' is thus: + * + * d(x) = d3x^3 + d2x^2 + d1x + d0 + * with + * d0 = GF(a0, b0) ^ GF(a3, b1) ^ GF(a2, b2) ^ GF(a1, b3) + * d1 = GF(a1, b0) ^ GF(a0, b1) ^ GF(a3, b2) ^ GF(a2, b3) + * d2 = GF(a2, b0) ^ GF(a1, b1) ^ GF(a0, b2) ^ GF(a3, b3) + * d3 = GF(a3, b0) ^ GF(a2, b1) ^ GF(a1, b2) ^ GF(a0, b3) + * + * As a matrix: + * + * [d0] = [a0 a3 a2 a1][b0] + * [d1] [a1 a0 a3 a2][b1] + * [d2] [a2 a1 a0 a3][b2] + * [d3] [a3 a2 a1 a0][b3] + * + * Special polynomials defined by AES (0x02 == {02}): + * a(x) = {03}x^3 + {01}x^2 + {01}x + {02} + * a^-1(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}. + * + * These polynomials are used in the MixColumns() and InverseMixColumns() + * operations, respectively, to cause each element in the state to affect + * the output (referred to as diffusing). + * + * RotWord() uses: a0 = a1 = a2 = {00} and a3 = {01}, which is the + * polynomial x3. + * + * The ShiftRows() method modifies the last 3 rows in the state (where + * the state is 4 words with 4 bytes per word) by shifting bytes cyclically. + * The 1st byte in the second row is moved to the end of the row. The 1st + * and 2nd bytes in the third row are moved to the end of the row. The 1st, + * 2nd, and 3rd bytes are moved in the fourth row. + * + * More details on how AES arithmetic works: + * + * In the polynomial representation of binary numbers, XOR performs addition + * and subtraction and multiplication in GF(2^8) denoted as GF(a, b) + * corresponds with the multiplication of polynomials modulo an irreducible + * polynomial of degree 8. In other words, for AES, GF(a, b) will multiply + * polynomial 'a' with polynomial 'b' and then do a modular reduction by + * an AES-specific irreducible polynomial of degree 8. + * + * A polynomial is irreducible if its only divisors are one and itself. For + * the AES algorithm, this irreducible polynomial is: + * + * m(x) = x^8 + x^4 + x^3 + x + 1, + * + * or {01}{1b} in hexadecimal notation, where each coefficient is a bit: + * 100011011 = 283 = 0x11b. + * + * For example, GF(0x57, 0x83) = 0xc1 because + * + * 0x57 = 87 = 01010111 = x^6 + x^4 + x^2 + x + 1 + * 0x85 = 131 = 10000101 = x^7 + x + 1 + * + * (x^6 + x^4 + x^2 + x + 1) * (x^7 + x + 1) + * = x^13 + x^11 + x^9 + x^8 + x^7 + + * x^7 + x^5 + x^3 + x^2 + x + + * x^6 + x^4 + x^2 + x + 1 + * = x^13 + x^11 + x^9 + x^8 + x^6 + x^5 + x^4 + x^3 + 1 = y + * y modulo (x^8 + x^4 + x^3 + x + 1) + * = x^7 + x^6 + 1. + * + * The modular reduction by m(x) guarantees the result will be a binary + * polynomial of less than degree 8, so that it can fit in a byte. + * + * The operation to multiply a binary polynomial b with x (the polynomial + * x in binary representation is 00000010) is: + * + * b_7x^8 + b_6x^7 + b_5x^6 + b_4x^5 + b_3x^4 + b_2x^3 + b_1x^2 + b_0x^1 + * + * To get GF(b, x) we must reduce that by m(x). If b_7 is 0 (that is the + * most significant bit is 0 in b) then the result is already reduced. If + * it is 1, then we can reduce it by subtracting m(x) via an XOR. + * + * It follows that multiplication by x (00000010 or 0x02) can be implemented + * by performing a left shift followed by a conditional bitwise XOR with + * 0x1b. This operation on bytes is denoted by xtime(). Multiplication by + * higher powers of x can be implemented by repeated application of xtime(). + * + * By adding intermediate results, multiplication by any constant can be + * implemented. For instance: + * + * GF(0x57, 0x13) = 0xfe because: + * + * xtime(b) = (b & 128) ? (b << 1 ^ 0x11b) : (b << 1) + * + * Note: We XOR with 0x11b instead of 0x1b because in javascript our + * datatype for b can be larger than 1 byte, so a left shift will not + * automatically eliminate bits that overflow a byte ... by XOR'ing the + * overflow bit with 1 (the extra one from 0x11b) we zero it out. + * + * GF(0x57, 0x02) = xtime(0x57) = 0xae + * GF(0x57, 0x04) = xtime(0xae) = 0x47 + * GF(0x57, 0x08) = xtime(0x47) = 0x8e + * GF(0x57, 0x10) = xtime(0x8e) = 0x07 + * + * GF(0x57, 0x13) = GF(0x57, (0x01 ^ 0x02 ^ 0x10)) + * + * And by the distributive property (since XOR is addition and GF() is + * multiplication): + * + * = GF(0x57, 0x01) ^ GF(0x57, 0x02) ^ GF(0x57, 0x10) + * = 0x57 ^ 0xae ^ 0x07 + * = 0xfe. + */ +function initialize() { + init = true; + + /* Populate the Rcon table. These are the values given by + [x^(i-1),{00},{00},{00}] where x^(i-1) are powers of x (and x = 0x02) + in the field of GF(2^8), where i starts at 1. + + rcon[0] = [0x00, 0x00, 0x00, 0x00] + rcon[1] = [0x01, 0x00, 0x00, 0x00] 2^(1-1) = 2^0 = 1 + rcon[2] = [0x02, 0x00, 0x00, 0x00] 2^(2-1) = 2^1 = 2 + ... + rcon[9] = [0x1B, 0x00, 0x00, 0x00] 2^(9-1) = 2^8 = 0x1B + rcon[10] = [0x36, 0x00, 0x00, 0x00] 2^(10-1) = 2^9 = 0x36 + + We only store the first byte because it is the only one used. + */ + rcon = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36]; + + // compute xtime table which maps i onto GF(i, 0x02) + var xtime = new Array(256); + for(var i = 0; i < 128; ++i) { + xtime[i] = i << 1; + xtime[i + 128] = (i + 128) << 1 ^ 0x11B; + } + + // compute all other tables + sbox = new Array(256); + isbox = new Array(256); + mix = new Array(4); + imix = new Array(4); + for(var i = 0; i < 4; ++i) { + mix[i] = new Array(256); + imix[i] = new Array(256); + } + var e = 0, ei = 0, e2, e4, e8, sx, sx2, me, ime; + for(var i = 0; i < 256; ++i) { + /* We need to generate the SubBytes() sbox and isbox tables so that + we can perform byte substitutions. This requires us to traverse + all of the elements in GF, find their multiplicative inverses, + and apply to each the following affine transformation: + + bi' = bi ^ b(i + 4) mod 8 ^ b(i + 5) mod 8 ^ b(i + 6) mod 8 ^ + b(i + 7) mod 8 ^ ci + for 0 <= i < 8, where bi is the ith bit of the byte, and ci is the + ith bit of a byte c with the value {63} or {01100011}. + + It is possible to traverse every possible value in a Galois field + using what is referred to as a 'generator'. There are many + generators (128 out of 256): 3,5,6,9,11,82 to name a few. To fully + traverse GF we iterate 255 times, multiplying by our generator + each time. + + On each iteration we can determine the multiplicative inverse for + the current element. + + Suppose there is an element in GF 'e'. For a given generator 'g', + e = g^x. The multiplicative inverse of e is g^(255 - x). It turns + out that if use the inverse of a generator as another generator + it will produce all of the corresponding multiplicative inverses + at the same time. For this reason, we choose 5 as our inverse + generator because it only requires 2 multiplies and 1 add and its + inverse, 82, requires relatively few operations as well. + + In order to apply the affine transformation, the multiplicative + inverse 'ei' of 'e' can be repeatedly XOR'd (4 times) with a + bit-cycling of 'ei'. To do this 'ei' is first stored in 's' and + 'x'. Then 's' is left shifted and the high bit of 's' is made the + low bit. The resulting value is stored in 's'. Then 'x' is XOR'd + with 's' and stored in 'x'. On each subsequent iteration the same + operation is performed. When 4 iterations are complete, 'x' is + XOR'd with 'c' (0x63) and the transformed value is stored in 'x'. + For example: + + s = 01000001 + x = 01000001 + + iteration 1: s = 10000010, x ^= s + iteration 2: s = 00000101, x ^= s + iteration 3: s = 00001010, x ^= s + iteration 4: s = 00010100, x ^= s + x ^= 0x63 + + This can be done with a loop where s = (s << 1) | (s >> 7). However, + it can also be done by using a single 16-bit (in this case 32-bit) + number 'sx'. Since XOR is an associative operation, we can set 'sx' + to 'ei' and then XOR it with 'sx' left-shifted 1,2,3, and 4 times. + The most significant bits will flow into the high 8 bit positions + and be correctly XOR'd with one another. All that remains will be + to cycle the high 8 bits by XOR'ing them all with the lower 8 bits + afterwards. + + At the same time we're populating sbox and isbox we can precompute + the multiplication we'll need to do to do MixColumns() later. + */ + + // apply affine transformation + sx = ei ^ (ei << 1) ^ (ei << 2) ^ (ei << 3) ^ (ei << 4); + sx = (sx >> 8) ^ (sx & 255) ^ 0x63; + + // update tables + sbox[e] = sx; + isbox[sx] = e; + + /* Mixing columns is done using matrix multiplication. The columns + that are to be mixed are each a single word in the current state. + The state has Nb columns (4 columns). Therefore each column is a + 4 byte word. So to mix the columns in a single column 'c' where + its rows are r0, r1, r2, and r3, we use the following matrix + multiplication: + + [2 3 1 1]*[r0,c]=[r'0,c] + [1 2 3 1] [r1,c] [r'1,c] + [1 1 2 3] [r2,c] [r'2,c] + [3 1 1 2] [r3,c] [r'3,c] + + r0, r1, r2, and r3 are each 1 byte of one of the words in the + state (a column). To do matrix multiplication for each mixed + column c' we multiply the corresponding row from the left matrix + with the corresponding column from the right matrix. In total, we + get 4 equations: + + r0,c' = 2*r0,c + 3*r1,c + 1*r2,c + 1*r3,c + r1,c' = 1*r0,c + 2*r1,c + 3*r2,c + 1*r3,c + r2,c' = 1*r0,c + 1*r1,c + 2*r2,c + 3*r3,c + r3,c' = 3*r0,c + 1*r1,c + 1*r2,c + 2*r3,c + + As usual, the multiplication is as previously defined and the + addition is XOR. In order to optimize mixing columns we can store + the multiplication results in tables. If you think of the whole + column as a word (it might help to visualize by mentally rotating + the equations above by counterclockwise 90 degrees) then you can + see that it would be useful to map the multiplications performed on + each byte (r0, r1, r2, r3) onto a word as well. For instance, we + could map 2*r0,1*r0,1*r0,3*r0 onto a word by storing 2*r0 in the + highest 8 bits and 3*r0 in the lowest 8 bits (with the other two + respectively in the middle). This means that a table can be + constructed that uses r0 as an index to the word. We can do the + same with r1, r2, and r3, creating a total of 4 tables. + + To construct a full c', we can just look up each byte of c in + their respective tables and XOR the results together. + + Also, to build each table we only have to calculate the word + for 2,1,1,3 for every byte ... which we can do on each iteration + of this loop since we will iterate over every byte. After we have + calculated 2,1,1,3 we can get the results for the other tables + by cycling the byte at the end to the beginning. For instance + we can take the result of table 2,1,1,3 and produce table 3,2,1,1 + by moving the right most byte to the left most position just like + how you can imagine the 3 moved out of 2,1,1,3 and to the front + to produce 3,2,1,1. + + There is another optimization in that the same multiples of + the current element we need in order to advance our generator + to the next iteration can be reused in performing the 2,1,1,3 + calculation. We also calculate the inverse mix column tables, + with e,9,d,b being the inverse of 2,1,1,3. + + When we're done, and we need to actually mix columns, the first + byte of each state word should be put through mix[0] (2,1,1,3), + the second through mix[1] (3,2,1,1) and so forth. Then they should + be XOR'd together to produce the fully mixed column. + */ + + // calculate mix and imix table values + sx2 = xtime[sx]; + e2 = xtime[e]; + e4 = xtime[e2]; + e8 = xtime[e4]; + me = + (sx2 << 24) ^ // 2 + (sx << 16) ^ // 1 + (sx << 8) ^ // 1 + (sx ^ sx2); // 3 + ime = + (e2 ^ e4 ^ e8) << 24 ^ // E (14) + (e ^ e8) << 16 ^ // 9 + (e ^ e4 ^ e8) << 8 ^ // D (13) + (e ^ e2 ^ e8); // B (11) + // produce each of the mix tables by rotating the 2,1,1,3 value + for(var n = 0; n < 4; ++n) { + mix[n][e] = me; + imix[n][sx] = ime; + // cycle the right most byte to the left most position + // ie: 2,1,1,3 becomes 3,2,1,1 + me = me << 24 | me >>> 8; + ime = ime << 24 | ime >>> 8; + } + + // get next element and inverse + if(e === 0) { + // 1 is the inverse of 1 + e = ei = 1; + } else { + // e = 2e + 2*2*2*(10e)) = multiply e by 82 (chosen generator) + // ei = ei + 2*2*ei = multiply ei by 5 (inverse generator) + e = e2 ^ xtime[xtime[xtime[e2 ^ e8]]]; + ei ^= xtime[xtime[ei]]; + } + } +} + +/** + * Generates a key schedule using the AES key expansion algorithm. + * + * The AES algorithm takes the Cipher Key, K, and performs a Key Expansion + * routine to generate a key schedule. The Key Expansion generates a total + * of Nb*(Nr + 1) words: the algorithm requires an initial set of Nb words, + * and each of the Nr rounds requires Nb words of key data. The resulting + * key schedule consists of a linear array of 4-byte words, denoted [wi ], + * with i in the range 0 <= i < Nb(Nr + 1). + * + * KeyExpansion(byte key[4*Nk], word w[Nb*(Nr+1)], Nk) + * AES-128 (Nb=4, Nk=4, Nr=10) + * AES-192 (Nb=4, Nk=6, Nr=12) + * AES-256 (Nb=4, Nk=8, Nr=14) + * Note: Nr=Nk+6. + * + * Nb is the number of columns (32-bit words) comprising the State (or + * number of bytes in a block). For AES, Nb=4. + * + * @param key the key to schedule (as an array of 32-bit words). + * @param decrypt true to modify the key schedule to decrypt, false not to. + * + * @return the generated key schedule. + */ +function _expandKey(key, decrypt) { + // copy the key's words to initialize the key schedule + var w = key.slice(0); + + /* RotWord() will rotate a word, moving the first byte to the last + byte's position (shifting the other bytes left). + + We will be getting the value of Rcon at i / Nk. 'i' will iterate + from Nk to (Nb * Nr+1). Nk = 4 (4 byte key), Nb = 4 (4 words in + a block), Nr = Nk + 6 (10). Therefore 'i' will iterate from + 4 to 44 (exclusive). Each time we iterate 4 times, i / Nk will + increase by 1. We use a counter iNk to keep track of this. + */ + + // go through the rounds expanding the key + var temp, iNk = 1; + var Nk = w.length; + var Nr1 = Nk + 6 + 1; + var end = Nb * Nr1; + for(var i = Nk; i < end; ++i) { + temp = w[i - 1]; + if(i % Nk === 0) { + // temp = SubWord(RotWord(temp)) ^ Rcon[i / Nk] + temp = + sbox[temp >>> 16 & 255] << 24 ^ + sbox[temp >>> 8 & 255] << 16 ^ + sbox[temp & 255] << 8 ^ + sbox[temp >>> 24] ^ (rcon[iNk] << 24); + iNk++; + } else if(Nk > 6 && (i % Nk === 4)) { + // temp = SubWord(temp) + temp = + sbox[temp >>> 24] << 24 ^ + sbox[temp >>> 16 & 255] << 16 ^ + sbox[temp >>> 8 & 255] << 8 ^ + sbox[temp & 255]; + } + w[i] = w[i - Nk] ^ temp; + } + + /* When we are updating a cipher block we always use the code path for + encryption whether we are decrypting or not (to shorten code and + simplify the generation of look up tables). However, because there + are differences in the decryption algorithm, other than just swapping + in different look up tables, we must transform our key schedule to + account for these changes: + + 1. The decryption algorithm gets its key rounds in reverse order. + 2. The decryption algorithm adds the round key before mixing columns + instead of afterwards. + + We don't need to modify our key schedule to handle the first case, + we can just traverse the key schedule in reverse order when decrypting. + + The second case requires a little work. + + The tables we built for performing rounds will take an input and then + perform SubBytes() and MixColumns() or, for the decrypt version, + InvSubBytes() and InvMixColumns(). But the decrypt algorithm requires + us to AddRoundKey() before InvMixColumns(). This means we'll need to + apply some transformations to the round key to inverse-mix its columns + so they'll be correct for moving AddRoundKey() to after the state has + had its columns inverse-mixed. + + To inverse-mix the columns of the state when we're decrypting we use a + lookup table that will apply InvSubBytes() and InvMixColumns() at the + same time. However, the round key's bytes are not inverse-substituted + in the decryption algorithm. To get around this problem, we can first + substitute the bytes in the round key so that when we apply the + transformation via the InvSubBytes()+InvMixColumns() table, it will + undo our substitution leaving us with the original value that we + want -- and then inverse-mix that value. + + This change will correctly alter our key schedule so that we can XOR + each round key with our already transformed decryption state. This + allows us to use the same code path as the encryption algorithm. + + We make one more change to the decryption key. Since the decryption + algorithm runs in reverse from the encryption algorithm, we reverse + the order of the round keys to avoid having to iterate over the key + schedule backwards when running the encryption algorithm later in + decryption mode. In addition to reversing the order of the round keys, + we also swap each round key's 2nd and 4th rows. See the comments + section where rounds are performed for more details about why this is + done. These changes are done inline with the other substitution + described above. + */ + if(decrypt) { + var tmp; + var m0 = imix[0]; + var m1 = imix[1]; + var m2 = imix[2]; + var m3 = imix[3]; + var wnew = w.slice(0); + end = w.length; + for(var i = 0, wi = end - Nb; i < end; i += Nb, wi -= Nb) { + // do not sub the first or last round key (round keys are Nb + // words) as no column mixing is performed before they are added, + // but do change the key order + if(i === 0 || i === (end - Nb)) { + wnew[i] = w[wi]; + wnew[i + 1] = w[wi + 3]; + wnew[i + 2] = w[wi + 2]; + wnew[i + 3] = w[wi + 1]; + } else { + // substitute each round key byte because the inverse-mix + // table will inverse-substitute it (effectively cancel the + // substitution because round key bytes aren't sub'd in + // decryption mode) and swap indexes 3 and 1 + for(var n = 0; n < Nb; ++n) { + tmp = w[wi + n]; + wnew[i + (3&-n)] = + m0[sbox[tmp >>> 24]] ^ + m1[sbox[tmp >>> 16 & 255]] ^ + m2[sbox[tmp >>> 8 & 255]] ^ + m3[sbox[tmp & 255]]; + } + } + } + w = wnew; + } + + return w; +} + +/** + * Updates a single block (16 bytes) using AES. The update will either + * encrypt or decrypt the block. + * + * @param w the key schedule. + * @param input the input block (an array of 32-bit words). + * @param output the updated output block. + * @param decrypt true to decrypt the block, false to encrypt it. + */ +function _updateBlock(w, input, output, decrypt) { + /* + Cipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) + begin + byte state[4,Nb] + state = in + AddRoundKey(state, w[0, Nb-1]) + for round = 1 step 1 to Nr-1 + SubBytes(state) + ShiftRows(state) + MixColumns(state) + AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) + end for + SubBytes(state) + ShiftRows(state) + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + out = state + end + + InvCipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) + begin + byte state[4,Nb] + state = in + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + for round = Nr-1 step -1 downto 1 + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) + InvMixColumns(state) + end for + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[0, Nb-1]) + out = state + end + */ + + // Encrypt: AddRoundKey(state, w[0, Nb-1]) + // Decrypt: AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + var Nr = w.length / 4 - 1; + var m0, m1, m2, m3, sub; + if(decrypt) { + m0 = imix[0]; + m1 = imix[1]; + m2 = imix[2]; + m3 = imix[3]; + sub = isbox; + } else { + m0 = mix[0]; + m1 = mix[1]; + m2 = mix[2]; + m3 = mix[3]; + sub = sbox; + } + var a, b, c, d, a2, b2, c2; + a = input[0] ^ w[0]; + b = input[decrypt ? 3 : 1] ^ w[1]; + c = input[2] ^ w[2]; + d = input[decrypt ? 1 : 3] ^ w[3]; + var i = 3; + + /* In order to share code we follow the encryption algorithm when both + encrypting and decrypting. To account for the changes required in the + decryption algorithm, we use different lookup tables when decrypting + and use a modified key schedule to account for the difference in the + order of transformations applied when performing rounds. We also get + key rounds in reverse order (relative to encryption). */ + for(var round = 1; round < Nr; ++round) { + /* As described above, we'll be using table lookups to perform the + column mixing. Each column is stored as a word in the state (the + array 'input' has one column as a word at each index). In order to + mix a column, we perform these transformations on each row in c, + which is 1 byte in each word. The new column for c0 is c'0: + + m0 m1 m2 m3 + r0,c'0 = 2*r0,c0 + 3*r1,c0 + 1*r2,c0 + 1*r3,c0 + r1,c'0 = 1*r0,c0 + 2*r1,c0 + 3*r2,c0 + 1*r3,c0 + r2,c'0 = 1*r0,c0 + 1*r1,c0 + 2*r2,c0 + 3*r3,c0 + r3,c'0 = 3*r0,c0 + 1*r1,c0 + 1*r2,c0 + 2*r3,c0 + + So using mix tables where c0 is a word with r0 being its upper + 8 bits and r3 being its lower 8 bits: + + m0[c0 >> 24] will yield this word: [2*r0,1*r0,1*r0,3*r0] + ... + m3[c0 & 255] will yield this word: [1*r3,1*r3,3*r3,2*r3] + + Therefore to mix the columns in each word in the state we + do the following (& 255 omitted for brevity): + c'0,r0 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r1 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r2 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r3 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + + However, before mixing, the algorithm requires us to perform + ShiftRows(). The ShiftRows() transformation cyclically shifts the + last 3 rows of the state over different offsets. The first row + (r = 0) is not shifted. + + s'_r,c = s_r,(c + shift(r, Nb) mod Nb + for 0 < r < 4 and 0 <= c < Nb and + shift(1, 4) = 1 + shift(2, 4) = 2 + shift(3, 4) = 3. + + This causes the first byte in r = 1 to be moved to the end of + the row, the first 2 bytes in r = 2 to be moved to the end of + the row, the first 3 bytes in r = 3 to be moved to the end of + the row: + + r1: [c0 c1 c2 c3] => [c1 c2 c3 c0] + r2: [c0 c1 c2 c3] [c2 c3 c0 c1] + r3: [c0 c1 c2 c3] [c3 c0 c1 c2] + + We can make these substitutions inline with our column mixing to + generate an updated set of equations to produce each word in the + state (note the columns have changed positions): + + c0 c1 c2 c3 => c0 c1 c2 c3 + c0 c1 c2 c3 c1 c2 c3 c0 (cycled 1 byte) + c0 c1 c2 c3 c2 c3 c0 c1 (cycled 2 bytes) + c0 c1 c2 c3 c3 c0 c1 c2 (cycled 3 bytes) + + Therefore: + + c'0 = 2*r0,c0 + 3*r1,c1 + 1*r2,c2 + 1*r3,c3 + c'0 = 1*r0,c0 + 2*r1,c1 + 3*r2,c2 + 1*r3,c3 + c'0 = 1*r0,c0 + 1*r1,c1 + 2*r2,c2 + 3*r3,c3 + c'0 = 3*r0,c0 + 1*r1,c1 + 1*r2,c2 + 2*r3,c3 + + c'1 = 2*r0,c1 + 3*r1,c2 + 1*r2,c3 + 1*r3,c0 + c'1 = 1*r0,c1 + 2*r1,c2 + 3*r2,c3 + 1*r3,c0 + c'1 = 1*r0,c1 + 1*r1,c2 + 2*r2,c3 + 3*r3,c0 + c'1 = 3*r0,c1 + 1*r1,c2 + 1*r2,c3 + 2*r3,c0 + + ... and so forth for c'2 and c'3. The important distinction is + that the columns are cycling, with c0 being used with the m0 + map when calculating c0, but c1 being used with the m0 map when + calculating c1 ... and so forth. + + When performing the inverse we transform the mirror image and + skip the bottom row, instead of the top one, and move upwards: + + c3 c2 c1 c0 => c0 c3 c2 c1 (cycled 3 bytes) *same as encryption + c3 c2 c1 c0 c1 c0 c3 c2 (cycled 2 bytes) + c3 c2 c1 c0 c2 c1 c0 c3 (cycled 1 byte) *same as encryption + c3 c2 c1 c0 c3 c2 c1 c0 + + If you compare the resulting matrices for ShiftRows()+MixColumns() + and for InvShiftRows()+InvMixColumns() the 2nd and 4th columns are + different (in encrypt mode vs. decrypt mode). So in order to use + the same code to handle both encryption and decryption, we will + need to do some mapping. + + If in encryption mode we let a=c0, b=c1, c=c2, d=c3, and r be + a row number in the state, then the resulting matrix in encryption + mode for applying the above transformations would be: + + r1: a b c d + r2: b c d a + r3: c d a b + r4: d a b c + + If we did the same in decryption mode we would get: + + r1: a d c b + r2: b a d c + r3: c b a d + r4: d c b a + + If instead we swap d and b (set b=c3 and d=c1), then we get: + + r1: a b c d + r2: d a b c + r3: c d a b + r4: b c d a + + Now the 1st and 3rd rows are the same as the encryption matrix. All + we need to do then to make the mapping exactly the same is to swap + the 2nd and 4th rows when in decryption mode. To do this without + having to do it on each iteration, we swapped the 2nd and 4th rows + in the decryption key schedule. We also have to do the swap above + when we first pull in the input and when we set the final output. */ + a2 = + m0[a >>> 24] ^ + m1[b >>> 16 & 255] ^ + m2[c >>> 8 & 255] ^ + m3[d & 255] ^ w[++i]; + b2 = + m0[b >>> 24] ^ + m1[c >>> 16 & 255] ^ + m2[d >>> 8 & 255] ^ + m3[a & 255] ^ w[++i]; + c2 = + m0[c >>> 24] ^ + m1[d >>> 16 & 255] ^ + m2[a >>> 8 & 255] ^ + m3[b & 255] ^ w[++i]; + d = + m0[d >>> 24] ^ + m1[a >>> 16 & 255] ^ + m2[b >>> 8 & 255] ^ + m3[c & 255] ^ w[++i]; + a = a2; + b = b2; + c = c2; + } + + /* + Encrypt: + SubBytes(state) + ShiftRows(state) + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + + Decrypt: + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[0, Nb-1]) + */ + // Note: rows are shifted inline + output[0] = + (sub[a >>> 24] << 24) ^ + (sub[b >>> 16 & 255] << 16) ^ + (sub[c >>> 8 & 255] << 8) ^ + (sub[d & 255]) ^ w[++i]; + output[decrypt ? 3 : 1] = + (sub[b >>> 24] << 24) ^ + (sub[c >>> 16 & 255] << 16) ^ + (sub[d >>> 8 & 255] << 8) ^ + (sub[a & 255]) ^ w[++i]; + output[2] = + (sub[c >>> 24] << 24) ^ + (sub[d >>> 16 & 255] << 16) ^ + (sub[a >>> 8 & 255] << 8) ^ + (sub[b & 255]) ^ w[++i]; + output[decrypt ? 1 : 3] = + (sub[d >>> 24] << 24) ^ + (sub[a >>> 16 & 255] << 16) ^ + (sub[b >>> 8 & 255] << 8) ^ + (sub[c & 255]) ^ w[++i]; +} + +/** + * Deprecated. Instead, use: + * + * forge.cipher.createCipher('AES-', key); + * forge.cipher.createDecipher('AES-', key); + * + * Creates a deprecated AES cipher object. This object's mode will default to + * CBC (cipher-block-chaining). + * + * The key and iv may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param options the options to use. + * key the symmetric key to use. + * output the buffer to write to. + * decrypt true for decryption, false for encryption. + * mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +function _createCipher(options) { + options = options || {}; + var mode = (options.mode || 'CBC').toUpperCase(); + var algorithm = 'AES-' + mode; + + var cipher; + if(options.decrypt) { + cipher = forge.cipher.createDecipher(algorithm, options.key); + } else { + cipher = forge.cipher.createCipher(algorithm, options.key); + } + + // backwards compatible start API + var start = cipher.start; + cipher.start = function(iv, options) { + // backwards compatibility: support second arg as output buffer + var output = null; + if(options instanceof forge.util.ByteBuffer) { + output = options; + options = {}; + } + options = options || {}; + options.output = output; + options.iv = iv; + start.call(cipher, options); + }; + + return cipher; +} + + +/***/ }), + +/***/ 12730: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * A Javascript implementation of AES Cipher Suites for TLS. + * + * @author Dave Longley + * + * Copyright (c) 2009-2015 Digital Bazaar, Inc. + * + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(12004); +__nccwpck_require__(60222); + +var tls = module.exports = forge.tls; + +/** + * Supported cipher suites. + */ +tls.CipherSuites['TLS_RSA_WITH_AES_128_CBC_SHA'] = { + id: [0x00, 0x2f], + name: 'TLS_RSA_WITH_AES_128_CBC_SHA', + initSecurityParameters: function(sp) { + sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; + sp.cipher_type = tls.CipherType.block; + sp.enc_key_length = 16; + sp.block_length = 16; + sp.fixed_iv_length = 16; + sp.record_iv_length = 16; + sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; + sp.mac_length = 20; + sp.mac_key_length = 20; + }, + initConnectionState: initConnectionState +}; +tls.CipherSuites['TLS_RSA_WITH_AES_256_CBC_SHA'] = { + id: [0x00, 0x35], + name: 'TLS_RSA_WITH_AES_256_CBC_SHA', + initSecurityParameters: function(sp) { + sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; + sp.cipher_type = tls.CipherType.block; + sp.enc_key_length = 32; + sp.block_length = 16; + sp.fixed_iv_length = 16; + sp.record_iv_length = 16; + sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; + sp.mac_length = 20; + sp.mac_key_length = 20; + }, + initConnectionState: initConnectionState +}; + +function initConnectionState(state, c, sp) { + var client = (c.entity === forge.tls.ConnectionEnd.client); + + // cipher setup + state.read.cipherState = { + init: false, + cipher: forge.cipher.createDecipher('AES-CBC', client ? + sp.keys.server_write_key : sp.keys.client_write_key), + iv: client ? sp.keys.server_write_IV : sp.keys.client_write_IV + }; + state.write.cipherState = { + init: false, + cipher: forge.cipher.createCipher('AES-CBC', client ? + sp.keys.client_write_key : sp.keys.server_write_key), + iv: client ? sp.keys.client_write_IV : sp.keys.server_write_IV + }; + state.read.cipherFunction = decrypt_aes_cbc_sha1; + state.write.cipherFunction = encrypt_aes_cbc_sha1; + + // MAC setup + state.read.macLength = state.write.macLength = sp.mac_length; + state.read.macFunction = state.write.macFunction = tls.hmac_sha1; +} + +/** + * Encrypts the TLSCompressed record into a TLSCipherText record using AES + * in CBC mode. + * + * @param record the TLSCompressed record to encrypt. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +function encrypt_aes_cbc_sha1(record, s) { + var rval = false; + + // append MAC to fragment, update sequence number + var mac = s.macFunction(s.macKey, s.sequenceNumber, record); + record.fragment.putBytes(mac); + s.updateSequenceNumber(); + + // TLS 1.1+ use an explicit IV every time to protect against CBC attacks + var iv; + if(record.version.minor === tls.Versions.TLS_1_0.minor) { + // use the pre-generated IV when initializing for TLS 1.0, otherwise use + // the residue from the previous encryption + iv = s.cipherState.init ? null : s.cipherState.iv; + } else { + iv = forge.random.getBytesSync(16); + } + + s.cipherState.init = true; + + // start cipher + var cipher = s.cipherState.cipher; + cipher.start({iv: iv}); + + // TLS 1.1+ write IV into output + if(record.version.minor >= tls.Versions.TLS_1_1.minor) { + cipher.output.putBytes(iv); + } + + // do encryption (default padding is appropriate) + cipher.update(record.fragment); + if(cipher.finish(encrypt_aes_cbc_sha1_padding)) { + // set record fragment to encrypted output + record.fragment = cipher.output; + record.length = record.fragment.length(); + rval = true; + } + + return rval; +} + +/** + * Handles padding for aes_cbc_sha1 in encrypt mode. + * + * @param blockSize the block size. + * @param input the input buffer. + * @param decrypt true in decrypt mode, false in encrypt mode. + * + * @return true on success, false on failure. + */ +function encrypt_aes_cbc_sha1_padding(blockSize, input, decrypt) { + /* The encrypted data length (TLSCiphertext.length) is one more than the sum + of SecurityParameters.block_length, TLSCompressed.length, + SecurityParameters.mac_length, and padding_length. + + The padding may be any length up to 255 bytes long, as long as it results in + the TLSCiphertext.length being an integral multiple of the block length. + Lengths longer than necessary might be desirable to frustrate attacks on a + protocol based on analysis of the lengths of exchanged messages. Each uint8 + in the padding data vector must be filled with the padding length value. + + The padding length should be such that the total size of the + GenericBlockCipher structure is a multiple of the cipher's block length. + Legal values range from zero to 255, inclusive. This length specifies the + length of the padding field exclusive of the padding_length field itself. + + This is slightly different from PKCS#7 because the padding value is 1 + less than the actual number of padding bytes if you include the + padding_length uint8 itself as a padding byte. */ + if(!decrypt) { + // get the number of padding bytes required to reach the blockSize and + // subtract 1 for the padding value (to make room for the padding_length + // uint8) + var padding = blockSize - (input.length() % blockSize); + input.fillWithByte(padding - 1, padding); + } + return true; +} + +/** + * Handles padding for aes_cbc_sha1 in decrypt mode. + * + * @param blockSize the block size. + * @param output the output buffer. + * @param decrypt true in decrypt mode, false in encrypt mode. + * + * @return true on success, false on failure. + */ +function decrypt_aes_cbc_sha1_padding(blockSize, output, decrypt) { + var rval = true; + if(decrypt) { + /* The last byte in the output specifies the number of padding bytes not + including itself. Each of the padding bytes has the same value as that + last byte (known as the padding_length). Here we check all padding + bytes to ensure they have the value of padding_length even if one of + them is bad in order to ward-off timing attacks. */ + var len = output.length(); + var paddingLength = output.last(); + for(var i = len - 1 - paddingLength; i < len - 1; ++i) { + rval = rval && (output.at(i) == paddingLength); + } + if(rval) { + // trim off padding bytes and last padding length byte + output.truncate(paddingLength + 1); + } + } + return rval; +} + +/** + * Decrypts a TLSCipherText record into a TLSCompressed record using + * AES in CBC mode. + * + * @param record the TLSCipherText record to decrypt. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +function decrypt_aes_cbc_sha1(record, s) { + var rval = false; + + var iv; + if(record.version.minor === tls.Versions.TLS_1_0.minor) { + // use pre-generated IV when initializing for TLS 1.0, otherwise use the + // residue from the previous decryption + iv = s.cipherState.init ? null : s.cipherState.iv; + } else { + // TLS 1.1+ use an explicit IV every time to protect against CBC attacks + // that is appended to the record fragment + iv = record.fragment.getBytes(16); + } + + s.cipherState.init = true; + + // start cipher + var cipher = s.cipherState.cipher; + cipher.start({iv: iv}); + + // do decryption + cipher.update(record.fragment); + rval = cipher.finish(decrypt_aes_cbc_sha1_padding); + + // even if decryption fails, keep going to minimize timing attacks + + // decrypted data: + // first (len - 20) bytes = application data + // last 20 bytes = MAC + var macLen = s.macLength; + + // create a random MAC to check against should the mac length check fail + // Note: do this regardless of the failure to keep timing consistent + var mac = forge.random.getBytesSync(macLen); + + // get fragment and mac + var len = cipher.output.length(); + if(len >= macLen) { + record.fragment = cipher.output.getBytes(len - macLen); + mac = cipher.output.getBytes(macLen); + } else { + // bad data, but get bytes anyway to try to keep timing consistent + record.fragment = cipher.output.getBytes(); + } + record.fragment = forge.util.createBuffer(record.fragment); + record.length = record.fragment.length(); + + // see if data integrity checks out, update sequence number + var mac2 = s.macFunction(s.macKey, s.sequenceNumber, record); + s.updateSequenceNumber(); + rval = compareMacs(s.macKey, mac, mac2) && rval; + return rval; +} + +/** + * Safely compare two MACs. This function will compare two MACs in a way + * that protects against timing attacks. + * + * TODO: Expose elsewhere as a utility API. + * + * See: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/february/double-hmac-verification/ + * + * @param key the MAC key to use. + * @param mac1 as a binary-encoded string of bytes. + * @param mac2 as a binary-encoded string of bytes. + * + * @return true if the MACs are the same, false if not. + */ +function compareMacs(key, mac1, mac2) { + var hmac = forge.hmac.create(); + + hmac.start('SHA1', key); + hmac.update(mac1); + mac1 = hmac.digest().getBytes(); + + hmac.start(null, null); + hmac.update(mac2); + mac2 = hmac.digest().getBytes(); + + return mac1 === mac2; +} + + +/***/ }), + +/***/ 97313: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +/** + * Copyright (c) 2019 Digital Bazaar, Inc. + */ + +var forge = __nccwpck_require__(40080); +__nccwpck_require__(87878); +var asn1 = forge.asn1; + +exports.privateKeyValidator = { + // PrivateKeyInfo + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'PrivateKeyInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // privateKeyAlgorithm + name: 'PrivateKeyInfo.privateKeyAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'privateKeyOid' + }] + }, { + // PrivateKey + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'privateKey' + }] +}; + +exports.publicKeyValidator = { + name: 'SubjectPublicKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'subjectPublicKeyInfo', + value: [{ + name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'publicKeyOid' + }] + }, + // capture group for ed25519PublicKey + { + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + composed: true, + captureBitStringValue: 'ed25519PublicKey' + } + // FIXME: this is capture group for rsaPublicKey, use it in this API or + // discard? + /* { + // subjectPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + value: [{ + // RSAPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'rsaPublicKey' + }] + } */ + ] +}; + + +/***/ }), + +/***/ 87878: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of Abstract Syntax Notation Number One. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + * + * An API for storing data using the Abstract Syntax Notation Number One + * format using DER (Distinguished Encoding Rules) encoding. This encoding is + * commonly used to store data for PKI, i.e. X.509 Certificates, and this + * implementation exists for that purpose. + * + * Abstract Syntax Notation Number One (ASN.1) is used to define the abstract + * syntax of information without restricting the way the information is encoded + * for transmission. It provides a standard that allows for open systems + * communication. ASN.1 defines the syntax of information data and a number of + * simple data types as well as a notation for describing them and specifying + * values for them. + * + * The RSA algorithm creates public and private keys that are often stored in + * X.509 or PKCS#X formats -- which use ASN.1 (encoded in DER format). This + * class provides the most basic functionality required to store and load DSA + * keys that are encoded according to ASN.1. + * + * The most common binary encodings for ASN.1 are BER (Basic Encoding Rules) + * and DER (Distinguished Encoding Rules). DER is just a subset of BER that + * has stricter requirements for how data must be encoded. + * + * Each ASN.1 structure has a tag (a byte identifying the ASN.1 structure type) + * and a byte array for the value of this ASN1 structure which may be data or a + * list of ASN.1 structures. + * + * Each ASN.1 structure using BER is (Tag-Length-Value): + * + * | byte 0 | bytes X | bytes Y | + * |--------|---------|---------- + * | tag | length | value | + * + * ASN.1 allows for tags to be of "High-tag-number form" which allows a tag to + * be two or more octets, but that is not supported by this class. A tag is + * only 1 byte. Bits 1-5 give the tag number (ie the data type within a + * particular 'class'), 6 indicates whether or not the ASN.1 value is + * constructed from other ASN.1 values, and bits 7 and 8 give the 'class'. If + * bits 7 and 8 are both zero, the class is UNIVERSAL. If only bit 7 is set, + * then the class is APPLICATION. If only bit 8 is set, then the class is + * CONTEXT_SPECIFIC. If both bits 7 and 8 are set, then the class is PRIVATE. + * The tag numbers for the data types for the class UNIVERSAL are listed below: + * + * UNIVERSAL 0 Reserved for use by the encoding rules + * UNIVERSAL 1 Boolean type + * UNIVERSAL 2 Integer type + * UNIVERSAL 3 Bitstring type + * UNIVERSAL 4 Octetstring type + * UNIVERSAL 5 Null type + * UNIVERSAL 6 Object identifier type + * UNIVERSAL 7 Object descriptor type + * UNIVERSAL 8 External type and Instance-of type + * UNIVERSAL 9 Real type + * UNIVERSAL 10 Enumerated type + * UNIVERSAL 11 Embedded-pdv type + * UNIVERSAL 12 UTF8String type + * UNIVERSAL 13 Relative object identifier type + * UNIVERSAL 14-15 Reserved for future editions + * UNIVERSAL 16 Sequence and Sequence-of types + * UNIVERSAL 17 Set and Set-of types + * UNIVERSAL 18-22, 25-30 Character string types + * UNIVERSAL 23-24 Time types + * + * The length of an ASN.1 structure is specified after the tag identifier. + * There is a definite form and an indefinite form. The indefinite form may + * be used if the encoding is constructed and not all immediately available. + * The indefinite form is encoded using a length byte with only the 8th bit + * set. The end of the constructed object is marked using end-of-contents + * octets (two zero bytes). + * + * The definite form looks like this: + * + * The length may take up 1 or more bytes, it depends on the length of the + * value of the ASN.1 structure. DER encoding requires that if the ASN.1 + * structure has a value that has a length greater than 127, more than 1 byte + * will be used to store its length, otherwise just one byte will be used. + * This is strict. + * + * In the case that the length of the ASN.1 value is less than 127, 1 octet + * (byte) is used to store the "short form" length. The 8th bit has a value of + * 0 indicating the length is "short form" and not "long form" and bits 7-1 + * give the length of the data. (The 8th bit is the left-most, most significant + * bit: also known as big endian or network format). + * + * In the case that the length of the ASN.1 value is greater than 127, 2 to + * 127 octets (bytes) are used to store the "long form" length. The first + * byte's 8th bit is set to 1 to indicate the length is "long form." Bits 7-1 + * give the number of additional octets. All following octets are in base 256 + * with the most significant digit first (typical big-endian binary unsigned + * integer storage). So, for instance, if the length of a value was 257, the + * first byte would be set to: + * + * 10000010 = 130 = 0x82. + * + * This indicates there are 2 octets (base 256) for the length. The second and + * third bytes (the octets just mentioned) would store the length in base 256: + * + * octet 2: 00000001 = 1 * 256^1 = 256 + * octet 3: 00000001 = 1 * 256^0 = 1 + * total = 257 + * + * The algorithm for converting a js integer value of 257 to base-256 is: + * + * var value = 257; + * var bytes = []; + * bytes[0] = (value >>> 8) & 0xFF; // most significant byte first + * bytes[1] = value & 0xFF; // least significant byte last + * + * On the ASN.1 UNIVERSAL Object Identifier (OID) type: + * + * An OID can be written like: "value1.value2.value3...valueN" + * + * The DER encoding rules: + * + * The first byte has the value 40 * value1 + value2. + * The following bytes, if any, encode the remaining values. Each value is + * encoded in base 128, most significant digit first (big endian), with as + * few digits as possible, and the most significant bit of each byte set + * to 1 except the last in each value's encoding. For example: Given the + * OID "1.2.840.113549", its DER encoding is (remember each byte except the + * last one in each encoding is OR'd with 0x80): + * + * byte 1: 40 * 1 + 2 = 42 = 0x2A. + * bytes 2-3: 128 * 6 + 72 = 840 = 6 72 = 6 72 = 0x0648 = 0x8648 + * bytes 4-6: 16384 * 6 + 128 * 119 + 13 = 6 119 13 = 0x06770D = 0x86F70D + * + * The final value is: 0x2A864886F70D. + * The full OID (including ASN.1 tag and length of 6 bytes) is: + * 0x06062A864886F70D + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); +__nccwpck_require__(40934); + +/* ASN.1 API */ +var asn1 = module.exports = forge.asn1 = forge.asn1 || {}; + +/** + * ASN.1 classes. + */ +asn1.Class = { + UNIVERSAL: 0x00, + APPLICATION: 0x40, + CONTEXT_SPECIFIC: 0x80, + PRIVATE: 0xC0 +}; + +/** + * ASN.1 types. Not all types are supported by this implementation, only + * those necessary to implement a simple PKI are implemented. + */ +asn1.Type = { + NONE: 0, + BOOLEAN: 1, + INTEGER: 2, + BITSTRING: 3, + OCTETSTRING: 4, + NULL: 5, + OID: 6, + ODESC: 7, + EXTERNAL: 8, + REAL: 9, + ENUMERATED: 10, + EMBEDDED: 11, + UTF8: 12, + ROID: 13, + SEQUENCE: 16, + SET: 17, + PRINTABLESTRING: 19, + IA5STRING: 22, + UTCTIME: 23, + GENERALIZEDTIME: 24, + BMPSTRING: 30 +}; + +/** + * Sets the default maximum recursion depth when parsing ASN.1 structures. + */ +asn1.maxDepth = 256; + +/** + * Creates a new asn1 object. + * + * @param tagClass the tag class for the object. + * @param type the data type (tag number) for the object. + * @param constructed true if the asn1 object is in constructed form. + * @param value the value for the object, if it is not constructed. + * @param [options] the options to use: + * [bitStringContents] the plain BIT STRING content including padding + * byte. + * + * @return the asn1 object. + */ +asn1.create = function(tagClass, type, constructed, value, options) { + /* An asn1 object has a tagClass, a type, a constructed flag, and a + value. The value's type depends on the constructed flag. If + constructed, it will contain a list of other asn1 objects. If not, + it will contain the ASN.1 value as an array of bytes formatted + according to the ASN.1 data type. */ + + // remove undefined values + if(forge.util.isArray(value)) { + var tmp = []; + for(var i = 0; i < value.length; ++i) { + if(value[i] !== undefined) { + tmp.push(value[i]); + } + } + value = tmp; + } + + var obj = { + tagClass: tagClass, + type: type, + constructed: constructed, + composed: constructed || forge.util.isArray(value), + value: value + }; + if(options && 'bitStringContents' in options) { + // TODO: copy byte buffer if it's a buffer not a string + obj.bitStringContents = options.bitStringContents; + // TODO: add readonly flag to avoid this overhead + // save copy to detect changes + obj.original = asn1.copy(obj); + } + return obj; +}; + +/** + * Copies an asn1 object. + * + * @param obj the asn1 object. + * @param [options] copy options: + * [excludeBitStringContents] true to not copy bitStringContents + * + * @return the a copy of the asn1 object. + */ +asn1.copy = function(obj, options) { + var copy; + + if(forge.util.isArray(obj)) { + copy = []; + for(var i = 0; i < obj.length; ++i) { + copy.push(asn1.copy(obj[i], options)); + } + return copy; + } + + if(typeof obj === 'string') { + // TODO: copy byte buffer if it's a buffer not a string + return obj; + } + + copy = { + tagClass: obj.tagClass, + type: obj.type, + constructed: obj.constructed, + composed: obj.composed, + value: asn1.copy(obj.value, options) + }; + if(options && !options.excludeBitStringContents) { + // TODO: copy byte buffer if it's a buffer not a string + copy.bitStringContents = obj.bitStringContents; + } + return copy; +}; + +/** + * Compares asn1 objects for equality. + * + * Note this function does not run in constant time. + * + * @param obj1 the first asn1 object. + * @param obj2 the second asn1 object. + * @param [options] compare options: + * [includeBitStringContents] true to compare bitStringContents + * + * @return true if the asn1 objects are equal. + */ +asn1.equals = function(obj1, obj2, options) { + if(forge.util.isArray(obj1)) { + if(!forge.util.isArray(obj2)) { + return false; + } + if(obj1.length !== obj2.length) { + return false; + } + for(var i = 0; i < obj1.length; ++i) { + if(!asn1.equals(obj1[i], obj2[i])) { + return false; + } + } + return true; + } + + if(typeof obj1 !== typeof obj2) { + return false; + } + + if(typeof obj1 === 'string') { + return obj1 === obj2; + } + + var equal = obj1.tagClass === obj2.tagClass && + obj1.type === obj2.type && + obj1.constructed === obj2.constructed && + obj1.composed === obj2.composed && + asn1.equals(obj1.value, obj2.value); + if(options && options.includeBitStringContents) { + equal = equal && (obj1.bitStringContents === obj2.bitStringContents); + } + + return equal; +}; + +/** + * Gets the length of a BER-encoded ASN.1 value. + * + * In case the length is not specified, undefined is returned. + * + * @param b the BER-encoded ASN.1 byte buffer, starting with the first + * length byte. + * + * @return the length of the BER-encoded ASN.1 value or undefined. + */ +asn1.getBerValueLength = function(b) { + // TODO: move this function and related DER/BER functions to a der.js + // file; better abstract ASN.1 away from der/ber. + var b2 = b.getByte(); + if(b2 === 0x80) { + return undefined; + } + + // see if the length is "short form" or "long form" (bit 8 set) + var length; + var longForm = b2 & 0x80; + if(!longForm) { + // length is just the first byte + length = b2; + } else { + // the number of bytes the length is specified in bits 7 through 1 + // and each length byte is in big-endian base-256 + length = b.getInt((b2 & 0x7F) << 3); + } + return length; +}; + +/** + * Check if the byte buffer has enough bytes. Throws an Error if not. + * + * @param bytes the byte buffer to parse from. + * @param remaining the bytes remaining in the current parsing state. + * @param n the number of bytes the buffer must have. + */ +function _checkBufferLength(bytes, remaining, n) { + if(n > remaining) { + var error = new Error('Too few bytes to parse DER.'); + error.available = bytes.length(); + error.remaining = remaining; + error.requested = n; + throw error; + } +} + +/** + * Gets the length of a BER-encoded ASN.1 value. + * + * In case the length is not specified, undefined is returned. + * + * @param bytes the byte buffer to parse from. + * @param remaining the bytes remaining in the current parsing state. + * + * @return the length of the BER-encoded ASN.1 value or undefined. + */ +var _getValueLength = function(bytes, remaining) { + // TODO: move this function and related DER/BER functions to a der.js + // file; better abstract ASN.1 away from der/ber. + // fromDer already checked that this byte exists + var b2 = bytes.getByte(); + remaining--; + if(b2 === 0x80) { + return undefined; + } + + // see if the length is "short form" or "long form" (bit 8 set) + var length; + var longForm = b2 & 0x80; + if(!longForm) { + // length is just the first byte + length = b2; + } else { + // the number of bytes the length is specified in bits 7 through 1 + // and each length byte is in big-endian base-256 + var longFormBytes = b2 & 0x7F; + _checkBufferLength(bytes, remaining, longFormBytes); + length = bytes.getInt(longFormBytes << 3); + } + // FIXME: this will only happen for 32 bit getInt with high bit set + if(length < 0) { + throw new Error('Negative length: ' + length); + } + return length; +}; + +/** + * Parses an asn1 object from a byte buffer in DER format. + * + * @param bytes the byte buffer to parse from. + * @param [strict] true to be strict when checking value lengths, false to + * allow truncated values (default: true). + * @param [options] object with options or boolean strict flag + * [strict] true to be strict when checking value lengths, false to + * allow truncated values (default: true). + * [parseAllBytes] true to ensure all bytes are parsed + * (default: true) + * [decodeBitStrings] true to attempt to decode the content of + * BIT STRINGs (not OCTET STRINGs) using strict mode. Note that + * without schema support to understand the data context this can + * erroneously decode values that happen to be valid ASN.1. This + * flag will be deprecated or removed as soon as schema support is + * available. (default: true) + * [maxDepth] override asn1.maxDepth recursion limit + * (default: asn1.maxDepth) + * + * @throws Will throw an error for various malformed input conditions. + * + * @return the parsed asn1 object. + */ +asn1.fromDer = function(bytes, options) { + if(options === undefined) { + options = { + strict: true, + parseAllBytes: true, + decodeBitStrings: true + }; + } + if(typeof options === 'boolean') { + options = { + strict: options, + parseAllBytes: true, + decodeBitStrings: true + }; + } + if(!('strict' in options)) { + options.strict = true; + } + if(!('parseAllBytes' in options)) { + options.parseAllBytes = true; + } + if(!('decodeBitStrings' in options)) { + options.decodeBitStrings = true; + } + if(!('maxDepth' in options)) { + options.maxDepth = asn1.maxDepth; + } + + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + var byteCount = bytes.length(); + var value = _fromDer(bytes, bytes.length(), 0, options); + if(options.parseAllBytes && bytes.length() !== 0) { + var error = new Error('Unparsed DER bytes remain after ASN.1 parsing.'); + error.byteCount = byteCount; + error.remaining = bytes.length(); + throw error; + } + return value; +}; + +/** + * Internal function to parse an asn1 object from a byte buffer in DER format. + * + * @param bytes the byte buffer to parse from. + * @param remaining the number of bytes remaining for this chunk. + * @param depth the current parsing depth. + * @param options object with same options as fromDer(). + * + * @return the parsed asn1 object. + */ +function _fromDer(bytes, remaining, depth, options) { + + // check depth limit + if(depth >= options.maxDepth) { + throw new Error('ASN.1 parsing error: Max depth exceeded.'); + } + + // temporary storage for consumption calculations + var start; + + // minimum length for ASN.1 DER structure is 2 + _checkBufferLength(bytes, remaining, 2); + + // get the first byte + var b1 = bytes.getByte(); + // consumed one byte + remaining--; + + // get the tag class + var tagClass = (b1 & 0xC0); + + // get the type (bits 1-5) + var type = b1 & 0x1F; + + // get the variable value length and adjust remaining bytes + start = bytes.length(); + var length = _getValueLength(bytes, remaining); + remaining -= start - bytes.length(); + + // ensure there are enough bytes to get the value + if(length !== undefined && length > remaining) { + if(options.strict) { + var error = new Error('Too few bytes to read ASN.1 value.'); + error.available = bytes.length(); + error.remaining = remaining; + error.requested = length; + throw error; + } + // Note: be lenient with truncated values and use remaining state bytes + length = remaining; + } + + // value storage + var value; + // possible BIT STRING contents storage + var bitStringContents; + + // constructed flag is bit 6 (32 = 0x20) of the first byte + var constructed = ((b1 & 0x20) === 0x20); + if(constructed) { + // parse child asn1 objects from the value + value = []; + if(length === undefined) { + // asn1 object of indefinite length, read until end tag + for(;;) { + _checkBufferLength(bytes, remaining, 2); + if(bytes.bytes(2) === String.fromCharCode(0, 0)) { + bytes.getBytes(2); + remaining -= 2; + break; + } + start = bytes.length(); + value.push(_fromDer(bytes, remaining, depth + 1, options)); + remaining -= start - bytes.length(); + } + } else { + // parsing asn1 object of definite length + while(length > 0) { + start = bytes.length(); + value.push(_fromDer(bytes, length, depth + 1, options)); + remaining -= start - bytes.length(); + length -= start - bytes.length(); + } + } + } + + // if a BIT STRING, save the contents including padding + if(value === undefined && tagClass === asn1.Class.UNIVERSAL && + type === asn1.Type.BITSTRING) { + bitStringContents = bytes.bytes(length); + } + + // determine if a non-constructed value should be decoded as a composed + // value that contains other ASN.1 objects. BIT STRINGs (and OCTET STRINGs) + // can be used this way. + if(value === undefined && options.decodeBitStrings && + tagClass === asn1.Class.UNIVERSAL && + // FIXME: OCTET STRINGs not yet supported here + // .. other parts of forge expect to decode OCTET STRINGs manually + (type === asn1.Type.BITSTRING /*|| type === asn1.Type.OCTETSTRING*/) && + length > 1) { + // save read position + var savedRead = bytes.read; + var savedRemaining = remaining; + var unused = 0; + if(type === asn1.Type.BITSTRING) { + /* The first octet gives the number of bits by which the length of the + bit string is less than the next multiple of eight (this is called + the "number of unused bits"). + + The second and following octets give the value of the bit string + converted to an octet string. */ + _checkBufferLength(bytes, remaining, 1); + unused = bytes.getByte(); + remaining--; + } + // if all bits are used, maybe the BIT/OCTET STRING holds ASN.1 objs + if(unused === 0) { + try { + // attempt to parse child asn1 object from the value + // (stored in array to signal composed value) + start = bytes.length(); + var subOptions = { + // enforce strict mode to avoid parsing ASN.1 from plain data + strict: true, + decodeBitStrings: true + }; + var composed = _fromDer(bytes, remaining, depth + 1, subOptions); + var used = start - bytes.length(); + remaining -= used; + if(type == asn1.Type.BITSTRING) { + used++; + } + + // if the data all decoded and the class indicates UNIVERSAL or + // CONTEXT_SPECIFIC then assume we've got an encapsulated ASN.1 object + var tc = composed.tagClass; + if(used === length && + (tc === asn1.Class.UNIVERSAL || tc === asn1.Class.CONTEXT_SPECIFIC)) { + value = [composed]; + } + } catch(ex) { + } + } + if(value === undefined) { + // restore read position + bytes.read = savedRead; + remaining = savedRemaining; + } + } + + if(value === undefined) { + // asn1 not constructed or composed, get raw value + // TODO: do DER to OID conversion and vice-versa in .toDer? + + if(length === undefined) { + if(options.strict) { + throw new Error('Non-constructed ASN.1 object of indefinite length.'); + } + // be lenient and use remaining state bytes + length = remaining; + } + + if(type === asn1.Type.BMPSTRING) { + value = ''; + for(; length > 0; length -= 2) { + _checkBufferLength(bytes, remaining, 2); + value += String.fromCharCode(bytes.getInt16()); + remaining -= 2; + } + } else { + value = bytes.getBytes(length); + remaining -= length; + } + } + + // add BIT STRING contents if available + var asn1Options = bitStringContents === undefined ? null : { + bitStringContents: bitStringContents + }; + + // create and return asn1 object + return asn1.create(tagClass, type, constructed, value, asn1Options); +} + +/** + * Converts the given asn1 object to a buffer of bytes in DER format. + * + * @param asn1 the asn1 object to convert to bytes. + * + * @return the buffer of bytes. + */ +asn1.toDer = function(obj) { + var bytes = forge.util.createBuffer(); + + // build the first byte + var b1 = obj.tagClass | obj.type; + + // for storing the ASN.1 value + var value = forge.util.createBuffer(); + + // use BIT STRING contents if available and data not changed + var useBitStringContents = false; + if('bitStringContents' in obj) { + useBitStringContents = true; + if(obj.original) { + useBitStringContents = asn1.equals(obj, obj.original); + } + } + + if(useBitStringContents) { + value.putBytes(obj.bitStringContents); + } else if(obj.composed) { + // if composed, use each child asn1 object's DER bytes as value + // turn on 6th bit (0x20 = 32) to indicate asn1 is constructed + // from other asn1 objects + if(obj.constructed) { + b1 |= 0x20; + } else { + // type is a bit string, add unused bits of 0x00 + value.putByte(0x00); + } + + // add all of the child DER bytes together + for(var i = 0; i < obj.value.length; ++i) { + if(obj.value[i] !== undefined) { + value.putBuffer(asn1.toDer(obj.value[i])); + } + } + } else { + // use asn1.value directly + if(obj.type === asn1.Type.BMPSTRING) { + for(var i = 0; i < obj.value.length; ++i) { + value.putInt16(obj.value.charCodeAt(i)); + } + } else { + // ensure integer is minimally-encoded + // TODO: should all leading bytes be stripped vs just one? + // .. ex '00 00 01' => '01'? + if(obj.type === asn1.Type.INTEGER && + obj.value.length > 1 && + // leading 0x00 for positive integer + ((obj.value.charCodeAt(0) === 0 && + (obj.value.charCodeAt(1) & 0x80) === 0) || + // leading 0xFF for negative integer + (obj.value.charCodeAt(0) === 0xFF && + (obj.value.charCodeAt(1) & 0x80) === 0x80))) { + value.putBytes(obj.value.substr(1)); + } else { + value.putBytes(obj.value); + } + } + } + + // add tag byte + bytes.putByte(b1); + + // use "short form" encoding + if(value.length() <= 127) { + // one byte describes the length + // bit 8 = 0 and bits 7-1 = length + bytes.putByte(value.length() & 0x7F); + } else { + // use "long form" encoding + // 2 to 127 bytes describe the length + // first byte: bit 8 = 1 and bits 7-1 = # of additional bytes + // other bytes: length in base 256, big-endian + var len = value.length(); + var lenBytes = ''; + do { + lenBytes += String.fromCharCode(len & 0xFF); + len = len >>> 8; + } while(len > 0); + + // set first byte to # bytes used to store the length and turn on + // bit 8 to indicate long-form length is used + bytes.putByte(lenBytes.length | 0x80); + + // concatenate length bytes in reverse since they were generated + // little endian and we need big endian + for(var i = lenBytes.length - 1; i >= 0; --i) { + bytes.putByte(lenBytes.charCodeAt(i)); + } + } + + // concatenate value bytes + bytes.putBuffer(value); + return bytes; +}; + +/** + * Converts an OID dot-separated string to a byte buffer. The byte buffer + * contains only the DER-encoded value, not any tag or length bytes. + * + * @param oid the OID dot-separated string. + * + * @return the byte buffer. + */ +asn1.oidToDer = function(oid) { + // split OID into individual values + var values = oid.split('.'); + var bytes = forge.util.createBuffer(); + + // first byte is 40 * value1 + value2 + bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10)); + // other bytes are each value in base 128 with 8th bit set except for + // the last byte for each value + var last, valueBytes, value, b; + for(var i = 2; i < values.length; ++i) { + // produce value bytes in reverse because we don't know how many + // bytes it will take to store the value + last = true; + valueBytes = []; + value = parseInt(values[i], 10); + // TODO: Change bitwise logic to allow larger values. + if(value > 0xffffffff) { + throw new Error('OID value too large; max is 32-bits.'); + } + do { + b = value & 0x7F; + value = value >>> 7; + // if value is not last, then turn on 8th bit + if(!last) { + b |= 0x80; + } + valueBytes.push(b); + last = false; + } while(value > 0); + + // add value bytes in reverse (needs to be in big endian) + for(var n = valueBytes.length - 1; n >= 0; --n) { + bytes.putByte(valueBytes[n]); + } + } + + return bytes; +}; + +/** + * Converts a DER-encoded byte buffer to an OID dot-separated string. The + * byte buffer should contain only the DER-encoded value, not any tag or + * length bytes. + * + * @param bytes the byte buffer. + * + * @return the OID dot-separated string. + */ +asn1.derToOid = function(bytes) { + var oid; + + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + // first byte is 40 * value1 + value2 + var b = bytes.getByte(); + oid = Math.floor(b / 40) + '.' + (b % 40); + + // other bytes are each value in base 128 with 8th bit set except for + // the last byte for each value + var value = 0; + while(bytes.length() > 0) { + // error if 7b shift would exceed Number.MAX_SAFE_INTEGER + // (Number.MAX_SAFE_INTEGER / 128) + if(value > 0x3fffffffffff) { + throw new Error('OID value too large; max is 53-bits.'); + } + b = bytes.getByte(); + value = value * 128; + // not the last byte for the value + if(b & 0x80) { + value += b & 0x7F; + } else { + // last byte + oid += '.' + (value + b); + value = 0; + } + } + + return oid; +}; + +/** + * Converts a UTCTime value to a date. + * + * Note: GeneralizedTime has 4 digits for the year and is used for X.509 + * dates past 2049. Parsing that structure hasn't been implemented yet. + * + * @param utc the UTCTime value to convert. + * + * @return the date. + */ +asn1.utcTimeToDate = function(utc) { + /* The following formats can be used: + + YYMMDDhhmmZ + YYMMDDhhmm+hh'mm' + YYMMDDhhmm-hh'mm' + YYMMDDhhmmssZ + YYMMDDhhmmss+hh'mm' + YYMMDDhhmmss-hh'mm' + + Where: + + YY is the least significant two digits of the year + MM is the month (01 to 12) + DD is the day (01 to 31) + hh is the hour (00 to 23) + mm are the minutes (00 to 59) + ss are the seconds (00 to 59) + Z indicates that local time is GMT, + indicates that local time is + later than GMT, and - indicates that local time is earlier than GMT + hh' is the absolute value of the offset from GMT in hours + mm' is the absolute value of the offset from GMT in minutes */ + var date = new Date(); + + // if YY >= 50 use 19xx, if YY < 50 use 20xx + var year = parseInt(utc.substr(0, 2), 10); + year = (year >= 50) ? 1900 + year : 2000 + year; + var MM = parseInt(utc.substr(2, 2), 10) - 1; // use 0-11 for month + var DD = parseInt(utc.substr(4, 2), 10); + var hh = parseInt(utc.substr(6, 2), 10); + var mm = parseInt(utc.substr(8, 2), 10); + var ss = 0; + + // not just YYMMDDhhmmZ + if(utc.length > 11) { + // get character after minutes + var c = utc.charAt(10); + var end = 10; + + // see if seconds are present + if(c !== '+' && c !== '-') { + // get seconds + ss = parseInt(utc.substr(10, 2), 10); + end += 2; + } + } + + // update date + date.setUTCFullYear(year, MM, DD); + date.setUTCHours(hh, mm, ss, 0); + + if(end) { + // get +/- after end of time + c = utc.charAt(end); + if(c === '+' || c === '-') { + // get hours+minutes offset + var hhoffset = parseInt(utc.substr(end + 1, 2), 10); + var mmoffset = parseInt(utc.substr(end + 4, 2), 10); + + // calculate offset in milliseconds + var offset = hhoffset * 60 + mmoffset; + offset *= 60000; + + // apply offset + if(c === '+') { + date.setTime(+date - offset); + } else { + date.setTime(+date + offset); + } + } + } + + return date; +}; + +/** + * Converts a GeneralizedTime value to a date. + * + * @param gentime the GeneralizedTime value to convert. + * + * @return the date. + */ +asn1.generalizedTimeToDate = function(gentime) { + /* The following formats can be used: + + YYYYMMDDHHMMSS + YYYYMMDDHHMMSS.fff + YYYYMMDDHHMMSSZ + YYYYMMDDHHMMSS.fffZ + YYYYMMDDHHMMSS+hh'mm' + YYYYMMDDHHMMSS.fff+hh'mm' + YYYYMMDDHHMMSS-hh'mm' + YYYYMMDDHHMMSS.fff-hh'mm' + + Where: + + YYYY is the year + MM is the month (01 to 12) + DD is the day (01 to 31) + hh is the hour (00 to 23) + mm are the minutes (00 to 59) + ss are the seconds (00 to 59) + .fff is the second fraction, accurate to three decimal places + Z indicates that local time is GMT, + indicates that local time is + later than GMT, and - indicates that local time is earlier than GMT + hh' is the absolute value of the offset from GMT in hours + mm' is the absolute value of the offset from GMT in minutes */ + var date = new Date(); + + var YYYY = parseInt(gentime.substr(0, 4), 10); + var MM = parseInt(gentime.substr(4, 2), 10) - 1; // use 0-11 for month + var DD = parseInt(gentime.substr(6, 2), 10); + var hh = parseInt(gentime.substr(8, 2), 10); + var mm = parseInt(gentime.substr(10, 2), 10); + var ss = parseInt(gentime.substr(12, 2), 10); + var fff = 0; + var offset = 0; + var isUTC = false; + + if(gentime.charAt(gentime.length - 1) === 'Z') { + isUTC = true; + } + + var end = gentime.length - 5, c = gentime.charAt(end); + if(c === '+' || c === '-') { + // get hours+minutes offset + var hhoffset = parseInt(gentime.substr(end + 1, 2), 10); + var mmoffset = parseInt(gentime.substr(end + 4, 2), 10); + + // calculate offset in milliseconds + offset = hhoffset * 60 + mmoffset; + offset *= 60000; + + // apply offset + if(c === '+') { + offset *= -1; + } + + isUTC = true; + } + + // check for second fraction + if(gentime.charAt(14) === '.') { + fff = parseFloat(gentime.substr(14), 10) * 1000; + } + + if(isUTC) { + date.setUTCFullYear(YYYY, MM, DD); + date.setUTCHours(hh, mm, ss, fff); + + // apply offset + date.setTime(+date + offset); + } else { + date.setFullYear(YYYY, MM, DD); + date.setHours(hh, mm, ss, fff); + } + + return date; +}; + +/** + * Converts a date to a UTCTime value. + * + * Note: GeneralizedTime has 4 digits for the year and is used for X.509 + * dates past 2049. Converting to a GeneralizedTime hasn't been + * implemented yet. + * + * @param date the date to convert. + * + * @return the UTCTime value. + */ +asn1.dateToUtcTime = function(date) { + // TODO: validate; currently assumes proper format + if(typeof date === 'string') { + return date; + } + + var rval = ''; + + // create format YYMMDDhhmmssZ + var format = []; + format.push(('' + date.getUTCFullYear()).substr(2)); + format.push('' + (date.getUTCMonth() + 1)); + format.push('' + date.getUTCDate()); + format.push('' + date.getUTCHours()); + format.push('' + date.getUTCMinutes()); + format.push('' + date.getUTCSeconds()); + + // ensure 2 digits are used for each format entry + for(var i = 0; i < format.length; ++i) { + if(format[i].length < 2) { + rval += '0'; + } + rval += format[i]; + } + rval += 'Z'; + + return rval; +}; + +/** + * Converts a date to a GeneralizedTime value. + * + * @param date the date to convert. + * + * @return the GeneralizedTime value as a string. + */ +asn1.dateToGeneralizedTime = function(date) { + // TODO: validate; currently assumes proper format + if(typeof date === 'string') { + return date; + } + + var rval = ''; + + // create format YYYYMMDDHHMMSSZ + var format = []; + format.push('' + date.getUTCFullYear()); + format.push('' + (date.getUTCMonth() + 1)); + format.push('' + date.getUTCDate()); + format.push('' + date.getUTCHours()); + format.push('' + date.getUTCMinutes()); + format.push('' + date.getUTCSeconds()); + + // ensure 2 digits are used for each format entry + for(var i = 0; i < format.length; ++i) { + if(format[i].length < 2) { + rval += '0'; + } + rval += format[i]; + } + rval += 'Z'; + + return rval; +}; + +/** + * Converts a javascript integer to a DER-encoded byte buffer to be used + * as the value for an INTEGER type. + * + * @param x the integer. + * + * @return the byte buffer. + */ +asn1.integerToDer = function(x) { + var rval = forge.util.createBuffer(); + if(x >= -0x80 && x < 0x80) { + return rval.putSignedInt(x, 8); + } + if(x >= -0x8000 && x < 0x8000) { + return rval.putSignedInt(x, 16); + } + if(x >= -0x800000 && x < 0x800000) { + return rval.putSignedInt(x, 24); + } + if(x >= -0x80000000 && x < 0x80000000) { + return rval.putSignedInt(x, 32); + } + var error = new Error('Integer too large; max is 32-bits.'); + error.integer = x; + throw error; +}; + +/** + * Converts a DER-encoded byte buffer to a javascript integer. This is + * typically used to decode the value of an INTEGER type. + * + * @param bytes the byte buffer. + * + * @return the integer. + */ +asn1.derToInteger = function(bytes) { + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + var n = bytes.length() * 8; + if(n > 32) { + throw new Error('Integer too large; max is 32-bits.'); + } + return bytes.getSignedInt(n); +}; + +/** + * Validates that the given ASN.1 object is at least a super set of the + * given ASN.1 structure. Only tag classes and types are checked. An + * optional map may also be provided to capture ASN.1 values while the + * structure is checked. + * + * To capture an ASN.1 value, set an object in the validator's 'capture' + * parameter to the key to use in the capture map. To capture the full + * ASN.1 object, specify 'captureAsn1'. To capture BIT STRING bytes, including + * the leading unused bits counter byte, specify 'captureBitStringContents'. + * To capture BIT STRING bytes, without the leading unused bits counter byte, + * specify 'captureBitStringValue'. + * + * Objects in the validator may set a field 'optional' to true to indicate + * that it isn't necessary to pass validation. + * + * @param obj the ASN.1 object to validate. + * @param v the ASN.1 structure validator. + * @param capture an optional map to capture values in. + * @param errors an optional array for storing validation errors. + * + * @return true on success, false on failure. + */ +asn1.validate = function(obj, v, capture, errors) { + var rval = false; + + // ensure tag class and type are the same if specified + if((obj.tagClass === v.tagClass || typeof(v.tagClass) === 'undefined') && + (obj.type === v.type || typeof(v.type) === 'undefined')) { + // ensure constructed flag is the same if specified + if(obj.constructed === v.constructed || + typeof(v.constructed) === 'undefined') { + rval = true; + + // handle sub values + if(v.value && forge.util.isArray(v.value)) { + var j = 0; + for(var i = 0; rval && i < v.value.length; ++i) { + var schemaItem = v.value[i]; + rval = !!schemaItem.optional; + + // current child in the object + var objChild = obj.value[j]; + + // if there is no child left to match + if(!objChild) { + // if optional, ok (rval already true), else fail below + if(!schemaItem.optional) { + rval = false; + if(errors) { + errors.push('[' + v.name + '] ' + + 'Missing required element. Expected tag class "' + + schemaItem.tagClass + '", type "' + schemaItem.type + '"'); + } + } + continue; + } + + // If schema explicitly specifies tagClass/type, do a quick structural check + // to avoid unnecessary recursion/side-effects when tags clearly don't match. + var schemaHasTag = (typeof schemaItem.tagClass !== 'undefined' && + typeof schemaItem.type !== 'undefined'); + + if(schemaHasTag && + (objChild.tagClass !== schemaItem.tagClass || objChild.type !== schemaItem.type)) { + // Tags do not match. + if(schemaItem.optional) { + // Skip this schema element (don't consume objChild; don't call recursive validate). + rval = true; + continue; + } else { + // Required schema item mismatched - fail. + rval = false; + if(errors) { + errors.push('[' + v.name + '] ' + + 'Tag mismatch. Expected (' + + schemaItem.tagClass + ',' + schemaItem.type + '), got (' + + objChild.tagClass + ',' + objChild.type + ')'); + } + break; + } + } + + // Tags are compatible (or schema did not declare tags) - dive into recursive validate. + var childRval = asn1.validate(objChild, schemaItem, capture, errors); + if(childRval) { + // consume this child + ++j; + rval = true; + } else if(schemaItem.optional) { + // validation failed but element is optional => skip schema item (don't consume child) + rval = true; + } else { + // required item failed + rval = false; + // errors should already be populated by recursive call; keep failing + break; + } + } + } + + if(rval && capture) { + if(v.capture) { + capture[v.capture] = obj.value; + } + if(v.captureAsn1) { + capture[v.captureAsn1] = obj; + } + if(v.captureBitStringContents && 'bitStringContents' in obj) { + capture[v.captureBitStringContents] = obj.bitStringContents; + } + if(v.captureBitStringValue && 'bitStringContents' in obj) { + var value; + if(obj.bitStringContents.length < 2) { + capture[v.captureBitStringValue] = ''; + } else { + // FIXME: support unused bits with data shifting + var unused = obj.bitStringContents.charCodeAt(0); + if(unused !== 0) { + throw new Error( + 'captureBitStringValue only supported for zero unused bits'); + } + capture[v.captureBitStringValue] = obj.bitStringContents.slice(1); + } + } + } + } else if(errors) { + errors.push( + '[' + v.name + '] ' + + 'Expected constructed "' + v.constructed + '", got "' + + obj.constructed + '"'); + } + } else if(errors) { + if(obj.tagClass !== v.tagClass) { + errors.push( + '[' + v.name + '] ' + + 'Expected tag class "' + v.tagClass + '", got "' + + obj.tagClass + '"'); + } + if(obj.type !== v.type) { + errors.push( + '[' + v.name + '] ' + + 'Expected type "' + v.type + '", got "' + + obj.type + '"'); + } + } + return rval; +}; + +// regex for testing for non-latin characters +var _nonLatinRegex = /[^\\u0000-\\u00ff]/; + +/** + * Pretty prints an ASN.1 object to a string. + * + * @param obj the object to write out. + * @param level the level in the tree. + * @param indentation the indentation to use. + * + * @return the string. + */ +asn1.prettyPrint = function(obj, level, indentation) { + var rval = ''; + + // set default level and indentation + level = level || 0; + indentation = indentation || 2; + + // start new line for deep levels + if(level > 0) { + rval += '\n'; + } + + // create indent + var indent = ''; + for(var i = 0; i < level * indentation; ++i) { + indent += ' '; + } + + // print class:type + rval += indent + 'Tag: '; + switch(obj.tagClass) { + case asn1.Class.UNIVERSAL: + rval += 'Universal:'; + break; + case asn1.Class.APPLICATION: + rval += 'Application:'; + break; + case asn1.Class.CONTEXT_SPECIFIC: + rval += 'Context-Specific:'; + break; + case asn1.Class.PRIVATE: + rval += 'Private:'; + break; + } + + if(obj.tagClass === asn1.Class.UNIVERSAL) { + rval += obj.type; + + // known types + switch(obj.type) { + case asn1.Type.NONE: + rval += ' (None)'; + break; + case asn1.Type.BOOLEAN: + rval += ' (Boolean)'; + break; + case asn1.Type.INTEGER: + rval += ' (Integer)'; + break; + case asn1.Type.BITSTRING: + rval += ' (Bit string)'; + break; + case asn1.Type.OCTETSTRING: + rval += ' (Octet string)'; + break; + case asn1.Type.NULL: + rval += ' (Null)'; + break; + case asn1.Type.OID: + rval += ' (Object Identifier)'; + break; + case asn1.Type.ODESC: + rval += ' (Object Descriptor)'; + break; + case asn1.Type.EXTERNAL: + rval += ' (External or Instance of)'; + break; + case asn1.Type.REAL: + rval += ' (Real)'; + break; + case asn1.Type.ENUMERATED: + rval += ' (Enumerated)'; + break; + case asn1.Type.EMBEDDED: + rval += ' (Embedded PDV)'; + break; + case asn1.Type.UTF8: + rval += ' (UTF8)'; + break; + case asn1.Type.ROID: + rval += ' (Relative Object Identifier)'; + break; + case asn1.Type.SEQUENCE: + rval += ' (Sequence)'; + break; + case asn1.Type.SET: + rval += ' (Set)'; + break; + case asn1.Type.PRINTABLESTRING: + rval += ' (Printable String)'; + break; + case asn1.Type.IA5String: + rval += ' (IA5String (ASCII))'; + break; + case asn1.Type.UTCTIME: + rval += ' (UTC time)'; + break; + case asn1.Type.GENERALIZEDTIME: + rval += ' (Generalized time)'; + break; + case asn1.Type.BMPSTRING: + rval += ' (BMP String)'; + break; + } + } else { + rval += obj.type; + } + + rval += '\n'; + rval += indent + 'Constructed: ' + obj.constructed + '\n'; + + if(obj.composed) { + var subvalues = 0; + var sub = ''; + for(var i = 0; i < obj.value.length; ++i) { + if(obj.value[i] !== undefined) { + subvalues += 1; + sub += asn1.prettyPrint(obj.value[i], level + 1, indentation); + if((i + 1) < obj.value.length) { + sub += ','; + } + } + } + rval += indent + 'Sub values: ' + subvalues + sub; + } else { + rval += indent + 'Value: '; + if(obj.type === asn1.Type.OID) { + var oid = asn1.derToOid(obj.value); + rval += oid; + if(forge.pki && forge.pki.oids) { + if(oid in forge.pki.oids) { + rval += ' (' + forge.pki.oids[oid] + ') '; + } + } + } + if(obj.type === asn1.Type.INTEGER) { + try { + rval += asn1.derToInteger(obj.value); + } catch(ex) { + rval += '0x' + forge.util.bytesToHex(obj.value); + } + } else if(obj.type === asn1.Type.BITSTRING) { + // TODO: shift bits as needed to display without padding + if(obj.value.length > 1) { + // remove unused bits field + rval += '0x' + forge.util.bytesToHex(obj.value.slice(1)); + } else { + rval += '(none)'; + } + // show unused bit count + if(obj.value.length > 0) { + var unused = obj.value.charCodeAt(0); + if(unused == 1) { + rval += ' (1 unused bit shown)'; + } else if(unused > 1) { + rval += ' (' + unused + ' unused bits shown)'; + } + } + } else if(obj.type === asn1.Type.OCTETSTRING) { + if(!_nonLatinRegex.test(obj.value)) { + rval += '(' + obj.value + ') '; + } + rval += '0x' + forge.util.bytesToHex(obj.value); + } else if(obj.type === asn1.Type.UTF8) { + try { + rval += forge.util.decodeUtf8(obj.value); + } catch(e) { + if(e.message === 'URI malformed') { + rval += + '0x' + forge.util.bytesToHex(obj.value) + ' (malformed UTF8)'; + } else { + throw e; + } + } + } else if(obj.type === asn1.Type.PRINTABLESTRING || + obj.type === asn1.Type.IA5String) { + rval += obj.value; + } else if(_nonLatinRegex.test(obj.value)) { + rval += '0x' + forge.util.bytesToHex(obj.value); + } else if(obj.value.length === 0) { + rval += '[null]'; + } else { + rval += obj.value; + } + } + + return rval; +}; + + +/***/ }), + +/***/ 6006: +/***/ ((module) => { + +/** + * Base-N/Base-X encoding/decoding functions. + * + * Original implementation from base-x: + * https://github.com/cryptocoinjs/base-x + * + * Which is MIT licensed: + * + * The MIT License (MIT) + * + * Copyright base-x contributors (c) 2016 + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ +var api = {}; +module.exports = api; + +// baseN alphabet indexes +var _reverseAlphabets = {}; + +/** + * BaseN-encodes a Uint8Array using the given alphabet. + * + * @param input the Uint8Array to encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the baseN-encoded output string. + */ +api.encode = function(input, alphabet, maxline) { + if(typeof alphabet !== 'string') { + throw new TypeError('"alphabet" must be a string.'); + } + if(maxline !== undefined && typeof maxline !== 'number') { + throw new TypeError('"maxline" must be a number.'); + } + + var output = ''; + + if(!(input instanceof Uint8Array)) { + // assume forge byte buffer + output = _encodeWithByteBuffer(input, alphabet); + } else { + var i = 0; + var base = alphabet.length; + var first = alphabet.charAt(0); + var digits = [0]; + for(i = 0; i < input.length; ++i) { + for(var j = 0, carry = input[i]; j < digits.length; ++j) { + carry += digits[j] << 8; + digits[j] = carry % base; + carry = (carry / base) | 0; + } + + while(carry > 0) { + digits.push(carry % base); + carry = (carry / base) | 0; + } + } + + // deal with leading zeros + for(i = 0; input[i] === 0 && i < input.length - 1; ++i) { + output += first; + } + // convert digits to a string + for(i = digits.length - 1; i >= 0; --i) { + output += alphabet[digits[i]]; + } + } + + if(maxline) { + var regex = new RegExp('.{1,' + maxline + '}', 'g'); + output = output.match(regex).join('\r\n'); + } + + return output; +}; + +/** + * Decodes a baseN-encoded (using the given alphabet) string to a + * Uint8Array. + * + * @param input the baseN-encoded input string. + * + * @return the Uint8Array. + */ +api.decode = function(input, alphabet) { + if(typeof input !== 'string') { + throw new TypeError('"input" must be a string.'); + } + if(typeof alphabet !== 'string') { + throw new TypeError('"alphabet" must be a string.'); + } + + var table = _reverseAlphabets[alphabet]; + if(!table) { + // compute reverse alphabet + table = _reverseAlphabets[alphabet] = []; + for(var i = 0; i < alphabet.length; ++i) { + table[alphabet.charCodeAt(i)] = i; + } + } + + // remove whitespace characters + input = input.replace(/\s/g, ''); + + var base = alphabet.length; + var first = alphabet.charAt(0); + var bytes = [0]; + for(var i = 0; i < input.length; i++) { + var value = table[input.charCodeAt(i)]; + if(value === undefined) { + return; + } + + for(var j = 0, carry = value; j < bytes.length; ++j) { + carry += bytes[j] * base; + bytes[j] = carry & 0xff; + carry >>= 8; + } + + while(carry > 0) { + bytes.push(carry & 0xff); + carry >>= 8; + } + } + + // deal with leading zeros + for(var k = 0; input[k] === first && k < input.length - 1; ++k) { + bytes.push(0); + } + + if(typeof Buffer !== 'undefined') { + return Buffer.from(bytes.reverse()); + } + + return new Uint8Array(bytes.reverse()); +}; + +function _encodeWithByteBuffer(input, alphabet) { + var i = 0; + var base = alphabet.length; + var first = alphabet.charAt(0); + var digits = [0]; + for(i = 0; i < input.length(); ++i) { + for(var j = 0, carry = input.at(i); j < digits.length; ++j) { + carry += digits[j] << 8; + digits[j] = carry % base; + carry = (carry / base) | 0; + } + + while(carry > 0) { + digits.push(carry % base); + carry = (carry / base) | 0; + } + } + + var output = ''; + + // deal with leading zeros + for(i = 0; input.at(i) === 0 && i < input.length() - 1; ++i) { + output += first; + } + // convert digits to a string + for(i = digits.length - 1; i >= 0; --i) { + output += alphabet[digits[i]]; + } + + return output; +} + + +/***/ }), + +/***/ 24824: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; -/*jshint node:true */ +/** + * Cipher base API. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); -var Buffer = (__nccwpck_require__(14300).Buffer); // browserify -var SlowBuffer = (__nccwpck_require__(14300).SlowBuffer); +module.exports = forge.cipher = forge.cipher || {}; -module.exports = bufferEq; +// registered algorithms +forge.cipher.algorithms = forge.cipher.algorithms || {}; -function bufferEq(a, b) { +/** + * Creates a cipher object that can be used to encrypt data using the given + * algorithm and key. The algorithm may be provided as a string value for a + * previously registered algorithm or it may be given as a cipher algorithm + * API object. + * + * @param algorithm the algorithm to use, either a string or an algorithm API + * object. + * @param key the key to use, as a binary-encoded string of bytes or a + * byte buffer. + * + * @return the cipher. + */ +forge.cipher.createCipher = function(algorithm, key) { + var api = algorithm; + if(typeof api === 'string') { + api = forge.cipher.getAlgorithm(api); + if(api) { + api = api(); + } + } + if(!api) { + throw new Error('Unsupported algorithm: ' + algorithm); + } - // shortcutting on type is necessary for correctness - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - return false; + // assume block cipher + return new forge.cipher.BlockCipher({ + algorithm: api, + key: key, + decrypt: false + }); +}; + +/** + * Creates a decipher object that can be used to decrypt data using the given + * algorithm and key. The algorithm may be provided as a string value for a + * previously registered algorithm or it may be given as a cipher algorithm + * API object. + * + * @param algorithm the algorithm to use, either a string or an algorithm API + * object. + * @param key the key to use, as a binary-encoded string of bytes or a + * byte buffer. + * + * @return the cipher. + */ +forge.cipher.createDecipher = function(algorithm, key) { + var api = algorithm; + if(typeof api === 'string') { + api = forge.cipher.getAlgorithm(api); + if(api) { + api = api(); + } + } + if(!api) { + throw new Error('Unsupported algorithm: ' + algorithm); } - // buffer sizes should be well-known information, so despite this - // shortcutting, it doesn't leak any information about the *contents* of the - // buffers. - if (a.length !== b.length) { - return false; + // assume block cipher + return new forge.cipher.BlockCipher({ + algorithm: api, + key: key, + decrypt: true + }); +}; + +/** + * Registers an algorithm by name. If the name was already registered, the + * algorithm API object will be overwritten. + * + * @param name the name of the algorithm. + * @param algorithm the algorithm API object. + */ +forge.cipher.registerAlgorithm = function(name, algorithm) { + name = name.toUpperCase(); + forge.cipher.algorithms[name] = algorithm; +}; + +/** + * Gets a registered algorithm by name. + * + * @param name the name of the algorithm. + * + * @return the algorithm, if found, null if not. + */ +forge.cipher.getAlgorithm = function(name) { + name = name.toUpperCase(); + if(name in forge.cipher.algorithms) { + return forge.cipher.algorithms[name]; } + return null; +}; - var c = 0; - for (var i = 0; i < a.length; i++) { - /*jshint bitwise:false */ - c |= a[i] ^ b[i]; // XOR +var BlockCipher = forge.cipher.BlockCipher = function(options) { + this.algorithm = options.algorithm; + this.mode = this.algorithm.mode; + this.blockSize = this.mode.blockSize; + this._finish = false; + this._input = null; + this.output = null; + this._op = options.decrypt ? this.mode.decrypt : this.mode.encrypt; + this._decrypt = options.decrypt; + this.algorithm.initialize(options); +}; + +/** + * Starts or restarts the encryption or decryption process, whichever + * was previously configured. + * + * For non-GCM mode, the IV may be a binary-encoded string of bytes, an array + * of bytes, a byte buffer, or an array of 32-bit integers. If the IV is in + * bytes, then it must be Nb (16) bytes in length. If the IV is given in as + * 32-bit integers, then it must be 4 integers long. + * + * Note: an IV is not required or used in ECB mode. + * + * For GCM-mode, the IV must be given as a binary-encoded string of bytes or + * a byte buffer. The number of bytes should be 12 (96 bits) as recommended + * by NIST SP-800-38D but another length may be given. + * + * @param options the options to use: + * iv the initialization vector to use as a binary-encoded string of + * bytes, null to reuse the last ciphered block from a previous + * update() (this "residue" method is for legacy support only). + * additionalData additional authentication data as a binary-encoded + * string of bytes, for 'GCM' mode, (default: none). + * tagLength desired length of authentication tag, in bits, for + * 'GCM' mode (0-128, default: 128). + * tag the authentication tag to check if decrypting, as a + * binary-encoded string of bytes. + * output the output the buffer to write to, null to create one. + */ +BlockCipher.prototype.start = function(options) { + options = options || {}; + var opts = {}; + for(var key in options) { + opts[key] = options[key]; } - return c === 0; -} + opts.decrypt = this._decrypt; + this._finish = false; + this._input = forge.util.createBuffer(); + this.output = options.output || forge.util.createBuffer(); + this.mode.start(opts); +}; -bufferEq.install = function() { - Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) { - return bufferEq(this, that); - }; +/** + * Updates the next block according to the cipher mode. + * + * @param input the buffer to read from. + */ +BlockCipher.prototype.update = function(input) { + if(input) { + // input given, so empty it into the input buffer + this._input.putBuffer(input); + } + + // do cipher operation until it needs more input and not finished + while(!this._op.call(this.mode, this._input, this.output, this._finish) && + !this._finish) {} + + // free consumed memory from input buffer + this._input.compact(); }; -var origBufEqual = Buffer.prototype.equal; -var origSlowBufEqual = SlowBuffer.prototype.equal; -bufferEq.restore = function() { - Buffer.prototype.equal = origBufEqual; - SlowBuffer.prototype.equal = origSlowBufEqual; +/** + * Finishes encrypting or decrypting. + * + * @param pad a padding function to use in CBC mode, null for default, + * signature(blockSize, buffer, decrypt). + * + * @return true if successful, false on error. + */ +BlockCipher.prototype.finish = function(pad) { + // backwards-compatibility w/deprecated padding API + // Note: will overwrite padding functions even after another start() call + if(pad && (this.mode.name === 'ECB' || this.mode.name === 'CBC')) { + this.mode.pad = function(input) { + return pad(this.blockSize, input, false); + }; + this.mode.unpad = function(output) { + return pad(this.blockSize, output, true); + }; + } + + // build options for padding and afterFinish functions + var options = {}; + options.decrypt = this._decrypt; + + // get # of bytes that won't fill a block + options.overflow = this._input.length() % this.blockSize; + + if(!this._decrypt && this.mode.pad) { + if(!this.mode.pad(this._input, options)) { + return false; + } + } + + // do final update + this._finish = true; + this.update(); + + if(this._decrypt && this.mode.unpad) { + if(!this.mode.unpad(this.output, options)) { + return false; + } + } + + if(this.mode.afterFinish) { + if(!this.mode.afterFinish(this.output, options)) { + return false; + } + } + + return true; }; /***/ }), -/***/ 68396: +/***/ 65414: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * Supported cipher modes. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); + +forge.cipher = forge.cipher || {}; +// supported cipher modes +var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {}; -var GetIntrinsic = __nccwpck_require__(94527); +/** Electronic codebook (ECB) (Don't use this; it's not secure) **/ -var callBind = __nccwpck_require__(19799); +modes.ecb = function(options) { + options = options || {}; + this.name = 'ECB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); +}; -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); +modes.ecb.prototype.start = function(options) {}; -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; +modes.ecb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // write output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } }; +modes.ecb.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } -/***/ }), + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } -/***/ 19799: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // decrypt block + this.cipher.decrypt(this._inBlock, this._outBlock); -"use strict"; + // write output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } +}; +modes.ecb.prototype.pad = function(input, options) { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (input.length() === this.blockSize ? + this.blockSize : (this.blockSize - input.length())); + input.fillWithByte(padding, padding); + return true; +}; -var bind = __nccwpck_require__(353); -var GetIntrinsic = __nccwpck_require__(94527); +modes.ecb.prototype.unpad = function(output, options) { + // check for error: input data not a multiple of blockSize + if(options.overflow > 0) { + return false; + } -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); + // ensure padding byte count is valid + var len = output.length(); + var count = output.at(len - 1); + if(count > (this.blockSize << 2)) { + return false; + } -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); + // trim off padding bytes + output.truncate(count); + return true; +}; -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} +/** Cipher-block Chaining (CBC) **/ -module.exports = function callBind(originalFunction) { - var func = $reflectApply(bind, $call, arguments); - if ($gOPD && $defineProperty) { - var desc = $gOPD(func, 'length'); - if (desc.configurable) { - // original length, plus the receiver, minus any additional arguments (after the receiver) - $defineProperty( - func, - 'length', - { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } - ); - } - } - return func; +modes.cbc = function(options) { + options = options || {}; + this.name = 'CBC'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); }; -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); +modes.cbc.prototype.start = function(options) { + // Note: legacy support for using IV residue (has security flaws) + // if IV is null, reuse block from previous processing + if(options.iv === null) { + // must have a previous block + if(!this._prev) { + throw new Error('Invalid IV parameter.'); + } + this._iv = this._prev.slice(0); + } else if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } else { + // save IV as "previous" block + this._iv = transformIV(options.iv, this.blockSize); + this._prev = this._iv.slice(0); + } }; -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} +modes.cbc.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + // get next block + // CBC XOR's IV (or previous block) with plaintext + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._prev[i] ^ input.getInt32(); + } -/***/ }), + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); -/***/ 45567: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // write output, save previous block + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } + this._prev = this._outBlock; +}; -var util = __nccwpck_require__(73837); -var Stream = (__nccwpck_require__(12781).Stream); -var DelayedStream = __nccwpck_require__(85230); +modes.cbc.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } -module.exports = CombinedStream; -function CombinedStream() { - this.writable = false; - this.readable = true; - this.dataSize = 0; - this.maxDataSize = 2 * 1024 * 1024; - this.pauseStreams = true; + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } - this._released = false; - this._streams = []; - this._currentStream = null; - this._insideLoop = false; - this._pendingNext = false; -} -util.inherits(CombinedStream, Stream); + // decrypt block + this.cipher.decrypt(this._inBlock, this._outBlock); -CombinedStream.create = function(options) { - var combinedStream = new this(); + // write output, save previous ciphered block + // CBC XOR's IV (or previous block) with ciphertext + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._prev[i] ^ this._outBlock[i]); + } + this._prev = this._inBlock.slice(0); +}; + +modes.cbc.prototype.pad = function(input, options) { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (input.length() === this.blockSize ? + this.blockSize : (this.blockSize - input.length())); + input.fillWithByte(padding, padding); + return true; +}; + +modes.cbc.prototype.unpad = function(output, options) { + // check for error: input data not a multiple of blockSize + if(options.overflow > 0) { + return false; + } + + // ensure padding byte count is valid + var len = output.length(); + var count = output.at(len - 1); + if(count > (this.blockSize << 2)) { + return false; + } + + // trim off padding bytes + output.truncate(count); + return true; +}; +/** Cipher feedback (CFB) **/ + +modes.cfb = function(options) { options = options || {}; - for (var option in options) { - combinedStream[option] = options[option]; + this.name = 'CFB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.cfb.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.cfb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output, write input as output + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32() ^ this._outBlock[i]; + output.putInt32(this._inBlock[i]); + } + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output, write input as partial output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialBlock[i] = input.getInt32() ^ this._outBlock[i]; + this._partialOutput.putInt32(this._partialBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._partialBlock[i]; + } + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +modes.cfb.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block (CFB always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output, write input as output + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + output.putInt32(this._inBlock[i] ^ this._outBlock[i]); + } + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output, write input as partial output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialBlock[i] = input.getInt32(); + this._partialOutput.putInt32(this._partialBlock[i] ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._partialBlock[i]; + } + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +/** Output feedback (OFB) **/ + +modes.ofb = function(options) { + options = options || {}; + this.name = 'OFB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.ofb.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.ofb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(input.length() === 0) { + return true; + } + + // encrypt block (OFB always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output and update next input + for(var i = 0; i < this._ints; ++i) { + output.putInt32(input.getInt32() ^ this._outBlock[i]); + this._inBlock[i] = this._outBlock[i]; + } + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._outBlock[i]; + } + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt; + +/** Counter (CTR) **/ + +modes.ctr = function(options) { + options = options || {}; + this.name = 'CTR'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.ctr.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.ctr.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block (CTR always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(input.getInt32() ^ this._outBlock[i]); + } + } else { + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; + } + + // block complete, increment counter (input block) + inc32(this._inBlock); +}; + +modes.ctr.prototype.decrypt = modes.ctr.prototype.encrypt; + +/** Galois/Counter Mode (GCM) **/ + +modes.gcm = function(options) { + options = options || {}; + this.name = 'GCM'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; + + // R is actually this value concatenated with 120 more zero bits, but + // we only XOR against R so the other zeros have no effect -- we just + // apply this value to the first integer in a block + this._R = 0xE1000000; +}; + +modes.gcm.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // ensure IV is a byte buffer + var iv = forge.util.createBuffer(options.iv); + + // no ciphered data processed yet + this._cipherLength = 0; + + // default additional data is none + var additionalData; + if('additionalData' in options) { + additionalData = forge.util.createBuffer(options.additionalData); + } else { + additionalData = forge.util.createBuffer(); + } + + // default tag length is 128 bits + if('tagLength' in options) { + this._tagLength = options.tagLength; + } else { + this._tagLength = 128; + } + + // if tag is given, ensure tag matches tag length + this._tag = null; + if(options.decrypt) { + // save tag to check later + this._tag = forge.util.createBuffer(options.tag).getBytes(); + if(this._tag.length !== (this._tagLength / 8)) { + throw new Error('Authentication tag does not match tag length.'); + } + } + + // create tmp storage for hash calculation + this._hashBlock = new Array(this._ints); + + // no tag generated yet + this.tag = null; + + // generate hash subkey + // (apply block cipher to "zero" block) + this._hashSubkey = new Array(this._ints); + this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey); + + // generate table M + // use 4-bit tables (32 component decomposition of a 16 byte value) + // 8-bit tables take more space and are known to have security + // vulnerabilities (in native implementations) + this.componentBits = 4; + this._m = this.generateHashTable(this._hashSubkey, this.componentBits); + + // Note: support IV length different from 96 bits? (only supporting + // 96 bits is recommended by NIST SP-800-38D) + // generate J_0 + var ivLength = iv.length(); + if(ivLength === 12) { + // 96-bit IV + this._j0 = [iv.getInt32(), iv.getInt32(), iv.getInt32(), 1]; + } else { + // IV is NOT 96-bits + this._j0 = [0, 0, 0, 0]; + while(iv.length() > 0) { + this._j0 = this.ghash( + this._hashSubkey, this._j0, + [iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()]); + } + this._j0 = this.ghash( + this._hashSubkey, this._j0, [0, 0].concat(from64To32(ivLength * 8))); + } + + // generate ICB (initial counter block) + this._inBlock = this._j0.slice(0); + inc32(this._inBlock); + this._partialBytes = 0; + + // consume authentication data + additionalData = forge.util.createBuffer(additionalData); + // save additional data length as a BE 64-bit number + this._aDataLength = from64To32(additionalData.length() * 8); + // pad additional data to 128 bit (16 byte) block size + var overflow = additionalData.length() % this.blockSize; + if(overflow) { + additionalData.fillWithByte(0, this.blockSize - overflow); + } + this._s = [0, 0, 0, 0]; + while(additionalData.length() > 0) { + this._s = this.ghash(this._hashSubkey, this._s, [ + additionalData.getInt32(), + additionalData.getInt32(), + additionalData.getInt32(), + additionalData.getInt32() + ]); + } +}; + +modes.gcm.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; } - return combinedStream; -}; + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); -CombinedStream.isStreamLike = function(stream) { - return (typeof stream !== 'function') - && (typeof stream !== 'string') - && (typeof stream !== 'boolean') - && (typeof stream !== 'number') - && (!Buffer.isBuffer(stream)); -}; + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i] ^= input.getInt32()); + } + this._cipherLength += this.blockSize; + } else { + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } -CombinedStream.prototype.append = function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } - if (isStreamLike) { - if (!(stream instanceof DelayedStream)) { - var newStream = DelayedStream.create(stream, { - maxDataSize: Infinity, - pauseStream: this.pauseStreams, - }); - stream.on('data', this._checkDataSize.bind(this)); - stream = newStream; + if(partialBytes <= 0 || finish) { + // handle overflow prior to hashing + if(finish) { + // get block overflow + var overflow = inputLength % this.blockSize; + this._cipherLength += overflow; + // truncate for hash function + this._partialOutput.truncate(this.blockSize - overflow); + } else { + this._cipherLength += this.blockSize; + } + + // get output block for hashing + for(var i = 0; i < this._ints; ++i) { + this._outBlock[i] = this._partialOutput.getInt32(); + } + this._partialOutput.read -= this.blockSize; } - this._handleErrors(stream); + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } - if (this.pauseStreams) { - stream.pause(); + if(partialBytes > 0 && !finish) { + // block still incomplete, restore input buffer, get partial output, + // and return early + input.read -= this.blockSize; + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; } - this._streams.push(stream); - return this; -}; + // update hash block S + this._s = this.ghash(this._hashSubkey, this._s, this._outBlock); -CombinedStream.prototype.pipe = function(dest, options) { - Stream.prototype.pipe.call(this, dest, options); - this.resume(); - return dest; + // increment counter (input block) + inc32(this._inBlock); }; -CombinedStream.prototype._getNext = function() { - this._currentStream = null; - - if (this._insideLoop) { - this._pendingNext = true; - return; // defer call +modes.gcm.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + var inputLength = input.length(); + if(inputLength < this.blockSize && !(finish && inputLength > 0)) { + return true; } - this._insideLoop = true; - try { - do { - this._pendingNext = false; - this._realGetNext(); - } while (this._pendingNext); - } finally { - this._insideLoop = false; - } -}; + // encrypt block (GCM always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); -CombinedStream.prototype._realGetNext = function() { - var stream = this._streams.shift(); + // increment counter (input block) + inc32(this._inBlock); + // update hash block S + this._hashBlock[0] = input.getInt32(); + this._hashBlock[1] = input.getInt32(); + this._hashBlock[2] = input.getInt32(); + this._hashBlock[3] = input.getInt32(); + this._s = this.ghash(this._hashSubkey, this._s, this._hashBlock); - if (typeof stream == 'undefined') { - this.end(); - return; + // XOR hash input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i] ^ this._hashBlock[i]); } - if (typeof stream !== 'function') { - this._pipeNext(stream); - return; + // increment cipher data length + if(inputLength < this.blockSize) { + this._cipherLength += inputLength % this.blockSize; + } else { + this._cipherLength += this.blockSize; } - - var getStream = stream; - getStream(function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('data', this._checkDataSize.bind(this)); - this._handleErrors(stream); - } - - this._pipeNext(stream); - }.bind(this)); }; -CombinedStream.prototype._pipeNext = function(stream) { - this._currentStream = stream; +modes.gcm.prototype.afterFinish = function(output, options) { + var rval = true; - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('end', this._getNext.bind(this)); - stream.pipe(this, {end: false}); - return; + // handle overflow + if(options.decrypt && options.overflow) { + output.truncate(this.blockSize - options.overflow); } - var value = stream; - this.write(value); - this._getNext(); -}; + // handle authentication tag + this.tag = forge.util.createBuffer(); -CombinedStream.prototype._handleErrors = function(stream) { - var self = this; - stream.on('error', function(err) { - self._emitError(err); - }); -}; + // concatenate additional data length with cipher length + var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8)); -CombinedStream.prototype.write = function(data) { - this.emit('data', data); -}; + // include lengths in hash + this._s = this.ghash(this._hashSubkey, this._s, lengths); -CombinedStream.prototype.pause = function() { - if (!this.pauseStreams) { - return; + // do GCTR(J_0, S) + var tag = []; + this.cipher.encrypt(this._j0, tag); + for(var i = 0; i < this._ints; ++i) { + this.tag.putInt32(this._s[i] ^ tag[i]); } - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); - this.emit('pause'); -}; + // trim tag to length + this.tag.truncate(this.tag.length() % (this._tagLength / 8)); -CombinedStream.prototype.resume = function() { - if (!this._released) { - this._released = true; - this.writable = true; - this._getNext(); + // check authentication tag + if(options.decrypt && this.tag.bytes() !== this._tag) { + rval = false; } - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); - this.emit('resume'); -}; - -CombinedStream.prototype.end = function() { - this._reset(); - this.emit('end'); + return rval; }; -CombinedStream.prototype.destroy = function() { - this._reset(); - this.emit('close'); -}; +/** + * See NIST SP-800-38D 6.3 (Algorithm 1). This function performs Galois + * field multiplication. The field, GF(2^128), is defined by the polynomial: + * + * x^128 + x^7 + x^2 + x + 1 + * + * Which is represented in little-endian binary form as: 11100001 (0xe1). When + * the value of a coefficient is 1, a bit is set. The value R, is the + * concatenation of this value and 120 zero bits, yielding a 128-bit value + * which matches the block size. + * + * This function will multiply two elements (vectors of bytes), X and Y, in + * the field GF(2^128). The result is initialized to zero. For each bit of + * X (out of 128), x_i, if x_i is set, then the result is multiplied (XOR'd) + * by the current value of Y. For each bit, the value of Y will be raised by + * a power of x (multiplied by the polynomial x). This can be achieved by + * shifting Y once to the right. If the current value of Y, prior to being + * multiplied by x, has 0 as its LSB, then it is a 127th degree polynomial. + * Otherwise, we must divide by R after shifting to find the remainder. + * + * @param x the first block to multiply by the second. + * @param y the second block to multiply by the first. + * + * @return the block result of the multiplication. + */ +modes.gcm.prototype.multiply = function(x, y) { + var z_i = [0, 0, 0, 0]; + var v_i = y.slice(0); -CombinedStream.prototype._reset = function() { - this.writable = false; - this._streams = []; - this._currentStream = null; -}; + // calculate Z_128 (block has 128 bits) + for(var i = 0; i < 128; ++i) { + // if x_i is 0, Z_{i+1} = Z_i (unchanged) + // else Z_{i+1} = Z_i ^ V_i + // get x_i by finding 32-bit int position, then left shift 1 by remainder + var x_i = x[(i / 32) | 0] & (1 << (31 - i % 32)); + if(x_i) { + z_i[0] ^= v_i[0]; + z_i[1] ^= v_i[1]; + z_i[2] ^= v_i[2]; + z_i[3] ^= v_i[3]; + } -CombinedStream.prototype._checkDataSize = function() { - this._updateDataSize(); - if (this.dataSize <= this.maxDataSize) { - return; + // if LSB(V_i) is 1, V_i = V_i >> 1 + // else V_i = (V_i >> 1) ^ R + this.pow(v_i, v_i); } - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; - this._emitError(new Error(message)); + return z_i; }; -CombinedStream.prototype._updateDataSize = function() { - this.dataSize = 0; - - var self = this; - this._streams.forEach(function(stream) { - if (!stream.dataSize) { - return; - } +modes.gcm.prototype.pow = function(x, out) { + // if LSB(x) is 1, x = x >>> 1 + // else x = (x >>> 1) ^ R + var lsb = x[3] & 1; - self.dataSize += stream.dataSize; - }); + // always do x >>> 1: + // starting with the rightmost integer, shift each integer to the right + // one bit, pulling in the bit from the integer to the left as its top + // most bit (do this for the last 3 integers) + for(var i = 3; i > 0; --i) { + out[i] = (x[i] >>> 1) | ((x[i - 1] & 1) << 31); + } + // shift the first integer normally + out[0] = x[0] >>> 1; - if (this._currentStream && this._currentStream.dataSize) { - this.dataSize += this._currentStream.dataSize; + // if lsb was not set, then polynomial had a degree of 127 and doesn't + // need to divided; otherwise, XOR with R to find the remainder; we only + // need to XOR the first integer since R technically ends w/120 zero bits + if(lsb) { + out[0] ^= this._R; } }; -CombinedStream.prototype._emitError = function(err) { - this._reset(); - this.emit('error', err); +modes.gcm.prototype.tableMultiply = function(x) { + // assumes 4-bit tables are used + var z = [0, 0, 0, 0]; + for(var i = 0; i < 32; ++i) { + var idx = (i / 8) | 0; + var x_i = (x[idx] >>> ((7 - (i % 8)) * 4)) & 0xF; + var ah = this._m[i][x_i]; + z[0] ^= ah[0]; + z[1] ^= ah[1]; + z[2] ^= ah[2]; + z[3] ^= ah[3]; + } + return z; }; +/** + * A continuing version of the GHASH algorithm that operates on a single + * block. The hash block, last hash value (Ym) and the new block to hash + * are given. + * + * @param h the hash block. + * @param y the previous value for Ym, use [0, 0, 0, 0] for a new hash. + * @param x the block to hash. + * + * @return the hashed value (Ym). + */ +modes.gcm.prototype.ghash = function(h, y, x) { + y[0] ^= x[0]; + y[1] ^= x[1]; + y[2] ^= x[2]; + y[3] ^= x[3]; + return this.tableMultiply(y); + //return this.multiply(y, h); +}; -/***/ }), - -/***/ 95114: -/***/ ((__unused_webpack_module, exports) => { - -var __webpack_unused_export__; -/* jshint node: true */ -(function () { - "use strict"; - - function CookieAccessInfo(domain, path, secure, script) { - if (this instanceof CookieAccessInfo) { - this.domain = domain || undefined; - this.path = path || "/"; - this.secure = !!secure; - this.script = !!script; - return this; - } - return new CookieAccessInfo(domain, path, secure, script); - } - CookieAccessInfo.All = Object.freeze(Object.create(null)); - exports.Qr = CookieAccessInfo; +/** + * Precomputes a table for multiplying against the hash subkey. This + * mechanism provides a substantial speed increase over multiplication + * performed without a table. The table-based multiplication this table is + * for solves X * H by multiplying each component of X by H and then + * composing the results together using XOR. + * + * This function can be used to generate tables with different bit sizes + * for the components, however, this implementation assumes there are + * 32 components of X (which is a 16 byte vector), therefore each component + * takes 4-bits (so the table is constructed with bits=4). + * + * @param h the hash subkey. + * @param bits the bit size for a component. + */ +modes.gcm.prototype.generateHashTable = function(h, bits) { + // TODO: There are further optimizations that would use only the + // first table M_0 (or some variant) along with a remainder table; + // this can be explored in the future + var multiplier = 8 / bits; + var perInt = 4 * multiplier; + var size = 16 * multiplier; + var m = new Array(size); + for(var i = 0; i < size; ++i) { + var tmp = [0, 0, 0, 0]; + var idx = (i / perInt) | 0; + var shft = ((perInt - 1 - (i % perInt)) * bits); + tmp[idx] = (1 << (bits - 1)) << shft; + m[i] = this.generateSubHashTable(this.multiply(tmp, h), bits); + } + return m; +}; - function Cookie(cookiestr, request_domain, request_path) { - if (cookiestr instanceof Cookie) { - return cookiestr; - } - if (this instanceof Cookie) { - this.name = null; - this.value = null; - this.expiration_date = Infinity; - this.path = String(request_path || "/"); - this.explicit_path = false; - this.domain = request_domain || null; - this.explicit_domain = false; - this.secure = false; //how to define default? - this.noscript = false; //httponly - if (cookiestr) { - this.parse(cookiestr, request_domain, request_path); - } - return this; - } - return new Cookie(cookiestr, request_domain, request_path); +/** + * Generates a table for multiplying against the hash subkey for one + * particular component (out of all possible component values). + * + * @param mid the pre-multiplied value for the middle key of the table. + * @param bits the bit size for a component. + */ +modes.gcm.prototype.generateSubHashTable = function(mid, bits) { + // compute the table quickly by minimizing the number of + // POW operations -- they only need to be performed for powers of 2, + // all other entries can be composed from those powers using XOR + var size = 1 << bits; + var half = size >>> 1; + var m = new Array(size); + m[half] = mid.slice(0); + var i = half >>> 1; + while(i > 0) { + // raise m0[2 * i] and store in m0[i] + this.pow(m[2 * i], m[i] = []); + i >>= 1; + } + i = 2; + while(i < half) { + for(var j = 1; j < i; ++j) { + var m_i = m[i]; + var m_j = m[j]; + m[i + j] = [ + m_i[0] ^ m_j[0], + m_i[1] ^ m_j[1], + m_i[2] ^ m_j[2], + m_i[3] ^ m_j[3] + ]; } - __webpack_unused_export__ = Cookie; - - Cookie.prototype.toString = function toString() { - var str = [this.name + "=" + this.value]; - if (this.expiration_date !== Infinity) { - str.push("expires=" + (new Date(this.expiration_date)).toGMTString()); - } - if (this.domain) { - str.push("domain=" + this.domain); - } - if (this.path) { - str.push("path=" + this.path); - } - if (this.secure) { - str.push("secure"); - } - if (this.noscript) { - str.push("httponly"); - } - return str.join("; "); - }; - - Cookie.prototype.toValueString = function toValueString() { - return this.name + "=" + this.value; - }; - - var cookie_str_splitter = /[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g; - Cookie.prototype.parse = function parse(str, request_domain, request_path) { - if (this instanceof Cookie) { - if ( str.length > 32768 ) { - console.warn("Cookie too long for parsing (>32768 characters)"); - return; - } - - var parts = str.split(";").filter(function (value) { - return !!value; - }); - var i; - - var pair = parts[0].match(/([^=]+)=([\s\S]*)/); - if (!pair) { - console.warn("Invalid cookie header encountered. Header: '"+str+"'"); - return; - } - - var key = pair[1]; - var value = pair[2]; - if ( typeof key !== 'string' || key.length === 0 || typeof value !== 'string' ) { - console.warn("Unable to extract values from cookie header. Cookie: '"+str+"'"); - return; - } - - this.name = key; - this.value = value; - - for (i = 1; i < parts.length; i += 1) { - pair = parts[i].match(/([^=]+)(?:=([\s\S]*))?/); - key = pair[1].trim().toLowerCase(); - value = pair[2]; - switch (key) { - case "httponly": - this.noscript = true; - break; - case "expires": - this.expiration_date = value ? - Number(Date.parse(value)) : - Infinity; - break; - case "path": - this.path = value ? - value.trim() : - ""; - this.explicit_path = true; - break; - case "domain": - this.domain = value ? - value.trim() : - ""; - this.explicit_domain = !!this.domain; - break; - case "secure": - this.secure = true; - break; - } - } - - if (!this.explicit_path) { - this.path = request_path || "/"; - } - if (!this.explicit_domain) { - this.domain = request_domain; - } - - return this; - } - return new Cookie().parse(str, request_domain, request_path); - }; - - Cookie.prototype.matches = function matches(access_info) { - if (access_info === CookieAccessInfo.All) { - return true; - } - if (this.noscript && access_info.script || - this.secure && !access_info.secure || - !this.collidesWith(access_info)) { - return false; - } - return true; - }; - - Cookie.prototype.collidesWith = function collidesWith(access_info) { - if ((this.path && !access_info.path) || (this.domain && !access_info.domain)) { - return false; - } - if (this.path && access_info.path.indexOf(this.path) !== 0) { - return false; - } - if (this.explicit_path && access_info.path.indexOf( this.path ) !== 0) { - return false; - } - var access_domain = access_info.domain && access_info.domain.replace(/^[\.]/,''); - var cookie_domain = this.domain && this.domain.replace(/^[\.]/,''); - if (cookie_domain === access_domain) { - return true; - } - if (cookie_domain) { - if (!this.explicit_domain) { - return false; // we already checked if the domains were exactly the same - } - var wildcard = access_domain.indexOf(cookie_domain); - if (wildcard === -1 || wildcard !== access_domain.length - cookie_domain.length) { - return false; - } - return true; - } - return true; - }; - - function CookieJar() { - var cookies, cookies_list, collidable_cookie; - if (this instanceof CookieJar) { - cookies = Object.create(null); //name: [Cookie] + i *= 2; + } + m[0] = [0, 0, 0, 0]; + /* Note: We could avoid storing these by doing composition during multiply + calculate top half using composition by speed is preferred. */ + for(i = half + 1; i < size; ++i) { + var c = m[i ^ half]; + m[i] = [mid[0] ^ c[0], mid[1] ^ c[1], mid[2] ^ c[2], mid[3] ^ c[3]]; + } + return m; +}; - this.setCookie = function setCookie(cookie, request_domain, request_path) { - var remove, i; - cookie = new Cookie(cookie, request_domain, request_path); - //Delete the cookie if the set is past the current time - remove = cookie.expiration_date <= Date.now(); - if (cookies[cookie.name] !== undefined) { - cookies_list = cookies[cookie.name]; - for (i = 0; i < cookies_list.length; i += 1) { - collidable_cookie = cookies_list[i]; - if (collidable_cookie.collidesWith(cookie)) { - if (remove) { - cookies_list.splice(i, 1); - if (cookies_list.length === 0) { - delete cookies[cookie.name]; - } - return false; - } - cookies_list[i] = cookie; - return cookie; - } - } - if (remove) { - return false; - } - cookies_list.push(cookie); - return cookie; - } - if (remove) { - return false; - } - cookies[cookie.name] = [cookie]; - return cookies[cookie.name]; - }; - //returns a cookie - this.getCookie = function getCookie(cookie_name, access_info) { - var cookie, i; - cookies_list = cookies[cookie_name]; - if (!cookies_list) { - return; - } - for (i = 0; i < cookies_list.length; i += 1) { - cookie = cookies_list[i]; - if (cookie.expiration_date <= Date.now()) { - if (cookies_list.length === 0) { - delete cookies[cookie.name]; - } - continue; - } +/** Utility functions */ - if (cookie.matches(access_info)) { - return cookie; - } - } - }; - //returns a list of cookies - this.getCookies = function getCookies(access_info) { - var matches = [], cookie_name, cookie; - for (cookie_name in cookies) { - cookie = this.getCookie(cookie_name, access_info); - if (cookie) { - matches.push(cookie); - } - } - matches.toString = function toString() { - return matches.join(":"); - }; - matches.toValueString = function toValueString() { - return matches.map(function (c) { - return c.toValueString(); - }).join('; '); - }; - return matches; - }; +function transformIV(iv, blockSize) { + if(typeof iv === 'string') { + // convert iv string into byte buffer + iv = forge.util.createBuffer(iv); + } - return this; - } - return new CookieJar(); + if(forge.util.isArray(iv) && iv.length > 4) { + // convert iv byte array into byte buffer + var tmp = iv; + iv = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + iv.putByte(tmp[i]); } - exports.US = CookieJar; - - //returns list of cookies that were set correctly. Cookies that are expired and removed are not returned. - CookieJar.prototype.setCookies = function setCookies(cookies, request_domain, request_path) { - cookies = Array.isArray(cookies) ? - cookies : - cookies.split(cookie_str_splitter); - var successful = [], - i, - cookie; - cookies = cookies.map(function(item){ - return new Cookie(item, request_domain, request_path); - }); - for (i = 0; i < cookies.length; i += 1) { - cookie = cookies[i]; - if (this.setCookie(cookie, request_domain, request_path)) { - successful.push(cookie); - } - } - return successful; - }; -}()); - + } -/***/ }), + if(iv.length() < blockSize) { + throw new Error( + 'Invalid IV length; got ' + iv.length() + + ' bytes and expected ' + blockSize + ' bytes.'); + } -/***/ 31464: -/***/ ((module, exports, __nccwpck_require__) => { + if(!forge.util.isArray(iv)) { + // convert iv byte buffer into 32-bit integer array + var ints = []; + var blocks = blockSize / 4; + for(var i = 0; i < blocks; ++i) { + ints.push(iv.getInt32()); + } + iv = ints; + } -/* eslint-env browser */ + return iv; +} -/** - * This is the web browser implementation of `debug()`. - */ +function inc32(block) { + // increment last 32 bits of block only + block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF; +} -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); -exports.destroy = (() => { - let warned = false; +function from64To32(num) { + // convert 64-bit number to two BE Int32s + return [(num / 0x100000000) | 0, num & 0xFFFFFFFF]; +} - return () => { - if (!warned) { - warned = true; - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - }; -})(); -/** - * Colors. - */ +/***/ }), -exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' -]; +/***/ 42499: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. + * DES (Data Encryption Standard) implementation. * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - -/** - * Colorize log arguments if enabled. + * This implementation supports DES as well as 3DES-EDE in ECB and CBC mode. + * It is based on the BSD-licensed implementation by Paul Tero: * - * @api public + * Paul Tero, July 2001 + * http://www.tero.co.uk/des/ + * + * Optimised for performance with large blocks by + * Michael Hayworth, November 2001 + * http://www.netdealing.com + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2012-2014 Digital Bazaar, Inc. */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(24824); +__nccwpck_require__(65414); +__nccwpck_require__(46831); -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} +/* DES API */ +module.exports = forge.des = forge.des || {}; /** - * Invokes `console.debug()` when available. - * No-op when `console.debug` is not a "function". - * If `console.debug` is not available, falls back - * to `console.log`. + * Deprecated. Instead, use: * - * @api public + * var cipher = forge.cipher.createCipher('DES-', key); + * cipher.start({iv: iv}); + * + * Creates an DES cipher object to encrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as binary-encoded strings of bytes or + * byte buffers. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC' if IV is + * given, 'ECB' if null). + * + * @return the cipher. */ -exports.log = console.debug || console.log || (() => {}); +forge.des.startEncrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: false, + mode: mode || (iv === null ? 'ECB' : 'CBC') + }); + cipher.start(iv); + return cipher; +}; /** - * Save `namespaces`. + * Deprecated. Instead, use: * - * @param {String} namespaces - * @api private + * var cipher = forge.cipher.createCipher('DES-', key); + * + * Creates an DES cipher object to encrypt data using the given symmetric key. + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} +forge.des.createEncryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: false, + mode: mode + }); +}; /** - * Load `namespaces`. + * Deprecated. Instead, use: * - * @return {String} returns the previously persisted debug modes - * @api private + * var decipher = forge.cipher.createDecipher('DES-', key); + * decipher.start({iv: iv}); + * + * Creates an DES cipher object to decrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as binary-encoded strings of bytes or + * byte buffers. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC' if IV is + * given, 'ECB' if null). + * + * @return the cipher. */ -function load() { - let r; - try { - r = exports.storage.getItem('debug'); - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} +forge.des.startDecrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: true, + mode: mode || (iv === null ? 'ECB' : 'CBC') + }); + cipher.start(iv); + return cipher; +}; /** - * Localstorage attempts to return the localstorage. + * Deprecated. Instead, use: * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. + * var decipher = forge.cipher.createDecipher('DES-', key); * - * @return {LocalStorage} - * @api private + * Creates an DES cipher object to decrypt data using the given symmetric key. + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. */ - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = __nccwpck_require__(90454)(exports); - -const {formatters} = module.exports; +forge.des.createDecryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: true, + mode: mode + }); +}; /** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. + * Creates a new DES cipher algorithm object. + * + * @param name the name of the algorithm. + * @param mode the mode factory function. + * + * @return the DES algorithm object. */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } +forge.des.Algorithm = function(name, mode) { + var self = this; + self.name = name; + self.mode = new mode({ + blockSize: 8, + cipher: { + encrypt: function(inBlock, outBlock) { + return _updateBlock(self._keys, inBlock, outBlock, false); + }, + decrypt: function(inBlock, outBlock) { + return _updateBlock(self._keys, inBlock, outBlock, true); + } + } + }); + self._init = false; }; - -/***/ }), - -/***/ 90454: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - - /** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. + * Initializes this DES algorithm by expanding its key. + * + * @param options the options to use. + * key the key to use with this algorithm. + * decrypt true if the algorithm should be initialized for decryption, + * false for encryption. */ +forge.des.Algorithm.prototype.initialize = function(options) { + if(this._init) { + return; + } -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = __nccwpck_require__(73239); - createDebug.destroy = destroy; - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return '%'; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); + var key = forge.util.createBuffer(options.key); + if(this.name.indexOf('3DES') === 0) { + if(key.length() !== 24) { + throw new Error('Invalid Triple-DES key size: ' + key.length() * 8); + } + } - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } + // do key expansion to 16 or 48 subkeys (single or triple DES) + this._keys = _createKeys(key); + this._init = true; +}; - debug.namespace = namespace; - debug.useColors = createDebug.useColors(); - debug.color = createDebug.selectColor(namespace); - debug.extend = extend; - debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. +/** Register DES algorithms **/ - Object.defineProperty(debug, 'enabled', { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } +registerAlgorithm('DES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('DES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('DES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('DES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('DES-CTR', forge.cipher.modes.ctr); - return enabledCache; - }, - set: v => { - enableOverride = v; - } - }); +registerAlgorithm('3DES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('3DES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('3DES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('3DES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('3DES-CTR', forge.cipher.modes.ctr); - // Env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } +function registerAlgorithm(name, mode) { + var factory = function() { + return new forge.des.Algorithm(name, mode); + }; + forge.cipher.registerAlgorithm(name, factory); +} - return debug; - } +/** DES implementation **/ - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } +var spfunction1 = [0x1010400,0,0x10000,0x1010404,0x1010004,0x10404,0x4,0x10000,0x400,0x1010400,0x1010404,0x400,0x1000404,0x1010004,0x1000000,0x4,0x404,0x1000400,0x1000400,0x10400,0x10400,0x1010000,0x1010000,0x1000404,0x10004,0x1000004,0x1000004,0x10004,0,0x404,0x10404,0x1000000,0x10000,0x1010404,0x4,0x1010000,0x1010400,0x1000000,0x1000000,0x400,0x1010004,0x10000,0x10400,0x1000004,0x400,0x4,0x1000404,0x10404,0x1010404,0x10004,0x1010000,0x1000404,0x1000004,0x404,0x10404,0x1010400,0x404,0x1000400,0x1000400,0,0x10004,0x10400,0,0x1010004]; +var spfunction2 = [-0x7fef7fe0,-0x7fff8000,0x8000,0x108020,0x100000,0x20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef8000,-0x80000000,-0x7fff8000,0x100000,0x20,-0x7fefffe0,0x108000,0x100020,-0x7fff7fe0,0,-0x80000000,0x8000,0x108020,-0x7ff00000,0x100020,-0x7fffffe0,0,0x108000,0x8020,-0x7fef8000,-0x7ff00000,0x8020,0,0x108020,-0x7fefffe0,0x100000,-0x7fff7fe0,-0x7ff00000,-0x7fef8000,0x8000,-0x7ff00000,-0x7fff8000,0x20,-0x7fef7fe0,0x108020,0x20,0x8000,-0x80000000,0x8020,-0x7fef8000,0x100000,-0x7fffffe0,0x100020,-0x7fff7fe0,-0x7fffffe0,0x100020,0x108000,0,-0x7fff8000,0x8020,-0x80000000,-0x7fefffe0,-0x7fef7fe0,0x108000]; +var spfunction3 = [0x208,0x8020200,0,0x8020008,0x8000200,0,0x20208,0x8000200,0x20008,0x8000008,0x8000008,0x20000,0x8020208,0x20008,0x8020000,0x208,0x8000000,0x8,0x8020200,0x200,0x20200,0x8020000,0x8020008,0x20208,0x8000208,0x20200,0x20000,0x8000208,0x8,0x8020208,0x200,0x8000000,0x8020200,0x8000000,0x20008,0x208,0x20000,0x8020200,0x8000200,0,0x200,0x20008,0x8020208,0x8000200,0x8000008,0x200,0,0x8020008,0x8000208,0x20000,0x8000000,0x8020208,0x8,0x20208,0x20200,0x8000008,0x8020000,0x8000208,0x208,0x8020000,0x20208,0x8,0x8020008,0x20200]; +var spfunction4 = [0x802001,0x2081,0x2081,0x80,0x802080,0x800081,0x800001,0x2001,0,0x802000,0x802000,0x802081,0x81,0,0x800080,0x800001,0x1,0x2000,0x800000,0x802001,0x80,0x800000,0x2001,0x2080,0x800081,0x1,0x2080,0x800080,0x2000,0x802080,0x802081,0x81,0x800080,0x800001,0x802000,0x802081,0x81,0,0,0x802000,0x2080,0x800080,0x800081,0x1,0x802001,0x2081,0x2081,0x80,0x802081,0x81,0x1,0x2000,0x800001,0x2001,0x802080,0x800081,0x2001,0x2080,0x800000,0x802001,0x80,0x800000,0x2000,0x802080]; +var spfunction5 = [0x100,0x2080100,0x2080000,0x42000100,0x80000,0x100,0x40000000,0x2080000,0x40080100,0x80000,0x2000100,0x40080100,0x42000100,0x42080000,0x80100,0x40000000,0x2000000,0x40080000,0x40080000,0,0x40000100,0x42080100,0x42080100,0x2000100,0x42080000,0x40000100,0,0x42000000,0x2080100,0x2000000,0x42000000,0x80100,0x80000,0x42000100,0x100,0x2000000,0x40000000,0x2080000,0x42000100,0x40080100,0x2000100,0x40000000,0x42080000,0x2080100,0x40080100,0x100,0x2000000,0x42080000,0x42080100,0x80100,0x42000000,0x42080100,0x2080000,0,0x40080000,0x42000000,0x80100,0x2000100,0x40000100,0x80000,0,0x40080000,0x2080100,0x40000100]; +var spfunction6 = [0x20000010,0x20400000,0x4000,0x20404010,0x20400000,0x10,0x20404010,0x400000,0x20004000,0x404010,0x400000,0x20000010,0x400010,0x20004000,0x20000000,0x4010,0,0x400010,0x20004010,0x4000,0x404000,0x20004010,0x10,0x20400010,0x20400010,0,0x404010,0x20404000,0x4010,0x404000,0x20404000,0x20000000,0x20004000,0x10,0x20400010,0x404000,0x20404010,0x400000,0x4010,0x20000010,0x400000,0x20004000,0x20000000,0x4010,0x20000010,0x20404010,0x404000,0x20400000,0x404010,0x20404000,0,0x20400010,0x10,0x4000,0x20400000,0x404010,0x4000,0x400010,0x20004010,0,0x20404000,0x20000000,0x400010,0x20004010]; +var spfunction7 = [0x200000,0x4200002,0x4000802,0,0x800,0x4000802,0x200802,0x4200800,0x4200802,0x200000,0,0x4000002,0x2,0x4000000,0x4200002,0x802,0x4000800,0x200802,0x200002,0x4000800,0x4000002,0x4200000,0x4200800,0x200002,0x4200000,0x800,0x802,0x4200802,0x200800,0x2,0x4000000,0x200800,0x4000000,0x200800,0x200000,0x4000802,0x4000802,0x4200002,0x4200002,0x2,0x200002,0x4000000,0x4000800,0x200000,0x4200800,0x802,0x200802,0x4200800,0x802,0x4000002,0x4200802,0x4200000,0x200800,0,0x2,0x4200802,0,0x200802,0x4200000,0x800,0x4000002,0x4000800,0x800,0x200002]; +var spfunction8 = [0x10001040,0x1000,0x40000,0x10041040,0x10000000,0x10001040,0x40,0x10000000,0x40040,0x10040000,0x10041040,0x41000,0x10041000,0x41040,0x1000,0x40,0x10040000,0x10000040,0x10001000,0x1040,0x41000,0x40040,0x10040040,0x10041000,0x1040,0,0,0x10040040,0x10000040,0x10001000,0x41040,0x40000,0x41040,0x40000,0x10041000,0x1000,0x40,0x10040040,0x1000,0x41040,0x10001000,0x40,0x10000040,0x10040000,0x10040040,0x10000000,0x40000,0x10001040,0,0x10041040,0x40040,0x10000040,0x10040000,0x10001000,0x10001040,0,0x10041040,0x41000,0x41000,0x1040,0x1040,0x40040,0x10000000,0x10041000]; - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; +/** + * Create necessary sub keys. + * + * @param key the 64-bit or 192-bit key. + * + * @return the expanded keys. + */ +function _createKeys(key) { + var pc2bytes0 = [0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204], + pc2bytes1 = [0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101], + pc2bytes2 = [0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808], + pc2bytes3 = [0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000], + pc2bytes4 = [0,0x40000,0x10,0x40010,0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010], + pc2bytes5 = [0,0x400,0x20,0x420,0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420], + pc2bytes6 = [0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002], + pc2bytes7 = [0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800], + pc2bytes8 = [0,0x40000,0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002], + pc2bytes9 = [0,0x10000000,0x8,0x10000008,0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408], + pc2bytes10 = [0,0x20,0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020], + pc2bytes11 = [0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200], + pc2bytes12 = [0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010], + pc2bytes13 = [0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105]; - createDebug.names = []; - createDebug.skips = []; + // how many iterations (1 for des, 3 for triple des) + // changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys + var iterations = key.length() > 8 ? 3 : 1; - let i; - const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - const len = split.length; + // stores the return keys + var keys = []; - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } + // now define the left shifts which need to be done + var shifts = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0]; - namespaces = split[i].replace(/\*/g, '.*?'); + var n = 0, tmp; + for(var j = 0; j < iterations; j++) { + var left = key.getInt32(); + var right = key.getInt32(); - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - } + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } + tmp = ((right >>> -16) ^ left) & 0x0000ffff; + left ^= tmp; + right ^= (tmp << -16); - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } + tmp = ((left >>> 2) ^ right) & 0x33333333; + right ^= tmp; + left ^= (tmp << 2); - let i; - let len; + tmp = ((right >>> -16) ^ left) & 0x0000ffff; + left ^= tmp; + right ^= (tmp << -16); - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); - return false; - } + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); - /** - * Convert regexp to namespace - * - * @param {RegExp} regxep - * @return {String} namespace - * @api private - */ - function toNamespace(regexp) { - return regexp.toString() - .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); - } + // right needs to be shifted and OR'd with last four bits of left + tmp = (left << 8) | ((right >>> 20) & 0x000000f0); - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } + // left needs to be put upside down + left = ((right << 24) | ((right << 8) & 0xff0000) | + ((right >>> 8) & 0xff00) | ((right >>> 24) & 0xf0)); + right = tmp; - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy() { - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } + // now go through and perform these shifts on the left and right keys + for(var i = 0; i < shifts.length; ++i) { + //shift the keys either one or two bits to the left + if(shifts[i]) { + left = (left << 2) | (left >>> 26); + right = (right << 2) | (right >>> 26); + } else { + left = (left << 1) | (left >>> 27); + right = (right << 1) | (right >>> 27); + } + left &= -0xf; + right &= -0xf; - createDebug.enable(createDebug.load()); + // now apply PC-2, in such a way that E is easier when encrypting or + // decrypting this conversion will look like PC-2 except only the last 6 + // bits of each byte are used rather than 48 consecutive bits and the + // order of lines will be according to how the S selection functions will + // be applied: S2, S4, S6, S8, S1, S3, S5, S7 + var lefttmp = ( + pc2bytes0[left >>> 28] | pc2bytes1[(left >>> 24) & 0xf] | + pc2bytes2[(left >>> 20) & 0xf] | pc2bytes3[(left >>> 16) & 0xf] | + pc2bytes4[(left >>> 12) & 0xf] | pc2bytes5[(left >>> 8) & 0xf] | + pc2bytes6[(left >>> 4) & 0xf]); + var righttmp = ( + pc2bytes7[right >>> 28] | pc2bytes8[(right >>> 24) & 0xf] | + pc2bytes9[(right >>> 20) & 0xf] | pc2bytes10[(right >>> 16) & 0xf] | + pc2bytes11[(right >>> 12) & 0xf] | pc2bytes12[(right >>> 8) & 0xf] | + pc2bytes13[(right >>> 4) & 0xf]); + tmp = ((righttmp >>> 16) ^ lefttmp) & 0x0000ffff; + keys[n++] = lefttmp ^ tmp; + keys[n++] = righttmp ^ (tmp << 16); + } + } - return createDebug; + return keys; } -module.exports = setup; - - -/***/ }), - -/***/ 4703: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. + * Updates a single block (1 byte) using DES. The update will either + * encrypt or decrypt the block. + * + * @param keys the expanded keys. + * @param input the input block (an array of 32-bit words). + * @param output the updated output block. + * @param decrypt true to decrypt the block, false to encrypt it. */ +function _updateBlock(keys, input, output, decrypt) { + // set up loops for single or triple DES + var iterations = keys.length === 32 ? 3 : 9; + var looping; + if(iterations === 3) { + looping = decrypt ? [30, -2, -2] : [0, 32, 2]; + } else { + looping = (decrypt ? + [94, 62, -2, 32, 64, 2, 30, -2, -2] : + [0, 32, 2, 62, 30, -2, 64, 96, 2]); + } -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = __nccwpck_require__(31464); -} else { - module.exports = __nccwpck_require__(81254); -} + var tmp; + var left = input[0]; + var right = input[1]; -/***/ }), + // first each 64 bit chunk of the message must be permuted according to IP + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); -/***/ 81254: -/***/ ((module, exports, __nccwpck_require__) => { + tmp = ((left >>> 16) ^ right) & 0x0000ffff; + right ^= tmp; + left ^= (tmp << 16); -/** - * Module dependencies. - */ + tmp = ((right >>> 2) ^ left) & 0x33333333; + left ^= tmp; + right ^= (tmp << 2); -const tty = __nccwpck_require__(76224); -const util = __nccwpck_require__(73837); + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); -/** - * This is the Node.js implementation of `debug()`. - */ + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.destroy = util.deprecate( - () => {}, - 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' -); + // rotate left 1 bit + left = ((left << 1) | (left >>> 31)); + right = ((right << 1) | (right >>> 31)); -/** - * Colors. - */ + for(var j = 0; j < iterations; j += 3) { + var endloop = looping[j + 1]; + var loopinc = looping[j + 2]; -exports.colors = [6, 2, 3, 4, 5, 1]; + // now go through and perform the encryption or decryption + for(var i = looping[j]; i != endloop; i += loopinc) { + var right1 = right ^ keys[i]; + var right2 = ((right >>> 4) | (right << 28)) ^ keys[i + 1]; -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = __nccwpck_require__(54058); + // passing these bytes through the S selection functions + tmp = left; + left = right; + right = tmp ^ ( + spfunction2[(right1 >>> 24) & 0x3f] | + spfunction4[(right1 >>> 16) & 0x3f] | + spfunction6[(right1 >>> 8) & 0x3f] | + spfunction8[right1 & 0x3f] | + spfunction1[(right2 >>> 24) & 0x3f] | + spfunction3[(right2 >>> 16) & 0x3f] | + spfunction5[(right2 >>> 8) & 0x3f] | + spfunction7[right2 & 0x3f]); + } + // unreverse left and right + tmp = left; + left = right; + right = tmp; + } - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } -} catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} + // rotate right 1 bit + left = ((left >>> 1) | (left << 31)); + right = ((right >>> 1) | (right << 31)); -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ + // now perform IP-1, which is IP in the opposite direction + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } + tmp = ((right >>> 2) ^ left) & 0x33333333; + left ^= tmp; + right ^= (tmp << 2); - obj[prop] = val; - return obj; -}, {}); + tmp = ((left >>> 16) ^ right) & 0x0000ffff; + right ^= tmp; + left ^= (tmp << 16); -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); + output[0] = left; + output[1] = right; } /** - * Adds ANSI color escape codes if enabled. + * Deprecated. Instead, use: * - * @api public + * forge.cipher.createCipher('DES-', key); + * forge.cipher.createDecipher('DES-', key); + * + * Creates a deprecated DES cipher object. This object's mode will default to + * CBC (cipher-block-chaining). + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param options the options to use. + * key the symmetric key to use (64 or 192 bits). + * output the buffer to write to. + * decrypt true for decryption, false for encryption. + * mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. */ +function _createCipher(options) { + options = options || {}; + var mode = (options.mode || 'CBC').toUpperCase(); + var algorithm = 'DES-' + mode; -function formatArgs(args) { - const {namespace: name, useColors} = this; + var cipher; + if(options.decrypt) { + cipher = forge.cipher.createDecipher(algorithm, options.key); + } else { + cipher = forge.cipher.createCipher(algorithm, options.key); + } - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; + // backwards compatible start API + var start = cipher.start; + cipher.start = function(iv, options) { + // backwards compatibility: support second arg as output buffer + var output = null; + if(options instanceof forge.util.ByteBuffer) { + output = options; + options = {}; + } + options = options || {}; + options.output = output; + options.iv = iv; + start.call(cipher, options); + }; - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } + return cipher; } -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} -/** - * Invokes `util.format()` with the specified arguments and writes to stderr. - */ +/***/ }), -function log(...args) { - return process.stderr.write(util.format(...args) + '\n'); -} +/***/ 46906: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /** - * Save `namespaces`. + * JavaScript implementation of Ed25519. * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} - -/** - * Load `namespaces`. + * Copyright (c) 2017-2019 Digital Bazaar, Inc. * - * @return {String} returns the previously persisted debug modes - * @api private + * This implementation is based on the most excellent TweetNaCl which is + * in the public domain. Many thanks to its contributors: + * + * https://github.com/dchest/tweetnacl-js */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(30292); +__nccwpck_require__(87088); +__nccwpck_require__(89077); +__nccwpck_require__(46831); +var asn1Validator = __nccwpck_require__(97313); +var publicKeyValidator = asn1Validator.publicKeyValidator; +var privateKeyValidator = asn1Validator.privateKeyValidator; -function load() { - return process.env.DEBUG; +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; } -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. +var ByteBuffer = forge.util.ByteBuffer; +var NativeBuffer = typeof Buffer === 'undefined' ? Uint8Array : Buffer; + +/* + * Ed25519 algorithms, see RFC 8032: + * https://tools.ietf.org/html/rfc8032 */ +forge.pki = forge.pki || {}; +module.exports = forge.pki.ed25519 = forge.ed25519 = forge.ed25519 || {}; +var ed25519 = forge.ed25519; -function init(debug) { - debug.inspectOpts = {}; +ed25519.constants = {}; +ed25519.constants.PUBLIC_KEY_BYTE_LENGTH = 32; +ed25519.constants.PRIVATE_KEY_BYTE_LENGTH = 64; +ed25519.constants.SEED_BYTE_LENGTH = 32; +ed25519.constants.SIGN_BYTE_LENGTH = 64; +ed25519.constants.HASH_BYTE_LENGTH = 64; - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} +ed25519.generateKeyPair = function(options) { + options = options || {}; + var seed = options.seed; + if(seed === undefined) { + // generate seed + seed = forge.random.getBytesSync(ed25519.constants.SEED_BYTE_LENGTH); + } else if(typeof seed === 'string') { + if(seed.length !== ed25519.constants.SEED_BYTE_LENGTH) { + throw new TypeError( + '"seed" must be ' + ed25519.constants.SEED_BYTE_LENGTH + + ' bytes in length.'); + } + } else if(!(seed instanceof Uint8Array)) { + throw new TypeError( + '"seed" must be a node.js Buffer, Uint8Array, or a binary string.'); + } -module.exports = __nccwpck_require__(90454)(exports); + seed = messageToNativeBuffer({message: seed, encoding: 'binary'}); -const {formatters} = module.exports; + var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + var sk = new NativeBuffer(ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); + for(var i = 0; i < 32; ++i) { + sk[i] = seed[i]; + } + crypto_sign_keypair(pk, sk); + return {publicKey: pk, privateKey: sk}; +}; /** - * Map %o to `util.inspect()`, all on a single line. + * Converts a private key from a RFC8410 ASN.1 encoding. + * + * @param obj - The asn1 representation of a private key. + * + * @returns {Object} keyInfo - The key information. + * @returns {Buffer|Uint8Array} keyInfo.privateKeyBytes - 32 private key bytes. */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(str => str.trim()) - .join(' '); +ed25519.privateKeyFromAsn1 = function(obj) { + var capture = {}; + var errors = []; + var valid = forge.asn1.validate(obj, privateKeyValidator, capture, errors); + if(!valid) { + var error = new Error('Invalid Key.'); + error.errors = errors; + throw error; + } + var oid = forge.asn1.derToOid(capture.privateKeyOid); + var ed25519Oid = forge.oids.EdDSA25519; + if(oid !== ed25519Oid) { + throw new Error('Invalid OID "' + oid + '"; OID must be "' + + ed25519Oid + '".'); + } + var privateKey = capture.privateKey; + // manually extract the private key bytes from nested octet string, see FIXME: + // https://github.com/digitalbazaar/forge/blob/master/lib/asn1.js#L542 + var privateKeyBytes = messageToNativeBuffer({ + message: forge.asn1.fromDer(privateKey).value, + encoding: 'binary' + }); + // TODO: RFC8410 specifies a format for encoding the public key bytes along + // with the private key bytes. `publicKeyBytes` can be returned in the + // future. https://tools.ietf.org/html/rfc8410#section-10.3 + return {privateKeyBytes: privateKeyBytes}; }; /** - * Map %O to `util.inspect()`, allowing multiple lines if needed. + * Converts a public key from a RFC8410 ASN.1 encoding. + * + * @param obj - The asn1 representation of a public key. + * + * @return {Buffer|Uint8Array} - 32 public key bytes. */ - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); +ed25519.publicKeyFromAsn1 = function(obj) { + // get SubjectPublicKeyInfo + var capture = {}; + var errors = []; + var valid = forge.asn1.validate(obj, publicKeyValidator, capture, errors); + if(!valid) { + var error = new Error('Invalid Key.'); + error.errors = errors; + throw error; + } + var oid = forge.asn1.derToOid(capture.publicKeyOid); + var ed25519Oid = forge.oids.EdDSA25519; + if(oid !== ed25519Oid) { + throw new Error('Invalid OID "' + oid + '"; OID must be "' + + ed25519Oid + '".'); + } + var publicKeyBytes = capture.ed25519PublicKey; + if(publicKeyBytes.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { + throw new Error('Key length is invalid.'); + } + return messageToNativeBuffer({ + message: publicKeyBytes, + encoding: 'binary' + }); }; - -/***/ }), - -/***/ 85230: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Stream = (__nccwpck_require__(12781).Stream); -var util = __nccwpck_require__(73837); - -module.exports = DelayedStream; -function DelayedStream() { - this.source = null; - this.dataSize = 0; - this.maxDataSize = 1024 * 1024; - this.pauseStream = true; - - this._maxDataSizeExceeded = false; - this._released = false; - this._bufferedEvents = []; -} -util.inherits(DelayedStream, Stream); - -DelayedStream.create = function(source, options) { - var delayedStream = new this(); - +ed25519.publicKeyFromPrivateKey = function(options) { options = options || {}; - for (var option in options) { - delayedStream[option] = options[option]; + var privateKey = messageToNativeBuffer({ + message: options.privateKey, encoding: 'binary' + }); + if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.privateKey" must have a byte length of ' + + ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); } - delayedStream.source = source; - - var realEmit = source.emit; - source.emit = function() { - delayedStream._handleEmit(arguments); - return realEmit.apply(source, arguments); - }; - - source.on('error', function() {}); - if (delayedStream.pauseStream) { - source.pause(); + var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + for(var i = 0; i < pk.length; ++i) { + pk[i] = privateKey[32 + i]; } - - return delayedStream; + return pk; }; -Object.defineProperty(DelayedStream.prototype, 'readable', { - configurable: true, - enumerable: true, - get: function() { - return this.source.readable; +ed25519.sign = function(options) { + options = options || {}; + var msg = messageToNativeBuffer(options); + var privateKey = messageToNativeBuffer({ + message: options.privateKey, + encoding: 'binary' + }); + if(privateKey.length === ed25519.constants.SEED_BYTE_LENGTH) { + var keyPair = ed25519.generateKeyPair({seed: privateKey}); + privateKey = keyPair.privateKey; + } else if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.privateKey" must have a byte length of ' + + ed25519.constants.SEED_BYTE_LENGTH + ' or ' + + ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); } -}); -DelayedStream.prototype.setEncoding = function() { - return this.source.setEncoding.apply(this.source, arguments); -}; + var signedMsg = new NativeBuffer( + ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + crypto_sign(signedMsg, msg, msg.length, privateKey); -DelayedStream.prototype.resume = function() { - if (!this._released) { - this.release(); + var sig = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH); + for(var i = 0; i < sig.length; ++i) { + sig[i] = signedMsg[i]; } - - this.source.resume(); -}; - -DelayedStream.prototype.pause = function() { - this.source.pause(); -}; - -DelayedStream.prototype.release = function() { - this._released = true; - - this._bufferedEvents.forEach(function(args) { - this.emit.apply(this, args); - }.bind(this)); - this._bufferedEvents = []; -}; - -DelayedStream.prototype.pipe = function() { - var r = Stream.prototype.pipe.apply(this, arguments); - this.resume(); - return r; + return sig; }; -DelayedStream.prototype._handleEmit = function(args) { - if (this._released) { - this.emit.apply(this, args); - return; +ed25519.verify = function(options) { + options = options || {}; + var msg = messageToNativeBuffer(options); + if(options.signature === undefined) { + throw new TypeError( + '"options.signature" must be a node.js Buffer, a Uint8Array, a forge ' + + 'ByteBuffer, or a binary string.'); + } + var sig = messageToNativeBuffer({ + message: options.signature, + encoding: 'binary' + }); + if(sig.length !== ed25519.constants.SIGN_BYTE_LENGTH) { + throw new TypeError( + '"options.signature" must have a byte length of ' + + ed25519.constants.SIGN_BYTE_LENGTH); } - - if (args[0] === 'data') { - this.dataSize += args[1].length; - this._checkIfMaxDataSizeExceeded(); + var publicKey = messageToNativeBuffer({ + message: options.publicKey, + encoding: 'binary' + }); + if(publicKey.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.publicKey" must have a byte length of ' + + ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); } - this._bufferedEvents.push(args); -}; - -DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { - if (this._maxDataSizeExceeded) { - return; + var sm = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + var m = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + var i; + for(i = 0; i < ed25519.constants.SIGN_BYTE_LENGTH; ++i) { + sm[i] = sig[i]; } - - if (this.dataSize <= this.maxDataSize) { - return; + for(i = 0; i < msg.length; ++i) { + sm[i + ed25519.constants.SIGN_BYTE_LENGTH] = msg[i]; } - - this._maxDataSizeExceeded = true; - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.' - this.emit('error', new Error(message)); + return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0); }; +function messageToNativeBuffer(options) { + var message = options.message; + if(message instanceof Uint8Array || message instanceof NativeBuffer) { + return message; + } -/***/ }), - -/***/ 27439: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -var Buffer = (__nccwpck_require__(94078).Buffer); + var encoding = options.encoding; + if(message === undefined) { + if(options.md) { + // TODO: more rigorous validation that `md` is a MessageDigest + message = options.md.digest().getBytes(); + encoding = 'binary'; + } else { + throw new TypeError('"options.message" or "options.md" not specified.'); + } + } -var getParamBytesForAlg = __nccwpck_require__(55821); + if(typeof message === 'string' && !encoding) { + throw new TypeError('"options.encoding" must be "binary" or "utf8".'); + } -var MAX_OCTET = 0x80, - CLASS_UNIVERSAL = 0, - PRIMITIVE_BIT = 0x20, - TAG_SEQ = 0x10, - TAG_INT = 0x02, - ENCODED_TAG_SEQ = (TAG_SEQ | PRIMITIVE_BIT) | (CLASS_UNIVERSAL << 6), - ENCODED_TAG_INT = TAG_INT | (CLASS_UNIVERSAL << 6); + if(typeof message === 'string') { + if(typeof Buffer !== 'undefined') { + return Buffer.from(message, encoding); + } + message = new ByteBuffer(message, encoding); + } else if(!(message instanceof ByteBuffer)) { + throw new TypeError( + '"options.message" must be a node.js Buffer, a Uint8Array, a forge ' + + 'ByteBuffer, or a string with "options.encoding" specifying its ' + + 'encoding.'); + } -function base64Url(base64) { - return base64 - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); + // convert to native buffer + var buffer = new NativeBuffer(message.length()); + for(var i = 0; i < buffer.length; ++i) { + buffer[i] = message.at(i); + } + return buffer; } -function signatureAsBuffer(signature) { - if (Buffer.isBuffer(signature)) { - return signature; - } else if ('string' === typeof signature) { - return Buffer.from(signature, 'base64'); - } +var gf0 = gf(); +var gf1 = gf([1]); +var D = gf([ + 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, + 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]); +var D2 = gf([ + 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, + 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]); +var X = gf([ + 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, + 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]); +var Y = gf([ + 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, + 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]); +var L = new Float64Array([ + 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, + 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]); +var I = gf([ + 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, + 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]); - throw new TypeError('ECDSA signature must be a Base64 string or a Buffer'); +// TODO: update forge buffer implementation to use `Buffer` or `Uint8Array`, +// whichever is available, to improve performance +function sha512(msg, msgLen) { + // Note: `out` and `msg` are NativeBuffer + var md = forge.md.sha512.create(); + var buffer = new ByteBuffer(msg); + md.update(buffer.getBytes(msgLen), 'binary'); + var hash = md.digest().getBytes(); + if(typeof Buffer !== 'undefined') { + return Buffer.from(hash, 'binary'); + } + var out = new NativeBuffer(ed25519.constants.HASH_BYTE_LENGTH); + for(var i = 0; i < 64; ++i) { + out[i] = hash.charCodeAt(i); + } + return out; } -function derToJose(signature, alg) { - signature = signatureAsBuffer(signature); - var paramBytes = getParamBytesForAlg(alg); - - // the DER encoded param should at most be the param size, plus a padding - // zero, since due to being a signed integer - var maxEncodedParamLength = paramBytes + 1; +function crypto_sign_keypair(pk, sk) { + var p = [gf(), gf(), gf(), gf()]; + var i; - var inputLength = signature.length; + var d = sha512(sk, 32); + d[0] &= 248; + d[31] &= 127; + d[31] |= 64; - var offset = 0; - if (signature[offset++] !== ENCODED_TAG_SEQ) { - throw new Error('Could not find expected "seq"'); - } + scalarbase(p, d); + pack(pk, p); - var seqLength = signature[offset++]; - if (seqLength === (MAX_OCTET | 1)) { - seqLength = signature[offset++]; - } + for(i = 0; i < 32; ++i) { + sk[i + 32] = pk[i]; + } + return 0; +} - if (inputLength - offset < seqLength) { - throw new Error('"seq" specified length of "' + seqLength + '", only "' + (inputLength - offset) + '" remaining'); - } +// Note: difference from C - smlen returned, not passed as argument. +function crypto_sign(sm, m, n, sk) { + var i, j, x = new Float64Array(64); + var p = [gf(), gf(), gf(), gf()]; - if (signature[offset++] !== ENCODED_TAG_INT) { - throw new Error('Could not find expected "int" for "r"'); - } + var d = sha512(sk, 32); + d[0] &= 248; + d[31] &= 127; + d[31] |= 64; - var rLength = signature[offset++]; + var smlen = n + 64; + for(i = 0; i < n; ++i) { + sm[64 + i] = m[i]; + } + for(i = 0; i < 32; ++i) { + sm[32 + i] = d[32 + i]; + } - if (inputLength - offset - 2 < rLength) { - throw new Error('"r" specified length of "' + rLength + '", only "' + (inputLength - offset - 2) + '" available'); - } + var r = sha512(sm.subarray(32), n + 32); + reduce(r); + scalarbase(p, r); + pack(sm, p); - if (maxEncodedParamLength < rLength) { - throw new Error('"r" specified length of "' + rLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); - } + for(i = 32; i < 64; ++i) { + sm[i] = sk[i]; + } + var h = sha512(sm, n + 64); + reduce(h); - var rOffset = offset; - offset += rLength; + for(i = 32; i < 64; ++i) { + x[i] = 0; + } + for(i = 0; i < 32; ++i) { + x[i] = r[i]; + } + for(i = 0; i < 32; ++i) { + for(j = 0; j < 32; j++) { + x[i + j] += h[i] * d[j]; + } + } - if (signature[offset++] !== ENCODED_TAG_INT) { - throw new Error('Could not find expected "int" for "s"'); - } + modL(sm.subarray(32), x); + return smlen; +} - var sLength = signature[offset++]; +function crypto_sign_open(m, sm, n, pk) { + var i, mlen; + var t = new NativeBuffer(32); + var p = [gf(), gf(), gf(), gf()], + q = [gf(), gf(), gf(), gf()]; - if (inputLength - offset !== sLength) { - throw new Error('"s" specified length of "' + sLength + '", expected "' + (inputLength - offset) + '"'); - } + mlen = -1; + if(n < 64) { + return -1; + } - if (maxEncodedParamLength < sLength) { - throw new Error('"s" specified length of "' + sLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); - } + if(unpackneg(q, pk)) { + return -1; + } - var sOffset = offset; - offset += sLength; + for(i = 0; i < n; ++i) { + m[i] = sm[i]; + } + for(i = 0; i < 32; ++i) { + m[i + 32] = pk[i]; + } + var h = sha512(m, n); + reduce(h); + scalarmult(p, q, h); - if (offset !== inputLength) { - throw new Error('Expected to consume entire buffer, but "' + (inputLength - offset) + '" bytes remain'); - } + scalarbase(q, sm.subarray(32)); + add(p, q); + pack(t, p); - var rPadding = paramBytes - rLength, - sPadding = paramBytes - sLength; + n -= 64; + if(crypto_verify_32(sm, 0, t, 0)) { + for(i = 0; i < n; ++i) { + m[i] = 0; + } + return -1; + } - var dst = Buffer.allocUnsafe(rPadding + rLength + sPadding + sLength); + for(i = 0; i < n; ++i) { + m[i] = sm[i + 64]; + } + mlen = n; + return mlen; +} - for (offset = 0; offset < rPadding; ++offset) { - dst[offset] = 0; - } - signature.copy(dst, offset, rOffset + Math.max(-rPadding, 0), rOffset + rLength); +function modL(r, x) { + var carry, i, j, k; + for(i = 63; i >= 32; --i) { + carry = 0; + for(j = i - 32, k = i - 12; j < k; ++j) { + x[j] += carry - 16 * x[i] * L[j - (i - 32)]; + carry = (x[j] + 128) >> 8; + x[j] -= carry * 256; + } + x[j] += carry; + x[i] = 0; + } + carry = 0; + for(j = 0; j < 32; ++j) { + x[j] += carry - (x[31] >> 4) * L[j]; + carry = x[j] >> 8; + x[j] &= 255; + } + for(j = 0; j < 32; ++j) { + x[j] -= carry * L[j]; + } + for(i = 0; i < 32; ++i) { + x[i + 1] += x[i] >> 8; + r[i] = x[i] & 255; + } +} - offset = paramBytes; +function reduce(r) { + var x = new Float64Array(64); + for(var i = 0; i < 64; ++i) { + x[i] = r[i]; + r[i] = 0; + } + modL(r, x); +} - for (var o = offset; offset < o + sPadding; ++offset) { - dst[offset] = 0; - } - signature.copy(dst, offset, sOffset + Math.max(-sPadding, 0), sOffset + sLength); +function add(p, q) { + var a = gf(), b = gf(), c = gf(), + d = gf(), e = gf(), f = gf(), + g = gf(), h = gf(), t = gf(); - dst = dst.toString('base64'); - dst = base64Url(dst); + Z(a, p[1], p[0]); + Z(t, q[1], q[0]); + M(a, a, t); + A(b, p[0], p[1]); + A(t, q[0], q[1]); + M(b, b, t); + M(c, p[3], q[3]); + M(c, c, D2); + M(d, p[2], q[2]); + A(d, d, d); + Z(e, b, a); + Z(f, d, c); + A(g, d, c); + A(h, b, a); - return dst; + M(p[0], e, f); + M(p[1], h, g); + M(p[2], g, f); + M(p[3], e, h); } -function countPadding(buf, start, stop) { - var padding = 0; - while (start + padding < stop && buf[start + padding] === 0) { - ++padding; - } +function cswap(p, q, b) { + for(var i = 0; i < 4; ++i) { + sel25519(p[i], q[i], b); + } +} - var needsSign = buf[start + padding] >= MAX_OCTET; - if (needsSign) { - --padding; - } +function pack(r, p) { + var tx = gf(), ty = gf(), zi = gf(); + inv25519(zi, p[2]); + M(tx, p[0], zi); + M(ty, p[1], zi); + pack25519(r, ty); + r[31] ^= par25519(tx) << 7; +} - return padding; +function pack25519(o, n) { + var i, j, b; + var m = gf(), t = gf(); + for(i = 0; i < 16; ++i) { + t[i] = n[i]; + } + car25519(t); + car25519(t); + car25519(t); + for(j = 0; j < 2; ++j) { + m[0] = t[0] - 0xffed; + for(i = 1; i < 15; ++i) { + m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1); + m[i-1] &= 0xffff; + } + m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1); + b = (m[15] >> 16) & 1; + m[14] &= 0xffff; + sel25519(t, m, 1 - b); + } + for (i = 0; i < 16; i++) { + o[2 * i] = t[i] & 0xff; + o[2 * i + 1] = t[i] >> 8; + } } -function joseToDer(signature, alg) { - signature = signatureAsBuffer(signature); - var paramBytes = getParamBytesForAlg(alg); +function unpackneg(r, p) { + var t = gf(), chk = gf(), num = gf(), + den = gf(), den2 = gf(), den4 = gf(), + den6 = gf(); - var signatureBytes = signature.length; - if (signatureBytes !== paramBytes * 2) { - throw new TypeError('"' + alg + '" signatures must be "' + paramBytes * 2 + '" bytes, saw "' + signatureBytes + '"'); - } + set25519(r[2], gf1); + unpack25519(r[1], p); + S(num, r[1]); + M(den, num, D); + Z(num, num, r[2]); + A(den, r[2], den); - var rPadding = countPadding(signature, 0, paramBytes); - var sPadding = countPadding(signature, paramBytes, signature.length); - var rLength = paramBytes - rPadding; - var sLength = paramBytes - sPadding; + S(den2, den); + S(den4, den2); + M(den6, den4, den2); + M(t, den6, num); + M(t, t, den); - var rsBytes = 1 + 1 + rLength + 1 + 1 + sLength; + pow2523(t, t); + M(t, t, num); + M(t, t, den); + M(t, t, den); + M(r[0], t, den); - var shortLength = rsBytes < MAX_OCTET; + S(chk, r[0]); + M(chk, chk, den); + if(neq25519(chk, num)) { + M(r[0], r[0], I); + } - var dst = Buffer.allocUnsafe((shortLength ? 2 : 3) + rsBytes); + S(chk, r[0]); + M(chk, chk, den); + if(neq25519(chk, num)) { + return -1; + } - var offset = 0; - dst[offset++] = ENCODED_TAG_SEQ; - if (shortLength) { - // Bit 8 has value "0" - // bits 7-1 give the length. - dst[offset++] = rsBytes; - } else { - // Bit 8 of first octet has value "1" - // bits 7-1 give the number of additional length octets. - dst[offset++] = MAX_OCTET | 1; - // length, base 256 - dst[offset++] = rsBytes & 0xff; - } - dst[offset++] = ENCODED_TAG_INT; - dst[offset++] = rLength; - if (rPadding < 0) { - dst[offset++] = 0; - offset += signature.copy(dst, offset, 0, paramBytes); - } else { - offset += signature.copy(dst, offset, rPadding, paramBytes); - } - dst[offset++] = ENCODED_TAG_INT; - dst[offset++] = sLength; - if (sPadding < 0) { - dst[offset++] = 0; - signature.copy(dst, offset, paramBytes); - } else { - signature.copy(dst, offset, paramBytes + sPadding); - } + if(par25519(r[0]) === (p[31] >> 7)) { + Z(r[0], gf0, r[0]); + } - return dst; + M(r[3], r[0], r[1]); + return 0; } -module.exports = { - derToJose: derToJose, - joseToDer: joseToDer -}; - - -/***/ }), - -/***/ 55821: -/***/ ((module) => { - -"use strict"; - - -function getParamSize(keySize) { - var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); - return result; +function unpack25519(o, n) { + var i; + for(i = 0; i < 16; ++i) { + o[i] = n[2 * i] + (n[2 * i + 1] << 8); + } + o[15] &= 0x7fff; } -var paramBytesForAlg = { - ES256: getParamSize(256), - ES384: getParamSize(384), - ES512: getParamSize(521) -}; - -function getParamBytesForAlg(alg) { - var paramBytes = paramBytesForAlg[alg]; - if (paramBytes) { - return paramBytes; - } - - throw new Error('Unknown algorithm "' + alg + '"'); +function pow2523(o, i) { + var c = gf(); + var a; + for(a = 0; a < 16; ++a) { + c[a] = i[a]; + } + for(a = 250; a >= 0; --a) { + S(c, c); + if(a !== 1) { + M(c, c, i); + } + } + for(a = 0; a < 16; ++a) { + o[a] = c[a]; + } } -module.exports = getParamBytesForAlg; - - -/***/ }), - -/***/ 98035: -/***/ ((module) => { - -"use strict"; - - -var hasOwn = Object.prototype.hasOwnProperty; -var toStr = Object.prototype.toString; -var defineProperty = Object.defineProperty; -var gOPD = Object.getOwnPropertyDescriptor; - -var isArray = function isArray(arr) { - if (typeof Array.isArray === 'function') { - return Array.isArray(arr); - } +function neq25519(a, b) { + var c = new NativeBuffer(32); + var d = new NativeBuffer(32); + pack25519(c, a); + pack25519(d, b); + return crypto_verify_32(c, 0, d, 0); +} - return toStr.call(arr) === '[object Array]'; -}; +function crypto_verify_32(x, xi, y, yi) { + return vn(x, xi, y, yi, 32); +} -var isPlainObject = function isPlainObject(obj) { - if (!obj || toStr.call(obj) !== '[object Object]') { - return false; - } +function vn(x, xi, y, yi, n) { + var i, d = 0; + for(i = 0; i < n; ++i) { + d |= x[xi + i] ^ y[yi + i]; + } + return (1 & ((d - 1) >>> 8)) - 1; +} - var hasOwnConstructor = hasOwn.call(obj, 'constructor'); - var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); - // Not own constructor property must be Object - if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { - return false; - } +function par25519(a) { + var d = new NativeBuffer(32); + pack25519(d, a); + return d[0] & 1; +} - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - var key; - for (key in obj) { /**/ } +function scalarmult(p, q, s) { + var b, i; + set25519(p[0], gf0); + set25519(p[1], gf1); + set25519(p[2], gf1); + set25519(p[3], gf0); + for(i = 255; i >= 0; --i) { + b = (s[(i / 8)|0] >> (i & 7)) & 1; + cswap(p, q, b); + add(q, p); + add(p, p); + cswap(p, q, b); + } +} - return typeof key === 'undefined' || hasOwn.call(obj, key); -}; +function scalarbase(p, s) { + var q = [gf(), gf(), gf(), gf()]; + set25519(q[0], X); + set25519(q[1], Y); + set25519(q[2], gf1); + M(q[3], X, Y); + scalarmult(p, q, s); +} -// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target -var setProperty = function setProperty(target, options) { - if (defineProperty && options.name === '__proto__') { - defineProperty(target, options.name, { - enumerable: true, - configurable: true, - value: options.newValue, - writable: true - }); - } else { - target[options.name] = options.newValue; - } -}; +function set25519(r, a) { + var i; + for(i = 0; i < 16; i++) { + r[i] = a[i] | 0; + } +} -// Return undefined instead of __proto__ if '__proto__' is not an own property -var getProperty = function getProperty(obj, name) { - if (name === '__proto__') { - if (!hasOwn.call(obj, name)) { - return void 0; - } else if (gOPD) { - // In early versions of node, obj['__proto__'] is buggy when obj has - // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. - return gOPD(obj, name).value; - } - } +function inv25519(o, i) { + var c = gf(); + var a; + for(a = 0; a < 16; ++a) { + c[a] = i[a]; + } + for(a = 253; a >= 0; --a) { + S(c, c); + if(a !== 2 && a !== 4) { + M(c, c, i); + } + } + for(a = 0; a < 16; ++a) { + o[a] = c[a]; + } +} - return obj[name]; -}; +function car25519(o) { + var i, v, c = 1; + for(i = 0; i < 16; ++i) { + v = o[i] + c + 65535; + c = Math.floor(v / 65536); + o[i] = v - c * 65536; + } + o[0] += c - 1 + 37 * (c - 1); +} -module.exports = function extend() { - var options, name, src, copy, copyIsArray, clone; - var target = arguments[0]; - var i = 1; - var length = arguments.length; - var deep = false; +function sel25519(p, q, b) { + var t, c = ~(b - 1); + for(var i = 0; i < 16; ++i) { + t = c & (p[i] ^ q[i]); + p[i] ^= t; + q[i] ^= t; + } +} - // Handle a deep copy situation - if (typeof target === 'boolean') { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - if (target == null || (typeof target !== 'object' && typeof target !== 'function')) { - target = {}; - } +function gf(init) { + var i, r = new Float64Array(16); + if(init) { + for(i = 0; i < init.length; ++i) { + r[i] = init[i]; + } + } + return r; +} - for (; i < length; ++i) { - options = arguments[i]; - // Only deal with non-null/undefined values - if (options != null) { - // Extend the base object - for (name in options) { - src = getProperty(target, name); - copy = getProperty(options, name); +function A(o, a, b) { + for(var i = 0; i < 16; ++i) { + o[i] = a[i] + b[i]; + } +} - // Prevent never-ending loop - if (target !== copy) { - // Recurse if we're merging plain objects or arrays - if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) { - if (copyIsArray) { - copyIsArray = false; - clone = src && isArray(src) ? src : []; - } else { - clone = src && isPlainObject(src) ? src : {}; - } +function Z(o, a, b) { + for(var i = 0; i < 16; ++i) { + o[i] = a[i] - b[i]; + } +} - // Never move original objects, clone them - setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); +function S(o, a) { + M(o, a, a); +} - // Don't bring in undefined values - } else if (typeof copy !== 'undefined') { - setProperty(target, { name: name, newValue: copy }); - } - } - } - } - } +function M(o, a, b) { + var v, c, + t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0, + t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0, + t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0, + t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0, + b0 = b[0], + b1 = b[1], + b2 = b[2], + b3 = b[3], + b4 = b[4], + b5 = b[5], + b6 = b[6], + b7 = b[7], + b8 = b[8], + b9 = b[9], + b10 = b[10], + b11 = b[11], + b12 = b[12], + b13 = b[13], + b14 = b[14], + b15 = b[15]; - // Return the modified object - return target; -}; + v = a[0]; + t0 += v * b0; + t1 += v * b1; + t2 += v * b2; + t3 += v * b3; + t4 += v * b4; + t5 += v * b5; + t6 += v * b6; + t7 += v * b7; + t8 += v * b8; + t9 += v * b9; + t10 += v * b10; + t11 += v * b11; + t12 += v * b12; + t13 += v * b13; + t14 += v * b14; + t15 += v * b15; + v = a[1]; + t1 += v * b0; + t2 += v * b1; + t3 += v * b2; + t4 += v * b3; + t5 += v * b4; + t6 += v * b5; + t7 += v * b6; + t8 += v * b7; + t9 += v * b8; + t10 += v * b9; + t11 += v * b10; + t12 += v * b11; + t13 += v * b12; + t14 += v * b13; + t15 += v * b14; + t16 += v * b15; + v = a[2]; + t2 += v * b0; + t3 += v * b1; + t4 += v * b2; + t5 += v * b3; + t6 += v * b4; + t7 += v * b5; + t8 += v * b6; + t9 += v * b7; + t10 += v * b8; + t11 += v * b9; + t12 += v * b10; + t13 += v * b11; + t14 += v * b12; + t15 += v * b13; + t16 += v * b14; + t17 += v * b15; + v = a[3]; + t3 += v * b0; + t4 += v * b1; + t5 += v * b2; + t6 += v * b3; + t7 += v * b4; + t8 += v * b5; + t9 += v * b6; + t10 += v * b7; + t11 += v * b8; + t12 += v * b9; + t13 += v * b10; + t14 += v * b11; + t15 += v * b12; + t16 += v * b13; + t17 += v * b14; + t18 += v * b15; + v = a[4]; + t4 += v * b0; + t5 += v * b1; + t6 += v * b2; + t7 += v * b3; + t8 += v * b4; + t9 += v * b5; + t10 += v * b6; + t11 += v * b7; + t12 += v * b8; + t13 += v * b9; + t14 += v * b10; + t15 += v * b11; + t16 += v * b12; + t17 += v * b13; + t18 += v * b14; + t19 += v * b15; + v = a[5]; + t5 += v * b0; + t6 += v * b1; + t7 += v * b2; + t8 += v * b3; + t9 += v * b4; + t10 += v * b5; + t11 += v * b6; + t12 += v * b7; + t13 += v * b8; + t14 += v * b9; + t15 += v * b10; + t16 += v * b11; + t17 += v * b12; + t18 += v * b13; + t19 += v * b14; + t20 += v * b15; + v = a[6]; + t6 += v * b0; + t7 += v * b1; + t8 += v * b2; + t9 += v * b3; + t10 += v * b4; + t11 += v * b5; + t12 += v * b6; + t13 += v * b7; + t14 += v * b8; + t15 += v * b9; + t16 += v * b10; + t17 += v * b11; + t18 += v * b12; + t19 += v * b13; + t20 += v * b14; + t21 += v * b15; + v = a[7]; + t7 += v * b0; + t8 += v * b1; + t9 += v * b2; + t10 += v * b3; + t11 += v * b4; + t12 += v * b5; + t13 += v * b6; + t14 += v * b7; + t15 += v * b8; + t16 += v * b9; + t17 += v * b10; + t18 += v * b11; + t19 += v * b12; + t20 += v * b13; + t21 += v * b14; + t22 += v * b15; + v = a[8]; + t8 += v * b0; + t9 += v * b1; + t10 += v * b2; + t11 += v * b3; + t12 += v * b4; + t13 += v * b5; + t14 += v * b6; + t15 += v * b7; + t16 += v * b8; + t17 += v * b9; + t18 += v * b10; + t19 += v * b11; + t20 += v * b12; + t21 += v * b13; + t22 += v * b14; + t23 += v * b15; + v = a[9]; + t9 += v * b0; + t10 += v * b1; + t11 += v * b2; + t12 += v * b3; + t13 += v * b4; + t14 += v * b5; + t15 += v * b6; + t16 += v * b7; + t17 += v * b8; + t18 += v * b9; + t19 += v * b10; + t20 += v * b11; + t21 += v * b12; + t22 += v * b13; + t23 += v * b14; + t24 += v * b15; + v = a[10]; + t10 += v * b0; + t11 += v * b1; + t12 += v * b2; + t13 += v * b3; + t14 += v * b4; + t15 += v * b5; + t16 += v * b6; + t17 += v * b7; + t18 += v * b8; + t19 += v * b9; + t20 += v * b10; + t21 += v * b11; + t22 += v * b12; + t23 += v * b13; + t24 += v * b14; + t25 += v * b15; + v = a[11]; + t11 += v * b0; + t12 += v * b1; + t13 += v * b2; + t14 += v * b3; + t15 += v * b4; + t16 += v * b5; + t17 += v * b6; + t18 += v * b7; + t19 += v * b8; + t20 += v * b9; + t21 += v * b10; + t22 += v * b11; + t23 += v * b12; + t24 += v * b13; + t25 += v * b14; + t26 += v * b15; + v = a[12]; + t12 += v * b0; + t13 += v * b1; + t14 += v * b2; + t15 += v * b3; + t16 += v * b4; + t17 += v * b5; + t18 += v * b6; + t19 += v * b7; + t20 += v * b8; + t21 += v * b9; + t22 += v * b10; + t23 += v * b11; + t24 += v * b12; + t25 += v * b13; + t26 += v * b14; + t27 += v * b15; + v = a[13]; + t13 += v * b0; + t14 += v * b1; + t15 += v * b2; + t16 += v * b3; + t17 += v * b4; + t18 += v * b5; + t19 += v * b6; + t20 += v * b7; + t21 += v * b8; + t22 += v * b9; + t23 += v * b10; + t24 += v * b11; + t25 += v * b12; + t26 += v * b13; + t27 += v * b14; + t28 += v * b15; + v = a[14]; + t14 += v * b0; + t15 += v * b1; + t16 += v * b2; + t17 += v * b3; + t18 += v * b4; + t19 += v * b5; + t20 += v * b6; + t21 += v * b7; + t22 += v * b8; + t23 += v * b9; + t24 += v * b10; + t25 += v * b11; + t26 += v * b12; + t27 += v * b13; + t28 += v * b14; + t29 += v * b15; + v = a[15]; + t15 += v * b0; + t16 += v * b1; + t17 += v * b2; + t18 += v * b3; + t19 += v * b4; + t20 += v * b5; + t21 += v * b6; + t22 += v * b7; + t23 += v * b8; + t24 += v * b9; + t25 += v * b10; + t26 += v * b11; + t27 += v * b12; + t28 += v * b13; + t29 += v * b14; + t30 += v * b15; + t0 += 38 * t16; + t1 += 38 * t17; + t2 += 38 * t18; + t3 += 38 * t19; + t4 += 38 * t20; + t5 += 38 * t21; + t6 += 38 * t22; + t7 += 38 * t23; + t8 += 38 * t24; + t9 += 38 * t25; + t10 += 38 * t26; + t11 += 38 * t27; + t12 += 38 * t28; + t13 += 38 * t29; + t14 += 38 * t30; + // t15 left as is -/***/ }), + // first car + c = 1; + v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; + v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; + v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; + v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; + v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; + v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; + v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; + v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; + v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; + v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; + v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; + v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; + v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; + v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; + v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; + v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; + t0 += c-1 + 37 * (c-1); -/***/ 30665: -/***/ (function() { + // second car + c = 1; + v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; + v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; + v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; + v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; + v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; + v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; + v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; + v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; + v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; + v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; + v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; + v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; + v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; + v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; + v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; + v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; + t0 += c-1 + 37 * (c-1); -(function(scope) {'use strict'; -function B(r,e){var f;return r instanceof Buffer?f=r:f=Buffer.from(r.buffer,r.byteOffset,r.byteLength),f.toString(e)}var w=function(r){return Buffer.from(r)};function h(r){for(var e=0,f=Math.min(256*256,r.length+1),n=new Uint16Array(f),i=[],o=0;;){var t=e=f-1){var s=n.subarray(0,o),m=s;if(i.push(String.fromCharCode.apply(null,m)),!t)return i.join("");r=r.subarray(e),e=0,o=0}var a=r[e++];if((a&128)===0)n[o++]=a;else if((a&224)===192){var d=r[e++]&63;n[o++]=(a&31)<<6|d}else if((a&240)===224){var d=r[e++]&63,l=r[e++]&63;n[o++]=(a&31)<<12|d<<6|l}else if((a&248)===240){var d=r[e++]&63,l=r[e++]&63,R=r[e++]&63,c=(a&7)<<18|d<<12|l<<6|R;c>65535&&(c-=65536,n[o++]=c>>>10&1023|55296,c=56320|c&1023),n[o++]=c}}}function F(r){for(var e=0,f=r.length,n=0,i=Math.max(32,f+(f>>>1)+7),o=new Uint8Array(i>>>3<<3);e=55296&&t<=56319){if(e=55296&&t<=56319)continue}if(n+4>o.length){i+=8,i*=1+e/r.length*2,i=i>>>3<<3;var m=new Uint8Array(i);m.set(o),o=m}if((t&4294967168)===0){o[n++]=t;continue}else if((t&4294965248)===0)o[n++]=t>>>6&31|192;else if((t&4294901760)===0)o[n++]=t>>>12&15|224,o[n++]=t>>>6&63|128;else if((t&4292870144)===0)o[n++]=t>>>18&7|240,o[n++]=t>>>12&63|128,o[n++]=t>>>6&63|128;else continue;o[n++]=t&63|128}return o.slice?o.slice(0,n):o.subarray(0,n)}var u="Failed to ",p=function(r,e,f){if(r)throw new Error("".concat(u).concat(e,": the '").concat(f,"' option is unsupported."))};var x=typeof Buffer=="function"&&Buffer.from;var A=x?w:F;function v(){this.encoding="utf-8"}v.prototype.encode=function(r,e){return p(e&&e.stream,"encode","stream"),A(r)};function U(r){var e;try{var f=new Blob([r],{type:"text/plain;charset=UTF-8"});e=URL.createObjectURL(f);var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}finally{e&&URL.revokeObjectURL(e)}}var O=!x&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",S=["utf-8","utf8","unicode-1-1-utf-8"],T=h;x?T=B:O&&(T=function(r){try{return U(r)}catch(e){return h(r)}});var y="construct 'TextDecoder'",E="".concat(u," ").concat(y,": the ");function g(r,e){p(e&&e.fatal,y,"fatal"),r=r||"utf-8";var f;if(x?f=Buffer.isEncoding(r):f=S.indexOf(r.toLowerCase())!==-1,!f)throw new RangeError("".concat(E," encoding label provided ('").concat(r,"') is invalid."));this.encoding=r,this.fatal=!1,this.ignoreBOM=!1}g.prototype.decode=function(r,e){p(e&&e.stream,"decode","stream");var f;return r instanceof Uint8Array?f=r:r.buffer instanceof ArrayBuffer?f=new Uint8Array(r.buffer):f=new Uint8Array(r),T(f,this.encoding)};scope.TextEncoder=scope.TextEncoder||v;scope.TextDecoder=scope.TextDecoder||g; -}(typeof window !== 'undefined' ? window : (typeof global !== 'undefined' ? global : this))); + o[ 0] = t0; + o[ 1] = t1; + o[ 2] = t2; + o[ 3] = t3; + o[ 4] = t4; + o[ 5] = t5; + o[ 6] = t6; + o[ 7] = t7; + o[ 8] = t8; + o[ 9] = t9; + o[10] = t10; + o[11] = t11; + o[12] = t12; + o[13] = t13; + o[14] = t14; + o[15] = t15; +} /***/ }), -/***/ 88367: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var debug; +/***/ 40080: +/***/ ((module) => { -module.exports = function () { - if (!debug) { - try { - /* eslint global-require: off */ - debug = __nccwpck_require__(4703)("follow-redirects"); - } - catch (error) { /* */ } - if (typeof debug !== "function") { - debug = function () { /* */ }; - } +/** + * Node.js module for Forge. + * + * @author Dave Longley + * + * Copyright 2011-2016 Digital Bazaar, Inc. + */ +module.exports = { + // default options + options: { + usePureJavaScript: false } - debug.apply(null, arguments); }; /***/ }), -/***/ 24214: +/***/ 45868: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var url = __nccwpck_require__(57310); -var URL = url.URL; -var http = __nccwpck_require__(13685); -var https = __nccwpck_require__(95687); -var Writable = (__nccwpck_require__(12781).Writable); -var assert = __nccwpck_require__(39491); -var debug = __nccwpck_require__(88367); - -// Create handlers that pass events from native requests -var events = ["abort", "aborted", "connect", "error", "socket", "timeout"]; -var eventHandlers = Object.create(null); -events.forEach(function (event) { - eventHandlers[event] = function (arg1, arg2, arg3) { - this._redirectable.emit(event, arg1, arg2, arg3); - }; -}); +/** + * Hash-based Message Authentication Code implementation. Requires a message + * digest object that can be obtained, for example, from forge.md.sha1 or + * forge.md.md5. + * + * @author Dave Longley + * + * Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(5454); +__nccwpck_require__(46831); -var InvalidUrlError = createErrorType( - "ERR_INVALID_URL", - "Invalid URL", - TypeError -); -// Error types with codes -var RedirectionError = createErrorType( - "ERR_FR_REDIRECTION_FAILURE", - "Redirected request failed" -); -var TooManyRedirectsError = createErrorType( - "ERR_FR_TOO_MANY_REDIRECTS", - "Maximum number of redirects exceeded" -); -var MaxBodyLengthExceededError = createErrorType( - "ERR_FR_MAX_BODY_LENGTH_EXCEEDED", - "Request body larger than maxBodyLength limit" -); -var WriteAfterEndError = createErrorType( - "ERR_STREAM_WRITE_AFTER_END", - "write after end" -); +/* HMAC API */ +var hmac = module.exports = forge.hmac = forge.hmac || {}; -// An HTTP(S) request that can be redirected -function RedirectableRequest(options, responseCallback) { - // Initialize the request - Writable.call(this); - this._sanitizeOptions(options); - this._options = options; - this._ended = false; - this._ending = false; - this._redirectCount = 0; - this._redirects = []; - this._requestBodyLength = 0; - this._requestBodyBuffers = []; - - // Attach a callback if passed - if (responseCallback) { - this.on("response", responseCallback); - } - - // React to responses of native requests - var self = this; - this._onNativeResponse = function (response) { - self._processResponse(response); - }; +/** + * Creates an HMAC object that uses the given message digest object. + * + * @return an HMAC object. + */ +hmac.create = function() { + // the hmac key to use + var _key = null; - // Perform the first request - this._performRequest(); -} -RedirectableRequest.prototype = Object.create(Writable.prototype); + // the message digest to use + var _md = null; -RedirectableRequest.prototype.abort = function () { - abortRequest(this._currentRequest); - this.emit("abort"); -}; + // the inner padding + var _ipadding = null; -// Writes buffered data to the current native request -RedirectableRequest.prototype.write = function (data, encoding, callback) { - // Writing is not allowed if end has been called - if (this._ending) { - throw new WriteAfterEndError(); - } + // the outer padding + var _opadding = null; - // Validate input and shift parameters if necessary - if (!isString(data) && !isBuffer(data)) { - throw new TypeError("data should be a string, Buffer or Uint8Array"); - } - if (isFunction(encoding)) { - callback = encoding; - encoding = null; - } + // hmac context + var ctx = {}; - // Ignore empty buffers, since writing them doesn't invoke the callback - // https://github.com/nodejs/node/issues/22066 - if (data.length === 0) { - if (callback) { - callback(); + /** + * Starts or restarts the HMAC with the given key and message digest. + * + * @param md the message digest to use, null to reuse the previous one, + * a string to use builtin 'sha1', 'md5', 'sha256'. + * @param key the key to use as a string, array of bytes, byte buffer, + * or null to reuse the previous key. + */ + ctx.start = function(md, key) { + if(md !== null) { + if(typeof md === 'string') { + // create builtin message digest + md = md.toLowerCase(); + if(md in forge.md.algorithms) { + _md = forge.md.algorithms[md].create(); + } else { + throw new Error('Unknown hash algorithm "' + md + '"'); + } + } else { + // store message digest + _md = md; + } } - return; - } - // Only write when we don't exceed the maximum body length - if (this._requestBodyLength + data.length <= this._options.maxBodyLength) { - this._requestBodyLength += data.length; - this._requestBodyBuffers.push({ data: data, encoding: encoding }); - this._currentRequest.write(data, encoding, callback); - } - // Error when we exceed the maximum body length - else { - this.emit("error", new MaxBodyLengthExceededError()); - this.abort(); - } -}; - -// Ends the current native request -RedirectableRequest.prototype.end = function (data, encoding, callback) { - // Shift parameters if necessary - if (isFunction(data)) { - callback = data; - data = encoding = null; - } - else if (isFunction(encoding)) { - callback = encoding; - encoding = null; - } - - // Write data if needed and end - if (!data) { - this._ended = this._ending = true; - this._currentRequest.end(null, null, callback); - } - else { - var self = this; - var currentRequest = this._currentRequest; - this.write(data, encoding, function () { - self._ended = true; - currentRequest.end(null, null, callback); - }); - this._ending = true; - } -}; - -// Sets a header value on the current native request -RedirectableRequest.prototype.setHeader = function (name, value) { - this._options.headers[name] = value; - this._currentRequest.setHeader(name, value); -}; - -// Clears a header value on the current native request -RedirectableRequest.prototype.removeHeader = function (name) { - delete this._options.headers[name]; - this._currentRequest.removeHeader(name); -}; -// Global timeout for all underlying requests -RedirectableRequest.prototype.setTimeout = function (msecs, callback) { - var self = this; + if(key === null) { + // reuse previous key + key = _key; + } else { + if(typeof key === 'string') { + // convert string into byte buffer + key = forge.util.createBuffer(key); + } else if(forge.util.isArray(key)) { + // convert byte array into byte buffer + var tmp = key; + key = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + key.putByte(tmp[i]); + } + } - // Destroys the socket on timeout - function destroyOnTimeout(socket) { - socket.setTimeout(msecs); - socket.removeListener("timeout", socket.destroy); - socket.addListener("timeout", socket.destroy); - } + // if key is longer than blocksize, hash it + var keylen = key.length(); + if(keylen > _md.blockLength) { + _md.start(); + _md.update(key.bytes()); + key = _md.digest(); + } - // Sets up a timer to trigger a timeout event - function startTimer(socket) { - if (self._timeout) { - clearTimeout(self._timeout); - } - self._timeout = setTimeout(function () { - self.emit("timeout"); - clearTimer(); - }, msecs); - destroyOnTimeout(socket); - } + // mix key into inner and outer padding + // ipadding = [0x36 * blocksize] ^ key + // opadding = [0x5C * blocksize] ^ key + _ipadding = forge.util.createBuffer(); + _opadding = forge.util.createBuffer(); + keylen = key.length(); + for(var i = 0; i < keylen; ++i) { + var tmp = key.at(i); + _ipadding.putByte(0x36 ^ tmp); + _opadding.putByte(0x5C ^ tmp); + } - // Stops a timeout from triggering - function clearTimer() { - // Clear the timeout - if (self._timeout) { - clearTimeout(self._timeout); - self._timeout = null; + // if key is shorter than blocksize, add additional padding + if(keylen < _md.blockLength) { + var tmp = _md.blockLength - keylen; + for(var i = 0; i < tmp; ++i) { + _ipadding.putByte(0x36); + _opadding.putByte(0x5C); + } + } + _key = key; + _ipadding = _ipadding.bytes(); + _opadding = _opadding.bytes(); } - // Clean up all attached listeners - self.removeListener("abort", clearTimer); - self.removeListener("error", clearTimer); - self.removeListener("response", clearTimer); - if (callback) { - self.removeListener("timeout", callback); - } - if (!self.socket) { - self._currentRequest.removeListener("socket", startTimer); - } - } + // digest is done like so: hash(opadding | hash(ipadding | message)) - // Attach callback if passed - if (callback) { - this.on("timeout", callback); - } + // prepare to do inner hash + // hash(ipadding | message) + _md.start(); + _md.update(_ipadding); + }; - // Start the timer if or when the socket is opened - if (this.socket) { - startTimer(this.socket); - } - else { - this._currentRequest.once("socket", startTimer); - } + /** + * Updates the HMAC with the given message bytes. + * + * @param bytes the bytes to update with. + */ + ctx.update = function(bytes) { + _md.update(bytes); + }; - // Clean up on events - this.on("socket", destroyOnTimeout); - this.on("abort", clearTimer); - this.on("error", clearTimer); - this.on("response", clearTimer); + /** + * Produces the Message Authentication Code (MAC). + * + * @return a byte buffer containing the digest value. + */ + ctx.getMac = function() { + // digest is done like so: hash(opadding | hash(ipadding | message)) + // here we do the outer hashing + var inner = _md.digest().bytes(); + _md.start(); + _md.update(_opadding); + _md.update(inner); + return _md.digest(); + }; + // alias for getMac + ctx.digest = ctx.getMac; - return this; + return ctx; }; -// Proxy all other public ClientRequest methods -[ - "flushHeaders", "getHeader", - "setNoDelay", "setSocketKeepAlive", -].forEach(function (method) { - RedirectableRequest.prototype[method] = function (a, b) { - return this._currentRequest[method](a, b); - }; -}); - -// Proxy all public ClientRequest properties -["aborted", "connection", "socket"].forEach(function (property) { - Object.defineProperty(RedirectableRequest.prototype, property, { - get: function () { return this._currentRequest[property]; }, - }); -}); -RedirectableRequest.prototype._sanitizeOptions = function (options) { - // Ensure headers are always present - if (!options.headers) { - options.headers = {}; - } +/***/ }), - // Since http.request treats host as an alias of hostname, - // but the url module interprets host as hostname plus port, - // eliminate the host property to avoid confusion. - if (options.host) { - // Use hostname if set, because it has precedence - if (!options.hostname) { - options.hostname = options.host; - } - delete options.host; - } +/***/ 58575: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // Complete the URL object when necessary - if (!options.pathname && options.path) { - var searchPos = options.path.indexOf("?"); - if (searchPos < 0) { - options.pathname = options.path; - } - else { - options.pathname = options.path.substring(0, searchPos); - options.search = options.path.substring(searchPos); - } - } -}; +/** + * Node.js module for Forge. + * + * @author Dave Longley + * + * Copyright 2011-2016 Digital Bazaar, Inc. + */ +module.exports = __nccwpck_require__(40080); +__nccwpck_require__(12004); +__nccwpck_require__(12730); +__nccwpck_require__(87878); +__nccwpck_require__(24824); +__nccwpck_require__(42499); +__nccwpck_require__(46906); +__nccwpck_require__(45868); +__nccwpck_require__(33604); +__nccwpck_require__(51505); +__nccwpck_require__(83543); +__nccwpck_require__(19662); +__nccwpck_require__(72282); +__nccwpck_require__(21117); +__nccwpck_require__(32905); +__nccwpck_require__(43059); +__nccwpck_require__(39907); +__nccwpck_require__(63795); +__nccwpck_require__(37240); +__nccwpck_require__(9402); +__nccwpck_require__(17621); +__nccwpck_require__(87088); +__nccwpck_require__(18032); +__nccwpck_require__(31841); +__nccwpck_require__(60222); +__nccwpck_require__(46831); + + +/***/ }), + +/***/ 30292: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +// Copyright (c) 2005 Tom Wu +// All Rights Reserved. +// See "LICENSE" for details. -// Executes the next native request (initial or redirect) -RedirectableRequest.prototype._performRequest = function () { - // Load the native protocol - var protocol = this._options.protocol; - var nativeProtocol = this._options.nativeProtocols[protocol]; - if (!nativeProtocol) { - this.emit("error", new TypeError("Unsupported protocol " + protocol)); - return; - } +// Basic JavaScript BN library - subset useful for RSA encryption. - // If specified, use the agent corresponding to the protocol - // (HTTP and HTTPS use different types of agents) - if (this._options.agents) { - var scheme = protocol.slice(0, -1); - this._options.agent = this._options.agents[scheme]; - } +/* +Licensing (LICENSE) +------------------- - // Create the native request and set up its event handlers - var request = this._currentRequest = - nativeProtocol.request(this._options, this._onNativeResponse); - request._redirectable = this; - for (var event of events) { - request.on(event, eventHandlers[event]); - } +This software is covered under the following copyright: +*/ +/* + * Copyright (c) 2003-2005 Tom Wu + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER + * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF + * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * In addition, the following condition applies: + * + * All redistributions must retain an intact copy of this copyright notice + * and disclaimer. + */ +/* +Address all questions regarding this license to: - // RFC7230§5.3.1: When making a request directly to an origin server, […] - // a client MUST send only the absolute path […] as the request-target. - this._currentUrl = /^\//.test(this._options.path) ? - url.format(this._options) : - // When making a request to a proxy, […] - // a client MUST send the target URI in absolute-form […]. - this._options.path; + Tom Wu + tjw@cs.Stanford.EDU +*/ +var forge = __nccwpck_require__(40080); - // End a redirected request - // (The first request must be ended explicitly with RedirectableRequest#end) - if (this._isRedirect) { - // Write the request entity and end - var i = 0; - var self = this; - var buffers = this._requestBodyBuffers; - (function writeNext(error) { - // Only write if this request has not been redirected yet - /* istanbul ignore else */ - if (request === self._currentRequest) { - // Report any write errors - /* istanbul ignore if */ - if (error) { - self.emit("error", error); - } - // Write the next buffer if there are still left - else if (i < buffers.length) { - var buffer = buffers[i++]; - /* istanbul ignore else */ - if (!request.finished) { - request.write(buffer.data, buffer.encoding, writeNext); - } - } - // End the request if `end` has been called on us - else if (self._ended) { - request.end(); - } - } - }()); - } -}; +module.exports = forge.jsbn = forge.jsbn || {}; -// Processes a response from the current native request -RedirectableRequest.prototype._processResponse = function (response) { - // Store the redirected response - var statusCode = response.statusCode; - if (this._options.trackRedirects) { - this._redirects.push({ - url: this._currentUrl, - headers: response.headers, - statusCode: statusCode, - }); - } +// Bits per digit +var dbits; - // RFC7231§6.4: The 3xx (Redirection) class of status code indicates - // that further action needs to be taken by the user agent in order to - // fulfill the request. If a Location header field is provided, - // the user agent MAY automatically redirect its request to the URI - // referenced by the Location field value, - // even if the specific status code is not understood. +// JavaScript engine analysis +var canary = 0xdeadbeefcafe; +var j_lm = ((canary&0xffffff)==0xefcafe); - // If the response is not a redirect; return it as-is - var location = response.headers.location; - if (!location || this._options.followRedirects === false || - statusCode < 300 || statusCode >= 400) { - response.responseUrl = this._currentUrl; - response.redirects = this._redirects; - this.emit("response", response); +// (public) Constructor +function BigInteger(a,b,c) { + this.data = []; + 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); +} +forge.jsbn.BigInteger = BigInteger; - // Clean up - this._requestBodyBuffers = []; - return; - } +// return new, unset BigInteger +function nbi() { return new BigInteger(null); } - // The response is a redirect, so abort the current request - abortRequest(this._currentRequest); - // Discard the remainder of the response to avoid waiting for data - response.destroy(); +// am: Compute w_j += (x*this_i), propagate carries, +// c is initial carry, returns final carry. +// c < 3*dvalue, x < 2*dvalue, this_i < dvalue +// We need to select the fastest one that works in this environment. - // RFC7231§6.4: A client SHOULD detect and intervene - // in cyclical redirections (i.e., "infinite" redirection loops). - if (++this._redirectCount > this._options.maxRedirects) { - this.emit("error", new TooManyRedirectsError()); - return; +// 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.data[i++]+w.data[j]+c; + c = Math.floor(v/0x4000000); + w.data[j++] = v&0x3ffffff; } - - // Store the request headers if applicable - var requestHeaders; - var beforeRedirect = this._options.beforeRedirect; - if (beforeRedirect) { - requestHeaders = Object.assign({ - // The Host header was set by nativeProtocol.request - Host: response.req.getHeader("host"), - }, this._options.headers); - } - - // RFC7231§6.4: Automatic redirection needs to done with - // care for methods not known to be safe, […] - // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change - // the request method from POST to GET for the subsequent request. - var method = this._options.method; - if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || - // RFC7231§6.4.4: The 303 (See Other) status code indicates that - // the server is redirecting the user agent to a different resource […] - // A user agent can perform a retrieval request targeting that URI - // (a GET or HEAD request if using HTTP) […] - (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) { - this._options.method = "GET"; - // Drop a possible entity and headers related to it - this._requestBodyBuffers = []; - removeMatchingHeaders(/^content-/i, this._options.headers); - } - - // Drop the Host header, as the redirect might lead to a different host - var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers); - - // If the redirect is relative, carry over the host of the last request - var currentUrlParts = url.parse(this._currentUrl); - var currentHost = currentHostHeader || currentUrlParts.host; - var currentUrl = /^\w+:/.test(location) ? this._currentUrl : - url.format(Object.assign(currentUrlParts, { host: currentHost })); - - // Determine the URL of the redirection - var redirectUrl; - try { - redirectUrl = url.resolve(currentUrl, location); + 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.data[i]&0x7fff; + var h = this.data[i++]>>15; + var m = xh*l+h*xl; + l = xl*l+((m&0x7fff)<<15)+w.data[j]+(c&0x3fffffff); + c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); + w.data[j++] = l&0x3fffffff; } - catch (cause) { - this.emit("error", new RedirectionError({ cause: cause })); - return; + 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.data[i]&0x3fff; + var h = this.data[i++]>>14; + var m = xh*l+h*xl; + l = xl*l+((m&0x3fff)<<14)+w.data[j]+c; + c = (l>>28)+(m>>14)+xh*h; + w.data[j++] = l&0xfffffff; } + return c; +} - // Create the redirected request - debug("redirecting to", redirectUrl); - this._isRedirect = true; - var redirectUrlParts = url.parse(redirectUrl); - Object.assign(this._options, redirectUrlParts); +// node.js (no browser) +if(typeof(navigator) === 'undefined') +{ + BigInteger.prototype.am = am3; + dbits = 28; +} else if(j_lm && (navigator.appName == "Microsoft Internet Explorer")) { + BigInteger.prototype.am = am2; + dbits = 30; +} else if(j_lm && (navigator.appName != "Netscape")) { + BigInteger.prototype.am = am1; + dbits = 26; +} else { // Mozilla/Netscape seems to prefer am3 + BigInteger.prototype.am = am3; + dbits = 28; +} - // Drop confidential headers when redirecting to a less secure protocol - // or to a different domain that is not a superdomain - if (redirectUrlParts.protocol !== currentUrlParts.protocol && - redirectUrlParts.protocol !== "https:" || - redirectUrlParts.host !== currentHost && - !isSubdomain(redirectUrlParts.host, currentHost)) { - removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers); - } +BigInteger.prototype.DB = dbits; +BigInteger.prototype.DM = ((1<= 0; --i) r.data[i] = this.data[i]; + r.t = this.t; + r.s = this.s; +} - // Set defaults - options = Object.assign({ - maxRedirects: exports.maxRedirects, - maxBodyLength: exports.maxBodyLength, - }, input, options); - options.nativeProtocols = nativeProtocols; - if (!isString(options.host) && !isString(options.hostname)) { - options.hostname = "::1"; - } +// (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.data[0] = x; + else if(x < -1) this.data[0] = x+this.DV; + else this.t = 0; +} - assert.equal(options.protocol, protocol, "protocol mismatch"); - debug("options", options); - return new RedirectableRequest(options, callback); - } +// return bigint initialized to value +function nbv(i) { var r = nbi(); r.fromInt(i); return r; } - // Executes a GET request, following redirects - function get(input, options, callback) { - var wrappedRequest = wrappedProtocol.request(input, options, callback); - wrappedRequest.end(); - return wrappedRequest; +// (protected) set from string and radix +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; } + 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; + continue; } - - // Expose the properties on the wrapped protocol - Object.defineProperties(wrappedProtocol, { - request: { value: request, configurable: true, enumerable: true, writable: true }, - get: { value: get, configurable: true, enumerable: true, writable: true }, - }); - }); - return exports; + mi = false; + if(sh == 0) + this.data[this.t++] = x; + else if(sh+k > this.DB) { + this.data[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); + } else + this.data[this.t-1] |= x<= this.DB) sh -= this.DB; + } + if(k == 8 && (s[0]&0x80) != 0) { + this.s = -1; + if(sh > 0) this.data[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this.data[this.t-1] == c) --this.t; } -function removeMatchingHeaders(regex, headers) { - var lastValue; - for (var header in headers) { - if (regex.test(header)) { - lastValue = headers[header]; - delete headers[header]; +// (public) return string representation in given radix +function bnToString(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; + else return this.toRadix(b); + var km = (1< 0) { + if(p < this.DB && (d = this.data[i]>>p) > 0) { m = true; r = int2char(d); } + while(i >= 0) { + if(p < k) { + d = (this.data[i]&((1<>(p+=this.DB-k); + } else { + d = (this.data[i]>>(p-=k))&km; + if(p <= 0) { p += this.DB; --i; } + } + if(d > 0) m = true; + if(m) r += int2char(d); } } - return (lastValue === null || typeof lastValue === "undefined") ? - undefined : String(lastValue).trim(); + return m?r:"0"; } -function createErrorType(code, message, baseClass) { - // Create constructor - function CustomError(properties) { - Error.captureStackTrace(this, this.constructor); - Object.assign(this, properties || {}); - this.code = code; - this.message = this.cause ? message + ": " + this.cause.message : message; - } +// (public) -this +function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } - // Attach constructor and set default properties - CustomError.prototype = new (baseClass || Error)(); - CustomError.prototype.constructor = CustomError; - CustomError.prototype.name = "Error [" + code + "]"; - return CustomError; -} +// (public) |this| +function bnAbs() { return (this.s<0)?this.negate():this; } -function abortRequest(request) { - for (var event of events) { - request.removeListener(event, eventHandlers[event]); - } - request.on("error", noop); - request.abort(); +// (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 i = this.t; + r = i-a.t; + if(r != 0) return (this.s<0)?-r:r; + while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r; + return 0; } -function isSubdomain(subdomain, domain) { - assert(isString(subdomain) && isString(domain)); - var dot = subdomain.length - domain.length - 1; - return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain); +// 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; } + return r; } -function isString(value) { - return typeof value === "string" || value instanceof String; +// (public) return the number of bits in "this" +function bnBitLength() { + if(this.t <= 0) return 0; + return this.DB*(this.t-1)+nbits(this.data[this.t-1]^(this.s&this.DM)); } -function isFunction(value) { - return typeof value === "function"; +// (protected) r = this << n*DB +function bnpDLShiftTo(n,r) { + var i; + for(i = this.t-1; i >= 0; --i) r.data[i+n] = this.data[i]; + for(i = n-1; i >= 0; --i) r.data[i] = 0; + r.t = this.t+n; + r.s = this.s; } -function isBuffer(value) { - return typeof value === "object" && ("length" in value); +// (protected) r = this >> n*DB +function bnpDRShiftTo(n,r) { + for(var i = n; i < this.t; ++i) r.data[i-n] = this.data[i]; + r.t = Math.max(this.t-n,0); + r.s = this.s; } -// Exports -module.exports = wrap({ http: http, https: https }); -module.exports.wrap = wrap; - - -/***/ }), - -/***/ 23232: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var CombinedStream = __nccwpck_require__(45567); -var util = __nccwpck_require__(73837); -var path = __nccwpck_require__(71017); -var http = __nccwpck_require__(13685); -var https = __nccwpck_require__(95687); -var parseUrl = (__nccwpck_require__(57310).parse); -var fs = __nccwpck_require__(57147); -var mime = __nccwpck_require__(82277); -var asynckit = __nccwpck_require__(72479); -var populate = __nccwpck_require__(92372); - -// Public API -module.exports = FormData; - -// make it a Stream -util.inherits(FormData, CombinedStream); - -/** - * Create readable "multipart/form-data" streams. - * Can be used to submit forms - * and file uploads to other web applications. - * - * @constructor - * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream - */ -function FormData(options) { - if (!(this instanceof FormData)) { - return new FormData(); - } - - this._overheadLength = 0; - this._valueLength = 0; - this._valuesToMeasure = []; - - CombinedStream.call(this); - - options = options || {}; - for (var option in options) { - this[option] = options[option]; +// (protected) r = this << n +function bnpLShiftTo(n,r) { + var bs = n%this.DB; + var cbs = this.DB-bs; + var bm = (1<= 0; --i) { + r.data[i+ds+1] = (this.data[i]>>cbs)|c; + c = (this.data[i]&bm)<= 0; --i) r.data[i] = 0; + r.data[ds] = c; + r.t = this.t+ds+1; + r.s = this.s; + r.clamp(); } -FormData.LINE_BREAK = '\r\n'; -FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream'; - -FormData.prototype.append = function(field, value, options) { - - options = options || {}; - - // allow filename as single option - if (typeof options == 'string') { - options = {filename: options}; +// (protected) r = this >> n +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.data[i-ds-1] |= (this.data[i]&bm)<>bs; } + if(bs > 0) r.data[this.t-ds-1] |= (this.s&bm)<>= this.DB; } - - // https://github.com/felixge/node-form-data/issues/38 - if (util.isArray(value)) { - // Please convert your array into string - // the way web server expects it - this._error(new Error('Arrays are not supported.')); - return; + if(a.t < this.t) { + c -= a.s; + while(i < this.t) { + c += this.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; + } else { + c += this.s; + while(i < a.t) { + c -= a.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c -= a.s; } + r.s = (c<0)?-1:0; + if(c < -1) r.data[i++] = this.DV+c; + else if(c > 0) r.data[i++] = c; + r.t = i; + r.clamp(); +} - var header = this._multiPartHeader(field, value, options); - var footer = this._multiPartFooter(); - - append(header); - append(value); - append(footer); - - // pass along options.knownLength - this._trackLength(header, value, options); -}; - -FormData.prototype._trackLength = function(header, value, options) { - var valueLength = 0; +// (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(); + var i = x.t; + r.t = i+y.t; + while(--i >= 0) r.data[i] = 0; + for(i = 0; i < y.t; ++i) r.data[i+x.t] = x.am(0,y.data[i],r,i,0,x.t); + r.s = 0; + r.clamp(); + if(this.s != a.s) BigInteger.ZERO.subTo(r,r); +} - // used w/ getLengthSync(), when length is known. - // e.g. for streaming directly from a remote server, - // w/ a known file a size, and not wanting to wait for - // incoming file to finish to get its size. - if (options.knownLength != null) { - valueLength += +options.knownLength; - } else if (Buffer.isBuffer(value)) { - valueLength = value.length; - } else if (typeof value === 'string') { - valueLength = Buffer.byteLength(value); +// (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.data[i] = 0; + for(i = 0; i < x.t-1; ++i) { + var c = x.am(i,x.data[i],r,2*i,0,1); + if((r.data[i+x.t]+=x.am(i+1,2*x.data[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { + r.data[i+x.t] -= x.DV; + r.data[i+x.t+1] = 1; + } } + if(r.t > 0) r.data[r.t-1] += x.am(i,x.data[i],r,2*i,0,1); + r.s = 0; + r.clamp(); +} - this._valueLength += valueLength; - - // @check why add CRLF? does this account for custom/multiple CRLFs? - this._overheadLength += - Buffer.byteLength(header) + - FormData.LINE_BREAK.length; - - // empty or either doesn't have path or not an http response - if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) )) { +// (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) { + var pm = m.abs(); + 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); return; } - - // no need to bother with the length - if (!options.knownLength) { - this._valuesToMeasure.push(value); + if(r == null) r = nbi(); + var y = nbi(), ts = this.s, ms = m.s; + var nsh = this.DB-nbits(pm.data[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.data[ys-1]; + if(y0 == 0) return; + var yt = y0*(1<1)?y.data[ys-2]>>this.F2:0); + var d1 = this.FV/yt, d2 = (1<= 0) { + r.data[r.t++] = 1; + r.subTo(t,r); } -}; - -FormData.prototype._lengthRetriever = function(value, callback) { - - if (value.hasOwnProperty('fd')) { - - // take read range into a account - // `end` = Infinity –> read file till the end - // - // TODO: Looks like there is bug in Node fs.createReadStream - // it doesn't respect `end` options without `start` options - // Fix it when node fixes it. - // https://github.com/joyent/node/issues/7819 - if (value.end != undefined && value.end != Infinity && value.start != undefined) { - - // when end specified - // no need to calculate range - // inclusive, starts with 0 - callback(null, value.end + 1 - (value.start ? value.start : 0)); - - // not that fast snoopy - } else { - // still need to fetch file size from fs - fs.stat(value.path, function(err, stat) { - - var fileSize; - - if (err) { - callback(err); - return; - } - - // update final size based on the range options - fileSize = stat.size - (value.start ? value.start : 0); - callback(null, fileSize); - }); + BigInteger.ONE.dlShiftTo(ys,t); + t.subTo(y,y); // "negative" y so we can replace sub with am later + while(y.t < ys) y.data[y.t++] = 0; + while(--j >= 0) { + // Estimate quotient digit + var qd = (r.data[--i]==y0)?this.DM:Math.floor(r.data[i]*d1+(r.data[i-1]+e)*d2); + if((r.data[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out + y.dlShiftTo(j,t); + r.subTo(t,r); + while(r.data[i] < --qd) r.subTo(t,r); } - - // or http response - } else if (value.hasOwnProperty('httpVersion')) { - callback(null, +value.headers['content-length']); - - // or request stream http://github.com/mikeal/request - } else if (value.hasOwnProperty('httpModule')) { - // wait till response come back - value.on('response', function(response) { - value.pause(); - callback(null, +response.headers['content-length']); - }); - value.resume(); - - // something else - } else { - callback('Unknown stream'); } -}; - -FormData.prototype._multiPartHeader = function(field, value, options) { - // custom header specified (as string)? - // it becomes responsible for boundary - // (e.g. to handle extra CRLFs on .NET servers) - if (typeof options.header == 'string') { - return options.header; + if(q != null) { + r.drShiftTo(ys,q); + if(ts != ms) BigInteger.ZERO.subTo(q,q); } + r.t = ys; + r.clamp(); + if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder + if(ts < 0) BigInteger.ZERO.subTo(r,r); +} - var contentDisposition = this._getContentDisposition(value, options); - var contentType = this._getContentType(value, options); +// (public) this mod a +function bnMod(a) { + var r = nbi(); + this.abs().divRemTo(a,null,r); + if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r); + return r; +} - var contents = ''; - var headers = { - // add custom disposition as third element or keep it two elements if not - 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []), - // if no content type. allow it to be empty array - 'Content-Type': [].concat(contentType || []) - }; +// Modular reduction using "classic" algorithm +function Classic(m) { this.m = m; } +function cConvert(x) { + 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); } - // allow custom headers. - if (typeof options.header == 'object') { - populate(headers, options.header); - } +Classic.prototype.convert = cConvert; +Classic.prototype.revert = cRevert; +Classic.prototype.reduce = cReduce; +Classic.prototype.mulTo = cMulTo; +Classic.prototype.sqrTo = cSqrTo; - var header; - for (var prop in headers) { - if (!headers.hasOwnProperty(prop)) continue; - header = headers[prop]; +// (protected) return "-1/this % 2^DB"; useful for Mont. reduction +// justification: +// xy == 1 (mod m) +// xy = 1+km +// xy(2-xy) = (1+km)(1-km) +// x[y(2-xy)] = 1-k^2m^2 +// x[y(2-xy)] == 1 (mod m^2) +// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 +// 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; + var x = this.data[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 + // 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 + // we really want the negative inverse, and -DV < y < DV + return (y>0)?this.DV-y:-y; +} - // skip nullish headers. - if (header == null) { - continue; - } +// 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; +} - // convert all headers to arrays. - if (!Array.isArray(header)) { - header = [header]; - } +// 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(BigInteger.ZERO) > 0) this.m.subTo(r,r); + return r; +} - // add non-empty headers. - if (header.length) { - contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK; - } +// x/R mod m +function montRevert(x) { + var r = nbi(); + x.copyTo(r); + this.reduce(r); + return r; +} + +// x = x/R mod m (HAC 14.32) +function montReduce(x) { + while(x.t <= this.mt2) // pad x so am has enough room later + x.data[x.t++] = 0; + for(var i = 0; i < this.m.t; ++i) { + // faster way of calculating u0 = x.data[i]*mp mod DV + var j = x.data[i]&0x7fff; + var u0 = (j*this.mpl+(((j*this.mph+(x.data[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.data[j] += this.m.am(0,u0,x,i,0,this.m.t); + // propagate carry + while(x.data[j] >= x.DV) { x.data[j] -= x.DV; x.data[++j]++; } } + x.clamp(); + x.drShiftTo(this.m.t,x); + if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); +} - return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK; -}; +// r = "x^2/R mod m"; x != r +function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } -FormData.prototype._getContentDisposition = function(value, options) { +// r = "xy/R mod m"; x,y != r +function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - var filename - , contentDisposition - ; +Montgomery.prototype.convert = montConvert; +Montgomery.prototype.revert = montRevert; +Montgomery.prototype.reduce = montReduce; +Montgomery.prototype.mulTo = montMulTo; +Montgomery.prototype.sqrTo = montSqrTo; - if (typeof options.filepath === 'string') { - // custom filepath for relative paths - filename = path.normalize(options.filepath).replace(/\\/g, '/'); - } else if (options.filename || value.name || value.path) { - // custom filename take precedence - // formidable and the browser add a name property - // fs- and request- streams have path property - filename = path.basename(options.filename || value.name || value.path); - } else if (value.readable && value.hasOwnProperty('httpVersion')) { - // or try http response - filename = path.basename(value.client._httpMessage.path || ''); - } +// (protected) true iff this is even +function bnpIsEven() { return ((this.t>0)?(this.data[0]&1):this.s) == 0; } - if (filename) { - contentDisposition = 'filename="' + filename + '"'; +// (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 BigInteger.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; } } + return z.revert(r); +} - return contentDisposition; -}; +// (public) this^e % m, 0 <= e < 2^32 +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); +} + +// protected +BigInteger.prototype.copyTo = bnpCopyTo; +BigInteger.prototype.fromInt = bnpFromInt; +BigInteger.prototype.fromString = bnpFromString; +BigInteger.prototype.clamp = bnpClamp; +BigInteger.prototype.dlShiftTo = bnpDLShiftTo; +BigInteger.prototype.drShiftTo = bnpDRShiftTo; +BigInteger.prototype.lShiftTo = bnpLShiftTo; +BigInteger.prototype.rShiftTo = bnpRShiftTo; +BigInteger.prototype.subTo = bnpSubTo; +BigInteger.prototype.multiplyTo = bnpMultiplyTo; +BigInteger.prototype.squareTo = bnpSquareTo; +BigInteger.prototype.divRemTo = bnpDivRemTo; +BigInteger.prototype.invDigit = bnpInvDigit; +BigInteger.prototype.isEven = bnpIsEven; +BigInteger.prototype.exp = bnpExp; -FormData.prototype._getContentType = function(value, options) { +// public +BigInteger.prototype.toString = bnToString; +BigInteger.prototype.negate = bnNegate; +BigInteger.prototype.abs = bnAbs; +BigInteger.prototype.compareTo = bnCompareTo; +BigInteger.prototype.bitLength = bnBitLength; +BigInteger.prototype.mod = bnMod; +BigInteger.prototype.modPowInt = bnModPowInt; - // use custom content-type above all - var contentType = options.contentType; +// "constants" +BigInteger.ZERO = nbv(0); +BigInteger.ONE = nbv(1); - // or try `name` from formidable, browser - if (!contentType && value.name) { - contentType = mime.lookup(value.name); - } +// jsbn2 lib - // or try `path` from fs-, request- streams - if (!contentType && value.path) { - contentType = mime.lookup(value.path); - } +//Copyright (c) 2005-2009 Tom Wu +//All Rights Reserved. +//See "LICENSE" for details (See jsbn.js for LICENSE). - // or if it's http-reponse - if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) { - contentType = value.headers['content-type']; - } +//Extended JavaScript BN functions, required for RSA private ops. - // or guess it from the filepath or filename - if (!contentType && (options.filepath || options.filename)) { - contentType = mime.lookup(options.filepath || options.filename); - } +//Version 1.1: new BigInteger("0", 10) returns "proper" zero - // fallback to the default content type if `value` is not simple value - if (!contentType && typeof value == 'object') { - contentType = FormData.DEFAULT_CONTENT_TYPE; - } +//(public) +function bnClone() { var r = nbi(); this.copyTo(r); return r; } - return contentType; -}; +//(public) return value as integer +function bnIntValue() { +if(this.s < 0) { + if(this.t == 1) return this.data[0]-this.DV; + else if(this.t == 0) return -1; +} else if(this.t == 1) return this.data[0]; +else if(this.t == 0) return 0; +// assumes 16 < DB < 32 +return ((this.data[1]&((1<<(32-this.DB))-1))<>24; } - var lastPart = (this._streams.length === 0); - if (lastPart) { - footer += this._lastBoundary(); - } +//(public) return value as short (assumes DB>=16) +function bnShortValue() { return (this.t==0)?this.s:(this.data[0]<<16)>>16; } - next(footer); - }.bind(this); -}; +//(protected) return x s.t. r^x < DV +function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } -FormData.prototype._lastBoundary = function() { - return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK; -}; +//(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.data[0] <= 0)) return 0; +else return 1; +} -FormData.prototype.getHeaders = function(userHeaders) { - var header; - var formHeaders = { - 'content-type': 'multipart/form-data; boundary=' + this.getBoundary() - }; +//(protected) convert to radix string +function bnpToRadix(b) { +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); +} +return z.intValue().toString(b) + r; +} - for (header in userHeaders) { - if (userHeaders.hasOwnProperty(header)) { - formHeaders[header.toLowerCase()] = userHeaders[header]; - } - } +//(protected) convert from radix string +function bnpFromRadix(s,b) { +this.fromInt(0); +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; + continue; + } + w = b*w+x; + if(++j >= cs) { + this.dMultiply(d); + this.dAddOffset(w,0); + j = 0; + w = 0; + } +} +if(j > 0) { + this.dMultiply(Math.pow(b,j)); + this.dAddOffset(w,0); +} +if(mi) BigInteger.ZERO.subTo(this,this); +} - return formHeaders; -}; +//(protected) alternate constructor +function bnpFromNumber(a,b,c) { +if("number" == typeof b) { + // new BigInteger(int,int,RNG) + if(a < 2) this.fromInt(1); + else { + this.fromNumber(a,c); + if(!this.testBit(a-1)) // force MSB set + this.bitwiseTo(BigInteger.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(BigInteger.ONE.shiftLeft(a-1),this); + } + } +} else { + // new BigInteger(int,RNG) + var x = new Array(), t = a&7; + x.length = (a>>3)+1; + b.nextBytes(x); + if(t > 0) x[0] &= ((1< 0) { + if(p < this.DB && (d = this.data[i]>>p) != (this.s&this.DM)>>p) + r[k++] = d|(this.s<<(this.DB-p)); + while(i >= 0) { + if(p < 8) { + d = (this.data[i]&((1<>(p+=this.DB-8); + } else { + d = (this.data[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; + } +} +return r; +} - return this._boundary; -}; +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; } -FormData.prototype.getBuffer = function() { - var dataBuffer = new Buffer.alloc( 0 ); - var boundary = this.getBoundary(); +//(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.data[i] = op(this.data[i],a.data[i]); +if(a.t < this.t) { + f = a.s&this.DM; + for(i = m; i < this.t; ++i) r.data[i] = op(this.data[i],f); + r.t = this.t; +} else { + f = this.s&this.DM; + for(i = m; i < a.t; ++i) r.data[i] = op(f,a.data[i]); + r.t = a.t; +} +r.s = op(this.s,a.s); +r.clamp(); +} - // Create the form content. Add Line breaks to the end of data. - for (var i = 0, len = this._streams.length; i < len; i++) { - if (typeof this._streams[i] !== 'function') { +//(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; } - // Add content to the buffer. - if(Buffer.isBuffer(this._streams[i])) { - dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]); - }else { - dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]); - } +//(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; } - // Add break after content. - if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) { - dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] ); - } - } - } +//(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; } - // Add the footer and return the Buffer object. - return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] ); -}; +//(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; } -FormData.prototype._generateBoundary = function() { - // This generates a 50 character boundary similar to those used by Firefox. - // They are optimized for boyer-moore parsing. - var boundary = '--------------------------'; - for (var i = 0; i < 24; i++) { - boundary += Math.floor(Math.random() * 10).toString(16); - } +//(public) ~this +function bnNot() { +var r = nbi(); +for(var i = 0; i < this.t; ++i) r.data[i] = this.DM&~this.data[i]; +r.t = this.t; +r.s = ~this.s; +return r; +} - this._boundary = boundary; -}; +//(public) this << n +function bnShiftLeft(n) { +var r = nbi(); +if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); +return r; +} -// Note: getLengthSync DOESN'T calculate streams length -// As workaround one can calculate file size manually -// and add it as knownLength option -FormData.prototype.getLengthSync = function() { - var knownLength = this._overheadLength + this._valueLength; +//(public) this >> n +function bnShiftRight(n) { +var r = nbi(); +if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); +return r; +} - // Don't get confused, there are 3 "internal" streams for each keyval pair - // so it basically checks if there is any value added to the form - if (this._streams.length) { - knownLength += this._lastBoundary().length; - } +//return index of lowest 1-bit in x, x < 2^31 +function lbit(x) { +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; +return r; +} - // https://github.com/form-data/form-data/issues/40 - if (!this.hasKnownLength()) { - // Some async length retrievers are present - // therefore synchronous length calculation is false. - // Please use getLength(callback) to get proper length - this._error(new Error('Cannot calculate proper length in synchronous way.')); - } +//(public) returns index of lowest 1-bit (or -1 if none) +function bnGetLowestSetBit() { +for(var i = 0; i < this.t; ++i) + if(this.data[i] != 0) return i*this.DB+lbit(this.data[i]); +if(this.s < 0) return this.t*this.DB; +return -1; +} - return knownLength; -}; +//return number of 1 bits in x +function cbit(x) { +var r = 0; +while(x != 0) { x &= x-1; ++r; } +return r; +} -// Public API to check if length of added values is known -// https://github.com/form-data/form-data/issues/196 -// https://github.com/form-data/form-data/issues/262 -FormData.prototype.hasKnownLength = function() { - var hasKnownLength = true; +//(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.data[i]^x); +return r; +} - if (this._valuesToMeasure.length) { - hasKnownLength = false; - } +//(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.data[j]&(1<<(n%this.DB)))!=0); +} - return hasKnownLength; -}; +//(protected) this op (1<>= this.DB; +} +if(a.t < this.t) { + c += a.s; + while(i < this.t) { + c += this.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; +} else { + c += this.s; + while(i < a.t) { + c += a.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += a.s; +} +r.s = (c<0)?-1:0; +if(c > 0) r.data[i++] = c; +else if(c < -1) r.data[i++] = this.DV+c; +r.t = i; +r.clamp(); +} - values.forEach(function(length) { - knownLength += length; - }); +//(public) this + a +function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } - cb(null, knownLength); - }); -}; +//(public) this - a +function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } -FormData.prototype.submit = function(params, cb) { - var request - , options - , defaults = {method: 'post'} - ; +//(public) this * a +function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } - // parse provided url if it's string - // or treat it as options object - if (typeof params == 'string') { +//(public) this / a +function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } - params = parseUrl(params); - options = populate({ - port: params.port, - path: params.pathname, - host: params.hostname, - protocol: params.protocol - }, defaults); +//(public) this % a +function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } - // use custom params - } else { +//(public) [this/a,this%a] +function bnDivideAndRemainder(a) { +var q = nbi(), r = nbi(); +this.divRemTo(a,q,r); +return new Array(q,r); +} - options = populate(params, defaults); - // if no port provided use default one - if (!options.port) { - options.port = options.protocol == 'https:' ? 443 : 80; - } - } +//(protected) this *= n, this >= 0, 1 < n < DV +function bnpDMultiply(n) { +this.data[this.t] = this.am(0,n-1,this,0,0,this.t); +++this.t; +this.clamp(); +} - // put that good code in getHeaders to some use - options.headers = this.getHeaders(params.headers); +//(protected) this += n << w words, this >= 0 +function bnpDAddOffset(n,w) { +if(n == 0) return; +while(this.t <= w) this.data[this.t++] = 0; +this.data[w] += n; +while(this.data[w] >= this.DV) { + this.data[w] -= this.DV; + if(++w >= this.t) this.data[this.t++] = 0; + ++this.data[w]; +} +} - // https if specified, fallback to http in any other case - if (options.protocol == 'https:') { - request = https.request(options); - } else { - request = http.request(options); - } +//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); } - // get content length and fire away - this.getLength(function(err, length) { - if (err) { - this._error(err); - return; - } +NullExp.prototype.convert = nNop; +NullExp.prototype.revert = nNop; +NullExp.prototype.mulTo = nMulTo; +NullExp.prototype.sqrTo = nSqrTo; - // add content length - request.setHeader('Content-Length', length); +//(public) this^e +function bnPow(e) { return this.exp(e,new NullExp()); } - this.pipe(request); - if (cb) { - request.on('error', cb); - request.on('response', cb.bind(this, null)); - } - }.bind(this)); +//(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); +r.s = 0; // assumes a,this >= 0 +r.t = i; +while(i > 0) r.data[--i] = 0; +var j; +for(j = r.t-this.t; i < j; ++i) r.data[i+this.t] = this.am(0,a.data[i],r,i,0,this.t); +for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a.data[i],r,i,0,n-i); +r.clamp(); +} - return request; -}; +//(protected) r = "this * a" without lower n words, n > 0 +//"this" should be the larger one if appropriate. +function bnpMultiplyUpperTo(a,n,r) { +--n; +var i = r.t = this.t+a.t-n; +r.s = 0; // assumes a,this >= 0 +while(--i >= 0) r.data[i] = 0; +for(i = Math.max(n-this.t,0); i < a.t; ++i) + r.data[this.t+i-n] = this.am(n-i,a.data[i],r,0,0,this.t+i-n); +r.clamp(); +r.drShiftTo(1,r); +} -FormData.prototype._error = function(err) { - if (!this.error) { - this.error = err; - this.pause(); - this.emit('error', err); - } -}; +//Barrett modular reduction +function Barrett(m) { +// setup Barrett +this.r2 = nbi(); +this.q3 = nbi(); +BigInteger.ONE.dlShiftTo(2*m.t,this.r2); +this.mu = this.r2.divide(m); +this.m = m; +} -FormData.prototype.toString = function () { - return '[object FormData]'; -}; +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; } +} +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); +} -/***/ 92372: -/***/ ((module) => { +//r = x^2 mod m; x != r +function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } -// populates missing values -module.exports = function(dst, src) { +//r = x*y mod m; x,y != r +function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - Object.keys(src).forEach(function(prop) - { - dst[prop] = dst[prop] || src[prop]; - }); +Barrett.prototype.convert = barrettConvert; +Barrett.prototype.revert = barrettRevert; +Barrett.prototype.reduce = barrettReduce; +Barrett.prototype.mulTo = barrettMulTo; +Barrett.prototype.sqrTo = barrettSqrTo; - return dst; -}; +//(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; +else k = 6; +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) { + var g2 = nbi(); + z.sqrTo(g[1],g2); + while(n <= km) { + g[n] = nbi(); + z.mulTo(g2,g[n-2],g[n]); + n += 2; + } +} -/***/ }), +var j = e.t-1, w, is1 = true, r2 = nbi(), t; +i = nbits(e.data[j])-1; +while(j >= 0) { + if(i >= k1) w = (e.data[j]>>(i-k1))&km; + else { + w = (e.data[j]&((1<<(i+1))-1))<<(k1-i); + if(j > 0) w |= e.data[j-1]>>(this.DB+i-k1); + } -/***/ 99708: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + 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 + 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); + } -var require;if (global.GENTLY) require = GENTLY.hijack(require); + while(j >= 0 && (e.data[j]&(1< 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); +return y; +} -function File(properties) { - EventEmitter.call(this); +//(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.data[0]%n; + else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n; +return r; +} - this.size = 0; - this.path = null; - this.name = null; - this.type = null; - this.hash = null; - this.lastModifiedDate = null; +//(public) 1/this % m (HAC 14.61) +function bnModInverse(m) { +var ac = m.isEven(); +if((this.isEven() && ac) || m.signum() == 0) return BigInteger.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(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(BigInteger.ONE) != 0) return BigInteger.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; +} - this._writeStream = null; - - for (var key in properties) { - this[key] = properties[key]; - } +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]; +var lplim = (1<<26)/lowprimes[lowprimes.length-1]; - if(typeof this.hash === 'string') { - this.hash = crypto.createHash(properties.hash); - } else { - this.hash = null; - } +//(public) test primality with certainty >= 1-.5^t +function bnIsProbablePrime(t) { +var i, x = this.abs(); +if(x.t == 1 && x.data[0] <= lowprimes[lowprimes.length-1]) { + for(i = 0; i < lowprimes.length; ++i) + if(x.data[0] == lowprimes[i]) return true; + 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++]; + m = x.modInt(m); + while(i < j) if(m%lowprimes[i++] == 0) return false; +} +return x.millerRabin(t); } -module.exports = File; -util.inherits(File, EventEmitter); -File.prototype.open = function() { - this._writeStream = new fs.WriteStream(this.path); -}; +//(protected) true if probably prime (HAC 4.24, Miller-Rabin) +function bnpMillerRabin(t) { +var n1 = this.subtract(BigInteger.ONE); +var k = n1.getLowestSetBit(); +if(k <= 0) return false; +var r = n1.shiftRight(k); +var prng = bnGetPrng(); +var a; +for(var i = 0; i < t; ++i) { + // select witness 'a' at random from between 1 and n1 + do { + a = new BigInteger(this.bitLength(), prng); + } + while(a.compareTo(BigInteger.ONE) <= 0 || a.compareTo(n1) >= 0); + var y = a.modPow(r,this); + if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { + var j = 1; + while(j++ < k && y.compareTo(n1) != 0) { + y = y.modPowInt(2,this); + if(y.compareTo(BigInteger.ONE) == 0) return false; + } + if(y.compareTo(n1) != 0) return false; + } +} +return true; +} -File.prototype.toJSON = function() { - var json = { - size: this.size, - path: this.path, - name: this.name, - type: this.type, - mtime: this.lastModifiedDate, - length: this.length, - filename: this.filename, - mime: this.mime +// get pseudo random number generator +function bnGetPrng() { + // create prng with api that matches BigInteger secure random + return { + // x is an array to fill with bytes + nextBytes: function(x) { + for(var i = 0; i < x.length; ++i) { + x[i] = Math.floor(Math.random() * 0x0100); + } + } }; - if (this.hash && this.hash != "") { - json.hash = this.hash; - } - return json; -}; +} -File.prototype.write = function(buffer, cb) { - var self = this; - if (self.hash) { - self.hash.update(buffer); - } +//protected +BigInteger.prototype.chunkSize = bnpChunkSize; +BigInteger.prototype.toRadix = bnpToRadix; +BigInteger.prototype.fromRadix = bnpFromRadix; +BigInteger.prototype.fromNumber = bnpFromNumber; +BigInteger.prototype.bitwiseTo = bnpBitwiseTo; +BigInteger.prototype.changeBit = bnpChangeBit; +BigInteger.prototype.addTo = bnpAddTo; +BigInteger.prototype.dMultiply = bnpDMultiply; +BigInteger.prototype.dAddOffset = bnpDAddOffset; +BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; +BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; +BigInteger.prototype.modInt = bnpModInt; +BigInteger.prototype.millerRabin = bnpMillerRabin; - if (this._writeStream.closed) { - return cb(); - } +//public +BigInteger.prototype.clone = bnClone; +BigInteger.prototype.intValue = bnIntValue; +BigInteger.prototype.byteValue = bnByteValue; +BigInteger.prototype.shortValue = bnShortValue; +BigInteger.prototype.signum = bnSigNum; +BigInteger.prototype.toByteArray = bnToByteArray; +BigInteger.prototype.equals = bnEquals; +BigInteger.prototype.min = bnMin; +BigInteger.prototype.max = bnMax; +BigInteger.prototype.and = bnAnd; +BigInteger.prototype.or = bnOr; +BigInteger.prototype.xor = bnXor; +BigInteger.prototype.andNot = bnAndNot; +BigInteger.prototype.not = bnNot; +BigInteger.prototype.shiftLeft = bnShiftLeft; +BigInteger.prototype.shiftRight = bnShiftRight; +BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; +BigInteger.prototype.bitCount = bnBitCount; +BigInteger.prototype.testBit = bnTestBit; +BigInteger.prototype.setBit = bnSetBit; +BigInteger.prototype.clearBit = bnClearBit; +BigInteger.prototype.flipBit = bnFlipBit; +BigInteger.prototype.add = bnAdd; +BigInteger.prototype.subtract = bnSubtract; +BigInteger.prototype.multiply = bnMultiply; +BigInteger.prototype.divide = bnDivide; +BigInteger.prototype.remainder = bnRemainder; +BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; +BigInteger.prototype.modPow = bnModPow; +BigInteger.prototype.modInverse = bnModInverse; +BigInteger.prototype.pow = bnPow; +BigInteger.prototype.gcd = bnGCD; +BigInteger.prototype.isProbablePrime = bnIsProbablePrime; - this._writeStream.write(buffer, function() { - self.lastModifiedDate = new Date(); - self.size += buffer.length; - self.emit('progress', self.size); - cb(); - }); -}; +//BigInteger interfaces not implemented in jsbn: -File.prototype.end = function(cb) { - var self = this; - if (self.hash) { - self.hash = self.hash.digest('hex'); - } - this._writeStream.end(function() { - self.emit('end'); - cb(); - }); -}; +//BigInteger(int signum, byte[] magnitude) +//double doubleValue() +//float floatValue() +//int hashCode() +//long longValue() +//static BigInteger valueOf(long val) /***/ }), -/***/ 48014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -var require;if (global.GENTLY) require = GENTLY.hijack(require); - -var crypto = __nccwpck_require__(6113); -var fs = __nccwpck_require__(57147); -var util = __nccwpck_require__(73837), - path = __nccwpck_require__(71017), - File = __nccwpck_require__(99708), - MultipartParser = (__nccwpck_require__(35100).MultipartParser), - QuerystringParser = (__nccwpck_require__(20258)/* .QuerystringParser */ .l), - OctetParser = (__nccwpck_require__(42028)/* .OctetParser */ .h), - JSONParser = (__nccwpck_require__(59230)/* .JSONParser */ .c), - StringDecoder = (__nccwpck_require__(71576).StringDecoder), - EventEmitter = (__nccwpck_require__(82361).EventEmitter), - Stream = (__nccwpck_require__(12781).Stream), - os = __nccwpck_require__(22037); - -function IncomingForm(opts) { - if (!(this instanceof IncomingForm)) return new IncomingForm(opts); - EventEmitter.call(this); +/***/ 33604: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - opts=opts||{}; +/** + * Javascript implementation of RSA-KEM. + * + * @author Lautaro Cozzani Rodriguez + * @author Dave Longley + * + * Copyright (c) 2014 Lautaro Cozzani + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); +__nccwpck_require__(87088); +__nccwpck_require__(30292); - this.error = null; - this.ended = false; +module.exports = forge.kem = forge.kem || {}; - this.maxFields = opts.maxFields || 1000; - this.maxFieldsSize = opts.maxFieldsSize || 20 * 1024 * 1024; - this.maxFileSize = opts.maxFileSize || 200 * 1024 * 1024; - this.keepExtensions = opts.keepExtensions || false; - this.uploadDir = opts.uploadDir || (os.tmpdir && os.tmpdir()) || os.tmpDir(); - this.encoding = opts.encoding || 'utf-8'; - this.headers = null; - this.type = null; - this.hash = opts.hash || false; - this.multiples = opts.multiples || false; +var BigInteger = forge.jsbn.BigInteger; - this.bytesReceived = null; - this.bytesExpected = null; +/** + * The API for the RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2. + */ +forge.kem.rsa = {}; - this._parser = null; - this._flushing = 0; - this._fieldsSize = 0; - this._fileSize = 0; - this.openedFiles = []; +/** + * Creates an RSA KEM API object for generating a secret asymmetric key. + * + * The symmetric key may be generated via a call to 'encrypt', which will + * produce a ciphertext to be transmitted to the recipient and a key to be + * kept secret. The ciphertext is a parameter to be passed to 'decrypt' which + * will produce the same secret key for the recipient to use to decrypt a + * message that was encrypted with the secret key. + * + * @param kdf the KDF API to use (eg: new forge.kem.kdf1()). + * @param options the options to use. + * [prng] a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + */ +forge.kem.rsa.create = function(kdf, options) { + options = options || {}; + var prng = options.prng || forge.random; - return this; -} -util.inherits(IncomingForm, EventEmitter); -exports.c = IncomingForm; + var kem = {}; -IncomingForm.prototype.parse = function(req, cb) { - this.pause = function() { - try { - req.pause(); - } catch (err) { - // the stream was destroyed - if (!this.ended) { - // before it was completed, crash & burn - this._error(err); - } - return false; - } - return true; - }; + /** + * Generates a secret key and its encapsulation. + * + * @param publicKey the RSA public key to encrypt with. + * @param keyLength the length, in bytes, of the secret key to generate. + * + * @return an object with: + * encapsulation: the ciphertext for generating the secret key, as a + * binary-encoded string of bytes. + * key: the secret key to use for encrypting a message. + */ + kem.encrypt = function(publicKey, keyLength) { + // generate a random r where 1 < r < n + var byteLength = Math.ceil(publicKey.n.bitLength() / 8); + var r; + do { + r = new BigInteger( + forge.util.bytesToHex(prng.getBytesSync(byteLength)), + 16).mod(publicKey.n); + } while(r.compareTo(BigInteger.ONE) <= 0); - this.resume = function() { - try { - req.resume(); - } catch (err) { - // the stream was destroyed - if (!this.ended) { - // before it was completed, crash & burn - this._error(err); - } - return false; + // prepend r with zeros + r = forge.util.hexToBytes(r.toString(16)); + var zeros = byteLength - r.length; + if(zeros > 0) { + r = forge.util.fillString(String.fromCharCode(0), zeros) + r; } - return true; - }; - - // Setup callback first, so we don't miss anything from data events emitted - // immediately. - if (cb) { - var fields = {}, files = {}; - this - .on('field', function(name, value) { - fields[name] = value; - }) - .on('file', function(name, file) { - if (this.multiples) { - if (files[name]) { - if (!Array.isArray(files[name])) { - files[name] = [files[name]]; - } - files[name].push(file); - } else { - files[name] = file; - } - } else { - files[name] = file; - } - }) - .on('error', function(err) { - cb(err, fields, files); - }) - .on('end', function() { - cb(null, fields, files); - }); - } - - // Parse headers and setup the parser, ready to start listening for data. - this.writeHeaders(req.headers); + // encrypt the random + var encapsulation = publicKey.encrypt(r, 'NONE'); - // Start listening for data. - var self = this; - req - .on('error', function(err) { - self._error(err); - }) - .on('aborted', function() { - self.emit('aborted'); - self._error(new Error('Request aborted')); - }) - .on('data', function(buffer) { - self.write(buffer); - }) - .on('end', function() { - if (self.error) { - return; - } + // generate the secret key + var key = kdf.generate(r, keyLength); - var err = self._parser.end(); - if (err) { - self._error(err); - } - }); + return {encapsulation: encapsulation, key: key}; + }; - return this; -}; + /** + * Decrypts an encapsulated secret key. + * + * @param privateKey the RSA private key to decrypt with. + * @param encapsulation the ciphertext for generating the secret key, as + * a binary-encoded string of bytes. + * @param keyLength the length, in bytes, of the secret key to generate. + * + * @return the secret key as a binary-encoded string of bytes. + */ + kem.decrypt = function(privateKey, encapsulation, keyLength) { + // decrypt the encapsulation and generate the secret key + var r = privateKey.decrypt(encapsulation, 'NONE'); + return kdf.generate(r, keyLength); + }; -IncomingForm.prototype.writeHeaders = function(headers) { - this.headers = headers; - this._parseContentLength(); - this._parseContentType(); + return kem; }; -IncomingForm.prototype.write = function(buffer) { - if (this.error) { - return; - } - if (!this._parser) { - this._error(new Error('uninitialized parser')); - return; - } - if (typeof this._parser.write !== 'function') { - this._error(new Error('did not expect data')); - return; - } - - this.bytesReceived += buffer.length; - this.emit('progress', this.bytesReceived, this.bytesExpected); - - var bytesParsed = this._parser.write(buffer); - if (bytesParsed !== buffer.length) { - this._error(new Error('parser error, '+bytesParsed+' of '+buffer.length+' bytes parsed')); - } +// TODO: add forge.kem.kdf.create('KDF1', {md: ..., ...}) API? - return bytesParsed; +/** + * Creates a key derivation API object that implements KDF1 per ISO 18033-2. + * + * @param md the hash API to use. + * @param [digestLength] an optional digest length that must be positive and + * less than or equal to md.digestLength. + * + * @return a KDF1 API object. + */ +forge.kem.kdf1 = function(md, digestLength) { + _createKDF(this, md, 0, digestLength || md.digestLength); }; -IncomingForm.prototype.pause = function() { - // this does nothing, unless overwritten in IncomingForm.parse - return false; +/** + * Creates a key derivation API object that implements KDF2 per ISO 18033-2. + * + * @param md the hash API to use. + * @param [digestLength] an optional digest length that must be positive and + * less than or equal to md.digestLength. + * + * @return a KDF2 API object. + */ +forge.kem.kdf2 = function(md, digestLength) { + _createKDF(this, md, 1, digestLength || md.digestLength); }; -IncomingForm.prototype.resume = function() { - // this does nothing, unless overwritten in IncomingForm.parse - return false; -}; +/** + * Creates a KDF1 or KDF2 API object. + * + * @param md the hash API to use. + * @param counterStart the starting index for the counter. + * @param digestLength the digest length to use. + * + * @return the KDF API object. + */ +function _createKDF(kdf, md, counterStart, digestLength) { + /** + * Generate a key of the specified length. + * + * @param x the binary-encoded byte string to generate a key from. + * @param length the number of bytes to generate (the size of the key). + * + * @return the key as a binary-encoded string. + */ + kdf.generate = function(x, length) { + var key = new forge.util.ByteBuffer(); -IncomingForm.prototype.onPart = function(part) { - // this method can be overwritten by the user - this.handlePart(part); -}; + // run counter from counterStart to ceil(length / Hash.len) + var k = Math.ceil(length / digestLength) + counterStart; -IncomingForm.prototype.handlePart = function(part) { - var self = this; + var c = new forge.util.ByteBuffer(); + for(var i = counterStart; i < k; ++i) { + // I2OSP(i, 4): convert counter to an octet string of 4 octets + c.putInt32(i); - // This MUST check exactly for undefined. You can not change it to !part.filename. - if (part.filename === undefined) { - var value = '' - , decoder = new StringDecoder(this.encoding); + // digest 'x' and the counter and add the result to the key + md.start(); + md.update(x + c.getBytes()); + var hash = md.digest(); + key.putBytes(hash.getBytes(digestLength)); + } - part.on('data', function(buffer) { - self._fieldsSize += buffer.length; - if (self._fieldsSize > self.maxFieldsSize) { - self._error(new Error('maxFieldsSize exceeded, received '+self._fieldsSize+' bytes of field data')); - return; - } - value += decoder.write(buffer); - }); + // truncate to the correct key length + key.truncate(key.length() - length); + return key.getBytes(); + }; +} - part.on('end', function() { - self.emit('field', part.name, value); - }); - return; - } - this._flushing++; +/***/ }), - var file = new File({ - path: this._uploadPath(part.filename), - name: part.filename, - type: part.mime, - hash: self.hash - }); +/***/ 51505: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - this.emit('fileBegin', part.name, file); +/** + * Cross-browser support for logging in a web application. + * + * @author David I. Lehn + * + * Copyright (c) 2008-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); - file.open(); - this.openedFiles.push(file); +/* LOG API */ +module.exports = forge.log = forge.log || {}; - part.on('data', function(buffer) { - self._fileSize += buffer.length; - if (self._fileSize > self.maxFileSize) { - self._error(new Error('maxFileSize exceeded, received '+self._fileSize+' bytes of file data')); - return; - } - if (buffer.length == 0) { - return; - } - self.pause(); - file.write(buffer, function() { - self.resume(); - }); - }); +/** + * Application logging system. + * + * Each logger level available as it's own function of the form: + * forge.log.level(category, args...) + * The category is an arbitrary string, and the args are the same as + * Firebug's console.log API. By default the call will be output as: + * 'LEVEL [category] , args[1], ...' + * This enables proper % formatting via the first argument. + * Each category is enabled by default but can be enabled or disabled with + * the setCategoryEnabled() function. + */ +// list of known levels +forge.log.levels = [ + 'none', 'error', 'warning', 'info', 'debug', 'verbose', 'max']; +// info on the levels indexed by name: +// index: level index +// name: uppercased display name +var sLevelInfo = {}; +// list of loggers +var sLoggers = []; +/** + * Standard console logger. If no console support is enabled this will + * remain null. Check before using. + */ +var sConsoleLogger = null; - part.on('end', function() { - file.end(function() { - self._flushing--; - self.emit('file', part.name, file); - self._maybeEnd(); - }); - }); -}; +// logger flags +/** + * Lock the level at the current value. Used in cases where user config may + * set the level such that only critical messages are seen but more verbose + * messages are needed for debugging or other purposes. + */ +forge.log.LEVEL_LOCKED = (1 << 1); +/** + * Always call log function. By default, the logging system will check the + * message level against logger.level before calling the log function. This + * flag allows the function to do its own check. + */ +forge.log.NO_LEVEL_CHECK = (1 << 2); +/** + * Perform message interpolation with the passed arguments. "%" style + * fields in log messages will be replaced by arguments as needed. Some + * loggers, such as Firebug, may do this automatically. The original log + * message will be available as 'message' and the interpolated version will + * be available as 'fullMessage'. + */ +forge.log.INTERPOLATE = (1 << 3); -function dummyParser(self) { - return { - end: function () { - self.ended = true; - self._maybeEnd(); - return null; - } +// setup each log level +for(var i = 0; i < forge.log.levels.length; ++i) { + var level = forge.log.levels[i]; + sLevelInfo[level] = { + index: i, + name: level.toUpperCase() }; } -IncomingForm.prototype._parseContentType = function() { - if (this.bytesExpected === 0) { - this._parser = dummyParser(this); - return; - } - - if (!this.headers['content-type']) { - this._error(new Error('bad content-type header, no content-type')); - return; +/** + * Message logger. Will dispatch a message to registered loggers as needed. + * + * @param message message object + */ +forge.log.logMessage = function(message) { + var messageLevelIndex = sLevelInfo[message.level].index; + for(var i = 0; i < sLoggers.length; ++i) { + var logger = sLoggers[i]; + if(logger.flags & forge.log.NO_LEVEL_CHECK) { + logger.f(message); + } else { + // get logger level + var loggerLevelIndex = sLevelInfo[logger.level].index; + // check level + if(messageLevelIndex <= loggerLevelIndex) { + // message critical enough, call logger + logger.f(logger, message); + } + } } +}; - if (this.headers['content-type'].match(/octet-stream/i)) { - this._initOctetStream(); - return; +/** + * Sets the 'standard' key on a message object to: + * "LEVEL [category] " + message + * + * @param message a message log object + */ +forge.log.prepareStandard = function(message) { + if(!('standard' in message)) { + message.standard = + sLevelInfo[message.level].name + + //' ' + +message.timestamp + + ' [' + message.category + '] ' + + message.message; } +}; - if (this.headers['content-type'].match(/urlencoded/i)) { - this._initUrlencoded(); - return; +/** + * Sets the 'full' key on a message object to the original message + * interpolated via % formatting with the message arguments. + * + * @param message a message log object. + */ +forge.log.prepareFull = function(message) { + if(!('full' in message)) { + // copy args and insert message at the front + var args = [message.message]; + args = args.concat([] || 0); + // format the message + message.full = forge.util.format.apply(this, args); } +}; - if (this.headers['content-type'].match(/multipart/i)) { - var m = this.headers['content-type'].match(/boundary=(?:"([^"]+)"|([^;]+))/i); - if (m) { - this._initMultipart(m[1] || m[2]); - } else { - this._error(new Error('bad content-type header, no multipart boundary')); - } - return; +/** + * Applies both preparseStandard() and prepareFull() to a message object and + * store result in 'standardFull'. + * + * @param message a message log object. + */ +forge.log.prepareStandardFull = function(message) { + if(!('standardFull' in message)) { + // FIXME implement 'standardFull' logging + forge.log.prepareStandard(message); + message.standardFull = message.standard; } +}; - if (this.headers['content-type'].match(/json/i)) { - this._initJSONencoded(); - return; +// create log level functions +if(true) { + // levels for which we want functions + var levels = ['error', 'warning', 'info', 'debug', 'verbose']; + for(var i = 0; i < levels.length; ++i) { + // wrap in a function to ensure proper level var is passed + (function(level) { + // create function for this level + forge.log[level] = function(category, message/*, args...*/) { + // convert arguments to real array, remove category and message + var args = Array.prototype.slice.call(arguments).slice(2); + // create message object + // Note: interpolation and standard formatting is done lazily + var msg = { + timestamp: new Date(), + level: level, + category: category, + message: message, + 'arguments': args + /*standard*/ + /*full*/ + /*fullMessage*/ + }; + // process this message + forge.log.logMessage(msg); + }; + })(levels[i]); } +} - this._error(new Error('bad content-type header, unknown content-type: '+this.headers['content-type'])); +/** + * Creates a new logger with specified custom logging function. + * + * The logging function has a signature of: + * function(logger, message) + * logger: current logger + * message: object: + * level: level id + * category: category + * message: string message + * arguments: Array of extra arguments + * fullMessage: interpolated message and arguments if INTERPOLATE flag set + * + * @param logFunction a logging function which takes a log message object + * as a parameter. + * + * @return a logger object. + */ +forge.log.makeLogger = function(logFunction) { + var logger = { + flags: 0, + f: logFunction + }; + forge.log.setLevel(logger, 'none'); + return logger; }; -IncomingForm.prototype._error = function(err) { - if (this.error || this.ended) { - return; +/** + * Sets the current log level on a logger. + * + * @param logger the target logger. + * @param level the new maximum log level as a string. + * + * @return true if set, false if not. + */ +forge.log.setLevel = function(logger, level) { + var rval = false; + if(logger && !(logger.flags & forge.log.LEVEL_LOCKED)) { + for(var i = 0; i < forge.log.levels.length; ++i) { + var aValidLevel = forge.log.levels[i]; + if(level == aValidLevel) { + // set level + logger.level = level; + rval = true; + break; + } + } } - this.error = err; - this.emit('error', err); + return rval; +}; - if (Array.isArray(this.openedFiles)) { - this.openedFiles.forEach(function(file) { - file._writeStream - .on('error', function() {}) - .destroy(); - setTimeout(fs.unlink, 0, file.path, function(error) { }); - }); +/** + * Locks the log level at its current value. + * + * @param logger the target logger. + * @param lock boolean lock value, default to true. + */ +forge.log.lock = function(logger, lock) { + if(typeof lock === 'undefined' || lock) { + logger.flags |= forge.log.LEVEL_LOCKED; + } else { + logger.flags &= ~forge.log.LEVEL_LOCKED; } }; -IncomingForm.prototype._parseContentLength = function() { - this.bytesReceived = 0; - if (this.headers['content-length']) { - this.bytesExpected = parseInt(this.headers['content-length'], 10); - } else if (this.headers['transfer-encoding'] === undefined) { - this.bytesExpected = 0; +/** + * Adds a logger. + * + * @param logger the logger object. + */ +forge.log.addLogger = function(logger) { + sLoggers.push(logger); +}; + +// setup the console logger if possible, else create fake console.log +if(typeof(console) !== 'undefined' && 'log' in console) { + var logger; + if(console.error && console.warn && console.info && console.debug) { + // looks like Firebug-style logging is available + // level handlers map + var levelHandlers = { + error: console.error, + warning: console.warn, + info: console.info, + debug: console.debug, + verbose: console.debug + }; + var f = function(logger, message) { + forge.log.prepareStandard(message); + var handler = levelHandlers[message.level]; + // prepend standard message and concat args + var args = [message.standard]; + args = args.concat(message['arguments'].slice()); + // apply to low-level console function + handler.apply(console, args); + }; + logger = forge.log.makeLogger(f); + } else { + // only appear to have basic console.log + var f = function(logger, message) { + forge.log.prepareStandardFull(message); + console.log(message.standardFull); + }; + logger = forge.log.makeLogger(f); } + forge.log.setLevel(logger, 'debug'); + forge.log.addLogger(logger); + sConsoleLogger = logger; +} else { + // define fake console.log to avoid potential script errors on + // browsers that do not have console logging + console = { + log: function() {} + }; +} - if (this.bytesExpected !== null) { - this.emit('progress', this.bytesReceived, this.bytesExpected); +/* + * Check for logging control query vars in current URL. + * + * console.level= + * Set's the console log level by name. Useful to override defaults and + * allow more verbose logging before a user config is loaded. + * + * console.lock= + * Lock the console log level at whatever level it is set at. This is run + * after console.level is processed. Useful to force a level of verbosity + * that could otherwise be limited by a user config. + */ +if(sConsoleLogger !== null && + typeof window !== 'undefined' && window.location +) { + var query = new URL(window.location.href).searchParams; + if(query.has('console.level')) { + // set with last value + forge.log.setLevel( + sConsoleLogger, query.get('console.level').slice(-1)[0]); } -}; + if(query.has('console.lock')) { + // set with last value + var lock = query.get('console.lock').slice(-1)[0]; + if(lock == 'true') { + forge.log.lock(sConsoleLogger); + } + } +} -IncomingForm.prototype._newParser = function() { - return new MultipartParser(); -}; +// provide public access to console logger +forge.log.consoleLogger = sConsoleLogger; -IncomingForm.prototype._initMultipart = function(boundary) { - this.type = 'multipart'; - var parser = new MultipartParser(), - self = this, - headerField, - headerValue, - part; +/***/ }), - parser.initWithBoundary(boundary); +/***/ 83543: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - parser.onPartBegin = function() { - part = new Stream(); - part.readable = true; - part.headers = {}; - part.name = null; - part.filename = null; - part.mime = null; +/** + * Node.js module for all known Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +module.exports = __nccwpck_require__(5454); - part.transferEncoding = 'binary'; - part.transferBuffer = ''; +__nccwpck_require__(97671); +__nccwpck_require__(87986); +__nccwpck_require__(83360); +__nccwpck_require__(89077); - headerField = ''; - headerValue = ''; - }; - parser.onHeaderField = function(b, start, end) { - headerField += b.toString(self.encoding, start, end); - }; +/***/ }), - parser.onHeaderValue = function(b, start, end) { - headerValue += b.toString(self.encoding, start, end); - }; +/***/ 5454: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - parser.onHeaderEnd = function() { - headerField = headerField.toLowerCase(); - part.headers[headerField] = headerValue; +/** + * Node.js module for Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); - // matches either a quoted-string or a token (RFC 2616 section 19.5.1) - var m = headerValue.match(/\bname=("([^"]*)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))/i); - if (headerField == 'content-disposition') { - if (m) { - part.name = m[2] || m[3] || ''; - } +module.exports = forge.md = forge.md || {}; +forge.md.algorithms = forge.md.algorithms || {}; - part.filename = self._fileName(headerValue); - } else if (headerField == 'content-type') { - part.mime = headerValue; - } else if (headerField == 'content-transfer-encoding') { - part.transferEncoding = headerValue.toLowerCase(); - } - headerField = ''; - headerValue = ''; - }; +/***/ }), - parser.onHeadersEnd = function() { - switch(part.transferEncoding){ - case 'binary': - case '7bit': - case '8bit': - parser.onPartData = function(b, start, end) { - part.emit('data', b.slice(start, end)); - }; +/***/ 97671: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - parser.onPartEnd = function() { - part.emit('end'); - }; - break; +/** + * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(5454); +__nccwpck_require__(46831); - case 'base64': - parser.onPartData = function(b, start, end) { - part.transferBuffer += b.slice(start, end).toString('ascii'); +var md5 = module.exports = forge.md5 = forge.md5 || {}; +forge.md.md5 = forge.md.algorithms.md5 = md5; - /* - four bytes (chars) in base64 converts to three bytes in binary - encoding. So we should always work with a number of bytes that - can be divided by 4, it will result in a number of buytes that - can be divided vy 3. - */ - var offset = parseInt(part.transferBuffer.length / 4, 10) * 4; - part.emit('data', new Buffer(part.transferBuffer.substring(0, offset), 'base64')); - part.transferBuffer = part.transferBuffer.substring(offset); - }; +/** + * Creates an MD5 message digest object. + * + * @return a message digest object. + */ +md5.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } - parser.onPartEnd = function() { - part.emit('data', new Buffer(part.transferBuffer, 'base64')); - part.emit('end'); - }; - break; + // MD5 state contains four 32-bit integers + var _state = null; - default: - return self._error(new Error('unknown transfer-encoding')); - } + // input buffer + var _input = forge.util.createBuffer(); - self.onPart(part); + // used for word storage + var _w = new Array(16); + + // message digest object + var md = { + algorithm: 'md5', + blockLength: 64, + digestLength: 16, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 }; + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; - parser.onEnd = function() { - self.ended = true; - self._maybeEnd(); + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x67452301, + h1: 0xEFCDAB89, + h2: 0x98BADCFE, + h3: 0x10325476 + }; + return md; }; + // start digest automatically for first time + md.start(); - this._parser = parser; -}; - -IncomingForm.prototype._fileName = function(headerValue) { - // matches either a quoted-string or a token (RFC 2616 section 19.5.1) - var m = headerValue.match(/\bfilename=("(.*?)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))($|;\s)/i); - if (!m) return; + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } - var match = m[2] || m[3] || ''; - var filename = match.substr(match.lastIndexOf('\\') + 1); - filename = filename.replace(/%22/g, '"'); - filename = filename.replace(/&#([\d]{4});/g, function(m, code) { - return String.fromCharCode(code); - }); - return filename; -}; + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = (len[1] / 0x100000000) >>> 0; + } -IncomingForm.prototype._initUrlencoded = function() { - this.type = 'urlencoded'; + // add bytes to input buffer + _input.putBytes(msg); - var parser = new QuerystringParser(this.maxFields) - , self = this; + // process bytes + _update(_state, _w, _input); - parser.onField = function(key, val) { - self.emit('field', key, val); - }; + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } - parser.onEnd = function() { - self.ended = true; - self._maybeEnd(); + return md; }; - this._parser = parser; -}; - -IncomingForm.prototype._initOctetStream = function() { - this.type = 'octet-stream'; - var filename = this.headers['x-file-name']; - var mime = this.headers['content-type']; - - var file = new File({ - path: this._uploadPath(filename), - name: filename, - type: mime - }); - - this.emit('fileBegin', filename, file); - file.open(); - this.openedFiles.push(file); - this._flushing++; - - var self = this; + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate MD5 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ - self._parser = new OctetParser(); + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. - //Keep track of writes that haven't finished so we don't emit the file before it's done being written - var outstandingWrites = 0; + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ - self._parser.on('data', function(buffer){ - self.pause(); - outstandingWrites++; + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); - file.write(buffer, function() { - outstandingWrites--; - self.resume(); + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); - if(self.ended){ - self._parser.emit('doneWritingFile'); - } - }); - }); + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - self._parser.on('end', function(){ - self._flushing--; - self.ended = true; + // serialize message length in bits in little-endian order; since length + // is stored in bytes we multiply by 8 and add carry + var bits, carry = 0; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + bits = md.fullMessageLength[i] * 8 + carry; + carry = (bits / 0x100000000) >>> 0; + finalBlock.putInt32Le(bits >>> 0); + } - var done = function(){ - file.end(function() { - self.emit('file', 'file', file); - self._maybeEnd(); - }); + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3 }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32Le(s2.h0); + rval.putInt32Le(s2.h1); + rval.putInt32Le(s2.h2); + rval.putInt32Le(s2.h3); + return rval; + }; - if(outstandingWrites === 0){ - done(); - } else { - self._parser.once('doneWritingFile', done); - } - }); + return md; }; -IncomingForm.prototype._initJSONencoded = function() { - this.type = 'json'; +// padding, constant tables for calculating md5 +var _padding = null; +var _g = null; +var _r = null; +var _k = null; +var _initialized = false; - var parser = new JSONParser(this) - , self = this; +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); - parser.onField = function(key, val) { - self.emit('field', key, val); - }; + // g values + _g = [ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 1, 6, 11, 0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, + 5, 8, 11, 14, 1, 4, 7, 10, 13, 0, 3, 6, 9, 12, 15, 2, + 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9]; - parser.onEnd = function() { - self.ended = true; - self._maybeEnd(); - }; + // rounds table + _r = [ + 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, + 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, + 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, + 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]; - this._parser = parser; -}; + // get the result of abs(sin(i + 1)) as a 32-bit integer + _k = new Array(64); + for(var i = 0; i < 64; ++i) { + _k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 0x100000000); + } -IncomingForm.prototype._uploadPath = function(filename) { - var buf = crypto.randomBytes(16); - var name = 'upload_' + buf.toString('hex'); + // now initialized + _initialized = true; +} - if (this.keepExtensions) { - var ext = path.extname(filename); - ext = ext.replace(/(\.[a-z0-9]+).*/i, '$1'); +/** + * Updates an MD5 state with the given byte buffer. + * + * @param s the MD5 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t, a, b, c, d, f, r, i; + var len = bytes.length(); + while(len >= 64) { + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; - name += ext; - } + // round 1 + for(i = 0; i < 16; ++i) { + w[i] = bytes.getInt32Le(); + f = d ^ (b & (c ^ d)); + t = (a + f + _k[i] + w[i]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 2 + for(; i < 32; ++i) { + f = c ^ (d & (b ^ c)); + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 3 + for(; i < 48; ++i) { + f = b ^ c ^ d; + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 4 + for(; i < 64; ++i) { + f = c ^ (b | ~d); + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } - return path.join(this.uploadDir, name); -}; + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; -IncomingForm.prototype._maybeEnd = function() { - if (!this.ended || this._flushing || this.error) { - return; + len -= 64; } - - this.emit('end'); -}; +} /***/ }), -/***/ 378: +/***/ 31921: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var IncomingForm = (__nccwpck_require__(48014)/* .IncomingForm */ .c); -IncomingForm.IncomingForm = IncomingForm; -module.exports = IncomingForm; - - -/***/ }), - -/***/ 59230: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/** + * Node.js module for Forge mask generation functions. + * + * @author Stefan Siegl + * + * Copyright 2012 Stefan Siegl + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(19662); -var require;if (global.GENTLY) require = GENTLY.hijack(require); +module.exports = forge.mgf = forge.mgf || {}; +forge.mgf.mgf1 = forge.mgf1; -var Buffer = (__nccwpck_require__(14300).Buffer); -function JSONParser(parent) { - this.parent = parent; - this.chunks = []; - this.bytesWritten = 0; -} -exports.c = JSONParser; +/***/ }), -JSONParser.prototype.write = function(buffer) { - this.bytesWritten += buffer.length; - this.chunks.push(buffer); - return buffer.length; -}; +/***/ 19662: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -JSONParser.prototype.end = function() { - try { - var fields = JSON.parse(Buffer.concat(this.chunks)); - for (var field in fields) { - this.onField(field, fields[field]); - } - } catch (e) { - this.parent.emit('error', e); - } - this.data = null; +/** + * Javascript implementation of mask generation function MGF1. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); - this.onEnd(); -}; +forge.mgf = forge.mgf || {}; +var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {}; +/** + * Creates a MGF1 mask generation function object. + * + * @param md the message digest API to use (eg: forge.md.sha1.create()). + * + * @return a mask generation function object. + */ +mgf1.create = function(md) { + var mgf = { + /** + * Generate mask of specified length. + * + * @param {String} seed The seed for mask generation. + * @param maskLen Number of bytes to generate. + * @return {String} The generated mask. + */ + generate: function(seed, maskLen) { + /* 2. Let T be the empty octet string. */ + var t = new forge.util.ByteBuffer(); -/***/ }), + /* 3. For counter from 0 to ceil(maskLen / hLen), do the following: */ + var len = Math.ceil(maskLen / md.digestLength); + for(var i = 0; i < len; i++) { + /* a. Convert counter to an octet string C of length 4 octets */ + var c = new forge.util.ByteBuffer(); + c.putInt32(i); -/***/ 35100: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + /* b. Concatenate the hash of the seed mgfSeed and C to the octet + * string T: */ + md.start(); + md.update(seed + c.getBytes()); + t.putBuffer(md.digest()); + } -var Buffer = (__nccwpck_require__(14300).Buffer), - s = 0, - S = - { PARSER_UNINITIALIZED: s++, - START: s++, - START_BOUNDARY: s++, - HEADER_FIELD_START: s++, - HEADER_FIELD: s++, - HEADER_VALUE_START: s++, - HEADER_VALUE: s++, - HEADER_VALUE_ALMOST_DONE: s++, - HEADERS_ALMOST_DONE: s++, - PART_DATA_START: s++, - PART_DATA: s++, - PART_END: s++, - END: s++ - }, + /* Output the leading maskLen octets of T as the octet string mask. */ + t.truncate(t.length() - maskLen); + return t.getBytes(); + } + }; - f = 1, - F = - { PART_BOUNDARY: f, - LAST_BOUNDARY: f *= 2 - }, + return mgf; +}; - LF = 10, - CR = 13, - SPACE = 32, - HYPHEN = 45, - COLON = 58, - A = 97, - Z = 122, - lower = function(c) { - return c | 0x20; - }; +/***/ }), -for (s in S) { - exports[s] = S[s]; -} +/***/ 40934: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -function MultipartParser() { - this.boundary = null; - this.boundaryChars = null; - this.lookbehind = null; - this.state = S.PARSER_UNINITIALIZED; +/** + * Object IDs for ASN.1. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); - this.index = null; - this.flags = 0; +forge.pki = forge.pki || {}; +var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {}; + +// set id to name mapping and name to id mapping +function _IN(id, name) { + oids[id] = name; + oids[name] = id; +} +// set id to name mapping only +function _I_(id, name) { + oids[id] = name; } -exports.MultipartParser = MultipartParser; -MultipartParser.stateToString = function(stateNumber) { - for (var state in S) { - var number = S[state]; - if (number === stateNumber) return state; - } -}; +// algorithm OIDs +_IN('1.2.840.113549.1.1.1', 'rsaEncryption'); +// Note: md2 & md4 not implemented +//_IN('1.2.840.113549.1.1.2', 'md2WithRSAEncryption'); +//_IN('1.2.840.113549.1.1.3', 'md4WithRSAEncryption'); +_IN('1.2.840.113549.1.1.4', 'md5WithRSAEncryption'); +_IN('1.2.840.113549.1.1.5', 'sha1WithRSAEncryption'); +_IN('1.2.840.113549.1.1.7', 'RSAES-OAEP'); +_IN('1.2.840.113549.1.1.8', 'mgf1'); +_IN('1.2.840.113549.1.1.9', 'pSpecified'); +_IN('1.2.840.113549.1.1.10', 'RSASSA-PSS'); +_IN('1.2.840.113549.1.1.11', 'sha256WithRSAEncryption'); +_IN('1.2.840.113549.1.1.12', 'sha384WithRSAEncryption'); +_IN('1.2.840.113549.1.1.13', 'sha512WithRSAEncryption'); +// Edwards-curve Digital Signature Algorithm (EdDSA) Ed25519 +_IN('1.3.101.112', 'EdDSA25519'); -MultipartParser.prototype.initWithBoundary = function(str) { - this.boundary = new Buffer(str.length+4); - this.boundary.write('\r\n--', 0); - this.boundary.write(str, 4); - this.lookbehind = new Buffer(this.boundary.length+8); - this.state = S.START; +_IN('1.2.840.10040.4.3', 'dsa-with-sha1'); - this.boundaryChars = {}; - for (var i = 0; i < this.boundary.length; i++) { - this.boundaryChars[this.boundary[i]] = true; - } -}; +_IN('1.3.14.3.2.7', 'desCBC'); -MultipartParser.prototype.write = function(buffer) { - var self = this, - i = 0, - len = buffer.length, - prevIndex = this.index, - index = this.index, - state = this.state, - flags = this.flags, - lookbehind = this.lookbehind, - boundary = this.boundary, - boundaryChars = this.boundaryChars, - boundaryLength = this.boundary.length, - boundaryEnd = boundaryLength - 1, - bufferLength = buffer.length, - c, - cl, +_IN('1.3.14.3.2.26', 'sha1'); +// Deprecated equivalent of sha1WithRSAEncryption +_IN('1.3.14.3.2.29', 'sha1WithRSASignature'); +_IN('2.16.840.1.101.3.4.2.1', 'sha256'); +_IN('2.16.840.1.101.3.4.2.2', 'sha384'); +_IN('2.16.840.1.101.3.4.2.3', 'sha512'); +_IN('2.16.840.1.101.3.4.2.4', 'sha224'); +_IN('2.16.840.1.101.3.4.2.5', 'sha512-224'); +_IN('2.16.840.1.101.3.4.2.6', 'sha512-256'); +_IN('1.2.840.113549.2.2', 'md2'); +_IN('1.2.840.113549.2.5', 'md5'); - mark = function(name) { - self[name+'Mark'] = i; - }, - clear = function(name) { - delete self[name+'Mark']; - }, - callback = function(name, buffer, start, end) { - if (start !== undefined && start === end) { - return; - } +// pkcs#7 content types +_IN('1.2.840.113549.1.7.1', 'data'); +_IN('1.2.840.113549.1.7.2', 'signedData'); +_IN('1.2.840.113549.1.7.3', 'envelopedData'); +_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData'); +_IN('1.2.840.113549.1.7.5', 'digestedData'); +_IN('1.2.840.113549.1.7.6', 'encryptedData'); - var callbackSymbol = 'on'+name.substr(0, 1).toUpperCase()+name.substr(1); - if (callbackSymbol in self) { - self[callbackSymbol](buffer, start, end); - } - }, - dataCallback = function(name, clear) { - var markSymbol = name+'Mark'; - if (!(markSymbol in self)) { - return; - } +// pkcs#9 oids +_IN('1.2.840.113549.1.9.1', 'emailAddress'); +_IN('1.2.840.113549.1.9.2', 'unstructuredName'); +_IN('1.2.840.113549.1.9.3', 'contentType'); +_IN('1.2.840.113549.1.9.4', 'messageDigest'); +_IN('1.2.840.113549.1.9.5', 'signingTime'); +_IN('1.2.840.113549.1.9.6', 'counterSignature'); +_IN('1.2.840.113549.1.9.7', 'challengePassword'); +_IN('1.2.840.113549.1.9.8', 'unstructuredAddress'); +_IN('1.2.840.113549.1.9.14', 'extensionRequest'); - if (!clear) { - callback(name, buffer, self[markSymbol], buffer.length); - self[markSymbol] = 0; - } else { - callback(name, buffer, self[markSymbol], i); - delete self[markSymbol]; - } - }; +_IN('1.2.840.113549.1.9.20', 'friendlyName'); +_IN('1.2.840.113549.1.9.21', 'localKeyId'); +_IN('1.2.840.113549.1.9.22.1', 'x509Certificate'); - for (i = 0; i < len; i++) { - c = buffer[i]; - switch (state) { - case S.PARSER_UNINITIALIZED: - return i; - case S.START: - index = 0; - state = S.START_BOUNDARY; - case S.START_BOUNDARY: - if (index == boundary.length - 2) { - if (c == HYPHEN) { - flags |= F.LAST_BOUNDARY; - } else if (c != CR) { - return i; - } - index++; - break; - } else if (index - 1 == boundary.length - 2) { - if (flags & F.LAST_BOUNDARY && c == HYPHEN){ - callback('end'); - state = S.END; - flags = 0; - } else if (!(flags & F.LAST_BOUNDARY) && c == LF) { - index = 0; - callback('partBegin'); - state = S.HEADER_FIELD_START; - } else { - return i; - } - break; - } +// pkcs#12 safe bags +_IN('1.2.840.113549.1.12.10.1.1', 'keyBag'); +_IN('1.2.840.113549.1.12.10.1.2', 'pkcs8ShroudedKeyBag'); +_IN('1.2.840.113549.1.12.10.1.3', 'certBag'); +_IN('1.2.840.113549.1.12.10.1.4', 'crlBag'); +_IN('1.2.840.113549.1.12.10.1.5', 'secretBag'); +_IN('1.2.840.113549.1.12.10.1.6', 'safeContentsBag'); - if (c != boundary[index+2]) { - index = -2; - } - if (c == boundary[index+2]) { - index++; - } - break; - case S.HEADER_FIELD_START: - state = S.HEADER_FIELD; - mark('headerField'); - index = 0; - case S.HEADER_FIELD: - if (c == CR) { - clear('headerField'); - state = S.HEADERS_ALMOST_DONE; - break; - } +// password-based-encryption for pkcs#12 +_IN('1.2.840.113549.1.5.13', 'pkcs5PBES2'); +_IN('1.2.840.113549.1.5.12', 'pkcs5PBKDF2'); - index++; - if (c == HYPHEN) { - break; - } +_IN('1.2.840.113549.1.12.1.1', 'pbeWithSHAAnd128BitRC4'); +_IN('1.2.840.113549.1.12.1.2', 'pbeWithSHAAnd40BitRC4'); +_IN('1.2.840.113549.1.12.1.3', 'pbeWithSHAAnd3-KeyTripleDES-CBC'); +_IN('1.2.840.113549.1.12.1.4', 'pbeWithSHAAnd2-KeyTripleDES-CBC'); +_IN('1.2.840.113549.1.12.1.5', 'pbeWithSHAAnd128BitRC2-CBC'); +_IN('1.2.840.113549.1.12.1.6', 'pbewithSHAAnd40BitRC2-CBC'); - if (c == COLON) { - if (index == 1) { - // empty header field - return i; - } - dataCallback('headerField', true); - state = S.HEADER_VALUE_START; - break; - } +// hmac OIDs +_IN('1.2.840.113549.2.7', 'hmacWithSHA1'); +_IN('1.2.840.113549.2.8', 'hmacWithSHA224'); +_IN('1.2.840.113549.2.9', 'hmacWithSHA256'); +_IN('1.2.840.113549.2.10', 'hmacWithSHA384'); +_IN('1.2.840.113549.2.11', 'hmacWithSHA512'); - cl = lower(c); - if (cl < A || cl > Z) { - return i; - } - break; - case S.HEADER_VALUE_START: - if (c == SPACE) { - break; - } +// symmetric key algorithm oids +_IN('1.2.840.113549.3.7', 'des-EDE3-CBC'); +_IN('2.16.840.1.101.3.4.1.2', 'aes128-CBC'); +_IN('2.16.840.1.101.3.4.1.22', 'aes192-CBC'); +_IN('2.16.840.1.101.3.4.1.42', 'aes256-CBC'); - mark('headerValue'); - state = S.HEADER_VALUE; - case S.HEADER_VALUE: - if (c == CR) { - dataCallback('headerValue', true); - callback('headerEnd'); - state = S.HEADER_VALUE_ALMOST_DONE; - } - break; - case S.HEADER_VALUE_ALMOST_DONE: - if (c != LF) { - return i; - } - state = S.HEADER_FIELD_START; - break; - case S.HEADERS_ALMOST_DONE: - if (c != LF) { - return i; - } +// certificate issuer/subject OIDs +_IN('2.5.4.3', 'commonName'); +_IN('2.5.4.4', 'surname'); +_IN('2.5.4.5', 'serialNumber'); +_IN('2.5.4.6', 'countryName'); +_IN('2.5.4.7', 'localityName'); +_IN('2.5.4.8', 'stateOrProvinceName'); +_IN('2.5.4.9', 'streetAddress'); +_IN('2.5.4.10', 'organizationName'); +_IN('2.5.4.11', 'organizationalUnitName'); +_IN('2.5.4.12', 'title'); +_IN('2.5.4.13', 'description'); +_IN('2.5.4.15', 'businessCategory'); +_IN('2.5.4.17', 'postalCode'); +_IN('2.5.4.42', 'givenName'); +_IN('1.3.6.1.4.1.311.60.2.1.2', 'jurisdictionOfIncorporationStateOrProvinceName'); +_IN('1.3.6.1.4.1.311.60.2.1.3', 'jurisdictionOfIncorporationCountryName'); - callback('headersEnd'); - state = S.PART_DATA_START; - break; - case S.PART_DATA_START: - state = S.PART_DATA; - mark('partData'); - case S.PART_DATA: - prevIndex = index; +// X.509 extension OIDs +_IN('2.16.840.1.113730.1.1', 'nsCertType'); +_IN('2.16.840.1.113730.1.13', 'nsComment'); // deprecated in theory; still widely used +_I_('2.5.29.1', 'authorityKeyIdentifier'); // deprecated, use .35 +_I_('2.5.29.2', 'keyAttributes'); // obsolete use .37 or .15 +_I_('2.5.29.3', 'certificatePolicies'); // deprecated, use .32 +_I_('2.5.29.4', 'keyUsageRestriction'); // obsolete use .37 or .15 +_I_('2.5.29.5', 'policyMapping'); // deprecated use .33 +_I_('2.5.29.6', 'subtreesConstraint'); // obsolete use .30 +_I_('2.5.29.7', 'subjectAltName'); // deprecated use .17 +_I_('2.5.29.8', 'issuerAltName'); // deprecated use .18 +_I_('2.5.29.9', 'subjectDirectoryAttributes'); +_I_('2.5.29.10', 'basicConstraints'); // deprecated use .19 +_I_('2.5.29.11', 'nameConstraints'); // deprecated use .30 +_I_('2.5.29.12', 'policyConstraints'); // deprecated use .36 +_I_('2.5.29.13', 'basicConstraints'); // deprecated use .19 +_IN('2.5.29.14', 'subjectKeyIdentifier'); +_IN('2.5.29.15', 'keyUsage'); +_I_('2.5.29.16', 'privateKeyUsagePeriod'); +_IN('2.5.29.17', 'subjectAltName'); +_IN('2.5.29.18', 'issuerAltName'); +_IN('2.5.29.19', 'basicConstraints'); +_I_('2.5.29.20', 'cRLNumber'); +_I_('2.5.29.21', 'cRLReason'); +_I_('2.5.29.22', 'expirationDate'); +_I_('2.5.29.23', 'instructionCode'); +_I_('2.5.29.24', 'invalidityDate'); +_I_('2.5.29.25', 'cRLDistributionPoints'); // deprecated use .31 +_I_('2.5.29.26', 'issuingDistributionPoint'); // deprecated use .28 +_I_('2.5.29.27', 'deltaCRLIndicator'); +_I_('2.5.29.28', 'issuingDistributionPoint'); +_I_('2.5.29.29', 'certificateIssuer'); +_I_('2.5.29.30', 'nameConstraints'); +_IN('2.5.29.31', 'cRLDistributionPoints'); +_IN('2.5.29.32', 'certificatePolicies'); +_I_('2.5.29.33', 'policyMappings'); +_I_('2.5.29.34', 'policyConstraints'); // deprecated use .36 +_IN('2.5.29.35', 'authorityKeyIdentifier'); +_I_('2.5.29.36', 'policyConstraints'); +_IN('2.5.29.37', 'extKeyUsage'); +_I_('2.5.29.46', 'freshestCRL'); +_I_('2.5.29.54', 'inhibitAnyPolicy'); - if (index === 0) { - // boyer-moore derrived algorithm to safely skip non-boundary data - i += boundaryEnd; - while (i < bufferLength && !(buffer[i] in boundaryChars)) { - i += boundaryLength; - } - i -= boundaryEnd; - c = buffer[i]; - } +// extKeyUsage purposes +_IN('1.3.6.1.4.1.11129.2.4.2', 'timestampList'); +_IN('1.3.6.1.5.5.7.1.1', 'authorityInfoAccess'); +_IN('1.3.6.1.5.5.7.3.1', 'serverAuth'); +_IN('1.3.6.1.5.5.7.3.2', 'clientAuth'); +_IN('1.3.6.1.5.5.7.3.3', 'codeSigning'); +_IN('1.3.6.1.5.5.7.3.4', 'emailProtection'); +_IN('1.3.6.1.5.5.7.3.8', 'timeStamping'); - if (index < boundary.length) { - if (boundary[index] == c) { - if (index === 0) { - dataCallback('partData', true); - } - index++; - } else { - index = 0; - } - } else if (index == boundary.length) { - index++; - if (c == CR) { - // CR = part boundary - flags |= F.PART_BOUNDARY; - } else if (c == HYPHEN) { - // HYPHEN = end boundary - flags |= F.LAST_BOUNDARY; - } else { - index = 0; - } - } else if (index - 1 == boundary.length) { - if (flags & F.PART_BOUNDARY) { - index = 0; - if (c == LF) { - // unset the PART_BOUNDARY flag - flags &= ~F.PART_BOUNDARY; - callback('partEnd'); - callback('partBegin'); - state = S.HEADER_FIELD_START; - break; - } - } else if (flags & F.LAST_BOUNDARY) { - if (c == HYPHEN) { - callback('partEnd'); - callback('end'); - state = S.END; - flags = 0; - } else { - index = 0; - } - } else { - index = 0; - } - } - if (index > 0) { - // when matching a possible boundary, keep a lookbehind reference - // in case it turns out to be a false lead - lookbehind[index-1] = c; - } else if (prevIndex > 0) { - // if our boundary turned out to be rubbish, the captured lookbehind - // belongs to partData - callback('partData', lookbehind, 0, prevIndex); - prevIndex = 0; - mark('partData'); +/***/ }), - // reconsider the current character even so it interrupted the sequence - // it could be the beginning of a new sequence - i--; - } +/***/ 42254: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - break; - case S.END: - break; - default: - return i; - } - } +/** + * Password-based encryption functions. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * An EncryptedPrivateKeyInfo: + * + * EncryptedPrivateKeyInfo ::= SEQUENCE { + * encryptionAlgorithm EncryptionAlgorithmIdentifier, + * encryptedData EncryptedData } + * + * EncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * EncryptedData ::= OCTET STRING + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(12004); +__nccwpck_require__(87878); +__nccwpck_require__(42499); +__nccwpck_require__(5454); +__nccwpck_require__(40934); +__nccwpck_require__(72282); +__nccwpck_require__(21117); +__nccwpck_require__(87088); +__nccwpck_require__(18032); +__nccwpck_require__(56361); +__nccwpck_require__(46831); - dataCallback('headerField'); - dataCallback('headerValue'); - dataCallback('partData'); +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} - this.index = index; - this.state = state; - this.flags = flags; +// shortcut for asn.1 API +var asn1 = forge.asn1; - return len; +/* Password-based encryption implementation. */ +var pki = forge.pki = forge.pki || {}; +module.exports = pki.pbe = forge.pbe = forge.pbe || {}; +var oids = pki.oids; + +// validator for an EncryptedPrivateKeyInfo structure +// Note: Currently only works w/algorithm params +var encryptedPrivateKeyValidator = { + name: 'EncryptedPrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedPrivateKeyInfo.encryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encryptionOid' + }, { + name: 'AlgorithmIdentifier.parameters', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'encryptionParams' + }] + }, { + // encryptedData + name: 'EncryptedPrivateKeyInfo.encryptedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encryptedData' + }] }; -MultipartParser.prototype.end = function() { - var callback = function(self, name) { - var callbackSymbol = 'on'+name.substr(0, 1).toUpperCase()+name.substr(1); - if (callbackSymbol in self) { - self[callbackSymbol](); - } - }; - if ((this.state == S.HEADER_FIELD_START && this.index === 0) || - (this.state == S.PART_DATA && this.index == this.boundary.length)) { - callback(this, 'partEnd'); - callback(this, 'end'); - } else if (this.state != S.END) { - return new Error('MultipartParser.end(): stream ended unexpectedly: ' + this.explain()); - } +// validator for a PBES2Algorithms structure +// Note: Currently only works w/PBKDF2 + AES encryption schemes +var PBES2AlgorithmsValidator = { + name: 'PBES2Algorithms', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.keyDerivationFunc', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.keyDerivationFunc.oid', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'kdfOid' + }, { + name: 'PBES2Algorithms.params', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.params.salt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'kdfSalt' + }, { + name: 'PBES2Algorithms.params.iterationCount', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'kdfIterationCount' + }, { + name: 'PBES2Algorithms.params.keyLength', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + optional: true, + capture: 'keyLength' + }, { + // prf + name: 'PBES2Algorithms.params.prf', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'PBES2Algorithms.params.prf.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'prfOid' + }] + }] + }] + }, { + name: 'PBES2Algorithms.encryptionScheme', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.encryptionScheme.oid', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encOid' + }, { + name: 'PBES2Algorithms.encryptionScheme.iv', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encIv' + }] + }] }; -MultipartParser.prototype.explain = function() { - return 'state = ' + MultipartParser.stateToString(this.state); +var pkcs12PbeParamsValidator = { + name: 'pkcs-12PbeParams', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'pkcs-12PbeParams.salt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'salt' + }, { + name: 'pkcs-12PbeParams.iterations', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'iterations' + }] }; +/** + * Encrypts a ASN.1 PrivateKeyInfo object, producing an EncryptedPrivateKeyInfo. + * + * PBES2Algorithms ALGORITHM-IDENTIFIER ::= + * { {PBES2-params IDENTIFIED BY id-PBES2}, ...} + * + * id-PBES2 OBJECT IDENTIFIER ::= {pkcs-5 13} + * + * PBES2-params ::= SEQUENCE { + * keyDerivationFunc AlgorithmIdentifier {{PBES2-KDFs}}, + * encryptionScheme AlgorithmIdentifier {{PBES2-Encs}} + * } + * + * PBES2-KDFs ALGORITHM-IDENTIFIER ::= + * { {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... } + * + * PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... } + * + * PBKDF2-params ::= SEQUENCE { + * salt CHOICE { + * specified OCTET STRING, + * otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}} + * }, + * iterationCount INTEGER (1..MAX), + * keyLength INTEGER (1..MAX) OPTIONAL, + * prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 + * } + * + * @param obj the ASN.1 PrivateKeyInfo object. + * @param password the password to encrypt with. + * @param options: + * algorithm the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. + * count the iteration count to use. + * saltSize the salt size to use. + * prfAlgorithm the PRF message digest algorithm to use + * ('sha1', 'sha224', 'sha256', 'sha384', 'sha512') + * + * @return the ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptPrivateKeyInfo = function(obj, password, options) { + // set default options + options = options || {}; + options.saltSize = options.saltSize || 8; + options.count = options.count || 2048; + options.algorithm = options.algorithm || 'aes128'; + options.prfAlgorithm = options.prfAlgorithm || 'sha1'; -/***/ }), + // generate PBE params + var salt = forge.random.getBytesSync(options.saltSize); + var count = options.count; + var countBytes = asn1.integerToDer(count); + var dkLen; + var encryptionAlgorithm; + var encryptedData; + if(options.algorithm.indexOf('aes') === 0 || options.algorithm === 'des') { + // do PBES2 + var ivLen, encOid, cipherFn; + switch(options.algorithm) { + case 'aes128': + dkLen = 16; + ivLen = 16; + encOid = oids['aes128-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes192': + dkLen = 24; + ivLen = 16; + encOid = oids['aes192-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes256': + dkLen = 32; + ivLen = 16; + encOid = oids['aes256-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'des': + dkLen = 8; + ivLen = 8; + encOid = oids['desCBC']; + cipherFn = forge.des.createEncryptionCipher; + break; + default: + var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); + error.algorithm = options.algorithm; + throw error; + } -/***/ 42028: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // get PRF message digest + var prfAlgorithm = 'hmacWith' + options.prfAlgorithm.toUpperCase(); + var md = prfAlgorithmToMessageDigest(prfAlgorithm); -var EventEmitter = (__nccwpck_require__(82361).EventEmitter) - , util = __nccwpck_require__(73837); + // encrypt private key using pbe SHA-1 and AES/DES + var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); + var iv = forge.random.getBytesSync(ivLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(asn1.toDer(obj)); + cipher.finish(); + encryptedData = cipher.output.getBytes(); -function OctetParser(options){ - if(!(this instanceof OctetParser)) return new OctetParser(options); - EventEmitter.call(this); -} + // get PBKDF2-params + var params = createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm); -util.inherits(OctetParser, EventEmitter); + encryptionAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pkcs5PBES2']).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // keyDerivationFunc + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pkcs5PBKDF2']).getBytes()), + // PBKDF2-params + params + ]), + // encryptionScheme + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(encOid).getBytes()), + // iv + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, iv) + ]) + ]) + ]); + } else if(options.algorithm === '3des') { + // Do PKCS12 PBE + dkLen = 24; -exports.h = OctetParser; + var saltBytes = new forge.util.ByteBuffer(salt); + var dk = pki.pbe.generatePkcs12Key(password, saltBytes, 1, count, dkLen); + var iv = pki.pbe.generatePkcs12Key(password, saltBytes, 2, count, dkLen); + var cipher = forge.des.createEncryptionCipher(dk); + cipher.start(iv); + cipher.update(asn1.toDer(obj)); + cipher.finish(); + encryptedData = cipher.output.getBytes(); -OctetParser.prototype.write = function(buffer) { - this.emit('data', buffer); - return buffer.length; -}; + encryptionAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pbeWithSHAAnd3-KeyTripleDES-CBC']).getBytes()), + // pkcs-12PbeParams + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // salt + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), + // iteration count + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + countBytes.getBytes()) + ]) + ]); + } else { + var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); + error.algorithm = options.algorithm; + throw error; + } -OctetParser.prototype.end = function() { - this.emit('end'); + // EncryptedPrivateKeyInfo + var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // encryptionAlgorithm + encryptionAlgorithm, + // encryptedData + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, encryptedData) + ]); + return rval; }; +/** + * Decrypts a ASN.1 PrivateKeyInfo object. + * + * @param obj the ASN.1 EncryptedPrivateKeyInfo object. + * @param password the password to decrypt with. + * + * @return the ASN.1 PrivateKeyInfo on success, null on failure. + */ +pki.decryptPrivateKeyInfo = function(obj, password) { + var rval = null; -/***/ }), + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(obj, encryptedPrivateKeyValidator, capture, errors)) { + var error = new Error('Cannot read encrypted private key. ' + + 'ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } -/***/ 20258: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // get cipher + var oid = asn1.derToOid(capture.encryptionOid); + var cipher = pki.pbe.getCipher(oid, capture.encryptionParams, password); -var require;if (global.GENTLY) require = GENTLY.hijack(require); + // get encrypted data + var encrypted = forge.util.createBuffer(capture.encryptedData); -// This is a buffering parser, not quite as nice as the multipart one. -// If I find time I'll rewrite this to be fully streaming as well -var querystring = __nccwpck_require__(63477); + cipher.update(encrypted); + if(cipher.finish()) { + rval = asn1.fromDer(cipher.output); + } -function QuerystringParser(maxKeys) { - this.maxKeys = maxKeys; - this.buffer = ''; -} -exports.l = QuerystringParser; + return rval; +}; -QuerystringParser.prototype.write = function(buffer) { - this.buffer += buffer.toString('ascii'); - return buffer.length; +/** + * Converts a EncryptedPrivateKeyInfo to PEM format. + * + * @param epki the EncryptedPrivateKeyInfo. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted encrypted private key. + */ +pki.encryptedPrivateKeyToPem = function(epki, maxline) { + // convert to DER, then PEM-encode + var msg = { + type: 'ENCRYPTED PRIVATE KEY', + body: asn1.toDer(epki).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); }; -QuerystringParser.prototype.end = function() { - var fields = querystring.parse(this.buffer, '&', '=', { maxKeys: this.maxKeys }); - for (var field in fields) { - this.onField(field, fields[field]); +/** + * Converts a PEM-encoded EncryptedPrivateKeyInfo to ASN.1 format. Decryption + * is not performed. + * + * @param pem the EncryptedPrivateKeyInfo in PEM-format. + * + * @return the ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptedPrivateKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'ENCRYPTED PRIVATE KEY') { + var error = new Error('Could not convert encrypted private key from PEM; ' + + 'PEM header type is "ENCRYPTED PRIVATE KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert encrypted private key from PEM; ' + + 'PEM is encrypted.'); } - this.buffer = ''; - this.onEnd(); + // convert DER to ASN.1 object + return asn1.fromDer(msg.body); }; +/** + * Encrypts an RSA private key. By default, the key will be wrapped in + * a PrivateKeyInfo and encrypted to produce a PKCS#8 EncryptedPrivateKeyInfo. + * This is the standard, preferred way to encrypt a private key. + * + * To produce a non-standard PEM-encrypted private key that uses encapsulated + * headers to indicate the encryption algorithm (old-style non-PKCS#8 OpenSSL + * private key encryption), set the 'legacy' option to true. Note: Using this + * option will cause the iteration count to be forced to 1. + * + * Note: The 'des' algorithm is supported, but it is not considered to be + * secure because it only uses a single 56-bit key. If possible, it is highly + * recommended that a different algorithm be used. + * + * @param rsaKey the RSA key to encrypt. + * @param password the password to use. + * @param options: + * algorithm: the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des', 'des'). + * count: the iteration count to use. + * saltSize: the salt size to use. + * legacy: output an old non-PKCS#8 PEM-encrypted+encapsulated + * headers (DEK-Info) private key. + * + * @return the PEM-encoded ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptRsaPrivateKey = function(rsaKey, password, options) { + // standard PKCS#8 + options = options || {}; + if(!options.legacy) { + // encrypt PrivateKeyInfo + var rval = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(rsaKey)); + rval = pki.encryptPrivateKeyInfo(rval, password, options); + return pki.encryptedPrivateKeyToPem(rval); + } + // legacy non-PKCS#8 + var algorithm; + var iv; + var dkLen; + var cipherFn; + switch(options.algorithm) { + case 'aes128': + algorithm = 'AES-128-CBC'; + dkLen = 16; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes192': + algorithm = 'AES-192-CBC'; + dkLen = 24; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes256': + algorithm = 'AES-256-CBC'; + dkLen = 32; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case '3des': + algorithm = 'DES-EDE3-CBC'; + dkLen = 24; + iv = forge.random.getBytesSync(8); + cipherFn = forge.des.createEncryptionCipher; + break; + case 'des': + algorithm = 'DES-CBC'; + dkLen = 8; + iv = forge.random.getBytesSync(8); + cipherFn = forge.des.createEncryptionCipher; + break; + default: + var error = new Error('Could not encrypt RSA private key; unsupported ' + + 'encryption algorithm "' + options.algorithm + '".'); + error.algorithm = options.algorithm; + throw error; + } -/***/ }), - -/***/ 58993: -/***/ ((module) => { + // encrypt private key using OpenSSL legacy key derivation + var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(asn1.toDer(pki.privateKeyToAsn1(rsaKey))); + cipher.finish(); -"use strict"; + var msg = { + type: 'RSA PRIVATE KEY', + procType: { + version: '4', + type: 'ENCRYPTED' + }, + dekInfo: { + algorithm: algorithm, + parameters: forge.util.bytesToHex(iv).toUpperCase() + }, + body: cipher.output.getBytes() + }; + return forge.pem.encode(msg); +}; +/** + * Decrypts an RSA private key. + * + * @param pem the PEM-formatted EncryptedPrivateKeyInfo to decrypt. + * @param password the password to use. + * + * @return the RSA key on success, null on failure. + */ +pki.decryptRsaPrivateKey = function(pem, password) { + var rval = null; -/* eslint no-invalid-this: 1 */ + var msg = forge.pem.decode(pem)[0]; -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var slice = Array.prototype.slice; -var toStr = Object.prototype.toString; -var funcType = '[object Function]'; + if(msg.type !== 'ENCRYPTED PRIVATE KEY' && + msg.type !== 'PRIVATE KEY' && + msg.type !== 'RSA PRIVATE KEY') { + var error = new Error('Could not convert private key from PEM; PEM header type ' + + 'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".'); + error.headerType = error; + throw error; + } -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.call(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + var dkLen; + var cipherFn; + switch(msg.dekInfo.algorithm) { + case 'DES-CBC': + dkLen = 8; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'DES-EDE3-CBC': + dkLen = 24; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'AES-128-CBC': + dkLen = 16; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'AES-192-CBC': + dkLen = 24; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'AES-256-CBC': + dkLen = 32; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'RC2-40-CBC': + dkLen = 5; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 40); + }; + break; + case 'RC2-64-CBC': + dkLen = 8; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 64); + }; + break; + case 'RC2-128-CBC': + dkLen = 16; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 128); + }; + break; + default: + var error = new Error('Could not decrypt private key; unsupported ' + + 'encryption algorithm "' + msg.dekInfo.algorithm + '".'); + error.algorithm = msg.dekInfo.algorithm; + throw error; } - var args = slice.call(arguments, 1); - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - args.concat(slice.call(arguments)) - ); - if (Object(result) === result) { - return result; - } - return this; - } else { - return target.apply( - that, - args.concat(slice.call(arguments)) - ); - } - }; - - var boundLength = Math.max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs.push('$' + i); + // use OpenSSL legacy key derivation + var iv = forge.util.hexToBytes(msg.dekInfo.parameters); + var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(forge.util.createBuffer(msg.body)); + if(cipher.finish()) { + rval = cipher.output.getBytes(); + } else { + return rval; } + } else { + rval = msg.body; + } - bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder); + if(msg.type === 'ENCRYPTED PRIVATE KEY') { + rval = pki.decryptPrivateKeyInfo(asn1.fromDer(rval), password); + } else { + // decryption already performed above + rval = asn1.fromDer(rval); + } - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } + if(rval !== null) { + rval = pki.privateKeyFromAsn1(rval); + } - return bound; + return rval; }; +/** + * Derives a PKCS#12 key. + * + * @param password the password to derive the key material from, null or + * undefined for none. + * @param salt the salt, as a ByteBuffer, to use. + * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). + * @param iter the iteration count. + * @param n the number of bytes to derive from the password. + * @param md the message digest to use, defaults to SHA-1. + * + * @return a ByteBuffer with the bytes derived from the password. + */ +pki.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md) { + var j, l; -/***/ }), - -/***/ 353: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if(typeof md === 'undefined' || md === null) { + if(!('sha1' in forge.md)) { + throw new Error('"sha1" hash algorithm unavailable.'); + } + md = forge.md.sha1.create(); + } -"use strict"; + var u = md.digestLength; + var v = md.blockLength; + var result = new forge.util.ByteBuffer(); + /* Convert password to Unicode byte buffer + trailing 0-byte. */ + var passBuf = new forge.util.ByteBuffer(); + if(password !== null && password !== undefined) { + for(l = 0; l < password.length; l++) { + passBuf.putInt16(password.charCodeAt(l)); + } + passBuf.putInt16(0); + } -var implementation = __nccwpck_require__(58993); + /* Length of salt and password in BYTES. */ + var p = passBuf.length(); + var s = salt.length(); -module.exports = Function.prototype.bind || implementation; + /* 1. Construct a string, D (the "diversifier"), by concatenating + v copies of ID. */ + var D = new forge.util.ByteBuffer(); + D.fillWithByte(id, v); + /* 2. Concatenate copies of the salt together to create a string S of length + v * ceil(s / v) bytes (the final copy of the salt may be truncated + to create S). + Note that if the salt is the empty string, then so is S. */ + var Slen = v * Math.ceil(s / v); + var S = new forge.util.ByteBuffer(); + for(l = 0; l < Slen; l++) { + S.putByte(salt.at(l % s)); + } -/***/ }), + /* 3. Concatenate copies of the password together to create a string P of + length v * ceil(p / v) bytes (the final copy of the password may be + truncated to create P). + Note that if the password is the empty string, then so is P. */ + var Plen = v * Math.ceil(p / v); + var P = new forge.util.ByteBuffer(); + for(l = 0; l < Plen; l++) { + P.putByte(passBuf.at(l % p)); + } -/***/ 83245: -/***/ ((__unused_webpack_module, exports) => { + /* 4. Set I=S||P to be the concatenation of S and P. */ + var I = S; + I.putBuffer(P); -"use strict"; + /* 5. Set c=ceil(n / u). */ + var c = Math.ceil(n / u); -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GaxiosError = void 0; -/* eslint-disable @typescript-eslint/no-explicit-any */ -class GaxiosError extends Error { - constructor(message, options, response) { - super(message); - this.response = response; - this.config = options; - this.code = response.status.toString(); + /* 6. For i=1, 2, ..., c, do the following: */ + for(var i = 1; i <= c; i++) { + /* a) Set Ai=H^r(D||I). (l.e. the rth hash of D||I, H(H(H(...H(D||I)))) */ + var buf = new forge.util.ByteBuffer(); + buf.putBytes(D.bytes()); + buf.putBytes(I.bytes()); + for(var round = 0; round < iter; round++) { + md.start(); + md.update(buf.getBytes()); + buf = md.digest(); } -} -exports.GaxiosError = GaxiosError; -//# sourceMappingURL=common.js.map - -/***/ }), -/***/ 68943: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Gaxios = void 0; -const extend_1 = __importDefault(__nccwpck_require__(98035)); -const https_1 = __nccwpck_require__(95687); -const node_fetch_1 = __importDefault(__nccwpck_require__(73413)); -const querystring_1 = __importDefault(__nccwpck_require__(63477)); -const is_stream_1 = __importDefault(__nccwpck_require__(68064)); -const url_1 = __nccwpck_require__(57310); -const common_1 = __nccwpck_require__(83245); -const retry_1 = __nccwpck_require__(87567); -/* eslint-disable @typescript-eslint/no-explicit-any */ -const fetch = hasFetch() ? window.fetch : node_fetch_1.default; -function hasWindow() { - return typeof window !== 'undefined' && !!window; -} -function hasFetch() { - return hasWindow() && !!window.fetch; -} -function hasBuffer() { - return typeof Buffer !== 'undefined'; -} -function hasHeader(options, header) { - return !!getHeader(options, header); -} -function getHeader(options, header) { - header = header.toLowerCase(); - for (const key of Object.keys((options === null || options === void 0 ? void 0 : options.headers) || {})) { - if (header === key.toLowerCase()) { - return options.headers[key]; - } - } - return undefined; -} -let HttpsProxyAgent; -function loadProxy() { - const proxy = process.env.HTTPS_PROXY || - process.env.https_proxy || - process.env.HTTP_PROXY || - process.env.http_proxy; - if (proxy) { - HttpsProxyAgent = __nccwpck_require__(6676); - } - return proxy; -} -loadProxy(); -function skipProxy(url) { - var _a; - const noProxyEnv = (_a = process.env.NO_PROXY) !== null && _a !== void 0 ? _a : process.env.no_proxy; - if (!noProxyEnv) { - return false; - } - const noProxyUrls = noProxyEnv.split(','); - const parsedURL = new url_1.URL(url); - return !!noProxyUrls.find(url => { - if (url.startsWith('*.') || url.startsWith('.')) { - url = url.replace(/^\*\./, '.'); - return parsedURL.hostname.endsWith(url); - } - else { - return url === parsedURL.origin || url === parsedURL.hostname; - } - }); -} -// Figure out if we should be using a proxy. Only if it's required, load -// the https-proxy-agent module as it adds startup cost. -function getProxy(url) { - // If there is a match between the no_proxy env variables and the url, then do not proxy - if (skipProxy(url)) { - return undefined; - // If there is not a match between the no_proxy env variables and the url, check to see if there should be a proxy - } - else { - return loadProxy(); - } -} -class Gaxios { - /** - * The Gaxios class is responsible for making HTTP requests. - * @param defaults The default set of options to be used for this instance. - */ - constructor(defaults) { - this.agentCache = new Map(); - this.defaults = defaults || {}; - } - /** - * Perform an HTTP request with the given options. - * @param opts Set of HTTP options that will be used for this HTTP request. - */ - async request(opts = {}) { - opts = this.validateOpts(opts); - return this._request(opts); - } - async _defaultAdapter(opts) { - const fetchImpl = opts.fetchImplementation || fetch; - const res = (await fetchImpl(opts.url, opts)); - const data = await this.getResponseData(opts, res); - return this.translateResponse(opts, res, data); - } - /** - * Internal, retryable version of the `request` method. - * @param opts Set of HTTP options that will be used for this HTTP request. - */ - async _request(opts = {}) { - try { - let translatedResponse; - if (opts.adapter) { - translatedResponse = await opts.adapter(opts, this._defaultAdapter.bind(this)); - } - else { - translatedResponse = await this._defaultAdapter(opts); - } - if (!opts.validateStatus(translatedResponse.status)) { - throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); - } - return translatedResponse; - } - catch (e) { - const err = e; - err.config = opts; - const { shouldRetry, config } = await retry_1.getRetryConfig(e); - if (shouldRetry && config) { - err.config.retryConfig.currentRetryAttempt = - config.retryConfig.currentRetryAttempt; - return this._request(err.config); - } - throw err; - } - } - async getResponseData(opts, res) { - switch (opts.responseType) { - case 'stream': - return res.body; - case 'json': { - let data = await res.text(); - try { - data = JSON.parse(data); - } - catch (_a) { - // continue - } - return data; - } - case 'arraybuffer': - return res.arrayBuffer(); - case 'blob': - return res.blob(); - default: - return res.text(); - } - } - /** - * Validates the options, and merges them with defaults. - * @param opts The original options passed from the client. - */ - validateOpts(options) { - const opts = extend_1.default(true, {}, this.defaults, options); - if (!opts.url) { - throw new Error('URL is required.'); - } - // baseUrl has been deprecated, remove in 2.0 - const baseUrl = opts.baseUrl || opts.baseURL; - if (baseUrl) { - opts.url = baseUrl + opts.url; - } - opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; - if (opts.params && Object.keys(opts.params).length > 0) { - let additionalQueryParams = opts.paramsSerializer(opts.params); - if (additionalQueryParams.startsWith('?')) { - additionalQueryParams = additionalQueryParams.slice(1); - } - const prefix = opts.url.includes('?') ? '&' : '?'; - opts.url = opts.url + prefix + additionalQueryParams; - } - if (typeof options.maxContentLength === 'number') { - opts.size = options.maxContentLength; - } - if (typeof options.maxRedirects === 'number') { - opts.follow = options.maxRedirects; - } - opts.headers = opts.headers || {}; - if (opts.data) { - const isFormData = typeof FormData === 'undefined' - ? false - : (opts === null || opts === void 0 ? void 0 : opts.data) instanceof FormData; - if (is_stream_1.default.readable(opts.data)) { - opts.body = opts.data; - } - else if (hasBuffer() && Buffer.isBuffer(opts.data)) { - // Do not attempt to JSON.stringify() a Buffer: - opts.body = opts.data; - if (!hasHeader(opts, 'Content-Type')) { - opts.headers['Content-Type'] = 'application/json'; - } - } - else if (typeof opts.data === 'object') { - // If www-form-urlencoded content type has been set, but data is - // provided as an object, serialize the content using querystring: - if (!isFormData) { - if (getHeader(opts, 'content-type') === - 'application/x-www-form-urlencoded') { - opts.body = opts.paramsSerializer(opts.data); - } - else { - // } else if (!(opts.data instanceof FormData)) { - if (!hasHeader(opts, 'Content-Type')) { - opts.headers['Content-Type'] = 'application/json'; - } - opts.body = JSON.stringify(opts.data); - } - } - } - else { - opts.body = opts.data; - } - } - opts.validateStatus = opts.validateStatus || this.validateStatus; - opts.responseType = opts.responseType || 'json'; - if (!opts.headers['Accept'] && opts.responseType === 'json') { - opts.headers['Accept'] = 'application/json'; - } - opts.method = opts.method || 'GET'; - const proxy = getProxy(opts.url); - if (proxy) { - if (this.agentCache.has(proxy)) { - opts.agent = this.agentCache.get(proxy); - } - else { - // Proxy is being used in conjunction with mTLS. - if (opts.cert && opts.key) { - const parsedURL = new url_1.URL(proxy); - opts.agent = new HttpsProxyAgent({ - port: parsedURL.port, - host: parsedURL.host, - protocol: parsedURL.protocol, - cert: opts.cert, - key: opts.key, - }); - } - else { - opts.agent = new HttpsProxyAgent(proxy); - } - this.agentCache.set(proxy, opts.agent); - } - } - else if (opts.cert && opts.key) { - // Configure client for mTLS: - if (this.agentCache.has(opts.key)) { - opts.agent = this.agentCache.get(opts.key); - } - else { - opts.agent = new https_1.Agent({ - cert: opts.cert, - key: opts.key, - }); - this.agentCache.set(opts.key, opts.agent); - } - } - return opts; - } - /** - * By default, throw for any non-2xx status code - * @param status status code from the HTTP response - */ - validateStatus(status) { - return status >= 200 && status < 300; - } - /** - * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) - * @param params key value pars to encode - */ - paramsSerializer(params) { - return querystring_1.default.stringify(params); - } - translateResponse(opts, res, data) { - // headers need to be converted from a map to an obj - const headers = {}; - res.headers.forEach((value, key) => { - headers[key] = value; - }); - return { - config: opts, - data: data, - headers, - status: res.status, - statusText: res.statusText, - // XMLHttpRequestLike - request: { - responseURL: res.url, - }, - }; + /* b) Concatenate copies of Ai to create a string B of length v bytes (the + final copy of Ai may be truncated to create B). */ + var B = new forge.util.ByteBuffer(); + for(l = 0; l < v; l++) { + B.putByte(buf.at(l % u)); } -} -exports.Gaxios = Gaxios; -//# sourceMappingURL=gaxios.js.map -/***/ }), + /* c) Treating I as a concatenation I0, I1, ..., Ik-1 of v-byte blocks, + where k=ceil(s / v) + ceil(p / v), modify I by setting + Ij=(Ij+B+1) mod 2v for each j. */ + var k = Math.ceil(s / v) + Math.ceil(p / v); + var Inew = new forge.util.ByteBuffer(); + for(j = 0; j < k; j++) { + var chunk = new forge.util.ByteBuffer(I.getBytes(v)); + var x = 0x1ff; + for(l = B.length() - 1; l >= 0; l--) { + x = x >> 8; + x += B.at(l) + chunk.at(l); + chunk.setAt(l, x & 0xff); + } + Inew.putBuffer(chunk); + } + I = Inew; -/***/ 33635: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + /* Add Ai to A. */ + result.putBuffer(buf); + } -"use strict"; + result.truncate(result.length() - n); + return result; +}; -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.request = exports.instance = exports.Gaxios = void 0; -const gaxios_1 = __nccwpck_require__(68943); -Object.defineProperty(exports, "Gaxios", ({ enumerable: true, get: function () { return gaxios_1.Gaxios; } })); -var common_1 = __nccwpck_require__(83245); -Object.defineProperty(exports, "GaxiosError", ({ enumerable: true, get: function () { return common_1.GaxiosError; } })); -/** - * The default instance used when the `request` method is directly - * invoked. - */ -exports.instance = new gaxios_1.Gaxios(); /** - * Make an HTTP request using the given options. - * @param opts Options for the request + * Get new Forge cipher object instance. + * + * @param oid the OID (in string notation). + * @param params the ASN.1 params object. + * @param password the password to decrypt with. + * + * @return new cipher object instance. */ -async function request(opts) { - return exports.instance.request(opts); -} -exports.request = request; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 87567: -/***/ ((__unused_webpack_module, exports) => { +pki.pbe.getCipher = function(oid, params, password) { + switch(oid) { + case pki.oids['pkcs5PBES2']: + return pki.pbe.getCipherForPBES2(oid, params, password); -"use strict"; + case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: + case pki.oids['pbewithSHAAnd40BitRC2-CBC']: + return pki.pbe.getCipherForPKCS12PBE(oid, params, password); -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRetryConfig = void 0; -async function getRetryConfig(err) { - var _a; - let config = getConfig(err); - if (!err || !err.config || (!config && !err.config.retry)) { - return { shouldRetry: false }; - } - config = config || {}; - config.currentRetryAttempt = config.currentRetryAttempt || 0; - config.retry = - config.retry === undefined || config.retry === null ? 3 : config.retry; - config.httpMethodsToRetry = config.httpMethodsToRetry || [ - 'GET', - 'HEAD', - 'PUT', - 'OPTIONS', - 'DELETE', - ]; - config.noResponseRetries = - config.noResponseRetries === undefined || config.noResponseRetries === null - ? 2 - : config.noResponseRetries; - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - const retryRanges = [ - // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes - // 1xx - Retry (Informational, request still processing) - // 2xx - Do not retry (Success) - // 3xx - Do not retry (Redirect) - // 4xx - Do not retry (Client errors) - // 429 - Retry ("Too Many Requests") - // 5xx - Retry (Server errors) - [100, 199], - [429, 429], - [500, 599], + default: + var error = new Error('Cannot read encrypted PBE data block. Unsupported OID.'); + error.oid = oid; + error.supportedOids = [ + 'pkcs5PBES2', + 'pbeWithSHAAnd3-KeyTripleDES-CBC', + 'pbewithSHAAnd40BitRC2-CBC' ]; - config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; - // Put the config back into the err - err.config.retryConfig = config; - // Determine if we should retry the request - const shouldRetryFn = config.shouldRetry || shouldRetryRequest; - if (!(await shouldRetryFn(err))) { - return { shouldRetry: false, config: err.config }; - } - // Calculate time to wait with exponential backoff. - // If this is the first retry, look for a configured retryDelay. - const retryDelay = config.currentRetryAttempt ? 0 : (_a = config.retryDelay) !== null && _a !== void 0 ? _a : 100; - // Formula: retryDelay + ((2^c - 1 / 2) * 1000) - const delay = retryDelay + ((Math.pow(2, config.currentRetryAttempt) - 1) / 2) * 1000; - // We're going to retry! Incremenent the counter. - err.config.retryConfig.currentRetryAttempt += 1; - // Create a promise that invokes the retry after the backOffDelay - const backoff = new Promise(resolve => { - setTimeout(resolve, delay); - }); - // Notify the user if they added an `onRetryAttempt` handler - if (config.onRetryAttempt) { - config.onRetryAttempt(err); - } - // Return the promise in which recalls Gaxios to retry the request - await backoff; - return { shouldRetry: true, config: err.config }; -} -exports.getRetryConfig = getRetryConfig; -/** - * Determine based on config if we should retry the request. - * @param err The GaxiosError passed to the interceptor. - */ -function shouldRetryRequest(err) { - const config = getConfig(err); - // node-fetch raises an AbortError if signaled: - // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal - if (err.name === 'AbortError') { - return false; - } - // If there's no config, or retries are disabled, return. - if (!config || config.retry === 0) { - return false; - } - // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) - if (!err.response && - (config.currentRetryAttempt || 0) >= config.noResponseRetries) { - return false; - } - // Only retry with configured HttpMethods. - if (!err.config.method || - config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { - return false; - } - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - if (err.response && err.response.status) { - let isInRange = false; - for (const [min, max] of config.statusCodesToRetry) { - const status = err.response.status; - if (status >= min && status <= max) { - isInRange = true; - break; - } - } - if (!isInRange) { - return false; - } - } - // If we are out of retry attempts, return - config.currentRetryAttempt = config.currentRetryAttempt || 0; - if (config.currentRetryAttempt >= config.retry) { - return false; - } - return true; -} + throw error; + } +}; + /** - * Acquire the raxConfig object from an GaxiosError if available. - * @param err The Gaxios error with a config object. + * Get new Forge cipher object instance according to PBES2 params block. + * + * The returned cipher instance is already started using the IV + * from PBES2 parameter block. + * + * @param oid the PKCS#5 PBKDF2 OID (in string notation). + * @param params the ASN.1 PBES2-params object. + * @param password the password to decrypt with. + * + * @return new cipher object instance. */ -function getConfig(err) { - if (err && err.config && err.config.retryConfig) { - return err.config.retryConfig; - } - return; -} -//# sourceMappingURL=retry.js.map +pki.pbe.getCipherForPBES2 = function(oid, params, password) { + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(params, PBES2AlgorithmsValidator, capture, errors)) { + var error = new Error('Cannot read password-based-encryption algorithm ' + + 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } -/***/ }), + // check oids + oid = asn1.derToOid(capture.kdfOid); + if(oid !== pki.oids['pkcs5PBKDF2']) { + var error = new Error('Cannot read encrypted private key. ' + + 'Unsupported key derivation function OID.'); + error.oid = oid; + error.supportedOids = ['pkcs5PBKDF2']; + throw error; + } + oid = asn1.derToOid(capture.encOid); + if(oid !== pki.oids['aes128-CBC'] && + oid !== pki.oids['aes192-CBC'] && + oid !== pki.oids['aes256-CBC'] && + oid !== pki.oids['des-EDE3-CBC'] && + oid !== pki.oids['desCBC']) { + var error = new Error('Cannot read encrypted private key. ' + + 'Unsupported encryption scheme OID.'); + error.oid = oid; + error.supportedOids = [ + 'aes128-CBC', 'aes192-CBC', 'aes256-CBC', 'des-EDE3-CBC', 'desCBC']; + throw error; + } -/***/ 29938: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // set PBE params + var salt = capture.kdfSalt; + var count = forge.util.createBuffer(capture.kdfIterationCount); + count = count.getInt(count.length() << 3); + var dkLen; + var cipherFn; + switch(pki.oids[oid]) { + case 'aes128-CBC': + dkLen = 16; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'aes192-CBC': + dkLen = 24; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'aes256-CBC': + dkLen = 32; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'des-EDE3-CBC': + dkLen = 24; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'desCBC': + dkLen = 8; + cipherFn = forge.des.createDecryptionCipher; + break; + } -"use strict"; + // get PRF message digest + var md = prfOidToMessageDigest(capture.prfOid); + + // decrypt private key using pbe with chosen PRF and AES/DES + var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); + var iv = capture.encIv; + var cipher = cipherFn(dk); + cipher.start(iv); + + return cipher; +}; /** - * Copyright 2018 Google LLC + * Get new Forge cipher object instance for PKCS#12 PBE. * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.requestTimeout = exports.resetIsAvailableCache = exports.isAvailable = exports.project = exports.instance = exports.HEADERS = exports.HEADER_VALUE = exports.HEADER_NAME = exports.SECONDARY_HOST_ADDRESS = exports.HOST_ADDRESS = exports.BASE_PATH = void 0; -const gaxios_1 = __nccwpck_require__(33635); -const jsonBigint = __nccwpck_require__(2615); -exports.BASE_PATH = '/computeMetadata/v1'; -exports.HOST_ADDRESS = 'http://169.254.169.254'; -exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; -exports.HEADER_NAME = 'Metadata-Flavor'; -exports.HEADER_VALUE = 'Google'; -exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); -/** - * Returns the base URL while taking into account the GCE_METADATA_HOST - * environment variable if it exists. + * The returned cipher instance is already started using the key & IV + * derived from the provided password and PKCS#12 PBE salt. * - * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. - */ -function getBaseUrl(baseUrl) { - if (!baseUrl) { - baseUrl = - process.env.GCE_METADATA_IP || - process.env.GCE_METADATA_HOST || - exports.HOST_ADDRESS; - } - // If no scheme is provided default to HTTP: - if (!/^https?:\/\//.test(baseUrl)) { - baseUrl = `http://${baseUrl}`; - } - return new URL(exports.BASE_PATH, baseUrl).href; -} -// Accepts an options object passed from the user to the API. In previous -// versions of the API, it referred to a `Request` or an `Axios` request -// options object. Now it refers to an object with very limited property -// names. This is here to help ensure users don't pass invalid options when -// they upgrade from 0.4 to 0.5 to 0.8. -function validate(options) { - Object.keys(options).forEach(key => { - switch (key) { - case 'params': - case 'property': - case 'headers': - break; - case 'qs': - throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); - default: - throw new Error(`'${key}' is not a valid configuration option.`); - } - }); -} -async function metadataAccessor(type, options, noResponseRetries = 3, fastFail = false) { - options = options || {}; - if (typeof options === 'string') { - options = { property: options }; - } - let property = ''; - if (typeof options === 'object' && options.property) { - property = '/' + options.property; - } - validate(options); - try { - const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; - const res = await requestMethod({ - url: `${getBaseUrl()}/${type}${property}`, - headers: Object.assign({}, exports.HEADERS, options.headers), - retryConfig: { noResponseRetries }, - params: options.params, - responseType: 'text', - timeout: requestTimeout(), - }); - // NOTE: node.js converts all incoming headers to lower case. - if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { - throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header.`); - } - else if (!res.data) { - throw new Error('Invalid response from the metadata service'); - } - if (typeof res.data === 'string') { - try { - return jsonBigint.parse(res.data); - } - catch (_a) { - /* ignore */ - } - } - return res.data; - } - catch (e) { - if (e.response && e.response.status !== 200) { - e.message = `Unsuccessful response status code. ${e.message}`; - } - throw e; - } -} -async function fastFailMetadataRequest(options) { - const secondaryOptions = { - ...options, - url: options.url.replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), - }; - // We race a connection between DNS/IP to metadata server. There are a couple - // reasons for this: - // - // 1. the DNS is slow in some GCP environments; by checking both, we might - // detect the runtime environment signficantly faster. - // 2. we can't just check the IP, which is tarpitted and slow to respond - // on a user's local machine. - // - // Additional logic has been added to make sure that we don't create an - // unhandled rejection in scenarios where a failure happens sometime - // after a success. - // - // Note, however, if a failure happens prior to a success, a rejection should - // occur, this is for folks running locally. - // - let responded = false; - const r1 = gaxios_1.request(options) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r2; - } - else { - responded = true; - throw err; - } - }); - const r2 = gaxios_1.request(secondaryOptions) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r1; - } - else { - responded = true; - throw err; - } - }); - return Promise.race([r1, r2]); -} -/** - * Obtain metadata for the current GCE instance - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function instance(options) { - return metadataAccessor('instance', options); -} -exports.instance = instance; -/** - * Obtain metadata for the current GCP Project. - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function project(options) { - return metadataAccessor('project', options); -} -exports.project = project; -/* - * How many times should we retry detecting GCP environment. - */ -function detectGCPAvailableRetries() { - return process.env.DETECT_GCP_RETRIES - ? Number(process.env.DETECT_GCP_RETRIES) - : 0; -} -let cachedIsAvailableResponse; -/** - * Determine if the metadata server is currently available. + * @param oid The PKCS#12 PBE OID (in string notation). + * @param params The ASN.1 PKCS#12 PBE-params object. + * @param password The password to decrypt with. + * + * @return the new cipher object instance. */ -async function isAvailable() { - try { - // If a user is instantiating several GCP libraries at the same time, - // this may result in multiple calls to isAvailable(), to detect the - // runtime environment. We use the same promise for each of these calls - // to reduce the network load. - if (cachedIsAvailableResponse === undefined) { - cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), - // If the default HOST_ADDRESS has been overridden, we should not - // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in - // a non-GCP environment): - !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST)); - } - await cachedIsAvailableResponse; - return true; - } - catch (err) { - if (process.env.DEBUG_AUTH) { - console.info(err); - } - if (err.type === 'request-timeout') { - // If running in a GCP environment, metadata endpoint should return - // within ms. - return false; - } - if (err.response && err.response.status === 404) { - return false; - } - else { - if (!(err.response && err.response.status === 404) && - // A warning is emitted if we see an unexpected err.code, or err.code - // is not populated: - (!err.code || - ![ - 'EHOSTDOWN', - 'EHOSTUNREACH', - 'ENETUNREACH', - 'ENOENT', - 'ENOTFOUND', - 'ECONNREFUSED', - ].includes(err.code))) { - let code = 'UNKNOWN'; - if (err.code) - code = err.code; - process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); - } - // Failure to resolve the metadata service means that it is not available. - return false; - } - } -} -exports.isAvailable = isAvailable; +pki.pbe.getCipherForPKCS12PBE = function(oid, params, password) { + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(params, pkcs12PbeParamsValidator, capture, errors)) { + var error = new Error('Cannot read password-based-encryption algorithm ' + + 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } + + var salt = forge.util.createBuffer(capture.salt); + var count = forge.util.createBuffer(capture.iterations); + count = count.getInt(count.length() << 3); + + var dkLen, dIvLen, cipherFn; + switch(oid) { + case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: + dkLen = 24; + dIvLen = 8; + cipherFn = forge.des.startDecrypting; + break; + + case pki.oids['pbewithSHAAnd40BitRC2-CBC']: + dkLen = 5; + dIvLen = 8; + cipherFn = function(key, iv) { + var cipher = forge.rc2.createDecryptionCipher(key, 40); + cipher.start(iv, null); + return cipher; + }; + break; + + default: + var error = new Error('Cannot read PKCS #12 PBE data block. Unsupported OID.'); + error.oid = oid; + throw error; + } + + // get PRF message digest + var md = prfOidToMessageDigest(capture.prfOid); + var key = pki.pbe.generatePkcs12Key(password, salt, 1, count, dkLen, md); + md.start(); + var iv = pki.pbe.generatePkcs12Key(password, salt, 2, count, dIvLen, md); + + return cipherFn(key, iv); +}; + /** - * reset the memoized isAvailable() lookup. + * OpenSSL's legacy key derivation function. + * + * See: http://www.openssl.org/docs/crypto/EVP_BytesToKey.html + * + * @param password the password to derive the key from. + * @param salt the salt to use, null for none. + * @param dkLen the number of bytes needed for the derived key. + * @param [options] the options to use: + * [md] an optional message digest object to use. */ -function resetIsAvailableCache() { - cachedIsAvailableResponse = undefined; +pki.pbe.opensslDeriveBytes = function(password, salt, dkLen, md) { + if(typeof md === 'undefined' || md === null) { + if(!('md5' in forge.md)) { + throw new Error('"md5" hash algorithm unavailable.'); + } + md = forge.md.md5.create(); + } + if(salt === null) { + salt = ''; + } + var digests = [hash(md, password + salt)]; + for(var length = 16, i = 1; length < dkLen; ++i, length += 16) { + digests.push(hash(md, digests[i - 1] + password + salt)); + } + return digests.join('').substr(0, dkLen); +}; + +function hash(md, bytes) { + return md.start().update(bytes).digest().getBytes(); } -exports.resetIsAvailableCache = resetIsAvailableCache; -/** - * Obtain the timeout for requests to the metadata server. - */ -function requestTimeout() { - // In testing, we were able to reproduce behavior similar to - // https://github.com/googleapis/google-auth-library-nodejs/issues/798 - // by making many concurrent network requests. Requests do not actually fail, - // rather they take significantly longer to complete (and we hit our - // default 3000ms timeout). - // - // This logic detects a GCF environment, using the documented environment - // variables K_SERVICE and FUNCTION_NAME: - // https://cloud.google.com/functions/docs/env-var and, in a GCF environment - // eliminates timeouts (by setting the value to 0 to disable). - return process.env.K_SERVICE || process.env.FUNCTION_NAME ? 0 : 3000; + +function prfOidToMessageDigest(prfOid) { + // get PRF algorithm, default to SHA-1 + var prfAlgorithm; + if(!prfOid) { + prfAlgorithm = 'hmacWithSHA1'; + } else { + prfAlgorithm = pki.oids[asn1.derToOid(prfOid)]; + if(!prfAlgorithm) { + var error = new Error('Unsupported PRF OID.'); + error.oid = prfOid; + error.supported = [ + 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', + 'hmacWithSHA512']; + throw error; + } + } + return prfAlgorithmToMessageDigest(prfAlgorithm); } -exports.requestTimeout = requestTimeout; -//# sourceMappingURL=index.js.map -/***/ }), +function prfAlgorithmToMessageDigest(prfAlgorithm) { + var factory = forge.md; + switch(prfAlgorithm) { + case 'hmacWithSHA224': + factory = forge.md.sha512; + case 'hmacWithSHA1': + case 'hmacWithSHA256': + case 'hmacWithSHA384': + case 'hmacWithSHA512': + prfAlgorithm = prfAlgorithm.substr(8).toLowerCase(); + break; + default: + var error = new Error('Unsupported PRF algorithm.'); + error.algorithm = prfAlgorithm; + error.supported = [ + 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', + 'hmacWithSHA512']; + throw error; + } + if(!factory || !(prfAlgorithm in factory)) { + throw new Error('Unknown hash algorithm: ' + prfAlgorithm); + } + return factory[prfAlgorithm].create(); +} -/***/ 94527: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) { + var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // salt + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), + // iteration count + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + countBytes.getBytes()) + ]); + // when PRF algorithm is not SHA-1 default, add key length and PRF algorithm + if(prfAlgorithm !== 'hmacWithSHA1') { + params.value.push( + // key length + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(dkLen.toString(16))), + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids[prfAlgorithm]).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + } + return params; +} -"use strict"; +/***/ }), -var undefined; +/***/ 72282: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var $SyntaxError = SyntaxError; -var $Function = Function; -var $TypeError = TypeError; +/** + * Password-Based Key-Derivation Function #2 implementation. + * + * See RFC 2898 for details. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(45868); +__nccwpck_require__(5454); +__nccwpck_require__(46831); -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; +var pkcs5 = forge.pkcs5 = forge.pkcs5 || {}; -var $gOPD = Object.getOwnPropertyDescriptor; -if ($gOPD) { - try { - $gOPD({}, ''); - } catch (e) { - $gOPD = null; // this is IE 8, which has a broken gOPD - } +var crypto; +if(forge.util.isNodejs && !forge.options.usePureJavaScript) { + crypto = __nccwpck_require__(76982); } -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD - ? (function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }()) - : throwTypeError; +/** + * Derives a key from a password. + * + * @param p the password as a binary-encoded string of bytes. + * @param s the salt as a binary-encoded string of bytes. + * @param c the iteration count, a positive integer. + * @param dkLen the intended length, in bytes, of the derived key, + * (max: 2^32 - 1) * hash length of the PRF. + * @param [md] the message digest (or algorithm identifier as a string) to use + * in the PRF, defaults to SHA-1. + * @param [callback(err, key)] presence triggers asynchronous version, called + * once the operation completes. + * + * @return the derived key, as a binary-encoded string of bytes, for the + * synchronous version (if no callback is specified). + */ +module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function( + p, s, c, dkLen, md, callback) { + if(typeof md === 'function') { + callback = md; + md = null; + } -var hasSymbols = __nccwpck_require__(35972)(); -var hasProto = __nccwpck_require__(16116)(); + // use native implementation if possible and not disabled, note that + // some node versions only support SHA-1, others allow digest to be changed + if(forge.util.isNodejs && !forge.options.usePureJavaScript && + crypto.pbkdf2 && (md === null || typeof md !== 'object') && + (crypto.pbkdf2Sync.length > 4 || (!md || md === 'sha1'))) { + if(typeof md !== 'string') { + // default prf to SHA-1 + md = 'sha1'; + } + p = Buffer.from(p, 'binary'); + s = Buffer.from(s, 'binary'); + if(!callback) { + if(crypto.pbkdf2Sync.length === 4) { + return crypto.pbkdf2Sync(p, s, c, dkLen).toString('binary'); + } + return crypto.pbkdf2Sync(p, s, c, dkLen, md).toString('binary'); + } + if(crypto.pbkdf2Sync.length === 4) { + return crypto.pbkdf2(p, s, c, dkLen, function(err, key) { + if(err) { + return callback(err); + } + callback(null, key.toString('binary')); + }); + } + return crypto.pbkdf2(p, s, c, dkLen, md, function(err, key) { + if(err) { + return callback(err); + } + callback(null, key.toString('binary')); + }); + } -var getProto = Object.getPrototypeOf || ( - hasProto - ? function (x) { return x.__proto__; } // eslint-disable-line no-proto - : null -); + if(typeof md === 'undefined' || md === null) { + // default prf to SHA-1 + md = 'sha1'; + } + if(typeof md === 'string') { + if(!(md in forge.md.algorithms)) { + throw new Error('Unknown hash algorithm: ' + md); + } + md = forge.md[md].create(); + } -var needsEval = {}; + var hLen = md.digestLength; -var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); + /* 1. If dkLen > (2^32 - 1) * hLen, output "derived key too long" and + stop. */ + if(dkLen > (0xFFFFFFFF * hLen)) { + var err = new Error('Derived key is too long.'); + if(callback) { + return callback(err); + } + throw err; + } -var INTRINSICS = { - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, // eslint-disable-line no-eval - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet -}; + /* 2. Let len be the number of hLen-octet blocks in the derived key, + rounding up, and let r be the number of octets in the last + block: -if (getProto) { - try { - null.error; // eslint-disable-line no-unused-expressions - } catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; - } -} + len = CEIL(dkLen / hLen), + r = dkLen - (len - 1) * hLen. */ + var len = Math.ceil(dkLen / hLen); + var r = dkLen - (len - 1) * hLen; -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen && getProto) { - value = getProto(gen.prototype); - } - } + /* 3. For each block of the derived key apply the function F defined + below to the password P, the salt S, the iteration count c, and + the block index to compute the block: - INTRINSICS[name] = value; + T_1 = F(P, S, c, 1), + T_2 = F(P, S, c, 2), + ... + T_len = F(P, S, c, len), - return value; -}; + where the function F is defined as the exclusive-or sum of the + first c iterates of the underlying pseudorandom function PRF + applied to the password P and the concatenation of the salt S + and the block index i: -var LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; + F(P, S, c, i) = u_1 XOR u_2 XOR ... XOR u_c -var bind = __nccwpck_require__(353); -var hasOwn = __nccwpck_require__(78428); -var $concat = bind.call(Function.call, Array.prototype.concat); -var $spliceApply = bind.call(Function.apply, Array.prototype.splice); -var $replace = bind.call(Function.call, String.prototype.replace); -var $strSlice = bind.call(Function.call, String.prototype.slice); -var $exec = bind.call(Function.call, RegExp.prototype.exec); + where -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ + u_1 = PRF(P, S || INT(i)), + u_2 = PRF(P, u_1), + ... + u_c = PRF(P, u_{c-1}). -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } + Here, INT(i) is a four-octet encoding of the integer i, most + significant octet first. */ + var prf = forge.hmac.create(); + prf.start(md, p); + var dk = ''; + var xor, u_c, u_c1; - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } + // sync version + if(!callback) { + for(var i = 1; i <= len; ++i) { + // PRF(P, S || INT(i)) (first iteration) + prf.start(null, null); + prf.update(s); + prf.update(forge.util.int32ToBytes(i)); + xor = u_c1 = prf.digest().getBytes(); - return { - alias: alias, - name: intrinsicName, - value: value - }; - } + // PRF(P, u_{c-1}) (other iterations) + for(var j = 2; j <= c; ++j) { + prf.start(null, null); + prf.update(u_c1); + u_c = prf.digest().getBytes(); + // F(p, s, c, i) + xor = forge.util.xorBytes(xor, u_c, hLen); + u_c1 = u_c; + } - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; + /* 4. Concatenate the blocks and extract the first dkLen octets to + produce a derived key DK: -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } + DK = T_1 || T_2 || ... || T_len<0..r-1> */ + dk += (i < len) ? xor : xor.substr(0, r); + } + /* 5. Output the derived key DK. */ + return dk; + } - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; + // async version + var i = 1, j; + function outer() { + if(i > len) { + // done + return callback(null, dk); + } - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; + // PRF(P, S || INT(i)) (first iteration) + prf.start(null, null); + prf.update(s); + prf.update(forge.util.int32ToBytes(i)); + xor = u_c1 = prf.digest().getBytes(); - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } + // PRF(P, u_{c-1}) (other iterations) + j = 2; + inner(); + } - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ( - ( - (first === '"' || first === "'" || first === '`') - || (last === '"' || last === "'" || last === '`') - ) - && first !== last - ) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } + function inner() { + if(j <= c) { + prf.start(null, null); + prf.update(u_c1); + u_c = prf.digest().getBytes(); + // F(p, s, c, i) + xor = forge.util.xorBytes(xor, u_c, hLen); + u_c1 = u_c; + ++j; + return forge.util.setImmediate(inner); + } - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; + /* 4. Concatenate the blocks and extract the first dkLen octets to + produce a derived key DK: - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; + DK = T_1 || T_2 || ... || T_len<0..r-1> */ + dk += (i < len) ? xor : xor.substr(0, r); - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } + ++i; + outer(); + } - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; + outer(); }; /***/ }), -/***/ 38421: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 21117: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * Javascript implementation of basic PEM (Privacy Enhanced Mail) algorithms. + * + * See: RFC 1421. + * + * @author Dave Longley + * + * Copyright (c) 2013-2014 Digital Bazaar, Inc. + * + * A Forge PEM object has the following fields: + * + * type: identifies the type of message (eg: "RSA PRIVATE KEY"). + * + * procType: identifies the type of processing performed on the message, + * it has two subfields: version and type, eg: 4,ENCRYPTED. + * + * contentDomain: identifies the type of content in the message, typically + * only uses the value: "RFC822". + * + * dekInfo: identifies the message encryption algorithm and mode and includes + * any parameters for the algorithm, it has two subfields: algorithm and + * parameters, eg: DES-CBC,F8143EDE5960C597. + * + * headers: contains all other PEM encapsulated headers -- where order is + * significant (for pairing data like recipient ID + key info). + * + * body: the binary-encoded body. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); -// Copyright 2012 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AuthClient = void 0; -const events_1 = __nccwpck_require__(82361); -const transporters_1 = __nccwpck_require__(93408); -class AuthClient extends events_1.EventEmitter { - constructor() { - super(...arguments); - this.transporter = new transporters_1.DefaultTransporter(); - this.credentials = {}; - this.eagerRefreshThresholdMillis = 5 * 60 * 1000; - this.forceRefreshOnFailure = false; - } - /** - * Sets the auth credentials. - */ - setCredentials(credentials) { - this.credentials = credentials; +// shortcut for pem API +var pem = module.exports = forge.pem = forge.pem || {}; + +/** + * Encodes (serializes) the given PEM object. + * + * @param msg the PEM message object to encode. + * @param options the options to use: + * maxline the maximum characters per line for the body, (default: 64). + * + * @return the PEM-formatted string. + */ +pem.encode = function(msg, options) { + options = options || {}; + var rval = '-----BEGIN ' + msg.type + '-----\r\n'; + + // encode special headers + var header; + if(msg.procType) { + header = { + name: 'Proc-Type', + values: [String(msg.procType.version), msg.procType.type] + }; + rval += foldHeader(header); + } + if(msg.contentDomain) { + header = {name: 'Content-Domain', values: [msg.contentDomain]}; + rval += foldHeader(header); + } + if(msg.dekInfo) { + header = {name: 'DEK-Info', values: [msg.dekInfo.algorithm]}; + if(msg.dekInfo.parameters) { + header.values.push(msg.dekInfo.parameters); } - /** - * Append additional headers, e.g., x-goog-user-project, shared across the - * classes inheriting AuthClient. This method should be used by any method - * that overrides getRequestMetadataAsync(), which is a shared helper for - * setting request information in both gRPC and HTTP API calls. - * - * @param headers object to append additional headers to. - */ - addSharedMetadataHeaders(headers) { - // quota_project_id, stored in application_default_credentials.json, is set in - // the x-goog-user-project header, to indicate an alternate account for - // billing and quota: - if (!headers['x-goog-user-project'] && // don't override a value the user sets. - this.quotaProjectId) { - headers['x-goog-user-project'] = this.quotaProjectId; - } - return headers; + rval += foldHeader(header); + } + + if(msg.headers) { + // encode all other headers + for(var i = 0; i < msg.headers.length; ++i) { + rval += foldHeader(msg.headers[i]); } -} -exports.AuthClient = AuthClient; -//# sourceMappingURL=authclient.js.map + } -/***/ }), + // terminate header + if(msg.procType) { + rval += '\r\n'; + } -/***/ 30860: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // add body + rval += forge.util.encode64(msg.body, options.maxline || 64) + '\r\n'; -"use strict"; + rval += '-----END ' + msg.type + '-----\r\n'; + return rval; +}; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AwsClient = void 0; -const awsrequestsigner_1 = __nccwpck_require__(3680); -const baseexternalclient_1 = __nccwpck_require__(14956); /** - * AWS external account client. This is used for AWS workloads, where - * AWS STS GetCallerIdentity serialized signed requests are exchanged for - * GCP access token. + * Decodes (deserializes) all PEM messages found in the given string. + * + * @param str the PEM-formatted string to decode. + * + * @return the PEM message objects in an array. */ -class AwsClient extends baseexternalclient_1.BaseExternalAccountClient { - /** - * Instantiates an AwsClient instance using the provided JSON - * object loaded from an external account credentials file. - * An error is thrown if the credential is not a valid AWS credential. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - */ - constructor(options, additionalOptions) { - var _a; - super(options, additionalOptions); - this.environmentId = options.credential_source.environment_id; - // This is only required if the AWS region is not available in the - // AWS_REGION or AWS_DEFAULT_REGION environment variables. - this.regionUrl = options.credential_source.region_url; - // This is only required if AWS security credentials are not available in - // environment variables. - this.securityCredentialsUrl = options.credential_source.url; - this.regionalCredVerificationUrl = - options.credential_source.regional_cred_verification_url; - this.imdsV2SessionTokenUrl = - options.credential_source.imdsv2_session_token_url; - const match = (_a = this.environmentId) === null || _a === void 0 ? void 0 : _a.match(/^(aws)(\d+)$/); - if (!match || !this.regionalCredVerificationUrl) { - throw new Error('No valid AWS "credential_source" provided'); - } - else if (parseInt(match[2], 10) !== 1) { - throw new Error(`aws version "${match[2]}" is not supported in the current build.`); - } - this.awsRequestSigner = null; - this.region = ''; +pem.decode = function(str) { + var rval = []; + + // split string into PEM messages (be lenient w/EOF on BEGIN line) + var rMessage = /\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g; + var rHeader = /([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/; + var rCRLF = /\r?\n/; + var match; + while(true) { + match = rMessage.exec(str); + if(!match) { + break; } - /** - * Triggered when an external subject token is needed to be exchanged for a - * GCP access token via GCP STS endpoint. - * This uses the `options.credential_source` object to figure out how - * to retrieve the token using the current environment. In this case, - * this uses a serialized AWS signed request to the STS GetCallerIdentity - * endpoint. - * The logic is summarized as: - * 1. If imdsv2_session_token_url is provided in the credential source, then - * fetch the aws session token and include it in the headers of the - * metadata requests. This is a requirement for IDMSv2 but optional - * for IDMSv1. - * 2. Retrieve AWS region from availability-zone. - * 3a. Check AWS credentials in environment variables. If not found, get - * from security-credentials endpoint. - * 3b. Get AWS credentials from security-credentials endpoint. In order - * to retrieve this, the AWS role needs to be determined by calling - * security-credentials endpoint without any argument. Then the - * credentials can be retrieved via: security-credentials/role_name - * 4. Generate the signed request to AWS STS GetCallerIdentity action. - * 5. Inject x-goog-cloud-target-resource into header and serialize the - * signed request. This will be the subject-token to pass to GCP STS. - * @return A promise that resolves with the external subject token. - */ - async retrieveSubjectToken() { - // Initialize AWS request signer if not already initialized. - if (!this.awsRequestSigner) { - const metadataHeaders = {}; - if (this.imdsV2SessionTokenUrl) { - metadataHeaders['x-aws-ec2-metadata-token'] = - await this.getImdsV2SessionToken(); - } - this.region = await this.getAwsRegion(metadataHeaders); - this.awsRequestSigner = new awsrequestsigner_1.AwsRequestSigner(async () => { - // Check environment variables for permanent credentials first. - // https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html - if (process.env['AWS_ACCESS_KEY_ID'] && - process.env['AWS_SECRET_ACCESS_KEY']) { - return { - accessKeyId: process.env['AWS_ACCESS_KEY_ID'], - secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY'], - // This is normally not available for permanent credentials. - token: process.env['AWS_SESSION_TOKEN'], - }; - } - // Since the role on a VM can change, we don't need to cache it. - const roleName = await this.getAwsRoleName(metadataHeaders); - // Temporary credentials typically last for several hours. - // Expiration is returned in response. - // Consider future optimization of this logic to cache AWS tokens - // until their natural expiration. - const awsCreds = await this.getAwsSecurityCredentials(roleName, metadataHeaders); - return { - accessKeyId: awsCreds.AccessKeyId, - secretAccessKey: awsCreds.SecretAccessKey, - token: awsCreds.Token, - }; - }, this.region); - } - // Generate signed request to AWS STS GetCallerIdentity API. - // Use the required regional endpoint. Otherwise, the request will fail. - const options = await this.awsRequestSigner.getRequestOptions({ - url: this.regionalCredVerificationUrl.replace('{region}', this.region), - method: 'POST', - }); - // The GCP STS endpoint expects the headers to be formatted as: - // [ - // {key: 'x-amz-date', value: '...'}, - // {key: 'Authorization', value: '...'}, - // ... - // ] - // And then serialized as: - // encodeURIComponent(JSON.stringify({ - // url: '...', - // method: 'POST', - // headers: [{key: 'x-amz-date', value: '...'}, ...] - // })) - const reformattedHeader = []; - const extendedHeaders = Object.assign({ - // The full, canonical resource name of the workload identity pool - // provider, with or without the HTTPS prefix. - // Including this header as part of the signature is recommended to - // ensure data integrity. - 'x-goog-cloud-target-resource': this.audience, - }, options.headers); - // Reformat header to GCP STS expected format. - for (const key in extendedHeaders) { - reformattedHeader.push({ - key, - value: extendedHeaders[key], - }); - } - // Serialize the reformatted signed request. - return encodeURIComponent(JSON.stringify({ - url: options.url, - method: options.method, - headers: reformattedHeader, - })); + + // accept "NEW CERTIFICATE REQUEST" as "CERTIFICATE REQUEST" + // https://datatracker.ietf.org/doc/html/rfc7468#section-7 + var type = match[1]; + if(type === 'NEW CERTIFICATE REQUEST') { + type = 'CERTIFICATE REQUEST'; } - /** - * @return A promise that resolves with the IMDSv2 Session Token. - */ - async getImdsV2SessionToken() { - const opts = { - url: this.imdsV2SessionTokenUrl, - method: 'PUT', - responseType: 'text', - headers: { 'x-aws-ec2-metadata-token-ttl-seconds': '300' }, - }; - const response = await this.transporter.request(opts); - return response.data; + + var msg = { + type: type, + procType: null, + contentDomain: null, + dekInfo: null, + headers: [], + body: forge.util.decode64(match[3]) + }; + rval.push(msg); + + // no headers + if(!match[2]) { + continue; } - /** - * @param headers The headers to be used in the metadata request. - * @return A promise that resolves with the current AWS region. - */ - async getAwsRegion(headers) { - // Priority order for region determination: - // AWS_REGION > AWS_DEFAULT_REGION > metadata server. - if (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION']) { - return (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION']); + + // parse headers + var lines = match[2].split(rCRLF); + var li = 0; + while(match && li < lines.length) { + // get line, trim any rhs whitespace + var line = lines[li].replace(/\s+$/, ''); + + // RFC2822 unfold any following folded lines + for(var nl = li + 1; nl < lines.length; ++nl) { + var next = lines[nl]; + if(!/\s/.test(next[0])) { + break; } - if (!this.regionUrl) { - throw new Error('Unable to determine AWS region due to missing ' + - '"options.credential_source.region_url"'); + line += next; + li = nl; + } + + // parse header + match = line.match(rHeader); + if(match) { + var header = {name: match[1], values: []}; + var values = match[2].split(','); + for(var vi = 0; vi < values.length; ++vi) { + header.values.push(ltrim(values[vi])); } - const opts = { - url: this.regionUrl, - method: 'GET', - responseType: 'text', - headers: headers, - }; - const response = await this.transporter.request(opts); - // Remove last character. For example, if us-east-2b is returned, - // the region would be us-east-2. - return response.data.substr(0, response.data.length - 1); - } - /** - * @param headers The headers to be used in the metadata request. - * @return A promise that resolves with the assigned role to the current - * AWS VM. This is needed for calling the security-credentials endpoint. - */ - async getAwsRoleName(headers) { - if (!this.securityCredentialsUrl) { - throw new Error('Unable to determine AWS role name due to missing ' + - '"options.credential_source.url"'); + + // Proc-Type must be the first header + if(!msg.procType) { + if(header.name !== 'Proc-Type') { + throw new Error('Invalid PEM formatted message. The first ' + + 'encapsulated header must be "Proc-Type".'); + } else if(header.values.length !== 2) { + throw new Error('Invalid PEM formatted message. The "Proc-Type" ' + + 'header must have two subfields.'); + } + msg.procType = {version: values[0], type: values[1]}; + } else if(!msg.contentDomain && header.name === 'Content-Domain') { + // special-case Content-Domain + msg.contentDomain = values[0] || ''; + } else if(!msg.dekInfo && header.name === 'DEK-Info') { + // special-case DEK-Info + if(header.values.length === 0) { + throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + + 'header must have at least one subfield.'); + } + msg.dekInfo = {algorithm: values[0], parameters: values[1] || null}; + } else { + msg.headers.push(header); } - const opts = { - url: this.securityCredentialsUrl, - method: 'GET', - responseType: 'text', - headers: headers, - }; - const response = await this.transporter.request(opts); - return response.data; + } + + ++li; } - /** - * Retrieves the temporary AWS credentials by calling the security-credentials - * endpoint as specified in the `credential_source` object. - * @param roleName The role attached to the current VM. - * @param headers The headers to be used in the metadata request. - * @return A promise that resolves with the temporary AWS credentials - * needed for creating the GetCallerIdentity signed request. - */ - async getAwsSecurityCredentials(roleName, headers) { - const response = await this.transporter.request({ - url: `${this.securityCredentialsUrl}/${roleName}`, - responseType: 'json', - headers: headers, - }); - return response.data; + + if(msg.procType === 'ENCRYPTED' && !msg.dekInfo) { + throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + + 'header must be present if "Proc-Type" is "ENCRYPTED".'); } -} -exports.AwsClient = AwsClient; -//# sourceMappingURL=awsclient.js.map + } -/***/ }), + if(rval.length === 0) { + throw new Error('Invalid PEM formatted message.'); + } -/***/ 3680: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + return rval; +}; -"use strict"; +function foldHeader(header) { + var rval = header.name + ': '; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AwsRequestSigner = void 0; -const crypto_1 = __nccwpck_require__(17742); -/** AWS Signature Version 4 signing algorithm identifier. */ -const AWS_ALGORITHM = 'AWS4-HMAC-SHA256'; -/** - * The termination string for the AWS credential scope value as defined in - * https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html - */ -const AWS_REQUEST_TYPE = 'aws4_request'; -/** - * Implements an AWS API request signer based on the AWS Signature Version 4 - * signing process. - * https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html - */ -class AwsRequestSigner { - /** - * Instantiates an AWS API request signer used to send authenticated signed - * requests to AWS APIs based on the AWS Signature Version 4 signing process. - * This also provides a mechanism to generate the signed request without - * sending it. - * @param getCredentials A mechanism to retrieve AWS security credentials - * when needed. - * @param region The AWS region to use. - */ - constructor(getCredentials, region) { - this.getCredentials = getCredentials; - this.region = region; - this.crypto = crypto_1.createCrypto(); - } - /** - * Generates the signed request for the provided HTTP request for calling - * an AWS API. This follows the steps described at: - * https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html - * @param amzOptions The AWS request options that need to be signed. - * @return A promise that resolves with the GaxiosOptions containing the - * signed HTTP request parameters. - */ - async getRequestOptions(amzOptions) { - if (!amzOptions.url) { - throw new Error('"url" is required in "amzOptions"'); - } - // Stringify JSON requests. This will be set in the request body of the - // generated signed request. - const requestPayloadData = typeof amzOptions.data === 'object' - ? JSON.stringify(amzOptions.data) - : amzOptions.data; - const url = amzOptions.url; - const method = amzOptions.method || 'GET'; - const requestPayload = amzOptions.body || requestPayloadData; - const additionalAmzHeaders = amzOptions.headers; - const awsSecurityCredentials = await this.getCredentials(); - const uri = new URL(url); - const headerMap = await generateAuthenticationHeaderMap({ - crypto: this.crypto, - host: uri.host, - canonicalUri: uri.pathname, - canonicalQuerystring: uri.search.substr(1), - method, - region: this.region, - securityCredentials: awsSecurityCredentials, - requestPayload, - additionalAmzHeaders, - }); - // Append additional optional headers, eg. X-Amz-Target, Content-Type, etc. - const headers = Object.assign( - // Add x-amz-date if available. - headerMap.amzDate ? { 'x-amz-date': headerMap.amzDate } : {}, { - Authorization: headerMap.authorizationHeader, - host: uri.host, - }, additionalAmzHeaders || {}); - if (awsSecurityCredentials.token) { - Object.assign(headers, { - 'x-amz-security-token': awsSecurityCredentials.token, - }); - } - const awsSignedReq = { - url, - method: method, - headers, - }; - if (typeof requestPayload !== 'undefined') { - awsSignedReq.body = requestPayload; - } - return awsSignedReq; + // ensure values with CRLF are folded + var values = []; + var insertSpace = function(match, $1) { + return ' ' + $1; + }; + for(var i = 0; i < header.values.length; ++i) { + values.push(header.values[i].replace(/^(\S+\r\n)/, insertSpace)); + } + rval += values.join(',') + '\r\n'; + + // do folding + var length = 0; + var candidate = -1; + for(var i = 0; i < rval.length; ++i, ++length) { + if(length > 65 && candidate !== -1) { + var insert = rval[candidate]; + if(insert === ',') { + ++candidate; + rval = rval.substr(0, candidate) + '\r\n ' + rval.substr(candidate); + } else { + rval = rval.substr(0, candidate) + + '\r\n' + insert + rval.substr(candidate + 1); + } + length = (i - candidate - 1); + candidate = -1; + ++i; + } else if(rval[i] === ' ' || rval[i] === '\t' || rval[i] === ',') { + candidate = i; } + } + + return rval; } -exports.AwsRequestSigner = AwsRequestSigner; + +function ltrim(str) { + return str.replace(/^\s+/, ''); +} + + +/***/ }), + +/***/ 32905: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** - * Creates the HMAC-SHA256 hash of the provided message using the - * provided key. + * Partial implementation of PKCS#1 v2.2: RSA-OEAP * - * @param crypto The crypto instance used to facilitate cryptographic - * operations. - * @param key The HMAC-SHA256 key to use. - * @param msg The message to hash. - * @return The computed hash bytes. + * Modified but based on the following MIT and BSD licensed code: + * + * https://github.com/kjur/jsjws/blob/master/rsa.js: + * + * The 'jsjws'(JSON Web Signature JavaScript Library) License + * + * Copyright (c) 2012 Kenji Urushima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * http://webrsa.cvs.sourceforge.net/viewvc/webrsa/Client/RSAES-OAEP.js?content-type=text%2Fplain: + * + * RSAES-OAEP.js + * $Id: RSAES-OAEP.js,v 1.1.1.1 2003/03/19 15:37:20 ellispritchard Exp $ + * JavaScript Implementation of PKCS #1 v2.1 RSA CRYPTOGRAPHY STANDARD (RSA Laboratories, June 14, 2002) + * Copyright (C) Ellis Pritchard, Guardian Unlimited 2003. + * Contact: ellis@nukinetics.com + * Distributed under the BSD License. + * + * Official documentation: http://www.rsa.com/rsalabs/node.asp?id=2125 + * + * @author Evan Jones (http://evanjones.ca/) + * @author Dave Longley + * + * Copyright (c) 2013-2014 Digital Bazaar, Inc. */ -async function sign(crypto, key, msg) { - return await crypto.signWithHmacSha256(key, msg); -} +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); +__nccwpck_require__(87088); +__nccwpck_require__(87986); + +// shortcut for PKCS#1 API +var pkcs1 = module.exports = forge.pkcs1 = forge.pkcs1 || {}; + /** - * Calculates the signing key used to calculate the signature for - * AWS Signature Version 4 based on: - * https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + * Encode the given RSAES-OAEP message (M) using key, with optional label (L) + * and seed. * - * @param crypto The crypto instance used to facilitate cryptographic - * operations. - * @param key The AWS secret access key. - * @param dateStamp The '%Y%m%d' date format. - * @param region The AWS region. - * @param serviceName The AWS service name, eg. sts. - * @return The signing key bytes. + * This method does not perform RSA encryption, it only encodes the message + * using RSAES-OAEP. + * + * @param key the RSA key to use. + * @param message the message to encode. + * @param options the options to use: + * label an optional label to use. + * seed the seed to use. + * md the message digest object to use, undefined for SHA-1. + * mgf1 optional mgf1 parameters: + * md the message digest object to use for MGF1. + * + * @return the encoded message bytes. */ -async function getSigningKey(crypto, key, dateStamp, region, serviceName) { - const kDate = await sign(crypto, `AWS4${key}`, dateStamp); - const kRegion = await sign(crypto, kDate, region); - const kService = await sign(crypto, kRegion, serviceName); - const kSigning = await sign(crypto, kService, 'aws4_request'); - return kSigning; -} +pkcs1.encode_rsa_oaep = function(key, message, options) { + // parse arguments + var label; + var seed; + var md; + var mgf1Md; + // legacy args (label, seed, md) + if(typeof options === 'string') { + label = options; + seed = arguments[3] || undefined; + md = arguments[4] || undefined; + } else if(options) { + label = options.label || undefined; + seed = options.seed || undefined; + md = options.md || undefined; + if(options.mgf1 && options.mgf1.md) { + mgf1Md = options.mgf1.md; + } + } + + // default OAEP to SHA-1 message digest + if(!md) { + md = forge.md.sha1.create(); + } else { + md.start(); + } + + // default MGF-1 to same as OAEP + if(!mgf1Md) { + mgf1Md = md; + } + + // compute length in bytes and check output + var keyLength = Math.ceil(key.n.bitLength() / 8); + var maxLength = keyLength - 2 * md.digestLength - 2; + if(message.length > maxLength) { + var error = new Error('RSAES-OAEP input message length is too long.'); + error.length = message.length; + error.maxLength = maxLength; + throw error; + } + + if(!label) { + label = ''; + } + md.update(label, 'raw'); + var lHash = md.digest(); + + var PS = ''; + var PS_length = maxLength - message.length; + for(var i = 0; i < PS_length; i++) { + PS += '\x00'; + } + + var DB = lHash.getBytes() + PS + '\x01' + message; + + if(!seed) { + seed = forge.random.getBytes(md.digestLength); + } else if(seed.length !== md.digestLength) { + var error = new Error('Invalid RSAES-OAEP seed. The seed length must ' + + 'match the digest length.'); + error.seedLength = seed.length; + error.digestLength = md.digestLength; + throw error; + } + + var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); + var maskedDB = forge.util.xorBytes(DB, dbMask, DB.length); + + var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); + var maskedSeed = forge.util.xorBytes(seed, seedMask, seed.length); + + // return encoded message + return '\x00' + maskedSeed + maskedDB; +}; + /** - * Generates the authentication header map needed for generating the AWS - * Signature Version 4 signed request. + * Decode the given RSAES-OAEP encoded message (EM) using key, with optional + * label (L). * - * @param option The options needed to compute the authentication header map. - * @return The AWS authentication header map which constitutes of the following - * components: amz-date, authorization header and canonical query string. + * This method does not perform RSA decryption, it only decodes the message + * using RSAES-OAEP. + * + * @param key the RSA key to use. + * @param em the encoded message to decode. + * @param options the options to use: + * label an optional label to use. + * md the message digest object to use for OAEP, undefined for SHA-1. + * mgf1 optional mgf1 parameters: + * md the message digest object to use for MGF1. + * + * @return the decoded message bytes. */ -async function generateAuthenticationHeaderMap(options) { - const additionalAmzHeaders = options.additionalAmzHeaders || {}; - const requestPayload = options.requestPayload || ''; - // iam.amazonaws.com host => iam service. - // sts.us-east-2.amazonaws.com => sts service. - const serviceName = options.host.split('.')[0]; - const now = new Date(); - // Format: '%Y%m%dT%H%M%SZ'. - const amzDate = now - .toISOString() - .replace(/[-:]/g, '') - .replace(/\.[0-9]+/, ''); - // Format: '%Y%m%d'. - const dateStamp = now.toISOString().replace(/[-]/g, '').replace(/T.*/, ''); - // Change all additional headers to be lower case. - const reformattedAdditionalAmzHeaders = {}; - Object.keys(additionalAmzHeaders).forEach(key => { - reformattedAdditionalAmzHeaders[key.toLowerCase()] = - additionalAmzHeaders[key]; - }); - // Add AWS token if available. - if (options.securityCredentials.token) { - reformattedAdditionalAmzHeaders['x-amz-security-token'] = - options.securityCredentials.token; +pkcs1.decode_rsa_oaep = function(key, em, options) { + // parse args + var label; + var md; + var mgf1Md; + // legacy args + if(typeof options === 'string') { + label = options; + md = arguments[3] || undefined; + } else if(options) { + label = options.label || undefined; + md = options.md || undefined; + if(options.mgf1 && options.mgf1.md) { + mgf1Md = options.mgf1.md; } - // Header keys need to be sorted alphabetically. - const amzHeaders = Object.assign({ - host: options.host, - }, - // Previously the date was not fixed with x-amz- and could be provided manually. - // https://github.com/boto/botocore/blob/879f8440a4e9ace5d3cf145ce8b3d5e5ffb892ef/tests/unit/auth/aws4_testsuite/get-header-value-trim.req - reformattedAdditionalAmzHeaders.date ? {} : { 'x-amz-date': amzDate }, reformattedAdditionalAmzHeaders); - let canonicalHeaders = ''; - const signedHeadersList = Object.keys(amzHeaders).sort(); - signedHeadersList.forEach(key => { - canonicalHeaders += `${key}:${amzHeaders[key]}\n`; - }); - const signedHeaders = signedHeadersList.join(';'); - const payloadHash = await options.crypto.sha256DigestHex(requestPayload); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html - const canonicalRequest = `${options.method}\n` + - `${options.canonicalUri}\n` + - `${options.canonicalQuerystring}\n` + - `${canonicalHeaders}\n` + - `${signedHeaders}\n` + - `${payloadHash}`; - const credentialScope = `${dateStamp}/${options.region}/${serviceName}/${AWS_REQUEST_TYPE}`; - // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html - const stringToSign = `${AWS_ALGORITHM}\n` + - `${amzDate}\n` + - `${credentialScope}\n` + - (await options.crypto.sha256DigestHex(canonicalRequest)); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html - const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName); - const signature = await sign(options.crypto, signingKey, stringToSign); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html - const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/` + - `${credentialScope}, SignedHeaders=${signedHeaders}, ` + - `Signature=${crypto_1.fromArrayBufferToHex(signature)}`; - return { - // Do not return x-amz-date if date is available. - amzDate: reformattedAdditionalAmzHeaders.date ? undefined : amzDate, - authorizationHeader, - canonicalQuerystring: options.canonicalQuerystring, - }; + } + + // compute length in bytes + var keyLength = Math.ceil(key.n.bitLength() / 8); + + if(em.length !== keyLength) { + var error = new Error('RSAES-OAEP encoded message length is invalid.'); + error.length = em.length; + error.expectedLength = keyLength; + throw error; + } + + // default OAEP to SHA-1 message digest + if(md === undefined) { + md = forge.md.sha1.create(); + } else { + md.start(); + } + + // default MGF-1 to same as OAEP + if(!mgf1Md) { + mgf1Md = md; + } + + if(keyLength < 2 * md.digestLength + 2) { + throw new Error('RSAES-OAEP key is too short for the hash function.'); + } + + if(!label) { + label = ''; + } + md.update(label, 'raw'); + var lHash = md.digest().getBytes(); + + // split the message into its parts + var y = em.charAt(0); + var maskedSeed = em.substring(1, md.digestLength + 1); + var maskedDB = em.substring(1 + md.digestLength); + + var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); + var seed = forge.util.xorBytes(maskedSeed, seedMask, maskedSeed.length); + + var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); + var db = forge.util.xorBytes(maskedDB, dbMask, maskedDB.length); + + var lHashPrime = db.substring(0, md.digestLength); + + // constant time check that all values match what is expected + var error = (y !== '\x00'); + + // constant time check lHash vs lHashPrime + for(var i = 0; i < md.digestLength; ++i) { + error |= (lHash.charAt(i) !== lHashPrime.charAt(i)); + } + + // "constant time" find the 0x1 byte separating the padding (zeros) from the + // message + // TODO: It must be possible to do this in a better/smarter way? + var in_ps = 1; + var index = md.digestLength; + for(var j = md.digestLength; j < db.length; j++) { + var code = db.charCodeAt(j); + + var is_0 = (code & 0x1) ^ 0x1; + + // non-zero if not 0 or 1 in the ps section + var error_mask = in_ps ? 0xfffe : 0x0000; + error |= (code & error_mask); + + // latch in_ps to zero after we find 0x1 + in_ps = in_ps & is_0; + index += in_ps; + } + + if(error || db.charCodeAt(index) !== 0x1) { + throw new Error('Invalid RSAES-OAEP padding.'); + } + + return db.substring(index + 1); +}; + +function rsa_mgf1(seed, maskLength, hash) { + // default to SHA-1 message digest + if(!hash) { + hash = forge.md.sha1.create(); + } + var t = ''; + var count = Math.ceil(maskLength / hash.digestLength); + for(var i = 0; i < count; ++i) { + var c = String.fromCharCode( + (i >> 24) & 0xFF, (i >> 16) & 0xFF, (i >> 8) & 0xFF, i & 0xFF); + hash.start(); + hash.update(seed + c); + t += hash.digest().getBytes(); + } + return t.substring(0, maskLength); } -//# sourceMappingURL=awsrequestsigner.js.map -/***/ }), -/***/ 14956: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ }), -"use strict"; +/***/ 43059: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BaseExternalAccountClient = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0; -const stream = __nccwpck_require__(12781); -const authclient_1 = __nccwpck_require__(38421); -const sts = __nccwpck_require__(71235); -/** - * The required token exchange grant_type: rfc8693#section-2.1 - */ -const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; -/** - * The requested token exchange requested_token_type: rfc8693#section-2.1 - */ -const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; -/** The default OAuth scope to request when none is provided. */ -const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; -/** The google apis domain pattern. */ -const GOOGLE_APIS_DOMAIN_PATTERN = '\\.googleapis\\.com$'; -/** The variable portion pattern in a Google APIs domain. */ -const VARIABLE_PORTION_PATTERN = '[^\\.\\s\\/\\\\]+'; /** - * Offset to take into account network delays and server clock skews. + * Javascript implementation of PKCS#12. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * The ASN.1 representation of PKCS#12 is as follows + * (see ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12-tc1.pdf for details) + * + * PFX ::= SEQUENCE { + * version INTEGER {v3(3)}(v3,...), + * authSafe ContentInfo, + * macData MacData OPTIONAL + * } + * + * MacData ::= SEQUENCE { + * mac DigestInfo, + * macSalt OCTET STRING, + * iterations INTEGER DEFAULT 1 + * } + * Note: The iterations default is for historical reasons and its use is + * deprecated. A higher value, like 1024, is recommended. + * + * DigestInfo is defined in PKCS#7 as follows: + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of SHA1 there is none. + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * Digest ::= OCTET STRING + * + * + * ContentInfo ::= SEQUENCE { + * contentType ContentType, + * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL + * } + * + * ContentType ::= OBJECT IDENTIFIER + * + * AuthenticatedSafe ::= SEQUENCE OF ContentInfo + * -- Data if unencrypted + * -- EncryptedData if password-encrypted + * -- EnvelopedData if public key-encrypted + * + * + * SafeContents ::= SEQUENCE OF SafeBag + * + * SafeBag ::= SEQUENCE { + * bagId BAG-TYPE.&id ({PKCS12BagSet}) + * bagValue [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}), + * bagAttributes SET OF PKCS12Attribute OPTIONAL + * } + * + * PKCS12Attribute ::= SEQUENCE { + * attrId ATTRIBUTE.&id ({PKCS12AttrSet}), + * attrValues SET OF ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId}) + * } -- This type is compatible with the X.500 type 'Attribute' + * + * PKCS12AttrSet ATTRIBUTE ::= { + * friendlyName | -- from PKCS #9 + * localKeyId, -- from PKCS #9 + * ... -- Other attributes are allowed + * } + * + * CertBag ::= SEQUENCE { + * certId BAG-TYPE.&id ({CertTypes}), + * certValue [0] EXPLICIT BAG-TYPE.&Type ({CertTypes}{@certId}) + * } + * + * x509Certificate BAG-TYPE ::= {OCTET STRING IDENTIFIED BY {certTypes 1}} + * -- DER-encoded X.509 certificate stored in OCTET STRING + * + * sdsiCertificate BAG-TYPE ::= {IA5String IDENTIFIED BY {certTypes 2}} + * -- Base64-encoded SDSI certificate stored in IA5String + * + * CertTypes BAG-TYPE ::= { + * x509Certificate | + * sdsiCertificate, + * ... -- For future extensions + * } */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +var forge = __nccwpck_require__(40080); +__nccwpck_require__(87878); +__nccwpck_require__(45868); +__nccwpck_require__(40934); +__nccwpck_require__(26718); +__nccwpck_require__(42254); +__nccwpck_require__(87088); +__nccwpck_require__(56361); +__nccwpck_require__(87986); +__nccwpck_require__(46831); +__nccwpck_require__(60183); + +// shortcut for asn.1 & PKI API +var asn1 = forge.asn1; +var pki = forge.pki; + +// shortcut for PKCS#12 API +var p12 = module.exports = forge.pkcs12 = forge.pkcs12 || {}; + +var contentInfoValidator = { + name: 'ContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // a ContentInfo + constructed: true, + value: [{ + name: 'ContentInfo.contentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'ContentInfo.content', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + captureAsn1: 'content' + }] +}; + +var pfxValidator = { + name: 'PFX', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PFX.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, + contentInfoValidator, { + name: 'PFX.macData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'mac', + value: [{ + name: 'PFX.macData.mac', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // DigestInfo + constructed: true, + value: [{ + name: 'PFX.macData.mac.digestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // DigestAlgorithmIdentifier + constructed: true, + value: [{ + name: 'PFX.macData.mac.digestAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'macAlgorithm' + }, { + name: 'PFX.macData.mac.digestAlgorithm.parameters', + optional: true, + tagClass: asn1.Class.UNIVERSAL, + captureAsn1: 'macAlgorithmParameters' + }] + }, { + name: 'PFX.macData.mac.digest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'macDigest' + }] + }, { + name: 'PFX.macData.macSalt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'macSalt' + }, { + name: 'PFX.macData.iterations', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + optional: true, + capture: 'macIterations' + }] + }] +}; + +var safeBagValidator = { + name: 'SafeBag', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SafeBag.bagId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'bagId' + }, { + name: 'SafeBag.bagValue', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + captureAsn1: 'bagValue' + }, { + name: 'SafeBag.bagAttributes', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + optional: true, + capture: 'bagAttributes' + }] +}; + +var attributeValidator = { + name: 'Attribute', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Attribute.attrId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'oid' + }, { + name: 'Attribute.attrValues', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + capture: 'values' + }] +}; + +var certBagValidator = { + name: 'CertBag', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'CertBag.certId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certId' + }, { + name: 'CertBag.certValue', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + /* So far we only support X.509 certificates (which are wrapped in + an OCTET STRING, hence hard code that here). */ + value: [{ + name: 'CertBag.certValue[0]', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.OCTETSTRING, + constructed: false, + capture: 'cert' + }] + }] +}; + /** - * The credentials JSON file type for external account clients. - * There are 3 types of JSON configs: - * 1. authorized_user => Google end user credential - * 2. service_account => Google service account credential - * 3. external_Account => non-GCP service (eg. AWS, Azure, K8s) + * Search SafeContents structure for bags with matching attributes. + * + * The search can optionally be narrowed by a certain bag type. + * + * @param safeContents the SafeContents structure to search in. + * @param attrName the name of the attribute to compare against. + * @param attrValue the attribute value to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of matching bags. */ -exports.EXTERNAL_ACCOUNT_TYPE = 'external_account'; -/** Cloud resource manager URL used to retrieve project information. */ -exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/'; -/** The workforce audience pattern. */ -const WORKFORCE_AUDIENCE_PATTERN = '//iam.googleapis.com/locations/[^/]+/workforcePools/[^/]+/providers/.+'; +function _getBagsByAttribute(safeContents, attrName, attrValue, bagType) { + var result = []; + + for(var i = 0; i < safeContents.length; i++) { + for(var j = 0; j < safeContents[i].safeBags.length; j++) { + var bag = safeContents[i].safeBags[j]; + if(bagType !== undefined && bag.type !== bagType) { + continue; + } + // only filter by bag type, no attribute specified + if(attrName === null) { + result.push(bag); + continue; + } + if(bag.attributes[attrName] !== undefined && + bag.attributes[attrName].indexOf(attrValue) >= 0) { + result.push(bag); + } + } + } + + return result; +} + /** - * Base external account client. This is used to instantiate AuthClients for - * exchanging external account credentials for GCP access token and authorizing - * requests to GCP APIs. - * The base class implements common logic for exchanging various type of - * external credentials for GCP access token. The logic of determining and - * retrieving the external credential based on the environment and - * credential_source will be left for the subclasses. + * Converts a PKCS#12 PFX in ASN.1 notation into a PFX object. + * + * @param obj The PKCS#12 PFX in ASN.1 notation. + * @param strict true to use strict DER decoding, false not to (default: true). + * @param {String} password Password to decrypt with (optional). + * + * @return PKCS#12 PFX object. */ -class BaseExternalAccountClient extends authclient_1.AuthClient { - /** - * Instantiate a BaseExternalAccountClient instance using the provided JSON - * object loaded from an external account credentials file. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - */ - constructor(options, additionalOptions) { - super(); - if (options.type !== exports.EXTERNAL_ACCOUNT_TYPE) { - throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` + - `received "${options.type}"`); - } - this.clientAuth = options.client_id - ? { - confidentialClientType: 'basic', - clientId: options.client_id, - clientSecret: options.client_secret, - } - : undefined; - if (!this.validateGoogleAPIsUrl('sts', options.token_url)) { - throw new Error(`"${options.token_url}" is not a valid token url.`); - } - this.stsCredential = new sts.StsCredentials(options.token_url, this.clientAuth); - // Default OAuth scope. This could be overridden via public property. - this.scopes = [DEFAULT_OAUTH_SCOPE]; - this.cachedAccessToken = null; - this.audience = options.audience; - this.subjectTokenType = options.subject_token_type; - this.quotaProjectId = options.quota_project_id; - this.workforcePoolUserProject = options.workforce_pool_user_project; - const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN); - if (this.workforcePoolUserProject && - !this.audience.match(workforceAudiencePattern)) { - throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' + - 'credentials.'); - } - if (typeof options.service_account_impersonation_url !== 'undefined' && - !this.validateGoogleAPIsUrl('iamcredentials', options.service_account_impersonation_url)) { - throw new Error(`"${options.service_account_impersonation_url}" is ` + - 'not a valid service account impersonation url.'); - } - this.serviceAccountImpersonationUrl = - options.service_account_impersonation_url; - // As threshold could be zero, - // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the - // zero value. - if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { - this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; - } - else { - this.eagerRefreshThresholdMillis = additionalOptions - .eagerRefreshThresholdMillis; - } - this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); - this.projectId = null; - this.projectNumber = this.getProjectNumber(this.audience); - } - /** The service account email to be impersonated, if available. */ - getServiceAccountEmail() { - var _a; - if (this.serviceAccountImpersonationUrl) { - // Parse email from URL. The formal looks as follows: - // https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken - const re = /serviceAccounts\/(?[^:]+):generateAccessToken$/; - const result = re.exec(this.serviceAccountImpersonationUrl); - return ((_a = result === null || result === void 0 ? void 0 : result.groups) === null || _a === void 0 ? void 0 : _a.email) || null; - } - return null; - } +p12.pkcs12FromAsn1 = function(obj, strict, password) { + // handle args + if(typeof strict === 'string') { + password = strict; + strict = true; + } else if(strict === undefined) { + strict = true; + } + + // validate PFX and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, pfxValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 PFX. ' + + 'ASN.1 object is not an PKCS#12 PFX.'); + error.errors = error; + throw error; + } + + var pfx = { + version: capture.version.charCodeAt(0), + safeContents: [], + /** - * Provides a mechanism to inject GCP access tokens directly. - * When the provided credential expires, a new credential, using the - * external account options, is retrieved. - * @param credentials The Credentials object to set on the current client. + * Gets bags with matching attributes. + * + * @param filter the attributes to filter by: + * [localKeyId] the localKeyId to search for. + * [localKeyIdHex] the localKeyId in hex to search for. + * [friendlyName] the friendly name to search for. + * [bagType] bag type to narrow each attribute search by. + * + * @return a map of attribute type to an array of matching bags or, if no + * attribute was given but a bag type, the map key will be the + * bag type. */ - setCredentials(credentials) { - super.setCredentials(credentials); - this.cachedAccessToken = credentials; - } + getBags: function(filter) { + var rval = {}; + + var localKeyId; + if('localKeyId' in filter) { + localKeyId = filter.localKeyId; + } else if('localKeyIdHex' in filter) { + localKeyId = forge.util.hexToBytes(filter.localKeyIdHex); + } + + // filter on bagType only + if(localKeyId === undefined && !('friendlyName' in filter) && + 'bagType' in filter) { + rval[filter.bagType] = _getBagsByAttribute( + pfx.safeContents, null, null, filter.bagType); + } + + if(localKeyId !== undefined) { + rval.localKeyId = _getBagsByAttribute( + pfx.safeContents, 'localKeyId', + localKeyId, filter.bagType); + } + if('friendlyName' in filter) { + rval.friendlyName = _getBagsByAttribute( + pfx.safeContents, 'friendlyName', + filter.friendlyName, filter.bagType); + } + + return rval; + }, + /** - * @return A promise that resolves with the current GCP access token - * response. If the current credential is expired, a new one is retrieved. + * DEPRECATED: use getBags() instead. + * + * Get bags with matching friendlyName attribute. + * + * @param friendlyName the friendly name to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of bags with matching friendlyName attribute. */ - async getAccessToken() { - // If cached access token is unavailable or expired, force refresh. - if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { - await this.refreshAccessTokenAsync(); - } - // Return GCP access token in GetAccessTokenResponse format. - return { - token: this.cachedAccessToken.access_token, - res: this.cachedAccessToken.res, - }; - } + getBagsByFriendlyName: function(friendlyName, bagType) { + return _getBagsByAttribute( + pfx.safeContents, 'friendlyName', friendlyName, bagType); + }, + /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. + * DEPRECATED: use getBags() instead. * - * The result has the form: - * { Authorization: 'Bearer ' } + * Get bags with matching localKeyId attribute. + * + * @param localKeyId the localKeyId to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of bags with matching localKeyId attribute. */ - async getRequestHeaders() { - const accessTokenResponse = await this.getAccessToken(); - const headers = { - Authorization: `Bearer ${accessTokenResponse.token}`, - }; - return this.addSharedMetadataHeaders(headers); + getBagsByLocalKeyId: function(localKeyId, bagType) { + return _getBagsByAttribute( + pfx.safeContents, 'localKeyId', localKeyId, bagType); } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); - } - else { - return this.requestAsync(opts); - } + }; + + if(capture.version.charCodeAt(0) !== 3) { + var error = new Error('PKCS#12 PFX of version other than 3 not supported.'); + error.version = capture.version.charCodeAt(0); + throw error; + } + + if(asn1.derToOid(capture.contentType) !== pki.oids.data) { + var error = new Error('Only PKCS#12 PFX in password integrity mode supported.'); + error.oid = asn1.derToOid(capture.contentType); + throw error; + } + + var data = capture.content.value[0]; + if(data.tagClass !== asn1.Class.UNIVERSAL || + data.type !== asn1.Type.OCTETSTRING) { + throw new Error('PKCS#12 authSafe content data is not an OCTET STRING.'); + } + data = _decodePkcs7Data(data); + + // check for MAC + if(capture.mac) { + var md = null; + var macKeyBytes = 0; + var macAlgorithm = asn1.derToOid(capture.macAlgorithm); + switch(macAlgorithm) { + case pki.oids.sha1: + md = forge.md.sha1.create(); + macKeyBytes = 20; + break; + case pki.oids.sha256: + md = forge.md.sha256.create(); + macKeyBytes = 32; + break; + case pki.oids.sha384: + md = forge.md.sha384.create(); + macKeyBytes = 48; + break; + case pki.oids.sha512: + md = forge.md.sha512.create(); + macKeyBytes = 64; + break; + case pki.oids.md5: + md = forge.md.md5.create(); + macKeyBytes = 16; + break; } - /** - * @return A promise that resolves with the project ID corresponding to the - * current workload identity pool or current workforce pool if - * determinable. For workforce pool credential, it returns the project ID - * corresponding to the workforcePoolUserProject. - * This is introduced to match the current pattern of using the Auth - * library: - * const projectId = await auth.getProjectId(); - * const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; - * const res = await client.request({ url }); - * The resource may not have permission - * (resourcemanager.projects.get) to call this API or the required - * scopes may not be selected: - * https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes - */ - async getProjectId() { - const projectNumber = this.projectNumber || this.workforcePoolUserProject; - if (this.projectId) { - // Return previously determined project ID. - return this.projectId; - } - else if (projectNumber) { - // Preferable not to use request() to avoid retrial policies. - const headers = await this.getRequestHeaders(); - const response = await this.transporter.request({ - headers, - url: `${exports.CLOUD_RESOURCE_MANAGER}${projectNumber}`, - responseType: 'json', - }); - this.projectId = response.data.projectId; - return this.projectId; - } - return null; + if(md === null) { + throw new Error('PKCS#12 uses unsupported MAC algorithm: ' + macAlgorithm); } - /** - * Authenticates the provided HTTP request, processes it and resolves with the - * returned response. - * @param opts The HTTP request options. - * @param retry Whether the current attempt is a retry after a failed attempt. - * @return A promise that resolves with the successful response. - */ - async requestAsync(opts, retry = false) { - let response; - try { - const requestHeaders = await this.getRequestHeaders(); - opts.headers = opts.headers || {}; - if (requestHeaders && requestHeaders['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = - requestHeaders['x-goog-user-project']; - } - if (requestHeaders && requestHeaders.Authorization) { - opts.headers.Authorization = requestHeaders.Authorization; - } - response = await this.transporter.request(opts); - } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - forceRefreshOnFailure is true - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!retry && - isAuthErr && - !isReadableStream && - this.forceRefreshOnFailure) { - await this.refreshAccessTokenAsync(); - return await this.requestAsync(opts, true); - } - } - throw e; - } - return response; + + // verify MAC (iterations default to 1) + var macSalt = new forge.util.ByteBuffer(capture.macSalt); + var macIterations = (('macIterations' in capture) ? + parseInt(forge.util.bytesToHex(capture.macIterations), 16) : 1); + var macKey = p12.generateKey( + password, macSalt, 3, macIterations, macKeyBytes, md); + var mac = forge.hmac.create(); + mac.start(md, macKey); + mac.update(data.value); + var macValue = mac.getMac(); + if(macValue.getBytes() !== capture.macDigest) { + throw new Error('PKCS#12 MAC could not be verified. Invalid password?'); } - /** - * Forces token refresh, even if unexpired tokens are currently cached. - * External credentials are exchanged for GCP access tokens via the token - * exchange endpoint and other settings provided in the client options - * object. - * If the service_account_impersonation_url is provided, an additional - * step to exchange the external account GCP access token for a service - * account impersonated token is performed. - * @return A promise that resolves with the fresh GCP access tokens. - */ - async refreshAccessTokenAsync() { - // Retrieve the external credential. - const subjectToken = await this.retrieveSubjectToken(); - // Construct the STS credentials options. - const stsCredentialsOptions = { - grantType: STS_GRANT_TYPE, - audience: this.audience, - requestedTokenType: STS_REQUEST_TOKEN_TYPE, - subjectToken, - subjectTokenType: this.subjectTokenType, - // generateAccessToken requires the provided access token to have - // scopes: - // https://www.googleapis.com/auth/iam or - // https://www.googleapis.com/auth/cloud-platform - // The new service account access token scopes will match the user - // provided ones. - scope: this.serviceAccountImpersonationUrl - ? [DEFAULT_OAUTH_SCOPE] - : this.getScopesArray(), - }; - // Exchange the external credentials for a GCP access token. - // Client auth is prioritized over passing the workforcePoolUserProject - // parameter for STS token exchange. - const additionalOptions = !this.clientAuth && this.workforcePoolUserProject - ? { userProject: this.workforcePoolUserProject } - : undefined; - const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, additionalOptions); - if (this.serviceAccountImpersonationUrl) { - this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token); - } - else if (stsResponse.expires_in) { - // Save response in cached access token. - this.cachedAccessToken = { - access_token: stsResponse.access_token, - expiry_date: new Date().getTime() + stsResponse.expires_in * 1000, - res: stsResponse.res, - }; - } - else { - // Save response in cached access token. - this.cachedAccessToken = { - access_token: stsResponse.access_token, - res: stsResponse.res, - }; - } - // Save credentials. - this.credentials = {}; - Object.assign(this.credentials, this.cachedAccessToken); - delete this.credentials.res; - // Trigger tokens event to notify external listeners. - this.emit('tokens', { - refresh_token: null, - expiry_date: this.cachedAccessToken.expiry_date, - access_token: this.cachedAccessToken.access_token, - token_type: 'Bearer', - id_token: null, - }); - // Return the cached access token. - return this.cachedAccessToken; + } else if(Array.isArray(obj.value) && obj.value.length > 2) { + /* This is pfx data that should have mac and verify macDigest */ + throw new Error('Invalid PKCS#12. macData field present but MAC was not validated.'); + } + + _decodeAuthenticatedSafe(pfx, data.value, strict, password); + return pfx; +}; + +/** + * Decodes PKCS#7 Data. PKCS#7 (RFC 2315) defines "Data" as an OCTET STRING, + * but it is sometimes an OCTET STRING that is composed/constructed of chunks, + * each its own OCTET STRING. This is BER-encoding vs. DER-encoding. This + * function transforms this corner-case into the usual simple, + * non-composed/constructed OCTET STRING. + * + * This function may be moved to ASN.1 at some point to better deal with + * more BER-encoding issues, should they arise. + * + * @param data the ASN.1 Data object to transform. + */ +function _decodePkcs7Data(data) { + // handle special case of "chunked" data content: an octet string composed + // of other octet strings + if(data.composed || data.constructed) { + var value = forge.util.createBuffer(); + for(var i = 0; i < data.value.length; ++i) { + value.putBytes(data.value[i].value); } - /** - * Returns the workload identity pool project number if it is determinable - * from the audience resource name. - * @param audience The STS audience used to determine the project number. - * @return The project number associated with the workload identity pool, if - * this can be determined from the STS audience field. Otherwise, null is - * returned. - */ - getProjectNumber(audience) { - // STS audience pattern: - // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/... - const match = audience.match(/\/projects\/([^/]+)/); - if (!match) { - return null; - } - return match[1]; + data.composed = data.constructed = false; + data.value = value.getBytes(); + } + return data; +} + +/** + * Decode PKCS#12 AuthenticatedSafe (BER encoded) into PFX object. + * + * The AuthenticatedSafe is a BER-encoded SEQUENCE OF ContentInfo. + * + * @param pfx The PKCS#12 PFX object to fill. + * @param {String} authSafe BER-encoded AuthenticatedSafe. + * @param strict true to use strict DER decoding, false not to. + * @param {String} password Password to decrypt with (optional). + */ +function _decodeAuthenticatedSafe(pfx, authSafe, strict, password) { + authSafe = asn1.fromDer(authSafe, strict); /* actually it's BER encoded */ + + if(authSafe.tagClass !== asn1.Class.UNIVERSAL || + authSafe.type !== asn1.Type.SEQUENCE || + authSafe.constructed !== true) { + throw new Error('PKCS#12 AuthenticatedSafe expected to be a ' + + 'SEQUENCE OF ContentInfo'); + } + + for(var i = 0; i < authSafe.value.length; i++) { + var contentInfo = authSafe.value[i]; + + // validate contentInfo and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(contentInfo, contentInfoValidator, capture, errors)) { + var error = new Error('Cannot read ContentInfo.'); + error.errors = errors; + throw error; } - /** - * Exchanges an external account GCP access token for a service - * account impersonated access token using iamcredentials - * GenerateAccessToken API. - * @param token The access token to exchange for a service account access - * token. - * @return A promise that resolves with the service account impersonated - * credentials response. - */ - async getImpersonatedAccessToken(token) { - const opts = { - url: this.serviceAccountImpersonationUrl, - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${token}`, - }, - data: { - scope: this.getScopesArray(), - }, - responseType: 'json', - }; - const response = await this.transporter.request(opts); - const successResponse = response.data; - return { - access_token: successResponse.accessToken, - // Convert from ISO format to timestamp. - expiry_date: new Date(successResponse.expireTime).getTime(), - res: response, - }; + + var obj = { + encrypted: false + }; + var safeContents = null; + var data = capture.content.value[0]; + switch(asn1.derToOid(capture.contentType)) { + case pki.oids.data: + if(data.tagClass !== asn1.Class.UNIVERSAL || + data.type !== asn1.Type.OCTETSTRING) { + throw new Error('PKCS#12 SafeContents Data is not an OCTET STRING.'); + } + safeContents = _decodePkcs7Data(data).value; + break; + case pki.oids.encryptedData: + safeContents = _decryptSafeContents(data, password); + obj.encrypted = true; + break; + default: + var error = new Error('Unsupported PKCS#12 contentType.'); + error.contentType = asn1.derToOid(capture.contentType); + throw error; } - /** - * Returns whether the provided credentials are expired or not. - * If there is no expiry time, assumes the token is not expired or expiring. - * @param accessToken The credentials to check for expiration. - * @return Whether the credentials are expired or not. - */ - isExpired(accessToken) { - const now = new Date().getTime(); - return accessToken.expiry_date - ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis - : false; + + obj.safeBags = _decodeSafeContents(safeContents, strict, password); + pfx.safeContents.push(obj); + } +} + +/** + * Decrypt PKCS#7 EncryptedData structure. + * + * @param data ASN.1 encoded EncryptedContentInfo object. + * @param password The user-provided password. + * + * @return The decrypted SafeContents (ASN.1 object). + */ +function _decryptSafeContents(data, password) { + var capture = {}; + var errors = []; + if(!asn1.validate( + data, forge.pkcs7.asn1.encryptedDataValidator, capture, errors)) { + var error = new Error('Cannot read EncryptedContentInfo.'); + error.errors = errors; + throw error; + } + + var oid = asn1.derToOid(capture.contentType); + if(oid !== pki.oids.data) { + var error = new Error( + 'PKCS#12 EncryptedContentInfo ContentType is not Data.'); + error.oid = oid; + throw error; + } + + // get cipher + oid = asn1.derToOid(capture.encAlgorithm); + var cipher = pki.pbe.getCipher(oid, capture.encParameter, password); + + // get encrypted data + var encryptedContentAsn1 = _decodePkcs7Data(capture.encryptedContentAsn1); + var encrypted = forge.util.createBuffer(encryptedContentAsn1.value); + + cipher.update(encrypted); + if(!cipher.finish()) { + throw new Error('Failed to decrypt PKCS#12 SafeContents.'); + } + + return cipher.output.getBytes(); +} + +/** + * Decode PKCS#12 SafeContents (BER-encoded) into array of Bag objects. + * + * The safeContents is a BER-encoded SEQUENCE OF SafeBag. + * + * @param {String} safeContents BER-encoded safeContents. + * @param strict true to use strict DER decoding, false not to. + * @param {String} password Password to decrypt with (optional). + * + * @return {Array} Array of Bag objects. + */ +function _decodeSafeContents(safeContents, strict, password) { + // if strict and no safe contents, return empty safes + if(!strict && safeContents.length === 0) { + return []; + } + + // actually it's BER-encoded + safeContents = asn1.fromDer(safeContents, strict); + + if(safeContents.tagClass !== asn1.Class.UNIVERSAL || + safeContents.type !== asn1.Type.SEQUENCE || + safeContents.constructed !== true) { + throw new Error( + 'PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.'); + } + + var res = []; + for(var i = 0; i < safeContents.value.length; i++) { + var safeBag = safeContents.value[i]; + + // validate SafeBag and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(safeBag, safeBagValidator, capture, errors)) { + var error = new Error('Cannot read SafeBag.'); + error.errors = errors; + throw error; } - /** - * @return The list of scopes for the requested GCP access token. - */ - getScopesArray() { - // Since scopes can be provided as string or array, the type should - // be normalized. - if (typeof this.scopes === 'string') { - return [this.scopes]; - } - else if (typeof this.scopes === 'undefined') { - return [DEFAULT_OAUTH_SCOPE]; - } - else { - return this.scopes; + + /* Create bag object and push to result array. */ + var bag = { + type: asn1.derToOid(capture.bagId), + attributes: _decodeBagAttributes(capture.bagAttributes) + }; + res.push(bag); + + var validator, decoder; + var bagAsn1 = capture.bagValue.value[0]; + switch(bag.type) { + case pki.oids.pkcs8ShroudedKeyBag: + /* bagAsn1 has a EncryptedPrivateKeyInfo, which we need to decrypt. + Afterwards we can handle it like a keyBag, + which is a PrivateKeyInfo. */ + bagAsn1 = pki.decryptPrivateKeyInfo(bagAsn1, password); + if(bagAsn1 === null) { + throw new Error( + 'Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?'); } - } - /** - * Checks whether Google APIs URL is valid. - * @param apiName The apiName of url. - * @param url The Google API URL to validate. - * @return Whether the URL is valid or not. - */ - validateGoogleAPIsUrl(apiName, url) { - let parsedUrl; - // Return false if error is thrown during parsing URL. + + /* fall through */ + case pki.oids.keyBag: + /* A PKCS#12 keyBag is a simple PrivateKeyInfo as understood by our + PKI module, hence we don't have to do validation/capturing here, + just pass what we already got. */ try { - parsedUrl = new URL(url); - } - catch (e) { - return false; - } - const urlDomain = parsedUrl.hostname; - // Check the protocol is https. - if (parsedUrl.protocol !== 'https:') { - return false; - } - const googleAPIsDomainPatterns = [ - new RegExp('^' + - VARIABLE_PORTION_PATTERN + - '\\.' + - apiName + - GOOGLE_APIS_DOMAIN_PATTERN), - new RegExp('^' + apiName + GOOGLE_APIS_DOMAIN_PATTERN), - new RegExp('^' + - apiName + - '\\.' + - VARIABLE_PORTION_PATTERN + - GOOGLE_APIS_DOMAIN_PATTERN), - new RegExp('^' + - VARIABLE_PORTION_PATTERN + - '\\-' + - apiName + - GOOGLE_APIS_DOMAIN_PATTERN), - ]; - for (const googleAPIsDomainPattern of googleAPIsDomainPatterns) { - if (urlDomain.match(googleAPIsDomainPattern)) { - return true; - } + bag.key = pki.privateKeyFromAsn1(bagAsn1); + } catch(e) { + // ignore unknown key type, pass asn1 value + bag.key = null; + bag.asn1 = bagAsn1; } - return false; + continue; /* Nothing more to do. */ + + case pki.oids.certBag: + /* A PKCS#12 certBag can wrap both X.509 and sdsi certificates. + Therefore put the SafeBag content through another validator to + capture the fields. Afterwards check & store the results. */ + validator = certBagValidator; + decoder = function() { + if(asn1.derToOid(capture.certId) !== pki.oids.x509Certificate) { + var error = new Error( + 'Unsupported certificate type, only X.509 supported.'); + error.oid = asn1.derToOid(capture.certId); + throw error; + } + + // true=produce cert hash + var certAsn1 = asn1.fromDer(capture.cert, strict); + try { + bag.cert = pki.certificateFromAsn1(certAsn1, true); + } catch(e) { + // ignore unknown cert type, pass asn1 value + bag.cert = null; + bag.asn1 = certAsn1; + } + }; + break; + + default: + var error = new Error('Unsupported PKCS#12 SafeBag type.'); + error.oid = bag.type; + throw error; + } + + /* Validate SafeBag value (i.e. CertBag, etc.) and capture data if needed. */ + if(validator !== undefined && + !asn1.validate(bagAsn1, validator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 ' + validator.name); + error.errors = errors; + throw error; } + + /* Call decoder function from above to store the results. */ + decoder(); + } + + return res; } -exports.BaseExternalAccountClient = BaseExternalAccountClient; -//# sourceMappingURL=baseexternalclient.js.map -/***/ }), +/** + * Decode PKCS#12 SET OF PKCS12Attribute into JavaScript object. + * + * @param attributes SET OF PKCS12Attribute (ASN.1 object). + * + * @return the decoded attributes. + */ +function _decodeBagAttributes(attributes) { + var decodedAttrs = {}; -/***/ 78727: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if(attributes !== undefined) { + for(var i = 0; i < attributes.length; ++i) { + var capture = {}; + var errors = []; + if(!asn1.validate(attributes[i], attributeValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 BagAttribute.'); + error.errors = errors; + throw error; + } -"use strict"; + var oid = asn1.derToOid(capture.oid); + if(pki.oids[oid] === undefined) { + // unsupported attribute type, ignore. + continue; + } -// Copyright 2013 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Compute = void 0; -const arrify = __nccwpck_require__(53123); -const gcpMetadata = __nccwpck_require__(29938); -const oauth2client_1 = __nccwpck_require__(11883); -class Compute extends oauth2client_1.OAuth2Client { - /** - * Google Compute Engine service account credentials. - * - * Retrieve access token from the metadata server. - * See: https://developers.google.com/compute/docs/authentication - */ - constructor(options = {}) { - super(options); - // Start with an expired refresh token, which will automatically be - // refreshed before the first API call is made. - this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; - this.serviceAccountEmail = options.serviceAccountEmail || 'default'; - this.scopes = arrify(options.scopes); + decodedAttrs[pki.oids[oid]] = []; + for(var j = 0; j < capture.values.length; ++j) { + decodedAttrs[pki.oids[oid]].push(capture.values[j].value); + } } - /** - * Refreshes the access token. - * @param refreshToken Unused parameter - */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; - let data; - try { - const instanceOptions = { - property: tokenPath, - }; - if (this.scopes.length > 0) { - instanceOptions.params = { - scopes: this.scopes.join(','), - }; - } - data = await gcpMetadata.instance(instanceOptions); - } - catch (e) { - e.message = `Could not refresh access token: ${e.message}`; - this.wrapError(e); - throw e; - } - const tokens = data; - if (data && data.expires_in) { - tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; - delete tokens.expires_in; - } - this.emit('tokens', tokens); - return { tokens, res: null }; + } + + return decodedAttrs; +} + +/** + * Wraps a private key and certificate in a PKCS#12 PFX wrapper. If a + * password is provided then the private key will be encrypted. + * + * An entire certificate chain may also be included. To do this, pass + * an array for the "cert" parameter where the first certificate is + * the one that is paired with the private key and each subsequent one + * verifies the previous one. The certificates may be in PEM format or + * have been already parsed by Forge. + * + * @todo implement password-based-encryption for the whole package + * + * @param key the private key. + * @param cert the certificate (may be an array of certificates in order + * to specify a certificate chain). + * @param password the password to use, null for none. + * @param options: + * algorithm the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. + * count the iteration count to use. + * saltSize the salt size to use. + * useMac true to include a MAC, false not to, defaults to true. + * localKeyId the local key ID to use, in hex. + * friendlyName the friendly name to use. + * generateLocalKeyId true to generate a random local key ID, + * false not to, defaults to true. + * + * @return the PKCS#12 PFX ASN.1 object. + */ +p12.toPkcs12Asn1 = function(key, cert, password, options) { + // set default options + options = options || {}; + options.saltSize = options.saltSize || 8; + options.count = options.count || 2048; + options.algorithm = options.algorithm || options.encAlgorithm || 'aes128'; + if(!('useMac' in options)) { + options.useMac = true; + } + if(!('localKeyId' in options)) { + options.localKeyId = null; + } + if(!('generateLocalKeyId' in options)) { + options.generateLocalKeyId = true; + } + + var localKeyId = options.localKeyId; + var bagAttrs; + if(localKeyId !== null) { + localKeyId = forge.util.hexToBytes(localKeyId); + } else if(options.generateLocalKeyId) { + // use SHA-1 of paired cert, if available + if(cert) { + var pairedCert = forge.util.isArray(cert) ? cert[0] : cert; + if(typeof pairedCert === 'string') { + pairedCert = pki.certificateFromPem(pairedCert); + } + var sha1 = forge.md.sha1.create(); + sha1.update(asn1.toDer(pki.certificateToAsn1(pairedCert)).getBytes()); + localKeyId = sha1.digest().getBytes(); + } else { + // FIXME: consider using SHA-1 of public key (which can be generated + // from private key components), see: cert.generateSubjectKeyIdentifier + // generate random bytes + localKeyId = forge.random.getBytes(20); } - /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. - */ - async fetchIdToken(targetAudience) { - const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + - `?format=full&audience=${targetAudience}`; - let idToken; - try { - const instanceOptions = { - property: idTokenPath, - }; - idToken = await gcpMetadata.instance(instanceOptions); - } - catch (e) { - e.message = `Could not fetch ID token: ${e.message}`; - throw e; - } - return idToken; + } + + var attrs = []; + if(localKeyId !== null) { + attrs.push( + // localKeyID + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // attrId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.localKeyId).getBytes()), + // attrValues + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + localKeyId) + ]) + ])); + } + if('friendlyName' in options) { + attrs.push( + // friendlyName + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // attrId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.friendlyName).getBytes()), + // attrValues + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BMPSTRING, false, + options.friendlyName) + ]) + ])); + } + + if(attrs.length > 0) { + bagAttrs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, attrs); + } + + // collect contents for AuthenticatedSafe + var contents = []; + + // create safe bag(s) for certificate chain + var chain = []; + if(cert !== null) { + if(forge.util.isArray(cert)) { + chain = cert; + } else { + chain = [cert]; } - wrapError(e) { - const res = e.response; - if (res && res.status) { - e.code = res.status.toString(); - if (res.status === 403) { - e.message = - 'A Forbidden error was returned while attempting to retrieve an access ' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have the correct permission scopes specified: ' + - e.message; - } - else if (res.status === 404) { - e.message = - 'A Not Found error was returned while attempting to retrieve an access' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have any permission scopes specified: ' + - e.message; - } - } + } + + var certSafeBags = []; + for(var i = 0; i < chain.length; ++i) { + // convert cert from PEM as necessary + cert = chain[i]; + if(typeof cert === 'string') { + cert = pki.certificateFromPem(cert); } -} -exports.Compute = Compute; -//# sourceMappingURL=computeclient.js.map -/***/ }), + // SafeBag + var certBagAttrs = (i === 0) ? bagAttrs : undefined; + var certAsn1 = pki.certificateToAsn1(cert); + var certSafeBag = + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.certBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // CertBag + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // certId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.x509Certificate).getBytes()), + // certValue (x509Certificate) + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(certAsn1).getBytes()) + ])])]), + // bagAttributes (OPTIONAL) + certBagAttrs + ]); + certSafeBags.push(certSafeBag); + } -/***/ 89670: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if(certSafeBags.length > 0) { + // SafeContents + var certSafeContents = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, certSafeBags); + + // ContentInfo + var certCI = + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(certSafeContents).getBytes()) + ]) + ]); + contents.push(certCI); + } + + // create safe contents for private key + var keyBag = null; + if(key !== null) { + // SafeBag + var pkAsn1 = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(key)); + if(password === null) { + // no encryption + keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.keyBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // PrivateKeyInfo + pkAsn1 + ]), + // bagAttributes (OPTIONAL) + bagAttrs + ]); + } else { + // encrypted PrivateKeyInfo + keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.pkcs8ShroudedKeyBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // EncryptedPrivateKeyInfo + pki.encryptPrivateKeyInfo(pkAsn1, password, options) + ]), + // bagAttributes (OPTIONAL) + bagAttrs + ]); + } + + // SafeContents + var keySafeContents = + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [keyBag]); + + // ContentInfo + var keyCI = + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(keySafeContents).getBytes()) + ]) + ]); + contents.push(keyCI); + } + + // create AuthenticatedSafe by stringing together the contents + var safe = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, contents); + + var macData; + if(options.useMac) { + // MacData + var sha1 = forge.md.sha1.create(); + var macSalt = new forge.util.ByteBuffer( + forge.random.getBytes(options.saltSize)); + var count = options.count; + // 160-bit key + var key = p12.generateKey(password, macSalt, 3, count, 20); + var mac = forge.hmac.create(); + mac.start(sha1, key); + mac.update(asn1.toDer(safe).getBytes()); + var macValue = mac.getMac(); + macData = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // mac DigestInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // digestAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm = SHA-1 + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.sha1).getBytes()), + // parameters = Null + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // digest + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, + false, macValue.getBytes()) + ]), + // macSalt OCTET STRING + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, macSalt.getBytes()), + // iterations INTEGER (XXX: Only support count < 65536) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(count).getBytes() + ) + ]); + } -"use strict"; + // PFX + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (3) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(3).getBytes()), + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(safe).getBytes()) + ]) + ]), + macData + ]); +}; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0; -const stream = __nccwpck_require__(12781); -const authclient_1 = __nccwpck_require__(38421); -const sts = __nccwpck_require__(71235); /** - * The required token exchange grant_type: rfc8693#section-2.1 - */ -const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; -/** - * The requested token exchange requested_token_type: rfc8693#section-2.1 + * Derives a PKCS#12 key. + * + * @param password the password to derive the key material from, null or + * undefined for none. + * @param salt the salt, as a ByteBuffer, to use. + * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). + * @param iter the iteration count. + * @param n the number of bytes to derive from the password. + * @param md the message digest to use, defaults to SHA-1. + * + * @return a ByteBuffer with the bytes derived from the password. */ -const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +p12.generateKey = forge.pbe.generatePkcs12Key; + + +/***/ }), + +/***/ 39907: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** - * The requested token exchange subject_token_type: rfc8693#section-2.1 + * Javascript implementation of PKCS#7 v1.5. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2012-2015 Digital Bazaar, Inc. + * + * Currently this implementation only supports ContentType of EnvelopedData, + * EncryptedData, or SignedData at the root level. The top level elements may + * contain only a ContentInfo of ContentType Data, i.e. plain data. Further + * nesting is not (yet) supported. + * + * The Forge validators for PKCS #7's ASN.1 structures are available from + * a separate file pkcs7asn1.js, since those are referenced from other + * PKCS standards like PKCS #12. */ -const STS_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; -/** The STS access token exchange end point. */ -const STS_ACCESS_TOKEN_URL = 'https://sts.googleapis.com/v1/token'; +var forge = __nccwpck_require__(40080); +__nccwpck_require__(12004); +__nccwpck_require__(87878); +__nccwpck_require__(42499); +__nccwpck_require__(40934); +__nccwpck_require__(21117); +__nccwpck_require__(26718); +__nccwpck_require__(87088); +__nccwpck_require__(46831); +__nccwpck_require__(60183); + +// shortcut for ASN.1 API +var asn1 = forge.asn1; + +// shortcut for PKCS#7 API +var p7 = module.exports = forge.pkcs7 = forge.pkcs7 || {}; + /** - * The maximum number of access boundary rules a Credential Access Boundary - * can contain. + * Converts a PKCS#7 message from PEM format. + * + * @param pem the PEM-formatted PKCS#7 message. + * + * @return the PKCS#7 message. */ -exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10; +p7.messageFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PKCS7') { + var error = new Error('Could not convert PKCS#7 message from PEM; PEM ' + + 'header type is not "PKCS#7".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert PKCS#7 message from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return p7.messageFromAsn1(obj); +}; + /** - * Offset to take into account network delays and server clock skews. + * Converts a PKCS#7 message to PEM format. + * + * @param msg The PKCS#7 message object + * @param maxline The maximum characters per line, defaults to 64. + * + * @return The PEM-formatted PKCS#7 message. */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +p7.messageToPem = function(msg, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var pemObj = { + type: 'PKCS7', + body: asn1.toDer(msg.toAsn1()).getBytes() + }; + return forge.pem.encode(pemObj, {maxline: maxline}); +}; + /** - * Defines a set of Google credentials that are downscoped from an existing set - * of Google OAuth2 credentials. This is useful to restrict the Identity and - * Access Management (IAM) permissions that a short-lived credential can use. - * The common pattern of usage is to have a token broker with elevated access - * generate these downscoped credentials from higher access source credentials - * and pass the downscoped short-lived access tokens to a token consumer via - * some secure authenticated channel for limited access to Google Cloud Storage - * resources. + * Converts a PKCS#7 message from an ASN.1 object. + * + * @param obj the ASN.1 representation of a ContentInfo. + * + * @return the PKCS#7 message. */ -class DownscopedClient extends authclient_1.AuthClient { - /** - * Instantiates a downscoped client object using the provided source - * AuthClient and credential access boundary rules. - * To downscope permissions of a source AuthClient, a Credential Access - * Boundary that specifies which resources the new credential can access, as - * well as an upper bound on the permissions that are available on each - * resource, has to be defined. A downscoped client can then be instantiated - * using the source AuthClient and the Credential Access Boundary. - * @param authClient The source AuthClient to be downscoped based on the - * provided Credential Access Boundary rules. - * @param credentialAccessBoundary The Credential Access Boundary which - * contains a list of access boundary rules. Each rule contains information - * on the resource that the rule applies to, the upper bound of the - * permissions that are available on that resource and an optional - * condition to further restrict permissions. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - * @param quotaProjectId Optional quota project id for setting up in the - * x-goog-user-project header. - */ - constructor(authClient, credentialAccessBoundary, additionalOptions, quotaProjectId) { - super(); - this.authClient = authClient; - this.credentialAccessBoundary = credentialAccessBoundary; - // Check 1-10 Access Boundary Rules are defined within Credential Access - // Boundary. - if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length === 0) { - throw new Error('At least one access boundary rule needs to be defined.'); - } - else if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length > - exports.MAX_ACCESS_BOUNDARY_RULES_COUNT) { - throw new Error('The provided access boundary has more than ' + - `${exports.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`); - } - // Check at least one permission should be defined in each Access Boundary - // Rule. - for (const rule of credentialAccessBoundary.accessBoundary - .accessBoundaryRules) { - if (rule.availablePermissions.length === 0) { - throw new Error('At least one permission should be defined in access boundary rules.'); - } - } - this.stsCredential = new sts.StsCredentials(STS_ACCESS_TOKEN_URL); - this.cachedDownscopedAccessToken = null; - // As threshold could be zero, - // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the - // zero value. - if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { - this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; - } - else { - this.eagerRefreshThresholdMillis = additionalOptions - .eagerRefreshThresholdMillis; - } - this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); - this.quotaProjectId = quotaProjectId; - } - /** - * Provides a mechanism to inject Downscoped access tokens directly. - * The expiry_date field is required to facilitate determination of the token - * expiration which would make it easier for the token consumer to handle. - * @param credentials The Credentials object to set on the current client. - */ - setCredentials(credentials) { - if (!credentials.expiry_date) { - throw new Error('The access token expiry_date field is missing in the provided ' + - 'credentials.'); - } - super.setCredentials(credentials); - this.cachedDownscopedAccessToken = credentials; - } - async getAccessToken() { - // If the cached access token is unavailable or expired, force refresh. - // The Downscoped access token will be returned in - // DownscopedAccessTokenResponse format. - if (!this.cachedDownscopedAccessToken || - this.isExpired(this.cachedDownscopedAccessToken)) { - await this.refreshAccessTokenAsync(); - } - // Return Downscoped access token in DownscopedAccessTokenResponse format. - return { - token: this.cachedDownscopedAccessToken.access_token, - expirationTime: this.cachedDownscopedAccessToken.expiry_date, - res: this.cachedDownscopedAccessToken.res, - }; - } - /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * The result has the form: - * { Authorization: 'Bearer ' } - */ - async getRequestHeaders() { - const accessTokenResponse = await this.getAccessToken(); - const headers = { - Authorization: `Bearer ${accessTokenResponse.token}`, - }; - return this.addSharedMetadataHeaders(headers); - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); - } - else { - return this.requestAsync(opts); - } - } - /** - * Authenticates the provided HTTP request, processes it and resolves with the - * returned response. - * @param opts The HTTP request options. - * @param retry Whether the current attempt is a retry after a failed attempt. - * @return A promise that resolves with the successful response. - */ - async requestAsync(opts, retry = false) { - let response; - try { - const requestHeaders = await this.getRequestHeaders(); - opts.headers = opts.headers || {}; - if (requestHeaders && requestHeaders['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = - requestHeaders['x-goog-user-project']; - } - if (requestHeaders && requestHeaders.Authorization) { - opts.headers.Authorization = requestHeaders.Authorization; - } - response = await this.transporter.request(opts); - } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - forceRefreshOnFailure is true - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!retry && - isAuthErr && - !isReadableStream && - this.forceRefreshOnFailure) { - await this.refreshAccessTokenAsync(); - return await this.requestAsync(opts, true); - } - } - throw e; - } - return response; - } - /** - * Forces token refresh, even if unexpired tokens are currently cached. - * GCP access tokens are retrieved from authclient object/source credential. - * Then GCP access tokens are exchanged for downscoped access tokens via the - * token exchange endpoint. - * @return A promise that resolves with the fresh downscoped access token. - */ - async refreshAccessTokenAsync() { - var _a; - // Retrieve GCP access token from source credential. - const subjectToken = (await this.authClient.getAccessToken()).token; - // Construct the STS credentials options. - const stsCredentialsOptions = { - grantType: STS_GRANT_TYPE, - requestedTokenType: STS_REQUEST_TOKEN_TYPE, - subjectToken: subjectToken, - subjectTokenType: STS_SUBJECT_TOKEN_TYPE, - }; - // Exchange the source AuthClient access token for a Downscoped access - // token. - const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, this.credentialAccessBoundary); - /** - * The STS endpoint will only return the expiration time for the downscoped - * access token if the original access token represents a service account. - * The downscoped token's expiration time will always match the source - * credential expiration. When no expires_in is returned, we can copy the - * source credential's expiration time. - */ - const sourceCredExpireDate = ((_a = this.authClient.credentials) === null || _a === void 0 ? void 0 : _a.expiry_date) || null; - const expiryDate = stsResponse.expires_in - ? new Date().getTime() + stsResponse.expires_in * 1000 - : sourceCredExpireDate; - // Save response in cached access token. - this.cachedDownscopedAccessToken = { - access_token: stsResponse.access_token, - expiry_date: expiryDate, - res: stsResponse.res, - }; - // Save credentials. - this.credentials = {}; - Object.assign(this.credentials, this.cachedDownscopedAccessToken); - delete this.credentials.res; - // Trigger tokens event to notify external listeners. - this.emit('tokens', { - refresh_token: null, - expiry_date: this.cachedDownscopedAccessToken.expiry_date, - access_token: this.cachedDownscopedAccessToken.access_token, - token_type: 'Bearer', - id_token: null, - }); - // Return the cached access token. - return this.cachedDownscopedAccessToken; - } - /** - * Returns whether the provided credentials are expired or not. - * If there is no expiry time, assumes the token is not expired or expiring. - * @param downscopedAccessToken The credentials to check for expiration. - * @return Whether the credentials are expired or not. - */ - isExpired(downscopedAccessToken) { - const now = new Date().getTime(); - return downscopedAccessToken.expiry_date - ? now >= - downscopedAccessToken.expiry_date - this.eagerRefreshThresholdMillis - : false; - } -} -exports.DownscopedClient = DownscopedClient; -//# sourceMappingURL=downscopedclient.js.map +p7.messageFromAsn1 = function(obj) { + // validate root level ContentInfo and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.contentInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 message. ' + + 'ASN.1 object is not an PKCS#7 ContentInfo.'); + error.errors = errors; + throw error; + } -/***/ }), + var contentType = asn1.derToOid(capture.contentType); + var msg; -/***/ 75541: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + switch(contentType) { + case forge.pki.oids.envelopedData: + msg = p7.createEnvelopedData(); + break; -"use strict"; + case forge.pki.oids.encryptedData: + msg = p7.createEncryptedData(); + break; -// Copyright 2018 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getEnv = exports.clear = exports.GCPEnv = void 0; -const gcpMetadata = __nccwpck_require__(29938); -var GCPEnv; -(function (GCPEnv) { - GCPEnv["APP_ENGINE"] = "APP_ENGINE"; - GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; - GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; - GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; - GCPEnv["CLOUD_RUN"] = "CLOUD_RUN"; - GCPEnv["NONE"] = "NONE"; -})(GCPEnv = exports.GCPEnv || (exports.GCPEnv = {})); -let envPromise; -function clear() { - envPromise = undefined; -} -exports.clear = clear; -async function getEnv() { - if (envPromise) { - return envPromise; - } - envPromise = getEnvMemoized(); - return envPromise; -} -exports.getEnv = getEnv; -async function getEnvMemoized() { - let env = GCPEnv.NONE; - if (isAppEngine()) { - env = GCPEnv.APP_ENGINE; - } - else if (isCloudFunction()) { - env = GCPEnv.CLOUD_FUNCTIONS; - } - else if (await isComputeEngine()) { - if (await isKubernetesEngine()) { - env = GCPEnv.KUBERNETES_ENGINE; - } - else if (isCloudRun()) { - env = GCPEnv.CLOUD_RUN; - } - else { - env = GCPEnv.COMPUTE_ENGINE; - } - } - else { - env = GCPEnv.NONE; - } - return env; -} -function isAppEngine() { - return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); -} -function isCloudFunction() { - return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); -} -/** - * This check only verifies that the environment is running knative. - * This must be run *after* checking for Kubernetes, otherwise it will - * return a false positive. - */ -function isCloudRun() { - return !!process.env.K_CONFIGURATION; -} -async function isKubernetesEngine() { - try { - await gcpMetadata.instance('attributes/cluster-name'); - return true; - } - catch (e) { - return false; - } -} -async function isComputeEngine() { - return gcpMetadata.isAvailable(); -} -//# sourceMappingURL=envDetect.js.map + case forge.pki.oids.signedData: + msg = p7.createSignedData(); + break; -/***/ }), + default: + throw new Error('Cannot read PKCS#7 message. ContentType with OID ' + + contentType + ' is not (yet) supported.'); + } -/***/ 49346: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + msg.fromAsn1(capture.content.value[0]); + return msg; +}; -"use strict"; +p7.createSignedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.signedData, + version: 1, + certificates: [], + crls: [], + // TODO: add json-formatted signer stuff here? + signers: [], + // populated during sign() + digestAlgorithmIdentifiers: [], + contentInfo: null, + signerInfos: [], -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ExternalAccountClient = void 0; -const baseexternalclient_1 = __nccwpck_require__(14956); -const identitypoolclient_1 = __nccwpck_require__(65977); -const awsclient_1 = __nccwpck_require__(30860); -/** - * Dummy class with no constructor. Developers are expected to use fromJSON. - */ -class ExternalAccountClient { - constructor() { - throw new Error('ExternalAccountClients should be initialized via: ' + - 'ExternalAccountClient.fromJSON(), ' + - 'directly via explicit constructors, eg. ' + - 'new AwsClient(options), new IdentityPoolClient(options) or via ' + - 'new GoogleAuth(options).getClient()'); - } - /** - * This static method will instantiate the - * corresponding type of external account credential depending on the - * underlying credential source. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - * @return A BaseExternalAccountClient instance or null if the options - * provided do not correspond to an external account credential. - */ - static fromJSON(options, additionalOptions) { - var _a; - if (options && options.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - if ((_a = options.credential_source) === null || _a === void 0 ? void 0 : _a.environment_id) { - return new awsclient_1.AwsClient(options, additionalOptions); - } - else { - return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions); - } - } - else { - return null; + fromAsn1: function(obj) { + // validate SignedData content block and capture data. + _fromAsn1(msg, obj, p7.asn1.signedDataValidator); + msg.certificates = []; + msg.crls = []; + msg.digestAlgorithmIdentifiers = []; + msg.contentInfo = null; + msg.signerInfos = []; + + if(msg.rawCapture.certificates) { + var certs = msg.rawCapture.certificates.value; + for(var i = 0; i < certs.length; ++i) { + msg.certificates.push(forge.pki.certificateFromAsn1(certs[i])); } - } -} -exports.ExternalAccountClient = ExternalAccountClient; -//# sourceMappingURL=externalclient.js.map + } -/***/ }), + // TODO: parse crls + }, -/***/ 85754: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + toAsn1: function() { + // degenerate case with no content + if(!msg.contentInfo) { + msg.sign(); + } -"use strict"; + var certs = []; + for(var i = 0; i < msg.certificates.length; ++i) { + certs.push(forge.pki.certificateToAsn1(msg.certificates[i])); + } + + var crls = []; + // TODO: implement CRLs + + // [0] SignedData + var signedData = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(msg.version).getBytes()), + // DigestAlgorithmIdentifiers + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SET, true, + msg.digestAlgorithmIdentifiers), + // ContentInfo + msg.contentInfo + ]) + ]); + if(certs.length > 0) { + // [0] IMPLICIT ExtendedCertificatesAndCertificates OPTIONAL + signedData.value[0].value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, certs)); + } + if(crls.length > 0) { + // [1] IMPLICIT CertificateRevocationLists OPTIONAL + signedData.value[0].value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, crls)); + } + // SignerInfos + signedData.value[0].value.push( + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, + msg.signerInfos)); + + // ContentInfo + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(msg.type).getBytes()), + // [0] SignedData + signedData + ]); + }, -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleAuth = exports.CLOUD_SDK_CLIENT_ID = void 0; -const child_process_1 = __nccwpck_require__(32081); -const fs = __nccwpck_require__(57147); -const gcpMetadata = __nccwpck_require__(29938); -const os = __nccwpck_require__(22037); -const path = __nccwpck_require__(71017); -const crypto_1 = __nccwpck_require__(17742); -const transporters_1 = __nccwpck_require__(93408); -const computeclient_1 = __nccwpck_require__(78727); -const idtokenclient_1 = __nccwpck_require__(1436); -const envDetect_1 = __nccwpck_require__(75541); -const jwtclient_1 = __nccwpck_require__(35604); -const refreshclient_1 = __nccwpck_require__(37072); -const externalclient_1 = __nccwpck_require__(49346); -const baseexternalclient_1 = __nccwpck_require__(14956); -exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; -class GoogleAuth { - constructor(opts) { - /** - * Caches a value indicating whether the auth layer is running on Google - * Compute Engine. - * @private - */ - this.checkIsGCE = undefined; - // To save the contents of the JSON credential file - this.jsonContent = null; - this.cachedCredential = null; - opts = opts || {}; - this._cachedProjectId = opts.projectId || null; - this.cachedCredential = opts.authClient || null; - this.keyFilename = opts.keyFilename || opts.keyFile; - this.scopes = opts.scopes; - this.jsonContent = opts.credentials || null; - this.clientOptions = opts.clientOptions; - } - // Note: this properly is only public to satisify unit tests. - // https://github.com/Microsoft/TypeScript/issues/5228 - get isGCE() { - return this.checkIsGCE; - } - // GAPIC client libraries should always use self-signed JWTs. The following - // variables are set on the JWT client in order to indicate the type of library, - // and sign the JWT with the correct audience and scopes (if not supplied). - setGapicJWTValues(client) { - client.defaultServicePath = this.defaultServicePath; - client.useJWTAccessWithScope = this.useJWTAccessWithScope; - client.defaultScopes = this.defaultScopes; - } - getProjectId(callback) { - if (callback) { - this.getProjectIdAsync().then(r => callback(null, r), callback); - } - else { - return this.getProjectIdAsync(); - } - } - getProjectIdAsync() { - if (this._cachedProjectId) { - return Promise.resolve(this._cachedProjectId); - } - // In implicit case, supports three environments. In order of precedence, - // the implicit environments are: - // - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable - // - GOOGLE_APPLICATION_CREDENTIALS JSON file - // - Cloud SDK: `gcloud config config-helper --format json` - // - GCE project ID from metadata server) - if (!this._getDefaultProjectIdPromise) { - // TODO: refactor the below code so that it doesn't mix and match - // promises and async/await. - this._getDefaultProjectIdPromise = new Promise( - // eslint-disable-next-line no-async-promise-executor - async (resolve, reject) => { - try { - const projectId = this.getProductionProjectId() || - (await this.getFileProjectId()) || - (await this.getDefaultServiceProjectId()) || - (await this.getGCEProjectId()) || - (await this.getExternalAccountClientProjectId()); - this._cachedProjectId = projectId; - if (!projectId) { - throw new Error('Unable to detect a Project Id in the current environment. \n' + - 'To learn more about authentication and Google APIs, visit: \n' + - 'https://cloud.google.com/docs/authentication/getting-started'); - } - resolve(projectId); - } - catch (e) { - reject(e); - } - }); - } - return this._getDefaultProjectIdPromise; - } /** - * @returns Any scopes (user-specified or default scopes specified by the - * client library) that need to be set on the current Auth client. + * Add (another) entity to list of signers. + * + * Note: If authenticatedAttributes are provided, then, per RFC 2315, + * they must include at least two attributes: content type and + * message digest. The message digest attribute value will be + * auto-calculated during signing and will be ignored if provided. + * + * Here's an example of providing these two attributes: + * + * forge.pkcs7.createSignedData(); + * p7.addSigner({ + * issuer: cert.issuer.attributes, + * serialNumber: cert.serialNumber, + * key: privateKey, + * digestAlgorithm: forge.pki.oids.sha1, + * authenticatedAttributes: [{ + * type: forge.pki.oids.contentType, + * value: forge.pki.oids.data + * }, { + * type: forge.pki.oids.messageDigest + * }] + * }); + * + * TODO: Support [subjectKeyIdentifier] as signer's ID. + * + * @param signer the signer information: + * key the signer's private key. + * [certificate] a certificate containing the public key + * associated with the signer's private key; use this option as + * an alternative to specifying signer.issuer and + * signer.serialNumber. + * [issuer] the issuer attributes (eg: cert.issuer.attributes). + * [serialNumber] the signer's certificate's serial number in + * hexadecimal (eg: cert.serialNumber). + * [digestAlgorithm] the message digest OID, as a string, to use + * (eg: forge.pki.oids.sha1). + * [authenticatedAttributes] an optional array of attributes + * to also sign along with the content. */ - getAnyScopes() { - return this.scopes || this.defaultScopes; - } - getApplicationDefault(optionsOrCallback = {}, callback) { - let options; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - } - else { - options = optionsOrCallback; - } - if (callback) { - this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); - } - else { - return this.getApplicationDefaultAsync(options); - } - } - async getApplicationDefaultAsync(options = {}) { - // If we've already got a cached credential, just return it. - if (this.cachedCredential) { - return { - credential: this.cachedCredential, - projectId: await this.getProjectIdAsync(), - }; - } - let credential; - let projectId; - // Check for the existence of a local environment variable pointing to the - // location of the credential file. This is typically used in local - // developer scenarios. - credential = - await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; - } - else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { - credential.scopes = this.getAnyScopes(); - } - this.cachedCredential = credential; - projectId = await this.getProjectId(); - return { credential, projectId }; + addSigner: function(signer) { + var issuer = signer.issuer; + var serialNumber = signer.serialNumber; + if(signer.certificate) { + var cert = signer.certificate; + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); } - // Look in the well-known credential file location. - credential = await this._tryGetApplicationCredentialsFromWellKnownFile(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; - } - else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { - credential.scopes = this.getAnyScopes(); + issuer = cert.issuer.attributes; + serialNumber = cert.serialNumber; + } + var key = signer.key; + if(!key) { + throw new Error( + 'Could not add PKCS#7 signer; no private key specified.'); + } + if(typeof key === 'string') { + key = forge.pki.privateKeyFromPem(key); + } + + // ensure OID known for digest algorithm + var digestAlgorithm = signer.digestAlgorithm || forge.pki.oids.sha1; + switch(digestAlgorithm) { + case forge.pki.oids.sha1: + case forge.pki.oids.sha256: + case forge.pki.oids.sha384: + case forge.pki.oids.sha512: + case forge.pki.oids.md5: + break; + default: + throw new Error( + 'Could not add PKCS#7 signer; unknown message digest algorithm: ' + + digestAlgorithm); + } + + // if authenticatedAttributes is present, then the attributes + // must contain at least PKCS #9 content-type and message-digest + var authenticatedAttributes = signer.authenticatedAttributes || []; + if(authenticatedAttributes.length > 0) { + var contentType = false; + var messageDigest = false; + for(var i = 0; i < authenticatedAttributes.length; ++i) { + var attr = authenticatedAttributes[i]; + if(!contentType && attr.type === forge.pki.oids.contentType) { + contentType = true; + if(messageDigest) { + break; } - this.cachedCredential = credential; - projectId = await this.getProjectId(); - return { credential, projectId }; - } - // Determine if we're running on GCE. - let isGCE; - try { - isGCE = await this._checkIsGCE(); - } - catch (e) { - if (e instanceof Error) { - e.message = `Unexpected error determining execution environment: ${e.message}`; + continue; + } + if(!messageDigest && attr.type === forge.pki.oids.messageDigest) { + messageDigest = true; + if(contentType) { + break; } - throw e; - } - if (!isGCE) { - // We failed to find the default credentials. Bail out with an error. - throw new Error('Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.'); - } - // For GCE, just return a default ComputeClient. It will take care of - // the rest. - options.scopes = this.getAnyScopes(); - this.cachedCredential = new computeclient_1.Compute(options); - projectId = await this.getProjectId(); - return { projectId, credential: this.cachedCredential }; - } - /** - * Determines whether the auth layer is running on Google Compute Engine. - * @returns A promise that resolves with the boolean. - * @api private - */ - async _checkIsGCE() { - if (this.checkIsGCE === undefined) { - this.checkIsGCE = await gcpMetadata.isAvailable(); - } - return this.checkIsGCE; - } - /** - * Attempts to load default credentials from the environment variable path.. - * @returns Promise that resolves with the OAuth2Client or null. - * @api private - */ - async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { - const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || - process.env['google_application_credentials']; - if (!credentialsPath || credentialsPath.length === 0) { - return null; - } - try { - return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + continue; + } } - catch (e) { - if (e instanceof Error) { - e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; - } - throw e; + + if(!contentType || !messageDigest) { + throw new Error('Invalid signer.authenticatedAttributes. If ' + + 'signer.authenticatedAttributes is specified, then it must ' + + 'contain at least two attributes, PKCS #9 content-type and ' + + 'PKCS #9 message-digest.'); } - } + } + + msg.signers.push({ + key: key, + version: 1, + issuer: issuer, + serialNumber: serialNumber, + digestAlgorithm: digestAlgorithm, + signatureAlgorithm: forge.pki.oids.rsaEncryption, + signature: null, + authenticatedAttributes: authenticatedAttributes, + unauthenticatedAttributes: [] + }); + }, + /** - * Attempts to load default credentials from a well-known file location - * @return Promise that resolves with the OAuth2Client or null. - * @api private + * Signs the content. + * @param options Options to apply when signing: + * [detached] boolean. If signing should be done in detached mode. Defaults to false. */ - async _tryGetApplicationCredentialsFromWellKnownFile(options) { - // First, figure out the location of the file, depending upon the OS type. - let location = null; - if (this._isWindows()) { - // Windows - location = process.env['APPDATA']; - } - else { - // Linux or Mac - const home = process.env['HOME']; - if (home) { - location = path.join(home, '.config'); - } - } - // If we found the root path, expand it. - if (location) { - location = path.join(location, 'gcloud', 'application_default_credentials.json'); - if (!fs.existsSync(location)) { - location = null; - } - } - // The file does not exist. - if (!location) { - return null; + sign: function(options) { + options = options || {}; + // auto-generate content info + if(typeof msg.content !== 'object' || msg.contentInfo === null) { + // use Data ContentInfo + msg.contentInfo = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(forge.pki.oids.data).getBytes()) + ]); + + // add actual content, if present + if('content' in msg) { + var content; + if(msg.content instanceof forge.util.ByteBuffer) { + content = msg.content.bytes(); + } else if(typeof msg.content === 'string') { + content = forge.util.encodeUtf8(msg.content); + } + + if (options.detached) { + msg.detachedContent = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, content); + } else { + msg.contentInfo.value.push( + // [0] EXPLICIT content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + content) + ])); + } } - // The file seems to exist. Try to use it. - const client = await this._getApplicationCredentialsFromFilePath(location, options); - return client; - } + } + + // no signers, return early (degenerate case for certificate container) + if(msg.signers.length === 0) { + return; + } + + // generate digest algorithm identifiers + var mds = addDigestAlgorithmIds(); + + // generate signerInfos + addSignerInfos(mds); + }, + + verify: function() { + throw new Error('PKCS#7 signature verification not yet implemented.'); + }, + /** - * Attempts to load default credentials from a file at the given path.. - * @param filePath The path to the file to read. - * @returns Promise that resolves with the OAuth2Client - * @api private + * Add a certificate. + * + * @param cert the certificate to add. */ - async _getApplicationCredentialsFromFilePath(filePath, options = {}) { - // Make sure the path looks like a string. - if (!filePath || filePath.length === 0) { - throw new Error('The file path is invalid.'); - } - // Make sure there is a file at the path. lstatSync will throw if there is - // nothing there. - try { - // Resolve path to actual file in case of symlink. Expect a thrown error - // if not resolvable. - filePath = fs.realpathSync(filePath); - if (!fs.lstatSync(filePath).isFile()) { - throw new Error(); - } - } - catch (err) { - if (err instanceof Error) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; - } - throw err; - } - // Now open a read stream on the file, and parse it. - const readStream = fs.createReadStream(filePath); - return this.fromStream(readStream, options); - } + addCertificate: function(cert) { + // convert from PEM + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + msg.certificates.push(cert); + }, + /** - * Create a credentials instance using the given input options. - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data + * Add a certificate revokation list. + * + * @param crl the certificate revokation list to add. */ - fromJSON(json, options) { - let client; - if (!json) { - throw new Error('Must pass in a JSON object containing the Google auth settings.'); - } - options = options || {}; - if (json.type === 'authorized_user') { - client = new refreshclient_1.UserRefreshClient(options); - client.fromJSON(json); - } - else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - client = externalclient_1.ExternalAccountClient.fromJSON(json, options); - client.scopes = this.getAnyScopes(); - } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); - this.setGapicJWTValues(client); - client.fromJSON(json); - } - return client; + addCertificateRevokationList: function(crl) { + throw new Error('PKCS#7 CRL support not yet implemented.'); } - /** - * Return a JWT or UserRefreshClient from JavaScript object, caching both the - * object used to instantiate and the client. - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data - */ - _cacheClientFromJSON(json, options) { - let client; - // create either a UserRefreshClient or JWT client. - options = options || {}; - if (json.type === 'authorized_user') { - client = new refreshclient_1.UserRefreshClient(options); - client.fromJSON(json); - } - else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - client = externalclient_1.ExternalAccountClient.fromJSON(json, options); - client.scopes = this.getAnyScopes(); - } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); - this.setGapicJWTValues(client); - client.fromJSON(json); - } - // cache both raw data used to instantiate client and client itself. - this.jsonContent = json; - this.cachedCredential = client; - return client; + }; + return msg; + + function addDigestAlgorithmIds() { + var mds = {}; + + for(var i = 0; i < msg.signers.length; ++i) { + var signer = msg.signers[i]; + var oid = signer.digestAlgorithm; + if(!(oid in mds)) { + // content digest + mds[oid] = forge.md[forge.pki.oids[oid]].create(); + } + if(signer.authenticatedAttributes.length === 0) { + // no custom attributes to digest; use content message digest + signer.md = mds[oid]; + } else { + // custom attributes to be digested; use own message digest + // TODO: optimize to just copy message digest state if that + // feature is ever supported with message digests + signer.md = forge.md[forge.pki.oids[oid]].create(); + } } - fromStream(inputStream, optionsOrCallback = {}, callback) { - let options = {}; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - } - else { - options = optionsOrCallback; - } - if (callback) { - this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); - } - else { - return this.fromStreamAsync(inputStream, options); - } + + // add unique digest algorithm identifiers + msg.digestAlgorithmIdentifiers = []; + for(var oid in mds) { + msg.digestAlgorithmIdentifiers.push( + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oid).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); } - fromStreamAsync(inputStream, options) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the Google auth settings.'); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - try { - const data = JSON.parse(s); - const r = this._cacheClientFromJSON(data, options); - return resolve(r); - } - catch (err) { - // If we failed parsing this.keyFileName, assume that it - // is a PEM or p12 certificate: - if (!this.keyFilename) - throw err; - const client = new jwtclient_1.JWT({ - ...this.clientOptions, - keyFile: this.keyFilename, - }); - this.cachedCredential = client; - this.setGapicJWTValues(client); - return resolve(client); - } - } - catch (err) { - return reject(err); - } - }); - }); + + return mds; + } + + function addSignerInfos(mds) { + var content; + + if (msg.detachedContent) { + // Signature has been made in detached mode. + content = msg.detachedContent; + } else { + // Note: ContentInfo is a SEQUENCE with 2 values, second value is + // the content field and is optional for a ContentInfo but required here + // since signers are present + // get ContentInfo content + content = msg.contentInfo.value[1]; + // skip [0] EXPLICIT content wrapper + content = content.value[0]; } - /** - * Create a credentials instance using the given API key string. - * @param apiKey The API key string - * @param options An optional options object. - * @returns A JWT loaded from the key - */ - fromAPIKey(apiKey, options) { - options = options || {}; - const client = new jwtclient_1.JWT(options); - client.fromAPIKey(apiKey); - return client; + + if(!content) { + throw new Error( + 'Could not sign PKCS#7 message; there is no content to sign.'); } - /** - * Determines whether the current operating system is Windows. - * @api private - */ - _isWindows() { - const sys = os.platform(); - if (sys && sys.length >= 3) { - if (sys.substring(0, 3).toLowerCase() === 'win') { - return true; + + // get ContentInfo content type + var contentType = asn1.derToOid(msg.contentInfo.value[0].value); + + // serialize content + var bytes = asn1.toDer(content); + + // skip identifier and length per RFC 2315 9.3 + // skip identifier (1 byte) + bytes.getByte(); + // read and discard length bytes + asn1.getBerValueLength(bytes); + bytes = bytes.getBytes(); + + // digest content DER value bytes + for(var oid in mds) { + mds[oid].start().update(bytes); + } + + // sign content + var signingTime = new Date(); + for(var i = 0; i < msg.signers.length; ++i) { + var signer = msg.signers[i]; + + if(signer.authenticatedAttributes.length === 0) { + // if ContentInfo content type is not "Data", then + // authenticatedAttributes must be present per RFC 2315 + if(contentType !== forge.pki.oids.data) { + throw new Error( + 'Invalid signer; authenticatedAttributes must be present ' + + 'when the ContentInfo content type is not PKCS#7 Data.'); + } + } else { + // process authenticated attributes + // [0] IMPLICIT + signer.authenticatedAttributesAsn1 = asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + + // per RFC 2315, attributes are to be digested using a SET container + // not the above [0] IMPLICIT container + var attrsAsn1 = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SET, true, []); + + for(var ai = 0; ai < signer.authenticatedAttributes.length; ++ai) { + var attr = signer.authenticatedAttributes[ai]; + if(attr.type === forge.pki.oids.messageDigest) { + // use content message digest as value + attr.value = mds[signer.digestAlgorithm].digest(); + } else if(attr.type === forge.pki.oids.signingTime) { + // auto-populate signing time if not already set + if(!attr.value) { + attr.value = signingTime; } + } + + // convert to ASN.1 and push onto Attributes SET (for signing) and + // onto authenticatedAttributesAsn1 to complete SignedData ASN.1 + // TODO: optimize away duplication + attrsAsn1.value.push(_attributeToAsn1(attr)); + signer.authenticatedAttributesAsn1.value.push(_attributeToAsn1(attr)); } - return false; + + // DER-serialize and digest SET OF attributes only + bytes = asn1.toDer(attrsAsn1).getBytes(); + signer.md.start().update(bytes); + } + + // sign digest + signer.signature = signer.key.sign(signer.md, 'RSASSA-PKCS1-V1_5'); } + + // add signer info + msg.signerInfos = _signersToAsn1(msg.signers); + } +}; + +/** + * Creates an empty PKCS#7 message of type EncryptedData. + * + * @return the message. + */ +p7.createEncryptedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.encryptedData, + version: 0, + encryptedContent: { + algorithm: forge.pki.oids['aes256-CBC'] + }, + /** - * Run the Google Cloud SDK command that prints the default project ID + * Reads an EncryptedData content block (in ASN.1 format) + * + * @param obj The ASN.1 representation of the EncryptedData content block */ - async getDefaultServiceProjectId() { - return new Promise(resolve => { - child_process_1.exec('gcloud config config-helper --format json', (err, stdout) => { - if (!err && stdout) { - try { - const projectId = JSON.parse(stdout).configuration.properties.core.project; - resolve(projectId); - return; - } - catch (e) { - // ignore errors - } - } - resolve(null); - }); - }); - } + fromAsn1: function(obj) { + // Validate EncryptedData content block and capture data. + _fromAsn1(msg, obj, p7.asn1.encryptedDataValidator); + }, + /** - * Loads the project id from environment variables. - * @api private + * Decrypt encrypted content + * + * @param key The (symmetric) key as a byte buffer */ - getProductionProjectId() { - return (process.env['GCLOUD_PROJECT'] || - process.env['GOOGLE_CLOUD_PROJECT'] || - process.env['gcloud_project'] || - process.env['google_cloud_project']); + decrypt: function(key) { + if(key !== undefined) { + msg.encryptedContent.key = key; + } + _decryptContent(msg); } + }; + return msg; +}; + +/** + * Creates an empty PKCS#7 message of type EnvelopedData. + * + * @return the message. + */ +p7.createEnvelopedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.envelopedData, + version: 0, + recipients: [], + encryptedContent: { + algorithm: forge.pki.oids['aes256-CBC'] + }, + /** - * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. - * @api private + * Reads an EnvelopedData content block (in ASN.1 format) + * + * @param obj the ASN.1 representation of the EnvelopedData content block. */ - async getFileProjectId() { - if (this.cachedCredential) { - // Try to read the project ID from the cached credentials file - return this.cachedCredential.projectId; + fromAsn1: function(obj) { + // validate EnvelopedData content block and capture data + var capture = _fromAsn1(msg, obj, p7.asn1.envelopedDataValidator); + msg.recipients = _recipientsFromAsn1(capture.recipientInfos.value); + }, + + toAsn1: function() { + // ContentInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(msg.type).getBytes()), + // [0] EnvelopedData + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(msg.version).getBytes()), + // RecipientInfos + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, + _recipientsToAsn1(msg.recipients)), + // EncryptedContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, + _encryptedContentToAsn1(msg.encryptedContent)) + ]) + ]) + ]); + }, + + /** + * Find recipient by X.509 certificate's issuer. + * + * @param cert the certificate with the issuer to look for. + * + * @return the recipient object. + */ + findRecipient: function(cert) { + var sAttr = cert.issuer.attributes; + + for(var i = 0; i < msg.recipients.length; ++i) { + var r = msg.recipients[i]; + var rAttr = r.issuer; + + if(r.serialNumber !== cert.serialNumber) { + continue; } - // Ensure the projectId is loaded from the keyFile if available. - if (this.keyFilename) { - const creds = await this.getClient(); - if (creds && creds.projectId) { - return creds.projectId; - } + + if(rAttr.length !== sAttr.length) { + continue; } - // Try to load a credentials file and read its project ID - const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); - if (r) { - return r.projectId; + + var match = true; + for(var j = 0; j < sAttr.length; ++j) { + if(rAttr[j].type !== sAttr[j].type || + rAttr[j].value !== sAttr[j].value) { + match = false; + break; + } } - else { - return null; + + if(match) { + return r; } - } + } + + return null; + }, + /** - * Gets the project ID from external account client if available. + * Decrypt enveloped content + * + * @param recipient The recipient object related to the private key + * @param privKey The (RSA) private key object */ - async getExternalAccountClientProjectId() { - if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - return null; + decrypt: function(recipient, privKey) { + if(msg.encryptedContent.key === undefined && recipient !== undefined && + privKey !== undefined) { + switch(recipient.encryptedContent.algorithm) { + case forge.pki.oids.rsaEncryption: + case forge.pki.oids.desCBC: + var key = privKey.decrypt(recipient.encryptedContent.content); + msg.encryptedContent.key = forge.util.createBuffer(key); + break; + + default: + throw new Error('Unsupported asymmetric cipher, ' + + 'OID ' + recipient.encryptedContent.algorithm); } - const creds = await this.getClient(); - // Do not suppress the underlying error, as the error could contain helpful - // information for debugging and fixing. This is especially true for - // external account creds as in order to get the project ID, the following - // operations have to succeed: - // 1. Valid credentials file should be supplied. - // 2. Ability to retrieve access tokens from STS token exchange API. - // 3. Ability to exchange for service account impersonated credentials (if - // enabled). - // 4. Ability to get project info using the access token from step 2 or 3. - // Without surfacing the error, it is harder for developers to determine - // which step went wrong. - return await creds.getProjectId(); - } + } + + _decryptContent(msg); + }, + /** - * Gets the Compute Engine project ID if it can be inferred. + * Add (another) entity to list of recipients. + * + * @param cert The certificate of the entity to add. */ - async getGCEProjectId() { - try { - const r = await gcpMetadata.project('project-id'); - return r; - } - catch (e) { - // Ignore any errors - return null; + addRecipient: function(cert) { + msg.recipients.push({ + version: 0, + issuer: cert.issuer.attributes, + serialNumber: cert.serialNumber, + encryptedContent: { + // We simply assume rsaEncryption here, since forge.pki only + // supports RSA so far. If the PKI module supports other + // ciphers one day, we need to modify this one as well. + algorithm: forge.pki.oids.rsaEncryption, + key: cert.publicKey } - } - getCredentials(callback) { - if (callback) { - this.getCredentialsAsync().then(r => callback(null, r), callback); + }); + }, + + /** + * Encrypt enveloped content. + * + * This function supports two optional arguments, cipher and key, which + * can be used to influence symmetric encryption. Unless cipher is + * provided, the cipher specified in encryptedContent.algorithm is used + * (defaults to AES-256-CBC). If no key is provided, encryptedContent.key + * is (re-)used. If that one's not set, a random key will be generated + * automatically. + * + * @param [key] The key to be used for symmetric encryption. + * @param [cipher] The OID of the symmetric cipher to use. + */ + encrypt: function(key, cipher) { + // Part 1: Symmetric encryption + if(msg.encryptedContent.content === undefined) { + cipher = cipher || msg.encryptedContent.algorithm; + key = key || msg.encryptedContent.key; + + var keyLen, ivLen, ciphFn; + switch(cipher) { + case forge.pki.oids['aes128-CBC']: + keyLen = 16; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['aes192-CBC']: + keyLen = 24; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['aes256-CBC']: + keyLen = 32; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['des-EDE3-CBC']: + keyLen = 24; + ivLen = 8; + ciphFn = forge.des.createEncryptionCipher; + break; + + default: + throw new Error('Unsupported symmetric cipher, OID ' + cipher); } - else { - return this.getCredentialsAsync(); + + if(key === undefined) { + key = forge.util.createBuffer(forge.random.getBytes(keyLen)); + } else if(key.length() != keyLen) { + throw new Error('Symmetric key has wrong length; ' + + 'got ' + key.length() + ' bytes, expected ' + keyLen + '.'); } - } - async getCredentialsAsync() { - await this.getClient(); - if (this.jsonContent) { - const credential = { - client_email: this.jsonContent.client_email, - private_key: this.jsonContent.private_key, - }; - return credential; + + // Keep a copy of the key & IV in the object, so the caller can + // use it for whatever reason. + msg.encryptedContent.algorithm = cipher; + msg.encryptedContent.key = key; + msg.encryptedContent.parameter = forge.util.createBuffer( + forge.random.getBytes(ivLen)); + + var ciph = ciphFn(key); + ciph.start(msg.encryptedContent.parameter.copy()); + ciph.update(msg.content); + + // The finish function does PKCS#7 padding by default, therefore + // no action required by us. + if(!ciph.finish()) { + throw new Error('Symmetric encryption failed.'); } - const isGCE = await this._checkIsGCE(); - if (!isGCE) { - throw new Error('Unknown error.'); + + msg.encryptedContent.content = ciph.output; + } + + // Part 2: asymmetric encryption for each recipient + for(var i = 0; i < msg.recipients.length; ++i) { + var recipient = msg.recipients[i]; + + // Nothing to do, encryption already done. + if(recipient.encryptedContent.content !== undefined) { + continue; } - // For GCE, return the service account details from the metadata server - // NOTE: The trailing '/' at the end of service-accounts/ is very important! - // The GCF metadata server doesn't respect querystring params if this / is - // not included. - const data = await gcpMetadata.instance({ - property: 'service-accounts/', - params: { recursive: 'true' }, - }); - if (!data || !data.default || !data.default.email) { - throw new Error('Failure from metadata server.'); + + switch(recipient.encryptedContent.algorithm) { + case forge.pki.oids.rsaEncryption: + recipient.encryptedContent.content = + recipient.encryptedContent.key.encrypt( + msg.encryptedContent.key.data); + break; + + default: + throw new Error('Unsupported asymmetric cipher, OID ' + + recipient.encryptedContent.algorithm); } - return { client_email: data.default.email }; + } } - /** - * Automatically obtain a client based on the provided configuration. If no - * options were passed, use Application Default Credentials. - */ - async getClient(options) { - if (options) { - throw new Error('Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.'); - } - if (!this.cachedCredential) { - if (this.jsonContent) { - this._cacheClientFromJSON(this.jsonContent, this.clientOptions); - } - else if (this.keyFilename) { - const filePath = path.resolve(this.keyFilename); - const stream = fs.createReadStream(filePath); - await this.fromStreamAsync(stream, this.clientOptions); - } - else { - await this.getApplicationDefaultAsync(this.clientOptions); - } + }; + return msg; +}; + +/** + * Converts a single recipient from an ASN.1 object. + * + * @param obj the ASN.1 RecipientInfo. + * + * @return the recipient object. + */ +function _recipientFromAsn1(obj) { + // validate EnvelopedData content block and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.recipientInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 RecipientInfo. ' + + 'ASN.1 object is not an PKCS#7 RecipientInfo.'); + error.errors = errors; + throw error; + } + + return { + version: capture.version.charCodeAt(0), + issuer: forge.pki.RDNAttributesAsArray(capture.issuer), + serialNumber: forge.util.createBuffer(capture.serial).toHex(), + encryptedContent: { + algorithm: asn1.derToOid(capture.encAlgorithm), + parameter: capture.encParameter ? capture.encParameter.value : undefined, + content: capture.encKey + } + }; +} + +/** + * Converts a single recipient object to an ASN.1 object. + * + * @param obj the recipient object. + * + * @return the ASN.1 RecipientInfo. + */ +function _recipientToAsn1(obj) { + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(obj.version).getBytes()), + // IssuerAndSerialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Name + forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), + // Serial + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(obj.serialNumber)) + ]), + // KeyEncryptionAlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.encryptedContent.algorithm).getBytes()), + // Parameter, force NULL, only RSA supported for now. + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // EncryptedKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + obj.encryptedContent.content) + ]); +} + +/** + * Map a set of RecipientInfo ASN.1 objects to recipient objects. + * + * @param infos an array of ASN.1 representations RecipientInfo (i.e. SET OF). + * + * @return an array of recipient objects. + */ +function _recipientsFromAsn1(infos) { + var ret = []; + for(var i = 0; i < infos.length; ++i) { + ret.push(_recipientFromAsn1(infos[i])); + } + return ret; +} + +/** + * Map an array of recipient objects to ASN.1 RecipientInfo objects. + * + * @param recipients an array of recipientInfo objects. + * + * @return an array of ASN.1 RecipientInfos. + */ +function _recipientsToAsn1(recipients) { + var ret = []; + for(var i = 0; i < recipients.length; ++i) { + ret.push(_recipientToAsn1(recipients[i])); + } + return ret; +} + +/** + * Converts a single signer from an ASN.1 object. + * + * @param obj the ASN.1 representation of a SignerInfo. + * + * @return the signer object. + */ +function _signerFromAsn1(obj) { + // validate EnvelopedData content block and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.signerInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 SignerInfo. ' + + 'ASN.1 object is not an PKCS#7 SignerInfo.'); + error.errors = errors; + throw error; + } + + var rval = { + version: capture.version.charCodeAt(0), + issuer: forge.pki.RDNAttributesAsArray(capture.issuer), + serialNumber: forge.util.createBuffer(capture.serial).toHex(), + digestAlgorithm: asn1.derToOid(capture.digestAlgorithm), + signatureAlgorithm: asn1.derToOid(capture.signatureAlgorithm), + signature: capture.signature, + authenticatedAttributes: [], + unauthenticatedAttributes: [] + }; + + // TODO: convert attributes + var authenticatedAttributes = capture.authenticatedAttributes || []; + var unauthenticatedAttributes = capture.unauthenticatedAttributes || []; + + return rval; +} + +/** + * Converts a single signerInfo object to an ASN.1 object. + * + * @param obj the signerInfo object. + * + * @return the ASN.1 representation of a SignerInfo. + */ +function _signerToAsn1(obj) { + // SignerInfo + var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(obj.version).getBytes()), + // issuerAndSerialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // name + forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), + // serial + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(obj.serialNumber)) + ]), + // digestAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.digestAlgorithm).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ]); + + // authenticatedAttributes (OPTIONAL) + if(obj.authenticatedAttributesAsn1) { + // add ASN.1 previously generated during signing + rval.value.push(obj.authenticatedAttributesAsn1); + } + + // digestEncryptionAlgorithm + rval.value.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.signatureAlgorithm).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + + // encryptedDigest + rval.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, obj.signature)); + + // unauthenticatedAttributes (OPTIONAL) + if(obj.unauthenticatedAttributes.length > 0) { + // [1] IMPLICIT + var attrsAsn1 = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, []); + for(var i = 0; i < obj.unauthenticatedAttributes.length; ++i) { + var attr = obj.unauthenticatedAttributes[i]; + attrsAsn1.values.push(_attributeToAsn1(attr)); + } + rval.value.push(attrsAsn1); + } + + return rval; +} + +/** + * Map a set of SignerInfo ASN.1 objects to an array of signer objects. + * + * @param signerInfoAsn1s an array of ASN.1 SignerInfos (i.e. SET OF). + * + * @return an array of signers objects. + */ +function _signersFromAsn1(signerInfoAsn1s) { + var ret = []; + for(var i = 0; i < signerInfoAsn1s.length; ++i) { + ret.push(_signerFromAsn1(signerInfoAsn1s[i])); + } + return ret; +} + +/** + * Map an array of signer objects to ASN.1 objects. + * + * @param signers an array of signer objects. + * + * @return an array of ASN.1 SignerInfos. + */ +function _signersToAsn1(signers) { + var ret = []; + for(var i = 0; i < signers.length; ++i) { + ret.push(_signerToAsn1(signers[i])); + } + return ret; +} + +/** + * Convert an attribute object to an ASN.1 Attribute. + * + * @param attr the attribute object. + * + * @return the ASN.1 Attribute. + */ +function _attributeToAsn1(attr) { + var value; + + // TODO: generalize to support more attributes + if(attr.type === forge.pki.oids.contentType) { + value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.value).getBytes()); + } else if(attr.type === forge.pki.oids.messageDigest) { + value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + attr.value.bytes()); + } else if(attr.type === forge.pki.oids.signingTime) { + /* Note per RFC 2985: Dates between 1 January 1950 and 31 December 2049 + (inclusive) MUST be encoded as UTCTime. Any dates with year values + before 1950 or after 2049 MUST be encoded as GeneralizedTime. [Further,] + UTCTime values MUST be expressed in Greenwich Mean Time (Zulu) and MUST + include seconds (i.e., times are YYMMDDHHMMSSZ), even where the + number of seconds is zero. Midnight (GMT) must be represented as + "YYMMDD000000Z". */ + // TODO: make these module-level constants + var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); + var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); + var date = attr.value; + if(typeof date === 'string') { + // try to parse date + var timestamp = Date.parse(date); + if(!isNaN(timestamp)) { + date = new Date(timestamp); + } else if(date.length === 13) { + // YYMMDDHHMMSSZ (13 chars for UTCTime) + date = asn1.utcTimeToDate(date); + } else { + // assume generalized time + date = asn1.generalizedTimeToDate(date); + } + } + + if(date >= jan_1_1950 && date < jan_1_2050) { + value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, + asn1.dateToUtcTime(date)); + } else { + value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, + asn1.dateToGeneralizedTime(date)); + } + } + + // TODO: expose as common API call + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + // AttributeValue + value + ]) + ]); +} + +/** + * Map messages encrypted content to ASN.1 objects. + * + * @param ec The encryptedContent object of the message. + * + * @return ASN.1 representation of the encryptedContent object (SEQUENCE). + */ +function _encryptedContentToAsn1(ec) { + return [ + // ContentType, always Data for the moment + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(forge.pki.oids.data).getBytes()), + // ContentEncryptionAlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(ec.algorithm).getBytes()), + // Parameters (IV) + !ec.parameter ? + undefined : + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + ec.parameter.getBytes()) + ]), + // [0] EncryptedContent + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + ec.content.getBytes()) + ]) + ]; +} + +/** + * Reads the "common part" of an PKCS#7 content block (in ASN.1 format) + * + * This function reads the "common part" of the PKCS#7 content blocks + * EncryptedData and EnvelopedData, i.e. version number and symmetrically + * encrypted content block. + * + * The result of the ASN.1 validate and capture process is returned + * to allow the caller to extract further data, e.g. the list of recipients + * in case of a EnvelopedData object. + * + * @param msg the PKCS#7 object to read the data to. + * @param obj the ASN.1 representation of the content block. + * @param validator the ASN.1 structure validator object to use. + * + * @return the value map captured by validator object. + */ +function _fromAsn1(msg, obj, validator) { + var capture = {}; + var errors = []; + if(!asn1.validate(obj, validator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 message. ' + + 'ASN.1 object is not a supported PKCS#7 message.'); + error.errors = error; + throw error; + } + + // Check contentType, so far we only support (raw) Data. + var contentType = asn1.derToOid(capture.contentType); + if(contentType !== forge.pki.oids.data) { + throw new Error('Unsupported PKCS#7 message. ' + + 'Only wrapped ContentType Data supported.'); + } + + if(capture.encryptedContent) { + var content = ''; + if(forge.util.isArray(capture.encryptedContent)) { + for(var i = 0; i < capture.encryptedContent.length; ++i) { + if(capture.encryptedContent[i].type !== asn1.Type.OCTETSTRING) { + throw new Error('Malformed PKCS#7 message, expecting encrypted ' + + 'content constructed of only OCTET STRING objects.'); } - return this.cachedCredential; + content += capture.encryptedContent[i].value; + } + } else { + content = capture.encryptedContent; } - /** - * Creates a client which will fetch an ID token for authorization. - * @param targetAudience the audience for the fetched ID token. - * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. - */ - async getIdTokenClient(targetAudience) { - const client = await this.getClient(); - if (!('fetchIdToken' in client)) { - throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); + msg.encryptedContent = { + algorithm: asn1.derToOid(capture.encAlgorithm), + parameter: forge.util.createBuffer(capture.encParameter.value), + content: forge.util.createBuffer(content) + }; + } + + if(capture.content) { + var content = ''; + if(forge.util.isArray(capture.content)) { + for(var i = 0; i < capture.content.length; ++i) { + if(capture.content[i].type !== asn1.Type.OCTETSTRING) { + throw new Error('Malformed PKCS#7 message, expecting ' + + 'content constructed of only OCTET STRING objects.'); } - return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); - } - /** - * Automatically obtain application default credentials, and return - * an access token for making requests. - */ - async getAccessToken() { - const client = await this.getClient(); - return (await client.getAccessToken()).token; - } - /** - * Obtain the HTTP headers that will provide authorization for a given - * request. - */ - async getRequestHeaders(url) { - const client = await this.getClient(); - return client.getRequestHeaders(url); - } - /** - * Obtain credentials for a request, then attach the appropriate headers to - * the request options. - * @param opts Axios or Request options on which to attach the headers - */ - async authorizeRequest(opts) { - opts = opts || {}; - const url = opts.url || opts.uri; - const client = await this.getClient(); - const headers = await client.getRequestHeaders(url); - opts.headers = Object.assign(opts.headers || {}, headers); - return opts; - } - /** - * Automatically obtain application default credentials, and make an - * HTTP request using the given options. - * @param opts Axios request options for the HTTP request. - */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - async request(opts) { - const client = await this.getClient(); - return client.request(opts); - } - /** - * Determine the compute environment in which the code is running. - */ - getEnv() { - return envDetect_1.getEnv(); + content += capture.content[i].value; + } + } else { + content = capture.content; } - /** - * Sign the given data with the current private key, or go out - * to the IAM API to sign it. - * @param data The data to be signed. - */ - async sign(data) { - const client = await this.getClient(); - const crypto = crypto_1.createCrypto(); - if (client instanceof jwtclient_1.JWT && client.key) { - const sign = await crypto.sign(client.key, data); - return sign; - } - // signBlob requires a service account email and the underlying - // access token to have iam.serviceAccounts.signBlob permission - // on the specified resource name. - // The "Service Account Token Creator" role should cover this. - // As a result external account credentials can support this - // operation when service account impersonation is enabled. - if (client instanceof baseexternalclient_1.BaseExternalAccountClient && - client.getServiceAccountEmail()) { - return this.signBlob(crypto, client.getServiceAccountEmail(), data); - } - const projectId = await this.getProjectId(); - if (!projectId) { - throw new Error('Cannot sign data without a project ID.'); - } - const creds = await this.getCredentials(); - if (!creds.client_email) { - throw new Error('Cannot sign data without `client_email`.'); - } - return this.signBlob(crypto, creds.client_email, data); + msg.content = forge.util.createBuffer(content); + } + + msg.version = capture.version.charCodeAt(0); + msg.rawCapture = capture; + + return capture; +} + +/** + * Decrypt the symmetrically encrypted content block of the PKCS#7 message. + * + * Decryption is skipped in case the PKCS#7 message object already has a + * (decrypted) content attribute. The algorithm, key and cipher parameters + * (probably the iv) are taken from the encryptedContent attribute of the + * message object. + * + * @param The PKCS#7 message object. + */ +function _decryptContent(msg) { + if(msg.encryptedContent.key === undefined) { + throw new Error('Symmetric key not available.'); + } + + if(msg.content === undefined) { + var ciph; + + switch(msg.encryptedContent.algorithm) { + case forge.pki.oids['aes128-CBC']: + case forge.pki.oids['aes192-CBC']: + case forge.pki.oids['aes256-CBC']: + ciph = forge.aes.createDecryptionCipher(msg.encryptedContent.key); + break; + + case forge.pki.oids['desCBC']: + case forge.pki.oids['des-EDE3-CBC']: + ciph = forge.des.createDecryptionCipher(msg.encryptedContent.key); + break; + + default: + throw new Error('Unsupported symmetric cipher, OID ' + + msg.encryptedContent.algorithm); } - async signBlob(crypto, emailOrUniqueId, data) { - const url = 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/' + - `${emailOrUniqueId}:signBlob`; - const res = await this.request({ - method: 'POST', - url, - data: { - payload: crypto.encodeBase64StringUtf8(data), - }, - }); - return res.data.signedBlob; + ciph.start(msg.encryptedContent.parameter); + ciph.update(msg.encryptedContent.content); + + if(!ciph.finish()) { + throw new Error('Symmetric decryption failed.'); } + + msg.content = ciph.output; + } } -exports.GoogleAuth = GoogleAuth; + + +/***/ }), + +/***/ 26718: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** - * Export DefaultTransporter as a static property of the class. + * Javascript implementation of ASN.1 validators for PKCS#7 v1.5. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2012-2015 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * The ASN.1 representation of PKCS#7 is as follows + * (see RFC #2315 for details, http://www.ietf.org/rfc/rfc2315.txt): + * + * A PKCS#7 message consists of a ContentInfo on root level, which may + * contain any number of further ContentInfo nested into it. + * + * ContentInfo ::= SEQUENCE { + * contentType ContentType, + * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL + * } + * + * ContentType ::= OBJECT IDENTIFIER + * + * EnvelopedData ::= SEQUENCE { + * version Version, + * recipientInfos RecipientInfos, + * encryptedContentInfo EncryptedContentInfo + * } + * + * EncryptedData ::= SEQUENCE { + * version Version, + * encryptedContentInfo EncryptedContentInfo + * } + * + * id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) + * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 } + * + * SignedData ::= SEQUENCE { + * version INTEGER, + * digestAlgorithms DigestAlgorithmIdentifiers, + * contentInfo ContentInfo, + * certificates [0] IMPLICIT Certificates OPTIONAL, + * crls [1] IMPLICIT CertificateRevocationLists OPTIONAL, + * signerInfos SignerInfos + * } + * + * SignerInfos ::= SET OF SignerInfo + * + * SignerInfo ::= SEQUENCE { + * version Version, + * issuerAndSerialNumber IssuerAndSerialNumber, + * digestAlgorithm DigestAlgorithmIdentifier, + * authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, + * digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, + * encryptedDigest EncryptedDigest, + * unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL + * } + * + * EncryptedDigest ::= OCTET STRING + * + * Attributes ::= SET OF Attribute + * + * Attribute ::= SEQUENCE { + * attrType OBJECT IDENTIFIER, + * attrValues SET OF AttributeValue + * } + * + * AttributeValue ::= ANY + * + * Version ::= INTEGER + * + * RecipientInfos ::= SET OF RecipientInfo + * + * EncryptedContentInfo ::= SEQUENCE { + * contentType ContentType, + * contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, + * encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL + * } + * + * ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of AES and DES3, there is only one, + * the IV. + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * EncryptedContent ::= OCTET STRING + * + * RecipientInfo ::= SEQUENCE { + * version Version, + * issuerAndSerialNumber IssuerAndSerialNumber, + * keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, + * encryptedKey EncryptedKey + * } + * + * IssuerAndSerialNumber ::= SEQUENCE { + * issuer Name, + * serialNumber CertificateSerialNumber + * } + * + * CertificateSerialNumber ::= INTEGER + * + * KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * EncryptedKey ::= OCTET STRING */ -GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; -//# sourceMappingURL=googleauth.js.map +var forge = __nccwpck_require__(40080); +__nccwpck_require__(87878); +__nccwpck_require__(46831); -/***/ }), +// shortcut for ASN.1 API +var asn1 = forge.asn1; -/***/ 25330: -/***/ ((__unused_webpack_module, exports) => { +// shortcut for PKCS#7 API +var p7v = module.exports = forge.pkcs7asn1 = forge.pkcs7asn1 || {}; +forge.pkcs7 = forge.pkcs7 || {}; +forge.pkcs7.asn1 = p7v; -"use strict"; +var contentInfoValidator = { + name: 'ContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'ContentInfo.ContentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'ContentInfo.content', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + captureAsn1: 'content' + }] +}; +p7v.contentInfoValidator = contentInfoValidator; -// Copyright 2014 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IAMAuth = void 0; -class IAMAuth { - /** - * IAM credentials. +var encryptedContentInfoValidator = { + name: 'EncryptedContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedContentInfo.contentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'EncryptedContentInfo.contentEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedContentInfo.contentEncryptionAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encAlgorithm' + }, { + name: 'EncryptedContentInfo.contentEncryptionAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + captureAsn1: 'encParameter' + }] + }, { + name: 'EncryptedContentInfo.encryptedContent', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + /* The PKCS#7 structure output by OpenSSL somewhat differs from what + * other implementations do generate. * - * @param selector the iam authority selector - * @param token the token - * @constructor - */ - constructor(selector, token) { - this.selector = selector; - this.token = token; - this.selector = selector; - this.token = token; - } - /** - * Acquire the HTTP headers required to make an authenticated request. + * OpenSSL generates a structure like this: + * SEQUENCE { + * ... + * [0] + * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 + * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 + * ... + * } + * + * Whereas other implementations (and this PKCS#7 module) generate: + * SEQUENCE { + * ... + * [0] { + * OCTET STRING + * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 + * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 + * ... + * } + * } + * + * In order to support both, we just capture the context specific + * field here. The OCTET STRING bit is removed below. */ - getRequestHeaders() { - return { - 'x-goog-iam-authority-selector': this.selector, - 'x-goog-iam-authorization-token': this.token, - }; - } -} -exports.IAMAuth = IAMAuth; -//# sourceMappingURL=iam.js.map + capture: 'encryptedContent', + captureAsn1: 'encryptedContentAsn1' + }] +}; + +p7v.envelopedDataValidator = { + name: 'EnvelopedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EnvelopedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'EnvelopedData.RecipientInfos', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + captureAsn1: 'recipientInfos' + }].concat(encryptedContentInfoValidator) +}; + +p7v.encryptedDataValidator = { + name: 'EncryptedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }].concat(encryptedContentInfoValidator) +}; + +var signerValidator = { + name: 'SignerInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false + }, { + name: 'SignerInfo.issuerAndSerialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.issuerAndSerialNumber.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'issuer' + }, { + name: 'SignerInfo.issuerAndSerialNumber.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'serial' + }] + }, { + name: 'SignerInfo.digestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.digestAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'digestAlgorithm' + }, { + name: 'SignerInfo.digestAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + constructed: false, + captureAsn1: 'digestParameter', + optional: true + }] + }, { + name: 'SignerInfo.authenticatedAttributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + capture: 'authenticatedAttributes' + }, { + name: 'SignerInfo.digestEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + capture: 'signatureAlgorithm' + }, { + name: 'SignerInfo.encryptedDigest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'signature' + }, { + name: 'SignerInfo.unauthenticatedAttributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + optional: true, + capture: 'unauthenticatedAttributes' + }] +}; + +p7v.signedDataValidator = { + name: 'SignedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'SignedData.DigestAlgorithms', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + captureAsn1: 'digestAlgorithms' + }, + contentInfoValidator, + { + name: 'SignedData.Certificates', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + optional: true, + captureAsn1: 'certificates' + }, { + name: 'SignedData.CertificateRevocationLists', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + optional: true, + captureAsn1: 'crls' + }, { + name: 'SignedData.SignerInfos', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + capture: 'signerInfos', + optional: true, + value: [signerValidator] + }] +}; + +p7v.recipientInfoValidator = { + name: 'RecipientInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'RecipientInfo.issuerAndSerial', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.issuerAndSerial.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'issuer' + }, { + name: 'RecipientInfo.issuerAndSerial.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'serial' + }] + }, { + name: 'RecipientInfo.keyEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.keyEncryptionAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encAlgorithm' + }, { + name: 'RecipientInfo.keyEncryptionAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + constructed: false, + captureAsn1: 'encParameter', + optional: true + }] + }, { + name: 'RecipientInfo.encryptedKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encKey' + }] +}; + /***/ }), -/***/ 65977: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 63795: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * Javascript implementation of a basic Public Key Infrastructure, including + * support for RSA public and private keys. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(87878); +__nccwpck_require__(40934); +__nccwpck_require__(42254); +__nccwpck_require__(21117); +__nccwpck_require__(72282); +__nccwpck_require__(43059); +__nccwpck_require__(17621); +__nccwpck_require__(56361); +__nccwpck_require__(46831); +__nccwpck_require__(60183); + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +/* Public Key Infrastructure (PKI) implementation. */ +var pki = module.exports = forge.pki = forge.pki || {}; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var _a, _b, _c; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IdentityPoolClient = void 0; -const fs = __nccwpck_require__(57147); -const util_1 = __nccwpck_require__(73837); -const baseexternalclient_1 = __nccwpck_require__(14956); -// fs.readfile is undefined in browser karma tests causing -// `npm run browser-test` to fail as test.oauth2.ts imports this file via -// src/index.ts. -// Fallback to void function to avoid promisify throwing a TypeError. -const readFile = util_1.promisify((_a = fs.readFile) !== null && _a !== void 0 ? _a : (() => { })); -const realpath = util_1.promisify((_b = fs.realpath) !== null && _b !== void 0 ? _b : (() => { })); -const lstat = util_1.promisify((_c = fs.lstat) !== null && _c !== void 0 ? _c : (() => { })); /** - * Defines the Url-sourced and file-sourced external account clients mainly - * used for K8s and Azure workloads. + * NOTE: THIS METHOD IS DEPRECATED. Use pem.decode() instead. + * + * Converts PEM-formatted data to DER. + * + * @param pem the PEM-formatted data. + * + * @return the DER-formatted data. */ -class IdentityPoolClient extends baseexternalclient_1.BaseExternalAccountClient { - /** - * Instantiate an IdentityPoolClient instance using the provided JSON - * object loaded from an external account credentials file. - * An error is thrown if the credential is not a valid file-sourced or - * url-sourced credential or a workforce pool user project is provided - * with a non workforce audience. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - */ - constructor(options, additionalOptions) { - var _a, _b; - super(options, additionalOptions); - this.file = options.credential_source.file; - this.url = options.credential_source.url; - this.headers = options.credential_source.headers; - if (!this.file && !this.url) { - throw new Error('No valid Identity Pool "credential_source" provided'); - } - // Text is the default format type. - this.formatType = ((_a = options.credential_source.format) === null || _a === void 0 ? void 0 : _a.type) || 'text'; - this.formatSubjectTokenFieldName = (_b = options.credential_source.format) === null || _b === void 0 ? void 0 : _b.subject_token_field_name; - if (this.formatType !== 'json' && this.formatType !== 'text') { - throw new Error(`Invalid credential_source format "${this.formatType}"`); - } - if (this.formatType === 'json' && !this.formatSubjectTokenFieldName) { - throw new Error('Missing subject_token_field_name for JSON credential_source format'); - } - } - /** - * Triggered when a external subject token is needed to be exchanged for a GCP - * access token via GCP STS endpoint. - * This uses the `options.credential_source` object to figure out how - * to retrieve the token using the current environment. In this case, - * this either retrieves the local credential from a file location (k8s - * workload) or by sending a GET request to a local metadata server (Azure - * workloads). - * @return A promise that resolves with the external subject token. - */ - async retrieveSubjectToken() { - if (this.file) { - return await this.getTokenFromFile(this.file, this.formatType, this.formatSubjectTokenFieldName); - } - return await this.getTokenFromUrl(this.url, this.formatType, this.formatSubjectTokenFieldName, this.headers); - } - /** - * Looks up the external subject token in the file path provided and - * resolves with that token. - * @param file The file path where the external credential is located. - * @param formatType The token file or URL response type (JSON or text). - * @param formatSubjectTokenFieldName For JSON response types, this is the - * subject_token field name. For Azure, this is access_token. For text - * response types, this is ignored. - * @return A promise that resolves with the external subject token. - */ - async getTokenFromFile(filePath, formatType, formatSubjectTokenFieldName) { - // Make sure there is a file at the path. lstatSync will throw if there is - // nothing there. - try { - // Resolve path to actual file in case of symlink. Expect a thrown error - // if not resolvable. - filePath = await realpath(filePath); - if (!(await lstat(filePath)).isFile()) { - throw new Error(); - } - } - catch (err) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; - throw err; - } - let subjectToken; - const rawText = await readFile(filePath, { encoding: 'utf8' }); - if (formatType === 'text') { - subjectToken = rawText; - } - else if (formatType === 'json' && formatSubjectTokenFieldName) { - const json = JSON.parse(rawText); - subjectToken = json[formatSubjectTokenFieldName]; - } - if (!subjectToken) { - throw new Error('Unable to parse the subject_token from the credential_source file'); - } - return subjectToken; +pki.pemToDer = function(pem) { + var msg = forge.pem.decode(pem)[0]; + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert PEM to DER; PEM is encrypted.'); + } + return forge.util.createBuffer(msg.body); +}; + +/** + * Converts an RSA private key from PEM format. + * + * @param pem the PEM-formatted private key. + * + * @return the private key. + */ +pki.privateKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PRIVATE KEY' && msg.type !== 'RSA PRIVATE KEY') { + var error = new Error('Could not convert private key from PEM; PEM ' + + 'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert private key from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return pki.privateKeyFromAsn1(obj); +}; + +/** + * Converts an RSA private key to PEM format. + * + * @param key the private key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted private key. + */ +pki.privateKeyToPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'RSA PRIVATE KEY', + body: asn1.toDer(pki.privateKeyToAsn1(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts a PrivateKeyInfo to PEM format. + * + * @param pki the PrivateKeyInfo. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted private key. + */ +pki.privateKeyInfoToPem = function(pki, maxline) { + // convert to DER, then PEM-encode + var msg = { + type: 'PRIVATE KEY', + body: asn1.toDer(pki).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + + +/***/ }), + +/***/ 37240: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Prime number generation API. + * + * @author Dave Longley + * + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); +__nccwpck_require__(30292); +__nccwpck_require__(87088); + +(function() { + +// forge.prime already defined +if(forge.prime) { + module.exports = forge.prime; + return; +} + +/* PRIME API */ +var prime = module.exports = forge.prime = forge.prime || {}; + +var BigInteger = forge.jsbn.BigInteger; + +// primes are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 +var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; +var THIRTY = new BigInteger(null); +THIRTY.fromInt(30); +var op_or = function(x, y) {return x|y;}; + +/** + * Generates a random probable prime with the given number of bits. + * + * Alternative algorithms can be specified by name as a string or as an + * object with custom options like so: + * + * { + * name: 'PRIMEINC', + * options: { + * maxBlockTime: , + * millerRabinTests: , + * workerScript: , + * workers: . + * workLoad: the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * } + * } + * + * @param bits the number of bits for the prime number. + * @param options the options to use. + * [algorithm] the algorithm to use (default: 'PRIMEINC'). + * [prng] a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + * + * @return callback(err, num) called once the operation completes. + */ +prime.generateProbablePrime = function(bits, options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + + // default to PRIMEINC algorithm + var algorithm = options.algorithm || 'PRIMEINC'; + if(typeof algorithm === 'string') { + algorithm = {name: algorithm}; + } + algorithm.options = algorithm.options || {}; + + // create prng with api that matches BigInteger secure random + var prng = options.prng || forge.random; + var rng = { + // x is an array to fill with bytes + nextBytes: function(x) { + var b = prng.getBytesSync(x.length); + for(var i = 0; i < x.length; ++i) { + x[i] = b.charCodeAt(i); + } } - /** - * Sends a GET request to the URL provided and resolves with the returned - * external subject token. - * @param url The URL to call to retrieve the subject token. This is typically - * a local metadata server. - * @param formatType The token file or URL response type (JSON or text). - * @param formatSubjectTokenFieldName For JSON response types, this is the - * subject_token field name. For Azure, this is access_token. For text - * response types, this is ignored. - * @param headers The optional additional headers to send with the request to - * the metadata server url. - * @return A promise that resolves with the external subject token. - */ - async getTokenFromUrl(url, formatType, formatSubjectTokenFieldName, headers) { - const opts = { - url, - method: 'GET', - headers, - responseType: formatType, - }; - let subjectToken; - if (formatType === 'text') { - const response = await this.transporter.request(opts); - subjectToken = response.data; - } - else if (formatType === 'json' && formatSubjectTokenFieldName) { - const response = await this.transporter.request(opts); - subjectToken = response.data[formatSubjectTokenFieldName]; - } - if (!subjectToken) { - throw new Error('Unable to parse the subject_token from the credential_source URL'); - } - return subjectToken; + }; + + if(algorithm.name === 'PRIMEINC') { + return primeincFindPrime(bits, rng, algorithm.options, callback); + } + + throw new Error('Invalid prime generation algorithm: ' + algorithm.name); +}; + +function primeincFindPrime(bits, rng, options, callback) { + if('workers' in options) { + return primeincFindPrimeWithWorkers(bits, rng, options, callback); + } + return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); +} + +function primeincFindPrimeWithoutWorkers(bits, rng, options, callback) { + // initialize random number + var num = generateRandom(bits, rng); + + /* Note: All primes are of the form 30k+i for i < 30 and gcd(30, i)=1. The + number we are given is always aligned at 30k + 1. Each time the number is + determined not to be prime we add to get to the next 'i', eg: if the number + was at 30k + 1 we add 6. */ + var deltaIdx = 0; + + // get required number of MR tests + var mrTests = getMillerRabinTests(num.bitLength()); + if('millerRabinTests' in options) { + mrTests = options.millerRabinTests; + } + + // find prime nearest to 'num' for maxBlockTime ms + // 10 ms gives 5ms of leeway for other calculations before dropping + // below 60fps (1000/60 == 16.67), but in reality, the number will + // likely be higher due to an 'atomic' big int modPow + var maxBlockTime = 10; + if('maxBlockTime' in options) { + maxBlockTime = options.maxBlockTime; + } + + _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); +} + +function _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback) { + var start = +new Date(); + do { + // overflow, regenerate random number + if(num.bitLength() > bits) { + num = generateRandom(bits, rng); + } + // do primality test + if(num.isProbablePrime(mrTests)) { + return callback(null, num); } + // get next potential prime + num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); + } while(maxBlockTime < 0 || (+new Date() - start < maxBlockTime)); + + // keep trying later + forge.util.setImmediate(function() { + _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); + }); } -exports.IdentityPoolClient = IdentityPoolClient; -//# sourceMappingURL=identitypoolclient.js.map -/***/ }), +// NOTE: This algorithm is indeterminate in nature because workers +// run in parallel looking at different segments of numbers. Even if this +// algorithm is run twice with the same input from a predictable RNG, it +// may produce different outputs. +function primeincFindPrimeWithWorkers(bits, rng, options, callback) { + // web workers unavailable + if(typeof Worker === 'undefined') { + return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); + } -/***/ 1436: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // initialize random number + var num = generateRandom(bits, rng); -"use strict"; + // use web workers to generate keys + var numWorkers = options.workers; + var workLoad = options.workLoad || 100; + var range = workLoad * 30 / 8; + var workerScript = options.workerScript || 'forge/prime.worker.js'; + if(numWorkers === -1) { + return forge.util.estimateCores(function(err, cores) { + if(err) { + // default to 2 + cores = 2; + } + numWorkers = cores - 1; + generate(); + }); + } + generate(); -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IdTokenClient = void 0; -const oauth2client_1 = __nccwpck_require__(11883); -class IdTokenClient extends oauth2client_1.OAuth2Client { - /** - * Google ID Token client - * - * Retrieve access token from the metadata server. - * See: https://developers.google.com/compute/docs/authentication - */ - constructor(options) { - super(); - this.targetAudience = options.targetAudience; - this.idTokenProvider = options.idTokenProvider; + function generate() { + // require at least 1 worker + numWorkers = Math.max(1, numWorkers); + + // TODO: consider optimizing by starting workers outside getPrime() ... + // note that in order to clean up they will have to be made internally + // asynchronous which may actually be slower + + // start workers immediately + var workers = []; + for(var i = 0; i < numWorkers; ++i) { + // FIXME: fix path or use blob URLs + workers[i] = new Worker(workerScript); } - async getRequestMetadataAsync( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - url) { - if (!this.credentials.id_token || - (this.credentials.expiry_date || 0) < Date.now()) { - const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); - this.credentials = { - id_token: idToken, - expiry_date: this.getIdTokenExpiryDate(idToken), - }; - } - const headers = { - Authorization: 'Bearer ' + this.credentials.id_token, - }; - return { headers }; + var running = numWorkers; + + // listen for requests from workers and assign ranges to find prime + for(var i = 0; i < numWorkers; ++i) { + workers[i].addEventListener('message', workerMessage); } - getIdTokenExpiryDate(idToken) { - const payloadB64 = idToken.split('.')[1]; - if (payloadB64) { - const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); - return payload.exp * 1000; + + /* Note: The distribution of random numbers is unknown. Therefore, each + web worker is continuously allocated a range of numbers to check for a + random number until one is found. + + Every 30 numbers will be checked just 8 times, because prime numbers + have the form: + + 30k+i, for i < 30 and gcd(30, i)=1 (there are 8 values of i for this) + + Therefore, if we want a web worker to run N checks before asking for + a new range of numbers, each range must contain N*30/8 numbers. + + For 100 checks (workLoad), this is a range of 375. */ + + var found = false; + function workerMessage(e) { + // ignore message, prime already found + if(found) { + return; + } + + --running; + var data = e.data; + if(data.found) { + // terminate all workers + for(var i = 0; i < workers.length; ++i) { + workers[i].terminate(); } - } -} -exports.IdTokenClient = IdTokenClient; -//# sourceMappingURL=idtokenclient.js.map + found = true; + return callback(null, new BigInteger(data.prime, 16)); + } -/***/ }), + // overflow, regenerate random number + if(num.bitLength() > bits) { + num = generateRandom(bits, rng); + } -/***/ 61107: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // assign new range to check + var hex = num.toString(16); -"use strict"; + // start prime search + e.target.postMessage({ + hex: hex, + workLoad: workLoad + }); + + num.dAddOffset(range, 0); + } + } +} /** - * Copyright 2021 Google LLC + * Generates a random number using the given number of bits and RNG. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * @param bits the number of bits for the number. + * @param rng the random number generator to use. * - * http://www.apache.org/licenses/LICENSE-2.0 + * @return the random number. + */ +function generateRandom(bits, rng) { + var num = new BigInteger(bits, rng); + // force MSB set + var bits1 = bits - 1; + if(!num.testBit(bits1)) { + num.bitwiseTo(BigInteger.ONE.shiftLeft(bits1), op_or, num); + } + // align number on 30k+1 boundary + num.dAddOffset(31 - num.mod(THIRTY).byteValue(), 0); + return num; +} + +/** + * Returns the required number of Miller-Rabin tests to generate a + * prime with an error probability of (1/2)^80. * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * + * @param bits the bit size. + * + * @return the required number of iterations. */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Impersonated = void 0; -const oauth2client_1 = __nccwpck_require__(11883); -class Impersonated extends oauth2client_1.OAuth2Client { - /** - * Impersonated service account credentials. - * - * Create a new access token by impersonating another service account. - * - * Impersonated Credentials allowing credentials issued to a user or - * service account to impersonate another. The source project using - * Impersonated Credentials must enable the "IAMCredentials" API. - * Also, the target service account must grant the orginating principal - * the "Service Account Token Creator" IAM role. - * - * @param {object} options - The configuration object. - * @param {object} [options.sourceClient] the source credential used as to - * acquire the impersonated credentials. - * @param {string} [options.targetPrincipal] the service account to - * impersonate. - * @param {string[]} [options.delegates] the chained list of delegates - * required to grant the final access_token. If set, the sequence of - * identities must have "Service Account Token Creator" capability granted to - * the preceding identity. For example, if set to [serviceAccountB, - * serviceAccountC], the sourceCredential must have the Token Creator role on - * serviceAccountB. serviceAccountB must have the Token Creator on - * serviceAccountC. Finally, C must have Token Creator on target_principal. - * If left unset, sourceCredential must have that role on targetPrincipal. - * @param {string[]} [options.targetScopes] scopes to request during the - * authorization grant. - * @param {number} [options.lifetime] number of seconds the delegated - * credential should be valid for up to 3600 seconds by default, or 43,200 - * seconds by extending the token's lifetime, see: - * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth - * @param {string} [options.endpoint] api endpoint override. - */ - constructor(options = {}) { - var _a, _b, _c, _d, _e, _f; - super(options); - this.credentials = { - expiry_date: 1, - refresh_token: 'impersonated-placeholder', - }; - this.sourceClient = (_a = options.sourceClient) !== null && _a !== void 0 ? _a : new oauth2client_1.OAuth2Client(); - this.targetPrincipal = (_b = options.targetPrincipal) !== null && _b !== void 0 ? _b : ''; - this.delegates = (_c = options.delegates) !== null && _c !== void 0 ? _c : []; - this.targetScopes = (_d = options.targetScopes) !== null && _d !== void 0 ? _d : []; - this.lifetime = (_e = options.lifetime) !== null && _e !== void 0 ? _e : 3600; - this.endpoint = (_f = options.endpoint) !== null && _f !== void 0 ? _f : 'https://iamcredentials.googleapis.com'; - } - /** - * Refreshes the access token. - * @param refreshToken Unused parameter - */ - async refreshToken(refreshToken) { - var _a, _b, _c, _d, _e, _f; - try { - await this.sourceClient.getAccessToken(); - const name = 'projects/-/serviceAccounts/' + this.targetPrincipal; - const u = `${this.endpoint}/v1/${name}:generateAccessToken`; - const body = { - delegates: this.delegates, - scope: this.targetScopes, - lifetime: this.lifetime + 's', - }; - const res = await this.sourceClient.request({ - url: u, - data: body, - method: 'POST', - }); - const tokenResponse = res.data; - this.credentials.access_token = tokenResponse.accessToken; - this.credentials.expiry_date = Date.parse(tokenResponse.expireTime); - return { - tokens: this.credentials, - res, - }; - } - catch (error) { - const status = (_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.status; - const message = (_f = (_e = (_d = error === null || error === void 0 ? void 0 : error.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f.message; - if (status && message) { - error.message = `${status}: unable to impersonate: ${message}`; - throw error; - } - else { - error.message = `unable to impersonate: ${error}`; - throw error; - } - } - } +function getMillerRabinTests(bits) { + if(bits <= 100) return 27; + if(bits <= 150) return 18; + if(bits <= 200) return 15; + if(bits <= 250) return 12; + if(bits <= 300) return 9; + if(bits <= 350) return 8; + if(bits <= 400) return 7; + if(bits <= 500) return 6; + if(bits <= 600) return 5; + if(bits <= 800) return 4; + if(bits <= 1250) return 3; + return 2; } -exports.Impersonated = Impersonated; -//# sourceMappingURL=impersonated.js.map + +})(); + /***/ }), -/***/ 61245: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 9402: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * A javascript implementation of a cryptographically-secure + * Pseudo Random Number Generator (PRNG). The Fortuna algorithm is followed + * here though the use of SHA-256 is not enforced; when generating an + * a PRNG context, the hashing algorithm and block cipher used for + * the generator are specified via a plugin. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); -// Copyright 2015 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.JWTAccess = void 0; -const jws = __nccwpck_require__(40958); -const LRU = __nccwpck_require__(89709); -const DEFAULT_HEADER = { - alg: 'RS256', - typ: 'JWT', -}; -class JWTAccess { - /** - * JWTAccess service account credentials. - * - * Create a new access token by using the credential to create a new JWT token - * that's recognized as the access token. - * - * @param email the service account email address. - * @param key the private key that will be used to sign the token. - * @param keyId the ID of the private key used to sign the token. - */ - constructor(email, key, keyId, eagerRefreshThresholdMillis) { - this.cache = new LRU({ - max: 500, - maxAge: 60 * 60 * 1000, - }); - this.email = email; - this.key = key; - this.keyId = keyId; - this.eagerRefreshThresholdMillis = eagerRefreshThresholdMillis !== null && eagerRefreshThresholdMillis !== void 0 ? eagerRefreshThresholdMillis : 5 * 60 * 1000; - } - /** - * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url - * - * @param url The URI being authorized. - * @param scopes The scope or scopes being authorized - * @returns A string that returns the cached key. - */ - getCachedKey(url, scopes) { - let cacheKey = url; - if (scopes && Array.isArray(scopes) && scopes.length) { - cacheKey = url ? `${url}_${scopes.join('_')}` : `${scopes.join('_')}`; - } - else if (typeof scopes === 'string') { - cacheKey = url ? `${url}_${scopes}` : scopes; - } - if (!cacheKey) { - throw Error('Scopes or url must be provided'); - } - return cacheKey; - } - /** - * Get a non-expired access token, after refreshing if necessary. - * - * @param url The URI being authorized. - * @param additionalClaims An object with a set of additional claims to - * include in the payload. - * @returns An object that includes the authorization header. - */ - getRequestHeaders(url, additionalClaims, scopes) { - // Return cached authorization headers, unless we are within - // eagerRefreshThresholdMillis ms of them expiring: - const key = this.getCachedKey(url, scopes); - const cachedToken = this.cache.get(key); - const now = Date.now(); - if (cachedToken && - cachedToken.expiration - now > this.eagerRefreshThresholdMillis) { - return cachedToken.headers; - } - const iat = Math.floor(Date.now() / 1000); - const exp = JWTAccess.getExpirationTime(iat); - let defaultClaims; - // Turn scopes into space-separated string - if (Array.isArray(scopes)) { - scopes = scopes.join(' '); - } - // If scopes are specified, sign with scopes - if (scopes) { - defaultClaims = { - iss: this.email, - sub: this.email, - scope: scopes, - exp, - iat, - }; - } - else { - defaultClaims = { - iss: this.email, - sub: this.email, - aud: url, - exp, - iat, - }; - } - // if additionalClaims are provided, ensure they do not collide with - // other required claims. - if (additionalClaims) { - for (const claim in defaultClaims) { - if (additionalClaims[claim]) { - throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); - } - } - } - const header = this.keyId - ? { ...DEFAULT_HEADER, kid: this.keyId } - : DEFAULT_HEADER; - const payload = Object.assign(defaultClaims, additionalClaims); - // Sign the jwt and add it to the cache - const signedJWT = jws.sign({ header, payload, secret: this.key }); - const headers = { Authorization: `Bearer ${signedJWT}` }; - this.cache.set(key, { - expiration: exp * 1000, - headers, - }); - return headers; - } - /** - * Returns an expiration time for the JWT token. - * - * @param iat The issued at time for the JWT. - * @returns An expiration time for the JWT. - */ - static getExpirationTime(iat) { - const exp = iat + 3600; // 3600 seconds = 1 hour - return exp; - } - /** - * Create a JWTAccess credentials instance using the given input options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); - } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); - } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); - } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); - } - else { - return this.fromStreamAsync(inputStream); - } - } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - reject(new Error('Must pass in a stream containing the service account auth settings.')); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('data', chunk => (s += chunk)) - .on('error', reject) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (err) { - reject(err); - } - }); - }); - } +var _crypto = null; +if(forge.util.isNodejs && !forge.options.usePureJavaScript && + !process.versions['node-webkit']) { + _crypto = __nccwpck_require__(76982); } -exports.JWTAccess = JWTAccess; -//# sourceMappingURL=jwtaccess.js.map -/***/ }), +/* PRNG API */ +var prng = module.exports = forge.prng = forge.prng || {}; -/***/ 35604: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/** + * Creates a new PRNG context. + * + * A PRNG plugin must be passed in that will provide: + * + * 1. A function that initializes the key and seed of a PRNG context. It + * will be given a 16 byte key and a 16 byte seed. Any key expansion + * or transformation of the seed from a byte string into an array of + * integers (or similar) should be performed. + * 2. The cryptographic function used by the generator. It takes a key and + * a seed. + * 3. A seed increment function. It takes the seed and returns seed + 1. + * 4. An api to create a message digest. + * + * For an example, see random.js. + * + * @param plugin the PRNG plugin to use. + */ +prng.create = function(plugin) { + var ctx = { + plugin: plugin, + key: null, + seed: null, + time: null, + // number of reseeds so far + reseeds: 0, + // amount of data generated so far + generated: 0, + // no initial key bytes + keyBytes: '' + }; -"use strict"; + // create 32 entropy pools (each is a message digest) + var md = plugin.md; + var pools = new Array(32); + for(var i = 0; i < 32; ++i) { + pools[i] = md.create(); + } + ctx.pools = pools; -// Copyright 2013 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.JWT = void 0; -const gtoken_1 = __nccwpck_require__(17625); -const jwtaccess_1 = __nccwpck_require__(61245); -const oauth2client_1 = __nccwpck_require__(11883); -class JWT extends oauth2client_1.OAuth2Client { - constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { - const opts = optionsOrEmail && typeof optionsOrEmail === 'object' - ? optionsOrEmail - : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; - super({ - eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, - forceRefreshOnFailure: opts.forceRefreshOnFailure, - }); - this.email = opts.email; - this.keyFile = opts.keyFile; - this.key = opts.key; - this.keyId = opts.keyId; - this.scopes = opts.scopes; - this.subject = opts.subject; - this.additionalClaims = opts.additionalClaims; - this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; - } - /** - * Creates a copy of the credential with the specified scopes. - * @param scopes List of requested scopes or a single scope. - * @return The cloned instance. - */ - createScoped(scopes) { - return new JWT({ - email: this.email, - keyFile: this.keyFile, - key: this.key, - keyId: this.keyId, - scopes, - subject: this.subject, - additionalClaims: this.additionalClaims, - }); - } - /** - * Obtains the metadata to be sent with the request. - * - * @param url the URI being authorized. - */ - async getRequestMetadataAsync(url) { - url = this.defaultServicePath ? `https://${this.defaultServicePath}/` : url; - const useSelfSignedJWT = (!this.hasUserScopes() && url) || - (this.useJWTAccessWithScope && this.hasAnyScopes()); - if (!this.apiKey && useSelfSignedJWT) { - if (this.additionalClaims && - this.additionalClaims.target_audience) { - const { tokens } = await this.refreshToken(); - return { - headers: this.addSharedMetadataHeaders({ - Authorization: `Bearer ${tokens.id_token}`, - }), - }; - } - else { - // no scopes have been set, but a uri has been provided. Use JWTAccess - // credentials. - if (!this.access) { - this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId, this.eagerRefreshThresholdMillis); - } - let scopes; - if (this.hasUserScopes()) { - scopes = this.scopes; - } - else if (!url) { - scopes = this.defaultScopes; - } - const headers = await this.access.getRequestHeaders(url !== null && url !== void 0 ? url : undefined, this.additionalClaims, - // Scopes take precedent over audience for signing, - // so we only provide them if useJWTAccessWithScope is on - this.useJWTAccessWithScope ? scopes : undefined); - return { headers: this.addSharedMetadataHeaders(headers) }; - } - } - else if (this.hasAnyScopes() || this.apiKey) { - return super.getRequestMetadataAsync(url); - } - else { - // If no audience, apiKey, or scopes are provided, we should not attempt - // to populate any headers: - return { headers: {} }; - } + // entropy pools are written to cyclically, starting at index 0 + ctx.pool = 0; + + /** + * Generates random bytes. The bytes may be generated synchronously or + * asynchronously. Web workers must use the asynchronous interface or + * else the behavior is undefined. + * + * @param count the number of random bytes to generate. + * @param [callback(err, bytes)] called once the operation completes. + * + * @return count random bytes as a string. + */ + ctx.generate = function(count, callback) { + // do synchronously + if(!callback) { + return ctx.generateSync(count); } - /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. - */ - async fetchIdToken(targetAudience) { - // Create a new gToken for fetching an ID token - const gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes || this.defaultScopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: { target_audience: targetAudience }, - }); - await gtoken.getToken({ - forceRefresh: true, + + // simple generator using counter-based CBC + var cipher = ctx.plugin.cipher; + var increment = ctx.plugin.increment; + var formatKey = ctx.plugin.formatKey; + var formatSeed = ctx.plugin.formatSeed; + var b = forge.util.createBuffer(); + + // paranoid deviation from Fortuna: + // reset key for every request to protect previously + // generated random bytes should the key be discovered; + // there is no 100ms based reseeding because of this + // forced reseed for every `generate` call + ctx.key = null; + + generate(); + + function generate(err) { + if(err) { + return callback(err); + } + + // sufficient bytes generated + if(b.length() >= count) { + return callback(null, b.getBytes(count)); + } + + // if amount of data generated is greater than 1 MiB, trigger reseed + if(ctx.generated > 0xfffff) { + ctx.key = null; + } + + if(ctx.key === null) { + // prevent stack overflow + return forge.util.nextTick(function() { + _reseed(generate); }); - if (!gtoken.idToken) { - throw new Error('Unknown error: Failed to fetch ID token'); - } - return gtoken.idToken; - } - /** - * Determine if there are currently scopes available. - */ - hasUserScopes() { - if (!this.scopes) { - return false; - } - return this.scopes.length > 0; + } + + // generate the random bytes + var bytes = cipher(ctx.key, ctx.seed); + ctx.generated += bytes.length; + b.putBytes(bytes); + + // generate bytes for a new key and seed + ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); + ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); + + forge.util.setImmediate(generate); } - /** - * Are there any default or user scopes defined. - */ - hasAnyScopes() { - if (this.scopes && this.scopes.length > 0) - return true; - if (this.defaultScopes && this.defaultScopes.length > 0) - return true; - return false; + }; + + /** + * Generates random bytes synchronously. + * + * @param count the number of random bytes to generate. + * + * @return count random bytes as a string. + */ + ctx.generateSync = function(count) { + // simple generator using counter-based CBC + var cipher = ctx.plugin.cipher; + var increment = ctx.plugin.increment; + var formatKey = ctx.plugin.formatKey; + var formatSeed = ctx.plugin.formatSeed; + + // paranoid deviation from Fortuna: + // reset key for every request to protect previously + // generated random bytes should the key be discovered; + // there is no 100ms based reseeding because of this + // forced reseed for every `generateSync` call + ctx.key = null; + + var b = forge.util.createBuffer(); + while(b.length() < count) { + // if amount of data generated is greater than 1 MiB, trigger reseed + if(ctx.generated > 0xfffff) { + ctx.key = null; + } + + if(ctx.key === null) { + _reseedSync(); + } + + // generate the random bytes + var bytes = cipher(ctx.key, ctx.seed); + ctx.generated += bytes.length; + b.putBytes(bytes); + + // generate bytes for a new key and seed + ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); + ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); } - authorize(callback) { - if (callback) { - this.authorizeAsync().then(r => callback(null, r), callback); - } - else { - return this.authorizeAsync(); - } + + return b.getBytes(count); + }; + + /** + * Private function that asynchronously reseeds a generator. + * + * @param callback(err) called once the operation completes. + */ + function _reseed(callback) { + if(ctx.pools[0].messageLength >= 32) { + _seed(); + return callback(); } - async authorizeAsync() { - const result = await this.refreshToken(); - if (!result) { - throw new Error('No result returned'); - } - this.credentials = result.tokens; - this.credentials.refresh_token = 'jwt-placeholder'; - this.key = this.gtoken.key; - this.email = this.gtoken.iss; - return result.tokens; + // not enough seed data... + var needed = (32 - ctx.pools[0].messageLength) << 5; + ctx.seedFile(needed, function(err, bytes) { + if(err) { + return callback(err); + } + ctx.collect(bytes); + _seed(); + callback(); + }); + } + + /** + * Private function that synchronously reseeds a generator. + */ + function _reseedSync() { + if(ctx.pools[0].messageLength >= 32) { + return _seed(); } - /** - * Refreshes the access token. - * @param refreshToken ignored - * @private - */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - const gtoken = this.createGToken(); - const token = await gtoken.getToken({ - forceRefresh: this.isTokenExpiring(), - }); - const tokens = { - access_token: token.access_token, - token_type: 'Bearer', - expiry_date: gtoken.expiresAt, - id_token: gtoken.idToken, - }; - this.emit('tokens', tokens); - return { res: null, tokens }; + // not enough seed data... + var needed = (32 - ctx.pools[0].messageLength) << 5; + ctx.collect(ctx.seedFileSync(needed)); + _seed(); + } + + /** + * Private function that seeds a generator once enough bytes are available. + */ + function _seed() { + // update reseed count + ctx.reseeds = (ctx.reseeds === 0xffffffff) ? 0 : ctx.reseeds + 1; + + // goal is to update `key` via: + // key = hash(key + s) + // where 's' is all collected entropy from selected pools, then... + + // create a plugin-based message digest + var md = ctx.plugin.md.create(); + + // consume current key bytes + md.update(ctx.keyBytes); + + // digest the entropy of pools whose index k meet the + // condition 'n mod 2^k == 0' where n is the number of reseeds + var _2powK = 1; + for(var k = 0; k < 32; ++k) { + if(ctx.reseeds % _2powK === 0) { + md.update(ctx.pools[k].digest().getBytes()); + ctx.pools[k].start(); + } + _2powK = _2powK << 1; } - /** - * Create a gToken if it doesn't already exist. - */ - createGToken() { - if (!this.gtoken) { - this.gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes || this.defaultScopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: this.additionalClaims, - }); - } - return this.gtoken; + + // get digest for key bytes + ctx.keyBytes = md.digest().getBytes(); + + // paranoid deviation from Fortuna: + // update `seed` via `seed = hash(key)` + // instead of initializing to zero once and only + // ever incrementing it + md.start(); + md.update(ctx.keyBytes); + var seedBytes = md.digest().getBytes(); + + // update state + ctx.key = ctx.plugin.formatKey(ctx.keyBytes); + ctx.seed = ctx.plugin.formatSeed(seedBytes); + ctx.generated = 0; + } + + /** + * The built-in default seedFile. This seedFile is used when entropy + * is needed immediately. + * + * @param needed the number of bytes that are needed. + * + * @return the random bytes. + */ + function defaultSeedFile(needed) { + // use window.crypto.getRandomValues strong source of entropy if available + var getRandomValues = null; + var globalScope = forge.util.globalScope; + var _crypto = globalScope.crypto || globalScope.msCrypto; + if(_crypto && _crypto.getRandomValues) { + getRandomValues = function(arr) { + return _crypto.getRandomValues(arr); + }; } - /** - * Create a JWT credentials instance using the given input options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); - } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); - } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); + + var b = forge.util.createBuffer(); + if(getRandomValues) { + while(b.length() < needed) { + // max byte length is 65536 before QuotaExceededError is thrown + // http://www.w3.org/TR/WebCryptoAPI/#RandomSource-method-getRandomValues + var count = Math.max(1, Math.min(needed - b.length(), 65536) / 4); + var entropy = new Uint32Array(Math.floor(count)); + try { + getRandomValues(entropy); + for(var i = 0; i < entropy.length; ++i) { + b.putInt32(entropy[i]); + } + } catch(e) { + /* only ignore QuotaExceededError */ + if(!(typeof QuotaExceededError !== 'undefined' && + e instanceof QuotaExceededError)) { + throw e; + } } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - this.quotaProjectId = json.quota_project_id; + } } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); - } - else { - return this.fromStreamAsync(inputStream); + + // be sad and add some weak random data + if(b.length() < needed) { + /* Draws from Park-Miller "minimal standard" 31 bit PRNG, + implemented with David G. Carta's optimization: with 32 bit math + and without division (Public Domain). */ + var hi, lo, next; + var seed = Math.floor(Math.random() * 0x010000); + while(b.length() < needed) { + lo = 16807 * (seed & 0xFFFF); + hi = 16807 * (seed >> 16); + lo += (hi & 0x7FFF) << 16; + lo += hi >> 15; + lo = (lo & 0x7FFFFFFF) + (lo >> 31); + seed = lo & 0xFFFFFFFF; + + // consume lower 3 bytes of seed + for(var i = 0; i < 3; ++i) { + // throw in more pseudo random + next = seed >>> (i << 3); + next ^= Math.floor(Math.random() * 0x0100); + b.putByte(next & 0xFF); } + } } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the service account auth settings.'); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (e) { - reject(e); - } - }); - }); - } - /** - * Creates a JWT credentials instance using an API Key for authentication. - * @param apiKey The API Key in string form. - */ - fromAPIKey(apiKey) { - if (typeof apiKey !== 'string') { - throw new Error('Must provide an API Key string.'); + + return b.getBytes(needed); + } + // initialize seed file APIs + if(_crypto) { + // use nodejs async API + ctx.seedFile = function(needed, callback) { + _crypto.randomBytes(needed, function(err, bytes) { + if(err) { + return callback(err); } - this.apiKey = apiKey; + callback(null, bytes.toString()); + }); + }; + // use nodejs sync API + ctx.seedFileSync = function(needed) { + return _crypto.randomBytes(needed).toString(); + }; + } else { + ctx.seedFile = function(needed, callback) { + try { + callback(null, defaultSeedFile(needed)); + } catch(e) { + callback(e); + } + }; + ctx.seedFileSync = defaultSeedFile; + } + + /** + * Adds entropy to a prng ctx's accumulator. + * + * @param bytes the bytes of entropy as a string. + */ + ctx.collect = function(bytes) { + // iterate over pools distributing entropy cyclically + var count = bytes.length; + for(var i = 0; i < count; ++i) { + ctx.pools[ctx.pool].update(bytes.substr(i, 1)); + ctx.pool = (ctx.pool === 31) ? 0 : ctx.pool + 1; } - /** - * Using the key or keyFile on the JWT client, obtain an object that contains - * the key and the client email. - */ - async getCredentials() { - if (this.key) { - return { private_key: this.key, client_email: this.email }; + }; + + /** + * Collects an integer of n bits. + * + * @param i the integer entropy. + * @param n the number of bits in the integer. + */ + ctx.collectInt = function(i, n) { + var bytes = ''; + for(var x = 0; x < n; x += 8) { + bytes += String.fromCharCode((i >> x) & 0xFF); + } + ctx.collect(bytes); + }; + + /** + * Registers a Web Worker to receive immediate entropy from the main thread. + * This method is required until Web Workers can access the native crypto + * API. This method should be called twice for each created worker, once in + * the main thread, and once in the worker itself. + * + * @param worker the worker to register. + */ + ctx.registerWorker = function(worker) { + // worker receives random bytes + if(worker === self) { + ctx.seedFile = function(needed, callback) { + function listener(e) { + var data = e.data; + if(data.forge && data.forge.prng) { + self.removeEventListener('message', listener); + callback(data.forge.prng.err, data.forge.prng.bytes); + } } - else if (this.keyFile) { - const gtoken = this.createGToken(); - const creds = await gtoken.getCredentials(this.keyFile); - return { private_key: creds.privateKey, client_email: creds.clientEmail }; + self.addEventListener('message', listener); + self.postMessage({forge: {prng: {needed: needed}}}); + }; + } else { + // main thread sends random bytes upon request + var listener = function(e) { + var data = e.data; + if(data.forge && data.forge.prng) { + ctx.seedFile(data.forge.prng.needed, function(err, bytes) { + worker.postMessage({forge: {prng: {err: err, bytes: bytes}}}); + }); } - throw new Error('A key or a keyFile must be provided to getCredentials.'); + }; + // TODO: do we need to remove the event listener when the worker dies? + worker.addEventListener('message', listener); } -} -exports.JWT = JWT; -//# sourceMappingURL=jwtclient.js.map + }; + + return ctx; +}; + /***/ }), -/***/ 9267: -/***/ ((__unused_webpack_module, exports) => { +/***/ 17621: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * Javascript implementation of PKCS#1 PSS signature padding. + * + * @author Stefan Siegl + * + * Copyright (c) 2012 Stefan Siegl + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(87088); +__nccwpck_require__(46831); -// Copyright 2014 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LoginTicket = void 0; -class LoginTicket { - /** - * Create a simple class to extract user ID from an ID Token - * - * @param {string} env Envelope of the jwt - * @param {TokenPayload} pay Payload of the jwt - * @constructor - */ - constructor(env, pay) { - this.envelope = env; - this.payload = pay; - } - getEnvelope() { - return this.envelope; - } - getPayload() { - return this.payload; - } - /** - * Create a simple class to extract user ID from an ID Token - * - * @return The user ID - */ - getUserId() { - const payload = this.getPayload(); - if (payload && payload.sub) { - return payload.sub; - } - return null; - } - /** - * Returns attributes from the login ticket. This can contain - * various information about the user session. - * - * @return The envelope and payload - */ - getAttributes() { - return { envelope: this.getEnvelope(), payload: this.getPayload() }; - } -} -exports.LoginTicket = LoginTicket; -//# sourceMappingURL=loginticket.js.map +// shortcut for PSS API +var pss = module.exports = forge.pss = forge.pss || {}; -/***/ }), +/** + * Creates a PSS signature scheme object. + * + * There are several ways to provide a salt for encoding: + * + * 1. Specify the saltLength only and the built-in PRNG will generate it. + * 2. Specify the saltLength and a custom PRNG with 'getBytesSync' defined that + * will be used. + * 3. Specify the salt itself as a forge.util.ByteBuffer. + * + * @param options the options to use: + * md the message digest object to use, a forge md instance. + * mgf the mask generation function to use, a forge mgf instance. + * [saltLength] the length of the salt in octets. + * [prng] the pseudo-random number generator to use to produce a salt. + * [salt] the salt to use when encoding. + * + * @return a signature scheme object. + */ +pss.create = function(options) { + // backwards compatibility w/legacy args: hash, mgf, sLen + if(arguments.length === 3) { + options = { + md: arguments[0], + mgf: arguments[1], + saltLength: arguments[2] + }; + } -/***/ 11883: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + var hash = options.md; + var mgf = options.mgf; + var hLen = hash.digestLength; -"use strict"; + var salt_ = options.salt || null; + if(typeof salt_ === 'string') { + // assume binary-encoded string + salt_ = forge.util.createBuffer(salt_); + } -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OAuth2Client = exports.CertificateFormat = exports.CodeChallengeMethod = void 0; -const querystring = __nccwpck_require__(63477); -const stream = __nccwpck_require__(12781); -const formatEcdsa = __nccwpck_require__(27439); -const crypto_1 = __nccwpck_require__(17742); -const authclient_1 = __nccwpck_require__(38421); -const loginticket_1 = __nccwpck_require__(9267); -var CodeChallengeMethod; -(function (CodeChallengeMethod) { - CodeChallengeMethod["Plain"] = "plain"; - CodeChallengeMethod["S256"] = "S256"; -})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {})); -var CertificateFormat; -(function (CertificateFormat) { - CertificateFormat["PEM"] = "PEM"; - CertificateFormat["JWK"] = "JWK"; -})(CertificateFormat = exports.CertificateFormat || (exports.CertificateFormat = {})); -class OAuth2Client extends authclient_1.AuthClient { - constructor(optionsOrClientId, clientSecret, redirectUri) { - super(); - this.certificateCache = {}; - this.certificateExpiry = null; - this.certificateCacheFormat = CertificateFormat.PEM; - this.refreshTokenPromises = new Map(); - const opts = optionsOrClientId && typeof optionsOrClientId === 'object' - ? optionsOrClientId - : { clientId: optionsOrClientId, clientSecret, redirectUri }; - this._clientId = opts.clientId; - this._clientSecret = opts.clientSecret; - this.redirectUri = opts.redirectUri; - this.eagerRefreshThresholdMillis = - opts.eagerRefreshThresholdMillis || 5 * 60 * 1000; - this.forceRefreshOnFailure = !!opts.forceRefreshOnFailure; - } - /** - * Generates URL for consent page landing. - * @param opts Options. - * @return URL to consent page. - */ - generateAuthUrl(opts = {}) { - if (opts.code_challenge_method && !opts.code_challenge) { - throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); - } - opts.response_type = opts.response_type || 'code'; - opts.client_id = opts.client_id || this._clientId; - opts.redirect_uri = opts.redirect_uri || this.redirectUri; - // Allow scopes to be passed either as array or a string - if (opts.scope instanceof Array) { - opts.scope = opts.scope.join(' '); - } - const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; - return (rootUrl + - '?' + - querystring.stringify(opts)); - } - generateCodeVerifier() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); + var sLen; + if('saltLength' in options) { + sLen = options.saltLength; + } else if(salt_ !== null) { + sLen = salt_.length(); + } else { + throw new Error('Salt length not specified or specific salt not given.'); + } + + if(salt_ !== null && salt_.length() !== sLen) { + throw new Error('Given salt length does not match length of given salt.'); + } + + var prng = options.prng || forge.random; + + var pssobj = {}; + + /** + * Encodes a PSS signature. + * + * This function implements EMSA-PSS-ENCODE as per RFC 3447, section 9.1.1. + * + * @param md the message digest object with the hash to sign. + * @param modsBits the length of the RSA modulus in bits. + * + * @return the encoded message as a binary-encoded string of length + * ceil((modBits - 1) / 8). + */ + pssobj.encode = function(md, modBits) { + var i; + var emBits = modBits - 1; + var emLen = Math.ceil(emBits / 8); + + /* 2. Let mHash = Hash(M), an octet string of length hLen. */ + var mHash = md.digest().getBytes(); + + /* 3. If emLen < hLen + sLen + 2, output "encoding error" and stop. */ + if(emLen < hLen + sLen + 2) { + throw new Error('Message is too long to encrypt.'); } - /** - * Convenience method to automatically generate a code_verifier, and its - * resulting SHA256. If used, this must be paired with a S256 - * code_challenge_method. - * - * For a full example see: - * https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js - */ - async generateCodeVerifierAsync() { - // base64 encoding uses 6 bits per character, and we want to generate128 - // characters. 6*128/8 = 96. - const crypto = crypto_1.createCrypto(); - const randomString = crypto.randomBytesBase64(96); - // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ - // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just - // swapping out a few chars. - const codeVerifier = randomString - .replace(/\+/g, '~') - .replace(/=/g, '_') - .replace(/\//g, '-'); - // Generate the base64 encoded SHA256 - const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); - // We need to use base64UrlEncoding instead of standard base64 - const codeChallenge = unencodedCodeChallenge - .split('=')[0] - .replace(/\+/g, '-') - .replace(/\//g, '_'); - return { codeVerifier, codeChallenge }; + + /* 4. Generate a random octet string salt of length sLen; if sLen = 0, + * then salt is the empty string. */ + var salt; + if(salt_ === null) { + salt = prng.getBytesSync(sLen); + } else { + salt = salt_.bytes(); } - getToken(codeOrOptions, callback) { - const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; - if (callback) { - this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); - } - else { - return this.getTokenAsync(options); - } + + /* 5. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt; */ + var m_ = new forge.util.ByteBuffer(); + m_.fillWithByte(0, 8); + m_.putBytes(mHash); + m_.putBytes(salt); + + /* 6. Let H = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h = hash.digest().getBytes(); + + /* 7. Generate an octet string PS consisting of emLen - sLen - hLen - 2 + * zero octets. The length of PS may be 0. */ + var ps = new forge.util.ByteBuffer(); + ps.fillWithByte(0, emLen - sLen - hLen - 2); + + /* 8. Let DB = PS || 0x01 || salt; DB is an octet string of length + * emLen - hLen - 1. */ + ps.putByte(0x01); + ps.putBytes(salt); + var db = ps.getBytes(); + + /* 9. Let dbMask = MGF(H, emLen - hLen - 1). */ + var maskLen = emLen - hLen - 1; + var dbMask = mgf.generate(h, maskLen); + + /* 10. Let maskedDB = DB \xor dbMask. */ + var maskedDB = ''; + for(i = 0; i < maskLen; i++) { + maskedDB += String.fromCharCode(db.charCodeAt(i) ^ dbMask.charCodeAt(i)); } - async getTokenAsync(options) { - const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; - const values = { - code: options.code, - client_id: options.client_id || this._clientId, - client_secret: this._clientSecret, - redirect_uri: options.redirect_uri || this.redirectUri, - grant_type: 'authorization_code', - code_verifier: options.codeVerifier, - }; - const res = await this.transporter.request({ - method: 'POST', - url, - data: querystring.stringify(values), - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - }); - const tokens = res.data; - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; - } - this.emit('tokens', tokens); - return { tokens, res }; + + /* 11. Set the leftmost 8emLen - emBits bits of the leftmost octet in + * maskedDB to zero. */ + var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; + maskedDB = String.fromCharCode(maskedDB.charCodeAt(0) & ~mask) + + maskedDB.substr(1); + + /* 12. Let EM = maskedDB || H || 0xbc. + * 13. Output EM. */ + return maskedDB + h + String.fromCharCode(0xbc); + }; + + /** + * Verifies a PSS signature. + * + * This function implements EMSA-PSS-VERIFY as per RFC 3447, section 9.1.2. + * + * @param mHash the message digest hash, as a binary-encoded string, to + * compare against the signature. + * @param em the encoded message, as a binary-encoded string + * (RSA decryption result). + * @param modsBits the length of the RSA modulus in bits. + * + * @return true if the signature was verified, false if not. + */ + pssobj.verify = function(mHash, em, modBits) { + var i; + var emBits = modBits - 1; + var emLen = Math.ceil(emBits / 8); + + /* c. Convert the message representative m to an encoded message EM + * of length emLen = ceil((modBits - 1) / 8) octets, where modBits + * is the length in bits of the RSA modulus n */ + em = em.substr(-emLen); + + /* 3. If emLen < hLen + sLen + 2, output "inconsistent" and stop. */ + if(emLen < hLen + sLen + 2) { + throw new Error('Inconsistent parameters to PSS signature verification.'); } - /** - * Refreshes the access token. - * @param refresh_token Existing refresh token. - * @private - */ - async refreshToken(refreshToken) { - if (!refreshToken) { - return this.refreshTokenNoCache(refreshToken); - } - // If a request to refresh using the same token has started, - // return the same promise. - if (this.refreshTokenPromises.has(refreshToken)) { - return this.refreshTokenPromises.get(refreshToken); - } - const p = this.refreshTokenNoCache(refreshToken).then(r => { - this.refreshTokenPromises.delete(refreshToken); - return r; - }, e => { - this.refreshTokenPromises.delete(refreshToken); - throw e; - }); - this.refreshTokenPromises.set(refreshToken, p); - return p; + + /* 4. If the rightmost octet of EM does not have hexadecimal value + * 0xbc, output "inconsistent" and stop. */ + if(em.charCodeAt(emLen - 1) !== 0xbc) { + throw new Error('Encoded message does not end in 0xBC.'); } - async refreshTokenNoCache(refreshToken) { - if (!refreshToken) { - throw new Error('No refresh token is set.'); - } - const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; - const data = { - refresh_token: refreshToken, - client_id: this._clientId, - client_secret: this._clientSecret, - grant_type: 'refresh_token', - }; - // request for new token - const res = await this.transporter.request({ - method: 'POST', - url, - data: querystring.stringify(data), - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - }); - const tokens = res.data; - // TODO: de-duplicate this code from a few spots - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; - } - this.emit('tokens', tokens); - return { tokens, res }; + + /* 5. Let maskedDB be the leftmost emLen - hLen - 1 octets of EM, and + * let H be the next hLen octets. */ + var maskLen = emLen - hLen - 1; + var maskedDB = em.substr(0, maskLen); + var h = em.substr(maskLen, hLen); + + /* 6. If the leftmost 8emLen - emBits bits of the leftmost octet in + * maskedDB are not all equal to zero, output "inconsistent" and stop. */ + var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; + if((maskedDB.charCodeAt(0) & mask) !== 0) { + throw new Error('Bits beyond keysize not zero as expected.'); } - refreshAccessToken(callback) { - if (callback) { - this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); - } - else { - return this.refreshAccessTokenAsync(); - } + + /* 7. Let dbMask = MGF(H, emLen - hLen - 1). */ + var dbMask = mgf.generate(h, maskLen); + + /* 8. Let DB = maskedDB \xor dbMask. */ + var db = ''; + for(i = 0; i < maskLen; i++) { + db += String.fromCharCode(maskedDB.charCodeAt(i) ^ dbMask.charCodeAt(i)); } - async refreshAccessTokenAsync() { - const r = await this.refreshToken(this.credentials.refresh_token); - const tokens = r.tokens; - tokens.refresh_token = this.credentials.refresh_token; - this.credentials = tokens; - return { credentials: this.credentials, res: r.res }; + + /* 9. Set the leftmost 8emLen - emBits bits of the leftmost octet + * in DB to zero. */ + db = String.fromCharCode(db.charCodeAt(0) & ~mask) + db.substr(1); + + /* 10. If the emLen - hLen - sLen - 2 leftmost octets of DB are not zero + * or if the octet at position emLen - hLen - sLen - 1 (the leftmost + * position is "position 1") does not have hexadecimal value 0x01, + * output "inconsistent" and stop. */ + var checkLen = emLen - hLen - sLen - 2; + for(i = 0; i < checkLen; i++) { + if(db.charCodeAt(i) !== 0x00) { + throw new Error('Leftmost octets not zero as expected'); + } } - getAccessToken(callback) { - if (callback) { - this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); - } - else { - return this.getAccessTokenAsync(); - } + + if(db.charCodeAt(checkLen) !== 0x01) { + throw new Error('Inconsistent PSS signature, 0x01 marker not found'); } - async getAccessTokenAsync() { - const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); - if (shouldRefresh) { - if (!this.credentials.refresh_token) { - if (this.refreshHandler) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - return { token: this.credentials.access_token }; - } - } - else { - throw new Error('No refresh token or refresh handler callback is set.'); - } - } - const r = await this.refreshAccessTokenAsync(); - if (!r.credentials || (r.credentials && !r.credentials.access_token)) { - throw new Error('Could not refresh access token.'); - } - return { token: r.credentials.access_token, res: r.res }; - } - else { - return { token: this.credentials.access_token }; + + /* 11. Let salt be the last sLen octets of DB. */ + var salt = db.substr(-sLen); + + /* 12. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt */ + var m_ = new forge.util.ByteBuffer(); + m_.fillWithByte(0, 8); + m_.putBytes(mHash); + m_.putBytes(salt); + + /* 13. Let H' = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h_ = hash.digest().getBytes(); + + /* 14. If H = H', output "consistent." Otherwise, output "inconsistent." */ + return h === h_; + }; + + return pssobj; +}; + + +/***/ }), + +/***/ 87088: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * An API for getting cryptographically-secure random bytes. The bytes are + * generated using the Fortuna algorithm devised by Bruce Schneier and + * Niels Ferguson. + * + * Getting strong random bytes is not yet easy to do in javascript. The only + * truish random entropy that can be collected is from the mouse, keyboard, or + * from timing with respect to page loads, etc. This generator makes a poor + * attempt at providing random bytes when those sources haven't yet provided + * enough entropy to initially seed or to reseed the PRNG. + * + * @author Dave Longley + * + * Copyright (c) 2009-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(12004); +__nccwpck_require__(83360); +__nccwpck_require__(9402); +__nccwpck_require__(46831); + +(function() { + +// forge.random already defined +if(forge.random && forge.random.getBytes) { + module.exports = forge.random; + return; +} + +(function(jQuery) { + +// the default prng plugin, uses AES-128 +var prng_aes = {}; +var _prng_aes_output = new Array(4); +var _prng_aes_buffer = forge.util.createBuffer(); +prng_aes.formatKey = function(key) { + // convert the key into 32-bit integers + var tmp = forge.util.createBuffer(key); + key = new Array(4); + key[0] = tmp.getInt32(); + key[1] = tmp.getInt32(); + key[2] = tmp.getInt32(); + key[3] = tmp.getInt32(); + + // return the expanded key + return forge.aes._expandKey(key, false); +}; +prng_aes.formatSeed = function(seed) { + // convert seed into 32-bit integers + var tmp = forge.util.createBuffer(seed); + seed = new Array(4); + seed[0] = tmp.getInt32(); + seed[1] = tmp.getInt32(); + seed[2] = tmp.getInt32(); + seed[3] = tmp.getInt32(); + return seed; +}; +prng_aes.cipher = function(key, seed) { + forge.aes._updateBlock(key, seed, _prng_aes_output, false); + _prng_aes_buffer.putInt32(_prng_aes_output[0]); + _prng_aes_buffer.putInt32(_prng_aes_output[1]); + _prng_aes_buffer.putInt32(_prng_aes_output[2]); + _prng_aes_buffer.putInt32(_prng_aes_output[3]); + return _prng_aes_buffer.getBytes(); +}; +prng_aes.increment = function(seed) { + // FIXME: do we care about carry or signed issues? + ++seed[3]; + return seed; +}; +prng_aes.md = forge.md.sha256; + +/** + * Creates a new PRNG. + */ +function spawnPrng() { + var ctx = forge.prng.create(prng_aes); + + /** + * Gets random bytes. If a native secure crypto API is unavailable, this + * method tries to make the bytes more unpredictable by drawing from data that + * can be collected from the user of the browser, eg: mouse movement. + * + * If a callback is given, this method will be called asynchronously. + * + * @param count the number of random bytes to get. + * @param [callback(err, bytes)] called once the operation completes. + * + * @return the random bytes in a string. + */ + ctx.getBytes = function(count, callback) { + return ctx.generate(count, callback); + }; + + /** + * Gets random bytes asynchronously. If a native secure crypto API is + * unavailable, this method tries to make the bytes more unpredictable by + * drawing from data that can be collected from the user of the browser, + * eg: mouse movement. + * + * @param count the number of random bytes to get. + * + * @return the random bytes in a string. + */ + ctx.getBytesSync = function(count) { + return ctx.generate(count); + }; + + return ctx; +} + +// create default prng context +var _ctx = spawnPrng(); + +// add other sources of entropy only if window.crypto.getRandomValues is not +// available -- otherwise this source will be automatically used by the prng +var getRandomValues = null; +var globalScope = forge.util.globalScope; +var _crypto = globalScope.crypto || globalScope.msCrypto; +if(_crypto && _crypto.getRandomValues) { + getRandomValues = function(arr) { + return _crypto.getRandomValues(arr); + }; +} + +if(forge.options.usePureJavaScript || + (!forge.util.isNodejs && !getRandomValues)) { + // if this is a web worker, do not use weak entropy, instead register to + // receive strong entropy asynchronously from the main thread + if(typeof window === 'undefined' || window.document === undefined) { + // FIXME: + } + + // get load time entropy + _ctx.collectInt(+new Date(), 32); + + // add some entropy from navigator object + if(typeof(navigator) !== 'undefined') { + var _navBytes = ''; + for(var key in navigator) { + try { + if(typeof(navigator[key]) == 'string') { + _navBytes += navigator[key]; } + } catch(e) { + /* Some navigator keys might not be accessible, e.g. the geolocation + attribute throws an exception if touched in Mozilla chrome:// + context. + + Silently ignore this and just don't use this as a source of + entropy. */ + } } + _ctx.collect(_navBytes); + _navBytes = null; + } + + // add mouse and keyboard collectors if jquery is available + if(jQuery) { + // set up mouse entropy capture + jQuery().mousemove(function(e) { + // add mouse coords + _ctx.collectInt(e.clientX, 16); + _ctx.collectInt(e.clientY, 16); + }); + + // set up keyboard entropy capture + jQuery().keypress(function(e) { + _ctx.collectInt(e.charCode, 8); + }); + } +} + +/* Random API */ +if(!forge.random) { + forge.random = _ctx; +} else { + // extend forge.random with _ctx + for(var key in _ctx) { + forge.random[key] = _ctx[key]; + } +} + +// expose spawn PRNG +forge.random.createInstance = spawnPrng; + +module.exports = forge.random; + +})(typeof(jQuery) !== 'undefined' ? jQuery : null); + +})(); + + +/***/ }), + +/***/ 18032: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * RC2 implementation. + * + * @author Stefan Siegl + * + * Copyright (c) 2012 Stefan Siegl + * + * Information on the RC2 cipher is available from RFC #2268, + * http://www.ietf.org/rfc/rfc2268.txt + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(46831); + +var piTable = [ + 0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed, 0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d, + 0xc6, 0x7e, 0x37, 0x83, 0x2b, 0x76, 0x53, 0x8e, 0x62, 0x4c, 0x64, 0x88, 0x44, 0x8b, 0xfb, 0xa2, + 0x17, 0x9a, 0x59, 0xf5, 0x87, 0xb3, 0x4f, 0x13, 0x61, 0x45, 0x6d, 0x8d, 0x09, 0x81, 0x7d, 0x32, + 0xbd, 0x8f, 0x40, 0xeb, 0x86, 0xb7, 0x7b, 0x0b, 0xf0, 0x95, 0x21, 0x22, 0x5c, 0x6b, 0x4e, 0x82, + 0x54, 0xd6, 0x65, 0x93, 0xce, 0x60, 0xb2, 0x1c, 0x73, 0x56, 0xc0, 0x14, 0xa7, 0x8c, 0xf1, 0xdc, + 0x12, 0x75, 0xca, 0x1f, 0x3b, 0xbe, 0xe4, 0xd1, 0x42, 0x3d, 0xd4, 0x30, 0xa3, 0x3c, 0xb6, 0x26, + 0x6f, 0xbf, 0x0e, 0xda, 0x46, 0x69, 0x07, 0x57, 0x27, 0xf2, 0x1d, 0x9b, 0xbc, 0x94, 0x43, 0x03, + 0xf8, 0x11, 0xc7, 0xf6, 0x90, 0xef, 0x3e, 0xe7, 0x06, 0xc3, 0xd5, 0x2f, 0xc8, 0x66, 0x1e, 0xd7, + 0x08, 0xe8, 0xea, 0xde, 0x80, 0x52, 0xee, 0xf7, 0x84, 0xaa, 0x72, 0xac, 0x35, 0x4d, 0x6a, 0x2a, + 0x96, 0x1a, 0xd2, 0x71, 0x5a, 0x15, 0x49, 0x74, 0x4b, 0x9f, 0xd0, 0x5e, 0x04, 0x18, 0xa4, 0xec, + 0xc2, 0xe0, 0x41, 0x6e, 0x0f, 0x51, 0xcb, 0xcc, 0x24, 0x91, 0xaf, 0x50, 0xa1, 0xf4, 0x70, 0x39, + 0x99, 0x7c, 0x3a, 0x85, 0x23, 0xb8, 0xb4, 0x7a, 0xfc, 0x02, 0x36, 0x5b, 0x25, 0x55, 0x97, 0x31, + 0x2d, 0x5d, 0xfa, 0x98, 0xe3, 0x8a, 0x92, 0xae, 0x05, 0xdf, 0x29, 0x10, 0x67, 0x6c, 0xba, 0xc9, + 0xd3, 0x00, 0xe6, 0xcf, 0xe1, 0x9e, 0xa8, 0x2c, 0x63, 0x16, 0x01, 0x3f, 0x58, 0xe2, 0x89, 0xa9, + 0x0d, 0x38, 0x34, 0x1b, 0xab, 0x33, 0xff, 0xb0, 0xbb, 0x48, 0x0c, 0x5f, 0xb9, 0xb1, 0xcd, 0x2e, + 0xc5, 0xf3, 0xdb, 0x47, 0xe5, 0xa5, 0x9c, 0x77, 0x0a, 0xa6, 0x20, 0x68, 0xfe, 0x7f, 0xc1, 0xad +]; + +var s = [1, 2, 3, 5]; + +/** + * Rotate a word left by given number of bits. + * + * Bits that are shifted out on the left are put back in on the right + * hand side. + * + * @param word The word to shift left. + * @param bits The number of bits to shift by. + * @return The rotated word. + */ +var rol = function(word, bits) { + return ((word << bits) & 0xffff) | ((word & 0xffff) >> (16 - bits)); +}; + +/** + * Rotate a word right by given number of bits. + * + * Bits that are shifted out on the right are put back in on the left + * hand side. + * + * @param word The word to shift right. + * @param bits The number of bits to shift by. + * @return The rotated word. + */ +var ror = function(word, bits) { + return ((word & 0xffff) >> bits) | ((word << (16 - bits)) & 0xffff); +}; + +/* RC2 API */ +module.exports = forge.rc2 = forge.rc2 || {}; + +/** + * Perform RC2 key expansion as per RFC #2268, section 2. + * + * @param key variable-length user key (between 1 and 128 bytes) + * @param effKeyBits number of effective key bits (default: 128) + * @return the expanded RC2 key (ByteBuffer of 128 bytes) + */ +forge.rc2.expandKey = function(key, effKeyBits) { + if(typeof key === 'string') { + key = forge.util.createBuffer(key); + } + effKeyBits = effKeyBits || 128; + + /* introduce variables that match the names used in RFC #2268 */ + var L = key; + var T = key.length(); + var T1 = effKeyBits; + var T8 = Math.ceil(T1 / 8); + var TM = 0xff >> (T1 & 0x07); + var i; + + for(i = T; i < 128; i++) { + L.putByte(piTable[(L.at(i - 1) + L.at(i - T)) & 0xff]); + } + + L.setAt(128 - T8, piTable[L.at(128 - T8) & TM]); + + for(i = 127 - T8; i >= 0; i--) { + L.setAt(i, piTable[L.at(i + 1) ^ L.at(i + T8)]); + } + + return L; +}; + +/** + * Creates a RC2 cipher object. + * + * @param key the symmetric key to use (as base for key generation). + * @param bits the number of effective key bits. + * @param encrypt false for decryption, true for encryption. + * + * @return the cipher. + */ +var createCipher = function(key, bits, encrypt) { + var _finish = false, _input = null, _output = null, _iv = null; + var mixRound, mashRound; + var i, j, K = []; + + /* Expand key and fill into K[] Array */ + key = forge.rc2.expandKey(key, bits); + for(i = 0; i < 64; i++) { + K.push(key.getInt16Le()); + } + + if(encrypt) { /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * In OAuth2Client, the result has the form: - * { Authorization: 'Bearer ' } - * @param url The optional url being authorized - */ - async getRequestHeaders(url) { - const headers = (await this.getRequestMetadataAsync(url)).headers; - return headers; - } - async getRequestMetadataAsync( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - url) { - const thisCreds = this.credentials; - if (!thisCreds.access_token && - !thisCreds.refresh_token && - !this.apiKey && - !this.refreshHandler) { - throw new Error('No access, refresh token, API key or refresh handler callback is set.'); - } - if (thisCreds.access_token && !this.isTokenExpiring()) { - thisCreds.token_type = thisCreds.token_type || 'Bearer'; - const headers = { - Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers) }; - } - // If refreshHandler exists, call processAndValidateRefreshHandler(). - if (this.refreshHandler) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - const headers = { - Authorization: 'Bearer ' + this.credentials.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers) }; - } - } - if (this.apiKey) { - return { headers: { 'X-Goog-Api-Key': this.apiKey } }; - } - let r = null; - let tokens = null; - try { - r = await this.refreshToken(thisCreds.refresh_token); - tokens = r.tokens; - } - catch (err) { - const e = err; - if (e.response && - (e.response.status === 403 || e.response.status === 404)) { - e.message = `Could not refresh access token: ${e.message}`; - } - throw e; - } - const credentials = this.credentials; - credentials.token_type = credentials.token_type || 'Bearer'; - tokens.refresh_token = credentials.refresh_token; - this.credentials = tokens; - const headers = { - Authorization: credentials.token_type + ' ' + tokens.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; - } + * Perform one mixing round "in place". + * + * @param R Array of four words to perform mixing on. + */ + mixRound = function(R) { + for(i = 0; i < 4; i++) { + R[i] += K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + + ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); + R[i] = rol(R[i], s[i]); + j++; + } + }; + /** - * Generates an URL to revoke the given token. - * @param token The existing token to be revoked. + * Perform one mashing round "in place". + * + * @param R Array of four words to perform mashing on. */ - static getRevokeTokenUrl(token) { - const parameters = querystring.stringify({ token }); - return `${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${parameters}`; - } - revokeToken(token, callback) { - const opts = { - url: OAuth2Client.getRevokeTokenUrl(token), - method: 'POST', - }; - if (callback) { - this.transporter - .request(opts) - .then(r => callback(null, r), callback); - } - else { - return this.transporter.request(opts); - } - } - revokeCredentials(callback) { - if (callback) { - this.revokeCredentialsAsync().then(res => callback(null, res), callback); - } - else { - return this.revokeCredentialsAsync(); - } - } - async revokeCredentialsAsync() { - const token = this.credentials.access_token; - this.credentials = {}; - if (token) { - return this.revokeToken(token); - } - else { - throw new Error('No access token to revoke.'); - } - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); - } - else { - return this.requestAsync(opts); - } - } - async requestAsync(opts, retry = false) { - let r2; - try { - const r = await this.getRequestMetadataAsync(opts.url); - opts.headers = opts.headers || {}; - if (r.headers && r.headers['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; - } - if (r.headers && r.headers.Authorization) { - opts.headers.Authorization = r.headers.Authorization; - } - if (this.apiKey) { - opts.headers['X-Goog-Api-Key'] = this.apiKey; - } - r2 = await this.transporter.request(opts); - } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - An access_token and refresh_token were available, but either no - // expiry_date was available or the forceRefreshOnFailure flag is set. - // The absent expiry_date case can happen when developers stash the - // access_token and refresh_token for later use, but the access_token - // fails on the first try because it's expired. Some developers may - // choose to enable forceRefreshOnFailure to mitigate time-related - // errors. - // Or the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - No refresh_token was available - // - An access_token and a refreshHandler callback were available, but - // either no expiry_date was available or the forceRefreshOnFailure - // flag is set. The access_token fails on the first try because it's - // expired. Some developers may choose to enable forceRefreshOnFailure - // to mitigate time-related errors. - const mayRequireRefresh = this.credentials && - this.credentials.access_token && - this.credentials.refresh_token && - (!this.credentials.expiry_date || this.forceRefreshOnFailure); - const mayRequireRefreshWithNoRefreshToken = this.credentials && - this.credentials.access_token && - !this.credentials.refresh_token && - (!this.credentials.expiry_date || this.forceRefreshOnFailure) && - this.refreshHandler; - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!retry && isAuthErr && !isReadableStream && mayRequireRefresh) { - await this.refreshAccessTokenAsync(); - return this.requestAsync(opts, true); - } - else if (!retry && - isAuthErr && - !isReadableStream && - mayRequireRefreshWithNoRefreshToken) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - } - return this.requestAsync(opts, true); - } - } - throw e; - } - return r2; - } - verifyIdToken(options, callback) { - // This function used to accept two arguments instead of an options object. - // Check the types to help users upgrade with less pain. - // This check can be removed after a 2.0 release. - if (callback && typeof callback !== 'function') { - throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); - } - if (callback) { - this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); - } - else { - return this.verifyIdTokenAsync(options); - } - } - async verifyIdTokenAsync(options) { - if (!options.idToken) { - throw new Error('The verifyIdToken method requires an ID Token'); - } - const response = await this.getFederatedSignonCertsAsync(); - const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, OAuth2Client.ISSUERS_, options.maxExpiry); - return login; - } + mashRound = function(R) { + for(i = 0; i < 4; i++) { + R[i] += K[R[(i + 3) % 4] & 63]; + } + }; + } else { /** - * Obtains information about the provisioned access token. Especially useful - * if you want to check the scopes that were provisioned to a given token. + * Perform one r-mixing round "in place". * - * @param accessToken Required. The Access Token for which you want to get - * user info. + * @param R Array of four words to perform mixing on. */ - async getTokenInfo(accessToken) { - const { data } = await this.transporter.request({ - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - Authorization: `Bearer ${accessToken}`, - }, - url: OAuth2Client.GOOGLE_TOKEN_INFO_URL, - }); - const info = Object.assign({ - expiry_date: new Date().getTime() + data.expires_in * 1000, - scopes: data.scope.split(' '), - }, data); - delete info.expires_in; - delete info.scope; - return info; - } - getFederatedSignonCerts(callback) { - if (callback) { - this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); - } - else { - return this.getFederatedSignonCertsAsync(); - } - } - async getFederatedSignonCertsAsync() { - const nowTime = new Date().getTime(); - const format = crypto_1.hasBrowserCrypto() - ? CertificateFormat.JWK - : CertificateFormat.PEM; - if (this.certificateExpiry && - nowTime < this.certificateExpiry.getTime() && - this.certificateCacheFormat === format) { - return { certs: this.certificateCache, format }; - } - let res; - let url; - switch (format) { - case CertificateFormat.PEM: - url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_; - break; - case CertificateFormat.JWK: - url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_; - break; - default: - throw new Error(`Unsupported certificate format ${format}`); - } - try { - res = await this.transporter.request({ url }); - } - catch (e) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - throw e; - } - const cacheControl = res ? res.headers['cache-control'] : undefined; - let cacheAge = -1; - if (cacheControl) { - const pattern = new RegExp('max-age=([0-9]*)'); - const regexResult = pattern.exec(cacheControl); - if (regexResult && regexResult.length === 2) { - // Cache results with max-age (in seconds) - cacheAge = Number(regexResult[1]) * 1000; // milliseconds - } - } - let certificates = {}; - switch (format) { - case CertificateFormat.PEM: - certificates = res.data; - break; - case CertificateFormat.JWK: - for (const key of res.data.keys) { - certificates[key.kid] = key; - } - break; - default: - throw new Error(`Unsupported certificate format ${format}`); + mixRound = function(R) { + for(i = 3; i >= 0; i--) { + R[i] = ror(R[i], s[i]); + R[i] -= K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + + ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); + j--; + } + }; + + /** + * Perform one r-mashing round "in place". + * + * @param R Array of four words to perform mashing on. + */ + mashRound = function(R) { + for(i = 3; i >= 0; i--) { + R[i] -= K[R[(i + 3) % 4] & 63]; + } + }; + } + + /** + * Run the specified cipher execution plan. + * + * This function takes four words from the input buffer, applies the IV on + * it (if requested) and runs the provided execution plan. + * + * The plan must be put together in form of a array of arrays. Where the + * outer one is simply a list of steps to perform and the inner one needs + * to have two elements: the first one telling how many rounds to perform, + * the second one telling what to do (i.e. the function to call). + * + * @param {Array} plan The plan to execute. + */ + var runPlan = function(plan) { + var R = []; + + /* Get data from input buffer and fill the four words into R */ + for(i = 0; i < 4; i++) { + var val = _input.getInt16Le(); + + if(_iv !== null) { + if(encrypt) { + /* We're encrypting, apply the IV first. */ + val ^= _iv.getInt16Le(); + } else { + /* We're decryption, keep cipher text for next block. */ + _iv.putInt16Le(val); } - const now = new Date(); - this.certificateExpiry = - cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); - this.certificateCache = certificates; - this.certificateCacheFormat = format; - return { certs: certificates, format, res }; + } + + R.push(val & 0xffff); } - getIapPublicKeys(callback) { - if (callback) { - this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); - } - else { - return this.getIapPublicKeysAsync(); - } + + /* Reset global "j" variable as per spec. */ + j = encrypt ? 0 : 63; + + /* Run execution plan. */ + for(var ptr = 0; ptr < plan.length; ptr++) { + for(var ctr = 0; ctr < plan[ptr][0]; ctr++) { + plan[ptr][1](R); + } } - async getIapPublicKeysAsync() { - let res; - const url = OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_; - try { - res = await this.transporter.request({ url }); - } - catch (e) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - throw e; + + /* Write back result to output buffer. */ + for(i = 0; i < 4; i++) { + if(_iv !== null) { + if(encrypt) { + /* We're encrypting in CBC-mode, feed back encrypted bytes into + IV buffer to carry it forward to next block. */ + _iv.putInt16Le(R[i]); + } else { + R[i] ^= _iv.getInt16Le(); } - return { pubkeys: res.data, res }; - } - verifySignedJwtWithCerts() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); + } + + _output.putInt16Le(R[i]); } + }; + + /* Create cipher object */ + var cipher = null; + cipher = { /** - * Verify the id token is signed with the correct certificate - * and is from the correct audience. - * @param jwt The jwt to verify (The ID Token in this case). - * @param certs The array of certs to test the jwt against. - * @param requiredAudience The audience to test the jwt against. - * @param issuers The allowed issuers of the jwt (Optional). - * @param maxExpiry The max expiry the certificate can be (Optional). - * @return Returns a promise resolving to LoginTicket on verification. + * Starts or restarts the encryption or decryption process, whichever + * was previously configured. + * + * To use the cipher in CBC mode, iv may be given either as a string + * of bytes, or as a byte buffer. For ECB mode, give null as iv. + * + * @param iv the initialization vector to use, null for ECB mode. + * @param output the output the buffer to write to, null to create one. */ - async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { - const crypto = crypto_1.createCrypto(); - if (!maxExpiry) { - maxExpiry = OAuth2Client.MAX_TOKEN_LIFETIME_SECS_; - } - const segments = jwt.split('.'); - if (segments.length !== 3) { - throw new Error('Wrong number of segments in token: ' + jwt); - } - const signed = segments[0] + '.' + segments[1]; - let signature = segments[2]; - let envelope; - let payload; - try { - envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); - } - catch (err) { - err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; - throw err; - } - if (!envelope) { - throw new Error("Can't parse token envelope: " + segments[0]); - } - try { - payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); - } - catch (err) { - err.message = `Can't parse token payload '${segments[0]}`; - throw err; - } - if (!payload) { - throw new Error("Can't parse token payload: " + segments[1]); - } - if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { - // If this is not present, then there's no reason to attempt verification - throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); - } - const cert = certs[envelope.kid]; - if (envelope.alg === 'ES256') { - signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); - } - const verified = await crypto.verify(cert, signed, signature); - if (!verified) { - throw new Error('Invalid token signature: ' + jwt); - } - if (!payload.iat) { - throw new Error('No issue time in token: ' + JSON.stringify(payload)); - } - if (!payload.exp) { - throw new Error('No expiration time in token: ' + JSON.stringify(payload)); - } - const iat = Number(payload.iat); - if (isNaN(iat)) - throw new Error('iat field using invalid format'); - const exp = Number(payload.exp); - if (isNaN(exp)) - throw new Error('exp field using invalid format'); - const now = new Date().getTime() / 1000; - if (exp >= now + maxExpiry) { - throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); - } - const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; - const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; - if (now < earliest) { - throw new Error('Token used too early, ' + - now + - ' < ' + - earliest + - ': ' + - JSON.stringify(payload)); - } - if (now > latest) { - throw new Error('Token used too late, ' + - now + - ' > ' + - latest + - ': ' + - JSON.stringify(payload)); - } - if (issuers && issuers.indexOf(payload.iss) < 0) { - throw new Error('Invalid issuer, expected one of [' + - issuers + - '], but got ' + - payload.iss); - } - // Check the audience matches if we have one - if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { - const aud = payload.aud; - let audVerified = false; - // If the requiredAudience is an array, check if it contains token - // audience - if (requiredAudience.constructor === Array) { - audVerified = requiredAudience.indexOf(aud) > -1; - } - else { - audVerified = aud === requiredAudience; - } - if (!audVerified) { - throw new Error('Wrong recipient, payload audience != requiredAudience'); - } + start: function(iv, output) { + if(iv) { + /* CBC mode */ + if(typeof iv === 'string') { + iv = forge.util.createBuffer(iv); } - return new loginticket_1.LoginTicket(envelope, payload); - } + } + + _finish = false; + _input = forge.util.createBuffer(); + _output = output || new forge.util.createBuffer(); + _iv = iv; + + cipher.output = _output; + }, + /** - * Returns a promise that resolves with AccessTokenResponse type if - * refreshHandler is defined. - * If not, nothing is returned. + * Updates the next block. + * + * @param input the buffer to read from. */ - async processAndValidateRefreshHandler() { - if (this.refreshHandler) { - const accessTokenResponse = await this.refreshHandler(); - if (!accessTokenResponse.access_token) { - throw new Error('No access token is returned by the refreshHandler callback.'); - } - return accessTokenResponse; - } - return; - } + update: function(input) { + if(!_finish) { + // not finishing, so fill the input buffer with more input + _input.putBuffer(input); + } + + while(_input.length() >= 8) { + runPlan([ + [ 5, mixRound ], + [ 1, mashRound ], + [ 6, mixRound ], + [ 1, mashRound ], + [ 5, mixRound ] + ]); + } + }, + /** - * Returns true if a token is expired or will expire within - * eagerRefreshThresholdMillismilliseconds. - * If there is no expiry time, assumes the token is not expired or expiring. + * Finishes encrypting or decrypting. + * + * @param pad a padding function to use, null for PKCS#7 padding, + * signature(blockSize, buffer, decrypt). + * + * @return true if successful, false on error. */ - isTokenExpiring() { - const expiryDate = this.credentials.expiry_date; - return expiryDate - ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis - : false; + finish: function(pad) { + var rval = true; + + if(encrypt) { + if(pad) { + rval = pad(8, _input, !encrypt); + } else { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (_input.length() === 8) ? 8 : (8 - _input.length()); + _input.fillWithByte(padding, padding); + } + } + + if(rval) { + // do final update + _finish = true; + cipher.update(); + } + + if(!encrypt) { + // check for error: input data not a multiple of block size + rval = (_input.length() === 0); + if(rval) { + if(pad) { + rval = pad(8, _output, !encrypt); + } else { + // ensure padding byte count is valid + var len = _output.length(); + var count = _output.at(len - 1); + + if(count > len) { + rval = false; + } else { + // trim off padding bytes + _output.truncate(count); + } + } + } + } + + return rval; } -} -exports.OAuth2Client = OAuth2Client; -OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; + }; + + return cipher; +}; + /** - * The base URL for auth endpoints. + * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the + * given symmetric key. The output will be stored in the 'output' member + * of the returned cipher. + * + * The key and iv may be given as a string of bytes or a byte buffer. + * The cipher is initialized to use 128 effective key bits. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * + * @return the cipher. */ -OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth'; +forge.rc2.startEncrypting = function(key, iv, output) { + var cipher = forge.rc2.createEncryptionCipher(key, 128); + cipher.start(iv, output); + return cipher; +}; + /** - * The base endpoint for token retrieval. + * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the + * given symmetric key. + * + * The key may be given as a string of bytes or a byte buffer. + * + * To start encrypting call start() on the cipher with an iv and optional + * output buffer. + * + * @param key the symmetric key to use. + * + * @return the cipher. */ -OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_ = 'https://oauth2.googleapis.com/token'; +forge.rc2.createEncryptionCipher = function(key, bits) { + return createCipher(key, bits, true); +}; + /** - * The base endpoint to revoke tokens. + * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the + * given symmetric key. The output will be stored in the 'output' member + * of the returned cipher. + * + * The key and iv may be given as a string of bytes or a byte buffer. + * The cipher is initialized to use 128 effective key bits. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * + * @return the cipher. */ -OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ = 'https://oauth2.googleapis.com/revoke'; +forge.rc2.startDecrypting = function(key, iv, output) { + var cipher = forge.rc2.createDecryptionCipher(key, 128); + cipher.start(iv, output); + return cipher; +}; + /** - * Google Sign on certificates in PEM format. + * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the + * given symmetric key. + * + * The key may be given as a string of bytes or a byte buffer. + * + * To start decrypting call start() on the cipher with an iv and optional + * output buffer. + * + * @param key the symmetric key to use. + * + * @return the cipher. */ -OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v1/certs'; +forge.rc2.createDecryptionCipher = function(key, bits) { + return createCipher(key, bits, false); +}; + + +/***/ }), + +/***/ 56361: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** - * Google Sign on certificates in JWK format. + * Javascript implementation of basic RSA algorithms. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * + * The only algorithm currently supported for PKI is RSA. + * + * An RSA key is often stored in ASN.1 DER format. The SubjectPublicKeyInfo + * ASN.1 structure is composed of an algorithm of type AlgorithmIdentifier + * and a subjectPublicKey of type bit string. + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of RSA, there aren't any. + * + * SubjectPublicKeyInfo ::= SEQUENCE { + * algorithm AlgorithmIdentifier, + * subjectPublicKey BIT STRING + * } + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * For an RSA public key, the subjectPublicKey is: + * + * RSAPublicKey ::= SEQUENCE { + * modulus INTEGER, -- n + * publicExponent INTEGER -- e + * } + * + * PrivateKeyInfo ::= SEQUENCE { + * version Version, + * privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, + * privateKey PrivateKey, + * attributes [0] IMPLICIT Attributes OPTIONAL + * } + * + * Version ::= INTEGER + * PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier + * PrivateKey ::= OCTET STRING + * Attributes ::= SET OF Attribute + * + * An RSA private key as the following structure: + * + * RSAPrivateKey ::= SEQUENCE { + * version Version, + * modulus INTEGER, -- n + * publicExponent INTEGER, -- e + * privateExponent INTEGER, -- d + * prime1 INTEGER, -- p + * prime2 INTEGER, -- q + * exponent1 INTEGER, -- d mod (p-1) + * exponent2 INTEGER, -- d mod (q-1) + * coefficient INTEGER -- (inverse of q) mod p + * } + * + * Version ::= INTEGER + * + * The OID for the RSA key algorithm is: 1.2.840.113549.1.1.1 */ -OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v3/certs'; +var forge = __nccwpck_require__(40080); +__nccwpck_require__(87878); +__nccwpck_require__(30292); +__nccwpck_require__(40934); +__nccwpck_require__(32905); +__nccwpck_require__(37240); +__nccwpck_require__(87088); +__nccwpck_require__(46831); + +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} + +var _crypto = forge.util.isNodejs ? __nccwpck_require__(76982) : null; + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +// shortcut for util API +var util = forge.util; + +/* + * RSA encryption and decryption, see RFC 2313. + */ +forge.pki = forge.pki || {}; +module.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; +var pki = forge.pki; + +// for finding primes, which are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 +var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; + +// validator for a PrivateKeyInfo structure +var privateKeyValidator = { + // PrivateKeyInfo + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'PrivateKeyInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // privateKeyAlgorithm + name: 'PrivateKeyInfo.privateKeyAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'privateKeyOid' + }] + }, { + // PrivateKey + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'privateKey' + }] +}; + +// validator for an RSA private key +var rsaPrivateKeyValidator = { + // RSAPrivateKey + name: 'RSAPrivateKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'RSAPrivateKey.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // modulus (n) + name: 'RSAPrivateKey.modulus', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyModulus' + }, { + // publicExponent (e) + name: 'RSAPrivateKey.publicExponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPublicExponent' + }, { + // privateExponent (d) + name: 'RSAPrivateKey.privateExponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrivateExponent' + }, { + // prime1 (p) + name: 'RSAPrivateKey.prime1', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrime1' + }, { + // prime2 (q) + name: 'RSAPrivateKey.prime2', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrime2' + }, { + // exponent1 (d mod (p-1)) + name: 'RSAPrivateKey.exponent1', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyExponent1' + }, { + // exponent2 (d mod (q-1)) + name: 'RSAPrivateKey.exponent2', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyExponent2' + }, { + // coefficient ((inverse of q) mod p) + name: 'RSAPrivateKey.coefficient', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyCoefficient' + }] +}; + +// validator for an RSA public key +var rsaPublicKeyValidator = { + // RSAPublicKey + name: 'RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // modulus (n) + name: 'RSAPublicKey.modulus', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'publicKeyModulus' + }, { + // publicExponent (e) + name: 'RSAPublicKey.exponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'publicKeyExponent' + }] +}; + +// validator for an SubjectPublicKeyInfo structure +// Note: Currently only works with an RSA public key +var publicKeyValidator = forge.pki.rsa.publicKeyValidator = { + name: 'SubjectPublicKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'subjectPublicKeyInfo', + value: [{ + name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'publicKeyOid' + }] + }, { + // subjectPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + value: [{ + // RSAPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'rsaPublicKey' + }] + }] +}; + +// validator for a DigestInfo structure +var digestInfoValidator = { + name: 'DigestInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'DigestInfo.DigestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'DigestInfo.DigestAlgorithm.algorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'algorithmIdentifier' + }, { + // NULL parameters + name: 'DigestInfo.DigestAlgorithm.parameters', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.NULL, + // captured only to check existence for md2 and md5 + capture: 'parameters', + optional: true, + constructed: false + }] + }, { + // digest + name: 'DigestInfo.digest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'digest' + }] +}; + /** - * Google Sign on certificates in JWK format. + * Wrap digest in DigestInfo object. + * + * This function implements EMSA-PKCS1-v1_5-ENCODE as per RFC 3447. + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * Digest ::= OCTET STRING + * + * @param md the message digest object with the hash to sign. + * + * @return the encoded message (ready for RSA encryption) */ -OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_ = 'https://www.gstatic.com/iap/verify/public_key'; +var emsaPkcs1v15encode = function(md) { + // get the oid for the algorithm + var oid; + if(md.algorithm in pki.oids) { + oid = pki.oids[md.algorithm]; + } else { + var error = new Error('Unknown message digest algorithm.'); + error.algorithm = md.algorithm; + throw error; + } + var oidBytes = asn1.oidToDer(oid).getBytes(); + + // create the digest info + var digestInfo = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var digestAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + digestAlgorithm.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, oidBytes)); + digestAlgorithm.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')); + var digest = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, + false, md.digest().getBytes()); + digestInfo.value.push(digestAlgorithm); + digestInfo.value.push(digest); + + // encode digest info + return asn1.toDer(digestInfo).getBytes(); +}; + +/** + * Performs x^c mod n (RSA encryption or decryption operation). + * + * @param x the number to raise and mod. + * @param key the key to use. + * @param pub true if the key is public, false if private. + * + * @return the result of x^c mod n. + */ +var _modPow = function(x, key, pub) { + if(pub) { + return x.modPow(key.e, key.n); + } + + if(!key.p || !key.q) { + // allow calculation without CRT params (slow) + return x.modPow(key.d, key.n); + } + + // pre-compute dP, dQ, and qInv if necessary + if(!key.dP) { + key.dP = key.d.mod(key.p.subtract(BigInteger.ONE)); + } + if(!key.dQ) { + key.dQ = key.d.mod(key.q.subtract(BigInteger.ONE)); + } + if(!key.qInv) { + key.qInv = key.q.modInverse(key.p); + } + + /* Chinese remainder theorem (CRT) states: + + Suppose n1, n2, ..., nk are positive integers which are pairwise + coprime (n1 and n2 have no common factors other than 1). For any + integers x1, x2, ..., xk there exists an integer x solving the + system of simultaneous congruences (where ~= means modularly + congruent so a ~= b mod n means a mod n = b mod n): + + x ~= x1 mod n1 + x ~= x2 mod n2 + ... + x ~= xk mod nk + + This system of congruences has a single simultaneous solution x + between 0 and n - 1. Furthermore, each xk solution and x itself + is congruent modulo the product n = n1*n2*...*nk. + So x1 mod n = x2 mod n = xk mod n = x mod n. + + The single simultaneous solution x can be solved with the following + equation: + + x = sum(xi*ri*si) mod n where ri = n/ni and si = ri^-1 mod ni. + + Where x is less than n, xi = x mod ni. + + For RSA we are only concerned with k = 2. The modulus n = pq, where + p and q are coprime. The RSA decryption algorithm is: + + y = x^d mod n + + Given the above: + + x1 = x^d mod p + r1 = n/p = q + s1 = q^-1 mod p + x2 = x^d mod q + r2 = n/q = p + s2 = p^-1 mod q + + So y = (x1r1s1 + x2r2s2) mod n + = ((x^d mod p)q(q^-1 mod p) + (x^d mod q)p(p^-1 mod q)) mod n + + According to Fermat's Little Theorem, if the modulus P is prime, + for any integer A not evenly divisible by P, A^(P-1) ~= 1 mod P. + Since A is not divisible by P it follows that if: + N ~= M mod (P - 1), then A^N mod P = A^M mod P. Therefore: + + A^N mod P = A^(M mod (P - 1)) mod P. (The latter takes less effort + to calculate). In order to calculate x^d mod p more quickly the + exponent d mod (p - 1) is stored in the RSA private key (the same + is done for x^d mod q). These values are referred to as dP and dQ + respectively. Therefore we now have: + + y = ((x^dP mod p)q(q^-1 mod p) + (x^dQ mod q)p(p^-1 mod q)) mod n + + Since we'll be reducing x^dP by modulo p (same for q) we can also + reduce x by p (and q respectively) before hand. Therefore, let + + xp = ((x mod p)^dP mod p), and + xq = ((x mod q)^dQ mod q), yielding: + + y = (xp*q*(q^-1 mod p) + xq*p*(p^-1 mod q)) mod n + + This can be further reduced to a simple algorithm that only + requires 1 inverse (the q inverse is used) to be used and stored. + The algorithm is called Garner's algorithm. If qInv is the + inverse of q, we simply calculate: + + y = (qInv*(xp - xq) mod p) * q + xq + + However, there are two further complications. First, we need to + ensure that xp > xq to prevent signed BigIntegers from being used + so we add p until this is true (since we will be mod'ing with + p anyway). Then, there is a known timing attack on algorithms + using the CRT. To mitigate this risk, "cryptographic blinding" + should be used. This requires simply generating a random number r + between 0 and n-1 and its inverse and multiplying x by r^e before + calculating y and then multiplying y by r^-1 afterwards. Note that + r must be coprime with n (gcd(r, n) === 1) in order to have an + inverse. + */ + + // cryptographic blinding + var r; + do { + r = new BigInteger( + forge.util.bytesToHex(forge.random.getBytes(key.n.bitLength() / 8)), + 16); + } while(r.compareTo(key.n) >= 0 || !r.gcd(key.n).equals(BigInteger.ONE)); + x = x.multiply(r.modPow(key.e, key.n)).mod(key.n); + + // calculate xp and xq + var xp = x.mod(key.p).modPow(key.dP, key.p); + var xq = x.mod(key.q).modPow(key.dQ, key.q); + + // xp must be larger than xq to avoid signed bit usage + while(xp.compareTo(xq) < 0) { + xp = xp.add(key.p); + } + + // do last step + var y = xp.subtract(xq) + .multiply(key.qInv).mod(key.p) + .multiply(key.q).add(xq); + + // remove effect of random for cryptographic blinding + y = y.multiply(r.modInverse(key.n)).mod(key.n); + + return y; +}; + /** - * Clock skew - five minutes in seconds + * NOTE: THIS METHOD IS DEPRECATED, use 'sign' on a private key object or + * 'encrypt' on a public key object instead. + * + * Performs RSA encryption. + * + * The parameter bt controls whether to put padding bytes before the + * message passed in. Set bt to either true or false to disable padding + * completely (in order to handle e.g. EMSA-PSS encoding separately before), + * signaling whether the encryption operation is a public key operation + * (i.e. encrypting data) or not, i.e. private key operation (data signing). + * + * For PKCS#1 v1.5 padding pass in the block type to use, i.e. either 0x01 + * (for signing) or 0x02 (for encryption). The key operation mode (private + * or public) is derived from this flag in that case). + * + * @param m the message to encrypt as a byte string. + * @param key the RSA key to use. + * @param bt for PKCS#1 v1.5 padding, the block type to use + * (0x01 for private key, 0x02 for public), + * to disable padding: true = public key, false = private key. + * + * @return the encrypted bytes as a string. */ -OAuth2Client.CLOCK_SKEW_SECS_ = 300; +pki.rsa.encrypt = function(m, key, bt) { + var pub = bt; + var eb; + + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + if(bt !== false && bt !== true) { + // legacy, default to PKCS#1 v1.5 padding + pub = (bt === 0x02); + eb = _encodePkcs1_v1_5(m, key, bt); + } else { + eb = forge.util.createBuffer(); + eb.putBytes(m); + } + + // load encryption block as big integer 'x' + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var x = new BigInteger(eb.toHex(), 16); + + // do RSA encryption + var y = _modPow(x, key, pub); + + // convert y into the encrypted data byte string, if y is shorter in + // bytes than k, then prepend zero bytes to fill up ed + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var yhex = y.toString(16); + var ed = forge.util.createBuffer(); + var zeros = k - Math.ceil(yhex.length / 2); + while(zeros > 0) { + ed.putByte(0x00); + --zeros; + } + ed.putBytes(forge.util.hexToBytes(yhex)); + return ed.getBytes(); +}; + /** - * Max Token Lifetime is one day in seconds + * NOTE: THIS METHOD IS DEPRECATED, use 'decrypt' on a private key object or + * 'verify' on a public key object instead. + * + * Performs RSA decryption. + * + * The parameter ml controls whether to apply PKCS#1 v1.5 padding + * or not. Set ml = false to disable padding removal completely + * (in order to handle e.g. EMSA-PSS later on) and simply pass back + * the RSA encryption block. + * + * @param ed the encrypted data to decrypt in as a byte string. + * @param key the RSA key to use. + * @param pub true for a public key operation, false for private. + * @param ml the message length, if known, false to disable padding. + * + * @return the decrypted message as a byte string. */ -OAuth2Client.MAX_TOKEN_LIFETIME_SECS_ = 86400; +pki.rsa.decrypt = function(ed, key, pub, ml) { + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + // error if the length of the encrypted data ED is not k + if(ed.length !== k) { + var error = new Error('Encrypted message length is invalid.'); + error.length = ed.length; + error.expected = k; + throw error; + } + + // convert encrypted data into a big integer + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var y = new BigInteger(forge.util.createBuffer(ed).toHex(), 16); + + // y must be less than the modulus or it wasn't the result of + // a previous mod operation (encryption) using that modulus + if(y.compareTo(key.n) >= 0) { + throw new Error('Encrypted message is invalid.'); + } + + // do RSA decryption + var x = _modPow(y, key, pub); + + // create the encryption block, if x is shorter in bytes than k, then + // prepend zero bytes to fill up eb + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var xhex = x.toString(16); + var eb = forge.util.createBuffer(); + var zeros = k - Math.ceil(xhex.length / 2); + while(zeros > 0) { + eb.putByte(0x00); + --zeros; + } + eb.putBytes(forge.util.hexToBytes(xhex)); + + if(ml !== false) { + // legacy, default to PKCS#1 v1.5 padding + return _decodePkcs1_v1_5(eb.getBytes(), key, pub); + } + + // return message + return eb.getBytes(); +}; + /** - * The allowed oauth token issuers. + * Creates an RSA key-pair generation state object. It is used to allow + * key-generation to be performed in steps. It also allows for a UI to + * display progress updates. + * + * @param bits the size for the private key in bits, defaults to 2048. + * @param e the public exponent to use, defaults to 65537 (0x10001). + * @param [options] the options to use. + * prng a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + * algorithm the algorithm to use (default: 'PRIMEINC'). + * + * @return the state object to use to generate the key-pair. */ -OAuth2Client.ISSUERS_ = [ - 'accounts.google.com', - 'https://accounts.google.com', -]; -//# sourceMappingURL=oauth2client.js.map +pki.rsa.createKeyPairGenerationState = function(bits, e, options) { + // TODO: migrate step-based prime generation code to forge.prime -/***/ }), + // set default bits + if(typeof(bits) === 'string') { + bits = parseInt(bits, 10); + } + bits = bits || 2048; -/***/ 85909: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // create prng with api that matches BigInteger secure random + options = options || {}; + var prng = options.prng || forge.random; + var rng = { + // x is an array to fill with bytes + nextBytes: function(x) { + var b = prng.getBytesSync(x.length); + for(var i = 0; i < x.length; ++i) { + x[i] = b.charCodeAt(i); + } + } + }; -"use strict"; + var algorithm = options.algorithm || 'PRIMEINC'; + + // create PRIMEINC algorithm state + var rval; + if(algorithm === 'PRIMEINC') { + rval = { + algorithm: algorithm, + state: 0, + bits: bits, + rng: rng, + eInt: e || 65537, + e: new BigInteger(null), + p: null, + q: null, + qBits: bits >> 1, + pBits: bits - (bits >> 1), + pqState: 0, + num: null, + keys: null + }; + rval.e.fromInt(rval.eInt); + } else { + throw new Error('Invalid key generation algorithm: ' + algorithm); + } + + return rval; +}; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getErrorFromOAuthErrorResponse = exports.OAuthClientAuthHandler = void 0; -const querystring = __nccwpck_require__(63477); -const crypto_1 = __nccwpck_require__(17742); -/** List of HTTP methods that accept request bodies. */ -const METHODS_SUPPORTING_REQUEST_BODY = ['PUT', 'POST', 'PATCH']; /** - * Abstract class for handling client authentication in OAuth-based - * operations. - * When request-body client authentication is used, only application/json and - * application/x-www-form-urlencoded content types for HTTP methods that support - * request bodies are supported. + * Attempts to runs the key-generation algorithm for at most n seconds + * (approximately) using the given state. When key-generation has completed, + * the keys will be stored in state.keys. + * + * To use this function to update a UI while generating a key or to prevent + * causing browser lockups/warnings, set "n" to a value other than 0. A + * simple pattern for generating a key and showing a progress indicator is: + * + * var state = pki.rsa.createKeyPairGenerationState(2048); + * var step = function() { + * // step key-generation, run algorithm for 100 ms, repeat + * if(!forge.pki.rsa.stepKeyPairGenerationState(state, 100)) { + * setTimeout(step, 1); + * } else { + * // key-generation complete + * // TODO: turn off progress indicator here + * // TODO: use the generated key-pair in "state.keys" + * } + * }; + * // TODO: turn on progress indicator here + * setTimeout(step, 0); + * + * @param state the state to use. + * @param n the maximum number of milliseconds to run the algorithm for, 0 + * to run the algorithm to completion. + * + * @return true if the key-generation completed, false if not. */ -class OAuthClientAuthHandler { - /** - * Instantiates an OAuth client authentication handler. - * @param clientAuthentication The client auth credentials. - */ - constructor(clientAuthentication) { - this.clientAuthentication = clientAuthentication; - this.crypto = crypto_1.createCrypto(); - } - /** - * Applies client authentication on the OAuth request's headers or POST - * body but does not process the request. - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - * @param bearerToken The optional bearer token to use for authentication. - * When this is used, no client authentication credentials are needed. - */ - applyClientAuthenticationOptions(opts, bearerToken) { - // Inject authenticated header. - this.injectAuthenticatedHeaders(opts, bearerToken); - // Inject authenticated request body. - if (!bearerToken) { - this.injectAuthenticatedRequestBody(opts); +pki.rsa.stepKeyPairGenerationState = function(state, n) { + // set default algorithm if not set + if(!('algorithm' in state)) { + state.algorithm = 'PRIMEINC'; + } + + // TODO: migrate step-based prime generation code to forge.prime + // TODO: abstract as PRIMEINC algorithm + + // do key generation (based on Tom Wu's rsa.js, see jsbn.js license) + // with some minor optimizations and designed to run in steps + + // local state vars + var THIRTY = new BigInteger(null); + THIRTY.fromInt(30); + var deltaIdx = 0; + var op_or = function(x, y) {return x | y;}; + + // keep stepping until time limit is reached or done + var t1 = +new Date(); + var t2; + var total = 0; + while(state.keys === null && (n <= 0 || total < n)) { + // generate p or q + if(state.state === 0) { + /* Note: All primes are of the form: + + 30k+i, for i < 30 and gcd(30, i)=1, where there are 8 values for i + + When we generate a random number, we always align it at 30k + 1. Each + time the number is determined not to be prime we add to get to the + next 'i', eg: if the number was at 30k + 1 we add 6. */ + var bits = (state.p === null) ? state.pBits : state.qBits; + var bits1 = bits - 1; + + // get a random number + if(state.pqState === 0) { + state.num = new BigInteger(bits, state.rng); + // force MSB set + if(!state.num.testBit(bits1)) { + state.num.bitwiseTo( + BigInteger.ONE.shiftLeft(bits1), op_or, state.num); } - } - /** - * Applies client authentication on the request's header if either - * basic authentication or bearer token authentication is selected. - * - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - * @param bearerToken The optional bearer token to use for authentication. - * When this is used, no client authentication credentials are needed. - */ - injectAuthenticatedHeaders(opts, bearerToken) { - var _a; - // Bearer token prioritized higher than basic Auth. - if (bearerToken) { - opts.headers = opts.headers || {}; - Object.assign(opts.headers, { - Authorization: `Bearer ${bearerToken}}`, - }); + // align number on 30k+1 boundary + state.num.dAddOffset(31 - state.num.mod(THIRTY).byteValue(), 0); + deltaIdx = 0; + + ++state.pqState; + } else if(state.pqState === 1) { + // try to make the number a prime + if(state.num.bitLength() > bits) { + // overflow, try again + state.pqState = 0; + // do primality test + } else if(state.num.isProbablePrime( + _getMillerRabinTests(state.num.bitLength()))) { + ++state.pqState; + } else { + // get next potential prime + state.num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); } - else if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'basic') { - opts.headers = opts.headers || {}; - const clientId = this.clientAuthentication.clientId; - const clientSecret = this.clientAuthentication.clientSecret || ''; - const base64EncodedCreds = this.crypto.encodeBase64StringUtf8(`${clientId}:${clientSecret}`); - Object.assign(opts.headers, { - Authorization: `Basic ${base64EncodedCreds}`, - }); + } else if(state.pqState === 2) { + // ensure number is coprime with e + state.pqState = + (state.num.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) === 0) ? 3 : 0; + } else if(state.pqState === 3) { + // store p or q + state.pqState = 0; + if(state.p === null) { + state.p = state.num; + } else { + state.q = state.num; } - } - /** - * Applies client authentication on the request's body if request-body - * client authentication is selected. - * - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - */ - injectAuthenticatedRequestBody(opts) { - var _a; - if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'request-body') { - const method = (opts.method || 'GET').toUpperCase(); - // Inject authenticated request body. - if (METHODS_SUPPORTING_REQUEST_BODY.indexOf(method) !== -1) { - // Get content-type. - let contentType; - const headers = opts.headers || {}; - for (const key in headers) { - if (key.toLowerCase() === 'content-type' && headers[key]) { - contentType = headers[key].toLowerCase(); - break; - } - } - if (contentType === 'application/x-www-form-urlencoded') { - opts.data = opts.data || ''; - const data = querystring.parse(opts.data); - Object.assign(data, { - client_id: this.clientAuthentication.clientId, - client_secret: this.clientAuthentication.clientSecret || '', - }); - opts.data = querystring.stringify(data); - } - else if (contentType === 'application/json') { - opts.data = opts.data || {}; - Object.assign(opts.data, { - client_id: this.clientAuthentication.clientId, - client_secret: this.clientAuthentication.clientSecret || '', - }); - } - else { - throw new Error(`${contentType} content-types are not supported with ` + - `${this.clientAuthentication.confidentialClientType} ` + - 'client authentication'); - } - } - else { - throw new Error(`${method} HTTP method does not support ` + - `${this.clientAuthentication.confidentialClientType} ` + - 'client authentication'); - } + + // advance state if both p and q are ready + if(state.p !== null && state.q !== null) { + ++state.state; } + state.num = null; + } + } else if(state.state === 1) { + // ensure p is larger than q (swap them if not) + if(state.p.compareTo(state.q) < 0) { + state.num = state.p; + state.p = state.q; + state.q = state.num; + } + ++state.state; + } else if(state.state === 2) { + // compute phi: (p - 1)(q - 1) (Euler's totient function) + state.p1 = state.p.subtract(BigInteger.ONE); + state.q1 = state.q.subtract(BigInteger.ONE); + state.phi = state.p1.multiply(state.q1); + ++state.state; + } else if(state.state === 3) { + // ensure e and phi are coprime + if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) === 0) { + // phi and e are coprime, advance + ++state.state; + } else { + // phi and e aren't coprime, so generate a new p and q + state.p = null; + state.q = null; + state.state = 0; + } + } else if(state.state === 4) { + // create n, ensure n is has the right number of bits + state.n = state.p.multiply(state.q); + + // ensure n is right number of bits + if(state.n.bitLength() === state.bits) { + // success, advance + ++state.state; + } else { + // failed, get new q + state.q = null; + state.state = 0; + } + } else if(state.state === 5) { + // set keys + var d = state.e.modInverse(state.phi); + state.keys = { + privateKey: pki.rsa.setPrivateKey( + state.n, state.e, d, state.p, state.q, + d.mod(state.p1), d.mod(state.q1), + state.q.modInverse(state.p)), + publicKey: pki.rsa.setPublicKey(state.n, state.e) + }; } -} -exports.OAuthClientAuthHandler = OAuthClientAuthHandler; + + // update timing + t2 = +new Date(); + total += t2 - t1; + t1 = t2; + } + + return state.keys !== null; +}; + /** - * Converts an OAuth error response to a native JavaScript Error. - * @param resp The OAuth error response to convert to a native Error object. - * @param err The optional original error. If provided, the error properties - * will be copied to the new error. - * @return The converted native Error object. + * Generates an RSA public-private key pair in a single call. + * + * To generate a key-pair in steps (to allow for progress updates and to + * prevent blocking or warnings in slow browsers) then use the key-pair + * generation state functions. + * + * To generate a key-pair asynchronously (either through web-workers, if + * available, or by breaking up the work on the main thread), pass a + * callback function. + * + * @param [bits] the size for the private key in bits, defaults to 2048. + * @param [e] the public exponent to use, defaults to 65537. + * @param [options] options for key-pair generation, if given then 'bits' + * and 'e' must *not* be given: + * bits the size for the private key in bits, (default: 2048). + * e the public exponent to use, (default: 65537 (0x10001)). + * workerScript the worker script URL. + * workers the number of web workers (if supported) to use, + * (default: 2). + * workLoad the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * prng a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". Disables use of native APIs. + * algorithm the algorithm to use (default: 'PRIMEINC'). + * @param [callback(err, keypair)] called once the operation completes. + * + * @return an object with privateKey and publicKey properties. */ -function getErrorFromOAuthErrorResponse(resp, err) { - // Error response. - const errorCode = resp.error; - const errorDescription = resp.error_description; - const errorUri = resp.error_uri; - let message = `Error code ${errorCode}`; - if (typeof errorDescription !== 'undefined') { - message += `: ${errorDescription}`; +pki.rsa.generateKeyPair = function(bits, e, options, callback) { + // (bits), (options), (callback) + if(arguments.length === 1) { + if(typeof bits === 'object') { + options = bits; + bits = undefined; + } else if(typeof bits === 'function') { + callback = bits; + bits = undefined; } - if (typeof errorUri !== 'undefined') { - message += ` - ${errorUri}`; + } else if(arguments.length === 2) { + // (bits, e), (bits, options), (bits, callback), (options, callback) + if(typeof bits === 'number') { + if(typeof e === 'function') { + callback = e; + e = undefined; + } else if(typeof e !== 'number') { + options = e; + e = undefined; + } + } else { + options = bits; + callback = e; + bits = undefined; + e = undefined; } - const newError = new Error(message); - // Copy properties from original error to newly generated error. - if (err) { - const keys = Object.keys(err); - if (err.stack) { - // Copy error.stack if available. - keys.push('stack'); - } - keys.forEach(key => { - // Do not overwrite the message field. - if (key !== 'message') { - Object.defineProperty(newError, key, { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - value: err[key], - writable: false, - enumerable: true, - }); - } - }); + } else if(arguments.length === 3) { + // (bits, e, options), (bits, e, callback), (bits, options, callback) + if(typeof e === 'number') { + if(typeof options === 'function') { + callback = options; + options = undefined; + } + } else { + callback = options; + options = e; + e = undefined; } - return newError; -} -exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse; -//# sourceMappingURL=oauth2common.js.map + } + options = options || {}; + if(bits === undefined) { + bits = options.bits || 2048; + } + if(e === undefined) { + e = options.e || 0x10001; + } -/***/ }), + // use native code if permitted, available, and parameters are acceptable + if(!forge.options.usePureJavaScript && !options.prng && + bits >= 256 && bits <= 16384 && (e === 0x10001 || e === 3)) { + if(callback) { + // try native async + if(_detectNodeCrypto('generateKeyPair')) { + return _crypto.generateKeyPair('rsa', { + modulusLength: bits, + publicExponent: e, + publicKeyEncoding: { + type: 'spki', + format: 'pem' + }, + privateKeyEncoding: { + type: 'pkcs8', + format: 'pem' + } + }, function(err, pub, priv) { + if(err) { + return callback(err); + } + callback(null, { + privateKey: pki.privateKeyFromPem(priv), + publicKey: pki.publicKeyFromPem(pub) + }); + }); + } + if(_detectSubtleCrypto('generateKey') && + _detectSubtleCrypto('exportKey')) { + // use standard native generateKey + return util.globalScope.crypto.subtle.generateKey({ + name: 'RSASSA-PKCS1-v1_5', + modulusLength: bits, + publicExponent: _intToUint8Array(e), + hash: {name: 'SHA-256'} + }, true /* key can be exported*/, ['sign', 'verify']) + .then(function(pair) { + return util.globalScope.crypto.subtle.exportKey( + 'pkcs8', pair.privateKey); + // avoiding catch(function(err) {...}) to support IE <= 8 + }).then(undefined, function(err) { + callback(err); + }).then(function(pkcs8) { + if(pkcs8) { + var privateKey = pki.privateKeyFromAsn1( + asn1.fromDer(forge.util.createBuffer(pkcs8))); + callback(null, { + privateKey: privateKey, + publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) + }); + } + }); + } + if(_detectSubtleMsCrypto('generateKey') && + _detectSubtleMsCrypto('exportKey')) { + var genOp = util.globalScope.msCrypto.subtle.generateKey({ + name: 'RSASSA-PKCS1-v1_5', + modulusLength: bits, + publicExponent: _intToUint8Array(e), + hash: {name: 'SHA-256'} + }, true /* key can be exported*/, ['sign', 'verify']); + genOp.oncomplete = function(e) { + var pair = e.target.result; + var exportOp = util.globalScope.msCrypto.subtle.exportKey( + 'pkcs8', pair.privateKey); + exportOp.oncomplete = function(e) { + var pkcs8 = e.target.result; + var privateKey = pki.privateKeyFromAsn1( + asn1.fromDer(forge.util.createBuffer(pkcs8))); + callback(null, { + privateKey: privateKey, + publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) + }); + }; + exportOp.onerror = function(err) { + callback(err); + }; + }; + genOp.onerror = function(err) { + callback(err); + }; + return; + } + } else { + // try native sync + if(_detectNodeCrypto('generateKeyPairSync')) { + var keypair = _crypto.generateKeyPairSync('rsa', { + modulusLength: bits, + publicExponent: e, + publicKeyEncoding: { + type: 'spki', + format: 'pem' + }, + privateKeyEncoding: { + type: 'pkcs8', + format: 'pem' + } + }); + return { + privateKey: pki.privateKeyFromPem(keypair.privateKey), + publicKey: pki.publicKeyFromPem(keypair.publicKey) + }; + } + } + } -/***/ 37072: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // use JavaScript implementation + var state = pki.rsa.createKeyPairGenerationState(bits, e, options); + if(!callback) { + pki.rsa.stepKeyPairGenerationState(state, 0); + return state.keys; + } + _generateKeyPair(state, options, callback); +}; -"use strict"; +/** + * Sets an RSA public key from BigIntegers modulus and exponent. + * + * @param n the modulus. + * @param e the exponent. + * + * @return the public key. + */ +pki.setRsaPublicKey = pki.rsa.setPublicKey = function(n, e) { + var key = { + n: n, + e: e + }; -// Copyright 2015 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UserRefreshClient = void 0; -const oauth2client_1 = __nccwpck_require__(11883); -class UserRefreshClient extends oauth2client_1.OAuth2Client { - constructor(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure) { - const opts = optionsOrClientId && typeof optionsOrClientId === 'object' - ? optionsOrClientId - : { - clientId: optionsOrClientId, - clientSecret, - refreshToken, - eagerRefreshThresholdMillis, - forceRefreshOnFailure, - }; - super({ - clientId: opts.clientId, - clientSecret: opts.clientSecret, - eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, - forceRefreshOnFailure: opts.forceRefreshOnFailure, - }); - this._refreshToken = opts.refreshToken; - this.credentials.refresh_token = opts.refreshToken; - } - /** - * Refreshes the access token. - * @param refreshToken An ignored refreshToken.. - * @param callback Optional callback. - */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - return super.refreshTokenNoCache(this._refreshToken); + /** + * Encrypts the given data with this public key. Newer applications + * should use the 'RSA-OAEP' decryption scheme, 'RSAES-PKCS1-V1_5' is for + * legacy applications. + * + * @param data the byte string to encrypt. + * @param scheme the encryption scheme to use: + * 'RSAES-PKCS1-V1_5' (default), + * 'RSA-OAEP', + * 'RAW', 'NONE', or null to perform raw RSA encryption, + * an object with an 'encode' property set to a function + * with the signature 'function(data, key)' that returns + * a binary-encoded string representing the encoded data. + * @param schemeOptions any scheme-specific options. + * + * @return the encrypted byte string. + */ + key.encrypt = function(data, scheme, schemeOptions) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSAES-PKCS1-V1_5'; } - /** - * Create a UserRefreshClient credentials instance using the given input - * options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the user refresh token'); - } - if (json.type !== 'authorized_user') { - throw new Error('The incoming JSON object does not have the "authorized_user" type'); - } - if (!json.client_id) { - throw new Error('The incoming JSON object does not contain a client_id field'); - } - if (!json.client_secret) { - throw new Error('The incoming JSON object does not contain a client_secret field'); + + if(scheme === 'RSAES-PKCS1-V1_5') { + scheme = { + encode: function(m, key, pub) { + return _encodePkcs1_v1_5(m, key, 0x02).getBytes(); } - if (!json.refresh_token) { - throw new Error('The incoming JSON object does not contain a refresh_token field'); + }; + } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { + scheme = { + encode: function(m, key) { + return forge.pkcs1.encode_rsa_oaep(key, m, schemeOptions); } - this._clientId = json.client_id; - this._clientSecret = json.client_secret; - this._refreshToken = json.refresh_token; - this.credentials.refresh_token = json.refresh_token; - this.quotaProjectId = json.quota_project_id; + }; + } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { + scheme = {encode: function(e) {return e;}}; + } else if(typeof scheme === 'string') { + throw new Error('Unsupported encryption scheme: "' + scheme + '".'); } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); + + // do scheme-based encoding then rsa encryption + var e = scheme.encode(data, key, true); + return pki.rsa.encrypt(e, key, true); + }; + + /** + * Verifies the given signature against the given digest. + * + * PKCS#1 supports multiple (currently two) signature schemes: + * RSASSA-PKCS1-V1_5 and RSASSA-PSS. + * + * By default this implementation uses the "old scheme", i.e. + * RSASSA-PKCS1-V1_5, in which case once RSA-decrypted, the + * signature is an OCTET STRING that holds a DigestInfo. + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * Digest ::= OCTET STRING + * + * To perform PSS signature verification, provide an instance + * of Forge PSS object as the scheme parameter. + * + * @param digest the message digest hash to compare against the signature, + * as a binary-encoded string. + * @param signature the signature to verify, as a binary-encoded string. + * @param scheme signature verification scheme to use: + * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, + * a Forge PSS object for RSASSA-PSS, + * 'NONE' or null for none, DigestInfo will not be expected, but + * PKCS#1 v1.5 padding will still be used. + * @param options optional verify options + * _parseAllDigestBytes testing flag to control parsing of all + * digest bytes. Unsupported and not for general usage. + * (default: true) + * + * @return true if the signature was verified, false if not. + */ + key.verify = function(digest, signature, scheme, options) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSASSA-PKCS1-V1_5'; + } + if(options === undefined) { + options = { + _parseAllDigestBytes: true + }; + } + if(!('_parseAllDigestBytes' in options)) { + options._parseAllDigestBytes = true; + } + + if(scheme === 'RSASSA-PKCS1-V1_5') { + scheme = { + verify: function(digest, d) { + // remove padding + d = _decodePkcs1_v1_5(d, key, true); + // d is ASN.1 BER-encoded DigestInfo + var obj = asn1.fromDer(d, { + parseAllBytes: options._parseAllDigestBytes + }); + + // validate DigestInfo + var capture = {}; + var errors = []; + if(!asn1.validate(obj, digestInfoValidator, capture, errors)) { + var error = new Error( + 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' + + 'DigestInfo value.'); + error.errors = errors; + throw error; + } + // check hash algorithm identifier + // see PKCS1-v1-5DigestAlgorithms in RFC 8017 + // FIXME: add support to validator for strict value choices + var oid = asn1.derToOid(capture.algorithmIdentifier); + if(!(oid === forge.oids.md2 || + oid === forge.oids.md5 || + oid === forge.oids.sha1 || + oid === forge.oids.sha224 || + oid === forge.oids.sha256 || + oid === forge.oids.sha384 || + oid === forge.oids.sha512 || + oid === forge.oids['sha512-224'] || + oid === forge.oids['sha512-256'])) { + var error = new Error( + 'Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.'); + error.oid = oid; + throw error; + } + + // special check for md2 and md5 that NULL parameters exist + if(oid === forge.oids.md2 || oid === forge.oids.md5) { + if(!('parameters' in capture)) { + throw new Error( + 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' + + 'DigestInfo value. ' + + 'Missing algorithm identifier NULL parameters.'); + } + } + + // compare the given digest to the decrypted one + return digest === capture.digest; } - else { - return this.fromStreamAsync(inputStream); + }; + } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { + scheme = { + verify: function(digest, d) { + // remove padding + d = _decodePkcs1_v1_5(d, key, true); + return digest === d; } + }; } - async fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - return reject(new Error('Must pass in a stream containing the user refresh token.')); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - return resolve(); - } - catch (err) { - return reject(err); - } - }); - }); - } -} -exports.UserRefreshClient = UserRefreshClient; -//# sourceMappingURL=refreshclient.js.map -/***/ }), - -/***/ 71235: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // do rsa decryption w/o any decoding, then verify -- which does decoding + var d = pki.rsa.decrypt(signature, key, true, false); + return scheme.verify(digest, d, key.n.bitLength()); + }; -"use strict"; + return key; +}; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StsCredentials = void 0; -const querystring = __nccwpck_require__(63477); -const transporters_1 = __nccwpck_require__(93408); -const oauth2common_1 = __nccwpck_require__(85909); /** - * Implements the OAuth 2.0 token exchange based on - * https://tools.ietf.org/html/rfc8693 + * Sets an RSA private key from BigIntegers modulus, exponent, primes, + * prime exponents, and modular multiplicative inverse. + * + * @param n the modulus. + * @param e the public exponent. + * @param d the private exponent ((inverse of e) mod n). + * @param p the first prime. + * @param q the second prime. + * @param dP exponent1 (d mod (p-1)). + * @param dQ exponent2 (d mod (q-1)). + * @param qInv ((inverse of q) mod p) + * + * @return the private key. */ -class StsCredentials extends oauth2common_1.OAuthClientAuthHandler { - /** - * Initializes an STS credentials instance. - * @param tokenExchangeEndpoint The token exchange endpoint. - * @param clientAuthentication The client authentication credentials if - * available. - */ - constructor(tokenExchangeEndpoint, clientAuthentication) { - super(clientAuthentication); - this.tokenExchangeEndpoint = tokenExchangeEndpoint; - this.transporter = new transporters_1.DefaultTransporter(); +pki.setRsaPrivateKey = pki.rsa.setPrivateKey = function( + n, e, d, p, q, dP, dQ, qInv) { + var key = { + n: n, + e: e, + d: d, + p: p, + q: q, + dP: dP, + dQ: dQ, + qInv: qInv + }; + + /** + * Decrypts the given data with this private key. The decryption scheme + * must match the one used to encrypt the data. + * + * @param data the byte string to decrypt. + * @param scheme the decryption scheme to use: + * 'RSAES-PKCS1-V1_5' (default), + * 'RSA-OAEP', + * 'RAW', 'NONE', or null to perform raw RSA decryption. + * @param schemeOptions any scheme-specific options. + * + * @return the decrypted byte string. + */ + key.decrypt = function(data, scheme, schemeOptions) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSAES-PKCS1-V1_5'; } - /** - * Exchanges the provided token for another type of token based on the - * rfc8693 spec. - * @param stsCredentialsOptions The token exchange options used to populate - * the token exchange request. - * @param additionalHeaders Optional additional headers to pass along the - * request. - * @param options Optional additional GCP-specific non-spec defined options - * to send with the request. - * Example: `&options=${encodeUriComponent(JSON.stringified(options))}` - * @return A promise that resolves with the token exchange response containing - * the requested token and its expiration time. - */ - async exchangeToken(stsCredentialsOptions, additionalHeaders, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - options) { - var _a, _b, _c; - const values = { - grant_type: stsCredentialsOptions.grantType, - resource: stsCredentialsOptions.resource, - audience: stsCredentialsOptions.audience, - scope: (_a = stsCredentialsOptions.scope) === null || _a === void 0 ? void 0 : _a.join(' '), - requested_token_type: stsCredentialsOptions.requestedTokenType, - subject_token: stsCredentialsOptions.subjectToken, - subject_token_type: stsCredentialsOptions.subjectTokenType, - actor_token: (_b = stsCredentialsOptions.actingParty) === null || _b === void 0 ? void 0 : _b.actorToken, - actor_token_type: (_c = stsCredentialsOptions.actingParty) === null || _c === void 0 ? void 0 : _c.actorTokenType, - // Non-standard GCP-specific options. - options: options && JSON.stringify(options), - }; - // Remove undefined fields. - Object.keys(values).forEach(key => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if (typeof values[key] === 'undefined') { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - delete values[key]; - } - }); - const headers = { - 'Content-Type': 'application/x-www-form-urlencoded', - }; - // Inject additional STS headers if available. - Object.assign(headers, additionalHeaders || {}); - const opts = { - url: this.tokenExchangeEndpoint, - method: 'POST', - headers, - data: querystring.stringify(values), - responseType: 'json', - }; - // Apply OAuth client authentication. - this.applyClientAuthenticationOptions(opts); - try { - const response = await this.transporter.request(opts); - // Successful response. - const stsSuccessfulResponse = response.data; - stsSuccessfulResponse.res = response; - return stsSuccessfulResponse; - } - catch (error) { - // Translate error to OAuthError. - if (error.response) { - throw oauth2common_1.getErrorFromOAuthErrorResponse(error.response.data, - // Preserve other fields from the original error. - error); - } - // Request could fail before the server responds. - throw error; + + // do rsa decryption w/o any decoding + var d = pki.rsa.decrypt(data, key, false, false); + + if(scheme === 'RSAES-PKCS1-V1_5') { + scheme = {decode: _decodePkcs1_v1_5}; + } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { + scheme = { + decode: function(d, key) { + return forge.pkcs1.decode_rsa_oaep(key, d, schemeOptions); } + }; + } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { + scheme = {decode: function(d) {return d;}}; + } else { + throw new Error('Unsupported encryption scheme: "' + scheme + '".'); } -} -exports.StsCredentials = StsCredentials; -//# sourceMappingURL=stscredentials.js.map -/***/ }), + // decode according to scheme + return scheme.decode(d, key, false); + }; -/***/ 36925: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + /** + * Signs the given digest, producing a signature. + * + * PKCS#1 supports multiple (currently two) signature schemes: + * RSASSA-PKCS1-V1_5 and RSASSA-PSS. + * + * By default this implementation uses the "old scheme", i.e. + * RSASSA-PKCS1-V1_5. In order to generate a PSS signature, provide + * an instance of Forge PSS object as the scheme parameter. + * + * @param md the message digest object with the hash to sign. + * @param scheme the signature scheme to use: + * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, + * a Forge PSS object for RSASSA-PSS, + * 'NONE' or null for none, DigestInfo will not be used but + * PKCS#1 v1.5 padding will still be used. + * + * @return the signature as a byte string. + */ + key.sign = function(md, scheme) { + /* Note: The internal implementation of RSA operations is being + transitioned away from a PKCS#1 v1.5 hard-coded scheme. Some legacy + code like the use of an encoding block identifier 'bt' will eventually + be removed. */ -"use strict"; + // private key operation + var bt = false; -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/* global window */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BrowserCrypto = void 0; -// This file implements crypto functions we need using in-browser -// SubtleCrypto interface `window.crypto.subtle`. -const base64js = __nccwpck_require__(8617); -// Not all browsers support `TextEncoder`. The following `require` will -// provide a fast UTF8-only replacement for those browsers that don't support -// text encoding natively. -// eslint-disable-next-line node/no-unsupported-features/node-builtins -if (typeof process === 'undefined' && typeof TextEncoder === 'undefined') { - __nccwpck_require__(30665); -} -const crypto_1 = __nccwpck_require__(17742); -class BrowserCrypto { - constructor() { - if (typeof window === 'undefined' || - window.crypto === undefined || - window.crypto.subtle === undefined) { - throw new Error("SubtleCrypto not found. Make sure it's an https:// website."); - } - } - async sha256DigestBase64(str) { - // SubtleCrypto digest() method is async, so we must make - // this method async as well. - // To calculate SHA256 digest using SubtleCrypto, we first - // need to convert an input string to an ArrayBuffer: - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const inputBuffer = new TextEncoder().encode(str); - // Result is ArrayBuffer as well. - const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); - return base64js.fromByteArray(new Uint8Array(outputBuffer)); - } - randomBytesBase64(count) { - const array = new Uint8Array(count); - window.crypto.getRandomValues(array); - return base64js.fromByteArray(array); - } - static padBase64(base64) { - // base64js requires padding, so let's add some '=' - while (base64.length % 4 !== 0) { - base64 += '='; - } - return base64; - } - async verify(pubkey, data, signature) { - const algo = { - name: 'RSASSA-PKCS1-v1_5', - hash: { name: 'SHA-256' }, - }; - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const dataArray = new TextEncoder().encode(data); - const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature)); - const cryptoKey = await window.crypto.subtle.importKey('jwk', pubkey, algo, true, ['verify']); - // SubtleCrypto's verify method is async so we must make - // this method async as well. - const result = await window.crypto.subtle.verify(algo, cryptoKey, signatureArray, dataArray); - return result; - } - async sign(privateKey, data) { - const algo = { - name: 'RSASSA-PKCS1-v1_5', - hash: { name: 'SHA-256' }, - }; - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const dataArray = new TextEncoder().encode(data); - const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']); - // SubtleCrypto's sign method is async so we must make - // this method async as well. - const result = await window.crypto.subtle.sign(algo, cryptoKey, dataArray); - return base64js.fromByteArray(new Uint8Array(result)); - } - decodeBase64StringUtf8(base64) { - const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64)); - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const result = new TextDecoder().decode(uint8array); - return result; - } - encodeBase64StringUtf8(text) { - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const uint8array = new TextEncoder().encode(text); - const result = base64js.fromByteArray(uint8array); - return result; - } - /** - * Computes the SHA-256 hash of the provided string. - * @param str The plain text string to hash. - * @return A promise that resolves with the SHA-256 hash of the provided - * string in hexadecimal encoding. - */ - async sha256DigestHex(str) { - // SubtleCrypto digest() method is async, so we must make - // this method async as well. - // To calculate SHA256 digest using SubtleCrypto, we first - // need to convert an input string to an ArrayBuffer: - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const inputBuffer = new TextEncoder().encode(str); - // Result is ArrayBuffer as well. - const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); - return crypto_1.fromArrayBufferToHex(outputBuffer); + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); } - /** - * Computes the HMAC hash of a message using the provided crypto key and the - * SHA-256 algorithm. - * @param key The secret crypto key in utf-8 or ArrayBuffer format. - * @param msg The plain text message. - * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer - * format. - */ - async signWithHmacSha256(key, msg) { - // Convert key, if provided in ArrayBuffer format, to string. - const rawKey = typeof key === 'string' - ? key - : String.fromCharCode(...new Uint16Array(key)); - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const enc = new TextEncoder(); - const cryptoKey = await window.crypto.subtle.importKey('raw', enc.encode(rawKey), { - name: 'HMAC', - hash: { - name: 'SHA-256', - }, - }, false, ['sign']); - return window.crypto.subtle.sign('HMAC', cryptoKey, enc.encode(msg)); + + if(scheme === undefined || scheme === 'RSASSA-PKCS1-V1_5') { + scheme = {encode: emsaPkcs1v15encode}; + bt = 0x01; + } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { + scheme = {encode: function() {return md;}}; + bt = 0x01; } -} -exports.BrowserCrypto = BrowserCrypto; -//# sourceMappingURL=crypto.js.map -/***/ }), + // encode and then encrypt + var d = scheme.encode(md, key.n.bitLength()); + return pki.rsa.encrypt(d, key, bt); + }; -/***/ 17742: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + return key; +}; -"use strict"; +/** + * Wraps an RSAPrivateKey ASN.1 object in an ASN.1 PrivateKeyInfo object. + * + * @param rsaKey the ASN.1 RSAPrivateKey. + * + * @return the ASN.1 PrivateKeyInfo. + */ +pki.wrapRsaPrivateKey = function(rsaKey) { + // PrivateKeyInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (0) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(0).getBytes()), + // privateKeyAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // PrivateKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(rsaKey).getBytes()) + ]); +}; -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/* global window */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromArrayBufferToHex = exports.hasBrowserCrypto = exports.createCrypto = void 0; -const crypto_1 = __nccwpck_require__(36925); -const crypto_2 = __nccwpck_require__(98265); -function createCrypto() { - if (hasBrowserCrypto()) { - return new crypto_1.BrowserCrypto(); - } - return new crypto_2.NodeCrypto(); -} -exports.createCrypto = createCrypto; -function hasBrowserCrypto() { - return (typeof window !== 'undefined' && - typeof window.crypto !== 'undefined' && - typeof window.crypto.subtle !== 'undefined'); -} -exports.hasBrowserCrypto = hasBrowserCrypto; /** - * Converts an ArrayBuffer to a hexadecimal string. - * @param arrayBuffer The ArrayBuffer to convert to hexadecimal string. - * @return The hexadecimal encoding of the ArrayBuffer. + * Converts a private key from an ASN.1 object. + * + * @param obj the ASN.1 representation of a PrivateKeyInfo containing an + * RSAPrivateKey or an RSAPrivateKey. + * + * @return the private key. */ -function fromArrayBufferToHex(arrayBuffer) { - // Convert buffer to byte array. - const byteArray = Array.from(new Uint8Array(arrayBuffer)); - // Convert bytes to hex string. - return byteArray - .map(byte => { - return byte.toString(16).padStart(2, '0'); - }) - .join(''); -} -exports.fromArrayBufferToHex = fromArrayBufferToHex; -//# sourceMappingURL=crypto.js.map +pki.privateKeyFromAsn1 = function(obj) { + // get PrivateKeyInfo + var capture = {}; + var errors = []; + if(asn1.validate(obj, privateKeyValidator, capture, errors)) { + obj = asn1.fromDer(forge.util.createBuffer(capture.privateKey)); + } -/***/ }), + // get RSAPrivateKey + capture = {}; + errors = []; + if(!asn1.validate(obj, rsaPrivateKeyValidator, capture, errors)) { + var error = new Error('Cannot read private key. ' + + 'ASN.1 object does not contain an RSAPrivateKey.'); + error.errors = errors; + throw error; + } -/***/ 98265: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // Note: Version is currently ignored. + // capture.privateKeyVersion + // FIXME: inefficient, get a BigInteger that uses byte strings + var n, e, d, p, q, dP, dQ, qInv; + n = forge.util.createBuffer(capture.privateKeyModulus).toHex(); + e = forge.util.createBuffer(capture.privateKeyPublicExponent).toHex(); + d = forge.util.createBuffer(capture.privateKeyPrivateExponent).toHex(); + p = forge.util.createBuffer(capture.privateKeyPrime1).toHex(); + q = forge.util.createBuffer(capture.privateKeyPrime2).toHex(); + dP = forge.util.createBuffer(capture.privateKeyExponent1).toHex(); + dQ = forge.util.createBuffer(capture.privateKeyExponent2).toHex(); + qInv = forge.util.createBuffer(capture.privateKeyCoefficient).toHex(); -"use strict"; + // set private key + return pki.setRsaPrivateKey( + new BigInteger(n, 16), + new BigInteger(e, 16), + new BigInteger(d, 16), + new BigInteger(p, 16), + new BigInteger(q, 16), + new BigInteger(dP, 16), + new BigInteger(dQ, 16), + new BigInteger(qInv, 16)); +}; -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NodeCrypto = void 0; -const crypto = __nccwpck_require__(6113); -class NodeCrypto { - async sha256DigestBase64(str) { - return crypto.createHash('sha256').update(str).digest('base64'); - } - randomBytesBase64(count) { - return crypto.randomBytes(count).toString('base64'); - } - async verify(pubkey, data, signature) { - const verifier = crypto.createVerify('sha256'); - verifier.update(data); - verifier.end(); - return verifier.verify(pubkey, signature, 'base64'); - } - async sign(privateKey, data) { - const signer = crypto.createSign('RSA-SHA256'); - signer.update(data); - signer.end(); - return signer.sign(privateKey, 'base64'); - } - decodeBase64StringUtf8(base64) { - return Buffer.from(base64, 'base64').toString('utf-8'); - } - encodeBase64StringUtf8(text) { - return Buffer.from(text, 'utf-8').toString('base64'); - } - /** - * Computes the SHA-256 hash of the provided string. - * @param str The plain text string to hash. - * @return A promise that resolves with the SHA-256 hash of the provided - * string in hexadecimal encoding. - */ - async sha256DigestHex(str) { - return crypto.createHash('sha256').update(str).digest('hex'); - } - /** - * Computes the HMAC hash of a message using the provided crypto key and the - * SHA-256 algorithm. - * @param key The secret crypto key in utf-8 or ArrayBuffer format. - * @param msg The plain text message. - * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer - * format. - */ - async signWithHmacSha256(key, msg) { - const cryptoKey = typeof key === 'string' ? key : toBuffer(key); - return toArrayBuffer(crypto.createHmac('sha256', cryptoKey).update(msg).digest()); +/** + * Converts a private key to an ASN.1 RSAPrivateKey. + * + * @param key the private key. + * + * @return the ASN.1 representation of an RSAPrivateKey. + */ +pki.privateKeyToAsn1 = pki.privateKeyToRSAPrivateKey = function(key) { + // RSAPrivateKey + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (0 = only 2 primes, 1 multiple primes) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(0).getBytes()), + // modulus (n) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.n)), + // publicExponent (e) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.e)), + // privateExponent (d) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.d)), + // privateKeyPrime1 (p) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.p)), + // privateKeyPrime2 (q) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.q)), + // privateKeyExponent1 (dP) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.dP)), + // privateKeyExponent2 (dQ) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.dQ)), + // coefficient (qInv) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.qInv)) + ]); +}; + +/** + * Converts a public key from an ASN.1 SubjectPublicKeyInfo or RSAPublicKey. + * + * @param obj the asn1 representation of a SubjectPublicKeyInfo or RSAPublicKey. + * + * @return the public key. + */ +pki.publicKeyFromAsn1 = function(obj) { + // get SubjectPublicKeyInfo + var capture = {}; + var errors = []; + if(asn1.validate(obj, publicKeyValidator, capture, errors)) { + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + var error = new Error('Cannot read public key. Unknown OID.'); + error.oid = oid; + throw error; } -} -exports.NodeCrypto = NodeCrypto; + obj = capture.rsaPublicKey; + } + + // get RSA params + errors = []; + if(!asn1.validate(obj, rsaPublicKeyValidator, capture, errors)) { + var error = new Error('Cannot read public key. ' + + 'ASN.1 object does not contain an RSAPublicKey.'); + error.errors = errors; + throw error; + } + + // FIXME: inefficient, get a BigInteger that uses byte strings + var n = forge.util.createBuffer(capture.publicKeyModulus).toHex(); + var e = forge.util.createBuffer(capture.publicKeyExponent).toHex(); + + // set public key + return pki.setRsaPublicKey( + new BigInteger(n, 16), + new BigInteger(e, 16)); +}; + /** - * Converts a Node.js Buffer to an ArrayBuffer. - * https://stackoverflow.com/questions/8609289/convert-a-binary-nodejs-buffer-to-javascript-arraybuffer - * @param buffer The Buffer input to covert. - * @return The ArrayBuffer representation of the input. + * Converts a public key to an ASN.1 SubjectPublicKeyInfo. + * + * @param key the public key. + * + * @return the asn1 representation of a SubjectPublicKeyInfo. */ -function toArrayBuffer(buffer) { - return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength); -} +pki.publicKeyToAsn1 = pki.publicKeyToSubjectPublicKeyInfo = function(key) { + // SubjectPublicKeyInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // subjectPublicKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, [ + pki.publicKeyToRSAPublicKey(key) + ]) + ]); +}; + /** - * Converts an ArrayBuffer to a Node.js Buffer. - * @param arrayBuffer The ArrayBuffer input to covert. - * @return The Buffer representation of the input. + * Converts a public key to an ASN.1 RSAPublicKey. + * + * @param key the public key. + * + * @return the asn1 representation of a RSAPublicKey. */ -function toBuffer(arrayBuffer) { - return Buffer.from(arrayBuffer); -} -//# sourceMappingURL=crypto.js.map +pki.publicKeyToRSAPublicKey = function(key) { + // RSAPublicKey + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // modulus (n) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.n)), + // publicExponent (e) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.e)) + ]); +}; -/***/ }), +/** + * Encodes a message using PKCS#1 v1.5 padding. + * + * @param m the message to encode. + * @param key the RSA key to use. + * @param bt the block type to use, i.e. either 0x01 (for signing) or 0x02 + * (for encryption). + * + * @return the padded byte buffer. + */ +function _encodePkcs1_v1_5(m, key, bt) { + var eb = forge.util.createBuffer(); -/***/ 86885: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); -"use strict"; + /* use PKCS#1 v1.5 padding */ + if(m.length > (k - 11)) { + var error = new Error('Message is too long for PKCS#1 v1.5 padding.'); + error.length = m.length; + error.max = k - 11; + throw error; + } -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleAuth = exports.auth = void 0; -// Copyright 2017 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -const googleauth_1 = __nccwpck_require__(85754); -Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return googleauth_1.GoogleAuth; } })); -var authclient_1 = __nccwpck_require__(38421); -Object.defineProperty(exports, "AuthClient", ({ enumerable: true, get: function () { return authclient_1.AuthClient; } })); -var computeclient_1 = __nccwpck_require__(78727); -Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return computeclient_1.Compute; } })); -var envDetect_1 = __nccwpck_require__(75541); -Object.defineProperty(exports, "GCPEnv", ({ enumerable: true, get: function () { return envDetect_1.GCPEnv; } })); -var iam_1 = __nccwpck_require__(25330); -Object.defineProperty(exports, "IAMAuth", ({ enumerable: true, get: function () { return iam_1.IAMAuth; } })); -var idtokenclient_1 = __nccwpck_require__(1436); -Object.defineProperty(exports, "IdTokenClient", ({ enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } })); -var jwtaccess_1 = __nccwpck_require__(61245); -Object.defineProperty(exports, "JWTAccess", ({ enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } })); -var jwtclient_1 = __nccwpck_require__(35604); -Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return jwtclient_1.JWT; } })); -var impersonated_1 = __nccwpck_require__(61107); -Object.defineProperty(exports, "Impersonated", ({ enumerable: true, get: function () { return impersonated_1.Impersonated; } })); -var oauth2client_1 = __nccwpck_require__(11883); -Object.defineProperty(exports, "CodeChallengeMethod", ({ enumerable: true, get: function () { return oauth2client_1.CodeChallengeMethod; } })); -Object.defineProperty(exports, "OAuth2Client", ({ enumerable: true, get: function () { return oauth2client_1.OAuth2Client; } })); -var loginticket_1 = __nccwpck_require__(9267); -Object.defineProperty(exports, "LoginTicket", ({ enumerable: true, get: function () { return loginticket_1.LoginTicket; } })); -var refreshclient_1 = __nccwpck_require__(37072); -Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } })); -var awsclient_1 = __nccwpck_require__(30860); -Object.defineProperty(exports, "AwsClient", ({ enumerable: true, get: function () { return awsclient_1.AwsClient; } })); -var identitypoolclient_1 = __nccwpck_require__(65977); -Object.defineProperty(exports, "IdentityPoolClient", ({ enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } })); -var externalclient_1 = __nccwpck_require__(49346); -Object.defineProperty(exports, "ExternalAccountClient", ({ enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } })); -var baseexternalclient_1 = __nccwpck_require__(14956); -Object.defineProperty(exports, "BaseExternalAccountClient", ({ enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } })); -var downscopedclient_1 = __nccwpck_require__(89670); -Object.defineProperty(exports, "DownscopedClient", ({ enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } })); -var transporters_1 = __nccwpck_require__(93408); -Object.defineProperty(exports, "DefaultTransporter", ({ enumerable: true, get: function () { return transporters_1.DefaultTransporter; } })); -const auth = new googleauth_1.GoogleAuth(); -exports.auth = auth; -//# sourceMappingURL=index.js.map + /* A block type BT, a padding string PS, and the data D shall be + formatted into an octet string EB, the encryption block: -/***/ }), + EB = 00 || BT || PS || 00 || D -/***/ 31795: -/***/ ((__unused_webpack_module, exports) => { + The block type BT shall be a single octet indicating the structure of + the encryption block. For this version of the document it shall have + value 00, 01, or 02. For a private-key operation, the block type + shall be 00 or 01. For a public-key operation, it shall be 02. -"use strict"; + The padding string PS shall consist of k-3-||D|| octets. For block + type 00, the octets shall have value 00; for block type 01, they + shall have value FF; and for block type 02, they shall be + pseudorandomly generated and nonzero. This makes the length of the + encryption block EB equal to k. */ -// Copyright 2017 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validate = void 0; -// Accepts an options object passed from the user to the API. In the -// previous version of the API, it referred to a `Request` options object. -// Now it refers to an Axiox Request Config object. This is here to help -// ensure users don't pass invalid options when they upgrade from 0.x to 1.x. -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function validate(options) { - const vpairs = [ - { invalid: 'uri', expected: 'url' }, - { invalid: 'json', expected: 'data' }, - { invalid: 'qs', expected: 'params' }, - ]; - for (const pair of vpairs) { - if (options[pair.invalid]) { - const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; - throw new Error(e); + // build the encryption block + eb.putByte(0x00); + eb.putByte(bt); + + // create the padding + var padNum = k - 3 - m.length; + var padByte; + // private key op + if(bt === 0x00 || bt === 0x01) { + padByte = (bt === 0x00) ? 0x00 : 0xFF; + for(var i = 0; i < padNum; ++i) { + eb.putByte(padByte); + } + } else { + // public key op + // pad with random non-zero values + while(padNum > 0) { + var numZeros = 0; + var padBytes = forge.random.getBytes(padNum); + for(var i = 0; i < padNum; ++i) { + padByte = padBytes.charCodeAt(i); + if(padByte === 0) { + ++numZeros; + } else { + eb.putByte(padByte); } + } + padNum = numZeros; } + } + + // zero followed by message + eb.putByte(0x00); + eb.putBytes(m); + + return eb; } -exports.validate = validate; -//# sourceMappingURL=options.js.map -/***/ }), +/** + * Decodes a message using PKCS#1 v1.5 padding. + * + * @param em the message to decode. + * @param key the RSA key to use. + * @param pub true if the key is a public key, false if it is private. + * @param ml the message length, if specified. + * + * @return the decoded bytes. + */ +function _decodePkcs1_v1_5(em, key, pub, ml) { + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); -/***/ 93408: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + /* It is an error if any of the following conditions occurs: -"use strict"; + 1. The encryption block EB cannot be parsed unambiguously. + 2. The padding string PS consists of fewer than eight octets + or is inconsistent with the block type BT. + 3. The decryption process is a public-key operation and the block + type BT is not 00 or 01, or the decryption process is a + private-key operation and the block type is not 02. + */ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DefaultTransporter = void 0; -const gaxios_1 = __nccwpck_require__(33635); -const options_1 = __nccwpck_require__(31795); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const pkg = __nccwpck_require__(51402); -const PRODUCT_NAME = 'google-api-nodejs-client'; -class DefaultTransporter { - /** - * Configures request options before making a request. - * @param opts GaxiosOptions options. - * @return Configured options. - */ - configure(opts = {}) { - opts.headers = opts.headers || {}; - if (typeof window === 'undefined') { - // set transporter user agent if not in browser - const uaValue = opts.headers['User-Agent']; - if (!uaValue) { - opts.headers['User-Agent'] = DefaultTransporter.USER_AGENT; - } - else if (!uaValue.includes(`${PRODUCT_NAME}/`)) { - opts.headers['User-Agent'] = `${uaValue} ${DefaultTransporter.USER_AGENT}`; - } - // track google-auth-library-nodejs version: - const authVersion = `auth/${pkg.version}`; - if (opts.headers['x-goog-api-client'] && - !opts.headers['x-goog-api-client'].includes(authVersion)) { - opts.headers['x-goog-api-client'] = `${opts.headers['x-goog-api-client']} ${authVersion}`; - } - else if (!opts.headers['x-goog-api-client']) { - const nodeVersion = process.version.replace(/^v/, ''); - opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion} ${authVersion}`; - } - } - return opts; + // parse the encryption block + var eb = forge.util.createBuffer(em); + var first = eb.getByte(); + var bt = eb.getByte(); + if(first !== 0x00 || + (pub && bt !== 0x00 && bt !== 0x01) || + (!pub && bt != 0x02) || + (pub && bt === 0x00 && typeof(ml) === 'undefined')) { + throw new Error('Encryption block is invalid.'); + } + + var padNum = 0; + if(bt === 0x00) { + // check all padding bytes for 0x00 + padNum = k - 3 - ml; + for(var i = 0; i < padNum; ++i) { + if(eb.getByte() !== 0x00) { + throw new Error('Encryption block is invalid.'); + } } - request(opts, callback) { - // ensure the user isn't passing in request-style options - opts = this.configure(opts); - try { - options_1.validate(opts); - } - catch (e) { - if (callback) { - return callback(e); - } - else { - throw e; - } - } - if (callback) { - gaxios_1.request(opts).then(r => { - callback(null, r); - }, e => { - callback(this.processError(e)); - }); - } - else { - return gaxios_1.request(opts).catch(e => { - throw this.processError(e); - }); - } + } else if(bt === 0x01) { + // find the first byte that isn't 0xFF, should be after all padding + padNum = 0; + while(eb.length() > 1) { + if(eb.getByte() !== 0xFF) { + --eb.read; + break; + } + ++padNum; } - /** - * Changes the error to include details from the body. - */ - processError(e) { - const res = e.response; - const err = e; - const body = res ? res.data : null; - if (res && body && body.error && res.status !== 200) { - if (typeof body.error === 'string') { - err.message = body.error; - err.code = res.status.toString(); - } - else if (Array.isArray(body.error.errors)) { - err.message = body.error.errors - .map((err2) => err2.message) - .join('\n'); - err.code = body.error.code; - err.errors = body.error.errors; - } - else { - err.message = body.error.message; - err.code = body.error.code || res.status; - } - } - else if (res && res.status >= 400) { - // Consider all 4xx and 5xx responses errors. - err.message = body; - err.code = res.status.toString(); - } - return err; + } else if(bt === 0x02) { + // look for 0x00 byte + padNum = 0; + while(eb.length() > 1) { + if(eb.getByte() === 0x00) { + --eb.read; + break; + } + ++padNum; } + } + + // zero must be 0x00 and padNum must be (k - 3 - message length) + var zero = eb.getByte(); + if(zero !== 0x00 || padNum !== (k - 3 - eb.length())) { + throw new Error('Encryption block is invalid.'); + } + + return eb.getBytes(); } -exports.DefaultTransporter = DefaultTransporter; + /** - * Default user agent. + * Runs the key-generation algorithm asynchronously, either in the background + * via Web Workers, or using the main thread and setImmediate. + * + * @param state the key-pair generation state. + * @param [options] options for key-pair generation: + * workerScript the worker script URL. + * workers the number of web workers (if supported) to use, + * (default: 2, -1 to use estimated cores minus one). + * workLoad the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * @param callback(err, keypair) called once the operation completes. */ -DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; -//# sourceMappingURL=transporters.js.map +function _generateKeyPair(state, options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; -/***/ }), + var opts = { + algorithm: { + name: options.algorithm || 'PRIMEINC', + options: { + workers: options.workers || 2, + workLoad: options.workLoad || 100, + workerScript: options.workerScript + } + } + }; + if('prng' in options) { + opts.prng = options.prng; + } -/***/ 89709: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + generate(); -"use strict"; + function generate() { + // find p and then q (done in series to simplify) + getPrime(state.pBits, function(err, num) { + if(err) { + return callback(err); + } + state.p = num; + if(state.q !== null) { + return finish(err, state.q); + } + getPrime(state.qBits, finish); + }); + } + function getPrime(bits, callback) { + forge.prime.generateProbablePrime(bits, opts, callback); + } -// A linked list to keep track of recently-used-ness -const Yallist = __nccwpck_require__(58989) + function finish(err, num) { + if(err) { + return callback(err); + } -const MAX = Symbol('max') -const LENGTH = Symbol('length') -const LENGTH_CALCULATOR = Symbol('lengthCalculator') -const ALLOW_STALE = Symbol('allowStale') -const MAX_AGE = Symbol('maxAge') -const DISPOSE = Symbol('dispose') -const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') -const LRU_LIST = Symbol('lruList') -const CACHE = Symbol('cache') -const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') + // set q + state.q = num; -const naiveLength = () => 1 + // ensure p is larger than q (swap them if not) + if(state.p.compareTo(state.q) < 0) { + var tmp = state.p; + state.p = state.q; + state.q = tmp; + } -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -class LRUCache { - constructor (options) { - if (typeof options === 'number') - options = { max: options } + // ensure p is coprime with e + if(state.p.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) !== 0) { + state.p = null; + generate(); + return; + } - if (!options) - options = {} + // ensure q is coprime with e + if(state.q.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) !== 0) { + state.q = null; + getPrime(state.qBits, finish); + return; + } - if (options.max && (typeof options.max !== 'number' || options.max < 0)) - throw new TypeError('max must be a non-negative number') - // Kind of weird to have a default max of Infinity, but oh well. - const max = this[MAX] = options.max || Infinity + // compute phi: (p - 1)(q - 1) (Euler's totient function) + state.p1 = state.p.subtract(BigInteger.ONE); + state.q1 = state.q.subtract(BigInteger.ONE); + state.phi = state.p1.multiply(state.q1); - const lc = options.length || naiveLength - this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc - this[ALLOW_STALE] = options.stale || false - if (options.maxAge && typeof options.maxAge !== 'number') - throw new TypeError('maxAge must be a number') - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false - this.reset() - } + // ensure e and phi are coprime + if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) !== 0) { + // phi and e aren't coprime, so generate a new p and q + state.p = state.q = null; + generate(); + return; + } - // resize the cache when the max changes. - set max (mL) { - if (typeof mL !== 'number' || mL < 0) - throw new TypeError('max must be a non-negative number') + // create n, ensure n is has the right number of bits + state.n = state.p.multiply(state.q); + if(state.n.bitLength() !== state.bits) { + // failed, get new q + state.q = null; + getPrime(state.qBits, finish); + return; + } - this[MAX] = mL || Infinity - trim(this) - } - get max () { - return this[MAX] - } + // set keys + var d = state.e.modInverse(state.phi); + state.keys = { + privateKey: pki.rsa.setPrivateKey( + state.n, state.e, d, state.p, state.q, + d.mod(state.p1), d.mod(state.q1), + state.q.modInverse(state.p)), + publicKey: pki.rsa.setPublicKey(state.n, state.e) + }; - set allowStale (allowStale) { - this[ALLOW_STALE] = !!allowStale - } - get allowStale () { - return this[ALLOW_STALE] + callback(null, state.keys); } +} - set maxAge (mA) { - if (typeof mA !== 'number') - throw new TypeError('maxAge must be a non-negative number') - - this[MAX_AGE] = mA - trim(this) +/** + * Converts a positive BigInteger into 2's-complement big-endian bytes. + * + * @param b the big integer to convert. + * + * @return the bytes. + */ +function _bnToBytes(b) { + // prepend 0x00 if first byte >= 0x80 + var hex = b.toString(16); + if(hex[0] >= '8') { + hex = '00' + hex; } - get maxAge () { - return this[MAX_AGE] + var bytes = forge.util.hexToBytes(hex); + + // ensure integer is minimally-encoded + if(bytes.length > 1 && + // leading 0x00 for positive integer + ((bytes.charCodeAt(0) === 0 && + (bytes.charCodeAt(1) & 0x80) === 0) || + // leading 0xFF for negative integer + (bytes.charCodeAt(0) === 0xFF && + (bytes.charCodeAt(1) & 0x80) === 0x80))) { + return bytes.substr(1); } + return bytes; +} - // resize the cache when the lengthCalculator changes. - set lengthCalculator (lC) { - if (typeof lC !== 'function') - lC = naiveLength +/** + * Returns the required number of Miller-Rabin tests to generate a + * prime with an error probability of (1/2)^80. + * + * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * + * @param bits the bit size. + * + * @return the required number of iterations. + */ +function _getMillerRabinTests(bits) { + if(bits <= 100) return 27; + if(bits <= 150) return 18; + if(bits <= 200) return 15; + if(bits <= 250) return 12; + if(bits <= 300) return 9; + if(bits <= 350) return 8; + if(bits <= 400) return 7; + if(bits <= 500) return 6; + if(bits <= 600) return 5; + if(bits <= 800) return 4; + if(bits <= 1250) return 3; + return 2; +} - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }) - } - trim(this) - } - get lengthCalculator () { return this[LENGTH_CALCULATOR] } +/** + * Performs feature detection on the Node crypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectNodeCrypto(fn) { + return forge.util.isNodejs && typeof _crypto[fn] === 'function'; +} - get length () { return this[LENGTH] } - get itemCount () { return this[LRU_LIST].length } +/** + * Performs feature detection on the SubtleCrypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectSubtleCrypto(fn) { + return (typeof util.globalScope !== 'undefined' && + typeof util.globalScope.crypto === 'object' && + typeof util.globalScope.crypto.subtle === 'object' && + typeof util.globalScope.crypto.subtle[fn] === 'function'); +} - rforEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev - } - } +/** + * Performs feature detection on the deprecated Microsoft Internet Explorer + * outdated SubtleCrypto interface. This function should only be used after + * checking for the modern, standard SubtleCrypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectSubtleMsCrypto(fn) { + return (typeof util.globalScope !== 'undefined' && + typeof util.globalScope.msCrypto === 'object' && + typeof util.globalScope.msCrypto.subtle === 'object' && + typeof util.globalScope.msCrypto.subtle[fn] === 'function'); +} - forEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next - } +function _intToUint8Array(x) { + var bytes = forge.util.hexToBytes(x.toString(16)); + var buffer = new Uint8Array(bytes.length); + for(var i = 0; i < bytes.length; ++i) { + buffer[i] = bytes.charCodeAt(i); } + return buffer; +} - keys () { - return this[LRU_LIST].toArray().map(k => k.key) +function _privateKeyFromJwk(jwk) { + if(jwk.kty !== 'RSA') { + throw new Error( + 'Unsupported key algorithm "' + jwk.kty + '"; algorithm must be "RSA".'); } + return pki.setRsaPrivateKey( + _base64ToBigInt(jwk.n), + _base64ToBigInt(jwk.e), + _base64ToBigInt(jwk.d), + _base64ToBigInt(jwk.p), + _base64ToBigInt(jwk.q), + _base64ToBigInt(jwk.dp), + _base64ToBigInt(jwk.dq), + _base64ToBigInt(jwk.qi)); +} - values () { - return this[LRU_LIST].toArray().map(k => k.value) +function _publicKeyFromJwk(jwk) { + if(jwk.kty !== 'RSA') { + throw new Error('Key algorithm must be "RSA".'); } + return pki.setRsaPublicKey( + _base64ToBigInt(jwk.n), + _base64ToBigInt(jwk.e)); +} - reset () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) - } - - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list - } +function _base64ToBigInt(b64) { + return new BigInteger(forge.util.bytesToHex(forge.util.decode64(b64)), 16); +} - dump () { - return this[LRU_LIST].map(hit => - isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h) - } - dumpLru () { - return this[LRU_LIST] - } +/***/ }), - set (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] +/***/ 87986: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (maxAge && typeof maxAge !== 'number') - throw new TypeError('maxAge must be a number') +/** + * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(5454); +__nccwpck_require__(46831); - const now = maxAge ? Date.now() : 0 - const len = this[LENGTH_CALCULATOR](value, key) +var sha1 = module.exports = forge.sha1 = forge.sha1 || {}; +forge.md.sha1 = forge.md.algorithms.sha1 = sha1; - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } +/** + * Creates a SHA-1 message digest object. + * + * @return a message digest object. + */ +sha1.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } - const node = this[CACHE].get(key) - const item = node.value + // SHA-1 state contains five 32-bit integers + var _state = null; - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value) - } + // input buffer + var _input = forge.util.createBuffer(); - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true - } + // used for word storage + var _w = new Array(80); - const hit = new Entry(key, value, len, now, maxAge) + // message digest object + var md = { + algorithm: 'sha1', + blockLength: 64, + digestLength: 20, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value) + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; - return false + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); } + _input = forge.util.createBuffer(); + _state = { + h0: 0x67452301, + h1: 0xEFCDAB89, + h2: 0x98BADCFE, + h3: 0x10325476, + h4: 0xC3D2E1F0 + }; + return md; + }; + // start digest automatically for first time + md.start(); - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true - } - - has (key) { - if (!this[CACHE].has(key)) return false - const hit = this[CACHE].get(key).value - return !isStale(this, hit) - } + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } - get (key) { - return get(this, key, true) - } + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } - peek (key) { - return get(this, key, false) - } + // add bytes to input buffer + _input.putBytes(msg); - pop () { - const node = this[LRU_LIST].tail - if (!node) - return null + // process bytes + _update(_state, _w, _input); - del(this, node) - return node.value - } + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } - del (key) { - del(this, this[CACHE].get(key)) - } + return md; + }; - load (arr) { - // reset the cache - this.reset() + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-1 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ - const now = Date.now() - // A previous serialized cache has the most recent items first - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l] - const expiresAt = hit.e || 0 - if (expiresAt === 0) - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - else { - const maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } - } + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. - prune () { - this[CACHE].forEach((value, key) => get(this, key, false)) - } -} + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ -const get = (self, key, doUse) => { - const node = self[CACHE].get(key) - if (node) { - const hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - return undefined - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) - node.value.now = Date.now() - self[LRU_LIST].unshiftNode(node) - } - } - return hit.value - } -} + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); -const isStale = (self, hit) => { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) - return false + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); - const diff = Date.now() - hit.now - return hit.maxAge ? diff > hit.maxAge - : self[MAX_AGE] && (diff > self[MAX_AGE]) -} + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); -const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - const prev = walker.prev - del(self, walker) - walker = prev + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; } - } -} + finalBlock.putInt32(bits); -const del = (self, node) => { - if (node) { - const hit = node.value - if (self[DISPOSE]) - self[DISPOSE](hit.key, hit.value) + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3, + h4: _state.h4 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32(s2.h0); + rval.putInt32(s2.h1); + rval.putInt32(s2.h2); + rval.putInt32(s2.h3); + rval.putInt32(s2.h4); + return rval; + }; - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} + return md; +}; -class Entry { - constructor (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 - } -} +// sha-1 padding bytes not initialized yet +var _padding = null; +var _initialized = false; -const forEachStep = (self, fn, node, thisp) => { - let hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - hit = undefined - } - if (hit) - fn.call(thisp, hit.value, hit.key, self) -} +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); -module.exports = LRUCache + // now initialized + _initialized = true; +} +/** + * Updates a SHA-1 state with the given byte buffer. + * + * @param s the SHA-1 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t, a, b, c, d, e, f, i; + var len = bytes.length(); + while(len >= 64) { + // the w array will be populated with sixteen 32-bit big-endian words + // and then extended into 80 32-bit words according to SHA-1 algorithm + // and for 32-79 using Max Locktyukhin's optimization -/***/ }), + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + e = s.h4; -/***/ 14934: -/***/ ((module) => { + // round 1 + for(i = 0; i < 16; ++i) { + t = bytes.getInt32(); + w[i] = t; + f = d ^ (b & (c ^ d)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + for(; i < 20; ++i) { + t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); + t = (t << 1) | (t >>> 31); + w[i] = t; + f = d ^ (b & (c ^ d)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 2 + for(; i < 32; ++i) { + t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); + t = (t << 1) | (t >>> 31); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + for(; i < 40; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 3 + for(; i < 60; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = (b & c) | (d & (b ^ c)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x8F1BBCDC + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 4 + for(; i < 80; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0xCA62C1D6 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } -"use strict"; + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + s.h4 = (s.h4 + e) | 0; -module.exports = function (Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value - } + len -= 64; } } /***/ }), -/***/ 58989: +/***/ 83360: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; - -module.exports = Yallist +/** + * Secure Hash Algorithm with 256-bit digest (SHA-256) implementation. + * + * See FIPS 180-2 for details. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(5454); +__nccwpck_require__(46831); -Yallist.Node = Node -Yallist.create = Yallist +var sha256 = module.exports = forge.sha256 = forge.sha256 || {}; +forge.md.sha256 = forge.md.algorithms.sha256 = sha256; -function Yallist (list) { - var self = this - if (!(self instanceof Yallist)) { - self = new Yallist() +/** + * Creates a SHA-256 message digest object. + * + * @return a message digest object. + */ +sha256.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); } - self.tail = null - self.head = null - self.length = 0 + // SHA-256 state contains eight 32-bit integers + var _state = null; - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item) - }) - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]) - } - } + // input buffer + var _input = forge.util.createBuffer(); - return self -} + // used for word storage + var _w = new Array(64); -Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list') - } + // message digest object + var md = { + algorithm: 'sha256', + blockLength: 64, + digestLength: 32, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; - var next = node.next - var prev = node.prev + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; - if (next) { - next.prev = prev - } + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x6A09E667, + h1: 0xBB67AE85, + h2: 0x3C6EF372, + h3: 0xA54FF53A, + h4: 0x510E527F, + h5: 0x9B05688C, + h6: 0x1F83D9AB, + h7: 0x5BE0CD19 + }; + return md; + }; + // start digest automatically for first time + md.start(); - if (prev) { - prev.next = next - } + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } - if (node === this.head) { - this.head = next - } - if (node === this.tail) { - this.tail = prev - } + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } - node.list.length-- - node.next = null - node.prev = null - node.list = null + // add bytes to input buffer + _input.putBytes(msg); - return next -} + // process bytes + _update(_state, _w, _input); -Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return - } + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } - if (node.list) { - node.list.removeNode(node) - } + return md; + }; - var head = this.head - node.list = this - node.next = head - if (head) { - head.prev = node - } + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-256 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ - this.head = node - if (!this.tail) { - this.tail = node - } - this.length++ -} + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. -Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return - } + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ - if (node.list) { - node.list.removeNode(node) - } + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); - var tail = this.tail - node.list = this - node.prev = tail - if (tail) { - tail.next = node - } + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); - this.tail = node - if (!this.head) { - this.head = node - } - this.length++ -} + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); -Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]) - } - return this.length -} + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; + } + finalBlock.putInt32(bits); -Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]) - } - return this.length -} + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3, + h4: _state.h4, + h5: _state.h5, + h6: _state.h6, + h7: _state.h7 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32(s2.h0); + rval.putInt32(s2.h1); + rval.putInt32(s2.h2); + rval.putInt32(s2.h3); + rval.putInt32(s2.h4); + rval.putInt32(s2.h5); + rval.putInt32(s2.h6); + rval.putInt32(s2.h7); + return rval; + }; -Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined - } + return md; +}; - var res = this.tail.value - this.tail = this.tail.prev - if (this.tail) { - this.tail.next = null - } else { - this.head = null - } - this.length-- - return res -} +// sha-256 padding bytes not initialized yet +var _padding = null; +var _initialized = false; -Yallist.prototype.shift = function () { - if (!this.head) { - return undefined - } +// table of constants +var _k = null; - var res = this.head.value - this.head = this.head.next - if (this.head) { - this.head.prev = null - } else { - this.tail = null - } - this.length-- - return res -} +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); -Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this) - walker = walker.next - } -} + // create K table for SHA-256 + _k = [ + 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, + 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, + 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, + 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, + 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, + 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, + 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, + 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, + 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, + 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, + 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, + 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, + 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, + 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, + 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, + 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2]; -Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this) - walker = walker.prev - } + // now initialized + _initialized = true; } -Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.next - } - if (i === n && walker !== null) { - return walker.value - } -} +/** + * Updates a SHA-256 state with the given byte buffer. + * + * @param s the SHA-256 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t1, t2, s0, s1, ch, maj, i, a, b, c, d, e, f, g, h; + var len = bytes.length(); + while(len >= 64) { + // the w array will be populated with sixteen 32-bit big-endian words + // and then extended into 64 32-bit words according to SHA-256 + for(i = 0; i < 16; ++i) { + w[i] = bytes.getInt32(); + } + for(; i < 64; ++i) { + // XOR word 2 words ago rot right 17, rot right 19, shft right 10 + t1 = w[i - 2]; + t1 = + ((t1 >>> 17) | (t1 << 15)) ^ + ((t1 >>> 19) | (t1 << 13)) ^ + (t1 >>> 10); + // XOR word 15 words ago rot right 7, rot right 18, shft right 3 + t2 = w[i - 15]; + t2 = + ((t2 >>> 7) | (t2 << 25)) ^ + ((t2 >>> 18) | (t2 << 14)) ^ + (t2 >>> 3); + // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^32 + w[i] = (t1 + w[i - 7] + t2 + w[i - 16]) | 0; + } -Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.prev - } - if (i === n && walker !== null) { - return walker.value - } -} + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + e = s.h4; + f = s.h5; + g = s.h6; + h = s.h7; -Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.next - } - return res -} + // round function + for(i = 0; i < 64; ++i) { + // Sum1(e) + s1 = + ((e >>> 6) | (e << 26)) ^ + ((e >>> 11) | (e << 21)) ^ + ((e >>> 25) | (e << 7)); + // Ch(e, f, g) (optimized the same way as SHA-1) + ch = g ^ (e & (f ^ g)); + // Sum0(a) + s0 = + ((a >>> 2) | (a << 30)) ^ + ((a >>> 13) | (a << 19)) ^ + ((a >>> 22) | (a << 10)); + // Maj(a, b, c) (optimized the same way as SHA-1) + maj = (a & b) | (c & (a ^ b)); -Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.prev + // main algorithm + t1 = h + s1 + ch + _k[i] + w[i]; + t2 = s0 + maj; + h = g; + g = f; + f = e; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + // can't truncate with `| 0` + e = (d + t1) >>> 0; + d = c; + c = b; + b = a; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + // can't truncate with `| 0` + a = (t1 + t2) >>> 0; + } + + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + s.h4 = (s.h4 + e) | 0; + s.h5 = (s.h5 + f) | 0; + s.h6 = (s.h6 + g) | 0; + s.h7 = (s.h7 + h) | 0; + len -= 64; } - return res } -Yallist.prototype.reduce = function (fn, initial) { - var acc - var walker = this.head - if (arguments.length > 1) { - acc = initial - } else if (this.head) { - walker = this.head.next - acc = this.head.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i) - walker = walker.next - } +/***/ }), - return acc -} +/***/ 89077: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -Yallist.prototype.reduceReverse = function (fn, initial) { - var acc - var walker = this.tail - if (arguments.length > 1) { - acc = initial - } else if (this.tail) { - walker = this.tail.prev - acc = this.tail.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } +/** + * Secure Hash Algorithm with a 1024-bit block size implementation. + * + * This includes: SHA-512, SHA-384, SHA-512/224, and SHA-512/256. For + * SHA-256 (block size 512 bits), see sha256.js. + * + * See FIPS 180-4 for details. + * + * @author Dave Longley + * + * Copyright (c) 2014-2015 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(5454); +__nccwpck_require__(46831); - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i) - walker = walker.prev - } +var sha512 = module.exports = forge.sha512 = forge.sha512 || {}; - return acc -} +// SHA-512 +forge.md.sha512 = forge.md.algorithms.sha512 = sha512; -Yallist.prototype.toArray = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value - walker = walker.next - } - return arr -} +// SHA-384 +var sha384 = forge.sha384 = forge.sha512.sha384 = forge.sha512.sha384 || {}; +sha384.create = function() { + return sha512.create('SHA-384'); +}; +forge.md.sha384 = forge.md.algorithms.sha384 = sha384; -Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value - walker = walker.prev +// SHA-512/256 +forge.sha512.sha256 = forge.sha512.sha256 || { + create: function() { + return sha512.create('SHA-512/256'); } - return arr -} +}; +forge.md['sha512/256'] = forge.md.algorithms['sha512/256'] = + forge.sha512.sha256; -Yallist.prototype.slice = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value) +// SHA-512/224 +forge.sha512.sha224 = forge.sha512.sha224 || { + create: function() { + return sha512.create('SHA-512/224'); } - return ret -} +}; +forge.md['sha512/224'] = forge.md.algorithms['sha512/224'] = + forge.sha512.sha224; -Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value) +/** + * Creates a SHA-2 message digest object. + * + * @param algorithm the algorithm to use (SHA-512, SHA-384, SHA-512/224, + * SHA-512/256). + * + * @return a message digest object. + */ +sha512.create = function(algorithm) { + // do initialization as necessary + if(!_initialized) { + _init(); } - return ret -} -Yallist.prototype.splice = function (start, deleteCount, ...nodes) { - if (start > this.length) { - start = this.length - 1 - } - if (start < 0) { - start = this.length + start; + if(typeof algorithm === 'undefined') { + algorithm = 'SHA-512'; } - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next + if(!(algorithm in _states)) { + throw new Error('Invalid SHA-512 algorithm: ' + algorithm); } - var ret = [] - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value) - walker = this.removeNode(walker) - } - if (walker === null) { - walker = this.tail - } + // SHA-512 state contains eight 64-bit integers (each as two 32-bit ints) + var _state = _states[algorithm]; + var _h = null; - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev - } + // input buffer + var _input = forge.util.createBuffer(); - for (var i = 0; i < nodes.length; i++) { - walker = insert(this, walker, nodes[i]) + // used for 64-bit word storage + var _w = new Array(80); + for(var wi = 0; wi < 80; ++wi) { + _w[wi] = new Array(2); } - return ret; -} -Yallist.prototype.reverse = function () { - var head = this.head - var tail = this.tail - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev - walker.prev = walker.next - walker.next = p + // determine digest length by algorithm name (default) + var digestLength = 64; + switch(algorithm) { + case 'SHA-384': + digestLength = 48; + break; + case 'SHA-512/256': + digestLength = 32; + break; + case 'SHA-512/224': + digestLength = 28; + break; } - this.head = tail - this.tail = head - return this -} -function insert (self, node, value) { - var inserted = node === self.head ? - new Node(value, null, node, self) : - new Node(value, node, node.next, self) + // message digest object + var md = { + // SHA-512 => sha512 + algorithm: algorithm.replace('-', '').toLowerCase(), + blockLength: 128, + digestLength: digestLength, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 16 + }; - if (inserted.next === null) { - self.tail = inserted - } - if (inserted.prev === null) { - self.head = inserted - } + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; - self.length++ + // full message length (set md.messageLength128 for backwards-compatibility) + md.fullMessageLength = md.messageLength128 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _h = new Array(_state.length); + for(var i = 0; i < _state.length; ++i) { + _h[i] = _state[i].slice(0); + } + return md; + }; + // start digest automatically for first time + md.start(); - return inserted -} + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } -function push (self, item) { - self.tail = new Node(item, self.tail, null, self) - if (!self.head) { - self.head = self.tail - } - self.length++ -} + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } -function unshift (self, item) { - self.head = new Node(item, null, self.head, self) - if (!self.tail) { - self.tail = self.head - } - self.length++ -} + // add bytes to input buffer + _input.putBytes(msg); -function Node (value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list) - } + // process bytes + _update(_h, _w, _input); - this.list = list - this.value = value + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } - if (prev) { - prev.next = this - this.prev = prev - } else { - this.prev = null - } + return md; + }; - if (next) { - next.prev = this - this.next = next - } else { - this.next = null - } -} + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-512 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ -try { - // add if support for Symbol.iterator is present - __nccwpck_require__(14934)(Yallist) -} catch (er) {} + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 896 mod 1024. In other words, + the data to be digested must be a multiple of 1024 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 16 bytes (128 + bits), that means that the last segment of the data must have 112 bytes + (896 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 896 mod 1024 because + 1024 - 128 = 896. + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 896 mod 1024, then 1024 padding bits must be added. */ -/***/ }), + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); -/***/ 4222: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); -"use strict"; + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); -/** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getPem = void 0; -const fs = __nccwpck_require__(57147); -const forge = __nccwpck_require__(20828); -const util_1 = __nccwpck_require__(73837); -const readFile = util_1.promisify(fs.readFile); -function getPem(filename, callback) { - if (callback) { - getPemAsync(filename) - .then(pem => callback(null, pem)) - .catch(err => callback(err, null)); + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; } - else { - return getPemAsync(filename); + finalBlock.putInt32(bits); + + var h = new Array(_h.length); + for(var i = 0; i < _h.length; ++i) { + h[i] = _h[i].slice(0); } -} -exports.getPem = getPem; -function getPemAsync(filename) { - return readFile(filename, { encoding: 'base64' }).then(keyp12 => { - return convertToPem(keyp12); - }); -} -/** - * Converts a P12 in base64 encoding to a pem. - * @param p12base64 String containing base64 encoded p12. - * @returns a string containing the pem. - */ -function convertToPem(p12base64) { - const p12Der = forge.util.decode64(p12base64); - const p12Asn1 = forge.asn1.fromDer(p12Der); - const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'notasecret'); - const bags = p12.getBags({ friendlyName: 'privatekey' }); - if (bags.friendlyName) { - const privateKey = bags.friendlyName[0].key; - const pem = forge.pki.privateKeyToPem(privateKey); - return pem.replace(/\r\n/g, '\n'); + _update(h, _w, finalBlock); + var rval = forge.util.createBuffer(); + var hlen; + if(algorithm === 'SHA-512') { + hlen = h.length; + } else if(algorithm === 'SHA-384') { + hlen = h.length - 2; + } else { + hlen = h.length - 4; } - else { - throw new Error('Unable to get friendly name.'); + for(var i = 0; i < hlen; ++i) { + rval.putInt32(h[i][0]); + if(i !== hlen - 1 || algorithm !== 'SHA-512/224') { + rval.putInt32(h[i][1]); + } } -} -//# sourceMappingURL=index.js.map + return rval; + }; -/***/ }), + return md; +}; -/***/ 17625: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +// sha-512 padding bytes not initialized yet +var _padding = null; +var _initialized = false; -"use strict"; +// table of constants +var _k = null; + +// initial hash states +var _states = null; /** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Initializes the constant tables. */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleToken = void 0; -const fs = __nccwpck_require__(57147); -const gaxios_1 = __nccwpck_require__(33635); -const jws = __nccwpck_require__(40958); -const path = __nccwpck_require__(71017); -const util_1 = __nccwpck_require__(73837); -const readFile = fs.readFile - ? util_1.promisify(fs.readFile) - : async () => { - // if running in the web-browser, fs.readFile may not have been shimmed. - throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); - }; -const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; -const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; -class ErrorWithCode extends Error { - constructor(message, code) { - super(message); - this.code = code; - } -} -let getPem; -class GoogleToken { - /** - * Create a GoogleToken. - * - * @param options Configuration object. - */ - constructor(options) { - this.configure(options); - } - get accessToken() { - return this.rawToken ? this.rawToken.access_token : undefined; - } - get idToken() { - return this.rawToken ? this.rawToken.id_token : undefined; - } - get tokenType() { - return this.rawToken ? this.rawToken.token_type : undefined; - } - get refreshToken() { - return this.rawToken ? this.rawToken.refresh_token : undefined; - } - /** - * Returns whether the token has expired. - * - * @return true if the token has expired, false otherwise. - */ - hasExpired() { - const now = new Date().getTime(); - if (this.rawToken && this.expiresAt) { - return now >= this.expiresAt; - } - else { - return true; - } - } - /** - * Returns whether the token will expire within eagerRefreshThresholdMillis - * - * @return true if the token will be expired within eagerRefreshThresholdMillis, false otherwise. - */ - isTokenExpiring() { - var _a; - const now = new Date().getTime(); - const eagerRefreshThresholdMillis = (_a = this.eagerRefreshThresholdMillis) !== null && _a !== void 0 ? _a : 0; - if (this.rawToken && this.expiresAt) { - return this.expiresAt <= now + eagerRefreshThresholdMillis; - } - else { - return true; - } - } - getToken(callback, opts = {}) { - if (typeof callback === 'object') { - opts = callback; - callback = undefined; - } - opts = Object.assign({ - forceRefresh: false, - }, opts); - if (callback) { - const cb = callback; - this.getTokenAsync(opts).then(t => cb(null, t), callback); - return; - } - return this.getTokenAsync(opts); - } - /** - * Given a keyFile, extract the key and client email if available - * @param keyFile Path to a json, pem, or p12 file that contains the key. - * @returns an object with privateKey and clientEmail properties - */ - async getCredentials(keyFile) { - const ext = path.extname(keyFile); - switch (ext) { - case '.json': { - const key = await readFile(keyFile, 'utf8'); - const body = JSON.parse(key); - const privateKey = body.private_key; - const clientEmail = body.client_email; - if (!privateKey || !clientEmail) { - throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); - } - return { privateKey, clientEmail }; - } - case '.der': - case '.crt': - case '.pem': { - const privateKey = await readFile(keyFile, 'utf8'); - return { privateKey }; - } - case '.p12': - case '.pfx': { - // NOTE: The loading of `google-p12-pem` is deferred for performance - // reasons. The `node-forge` npm module in `google-p12-pem` adds a fair - // bit time to overall module loading, and is likely not frequently - // used. In a future release, p12 support will be entirely removed. - if (!getPem) { - getPem = (await Promise.resolve().then(() => __nccwpck_require__(4222))).getPem; - } - const privateKey = await getPem(keyFile); - return { privateKey }; - } - default: - throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + - 'Current supported extensions are *.json, *.pem, and *.p12.', 'UNKNOWN_CERTIFICATE_TYPE'); - } - } - async getTokenAsync(opts) { - if (this.inFlightRequest && !opts.forceRefresh) { - return this.inFlightRequest; - } - try { - return await (this.inFlightRequest = this.getTokenAsyncInner(opts)); - } - finally { - this.inFlightRequest = undefined; - } - } - async getTokenAsyncInner(opts) { - if (this.isTokenExpiring() === false && opts.forceRefresh === false) { - return Promise.resolve(this.rawToken); - } - if (!this.key && !this.keyFile) { - throw new Error('No key or keyFile set.'); - } - if (!this.key && this.keyFile) { - const creds = await this.getCredentials(this.keyFile); - this.key = creds.privateKey; - this.iss = creds.clientEmail || this.iss; - if (!creds.clientEmail) { - this.ensureEmail(); - } - } - return this.requestToken(); - } - ensureEmail() { - if (!this.iss) { - throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); - } - } - revokeToken(callback) { - if (callback) { - this.revokeTokenAsync().then(() => callback(), callback); - return; - } - return this.revokeTokenAsync(); - } - async revokeTokenAsync() { - if (!this.accessToken) { - throw new Error('No token to revoke.'); - } - const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; - await gaxios_1.request({ url }); - this.configure({ - email: this.iss, - sub: this.sub, - key: this.key, - keyFile: this.keyFile, - scope: this.scope, - additionalClaims: this.additionalClaims, - }); - } - /** - * Configure the GoogleToken for re-use. - * @param {object} options Configuration object. - */ - configure(options = {}) { - this.keyFile = options.keyFile; - this.key = options.key; - this.rawToken = undefined; - this.iss = options.email || options.iss; - this.sub = options.sub; - this.additionalClaims = options.additionalClaims; - if (typeof options.scope === 'object') { - this.scope = options.scope.join(' '); - } - else { - this.scope = options.scope; - } - this.eagerRefreshThresholdMillis = options.eagerRefreshThresholdMillis; - } - /** - * Request the token from Google. - */ - async requestToken() { - const iat = Math.floor(new Date().getTime() / 1000); - const additionalClaims = this.additionalClaims || {}; - const payload = Object.assign({ - iss: this.iss, - scope: this.scope, - aud: GOOGLE_TOKEN_URL, - exp: iat + 3600, - iat, - sub: this.sub, - }, additionalClaims); - const signedJWT = jws.sign({ - header: { alg: 'RS256' }, - payload, - secret: this.key, - }); - try { - const r = await gaxios_1.request({ - method: 'POST', - url: GOOGLE_TOKEN_URL, - data: { - grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', - assertion: signedJWT, - }, - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - responseType: 'json', - }); - this.rawToken = r.data; - this.expiresAt = - r.data.expires_in === null || r.data.expires_in === undefined - ? undefined - : (iat + r.data.expires_in) * 1000; - return this.rawToken; - } - catch (e) { - this.rawToken = undefined; - this.tokenExpires = undefined; - const body = e.response && e.response.data ? e.response.data : {}; - if (body.error) { - const desc = body.error_description - ? `: ${body.error_description}` - : ''; - e.message = `${body.error}${desc}`; - } - throw e; - } - } +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 128); + + // create K table for SHA-512 + _k = [ + [0x428a2f98, 0xd728ae22], [0x71374491, 0x23ef65cd], + [0xb5c0fbcf, 0xec4d3b2f], [0xe9b5dba5, 0x8189dbbc], + [0x3956c25b, 0xf348b538], [0x59f111f1, 0xb605d019], + [0x923f82a4, 0xaf194f9b], [0xab1c5ed5, 0xda6d8118], + [0xd807aa98, 0xa3030242], [0x12835b01, 0x45706fbe], + [0x243185be, 0x4ee4b28c], [0x550c7dc3, 0xd5ffb4e2], + [0x72be5d74, 0xf27b896f], [0x80deb1fe, 0x3b1696b1], + [0x9bdc06a7, 0x25c71235], [0xc19bf174, 0xcf692694], + [0xe49b69c1, 0x9ef14ad2], [0xefbe4786, 0x384f25e3], + [0x0fc19dc6, 0x8b8cd5b5], [0x240ca1cc, 0x77ac9c65], + [0x2de92c6f, 0x592b0275], [0x4a7484aa, 0x6ea6e483], + [0x5cb0a9dc, 0xbd41fbd4], [0x76f988da, 0x831153b5], + [0x983e5152, 0xee66dfab], [0xa831c66d, 0x2db43210], + [0xb00327c8, 0x98fb213f], [0xbf597fc7, 0xbeef0ee4], + [0xc6e00bf3, 0x3da88fc2], [0xd5a79147, 0x930aa725], + [0x06ca6351, 0xe003826f], [0x14292967, 0x0a0e6e70], + [0x27b70a85, 0x46d22ffc], [0x2e1b2138, 0x5c26c926], + [0x4d2c6dfc, 0x5ac42aed], [0x53380d13, 0x9d95b3df], + [0x650a7354, 0x8baf63de], [0x766a0abb, 0x3c77b2a8], + [0x81c2c92e, 0x47edaee6], [0x92722c85, 0x1482353b], + [0xa2bfe8a1, 0x4cf10364], [0xa81a664b, 0xbc423001], + [0xc24b8b70, 0xd0f89791], [0xc76c51a3, 0x0654be30], + [0xd192e819, 0xd6ef5218], [0xd6990624, 0x5565a910], + [0xf40e3585, 0x5771202a], [0x106aa070, 0x32bbd1b8], + [0x19a4c116, 0xb8d2d0c8], [0x1e376c08, 0x5141ab53], + [0x2748774c, 0xdf8eeb99], [0x34b0bcb5, 0xe19b48a8], + [0x391c0cb3, 0xc5c95a63], [0x4ed8aa4a, 0xe3418acb], + [0x5b9cca4f, 0x7763e373], [0x682e6ff3, 0xd6b2b8a3], + [0x748f82ee, 0x5defb2fc], [0x78a5636f, 0x43172f60], + [0x84c87814, 0xa1f0ab72], [0x8cc70208, 0x1a6439ec], + [0x90befffa, 0x23631e28], [0xa4506ceb, 0xde82bde9], + [0xbef9a3f7, 0xb2c67915], [0xc67178f2, 0xe372532b], + [0xca273ece, 0xea26619c], [0xd186b8c7, 0x21c0c207], + [0xeada7dd6, 0xcde0eb1e], [0xf57d4f7f, 0xee6ed178], + [0x06f067aa, 0x72176fba], [0x0a637dc5, 0xa2c898a6], + [0x113f9804, 0xbef90dae], [0x1b710b35, 0x131c471b], + [0x28db77f5, 0x23047d84], [0x32caab7b, 0x40c72493], + [0x3c9ebe0a, 0x15c9bebc], [0x431d67c4, 0x9c100d4c], + [0x4cc5d4be, 0xcb3e42b6], [0x597f299c, 0xfc657e2a], + [0x5fcb6fab, 0x3ad6faec], [0x6c44198c, 0x4a475817] + ]; + + // initial hash states + _states = {}; + _states['SHA-512'] = [ + [0x6a09e667, 0xf3bcc908], + [0xbb67ae85, 0x84caa73b], + [0x3c6ef372, 0xfe94f82b], + [0xa54ff53a, 0x5f1d36f1], + [0x510e527f, 0xade682d1], + [0x9b05688c, 0x2b3e6c1f], + [0x1f83d9ab, 0xfb41bd6b], + [0x5be0cd19, 0x137e2179] + ]; + _states['SHA-384'] = [ + [0xcbbb9d5d, 0xc1059ed8], + [0x629a292a, 0x367cd507], + [0x9159015a, 0x3070dd17], + [0x152fecd8, 0xf70e5939], + [0x67332667, 0xffc00b31], + [0x8eb44a87, 0x68581511], + [0xdb0c2e0d, 0x64f98fa7], + [0x47b5481d, 0xbefa4fa4] + ]; + _states['SHA-512/256'] = [ + [0x22312194, 0xFC2BF72C], + [0x9F555FA3, 0xC84C64C2], + [0x2393B86B, 0x6F53B151], + [0x96387719, 0x5940EABD], + [0x96283EE2, 0xA88EFFE3], + [0xBE5E1E25, 0x53863992], + [0x2B0199FC, 0x2C85B8AA], + [0x0EB72DDC, 0x81C52CA2] + ]; + _states['SHA-512/224'] = [ + [0x8C3D37C8, 0x19544DA2], + [0x73E19966, 0x89DCD4D6], + [0x1DFAB7AE, 0x32FF9C82], + [0x679DD514, 0x582F9FCF], + [0x0F6D2B69, 0x7BD44DA8], + [0x77E36F73, 0x04C48942], + [0x3F9D85A8, 0x6A1D36C8], + [0x1112E6AD, 0x91D692A1] + ]; + + // now initialized + _initialized = true; } -exports.GoogleToken = GoogleToken; -//# sourceMappingURL=index.js.map -/***/ }), +/** + * Updates a SHA-512 state with the given byte buffer. + * + * @param s the SHA-512 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (128 byte) chunks + var t1_hi, t1_lo; + var t2_hi, t2_lo; + var s0_hi, s0_lo; + var s1_hi, s1_lo; + var ch_hi, ch_lo; + var maj_hi, maj_lo; + var a_hi, a_lo; + var b_hi, b_lo; + var c_hi, c_lo; + var d_hi, d_lo; + var e_hi, e_lo; + var f_hi, f_lo; + var g_hi, g_lo; + var h_hi, h_lo; + var i, hi, lo, w2, w7, w15, w16; + var len = bytes.length(); + while(len >= 128) { + // the w array will be populated with sixteen 64-bit big-endian words + // and then extended into 64 64-bit words according to SHA-512 + for(i = 0; i < 16; ++i) { + w[i][0] = bytes.getInt32() >>> 0; + w[i][1] = bytes.getInt32() >>> 0; + } + for(; i < 80; ++i) { + // for word 2 words ago: ROTR 19(x) ^ ROTR 61(x) ^ SHR 6(x) + w2 = w[i - 2]; + hi = w2[0]; + lo = w2[1]; -/***/ 26645: -/***/ ((module) => { + // high bits + t1_hi = ( + ((hi >>> 19) | (lo << 13)) ^ // ROTR 19 + ((lo >>> 29) | (hi << 3)) ^ // ROTR 61/(swap + ROTR 29) + (hi >>> 6)) >>> 0; // SHR 6 + // low bits + t1_lo = ( + ((hi << 13) | (lo >>> 19)) ^ // ROTR 19 + ((lo << 3) | (hi >>> 29)) ^ // ROTR 61/(swap + ROTR 29) + ((hi << 26) | (lo >>> 6))) >>> 0; // SHR 6 -"use strict"; + // for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x) + w15 = w[i - 15]; + hi = w15[0]; + lo = w15[1]; -module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf('--'); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); -}; + // high bits + t2_hi = ( + ((hi >>> 1) | (lo << 31)) ^ // ROTR 1 + ((hi >>> 8) | (lo << 24)) ^ // ROTR 8 + (hi >>> 7)) >>> 0; // SHR 7 + // low bits + t2_lo = ( + ((hi << 31) | (lo >>> 1)) ^ // ROTR 1 + ((hi << 24) | (lo >>> 8)) ^ // ROTR 8 + ((hi << 25) | (lo >>> 7))) >>> 0; // SHR 7 + // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow) + w7 = w[i - 7]; + w16 = w[i - 16]; + lo = (t1_lo + w7[1] + t2_lo + w16[1]); + w[i][0] = (t1_hi + w7[0] + t2_hi + w16[0] + + ((lo / 0x100000000) >>> 0)) >>> 0; + w[i][1] = lo >>> 0; + } -/***/ }), + // initialize hash value for this chunk + a_hi = s[0][0]; + a_lo = s[0][1]; + b_hi = s[1][0]; + b_lo = s[1][1]; + c_hi = s[2][0]; + c_lo = s[2][1]; + d_hi = s[3][0]; + d_lo = s[3][1]; + e_hi = s[4][0]; + e_lo = s[4][1]; + f_hi = s[5][0]; + f_lo = s[5][1]; + g_hi = s[6][0]; + g_lo = s[6][1]; + h_hi = s[7][0]; + h_lo = s[7][1]; -/***/ 16116: -/***/ ((module) => { + // round function + for(i = 0; i < 80; ++i) { + // Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e) + s1_hi = ( + ((e_hi >>> 14) | (e_lo << 18)) ^ // ROTR 14 + ((e_hi >>> 18) | (e_lo << 14)) ^ // ROTR 18 + ((e_lo >>> 9) | (e_hi << 23))) >>> 0; // ROTR 41/(swap + ROTR 9) + s1_lo = ( + ((e_hi << 18) | (e_lo >>> 14)) ^ // ROTR 14 + ((e_hi << 14) | (e_lo >>> 18)) ^ // ROTR 18 + ((e_lo << 23) | (e_hi >>> 9))) >>> 0; // ROTR 41/(swap + ROTR 9) -"use strict"; + // Ch(e, f, g) (optimized the same way as SHA-1) + ch_hi = (g_hi ^ (e_hi & (f_hi ^ g_hi))) >>> 0; + ch_lo = (g_lo ^ (e_lo & (f_lo ^ g_lo))) >>> 0; + // Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a) + s0_hi = ( + ((a_hi >>> 28) | (a_lo << 4)) ^ // ROTR 28 + ((a_lo >>> 2) | (a_hi << 30)) ^ // ROTR 34/(swap + ROTR 2) + ((a_lo >>> 7) | (a_hi << 25))) >>> 0; // ROTR 39/(swap + ROTR 7) + s0_lo = ( + ((a_hi << 4) | (a_lo >>> 28)) ^ // ROTR 28 + ((a_lo << 30) | (a_hi >>> 2)) ^ // ROTR 34/(swap + ROTR 2) + ((a_lo << 25) | (a_hi >>> 7))) >>> 0; // ROTR 39/(swap + ROTR 7) -var test = { - foo: {} -}; + // Maj(a, b, c) (optimized the same way as SHA-1) + maj_hi = ((a_hi & b_hi) | (c_hi & (a_hi ^ b_hi))) >>> 0; + maj_lo = ((a_lo & b_lo) | (c_lo & (a_lo ^ b_lo))) >>> 0; -var $Object = Object; + // main algorithm + // t1 = (h + s1 + ch + _k[i] + _w[i]) modulo 2^64 (carry lo overflow) + lo = (h_lo + s1_lo + ch_lo + _k[i][1] + w[i][1]); + t1_hi = (h_hi + s1_hi + ch_hi + _k[i][0] + w[i][0] + + ((lo / 0x100000000) >>> 0)) >>> 0; + t1_lo = lo >>> 0; -module.exports = function hasProto() { - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); -}; + // t2 = s0 + maj modulo 2^64 (carry lo overflow) + lo = s0_lo + maj_lo; + t2_hi = (s0_hi + maj_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + t2_lo = lo >>> 0; + h_hi = g_hi; + h_lo = g_lo; -/***/ }), + g_hi = f_hi; + g_lo = f_lo; -/***/ 35972: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + f_hi = e_hi; + f_lo = e_lo; -"use strict"; + // e = (d + t1) modulo 2^64 (carry lo overflow) + lo = d_lo + t1_lo; + e_hi = (d_hi + t1_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + e_lo = lo >>> 0; + d_hi = c_hi; + d_lo = c_lo; -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __nccwpck_require__(32682); + c_hi = b_hi; + c_lo = b_lo; -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { return false; } - if (typeof Symbol !== 'function') { return false; } - if (typeof origSymbol('foo') !== 'symbol') { return false; } - if (typeof Symbol('bar') !== 'symbol') { return false; } + b_hi = a_hi; + b_lo = a_lo; - return hasSymbolSham(); -}; + // a = (t1 + t2) modulo 2^64 (carry lo overflow) + lo = t1_lo + t2_lo; + a_hi = (t1_hi + t2_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + a_lo = lo >>> 0; + } + // update hash state (additional modulo 2^64) + lo = s[0][1] + a_lo; + s[0][0] = (s[0][0] + a_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[0][1] = lo >>> 0; -/***/ }), + lo = s[1][1] + b_lo; + s[1][0] = (s[1][0] + b_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[1][1] = lo >>> 0; -/***/ 32682: -/***/ ((module) => { + lo = s[2][1] + c_lo; + s[2][0] = (s[2][0] + c_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[2][1] = lo >>> 0; -"use strict"; + lo = s[3][1] + d_lo; + s[3][0] = (s[3][0] + d_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[3][1] = lo >>> 0; + lo = s[4][1] + e_lo; + s[4][0] = (s[4][0] + e_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[4][1] = lo >>> 0; -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } + lo = s[5][1] + f_lo; + s[5][0] = (s[5][0] + f_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[5][1] = lo >>> 0; - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } + lo = s[6][1] + g_lo; + s[6][0] = (s[6][0] + g_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[6][1] = lo >>> 0; - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } + lo = s[7][1] + h_lo; + s[7][0] = (s[7][0] + h_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[7][1] = lo >>> 0; - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } + len -= 128; + } +} - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } +/***/ }), - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } +/***/ 31841: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } +/** + * Functions to output keys in SSH-friendly formats. + * + * This is part of the Forge project which may be used under the terms of + * either the BSD License or the GNU General Public License (GPL) Version 2. + * + * See: https://github.com/digitalbazaar/forge/blob/cbebca3780658703d925b61b2caffb1d263a6c1d/LICENSE + * + * @author https://github.com/shellac + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(12004); +__nccwpck_require__(45868); +__nccwpck_require__(97671); +__nccwpck_require__(87986); +__nccwpck_require__(46831); - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } +var ssh = module.exports = forge.ssh = forge.ssh || {}; - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } +/** + * Encodes (and optionally encrypts) a private RSA key as a Putty PPK file. + * + * @param privateKey the key. + * @param passphrase a passphrase to protect the key (falsy for no encryption). + * @param comment a comment to include in the key file. + * + * @return the PPK file as a string. + */ +ssh.privateKeyToPutty = function(privateKey, passphrase, comment) { + comment = comment || ''; + passphrase = passphrase || ''; + var algorithm = 'ssh-rsa'; + var encryptionAlgorithm = (passphrase === '') ? 'none' : 'aes256-cbc'; - return true; -}; + var ppk = 'PuTTY-User-Key-File-2: ' + algorithm + '\r\n'; + ppk += 'Encryption: ' + encryptionAlgorithm + '\r\n'; + ppk += 'Comment: ' + comment + '\r\n'; + // public key into buffer for ppk + var pubbuffer = forge.util.createBuffer(); + _addStringToBuffer(pubbuffer, algorithm); + _addBigIntegerToBuffer(pubbuffer, privateKey.e); + _addBigIntegerToBuffer(pubbuffer, privateKey.n); -/***/ }), + // write public key + var pub = forge.util.encode64(pubbuffer.bytes(), 64); + var length = Math.floor(pub.length / 66) + 1; // 66 = 64 + \r\n + ppk += 'Public-Lines: ' + length + '\r\n'; + ppk += pub; -/***/ 78428: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // private key into a buffer + var privbuffer = forge.util.createBuffer(); + _addBigIntegerToBuffer(privbuffer, privateKey.d); + _addBigIntegerToBuffer(privbuffer, privateKey.p); + _addBigIntegerToBuffer(privbuffer, privateKey.q); + _addBigIntegerToBuffer(privbuffer, privateKey.qInv); -"use strict"; + // optionally encrypt the private key + var priv; + if(!passphrase) { + // use the unencrypted buffer + priv = forge.util.encode64(privbuffer.bytes(), 64); + } else { + // encrypt RSA key using passphrase + var encLen = privbuffer.length() + 16 - 1; + encLen -= encLen % 16; + // pad private key with sha1-d data -- needs to be a multiple of 16 + var padding = _sha1(privbuffer.bytes()); -var bind = __nccwpck_require__(353); + padding.truncate(padding.length() - encLen + privbuffer.length()); + privbuffer.putBuffer(padding); -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); + var aeskey = forge.util.createBuffer(); + aeskey.putBuffer(_sha1('\x00\x00\x00\x00', passphrase)); + aeskey.putBuffer(_sha1('\x00\x00\x00\x01', passphrase)); + // encrypt some bytes using CBC mode + // key is 40 bytes, so truncate *by* 8 bytes + var cipher = forge.aes.createEncryptionCipher(aeskey.truncate(8), 'CBC'); + cipher.start(forge.util.createBuffer().fillWithByte(0, 16)); + cipher.update(privbuffer.copy()); + cipher.finish(); + var encrypted = cipher.output; -/***/ }), + // Note: this appears to differ from Putty -- is forge wrong, or putty? + // due to padding we finish as an exact multiple of 16 + encrypted.truncate(16); // all padding -/***/ 79097: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + priv = forge.util.encode64(encrypted.bytes(), 64); + } -"use strict"; + // output private key + length = Math.floor(priv.length / 66) + 1; // 64 + \r\n + ppk += '\r\nPrivate-Lines: ' + length + '\r\n'; + ppk += priv; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); + // MAC + var mackey = _sha1('putty-private-key-file-mac-key', passphrase); + + var macbuffer = forge.util.createBuffer(); + _addStringToBuffer(macbuffer, algorithm); + _addStringToBuffer(macbuffer, encryptionAlgorithm); + _addStringToBuffer(macbuffer, comment); + macbuffer.putInt32(pubbuffer.length()); + macbuffer.putBuffer(pubbuffer); + macbuffer.putInt32(privbuffer.length()); + macbuffer.putBuffer(privbuffer); + + var hmac = forge.hmac.create(); + hmac.start('sha1', mackey); + hmac.update(macbuffer.bytes()); + + ppk += '\r\nPrivate-MAC: ' + hmac.digest().toHex() + '\r\n'; + + return ppk; }; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; + +/** + * Encodes a public RSA key as an OpenSSH file. + * + * @param key the key. + * @param comment a comment. + * + * @return the public key in OpenSSH format. + */ +ssh.publicKeyToOpenSSH = function(key, comment) { + var type = 'ssh-rsa'; + comment = comment || ''; + + var buffer = forge.util.createBuffer(); + _addStringToBuffer(buffer, type); + _addBigIntegerToBuffer(buffer, key.e); + _addBigIntegerToBuffer(buffer, key.n); + + return type + ' ' + forge.util.encode64(buffer.bytes()) + ' ' + comment; }; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const net_1 = __importDefault(__nccwpck_require__(41808)); -const tls_1 = __importDefault(__nccwpck_require__(24404)); -const url_1 = __importDefault(__nccwpck_require__(57310)); -const assert_1 = __importDefault(__nccwpck_require__(39491)); -const debug_1 = __importDefault(__nccwpck_require__(4703)); -const agent_base_1 = __nccwpck_require__(23677); -const parse_proxy_response_1 = __importDefault(__nccwpck_require__(21596)); -const debug = debug_1.default('https-proxy-agent:agent'); + /** - * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to - * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. + * Encodes a private RSA key as an OpenSSH file. * - * Outgoing HTTP requests are first tunneled through the proxy server using the - * `CONNECT` HTTP request method to establish a connection to the proxy server, - * and then the proxy server connects to the destination target and issues the - * HTTP request from the proxy server. + * @param key the key. + * @param passphrase a passphrase to protect the key (falsy for no encryption). * - * `https:` requests have their socket connection upgraded to TLS once - * the connection to the proxy server has been established. + * @return the public key in OpenSSH format. + */ +ssh.privateKeyToOpenSSH = function(privateKey, passphrase) { + if(!passphrase) { + return forge.pki.privateKeyToPem(privateKey); + } + // OpenSSH private key is just a legacy format, it seems + return forge.pki.encryptRsaPrivateKey(privateKey, passphrase, + {legacy: true, algorithm: 'aes128'}); +}; + +/** + * Gets the SSH fingerprint for the given public key. * - * @api public + * @param options the options to use. + * [md] the message digest object to use (defaults to forge.md.md5). + * [encoding] an alternative output encoding, such as 'hex' + * (defaults to none, outputs a byte buffer). + * [delimiter] the delimiter to use between bytes for 'hex' encoded + * output, eg: ':' (defaults to none). + * + * @return the fingerprint as a byte buffer or other encoding based on options. */ -class HttpsProxyAgent extends agent_base_1.Agent { - constructor(_opts) { - let opts; - if (typeof _opts === 'string') { - opts = url_1.default.parse(_opts); - } - else { - opts = _opts; - } - if (!opts) { - throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); - } - debug('creating new HttpsProxyAgent instance: %o', opts); - super(opts); - const proxy = Object.assign({}, opts); - // If `true`, then connect to the proxy server over TLS. - // Defaults to `false`. - this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); - // Prefer `hostname` over `host`, and set the `port` if needed. - proxy.host = proxy.hostname || proxy.host; - if (typeof proxy.port === 'string') { - proxy.port = parseInt(proxy.port, 10); - } - if (!proxy.port && proxy.host) { - proxy.port = this.secureProxy ? 443 : 80; - } - // ALPN is supported by Node.js >= v5. - // attempt to negotiate http/1.1 for proxy servers that support http/2 - if (this.secureProxy && !('ALPNProtocols' in proxy)) { - proxy.ALPNProtocols = ['http 1.1']; - } - if (proxy.host && proxy.path) { - // If both a `host` and `path` are specified then it's most likely - // the result of a `url.parse()` call... we need to remove the - // `path` portion so that `net.connect()` doesn't attempt to open - // that as a Unix socket file. - delete proxy.path; - delete proxy.pathname; - } - this.proxy = proxy; - } - /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. - * - * @api protected - */ - callback(req, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { proxy, secureProxy } = this; - // Create a socket connection to the proxy server. - let socket; - if (secureProxy) { - debug('Creating `tls.Socket`: %o', proxy); - socket = tls_1.default.connect(proxy); - } - else { - debug('Creating `net.Socket`: %o', proxy); - socket = net_1.default.connect(proxy); - } - const headers = Object.assign({}, proxy.headers); - const hostname = `${opts.host}:${opts.port}`; - let payload = `CONNECT ${hostname} HTTP/1.1\r\n`; - // Inject the `Proxy-Authorization` header if necessary. - if (proxy.auth) { - headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`; - } - // The `Host` header should only include the port - // number when it is not the default port. - let { host, port, secureEndpoint } = opts; - if (!isDefaultPort(port, secureEndpoint)) { - host += `:${port}`; - } - headers.Host = host; - headers.Connection = 'close'; - for (const name of Object.keys(headers)) { - payload += `${name}: ${headers[name]}\r\n`; - } - const proxyResponsePromise = parse_proxy_response_1.default(socket); - socket.write(`${payload}\r\n`); - const { statusCode, buffered } = yield proxyResponsePromise; - if (statusCode === 200) { - req.once('socket', resume); - if (opts.secureEndpoint) { - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - const servername = opts.servername || opts.host; - return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, - servername })); - } - return socket; - } - // Some other status code that's not 200... need to re-play the HTTP - // header "data" events onto the socket once the HTTP machinery is - // attached so that the node core `http` can parse and handle the - // error status code. - // Close the original socket, and a new "fake" socket is returned - // instead, so that the proxy doesn't get the HTTP request - // written to it (which may contain `Authorization` headers or other - // sensitive data). - // - // See: https://hackerone.com/reports/541502 - socket.destroy(); - const fakeSocket = new net_1.default.Socket({ writable: false }); - fakeSocket.readable = true; - // Need to wait for the "socket" event to re-play the "data" events. - req.once('socket', (s) => { - debug('replaying proxy buffer for failed request'); - assert_1.default(s.listenerCount('data') > 0); - // Replay the "buffered" Buffer onto the fake `socket`, since at - // this point the HTTP module machinery has been hooked up for - // the user. - s.push(buffered); - s.push(null); - }); - return fakeSocket; - }); +ssh.getPublicKeyFingerprint = function(key, options) { + options = options || {}; + var md = options.md || forge.md.md5.create(); + + var type = 'ssh-rsa'; + var buffer = forge.util.createBuffer(); + _addStringToBuffer(buffer, type); + _addBigIntegerToBuffer(buffer, key.e); + _addBigIntegerToBuffer(buffer, key.n); + + // hash public key bytes + md.start(); + md.update(buffer.getBytes()); + var digest = md.digest(); + if(options.encoding === 'hex') { + var hex = digest.toHex(); + if(options.delimiter) { + return hex.match(/.{2}/g).join(options.delimiter); } + return hex; + } else if(options.encoding === 'binary') { + return digest.getBytes(); + } else if(options.encoding) { + throw new Error('Unknown encoding "' + options.encoding + '".'); + } + return digest; +}; + +/** + * Adds len(val) then val to a buffer. + * + * @param buffer the buffer to add to. + * @param val a big integer. + */ +function _addBigIntegerToBuffer(buffer, val) { + var hexVal = val.toString(16); + // ensure 2s complement +ve + if(hexVal[0] >= '8') { + hexVal = '00' + hexVal; + } + var bytes = forge.util.hexToBytes(hexVal); + buffer.putInt32(bytes.length); + buffer.putBytes(bytes); } -exports["default"] = HttpsProxyAgent; -function resume(socket) { - socket.resume(); -} -function isDefaultPort(port, secure) { - return Boolean((!secure && port === 80) || (secure && port === 443)); -} -function isHTTPS(protocol) { - return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; + +/** + * Adds len(val) then val to a buffer. + * + * @param buffer the buffer to add to. + * @param val a string. + */ +function _addStringToBuffer(buffer, val) { + buffer.putInt32(val.length); + buffer.putString(val); } -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; + +/** + * Hashes the arguments into one value using SHA-1. + * + * @return the sha1 hash of the provided arguments. + */ +function _sha1() { + var sha = forge.md.sha1.create(); + var num = arguments.length; + for (var i = 0; i < num; ++i) { + sha.update(arguments[i]); + } + return sha.digest(); } -//# sourceMappingURL=agent.js.map + /***/ }), -/***/ 6676: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { +/***/ 60222: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * A Javascript implementation of Transport Layer Security (TLS). + * + * @author Dave Longley + * + * Copyright (c) 2009-2014 Digital Bazaar, Inc. + * + * The TLS Handshake Protocol involves the following steps: + * + * - Exchange hello messages to agree on algorithms, exchange random values, + * and check for session resumption. + * + * - Exchange the necessary cryptographic parameters to allow the client and + * server to agree on a premaster secret. + * + * - Exchange certificates and cryptographic information to allow the client + * and server to authenticate themselves. + * + * - Generate a master secret from the premaster secret and exchanged random + * values. + * + * - Provide security parameters to the record layer. + * + * - Allow the client and server to verify that their peer has calculated the + * same security parameters and that the handshake occurred without tampering + * by an attacker. + * + * Up to 4 different messages may be sent during a key exchange. The server + * certificate, the server key exchange, the client certificate, and the + * client key exchange. + * + * A typical handshake (from the client's perspective). + * + * 1. Client sends ClientHello. + * 2. Client receives ServerHello. + * 3. Client receives optional Certificate. + * 4. Client receives optional ServerKeyExchange. + * 5. Client receives ServerHelloDone. + * 6. Client sends optional Certificate. + * 7. Client sends ClientKeyExchange. + * 8. Client sends optional CertificateVerify. + * 9. Client sends ChangeCipherSpec. + * 10. Client sends Finished. + * 11. Client receives ChangeCipherSpec. + * 12. Client receives Finished. + * 13. Client sends/receives application data. + * + * To reuse an existing session: + * + * 1. Client sends ClientHello with session ID for reuse. + * 2. Client receives ServerHello with same session ID if reusing. + * 3. Client receives ChangeCipherSpec message if reusing. + * 4. Client receives Finished. + * 5. Client sends ChangeCipherSpec. + * 6. Client sends Finished. + * + * Note: Client ignores HelloRequest if in the middle of a handshake. + * + * Record Layer: + * + * The record layer fragments information blocks into TLSPlaintext records + * carrying data in chunks of 2^14 bytes or less. Client message boundaries are + * not preserved in the record layer (i.e., multiple client messages of the + * same ContentType MAY be coalesced into a single TLSPlaintext record, or a + * single message MAY be fragmented across several records). + * + * struct { + * uint8 major; + * uint8 minor; + * } ProtocolVersion; + * + * struct { + * ContentType type; + * ProtocolVersion version; + * uint16 length; + * opaque fragment[TLSPlaintext.length]; + * } TLSPlaintext; + * + * type: + * The higher-level protocol used to process the enclosed fragment. + * + * version: + * The version of the protocol being employed. TLS Version 1.2 uses version + * {3, 3}. TLS Version 1.0 uses version {3, 1}. Note that a client that + * supports multiple versions of TLS may not know what version will be + * employed before it receives the ServerHello. + * + * length: + * The length (in bytes) of the following TLSPlaintext.fragment. The length + * MUST NOT exceed 2^14 = 16384 bytes. + * + * fragment: + * The application data. This data is transparent and treated as an + * independent block to be dealt with by the higher-level protocol specified + * by the type field. + * + * Implementations MUST NOT send zero-length fragments of Handshake, Alert, or + * ChangeCipherSpec content types. Zero-length fragments of Application data + * MAY be sent as they are potentially useful as a traffic analysis + * countermeasure. + * + * Note: Data of different TLS record layer content types MAY be interleaved. + * Application data is generally of lower precedence for transmission than + * other content types. However, records MUST be delivered to the network in + * the same order as they are protected by the record layer. Recipients MUST + * receive and process interleaved application layer traffic during handshakes + * subsequent to the first one on a connection. + * + * struct { + * ContentType type; // same as TLSPlaintext.type + * ProtocolVersion version;// same as TLSPlaintext.version + * uint16 length; + * opaque fragment[TLSCompressed.length]; + * } TLSCompressed; + * + * length: + * The length (in bytes) of the following TLSCompressed.fragment. + * The length MUST NOT exceed 2^14 + 1024. + * + * fragment: + * The compressed form of TLSPlaintext.fragment. + * + * Note: A CompressionMethod.null operation is an identity operation; no fields + * are altered. In this implementation, since no compression is supported, + * uncompressed records are always the same as compressed records. + * + * Encryption Information: + * + * The encryption and MAC functions translate a TLSCompressed structure into a + * TLSCiphertext. The decryption functions reverse the process. The MAC of the + * record also includes a sequence number so that missing, extra, or repeated + * messages are detectable. + * + * struct { + * ContentType type; + * ProtocolVersion version; + * uint16 length; + * select (SecurityParameters.cipher_type) { + * case stream: GenericStreamCipher; + * case block: GenericBlockCipher; + * case aead: GenericAEADCipher; + * } fragment; + * } TLSCiphertext; + * + * type: + * The type field is identical to TLSCompressed.type. + * + * version: + * The version field is identical to TLSCompressed.version. + * + * length: + * The length (in bytes) of the following TLSCiphertext.fragment. + * The length MUST NOT exceed 2^14 + 2048. + * + * fragment: + * The encrypted form of TLSCompressed.fragment, with the MAC. + * + * Note: Only CBC Block Ciphers are supported by this implementation. + * + * The TLSCompressed.fragment structures are converted to/from block + * TLSCiphertext.fragment structures. + * + * struct { + * opaque IV[SecurityParameters.record_iv_length]; + * block-ciphered struct { + * opaque content[TLSCompressed.length]; + * opaque MAC[SecurityParameters.mac_length]; + * uint8 padding[GenericBlockCipher.padding_length]; + * uint8 padding_length; + * }; + * } GenericBlockCipher; + * + * The MAC is generated as described in Section 6.2.3.1. + * + * IV: + * The Initialization Vector (IV) SHOULD be chosen at random, and MUST be + * unpredictable. Note that in versions of TLS prior to 1.1, there was no + * IV field, and the last ciphertext block of the previous record (the "CBC + * residue") was used as the IV. This was changed to prevent the attacks + * described in [CBCATT]. For block ciphers, the IV length is of length + * SecurityParameters.record_iv_length, which is equal to the + * SecurityParameters.block_size. + * + * padding: + * Padding that is added to force the length of the plaintext to be an + * integral multiple of the block cipher's block length. The padding MAY be + * any length up to 255 bytes, as long as it results in the + * TLSCiphertext.length being an integral multiple of the block length. + * Lengths longer than necessary might be desirable to frustrate attacks on + * a protocol that are based on analysis of the lengths of exchanged + * messages. Each uint8 in the padding data vector MUST be filled with the + * padding length value. The receiver MUST check this padding and MUST use + * the bad_record_mac alert to indicate padding errors. + * + * padding_length: + * The padding length MUST be such that the total size of the + * GenericBlockCipher structure is a multiple of the cipher's block length. + * Legal values range from zero to 255, inclusive. This length specifies the + * length of the padding field exclusive of the padding_length field itself. + * + * The encrypted data length (TLSCiphertext.length) is one more than the sum of + * SecurityParameters.block_length, TLSCompressed.length, + * SecurityParameters.mac_length, and padding_length. + * + * Example: If the block length is 8 bytes, the content length + * (TLSCompressed.length) is 61 bytes, and the MAC length is 20 bytes, then the + * length before padding is 82 bytes (this does not include the IV. Thus, the + * padding length modulo 8 must be equal to 6 in order to make the total length + * an even multiple of 8 bytes (the block length). The padding length can be + * 6, 14, 22, and so on, through 254. If the padding length were the minimum + * necessary, 6, the padding would be 6 bytes, each containing the value 6. + * Thus, the last 8 octets of the GenericBlockCipher before block encryption + * would be xx 06 06 06 06 06 06 06, where xx is the last octet of the MAC. + * + * Note: With block ciphers in CBC mode (Cipher Block Chaining), it is critical + * that the entire plaintext of the record be known before any ciphertext is + * transmitted. Otherwise, it is possible for the attacker to mount the attack + * described in [CBCATT]. + * + * Implementation note: Canvel et al. [CBCTIME] have demonstrated a timing + * attack on CBC padding based on the time required to compute the MAC. In + * order to defend against this attack, implementations MUST ensure that + * record processing time is essentially the same whether or not the padding + * is correct. In general, the best way to do this is to compute the MAC even + * if the padding is incorrect, and only then reject the packet. For instance, + * if the pad appears to be incorrect, the implementation might assume a + * zero-length pad and then compute the MAC. This leaves a small timing + * channel, since MAC performance depends, to some extent, on the size of the + * data fragment, but it is not believed to be large enough to be exploitable, + * due to the large block size of existing MACs and the small size of the + * timing signal. + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(87878); +__nccwpck_require__(45868); +__nccwpck_require__(97671); +__nccwpck_require__(21117); +__nccwpck_require__(63795); +__nccwpck_require__(87088); +__nccwpck_require__(87986); +__nccwpck_require__(46831); + +/** + * Generates pseudo random bytes by mixing the result of two hash functions, + * MD5 and SHA-1. + * + * prf_TLS1(secret, label, seed) = + * P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed); + * + * Each P_hash function functions as follows: + * + * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) + + * HMAC_hash(secret, A(2) + seed) + + * HMAC_hash(secret, A(3) + seed) + ... + * A() is defined as: + * A(0) = seed + * A(i) = HMAC_hash(secret, A(i-1)) + * + * The '+' operator denotes concatenation. + * + * As many iterations A(N) as are needed are performed to generate enough + * pseudo random byte output. If an iteration creates more data than is + * necessary, then it is truncated. + * + * Therefore: + * A(1) = HMAC_hash(secret, A(0)) + * = HMAC_hash(secret, seed) + * A(2) = HMAC_hash(secret, A(1)) + * = HMAC_hash(secret, HMAC_hash(secret, seed)) + * + * Therefore: + * P_hash(secret, seed) = + * HMAC_hash(secret, HMAC_hash(secret, A(0)) + seed) + + * HMAC_hash(secret, HMAC_hash(secret, A(1)) + seed) + + * ... + * + * Therefore: + * P_hash(secret, seed) = + * HMAC_hash(secret, HMAC_hash(secret, seed) + seed) + + * HMAC_hash(secret, HMAC_hash(secret, HMAC_hash(secret, seed)) + seed) + + * ... + * + * @param secret the secret to use. + * @param label the label to use. + * @param seed the seed value to use. + * @param length the number of bytes to generate. + * + * @return the pseudo random bytes in a byte buffer. + */ +var prf_TLS1 = function(secret, label, seed, length) { + var rval = forge.util.createBuffer(); + + /* For TLS 1.0, the secret is split in half, into two secrets of equal + length. If the secret has an odd length then the last byte of the first + half will be the same as the first byte of the second. The length of the + two secrets is half of the secret rounded up. */ + var idx = (secret.length >> 1); + var slen = idx + (secret.length & 1); + var s1 = secret.substr(0, slen); + var s2 = secret.substr(idx, slen); + var ai = forge.util.createBuffer(); + var hmac = forge.hmac.create(); + seed = label + seed; + + // determine the number of iterations that must be performed to generate + // enough output bytes, md5 creates 16 byte hashes, sha1 creates 20 + var md5itr = Math.ceil(length / 16); + var sha1itr = Math.ceil(length / 20); + + // do md5 iterations + hmac.start('MD5', s1); + var md5bytes = forge.util.createBuffer(); + ai.putBytes(seed); + for(var i = 0; i < md5itr; ++i) { + // HMAC_hash(secret, A(i-1)) + hmac.start(null, null); + hmac.update(ai.getBytes()); + ai.putBuffer(hmac.digest()); + + // HMAC_hash(secret, A(i) + seed) + hmac.start(null, null); + hmac.update(ai.bytes() + seed); + md5bytes.putBuffer(hmac.digest()); + } + + // do sha1 iterations + hmac.start('SHA1', s2); + var sha1bytes = forge.util.createBuffer(); + ai.clear(); + ai.putBytes(seed); + for(var i = 0; i < sha1itr; ++i) { + // HMAC_hash(secret, A(i-1)) + hmac.start(null, null); + hmac.update(ai.getBytes()); + ai.putBuffer(hmac.digest()); + + // HMAC_hash(secret, A(i) + seed) + hmac.start(null, null); + hmac.update(ai.bytes() + seed); + sha1bytes.putBuffer(hmac.digest()); + } + + // XOR the md5 bytes with the sha1 bytes + rval.putBytes(forge.util.xorBytes( + md5bytes.getBytes(), sha1bytes.getBytes(), length)); + + return rval; +}; + +/** + * Generates pseudo random bytes using a SHA256 algorithm. For TLS 1.2. + * + * @param secret the secret to use. + * @param label the label to use. + * @param seed the seed value to use. + * @param length the number of bytes to generate. + * + * @return the pseudo random bytes in a byte buffer. + */ +var prf_sha256 = function(secret, label, seed, length) { + // FIXME: implement me for TLS 1.2 +}; + +/** + * Gets a MAC for a record using the SHA-1 hash algorithm. + * + * @param key the mac key. + * @param state the sequence number (array of two 32-bit integers). + * @param record the record. + * + * @return the sha-1 hash (20 bytes) for the given record. + */ +var hmac_sha1 = function(key, seqNum, record) { + /* MAC is computed like so: + HMAC_hash( + key, seqNum + + TLSCompressed.type + + TLSCompressed.version + + TLSCompressed.length + + TLSCompressed.fragment) + */ + var hmac = forge.hmac.create(); + hmac.start('SHA1', key); + var b = forge.util.createBuffer(); + b.putInt32(seqNum[0]); + b.putInt32(seqNum[1]); + b.putByte(record.type); + b.putByte(record.version.major); + b.putByte(record.version.minor); + b.putInt16(record.length); + b.putBytes(record.fragment.bytes()); + hmac.update(b.getBytes()); + return hmac.digest().getBytes(); +}; + +/** + * Compresses the TLSPlaintext record into a TLSCompressed record using the + * deflate algorithm. + * + * @param c the TLS connection. + * @param record the TLSPlaintext record to compress. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +var deflate = function(c, record, s) { + var rval = false; + + try { + var bytes = c.deflate(record.fragment.getBytes()); + record.fragment = forge.util.createBuffer(bytes); + record.length = bytes.length; + rval = true; + } catch(ex) { + // deflate error, fail out + } + + return rval; +}; + +/** + * Decompresses the TLSCompressed record into a TLSPlaintext record using the + * deflate algorithm. + * + * @param c the TLS connection. + * @param record the TLSCompressed record to decompress. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +var inflate = function(c, record, s) { + var rval = false; -"use strict"; + try { + var bytes = c.inflate(record.fragment.getBytes()); + record.fragment = forge.util.createBuffer(bytes); + record.length = bytes.length; + rval = true; + } catch(ex) { + // inflate error, fail out + } -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; + return rval; }; -const agent_1 = __importDefault(__nccwpck_require__(79097)); -function createHttpsProxyAgent(opts) { - return new agent_1.default(opts); -} -(function (createHttpsProxyAgent) { - createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; - createHttpsProxyAgent.prototype = agent_1.default.prototype; -})(createHttpsProxyAgent || (createHttpsProxyAgent = {})); -module.exports = createHttpsProxyAgent; -//# sourceMappingURL=index.js.map - -/***/ }), -/***/ 21596: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/** + * Reads a TLS variable-length vector from a byte buffer. + * + * Variable-length vectors are defined by specifying a subrange of legal + * lengths, inclusively, using the notation . When these are + * encoded, the actual length precedes the vector's contents in the byte + * stream. The length will be in the form of a number consuming as many bytes + * as required to hold the vector's specified maximum (ceiling) length. A + * variable-length vector with an actual length field of zero is referred to + * as an empty vector. + * + * @param b the byte buffer. + * @param lenBytes the number of bytes required to store the length. + * + * @return the resulting byte buffer. + */ +var readVector = function(b, lenBytes) { + var len = 0; + switch(lenBytes) { + case 1: + len = b.getByte(); + break; + case 2: + len = b.getInt16(); + break; + case 3: + len = b.getInt24(); + break; + case 4: + len = b.getInt32(); + break; + } -"use strict"; + // read vector bytes into a new buffer + return forge.util.createBuffer(b.getBytes(len)); +}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; +/** + * Writes a TLS variable-length vector to a byte buffer. + * + * @param b the byte buffer. + * @param lenBytes the number of bytes required to store the length. + * @param v the byte buffer vector. + */ +var writeVector = function(b, lenBytes, v) { + // encode length at the start of the vector, where the number of bytes for + // the length is the maximum number of bytes it would take to encode the + // vector's ceiling + b.putInt(v.length(), lenBytes << 3); + b.putBuffer(v); }; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const debug_1 = __importDefault(__nccwpck_require__(4703)); -const debug = debug_1.default('https-proxy-agent:parse-proxy-response'); -function parseProxyResponse(socket) { - return new Promise((resolve, reject) => { - // we need to buffer any HTTP traffic that happens with the proxy before we get - // the CONNECT response, so that if the response is anything other than an "200" - // response code, then we can re-play the "data" events on the socket once the - // HTTP parser is hooked up... - let buffersLength = 0; - const buffers = []; - function read() { - const b = socket.read(); - if (b) - ondata(b); - else - socket.once('readable', read); - } - function cleanup() { - socket.removeListener('end', onend); - socket.removeListener('error', onerror); - socket.removeListener('close', onclose); - socket.removeListener('readable', read); - } - function onclose(err) { - debug('onclose had error %o', err); - } - function onend() { - debug('onend'); - } - function onerror(err) { - cleanup(); - debug('onerror %o', err); - reject(err); - } - function ondata(b) { - buffers.push(b); - buffersLength += b.length; - const buffered = Buffer.concat(buffers, buffersLength); - const endOfHeaders = buffered.indexOf('\r\n\r\n'); - if (endOfHeaders === -1) { - // keep buffering - debug('have not received end of HTTP headers yet...'); - read(); - return; - } - const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n')); - const statusCode = +firstLine.split(' ')[1]; - debug('got proxy server response: %o', firstLine); - resolve({ - statusCode, - buffered - }); - } - socket.on('error', onerror); - socket.on('close', onclose); - socket.on('end', onend); - read(); - }); -} -exports["default"] = parseProxyResponse; -//# sourceMappingURL=parse-proxy-response.js.map -/***/ }), +/** + * The tls implementation. + */ +var tls = {}; -/***/ 68064: -/***/ ((module) => { +/** + * Version: TLS 1.2 = 3.3, TLS 1.1 = 3.2, TLS 1.0 = 3.1. Both TLS 1.1 and + * TLS 1.2 were still too new (ie: openSSL didn't implement them) at the time + * of this implementation so TLS 1.0 was implemented instead. + */ +tls.Versions = { + TLS_1_0: {major: 3, minor: 1}, + TLS_1_1: {major: 3, minor: 2}, + TLS_1_2: {major: 3, minor: 3} +}; +tls.SupportedVersions = [ + tls.Versions.TLS_1_1, + tls.Versions.TLS_1_0 +]; +tls.Version = tls.SupportedVersions[0]; -"use strict"; +/** + * Maximum fragment size. True maximum is 16384, but we fragment before that + * to allow for unusual small increases during compression. + */ +tls.MaxFragment = 16384 - 1024; +/** + * Whether this entity is considered the "client" or "server". + * enum { server, client } ConnectionEnd; + */ +tls.ConnectionEnd = { + server: 0, + client: 1 +}; -const isStream = stream => - stream !== null && - typeof stream === 'object' && - typeof stream.pipe === 'function'; +/** + * Pseudo-random function algorithm used to generate keys from the master + * secret. + * enum { tls_prf_sha256 } PRFAlgorithm; + */ +tls.PRFAlgorithm = { + tls_prf_sha256: 0 +}; -isStream.writable = stream => - isStream(stream) && - stream.writable !== false && - typeof stream._write === 'function' && - typeof stream._writableState === 'object'; +/** + * Bulk encryption algorithms. + * enum { null, rc4, des3, aes } BulkCipherAlgorithm; + */ +tls.BulkCipherAlgorithm = { + none: null, + rc4: 0, + des3: 1, + aes: 2 +}; -isStream.readable = stream => - isStream(stream) && - stream.readable !== false && - typeof stream._read === 'function' && - typeof stream._readableState === 'object'; +/** + * Cipher types. + * enum { stream, block, aead } CipherType; + */ +tls.CipherType = { + stream: 0, + block: 1, + aead: 2 +}; -isStream.duplex = stream => - isStream.writable(stream) && - isStream.readable(stream); +/** + * MAC (Message Authentication Code) algorithms. + * enum { null, hmac_md5, hmac_sha1, hmac_sha256, + * hmac_sha384, hmac_sha512} MACAlgorithm; + */ +tls.MACAlgorithm = { + none: null, + hmac_md5: 0, + hmac_sha1: 1, + hmac_sha256: 2, + hmac_sha384: 3, + hmac_sha512: 4 +}; -isStream.transform = stream => - isStream.duplex(stream) && - typeof stream._transform === 'function'; +/** + * Compression algorithms. + * enum { null(0), deflate(1), (255) } CompressionMethod; + */ +tls.CompressionMethod = { + none: 0, + deflate: 1 +}; -module.exports = isStream; +/** + * TLS record content types. + * enum { + * change_cipher_spec(20), alert(21), handshake(22), + * application_data(23), (255) + * } ContentType; + */ +tls.ContentType = { + change_cipher_spec: 20, + alert: 21, + handshake: 22, + application_data: 23, + heartbeat: 24 +}; +/** + * TLS handshake types. + * enum { + * hello_request(0), client_hello(1), server_hello(2), + * certificate(11), server_key_exchange (12), + * certificate_request(13), server_hello_done(14), + * certificate_verify(15), client_key_exchange(16), + * finished(20), (255) + * } HandshakeType; + */ +tls.HandshakeType = { + hello_request: 0, + client_hello: 1, + server_hello: 2, + certificate: 11, + server_key_exchange: 12, + certificate_request: 13, + server_hello_done: 14, + certificate_verify: 15, + client_key_exchange: 16, + finished: 20 +}; -/***/ }), +/** + * TLS Alert Protocol. + * + * enum { warning(1), fatal(2), (255) } AlertLevel; + * + * enum { + * close_notify(0), + * unexpected_message(10), + * bad_record_mac(20), + * decryption_failed(21), + * record_overflow(22), + * decompression_failure(30), + * handshake_failure(40), + * bad_certificate(42), + * unsupported_certificate(43), + * certificate_revoked(44), + * certificate_expired(45), + * certificate_unknown(46), + * illegal_parameter(47), + * unknown_ca(48), + * access_denied(49), + * decode_error(50), + * decrypt_error(51), + * export_restriction(60), + * protocol_version(70), + * insufficient_security(71), + * internal_error(80), + * user_canceled(90), + * no_renegotiation(100), + * (255) + * } AlertDescription; + * + * struct { + * AlertLevel level; + * AlertDescription description; + * } Alert; + */ +tls.Alert = {}; +tls.Alert.Level = { + warning: 1, + fatal: 2 +}; +tls.Alert.Description = { + close_notify: 0, + unexpected_message: 10, + bad_record_mac: 20, + decryption_failed: 21, + record_overflow: 22, + decompression_failure: 30, + handshake_failure: 40, + bad_certificate: 42, + unsupported_certificate: 43, + certificate_revoked: 44, + certificate_expired: 45, + certificate_unknown: 46, + illegal_parameter: 47, + unknown_ca: 48, + access_denied: 49, + decode_error: 50, + decrypt_error: 51, + export_restriction: 60, + protocol_version: 70, + insufficient_security: 71, + internal_error: 80, + user_canceled: 90, + no_renegotiation: 100 +}; -/***/ 53178: -/***/ ((__unused_webpack_module, exports) => { +/** + * TLS Heartbeat Message types. + * enum { + * heartbeat_request(1), + * heartbeat_response(2), + * (255) + * } HeartbeatMessageType; + */ +tls.HeartbeatMessageType = { + heartbeat_request: 1, + heartbeat_response: 2 +}; -(function(exports) { - "use strict"; +/** + * Supported cipher suites. + */ +tls.CipherSuites = {}; - function isArray(obj) { - if (obj !== null) { - return Object.prototype.toString.call(obj) === "[object Array]"; - } else { - return false; +/** + * Gets a supported cipher suite from its 2 byte ID. + * + * @param twoBytes two bytes in a string. + * + * @return the matching supported cipher suite or null. + */ +tls.getCipherSuite = function(twoBytes) { + var rval = null; + for(var key in tls.CipherSuites) { + var cs = tls.CipherSuites[key]; + if(cs.id[0] === twoBytes.charCodeAt(0) && + cs.id[1] === twoBytes.charCodeAt(1)) { + rval = cs; + break; } } + return rval; +}; - function isObject(obj) { - if (obj !== null) { - return Object.prototype.toString.call(obj) === "[object Object]"; - } else { - return false; - } +/** + * Called when an unexpected record is encountered. + * + * @param c the connection. + * @param record the record. + */ +tls.handleUnexpected = function(c, record) { + // if connection is client and closed, ignore unexpected messages + var ignore = (!c.open && c.entity === tls.ConnectionEnd.client); + if(!ignore) { + c.error(c, { + message: 'Unexpected message. Received TLS record out of order.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unexpected_message + } + }); } +}; - function strictDeepEqual(first, second) { - // Check the scalar case first. - if (first === second) { - return true; - } +/** + * Called when a client receives a HelloRequest record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleHelloRequest = function(c, record, length) { + // ignore renegotiation requests from the server during a handshake, but + // if handshaking, send a warning alert that renegotiation is denied + if(!c.handshaking && c.handshakes > 0) { + // send alert warning + tls.queue(c, tls.createAlert(c, { + level: tls.Alert.Level.warning, + description: tls.Alert.Description.no_renegotiation + })); + tls.flush(c); + } - // Check if they are the same type. - var firstType = Object.prototype.toString.call(first); - if (firstType !== Object.prototype.toString.call(second)) { - return false; - } - // We know that first and second have the same type so we can just check the - // first type from now on. - if (isArray(first) === true) { - // Short circuit if they're not the same length; - if (first.length !== second.length) { - return false; - } - for (var i = 0; i < first.length; i++) { - if (strictDeepEqual(first[i], second[i]) === false) { - return false; - } + // continue + c.process(); +}; + +/** + * Parses a hello message from a ClientHello or ServerHello record. + * + * @param record the record to parse. + * + * @return the parsed message. + */ +tls.parseHelloMessage = function(c, record, length) { + var msg = null; + + var client = (c.entity === tls.ConnectionEnd.client); + + // minimum of 38 bytes in message + if(length < 38) { + c.error(c, { + message: client ? + 'Invalid ServerHello message. Message too short.' : + 'Invalid ClientHello message. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter } - return true; + }); + } else { + // use 'remaining' to calculate # of remaining bytes in the message + var b = record.fragment; + var remaining = b.length(); + msg = { + version: { + major: b.getByte(), + minor: b.getByte() + }, + random: forge.util.createBuffer(b.getBytes(32)), + session_id: readVector(b, 1), + extensions: [] + }; + if(client) { + msg.cipher_suite = b.getBytes(2); + msg.compression_method = b.getByte(); + } else { + msg.cipher_suites = readVector(b, 2); + msg.compression_methods = readVector(b, 1); } - if (isObject(first) === true) { - // An object is equal if it has the same key/value pairs. - var keysSeen = {}; - for (var key in first) { - if (hasOwnProperty.call(first, key)) { - if (strictDeepEqual(first[key], second[key]) === false) { - return false; - } - keysSeen[key] = true; - } + + // read extensions if there are any bytes left in the message + remaining = length - (remaining - b.length()); + if(remaining > 0) { + // parse extensions + var exts = readVector(b, 2); + while(exts.length() > 0) { + msg.extensions.push({ + type: [exts.getByte(), exts.getByte()], + data: readVector(exts, 2) + }); } - // Now check that there aren't any keys in second that weren't - // in first. - for (var key2 in second) { - if (hasOwnProperty.call(second, key2)) { - if (keysSeen[key2] !== true) { - return false; + + // TODO: make extension support modular + if(!client) { + for(var i = 0; i < msg.extensions.length; ++i) { + var ext = msg.extensions[i]; + + // support SNI extension + if(ext.type[0] === 0x00 && ext.type[1] === 0x00) { + // get server name list + var snl = readVector(ext.data, 2); + while(snl.length() > 0) { + // read server name type + var snType = snl.getByte(); + + // only HostName type (0x00) is known, break out if + // another type is detected + if(snType !== 0x00) { + break; + } + + // add host name to server name list + c.session.extensions.server_name.serverNameList.push( + readVector(snl, 2).getBytes()); + } } } } - return true; } - return false; - } - function isFalse(obj) { - // From the spec: - // A false value corresponds to the following values: - // Empty list - // Empty object - // Empty string - // False boolean - // null value + // version already set, do not allow version change + if(c.session.version) { + if(msg.version.major !== c.session.version.major || + msg.version.minor !== c.session.version.minor) { + return c.error(c, { + message: 'TLS version change is disallowed during renegotiation.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); + } + } - // First check the scalar values. - if (obj === "" || obj === false || obj === null) { - return true; - } else if (isArray(obj) && obj.length === 0) { - // Check for an empty array. - return true; - } else if (isObject(obj)) { - // Check for an empty object. - for (var key in obj) { - // If there are any keys, then - // the object is not empty so the object - // is not false. - if (obj.hasOwnProperty(key)) { - return false; - } - } - return true; + // get the chosen (ServerHello) cipher suite + if(client) { + // FIXME: should be checking configured acceptable cipher suites + c.session.cipherSuite = tls.getCipherSuite(msg.cipher_suite); } else { - return false; + // get a supported preferred (ClientHello) cipher suite + // choose the first supported cipher suite + var tmp = forge.util.createBuffer(msg.cipher_suites.bytes()); + while(tmp.length() > 0) { + // FIXME: should be checking configured acceptable suites + // cipher suites take up 2 bytes + c.session.cipherSuite = tls.getCipherSuite(tmp.getBytes(2)); + if(c.session.cipherSuite !== null) { + break; + } + } } - } - function objValues(obj) { - var keys = Object.keys(obj); - var values = []; - for (var i = 0; i < keys.length; i++) { - values.push(obj[keys[i]]); + // cipher suite not supported + if(c.session.cipherSuite === null) { + return c.error(c, { + message: 'No cipher suites in common.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.handshake_failure + }, + cipherSuite: forge.util.bytesToHex(msg.cipher_suite) + }); } - return values; - } - - function merge(a, b) { - var merged = {}; - for (var key in a) { - merged[key] = a[key]; - } - for (var key2 in b) { - merged[key2] = b[key2]; - } - return merged; - } - var trimLeft; - if (typeof String.prototype.trimLeft === "function") { - trimLeft = function(str) { - return str.trimLeft(); - }; - } else { - trimLeft = function(str) { - return str.match(/^\s*(.*)/)[1]; - }; + // TODO: handle compression methods + if(client) { + c.session.compressionMethod = msg.compression_method; + } else { + // no compression + c.session.compressionMethod = tls.CompressionMethod.none; + } } - // Type constants used to define functions. - var TYPE_NUMBER = 0; - var TYPE_ANY = 1; - var TYPE_STRING = 2; - var TYPE_ARRAY = 3; - var TYPE_OBJECT = 4; - var TYPE_BOOLEAN = 5; - var TYPE_EXPREF = 6; - var TYPE_NULL = 7; - var TYPE_ARRAY_NUMBER = 8; - var TYPE_ARRAY_STRING = 9; - var TYPE_NAME_TABLE = { - 0: 'number', - 1: 'any', - 2: 'string', - 3: 'array', - 4: 'object', - 5: 'boolean', - 6: 'expression', - 7: 'null', - 8: 'Array', - 9: 'Array' - }; - - var TOK_EOF = "EOF"; - var TOK_UNQUOTEDIDENTIFIER = "UnquotedIdentifier"; - var TOK_QUOTEDIDENTIFIER = "QuotedIdentifier"; - var TOK_RBRACKET = "Rbracket"; - var TOK_RPAREN = "Rparen"; - var TOK_COMMA = "Comma"; - var TOK_COLON = "Colon"; - var TOK_RBRACE = "Rbrace"; - var TOK_NUMBER = "Number"; - var TOK_CURRENT = "Current"; - var TOK_EXPREF = "Expref"; - var TOK_PIPE = "Pipe"; - var TOK_OR = "Or"; - var TOK_AND = "And"; - var TOK_EQ = "EQ"; - var TOK_GT = "GT"; - var TOK_LT = "LT"; - var TOK_GTE = "GTE"; - var TOK_LTE = "LTE"; - var TOK_NE = "NE"; - var TOK_FLATTEN = "Flatten"; - var TOK_STAR = "Star"; - var TOK_FILTER = "Filter"; - var TOK_DOT = "Dot"; - var TOK_NOT = "Not"; - var TOK_LBRACE = "Lbrace"; - var TOK_LBRACKET = "Lbracket"; - var TOK_LPAREN= "Lparen"; - var TOK_LITERAL= "Literal"; + return msg; +}; - // The "&", "[", "<", ">" tokens - // are not in basicToken because - // there are two token variants - // ("&&", "[?", "<=", ">="). This is specially handled - // below. +/** + * Creates security parameters for the given connection based on the given + * hello message. + * + * @param c the TLS connection. + * @param msg the hello message. + */ +tls.createSecurityParameters = function(c, msg) { + /* Note: security params are from TLS 1.2, some values like prf_algorithm + are ignored for TLS 1.0/1.1 and the builtin as specified in the spec is + used. */ - var basicTokens = { - ".": TOK_DOT, - "*": TOK_STAR, - ",": TOK_COMMA, - ":": TOK_COLON, - "{": TOK_LBRACE, - "}": TOK_RBRACE, - "]": TOK_RBRACKET, - "(": TOK_LPAREN, - ")": TOK_RPAREN, - "@": TOK_CURRENT - }; + // TODO: handle other options from server when more supported - var operatorStartToken = { - "<": true, - ">": true, - "=": true, - "!": true - }; + // get client and server randoms + var client = (c.entity === tls.ConnectionEnd.client); + var msgRandom = msg.random.bytes(); + var cRandom = client ? c.session.sp.client_random : msgRandom; + var sRandom = client ? msgRandom : tls.createRandom().getBytes(); - var skipChars = { - " ": true, - "\t": true, - "\n": true + // create new security parameters + c.session.sp = { + entity: c.entity, + prf_algorithm: tls.PRFAlgorithm.tls_prf_sha256, + bulk_cipher_algorithm: null, + cipher_type: null, + enc_key_length: null, + block_length: null, + fixed_iv_length: null, + record_iv_length: null, + mac_algorithm: null, + mac_length: null, + mac_key_length: null, + compression_algorithm: c.session.compressionMethod, + pre_master_secret: null, + master_secret: null, + client_random: cRandom, + server_random: sRandom }; +}; - - function isAlpha(ch) { - return (ch >= "a" && ch <= "z") || - (ch >= "A" && ch <= "Z") || - ch === "_"; - } - - function isNum(ch) { - return (ch >= "0" && ch <= "9") || - ch === "-"; - } - function isAlphaNum(ch) { - return (ch >= "a" && ch <= "z") || - (ch >= "A" && ch <= "Z") || - (ch >= "0" && ch <= "9") || - ch === "_"; +/** + * Called when a client receives a ServerHello record. + * + * When a ServerHello message will be sent: + * The server will send this message in response to a client hello message + * when it was able to find an acceptable set of algorithms. If it cannot + * find such a match, it will respond with a handshake failure alert. + * + * uint24 length; + * struct { + * ProtocolVersion server_version; + * Random random; + * SessionID session_id; + * CipherSuite cipher_suite; + * CompressionMethod compression_method; + * select(extensions_present) { + * case false: + * struct {}; + * case true: + * Extension extensions<0..2^16-1>; + * }; + * } ServerHello; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerHello = function(c, record, length) { + var msg = tls.parseHelloMessage(c, record, length); + if(c.fail) { + return; } - function Lexer() { + // ensure server version is compatible + if(msg.version.minor <= c.version.minor) { + c.version.minor = msg.version.minor; + } else { + return c.error(c, { + message: 'Incompatible TLS version.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); } - Lexer.prototype = { - tokenize: function(stream) { - var tokens = []; - this._current = 0; - var start; - var identifier; - var token; - while (this._current < stream.length) { - if (isAlpha(stream[this._current])) { - start = this._current; - identifier = this._consumeUnquotedIdentifier(stream); - tokens.push({type: TOK_UNQUOTEDIDENTIFIER, - value: identifier, - start: start}); - } else if (basicTokens[stream[this._current]] !== undefined) { - tokens.push({type: basicTokens[stream[this._current]], - value: stream[this._current], - start: this._current}); - this._current++; - } else if (isNum(stream[this._current])) { - token = this._consumeNumber(stream); - tokens.push(token); - } else if (stream[this._current] === "[") { - // No need to increment this._current. This happens - // in _consumeLBracket - token = this._consumeLBracket(stream); - tokens.push(token); - } else if (stream[this._current] === "\"") { - start = this._current; - identifier = this._consumeQuotedIdentifier(stream); - tokens.push({type: TOK_QUOTEDIDENTIFIER, - value: identifier, - start: start}); - } else if (stream[this._current] === "'") { - start = this._current; - identifier = this._consumeRawStringLiteral(stream); - tokens.push({type: TOK_LITERAL, - value: identifier, - start: start}); - } else if (stream[this._current] === "`") { - start = this._current; - var literal = this._consumeLiteral(stream); - tokens.push({type: TOK_LITERAL, - value: literal, - start: start}); - } else if (operatorStartToken[stream[this._current]] !== undefined) { - tokens.push(this._consumeOperator(stream)); - } else if (skipChars[stream[this._current]] !== undefined) { - // Ignore whitespace. - this._current++; - } else if (stream[this._current] === "&") { - start = this._current; - this._current++; - if (stream[this._current] === "&") { - this._current++; - tokens.push({type: TOK_AND, value: "&&", start: start}); - } else { - tokens.push({type: TOK_EXPREF, value: "&", start: start}); - } - } else if (stream[this._current] === "|") { - start = this._current; - this._current++; - if (stream[this._current] === "|") { - this._current++; - tokens.push({type: TOK_OR, value: "||", start: start}); - } else { - tokens.push({type: TOK_PIPE, value: "|", start: start}); - } - } else { - var error = new Error("Unknown character:" + stream[this._current]); - error.name = "LexerError"; - throw error; - } - } - return tokens; - }, - - _consumeUnquotedIdentifier: function(stream) { - var start = this._current; - this._current++; - while (this._current < stream.length && isAlphaNum(stream[this._current])) { - this._current++; - } - return stream.slice(start, this._current); - }, - - _consumeQuotedIdentifier: function(stream) { - var start = this._current; - this._current++; - var maxLength = stream.length; - while (stream[this._current] !== "\"" && this._current < maxLength) { - // You can escape a double quote and you can escape an escape. - var current = this._current; - if (stream[current] === "\\" && (stream[current + 1] === "\\" || - stream[current + 1] === "\"")) { - current += 2; - } else { - current++; - } - this._current = current; - } - this._current++; - return JSON.parse(stream.slice(start, this._current)); - }, - - _consumeRawStringLiteral: function(stream) { - var start = this._current; - this._current++; - var maxLength = stream.length; - while (stream[this._current] !== "'" && this._current < maxLength) { - // You can escape a single quote and you can escape an escape. - var current = this._current; - if (stream[current] === "\\" && (stream[current + 1] === "\\" || - stream[current + 1] === "'")) { - current += 2; - } else { - current++; - } - this._current = current; - } - this._current++; - var literal = stream.slice(start + 1, this._current - 1); - return literal.replace("\\'", "'"); - }, - - _consumeNumber: function(stream) { - var start = this._current; - this._current++; - var maxLength = stream.length; - while (isNum(stream[this._current]) && this._current < maxLength) { - this._current++; - } - var value = parseInt(stream.slice(start, this._current)); - return {type: TOK_NUMBER, value: value, start: start}; - }, - - _consumeLBracket: function(stream) { - var start = this._current; - this._current++; - if (stream[this._current] === "?") { - this._current++; - return {type: TOK_FILTER, value: "[?", start: start}; - } else if (stream[this._current] === "]") { - this._current++; - return {type: TOK_FLATTEN, value: "[]", start: start}; - } else { - return {type: TOK_LBRACKET, value: "[", start: start}; - } - }, - - _consumeOperator: function(stream) { - var start = this._current; - var startingChar = stream[start]; - this._current++; - if (startingChar === "!") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_NE, value: "!=", start: start}; - } else { - return {type: TOK_NOT, value: "!", start: start}; - } - } else if (startingChar === "<") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_LTE, value: "<=", start: start}; - } else { - return {type: TOK_LT, value: "<", start: start}; - } - } else if (startingChar === ">") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_GTE, value: ">=", start: start}; - } else { - return {type: TOK_GT, value: ">", start: start}; - } - } else if (startingChar === "=") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_EQ, value: "==", start: start}; - } - } - }, - _consumeLiteral: function(stream) { - this._current++; - var start = this._current; - var maxLength = stream.length; - var literal; - while(stream[this._current] !== "`" && this._current < maxLength) { - // You can escape a literal char or you can escape the escape. - var current = this._current; - if (stream[current] === "\\" && (stream[current + 1] === "\\" || - stream[current + 1] === "`")) { - current += 2; - } else { - current++; - } - this._current = current; - } - var literalString = trimLeft(stream.slice(start, this._current)); - literalString = literalString.replace("\\`", "`"); - if (this._looksLikeJSON(literalString)) { - literal = JSON.parse(literalString); - } else { - // Try to JSON parse it as "" - literal = JSON.parse("\"" + literalString + "\""); - } - // +1 gets us to the ending "`", +1 to move on to the next char. - this._current++; - return literal; - }, + // indicate session version has been set + c.session.version = c.version; - _looksLikeJSON: function(literalString) { - var startingChars = "[{\""; - var jsonLiterals = ["true", "false", "null"]; - var numberLooking = "-0123456789"; + // get the session ID from the message + var sessionId = msg.session_id.bytes(); - if (literalString === "") { - return false; - } else if (startingChars.indexOf(literalString[0]) >= 0) { - return true; - } else if (jsonLiterals.indexOf(literalString) >= 0) { - return true; - } else if (numberLooking.indexOf(literalString[0]) >= 0) { - try { - JSON.parse(literalString); - return true; - } catch (ex) { - return false; - } - } else { - return false; - } - } - }; + // if the session ID is not blank and matches the cached one, resume + // the session + if(sessionId.length > 0 && sessionId === c.session.id) { + // resuming session, expect a ChangeCipherSpec next + c.expect = SCC; + c.session.resuming = true; - var bindingPower = {}; - bindingPower[TOK_EOF] = 0; - bindingPower[TOK_UNQUOTEDIDENTIFIER] = 0; - bindingPower[TOK_QUOTEDIDENTIFIER] = 0; - bindingPower[TOK_RBRACKET] = 0; - bindingPower[TOK_RPAREN] = 0; - bindingPower[TOK_COMMA] = 0; - bindingPower[TOK_RBRACE] = 0; - bindingPower[TOK_NUMBER] = 0; - bindingPower[TOK_CURRENT] = 0; - bindingPower[TOK_EXPREF] = 0; - bindingPower[TOK_PIPE] = 1; - bindingPower[TOK_OR] = 2; - bindingPower[TOK_AND] = 3; - bindingPower[TOK_EQ] = 5; - bindingPower[TOK_GT] = 5; - bindingPower[TOK_LT] = 5; - bindingPower[TOK_GTE] = 5; - bindingPower[TOK_LTE] = 5; - bindingPower[TOK_NE] = 5; - bindingPower[TOK_FLATTEN] = 9; - bindingPower[TOK_STAR] = 20; - bindingPower[TOK_FILTER] = 21; - bindingPower[TOK_DOT] = 40; - bindingPower[TOK_NOT] = 45; - bindingPower[TOK_LBRACE] = 50; - bindingPower[TOK_LBRACKET] = 55; - bindingPower[TOK_LPAREN] = 60; + // get new server random + c.session.sp.server_random = msg.random.bytes(); + } else { + // not resuming, expect a server Certificate message next + c.expect = SCE; + c.session.resuming = false; - function Parser() { + // create new security parameters + tls.createSecurityParameters(c, msg); } - Parser.prototype = { - parse: function(expression) { - this._loadTokens(expression); - this.index = 0; - var ast = this.expression(0); - if (this._lookahead(0) !== TOK_EOF) { - var t = this._lookaheadToken(0); - var error = new Error( - "Unexpected token type: " + t.type + ", value: " + t.value); - error.name = "ParserError"; - throw error; - } - return ast; - }, + // set new session ID + c.session.id = sessionId; - _loadTokens: function(expression) { - var lexer = new Lexer(); - var tokens = lexer.tokenize(expression); - tokens.push({type: TOK_EOF, value: "", start: expression.length}); - this.tokens = tokens; - }, + // continue + c.process(); +}; - expression: function(rbp) { - var leftToken = this._lookaheadToken(0); - this._advance(); - var left = this.nud(leftToken); - var currentToken = this._lookahead(0); - while (rbp < bindingPower[currentToken]) { - this._advance(); - left = this.led(currentToken, left); - currentToken = this._lookahead(0); - } - return left; - }, +/** + * Called when a server receives a ClientHello record. + * + * When a ClientHello message will be sent: + * When a client first connects to a server it is required to send the + * client hello as its first message. The client can also send a client + * hello in response to a hello request or on its own initiative in order + * to renegotiate the security parameters in an existing connection. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleClientHello = function(c, record, length) { + var msg = tls.parseHelloMessage(c, record, length); + if(c.fail) { + return; + } - _lookahead: function(number) { - return this.tokens[this.index + number].type; - }, + // get the session ID from the message + var sessionId = msg.session_id.bytes(); - _lookaheadToken: function(number) { - return this.tokens[this.index + number]; - }, + // see if the given session ID is in the cache + var session = null; + if(c.sessionCache) { + session = c.sessionCache.getSession(sessionId); + if(session === null) { + // session ID not found + sessionId = ''; + } else if(session.version.major !== msg.version.major || + session.version.minor > msg.version.minor) { + // if session version is incompatible with client version, do not resume + session = null; + sessionId = ''; + } + } - _advance: function() { - this.index++; - }, + // no session found to resume, generate a new session ID + if(sessionId.length === 0) { + sessionId = forge.random.getBytes(32); + } - nud: function(token) { - var left; - var right; - var expression; - switch (token.type) { - case TOK_LITERAL: - return {type: "Literal", value: token.value}; - case TOK_UNQUOTEDIDENTIFIER: - return {type: "Field", name: token.value}; - case TOK_QUOTEDIDENTIFIER: - var node = {type: "Field", name: token.value}; - if (this._lookahead(0) === TOK_LPAREN) { - throw new Error("Quoted identifier not allowed for function names."); - } - return node; - case TOK_NOT: - right = this.expression(bindingPower.Not); - return {type: "NotExpression", children: [right]}; - case TOK_STAR: - left = {type: "Identity"}; - right = null; - if (this._lookahead(0) === TOK_RBRACKET) { - // This can happen in a multiselect, - // [a, b, *] - right = {type: "Identity"}; - } else { - right = this._parseProjectionRHS(bindingPower.Star); - } - return {type: "ValueProjection", children: [left, right]}; - case TOK_FILTER: - return this.led(token.type, {type: "Identity"}); - case TOK_LBRACE: - return this._parseMultiselectHash(); - case TOK_FLATTEN: - left = {type: TOK_FLATTEN, children: [{type: "Identity"}]}; - right = this._parseProjectionRHS(bindingPower.Flatten); - return {type: "Projection", children: [left, right]}; - case TOK_LBRACKET: - if (this._lookahead(0) === TOK_NUMBER || this._lookahead(0) === TOK_COLON) { - right = this._parseIndexExpression(); - return this._projectIfSlice({type: "Identity"}, right); - } else if (this._lookahead(0) === TOK_STAR && - this._lookahead(1) === TOK_RBRACKET) { - this._advance(); - this._advance(); - right = this._parseProjectionRHS(bindingPower.Star); - return {type: "Projection", - children: [{type: "Identity"}, right]}; - } - return this._parseMultiselectList(); - case TOK_CURRENT: - return {type: TOK_CURRENT}; - case TOK_EXPREF: - expression = this.expression(bindingPower.Expref); - return {type: "ExpressionReference", children: [expression]}; - case TOK_LPAREN: - var args = []; - while (this._lookahead(0) !== TOK_RPAREN) { - if (this._lookahead(0) === TOK_CURRENT) { - expression = {type: TOK_CURRENT}; - this._advance(); - } else { - expression = this.expression(0); - } - args.push(expression); - } - this._match(TOK_RPAREN); - return args[0]; - default: - this._errorToken(token); - } - }, + // update session + c.session.id = sessionId; + c.session.clientHelloVersion = msg.version; + c.session.sp = {}; + if(session) { + // use version and security parameters from resumed session + c.version = c.session.version = session.version; + c.session.sp = session.sp; + } else { + // use highest compatible minor version + var version; + for(var i = 1; i < tls.SupportedVersions.length; ++i) { + version = tls.SupportedVersions[i]; + if(version.minor <= msg.version.minor) { + break; + } + } + c.version = {major: version.major, minor: version.minor}; + c.session.version = c.version; + } - led: function(tokenName, left) { - var right; - switch(tokenName) { - case TOK_DOT: - var rbp = bindingPower.Dot; - if (this._lookahead(0) !== TOK_STAR) { - right = this._parseDotRHS(rbp); - return {type: "Subexpression", children: [left, right]}; - } - // Creating a projection. - this._advance(); - right = this._parseProjectionRHS(rbp); - return {type: "ValueProjection", children: [left, right]}; - case TOK_PIPE: - right = this.expression(bindingPower.Pipe); - return {type: TOK_PIPE, children: [left, right]}; - case TOK_OR: - right = this.expression(bindingPower.Or); - return {type: "OrExpression", children: [left, right]}; - case TOK_AND: - right = this.expression(bindingPower.And); - return {type: "AndExpression", children: [left, right]}; - case TOK_LPAREN: - var name = left.name; - var args = []; - var expression, node; - while (this._lookahead(0) !== TOK_RPAREN) { - if (this._lookahead(0) === TOK_CURRENT) { - expression = {type: TOK_CURRENT}; - this._advance(); - } else { - expression = this.expression(0); - } - if (this._lookahead(0) === TOK_COMMA) { - this._match(TOK_COMMA); - } - args.push(expression); - } - this._match(TOK_RPAREN); - node = {type: "Function", name: name, children: args}; - return node; - case TOK_FILTER: - var condition = this.expression(0); - this._match(TOK_RBRACKET); - if (this._lookahead(0) === TOK_FLATTEN) { - right = {type: "Identity"}; - } else { - right = this._parseProjectionRHS(bindingPower.Filter); - } - return {type: "FilterProjection", children: [left, right, condition]}; - case TOK_FLATTEN: - var leftNode = {type: TOK_FLATTEN, children: [left]}; - var rightNode = this._parseProjectionRHS(bindingPower.Flatten); - return {type: "Projection", children: [leftNode, rightNode]}; - case TOK_EQ: - case TOK_NE: - case TOK_GT: - case TOK_GTE: - case TOK_LT: - case TOK_LTE: - return this._parseComparator(left, tokenName); - case TOK_LBRACKET: - var token = this._lookaheadToken(0); - if (token.type === TOK_NUMBER || token.type === TOK_COLON) { - right = this._parseIndexExpression(); - return this._projectIfSlice(left, right); - } - this._match(TOK_STAR); - this._match(TOK_RBRACKET); - right = this._parseProjectionRHS(bindingPower.Star); - return {type: "Projection", children: [left, right]}; - default: - this._errorToken(this._lookaheadToken(0)); - } - }, + // if a session is set, resume it + if(session !== null) { + // resuming session, expect a ChangeCipherSpec next + c.expect = CCC; + c.session.resuming = true; - _match: function(tokenType) { - if (this._lookahead(0) === tokenType) { - this._advance(); - } else { - var t = this._lookaheadToken(0); - var error = new Error("Expected " + tokenType + ", got: " + t.type); - error.name = "ParserError"; - throw error; - } - }, + // get new client random + c.session.sp.client_random = msg.random.bytes(); + } else { + // not resuming, expect a Certificate or ClientKeyExchange + c.expect = (c.verifyClient !== false) ? CCE : CKE; + c.session.resuming = false; - _errorToken: function(token) { - var error = new Error("Invalid token (" + - token.type + "): \"" + - token.value + "\""); - error.name = "ParserError"; - throw error; - }, + // create new security parameters + tls.createSecurityParameters(c, msg); + } + // connection now open + c.open = true; - _parseIndexExpression: function() { - if (this._lookahead(0) === TOK_COLON || this._lookahead(1) === TOK_COLON) { - return this._parseSliceExpression(); - } else { - var node = { - type: "Index", - value: this._lookaheadToken(0).value}; - this._advance(); - this._match(TOK_RBRACKET); - return node; - } - }, + // queue server hello + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerHello(c) + })); - _projectIfSlice: function(left, right) { - var indexExpr = {type: "IndexExpression", children: [left, right]}; - if (right.type === "Slice") { - return { - type: "Projection", - children: [indexExpr, this._parseProjectionRHS(bindingPower.Star)] - }; - } else { - return indexExpr; - } - }, + if(c.session.resuming) { + // queue change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); - _parseSliceExpression: function() { - // [start:end:step] where each part is optional, as well as the last - // colon. - var parts = [null, null, null]; - var index = 0; - var currentToken = this._lookahead(0); - while (currentToken !== TOK_RBRACKET && index < 3) { - if (currentToken === TOK_COLON) { - index++; - this._advance(); - } else if (currentToken === TOK_NUMBER) { - parts[index] = this._lookaheadToken(0).value; - this._advance(); - } else { - var t = this._lookahead(0); - var error = new Error("Syntax error, unexpected token: " + - t.value + "(" + t.type + ")"); - error.name = "Parsererror"; - throw error; - } - currentToken = this._lookahead(0); - } - this._match(TOK_RBRACKET); - return { - type: "Slice", - children: parts - }; - }, + // create pending state + c.state.pending = tls.createConnectionState(c); - _parseComparator: function(left, comparator) { - var right = this.expression(bindingPower[comparator]); - return {type: "Comparator", name: comparator, children: [left, right]}; - }, + // change current write state to pending write state + c.state.current.write = c.state.pending.write; - _parseDotRHS: function(rbp) { - var lookahead = this._lookahead(0); - var exprTokens = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER, TOK_STAR]; - if (exprTokens.indexOf(lookahead) >= 0) { - return this.expression(rbp); - } else if (lookahead === TOK_LBRACKET) { - this._match(TOK_LBRACKET); - return this._parseMultiselectList(); - } else if (lookahead === TOK_LBRACE) { - this._match(TOK_LBRACE); - return this._parseMultiselectHash(); - } - }, + // queue finished + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + } else { + // queue server certificate + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificate(c) + })); - _parseProjectionRHS: function(rbp) { - var right; - if (bindingPower[this._lookahead(0)] < 10) { - right = {type: "Identity"}; - } else if (this._lookahead(0) === TOK_LBRACKET) { - right = this.expression(rbp); - } else if (this._lookahead(0) === TOK_FILTER) { - right = this.expression(rbp); - } else if (this._lookahead(0) === TOK_DOT) { - this._match(TOK_DOT); - right = this._parseDotRHS(rbp); - } else { - var t = this._lookaheadToken(0); - var error = new Error("Sytanx error, unexpected token: " + - t.value + "(" + t.type + ")"); - error.name = "ParserError"; - throw error; - } - return right; - }, + if(!c.fail) { + // queue server key exchange + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerKeyExchange(c) + })); - _parseMultiselectList: function() { - var expressions = []; - while (this._lookahead(0) !== TOK_RBRACKET) { - var expression = this.expression(0); - expressions.push(expression); - if (this._lookahead(0) === TOK_COMMA) { - this._match(TOK_COMMA); - if (this._lookahead(0) === TOK_RBRACKET) { - throw new Error("Unexpected token Rbracket"); - } - } - } - this._match(TOK_RBRACKET); - return {type: "MultiSelectList", children: expressions}; - }, + // request client certificate if set + if(c.verifyClient !== false) { + // queue certificate request + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificateRequest(c) + })); + } - _parseMultiselectHash: function() { - var pairs = []; - var identifierTypes = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER]; - var keyToken, keyName, value, node; - for (;;) { - keyToken = this._lookaheadToken(0); - if (identifierTypes.indexOf(keyToken.type) < 0) { - throw new Error("Expecting an identifier token, got: " + - keyToken.type); - } - keyName = keyToken.value; - this._advance(); - this._match(TOK_COLON); - value = this.expression(0); - node = {type: "KeyValuePair", name: keyName, value: value}; - pairs.push(node); - if (this._lookahead(0) === TOK_COMMA) { - this._match(TOK_COMMA); - } else if (this._lookahead(0) === TOK_RBRACE) { - this._match(TOK_RBRACE); - break; - } - } - return {type: "MultiSelectHash", children: pairs}; + // queue server hello done + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerHelloDone(c) + })); + } + } + + // send records + tls.flush(c); + + // continue + c.process(); +}; + +/** + * Called when a client receives a Certificate record. + * + * When this message will be sent: + * The server must send a certificate whenever the agreed-upon key exchange + * method is not an anonymous one. This message will always immediately + * follow the server hello message. + * + * Meaning of this message: + * The certificate type must be appropriate for the selected cipher suite's + * key exchange algorithm, and is generally an X.509v3 certificate. It must + * contain a key which matches the key exchange method, as follows. Unless + * otherwise specified, the signing algorithm for the certificate must be + * the same as the algorithm for the certificate key. Unless otherwise + * specified, the public key may be of any length. + * + * opaque ASN.1Cert<1..2^24-1>; + * struct { + * ASN.1Cert certificate_list<1..2^24-1>; + * } Certificate; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificate = function(c, record, length) { + // minimum of 3 bytes in message + if(length < 3) { + return c.error(c, { + message: 'Invalid Certificate message. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter } + }); + } + + var b = record.fragment; + var msg = { + certificate_list: readVector(b, 3) }; + /* The sender's certificate will be first in the list (chain), each + subsequent one that follows will certify the previous one, but root + certificates (self-signed) that specify the certificate authority may + be omitted under the assumption that clients must already possess it. */ + var cert, asn1; + var certs = []; + try { + while(msg.certificate_list.length() > 0) { + // each entry in msg.certificate_list is a vector with 3 len bytes + cert = readVector(msg.certificate_list, 3); + asn1 = forge.asn1.fromDer(cert); + cert = forge.pki.certificateFromAsn1(asn1, true); + certs.push(cert); + } + } catch(ex) { + return c.error(c, { + message: 'Could not parse certificate list.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + } + }); + } - function TreeInterpreter(runtime) { - this.runtime = runtime; + // ensure at least 1 certificate was provided if in client-mode + // or if verifyClient was set to true to require a certificate + // (as opposed to 'optional') + var client = (c.entity === tls.ConnectionEnd.client); + if((client || c.verifyClient === true) && certs.length === 0) { + // error, no certificate + c.error(c, { + message: client ? + 'No server certificate provided.' : + 'No client certificate provided.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } else if(certs.length === 0) { + // no certs to verify + // expect a ServerKeyExchange or ClientKeyExchange message next + c.expect = client ? SKE : CKE; + } else { + // save certificate in session + if(client) { + c.session.serverCertificate = certs[0]; + } else { + c.session.clientCertificate = certs[0]; + } + + if(tls.verifyCertificateChain(c, certs)) { + // expect a ServerKeyExchange or ClientKeyExchange message next + c.expect = client ? SKE : CKE; + } } - TreeInterpreter.prototype = { - search: function(node, value) { - return this.visit(node, value); - }, + // continue + c.process(); +}; - visit: function(node, value) { - var matched, current, result, first, second, field, left, right, collected, i; - switch (node.type) { - case "Field": - if (value !== null && isObject(value)) { - field = value[node.name]; - if (field === undefined) { - return null; - } else { - return field; - } - } - return null; - case "Subexpression": - result = this.visit(node.children[0], value); - for (i = 1; i < node.children.length; i++) { - result = this.visit(node.children[1], result); - if (result === null) { - return null; - } - } - return result; - case "IndexExpression": - left = this.visit(node.children[0], value); - right = this.visit(node.children[1], left); - return right; - case "Index": - if (!isArray(value)) { - return null; - } - var index = node.value; - if (index < 0) { - index = value.length + index; - } - result = value[index]; - if (result === undefined) { - result = null; - } - return result; - case "Slice": - if (!isArray(value)) { - return null; - } - var sliceParams = node.children.slice(0); - var computed = this.computeSliceParams(value.length, sliceParams); - var start = computed[0]; - var stop = computed[1]; - var step = computed[2]; - result = []; - if (step > 0) { - for (i = start; i < stop; i += step) { - result.push(value[i]); - } - } else { - for (i = start; i > stop; i += step) { - result.push(value[i]); - } - } - return result; - case "Projection": - // Evaluate left child. - var base = this.visit(node.children[0], value); - if (!isArray(base)) { - return null; - } - collected = []; - for (i = 0; i < base.length; i++) { - current = this.visit(node.children[1], base[i]); - if (current !== null) { - collected.push(current); - } - } - return collected; - case "ValueProjection": - // Evaluate left child. - base = this.visit(node.children[0], value); - if (!isObject(base)) { - return null; - } - collected = []; - var values = objValues(base); - for (i = 0; i < values.length; i++) { - current = this.visit(node.children[1], values[i]); - if (current !== null) { - collected.push(current); - } - } - return collected; - case "FilterProjection": - base = this.visit(node.children[0], value); - if (!isArray(base)) { - return null; - } - var filtered = []; - var finalResults = []; - for (i = 0; i < base.length; i++) { - matched = this.visit(node.children[2], base[i]); - if (!isFalse(matched)) { - filtered.push(base[i]); - } - } - for (var j = 0; j < filtered.length; j++) { - current = this.visit(node.children[1], filtered[j]); - if (current !== null) { - finalResults.push(current); - } - } - return finalResults; - case "Comparator": - first = this.visit(node.children[0], value); - second = this.visit(node.children[1], value); - switch(node.name) { - case TOK_EQ: - result = strictDeepEqual(first, second); - break; - case TOK_NE: - result = !strictDeepEqual(first, second); - break; - case TOK_GT: - result = first > second; - break; - case TOK_GTE: - result = first >= second; - break; - case TOK_LT: - result = first < second; - break; - case TOK_LTE: - result = first <= second; - break; - default: - throw new Error("Unknown comparator: " + node.name); - } - return result; - case TOK_FLATTEN: - var original = this.visit(node.children[0], value); - if (!isArray(original)) { - return null; - } - var merged = []; - for (i = 0; i < original.length; i++) { - current = original[i]; - if (isArray(current)) { - merged.push.apply(merged, current); - } else { - merged.push(current); - } - } - return merged; - case "Identity": - return value; - case "MultiSelectList": - if (value === null) { - return null; - } - collected = []; - for (i = 0; i < node.children.length; i++) { - collected.push(this.visit(node.children[i], value)); - } - return collected; - case "MultiSelectHash": - if (value === null) { - return null; - } - collected = {}; - var child; - for (i = 0; i < node.children.length; i++) { - child = node.children[i]; - collected[child.name] = this.visit(child.value, value); - } - return collected; - case "OrExpression": - matched = this.visit(node.children[0], value); - if (isFalse(matched)) { - matched = this.visit(node.children[1], value); - } - return matched; - case "AndExpression": - first = this.visit(node.children[0], value); +/** + * Called when a client receives a ServerKeyExchange record. + * + * When this message will be sent: + * This message will be sent immediately after the server certificate + * message (or the server hello message, if this is an anonymous + * negotiation). + * + * The server key exchange message is sent by the server only when the + * server certificate message (if sent) does not contain enough data to + * allow the client to exchange a premaster secret. + * + * Meaning of this message: + * This message conveys cryptographic information to allow the client to + * communicate the premaster secret: either an RSA public key to encrypt + * the premaster secret with, or a Diffie-Hellman public key with which the + * client can complete a key exchange (with the result being the premaster + * secret.) + * + * enum { + * dhe_dss, dhe_rsa, dh_anon, rsa, dh_dss, dh_rsa + * } KeyExchangeAlgorithm; + * + * struct { + * opaque dh_p<1..2^16-1>; + * opaque dh_g<1..2^16-1>; + * opaque dh_Ys<1..2^16-1>; + * } ServerDHParams; + * + * struct { + * select(KeyExchangeAlgorithm) { + * case dh_anon: + * ServerDHParams params; + * case dhe_dss: + * case dhe_rsa: + * ServerDHParams params; + * digitally-signed struct { + * opaque client_random[32]; + * opaque server_random[32]; + * ServerDHParams params; + * } signed_params; + * case rsa: + * case dh_dss: + * case dh_rsa: + * struct {}; + * }; + * } ServerKeyExchange; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerKeyExchange = function(c, record, length) { + // this implementation only supports RSA, no Diffie-Hellman support + // so any length > 0 is invalid + if(length > 0) { + return c.error(c, { + message: 'Invalid key parameters. Only RSA is supported.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unsupported_certificate + } + }); + } - if (isFalse(first) === true) { - return first; - } - return this.visit(node.children[1], value); - case "NotExpression": - first = this.visit(node.children[0], value); - return isFalse(first); - case "Literal": - return node.value; - case TOK_PIPE: - left = this.visit(node.children[0], value); - return this.visit(node.children[1], left); - case TOK_CURRENT: - return value; - case "Function": - var resolvedArgs = []; - for (i = 0; i < node.children.length; i++) { - resolvedArgs.push(this.visit(node.children[i], value)); - } - return this.runtime.callFunction(node.name, resolvedArgs); - case "ExpressionReference": - var refNode = node.children[0]; - // Tag the node with a specific attribute so the type - // checker verify the type. - refNode.jmespathType = TOK_EXPREF; - return refNode; - default: - throw new Error("Unknown node type: " + node.type); - } - }, + // expect an optional CertificateRequest message next + c.expect = SCR; - computeSliceParams: function(arrayLength, sliceParams) { - var start = sliceParams[0]; - var stop = sliceParams[1]; - var step = sliceParams[2]; - var computed = [null, null, null]; - if (step === null) { - step = 1; - } else if (step === 0) { - var error = new Error("Invalid slice, step cannot be 0"); - error.name = "RuntimeError"; - throw error; + // continue + c.process(); +}; + +/** + * Called when a client receives a ClientKeyExchange record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleClientKeyExchange = function(c, record, length) { + // this implementation only supports RSA, no Diffie-Hellman support + // so any length < 48 is invalid + if(length < 48) { + return c.error(c, { + message: 'Invalid key parameters. Only RSA is supported.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unsupported_certificate + } + }); + } + + var b = record.fragment; + var msg = { + enc_pre_master_secret: readVector(b, 2).getBytes() + }; + + // do rsa decryption + var privateKey = null; + if(c.getPrivateKey) { + try { + privateKey = c.getPrivateKey(c, c.session.serverCertificate); + privateKey = forge.pki.privateKeyFromPem(privateKey); + } catch(ex) { + c.error(c, { + message: 'Could not get private key.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error } - var stepValueNegative = step < 0 ? true : false; + }); + } + } + + if(privateKey === null) { + return c.error(c, { + message: 'No private key set.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + + try { + // decrypt 48-byte pre-master secret + var sp = c.session.sp; + sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret); + + // ensure client hello version matches first 2 bytes + var version = c.session.clientHelloVersion; + if(version.major !== sp.pre_master_secret.charCodeAt(0) || + version.minor !== sp.pre_master_secret.charCodeAt(1)) { + // error, do not send alert (see BLEI attack below) + throw new Error('TLS version rollback attack detected.'); + } + } catch(ex) { + /* Note: Daniel Bleichenbacher [BLEI] can be used to attack a + TLS server which is using PKCS#1 encoded RSA, so instead of + failing here, we generate 48 random bytes and use that as + the pre-master secret. */ + sp.pre_master_secret = forge.random.getBytes(48); + } - if (start === null) { - start = stepValueNegative ? arrayLength - 1 : 0; - } else { - start = this.capSliceRange(arrayLength, start, step); - } + // expect a CertificateVerify message if a Certificate was received that + // does not have fixed Diffie-Hellman params, otherwise expect + // ChangeCipherSpec + c.expect = CCC; + if(c.session.clientCertificate !== null) { + // only RSA support, so expect CertificateVerify + // TODO: support Diffie-Hellman + c.expect = CCV; + } - if (stop === null) { - stop = stepValueNegative ? -1 : arrayLength; - } else { - stop = this.capSliceRange(arrayLength, stop, step); - } - computed[0] = start; - computed[1] = stop; - computed[2] = step; - return computed; - }, + // continue + c.process(); +}; - capSliceRange: function(arrayLength, actualValue, step) { - if (actualValue < 0) { - actualValue += arrayLength; - if (actualValue < 0) { - actualValue = step < 0 ? -1 : 0; - } - } else if (actualValue >= arrayLength) { - actualValue = step < 0 ? arrayLength - 1 : arrayLength; - } - return actualValue; +/** + * Called when a client receives a CertificateRequest record. + * + * When this message will be sent: + * A non-anonymous server can optionally request a certificate from the + * client, if appropriate for the selected cipher suite. This message, if + * sent, will immediately follow the Server Key Exchange message (if it is + * sent; otherwise, the Server Certificate message). + * + * enum { + * rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4), + * rsa_ephemeral_dh_RESERVED(5), dss_ephemeral_dh_RESERVED(6), + * fortezza_dms_RESERVED(20), (255) + * } ClientCertificateType; + * + * opaque DistinguishedName<1..2^16-1>; + * + * struct { + * ClientCertificateType certificate_types<1..2^8-1>; + * SignatureAndHashAlgorithm supported_signature_algorithms<2^16-1>; + * DistinguishedName certificate_authorities<0..2^16-1>; + * } CertificateRequest; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificateRequest = function(c, record, length) { + // minimum of 3 bytes in message + if(length < 3) { + return c.error(c, { + message: 'Invalid CertificateRequest. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter } + }); + } + // TODO: TLS 1.2+ has different format including + // SignatureAndHashAlgorithm after cert types + var b = record.fragment; + var msg = { + certificate_types: readVector(b, 1), + certificate_authorities: readVector(b, 2) }; - function Runtime(interpreter) { - this._interpreter = interpreter; - this.functionTable = { - // name: [function, ] - // The can be: - // - // { - // args: [[type1, type2], [type1, type2]], - // variadic: true|false - // } - // - // Each arg in the arg list is a list of valid types - // (if the function is overloaded and supports multiple - // types. If the type is "any" then no type checking - // occurs on the argument. Variadic is optional - // and if not provided is assumed to be false. - abs: {_func: this._functionAbs, _signature: [{types: [TYPE_NUMBER]}]}, - avg: {_func: this._functionAvg, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, - ceil: {_func: this._functionCeil, _signature: [{types: [TYPE_NUMBER]}]}, - contains: { - _func: this._functionContains, - _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}, - {types: [TYPE_ANY]}]}, - "ends_with": { - _func: this._functionEndsWith, - _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, - floor: {_func: this._functionFloor, _signature: [{types: [TYPE_NUMBER]}]}, - length: { - _func: this._functionLength, - _signature: [{types: [TYPE_STRING, TYPE_ARRAY, TYPE_OBJECT]}]}, - map: { - _func: this._functionMap, - _signature: [{types: [TYPE_EXPREF]}, {types: [TYPE_ARRAY]}]}, - max: { - _func: this._functionMax, - _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, - "merge": { - _func: this._functionMerge, - _signature: [{types: [TYPE_OBJECT], variadic: true}] - }, - "max_by": { - _func: this._functionMaxBy, - _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] - }, - sum: {_func: this._functionSum, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, - "starts_with": { - _func: this._functionStartsWith, - _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, - min: { - _func: this._functionMin, - _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, - "min_by": { - _func: this._functionMinBy, - _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] - }, - type: {_func: this._functionType, _signature: [{types: [TYPE_ANY]}]}, - keys: {_func: this._functionKeys, _signature: [{types: [TYPE_OBJECT]}]}, - values: {_func: this._functionValues, _signature: [{types: [TYPE_OBJECT]}]}, - sort: {_func: this._functionSort, _signature: [{types: [TYPE_ARRAY_STRING, TYPE_ARRAY_NUMBER]}]}, - "sort_by": { - _func: this._functionSortBy, - _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] - }, - join: { - _func: this._functionJoin, - _signature: [ - {types: [TYPE_STRING]}, - {types: [TYPE_ARRAY_STRING]} - ] - }, - reverse: { - _func: this._functionReverse, - _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}]}, - "to_array": {_func: this._functionToArray, _signature: [{types: [TYPE_ANY]}]}, - "to_string": {_func: this._functionToString, _signature: [{types: [TYPE_ANY]}]}, - "to_number": {_func: this._functionToNumber, _signature: [{types: [TYPE_ANY]}]}, - "not_null": { - _func: this._functionNotNull, - _signature: [{types: [TYPE_ANY], variadic: true}] - } - }; - } - - Runtime.prototype = { - callFunction: function(name, resolvedArgs) { - var functionEntry = this.functionTable[name]; - if (functionEntry === undefined) { - throw new Error("Unknown function: " + name + "()"); - } - this._validateArgs(name, resolvedArgs, functionEntry._signature); - return functionEntry._func.call(this, resolvedArgs); - }, + // save certificate request in session + c.session.certificateRequest = msg; - _validateArgs: function(name, args, signature) { - // Validating the args requires validating - // the correct arity and the correct type of each arg. - // If the last argument is declared as variadic, then we need - // a minimum number of args to be required. Otherwise it has to - // be an exact amount. - var pluralized; - if (signature[signature.length - 1].variadic) { - if (args.length < signature.length) { - pluralized = signature.length === 1 ? " argument" : " arguments"; - throw new Error("ArgumentError: " + name + "() " + - "takes at least" + signature.length + pluralized + - " but received " + args.length); - } - } else if (args.length !== signature.length) { - pluralized = signature.length === 1 ? " argument" : " arguments"; - throw new Error("ArgumentError: " + name + "() " + - "takes " + signature.length + pluralized + - " but received " + args.length); - } - var currentSpec; - var actualType; - var typeMatched; - for (var i = 0; i < signature.length; i++) { - typeMatched = false; - currentSpec = signature[i].types; - actualType = this._getTypeName(args[i]); - for (var j = 0; j < currentSpec.length; j++) { - if (this._typeMatches(actualType, currentSpec[j], args[i])) { - typeMatched = true; - break; - } - } - if (!typeMatched) { - var expected = currentSpec - .map(function(typeIdentifier) { - return TYPE_NAME_TABLE[typeIdentifier]; - }) - .join(','); - throw new Error("TypeError: " + name + "() " + - "expected argument " + (i + 1) + - " to be type " + expected + - " but received type " + - TYPE_NAME_TABLE[actualType] + " instead."); - } - } - }, + // expect a ServerHelloDone message next + c.expect = SHD; - _typeMatches: function(actual, expected, argValue) { - if (expected === TYPE_ANY) { - return true; - } - if (expected === TYPE_ARRAY_STRING || - expected === TYPE_ARRAY_NUMBER || - expected === TYPE_ARRAY) { - // The expected type can either just be array, - // or it can require a specific subtype (array of numbers). - // - // The simplest case is if "array" with no subtype is specified. - if (expected === TYPE_ARRAY) { - return actual === TYPE_ARRAY; - } else if (actual === TYPE_ARRAY) { - // Otherwise we need to check subtypes. - // I think this has potential to be improved. - var subtype; - if (expected === TYPE_ARRAY_NUMBER) { - subtype = TYPE_NUMBER; - } else if (expected === TYPE_ARRAY_STRING) { - subtype = TYPE_STRING; - } - for (var i = 0; i < argValue.length; i++) { - if (!this._typeMatches( - this._getTypeName(argValue[i]), subtype, - argValue[i])) { - return false; - } - } - return true; - } - } else { - return actual === expected; - } - }, - _getTypeName: function(obj) { - switch (Object.prototype.toString.call(obj)) { - case "[object String]": - return TYPE_STRING; - case "[object Number]": - return TYPE_NUMBER; - case "[object Array]": - return TYPE_ARRAY; - case "[object Boolean]": - return TYPE_BOOLEAN; - case "[object Null]": - return TYPE_NULL; - case "[object Object]": - // Check if it's an expref. If it has, it's been - // tagged with a jmespathType attr of 'Expref'; - if (obj.jmespathType === TOK_EXPREF) { - return TYPE_EXPREF; - } else { - return TYPE_OBJECT; - } - } - }, + // continue + c.process(); +}; - _functionStartsWith: function(resolvedArgs) { - return resolvedArgs[0].lastIndexOf(resolvedArgs[1]) === 0; - }, +/** + * Called when a server receives a CertificateVerify record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificateVerify = function(c, record, length) { + if(length < 2) { + return c.error(c, { + message: 'Invalid CertificateVerify. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } - _functionEndsWith: function(resolvedArgs) { - var searchStr = resolvedArgs[0]; - var suffix = resolvedArgs[1]; - return searchStr.indexOf(suffix, searchStr.length - suffix.length) !== -1; - }, + // rewind to get full bytes for message so it can be manually + // digested below (special case for CertificateVerify messages because + // they must be digested *after* handling as opposed to all others) + var b = record.fragment; + b.read -= 4; + var msgBytes = b.bytes(); + b.read += 4; - _functionReverse: function(resolvedArgs) { - var typeName = this._getTypeName(resolvedArgs[0]); - if (typeName === TYPE_STRING) { - var originalStr = resolvedArgs[0]; - var reversedStr = ""; - for (var i = originalStr.length - 1; i >= 0; i--) { - reversedStr += originalStr[i]; - } - return reversedStr; - } else { - var reversedArray = resolvedArgs[0].slice(0); - reversedArray.reverse(); - return reversedArray; - } - }, + var msg = { + signature: readVector(b, 2).getBytes() + }; - _functionAbs: function(resolvedArgs) { - return Math.abs(resolvedArgs[0]); - }, + // TODO: add support for DSA - _functionCeil: function(resolvedArgs) { - return Math.ceil(resolvedArgs[0]); - }, + // generate data to verify + var verify = forge.util.createBuffer(); + verify.putBuffer(c.session.md5.digest()); + verify.putBuffer(c.session.sha1.digest()); + verify = verify.getBytes(); - _functionAvg: function(resolvedArgs) { - var sum = 0; - var inputArray = resolvedArgs[0]; - for (var i = 0; i < inputArray.length; i++) { - sum += inputArray[i]; - } - return sum / inputArray.length; - }, + try { + var cert = c.session.clientCertificate; + /*b = forge.pki.rsa.decrypt( + msg.signature, cert.publicKey, true, verify.length); + if(b !== verify) {*/ + if(!cert.publicKey.verify(verify, msg.signature, 'NONE')) { + throw new Error('CertificateVerify signature does not match.'); + } - _functionContains: function(resolvedArgs) { - return resolvedArgs[0].indexOf(resolvedArgs[1]) >= 0; - }, + // digest message now that it has been handled + c.session.md5.update(msgBytes); + c.session.sha1.update(msgBytes); + } catch(ex) { + return c.error(c, { + message: 'Bad signature in CertificateVerify.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.handshake_failure + } + }); + } - _functionFloor: function(resolvedArgs) { - return Math.floor(resolvedArgs[0]); - }, + // expect ChangeCipherSpec + c.expect = CCC; - _functionLength: function(resolvedArgs) { - if (!isObject(resolvedArgs[0])) { - return resolvedArgs[0].length; - } else { - // As far as I can tell, there's no way to get the length - // of an object without O(n) iteration through the object. - return Object.keys(resolvedArgs[0]).length; - } - }, + // continue + c.process(); +}; - _functionMap: function(resolvedArgs) { - var mapped = []; - var interpreter = this._interpreter; - var exprefNode = resolvedArgs[0]; - var elements = resolvedArgs[1]; - for (var i = 0; i < elements.length; i++) { - mapped.push(interpreter.visit(exprefNode, elements[i])); +/** + * Called when a client receives a ServerHelloDone record. + * + * When this message will be sent: + * The server hello done message is sent by the server to indicate the end + * of the server hello and associated messages. After sending this message + * the server will wait for a client response. + * + * Meaning of this message: + * This message means that the server is done sending messages to support + * the key exchange, and the client can proceed with its phase of the key + * exchange. + * + * Upon receipt of the server hello done message the client should verify + * that the server provided a valid certificate if required and check that + * the server hello parameters are acceptable. + * + * struct {} ServerHelloDone; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerHelloDone = function(c, record, length) { + // len must be 0 bytes + if(length > 0) { + return c.error(c, { + message: 'Invalid ServerHelloDone message. Invalid length.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.record_overflow } - return mapped; - }, + }); + } - _functionMerge: function(resolvedArgs) { - var merged = {}; - for (var i = 0; i < resolvedArgs.length; i++) { - var current = resolvedArgs[i]; - for (var key in current) { - merged[key] = current[key]; - } + if(c.serverCertificate === null) { + // no server certificate was provided + var error = { + message: 'No server certificate provided. Not enough security.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.insufficient_security } - return merged; - }, + }; - _functionMax: function(resolvedArgs) { - if (resolvedArgs[0].length > 0) { - var typeName = this._getTypeName(resolvedArgs[0][0]); - if (typeName === TYPE_NUMBER) { - return Math.max.apply(Math, resolvedArgs[0]); - } else { - var elements = resolvedArgs[0]; - var maxElement = elements[0]; - for (var i = 1; i < elements.length; i++) { - if (maxElement.localeCompare(elements[i]) < 0) { - maxElement = elements[i]; - } + // call application callback + var depth = 0; + var ret = c.verify(c, error.alert.description, depth, []); + if(ret !== true) { + // check for custom alert info + if(ret || ret === 0) { + // set custom message and alert description + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + if(ret.message) { + error.message = ret.message; } - return maxElement; - } - } else { - return null; - } - }, - - _functionMin: function(resolvedArgs) { - if (resolvedArgs[0].length > 0) { - var typeName = this._getTypeName(resolvedArgs[0][0]); - if (typeName === TYPE_NUMBER) { - return Math.min.apply(Math, resolvedArgs[0]); - } else { - var elements = resolvedArgs[0]; - var minElement = elements[0]; - for (var i = 1; i < elements.length; i++) { - if (elements[i].localeCompare(minElement) < 0) { - minElement = elements[i]; - } + if(ret.alert) { + error.alert.description = ret.alert; } - return minElement; + } else if(typeof ret === 'number') { + // set custom alert description + error.alert.description = ret; } - } else { - return null; } - }, - _functionSum: function(resolvedArgs) { - var sum = 0; - var listToSum = resolvedArgs[0]; - for (var i = 0; i < listToSum.length; i++) { - sum += listToSum[i]; - } - return sum; - }, + // send error + return c.error(c, error); + } + } - _functionType: function(resolvedArgs) { - switch (this._getTypeName(resolvedArgs[0])) { - case TYPE_NUMBER: - return "number"; - case TYPE_STRING: - return "string"; - case TYPE_ARRAY: - return "array"; - case TYPE_OBJECT: - return "object"; - case TYPE_BOOLEAN: - return "boolean"; - case TYPE_EXPREF: - return "expref"; - case TYPE_NULL: - return "null"; - } - }, + // create client certificate message if requested + if(c.session.certificateRequest !== null) { + record = tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificate(c) + }); + tls.queue(c, record); + } - _functionKeys: function(resolvedArgs) { - return Object.keys(resolvedArgs[0]); - }, + // create client key exchange message + record = tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createClientKeyExchange(c) + }); + tls.queue(c, record); - _functionValues: function(resolvedArgs) { - var obj = resolvedArgs[0]; - var keys = Object.keys(obj); - var values = []; - for (var i = 0; i < keys.length; i++) { - values.push(obj[keys[i]]); - } - return values; - }, + // expect no messages until the following callback has been called + c.expect = SER; - _functionJoin: function(resolvedArgs) { - var joinChar = resolvedArgs[0]; - var listJoin = resolvedArgs[1]; - return listJoin.join(joinChar); - }, + // create callback to handle client signature (for client-certs) + var callback = function(c, signature) { + if(c.session.certificateRequest !== null && + c.session.clientCertificate !== null) { + // create certificate verify message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificateVerify(c, signature) + })); + } - _functionToArray: function(resolvedArgs) { - if (this._getTypeName(resolvedArgs[0]) === TYPE_ARRAY) { - return resolvedArgs[0]; - } else { - return [resolvedArgs[0]]; - } - }, + // create change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); - _functionToString: function(resolvedArgs) { - if (this._getTypeName(resolvedArgs[0]) === TYPE_STRING) { - return resolvedArgs[0]; - } else { - return JSON.stringify(resolvedArgs[0]); - } - }, + // create pending state + c.state.pending = tls.createConnectionState(c); - _functionToNumber: function(resolvedArgs) { - var typeName = this._getTypeName(resolvedArgs[0]); - var convertedValue; - if (typeName === TYPE_NUMBER) { - return resolvedArgs[0]; - } else if (typeName === TYPE_STRING) { - convertedValue = +resolvedArgs[0]; - if (!isNaN(convertedValue)) { - return convertedValue; - } - } - return null; - }, + // change current write state to pending write state + c.state.current.write = c.state.pending.write; - _functionNotNull: function(resolvedArgs) { - for (var i = 0; i < resolvedArgs.length; i++) { - if (this._getTypeName(resolvedArgs[i]) !== TYPE_NULL) { - return resolvedArgs[i]; - } - } - return null; - }, + // create finished message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); - _functionSort: function(resolvedArgs) { - var sortedArray = resolvedArgs[0].slice(0); - sortedArray.sort(); - return sortedArray; - }, + // expect a server ChangeCipherSpec message next + c.expect = SCC; - _functionSortBy: function(resolvedArgs) { - var sortedArray = resolvedArgs[0].slice(0); - if (sortedArray.length === 0) { - return sortedArray; - } - var interpreter = this._interpreter; - var exprefNode = resolvedArgs[1]; - var requiredType = this._getTypeName( - interpreter.visit(exprefNode, sortedArray[0])); - if ([TYPE_NUMBER, TYPE_STRING].indexOf(requiredType) < 0) { - throw new Error("TypeError"); - } - var that = this; - // In order to get a stable sort out of an unstable - // sort algorithm, we decorate/sort/undecorate (DSU) - // by creating a new list of [index, element] pairs. - // In the cmp function, if the evaluated elements are - // equal, then the index will be used as the tiebreaker. - // After the decorated list has been sorted, it will be - // undecorated to extract the original elements. - var decorated = []; - for (var i = 0; i < sortedArray.length; i++) { - decorated.push([i, sortedArray[i]]); - } - decorated.sort(function(a, b) { - var exprA = interpreter.visit(exprefNode, a[1]); - var exprB = interpreter.visit(exprefNode, b[1]); - if (that._getTypeName(exprA) !== requiredType) { - throw new Error( - "TypeError: expected " + requiredType + ", received " + - that._getTypeName(exprA)); - } else if (that._getTypeName(exprB) !== requiredType) { - throw new Error( - "TypeError: expected " + requiredType + ", received " + - that._getTypeName(exprB)); - } - if (exprA > exprB) { - return 1; - } else if (exprA < exprB) { - return -1; - } else { - // If they're equal compare the items by their - // order to maintain relative order of equal keys - // (i.e. to get a stable sort). - return a[0] - b[0]; - } - }); - // Undecorate: extract out the original list elements. - for (var j = 0; j < decorated.length; j++) { - sortedArray[j] = decorated[j][1]; - } - return sortedArray; - }, + // send records + tls.flush(c); - _functionMaxBy: function(resolvedArgs) { - var exprefNode = resolvedArgs[1]; - var resolvedArray = resolvedArgs[0]; - var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); - var maxNumber = -Infinity; - var maxRecord; - var current; - for (var i = 0; i < resolvedArray.length; i++) { - current = keyFunction(resolvedArray[i]); - if (current > maxNumber) { - maxNumber = current; - maxRecord = resolvedArray[i]; - } - } - return maxRecord; - }, + // continue + c.process(); + }; - _functionMinBy: function(resolvedArgs) { - var exprefNode = resolvedArgs[1]; - var resolvedArray = resolvedArgs[0]; - var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); - var minNumber = Infinity; - var minRecord; - var current; - for (var i = 0; i < resolvedArray.length; i++) { - current = keyFunction(resolvedArray[i]); - if (current < minNumber) { - minNumber = current; - minRecord = resolvedArray[i]; - } - } - return minRecord; - }, + // if there is no certificate request or no client certificate, do + // callback immediately + if(c.session.certificateRequest === null || + c.session.clientCertificate === null) { + return callback(c, null); + } - createKeyFunction: function(exprefNode, allowedTypes) { - var that = this; - var interpreter = this._interpreter; - var keyFunc = function(x) { - var current = interpreter.visit(exprefNode, x); - if (allowedTypes.indexOf(that._getTypeName(current)) < 0) { - var msg = "TypeError: expected one of " + allowedTypes + - ", received " + that._getTypeName(current); - throw new Error(msg); - } - return current; - }; - return keyFunc; - } + // otherwise get the client signature + tls.getClientSignature(c, callback); +}; - }; +/** + * Called when a ChangeCipherSpec record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleChangeCipherSpec = function(c, record) { + if(record.fragment.getByte() !== 0x01) { + return c.error(c, { + message: 'Invalid ChangeCipherSpec message received.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } - function compile(stream) { - var parser = new Parser(); - var ast = parser.parse(stream); - return ast; + // create pending state if: + // 1. Resuming session in client mode OR + // 2. NOT resuming session in server mode + var client = (c.entity === tls.ConnectionEnd.client); + if((c.session.resuming && client) || (!c.session.resuming && !client)) { + c.state.pending = tls.createConnectionState(c); } - function tokenize(stream) { - var lexer = new Lexer(); - return lexer.tokenize(stream); + // change current read state to pending read state + c.state.current.read = c.state.pending.read; + + // clear pending state if: + // 1. NOT resuming session in client mode OR + // 2. resuming a session in server mode + if((!c.session.resuming && client) || (c.session.resuming && !client)) { + c.state.pending = null; } - function search(data, expression) { - var parser = new Parser(); - // This needs to be improved. Both the interpreter and runtime depend on - // each other. The runtime needs the interpreter to support exprefs. - // There's likely a clean way to avoid the cyclic dependency. - var runtime = new Runtime(); - var interpreter = new TreeInterpreter(runtime); - runtime._interpreter = interpreter; - var node = parser.parse(expression); - return interpreter.search(node, data); + // expect a Finished record next + c.expect = client ? SFI : CFI; + + // continue + c.process(); +}; + +/** + * Called when a Finished record is received. + * + * When this message will be sent: + * A finished message is always sent immediately after a change + * cipher spec message to verify that the key exchange and + * authentication processes were successful. It is essential that a + * change cipher spec message be received between the other + * handshake messages and the Finished message. + * + * Meaning of this message: + * The finished message is the first protected with the just- + * negotiated algorithms, keys, and secrets. Recipients of finished + * messages must verify that the contents are correct. Once a side + * has sent its Finished message and received and validated the + * Finished message from its peer, it may begin to send and receive + * application data over the connection. + * + * struct { + * opaque verify_data[verify_data_length]; + * } Finished; + * + * verify_data + * PRF(master_secret, finished_label, Hash(handshake_messages)) + * [0..verify_data_length-1]; + * + * finished_label + * For Finished messages sent by the client, the string + * "client finished". For Finished messages sent by the server, the + * string "server finished". + * + * verify_data_length depends on the cipher suite. If it is not specified + * by the cipher suite, then it is 12. Versions of TLS < 1.2 always used + * 12 bytes. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleFinished = function(c, record, length) { + // rewind to get full bytes for message so it can be manually + // digested below (special case for Finished messages because they + // must be digested *after* handling as opposed to all others) + var b = record.fragment; + b.read -= 4; + var msgBytes = b.bytes(); + b.read += 4; + + // message contains only verify_data + var vd = record.fragment.getBytes(); + + // ensure verify data is correct + b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); + + // set label based on entity type + var client = (c.entity === tls.ConnectionEnd.client); + var label = client ? 'server finished' : 'client finished'; + + // TODO: determine prf function and verify length for TLS 1.2 + var sp = c.session.sp; + var vdl = 12; + var prf = prf_TLS1; + b = prf(sp.master_secret, label, b.getBytes(), vdl); + if(b.getBytes() !== vd) { + return c.error(c, { + message: 'Invalid verify_data in Finished message.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.decrypt_error + } + }); } - exports.tokenize = tokenize; - exports.compile = compile; - exports.search = search; - exports.strictDeepEqual = strictDeepEqual; -})( false ? 0 : exports); + // digest finished message now that it has been handled + c.session.md5.update(msgBytes); + c.session.sha1.update(msgBytes); + // resuming session as client or NOT resuming session as server + if((c.session.resuming && client) || (!c.session.resuming && !client)) { + // create change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); -/***/ }), + // change current write state to pending write state, clear pending + c.state.current.write = c.state.pending.write; + c.state.pending = null; -/***/ 88082: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // create finished message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + } -"use strict"; + // expect application data next + c.expect = client ? SAD : CAD; + + // handshake complete + c.handshaking = false; + ++c.handshakes; + // save access to peer certificate + c.peerCertificate = client ? + c.session.serverCertificate : c.session.clientCertificate; + // send records + tls.flush(c); -var loader = __nccwpck_require__(47972); -var dumper = __nccwpck_require__(7648); + // now connected + c.isConnected = true; + c.connected(c); + // continue + c.process(); +}; -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); +/** + * Called when an Alert record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleAlert = function(c, record) { + // read alert + var b = record.fragment; + var alert = { + level: b.getByte(), + description: b.getByte() }; -} + // TODO: consider using a table? + // get appropriate message + var msg; + switch(alert.description) { + case tls.Alert.Description.close_notify: + msg = 'Connection closed.'; + break; + case tls.Alert.Description.unexpected_message: + msg = 'Unexpected message.'; + break; + case tls.Alert.Description.bad_record_mac: + msg = 'Bad record MAC.'; + break; + case tls.Alert.Description.decryption_failed: + msg = 'Decryption failed.'; + break; + case tls.Alert.Description.record_overflow: + msg = 'Record overflow.'; + break; + case tls.Alert.Description.decompression_failure: + msg = 'Decompression failed.'; + break; + case tls.Alert.Description.handshake_failure: + msg = 'Handshake failure.'; + break; + case tls.Alert.Description.bad_certificate: + msg = 'Bad certificate.'; + break; + case tls.Alert.Description.unsupported_certificate: + msg = 'Unsupported certificate.'; + break; + case tls.Alert.Description.certificate_revoked: + msg = 'Certificate revoked.'; + break; + case tls.Alert.Description.certificate_expired: + msg = 'Certificate expired.'; + break; + case tls.Alert.Description.certificate_unknown: + msg = 'Certificate unknown.'; + break; + case tls.Alert.Description.illegal_parameter: + msg = 'Illegal parameter.'; + break; + case tls.Alert.Description.unknown_ca: + msg = 'Unknown certificate authority.'; + break; + case tls.Alert.Description.access_denied: + msg = 'Access denied.'; + break; + case tls.Alert.Description.decode_error: + msg = 'Decode error.'; + break; + case tls.Alert.Description.decrypt_error: + msg = 'Decrypt error.'; + break; + case tls.Alert.Description.export_restriction: + msg = 'Export restriction.'; + break; + case tls.Alert.Description.protocol_version: + msg = 'Unsupported protocol version.'; + break; + case tls.Alert.Description.insufficient_security: + msg = 'Insufficient security.'; + break; + case tls.Alert.Description.internal_error: + msg = 'Internal error.'; + break; + case tls.Alert.Description.user_canceled: + msg = 'User canceled.'; + break; + case tls.Alert.Description.no_renegotiation: + msg = 'Renegotiation not supported.'; + break; + default: + msg = 'Unknown error.'; + break; + } + + // close connection on close_notify, not an error + if(alert.description === tls.Alert.Description.close_notify) { + return c.close(); + } -module.exports.Type = __nccwpck_require__(80102); -module.exports.Schema = __nccwpck_require__(54488); -module.exports.FAILSAFE_SCHEMA = __nccwpck_require__(28111); -module.exports.JSON_SCHEMA = __nccwpck_require__(58398); -module.exports.CORE_SCHEMA = __nccwpck_require__(75295); -module.exports.DEFAULT_SCHEMA = __nccwpck_require__(27835); -module.exports.load = loader.load; -module.exports.loadAll = loader.loadAll; -module.exports.dump = dumper.dump; -module.exports.YAMLException = __nccwpck_require__(56272); + // call error handler + c.error(c, { + message: msg, + send: false, + // origin is the opposite end + origin: (c.entity === tls.ConnectionEnd.client) ? 'server' : 'client', + alert: alert + }); -// Re-export all types in case user wants to create custom schema -module.exports.types = { - binary: __nccwpck_require__(65608), - float: __nccwpck_require__(28380), - map: __nccwpck_require__(29988), - null: __nccwpck_require__(92171), - pairs: __nccwpck_require__(58271), - set: __nccwpck_require__(14688), - timestamp: __nccwpck_require__(90486), - bool: __nccwpck_require__(95795), - int: __nccwpck_require__(8346), - merge: __nccwpck_require__(99505), - omap: __nccwpck_require__(83187), - seq: __nccwpck_require__(56205), - str: __nccwpck_require__(87936) + // continue + c.process(); }; -// Removed functions from JS-YAML 3.0.x -module.exports.safeLoad = renamed('safeLoad', 'load'); -module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll'); -module.exports.safeDump = renamed('safeDump', 'dump'); - - -/***/ }), - -/***/ 20457: -/***/ ((module) => { - -"use strict"; - - - -function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); -} - - -function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); -} - +/** + * Called when a Handshake record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleHandshake = function(c, record) { + // get the handshake type and message length + var b = record.fragment; + var type = b.getByte(); + var length = b.getInt24(); -function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; + // see if the record fragment doesn't yet contain the full message + if(length > b.length()) { + // cache the record, clear its fragment, and reset the buffer read + // pointer before the type and length were read + c.fragmented = record; + record.fragment = forge.util.createBuffer(); + b.read -= 4; - return [ sequence ]; -} + // continue + return c.process(); + } + // full message now available, clear cache, reset read pointer to + // before type and length + c.fragmented = null; + b.read -= 4; -function extend(target, source) { - var index, length, key, sourceKeys; + // save the handshake bytes for digestion after handler is found + // (include type and length of handshake msg) + var bytes = b.bytes(length + 4); - if (source) { - sourceKeys = Object.keys(source); + // restore read pointer + b.read += 4; - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; + // handle expected message + if(type in hsTable[c.entity][c.expect]) { + // initialize server session + if(c.entity === tls.ConnectionEnd.server && !c.open && !c.fail) { + c.handshaking = true; + c.session = { + version: null, + extensions: { + server_name: { + serverNameList: [] + } + }, + cipherSuite: null, + compressionMethod: null, + serverCertificate: null, + clientCertificate: null, + md5: forge.md.md5.create(), + sha1: forge.md.sha1.create() + }; } - } - - return target; -} + /* Update handshake messages digest. Finished and CertificateVerify + messages are not digested here. They can't be digested as part of + the verify_data that they contain. These messages are manually + digested in their handlers. HelloRequest messages are simply never + included in the handshake message digest according to spec. */ + if(type !== tls.HandshakeType.hello_request && + type !== tls.HandshakeType.certificate_verify && + type !== tls.HandshakeType.finished) { + c.session.md5.update(bytes); + c.session.sha1.update(bytes); + } -function repeat(string, count) { - var result = '', cycle; - - for (cycle = 0; cycle < count; cycle += 1) { - result += string; + // handle specific handshake type record + hsTable[c.entity][c.expect][type](c, record, length); + } else { + // unexpected record + tls.handleUnexpected(c, record); } +}; - return result; -} - - -function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); -} - - -module.exports.isNothing = isNothing; -module.exports.isObject = isObject; -module.exports.toArray = toArray; -module.exports.repeat = repeat; -module.exports.isNegativeZero = isNegativeZero; -module.exports.extend = extend; - - -/***/ }), - -/***/ 7648: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * Called when an ApplicationData record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleApplicationData = function(c, record) { + // buffer data, notify that its ready + c.data.putBuffer(record.fragment); + c.dataReady(c); -"use strict"; + // continue + c.process(); +}; +/** + * Called when a Heartbeat record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleHeartbeat = function(c, record) { + // get the heartbeat type and payload + var b = record.fragment; + var type = b.getByte(); + var length = b.getInt16(); + var payload = b.getBytes(length); -/*eslint-disable no-use-before-define*/ + if(type === tls.HeartbeatMessageType.heartbeat_request) { + // discard request during handshake or if length is too large + if(c.handshaking || length > payload.length) { + // continue + return c.process(); + } + // retransmit payload + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.heartbeat, + data: tls.createHeartbeat( + tls.HeartbeatMessageType.heartbeat_response, payload) + })); + tls.flush(c); + } else if(type === tls.HeartbeatMessageType.heartbeat_response) { + // check payload against expected payload, discard heartbeat if no match + if(payload !== c.expectedHeartbeatPayload) { + // continue + return c.process(); + } -var common = __nccwpck_require__(20457); -var YAMLException = __nccwpck_require__(56272); -var DEFAULT_SCHEMA = __nccwpck_require__(27835); + // notify that a valid heartbeat was received + if(c.heartbeatReceived) { + c.heartbeatReceived(c, forge.util.createBuffer(payload)); + } + } -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; + // continue + c.process(); +}; -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ +/** + * The transistional state tables for receiving TLS records. It maps the + * current TLS engine state and a received record to a function to handle the + * record and update the state. + * + * For instance, if the current state is SHE, then the TLS engine is expecting + * a ServerHello record. Once a record is received, the handler function is + * looked up using the state SHE and the record's content type. + * + * The resulting function will either be an error handler or a record handler. + * The function will take whatever action is appropriate and update the state + * for the next record. + * + * The states are all based on possible server record types. Note that the + * client will never specifically expect to receive a HelloRequest or an alert + * from the server so there is no state that reflects this. These messages may + * occur at any time. + * + * There are two tables for mapping states because there is a second tier of + * types for handshake messages. Once a record with a content type of handshake + * is received, the handshake record handler will look up the handshake type in + * the secondary map to get its appropriate handler. + * + * Valid message orders are as follows: + * + * =======================FULL HANDSHAKE====================== + * Client Server + * + * ClientHello --------> + * ServerHello + * Certificate* + * ServerKeyExchange* + * CertificateRequest* + * <-------- ServerHelloDone + * Certificate* + * ClientKeyExchange + * CertificateVerify* + * [ChangeCipherSpec] + * Finished --------> + * [ChangeCipherSpec] + * <-------- Finished + * Application Data <-------> Application Data + * + * =====================SESSION RESUMPTION===================== + * Client Server + * + * ClientHello --------> + * ServerHello + * [ChangeCipherSpec] + * <-------- Finished + * [ChangeCipherSpec] + * Finished --------> + * Application Data <-------> Application Data + */ +// client expect states (indicate which records are expected to be received) +var SHE = 0; // rcv server hello +var SCE = 1; // rcv server certificate +var SKE = 2; // rcv server key exchange +var SCR = 3; // rcv certificate request +var SHD = 4; // rcv server hello done +var SCC = 5; // rcv change cipher spec +var SFI = 6; // rcv finished +var SAD = 7; // rcv application data +var SER = 8; // not expecting any messages at this point -var ESCAPE_SEQUENCES = {}; +// server expect states +var CHE = 0; // rcv client hello +var CCE = 1; // rcv client certificate +var CKE = 2; // rcv client key exchange +var CCV = 3; // rcv certificate verify +var CCC = 4; // rcv change cipher spec +var CFI = 5; // rcv finished +var CAD = 6; // rcv application data +var CER = 7; // not expecting any messages at this point -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; +// map client current expect state and content type to function +var __ = tls.handleUnexpected; +var R0 = tls.handleChangeCipherSpec; +var R1 = tls.handleAlert; +var R2 = tls.handleHandshake; +var R3 = tls.handleApplicationData; +var R4 = tls.handleHeartbeat; +var ctTable = []; +ctTable[tls.ConnectionEnd.client] = [ +// CC,AL,HS,AD,HB +/*SHE*/[__,R1,R2,__,R4], +/*SCE*/[__,R1,R2,__,R4], +/*SKE*/[__,R1,R2,__,R4], +/*SCR*/[__,R1,R2,__,R4], +/*SHD*/[__,R1,R2,__,R4], +/*SCC*/[R0,R1,__,__,R4], +/*SFI*/[__,R1,R2,__,R4], +/*SAD*/[__,R1,R2,R3,R4], +/*SER*/[__,R1,R2,__,R4] +]; -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' +// map server current expect state and content type to function +ctTable[tls.ConnectionEnd.server] = [ +// CC,AL,HS,AD +/*CHE*/[__,R1,R2,__,R4], +/*CCE*/[__,R1,R2,__,R4], +/*CKE*/[__,R1,R2,__,R4], +/*CCV*/[__,R1,R2,__,R4], +/*CCC*/[R0,R1,__,__,R4], +/*CFI*/[__,R1,R2,__,R4], +/*CAD*/[__,R1,R2,R3,R4], +/*CER*/[__,R1,R2,__,R4] ]; -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +// map client current expect state and handshake type to function +var H0 = tls.handleHelloRequest; +var H1 = tls.handleServerHello; +var H2 = tls.handleCertificate; +var H3 = tls.handleServerKeyExchange; +var H4 = tls.handleCertificateRequest; +var H5 = tls.handleServerHelloDone; +var H6 = tls.handleFinished; +var hsTable = []; +hsTable[tls.ConnectionEnd.client] = [ +// HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI +/*SHE*/[__,__,H1,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SCE*/[H0,__,__,__,__,__,__,__,__,__,__,H2,H3,H4,H5,__,__,__,__,__,__], +/*SKE*/[H0,__,__,__,__,__,__,__,__,__,__,__,H3,H4,H5,__,__,__,__,__,__], +/*SCR*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,H4,H5,__,__,__,__,__,__], +/*SHD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,H5,__,__,__,__,__,__], +/*SCC*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SFI*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], +/*SAD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SER*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] +]; -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; +// map server current expect state and handshake type to function +// Note: CAD[CH] does not map to FB because renegotiation is prohibited +var H7 = tls.handleClientHello; +var H8 = tls.handleClientKeyExchange; +var H9 = tls.handleCertificateVerify; +hsTable[tls.ConnectionEnd.server] = [ +// 01,CH,02,03,04,05,06,07,08,09,10,CC,12,13,14,CV,CK,17,18,19,FI +/*CHE*/[__,H7,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CCE*/[__,__,__,__,__,__,__,__,__,__,__,H2,__,__,__,__,__,__,__,__,__], +/*CKE*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H8,__,__,__,__], +/*CCV*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H9,__,__,__,__,__], +/*CCC*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CFI*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], +/*CAD*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CER*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] +]; - if (map === null) return {}; +/** + * Generates the master_secret and keys using the given security parameters. + * + * The security parameters for a TLS connection state are defined as such: + * + * struct { + * ConnectionEnd entity; + * PRFAlgorithm prf_algorithm; + * BulkCipherAlgorithm bulk_cipher_algorithm; + * CipherType cipher_type; + * uint8 enc_key_length; + * uint8 block_length; + * uint8 fixed_iv_length; + * uint8 record_iv_length; + * MACAlgorithm mac_algorithm; + * uint8 mac_length; + * uint8 mac_key_length; + * CompressionMethod compression_algorithm; + * opaque master_secret[48]; + * opaque client_random[32]; + * opaque server_random[32]; + * } SecurityParameters; + * + * Note that this definition is from TLS 1.2. In TLS 1.0 some of these + * parameters are ignored because, for instance, the PRFAlgorithm is a + * builtin-fixed algorithm combining iterations of MD5 and SHA-1 in TLS 1.0. + * + * The Record Protocol requires an algorithm to generate keys required by the + * current connection state. + * + * The master secret is expanded into a sequence of secure bytes, which is then + * split to a client write MAC key, a server write MAC key, a client write + * encryption key, and a server write encryption key. In TLS 1.0 a client write + * IV and server write IV are also generated. Each of these is generated from + * the byte sequence in that order. Unused values are empty. In TLS 1.2, some + * AEAD ciphers may additionally require a client write IV and a server write + * IV (see Section 6.2.3.3). + * + * When keys, MAC keys, and IVs are generated, the master secret is used as an + * entropy source. + * + * To generate the key material, compute: + * + * master_secret = PRF(pre_master_secret, "master secret", + * ClientHello.random + ServerHello.random) + * + * key_block = PRF(SecurityParameters.master_secret, + * "key expansion", + * SecurityParameters.server_random + + * SecurityParameters.client_random); + * + * until enough output has been generated. Then, the key_block is + * partitioned as follows: + * + * client_write_MAC_key[SecurityParameters.mac_key_length] + * server_write_MAC_key[SecurityParameters.mac_key_length] + * client_write_key[SecurityParameters.enc_key_length] + * server_write_key[SecurityParameters.enc_key_length] + * client_write_IV[SecurityParameters.fixed_iv_length] + * server_write_IV[SecurityParameters.fixed_iv_length] + * + * In TLS 1.2, the client_write_IV and server_write_IV are only generated for + * implicit nonce techniques as described in Section 3.2.1 of [AEAD]. This + * implementation uses TLS 1.0 so IVs are generated. + * + * Implementation note: The currently defined cipher suite which requires the + * most material is AES_256_CBC_SHA256. It requires 2 x 32 byte keys and 2 x 32 + * byte MAC keys, for a total 128 bytes of key material. In TLS 1.0 it also + * requires 2 x 16 byte IVs, so it actually takes 160 bytes of key material. + * + * @param c the connection. + * @param sp the security parameters to use. + * + * @return the security keys. + */ +tls.generateKeys = function(c, sp) { + // TLS_RSA_WITH_AES_128_CBC_SHA (required to be compliant with TLS 1.2) & + // TLS_RSA_WITH_AES_256_CBC_SHA are the only cipher suites implemented + // at present - result = {}; - keys = Object.keys(map); + // TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA is required to be compliant with + // TLS 1.0 but we don't care right now because AES is better and we have + // an implementation for it - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); + // TODO: TLS 1.2 implementation + /* + // determine the PRF + var prf; + switch(sp.prf_algorithm) { + case tls.PRFAlgorithm.tls_prf_sha256: + prf = prf_sha256; + break; + default: + // should never happen + throw new Error('Invalid PRF'); + } + */ - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; + // TLS 1.0/1.1 implementation + var prf = prf_TLS1; - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } + // concatenate server and client random + var random = sp.client_random + sp.server_random; - result[tag] = style; + // only create master secret if session is new + if(!c.session.resuming) { + // create master secret, clean up pre-master secret + sp.master_secret = prf( + sp.pre_master_secret, 'master secret', random, 48).bytes(); + sp.pre_master_secret = null; } - return result; -} + // generate the amount of key material needed + random = sp.server_random + sp.client_random; + var length = 2 * sp.mac_key_length + 2 * sp.enc_key_length; -function encodeHex(character) { - var string, handle, length; + // include IV for TLS/1.0 + var tls10 = (c.version.major === tls.Versions.TLS_1_0.major && + c.version.minor === tls.Versions.TLS_1_0.minor); + if(tls10) { + length += 2 * sp.fixed_iv_length; + } + var km = prf(sp.master_secret, 'key expansion', random, length); - string = character.toString(16).toUpperCase(); + // split the key material into the MAC and encryption keys + var rval = { + client_write_MAC_key: km.getBytes(sp.mac_key_length), + server_write_MAC_key: km.getBytes(sp.mac_key_length), + client_write_key: km.getBytes(sp.enc_key_length), + server_write_key: km.getBytes(sp.enc_key_length) + }; - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF'); + // include TLS 1.0 IVs + if(tls10) { + rval.client_write_IV = km.getBytes(sp.fixed_iv_length); + rval.server_write_IV = km.getBytes(sp.fixed_iv_length); } - return '\\' + handle + common.repeat('0', length - string.length) + string; -} + return rval; +}; +/** + * Creates a new initialized TLS connection state. A connection state has + * a read mode and a write mode. + * + * compression state: + * The current state of the compression algorithm. + * + * cipher state: + * The current state of the encryption algorithm. This will consist of the + * scheduled key for that connection. For stream ciphers, this will also + * contain whatever state information is necessary to allow the stream to + * continue to encrypt or decrypt data. + * + * MAC key: + * The MAC key for the connection. + * + * sequence number: + * Each connection state contains a sequence number, which is maintained + * separately for read and write states. The sequence number MUST be set to + * zero whenever a connection state is made the active state. Sequence + * numbers are of type uint64 and may not exceed 2^64-1. Sequence numbers do + * not wrap. If a TLS implementation would need to wrap a sequence number, + * it must renegotiate instead. A sequence number is incremented after each + * record: specifically, the first record transmitted under a particular + * connection state MUST use sequence number 0. + * + * @param c the connection. + * + * @return the new initialized TLS connection state. + */ +tls.createConnectionState = function(c) { + var client = (c.entity === tls.ConnectionEnd.client); -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; + var createMode = function() { + var mode = { + // two 32-bit numbers, first is most significant + sequenceNumber: [0, 0], + macKey: null, + macLength: 0, + macFunction: null, + cipherState: null, + cipherFunction: function(record) {return true;}, + compressionState: null, + compressFunction: function(record) {return true;}, + updateSequenceNumber: function() { + if(mode.sequenceNumber[1] === 0xFFFFFFFF) { + mode.sequenceNumber[1] = 0; + ++mode.sequenceNumber[0]; + } else { + ++mode.sequenceNumber[1]; + } + } + }; + return mode; + }; + var state = { + read: createMode(), + write: createMode() + }; -function State(options) { - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; + // update function in read mode will decrypt then decompress a record + state.read.update = function(c, record) { + if(!state.read.cipherFunction(record, state.read)) { + c.error(c, { + message: 'Could not decrypt record or bad MAC.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + // doesn't matter if decryption failed or MAC was + // invalid, return the same error so as not to reveal + // which one occurred + description: tls.Alert.Description.bad_record_mac + } + }); + } else if(!state.read.compressFunction(c, record, state.read)) { + c.error(c, { + message: 'Could not decompress record.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.decompression_failure + } + }); + } + return !c.fail; + }; - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; + // update function in write mode will compress then encrypt a record + state.write.update = function(c, record) { + if(!state.write.compressFunction(c, record, state.write)) { + // error, but do not send alert since it would require + // compression as well + c.error(c, { + message: 'Could not compress record.', + send: false, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } else if(!state.write.cipherFunction(record, state.write)) { + // error, but do not send alert since it would require + // encryption as well + c.error(c, { + message: 'Could not encrypt record.', + send: false, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + return !c.fail; + }; - this.tag = null; - this.result = ''; + // handle security parameters + if(c.session) { + var sp = c.session.sp; + c.session.cipherSuite.initSecurityParameters(sp); - this.duplicates = []; - this.usedDuplicates = null; -} + // generate keys + sp.keys = tls.generateKeys(c, sp); + state.read.macKey = client ? + sp.keys.server_write_MAC_key : sp.keys.client_write_MAC_key; + state.write.macKey = client ? + sp.keys.client_write_MAC_key : sp.keys.server_write_MAC_key; -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; + // cipher suite setup + c.session.cipherSuite.initConnectionState(state, c, sp); - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; + // compression setup + switch(sp.compression_algorithm) { + case tls.CompressionMethod.none: + break; + case tls.CompressionMethod.deflate: + state.read.compressFunction = inflate; + state.write.compressFunction = deflate; + break; + default: + throw new Error('Unsupported compression algorithm.'); } - - if (line.length && line !== '\n') result += ind; - - result += line; } - return result; -} - -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} - -function testImplicitResolving(state, str) { - var index, length, type; + return state; +}; - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; +/** + * Creates a Random structure. + * + * struct { + * uint32 gmt_unix_time; + * opaque random_bytes[28]; + * } Random; + * + * gmt_unix_time: + * The current time and date in standard UNIX 32-bit format (seconds since + * the midnight starting Jan 1, 1970, UTC, ignoring leap seconds) according + * to the sender's internal clock. Clocks are not required to be set + * correctly by the basic TLS protocol; higher-level or application + * protocols may define additional requirements. Note that, for historical + * reasons, the data element is named using GMT, the predecessor of the + * current worldwide time base, UTC. + * random_bytes: + * 28 bytes generated by a secure random number generator. + * + * @return the Random structure as a byte array. + */ +tls.createRandom = function() { + // get UTC milliseconds + var d = new Date(); + var utc = +d + d.getTimezoneOffset() * 60000; + var rval = forge.util.createBuffer(); + rval.putInt32(utc); + rval.putBytes(forge.random.getBytes(28)); + return rval; +}; - if (type.resolve(str)) { - return true; - } +/** + * Creates a TLS record with the given type and data. + * + * @param c the connection. + * @param options: + * type: the record type. + * data: the plain text data in a byte buffer. + * + * @return the created record. + */ +tls.createRecord = function(c, options) { + if(!options.data) { + return null; } + var record = { + type: options.type, + version: { + major: c.version.major, + minor: c.version.minor + }, + length: options.data.length(), + fragment: options.data + }; + return record; +}; - return false; -} +/** + * Creates a TLS alert record. + * + * @param c the connection. + * @param alert: + * level: the TLS alert level. + * description: the TLS alert description. + * + * @return the created alert record. + */ +tls.createAlert = function(c, alert) { + var b = forge.util.createBuffer(); + b.putByte(alert.level); + b.putByte(alert.description); + return tls.createRecord(c, { + type: tls.ContentType.alert, + data: b + }); +}; -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} +/* The structure of a TLS handshake message. + * + * struct { + * HandshakeType msg_type; // handshake type + * uint24 length; // bytes in message + * select(HandshakeType) { + * case hello_request: HelloRequest; + * case client_hello: ClientHello; + * case server_hello: ServerHello; + * case certificate: Certificate; + * case server_key_exchange: ServerKeyExchange; + * case certificate_request: CertificateRequest; + * case server_hello_done: ServerHelloDone; + * case certificate_verify: CertificateVerify; + * case client_key_exchange: ClientKeyExchange; + * case finished: Finished; + * } body; + * } Handshake; + */ -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} +/** + * Creates a ClientHello message. + * + * opaque SessionID<0..32>; + * enum { null(0), deflate(1), (255) } CompressionMethod; + * uint8 CipherSuite[2]; + * + * struct { + * ProtocolVersion client_version; + * Random random; + * SessionID session_id; + * CipherSuite cipher_suites<2..2^16-2>; + * CompressionMethod compression_methods<1..2^8-1>; + * select(extensions_present) { + * case false: + * struct {}; + * case true: + * Extension extensions<0..2^16-1>; + * }; + * } ClientHello; + * + * The extension format for extended client hellos and server hellos is: + * + * struct { + * ExtensionType extension_type; + * opaque extension_data<0..2^16-1>; + * } Extension; + * + * Here: + * + * - "extension_type" identifies the particular extension type. + * - "extension_data" contains information specific to the particular + * extension type. + * + * The extension types defined in this document are: + * + * enum { + * server_name(0), max_fragment_length(1), + * client_certificate_url(2), trusted_ca_keys(3), + * truncated_hmac(4), status_request(5), (65535) + * } ExtensionType; + * + * @param c the connection. + * + * @return the ClientHello byte buffer. + */ +tls.createClientHello = function(c) { + // save hello version + c.session.clientHelloVersion = { + major: c.version.major, + minor: c.version.minor + }; -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} + // create supported cipher suites + var cipherSuites = forge.util.createBuffer(); + for(var i = 0; i < c.cipherSuites.length; ++i) { + var cs = c.cipherSuites[i]; + cipherSuites.putByte(cs.id[0]); + cipherSuites.putByte(cs.id[1]); + } + var cSuites = cipherSuites.length(); -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} + // create supported compression methods, null always supported, but + // also support deflate if connection has inflate and deflate methods + var compressionMethods = forge.util.createBuffer(); + compressionMethods.putByte(tls.CompressionMethod.none); + // FIXME: deflate support disabled until issues with raw deflate data + // without zlib headers are resolved + /* + if(c.inflate !== null && c.deflate !== null) { + compressionMethods.putByte(tls.CompressionMethod.deflate); + } + */ + var cMethods = compressionMethods.length(); -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} + // create TLS SNI (server name indication) extension if virtual host + // has been specified, see RFC 3546 + var extensions = forge.util.createBuffer(); + if(c.virtualHost) { + // create extension struct + var ext = forge.util.createBuffer(); + ext.putByte(0x00); // type server_name (ExtensionType is 2 bytes) + ext.putByte(0x00); -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} + /* In order to provide the server name, clients MAY include an + * extension of type "server_name" in the (extended) client hello. + * The "extension_data" field of this extension SHALL contain + * "ServerNameList" where: + * + * struct { + * NameType name_type; + * select(name_type) { + * case host_name: HostName; + * } name; + * } ServerName; + * + * enum { + * host_name(0), (255) + * } NameType; + * + * opaque HostName<1..2^16-1>; + * + * struct { + * ServerName server_name_list<1..2^16-1> + * } ServerNameList; + */ + var serverName = forge.util.createBuffer(); + serverName.putByte(0x00); // type host_name + writeVector(serverName, 2, forge.util.createBuffer(c.virtualHost)); -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } + // ServerNameList is in extension_data + var snList = forge.util.createBuffer(); + writeVector(snList, 2, serverName); + writeVector(ext, 2, snList); + extensions.putBuffer(ext); + } + var extLength = extensions.length(); + if(extLength > 0) { + // add extension vector length + extLength += 2; } - return first; -} -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} + // determine length of the handshake message + // cipher suites and compression methods size will need to be + // updated if more get added to the list + var sessionId = c.session.id; + var length = + sessionId.length + 1 + // session ID vector + 2 + // version (major + minor) + 4 + 28 + // random time and random bytes + 2 + cSuites + // cipher suites vector + 1 + cMethods + // compression methods vector + extLength; // extensions vector -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.client_hello); + rval.putInt24(length); // handshake length + rval.putByte(c.version.major); // major version + rval.putByte(c.version.minor); // minor version + rval.putBytes(c.session.sp.client_random); // random time + bytes + writeVector(rval, 1, forge.util.createBuffer(sessionId)); + writeVector(rval, 2, cipherSuites); + writeVector(rval, 1, compressionMethods); + if(extLength > 0) { + writeVector(rval, 2, extensions); + } + return rval; +}; -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { +/** + * Creates a ServerHello message. + * + * @param c the connection. + * + * @return the ServerHello byte buffer. + */ +tls.createServerHello = function(c) { + // determine length of the handshake message + var sessionId = c.session.id; + var length = + sessionId.length + 1 + // session ID vector + 2 + // version (major + minor) + 4 + 28 + // random time and random bytes + 2 + // chosen cipher suite + 1; // chosen compression method - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.server_hello); + rval.putInt24(length); // handshake length + rval.putByte(c.version.major); // major version + rval.putByte(c.version.minor); // minor version + rval.putBytes(c.session.sp.server_random); // random time + bytes + writeVector(rval, 1, forge.util.createBuffer(sessionId)); + rval.putByte(c.session.cipherSuite.id[0]); + rval.putByte(c.session.cipherSuite.id[1]); + rval.putByte(c.session.compressionMethod); + return rval; +}; - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; +/** + * Creates a Certificate message. + * + * When this message will be sent: + * This is the first message the client can send after receiving a server + * hello done message and the first message the server can send after + * sending a ServerHello. This client message is only sent if the server + * requests a certificate. If no suitable certificate is available, the + * client should send a certificate message containing no certificates. If + * client authentication is required by the server for the handshake to + * continue, it may respond with a fatal handshake failure alert. + * + * opaque ASN.1Cert<1..2^24-1>; + * + * struct { + * ASN.1Cert certificate_list<0..2^24-1>; + * } Certificate; + * + * @param c the connection. + * + * @return the Certificate byte buffer. + */ +tls.createCertificate = function(c) { + // TODO: check certificate request to ensure types are supported + + // get a certificate (a certificate as a PEM string) + var client = (c.entity === tls.ConnectionEnd.client); + var cert = null; + if(c.getCertificate) { + var hint; + if(client) { + hint = c.session.certificateRequest; + } else { + hint = c.session.extensions.server_name.serverNameList; } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; + cert = c.getCertificate(c, hint); } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); + // buffer to hold certificate list + var certList = forge.util.createBuffer(); + if(cert !== null) { + try { + // normalize cert to a chain of certificates + if(!forge.util.isArray(cert)) { + cert = [cert]; } - } + var asn1 = null; + for(var i = 0; i < cert.length; ++i) { + var msg = forge.pem.decode(cert[i])[0]; + if(msg.type !== 'CERTIFICATE' && + msg.type !== 'X509 CERTIFICATE' && + msg.type !== 'TRUSTED CERTIFICATE') { + var error = new Error('Could not convert certificate from PEM; PEM ' + + 'header type is not "CERTIFICATE", "X509 CERTIFICATE", or ' + + '"TRUSTED CERTIFICATE".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert certificate from PEM; PEM is encrypted.'); + } - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); + var der = forge.util.createBuffer(msg.body); + if(asn1 === null) { + asn1 = forge.asn1.fromDer(der.bytes(), false); + } - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } + // certificate entry is itself a vector with 3 length bytes + var certBuffer = forge.util.createBuffer(); + writeVector(certBuffer, 3, der); - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { + // add cert vector to cert list vector + certList.putBuffer(certBuffer); + } - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string, lineWidth) + '"'; - default: - throw new YAMLException('impossible error: invalid scalar style'); + // save certificate + cert = forge.pki.certificateFromAsn1(asn1); + if(client) { + c.session.clientCertificate = cert; + } else { + c.session.serverCertificate = cert; + } + } catch(ex) { + return c.error(c, { + message: 'Could not send certificate list.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + } + }); } - }()); -} - -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; + } - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); + // determine length of the handshake message + var length = 3 + certList.length(); // cert list vector - return indentIndicator + chomp + '\n'; -} + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate); + rval.putInt24(length); + writeVector(rval, 3, certList); + return rval; +}; -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} +/** + * Creates a ClientKeyExchange message. + * + * When this message will be sent: + * This message is always sent by the client. It will immediately follow the + * client certificate message, if it is sent. Otherwise it will be the first + * message sent by the client after it receives the server hello done + * message. + * + * Meaning of this message: + * With this message, the premaster secret is set, either though direct + * transmission of the RSA-encrypted secret, or by the transmission of + * Diffie-Hellman parameters which will allow each side to agree upon the + * same premaster secret. When the key exchange method is DH_RSA or DH_DSS, + * client certification has been requested, and the client was able to + * respond with a certificate which contained a Diffie-Hellman public key + * whose parameters (group and generator) matched those specified by the + * server in its certificate, this message will not contain any data. + * + * Meaning of this message: + * If RSA is being used for key agreement and authentication, the client + * generates a 48-byte premaster secret, encrypts it using the public key + * from the server's certificate or the temporary RSA key provided in a + * server key exchange message, and sends the result in an encrypted + * premaster secret message. This structure is a variant of the client + * key exchange message, not a message in itself. + * + * struct { + * select(KeyExchangeAlgorithm) { + * case rsa: EncryptedPreMasterSecret; + * case diffie_hellman: ClientDiffieHellmanPublic; + * } exchange_keys; + * } ClientKeyExchange; + * + * struct { + * ProtocolVersion client_version; + * opaque random[46]; + * } PreMasterSecret; + * + * struct { + * public-key-encrypted PreMasterSecret pre_master_secret; + * } EncryptedPreMasterSecret; + * + * A public-key-encrypted element is encoded as a vector <0..2^16-1>. + * + * @param c the connection. + * + * @return the ClientKeyExchange byte buffer. + */ +tls.createClientKeyExchange = function(c) { + // create buffer to encrypt + var b = forge.util.createBuffer(); -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; + // add highest client-supported protocol to help server avoid version + // rollback attacks + b.putByte(c.session.clientHelloVersion.major); + b.putByte(c.session.clientHelloVersion.minor); - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; + // generate and add 46 random bytes + b.putBytes(forge.random.getBytes(46)); - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } + // save pre-master secret + var sp = c.session.sp; + sp.pre_master_secret = b.getBytes(); - return result; -} + // RSA-encrypt the pre-master secret + var key = c.session.serverCertificate.publicKey; + b = key.encrypt(sp.pre_master_secret); -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; + /* Note: The encrypted pre-master secret will be stored in a + public-key-encrypted opaque vector that has the length prefixed using + 2 bytes, so include those 2 bytes in the handshake message length. This + is done as a minor optimization instead of calling writeVector(). */ - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; + // determine length of the handshake message + var length = b.length + 2; - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.client_key_exchange); + rval.putInt24(length); + // add vector length bytes + rval.putInt16(b.length); + rval.putBytes(b); + return rval; +}; - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } +/** + * Creates a ServerKeyExchange message. + * + * @param c the connection. + * + * @return the ServerKeyExchange byte buffer. + */ +tls.createServerKeyExchange = function(c) { + // this implementation only supports RSA, no Diffie-Hellman support, + // so this record is empty - return result.slice(1); // drop extra \n joiner -} + // determine length of the handshake message + var length = 0; -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; + // build record fragment + var rval = forge.util.createBuffer(); + if(length > 0) { + rval.putByte(tls.HandshakeType.server_key_exchange); + rval.putInt24(length); + } + return rval; +}; - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; +/** + * Gets the signed data used to verify a client-side certificate. See + * tls.createCertificateVerify() for details. + * + * @param c the connection. + * @param callback the callback to call once the signed data is ready. + */ +tls.getClientSignature = function(c, callback) { + // generate data to RSA encrypt + var b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); + b = b.getBytes(); - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; + // create default signing function as necessary + c.getSignature = c.getSignature || function(c, b, callback) { + // do rsa encryption, call callback + var privateKey = null; + if(c.getPrivateKey) { + try { + privateKey = c.getPrivateKey(c, c.session.clientCertificate); + privateKey = forge.pki.privateKeyFromPem(privateKey); + } catch(ex) { + c.error(c, { + message: 'Could not get private key.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + } + if(privateKey === null) { + c.error(c, { + message: 'No private key set.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); } else { - result += escapeSeq || encodeHex(char); + b = privateKey.sign(b, null); } - } - - return result; -} + callback(c, b); + }; -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; + // get client signature + c.getSignature(c, b, callback); +}; - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; +/** + * Creates a CertificateVerify message. + * + * Meaning of this message: + * This structure conveys the client's Diffie-Hellman public value + * (Yc) if it was not already included in the client's certificate. + * The encoding used for Yc is determined by the enumerated + * PublicValueEncoding. This structure is a variant of the client + * key exchange message, not a message in itself. + * + * When this message will be sent: + * This message is used to provide explicit verification of a client + * certificate. This message is only sent following a client + * certificate that has signing capability (i.e. all certificates + * except those containing fixed Diffie-Hellman parameters). When + * sent, it will immediately follow the client key exchange message. + * + * struct { + * Signature signature; + * } CertificateVerify; + * + * CertificateVerify.signature.md5_hash + * MD5(handshake_messages); + * + * Certificate.signature.sha_hash + * SHA(handshake_messages); + * + * Here handshake_messages refers to all handshake messages sent or + * received starting at client hello up to but not including this + * message, including the type and length fields of the handshake + * messages. + * + * select(SignatureAlgorithm) { + * case anonymous: struct { }; + * case rsa: + * digitally-signed struct { + * opaque md5_hash[16]; + * opaque sha_hash[20]; + * }; + * case dsa: + * digitally-signed struct { + * opaque sha_hash[20]; + * }; + * } Signature; + * + * In digital signing, one-way hash functions are used as input for a + * signing algorithm. A digitally-signed element is encoded as an opaque + * vector <0..2^16-1>, where the length is specified by the signing + * algorithm and key. + * + * In RSA signing, a 36-byte structure of two hashes (one SHA and one + * MD5) is signed (encrypted with the private key). It is encoded with + * PKCS #1 block type 0 or type 1 as described in [PKCS1]. + * + * In DSS, the 20 bytes of the SHA hash are run directly through the + * Digital Signing Algorithm with no additional hashing. + * + * @param c the connection. + * @param signature the signature to include in the message. + * + * @return the CertificateVerify byte buffer. + */ +tls.createCertificateVerify = function(c, signature) { + /* Note: The signature will be stored in a "digitally-signed" opaque + vector that has the length prefixed using 2 bytes, so include those + 2 bytes in the handshake message length. This is done as a minor + optimization instead of calling writeVector(). */ - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } + // determine length of the handshake message + var length = signature.length + 2; - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate_verify); + rval.putInt24(length); + // add vector length bytes + rval.putInt16(signature.length); + rval.putBytes(signature); + return rval; +}; - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } +/** + * Creates a CertificateRequest message. + * + * @param c the connection. + * + * @return the CertificateRequest byte buffer. + */ +tls.createCertificateRequest = function(c) { + // TODO: support other certificate types + var certTypes = forge.util.createBuffer(); - state.tag = _tag; - state.dump = '[' + _result + ']'; -} + // common RSA certificate type + certTypes.putByte(0x01); -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; + // add distinguished names from CA store + var cAs = forge.util.createBuffer(); + for(var key in c.caStore.certs) { + var cert = c.caStore.certs[key]; + var dn = forge.pki.distinguishedNameToAsn1(cert.subject); + var byteBuffer = forge.asn1.toDer(dn); + cAs.putInt16(byteBuffer.length()); + cAs.putBuffer(byteBuffer); + } - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; + // TODO: TLS 1.2+ has a different format - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } + // determine length of the handshake message + var length = + 1 + certTypes.length() + + 2 + cAs.length(); - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate_request); + rval.putInt24(length); + writeVector(rval, 1, certTypes); + writeVector(rval, 2, cAs); + return rval; +}; - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } +/** + * Creates a ServerHelloDone message. + * + * @param c the connection. + * + * @return the ServerHelloDone byte buffer. + */ +tls.createServerHelloDone = function(c) { + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.server_hello_done); + rval.putInt24(0); + return rval; +}; - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } +/** + * Creates a ChangeCipherSpec message. + * + * The change cipher spec protocol exists to signal transitions in + * ciphering strategies. The protocol consists of a single message, + * which is encrypted and compressed under the current (not the pending) + * connection state. The message consists of a single byte of value 1. + * + * struct { + * enum { change_cipher_spec(1), (255) } type; + * } ChangeCipherSpec; + * + * @return the ChangeCipherSpec byte buffer. + */ +tls.createChangeCipherSpec = function() { + var rval = forge.util.createBuffer(); + rval.putByte(0x01); + return rval; +}; - _result += state.dump; - } - } +/** + * Creates a Finished message. + * + * struct { + * opaque verify_data[12]; + * } Finished; + * + * verify_data + * PRF(master_secret, finished_label, MD5(handshake_messages) + + * SHA-1(handshake_messages)) [0..11]; + * + * finished_label + * For Finished messages sent by the client, the string "client + * finished". For Finished messages sent by the server, the + * string "server finished". + * + * handshake_messages + * All of the data from all handshake messages up to but not + * including this message. This is only data visible at the + * handshake layer and does not include record layer headers. + * This is the concatenation of all the Handshake structures as + * defined in 7.4 exchanged thus far. + * + * @param c the connection. + * + * @return the Finished byte buffer. + */ +tls.createFinished = function(c) { + // generate verify_data + var b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} + // TODO: determine prf function and verify length for TLS 1.2 + var client = (c.entity === tls.ConnectionEnd.client); + var sp = c.session.sp; + var vdl = 12; + var prf = prf_TLS1; + var label = client ? 'client finished' : 'server finished'; + b = prf(sp.master_secret, label, b.getBytes(), vdl); -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.finished); + rval.putInt24(b.length()); + rval.putBuffer(b); + return rval; +}; - for (index = 0, length = objectKeyList.length; index < length; index += 1) { +/** + * Creates a HeartbeatMessage (See RFC 6520). + * + * struct { + * HeartbeatMessageType type; + * uint16 payload_length; + * opaque payload[HeartbeatMessage.payload_length]; + * opaque padding[padding_length]; + * } HeartbeatMessage; + * + * The total length of a HeartbeatMessage MUST NOT exceed 2^14 or + * max_fragment_length when negotiated as defined in [RFC6066]. + * + * type: The message type, either heartbeat_request or heartbeat_response. + * + * payload_length: The length of the payload. + * + * payload: The payload consists of arbitrary content. + * + * padding: The padding is random content that MUST be ignored by the + * receiver. The length of a HeartbeatMessage is TLSPlaintext.length + * for TLS and DTLSPlaintext.length for DTLS. Furthermore, the + * length of the type field is 1 byte, and the length of the + * payload_length is 2. Therefore, the padding_length is + * TLSPlaintext.length - payload_length - 3 for TLS and + * DTLSPlaintext.length - payload_length - 3 for DTLS. The + * padding_length MUST be at least 16. + * + * The sender of a HeartbeatMessage MUST use a random padding of at + * least 16 bytes. The padding of a received HeartbeatMessage message + * MUST be ignored. + * + * If the payload_length of a received HeartbeatMessage is too large, + * the received HeartbeatMessage MUST be discarded silently. + * + * @param c the connection. + * @param type the tls.HeartbeatMessageType. + * @param payload the heartbeat data to send as the payload. + * @param [payloadLength] the payload length to use, defaults to the + * actual payload length. + * + * @return the HeartbeatRequest byte buffer. + */ +tls.createHeartbeat = function(type, payload, payloadLength) { + if(typeof payloadLength === 'undefined') { + payloadLength = payload.length; + } + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(type); // heartbeat message type + rval.putInt16(payloadLength); // payload length + rval.putBytes(payload); // payload + // padding + var plaintextLength = rval.length(); + var paddingLength = Math.max(16, plaintextLength - payloadLength - 3); + rval.putBytes(forge.random.getBytes(paddingLength)); + return rval; +}; - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; +/** + * Fragments, compresses, encrypts, and queues a record for delivery. + * + * @param c the connection. + * @param record the record to queue. + */ +tls.queue = function(c, record) { + // error during record creation + if(!record) { + return; + } - if (state.condenseFlow) pairBuffer += '"'; + if(record.fragment.length() === 0) { + if(record.type === tls.ContentType.handshake || + record.type === tls.ContentType.alert || + record.type === tls.ContentType.change_cipher_spec) { + // Empty handshake, alert of change cipher spec messages are not allowed per the TLS specification and should not be sent. + return; + } + } - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; + // if the record is a handshake record, update handshake hashes + if(record.type === tls.ContentType.handshake) { + var bytes = record.fragment.bytes(); + c.session.md5.update(bytes); + c.session.sha1.update(bytes); + bytes = null; + } - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); + // handle record fragmentation + var records; + if(record.fragment.length() <= tls.MaxFragment) { + records = [record]; + } else { + // fragment data as long as it is too long + records = []; + var data = record.fragment.bytes(); + while(data.length > tls.MaxFragment) { + records.push(tls.createRecord(c, { + type: record.type, + data: forge.util.createBuffer(data.slice(0, tls.MaxFragment)) + })); + data = data.slice(tls.MaxFragment); } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; + // add last record + if(data.length > 0) { + records.push(tls.createRecord(c, { + type: record.type, + data: forge.util.createBuffer(data) + })); } + } - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. + // compress and encrypt all fragmented records + for(var i = 0; i < records.length && !c.fail; ++i) { + // update the record using current write state + var rec = records[i]; + var s = c.state.current.write; + if(s.update(c, rec)) { + // store record + c.records.push(rec); } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; } +}; - state.tag = _tag; - state.dump = '{' + _result + '}'; -} +/** + * Flushes all queued records to the output buffer and calls the + * tlsDataReady() handler on the given connection. + * + * @param c the connection. + * + * @return true on success, false on failure. + */ +tls.flush = function(c) { + for(var i = 0; i < c.records.length; ++i) { + var record = c.records[i]; -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; + // add record header and fragment + c.tlsData.putByte(record.type); + c.tlsData.putByte(record.version.major); + c.tlsData.putByte(record.version.minor); + c.tlsData.putInt16(record.fragment.length()); + c.tlsData.putBuffer(c.records[i].fragment); + } + c.records = []; + return c.tlsDataReady(c); +}; - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new YAMLException('sortKeys must be a boolean or a function'); +/** + * Maps a pki.certificateError to a tls.Alert.Description. + * + * @param error the error to map. + * + * @return the alert description. + */ +var _certErrorToAlertDesc = function(error) { + switch(error) { + case true: + return true; + case forge.pki.certificateError.bad_certificate: + return tls.Alert.Description.bad_certificate; + case forge.pki.certificateError.unsupported_certificate: + return tls.Alert.Description.unsupported_certificate; + case forge.pki.certificateError.certificate_revoked: + return tls.Alert.Description.certificate_revoked; + case forge.pki.certificateError.certificate_expired: + return tls.Alert.Description.certificate_expired; + case forge.pki.certificateError.certificate_unknown: + return tls.Alert.Description.certificate_unknown; + case forge.pki.certificateError.unknown_ca: + return tls.Alert.Description.unknown_ca; + default: + return tls.Alert.Description.bad_certificate; } +}; - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; +/** + * Maps a tls.Alert.Description to a pki.certificateError. + * + * @param desc the alert description. + * + * @return the certificate error. + */ +var _alertDescToCertError = function(desc) { + switch(desc) { + case true: + return true; + case tls.Alert.Description.bad_certificate: + return forge.pki.certificateError.bad_certificate; + case tls.Alert.Description.unsupported_certificate: + return forge.pki.certificateError.unsupported_certificate; + case tls.Alert.Description.certificate_revoked: + return forge.pki.certificateError.certificate_revoked; + case tls.Alert.Description.certificate_expired: + return forge.pki.certificateError.certificate_expired; + case tls.Alert.Description.certificate_unknown: + return forge.pki.certificateError.certificate_unknown; + case tls.Alert.Description.unknown_ca: + return forge.pki.certificateError.unknown_ca; + default: + return forge.pki.certificateError.bad_certificate; + } +}; - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); +/** + * Verifies a certificate chain against the given connection's + * Certificate Authority store. + * + * @param c the TLS connection. + * @param chain the certificate chain to verify, with the root or highest + * authority at the end. + * + * @return true if successful, false if not. + */ +tls.verifyCertificateChain = function(c, chain) { + try { + // Make a copy of c.verifyOptions so that we can modify options.verify + // without modifying c.verifyOptions. + var options = {}; + for (var key in c.verifyOptions) { + options[key] = c.verifyOptions[key]; } - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } + options.verify = function(vfd, depth, chain) { + // convert pki.certificateError to tls alert description + var desc = _certErrorToAlertDesc(vfd); - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); + // call application callback + var ret = c.verify(c, vfd, depth, chain); + if(ret !== true) { + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + // throw custom error + var error = new Error('The application rejected the certificate.'); + error.send = true; + error.alert = { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + }; + if(ret.message) { + error.message = ret.message; + } + if(ret.alert) { + error.alert.description = ret.alert; + } + throw error; + } - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; + // convert tls alert description to pki.certificateError + if(ret !== vfd) { + ret = _alertDescToCertError(ret); + } } - } - pairBuffer += state.dump; + return ret; + }; - if (explicitPair) { - pairBuffer += generateNextLine(state, level); + // verify chain + forge.pki.verifyCertificateChain(c.caStore, chain, options); + } catch(ex) { + // build tls error if not already customized + var err = ex; + if(typeof err !== 'object' || forge.util.isArray(err)) { + err = { + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: _certErrorToAlertDesc(ex) + } + }; } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. + if(!('send' in err)) { + err.send = true; } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; + if(!('alert' in err)) { + err.alert = { + level: tls.Alert.Level.fatal, + description: _certErrorToAlertDesc(err.error) + }; } - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; + // send error + c.error(c, err); } - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} - -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; + return !c.fail; +}; - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; +/** + * Creates a new TLS session cache. + * + * @param cache optional map of session ID to cached session. + * @param capacity the maximum size for the cache (default: 100). + * + * @return the new TLS session cache. + */ +tls.createSessionCache = function(cache, capacity) { + var rval = null; - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { + // assume input is already a session cache object + if(cache && cache.getSession && cache.setSession && cache.order) { + rval = cache; + } else { + // create cache + rval = {}; + rval.cache = cache || {}; + rval.capacity = Math.max(capacity || 100, 1); + rval.order = []; - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } + // store order for sessions, delete session overflow + for(var key in cache) { + if(rval.order.length <= capacity) { + rval.order.push(key); } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; + delete cache[key]; } - - return true; } - } - - return false; -} - -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } + // get a session from a session ID (or get any session) + rval.getSession = function(sessionId) { + var session = null; + var key = null; - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } + // if session ID provided, use it + if(sessionId) { + key = forge.util.bytesToHex(sessionId); + } else if(rval.order.length > 0) { + // get first session from cache + key = rval.order[0]; } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; + + if(key !== null && key in rval.cache) { + // get cached session and remove from cache + session = rval.cache[key]; + delete rval.cache[key]; + for(var i in rval.order) { + if(rval.order[i] === key) { + rval.order.splice(i, 1); + break; + } } } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new YAMLException('unacceptable kind of an object to dump ' + type); - } - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); + return session; + }; - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; + // set a session in the cache + rval.setSession = function(sessionId, session) { + // remove session from cache if at capacity + if(rval.order.length === rval.capacity) { + var key = rval.order.shift(); + delete rval.cache[key]; } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; -} - -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); + // add session to cache + var key = forge.util.bytesToHex(sessionId); + rval.order.push(key); + rval.cache[key] = session; + }; } - state.usedDuplicates = new Array(length); -} -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; + return rval; +}; - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } +/** + * Creates a new TLS connection. + * + * See public createConnection() docs for more details. + * + * @param options the options for this connection. + * + * @return the new TLS connection. + */ +tls.createConnection = function(options) { + var caStore = null; + if(options.caStore) { + // if CA store is an array, convert it to a CA store object + if(forge.util.isArray(options.caStore)) { + caStore = forge.pki.createCaStore(options.caStore); } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } + caStore = options.caStore; } + } else { + // create empty CA store + caStore = forge.pki.createCaStore(); } -} - -function dump(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); + // setup default cipher suites + var cipherSuites = options.cipherSuites || null; + if(cipherSuites === null) { + cipherSuites = []; + for(var key in tls.CipherSuites) { + cipherSuites.push(tls.CipherSuites[key]); + } } - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; -} + // set default entity + var entity = (options.server || false) ? + tls.ConnectionEnd.server : tls.ConnectionEnd.client; -module.exports.dump = dump; + // create session cache if requested + var sessionCache = options.sessionCache ? + tls.createSessionCache(options.sessionCache) : null; + // create TLS connection + var c = { + version: {major: tls.Version.major, minor: tls.Version.minor}, + entity: entity, + sessionId: options.sessionId, + caStore: caStore, + sessionCache: sessionCache, + cipherSuites: cipherSuites, + connected: options.connected, + virtualHost: options.virtualHost || null, + verifyClient: options.verifyClient || false, + verify: options.verify || function(cn, vfd, dpth, cts) {return vfd;}, + verifyOptions: options.verifyOptions || {}, + getCertificate: options.getCertificate || null, + getPrivateKey: options.getPrivateKey || null, + getSignature: options.getSignature || null, + input: forge.util.createBuffer(), + tlsData: forge.util.createBuffer(), + data: forge.util.createBuffer(), + tlsDataReady: options.tlsDataReady, + dataReady: options.dataReady, + heartbeatReceived: options.heartbeatReceived, + closed: options.closed, + error: function(c, ex) { + // set origin if not set + ex.origin = ex.origin || + ((c.entity === tls.ConnectionEnd.client) ? 'client' : 'server'); -/***/ }), + // send TLS alert + if(ex.send) { + tls.queue(c, tls.createAlert(c, ex.alert)); + tls.flush(c); + } -/***/ 56272: -/***/ ((module) => { + // error is fatal by default + var fatal = (ex.fatal !== false); + if(fatal) { + // set fail flag + c.fail = true; + } -"use strict"; -// YAML error class. http://stackoverflow.com/questions/8458984 -// + // call error handler first + options.error(c, ex); + if(fatal) { + // fatal error, close connection, do not clear fail + c.close(false); + } + }, + deflate: options.deflate || null, + inflate: options.inflate || null + }; + /** + * Resets a closed TLS connection for reuse. Called in c.close(). + * + * @param clearFail true to clear the fail flag (default: true). + */ + c.reset = function(clearFail) { + c.version = {major: tls.Version.major, minor: tls.Version.minor}; + c.record = null; + c.session = null; + c.peerCertificate = null; + c.state = { + pending: null, + current: null + }; + c.expect = (c.entity === tls.ConnectionEnd.client) ? SHE : CHE; + c.fragmented = null; + c.records = []; + c.open = false; + c.handshakes = 0; + c.handshaking = false; + c.isConnected = false; + c.fail = !(clearFail || typeof(clearFail) === 'undefined'); + c.input.clear(); + c.tlsData.clear(); + c.data.clear(); + c.state.current = tls.createConnectionState(c); + }; -function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; + // do initial reset of connection + c.reset(); - if (!exception.mark) return message; + /** + * Updates the current TLS engine state based on the given record. + * + * @param c the TLS connection. + * @param record the TLS record to act on. + */ + var _update = function(c, record) { + // get record handler (align type in table by subtracting lowest) + var aligned = record.type - tls.ContentType.change_cipher_spec; + var handlers = ctTable[c.entity][c.expect]; + if(aligned in handlers) { + handlers[aligned](c, record); + } else { + // unexpected record + tls.handleUnexpected(c, record); + } + }; - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } + /** + * Reads the record header and initializes the next record on the given + * connection. + * + * @param c the TLS connection with the next record. + * + * @return 0 if the input data could be processed, otherwise the + * number of bytes required for data to be processed. + */ + var _readRecordHeader = function(c) { + var rval = 0; - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; + // get input buffer and its length + var b = c.input; + var len = b.length(); - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } + // need at least 5 bytes to initialize a record + if(len < 5) { + rval = 5 - len; + } else { + // enough bytes for header + // initialize record + c.record = { + type: b.getByte(), + version: { + major: b.getByte(), + minor: b.getByte() + }, + length: b.getInt16(), + fragment: forge.util.createBuffer(), + ready: false + }; - return message + ' ' + where; -} + // check record version + var compatibleVersion = (c.record.version.major === c.version.major); + if(compatibleVersion && c.session && c.session.version) { + // session version already set, require same minor version + compatibleVersion = (c.record.version.minor === c.version.minor); + } + if(!compatibleVersion) { + c.error(c, { + message: 'Incompatible TLS version.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); + } + } + return rval; + }; -function YAMLException(reason, mark) { - // Super constructor - Error.call(this); + /** + * Reads the next record's contents and appends its message to any + * previously fragmented message. + * + * @param c the TLS connection with the next record. + * + * @return 0 if the input data could be processed, otherwise the + * number of bytes required for data to be processed. + */ + var _readRecord = function(c) { + var rval = 0; - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); + // ensure there is enough input data to get the entire record + var b = c.input; + var len = b.length(); + if(len < c.record.length) { + // not enough data yet, return how much is required + rval = c.record.length - len; + } else { + // there is enough data to parse the pending record + // fill record fragment and compact input buffer + c.record.fragment.putBytes(b.getBytes(c.record.length)); + b.compact(); - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } -} + // update record using current read state + var s = c.state.current.read; + if(s.update(c, c.record)) { + // see if there is a previously fragmented message that the + // new record's message fragment should be appended to + if(c.fragmented !== null) { + // if the record type matches a previously fragmented + // record, append the record fragment to it + if(c.fragmented.type === c.record.type) { + // concatenate record fragments + c.fragmented.fragment.putBuffer(c.record.fragment); + c.record = c.fragmented; + } else { + // error, invalid fragmented record + c.error(c, { + message: 'Invalid fragmented record.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: + tls.Alert.Description.unexpected_message + } + }); + } + } + // record is now ready + c.record.ready = true; + } + } -// Inherit from Error -YAMLException.prototype = Object.create(Error.prototype); -YAMLException.prototype.constructor = YAMLException; + return rval; + }; + /** + * Performs a handshake using the TLS Handshake Protocol, as a client. + * + * This method should only be called if the connection is in client mode. + * + * @param sessionId the session ID to use, null to start a new one. + */ + c.handshake = function(sessionId) { + // error to call this in non-client mode + if(c.entity !== tls.ConnectionEnd.client) { + // not fatal error + c.error(c, { + message: 'Cannot initiate handshake as a server.', + fatal: false + }); + } else if(c.handshaking) { + // handshake is already in progress, fail but not fatal error + c.error(c, { + message: 'Handshake already in progress.', + fatal: false + }); + } else { + // clear fail flag on reuse + if(c.fail && !c.open && c.handshakes === 0) { + c.fail = false; + } -YAMLException.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); -}; + // now handshaking + c.handshaking = true; + // default to blank (new session) + sessionId = sessionId || ''; -module.exports = YAMLException; + // if a session ID was specified, try to find it in the cache + var session = null; + if(sessionId.length > 0) { + if(c.sessionCache) { + session = c.sessionCache.getSession(sessionId); + } + // matching session not found in cache, clear session ID + if(session === null) { + sessionId = ''; + } + } -/***/ }), + // no session given, grab a session from the cache, if available + if(sessionId.length === 0 && c.sessionCache) { + session = c.sessionCache.getSession(); + if(session !== null) { + sessionId = session.id; + } + } -/***/ 47972: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // set up session + c.session = { + id: sessionId, + version: null, + cipherSuite: null, + compressionMethod: null, + serverCertificate: null, + certificateRequest: null, + clientCertificate: null, + sp: {}, + md5: forge.md.md5.create(), + sha1: forge.md.sha1.create() + }; -"use strict"; + // use existing session information + if(session) { + // only update version on connection, session version not yet set + c.version = session.version; + c.session.sp = session.sp; + } + // generate new client random + c.session.sp.client_random = tls.createRandom().getBytes(); -/*eslint-disable max-len,no-use-before-define*/ + // connection now open + c.open = true; -var common = __nccwpck_require__(20457); -var YAMLException = __nccwpck_require__(56272); -var makeSnippet = __nccwpck_require__(54231); -var DEFAULT_SCHEMA = __nccwpck_require__(27835); + // send hello + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createClientHello(c) + })); + tls.flush(c); + } + }; + /** + * Called when TLS protocol data has been received from somewhere and should + * be processed by the TLS engine. + * + * @param data the TLS protocol data, as a string, to process. + * + * @return 0 if the data could be processed, otherwise the number of bytes + * required for data to be processed. + */ + c.process = function(data) { + var rval = 0; -var _hasOwnProperty = Object.prototype.hasOwnProperty; + // buffer input data + if(data) { + c.input.putBytes(data); + } + // process next record if no failure, process will be called after + // each record is handled (since handling can be asynchronous) + if(!c.fail) { + // reset record if ready and now empty + if(c.record !== null && + c.record.ready && c.record.fragment.isEmpty()) { + c.record = null; + } -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; + // if there is no pending record, try to read record header + if(c.record === null) { + rval = _readRecordHeader(c); + } + // read the next record (if record not yet ready) + if(!c.fail && c.record !== null && !c.record.ready) { + rval = _readRecord(c); + } -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; + // record ready to be handled, update engine state + if(!c.fail && c.record !== null && c.record.ready) { + _update(c, c.record); + } + } + return rval; + }; -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; + /** + * Requests that application data be packaged into a TLS record. The + * tlsDataReady handler will be called when the TLS record(s) have been + * prepared. + * + * @param data the application data, as a raw 'binary' encoded string, to + * be sent; to send utf-16/utf-8 string data, use the return value + * of util.encodeUtf8(str). + * + * @return true on success, false on failure. + */ + c.prepare = function(data) { + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.application_data, + data: forge.util.createBuffer(data) + })); + return tls.flush(c); + }; + /** + * Requests that a heartbeat request be packaged into a TLS record for + * transmission. The tlsDataReady handler will be called when TLS record(s) + * have been prepared. + * + * When a heartbeat response has been received, the heartbeatReceived + * handler will be called with the matching payload. This handler can + * be used to clear a retransmission timer, etc. + * + * @param payload the heartbeat data to send as the payload in the message. + * @param [payloadLength] the payload length to use, defaults to the + * actual payload length. + * + * @return true on success, false on failure. + */ + c.prepareHeartbeatRequest = function(payload, payloadLength) { + if(payload instanceof forge.util.ByteBuffer) { + payload = payload.bytes(); + } + if(typeof payloadLength === 'undefined') { + payloadLength = payload.length; + } + c.expectedHeartbeatPayload = payload; + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.heartbeat, + data: tls.createHeartbeat( + tls.HeartbeatMessageType.heartbeat_request, payload, payloadLength) + })); + return tls.flush(c); + }; -function _class(obj) { return Object.prototype.toString.call(obj); } + /** + * Closes the connection (sends a close_notify alert). + * + * @param clearFail true to clear the fail flag (default: true). + */ + c.close = function(clearFail) { + // save session if connection didn't fail + if(!c.fail && c.sessionCache && c.session) { + // only need to preserve session ID, version, and security params + var session = { + id: c.session.id, + version: c.session.version, + sp: c.session.sp + }; + session.sp.keys = null; + c.sessionCache.setSession(session.id, session); + } -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} + if(c.open) { + // connection no longer open, clear input + c.open = false; + c.input.clear(); -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} + // if connected or handshaking, send an alert + if(c.isConnected || c.handshaking) { + c.isConnected = c.handshaking = false; -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} + // send close_notify alert + tls.queue(c, tls.createAlert(c, { + level: tls.Alert.Level.warning, + description: tls.Alert.Description.close_notify + })); + tls.flush(c); + } -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} + // call handler + c.closed(c); + } -function fromHexCode(c) { - var lc; + // reset TLS connection, do not clear fail flag + c.reset(clearFail); + }; - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } + return c; +}; - /*eslint-disable no-bitwise*/ - lc = c | 0x20; +/* TLS API */ +module.exports = forge.tls = forge.tls || {}; - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; +// expose non-functions +for(var key in tls) { + if(typeof tls[key] !== 'function') { + forge.tls[key] = tls[key]; } - - return -1; } -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} +// expose prf_tls1 for testing +forge.tls.prf_tls1 = prf_TLS1; -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } +// expose sha1 hmac method +forge.tls.hmac_sha1 = hmac_sha1; + +// expose session cache creation +forge.tls.createSessionCache = tls.createSessionCache; + +/** + * Creates a new TLS connection. This does not make any assumptions about the + * transport layer that TLS is working on top of, ie: it does not assume there + * is a TCP/IP connection or establish one. A TLS connection is totally + * abstracted away from the layer is runs on top of, it merely establishes a + * secure channel between a client" and a "server". + * + * A TLS connection contains 4 connection states: pending read and write, and + * current read and write. + * + * At initialization, the current read and write states will be null. Only once + * the security parameters have been set and the keys have been generated can + * the pending states be converted into current states. Current states will be + * updated for each record processed. + * + * A custom certificate verify callback may be provided to check information + * like the common name on the server's certificate. It will be called for + * every certificate in the chain. It has the following signature: + * + * variable func(c, certs, index, preVerify) + * Where: + * c The TLS connection + * verified Set to true if certificate was verified, otherwise the alert + * tls.Alert.Description for why the certificate failed. + * depth The current index in the chain, where 0 is the server's cert. + * certs The certificate chain, *NOTE* if the server was anonymous then + * the chain will be empty. + * + * The function returns true on success and on failure either the appropriate + * tls.Alert.Description or an object with 'alert' set to the appropriate + * tls.Alert.Description and 'message' set to a custom error message. If true + * is not returned then the connection will abort using, in order of + * availability, first the returned alert description, second the preVerify + * alert description, and lastly the default 'bad_certificate'. + * + * There are three callbacks that can be used to make use of client-side + * certificates where each takes the TLS connection as the first parameter: + * + * getCertificate(conn, hint) + * The second parameter is a hint as to which certificate should be + * returned. If the connection entity is a client, then the hint will be + * the CertificateRequest message from the server that is part of the + * TLS protocol. If the connection entity is a server, then it will be + * the servername list provided via an SNI extension the ClientHello, if + * one was provided (empty array if not). The hint can be examined to + * determine which certificate to use (advanced). Most implementations + * will just return a certificate. The return value must be a + * PEM-formatted certificate or an array of PEM-formatted certificates + * that constitute a certificate chain, with the first in the array/chain + * being the client's certificate. + * getPrivateKey(conn, certificate) + * The second parameter is an forge.pki X.509 certificate object that + * is associated with the requested private key. The return value must + * be a PEM-formatted private key. + * getSignature(conn, bytes, callback) + * This callback can be used instead of getPrivateKey if the private key + * is not directly accessible in javascript or should not be. For + * instance, a secure external web service could provide the signature + * in exchange for appropriate credentials. The second parameter is a + * string of bytes to be signed that are part of the TLS protocol. These + * bytes are used to verify that the private key for the previously + * provided client-side certificate is accessible to the client. The + * callback is a function that takes 2 parameters, the TLS connection + * and the RSA encrypted (signed) bytes as a string. This callback must + * be called once the signature is ready. + * + * @param options the options for this connection: + * server: true if the connection is server-side, false for client. + * sessionId: a session ID to reuse, null for a new connection. + * caStore: an array of certificates to trust. + * sessionCache: a session cache to use. + * cipherSuites: an optional array of cipher suites to use, + * see tls.CipherSuites. + * connected: function(conn) called when the first handshake completes. + * virtualHost: the virtual server name to use in a TLS SNI extension. + * verifyClient: true to require a client certificate in server mode, + * 'optional' to request one, false not to (default: false). + * verify: a handler used to custom verify certificates in the chain. + * verifyOptions: an object with options for the certificate chain validation. + * See documentation of pki.verifyCertificateChain for possible options. + * verifyOptions.verify is ignored. If you wish to specify a verify handler + * use the verify key. + * getCertificate: an optional callback used to get a certificate or + * a chain of certificates (as an array). + * getPrivateKey: an optional callback used to get a private key. + * getSignature: an optional callback used to get a signature. + * tlsDataReady: function(conn) called when TLS protocol data has been + * prepared and is ready to be used (typically sent over a socket + * connection to its destination), read from conn.tlsData buffer. + * dataReady: function(conn) called when application data has + * been parsed from a TLS record and should be consumed by the + * application, read from conn.data buffer. + * closed: function(conn) called when the connection has been closed. + * error: function(conn, error) called when there was an error. + * deflate: function(inBytes) if provided, will deflate TLS records using + * the deflate algorithm if the server supports it. + * inflate: function(inBytes) if provided, will inflate TLS records using + * the deflate algorithm if the server supports it. + * + * @return the new TLS connection. + */ +forge.tls.createConnection = tls.createConnection; - return -1; -} -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} +/***/ }), -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} +/***/ 46831: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} +/** + * Utility functions for web applications. + * + * @author Dave Longley + * + * Copyright (c) 2010-2018 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(40080); +var baseN = __nccwpck_require__(6006); +/* Utilities API */ +var util = module.exports = forge.util = forge.util || {}; -function State(input, options) { - this.input = input; +// define setImmediate and nextTick +(function() { + // use native nextTick (unless we're in webpack) + // webpack (or better node-libs-browser polyfill) sets process.browser. + // this way we can detect webpack properly + if(typeof process !== 'undefined' && process.nextTick && !process.browser) { + util.nextTick = process.nextTick; + if(typeof setImmediate === 'function') { + util.setImmediate = setImmediate; + } else { + // polyfill setImmediate with nextTick, older versions of node + // (those w/o setImmediate) won't totally starve IO + util.setImmediate = util.nextTick; + } + return; + } - this.filename = options['filename'] || null; - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; + // polyfill nextTick with native setImmediate + if(typeof setImmediate === 'function') { + util.setImmediate = function() { return setImmediate.apply(undefined, arguments); }; + util.nextTick = function(callback) { + return setImmediate(callback); + }; + return; + } - this.json = options['json'] || false; - this.listener = options['listener'] || null; + /* Note: A polyfill upgrade pattern is used here to allow combining + polyfills. For example, MutationObserver is fast, but blocks UI updates, + so it needs to allow UI updates periodically, so it falls back on + postMessage or setTimeout. */ - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; + // polyfill with setTimeout + util.setImmediate = function(callback) { + setTimeout(callback, 0); + }; - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; + // upgrade polyfill to use postMessage + if(typeof window !== 'undefined' && + typeof window.postMessage === 'function') { + var msg = 'forge.setImmediate'; + var callbacks = []; + util.setImmediate = function(callback) { + callbacks.push(callback); + // only send message when one hasn't been sent in + // the current turn of the event loop + if(callbacks.length === 1) { + window.postMessage(msg, '*'); + } + }; + function handler(event) { + if(event.source === window && event.data === msg) { + event.stopPropagation(); + var copy = callbacks.slice(); + callbacks.length = 0; + copy.forEach(function(callback) { + callback(); + }); + } + } + window.addEventListener('message', handler, true); + } - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; + // upgrade polyfill to use MutationObserver + if(typeof MutationObserver !== 'undefined') { + // polyfill with MutationObserver + var now = Date.now(); + var attr = true; + var div = document.createElement('div'); + var callbacks = []; + new MutationObserver(function() { + var copy = callbacks.slice(); + callbacks.length = 0; + copy.forEach(function(callback) { + callback(); + }); + }).observe(div, {attributes: true}); + var oldSetImmediate = util.setImmediate; + util.setImmediate = function(callback) { + if(Date.now() - now > 15) { + now = Date.now(); + oldSetImmediate(callback); + } else { + callbacks.push(callback); + // only trigger observer when it hasn't been triggered in + // the current turn of the event loop + if(callbacks.length === 1) { + div.setAttribute('a', attr = !attr); + } + } + }; + } - this.documents = []; + util.nextTick = util.setImmediate; +})(); - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ +// check if running under Node.js +util.isNodejs = + typeof process !== 'undefined' && process.versions && process.versions.node; -} +// 'self' will also work in Web Workers (instance of WorkerGlobalScope) while +// it will point to `window` in the main thread. +// To remain compatible with older browsers, we fall back to 'window' if 'self' +// is not available. +util.globalScope = (function() { + if(util.isNodejs) { + return global; + } -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; + return typeof self === 'undefined' ? window : self; +})(); - mark.snippet = makeSnippet(mark); +// define isArray +util.isArray = Array.isArray || function(x) { + return Object.prototype.toString.call(x) === '[object Array]'; +}; - return new YAMLException(message, mark); -} +// define isArrayBuffer +util.isArrayBuffer = function(x) { + return typeof ArrayBuffer !== 'undefined' && x instanceof ArrayBuffer; +}; -function throwError(state, message) { - throw generateError(state, message); -} +// define isArrayBufferView +util.isArrayBufferView = function(x) { + return x && util.isArrayBuffer(x.buffer) && x.byteLength !== undefined; +}; -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); +/** + * Ensure a bits param is 8, 16, 24, or 32. Used to validate input for + * algorithms where bit manipulation, JavaScript limitations, and/or algorithm + * design only allow for byte operations of a limited size. + * + * @param n number of bits. + * + * Throw Error if n invalid. + */ +function _checkBitsParam(n) { + if(!(n === 8 || n === 16 || n === 24 || n === 32)) { + throw new Error('Only 8, 16, 24, or 32 bits supported: ' + n); } } +// TODO: set ByteBuffer to best available backing +util.ByteBuffer = ByteStringBuffer; -var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { +/** Buffer w/BinaryString backing */ - var match, major, minor; +/** + * Constructor for a binary string backed byte buffer. + * + * @param [b] the bytes to wrap (either encoded as string, one byte per + * character, or as an ArrayBuffer or Typed Array). + */ +function ByteStringBuffer(b) { + // TODO: update to match DataBuffer API - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } + // the data in this buffer + this.data = ''; + // the pointer for reading from this buffer + this.read = 0; - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); + if(typeof b === 'string') { + this.data = b; + } else if(util.isArrayBuffer(b) || util.isArrayBufferView(b)) { + if(typeof Buffer !== 'undefined' && b instanceof Buffer) { + this.data = b.toString('binary'); + } else { + // convert native buffer to forge buffer + // FIXME: support native buffers internally instead + var arr = new Uint8Array(b); + try { + this.data = String.fromCharCode.apply(null, arr); + } catch(e) { + for(var i = 0; i < arr.length; ++i) { + this.putByte(arr[i]); + } + } } + } else if(b instanceof ByteStringBuffer || + (typeof b === 'object' && typeof b.data === 'string' && + typeof b.read === 'number')) { + // copy existing buffer + this.data = b.data; + this.read = b.read; + } - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); + // used for v8 optimization + this._constructedStringLength = 0; +} +util.ByteStringBuffer = ByteStringBuffer; - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } +/* Note: This is an optimization for V8-based browsers. When V8 concatenates + a string, the strings are only joined logically using a "cons string" or + "constructed/concatenated string". These containers keep references to one + another and can result in very large memory usage. For example, if a 2MB + string is constructed by concatenating 4 bytes together at a time, the + memory usage will be ~44MB; so ~22x increase. The strings are only joined + together when an operation requiring their joining takes place, such as + substr(). This function is called when adding data to this buffer to ensure + these types of strings are periodically joined to reduce the memory + footprint. */ +var _MAX_CONSTRUCTED_STRING_LENGTH = 4096; +util.ByteStringBuffer.prototype._optimizeConstructedString = function(x) { + this._constructedStringLength += x; + if(this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) { + // this substr() should cause the constructed string to join + this.data.substr(0, 1); + this._constructedStringLength = 0; + } +}; - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); +/** + * Gets the number of bytes in this buffer. + * + * @return the number of bytes in this buffer. + */ +util.ByteStringBuffer.prototype.length = function() { + return this.data.length - this.read; +}; - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } +/** + * Gets whether or not this buffer is empty. + * + * @return true if this buffer is empty, false if not. + */ +util.ByteStringBuffer.prototype.isEmpty = function() { + return this.length() <= 0; +}; - state.version = args[0]; - state.checkLineBreaks = (minor < 2); +/** + * Puts a byte in this buffer. + * + * @param b the byte to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putByte = function(b) { + return this.putBytes(String.fromCharCode(b)); +}; - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); +/** + * Puts a byte in this buffer N times. + * + * @param b the byte to put. + * @param n the number of bytes of value b to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.fillWithByte = function(b, n) { + b = String.fromCharCode(b); + var d = this.data; + while(n > 0) { + if(n & 1) { + d += b; } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); + n >>>= 1; + if(n > 0) { + b += b; } + } + this.data = d; + this._optimizeConstructedString(n); + return this; +}; - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } +/** + * Puts bytes in this buffer. + * + * @param bytes the bytes (as a binary encoded string) to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putBytes = function(bytes) { + this.data += bytes; + this._optimizeConstructedString(bytes.length); + return this; +}; - if (_hasOwnProperty.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } +/** + * Puts a UTF-16 encoded string into this buffer. + * + * @param str the string to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putString = function(str) { + return this.putBytes(util.encodeUtf8(str)); +}; - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } +/** + * Puts a 16-bit integer in this buffer in big-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt16 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } +/** + * Puts a 24-bit integer in this buffer in big-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt24 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; - state.tagMap[handle] = prefix; - } +/** + * Puts a 32-bit integer in this buffer in big-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt32 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 24 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); }; +/** + * Puts a 16-bit integer in this buffer in little-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt16Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF)); +}; -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; +/** + * Puts a 24-bit integer in this buffer in little-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt24Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF)); +}; - if (start < end) { - _result = state.input.slice(start, end); +/** + * Puts a 32-bit integer in this buffer in little-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt32Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 24 & 0xFF)); +}; - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } +/** + * Puts an n-bit integer in this buffer in big-endian order. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt = function(i, n) { + _checkBitsParam(n); + var bytes = ''; + do { + n -= 8; + bytes += String.fromCharCode((i >> n) & 0xFF); + } while(n > 0); + return this.putBytes(bytes); +}; - state.result += _result; +/** + * Puts a signed n-bit integer in this buffer in big-endian order. Two's + * complement representation is used. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putSignedInt = function(i, n) { + // putInt checks n + if(i < 0) { + i += 2 << (n - 1); } -} + return this.putInt(i, n); +}; -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; +/** + * Puts the given buffer into this buffer. + * + * @param buffer the buffer to put into this one. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putBuffer = function(buffer) { + return this.putBytes(buffer.getBytes()); +}; - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } +/** + * Gets a byte from this buffer and advances the read pointer by 1. + * + * @return the byte. + */ +util.ByteStringBuffer.prototype.getByte = function() { + return this.data.charCodeAt(this.read++); +}; - sourceKeys = Object.keys(source); +/** + * Gets a uint16 from this buffer in big-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.ByteStringBuffer.prototype.getInt16 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 8 ^ + this.data.charCodeAt(this.read + 1)); + this.read += 2; + return rval; +}; - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; +/** + * Gets a uint24 from this buffer in big-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.ByteStringBuffer.prototype.getInt24 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 16 ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2)); + this.read += 3; + return rval; +}; - if (!_hasOwnProperty.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} +/** + * Gets a uint32 from this buffer in big-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.ByteStringBuffer.prototype.getInt32 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 24 ^ + this.data.charCodeAt(this.read + 1) << 16 ^ + this.data.charCodeAt(this.read + 2) << 8 ^ + this.data.charCodeAt(this.read + 3)); + this.read += 4; + return rval; +}; -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { +/** + * Gets a uint16 from this buffer in little-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.ByteStringBuffer.prototype.getInt16Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8); + this.read += 2; + return rval; +}; - var index, quantity; +/** + * Gets a uint24 from this buffer in little-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.ByteStringBuffer.prototype.getInt24Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2) << 16); + this.read += 3; + return rval; +}; - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); +/** + * Gets a uint32 from this buffer in little-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.ByteStringBuffer.prototype.getInt32Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2) << 16 ^ + this.data.charCodeAt(this.read + 3) << 24); + this.read += 4; + return rval; +}; - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } +/** + * Gets an n-bit integer from this buffer in big-endian order and advances the + * read pointer by ceil(n/8). + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.ByteStringBuffer.prototype.getInt = function(n) { + _checkBitsParam(n); + var rval = 0; + do { + // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. + rval = (rval << 8) + this.data.charCodeAt(this.read++); + n -= 8; + } while(n > 0); + return rval; +}; - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } +/** + * Gets a signed n-bit integer from this buffer in big-endian order, using + * two's complement, and advances the read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.ByteStringBuffer.prototype.getSignedInt = function(n) { + // getInt checks n + var x = this.getInt(n); + var max = 2 << (n - 2); + if(x >= max) { + x -= max << 1; } + return x; +}; - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; +/** + * Reads bytes out as a binary encoded string and clears them from the + * buffer. Note that the resulting string is binary encoded (in node.js this + * encoding is referred to as `binary`, it is *not* `utf8`). + * + * @param count the number of bytes to read, undefined or null for all. + * + * @return a binary encoded string of bytes. + */ +util.ByteStringBuffer.prototype.getBytes = function(count) { + var rval; + if(count) { + // read count bytes + count = Math.min(this.length(), count); + rval = this.data.slice(this.read, this.read + count); + this.read += count; + } else if(count === 0) { + rval = ''; + } else { + // read all bytes, optimize to only copy when needed + rval = (this.read === 0) ? this.data : this.data.slice(this.read); + this.clear(); } + return rval; +}; +/** + * Gets a binary encoded string of the bytes from this buffer without + * modifying the read pointer. + * + * @param count the number of bytes to get, omit to get all. + * + * @return a string full of binary encoded characters. + */ +util.ByteStringBuffer.prototype.bytes = function(count) { + return (typeof(count) === 'undefined' ? + this.data.slice(this.read) : + this.data.slice(this.read, this.read + count)); +}; - keyNode = String(keyNode); +/** + * Gets a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * + * @return the byte. + */ +util.ByteStringBuffer.prototype.at = function(i) { + return this.data.charCodeAt(this.read + i); +}; - if (_result === null) { - _result = {}; - } +/** + * Puts a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * @param b the byte to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.setAt = function(i, b) { + this.data = this.data.substr(0, this.read + i) + + String.fromCharCode(b) + + this.data.substr(this.read + i + 1); + return this; +}; - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty.call(overridableKeys, keyNode) && - _hasOwnProperty.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } +/** + * Gets the last byte without modifying the read pointer. + * + * @return the last byte. + */ +util.ByteStringBuffer.prototype.last = function() { + return this.data.charCodeAt(this.data.length - 1); +}; - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } +/** + * Creates a copy of this buffer. + * + * @return the copy. + */ +util.ByteStringBuffer.prototype.copy = function() { + var c = util.createBuffer(this.data); + c.read = this.read; + return c; +}; - return _result; -} +/** + * Compacts this buffer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.compact = function() { + if(this.read > 0) { + this.data = this.data.slice(this.read); + this.read = 0; + } + return this; +}; -function readLineBreak(state) { - var ch; +/** + * Clears this buffer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.clear = function() { + this.data = ''; + this.read = 0; + return this; +}; - ch = state.input.charCodeAt(state.position); +/** + * Shortens this buffer by trimming bytes off of the end of this buffer. + * + * @param count the number of bytes to trim off. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.truncate = function(count) { + var len = Math.max(0, this.length() - count); + this.data = this.data.substr(this.read, len); + this.read = 0; + return this; +}; - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; +/** + * Converts this buffer to a hexadecimal string. + * + * @return a hexadecimal string. + */ +util.ByteStringBuffer.prototype.toHex = function() { + var rval = ''; + for(var i = this.read; i < this.data.length; ++i) { + var b = this.data.charCodeAt(i); + if(b < 16) { + rval += '0'; } - } else { - throwError(state, 'a line break is expected'); + rval += b.toString(16); } + return rval; +}; - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} - -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); +/** + * Converts this buffer to a UTF-16 string (standard JavaScript string). + * + * @return a UTF-16 string. + */ +util.ByteStringBuffer.prototype.toString = function() { + return util.decodeUtf8(this.bytes()); +}; - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } +/** End Buffer w/BinaryString backing */ - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } +/** Buffer w/UInt8Array backing */ - if (is_EOL(ch)) { - readLineBreak(state); +/** + * FIXME: Experimental. Do not use yet. + * + * Constructor for an ArrayBuffer-backed byte buffer. + * + * The buffer may be constructed from a string, an ArrayBuffer, DataView, or a + * TypedArray. + * + * If a string is given, its encoding should be provided as an option, + * otherwise it will default to 'binary'. A 'binary' string is encoded such + * that each character is one byte in length and size. + * + * If an ArrayBuffer, DataView, or TypedArray is given, it will be used + * *directly* without any copying. Note that, if a write to the buffer requires + * more space, the buffer will allocate a new backing ArrayBuffer to + * accommodate. The starting read and write offsets for the buffer may be + * given as options. + * + * @param [b] the initial bytes for this buffer. + * @param options the options to use: + * [readOffset] the starting read offset to use (default: 0). + * [writeOffset] the starting write offset to use (default: the + * length of the first parameter). + * [growSize] the minimum amount, in bytes, to grow the buffer by to + * accommodate writes (default: 1024). + * [encoding] the encoding ('binary', 'utf8', 'utf16', 'hex') for the + * first parameter, if it is a string (default: 'binary'). + */ +function DataBuffer(b, options) { + // default options + options = options || {}; - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; + // pointers for read from/write to buffer + this.read = options.readOffset || 0; + this.growSize = options.growSize || 1024; - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } + var isArrayBuffer = util.isArrayBuffer(b); + var isArrayBufferView = util.isArrayBufferView(b); + if(isArrayBuffer || isArrayBufferView) { + // use ArrayBuffer directly + if(isArrayBuffer) { + this.data = new DataView(b); } else { - break; + // TODO: adjust read/write offset based on the type of view + // or specify that this must be done in the options ... that the + // offsets are byte-based + this.data = new DataView(b.buffer, b.byteOffset, b.byteLength); } + this.write = ('writeOffset' in options ? + options.writeOffset : this.data.byteLength); + return; } - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); + // initialize to empty array buffer and add any given bytes using putBytes + this.data = new DataView(new ArrayBuffer(0)); + this.write = 0; + + if(b !== null && b !== undefined) { + this.putBytes(b); } - return lineBreaks; + if('writeOffset' in options) { + this.write = options.writeOffset; + } } +util.DataBuffer = DataBuffer; -function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } +/** + * Gets the number of bytes in this buffer. + * + * @return the number of bytes in this buffer. + */ +util.DataBuffer.prototype.length = function() { + return this.write - this.read; +}; - return false; -} +/** + * Gets whether or not this buffer is empty. + * + * @return true if this buffer is empty, false if not. + */ +util.DataBuffer.prototype.isEmpty = function() { + return this.length() <= 0; +}; -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); +/** + * Ensures this buffer has enough empty space to accommodate the given number + * of bytes. An optional parameter may be given that indicates a minimum + * amount to grow the buffer if necessary. If the parameter is not given, + * the buffer will be grown by some previously-specified default amount + * or heuristic. + * + * @param amount the number of bytes to accommodate. + * @param [growSize] the minimum amount, in bytes, to grow the buffer by if + * necessary. + */ +util.DataBuffer.prototype.accommodate = function(amount, growSize) { + if(this.length() >= amount) { + return this; } -} + growSize = Math.max(growSize || this.growSize, amount); + // grow buffer + var src = new Uint8Array( + this.data.buffer, this.data.byteOffset, this.data.byteLength); + var dst = new Uint8Array(this.length() + growSize); + dst.set(src); + this.data = new DataView(dst.buffer); -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; + return this; +}; - ch = state.input.charCodeAt(state.position); +/** + * Puts a byte in this buffer. + * + * @param b the byte to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putByte = function(b) { + this.accommodate(1); + this.data.setUint8(this.write++, b); + return this; +}; - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; +/** + * Puts a byte in this buffer N times. + * + * @param b the byte to put. + * @param n the number of bytes of value b to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.fillWithByte = function(b, n) { + this.accommodate(n); + for(var i = 0; i < n; ++i) { + this.data.setUint8(b); } + return this; +}; - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } +/** + * Puts bytes in this buffer. The bytes may be given as a string, an + * ArrayBuffer, a DataView, or a TypedArray. + * + * @param bytes the bytes to put. + * @param [encoding] the encoding for the first parameter ('binary', 'utf8', + * 'utf16', 'hex'), if it is a string (default: 'binary'). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putBytes = function(bytes, encoding) { + if(util.isArrayBufferView(bytes)) { + var src = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength); + var len = src.byteLength - src.byteOffset; + this.accommodate(len); + var dst = new Uint8Array(this.data.buffer, this.write); + dst.set(src); + this.write += len; + return this; } - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } + if(util.isArrayBuffer(bytes)) { + var src = new Uint8Array(bytes); + this.accommodate(src.byteLength); + var dst = new Uint8Array(this.data.buffer); + dst.set(src, this.write); + this.write += src.byteLength; + return this; + } - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); + // bytes is a util.DataBuffer or equivalent + if(bytes instanceof util.DataBuffer || + (typeof bytes === 'object' && + typeof bytes.read === 'number' && typeof bytes.write === 'number' && + util.isArrayBufferView(bytes.data))) { + var src = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length()); + this.accommodate(src.byteLength); + var dst = new Uint8Array(bytes.data.byteLength, this.write); + dst.set(src); + this.write += src.byteLength; + return this; + } - if (is_WS_OR_EOL(preceding)) { - break; - } + if(bytes instanceof util.ByteStringBuffer) { + // copy binary string and process as the same as a string parameter below + bytes = bytes.data; + encoding = 'binary'; + } - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; + // string conversion + encoding = encoding || 'binary'; + if(typeof bytes === 'string') { + var view; - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); + // decode from string + if(encoding === 'hex') { + this.accommodate(Math.ceil(bytes.length / 2)); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.hex.decode(bytes, view, this.write); + return this; + } + if(encoding === 'base64') { + this.accommodate(Math.ceil(bytes.length / 4) * 3); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.base64.decode(bytes, view, this.write); + return this; + } - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } + // encode text as UTF-8 bytes + if(encoding === 'utf8') { + // encode as UTF-8 then decode string as raw binary + bytes = util.encodeUtf8(bytes); + encoding = 'binary'; } - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; + // decode string as raw binary + if(encoding === 'binary' || encoding === 'raw') { + // one byte per character + this.accommodate(bytes.length); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.raw.decode(view); + return this; } - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; + // encode text as UTF-16 bytes + if(encoding === 'utf16') { + // two bytes per character + this.accommodate(bytes.length * 2); + view = new Uint16Array(this.data.buffer, this.write); + this.write += util.text.utf16.encode(view); + return this; } - ch = state.input.charCodeAt(++state.position); + throw new Error('Invalid encoding: ' + encoding); } - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } + throw Error('Invalid parameter: ' + bytes); +}; - state.kind = _kind; - state.result = _result; - return false; -} +/** + * Puts the given buffer into this buffer. + * + * @param buffer the buffer to put into this one. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putBuffer = function(buffer) { + this.putBytes(buffer); + buffer.clear(); + return this; +}; -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; +/** + * Puts a string into this buffer. + * + * @param str the string to put. + * @param [encoding] the encoding for the string (default: 'utf16'). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putString = function(str) { + return this.putBytes(str, 'utf16'); +}; - ch = state.input.charCodeAt(state.position); +/** + * Puts a 16-bit integer in this buffer in big-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt16 = function(i) { + this.accommodate(2); + this.data.setInt16(this.write, i); + this.write += 2; + return this; +}; - if (ch !== 0x27/* ' */) { - return false; - } +/** + * Puts a 24-bit integer in this buffer in big-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt24 = function(i) { + this.accommodate(3); + this.data.setInt16(this.write, i >> 8 & 0xFFFF); + this.data.setInt8(this.write, i >> 16 & 0xFF); + this.write += 3; + return this; +}; - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; +/** + * Puts a 32-bit integer in this buffer in big-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt32 = function(i) { + this.accommodate(4); + this.data.setInt32(this.write, i); + this.write += 4; + return this; +}; - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); +/** + * Puts a 16-bit integer in this buffer in little-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt16Le = function(i) { + this.accommodate(2); + this.data.setInt16(this.write, i, true); + this.write += 2; + return this; +}; - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } +/** + * Puts a 24-bit integer in this buffer in little-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt24Le = function(i) { + this.accommodate(3); + this.data.setInt8(this.write, i >> 16 & 0xFF); + this.data.setInt16(this.write, i >> 8 & 0xFFFF, true); + this.write += 3; + return this; +}; - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; +/** + * Puts a 32-bit integer in this buffer in little-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt32Le = function(i) { + this.accommodate(4); + this.data.setInt32(this.write, i, true); + this.write += 4; + return this; +}; - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); +/** + * Puts an n-bit integer in this buffer in big-endian order. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt = function(i, n) { + _checkBitsParam(n); + this.accommodate(n / 8); + do { + n -= 8; + this.data.setInt8(this.write++, (i >> n) & 0xFF); + } while(n > 0); + return this; +}; - } else { - state.position++; - captureEnd = state.position; - } +/** + * Puts a signed n-bit integer in this buffer in big-endian order. Two's + * complement representation is used. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putSignedInt = function(i, n) { + _checkBitsParam(n); + this.accommodate(n / 8); + if(i < 0) { + i += 2 << (n - 1); } + return this.putInt(i, n); +}; - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} - -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; +/** + * Gets a byte from this buffer and advances the read pointer by 1. + * + * @return the byte. + */ +util.DataBuffer.prototype.getByte = function() { + return this.data.getInt8(this.read++); +}; - ch = state.input.charCodeAt(state.position); +/** + * Gets a uint16 from this buffer in big-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.DataBuffer.prototype.getInt16 = function() { + var rval = this.data.getInt16(this.read); + this.read += 2; + return rval; +}; - if (ch !== 0x22/* " */) { - return false; - } +/** + * Gets a uint24 from this buffer in big-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.DataBuffer.prototype.getInt24 = function() { + var rval = ( + this.data.getInt16(this.read) << 8 ^ + this.data.getInt8(this.read + 2)); + this.read += 3; + return rval; +}; - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; +/** + * Gets a uint32 from this buffer in big-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.DataBuffer.prototype.getInt32 = function() { + var rval = this.data.getInt32(this.read); + this.read += 4; + return rval; +}; - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; +/** + * Gets a uint16 from this buffer in little-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.DataBuffer.prototype.getInt16Le = function() { + var rval = this.data.getInt16(this.read, true); + this.read += 2; + return rval; +}; - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); +/** + * Gets a uint24 from this buffer in little-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.DataBuffer.prototype.getInt24Le = function() { + var rval = ( + this.data.getInt8(this.read) ^ + this.data.getInt16(this.read + 1, true) << 8); + this.read += 3; + return rval; +}; - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); +/** + * Gets a uint32 from this buffer in little-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.DataBuffer.prototype.getInt32Le = function() { + var rval = this.data.getInt32(this.read, true); + this.read += 4; + return rval; +}; - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; +/** + * Gets an n-bit integer from this buffer in big-endian order and advances the + * read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.DataBuffer.prototype.getInt = function(n) { + _checkBitsParam(n); + var rval = 0; + do { + // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. + rval = (rval << 8) + this.data.getInt8(this.read++); + n -= 8; + } while(n > 0); + return rval; +}; - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; +/** + * Gets a signed n-bit integer from this buffer in big-endian order, using + * two's complement, and advances the read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.DataBuffer.prototype.getSignedInt = function(n) { + // getInt checks n + var x = this.getInt(n); + var max = 2 << (n - 2); + if(x >= max) { + x -= max << 1; + } + return x; +}; - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); +/** + * Reads bytes out as a binary encoded string and clears them from the + * buffer. + * + * @param count the number of bytes to read, undefined or null for all. + * + * @return a binary encoded string of bytes. + */ +util.DataBuffer.prototype.getBytes = function(count) { + // TODO: deprecate this method, it is poorly named and + // this.toString('binary') replaces it + // add a toTypedArray()/toArrayBuffer() function + var rval; + if(count) { + // read count bytes + count = Math.min(this.length(), count); + rval = this.data.slice(this.read, this.read + count); + this.read += count; + } else if(count === 0) { + rval = ''; + } else { + // read all bytes, optimize to only copy when needed + rval = (this.read === 0) ? this.data : this.data.slice(this.read); + this.clear(); + } + return rval; +}; - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; +/** + * Gets a binary encoded string of the bytes from this buffer without + * modifying the read pointer. + * + * @param count the number of bytes to get, omit to get all. + * + * @return a string full of binary encoded characters. + */ +util.DataBuffer.prototype.bytes = function(count) { + // TODO: deprecate this method, it is poorly named, add "getString()" + return (typeof(count) === 'undefined' ? + this.data.slice(this.read) : + this.data.slice(this.read, this.read + count)); +}; - } else { - throwError(state, 'expected hexadecimal character'); - } - } +/** + * Gets a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * + * @return the byte. + */ +util.DataBuffer.prototype.at = function(i) { + return this.data.getUint8(this.read + i); +}; - state.result += charFromCodepoint(hexResult); +/** + * Puts a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * @param b the byte to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.setAt = function(i, b) { + this.data.setUint8(i, b); + return this; +}; - state.position++; +/** + * Gets the last byte without modifying the read pointer. + * + * @return the last byte. + */ +util.DataBuffer.prototype.last = function() { + return this.data.getUint8(this.write - 1); +}; - } else { - throwError(state, 'unknown escape sequence'); - } +/** + * Creates a copy of this buffer. + * + * @return the copy. + */ +util.DataBuffer.prototype.copy = function() { + return new util.DataBuffer(this); +}; - captureStart = captureEnd = state.position; +/** + * Compacts this buffer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.compact = function() { + if(this.read > 0) { + var src = new Uint8Array(this.data.buffer, this.read); + var dst = new Uint8Array(src.byteLength); + dst.set(src); + this.data = new DataView(dst); + this.write -= this.read; + this.read = 0; + } + return this; +}; - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; +/** + * Clears this buffer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.clear = function() { + this.data = new DataView(new ArrayBuffer(0)); + this.read = this.write = 0; + return this; +}; - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); +/** + * Shortens this buffer by trimming bytes off of the end of this buffer. + * + * @param count the number of bytes to trim off. + * + * @return this buffer. + */ +util.DataBuffer.prototype.truncate = function(count) { + this.write = Math.max(0, this.length() - count); + this.read = Math.min(this.read, this.write); + return this; +}; - } else { - state.position++; - captureEnd = state.position; +/** + * Converts this buffer to a hexadecimal string. + * + * @return a hexadecimal string. + */ +util.DataBuffer.prototype.toHex = function() { + var rval = ''; + for(var i = this.read; i < this.data.byteLength; ++i) { + var b = this.data.getUint8(i); + if(b < 16) { + rval += '0'; } + rval += b.toString(16); } + return rval; +}; - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} - -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); +/** + * Converts this buffer to a string, using the given encoding. If no + * encoding is given, 'utf8' (UTF-8) is used. + * + * @param [encoding] the encoding to use: 'binary', 'utf8', 'utf16', 'hex', + * 'base64' (default: 'utf8'). + * + * @return a string representation of the bytes in this buffer. + */ +util.DataBuffer.prototype.toString = function(encoding) { + var view = new Uint8Array(this.data, this.read, this.length()); + encoding = encoding || 'utf8'; - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; + // encode to string + if(encoding === 'binary' || encoding === 'raw') { + return util.binary.raw.encode(view); + } + if(encoding === 'hex') { + return util.binary.hex.encode(view); + } + if(encoding === 'base64') { + return util.binary.base64.encode(view); } - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; + // decode to text + if(encoding === 'utf8') { + return util.text.utf8.decode(view); + } + if(encoding === 'utf16') { + return util.text.utf16.decode(view); } - ch = state.input.charCodeAt(++state.position); + throw new Error('Invalid encoding: ' + encoding); +}; - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); +/** End Buffer w/UInt8Array backing */ - ch = state.input.charCodeAt(state.position); +/** + * Creates a buffer that stores bytes. A value may be given to populate the + * buffer with data. This value can either be string of encoded bytes or a + * regular string of characters. When passing a string of binary encoded + * bytes, the encoding `raw` should be given. This is also the default. When + * passing a string of characters, the encoding `utf8` should be given. + * + * @param [input] a string with encoded bytes to store in the buffer. + * @param [encoding] (default: 'raw', other: 'utf8'). + */ +util.createBuffer = function(input, encoding) { + // TODO: deprecate, use new ByteBuffer() instead + encoding = encoding || 'raw'; + if(input !== undefined && encoding === 'utf8') { + input = util.encodeUtf8(input); + } + return new util.ByteBuffer(input); +}; - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); +/** + * Fills a string with a particular value. If you want the string to be a byte + * string, pass in String.fromCharCode(theByte). + * + * @param c the character to fill the string with, use String.fromCharCode + * to fill the string with a byte value. + * @param n the number of characters of value c to fill with. + * + * @return the filled string. + */ +util.fillString = function(c, n) { + var s = ''; + while(n > 0) { + if(n & 1) { + s += c; } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } + n >>>= 1; + if(n > 0) { + c += c; } + } + return s; +}; - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; +/** + * Performs a per byte XOR between two byte strings and returns the result as a + * string of bytes. + * + * @param s1 first string of bytes. + * @param s2 second string of bytes. + * @param n the number of bytes to XOR. + * + * @return the XOR'd result. + */ +util.xorBytes = function(s1, s2, n) { + var s3 = ''; + var b = ''; + var t = ''; + var i = 0; + var c = 0; + for(; n > 0; --n, ++i) { + b = s1.charCodeAt(i) ^ s2.charCodeAt(i); + if(c >= 10) { + s3 += t; + t = ''; + c = 0; } + t += String.fromCharCode(b); + ++c; + } + s3 += t; + return s3; +}; - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } +/** + * Converts a hex string into a 'binary' encoded string of bytes. + * + * @param hex the hexadecimal string to convert. + * + * @return the binary-encoded string of bytes. + */ +util.hexToBytes = function(hex) { + // TODO: deprecate: "Deprecated. Use util.binary.hex.decode instead." + var rval = ''; + var i = 0; + if(hex.length & 1 == 1) { + // odd number of characters, convert first character alone + i = 1; + rval += String.fromCharCode(parseInt(hex[0], 16)); + } + // convert 2 characters (1 byte) at a time + for(; i < hex.length; i += 2) { + rval += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); + } + return rval; +}; - skipSeparationSpace(state, true, nodeIndent); +/** + * Converts a 'binary' encoded string of bytes to hex. + * + * @param bytes the byte string to convert. + * + * @return the string of hexadecimal characters. + */ +util.bytesToHex = function(bytes) { + // TODO: deprecate: "Deprecated. Use util.binary.hex.encode instead." + return util.createBuffer(bytes).toHex(); +}; - ch = state.input.charCodeAt(state.position); +/** + * Converts an 32-bit integer to 4-big-endian byte string. + * + * @param i the integer. + * + * @return the byte string. + */ +util.int32ToBytes = function(i) { + return ( + String.fromCharCode(i >> 24 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } +// base64 characters, reverse mapping +var _base64 = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; +var _base64Idx = [ +/*43 -43 = 0*/ +/*'+', 1, 2, 3,'/' */ + 62, -1, -1, -1, 63, - throwError(state, 'unexpected end of the stream within a flow collection'); -} +/*'0','1','2','3','4','5','6','7','8','9' */ + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; +/*15, 16, 17,'=', 19, 20, 21 */ + -1, -1, -1, 64, -1, -1, -1, - ch = state.input.charCodeAt(state.position); +/*65 - 43 = 22*/ +/*'A','B','C','D','E','F','G','H','I','J','K','L','M', */ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } +/*'N','O','P','Q','R','S','T','U','V','W','X','Y','Z' */ + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - state.kind = 'scalar'; - state.result = ''; +/*91 - 43 = 48 */ +/*48, 49, 50, 51, 52, 53 */ + -1, -1, -1, -1, -1, -1, - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); +/*97 - 43 = 54*/ +/*'a','b','c','d','e','f','g','h','i','j','k','l','m' */ + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } +/*'n','o','p','q','r','s','t','u','v','w','x','y','z' */ + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 +]; - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } +// base58 characters (Bitcoin alphabet) +var _base58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; - } else { - break; - } - } +/** + * Base64 encodes a 'binary' encoded string of bytes. + * + * @param input the binary encoded string of bytes to base64-encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the base64-encoded output. + */ +util.encode64 = function(input, maxline) { + // TODO: deprecate: "Deprecated. Use util.binary.base64.encode instead." + var line = ''; + var output = ''; + var chr1, chr2, chr3; + var i = 0; + while(i < input.length) { + chr1 = input.charCodeAt(i++); + chr2 = input.charCodeAt(i++); + chr3 = input.charCodeAt(i++); - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); + // encode 4 character group + line += _base64.charAt(chr1 >> 2); + line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); + if(isNaN(chr2)) { + line += '=='; + } else { + line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); + line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); + } - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); } } + output += line; + return output; +}; - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; +/** + * Base64 decodes a string into a 'binary' encoded string of bytes. + * + * @param input the base64-encoded input. + * + * @return the binary encoded string. + */ +util.decode64 = function(input) { + // TODO: deprecate: "Deprecated. Use util.binary.base64.decode instead." - ch = state.input.charCodeAt(state.position); + // remove all non-base64 characters + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } + var output = ''; + var enc1, enc2, enc3, enc4; + var i = 0; - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } + while(i < input.length) { + enc1 = _base64Idx[input.charCodeAt(i++) - 43]; + enc2 = _base64Idx[input.charCodeAt(i++) - 43]; + enc3 = _base64Idx[input.charCodeAt(i++) - 43]; + enc4 = _base64Idx[input.charCodeAt(i++) - 43]; - if (is_EOL(ch)) { - emptyLines++; - continue; + output += String.fromCharCode((enc1 << 2) | (enc2 >> 4)); + if(enc3 !== 64) { + // decoded at least 2 bytes + output += String.fromCharCode(((enc2 & 15) << 4) | (enc3 >> 2)); + if(enc4 !== 64) { + // decoded 3 bytes + output += String.fromCharCode(((enc3 & 3) << 6) | enc4); + } } + } - // End of the scalar. - if (state.lineIndent < textIndent) { + return output; +}; - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } +/** + * Encodes the given string of characters (a standard JavaScript + * string) as a binary encoded string where the bytes represent + * a UTF-8 encoded string of characters. Non-ASCII characters will be + * encoded as multiple bytes according to UTF-8. + * + * @param str a standard string of characters to encode. + * + * @return the binary encoded string. + */ +util.encodeUtf8 = function(str) { + return unescape(encodeURIComponent(str)); +}; - // Break this `while` cycle and go to the funciton's epilogue. - break; - } +/** + * Decodes a binary encoded string that contains bytes that + * represent a UTF-8 encoded string of characters -- into a + * string of characters (a standard JavaScript string). + * + * @param str the binary encoded string to decode. + * + * @return the resulting standard string of characters. + */ +util.decodeUtf8 = function(str) { + return decodeURIComponent(escape(str)); +}; - // Folded style: use fancy rules to handle line breaks. - if (folding) { +// binary encoding/decoding tools +// FIXME: Experimental. Do not use yet. +util.binary = { + raw: {}, + hex: {}, + base64: {}, + base58: {}, + baseN : { + encode: baseN.encode, + decode: baseN.decode + } +}; - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); +/** + * Encodes a Uint8Array as a binary-encoded string. This encoding uses + * a value between 0 and 255 for each character. + * + * @param bytes the Uint8Array to encode. + * + * @return the binary-encoded string. + */ +util.binary.raw.encode = function(bytes) { + return String.fromCharCode.apply(null, bytes); +}; - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); +/** + * Decodes a binary-encoded string to a Uint8Array. This encoding uses + * a value between 0 and 255 for each character. + * + * @param str the binary-encoded string to decode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.raw.decode = function(str, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(str.length); + } + offset = offset || 0; + var j = offset; + for(var i = 0; i < str.length; ++i) { + out[j++] = str.charCodeAt(i); + } + return output ? (j - offset) : out; +}; - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } +/** + * Encodes a 'binary' string, ArrayBuffer, DataView, TypedArray, or + * ByteBuffer as a string of hexadecimal characters. + * + * @param bytes the bytes to convert. + * + * @return the string of hexadecimal characters. + */ +util.binary.hex.encode = util.bytesToHex; - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } +/** + * Decodes a hex-encoded string to a Uint8Array. + * + * @param hex the hexadecimal string to convert. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.hex.decode = function(hex, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(Math.ceil(hex.length / 2)); + } + offset = offset || 0; + var i = 0, j = offset; + if(hex.length & 1) { + // odd number of characters, convert first character alone + i = 1; + out[j++] = parseInt(hex[0], 16); + } + // convert 2 characters (1 byte) at a time + for(; i < hex.length; i += 2) { + out[j++] = parseInt(hex.substr(i, 2), 16); + } + return output ? (j - offset) : out; +}; - // Literal style: just add exact number of line breaks between content lines. +/** + * Base64-encodes a Uint8Array. + * + * @param input the Uint8Array to encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the base64-encoded output string. + */ +util.binary.base64.encode = function(input, maxline) { + var line = ''; + var output = ''; + var chr1, chr2, chr3; + var i = 0; + while(i < input.byteLength) { + chr1 = input[i++]; + chr2 = input[i++]; + chr3 = input[i++]; + + // encode 4 character group + line += _base64.charAt(chr1 >> 2); + line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); + if(isNaN(chr2)) { + line += '=='; } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); + line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); + line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); } - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); } + } + output += line; + return output; +}; - captureSegment(state, captureStart, state.position, false); +/** + * Decodes a base64-encoded string to a Uint8Array. + * + * @param input the base64-encoded input string. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.base64.decode = function(input, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(Math.ceil(input.length / 4) * 3); } - return true; -} + // remove all non-base64 characters + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; + offset = offset || 0; + var enc1, enc2, enc3, enc4; + var i = 0, j = offset; - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; + while(i < input.length) { + enc1 = _base64Idx[input.charCodeAt(i++) - 43]; + enc2 = _base64Idx[input.charCodeAt(i++) - 43]; + enc3 = _base64Idx[input.charCodeAt(i++) - 43]; + enc4 = _base64Idx[input.charCodeAt(i++) - 43]; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; + out[j++] = (enc1 << 2) | (enc2 >> 4); + if(enc3 !== 64) { + // decoded at least 2 bytes + out[j++] = ((enc2 & 15) << 4) | (enc3 >> 2); + if(enc4 !== 64) { + // decoded 3 bytes + out[j++] = ((enc3 & 3) << 6) | enc4; + } + } } - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } + // make sure result is the exact decoded length + return output ? (j - offset) : out.subarray(0, j); +}; - if (ch !== 0x2D/* - */) { - break; - } +// add support for base58 encoding/decoding with Bitcoin alphabet +util.binary.base58.encode = function(input, maxline) { + return util.binary.baseN.encode(input, _base58, maxline); +}; +util.binary.base58.decode = function(input, maxline) { + return util.binary.baseN.decode(input, _base58, maxline); +}; - following = state.input.charCodeAt(state.position + 1); +// text encoding/decoding tools +// FIXME: Experimental. Do not use yet. +util.text = { + utf8: {}, + utf16: {} +}; - if (!is_WS_OR_EOL(following)) { - break; - } +/** + * Encodes the given string as UTF-8 in a Uint8Array. + * + * @param str the string to encode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.text.utf8.encode = function(str, output, offset) { + str = util.encodeUtf8(str); + var out = output; + if(!out) { + out = new Uint8Array(str.length); + } + offset = offset || 0; + var j = offset; + for(var i = 0; i < str.length; ++i) { + out[j++] = str.charCodeAt(i); + } + return output ? (j - offset) : out; +}; - detected = true; - state.position++; +/** + * Decodes the UTF-8 contents from a Uint8Array. + * + * @param bytes the Uint8Array to decode. + * + * @return the resulting string. + */ +util.text.utf8.decode = function(bytes) { + return util.decodeUtf8(String.fromCharCode.apply(null, bytes)); +}; - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } +/** + * Encodes the given string as UTF-16 in a Uint8Array. + * + * @param str the string to encode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.text.utf16.encode = function(str, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(str.length * 2); + } + var view = new Uint16Array(out.buffer); + offset = offset || 0; + var j = offset; + var k = offset; + for(var i = 0; i < str.length; ++i) { + view[k++] = str.charCodeAt(i); + j += 2; + } + return output ? (j - offset) : out; +}; - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); +/** + * Decodes the UTF-16 contents from a Uint8Array. + * + * @param bytes the Uint8Array to decode. + * + * @return the resulting string. + */ +util.text.utf16.decode = function(bytes) { + return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer)); +}; - ch = state.input.charCodeAt(state.position); +/** + * Deflates the given data using a flash interface. + * + * @param api the flash interface. + * @param bytes the data. + * @param raw true to return only raw deflate data, false to include zlib + * header and trailer. + * + * @return the deflated data as a string. + */ +util.deflate = function(api, bytes, raw) { + bytes = util.decode64(api.deflate(util.encode64(bytes)).rval); - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; + // strip zlib header and trailer if necessary + if(raw) { + // zlib header is 2 bytes (CMF,FLG) where FLG indicates that + // there is a 4-byte DICT (alder-32) block before the data if + // its 5th bit is set + var start = 2; + var flg = bytes.charCodeAt(1); + if(flg & 0x20) { + start = 6; } + // zlib trailer is 4 bytes of adler-32 + bytes = bytes.substring(start, bytes.length - 4); } - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} - -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; + return bytes; +}; - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; +/** + * Inflates the given data using a flash interface. + * + * @param api the flash interface. + * @param bytes the data. + * @param raw true if the incoming data has no zlib header or trailer and is + * raw DEFLATE data. + * + * @return the inflated data as a string, null on error. + */ +util.inflate = function(api, bytes, raw) { + // TODO: add zlib header and trailer if necessary/possible + var rval = api.inflate(util.encode64(bytes)).rval; + return (rval === null) ? null : util.decode64(rval); +}; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; +/** + * Sets a storage object. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param obj the storage object, null to remove. + */ +var _setStorageObject = function(api, id, obj) { + if(!api) { + throw new Error('WebStorage not available.'); } - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. + var rval; + if(obj === null) { + rval = api.removeItem(id); + } else { + // json-encode and base64-encode object + obj = util.encode64(JSON.stringify(obj)); + rval = api.setItem(id, obj); + } - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { + // handle potential flash error + if(typeof(rval) !== 'undefined' && rval.rval !== true) { + var error = new Error(rval.error.message); + error.id = rval.error.id; + error.name = rval.error.name; + throw error; + } +}; - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } +/** + * Gets a storage object. + * + * @param api the storage interface. + * @param id the storage ID to use. + * + * @return the storage object entry or null if none exists. + */ +var _getStorageObject = function(api, id) { + if(!api) { + throw new Error('WebStorage not available.'); + } - detected = true; - atExplicitKey = true; - allowCompact = true; + // get the existing entry + var rval = api.getItem(id); - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; + /* Note: We check api.init because we can't do (api == localStorage) + on IE because of "Class doesn't support Automation" exception. Only + the flash api has an init method so this works too, but we need a + better solution in the future. */ - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); + // flash returns item wrapped in an object, handle special case + if(api.init) { + if(rval.rval === null) { + if(rval.error) { + var error = new Error(rval.error.message); + error.id = rval.error.id; + error.name = rval.error.name; + throw error; } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // + // no error, but also no item + rval = null; } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; + rval = rval.rval; + } + } - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } + // handle decoding + if(rval !== null) { + // base64-decode and json-decode data + rval = JSON.parse(util.decode64(rval)); + } - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); + return rval; +}; - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } +/** + * Stores an item in local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + * @param data the data for the item (any javascript object/primitive). + */ +var _setItem = function(api, id, key, data) { + // get storage object + var obj = _getStorageObject(api, id); + if(obj === null) { + // create a new storage object + obj = {}; + } + // update key + obj[key] = data; - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); + // set storage object + _setStorageObject(api, id, obj); +}; - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } +/** + * Gets an item from local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + * + * @return the item. + */ +var _getItem = function(api, id, key) { + // get storage object + var rval = _getStorageObject(api, id); + if(rval !== null) { + // return data at key + rval = (key in rval) ? rval[key] : null; + } - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } + return rval; +}; - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; +/** + * Removes an item from local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + */ +var _removeItem = function(api, id, key) { + // get storage object + var obj = _getStorageObject(api, id); + if(obj !== null && key in obj) { + // remove key + delete obj[key]; - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); + // see if entry has no keys remaining + var empty = true; + for(var prop in obj) { + empty = false; + break; + } + if(empty) { + // remove entry entirely if no keys are left + obj = null; + } - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } + // set storage object + _setStorageObject(api, id, obj); + } +}; - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); +/** + * Clears the local disk storage identified by the given ID. + * + * @param api the storage interface. + * @param id the storage ID to use. + */ +var _clearItems = function(api, id) { + _setStorageObject(api, id, null); +}; - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } +/** + * Calls a storage function. + * + * @param func the function to call. + * @param args the arguments for the function. + * @param location the location argument. + * + * @return the return value from the function. + */ +var _callStorageFunction = function(func, args, location) { + var rval = null; - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } + // default storage types + if(typeof(location) === 'undefined') { + location = ['web', 'flash']; + } - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; + // apply storage types in order of preference + var type; + var done = false; + var exception = null; + for(var idx in location) { + type = location[idx]; + try { + if(type === 'flash' || type === 'both') { + if(args[0] === null) { + throw new Error('Flash local storage not available.'); } + rval = func.apply(this, args); + done = (type === 'flash'); } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; + if(type === 'web' || type === 'both') { + args[0] = localStorage; + rval = func.apply(this, args); + done = true; } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); + } catch(ex) { + exception = ex; } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { + if(done) { break; } } - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; + if(!done) { + throw exception; } - return detected; -} - -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; + return rval; +}; - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } +/** + * Stores an item on local disk. + * + * The available types of local storage include 'flash', 'web', and 'both'. + * + * The type 'flash' refers to flash local storage (SharedObject). In order + * to use flash local storage, the 'api' parameter must be valid. The type + * 'web' refers to WebStorage, if supported by the browser. The type 'both' + * refers to storing using both 'flash' and 'web', not just one or the + * other. + * + * The location array should list the storage types to use in order of + * preference: + * + * ['flash']: flash only storage + * ['web']: web only storage + * ['both']: try to store in both + * ['flash','web']: store in flash first, but if not available, 'web' + * ['web','flash']: store in web first, but if not available, 'flash' + * + * The location array defaults to: ['web', 'flash'] + * + * @param api the flash interface, null to use only WebStorage. + * @param id the storage ID to use. + * @param key the key for the item. + * @param data the data for the item (any javascript object/primitive). + * @param location an array with the preferred types of storage to use. + */ +util.setItem = function(api, id, key, data, location) { + _callStorageFunction(_setItem, arguments, location); +}; - ch = state.input.charCodeAt(++state.position); +/** + * Gets an item on local disk. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface, null to use only WebStorage. + * @param id the storage ID to use. + * @param key the key for the item. + * @param location an array with the preferred types of storage to use. + * + * @return the item. + */ +util.getItem = function(api, id, key, location) { + return _callStorageFunction(_getItem, arguments, location); +}; - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); +/** + * Removes an item on local disk. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface. + * @param id the storage ID to use. + * @param key the key for the item. + * @param location an array with the preferred types of storage to use. + */ +util.removeItem = function(api, id, key, location) { + _callStorageFunction(_removeItem, arguments, location); +}; - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); +/** + * Clears the local disk storage identified by the given ID. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface if flash is available. + * @param id the storage ID to use. + * @param location an array with the preferred types of storage to use. + */ +util.clearItems = function(api, id, location) { + _callStorageFunction(_clearItems, arguments, location); +}; - } else { - tagHandle = '!'; +/** + * Check if an object is empty. + * + * Taken from: + * http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937 + * + * @param object the object to check. + */ +util.isEmpty = function(obj) { + for(var prop in obj) { + if(obj.hasOwnProperty(prop)) { + return false; + } } + return true; +}; - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); +/** + * Format with simple printf-style interpolation. + * + * %%: literal '%' + * %s,%o: convert next argument into a string. + * + * @param format the string to format. + * @param ... arguments to interpolate into the format string. + */ +util.format = function(format) { + var re = /%./g; + // current match + var match; + // current part + var part; + // current arg index + var argi = 0; + // collected parts to recombine later + var parts = []; + // last index found + var last = 0; + // loop while matches remain + while((match = re.exec(format))) { + part = format.substring(last, re.lastIndex - 2); + // don't add empty strings (ie, parts between %s%s) + if(part.length > 0) { + parts.push(part); } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } + last = re.lastIndex; + // switch on % code + var code = match[0][1]; + switch(code) { + case 's': + case 'o': + // check if enough arguments were given + if(argi < arguments.length) { + parts.push(arguments[argi++ + 1]); + } else { + parts.push(''); } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); + break; + // FIXME: do proper formatting for numbers, etc + //case 'f': + //case 'd': + case '%': + parts.push('%'); + break; + default: + parts.push('<%' + code + '?>'); } } + // add trailing part of format string + parts.push(format.substring(last)); + return parts.join(''); +}; - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; +/** + * Formats a number. + * + * http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/ + */ +util.formatNumber = function(number, decimals, dec_point, thousands_sep) { + // http://kevin.vanzonneveld.net + // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) + // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) + // + bugfix by: Michael White (http://crestidg.com) + // + bugfix by: Benjamin Lupton + // + bugfix by: Allan Jensen (http://www.winternet.no) + // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) + // * example 1: number_format(1234.5678, 2, '.', ''); + // * returns 1: 1234.57 - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; + var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; + var d = dec_point === undefined ? ',' : dec_point; + var t = thousands_sep === undefined ? + '.' : thousands_sep, s = n < 0 ? '-' : ''; + var i = parseInt((n = Math.abs(+n || 0).toFixed(c)), 10) + ''; + var j = (i.length > 3) ? i.length % 3 : 0; + return s + (j ? i.substr(0, j) + t : '') + + i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + t) + + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ''); +}; +/** + * Formats a byte size. + * + * http://snipplr.com/view/5949/format-humanize-file-byte-size-presentation-in-javascript/ + */ +util.formatSize = function(size) { + if(size >= 1073741824) { + size = util.formatNumber(size / 1073741824, 2, '.', '') + ' GiB'; + } else if(size >= 1048576) { + size = util.formatNumber(size / 1048576, 2, '.', '') + ' MiB'; + } else if(size >= 1024) { + size = util.formatNumber(size / 1024, 0) + ' KiB'; } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); + size = util.formatNumber(size, 0) + ' bytes'; } + return size; +}; - return true; -} - -function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); +/** + * Converts an IPv4 or IPv6 string representation into bytes (in network order). + * + * @param ip the IPv4 or IPv6 address to convert. + * + * @return the 4-byte IPv6 or 16-byte IPv6 address or null if the address can't + * be parsed. + */ +util.bytesFromIP = function(ip) { + if(ip.indexOf('.') !== -1) { + return util.bytesFromIPv4(ip); } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); + if(ip.indexOf(':') !== -1) { + return util.bytesFromIPv6(ip); } + return null; +}; - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); +/** + * Converts an IPv4 string representation into bytes (in network order). + * + * @param ip the IPv4 address to convert. + * + * @return the 4-byte address or null if the address can't be parsed. + */ +util.bytesFromIPv4 = function(ip) { + ip = ip.split('.'); + if(ip.length !== 4) { + return null; } - - state.anchor = state.input.slice(_position, state.position); - return true; -} - -function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); + var b = util.createBuffer(); + for(var i = 0; i < ip.length; ++i) { + var num = parseInt(ip[i], 10); + if(isNaN(num)) { + return null; + } + b.putByte(num); } + return b.getBytes(); +}; - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); +/** + * Converts an IPv6 string representation into bytes (in network order). + * + * @param ip the IPv6 address to convert. + * + * @return the 16-byte address or null if the address can't be parsed. + */ +util.bytesFromIPv6 = function(ip) { + var blanks = 0; + ip = ip.split(':').filter(function(e) { + if(e.length === 0) ++blanks; + return true; + }); + var zeros = (8 - ip.length + blanks) * 2; + var b = util.createBuffer(); + for(var i = 0; i < 8; ++i) { + if(!ip[i] || ip[i].length === 0) { + b.fillWithByte(0, zeros); + zeros = 0; + continue; + } + var bytes = util.hexToBytes(ip[i]); + if(bytes.length < 2) { + b.putByte(0); + } + b.putBytes(bytes); } + return b.getBytes(); +}; - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); +/** + * Converts 4-bytes into an IPv4 string representation or 16-bytes into + * an IPv6 string representation. The bytes must be in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv4 or IPv6 string representation if 4 or 16 bytes, + * respectively, are given, otherwise null. + */ +util.bytesToIP = function(bytes) { + if(bytes.length === 4) { + return util.bytesToIPv4(bytes); } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} - -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } +/** + * Converts 4-bytes into an IPv4 string representation. The bytes must be + * in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv4 string representation or null for an invalid # of bytes. + */ +util.bytesToIPv4 = function(bytes) { + if(bytes.length !== 4) { + return null; } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } + var ip = []; + for(var i = 0; i < bytes.length; ++i) { + ip.push(bytes.charCodeAt(i)); } + return ip.join('.'); +}; - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; +/** + * Converts 16-bytes into an IPv16 string representation. The bytes must be + * in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv16 string representation or null for an invalid # of bytes. + */ +util.bytesToIPv6 = function(bytes) { + if(bytes.length !== 16) { + return null; } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; + var ip = []; + var zeroGroups = []; + var zeroMaxGroup = 0; + for(var i = 0; i < bytes.length; i += 2) { + var hex = util.bytesToHex(bytes[i] + bytes[i + 1]); + // canonicalize zero representation + while(hex[0] === '0' && hex !== '0') { + hex = hex.substr(1); } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; + if(hex === '0') { + var last = zeroGroups[zeroGroups.length - 1]; + var idx = ip.length; + if(!last || idx !== last.end + 1) { + zeroGroups.push({start: idx, end: idx}); } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; + last.end = idx; + if((last.end - last.start) > + (zeroGroups[zeroMaxGroup].end - zeroGroups[zeroMaxGroup].start)) { + zeroMaxGroup = zeroGroups.length - 1; } } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); } + ip.push(hex); } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } + if(zeroGroups.length > 0) { + var group = zeroGroups[zeroMaxGroup]; + // only shorten group of length > 0 + if(group.end - group.start > 0) { + ip.splice(group.start, group.end - group.start + 1, ''); + if(group.start === 0) { + ip.unshift(''); } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; + if(group.end === 7) { + ip.push(''); } } } + return ip.join(':'); +}; - if (state.listener !== null) { - state.listener('close', state); +/** + * Estimates the number of processes that can be run concurrently. If + * creating Web Workers, keep in mind that the main JavaScript process needs + * its own core. + * + * @param options the options to use: + * update true to force an update (not use the cached value). + * @param callback(err, max) called once the operation completes. + */ +util.estimateCores = function(options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + if('cores' in util && !options.update) { + return callback(null, util.cores); + } + if(typeof navigator !== 'undefined' && + 'hardwareConcurrency' in navigator && + navigator.hardwareConcurrency > 0) { + util.cores = navigator.hardwareConcurrency; + return callback(null, util.cores); + } + if(typeof Worker === 'undefined') { + // workers not available + util.cores = 1; + return callback(null, util.cores); + } + if(typeof Blob === 'undefined') { + // can't estimate, default to 2 + util.cores = 2; + return callback(null, util.cores); } - return state.tag !== null || state.anchor !== null || hasContent; -} - -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); + // create worker concurrency estimation code as blob + var blobUrl = URL.createObjectURL(new Blob(['(', + function() { + self.addEventListener('message', function(e) { + // run worker for 4 ms + var st = Date.now(); + var et = st + 4; + while(Date.now() < et); + self.postMessage({st: st, et: et}); + }); + }.toString(), + ')()'], {type: 'application/javascript'})); - ch = state.input.charCodeAt(state.position); + // take 5 samples using 16 workers + sample([], 5, 16); - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; + function sample(max, samples, numWorkers) { + if(samples === 0) { + // get overlap average + var avg = Math.floor(max.reduce(function(avg, x) { + return avg + x; + }, 0) / max.length); + util.cores = Math.max(1, avg); + URL.revokeObjectURL(blobUrl); + return callback(null, util.cores); } + map(numWorkers, function(err, results) { + max.push(reduce(numWorkers, results)); + sample(max, samples - 1, numWorkers); + }); + } - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); + function map(numWorkers, callback) { + var workers = []; + var results = []; + for(var i = 0; i < numWorkers; ++i) { + var worker = new Worker(blobUrl); + worker.addEventListener('message', function(e) { + results.push(e.data); + if(results.length === numWorkers) { + for(var i = 0; i < numWorkers; ++i) { + workers[i].terminate(); + } + callback(null, results); + } + }); + workers.push(worker); } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); + for(var i = 0; i < numWorkers; ++i) { + workers[i].postMessage(i); } + } - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); + function reduce(numWorkers, results) { + // find overlapping time windows + var overlaps = []; + for(var n = 0; n < numWorkers; ++n) { + var r1 = results[n]; + var overlap = overlaps[n] = []; + for(var i = 0; i < numWorkers; ++i) { + if(n === i) { + continue; + } + var r2 = results[i]; + if((r1.st > r2.st && r1.st < r2.et) || + (r2.st > r1.st && r2.st < r1.et)) { + overlap.push(i); + } } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); } + // get maximum overlaps ... don't include overlapping worker itself + // as the main JS process was also being scheduled during the work and + // would have to be subtracted from the estimate anyway + return overlaps.reduce(function(max, overlap) { + return Math.max(max, overlap.length); + }, 0); } +}; - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); +/***/ }), - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } +/***/ 60183: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - state.documents.push(state.result); +/** + * Javascript implementation of X.509 and related components (such as + * Certification Signing Requests) of a Public Key Infrastructure. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * + * The ASN.1 representation of an X.509v3 certificate is as follows + * (see RFC 2459): + * + * Certificate ::= SEQUENCE { + * tbsCertificate TBSCertificate, + * signatureAlgorithm AlgorithmIdentifier, + * signatureValue BIT STRING + * } + * + * TBSCertificate ::= SEQUENCE { + * version [0] EXPLICIT Version DEFAULT v1, + * serialNumber CertificateSerialNumber, + * signature AlgorithmIdentifier, + * issuer Name, + * validity Validity, + * subject Name, + * subjectPublicKeyInfo SubjectPublicKeyInfo, + * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, + * -- If present, version shall be v2 or v3 + * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, + * -- If present, version shall be v2 or v3 + * extensions [3] EXPLICIT Extensions OPTIONAL + * -- If present, version shall be v3 + * } + * + * Version ::= INTEGER { v1(0), v2(1), v3(2) } + * + * CertificateSerialNumber ::= INTEGER + * + * Name ::= CHOICE { + * // only one possible choice for now + * RDNSequence + * } + * + * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName + * + * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue + * + * AttributeTypeAndValue ::= SEQUENCE { + * type AttributeType, + * value AttributeValue + * } + * AttributeType ::= OBJECT IDENTIFIER + * AttributeValue ::= ANY DEFINED BY AttributeType + * + * Validity ::= SEQUENCE { + * notBefore Time, + * notAfter Time + * } + * + * Time ::= CHOICE { + * utcTime UTCTime, + * generalTime GeneralizedTime + * } + * + * UniqueIdentifier ::= BIT STRING + * + * SubjectPublicKeyInfo ::= SEQUENCE { + * algorithm AlgorithmIdentifier, + * subjectPublicKey BIT STRING + * } + * + * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension + * + * Extension ::= SEQUENCE { + * extnID OBJECT IDENTIFIER, + * critical BOOLEAN DEFAULT FALSE, + * extnValue OCTET STRING + * } + * + * The only key algorithm currently supported for PKI is RSA. + * + * RSASSA-PSS signatures are described in RFC 3447 and RFC 4055. + * + * PKCS#10 v1.7 describes certificate signing requests: + * + * CertificationRequestInfo: + * + * CertificationRequestInfo ::= SEQUENCE { + * version INTEGER { v1(0) } (v1,...), + * subject Name, + * subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, + * attributes [0] Attributes{{ CRIAttributes }} + * } + * + * Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} + * + * CRIAttributes ATTRIBUTE ::= { + * ... -- add any locally defined attributes here -- } + * + * Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { + * type ATTRIBUTE.&id({IOSet}), + * values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) + * } + * + * CertificationRequest ::= SEQUENCE { + * certificationRequestInfo CertificationRequestInfo, + * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, + * signature BIT STRING + * } + */ +var forge = __nccwpck_require__(40080); +__nccwpck_require__(12004); +__nccwpck_require__(87878); +__nccwpck_require__(42499); +__nccwpck_require__(5454); +__nccwpck_require__(31921); +__nccwpck_require__(40934); +__nccwpck_require__(21117); +__nccwpck_require__(17621); +__nccwpck_require__(56361); +__nccwpck_require__(46831); - if (state.position === state.lineStart && testDocumentSeparator(state)) { +// shortcut for asn.1 API +var asn1 = forge.asn1; - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } +/* Public Key Infrastructure (PKI) implementation. */ +var pki = module.exports = forge.pki = forge.pki || {}; +var oids = pki.oids; - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} +// short name OID mappings +var _shortNames = {}; +_shortNames['CN'] = oids['commonName']; +_shortNames['commonName'] = 'CN'; +_shortNames['C'] = oids['countryName']; +_shortNames['countryName'] = 'C'; +_shortNames['L'] = oids['localityName']; +_shortNames['localityName'] = 'L'; +_shortNames['ST'] = oids['stateOrProvinceName']; +_shortNames['stateOrProvinceName'] = 'ST'; +_shortNames['O'] = oids['organizationName']; +_shortNames['organizationName'] = 'O'; +_shortNames['OU'] = oids['organizationalUnitName']; +_shortNames['organizationalUnitName'] = 'OU'; +_shortNames['E'] = oids['emailAddress']; +_shortNames['emailAddress'] = 'E'; +// validator for an SubjectPublicKeyInfo structure +// Note: Currently only works with an RSA public key +var publicKeyValidator = forge.pki.rsa.publicKeyValidator; -function loadDocuments(input, options) { - input = String(input); - options = options || {}; +// validator for an X.509v3 certificate +var x509CertificateValidator = { + name: 'Certificate', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Certificate.TBSCertificate', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'tbsCertificate', + value: [{ + name: 'Certificate.TBSCertificate.version', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.version.integer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certVersion' + }] + }, { + name: 'Certificate.TBSCertificate.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certSerialNumber' + }, { + name: 'Certificate.TBSCertificate.signature', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Certificate.TBSCertificate.signature.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certinfoSignatureOid' + }, { + name: 'Certificate.TBSCertificate.signature.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'certinfoSignatureParams' + }] + }, { + name: 'Certificate.TBSCertificate.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certIssuer' + }, { + name: 'Certificate.TBSCertificate.validity', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + // Note: UTC and generalized times may both appear so the capture + // names are based on their detected order, the names used below + // are only for the common case, which validity time really means + // "notBefore" and which means "notAfter" will be determined by order + value: [{ + // notBefore (Time) (UTC time case) + name: 'Certificate.TBSCertificate.validity.notBefore (utc)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.UTCTIME, + constructed: false, + optional: true, + capture: 'certValidity1UTCTime' + }, { + // notBefore (Time) (generalized time case) + name: 'Certificate.TBSCertificate.validity.notBefore (generalized)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.GENERALIZEDTIME, + constructed: false, + optional: true, + capture: 'certValidity2GeneralizedTime' + }, { + // notAfter (Time) (only UTC time is supported) + name: 'Certificate.TBSCertificate.validity.notAfter (utc)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.UTCTIME, + constructed: false, + optional: true, + capture: 'certValidity3UTCTime' + }, { + // notAfter (Time) (only UTC time is supported) + name: 'Certificate.TBSCertificate.validity.notAfter (generalized)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.GENERALIZEDTIME, + constructed: false, + optional: true, + capture: 'certValidity4GeneralizedTime' + }] + }, { + // Name (subject) (RDNSequence) + name: 'Certificate.TBSCertificate.subject', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certSubject' + }, + // SubjectPublicKeyInfo + publicKeyValidator, + { + // issuerUniqueID (optional) + name: 'Certificate.TBSCertificate.issuerUniqueID', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.issuerUniqueID.id', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + // TODO: support arbitrary bit length ids + captureBitStringValue: 'certIssuerUniqueId' + }] + }, { + // subjectUniqueID (optional) + name: 'Certificate.TBSCertificate.subjectUniqueID', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 2, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.subjectUniqueID.id', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + // TODO: support arbitrary bit length ids + captureBitStringValue: 'certSubjectUniqueId' + }] + }, { + // Extensions (optional) + name: 'Certificate.TBSCertificate.extensions', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 3, + constructed: true, + captureAsn1: 'certExtensions', + optional: true + }] + }, { + // AlgorithmIdentifier (signature algorithm) + name: 'Certificate.signatureAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // algorithm + name: 'Certificate.signatureAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certSignatureOid' + }, { + name: 'Certificate.TBSCertificate.signature.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'certSignatureParams' + }] + }, { + // SignatureValue + name: 'Certificate.signatureValue', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + captureBitStringValue: 'certSignature' + }] +}; - if (input.length !== 0) { +var rsassaPssParameterValidator = { + name: 'rsapss', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'rsapss.hashAlgorithm', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + value: [{ + name: 'rsapss.hashAlgorithm.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'hashOid' + /* parameter block omitted, for SHA1 NULL anyhow. */ + }] + }] + }, { + name: 'rsapss.maskGenAlgorithm', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'maskGenOid' + }, { + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'maskGenHashOid' + /* parameter block omitted, for SHA1 NULL anyhow. */ + }] + }] + }] + }, { + name: 'rsapss.saltLength', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 2, + optional: true, + value: [{ + name: 'rsapss.saltLength.saltLength', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.INTEGER, + constructed: false, + capture: 'saltLength' + }] + }, { + name: 'rsapss.trailerField', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 3, + optional: true, + value: [{ + name: 'rsapss.trailer.trailer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.INTEGER, + constructed: false, + capture: 'trailer' + }] + }] +}; - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } +// validator for a CertificationRequestInfo structure +var certificationRequestInfoValidator = { + name: 'CertificationRequestInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certificationRequestInfo', + value: [{ + name: 'CertificationRequestInfo.integer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certificationRequestInfoVersion' + }, { + // Name (subject) (RDNSequence) + name: 'CertificationRequestInfo.subject', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certificationRequestInfoSubject' + }, + // SubjectPublicKeyInfo + publicKeyValidator, + { + name: 'CertificationRequestInfo.attributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + capture: 'certificationRequestInfoAttributes', + value: [{ + name: 'CertificationRequestInfo.attributes', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'CertificationRequestInfo.attributes.type', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false + }, { + name: 'CertificationRequestInfo.attributes.value', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true + }] + }] + }] +}; - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); +// validator for a CertificationRequest structure +var certificationRequestValidator = { + name: 'CertificationRequest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'csr', + value: [ + certificationRequestInfoValidator, { + // AlgorithmIdentifier (signature algorithm) + name: 'CertificationRequest.signatureAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // algorithm + name: 'CertificationRequest.signatureAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'csrSignatureOid' + }, { + name: 'CertificationRequest.signatureAlgorithm.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'csrSignatureParams' + }] + }, { + // signature + name: 'CertificationRequest.signature', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + captureBitStringValue: 'csrSignature' } - } - - var state = new State(input, options); - - var nullpos = input.indexOf('\0'); + ] +}; - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } +/** + * Converts an RDNSequence of ASN.1 DER-encoded RelativeDistinguishedName + * sets into an array with objects that have type and value properties. + * + * @param rdn the RDNSequence to convert. + * @param md a message digest to append type and value to if provided. + */ +pki.RDNAttributesAsArray = function(rdn, md) { + var rval = []; - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; + // each value in 'rdn' in is a SET of RelativeDistinguishedName + var set, attr, obj; + for(var si = 0; si < rdn.value.length; ++si) { + // get the RelativeDistinguishedName set + set = rdn.value[si]; - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; + // each value in the SET is an AttributeTypeAndValue sequence + // containing first a type (an OID) and second a value (defined by + // the OID) + for(var i = 0; i < set.value.length; ++i) { + obj = {}; + attr = set.value[i]; + obj.type = asn1.derToOid(attr.value[0].value); + obj.value = attr.value[1].value; + obj.valueTagClass = attr.value[1].type; + // if the OID is known, get its name and short name + if(obj.type in oids) { + obj.name = oids[obj.type]; + if(obj.name in _shortNames) { + obj.shortName = _shortNames[obj.name]; + } + } + if(md) { + md.update(obj.type); + md.update(obj.value); + } + rval.push(obj); + } } - while (state.position < (state.length - 1)) { - readDocument(state); - } + return rval; +}; - return state.documents; -} +/** + * Converts ASN.1 CRIAttributes into an array with objects that have type and + * value properties. + * + * @param attributes the CRIAttributes to convert. + */ +pki.CRIAttributesAsArray = function(attributes) { + var rval = []; + // each value in 'attributes' in is a SEQUENCE with an OID and a SET + for(var si = 0; si < attributes.length; ++si) { + // get the attribute sequence + var seq = attributes[si]; -function loadAll(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; + // each value in the SEQUENCE containing first a type (an OID) and + // second a set of values (defined by the OID) + var type = asn1.derToOid(seq.value[0].value); + var values = seq.value[1].value; + for(var vi = 0; vi < values.length; ++vi) { + var obj = {}; + obj.type = type; + obj.value = values[vi].value; + obj.valueTagClass = values[vi].type; + // if the OID is known, get its name and short name + if(obj.type in oids) { + obj.name = oids[obj.type]; + if(obj.name in _shortNames) { + obj.shortName = _shortNames[obj.name]; + } + } + // parse extensions + if(obj.type === oids.extensionRequest) { + obj.extensions = []; + for(var ei = 0; ei < obj.value.length; ++ei) { + obj.extensions.push(pki.certificateExtensionFromAsn1(obj.value[ei])); + } + } + rval.push(obj); + } } - var documents = loadDocuments(input, options); + return rval; +}; - if (typeof iterator !== 'function') { - return documents; +/** + * Gets an issuer or subject attribute from its name, type, or short name. + * + * @param obj the issuer or subject object. + * @param options a short name string or an object with: + * shortName the short name for the attribute. + * name the name for the attribute. + * type the type for the attribute. + * + * @return the attribute. + */ +function _getAttribute(obj, options) { + if(typeof options === 'string') { + options = {shortName: options}; } - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); + var rval = null; + var attr; + for(var i = 0; rval === null && i < obj.attributes.length; ++i) { + attr = obj.attributes[i]; + if(options.type && options.type === attr.type) { + rval = attr; + } else if(options.name && options.name === attr.name) { + rval = attr; + } else if(options.shortName && options.shortName === attr.shortName) { + rval = attr; + } } + return rval; } +/** + * Converts signature parameters from ASN.1 structure. + * + * Currently only RSASSA-PSS supported. The PKCS#1 v1.5 signature scheme had + * no parameters. + * + * RSASSA-PSS-params ::= SEQUENCE { + * hashAlgorithm [0] HashAlgorithm DEFAULT + * sha1Identifier, + * maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT + * mgf1SHA1Identifier, + * saltLength [2] INTEGER DEFAULT 20, + * trailerField [3] INTEGER DEFAULT 1 + * } + * + * HashAlgorithm ::= AlgorithmIdentifier + * + * MaskGenAlgorithm ::= AlgorithmIdentifier + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * @param oid The OID specifying the signature algorithm + * @param obj The ASN.1 structure holding the parameters + * @param fillDefaults Whether to use return default values where omitted + * @return signature parameter object + */ +var _readSignatureParameters = function(oid, obj, fillDefaults) { + var params = {}; -function load(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; + if(oid !== oids['RSASSA-PSS']) { + return params; } - throw new YAMLException('expected a single document in the stream, but found more'); -} - - -module.exports.loadAll = loadAll; -module.exports.load = load; - - -/***/ }), - -/***/ 54488: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -/*eslint-disable max-len*/ - -var YAMLException = __nccwpck_require__(56272); -var Type = __nccwpck_require__(80102); - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - return result; -} - - -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] + if(fillDefaults) { + params = { + hash: { + algorithmOid: oids['sha1'] + }, + mgf: { + algorithmOid: oids['mgf1'], + hash: { + algorithmOid: oids['sha1'] } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } + }, + saltLength: 20 + }; } - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); + var capture = {}; + var errors = []; + if(!asn1.validate(obj, rsassaPssParameterValidator, capture, errors)) { + var error = new Error('Cannot read RSASSA-PSS parameter block.'); + error.errors = errors; + throw error; } - return result; -} - - -function Schema(definition) { - return this.extend(definition); -} - - -Schema.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - if (definition instanceof Type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); + if(capture.hashOid !== undefined) { + params.hash = params.hash || {}; + params.hash.algorithmOid = asn1.derToOid(capture.hashOid); } - implicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type.loadKind && type.loadKind !== 'scalar') { - throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type.multi) { - throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; -}; - - -module.exports = Schema; - - -/***/ }), - -/***/ 75295: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -// Standard YAML's Core schema. -// http://www.yaml.org/spec/1.2/spec.html#id2804923 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, Core schema has no distinctions from JSON schema is JS-YAML. - - - - - -module.exports = __nccwpck_require__(58398); - - -/***/ }), - -/***/ 27835: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -// JS-YAML's default schema for `safeLoad` function. -// It is not described in the YAML specification. -// -// This schema is based on standard YAML's Core schema and includes most of -// extra types described at YAML tag repository. (http://yaml.org/type/) - - - - - -module.exports = (__nccwpck_require__(75295).extend)({ - implicit: [ - __nccwpck_require__(90486), - __nccwpck_require__(99505) - ], - explicit: [ - __nccwpck_require__(65608), - __nccwpck_require__(83187), - __nccwpck_require__(58271), - __nccwpck_require__(14688) - ] -}); - - -/***/ }), - -/***/ 28111: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -// Standard YAML's Failsafe schema. -// http://www.yaml.org/spec/1.2/spec.html#id2802346 - - - - - -var Schema = __nccwpck_require__(54488); - - -module.exports = new Schema({ - explicit: [ - __nccwpck_require__(87936), - __nccwpck_require__(56205), - __nccwpck_require__(29988) - ] -}); - - -/***/ }), - -/***/ 58398: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -// Standard YAML's JSON schema. -// http://www.yaml.org/spec/1.2/spec.html#id2803231 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, this schema is not such strict as defined in the YAML specification. -// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. - - - - - -module.exports = (__nccwpck_require__(28111).extend)({ - implicit: [ - __nccwpck_require__(92171), - __nccwpck_require__(95795), - __nccwpck_require__(8346), - __nccwpck_require__(28380) - ] -}); - - -/***/ }), - -/***/ 54231: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - - -var common = __nccwpck_require__(20457); - - -// get snippet for a single line, respecting maxLength -function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; - - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; + if(capture.maskGenOid !== undefined) { + params.mgf = params.mgf || {}; + params.mgf.algorithmOid = asn1.derToOid(capture.maskGenOid); + params.mgf.hash = params.mgf.hash || {}; + params.mgf.hash.algorithmOid = asn1.derToOid(capture.maskGenHashOid); } - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; + if(capture.saltLength !== undefined) { + params.saltLength = capture.saltLength.charCodeAt(0); } - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} - + return params; +}; -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} +/** + * Create signature digest for OID. + * + * @param options + * signatureOid: the OID specifying the signature algorithm. + * type: a human readable type for error messages + * @return a created md instance. throws if unknown oid. + */ +var _createSignatureDigest = function(options) { + switch(oids[options.signatureOid]) { + case 'sha1WithRSAEncryption': + // deprecated alias + case 'sha1WithRSASignature': + return forge.md.sha1.create(); + case 'md5WithRSAEncryption': + return forge.md.md5.create(); + case 'sha256WithRSAEncryption': + return forge.md.sha256.create(); + case 'sha384WithRSAEncryption': + return forge.md.sha384.create(); + case 'sha512WithRSAEncryption': + return forge.md.sha512.create(); + case 'RSASSA-PSS': + return forge.md.sha256.create(); + default: + var error = new Error( + 'Could not compute ' + options.type + ' digest. ' + + 'Unknown signature OID.'); + error.signatureOid = options.signatureOid; + throw error; + } +}; +/** + * Verify signature on certificate or CSR. + * + * @param options: + * certificate the certificate or CSR to verify. + * md the signature digest. + * signature the signature + * @return a created md instance. throws if unknown oid. + */ +var _verifySignature = function(options) { + var cert = options.certificate; + var scheme; -function makeSnippet(mark, options) { - options = Object.create(options || null); + switch(cert.signatureOid) { + case oids.sha1WithRSAEncryption: + // deprecated alias + case oids.sha1WithRSASignature: + /* use PKCS#1 v1.5 padding scheme */ + break; + case oids['RSASSA-PSS']: + var hash, mgf; - if (!mark.buffer) return null; + /* initialize mgf */ + hash = oids[cert.signatureParameters.mgf.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + var error = new Error('Unsupported MGF hash function.'); + error.oid = cert.signatureParameters.mgf.hash.algorithmOid; + error.name = hash; + throw error; + } - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; + mgf = oids[cert.signatureParameters.mgf.algorithmOid]; + if(mgf === undefined || forge.mgf[mgf] === undefined) { + var error = new Error('Unsupported MGF function.'); + error.oid = cert.signatureParameters.mgf.algorithmOid; + error.name = mgf; + throw error; + } - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; + mgf = forge.mgf[mgf].create(forge.md[hash].create()); - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); + /* initialize hash function */ + hash = oids[cert.signatureParameters.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + var error = new Error('Unsupported RSASSA-PSS hash function.'); + error.oid = cert.signatureParameters.hash.algorithmOid; + error.name = hash; + throw error; + } - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } + scheme = forge.pss.create( + forge.md[hash].create(), mgf, cert.signatureParameters.saltLength + ); + break; } - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; + // verify signature on cert using public key + return cert.publicKey.verify( + options.md.digest().getBytes(), options.signature, scheme + ); +}; - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); +/** + * Converts an X.509 certificate from PEM format. + * + * Note: If the certificate is to be verified then compute hash should + * be set to true. This will scan the TBSCertificate part of the ASN.1 + * object while it is converted so it doesn't need to be converted back + * to ASN.1-DER-encoding later. + * + * @param pem the PEM-formatted certificate. + * @param computeHash true to compute the hash for verification. + * @param strict true to be strict when checking ASN.1 value lengths, false to + * allow truncated values (default: true). + * + * @return the certificate. + */ +pki.certificateFromPem = function(pem, computeHash, strict) { + var msg = forge.pem.decode(pem)[0]; - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; + if(msg.type !== 'CERTIFICATE' && + msg.type !== 'X509 CERTIFICATE' && + msg.type !== 'TRUSTED CERTIFICATE') { + var error = new Error( + 'Could not convert certificate from PEM; PEM header type ' + + 'is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".'); + error.headerType = msg.type; + throw error; } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error( + 'Could not convert certificate from PEM; PEM is encrypted.'); } - return result.replace(/\n$/, ''); -} - - -module.exports = makeSnippet; - - -/***/ }), - -/***/ 80102: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -var YAMLException = __nccwpck_require__(56272); + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body, strict); -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; + return pki.certificateFromAsn1(obj, computeHash); +}; -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; +/** + * Converts an X.509 certificate to PEM format. + * + * @param cert the certificate. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted certificate. + */ +pki.certificateToPem = function(cert, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'CERTIFICATE', + body: asn1.toDer(pki.certificateToAsn1(cert)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; -function compileStyleAliases(map) { - var result = {}; +/** + * Converts an RSA public key from PEM format. + * + * @param pem the PEM-formatted public key. + * + * @return the public key. + */ +pki.publicKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); + if(msg.type !== 'PUBLIC KEY' && msg.type !== 'RSA PUBLIC KEY') { + var error = new Error('Could not convert public key from PEM; PEM header ' + + 'type is not "PUBLIC KEY" or "RSA PUBLIC KEY".'); + error.headerType = msg.type; + throw error; } - - return result; -} - -function Type(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert public key from PEM; PEM is encrypted.'); } -} - -module.exports = Type; - - -/***/ }), -/***/ 65608: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -/*eslint-disable no-bitwise*/ - - -var Type = __nccwpck_require__(80102); - - -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - -function resolveYamlBinary(data) { - if (data === null) return false; + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; + return pki.publicKeyFromAsn1(obj); +}; - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); +/** + * Converts an RSA public key to PEM format (using a SubjectPublicKeyInfo). + * + * @param key the public key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted public key. + */ +pki.publicKeyToPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'PUBLIC KEY', + body: asn1.toDer(pki.publicKeyToAsn1(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; - // Skip CR/LF - if (code > 64) continue; +/** + * Converts an RSA public key to PEM format (using an RSAPublicKey). + * + * @param key the public key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted public key. + */ +pki.publicKeyToRSAPublicKeyPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'RSA PUBLIC KEY', + body: asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; - // Fail on illegal characters - if (code < 0) return false; +/** + * Gets a fingerprint for the given public key. + * + * @param options the options to use. + * [md] the message digest object to use (defaults to forge.md.sha1). + * [type] the type of fingerprint, such as 'RSAPublicKey', + * 'SubjectPublicKeyInfo' (defaults to 'RSAPublicKey'). + * [encoding] an alternative output encoding, such as 'hex' + * (defaults to none, outputs a byte buffer). + * [delimiter] the delimiter to use between bytes for 'hex' encoded + * output, eg: ':' (defaults to none). + * + * @return the fingerprint as a byte buffer or other encoding based on options. + */ +pki.getPublicKeyFingerprint = function(key, options) { + options = options || {}; + var md = options.md || forge.md.sha1.create(); + var type = options.type || 'RSAPublicKey'; - bitlen += 6; + var bytes; + switch(type) { + case 'RSAPublicKey': + bytes = asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes(); + break; + case 'SubjectPublicKeyInfo': + bytes = asn1.toDer(pki.publicKeyToAsn1(key)).getBytes(); + break; + default: + throw new Error('Unknown fingerprint type "' + options.type + '".'); } - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} - -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); + // hash public key bytes + md.start(); + md.update(bytes); + var digest = md.digest(); + if(options.encoding === 'hex') { + var hex = digest.toHex(); + if(options.delimiter) { + return hex.match(/.{2}/g).join(options.delimiter); } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); + return hex; + } else if(options.encoding === 'binary') { + return digest.getBytes(); + } else if(options.encoding) { + throw new Error('Unknown encoding "' + options.encoding + '".'); } + return digest; +}; - return new Uint8Array(result); -} - -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } +/** + * Converts a PKCS#10 certification request (CSR) from PEM format. + * + * Note: If the certification request is to be verified then compute hash + * should be set to true. This will scan the CertificationRequestInfo part of + * the ASN.1 object while it is converted so it doesn't need to be converted + * back to ASN.1-DER-encoding later. + * + * @param pem the PEM-formatted certificate. + * @param computeHash true to compute the hash for verification. + * @param strict true to be strict when checking ASN.1 value lengths, false to + * allow truncated values (default: true). + * + * @return the certification request (CSR). + */ +pki.certificationRequestFromPem = function(pem, computeHash, strict) { + var msg = forge.pem.decode(pem)[0]; - bits = (bits << 8) + object[idx]; + if(msg.type !== 'CERTIFICATE REQUEST') { + var error = new Error('Could not convert certification request from PEM; ' + + 'PEM header type is not "CERTIFICATE REQUEST".'); + error.headerType = msg.type; + throw error; } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert certification request from PEM; ' + + 'PEM is encrypted.'); } - return result; -} - -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} - -module.exports = new Type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); - - -/***/ }), - -/***/ 95795: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -var Type = __nccwpck_require__(80102); - -function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body, strict); - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} + return pki.certificationRequestFromAsn1(obj, computeHash); +}; -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} +/** + * Converts a PKCS#10 certification request (CSR) to PEM format. + * + * @param csr the certification request. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted certification request. + */ +pki.certificationRequestToPem = function(csr, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'CERTIFICATE REQUEST', + body: asn1.toDer(pki.certificationRequestToAsn1(csr)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} +/** + * Creates an empty X.509v3 RSA certificate. + * + * @return the certificate. + */ +pki.createCertificate = function() { + var cert = {}; + cert.version = 0x02; + cert.serialNumber = '00'; + cert.signatureOid = null; + cert.signature = null; + cert.siginfo = {}; + cert.siginfo.algorithmOid = null; + cert.validity = {}; + cert.validity.notBefore = new Date(); + cert.validity.notAfter = new Date(); -module.exports = new Type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); + cert.issuer = {}; + cert.issuer.getField = function(sn) { + return _getAttribute(cert.issuer, sn); + }; + cert.issuer.addField = function(attr) { + _fillMissingFields([attr]); + cert.issuer.attributes.push(attr); + }; + cert.issuer.attributes = []; + cert.issuer.hash = null; + cert.subject = {}; + cert.subject.getField = function(sn) { + return _getAttribute(cert.subject, sn); + }; + cert.subject.addField = function(attr) { + _fillMissingFields([attr]); + cert.subject.attributes.push(attr); + }; + cert.subject.attributes = []; + cert.subject.hash = null; -/***/ }), + cert.extensions = []; + cert.publicKey = null; + cert.md = null; -/***/ 28380: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** + * Sets the subject of this certificate. + * + * @param attrs the array of subject attributes to use. + * @param uniqueId an optional a unique ID to use. + */ + cert.setSubject = function(attrs, uniqueId) { + // set new attributes, clear hash + _fillMissingFields(attrs); + cert.subject.attributes = attrs; + delete cert.subject.uniqueId; + if(uniqueId) { + // TODO: support arbitrary bit length ids + cert.subject.uniqueId = uniqueId; + } + cert.subject.hash = null; + }; -"use strict"; + /** + * Sets the issuer of this certificate. + * + * @param attrs the array of issuer attributes to use. + * @param uniqueId an optional a unique ID to use. + */ + cert.setIssuer = function(attrs, uniqueId) { + // set new attributes, clear hash + _fillMissingFields(attrs); + cert.issuer.attributes = attrs; + delete cert.issuer.uniqueId; + if(uniqueId) { + // TODO: support arbitrary bit length ids + cert.issuer.uniqueId = uniqueId; + } + cert.issuer.hash = null; + }; + /** + * Sets the extensions of this certificate. + * + * @param exts the array of extensions to use. + */ + cert.setExtensions = function(exts) { + for(var i = 0; i < exts.length; ++i) { + _fillMissingExtensionFields(exts[i], {cert: cert}); + } + // set new extensions + cert.extensions = exts; + }; -var common = __nccwpck_require__(20457); -var Type = __nccwpck_require__(80102); + /** + * Gets an extension by its name or id. + * + * @param options the name to use or an object with: + * name the name to use. + * id the id to use. + * + * @return the extension or null if not found. + */ + cert.getExtension = function(options) { + if(typeof options === 'string') { + options = {name: options}; + } -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); + var rval = null; + var ext; + for(var i = 0; rval === null && i < cert.extensions.length; ++i) { + ext = cert.extensions[i]; + if(options.id && ext.id === options.id) { + rval = ext; + } else if(options.name && ext.name === options.name) { + rval = ext; + } + } + return rval; + }; -function resolveYamlFloat(data) { - if (data === null) return false; + /** + * Signs this certificate using the given private key. + * + * @param key the private key to sign with. + * @param md the message digest object to use (defaults to forge.md.sha1). + */ + cert.sign = function(key, md) { + // TODO: get signature OID from private key + cert.md = md || forge.md.sha1.create(); + var algorithmOid = oids[cert.md.algorithm + 'WithRSAEncryption']; + if(!algorithmOid) { + var error = new Error('Could not compute certificate digest. ' + + 'Unknown message digest algorithm OID.'); + error.algorithm = cert.md.algorithm; + throw error; + } + cert.signatureOid = cert.siginfo.algorithmOid = algorithmOid; - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } + // get TBSCertificate, convert to DER + cert.tbsCertificate = pki.getTBSCertificate(cert); + var bytes = asn1.toDer(cert.tbsCertificate); - return true; -} + // digest and sign + cert.md.update(bytes.getBytes()); + cert.signature = key.sign(cert.md); + }; -function constructYamlFloat(data) { - var value, sign; + /** + * Attempts verify the signature on the passed certificate using this + * certificate's public key. + * + * @param child the certificate to verify. + * + * @return true if verified, false if not. + */ + cert.verify = function(child) { + var rval = false; - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; + if(!cert.issued(child)) { + var issuer = child.issuer; + var subject = cert.subject; + var error = new Error( + 'The parent certificate did not issue the given child ' + + 'certificate; the child certificate\'s issuer does not match the ' + + 'parent\'s subject.'); + error.expectedIssuer = subject.attributes; + error.actualIssuer = issuer.attributes; + throw error; + } - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } + var md = child.md; + if(md === null) { + // create digest for OID signature types + md = _createSignatureDigest({ + signatureOid: child.signatureOid, + type: 'certificate' + }); - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; + // produce DER formatted TBSCertificate and digest it + var tbsCertificate = child.tbsCertificate || pki.getTBSCertificate(child); + var bytes = asn1.toDer(tbsCertificate); + md.update(bytes.getBytes()); + } - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} + if(md !== null) { + rval = _verifySignature({ + certificate: cert, md: md, signature: child.signature + }); + } + return rval; + }; -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; + /** + * Returns true if this certificate's issuer matches the passed + * certificate's subject. Note that no signature check is performed. + * + * @param parent the certificate to check. + * + * @return true if this certificate's issuer matches the passed certificate's + * subject. + */ + cert.isIssuer = function(parent) { + var rval = false; -function representYamlFloat(object, style) { - var res; + var i = cert.issuer; + var s = parent.subject; - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; + // compare hashes if present + if(i.hash && s.hash) { + rval = (i.hash === s.hash); + } else if(i.attributes.length === s.attributes.length) { + // all attributes are the same so issuer matches subject + rval = true; + var iattr, sattr; + for(var n = 0; rval && n < i.attributes.length; ++n) { + iattr = i.attributes[n]; + sattr = s.attributes[n]; + if(iattr.type !== sattr.type || iattr.value !== sattr.value) { + // attribute mismatch + rval = false; + } + } } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} + return rval; + }; -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} + /** + * Returns true if this certificate's subject matches the issuer of the + * given certificate). Note that not signature check is performed. + * + * @param child the certificate to check. + * + * @return true if this certificate's subject matches the passed + * certificate's issuer. + */ + cert.issued = function(child) { + return child.isIssuer(cert); + }; -module.exports = new Type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); + /** + * Generates the subjectKeyIdentifier for this certificate as byte buffer. + * + * @return the subjectKeyIdentifier for this certificate as byte buffer. + */ + cert.generateSubjectKeyIdentifier = function() { + /* See: 4.2.1.2 section of the the RFC3280, keyIdentifier is either: + (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the + value of the BIT STRING subjectPublicKey (excluding the tag, + length, and number of unused bits). -/***/ }), + (2) The keyIdentifier is composed of a four bit type field with + the value 0100 followed by the least significant 60 bits of the + SHA-1 hash of the value of the BIT STRING subjectPublicKey + (excluding the tag, length, and number of unused bit string bits). + */ -/***/ 8346: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // skipping the tag, length, and number of unused bits is the same + // as just using the RSAPublicKey (for RSA keys, which are the + // only ones supported) + return pki.getPublicKeyFingerprint(cert.publicKey, {type: 'RSAPublicKey'}); + }; -"use strict"; + /** + * Verifies the subjectKeyIdentifier extension value for this certificate + * against its public key. If no extension is found, false will be + * returned. + * + * @return true if verified, false if not. + */ + cert.verifySubjectKeyIdentifier = function() { + var oid = oids['subjectKeyIdentifier']; + for(var i = 0; i < cert.extensions.length; ++i) { + var ext = cert.extensions[i]; + if(ext.id === oid) { + var ski = cert.generateSubjectKeyIdentifier().getBytes(); + return (forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski); + } + } + return false; + }; + return cert; +}; -var common = __nccwpck_require__(20457); -var Type = __nccwpck_require__(80102); +/** + * Converts an X.509v3 RSA certificate from an ASN.1 object. + * + * Note: If the certificate is to be verified then compute hash should + * be set to true. There is currently no implementation for converting + * a certificate back to ASN.1 so the TBSCertificate part of the ASN.1 + * object needs to be scanned before the cert object is created. + * + * @param obj the asn1 representation of an X.509v3 RSA certificate. + * @param computeHash true to compute the hash for verification. + * + * @return the certificate. + */ +pki.certificateFromAsn1 = function(obj, computeHash) { + // validate certificate and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, x509CertificateValidator, capture, errors)) { + var error = new Error('Cannot read X.509 certificate. ' + + 'ASN.1 object is not an X509v3 Certificate.'); + error.errors = errors; + throw error; + } -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + throw new Error('Cannot read public key. OID is not RSA.'); + } -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} + // create certificate + var cert = pki.createCertificate(); + cert.version = capture.certVersion ? + capture.certVersion.charCodeAt(0) : 0; + var serial = forge.util.createBuffer(capture.certSerialNumber); + cert.serialNumber = serial.toHex(); + cert.signatureOid = forge.asn1.derToOid(capture.certSignatureOid); + cert.signatureParameters = _readSignatureParameters( + cert.signatureOid, capture.certSignatureParams, true); + cert.siginfo.algorithmOid = forge.asn1.derToOid(capture.certinfoSignatureOid); + cert.siginfo.parameters = _readSignatureParameters(cert.siginfo.algorithmOid, + capture.certinfoSignatureParams, false); + cert.signature = capture.certSignature; -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} + var validity = []; + if(capture.certValidity1UTCTime !== undefined) { + validity.push(asn1.utcTimeToDate(capture.certValidity1UTCTime)); + } + if(capture.certValidity2GeneralizedTime !== undefined) { + validity.push(asn1.generalizedTimeToDate( + capture.certValidity2GeneralizedTime)); + } + if(capture.certValidity3UTCTime !== undefined) { + validity.push(asn1.utcTimeToDate(capture.certValidity3UTCTime)); + } + if(capture.certValidity4GeneralizedTime !== undefined) { + validity.push(asn1.generalizedTimeToDate( + capture.certValidity4GeneralizedTime)); + } + if(validity.length > 2) { + throw new Error('Cannot read notBefore/notAfter validity times; more ' + + 'than two times were provided in the certificate.'); + } + if(validity.length < 2) { + throw new Error('Cannot read notBefore/notAfter validity times; they ' + + 'were not provided as either UTCTime or GeneralizedTime.'); + } + cert.validity.notBefore = validity[0]; + cert.validity.notAfter = validity[1]; -function resolveYamlInteger(data) { - if (data === null) return false; + // keep TBSCertificate to preserve signature when exporting + cert.tbsCertificate = capture.tbsCertificate; - var max = data.length, - index = 0, - hasDigits = false, - ch; + if(computeHash) { + // create digest for OID signature type + cert.md = _createSignatureDigest({ + signatureOid: cert.signatureOid, + type: 'certificate' + }); - if (!max) return false; + // produce DER formatted TBSCertificate and digest it + var bytes = asn1.toDer(cert.tbsCertificate); + cert.md.update(bytes.getBytes()); + } - ch = data[index]; + // handle issuer, build issuer message digest + var imd = forge.md.sha1.create(); + var ibytes = asn1.toDer(capture.certIssuer); + imd.update(ibytes.getBytes()); + cert.issuer.getField = function(sn) { + return _getAttribute(cert.issuer, sn); + }; + cert.issuer.addField = function(attr) { + _fillMissingFields([attr]); + cert.issuer.attributes.push(attr); + }; + cert.issuer.attributes = pki.RDNAttributesAsArray(capture.certIssuer); + if(capture.certIssuerUniqueId) { + cert.issuer.uniqueId = capture.certIssuerUniqueId; + } + cert.issuer.hash = imd.digest().toHex(); - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; + // handle subject, build subject message digest + var smd = forge.md.sha1.create(); + var sbytes = asn1.toDer(capture.certSubject); + smd.update(sbytes.getBytes()); + cert.subject.getField = function(sn) { + return _getAttribute(cert.subject, sn); + }; + cert.subject.addField = function(attr) { + _fillMissingFields([attr]); + cert.subject.attributes.push(attr); + }; + cert.subject.attributes = pki.RDNAttributesAsArray(capture.certSubject); + if(capture.certSubjectUniqueId) { + cert.subject.uniqueId = capture.certSubjectUniqueId; } + cert.subject.hash = smd.digest().toHex(); - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; + // handle extensions + if(capture.certExtensions) { + cert.extensions = pki.certificateExtensionsFromAsn1(capture.certExtensions); + } else { + cert.extensions = []; + } - // base 2, base 8, base 16 + // convert RSA public key from ASN.1 + cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); - if (ch === 'b') { - // base 2 - index++; + return cert; +}; - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; +/** + * Converts an ASN.1 extensions object (with extension sequences as its + * values) into an array of extension objects with types and values. + * + * Supported extensions: + * + * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } + * KeyUsage ::= BIT STRING { + * digitalSignature (0), + * nonRepudiation (1), + * keyEncipherment (2), + * dataEncipherment (3), + * keyAgreement (4), + * keyCertSign (5), + * cRLSign (6), + * encipherOnly (7), + * decipherOnly (8) + * } + * + * id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } + * BasicConstraints ::= SEQUENCE { + * cA BOOLEAN DEFAULT FALSE, + * pathLenConstraint INTEGER (0..MAX) OPTIONAL + * } + * + * subjectAltName EXTENSION ::= { + * SYNTAX GeneralNames + * IDENTIFIED BY id-ce-subjectAltName + * } + * + * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName + * + * GeneralName ::= CHOICE { + * otherName [0] INSTANCE OF OTHER-NAME, + * rfc822Name [1] IA5String, + * dNSName [2] IA5String, + * x400Address [3] ORAddress, + * directoryName [4] Name, + * ediPartyName [5] EDIPartyName, + * uniformResourceIdentifier [6] IA5String, + * IPAddress [7] OCTET STRING, + * registeredID [8] OBJECT IDENTIFIER + * } + * + * OTHER-NAME ::= TYPE-IDENTIFIER + * + * EDIPartyName ::= SEQUENCE { + * nameAssigner [0] DirectoryString {ub-name} OPTIONAL, + * partyName [1] DirectoryString {ub-name} + * } + * + * @param exts the extensions ASN.1 with extension sequences to parse. + * + * @return the array. + */ +pki.certificateExtensionsFromAsn1 = function(exts) { + var rval = []; + for(var i = 0; i < exts.value.length; ++i) { + // get extension sequence + var extseq = exts.value[i]; + for(var ei = 0; ei < extseq.value.length; ++ei) { + rval.push(pki.certificateExtensionFromAsn1(extseq.value[ei])); } + } + return rval; +}; - if (ch === 'x') { - // base 16 - index++; +/** + * Parses a single certificate extension from ASN.1. + * + * @param ext the extension in ASN.1 format. + * + * @return the parsed extension as an object. + */ +pki.certificateExtensionFromAsn1 = function(ext) { + // an extension has: + // [0] extnID OBJECT IDENTIFIER + // [1] critical BOOLEAN DEFAULT FALSE + // [2] extnValue OCTET STRING + var e = {}; + e.id = asn1.derToOid(ext.value[0].value); + e.critical = false; + if(ext.value[1].type === asn1.Type.BOOLEAN) { + e.critical = (ext.value[1].value.charCodeAt(0) !== 0x00); + e.value = ext.value[2].value; + } else { + e.value = ext.value[1].value; + } + // if the oid is known, get its name + if(e.id in oids) { + e.name = oids[e.id]; - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; + // handle key usage + if(e.name === 'keyUsage') { + // get value as BIT STRING + var ev = asn1.fromDer(e.value); + var b2 = 0x00; + var b3 = 0x00; + if(ev.value.length > 1) { + // skip first byte, just indicates unused bits which + // will be padded with 0s anyway + // get bytes with flag bits + b2 = ev.value.charCodeAt(1); + b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0; } - return hasDigits && ch !== '_'; - } + // set flags + e.digitalSignature = (b2 & 0x80) === 0x80; + e.nonRepudiation = (b2 & 0x40) === 0x40; + e.keyEncipherment = (b2 & 0x20) === 0x20; + e.dataEncipherment = (b2 & 0x10) === 0x10; + e.keyAgreement = (b2 & 0x08) === 0x08; + e.keyCertSign = (b2 & 0x04) === 0x04; + e.cRLSign = (b2 & 0x02) === 0x02; + e.encipherOnly = (b2 & 0x01) === 0x01; + e.decipherOnly = (b3 & 0x80) === 0x80; + } else if(e.name === 'basicConstraints') { + // handle basic constraints + // get value as SEQUENCE + var ev = asn1.fromDer(e.value); + // get cA BOOLEAN flag (defaults to false) + if(ev.value.length > 0 && ev.value[0].type === asn1.Type.BOOLEAN) { + e.cA = (ev.value[0].value.charCodeAt(0) !== 0x00); + } else { + e.cA = false; + } + // get path length constraint + var value = null; + if(ev.value.length > 0 && ev.value[0].type === asn1.Type.INTEGER) { + value = ev.value[0].value; + } else if(ev.value.length > 1) { + value = ev.value[1].value; + } + if(value !== null) { + e.pathLenConstraint = asn1.derToInteger(value); + } + } else if(e.name === 'extKeyUsage') { + // handle extKeyUsage + // value is a SEQUENCE of OIDs + var ev = asn1.fromDer(e.value); + for(var vi = 0; vi < ev.value.length; ++vi) { + var oid = asn1.derToOid(ev.value[vi].value); + if(oid in oids) { + e[oids[oid]] = true; + } else { + e[oid] = true; + } + } + } else if(e.name === 'nsCertType') { + // handle nsCertType + // get value as BIT STRING + var ev = asn1.fromDer(e.value); + var b2 = 0x00; + if(ev.value.length > 1) { + // skip first byte, just indicates unused bits which + // will be padded with 0s anyway + // get bytes with flag bits + b2 = ev.value.charCodeAt(1); + } + // set flags + e.client = (b2 & 0x80) === 0x80; + e.server = (b2 & 0x40) === 0x40; + e.email = (b2 & 0x20) === 0x20; + e.objsign = (b2 & 0x10) === 0x10; + e.reserved = (b2 & 0x08) === 0x08; + e.sslCA = (b2 & 0x04) === 0x04; + e.emailCA = (b2 & 0x02) === 0x02; + e.objCA = (b2 & 0x01) === 0x01; + } else if( + e.name === 'subjectAltName' || + e.name === 'issuerAltName') { + // handle subjectAltName/issuerAltName + e.altNames = []; + // ev is a SYNTAX SEQUENCE + var gn; + var ev = asn1.fromDer(e.value); + for(var n = 0; n < ev.value.length; ++n) { + // get GeneralName + gn = ev.value[n]; - if (ch === 'o') { - // base 8 - index++; + var altName = { + type: gn.type, + value: gn.value + }; + e.altNames.push(altName); - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; + // Note: Support for types 1,2,6,7,8 + switch(gn.type) { + // rfc822Name + case 1: + // dNSName + case 2: + // uniformResourceIdentifier (URI) + case 6: + break; + // IPAddress + case 7: + // convert to IPv4/IPv6 string representation + altName.ip = forge.util.bytesToIP(gn.value); + break; + // registeredID + case 8: + altName.oid = asn1.derToOid(gn.value); + break; + default: + // unsupported + } } - return hasDigits && ch !== '_'; + } else if(e.name === 'subjectKeyIdentifier') { + // value is an OCTETSTRING w/the hash of the key-type specific + // public key structure (eg: RSAPublicKey) + var ev = asn1.fromDer(e.value); + e.subjectKeyIdentifier = forge.util.bytesToHex(ev.value); } } + return e; +}; - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; +/** + * Converts a PKCS#10 certification request (CSR) from an ASN.1 object. + * + * Note: If the certification request is to be verified then compute hash + * should be set to true. There is currently no implementation for converting + * a certificate back to ASN.1 so the CertificationRequestInfo part of the + * ASN.1 object needs to be scanned before the csr object is created. + * + * @param obj the asn1 representation of a PKCS#10 certification request (CSR). + * @param computeHash true to compute the hash for verification. + * + * @return the certification request (CSR). + */ +pki.certificationRequestFromAsn1 = function(obj, computeHash) { + // validate certification request and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, certificationRequestValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#10 certificate request. ' + + 'ASN.1 object is not a PKCS#10 CertificationRequest.'); + error.errors = errors; + throw error; + } - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + throw new Error('Cannot read public key. OID is not RSA.'); } - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; + // create certification request + var csr = pki.createCertificationRequest(); + csr.version = capture.csrVersion ? capture.csrVersion.charCodeAt(0) : 0; + csr.signatureOid = forge.asn1.derToOid(capture.csrSignatureOid); + csr.signatureParameters = _readSignatureParameters( + csr.signatureOid, capture.csrSignatureParams, true); + csr.siginfo.algorithmOid = forge.asn1.derToOid(capture.csrSignatureOid); + csr.siginfo.parameters = _readSignatureParameters( + csr.siginfo.algorithmOid, capture.csrSignatureParams, false); + csr.signature = capture.csrSignature; - return true; -} + // keep CertificationRequestInfo to preserve signature when exporting + csr.certificationRequestInfo = capture.certificationRequestInfo; -function constructYamlInteger(data) { - var value = data, sign = 1, ch; + if(computeHash) { + // create digest for OID signature type + csr.md = _createSignatureDigest({ + signatureOid: csr.signatureOid, + type: 'certification request' + }); - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); + // produce DER formatted CertificationRequestInfo and digest it + var bytes = asn1.toDer(csr.certificationRequestInfo); + csr.md.update(bytes.getBytes()); } - ch = value[0]; + // handle subject, build subject message digest + var smd = forge.md.sha1.create(); + csr.subject.getField = function(sn) { + return _getAttribute(csr.subject, sn); + }; + csr.subject.addField = function(attr) { + _fillMissingFields([attr]); + csr.subject.attributes.push(attr); + }; + csr.subject.attributes = pki.RDNAttributesAsArray( + capture.certificationRequestInfoSubject, smd); + csr.subject.hash = smd.digest().toHex(); - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } + // convert RSA public key from ASN.1 + csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); - if (value === '0') return 0; + // convert attributes from ASN.1 + csr.getAttribute = function(sn) { + return _getAttribute(csr, sn); + }; + csr.addAttribute = function(attr) { + _fillMissingFields([attr]); + csr.attributes.push(attr); + }; + csr.attributes = pki.CRIAttributesAsArray( + capture.certificationRequestInfoAttributes || []); - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } + return csr; +}; - return sign * parseInt(value, 10); -} +/** + * Creates an empty certification request (a CSR or certificate signing + * request). Once created, its public key and attributes can be set and then + * it can be signed. + * + * @return the empty certification request. + */ +pki.createCertificationRequest = function() { + var csr = {}; + csr.version = 0x00; + csr.signatureOid = null; + csr.signature = null; + csr.siginfo = {}; + csr.siginfo.algorithmOid = null; -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} + csr.subject = {}; + csr.subject.getField = function(sn) { + return _getAttribute(csr.subject, sn); + }; + csr.subject.addField = function(attr) { + _fillMissingFields([attr]); + csr.subject.attributes.push(attr); + }; + csr.subject.attributes = []; + csr.subject.hash = null; -module.exports = new Type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); + csr.publicKey = null; + csr.attributes = []; + csr.getAttribute = function(sn) { + return _getAttribute(csr, sn); + }; + csr.addAttribute = function(attr) { + _fillMissingFields([attr]); + csr.attributes.push(attr); + }; + csr.md = null; + /** + * Sets the subject of this certification request. + * + * @param attrs the array of subject attributes to use. + */ + csr.setSubject = function(attrs) { + // set new attributes + _fillMissingFields(attrs); + csr.subject.attributes = attrs; + csr.subject.hash = null; + }; -/***/ }), + /** + * Sets the attributes of this certification request. + * + * @param attrs the array of attributes to use. + */ + csr.setAttributes = function(attrs) { + // set new attributes + _fillMissingFields(attrs); + csr.attributes = attrs; + }; -/***/ 29988: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + /** + * Signs this certification request using the given private key. + * + * @param key the private key to sign with. + * @param md the message digest object to use (defaults to forge.md.sha1). + */ + csr.sign = function(key, md) { + // TODO: get signature OID from private key + csr.md = md || forge.md.sha1.create(); + var algorithmOid = oids[csr.md.algorithm + 'WithRSAEncryption']; + if(!algorithmOid) { + var error = new Error('Could not compute certification request digest. ' + + 'Unknown message digest algorithm OID.'); + error.algorithm = csr.md.algorithm; + throw error; + } + csr.signatureOid = csr.siginfo.algorithmOid = algorithmOid; -"use strict"; + // get CertificationRequestInfo, convert to DER + csr.certificationRequestInfo = pki.getCertificationRequestInfo(csr); + var bytes = asn1.toDer(csr.certificationRequestInfo); + // digest and sign + csr.md.update(bytes.getBytes()); + csr.signature = key.sign(csr.md); + }; -var Type = __nccwpck_require__(80102); + /** + * Attempts verify the signature on the passed certification request using + * its public key. + * + * A CSR that has been exported to a file in PEM format can be verified using + * OpenSSL using this command: + * + * openssl req -in -verify -noout -text + * + * @return true if verified, false if not. + */ + csr.verify = function() { + var rval = false; -module.exports = new Type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); + var md = csr.md; + if(md === null) { + md = _createSignatureDigest({ + signatureOid: csr.signatureOid, + type: 'certification request' + }); + // produce DER formatted CertificationRequestInfo and digest it + var cri = csr.certificationRequestInfo || + pki.getCertificationRequestInfo(csr); + var bytes = asn1.toDer(cri); + md.update(bytes.getBytes()); + } -/***/ }), + if(md !== null) { + rval = _verifySignature({ + certificate: csr, md: md, signature: csr.signature + }); + } -/***/ 99505: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return rval; + }; -"use strict"; + return csr; +}; +/** + * Converts an X.509 subject or issuer to an ASN.1 RDNSequence. + * + * @param obj the subject or issuer (distinguished name). + * + * @return the ASN.1 RDNSequence. + */ +function _dnToAsn1(obj) { + // create an empty RDNSequence + var rval = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); -var Type = __nccwpck_require__(80102); + // iterate over attributes + var attr, set; + var attrs = obj.attributes; + for(var i = 0; i < attrs.length; ++i) { + attr = attrs[i]; + var value = attr.value; -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} + // reuse tag class for attribute value if available + var valueTagClass = asn1.Type.PRINTABLESTRING; + if('valueTagClass' in attr) { + valueTagClass = attr.valueTagClass; -module.exports = new Type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); + if(valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(value); + } + // FIXME: handle more encodings + } + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + set = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + // AttributeValue + asn1.create(asn1.Class.UNIVERSAL, valueTagClass, false, value) + ]) + ]); + rval.value.push(set); + } -/***/ }), + return rval; +} -/***/ 92171: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * Gets all printable attributes (typically of an issuer or subject) in a + * simplified JSON format for display. + * + * @param attrs the attributes. + * + * @return the JSON for display. + */ +function _getAttributesAsJson(attrs) { + var rval = {}; + for(var i = 0; i < attrs.length; ++i) { + var attr = attrs[i]; + if(attr.shortName && ( + attr.valueTagClass === asn1.Type.UTF8 || + attr.valueTagClass === asn1.Type.PRINTABLESTRING || + attr.valueTagClass === asn1.Type.IA5STRING)) { + var value = attr.value; + if(attr.valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(attr.value); + } + if(!(attr.shortName in rval)) { + rval[attr.shortName] = value; + } else if(forge.util.isArray(rval[attr.shortName])) { + rval[attr.shortName].push(value); + } else { + rval[attr.shortName] = [rval[attr.shortName], value]; + } + } + } + return rval; +} -"use strict"; +/** + * Fills in missing fields in attributes. + * + * @param attrs the attributes to fill missing fields in. + */ +function _fillMissingFields(attrs) { + var attr; + for(var i = 0; i < attrs.length; ++i) { + attr = attrs[i]; + // populate missing name + if(typeof attr.name === 'undefined') { + if(attr.type && attr.type in pki.oids) { + attr.name = pki.oids[attr.type]; + } else if(attr.shortName && attr.shortName in _shortNames) { + attr.name = pki.oids[_shortNames[attr.shortName]]; + } + } -var Type = __nccwpck_require__(80102); + // populate missing type (OID) + if(typeof attr.type === 'undefined') { + if(attr.name && attr.name in pki.oids) { + attr.type = pki.oids[attr.name]; + } else { + var error = new Error('Attribute type not specified.'); + error.attribute = attr; + throw error; + } + } -function resolveYamlNull(data) { - if (data === null) return true; + // populate missing shortname + if(typeof attr.shortName === 'undefined') { + if(attr.name && attr.name in _shortNames) { + attr.shortName = _shortNames[attr.name]; + } + } - var max = data.length; + // convert extensions to value + if(attr.type === oids.extensionRequest) { + attr.valueConstructed = true; + attr.valueTagClass = asn1.Type.SEQUENCE; + if(!attr.value && attr.extensions) { + attr.value = []; + for(var ei = 0; ei < attr.extensions.length; ++ei) { + attr.value.push(pki.certificateExtensionToAsn1( + _fillMissingExtensionFields(attr.extensions[ei]))); + } + } + } - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); + if(typeof attr.value === 'undefined') { + var error = new Error('Attribute value not specified.'); + error.attribute = attr; + throw error; + } + } } -function constructYamlNull() { - return null; -} +/** + * Fills in missing fields in certificate extensions. + * + * @param e the extension. + * @param [options] the options to use. + * [cert] the certificate the extensions are for. + * + * @return the extension. + */ +function _fillMissingExtensionFields(e, options) { + options = options || {}; -function isNull(object) { - return object === null; -} + // populate missing name + if(typeof e.name === 'undefined') { + if(e.id && e.id in pki.oids) { + e.name = pki.oids[e.id]; + } + } -module.exports = new Type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); + // populate missing id + if(typeof e.id === 'undefined') { + if(e.name && e.name in pki.oids) { + e.id = pki.oids[e.name]; + } else { + var error = new Error('Extension ID not specified.'); + error.extension = e; + throw error; + } + } + if(typeof e.value !== 'undefined') { + return e; + } -/***/ }), + // handle missing value: -/***/ 83187: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // value is a BIT STRING + if(e.name === 'keyUsage') { + // build flags + var unused = 0; + var b2 = 0x00; + var b3 = 0x00; + if(e.digitalSignature) { + b2 |= 0x80; + unused = 7; + } + if(e.nonRepudiation) { + b2 |= 0x40; + unused = 6; + } + if(e.keyEncipherment) { + b2 |= 0x20; + unused = 5; + } + if(e.dataEncipherment) { + b2 |= 0x10; + unused = 4; + } + if(e.keyAgreement) { + b2 |= 0x08; + unused = 3; + } + if(e.keyCertSign) { + b2 |= 0x04; + unused = 2; + } + if(e.cRLSign) { + b2 |= 0x02; + unused = 1; + } + if(e.encipherOnly) { + b2 |= 0x01; + unused = 0; + } + if(e.decipherOnly) { + b3 |= 0x80; + unused = 7; + } -"use strict"; + // create bit string + var value = String.fromCharCode(unused); + if(b3 !== 0) { + value += String.fromCharCode(b2) + String.fromCharCode(b3); + } else if(b2 !== 0) { + value += String.fromCharCode(b2); + } + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); + } else if(e.name === 'basicConstraints') { + // basicConstraints is a SEQUENCE + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + // cA BOOLEAN flag defaults to false + if(e.cA) { + e.value.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, + String.fromCharCode(0xFF))); + } + if('pathLenConstraint' in e) { + e.value.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(e.pathLenConstraint).getBytes())); + } + } else if(e.name === 'extKeyUsage') { + // extKeyUsage is a SEQUENCE of OIDs + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; + for(var key in e) { + if(e[key] !== true) { + continue; + } + // key is name in OID map + if(key in oids) { + seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, + false, asn1.oidToDer(oids[key]).getBytes())); + } else if(key.indexOf('.') !== -1) { + // assume key is an OID + seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, + false, asn1.oidToDer(key).getBytes())); + } + } + } else if(e.name === 'nsCertType') { + // nsCertType is a BIT STRING + // build flags + var unused = 0; + var b2 = 0x00; + if(e.client) { + b2 |= 0x80; + unused = 7; + } + if(e.server) { + b2 |= 0x40; + unused = 6; + } + if(e.email) { + b2 |= 0x20; + unused = 5; + } + if(e.objsign) { + b2 |= 0x10; + unused = 4; + } + if(e.reserved) { + b2 |= 0x08; + unused = 3; + } + if(e.sslCA) { + b2 |= 0x04; + unused = 2; + } + if(e.emailCA) { + b2 |= 0x02; + unused = 1; + } + if(e.objCA) { + b2 |= 0x01; + unused = 0; + } -var Type = __nccwpck_require__(80102); + // create bit string + var value = String.fromCharCode(unused); + if(b2 !== 0) { + value += String.fromCharCode(b2); + } + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); + } else if(e.name === 'subjectAltName' || e.name === 'issuerAltName') { + // SYNTAX SEQUENCE + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); -var _hasOwnProperty = Object.prototype.hasOwnProperty; -var _toString = Object.prototype.toString; + var altName; + for(var n = 0; n < e.altNames.length; ++n) { + altName = e.altNames[n]; + var value = altName.value; + // handle IP + if(altName.type === 7 && altName.ip) { + value = forge.util.bytesFromIP(altName.ip); + if(value === null) { + var error = new Error( + 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); + error.extension = e; + throw error; + } + } else if(altName.type === 8) { + // handle OID + if(altName.oid) { + value = asn1.oidToDer(asn1.oidToDer(altName.oid)); + } else { + // deprecated ... convert value to OID + value = asn1.oidToDer(value); + } + } + e.value.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, altName.type, false, + value)); + } + } else if(e.name === 'nsComment' && options.cert) { + // sanity check value is ASCII (req'd) and not too big + if(!(/^[\x00-\x7F]*$/.test(e.comment)) || + (e.comment.length < 1) || (e.comment.length > 128)) { + throw new Error('Invalid "nsComment" content.'); + } + // IA5STRING opaque comment + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.IA5STRING, false, e.comment); + } else if(e.name === 'subjectKeyIdentifier' && options.cert) { + var ski = options.cert.generateSubjectKeyIdentifier(); + e.subjectKeyIdentifier = ski.toHex(); + // OCTETSTRING w/digest + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, ski.getBytes()); + } else if(e.name === 'authorityKeyIdentifier' && options.cert) { + // SYNTAX SEQUENCE + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; -function resolveYamlOmap(data) { - if (data === null) return true; + if(e.keyIdentifier) { + var keyIdentifier = (e.keyIdentifier === true ? + options.cert.generateSubjectKeyIdentifier().getBytes() : + e.keyIdentifier); + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, false, keyIdentifier)); + } - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; + if(e.authorityCertIssuer) { + var authorityCertIssuer = [ + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 4, true, [ + _dnToAsn1(e.authorityCertIssuer === true ? + options.cert.issuer : e.authorityCertIssuer) + ]) + ]; + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, authorityCertIssuer)); + } - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; + if(e.serialNumber) { + var serialNumber = forge.util.hexToBytes(e.serialNumber === true ? + options.cert.serialNumber : e.serialNumber); + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, false, serialNumber)); + } + } else if(e.name === 'cRLDistributionPoints') { + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; - if (_toString.call(pair) !== '[object Object]') return false; + // Create sub SEQUENCE of DistributionPointName + var subSeq = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - for (pairKey in pair) { - if (_hasOwnProperty.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; + // Create fullName CHOICE + var fullNameGeneralNames = asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + var altName; + for(var n = 0; n < e.altNames.length; ++n) { + altName = e.altNames[n]; + var value = altName.value; + // handle IP + if(altName.type === 7 && altName.ip) { + value = forge.util.bytesFromIP(altName.ip); + if(value === null) { + var error = new Error( + 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); + error.extension = e; + throw error; + } + } else if(altName.type === 8) { + // handle OID + if(altName.oid) { + value = asn1.oidToDer(asn1.oidToDer(altName.oid)); + } else { + // deprecated ... convert value to OID + value = asn1.oidToDer(value); + } } + fullNameGeneralNames.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, altName.type, false, + value)); } - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; + // Add to the parent SEQUENCE + subSeq.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, [fullNameGeneralNames])); + seq.push(subSeq); } - return true; -} + // ensure value has been defined by now + if(typeof e.value === 'undefined') { + var error = new Error('Extension value not specified.'); + error.extension = e; + throw error; + } -function constructYamlOmap(data) { - return data !== null ? data : []; + return e; } -module.exports = new Type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); - - -/***/ }), - -/***/ 58271: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -var Type = __nccwpck_require__(80102); - -var _toString = Object.prototype.toString; - -function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); +/** + * Convert signature parameters object to ASN.1 + * + * @param {String} oid Signature algorithm OID + * @param params The signature parameters object + * @return ASN.1 object representing signature parameters + */ +function _signatureParametersToAsn1(oid, params) { + switch(oid) { + case oids['RSASSA-PSS']: + var parts = []; - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; + if(params.hash.algorithmOid !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.hash.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ])); + } - if (_toString.call(pair) !== '[object Object]') return false; + if(params.mgf.algorithmOid !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.mgf.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.mgf.hash.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ]) + ])); + } - keys = Object.keys(pair); + if(params.saltLength !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(params.saltLength).getBytes()) + ])); + } - if (keys.length !== 1) return false; + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts); - result[index] = [ keys[0], pair[keys[0]] ]; + default: + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, ''); } - - return true; } -function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; +/** + * Converts a certification request's attributes to an ASN.1 set of + * CRIAttributes. + * + * @param csr certification request. + * + * @return the ASN.1 set of CRIAttributes. + */ +function _CRIAttributesToAsn1(csr) { + // create an empty context-specific container + var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, []); - result = new Array(object.length); + // no attributes, return empty container + if(csr.attributes.length === 0) { + return rval; + } - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; + // each attribute has a sequence with a type and a set of values + var attrs = csr.attributes; + for(var i = 0; i < attrs.length; ++i) { + var attr = attrs[i]; + var value = attr.value; - keys = Object.keys(pair); + // reuse tag class for attribute value if available + var valueTagClass = asn1.Type.UTF8; + if('valueTagClass' in attr) { + valueTagClass = attr.valueTagClass; + } + if(valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(value); + } + var valueConstructed = false; + if('valueConstructed' in attr) { + valueConstructed = attr.valueConstructed; + } + // FIXME: handle more encodings - result[index] = [ keys[0], pair[keys[0]] ]; + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + // AttributeValue + asn1.create( + asn1.Class.UNIVERSAL, valueTagClass, valueConstructed, value) + ]) + ]); + rval.value.push(seq); } - return result; + return rval; } -module.exports = new Type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); +var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); +var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); +/** + * Converts a Date object to ASN.1 + * Handles the different format before and after 1st January 2050 + * + * @param date date object. + * + * @return the ASN.1 object representing the date. + */ +function _dateToAsn1(date) { + if(date >= jan_1_1950 && date < jan_1_2050) { + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, + asn1.dateToUtcTime(date)); + } else { + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, + asn1.dateToGeneralizedTime(date)); + } +} -/***/ }), +/** + * Gets the ASN.1 TBSCertificate part of an X.509v3 certificate. + * + * @param cert the certificate. + * + * @return the asn1 TBSCertificate. + */ +pki.getTBSCertificate = function(cert) { + // TBSCertificate + var notBefore = _dateToAsn1(cert.validity.notBefore); + var notAfter = _dateToAsn1(cert.validity.notAfter); + var tbs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // integer + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(cert.version).getBytes()) + ]), + // serialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(cert.serialNumber)), + // signature + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(cert.siginfo.algorithmOid).getBytes()), + // parameters + _signatureParametersToAsn1( + cert.siginfo.algorithmOid, cert.siginfo.parameters) + ]), + // issuer + _dnToAsn1(cert.issuer), + // validity + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + notBefore, + notAfter + ]), + // subject + _dnToAsn1(cert.subject), + // SubjectPublicKeyInfo + pki.publicKeyToAsn1(cert.publicKey) + ]); -/***/ 56205: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if(cert.issuer.uniqueId) { + // issuerUniqueID (optional) + tbs.value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + // TODO: support arbitrary bit length ids + String.fromCharCode(0x00) + + cert.issuer.uniqueId + ) + ]) + ); + } + if(cert.subject.uniqueId) { + // subjectUniqueID (optional) + tbs.value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + // TODO: support arbitrary bit length ids + String.fromCharCode(0x00) + + cert.subject.uniqueId + ) + ]) + ); + } -"use strict"; + if(cert.extensions.length > 0) { + // extensions (optional) + tbs.value.push(pki.certificateExtensionsToAsn1(cert.extensions)); + } + return tbs; +}; -var Type = __nccwpck_require__(80102); +/** + * Gets the ASN.1 CertificationRequestInfo part of a + * PKCS#10 CertificationRequest. + * + * @param csr the certification request. + * + * @return the asn1 CertificationRequestInfo. + */ +pki.getCertificationRequestInfo = function(csr) { + // CertificationRequestInfo + var cri = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(csr.version).getBytes()), + // subject + _dnToAsn1(csr.subject), + // SubjectPublicKeyInfo + pki.publicKeyToAsn1(csr.publicKey), + // attributes + _CRIAttributesToAsn1(csr) + ]); -module.exports = new Type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); + return cri; +}; +/** + * Converts a DistinguishedName (subject or issuer) to an ASN.1 object. + * + * @param dn the DistinguishedName. + * + * @return the asn1 representation of a DistinguishedName. + */ +pki.distinguishedNameToAsn1 = function(dn) { + return _dnToAsn1(dn); +}; -/***/ }), +/** + * Converts an X.509v3 RSA certificate to an ASN.1 object. + * + * @param cert the certificate. + * + * @return the asn1 representation of an X.509v3 RSA certificate. + */ +pki.certificateToAsn1 = function(cert) { + // prefer cached TBSCertificate over generating one + var tbsCertificate = cert.tbsCertificate || pki.getTBSCertificate(cert); -/***/ 14688: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // Certificate + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // TBSCertificate + tbsCertificate, + // AlgorithmIdentifier (signature algorithm) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(cert.signatureOid).getBytes()), + // parameters + _signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters) + ]), + // SignatureValue + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + String.fromCharCode(0x00) + cert.signature) + ]); +}; -"use strict"; +/** + * Converts X.509v3 certificate extensions to ASN.1. + * + * @param exts the extensions to convert. + * + * @return the extensions in ASN.1 format. + */ +pki.certificateExtensionsToAsn1 = function(exts) { + // create top-level extension container + var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 3, true, []); + // create extension sequence (stores a sequence for each extension) + var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + rval.value.push(seq); -var Type = __nccwpck_require__(80102); + for(var i = 0; i < exts.length; ++i) { + seq.value.push(pki.certificateExtensionToAsn1(exts[i])); + } -var _hasOwnProperty = Object.prototype.hasOwnProperty; + return rval; +}; -function resolveYamlSet(data) { - if (data === null) return true; +/** + * Converts a single certificate extension to ASN.1. + * + * @param ext the extension to convert. + * + * @return the extension in ASN.1 format. + */ +pki.certificateExtensionToAsn1 = function(ext) { + // create a sequence for each extension + var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var key, object = data; + // extnID (OID) + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(ext.id).getBytes())); - for (key in object) { - if (_hasOwnProperty.call(object, key)) { - if (object[key] !== null) return false; - } + // critical defaults to false + if(ext.critical) { + // critical BOOLEAN DEFAULT FALSE + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, + String.fromCharCode(0xFF))); } - return true; -} - -function constructYamlSet(data) { - return data !== null ? data : {}; -} + var value = ext.value; + if(typeof ext.value !== 'string') { + // value is asn.1 + value = asn1.toDer(value).getBytes(); + } -module.exports = new Type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); + // extnValue (OCTET STRING) + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, value)); + return extseq; +}; -/***/ }), +/** + * Converts a PKCS#10 certification request to an ASN.1 object. + * + * @param csr the certification request. + * + * @return the asn1 representation of a certification request. + */ +pki.certificationRequestToAsn1 = function(csr) { + // prefer cached CertificationRequestInfo over generating one + var cri = csr.certificationRequestInfo || + pki.getCertificationRequestInfo(csr); -/***/ 87936: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // Certificate + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // CertificationRequestInfo + cri, + // AlgorithmIdentifier (signature algorithm) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(csr.signatureOid).getBytes()), + // parameters + _signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters) + ]), + // signature + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + String.fromCharCode(0x00) + csr.signature) + ]); +}; -"use strict"; +/** + * Creates a CA store. + * + * @param certs an optional array of certificate objects or PEM-formatted + * certificate strings to add to the CA store. + * + * @return the CA store. + */ +pki.createCaStore = function(certs) { + // create CA store + var caStore = { + // stored certificates + certs: {} + }; + /** + * Gets the certificate that issued the passed certificate or its + * 'parent'. + * + * @param cert the certificate to get the parent for. + * + * @return the parent certificate or null if none was found. + */ + caStore.getIssuer = function(cert) { + var rval = getBySubject(cert.issuer); -var Type = __nccwpck_require__(80102); + // see if there are multiple matches + /*if(forge.util.isArray(rval)) { + // TODO: resolve multiple matches by checking + // authorityKey/subjectKey/issuerUniqueID/other identifiers, etc. + // FIXME: or alternatively do authority key mapping + // if possible (X.509v1 certs can't work?) + throw new Error('Resolving multiple issuer matches not implemented yet.'); + }*/ -module.exports = new Type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); + return rval; + }; + /** + * Adds a trusted certificate to the store. + * + * @param cert the certificate to add as a trusted certificate (either a + * pki.certificate object or a PEM-formatted certificate). + */ + caStore.addCertificate = function(cert) { + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } -/***/ }), + ensureSubjectHasHash(cert.subject); -/***/ 90486: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if(!caStore.hasCertificate(cert)) { // avoid duplicate certificates in store + if(cert.subject.hash in caStore.certs) { + // subject hash already exists, append to array + var tmp = caStore.certs[cert.subject.hash]; + if(!forge.util.isArray(tmp)) { + tmp = [tmp]; + } + tmp.push(cert); + caStore.certs[cert.subject.hash] = tmp; + } else { + caStore.certs[cert.subject.hash] = cert; + } + } + }; -"use strict"; + /** + * Checks to see if the given certificate is in the store. + * + * @param cert the certificate to check (either a pki.certificate or a + * PEM-formatted certificate). + * + * @return true if the certificate is in the store, false if not. + */ + caStore.hasCertificate = function(cert) { + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + var match = getBySubject(cert.subject); + if(!match) { + return false; + } + if(!forge.util.isArray(match)) { + match = [match]; + } + // compare DER-encoding of certificates + var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); + for(var i = 0; i < match.length; ++i) { + var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); + if(der1 === der2) { + return true; + } + } + return false; + }; -var Type = __nccwpck_require__(80102); + /** + * Lists all of the certificates kept in the store. + * + * @return an array of all of the pki.certificate objects in the store. + */ + caStore.listAllCertificates = function() { + var certList = []; -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day + for(var hash in caStore.certs) { + if(caStore.certs.hasOwnProperty(hash)) { + var value = caStore.certs[hash]; + if(!forge.util.isArray(value)) { + certList.push(value); + } else { + for(var i = 0; i < value.length; ++i) { + certList.push(value[i]); + } + } + } + } -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute + return certList; + }; -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} + /** + * Removes a certificate from the store. + * + * @param cert the certificate to remove (either a pki.certificate or a + * PEM-formatted certificate). + * + * @return the certificate that was removed or null if the certificate + * wasn't in store. + */ + caStore.removeCertificate = function(cert) { + var result; -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + ensureSubjectHasHash(cert.subject); + if(!caStore.hasCertificate(cert)) { + return null; + } - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); + var match = getBySubject(cert.subject); - if (match === null) throw new Error('Date resolve error'); + if(!forge.util.isArray(match)) { + result = caStore.certs[cert.subject.hash]; + delete caStore.certs[cert.subject.hash]; + return result; + } - // match: [1] year [2] month [3] day + // compare DER-encoding of certificates + var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); + for(var i = 0; i < match.length; ++i) { + var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); + if(der1 === der2) { + result = match[i]; + match.splice(i, 1); + } + } + if(match.length === 0) { + delete caStore.certs[cert.subject.hash]; + } - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); + return result; + }; - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); + function getBySubject(subject) { + ensureSubjectHasHash(subject); + return caStore.certs[subject.hash] || null; } - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; + function ensureSubjectHasHash(subject) { + // produce subject hash if it doesn't exist + if(!subject.hash) { + var md = forge.md.sha1.create(); + subject.attributes = pki.RDNAttributesAsArray(_dnToAsn1(subject), md); + subject.hash = md.digest().toHex(); } - fraction = +fraction; } - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; + // auto-add passed in certs + if(certs) { + // parse PEM-formatted certificates as necessary + for(var i = 0; i < certs.length; ++i) { + var cert = certs[i]; + caStore.addCertificate(cert); + } } - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; -} - -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} + return caStore; +}; -module.exports = new Type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); +/** + * Certificate verification errors, based on TLS. + */ +pki.certificateError = { + bad_certificate: 'forge.pki.BadCertificate', + unsupported_certificate: 'forge.pki.UnsupportedCertificate', + certificate_revoked: 'forge.pki.CertificateRevoked', + certificate_expired: 'forge.pki.CertificateExpired', + certificate_unknown: 'forge.pki.CertificateUnknown', + unknown_ca: 'forge.pki.UnknownCertificateAuthority' +}; +/** + * Verifies a certificate chain against the given Certificate Authority store + * with an optional custom verify callback. + * + * @param caStore a certificate store to verify against. + * @param chain the certificate chain to verify, with the root or highest + * authority at the end (an array of certificates). + * @param options a callback to be called for every certificate in the chain or + * an object with: + * verify a callback to be called for every certificate in the + * chain + * validityCheckDate the date against which the certificate + * validity period should be checked. Pass null to not check + * the validity period. By default, the current date is used. + * + * The verify callback has the following signature: + * + * verified - Set to true if certificate was verified, otherwise the + * pki.certificateError for why the certificate failed. + * depth - The current index in the chain, where 0 is the end point's cert. + * certs - The certificate chain, *NOTE* an empty chain indicates an anonymous + * end point. + * + * The function returns true on success and on failure either the appropriate + * pki.certificateError or an object with 'error' set to the appropriate + * pki.certificateError and 'message' set to a custom error message. + * + * @return true if successful, error thrown if not. + */ +pki.verifyCertificateChain = function(caStore, chain, options) { + /* From: RFC3280 - Internet X.509 Public Key Infrastructure Certificate + Section 6: Certification Path Validation + See inline parentheticals related to this particular implementation. -/***/ }), + The primary goal of path validation is to verify the binding between + a subject distinguished name or a subject alternative name and subject + public key, as represented in the end entity certificate, based on the + public key of the trust anchor. This requires obtaining a sequence of + certificates that support that binding. That sequence should be provided + in the passed 'chain'. The trust anchor should be in the given CA + store. The 'end entity' certificate is the certificate provided by the + end point (typically a server) and is the first in the chain. -/***/ 2615: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + To meet this goal, the path validation process verifies, among other + things, that a prospective certification path (a sequence of n + certificates or a 'chain') satisfies the following conditions: -var json_stringify = (__nccwpck_require__(4888).stringify); -var json_parse = __nccwpck_require__(20143); + (a) for all x in {1, ..., n-1}, the subject of certificate x is + the issuer of certificate x+1; -module.exports = function(options) { - return { - parse: json_parse(options), - stringify: json_stringify - } -}; -//create the default method members with no options applied for backwards compatibility -module.exports.parse = json_parse(); -module.exports.stringify = json_stringify; + (b) certificate 1 is issued by the trust anchor; + (c) certificate n is the certificate to be validated; and -/***/ }), + (d) for all x in {1, ..., n}, the certificate was valid at the + time in question. -/***/ 20143: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + Note that here 'n' is index 0 in the chain and 1 is the last certificate + in the chain and it must be signed by a certificate in the connection's + CA store. -var BigNumber = null; + The path validation process also determines the set of certificate + policies that are valid for this path, based on the certificate policies + extension, policy mapping extension, policy constraints extension, and + inhibit any-policy extension. -// regexpxs extracted from -// (c) BSD-3-Clause -// https://github.com/fastify/secure-json-parse/graphs/contributors and https://github.com/hapijs/bourne/graphs/contributors + Note: Policy mapping extension not supported (Not Required). -const suspectProtoRx = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/; -const suspectConstructorRx = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/; + Note: If the certificate has an unsupported critical extension, then it + must be rejected. -/* - json_parse.js - 2012-06-20 + Note: A certificate is self-issued if the DNs that appear in the subject + and issuer fields are identical and are not empty. - Public Domain. + The path validation algorithm assumes the following seven inputs are + provided to the path processing logic. What this specific implementation + will use is provided parenthetically: - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + (a) a prospective certification path of length n (the 'chain') + (b) the current date/time: ('now'). + (c) user-initial-policy-set: A set of certificate policy identifiers + naming the policies that are acceptable to the certificate user. + The user-initial-policy-set contains the special value any-policy + if the user is not concerned about certificate policy + (Not implemented. Any policy is accepted). + (d) trust anchor information, describing a CA that serves as a trust + anchor for the certification path. The trust anchor information + includes: - This file creates a json_parse function. - During create you can (optionally) specify some behavioural switches + (1) the trusted issuer name, + (2) the trusted public key algorithm, + (3) the trusted public key, and + (4) optionally, the trusted public key parameters associated + with the public key. - require('json-bigint')(options) + (Trust anchors are provided via certificates in the CA store). - The optional options parameter holds switches that drive certain - aspects of the parsing process: - * options.strict = true will warn about duplicate-key usage in the json. - The default (strict = false) will silently ignore those and overwrite - values for keys that are in duplicate use. + The trust anchor information may be provided to the path processing + procedure in the form of a self-signed certificate. The trusted anchor + information is trusted because it was delivered to the path processing + procedure by some trustworthy out-of-band procedure. If the trusted + public key algorithm requires parameters, then the parameters are + provided along with the trusted public key (No parameters used in this + implementation). - The resulting function follows this signature: - json_parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. + (e) initial-policy-mapping-inhibit, which indicates if policy mapping is + allowed in the certification path. + (Not implemented, no policy checking) - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. + (f) initial-explicit-policy, which indicates if the path must be valid + for at least one of the certificate policies in the user-initial- + policy-set. + (Not implemented, no policy checking) - Example: + (g) initial-any-policy-inhibit, which indicates whether the + anyPolicy OID should be processed if it is included in a + certificate. + (Not implemented, so any policy is valid provided that it is + not marked as critical) */ - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. + /* Basic Path Processing: - myData = json_parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); + For each certificate in the 'chain', the following is checked: - This is a reference implementation. You are free to copy, modify, or - redistribute. + 1. The certificate validity period includes the current time. + 2. The certificate was signed by its parent (where the parent is either + the next in the chain or from the CA store). Allow processing to + continue to the next step if no parent is found but the certificate is + in the CA store. + 3. TODO: The certificate has not been revoked. + 4. The certificate issuer name matches the parent's subject name. + 5. TODO: If the certificate is self-issued and not the final certificate + in the chain, skip this step, otherwise verify that the subject name + is within one of the permitted subtrees of X.500 distinguished names + and that each of the alternative names in the subjectAltName extension + (critical or non-critical) is within one of the permitted subtrees for + that name type. + 6. TODO: If the certificate is self-issued and not the final certificate + in the chain, skip this step, otherwise verify that the subject name + is not within one of the excluded subtrees for X.500 distinguished + names and none of the subjectAltName extension names are excluded for + that name type. + 7. The other steps in the algorithm for basic path processing involve + handling the policy extension which is not presently supported in this + implementation. Instead, if a critical policy extension is found, the + certificate is rejected as not supported. + 8. If the certificate is not the first or if its the only certificate in + the chain (having no parent from the CA store or is self-signed) and it + has a critical key usage extension, verify that the keyCertSign bit is + set. If the key usage extension exists, verify that the basic + constraints extension exists. If the basic constraints extension exists, + verify that the cA flag is set. If pathLenConstraint is set, ensure that + the number of certificates that precede in the chain (come earlier + in the chain as implemented below), excluding the very first in the + chain (typically the end-entity one), isn't greater than the + pathLenConstraint. This constraint limits the number of intermediate + CAs that may appear below a CA before only end-entity certificates + may be issued. */ - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html + // if a verify callback is passed as the third parameter, package it within + // the options object. This is to support a legacy function signature that + // expected the verify callback as the third parameter. + if(typeof options === 'function') { + options = {verify: options}; + } + options = options || {}; - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. -*/ + // copy cert chain references to another array to protect against changes + // in verify callback + chain = chain.slice(0); + var certs = chain.slice(0); -/*members "", "\"", "\/", "\\", at, b, call, charAt, f, fromCharCode, - hasOwnProperty, message, n, name, prototype, push, r, t, text -*/ + var validityCheckDate = options.validityCheckDate; + // if no validityCheckDate is specified, default to the current date. Make + // sure to maintain the value null because it indicates that the validity + // period should not be checked. + if(typeof validityCheckDate === 'undefined') { + validityCheckDate = new Date(); + } -var json_parse = function (options) { - 'use strict'; + // verify each cert in the chain using its parent, where the parent + // is either the next in the chain or from the CA store + var first = true; + var error = null; + var depth = 0; + do { + var cert = chain.shift(); + var parent = null; + var selfSigned = false; - // This is a function that can parse a JSON text, producing a JavaScript - // data structure. It is a simple, recursive descent parser. It does not use - // eval or regular expressions, so it can be used as a model for implementing - // a JSON parser in other languages. + if(validityCheckDate) { + // 1. check valid time + if(validityCheckDate < cert.validity.notBefore || + validityCheckDate > cert.validity.notAfter) { + error = { + message: 'Certificate is not valid yet or has expired.', + error: pki.certificateError.certificate_expired, + notBefore: cert.validity.notBefore, + notAfter: cert.validity.notAfter, + // TODO: we might want to reconsider renaming 'now' to + // 'validityCheckDate' should this API be changed in the future. + now: validityCheckDate + }; + } + } - // We are defining the function inside of another function to avoid creating - // global variables. + // 2. verify with parent from chain or CA store + if(error === null) { + parent = chain[0] || caStore.getIssuer(cert); + if(parent === null) { + // check for self-signed cert + if(cert.isIssuer(cert)) { + selfSigned = true; + parent = cert; + } + } - // Default options one can override by passing options to the parse() - var _options = { - strict: false, // not being strict means do not generate syntax errors for "duplicate key" - storeAsString: false, // toggles whether the values should be stored as BigNumber (default) or a string - alwaysParseAsBig: false, // toggles whether all numbers should be Big - useNativeBigInt: false, // toggles whether to use native BigInt instead of bignumber.js - protoAction: 'error', - constructorAction: 'error', - }; + if(parent) { + // FIXME: current CA store implementation might have multiple + // certificates where the issuer can't be determined from the + // certificate (happens rarely with, eg: old certificates) so normalize + // by always putting parents into an array + // TODO: there's may be an extreme degenerate case currently uncovered + // where an old intermediate certificate seems to have a matching parent + // but none of the parents actually verify ... but the intermediate + // is in the CA and it should pass this check; needs investigation + var parents = parent; + if(!forge.util.isArray(parents)) { + parents = [parents]; + } - // If there are options, then use them to override the default _options - if (options !== undefined && options !== null) { - if (options.strict === true) { - _options.strict = true; - } - if (options.storeAsString === true) { - _options.storeAsString = true; - } - _options.alwaysParseAsBig = - options.alwaysParseAsBig === true ? options.alwaysParseAsBig : false; - _options.useNativeBigInt = - options.useNativeBigInt === true ? options.useNativeBigInt : false; + // try to verify with each possible parent (typically only one) + var verified = false; + while(!verified && parents.length > 0) { + parent = parents.shift(); + try { + verified = parent.verify(cert); + } catch(ex) { + // failure to verify, don't care why, try next one + } + } - if (typeof options.constructorAction !== 'undefined') { - if ( - options.constructorAction === 'error' || - options.constructorAction === 'ignore' || - options.constructorAction === 'preserve' - ) { - _options.constructorAction = options.constructorAction; - } else { - throw new Error( - `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${options.constructorAction}` - ); + if(!verified) { + error = { + message: 'Certificate signature is invalid.', + error: pki.certificateError.bad_certificate + }; + } } - } - if (typeof options.protoAction !== 'undefined') { - if ( - options.protoAction === 'error' || - options.protoAction === 'ignore' || - options.protoAction === 'preserve' - ) { - _options.protoAction = options.protoAction; - } else { - throw new Error( - `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${options.protoAction}` - ); + if(error === null && (!parent || selfSigned) && + !caStore.hasCertificate(cert)) { + // no parent issuer and certificate itself is not trusted + error = { + message: 'Certificate is not trusted.', + error: pki.certificateError.unknown_ca + }; } } - } - var at, // The index of the current character - ch, // The current character - escapee = { - '"': '"', - '\\': '\\', - '/': '/', - b: '\b', - f: '\f', - n: '\n', - r: '\r', - t: '\t', - }, - text, - error = function (m) { - // Call error when something is wrong. + // TODO: 3. check revoked - throw { - name: 'SyntaxError', - message: m, - at: at, - text: text, + // 4. check for matching issuer/subject + if(error === null && parent && !cert.isIssuer(parent)) { + // parent is not issuer + error = { + message: 'Certificate issuer is invalid.', + error: pki.certificateError.bad_certificate }; - }, - next = function (c) { - // If a c parameter is provided, verify that it matches the current character. - - if (c && c !== ch) { - error("Expected '" + c + "' instead of '" + ch + "'"); - } - - // Get the next character. When there are no more characters, - // return the empty string. + } - ch = text.charAt(at); - at += 1; - return ch; - }, - number = function () { - // Parse a number value. + // 5. TODO: check names with permitted names tree - var number, - string = ''; + // 6. TODO: check names against excluded names tree - if (ch === '-') { - string = '-'; - next('-'); - } - while (ch >= '0' && ch <= '9') { - string += ch; - next(); - } - if (ch === '.') { - string += '.'; - while (next() && ch >= '0' && ch <= '9') { - string += ch; + // 7. check for unsupported critical extensions + if(error === null) { + // supported extensions + var se = { + keyUsage: true, + basicConstraints: true + }; + for(var i = 0; error === null && i < cert.extensions.length; ++i) { + var ext = cert.extensions[i]; + if(ext.critical && !(ext.name in se)) { + error = { + message: + 'Certificate has an unsupported critical extension.', + error: pki.certificateError.unsupported_certificate + }; } } - if (ch === 'e' || ch === 'E') { - string += ch; - next(); - if (ch === '-' || ch === '+') { - string += ch; - next(); - } - while (ch >= '0' && ch <= '9') { - string += ch; - next(); + } + + // 8. check for CA if cert is not first or is the only certificate + // remaining in chain with no parent or is self-signed + if(error === null && + (!first || (chain.length === 0 && (!parent || selfSigned)))) { + // first check keyUsage extension and then basic constraints + var bcExt = cert.getExtension('basicConstraints'); + var keyUsageExt = cert.getExtension('keyUsage'); + if(keyUsageExt !== null) { + // keyCertSign must be true and there must be a basic + // constraints extension + if(!keyUsageExt.keyCertSign || bcExt === null) { + // bad certificate + error = { + message: + 'Certificate keyUsage or basicConstraints conflict ' + + 'or indicate that the certificate is not a CA. ' + + 'If the certificate is the only one in the chain or ' + + 'isn\'t the first then the certificate must be a ' + + 'valid CA.', + error: pki.certificateError.bad_certificate + }; } } - number = +string; - if (!isFinite(number)) { - error('Bad number'); - } else { - if (BigNumber == null) BigNumber = __nccwpck_require__(50470); - //if (number > 9007199254740992 || number < -9007199254740992) - // Bignumber has stricter check: everything with length > 15 digits disallowed - if (string.length > 15) - return _options.storeAsString - ? string - : _options.useNativeBigInt - ? BigInt(string) - : new BigNumber(string); - else - return !_options.alwaysParseAsBig - ? number - : _options.useNativeBigInt - ? BigInt(number) - : new BigNumber(number); + // basic constraints cA flag must be set + if(error === null && bcExt !== null && !bcExt.cA) { + // bad certificate + error = { + message: + 'Certificate basicConstraints indicates the certificate ' + + 'is not a CA.', + error: pki.certificateError.bad_certificate + }; } - }, - string = function () { - // Parse a string value. - - var hex, - i, - string = '', - uffff; - - // When parsing for string values, we must look for " and \ characters. - - if (ch === '"') { - var startAt = at; - while (next()) { - if (ch === '"') { - if (at - 1 > startAt) string += text.substring(startAt, at - 1); - next(); - return string; - } - if (ch === '\\') { - if (at - 1 > startAt) string += text.substring(startAt, at - 1); - next(); - if (ch === 'u') { - uffff = 0; - for (i = 0; i < 4; i += 1) { - hex = parseInt(next(), 16); - if (!isFinite(hex)) { - break; - } - uffff = uffff * 16 + hex; - } - string += String.fromCharCode(uffff); - } else if (typeof escapee[ch] === 'string') { - string += escapee[ch]; - } else { - break; - } - startAt = at; - } + // if error is not null and keyUsage is available, then we know it + // has keyCertSign and there is a basic constraints extension too, + // which means we can check pathLenConstraint (if it exists) + if(error === null && keyUsageExt !== null && + 'pathLenConstraint' in bcExt) { + // pathLen is the maximum # of intermediate CA certs that can be + // found between the current certificate and the end-entity (depth 0) + // certificate; this number does not include the end-entity (depth 0, + // last in the chain) even if it happens to be a CA certificate itself + var pathLen = depth - 1; + if(pathLen > bcExt.pathLenConstraint) { + // pathLenConstraint violated, bad certificate + error = { + message: + 'Certificate basicConstraints pathLenConstraint violated.', + error: pki.certificateError.bad_certificate + }; } } - error('Bad string'); - }, - white = function () { - // Skip whitespace. - - while (ch && ch <= ' ') { - next(); - } - }, - word = function () { - // true, false, or null. + } - switch (ch) { - case 't': - next('t'); - next('r'); - next('u'); - next('e'); - return true; - case 'f': - next('f'); - next('a'); - next('l'); - next('s'); - next('e'); - return false; - case 'n': - next('n'); - next('u'); - next('l'); - next('l'); - return null; + // call application callback + var vfd = (error === null) ? true : error.error; + var ret = options.verify ? options.verify(vfd, depth, certs) : vfd; + if(ret === true) { + // clear any set error + error = null; + } else { + // if passed basic tests, set default message and alert + if(vfd === true) { + error = { + message: 'The application rejected the certificate.', + error: pki.certificateError.bad_certificate + }; } - error("Unexpected '" + ch + "'"); - }, - value, // Place holder for the value function. - array = function () { - // Parse an array value. - var array = []; - - if (ch === '[') { - next('['); - white(); - if (ch === ']') { - next(']'); - return array; // empty array - } - while (ch) { - array.push(value()); - white(); - if (ch === ']') { - next(']'); - return array; + // check for custom error info + if(ret || ret === 0) { + // set custom message and error + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + if(ret.message) { + error.message = ret.message; } - next(','); - white(); + if(ret.error) { + error.error = ret.error; + } + } else if(typeof ret === 'string') { + // set custom error + error.error = ret; } } - error('Bad array'); - }, - object = function () { - // Parse an object value. - - var key, - object = Object.create(null); - if (ch === '{') { - next('{'); - white(); - if (ch === '}') { - next('}'); - return object; // empty object - } - while (ch) { - key = string(); - white(); - next(':'); - if ( - _options.strict === true && - Object.hasOwnProperty.call(object, key) - ) { - error('Duplicate key "' + key + '"'); - } + // throw error + throw error; + } - if (suspectProtoRx.test(key) === true) { - if (_options.protoAction === 'error') { - error('Object contains forbidden prototype property'); - } else if (_options.protoAction === 'ignore') { - value(); - } else { - object[key] = value(); - } - } else if (suspectConstructorRx.test(key) === true) { - if (_options.constructorAction === 'error') { - error('Object contains forbidden constructor property'); - } else if (_options.constructorAction === 'ignore') { - value(); - } else { - object[key] = value(); - } - } else { - object[key] = value(); - } + // no longer first cert in chain + first = false; + ++depth; + } while(chain.length > 0); - white(); - if (ch === '}') { - next('}'); - return object; - } - next(','); - white(); - } - } - error('Bad object'); - }; + return true; +}; - value = function () { - // Parse a JSON value. It could be an object, an array, a string, a number, - // or a word. - white(); - switch (ch) { - case '{': - return object(); - case '[': - return array(); - case '"': - return string(); - case '-': - return number(); - default: - return ch >= '0' && ch <= '9' ? number() : word(); - } - }; +/***/ }), - // Return the json_parse function. It will have access to all of the above - // functions and variables. +/***/ 6493: +/***/ ((module, exports, __nccwpck_require__) => { - return function (source, reviver) { - var result; +"use strict"; - text = source + ''; - at = 0; - ch = ' '; - result = value(); - white(); - if (ch) { - error('Syntax error'); - } - // If there is a reviver function, we recursively walk the new structure, - // passing each name/value pair to the reviver function for possible - // transformation, starting with a temporary root object that holds the result - // in an empty key. If there is not a reviver function, we simply return the - // result. +var crypto = __nccwpck_require__(76982); - return typeof reviver === 'function' - ? (function walk(holder, key) { - var k, - v, - value = holder[key]; - if (value && typeof value === 'object') { - Object.keys(value).forEach(function (k) { - v = walk(value, k); - if (v !== undefined) { - value[k] = v; - } else { - delete value[k]; - } - }); - } - return reviver.call(holder, key, value); - })({ '': result }, '') - : result; - }; -}; +/** + * Exported function + * + * Options: + * + * - `algorithm` hash algo to be used by this instance: *'sha1', 'md5' + * - `excludeValues` {true|*false} hash object keys, values ignored + * - `encoding` hash encoding, supports 'buffer', '*hex', 'binary', 'base64' + * - `ignoreUnknown` {true|*false} ignore unknown object types + * - `replacer` optional function that replaces values before hashing + * - `respectFunctionProperties` {*true|false} consider function properties when hashing + * - `respectFunctionNames` {*true|false} consider 'name' property of functions for hashing + * - `respectType` {*true|false} Respect special properties (prototype, constructor) + * when hashing to distinguish between types + * - `unorderedArrays` {true|*false} Sort all arrays before hashing + * - `unorderedSets` {*true|false} Sort `Set` and `Map` instances before hashing + * * = default + * + * @param {object} object value to hash + * @param {object} options hashing options + * @return {string} hash value + * @api public + */ +exports = module.exports = objectHash; -module.exports = json_parse; +function objectHash(object, options){ + options = applyDefaults(object, options); + return hash(object, options); +} -/***/ }), +/** + * Exported sugar methods + * + * @param {object} object value to hash + * @return {string} hash value + * @api public + */ +exports.sha1 = function(object){ + return objectHash(object); +}; +exports.keys = function(object){ + return objectHash(object, {excludeValues: true, algorithm: 'sha1', encoding: 'hex'}); +}; +exports.MD5 = function(object){ + return objectHash(object, {algorithm: 'md5', encoding: 'hex'}); +}; +exports.keysMD5 = function(object){ + return objectHash(object, {algorithm: 'md5', encoding: 'hex', excludeValues: true}); +}; -/***/ 4888: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +// Internals +var hashes = crypto.getHashes ? crypto.getHashes().slice() : ['sha1', 'md5']; +hashes.push('passthrough'); +var encodings = ['buffer', 'hex', 'binary', 'base64']; -var BigNumber = __nccwpck_require__(50470); +function applyDefaults(object, sourceOptions){ + sourceOptions = sourceOptions || {}; -/* - json2.js - 2013-05-26 + // create a copy rather than mutating + var options = {}; + options.algorithm = sourceOptions.algorithm || 'sha1'; + options.encoding = sourceOptions.encoding || 'hex'; + options.excludeValues = sourceOptions.excludeValues ? true : false; + options.algorithm = options.algorithm.toLowerCase(); + options.encoding = options.encoding.toLowerCase(); + options.ignoreUnknown = sourceOptions.ignoreUnknown !== true ? false : true; // default to false + options.respectType = sourceOptions.respectType === false ? false : true; // default to true + options.respectFunctionNames = sourceOptions.respectFunctionNames === false ? false : true; + options.respectFunctionProperties = sourceOptions.respectFunctionProperties === false ? false : true; + options.unorderedArrays = sourceOptions.unorderedArrays !== true ? false : true; // default to false + options.unorderedSets = sourceOptions.unorderedSets === false ? false : true; // default to false + options.unorderedObjects = sourceOptions.unorderedObjects === false ? false : true; // default to true + options.replacer = sourceOptions.replacer || undefined; + options.excludeKeys = sourceOptions.excludeKeys || undefined; - Public Domain. + if(typeof object === 'undefined') { + throw new Error('Object argument required.'); + } - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + // if there is a case-insensitive match in the hashes list, accept it + // (i.e. SHA256 for sha256) + for (var i = 0; i < hashes.length; ++i) { + if (hashes[i].toLowerCase() === options.algorithm.toLowerCase()) { + options.algorithm = hashes[i]; + } + } - See http://www.JSON.org/js.html + if(hashes.indexOf(options.algorithm) === -1){ + throw new Error('Algorithm "' + options.algorithm + '" not supported. ' + + 'supported values: ' + hashes.join(', ')); + } + if(encodings.indexOf(options.encoding) === -1 && + options.algorithm !== 'passthrough'){ + throw new Error('Encoding "' + options.encoding + '" not supported. ' + + 'supported values: ' + encodings.join(', ')); + } - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html + return options; +} - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. +/** Check if the given function is a native function */ +function isNativeFunction(f) { + if ((typeof f) !== 'function') { + return false; + } + var exp = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i; + return exp.exec(Function.prototype.toString.call(f)) != null; +} +function hash(object, options) { + var hashingStream; - This file creates a global JSON object containing two methods: stringify - and parse. + if (options.algorithm !== 'passthrough') { + hashingStream = crypto.createHash(options.algorithm); + } else { + hashingStream = new PassThrough(); + } - JSON.stringify(value, replacer, space) - value any JavaScript value, usually an object or array. + if (typeof hashingStream.write === 'undefined') { + hashingStream.write = hashingStream.update; + hashingStream.end = hashingStream.update; + } - replacer an optional parameter that determines how object - values are stringified for objects. It can be a - function or an array of strings. + var hasher = typeHasher(options, hashingStream); + hasher.dispatch(object); + if (!hashingStream.update) { + hashingStream.end(''); + } - space an optional parameter that specifies the indentation - of nested structures. If it is omitted, the text will - be packed without extra whitespace. If it is a number, - it will specify the number of spaces to indent at each - level. If it is a string (such as '\t' or ' '), - it contains the characters used to indent at each level. + if (hashingStream.digest) { + return hashingStream.digest(options.encoding === 'buffer' ? undefined : options.encoding); + } - This method produces a JSON text from a JavaScript value. + var buf = hashingStream.read(); + if (options.encoding === 'buffer') { + return buf; + } - When an object value is found, if the object contains a toJSON - method, its toJSON method will be called and the result will be - stringified. A toJSON method does not serialize: it returns the - value represented by the name/value pair that should be serialized, - or undefined if nothing should be serialized. The toJSON method - will be passed the key associated with the value, and this will be - bound to the value + return buf.toString(options.encoding); +} - For example, this would serialize Dates as ISO strings. +/** + * Expose streaming API + * + * @param {object} object Value to serialize + * @param {object} options Options, as for hash() + * @param {object} stream A stream to write the serializiation to + * @api public + */ +exports.writeToStream = function(object, options, stream) { + if (typeof stream === 'undefined') { + stream = options; + options = {}; + } - Date.prototype.toJSON = function (key) { - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } + options = applyDefaults(object, options); - return this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z'; - }; + return typeHasher(options, stream).dispatch(object); +}; - You can provide an optional replacer method. It will be passed the - key and value of each member, with this bound to the containing - object. The value that is returned from your method will be - serialized. If your method returns undefined, then the member will - be excluded from the serialization. +function typeHasher(options, writeTo, context){ + context = context || []; + var write = function(str) { + if (writeTo.update) { + return writeTo.update(str, 'utf8'); + } else { + return writeTo.write(str, 'utf8'); + } + }; - If the replacer parameter is an array of strings, then it will be - used to select the members to be serialized. It filters the results - such that only members with keys listed in the replacer array are - stringified. + return { + dispatch: function(value){ + if (options.replacer) { + value = options.replacer(value); + } - Values that do not have JSON representations, such as undefined or - functions, will not be serialized. Such values in objects will be - dropped; in arrays they will be replaced with null. You can use - a replacer function to replace those with JSON values. - JSON.stringify(undefined) returns undefined. + var type = typeof value; + if (value === null) { + type = 'null'; + } - The optional space parameter produces a stringification of the - value that is filled with line breaks and indentation to make it - easier to read. + //console.log("[DEBUG] Dispatch: ", value, "->", type, " -> ", "_" + type); - If the space parameter is a non-empty string, then that string will - be used for indentation. If the space parameter is a number, then - the indentation will be that many spaces. + return this['_' + type](value); + }, + _object: function(object) { + var pattern = (/\[object (.*)\]/i); + var objString = Object.prototype.toString.call(object); + var objType = pattern.exec(objString); + if (!objType) { // object type did not match [object ...] + objType = 'unknown:[' + objString + ']'; + } else { + objType = objType[1]; // take only the class name + } - Example: + objType = objType.toLowerCase(); - text = JSON.stringify(['e', {pluribus: 'unum'}]); - // text is '["e",{"pluribus":"unum"}]' + var objectNumber = null; + if ((objectNumber = context.indexOf(object)) >= 0) { + return this.dispatch('[CIRCULAR:' + objectNumber + ']'); + } else { + context.push(object); + } - text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); - // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + if (typeof Buffer !== 'undefined' && Buffer.isBuffer && Buffer.isBuffer(object)) { + write('buffer:'); + return write(object); + } - text = JSON.stringify([new Date()], function (key, value) { - return this[key] instanceof Date ? - 'Date(' + this[key] + ')' : value; - }); - // text is '["Date(---current time---)"]' + if(objType !== 'object' && objType !== 'function' && objType !== 'asyncfunction') { + if(this['_' + objType]) { + this['_' + objType](object); + } else if (options.ignoreUnknown) { + return write('[' + objType + ']'); + } else { + throw new Error('Unknown object type "' + objType + '"'); + } + }else{ + var keys = Object.keys(object); + if (options.unorderedObjects) { + keys = keys.sort(); + } + // Make sure to incorporate special properties, so + // Types with different prototypes will produce + // a different hash and objects derived from + // different functions (`new Foo`, `new Bar`) will + // produce different hashes. + // We never do this for native functions since some + // seem to break because of that. + if (options.respectType !== false && !isNativeFunction(object)) { + keys.splice(0, 0, 'prototype', '__proto__', 'constructor'); + } + if (options.excludeKeys) { + keys = keys.filter(function(key) { return !options.excludeKeys(key); }); + } - JSON.parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. + write('object:' + keys.length + ':'); + var self = this; + return keys.forEach(function(key){ + self.dispatch(key); + write(':'); + if(!options.excludeValues) { + self.dispatch(object[key]); + } + write(','); + }); + } + }, + _array: function(arr, unordered){ + unordered = typeof unordered !== 'undefined' ? unordered : + options.unorderedArrays !== false; // default to options.unorderedArrays - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. + var self = this; + write('array:' + arr.length + ':'); + if (!unordered || arr.length <= 1) { + return arr.forEach(function(entry) { + return self.dispatch(entry); + }); + } - Example: + // the unordered case is a little more complicated: + // since there is no canonical ordering on objects, + // i.e. {a:1} < {a:2} and {a:1} > {a:2} are both false, + // we first serialize each entry using a PassThrough stream + // before sorting. + // also: we can’t use the same context array for all entries + // since the order of hashing should *not* matter. instead, + // we keep track of the additions to a copy of the context array + // and add all of them to the global context array when we’re done + var contextAdditions = []; + var entries = arr.map(function(entry) { + var strm = new PassThrough(); + var localContext = context.slice(); // make copy + var hasher = typeHasher(options, strm, localContext); + hasher.dispatch(entry); + // take only what was added to localContext and append it to contextAdditions + contextAdditions = contextAdditions.concat(localContext.slice(context.length)); + return strm.read().toString(); + }); + context = context.concat(contextAdditions); + entries.sort(); + return this._array(entries, false); + }, + _date: function(date){ + return write('date:' + date.toJSON()); + }, + _symbol: function(sym){ + return write('symbol:' + sym.toString()); + }, + _error: function(err){ + return write('error:' + err.toString()); + }, + _boolean: function(bool){ + return write('bool:' + bool.toString()); + }, + _string: function(string){ + write('string:' + string.length + ':'); + write(string.toString()); + }, + _function: function(fn){ + write('fn:'); + if (isNativeFunction(fn)) { + this.dispatch('[native]'); + } else { + this.dispatch(fn.toString()); + } - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. + if (options.respectFunctionNames !== false) { + // Make sure we can still distinguish native functions + // by their name, otherwise String and Function will + // have the same hash + this.dispatch("function-name:" + String(fn.name)); + } - myData = JSON.parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); + if (options.respectFunctionProperties) { + this._object(fn); + } + }, + _number: function(number){ + return write('number:' + number.toString()); + }, + _xml: function(xml){ + return write('xml:' + xml.toString()); + }, + _null: function() { + return write('Null'); + }, + _undefined: function() { + return write('Undefined'); + }, + _regexp: function(regex){ + return write('regex:' + regex.toString()); + }, + _uint8array: function(arr){ + write('uint8array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _uint8clampedarray: function(arr){ + write('uint8clampedarray:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _int8array: function(arr){ + write('int8array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _uint16array: function(arr){ + write('uint16array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _int16array: function(arr){ + write('int16array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _uint32array: function(arr){ + write('uint32array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _int32array: function(arr){ + write('int32array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _float32array: function(arr){ + write('float32array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _float64array: function(arr){ + write('float64array:'); + return this.dispatch(Array.prototype.slice.call(arr)); + }, + _arraybuffer: function(arr){ + write('arraybuffer:'); + return this.dispatch(new Uint8Array(arr)); + }, + _url: function(url) { + return write('url:' + url.toString(), 'utf8'); + }, + _map: function(map) { + write('map:'); + var arr = Array.from(map); + return this._array(arr, options.unorderedSets !== false); + }, + _set: function(set) { + write('set:'); + var arr = Array.from(set); + return this._array(arr, options.unorderedSets !== false); + }, + _file: function(file) { + write('file:'); + return this.dispatch([file.name, file.size, file.type, file.lastModfied]); + }, + _blob: function() { + if (options.ignoreUnknown) { + return write('[blob]'); + } - myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { - var d; - if (typeof value === 'string' && - value.slice(0, 5) === 'Date(' && - value.slice(-1) === ')') { - d = new Date(value.slice(5, -1)); - if (d) { - return d; - } - } - return value; - }); + throw Error('Hashing Blob objects is currently not supported\n' + + '(see https://github.com/puleos/object-hash/issues/26)\n' + + 'Use "options.replacer" or "options.ignoreUnknown"\n'); + }, + _domwindow: function() { return write('domwindow'); }, + _bigint: function(number){ + return write('bigint:' + number.toString()); + }, + /* Node.js standard native objects */ + _process: function() { return write('process'); }, + _timer: function() { return write('timer'); }, + _pipe: function() { return write('pipe'); }, + _tcp: function() { return write('tcp'); }, + _udp: function() { return write('udp'); }, + _tty: function() { return write('tty'); }, + _statwatcher: function() { return write('statwatcher'); }, + _securecontext: function() { return write('securecontext'); }, + _connection: function() { return write('connection'); }, + _zlib: function() { return write('zlib'); }, + _context: function() { return write('context'); }, + _nodescript: function() { return write('nodescript'); }, + _httpparser: function() { return write('httpparser'); }, + _dataview: function() { return write('dataview'); }, + _signal: function() { return write('signal'); }, + _fsevent: function() { return write('fsevent'); }, + _tlswrap: function() { return write('tlswrap'); }, + }; +} +// Mini-implementation of stream.PassThrough +// We are far from having need for the full implementation, and we can +// make assumptions like "many writes, then only one final read" +// and we can ignore encoding specifics +function PassThrough() { + return { + buf: '', - This is a reference implementation. You are free to copy, modify, or - redistribute. -*/ + write: function(b) { + this.buf += b; + }, -/*jslint evil: true, regexp: true */ + end: function(b) { + this.buf += b; + }, -/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, - call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, - getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, - lastIndex, length, parse, prototype, push, replace, slice, stringify, - test, toJSON, toString, valueOf -*/ + read: function() { + return this.buf; + } + }; +} -// Create a JSON object only if one does not already exist. We create the -// methods in a closure to avoid creating global variables. +/***/ }), -var JSON = module.exports; +/***/ 15871: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -(function () { - 'use strict'; +var hasMap = typeof Map === 'function' && Map.prototype; +var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; +var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; +var mapForEach = hasMap && Map.prototype.forEach; +var hasSet = typeof Set === 'function' && Set.prototype; +var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; +var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; +var setForEach = hasSet && Set.prototype.forEach; +var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; +var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; +var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; +var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; +var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; +var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; +var booleanValueOf = Boolean.prototype.valueOf; +var objectToString = Object.prototype.toString; +var functionToString = Function.prototype.toString; +var $match = String.prototype.match; +var $slice = String.prototype.slice; +var $replace = String.prototype.replace; +var $toUpperCase = String.prototype.toUpperCase; +var $toLowerCase = String.prototype.toLowerCase; +var $test = RegExp.prototype.test; +var $concat = Array.prototype.concat; +var $join = Array.prototype.join; +var $arrSlice = Array.prototype.slice; +var $floor = Math.floor; +var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; +var gOPS = Object.getOwnPropertySymbols; +var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; +var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; +// ie, `has-tostringtag/shams +var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') + ? Symbol.toStringTag + : null; +var isEnumerable = Object.prototype.propertyIsEnumerable; - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; +var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( + [].__proto__ === Array.prototype // eslint-disable-line no-proto + ? function (O) { + return O.__proto__; // eslint-disable-line no-proto + } + : null +); + +function addNumericSeparator(num, str) { + if ( + num === Infinity + || num === -Infinity + || num !== num + || (num && num > -1000 && num < 1000) + || $test.call(/e/, str) + ) { + return str; + } + var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; + if (typeof num === 'number') { + var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) + if (int !== num) { + var intStr = String(int); + var dec = $slice.call(str, intStr.length + 1); + return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); + } } + return $replace.call(str, sepRegex, '$&_'); +} - var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - gap, - indent, - meta = { // table of character substitutions - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '\\': '\\\\' - }, - rep; +var utilInspect = __nccwpck_require__(14057); +var inspectCustom = utilInspect.custom; +var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; +var quotes = { + __proto__: null, + 'double': '"', + single: "'" +}; +var quoteREs = { + __proto__: null, + 'double': /(["\\])/g, + single: /(['\\])/g +}; - function quote(string) { +module.exports = function inspect_(obj, options, depth, seen) { + var opts = options || {}; -// If the string contains no control characters, no quote characters, and no -// backslash characters, then we can safely slap some quotes around it. -// Otherwise we must also replace the offending characters with safe escape -// sequences. + if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) { + throw new TypeError('option "quoteStyle" must be "single" or "double"'); + } + if ( + has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' + ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity + : opts.maxStringLength !== null + ) + ) { + throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); + } + var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; + if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { + throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); + } - escapable.lastIndex = 0; - return escapable.test(string) ? '"' + string.replace(escapable, function (a) { - var c = meta[a]; - return typeof c === 'string' - ? c - : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }) + '"' : '"' + string + '"'; + if ( + has(opts, 'indent') + && opts.indent !== null + && opts.indent !== '\t' + && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) + ) { + throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); + } + if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { + throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); } + var numericSeparator = opts.numericSeparator; + if (typeof obj === 'undefined') { + return 'undefined'; + } + if (obj === null) { + return 'null'; + } + if (typeof obj === 'boolean') { + return obj ? 'true' : 'false'; + } - function str(key, holder) { + if (typeof obj === 'string') { + return inspectString(obj, opts); + } + if (typeof obj === 'number') { + if (obj === 0) { + return Infinity / obj > 0 ? '0' : '-0'; + } + var str = String(obj); + return numericSeparator ? addNumericSeparator(obj, str) : str; + } + if (typeof obj === 'bigint') { + var bigIntStr = String(obj) + 'n'; + return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; + } -// Produce a string from holder[key]. + var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; + if (typeof depth === 'undefined') { depth = 0; } + if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { + return isArray(obj) ? '[Array]' : '[Object]'; + } - var i, // The loop counter. - k, // The member key. - v, // The member value. - length, - mind = gap, - partial, - value = holder[key], - isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value)); + var indent = getIndent(opts, depth); -// If the value has a toJSON method, call it to obtain a replacement value. + if (typeof seen === 'undefined') { + seen = []; + } else if (indexOf(seen, obj) >= 0) { + return '[Circular]'; + } - if (value && typeof value === 'object' && - typeof value.toJSON === 'function') { - value = value.toJSON(key); + function inspect(value, from, noIndent) { + if (from) { + seen = $arrSlice.call(seen); + seen.push(from); } - -// If we were called with a replacer function, then call the replacer to -// obtain a replacement value. - - if (typeof rep === 'function') { - value = rep.call(holder, key, value); + if (noIndent) { + var newOpts = { + depth: opts.depth + }; + if (has(opts, 'quoteStyle')) { + newOpts.quoteStyle = opts.quoteStyle; + } + return inspect_(value, newOpts, depth + 1, seen); } + return inspect_(value, opts, depth + 1, seen); + } -// What happens next depends on the value's type. + if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable + var name = nameOf(obj); + var keys = arrObjKeys(obj, inspect); + return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); + } + if (isSymbol(obj)) { + var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); + return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; + } + if (isElement(obj)) { + var s = '<' + $toLowerCase.call(String(obj.nodeName)); + var attrs = obj.attributes || []; + for (var i = 0; i < attrs.length; i++) { + s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); + } + s += '>'; + if (obj.childNodes && obj.childNodes.length) { s += '...'; } + s += ''; + return s; + } + if (isArray(obj)) { + if (obj.length === 0) { return '[]'; } + var xs = arrObjKeys(obj, inspect); + if (indent && !singleLineValues(xs)) { + return '[' + indentedJoin(xs, indent) + ']'; + } + return '[ ' + $join.call(xs, ', ') + ' ]'; + } + if (isError(obj)) { + var parts = arrObjKeys(obj, inspect); + if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { + return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; + } + if (parts.length === 0) { return '[' + String(obj) + ']'; } + return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; + } + if (typeof obj === 'object' && customInspect) { + if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { + return utilInspect(obj, { depth: maxDepth - depth }); + } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { + return obj.inspect(); + } + } + if (isMap(obj)) { + var mapParts = []; + if (mapForEach) { + mapForEach.call(obj, function (value, key) { + mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); + }); + } + return collectionOf('Map', mapSize.call(obj), mapParts, indent); + } + if (isSet(obj)) { + var setParts = []; + if (setForEach) { + setForEach.call(obj, function (value) { + setParts.push(inspect(value, obj)); + }); + } + return collectionOf('Set', setSize.call(obj), setParts, indent); + } + if (isWeakMap(obj)) { + return weakCollectionOf('WeakMap'); + } + if (isWeakSet(obj)) { + return weakCollectionOf('WeakSet'); + } + if (isWeakRef(obj)) { + return weakCollectionOf('WeakRef'); + } + if (isNumber(obj)) { + return markBoxed(inspect(Number(obj))); + } + if (isBigInt(obj)) { + return markBoxed(inspect(bigIntValueOf.call(obj))); + } + if (isBoolean(obj)) { + return markBoxed(booleanValueOf.call(obj)); + } + if (isString(obj)) { + return markBoxed(inspect(String(obj))); + } + // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other + /* eslint-env browser */ + if (typeof window !== 'undefined' && obj === window) { + return '{ [object Window] }'; + } + if ( + (typeof globalThis !== 'undefined' && obj === globalThis) + || (typeof global !== 'undefined' && obj === global) + ) { + return '{ [object globalThis] }'; + } + if (!isDate(obj) && !isRegExp(obj)) { + var ys = arrObjKeys(obj, inspect); + var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; + var protoTag = obj instanceof Object ? '' : 'null prototype'; + var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; + var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; + var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); + if (ys.length === 0) { return tag + '{}'; } + if (indent) { + return tag + '{' + indentedJoin(ys, indent) + '}'; + } + return tag + '{ ' + $join.call(ys, ', ') + ' }'; + } + return String(obj); +}; - switch (typeof value) { - case 'string': - if (isBigNumber) { - return value; - } else { - return quote(value); - } +function wrapQuotes(s, defaultStyle, opts) { + var style = opts.quoteStyle || defaultStyle; + var quoteChar = quotes[style]; + return quoteChar + s + quoteChar; +} - case 'number': +function quote(s) { + return $replace.call(String(s), /"/g, '"'); +} -// JSON numbers must be finite. Encode non-finite numbers as null. +function canTrustToString(obj) { + return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined')); +} +function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); } +function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); } +function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); } +function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); } +function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); } +function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); } +function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); } - return isFinite(value) ? String(value) : 'null'; +// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives +function isSymbol(obj) { + if (hasShammedSymbols) { + return obj && typeof obj === 'object' && obj instanceof Symbol; + } + if (typeof obj === 'symbol') { + return true; + } + if (!obj || typeof obj !== 'object' || !symToString) { + return false; + } + try { + symToString.call(obj); + return true; + } catch (e) {} + return false; +} - case 'boolean': - case 'null': - case 'bigint': +function isBigInt(obj) { + if (!obj || typeof obj !== 'object' || !bigIntValueOf) { + return false; + } + try { + bigIntValueOf.call(obj); + return true; + } catch (e) {} + return false; +} -// If the value is a boolean or null, convert it to a string. Note: -// typeof null does not produce 'null'. The case is included here in -// the remote chance that this gets fixed someday. +var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; +function has(obj, key) { + return hasOwn.call(obj, key); +} - return String(value); +function toStr(obj) { + return objectToString.call(obj); +} -// If the type is 'object', we might be dealing with an object or an array or -// null. +function nameOf(f) { + if (f.name) { return f.name; } + var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); + if (m) { return m[1]; } + return null; +} - case 'object': +function indexOf(xs, x) { + if (xs.indexOf) { return xs.indexOf(x); } + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) { return i; } + } + return -1; +} -// Due to a specification blunder in ECMAScript, typeof null is 'object', -// so watch out for that case. +function isMap(x) { + if (!mapSize || !x || typeof x !== 'object') { + return false; + } + try { + mapSize.call(x); + try { + setSize.call(x); + } catch (s) { + return true; + } + return x instanceof Map; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} - if (!value) { - return 'null'; - } +function isWeakMap(x) { + if (!weakMapHas || !x || typeof x !== 'object') { + return false; + } + try { + weakMapHas.call(x, weakMapHas); + try { + weakSetHas.call(x, weakSetHas); + } catch (s) { + return true; + } + return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} -// Make an array to hold the partial results of stringifying this object value. +function isWeakRef(x) { + if (!weakRefDeref || !x || typeof x !== 'object') { + return false; + } + try { + weakRefDeref.call(x); + return true; + } catch (e) {} + return false; +} - gap += indent; - partial = []; +function isSet(x) { + if (!setSize || !x || typeof x !== 'object') { + return false; + } + try { + setSize.call(x); + try { + mapSize.call(x); + } catch (m) { + return true; + } + return x instanceof Set; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} -// Is the value an array? +function isWeakSet(x) { + if (!weakSetHas || !x || typeof x !== 'object') { + return false; + } + try { + weakSetHas.call(x, weakSetHas); + try { + weakMapHas.call(x, weakMapHas); + } catch (s) { + return true; + } + return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} - if (Object.prototype.toString.apply(value) === '[object Array]') { +function isElement(x) { + if (!x || typeof x !== 'object') { return false; } + if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { + return true; + } + return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; +} -// The value is an array. Stringify every element. Use null as a placeholder -// for non-JSON values. +function inspectString(str, opts) { + if (str.length > opts.maxStringLength) { + var remaining = str.length - opts.maxStringLength; + var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); + return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; + } + var quoteRE = quoteREs[opts.quoteStyle || 'single']; + quoteRE.lastIndex = 0; + // eslint-disable-next-line no-control-regex + var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte); + return wrapQuotes(s, 'single', opts); +} - length = value.length; - for (i = 0; i < length; i += 1) { - partial[i] = str(i, value) || 'null'; - } +function lowbyte(c) { + var n = c.charCodeAt(0); + var x = { + 8: 'b', + 9: 't', + 10: 'n', + 12: 'f', + 13: 'r' + }[n]; + if (x) { return '\\' + x; } + return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); +} -// Join all of the elements together, separated with commas, and wrap them in -// brackets. +function markBoxed(str) { + return 'Object(' + str + ')'; +} - v = partial.length === 0 - ? '[]' - : gap - ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' - : '[' + partial.join(',') + ']'; - gap = mind; - return v; - } +function weakCollectionOf(type) { + return type + ' { ? }'; +} -// If the replacer is an array, use it to select the members to be stringified. +function collectionOf(type, size, entries, indent) { + var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); + return type + ' (' + size + ') {' + joinedEntries + '}'; +} - if (rep && typeof rep === 'object') { - length = rep.length; - for (i = 0; i < length; i += 1) { - if (typeof rep[i] === 'string') { - k = rep[i]; - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } else { +function singleLineValues(xs) { + for (var i = 0; i < xs.length; i++) { + if (indexOf(xs[i], '\n') >= 0) { + return false; + } + } + return true; +} -// Otherwise, iterate through all of the keys in the object. +function getIndent(opts, depth) { + var baseIndent; + if (opts.indent === '\t') { + baseIndent = '\t'; + } else if (typeof opts.indent === 'number' && opts.indent > 0) { + baseIndent = $join.call(Array(opts.indent + 1), ' '); + } else { + return null; + } + return { + base: baseIndent, + prev: $join.call(Array(depth + 1), baseIndent) + }; +} - Object.keys(value).forEach(function(k) { - var v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - }); - } +function indentedJoin(xs, indent) { + if (xs.length === 0) { return ''; } + var lineJoiner = '\n' + indent.prev + indent.base; + return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; +} -// Join all of the member texts together, separated with commas, -// and wrap them in braces. +function arrObjKeys(obj, inspect) { + var isArr = isArray(obj); + var xs = []; + if (isArr) { + xs.length = obj.length; + for (var i = 0; i < obj.length; i++) { + xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; + } + } + var syms = typeof gOPS === 'function' ? gOPS(obj) : []; + var symMap; + if (hasShammedSymbols) { + symMap = {}; + for (var k = 0; k < syms.length; k++) { + symMap['$' + syms[k]] = syms[k]; + } + } - v = partial.length === 0 - ? '{}' - : gap - ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' - : '{' + partial.join(',') + '}'; - gap = mind; - return v; + for (var key in obj) { // eslint-disable-line no-restricted-syntax + if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue + if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue + if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { + // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section + continue; // eslint-disable-line no-restricted-syntax, no-continue + } else if ($test.call(/[^\w$]/, key)) { + xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); + } else { + xs.push(key + ': ' + inspect(obj[key], obj)); + } + } + if (typeof gOPS === 'function') { + for (var j = 0; j < syms.length; j++) { + if (isEnumerable.call(obj, syms[j])) { + xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); + } } } + return xs; +} -// If the JSON object does not yet have a stringify method, give it one. - if (typeof JSON.stringify !== 'function') { - JSON.stringify = function (value, replacer, space) { +/***/ }), -// The stringify method takes a value and an optional replacer, and an optional -// space parameter, and returns a JSON text. The replacer can be a function -// that can replace values, or an array of strings that will select the keys. -// A default replacer method can be provided. Use of the space parameter can -// produce text that is more easily readable. +/***/ 14057: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var i; - gap = ''; - indent = ''; +module.exports = __nccwpck_require__(39023).inspect; -// If the space parameter is a number, make an indent string containing that -// many spaces. - if (typeof space === 'number') { - for (i = 0; i < space; i += 1) { - indent += ' '; - } +/***/ }), -// If the space parameter is a string, it will be used as the indent string. +/***/ 67611: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - } else if (typeof space === 'string') { - indent = space; - } +var wrappy = __nccwpck_require__(23751) +module.exports = wrappy(once) +module.exports.strict = wrappy(onceStrict) -// If there is a replacer, it must be a function or an array. -// Otherwise, throw an error. +once.proto = once(function () { + Object.defineProperty(Function.prototype, 'once', { + value: function () { + return once(this) + }, + configurable: true + }) - rep = replacer; - if (replacer && typeof replacer !== 'function' && - (typeof replacer !== 'object' || - typeof replacer.length !== 'number')) { - throw new Error('JSON.stringify'); - } + Object.defineProperty(Function.prototype, 'onceStrict', { + value: function () { + return onceStrict(this) + }, + configurable: true + }) +}) -// Make a fake root object containing our value under the key of ''. -// Return the result of stringifying the value. +function once (fn) { + var f = function () { + if (f.called) return f.value + f.called = true + return f.value = fn.apply(this, arguments) + } + f.called = false + return f +} - return str('', {'': value}); - }; - } -}()); +function onceStrict (fn) { + var f = function () { + if (f.called) + throw new Error(f.onceError) + f.called = true + return f.value = fn.apply(this, arguments) + } + var name = fn.name || 'Function wrapped with `once`' + f.onceError = name + " shouldn't be called more than once" + f.called = false + return f +} /***/ }), -/***/ 63019: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var bufferEqual = __nccwpck_require__(96185); -var Buffer = (__nccwpck_require__(94078).Buffer); -var crypto = __nccwpck_require__(6113); -var formatEcdsa = __nccwpck_require__(27439); -var util = __nccwpck_require__(73837); +/***/ 82782: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".' -var MSG_INVALID_SECRET = 'secret must be a string or buffer'; -var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer'; -var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; +"use strict"; -var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; -if (supportsKeyObjects) { - MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; - MSG_INVALID_SECRET += 'or a KeyObject'; +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.googleProtobufAnyFromProto3JSON = exports.googleProtobufAnyToProto3JSON = void 0; +const fromproto3json_1 = __nccwpck_require__(95087); +const toproto3json_1 = __nccwpck_require__(72714); +// https://github.com/protocolbuffers/protobuf/blob/ba3836703b4a9e98e474aea2bac8c5b49b6d3b5c/python/google/protobuf/json_format.py#L850 +const specialJSON = new Set([ + 'google.protobuf.Any', + 'google.protobuf.Duration', + 'google.protobuf.FieldMask', + 'google.protobuf.ListValue', + 'google.protobuf.Struct', + 'google.protobuf.Timestamp', + 'google.protobuf.Value', +]); +function googleProtobufAnyToProto3JSON(obj, options) { + // https://developers.google.com/protocol-buffers/docs/proto3#json + // If the Any contains a value that has a special JSON mapping, it will be converted as follows: + // {"@type": xxx, "value": yyy}. + // Otherwise, the value will be converted into a JSON object, and the "@type" field will be inserted + // to indicate the actual data type. + const typeName = obj.type_url.replace(/^.*\//, ''); + let type; + try { + type = obj.$type.root.lookupType(typeName); + } + catch (err) { + throw new Error(`googleProtobufAnyToProto3JSON: cannot find type ${typeName}: ${err}`); + } + const valueMessage = type.decode(obj.value); + const valueProto3JSON = (0, toproto3json_1.toProto3JSON)(valueMessage, options); + if (specialJSON.has(typeName)) { + return { + '@type': obj.type_url, + value: valueProto3JSON, + }; + } + valueProto3JSON['@type'] = obj.type_url; + return valueProto3JSON; } +exports.googleProtobufAnyToProto3JSON = googleProtobufAnyToProto3JSON; +function googleProtobufAnyFromProto3JSON(root, json) { + // Not all possible JSON values can hold Any, only real objects. + if (json === null || typeof json !== 'object' || Array.isArray(json)) { + throw new Error('googleProtobufAnyFromProto3JSON: must be an object to decode google.protobuf.Any'); + } + const typeUrl = json['@type']; + if (!typeUrl || typeof typeUrl !== 'string') { + throw new Error('googleProtobufAnyFromProto3JSON: JSON serialization of google.protobuf.Any must contain @type field'); + } + const typeName = typeUrl.replace(/^.*\//, ''); + let type; + try { + type = root.lookupType(typeName); + } + catch (err) { + throw new Error(`googleProtobufAnyFromProto3JSON: cannot find type ${typeName}: ${err}`); + } + let value = json; + if (specialJSON.has(typeName)) { + if (!('value' in json)) { + throw new Error(`googleProtobufAnyFromProto3JSON: JSON representation of google.protobuf.Any with type ${typeName} must contain the value field`); + } + value = json.value; + } + const valueMessage = (0, fromproto3json_1.fromProto3JSON)(type, value); + if (valueMessage === null) { + return { + type_url: typeUrl, + value: null, + }; + } + const uint8array = type.encode(valueMessage).finish(); + const buffer = Buffer.from(uint8array, 0, uint8array.byteLength); + const base64 = buffer.toString('base64'); + return { + type_url: typeUrl, + value: base64, + }; +} +exports.googleProtobufAnyFromProto3JSON = googleProtobufAnyFromProto3JSON; +//# sourceMappingURL=any.js.map -function checkIsPublicKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - - if (typeof key === 'string') { - return; - } +/***/ }), - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } +/***/ 31907: +/***/ ((__unused_webpack_module, exports) => { - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } +"use strict"; - if (typeof key.type !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bytesFromProto3JSON = exports.bytesToProto3JSON = void 0; +function bytesToProto3JSON(obj) { + if (Buffer.isBuffer(obj)) { + return obj.toString('base64'); + } + else { + return Buffer.from(obj.buffer, 0, obj.byteLength).toString('base64'); + } +} +exports.bytesToProto3JSON = bytesToProto3JSON; +function bytesFromProto3JSON(json) { + return Buffer.from(json, 'base64'); +} +exports.bytesFromProto3JSON = bytesFromProto3JSON; +//# sourceMappingURL=bytes.js.map - if (typeof key.asymmetricKeyType !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } +/***/ }), - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } -}; +/***/ 99686: +/***/ ((__unused_webpack_module, exports) => { -function checkIsPrivateKey(key) { - if (Buffer.isBuffer(key)) { - return; - } +"use strict"; - if (typeof key === 'string') { - return; - } +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.googleProtobufDurationFromProto3JSON = exports.googleProtobufDurationToProto3JSON = void 0; +function googleProtobufDurationToProto3JSON(obj) { + // seconds is an instance of Long so it won't be undefined + let durationSeconds = obj.seconds.toString(); + if (typeof obj.nanos === 'number' && obj.nanos > 0) { + // nanosStr should contain 3, 6, or 9 fractional digits. + const nanosStr = obj.nanos + .toString() + .padStart(9, '0') + .replace(/^((?:\d\d\d)+?)(?:0*)$/, '$1'); + durationSeconds += '.' + nanosStr; + } + durationSeconds += 's'; + return durationSeconds; +} +exports.googleProtobufDurationToProto3JSON = googleProtobufDurationToProto3JSON; +function googleProtobufDurationFromProto3JSON(json) { + const match = json.match(/^(\d*)(?:\.(\d*))?s$/); + if (!match) { + throw new Error(`googleProtobufDurationFromProto3JSON: incorrect value ${json} passed as google.protobuf.Duration`); + } + let seconds = 0; + let nanos = 0; + if (typeof match[1] === 'string' && match[1].length > 0) { + seconds = parseInt(match[1]); + } + if (typeof match[2] === 'string' && match[2].length > 0) { + nanos = parseInt(match[2].padEnd(9, '0')); + } + const result = {}; + if (seconds !== 0) { + result.seconds = seconds; + } + if (nanos !== 0) { + result.nanos = nanos; + } + return result; +} +exports.googleProtobufDurationFromProto3JSON = googleProtobufDurationFromProto3JSON; +//# sourceMappingURL=duration.js.map - if (typeof key === 'object') { - return; - } +/***/ }), - throw typeError(MSG_INVALID_SIGNER_KEY); -}; +/***/ 89167: +/***/ ((__unused_webpack_module, exports) => { -function checkIsSecretKey(key) { - if (Buffer.isBuffer(key)) { - return; - } +"use strict"; - if (typeof key === 'string') { - return key; - } +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveEnumValueToNumber = exports.resolveEnumValueToString = void 0; +function resolveEnumValueToString(enumType, enumValue) { + // for unknown enum values, do not fail and try to do the best we could. + // protobuf.js fromObject() will likely ignore unknown values, but at least + // we won't fail. + if (typeof enumValue === 'number') { + const value = enumType.valuesById[enumValue]; + if (typeof value === 'undefined') { + // unknown value, cannot convert to string, returning number as is + return enumValue; + } + return value; + } + if (typeof enumValue === 'string') { + // for strings, just accept what we got + return enumValue; + } + throw new Error('resolveEnumValueToString: enum value must be a string or a number'); +} +exports.resolveEnumValueToString = resolveEnumValueToString; +function resolveEnumValueToNumber(enumType, enumValue) { + if (typeof enumValue === 'number') { + // return as is + return enumValue; + } + if (typeof enumValue === 'string') { + const num = enumType.values[enumValue]; + if (typeof num === 'undefined') { + // unknown value, cannot convert to number, returning string as is + return enumValue; + } + return num; + } + throw new Error('resolveEnumValueToNumber: enum value must be a string or a number'); +} +exports.resolveEnumValueToNumber = resolveEnumValueToNumber; +//# sourceMappingURL=enum.js.map - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_SECRET); - } +/***/ }), - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_SECRET); - } +/***/ 88536: +/***/ ((__unused_webpack_module, exports) => { - if (key.type !== 'secret') { - throw typeError(MSG_INVALID_SECRET); - } +"use strict"; - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_SECRET); - } +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.googleProtobufFieldMaskFromProto3JSON = exports.googleProtobufFieldMaskToProto3JSON = void 0; +function googleProtobufFieldMaskToProto3JSON(obj) { + return obj.paths.join(','); } - -function fromBase64(base64) { - return base64 - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); +exports.googleProtobufFieldMaskToProto3JSON = googleProtobufFieldMaskToProto3JSON; +function googleProtobufFieldMaskFromProto3JSON(json) { + return { + paths: json.split(','), + }; } +exports.googleProtobufFieldMaskFromProto3JSON = googleProtobufFieldMaskFromProto3JSON; +//# sourceMappingURL=fieldmask.js.map -function toBase64(base64url) { - base64url = base64url.toString(); +/***/ }), - var padding = 4 - base64url.length % 4; - if (padding !== 4) { - for (var i = 0; i < padding; ++i) { - base64url += '='; - } - } +/***/ 95087: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return base64url - .replace(/\-/g, '+') - .replace(/_/g, '/'); -} +"use strict"; -function typeError(template) { - var args = [].slice.call(arguments, 1); - var errMsg = util.format.bind(util, template).apply(null, args); - return new TypeError(errMsg); +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromProto3JSON = exports.fromProto3JSONToInternalRepresentation = void 0; +const any_1 = __nccwpck_require__(82782); +const bytes_1 = __nccwpck_require__(31907); +const enum_1 = __nccwpck_require__(89167); +const value_1 = __nccwpck_require__(38101); +const util_1 = __nccwpck_require__(6682); +const duration_1 = __nccwpck_require__(99686); +const timestamp_1 = __nccwpck_require__(67608); +const wrappers_1 = __nccwpck_require__(65145); +const fieldmask_1 = __nccwpck_require__(88536); +function fromProto3JSONToInternalRepresentation(type, json) { + const fullyQualifiedTypeName = typeof type === 'string' ? type : (0, util_1.getFullyQualifiedTypeName)(type); + if (typeof type !== 'string' && 'values' in type) { + // type is an Enum + if (fullyQualifiedTypeName === '.google.protobuf.NullValue') { + return 'NULL_VALUE'; + } + return (0, enum_1.resolveEnumValueToString)(type, json); + } + if (typeof type !== 'string') { + type.resolveAll(); + } + if (typeof type === 'string') { + return json; + } + // Types that require special handling according to + // https://developers.google.com/protocol-buffers/docs/proto3#json + // Types that can have meaningful "null" value + if (fullyQualifiedTypeName === '.google.protobuf.Value') { + return (0, value_1.googleProtobufValueFromProto3JSON)(json); + } + if (util_1.wrapperTypes.has(fullyQualifiedTypeName)) { + if ((json !== null && typeof json === 'object') || Array.isArray(json)) { + throw new Error(`fromProto3JSONToInternalRepresentation: JSON representation for ${fullyQualifiedTypeName} expects a string, a number, or a boolean, but got ${typeof json}`); + } + return (0, wrappers_1.wrapperFromProto3JSON)(fullyQualifiedTypeName, json); + } + if (json === null) { + return null; + } + // Types that cannot be "null" + if (fullyQualifiedTypeName === '.google.protobuf.Any') { + return (0, any_1.googleProtobufAnyFromProto3JSON)(type.root, json); + } + if (fullyQualifiedTypeName === '.google.protobuf.Struct') { + if (typeof json !== 'object') { + throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.Struct must be an object but got ${typeof json}`); + } + if (Array.isArray(json)) { + throw new Error('fromProto3JSONToInternalRepresentation: google.protobuf.Struct must be an object but got an array'); + } + return (0, value_1.googleProtobufStructFromProto3JSON)(json); + } + if (fullyQualifiedTypeName === '.google.protobuf.ListValue') { + if (!Array.isArray(json)) { + throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.ListValue must be an array but got ${typeof json}`); + } + return (0, value_1.googleProtobufListValueFromProto3JSON)(json); + } + if (fullyQualifiedTypeName === '.google.protobuf.Duration') { + if (typeof json !== 'string') { + throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.Duration must be a string but got ${typeof json}`); + } + return (0, duration_1.googleProtobufDurationFromProto3JSON)(json); + } + if (fullyQualifiedTypeName === '.google.protobuf.Timestamp') { + if (typeof json !== 'string') { + throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.Timestamp must be a string but got ${typeof json}`); + } + return (0, timestamp_1.googleProtobufTimestampFromProto3JSON)(json); + } + if (fullyQualifiedTypeName === '.google.protobuf.FieldMask') { + if (typeof json !== 'string') { + throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.FieldMask must be a string but got ${typeof json}`); + } + return (0, fieldmask_1.googleProtobufFieldMaskFromProto3JSON)(json); + } + const result = {}; + for (const [key, value] of Object.entries(json)) { + const field = type.fields[key]; + if (!field) { + continue; + } + const resolvedType = field.resolvedType; + const fieldType = field.type; + if (field.repeated) { + if (value === null) { + result[key] = []; + } + else { + if (!Array.isArray(value)) { + throw new Error(`fromProto3JSONToInternalRepresentation: expected an array for field ${key}`); + } + result[key] = value.map(element => fromProto3JSONToInternalRepresentation(resolvedType || fieldType, element)); + } + } + else if (field.map) { + const map = {}; + for (const [mapKey, mapValue] of Object.entries(value)) { + map[mapKey] = fromProto3JSONToInternalRepresentation(resolvedType || fieldType, mapValue); + } + result[key] = map; + } + else if (fieldType.match(/^(?:(?:(?:u?int|fixed)(?:32|64))|float|double)$/)) { + if (typeof value !== 'number' && typeof value !== 'string') { + throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); + } + result[key] = value; + } + else if (fieldType === 'string') { + if (typeof value !== 'string') { + throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); + } + result[key] = value; + } + else if (fieldType === 'bool') { + if (typeof value !== 'boolean') { + throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); + } + result[key] = value; + } + else if (fieldType === 'bytes') { + if (typeof value !== 'string') { + throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); + } + result[key] = (0, bytes_1.bytesFromProto3JSON)(value); + } + else { + // Message type + (0, util_1.assert)(resolvedType !== null, `Expected to be able to resolve type for field ${field.name}`); + const deserializedValue = fromProto3JSONToInternalRepresentation(resolvedType, value); + result[key] = deserializedValue; + } + } + return result; } - -function bufferOrString(obj) { - return Buffer.isBuffer(obj) || typeof obj === 'string'; +exports.fromProto3JSONToInternalRepresentation = fromProto3JSONToInternalRepresentation; +function fromProto3JSON(type, json) { + const internalRepr = fromProto3JSONToInternalRepresentation(type, json); + if (internalRepr === null) { + return null; + } + // We only expect a real object here sine all special cases should be already resolved. Everything else is an internal error + (0, util_1.assert)(typeof internalRepr === 'object' && !Array.isArray(internalRepr), `fromProto3JSON: expected an object, not ${json}`); + return type.fromObject(internalRepr); } +exports.fromProto3JSON = fromProto3JSON; +//# sourceMappingURL=fromproto3json.js.map -function normalizeInput(thing) { - if (!bufferOrString(thing)) - thing = JSON.stringify(thing); - return thing; -} +/***/ }), -function createHmacSigner(bits) { - return function sign(thing, secret) { - checkIsSecretKey(secret); - thing = normalizeInput(thing); - var hmac = crypto.createHmac('sha' + bits, secret); - var sig = (hmac.update(thing), hmac.digest('base64')) - return fromBase64(sig); - } -} +/***/ 75728: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function createHmacVerifier(bits) { - return function verify(thing, signature, secret) { - var computedSig = createHmacSigner(bits)(thing, secret); - return bufferEqual(Buffer.from(signature), Buffer.from(computedSig)); - } -} +"use strict"; -function createKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - // Even though we are specifying "RSA" here, this works with ECDSA - // keys as well. - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign(privateKey, 'base64')); - return fromBase64(sig); - } -} +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromProto3JSON = exports.toProto3JSON = void 0; +var toproto3json_1 = __nccwpck_require__(72714); +Object.defineProperty(exports, "toProto3JSON", ({ enumerable: true, get: function () { return toproto3json_1.toProto3JSON; } })); +var fromproto3json_1 = __nccwpck_require__(95087); +Object.defineProperty(exports, "fromProto3JSON", ({ enumerable: true, get: function () { return fromproto3json_1.fromProto3JSON; } })); +//# sourceMappingURL=index.js.map -function createKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify(publicKey, signature, 'base64'); - } -} +/***/ }), -function createPSSKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign({ - key: privateKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, 'base64')); - return fromBase64(sig); - } -} +/***/ 67608: +/***/ ((__unused_webpack_module, exports) => { -function createPSSKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify({ - key: publicKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, signature, 'base64'); - } -} +"use strict"; -function createECDSASigner(bits) { - var inner = createKeySigner(bits); - return function sign() { - var signature = inner.apply(null, arguments); - signature = formatEcdsa.derToJose(signature, 'ES' + bits); - return signature; - }; +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.googleProtobufTimestampFromProto3JSON = exports.googleProtobufTimestampToProto3JSON = void 0; +function googleProtobufTimestampToProto3JSON(obj) { + var _a; + // seconds is an instance of Long so it won't be undefined + const durationSeconds = obj.seconds; + const date = new Date(durationSeconds * 1000).toISOString(); + // Pad leading zeros if nano string length is less than 9. + let nanos = (_a = obj.nanos) === null || _a === void 0 ? void 0 : _a.toString().padStart(9, '0'); + // Trim the unsignificant zeros and keep 3, 6, or 9 decimal digits. + while (nanos && nanos.length > 3 && nanos.endsWith('000')) { + nanos = nanos.slice(0, -3); + } + return date.replace(/(?:\.\d{0,9})/, '.' + nanos); } - -function createECDSAVerifer(bits) { - var inner = createKeyVerifier(bits); - return function verify(thing, signature, publicKey) { - signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64'); - var result = inner(thing, signature, publicKey); +exports.googleProtobufTimestampToProto3JSON = googleProtobufTimestampToProto3JSON; +function googleProtobufTimestampFromProto3JSON(json) { + const match = json.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?/); + if (!match) { + throw new Error(`googleProtobufDurationFromProto3JSON: incorrect value ${json} passed as google.protobuf.Duration`); + } + const date = new Date(json); + const millisecondsSinceEpoch = date.getTime(); + const seconds = Math.floor(millisecondsSinceEpoch / 1000); + // The fractional seconds in the JSON timestamps can go up to 9 digits (i.e. up to 1 nanosecond resolution). + // However, Javascript Date object represent any date and time to millisecond precision. + // To keep the precision, we extract the fractional seconds and append 0 until the length is equal to 9. + let nanos = 0; + const secondsFromDate = json.split('.')[1]; + if (secondsFromDate) { + nanos = parseInt(secondsFromDate.slice(0, -1).padEnd(9, '0')); + } + const result = {}; + if (seconds !== 0) { + result.seconds = seconds; + } + if (nanos !== 0) { + result.nanos = nanos; + } return result; - }; } +exports.googleProtobufTimestampFromProto3JSON = googleProtobufTimestampFromProto3JSON; +//# sourceMappingURL=timestamp.js.map -function createNoneSigner() { - return function sign() { - return ''; - } +/***/ }), + +/***/ 72714: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toProto3JSON = void 0; +const any_1 = __nccwpck_require__(82782); +const bytes_1 = __nccwpck_require__(31907); +const util_1 = __nccwpck_require__(6682); +const enum_1 = __nccwpck_require__(89167); +const value_1 = __nccwpck_require__(38101); +const duration_1 = __nccwpck_require__(99686); +const timestamp_1 = __nccwpck_require__(67608); +const wrappers_1 = __nccwpck_require__(65145); +const fieldmask_1 = __nccwpck_require__(88536); +// Convert a single value, which might happen to be an instance of Long, to JSONValue +function convertSingleValue(value) { + var _a; + if (typeof value === 'object') { + if (((_a = value === null || value === void 0 ? void 0 : value.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'Long') { + return value.toString(); + } + throw new Error(`toProto3JSON: don't know how to convert value ${value}`); + } + return value; +} +function toProto3JSON(obj, options) { + const objType = obj.$type; + if (!objType) { + throw new Error('Cannot serialize object to proto3 JSON since its .$type is unknown. Use Type.fromObject(obj) before calling toProto3JSON.'); + } + objType.resolveAll(); + const typeName = (0, util_1.getFullyQualifiedTypeName)(objType); + // Types that require special handling according to + // https://developers.google.com/protocol-buffers/docs/proto3#json + if (typeName === '.google.protobuf.Any') { + return (0, any_1.googleProtobufAnyToProto3JSON)(obj, options); + } + if (typeName === '.google.protobuf.Value') { + return (0, value_1.googleProtobufValueToProto3JSON)(obj); + } + if (typeName === '.google.protobuf.Struct') { + return (0, value_1.googleProtobufStructToProto3JSON)(obj); + } + if (typeName === '.google.protobuf.ListValue') { + return (0, value_1.googleProtobufListValueToProto3JSON)(obj); + } + if (typeName === '.google.protobuf.Duration') { + return (0, duration_1.googleProtobufDurationToProto3JSON)(obj); + } + if (typeName === '.google.protobuf.Timestamp') { + return (0, timestamp_1.googleProtobufTimestampToProto3JSON)(obj); + } + if (typeName === '.google.protobuf.FieldMask') { + return (0, fieldmask_1.googleProtobufFieldMaskToProto3JSON)(obj); + } + if (util_1.wrapperTypes.has(typeName)) { + return (0, wrappers_1.wrapperToProto3JSON)(obj); + } + const result = {}; + for (const [key, value] of Object.entries(obj)) { + const field = objType.fields[key]; + const fieldResolvedType = field.resolvedType; + const fieldFullyQualifiedTypeName = fieldResolvedType + ? (0, util_1.getFullyQualifiedTypeName)(fieldResolvedType) + : null; + if (value === null) { + result[key] = null; + continue; + } + if (Array.isArray(value)) { + if (value.length === 0) { + // ignore repeated fields with no values + continue; + } + // if the repeated value has a complex type, convert it to proto3 JSON, otherwise use as is + result[key] = value.map(fieldResolvedType + ? element => { + return toProto3JSON(element, options); + } + : convertSingleValue); + continue; + } + if (field.map) { + const map = {}; + for (const [mapKey, mapValue] of Object.entries(value)) { + // if the map value has a complex type, convert it to proto3 JSON, otherwise use as is + map[mapKey] = fieldResolvedType + ? toProto3JSON(mapValue, options) + : convertSingleValue(mapValue); + } + result[key] = map; + continue; + } + if (fieldFullyQualifiedTypeName === '.google.protobuf.NullValue') { + result[key] = null; + continue; + } + if (fieldResolvedType && 'values' in fieldResolvedType && value !== null) { + if (options === null || options === void 0 ? void 0 : options.numericEnums) { + result[key] = (0, enum_1.resolveEnumValueToNumber)(fieldResolvedType, value); + } + else { + result[key] = (0, enum_1.resolveEnumValueToString)(fieldResolvedType, value); + } + continue; + } + if (fieldResolvedType) { + result[key] = toProto3JSON(value, options); + continue; + } + if (typeof value === 'string' || + typeof value === 'number' || + typeof value === 'boolean' || + value === null) { + if (typeof value === 'number' && !Number.isFinite(value)) { + result[key] = value.toString(); + continue; + } + result[key] = value; + continue; + } + if (Buffer.isBuffer(value) || value instanceof Uint8Array) { + result[key] = (0, bytes_1.bytesToProto3JSON)(value); + continue; + } + result[key] = convertSingleValue(value); + continue; + } + return result; } +exports.toProto3JSON = toProto3JSON; +//# sourceMappingURL=toproto3json.js.map -function createNoneVerifier() { - return function verify(thing, signature) { - return signature === ''; - } -} +/***/ }), -module.exports = function jwa(algorithm) { - var signerFactories = { - hs: createHmacSigner, - rs: createKeySigner, - ps: createPSSKeySigner, - es: createECDSASigner, - none: createNoneSigner, - } - var verifierFactories = { - hs: createHmacVerifier, - rs: createKeyVerifier, - ps: createPSSKeyVerifier, - es: createECDSAVerifer, - none: createNoneVerifier, - } - var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); - if (!match) - throw typeError(MSG_INVALID_ALGORITHM, algorithm); - var algo = (match[1] || match[3]).toLowerCase(); - var bits = match[2]; +/***/ 6682: +/***/ ((__unused_webpack_module, exports) => { - return { - sign: signerFactories[algo](bits), - verify: verifierFactories[algo](bits), - } -}; +"use strict"; +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.assert = exports.wrapperTypes = exports.getFullyQualifiedTypeName = void 0; +function getFullyQualifiedTypeName(type) { + // We assume that the protobuf package tree cannot have cycles. + let fullyQualifiedTypeName = ''; + while (type.parent) { + fullyQualifiedTypeName = `.${type.name}${fullyQualifiedTypeName}`; + type = type.parent; + } + return fullyQualifiedTypeName; +} +exports.getFullyQualifiedTypeName = getFullyQualifiedTypeName; +exports.wrapperTypes = new Set([ + '.google.protobuf.DoubleValue', + '.google.protobuf.FloatValue', + '.google.protobuf.Int64Value', + '.google.protobuf.UInt64Value', + '.google.protobuf.Int32Value', + '.google.protobuf.UInt32Value', + '.google.protobuf.BoolValue', + '.google.protobuf.StringValue', + '.google.protobuf.BytesValue', +]); +function assert(assertion, message) { + if (!assertion) { + throw new Error(message); + } +} +exports.assert = assert; +//# sourceMappingURL=util.js.map /***/ }), -/***/ 40958: +/***/ 38101: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/*global exports*/ -var SignStream = __nccwpck_require__(69356); -var VerifyStream = __nccwpck_require__(98001); - -var ALGORITHMS = [ - 'HS256', 'HS384', 'HS512', - 'RS256', 'RS384', 'RS512', - 'PS256', 'PS384', 'PS512', - 'ES256', 'ES384', 'ES512' -]; - -exports.ALGORITHMS = ALGORITHMS; -exports.sign = SignStream.sign; -exports.verify = VerifyStream.verify; -exports.decode = VerifyStream.decode; -exports.isValid = VerifyStream.isValid; -exports.createSign = function createSign(opts) { - return new SignStream(opts); -}; -exports.createVerify = function createVerify(opts) { - return new VerifyStream(opts); -}; +"use strict"; +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.googleProtobufValueFromProto3JSON = exports.googleProtobufListValueFromProto3JSON = exports.googleProtobufStructFromProto3JSON = exports.googleProtobufValueToProto3JSON = exports.googleProtobufListValueToProto3JSON = exports.googleProtobufStructToProto3JSON = void 0; +const util_1 = __nccwpck_require__(6682); +function googleProtobufStructToProto3JSON(obj) { + const result = {}; + const fields = obj.fields; + for (const [key, value] of Object.entries(fields)) { + result[key] = googleProtobufValueToProto3JSON(value); + } + return result; +} +exports.googleProtobufStructToProto3JSON = googleProtobufStructToProto3JSON; +function googleProtobufListValueToProto3JSON(obj) { + (0, util_1.assert)(Array.isArray(obj.values), 'ListValue internal representation must contain array of values'); + return obj.values.map(googleProtobufValueToProto3JSON); +} +exports.googleProtobufListValueToProto3JSON = googleProtobufListValueToProto3JSON; +function googleProtobufValueToProto3JSON(obj) { + if (Object.prototype.hasOwnProperty.call(obj, 'nullValue')) { + return null; + } + if (Object.prototype.hasOwnProperty.call(obj, 'numberValue') && + typeof obj.numberValue === 'number') { + if (!Number.isFinite(obj.numberValue)) { + return obj.numberValue.toString(); + } + return obj.numberValue; + } + if (Object.prototype.hasOwnProperty.call(obj, 'stringValue') && + typeof obj.stringValue === 'string') { + return obj.stringValue; + } + if (Object.prototype.hasOwnProperty.call(obj, 'boolValue') && + typeof obj.boolValue === 'boolean') { + return obj.boolValue; + } + if (Object.prototype.hasOwnProperty.call(obj, 'structValue') && + typeof obj.structValue === 'object') { + return googleProtobufStructToProto3JSON(obj.structValue); + } + if (Object.prototype.hasOwnProperty.call(obj, 'listValue') && + typeof obj === 'object' && + typeof obj.listValue === 'object') { + return googleProtobufListValueToProto3JSON(obj.listValue); + } + // Assuming empty Value to be null + return null; +} +exports.googleProtobufValueToProto3JSON = googleProtobufValueToProto3JSON; +function googleProtobufStructFromProto3JSON(json) { + const fields = {}; + for (const [key, value] of Object.entries(json)) { + fields[key] = googleProtobufValueFromProto3JSON(value); + } + return { fields }; +} +exports.googleProtobufStructFromProto3JSON = googleProtobufStructFromProto3JSON; +function googleProtobufListValueFromProto3JSON(json) { + return { + values: json.map(element => googleProtobufValueFromProto3JSON(element)), + }; +} +exports.googleProtobufListValueFromProto3JSON = googleProtobufListValueFromProto3JSON; +function googleProtobufValueFromProto3JSON(json) { + if (json === null) { + return { nullValue: 'NULL_VALUE' }; + } + if (typeof json === 'number') { + return { numberValue: json }; + } + if (typeof json === 'string') { + return { stringValue: json }; + } + if (typeof json === 'boolean') { + return { boolValue: json }; + } + if (Array.isArray(json)) { + return { + listValue: googleProtobufListValueFromProto3JSON(json), + }; + } + if (typeof json === 'object') { + return { + structValue: googleProtobufStructFromProto3JSON(json), + }; + } + throw new Error(`googleProtobufValueFromProto3JSON: incorrect parameter type: ${typeof json}`); +} +exports.googleProtobufValueFromProto3JSON = googleProtobufValueFromProto3JSON; +//# sourceMappingURL=value.js.map /***/ }), -/***/ 99775: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 65145: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/*global module, process*/ -var Buffer = (__nccwpck_require__(94078).Buffer); -var Stream = __nccwpck_require__(12781); -var util = __nccwpck_require__(73837); +"use strict"; -function DataStream(data) { - this.buffer = null; - this.writable = true; - this.readable = true; +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.wrapperFromProto3JSON = exports.wrapperToProto3JSON = void 0; +const bytes_1 = __nccwpck_require__(31907); +const util_1 = __nccwpck_require__(6682); +function wrapperToProto3JSON(obj) { + if (!Object.prototype.hasOwnProperty.call(obj, 'value')) { + return null; + } + if (Buffer.isBuffer(obj.value) || obj.value instanceof Uint8Array) { + return (0, bytes_1.bytesToProto3JSON)(obj.value); + } + if (typeof obj.value === 'object') { + (0, util_1.assert)(obj.value.constructor.name === 'Long', `wrapperToProto3JSON: expected to see a number, a string, a boolean, or a Long, but got ${obj.value}`); + return obj.value.toString(); + } + // JSON accept special string values "NaN", "Infinity", and "-Infinity". + if (typeof obj.value === 'number' && !Number.isFinite(obj.value)) { + return obj.value.toString(); + } + return obj.value; +} +exports.wrapperToProto3JSON = wrapperToProto3JSON; +function wrapperFromProto3JSON(typeName, json) { + if (json === null) { + return { + value: null, + }; + } + if (typeName === '.google.protobuf.BytesValue') { + if (typeof json !== 'string') { + throw new Error(`numberWrapperFromProto3JSON: expected to get a string for google.protobuf.BytesValue but got ${typeof json}`); + } + return { + value: (0, bytes_1.bytesFromProto3JSON)(json), + }; + } + return { + value: json, + }; +} +exports.wrapperFromProto3JSON = wrapperFromProto3JSON; +//# sourceMappingURL=wrappers.js.map - // No input - if (!data) { - this.buffer = Buffer.alloc(0); - return this; - } +/***/ }), - // Stream - if (typeof data.pipe === 'function') { - this.buffer = Buffer.alloc(0); - data.pipe(this); - return this; - } +/***/ 48939: +/***/ ((module, exports, __nccwpck_require__) => { - // Buffer or String - // or Object (assumedly a passworded key) - if (data.length || typeof data === 'object') { - this.buffer = data; - this.writable = false; - process.nextTick(function () { - this.emit('end', data); - this.readable = false; - this.emit('close'); - }.bind(this)); - return this; - } +"use strict"; - throw new TypeError('Unexpected data type ('+ typeof data + ')'); -} -util.inherits(DataStream, Stream); +var $protobuf = __nccwpck_require__(85321); +module.exports = exports = $protobuf.descriptor = $protobuf.Root.fromJSON(__nccwpck_require__(93951)).lookup(".google.protobuf"); -DataStream.prototype.write = function write(data) { - this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); - this.emit('data', data); +var Namespace = $protobuf.Namespace, + Root = $protobuf.Root, + Enum = $protobuf.Enum, + Type = $protobuf.Type, + Field = $protobuf.Field, + MapField = $protobuf.MapField, + OneOf = $protobuf.OneOf, + Service = $protobuf.Service, + Method = $protobuf.Method; + +// --- Root --- + +/** + * Properties of a FileDescriptorSet message. + * @interface IFileDescriptorSet + * @property {IFileDescriptorProto[]} file Files + */ + +/** + * Properties of a FileDescriptorProto message. + * @interface IFileDescriptorProto + * @property {string} [name] File name + * @property {string} [package] Package + * @property {*} [dependency] Not supported + * @property {*} [publicDependency] Not supported + * @property {*} [weakDependency] Not supported + * @property {IDescriptorProto[]} [messageType] Nested message types + * @property {IEnumDescriptorProto[]} [enumType] Nested enums + * @property {IServiceDescriptorProto[]} [service] Nested services + * @property {IFieldDescriptorProto[]} [extension] Nested extension fields + * @property {IFileOptions} [options] Options + * @property {*} [sourceCodeInfo] Not supported + * @property {string} [syntax="proto2"] Syntax + * @property {IEdition} [edition] Edition + */ + +/** + * Values of the Edition enum. + * @typedef IEdition + * @type {number} + * @property {number} EDITION_UNKNOWN=0 + * @property {number} EDITION_LEGACY=900 + * @property {number} EDITION_PROTO2=998 + * @property {number} EDITION_PROTO3=999 + * @property {number} EDITION_2023=1000 + * @property {number} EDITION_2024=1001 + * @property {number} EDITION_1_TEST_ONLY=1 + * @property {number} EDITION_2_TEST_ONLY=2 + * @property {number} EDITION_99997_TEST_ONLY=99997 + * @property {number} EDITION_99998_TEST_ONLY=99998 + * @property {number} EDITION_99998_TEST_ONLY=99999 + * @property {number} EDITION_MAX=2147483647 + */ + +/** + * Properties of a FileOptions message. + * @interface IFileOptions + * @property {string} [javaPackage] + * @property {string} [javaOuterClassname] + * @property {boolean} [javaMultipleFiles] + * @property {boolean} [javaGenerateEqualsAndHash] + * @property {boolean} [javaStringCheckUtf8] + * @property {IFileOptionsOptimizeMode} [optimizeFor=1] + * @property {string} [goPackage] + * @property {boolean} [ccGenericServices] + * @property {boolean} [javaGenericServices] + * @property {boolean} [pyGenericServices] + * @property {boolean} [deprecated] + * @property {boolean} [ccEnableArenas] + * @property {string} [objcClassPrefix] + * @property {string} [csharpNamespace] + */ + +/** + * Values of he FileOptions.OptimizeMode enum. + * @typedef IFileOptionsOptimizeMode + * @type {number} + * @property {number} SPEED=1 + * @property {number} CODE_SIZE=2 + * @property {number} LITE_RUNTIME=3 + */ + +/** + * Creates a root from a descriptor set. + * @param {IFileDescriptorSet|Reader|Uint8Array} descriptor Descriptor + * @returns {Root} Root instance + */ +Root.fromDescriptor = function fromDescriptor(descriptor) { + + // Decode the descriptor message if specified as a buffer: + if (typeof descriptor.length === "number") + descriptor = exports.FileDescriptorSet.decode(descriptor); + + var root = new Root(); + + if (descriptor.file) { + var fileDescriptor, + filePackage; + for (var j = 0, i; j < descriptor.file.length; ++j) { + filePackage = root; + if ((fileDescriptor = descriptor.file[j])["package"] && fileDescriptor["package"].length) + filePackage = root.define(fileDescriptor["package"]); + var edition = editionFromDescriptor(fileDescriptor); + if (fileDescriptor.name && fileDescriptor.name.length) + root.files.push(filePackage.filename = fileDescriptor.name); + if (fileDescriptor.messageType) + for (i = 0; i < fileDescriptor.messageType.length; ++i) + filePackage.add(Type.fromDescriptor(fileDescriptor.messageType[i], edition)); + if (fileDescriptor.enumType) + for (i = 0; i < fileDescriptor.enumType.length; ++i) + filePackage.add(Enum.fromDescriptor(fileDescriptor.enumType[i], edition)); + if (fileDescriptor.extension) + for (i = 0; i < fileDescriptor.extension.length; ++i) + filePackage.add(Field.fromDescriptor(fileDescriptor.extension[i], edition)); + if (fileDescriptor.service) + for (i = 0; i < fileDescriptor.service.length; ++i) + filePackage.add(Service.fromDescriptor(fileDescriptor.service[i], edition)); + var opts = fromDescriptorOptions(fileDescriptor.options, exports.FileOptions); + if (opts) { + var ks = Object.keys(opts); + for (i = 0; i < ks.length; ++i) + filePackage.setOption(ks[i], opts[ks[i]]); + } + } + } + + return root.resolveAll(); }; -DataStream.prototype.end = function end(data) { - if (data) - this.write(data); - this.emit('end', data); - this.emit('close'); - this.writable = false; - this.readable = false; +/** + * Converts a root to a descriptor set. + * @returns {Message} Descriptor + * @param {string} [edition="proto2"] The syntax or edition to use + */ +Root.prototype.toDescriptor = function toDescriptor(edition) { + var set = exports.FileDescriptorSet.create(); + Root_toDescriptorRecursive(this, set.file, edition); + return set; }; -module.exports = DataStream; +// Traverses a namespace and assembles the descriptor set +function Root_toDescriptorRecursive(ns, files, edition) { + + // Create a new file + var file = exports.FileDescriptorProto.create({ name: ns.filename || (ns.fullName.substring(1).replace(/\./g, "_") || "root") + ".proto" }); + editionToDescriptor(edition, file); + if (!(ns instanceof Root)) + file["package"] = ns.fullName.substring(1); + + // Add nested types + for (var i = 0, nested; i < ns.nestedArray.length; ++i) + if ((nested = ns._nestedArray[i]) instanceof Type) + file.messageType.push(nested.toDescriptor(edition)); + else if (nested instanceof Enum) + file.enumType.push(nested.toDescriptor()); + else if (nested instanceof Field) + file.extension.push(nested.toDescriptor(edition)); + else if (nested instanceof Service) + file.service.push(nested.toDescriptor()); + else if (nested instanceof /* plain */ Namespace) + Root_toDescriptorRecursive(nested, files, edition); // requires new file + + // Keep package-level options + file.options = toDescriptorOptions(ns.options, exports.FileOptions); + + // And keep the file only if there is at least one nested object + if (file.messageType.length + file.enumType.length + file.extension.length + file.service.length) + files.push(file); +} +// --- Type --- -/***/ }), +/** + * Properties of a DescriptorProto message. + * @interface IDescriptorProto + * @property {string} [name] Message type name + * @property {IFieldDescriptorProto[]} [field] Fields + * @property {IFieldDescriptorProto[]} [extension] Extension fields + * @property {IDescriptorProto[]} [nestedType] Nested message types + * @property {IEnumDescriptorProto[]} [enumType] Nested enums + * @property {IDescriptorProtoExtensionRange[]} [extensionRange] Extension ranges + * @property {IOneofDescriptorProto[]} [oneofDecl] Oneofs + * @property {IMessageOptions} [options] Not supported + * @property {IDescriptorProtoReservedRange[]} [reservedRange] Reserved ranges + * @property {string[]} [reservedName] Reserved names + */ -/***/ 69356: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * Properties of a MessageOptions message. + * @interface IMessageOptions + * @property {boolean} [mapEntry=false] Whether this message is a map entry + */ -/*global module*/ -var Buffer = (__nccwpck_require__(94078).Buffer); -var DataStream = __nccwpck_require__(99775); -var jwa = __nccwpck_require__(63019); -var Stream = __nccwpck_require__(12781); -var toString = __nccwpck_require__(94230); -var util = __nccwpck_require__(73837); +/** + * Properties of an ExtensionRange message. + * @interface IDescriptorProtoExtensionRange + * @property {number} [start] Start field id + * @property {number} [end] End field id + */ -function base64url(string, encoding) { - return Buffer - .from(string, encoding) - .toString('base64') - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} +/** + * Properties of a ReservedRange message. + * @interface IDescriptorProtoReservedRange + * @property {number} [start] Start field id + * @property {number} [end] End field id + */ -function jwsSecuredInput(header, payload, encoding) { - encoding = encoding || 'utf8'; - var encodedHeader = base64url(toString(header), 'binary'); - var encodedPayload = base64url(toString(payload), encoding); - return util.format('%s.%s', encodedHeader, encodedPayload); -} +var unnamedMessageIndex = 0; -function jwsSign(opts) { - var header = opts.header; - var payload = opts.payload; - var secretOrKey = opts.secret || opts.privateKey; - var encoding = opts.encoding; - var algo = jwa(header.alg); - var securedInput = jwsSecuredInput(header, payload, encoding); - var signature = algo.sign(securedInput, secretOrKey); - return util.format('%s.%s', securedInput, signature); -} +/** + * Creates a type from a descriptor. + * + * Warning: this is not safe to use with editions protos, since it discards relevant file context. + * + * @param {IDescriptorProto|Reader|Uint8Array} descriptor Descriptor + * @param {string} [edition="proto2"] The syntax or edition to use + * @param {boolean} [nested=false] Whether or not this is a nested object + * @returns {Type} Type instance + */ +Type.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { + // Decode the descriptor message if specified as a buffer: + if (typeof descriptor.length === "number") + descriptor = exports.DescriptorProto.decode(descriptor); -function SignStream(opts) { - var secret = opts.secret||opts.privateKey||opts.key; - var secretStream = new DataStream(secret); - this.readable = true; - this.header = opts.header; - this.encoding = opts.encoding; - this.secret = this.privateKey = this.key = secretStream; - this.payload = new DataStream(opts.payload); - this.secret.once('close', function () { - if (!this.payload.writable && this.readable) - this.sign(); - }.bind(this)); + // Create the message type + var type = new Type(descriptor.name.length ? descriptor.name : "Type" + unnamedMessageIndex++, fromDescriptorOptions(descriptor.options, exports.MessageOptions)), + i; - this.payload.once('close', function () { - if (!this.secret.writable && this.readable) - this.sign(); - }.bind(this)); -} -util.inherits(SignStream, Stream); + if (!nested) + type._edition = edition; -SignStream.prototype.sign = function sign() { - try { - var signature = jwsSign({ - header: this.header, - payload: this.payload.buffer, - secret: this.secret.buffer, - encoding: this.encoding - }); - this.emit('done', signature); - this.emit('data', signature); - this.emit('end'); - this.readable = false; - return signature; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } + /* Oneofs */ if (descriptor.oneofDecl) + for (i = 0; i < descriptor.oneofDecl.length; ++i) + type.add(OneOf.fromDescriptor(descriptor.oneofDecl[i])); + /* Fields */ if (descriptor.field) + for (i = 0; i < descriptor.field.length; ++i) { + var field = Field.fromDescriptor(descriptor.field[i], edition, true); + type.add(field); + if (descriptor.field[i].hasOwnProperty("oneofIndex")) // eslint-disable-line no-prototype-builtins + type.oneofsArray[descriptor.field[i].oneofIndex].add(field); + } + /* Extension fields */ if (descriptor.extension) + for (i = 0; i < descriptor.extension.length; ++i) + type.add(Field.fromDescriptor(descriptor.extension[i], edition, true)); + /* Nested types */ if (descriptor.nestedType) + for (i = 0; i < descriptor.nestedType.length; ++i) { + type.add(Type.fromDescriptor(descriptor.nestedType[i], edition, true)); + if (descriptor.nestedType[i].options && descriptor.nestedType[i].options.mapEntry) + type.setOption("map_entry", true); + } + /* Nested enums */ if (descriptor.enumType) + for (i = 0; i < descriptor.enumType.length; ++i) + type.add(Enum.fromDescriptor(descriptor.enumType[i], edition, true)); + /* Extension ranges */ if (descriptor.extensionRange && descriptor.extensionRange.length) { + type.extensions = []; + for (i = 0; i < descriptor.extensionRange.length; ++i) + type.extensions.push([ descriptor.extensionRange[i].start, descriptor.extensionRange[i].end ]); + } + /* Reserved... */ if (descriptor.reservedRange && descriptor.reservedRange.length || descriptor.reservedName && descriptor.reservedName.length) { + type.reserved = []; + /* Ranges */ if (descriptor.reservedRange) + for (i = 0; i < descriptor.reservedRange.length; ++i) + type.reserved.push([ descriptor.reservedRange[i].start, descriptor.reservedRange[i].end ]); + /* Names */ if (descriptor.reservedName) + for (i = 0; i < descriptor.reservedName.length; ++i) + type.reserved.push(descriptor.reservedName[i]); + } + + return type; }; -SignStream.sign = jwsSign; +/** + * Converts a type to a descriptor. + * @returns {Message} Descriptor + * @param {string} [edition="proto2"] The syntax or edition to use + */ +Type.prototype.toDescriptor = function toDescriptor(edition) { + var descriptor = exports.DescriptorProto.create({ name: this.name }), + i; + + /* Fields */ for (i = 0; i < this.fieldsArray.length; ++i) { + var fieldDescriptor; + descriptor.field.push(fieldDescriptor = this._fieldsArray[i].toDescriptor(edition)); + if (this._fieldsArray[i] instanceof MapField) { // map fields are repeated FieldNameEntry + var keyType = toDescriptorType(this._fieldsArray[i].keyType, this._fieldsArray[i].resolvedKeyType, false), + valueType = toDescriptorType(this._fieldsArray[i].type, this._fieldsArray[i].resolvedType, false), + valueTypeName = valueType === /* type */ 11 || valueType === /* enum */ 14 + ? this._fieldsArray[i].resolvedType && shortname(this.parent, this._fieldsArray[i].resolvedType) || this._fieldsArray[i].type + : undefined; + descriptor.nestedType.push(exports.DescriptorProto.create({ + name: fieldDescriptor.typeName, + field: [ + exports.FieldDescriptorProto.create({ name: "key", number: 1, label: 1, type: keyType }), // can't reference a type or enum + exports.FieldDescriptorProto.create({ name: "value", number: 2, label: 1, type: valueType, typeName: valueTypeName }) + ], + options: exports.MessageOptions.create({ mapEntry: true }) + })); + } + } + /* Oneofs */ for (i = 0; i < this.oneofsArray.length; ++i) + descriptor.oneofDecl.push(this._oneofsArray[i].toDescriptor()); + /* Nested... */ for (i = 0; i < this.nestedArray.length; ++i) { + /* Extension fields */ if (this._nestedArray[i] instanceof Field) + descriptor.field.push(this._nestedArray[i].toDescriptor(edition)); + /* Types */ else if (this._nestedArray[i] instanceof Type) + descriptor.nestedType.push(this._nestedArray[i].toDescriptor(edition)); + /* Enums */ else if (this._nestedArray[i] instanceof Enum) + descriptor.enumType.push(this._nestedArray[i].toDescriptor()); + // plain nested namespaces become packages instead in Root#toDescriptor + } + /* Extension ranges */ if (this.extensions) + for (i = 0; i < this.extensions.length; ++i) + descriptor.extensionRange.push(exports.DescriptorProto.ExtensionRange.create({ start: this.extensions[i][0], end: this.extensions[i][1] })); + /* Reserved... */ if (this.reserved) + for (i = 0; i < this.reserved.length; ++i) + /* Names */ if (typeof this.reserved[i] === "string") + descriptor.reservedName.push(this.reserved[i]); + /* Ranges */ else + descriptor.reservedRange.push(exports.DescriptorProto.ReservedRange.create({ start: this.reserved[i][0], end: this.reserved[i][1] })); + + descriptor.options = toDescriptorOptions(this.options, exports.MessageOptions); + + return descriptor; +}; -module.exports = SignStream; +// --- Field --- +/** + * Properties of a FieldDescriptorProto message. + * @interface IFieldDescriptorProto + * @property {string} [name] Field name + * @property {number} [number] Field id + * @property {IFieldDescriptorProtoLabel} [label] Field rule + * @property {IFieldDescriptorProtoType} [type] Field basic type + * @property {string} [typeName] Field type name + * @property {string} [extendee] Extended type name + * @property {string} [defaultValue] Literal default value + * @property {number} [oneofIndex] Oneof index if part of a oneof + * @property {*} [jsonName] Not supported + * @property {IFieldOptions} [options] Field options + */ -/***/ }), +/** + * Values of the FieldDescriptorProto.Label enum. + * @typedef IFieldDescriptorProtoLabel + * @type {number} + * @property {number} LABEL_OPTIONAL=1 + * @property {number} LABEL_REQUIRED=2 + * @property {number} LABEL_REPEATED=3 + */ -/***/ 94230: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * Values of the FieldDescriptorProto.Type enum. + * @typedef IFieldDescriptorProtoType + * @type {number} + * @property {number} TYPE_DOUBLE=1 + * @property {number} TYPE_FLOAT=2 + * @property {number} TYPE_INT64=3 + * @property {number} TYPE_UINT64=4 + * @property {number} TYPE_INT32=5 + * @property {number} TYPE_FIXED64=6 + * @property {number} TYPE_FIXED32=7 + * @property {number} TYPE_BOOL=8 + * @property {number} TYPE_STRING=9 + * @property {number} TYPE_GROUP=10 + * @property {number} TYPE_MESSAGE=11 + * @property {number} TYPE_BYTES=12 + * @property {number} TYPE_UINT32=13 + * @property {number} TYPE_ENUM=14 + * @property {number} TYPE_SFIXED32=15 + * @property {number} TYPE_SFIXED64=16 + * @property {number} TYPE_SINT32=17 + * @property {number} TYPE_SINT64=18 + */ -/*global module*/ -var Buffer = (__nccwpck_require__(14300).Buffer); +/** + * Properties of a FieldOptions message. + * @interface IFieldOptions + * @property {boolean} [packed] Whether packed or not (defaults to `false` for proto2 and `true` for proto3) + * @property {IFieldOptionsJSType} [jstype] JavaScript value type (not used by protobuf.js) + */ -module.exports = function toString(obj) { - if (typeof obj === 'string') - return obj; - if (typeof obj === 'number' || Buffer.isBuffer(obj)) - return obj.toString(); - return JSON.stringify(obj); -}; +/** + * Values of the FieldOptions.JSType enum. + * @typedef IFieldOptionsJSType + * @type {number} + * @property {number} JS_NORMAL=0 + * @property {number} JS_STRING=1 + * @property {number} JS_NUMBER=2 + */ +// copied here from parse.js +var numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/; -/***/ }), +/** + * Creates a field from a descriptor. + * + * Warning: this is not safe to use with editions protos, since it discards relevant file context. + * + * @param {IFieldDescriptorProto|Reader|Uint8Array} descriptor Descriptor + * @param {string} [edition="proto2"] The syntax or edition to use + * @param {boolean} [nested=false] Whether or not this is a top-level object + * @returns {Field} Field instance + */ +Field.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { -/***/ 98001: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // Decode the descriptor message if specified as a buffer: + if (typeof descriptor.length === "number") + descriptor = exports.DescriptorProto.decode(descriptor); -/*global module*/ -var Buffer = (__nccwpck_require__(94078).Buffer); -var DataStream = __nccwpck_require__(99775); -var jwa = __nccwpck_require__(63019); -var Stream = __nccwpck_require__(12781); -var toString = __nccwpck_require__(94230); -var util = __nccwpck_require__(73837); -var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; + if (typeof descriptor.number !== "number") + throw Error("missing field id"); -function isObject(thing) { - return Object.prototype.toString.call(thing) === '[object Object]'; -} + // Rewire field type + var fieldType; + if (descriptor.typeName && descriptor.typeName.length) + fieldType = descriptor.typeName; + else + fieldType = fromDescriptorType(descriptor.type); -function safeJsonParse(thing) { - if (isObject(thing)) - return thing; - try { return JSON.parse(thing); } - catch (e) { return undefined; } -} + // Rewire field rule + var fieldRule; + switch (descriptor.label) { + // 0 is reserved for errors + case 1: fieldRule = undefined; break; + case 2: fieldRule = "required"; break; + case 3: fieldRule = "repeated"; break; + default: throw Error("illegal label: " + descriptor.label); + } -function headerFromJWS(jwsSig) { - var encodedHeader = jwsSig.split('.', 1)[0]; - return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary')); -} + var extendee = descriptor.extendee; + if (descriptor.extendee !== undefined) { + extendee = extendee.length ? extendee : undefined; + } + var field = new Field( + descriptor.name.length ? descriptor.name : "field" + descriptor.number, + descriptor.number, + fieldType, + fieldRule, + extendee + ); -function securedInputFromJWS(jwsSig) { - return jwsSig.split('.', 2).join('.'); -} + if (!nested) + field._edition = edition; -function signatureFromJWS(jwsSig) { - return jwsSig.split('.')[2]; -} + field.options = fromDescriptorOptions(descriptor.options, exports.FieldOptions); + if (descriptor.proto3_optional) + field.options.proto3_optional = true; -function payloadFromJWS(jwsSig, encoding) { - encoding = encoding || 'utf8'; - var payload = jwsSig.split('.')[1]; - return Buffer.from(payload, 'base64').toString(encoding); -} + if (descriptor.defaultValue && descriptor.defaultValue.length) { + var defaultValue = descriptor.defaultValue; + switch (defaultValue) { + case "true": case "TRUE": + defaultValue = true; + break; + case "false": case "FALSE": + defaultValue = false; + break; + default: + var match = numberRe.exec(defaultValue); + if (match) + defaultValue = parseInt(defaultValue); // eslint-disable-line radix + break; + } + field.setOption("default", defaultValue); + } -function isValidJws(string) { - return JWS_REGEX.test(string) && !!headerFromJWS(string); -} + if (packableDescriptorType(descriptor.type)) { + if (edition === "proto3") { // defaults to packed=true (internal preset is packed=true) + if (descriptor.options && !descriptor.options.packed) + field.setOption("packed", false); + } else if ((!edition || edition === "proto2") && descriptor.options && descriptor.options.packed) // defaults to packed=false + field.setOption("packed", true); + } -function jwsVerify(jwsSig, algorithm, secretOrKey) { - if (!algorithm) { - var err = new Error("Missing algorithm parameter for jws.verify"); - err.code = "MISSING_ALGORITHM"; - throw err; - } - jwsSig = toString(jwsSig); - var signature = signatureFromJWS(jwsSig); - var securedInput = securedInputFromJWS(jwsSig); - var algo = jwa(algorithm); - return algo.verify(securedInput, signature, secretOrKey); -} + return field; +}; -function jwsDecode(jwsSig, opts) { - opts = opts || {}; - jwsSig = toString(jwsSig); +/** + * Converts a field to a descriptor. + * @returns {Message} Descriptor + * @param {string} [edition="proto2"] The syntax or edition to use + */ +Field.prototype.toDescriptor = function toDescriptor(edition) { + var descriptor = exports.FieldDescriptorProto.create({ name: this.name, number: this.id }); - if (!isValidJws(jwsSig)) - return null; + if (this.map) { - var header = headerFromJWS(jwsSig); + descriptor.type = 11; // message + descriptor.typeName = $protobuf.util.ucFirst(this.name); // fieldName -> FieldNameEntry (built in Type#toDescriptor) + descriptor.label = 3; // repeated - if (!header) - return null; + } else { - var payload = payloadFromJWS(jwsSig); - if (header.typ === 'JWT' || opts.json) - payload = JSON.parse(payload, opts.encoding); + // Rewire field type + switch (descriptor.type = toDescriptorType(this.type, this.resolve().resolvedType, this.delimited)) { + case 10: // group + case 11: // type + case 14: // enum + descriptor.typeName = this.resolvedType ? shortname(this.parent, this.resolvedType) : this.type; + break; + } - return { - header: header, - payload: payload, - signature: signatureFromJWS(jwsSig) - }; -} + // Rewire field rule + if (this.rule === "repeated") { + descriptor.label = 3; + } else if (this.required && edition === "proto2") { + descriptor.label = 2; + } else { + descriptor.label = 1; + } + } -function VerifyStream(opts) { - opts = opts || {}; - var secretOrKey = opts.secret||opts.publicKey||opts.key; - var secretStream = new DataStream(secretOrKey); - this.readable = true; - this.algorithm = opts.algorithm; - this.encoding = opts.encoding; - this.secret = this.publicKey = this.key = secretStream; - this.signature = new DataStream(opts.signature); - this.secret.once('close', function () { - if (!this.signature.writable && this.readable) - this.verify(); - }.bind(this)); + // Handle extension field + descriptor.extendee = this.extensionField ? this.extensionField.parent.fullName : this.extend; - this.signature.once('close', function () { - if (!this.secret.writable && this.readable) - this.verify(); - }.bind(this)); -} -util.inherits(VerifyStream, Stream); -VerifyStream.prototype.verify = function verify() { - try { - var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); - var obj = jwsDecode(this.signature.buffer, this.encoding); - this.emit('done', valid, obj); - this.emit('data', valid); - this.emit('end'); - this.readable = false; - return valid; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } -}; + // Handle part of oneof + if (this.partOf) + if ((descriptor.oneofIndex = this.parent.oneofsArray.indexOf(this.partOf)) < 0) + throw Error("missing oneof"); -VerifyStream.decode = jwsDecode; -VerifyStream.isValid = isValidJws; -VerifyStream.verify = jwsVerify; + if (this.options) { + descriptor.options = toDescriptorOptions(this.options, exports.FieldOptions); + if (this.options["default"] != null) + descriptor.defaultValue = String(this.options["default"]); + if (this.options.proto3_optional) + descriptor.proto3_optional = true; + } -module.exports = VerifyStream; + if (edition === "proto3") { // defaults to packed=true + if (!this.packed) + (descriptor.options || (descriptor.options = exports.FieldOptions.create())).packed = false; + } else if ((!edition || edition === "proto2") && this.packed) // defaults to packed=false + (descriptor.options || (descriptor.options = exports.FieldOptions.create())).packed = true; + return descriptor; +}; -/***/ }), +// --- Enum --- -/***/ 3707: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * Properties of an EnumDescriptorProto message. + * @interface IEnumDescriptorProto + * @property {string} [name] Enum name + * @property {IEnumValueDescriptorProto[]} [value] Enum values + * @property {IEnumOptions} [options] Enum options + */ -"use strict"; -/*! - * methods - * Copyright(c) 2013-2014 TJ Holowaychuk - * Copyright(c) 2015-2016 Douglas Christopher Wilson - * MIT Licensed +/** + * Properties of an EnumValueDescriptorProto message. + * @interface IEnumValueDescriptorProto + * @property {string} [name] Name + * @property {number} [number] Value + * @property {*} [options] Not supported */ +/** + * Properties of an EnumOptions message. + * @interface IEnumOptions + * @property {boolean} [allowAlias] Whether aliases are allowed + * @property {boolean} [deprecated] + */ +var unnamedEnumIndex = 0; /** - * Module dependencies. - * @private + * Creates an enum from a descriptor. + * + * Warning: this is not safe to use with editions protos, since it discards relevant file context. + * + * @param {IEnumDescriptorProto|Reader|Uint8Array} descriptor Descriptor + * @param {string} [edition="proto2"] The syntax or edition to use + * @param {boolean} [nested=false] Whether or not this is a top-level object + * @returns {Enum} Enum instance */ +Enum.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { + + // Decode the descriptor message if specified as a buffer: + if (typeof descriptor.length === "number") + descriptor = exports.EnumDescriptorProto.decode(descriptor); -var http = __nccwpck_require__(13685); + // Construct values object + var values = {}; + if (descriptor.value) + for (var i = 0; i < descriptor.value.length; ++i) { + var name = descriptor.value[i].name, + value = descriptor.value[i].number || 0; + values[name && name.length ? name : "NAME" + value] = value; + } + + var enm = new Enum( + descriptor.name && descriptor.name.length ? descriptor.name : "Enum" + unnamedEnumIndex++, + values, + fromDescriptorOptions(descriptor.options, exports.EnumOptions) + ); + + if (!nested) + enm._edition = edition; + + return enm; +}; /** - * Module exports. - * @public + * Converts an enum to a descriptor. + * @returns {Message} Descriptor */ +Enum.prototype.toDescriptor = function toDescriptor() { -module.exports = getCurrentNodeMethods() || getBasicNodeMethods(); + // Values + var values = []; + for (var i = 0, ks = Object.keys(this.values); i < ks.length; ++i) + values.push(exports.EnumValueDescriptorProto.create({ name: ks[i], number: this.values[ks[i]] })); + + return exports.EnumDescriptorProto.create({ + name: this.name, + value: values, + options: toDescriptorOptions(this.options, exports.EnumOptions) + }); +}; + +// --- OneOf --- /** - * Get the current Node.js methods. - * @private + * Properties of a OneofDescriptorProto message. + * @interface IOneofDescriptorProto + * @property {string} [name] Oneof name + * @property {*} [options] Not supported */ -function getCurrentNodeMethods() { - return http.METHODS && http.METHODS.map(function lowerCaseMethod(method) { - return method.toLowerCase(); - }); -} +var unnamedOneofIndex = 0; /** - * Get the "basic" Node.js methods, a snapshot from Node.js 0.10. - * @private + * Creates a oneof from a descriptor. + * + * Warning: this is not safe to use with editions protos, since it discards relevant file context. + * + * @param {IOneofDescriptorProto|Reader|Uint8Array} descriptor Descriptor + * @returns {OneOf} OneOf instance */ +OneOf.fromDescriptor = function fromDescriptor(descriptor) { -function getBasicNodeMethods() { - return [ - 'get', - 'post', - 'put', - 'head', - 'delete', - 'options', - 'trace', - 'copy', - 'lock', - 'mkcol', - 'move', - 'purge', - 'propfind', - 'proppatch', - 'unlock', - 'report', - 'mkactivity', - 'checkout', - 'merge', - 'm-search', - 'notify', - 'subscribe', - 'unsubscribe', - 'patch', - 'search', - 'connect' - ]; -} + // Decode the descriptor message if specified as a buffer: + if (typeof descriptor.length === "number") + descriptor = exports.OneofDescriptorProto.decode(descriptor); + return new OneOf( + // unnamedOneOfIndex is global, not per type, because we have no ref to a type here + descriptor.name && descriptor.name.length ? descriptor.name : "oneof" + unnamedOneofIndex++ + // fromDescriptorOptions(descriptor.options, exports.OneofOptions) - only uninterpreted_option + ); +}; -/***/ }), +/** + * Converts a oneof to a descriptor. + * @returns {Message} Descriptor + */ +OneOf.prototype.toDescriptor = function toDescriptor() { + return exports.OneofDescriptorProto.create({ + name: this.name + // options: toDescriptorOptions(this.options, exports.OneofOptions) - only uninterpreted_option + }); +}; -/***/ 19416: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +// --- Service --- -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed +/** + * Properties of a ServiceDescriptorProto message. + * @interface IServiceDescriptorProto + * @property {string} [name] Service name + * @property {IMethodDescriptorProto[]} [method] Methods + * @property {IServiceOptions} [options] Options */ /** - * Module exports. + * Properties of a ServiceOptions message. + * @interface IServiceOptions + * @property {boolean} [deprecated] */ -module.exports = __nccwpck_require__(53765) +var unnamedServiceIndex = 0; +/** + * Creates a service from a descriptor. + * + * Warning: this is not safe to use with editions protos, since it discards relevant file context. + * + * @param {IServiceDescriptorProto|Reader|Uint8Array} descriptor Descriptor + * @param {string} [edition="proto2"] The syntax or edition to use + * @param {boolean} [nested=false] Whether or not this is a top-level object + * @returns {Service} Service instance + */ +Service.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { -/***/ }), + // Decode the descriptor message if specified as a buffer: + if (typeof descriptor.length === "number") + descriptor = exports.ServiceDescriptorProto.decode(descriptor); -/***/ 82277: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + var service = new Service(descriptor.name && descriptor.name.length ? descriptor.name : "Service" + unnamedServiceIndex++, fromDescriptorOptions(descriptor.options, exports.ServiceOptions)); + if (!nested) + service._edition = edition; + if (descriptor.method) + for (var i = 0; i < descriptor.method.length; ++i) + service.add(Method.fromDescriptor(descriptor.method[i])); -"use strict"; -/*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed + return service; +}; + +/** + * Converts a service to a descriptor. + * @returns {Message} Descriptor */ +Service.prototype.toDescriptor = function toDescriptor() { + // Methods + var methods = []; + for (var i = 0; i < this.methodsArray.length; ++i) + methods.push(this._methodsArray[i].toDescriptor()); + + return exports.ServiceDescriptorProto.create({ + name: this.name, + method: methods, + options: toDescriptorOptions(this.options, exports.ServiceOptions) + }); +}; +// --- Method --- /** - * Module dependencies. - * @private + * Properties of a MethodDescriptorProto message. + * @interface IMethodDescriptorProto + * @property {string} [name] Method name + * @property {string} [inputType] Request type name + * @property {string} [outputType] Response type name + * @property {IMethodOptions} [options] Not supported + * @property {boolean} [clientStreaming=false] Whether requests are streamed + * @property {boolean} [serverStreaming=false] Whether responses are streamed */ -var db = __nccwpck_require__(19416) -var extname = (__nccwpck_require__(71017).extname) - /** - * Module variables. - * @private + * Properties of a MethodOptions message. + * + * Warning: this is not safe to use with editions protos, since it discards relevant file context. + * + * @interface IMethodOptions + * @property {boolean} [deprecated] */ -var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ -var TEXT_TYPE_REGEXP = /^text\//i +var unnamedMethodIndex = 0; /** - * Module exports. - * @public + * Creates a method from a descriptor. + * @param {IMethodDescriptorProto|Reader|Uint8Array} descriptor Descriptor + * @returns {Method} Reflected method instance */ +Method.fromDescriptor = function fromDescriptor(descriptor) { -exports.charset = charset -exports.charsets = { lookup: charset } -exports.contentType = contentType -exports.extension = extension -exports.extensions = Object.create(null) -exports.lookup = lookup -exports.types = Object.create(null) + // Decode the descriptor message if specified as a buffer: + if (typeof descriptor.length === "number") + descriptor = exports.MethodDescriptorProto.decode(descriptor); -// Populate the extensions/types maps -populateMaps(exports.extensions, exports.types) + return new Method( + // unnamedMethodIndex is global, not per service, because we have no ref to a service here + descriptor.name && descriptor.name.length ? descriptor.name : "Method" + unnamedMethodIndex++, + "rpc", + descriptor.inputType, + descriptor.outputType, + Boolean(descriptor.clientStreaming), + Boolean(descriptor.serverStreaming), + fromDescriptorOptions(descriptor.options, exports.MethodOptions) + ); +}; /** - * Get the default charset for a MIME type. - * - * @param {string} type - * @return {boolean|string} + * Converts a method to a descriptor. + * @returns {Message} Descriptor */ +Method.prototype.toDescriptor = function toDescriptor() { + return exports.MethodDescriptorProto.create({ + name: this.name, + inputType: this.resolvedRequestType ? this.resolvedRequestType.fullName : this.requestType, + outputType: this.resolvedResponseType ? this.resolvedResponseType.fullName : this.responseType, + clientStreaming: this.requestStream, + serverStreaming: this.responseStream, + options: toDescriptorOptions(this.options, exports.MethodOptions) + }); +}; -function charset (type) { - if (!type || typeof type !== 'string') { - return false - } +// --- utility --- + +// Converts a descriptor type to a protobuf.js basic type +function fromDescriptorType(type) { + switch (type) { + // 0 is reserved for errors + case 1: return "double"; + case 2: return "float"; + case 3: return "int64"; + case 4: return "uint64"; + case 5: return "int32"; + case 6: return "fixed64"; + case 7: return "fixed32"; + case 8: return "bool"; + case 9: return "string"; + case 12: return "bytes"; + case 13: return "uint32"; + case 15: return "sfixed32"; + case 16: return "sfixed64"; + case 17: return "sint32"; + case 18: return "sint64"; + } + throw Error("illegal type: " + type); +} - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - var mime = match && db[match[1].toLowerCase()] +// Tests if a descriptor type is packable +function packableDescriptorType(type) { + switch (type) { + case 1: // double + case 2: // float + case 3: // int64 + case 4: // uint64 + case 5: // int32 + case 6: // fixed64 + case 7: // fixed32 + case 8: // bool + case 13: // uint32 + case 14: // enum (!) + case 15: // sfixed32 + case 16: // sfixed64 + case 17: // sint32 + case 18: // sint64 + return true; + } + return false; +} - if (mime && mime.charset) { - return mime.charset - } +// Converts a protobuf.js basic type to a descriptor type +function toDescriptorType(type, resolvedType, delimited) { + switch (type) { + // 0 is reserved for errors + case "double": return 1; + case "float": return 2; + case "int64": return 3; + case "uint64": return 4; + case "int32": return 5; + case "fixed64": return 6; + case "fixed32": return 7; + case "bool": return 8; + case "string": return 9; + case "bytes": return 12; + case "uint32": return 13; + case "sfixed32": return 15; + case "sfixed64": return 16; + case "sint32": return 17; + case "sint64": return 18; + } + if (resolvedType instanceof Enum) + return 14; + if (resolvedType instanceof Type) + return delimited ? 10 : 11; + throw Error("illegal type: " + type); +} - // default text/* to utf-8 - if (match && TEXT_TYPE_REGEXP.test(match[1])) { - return 'UTF-8' - } +function fromDescriptorOptionsRecursive(obj, type) { + var val = {}; + for (var i = 0, field, key; i < type.fieldsArray.length; ++i) { + if ((key = (field = type._fieldsArray[i]).name) === "uninterpretedOption") continue; + if (!Object.prototype.hasOwnProperty.call(obj, key)) continue; + + var newKey = underScore(key); + if (field.resolvedType instanceof Type) { + val[newKey] = fromDescriptorOptionsRecursive(obj[key], field.resolvedType); + } else if(field.resolvedType instanceof Enum) { + val[newKey] = field.resolvedType.valuesById[obj[key]]; + } else { + val[newKey] = obj[key]; + } + } + return val; +} - return false +// Converts descriptor options to an options object +function fromDescriptorOptions(options, type) { + if (!options) + return undefined; + return fromDescriptorOptionsRecursive(type.toObject(options), type); +} + +function toDescriptorOptionsRecursive(obj, type) { + var val = {}; + var keys = Object.keys(obj); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + var newKey = $protobuf.util.camelCase(key); + if (!Object.prototype.hasOwnProperty.call(type.fields, newKey)) continue; + var field = type.fields[newKey]; + if (field.resolvedType instanceof Type) { + val[newKey] = toDescriptorOptionsRecursive(obj[key], field.resolvedType); + } else { + val[newKey] = obj[key]; + } + if (field.repeated && !Array.isArray(val[newKey])) { + val[newKey] = [val[newKey]]; + } + } + return val; +} + +// Converts an options object to descriptor options +function toDescriptorOptions(options, type) { + if (!options) + return undefined; + return type.fromObject(toDescriptorOptionsRecursive(options, type)); +} + +// Calculates the shortest relative path from `from` to `to`. +function shortname(from, to) { + var fromPath = from.fullName.split("."), + toPath = to.fullName.split("."), + i = 0, + j = 0, + k = toPath.length - 1; + if (!(from instanceof Root) && to instanceof Namespace) + while (i < fromPath.length && j < k && fromPath[i] === toPath[j]) { + var other = to.lookup(fromPath[i++], true); + if (other !== null && other !== to) + break; + ++j; + } + else + for (; i < fromPath.length && j < k && fromPath[i] === toPath[j]; ++i, ++j); + return toPath.slice(j).join("."); +} + +// copied here from cli/targets/proto.js +function underScore(str) { + return str.substring(0,1) + + str.substring(1) + .replace(/([A-Z])(?=[a-z]|$)/g, function($0, $1) { return "_" + $1.toLowerCase(); }); +} + +function editionFromDescriptor(fileDescriptor) { + if (fileDescriptor.syntax === "editions") { + switch(fileDescriptor.edition) { + case exports.Edition.EDITION_2023: + return "2023"; + default: + throw new Error("Unsupported edition " + fileDescriptor.edition); + } + } + if (fileDescriptor.syntax === "proto3") { + return "proto3"; + } + return "proto2"; +} + +function editionToDescriptor(edition, fileDescriptor) { + if (!edition) return; + if (edition === "proto2" || edition === "proto3") { + fileDescriptor.syntax = edition; + } else { + fileDescriptor.syntax = "editions"; + switch(edition) { + case "2023": + fileDescriptor.edition = exports.Edition.EDITION_2023; + break; + default: + throw new Error("Unsupported edition " + edition); + } + } } +// --- exports --- + /** - * Create a full Content-Type header given a MIME type or extension. - * - * @param {string} str - * @return {boolean|string} + * Reflected file descriptor set. + * @name FileDescriptorSet + * @type {Type} + * @const + * @tstype $protobuf.Type */ -function contentType (str) { - // TODO: should this even be in this module? - if (!str || typeof str !== 'string') { - return false - } +/** + * Reflected file descriptor proto. + * @name FileDescriptorProto + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - var mime = str.indexOf('/') === -1 - ? exports.lookup(str) - : str +/** + * Reflected descriptor proto. + * @name DescriptorProto + * @type {Type} + * @property {Type} ExtensionRange + * @property {Type} ReservedRange + * @const + * @tstype $protobuf.Type & { + * ExtensionRange: $protobuf.Type, + * ReservedRange: $protobuf.Type + * } + */ - if (!mime) { - return false - } +/** + * Reflected field descriptor proto. + * @name FieldDescriptorProto + * @type {Type} + * @property {Enum} Label + * @property {Enum} Type + * @const + * @tstype $protobuf.Type & { + * Label: $protobuf.Enum, + * Type: $protobuf.Enum + * } + */ - // TODO: use content-type or other module - if (mime.indexOf('charset') === -1) { - var charset = exports.charset(mime) - if (charset) mime += '; charset=' + charset.toLowerCase() - } +/** + * Reflected oneof descriptor proto. + * @name OneofDescriptorProto + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - return mime -} +/** + * Reflected enum descriptor proto. + * @name EnumDescriptorProto + * @type {Type} + * @const + * @tstype $protobuf.Type + */ /** - * Get the default extension for a MIME type. - * - * @param {string} type - * @return {boolean|string} + * Reflected service descriptor proto. + * @name ServiceDescriptorProto + * @type {Type} + * @const + * @tstype $protobuf.Type */ -function extension (type) { - if (!type || typeof type !== 'string') { - return false - } +/** + * Reflected enum value descriptor proto. + * @name EnumValueDescriptorProto + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) +/** + * Reflected method descriptor proto. + * @name MethodDescriptorProto + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - // get extensions - var exts = match && exports.extensions[match[1].toLowerCase()] +/** + * Reflected file options. + * @name FileOptions + * @type {Type} + * @property {Enum} OptimizeMode + * @const + * @tstype $protobuf.Type & { + * OptimizeMode: $protobuf.Enum + * } + */ - if (!exts || !exts.length) { - return false - } +/** + * Reflected message options. + * @name MessageOptions + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - return exts[0] -} +/** + * Reflected field options. + * @name FieldOptions + * @type {Type} + * @property {Enum} CType + * @property {Enum} JSType + * @const + * @tstype $protobuf.Type & { + * CType: $protobuf.Enum, + * JSType: $protobuf.Enum + * } + */ /** - * Lookup the MIME type for a file path/extension. - * - * @param {string} path - * @return {boolean|string} + * Reflected oneof options. + * @name OneofOptions + * @type {Type} + * @const + * @tstype $protobuf.Type */ -function lookup (path) { - if (!path || typeof path !== 'string') { - return false - } +/** + * Reflected enum options. + * @name EnumOptions + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - // get the extension ("ext" or ".ext" or full path) - var extension = extname('x.' + path) - .toLowerCase() - .substr(1) +/** + * Reflected enum value options. + * @name EnumValueOptions + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - if (!extension) { - return false - } +/** + * Reflected service options. + * @name ServiceOptions + * @type {Type} + * @const + * @tstype $protobuf.Type + */ - return exports.types[extension] || false -} +/** + * Reflected method options. + * @name MethodOptions + * @type {Type} + * @const + * @tstype $protobuf.Type + */ /** - * Populate the extensions and types maps. - * @private + * Reflected uninterpretet option. + * @name UninterpretedOption + * @type {Type} + * @property {Type} NamePart + * @const + * @tstype $protobuf.Type & { + * NamePart: $protobuf.Type + * } */ -function populateMaps (extensions, types) { - // source preference (least -> most) - var preference = ['nginx', 'apache', undefined, 'iana'] +/** + * Reflected source code info. + * @name SourceCodeInfo + * @type {Type} + * @property {Type} Location + * @const + * @tstype $protobuf.Type & { + * Location: $protobuf.Type + * } + */ - Object.keys(db).forEach(function forEachMimeType (type) { - var mime = db[type] - var exts = mime.extensions +/** + * Reflected generated code info. + * @name GeneratedCodeInfo + * @type {Type} + * @property {Type} Annotation + * @const + * @tstype $protobuf.Type & { + * Annotation: $protobuf.Type + * } + */ - if (!exts || !exts.length) { - return - } - // mime -> extensions - extensions[type] = exts +/***/ }), - // extension -> mime - for (var i = 0; i < exts.length; i++) { - var extension = exts[i] +/***/ 85321: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if (types[extension]) { - var from = preference.indexOf(db[types[extension]].source) - var to = preference.indexOf(mime.source) +"use strict"; +// full library entry point. - if (types[extension] !== 'application/octet-stream' && - (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) { - // skip the remapping - continue - } - } - // set the extension -> mime - types[extension] = type - } - }) -} +module.exports = __nccwpck_require__(9768); /***/ }), -/***/ 44121: +/***/ 38590: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var path = __nccwpck_require__(71017); -var fs = __nccwpck_require__(57147); +"use strict"; +// minimal library entry point. -function Mime() { - // Map of extension -> mime type - this.types = Object.create(null); - // Map of mime type -> extension - this.extensions = Object.create(null); -} +module.exports = __nccwpck_require__(66014); -/** - * Define mimetype -> extension mappings. Each key is a mime-type that maps - * to an array of extensions associated with the type. The first extension is - * used as the default extension for the type. - * - * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']}); - * - * @param map (Object) type definitions - */ -Mime.prototype.define = function (map) { - for (var type in map) { - var exts = map[type]; - for (var i = 0; i < exts.length; i++) { - if (process.env.DEBUG_MIME && this.types[exts[i]]) { - console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' + - this.types[exts[i]] + ' to ' + type); - } - this.types[exts[i]] = type; - } +/***/ }), - // Default extension is the first one we encounter - if (!this.extensions[type]) { - this.extensions[type] = exts[0]; - } - } -}; +/***/ 38091: +/***/ ((module) => { + +"use strict"; + +module.exports = common; + +var commonRe = /\/|\./; /** - * Load an Apache2-style ".types" file - * - * This may be called multiple times (it's expected). Where files declare - * overlapping types/extensions, the last file wins. + * Provides common type definitions. + * Can also be used to provide additional google types or your own custom types. + * @param {string} name Short name as in `google/protobuf/[name].proto` or full file name + * @param {Object.} json JSON definition within `google.protobuf` if a short name, otherwise the file's root definition + * @returns {undefined} + * @property {INamespace} google/protobuf/any.proto Any + * @property {INamespace} google/protobuf/duration.proto Duration + * @property {INamespace} google/protobuf/empty.proto Empty + * @property {INamespace} google/protobuf/field_mask.proto FieldMask + * @property {INamespace} google/protobuf/struct.proto Struct, Value, NullValue and ListValue + * @property {INamespace} google/protobuf/timestamp.proto Timestamp + * @property {INamespace} google/protobuf/wrappers.proto Wrappers + * @example + * // manually provides descriptor.proto (assumes google/protobuf/ namespace and .proto extension) + * protobuf.common("descriptor", descriptorJson); * - * @param file (String) path of file to load. + * // manually provides a custom definition (uses my.foo namespace) + * protobuf.common("my/foo/bar.proto", myFooBarJson); */ -Mime.prototype.load = function(file) { - this._loading = file; - // Read file and split into lines - var map = {}, - content = fs.readFileSync(file, 'ascii'), - lines = content.split(/[\r\n]+/); +function common(name, json) { + if (!commonRe.test(name)) { + name = "google/protobuf/" + name + ".proto"; + json = { nested: { google: { nested: { protobuf: { nested: json } } } } }; + } + common[name] = json; +} - lines.forEach(function(line) { - // Clean up whitespace/comments, and split into fields - var fields = line.replace(/\s*#.*|^\s*|\s*$/g, '').split(/\s+/); - map[fields.shift()] = fields; - }); +// Not provided because of limited use (feel free to discuss or to provide yourself): +// +// google/protobuf/descriptor.proto +// google/protobuf/source_context.proto +// google/protobuf/type.proto +// +// Stripped and pre-parsed versions of these non-bundled files are instead available as part of +// the repository or package within the google/protobuf directory. - this.define(map); +common("any", { - this._loading = null; -}; + /** + * Properties of a google.protobuf.Any message. + * @interface IAny + * @type {Object} + * @property {string} [typeUrl] + * @property {Uint8Array} [bytes] + * @memberof common + */ + Any: { + fields: { + type_url: { + type: "string", + id: 1 + }, + value: { + type: "bytes", + id: 2 + } + } + } +}); -/** - * Lookup a mime type based on extension - */ -Mime.prototype.lookup = function(path, fallback) { - var ext = path.replace(/^.*[\.\/\\]/, '').toLowerCase(); +var timeType; - return this.types[ext] || fallback || this.default_type; -}; +common("duration", { -/** - * Return file extension associated with a mime type - */ -Mime.prototype.extension = function(mimeType) { - var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase(); - return this.extensions[type]; -}; + /** + * Properties of a google.protobuf.Duration message. + * @interface IDuration + * @type {Object} + * @property {number|Long} [seconds] + * @property {number} [nanos] + * @memberof common + */ + Duration: timeType = { + fields: { + seconds: { + type: "int64", + id: 1 + }, + nanos: { + type: "int32", + id: 2 + } + } + } +}); -// Default instance -var mime = new Mime(); +common("timestamp", { -// Define built-in types -mime.define(__nccwpck_require__(55799)); + /** + * Properties of a google.protobuf.Timestamp message. + * @interface ITimestamp + * @type {Object} + * @property {number|Long} [seconds] + * @property {number} [nanos] + * @memberof common + */ + Timestamp: timeType +}); -// Default type -mime.default_type = mime.lookup('bin'); +common("empty", { -// -// Additional API specific to the default instance -// + /** + * Properties of a google.protobuf.Empty message. + * @interface IEmpty + * @memberof common + */ + Empty: { + fields: {} + } +}); -mime.Mime = Mime; +common("struct", { -/** - * Lookup a charset based on mime type. - */ -mime.charsets = { - lookup: function(mimeType, fallback) { - // Assume text types are utf8 - return (/^text\/|^application\/(javascript|json)/).test(mimeType) ? 'UTF-8' : fallback; - } -}; + /** + * Properties of a google.protobuf.Struct message. + * @interface IStruct + * @type {Object} + * @property {Object.} [fields] + * @memberof common + */ + Struct: { + fields: { + fields: { + keyType: "string", + type: "Value", + id: 1 + } + } + }, -module.exports = mime; + /** + * Properties of a google.protobuf.Value message. + * @interface IValue + * @type {Object} + * @property {string} [kind] + * @property {0} [nullValue] + * @property {number} [numberValue] + * @property {string} [stringValue] + * @property {boolean} [boolValue] + * @property {IStruct} [structValue] + * @property {IListValue} [listValue] + * @memberof common + */ + Value: { + oneofs: { + kind: { + oneof: [ + "nullValue", + "numberValue", + "stringValue", + "boolValue", + "structValue", + "listValue" + ] + } + }, + fields: { + nullValue: { + type: "NullValue", + id: 1 + }, + numberValue: { + type: "double", + id: 2 + }, + stringValue: { + type: "string", + id: 3 + }, + boolValue: { + type: "bool", + id: 4 + }, + structValue: { + type: "Struct", + id: 5 + }, + listValue: { + type: "ListValue", + id: 6 + } + } + }, + NullValue: { + values: { + NULL_VALUE: 0 + } + }, -/***/ }), + /** + * Properties of a google.protobuf.ListValue message. + * @interface IListValue + * @type {Object} + * @property {Array.} [values] + * @memberof common + */ + ListValue: { + fields: { + values: { + rule: "repeated", + type: "Value", + id: 1 + } + } + } +}); -/***/ 73239: -/***/ ((module) => { +common("wrappers", { -/** - * Helpers. - */ + /** + * Properties of a google.protobuf.DoubleValue message. + * @interface IDoubleValue + * @type {Object} + * @property {number} [value] + * @memberof common + */ + DoubleValue: { + fields: { + value: { + type: "double", + id: 1 + } + } + }, -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; + /** + * Properties of a google.protobuf.FloatValue message. + * @interface IFloatValue + * @type {Object} + * @property {number} [value] + * @memberof common + */ + FloatValue: { + fields: { + value: { + type: "float", + id: 1 + } + } + }, -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ + /** + * Properties of a google.protobuf.Int64Value message. + * @interface IInt64Value + * @type {Object} + * @property {number|Long} [value] + * @memberof common + */ + Int64Value: { + fields: { + value: { + type: "int64", + id: 1 + } + } + }, -module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; + /** + * Properties of a google.protobuf.UInt64Value message. + * @interface IUInt64Value + * @type {Object} + * @property {number|Long} [value] + * @memberof common + */ + UInt64Value: { + fields: { + value: { + type: "uint64", + id: 1 + } + } + }, -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ + /** + * Properties of a google.protobuf.Int32Value message. + * @interface IInt32Value + * @type {Object} + * @property {number} [value] + * @memberof common + */ + Int32Value: { + fields: { + value: { + type: "int32", + id: 1 + } + } + }, -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} + /** + * Properties of a google.protobuf.UInt32Value message. + * @interface IUInt32Value + * @type {Object} + * @property {number} [value] + * @memberof common + */ + UInt32Value: { + fields: { + value: { + type: "uint32", + id: 1 + } + } + }, + + /** + * Properties of a google.protobuf.BoolValue message. + * @interface IBoolValue + * @type {Object} + * @property {boolean} [value] + * @memberof common + */ + BoolValue: { + fields: { + value: { + type: "bool", + id: 1 + } + } + }, + + /** + * Properties of a google.protobuf.StringValue message. + * @interface IStringValue + * @type {Object} + * @property {string} [value] + * @memberof common + */ + StringValue: { + fields: { + value: { + type: "string", + id: 1 + } + } + }, + + /** + * Properties of a google.protobuf.BytesValue message. + * @interface IBytesValue + * @type {Object} + * @property {Uint8Array} [value] + * @memberof common + */ + BytesValue: { + fields: { + value: { + type: "bytes", + id: 1 + } + } + } +}); + +common("field_mask", { + + /** + * Properties of a google.protobuf.FieldMask message. + * @interface IDoubleValue + * @type {Object} + * @property {number} [value] + * @memberof common + */ + FieldMask: { + fields: { + paths: { + rule: "repeated", + type: "string", + id: 1 + } + } + } +}); /** - * Short format for `ms`. + * Gets the root definition of the specified common proto file. * - * @param {Number} ms - * @return {String} - * @api private + * Bundled definitions are: + * - google/protobuf/any.proto + * - google/protobuf/duration.proto + * - google/protobuf/empty.proto + * - google/protobuf/field_mask.proto + * - google/protobuf/struct.proto + * - google/protobuf/timestamp.proto + * - google/protobuf/wrappers.proto + * + * @param {string} file Proto file name + * @returns {INamespace|null} Root definition or `null` if not defined */ +common.get = function get(file) { + return common[file] || null; +}; -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} + +/***/ }), + +/***/ 15164: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; /** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private + * Runtime message from/to plain object converters. + * @namespace */ +var converter = exports; -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} +var Enum = __nccwpck_require__(13735), + util = __nccwpck_require__(16914); /** - * Pluralization helper. + * Generates a partial value fromObject conveter. + * @param {Codegen} gen Codegen instance + * @param {Field} field Reflected field + * @param {number} fieldIndex Field index + * @param {string} prop Property reference + * @returns {Codegen} Codegen instance + * @ignore */ +function genValuePartial_fromObject(gen, field, fieldIndex, prop) { + var defaultAlreadyEmitted = false; + /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ + if (field.resolvedType) { + if (field.resolvedType instanceof Enum) { gen + ("switch(d%s){", prop); + for (var values = field.resolvedType.values, keys = Object.keys(values), i = 0; i < keys.length; ++i) { + // enum unknown values passthrough + if (values[keys[i]] === field.typeDefault && !defaultAlreadyEmitted) { gen + ("default:") + ("if(typeof(d%s)===\"number\"){m%s=d%s;break}", prop, prop, prop); + if (!field.repeated) gen // fallback to default value only for + // arrays, to avoid leaving holes. + ("break"); // for non-repeated fields, just ignore + defaultAlreadyEmitted = true; + } + gen + ("case%j:", keys[i]) + ("case %i:", values[keys[i]]) + ("m%s=%j", prop, values[keys[i]]) + ("break"); + } gen + ("}"); + } else gen + ("if(typeof d%s!==\"object\")", prop) + ("throw TypeError(%j)", field.fullName + ": object expected") + ("m%s=types[%i].fromObject(d%s)", prop, fieldIndex, prop); + } else { + var isUnsigned = false; + switch (field.type) { + case "double": + case "float": gen + ("m%s=Number(d%s)", prop, prop); // also catches "NaN", "Infinity" + break; + case "uint32": + case "fixed32": gen + ("m%s=d%s>>>0", prop, prop); + break; + case "int32": + case "sint32": + case "sfixed32": gen + ("m%s=d%s|0", prop, prop); + break; + case "uint64": + isUnsigned = true; + // eslint-disable-next-line no-fallthrough + case "int64": + case "sint64": + case "fixed64": + case "sfixed64": gen + ("if(util.Long)") + ("(m%s=util.Long.fromValue(d%s)).unsigned=%j", prop, prop, isUnsigned) + ("else if(typeof d%s===\"string\")", prop) + ("m%s=parseInt(d%s,10)", prop, prop) + ("else if(typeof d%s===\"number\")", prop) + ("m%s=d%s", prop, prop) + ("else if(typeof d%s===\"object\")", prop) + ("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)", prop, prop, prop, isUnsigned ? "true" : ""); + break; + case "bytes": gen + ("if(typeof d%s===\"string\")", prop) + ("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)", prop, prop, prop) + ("else if(d%s.length >= 0)", prop) + ("m%s=d%s", prop, prop); + break; + case "string": gen + ("m%s=String(d%s)", prop, prop); + break; + case "bool": gen + ("m%s=Boolean(d%s)", prop, prop); + break; + /* default: gen + ("m%s=d%s", prop, prop); + break; */ + } + } + return gen; + /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */ +} -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); +/** + * Generates a plain object to runtime message converter specific to the specified message type. + * @param {Type} mtype Message type + * @returns {Codegen} Codegen instance + */ +converter.fromObject = function fromObject(mtype) { + /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ + var fields = mtype.fieldsArray; + var gen = util.codegen(["d"], mtype.name + "$fromObject") + ("if(d instanceof this.ctor)") + ("return d"); + if (!fields.length) return gen + ("return new this.ctor"); + gen + ("var m=new this.ctor"); + for (var i = 0; i < fields.length; ++i) { + var field = fields[i].resolve(), + prop = util.safeProp(field.name); + + // Map fields + if (field.map) { gen + ("if(d%s){", prop) + ("if(typeof d%s!==\"object\")", prop) + ("throw TypeError(%j)", field.fullName + ": object expected") + ("m%s={}", prop) + ("for(var ks=Object.keys(d%s),i=0;i>>0,m%s.high>>>0).toNumber(%s):m%s", prop, prop, prop, prop, isUnsigned ? "true": "", prop); + break; + case "bytes": gen + ("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s", prop, prop, prop, prop, prop); + break; + default: gen + ("d%s=m%s", prop, prop); + break; + } + } + return gen; + /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */ } +/** + * Generates a runtime message to plain object converter specific to the specified message type. + * @param {Type} mtype Message type + * @returns {Codegen} Codegen instance + */ +converter.toObject = function toObject(mtype) { + /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ + var fields = mtype.fieldsArray.slice().sort(util.compareFieldsById); + if (!fields.length) + return util.codegen()("return {}"); + var gen = util.codegen(["m", "o"], mtype.name + "$toObject") + ("if(!o)") + ("o={}") + ("var d={}"); + + var repeatedFields = [], + mapFields = [], + normalFields = [], + i = 0; + for (; i < fields.length; ++i) + if (!fields[i].partOf) + ( fields[i].resolve().repeated ? repeatedFields + : fields[i].map ? mapFields + : normalFields).push(fields[i]); + + if (repeatedFields.length) { gen + ("if(o.arrays||o.defaults){"); + for (i = 0; i < repeatedFields.length; ++i) gen + ("d%s=[]", util.safeProp(repeatedFields[i].name)); + gen + ("}"); + } + + if (mapFields.length) { gen + ("if(o.objects||o.defaults){"); + for (i = 0; i < mapFields.length; ++i) gen + ("d%s={}", util.safeProp(mapFields[i].name)); + gen + ("}"); + } + + if (normalFields.length) { gen + ("if(o.defaults){"); + for (i = 0; i < normalFields.length; ++i) { + var field = normalFields[i], + prop = util.safeProp(field.name); + if (field.resolvedType instanceof Enum) gen + ("d%s=o.enums===String?%j:%j", prop, field.resolvedType.valuesById[field.typeDefault], field.typeDefault); + else if (field.long) gen + ("if(util.Long){") + ("var n=new util.Long(%i,%i,%j)", field.typeDefault.low, field.typeDefault.high, field.typeDefault.unsigned) + ("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", prop) + ("}else") + ("d%s=o.longs===String?%j:%i", prop, field.typeDefault.toString(), field.typeDefault.toNumber()); + else if (field.bytes) { + var arrayDefault = "[" + Array.prototype.slice.call(field.typeDefault).join(",") + "]"; + gen + ("if(o.bytes===String)d%s=%j", prop, String.fromCharCode.apply(String, field.typeDefault)) + ("else{") + ("d%s=%s", prop, arrayDefault) + ("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", prop, prop) + ("}"); + } else gen + ("d%s=%j", prop, field.typeDefault); // also messages (=null) + } gen + ("}"); + } + var hasKs2 = false; + for (i = 0; i < fields.length; ++i) { + var field = fields[i], + index = mtype._fieldsArray.indexOf(field), + prop = util.safeProp(field.name); + if (field.map) { + if (!hasKs2) { hasKs2 = true; gen + ("var ks2"); + } gen + ("if(m%s&&(ks2=Object.keys(m%s)).length){", prop, prop) + ("d%s={}", prop) + ("for(var j=0;j { +/***/ 29916: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; +module.exports = decoder; -Object.defineProperty(exports, "__esModule", ({ value: true })); +var Enum = __nccwpck_require__(13735), + types = __nccwpck_require__(68077), + util = __nccwpck_require__(16914); -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } +function missing(field) { + return "missing required '" + field.name + "'"; +} -var Stream = _interopDefault(__nccwpck_require__(12781)); -var http = _interopDefault(__nccwpck_require__(13685)); -var Url = _interopDefault(__nccwpck_require__(57310)); -var whatwgUrl = _interopDefault(__nccwpck_require__(27011)); -var https = _interopDefault(__nccwpck_require__(95687)); -var zlib = _interopDefault(__nccwpck_require__(59796)); +/** + * Generates a decoder specific to the specified message type. + * @param {Type} mtype Message type + * @returns {Codegen} Codegen instance + */ +function decoder(mtype) { + /* eslint-disable no-unexpected-multiline */ + var gen = util.codegen(["r", "l", "e"], mtype.name + "$decode") + ("if(!(r instanceof Reader))") + ("r=Reader.create(r)") + ("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (mtype.fieldsArray.filter(function(field) { return field.map; }).length ? ",k,value" : "")) + ("while(r.pos>>3){"); -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js + var i = 0; + for (; i < /* initializes */ mtype.fieldsArray.length; ++i) { + var field = mtype._fieldsArray[i].resolve(), + type = field.resolvedType instanceof Enum ? "int32" : field.type, + ref = "m" + util.safeProp(field.name); gen + ("case %i: {", field.id); + + // Map fields + if (field.map) { gen + ("if(%s===util.emptyObject)", ref) + ("%s={}", ref) + ("var c2 = r.uint32()+r.pos"); + + if (types.defaults[field.keyType] !== undefined) gen + ("k=%j", types.defaults[field.keyType]); + else gen + ("k=null"); + + if (types.defaults[type] !== undefined) gen + ("value=%j", types.defaults[type]); + else gen + ("value=null"); + + gen + ("while(r.pos>>3){") + ("case 1: k=r.%s(); break", field.keyType) + ("case 2:"); + + if (types.basic[type] === undefined) gen + ("value=types[%i].decode(r,r.uint32())", i); // can't be groups + else gen + ("value=r.%s()", type); + + gen + ("break") + ("default:") + ("r.skipType(tag2&7)") + ("break") + ("}") + ("}"); + + if (types.long[field.keyType] !== undefined) gen + ("%s[typeof k===\"object\"?util.longToHash(k):k]=value", ref); + else gen + ("%s[k]=value", ref); + + // Repeated fields + } else if (field.repeated) { gen + + ("if(!(%s&&%s.length))", ref, ref) + ("%s=[]", ref); + + // Packable (always check for forward and backward compatiblity) + if (types.packed[type] !== undefined) gen + ("if((t&7)===2){") + ("var c2=r.uint32()+r.pos") + ("while(r.pos { - const blobParts = arguments[0]; - const options = arguments[1]; +"use strict"; - const buffers = []; - let size = 0; +module.exports = encoder; - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } +var Enum = __nccwpck_require__(13735), + types = __nccwpck_require__(68077), + util = __nccwpck_require__(16914); - this[BUFFER] = Buffer.concat(buffers); +/** + * Generates a partial message type encoder. + * @param {Codegen} gen Codegen instance + * @param {Field} field Reflected field + * @param {number} fieldIndex Field index + * @param {string} ref Variable reference + * @returns {Codegen} Codegen instance + * @ignore + */ +function genTypePartial(gen, field, fieldIndex, ref) { + return field.delimited + ? gen("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", fieldIndex, ref, (field.id << 3 | 3) >>> 0, (field.id << 3 | 4) >>> 0) + : gen("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", fieldIndex, ref, (field.id << 3 | 2) >>> 0); +} - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; +/** + * Generates an encoder specific to the specified message type. + * @param {Type} mtype Message type + * @returns {Codegen} Codegen instance + */ +function encoder(mtype) { + /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ + var gen = util.codegen(["m", "w"], mtype.name + "$encode") + ("if(!w)") + ("w=Writer.create()"); + + var i, ref; + + // "when a message is serialized its known fields should be written sequentially by field number" + var fields = /* initializes */ mtype.fieldsArray.slice().sort(util.compareFieldsById); + + for (var i = 0; i < fields.length; ++i) { + var field = fields[i].resolve(), + index = mtype._fieldsArray.indexOf(field), + type = field.resolvedType instanceof Enum ? "int32" : field.type, + wireType = types.basic[type]; + ref = "m" + util.safeProp(field.name); + + // Map fields + if (field.map) { + gen + ("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", ref, field.name) // !== undefined && !== null + ("for(var ks=Object.keys(%s),i=0;i>> 0, 8 | types.mapKey[field.keyType], field.keyType); + if (wireType === undefined) gen + ("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", index, ref); // can't be groups + else gen + (".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | wireType, type, ref); + gen + ("}") + ("}"); + + // Repeated fields + } else if (field.repeated) { gen + ("if(%s!=null&&%s.length){", ref, ref); // !== undefined && !== null + + // Packed repeated + if (field.packed && types.packed[type] !== undefined) { gen + + ("w.uint32(%i).fork()", (field.id << 3 | 2) >>> 0) + ("for(var i=0;i<%s.length;++i)", ref) + ("w.%s(%s[i])", type, ref) + ("w.ldelim()"); + + // Non-packed + } else { gen + + ("for(var i=0;i<%s.length;++i)", ref); + if (wireType === undefined) + genTypePartial(gen, field, index, ref + "[i]"); + else gen + ("w.uint32(%i).%s(%s[i])", (field.id << 3 | wireType) >>> 0, type, ref); + + } gen + ("}"); + + // Non-repeated + } else { + if (field.optional) gen + ("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", ref, field.name); // !== undefined && !== null - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); + if (wireType === undefined) + genTypePartial(gen, field, index, ref); + else gen + ("w.uint32(%i).%s(%s)", (field.id << 3 | wireType) >>> 0, type, ref); - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } + } + } + + return gen + ("return w"); + /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */ } -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); +/***/ }), -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ +/***/ 13735: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = Enum; + +// extends ReflectionObject +var ReflectionObject = __nccwpck_require__(38653); +((Enum.prototype = Object.create(ReflectionObject.prototype)).constructor = Enum).className = "Enum"; + +var Namespace = __nccwpck_require__(94495), + util = __nccwpck_require__(16914); /** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError + * Constructs a new enum instance. + * @classdesc Reflected enum. + * @extends ReflectionObject + * @constructor + * @param {string} name Unique name within its namespace + * @param {Object.} [values] Enum values as an object, by name + * @param {Object.} [options] Declared options + * @param {string} [comment] The comment for this enum + * @param {Object.} [comments] The value comments for this enum + * @param {Object.>|undefined} [valuesOptions] The value options for this enum */ -function FetchError(message, type, systemError) { - Error.call(this, message); +function Enum(name, values, options, comment, comments, valuesOptions) { + ReflectionObject.call(this, name, options); - this.message = message; - this.type = type; + if (values && typeof values !== "object") + throw TypeError("values must be an object"); - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } + /** + * Enum values by id. + * @type {Object.} + */ + this.valuesById = {}; - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} + /** + * Enum values by name. + * @type {Object.} + */ + this.values = Object.create(this.valuesById); // toJSON, marker -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; + /** + * Enum comment text. + * @type {string|null} + */ + this.comment = comment; -let convert; -try { - convert = (__nccwpck_require__(64818).convert); -} catch (e) {} + /** + * Value comment texts, if any. + * @type {Object.} + */ + this.comments = comments || {}; -const INTERNALS = Symbol('Body internals'); + /** + * Values options, if any + * @type {Object>|undefined} + */ + this.valuesOptions = valuesOptions; -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; + /** + * Resolved values features, if any + * @type {Object>|undefined} + */ + this._valuesFeatures = {}; + + /** + * Reserved ranges, if any. + * @type {Array.} + */ + this.reserved = undefined; // toJSON + + // Note that values inherit valuesById on their prototype which makes them a TypeScript- + // compatible enum. This is used by pbts to write actual enum definitions that work for + // static and reflection code alike instead of emitting generic object definitions. + + if (values) + for (var keys = Object.keys(values), i = 0; i < keys.length; ++i) + if (typeof values[keys[i]] === "number") // use forward entries only + this.valuesById[ this.values[keys[i]] = values[keys[i]] ] = keys[i]; +} /** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void + * @override */ -function Body(body) { - var _this = this; +Enum.prototype._resolveFeatures = function _resolveFeatures(edition) { + edition = this._edition || edition; + ReflectionObject.prototype._resolveFeatures.call(this, edition); - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; + Object.keys(this.values).forEach(key => { + var parentFeaturesCopy = Object.assign({}, this._features); + this._valuesFeatures[key] = Object.assign(parentFeaturesCopy, this.valuesOptions && this.valuesOptions[key] && this.valuesOptions[key].features); + }); - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; + return this; +}; - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; +/** + * Enum descriptor. + * @interface IEnum + * @property {Object.} values Enum values + * @property {Object.} [options] Enum options + */ - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} +/** + * Constructs an enum from an enum descriptor. + * @param {string} name Enum name + * @param {IEnum} json Enum descriptor + * @returns {Enum} Created enum + * @throws {TypeError} If arguments are invalid + */ +Enum.fromJSON = function fromJSON(name, json) { + var enm = new Enum(name, json.values, json.options, json.comment, json.comments); + enm.reserved = json.reserved; + if (json.edition) + enm._edition = json.edition; + enm._defaultEdition = "proto3"; // For backwards-compatibility. + return enm; +}; -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, +/** + * Converts this enum to an enum descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {IEnum} Enum descriptor + */ +Enum.prototype.toJSON = function toJSON(toJSONOptions) { + var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; + return util.toObject([ + "edition" , this._editionToJSON(), + "options" , this.options, + "valuesOptions" , this.valuesOptions, + "values" , this.values, + "reserved" , this.reserved && this.reserved.length ? this.reserved : undefined, + "comment" , keepComments ? this.comment : undefined, + "comments" , keepComments ? this.comments : undefined + ]); +}; - get bodyUsed() { - return this[INTERNALS].disturbed; - }, +/** + * Adds a value to this enum. + * @param {string} name Value name + * @param {number} id Value id + * @param {string} [comment] Comment, if any + * @param {Object.|undefined} [options] Options, if any + * @returns {Enum} `this` + * @throws {TypeError} If arguments are invalid + * @throws {Error} If there is already a value with this name or id + */ +Enum.prototype.add = function add(name, id, comment, options) { + // utilized by the parser but not by .fromJSON - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, + if (!util.isString(name)) + throw TypeError("name must be a string"); - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, + if (!util.isInteger(id)) + throw TypeError("id must be an integer"); - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; + if (this.values[name] !== undefined) + throw Error("duplicate name '" + name + "' in " + this); - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, + if (this.isReservedId(id)) + throw Error("id " + id + " is reserved in " + this); - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, + if (this.isReservedName(name)) + throw Error("name '" + name + "' is reserved in " + this); - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, + if (this.valuesById[id] !== undefined) { + if (!(this.options && this.options.allow_alias)) + throw Error("duplicate id " + id + " in " + this); + this.values[name] = id; + } else + this.valuesById[this.values[name] = id] = name; - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; + if (options) { + if (this.valuesOptions === undefined) + this.valuesOptions = {}; + this.valuesOptions[name] = options || null; + } - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } + this.comments[name] = comment || null; + return this; }; -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); +/** + * Removes a value from this enum + * @param {string} name Value name + * @returns {Enum} `this` + * @throws {TypeError} If arguments are invalid + * @throws {Error} If `name` is not a name of this enum + */ +Enum.prototype.remove = function remove(name) { -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } + if (!util.isString(name)) + throw TypeError("name must be a string"); + + var val = this.values[name]; + if (val == null) + throw Error("name '" + name + "' does not exist in " + this); + + delete this.valuesById[val]; + delete this.values[name]; + delete this.comments[name]; + if (this.valuesOptions) + delete this.valuesOptions[name]; + + return this; }; /** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise + * Tests if the specified id is reserved. + * @param {number} id Id to test + * @returns {boolean} `true` if reserved, otherwise `false` */ -function consumeBody() { - var _this4 = this; +Enum.prototype.isReservedId = function isReservedId(id) { + return Namespace.isReservedId(this.reserved, id); +}; - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } +/** + * Tests if the specified name is reserved. + * @param {string} name Name to test + * @returns {boolean} `true` if reserved, otherwise `false` + */ +Enum.prototype.isReservedName = function isReservedName(name) { + return Namespace.isReservedName(this.reserved, name); +}; - this[INTERNALS].disturbed = true; - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } +/***/ }), - let body = this.body; +/***/ 57380: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } +"use strict"; - // body is blob - if (isBlob(body)) { - body = body.stream(); - } +module.exports = Field; - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } +// extends ReflectionObject +var ReflectionObject = __nccwpck_require__(38653); +((Field.prototype = Object.create(ReflectionObject.prototype)).constructor = Field).className = "Field"; - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } +var Enum = __nccwpck_require__(13735), + types = __nccwpck_require__(68077), + util = __nccwpck_require__(16914); - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; +var Type; // cyclic - return new Body.Promise(function (resolve, reject) { - let resTimeout; +var ruleRe = /^required|optional|repeated$/; - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } +/** + * Constructs a new message field instance. Note that {@link MapField|map fields} have their own class. + * @name Field + * @classdesc Reflected message field. + * @extends FieldBase + * @constructor + * @param {string} name Unique name within its namespace + * @param {number} id Unique id within its namespace + * @param {string} type Value type + * @param {string|Object.} [rule="optional"] Field rule + * @param {string|Object.} [extend] Extended type if different from parent + * @param {Object.} [options] Declared options + */ + +/** + * Constructs a field from a field descriptor. + * @param {string} name Field name + * @param {IField} json Field descriptor + * @returns {Field} Created field + * @throws {TypeError} If arguments are invalid + */ +Field.fromJSON = function fromJSON(name, json) { + var field = new Field(name, json.id, json.type, json.rule, json.extend, json.options, json.comment); + if (json.edition) + field._edition = json.edition; + field._defaultEdition = "proto3"; // For backwards-compatibility. + return field; +}; - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); +/** + * Not an actual constructor. Use {@link Field} instead. + * @classdesc Base class of all reflected message fields. This is not an actual class but here for the sake of having consistent type definitions. + * @exports FieldBase + * @extends ReflectionObject + * @constructor + * @param {string} name Unique name within its namespace + * @param {number} id Unique id within its namespace + * @param {string} type Value type + * @param {string|Object.} [rule="optional"] Field rule + * @param {string|Object.} [extend] Extended type if different from parent + * @param {Object.} [options] Declared options + * @param {string} [comment] Comment associated with this field + */ +function Field(name, id, type, rule, extend, options, comment) { - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } + if (util.isObject(rule)) { + comment = extend; + options = rule; + rule = extend = undefined; + } else if (util.isObject(extend)) { + comment = options; + options = extend; + extend = undefined; + } - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } + ReflectionObject.call(this, name, options); - accumBytes += chunk.length; - accum.push(chunk); - }); + if (!util.isInteger(id) || id < 0) + throw TypeError("id must be a non-negative integer"); - body.on('end', function () { - if (abort) { - return; - } + if (!util.isString(type)) + throw TypeError("type must be a string"); - clearTimeout(resTimeout); + if (rule !== undefined && !ruleRe.test(rule = rule.toString().toLowerCase())) + throw TypeError("rule must be a string rule"); - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} + if (extend !== undefined && !util.isString(extend)) + throw TypeError("extend must be a string"); -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } + /** + * Field rule, if any. + * @type {string|undefined} + */ + if (rule === "proto3_optional") { + rule = "optional"; + } + this.rule = rule && rule !== "optional" ? rule : undefined; // toJSON - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; + /** + * Field type. + * @type {string} + */ + this.type = type; // toJSON - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } + /** + * Unique field id. + * @type {number} + */ + this.id = id; // toJSON, marker - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); + /** + * Extended type if different from parent. + * @type {string|undefined} + */ + this.extend = extend || undefined; // toJSON - // html5 - if (!res && str) { - res = /} [options] Field options + */ /** - * Performs the operation "extract a `Content-Type` value from |object|" as - * specified in the specification: - * https://fetch.spec.whatwg.org/#concept-bodyinit-extract - * - * This function assumes that instance.body is present. - * - * @param Mixed instance Any options.body input + * Extension field descriptor. + * @interface IExtensionField + * @extends IField + * @property {string} extend Extended type */ -function extractContentType(body) { - if (body === null) { - // body is null - return null; - } else if (typeof body === 'string') { - // body is string - return 'text/plain;charset=UTF-8'; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - return 'application/x-www-form-urlencoded;charset=UTF-8'; - } else if (isBlob(body)) { - // body is blob - return body.type || null; - } else if (Buffer.isBuffer(body)) { - // body is buffer - return null; - } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - return null; - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - return null; - } else if (typeof body.getBoundary === 'function') { - // detect form data input from form-data module - return `multipart/form-data;boundary=${body.getBoundary()}`; - } else if (body instanceof Stream) { - // body is stream - // can't really do much about this - return null; - } else { - // Body constructor defaults other things to string - return 'text/plain;charset=UTF-8'; - } -} /** - * The Fetch Standard treats this as if "total bytes" is a property on the body. - * For us, we have to explicitly get it with a function. - * - * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes - * - * @param Body instance Instance of Body - * @return Number? Number of bytes, or null if not possible + * Converts this field to a field descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {IField} Field descriptor */ -function getTotalBytes(instance) { - const body = instance.body; +Field.prototype.toJSON = function toJSON(toJSONOptions) { + var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; + return util.toObject([ + "edition" , this._editionToJSON(), + "rule" , this.rule !== "optional" && this.rule || undefined, + "type" , this.type, + "id" , this.id, + "extend" , this.extend, + "options" , this.options, + "comment" , keepComments ? this.comment : undefined + ]); +}; +/** + * Resolves this field's type references. + * @returns {Field} `this` + * @throws {Error} If any reference cannot be resolved + */ +Field.prototype.resolve = function resolve() { - if (body === null) { - // body is null - return 0; - } else if (isBlob(body)) { - return body.size; - } else if (Buffer.isBuffer(body)) { - // body is buffer - return body.length; - } else if (body && typeof body.getLengthSync === 'function') { - // detect form data input from form-data module - if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x - body.hasKnownLength && body.hasKnownLength()) { - // 2.x - return body.getLengthSync(); - } - return null; - } else { - // body is stream - return null; - } -} + if (this.resolved) + return this; + + if ((this.typeDefault = types.defaults[this.type]) === undefined) { // if not a basic type, resolve it + this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type); + if (this.resolvedType instanceof Type) + this.typeDefault = null; + else // instanceof Enum + this.typeDefault = this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]; // first defined + } else if (this.options && this.options.proto3_optional) { + // proto3 scalar value marked optional; should default to null + this.typeDefault = null; + } + + // use explicitly set default value if present + if (this.options && this.options["default"] != null) { + this.typeDefault = this.options["default"]; + if (this.resolvedType instanceof Enum && typeof this.typeDefault === "string") + this.typeDefault = this.resolvedType.values[this.typeDefault]; + } + + // remove unnecessary options + if (this.options) { + if (this.options.packed !== undefined && this.resolvedType && !(this.resolvedType instanceof Enum)) + delete this.options.packed; + if (!Object.keys(this.options).length) + this.options = undefined; + } + + // convert to internal data type if necesssary + if (this.long) { + this.typeDefault = util.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"); + + /* istanbul ignore else */ + if (Object.freeze) + Object.freeze(this.typeDefault); // long instances are meant to be immutable anyway (i.e. use small int cache that even requires it) + + } else if (this.bytes && typeof this.typeDefault === "string") { + var buf; + if (util.base64.test(this.typeDefault)) + util.base64.decode(this.typeDefault, buf = util.newBuffer(util.base64.length(this.typeDefault)), 0); + else + util.utf8.write(this.typeDefault, buf = util.newBuffer(util.utf8.length(this.typeDefault)), 0); + this.typeDefault = buf; + } + + // take special care of maps and repeated fields + if (this.map) + this.defaultValue = util.emptyObject; + else if (this.repeated) + this.defaultValue = util.emptyArray; + else + this.defaultValue = this.typeDefault; + + // ensure proper value on prototype + if (this.parent instanceof Type) + this.parent.ctor.prototype[this.name] = this.defaultValue; + + return ReflectionObject.prototype.resolve.call(this); +}; /** - * Write a Body to a Node.js WritableStream (e.g. http.Request) object. - * - * @param Body instance Instance of Body - * @return Void + * Infers field features from legacy syntax that may have been specified differently. + * in older editions. + * @param {string|undefined} edition The edition this proto is on, or undefined if pre-editions + * @returns {object} The feature values to override */ -function writeToStream(dest, instance) { - const body = instance.body; +Field.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(edition) { + if (edition !== "proto2" && edition !== "proto3") { + return {}; + } + var features = {}; - if (body === null) { - // body is null - dest.end(); - } else if (isBlob(body)) { - body.stream().pipe(dest); - } else if (Buffer.isBuffer(body)) { - // body is buffer - dest.write(body); - dest.end(); - } else { - // body is stream - body.pipe(dest); - } -} + if (this.rule === "required") { + features.field_presence = "LEGACY_REQUIRED"; + } + if (this.parent && types.defaults[this.type] === undefined) { + // We can't use resolvedType because types may not have been resolved yet. However, + // legacy groups are always in the same scope as the field so we don't have to do a + // full scan of the tree. + var type = this.parent.get(this.type.split(".").pop()); + if (type && type instanceof Type && type.group) { + features.message_encoding = "DELIMITED"; + } + } + if (this.getOption("packed") === true) { + features.repeated_field_encoding = "PACKED"; + } else if (this.getOption("packed") === false) { + features.repeated_field_encoding = "EXPANDED"; + } + return features; +}; -// expose Promise -Body.Promise = global.Promise; +/** + * @override + */ +Field.prototype._resolveFeatures = function _resolveFeatures(edition) { + return ReflectionObject.prototype._resolveFeatures.call(this, this._edition || edition); +}; /** - * headers.js - * - * Headers class offers convenient helpers + * Decorator function as returned by {@link Field.d} and {@link MapField.d} (TypeScript). + * @typedef FieldDecorator + * @type {function} + * @param {Object} prototype Target prototype + * @param {string} fieldName Field name + * @returns {undefined} */ -const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/; -const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/; +/** + * Field decorator (TypeScript). + * @name Field.d + * @function + * @param {number} fieldId Field id + * @param {"double"|"float"|"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"string"|"bool"|"bytes"|Object} fieldType Field type + * @param {"optional"|"required"|"repeated"} [fieldRule="optional"] Field rule + * @param {T} [defaultValue] Default value + * @returns {FieldDecorator} Decorator function + * @template T extends number | number[] | Long | Long[] | string | string[] | boolean | boolean[] | Uint8Array | Uint8Array[] | Buffer | Buffer[] + */ +Field.d = function decorateField(fieldId, fieldType, fieldRule, defaultValue) { -function validateName(name) { - name = `${name}`; - if (invalidTokenRegex.test(name) || name === '') { - throw new TypeError(`${name} is not a legal HTTP header name`); - } -} + // submessage: decorate the submessage and use its name as the type + if (typeof fieldType === "function") + fieldType = util.decorateType(fieldType).name; -function validateValue(value) { - value = `${value}`; - if (invalidHeaderCharRegex.test(value)) { - throw new TypeError(`${value} is not a legal HTTP header value`); - } -} + // enum reference: create a reflected copy of the enum and keep reuseing it + else if (fieldType && typeof fieldType === "object") + fieldType = util.decorateEnum(fieldType).name; + + return function fieldDecorator(prototype, fieldName) { + util.decorateType(prototype.constructor) + .add(new Field(fieldName, fieldId, fieldType, fieldRule, { "default": defaultValue })); + }; +}; /** - * Find the key in the map object given a header name. - * - * Returns undefined if not found. - * - * @param String name Header name - * @return String|Undefined + * Field decorator (TypeScript). + * @name Field.d + * @function + * @param {number} fieldId Field id + * @param {Constructor|string} fieldType Field type + * @param {"optional"|"required"|"repeated"} [fieldRule="optional"] Field rule + * @returns {FieldDecorator} Decorator function + * @template T extends Message + * @variation 2 */ -function find(map, name) { - name = name.toLowerCase(); - for (const key in map) { - if (key.toLowerCase() === name) { - return key; - } - } - return undefined; -} +// like Field.d but without a default value -const MAP = Symbol('map'); -class Headers { - /** - * Headers class - * - * @param Object headers Response headers - * @return Void - */ - constructor() { - let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; +// Sets up cyclic dependencies (called in index-light) +Field._configure = function configure(Type_) { + Type = Type_; +}; - this[MAP] = Object.create(null); - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); +/***/ }), - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } +/***/ 61545: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - return; - } +"use strict"; - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } +var protobuf = module.exports = __nccwpck_require__(66014); - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } +protobuf.build = "light"; - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } +/** + * A node-style callback as used by {@link load} and {@link Root#load}. + * @typedef LoadCallback + * @type {function} + * @param {Error|null} error Error, if any, otherwise `null` + * @param {Root} [root] Root, if there hasn't been an error + * @returns {undefined} + */ - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } +/** + * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback. + * @param {string|string[]} filename One or multiple files to load + * @param {Root} root Root namespace, defaults to create a new one if omitted. + * @param {LoadCallback} callback Callback function + * @returns {undefined} + * @see {@link Root#load} + */ +function load(filename, root, callback) { + if (typeof root === "function") { + callback = root; + root = new protobuf.Root(); + } else if (!root) + root = new protobuf.Root(); + return root.load(filename, callback); +} - return this[MAP][key].join(', '); - } +/** + * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback. + * @name load + * @function + * @param {string|string[]} filename One or multiple files to load + * @param {LoadCallback} callback Callback function + * @returns {undefined} + * @see {@link Root#load} + * @variation 2 + */ +// function load(filename:string, callback:LoadCallback):undefined - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; +/** + * Loads one or multiple .proto or preprocessed .json files into a common root namespace and returns a promise. + * @name load + * @function + * @param {string|string[]} filename One or multiple files to load + * @param {Root} [root] Root namespace, defaults to create a new one if omitted. + * @returns {Promise} Promise + * @see {@link Root#load} + * @variation 3 + */ +// function load(filename:string, [root:Root]):Promise - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; +protobuf.load = load; - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } +/** + * Synchronously loads one or multiple .proto or preprocessed .json files into a common root namespace (node only). + * @param {string|string[]} filename One or multiple files to load + * @param {Root} [root] Root namespace, defaults to create a new one if omitted. + * @returns {Root} Root namespace + * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid + * @see {@link Root#loadSync} + */ +function loadSync(filename, root) { + if (!root) + root = new protobuf.Root(); + return root.loadSync(filename); +} - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } +protobuf.loadSync = loadSync; - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } +// Serialization +protobuf.encoder = __nccwpck_require__(74532); +protobuf.decoder = __nccwpck_require__(29916); +protobuf.verifier = __nccwpck_require__(43360); +protobuf.converter = __nccwpck_require__(15164); - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } +// Reflection +protobuf.ReflectionObject = __nccwpck_require__(38653); +protobuf.Namespace = __nccwpck_require__(94495); +protobuf.Root = __nccwpck_require__(86902); +protobuf.Enum = __nccwpck_require__(13735); +protobuf.Type = __nccwpck_require__(22534); +protobuf.Field = __nccwpck_require__(57380); +protobuf.OneOf = __nccwpck_require__(18269); +protobuf.MapField = __nccwpck_require__(78755); +protobuf.Service = __nccwpck_require__(68019); +protobuf.Method = __nccwpck_require__(9327); + +// Runtime +protobuf.Message = __nccwpck_require__(60603); +protobuf.wrappers = __nccwpck_require__(37566); + +// Utility +protobuf.types = __nccwpck_require__(68077); +protobuf.util = __nccwpck_require__(16914); + +// Set up possibly cyclic reflection dependencies +protobuf.ReflectionObject._configure(protobuf.Root); +protobuf.Namespace._configure(protobuf.Type, protobuf.Service, protobuf.Enum); +protobuf.Root._configure(protobuf.Type); +protobuf.Field._configure(protobuf.Type); + + +/***/ }), + +/***/ 66014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } +"use strict"; - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } +var protobuf = exports; - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } +/** + * Build type, one of `"full"`, `"light"` or `"minimal"`. + * @name build + * @type {string} + * @const + */ +protobuf.build = "minimal"; - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } +// Serialization +protobuf.Writer = __nccwpck_require__(65469); +protobuf.BufferWriter = __nccwpck_require__(75350); +protobuf.Reader = __nccwpck_require__(28177); +protobuf.BufferReader = __nccwpck_require__(50666); - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } +// Utility +protobuf.util = __nccwpck_require__(85526); +protobuf.rpc = __nccwpck_require__(14139); +protobuf.roots = __nccwpck_require__(29); +protobuf.configure = configure; + +/* istanbul ignore next */ +/** + * Reconfigures the library according to the environment. + * @returns {undefined} + */ +function configure() { + protobuf.util._configure(); + protobuf.Writer._configure(protobuf.BufferWriter); + protobuf.Reader._configure(protobuf.BufferReader); } -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); +// Set up buffer utility according to the environment +configure(); -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; +/***/ }), - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} +/***/ 9768: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const INTERNAL = Symbol('internal'); +"use strict"; -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} +var protobuf = module.exports = __nccwpck_require__(61545); -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } +protobuf.build = "full"; - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; +// Parser +protobuf.tokenize = __nccwpck_require__(83267); +protobuf.parse = __nccwpck_require__(93499); +protobuf.common = __nccwpck_require__(38091); - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } +// Configure parser +protobuf.Root._configure(protobuf.Type, protobuf.parse, protobuf.common); - this[INTERNAL].index = index + 1; - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); +/***/ }), -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); +/***/ 78755: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = MapField; + +// extends Field +var Field = __nccwpck_require__(57380); +((MapField.prototype = Object.create(Field.prototype)).constructor = MapField).className = "MapField"; + +var types = __nccwpck_require__(68077), + util = __nccwpck_require__(16914); /** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object + * Constructs a new map field instance. + * @classdesc Reflected map field. + * @extends FieldBase + * @constructor + * @param {string} name Unique name within its namespace + * @param {number} id Unique id within its namespace + * @param {string} keyType Key type + * @param {string} type Value type + * @param {Object.} [options] Declared options + * @param {string} [comment] Comment associated with this field */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); +function MapField(name, id, keyType, type, options, comment) { + Field.call(this, name, id, type, undefined, undefined, options, comment); - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } + /* istanbul ignore if */ + if (!util.isString(keyType)) + throw TypeError("keyType must be a string"); - return obj; + /** + * Key type. + * @type {string} + */ + this.keyType = keyType; // toJSON, marker + + /** + * Resolved key type if not a basic type. + * @type {ReflectionObject|null} + */ + this.resolvedKeyType = null; + + // Overrides Field#map + this.map = true; } /** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers + * Map field descriptor. + * @interface IMapField + * @extends {IField} + * @property {string} keyType Key type */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} -const INTERNALS$1 = Symbol('Response internals'); +/** + * Extension map field descriptor. + * @interface IExtensionMapField + * @extends IMapField + * @property {string} extend Extended type + */ -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; +/** + * Constructs a map field from a map field descriptor. + * @param {string} name Field name + * @param {IMapField} json Map field descriptor + * @returns {MapField} Created map field + * @throws {TypeError} If arguments are invalid + */ +MapField.fromJSON = function fromJSON(name, json) { + return new MapField(name, json.id, json.keyType, json.type, json.options, json.comment); +}; /** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void + * Converts this map field to a map field descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {IMapField} Map field descriptor */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; +MapField.prototype.toJSON = function toJSON(toJSONOptions) { + var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; + return util.toObject([ + "keyType" , this.keyType, + "type" , this.type, + "id" , this.id, + "extend" , this.extend, + "options" , this.options, + "comment" , keepComments ? this.comment : undefined + ]); +}; - Body.call(this, body, opts); +/** + * @override + */ +MapField.prototype.resolve = function resolve() { + if (this.resolved) + return this; - const status = opts.status || 200; - const headers = new Headers(opts.headers); + // Besides a value type, map fields have a key type that may be "any scalar type except for floating point types and bytes" + if (types.mapKey[this.keyType] === undefined) + throw Error("invalid key type: " + this.keyType); - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } + return Field.prototype.resolve.call(this); +}; - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } +/** + * Map field decorator (TypeScript). + * @name MapField.d + * @function + * @param {number} fieldId Field id + * @param {"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"} fieldKeyType Field key type + * @param {"double"|"float"|"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"|"bytes"|Object|Constructor<{}>} fieldValueType Field value type + * @returns {FieldDecorator} Decorator function + * @template T extends { [key: string]: number | Long | string | boolean | Uint8Array | Buffer | number[] | Message<{}> } + */ +MapField.d = function decorateMapField(fieldId, fieldKeyType, fieldValueType) { - get url() { - return this[INTERNALS$1].url || ''; - } + // submessage value: decorate the submessage and use its name as the type + if (typeof fieldValueType === "function") + fieldValueType = util.decorateType(fieldValueType).name; - get status() { - return this[INTERNALS$1].status; - } + // enum reference value: create a reflected copy of the enum and keep reuseing it + else if (fieldValueType && typeof fieldValueType === "object") + fieldValueType = util.decorateEnum(fieldValueType).name; - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } + return function mapFieldDecorator(prototype, fieldName) { + util.decorateType(prototype.constructor) + .add(new MapField(fieldName, fieldId, fieldKeyType, fieldValueType)); + }; +}; - get redirected() { - return this[INTERNALS$1].counter > 0; - } - get statusText() { - return this[INTERNALS$1].statusText; - } +/***/ }), - get headers() { - return this[INTERNALS$1].headers; - } +/***/ 60603: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } +"use strict"; + +module.exports = Message; + +var util = __nccwpck_require__(85526); + +/** + * Constructs a new message instance. + * @classdesc Abstract runtime message. + * @constructor + * @param {Properties} [properties] Properties to set + * @template T extends object = object + */ +function Message(properties) { + // not used internally + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + this[keys[i]] = properties[keys[i]]; } -Body.mixIn(Response.prototype); +/** + * Reference to the reflected type. + * @name Message.$type + * @type {Type} + * @readonly + */ -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); +/** + * Reference to the reflected type. + * @name Message#$type + * @type {Type} + * @readonly + */ -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); +/*eslint-disable valid-jsdoc*/ -const INTERNALS$2 = Symbol('Request internals'); -const URL = Url.URL || whatwgUrl.URL; +/** + * Creates a new message of this type using the specified properties. + * @param {Object.} [properties] Properties to set + * @returns {Message} Message instance + * @template T extends Message + * @this Constructor + */ +Message.create = function create(properties) { + return this.$type.create(properties); +}; -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; +/** + * Encodes a message of this type. + * @param {T|Object.} message Message to encode + * @param {Writer} [writer] Writer to use + * @returns {Writer} Writer + * @template T extends Message + * @this Constructor + */ +Message.encode = function encode(message, writer) { + return this.$type.encode(message, writer); +}; /** - * Wrapper around `new URL` to handle arbitrary URLs - * - * @param {string} urlStr - * @return {void} + * Encodes a message of this type preceeded by its length as a varint. + * @param {T|Object.} message Message to encode + * @param {Writer} [writer] Writer to use + * @returns {Writer} Writer + * @template T extends Message + * @this Constructor */ -function parseURL(urlStr) { - /* - Check whether the URL is absolute or not - Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 - Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 +Message.encodeDelimited = function encodeDelimited(message, writer) { + return this.$type.encodeDelimited(message, writer); +}; + +/** + * Decodes a message of this type. + * @name Message.decode + * @function + * @param {Reader|Uint8Array} reader Reader or buffer to decode + * @returns {T} Decoded message + * @template T extends Message + * @this Constructor */ - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL(urlStr).toString(); - } +Message.decode = function decode(reader) { + return this.$type.decode(reader); +}; - // Fallback to old implementation for arbitrary URLs - return parse_url(urlStr); -} +/** + * Decodes a message of this type preceeded by its length as a varint. + * @name Message.decodeDelimited + * @function + * @param {Reader|Uint8Array} reader Reader or buffer to decode + * @returns {T} Decoded message + * @template T extends Message + * @this Constructor + */ +Message.decodeDelimited = function decodeDelimited(reader) { + return this.$type.decodeDelimited(reader); +}; -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; +/** + * Verifies a message of this type. + * @name Message.verify + * @function + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ +Message.verify = function verify(message) { + return this.$type.verify(message); +}; /** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean + * Creates a new message of this type from a plain object. Also converts values to their respective internal types. + * @param {Object.} object Plain object + * @returns {T} Message instance + * @template T extends Message + * @this Constructor */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} +Message.fromObject = function fromObject(object) { + return this.$type.fromObject(object); +}; -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} +/** + * Creates a plain object from a message of this type. Also converts values to other types if specified. + * @param {T} message Message instance + * @param {IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + * @template T extends Message + * @this Constructor + */ +Message.toObject = function toObject(message, options) { + return this.$type.toObject(message, options); +}; /** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void + * Converts this message to JSON. + * @returns {Object.} JSON object */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; +Message.prototype.toJSON = function toJSON() { + return this.$type.toObject(this, util.toJSONOptions); +}; - let parsedURL; +/*eslint-enable valid-jsdoc*/ - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parseURL(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parseURL(`${input}`); - } - input = {}; - } else { - parsedURL = parseURL(input.url); - } +/***/ }), - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); +/***/ 9327: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } +"use strict"; - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; +module.exports = Method; - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); +// extends ReflectionObject +var ReflectionObject = __nccwpck_require__(38653); +((Method.prototype = Object.create(ReflectionObject.prototype)).constructor = Method).className = "Method"; - const headers = new Headers(init.headers || input.headers || {}); +var util = __nccwpck_require__(16914); - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } +/** + * Constructs a new service method instance. + * @classdesc Reflected service method. + * @extends ReflectionObject + * @constructor + * @param {string} name Method name + * @param {string|undefined} type Method type, usually `"rpc"` + * @param {string} requestType Request message type + * @param {string} responseType Response message type + * @param {boolean|Object.} [requestStream] Whether the request is streamed + * @param {boolean|Object.} [responseStream] Whether the response is streamed + * @param {Object.} [options] Declared options + * @param {string} [comment] The comment for this method + * @param {Object.} [parsedOptions] Declared options, properly parsed into an object + */ +function Method(name, type, requestType, responseType, requestStream, responseStream, options, comment, parsedOptions) { - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; + /* istanbul ignore next */ + if (util.isObject(requestStream)) { + options = requestStream; + requestStream = responseStream = undefined; + } else if (util.isObject(responseStream)) { + options = responseStream; + responseStream = undefined; + } - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } + /* istanbul ignore if */ + if (!(type === undefined || util.isString(type))) + throw TypeError("type must be a string"); - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; + /* istanbul ignore if */ + if (!util.isString(requestType)) + throw TypeError("requestType must be a string"); - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } + /* istanbul ignore if */ + if (!util.isString(responseType)) + throw TypeError("responseType must be a string"); - get method() { - return this[INTERNALS$2].method; - } + ReflectionObject.call(this, name, options); - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } + /** + * Method type. + * @type {string} + */ + this.type = type || "rpc"; // toJSON - get headers() { - return this[INTERNALS$2].headers; - } + /** + * Request type. + * @type {string} + */ + this.requestType = requestType; // toJSON, marker - get redirect() { - return this[INTERNALS$2].redirect; - } + /** + * Whether requests are streamed or not. + * @type {boolean|undefined} + */ + this.requestStream = requestStream ? true : undefined; // toJSON - get signal() { - return this[INTERNALS$2].signal; - } + /** + * Response type. + * @type {string} + */ + this.responseType = responseType; // toJSON - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } + /** + * Whether responses are streamed or not. + * @type {boolean|undefined} + */ + this.responseStream = responseStream ? true : undefined; // toJSON + + /** + * Resolved request type. + * @type {Type|null} + */ + this.resolvedRequestType = null; + + /** + * Resolved response type. + * @type {Type|null} + */ + this.resolvedResponseType = null; + + /** + * Comment for this method + * @type {string|null} + */ + this.comment = comment; + + /** + * Options properly parsed into an object + */ + this.parsedOptions = parsedOptions; } -Body.mixIn(Request.prototype); +/** + * Method descriptor. + * @interface IMethod + * @property {string} [type="rpc"] Method type + * @property {string} requestType Request type + * @property {string} responseType Response type + * @property {boolean} [requestStream=false] Whether requests are streamed + * @property {boolean} [responseStream=false] Whether responses are streamed + * @property {Object.} [options] Method options + * @property {string} comment Method comments + * @property {Object.} [parsedOptions] Method options properly parsed into an object + */ -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); +/** + * Constructs a method from a method descriptor. + * @param {string} name Method name + * @param {IMethod} json Method descriptor + * @returns {Method} Created method + * @throws {TypeError} If arguments are invalid + */ +Method.fromJSON = function fromJSON(name, json) { + return new Method(name, json.type, json.requestType, json.responseType, json.requestStream, json.responseStream, json.options, json.comment, json.parsedOptions); +}; -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); +/** + * Converts this method to a method descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {IMethod} Method descriptor + */ +Method.prototype.toJSON = function toJSON(toJSONOptions) { + var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; + return util.toObject([ + "type" , this.type !== "rpc" && /* istanbul ignore next */ this.type || undefined, + "requestType" , this.requestType, + "requestStream" , this.requestStream, + "responseType" , this.responseType, + "responseStream" , this.responseStream, + "options" , this.options, + "comment" , keepComments ? this.comment : undefined, + "parsedOptions" , this.parsedOptions, + ]); +}; /** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request + * @override */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); +Method.prototype.resolve = function resolve() { - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } + /* istanbul ignore if */ + if (this.resolved) + return this; - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } + this.resolvedRequestType = this.parent.lookupType(this.requestType); + this.resolvedResponseType = this.parent.lookupType(this.responseType); - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } + return ReflectionObject.prototype.resolve.call(this); +}; - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } +/***/ }), - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } +/***/ 94495: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } +"use strict"; - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } +module.exports = Namespace; - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js +// extends ReflectionObject +var ReflectionObject = __nccwpck_require__(38653); +((Namespace.prototype = Object.create(ReflectionObject.prototype)).constructor = Namespace).className = "Namespace"; - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); +var Field = __nccwpck_require__(57380), + util = __nccwpck_require__(16914), + OneOf = __nccwpck_require__(18269); + +var Type, // cyclic + Service, + Enum; + +/** + * Constructs a new namespace instance. + * @name Namespace + * @classdesc Reflected namespace. + * @extends NamespaceBase + * @constructor + * @param {string} name Namespace name + * @param {Object.} [options] Declared options + */ + +/** + * Constructs a namespace from JSON. + * @memberof Namespace + * @function + * @param {string} name Namespace name + * @param {Object.} json JSON object + * @returns {Namespace} Created namespace + * @throws {TypeError} If arguments are invalid + */ +Namespace.fromJSON = function fromJSON(name, json) { + return new Namespace(name, json.options).addJSON(json.nested); +}; + +/** + * Converts an array of reflection objects to JSON. + * @memberof Namespace + * @param {ReflectionObject[]} array Object array + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {Object.|undefined} JSON object or `undefined` when array is empty + */ +function arrayToJSON(array, toJSONOptions) { + if (!(array && array.length)) + return undefined; + var obj = {}; + for (var i = 0; i < array.length; ++i) + obj[array[i].name] = array[i].toJSON(toJSONOptions); + return obj; } +Namespace.arrayToJSON = arrayToJSON; + /** - * abort-error.js - * - * AbortError interface for cancelled requests + * Tests if the specified id is reserved. + * @param {Array.|undefined} reserved Array of reserved ranges and names + * @param {number} id Id to test + * @returns {boolean} `true` if reserved, otherwise `false` */ +Namespace.isReservedId = function isReservedId(reserved, id) { + if (reserved) + for (var i = 0; i < reserved.length; ++i) + if (typeof reserved[i] !== "string" && reserved[i][0] <= id && reserved[i][1] > id) + return true; + return false; +}; /** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError + * Tests if the specified name is reserved. + * @param {Array.|undefined} reserved Array of reserved ranges and names + * @param {string} name Name to test + * @returns {boolean} `true` if reserved, otherwise `false` */ -function AbortError(message) { - Error.call(this, message); +Namespace.isReservedName = function isReservedName(reserved, name) { + if (reserved) + for (var i = 0; i < reserved.length; ++i) + if (reserved[i] === name) + return true; + return false; +}; - this.type = 'aborted'; - this.message = message; +/** + * Not an actual constructor. Use {@link Namespace} instead. + * @classdesc Base class of all reflection objects containing nested objects. This is not an actual class but here for the sake of having consistent type definitions. + * @exports NamespaceBase + * @extends ReflectionObject + * @abstract + * @constructor + * @param {string} name Namespace name + * @param {Object.} [options] Declared options + * @see {@link Namespace} + */ +function Namespace(name, options) { + ReflectionObject.call(this, name, options); - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); + /** + * Nested objects by name. + * @type {Object.|undefined} + */ + this.nested = undefined; // toJSON + + /** + * Cached nested objects as an array. + * @type {ReflectionObject[]|null} + * @private + */ + this._nestedArray = null; + + /** + * Cache lookup calls for any objects contains anywhere under this namespace. + * This drastically speeds up resolve for large cross-linked protos where the same + * types are looked up repeatedly. + * @type {Object.} + * @private + */ + this._lookupCache = {}; + + /** + * Whether or not objects contained in this namespace need feature resolution. + * @type {boolean} + * @protected + */ + this._needsRecursiveFeatureResolution = true; + + /** + * Whether or not objects contained in this namespace need a resolve. + * @type {boolean} + * @protected + */ + this._needsRecursiveResolve = true; } -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; +function clearCache(namespace) { + namespace._nestedArray = null; + namespace._lookupCache = {}; -const URL$1 = Url.URL || whatwgUrl.URL; + // Also clear parent caches, since they include nested lookups. + var parent = namespace; + while(parent = parent.parent) { + parent._lookupCache = {}; + } + return namespace; +} -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; +/** + * Nested objects of this namespace as an array for iteration. + * @name NamespaceBase#nestedArray + * @type {ReflectionObject[]} + * @readonly + */ +Object.defineProperty(Namespace.prototype, "nestedArray", { + get: function() { + return this._nestedArray || (this._nestedArray = util.toArray(this.nested)); + } +}); -const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { - const orig = new URL$1(original).hostname; - const dest = new URL$1(destination).hostname; +/** + * Namespace descriptor. + * @interface INamespace + * @property {Object.} [options] Namespace options + * @property {Object.} [nested] Nested object descriptors + */ - return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); +/** + * Any extension field descriptor. + * @typedef AnyExtensionField + * @type {IExtensionField|IExtensionMapField} + */ + +/** + * Any nested object descriptor. + * @typedef AnyNestedObject + * @type {IEnum|IType|IService|AnyExtensionField|INamespace|IOneOf} + */ + +/** + * Converts this namespace to a namespace descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {INamespace} Namespace descriptor + */ +Namespace.prototype.toJSON = function toJSON(toJSONOptions) { + return util.toObject([ + "options" , this.options, + "nested" , arrayToJSON(this.nestedArray, toJSONOptions) + ]); }; /** - * isSameProtocol reports whether the two provided URLs use the same protocol. - * - * Both domains must already be in canonical form. - * @param {string|URL} original - * @param {string|URL} destination + * Adds nested objects to this namespace from nested object descriptors. + * @param {Object.} nestedJson Any nested object descriptors + * @returns {Namespace} `this` + */ +Namespace.prototype.addJSON = function addJSON(nestedJson) { + var ns = this; + /* istanbul ignore else */ + if (nestedJson) { + for (var names = Object.keys(nestedJson), i = 0, nested; i < names.length; ++i) { + nested = nestedJson[names[i]]; + ns.add( // most to least likely + ( nested.fields !== undefined + ? Type.fromJSON + : nested.values !== undefined + ? Enum.fromJSON + : nested.methods !== undefined + ? Service.fromJSON + : nested.id !== undefined + ? Field.fromJSON + : Namespace.fromJSON )(names[i], nested) + ); + } + } + return this; +}; + +/** + * Gets the nested object of the specified name. + * @param {string} name Nested object name + * @returns {ReflectionObject|null} The reflection object or `null` if it doesn't exist */ -const isSameProtocol = function isSameProtocol(destination, original) { - const orig = new URL$1(original).protocol; - const dest = new URL$1(destination).protocol; +Namespace.prototype.get = function get(name) { + return this.nested && this.nested[name] + || null; +}; - return orig === dest; +/** + * Gets the values of the nested {@link Enum|enum} of the specified name. + * This methods differs from {@link Namespace#get|get} in that it returns an enum's values directly and throws instead of returning `null`. + * @param {string} name Nested enum name + * @returns {Object.} Enum values + * @throws {Error} If there is no such enum + */ +Namespace.prototype.getEnum = function getEnum(name) { + if (this.nested && this.nested[name] instanceof Enum) + return this.nested[name].values; + throw Error("no such enum: " + name); }; /** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise + * Adds a nested object to this namespace. + * @param {ReflectionObject} object Nested object to add + * @returns {Namespace} `this` + * @throws {TypeError} If arguments are invalid + * @throws {Error} If there is already a nested object with this name */ -function fetch(url, opts) { +Namespace.prototype.add = function add(object) { - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } + if (!(object instanceof Field && object.extend !== undefined || object instanceof Type || object instanceof OneOf || object instanceof Enum || object instanceof Service || object instanceof Namespace)) + throw TypeError("object must be a valid nested object"); - Body.Promise = fetch.Promise; + if (!this.nested) + this.nested = {}; + else { + var prev = this.get(object.name); + if (prev) { + if (prev instanceof Namespace && object instanceof Namespace && !(prev instanceof Type || prev instanceof Service)) { + // replace plain namespace but keep existing nested elements and options + var nested = prev.nestedArray; + for (var i = 0; i < nested.length; ++i) + object.add(nested[i]); + this.remove(prev); + if (!this.nested) + this.nested = {}; + object.setOptions(prev.options, true); - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); + } else + throw Error("duplicate name '" + object.name + "' in " + this); + } + } + this.nested[object.name] = object; - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; + if (!(this instanceof Type || this instanceof Service || this instanceof Enum || this instanceof Field)) { + // This is a package or a root namespace. + if (!object._edition) { + // Make sure that some edition is set if it hasn't already been specified. + object._edition = object._defaultEdition; + } + } - let response = null; + this._needsRecursiveFeatureResolution = true; + this._needsRecursiveResolve = true; - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - destroyStream(request.body, error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; + // Also clear parent caches, since they need to recurse down. + var parent = this; + while(parent = parent.parent) { + parent._needsRecursiveFeatureResolution = true; + parent._needsRecursiveResolve = true; + } - if (signal && signal.aborted) { - abort(); - return; - } + object.onAdd(this); + return clearCache(this); +}; - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; +/** + * Removes a nested object from this namespace. + * @param {ReflectionObject} object Nested object to remove + * @returns {Namespace} `this` + * @throws {TypeError} If arguments are invalid + * @throws {Error} If `object` is not a member of this namespace + */ +Namespace.prototype.remove = function remove(object) { - // send request - const req = send(options); - let reqTimeout; + if (!(object instanceof ReflectionObject)) + throw TypeError("object must be a ReflectionObject"); + if (object.parent !== this) + throw Error(object + " is not a member of " + this); - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } + delete this.nested[object.name]; + if (!Object.keys(this.nested).length) + this.nested = undefined; - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } + object.onRemove(this); + return clearCache(this); +}; - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } +/** + * Defines additial namespaces within this one if not yet existing. + * @param {string|string[]} path Path to create + * @param {*} [json] Nested types to create from JSON + * @returns {Namespace} Pointer to the last namespace created or `this` if path is empty + */ +Namespace.prototype.define = function define(path, json) { + + if (util.isString(path)) + path = path.split("."); + else if (!Array.isArray(path)) + throw TypeError("illegal path"); + if (path && path.length && path[0] === "") + throw Error("path must be relative"); + + var ptr = this; + while (path.length > 0) { + var part = path.shift(); + if (ptr.nested && ptr.nested[part]) { + ptr = ptr.nested[part]; + if (!(ptr instanceof Namespace)) + throw Error("path conflicts with non-namespace objects"); + } else + ptr.add(ptr = new Namespace(part)); + } + if (json) + ptr.addJSON(json); + return ptr; +}; - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); +/** + * Resolves this namespace's and all its nested objects' type references. Useful to validate a reflection tree, but comes at a cost. + * @returns {Namespace} `this` + */ +Namespace.prototype.resolveAll = function resolveAll() { + if (!this._needsRecursiveResolve) return this; - if (response && response.body) { - destroyStream(response.body, err); - } + this._resolveFeaturesRecursive(this._edition); - finalize(); - }); + var nested = this.nestedArray, i = 0; + this.resolve(); + while (i < nested.length) + if (nested[i] instanceof Namespace) + nested[i++].resolveAll(); + else + nested[i++].resolve(); + this._needsRecursiveResolve = false; + return this; +}; - fixResponseChunkedTransferBadEnding(req, function (err) { - if (signal && signal.aborted) { - return; - } +/** + * @override + */ +Namespace.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { + if (!this._needsRecursiveFeatureResolution) return this; + this._needsRecursiveFeatureResolution = false; - if (response && response.body) { - destroyStream(response.body, err); - } - }); + edition = this._edition || edition; - /* c8 ignore next 18 */ - if (parseInt(process.version.substring(1)) < 14) { - // Before Node.js 14, pipeline() does not fully support async iterators and does not always - // properly handle when the socket close/end events are out of order. - req.on('socket', function (s) { - s.addListener('close', function (hadError) { - // if a data listener is still present we didn't end cleanly - const hasDataListener = s.listenerCount('data') > 0; + ReflectionObject.prototype._resolveFeaturesRecursive.call(this, edition); + this.nestedArray.forEach(nested => { + nested._resolveFeaturesRecursive(edition); + }); + return this; +}; - // if end happened before close but the socket didn't emit an error, do it now - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - response.body.emit('error', err); - } - }); - }); - } +/** + * Recursively looks up the reflection object matching the specified path in the scope of this namespace. + * @param {string|string[]} path Path to look up + * @param {*|Array.<*>} filterTypes Filter types, any combination of the constructors of `protobuf.Type`, `protobuf.Enum`, `protobuf.Service` etc. + * @param {boolean} [parentAlreadyChecked=false] If known, whether the parent has already been checked + * @returns {ReflectionObject|null} Looked up object or `null` if none could be found + */ +Namespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChecked) { + /* istanbul ignore next */ + if (typeof filterTypes === "boolean") { + parentAlreadyChecked = filterTypes; + filterTypes = undefined; + } else if (filterTypes && !Array.isArray(filterTypes)) + filterTypes = [ filterTypes ]; + + if (util.isString(path) && path.length) { + if (path === ".") + return this.root; + path = path.split("."); + } else if (!path.length) + return this; - req.on('response', function (res) { - clearTimeout(reqTimeout); + var flatPath = path.join("."); - const headers = createHeadersLenient(res.headers); + // Start at root if path is absolute + if (path[0] === "") + return this.root.lookup(path.slice(1), filterTypes); - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); + // Early bailout for objects with matching absolute paths + var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath]; + if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) { + return found; + } - // HTTP fetch step 5.3 - let locationURL = null; - try { - locationURL = location === null ? null : new URL$1(location, request.url).toString(); - } catch (err) { - // error here can only be invalid URL in Location: header - // do not throw when options.redirect == manual - // let the user extract the errorneous redirect URL - if (request.redirect !== 'manual') { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); - finalize(); - return; - } - } + // Do a regular lookup at this namespace and below + found = this._lookupImpl(path, flatPath); + if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) { + return found; + } - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } + if (parentAlreadyChecked) + return null; - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } + // If there hasn't been a match, walk up the tree and look more broadly + var current = this; + while (current.parent) { + found = current.parent._lookupImpl(path, flatPath); + if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) { + return found; + } + current = current.parent; + } + return null; +}; - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; +/** + * Internal helper for lookup that handles searching just at this namespace and below along with caching. + * @param {string[]} path Path to look up + * @param {string} flatPath Flattened version of the path to use as a cache key + * @returns {ReflectionObject|null} Looked up object or `null` if none could be found + * @private + */ +Namespace.prototype._lookupImpl = function lookup(path, flatPath) { + if(Object.prototype.hasOwnProperty.call(this._lookupCache, flatPath)) { + return this._lookupCache[flatPath]; + } - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { - requestOpts.headers.delete(name); - } - } + // Test if the first part matches any nested object, and if so, traverse if path contains more + var found = this.get(path[0]); + var exact = null; + if (found) { + if (path.length === 1) { + exact = found; + } else if (found instanceof Namespace) { + path = path.slice(1); + exact = found._lookupImpl(path, path.join(".")); + } - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } + // Otherwise try each nested namespace + } else { + for (var i = 0; i < this.nestedArray.length; ++i) + if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath))) + exact = found; + } - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } + // Set this even when null, so that when we walk up the tree we can quickly bail on repeated checks back down. + this._lookupCache[flatPath] = exact; + return exact; +}; - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } +/** + * Looks up the reflection object at the specified path, relative to this namespace. + * @name NamespaceBase#lookup + * @function + * @param {string|string[]} path Path to look up + * @param {boolean} [parentAlreadyChecked=false] Whether the parent has already been checked + * @returns {ReflectionObject|null} Looked up object or `null` if none could be found + * @variation 2 + */ +// lookup(path: string, [parentAlreadyChecked: boolean]) - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); +/** + * Looks up the {@link Type|type} at the specified path, relative to this namespace. + * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. + * @param {string|string[]} path Path to look up + * @returns {Type} Looked up type + * @throws {Error} If `path` does not point to a type + */ +Namespace.prototype.lookupType = function lookupType(path) { + var found = this.lookup(path, [ Type ]); + if (!found) + throw Error("no such type: " + path); + return found; +}; - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; +/** + * Looks up the values of the {@link Enum|enum} at the specified path, relative to this namespace. + * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. + * @param {string|string[]} path Path to look up + * @returns {Enum} Looked up enum + * @throws {Error} If `path` does not point to an enum + */ +Namespace.prototype.lookupEnum = function lookupEnum(path) { + var found = this.lookup(path, [ Enum ]); + if (!found) + throw Error("no such Enum '" + path + "' in " + this); + return found; +}; - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); +/** + * Looks up the {@link Type|type} or {@link Enum|enum} at the specified path, relative to this namespace. + * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. + * @param {string|string[]} path Path to look up + * @returns {Type} Looked up type or enum + * @throws {Error} If `path` does not point to a type or enum + */ +Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path) { + var found = this.lookup(path, [ Type, Enum ]); + if (!found) + throw Error("no such Type or Enum '" + path + "' in " + this); + return found; +}; - // HTTP-network fetch step 12.1.1.4: handle content codings +/** + * Looks up the {@link Service|service} at the specified path, relative to this namespace. + * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. + * @param {string|string[]} path Path to look up + * @returns {Service} Looked up service + * @throws {Error} If `path` does not point to a service + */ +Namespace.prototype.lookupService = function lookupService(path) { + var found = this.lookup(path, [ Service ]); + if (!found) + throw Error("no such Service '" + path + "' in " + this); + return found; +}; - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } +// Sets up cyclic dependencies (called in index-light) +Namespace._configure = function(Type_, Service_, Enum_) { + Type = Type_; + Service = Service_; + Enum = Enum_; +}; - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } +/***/ }), - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - raw.on('end', function () { - // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. - if (!response) { - response = new Response(body, response_options); - resolve(response); - } - }); - return; - } +/***/ 38653: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = ReflectionObject; + +ReflectionObject.className = "ReflectionObject"; + +const OneOf = __nccwpck_require__(18269); +var util = __nccwpck_require__(16914); + +var Root; // cyclic + +/* eslint-disable no-warning-comments */ +// TODO: Replace with embedded proto. +var editions2023Defaults = {enum_type: "OPEN", field_presence: "EXPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY"}; +var proto2Defaults = {enum_type: "CLOSED", field_presence: "EXPLICIT", json_format: "LEGACY_BEST_EFFORT", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "EXPANDED", utf8_validation: "NONE"}; +var proto3Defaults = {enum_type: "OPEN", field_presence: "IMPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY"}; + +/** + * Constructs a new reflection object instance. + * @classdesc Base class of all reflection objects. + * @constructor + * @param {string} name Object name + * @param {Object.} [options] Declared options + * @abstract + */ +function ReflectionObject(name, options) { + + if (!util.isString(name)) + throw TypeError("name must be a string"); + + if (options && !util.isObject(options)) + throw TypeError("options must be an object"); + + /** + * Options. + * @type {Object.|undefined} + */ + this.options = options; // toJSON + + /** + * Parsed Options. + * @type {Array.>|undefined} + */ + this.parsedOptions = null; + + /** + * Unique name within its namespace. + * @type {string} + */ + this.name = name; + + /** + * The edition specified for this object. Only relevant for top-level objects. + * @type {string} + * @private + */ + this._edition = null; + + /** + * The default edition to use for this object if none is specified. For legacy reasons, + * this is proto2 except in the JSON parsing case where it was proto3. + * @type {string} + * @private + */ + this._defaultEdition = "proto2"; + + /** + * Resolved Features. + * @type {object} + * @private + */ + this._features = {}; + + /** + * Whether or not features have been resolved. + * @type {boolean} + * @private + */ + this._featuresResolved = false; + + /** + * Parent namespace. + * @type {Namespace|null} + */ + this.parent = null; + + /** + * Whether already resolved or not. + * @type {boolean} + */ + this.resolved = false; + + /** + * Comment text, if any. + * @type {string|null} + */ + this.comment = null; + + /** + * Defining file name. + * @type {string|null} + */ + this.filename = null; +} + +Object.defineProperties(ReflectionObject.prototype, { + + /** + * Reference to the root namespace. + * @name ReflectionObject#root + * @type {Root} + * @readonly + */ + root: { + get: function() { + var ptr = this; + while (ptr.parent !== null) + ptr = ptr.parent; + return ptr; + } + }, + + /** + * Full name including leading dot. + * @name ReflectionObject#fullName + * @type {string} + * @readonly + */ + fullName: { + get: function() { + var path = [ this.name ], + ptr = this.parent; + while (ptr) { + path.unshift(ptr.name); + ptr = ptr.parent; + } + return path.join("."); + } + } +}); + +/** + * Converts this reflection object to its descriptor representation. + * @returns {Object.} Descriptor + * @abstract + */ +ReflectionObject.prototype.toJSON = /* istanbul ignore next */ function toJSON() { + throw Error(); // not implemented, shouldn't happen +}; + +/** + * Called when this object is added to a parent. + * @param {ReflectionObject} parent Parent added to + * @returns {undefined} + */ +ReflectionObject.prototype.onAdd = function onAdd(parent) { + if (this.parent && this.parent !== parent) + this.parent.remove(this); + this.parent = parent; + this.resolved = false; + var root = parent.root; + if (root instanceof Root) + root._handleAdd(this); +}; + +/** + * Called when this object is removed from a parent. + * @param {ReflectionObject} parent Parent removed from + * @returns {undefined} + */ +ReflectionObject.prototype.onRemove = function onRemove(parent) { + var root = parent.root; + if (root instanceof Root) + root._handleRemove(this); + this.parent = null; + this.resolved = false; +}; + +/** + * Resolves this objects type references. + * @returns {ReflectionObject} `this` + */ +ReflectionObject.prototype.resolve = function resolve() { + if (this.resolved) + return this; + if (this.root instanceof Root) + this.resolved = true; // only if part of a root + return this; +}; + +/** + * Resolves this objects editions features. + * @param {string} edition The edition we're currently resolving for. + * @returns {ReflectionObject} `this` + */ +ReflectionObject.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { + return this._resolveFeatures(this._edition || edition); +}; - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } +/** + * Resolves child features from parent features + * @param {string} edition The edition we're currently resolving for. + * @returns {undefined} + */ +ReflectionObject.prototype._resolveFeatures = function _resolveFeatures(edition) { + if (this._featuresResolved) { + return; + } - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); + var defaults = {}; - writeToStream(req, request); - }); -} -function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; + /* istanbul ignore if */ + if (!edition) { + throw new Error("Unknown edition for " + this.fullName); + } - request.on('socket', function (s) { - socket = s; - }); + var protoFeatures = Object.assign(this.options ? Object.assign({}, this.options.features) : {}, + this._inferLegacyProtoFeatures(edition)); - request.on('response', function (response) { - const headers = response.headers; + if (this._edition) { + // For a namespace marked with a specific edition, reset defaults. + /* istanbul ignore else */ + if (edition === "proto2") { + defaults = Object.assign({}, proto2Defaults); + } else if (edition === "proto3") { + defaults = Object.assign({}, proto3Defaults); + } else if (edition === "2023") { + defaults = Object.assign({}, editions2023Defaults); + } else { + throw new Error("Unknown edition: " + edition); + } + this._features = Object.assign(defaults, protoFeatures || {}); + this._featuresResolved = true; + return; + } - if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { - response.once('close', function (hadError) { - // tests for socket presence, as in some situations the - // the 'socket' event is not triggered for the request - // (happens in deno), avoids `TypeError` - // if a data listener is still present we didn't end cleanly - const hasDataListener = socket && socket.listenerCount('data') > 0; + // fields in Oneofs aren't actually children of them, so we have to + // special-case it + /* istanbul ignore else */ + if (this.partOf instanceof OneOf) { + var lexicalParentFeaturesCopy = Object.assign({}, this.partOf._features); + this._features = Object.assign(lexicalParentFeaturesCopy, protoFeatures || {}); + } else if (this.declaringField) { + // Skip feature resolution of sister fields. + } else if (this.parent) { + var parentFeaturesCopy = Object.assign({}, this.parent._features); + this._features = Object.assign(parentFeaturesCopy, protoFeatures || {}); + } else { + throw new Error("Unable to find a parent for " + this.fullName); + } + if (this.extensionField) { + // Sister fields should have the same features as their extensions. + this.extensionField._features = this._features; + } + this._featuresResolved = true; +}; - if (hasDataListener && !hadError) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - errorCallback(err); - } - }); - } - }); -} +/** + * Infers features from legacy syntax that may have been specified differently. + * in older editions. + * @param {string|undefined} edition The edition this proto is on, or undefined if pre-editions + * @returns {object} The feature values to override + */ +ReflectionObject.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(/*edition*/) { + return {}; +}; -function destroyStream(stream, err) { - if (stream.destroy) { - stream.destroy(err); - } else { - // node < 8 - stream.emit('error', err); - stream.end(); - } -} +/** + * Gets an option value. + * @param {string} name Option name + * @returns {*} Option value or `undefined` if not set + */ +ReflectionObject.prototype.getOption = function getOption(name) { + if (this.options) + return this.options[name]; + return undefined; +}; /** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean + * Sets an option. + * @param {string} name Option name + * @param {*} value Option value + * @param {boolean|undefined} [ifNotSet] Sets the option only if it isn't currently set + * @returns {ReflectionObject} `this` */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; +ReflectionObject.prototype.setOption = function setOption(name, value, ifNotSet) { + if (!this.options) + this.options = {}; + if (/^features\./.test(name)) { + util.setProperty(this.options, name, value, ifNotSet); + } else if (!ifNotSet || this.options[name] === undefined) { + if (this.getOption(name) !== value) this.resolved = false; + this.options[name] = value; + } + + return this; }; -// expose Promise -fetch.Promise = global.Promise; +/** + * Sets a parsed option. + * @param {string} name parsed Option name + * @param {*} value Option value + * @param {string} propName dot '.' delimited full path of property within the option to set. if undefined\empty, will add a new option with that value + * @returns {ReflectionObject} `this` + */ +ReflectionObject.prototype.setParsedOption = function setParsedOption(name, value, propName) { + if (!this.parsedOptions) { + this.parsedOptions = []; + } + var parsedOptions = this.parsedOptions; + if (propName) { + // If setting a sub property of an option then try to merge it + // with an existing option + var opt = parsedOptions.find(function (opt) { + return Object.prototype.hasOwnProperty.call(opt, name); + }); + if (opt) { + // If we found an existing option - just merge the property value + // (If it's a feature, will just write over) + var newValue = opt[name]; + util.setProperty(newValue, propName, value); + } else { + // otherwise, create a new option, set its property and add it to the list + opt = {}; + opt[name] = util.setProperty({}, propName, value); + parsedOptions.push(opt); + } + } else { + // Always create a new option when setting the value of the option itself + var newOpt = {}; + newOpt[name] = value; + parsedOptions.push(newOpt); + } -module.exports = exports = fetch; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = exports; -exports.Headers = Headers; -exports.Request = Request; -exports.Response = Response; -exports.FetchError = FetchError; -exports.AbortError = AbortError; + return this; +}; + +/** + * Sets multiple options. + * @param {Object.} options Options to set + * @param {boolean} [ifNotSet] Sets an option only if it isn't currently set + * @returns {ReflectionObject} `this` + */ +ReflectionObject.prototype.setOptions = function setOptions(options, ifNotSet) { + if (options) + for (var keys = Object.keys(options), i = 0; i < keys.length; ++i) + this.setOption(keys[i], options[keys[i]], ifNotSet); + return this; +}; + +/** + * Converts this instance to its string representation. + * @returns {string} Class name[, space, full name] + */ +ReflectionObject.prototype.toString = function toString() { + var className = this.constructor.className, + fullName = this.fullName; + if (fullName.length) + return className + " " + fullName; + return className; +}; + +/** + * Converts the edition this object is pinned to for JSON format. + * @returns {string|undefined} The edition string for JSON representation + */ +ReflectionObject.prototype._editionToJSON = function _editionToJSON() { + if (!this._edition || this._edition === "proto3") { + // Avoid emitting proto3 since we need to default to it for backwards + // compatibility anyway. + return undefined; + } + return this._edition; +}; + +// Sets up cyclic dependencies (called in index-light) +ReflectionObject._configure = function(Root_) { + Root = Root_; +}; /***/ }), -/***/ 24658: +/***/ 18269: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +"use strict"; + +module.exports = OneOf; + +// extends ReflectionObject +var ReflectionObject = __nccwpck_require__(38653); +((OneOf.prototype = Object.create(ReflectionObject.prototype)).constructor = OneOf).className = "OneOf"; + +var Field = __nccwpck_require__(57380), + util = __nccwpck_require__(16914); + /** - * Advanced Encryption Standard (AES) implementation. - * - * This implementation is based on the public domain library 'jscrypto' which - * was written by: - * - * Emily Stark (estark@stanford.edu) - * Mike Hamburg (mhamburg@stanford.edu) - * Dan Boneh (dabo@cs.stanford.edu) - * - * Parts of this code are based on the OpenSSL implementation of AES: - * http://www.openssl.org - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * Constructs a new oneof instance. + * @classdesc Reflected oneof. + * @extends ReflectionObject + * @constructor + * @param {string} name Oneof name + * @param {string[]|Object.} [fieldNames] Field names + * @param {Object.} [options] Declared options + * @param {string} [comment] Comment associated with this field */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(80723); -__nccwpck_require__(56923); -__nccwpck_require__(21720); +function OneOf(name, fieldNames, options, comment) { + if (!Array.isArray(fieldNames)) { + options = fieldNames; + fieldNames = undefined; + } + ReflectionObject.call(this, name, options); -/* AES API */ -module.exports = forge.aes = forge.aes || {}; + /* istanbul ignore if */ + if (!(fieldNames === undefined || Array.isArray(fieldNames))) + throw TypeError("fieldNames must be an Array"); + + /** + * Field names that belong to this oneof. + * @type {string[]} + */ + this.oneof = fieldNames || []; // toJSON, marker + + /** + * Fields that belong to this oneof as an array for iteration. + * @type {Field[]} + * @readonly + */ + this.fieldsArray = []; // declared readonly for conformance, possibly not yet added to parent + + /** + * Comment for this field. + * @type {string|null} + */ + this.comment = comment; +} /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('AES-', key); - * cipher.start({iv: iv}); - * - * Creates an AES cipher object to encrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as a string of bytes, an array of bytes, - * a byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * Oneof descriptor. + * @interface IOneOf + * @property {Array.} oneof Oneof field names + * @property {Object.} [options] Oneof options */ -forge.aes.startEncrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: false, - mode: mode - }); - cipher.start(iv); - return cipher; -}; /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('AES-', key); - * - * Creates an AES cipher object to encrypt data using the given symmetric key. - * - * The key may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * Constructs a oneof from a oneof descriptor. + * @param {string} name Oneof name + * @param {IOneOf} json Oneof descriptor + * @returns {OneOf} Created oneof + * @throws {TypeError} If arguments are invalid */ -forge.aes.createEncryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: false, - mode: mode - }); +OneOf.fromJSON = function fromJSON(name, json) { + return new OneOf(name, json.oneof, json.options, json.comment); }; /** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('AES-', key); - * decipher.start({iv: iv}); - * - * Creates an AES cipher object to decrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as a string of bytes, an array of bytes, - * a byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * Converts this oneof to a oneof descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {IOneOf} Oneof descriptor */ -forge.aes.startDecrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: true, - mode: mode - }); - cipher.start(iv); - return cipher; +OneOf.prototype.toJSON = function toJSON(toJSONOptions) { + var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; + return util.toObject([ + "options" , this.options, + "oneof" , this.oneof, + "comment" , keepComments ? this.comment : undefined + ]); }; /** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('AES-', key); - * - * Creates an AES cipher object to decrypt data using the given symmetric key. - * - * The key may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * Adds the fields of the specified oneof to the parent if not already done so. + * @param {OneOf} oneof The oneof + * @returns {undefined} + * @inner + * @ignore */ -forge.aes.createDecryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: true, - mode: mode - }); -}; +function addFieldsToParent(oneof) { + if (oneof.parent) + for (var i = 0; i < oneof.fieldsArray.length; ++i) + if (!oneof.fieldsArray[i].parent) + oneof.parent.add(oneof.fieldsArray[i]); +} /** - * Creates a new AES cipher algorithm object. - * - * @param name the name of the algorithm. - * @param mode the mode factory function. - * - * @return the AES algorithm object. + * Adds a field to this oneof and removes it from its current parent, if any. + * @param {Field} field Field to add + * @returns {OneOf} `this` */ -forge.aes.Algorithm = function(name, mode) { - if(!init) { - initialize(); - } - var self = this; - self.name = name; - self.mode = new mode({ - blockSize: 16, - cipher: { - encrypt: function(inBlock, outBlock) { - return _updateBlock(self._w, inBlock, outBlock, false); - }, - decrypt: function(inBlock, outBlock) { - return _updateBlock(self._w, inBlock, outBlock, true); - } - } - }); - self._init = false; +OneOf.prototype.add = function add(field) { + + /* istanbul ignore if */ + if (!(field instanceof Field)) + throw TypeError("field must be a Field"); + + if (field.parent && field.parent !== this.parent) + field.parent.remove(field); + this.oneof.push(field.name); + this.fieldsArray.push(field); + field.partOf = this; // field.parent remains null + addFieldsToParent(this); + return this; }; /** - * Initializes this AES algorithm by expanding its key. - * - * @param options the options to use. - * key the key to use with this algorithm. - * decrypt true if the algorithm should be initialized for decryption, - * false for encryption. + * Removes a field from this oneof and puts it back to the oneof's parent. + * @param {Field} field Field to remove + * @returns {OneOf} `this` */ -forge.aes.Algorithm.prototype.initialize = function(options) { - if(this._init) { - return; - } - - var key = options.key; - var tmp; +OneOf.prototype.remove = function remove(field) { - /* Note: The key may be a string of bytes, an array of bytes, a byte - buffer, or an array of 32-bit integers. If the key is in bytes, then - it must be 16, 24, or 32 bytes in length. If it is in 32-bit - integers, it must be 4, 6, or 8 integers long. */ + /* istanbul ignore if */ + if (!(field instanceof Field)) + throw TypeError("field must be a Field"); - if(typeof key === 'string' && - (key.length === 16 || key.length === 24 || key.length === 32)) { - // convert key string into byte buffer - key = forge.util.createBuffer(key); - } else if(forge.util.isArray(key) && - (key.length === 16 || key.length === 24 || key.length === 32)) { - // convert key integer array into byte buffer - tmp = key; - key = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - key.putByte(tmp[i]); - } - } + var index = this.fieldsArray.indexOf(field); - // convert key byte buffer into 32-bit integer array - if(!forge.util.isArray(key)) { - tmp = key; - key = []; + /* istanbul ignore if */ + if (index < 0) + throw Error(field + " is not a member of " + this); - // key lengths of 16, 24, 32 bytes allowed - var len = tmp.length(); - if(len === 16 || len === 24 || len === 32) { - len = len >>> 2; - for(var i = 0; i < len; ++i) { - key.push(tmp.getInt32()); - } - } - } + this.fieldsArray.splice(index, 1); + index = this.oneof.indexOf(field.name); - // key must be an array of 32-bit integers by now - if(!forge.util.isArray(key) || - !(key.length === 4 || key.length === 6 || key.length === 8)) { - throw new Error('Invalid key parameter.'); - } + /* istanbul ignore else */ + if (index > -1) // theoretical + this.oneof.splice(index, 1); - // encryption operation is always used for these modes - var mode = this.mode.name; - var encryptOp = (['CFB', 'OFB', 'CTR', 'GCM'].indexOf(mode) !== -1); + field.partOf = null; + return this; +}; - // do key expansion - this._w = _expandKey(key, options.decrypt && !encryptOp); - this._init = true; +/** + * @override + */ +OneOf.prototype.onAdd = function onAdd(parent) { + ReflectionObject.prototype.onAdd.call(this, parent); + var self = this; + // Collect present fields + for (var i = 0; i < this.oneof.length; ++i) { + var field = parent.get(this.oneof[i]); + if (field && !field.partOf) { + field.partOf = self; + self.fieldsArray.push(field); + } + } + // Add not yet present fields + addFieldsToParent(this); }; /** - * Expands a key. Typically only used for testing. - * - * @param key the symmetric key to expand, as an array of 32-bit words. - * @param decrypt true to expand for decryption, false for encryption. - * - * @return the expanded key. + * @override */ -forge.aes._expandKey = function(key, decrypt) { - if(!init) { - initialize(); - } - return _expandKey(key, decrypt); +OneOf.prototype.onRemove = function onRemove(parent) { + for (var i = 0, field; i < this.fieldsArray.length; ++i) + if ((field = this.fieldsArray[i]).parent) + field.parent.remove(field); + ReflectionObject.prototype.onRemove.call(this, parent); }; /** - * Updates a single block. Typically only used for testing. - * - * @param w the expanded key to use. - * @param input an array of block-size 32-bit words. - * @param output an array of block-size 32-bit words. - * @param decrypt true to decrypt, false to encrypt. + * Determines whether this field corresponds to a synthetic oneof created for + * a proto3 optional field. No behavioral logic should depend on this, but it + * can be relevant for reflection. + * @name OneOf#isProto3Optional + * @type {boolean} + * @readonly */ -forge.aes._updateBlock = _updateBlock; +Object.defineProperty(OneOf.prototype, "isProto3Optional", { + get: function() { + if (this.fieldsArray == null || this.fieldsArray.length !== 1) { + return false; + } -/** Register AES algorithms **/ + var field = this.fieldsArray[0]; + return field.options != null && field.options["proto3_optional"] === true; + } +}); -registerAlgorithm('AES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('AES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('AES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('AES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('AES-CTR', forge.cipher.modes.ctr); -registerAlgorithm('AES-GCM', forge.cipher.modes.gcm); +/** + * Decorator function as returned by {@link OneOf.d} (TypeScript). + * @typedef OneOfDecorator + * @type {function} + * @param {Object} prototype Target prototype + * @param {string} oneofName OneOf name + * @returns {undefined} + */ -function registerAlgorithm(name, mode) { - var factory = function() { - return new forge.aes.Algorithm(name, mode); - }; - forge.cipher.registerAlgorithm(name, factory); -} +/** + * OneOf decorator (TypeScript). + * @function + * @param {...string} fieldNames Field names + * @returns {OneOfDecorator} Decorator function + * @template T extends string + */ +OneOf.d = function decorateOneOf() { + var fieldNames = new Array(arguments.length), + index = 0; + while (index < arguments.length) + fieldNames[index] = arguments[index++]; + return function oneOfDecorator(prototype, oneofName) { + util.decorateType(prototype.constructor) + .add(new OneOf(oneofName, fieldNames)); + Object.defineProperty(prototype, oneofName, { + get: util.oneOfGetter(fieldNames), + set: util.oneOfSetter(fieldNames) + }); + }; +}; -/** AES implementation **/ -var init = false; // not yet initialized -var Nb = 4; // number of words comprising the state (AES = 4) -var sbox; // non-linear substitution table used in key expansion -var isbox; // inversion of sbox -var rcon; // round constant word array -var mix; // mix-columns table -var imix; // inverse mix-columns table +/***/ }), + +/***/ 93499: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = parse; + +parse.filename = null; +parse.defaults = { keepCase: false }; + +var tokenize = __nccwpck_require__(83267), + Root = __nccwpck_require__(86902), + Type = __nccwpck_require__(22534), + Field = __nccwpck_require__(57380), + MapField = __nccwpck_require__(78755), + OneOf = __nccwpck_require__(18269), + Enum = __nccwpck_require__(13735), + Service = __nccwpck_require__(68019), + Method = __nccwpck_require__(9327), + ReflectionObject = __nccwpck_require__(38653), + types = __nccwpck_require__(68077), + util = __nccwpck_require__(16914); + +var base10Re = /^[1-9][0-9]*$/, + base10NegRe = /^-?[1-9][0-9]*$/, + base16Re = /^0[x][0-9a-fA-F]+$/, + base16NegRe = /^-?0[x][0-9a-fA-F]+$/, + base8Re = /^0[0-7]+$/, + base8NegRe = /^-?0[0-7]+$/, + numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/, + nameRe = /^[a-zA-Z_][a-zA-Z_0-9]*$/, + typeRefRe = /^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/; /** - * Performs initialization, ie: precomputes tables to optimize for speed. - * - * One way to understand how AES works is to imagine that 'addition' and - * 'multiplication' are interfaces that require certain mathematical - * properties to hold true (ie: they are associative) but they might have - * different implementations and produce different kinds of results ... - * provided that their mathematical properties remain true. AES defines - * its own methods of addition and multiplication but keeps some important - * properties the same, ie: associativity and distributivity. The - * explanation below tries to shed some light on how AES defines addition - * and multiplication of bytes and 32-bit words in order to perform its - * encryption and decryption algorithms. - * - * The basics: - * - * The AES algorithm views bytes as binary representations of polynomials - * that have either 1 or 0 as the coefficients. It defines the addition - * or subtraction of two bytes as the XOR operation. It also defines the - * multiplication of two bytes as a finite field referred to as GF(2^8) - * (Note: 'GF' means "Galois Field" which is a field that contains a finite - * number of elements so GF(2^8) has 256 elements). - * - * This means that any two bytes can be represented as binary polynomials; - * when they multiplied together and modularly reduced by an irreducible - * polynomial of the 8th degree, the results are the field GF(2^8). The - * specific irreducible polynomial that AES uses in hexadecimal is 0x11b. - * This multiplication is associative with 0x01 as the identity: - * - * (b * 0x01 = GF(b, 0x01) = b). - * - * The operation GF(b, 0x02) can be performed at the byte level by left - * shifting b once and then XOR'ing it (to perform the modular reduction) - * with 0x11b if b is >= 128. Repeated application of the multiplication - * of 0x02 can be used to implement the multiplication of any two bytes. - * - * For instance, multiplying 0x57 and 0x13, denoted as GF(0x57, 0x13), can - * be performed by factoring 0x13 into 0x01, 0x02, and 0x10. Then these - * factors can each be multiplied by 0x57 and then added together. To do - * the multiplication, values for 0x57 multiplied by each of these 3 factors - * can be precomputed and stored in a table. To add them, the values from - * the table are XOR'd together. - * - * AES also defines addition and multiplication of words, that is 4-byte - * numbers represented as polynomials of 3 degrees where the coefficients - * are the values of the bytes. - * - * The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0. - * - * Addition is performed by XOR'ing like powers of x. Multiplication - * is performed in two steps, the first is an algebriac expansion as - * you would do normally (where addition is XOR). But the result is - * a polynomial larger than 3 degrees and thus it cannot fit in a word. So - * next the result is modularly reduced by an AES-specific polynomial of - * degree 4 which will always produce a polynomial of less than 4 degrees - * such that it will fit in a word. In AES, this polynomial is x^4 + 1. - * - * The modular product of two polynomials 'a' and 'b' is thus: - * - * d(x) = d3x^3 + d2x^2 + d1x + d0 - * with - * d0 = GF(a0, b0) ^ GF(a3, b1) ^ GF(a2, b2) ^ GF(a1, b3) - * d1 = GF(a1, b0) ^ GF(a0, b1) ^ GF(a3, b2) ^ GF(a2, b3) - * d2 = GF(a2, b0) ^ GF(a1, b1) ^ GF(a0, b2) ^ GF(a3, b3) - * d3 = GF(a3, b0) ^ GF(a2, b1) ^ GF(a1, b2) ^ GF(a0, b3) - * - * As a matrix: - * - * [d0] = [a0 a3 a2 a1][b0] - * [d1] [a1 a0 a3 a2][b1] - * [d2] [a2 a1 a0 a3][b2] - * [d3] [a3 a2 a1 a0][b3] - * - * Special polynomials defined by AES (0x02 == {02}): - * a(x) = {03}x^3 + {01}x^2 + {01}x + {02} - * a^-1(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}. - * - * These polynomials are used in the MixColumns() and InverseMixColumns() - * operations, respectively, to cause each element in the state to affect - * the output (referred to as diffusing). - * - * RotWord() uses: a0 = a1 = a2 = {00} and a3 = {01}, which is the - * polynomial x3. - * - * The ShiftRows() method modifies the last 3 rows in the state (where - * the state is 4 words with 4 bytes per word) by shifting bytes cyclically. - * The 1st byte in the second row is moved to the end of the row. The 1st - * and 2nd bytes in the third row are moved to the end of the row. The 1st, - * 2nd, and 3rd bytes are moved in the fourth row. - * - * More details on how AES arithmetic works: - * - * In the polynomial representation of binary numbers, XOR performs addition - * and subtraction and multiplication in GF(2^8) denoted as GF(a, b) - * corresponds with the multiplication of polynomials modulo an irreducible - * polynomial of degree 8. In other words, for AES, GF(a, b) will multiply - * polynomial 'a' with polynomial 'b' and then do a modular reduction by - * an AES-specific irreducible polynomial of degree 8. - * - * A polynomial is irreducible if its only divisors are one and itself. For - * the AES algorithm, this irreducible polynomial is: - * - * m(x) = x^8 + x^4 + x^3 + x + 1, - * - * or {01}{1b} in hexadecimal notation, where each coefficient is a bit: - * 100011011 = 283 = 0x11b. - * - * For example, GF(0x57, 0x83) = 0xc1 because - * - * 0x57 = 87 = 01010111 = x^6 + x^4 + x^2 + x + 1 - * 0x85 = 131 = 10000101 = x^7 + x + 1 - * - * (x^6 + x^4 + x^2 + x + 1) * (x^7 + x + 1) - * = x^13 + x^11 + x^9 + x^8 + x^7 + - * x^7 + x^5 + x^3 + x^2 + x + - * x^6 + x^4 + x^2 + x + 1 - * = x^13 + x^11 + x^9 + x^8 + x^6 + x^5 + x^4 + x^3 + 1 = y - * y modulo (x^8 + x^4 + x^3 + x + 1) - * = x^7 + x^6 + 1. - * - * The modular reduction by m(x) guarantees the result will be a binary - * polynomial of less than degree 8, so that it can fit in a byte. - * - * The operation to multiply a binary polynomial b with x (the polynomial - * x in binary representation is 00000010) is: - * - * b_7x^8 + b_6x^7 + b_5x^6 + b_4x^5 + b_3x^4 + b_2x^3 + b_1x^2 + b_0x^1 - * - * To get GF(b, x) we must reduce that by m(x). If b_7 is 0 (that is the - * most significant bit is 0 in b) then the result is already reduced. If - * it is 1, then we can reduce it by subtracting m(x) via an XOR. - * - * It follows that multiplication by x (00000010 or 0x02) can be implemented - * by performing a left shift followed by a conditional bitwise XOR with - * 0x1b. This operation on bytes is denoted by xtime(). Multiplication by - * higher powers of x can be implemented by repeated application of xtime(). - * - * By adding intermediate results, multiplication by any constant can be - * implemented. For instance: - * - * GF(0x57, 0x13) = 0xfe because: - * - * xtime(b) = (b & 128) ? (b << 1 ^ 0x11b) : (b << 1) - * - * Note: We XOR with 0x11b instead of 0x1b because in javascript our - * datatype for b can be larger than 1 byte, so a left shift will not - * automatically eliminate bits that overflow a byte ... by XOR'ing the - * overflow bit with 1 (the extra one from 0x11b) we zero it out. - * - * GF(0x57, 0x02) = xtime(0x57) = 0xae - * GF(0x57, 0x04) = xtime(0xae) = 0x47 - * GF(0x57, 0x08) = xtime(0x47) = 0x8e - * GF(0x57, 0x10) = xtime(0x8e) = 0x07 - * - * GF(0x57, 0x13) = GF(0x57, (0x01 ^ 0x02 ^ 0x10)) - * - * And by the distributive property (since XOR is addition and GF() is - * multiplication): - * - * = GF(0x57, 0x01) ^ GF(0x57, 0x02) ^ GF(0x57, 0x10) - * = 0x57 ^ 0xae ^ 0x07 - * = 0xfe. + * Result object returned from {@link parse}. + * @interface IParserResult + * @property {string|undefined} package Package name, if declared + * @property {string[]|undefined} imports Imports, if any + * @property {string[]|undefined} weakImports Weak imports, if any + * @property {Root} root Populated root instance */ -function initialize() { - init = true; - /* Populate the Rcon table. These are the values given by - [x^(i-1),{00},{00},{00}] where x^(i-1) are powers of x (and x = 0x02) - in the field of GF(2^8), where i starts at 1. +/** + * Options modifying the behavior of {@link parse}. + * @interface IParseOptions + * @property {boolean} [keepCase=false] Keeps field casing instead of converting to camel case + * @property {boolean} [alternateCommentMode=false] Recognize double-slash comments in addition to doc-block comments. + * @property {boolean} [preferTrailingComment=false] Use trailing comment when both leading comment and trailing comment exist. + */ - rcon[0] = [0x00, 0x00, 0x00, 0x00] - rcon[1] = [0x01, 0x00, 0x00, 0x00] 2^(1-1) = 2^0 = 1 - rcon[2] = [0x02, 0x00, 0x00, 0x00] 2^(2-1) = 2^1 = 2 - ... - rcon[9] = [0x1B, 0x00, 0x00, 0x00] 2^(9-1) = 2^8 = 0x1B - rcon[10] = [0x36, 0x00, 0x00, 0x00] 2^(10-1) = 2^9 = 0x36 +/** + * Options modifying the behavior of JSON serialization. + * @interface IToJSONOptions + * @property {boolean} [keepComments=false] Serializes comments. + */ - We only store the first byte because it is the only one used. - */ - rcon = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36]; +/** + * Parses the given .proto source and returns an object with the parsed contents. + * @param {string} source Source contents + * @param {Root} root Root to populate + * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. + * @returns {IParserResult} Parser result + * @property {string} filename=null Currently processing file name for error reporting, if known + * @property {IParseOptions} defaults Default {@link IParseOptions} + */ +function parse(source, root, options) { + /* eslint-disable callback-return */ + if (!(root instanceof Root)) { + options = root; + root = new Root(); + } + if (!options) + options = parse.defaults; + + var preferTrailingComment = options.preferTrailingComment || false; + var tn = tokenize(source, options.alternateCommentMode || false), + next = tn.next, + push = tn.push, + peek = tn.peek, + skip = tn.skip, + cmnt = tn.cmnt; + + var head = true, + pkg, + imports, + weakImports, + edition = "proto2"; + + var ptr = root; + + var topLevelObjects = []; + var topLevelOptions = {}; + + var applyCase = options.keepCase ? function(name) { return name; } : util.camelCase; + + function resolveFileFeatures() { + topLevelObjects.forEach(obj => { + obj._edition = edition; + Object.keys(topLevelOptions).forEach(opt => { + if (obj.getOption(opt) !== undefined) return; + obj.setOption(opt, topLevelOptions[opt], true); + }); + }); + } - // compute xtime table which maps i onto GF(i, 0x02) - var xtime = new Array(256); - for(var i = 0; i < 128; ++i) { - xtime[i] = i << 1; - xtime[i + 128] = (i + 128) << 1 ^ 0x11B; - } + /* istanbul ignore next */ + function illegal(token, name, insideTryCatch) { + var filename = parse.filename; + if (!insideTryCatch) + parse.filename = null; + return Error("illegal " + (name || "token") + " '" + token + "' (" + (filename ? filename + ", " : "") + "line " + tn.line + ")"); + } + + function readString() { + var values = [], + token; + do { + /* istanbul ignore if */ + if ((token = next()) !== "\"" && token !== "'") + throw illegal(token); + + values.push(next()); + skip(token); + token = peek(); + } while (token === "\"" || token === "'"); + return values.join(""); + } + + function readValue(acceptTypeRef) { + var token = next(); + switch (token) { + case "'": + case "\"": + push(token); + return readString(); + case "true": case "TRUE": + return true; + case "false": case "FALSE": + return false; + } + try { + return parseNumber(token, /* insideTryCatch */ true); + } catch (e) { + /* istanbul ignore else */ + if (acceptTypeRef && typeRefRe.test(token)) + return token; - // compute all other tables - sbox = new Array(256); - isbox = new Array(256); - mix = new Array(4); - imix = new Array(4); - for(var i = 0; i < 4; ++i) { - mix[i] = new Array(256); - imix[i] = new Array(256); - } - var e = 0, ei = 0, e2, e4, e8, sx, sx2, me, ime; - for(var i = 0; i < 256; ++i) { - /* We need to generate the SubBytes() sbox and isbox tables so that - we can perform byte substitutions. This requires us to traverse - all of the elements in GF, find their multiplicative inverses, - and apply to each the following affine transformation: + /* istanbul ignore next */ + throw illegal(token, "value"); + } + } - bi' = bi ^ b(i + 4) mod 8 ^ b(i + 5) mod 8 ^ b(i + 6) mod 8 ^ - b(i + 7) mod 8 ^ ci - for 0 <= i < 8, where bi is the ith bit of the byte, and ci is the - ith bit of a byte c with the value {63} or {01100011}. + function readRanges(target, acceptStrings) { + var token, start; + do { + if (acceptStrings && ((token = peek()) === "\"" || token === "'")) { + var str = readString(); + target.push(str); + if (edition >= 2023) { + throw illegal(str, "id"); + } + } else { + try { + target.push([ start = parseId(next()), skip("to", true) ? parseId(next()) : start ]); + } catch (err) { + if (acceptStrings && typeRefRe.test(token) && edition >= 2023) { + target.push(token); + } else { + throw err; + } + } + } + } while (skip(",", true)); + var dummy = {options: undefined}; + dummy.setOption = function(name, value) { + if (this.options === undefined) this.options = {}; + this.options[name] = value; + }; + ifBlock( + dummy, + function parseRange_block(token) { + /* istanbul ignore else */ + if (token === "option") { + parseOption(dummy, token); // skip + skip(";"); + } else + throw illegal(token); + }, + function parseRange_line() { + parseInlineOptions(dummy); // skip + }); + } - It is possible to traverse every possible value in a Galois field - using what is referred to as a 'generator'. There are many - generators (128 out of 256): 3,5,6,9,11,82 to name a few. To fully - traverse GF we iterate 255 times, multiplying by our generator - each time. + function parseNumber(token, insideTryCatch) { + var sign = 1; + if (token.charAt(0) === "-") { + sign = -1; + token = token.substring(1); + } + switch (token) { + case "inf": case "INF": case "Inf": + return sign * Infinity; + case "nan": case "NAN": case "Nan": case "NaN": + return NaN; + case "0": + return 0; + } + if (base10Re.test(token)) + return sign * parseInt(token, 10); + if (base16Re.test(token)) + return sign * parseInt(token, 16); + if (base8Re.test(token)) + return sign * parseInt(token, 8); - On each iteration we can determine the multiplicative inverse for - the current element. + /* istanbul ignore else */ + if (numberRe.test(token)) + return sign * parseFloat(token); - Suppose there is an element in GF 'e'. For a given generator 'g', - e = g^x. The multiplicative inverse of e is g^(255 - x). It turns - out that if use the inverse of a generator as another generator - it will produce all of the corresponding multiplicative inverses - at the same time. For this reason, we choose 5 as our inverse - generator because it only requires 2 multiplies and 1 add and its - inverse, 82, requires relatively few operations as well. + /* istanbul ignore next */ + throw illegal(token, "number", insideTryCatch); + } - In order to apply the affine transformation, the multiplicative - inverse 'ei' of 'e' can be repeatedly XOR'd (4 times) with a - bit-cycling of 'ei'. To do this 'ei' is first stored in 's' and - 'x'. Then 's' is left shifted and the high bit of 's' is made the - low bit. The resulting value is stored in 's'. Then 'x' is XOR'd - with 's' and stored in 'x'. On each subsequent iteration the same - operation is performed. When 4 iterations are complete, 'x' is - XOR'd with 'c' (0x63) and the transformed value is stored in 'x'. - For example: + function parseId(token, acceptNegative) { + switch (token) { + case "max": case "MAX": case "Max": + return 536870911; + case "0": + return 0; + } - s = 01000001 - x = 01000001 + /* istanbul ignore if */ + if (!acceptNegative && token.charAt(0) === "-") + throw illegal(token, "id"); - iteration 1: s = 10000010, x ^= s - iteration 2: s = 00000101, x ^= s - iteration 3: s = 00001010, x ^= s - iteration 4: s = 00010100, x ^= s - x ^= 0x63 + if (base10NegRe.test(token)) + return parseInt(token, 10); + if (base16NegRe.test(token)) + return parseInt(token, 16); - This can be done with a loop where s = (s << 1) | (s >> 7). However, - it can also be done by using a single 16-bit (in this case 32-bit) - number 'sx'. Since XOR is an associative operation, we can set 'sx' - to 'ei' and then XOR it with 'sx' left-shifted 1,2,3, and 4 times. - The most significant bits will flow into the high 8 bit positions - and be correctly XOR'd with one another. All that remains will be - to cycle the high 8 bits by XOR'ing them all with the lower 8 bits - afterwards. + /* istanbul ignore else */ + if (base8NegRe.test(token)) + return parseInt(token, 8); - At the same time we're populating sbox and isbox we can precompute - the multiplication we'll need to do to do MixColumns() later. - */ + /* istanbul ignore next */ + throw illegal(token, "id"); + } - // apply affine transformation - sx = ei ^ (ei << 1) ^ (ei << 2) ^ (ei << 3) ^ (ei << 4); - sx = (sx >> 8) ^ (sx & 255) ^ 0x63; + function parsePackage() { + /* istanbul ignore if */ + if (pkg !== undefined) + throw illegal("package"); - // update tables - sbox[e] = sx; - isbox[sx] = e; + pkg = next(); - /* Mixing columns is done using matrix multiplication. The columns - that are to be mixed are each a single word in the current state. - The state has Nb columns (4 columns). Therefore each column is a - 4 byte word. So to mix the columns in a single column 'c' where - its rows are r0, r1, r2, and r3, we use the following matrix - multiplication: + /* istanbul ignore if */ + if (!typeRefRe.test(pkg)) + throw illegal(pkg, "name"); - [2 3 1 1]*[r0,c]=[r'0,c] - [1 2 3 1] [r1,c] [r'1,c] - [1 1 2 3] [r2,c] [r'2,c] - [3 1 1 2] [r3,c] [r'3,c] + ptr = ptr.define(pkg); - r0, r1, r2, and r3 are each 1 byte of one of the words in the - state (a column). To do matrix multiplication for each mixed - column c' we multiply the corresponding row from the left matrix - with the corresponding column from the right matrix. In total, we - get 4 equations: + skip(";"); + } - r0,c' = 2*r0,c + 3*r1,c + 1*r2,c + 1*r3,c - r1,c' = 1*r0,c + 2*r1,c + 3*r2,c + 1*r3,c - r2,c' = 1*r0,c + 1*r1,c + 2*r2,c + 3*r3,c - r3,c' = 3*r0,c + 1*r1,c + 1*r2,c + 2*r3,c + function parseImport() { + var token = peek(); + var whichImports; + switch (token) { + case "weak": + whichImports = weakImports || (weakImports = []); + next(); + break; + case "public": + next(); + // eslint-disable-next-line no-fallthrough + default: + whichImports = imports || (imports = []); + break; + } + token = readString(); + skip(";"); + whichImports.push(token); + } - As usual, the multiplication is as previously defined and the - addition is XOR. In order to optimize mixing columns we can store - the multiplication results in tables. If you think of the whole - column as a word (it might help to visualize by mentally rotating - the equations above by counterclockwise 90 degrees) then you can - see that it would be useful to map the multiplications performed on - each byte (r0, r1, r2, r3) onto a word as well. For instance, we - could map 2*r0,1*r0,1*r0,3*r0 onto a word by storing 2*r0 in the - highest 8 bits and 3*r0 in the lowest 8 bits (with the other two - respectively in the middle). This means that a table can be - constructed that uses r0 as an index to the word. We can do the - same with r1, r2, and r3, creating a total of 4 tables. + function parseSyntax() { + skip("="); + edition = readString(); - To construct a full c', we can just look up each byte of c in - their respective tables and XOR the results together. + /* istanbul ignore if */ + if (edition < 2023) + throw illegal(edition, "syntax"); - Also, to build each table we only have to calculate the word - for 2,1,1,3 for every byte ... which we can do on each iteration - of this loop since we will iterate over every byte. After we have - calculated 2,1,1,3 we can get the results for the other tables - by cycling the byte at the end to the beginning. For instance - we can take the result of table 2,1,1,3 and produce table 3,2,1,1 - by moving the right most byte to the left most position just like - how you can imagine the 3 moved out of 2,1,1,3 and to the front - to produce 3,2,1,1. + skip(";"); + } - There is another optimization in that the same multiples of - the current element we need in order to advance our generator - to the next iteration can be reused in performing the 2,1,1,3 - calculation. We also calculate the inverse mix column tables, - with e,9,d,b being the inverse of 2,1,1,3. + function parseEdition() { + skip("="); + edition = readString(); + const supportedEditions = ["2023"]; - When we're done, and we need to actually mix columns, the first - byte of each state word should be put through mix[0] (2,1,1,3), - the second through mix[1] (3,2,1,1) and so forth. Then they should - be XOR'd together to produce the fully mixed column. - */ + /* istanbul ignore if */ + if (!supportedEditions.includes(edition)) + throw illegal(edition, "edition"); - // calculate mix and imix table values - sx2 = xtime[sx]; - e2 = xtime[e]; - e4 = xtime[e2]; - e8 = xtime[e4]; - me = - (sx2 << 24) ^ // 2 - (sx << 16) ^ // 1 - (sx << 8) ^ // 1 - (sx ^ sx2); // 3 - ime = - (e2 ^ e4 ^ e8) << 24 ^ // E (14) - (e ^ e8) << 16 ^ // 9 - (e ^ e4 ^ e8) << 8 ^ // D (13) - (e ^ e2 ^ e8); // B (11) - // produce each of the mix tables by rotating the 2,1,1,3 value - for(var n = 0; n < 4; ++n) { - mix[n][e] = me; - imix[n][sx] = ime; - // cycle the right most byte to the left most position - // ie: 2,1,1,3 becomes 3,2,1,1 - me = me << 24 | me >>> 8; - ime = ime << 24 | ime >>> 8; + skip(";"); } - // get next element and inverse - if(e === 0) { - // 1 is the inverse of 1 - e = ei = 1; - } else { - // e = 2e + 2*2*2*(10e)) = multiply e by 82 (chosen generator) - // ei = ei + 2*2*ei = multiply ei by 5 (inverse generator) - e = e2 ^ xtime[xtime[xtime[e2 ^ e8]]]; - ei ^= xtime[xtime[ei]]; + + function parseCommon(parent, token) { + switch (token) { + + case "option": + parseOption(parent, token); + skip(";"); + return true; + + case "message": + parseType(parent, token); + return true; + + case "enum": + parseEnum(parent, token); + return true; + + case "service": + parseService(parent, token); + return true; + + case "extend": + parseExtension(parent, token); + return true; + } + return false; } - } -} -/** - * Generates a key schedule using the AES key expansion algorithm. - * - * The AES algorithm takes the Cipher Key, K, and performs a Key Expansion - * routine to generate a key schedule. The Key Expansion generates a total - * of Nb*(Nr + 1) words: the algorithm requires an initial set of Nb words, - * and each of the Nr rounds requires Nb words of key data. The resulting - * key schedule consists of a linear array of 4-byte words, denoted [wi ], - * with i in the range 0 <= i < Nb(Nr + 1). - * - * KeyExpansion(byte key[4*Nk], word w[Nb*(Nr+1)], Nk) - * AES-128 (Nb=4, Nk=4, Nr=10) - * AES-192 (Nb=4, Nk=6, Nr=12) - * AES-256 (Nb=4, Nk=8, Nr=14) - * Note: Nr=Nk+6. - * - * Nb is the number of columns (32-bit words) comprising the State (or - * number of bytes in a block). For AES, Nb=4. - * - * @param key the key to schedule (as an array of 32-bit words). - * @param decrypt true to modify the key schedule to decrypt, false not to. - * - * @return the generated key schedule. - */ -function _expandKey(key, decrypt) { - // copy the key's words to initialize the key schedule - var w = key.slice(0); + function ifBlock(obj, fnIf, fnElse) { + var trailingLine = tn.line; + if (obj) { + if(typeof obj.comment !== "string") { + obj.comment = cmnt(); // try block-type comment + } + obj.filename = parse.filename; + } + if (skip("{", true)) { + var token; + while ((token = next()) !== "}") + fnIf(token); + skip(";", true); + } else { + if (fnElse) + fnElse(); + skip(";"); + if (obj && (typeof obj.comment !== "string" || preferTrailingComment)) + obj.comment = cmnt(trailingLine) || obj.comment; // try line-type comment + } + } - /* RotWord() will rotate a word, moving the first byte to the last - byte's position (shifting the other bytes left). + function parseType(parent, token) { - We will be getting the value of Rcon at i / Nk. 'i' will iterate - from Nk to (Nb * Nr+1). Nk = 4 (4 byte key), Nb = 4 (4 words in - a block), Nr = Nk + 6 (10). Therefore 'i' will iterate from - 4 to 44 (exclusive). Each time we iterate 4 times, i / Nk will - increase by 1. We use a counter iNk to keep track of this. - */ + /* istanbul ignore if */ + if (!nameRe.test(token = next())) + throw illegal(token, "type name"); - // go through the rounds expanding the key - var temp, iNk = 1; - var Nk = w.length; - var Nr1 = Nk + 6 + 1; - var end = Nb * Nr1; - for(var i = Nk; i < end; ++i) { - temp = w[i - 1]; - if(i % Nk === 0) { - // temp = SubWord(RotWord(temp)) ^ Rcon[i / Nk] - temp = - sbox[temp >>> 16 & 255] << 24 ^ - sbox[temp >>> 8 & 255] << 16 ^ - sbox[temp & 255] << 8 ^ - sbox[temp >>> 24] ^ (rcon[iNk] << 24); - iNk++; - } else if(Nk > 6 && (i % Nk === 4)) { - // temp = SubWord(temp) - temp = - sbox[temp >>> 24] << 24 ^ - sbox[temp >>> 16 & 255] << 16 ^ - sbox[temp >>> 8 & 255] << 8 ^ - sbox[temp & 255]; + var type = new Type(token); + ifBlock(type, function parseType_block(token) { + if (parseCommon(type, token)) + return; + + switch (token) { + + case "map": + parseMapField(type, token); + break; + + case "required": + if (edition !== "proto2") + throw illegal(token); + /* eslint-disable no-fallthrough */ + case "repeated": + parseField(type, token); + break; + + case "optional": + /* istanbul ignore if */ + if (edition === "proto3") { + parseField(type, "proto3_optional"); + } else if (edition !== "proto2") { + throw illegal(token); + } else { + parseField(type, "optional"); + } + break; + + case "oneof": + parseOneOf(type, token); + break; + + case "extensions": + readRanges(type.extensions || (type.extensions = [])); + break; + + case "reserved": + readRanges(type.reserved || (type.reserved = []), true); + break; + + default: + /* istanbul ignore if */ + if (edition === "proto2" || !typeRefRe.test(token)) { + throw illegal(token); + } + + push(token); + parseField(type, "optional"); + break; + } + }); + parent.add(type); + if (parent === ptr) { + topLevelObjects.push(type); + } + } + + function parseField(parent, rule, extend) { + var type = next(); + if (type === "group") { + parseGroup(parent, rule); + return; + } + // Type names can consume multiple tokens, in multiple variants: + // package.subpackage field tokens: "package.subpackage" [TYPE NAME ENDS HERE] "field" + // package . subpackage field tokens: "package" "." "subpackage" [TYPE NAME ENDS HERE] "field" + // package. subpackage field tokens: "package." "subpackage" [TYPE NAME ENDS HERE] "field" + // package .subpackage field tokens: "package" ".subpackage" [TYPE NAME ENDS HERE] "field" + // Keep reading tokens until we get a type name with no period at the end, + // and the next token does not start with a period. + while (type.endsWith(".") || peek().startsWith(".")) { + type += next(); + } + + /* istanbul ignore if */ + if (!typeRefRe.test(type)) + throw illegal(type, "type"); + + var name = next(); + + /* istanbul ignore if */ + + if (!nameRe.test(name)) + throw illegal(name, "name"); + + name = applyCase(name); + skip("="); + + var field = new Field(name, parseId(next()), type, rule, extend); + + ifBlock(field, function parseField_block(token) { + + /* istanbul ignore else */ + if (token === "option") { + parseOption(field, token); + skip(";"); + } else + throw illegal(token); + + }, function parseField_line() { + parseInlineOptions(field); + }); + + if (rule === "proto3_optional") { + // for proto3 optional fields, we create a single-member Oneof to mimic "optional" behavior + var oneof = new OneOf("_" + name); + field.setOption("proto3_optional", true); + oneof.add(field); + parent.add(oneof); + } else { + parent.add(field); + } + if (parent === ptr) { + topLevelObjects.push(field); + } + } + + function parseGroup(parent, rule) { + if (edition >= 2023) { + throw illegal("group"); + } + var name = next(); + + /* istanbul ignore if */ + if (!nameRe.test(name)) + throw illegal(name, "name"); + + var fieldName = util.lcFirst(name); + if (name === fieldName) + name = util.ucFirst(name); + skip("="); + var id = parseId(next()); + var type = new Type(name); + type.group = true; + var field = new Field(fieldName, id, name, rule); + field.filename = parse.filename; + ifBlock(type, function parseGroup_block(token) { + switch (token) { + + case "option": + parseOption(type, token); + skip(";"); + break; + case "required": + case "repeated": + parseField(type, token); + break; + + case "optional": + /* istanbul ignore if */ + if (edition === "proto3") { + parseField(type, "proto3_optional"); + } else { + parseField(type, "optional"); + } + break; + + case "message": + parseType(type, token); + break; + + case "enum": + parseEnum(type, token); + break; + + case "reserved": + readRanges(type.reserved || (type.reserved = []), true); + break; + + /* istanbul ignore next */ + default: + throw illegal(token); // there are no groups with proto3 semantics + } + }); + parent.add(type) + .add(field); + } + + function parseMapField(parent) { + skip("<"); + var keyType = next(); + + /* istanbul ignore if */ + if (types.mapKey[keyType] === undefined) + throw illegal(keyType, "type"); + + skip(","); + var valueType = next(); + + /* istanbul ignore if */ + if (!typeRefRe.test(valueType)) + throw illegal(valueType, "type"); + + skip(">"); + var name = next(); + + /* istanbul ignore if */ + if (!nameRe.test(name)) + throw illegal(name, "name"); + + skip("="); + var field = new MapField(applyCase(name), parseId(next()), keyType, valueType); + ifBlock(field, function parseMapField_block(token) { + + /* istanbul ignore else */ + if (token === "option") { + parseOption(field, token); + skip(";"); + } else + throw illegal(token); + + }, function parseMapField_line() { + parseInlineOptions(field); + }); + parent.add(field); + } + + function parseOneOf(parent, token) { + + /* istanbul ignore if */ + if (!nameRe.test(token = next())) + throw illegal(token, "name"); + + var oneof = new OneOf(applyCase(token)); + ifBlock(oneof, function parseOneOf_block(token) { + if (token === "option") { + parseOption(oneof, token); + skip(";"); + } else { + push(token); + parseField(oneof, "optional"); + } + }); + parent.add(oneof); + } + + function parseEnum(parent, token) { + + /* istanbul ignore if */ + if (!nameRe.test(token = next())) + throw illegal(token, "name"); + + var enm = new Enum(token); + ifBlock(enm, function parseEnum_block(token) { + switch(token) { + case "option": + parseOption(enm, token); + skip(";"); + break; + + case "reserved": + readRanges(enm.reserved || (enm.reserved = []), true); + if(enm.reserved === undefined) enm.reserved = []; + break; + + default: + parseEnumValue(enm, token); + } + }); + parent.add(enm); + if (parent === ptr) { + topLevelObjects.push(enm); + } + } + + function parseEnumValue(parent, token) { + + /* istanbul ignore if */ + if (!nameRe.test(token)) + throw illegal(token, "name"); + + skip("="); + var value = parseId(next(), true), + dummy = { + options: undefined + }; + dummy.getOption = function(name) { + return this.options[name]; + }; + dummy.setOption = function(name, value) { + ReflectionObject.prototype.setOption.call(dummy, name, value); + }; + dummy.setParsedOption = function() { + return undefined; + }; + ifBlock(dummy, function parseEnumValue_block(token) { + + /* istanbul ignore else */ + if (token === "option") { + parseOption(dummy, token); // skip + skip(";"); + } else + throw illegal(token); + + }, function parseEnumValue_line() { + parseInlineOptions(dummy); // skip + }); + parent.add(token, value, dummy.comment, dummy.parsedOptions || dummy.options); + } + + function parseOption(parent, token) { + var option; + var propName; + var isOption = true; + if (token === "option") { + token = next(); + } + + while (token !== "=") { + if (token === "(") { + var parensValue = next(); + skip(")"); + token = "(" + parensValue + ")"; + } + if (isOption) { + isOption = false; + if (token.includes(".") && !token.includes("(")) { + var tokens = token.split("."); + option = tokens[0] + "."; + token = tokens[1]; + continue; + } + option = token; + } else { + propName = propName ? propName += token : token; + } + token = next(); + } + var name = propName ? option.concat(propName) : option; + var optionValue = parseOptionValue(parent, name); + propName = propName && propName[0] === "." ? propName.slice(1) : propName; + option = option && option[option.length - 1] === "." ? option.slice(0, -1) : option; + setParsedOption(parent, option, optionValue, propName); + } + + function parseOptionValue(parent, name) { + // { a: "foo" b { c: "bar" } } + if (skip("{", true)) { + var objectResult = {}; + + while (!skip("}", true)) { + /* istanbul ignore if */ + if (!nameRe.test(token = next())) { + throw illegal(token, "name"); + } + if (token === null) { + throw illegal(token, "end of input"); + } + + var value; + var propName = token; + + skip(":", true); + + if (peek() === "{") { + // option (my_option) = { + // repeated_value: [ "foo", "bar" ] + // }; + value = parseOptionValue(parent, name + "." + token); + } else if (peek() === "[") { + value = []; + var lastValue; + if (skip("[", true)) { + do { + lastValue = readValue(true); + value.push(lastValue); + } while (skip(",", true)); + skip("]"); + if (typeof lastValue !== "undefined") { + setOption(parent, name + "." + token, lastValue); + } + } + } else { + value = readValue(true); + setOption(parent, name + "." + token, value); + } + + var prevValue = objectResult[propName]; + + if (prevValue) + value = [].concat(prevValue).concat(value); + + objectResult[propName] = value; + + // Semicolons and commas can be optional + skip(",", true); + skip(";", true); + } + + return objectResult; + } + + var simpleValue = readValue(true); + setOption(parent, name, simpleValue); + return simpleValue; + // Does not enforce a delimiter to be universal + } + + function setOption(parent, name, value) { + if (ptr === parent && /^features\./.test(name)) { + topLevelOptions[name] = value; + return; + } + if (parent.setOption) + parent.setOption(name, value); + } + + function setParsedOption(parent, name, value, propName) { + if (parent.setParsedOption) + parent.setParsedOption(name, value, propName); + } + + function parseInlineOptions(parent) { + if (skip("[", true)) { + do { + parseOption(parent, "option"); + } while (skip(",", true)); + skip("]"); + } + return parent; + } + + function parseService(parent, token) { + + /* istanbul ignore if */ + if (!nameRe.test(token = next())) + throw illegal(token, "service name"); + + var service = new Service(token); + ifBlock(service, function parseService_block(token) { + if (parseCommon(service, token)) { + return; + } + + /* istanbul ignore else */ + if (token === "rpc") + parseMethod(service, token); + else + throw illegal(token); + }); + parent.add(service); + if (parent === ptr) { + topLevelObjects.push(service); + } + } + + function parseMethod(parent, token) { + // Get the comment of the preceding line now (if one exists) in case the + // method is defined across multiple lines. + var commentText = cmnt(); + + var type = token; + + /* istanbul ignore if */ + if (!nameRe.test(token = next())) + throw illegal(token, "name"); + + var name = token, + requestType, requestStream, + responseType, responseStream; + + skip("("); + if (skip("stream", true)) + requestStream = true; + + /* istanbul ignore if */ + if (!typeRefRe.test(token = next())) + throw illegal(token); + + requestType = token; + skip(")"); skip("returns"); skip("("); + if (skip("stream", true)) + responseStream = true; + + /* istanbul ignore if */ + if (!typeRefRe.test(token = next())) + throw illegal(token); + + responseType = token; + skip(")"); + + var method = new Method(name, type, requestType, responseType, requestStream, responseStream); + method.comment = commentText; + ifBlock(method, function parseMethod_block(token) { + + /* istanbul ignore else */ + if (token === "option") { + parseOption(method, token); + skip(";"); + } else + throw illegal(token); + + }); + parent.add(method); + } + + function parseExtension(parent, token) { + + /* istanbul ignore if */ + if (!typeRefRe.test(token = next())) + throw illegal(token, "reference"); + + var reference = token; + ifBlock(null, function parseExtension_block(token) { + switch (token) { + + case "required": + case "repeated": + parseField(parent, token, reference); + break; + + case "optional": + /* istanbul ignore if */ + if (edition === "proto3") { + parseField(parent, "proto3_optional", reference); + } else { + parseField(parent, "optional", reference); + } + break; + + default: + /* istanbul ignore if */ + if (edition === "proto2" || !typeRefRe.test(token)) + throw illegal(token); + push(token); + parseField(parent, "optional", reference); + break; + } + }); } - w[i] = w[i - Nk] ^ temp; - } - /* When we are updating a cipher block we always use the code path for - encryption whether we are decrypting or not (to shorten code and - simplify the generation of look up tables). However, because there - are differences in the decryption algorithm, other than just swapping - in different look up tables, we must transform our key schedule to - account for these changes: + var token; + while ((token = next()) !== null) { + switch (token) { - 1. The decryption algorithm gets its key rounds in reverse order. - 2. The decryption algorithm adds the round key before mixing columns - instead of afterwards. + case "package": - We don't need to modify our key schedule to handle the first case, - we can just traverse the key schedule in reverse order when decrypting. + /* istanbul ignore if */ + if (!head) + throw illegal(token); - The second case requires a little work. + parsePackage(); + break; - The tables we built for performing rounds will take an input and then - perform SubBytes() and MixColumns() or, for the decrypt version, - InvSubBytes() and InvMixColumns(). But the decrypt algorithm requires - us to AddRoundKey() before InvMixColumns(). This means we'll need to - apply some transformations to the round key to inverse-mix its columns - so they'll be correct for moving AddRoundKey() to after the state has - had its columns inverse-mixed. + case "import": - To inverse-mix the columns of the state when we're decrypting we use a - lookup table that will apply InvSubBytes() and InvMixColumns() at the - same time. However, the round key's bytes are not inverse-substituted - in the decryption algorithm. To get around this problem, we can first - substitute the bytes in the round key so that when we apply the - transformation via the InvSubBytes()+InvMixColumns() table, it will - undo our substitution leaving us with the original value that we - want -- and then inverse-mix that value. + /* istanbul ignore if */ + if (!head) + throw illegal(token); - This change will correctly alter our key schedule so that we can XOR - each round key with our already transformed decryption state. This - allows us to use the same code path as the encryption algorithm. + parseImport(); + break; - We make one more change to the decryption key. Since the decryption - algorithm runs in reverse from the encryption algorithm, we reverse - the order of the round keys to avoid having to iterate over the key - schedule backwards when running the encryption algorithm later in - decryption mode. In addition to reversing the order of the round keys, - we also swap each round key's 2nd and 4th rows. See the comments - section where rounds are performed for more details about why this is - done. These changes are done inline with the other substitution - described above. - */ - if(decrypt) { - var tmp; - var m0 = imix[0]; - var m1 = imix[1]; - var m2 = imix[2]; - var m3 = imix[3]; - var wnew = w.slice(0); - end = w.length; - for(var i = 0, wi = end - Nb; i < end; i += Nb, wi -= Nb) { - // do not sub the first or last round key (round keys are Nb - // words) as no column mixing is performed before they are added, - // but do change the key order - if(i === 0 || i === (end - Nb)) { - wnew[i] = w[wi]; - wnew[i + 1] = w[wi + 3]; - wnew[i + 2] = w[wi + 2]; - wnew[i + 3] = w[wi + 1]; - } else { - // substitute each round key byte because the inverse-mix - // table will inverse-substitute it (effectively cancel the - // substitution because round key bytes aren't sub'd in - // decryption mode) and swap indexes 3 and 1 - for(var n = 0; n < Nb; ++n) { - tmp = w[wi + n]; - wnew[i + (3&-n)] = - m0[sbox[tmp >>> 24]] ^ - m1[sbox[tmp >>> 16 & 255]] ^ - m2[sbox[tmp >>> 8 & 255]] ^ - m3[sbox[tmp & 255]]; + case "syntax": + + /* istanbul ignore if */ + if (!head) + throw illegal(token); + + parseSyntax(); + break; + + case "edition": + /* istanbul ignore if */ + if (!head) + throw illegal(token); + parseEdition(); + break; + + case "option": + parseOption(ptr, token); + skip(";", true); + break; + + default: + + /* istanbul ignore else */ + if (parseCommon(ptr, token)) { + head = false; + continue; + } + + /* istanbul ignore next */ + throw illegal(token); } - } } - w = wnew; - } - return w; + resolveFileFeatures(); + + parse.filename = null; + return { + "package" : pkg, + "imports" : imports, + weakImports : weakImports, + root : root + }; } /** - * Updates a single block (16 bytes) using AES. The update will either - * encrypt or decrypt the block. - * - * @param w the key schedule. - * @param input the input block (an array of 32-bit words). - * @param output the updated output block. - * @param decrypt true to decrypt the block, false to encrypt it. + * Parses the given .proto source and returns an object with the parsed contents. + * @name parse + * @function + * @param {string} source Source contents + * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. + * @returns {IParserResult} Parser result + * @property {string} filename=null Currently processing file name for error reporting, if known + * @property {IParseOptions} defaults Default {@link IParseOptions} + * @variation 2 */ -function _updateBlock(w, input, output, decrypt) { - /* - Cipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) - begin - byte state[4,Nb] - state = in - AddRoundKey(state, w[0, Nb-1]) - for round = 1 step 1 to Nr-1 - SubBytes(state) - ShiftRows(state) - MixColumns(state) - AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) - end for - SubBytes(state) - ShiftRows(state) - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - out = state - end - InvCipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) - begin - byte state[4,Nb] - state = in - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - for round = Nr-1 step -1 downto 1 - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) - InvMixColumns(state) - end for - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[0, Nb-1]) - out = state - end - */ - // Encrypt: AddRoundKey(state, w[0, Nb-1]) - // Decrypt: AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - var Nr = w.length / 4 - 1; - var m0, m1, m2, m3, sub; - if(decrypt) { - m0 = imix[0]; - m1 = imix[1]; - m2 = imix[2]; - m3 = imix[3]; - sub = isbox; - } else { - m0 = mix[0]; - m1 = mix[1]; - m2 = mix[2]; - m3 = mix[3]; - sub = sbox; - } - var a, b, c, d, a2, b2, c2; - a = input[0] ^ w[0]; - b = input[decrypt ? 3 : 1] ^ w[1]; - c = input[2] ^ w[2]; - d = input[decrypt ? 1 : 3] ^ w[3]; - var i = 3; +/***/ }), - /* In order to share code we follow the encryption algorithm when both - encrypting and decrypting. To account for the changes required in the - decryption algorithm, we use different lookup tables when decrypting - and use a modified key schedule to account for the difference in the - order of transformations applied when performing rounds. We also get - key rounds in reverse order (relative to encryption). */ - for(var round = 1; round < Nr; ++round) { - /* As described above, we'll be using table lookups to perform the - column mixing. Each column is stored as a word in the state (the - array 'input' has one column as a word at each index). In order to - mix a column, we perform these transformations on each row in c, - which is 1 byte in each word. The new column for c0 is c'0: +/***/ 28177: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - m0 m1 m2 m3 - r0,c'0 = 2*r0,c0 + 3*r1,c0 + 1*r2,c0 + 1*r3,c0 - r1,c'0 = 1*r0,c0 + 2*r1,c0 + 3*r2,c0 + 1*r3,c0 - r2,c'0 = 1*r0,c0 + 1*r1,c0 + 2*r2,c0 + 3*r3,c0 - r3,c'0 = 3*r0,c0 + 1*r1,c0 + 1*r2,c0 + 2*r3,c0 +"use strict"; - So using mix tables where c0 is a word with r0 being its upper - 8 bits and r3 being its lower 8 bits: +module.exports = Reader; - m0[c0 >> 24] will yield this word: [2*r0,1*r0,1*r0,3*r0] - ... - m3[c0 & 255] will yield this word: [1*r3,1*r3,3*r3,2*r3] +var util = __nccwpck_require__(85526); - Therefore to mix the columns in each word in the state we - do the following (& 255 omitted for brevity): - c'0,r0 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r1 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r2 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r3 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] +var BufferReader; // cyclic - However, before mixing, the algorithm requires us to perform - ShiftRows(). The ShiftRows() transformation cyclically shifts the - last 3 rows of the state over different offsets. The first row - (r = 0) is not shifted. +var LongBits = util.LongBits, + utf8 = util.utf8; - s'_r,c = s_r,(c + shift(r, Nb) mod Nb - for 0 < r < 4 and 0 <= c < Nb and - shift(1, 4) = 1 - shift(2, 4) = 2 - shift(3, 4) = 3. +/* istanbul ignore next */ +function indexOutOfRange(reader, writeLength) { + return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len); +} - This causes the first byte in r = 1 to be moved to the end of - the row, the first 2 bytes in r = 2 to be moved to the end of - the row, the first 3 bytes in r = 3 to be moved to the end of - the row: +/** + * Constructs a new reader instance using the specified buffer. + * @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`. + * @constructor + * @param {Uint8Array} buffer Buffer to read from + */ +function Reader(buffer) { - r1: [c0 c1 c2 c3] => [c1 c2 c3 c0] - r2: [c0 c1 c2 c3] [c2 c3 c0 c1] - r3: [c0 c1 c2 c3] [c3 c0 c1 c2] + /** + * Read buffer. + * @type {Uint8Array} + */ + this.buf = buffer; - We can make these substitutions inline with our column mixing to - generate an updated set of equations to produce each word in the - state (note the columns have changed positions): + /** + * Read buffer position. + * @type {number} + */ + this.pos = 0; - c0 c1 c2 c3 => c0 c1 c2 c3 - c0 c1 c2 c3 c1 c2 c3 c0 (cycled 1 byte) - c0 c1 c2 c3 c2 c3 c0 c1 (cycled 2 bytes) - c0 c1 c2 c3 c3 c0 c1 c2 (cycled 3 bytes) + /** + * Read buffer length. + * @type {number} + */ + this.len = buffer.length; +} - Therefore: +var create_array = typeof Uint8Array !== "undefined" + ? function create_typed_array(buffer) { + if (buffer instanceof Uint8Array || Array.isArray(buffer)) + return new Reader(buffer); + throw Error("illegal buffer"); + } + /* istanbul ignore next */ + : function create_array(buffer) { + if (Array.isArray(buffer)) + return new Reader(buffer); + throw Error("illegal buffer"); + }; - c'0 = 2*r0,c0 + 3*r1,c1 + 1*r2,c2 + 1*r3,c3 - c'0 = 1*r0,c0 + 2*r1,c1 + 3*r2,c2 + 1*r3,c3 - c'0 = 1*r0,c0 + 1*r1,c1 + 2*r2,c2 + 3*r3,c3 - c'0 = 3*r0,c0 + 1*r1,c1 + 1*r2,c2 + 2*r3,c3 +var create = function create() { + return util.Buffer + ? function create_buffer_setup(buffer) { + return (Reader.create = function create_buffer(buffer) { + return util.Buffer.isBuffer(buffer) + ? new BufferReader(buffer) + /* istanbul ignore next */ + : create_array(buffer); + })(buffer); + } + /* istanbul ignore next */ + : create_array; +}; - c'1 = 2*r0,c1 + 3*r1,c2 + 1*r2,c3 + 1*r3,c0 - c'1 = 1*r0,c1 + 2*r1,c2 + 3*r2,c3 + 1*r3,c0 - c'1 = 1*r0,c1 + 1*r1,c2 + 2*r2,c3 + 3*r3,c0 - c'1 = 3*r0,c1 + 1*r1,c2 + 1*r2,c3 + 2*r3,c0 +/** + * Creates a new reader using the specified buffer. + * @function + * @param {Uint8Array|Buffer} buffer Buffer to read from + * @returns {Reader|BufferReader} A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader} + * @throws {Error} If `buffer` is not a valid buffer + */ +Reader.create = create(); - ... and so forth for c'2 and c'3. The important distinction is - that the columns are cycling, with c0 being used with the m0 - map when calculating c0, but c1 being used with the m0 map when - calculating c1 ... and so forth. +Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */ util.Array.prototype.slice; - When performing the inverse we transform the mirror image and - skip the bottom row, instead of the top one, and move upwards: +/** + * Reads a varint as an unsigned 32 bit value. + * @function + * @returns {number} Value read + */ +Reader.prototype.uint32 = (function read_uint32_setup() { + var value = 4294967295; // optimizer type-hint, tends to deopt otherwise (?!) + return function read_uint32() { + value = ( this.buf[this.pos] & 127 ) >>> 0; if (this.buf[this.pos++] < 128) return value; + value = (value | (this.buf[this.pos] & 127) << 7) >>> 0; if (this.buf[this.pos++] < 128) return value; + value = (value | (this.buf[this.pos] & 127) << 14) >>> 0; if (this.buf[this.pos++] < 128) return value; + value = (value | (this.buf[this.pos] & 127) << 21) >>> 0; if (this.buf[this.pos++] < 128) return value; + value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value; - c3 c2 c1 c0 => c0 c3 c2 c1 (cycled 3 bytes) *same as encryption - c3 c2 c1 c0 c1 c0 c3 c2 (cycled 2 bytes) - c3 c2 c1 c0 c2 c1 c0 c3 (cycled 1 byte) *same as encryption - c3 c2 c1 c0 c3 c2 c1 c0 + /* istanbul ignore if */ + if ((this.pos += 5) > this.len) { + this.pos = this.len; + throw indexOutOfRange(this, 10); + } + return value; + }; +})(); - If you compare the resulting matrices for ShiftRows()+MixColumns() - and for InvShiftRows()+InvMixColumns() the 2nd and 4th columns are - different (in encrypt mode vs. decrypt mode). So in order to use - the same code to handle both encryption and decryption, we will - need to do some mapping. +/** + * Reads a varint as a signed 32 bit value. + * @returns {number} Value read + */ +Reader.prototype.int32 = function read_int32() { + return this.uint32() | 0; +}; - If in encryption mode we let a=c0, b=c1, c=c2, d=c3, and r be - a row number in the state, then the resulting matrix in encryption - mode for applying the above transformations would be: +/** + * Reads a zig-zag encoded varint as a signed 32 bit value. + * @returns {number} Value read + */ +Reader.prototype.sint32 = function read_sint32() { + var value = this.uint32(); + return value >>> 1 ^ -(value & 1) | 0; +}; - r1: a b c d - r2: b c d a - r3: c d a b - r4: d a b c +/* eslint-disable no-invalid-this */ - If we did the same in decryption mode we would get: +function readLongVarint() { + // tends to deopt with local vars for octet etc. + var bits = new LongBits(0, 0); + var i = 0; + if (this.len - this.pos > 4) { // fast route (lo) + for (; i < 4; ++i) { + // 1st..4th + bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0; + if (this.buf[this.pos++] < 128) + return bits; + } + // 5th + bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0; + bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0; + if (this.buf[this.pos++] < 128) + return bits; + i = 0; + } else { + for (; i < 3; ++i) { + /* istanbul ignore if */ + if (this.pos >= this.len) + throw indexOutOfRange(this); + // 1st..3th + bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0; + if (this.buf[this.pos++] < 128) + return bits; + } + // 4th + bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0; + return bits; + } + if (this.len - this.pos > 4) { // fast route (hi) + for (; i < 5; ++i) { + // 6th..10th + bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0; + if (this.buf[this.pos++] < 128) + return bits; + } + } else { + for (; i < 5; ++i) { + /* istanbul ignore if */ + if (this.pos >= this.len) + throw indexOutOfRange(this); + // 6th..10th + bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0; + if (this.buf[this.pos++] < 128) + return bits; + } + } + /* istanbul ignore next */ + throw Error("invalid varint encoding"); +} - r1: a d c b - r2: b a d c - r3: c b a d - r4: d c b a +/* eslint-enable no-invalid-this */ - If instead we swap d and b (set b=c3 and d=c1), then we get: +/** + * Reads a varint as a signed 64 bit value. + * @name Reader#int64 + * @function + * @returns {Long} Value read + */ - r1: a b c d - r2: d a b c - r3: c d a b - r4: b c d a +/** + * Reads a varint as an unsigned 64 bit value. + * @name Reader#uint64 + * @function + * @returns {Long} Value read + */ - Now the 1st and 3rd rows are the same as the encryption matrix. All - we need to do then to make the mapping exactly the same is to swap - the 2nd and 4th rows when in decryption mode. To do this without - having to do it on each iteration, we swapped the 2nd and 4th rows - in the decryption key schedule. We also have to do the swap above - when we first pull in the input and when we set the final output. */ - a2 = - m0[a >>> 24] ^ - m1[b >>> 16 & 255] ^ - m2[c >>> 8 & 255] ^ - m3[d & 255] ^ w[++i]; - b2 = - m0[b >>> 24] ^ - m1[c >>> 16 & 255] ^ - m2[d >>> 8 & 255] ^ - m3[a & 255] ^ w[++i]; - c2 = - m0[c >>> 24] ^ - m1[d >>> 16 & 255] ^ - m2[a >>> 8 & 255] ^ - m3[b & 255] ^ w[++i]; - d = - m0[d >>> 24] ^ - m1[a >>> 16 & 255] ^ - m2[b >>> 8 & 255] ^ - m3[c & 255] ^ w[++i]; - a = a2; - b = b2; - c = c2; - } +/** + * Reads a zig-zag encoded varint as a signed 64 bit value. + * @name Reader#sint64 + * @function + * @returns {Long} Value read + */ - /* - Encrypt: - SubBytes(state) - ShiftRows(state) - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) +/** + * Reads a varint as a boolean. + * @returns {boolean} Value read + */ +Reader.prototype.bool = function read_bool() { + return this.uint32() !== 0; +}; - Decrypt: - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[0, Nb-1]) - */ - // Note: rows are shifted inline - output[0] = - (sub[a >>> 24] << 24) ^ - (sub[b >>> 16 & 255] << 16) ^ - (sub[c >>> 8 & 255] << 8) ^ - (sub[d & 255]) ^ w[++i]; - output[decrypt ? 3 : 1] = - (sub[b >>> 24] << 24) ^ - (sub[c >>> 16 & 255] << 16) ^ - (sub[d >>> 8 & 255] << 8) ^ - (sub[a & 255]) ^ w[++i]; - output[2] = - (sub[c >>> 24] << 24) ^ - (sub[d >>> 16 & 255] << 16) ^ - (sub[a >>> 8 & 255] << 8) ^ - (sub[b & 255]) ^ w[++i]; - output[decrypt ? 1 : 3] = - (sub[d >>> 24] << 24) ^ - (sub[a >>> 16 & 255] << 16) ^ - (sub[b >>> 8 & 255] << 8) ^ - (sub[c & 255]) ^ w[++i]; +function readFixed32_end(buf, end) { // note that this uses `end`, not `pos` + return (buf[end - 4] + | buf[end - 3] << 8 + | buf[end - 2] << 16 + | buf[end - 1] << 24) >>> 0; } /** - * Deprecated. Instead, use: - * - * forge.cipher.createCipher('AES-', key); - * forge.cipher.createDecipher('AES-', key); - * - * Creates a deprecated AES cipher object. This object's mode will default to - * CBC (cipher-block-chaining). - * - * The key and iv may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param options the options to use. - * key the symmetric key to use. - * output the buffer to write to. - * decrypt true for decryption, false for encryption. - * mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * Reads fixed 32 bits as an unsigned 32 bit integer. + * @returns {number} Value read */ -function _createCipher(options) { - options = options || {}; - var mode = (options.mode || 'CBC').toUpperCase(); - var algorithm = 'AES-' + mode; +Reader.prototype.fixed32 = function read_fixed32() { - var cipher; - if(options.decrypt) { - cipher = forge.cipher.createDecipher(algorithm, options.key); - } else { - cipher = forge.cipher.createCipher(algorithm, options.key); - } + /* istanbul ignore if */ + if (this.pos + 4 > this.len) + throw indexOutOfRange(this, 4); - // backwards compatible start API - var start = cipher.start; - cipher.start = function(iv, options) { - // backwards compatibility: support second arg as output buffer - var output = null; - if(options instanceof forge.util.ByteBuffer) { - output = options; - options = {}; - } - options = options || {}; - options.output = output; - options.iv = iv; - start.call(cipher, options); - }; + return readFixed32_end(this.buf, this.pos += 4); +}; - return cipher; -} +/** + * Reads fixed 32 bits as a signed 32 bit integer. + * @returns {number} Value read + */ +Reader.prototype.sfixed32 = function read_sfixed32() { + /* istanbul ignore if */ + if (this.pos + 4 > this.len) + throw indexOutOfRange(this, 4); -/***/ }), + return readFixed32_end(this.buf, this.pos += 4) | 0; +}; -/***/ 20353: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/* eslint-disable no-invalid-this */ + +function readFixed64(/* this: Reader */) { + + /* istanbul ignore if */ + if (this.pos + 8 > this.len) + throw indexOutOfRange(this, 8); + + return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4)); +} + +/* eslint-enable no-invalid-this */ /** - * A Javascript implementation of AES Cipher Suites for TLS. - * - * @author Dave Longley - * - * Copyright (c) 2009-2015 Digital Bazaar, Inc. - * + * Reads fixed 64 bits. + * @name Reader#fixed64 + * @function + * @returns {Long} Value read */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(24658); -__nccwpck_require__(44151); -var tls = module.exports = forge.tls; +/** + * Reads zig-zag encoded fixed 64 bits. + * @name Reader#sfixed64 + * @function + * @returns {Long} Value read + */ /** - * Supported cipher suites. + * Reads a float (32 bit) as a number. + * @function + * @returns {number} Value read */ -tls.CipherSuites['TLS_RSA_WITH_AES_128_CBC_SHA'] = { - id: [0x00, 0x2f], - name: 'TLS_RSA_WITH_AES_128_CBC_SHA', - initSecurityParameters: function(sp) { - sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; - sp.cipher_type = tls.CipherType.block; - sp.enc_key_length = 16; - sp.block_length = 16; - sp.fixed_iv_length = 16; - sp.record_iv_length = 16; - sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; - sp.mac_length = 20; - sp.mac_key_length = 20; - }, - initConnectionState: initConnectionState +Reader.prototype.float = function read_float() { + + /* istanbul ignore if */ + if (this.pos + 4 > this.len) + throw indexOutOfRange(this, 4); + + var value = util.float.readFloatLE(this.buf, this.pos); + this.pos += 4; + return value; }; -tls.CipherSuites['TLS_RSA_WITH_AES_256_CBC_SHA'] = { - id: [0x00, 0x35], - name: 'TLS_RSA_WITH_AES_256_CBC_SHA', - initSecurityParameters: function(sp) { - sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; - sp.cipher_type = tls.CipherType.block; - sp.enc_key_length = 32; - sp.block_length = 16; - sp.fixed_iv_length = 16; - sp.record_iv_length = 16; - sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; - sp.mac_length = 20; - sp.mac_key_length = 20; - }, - initConnectionState: initConnectionState + +/** + * Reads a double (64 bit float) as a number. + * @function + * @returns {number} Value read + */ +Reader.prototype.double = function read_double() { + + /* istanbul ignore if */ + if (this.pos + 8 > this.len) + throw indexOutOfRange(this, 4); + + var value = util.float.readDoubleLE(this.buf, this.pos); + this.pos += 8; + return value; }; -function initConnectionState(state, c, sp) { - var client = (c.entity === forge.tls.ConnectionEnd.client); +/** + * Reads a sequence of bytes preceeded by its length as a varint. + * @returns {Uint8Array} Value read + */ +Reader.prototype.bytes = function read_bytes() { + var length = this.uint32(), + start = this.pos, + end = this.pos + length; - // cipher setup - state.read.cipherState = { - init: false, - cipher: forge.cipher.createDecipher('AES-CBC', client ? - sp.keys.server_write_key : sp.keys.client_write_key), - iv: client ? sp.keys.server_write_IV : sp.keys.client_write_IV - }; - state.write.cipherState = { - init: false, - cipher: forge.cipher.createCipher('AES-CBC', client ? - sp.keys.client_write_key : sp.keys.server_write_key), - iv: client ? sp.keys.client_write_IV : sp.keys.server_write_IV - }; - state.read.cipherFunction = decrypt_aes_cbc_sha1; - state.write.cipherFunction = encrypt_aes_cbc_sha1; + /* istanbul ignore if */ + if (end > this.len) + throw indexOutOfRange(this, length); - // MAC setup - state.read.macLength = state.write.macLength = sp.mac_length; - state.read.macFunction = state.write.macFunction = tls.hmac_sha1; -} + this.pos += length; + if (Array.isArray(this.buf)) // plain array + return this.buf.slice(start, end); + + if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1 + var nativeBuffer = util.Buffer; + return nativeBuffer + ? nativeBuffer.alloc(0) + : new this.buf.constructor(0); + } + return this._slice.call(this.buf, start, end); +}; /** - * Encrypts the TLSCompressed record into a TLSCipherText record using AES - * in CBC mode. - * - * @param record the TLSCompressed record to encrypt. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. + * Reads a string preceeded by its byte length as a varint. + * @returns {string} Value read */ -function encrypt_aes_cbc_sha1(record, s) { - var rval = false; +Reader.prototype.string = function read_string() { + var bytes = this.bytes(); + return utf8.read(bytes, 0, bytes.length); +}; - // append MAC to fragment, update sequence number - var mac = s.macFunction(s.macKey, s.sequenceNumber, record); - record.fragment.putBytes(mac); - s.updateSequenceNumber(); +/** + * Skips the specified number of bytes if specified, otherwise skips a varint. + * @param {number} [length] Length if known, otherwise a varint is assumed + * @returns {Reader} `this` + */ +Reader.prototype.skip = function skip(length) { + if (typeof length === "number") { + /* istanbul ignore if */ + if (this.pos + length > this.len) + throw indexOutOfRange(this, length); + this.pos += length; + } else { + do { + /* istanbul ignore if */ + if (this.pos >= this.len) + throw indexOutOfRange(this); + } while (this.buf[this.pos++] & 128); + } + return this; +}; - // TLS 1.1+ use an explicit IV every time to protect against CBC attacks - var iv; - if(record.version.minor === tls.Versions.TLS_1_0.minor) { - // use the pre-generated IV when initializing for TLS 1.0, otherwise use - // the residue from the previous encryption - iv = s.cipherState.init ? null : s.cipherState.iv; - } else { - iv = forge.random.getBytesSync(16); - } +/** + * Skips the next element of the specified wire type. + * @param {number} wireType Wire type received + * @returns {Reader} `this` + */ +Reader.prototype.skipType = function(wireType) { + switch (wireType) { + case 0: + this.skip(); + break; + case 1: + this.skip(8); + break; + case 2: + this.skip(this.uint32()); + break; + case 3: + while ((wireType = this.uint32() & 7) !== 4) { + this.skipType(wireType); + } + break; + case 5: + this.skip(4); + break; - s.cipherState.init = true; + /* istanbul ignore next */ + default: + throw Error("invalid wire type " + wireType + " at offset " + this.pos); + } + return this; +}; - // start cipher - var cipher = s.cipherState.cipher; - cipher.start({iv: iv}); +Reader._configure = function(BufferReader_) { + BufferReader = BufferReader_; + Reader.create = create(); + BufferReader._configure(); - // TLS 1.1+ write IV into output - if(record.version.minor >= tls.Versions.TLS_1_1.minor) { - cipher.output.putBytes(iv); - } + var fn = util.Long ? "toLong" : /* istanbul ignore next */ "toNumber"; + util.merge(Reader.prototype, { - // do encryption (default padding is appropriate) - cipher.update(record.fragment); - if(cipher.finish(encrypt_aes_cbc_sha1_padding)) { - // set record fragment to encrypted output - record.fragment = cipher.output; - record.length = record.fragment.length(); - rval = true; - } + int64: function read_int64() { + return readLongVarint.call(this)[fn](false); + }, - return rval; -} + uint64: function read_uint64() { + return readLongVarint.call(this)[fn](true); + }, + + sint64: function read_sint64() { + return readLongVarint.call(this).zzDecode()[fn](false); + }, + + fixed64: function read_fixed64() { + return readFixed64.call(this)[fn](true); + }, + + sfixed64: function read_sfixed64() { + return readFixed64.call(this)[fn](false); + } + + }); +}; + + +/***/ }), + +/***/ 50666: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = BufferReader; + +// extends Reader +var Reader = __nccwpck_require__(28177); +(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader; + +var util = __nccwpck_require__(85526); /** - * Handles padding for aes_cbc_sha1 in encrypt mode. - * - * @param blockSize the block size. - * @param input the input buffer. - * @param decrypt true in decrypt mode, false in encrypt mode. - * - * @return true on success, false on failure. + * Constructs a new buffer reader instance. + * @classdesc Wire format reader using node buffers. + * @extends Reader + * @constructor + * @param {Buffer} buffer Buffer to read from */ -function encrypt_aes_cbc_sha1_padding(blockSize, input, decrypt) { - /* The encrypted data length (TLSCiphertext.length) is one more than the sum - of SecurityParameters.block_length, TLSCompressed.length, - SecurityParameters.mac_length, and padding_length. +function BufferReader(buffer) { + Reader.call(this, buffer); - The padding may be any length up to 255 bytes long, as long as it results in - the TLSCiphertext.length being an integral multiple of the block length. - Lengths longer than necessary might be desirable to frustrate attacks on a - protocol based on analysis of the lengths of exchanged messages. Each uint8 - in the padding data vector must be filled with the padding length value. + /** + * Read buffer. + * @name BufferReader#buf + * @type {Buffer} + */ +} - The padding length should be such that the total size of the - GenericBlockCipher structure is a multiple of the cipher's block length. - Legal values range from zero to 255, inclusive. This length specifies the - length of the padding field exclusive of the padding_length field itself. +BufferReader._configure = function () { + /* istanbul ignore else */ + if (util.Buffer) + BufferReader.prototype._slice = util.Buffer.prototype.slice; +}; - This is slightly different from PKCS#7 because the padding value is 1 - less than the actual number of padding bytes if you include the - padding_length uint8 itself as a padding byte. */ - if(!decrypt) { - // get the number of padding bytes required to reach the blockSize and - // subtract 1 for the padding value (to make room for the padding_length - // uint8) - var padding = blockSize - (input.length() % blockSize); - input.fillWithByte(padding - 1, padding); - } - return true; -} /** - * Handles padding for aes_cbc_sha1 in decrypt mode. - * - * @param blockSize the block size. - * @param output the output buffer. - * @param decrypt true in decrypt mode, false in encrypt mode. - * - * @return true on success, false on failure. + * @override */ -function decrypt_aes_cbc_sha1_padding(blockSize, output, decrypt) { - var rval = true; - if(decrypt) { - /* The last byte in the output specifies the number of padding bytes not - including itself. Each of the padding bytes has the same value as that - last byte (known as the padding_length). Here we check all padding - bytes to ensure they have the value of padding_length even if one of - them is bad in order to ward-off timing attacks. */ - var len = output.length(); - var paddingLength = output.last(); - for(var i = len - 1 - paddingLength; i < len - 1; ++i) { - rval = rval && (output.at(i) == paddingLength); - } - if(rval) { - // trim off padding bytes and last padding length byte - output.truncate(paddingLength + 1); - } - } - return rval; -} +BufferReader.prototype.string = function read_string_buffer() { + var len = this.uint32(); // modifies pos + return this.buf.utf8Slice + ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len)) + : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len)); +}; /** - * Decrypts a TLSCipherText record into a TLSCompressed record using - * AES in CBC mode. - * - * @param record the TLSCipherText record to decrypt. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. + * Reads a sequence of bytes preceeded by its length as a varint. + * @name BufferReader#bytes + * @function + * @returns {Buffer} Value read */ -function decrypt_aes_cbc_sha1(record, s) { - var rval = false; - var iv; - if(record.version.minor === tls.Versions.TLS_1_0.minor) { - // use pre-generated IV when initializing for TLS 1.0, otherwise use the - // residue from the previous decryption - iv = s.cipherState.init ? null : s.cipherState.iv; - } else { - // TLS 1.1+ use an explicit IV every time to protect against CBC attacks - // that is appended to the record fragment - iv = record.fragment.getBytes(16); - } +BufferReader._configure(); - s.cipherState.init = true; - // start cipher - var cipher = s.cipherState.cipher; - cipher.start({iv: iv}); +/***/ }), - // do decryption - cipher.update(record.fragment); - rval = cipher.finish(decrypt_aes_cbc_sha1_padding); +/***/ 86902: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // even if decryption fails, keep going to minimize timing attacks +"use strict"; - // decrypted data: - // first (len - 20) bytes = application data - // last 20 bytes = MAC - var macLen = s.macLength; +module.exports = Root; - // create a random MAC to check against should the mac length check fail - // Note: do this regardless of the failure to keep timing consistent - var mac = forge.random.getBytesSync(macLen); +// extends Namespace +var Namespace = __nccwpck_require__(94495); +((Root.prototype = Object.create(Namespace.prototype)).constructor = Root).className = "Root"; - // get fragment and mac - var len = cipher.output.length(); - if(len >= macLen) { - record.fragment = cipher.output.getBytes(len - macLen); - mac = cipher.output.getBytes(macLen); - } else { - // bad data, but get bytes anyway to try to keep timing consistent - record.fragment = cipher.output.getBytes(); - } - record.fragment = forge.util.createBuffer(record.fragment); - record.length = record.fragment.length(); +var Field = __nccwpck_require__(57380), + Enum = __nccwpck_require__(13735), + OneOf = __nccwpck_require__(18269), + util = __nccwpck_require__(16914); - // see if data integrity checks out, update sequence number - var mac2 = s.macFunction(s.macKey, s.sequenceNumber, record); - s.updateSequenceNumber(); - rval = compareMacs(s.macKey, mac, mac2) && rval; - return rval; -} +var Type, // cyclic + parse, // might be excluded + common; // " /** - * Safely compare two MACs. This function will compare two MACs in a way - * that protects against timing attacks. - * - * TODO: Expose elsewhere as a utility API. - * - * See: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/february/double-hmac-verification/ - * - * @param key the MAC key to use. - * @param mac1 as a binary-encoded string of bytes. - * @param mac2 as a binary-encoded string of bytes. - * - * @return true if the MACs are the same, false if not. + * Constructs a new root namespace instance. + * @classdesc Root namespace wrapping all types, enums, services, sub-namespaces etc. that belong together. + * @extends NamespaceBase + * @constructor + * @param {Object.} [options] Top level options */ -function compareMacs(key, mac1, mac2) { - var hmac = forge.hmac.create(); +function Root(options) { + Namespace.call(this, "", options); - hmac.start('SHA1', key); - hmac.update(mac1); - mac1 = hmac.digest().getBytes(); + /** + * Deferred extension fields. + * @type {Field[]} + */ + this.deferred = []; - hmac.start(null, null); - hmac.update(mac2); - mac2 = hmac.digest().getBytes(); + /** + * Resolved file names of loaded files. + * @type {string[]} + */ + this.files = []; - return mac1 === mac2; + /** + * Edition, defaults to proto2 if unspecified. + * @type {string} + * @private + */ + this._edition = "proto2"; + + /** + * Global lookup cache of fully qualified names. + * @type {Object.} + * @private + */ + this._fullyQualifiedObjects = {}; } +/** + * Loads a namespace descriptor into a root namespace. + * @param {INamespace} json Namespace descriptor + * @param {Root} [root] Root namespace, defaults to create a new one if omitted + * @returns {Root} Root namespace + */ +Root.fromJSON = function fromJSON(json, root) { + if (!root) + root = new Root(); + if (json.options) + root.setOptions(json.options); + return root.addJSON(json.nested).resolveAll(); +}; -/***/ }), +/** + * Resolves the path of an imported file, relative to the importing origin. + * This method exists so you can override it with your own logic in case your imports are scattered over multiple directories. + * @function + * @param {string} origin The file name of the importing file + * @param {string} target The file name being imported + * @returns {string|null} Resolved path to `target` or `null` to skip the file + */ +Root.prototype.resolvePath = util.path.resolve; -/***/ 11385: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/** + * Fetch content from file path or url + * This method exists so you can override it with your own logic. + * @function + * @param {string} path File path or url + * @param {FetchCallback} callback Callback function + * @returns {undefined} + */ +Root.prototype.fetch = util.fetch; + +// A symbol-like function to safely signal synchronous loading +/* istanbul ignore next */ +function SYNC() {} // eslint-disable-line no-empty-function /** - * Copyright (c) 2019 Digital Bazaar, Inc. + * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback. + * @param {string|string[]} filename Names of one or multiple files to load + * @param {IParseOptions} options Parse options + * @param {LoadCallback} callback Callback function + * @returns {undefined} */ +Root.prototype.load = function load(filename, options, callback) { + if (typeof options === "function") { + callback = options; + options = undefined; + } + var self = this; + if (!callback) { + return util.asPromise(load, self, filename, options); + } -var forge = __nccwpck_require__(46588); -__nccwpck_require__(964); -var asn1 = forge.asn1; + var sync = callback === SYNC; // undocumented -exports.privateKeyValidator = { - // PrivateKeyInfo - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // Version (INTEGER) - name: 'PrivateKeyInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyVersion' - }, { - // privateKeyAlgorithm - name: 'PrivateKeyInfo.privateKeyAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'privateKeyOid' - }] - }, { - // PrivateKey - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'privateKey' - }] -}; + // Finishes loading by calling the callback (exactly once) + function finish(err, root) { + /* istanbul ignore if */ + if (!callback) { + return; + } + if (sync) { + throw err; + } + if (root) { + root.resolveAll(); + } + var cb = callback; + callback = null; + cb(err, root); + } -exports.publicKeyValidator = { - name: 'SubjectPublicKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'subjectPublicKeyInfo', - value: [{ - name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'publicKeyOid' - }] - }, - // capture group for ed25519PublicKey - { - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - composed: true, - captureBitStringValue: 'ed25519PublicKey' - } - // FIXME: this is capture group for rsaPublicKey, use it in this API or - // discard? - /* { - // subjectPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - value: [{ - // RSAPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - captureAsn1: 'rsaPublicKey' - }] - } */ - ] -}; + // Bundled definition existence checking + function getBundledFileName(filename) { + var idx = filename.lastIndexOf("google/protobuf/"); + if (idx > -1) { + var altname = filename.substring(idx); + if (altname in common) return altname; + } + return null; + } + // Processes a single file + function process(filename, source) { + try { + if (util.isString(source) && source.charAt(0) === "{") + source = JSON.parse(source); + if (!util.isString(source)) + self.setOptions(source.options).addJSON(source.nested); + else { + parse.filename = filename; + var parsed = parse(source, self, options), + resolved, + i = 0; + if (parsed.imports) + for (; i < parsed.imports.length; ++i) + if (resolved = getBundledFileName(parsed.imports[i]) || self.resolvePath(filename, parsed.imports[i])) + fetch(resolved); + if (parsed.weakImports) + for (i = 0; i < parsed.weakImports.length; ++i) + if (resolved = getBundledFileName(parsed.weakImports[i]) || self.resolvePath(filename, parsed.weakImports[i])) + fetch(resolved, true); + } + } catch (err) { + finish(err); + } + if (!sync && !queued) { + finish(null, self); // only once anyway + } + } -/***/ }), + // Fetches a single file + function fetch(filename, weak) { + filename = getBundledFileName(filename) || filename; -/***/ 964: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // Skip if already loaded / attempted + if (self.files.indexOf(filename) > -1) { + return; + } + self.files.push(filename); + + // Shortcut bundled definitions + if (filename in common) { + if (sync) { + process(filename, common[filename]); + } else { + ++queued; + setTimeout(function() { + --queued; + process(filename, common[filename]); + }); + } + return; + } + + // Otherwise fetch from disk or network + if (sync) { + var source; + try { + source = util.fs.readFileSync(filename).toString("utf8"); + } catch (err) { + if (!weak) + finish(err); + return; + } + process(filename, source); + } else { + ++queued; + self.fetch(filename, function(err, source) { + --queued; + /* istanbul ignore if */ + if (!callback) { + return; // terminated meanwhile + } + if (err) { + /* istanbul ignore else */ + if (!weak) + finish(err); + else if (!queued) // can't be covered reliably + finish(null, self); + return; + } + process(filename, source); + }); + } + } + var queued = 0; + + // Assembling the root namespace doesn't require working type + // references anymore, so we can load everything in parallel + if (util.isString(filename)) { + filename = [ filename ]; + } + for (var i = 0, resolved; i < filename.length; ++i) + if (resolved = self.resolvePath("", filename[i])) + fetch(resolved); + if (sync) { + self.resolveAll(); + return self; + } + if (!queued) { + finish(null, self); + } + + return self; +}; +// function load(filename:string, options:IParseOptions, callback:LoadCallback):undefined /** - * Javascript implementation of Abstract Syntax Notation Number One. - * - * @author Dave Longley - * - * Copyright (c) 2010-2015 Digital Bazaar, Inc. - * - * An API for storing data using the Abstract Syntax Notation Number One - * format using DER (Distinguished Encoding Rules) encoding. This encoding is - * commonly used to store data for PKI, i.e. X.509 Certificates, and this - * implementation exists for that purpose. - * - * Abstract Syntax Notation Number One (ASN.1) is used to define the abstract - * syntax of information without restricting the way the information is encoded - * for transmission. It provides a standard that allows for open systems - * communication. ASN.1 defines the syntax of information data and a number of - * simple data types as well as a notation for describing them and specifying - * values for them. - * - * The RSA algorithm creates public and private keys that are often stored in - * X.509 or PKCS#X formats -- which use ASN.1 (encoded in DER format). This - * class provides the most basic functionality required to store and load DSA - * keys that are encoded according to ASN.1. - * - * The most common binary encodings for ASN.1 are BER (Basic Encoding Rules) - * and DER (Distinguished Encoding Rules). DER is just a subset of BER that - * has stricter requirements for how data must be encoded. - * - * Each ASN.1 structure has a tag (a byte identifying the ASN.1 structure type) - * and a byte array for the value of this ASN1 structure which may be data or a - * list of ASN.1 structures. - * - * Each ASN.1 structure using BER is (Tag-Length-Value): - * - * | byte 0 | bytes X | bytes Y | - * |--------|---------|---------- - * | tag | length | value | - * - * ASN.1 allows for tags to be of "High-tag-number form" which allows a tag to - * be two or more octets, but that is not supported by this class. A tag is - * only 1 byte. Bits 1-5 give the tag number (ie the data type within a - * particular 'class'), 6 indicates whether or not the ASN.1 value is - * constructed from other ASN.1 values, and bits 7 and 8 give the 'class'. If - * bits 7 and 8 are both zero, the class is UNIVERSAL. If only bit 7 is set, - * then the class is APPLICATION. If only bit 8 is set, then the class is - * CONTEXT_SPECIFIC. If both bits 7 and 8 are set, then the class is PRIVATE. - * The tag numbers for the data types for the class UNIVERSAL are listed below: - * - * UNIVERSAL 0 Reserved for use by the encoding rules - * UNIVERSAL 1 Boolean type - * UNIVERSAL 2 Integer type - * UNIVERSAL 3 Bitstring type - * UNIVERSAL 4 Octetstring type - * UNIVERSAL 5 Null type - * UNIVERSAL 6 Object identifier type - * UNIVERSAL 7 Object descriptor type - * UNIVERSAL 8 External type and Instance-of type - * UNIVERSAL 9 Real type - * UNIVERSAL 10 Enumerated type - * UNIVERSAL 11 Embedded-pdv type - * UNIVERSAL 12 UTF8String type - * UNIVERSAL 13 Relative object identifier type - * UNIVERSAL 14-15 Reserved for future editions - * UNIVERSAL 16 Sequence and Sequence-of types - * UNIVERSAL 17 Set and Set-of types - * UNIVERSAL 18-22, 25-30 Character string types - * UNIVERSAL 23-24 Time types - * - * The length of an ASN.1 structure is specified after the tag identifier. - * There is a definite form and an indefinite form. The indefinite form may - * be used if the encoding is constructed and not all immediately available. - * The indefinite form is encoded using a length byte with only the 8th bit - * set. The end of the constructed object is marked using end-of-contents - * octets (two zero bytes). - * - * The definite form looks like this: - * - * The length may take up 1 or more bytes, it depends on the length of the - * value of the ASN.1 structure. DER encoding requires that if the ASN.1 - * structure has a value that has a length greater than 127, more than 1 byte - * will be used to store its length, otherwise just one byte will be used. - * This is strict. - * - * In the case that the length of the ASN.1 value is less than 127, 1 octet - * (byte) is used to store the "short form" length. The 8th bit has a value of - * 0 indicating the length is "short form" and not "long form" and bits 7-1 - * give the length of the data. (The 8th bit is the left-most, most significant - * bit: also known as big endian or network format). - * - * In the case that the length of the ASN.1 value is greater than 127, 2 to - * 127 octets (bytes) are used to store the "long form" length. The first - * byte's 8th bit is set to 1 to indicate the length is "long form." Bits 7-1 - * give the number of additional octets. All following octets are in base 256 - * with the most significant digit first (typical big-endian binary unsigned - * integer storage). So, for instance, if the length of a value was 257, the - * first byte would be set to: - * - * 10000010 = 130 = 0x82. - * - * This indicates there are 2 octets (base 256) for the length. The second and - * third bytes (the octets just mentioned) would store the length in base 256: - * - * octet 2: 00000001 = 1 * 256^1 = 256 - * octet 3: 00000001 = 1 * 256^0 = 1 - * total = 257 - * - * The algorithm for converting a js integer value of 257 to base-256 is: - * - * var value = 257; - * var bytes = []; - * bytes[0] = (value >>> 8) & 0xFF; // most significant byte first - * bytes[1] = value & 0xFF; // least significant byte last - * - * On the ASN.1 UNIVERSAL Object Identifier (OID) type: - * - * An OID can be written like: "value1.value2.value3...valueN" - * - * The DER encoding rules: - * - * The first byte has the value 40 * value1 + value2. - * The following bytes, if any, encode the remaining values. Each value is - * encoded in base 128, most significant digit first (big endian), with as - * few digits as possible, and the most significant bit of each byte set - * to 1 except the last in each value's encoding. For example: Given the - * OID "1.2.840.113549", its DER encoding is (remember each byte except the - * last one in each encoding is OR'd with 0x80): - * - * byte 1: 40 * 1 + 2 = 42 = 0x2A. - * bytes 2-3: 128 * 6 + 72 = 840 = 6 72 = 6 72 = 0x0648 = 0x8648 - * bytes 4-6: 16384 * 6 + 128 * 119 + 13 = 6 119 13 = 0x06770D = 0x86F70D - * - * The final value is: 0x2A864886F70D. - * The full OID (including ASN.1 tag and length of 6 bytes) is: - * 0x06062A864886F70D + * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback. + * @function Root#load + * @param {string|string[]} filename Names of one or multiple files to load + * @param {LoadCallback} callback Callback function + * @returns {undefined} + * @variation 2 */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(21720); -__nccwpck_require__(95542); +// function load(filename:string, callback:LoadCallback):undefined -/* ASN.1 API */ -var asn1 = module.exports = forge.asn1 = forge.asn1 || {}; +/** + * Loads one or multiple .proto or preprocessed .json files into this root namespace and returns a promise. + * @function Root#load + * @param {string|string[]} filename Names of one or multiple files to load + * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. + * @returns {Promise} Promise + * @variation 3 + */ +// function load(filename:string, [options:IParseOptions]):Promise /** - * ASN.1 classes. + * Synchronously loads one or multiple .proto or preprocessed .json files into this root namespace (node only). + * @function Root#loadSync + * @param {string|string[]} filename Names of one or multiple files to load + * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. + * @returns {Root} Root namespace + * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid */ -asn1.Class = { - UNIVERSAL: 0x00, - APPLICATION: 0x40, - CONTEXT_SPECIFIC: 0x80, - PRIVATE: 0xC0 +Root.prototype.loadSync = function loadSync(filename, options) { + if (!util.isNode) + throw Error("not supported"); + return this.load(filename, options, SYNC); +}; + +/** + * @override + */ +Root.prototype.resolveAll = function resolveAll() { + if (!this._needsRecursiveResolve) return this; + + if (this.deferred.length) + throw Error("unresolvable extensions: " + this.deferred.map(function(field) { + return "'extend " + field.extend + "' in " + field.parent.fullName; + }).join(", ")); + return Namespace.prototype.resolveAll.call(this); }; +// only uppercased (and thus conflict-free) children are exposed, see below +var exposeRe = /^[A-Z]/; + /** - * ASN.1 types. Not all types are supported by this implementation, only - * those necessary to implement a simple PKI are implemented. + * Handles a deferred declaring extension field by creating a sister field to represent it within its extended type. + * @param {Root} root Root instance + * @param {Field} field Declaring extension field witin the declaring type + * @returns {boolean} `true` if successfully added to the extended type, `false` otherwise + * @inner + * @ignore */ -asn1.Type = { - NONE: 0, - BOOLEAN: 1, - INTEGER: 2, - BITSTRING: 3, - OCTETSTRING: 4, - NULL: 5, - OID: 6, - ODESC: 7, - EXTERNAL: 8, - REAL: 9, - ENUMERATED: 10, - EMBEDDED: 11, - UTF8: 12, - ROID: 13, - SEQUENCE: 16, - SET: 17, - PRINTABLESTRING: 19, - IA5STRING: 22, - UTCTIME: 23, - GENERALIZEDTIME: 24, - BMPSTRING: 30 -}; +function tryHandleExtension(root, field) { + var extendedType = field.parent.lookup(field.extend); + if (extendedType) { + var sisterField = new Field(field.fullName, field.id, field.type, field.rule, undefined, field.options); + //do not allow to extend same field twice to prevent the error + if (extendedType.get(sisterField.name)) { + return true; + } + sisterField.declaringField = field; + field.extensionField = sisterField; + extendedType.add(sisterField); + return true; + } + return false; +} /** - * Creates a new asn1 object. - * - * @param tagClass the tag class for the object. - * @param type the data type (tag number) for the object. - * @param constructed true if the asn1 object is in constructed form. - * @param value the value for the object, if it is not constructed. - * @param [options] the options to use: - * [bitStringContents] the plain BIT STRING content including padding - * byte. - * - * @return the asn1 object. + * Called when any object is added to this root or its sub-namespaces. + * @param {ReflectionObject} object Object added + * @returns {undefined} + * @private */ -asn1.create = function(tagClass, type, constructed, value, options) { - /* An asn1 object has a tagClass, a type, a constructed flag, and a - value. The value's type depends on the constructed flag. If - constructed, it will contain a list of other asn1 objects. If not, - it will contain the ASN.1 value as an array of bytes formatted - according to the ASN.1 data type. */ +Root.prototype._handleAdd = function _handleAdd(object) { + if (object instanceof Field) { - // remove undefined values - if(forge.util.isArray(value)) { - var tmp = []; - for(var i = 0; i < value.length; ++i) { - if(value[i] !== undefined) { - tmp.push(value[i]); - } + if (/* an extension field (implies not part of a oneof) */ object.extend !== undefined && /* not already handled */ !object.extensionField) + if (!tryHandleExtension(this, object)) + this.deferred.push(object); + + } else if (object instanceof Enum) { + + if (exposeRe.test(object.name)) + object.parent[object.name] = object.values; // expose enum values as property of its parent + + } else if (!(object instanceof OneOf)) /* everything else is a namespace */ { + + if (object instanceof Type) // Try to handle any deferred extensions + for (var i = 0; i < this.deferred.length;) + if (tryHandleExtension(this, this.deferred[i])) + this.deferred.splice(i, 1); + else + ++i; + for (var j = 0; j < /* initializes */ object.nestedArray.length; ++j) // recurse into the namespace + this._handleAdd(object._nestedArray[j]); + if (exposeRe.test(object.name)) + object.parent[object.name] = object; // expose namespace as property of its parent } - value = tmp; - } - var obj = { - tagClass: tagClass, - type: type, - constructed: constructed, - composed: constructed || forge.util.isArray(value), - value: value - }; - if(options && 'bitStringContents' in options) { - // TODO: copy byte buffer if it's a buffer not a string - obj.bitStringContents = options.bitStringContents; - // TODO: add readonly flag to avoid this overhead - // save copy to detect changes - obj.original = asn1.copy(obj); - } - return obj; + if (object instanceof Type || object instanceof Enum || object instanceof Field) { + // Only store types and enums for quick lookup during resolve. + this._fullyQualifiedObjects[object.fullName] = object; + } + + // The above also adds uppercased (and thus conflict-free) nested types, services and enums as + // properties of namespaces just like static code does. This allows using a .d.ts generated for + // a static module with reflection-based solutions where the condition is met. }; /** - * Copies an asn1 object. - * - * @param obj the asn1 object. - * @param [options] copy options: - * [excludeBitStringContents] true to not copy bitStringContents - * - * @return the a copy of the asn1 object. + * Called when any object is removed from this root or its sub-namespaces. + * @param {ReflectionObject} object Object removed + * @returns {undefined} + * @private */ -asn1.copy = function(obj, options) { - var copy; +Root.prototype._handleRemove = function _handleRemove(object) { + if (object instanceof Field) { + + if (/* an extension field */ object.extend !== undefined) { + if (/* already handled */ object.extensionField) { // remove its sister field + object.extensionField.parent.remove(object.extensionField); + object.extensionField = null; + } else { // cancel the extension + var index = this.deferred.indexOf(object); + /* istanbul ignore else */ + if (index > -1) + this.deferred.splice(index, 1); + } + } + + } else if (object instanceof Enum) { + + if (exposeRe.test(object.name)) + delete object.parent[object.name]; // unexpose enum values + + } else if (object instanceof Namespace) { + + for (var i = 0; i < /* initializes */ object.nestedArray.length; ++i) // recurse into the namespace + this._handleRemove(object._nestedArray[i]); + + if (exposeRe.test(object.name)) + delete object.parent[object.name]; // unexpose namespaces - if(forge.util.isArray(obj)) { - copy = []; - for(var i = 0; i < obj.length; ++i) { - copy.push(asn1.copy(obj[i], options)); } - return copy; - } - if(typeof obj === 'string') { - // TODO: copy byte buffer if it's a buffer not a string - return obj; - } + delete this._fullyQualifiedObjects[object.fullName]; +}; - copy = { - tagClass: obj.tagClass, - type: obj.type, - constructed: obj.constructed, - composed: obj.composed, - value: asn1.copy(obj.value, options) - }; - if(options && !options.excludeBitStringContents) { - // TODO: copy byte buffer if it's a buffer not a string - copy.bitStringContents = obj.bitStringContents; - } - return copy; +// Sets up cyclic dependencies (called in index-light) +Root._configure = function(Type_, parse_, common_) { + Type = Type_; + parse = parse_; + common = common_; }; + +/***/ }), + +/***/ 29: +/***/ ((module) => { + +"use strict"; + +module.exports = {}; + /** - * Compares asn1 objects for equality. - * - * Note this function does not run in constant time. + * Named roots. + * This is where pbjs stores generated structures (the option `-r, --root` specifies a name). + * Can also be used manually to make roots available across modules. + * @name roots + * @type {Object.} + * @example + * // pbjs -r myroot -o compiled.js ... * - * @param obj1 the first asn1 object. - * @param obj2 the second asn1 object. - * @param [options] compare options: - * [includeBitStringContents] true to compare bitStringContents + * // in another module: + * require("./compiled.js"); * - * @return true if the asn1 objects are equal. + * // in any subsequent module: + * var root = protobuf.roots["myroot"]; */ -asn1.equals = function(obj1, obj2, options) { - if(forge.util.isArray(obj1)) { - if(!forge.util.isArray(obj2)) { - return false; - } - if(obj1.length !== obj2.length) { - return false; - } - for(var i = 0; i < obj1.length; ++i) { - if(!asn1.equals(obj1[i], obj2[i])) { - return false; - } - } - return true; - } - if(typeof obj1 !== typeof obj2) { - return false; - } - if(typeof obj1 === 'string') { - return obj1 === obj2; - } +/***/ }), - var equal = obj1.tagClass === obj2.tagClass && - obj1.type === obj2.type && - obj1.constructed === obj2.constructed && - obj1.composed === obj2.composed && - asn1.equals(obj1.value, obj2.value); - if(options && options.includeBitStringContents) { - equal = equal && (obj1.bitStringContents === obj2.bitStringContents); - } +/***/ 14139: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; - return equal; -}; /** - * Gets the length of a BER-encoded ASN.1 value. - * - * In case the length is not specified, undefined is returned. - * - * @param b the BER-encoded ASN.1 byte buffer, starting with the first - * length byte. - * - * @return the length of the BER-encoded ASN.1 value or undefined. + * Streaming RPC helpers. + * @namespace */ -asn1.getBerValueLength = function(b) { - // TODO: move this function and related DER/BER functions to a der.js - // file; better abstract ASN.1 away from der/ber. - var b2 = b.getByte(); - if(b2 === 0x80) { - return undefined; - } - - // see if the length is "short form" or "long form" (bit 8 set) - var length; - var longForm = b2 & 0x80; - if(!longForm) { - // length is just the first byte - length = b2; - } else { - // the number of bytes the length is specified in bits 7 through 1 - // and each length byte is in big-endian base-256 - length = b.getInt((b2 & 0x7F) << 3); - } - return length; -}; +var rpc = exports; /** - * Check if the byte buffer has enough bytes. Throws an Error if not. - * - * @param bytes the byte buffer to parse from. - * @param remaining the bytes remaining in the current parsing state. - * @param n the number of bytes the buffer must have. + * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets. + * @typedef RPCImpl + * @type {function} + * @param {Method|rpc.ServiceMethod,Message<{}>>} method Reflected or static method being called + * @param {Uint8Array} requestData Request data + * @param {RPCImplCallback} callback Callback function + * @returns {undefined} + * @example + * function rpcImpl(method, requestData, callback) { + * if (protobuf.util.lcFirst(method.name) !== "myMethod") // compatible with static code + * throw Error("no such method"); + * asynchronouslyObtainAResponse(requestData, function(err, responseData) { + * callback(err, responseData); + * }); + * } */ -function _checkBufferLength(bytes, remaining, n) { - if(n > remaining) { - var error = new Error('Too few bytes to parse DER.'); - error.available = bytes.length(); - error.remaining = remaining; - error.requested = n; - throw error; - } -} /** - * Gets the length of a BER-encoded ASN.1 value. - * - * In case the length is not specified, undefined is returned. - * - * @param bytes the byte buffer to parse from. - * @param remaining the bytes remaining in the current parsing state. - * - * @return the length of the BER-encoded ASN.1 value or undefined. + * Node-style callback as used by {@link RPCImpl}. + * @typedef RPCImplCallback + * @type {function} + * @param {Error|null} error Error, if any, otherwise `null` + * @param {Uint8Array|null} [response] Response data or `null` to signal end of stream, if there hasn't been an error + * @returns {undefined} */ -var _getValueLength = function(bytes, remaining) { - // TODO: move this function and related DER/BER functions to a der.js - // file; better abstract ASN.1 away from der/ber. - // fromDer already checked that this byte exists - var b2 = bytes.getByte(); - remaining--; - if(b2 === 0x80) { - return undefined; - } - // see if the length is "short form" or "long form" (bit 8 set) - var length; - var longForm = b2 & 0x80; - if(!longForm) { - // length is just the first byte - length = b2; - } else { - // the number of bytes the length is specified in bits 7 through 1 - // and each length byte is in big-endian base-256 - var longFormBytes = b2 & 0x7F; - _checkBufferLength(bytes, remaining, longFormBytes); - length = bytes.getInt(longFormBytes << 3); - } - // FIXME: this will only happen for 32 bit getInt with high bit set - if(length < 0) { - throw new Error('Negative length: ' + length); - } - return length; -}; +rpc.Service = __nccwpck_require__(98927); + + +/***/ }), + +/***/ 98927: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = Service; + +var util = __nccwpck_require__(85526); + +// Extends EventEmitter +(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service; /** - * Parses an asn1 object from a byte buffer in DER format. - * - * @param bytes the byte buffer to parse from. - * @param [strict] true to be strict when checking value lengths, false to - * allow truncated values (default: true). - * @param [options] object with options or boolean strict flag - * [strict] true to be strict when checking value lengths, false to - * allow truncated values (default: true). - * [parseAllBytes] true to ensure all bytes are parsed - * (default: true) - * [decodeBitStrings] true to attempt to decode the content of - * BIT STRINGs (not OCTET STRINGs) using strict mode. Note that - * without schema support to understand the data context this can - * erroneously decode values that happen to be valid ASN.1. This - * flag will be deprecated or removed as soon as schema support is - * available. (default: true) - * - * @throws Will throw an error for various malformed input conditions. + * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}. * - * @return the parsed asn1 object. + * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`. + * @typedef rpc.ServiceMethodCallback + * @template TRes extends Message + * @type {function} + * @param {Error|null} error Error, if any + * @param {TRes} [response] Response message + * @returns {undefined} */ -asn1.fromDer = function(bytes, options) { - if(options === undefined) { - options = { - strict: true, - parseAllBytes: true, - decodeBitStrings: true - }; - } - if(typeof options === 'boolean') { - options = { - strict: options, - parseAllBytes: true, - decodeBitStrings: true - }; - } - if(!('strict' in options)) { - options.strict = true; - } - if(!('parseAllBytes' in options)) { - options.parseAllBytes = true; - } - if(!('decodeBitStrings' in options)) { - options.decodeBitStrings = true; - } - - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } - var byteCount = bytes.length(); - var value = _fromDer(bytes, bytes.length(), 0, options); - if(options.parseAllBytes && bytes.length() !== 0) { - var error = new Error('Unparsed DER bytes remain after ASN.1 parsing.'); - error.byteCount = byteCount; - error.remaining = bytes.length(); - throw error; - } - return value; -}; +/** + * A service method part of a {@link rpc.Service} as created by {@link Service.create}. + * @typedef rpc.ServiceMethod + * @template TReq extends Message + * @template TRes extends Message + * @type {function} + * @param {TReq|Properties} request Request message or plain object + * @param {rpc.ServiceMethodCallback} [callback] Node-style callback called with the error, if any, and the response message + * @returns {Promise>} Promise if `callback` has been omitted, otherwise `undefined` + */ /** - * Internal function to parse an asn1 object from a byte buffer in DER format. - * - * @param bytes the byte buffer to parse from. - * @param remaining the number of bytes remaining for this chunk. - * @param depth the current parsing depth. - * @param options object with same options as fromDer(). - * - * @return the parsed asn1 object. + * Constructs a new RPC service instance. + * @classdesc An RPC service as returned by {@link Service#create}. + * @exports rpc.Service + * @extends util.EventEmitter + * @constructor + * @param {RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ -function _fromDer(bytes, remaining, depth, options) { - // temporary storage for consumption calculations - var start; +function Service(rpcImpl, requestDelimited, responseDelimited) { - // minimum length for ASN.1 DER structure is 2 - _checkBufferLength(bytes, remaining, 2); + if (typeof rpcImpl !== "function") + throw TypeError("rpcImpl must be a function"); - // get the first byte - var b1 = bytes.getByte(); - // consumed one byte - remaining--; + util.EventEmitter.call(this); - // get the tag class - var tagClass = (b1 & 0xC0); + /** + * RPC implementation. Becomes `null` once the service is ended. + * @type {RPCImpl|null} + */ + this.rpcImpl = rpcImpl; - // get the type (bits 1-5) - var type = b1 & 0x1F; + /** + * Whether requests are length-delimited. + * @type {boolean} + */ + this.requestDelimited = Boolean(requestDelimited); - // get the variable value length and adjust remaining bytes - start = bytes.length(); - var length = _getValueLength(bytes, remaining); - remaining -= start - bytes.length(); + /** + * Whether responses are length-delimited. + * @type {boolean} + */ + this.responseDelimited = Boolean(responseDelimited); +} - // ensure there are enough bytes to get the value - if(length !== undefined && length > remaining) { - if(options.strict) { - var error = new Error('Too few bytes to read ASN.1 value.'); - error.available = bytes.length(); - error.remaining = remaining; - error.requested = length; - throw error; - } - // Note: be lenient with truncated values and use remaining state bytes - length = remaining; - } +/** + * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}. + * @param {Method|rpc.ServiceMethod} method Reflected or static method + * @param {Constructor} requestCtor Request constructor + * @param {Constructor} responseCtor Response constructor + * @param {TReq|Properties} request Request message or plain object + * @param {rpc.ServiceMethodCallback} callback Service callback + * @returns {undefined} + * @template TReq extends Message + * @template TRes extends Message + */ +Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) { - // value storage - var value; - // possible BIT STRING contents storage - var bitStringContents; + if (!request) + throw TypeError("request must be specified"); - // constructed flag is bit 6 (32 = 0x20) of the first byte - var constructed = ((b1 & 0x20) === 0x20); - if(constructed) { - // parse child asn1 objects from the value - value = []; - if(length === undefined) { - // asn1 object of indefinite length, read until end tag - for(;;) { - _checkBufferLength(bytes, remaining, 2); - if(bytes.bytes(2) === String.fromCharCode(0, 0)) { - bytes.getBytes(2); - remaining -= 2; - break; - } - start = bytes.length(); - value.push(_fromDer(bytes, remaining, depth + 1, options)); - remaining -= start - bytes.length(); - } - } else { - // parsing asn1 object of definite length - while(length > 0) { - start = bytes.length(); - value.push(_fromDer(bytes, length, depth + 1, options)); - remaining -= start - bytes.length(); - length -= start - bytes.length(); - } + var self = this; + if (!callback) + return util.asPromise(rpcCall, self, method, requestCtor, responseCtor, request); + + if (!self.rpcImpl) { + setTimeout(function() { callback(Error("already ended")); }, 0); + return undefined; } - } - // if a BIT STRING, save the contents including padding - if(value === undefined && tagClass === asn1.Class.UNIVERSAL && - type === asn1.Type.BITSTRING) { - bitStringContents = bytes.bytes(length); - } + try { + return self.rpcImpl( + method, + requestCtor[self.requestDelimited ? "encodeDelimited" : "encode"](request).finish(), + function rpcCallback(err, response) { - // determine if a non-constructed value should be decoded as a composed - // value that contains other ASN.1 objects. BIT STRINGs (and OCTET STRINGs) - // can be used this way. - if(value === undefined && options.decodeBitStrings && - tagClass === asn1.Class.UNIVERSAL && - // FIXME: OCTET STRINGs not yet supported here - // .. other parts of forge expect to decode OCTET STRINGs manually - (type === asn1.Type.BITSTRING /*|| type === asn1.Type.OCTETSTRING*/) && - length > 1) { - // save read position - var savedRead = bytes.read; - var savedRemaining = remaining; - var unused = 0; - if(type === asn1.Type.BITSTRING) { - /* The first octet gives the number of bits by which the length of the - bit string is less than the next multiple of eight (this is called - the "number of unused bits"). + if (err) { + self.emit("error", err, method); + return callback(err); + } - The second and following octets give the value of the bit string - converted to an octet string. */ - _checkBufferLength(bytes, remaining, 1); - unused = bytes.getByte(); - remaining--; - } - // if all bits are used, maybe the BIT/OCTET STRING holds ASN.1 objs - if(unused === 0) { - try { - // attempt to parse child asn1 object from the value - // (stored in array to signal composed value) - start = bytes.length(); - var subOptions = { - // enforce strict mode to avoid parsing ASN.1 from plain data - strict: true, - decodeBitStrings: true - }; - var composed = _fromDer(bytes, remaining, depth + 1, subOptions); - var used = start - bytes.length(); - remaining -= used; - if(type == asn1.Type.BITSTRING) { - used++; - } + if (response === null) { + self.end(/* endedByRPC */ true); + return undefined; + } - // if the data all decoded and the class indicates UNIVERSAL or - // CONTEXT_SPECIFIC then assume we've got an encapsulated ASN.1 object - var tc = composed.tagClass; - if(used === length && - (tc === asn1.Class.UNIVERSAL || tc === asn1.Class.CONTEXT_SPECIFIC)) { - value = [composed]; - } - } catch(ex) { - } + if (!(response instanceof responseCtor)) { + try { + response = responseCtor[self.responseDelimited ? "decodeDelimited" : "decode"](response); + } catch (err) { + self.emit("error", err, method); + return callback(err); + } + } + + self.emit("data", response, method); + return callback(null, response); + } + ); + } catch (err) { + self.emit("error", err, method); + setTimeout(function() { callback(err); }, 0); + return undefined; } - if(value === undefined) { - // restore read position - bytes.read = savedRead; - remaining = savedRemaining; +}; + +/** + * Ends this service and emits the `end` event. + * @param {boolean} [endedByRPC=false] Whether the service has been ended by the RPC implementation. + * @returns {rpc.Service} `this` + */ +Service.prototype.end = function end(endedByRPC) { + if (this.rpcImpl) { + if (!endedByRPC) // signal end to rpcImpl + this.rpcImpl(null, null, null); + this.rpcImpl = null; + this.emit("end").off(); } - } + return this; +}; - if(value === undefined) { - // asn1 not constructed or composed, get raw value - // TODO: do DER to OID conversion and vice-versa in .toDer? - if(length === undefined) { - if(options.strict) { - throw new Error('Non-constructed ASN.1 object of indefinite length.'); - } - // be lenient and use remaining state bytes - length = remaining; - } +/***/ }), - if(type === asn1.Type.BMPSTRING) { - value = ''; - for(; length > 0; length -= 2) { - _checkBufferLength(bytes, remaining, 2); - value += String.fromCharCode(bytes.getInt16()); - remaining -= 2; - } - } else { - value = bytes.getBytes(length); - remaining -= length; - } - } +/***/ 68019: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // add BIT STRING contents if available - var asn1Options = bitStringContents === undefined ? null : { - bitStringContents: bitStringContents - }; +"use strict"; - // create and return asn1 object - return asn1.create(tagClass, type, constructed, value, asn1Options); -} +module.exports = Service; + +// extends Namespace +var Namespace = __nccwpck_require__(94495); +((Service.prototype = Object.create(Namespace.prototype)).constructor = Service).className = "Service"; + +var Method = __nccwpck_require__(9327), + util = __nccwpck_require__(16914), + rpc = __nccwpck_require__(14139); /** - * Converts the given asn1 object to a buffer of bytes in DER format. - * - * @param asn1 the asn1 object to convert to bytes. - * - * @return the buffer of bytes. + * Constructs a new service instance. + * @classdesc Reflected service. + * @extends NamespaceBase + * @constructor + * @param {string} name Service name + * @param {Object.} [options] Service options + * @throws {TypeError} If arguments are invalid */ -asn1.toDer = function(obj) { - var bytes = forge.util.createBuffer(); +function Service(name, options) { + Namespace.call(this, name, options); - // build the first byte - var b1 = obj.tagClass | obj.type; + /** + * Service methods. + * @type {Object.} + */ + this.methods = {}; // toJSON, marker - // for storing the ASN.1 value - var value = forge.util.createBuffer(); + /** + * Cached methods as an array. + * @type {Method[]|null} + * @private + */ + this._methodsArray = null; +} - // use BIT STRING contents if available and data not changed - var useBitStringContents = false; - if('bitStringContents' in obj) { - useBitStringContents = true; - if(obj.original) { - useBitStringContents = asn1.equals(obj, obj.original); - } - } +/** + * Service descriptor. + * @interface IService + * @extends INamespace + * @property {Object.} methods Method descriptors + */ + +/** + * Constructs a service from a service descriptor. + * @param {string} name Service name + * @param {IService} json Service descriptor + * @returns {Service} Created service + * @throws {TypeError} If arguments are invalid + */ +Service.fromJSON = function fromJSON(name, json) { + var service = new Service(name, json.options); + /* istanbul ignore else */ + if (json.methods) + for (var names = Object.keys(json.methods), i = 0; i < names.length; ++i) + service.add(Method.fromJSON(names[i], json.methods[names[i]])); + if (json.nested) + service.addJSON(json.nested); + if (json.edition) + service._edition = json.edition; + service.comment = json.comment; + service._defaultEdition = "proto3"; // For backwards-compatibility. + return service; +}; - if(useBitStringContents) { - value.putBytes(obj.bitStringContents); - } else if(obj.composed) { - // if composed, use each child asn1 object's DER bytes as value - // turn on 6th bit (0x20 = 32) to indicate asn1 is constructed - // from other asn1 objects - if(obj.constructed) { - b1 |= 0x20; - } else { - // type is a bit string, add unused bits of 0x00 - value.putByte(0x00); - } +/** + * Converts this service to a service descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {IService} Service descriptor + */ +Service.prototype.toJSON = function toJSON(toJSONOptions) { + var inherited = Namespace.prototype.toJSON.call(this, toJSONOptions); + var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; + return util.toObject([ + "edition" , this._editionToJSON(), + "options" , inherited && inherited.options || undefined, + "methods" , Namespace.arrayToJSON(this.methodsArray, toJSONOptions) || /* istanbul ignore next */ {}, + "nested" , inherited && inherited.nested || undefined, + "comment" , keepComments ? this.comment : undefined + ]); +}; - // add all of the child DER bytes together - for(var i = 0; i < obj.value.length; ++i) { - if(obj.value[i] !== undefined) { - value.putBuffer(asn1.toDer(obj.value[i])); - } - } - } else { - // use asn1.value directly - if(obj.type === asn1.Type.BMPSTRING) { - for(var i = 0; i < obj.value.length; ++i) { - value.putInt16(obj.value.charCodeAt(i)); - } - } else { - // ensure integer is minimally-encoded - // TODO: should all leading bytes be stripped vs just one? - // .. ex '00 00 01' => '01'? - if(obj.type === asn1.Type.INTEGER && - obj.value.length > 1 && - // leading 0x00 for positive integer - ((obj.value.charCodeAt(0) === 0 && - (obj.value.charCodeAt(1) & 0x80) === 0) || - // leading 0xFF for negative integer - (obj.value.charCodeAt(0) === 0xFF && - (obj.value.charCodeAt(1) & 0x80) === 0x80))) { - value.putBytes(obj.value.substr(1)); - } else { - value.putBytes(obj.value); - } +/** + * Methods of this service as an array for iteration. + * @name Service#methodsArray + * @type {Method[]} + * @readonly + */ +Object.defineProperty(Service.prototype, "methodsArray", { + get: function() { + return this._methodsArray || (this._methodsArray = util.toArray(this.methods)); } - } +}); - // add tag byte - bytes.putByte(b1); +function clearCache(service) { + service._methodsArray = null; + return service; +} - // use "short form" encoding - if(value.length() <= 127) { - // one byte describes the length - // bit 8 = 0 and bits 7-1 = length - bytes.putByte(value.length() & 0x7F); - } else { - // use "long form" encoding - // 2 to 127 bytes describe the length - // first byte: bit 8 = 1 and bits 7-1 = # of additional bytes - // other bytes: length in base 256, big-endian - var len = value.length(); - var lenBytes = ''; - do { - lenBytes += String.fromCharCode(len & 0xFF); - len = len >>> 8; - } while(len > 0); +/** + * @override + */ +Service.prototype.get = function get(name) { + return this.methods[name] + || Namespace.prototype.get.call(this, name); +}; - // set first byte to # bytes used to store the length and turn on - // bit 8 to indicate long-form length is used - bytes.putByte(lenBytes.length | 0x80); +/** + * @override + */ +Service.prototype.resolveAll = function resolveAll() { + if (!this._needsRecursiveResolve) return this; - // concatenate length bytes in reverse since they were generated - // little endian and we need big endian - for(var i = lenBytes.length - 1; i >= 0; --i) { - bytes.putByte(lenBytes.charCodeAt(i)); - } - } + Namespace.prototype.resolve.call(this); + var methods = this.methodsArray; + for (var i = 0; i < methods.length; ++i) + methods[i].resolve(); + return this; +}; - // concatenate value bytes - bytes.putBuffer(value); - return bytes; +/** + * @override + */ +Service.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { + if (!this._needsRecursiveFeatureResolution) return this; + + edition = this._edition || edition; + + Namespace.prototype._resolveFeaturesRecursive.call(this, edition); + this.methodsArray.forEach(method => { + method._resolveFeaturesRecursive(edition); + }); + return this; }; /** - * Converts an OID dot-separated string to a byte buffer. The byte buffer - * contains only the DER-encoded value, not any tag or length bytes. - * - * @param oid the OID dot-separated string. - * - * @return the byte buffer. + * @override */ -asn1.oidToDer = function(oid) { - // split OID into individual values - var values = oid.split('.'); - var bytes = forge.util.createBuffer(); +Service.prototype.add = function add(object) { - // first byte is 40 * value1 + value2 - bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10)); - // other bytes are each value in base 128 with 8th bit set except for - // the last byte for each value - var last, valueBytes, value, b; - for(var i = 2; i < values.length; ++i) { - // produce value bytes in reverse because we don't know how many - // bytes it will take to store the value - last = true; - valueBytes = []; - value = parseInt(values[i], 10); - do { - b = value & 0x7F; - value = value >>> 7; - // if value is not last, then turn on 8th bit - if(!last) { - b |= 0x80; - } - valueBytes.push(b); - last = false; - } while(value > 0); + /* istanbul ignore if */ + if (this.get(object.name)) + throw Error("duplicate name '" + object.name + "' in " + this); - // add value bytes in reverse (needs to be in big endian) - for(var n = valueBytes.length - 1; n >= 0; --n) { - bytes.putByte(valueBytes[n]); + if (object instanceof Method) { + this.methods[object.name] = object; + object.parent = this; + return clearCache(this); } - } - - return bytes; + return Namespace.prototype.add.call(this, object); }; /** - * Converts a DER-encoded byte buffer to an OID dot-separated string. The - * byte buffer should contain only the DER-encoded value, not any tag or - * length bytes. - * - * @param bytes the byte buffer. - * - * @return the OID dot-separated string. + * @override */ -asn1.derToOid = function(bytes) { - var oid; +Service.prototype.remove = function remove(object) { + if (object instanceof Method) { - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } + /* istanbul ignore if */ + if (this.methods[object.name] !== object) + throw Error(object + " is not a member of " + this); - // first byte is 40 * value1 + value2 - var b = bytes.getByte(); - oid = Math.floor(b / 40) + '.' + (b % 40); + delete this.methods[object.name]; + object.parent = null; + return clearCache(this); + } + return Namespace.prototype.remove.call(this, object); +}; - // other bytes are each value in base 128 with 8th bit set except for - // the last byte for each value - var value = 0; - while(bytes.length() > 0) { - b = bytes.getByte(); - value = value << 7; - // not the last byte for the value - if(b & 0x80) { - value += b & 0x7F; - } else { - // last byte - oid += '.' + (value + b); - value = 0; +/** + * Creates a runtime service using the specified rpc implementation. + * @param {RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {rpc.Service} RPC service. Useful where requests and/or responses are streamed. + */ +Service.prototype.create = function create(rpcImpl, requestDelimited, responseDelimited) { + var rpcService = new rpc.Service(rpcImpl, requestDelimited, responseDelimited); + for (var i = 0, method; i < /* initializes */ this.methodsArray.length; ++i) { + var methodName = util.lcFirst((method = this._methodsArray[i]).resolve().name).replace(/[^$\w_]/g, ""); + rpcService[methodName] = util.codegen(["r","c"], util.isReserved(methodName) ? methodName + "_" : methodName)("return this.rpcCall(m,q,s,r,c)")({ + m: method, + q: method.resolvedRequestType.ctor, + s: method.resolvedResponseType.ctor + }); } - } + return rpcService; +}; - return oid; + +/***/ }), + +/***/ 83267: +/***/ ((module) => { + +"use strict"; + +module.exports = tokenize; + +var delimRe = /[\s{}=;:[\],'"()<>]/g, + stringDoubleRe = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, + stringSingleRe = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g; + +var setCommentRe = /^ *[*/]+ */, + setCommentAltRe = /^\s*\*?\/*/, + setCommentSplitRe = /\n/g, + whitespaceRe = /\s/, + unescapeRe = /\\(.?)/g; + +var unescapeMap = { + "0": "\0", + "r": "\r", + "n": "\n", + "t": "\t" }; /** - * Converts a UTCTime value to a date. - * - * Note: GeneralizedTime has 4 digits for the year and is used for X.509 - * dates past 2049. Parsing that structure hasn't been implemented yet. - * - * @param utc the UTCTime value to convert. - * - * @return the date. + * Unescapes a string. + * @param {string} str String to unescape + * @returns {string} Unescaped string + * @property {Object.} map Special characters map + * @memberof tokenize */ -asn1.utcTimeToDate = function(utc) { - /* The following formats can be used: +function unescape(str) { + return str.replace(unescapeRe, function($0, $1) { + switch ($1) { + case "\\": + case "": + return $1; + default: + return unescapeMap[$1] || ""; + } + }); +} - YYMMDDhhmmZ - YYMMDDhhmm+hh'mm' - YYMMDDhhmm-hh'mm' - YYMMDDhhmmssZ - YYMMDDhhmmss+hh'mm' - YYMMDDhhmmss-hh'mm' +tokenize.unescape = unescape; - Where: +/** + * Gets the next token and advances. + * @typedef TokenizerHandleNext + * @type {function} + * @returns {string|null} Next token or `null` on eof + */ - YY is the least significant two digits of the year - MM is the month (01 to 12) - DD is the day (01 to 31) - hh is the hour (00 to 23) - mm are the minutes (00 to 59) - ss are the seconds (00 to 59) - Z indicates that local time is GMT, + indicates that local time is - later than GMT, and - indicates that local time is earlier than GMT - hh' is the absolute value of the offset from GMT in hours - mm' is the absolute value of the offset from GMT in minutes */ - var date = new Date(); +/** + * Peeks for the next token. + * @typedef TokenizerHandlePeek + * @type {function} + * @returns {string|null} Next token or `null` on eof + */ - // if YY >= 50 use 19xx, if YY < 50 use 20xx - var year = parseInt(utc.substr(0, 2), 10); - year = (year >= 50) ? 1900 + year : 2000 + year; - var MM = parseInt(utc.substr(2, 2), 10) - 1; // use 0-11 for month - var DD = parseInt(utc.substr(4, 2), 10); - var hh = parseInt(utc.substr(6, 2), 10); - var mm = parseInt(utc.substr(8, 2), 10); - var ss = 0; +/** + * Pushes a token back to the stack. + * @typedef TokenizerHandlePush + * @type {function} + * @param {string} token Token + * @returns {undefined} + */ - // not just YYMMDDhhmmZ - if(utc.length > 11) { - // get character after minutes - var c = utc.charAt(10); - var end = 10; +/** + * Skips the next token. + * @typedef TokenizerHandleSkip + * @type {function} + * @param {string} expected Expected token + * @param {boolean} [optional=false] If optional + * @returns {boolean} Whether the token matched + * @throws {Error} If the token didn't match and is not optional + */ - // see if seconds are present - if(c !== '+' && c !== '-') { - // get seconds - ss = parseInt(utc.substr(10, 2), 10); - end += 2; +/** + * Gets the comment on the previous line or, alternatively, the line comment on the specified line. + * @typedef TokenizerHandleCmnt + * @type {function} + * @param {number} [line] Line number + * @returns {string|null} Comment text or `null` if none + */ + +/** + * Handle object returned from {@link tokenize}. + * @interface ITokenizerHandle + * @property {TokenizerHandleNext} next Gets the next token and advances (`null` on eof) + * @property {TokenizerHandlePeek} peek Peeks for the next token (`null` on eof) + * @property {TokenizerHandlePush} push Pushes a token back to the stack + * @property {TokenizerHandleSkip} skip Skips a token, returns its presence and advances or, if non-optional and not present, throws + * @property {TokenizerHandleCmnt} cmnt Gets the comment on the previous line or the line comment on the specified line, if any + * @property {number} line Current line number + */ + +/** + * Tokenizes the given .proto source and returns an object with useful utility functions. + * @param {string} source Source contents + * @param {boolean} alternateCommentMode Whether we should activate alternate comment parsing mode. + * @returns {ITokenizerHandle} Tokenizer handle + */ +function tokenize(source, alternateCommentMode) { + /* eslint-disable callback-return */ + source = source.toString(); + + var offset = 0, + length = source.length, + line = 1, + lastCommentLine = 0, + comments = {}; + + var stack = []; + + var stringDelim = null; + + /* istanbul ignore next */ + /** + * Creates an error for illegal syntax. + * @param {string} subject Subject + * @returns {Error} Error created + * @inner + */ + function illegal(subject) { + return Error("illegal " + subject + " (line " + line + ")"); } - } - // update date - date.setUTCFullYear(year, MM, DD); - date.setUTCHours(hh, mm, ss, 0); + /** + * Reads a string till its end. + * @returns {string} String read + * @inner + */ + function readString() { + var re = stringDelim === "'" ? stringSingleRe : stringDoubleRe; + re.lastIndex = offset - 1; + var match = re.exec(source); + if (!match) + throw illegal("string"); + offset = re.lastIndex; + push(stringDelim); + stringDelim = null; + return unescape(match[1]); + } - if(end) { - // get +/- after end of time - c = utc.charAt(end); - if(c === '+' || c === '-') { - // get hours+minutes offset - var hhoffset = parseInt(utc.substr(end + 1, 2), 10); - var mmoffset = parseInt(utc.substr(end + 4, 2), 10); + /** + * Gets the character at `pos` within the source. + * @param {number} pos Position + * @returns {string} Character + * @inner + */ + function charAt(pos) { + return source.charAt(pos); + } - // calculate offset in milliseconds - var offset = hhoffset * 60 + mmoffset; - offset *= 60000; + /** + * Sets the current comment text. + * @param {number} start Start offset + * @param {number} end End offset + * @param {boolean} isLeading set if a leading comment + * @returns {undefined} + * @inner + */ + function setComment(start, end, isLeading) { + var comment = { + type: source.charAt(start++), + lineEmpty: false, + leading: isLeading, + }; + var lookback; + if (alternateCommentMode) { + lookback = 2; // alternate comment parsing: "//" or "/*" + } else { + lookback = 3; // "///" or "/**" + } + var commentOffset = start - lookback, + c; + do { + if (--commentOffset < 0 || + (c = source.charAt(commentOffset)) === "\n") { + comment.lineEmpty = true; + break; + } + } while (c === " " || c === "\t"); + var lines = source + .substring(start, end) + .split(setCommentSplitRe); + for (var i = 0; i < lines.length; ++i) + lines[i] = lines[i] + .replace(alternateCommentMode ? setCommentAltRe : setCommentRe, "") + .trim(); + comment.text = lines + .join("\n") + .trim(); + + comments[line] = comment; + lastCommentLine = line; + } + + function isDoubleSlashCommentLine(startOffset) { + var endOffset = findEndOfLine(startOffset); + + // see if remaining line matches comment pattern + var lineText = source.substring(startOffset, endOffset); + var isComment = /^\s*\/\//.test(lineText); + return isComment; + } + + function findEndOfLine(cursor) { + // find end of cursor's line + var endOffset = cursor; + while (endOffset < length && charAt(endOffset) !== "\n") { + endOffset++; + } + return endOffset; + } + + /** + * Obtains the next token. + * @returns {string|null} Next token or `null` on eof + * @inner + */ + function next() { + if (stack.length > 0) + return stack.shift(); + if (stringDelim) + return readString(); + var repeat, + prev, + curr, + start, + isDoc, + isLeadingComment = offset === 0; + do { + if (offset === length) + return null; + repeat = false; + while (whitespaceRe.test(curr = charAt(offset))) { + if (curr === "\n") { + isLeadingComment = true; + ++line; + } + if (++offset === length) + return null; + } - // apply offset - if(c === '+') { - date.setTime(+date - offset); - } else { - date.setTime(+date + offset); - } + if (charAt(offset) === "/") { + if (++offset === length) { + throw illegal("comment"); + } + if (charAt(offset) === "/") { // Line + if (!alternateCommentMode) { + // check for triple-slash comment + isDoc = charAt(start = offset + 1) === "/"; + + while (charAt(++offset) !== "\n") { + if (offset === length) { + return null; + } + } + ++offset; + if (isDoc) { + setComment(start, offset - 1, isLeadingComment); + // Trailing comment cannot not be multi-line, + // so leading comment state should be reset to handle potential next comments + isLeadingComment = true; + } + ++line; + repeat = true; + } else { + // check for double-slash comments, consolidating consecutive lines + start = offset; + isDoc = false; + if (isDoubleSlashCommentLine(offset - 1)) { + isDoc = true; + do { + offset = findEndOfLine(offset); + if (offset === length) { + break; + } + offset++; + if (!isLeadingComment) { + // Trailing comment cannot not be multi-line + break; + } + } while (isDoubleSlashCommentLine(offset)); + } else { + offset = Math.min(length, findEndOfLine(offset) + 1); + } + if (isDoc) { + setComment(start, offset, isLeadingComment); + isLeadingComment = true; + } + line++; + repeat = true; + } + } else if ((curr = charAt(offset)) === "*") { /* Block */ + // check for /** (regular comment mode) or /* (alternate comment mode) + start = offset + 1; + isDoc = alternateCommentMode || charAt(start) === "*"; + do { + if (curr === "\n") { + ++line; + } + if (++offset === length) { + throw illegal("comment"); + } + prev = curr; + curr = charAt(offset); + } while (prev !== "*" || curr !== "/"); + ++offset; + if (isDoc) { + setComment(start, offset - 2, isLeadingComment); + isLeadingComment = true; + } + repeat = true; + } else { + return "/"; + } + } + } while (repeat); + + // offset !== length if we got here + + var end = offset; + delimRe.lastIndex = 0; + var delim = delimRe.test(charAt(end++)); + if (!delim) + while (end < length && !delimRe.test(charAt(end))) + ++end; + var token = source.substring(offset, offset = end); + if (token === "\"" || token === "'") + stringDelim = token; + return token; } - } - return date; -}; + /** + * Pushes a token back to the stack. + * @param {string} token Token + * @returns {undefined} + * @inner + */ + function push(token) { + stack.push(token); + } -/** - * Converts a GeneralizedTime value to a date. - * - * @param gentime the GeneralizedTime value to convert. - * - * @return the date. + /** + * Peeks for the next token. + * @returns {string|null} Token or `null` on eof + * @inner + */ + function peek() { + if (!stack.length) { + var token = next(); + if (token === null) + return null; + push(token); + } + return stack[0]; + } + + /** + * Skips a token. + * @param {string} expected Expected token + * @param {boolean} [optional=false] Whether the token is optional + * @returns {boolean} `true` when skipped, `false` if not + * @throws {Error} When a required token is not present + * @inner + */ + function skip(expected, optional) { + var actual = peek(), + equals = actual === expected; + if (equals) { + next(); + return true; + } + if (!optional) + throw illegal("token '" + actual + "', '" + expected + "' expected"); + return false; + } + + /** + * Gets a comment. + * @param {number} [trailingLine] Line number if looking for a trailing comment + * @returns {string|null} Comment text + * @inner + */ + function cmnt(trailingLine) { + var ret = null; + var comment; + if (trailingLine === undefined) { + comment = comments[line - 1]; + delete comments[line - 1]; + if (comment && (alternateCommentMode || comment.type === "*" || comment.lineEmpty)) { + ret = comment.leading ? comment.text : null; + } + } else { + /* istanbul ignore else */ + if (lastCommentLine < trailingLine) { + peek(); + } + comment = comments[trailingLine]; + delete comments[trailingLine]; + if (comment && !comment.lineEmpty && (alternateCommentMode || comment.type === "/")) { + ret = comment.leading ? null : comment.text; + } + } + return ret; + } + + return Object.defineProperty({ + next: next, + peek: peek, + push: push, + skip: skip, + cmnt: cmnt + }, "line", { + get: function() { return line; } + }); + /* eslint-enable callback-return */ +} + + +/***/ }), + +/***/ 22534: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = Type; + +// extends Namespace +var Namespace = __nccwpck_require__(94495); +((Type.prototype = Object.create(Namespace.prototype)).constructor = Type).className = "Type"; + +var Enum = __nccwpck_require__(13735), + OneOf = __nccwpck_require__(18269), + Field = __nccwpck_require__(57380), + MapField = __nccwpck_require__(78755), + Service = __nccwpck_require__(68019), + Message = __nccwpck_require__(60603), + Reader = __nccwpck_require__(28177), + Writer = __nccwpck_require__(65469), + util = __nccwpck_require__(16914), + encoder = __nccwpck_require__(74532), + decoder = __nccwpck_require__(29916), + verifier = __nccwpck_require__(43360), + converter = __nccwpck_require__(15164), + wrappers = __nccwpck_require__(37566); + +/** + * Constructs a new reflected message type instance. + * @classdesc Reflected message type. + * @extends NamespaceBase + * @constructor + * @param {string} name Message name + * @param {Object.} [options] Declared options */ -asn1.generalizedTimeToDate = function(gentime) { - /* The following formats can be used: +function Type(name, options) { + Namespace.call(this, name, options); - YYYYMMDDHHMMSS - YYYYMMDDHHMMSS.fff - YYYYMMDDHHMMSSZ - YYYYMMDDHHMMSS.fffZ - YYYYMMDDHHMMSS+hh'mm' - YYYYMMDDHHMMSS.fff+hh'mm' - YYYYMMDDHHMMSS-hh'mm' - YYYYMMDDHHMMSS.fff-hh'mm' + /** + * Message fields. + * @type {Object.} + */ + this.fields = {}; // toJSON, marker - Where: + /** + * Oneofs declared within this namespace, if any. + * @type {Object.} + */ + this.oneofs = undefined; // toJSON - YYYY is the year - MM is the month (01 to 12) - DD is the day (01 to 31) - hh is the hour (00 to 23) - mm are the minutes (00 to 59) - ss are the seconds (00 to 59) - .fff is the second fraction, accurate to three decimal places - Z indicates that local time is GMT, + indicates that local time is - later than GMT, and - indicates that local time is earlier than GMT - hh' is the absolute value of the offset from GMT in hours - mm' is the absolute value of the offset from GMT in minutes */ - var date = new Date(); + /** + * Extension ranges, if any. + * @type {number[][]} + */ + this.extensions = undefined; // toJSON - var YYYY = parseInt(gentime.substr(0, 4), 10); - var MM = parseInt(gentime.substr(4, 2), 10) - 1; // use 0-11 for month - var DD = parseInt(gentime.substr(6, 2), 10); - var hh = parseInt(gentime.substr(8, 2), 10); - var mm = parseInt(gentime.substr(10, 2), 10); - var ss = parseInt(gentime.substr(12, 2), 10); - var fff = 0; - var offset = 0; - var isUTC = false; + /** + * Reserved ranges, if any. + * @type {Array.} + */ + this.reserved = undefined; // toJSON - if(gentime.charAt(gentime.length - 1) === 'Z') { - isUTC = true; - } + /*? + * Whether this type is a legacy group. + * @type {boolean|undefined} + */ + this.group = undefined; // toJSON - var end = gentime.length - 5, c = gentime.charAt(end); - if(c === '+' || c === '-') { - // get hours+minutes offset - var hhoffset = parseInt(gentime.substr(end + 1, 2), 10); - var mmoffset = parseInt(gentime.substr(end + 4, 2), 10); + /** + * Cached fields by id. + * @type {Object.|null} + * @private + */ + this._fieldsById = null; - // calculate offset in milliseconds - offset = hhoffset * 60 + mmoffset; - offset *= 60000; + /** + * Cached fields as an array. + * @type {Field[]|null} + * @private + */ + this._fieldsArray = null; - // apply offset - if(c === '+') { - offset *= -1; - } + /** + * Cached oneofs as an array. + * @type {OneOf[]|null} + * @private + */ + this._oneofsArray = null; - isUTC = true; - } + /** + * Cached constructor. + * @type {Constructor<{}>} + * @private + */ + this._ctor = null; +} - // check for second fraction - if(gentime.charAt(14) === '.') { - fff = parseFloat(gentime.substr(14), 10) * 1000; - } +Object.defineProperties(Type.prototype, { - if(isUTC) { - date.setUTCFullYear(YYYY, MM, DD); - date.setUTCHours(hh, mm, ss, fff); + /** + * Message fields by id. + * @name Type#fieldsById + * @type {Object.} + * @readonly + */ + fieldsById: { + get: function() { - // apply offset - date.setTime(+date + offset); - } else { - date.setFullYear(YYYY, MM, DD); - date.setHours(hh, mm, ss, fff); - } + /* istanbul ignore if */ + if (this._fieldsById) + return this._fieldsById; - return date; -}; + this._fieldsById = {}; + for (var names = Object.keys(this.fields), i = 0; i < names.length; ++i) { + var field = this.fields[names[i]], + id = field.id; -/** - * Converts a date to a UTCTime value. - * - * Note: GeneralizedTime has 4 digits for the year and is used for X.509 - * dates past 2049. Converting to a GeneralizedTime hasn't been - * implemented yet. - * - * @param date the date to convert. - * - * @return the UTCTime value. - */ -asn1.dateToUtcTime = function(date) { - // TODO: validate; currently assumes proper format - if(typeof date === 'string') { - return date; - } + /* istanbul ignore if */ + if (this._fieldsById[id]) + throw Error("duplicate id " + id + " in " + this); - var rval = ''; + this._fieldsById[id] = field; + } + return this._fieldsById; + } + }, - // create format YYMMDDhhmmssZ - var format = []; - format.push(('' + date.getUTCFullYear()).substr(2)); - format.push('' + (date.getUTCMonth() + 1)); - format.push('' + date.getUTCDate()); - format.push('' + date.getUTCHours()); - format.push('' + date.getUTCMinutes()); - format.push('' + date.getUTCSeconds()); + /** + * Fields of this message as an array for iteration. + * @name Type#fieldsArray + * @type {Field[]} + * @readonly + */ + fieldsArray: { + get: function() { + return this._fieldsArray || (this._fieldsArray = util.toArray(this.fields)); + } + }, + + /** + * Oneofs of this message as an array for iteration. + * @name Type#oneofsArray + * @type {OneOf[]} + * @readonly + */ + oneofsArray: { + get: function() { + return this._oneofsArray || (this._oneofsArray = util.toArray(this.oneofs)); + } + }, + + /** + * The registered constructor, if any registered, otherwise a generic constructor. + * Assigning a function replaces the internal constructor. If the function does not extend {@link Message} yet, its prototype will be setup accordingly and static methods will be populated. If it already extends {@link Message}, it will just replace the internal constructor. + * @name Type#ctor + * @type {Constructor<{}>} + */ + ctor: { + get: function() { + return this._ctor || (this.ctor = Type.generateConstructor(this)()); + }, + set: function(ctor) { - // ensure 2 digits are used for each format entry - for(var i = 0; i < format.length; ++i) { - if(format[i].length < 2) { - rval += '0'; - } - rval += format[i]; - } - rval += 'Z'; + // Ensure proper prototype + var prototype = ctor.prototype; + if (!(prototype instanceof Message)) { + (ctor.prototype = new Message()).constructor = ctor; + util.merge(ctor.prototype, prototype); + } - return rval; -}; + // Classes and messages reference their reflected type + ctor.$type = ctor.prototype.$type = this; -/** - * Converts a date to a GeneralizedTime value. - * - * @param date the date to convert. - * - * @return the GeneralizedTime value as a string. - */ -asn1.dateToGeneralizedTime = function(date) { - // TODO: validate; currently assumes proper format - if(typeof date === 'string') { - return date; - } + // Mix in static methods + util.merge(ctor, Message, true); - var rval = ''; + this._ctor = ctor; - // create format YYYYMMDDHHMMSSZ - var format = []; - format.push('' + date.getUTCFullYear()); - format.push('' + (date.getUTCMonth() + 1)); - format.push('' + date.getUTCDate()); - format.push('' + date.getUTCHours()); - format.push('' + date.getUTCMinutes()); - format.push('' + date.getUTCSeconds()); + // Messages have non-enumerable default values on their prototype + var i = 0; + for (; i < /* initializes */ this.fieldsArray.length; ++i) + this._fieldsArray[i].resolve(); // ensures a proper value - // ensure 2 digits are used for each format entry - for(var i = 0; i < format.length; ++i) { - if(format[i].length < 2) { - rval += '0'; + // Messages have non-enumerable getters and setters for each virtual oneof field + var ctorProperties = {}; + for (i = 0; i < /* initializes */ this.oneofsArray.length; ++i) + ctorProperties[this._oneofsArray[i].resolve().name] = { + get: util.oneOfGetter(this._oneofsArray[i].oneof), + set: util.oneOfSetter(this._oneofsArray[i].oneof) + }; + if (i) + Object.defineProperties(ctor.prototype, ctorProperties); + } } - rval += format[i]; - } - rval += 'Z'; +}); - return rval; +/** + * Generates a constructor function for the specified type. + * @param {Type} mtype Message type + * @returns {Codegen} Codegen instance + */ +Type.generateConstructor = function generateConstructor(mtype) { + /* eslint-disable no-unexpected-multiline */ + var gen = util.codegen(["p"], mtype.name); + // explicitly initialize mutable object/array fields so that these aren't just inherited from the prototype + for (var i = 0, field; i < mtype.fieldsArray.length; ++i) + if ((field = mtype._fieldsArray[i]).map) gen + ("this%s={}", util.safeProp(field.name)); + else if (field.repeated) gen + ("this%s=[]", util.safeProp(field.name)); + return gen + ("if(p)for(var ks=Object.keys(p),i=0;i= -0x80 && x < 0x80) { - return rval.putSignedInt(x, 8); - } - if(x >= -0x8000 && x < 0x8000) { - return rval.putSignedInt(x, 16); - } - if(x >= -0x800000 && x < 0x800000) { - return rval.putSignedInt(x, 24); - } - if(x >= -0x80000000 && x < 0x80000000) { - return rval.putSignedInt(x, 32); - } - var error = new Error('Integer too large; max is 32-bits.'); - error.integer = x; - throw error; + * Message type descriptor. + * @interface IType + * @extends INamespace + * @property {Object.} [oneofs] Oneof descriptors + * @property {Object.} fields Field descriptors + * @property {number[][]} [extensions] Extension ranges + * @property {Array.} [reserved] Reserved ranges + * @property {boolean} [group=false] Whether a legacy group or not + */ + +/** + * Creates a message type from a message type descriptor. + * @param {string} name Message name + * @param {IType} json Message type descriptor + * @returns {Type} Created message type + */ +Type.fromJSON = function fromJSON(name, json) { + var type = new Type(name, json.options); + type.extensions = json.extensions; + type.reserved = json.reserved; + var names = Object.keys(json.fields), + i = 0; + for (; i < names.length; ++i) + type.add( + ( typeof json.fields[names[i]].keyType !== "undefined" + ? MapField.fromJSON + : Field.fromJSON )(names[i], json.fields[names[i]]) + ); + if (json.oneofs) + for (names = Object.keys(json.oneofs), i = 0; i < names.length; ++i) + type.add(OneOf.fromJSON(names[i], json.oneofs[names[i]])); + if (json.nested) + for (names = Object.keys(json.nested), i = 0; i < names.length; ++i) { + var nested = json.nested[names[i]]; + type.add( // most to least likely + ( nested.id !== undefined + ? Field.fromJSON + : nested.fields !== undefined + ? Type.fromJSON + : nested.values !== undefined + ? Enum.fromJSON + : nested.methods !== undefined + ? Service.fromJSON + : Namespace.fromJSON )(names[i], nested) + ); + } + if (json.extensions && json.extensions.length) + type.extensions = json.extensions; + if (json.reserved && json.reserved.length) + type.reserved = json.reserved; + if (json.group) + type.group = true; + if (json.comment) + type.comment = json.comment; + if (json.edition) + type._edition = json.edition; + type._defaultEdition = "proto3"; // For backwards-compatibility. + return type; }; /** - * Converts a DER-encoded byte buffer to a javascript integer. This is - * typically used to decode the value of an INTEGER type. - * - * @param bytes the byte buffer. - * - * @return the integer. + * Converts this message type to a message type descriptor. + * @param {IToJSONOptions} [toJSONOptions] JSON conversion options + * @returns {IType} Message type descriptor + */ +Type.prototype.toJSON = function toJSON(toJSONOptions) { + var inherited = Namespace.prototype.toJSON.call(this, toJSONOptions); + var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; + return util.toObject([ + "edition" , this._editionToJSON(), + "options" , inherited && inherited.options || undefined, + "oneofs" , Namespace.arrayToJSON(this.oneofsArray, toJSONOptions), + "fields" , Namespace.arrayToJSON(this.fieldsArray.filter(function(obj) { return !obj.declaringField; }), toJSONOptions) || {}, + "extensions" , this.extensions && this.extensions.length ? this.extensions : undefined, + "reserved" , this.reserved && this.reserved.length ? this.reserved : undefined, + "group" , this.group || undefined, + "nested" , inherited && inherited.nested || undefined, + "comment" , keepComments ? this.comment : undefined + ]); +}; + +/** + * @override */ -asn1.derToInteger = function(bytes) { - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } +Type.prototype.resolveAll = function resolveAll() { + if (!this._needsRecursiveResolve) return this; - var n = bytes.length() * 8; - if(n > 32) { - throw new Error('Integer too large; max is 32-bits.'); - } - return bytes.getSignedInt(n); + Namespace.prototype.resolveAll.call(this); + var oneofs = this.oneofsArray; i = 0; + while (i < oneofs.length) + oneofs[i++].resolve(); + var fields = this.fieldsArray, i = 0; + while (i < fields.length) + fields[i++].resolve(); + return this; }; /** - * Validates that the given ASN.1 object is at least a super set of the - * given ASN.1 structure. Only tag classes and types are checked. An - * optional map may also be provided to capture ASN.1 values while the - * structure is checked. - * - * To capture an ASN.1 value, set an object in the validator's 'capture' - * parameter to the key to use in the capture map. To capture the full - * ASN.1 object, specify 'captureAsn1'. To capture BIT STRING bytes, including - * the leading unused bits counter byte, specify 'captureBitStringContents'. - * To capture BIT STRING bytes, without the leading unused bits counter byte, - * specify 'captureBitStringValue'. - * - * Objects in the validator may set a field 'optional' to true to indicate - * that it isn't necessary to pass validation. - * - * @param obj the ASN.1 object to validate. - * @param v the ASN.1 structure validator. - * @param capture an optional map to capture values in. - * @param errors an optional array for storing validation errors. - * - * @return true on success, false on failure. + * @override */ -asn1.validate = function(obj, v, capture, errors) { - var rval = false; - - // ensure tag class and type are the same if specified - if((obj.tagClass === v.tagClass || typeof(v.tagClass) === 'undefined') && - (obj.type === v.type || typeof(v.type) === 'undefined')) { - // ensure constructed flag is the same if specified - if(obj.constructed === v.constructed || - typeof(v.constructed) === 'undefined') { - rval = true; +Type.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { + if (!this._needsRecursiveFeatureResolution) return this; - // handle sub values - if(v.value && forge.util.isArray(v.value)) { - var j = 0; - for(var i = 0; rval && i < v.value.length; ++i) { - rval = v.value[i].optional || false; - if(obj.value[j]) { - rval = asn1.validate(obj.value[j], v.value[i], capture, errors); - if(rval) { - ++j; - } else if(v.value[i].optional) { - rval = true; - } - } - if(!rval && errors) { - errors.push( - '[' + v.name + '] ' + - 'Tag class "' + v.tagClass + '", type "' + - v.type + '" expected value length "' + - v.value.length + '", got "' + - obj.value.length + '"'); - } - } - } + edition = this._edition || edition; - if(rval && capture) { - if(v.capture) { - capture[v.capture] = obj.value; - } - if(v.captureAsn1) { - capture[v.captureAsn1] = obj; - } - if(v.captureBitStringContents && 'bitStringContents' in obj) { - capture[v.captureBitStringContents] = obj.bitStringContents; - } - if(v.captureBitStringValue && 'bitStringContents' in obj) { - var value; - if(obj.bitStringContents.length < 2) { - capture[v.captureBitStringValue] = ''; - } else { - // FIXME: support unused bits with data shifting - var unused = obj.bitStringContents.charCodeAt(0); - if(unused !== 0) { - throw new Error( - 'captureBitStringValue only supported for zero unused bits'); - } - capture[v.captureBitStringValue] = obj.bitStringContents.slice(1); - } - } - } - } else if(errors) { - errors.push( - '[' + v.name + '] ' + - 'Expected constructed "' + v.constructed + '", got "' + - obj.constructed + '"'); - } - } else if(errors) { - if(obj.tagClass !== v.tagClass) { - errors.push( - '[' + v.name + '] ' + - 'Expected tag class "' + v.tagClass + '", got "' + - obj.tagClass + '"'); - } - if(obj.type !== v.type) { - errors.push( - '[' + v.name + '] ' + - 'Expected type "' + v.type + '", got "' + obj.type + '"'); - } - } - return rval; + Namespace.prototype._resolveFeaturesRecursive.call(this, edition); + this.oneofsArray.forEach(oneof => { + oneof._resolveFeatures(edition); + }); + this.fieldsArray.forEach(field => { + field._resolveFeatures(edition); + }); + return this; }; -// regex for testing for non-latin characters -var _nonLatinRegex = /[^\\u0000-\\u00ff]/; - /** - * Pretty prints an ASN.1 object to a string. - * - * @param obj the object to write out. - * @param level the level in the tree. - * @param indentation the indentation to use. - * - * @return the string. + * @override */ -asn1.prettyPrint = function(obj, level, indentation) { - var rval = ''; - - // set default level and indentation - level = level || 0; - indentation = indentation || 2; - - // start new line for deep levels - if(level > 0) { - rval += '\n'; - } +Type.prototype.get = function get(name) { + return this.fields[name] + || this.oneofs && this.oneofs[name] + || this.nested && this.nested[name] + || null; +}; - // create indent - var indent = ''; - for(var i = 0; i < level * indentation; ++i) { - indent += ' '; - } +/** + * Adds a nested object to this type. + * @param {ReflectionObject} object Nested object to add + * @returns {Type} `this` + * @throws {TypeError} If arguments are invalid + * @throws {Error} If there is already a nested object with this name or, if a field, when there is already a field with this id + */ +Type.prototype.add = function add(object) { + + if (this.get(object.name)) + throw Error("duplicate name '" + object.name + "' in " + this); + + if (object instanceof Field && object.extend === undefined) { + // NOTE: Extension fields aren't actual fields on the declaring type, but nested objects. + // The root object takes care of adding distinct sister-fields to the respective extended + // type instead. + + // avoids calling the getter if not absolutely necessary because it's called quite frequently + if (this._fieldsById ? /* istanbul ignore next */ this._fieldsById[object.id] : this.fieldsById[object.id]) + throw Error("duplicate id " + object.id + " in " + this); + if (this.isReservedId(object.id)) + throw Error("id " + object.id + " is reserved in " + this); + if (this.isReservedName(object.name)) + throw Error("name '" + object.name + "' is reserved in " + this); + + if (object.parent) + object.parent.remove(object); + this.fields[object.name] = object; + object.message = this; + object.onAdd(this); + return clearCache(this); + } + if (object instanceof OneOf) { + if (!this.oneofs) + this.oneofs = {}; + this.oneofs[object.name] = object; + object.onAdd(this); + return clearCache(this); + } + return Namespace.prototype.add.call(this, object); +}; - // print class:type - rval += indent + 'Tag: '; - switch(obj.tagClass) { - case asn1.Class.UNIVERSAL: - rval += 'Universal:'; - break; - case asn1.Class.APPLICATION: - rval += 'Application:'; - break; - case asn1.Class.CONTEXT_SPECIFIC: - rval += 'Context-Specific:'; - break; - case asn1.Class.PRIVATE: - rval += 'Private:'; - break; - } +/** + * Removes a nested object from this type. + * @param {ReflectionObject} object Nested object to remove + * @returns {Type} `this` + * @throws {TypeError} If arguments are invalid + * @throws {Error} If `object` is not a member of this type + */ +Type.prototype.remove = function remove(object) { + if (object instanceof Field && object.extend === undefined) { + // See Type#add for the reason why extension fields are excluded here. - if(obj.tagClass === asn1.Class.UNIVERSAL) { - rval += obj.type; + /* istanbul ignore if */ + if (!this.fields || this.fields[object.name] !== object) + throw Error(object + " is not a member of " + this); - // known types - switch(obj.type) { - case asn1.Type.NONE: - rval += ' (None)'; - break; - case asn1.Type.BOOLEAN: - rval += ' (Boolean)'; - break; - case asn1.Type.INTEGER: - rval += ' (Integer)'; - break; - case asn1.Type.BITSTRING: - rval += ' (Bit string)'; - break; - case asn1.Type.OCTETSTRING: - rval += ' (Octet string)'; - break; - case asn1.Type.NULL: - rval += ' (Null)'; - break; - case asn1.Type.OID: - rval += ' (Object Identifier)'; - break; - case asn1.Type.ODESC: - rval += ' (Object Descriptor)'; - break; - case asn1.Type.EXTERNAL: - rval += ' (External or Instance of)'; - break; - case asn1.Type.REAL: - rval += ' (Real)'; - break; - case asn1.Type.ENUMERATED: - rval += ' (Enumerated)'; - break; - case asn1.Type.EMBEDDED: - rval += ' (Embedded PDV)'; - break; - case asn1.Type.UTF8: - rval += ' (UTF8)'; - break; - case asn1.Type.ROID: - rval += ' (Relative Object Identifier)'; - break; - case asn1.Type.SEQUENCE: - rval += ' (Sequence)'; - break; - case asn1.Type.SET: - rval += ' (Set)'; - break; - case asn1.Type.PRINTABLESTRING: - rval += ' (Printable String)'; - break; - case asn1.Type.IA5String: - rval += ' (IA5String (ASCII))'; - break; - case asn1.Type.UTCTIME: - rval += ' (UTC time)'; - break; - case asn1.Type.GENERALIZEDTIME: - rval += ' (Generalized time)'; - break; - case asn1.Type.BMPSTRING: - rval += ' (BMP String)'; - break; + delete this.fields[object.name]; + object.parent = null; + object.onRemove(this); + return clearCache(this); } - } else { - rval += obj.type; - } + if (object instanceof OneOf) { - rval += '\n'; - rval += indent + 'Constructed: ' + obj.constructed + '\n'; + /* istanbul ignore if */ + if (!this.oneofs || this.oneofs[object.name] !== object) + throw Error(object + " is not a member of " + this); - if(obj.composed) { - var subvalues = 0; - var sub = ''; - for(var i = 0; i < obj.value.length; ++i) { - if(obj.value[i] !== undefined) { - subvalues += 1; - sub += asn1.prettyPrint(obj.value[i], level + 1, indentation); - if((i + 1) < obj.value.length) { - sub += ','; - } - } - } - rval += indent + 'Sub values: ' + subvalues + sub; - } else { - rval += indent + 'Value: '; - if(obj.type === asn1.Type.OID) { - var oid = asn1.derToOid(obj.value); - rval += oid; - if(forge.pki && forge.pki.oids) { - if(oid in forge.pki.oids) { - rval += ' (' + forge.pki.oids[oid] + ') '; - } - } - } - if(obj.type === asn1.Type.INTEGER) { - try { - rval += asn1.derToInteger(obj.value); - } catch(ex) { - rval += '0x' + forge.util.bytesToHex(obj.value); - } - } else if(obj.type === asn1.Type.BITSTRING) { - // TODO: shift bits as needed to display without padding - if(obj.value.length > 1) { - // remove unused bits field - rval += '0x' + forge.util.bytesToHex(obj.value.slice(1)); - } else { - rval += '(none)'; - } - // show unused bit count - if(obj.value.length > 0) { - var unused = obj.value.charCodeAt(0); - if(unused == 1) { - rval += ' (1 unused bit shown)'; - } else if(unused > 1) { - rval += ' (' + unused + ' unused bits shown)'; - } - } - } else if(obj.type === asn1.Type.OCTETSTRING) { - if(!_nonLatinRegex.test(obj.value)) { - rval += '(' + obj.value + ') '; - } - rval += '0x' + forge.util.bytesToHex(obj.value); - } else if(obj.type === asn1.Type.UTF8) { - try { - rval += forge.util.decodeUtf8(obj.value); - } catch(e) { - if(e.message === 'URI malformed') { - rval += - '0x' + forge.util.bytesToHex(obj.value) + ' (malformed UTF8)'; - } else { - throw e; - } - } - } else if(obj.type === asn1.Type.PRINTABLESTRING || - obj.type === asn1.Type.IA5String) { - rval += obj.value; - } else if(_nonLatinRegex.test(obj.value)) { - rval += '0x' + forge.util.bytesToHex(obj.value); - } else if(obj.value.length === 0) { - rval += '[null]'; - } else { - rval += obj.value; + delete this.oneofs[object.name]; + object.parent = null; + object.onRemove(this); + return clearCache(this); } - } - - return rval; + return Namespace.prototype.remove.call(this, object); }; - -/***/ }), - -/***/ 34743: -/***/ ((module) => { +/** + * Tests if the specified id is reserved. + * @param {number} id Id to test + * @returns {boolean} `true` if reserved, otherwise `false` + */ +Type.prototype.isReservedId = function isReservedId(id) { + return Namespace.isReservedId(this.reserved, id); +}; /** - * Base-N/Base-X encoding/decoding functions. - * - * Original implementation from base-x: - * https://github.com/cryptocoinjs/base-x - * - * Which is MIT licensed: - * - * The MIT License (MIT) - * - * Copyright base-x contributors (c) 2016 - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * Tests if the specified name is reserved. + * @param {string} name Name to test + * @returns {boolean} `true` if reserved, otherwise `false` */ -var api = {}; -module.exports = api; +Type.prototype.isReservedName = function isReservedName(name) { + return Namespace.isReservedName(this.reserved, name); +}; -// baseN alphabet indexes -var _reverseAlphabets = {}; +/** + * Creates a new message of this type using the specified properties. + * @param {Object.} [properties] Properties to set + * @returns {Message<{}>} Message instance + */ +Type.prototype.create = function create(properties) { + return new this.ctor(properties); +}; /** - * BaseN-encodes a Uint8Array using the given alphabet. - * - * @param input the Uint8Array to encode. - * @param maxline the maximum number of encoded characters per line to use, - * defaults to none. - * - * @return the baseN-encoded output string. + * Sets up {@link Type#encode|encode}, {@link Type#decode|decode} and {@link Type#verify|verify}. + * @returns {Type} `this` */ -api.encode = function(input, alphabet, maxline) { - if(typeof alphabet !== 'string') { - throw new TypeError('"alphabet" must be a string.'); - } - if(maxline !== undefined && typeof maxline !== 'number') { - throw new TypeError('"maxline" must be a number.'); - } +Type.prototype.setup = function setup() { + // Sets up everything at once so that the prototype chain does not have to be re-evaluated + // multiple times (V8, soft-deopt prototype-check). - var output = ''; + var fullName = this.fullName, + types = []; + for (var i = 0; i < /* initializes */ this.fieldsArray.length; ++i) + types.push(this._fieldsArray[i].resolve().resolvedType); - if(!(input instanceof Uint8Array)) { - // assume forge byte buffer - output = _encodeWithByteBuffer(input, alphabet); - } else { - var i = 0; - var base = alphabet.length; - var first = alphabet.charAt(0); - var digits = [0]; - for(i = 0; i < input.length; ++i) { - for(var j = 0, carry = input[i]; j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % base; - carry = (carry / base) | 0; - } + // Replace setup methods with type-specific generated functions + this.encode = encoder(this)({ + Writer : Writer, + types : types, + util : util + }); + this.decode = decoder(this)({ + Reader : Reader, + types : types, + util : util + }); + this.verify = verifier(this)({ + types : types, + util : util + }); + this.fromObject = converter.fromObject(this)({ + types : types, + util : util + }); + this.toObject = converter.toObject(this)({ + types : types, + util : util + }); - while(carry > 0) { - digits.push(carry % base); - carry = (carry / base) | 0; - } + // Inject custom wrappers for common types + var wrapper = wrappers[fullName]; + if (wrapper) { + var originalThis = Object.create(this); + // if (wrapper.fromObject) { + originalThis.fromObject = this.fromObject; + this.fromObject = wrapper.fromObject.bind(originalThis); + // } + // if (wrapper.toObject) { + originalThis.toObject = this.toObject; + this.toObject = wrapper.toObject.bind(originalThis); + // } } - // deal with leading zeros - for(i = 0; input[i] === 0 && i < input.length - 1; ++i) { - output += first; - } - // convert digits to a string - for(i = digits.length - 1; i >= 0; --i) { - output += alphabet[digits[i]]; - } - } + return this; +}; - if(maxline) { - var regex = new RegExp('.{1,' + maxline + '}', 'g'); - output = output.match(regex).join('\r\n'); - } +/** + * Encodes a message of this type. Does not implicitly {@link Type#verify|verify} messages. + * @param {Message<{}>|Object.} message Message instance or plain object + * @param {Writer} [writer] Writer to encode to + * @returns {Writer} writer + */ +Type.prototype.encode = function encode_setup(message, writer) { + return this.setup().encode(message, writer); // overrides this method +}; - return output; +/** + * Encodes a message of this type preceeded by its byte length as a varint. Does not implicitly {@link Type#verify|verify} messages. + * @param {Message<{}>|Object.} message Message instance or plain object + * @param {Writer} [writer] Writer to encode to + * @returns {Writer} writer + */ +Type.prototype.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim(); }; /** - * Decodes a baseN-encoded (using the given alphabet) string to a - * Uint8Array. - * - * @param input the baseN-encoded input string. - * - * @return the Uint8Array. + * Decodes a message of this type. + * @param {Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Length of the message, if known beforehand + * @returns {Message<{}>} Decoded message + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {util.ProtocolError<{}>} If required fields are missing */ -api.decode = function(input, alphabet) { - if(typeof input !== 'string') { - throw new TypeError('"input" must be a string.'); - } - if(typeof alphabet !== 'string') { - throw new TypeError('"alphabet" must be a string.'); - } +Type.prototype.decode = function decode_setup(reader, length) { + return this.setup().decode(reader, length); // overrides this method +}; - var table = _reverseAlphabets[alphabet]; - if(!table) { - // compute reverse alphabet - table = _reverseAlphabets[alphabet] = []; - for(var i = 0; i < alphabet.length; ++i) { - table[alphabet.charCodeAt(i)] = i; - } - } +/** + * Decodes a message of this type preceeded by its byte length as a varint. + * @param {Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Message<{}>} Decoded message + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {util.ProtocolError} If required fields are missing + */ +Type.prototype.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof Reader)) + reader = Reader.create(reader); + return this.decode(reader, reader.uint32()); +}; - // remove whitespace characters - input = input.replace(/\s/g, ''); +/** + * Verifies that field values are valid and that required fields are present. + * @param {Object.} message Plain object to verify + * @returns {null|string} `null` if valid, otherwise the reason why it is not + */ +Type.prototype.verify = function verify_setup(message) { + return this.setup().verify(message); // overrides this method +}; - var base = alphabet.length; - var first = alphabet.charAt(0); - var bytes = [0]; - for(var i = 0; i < input.length; i++) { - var value = table[input.charCodeAt(i)]; - if(value === undefined) { - return; - } +/** + * Creates a new message of this type from a plain object. Also converts values to their respective internal types. + * @param {Object.} object Plain object to convert + * @returns {Message<{}>} Message instance + */ +Type.prototype.fromObject = function fromObject(object) { + return this.setup().fromObject(object); +}; - for(var j = 0, carry = value; j < bytes.length; ++j) { - carry += bytes[j] * base; - bytes[j] = carry & 0xff; - carry >>= 8; - } +/** + * Conversion options as used by {@link Type#toObject} and {@link Message.toObject}. + * @interface IConversionOptions + * @property {Function} [longs] Long conversion type. + * Valid values are `String` and `Number` (the global types). + * Defaults to copy the present value, which is a possibly unsafe number without and a {@link Long} with a long library. + * @property {Function} [enums] Enum value conversion type. + * Only valid value is `String` (the global type). + * Defaults to copy the present value, which is the numeric id. + * @property {Function} [bytes] Bytes value conversion type. + * Valid values are `Array` and (a base64 encoded) `String` (the global types). + * Defaults to copy the present value, which usually is a Buffer under node and an Uint8Array in the browser. + * @property {boolean} [defaults=false] Also sets default values on the resulting object + * @property {boolean} [arrays=false] Sets empty arrays for missing repeated fields even if `defaults=false` + * @property {boolean} [objects=false] Sets empty objects for missing map fields even if `defaults=false` + * @property {boolean} [oneofs=false] Includes virtual oneof properties set to the present field's name, if any + * @property {boolean} [json=false] Performs additional JSON compatibility conversions, i.e. NaN and Infinity to strings + */ + +/** + * Creates a plain object from a message of this type. Also converts values to other types if specified. + * @param {Message<{}>} message Message instance + * @param {IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ +Type.prototype.toObject = function toObject(message, options) { + return this.setup().toObject(message, options); +}; - while(carry > 0) { - bytes.push(carry & 0xff); - carry >>= 8; - } - } +/** + * Decorator function as returned by {@link Type.d} (TypeScript). + * @typedef TypeDecorator + * @type {function} + * @param {Constructor} target Target constructor + * @returns {undefined} + * @template T extends Message + */ - // deal with leading zeros - for(var k = 0; input[k] === first && k < input.length - 1; ++k) { - bytes.push(0); - } +/** + * Type decorator (TypeScript). + * @param {string} [typeName] Type name, defaults to the constructor's name + * @returns {TypeDecorator} Decorator function + * @template T extends Message + */ +Type.d = function decorateType(typeName) { + return function typeDecorator(target) { + util.decorateType(target, typeName); + }; +}; - if(typeof Buffer !== 'undefined') { - return Buffer.from(bytes.reverse()); - } - return new Uint8Array(bytes.reverse()); -}; +/***/ }), -function _encodeWithByteBuffer(input, alphabet) { - var i = 0; - var base = alphabet.length; - var first = alphabet.charAt(0); - var digits = [0]; - for(i = 0; i < input.length(); ++i) { - for(var j = 0, carry = input.at(i); j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % base; - carry = (carry / base) | 0; - } +/***/ 68077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - while(carry > 0) { - digits.push(carry % base); - carry = (carry / base) | 0; - } - } +"use strict"; - var output = ''; - // deal with leading zeros - for(i = 0; input.at(i) === 0 && i < input.length() - 1; ++i) { - output += first; - } - // convert digits to a string - for(i = digits.length - 1; i >= 0; --i) { - output += alphabet[digits[i]]; - } +/** + * Common type constants. + * @namespace + */ +var types = exports; - return output; -} +var util = __nccwpck_require__(16914); +var s = [ + "double", // 0 + "float", // 1 + "int32", // 2 + "uint32", // 3 + "sint32", // 4 + "fixed32", // 5 + "sfixed32", // 6 + "int64", // 7 + "uint64", // 8 + "sint64", // 9 + "fixed64", // 10 + "sfixed64", // 11 + "bool", // 12 + "string", // 13 + "bytes" // 14 +]; -/***/ }), +function bake(values, offset) { + var i = 0, o = {}; + offset |= 0; + while (i < values.length) o[s[i + offset]] = values[i++]; + return o; +} -/***/ 80723: +/** + * Basic type wire types. + * @type {Object.} + * @const + * @property {number} double=1 Fixed64 wire type + * @property {number} float=5 Fixed32 wire type + * @property {number} int32=0 Varint wire type + * @property {number} uint32=0 Varint wire type + * @property {number} sint32=0 Varint wire type + * @property {number} fixed32=5 Fixed32 wire type + * @property {number} sfixed32=5 Fixed32 wire type + * @property {number} int64=0 Varint wire type + * @property {number} uint64=0 Varint wire type + * @property {number} sint64=0 Varint wire type + * @property {number} fixed64=1 Fixed64 wire type + * @property {number} sfixed64=1 Fixed64 wire type + * @property {number} bool=0 Varint wire type + * @property {number} string=2 Ldelim wire type + * @property {number} bytes=2 Ldelim wire type + */ +types.basic = bake([ + /* double */ 1, + /* float */ 5, + /* int32 */ 0, + /* uint32 */ 0, + /* sint32 */ 0, + /* fixed32 */ 5, + /* sfixed32 */ 5, + /* int64 */ 0, + /* uint64 */ 0, + /* sint64 */ 0, + /* fixed64 */ 1, + /* sfixed64 */ 1, + /* bool */ 0, + /* string */ 2, + /* bytes */ 2 +]); + +/** + * Basic type defaults. + * @type {Object.} + * @const + * @property {number} double=0 Double default + * @property {number} float=0 Float default + * @property {number} int32=0 Int32 default + * @property {number} uint32=0 Uint32 default + * @property {number} sint32=0 Sint32 default + * @property {number} fixed32=0 Fixed32 default + * @property {number} sfixed32=0 Sfixed32 default + * @property {number} int64=0 Int64 default + * @property {number} uint64=0 Uint64 default + * @property {number} sint64=0 Sint32 default + * @property {number} fixed64=0 Fixed64 default + * @property {number} sfixed64=0 Sfixed64 default + * @property {boolean} bool=false Bool default + * @property {string} string="" String default + * @property {Array.} bytes=Array(0) Bytes default + * @property {null} message=null Message default + */ +types.defaults = bake([ + /* double */ 0, + /* float */ 0, + /* int32 */ 0, + /* uint32 */ 0, + /* sint32 */ 0, + /* fixed32 */ 0, + /* sfixed32 */ 0, + /* int64 */ 0, + /* uint64 */ 0, + /* sint64 */ 0, + /* fixed64 */ 0, + /* sfixed64 */ 0, + /* bool */ false, + /* string */ "", + /* bytes */ util.emptyArray, + /* message */ null +]); + +/** + * Basic long type wire types. + * @type {Object.} + * @const + * @property {number} int64=0 Varint wire type + * @property {number} uint64=0 Varint wire type + * @property {number} sint64=0 Varint wire type + * @property {number} fixed64=1 Fixed64 wire type + * @property {number} sfixed64=1 Fixed64 wire type + */ +types.long = bake([ + /* int64 */ 0, + /* uint64 */ 0, + /* sint64 */ 0, + /* fixed64 */ 1, + /* sfixed64 */ 1 +], 7); + +/** + * Allowed types for map keys with their associated wire type. + * @type {Object.} + * @const + * @property {number} int32=0 Varint wire type + * @property {number} uint32=0 Varint wire type + * @property {number} sint32=0 Varint wire type + * @property {number} fixed32=5 Fixed32 wire type + * @property {number} sfixed32=5 Fixed32 wire type + * @property {number} int64=0 Varint wire type + * @property {number} uint64=0 Varint wire type + * @property {number} sint64=0 Varint wire type + * @property {number} fixed64=1 Fixed64 wire type + * @property {number} sfixed64=1 Fixed64 wire type + * @property {number} bool=0 Varint wire type + * @property {number} string=2 Ldelim wire type + */ +types.mapKey = bake([ + /* int32 */ 0, + /* uint32 */ 0, + /* sint32 */ 0, + /* fixed32 */ 5, + /* sfixed32 */ 5, + /* int64 */ 0, + /* uint64 */ 0, + /* sint64 */ 0, + /* fixed64 */ 1, + /* sfixed64 */ 1, + /* bool */ 0, + /* string */ 2 +], 2); + +/** + * Allowed types for packed repeated fields with their associated wire type. + * @type {Object.} + * @const + * @property {number} double=1 Fixed64 wire type + * @property {number} float=5 Fixed32 wire type + * @property {number} int32=0 Varint wire type + * @property {number} uint32=0 Varint wire type + * @property {number} sint32=0 Varint wire type + * @property {number} fixed32=5 Fixed32 wire type + * @property {number} sfixed32=5 Fixed32 wire type + * @property {number} int64=0 Varint wire type + * @property {number} uint64=0 Varint wire type + * @property {number} sint64=0 Varint wire type + * @property {number} fixed64=1 Fixed64 wire type + * @property {number} sfixed64=1 Fixed64 wire type + * @property {number} bool=0 Varint wire type + */ +types.packed = bake([ + /* double */ 1, + /* float */ 5, + /* int32 */ 0, + /* uint32 */ 0, + /* sint32 */ 0, + /* fixed32 */ 5, + /* sfixed32 */ 5, + /* int64 */ 0, + /* uint64 */ 0, + /* sint64 */ 0, + /* fixed64 */ 1, + /* sfixed64 */ 1, + /* bool */ 0 +]); + + +/***/ }), + +/***/ 16914: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +"use strict"; + + /** - * Cipher base API. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * Various utility functions. + * @namespace */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(21720); +var util = module.exports = __nccwpck_require__(85526); -module.exports = forge.cipher = forge.cipher || {}; +var roots = __nccwpck_require__(29); -// registered algorithms -forge.cipher.algorithms = forge.cipher.algorithms || {}; +var Type, // cyclic + Enum; + +util.codegen = __nccwpck_require__(94933); +util.fetch = __nccwpck_require__(52248); +util.path = __nccwpck_require__(33531); /** - * Creates a cipher object that can be used to encrypt data using the given - * algorithm and key. The algorithm may be provided as a string value for a - * previously registered algorithm or it may be given as a cipher algorithm - * API object. - * - * @param algorithm the algorithm to use, either a string or an algorithm API - * object. - * @param key the key to use, as a binary-encoded string of bytes or a - * byte buffer. - * - * @return the cipher. + * Node's fs module if available. + * @type {Object.} */ -forge.cipher.createCipher = function(algorithm, key) { - var api = algorithm; - if(typeof api === 'string') { - api = forge.cipher.getAlgorithm(api); - if(api) { - api = api(); - } - } - if(!api) { - throw new Error('Unsupported algorithm: ' + algorithm); - } +util.fs = util.inquire("fs"); - // assume block cipher - return new forge.cipher.BlockCipher({ - algorithm: api, - key: key, - decrypt: false - }); +/** + * Converts an object's values to an array. + * @param {Object.} object Object to convert + * @returns {Array.<*>} Converted array + */ +util.toArray = function toArray(object) { + if (object) { + var keys = Object.keys(object), + array = new Array(keys.length), + index = 0; + while (index < keys.length) + array[index] = object[keys[index++]]; + return array; + } + return []; }; /** - * Creates a decipher object that can be used to decrypt data using the given - * algorithm and key. The algorithm may be provided as a string value for a - * previously registered algorithm or it may be given as a cipher algorithm - * API object. - * - * @param algorithm the algorithm to use, either a string or an algorithm API - * object. - * @param key the key to use, as a binary-encoded string of bytes or a - * byte buffer. - * - * @return the cipher. + * Converts an array of keys immediately followed by their respective value to an object, omitting undefined values. + * @param {Array.<*>} array Array to convert + * @returns {Object.} Converted object */ -forge.cipher.createDecipher = function(algorithm, key) { - var api = algorithm; - if(typeof api === 'string') { - api = forge.cipher.getAlgorithm(api); - if(api) { - api = api(); +util.toObject = function toObject(array) { + var object = {}, + index = 0; + while (index < array.length) { + var key = array[index++], + val = array[index++]; + if (val !== undefined) + object[key] = val; } - } - if(!api) { - throw new Error('Unsupported algorithm: ' + algorithm); - } + return object; +}; - // assume block cipher - return new forge.cipher.BlockCipher({ - algorithm: api, - key: key, - decrypt: true - }); +var safePropBackslashRe = /\\/g, + safePropQuoteRe = /"/g; + +/** + * Tests whether the specified name is a reserved word in JS. + * @param {string} name Name to test + * @returns {boolean} `true` if reserved, otherwise `false` + */ +util.isReserved = function isReserved(name) { + return /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(name); }; /** - * Registers an algorithm by name. If the name was already registered, the - * algorithm API object will be overwritten. - * - * @param name the name of the algorithm. - * @param algorithm the algorithm API object. + * Returns a safe property accessor for the specified property name. + * @param {string} prop Property name + * @returns {string} Safe accessor */ -forge.cipher.registerAlgorithm = function(name, algorithm) { - name = name.toUpperCase(); - forge.cipher.algorithms[name] = algorithm; +util.safeProp = function safeProp(prop) { + if (!/^[$\w_]+$/.test(prop) || util.isReserved(prop)) + return "[\"" + prop.replace(safePropBackslashRe, "\\\\").replace(safePropQuoteRe, "\\\"") + "\"]"; + return "." + prop; }; /** - * Gets a registered algorithm by name. - * - * @param name the name of the algorithm. - * - * @return the algorithm, if found, null if not. + * Converts the first character of a string to upper case. + * @param {string} str String to convert + * @returns {string} Converted string */ -forge.cipher.getAlgorithm = function(name) { - name = name.toUpperCase(); - if(name in forge.cipher.algorithms) { - return forge.cipher.algorithms[name]; - } - return null; +util.ucFirst = function ucFirst(str) { + return str.charAt(0).toUpperCase() + str.substring(1); }; -var BlockCipher = forge.cipher.BlockCipher = function(options) { - this.algorithm = options.algorithm; - this.mode = this.algorithm.mode; - this.blockSize = this.mode.blockSize; - this._finish = false; - this._input = null; - this.output = null; - this._op = options.decrypt ? this.mode.decrypt : this.mode.encrypt; - this._decrypt = options.decrypt; - this.algorithm.initialize(options); +var camelCaseRe = /_([a-z])/g; + +/** + * Converts a string to camel case. + * @param {string} str String to convert + * @returns {string} Converted string + */ +util.camelCase = function camelCase(str) { + return str.substring(0, 1) + + str.substring(1) + .replace(camelCaseRe, function($0, $1) { return $1.toUpperCase(); }); }; /** - * Starts or restarts the encryption or decryption process, whichever - * was previously configured. - * - * For non-GCM mode, the IV may be a binary-encoded string of bytes, an array - * of bytes, a byte buffer, or an array of 32-bit integers. If the IV is in - * bytes, then it must be Nb (16) bytes in length. If the IV is given in as - * 32-bit integers, then it must be 4 integers long. - * - * Note: an IV is not required or used in ECB mode. - * - * For GCM-mode, the IV must be given as a binary-encoded string of bytes or - * a byte buffer. The number of bytes should be 12 (96 bits) as recommended - * by NIST SP-800-38D but another length may be given. - * - * @param options the options to use: - * iv the initialization vector to use as a binary-encoded string of - * bytes, null to reuse the last ciphered block from a previous - * update() (this "residue" method is for legacy support only). - * additionalData additional authentication data as a binary-encoded - * string of bytes, for 'GCM' mode, (default: none). - * tagLength desired length of authentication tag, in bits, for - * 'GCM' mode (0-128, default: 128). - * tag the authentication tag to check if decrypting, as a - * binary-encoded string of bytes. - * output the output the buffer to write to, null to create one. + * Compares reflected fields by id. + * @param {Field} a First field + * @param {Field} b Second field + * @returns {number} Comparison value */ -BlockCipher.prototype.start = function(options) { - options = options || {}; - var opts = {}; - for(var key in options) { - opts[key] = options[key]; - } - opts.decrypt = this._decrypt; - this._finish = false; - this._input = forge.util.createBuffer(); - this.output = options.output || forge.util.createBuffer(); - this.mode.start(opts); +util.compareFieldsById = function compareFieldsById(a, b) { + return a.id - b.id; }; /** - * Updates the next block according to the cipher mode. - * - * @param input the buffer to read from. + * Decorator helper for types (TypeScript). + * @param {Constructor} ctor Constructor function + * @param {string} [typeName] Type name, defaults to the constructor's name + * @returns {Type} Reflected type + * @template T extends Message + * @property {Root} root Decorators root */ -BlockCipher.prototype.update = function(input) { - if(input) { - // input given, so empty it into the input buffer - this._input.putBuffer(input); - } +util.decorateType = function decorateType(ctor, typeName) { - // do cipher operation until it needs more input and not finished - while(!this._op.call(this.mode, this._input, this.output, this._finish) && - !this._finish) {} + /* istanbul ignore if */ + if (ctor.$type) { + if (typeName && ctor.$type.name !== typeName) { + util.decorateRoot.remove(ctor.$type); + ctor.$type.name = typeName; + util.decorateRoot.add(ctor.$type); + } + return ctor.$type; + } - // free consumed memory from input buffer - this._input.compact(); + /* istanbul ignore next */ + if (!Type) + Type = __nccwpck_require__(22534); + + var type = new Type(typeName || ctor.name); + util.decorateRoot.add(type); + type.ctor = ctor; // sets up .encode, .decode etc. + Object.defineProperty(ctor, "$type", { value: type, enumerable: false }); + Object.defineProperty(ctor.prototype, "$type", { value: type, enumerable: false }); + return type; }; +var decorateEnumIndex = 0; + /** - * Finishes encrypting or decrypting. - * - * @param pad a padding function to use in CBC mode, null for default, - * signature(blockSize, buffer, decrypt). - * - * @return true if successful, false on error. + * Decorator helper for enums (TypeScript). + * @param {Object} object Enum object + * @returns {Enum} Reflected enum */ -BlockCipher.prototype.finish = function(pad) { - // backwards-compatibility w/deprecated padding API - // Note: will overwrite padding functions even after another start() call - if(pad && (this.mode.name === 'ECB' || this.mode.name === 'CBC')) { - this.mode.pad = function(input) { - return pad(this.blockSize, input, false); - }; - this.mode.unpad = function(output) { - return pad(this.blockSize, output, true); - }; - } +util.decorateEnum = function decorateEnum(object) { - // build options for padding and afterFinish functions - var options = {}; - options.decrypt = this._decrypt; + /* istanbul ignore if */ + if (object.$type) + return object.$type; - // get # of bytes that won't fill a block - options.overflow = this._input.length() % this.blockSize; + /* istanbul ignore next */ + if (!Enum) + Enum = __nccwpck_require__(13735); - if(!this._decrypt && this.mode.pad) { - if(!this.mode.pad(this._input, options)) { - return false; - } - } + var enm = new Enum("Enum" + decorateEnumIndex++, object); + util.decorateRoot.add(enm); + Object.defineProperty(object, "$type", { value: enm, enumerable: false }); + return enm; +}; - // do final update - this._finish = true; - this.update(); - if(this._decrypt && this.mode.unpad) { - if(!this.mode.unpad(this.output, options)) { - return false; +/** + * Sets the value of a property by property path. If a value already exists, it is turned to an array + * @param {Object.} dst Destination object + * @param {string} path dot '.' delimited path of the property to set + * @param {Object} value the value to set + * @param {boolean|undefined} [ifNotSet] Sets the option only if it isn't currently set + * @returns {Object.} Destination object + */ +util.setProperty = function setProperty(dst, path, value, ifNotSet) { + function setProp(dst, path, value) { + var part = path.shift(); + if (part === "__proto__" || part === "prototype") { + return dst; + } + if (path.length > 0) { + dst[part] = setProp(dst[part] || {}, path, value); + } else { + var prevValue = dst[part]; + if (prevValue && ifNotSet) + return dst; + if (prevValue) + value = [].concat(prevValue).concat(value); + dst[part] = value; + } + return dst; } - } - if(this.mode.afterFinish) { - if(!this.mode.afterFinish(this.output, options)) { - return false; - } - } + if (typeof dst !== "object") + throw TypeError("dst must be an object"); + if (!path) + throw TypeError("path must be specified"); - return true; + path = path.split("."); + return setProp(dst, path, value); }; +/** + * Decorator root (TypeScript). + * @name util.decorateRoot + * @type {Root} + * @readonly + */ +Object.defineProperty(util, "decorateRoot", { + get: function() { + return roots["decorated"] || (roots["decorated"] = new (__nccwpck_require__(86902))()); + } +}); + /***/ }), -/***/ 56923: +/***/ 2475: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Supported cipher modes. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(21720); - -forge.cipher = forge.cipher || {}; - -// supported cipher modes -var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {}; +"use strict"; -/** Electronic codebook (ECB) (Don't use this; it's not secure) **/ +module.exports = LongBits; -modes.ecb = function(options) { - options = options || {}; - this.name = 'ECB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); -}; +var util = __nccwpck_require__(85526); -modes.ecb.prototype.start = function(options) {}; +/** + * Constructs new long bits. + * @classdesc Helper class for working with the low and high bits of a 64 bit value. + * @memberof util + * @constructor + * @param {number} lo Low 32 bits, unsigned + * @param {number} hi High 32 bits, unsigned + */ +function LongBits(lo, hi) { -modes.ecb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } + // note that the casts below are theoretically unnecessary as of today, but older statically + // generated converter code might still call the ctor with signed 32bits. kept for compat. - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } + /** + * Low bits. + * @type {number} + */ + this.lo = lo >>> 0; - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); + /** + * High bits. + * @type {number} + */ + this.hi = hi >>> 0; +} - // write output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } -}; +/** + * Zero bits. + * @memberof util.LongBits + * @type {util.LongBits} + */ +var zero = LongBits.zero = new LongBits(0, 0); -modes.ecb.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } +zero.toNumber = function() { return 0; }; +zero.zzEncode = zero.zzDecode = function() { return this; }; +zero.length = function() { return 1; }; - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } +/** + * Zero hash. + * @memberof util.LongBits + * @type {string} + */ +var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0"; - // decrypt block - this.cipher.decrypt(this._inBlock, this._outBlock); +/** + * Constructs new long bits from the specified number. + * @param {number} value Value + * @returns {util.LongBits} Instance + */ +LongBits.fromNumber = function fromNumber(value) { + if (value === 0) + return zero; + var sign = value < 0; + if (sign) + value = -value; + var lo = value >>> 0, + hi = (value - lo) / 4294967296 >>> 0; + if (sign) { + hi = ~hi >>> 0; + lo = ~lo >>> 0; + if (++lo > 4294967295) { + lo = 0; + if (++hi > 4294967295) + hi = 0; + } + } + return new LongBits(lo, hi); +}; - // write output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } +/** + * Constructs new long bits from a number, long or string. + * @param {Long|number|string} value Value + * @returns {util.LongBits} Instance + */ +LongBits.from = function from(value) { + if (typeof value === "number") + return LongBits.fromNumber(value); + if (util.isString(value)) { + /* istanbul ignore else */ + if (util.Long) + value = util.Long.fromString(value); + else + return LongBits.fromNumber(parseInt(value, 10)); + } + return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero; }; -modes.ecb.prototype.pad = function(input, options) { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (input.length() === this.blockSize ? - this.blockSize : (this.blockSize - input.length())); - input.fillWithByte(padding, padding); - return true; +/** + * Converts this long bits to a possibly unsafe JavaScript number. + * @param {boolean} [unsigned=false] Whether unsigned or not + * @returns {number} Possibly unsafe number + */ +LongBits.prototype.toNumber = function toNumber(unsigned) { + if (!unsigned && this.hi >>> 31) { + var lo = ~this.lo + 1 >>> 0, + hi = ~this.hi >>> 0; + if (!lo) + hi = hi + 1 >>> 0; + return -(lo + hi * 4294967296); + } + return this.lo + this.hi * 4294967296; }; -modes.ecb.prototype.unpad = function(output, options) { - // check for error: input data not a multiple of blockSize - if(options.overflow > 0) { - return false; - } +/** + * Converts this long bits to a long. + * @param {boolean} [unsigned=false] Whether unsigned or not + * @returns {Long} Long + */ +LongBits.prototype.toLong = function toLong(unsigned) { + return util.Long + ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned)) + /* istanbul ignore next */ + : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) }; +}; - // ensure padding byte count is valid - var len = output.length(); - var count = output.at(len - 1); - if(count > (this.blockSize << 2)) { - return false; - } +var charCodeAt = String.prototype.charCodeAt; + +/** + * Constructs new long bits from the specified 8 characters long hash. + * @param {string} hash Hash + * @returns {util.LongBits} Bits + */ +LongBits.fromHash = function fromHash(hash) { + if (hash === zeroHash) + return zero; + return new LongBits( + ( charCodeAt.call(hash, 0) + | charCodeAt.call(hash, 1) << 8 + | charCodeAt.call(hash, 2) << 16 + | charCodeAt.call(hash, 3) << 24) >>> 0 + , + ( charCodeAt.call(hash, 4) + | charCodeAt.call(hash, 5) << 8 + | charCodeAt.call(hash, 6) << 16 + | charCodeAt.call(hash, 7) << 24) >>> 0 + ); +}; - // trim off padding bytes - output.truncate(count); - return true; +/** + * Converts this long bits to a 8 characters long hash. + * @returns {string} Hash + */ +LongBits.prototype.toHash = function toHash() { + return String.fromCharCode( + this.lo & 255, + this.lo >>> 8 & 255, + this.lo >>> 16 & 255, + this.lo >>> 24 , + this.hi & 255, + this.hi >>> 8 & 255, + this.hi >>> 16 & 255, + this.hi >>> 24 + ); }; -/** Cipher-block Chaining (CBC) **/ +/** + * Zig-zag encodes this long bits. + * @returns {util.LongBits} `this` + */ +LongBits.prototype.zzEncode = function zzEncode() { + var mask = this.hi >> 31; + this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0; + this.lo = ( this.lo << 1 ^ mask) >>> 0; + return this; +}; -modes.cbc = function(options) { - options = options || {}; - this.name = 'CBC'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); +/** + * Zig-zag decodes this long bits. + * @returns {util.LongBits} `this` + */ +LongBits.prototype.zzDecode = function zzDecode() { + var mask = -(this.lo & 1); + this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0; + this.hi = ( this.hi >>> 1 ^ mask) >>> 0; + return this; }; -modes.cbc.prototype.start = function(options) { - // Note: legacy support for using IV residue (has security flaws) - // if IV is null, reuse block from previous processing - if(options.iv === null) { - // must have a previous block - if(!this._prev) { - throw new Error('Invalid IV parameter.'); - } - this._iv = this._prev.slice(0); - } else if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } else { - // save IV as "previous" block - this._iv = transformIV(options.iv, this.blockSize); - this._prev = this._iv.slice(0); - } +/** + * Calculates the length of this longbits when encoded as a varint. + * @returns {number} Length + */ +LongBits.prototype.length = function length() { + var part0 = this.lo, + part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, + part2 = this.hi >>> 24; + return part2 === 0 + ? part1 === 0 + ? part0 < 16384 + ? part0 < 128 ? 1 : 2 + : part0 < 2097152 ? 3 : 4 + : part1 < 16384 + ? part1 < 128 ? 5 : 6 + : part1 < 2097152 ? 7 : 8 + : part2 < 128 ? 9 : 10; }; -modes.cbc.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } - // get next block - // CBC XOR's IV (or previous block) with plaintext - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._prev[i] ^ input.getInt32(); - } +/***/ }), - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); +/***/ 85526: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - // write output, save previous block - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } - this._prev = this._outBlock; -}; +"use strict"; -modes.cbc.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } +var util = exports; - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } +// used to return a Promise where callback is omitted +util.asPromise = __nccwpck_require__(12841); - // decrypt block - this.cipher.decrypt(this._inBlock, this._outBlock); +// converts to / from base64 encoded strings +util.base64 = __nccwpck_require__(67915); - // write output, save previous ciphered block - // CBC XOR's IV (or previous block) with ciphertext - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._prev[i] ^ this._outBlock[i]); - } - this._prev = this._inBlock.slice(0); -}; +// base class of rpc.Service +util.EventEmitter = __nccwpck_require__(64514); -modes.cbc.prototype.pad = function(input, options) { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (input.length() === this.blockSize ? - this.blockSize : (this.blockSize - input.length())); - input.fillWithByte(padding, padding); - return true; -}; +// float handling accross browsers +util.float = __nccwpck_require__(77062); -modes.cbc.prototype.unpad = function(output, options) { - // check for error: input data not a multiple of blockSize - if(options.overflow > 0) { - return false; - } +// requires modules optionally and hides the call from bundlers +util.inquire = __nccwpck_require__(49570); - // ensure padding byte count is valid - var len = output.length(); - var count = output.at(len - 1); - if(count > (this.blockSize << 2)) { - return false; - } +// converts to / from utf8 encoded strings +util.utf8 = __nccwpck_require__(57163); - // trim off padding bytes - output.truncate(count); - return true; -}; +// provides a node-like buffer pool in the browser +util.pool = __nccwpck_require__(37426); -/** Cipher feedback (CFB) **/ +// utility to work with the low and high bits of a 64 bit value +util.LongBits = __nccwpck_require__(2475); -modes.cfb = function(options) { - options = options || {}; - this.name = 'CFB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; +/** + * Whether running within node or not. + * @memberof util + * @type {boolean} + */ +util.isNode = Boolean(typeof global !== "undefined" + && global + && global.process + && global.process.versions + && global.process.versions.node); + +/** + * Global object reference. + * @memberof util + * @type {Object} + */ +util.global = util.isNode && global + || typeof window !== "undefined" && window + || typeof self !== "undefined" && self + || this; // eslint-disable-line no-invalid-this + +/** + * An immuable empty array. + * @memberof util + * @type {Array.<*>} + * @const + */ +util.emptyArray = Object.freeze ? Object.freeze([]) : /* istanbul ignore next */ []; // used on prototypes -modes.cfb.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; +/** + * An immutable empty object. + * @type {Object} + * @const + */ +util.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next */ {}; // used on prototypes + +/** + * Tests if the specified value is an integer. + * @function + * @param {*} value Value to test + * @returns {boolean} `true` if the value is an integer + */ +util.isInteger = Number.isInteger || /* istanbul ignore next */ function isInteger(value) { + return typeof value === "number" && isFinite(value) && Math.floor(value) === value; }; -modes.cfb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } +/** + * Tests if the specified value is a string. + * @param {*} value Value to test + * @returns {boolean} `true` if the value is a string + */ +util.isString = function isString(value) { + return typeof value === "string" || value instanceof String; +}; - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); +/** + * Tests if the specified value is a non-null object. + * @param {*} value Value to test + * @returns {boolean} `true` if the value is a non-null object + */ +util.isObject = function isObject(value) { + return value && typeof value === "object"; +}; - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output, write input as output - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32() ^ this._outBlock[i]; - output.putInt32(this._inBlock[i]); - } - return; - } +/** + * Checks if a property on a message is considered to be present. + * This is an alias of {@link util.isSet}. + * @function + * @param {Object} obj Plain object or message instance + * @param {string} prop Property name + * @returns {boolean} `true` if considered to be present, otherwise `false` + */ +util.isset = - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } +/** + * Checks if a property on a message is considered to be present. + * @param {Object} obj Plain object or message instance + * @param {string} prop Property name + * @returns {boolean} `true` if considered to be present, otherwise `false` + */ +util.isSet = function isSet(obj, prop) { + var value = obj[prop]; + if (value != null && obj.hasOwnProperty(prop)) // eslint-disable-line eqeqeq, no-prototype-builtins + return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0; + return false; +}; - // XOR input with output, write input as partial output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialBlock[i] = input.getInt32() ^ this._outBlock[i]; - this._partialOutput.putInt32(this._partialBlock[i]); - } +/** + * Any compatible Buffer instance. + * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings. + * @interface Buffer + * @extends Uint8Array + */ - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._partialBlock[i]; +/** + * Node's Buffer class if available. + * @type {Constructor} + */ +util.Buffer = (function() { + try { + var Buffer = util.inquire("buffer").Buffer; + // refuse to use non-node buffers if not explicitly assigned (perf reasons): + return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null; + } catch (e) { + /* istanbul ignore next */ + return null; } - } +})(); - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +// Internal alias of or polyfull for Buffer.from. +util._Buffer_from = null; - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } +// Internal alias of or polyfill for Buffer.allocUnsafe. +util._Buffer_allocUnsafe = null; - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; +/** + * Creates a new buffer of whatever type supported by the environment. + * @param {number|number[]} [sizeOrArray=0] Buffer size or number array + * @returns {Uint8Array|Buffer} Buffer + */ +util.newBuffer = function newBuffer(sizeOrArray) { + /* istanbul ignore next */ + return typeof sizeOrArray === "number" + ? util.Buffer + ? util._Buffer_allocUnsafe(sizeOrArray) + : new util.Array(sizeOrArray) + : util.Buffer + ? util._Buffer_from(sizeOrArray) + : typeof Uint8Array === "undefined" + ? sizeOrArray + : new Uint8Array(sizeOrArray); }; -modes.cfb.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } - - // encrypt block (CFB always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); +/** + * Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`. + * @type {Constructor} + */ +util.Array = typeof Uint8Array !== "undefined" ? Uint8Array /* istanbul ignore next */ : Array; - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output, write input as output - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - output.putInt32(this._inBlock[i] ^ this._outBlock[i]); - } - return; - } +/** + * Any compatible Long instance. + * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js. + * @interface Long + * @property {number} low Low bits + * @property {number} high High bits + * @property {boolean} unsigned Whether unsigned or not + */ - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } +/** + * Long.js's Long class if available. + * @type {Constructor} + */ +util.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore next */ util.global.dcodeIO.Long + || /* istanbul ignore next */ util.global.Long + || util.inquire("long"); - // XOR input with output, write input as partial output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialBlock[i] = input.getInt32(); - this._partialOutput.putInt32(this._partialBlock[i] ^ this._outBlock[i]); - } +/** + * Regular expression used to verify 2 bit (`bool`) map keys. + * @type {RegExp} + * @const + */ +util.key2Re = /^true|false|0|1$/; - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._partialBlock[i]; - } - } +/** + * Regular expression used to verify 32 bit (`int32` etc.) map keys. + * @type {RegExp} + * @const + */ +util.key32Re = /^-?(?:0|[1-9][0-9]*)$/; - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +/** + * Regular expression used to verify 64 bit (`int64` etc.) map keys. + * @type {RegExp} + * @const + */ +util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/; - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } +/** + * Converts a number or long to an 8 characters long hash string. + * @param {Long|number} value Value to convert + * @returns {string} Hash + */ +util.longToHash = function longToHash(value) { + return value + ? util.LongBits.from(value).toHash() + : util.LongBits.zeroHash; +}; - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; +/** + * Converts an 8 characters long hash string to a long or number. + * @param {string} hash Hash + * @param {boolean} [unsigned=false] Whether unsigned or not + * @returns {Long|number} Original value + */ +util.longFromHash = function longFromHash(hash, unsigned) { + var bits = util.LongBits.fromHash(hash); + if (util.Long) + return util.Long.fromBits(bits.lo, bits.hi, unsigned); + return bits.toNumber(Boolean(unsigned)); }; -/** Output feedback (OFB) **/ +/** + * Merges the properties of the source object into the destination object. + * @memberof util + * @param {Object.} dst Destination object + * @param {Object.} src Source object + * @param {boolean} [ifNotSet=false] Merges only if the key is not already set + * @returns {Object.} Destination object + */ +function merge(dst, src, ifNotSet) { // used by converters + for (var keys = Object.keys(src), i = 0; i < keys.length; ++i) + if (dst[keys[i]] === undefined || !ifNotSet) + dst[keys[i]] = src[keys[i]]; + return dst; +} -modes.ofb = function(options) { - options = options || {}; - this.name = 'OFB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; +util.merge = merge; -modes.ofb.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; +/** + * Converts the first character of a string to lower case. + * @param {string} str String to convert + * @returns {string} Converted string + */ +util.lcFirst = function lcFirst(str) { + return str.charAt(0).toLowerCase() + str.substring(1); }; -modes.ofb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(input.length() === 0) { - return true; - } +/** + * Creates a custom error constructor. + * @memberof util + * @param {string} name Error name + * @returns {Constructor} Custom error constructor + */ +function newError(name) { - // encrypt block (OFB always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); + function CustomError(message, properties) { - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output and update next input - for(var i = 0; i < this._ints; ++i) { - output.putInt32(input.getInt32() ^ this._outBlock[i]); - this._inBlock[i] = this._outBlock[i]; - } - return; - } + if (!(this instanceof CustomError)) + return new CustomError(message, properties); - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } + // Error.call(this, message); + // ^ just returns a new error instance because the ctor can be called as a function - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } + Object.defineProperty(this, "message", { get: function() { return message; } }); - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._outBlock[i]; + /* istanbul ignore next */ + if (Error.captureStackTrace) // node + Error.captureStackTrace(this, CustomError); + else + Object.defineProperty(this, "stack", { value: new Error().stack || "" }); + + if (properties) + merge(this, properties); } - } - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } + CustomError.prototype = Object.create(Error.prototype, { + constructor: { + value: CustomError, + writable: true, + enumerable: false, + configurable: true, + }, + name: { + get: function get() { return name; }, + set: undefined, + enumerable: false, + // configurable: false would accurately preserve the behavior of + // the original, but I'm guessing that was not intentional. + // For an actual error subclass, this property would + // be configurable. + configurable: true, + }, + toString: { + value: function value() { return this.name + ": " + this.message; }, + writable: true, + enumerable: false, + configurable: true, + }, + }); - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } + return CustomError; +} - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; +util.newError = newError; + +/** + * Constructs a new protocol error. + * @classdesc Error subclass indicating a protocol specifc error. + * @memberof util + * @extends Error + * @template T extends Message + * @constructor + * @param {string} message Error message + * @param {Object.} [properties] Additional properties + * @example + * try { + * MyMessage.decode(someBuffer); // throws if required fields are missing + * } catch (e) { + * if (e instanceof ProtocolError && e.instance) + * console.log("decoded so far: " + JSON.stringify(e.instance)); + * } + */ +util.ProtocolError = newError("ProtocolError"); + +/** + * So far decoded message instance. + * @name util.ProtocolError#instance + * @type {Message} + */ + +/** + * A OneOf getter as returned by {@link util.oneOfGetter}. + * @typedef OneOfGetter + * @type {function} + * @returns {string|undefined} Set field name, if any + */ + +/** + * Builds a getter for a oneof's present field name. + * @param {string[]} fieldNames Field names + * @returns {OneOfGetter} Unbound getter + */ +util.oneOfGetter = function getOneOf(fieldNames) { + var fieldMap = {}; + for (var i = 0; i < fieldNames.length; ++i) + fieldMap[fieldNames[i]] = 1; + + /** + * @returns {string|undefined} Set field name, if any + * @this Object + * @ignore + */ + return function() { // eslint-disable-line consistent-return + for (var keys = Object.keys(this), i = keys.length - 1; i > -1; --i) + if (fieldMap[keys[i]] === 1 && this[keys[i]] !== undefined && this[keys[i]] !== null) + return keys[i]; + }; }; -modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt; +/** + * A OneOf setter as returned by {@link util.oneOfSetter}. + * @typedef OneOfSetter + * @type {function} + * @param {string|undefined} value Field name + * @returns {undefined} + */ -/** Counter (CTR) **/ +/** + * Builds a setter for a oneof's present field name. + * @param {string[]} fieldNames Field names + * @returns {OneOfSetter} Unbound setter + */ +util.oneOfSetter = function setOneOf(fieldNames) { -modes.ctr = function(options) { - options = options || {}; - this.name = 'CTR'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; + /** + * @param {string} name Field name + * @returns {undefined} + * @this Object + * @ignore + */ + return function(name) { + for (var i = 0; i < fieldNames.length; ++i) + if (fieldNames[i] !== name) + delete this[fieldNames[i]]; + }; }; -modes.ctr.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; +/** + * Default conversion options used for {@link Message#toJSON} implementations. + * + * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely: + * + * - Longs become strings + * - Enums become string keys + * - Bytes become base64 encoded strings + * - (Sub-)Messages become plain objects + * - Maps become plain objects with all string keys + * - Repeated fields become arrays + * - NaN and Infinity for float and double fields become strings + * + * @type {IConversionOptions} + * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json + */ +util.toJSONOptions = { + longs: String, + enums: String, + bytes: String, + json: true }; -modes.ctr.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } +// Sets up buffer utility according to the environment (called in index-minimal) +util._configure = function() { + var Buffer = util.Buffer; + /* istanbul ignore if */ + if (!Buffer) { + util._Buffer_from = util._Buffer_allocUnsafe = null; + return; + } + // because node 4.x buffers are incompatible & immutable + // see: https://github.com/dcodeIO/protobuf.js/pull/665 + util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from || + /* istanbul ignore next */ + function Buffer_from(value, encoding) { + return new Buffer(value, encoding); + }; + util._Buffer_allocUnsafe = Buffer.allocUnsafe || + /* istanbul ignore next */ + function Buffer_allocUnsafe(size) { + return new Buffer(size); + }; +}; - // encrypt block (CTR always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(input.getInt32() ^ this._outBlock[i]); - } - } else { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } +/***/ }), - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } +/***/ 43360: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } +"use strict"; - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); +module.exports = verifier; + +var Enum = __nccwpck_require__(13735), + util = __nccwpck_require__(16914); + +function invalid(field, expected) { + return field.name + ": " + expected + (field.repeated && expected !== "array" ? "[]" : field.map && expected !== "object" ? "{k:"+field.keyType+"}" : "") + " expected"; +} + +/** + * Generates a partial value verifier. + * @param {Codegen} gen Codegen instance + * @param {Field} field Reflected field + * @param {number} fieldIndex Field index + * @param {string} ref Variable reference + * @returns {Codegen} Codegen instance + * @ignore + */ +function genVerifyValue(gen, field, fieldIndex, ref) { + /* eslint-disable no-unexpected-multiline */ + if (field.resolvedType) { + if (field.resolvedType instanceof Enum) { gen + ("switch(%s){", ref) + ("default:") + ("return%j", invalid(field, "enum value")); + for (var keys = Object.keys(field.resolvedType.values), j = 0; j < keys.length; ++j) gen + ("case %i:", field.resolvedType.values[keys[j]]); + gen + ("break") + ("}"); + } else { + gen + ("{") + ("var e=types[%i].verify(%s);", fieldIndex, ref) + ("if(e)") + ("return%j+e", field.name + ".") + ("}"); + } + } else { + switch (field.type) { + case "int32": + case "uint32": + case "sint32": + case "fixed32": + case "sfixed32": gen + ("if(!util.isInteger(%s))", ref) + ("return%j", invalid(field, "integer")); + break; + case "int64": + case "uint64": + case "sint64": + case "fixed64": + case "sfixed64": gen + ("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", ref, ref, ref, ref) + ("return%j", invalid(field, "integer|Long")); + break; + case "float": + case "double": gen + ("if(typeof %s!==\"number\")", ref) + ("return%j", invalid(field, "number")); + break; + case "bool": gen + ("if(typeof %s!==\"boolean\")", ref) + ("return%j", invalid(field, "boolean")); + break; + case "string": gen + ("if(!util.isString(%s))", ref) + ("return%j", invalid(field, "string")); + break; + case "bytes": gen + ("if(!(%s&&typeof %s.length===\"number\"||util.isString(%s)))", ref, ref, ref) + ("return%j", invalid(field, "buffer")); + break; + } } + return gen; + /* eslint-enable no-unexpected-multiline */ +} - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; +/** + * Generates a partial key verifier. + * @param {Codegen} gen Codegen instance + * @param {Field} field Reflected field + * @param {string} ref Variable reference + * @returns {Codegen} Codegen instance + * @ignore + */ +function genVerifyKey(gen, field, ref) { + /* eslint-disable no-unexpected-multiline */ + switch (field.keyType) { + case "int32": + case "uint32": + case "sint32": + case "fixed32": + case "sfixed32": gen + ("if(!util.key32Re.test(%s))", ref) + ("return%j", invalid(field, "integer key")); + break; + case "int64": + case "uint64": + case "sint64": + case "fixed64": + case "sfixed64": gen + ("if(!util.key64Re.test(%s))", ref) // see comment above: x is ok, d is not + ("return%j", invalid(field, "integer|Long key")); + break; + case "bool": gen + ("if(!util.key2Re.test(%s))", ref) + ("return%j", invalid(field, "boolean key")); + break; } + return gen; + /* eslint-enable no-unexpected-multiline */ +} - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; - } +/** + * Generates a verifier specific to the specified message type. + * @param {Type} mtype Message type + * @returns {Codegen} Codegen instance + */ +function verifier(mtype) { + /* eslint-disable no-unexpected-multiline */ + + var gen = util.codegen(["m"], mtype.name + "$verify") + ("if(typeof m!==\"object\"||m===null)") + ("return%j", "object expected"); + var oneofs = mtype.oneofsArray, + seenFirstField = {}; + if (oneofs.length) gen + ("var p={}"); + + for (var i = 0; i < /* initializes */ mtype.fieldsArray.length; ++i) { + var field = mtype._fieldsArray[i].resolve(), + ref = "m" + util.safeProp(field.name); + + if (field.optional) gen + ("if(%s!=null&&m.hasOwnProperty(%j)){", ref, field.name); // !== undefined && !== null + + // map fields + if (field.map) { gen + ("if(!util.isObject(%s))", ref) + ("return%j", invalid(field, "object")) + ("var k=Object.keys(%s)", ref) + ("for(var i=0;i { -/** Galois/Counter Mode (GCM) **/ +"use strict"; -modes.gcm = function(options) { - options = options || {}; - this.name = 'GCM'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; - // R is actually this value concatenated with 120 more zero bits, but - // we only XOR against R so the other zeros have no effect -- we just - // apply this value to the first integer in a block - this._R = 0xE1000000; -}; +/** + * Wrappers for common types. + * @type {Object.} + * @const + */ +var wrappers = exports; -modes.gcm.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // ensure IV is a byte buffer - var iv = forge.util.createBuffer(options.iv); +var Message = __nccwpck_require__(60603); - // no ciphered data processed yet - this._cipherLength = 0; +/** + * From object converter part of an {@link IWrapper}. + * @typedef WrapperFromObjectConverter + * @type {function} + * @param {Object.} object Plain object + * @returns {Message<{}>} Message instance + * @this Type + */ - // default additional data is none - var additionalData; - if('additionalData' in options) { - additionalData = forge.util.createBuffer(options.additionalData); - } else { - additionalData = forge.util.createBuffer(); - } +/** + * To object converter part of an {@link IWrapper}. + * @typedef WrapperToObjectConverter + * @type {function} + * @param {Message<{}>} message Message instance + * @param {IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + * @this Type + */ - // default tag length is 128 bits - if('tagLength' in options) { - this._tagLength = options.tagLength; - } else { - this._tagLength = 128; - } +/** + * Common type wrapper part of {@link wrappers}. + * @interface IWrapper + * @property {WrapperFromObjectConverter} [fromObject] From object converter + * @property {WrapperToObjectConverter} [toObject] To object converter + */ - // if tag is given, ensure tag matches tag length - this._tag = null; - if(options.decrypt) { - // save tag to check later - this._tag = forge.util.createBuffer(options.tag).getBytes(); - if(this._tag.length !== (this._tagLength / 8)) { - throw new Error('Authentication tag does not match tag length.'); - } - } +// Custom wrapper for Any +wrappers[".google.protobuf.Any"] = { - // create tmp storage for hash calculation - this._hashBlock = new Array(this._ints); + fromObject: function(object) { - // no tag generated yet - this.tag = null; + // unwrap value type if mapped + if (object && object["@type"]) { + // Only use fully qualified type name after the last '/' + var name = object["@type"].substring(object["@type"].lastIndexOf("/") + 1); + var type = this.lookup(name); + /* istanbul ignore else */ + if (type) { + // type_url does not accept leading "." + var type_url = object["@type"].charAt(0) === "." ? + object["@type"].slice(1) : object["@type"]; + // type_url prefix is optional, but path seperator is required + if (type_url.indexOf("/") === -1) { + type_url = "/" + type_url; + } + return this.create({ + type_url: type_url, + value: type.encode(type.fromObject(object)).finish() + }); + } + } - // generate hash subkey - // (apply block cipher to "zero" block) - this._hashSubkey = new Array(this._ints); - this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey); + return this.fromObject(object); + }, - // generate table M - // use 4-bit tables (32 component decomposition of a 16 byte value) - // 8-bit tables take more space and are known to have security - // vulnerabilities (in native implementations) - this.componentBits = 4; - this._m = this.generateHashTable(this._hashSubkey, this.componentBits); + toObject: function(message, options) { + + // Default prefix + var googleApi = "type.googleapis.com/"; + var prefix = ""; + var name = ""; + + // decode value if requested and unmapped + if (options && options.json && message.type_url && message.value) { + // Only use fully qualified type name after the last '/' + name = message.type_url.substring(message.type_url.lastIndexOf("/") + 1); + // Separate the prefix used + prefix = message.type_url.substring(0, message.type_url.lastIndexOf("/") + 1); + var type = this.lookup(name); + /* istanbul ignore else */ + if (type) + message = type.decode(message.value); + } + + // wrap value if unmapped + if (!(message instanceof this.ctor) && message instanceof Message) { + var object = message.$type.toObject(message, options); + var messageName = message.$type.fullName[0] === "." ? + message.$type.fullName.slice(1) : message.$type.fullName; + // Default to type.googleapis.com prefix if no prefix is used + if (prefix === "") { + prefix = googleApi; + } + name = prefix + messageName; + object["@type"] = name; + return object; + } - // Note: support IV length different from 96 bits? (only supporting - // 96 bits is recommended by NIST SP-800-38D) - // generate J_0 - var ivLength = iv.length(); - if(ivLength === 12) { - // 96-bit IV - this._j0 = [iv.getInt32(), iv.getInt32(), iv.getInt32(), 1]; - } else { - // IV is NOT 96-bits - this._j0 = [0, 0, 0, 0]; - while(iv.length() > 0) { - this._j0 = this.ghash( - this._hashSubkey, this._j0, - [iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()]); + return this.toObject(message, options); } - this._j0 = this.ghash( - this._hashSubkey, this._j0, [0, 0].concat(from64To32(ivLength * 8))); - } - - // generate ICB (initial counter block) - this._inBlock = this._j0.slice(0); - inc32(this._inBlock); - this._partialBytes = 0; - - // consume authentication data - additionalData = forge.util.createBuffer(additionalData); - // save additional data length as a BE 64-bit number - this._aDataLength = from64To32(additionalData.length() * 8); - // pad additional data to 128 bit (16 byte) block size - var overflow = additionalData.length() % this.blockSize; - if(overflow) { - additionalData.fillWithByte(0, this.blockSize - overflow); - } - this._s = [0, 0, 0, 0]; - while(additionalData.length() > 0) { - this._s = this.ghash(this._hashSubkey, this._s, [ - additionalData.getInt32(), - additionalData.getInt32(), - additionalData.getInt32(), - additionalData.getInt32() - ]); - } }; -modes.gcm.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); +/***/ }), - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i] ^= input.getInt32()); - } - this._cipherLength += this.blockSize; - } else { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } +/***/ 65469: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } +"use strict"; - if(partialBytes <= 0 || finish) { - // handle overflow prior to hashing - if(finish) { - // get block overflow - var overflow = inputLength % this.blockSize; - this._cipherLength += overflow; - // truncate for hash function - this._partialOutput.truncate(this.blockSize - overflow); - } else { - this._cipherLength += this.blockSize; - } +module.exports = Writer; - // get output block for hashing - for(var i = 0; i < this._ints; ++i) { - this._outBlock[i] = this._partialOutput.getInt32(); - } - this._partialOutput.read -= this.blockSize; - } +var util = __nccwpck_require__(85526); - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +var BufferWriter; // cyclic - if(partialBytes > 0 && !finish) { - // block still incomplete, restore input buffer, get partial output, - // and return early - input.read -= this.blockSize; - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } +var LongBits = util.LongBits, + base64 = util.base64, + utf8 = util.utf8; - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; - } +/** + * Constructs a new writer operation instance. + * @classdesc Scheduled writer operation. + * @constructor + * @param {function(*, Uint8Array, number)} fn Function to call + * @param {number} len Value byte length + * @param {*} val Value to write + * @ignore + */ +function Op(fn, len, val) { - // update hash block S - this._s = this.ghash(this._hashSubkey, this._s, this._outBlock); + /** + * Function to call. + * @type {function(Uint8Array, number, *)} + */ + this.fn = fn; - // increment counter (input block) - inc32(this._inBlock); -}; + /** + * Value byte length. + * @type {number} + */ + this.len = len; -modes.gcm.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - var inputLength = input.length(); - if(inputLength < this.blockSize && !(finish && inputLength > 0)) { - return true; - } + /** + * Next operation. + * @type {Writer.Op|undefined} + */ + this.next = undefined; - // encrypt block (GCM always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); + /** + * Value to write. + * @type {*} + */ + this.val = val; // type varies +} - // increment counter (input block) - inc32(this._inBlock); +/* istanbul ignore next */ +function noop() {} // eslint-disable-line no-empty-function - // update hash block S - this._hashBlock[0] = input.getInt32(); - this._hashBlock[1] = input.getInt32(); - this._hashBlock[2] = input.getInt32(); - this._hashBlock[3] = input.getInt32(); - this._s = this.ghash(this._hashSubkey, this._s, this._hashBlock); +/** + * Constructs a new writer state instance. + * @classdesc Copied writer state. + * @memberof Writer + * @constructor + * @param {Writer} writer Writer to copy state from + * @ignore + */ +function State(writer) { - // XOR hash input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i] ^ this._hashBlock[i]); - } + /** + * Current head. + * @type {Writer.Op} + */ + this.head = writer.head; - // increment cipher data length - if(inputLength < this.blockSize) { - this._cipherLength += inputLength % this.blockSize; - } else { - this._cipherLength += this.blockSize; - } -}; + /** + * Current tail. + * @type {Writer.Op} + */ + this.tail = writer.tail; -modes.gcm.prototype.afterFinish = function(output, options) { - var rval = true; + /** + * Current buffer length. + * @type {number} + */ + this.len = writer.len; - // handle overflow - if(options.decrypt && options.overflow) { - output.truncate(this.blockSize - options.overflow); - } + /** + * Next state. + * @type {State|null} + */ + this.next = writer.states; +} - // handle authentication tag - this.tag = forge.util.createBuffer(); +/** + * Constructs a new writer instance. + * @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`. + * @constructor + */ +function Writer() { - // concatenate additional data length with cipher length - var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8)); + /** + * Current length. + * @type {number} + */ + this.len = 0; - // include lengths in hash - this._s = this.ghash(this._hashSubkey, this._s, lengths); + /** + * Operations head. + * @type {Object} + */ + this.head = new Op(noop, 0, 0); - // do GCTR(J_0, S) - var tag = []; - this.cipher.encrypt(this._j0, tag); - for(var i = 0; i < this._ints; ++i) { - this.tag.putInt32(this._s[i] ^ tag[i]); - } + /** + * Operations tail + * @type {Object} + */ + this.tail = this.head; - // trim tag to length - this.tag.truncate(this.tag.length() % (this._tagLength / 8)); + /** + * Linked forked states. + * @type {Object|null} + */ + this.states = null; - // check authentication tag - if(options.decrypt && this.tag.bytes() !== this._tag) { - rval = false; - } + // When a value is written, the writer calculates its byte length and puts it into a linked + // list of operations to perform when finish() is called. This both allows us to allocate + // buffers of the exact required size and reduces the amount of work we have to do compared + // to first calculating over objects and then encoding over objects. In our case, the encoding + // part is just a linked list walk calling operations with already prepared values. +} - return rval; +var create = function create() { + return util.Buffer + ? function create_buffer_setup() { + return (Writer.create = function create_buffer() { + return new BufferWriter(); + })(); + } + /* istanbul ignore next */ + : function create_array() { + return new Writer(); + }; }; /** - * See NIST SP-800-38D 6.3 (Algorithm 1). This function performs Galois - * field multiplication. The field, GF(2^128), is defined by the polynomial: - * - * x^128 + x^7 + x^2 + x + 1 - * - * Which is represented in little-endian binary form as: 11100001 (0xe1). When - * the value of a coefficient is 1, a bit is set. The value R, is the - * concatenation of this value and 120 zero bits, yielding a 128-bit value - * which matches the block size. - * - * This function will multiply two elements (vectors of bytes), X and Y, in - * the field GF(2^128). The result is initialized to zero. For each bit of - * X (out of 128), x_i, if x_i is set, then the result is multiplied (XOR'd) - * by the current value of Y. For each bit, the value of Y will be raised by - * a power of x (multiplied by the polynomial x). This can be achieved by - * shifting Y once to the right. If the current value of Y, prior to being - * multiplied by x, has 0 as its LSB, then it is a 127th degree polynomial. - * Otherwise, we must divide by R after shifting to find the remainder. - * - * @param x the first block to multiply by the second. - * @param y the second block to multiply by the first. - * - * @return the block result of the multiplication. + * Creates a new writer. + * @function + * @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer} */ -modes.gcm.prototype.multiply = function(x, y) { - var z_i = [0, 0, 0, 0]; - var v_i = y.slice(0); +Writer.create = create(); - // calculate Z_128 (block has 128 bits) - for(var i = 0; i < 128; ++i) { - // if x_i is 0, Z_{i+1} = Z_i (unchanged) - // else Z_{i+1} = Z_i ^ V_i - // get x_i by finding 32-bit int position, then left shift 1 by remainder - var x_i = x[(i / 32) | 0] & (1 << (31 - i % 32)); - if(x_i) { - z_i[0] ^= v_i[0]; - z_i[1] ^= v_i[1]; - z_i[2] ^= v_i[2]; - z_i[3] ^= v_i[3]; - } +/** + * Allocates a buffer of the specified size. + * @param {number} size Buffer size + * @returns {Uint8Array} Buffer + */ +Writer.alloc = function alloc(size) { + return new util.Array(size); +}; - // if LSB(V_i) is 1, V_i = V_i >> 1 - // else V_i = (V_i >> 1) ^ R - this.pow(v_i, v_i); - } +// Use Uint8Array buffer pool in the browser, just like node does with buffers +/* istanbul ignore else */ +if (util.Array !== Array) + Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray); - return z_i; +/** + * Pushes a new operation to the queue. + * @param {function(Uint8Array, number, *)} fn Function to call + * @param {number} len Value byte length + * @param {number} val Value to write + * @returns {Writer} `this` + * @private + */ +Writer.prototype._push = function push(fn, len, val) { + this.tail = this.tail.next = new Op(fn, len, val); + this.len += len; + return this; }; -modes.gcm.prototype.pow = function(x, out) { - // if LSB(x) is 1, x = x >>> 1 - // else x = (x >>> 1) ^ R - var lsb = x[3] & 1; +function writeByte(val, buf, pos) { + buf[pos] = val & 255; +} - // always do x >>> 1: - // starting with the rightmost integer, shift each integer to the right - // one bit, pulling in the bit from the integer to the left as its top - // most bit (do this for the last 3 integers) - for(var i = 3; i > 0; --i) { - out[i] = (x[i] >>> 1) | ((x[i - 1] & 1) << 31); - } - // shift the first integer normally - out[0] = x[0] >>> 1; +function writeVarint32(val, buf, pos) { + while (val > 127) { + buf[pos++] = val & 127 | 128; + val >>>= 7; + } + buf[pos] = val; +} - // if lsb was not set, then polynomial had a degree of 127 and doesn't - // need to divided; otherwise, XOR with R to find the remainder; we only - // need to XOR the first integer since R technically ends w/120 zero bits - if(lsb) { - out[0] ^= this._R; - } -}; +/** + * Constructs a new varint writer operation instance. + * @classdesc Scheduled varint writer operation. + * @extends Op + * @constructor + * @param {number} len Value byte length + * @param {number} val Value to write + * @ignore + */ +function VarintOp(len, val) { + this.len = len; + this.next = undefined; + this.val = val; +} -modes.gcm.prototype.tableMultiply = function(x) { - // assumes 4-bit tables are used - var z = [0, 0, 0, 0]; - for(var i = 0; i < 32; ++i) { - var idx = (i / 8) | 0; - var x_i = (x[idx] >>> ((7 - (i % 8)) * 4)) & 0xF; - var ah = this._m[i][x_i]; - z[0] ^= ah[0]; - z[1] ^= ah[1]; - z[2] ^= ah[2]; - z[3] ^= ah[3]; - } - return z; +VarintOp.prototype = Object.create(Op.prototype); +VarintOp.prototype.fn = writeVarint32; + +/** + * Writes an unsigned 32 bit value as a varint. + * @param {number} value Value to write + * @returns {Writer} `this` + */ +Writer.prototype.uint32 = function write_uint32(value) { + // here, the call to this.push has been inlined and a varint specific Op subclass is used. + // uint32 is by far the most frequently used operation and benefits significantly from this. + this.len += (this.tail = this.tail.next = new VarintOp( + (value = value >>> 0) + < 128 ? 1 + : value < 16384 ? 2 + : value < 2097152 ? 3 + : value < 268435456 ? 4 + : 5, + value)).len; + return this; }; /** - * A continuing version of the GHASH algorithm that operates on a single - * block. The hash block, last hash value (Ym) and the new block to hash - * are given. - * - * @param h the hash block. - * @param y the previous value for Ym, use [0, 0, 0, 0] for a new hash. - * @param x the block to hash. - * - * @return the hashed value (Ym). + * Writes a signed 32 bit value as a varint. + * @function + * @param {number} value Value to write + * @returns {Writer} `this` */ -modes.gcm.prototype.ghash = function(h, y, x) { - y[0] ^= x[0]; - y[1] ^= x[1]; - y[2] ^= x[2]; - y[3] ^= x[3]; - return this.tableMultiply(y); - //return this.multiply(y, h); +Writer.prototype.int32 = function write_int32(value) { + return value < 0 + ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec + : this.uint32(value); }; /** - * Precomputes a table for multiplying against the hash subkey. This - * mechanism provides a substantial speed increase over multiplication - * performed without a table. The table-based multiplication this table is - * for solves X * H by multiplying each component of X by H and then - * composing the results together using XOR. - * - * This function can be used to generate tables with different bit sizes - * for the components, however, this implementation assumes there are - * 32 components of X (which is a 16 byte vector), therefore each component - * takes 4-bits (so the table is constructed with bits=4). - * - * @param h the hash subkey. - * @param bits the bit size for a component. + * Writes a 32 bit value as a varint, zig-zag encoded. + * @param {number} value Value to write + * @returns {Writer} `this` */ -modes.gcm.prototype.generateHashTable = function(h, bits) { - // TODO: There are further optimizations that would use only the - // first table M_0 (or some variant) along with a remainder table; - // this can be explored in the future - var multiplier = 8 / bits; - var perInt = 4 * multiplier; - var size = 16 * multiplier; - var m = new Array(size); - for(var i = 0; i < size; ++i) { - var tmp = [0, 0, 0, 0]; - var idx = (i / perInt) | 0; - var shft = ((perInt - 1 - (i % perInt)) * bits); - tmp[idx] = (1 << (bits - 1)) << shft; - m[i] = this.generateSubHashTable(this.multiply(tmp, h), bits); - } - return m; +Writer.prototype.sint32 = function write_sint32(value) { + return this.uint32((value << 1 ^ value >> 31) >>> 0); }; +function writeVarint64(val, buf, pos) { + while (val.hi) { + buf[pos++] = val.lo & 127 | 128; + val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0; + val.hi >>>= 7; + } + while (val.lo > 127) { + buf[pos++] = val.lo & 127 | 128; + val.lo = val.lo >>> 7; + } + buf[pos++] = val.lo; +} + /** - * Generates a table for multiplying against the hash subkey for one - * particular component (out of all possible component values). - * - * @param mid the pre-multiplied value for the middle key of the table. - * @param bits the bit size for a component. + * Writes an unsigned 64 bit value as a varint. + * @param {Long|number|string} value Value to write + * @returns {Writer} `this` + * @throws {TypeError} If `value` is a string and no long library is present. */ -modes.gcm.prototype.generateSubHashTable = function(mid, bits) { - // compute the table quickly by minimizing the number of - // POW operations -- they only need to be performed for powers of 2, - // all other entries can be composed from those powers using XOR - var size = 1 << bits; - var half = size >>> 1; - var m = new Array(size); - m[half] = mid.slice(0); - var i = half >>> 1; - while(i > 0) { - // raise m0[2 * i] and store in m0[i] - this.pow(m[2 * i], m[i] = []); - i >>= 1; - } - i = 2; - while(i < half) { - for(var j = 1; j < i; ++j) { - var m_i = m[i]; - var m_j = m[j]; - m[i + j] = [ - m_i[0] ^ m_j[0], - m_i[1] ^ m_j[1], - m_i[2] ^ m_j[2], - m_i[3] ^ m_j[3] - ]; - } - i *= 2; - } - m[0] = [0, 0, 0, 0]; - /* Note: We could avoid storing these by doing composition during multiply - calculate top half using composition by speed is preferred. */ - for(i = half + 1; i < size; ++i) { - var c = m[i ^ half]; - m[i] = [mid[0] ^ c[0], mid[1] ^ c[1], mid[2] ^ c[2], mid[3] ^ c[3]]; - } - return m; +Writer.prototype.uint64 = function write_uint64(value) { + var bits = LongBits.from(value); + return this._push(writeVarint64, bits.length(), bits); }; -/** Utility functions */ - -function transformIV(iv, blockSize) { - if(typeof iv === 'string') { - // convert iv string into byte buffer - iv = forge.util.createBuffer(iv); - } - - if(forge.util.isArray(iv) && iv.length > 4) { - // convert iv byte array into byte buffer - var tmp = iv; - iv = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - iv.putByte(tmp[i]); - } - } +/** + * Writes a signed 64 bit value as a varint. + * @function + * @param {Long|number|string} value Value to write + * @returns {Writer} `this` + * @throws {TypeError} If `value` is a string and no long library is present. + */ +Writer.prototype.int64 = Writer.prototype.uint64; - if(iv.length() < blockSize) { - throw new Error( - 'Invalid IV length; got ' + iv.length() + - ' bytes and expected ' + blockSize + ' bytes.'); - } +/** + * Writes a signed 64 bit value as a varint, zig-zag encoded. + * @param {Long|number|string} value Value to write + * @returns {Writer} `this` + * @throws {TypeError} If `value` is a string and no long library is present. + */ +Writer.prototype.sint64 = function write_sint64(value) { + var bits = LongBits.from(value).zzEncode(); + return this._push(writeVarint64, bits.length(), bits); +}; - if(!forge.util.isArray(iv)) { - // convert iv byte buffer into 32-bit integer array - var ints = []; - var blocks = blockSize / 4; - for(var i = 0; i < blocks; ++i) { - ints.push(iv.getInt32()); - } - iv = ints; - } +/** + * Writes a boolish value as a varint. + * @param {boolean} value Value to write + * @returns {Writer} `this` + */ +Writer.prototype.bool = function write_bool(value) { + return this._push(writeByte, 1, value ? 1 : 0); +}; - return iv; +function writeFixed32(val, buf, pos) { + buf[pos ] = val & 255; + buf[pos + 1] = val >>> 8 & 255; + buf[pos + 2] = val >>> 16 & 255; + buf[pos + 3] = val >>> 24; } -function inc32(block) { - // increment last 32 bits of block only - block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF; -} +/** + * Writes an unsigned 32 bit value as fixed 32 bits. + * @param {number} value Value to write + * @returns {Writer} `this` + */ +Writer.prototype.fixed32 = function write_fixed32(value) { + return this._push(writeFixed32, 4, value >>> 0); +}; -function from64To32(num) { - // convert 64-bit number to two BE Int32s - return [(num / 0x100000000) | 0, num & 0xFFFFFFFF]; -} +/** + * Writes a signed 32 bit value as fixed 32 bits. + * @function + * @param {number} value Value to write + * @returns {Writer} `this` + */ +Writer.prototype.sfixed32 = Writer.prototype.fixed32; +/** + * Writes an unsigned 64 bit value as fixed 64 bits. + * @param {Long|number|string} value Value to write + * @returns {Writer} `this` + * @throws {TypeError} If `value` is a string and no long library is present. + */ +Writer.prototype.fixed64 = function write_fixed64(value) { + var bits = LongBits.from(value); + return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi); +}; -/***/ }), +/** + * Writes a signed 64 bit value as fixed 64 bits. + * @function + * @param {Long|number|string} value Value to write + * @returns {Writer} `this` + * @throws {TypeError} If `value` is a string and no long library is present. + */ +Writer.prototype.sfixed64 = Writer.prototype.fixed64; -/***/ 3261: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * Writes a float (32 bit). + * @function + * @param {number} value Value to write + * @returns {Writer} `this` + */ +Writer.prototype.float = function write_float(value) { + return this._push(util.float.writeFloatLE, 4, value); +}; /** - * DES (Data Encryption Standard) implementation. - * - * This implementation supports DES as well as 3DES-EDE in ECB and CBC mode. - * It is based on the BSD-licensed implementation by Paul Tero: - * - * Paul Tero, July 2001 - * http://www.tero.co.uk/des/ - * - * Optimised for performance with large blocks by - * Michael Hayworth, November 2001 - * http://www.netdealing.com - * - * THIS SOFTWARE IS PROVIDED "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2012-2014 Digital Bazaar, Inc. + * Writes a double (64 bit float). + * @function + * @param {number} value Value to write + * @returns {Writer} `this` */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(80723); -__nccwpck_require__(56923); -__nccwpck_require__(21720); +Writer.prototype.double = function write_double(value) { + return this._push(util.float.writeDoubleLE, 8, value); +}; -/* DES API */ -module.exports = forge.des = forge.des || {}; +var writeBytes = util.Array.prototype.set + ? function writeBytes_set(val, buf, pos) { + buf.set(val, pos); // also works for plain array values + } + /* istanbul ignore next */ + : function writeBytes_for(val, buf, pos) { + for (var i = 0; i < val.length; ++i) + buf[pos + i] = val[i]; + }; /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('DES-', key); - * cipher.start({iv: iv}); - * - * Creates an DES cipher object to encrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as binary-encoded strings of bytes or - * byte buffers. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC' if IV is - * given, 'ECB' if null). - * - * @return the cipher. + * Writes a sequence of bytes. + * @param {Uint8Array|string} value Buffer or base64 encoded string to write + * @returns {Writer} `this` */ -forge.des.startEncrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: false, - mode: mode || (iv === null ? 'ECB' : 'CBC') - }); - cipher.start(iv); - return cipher; +Writer.prototype.bytes = function write_bytes(value) { + var len = value.length >>> 0; + if (!len) + return this._push(writeByte, 1, 0); + if (util.isString(value)) { + var buf = Writer.alloc(len = base64.length(value)); + base64.decode(value, buf, 0); + value = buf; + } + return this.uint32(len)._push(writeBytes, len, value); }; /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('DES-', key); - * - * Creates an DES cipher object to encrypt data using the given symmetric key. - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * Writes a string. + * @param {string} value Value to write + * @returns {Writer} `this` */ -forge.des.createEncryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: false, - mode: mode - }); +Writer.prototype.string = function write_string(value) { + var len = utf8.length(value); + return len + ? this.uint32(len)._push(utf8.write, len, value) + : this._push(writeByte, 1, 0); }; /** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('DES-', key); - * decipher.start({iv: iv}); - * - * Creates an DES cipher object to decrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as binary-encoded strings of bytes or - * byte buffers. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC' if IV is - * given, 'ECB' if null). - * - * @return the cipher. + * Forks this writer's state by pushing it to a stack. + * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state. + * @returns {Writer} `this` */ -forge.des.startDecrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: true, - mode: mode || (iv === null ? 'ECB' : 'CBC') - }); - cipher.start(iv); - return cipher; +Writer.prototype.fork = function fork() { + this.states = new State(this); + this.head = this.tail = new Op(noop, 0, 0); + this.len = 0; + return this; }; /** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('DES-', key); - * - * Creates an DES cipher object to decrypt data using the given symmetric key. - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * Resets this instance to the last state. + * @returns {Writer} `this` */ -forge.des.createDecryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: true, - mode: mode - }); +Writer.prototype.reset = function reset() { + if (this.states) { + this.head = this.states.head; + this.tail = this.states.tail; + this.len = this.states.len; + this.states = this.states.next; + } else { + this.head = this.tail = new Op(noop, 0, 0); + this.len = 0; + } + return this; +}; + +/** + * Resets to the last state and appends the fork state's current write length as a varint followed by its operations. + * @returns {Writer} `this` + */ +Writer.prototype.ldelim = function ldelim() { + var head = this.head, + tail = this.tail, + len = this.len; + this.reset().uint32(len); + if (len) { + this.tail.next = head.next; // skip noop + this.tail = tail; + this.len += len; + } + return this; }; /** - * Creates a new DES cipher algorithm object. - * - * @param name the name of the algorithm. - * @param mode the mode factory function. - * - * @return the DES algorithm object. + * Finishes the write operation. + * @returns {Uint8Array} Finished buffer */ -forge.des.Algorithm = function(name, mode) { - var self = this; - self.name = name; - self.mode = new mode({ - blockSize: 8, - cipher: { - encrypt: function(inBlock, outBlock) { - return _updateBlock(self._keys, inBlock, outBlock, false); - }, - decrypt: function(inBlock, outBlock) { - return _updateBlock(self._keys, inBlock, outBlock, true); - } +Writer.prototype.finish = function finish() { + var head = this.head.next, // skip noop + buf = this.constructor.alloc(this.len), + pos = 0; + while (head) { + head.fn(head.val, buf, pos); + pos += head.len; + head = head.next; } - }); - self._init = false; + // this.head = this.tail = null; + return buf; +}; + +Writer._configure = function(BufferWriter_) { + BufferWriter = BufferWriter_; + Writer.create = create(); + BufferWriter._configure(); }; + +/***/ }), + +/***/ 75350: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = BufferWriter; + +// extends Writer +var Writer = __nccwpck_require__(65469); +(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter; + +var util = __nccwpck_require__(85526); + /** - * Initializes this DES algorithm by expanding its key. - * - * @param options the options to use. - * key the key to use with this algorithm. - * decrypt true if the algorithm should be initialized for decryption, - * false for encryption. + * Constructs a new buffer writer instance. + * @classdesc Wire format writer using node buffers. + * @extends Writer + * @constructor */ -forge.des.Algorithm.prototype.initialize = function(options) { - if(this._init) { - return; - } +function BufferWriter() { + Writer.call(this); +} - var key = forge.util.createBuffer(options.key); - if(this.name.indexOf('3DES') === 0) { - if(key.length() !== 24) { - throw new Error('Invalid Triple-DES key size: ' + key.length() * 8); - } - } +BufferWriter._configure = function () { + /** + * Allocates a buffer of the specified size. + * @function + * @param {number} size Buffer size + * @returns {Buffer} Buffer + */ + BufferWriter.alloc = util._Buffer_allocUnsafe; - // do key expansion to 16 or 48 subkeys (single or triple DES) - this._keys = _createKeys(key); - this._init = true; + BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" + ? function writeBytesBuffer_set(val, buf, pos) { + buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited) + // also works for plain array values + } + /* istanbul ignore next */ + : function writeBytesBuffer_copy(val, buf, pos) { + if (val.copy) // Buffer values + val.copy(buf, pos, 0, val.length); + else for (var i = 0; i < val.length;) // plain array values + buf[pos++] = val[i++]; + }; }; -/** Register DES algorithms **/ - -registerAlgorithm('DES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('DES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('DES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('DES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('DES-CTR', forge.cipher.modes.ctr); -registerAlgorithm('3DES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('3DES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('3DES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('3DES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('3DES-CTR', forge.cipher.modes.ctr); +/** + * @override + */ +BufferWriter.prototype.bytes = function write_bytes_buffer(value) { + if (util.isString(value)) + value = util._Buffer_from(value, "base64"); + var len = value.length >>> 0; + this.uint32(len); + if (len) + this._push(BufferWriter.writeBytesBuffer, len, value); + return this; +}; -function registerAlgorithm(name, mode) { - var factory = function() { - return new forge.des.Algorithm(name, mode); - }; - forge.cipher.registerAlgorithm(name, factory); +function writeStringBuffer(val, buf, pos) { + if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions) + util.utf8.write(val, buf, pos); + else if (buf.utf8Write) + buf.utf8Write(val, pos); + else + buf.write(val, pos); } -/** DES implementation **/ +/** + * @override + */ +BufferWriter.prototype.string = function write_string_buffer(value) { + var len = util.Buffer.byteLength(value); + this.uint32(len); + if (len) + this._push(writeStringBuffer, len, value); + return this; +}; -var spfunction1 = [0x1010400,0,0x10000,0x1010404,0x1010004,0x10404,0x4,0x10000,0x400,0x1010400,0x1010404,0x400,0x1000404,0x1010004,0x1000000,0x4,0x404,0x1000400,0x1000400,0x10400,0x10400,0x1010000,0x1010000,0x1000404,0x10004,0x1000004,0x1000004,0x10004,0,0x404,0x10404,0x1000000,0x10000,0x1010404,0x4,0x1010000,0x1010400,0x1000000,0x1000000,0x400,0x1010004,0x10000,0x10400,0x1000004,0x400,0x4,0x1000404,0x10404,0x1010404,0x10004,0x1010000,0x1000404,0x1000004,0x404,0x10404,0x1010400,0x404,0x1000400,0x1000400,0,0x10004,0x10400,0,0x1010004]; -var spfunction2 = [-0x7fef7fe0,-0x7fff8000,0x8000,0x108020,0x100000,0x20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef8000,-0x80000000,-0x7fff8000,0x100000,0x20,-0x7fefffe0,0x108000,0x100020,-0x7fff7fe0,0,-0x80000000,0x8000,0x108020,-0x7ff00000,0x100020,-0x7fffffe0,0,0x108000,0x8020,-0x7fef8000,-0x7ff00000,0x8020,0,0x108020,-0x7fefffe0,0x100000,-0x7fff7fe0,-0x7ff00000,-0x7fef8000,0x8000,-0x7ff00000,-0x7fff8000,0x20,-0x7fef7fe0,0x108020,0x20,0x8000,-0x80000000,0x8020,-0x7fef8000,0x100000,-0x7fffffe0,0x100020,-0x7fff7fe0,-0x7fffffe0,0x100020,0x108000,0,-0x7fff8000,0x8020,-0x80000000,-0x7fefffe0,-0x7fef7fe0,0x108000]; -var spfunction3 = [0x208,0x8020200,0,0x8020008,0x8000200,0,0x20208,0x8000200,0x20008,0x8000008,0x8000008,0x20000,0x8020208,0x20008,0x8020000,0x208,0x8000000,0x8,0x8020200,0x200,0x20200,0x8020000,0x8020008,0x20208,0x8000208,0x20200,0x20000,0x8000208,0x8,0x8020208,0x200,0x8000000,0x8020200,0x8000000,0x20008,0x208,0x20000,0x8020200,0x8000200,0,0x200,0x20008,0x8020208,0x8000200,0x8000008,0x200,0,0x8020008,0x8000208,0x20000,0x8000000,0x8020208,0x8,0x20208,0x20200,0x8000008,0x8020000,0x8000208,0x208,0x8020000,0x20208,0x8,0x8020008,0x20200]; -var spfunction4 = [0x802001,0x2081,0x2081,0x80,0x802080,0x800081,0x800001,0x2001,0,0x802000,0x802000,0x802081,0x81,0,0x800080,0x800001,0x1,0x2000,0x800000,0x802001,0x80,0x800000,0x2001,0x2080,0x800081,0x1,0x2080,0x800080,0x2000,0x802080,0x802081,0x81,0x800080,0x800001,0x802000,0x802081,0x81,0,0,0x802000,0x2080,0x800080,0x800081,0x1,0x802001,0x2081,0x2081,0x80,0x802081,0x81,0x1,0x2000,0x800001,0x2001,0x802080,0x800081,0x2001,0x2080,0x800000,0x802001,0x80,0x800000,0x2000,0x802080]; -var spfunction5 = [0x100,0x2080100,0x2080000,0x42000100,0x80000,0x100,0x40000000,0x2080000,0x40080100,0x80000,0x2000100,0x40080100,0x42000100,0x42080000,0x80100,0x40000000,0x2000000,0x40080000,0x40080000,0,0x40000100,0x42080100,0x42080100,0x2000100,0x42080000,0x40000100,0,0x42000000,0x2080100,0x2000000,0x42000000,0x80100,0x80000,0x42000100,0x100,0x2000000,0x40000000,0x2080000,0x42000100,0x40080100,0x2000100,0x40000000,0x42080000,0x2080100,0x40080100,0x100,0x2000000,0x42080000,0x42080100,0x80100,0x42000000,0x42080100,0x2080000,0,0x40080000,0x42000000,0x80100,0x2000100,0x40000100,0x80000,0,0x40080000,0x2080100,0x40000100]; -var spfunction6 = [0x20000010,0x20400000,0x4000,0x20404010,0x20400000,0x10,0x20404010,0x400000,0x20004000,0x404010,0x400000,0x20000010,0x400010,0x20004000,0x20000000,0x4010,0,0x400010,0x20004010,0x4000,0x404000,0x20004010,0x10,0x20400010,0x20400010,0,0x404010,0x20404000,0x4010,0x404000,0x20404000,0x20000000,0x20004000,0x10,0x20400010,0x404000,0x20404010,0x400000,0x4010,0x20000010,0x400000,0x20004000,0x20000000,0x4010,0x20000010,0x20404010,0x404000,0x20400000,0x404010,0x20404000,0,0x20400010,0x10,0x4000,0x20400000,0x404010,0x4000,0x400010,0x20004010,0,0x20404000,0x20000000,0x400010,0x20004010]; -var spfunction7 = [0x200000,0x4200002,0x4000802,0,0x800,0x4000802,0x200802,0x4200800,0x4200802,0x200000,0,0x4000002,0x2,0x4000000,0x4200002,0x802,0x4000800,0x200802,0x200002,0x4000800,0x4000002,0x4200000,0x4200800,0x200002,0x4200000,0x800,0x802,0x4200802,0x200800,0x2,0x4000000,0x200800,0x4000000,0x200800,0x200000,0x4000802,0x4000802,0x4200002,0x4200002,0x2,0x200002,0x4000000,0x4000800,0x200000,0x4200800,0x802,0x200802,0x4200800,0x802,0x4000002,0x4200802,0x4200000,0x200800,0,0x2,0x4200802,0,0x200802,0x4200000,0x800,0x4000002,0x4000800,0x800,0x200002]; -var spfunction8 = [0x10001040,0x1000,0x40000,0x10041040,0x10000000,0x10001040,0x40,0x10000000,0x40040,0x10040000,0x10041040,0x41000,0x10041000,0x41040,0x1000,0x40,0x10040000,0x10000040,0x10001000,0x1040,0x41000,0x40040,0x10040040,0x10041000,0x1040,0,0,0x10040040,0x10000040,0x10001000,0x41040,0x40000,0x41040,0x40000,0x10041000,0x1000,0x40,0x10040040,0x1000,0x41040,0x10001000,0x40,0x10000040,0x10040000,0x10040040,0x10000000,0x40000,0x10001040,0,0x10041040,0x40040,0x10000040,0x10040000,0x10001000,0x10001040,0,0x10041040,0x41000,0x41000,0x1040,0x1040,0x40040,0x10000000,0x10041000]; /** - * Create necessary sub keys. - * - * @param key the 64-bit or 192-bit key. - * - * @return the expanded keys. + * Finishes the write operation. + * @name BufferWriter#finish + * @function + * @returns {Buffer} Finished buffer */ -function _createKeys(key) { - var pc2bytes0 = [0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204], - pc2bytes1 = [0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101], - pc2bytes2 = [0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808], - pc2bytes3 = [0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000], - pc2bytes4 = [0,0x40000,0x10,0x40010,0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010], - pc2bytes5 = [0,0x400,0x20,0x420,0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420], - pc2bytes6 = [0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002], - pc2bytes7 = [0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800], - pc2bytes8 = [0,0x40000,0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002], - pc2bytes9 = [0,0x10000000,0x8,0x10000008,0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408], - pc2bytes10 = [0,0x20,0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020], - pc2bytes11 = [0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200], - pc2bytes12 = [0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010], - pc2bytes13 = [0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105]; - - // how many iterations (1 for des, 3 for triple des) - // changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys - var iterations = key.length() > 8 ? 3 : 1; - // stores the return keys - var keys = []; +BufferWriter._configure(); - // now define the left shifts which need to be done - var shifts = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0]; - var n = 0, tmp; - for(var j = 0; j < iterations; j++) { - var left = key.getInt32(); - var right = key.getInt32(); +/***/ }), - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); +/***/ 13809: +/***/ ((module) => { - tmp = ((right >>> -16) ^ left) & 0x0000ffff; - left ^= tmp; - right ^= (tmp << -16); +"use strict"; - tmp = ((left >>> 2) ^ right) & 0x33333333; - right ^= tmp; - left ^= (tmp << 2); - tmp = ((right >>> -16) ^ left) & 0x0000ffff; - left ^= tmp; - right ^= (tmp << -16); +var replace = String.prototype.replace; +var percentTwenties = /%20/g; - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); +var Format = { + RFC1738: 'RFC1738', + RFC3986: 'RFC3986' +}; - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); +module.exports = { + 'default': Format.RFC3986, + formatters: { + RFC1738: function (value) { + return replace.call(value, percentTwenties, '+'); + }, + RFC3986: function (value) { + return String(value); + } + }, + RFC1738: Format.RFC1738, + RFC3986: Format.RFC3986 +}; - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); - // right needs to be shifted and OR'd with last four bits of left - tmp = (left << 8) | ((right >>> 20) & 0x000000f0); +/***/ }), - // left needs to be put upside down - left = ((right << 24) | ((right << 8) & 0xff0000) | - ((right >>> 8) & 0xff00) | ((right >>> 24) & 0xf0)); - right = tmp; +/***/ 86761: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // now go through and perform these shifts on the left and right keys - for(var i = 0; i < shifts.length; ++i) { - //shift the keys either one or two bits to the left - if(shifts[i]) { - left = (left << 2) | (left >>> 26); - right = (right << 2) | (right >>> 26); - } else { - left = (left << 1) | (left >>> 27); - right = (right << 1) | (right >>> 27); - } - left &= -0xf; - right &= -0xf; +"use strict"; - // now apply PC-2, in such a way that E is easier when encrypting or - // decrypting this conversion will look like PC-2 except only the last 6 - // bits of each byte are used rather than 48 consecutive bits and the - // order of lines will be according to how the S selection functions will - // be applied: S2, S4, S6, S8, S1, S3, S5, S7 - var lefttmp = ( - pc2bytes0[left >>> 28] | pc2bytes1[(left >>> 24) & 0xf] | - pc2bytes2[(left >>> 20) & 0xf] | pc2bytes3[(left >>> 16) & 0xf] | - pc2bytes4[(left >>> 12) & 0xf] | pc2bytes5[(left >>> 8) & 0xf] | - pc2bytes6[(left >>> 4) & 0xf]); - var righttmp = ( - pc2bytes7[right >>> 28] | pc2bytes8[(right >>> 24) & 0xf] | - pc2bytes9[(right >>> 20) & 0xf] | pc2bytes10[(right >>> 16) & 0xf] | - pc2bytes11[(right >>> 12) & 0xf] | pc2bytes12[(right >>> 8) & 0xf] | - pc2bytes13[(right >>> 4) & 0xf]); - tmp = ((righttmp >>> 16) ^ lefttmp) & 0x0000ffff; - keys[n++] = lefttmp ^ tmp; - keys[n++] = righttmp ^ (tmp << 16); - } - } - return keys; -} +var stringify = __nccwpck_require__(76624); +var parse = __nccwpck_require__(73710); +var formats = __nccwpck_require__(13809); -/** - * Updates a single block (1 byte) using DES. The update will either - * encrypt or decrypt the block. - * - * @param keys the expanded keys. - * @param input the input block (an array of 32-bit words). - * @param output the updated output block. - * @param decrypt true to decrypt the block, false to encrypt it. - */ -function _updateBlock(keys, input, output, decrypt) { - // set up loops for single or triple DES - var iterations = keys.length === 32 ? 3 : 9; - var looping; - if(iterations === 3) { - looping = decrypt ? [30, -2, -2] : [0, 32, 2]; - } else { - looping = (decrypt ? - [94, 62, -2, 32, 64, 2, 30, -2, -2] : - [0, 32, 2, 62, 30, -2, 64, 96, 2]); - } +module.exports = { + formats: formats, + parse: parse, + stringify: stringify +}; - var tmp; - var left = input[0]; - var right = input[1]; +/***/ }), - // first each 64 bit chunk of the message must be permuted according to IP - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); +/***/ 73710: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - tmp = ((left >>> 16) ^ right) & 0x0000ffff; - right ^= tmp; - left ^= (tmp << 16); +"use strict"; - tmp = ((right >>> 2) ^ left) & 0x33333333; - left ^= tmp; - right ^= (tmp << 2); - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); +var utils = __nccwpck_require__(27780); - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; - // rotate left 1 bit - left = ((left << 1) | (left >>> 31)); - right = ((right << 1) | (right >>> 31)); +var defaults = { + allowDots: false, + allowEmptyArrays: false, + allowPrototypes: false, + allowSparse: false, + arrayLimit: 20, + charset: 'utf-8', + charsetSentinel: false, + comma: false, + decodeDotInKeys: false, + decoder: utils.decode, + delimiter: '&', + depth: 5, + duplicates: 'combine', + ignoreQueryPrefix: false, + interpretNumericEntities: false, + parameterLimit: 1000, + parseArrays: true, + plainObjects: false, + strictDepth: false, + strictMerge: true, + strictNullHandling: false, + throwOnLimitExceeded: false +}; - for(var j = 0; j < iterations; j += 3) { - var endloop = looping[j + 1]; - var loopinc = looping[j + 2]; +var interpretNumericEntities = function (str) { + return str.replace(/&#(\d+);/g, function ($0, numberStr) { + return String.fromCharCode(parseInt(numberStr, 10)); + }); +}; - // now go through and perform the encryption or decryption - for(var i = looping[j]; i != endloop; i += loopinc) { - var right1 = right ^ keys[i]; - var right2 = ((right >>> 4) | (right << 28)) ^ keys[i + 1]; +var parseArrayValue = function (val, options, currentArrayLength) { + if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { + return val.split(','); + } - // passing these bytes through the S selection functions - tmp = left; - left = right; - right = tmp ^ ( - spfunction2[(right1 >>> 24) & 0x3f] | - spfunction4[(right1 >>> 16) & 0x3f] | - spfunction6[(right1 >>> 8) & 0x3f] | - spfunction8[right1 & 0x3f] | - spfunction1[(right2 >>> 24) & 0x3f] | - spfunction3[(right2 >>> 16) & 0x3f] | - spfunction5[(right2 >>> 8) & 0x3f] | - spfunction7[right2 & 0x3f]); + if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) { + throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); } - // unreverse left and right - tmp = left; - left = right; - right = tmp; - } - // rotate right 1 bit - left = ((left >>> 1) | (left << 31)); - right = ((right >>> 1) | (right << 31)); + return val; +}; - // now perform IP-1, which is IP in the opposite direction - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); +// This is what browsers will submit when the ✓ character occurs in an +// application/x-www-form-urlencoded body and the encoding of the page containing +// the form is iso-8859-1, or when the submitted form has an accept-charset +// attribute of iso-8859-1. Presumably also with other charsets that do not contain +// the ✓ character, such as us-ascii. +var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); +// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. +var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - tmp = ((right >>> 2) ^ left) & 0x33333333; - left ^= tmp; - right ^= (tmp << 2); +var parseValues = function parseQueryStringValues(str, options) { + var obj = { __proto__: null }; - tmp = ((left >>> 16) ^ right) & 0x0000ffff; - right ^= tmp; - left ^= (tmp << 16); + var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; + cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']'); - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); + var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit; + var parts = cleanStr.split( + options.delimiter, + options.throwOnLimitExceeded ? limit + 1 : limit + ); - output[0] = left; - output[1] = right; -} + if (options.throwOnLimitExceeded && parts.length > limit) { + throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.'); + } -/** - * Deprecated. Instead, use: - * - * forge.cipher.createCipher('DES-', key); - * forge.cipher.createDecipher('DES-', key); - * - * Creates a deprecated DES cipher object. This object's mode will default to - * CBC (cipher-block-chaining). - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param options the options to use. - * key the symmetric key to use (64 or 192 bits). - * output the buffer to write to. - * decrypt true for decryption, false for encryption. - * mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -function _createCipher(options) { - options = options || {}; - var mode = (options.mode || 'CBC').toUpperCase(); - var algorithm = 'DES-' + mode; + var skipIndex = -1; // Keep track of where the utf8 sentinel was found + var i; - var cipher; - if(options.decrypt) { - cipher = forge.cipher.createDecipher(algorithm, options.key); - } else { - cipher = forge.cipher.createCipher(algorithm, options.key); - } + var charset = options.charset; + if (options.charsetSentinel) { + for (i = 0; i < parts.length; ++i) { + if (parts[i].indexOf('utf8=') === 0) { + if (parts[i] === charsetSentinel) { + charset = 'utf-8'; + } else if (parts[i] === isoSentinel) { + charset = 'iso-8859-1'; + } + skipIndex = i; + i = parts.length; // The eslint settings do not allow break; + } + } + } - // backwards compatible start API - var start = cipher.start; - cipher.start = function(iv, options) { - // backwards compatibility: support second arg as output buffer - var output = null; - if(options instanceof forge.util.ByteBuffer) { - output = options; - options = {}; + for (i = 0; i < parts.length; ++i) { + if (i === skipIndex) { + continue; + } + var part = parts[i]; + + var bracketEqualsPos = part.indexOf(']='); + var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; + + var key; + var val; + if (pos === -1) { + key = options.decoder(part, defaults.decoder, charset, 'key'); + val = options.strictNullHandling ? null : ''; + } else { + key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); + + if (key !== null) { + val = utils.maybeMap( + parseArrayValue( + part.slice(pos + 1), + options, + isArray(obj[key]) ? obj[key].length : 0 + ), + function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + } + ); + } + } + + if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { + val = interpretNumericEntities(String(val)); + } + + if (part.indexOf('[]=') > -1) { + val = isArray(val) ? [val] : val; + } + + if (options.comma && isArray(val) && val.length > options.arrayLimit) { + if (options.throwOnLimitExceeded) { + throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); + } + val = utils.combine([], val, options.arrayLimit, options.plainObjects); + } + + if (key !== null) { + var existing = has.call(obj, key); + if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) { + obj[key] = utils.combine( + obj[key], + val, + options.arrayLimit, + options.plainObjects + ); + } else if (!existing || options.duplicates === 'last') { + obj[key] = val; + } + } } - options = options || {}; - options.output = output; - options.iv = iv; - start.call(cipher, options); - }; - return cipher; -} + return obj; +}; +var parseObject = function (chain, val, options, valuesParsed) { + var currentArrayLength = 0; + if (chain.length > 0 && chain[chain.length - 1] === '[]') { + var parentKey = chain.slice(0, -1).join(''); + currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0; + } -/***/ }), + var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength); -/***/ 71575: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + for (var i = chain.length - 1; i >= 0; --i) { + var obj; + var root = chain[i]; -/** - * JavaScript implementation of Ed25519. - * - * Copyright (c) 2017-2019 Digital Bazaar, Inc. - * - * This implementation is based on the most excellent TweetNaCl which is - * in the public domain. Many thanks to its contributors: - * - * https://github.com/dchest/tweetnacl-js - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(8695); -__nccwpck_require__(84856); -__nccwpck_require__(38250); -__nccwpck_require__(21720); -var asn1Validator = __nccwpck_require__(11385); -var publicKeyValidator = asn1Validator.publicKeyValidator; -var privateKeyValidator = asn1Validator.privateKeyValidator; + if (root === '[]' && options.parseArrays) { + if (utils.isOverflow(leaf)) { + // leaf is already an overflow object, preserve it + obj = leaf; + } else { + obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null)) + ? [] + : utils.combine( + [], + leaf, + options.arrayLimit, + options.plainObjects + ); + } + } else { + obj = options.plainObjects ? { __proto__: null } : {}; + var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; + var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot; + var index = parseInt(decodedRoot, 10); + var isValidArrayIndex = !isNaN(index) + && root !== decodedRoot + && String(index) === decodedRoot + && index >= 0 + && options.parseArrays; + if (!options.parseArrays && decodedRoot === '') { + obj = { 0: leaf }; + } else if (isValidArrayIndex && index < options.arrayLimit) { + obj = []; + obj[index] = leaf; + } else if (isValidArrayIndex && options.throwOnLimitExceeded) { + throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); + } else if (isValidArrayIndex) { + obj[index] = leaf; + utils.markOverflow(obj, index); + } else if (decodedRoot !== '__proto__') { + obj[decodedRoot] = leaf; + } + } -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} + leaf = obj; + } -var ByteBuffer = forge.util.ByteBuffer; -var NativeBuffer = typeof Buffer === 'undefined' ? Uint8Array : Buffer; + return leaf; +}; -/* - * Ed25519 algorithms, see RFC 8032: - * https://tools.ietf.org/html/rfc8032 - */ -forge.pki = forge.pki || {}; -module.exports = forge.pki.ed25519 = forge.ed25519 = forge.ed25519 || {}; -var ed25519 = forge.ed25519; +var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) { + var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; -ed25519.constants = {}; -ed25519.constants.PUBLIC_KEY_BYTE_LENGTH = 32; -ed25519.constants.PRIVATE_KEY_BYTE_LENGTH = 64; -ed25519.constants.SEED_BYTE_LENGTH = 32; -ed25519.constants.SIGN_BYTE_LENGTH = 64; -ed25519.constants.HASH_BYTE_LENGTH = 64; + if (options.depth <= 0) { + if (!options.plainObjects && has.call(Object.prototype, key)) { + if (!options.allowPrototypes) { + return; + } + } -ed25519.generateKeyPair = function(options) { - options = options || {}; - var seed = options.seed; - if(seed === undefined) { - // generate seed - seed = forge.random.getBytesSync(ed25519.constants.SEED_BYTE_LENGTH); - } else if(typeof seed === 'string') { - if(seed.length !== ed25519.constants.SEED_BYTE_LENGTH) { - throw new TypeError( - '"seed" must be ' + ed25519.constants.SEED_BYTE_LENGTH + - ' bytes in length.'); + return [key]; } - } else if(!(seed instanceof Uint8Array)) { - throw new TypeError( - '"seed" must be a node.js Buffer, Uint8Array, or a binary string.'); - } - seed = messageToNativeBuffer({message: seed, encoding: 'binary'}); + var brackets = /(\[[^[\]]*])/; + var child = /(\[[^[\]]*])/g; - var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - var sk = new NativeBuffer(ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - for(var i = 0; i < 32; ++i) { - sk[i] = seed[i]; - } - crypto_sign_keypair(pk, sk); - return {publicKey: pk, privateKey: sk}; -}; + var segment = brackets.exec(key); + var parent = segment ? key.slice(0, segment.index) : key; -/** - * Converts a private key from a RFC8410 ASN.1 encoding. - * - * @param obj - The asn1 representation of a private key. - * - * @returns {Object} keyInfo - The key information. - * @returns {Buffer|Uint8Array} keyInfo.privateKeyBytes - 32 private key bytes. - */ -ed25519.privateKeyFromAsn1 = function(obj) { - var capture = {}; - var errors = []; - var valid = forge.asn1.validate(obj, privateKeyValidator, capture, errors); - if(!valid) { - var error = new Error('Invalid Key.'); - error.errors = errors; - throw error; - } - var oid = forge.asn1.derToOid(capture.privateKeyOid); - var ed25519Oid = forge.oids.EdDSA25519; - if(oid !== ed25519Oid) { - throw new Error('Invalid OID "' + oid + '"; OID must be "' + - ed25519Oid + '".'); - } - var privateKey = capture.privateKey; - // manually extract the private key bytes from nested octet string, see FIXME: - // https://github.com/digitalbazaar/forge/blob/master/lib/asn1.js#L542 - var privateKeyBytes = messageToNativeBuffer({ - message: forge.asn1.fromDer(privateKey).value, - encoding: 'binary' - }); - // TODO: RFC8410 specifies a format for encoding the public key bytes along - // with the private key bytes. `publicKeyBytes` can be returned in the - // future. https://tools.ietf.org/html/rfc8410#section-10.3 - return {privateKeyBytes: privateKeyBytes}; -}; + var keys = []; -/** - * Converts a public key from a RFC8410 ASN.1 encoding. - * - * @param obj - The asn1 representation of a public key. - * - * @return {Buffer|Uint8Array} - 32 public key bytes. - */ -ed25519.publicKeyFromAsn1 = function(obj) { - // get SubjectPublicKeyInfo - var capture = {}; - var errors = []; - var valid = forge.asn1.validate(obj, publicKeyValidator, capture, errors); - if(!valid) { - var error = new Error('Invalid Key.'); - error.errors = errors; - throw error; - } - var oid = forge.asn1.derToOid(capture.publicKeyOid); - var ed25519Oid = forge.oids.EdDSA25519; - if(oid !== ed25519Oid) { - throw new Error('Invalid OID "' + oid + '"; OID must be "' + - ed25519Oid + '".'); - } - var publicKeyBytes = capture.ed25519PublicKey; - if(publicKeyBytes.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { - throw new Error('Key length is invalid.'); - } - return messageToNativeBuffer({ - message: publicKeyBytes, - encoding: 'binary' - }); -}; + if (parent) { + if (!options.plainObjects && has.call(Object.prototype, parent)) { + if (!options.allowPrototypes) { + return; + } + } -ed25519.publicKeyFromPrivateKey = function(options) { - options = options || {}; - var privateKey = messageToNativeBuffer({ - message: options.privateKey, encoding: 'binary' - }); - if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.privateKey" must have a byte length of ' + - ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - } + keys[keys.length] = parent; + } - var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - for(var i = 0; i < pk.length; ++i) { - pk[i] = privateKey[32 + i]; - } - return pk; -}; + var i = 0; + while ((segment = child.exec(key)) !== null && i < options.depth) { + i += 1; -ed25519.sign = function(options) { - options = options || {}; - var msg = messageToNativeBuffer(options); - var privateKey = messageToNativeBuffer({ - message: options.privateKey, - encoding: 'binary' - }); - if(privateKey.length === ed25519.constants.SEED_BYTE_LENGTH) { - var keyPair = ed25519.generateKeyPair({seed: privateKey}); - privateKey = keyPair.privateKey; - } else if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.privateKey" must have a byte length of ' + - ed25519.constants.SEED_BYTE_LENGTH + ' or ' + - ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - } + var segmentContent = segment[1].slice(1, -1); + if (!options.plainObjects && has.call(Object.prototype, segmentContent)) { + if (!options.allowPrototypes) { + return; + } + } - var signedMsg = new NativeBuffer( - ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - crypto_sign(signedMsg, msg, msg.length, privateKey); + keys[keys.length] = segment[1]; + } - var sig = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH); - for(var i = 0; i < sig.length; ++i) { - sig[i] = signedMsg[i]; - } - return sig; + if (segment) { + if (options.strictDepth === true) { + throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true'); + } + + keys[keys.length] = '[' + key.slice(segment.index) + ']'; + } + + return keys; }; -ed25519.verify = function(options) { - options = options || {}; - var msg = messageToNativeBuffer(options); - if(options.signature === undefined) { - throw new TypeError( - '"options.signature" must be a node.js Buffer, a Uint8Array, a forge ' + - 'ByteBuffer, or a binary string.'); - } - var sig = messageToNativeBuffer({ - message: options.signature, - encoding: 'binary' - }); - if(sig.length !== ed25519.constants.SIGN_BYTE_LENGTH) { - throw new TypeError( - '"options.signature" must have a byte length of ' + - ed25519.constants.SIGN_BYTE_LENGTH); - } - var publicKey = messageToNativeBuffer({ - message: options.publicKey, - encoding: 'binary' - }); - if(publicKey.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.publicKey" must have a byte length of ' + - ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - } +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { + if (!givenKey) { + return; + } - var sm = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - var m = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - var i; - for(i = 0; i < ed25519.constants.SIGN_BYTE_LENGTH; ++i) { - sm[i] = sig[i]; - } - for(i = 0; i < msg.length; ++i) { - sm[i + ed25519.constants.SIGN_BYTE_LENGTH] = msg[i]; - } - return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0); + var keys = splitKeyIntoSegments(givenKey, options); + + if (!keys) { + return; + } + + return parseObject(keys, val, options, valuesParsed); }; -function messageToNativeBuffer(options) { - var message = options.message; - if(message instanceof Uint8Array || message instanceof NativeBuffer) { - return message; - } +var normalizeParseOptions = function normalizeParseOptions(opts) { + if (!opts) { + return defaults; + } - var encoding = options.encoding; - if(message === undefined) { - if(options.md) { - // TODO: more rigorous validation that `md` is a MessageDigest - message = options.md.digest().getBytes(); - encoding = 'binary'; - } else { - throw new TypeError('"options.message" or "options.md" not specified.'); + if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { + throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); } - } - if(typeof message === 'string' && !encoding) { - throw new TypeError('"options.encoding" must be "binary" or "utf8".'); - } + if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') { + throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided'); + } - if(typeof message === 'string') { - if(typeof Buffer !== 'undefined') { - return Buffer.from(message, encoding); + if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') { + throw new TypeError('Decoder has to be a function.'); } - message = new ByteBuffer(message, encoding); - } else if(!(message instanceof ByteBuffer)) { - throw new TypeError( - '"options.message" must be a node.js Buffer, a Uint8Array, a forge ' + - 'ByteBuffer, or a string with "options.encoding" specifying its ' + - 'encoding.'); - } - // convert to native buffer - var buffer = new NativeBuffer(message.length()); - for(var i = 0; i < buffer.length; ++i) { - buffer[i] = message.at(i); - } - return buffer; -} + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } -var gf0 = gf(); -var gf1 = gf([1]); -var D = gf([ - 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, - 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]); -var D2 = gf([ - 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, - 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]); -var X = gf([ - 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, - 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]); -var Y = gf([ - 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, - 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]); -var L = new Float64Array([ - 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, - 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]); -var I = gf([ - 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, - 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]); + if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') { + throw new TypeError('`throwOnLimitExceeded` option must be a boolean'); + } -// TODO: update forge buffer implementation to use `Buffer` or `Uint8Array`, -// whichever is available, to improve performance -function sha512(msg, msgLen) { - // Note: `out` and `msg` are NativeBuffer - var md = forge.md.sha512.create(); - var buffer = new ByteBuffer(msg); - md.update(buffer.getBytes(msgLen), 'binary'); - var hash = md.digest().getBytes(); - if(typeof Buffer !== 'undefined') { - return Buffer.from(hash, 'binary'); - } - var out = new NativeBuffer(ed25519.constants.HASH_BYTE_LENGTH); - for(var i = 0; i < 64; ++i) { - out[i] = hash.charCodeAt(i); - } - return out; -} + var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; -function crypto_sign_keypair(pk, sk) { - var p = [gf(), gf(), gf(), gf()]; - var i; + var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates; - var d = sha512(sk, 32); - d[0] &= 248; - d[31] &= 127; - d[31] |= 64; + if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') { + throw new TypeError('The duplicates option must be either combine, first, or last'); + } - scalarbase(p, d); - pack(pk, p); + var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; - for(i = 0; i < 32; ++i) { - sk[i + 32] = pk[i]; - } - return 0; -} + return { + allowDots: allowDots, + allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, + allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, + allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, + arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, + decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys, + decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, + delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + // eslint-disable-next-line no-implicit-coercion, no-extra-parens + depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, + duplicates: duplicates, + ignoreQueryPrefix: opts.ignoreQueryPrefix === true, + interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, + parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: opts.parseArrays !== false, + plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, + strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth, + strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling, + throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false + }; +}; -// Note: difference from C - smlen returned, not passed as argument. -function crypto_sign(sm, m, n, sk) { - var i, j, x = new Float64Array(64); - var p = [gf(), gf(), gf(), gf()]; +module.exports = function (str, opts) { + var options = normalizeParseOptions(opts); - var d = sha512(sk, 32); - d[0] &= 248; - d[31] &= 127; - d[31] |= 64; + if (str === '' || str === null || typeof str === 'undefined') { + return options.plainObjects ? { __proto__: null } : {}; + } - var smlen = n + 64; - for(i = 0; i < n; ++i) { - sm[64 + i] = m[i]; - } - for(i = 0; i < 32; ++i) { - sm[32 + i] = d[32 + i]; - } + var tempObj = typeof str === 'string' ? parseValues(str, options) : str; + var obj = options.plainObjects ? { __proto__: null } : {}; - var r = sha512(sm.subarray(32), n + 32); - reduce(r); - scalarbase(p, r); - pack(sm, p); + // Iterate over the keys and setup the new object - for(i = 32; i < 64; ++i) { - sm[i] = sk[i]; - } - var h = sha512(sm, n + 64); - reduce(h); + var keys = Object.keys(tempObj); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); + obj = utils.merge(obj, newObj, options); + } - for(i = 32; i < 64; ++i) { - x[i] = 0; - } - for(i = 0; i < 32; ++i) { - x[i] = r[i]; - } - for(i = 0; i < 32; ++i) { - for(j = 0; j < 32; j++) { - x[i + j] += h[i] * d[j]; + if (options.allowSparse === true) { + return obj; } - } - modL(sm.subarray(32), x); - return smlen; -} + return utils.compact(obj); +}; -function crypto_sign_open(m, sm, n, pk) { - var i, mlen; - var t = new NativeBuffer(32); - var p = [gf(), gf(), gf(), gf()], - q = [gf(), gf(), gf(), gf()]; - mlen = -1; - if(n < 64) { - return -1; - } +/***/ }), - if(unpackneg(q, pk)) { - return -1; - } +/***/ 76624: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - for(i = 0; i < n; ++i) { - m[i] = sm[i]; - } - for(i = 0; i < 32; ++i) { - m[i + 32] = pk[i]; - } - var h = sha512(m, n); - reduce(h); - scalarmult(p, q, h); +"use strict"; - scalarbase(q, sm.subarray(32)); - add(p, q); - pack(t, p); - n -= 64; - if(crypto_verify_32(sm, 0, t, 0)) { - for(i = 0; i < n; ++i) { - m[i] = 0; +var getSideChannel = __nccwpck_require__(37260); +var utils = __nccwpck_require__(27780); +var formats = __nccwpck_require__(13809); +var has = Object.prototype.hasOwnProperty; + +var arrayPrefixGenerators = { + brackets: function brackets(prefix) { + return prefix + '[]'; + }, + comma: 'comma', + indices: function indices(prefix, key) { + return prefix + '[' + key + ']'; + }, + repeat: function repeat(prefix) { + return prefix; } - return -1; - } +}; - for(i = 0; i < n; ++i) { - m[i] = sm[i + 64]; - } - mlen = n; - return mlen; -} +var isArray = Array.isArray; +var push = Array.prototype.push; +var pushToArray = function (arr, valueOrArray) { + push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); +}; -function modL(r, x) { - var carry, i, j, k; - for(i = 63; i >= 32; --i) { - carry = 0; - for(j = i - 32, k = i - 12; j < k; ++j) { - x[j] += carry - 16 * x[i] * L[j - (i - 32)]; - carry = (x[j] + 128) >> 8; - x[j] -= carry * 256; - } - x[j] += carry; - x[i] = 0; - } - carry = 0; - for(j = 0; j < 32; ++j) { - x[j] += carry - (x[31] >> 4) * L[j]; - carry = x[j] >> 8; - x[j] &= 255; - } - for(j = 0; j < 32; ++j) { - x[j] -= carry * L[j]; - } - for(i = 0; i < 32; ++i) { - x[i + 1] += x[i] >> 8; - r[i] = x[i] & 255; - } -} +var toISO = Date.prototype.toISOString; -function reduce(r) { - var x = new Float64Array(64); - for(var i = 0; i < 64; ++i) { - x[i] = r[i]; - r[i] = 0; - } - modL(r, x); -} +var defaultFormat = formats['default']; +var defaults = { + addQueryPrefix: false, + allowDots: false, + allowEmptyArrays: false, + arrayFormat: 'indices', + charset: 'utf-8', + charsetSentinel: false, + commaRoundTrip: false, + delimiter: '&', + encode: true, + encodeDotInKeys: false, + encoder: utils.encode, + encodeValuesOnly: false, + filter: void undefined, + format: defaultFormat, + formatter: formats.formatters[defaultFormat], + // deprecated + indices: false, + serializeDate: function serializeDate(date) { + return toISO.call(date); + }, + skipNulls: false, + strictNullHandling: false +}; + +var isNonNullishPrimitive = function isNonNullishPrimitive(v) { + return typeof v === 'string' + || typeof v === 'number' + || typeof v === 'boolean' + || typeof v === 'symbol' + || typeof v === 'bigint'; +}; + +var sentinel = {}; + +var stringify = function stringify( + object, + prefix, + generateArrayPrefix, + commaRoundTrip, + allowEmptyArrays, + strictNullHandling, + skipNulls, + encodeDotInKeys, + encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + sideChannel +) { + var obj = object; + + var tmpSc = sideChannel; + var step = 0; + var findFlag = false; + while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { + // Where object last appeared in the ref tree + var pos = tmpSc.get(object); + step += 1; + if (typeof pos !== 'undefined') { + if (pos === step) { + throw new RangeError('Cyclic object value'); + } else { + findFlag = true; // Break while + } + } + if (typeof tmpSc.get(sentinel) === 'undefined') { + step = 0; + } + } -function add(p, q) { - var a = gf(), b = gf(), c = gf(), - d = gf(), e = gf(), f = gf(), - g = gf(), h = gf(), t = gf(); + if (typeof filter === 'function') { + obj = filter(prefix, obj); + } else if (obj instanceof Date) { + obj = serializeDate(obj); + } else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = utils.maybeMap(obj, function (value) { + if (value instanceof Date) { + return serializeDate(value); + } + return value; + }); + } - Z(a, p[1], p[0]); - Z(t, q[1], q[0]); - M(a, a, t); - A(b, p[0], p[1]); - A(t, q[0], q[1]); - M(b, b, t); - M(c, p[3], q[3]); - M(c, c, D2); - M(d, p[2], q[2]); - A(d, d, d); - Z(e, b, a); - Z(f, d, c); - A(g, d, c); - A(h, b, a); + if (obj === null) { + if (strictNullHandling) { + return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; + } - M(p[0], e, f); - M(p[1], h, g); - M(p[2], g, f); - M(p[3], e, h); -} + obj = ''; + } -function cswap(p, q, b) { - for(var i = 0; i < 4; ++i) { - sel25519(p[i], q[i], b); - } -} + if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { + if (encoder) { + var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); + return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; + } + return [formatter(prefix) + '=' + formatter(String(obj))]; + } -function pack(r, p) { - var tx = gf(), ty = gf(), zi = gf(); - inv25519(zi, p[2]); - M(tx, p[0], zi); - M(ty, p[1], zi); - pack25519(r, ty); - r[31] ^= par25519(tx) << 7; -} + var values = []; -function pack25519(o, n) { - var i, j, b; - var m = gf(), t = gf(); - for(i = 0; i < 16; ++i) { - t[i] = n[i]; - } - car25519(t); - car25519(t); - car25519(t); - for(j = 0; j < 2; ++j) { - m[0] = t[0] - 0xffed; - for(i = 1; i < 15; ++i) { - m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1); - m[i-1] &= 0xffff; + if (typeof obj === 'undefined') { + return values; } - m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1); - b = (m[15] >> 16) & 1; - m[14] &= 0xffff; - sel25519(t, m, 1 - b); - } - for (i = 0; i < 16; i++) { - o[2 * i] = t[i] & 0xff; - o[2 * i + 1] = t[i] >> 8; - } -} -function unpackneg(r, p) { - var t = gf(), chk = gf(), num = gf(), - den = gf(), den2 = gf(), den4 = gf(), - den6 = gf(); + var objKeys; + if (generateArrayPrefix === 'comma' && isArray(obj)) { + // we need to join elements in + if (encodeValuesOnly && encoder) { + obj = utils.maybeMap(obj, encoder); + } + objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; + } else if (isArray(filter)) { + objKeys = filter; + } else { + var keys = Object.keys(obj); + objKeys = sort ? keys.sort(sort) : keys; + } - set25519(r[2], gf1); - unpack25519(r[1], p); - S(num, r[1]); - M(den, num, D); - Z(num, num, r[2]); - A(den, r[2], den); + var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix); - S(den2, den); - S(den4, den2); - M(den6, den4, den2); - M(t, den6, num); - M(t, t, den); + var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix; - pow2523(t, t); - M(t, t, num); - M(t, t, den); - M(t, t, den); - M(r[0], t, den); + if (allowEmptyArrays && isArray(obj) && obj.length === 0) { + return adjustedPrefix + '[]'; + } - S(chk, r[0]); - M(chk, chk, den); - if(neq25519(chk, num)) { - M(r[0], r[0], I); - } + for (var j = 0; j < objKeys.length; ++j) { + var key = objKeys[j]; + var value = typeof key === 'object' && key && typeof key.value !== 'undefined' + ? key.value + : obj[key]; - S(chk, r[0]); - M(chk, chk, den); - if(neq25519(chk, num)) { - return -1; - } + if (skipNulls && value === null) { + continue; + } - if(par25519(r[0]) === (p[31] >> 7)) { - Z(r[0], gf0, r[0]); - } + var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key); + var keyPrefix = isArray(obj) + ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix + : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']'); - M(r[3], r[0], r[1]); - return 0; -} + sideChannel.set(object, step); + var valueSideChannel = getSideChannel(); + valueSideChannel.set(sentinel, sideChannel); + pushToArray(values, stringify( + value, + keyPrefix, + generateArrayPrefix, + commaRoundTrip, + allowEmptyArrays, + strictNullHandling, + skipNulls, + encodeDotInKeys, + generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + valueSideChannel + )); + } -function unpack25519(o, n) { - var i; - for(i = 0; i < 16; ++i) { - o[i] = n[2 * i] + (n[2 * i + 1] << 8); - } - o[15] &= 0x7fff; -} + return values; +}; -function pow2523(o, i) { - var c = gf(); - var a; - for(a = 0; a < 16; ++a) { - c[a] = i[a]; - } - for(a = 250; a >= 0; --a) { - S(c, c); - if(a !== 1) { - M(c, c, i); +var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { + if (!opts) { + return defaults; } - } - for(a = 0; a < 16; ++a) { - o[a] = c[a]; - } -} - -function neq25519(a, b) { - var c = new NativeBuffer(32); - var d = new NativeBuffer(32); - pack25519(c, a); - pack25519(d, b); - return crypto_verify_32(c, 0, d, 0); -} -function crypto_verify_32(x, xi, y, yi) { - return vn(x, xi, y, yi, 32); -} + if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { + throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); + } -function vn(x, xi, y, yi, n) { - var i, d = 0; - for(i = 0; i < n; ++i) { - d |= x[xi + i] ^ y[yi + i]; - } - return (1 & ((d - 1) >>> 8)) - 1; -} + if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') { + throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided'); + } -function par25519(a) { - var d = new NativeBuffer(32); - pack25519(d, a); - return d[0] & 1; -} + if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { + throw new TypeError('Encoder has to be a function.'); + } -function scalarmult(p, q, s) { - var b, i; - set25519(p[0], gf0); - set25519(p[1], gf1); - set25519(p[2], gf1); - set25519(p[3], gf0); - for(i = 255; i >= 0; --i) { - b = (s[(i / 8)|0] >> (i & 7)) & 1; - cswap(p, q, b); - add(q, p); - add(p, p); - cswap(p, q, b); - } -} + var charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } -function scalarbase(p, s) { - var q = [gf(), gf(), gf(), gf()]; - set25519(q[0], X); - set25519(q[1], Y); - set25519(q[2], gf1); - M(q[3], X, Y); - scalarmult(p, q, s); -} + var format = formats['default']; + if (typeof opts.format !== 'undefined') { + if (!has.call(formats.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + var formatter = formats.formatters[format]; -function set25519(r, a) { - var i; - for(i = 0; i < 16; i++) { - r[i] = a[i] | 0; - } -} + var filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } -function inv25519(o, i) { - var c = gf(); - var a; - for(a = 0; a < 16; ++a) { - c[a] = i[a]; - } - for(a = 253; a >= 0; --a) { - S(c, c); - if(a !== 2 && a !== 4) { - M(c, c, i); + var arrayFormat; + if (opts.arrayFormat in arrayPrefixGenerators) { + arrayFormat = opts.arrayFormat; + } else if ('indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; + } else { + arrayFormat = defaults.arrayFormat; } - } - for(a = 0; a < 16; ++a) { - o[a] = c[a]; - } -} -function car25519(o) { - var i, v, c = 1; - for(i = 0; i < 16; ++i) { - v = o[i] + c + 65535; - c = Math.floor(v / 65536); - o[i] = v - c * 65536; - } - o[0] += c - 1 + 37 * (c - 1); -} + if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { + throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); + } -function sel25519(p, q, b) { - var t, c = ~(b - 1); - for(var i = 0; i < 16; ++i) { - t = c & (p[i] ^ q[i]); - p[i] ^= t; - q[i] ^= t; - } -} + var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; -function gf(init) { - var i, r = new Float64Array(16); - if(init) { - for(i = 0; i < init.length; ++i) { - r[i] = init[i]; - } - } - return r; -} + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: allowDots, + allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, + arrayFormat: arrayFormat, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + commaRoundTrip: !!opts.commaRoundTrip, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + format: format, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; -function A(o, a, b) { - for(var i = 0; i < 16; ++i) { - o[i] = a[i] + b[i]; - } -} +module.exports = function (object, opts) { + var obj = object; + var options = normalizeStringifyOptions(opts); -function Z(o, a, b) { - for(var i = 0; i < 16; ++i) { - o[i] = a[i] - b[i]; - } -} + var objKeys; + var filter; -function S(o, a) { - M(o, a, a); -} + if (typeof options.filter === 'function') { + filter = options.filter; + obj = filter('', obj); + } else if (isArray(options.filter)) { + filter = options.filter; + objKeys = filter; + } -function M(o, a, b) { - var v, c, - t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0, - t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0, - t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0, - t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0, - b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7], - b8 = b[8], - b9 = b[9], - b10 = b[10], - b11 = b[11], - b12 = b[12], - b13 = b[13], - b14 = b[14], - b15 = b[15]; + var keys = []; - v = a[0]; - t0 += v * b0; - t1 += v * b1; - t2 += v * b2; - t3 += v * b3; - t4 += v * b4; - t5 += v * b5; - t6 += v * b6; - t7 += v * b7; - t8 += v * b8; - t9 += v * b9; - t10 += v * b10; - t11 += v * b11; - t12 += v * b12; - t13 += v * b13; - t14 += v * b14; - t15 += v * b15; - v = a[1]; - t1 += v * b0; - t2 += v * b1; - t3 += v * b2; - t4 += v * b3; - t5 += v * b4; - t6 += v * b5; - t7 += v * b6; - t8 += v * b7; - t9 += v * b8; - t10 += v * b9; - t11 += v * b10; - t12 += v * b11; - t13 += v * b12; - t14 += v * b13; - t15 += v * b14; - t16 += v * b15; - v = a[2]; - t2 += v * b0; - t3 += v * b1; - t4 += v * b2; - t5 += v * b3; - t6 += v * b4; - t7 += v * b5; - t8 += v * b6; - t9 += v * b7; - t10 += v * b8; - t11 += v * b9; - t12 += v * b10; - t13 += v * b11; - t14 += v * b12; - t15 += v * b13; - t16 += v * b14; - t17 += v * b15; - v = a[3]; - t3 += v * b0; - t4 += v * b1; - t5 += v * b2; - t6 += v * b3; - t7 += v * b4; - t8 += v * b5; - t9 += v * b6; - t10 += v * b7; - t11 += v * b8; - t12 += v * b9; - t13 += v * b10; - t14 += v * b11; - t15 += v * b12; - t16 += v * b13; - t17 += v * b14; - t18 += v * b15; - v = a[4]; - t4 += v * b0; - t5 += v * b1; - t6 += v * b2; - t7 += v * b3; - t8 += v * b4; - t9 += v * b5; - t10 += v * b6; - t11 += v * b7; - t12 += v * b8; - t13 += v * b9; - t14 += v * b10; - t15 += v * b11; - t16 += v * b12; - t17 += v * b13; - t18 += v * b14; - t19 += v * b15; - v = a[5]; - t5 += v * b0; - t6 += v * b1; - t7 += v * b2; - t8 += v * b3; - t9 += v * b4; - t10 += v * b5; - t11 += v * b6; - t12 += v * b7; - t13 += v * b8; - t14 += v * b9; - t15 += v * b10; - t16 += v * b11; - t17 += v * b12; - t18 += v * b13; - t19 += v * b14; - t20 += v * b15; - v = a[6]; - t6 += v * b0; - t7 += v * b1; - t8 += v * b2; - t9 += v * b3; - t10 += v * b4; - t11 += v * b5; - t12 += v * b6; - t13 += v * b7; - t14 += v * b8; - t15 += v * b9; - t16 += v * b10; - t17 += v * b11; - t18 += v * b12; - t19 += v * b13; - t20 += v * b14; - t21 += v * b15; - v = a[7]; - t7 += v * b0; - t8 += v * b1; - t9 += v * b2; - t10 += v * b3; - t11 += v * b4; - t12 += v * b5; - t13 += v * b6; - t14 += v * b7; - t15 += v * b8; - t16 += v * b9; - t17 += v * b10; - t18 += v * b11; - t19 += v * b12; - t20 += v * b13; - t21 += v * b14; - t22 += v * b15; - v = a[8]; - t8 += v * b0; - t9 += v * b1; - t10 += v * b2; - t11 += v * b3; - t12 += v * b4; - t13 += v * b5; - t14 += v * b6; - t15 += v * b7; - t16 += v * b8; - t17 += v * b9; - t18 += v * b10; - t19 += v * b11; - t20 += v * b12; - t21 += v * b13; - t22 += v * b14; - t23 += v * b15; - v = a[9]; - t9 += v * b0; - t10 += v * b1; - t11 += v * b2; - t12 += v * b3; - t13 += v * b4; - t14 += v * b5; - t15 += v * b6; - t16 += v * b7; - t17 += v * b8; - t18 += v * b9; - t19 += v * b10; - t20 += v * b11; - t21 += v * b12; - t22 += v * b13; - t23 += v * b14; - t24 += v * b15; - v = a[10]; - t10 += v * b0; - t11 += v * b1; - t12 += v * b2; - t13 += v * b3; - t14 += v * b4; - t15 += v * b5; - t16 += v * b6; - t17 += v * b7; - t18 += v * b8; - t19 += v * b9; - t20 += v * b10; - t21 += v * b11; - t22 += v * b12; - t23 += v * b13; - t24 += v * b14; - t25 += v * b15; - v = a[11]; - t11 += v * b0; - t12 += v * b1; - t13 += v * b2; - t14 += v * b3; - t15 += v * b4; - t16 += v * b5; - t17 += v * b6; - t18 += v * b7; - t19 += v * b8; - t20 += v * b9; - t21 += v * b10; - t22 += v * b11; - t23 += v * b12; - t24 += v * b13; - t25 += v * b14; - t26 += v * b15; - v = a[12]; - t12 += v * b0; - t13 += v * b1; - t14 += v * b2; - t15 += v * b3; - t16 += v * b4; - t17 += v * b5; - t18 += v * b6; - t19 += v * b7; - t20 += v * b8; - t21 += v * b9; - t22 += v * b10; - t23 += v * b11; - t24 += v * b12; - t25 += v * b13; - t26 += v * b14; - t27 += v * b15; - v = a[13]; - t13 += v * b0; - t14 += v * b1; - t15 += v * b2; - t16 += v * b3; - t17 += v * b4; - t18 += v * b5; - t19 += v * b6; - t20 += v * b7; - t21 += v * b8; - t22 += v * b9; - t23 += v * b10; - t24 += v * b11; - t25 += v * b12; - t26 += v * b13; - t27 += v * b14; - t28 += v * b15; - v = a[14]; - t14 += v * b0; - t15 += v * b1; - t16 += v * b2; - t17 += v * b3; - t18 += v * b4; - t19 += v * b5; - t20 += v * b6; - t21 += v * b7; - t22 += v * b8; - t23 += v * b9; - t24 += v * b10; - t25 += v * b11; - t26 += v * b12; - t27 += v * b13; - t28 += v * b14; - t29 += v * b15; - v = a[15]; - t15 += v * b0; - t16 += v * b1; - t17 += v * b2; - t18 += v * b3; - t19 += v * b4; - t20 += v * b5; - t21 += v * b6; - t22 += v * b7; - t23 += v * b8; - t24 += v * b9; - t25 += v * b10; - t26 += v * b11; - t27 += v * b12; - t28 += v * b13; - t29 += v * b14; - t30 += v * b15; + if (typeof obj !== 'object' || obj === null) { + return ''; + } - t0 += 38 * t16; - t1 += 38 * t17; - t2 += 38 * t18; - t3 += 38 * t19; - t4 += 38 * t20; - t5 += 38 * t21; - t6 += 38 * t22; - t7 += 38 * t23; - t8 += 38 * t24; - t9 += 38 * t25; - t10 += 38 * t26; - t11 += 38 * t27; - t12 += 38 * t28; - t13 += 38 * t29; - t14 += 38 * t30; - // t15 left as is + var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat]; + var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip; - // first car - c = 1; - v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; - v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; - v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; - v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; - v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; - v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; - v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; - v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; - v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; - v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; - v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; - v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; - v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; - v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; - v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; - v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; - t0 += c-1 + 37 * (c-1); + if (!objKeys) { + objKeys = Object.keys(obj); + } - // second car - c = 1; - v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; - v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; - v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; - v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; - v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; - v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; - v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; - v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; - v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; - v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; - v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; - v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; - v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; - v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; - v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; - v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; - t0 += c-1 + 37 * (c-1); + if (options.sort) { + objKeys.sort(options.sort); + } - o[ 0] = t0; - o[ 1] = t1; - o[ 2] = t2; - o[ 3] = t3; - o[ 4] = t4; - o[ 5] = t5; - o[ 6] = t6; - o[ 7] = t7; - o[ 8] = t8; - o[ 9] = t9; - o[10] = t10; - o[11] = t11; - o[12] = t12; - o[13] = t13; - o[14] = t14; - o[15] = t15; -} + var sideChannel = getSideChannel(); + for (var i = 0; i < objKeys.length; ++i) { + var key = objKeys[i]; + var value = obj[key]; + if (options.skipNulls && value === null) { + continue; + } + pushToArray(keys, stringify( + value, + key, + generateArrayPrefix, + commaRoundTrip, + options.allowEmptyArrays, + options.strictNullHandling, + options.skipNulls, + options.encodeDotInKeys, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.format, + options.formatter, + options.encodeValuesOnly, + options.charset, + sideChannel + )); + } -/***/ }), + var joined = keys.join(options.delimiter); + var prefix = options.addQueryPrefix === true ? '?' : ''; -/***/ 46588: -/***/ ((module) => { + if (options.charsetSentinel) { + if (options.charset === 'iso-8859-1') { + // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark + prefix += 'utf8=%26%2310003%3B&'; + } else { + // encodeURIComponent('✓') + prefix += 'utf8=%E2%9C%93&'; + } + } -/** - * Node.js module for Forge. - * - * @author Dave Longley - * - * Copyright 2011-2016 Digital Bazaar, Inc. - */ -module.exports = { - // default options - options: { - usePureJavaScript: false - } + return joined.length > 0 ? prefix + joined : ''; }; /***/ }), -/***/ 41994: +/***/ 27780: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Hash-based Message Authentication Code implementation. Requires a message - * digest object that can be obtained, for example, from forge.md.sha1 or - * forge.md.md5. - * - * @author Dave Longley - * - * Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved. - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(70952); -__nccwpck_require__(21720); +"use strict"; -/* HMAC API */ -var hmac = module.exports = forge.hmac = forge.hmac || {}; -/** - * Creates an HMAC object that uses the given message digest object. - * - * @return an HMAC object. - */ -hmac.create = function() { - // the hmac key to use - var _key = null; +var formats = __nccwpck_require__(13809); +var getSideChannel = __nccwpck_require__(37260); - // the message digest to use - var _md = null; +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; - // the inner padding - var _ipadding = null; +// Track objects created from arrayLimit overflow using side-channel +// Stores the current max numeric index for O(1) lookup +var overflowChannel = getSideChannel(); - // the outer padding - var _opadding = null; +var markOverflow = function markOverflow(obj, maxIndex) { + overflowChannel.set(obj, maxIndex); + return obj; +}; - // hmac context - var ctx = {}; +var isOverflow = function isOverflow(obj) { + return overflowChannel.has(obj); +}; - /** - * Starts or restarts the HMAC with the given key and message digest. - * - * @param md the message digest to use, null to reuse the previous one, - * a string to use builtin 'sha1', 'md5', 'sha256'. - * @param key the key to use as a string, array of bytes, byte buffer, - * or null to reuse the previous key. - */ - ctx.start = function(md, key) { - if(md !== null) { - if(typeof md === 'string') { - // create builtin message digest - md = md.toLowerCase(); - if(md in forge.md.algorithms) { - _md = forge.md.algorithms[md].create(); - } else { - throw new Error('Unknown hash algorithm "' + md + '"'); +var getMaxIndex = function getMaxIndex(obj) { + return overflowChannel.get(obj); +}; + +var setMaxIndex = function setMaxIndex(obj, maxIndex) { + overflowChannel.set(obj, maxIndex); +}; + +var hexTable = (function () { + var array = []; + for (var i = 0; i < 256; ++i) { + array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase(); + } + + return array; +}()); + +var compactQueue = function compactQueue(queue) { + while (queue.length > 1) { + var item = queue.pop(); + var obj = item.obj[item.prop]; + + if (isArray(obj)) { + var compacted = []; + + for (var j = 0; j < obj.length; ++j) { + if (typeof obj[j] !== 'undefined') { + compacted[compacted.length] = obj[j]; + } + } + + item.obj[item.prop] = compacted; } - } else { - // store message digest - _md = md; - } } +}; - if(key === null) { - // reuse previous key - key = _key; - } else { - if(typeof key === 'string') { - // convert string into byte buffer - key = forge.util.createBuffer(key); - } else if(forge.util.isArray(key)) { - // convert byte array into byte buffer - var tmp = key; - key = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - key.putByte(tmp[i]); +var arrayToObject = function arrayToObject(source, options) { + var obj = options && options.plainObjects ? { __proto__: null } : {}; + for (var i = 0; i < source.length; ++i) { + if (typeof source[i] !== 'undefined') { + obj[i] = source[i]; } - } + } - // if key is longer than blocksize, hash it - var keylen = key.length(); - if(keylen > _md.blockLength) { - _md.start(); - _md.update(key.bytes()); - key = _md.digest(); - } + return obj; +}; - // mix key into inner and outer padding - // ipadding = [0x36 * blocksize] ^ key - // opadding = [0x5C * blocksize] ^ key - _ipadding = forge.util.createBuffer(); - _opadding = forge.util.createBuffer(); - keylen = key.length(); - for(var i = 0; i < keylen; ++i) { - var tmp = key.at(i); - _ipadding.putByte(0x36 ^ tmp); - _opadding.putByte(0x5C ^ tmp); - } +var merge = function merge(target, source, options) { + /* eslint no-param-reassign: 0 */ + if (!source) { + return target; + } - // if key is shorter than blocksize, add additional padding - if(keylen < _md.blockLength) { - var tmp = _md.blockLength - keylen; - for(var i = 0; i < tmp; ++i) { - _ipadding.putByte(0x36); - _opadding.putByte(0x5C); + if (typeof source !== 'object' && typeof source !== 'function') { + if (isArray(target)) { + var nextIndex = target.length; + if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) { + return markOverflow(arrayToObject(target.concat(source), options), nextIndex); + } + target[nextIndex] = source; + } else if (target && typeof target === 'object') { + if (isOverflow(target)) { + // Add at next numeric index for overflow objects + var newIndex = getMaxIndex(target) + 1; + target[newIndex] = source; + setMaxIndex(target, newIndex); + } else if (options && options.strictMerge) { + return [target, source]; + } else if ( + (options && (options.plainObjects || options.allowPrototypes)) + || !has.call(Object.prototype, source) + ) { + target[source] = true; + } + } else { + return [target, source]; } - } - _key = key; - _ipadding = _ipadding.bytes(); - _opadding = _opadding.bytes(); - } - // digest is done like so: hash(opadding | hash(ipadding | message)) + return target; + } - // prepare to do inner hash - // hash(ipadding | message) - _md.start(); - _md.update(_ipadding); - }; + if (!target || typeof target !== 'object') { + if (isOverflow(source)) { + // Create new object with target at 0, source values shifted by 1 + var sourceKeys = Object.keys(source); + var result = options && options.plainObjects + ? { __proto__: null, 0: target } + : { 0: target }; + for (var m = 0; m < sourceKeys.length; m++) { + var oldKey = parseInt(sourceKeys[m], 10); + result[oldKey + 1] = source[sourceKeys[m]]; + } + return markOverflow(result, getMaxIndex(source) + 1); + } + var combined = [target].concat(source); + if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) { + return markOverflow(arrayToObject(combined, options), combined.length - 1); + } + return combined; + } - /** - * Updates the HMAC with the given message bytes. - * - * @param bytes the bytes to update with. - */ - ctx.update = function(bytes) { - _md.update(bytes); - }; + var mergeTarget = target; + if (isArray(target) && !isArray(source)) { + mergeTarget = arrayToObject(target, options); + } - /** - * Produces the Message Authentication Code (MAC). - * - * @return a byte buffer containing the digest value. - */ - ctx.getMac = function() { - // digest is done like so: hash(opadding | hash(ipadding | message)) - // here we do the outer hashing - var inner = _md.digest().bytes(); - _md.start(); - _md.update(_opadding); - _md.update(inner); - return _md.digest(); - }; - // alias for getMac - ctx.digest = ctx.getMac; + if (isArray(target) && isArray(source)) { + source.forEach(function (item, i) { + if (has.call(target, i)) { + var targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); + } else { + target[target.length] = item; + } + } else { + target[i] = item; + } + }); + return target; + } - return ctx; -}; + return Object.keys(source).reduce(function (acc, key) { + var value = source[key]; + if (has.call(acc, key)) { + acc[key] = merge(acc[key], value, options); + } else { + acc[key] = value; + } -/***/ }), + if (isOverflow(source) && !isOverflow(acc)) { + markOverflow(acc, getMaxIndex(source)); + } + if (isOverflow(acc)) { + var keyNum = parseInt(key, 10); + if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) { + setMaxIndex(acc, keyNum); + } + } -/***/ 20828: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return acc; + }, mergeTarget); +}; -/** - * Node.js module for Forge. - * - * @author Dave Longley - * - * Copyright 2011-2016 Digital Bazaar, Inc. - */ -module.exports = __nccwpck_require__(46588); -__nccwpck_require__(24658); -__nccwpck_require__(20353); -__nccwpck_require__(964); -__nccwpck_require__(80723); -__nccwpck_require__(3261); -__nccwpck_require__(71575); -__nccwpck_require__(41994); -__nccwpck_require__(72101); -__nccwpck_require__(36018); -__nccwpck_require__(24061); -__nccwpck_require__(50870); -__nccwpck_require__(45127); -__nccwpck_require__(88217); -__nccwpck_require__(94611); -__nccwpck_require__(53230); -__nccwpck_require__(99871); -__nccwpck_require__(74745); -__nccwpck_require__(5619); -__nccwpck_require__(33882); -__nccwpck_require__(74206); -__nccwpck_require__(84856); -__nccwpck_require__(40848); -__nccwpck_require__(60572); -__nccwpck_require__(44151); -__nccwpck_require__(21720); - - -/***/ }), - -/***/ 8695: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var assign = function assignSingleSource(target, source) { + return Object.keys(source).reduce(function (acc, key) { + acc[key] = source[key]; + return acc; + }, target); +}; -// Copyright (c) 2005 Tom Wu -// All Rights Reserved. -// See "LICENSE" for details. +var decode = function (str, defaultDecoder, charset) { + var strWithoutPlus = str.replace(/\+/g, ' '); + if (charset === 'iso-8859-1') { + // unescape never throws, no try...catch needed: + return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + } + // utf-8 + try { + return decodeURIComponent(strWithoutPlus); + } catch (e) { + return strWithoutPlus; + } +}; -// Basic JavaScript BN library - subset useful for RSA encryption. +var limit = 1024; -/* -Licensing (LICENSE) -------------------- +/* eslint operator-linebreak: [2, "before"] */ -This software is covered under the following copyright: -*/ -/* - * Copyright (c) 2003-2005 Tom Wu - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, - * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY - * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - * - * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, - * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER - * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF - * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT - * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * In addition, the following condition applies: - * - * All redistributions must retain an intact copy of this copyright notice - * and disclaimer. - */ -/* -Address all questions regarding this license to: +var encode = function encode(str, defaultEncoder, charset, kind, format) { + // This code was originally written by Brian White (mscdex) for the io.js core querystring library. + // It has been adapted here for stricter adherence to RFC 3986 + if (str.length === 0) { + return str; + } - Tom Wu - tjw@cs.Stanford.EDU -*/ -var forge = __nccwpck_require__(46588); + var string = str; + if (typeof str === 'symbol') { + string = Symbol.prototype.toString.call(str); + } else if (typeof str !== 'string') { + string = String(str); + } -module.exports = forge.jsbn = forge.jsbn || {}; + if (charset === 'iso-8859-1') { + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + } -// Bits per digit -var dbits; + var out = ''; + for (var j = 0; j < string.length; j += limit) { + var segment = string.length >= limit ? string.slice(j, j + limit) : string; + var arr = []; + + for (var i = 0; i < segment.length; ++i) { + var c = segment.charCodeAt(i); + if ( + c === 0x2D // - + || c === 0x2E // . + || c === 0x5F // _ + || c === 0x7E // ~ + || (c >= 0x30 && c <= 0x39) // 0-9 + || (c >= 0x41 && c <= 0x5A) // a-z + || (c >= 0x61 && c <= 0x7A) // A-Z + || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) + ) { + arr[arr.length] = segment.charAt(i); + continue; + } -// JavaScript engine analysis -var canary = 0xdeadbeefcafe; -var j_lm = ((canary&0xffffff)==0xefcafe); + if (c < 0x80) { + arr[arr.length] = hexTable[c]; + continue; + } -// (public) Constructor -function BigInteger(a,b,c) { - this.data = []; - 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); -} -forge.jsbn.BigInteger = BigInteger; + if (c < 0x800) { + arr[arr.length] = hexTable[0xC0 | (c >> 6)] + + hexTable[0x80 | (c & 0x3F)]; + continue; + } -// return new, unset BigInteger -function nbi() { return new BigInteger(null); } + if (c < 0xD800 || c >= 0xE000) { + arr[arr.length] = hexTable[0xE0 | (c >> 12)] + + hexTable[0x80 | ((c >> 6) & 0x3F)] + + hexTable[0x80 | (c & 0x3F)]; + continue; + } -// am: Compute w_j += (x*this_i), propagate carries, -// c is initial carry, returns final carry. -// c < 3*dvalue, x < 2*dvalue, this_i < dvalue -// We need to select the fastest one that works in this environment. + i += 1; + c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF)); -// 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.data[i++]+w.data[j]+c; - c = Math.floor(v/0x4000000); - w.data[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.data[i]&0x7fff; - var h = this.data[i++]>>15; - var m = xh*l+h*xl; - l = xl*l+((m&0x7fff)<<15)+w.data[j]+(c&0x3fffffff); - c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); - w.data[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.data[i]&0x3fff; - var h = this.data[i++]>>14; - var m = xh*l+h*xl; - l = xl*l+((m&0x3fff)<<14)+w.data[j]+c; - c = (l>>28)+(m>>14)+xh*h; - w.data[j++] = l&0xfffffff; - } - return c; -} + arr[arr.length] = hexTable[0xF0 | (c >> 18)] + + hexTable[0x80 | ((c >> 12) & 0x3F)] + + hexTable[0x80 | ((c >> 6) & 0x3F)] + + hexTable[0x80 | (c & 0x3F)]; + } -// node.js (no browser) -if(typeof(navigator) === 'undefined') -{ - BigInteger.prototype.am = am3; - dbits = 28; -} else if(j_lm && (navigator.appName == "Microsoft Internet Explorer")) { - BigInteger.prototype.am = am2; - dbits = 30; -} else if(j_lm && (navigator.appName != "Netscape")) { - BigInteger.prototype.am = am1; - dbits = 26; -} else { // Mozilla/Netscape seems to prefer am3 - BigInteger.prototype.am = am3; - dbits = 28; -} + out += arr.join(''); + } -BigInteger.prototype.DB = dbits; -BigInteger.prototype.DM = ((1<= 0; --i) r.data[i] = this.data[i]; - r.t = this.t; - r.s = this.s; -} + compactQueue(queue); -// (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.data[0] = x; - else if(x < -1) this.data[0] = x+this.DV; - else this.t = 0; -} + return value; +}; -// return bigint initialized to value -function nbv(i) { var r = nbi(); r.fromInt(i); return r; } +var isRegExp = function isRegExp(obj) { + return Object.prototype.toString.call(obj) === '[object RegExp]'; +}; -// (protected) set from string and radix -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; } - 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; - continue; +var isBuffer = function isBuffer(obj) { + if (!obj || typeof obj !== 'object') { + return false; } - mi = false; - if(sh == 0) - this.data[this.t++] = x; - else if(sh+k > this.DB) { - this.data[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); - } else - this.data[this.t-1] |= x<= this.DB) sh -= this.DB; - } - if(k == 8 && (s[0]&0x80) != 0) { - this.s = -1; - if(sh > 0) this.data[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this.data[this.t-1] == c) --this.t; -} + return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); +}; -// (public) return string representation in given radix -function bnToString(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; - else return this.toRadix(b); - var km = (1< 0) { - if(p < this.DB && (d = this.data[i]>>p) > 0) { m = true; r = int2char(d); } - while(i >= 0) { - if(p < k) { - d = (this.data[i]&((1<>(p+=this.DB-k); - } else { - d = (this.data[i]>>(p-=k))&km; - if(p <= 0) { p += this.DB; --i; } - } - if(d > 0) m = true; - if(m) r += int2char(d); +var combine = function combine(a, b, arrayLimit, plainObjects) { + // If 'a' is already an overflow object, add to it + if (isOverflow(a)) { + var newIndex = getMaxIndex(a) + 1; + a[newIndex] = b; + setMaxIndex(a, newIndex); + return a; } - } - return m?r:"0"; -} -// (public) -this -function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } + var result = [].concat(a, b); + if (result.length > arrayLimit) { + return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1); + } + return result; +}; -// (public) |this| -function bnAbs() { return (this.s<0)?this.negate():this; } +var maybeMap = function maybeMap(val, fn) { + if (isArray(val)) { + var mapped = []; + for (var i = 0; i < val.length; i += 1) { + mapped[mapped.length] = fn(val[i]); + } + return mapped; + } + return fn(val); +}; -// (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 i = this.t; - r = i-a.t; - if(r != 0) return (this.s<0)?-r:r; - while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r; - return 0; -} +module.exports = { + arrayToObject: arrayToObject, + assign: assign, + combine: combine, + compact: compact, + decode: decode, + encode: encode, + isBuffer: isBuffer, + isOverflow: isOverflow, + isRegExp: isRegExp, + markOverflow: markOverflow, + maybeMap: maybeMap, + merge: merge +}; -// 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; } - 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.data[this.t-1]^(this.s&this.DM)); -} +/***/ }), -// (protected) r = this << n*DB -function bnpDLShiftTo(n,r) { - var i; - for(i = this.t-1; i >= 0; --i) r.data[i+n] = this.data[i]; - for(i = n-1; i >= 0; --i) r.data[i] = 0; - r.t = this.t+n; - r.s = this.s; -} +/***/ 81573: +/***/ ((module) => { -// (protected) r = this >> n*DB -function bnpDRShiftTo(n,r) { - for(var i = n; i < this.t; ++i) r.data[i-n] = this.data[i]; - r.t = Math.max(this.t-n,0); - r.s = this.s; -} +"use strict"; -// (protected) r = this << n -function bnpLShiftTo(n,r) { - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<= 0; --i) { - r.data[i+ds+1] = (this.data[i]>>cbs)|c; - c = (this.data[i]&bm)<= 0; --i) r.data[i] = 0; - r.data[ds] = c; - r.t = this.t+ds+1; - r.s = this.s; - r.clamp(); -} -// (protected) r = this >> n -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.data[i-ds-1] |= (this.data[i]&bm)<>bs; - } - if(bs > 0) r.data[this.t-ds-1] |= (this.s&bm)<>= this.DB; - } - if(a.t < this.t) { - c -= a.s; - while(i < this.t) { - c += this.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; - } else { - c += this.s; - while(i < a.t) { - c -= a.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c -= a.s; +function createErrorType(code, message, Base) { + if (!Base) { + Base = Error } - r.s = (c<0)?-1:0; - if(c < -1) r.data[i++] = this.DV+c; - else if(c > 0) r.data[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(); - var i = x.t; - r.t = i+y.t; - while(--i >= 0) r.data[i] = 0; - for(i = 0; i < y.t; ++i) r.data[i+x.t] = x.am(0,y.data[i],r,i,0,x.t); - r.s = 0; - r.clamp(); - if(this.s != a.s) BigInteger.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.data[i] = 0; - for(i = 0; i < x.t-1; ++i) { - var c = x.am(i,x.data[i],r,2*i,0,1); - if((r.data[i+x.t]+=x.am(i+1,2*x.data[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { - r.data[i+x.t] -= x.DV; - r.data[i+x.t+1] = 1; + function getMessage (arg1, arg2, arg3) { + if (typeof message === 'string') { + return message + } else { + return message(arg1, arg2, arg3) } } - if(r.t > 0) r.data[r.t-1] += x.am(i,x.data[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) { - var pm = m.abs(); - 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); - return; - } - if(r == null) r = nbi(); - var y = nbi(), ts = this.s, ms = m.s; - var nsh = this.DB-nbits(pm.data[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.data[ys-1]; - if(y0 == 0) return; - var yt = y0*(1<1)?y.data[ys-2]>>this.F2:0); - var d1 = this.FV/yt, d2 = (1<= 0) { - r.data[r.t++] = 1; - r.subTo(t,r); - } - BigInteger.ONE.dlShiftTo(ys,t); - t.subTo(y,y); // "negative" y so we can replace sub with am later - while(y.t < ys) y.data[y.t++] = 0; - while(--j >= 0) { - // Estimate quotient digit - var qd = (r.data[--i]==y0)?this.DM:Math.floor(r.data[i]*d1+(r.data[i-1]+e)*d2); - if((r.data[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out - y.dlShiftTo(j,t); - r.subTo(t,r); - while(r.data[i] < --qd) r.subTo(t,r); + class NodeError extends Base { + constructor (arg1, arg2, arg3) { + super(getMessage(arg1, arg2, arg3)); } } - if(q != null) { - r.drShiftTo(ys,q); - if(ts != ms) BigInteger.ZERO.subTo(q,q); - } - r.t = ys; - r.clamp(); - if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder - if(ts < 0) BigInteger.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(BigInteger.ZERO) > 0) a.subTo(r,r); - return r; -} - -// Modular reduction using "classic" algorithm -function Classic(m) { this.m = m; } -function cConvert(x) { - 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); } -Classic.prototype.convert = cConvert; -Classic.prototype.revert = cRevert; -Classic.prototype.reduce = cReduce; -Classic.prototype.mulTo = cMulTo; -Classic.prototype.sqrTo = cSqrTo; + NodeError.prototype.name = Base.name; + NodeError.prototype.code = code; -// (protected) return "-1/this % 2^DB"; useful for Mont. reduction -// justification: -// xy == 1 (mod m) -// xy = 1+km -// xy(2-xy) = (1+km)(1-km) -// x[y(2-xy)] = 1-k^2m^2 -// x[y(2-xy)] == 1 (mod m^2) -// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 -// 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; - var x = this.data[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 - // 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 - // we really want the negative inverse, and -DV < y < DV - return (y>0)?this.DV-y:-y; + codes[code] = NodeError; } -// 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; +// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js +function oneOf(expected, thing) { + if (Array.isArray(expected)) { + const len = expected.length; + expected = expected.map((i) => String(i)); + if (len > 2) { + return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` + + expected[len - 1]; + } else if (len === 2) { + return `one of ${thing} ${expected[0]} or ${expected[1]}`; + } else { + return `of ${thing} ${expected[0]}`; + } + } else { + return `of ${thing} ${String(expected)}`; + } } -// 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(BigInteger.ZERO) > 0) this.m.subTo(r,r); - return r; +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith +function startsWith(str, search, pos) { + return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; } -// x/R mod m -function montRevert(x) { - var r = nbi(); - x.copyTo(r); - this.reduce(r); - return r; +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith +function endsWith(str, search, this_len) { + if (this_len === undefined || this_len > str.length) { + this_len = str.length; + } + return str.substring(this_len - search.length, this_len) === search; } -// x = x/R mod m (HAC 14.32) -function montReduce(x) { - while(x.t <= this.mt2) // pad x so am has enough room later - x.data[x.t++] = 0; - for(var i = 0; i < this.m.t; ++i) { - // faster way of calculating u0 = x.data[i]*mp mod DV - var j = x.data[i]&0x7fff; - var u0 = (j*this.mpl+(((j*this.mph+(x.data[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.data[j] += this.m.am(0,u0,x,i,0,this.m.t); - // propagate carry - while(x.data[j] >= x.DV) { x.data[j] -= x.DV; x.data[++j]++; } +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes +function includes(str, search, start) { + if (typeof start !== 'number') { + start = 0; } - x.clamp(); - 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); } - -// r = "xy/R mod m"; x,y != r -function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - -Montgomery.prototype.convert = montConvert; -Montgomery.prototype.revert = montRevert; -Montgomery.prototype.reduce = montReduce; -Montgomery.prototype.mulTo = montMulTo; -Montgomery.prototype.sqrTo = montSqrTo; - -// (protected) true iff this is even -function bnpIsEven() { return ((this.t>0)?(this.data[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 BigInteger.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; } + if (start + search.length > str.length) { + return false; + } else { + return str.indexOf(search, start) !== -1; } - return z.revert(r); -} - -// (public) this^e % m, 0 <= e < 2^32 -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); } -// protected -BigInteger.prototype.copyTo = bnpCopyTo; -BigInteger.prototype.fromInt = bnpFromInt; -BigInteger.prototype.fromString = bnpFromString; -BigInteger.prototype.clamp = bnpClamp; -BigInteger.prototype.dlShiftTo = bnpDLShiftTo; -BigInteger.prototype.drShiftTo = bnpDRShiftTo; -BigInteger.prototype.lShiftTo = bnpLShiftTo; -BigInteger.prototype.rShiftTo = bnpRShiftTo; -BigInteger.prototype.subTo = bnpSubTo; -BigInteger.prototype.multiplyTo = bnpMultiplyTo; -BigInteger.prototype.squareTo = bnpSquareTo; -BigInteger.prototype.divRemTo = bnpDivRemTo; -BigInteger.prototype.invDigit = bnpInvDigit; -BigInteger.prototype.isEven = bnpIsEven; -BigInteger.prototype.exp = bnpExp; - -// public -BigInteger.prototype.toString = bnToString; -BigInteger.prototype.negate = bnNegate; -BigInteger.prototype.abs = bnAbs; -BigInteger.prototype.compareTo = bnCompareTo; -BigInteger.prototype.bitLength = bnBitLength; -BigInteger.prototype.mod = bnMod; -BigInteger.prototype.modPowInt = bnModPowInt; +createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { + return 'The value "' + value + '" is invalid for option "' + name + '"' +}, TypeError); +createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { + // determiner: 'must be' or 'must not be' + let determiner; + if (typeof expected === 'string' && startsWith(expected, 'not ')) { + determiner = 'must not be'; + expected = expected.replace(/^not /, ''); + } else { + determiner = 'must be'; + } -// "constants" -BigInteger.ZERO = nbv(0); -BigInteger.ONE = nbv(1); + let msg; + if (endsWith(name, ' argument')) { + // For cases like 'first argument' + msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`; + } else { + const type = includes(name, '.') ? 'property' : 'argument'; + msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, 'type')}`; + } -// jsbn2 lib + msg += `. Received type ${typeof actual}`; + return msg; +}, TypeError); +createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); +createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { + return 'The ' + name + ' method is not implemented' +}); +createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); +createErrorType('ERR_STREAM_DESTROYED', function (name) { + return 'Cannot call ' + name + ' after a stream was destroyed'; +}); +createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); +createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); +createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); +createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); +createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { + return 'Unknown encoding: ' + arg +}, TypeError); +createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); -//Copyright (c) 2005-2009 Tom Wu -//All Rights Reserved. -//See "LICENSE" for details (See jsbn.js for LICENSE). +module.exports.F = codes; -//Extended JavaScript BN functions, required for RSA private ops. -//Version 1.1: new BigInteger("0", 10) returns "proper" zero +/***/ }), -//(public) -function bnClone() { var r = nbi(); this.copyTo(r); return r; } +/***/ 79810: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -//(public) return value as integer -function bnIntValue() { -if(this.s < 0) { - if(this.t == 1) return this.data[0]-this.DV; - else if(this.t == 0) return -1; -} else if(this.t == 1) return this.data[0]; -else if(this.t == 0) return 0; -// assumes 16 < DB < 32 -return ((this.data[1]&((1<<(32-this.DB))-1))<>24; } +// a duplex stream is just a stream that is both readable and writable. +// Since JS doesn't have multiple prototypal inheritance, this class +// prototypally inherits from Readable, and then parasitically from +// Writable. -//(public) return value as short (assumes DB>=16) -function bnShortValue() { return (this.t==0)?this.s:(this.data[0]<<16)>>16; } -//(protected) return x s.t. r^x < DV -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.data[0] <= 0)) return 0; -else return 1; -} +/**/ +var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) keys.push(key); + return keys; +}; +/**/ -//(protected) convert to radix string -function bnpToRadix(b) { -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); +module.exports = Duplex; +var Readable = __nccwpck_require__(78112); +var Writable = __nccwpck_require__(9792); +__nccwpck_require__(42109)(Duplex, Readable); +{ + // Allow the keys array to be GC'ed. + var keys = objectKeys(Writable.prototype); + for (var v = 0; v < keys.length; v++) { + var method = keys[v]; + if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; + } } -return z.intValue().toString(b) + r; +function Duplex(options) { + if (!(this instanceof Duplex)) return new Duplex(options); + Readable.call(this, options); + Writable.call(this, options); + this.allowHalfOpen = true; + if (options) { + if (options.readable === false) this.readable = false; + if (options.writable === false) this.writable = false; + if (options.allowHalfOpen === false) { + this.allowHalfOpen = false; + this.once('end', onend); + } + } } +Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.highWaterMark; + } +}); +Object.defineProperty(Duplex.prototype, 'writableBuffer', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState && this._writableState.getBuffer(); + } +}); +Object.defineProperty(Duplex.prototype, 'writableLength', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.length; + } +}); -//(protected) convert from radix string -function bnpFromRadix(s,b) { -this.fromInt(0); -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; - continue; - } - w = b*w+x; - if(++j >= cs) { - this.dMultiply(d); - this.dAddOffset(w,0); - j = 0; - w = 0; - } -} -if(j > 0) { - this.dMultiply(Math.pow(b,j)); - this.dAddOffset(w,0); -} -if(mi) BigInteger.ZERO.subTo(this,this); -} +// the no-half-open enforcer +function onend() { + // If the writable side ended, then we're ok. + if (this._writableState.ended) return; -//(protected) alternate constructor -function bnpFromNumber(a,b,c) { -if("number" == typeof b) { - // new BigInteger(int,int,RNG) - if(a < 2) this.fromInt(1); - else { - this.fromNumber(a,c); - if(!this.testBit(a-1)) // force MSB set - this.bitwiseTo(BigInteger.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(BigInteger.ONE.shiftLeft(a-1),this); - } - } -} else { - // new BigInteger(int,RNG) - var x = new Array(), t = a&7; - x.length = (a>>3)+1; - b.nextBytes(x); - if(t > 0) x[0] &= ((1< 0) { - if(p < this.DB && (d = this.data[i]>>p) != (this.s&this.DM)>>p) - r[k++] = d|(this.s<<(this.DB-p)); - while(i >= 0) { - if(p < 8) { - d = (this.data[i]&((1<>(p+=this.DB-8); - } else { - d = (this.data[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; - } -} -return r; -} + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + this._writableState.destroyed = value; + } +}); -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.data[i] = op(this.data[i],a.data[i]); -if(a.t < this.t) { - f = a.s&this.DM; - for(i = m; i < this.t; ++i) r.data[i] = op(this.data[i],f); - r.t = this.t; -} else { - f = this.s&this.DM; - for(i = m; i < a.t; ++i) r.data[i] = op(f,a.data[i]); - r.t = a.t; -} -r.s = op(this.s,a.s); -r.clamp(); -} +/***/ 39748: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -//(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; } +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a passthrough stream. +// basically just the most minimal sort of Transform stream. +// Every written chunk gets output as-is. + + + +module.exports = PassThrough; +var Transform = __nccwpck_require__(49230); +__nccwpck_require__(42109)(PassThrough, Transform); +function PassThrough(options) { + if (!(this instanceof PassThrough)) return new PassThrough(options); + Transform.call(this, options); +} +PassThrough.prototype._transform = function (chunk, encoding, cb) { + cb(null, chunk); +}; -//(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; } +/***/ }), -//(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; } +/***/ 78112: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -//(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; } +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. -//(public) ~this -function bnNot() { -var r = nbi(); -for(var i = 0; i < this.t; ++i) r.data[i] = this.DM&~this.data[i]; -r.t = this.t; -r.s = ~this.s; -return r; -} -//(public) this << n -function bnShiftLeft(n) { -var r = nbi(); -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); -return r; -} +module.exports = Readable; -//return index of lowest 1-bit in x, x < 2^31 -function lbit(x) { -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; -return r; -} +/**/ +var Duplex; +/**/ -//(public) returns index of lowest 1-bit (or -1 if none) -function bnGetLowestSetBit() { -for(var i = 0; i < this.t; ++i) - if(this.data[i] != 0) return i*this.DB+lbit(this.data[i]); -if(this.s < 0) return this.t*this.DB; -return -1; -} +Readable.ReadableState = ReadableState; -//return number of 1 bits in x -function cbit(x) { -var r = 0; -while(x != 0) { x &= x-1; ++r; } -return r; -} +/**/ +var EE = (__nccwpck_require__(24434).EventEmitter); +var EElistenerCount = function EElistenerCount(emitter, type) { + return emitter.listeners(type).length; +}; +/**/ -//(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.data[i]^x); -return r; -} +/**/ +var Stream = __nccwpck_require__(78748); +/**/ -//(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.data[j]&(1<<(n%this.DB)))!=0); +var Buffer = (__nccwpck_require__(20181).Buffer); +var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); } - -//(protected) this op (1<>= this.DB; -} -if(a.t < this.t) { - c += a.s; - while(i < this.t) { - c += this.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; +/**/ +var debugUtil = __nccwpck_require__(39023); +var debug; +if (debugUtil && debugUtil.debuglog) { + debug = debugUtil.debuglog('stream'); } else { - c += this.s; - while(i < a.t) { - c += a.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += a.s; + debug = function debug() {}; } -r.s = (c<0)?-1:0; -if(c > 0) r.data[i++] = c; -else if(c < -1) r.data[i++] = this.DV+c; -r.t = i; -r.clamp(); +/**/ + +var BufferList = __nccwpck_require__(29269); +var destroyImpl = __nccwpck_require__(66860); +var _require = __nccwpck_require__(37687), + getHighWaterMark = _require.getHighWaterMark; +var _require$codes = (__nccwpck_require__(81573)/* .codes */ .F), + ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, + ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; + +// Lazy loaded to improve the startup performance. +var StringDecoder; +var createReadableStreamAsyncIterator; +var from; +__nccwpck_require__(42109)(Readable, Stream); +var errorOrDestroy = destroyImpl.errorOrDestroy; +var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; +function prependListener(emitter, event, fn) { + // Sadly this is not cacheable as some libraries bundle their own + // event emitter implementation with them. + if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); + + // This is a hack to make sure that our error handler is attached before any + // userland ones. NEVER DO THIS. This is here only because this code needs + // to continue to work with older versions of Node.js that do not include + // the prependListener() method. The goal is to eventually remove this hack. + if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; } +function ReadableState(options, stream, isDuplex) { + Duplex = Duplex || __nccwpck_require__(79810); + options = options || {}; -//(public) this + a -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; } - -//(public) this * a -function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } - -//(public) this / a -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; } - -//(public) [this/a,this%a] -function bnDivideAndRemainder(a) { -var q = nbi(), r = nbi(); -this.divRemTo(a,q,r); -return new Array(q,r); + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; + + // object stream flag. Used to make read(n) ignore n and to + // make all the buffer merging and length checks go away + this.objectMode = !!options.objectMode; + if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; + + // the point at which it stops calling _read() to fill the buffer + // Note: 0 is a valid value, means "don't call _read preemptively ever" + this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); + + // A linked list is used to store data chunks instead of an array because the + // linked list can remove elements from the beginning faster than + // array.shift() + this.buffer = new BufferList(); + this.length = 0; + this.pipes = null; + this.pipesCount = 0; + this.flowing = null; + this.ended = false; + this.endEmitted = false; + this.reading = false; + + // a flag to be able to tell if the event 'readable'/'data' is emitted + // immediately, or on a later tick. We set this to true at first, because + // any actions that shouldn't happen until "later" should generally also + // not happen before the first read call. + this.sync = true; + + // whenever we return null, then we set a flag to say + // that we're awaiting a 'readable' event emission. + this.needReadable = false; + this.emittedReadable = false; + this.readableListening = false; + this.resumeScheduled = false; + this.paused = true; + + // Should close be emitted on destroy. Defaults to true. + this.emitClose = options.emitClose !== false; + + // Should .destroy() be called after 'end' (and potentially 'finish') + this.autoDestroy = !!options.autoDestroy; + + // has it been destroyed + this.destroyed = false; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // the number of writers that are awaiting a drain event in .pipe()s + this.awaitDrain = 0; + + // if true, a maybeReadMore has been scheduled + this.readingMore = false; + this.decoder = null; + this.encoding = null; + if (options.encoding) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(15793)/* .StringDecoder */ .I); + this.decoder = new StringDecoder(options.encoding); + this.encoding = options.encoding; + } } +function Readable(options) { + Duplex = Duplex || __nccwpck_require__(79810); + if (!(this instanceof Readable)) return new Readable(options); -//(protected) this *= n, this >= 0, 1 < n < DV -function bnpDMultiply(n) { -this.data[this.t] = this.am(0,n-1,this,0,0,this.t); -++this.t; -this.clamp(); -} + // Checking for a Stream.Duplex instance is faster here instead of inside + // the ReadableState constructor, at least with V8 6.5 + var isDuplex = this instanceof Duplex; + this._readableState = new ReadableState(options, this, isDuplex); -//(protected) this += n << w words, this >= 0 -function bnpDAddOffset(n,w) { -if(n == 0) return; -while(this.t <= w) this.data[this.t++] = 0; -this.data[w] += n; -while(this.data[w] >= this.DV) { - this.data[w] -= this.DV; - if(++w >= this.t) this.data[this.t++] = 0; - ++this.data[w]; -} + // legacy + this.readable = true; + if (options) { + if (typeof options.read === 'function') this._read = options.read; + if (typeof options.destroy === 'function') this._destroy = options.destroy; + } + Stream.call(this); } +Object.defineProperty(Readable.prototype, 'destroyed', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + if (this._readableState === undefined) { + return false; + } + return this._readableState.destroyed; + }, + set: function set(value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._readableState) { + return; + } -//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); } + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + } +}); +Readable.prototype.destroy = destroyImpl.destroy; +Readable.prototype._undestroy = destroyImpl.undestroy; +Readable.prototype._destroy = function (err, cb) { + cb(err); +}; -NullExp.prototype.convert = nNop; -NullExp.prototype.revert = nNop; -NullExp.prototype.mulTo = nMulTo; -NullExp.prototype.sqrTo = nSqrTo; +// Manually shove something into the read() buffer. +// This returns true if the highWaterMark has not been hit yet, +// similar to how Writable.write() returns true if you should +// write() some more. +Readable.prototype.push = function (chunk, encoding) { + var state = this._readableState; + var skipChunkCheck; + if (!state.objectMode) { + if (typeof chunk === 'string') { + encoding = encoding || state.defaultEncoding; + if (encoding !== state.encoding) { + chunk = Buffer.from(chunk, encoding); + encoding = ''; + } + skipChunkCheck = true; + } + } else { + skipChunkCheck = true; + } + return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); +}; -//(public) this^e -function bnPow(e) { return this.exp(e,new NullExp()); } +// Unshift should *always* be something directly out of read() +Readable.prototype.unshift = function (chunk) { + return readableAddChunk(this, chunk, null, true, false); +}; +function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { + debug('readableAddChunk', chunk); + var state = stream._readableState; + if (chunk === null) { + state.reading = false; + onEofChunk(stream, state); + } else { + var er; + if (!skipChunkCheck) er = chunkInvalid(state, chunk); + if (er) { + errorOrDestroy(stream, er); + } else if (state.objectMode || chunk && chunk.length > 0) { + if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { + chunk = _uint8ArrayToBuffer(chunk); + } + if (addToFront) { + if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true); + } else if (state.ended) { + errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); + } else if (state.destroyed) { + return false; + } else { + state.reading = false; + if (state.decoder && !encoding) { + chunk = state.decoder.write(chunk); + if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); + } else { + addChunk(stream, state, chunk, false); + } + } + } else if (!addToFront) { + state.reading = false; + maybeReadMore(stream, state); + } + } -//(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); -r.s = 0; // assumes a,this >= 0 -r.t = i; -while(i > 0) r.data[--i] = 0; -var j; -for(j = r.t-this.t; i < j; ++i) r.data[i+this.t] = this.am(0,a.data[i],r,i,0,this.t); -for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a.data[i],r,i,0,n-i); -r.clamp(); + // We can push more data if we are below the highWaterMark. + // Also, if we have no data yet, we can stand some more bytes. + // This is to work around cases where hwm=0, such as the repl. + return !state.ended && (state.length < state.highWaterMark || state.length === 0); } +function addChunk(stream, state, chunk, addToFront) { + if (state.flowing && state.length === 0 && !state.sync) { + state.awaitDrain = 0; + stream.emit('data', chunk); + } else { + // update the buffer info. + state.length += state.objectMode ? 1 : chunk.length; + if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); + if (state.needReadable) emitReadable(stream); + } + maybeReadMore(stream, state); +} +function chunkInvalid(state, chunk) { + var er; + if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk); + } + return er; +} +Readable.prototype.isPaused = function () { + return this._readableState.flowing === false; +}; -//(protected) r = "this * a" without lower n words, n > 0 -//"this" should be the larger one if appropriate. -function bnpMultiplyUpperTo(a,n,r) { ---n; -var i = r.t = this.t+a.t-n; -r.s = 0; // assumes a,this >= 0 -while(--i >= 0) r.data[i] = 0; -for(i = Math.max(n-this.t,0); i < a.t; ++i) - r.data[this.t+i-n] = this.am(n-i,a.data[i],r,0,0,this.t+i-n); -r.clamp(); -r.drShiftTo(1,r); +// backwards compatibility. +Readable.prototype.setEncoding = function (enc) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(15793)/* .StringDecoder */ .I); + var decoder = new StringDecoder(enc); + this._readableState.decoder = decoder; + // If setEncoding(null), decoder.encoding equals utf8 + this._readableState.encoding = this._readableState.decoder.encoding; + + // Iterate over current buffer to convert already stored Buffers: + var p = this._readableState.buffer.head; + var content = ''; + while (p !== null) { + content += decoder.write(p.data); + p = p.next; + } + this._readableState.buffer.clear(); + if (content !== '') this._readableState.buffer.push(content); + this._readableState.length = content.length; + return this; +}; + +// Don't raise the hwm > 1GB +var MAX_HWM = 0x40000000; +function computeNewHighWaterMark(n) { + if (n >= MAX_HWM) { + // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE. + n = MAX_HWM; + } else { + // Get the next highest power of 2 to prevent increasing hwm excessively in + // tiny amounts + n--; + n |= n >>> 1; + n |= n >>> 2; + n |= n >>> 4; + n |= n >>> 8; + n |= n >>> 16; + n++; + } + return n; } -//Barrett modular reduction -function Barrett(m) { -// setup Barrett -this.r2 = nbi(); -this.q3 = nbi(); -BigInteger.ONE.dlShiftTo(2*m.t,this.r2); -this.mu = this.r2.divide(m); -this.m = m; +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function howMuchToRead(n, state) { + if (n <= 0 || state.length === 0 && state.ended) return 0; + if (state.objectMode) return 1; + if (n !== n) { + // Only flow one buffer at a time + if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; + } + // If we're asking for more than the current hwm, then raise the hwm. + if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); + if (n <= state.length) return n; + // Don't have enough + if (!state.ended) { + state.needReadable = true; + return 0; + } + return state.length; } -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; } +// you can override either this method, or the async _read(n) below. +Readable.prototype.read = function (n) { + debug('read', n); + n = parseInt(n, 10); + var state = this._readableState; + var nOrig = n; + if (n !== 0) state.emittedReadable = false; + + // if we're doing read(0) to trigger a readable event, but we + // already have a bunch of data in the buffer, then just trigger + // the 'readable' event and move on. + if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { + debug('read: emitReadable', state.length, state.ended); + if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); + return null; + } + n = howMuchToRead(n, state); + + // if we've ended, and we're now clear, then finish it up. + if (n === 0 && state.ended) { + if (state.length === 0) endReadable(this); + return null; + } + + // All the actual chunk generation logic needs to be + // *below* the call to _read. The reason is that in certain + // synthetic stream cases, such as passthrough streams, _read + // may be a completely synchronous operation which may change + // the state of the read buffer, providing enough data when + // before there was *not* enough. + // + // So, the steps are: + // 1. Figure out what the state of things will be after we do + // a read from the buffer. + // + // 2. If that resulting state will trigger a _read, then call _read. + // Note that this may be asynchronous, or synchronous. Yes, it is + // deeply ugly to write APIs this way, but that still doesn't mean + // that the Readable class should behave improperly, as streams are + // designed to be sync/async agnostic. + // Take note if the _read call is sync or async (ie, if the read call + // has returned yet), so that we know whether or not it's safe to emit + // 'readable' etc. + // + // 3. Actually pull the requested chunks out of the buffer and return. + + // if we need a readable event, then we need to do some reading. + var doRead = state.needReadable; + debug('need readable', doRead); + + // if we currently have less than the highWaterMark, then also read some + if (state.length === 0 || state.length - n < state.highWaterMark) { + doRead = true; + debug('length less than watermark', doRead); + } + + // however, if we've ended, then there's no point, and if we're already + // reading, then it's unnecessary. + if (state.ended || state.reading) { + doRead = false; + debug('reading or ended', doRead); + } else if (doRead) { + debug('do read'); + state.reading = true; + state.sync = true; + // if the length is currently zero, then we *need* a readable event. + if (state.length === 0) state.needReadable = true; + // call internal read method + this._read(state.highWaterMark); + state.sync = false; + // If _read pushed data synchronously, then `reading` will be false, + // and we need to re-evaluate how much data we can return to the user. + if (!state.reading) n = howMuchToRead(nOrig, state); + } + var ret; + if (n > 0) ret = fromList(n, state);else ret = null; + if (ret === null) { + state.needReadable = state.length <= state.highWaterMark; + n = 0; + } else { + state.length -= n; + state.awaitDrain = 0; + } + if (state.length === 0) { + // If we have nothing in the buffer, then we want to know + // as soon as we *do* get something into the buffer. + if (!state.ended) state.needReadable = true; + + // If we tried to read() past the EOF, then emit end on the next tick. + if (nOrig !== n && state.ended) endReadable(this); + } + if (ret !== null) this.emit('data', ret); + return ret; +}; +function onEofChunk(stream, state) { + debug('onEofChunk'); + if (state.ended) return; + if (state.decoder) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) { + state.buffer.push(chunk); + state.length += state.objectMode ? 1 : chunk.length; + } + } + state.ended = true; + if (state.sync) { + // if we are sync, wait until next tick to emit the data. + // Otherwise we risk emitting data in the flow() + // the readable code triggers during a read() call + emitReadable(stream); + } else { + // emit 'readable' now to make sure it gets picked up. + state.needReadable = false; + if (!state.emittedReadable) { + state.emittedReadable = true; + emitReadable_(stream); + } + } } -function barrettRevert(x) { return x; } +// Don't emit readable right away in sync mode, because this can trigger +// another read() call => stack overflow. This way, it might trigger +// a nextTick recursion warning, but that's not so bad. +function emitReadable(stream) { + var state = stream._readableState; + debug('emitReadable', state.needReadable, state.emittedReadable); + state.needReadable = false; + if (!state.emittedReadable) { + debug('emitReadable', state.flowing); + state.emittedReadable = true; + process.nextTick(emitReadable_, stream); + } +} +function emitReadable_(stream) { + var state = stream._readableState; + debug('emitReadable_', state.destroyed, state.length, state.ended); + if (!state.destroyed && (state.length || state.ended)) { + stream.emit('readable'); + state.emittedReadable = false; + } + + // The stream needs another readable event if + // 1. It is not flowing, as the flow mechanism will take + // care of it. + // 2. It is not ended. + // 3. It is below the highWaterMark, so we can schedule + // another readable later. + state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; + flow(stream); +} -//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); +// at this point, the user has presumably seen the 'readable' event, +// and called read() to consume some data. that may have triggered +// in turn another _read(n) call, in which case reading = true if +// it's in progress. +// However, if we're not ended, or reading, and the length < hwm, +// then go ahead and try to read some more preemptively. +function maybeReadMore(stream, state) { + if (!state.readingMore) { + state.readingMore = true; + process.nextTick(maybeReadMore_, stream, state); + } +} +function maybeReadMore_(stream, state) { + // Attempt to read more data if we should. + // + // The conditions for reading more data are (one of): + // - Not enough data buffered (state.length < state.highWaterMark). The loop + // is responsible for filling the buffer with enough data if such data + // is available. If highWaterMark is 0 and we are not in the flowing mode + // we should _not_ attempt to buffer any extra data. We'll get more data + // when the stream consumer calls read() instead. + // - No data in the buffer, and the stream is in flowing mode. In this mode + // the loop below is responsible for ensuring read() is called. Failing to + // call read here would abort the flow and there's no other mechanism for + // continuing the flow if the stream consumer has just subscribed to the + // 'data' event. + // + // In addition to the above conditions to keep reading data, the following + // conditions prevent the data from being read: + // - The stream has ended (state.ended). + // - There is already a pending 'read' operation (state.reading). This is a + // case where the the stream has called the implementation defined _read() + // method, but they are processing the call asynchronously and have _not_ + // called push() with new data. In this case we skip performing more + // read()s. The execution ends in this method again after the _read() ends + // up calling push() with more data. + while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { + var len = state.length; + debug('maybeReadMore read 0'); + stream.read(0); + if (len === state.length) + // didn't get any data, stop spinning. + break; + } + state.readingMore = false; } -//r = x^2 mod m; x != r -function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } +// abstract method. to be overridden in specific implementation classes. +// call cb(er, data) where data is <= n in length. +// for virtual (non-string, non-buffer) streams, "length" is somewhat +// arbitrary, and perhaps not very meaningful. +Readable.prototype._read = function (n) { + errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()')); +}; +Readable.prototype.pipe = function (dest, pipeOpts) { + var src = this; + var state = this._readableState; + switch (state.pipesCount) { + case 0: + state.pipes = dest; + break; + case 1: + state.pipes = [state.pipes, dest]; + break; + default: + state.pipes.push(dest); + break; + } + state.pipesCount += 1; + debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); + var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; + var endFn = doEnd ? onend : unpipe; + if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn); + dest.on('unpipe', onunpipe); + function onunpipe(readable, unpipeInfo) { + debug('onunpipe'); + if (readable === src) { + if (unpipeInfo && unpipeInfo.hasUnpiped === false) { + unpipeInfo.hasUnpiped = true; + cleanup(); + } + } + } + function onend() { + debug('onend'); + dest.end(); + } + + // when the dest drains, it reduces the awaitDrain counter + // on the source. This would be more elegant with a .once() + // handler in flow(), but adding and removing repeatedly is + // too slow. + var ondrain = pipeOnDrain(src); + dest.on('drain', ondrain); + var cleanedUp = false; + function cleanup() { + debug('cleanup'); + // cleanup event handlers once the pipe is broken + dest.removeListener('close', onclose); + dest.removeListener('finish', onfinish); + dest.removeListener('drain', ondrain); + dest.removeListener('error', onerror); + dest.removeListener('unpipe', onunpipe); + src.removeListener('end', onend); + src.removeListener('end', unpipe); + src.removeListener('data', ondata); + cleanedUp = true; + + // if the reader is waiting for a drain event from this + // specific writer, then it would cause it to never start + // flowing again. + // So, if this is awaiting a drain, then we just call it now. + // If we don't know, then assume that we are waiting for one. + if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); + } + src.on('data', ondata); + function ondata(chunk) { + debug('ondata'); + var ret = dest.write(chunk); + debug('dest.write', ret); + if (ret === false) { + // If the user unpiped during `dest.write()`, it is possible + // to get stuck in a permanently paused state if that write + // also returned false. + // => Check whether `dest` is still a piping destination. + if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { + debug('false write response, pause', state.awaitDrain); + state.awaitDrain++; + } + src.pause(); + } + } + + // if the dest has an error, then stop piping into it. + // however, don't suppress the throwing behavior for this. + function onerror(er) { + debug('onerror', er); + unpipe(); + dest.removeListener('error', onerror); + if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er); + } + + // Make sure our error handler is attached before userland ones. + prependListener(dest, 'error', onerror); + + // Both close and finish should trigger unpipe, but only once. + function onclose() { + dest.removeListener('finish', onfinish); + unpipe(); + } + dest.once('close', onclose); + function onfinish() { + debug('onfinish'); + dest.removeListener('close', onclose); + unpipe(); + } + dest.once('finish', onfinish); + function unpipe() { + debug('unpipe'); + src.unpipe(dest); + } + + // tell the dest that it's being piped to + dest.emit('pipe', src); + + // start the flow if it hasn't been started already. + if (!state.flowing) { + debug('pipe resume'); + src.resume(); + } + return dest; +}; +function pipeOnDrain(src) { + return function pipeOnDrainFunctionResult() { + var state = src._readableState; + debug('pipeOnDrain', state.awaitDrain); + if (state.awaitDrain) state.awaitDrain--; + if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { + state.flowing = true; + flow(src); + } + }; +} +Readable.prototype.unpipe = function (dest) { + var state = this._readableState; + var unpipeInfo = { + hasUnpiped: false + }; -//r = x*y mod m; x,y != r -function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + // if we're not piping anywhere, then do nothing. + if (state.pipesCount === 0) return this; -Barrett.prototype.convert = barrettConvert; -Barrett.prototype.revert = barrettRevert; -Barrett.prototype.reduce = barrettReduce; -Barrett.prototype.mulTo = barrettMulTo; -Barrett.prototype.sqrTo = barrettSqrTo; + // just one destination. most common case. + if (state.pipesCount === 1) { + // passed in one, but it's not the right one. + if (dest && dest !== state.pipes) return this; + if (!dest) dest = state.pipes; -//(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; -else k = 6; -if(i < 8) - z = new Classic(m); -else if(m.isEven()) - z = new Barrett(m); -else - z = new Montgomery(m); + // got a match. + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + if (dest) dest.emit('unpipe', this, unpipeInfo); + return this; + } -// precomputation -var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { - var g2 = nbi(); - z.sqrTo(g[1],g2); - while(n <= km) { - g[n] = nbi(); - z.mulTo(g2,g[n-2],g[n]); - n += 2; - } -} + // slow case. multiple pipe destinations. -var j = e.t-1, w, is1 = true, r2 = nbi(), t; -i = nbits(e.data[j])-1; -while(j >= 0) { - if(i >= k1) w = (e.data[j]>>(i-k1))&km; - else { - w = (e.data[j]&((1<<(i+1))-1))<<(k1-i); - if(j > 0) w |= e.data[j-1]>>(this.DB+i-k1); - } + if (!dest) { + // remove all. + var dests = state.pipes; + var len = state.pipesCount; + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, { + hasUnpiped: false + }); + return this; + } - 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 - 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); - } + // try to find the right one. + var index = indexOf(state.pipes, dest); + if (index === -1) return this; + state.pipes.splice(index, 1); + state.pipesCount -= 1; + if (state.pipesCount === 1) state.pipes = state.pipes[0]; + dest.emit('unpipe', this, unpipeInfo); + return this; +}; - while(j >= 0 && (e.data[j]&(1< 0; + + // Try start flowing on next tick if stream isn't explicitly paused + if (state.flowing !== false) this.resume(); + } else if (ev === 'readable') { + if (!state.endEmitted && !state.readableListening) { + state.readableListening = state.needReadable = true; + state.flowing = false; + state.emittedReadable = false; + debug('on readable', state.length, state.reading); + if (state.length) { + emitReadable(this); + } else if (!state.reading) { + process.nextTick(nReadingNextTick, this); + } + } + } + return res; +}; +Readable.prototype.addListener = Readable.prototype.on; +Readable.prototype.removeListener = function (ev, fn) { + var res = Stream.prototype.removeListener.call(this, ev, fn); + if (ev === 'readable') { + // We need to check if there is someone still listening to + // readable and reset the state. However this needs to happen + // after readable has been emitted but before I/O (nextTick) to + // support once('readable', fn) cycles. This means that calling + // resume within the same tick will have no + // effect. + process.nextTick(updateReadableListening, this); + } + return res; +}; +Readable.prototype.removeAllListeners = function (ev) { + var res = Stream.prototype.removeAllListeners.apply(this, arguments); + if (ev === 'readable' || ev === undefined) { + // We need to check if there is someone still listening to + // readable and reset the state. However this needs to happen + // after readable has been emitted but before I/O (nextTick) to + // support once('readable', fn) cycles. This means that calling + // resume within the same tick will have no + // effect. + process.nextTick(updateReadableListening, this); + } + return res; +}; +function updateReadableListening(self) { + var state = self._readableState; + state.readableListening = self.listenerCount('readable') > 0; + if (state.resumeScheduled && !state.paused) { + // flowing needs to be set to true now, otherwise + // the upcoming resume will not flow. + state.flowing = true; + + // crude way to check if we should resume + } else if (self.listenerCount('data') > 0) { + self.resume(); + } } -return z.revert(r); +function nReadingNextTick(self) { + debug('readable nexttick read 0'); + self.read(0); } -//(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); +// pause() and resume() are remnants of the legacy readable stream API +// If the user uses them, then switch into old mode. +Readable.prototype.resume = function () { + var state = this._readableState; + if (!state.flowing) { + debug('resume'); + // we flow only if there is no one listening + // for readable, but we still have to call + // resume() + state.flowing = !state.readableListening; + resume(this, state); + } + state.paused = false; + return this; +}; +function resume(stream, state) { + if (!state.resumeScheduled) { + state.resumeScheduled = true; + process.nextTick(resume_, stream, state); + } } -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); - } +function resume_(stream, state) { + debug('resume', state.reading); + if (!state.reading) { + stream.read(0); + } + state.resumeScheduled = false; + stream.emit('resume'); + flow(stream); + if (state.flowing && !state.reading) stream.read(0); } -if(g > 0) y.lShiftTo(g,y); -return y; +Readable.prototype.pause = function () { + debug('call pause flowing=%j', this._readableState.flowing); + if (this._readableState.flowing !== false) { + debug('pause'); + this._readableState.flowing = false; + this.emit('pause'); + } + this._readableState.paused = true; + return this; +}; +function flow(stream) { + var state = stream._readableState; + debug('flow', state.flowing); + while (state.flowing && stream.read() !== null); } -//(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.data[0]%n; - else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n; -return r; -} +// wrap an old-style stream as the async data source. +// This is *not* part of the readable stream interface. +// It is an ugly unfortunate mess of history. +Readable.prototype.wrap = function (stream) { + var _this = this; + var state = this._readableState; + var paused = false; + stream.on('end', function () { + debug('wrapped end'); + if (state.decoder && !state.ended) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) _this.push(chunk); + } + _this.push(null); + }); + stream.on('data', function (chunk) { + debug('wrapped data'); + if (state.decoder) chunk = state.decoder.write(chunk); + + // don't skip over falsy values in objectMode + if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; + var ret = _this.push(chunk); + if (!ret) { + paused = true; + stream.pause(); + } + }); -//(public) 1/this % m (HAC 14.61) -function bnModInverse(m) { -var ac = m.isEven(); -if((this.isEven() && ac) || m.signum() == 0) return BigInteger.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(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(BigInteger.ONE) != 0) return BigInteger.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; -} + // proxy all the other methods. + // important when wrapping filters and duplexes. + for (var i in stream) { + if (this[i] === undefined && typeof stream[i] === 'function') { + this[i] = function methodWrap(method) { + return function methodWrapReturnFunction() { + return stream[method].apply(stream, arguments); + }; + }(i); + } + } -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]; -var lplim = (1<<26)/lowprimes[lowprimes.length-1]; + // proxy certain important events. + for (var n = 0; n < kProxyEvents.length; n++) { + stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); + } -//(public) test primality with certainty >= 1-.5^t -function bnIsProbablePrime(t) { -var i, x = this.abs(); -if(x.t == 1 && x.data[0] <= lowprimes[lowprimes.length-1]) { - for(i = 0; i < lowprimes.length; ++i) - if(x.data[0] == lowprimes[i]) return true; - 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++]; - m = x.modInt(m); - while(i < j) if(m%lowprimes[i++] == 0) return false; -} -return x.millerRabin(t); + // when we try to consume some more bytes, simply unpause the + // underlying stream. + this._read = function (n) { + debug('wrapped _read', n); + if (paused) { + paused = false; + stream.resume(); + } + }; + return this; +}; +if (typeof Symbol === 'function') { + Readable.prototype[Symbol.asyncIterator] = function () { + if (createReadableStreamAsyncIterator === undefined) { + createReadableStreamAsyncIterator = __nccwpck_require__(54471); + } + return createReadableStreamAsyncIterator(this); + }; } +Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState.highWaterMark; + } +}); +Object.defineProperty(Readable.prototype, 'readableBuffer', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState && this._readableState.buffer; + } +}); +Object.defineProperty(Readable.prototype, 'readableFlowing', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState.flowing; + }, + set: function set(state) { + if (this._readableState) { + this._readableState.flowing = state; + } + } +}); -//(protected) true if probably prime (HAC 4.24, Miller-Rabin) -function bnpMillerRabin(t) { -var n1 = this.subtract(BigInteger.ONE); -var k = n1.getLowestSetBit(); -if(k <= 0) return false; -var r = n1.shiftRight(k); -var prng = bnGetPrng(); -var a; -for(var i = 0; i < t; ++i) { - // select witness 'a' at random from between 1 and n1 - do { - a = new BigInteger(this.bitLength(), prng); - } - while(a.compareTo(BigInteger.ONE) <= 0 || a.compareTo(n1) >= 0); - var y = a.modPow(r,this); - if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { - var j = 1; - while(j++ < k && y.compareTo(n1) != 0) { - y = y.modPowInt(2,this); - if(y.compareTo(BigInteger.ONE) == 0) return false; - } - if(y.compareTo(n1) != 0) return false; - } +// exposed for testing purposes only. +Readable._fromList = fromList; +Object.defineProperty(Readable.prototype, 'readableLength', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState.length; + } +}); + +// Pluck off n bytes from an array of buffers. +// Length is the combined lengths of all the buffers in the list. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function fromList(n, state) { + // nothing buffered + if (state.length === 0) return null; + var ret; + if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { + // read it all, truncate the list + if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length); + state.buffer.clear(); + } else { + // read part of list + ret = state.buffer.consume(n, state.decoder); + } + return ret; } -return true; +function endReadable(stream) { + var state = stream._readableState; + debug('endReadable', state.endEmitted); + if (!state.endEmitted) { + state.ended = true; + process.nextTick(endReadableNT, state, stream); + } } +function endReadableNT(state, stream) { + debug('endReadableNT', state.endEmitted, state.length); -// get pseudo random number generator -function bnGetPrng() { - // create prng with api that matches BigInteger secure random - return { - // x is an array to fill with bytes - nextBytes: function(x) { - for(var i = 0; i < x.length; ++i) { - x[i] = Math.floor(Math.random() * 0x0100); + // Check that we didn't get one last unshift. + if (!state.endEmitted && state.length === 0) { + state.endEmitted = true; + stream.readable = false; + stream.emit('end'); + if (state.autoDestroy) { + // In case of duplex streams we need a way to detect + // if the writable side is ready for autoDestroy as well + var wState = stream._writableState; + if (!wState || wState.autoDestroy && wState.finished) { + stream.destroy(); } } + } +} +if (typeof Symbol === 'function') { + Readable.from = function (iterable, opts) { + if (from === undefined) { + from = __nccwpck_require__(8280); + } + return from(Readable, iterable, opts); }; } +function indexOf(xs, x) { + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) return i; + } + return -1; +} -//protected -BigInteger.prototype.chunkSize = bnpChunkSize; -BigInteger.prototype.toRadix = bnpToRadix; -BigInteger.prototype.fromRadix = bnpFromRadix; -BigInteger.prototype.fromNumber = bnpFromNumber; -BigInteger.prototype.bitwiseTo = bnpBitwiseTo; -BigInteger.prototype.changeBit = bnpChangeBit; -BigInteger.prototype.addTo = bnpAddTo; -BigInteger.prototype.dMultiply = bnpDMultiply; -BigInteger.prototype.dAddOffset = bnpDAddOffset; -BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; -BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; -BigInteger.prototype.modInt = bnpModInt; -BigInteger.prototype.millerRabin = bnpMillerRabin; +/***/ }), -//public -BigInteger.prototype.clone = bnClone; -BigInteger.prototype.intValue = bnIntValue; -BigInteger.prototype.byteValue = bnByteValue; -BigInteger.prototype.shortValue = bnShortValue; -BigInteger.prototype.signum = bnSigNum; -BigInteger.prototype.toByteArray = bnToByteArray; -BigInteger.prototype.equals = bnEquals; -BigInteger.prototype.min = bnMin; -BigInteger.prototype.max = bnMax; -BigInteger.prototype.and = bnAnd; -BigInteger.prototype.or = bnOr; -BigInteger.prototype.xor = bnXor; -BigInteger.prototype.andNot = bnAndNot; -BigInteger.prototype.not = bnNot; -BigInteger.prototype.shiftLeft = bnShiftLeft; -BigInteger.prototype.shiftRight = bnShiftRight; -BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; -BigInteger.prototype.bitCount = bnBitCount; -BigInteger.prototype.testBit = bnTestBit; -BigInteger.prototype.setBit = bnSetBit; -BigInteger.prototype.clearBit = bnClearBit; -BigInteger.prototype.flipBit = bnFlipBit; -BigInteger.prototype.add = bnAdd; -BigInteger.prototype.subtract = bnSubtract; -BigInteger.prototype.multiply = bnMultiply; -BigInteger.prototype.divide = bnDivide; -BigInteger.prototype.remainder = bnRemainder; -BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; -BigInteger.prototype.modPow = bnModPow; -BigInteger.prototype.modInverse = bnModInverse; -BigInteger.prototype.pow = bnPow; -BigInteger.prototype.gcd = bnGCD; -BigInteger.prototype.isProbablePrime = bnIsProbablePrime; +/***/ 49230: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -//BigInteger interfaces not implemented in jsbn: +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a transform stream is a readable/writable stream where you do +// something with the data. Sometimes it's called a "filter", +// but that's not a great name for it, since that implies a thing where +// some bits pass through, and others are simply ignored. (That would +// be a valid example of a transform, of course.) +// +// While the output is causally related to the input, it's not a +// necessarily symmetric or synchronous transformation. For example, +// a zlib stream might take multiple plain-text writes(), and then +// emit a single compressed chunk some time in the future. +// +// Here's how this works: +// +// The Transform stream has all the aspects of the readable and writable +// stream classes. When you write(chunk), that calls _write(chunk,cb) +// internally, and returns false if there's a lot of pending writes +// buffered up. When you call read(), that calls _read(n) until +// there's enough pending readable data buffered up. +// +// In a transform stream, the written data is placed in a buffer. When +// _read(n) is called, it transforms the queued up data, calling the +// buffered _write cb's as it consumes chunks. If consuming a single +// written chunk would result in multiple output chunks, then the first +// outputted bit calls the readcb, and subsequent chunks just go into +// the read buffer, and will cause it to emit 'readable' if necessary. +// +// This way, back-pressure is actually determined by the reading side, +// since _read has to be called to start processing a new chunk. However, +// a pathological inflate type of transform can cause excessive buffering +// here. For example, imagine a stream where every byte of input is +// interpreted as an integer from 0-255, and then results in that many +// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in +// 1kb of data being output. In this case, you could write a very small +// amount of input, and end up with a very large amount of output. In +// such a pathological inflating mechanism, there'd be no way to tell +// the system to stop doing the transform. A single 4MB write could +// cause the system to run out of memory. +// +// However, even in such a pathological case, only a single written chunk +// would be consumed, and then the rest would wait (un-transformed) until +// the results of the previous transformed chunk were consumed. + + + +module.exports = Transform; +var _require$codes = (__nccwpck_require__(81573)/* .codes */ .F), + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, + ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, + ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; +var Duplex = __nccwpck_require__(79810); +__nccwpck_require__(42109)(Transform, Duplex); +function afterTransform(er, data) { + var ts = this._transformState; + ts.transforming = false; + var cb = ts.writecb; + if (cb === null) { + return this.emit('error', new ERR_MULTIPLE_CALLBACK()); + } + ts.writechunk = null; + ts.writecb = null; + if (data != null) + // single equals check for both `null` and `undefined` + this.push(data); + cb(er); + var rs = this._readableState; + rs.reading = false; + if (rs.needReadable || rs.length < rs.highWaterMark) { + this._read(rs.highWaterMark); + } +} +function Transform(options) { + if (!(this instanceof Transform)) return new Transform(options); + Duplex.call(this, options); + this._transformState = { + afterTransform: afterTransform.bind(this), + needTransform: false, + transforming: false, + writecb: null, + writechunk: null, + writeencoding: null + }; -//BigInteger(int signum, byte[] magnitude) -//double doubleValue() -//float floatValue() -//int hashCode() -//long longValue() -//static BigInteger valueOf(long val) + // start out asking for a readable event once data is transformed. + this._readableState.needReadable = true; + + // we have implemented the _read method, and done the other things + // that Readable wants before the first _read call, so unset the + // sync guard flag. + this._readableState.sync = false; + if (options) { + if (typeof options.transform === 'function') this._transform = options.transform; + if (typeof options.flush === 'function') this._flush = options.flush; + } + + // When the writable side finishes, then flush out anything remaining. + this.on('prefinish', prefinish); +} +function prefinish() { + var _this = this; + if (typeof this._flush === 'function' && !this._readableState.destroyed) { + this._flush(function (er, data) { + done(_this, er, data); + }); + } else { + done(this, null, null); + } +} +Transform.prototype.push = function (chunk, encoding) { + this._transformState.needTransform = false; + return Duplex.prototype.push.call(this, chunk, encoding); +}; + +// This is the part where you do stuff! +// override this function in implementation classes. +// 'chunk' is an input chunk. +// +// Call `push(newChunk)` to pass along transformed output +// to the readable side. You may call 'push' zero or more times. +// +// Call `cb(err)` when you are done with this chunk. If you pass +// an error, then that'll put the hurt on the whole operation. If you +// never call cb(), then you'll never get another chunk. +Transform.prototype._transform = function (chunk, encoding, cb) { + cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()')); +}; +Transform.prototype._write = function (chunk, encoding, cb) { + var ts = this._transformState; + ts.writecb = cb; + ts.writechunk = chunk; + ts.writeencoding = encoding; + if (!ts.transforming) { + var rs = this._readableState; + if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); + } +}; +// Doesn't matter what the args are here. +// _transform does all the work. +// That we got here means that the readable side wants more data. +Transform.prototype._read = function (n) { + var ts = this._transformState; + if (ts.writechunk !== null && !ts.transforming) { + ts.transforming = true; + this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); + } else { + // mark that we need a transform, so that any data that comes in + // will get processed, now that we've asked for it. + ts.needTransform = true; + } +}; +Transform.prototype._destroy = function (err, cb) { + Duplex.prototype._destroy.call(this, err, function (err2) { + cb(err2); + }); +}; +function done(stream, er, data) { + if (er) return stream.emit('error', er); + if (data != null) + // single equals check for both `null` and `undefined` + stream.push(data); + + // TODO(BridgeAR): Write a test for these two error cases + // if there's nothing in the write buffer, then that means + // that nothing more will ever be provided + if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0(); + if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); + return stream.push(null); +} /***/ }), -/***/ 72101: +/***/ 9792: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Javascript implementation of RSA-KEM. - * - * @author Lautaro Cozzani Rodriguez - * @author Dave Longley - * - * Copyright (c) 2014 Lautaro Cozzani - * Copyright (c) 2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(21720); -__nccwpck_require__(84856); -__nccwpck_require__(8695); +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. -module.exports = forge.kem = forge.kem || {}; +// A bit simpler than readable streams. +// Implement an async ._write(chunk, encoding, cb), and it'll handle all +// the drain event emission and buffering. -var BigInteger = forge.jsbn.BigInteger; -/** - * The API for the RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2. - */ -forge.kem.rsa = {}; -/** - * Creates an RSA KEM API object for generating a secret asymmetric key. - * - * The symmetric key may be generated via a call to 'encrypt', which will - * produce a ciphertext to be transmitted to the recipient and a key to be - * kept secret. The ciphertext is a parameter to be passed to 'decrypt' which - * will produce the same secret key for the recipient to use to decrypt a - * message that was encrypted with the secret key. - * - * @param kdf the KDF API to use (eg: new forge.kem.kdf1()). - * @param options the options to use. - * [prng] a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". - */ -forge.kem.rsa.create = function(kdf, options) { - options = options || {}; - var prng = options.prng || forge.random; +module.exports = Writable; - var kem = {}; +/* */ +function WriteReq(chunk, encoding, cb) { + this.chunk = chunk; + this.encoding = encoding; + this.callback = cb; + this.next = null; +} - /** - * Generates a secret key and its encapsulation. - * - * @param publicKey the RSA public key to encrypt with. - * @param keyLength the length, in bytes, of the secret key to generate. - * - * @return an object with: - * encapsulation: the ciphertext for generating the secret key, as a - * binary-encoded string of bytes. - * key: the secret key to use for encrypting a message. - */ - kem.encrypt = function(publicKey, keyLength) { - // generate a random r where 1 < r < n - var byteLength = Math.ceil(publicKey.n.bitLength() / 8); - var r; - do { - r = new BigInteger( - forge.util.bytesToHex(prng.getBytesSync(byteLength)), - 16).mod(publicKey.n); - } while(r.compareTo(BigInteger.ONE) <= 0); +// It seems a linked list but it is not +// there will be only 2 of these for each stream +function CorkedRequest(state) { + var _this = this; + this.next = null; + this.entry = null; + this.finish = function () { + onCorkedFinish(_this, state); + }; +} +/* */ - // prepend r with zeros - r = forge.util.hexToBytes(r.toString(16)); - var zeros = byteLength - r.length; - if(zeros > 0) { - r = forge.util.fillString(String.fromCharCode(0), zeros) + r; - } +/**/ +var Duplex; +/**/ - // encrypt the random - var encapsulation = publicKey.encrypt(r, 'NONE'); +Writable.WritableState = WritableState; - // generate the secret key - var key = kdf.generate(r, keyLength); +/**/ +var internalUtil = { + deprecate: __nccwpck_require__(97587) +}; +/**/ - return {encapsulation: encapsulation, key: key}; - }; +/**/ +var Stream = __nccwpck_require__(78748); +/**/ - /** - * Decrypts an encapsulated secret key. - * - * @param privateKey the RSA private key to decrypt with. - * @param encapsulation the ciphertext for generating the secret key, as - * a binary-encoded string of bytes. - * @param keyLength the length, in bytes, of the secret key to generate. - * - * @return the secret key as a binary-encoded string of bytes. - */ - kem.decrypt = function(privateKey, encapsulation, keyLength) { - // decrypt the encapsulation and generate the secret key - var r = privateKey.decrypt(encapsulation, 'NONE'); - return kdf.generate(r, keyLength); +var Buffer = (__nccwpck_require__(20181).Buffer); +var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} +var destroyImpl = __nccwpck_require__(66860); +var _require = __nccwpck_require__(37687), + getHighWaterMark = _require.getHighWaterMark; +var _require$codes = (__nccwpck_require__(81573)/* .codes */ .F), + ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, + ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, + ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, + ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, + ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, + ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; +var errorOrDestroy = destroyImpl.errorOrDestroy; +__nccwpck_require__(42109)(Writable, Stream); +function nop() {} +function WritableState(options, stream, isDuplex) { + Duplex = Duplex || __nccwpck_require__(79810); + options = options || {}; + + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream, + // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. + if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; + + // object stream flag to indicate whether or not this stream + // contains buffers or objects. + this.objectMode = !!options.objectMode; + if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; + + // the point at which write() starts returning false + // Note: 0 is a valid value, means that we always return false if + // the entire buffer is not flushed immediately on write() + this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); + + // if _final has been called + this.finalCalled = false; + + // drain event flag. + this.needDrain = false; + // at the start of calling end() + this.ending = false; + // when end() has been called, and returned + this.ended = false; + // when 'finish' is emitted + this.finished = false; + + // has it been destroyed + this.destroyed = false; + + // should we decode strings into buffers before passing to _write? + // this is here so that some node-core streams can optimize string + // handling at a lower level. + var noDecode = options.decodeStrings === false; + this.decodeStrings = !noDecode; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // not an actual buffer we keep track of, but a measurement + // of how much we're waiting to get pushed to some underlying + // socket or file. + this.length = 0; + + // a flag to see when we're in the middle of a write. + this.writing = false; + + // when true all writes will be buffered until .uncork() call + this.corked = 0; + + // a flag to be able to tell if the onwrite cb is called immediately, + // or on a later tick. We set this to true at first, because any + // actions that shouldn't happen until "later" should generally also + // not happen before the first write call. + this.sync = true; + + // a flag to know if we're processing previously buffered items, which + // may call the _write() callback in the same tick, so that we don't + // end up in an overlapped onwrite situation. + this.bufferProcessing = false; + + // the callback that's passed to _write(chunk,cb) + this.onwrite = function (er) { + onwrite(stream, er); }; - return kem; -}; + // the callback that the user supplies to write(chunk,encoding,cb) + this.writecb = null; -// TODO: add forge.kem.kdf.create('KDF1', {md: ..., ...}) API? + // the amount that is being written when _write is called. + this.writelen = 0; + this.bufferedRequest = null; + this.lastBufferedRequest = null; -/** - * Creates a key derivation API object that implements KDF1 per ISO 18033-2. - * - * @param md the hash API to use. - * @param [digestLength] an optional digest length that must be positive and - * less than or equal to md.digestLength. - * - * @return a KDF1 API object. - */ -forge.kem.kdf1 = function(md, digestLength) { - _createKDF(this, md, 0, digestLength || md.digestLength); -}; + // number of pending user-supplied write callbacks + // this must be 0 before 'finish' can be emitted + this.pendingcb = 0; -/** - * Creates a key derivation API object that implements KDF2 per ISO 18033-2. - * - * @param md the hash API to use. - * @param [digestLength] an optional digest length that must be positive and - * less than or equal to md.digestLength. - * - * @return a KDF2 API object. - */ -forge.kem.kdf2 = function(md, digestLength) { - _createKDF(this, md, 1, digestLength || md.digestLength); -}; + // emit prefinish if the only thing we're waiting for is _write cbs + // This is relevant for synchronous Transform streams + this.prefinished = false; -/** - * Creates a KDF1 or KDF2 API object. - * - * @param md the hash API to use. - * @param counterStart the starting index for the counter. - * @param digestLength the digest length to use. - * - * @return the KDF API object. - */ -function _createKDF(kdf, md, counterStart, digestLength) { - /** - * Generate a key of the specified length. - * - * @param x the binary-encoded byte string to generate a key from. - * @param length the number of bytes to generate (the size of the key). - * - * @return the key as a binary-encoded string. - */ - kdf.generate = function(x, length) { - var key = new forge.util.ByteBuffer(); + // True if the error was already emitted and should not be thrown again + this.errorEmitted = false; - // run counter from counterStart to ceil(length / Hash.len) - var k = Math.ceil(length / digestLength) + counterStart; + // Should close be emitted on destroy. Defaults to true. + this.emitClose = options.emitClose !== false; - var c = new forge.util.ByteBuffer(); - for(var i = counterStart; i < k; ++i) { - // I2OSP(i, 4): convert counter to an octet string of 4 octets - c.putInt32(i); + // Should .destroy() be called after 'finish' (and potentially 'end') + this.autoDestroy = !!options.autoDestroy; - // digest 'x' and the counter and add the result to the key - md.start(); - md.update(x + c.getBytes()); - var hash = md.digest(); - key.putBytes(hash.getBytes(digestLength)); - } + // count buffered requests + this.bufferedRequestCount = 0; - // truncate to the correct key length - key.truncate(key.length() - length); - return key.getBytes(); + // allocate the first CorkedRequest, there is always + // one allocated and free to use, and we maintain at most two + this.corkedRequestsFree = new CorkedRequest(this); +} +WritableState.prototype.getBuffer = function getBuffer() { + var current = this.bufferedRequest; + var out = []; + while (current) { + out.push(current); + current = current.next; + } + return out; +}; +(function () { + try { + Object.defineProperty(WritableState.prototype, 'buffer', { + get: internalUtil.deprecate(function writableStateBufferGetter() { + return this.getBuffer(); + }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') + }); + } catch (_) {} +})(); + +// Test _writableState for inheritance to account for Duplex streams, +// whose prototype chain only points to Readable. +var realHasInstance; +if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { + realHasInstance = Function.prototype[Symbol.hasInstance]; + Object.defineProperty(Writable, Symbol.hasInstance, { + value: function value(object) { + if (realHasInstance.call(this, object)) return true; + if (this !== Writable) return false; + return object && object._writableState instanceof WritableState; + } + }); +} else { + realHasInstance = function realHasInstance(object) { + return object instanceof this; }; } +function Writable(options) { + Duplex = Duplex || __nccwpck_require__(79810); + // Writable ctor is applied to Duplexes, too. + // `realHasInstance` is necessary because using plain `instanceof` + // would return false, as no `_writableState` property is attached. -/***/ }), + // Trying to use the custom `instanceof` for Writable here will also break the + // Node.js LazyTransform implementation, which has a non-trivial getter for + // `_writableState` that would lead to infinite recursion. -/***/ 36018: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + // Checking for a Stream.Duplex instance is faster here instead of inside + // the WritableState constructor, at least with V8 6.5 + var isDuplex = this instanceof Duplex; + if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options); + this._writableState = new WritableState(options, this, isDuplex); -/** - * Cross-browser support for logging in a web application. - * - * @author David I. Lehn - * - * Copyright (c) 2008-2013 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(21720); + // legacy. + this.writable = true; + if (options) { + if (typeof options.write === 'function') this._write = options.write; + if (typeof options.writev === 'function') this._writev = options.writev; + if (typeof options.destroy === 'function') this._destroy = options.destroy; + if (typeof options.final === 'function') this._final = options.final; + } + Stream.call(this); +} -/* LOG API */ -module.exports = forge.log = forge.log || {}; +// Otherwise people can pipe Writable streams, which is just wrong. +Writable.prototype.pipe = function () { + errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); +}; +function writeAfterEnd(stream, cb) { + var er = new ERR_STREAM_WRITE_AFTER_END(); + // TODO: defer error events consistently everywhere, not just the cb + errorOrDestroy(stream, er); + process.nextTick(cb, er); +} -/** - * Application logging system. - * - * Each logger level available as it's own function of the form: - * forge.log.level(category, args...) - * The category is an arbitrary string, and the args are the same as - * Firebug's console.log API. By default the call will be output as: - * 'LEVEL [category] , args[1], ...' - * This enables proper % formatting via the first argument. - * Each category is enabled by default but can be enabled or disabled with - * the setCategoryEnabled() function. - */ -// list of known levels -forge.log.levels = [ - 'none', 'error', 'warning', 'info', 'debug', 'verbose', 'max']; -// info on the levels indexed by name: -// index: level index -// name: uppercased display name -var sLevelInfo = {}; -// list of loggers -var sLoggers = []; -/** - * Standard console logger. If no console support is enabled this will - * remain null. Check before using. - */ -var sConsoleLogger = null; +// Checks that a user-supplied chunk is valid, especially for the particular +// mode the stream is in. Currently this means that `null` is never accepted +// and undefined/non-string values are only allowed in object mode. +function validChunk(stream, state, chunk, cb) { + var er; + if (chunk === null) { + er = new ERR_STREAM_NULL_VALUES(); + } else if (typeof chunk !== 'string' && !state.objectMode) { + er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk); + } + if (er) { + errorOrDestroy(stream, er); + process.nextTick(cb, er); + return false; + } + return true; +} +Writable.prototype.write = function (chunk, encoding, cb) { + var state = this._writableState; + var ret = false; + var isBuf = !state.objectMode && _isUint8Array(chunk); + if (isBuf && !Buffer.isBuffer(chunk)) { + chunk = _uint8ArrayToBuffer(chunk); + } + if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; + if (typeof cb !== 'function') cb = nop; + if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { + state.pendingcb++; + ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); + } + return ret; +}; +Writable.prototype.cork = function () { + this._writableState.corked++; +}; +Writable.prototype.uncork = function () { + var state = this._writableState; + if (state.corked) { + state.corked--; + if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); + } +}; +Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { + // node::ParseEncoding() requires lower case. + if (typeof encoding === 'string') encoding = encoding.toLowerCase(); + if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding); + this._writableState.defaultEncoding = encoding; + return this; +}; +Object.defineProperty(Writable.prototype, 'writableBuffer', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState && this._writableState.getBuffer(); + } +}); +function decodeChunk(state, chunk, encoding) { + if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { + chunk = Buffer.from(chunk, encoding); + } + return chunk; +} +Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.highWaterMark; + } +}); -// logger flags -/** - * Lock the level at the current value. Used in cases where user config may - * set the level such that only critical messages are seen but more verbose - * messages are needed for debugging or other purposes. - */ -forge.log.LEVEL_LOCKED = (1 << 1); -/** - * Always call log function. By default, the logging system will check the - * message level against logger.level before calling the log function. This - * flag allows the function to do its own check. - */ -forge.log.NO_LEVEL_CHECK = (1 << 2); -/** - * Perform message interpolation with the passed arguments. "%" style - * fields in log messages will be replaced by arguments as needed. Some - * loggers, such as Firebug, may do this automatically. The original log - * message will be available as 'message' and the interpolated version will - * be available as 'fullMessage'. - */ -forge.log.INTERPOLATE = (1 << 3); +// if we're already writing something, then just put this +// in the queue, and wait our turn. Otherwise, call _write +// If we return false, then we need a drain event, so set that flag. +function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { + if (!isBuf) { + var newChunk = decodeChunk(state, chunk, encoding); + if (chunk !== newChunk) { + isBuf = true; + encoding = 'buffer'; + chunk = newChunk; + } + } + var len = state.objectMode ? 1 : chunk.length; + state.length += len; + var ret = state.length < state.highWaterMark; + // we must ensure that previous needDrain will not be reset to false. + if (!ret) state.needDrain = true; + if (state.writing || state.corked) { + var last = state.lastBufferedRequest; + state.lastBufferedRequest = { + chunk: chunk, + encoding: encoding, + isBuf: isBuf, + callback: cb, + next: null + }; + if (last) { + last.next = state.lastBufferedRequest; + } else { + state.bufferedRequest = state.lastBufferedRequest; + } + state.bufferedRequestCount += 1; + } else { + doWrite(stream, state, false, len, chunk, encoding, cb); + } + return ret; +} +function doWrite(stream, state, writev, len, chunk, encoding, cb) { + state.writelen = len; + state.writecb = cb; + state.writing = true; + state.sync = true; + if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); + state.sync = false; +} +function onwriteError(stream, state, sync, er, cb) { + --state.pendingcb; + if (sync) { + // defer the callback if we are being called synchronously + // to avoid piling up things on the stack + process.nextTick(cb, er); + // this can emit finish, and it will always happen + // after error + process.nextTick(finishMaybe, stream, state); + stream._writableState.errorEmitted = true; + errorOrDestroy(stream, er); + } else { + // the caller expect this to happen before if + // it is async + cb(er); + stream._writableState.errorEmitted = true; + errorOrDestroy(stream, er); + // this can emit finish, but finish must + // always follow error + finishMaybe(stream, state); + } +} +function onwriteStateUpdate(state) { + state.writing = false; + state.writecb = null; + state.length -= state.writelen; + state.writelen = 0; +} +function onwrite(stream, er) { + var state = stream._writableState; + var sync = state.sync; + var cb = state.writecb; + if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK(); + onwriteStateUpdate(state); + if (er) onwriteError(stream, state, sync, er, cb);else { + // Check if we're actually ready to finish, but don't emit yet + var finished = needFinish(state) || stream.destroyed; + if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { + clearBuffer(stream, state); + } + if (sync) { + process.nextTick(afterWrite, stream, state, finished, cb); + } else { + afterWrite(stream, state, finished, cb); + } + } +} +function afterWrite(stream, state, finished, cb) { + if (!finished) onwriteDrain(stream, state); + state.pendingcb--; + cb(); + finishMaybe(stream, state); +} -// setup each log level -for(var i = 0; i < forge.log.levels.length; ++i) { - var level = forge.log.levels[i]; - sLevelInfo[level] = { - index: i, - name: level.toUpperCase() - }; +// Must force callback to be called on nextTick, so that we don't +// emit 'drain' before the write() consumer gets the 'false' return +// value, and has a chance to attach a 'drain' listener. +function onwriteDrain(stream, state) { + if (state.length === 0 && state.needDrain) { + state.needDrain = false; + stream.emit('drain'); + } } -/** - * Message logger. Will dispatch a message to registered loggers as needed. - * - * @param message message object - */ -forge.log.logMessage = function(message) { - var messageLevelIndex = sLevelInfo[message.level].index; - for(var i = 0; i < sLoggers.length; ++i) { - var logger = sLoggers[i]; - if(logger.flags & forge.log.NO_LEVEL_CHECK) { - logger.f(message); +// if there's something in the buffer waiting, then process it +function clearBuffer(stream, state) { + state.bufferProcessing = true; + var entry = state.bufferedRequest; + if (stream._writev && entry && entry.next) { + // Fast case, write everything using _writev() + var l = state.bufferedRequestCount; + var buffer = new Array(l); + var holder = state.corkedRequestsFree; + holder.entry = entry; + var count = 0; + var allBuffers = true; + while (entry) { + buffer[count] = entry; + if (!entry.isBuf) allBuffers = false; + entry = entry.next; + count += 1; + } + buffer.allBuffers = allBuffers; + doWrite(stream, state, true, state.length, buffer, '', holder.finish); + + // doWrite is almost always async, defer these to save a bit of time + // as the hot path ends with doWrite + state.pendingcb++; + state.lastBufferedRequest = null; + if (holder.next) { + state.corkedRequestsFree = holder.next; + holder.next = null; } else { - // get logger level - var loggerLevelIndex = sLevelInfo[logger.level].index; - // check level - if(messageLevelIndex <= loggerLevelIndex) { - // message critical enough, call logger - logger.f(logger, message); + state.corkedRequestsFree = new CorkedRequest(state); + } + state.bufferedRequestCount = 0; + } else { + // Slow case, write chunks one-by-one + while (entry) { + var chunk = entry.chunk; + var encoding = entry.encoding; + var cb = entry.callback; + var len = state.objectMode ? 1 : chunk.length; + doWrite(stream, state, false, len, chunk, encoding, cb); + entry = entry.next; + state.bufferedRequestCount--; + // if we didn't call the onwrite immediately, then + // it means that we need to wait until it does. + // also, that means that the chunk and cb are currently + // being processed, so move the buffer counter past them. + if (state.writing) { + break; } } + if (entry === null) state.lastBufferedRequest = null; } + state.bufferedRequest = entry; + state.bufferProcessing = false; +} +Writable.prototype._write = function (chunk, encoding, cb) { + cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()')); }; - -/** - * Sets the 'standard' key on a message object to: - * "LEVEL [category] " + message - * - * @param message a message log object - */ -forge.log.prepareStandard = function(message) { - if(!('standard' in message)) { - message.standard = - sLevelInfo[message.level].name + - //' ' + +message.timestamp + - ' [' + message.category + '] ' + - message.message; +Writable.prototype._writev = null; +Writable.prototype.end = function (chunk, encoding, cb) { + var state = this._writableState; + if (typeof chunk === 'function') { + cb = chunk; + chunk = null; + encoding = null; + } else if (typeof encoding === 'function') { + cb = encoding; + encoding = null; } -}; + if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); -/** - * Sets the 'full' key on a message object to the original message - * interpolated via % formatting with the message arguments. - * - * @param message a message log object. - */ -forge.log.prepareFull = function(message) { - if(!('full' in message)) { - // copy args and insert message at the front - var args = [message.message]; - args = args.concat([] || 0); - // format the message - message.full = forge.util.format.apply(this, args); + // .end() fully uncorks + if (state.corked) { + state.corked = 1; + this.uncork(); } + + // ignore unnecessary end() calls. + if (!state.ending) endWritable(this, state, cb); + return this; }; +Object.defineProperty(Writable.prototype, 'writableLength', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.length; + } +}); +function needFinish(state) { + return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; +} +function callFinal(stream, state) { + stream._final(function (err) { + state.pendingcb--; + if (err) { + errorOrDestroy(stream, err); + } + state.prefinished = true; + stream.emit('prefinish'); + finishMaybe(stream, state); + }); +} +function prefinish(stream, state) { + if (!state.prefinished && !state.finalCalled) { + if (typeof stream._final === 'function' && !state.destroyed) { + state.pendingcb++; + state.finalCalled = true; + process.nextTick(callFinal, stream, state); + } else { + state.prefinished = true; + stream.emit('prefinish'); + } + } +} +function finishMaybe(stream, state) { + var need = needFinish(state); + if (need) { + prefinish(stream, state); + if (state.pendingcb === 0) { + state.finished = true; + stream.emit('finish'); + if (state.autoDestroy) { + // In case of duplex streams we need a way to detect + // if the readable side is ready for autoDestroy as well + var rState = stream._readableState; + if (!rState || rState.autoDestroy && rState.endEmitted) { + stream.destroy(); + } + } + } + } + return need; +} +function endWritable(stream, state, cb) { + state.ending = true; + finishMaybe(stream, state); + if (cb) { + if (state.finished) process.nextTick(cb);else stream.once('finish', cb); + } + state.ended = true; + stream.writable = false; +} +function onCorkedFinish(corkReq, state, err) { + var entry = corkReq.entry; + corkReq.entry = null; + while (entry) { + var cb = entry.callback; + state.pendingcb--; + cb(err); + entry = entry.next; + } + + // reuse the free corkReq. + state.corkedRequestsFree.next = corkReq; +} +Object.defineProperty(Writable.prototype, 'destroyed', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + if (this._writableState === undefined) { + return false; + } + return this._writableState.destroyed; + }, + set: function set(value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._writableState) { + return; + } -/** - * Applies both preparseStandard() and prepareFull() to a message object and - * store result in 'standardFull'. - * - * @param message a message log object. - */ -forge.log.prepareStandardFull = function(message) { - if(!('standardFull' in message)) { - // FIXME implement 'standardFull' logging - forge.log.prepareStandard(message); - message.standardFull = message.standard; + // backward compatibility, the user is explicitly + // managing destroyed + this._writableState.destroyed = value; } +}); +Writable.prototype.destroy = destroyImpl.destroy; +Writable.prototype._undestroy = destroyImpl.undestroy; +Writable.prototype._destroy = function (err, cb) { + cb(err); }; -// create log level functions -if(true) { - // levels for which we want functions - var levels = ['error', 'warning', 'info', 'debug', 'verbose']; - for(var i = 0; i < levels.length; ++i) { - // wrap in a function to ensure proper level var is passed - (function(level) { - // create function for this level - forge.log[level] = function(category, message/*, args...*/) { - // convert arguments to real array, remove category and message - var args = Array.prototype.slice.call(arguments).slice(2); - // create message object - // Note: interpolation and standard formatting is done lazily - var msg = { - timestamp: new Date(), - level: level, - category: category, - message: message, - 'arguments': args - /*standard*/ - /*full*/ - /*fullMessage*/ - }; - // process this message - forge.log.logMessage(msg); - }; - })(levels[i]); +/***/ }), + +/***/ 54471: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var _Object$setPrototypeO; +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +var finished = __nccwpck_require__(33106); +var kLastResolve = Symbol('lastResolve'); +var kLastReject = Symbol('lastReject'); +var kError = Symbol('error'); +var kEnded = Symbol('ended'); +var kLastPromise = Symbol('lastPromise'); +var kHandlePromise = Symbol('handlePromise'); +var kStream = Symbol('stream'); +function createIterResult(value, done) { + return { + value: value, + done: done + }; +} +function readAndResolve(iter) { + var resolve = iter[kLastResolve]; + if (resolve !== null) { + var data = iter[kStream].read(); + // we defer if data is null + // we can be expecting either 'end' or + // 'error' + if (data !== null) { + iter[kLastPromise] = null; + iter[kLastResolve] = null; + iter[kLastReject] = null; + resolve(createIterResult(data, false)); + } } } - -/** - * Creates a new logger with specified custom logging function. - * - * The logging function has a signature of: - * function(logger, message) - * logger: current logger - * message: object: - * level: level id - * category: category - * message: string message - * arguments: Array of extra arguments - * fullMessage: interpolated message and arguments if INTERPOLATE flag set - * - * @param logFunction a logging function which takes a log message object - * as a parameter. - * - * @return a logger object. - */ -forge.log.makeLogger = function(logFunction) { - var logger = { - flags: 0, - f: logFunction +function onReadable(iter) { + // we wait for the next tick, because it might + // emit an error with process.nextTick + process.nextTick(readAndResolve, iter); +} +function wrapForNext(lastPromise, iter) { + return function (resolve, reject) { + lastPromise.then(function () { + if (iter[kEnded]) { + resolve(createIterResult(undefined, true)); + return; + } + iter[kHandlePromise](resolve, reject); + }, reject); }; - forge.log.setLevel(logger, 'none'); - return logger; -}; +} +var AsyncIteratorPrototype = Object.getPrototypeOf(function () {}); +var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { + get stream() { + return this[kStream]; + }, + next: function next() { + var _this = this; + // if we have detected an error in the meanwhile + // reject straight away + var error = this[kError]; + if (error !== null) { + return Promise.reject(error); + } + if (this[kEnded]) { + return Promise.resolve(createIterResult(undefined, true)); + } + if (this[kStream].destroyed) { + // We need to defer via nextTick because if .destroy(err) is + // called, the error will be emitted via nextTick, and + // we cannot guarantee that there is no error lingering around + // waiting to be emitted. + return new Promise(function (resolve, reject) { + process.nextTick(function () { + if (_this[kError]) { + reject(_this[kError]); + } else { + resolve(createIterResult(undefined, true)); + } + }); + }); + } -/** - * Sets the current log level on a logger. - * - * @param logger the target logger. - * @param level the new maximum log level as a string. - * - * @return true if set, false if not. - */ -forge.log.setLevel = function(logger, level) { - var rval = false; - if(logger && !(logger.flags & forge.log.LEVEL_LOCKED)) { - for(var i = 0; i < forge.log.levels.length; ++i) { - var aValidLevel = forge.log.levels[i]; - if(level == aValidLevel) { - // set level - logger.level = level; - rval = true; - break; + // if we have multiple next() calls + // we will wait for the previous Promise to finish + // this logic is optimized to support for await loops, + // where next() is only called once at a time + var lastPromise = this[kLastPromise]; + var promise; + if (lastPromise) { + promise = new Promise(wrapForNext(lastPromise, this)); + } else { + // fast path needed to support multiple this.push() + // without triggering the next() queue + var data = this[kStream].read(); + if (data !== null) { + return Promise.resolve(createIterResult(data, false)); } + promise = new Promise(this[kHandlePromise]); } + this[kLastPromise] = promise; + return promise; } - - return rval; +}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () { + return this; +}), _defineProperty(_Object$setPrototypeO, "return", function _return() { + var _this2 = this; + // destroy(err, cb) is a private API + // we can guarantee we have that here, because we control the + // Readable class this is attached to + return new Promise(function (resolve, reject) { + _this2[kStream].destroy(null, function (err) { + if (err) { + reject(err); + return; + } + resolve(createIterResult(undefined, true)); + }); + }); +}), _Object$setPrototypeO), AsyncIteratorPrototype); +var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) { + var _Object$create; + var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { + value: stream, + writable: true + }), _defineProperty(_Object$create, kLastResolve, { + value: null, + writable: true + }), _defineProperty(_Object$create, kLastReject, { + value: null, + writable: true + }), _defineProperty(_Object$create, kError, { + value: null, + writable: true + }), _defineProperty(_Object$create, kEnded, { + value: stream._readableState.endEmitted, + writable: true + }), _defineProperty(_Object$create, kHandlePromise, { + value: function value(resolve, reject) { + var data = iterator[kStream].read(); + if (data) { + iterator[kLastPromise] = null; + iterator[kLastResolve] = null; + iterator[kLastReject] = null; + resolve(createIterResult(data, false)); + } else { + iterator[kLastResolve] = resolve; + iterator[kLastReject] = reject; + } + }, + writable: true + }), _Object$create)); + iterator[kLastPromise] = null; + finished(stream, function (err) { + if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { + var reject = iterator[kLastReject]; + // reject if we are waiting for data in the Promise + // returned by next() and store the error + if (reject !== null) { + iterator[kLastPromise] = null; + iterator[kLastResolve] = null; + iterator[kLastReject] = null; + reject(err); + } + iterator[kError] = err; + return; + } + var resolve = iterator[kLastResolve]; + if (resolve !== null) { + iterator[kLastPromise] = null; + iterator[kLastResolve] = null; + iterator[kLastReject] = null; + resolve(createIterResult(undefined, true)); + } + iterator[kEnded] = true; + }); + stream.on('readable', onReadable.bind(null, iterator)); + return iterator; }; +module.exports = createReadableStreamAsyncIterator; -/** - * Locks the log level at its current value. - * - * @param logger the target logger. - * @param lock boolean lock value, default to true. - */ -forge.log.lock = function(logger, lock) { - if(typeof lock === 'undefined' || lock) { - logger.flags |= forge.log.LEVEL_LOCKED; - } else { - logger.flags &= ~forge.log.LEVEL_LOCKED; - } -}; +/***/ }), -/** - * Adds a logger. - * - * @param logger the logger object. - */ -forge.log.addLogger = function(logger) { - sLoggers.push(logger); -}; +/***/ 29269: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// setup the console logger if possible, else create fake console.log -if(typeof(console) !== 'undefined' && 'log' in console) { - var logger; - if(console.error && console.warn && console.info && console.debug) { - // looks like Firebug-style logging is available - // level handlers map - var levelHandlers = { - error: console.error, - warning: console.warn, - info: console.info, - debug: console.debug, - verbose: console.debug - }; - var f = function(logger, message) { - forge.log.prepareStandard(message); - var handler = levelHandlers[message.level]; - // prepend standard message and concat args - var args = [message.standard]; - args = args.concat(message['arguments'].slice()); - // apply to low-level console function - handler.apply(console, args); - }; - logger = forge.log.makeLogger(f); - } else { - // only appear to have basic console.log - var f = function(logger, message) { - forge.log.prepareStandardFull(message); - console.log(message.standardFull); - }; - logger = forge.log.makeLogger(f); - } - forge.log.setLevel(logger, 'debug'); - forge.log.addLogger(logger); - sConsoleLogger = logger; -} else { - // define fake console.log to avoid potential script errors on - // browsers that do not have console logging - console = { - log: function() {} - }; +"use strict"; + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +var _require = __nccwpck_require__(20181), + Buffer = _require.Buffer; +var _require2 = __nccwpck_require__(39023), + inspect = _require2.inspect; +var custom = inspect && inspect.custom || 'inspect'; +function copyBuffer(src, target, offset) { + Buffer.prototype.copy.call(src, target, offset); } +module.exports = /*#__PURE__*/function () { + function BufferList() { + _classCallCheck(this, BufferList); + this.head = null; + this.tail = null; + this.length = 0; + } + _createClass(BufferList, [{ + key: "push", + value: function push(v) { + var entry = { + data: v, + next: null + }; + if (this.length > 0) this.tail.next = entry;else this.head = entry; + this.tail = entry; + ++this.length; + } + }, { + key: "unshift", + value: function unshift(v) { + var entry = { + data: v, + next: this.head + }; + if (this.length === 0) this.tail = entry; + this.head = entry; + ++this.length; + } + }, { + key: "shift", + value: function shift() { + if (this.length === 0) return; + var ret = this.head.data; + if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; + --this.length; + return ret; + } + }, { + key: "clear", + value: function clear() { + this.head = this.tail = null; + this.length = 0; + } + }, { + key: "join", + value: function join(s) { + if (this.length === 0) return ''; + var p = this.head; + var ret = '' + p.data; + while (p = p.next) ret += s + p.data; + return ret; + } + }, { + key: "concat", + value: function concat(n) { + if (this.length === 0) return Buffer.alloc(0); + var ret = Buffer.allocUnsafe(n >>> 0); + var p = this.head; + var i = 0; + while (p) { + copyBuffer(p.data, ret, i); + i += p.data.length; + p = p.next; + } + return ret; + } -/* - * Check for logging control query vars in current URL. - * - * console.level= - * Set's the console log level by name. Useful to override defaults and - * allow more verbose logging before a user config is loaded. - * - * console.lock= - * Lock the console log level at whatever level it is set at. This is run - * after console.level is processed. Useful to force a level of verbosity - * that could otherwise be limited by a user config. - */ -if(sConsoleLogger !== null && - typeof window !== 'undefined' && window.location -) { - var query = new URL(window.location.href).searchParams; - if(query.has('console.level')) { - // set with last value - forge.log.setLevel( - sConsoleLogger, query.get('console.level').slice(-1)[0]); - } - if(query.has('console.lock')) { - // set with last value - var lock = query.get('console.lock').slice(-1)[0]; - if(lock == 'true') { - forge.log.lock(sConsoleLogger); + // Consumes a specified amount of bytes or characters from the buffered data. + }, { + key: "consume", + value: function consume(n, hasStrings) { + var ret; + if (n < this.head.data.length) { + // `slice` is the same for buffers and strings. + ret = this.head.data.slice(0, n); + this.head.data = this.head.data.slice(n); + } else if (n === this.head.data.length) { + // First chunk is a perfect match. + ret = this.shift(); + } else { + // Result spans more than one buffer. + ret = hasStrings ? this._getString(n) : this._getBuffer(n); + } + return ret; + } + }, { + key: "first", + value: function first() { + return this.head.data; + } + + // Consumes a specified amount of characters from the buffered data. + }, { + key: "_getString", + value: function _getString(n) { + var p = this.head; + var c = 1; + var ret = p.data; + n -= ret.length; + while (p = p.next) { + var str = p.data; + var nb = n > str.length ? str.length : n; + if (nb === str.length) ret += str;else ret += str.slice(0, n); + n -= nb; + if (n === 0) { + if (nb === str.length) { + ++c; + if (p.next) this.head = p.next;else this.head = this.tail = null; + } else { + this.head = p; + p.data = str.slice(nb); + } + break; + } + ++c; + } + this.length -= c; + return ret; } - } -} -// provide public access to console logger -forge.log.consoleLogger = sConsoleLogger; + // Consumes a specified amount of bytes from the buffered data. + }, { + key: "_getBuffer", + value: function _getBuffer(n) { + var ret = Buffer.allocUnsafe(n); + var p = this.head; + var c = 1; + p.data.copy(ret); + n -= p.data.length; + while (p = p.next) { + var buf = p.data; + var nb = n > buf.length ? buf.length : n; + buf.copy(ret, ret.length - n, 0, nb); + n -= nb; + if (n === 0) { + if (nb === buf.length) { + ++c; + if (p.next) this.head = p.next;else this.head = this.tail = null; + } else { + this.head = p; + p.data = buf.slice(nb); + } + break; + } + ++c; + } + this.length -= c; + return ret; + } + // Make sure the linked list only shows the minimal necessary information. + }, { + key: custom, + value: function value(_, options) { + return inspect(this, _objectSpread(_objectSpread({}, options), {}, { + // Only inspect one level. + depth: 0, + // It should not recurse. + customInspect: false + })); + } + }]); + return BufferList; +}(); /***/ }), -/***/ 24061: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 66860: +/***/ ((module) => { -/** - * Node.js module for all known Forge message digests. - * - * @author Dave Longley - * - * Copyright 2011-2017 Digital Bazaar, Inc. - */ -module.exports = __nccwpck_require__(70952); +"use strict"; + + +// undocumented cb() API, needed for core, not for public API +function destroy(err, cb) { + var _this = this; + var readableDestroyed = this._readableState && this._readableState.destroyed; + var writableDestroyed = this._writableState && this._writableState.destroyed; + if (readableDestroyed || writableDestroyed) { + if (cb) { + cb(err); + } else if (err) { + if (!this._writableState) { + process.nextTick(emitErrorNT, this, err); + } else if (!this._writableState.errorEmitted) { + this._writableState.errorEmitted = true; + process.nextTick(emitErrorNT, this, err); + } + } + return this; + } -__nccwpck_require__(10469); -__nccwpck_require__(7584); -__nccwpck_require__(58862); -__nccwpck_require__(38250); + // we set destroyed to true before firing error callbacks in order + // to make it re-entrance safe in case destroy() is called within callbacks + + if (this._readableState) { + this._readableState.destroyed = true; + } + // if this is a duplex stream mark the writable part as destroyed as well + if (this._writableState) { + this._writableState.destroyed = true; + } + this._destroy(err || null, function (err) { + if (!cb && err) { + if (!_this._writableState) { + process.nextTick(emitErrorAndCloseNT, _this, err); + } else if (!_this._writableState.errorEmitted) { + _this._writableState.errorEmitted = true; + process.nextTick(emitErrorAndCloseNT, _this, err); + } else { + process.nextTick(emitCloseNT, _this); + } + } else if (cb) { + process.nextTick(emitCloseNT, _this); + cb(err); + } else { + process.nextTick(emitCloseNT, _this); + } + }); + return this; +} +function emitErrorAndCloseNT(self, err) { + emitErrorNT(self, err); + emitCloseNT(self); +} +function emitCloseNT(self) { + if (self._writableState && !self._writableState.emitClose) return; + if (self._readableState && !self._readableState.emitClose) return; + self.emit('close'); +} +function undestroy() { + if (this._readableState) { + this._readableState.destroyed = false; + this._readableState.reading = false; + this._readableState.ended = false; + this._readableState.endEmitted = false; + } + if (this._writableState) { + this._writableState.destroyed = false; + this._writableState.ended = false; + this._writableState.ending = false; + this._writableState.finalCalled = false; + this._writableState.prefinished = false; + this._writableState.finished = false; + this._writableState.errorEmitted = false; + } +} +function emitErrorNT(self, err) { + self.emit('error', err); +} +function errorOrDestroy(stream, err) { + // We have tests that rely on errors being emitted + // in the same tick, so changing this is semver major. + // For now when you opt-in to autoDestroy we allow + // the error to be emitted nextTick. In a future + // semver major update we should change the default to this. + + var rState = stream._readableState; + var wState = stream._writableState; + if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err); +} +module.exports = { + destroy: destroy, + undestroy: undestroy, + errorOrDestroy: errorOrDestroy +}; /***/ }), -/***/ 70952: +/***/ 33106: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Node.js module for Forge message digests. - * - * @author Dave Longley - * - * Copyright 2011-2017 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(46588); +"use strict"; +// Ported from https://github.com/mafintosh/end-of-stream with +// permission from the author, Mathias Buus (@mafintosh). + -module.exports = forge.md = forge.md || {}; -forge.md.algorithms = forge.md.algorithms || {}; +var ERR_STREAM_PREMATURE_CLOSE = (__nccwpck_require__(81573)/* .codes */ .F).ERR_STREAM_PREMATURE_CLOSE; +function once(callback) { + var called = false; + return function () { + if (called) return; + called = true; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + callback.apply(this, args); + }; +} +function noop() {} +function isRequest(stream) { + return stream.setHeader && typeof stream.abort === 'function'; +} +function eos(stream, opts, callback) { + if (typeof opts === 'function') return eos(stream, null, opts); + if (!opts) opts = {}; + callback = once(callback || noop); + var readable = opts.readable || opts.readable !== false && stream.readable; + var writable = opts.writable || opts.writable !== false && stream.writable; + var onlegacyfinish = function onlegacyfinish() { + if (!stream.writable) onfinish(); + }; + var writableEnded = stream._writableState && stream._writableState.finished; + var onfinish = function onfinish() { + writable = false; + writableEnded = true; + if (!readable) callback.call(stream); + }; + var readableEnded = stream._readableState && stream._readableState.endEmitted; + var onend = function onend() { + readable = false; + readableEnded = true; + if (!writable) callback.call(stream); + }; + var onerror = function onerror(err) { + callback.call(stream, err); + }; + var onclose = function onclose() { + var err; + if (readable && !readableEnded) { + if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); + return callback.call(stream, err); + } + if (writable && !writableEnded) { + if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); + return callback.call(stream, err); + } + }; + var onrequest = function onrequest() { + stream.req.on('finish', onfinish); + }; + if (isRequest(stream)) { + stream.on('complete', onfinish); + stream.on('abort', onclose); + if (stream.req) onrequest();else stream.on('request', onrequest); + } else if (writable && !stream._writableState) { + // legacy streams + stream.on('end', onlegacyfinish); + stream.on('close', onlegacyfinish); + } + stream.on('end', onend); + stream.on('finish', onfinish); + if (opts.error !== false) stream.on('error', onerror); + stream.on('close', onclose); + return function () { + stream.removeListener('complete', onfinish); + stream.removeListener('abort', onclose); + stream.removeListener('request', onrequest); + if (stream.req) stream.req.removeListener('finish', onfinish); + stream.removeListener('end', onlegacyfinish); + stream.removeListener('close', onlegacyfinish); + stream.removeListener('finish', onfinish); + stream.removeListener('end', onend); + stream.removeListener('error', onerror); + stream.removeListener('close', onclose); + }; +} +module.exports = eos; /***/ }), -/***/ 10469: +/***/ 8280: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(70952); -__nccwpck_require__(21720); +"use strict"; -var md5 = module.exports = forge.md5 = forge.md5 || {}; -forge.md.md5 = forge.md.algorithms.md5 = md5; -/** - * Creates an MD5 message digest object. - * - * @return a message digest object. - */ -md5.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +var ERR_INVALID_ARG_TYPE = (__nccwpck_require__(81573)/* .codes */ .F).ERR_INVALID_ARG_TYPE; +function from(Readable, iterable, opts) { + var iterator; + if (iterable && typeof iterable.next === 'function') { + iterator = iterable; + } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable); + var readable = new Readable(_objectSpread({ + objectMode: true + }, opts)); + // Reading boolean to protect against _read + // being called before last iteration completion. + var reading = false; + readable._read = function () { + if (!reading) { + reading = true; + next(); + } + }; + function next() { + return _next2.apply(this, arguments); + } + function _next2() { + _next2 = _asyncToGenerator(function* () { + try { + var _yield$iterator$next = yield iterator.next(), + value = _yield$iterator$next.value, + done = _yield$iterator$next.done; + if (done) { + readable.push(null); + } else if (readable.push(yield value)) { + next(); + } else { + reading = false; + } + } catch (err) { + readable.destroy(err); + } + }); + return _next2.apply(this, arguments); } + return readable; +} +module.exports = from; - // MD5 state contains four 32-bit integers - var _state = null; - // input buffer - var _input = forge.util.createBuffer(); +/***/ }), - // used for word storage - var _w = new Array(16); +/***/ 30250: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // message digest object - var md = { - algorithm: 'md5', - blockLength: 64, - digestLength: 16, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 8 - }; +"use strict"; +// Ported from https://github.com/mafintosh/pump with +// permission from the author, Mathias Buus (@mafintosh). - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - // full message length (set md.messageLength64 for backwards-compatibility) - md.fullMessageLength = md.messageLength64 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _state = { - h0: 0x67452301, - h1: 0xEFCDAB89, - h2: 0x98BADCFE, - h3: 0x10325476 - }; - return md; + +var eos; +function once(callback) { + var called = false; + return function () { + if (called) return; + called = true; + callback.apply(void 0, arguments); }; - // start digest automatically for first time - md.start(); +} +var _require$codes = (__nccwpck_require__(81573)/* .codes */ .F), + ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, + ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; +function noop(err) { + // Rethrow the error if it exists to avoid swallowing it + if (err) throw err; +} +function isRequest(stream) { + return stream.setHeader && typeof stream.abort === 'function'; +} +function destroyer(stream, reading, writing, callback) { + callback = once(callback); + var closed = false; + stream.on('close', function () { + closed = true; + }); + if (eos === undefined) eos = __nccwpck_require__(33106); + eos(stream, { + readable: reading, + writable: writing + }, function (err) { + if (err) return callback(err); + closed = true; + callback(); + }); + var destroyed = false; + return function (err) { + if (closed) return; + if (destroyed) return; + destroyed = true; + + // request.destroy just do .end - .abort is what we want + if (isRequest(stream)) return stream.abort(); + if (typeof stream.destroy === 'function') return stream.destroy(); + callback(err || new ERR_STREAM_DESTROYED('pipe')); + }; +} +function call(fn) { + fn(); +} +function pipe(from, to) { + return from.pipe(to); +} +function popCallback(streams) { + if (!streams.length) return noop; + if (typeof streams[streams.length - 1] !== 'function') return noop; + return streams.pop(); +} +function pipeline() { + for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { + streams[_key] = arguments[_key]; + } + var callback = popCallback(streams); + if (Array.isArray(streams[0])) streams = streams[0]; + if (streams.length < 2) { + throw new ERR_MISSING_ARGS('streams'); + } + var error; + var destroys = streams.map(function (stream, i) { + var reading = i < streams.length - 1; + var writing = i > 0; + return destroyer(stream, reading, writing, function (err) { + if (!error) error = err; + if (err) destroys.forEach(call); + if (reading) return; + destroys.forEach(call); + callback(error); + }); + }); + return streams.reduce(pipe); +} +module.exports = pipeline; - /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. - */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } +/***/ }), - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = (len[1] / 0x100000000) >>> 0; - } +/***/ 37687: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // add bytes to input buffer - _input.putBytes(msg); +"use strict"; - // process bytes - _update(_state, _w, _input); - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); +var ERR_INVALID_OPT_VALUE = (__nccwpck_require__(81573)/* .codes */ .F).ERR_INVALID_OPT_VALUE; +function highWaterMarkFrom(options, isDuplex, duplexKey) { + return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; +} +function getHighWaterMark(state, options, duplexKey, isDuplex) { + var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); + if (hwm != null) { + if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { + var name = isDuplex ? duplexKey : 'highWaterMark'; + throw new ERR_INVALID_OPT_VALUE(name, hwm); } + return Math.floor(hwm); + } - return md; - }; - - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate MD5 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ + // Default value + return state.objectMode ? 16 : 16 * 1024; +} +module.exports = { + getHighWaterMark: getHighWaterMark +}; - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 448 mod 512. In other words, - the data to be digested must be a multiple of 512 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 8 bytes (64 - bits), that means that the last segment of the data must have 56 bytes - (448 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 448 mod 512 because - 512 - 128 = 448. +/***/ }), - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 448 mod 512, then 512 padding bits must be added. */ +/***/ 78748: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); +module.exports = __nccwpck_require__(2203); - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); +/***/ }), - // serialize message length in bits in little-endian order; since length - // is stored in bytes we multiply by 8 and add carry - var bits, carry = 0; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - bits = md.fullMessageLength[i] * 8 + carry; - carry = (bits / 0x100000000) >>> 0; - finalBlock.putInt32Le(bits >>> 0); - } +/***/ 89482: +/***/ ((module, exports, __nccwpck_require__) => { - var s2 = { - h0: _state.h0, - h1: _state.h1, - h2: _state.h2, - h3: _state.h3 - }; - _update(s2, _w, finalBlock); - var rval = forge.util.createBuffer(); - rval.putInt32Le(s2.h0); - rval.putInt32Le(s2.h1); - rval.putInt32Le(s2.h2); - rval.putInt32Le(s2.h3); - return rval; - }; +var Stream = __nccwpck_require__(2203); +if (process.env.READABLE_STREAM === 'disable' && Stream) { + module.exports = Stream.Readable; + Object.assign(module.exports, Stream); + module.exports.Stream = Stream; +} else { + exports = module.exports = __nccwpck_require__(78112); + exports.Stream = Stream || exports; + exports.Readable = exports; + exports.Writable = __nccwpck_require__(9792); + exports.Duplex = __nccwpck_require__(79810); + exports.Transform = __nccwpck_require__(49230); + exports.PassThrough = __nccwpck_require__(39748); + exports.finished = __nccwpck_require__(33106); + exports.pipeline = __nccwpck_require__(30250); +} - return md; -}; -// padding, constant tables for calculating md5 -var _padding = null; -var _g = null; -var _r = null; -var _k = null; -var _initialized = false; +/***/ }), -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 64); +/***/ 42313: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // g values - _g = [ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 1, 6, 11, 0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, - 5, 8, 11, 14, 1, 4, 7, 10, 13, 0, 3, 6, 9, 12, 15, 2, - 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9]; +"use strict"; - // rounds table - _r = [ - 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, - 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, - 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, - 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]; - // get the result of abs(sin(i + 1)) as a 32-bit integer - _k = new Array(64); - for(var i = 0; i < 64; ++i) { - _k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 0x100000000); - } +const {PassThrough} = __nccwpck_require__(2203); +const extend = __nccwpck_require__(92229); - // now initialized - _initialized = true; +let debug = () => {}; +if ( + typeof process !== 'undefined' && + 'env' in process && + typeof process.env === 'object' && + process.env.DEBUG === 'retry-request' +) { + debug = message => { + console.log('retry-request:', message); + }; } -/** - * Updates an MD5 state with the given byte buffer. - * - * @param s the MD5 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (64 byte) chunks - var t, a, b, c, d, f, r, i; - var len = bytes.length(); - while(len >= 64) { - // initialize hash value for this chunk - a = s.h0; - b = s.h1; - c = s.h2; - d = s.h3; - - // round 1 - for(i = 0; i < 16; ++i) { - w[i] = bytes.getInt32Le(); - f = d ^ (b & (c ^ d)); - t = (a + f + _k[i] + w[i]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 2 - for(; i < 32; ++i) { - f = c ^ (d & (b ^ c)); - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 3 - for(; i < 48; ++i) { - f = b ^ c ^ d; - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 4 - for(; i < 64; ++i) { - f = c ^ (b | ~d); - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } +const DEFAULTS = { + objectMode: false, + retries: 2, - // update hash state - s.h0 = (s.h0 + a) | 0; - s.h1 = (s.h1 + b) | 0; - s.h2 = (s.h2 + c) | 0; - s.h3 = (s.h3 + d) | 0; + /* + The maximum time to delay in seconds. If retryDelayMultiplier results in a + delay greater than maxRetryDelay, retries should delay by maxRetryDelay + seconds instead. + */ + maxRetryDelay: 64, - len -= 64; - } -} + /* + The multiplier by which to increase the delay time between the completion of + failed requests, and the initiation of the subsequent retrying request. + */ + retryDelayMultiplier: 2, + /* + The length of time to keep retrying in seconds. The last sleep period will + be shortened as necessary, so that the last retry runs at deadline (and not + considerably beyond it). The total time starting from when the initial + request is sent, after which an error will be returned, regardless of the + retrying attempts made meanwhile. + */ + totalTimeout: 600, -/***/ }), + noResponseRetries: 2, + currentRetryAttempt: 0, + shouldRetryFn: function (response) { + const retryRanges = [ + // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes + // 1xx - Retry (Informational, request still processing) + // 2xx - Do not retry (Success) + // 3xx - Do not retry (Redirect) + // 4xx - Do not retry (Client errors) + // 429 - Retry ("Too Many Requests") + // 5xx - Retry (Server errors) + [100, 199], + [429, 429], + [500, 599], + ]; -/***/ 97625: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + const statusCode = response.statusCode; + debug(`Response status: ${statusCode}`); -/** - * Node.js module for Forge mask generation functions. - * - * @author Stefan Siegl - * - * Copyright 2012 Stefan Siegl - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(50870); + let range; + while ((range = retryRanges.shift())) { + if (statusCode >= range[0] && statusCode <= range[1]) { + // Not a successful status or redirect. + return true; + } + } + }, +}; -module.exports = forge.mgf = forge.mgf || {}; -forge.mgf.mgf1 = forge.mgf1; +function retryRequest(requestOpts, opts, callback) { + if (typeof requestOpts === 'string') { + requestOpts = {url: requestOpts}; + } + const streamMode = typeof arguments[arguments.length - 1] !== 'function'; -/***/ }), + if (typeof opts === 'function') { + callback = opts; + } -/***/ 50870: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + const manualCurrentRetryAttemptWasSet = + opts && typeof opts.currentRetryAttempt === 'number'; + opts = extend({}, DEFAULTS, opts); -/** - * Javascript implementation of mask generation function MGF1. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(21720); + if (typeof opts.request === 'undefined') { + throw new Error('A request library must be provided to retry-request.'); + } -forge.mgf = forge.mgf || {}; -var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {}; + let currentRetryAttempt = opts.currentRetryAttempt; -/** - * Creates a MGF1 mask generation function object. - * - * @param md the message digest API to use (eg: forge.md.sha1.create()). - * - * @return a mask generation function object. - */ -mgf1.create = function(md) { - var mgf = { - /** - * Generate mask of specified length. - * - * @param {String} seed The seed for mask generation. - * @param maskLen Number of bytes to generate. - * @return {String} The generated mask. - */ - generate: function(seed, maskLen) { - /* 2. Let T be the empty octet string. */ - var t = new forge.util.ByteBuffer(); + let numNoResponseAttempts = 0; + let streamResponseHandled = false; - /* 3. For counter from 0 to ceil(maskLen / hLen), do the following: */ - var len = Math.ceil(maskLen / md.digestLength); - for(var i = 0; i < len; i++) { - /* a. Convert counter to an octet string C of length 4 octets */ - var c = new forge.util.ByteBuffer(); - c.putInt32(i); + let retryStream; + let requestStream; + let delayStream; - /* b. Concatenate the hash of the seed mgfSeed and C to the octet - * string T: */ - md.start(); - md.update(seed + c.getBytes()); - t.putBuffer(md.digest()); + let activeRequest; + const retryRequest = { + abort: function () { + if (activeRequest && activeRequest.abort) { + activeRequest.abort(); } - - /* Output the leading maskLen octets of T as the octet string mask. */ - t.truncate(t.length() - maskLen); - return t.getBytes(); - } + }, }; - return mgf; -}; + if (streamMode) { + retryStream = new PassThrough({objectMode: opts.objectMode}); + retryStream.abort = resetStreams; + } + const timeOfFirstRequest = Date.now(); + if (currentRetryAttempt > 0) { + retryAfterDelay(currentRetryAttempt); + } else { + makeRequest(); + } -/***/ }), + if (streamMode) { + return retryStream; + } else { + return retryRequest; + } -/***/ 95542: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + function resetStreams() { + delayStream = null; -/** - * Object IDs for ASN.1. - * - * @author Dave Longley - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(46588); + if (requestStream) { + requestStream.abort && requestStream.abort(); + requestStream.cancel && requestStream.cancel(); -forge.pki = forge.pki || {}; -var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {}; + if (requestStream.destroy) { + requestStream.destroy(); + } else if (requestStream.end) { + requestStream.end(); + } + } + } -// set id to name mapping and name to id mapping -function _IN(id, name) { - oids[id] = name; - oids[name] = id; -} -// set id to name mapping only -function _I_(id, name) { - oids[id] = name; -} + function makeRequest() { + let finishHandled = false; + currentRetryAttempt++; + debug(`Current retry attempt: ${currentRetryAttempt}`); -// algorithm OIDs -_IN('1.2.840.113549.1.1.1', 'rsaEncryption'); -// Note: md2 & md4 not implemented -//_IN('1.2.840.113549.1.1.2', 'md2WithRSAEncryption'); -//_IN('1.2.840.113549.1.1.3', 'md4WithRSAEncryption'); -_IN('1.2.840.113549.1.1.4', 'md5WithRSAEncryption'); -_IN('1.2.840.113549.1.1.5', 'sha1WithRSAEncryption'); -_IN('1.2.840.113549.1.1.7', 'RSAES-OAEP'); -_IN('1.2.840.113549.1.1.8', 'mgf1'); -_IN('1.2.840.113549.1.1.9', 'pSpecified'); -_IN('1.2.840.113549.1.1.10', 'RSASSA-PSS'); -_IN('1.2.840.113549.1.1.11', 'sha256WithRSAEncryption'); -_IN('1.2.840.113549.1.1.12', 'sha384WithRSAEncryption'); -_IN('1.2.840.113549.1.1.13', 'sha512WithRSAEncryption'); -// Edwards-curve Digital Signature Algorithm (EdDSA) Ed25519 -_IN('1.3.101.112', 'EdDSA25519'); + function handleFinish(args = []) { + if (!finishHandled) { + finishHandled = true; + retryStream.emit('complete', ...args); + } + } -_IN('1.2.840.10040.4.3', 'dsa-with-sha1'); + if (streamMode) { + streamResponseHandled = false; -_IN('1.3.14.3.2.7', 'desCBC'); + delayStream = new PassThrough({objectMode: opts.objectMode}); + requestStream = opts.request(requestOpts); -_IN('1.3.14.3.2.26', 'sha1'); -// Deprecated equivalent of sha1WithRSAEncryption -_IN('1.3.14.3.2.29', 'sha1WithRSASignature'); -_IN('2.16.840.1.101.3.4.2.1', 'sha256'); -_IN('2.16.840.1.101.3.4.2.2', 'sha384'); -_IN('2.16.840.1.101.3.4.2.3', 'sha512'); -_IN('2.16.840.1.101.3.4.2.4', 'sha224'); -_IN('2.16.840.1.101.3.4.2.5', 'sha512-224'); -_IN('2.16.840.1.101.3.4.2.6', 'sha512-256'); -_IN('1.2.840.113549.2.2', 'md2'); -_IN('1.2.840.113549.2.5', 'md5'); + setImmediate(() => { + retryStream.emit('request'); + }); -// pkcs#7 content types -_IN('1.2.840.113549.1.7.1', 'data'); -_IN('1.2.840.113549.1.7.2', 'signedData'); -_IN('1.2.840.113549.1.7.3', 'envelopedData'); -_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData'); -_IN('1.2.840.113549.1.7.5', 'digestedData'); -_IN('1.2.840.113549.1.7.6', 'encryptedData'); + requestStream + // gRPC via google-cloud-node can emit an `error` as well as a `response` + // Whichever it emits, we run with-- we can't run with both. That's what + // is up with the `streamResponseHandled` tracking. + .on('error', err => { + if (streamResponseHandled) { + return; + } -// pkcs#9 oids -_IN('1.2.840.113549.1.9.1', 'emailAddress'); -_IN('1.2.840.113549.1.9.2', 'unstructuredName'); -_IN('1.2.840.113549.1.9.3', 'contentType'); -_IN('1.2.840.113549.1.9.4', 'messageDigest'); -_IN('1.2.840.113549.1.9.5', 'signingTime'); -_IN('1.2.840.113549.1.9.6', 'counterSignature'); -_IN('1.2.840.113549.1.9.7', 'challengePassword'); -_IN('1.2.840.113549.1.9.8', 'unstructuredAddress'); -_IN('1.2.840.113549.1.9.14', 'extensionRequest'); + streamResponseHandled = true; + onResponse(err); + }) + .on('response', (resp, body) => { + if (streamResponseHandled) { + return; + } -_IN('1.2.840.113549.1.9.20', 'friendlyName'); -_IN('1.2.840.113549.1.9.21', 'localKeyId'); -_IN('1.2.840.113549.1.9.22.1', 'x509Certificate'); + streamResponseHandled = true; + onResponse(null, resp, body); + }) + .on('complete', (...params) => handleFinish(params)) + .on('finish', (...params) => handleFinish(params)); -// pkcs#12 safe bags -_IN('1.2.840.113549.1.12.10.1.1', 'keyBag'); -_IN('1.2.840.113549.1.12.10.1.2', 'pkcs8ShroudedKeyBag'); -_IN('1.2.840.113549.1.12.10.1.3', 'certBag'); -_IN('1.2.840.113549.1.12.10.1.4', 'crlBag'); -_IN('1.2.840.113549.1.12.10.1.5', 'secretBag'); -_IN('1.2.840.113549.1.12.10.1.6', 'safeContentsBag'); + requestStream.pipe(delayStream); + } else { + activeRequest = opts.request(requestOpts, onResponse); + } + } -// password-based-encryption for pkcs#12 -_IN('1.2.840.113549.1.5.13', 'pkcs5PBES2'); -_IN('1.2.840.113549.1.5.12', 'pkcs5PBKDF2'); + function retryAfterDelay(currentRetryAttempt) { + if (streamMode) { + resetStreams(); + } -_IN('1.2.840.113549.1.12.1.1', 'pbeWithSHAAnd128BitRC4'); -_IN('1.2.840.113549.1.12.1.2', 'pbeWithSHAAnd40BitRC4'); -_IN('1.2.840.113549.1.12.1.3', 'pbeWithSHAAnd3-KeyTripleDES-CBC'); -_IN('1.2.840.113549.1.12.1.4', 'pbeWithSHAAnd2-KeyTripleDES-CBC'); -_IN('1.2.840.113549.1.12.1.5', 'pbeWithSHAAnd128BitRC2-CBC'); -_IN('1.2.840.113549.1.12.1.6', 'pbewithSHAAnd40BitRC2-CBC'); + const nextRetryDelay = getNextRetryDelay({ + maxRetryDelay: opts.maxRetryDelay, + retryDelayMultiplier: opts.retryDelayMultiplier, + retryNumber: currentRetryAttempt, + timeOfFirstRequest, + totalTimeout: opts.totalTimeout, + }); + debug(`Next retry delay: ${nextRetryDelay}`); -// hmac OIDs -_IN('1.2.840.113549.2.7', 'hmacWithSHA1'); -_IN('1.2.840.113549.2.8', 'hmacWithSHA224'); -_IN('1.2.840.113549.2.9', 'hmacWithSHA256'); -_IN('1.2.840.113549.2.10', 'hmacWithSHA384'); -_IN('1.2.840.113549.2.11', 'hmacWithSHA512'); + if (nextRetryDelay <= 0) { + numNoResponseAttempts = opts.noResponseRetries + 1; + return; + } -// symmetric key algorithm oids -_IN('1.2.840.113549.3.7', 'des-EDE3-CBC'); -_IN('2.16.840.1.101.3.4.1.2', 'aes128-CBC'); -_IN('2.16.840.1.101.3.4.1.22', 'aes192-CBC'); -_IN('2.16.840.1.101.3.4.1.42', 'aes256-CBC'); + setTimeout(makeRequest, nextRetryDelay); + } -// certificate issuer/subject OIDs -_IN('2.5.4.3', 'commonName'); -_IN('2.5.4.4', 'surname'); -_IN('2.5.4.5', 'serialNumber'); -_IN('2.5.4.6', 'countryName'); -_IN('2.5.4.7', 'localityName'); -_IN('2.5.4.8', 'stateOrProvinceName'); -_IN('2.5.4.9', 'streetAddress'); -_IN('2.5.4.10', 'organizationName'); -_IN('2.5.4.11', 'organizationalUnitName'); -_IN('2.5.4.12', 'title'); -_IN('2.5.4.13', 'description'); -_IN('2.5.4.15', 'businessCategory'); -_IN('2.5.4.17', 'postalCode'); -_IN('2.5.4.42', 'givenName'); -_IN('1.3.6.1.4.1.311.60.2.1.2', 'jurisdictionOfIncorporationStateOrProvinceName'); -_IN('1.3.6.1.4.1.311.60.2.1.3', 'jurisdictionOfIncorporationCountryName'); + function onResponse(err, response, body) { + // An error such as DNS resolution. + if (err) { + numNoResponseAttempts++; -// X.509 extension OIDs -_IN('2.16.840.1.113730.1.1', 'nsCertType'); -_IN('2.16.840.1.113730.1.13', 'nsComment'); // deprecated in theory; still widely used -_I_('2.5.29.1', 'authorityKeyIdentifier'); // deprecated, use .35 -_I_('2.5.29.2', 'keyAttributes'); // obsolete use .37 or .15 -_I_('2.5.29.3', 'certificatePolicies'); // deprecated, use .32 -_I_('2.5.29.4', 'keyUsageRestriction'); // obsolete use .37 or .15 -_I_('2.5.29.5', 'policyMapping'); // deprecated use .33 -_I_('2.5.29.6', 'subtreesConstraint'); // obsolete use .30 -_I_('2.5.29.7', 'subjectAltName'); // deprecated use .17 -_I_('2.5.29.8', 'issuerAltName'); // deprecated use .18 -_I_('2.5.29.9', 'subjectDirectoryAttributes'); -_I_('2.5.29.10', 'basicConstraints'); // deprecated use .19 -_I_('2.5.29.11', 'nameConstraints'); // deprecated use .30 -_I_('2.5.29.12', 'policyConstraints'); // deprecated use .36 -_I_('2.5.29.13', 'basicConstraints'); // deprecated use .19 -_IN('2.5.29.14', 'subjectKeyIdentifier'); -_IN('2.5.29.15', 'keyUsage'); -_I_('2.5.29.16', 'privateKeyUsagePeriod'); -_IN('2.5.29.17', 'subjectAltName'); -_IN('2.5.29.18', 'issuerAltName'); -_IN('2.5.29.19', 'basicConstraints'); -_I_('2.5.29.20', 'cRLNumber'); -_I_('2.5.29.21', 'cRLReason'); -_I_('2.5.29.22', 'expirationDate'); -_I_('2.5.29.23', 'instructionCode'); -_I_('2.5.29.24', 'invalidityDate'); -_I_('2.5.29.25', 'cRLDistributionPoints'); // deprecated use .31 -_I_('2.5.29.26', 'issuingDistributionPoint'); // deprecated use .28 -_I_('2.5.29.27', 'deltaCRLIndicator'); -_I_('2.5.29.28', 'issuingDistributionPoint'); -_I_('2.5.29.29', 'certificateIssuer'); -_I_('2.5.29.30', 'nameConstraints'); -_IN('2.5.29.31', 'cRLDistributionPoints'); -_IN('2.5.29.32', 'certificatePolicies'); -_I_('2.5.29.33', 'policyMappings'); -_I_('2.5.29.34', 'policyConstraints'); // deprecated use .36 -_IN('2.5.29.35', 'authorityKeyIdentifier'); -_I_('2.5.29.36', 'policyConstraints'); -_IN('2.5.29.37', 'extKeyUsage'); -_I_('2.5.29.46', 'freshestCRL'); -_I_('2.5.29.54', 'inhibitAnyPolicy'); + if (numNoResponseAttempts <= opts.noResponseRetries) { + retryAfterDelay(numNoResponseAttempts); + } else { + if (streamMode) { + retryStream.emit('error', err); + retryStream.end(); + } else { + callback(err, response, body); + } + } -// extKeyUsage purposes -_IN('1.3.6.1.4.1.11129.2.4.2', 'timestampList'); -_IN('1.3.6.1.5.5.7.1.1', 'authorityInfoAccess'); -_IN('1.3.6.1.5.5.7.3.1', 'serverAuth'); -_IN('1.3.6.1.5.5.7.3.2', 'clientAuth'); -_IN('1.3.6.1.5.5.7.3.3', 'codeSigning'); -_IN('1.3.6.1.5.5.7.3.4', 'emailProtection'); -_IN('1.3.6.1.5.5.7.3.8', 'timeStamping'); + return; + } + // Send the response to see if we should try again. + // NOTE: "currentRetryAttempt" isn't accurate by default, as it counts + // the very first request sent as the first "retry". It is only accurate + // when a user provides their own "currentRetryAttempt" option at + // instantiation. + const adjustedCurrentRetryAttempt = manualCurrentRetryAttemptWasSet + ? currentRetryAttempt + : currentRetryAttempt - 1; + if ( + adjustedCurrentRetryAttempt < opts.retries && + opts.shouldRetryFn(response) + ) { + retryAfterDelay(currentRetryAttempt); + return; + } -/***/ }), + // No more attempts need to be made, just continue on. + if (streamMode) { + retryStream.emit('response', response); + delayStream.pipe(retryStream); + requestStream.on('error', err => { + retryStream.destroy(err); + }); + } else { + callback(err, response, body); + } + } +} -/***/ 81442: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +module.exports = retryRequest; -/** - * Password-based encryption functions. - * - * @author Dave Longley - * @author Stefan Siegl - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - * Copyright (c) 2012 Stefan Siegl - * - * An EncryptedPrivateKeyInfo: - * - * EncryptedPrivateKeyInfo ::= SEQUENCE { - * encryptionAlgorithm EncryptionAlgorithmIdentifier, - * encryptedData EncryptedData } - * - * EncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - * - * EncryptedData ::= OCTET STRING - */ -var forge = __nccwpck_require__(46588); -__nccwpck_require__(24658); -__nccwpck_require__(964); -__nccwpck_require__(3261); -__nccwpck_require__(70952); -__nccwpck_require__(95542); -__nccwpck_require__(45127); -__nccwpck_require__(88217); -__nccwpck_require__(84856); -__nccwpck_require__(40848); -__nccwpck_require__(48406); -__nccwpck_require__(21720); +function getNextRetryDelay(config) { + const { + maxRetryDelay, + retryDelayMultiplier, + retryNumber, + timeOfFirstRequest, + totalTimeout, + } = config; -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} + const maxRetryDelayMs = maxRetryDelay * 1000; + const totalTimeoutMs = totalTimeout * 1000; -// shortcut for asn.1 API -var asn1 = forge.asn1; + const jitter = Math.floor(Math.random() * 1000); + const calculatedNextRetryDelay = + Math.pow(retryDelayMultiplier, retryNumber) * 1000 + jitter; -/* Password-based encryption implementation. */ -var pki = forge.pki = forge.pki || {}; -module.exports = pki.pbe = forge.pbe = forge.pbe || {}; -var oids = pki.oids; + const maxAllowableDelayMs = + totalTimeoutMs - (Date.now() - timeOfFirstRequest); -// validator for an EncryptedPrivateKeyInfo structure -// Note: Currently only works w/algorithm params -var encryptedPrivateKeyValidator = { - name: 'EncryptedPrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedPrivateKeyInfo.encryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encryptionOid' - }, { - name: 'AlgorithmIdentifier.parameters', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'encryptionParams' - }] - }, { - // encryptedData - name: 'EncryptedPrivateKeyInfo.encryptedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encryptedData' - }] -}; + return Math.min( + calculatedNextRetryDelay, + maxAllowableDelayMs, + maxRetryDelayMs + ); +} -// validator for a PBES2Algorithms structure -// Note: Currently only works w/PBKDF2 + AES encryption schemes -var PBES2AlgorithmsValidator = { - name: 'PBES2Algorithms', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.keyDerivationFunc', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.keyDerivationFunc.oid', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'kdfOid' - }, { - name: 'PBES2Algorithms.params', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.params.salt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'kdfSalt' - }, { - name: 'PBES2Algorithms.params.iterationCount', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'kdfIterationCount' - }, { - name: 'PBES2Algorithms.params.keyLength', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - optional: true, - capture: 'keyLength' - }, { - // prf - name: 'PBES2Algorithms.params.prf', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - value: [{ - name: 'PBES2Algorithms.params.prf.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'prfOid' - }] - }] - }] - }, { - name: 'PBES2Algorithms.encryptionScheme', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.encryptionScheme.oid', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encOid' - }, { - name: 'PBES2Algorithms.encryptionScheme.iv', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encIv' - }] - }] -}; +module.exports.defaults = DEFAULTS; +module.exports.getNextRetryDelay = getNextRetryDelay; -var pkcs12PbeParamsValidator = { - name: 'pkcs-12PbeParams', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'pkcs-12PbeParams.salt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'salt' - }, { - name: 'pkcs-12PbeParams.iterations', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'iterations' - }] -}; -/** - * Encrypts a ASN.1 PrivateKeyInfo object, producing an EncryptedPrivateKeyInfo. - * - * PBES2Algorithms ALGORITHM-IDENTIFIER ::= - * { {PBES2-params IDENTIFIED BY id-PBES2}, ...} - * - * id-PBES2 OBJECT IDENTIFIER ::= {pkcs-5 13} - * - * PBES2-params ::= SEQUENCE { - * keyDerivationFunc AlgorithmIdentifier {{PBES2-KDFs}}, - * encryptionScheme AlgorithmIdentifier {{PBES2-Encs}} - * } - * - * PBES2-KDFs ALGORITHM-IDENTIFIER ::= - * { {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... } - * - * PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... } - * - * PBKDF2-params ::= SEQUENCE { - * salt CHOICE { - * specified OCTET STRING, - * otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}} - * }, - * iterationCount INTEGER (1..MAX), - * keyLength INTEGER (1..MAX) OPTIONAL, - * prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 - * } - * - * @param obj the ASN.1 PrivateKeyInfo object. - * @param password the password to encrypt with. - * @param options: - * algorithm the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. - * count the iteration count to use. - * saltSize the salt size to use. - * prfAlgorithm the PRF message digest algorithm to use - * ('sha1', 'sha224', 'sha256', 'sha384', 'sha512') - * - * @return the ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptPrivateKeyInfo = function(obj, password, options) { - // set default options - options = options || {}; - options.saltSize = options.saltSize || 8; - options.count = options.count || 2048; - options.algorithm = options.algorithm || 'aes128'; - options.prfAlgorithm = options.prfAlgorithm || 'sha1'; +/***/ }), - // generate PBE params - var salt = forge.random.getBytesSync(options.saltSize); - var count = options.count; - var countBytes = asn1.integerToDer(count); - var dkLen; - var encryptionAlgorithm; - var encryptedData; - if(options.algorithm.indexOf('aes') === 0 || options.algorithm === 'des') { - // do PBES2 - var ivLen, encOid, cipherFn; - switch(options.algorithm) { - case 'aes128': - dkLen = 16; - ivLen = 16; - encOid = oids['aes128-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes192': - dkLen = 24; - ivLen = 16; - encOid = oids['aes192-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes256': - dkLen = 32; - ivLen = 16; - encOid = oids['aes256-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'des': - dkLen = 8; - ivLen = 8; - encOid = oids['desCBC']; - cipherFn = forge.des.createEncryptionCipher; - break; - default: - var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); - error.algorithm = options.algorithm; - throw error; - } +/***/ 32857: +/***/ ((module, exports, __nccwpck_require__) => { - // get PRF message digest - var prfAlgorithm = 'hmacWith' + options.prfAlgorithm.toUpperCase(); - var md = prfAlgorithmToMessageDigest(prfAlgorithm); +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(20181) +var Buffer = buffer.Buffer - // encrypt private key using pbe SHA-1 and AES/DES - var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); - var iv = forge.random.getBytesSync(ivLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(asn1.toDer(obj)); - cipher.finish(); - encryptedData = cipher.output.getBytes(); +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] + } +} +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} - // get PBKDF2-params - var params = createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm); +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} - encryptionAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pkcs5PBES2']).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // keyDerivationFunc - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pkcs5PBKDF2']).getBytes()), - // PBKDF2-params - params - ]), - // encryptionScheme - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(encOid).getBytes()), - // iv - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, iv) - ]) - ]) - ]); - } else if(options.algorithm === '3des') { - // Do PKCS12 PBE - dkLen = 24; +SafeBuffer.prototype = Object.create(Buffer.prototype) - var saltBytes = new forge.util.ByteBuffer(salt); - var dk = pki.pbe.generatePkcs12Key(password, saltBytes, 1, count, dkLen); - var iv = pki.pbe.generatePkcs12Key(password, saltBytes, 2, count, dkLen); - var cipher = forge.des.createEncryptionCipher(dk); - cipher.start(iv); - cipher.update(asn1.toDer(obj)); - cipher.finish(); - encryptedData = cipher.output.getBytes(); +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) - encryptionAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pbeWithSHAAnd3-KeyTripleDES-CBC']).getBytes()), - // pkcs-12PbeParams - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // salt - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), - // iteration count - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - countBytes.getBytes()) - ]) - ]); +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) + } else { + buf.fill(fill) + } } else { - var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); - error.algorithm = options.algorithm; - throw error; + buf.fill(0) + } + return buf +} + +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') } + return Buffer(size) +} - // EncryptedPrivateKeyInfo - var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // encryptionAlgorithm - encryptionAlgorithm, - // encryptedData - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, encryptedData) - ]); - return rval; -}; +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} -/** - * Decrypts a ASN.1 PrivateKeyInfo object. - * - * @param obj the ASN.1 EncryptedPrivateKeyInfo object. - * @param password the password to decrypt with. - * - * @return the ASN.1 PrivateKeyInfo on success, null on failure. - */ -pki.decryptPrivateKeyInfo = function(obj, password) { - var rval = null; - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(obj, encryptedPrivateKeyValidator, capture, errors)) { - var error = new Error('Cannot read encrypted private key. ' + - 'ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; - } +/***/ }), - // get cipher - var oid = asn1.derToOid(capture.encryptionOid); - var cipher = pki.pbe.getCipher(oid, capture.encryptionParams, password); +/***/ 61463: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // get encrypted data - var encrypted = forge.util.createBuffer(capture.encryptedData); +;(function (sax) { // wrapper for non-node envs + sax.parser = function (strict, opt) { return new SAXParser(strict, opt) } + sax.SAXParser = SAXParser + sax.SAXStream = SAXStream + sax.createStream = createStream - cipher.update(encrypted); - if(cipher.finish()) { - rval = asn1.fromDer(cipher.output); - } + // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns. + // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)), + // since that's the earliest that a buffer overrun could occur. This way, checks are + // as rare as required, but as often as necessary to ensure never crossing this bound. + // Furthermore, buffers are only tested at most once per write(), so passing a very + // large string into write() might have undesirable effects, but this is manageable by + // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme + // edge case, result in creating at most one complete copy of the string passed in. + // Set to Infinity to have unlimited buffers. + sax.MAX_BUFFER_LENGTH = 64 * 1024 - return rval; -}; + var buffers = [ + 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype', + 'procInstName', 'procInstBody', 'entity', 'attribName', + 'attribValue', 'cdata', 'script' + ] -/** - * Converts a EncryptedPrivateKeyInfo to PEM format. - * - * @param epki the EncryptedPrivateKeyInfo. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted encrypted private key. - */ -pki.encryptedPrivateKeyToPem = function(epki, maxline) { - // convert to DER, then PEM-encode - var msg = { - type: 'ENCRYPTED PRIVATE KEY', - body: asn1.toDer(epki).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; + sax.EVENTS = [ + 'text', + 'processinginstruction', + 'sgmldeclaration', + 'doctype', + 'comment', + 'opentagstart', + 'attribute', + 'opentag', + 'closetag', + 'opencdata', + 'cdata', + 'closecdata', + 'error', + 'end', + 'ready', + 'script', + 'opennamespace', + 'closenamespace' + ] -/** - * Converts a PEM-encoded EncryptedPrivateKeyInfo to ASN.1 format. Decryption - * is not performed. - * - * @param pem the EncryptedPrivateKeyInfo in PEM-format. - * - * @return the ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptedPrivateKeyFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; + function SAXParser (strict, opt) { + if (!(this instanceof SAXParser)) { + return new SAXParser(strict, opt) + } - if(msg.type !== 'ENCRYPTED PRIVATE KEY') { - var error = new Error('Could not convert encrypted private key from PEM; ' + - 'PEM header type is "ENCRYPTED PRIVATE KEY".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert encrypted private key from PEM; ' + - 'PEM is encrypted.'); - } + var parser = this + clearBuffers(parser) + parser.q = parser.c = '' + parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH + parser.opt = opt || {} + parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags + parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase' + parser.tags = [] + parser.closed = parser.closedRoot = parser.sawRoot = false + parser.tag = parser.error = null + parser.strict = !!strict + parser.noscript = !!(strict || parser.opt.noscript) + parser.state = S.BEGIN + parser.strictEntities = parser.opt.strictEntities + parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES) + parser.attribList = [] - // convert DER to ASN.1 object - return asn1.fromDer(msg.body); -}; + // namespaces form a prototype chain. + // it always points at the current tag, + // which protos to its parent tag. + if (parser.opt.xmlns) { + parser.ns = Object.create(rootNS) + } -/** - * Encrypts an RSA private key. By default, the key will be wrapped in - * a PrivateKeyInfo and encrypted to produce a PKCS#8 EncryptedPrivateKeyInfo. - * This is the standard, preferred way to encrypt a private key. - * - * To produce a non-standard PEM-encrypted private key that uses encapsulated - * headers to indicate the encryption algorithm (old-style non-PKCS#8 OpenSSL - * private key encryption), set the 'legacy' option to true. Note: Using this - * option will cause the iteration count to be forced to 1. - * - * Note: The 'des' algorithm is supported, but it is not considered to be - * secure because it only uses a single 56-bit key. If possible, it is highly - * recommended that a different algorithm be used. - * - * @param rsaKey the RSA key to encrypt. - * @param password the password to use. - * @param options: - * algorithm: the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des', 'des'). - * count: the iteration count to use. - * saltSize: the salt size to use. - * legacy: output an old non-PKCS#8 PEM-encrypted+encapsulated - * headers (DEK-Info) private key. - * - * @return the PEM-encoded ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptRsaPrivateKey = function(rsaKey, password, options) { - // standard PKCS#8 - options = options || {}; - if(!options.legacy) { - // encrypt PrivateKeyInfo - var rval = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(rsaKey)); - rval = pki.encryptPrivateKeyInfo(rval, password, options); - return pki.encryptedPrivateKeyToPem(rval); + // mostly just for error reporting + parser.trackPosition = parser.opt.position !== false + if (parser.trackPosition) { + parser.position = parser.line = parser.column = 0 + } + emit(parser, 'onready') } - // legacy non-PKCS#8 - var algorithm; - var iv; - var dkLen; - var cipherFn; - switch(options.algorithm) { - case 'aes128': - algorithm = 'AES-128-CBC'; - dkLen = 16; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes192': - algorithm = 'AES-192-CBC'; - dkLen = 24; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes256': - algorithm = 'AES-256-CBC'; - dkLen = 32; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case '3des': - algorithm = 'DES-EDE3-CBC'; - dkLen = 24; - iv = forge.random.getBytesSync(8); - cipherFn = forge.des.createEncryptionCipher; - break; - case 'des': - algorithm = 'DES-CBC'; - dkLen = 8; - iv = forge.random.getBytesSync(8); - cipherFn = forge.des.createEncryptionCipher; - break; - default: - var error = new Error('Could not encrypt RSA private key; unsupported ' + - 'encryption algorithm "' + options.algorithm + '".'); - error.algorithm = options.algorithm; - throw error; + if (!Object.create) { + Object.create = function (o) { + function F () {} + F.prototype = o + var newf = new F() + return newf + } } - // encrypt private key using OpenSSL legacy key derivation - var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(asn1.toDer(pki.privateKeyToAsn1(rsaKey))); - cipher.finish(); + if (!Object.keys) { + Object.keys = function (o) { + var a = [] + for (var i in o) if (o.hasOwnProperty(i)) a.push(i) + return a + } + } - var msg = { - type: 'RSA PRIVATE KEY', - procType: { - version: '4', - type: 'ENCRYPTED' - }, - dekInfo: { - algorithm: algorithm, - parameters: forge.util.bytesToHex(iv).toUpperCase() - }, - body: cipher.output.getBytes() - }; - return forge.pem.encode(msg); -}; + function checkBufferLength (parser) { + var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10) + var maxActual = 0 + for (var i = 0, l = buffers.length; i < l; i++) { + var len = parser[buffers[i]].length + if (len > maxAllowed) { + // Text/cdata nodes can get big, and since they're buffered, + // we can get here under normal conditions. + // Avoid issues by emitting the text node now, + // so at least it won't get any bigger. + switch (buffers[i]) { + case 'textNode': + closeText(parser) + break -/** - * Decrypts an RSA private key. - * - * @param pem the PEM-formatted EncryptedPrivateKeyInfo to decrypt. - * @param password the password to use. - * - * @return the RSA key on success, null on failure. - */ -pki.decryptRsaPrivateKey = function(pem, password) { - var rval = null; + case 'cdata': + emitNode(parser, 'oncdata', parser.cdata) + parser.cdata = '' + break - var msg = forge.pem.decode(pem)[0]; + case 'script': + emitNode(parser, 'onscript', parser.script) + parser.script = '' + break - if(msg.type !== 'ENCRYPTED PRIVATE KEY' && - msg.type !== 'PRIVATE KEY' && - msg.type !== 'RSA PRIVATE KEY') { - var error = new Error('Could not convert private key from PEM; PEM header type ' + - 'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".'); - error.headerType = error; - throw error; + default: + error(parser, 'Max buffer length exceeded: ' + buffers[i]) + } + } + maxActual = Math.max(maxActual, len) + } + // schedule the next check for the earliest possible buffer overrun. + var m = sax.MAX_BUFFER_LENGTH - maxActual + parser.bufferCheckPosition = m + parser.position } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - var dkLen; - var cipherFn; - switch(msg.dekInfo.algorithm) { - case 'DES-CBC': - dkLen = 8; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'DES-EDE3-CBC': - dkLen = 24; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'AES-128-CBC': - dkLen = 16; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'AES-192-CBC': - dkLen = 24; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'AES-256-CBC': - dkLen = 32; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'RC2-40-CBC': - dkLen = 5; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 40); - }; - break; - case 'RC2-64-CBC': - dkLen = 8; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 64); - }; - break; - case 'RC2-128-CBC': - dkLen = 16; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 128); - }; - break; - default: - var error = new Error('Could not decrypt private key; unsupported ' + - 'encryption algorithm "' + msg.dekInfo.algorithm + '".'); - error.algorithm = msg.dekInfo.algorithm; - throw error; + function clearBuffers (parser) { + for (var i = 0, l = buffers.length; i < l; i++) { + parser[buffers[i]] = '' } + } - // use OpenSSL legacy key derivation - var iv = forge.util.hexToBytes(msg.dekInfo.parameters); - var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(forge.util.createBuffer(msg.body)); - if(cipher.finish()) { - rval = cipher.output.getBytes(); - } else { - return rval; + function flushBuffers (parser) { + closeText(parser) + if (parser.cdata !== '') { + emitNode(parser, 'oncdata', parser.cdata) + parser.cdata = '' + } + if (parser.script !== '') { + emitNode(parser, 'onscript', parser.script) + parser.script = '' } - } else { - rval = msg.body; } - if(msg.type === 'ENCRYPTED PRIVATE KEY') { - rval = pki.decryptPrivateKeyInfo(asn1.fromDer(rval), password); - } else { - // decryption already performed above - rval = asn1.fromDer(rval); + SAXParser.prototype = { + end: function () { end(this) }, + write: write, + resume: function () { this.error = null; return this }, + close: function () { return this.write(null) }, + flush: function () { flushBuffers(this) } } - if(rval !== null) { - rval = pki.privateKeyFromAsn1(rval); + var Stream + try { + Stream = (__nccwpck_require__(2203).Stream) + } catch (ex) { + Stream = function () {} } - return rval; -}; + var streamWraps = sax.EVENTS.filter(function (ev) { + return ev !== 'error' && ev !== 'end' + }) -/** - * Derives a PKCS#12 key. - * - * @param password the password to derive the key material from, null or - * undefined for none. - * @param salt the salt, as a ByteBuffer, to use. - * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). - * @param iter the iteration count. - * @param n the number of bytes to derive from the password. - * @param md the message digest to use, defaults to SHA-1. - * - * @return a ByteBuffer with the bytes derived from the password. - */ -pki.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md) { - var j, l; + function createStream (strict, opt) { + return new SAXStream(strict, opt) + } - if(typeof md === 'undefined' || md === null) { - if(!('sha1' in forge.md)) { - throw new Error('"sha1" hash algorithm unavailable.'); + function SAXStream (strict, opt) { + if (!(this instanceof SAXStream)) { + return new SAXStream(strict, opt) } - md = forge.md.sha1.create(); - } - var u = md.digestLength; - var v = md.blockLength; - var result = new forge.util.ByteBuffer(); + Stream.apply(this) - /* Convert password to Unicode byte buffer + trailing 0-byte. */ - var passBuf = new forge.util.ByteBuffer(); - if(password !== null && password !== undefined) { - for(l = 0; l < password.length; l++) { - passBuf.putInt16(password.charCodeAt(l)); + this._parser = new SAXParser(strict, opt) + this.writable = true + this.readable = true + + var me = this + + this._parser.onend = function () { + me.emit('end') } - passBuf.putInt16(0); - } - /* Length of salt and password in BYTES. */ - var p = passBuf.length(); - var s = salt.length(); + this._parser.onerror = function (er) { + me.emit('error', er) - /* 1. Construct a string, D (the "diversifier"), by concatenating - v copies of ID. */ - var D = new forge.util.ByteBuffer(); - D.fillWithByte(id, v); + // if didn't throw, then means error was handled. + // go ahead and clear error, so we can write again. + me._parser.error = null + } - /* 2. Concatenate copies of the salt together to create a string S of length - v * ceil(s / v) bytes (the final copy of the salt may be trunacted - to create S). - Note that if the salt is the empty string, then so is S. */ - var Slen = v * Math.ceil(s / v); - var S = new forge.util.ByteBuffer(); - for(l = 0; l < Slen; l++) { - S.putByte(salt.at(l % s)); - } + this._decoder = null - /* 3. Concatenate copies of the password together to create a string P of - length v * ceil(p / v) bytes (the final copy of the password may be - truncated to create P). - Note that if the password is the empty string, then so is P. */ - var Plen = v * Math.ceil(p / v); - var P = new forge.util.ByteBuffer(); - for(l = 0; l < Plen; l++) { - P.putByte(passBuf.at(l % p)); + streamWraps.forEach(function (ev) { + Object.defineProperty(me, 'on' + ev, { + get: function () { + return me._parser['on' + ev] + }, + set: function (h) { + if (!h) { + me.removeAllListeners(ev) + me._parser['on' + ev] = h + return h + } + me.on(ev, h) + }, + enumerable: true, + configurable: false + }) + }) } - /* 4. Set I=S||P to be the concatenation of S and P. */ - var I = S; - I.putBuffer(P); - - /* 5. Set c=ceil(n / u). */ - var c = Math.ceil(n / u); + SAXStream.prototype = Object.create(Stream.prototype, { + constructor: { + value: SAXStream + } + }) - /* 6. For i=1, 2, ..., c, do the following: */ - for(var i = 1; i <= c; i++) { - /* a) Set Ai=H^r(D||I). (l.e. the rth hash of D||I, H(H(H(...H(D||I)))) */ - var buf = new forge.util.ByteBuffer(); - buf.putBytes(D.bytes()); - buf.putBytes(I.bytes()); - for(var round = 0; round < iter; round++) { - md.start(); - md.update(buf.getBytes()); - buf = md.digest(); + SAXStream.prototype.write = function (data) { + if (typeof Buffer === 'function' && + typeof Buffer.isBuffer === 'function' && + Buffer.isBuffer(data)) { + if (!this._decoder) { + var SD = (__nccwpck_require__(13193).StringDecoder) + this._decoder = new SD('utf8') + } + data = this._decoder.write(data) } - /* b) Concatenate copies of Ai to create a string B of length v bytes (the - final copy of Ai may be truncated to create B). */ - var B = new forge.util.ByteBuffer(); - for(l = 0; l < v; l++) { - B.putByte(buf.at(l % u)); + this._parser.write(data.toString()) + this.emit('data', data) + return true + } + + SAXStream.prototype.end = function (chunk) { + if (chunk && chunk.length) { + this.write(chunk) } + this._parser.end() + return true + } - /* c) Treating I as a concatenation I0, I1, ..., Ik-1 of v-byte blocks, - where k=ceil(s / v) + ceil(p / v), modify I by setting - Ij=(Ij+B+1) mod 2v for each j. */ - var k = Math.ceil(s / v) + Math.ceil(p / v); - var Inew = new forge.util.ByteBuffer(); - for(j = 0; j < k; j++) { - var chunk = new forge.util.ByteBuffer(I.getBytes(v)); - var x = 0x1ff; - for(l = B.length() - 1; l >= 0; l--) { - x = x >> 8; - x += B.at(l) + chunk.at(l); - chunk.setAt(l, x & 0xff); + SAXStream.prototype.on = function (ev, handler) { + var me = this + if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) { + me._parser['on' + ev] = function () { + var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments) + args.splice(0, 0, ev) + me.emit.apply(me, args) } - Inew.putBuffer(chunk); } - I = Inew; - /* Add Ai to A. */ - result.putBuffer(buf); + return Stream.prototype.on.call(me, ev, handler) } - result.truncate(result.length() - n); - return result; -}; + // character classes and tokens + var whitespace = '\r\n\t ' -/** - * Get new Forge cipher object instance. - * - * @param oid the OID (in string notation). - * @param params the ASN.1 params object. - * @param password the password to decrypt with. - * - * @return new cipher object instance. - */ -pki.pbe.getCipher = function(oid, params, password) { - switch(oid) { - case pki.oids['pkcs5PBES2']: - return pki.pbe.getCipherForPBES2(oid, params, password); + // this really needs to be replaced with character classes. + // XML allows all manner of ridiculous numbers and digits. + var number = '0124356789' + var letter = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' - case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: - case pki.oids['pbewithSHAAnd40BitRC2-CBC']: - return pki.pbe.getCipherForPKCS12PBE(oid, params, password); + // (Letter | "_" | ":") + var quote = '\'"' + var attribEnd = whitespace + '>' + var CDATA = '[CDATA[' + var DOCTYPE = 'DOCTYPE' + var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace' + var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/' + var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE } - default: - var error = new Error('Cannot read encrypted PBE data block. Unsupported OID.'); - error.oid = oid; - error.supportedOids = [ - 'pkcs5PBES2', - 'pbeWithSHAAnd3-KeyTripleDES-CBC', - 'pbewithSHAAnd40BitRC2-CBC' - ]; - throw error; - } -}; + // turn all the string character sets into character class objects. + whitespace = charClass(whitespace) + number = charClass(number) + letter = charClass(letter) -/** - * Get new Forge cipher object instance according to PBES2 params block. - * - * The returned cipher instance is already started using the IV - * from PBES2 parameter block. - * - * @param oid the PKCS#5 PBKDF2 OID (in string notation). - * @param params the ASN.1 PBES2-params object. - * @param password the password to decrypt with. - * - * @return new cipher object instance. - */ -pki.pbe.getCipherForPBES2 = function(oid, params, password) { - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(params, PBES2AlgorithmsValidator, capture, errors)) { - var error = new Error('Cannot read password-based-encryption algorithm ' + - 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; - } + // http://www.w3.org/TR/REC-xml/#NT-NameStartChar + // This implementation works on strings, a single character at a time + // as such, it cannot ever support astral-plane characters (10000-EFFFF) + // without a significant breaking change to either this parser, or the + // JavaScript language. Implementation of an emoji-capable xml parser + // is left as an exercise for the reader. + var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/ - // check oids - oid = asn1.derToOid(capture.kdfOid); - if(oid !== pki.oids['pkcs5PBKDF2']) { - var error = new Error('Cannot read encrypted private key. ' + - 'Unsupported key derivation function OID.'); - error.oid = oid; - error.supportedOids = ['pkcs5PBKDF2']; - throw error; + var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/ + + var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/ + var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/ + + quote = charClass(quote) + attribEnd = charClass(attribEnd) + + function charClass (str) { + return str.split('').reduce(function (s, c) { + s[c] = true + return s + }, {}) } - oid = asn1.derToOid(capture.encOid); - if(oid !== pki.oids['aes128-CBC'] && - oid !== pki.oids['aes192-CBC'] && - oid !== pki.oids['aes256-CBC'] && - oid !== pki.oids['des-EDE3-CBC'] && - oid !== pki.oids['desCBC']) { - var error = new Error('Cannot read encrypted private key. ' + - 'Unsupported encryption scheme OID.'); - error.oid = oid; - error.supportedOids = [ - 'aes128-CBC', 'aes192-CBC', 'aes256-CBC', 'des-EDE3-CBC', 'desCBC']; - throw error; + + function isRegExp (c) { + return Object.prototype.toString.call(c) === '[object RegExp]' } - // set PBE params - var salt = capture.kdfSalt; - var count = forge.util.createBuffer(capture.kdfIterationCount); - count = count.getInt(count.length() << 3); - var dkLen; - var cipherFn; - switch(pki.oids[oid]) { - case 'aes128-CBC': - dkLen = 16; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'aes192-CBC': - dkLen = 24; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'aes256-CBC': - dkLen = 32; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'des-EDE3-CBC': - dkLen = 24; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'desCBC': - dkLen = 8; - cipherFn = forge.des.createDecryptionCipher; - break; + function is (charclass, c) { + return isRegExp(charclass) ? !!c.match(charclass) : charclass[c] } - // get PRF message digest - var md = prfOidToMessageDigest(capture.prfOid); + function not (charclass, c) { + return !is(charclass, c) + } - // decrypt private key using pbe with chosen PRF and AES/DES - var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); - var iv = capture.encIv; - var cipher = cipherFn(dk); - cipher.start(iv); + var S = 0 + sax.STATE = { + BEGIN: S++, // leading byte order mark or whitespace + BEGIN_WHITESPACE: S++, // leading whitespace + TEXT: S++, // general stuff + TEXT_ENTITY: S++, // & and such. + OPEN_WAKA: S++, // < + SGML_DECL: S++, // + SCRIPT: S++, // "]; + int32 quotes = 3 [json_name = "unbalanced\"quotes"]; + int32 script_and_quotes = 4 + [json_name = "\""]; +} + +message TestExtensions { + .protobuf_unittest.TestAllExtensions extensions = 1; +} + +message TestEnumValue { + EnumType enum_value1 = 1; + EnumType enum_value2 = 2; + EnumType enum_value3 = 3; +} + +message MapsTestCases { + EmptyMap empty_map = 1; + StringtoInt string_to_int = 2; + IntToString int_to_string = 3; + Mixed1 mixed1 = 4; + Mixed2 mixed2 = 5; + MapOfObjects map_of_objects = 6; + + // Empty key tests + StringtoInt empty_key_string_to_int1 = 7; + StringtoInt empty_key_string_to_int2 = 8; + StringtoInt empty_key_string_to_int3 = 9; + BoolToString empty_key_bool_to_string = 10; + IntToString empty_key_int_to_string = 11; + Mixed1 empty_key_mixed = 12; + MapOfObjects empty_key_map_objects = 13; +} + +message EmptyMap { + map map = 1; +} + +message StringtoInt { + map map = 1; +} + +message IntToString { + map map = 1; +} + +message BoolToString { + map map = 1; +} + +message Mixed1 { + string msg = 1; + map map = 2; +} + +message Mixed2 { + enum E { + E0 = 0; + E1 = 1; + E2 = 2; + E3 = 3; + } + map map = 1; + E ee = 2; +} + +message MapOfObjects { + message M { + string inner_text = 1; + } + map map = 1; +} + +message MapIn { + string other = 1; + repeated string things = 2; + map map_input = 3; + map map_any = 4; +} + +message MapOut { + map map1 = 1; + map map2 = 2; + map map3 = 3; + map map4 = 5; + string bar = 4; +} + +// A message with exactly the same wire representation as MapOut, but using +// repeated message fields instead of map fields. We use this message to test +// the wire-format compatibility of the JSON transcoder (e.g., whether it +// handles missing keys correctly). +message MapOutWireFormat { + message Map1Entry { + string key = 1; + MapM value = 2; + } + repeated Map1Entry map1 = 1; + message Map2Entry { + string key = 1; + MapOut value = 2; + } + repeated Map2Entry map2 = 2; + message Map3Entry { + int32 key = 1; + string value = 2; + } + repeated Map3Entry map3 = 3; + message Map4Entry { + bool key = 1; + string value = 2; + } + repeated Map4Entry map4 = 5; + string bar = 4; +} + +message MapM { + string foo = 1; +} diff --git a/dist/protos/google/protobuf/wrappers.proto b/dist/protos/google/protobuf/wrappers.proto new file mode 100644 index 0000000..1959fa5 --- /dev/null +++ b/dist/protos/google/protobuf/wrappers.proto @@ -0,0 +1,123 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "WrappersProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// Wrapper message for `double`. +// +// The JSON representation for `DoubleValue` is JSON number. +message DoubleValue { + // The double value. + double value = 1; +} + +// Wrapper message for `float`. +// +// The JSON representation for `FloatValue` is JSON number. +message FloatValue { + // The float value. + float value = 1; +} + +// Wrapper message for `int64`. +// +// The JSON representation for `Int64Value` is JSON string. +message Int64Value { + // The int64 value. + int64 value = 1; +} + +// Wrapper message for `uint64`. +// +// The JSON representation for `UInt64Value` is JSON string. +message UInt64Value { + // The uint64 value. + uint64 value = 1; +} + +// Wrapper message for `int32`. +// +// The JSON representation for `Int32Value` is JSON number. +message Int32Value { + // The int32 value. + int32 value = 1; +} + +// Wrapper message for `uint32`. +// +// The JSON representation for `UInt32Value` is JSON number. +message UInt32Value { + // The uint32 value. + uint32 value = 1; +} + +// Wrapper message for `bool`. +// +// The JSON representation for `BoolValue` is JSON `true` and `false`. +message BoolValue { + // The bool value. + bool value = 1; +} + +// Wrapper message for `string`. +// +// The JSON representation for `StringValue` is JSON string. +message StringValue { + // The string value. + string value = 1; +} + +// Wrapper message for `bytes`. +// +// The JSON representation for `BytesValue` is JSON string. +message BytesValue { + // The bytes value. + bytes value = 1; +} diff --git a/dist/protos/google/rpc/code.proto b/dist/protos/google/rpc/code.proto new file mode 100644 index 0000000..7c810af --- /dev/null +++ b/dist/protos/google/rpc/code.proto @@ -0,0 +1,186 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc; + +option go_package = "google.golang.org/genproto/googleapis/rpc/code;code"; +option java_multiple_files = true; +option java_outer_classname = "CodeProto"; +option java_package = "com.google.rpc"; +option objc_class_prefix = "RPC"; + +// The canonical error codes for gRPC APIs. +// +// +// Sometimes multiple error codes may apply. Services should return +// the most specific error code that applies. For example, prefer +// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. +// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. +enum Code { + // Not an error; returned on success. + // + // HTTP Mapping: 200 OK + OK = 0; + + // The operation was cancelled, typically by the caller. + // + // HTTP Mapping: 499 Client Closed Request + CANCELLED = 1; + + // Unknown error. For example, this error may be returned when + // a `Status` value received from another address space belongs to + // an error space that is not known in this address space. Also + // errors raised by APIs that do not return enough error information + // may be converted to this error. + // + // HTTP Mapping: 500 Internal Server Error + UNKNOWN = 2; + + // The client specified an invalid argument. Note that this differs + // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments + // that are problematic regardless of the state of the system + // (e.g., a malformed file name). + // + // HTTP Mapping: 400 Bad Request + INVALID_ARGUMENT = 3; + + // The deadline expired before the operation could complete. For operations + // that change the state of the system, this error may be returned + // even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long + // enough for the deadline to expire. + // + // HTTP Mapping: 504 Gateway Timeout + DEADLINE_EXCEEDED = 4; + + // Some requested entity (e.g., file or directory) was not found. + // + // Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented allowlist, + // `NOT_FOUND` may be used. If a request is denied for some users within + // a class of users, such as user-based access control, `PERMISSION_DENIED` + // must be used. + // + // HTTP Mapping: 404 Not Found + NOT_FOUND = 5; + + // The entity that a client attempted to create (e.g., file or directory) + // already exists. + // + // HTTP Mapping: 409 Conflict + ALREADY_EXISTS = 6; + + // The caller does not have permission to execute the specified + // operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` + // instead for those errors). `PERMISSION_DENIED` must not be + // used if the caller can not be identified (use `UNAUTHENTICATED` + // instead for those errors). This error code does not imply the + // request is valid or the requested entity exists or satisfies + // other pre-conditions. + // + // HTTP Mapping: 403 Forbidden + PERMISSION_DENIED = 7; + + // The request does not have valid authentication credentials for the + // operation. + // + // HTTP Mapping: 401 Unauthorized + UNAUTHENTICATED = 16; + + // Some resource has been exhausted, perhaps a per-user quota, or + // perhaps the entire file system is out of space. + // + // HTTP Mapping: 429 Too Many Requests + RESOURCE_EXHAUSTED = 8; + + // The operation was rejected because the system is not in a state + // required for the operation's execution. For example, the directory + // to be deleted is non-empty, an rmdir operation is applied to + // a non-directory, etc. + // + // Service implementors can use the following guidelines to decide + // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: + // (a) Use `UNAVAILABLE` if the client can retry just the failing call. + // (b) Use `ABORTED` if the client should retry at a higher level. For + // example, when a client-specified test-and-set fails, indicating the + // client should restart a read-modify-write sequence. + // (c) Use `FAILED_PRECONDITION` if the client should not retry until + // the system state has been explicitly fixed. For example, if an "rmdir" + // fails because the directory is non-empty, `FAILED_PRECONDITION` + // should be returned since the client should not retry unless + // the files are deleted from the directory. + // + // HTTP Mapping: 400 Bad Request + FAILED_PRECONDITION = 9; + + // The operation was aborted, typically due to a concurrency issue such as + // a sequencer check failure or transaction abort. + // + // See the guidelines above for deciding between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`. + // + // HTTP Mapping: 409 Conflict + ABORTED = 10; + + // The operation was attempted past the valid range. E.g., seeking or + // reading past end-of-file. + // + // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may + // be fixed if the system state changes. For example, a 32-bit file + // system will generate `INVALID_ARGUMENT` if asked to read at an + // offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current + // file size. + // + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific + // error) when it applies so that callers who are iterating through + // a space can easily look for an `OUT_OF_RANGE` error to detect when + // they are done. + // + // HTTP Mapping: 400 Bad Request + OUT_OF_RANGE = 11; + + // The operation is not implemented or is not supported/enabled in this + // service. + // + // HTTP Mapping: 501 Not Implemented + UNIMPLEMENTED = 12; + + // Internal errors. This means that some invariants expected by the + // underlying system have been broken. This error code is reserved + // for serious errors. + // + // HTTP Mapping: 500 Internal Server Error + INTERNAL = 13; + + // The service is currently unavailable. This is most likely a + // transient condition, which can be corrected by retrying with + // a backoff. Note that it is not always safe to retry + // non-idempotent operations. + // + // See the guidelines above for deciding between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`. + // + // HTTP Mapping: 503 Service Unavailable + UNAVAILABLE = 14; + + // Unrecoverable data loss or corruption. + // + // HTTP Mapping: 500 Internal Server Error + DATA_LOSS = 15; +} diff --git a/dist/protos/google/rpc/context/attribute_context.proto b/dist/protos/google/rpc/context/attribute_context.proto new file mode 100644 index 0000000..ef9242e --- /dev/null +++ b/dist/protos/google/rpc/context/attribute_context.proto @@ -0,0 +1,344 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc.context; + +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context"; +option java_multiple_files = true; +option java_outer_classname = "AttributeContextProto"; +option java_package = "com.google.rpc.context"; + +// This message defines the standard attribute vocabulary for Google APIs. +// +// An attribute is a piece of metadata that describes an activity on a network +// service. For example, the size of an HTTP request, or the status code of +// an HTTP response. +// +// Each attribute has a type and a name, which is logically defined as +// a proto message field in `AttributeContext`. The field type becomes the +// attribute type, and the field path becomes the attribute name. For example, +// the attribute `source.ip` maps to field `AttributeContext.source.ip`. +// +// This message definition is guaranteed not to have any wire breaking change. +// So you can use it directly for passing attributes across different systems. +// +// NOTE: Different system may generate different subset of attributes. Please +// verify the system specification before relying on an attribute generated +// a system. +message AttributeContext { + // This message defines attributes for a node that handles a network request. + // The node can be either a service or an application that sends, forwards, + // or receives the request. Service peers should fill in + // `principal` and `labels` as appropriate. + message Peer { + // The IP address of the peer. + string ip = 1; + + // The network port of the peer. + int64 port = 2; + + // The labels associated with the peer. + map labels = 6; + + // The identity of this peer. Similar to `Request.auth.principal`, but + // relative to the peer instead of the request. For example, the + // identity associated with a load balancer that forwarded the request. + string principal = 7; + + // The CLDR country/region code associated with the above IP address. + // If the IP address is private, the `region_code` should reflect the + // physical location where this peer is running. + string region_code = 8; + } + + // This message defines attributes associated with API operations, such as + // a network API request. The terminology is based on the conventions used + // by Google APIs, Istio, and OpenAPI. + message Api { + // The API service name. It is a logical identifier for a networked API, + // such as "pubsub.googleapis.com". The naming syntax depends on the + // API management system being used for handling the request. + string service = 1; + + // The API operation name. For gRPC requests, it is the fully qualified API + // method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + // requests, it is the `operationId`, such as "getPet". + string operation = 2; + + // The API protocol used for sending the request, such as "http", "https", + // "grpc", or "internal". + string protocol = 3; + + // The API version associated with the API operation above, such as "v1" or + // "v1alpha1". + string version = 4; + } + + // This message defines request authentication attributes. Terminology is + // based on the JSON Web Token (JWT) standard, but the terms also + // correlate to concepts in other standards. + message Auth { + // The authenticated principal. Reflects the issuer (`iss`) and subject + // (`sub`) claims within a JWT. The issuer and subject should be `/` + // delimited, with `/` percent-encoded within the subject fragment. For + // Google accounts, the principal format is: + // "https://accounts.google.com/{id}" + string principal = 1; + + // The intended audience(s) for this authentication information. Reflects + // the audience (`aud`) claim within a JWT. The audience + // value(s) depends on the `issuer`, but typically include one or more of + // the following pieces of information: + // + // * The services intended to receive the credential. For example, + // ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + // * A set of service-based scopes. For example, + // ["https://www.googleapis.com/auth/cloud-platform"]. + // * The client id of an app, such as the Firebase project id for JWTs + // from Firebase Auth. + // + // Consult the documentation for the credential issuer to determine the + // information provided. + repeated string audiences = 2; + + // The authorized presenter of the credential. Reflects the optional + // Authorized Presenter (`azp`) claim within a JWT or the + // OAuth client id. For example, a Google Cloud Platform client id looks + // as follows: "123456789012.apps.googleusercontent.com". + string presenter = 3; + + // Structured claims presented with the credential. JWTs include + // `{key: value}` pairs for standard and private claims. The following + // is a subset of the standard required and optional claims that would + // typically be presented for a Google-based JWT: + // + // {'iss': 'accounts.google.com', + // 'sub': '113289723416554971153', + // 'aud': ['123456789012', 'pubsub.googleapis.com'], + // 'azp': '123456789012.apps.googleusercontent.com', + // 'email': 'jsmith@example.com', + // 'iat': 1353601026, + // 'exp': 1353604926} + // + // SAML assertions are similarly specified, but with an identity provider + // dependent structure. + google.protobuf.Struct claims = 4; + + // A list of access level resource names that allow resources to be + // accessed by authenticated requester. It is part of Secure GCP processing + // for the incoming request. An access level string has the format: + // "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + // + // Example: + // "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + repeated string access_levels = 5; + } + + // This message defines attributes for an HTTP request. If the actual + // request is not an HTTP request, the runtime system should try to map + // the actual request to an equivalent HTTP request. + message Request { + // The unique ID for a request, which can be propagated to downstream + // systems. The ID should have low probability of collision + // within a single day for a specific service. + string id = 1; + + // The HTTP request method, such as `GET`, `POST`. + string method = 2; + + // The HTTP request headers. If multiple headers share the same key, they + // must be merged according to the HTTP spec. All header keys must be + // lowercased, because HTTP header keys are case-insensitive. + map headers = 3; + + // The HTTP URL path, excluding the query parameters. + string path = 4; + + // The HTTP request `Host` header value. + string host = 5; + + // The HTTP URL scheme, such as `http` and `https`. + string scheme = 6; + + // The HTTP URL query in the format of `name1=value1&name2=value2`, as it + // appears in the first line of the HTTP request. No decoding is performed. + string query = 7; + + // The timestamp when the `destination` service receives the last byte of + // the request. + google.protobuf.Timestamp time = 9; + + // The HTTP request size in bytes. If unknown, it must be -1. + int64 size = 10; + + // The network protocol used with the request, such as "http/1.1", + // "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + // for details. + string protocol = 11; + + // A special parameter for request reason. It is used by security systems + // to associate auditing information with a request. + string reason = 12; + + // The request authentication. May be absent for unauthenticated requests. + // Derived from the HTTP request `Authorization` header or equivalent. + Auth auth = 13; + } + + // This message defines attributes for a typical network response. It + // generally models semantics of an HTTP response. + message Response { + // The HTTP response status code, such as `200` and `404`. + int64 code = 1; + + // The HTTP response size in bytes. If unknown, it must be -1. + int64 size = 2; + + // The HTTP response headers. If multiple headers share the same key, they + // must be merged according to HTTP spec. All header keys must be + // lowercased, because HTTP header keys are case-insensitive. + map headers = 3; + + // The timestamp when the `destination` service sends the last byte of + // the response. + google.protobuf.Timestamp time = 4; + + // The amount of time it takes the backend service to fully respond to a + // request. Measured from when the destination service starts to send the + // request to the backend until when the destination service receives the + // complete response from the backend. + google.protobuf.Duration backend_latency = 5; + } + + // This message defines core attributes for a resource. A resource is an + // addressable (named) entity provided by the destination service. For + // example, a file stored on a network storage service. + message Resource { + // The name of the service that this resource belongs to, such as + // `pubsub.googleapis.com`. The service may be different from the DNS + // hostname that actually serves the request. + string service = 1; + + // The stable identifier (name) of a resource on the `service`. A resource + // can be logically identified as "//{resource.service}/{resource.name}". + // The differences between a resource name and a URI are: + // + // * Resource name is a logical identifier, independent of network + // protocol and API version. For example, + // `//pubsub.googleapis.com/projects/123/topics/news-feed`. + // * URI often includes protocol and version information, so it can + // be used directly by applications. For example, + // `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + // + // See https://cloud.google.com/apis/design/resource_names for details. + string name = 2; + + // The type of the resource. The syntax is platform-specific because + // different platforms define their resources differently. + // + // For Google APIs, the type format must be "{service}/{kind}", such as + // "pubsub.googleapis.com/Topic". + string type = 3; + + // The labels or tags on the resource, such as AWS resource tags and + // Kubernetes resource labels. + map labels = 4; + + // The unique identifier of the resource. UID is unique in the time + // and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 5; + + // Annotations is an unstructured key-value map stored with a resource that + // may be set by external tools to store and retrieve arbitrary metadata. + // They are not queryable and should be preserved when modifying objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 6; + + // Mutable. The display name set by clients. Must be <= 63 characters. + string display_name = 7; + + // Output only. The timestamp when the resource was created. This may + // be either the time creation was initiated or when it was completed. + google.protobuf.Timestamp create_time = 8; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 9; + + // Output only. The timestamp when the resource was deleted. + // If the resource is not deleted, this must be empty. + google.protobuf.Timestamp delete_time = 10; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 11; + + // Immutable. The location of the resource. The location encoding is + // specific to the service provider, and new encoding may be introduced + // as the service evolves. + // + // For Google Cloud products, the encoding is what is used by Google Cloud + // APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + // semantics of `location` is identical to the + // `cloud.googleapis.com/location` label used by some Google Cloud APIs. + string location = 12; + } + + // The origin of a network activity. In a multi hop network activity, + // the origin represents the sender of the first hop. For the first hop, + // the `source` and the `origin` must have the same content. + Peer origin = 7; + + // The source of a network activity, such as starting a TCP connection. + // In a multi hop network activity, the source represents the sender of the + // last hop. + Peer source = 1; + + // The destination of a network activity, such as accepting a TCP connection. + // In a multi hop network activity, the destination represents the receiver of + // the last hop. + Peer destination = 2; + + // Represents a network request, such as an HTTP request. + Request request = 3; + + // Represents a network response, such as an HTTP response. + Response response = 4; + + // Represents a target resource that is involved with a network activity. + // If multiple resources are involved with an activity, this must be the + // primary one. + Resource resource = 5; + + // Represents an API operation that is involved to a network activity. + Api api = 6; + + // Supports extensions for advanced use cases, such as logs and metrics. + repeated google.protobuf.Any extensions = 8; +} diff --git a/dist/protos/google/rpc/context/audit_context.proto b/dist/protos/google/rpc/context/audit_context.proto new file mode 100644 index 0000000..7b8b705 --- /dev/null +++ b/dist/protos/google/rpc/context/audit_context.proto @@ -0,0 +1,49 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc.context; + +import "google/protobuf/struct.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/rpc/context;context"; +option java_multiple_files = true; +option java_outer_classname = "AuditContextProto"; +option java_package = "com.google.rpc.context"; + +// `AuditContext` provides information that is needed for audit logging. +message AuditContext { + // Serialized audit log. + bytes audit_log = 1; + + // An API request message that is scrubbed based on the method annotation. + // This field should only be filled if audit_log field is present. + // Service Control will use this to assemble a complete log for Cloud Audit + // Logs and Google internal audit logs. + google.protobuf.Struct scrubbed_request = 2; + + // An API response message that is scrubbed based on the method annotation. + // This field should only be filled if audit_log field is present. + // Service Control will use this to assemble a complete log for Cloud Audit + // Logs and Google internal audit logs. + google.protobuf.Struct scrubbed_response = 3; + + // Number of scrubbed response items. + int32 scrubbed_response_item_count = 4; + + // Audit resource name which is scrubbed. + string target_resource = 5; +} diff --git a/dist/protos/google/rpc/error_details.proto b/dist/protos/google/rpc/error_details.proto new file mode 100644 index 0000000..c489e83 --- /dev/null +++ b/dist/protos/google/rpc/error_details.proto @@ -0,0 +1,285 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc; + +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/rpc/errdetails;errdetails"; +option java_multiple_files = true; +option java_outer_classname = "ErrorDetailsProto"; +option java_package = "com.google.rpc"; +option objc_class_prefix = "RPC"; + +// Describes the cause of the error with structured details. +// +// Example of an error when contacting the "pubsub.googleapis.com" API when it +// is not enabled: +// +// { "reason": "API_DISABLED" +// "domain": "googleapis.com" +// "metadata": { +// "resource": "projects/123", +// "service": "pubsub.googleapis.com" +// } +// } +// +// This response indicates that the pubsub.googleapis.com API is not enabled. +// +// Example of an error that is returned when attempting to create a Spanner +// instance in a region that is out of stock: +// +// { "reason": "STOCKOUT" +// "domain": "spanner.googleapis.com", +// "metadata": { +// "availableRegions": "us-central1,us-east2" +// } +// } +message ErrorInfo { + // The reason of the error. This is a constant value that identifies the + // proximate cause of the error. Error reasons are unique within a particular + // domain of errors. This should be at most 63 characters and match a + // regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + // UPPER_SNAKE_CASE. + string reason = 1; + + // The logical grouping to which the "reason" belongs. The error domain + // is typically the registered service name of the tool or product that + // generates the error. Example: "pubsub.googleapis.com". If the error is + // generated by some common infrastructure, the error domain must be a + // globally unique value that identifies the infrastructure. For Google API + // infrastructure, the error domain is "googleapis.com". + string domain = 2; + + // Additional structured details about this error. + // + // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in + // length. When identifying the current value of an exceeded limit, the units + // should be contained in the key, not the value. For example, rather than + // {"instanceLimit": "100/request"}, should be returned as, + // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of + // instances that can be created in a single (batch) request. + map metadata = 3; +} + +// Describes when the clients can retry a failed request. Clients could ignore +// the recommendation here or retry when this information is missing from error +// responses. +// +// It's always recommended that clients should use exponential backoff when +// retrying. +// +// Clients should wait until `retry_delay` amount of time has passed since +// receiving the error response before retrying. If retrying requests also +// fail, clients should use an exponential backoff scheme to gradually increase +// the delay between retries based on `retry_delay`, until either a maximum +// number of retries have been reached or a maximum retry delay cap has been +// reached. +message RetryInfo { + // Clients should wait at least this long between retrying the same request. + google.protobuf.Duration retry_delay = 1; +} + +// Describes additional debugging info. +message DebugInfo { + // The stack trace entries indicating where the error occurred. + repeated string stack_entries = 1; + + // Additional debugging information provided by the server. + string detail = 2; +} + +// Describes how a quota check failed. +// +// For example if a daily limit was exceeded for the calling project, +// a service could respond with a QuotaFailure detail containing the project +// id and the description of the quota limit that was exceeded. If the +// calling project hasn't enabled the service in the developer console, then +// a service could respond with the project id and set `service_disabled` +// to true. +// +// Also see RetryInfo and Help types for other details about handling a +// quota failure. +message QuotaFailure { + // A message type used to describe a single quota violation. For example, a + // daily quota or a custom quota that was exceeded. + message Violation { + // The subject on which the quota check failed. + // For example, "clientip:" or "project:". + string subject = 1; + + // A description of how the quota check failed. Clients can use this + // description to find more about the quota configuration in the service's + // public documentation, or find the relevant quota limit to adjust through + // developer console. + // + // For example: "Service disabled" or "Daily Limit for read operations + // exceeded". + string description = 2; + } + + // Describes all quota violations. + repeated Violation violations = 1; +} + +// Describes what preconditions have failed. +// +// For example, if an RPC failed because it required the Terms of Service to be +// acknowledged, it could list the terms of service violation in the +// PreconditionFailure message. +message PreconditionFailure { + // A message type used to describe a single precondition failure. + message Violation { + // The type of PreconditionFailure. We recommend using a service-specific + // enum type to define the supported precondition violation subjects. For + // example, "TOS" for "Terms of Service violation". + string type = 1; + + // The subject, relative to the type, that failed. + // For example, "google.com/cloud" relative to the "TOS" type would indicate + // which terms of service is being referenced. + string subject = 2; + + // A description of how the precondition failed. Developers can use this + // description to understand how to fix the failure. + // + // For example: "Terms of service not accepted". + string description = 3; + } + + // Describes all precondition violations. + repeated Violation violations = 1; +} + +// Describes violations in a client request. This error type focuses on the +// syntactic aspects of the request. +message BadRequest { + // A message type used to describe a single bad request field. + message FieldViolation { + // A path that leads to a field in the request body. The value will be a + // sequence of dot-separated identifiers that identify a protocol buffer + // field. + // + // Consider the following: + // + // message CreateContactRequest { + // message EmailAddress { + // enum Type { + // TYPE_UNSPECIFIED = 0; + // HOME = 1; + // WORK = 2; + // } + // + // optional string email = 1; + // repeated EmailType type = 2; + // } + // + // string full_name = 1; + // repeated EmailAddress email_addresses = 2; + // } + // + // In this example, in proto `field` could take one of the following values: + // + // * `full_name` for a violation in the `full_name` value + // * `email_addresses[1].email` for a violation in the `email` field of the + // first `email_addresses` message + // * `email_addresses[3].type[2]` for a violation in the second `type` + // value in the third `email_addresses` message. + // + // In JSON, the same values are represented as: + // + // * `fullName` for a violation in the `fullName` value + // * `emailAddresses[1].email` for a violation in the `email` field of the + // first `emailAddresses` message + // * `emailAddresses[3].type[2]` for a violation in the second `type` + // value in the third `emailAddresses` message. + string field = 1; + + // A description of why the request element is bad. + string description = 2; + } + + // Describes all violations in a client request. + repeated FieldViolation field_violations = 1; +} + +// Contains metadata about the request that clients can attach when filing a bug +// or providing other forms of feedback. +message RequestInfo { + // An opaque string that should only be interpreted by the service generating + // it. For example, it can be used to identify requests in the service's logs. + string request_id = 1; + + // Any data that was used to serve this request. For example, an encrypted + // stack trace that can be sent back to the service provider for debugging. + string serving_data = 2; +} + +// Describes the resource that is being accessed. +message ResourceInfo { + // A name for the type of resource being accessed, e.g. "sql table", + // "cloud storage bucket", "file", "Google calendar"; or the type URL + // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + string resource_type = 1; + + // The name of the resource being accessed. For example, a shared calendar + // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current + // error is + // [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + string resource_name = 2; + + // The owner of the resource (optional). + // For example, "user:" or "project:". + string owner = 3; + + // Describes what error is encountered when accessing this resource. + // For example, updating a cloud project may require the `writer` permission + // on the developer console project. + string description = 4; +} + +// Provides links to documentation or for performing an out of band action. +// +// For example, if a quota check failed with an error indicating the calling +// project hasn't enabled the accessed service, this can contain a URL pointing +// directly to the right place in the developer console to flip the bit. +message Help { + // Describes a URL link. + message Link { + // Describes what the link offers. + string description = 1; + + // The URL of the link. + string url = 2; + } + + // URL(s) pointing to additional information on handling the current error. + repeated Link links = 1; +} + +// Provides a localized error message that is safe to return to the user +// which can be attached to an RPC error. +message LocalizedMessage { + // The locale used following the specification defined at + // https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + // Examples are: "en-US", "fr-CH", "es-MX" + string locale = 1; + + // The localized error message in the above locale. + string message = 2; +} diff --git a/dist/protos/google/rpc/http.proto b/dist/protos/google/rpc/http.proto new file mode 100644 index 0000000..299a71f --- /dev/null +++ b/dist/protos/google/rpc/http.proto @@ -0,0 +1,64 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc; + +option go_package = "google.golang.org/genproto/googleapis/rpc/http;http"; +option java_multiple_files = true; +option java_outer_classname = "HttpProto"; +option java_package = "com.google.rpc"; +option objc_class_prefix = "RPC"; + +// Represents an HTTP request. +message HttpRequest { + // The HTTP request method. + string method = 1; + + // The HTTP request URI. + string uri = 2; + + // The HTTP request headers. The ordering of the headers is significant. + // Multiple headers with the same key may present for the request. + repeated HttpHeader headers = 3; + + // The HTTP request body. If the body is not expected, it should be empty. + bytes body = 4; +} + +// Represents an HTTP response. +message HttpResponse { + // The HTTP status code, such as 200 or 404. + int32 status = 1; + + // The HTTP reason phrase, such as "OK" or "Not Found". + string reason = 2; + + // The HTTP response headers. The ordering of the headers is significant. + // Multiple headers with the same key may present for the response. + repeated HttpHeader headers = 3; + + // The HTTP response body. If the body is not expected, it should be empty. + bytes body = 4; +} + +// Represents an HTTP header. +message HttpHeader { + // The HTTP header key. It is case insensitive. + string key = 1; + + // The HTTP header value. + string value = 2; +} diff --git a/dist/protos/google/rpc/status.proto b/dist/protos/google/rpc/status.proto new file mode 100644 index 0000000..923e169 --- /dev/null +++ b/dist/protos/google/rpc/status.proto @@ -0,0 +1,49 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc; + +import "google/protobuf/any.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; +option java_multiple_files = true; +option java_outer_classname = "StatusProto"; +option java_package = "com.google.rpc"; +option objc_class_prefix = "RPC"; + +// The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by [gRPC](https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. +// +// You can find out more about this error model and how to work with it in the +// [API Design Guide](https://cloud.google.com/apis/design/errors). +message Status { + // The status code, which should be an enum value of + // [google.rpc.Code][google.rpc.Code]. + int32 code = 1; + + // A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // [google.rpc.Status.details][google.rpc.Status.details] field, or localized + // by the client. + string message = 2; + + // A list of messages that carry the error details. There is a common set of + // message types for APIs to use. + repeated google.protobuf.Any details = 3; +} diff --git a/dist/protos/google/type/calendar_period.proto b/dist/protos/google/type/calendar_period.proto new file mode 100644 index 0000000..82f5690 --- /dev/null +++ b/dist/protos/google/type/calendar_period.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option go_package = "google.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod"; +option java_multiple_files = true; +option java_outer_classname = "CalendarPeriodProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// A `CalendarPeriod` represents the abstract concept of a time period that has +// a canonical start. Grammatically, "the start of the current +// `CalendarPeriod`." All calendar times begin at midnight UTC. +enum CalendarPeriod { + // Undefined period, raises an error. + CALENDAR_PERIOD_UNSPECIFIED = 0; + + // A day. + DAY = 1; + + // A week. Weeks begin on Monday, following + // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). + WEEK = 2; + + // A fortnight. The first calendar fortnight of the year begins at the start + // of week 1 according to + // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). + FORTNIGHT = 3; + + // A month. + MONTH = 4; + + // A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each + // year. + QUARTER = 5; + + // A half-year. Half-years start on dates 1-Jan and 1-Jul. + HALF = 6; + + // A year. + YEAR = 7; +} diff --git a/dist/protos/google/type/color.proto b/dist/protos/google/type/color.proto new file mode 100644 index 0000000..5dc85a6 --- /dev/null +++ b/dist/protos/google/type/color.proto @@ -0,0 +1,174 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +import "google/protobuf/wrappers.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/color;color"; +option java_multiple_files = true; +option java_outer_classname = "ColorProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a color in the RGBA color space. This representation is designed +// for simplicity of conversion to/from color representations in various +// languages over compactness. For example, the fields of this representation +// can be trivially provided to the constructor of `java.awt.Color` in Java; it +// can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily formatted into +// a CSS `rgba()` string in JavaScript. +// +// This reference page doesn't carry information about the absolute color +// space +// that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, +// DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color +// space. +// +// When color equality needs to be decided, implementations, unless +// documented otherwise, treat two colors as equal if all their red, +// green, blue, and alpha values each differ by at most 1e-5. +// +// Example (Java): +// +// import com.google.type.Color; +// +// // ... +// public static java.awt.Color fromProto(Color protocolor) { +// float alpha = protocolor.hasAlpha() +// ? protocolor.getAlpha().getValue() +// : 1.0; +// +// return new java.awt.Color( +// protocolor.getRed(), +// protocolor.getGreen(), +// protocolor.getBlue(), +// alpha); +// } +// +// public static Color toProto(java.awt.Color color) { +// float red = (float) color.getRed(); +// float green = (float) color.getGreen(); +// float blue = (float) color.getBlue(); +// float denominator = 255.0; +// Color.Builder resultBuilder = +// Color +// .newBuilder() +// .setRed(red / denominator) +// .setGreen(green / denominator) +// .setBlue(blue / denominator); +// int alpha = color.getAlpha(); +// if (alpha != 255) { +// result.setAlpha( +// FloatValue +// .newBuilder() +// .setValue(((float) alpha) / denominator) +// .build()); +// } +// return resultBuilder.build(); +// } +// // ... +// +// Example (iOS / Obj-C): +// +// // ... +// static UIColor* fromProto(Color* protocolor) { +// float red = [protocolor red]; +// float green = [protocolor green]; +// float blue = [protocolor blue]; +// FloatValue* alpha_wrapper = [protocolor alpha]; +// float alpha = 1.0; +// if (alpha_wrapper != nil) { +// alpha = [alpha_wrapper value]; +// } +// return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; +// } +// +// static Color* toProto(UIColor* color) { +// CGFloat red, green, blue, alpha; +// if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { +// return nil; +// } +// Color* result = [[Color alloc] init]; +// [result setRed:red]; +// [result setGreen:green]; +// [result setBlue:blue]; +// if (alpha <= 0.9999) { +// [result setAlpha:floatWrapperWithValue(alpha)]; +// } +// [result autorelease]; +// return result; +// } +// // ... +// +// Example (JavaScript): +// +// // ... +// +// var protoToCssColor = function(rgb_color) { +// var redFrac = rgb_color.red || 0.0; +// var greenFrac = rgb_color.green || 0.0; +// var blueFrac = rgb_color.blue || 0.0; +// var red = Math.floor(redFrac * 255); +// var green = Math.floor(greenFrac * 255); +// var blue = Math.floor(blueFrac * 255); +// +// if (!('alpha' in rgb_color)) { +// return rgbToCssColor(red, green, blue); +// } +// +// var alphaFrac = rgb_color.alpha.value || 0.0; +// var rgbParams = [red, green, blue].join(','); +// return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); +// }; +// +// var rgbToCssColor = function(red, green, blue) { +// var rgbNumber = new Number((red << 16) | (green << 8) | blue); +// var hexString = rgbNumber.toString(16); +// var missingZeros = 6 - hexString.length; +// var resultBuilder = ['#']; +// for (var i = 0; i < missingZeros; i++) { +// resultBuilder.push('0'); +// } +// resultBuilder.push(hexString); +// return resultBuilder.join(''); +// }; +// +// // ... +message Color { + // The amount of red in the color as a value in the interval [0, 1]. + float red = 1; + + // The amount of green in the color as a value in the interval [0, 1]. + float green = 2; + + // The amount of blue in the color as a value in the interval [0, 1]. + float blue = 3; + + // The fraction of this color that should be applied to the pixel. That is, + // the final pixel color is defined by the equation: + // + // `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + // + // This means that a value of 1.0 corresponds to a solid color, whereas + // a value of 0.0 corresponds to a completely transparent color. This + // uses a wrapper message rather than a simple float scalar so that it is + // possible to distinguish between a default value and the value being unset. + // If omitted, this color object is rendered as a solid color + // (as if the alpha value had been explicitly given a value of 1.0). + google.protobuf.FloatValue alpha = 4; +} diff --git a/dist/protos/google/type/date.proto b/dist/protos/google/type/date.proto new file mode 100644 index 0000000..e4e730e --- /dev/null +++ b/dist/protos/google/type/date.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/date;date"; +option java_multiple_files = true; +option java_outer_classname = "DateProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a whole or partial calendar date, such as a birthday. The time of +// day and time zone are either specified elsewhere or are insignificant. The +// date is relative to the Gregorian Calendar. This can represent one of the +// following: +// +// * A full date, with non-zero year, month, and day values +// * A month and day value, with a zero year, such as an anniversary +// * A year on its own, with zero month and day values +// * A year and month value, with a zero day, such as a credit card expiration +// date +// +// Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and +// `google.protobuf.Timestamp`. +message Date { + // Year of the date. Must be from 1 to 9999, or 0 to specify a date without + // a year. + int32 year = 1; + + // Month of a year. Must be from 1 to 12, or 0 to specify a year without a + // month and day. + int32 month = 2; + + // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + // to specify a year by itself or a year and month where the day isn't + // significant. + int32 day = 3; +} diff --git a/dist/protos/google/type/datetime.proto b/dist/protos/google/type/datetime.proto new file mode 100644 index 0000000..cfed85d --- /dev/null +++ b/dist/protos/google/type/datetime.proto @@ -0,0 +1,104 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +import "google/protobuf/duration.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/datetime;datetime"; +option java_multiple_files = true; +option java_outer_classname = "DateTimeProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents civil time (or occasionally physical time). +// +// This type can represent a civil time in one of a few possible ways: +// +// * When utc_offset is set and time_zone is unset: a civil time on a calendar +// day with a particular offset from UTC. +// * When time_zone is set and utc_offset is unset: a civil time on a calendar +// day in a particular time zone. +// * When neither time_zone nor utc_offset is set: a civil time on a calendar +// day in local time. +// +// The date is relative to the Proleptic Gregorian Calendar. +// +// If year is 0, the DateTime is considered not to have a specific year. month +// and day must have valid, non-zero values. +// +// This type may also be used to represent a physical time if all the date and +// time fields are set and either case of the `time_offset` oneof is set. +// Consider using `Timestamp` message for physical time instead. If your use +// case also would like to store the user's timezone, that can be done in +// another field. +// +// This type is more flexible than some applications may want. Make sure to +// document and validate your application's limitations. +message DateTime { + // Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + // datetime without a year. + int32 year = 1; + + // Required. Month of year. Must be from 1 to 12. + int32 month = 2; + + // Required. Day of month. Must be from 1 to 31 and valid for the year and + // month. + int32 day = 3; + + // Required. Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + int32 hours = 4; + + // Required. Minutes of hour of day. Must be from 0 to 59. + int32 minutes = 5; + + // Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + // API may allow the value 60 if it allows leap-seconds. + int32 seconds = 6; + + // Required. Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + int32 nanos = 7; + + // Optional. Specifies either the UTC offset or the time zone of the DateTime. + // Choose carefully between them, considering that time zone data may change + // in the future (for example, a country modifies their DST start/end dates, + // and future DateTimes in the affected range had already been stored). + // If omitted, the DateTime is considered to be in local time. + oneof time_offset { + // UTC offset. Must be whole seconds, between -18 hours and +18 hours. + // For example, a UTC offset of -4:00 would be represented as + // { seconds: -14400 }. + google.protobuf.Duration utc_offset = 8; + + // Time zone. + TimeZone time_zone = 9; + } +} + +// Represents a time zone from the +// [IANA Time Zone Database](https://www.iana.org/time-zones). +message TimeZone { + // IANA Time Zone Database time zone, e.g. "America/New_York". + string id = 1; + + // Optional. IANA Time Zone Database version number, e.g. "2019a". + string version = 2; +} diff --git a/dist/protos/google/type/dayofweek.proto b/dist/protos/google/type/dayofweek.proto new file mode 100644 index 0000000..4c80c62 --- /dev/null +++ b/dist/protos/google/type/dayofweek.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option go_package = "google.golang.org/genproto/googleapis/type/dayofweek;dayofweek"; +option java_multiple_files = true; +option java_outer_classname = "DayOfWeekProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a day of the week. +enum DayOfWeek { + // The day of the week is unspecified. + DAY_OF_WEEK_UNSPECIFIED = 0; + + // Monday + MONDAY = 1; + + // Tuesday + TUESDAY = 2; + + // Wednesday + WEDNESDAY = 3; + + // Thursday + THURSDAY = 4; + + // Friday + FRIDAY = 5; + + // Saturday + SATURDAY = 6; + + // Sunday + SUNDAY = 7; +} diff --git a/dist/protos/google/type/decimal.proto b/dist/protos/google/type/decimal.proto new file mode 100644 index 0000000..beb18a5 --- /dev/null +++ b/dist/protos/google/type/decimal.proto @@ -0,0 +1,95 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/decimal;decimal"; +option java_multiple_files = true; +option java_outer_classname = "DecimalProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// A representation of a decimal value, such as 2.5. Clients may convert values +// into language-native decimal formats, such as Java's [BigDecimal][] or +// Python's [decimal.Decimal][]. +// +// [BigDecimal]: +// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html +// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html +message Decimal { + // The decimal value, as a string. + // + // The string representation consists of an optional sign, `+` (`U+002B`) + // or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + // ("the integer"), optionally followed by a fraction, optionally followed + // by an exponent. + // + // The fraction consists of a decimal point followed by zero or more decimal + // digits. The string must contain at least one digit in either the integer + // or the fraction. The number formed by the sign, the integer and the + // fraction is referred to as the significand. + // + // The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + // followed by one or more decimal digits. + // + // Services **should** normalize decimal values before storing them by: + // + // - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + // - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + // - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). + // - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + // + // Services **may** perform additional normalization based on its own needs + // and the internal decimal implementation selected, such as shifting the + // decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + // Additionally, services **may** preserve trailing zeroes in the fraction + // to indicate increased precision, but are not required to do so. + // + // Note that only the `.` character is supported to divide the integer + // and the fraction; `,` **should not** be supported regardless of locale. + // Additionally, thousand separators **should not** be supported. If a + // service does support them, values **must** be normalized. + // + // The ENBF grammar is: + // + // DecimalString = + // [Sign] Significand [Exponent]; + // + // Sign = '+' | '-'; + // + // Significand = + // Digits ['.'] [Digits] | [Digits] '.' Digits; + // + // Exponent = ('e' | 'E') [Sign] Digits; + // + // Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + // + // Services **should** clearly document the range of supported values, the + // maximum supported precision (total number of digits), and, if applicable, + // the scale (number of digits after the decimal point), as well as how it + // behaves when receiving out-of-bounds values. + // + // Services **may** choose to accept values passed as input even when the + // value has a higher precision or scale than the service supports, and + // **should** round the value to fit the supported scale. Alternatively, the + // service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + // if precision would be lost. + // + // Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + // gRPC) if the service receives a value outside of the supported range. + string value = 1; +} diff --git a/dist/protos/google/type/expr.proto b/dist/protos/google/type/expr.proto new file mode 100644 index 0000000..af0778c --- /dev/null +++ b/dist/protos/google/type/expr.proto @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option go_package = "google.golang.org/genproto/googleapis/type/expr;expr"; +option java_multiple_files = true; +option java_outer_classname = "ExprProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a textual expression in the Common Expression Language (CEL) +// syntax. CEL is a C-like expression language. The syntax and semantics of CEL +// are documented at https://github.com/google/cel-spec. +// +// Example (Comparison): +// +// title: "Summary size limit" +// description: "Determines if a summary is less than 100 chars" +// expression: "document.summary.size() < 100" +// +// Example (Equality): +// +// title: "Requestor is owner" +// description: "Determines if requestor is the document owner" +// expression: "document.owner == request.auth.claims.email" +// +// Example (Logic): +// +// title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// +// Example (Data Manipulation): +// +// title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + string(document.create_time)" +// +// The exact variables and functions that may be referenced within an expression +// are determined by the service that evaluates it. See the service +// documentation for additional information. +message Expr { + // Textual representation of an expression in Common Expression Language + // syntax. + string expression = 1; + + // Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. + string title = 2; + + // Optional. Description of the expression. This is a longer text which + // describes the expression, e.g. when hovered over it in a UI. + string description = 3; + + // Optional. String indicating the location of the expression for error + // reporting, e.g. a file name and a position in the file. + string location = 4; +} diff --git a/dist/protos/google/type/fraction.proto b/dist/protos/google/type/fraction.proto new file mode 100644 index 0000000..6c5ae6e --- /dev/null +++ b/dist/protos/google/type/fraction.proto @@ -0,0 +1,33 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option go_package = "google.golang.org/genproto/googleapis/type/fraction;fraction"; +option java_multiple_files = true; +option java_outer_classname = "FractionProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a fraction in terms of a numerator divided by a denominator. +message Fraction { + // The numerator in the fraction, e.g. 2 in 2/3. + int64 numerator = 1; + + // The value by which the numerator is divided, e.g. 3 in 2/3. Must be + // positive. + int64 denominator = 2; +} diff --git a/dist/protos/google/type/interval.proto b/dist/protos/google/type/interval.proto new file mode 100644 index 0000000..9702324 --- /dev/null +++ b/dist/protos/google/type/interval.proto @@ -0,0 +1,46 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/interval;interval"; +option java_multiple_files = true; +option java_outer_classname = "IntervalProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a time interval, encoded as a Timestamp start (inclusive) and a +// Timestamp end (exclusive). +// +// The start must be less than or equal to the end. +// When the start equals the end, the interval is empty (matches no time). +// When both start and end are unspecified, the interval matches any time. +message Interval { + // Optional. Inclusive start of the interval. + // + // If specified, a Timestamp matching this interval will have to be the same + // or after the start. + google.protobuf.Timestamp start_time = 1; + + // Optional. Exclusive end of the interval. + // + // If specified, a Timestamp matching this interval will have to be before the + // end. + google.protobuf.Timestamp end_time = 2; +} diff --git a/dist/protos/google/type/latlng.proto b/dist/protos/google/type/latlng.proto new file mode 100644 index 0000000..9231456 --- /dev/null +++ b/dist/protos/google/type/latlng.proto @@ -0,0 +1,37 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/latlng;latlng"; +option java_multiple_files = true; +option java_outer_classname = "LatLngProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// An object that represents a latitude/longitude pair. This is expressed as a +// pair of doubles to represent degrees latitude and degrees longitude. Unless +// specified otherwise, this must conform to the +// WGS84 +// standard. Values must be within normalized ranges. +message LatLng { + // The latitude in degrees. It must be in the range [-90.0, +90.0]. + double latitude = 1; + + // The longitude in degrees. It must be in the range [-180.0, +180.0]. + double longitude = 2; +} diff --git a/dist/protos/google/type/localized_text.proto b/dist/protos/google/type/localized_text.proto new file mode 100644 index 0000000..5c6922b --- /dev/null +++ b/dist/protos/google/type/localized_text.proto @@ -0,0 +1,36 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/localized_text;localized_text"; +option java_multiple_files = true; +option java_outer_classname = "LocalizedTextProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Localized variant of a text in a particular language. +message LocalizedText { + // Localized string in the language corresponding to `language_code' below. + string text = 1; + + // The text's BCP-47 language code, such as "en-US" or "sr-Latn". + // + // For more information, see + // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + string language_code = 2; +} diff --git a/dist/protos/google/type/money.proto b/dist/protos/google/type/money.proto new file mode 100644 index 0000000..98d6494 --- /dev/null +++ b/dist/protos/google/type/money.proto @@ -0,0 +1,42 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/money;money"; +option java_multiple_files = true; +option java_outer_classname = "MoneyProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents an amount of money with its currency type. +message Money { + // The three-letter currency code defined in ISO 4217. + string currency_code = 1; + + // The whole units of the amount. + // For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + int64 units = 2; + + // Number of nano (10^-9) units of the amount. + // The value must be between -999,999,999 and +999,999,999 inclusive. + // If `units` is positive, `nanos` must be positive or zero. + // If `units` is zero, `nanos` can be positive, zero, or negative. + // If `units` is negative, `nanos` must be negative or zero. + // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + int32 nanos = 3; +} diff --git a/dist/protos/google/type/month.proto b/dist/protos/google/type/month.proto new file mode 100644 index 0000000..99e7551 --- /dev/null +++ b/dist/protos/google/type/month.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option go_package = "google.golang.org/genproto/googleapis/type/month;month"; +option java_multiple_files = true; +option java_outer_classname = "MonthProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a month in the Gregorian calendar. +enum Month { + // The unspecified month. + MONTH_UNSPECIFIED = 0; + + // The month of January. + JANUARY = 1; + + // The month of February. + FEBRUARY = 2; + + // The month of March. + MARCH = 3; + + // The month of April. + APRIL = 4; + + // The month of May. + MAY = 5; + + // The month of June. + JUNE = 6; + + // The month of July. + JULY = 7; + + // The month of August. + AUGUST = 8; + + // The month of September. + SEPTEMBER = 9; + + // The month of October. + OCTOBER = 10; + + // The month of November. + NOVEMBER = 11; + + // The month of December. + DECEMBER = 12; +} diff --git a/dist/protos/google/type/phone_number.proto b/dist/protos/google/type/phone_number.proto new file mode 100644 index 0000000..7bbb7d8 --- /dev/null +++ b/dist/protos/google/type/phone_number.proto @@ -0,0 +1,113 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/phone_number;phone_number"; +option java_multiple_files = true; +option java_outer_classname = "PhoneNumberProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// An object representing a phone number, suitable as an API wire format. +// +// This representation: +// +// - should not be used for locale-specific formatting of a phone number, such +// as "+1 (650) 253-0000 ext. 123" +// +// - is not designed for efficient storage +// - may not be suitable for dialing - specialized libraries (see references) +// should be used to parse the number for that purpose +// +// To do something meaningful with this number, such as format it for various +// use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first. +// +// For instance, in Java this would be: +// +// com.google.type.PhoneNumber wireProto = +// com.google.type.PhoneNumber.newBuilder().build(); +// com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber = +// PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ"); +// if (!wireProto.getExtension().isEmpty()) { +// phoneNumber.setExtension(wireProto.getExtension()); +// } +// +// Reference(s): +// - https://github.com/google/libphonenumber +message PhoneNumber { + // An object representing a short code, which is a phone number that is + // typically much shorter than regular phone numbers and can be used to + // address messages in MMS and SMS systems, as well as for abbreviated dialing + // (e.g. "Text 611 to see how many minutes you have remaining on your plan."). + // + // Short codes are restricted to a region and are not internationally + // dialable, which means the same short code can exist in different regions, + // with different usage and pricing, even if those regions share the same + // country calling code (e.g. US and CA). + message ShortCode { + // Required. The BCP-47 region code of the location where calls to this + // short code can be made, such as "US" and "BB". + // + // Reference(s): + // - http://www.unicode.org/reports/tr35/#unicode_region_subtag + string region_code = 1; + + // Required. The short code digits, without a leading plus ('+') or country + // calling code, e.g. "611". + string number = 2; + } + + // Required. Either a regular number, or a short code. New fields may be + // added to the oneof below in the future, so clients should ignore phone + // numbers for which none of the fields they coded against are set. + oneof kind { + // The phone number, represented as a leading plus sign ('+'), followed by a + // phone number that uses a relaxed ITU E.164 format consisting of the + // country calling code (1 to 3 digits) and the subscriber number, with no + // additional spaces or formatting, e.g.: + // - correct: "+15552220123" + // - incorrect: "+1 (555) 222-01234 x123". + // + // The ITU E.164 format limits the latter to 12 digits, but in practice not + // all countries respect that, so we relax that restriction here. + // National-only numbers are not allowed. + // + // References: + // - https://www.itu.int/rec/T-REC-E.164-201011-I + // - https://en.wikipedia.org/wiki/E.164. + // - https://en.wikipedia.org/wiki/List_of_country_calling_codes + string e164_number = 1; + + // A short code. + // + // Reference(s): + // - https://en.wikipedia.org/wiki/Short_code + ShortCode short_code = 2; + } + + // The phone number's extension. The extension is not standardized in ITU + // recommendations, except for being defined as a series of numbers with a + // maximum length of 40 digits. Other than digits, some other dialing + // characters such as ',' (indicating a wait) or '#' may be stored here. + // + // Note that no regions currently use extensions with short codes, so this + // field is normally only set in conjunction with an E.164 number. It is held + // separately from the E.164 number to allow for short code extensions in the + // future. + string extension = 3; +} diff --git a/dist/protos/google/type/postal_address.proto b/dist/protos/google/type/postal_address.proto new file mode 100644 index 0000000..c57c7c3 --- /dev/null +++ b/dist/protos/google/type/postal_address.proto @@ -0,0 +1,134 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress"; +option java_multiple_files = true; +option java_outer_classname = "PostalAddressProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a postal address, e.g. for postal delivery or payments addresses. +// Given a postal address, a postal service can deliver items to a premise, P.O. +// Box or similar. +// It is not intended to model geographical locations (roads, towns, +// mountains). +// +// In typical usage an address would be created via user input or from importing +// existing data, depending on the type of process. +// +// Advice on address input / editing: +// - Use an i18n-ready address widget such as +// https://github.com/google/libaddressinput) +// - Users should not be presented with UI elements for input or editing of +// fields outside countries where that field is used. +// +// For more guidance on how to use this schema, please see: +// https://support.google.com/business/answer/6397478 +message PostalAddress { + // The schema revision of the `PostalAddress`. This must be set to 0, which is + // the latest revision. + // + // All new revisions **must** be backward compatible with old revisions. + int32 revision = 1; + + // Required. CLDR region code of the country/region of the address. This + // is never inferred and it is up to the user to ensure the value is + // correct. See http://cldr.unicode.org/ and + // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + // for details. Example: "CH" for Switzerland. + string region_code = 2; + + // Optional. BCP-47 language code of the contents of this address (if + // known). This is often the UI language of the input form or is expected + // to match one of the languages used in the address' country/region, or their + // transliterated equivalents. + // This can affect formatting in certain countries, but is not critical + // to the correctness of the data and will never affect any validation or + // other non-formatting related operations. + // + // If this value is not known, it should be omitted (rather than specifying a + // possibly incorrect default). + // + // Examples: "zh-Hant", "ja", "ja-Latn", "en". + string language_code = 3; + + // Optional. Postal code of the address. Not all countries use or require + // postal codes to be present, but where they are used, they may trigger + // additional validation with other parts of the address (e.g. state/zip + // validation in the U.S.A.). + string postal_code = 4; + + // Optional. Additional, country-specific, sorting code. This is not used + // in most regions. Where it is used, the value is either a string like + // "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number + // alone, representing the "sector code" (Jamaica), "delivery area indicator" + // (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + string sorting_code = 5; + + // Optional. Highest administrative subdivision which is used for postal + // addresses of a country or region. + // For example, this can be a state, a province, an oblast, or a prefecture. + // Specifically, for Spain this is the province and not the autonomous + // community (e.g. "Barcelona" and not "Catalonia"). + // Many countries don't use an administrative area in postal addresses. E.g. + // in Switzerland this should be left unpopulated. + string administrative_area = 6; + + // Optional. Generally refers to the city/town portion of the address. + // Examples: US city, IT comune, UK post town. + // In regions of the world where localities are not well defined or do not fit + // into this structure well, leave locality empty and use address_lines. + string locality = 7; + + // Optional. Sublocality of the address. + // For example, this can be neighborhoods, boroughs, districts. + string sublocality = 8; + + // Unstructured address lines describing the lower levels of an address. + // + // Because values in address_lines do not have type information and may + // sometimes contain multiple values in a single field (e.g. + // "Austin, TX"), it is important that the line order is clear. The order of + // address lines should be "envelope order" for the country/region of the + // address. In places where this can vary (e.g. Japan), address_language is + // used to make it explicit (e.g. "ja" for large-to-small ordering and + // "ja-Latn" or "en" for small-to-large). This way, the most specific line of + // an address can be selected based on the language. + // + // The minimum permitted structural representation of an address consists + // of a region_code with all remaining information placed in the + // address_lines. It would be possible to format such an address very + // approximately without geocoding, but no semantic reasoning could be + // made about any of the address components until it was at least + // partially resolved. + // + // Creating an address only containing a region_code and address_lines, and + // then geocoding is the recommended way to handle completely unstructured + // addresses (as opposed to guessing which parts of the address should be + // localities or administrative areas). + repeated string address_lines = 9; + + // Optional. The recipient at the address. + // This field may, under certain circumstances, contain multiline information. + // For example, it might contain "care of" information. + repeated string recipients = 10; + + // Optional. The name of the organization at the address. + string organization = 11; +} diff --git a/dist/protos/google/type/quaternion.proto b/dist/protos/google/type/quaternion.proto new file mode 100644 index 0000000..dfb822d --- /dev/null +++ b/dist/protos/google/type/quaternion.proto @@ -0,0 +1,94 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/quaternion;quaternion"; +option java_multiple_files = true; +option java_outer_classname = "QuaternionProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// A quaternion is defined as the quotient of two directed lines in a +// three-dimensional space or equivalently as the quotient of two Euclidean +// vectors (https://en.wikipedia.org/wiki/Quaternion). +// +// Quaternions are often used in calculations involving three-dimensional +// rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation), +// as they provide greater mathematical robustness by avoiding the gimbal lock +// problems that can be encountered when using Euler angles +// (https://en.wikipedia.org/wiki/Gimbal_lock). +// +// Quaternions are generally represented in this form: +// +// w + xi + yj + zk +// +// where x, y, z, and w are real numbers, and i, j, and k are three imaginary +// numbers. +// +// Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for +// those interested in the geometric properties of the quaternion in the 3D +// Cartesian space. Other texts often use alternative names or subscripts, such +// as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps +// better suited for mathematical interpretations. +// +// To avoid any confusion, as well as to maintain compatibility with a large +// number of software libraries, the quaternions represented using the protocol +// buffer below *must* follow the Hamilton convention, which defines `ij = k` +// (i.e. a right-handed algebra), and therefore: +// +// i^2 = j^2 = k^2 = ijk = −1 +// ij = −ji = k +// jk = −kj = i +// ki = −ik = j +// +// Please DO NOT use this to represent quaternions that follow the JPL +// convention, or any of the other quaternion flavors out there. +// +// Definitions: +// +// - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`. +// - Unit (or normalized) quaternion: a quaternion whose norm is 1. +// - Pure quaternion: a quaternion whose scalar component (`w`) is 0. +// - Rotation quaternion: a unit quaternion used to represent rotation. +// - Orientation quaternion: a unit quaternion used to represent orientation. +// +// A quaternion can be normalized by dividing it by its norm. The resulting +// quaternion maintains the same direction, but has a norm of 1, i.e. it moves +// on the unit sphere. This is generally necessary for rotation and orientation +// quaternions, to avoid rounding errors: +// https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions +// +// Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation, +// but normalization would be even more useful, e.g. for comparison purposes, if +// it would produce a unique representation. It is thus recommended that `w` be +// kept positive, which can be achieved by changing all the signs when `w` is +// negative. +// +message Quaternion { + // The x component. + double x = 1; + + // The y component. + double y = 2; + + // The z component. + double z = 3; + + // The scalar component. + double w = 4; +} diff --git a/dist/protos/google/type/timeofday.proto b/dist/protos/google/type/timeofday.proto new file mode 100644 index 0000000..5cb48aa --- /dev/null +++ b/dist/protos/google/type/timeofday.proto @@ -0,0 +1,44 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.type; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/type/timeofday;timeofday"; +option java_multiple_files = true; +option java_outer_classname = "TimeOfDayProto"; +option java_package = "com.google.type"; +option objc_class_prefix = "GTP"; + +// Represents a time of day. The date and time zone are either not significant +// or are specified elsewhere. An API may choose to allow leap seconds. Related +// types are [google.type.Date][google.type.Date] and +// `google.protobuf.Timestamp`. +message TimeOfDay { + // Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + // to allow the value "24:00:00" for scenarios like business closing time. + int32 hours = 1; + + // Minutes of hour of day. Must be from 0 to 59. + int32 minutes = 2; + + // Seconds of minutes of the time. Must normally be from 0 to 59. An API may + // allow the value 60 if it allows leap-seconds. + int32 seconds = 3; + + // Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + int32 nanos = 4; +} diff --git a/dist/protos/http.d.ts b/dist/protos/http.d.ts new file mode 100644 index 0000000..1f03560 --- /dev/null +++ b/dist/protos/http.d.ts @@ -0,0 +1,347 @@ +import * as $protobuf from "protobufjs"; +/** Namespace google. */ +export namespace google { + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fully_decode_reserved_expansion */ + fully_decode_reserved_expansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fully_decode_reserved_expansion. */ + public fully_decode_reserved_expansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule response_body */ + response_body?: (string|null); + + /** HttpRule additional_bindings */ + additional_bindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule response_body. */ + public response_body: string; + + /** HttpRule additional_bindings. */ + public additional_bindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +} diff --git a/dist/protos/http.js b/dist/protos/http.js new file mode 100644 index 0000000..8ad3fc0 --- /dev/null +++ b/dist/protos/http.js @@ -0,0 +1 @@ +(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("protobufjs/minimal")))})(function(e){var t,n,r,i=e.Reader,o=e.Writer,l=e.util,s=e.roots.default||(e.roots.default={});function a(e){if(this.rules=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.rules&&r.rules.length||(r.rules=[]),r.rules.push(s.google.api.HttpRule.decode(e,e.uint32()));break;case 2:r.fully_decode_reserved_expansion=e.bool();break;default:e.skipType(7&o)}}return r},a.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},a.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:r.selector=e.string();break;case 2:r.get=e.string();break;case 3:r.put=e.string();break;case 4:r.post=e.string();break;case 5:r.delete=e.string();break;case 6:r.patch=e.string();break;case 8:r.custom=s.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:r.body=e.string();break;case 12:r.response_body=e.string();break;case 11:r.additional_bindings&&r.additional_bindings.length||(r.additional_bindings=[]),r.additional_bindings.push(s.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},p.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},p.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!l.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!l.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=s.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!l.isString(e.body))return"body: string expected";if(null!=e.response_body&&e.hasOwnProperty("response_body")&&!l.isString(e.response_body))return"response_body: string expected";if(null!=e.additional_bindings&&e.hasOwnProperty("additional_bindings")){if(!Array.isArray(e.additional_bindings))return"additional_bindings: array expected";for(var n,r=0;r>>3){case 1:r.kind=e.string();break;case 2:r.path=e.string();break;default:e.skipType(7&o)}}return r},u.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},u.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!l.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!l.isString(e.path)?"path: string expected":null},u.fromObject=function(e){var t;return e instanceof s.google.api.CustomHttpPattern?e:(t=new s.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},u.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},u.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},u),n),r),s}); \ No newline at end of file diff --git a/dist/protos/iam_service.d.ts b/dist/protos/iam_service.d.ts new file mode 100644 index 0000000..37203e4 --- /dev/null +++ b/dist/protos/iam_service.d.ts @@ -0,0 +1,5035 @@ +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Long = require('long'); +import * as $protobuf from "protobufjs"; +/** Namespace google. */ +export namespace google { + + /** Namespace iam. */ + namespace iam { + + /** Namespace v1. */ + namespace v1 { + + /** Represents a IAMPolicy */ + class IAMPolicy extends $protobuf.rpc.Service { + + /** + * Constructs a new IAMPolicy service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new IAMPolicy service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IAMPolicy; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse + */ + public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.iam.v1.IAMPolicy.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise; + } + + namespace IAMPolicy { + + /** + * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; + + /** + * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; + + /** + * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. + * @param error Error, if any + * @param [response] TestIamPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; + } + + /** Properties of a SetIamPolicyRequest. */ + interface ISetIamPolicyRequest { + + /** SetIamPolicyRequest resource */ + resource?: (string|null); + + /** SetIamPolicyRequest policy */ + policy?: (google.iam.v1.IPolicy|null); + } + + /** Represents a SetIamPolicyRequest. */ + class SetIamPolicyRequest implements ISetIamPolicyRequest { + + /** + * Constructs a new SetIamPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.ISetIamPolicyRequest); + + /** SetIamPolicyRequest resource. */ + public resource: string; + + /** SetIamPolicyRequest policy. */ + public policy?: (google.iam.v1.IPolicy|null); + + /** + * Creates a new SetIamPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyRequest instance + */ + public static create(properties?: google.iam.v1.ISetIamPolicyRequest): google.iam.v1.SetIamPolicyRequest; + + /** + * Encodes the specified SetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages. + * @param message SetIamPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages. + * @param message SetIamPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyRequest + * @throws {Error} If the payload is 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.iam.v1.SetIamPolicyRequest; + + /** + * Decodes a SetIamPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyRequest + * @throws {Error} If the 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.iam.v1.SetIamPolicyRequest; + + /** + * Verifies a SetIamPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetIamPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.SetIamPolicyRequest; + + /** + * Creates a plain object from a SetIamPolicyRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.SetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetIamPolicyRequest. */ + interface IGetIamPolicyRequest { + + /** GetIamPolicyRequest resource */ + resource?: (string|null); + + /** GetIamPolicyRequest options */ + options?: (google.iam.v1.IGetPolicyOptions|null); + } + + /** Represents a GetIamPolicyRequest. */ + class GetIamPolicyRequest implements IGetIamPolicyRequest { + + /** + * Constructs a new GetIamPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IGetIamPolicyRequest); + + /** GetIamPolicyRequest resource. */ + public resource: string; + + /** GetIamPolicyRequest options. */ + public options?: (google.iam.v1.IGetPolicyOptions|null); + + /** + * Creates a new GetIamPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyRequest instance + */ + public static create(properties?: google.iam.v1.IGetIamPolicyRequest): google.iam.v1.GetIamPolicyRequest; + + /** + * Encodes the specified GetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages. + * @param message GetIamPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages. + * @param message GetIamPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyRequest + * @throws {Error} If the payload is 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.iam.v1.GetIamPolicyRequest; + + /** + * Decodes a GetIamPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyRequest + * @throws {Error} If the 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.iam.v1.GetIamPolicyRequest; + + /** + * Verifies a GetIamPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIamPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.GetIamPolicyRequest; + + /** + * Creates a plain object from a GetIamPolicyRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.GetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TestIamPermissionsRequest. */ + interface ITestIamPermissionsRequest { + + /** TestIamPermissionsRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRequest permissions */ + permissions?: (string[]|null); + } + + /** Represents a TestIamPermissionsRequest. */ + class TestIamPermissionsRequest implements ITestIamPermissionsRequest { + + /** + * Constructs a new TestIamPermissionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.ITestIamPermissionsRequest); + + /** TestIamPermissionsRequest resource. */ + public resource: string; + + /** TestIamPermissionsRequest permissions. */ + public permissions: string[]; + + /** + * Creates a new TestIamPermissionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRequest instance + */ + public static create(properties?: google.iam.v1.ITestIamPermissionsRequest): google.iam.v1.TestIamPermissionsRequest; + + /** + * Encodes the specified TestIamPermissionsRequest message. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages. + * @param message TestIamPermissionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRequest message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages. + * @param message TestIamPermissionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRequest + * @throws {Error} If the payload is 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.iam.v1.TestIamPermissionsRequest; + + /** + * Decodes a TestIamPermissionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRequest + * @throws {Error} If the 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.iam.v1.TestIamPermissionsRequest; + + /** + * Verifies a TestIamPermissionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsRequest; + + /** + * Creates a plain object from a TestIamPermissionsRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.TestIamPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TestIamPermissionsResponse. */ + interface ITestIamPermissionsResponse { + + /** TestIamPermissionsResponse permissions */ + permissions?: (string[]|null); + } + + /** Represents a TestIamPermissionsResponse. */ + class TestIamPermissionsResponse implements ITestIamPermissionsResponse { + + /** + * Constructs a new TestIamPermissionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.ITestIamPermissionsResponse); + + /** TestIamPermissionsResponse permissions. */ + public permissions: string[]; + + /** + * Creates a new TestIamPermissionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsResponse instance + */ + public static create(properties?: google.iam.v1.ITestIamPermissionsResponse): google.iam.v1.TestIamPermissionsResponse; + + /** + * Encodes the specified TestIamPermissionsResponse message. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages. + * @param message TestIamPermissionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsResponse message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages. + * @param message TestIamPermissionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsResponse + * @throws {Error} If the payload is 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.iam.v1.TestIamPermissionsResponse; + + /** + * Decodes a TestIamPermissionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsResponse + * @throws {Error} If the 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.iam.v1.TestIamPermissionsResponse; + + /** + * Verifies a TestIamPermissionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsResponse; + + /** + * Creates a plain object from a TestIamPermissionsResponse message. Also converts values to other types if specified. + * @param message TestIamPermissionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.TestIamPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetPolicyOptions. */ + interface IGetPolicyOptions { + + /** GetPolicyOptions requestedPolicyVersion */ + requestedPolicyVersion?: (number|null); + } + + /** Represents a GetPolicyOptions. */ + class GetPolicyOptions implements IGetPolicyOptions { + + /** + * Constructs a new GetPolicyOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IGetPolicyOptions); + + /** GetPolicyOptions requestedPolicyVersion. */ + public requestedPolicyVersion: number; + + /** + * Creates a new GetPolicyOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPolicyOptions instance + */ + public static create(properties?: google.iam.v1.IGetPolicyOptions): google.iam.v1.GetPolicyOptions; + + /** + * Encodes the specified GetPolicyOptions message. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages. + * @param message GetPolicyOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPolicyOptions message, length delimited. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages. + * @param message GetPolicyOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPolicyOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPolicyOptions + * @throws {Error} If the payload is 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.iam.v1.GetPolicyOptions; + + /** + * Decodes a GetPolicyOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPolicyOptions + * @throws {Error} If the 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.iam.v1.GetPolicyOptions; + + /** + * Verifies a GetPolicyOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPolicyOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPolicyOptions + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.GetPolicyOptions; + + /** + * Creates a plain object from a GetPolicyOptions message. Also converts values to other types if specified. + * @param message GetPolicyOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.GetPolicyOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPolicyOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Policy. */ + interface IPolicy { + + /** Policy version */ + version?: (number|null); + + /** Policy bindings */ + bindings?: (google.iam.v1.IBinding[]|null); + + /** Policy etag */ + etag?: (Uint8Array|null); + } + + /** Represents a Policy. */ + class Policy implements IPolicy { + + /** + * Constructs a new Policy. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IPolicy); + + /** Policy version. */ + public version: number; + + /** Policy bindings. */ + public bindings: google.iam.v1.IBinding[]; + + /** Policy etag. */ + public etag: Uint8Array; + + /** + * Creates a new Policy instance using the specified properties. + * @param [properties] Properties to set + * @returns Policy instance + */ + public static create(properties?: google.iam.v1.IPolicy): google.iam.v1.Policy; + + /** + * Encodes the specified Policy message. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages. + * @param message Policy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Policy message, length delimited. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages. + * @param message Policy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Policy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Policy + * @throws {Error} If the payload is 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.iam.v1.Policy; + + /** + * Decodes a Policy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Policy + * @throws {Error} If the 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.iam.v1.Policy; + + /** + * Verifies a Policy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Policy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Policy + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.Policy; + + /** + * Creates a plain object from a Policy message. Also converts values to other types if specified. + * @param message Policy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.Policy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Policy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Binding. */ + interface IBinding { + + /** Binding role */ + role?: (string|null); + + /** Binding members */ + members?: (string[]|null); + + /** Binding condition */ + condition?: (google.type.IExpr|null); + } + + /** Represents a Binding. */ + class Binding implements IBinding { + + /** + * Constructs a new Binding. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IBinding); + + /** Binding role. */ + public role: string; + + /** Binding members. */ + public members: string[]; + + /** Binding condition. */ + public condition?: (google.type.IExpr|null); + + /** + * Creates a new Binding instance using the specified properties. + * @param [properties] Properties to set + * @returns Binding instance + */ + public static create(properties?: google.iam.v1.IBinding): google.iam.v1.Binding; + + /** + * Encodes the specified Binding message. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binding + * @throws {Error} If the payload is 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.iam.v1.Binding; + + /** + * Decodes a Binding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Binding + * @throws {Error} If the 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.iam.v1.Binding; + + /** + * Verifies a Binding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Binding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Binding + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.Binding; + + /** + * Creates a plain object from a Binding message. Also converts values to other types if specified. + * @param message Binding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Binding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PolicyDelta. */ + interface IPolicyDelta { + + /** PolicyDelta bindingDeltas */ + bindingDeltas?: (google.iam.v1.IBindingDelta[]|null); + + /** PolicyDelta auditConfigDeltas */ + auditConfigDeltas?: (google.iam.v1.IAuditConfigDelta[]|null); + } + + /** Represents a PolicyDelta. */ + class PolicyDelta implements IPolicyDelta { + + /** + * Constructs a new PolicyDelta. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IPolicyDelta); + + /** PolicyDelta bindingDeltas. */ + public bindingDeltas: google.iam.v1.IBindingDelta[]; + + /** PolicyDelta auditConfigDeltas. */ + public auditConfigDeltas: google.iam.v1.IAuditConfigDelta[]; + + /** + * Creates a new PolicyDelta instance using the specified properties. + * @param [properties] Properties to set + * @returns PolicyDelta instance + */ + public static create(properties?: google.iam.v1.IPolicyDelta): google.iam.v1.PolicyDelta; + + /** + * Encodes the specified PolicyDelta message. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages. + * @param message PolicyDelta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PolicyDelta message, length delimited. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages. + * @param message PolicyDelta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PolicyDelta message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PolicyDelta + * @throws {Error} If the payload is 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.iam.v1.PolicyDelta; + + /** + * Decodes a PolicyDelta message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PolicyDelta + * @throws {Error} If the 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.iam.v1.PolicyDelta; + + /** + * Verifies a PolicyDelta message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PolicyDelta message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PolicyDelta + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.PolicyDelta; + + /** + * Creates a plain object from a PolicyDelta message. Also converts values to other types if specified. + * @param message PolicyDelta + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.PolicyDelta, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PolicyDelta to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BindingDelta. */ + interface IBindingDelta { + + /** BindingDelta action */ + action?: (google.iam.v1.BindingDelta.Action|null); + + /** BindingDelta role */ + role?: (string|null); + + /** BindingDelta member */ + member?: (string|null); + + /** BindingDelta condition */ + condition?: (google.type.IExpr|null); + } + + /** Represents a BindingDelta. */ + class BindingDelta implements IBindingDelta { + + /** + * Constructs a new BindingDelta. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IBindingDelta); + + /** BindingDelta action. */ + public action: google.iam.v1.BindingDelta.Action; + + /** BindingDelta role. */ + public role: string; + + /** BindingDelta member. */ + public member: string; + + /** BindingDelta condition. */ + public condition?: (google.type.IExpr|null); + + /** + * Creates a new BindingDelta instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDelta instance + */ + public static create(properties?: google.iam.v1.IBindingDelta): google.iam.v1.BindingDelta; + + /** + * Encodes the specified BindingDelta message. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages. + * @param message BindingDelta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BindingDelta message, length delimited. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages. + * @param message BindingDelta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingDelta message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDelta + * @throws {Error} If the payload is 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.iam.v1.BindingDelta; + + /** + * Decodes a BindingDelta message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BindingDelta + * @throws {Error} If the 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.iam.v1.BindingDelta; + + /** + * Verifies a BindingDelta message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BindingDelta message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BindingDelta + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.BindingDelta; + + /** + * Creates a plain object from a BindingDelta message. Also converts values to other types if specified. + * @param message BindingDelta + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.BindingDelta, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BindingDelta to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace BindingDelta { + + /** Action enum. */ + enum Action { + ACTION_UNSPECIFIED = 0, + ADD = 1, + REMOVE = 2 + } + } + + /** Properties of an AuditConfigDelta. */ + interface IAuditConfigDelta { + + /** AuditConfigDelta action */ + action?: (google.iam.v1.AuditConfigDelta.Action|null); + + /** AuditConfigDelta service */ + service?: (string|null); + + /** AuditConfigDelta exemptedMember */ + exemptedMember?: (string|null); + + /** AuditConfigDelta logType */ + logType?: (string|null); + } + + /** Represents an AuditConfigDelta. */ + class AuditConfigDelta implements IAuditConfigDelta { + + /** + * Constructs a new AuditConfigDelta. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IAuditConfigDelta); + + /** AuditConfigDelta action. */ + public action: google.iam.v1.AuditConfigDelta.Action; + + /** AuditConfigDelta service. */ + public service: string; + + /** AuditConfigDelta exemptedMember. */ + public exemptedMember: string; + + /** AuditConfigDelta logType. */ + public logType: string; + + /** + * Creates a new AuditConfigDelta instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditConfigDelta instance + */ + public static create(properties?: google.iam.v1.IAuditConfigDelta): google.iam.v1.AuditConfigDelta; + + /** + * Encodes the specified AuditConfigDelta message. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages. + * @param message AuditConfigDelta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditConfigDelta message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages. + * @param message AuditConfigDelta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditConfigDelta message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditConfigDelta + * @throws {Error} If the payload is 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.iam.v1.AuditConfigDelta; + + /** + * Decodes an AuditConfigDelta message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditConfigDelta + * @throws {Error} If the 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.iam.v1.AuditConfigDelta; + + /** + * Verifies an AuditConfigDelta message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AuditConfigDelta message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditConfigDelta + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfigDelta; + + /** + * Creates a plain object from an AuditConfigDelta message. Also converts values to other types if specified. + * @param message AuditConfigDelta + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.AuditConfigDelta, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditConfigDelta to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AuditConfigDelta { + + /** Action enum. */ + enum Action { + ACTION_UNSPECIFIED = 0, + ADD = 1, + REMOVE = 2 + } + } + + /** Namespace logging. */ + namespace logging { + + /** Properties of an AuditData. */ + interface IAuditData { + + /** AuditData policyDelta */ + policyDelta?: (google.iam.v1.IPolicyDelta|null); + } + + /** Represents an AuditData. */ + class AuditData implements IAuditData { + + /** + * Constructs a new AuditData. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.logging.IAuditData); + + /** AuditData policyDelta. */ + public policyDelta?: (google.iam.v1.IPolicyDelta|null); + + /** + * Creates a new AuditData instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditData instance + */ + public static create(properties?: google.iam.v1.logging.IAuditData): google.iam.v1.logging.AuditData; + + /** + * Encodes the specified AuditData message. Does not implicitly {@link google.iam.v1.logging.AuditData.verify|verify} messages. + * @param message AuditData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.logging.IAuditData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditData message, length delimited. Does not implicitly {@link google.iam.v1.logging.AuditData.verify|verify} messages. + * @param message AuditData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.logging.IAuditData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditData + * @throws {Error} If the payload is 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.iam.v1.logging.AuditData; + + /** + * Decodes an AuditData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditData + * @throws {Error} If the 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.iam.v1.logging.AuditData; + + /** + * Verifies an AuditData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AuditData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditData + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.logging.AuditData; + + /** + * Creates a plain object from an AuditData message. Also converts values to other types if specified. + * @param message AuditData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.logging.AuditData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5 + } + + /** Properties of a ResourceDescriptor. */ + interface IResourceDescriptor { + + /** ResourceDescriptor type */ + type?: (string|null); + + /** ResourceDescriptor pattern */ + pattern?: (string[]|null); + + /** ResourceDescriptor nameField */ + nameField?: (string|null); + + /** ResourceDescriptor history */ + history?: (google.api.ResourceDescriptor.History|null); + + /** ResourceDescriptor plural */ + plural?: (string|null); + + /** ResourceDescriptor singular */ + singular?: (string|null); + } + + /** Represents a ResourceDescriptor. */ + class ResourceDescriptor implements IResourceDescriptor { + + /** + * Constructs a new ResourceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceDescriptor); + + /** ResourceDescriptor type. */ + public type: string; + + /** ResourceDescriptor pattern. */ + public pattern: string[]; + + /** ResourceDescriptor nameField. */ + public nameField: string; + + /** ResourceDescriptor history. */ + public history: google.api.ResourceDescriptor.History; + + /** ResourceDescriptor plural. */ + public plural: string; + + /** ResourceDescriptor singular. */ + public singular: string; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceDescriptor instance + */ + public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceDescriptor + * @throws {Error} If the 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.api.ResourceDescriptor; + + /** + * Verifies a ResourceDescriptor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @param message ResourceDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ResourceDescriptor { + + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } + } + + /** Properties of a ResourceReference. */ + interface IResourceReference { + + /** ResourceReference type */ + type?: (string|null); + + /** ResourceReference childType */ + childType?: (string|null); + } + + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { + + /** + * Constructs a new ResourceReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceReference); + + /** ResourceReference type. */ + public type: string; + + /** ResourceReference childType. */ + public childType: string; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceReference instance + */ + public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceReference + * @throws {Error} If the 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.api.ResourceReference; + + /** + * Verifies a ResourceReference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceReference + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace type. */ + namespace type { + + /** Properties of an Expr. */ + interface IExpr { + + /** Expr expression */ + expression?: (string|null); + + /** Expr title */ + title?: (string|null); + + /** Expr description */ + description?: (string|null); + + /** Expr location */ + location?: (string|null); + } + + /** Represents an Expr. */ + class Expr implements IExpr { + + /** + * Constructs a new Expr. + * @param [properties] Properties to set + */ + constructor(properties?: google.type.IExpr); + + /** Expr expression. */ + public expression: string; + + /** Expr title. */ + public title: string; + + /** Expr description. */ + public description: string; + + /** Expr location. */ + public location: string; + + /** + * Creates a new Expr instance using the specified properties. + * @param [properties] Properties to set + * @returns Expr instance + */ + public static create(properties?: google.type.IExpr): google.type.Expr; + + /** + * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages. + * @param message Expr message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages. + * @param message Expr message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Expr message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Expr + * @throws {Error} If the payload is 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.type.Expr; + + /** + * Decodes an Expr message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Expr + * @throws {Error} If the 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.type.Expr; + + /** + * Verifies an Expr message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Expr message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Expr + */ + public static fromObject(object: { [k: string]: any }): google.type.Expr; + + /** + * Creates a plain object from an Expr message. Also converts values to other types if specified. + * @param message Expr + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.type.Expr, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Expr to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +} diff --git a/dist/protos/iam_service.js b/dist/protos/iam_service.js new file mode 100644 index 0000000..24d5ecc --- /dev/null +++ b/dist/protos/iam_service.js @@ -0,0 +1 @@ +(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("protobufjs/minimal")))})(function(o){var e,t,n,r,F,a=o.Reader,i=o.Writer,p=o.util,l=o.roots.iam_protos||(o.roots.iam_protos={});function B(e,t,n){o.rpc.Service.call(this,e,t,n)}function s(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.resource=e.string();break;case 2:o.policy=l.google.iam.v1.Policy.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},s.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},s.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.policy&&e.hasOwnProperty("policy")){e=l.google.iam.v1.Policy.verify(e.policy);if(e)return"policy."+e}return null},s.fromObject=function(e){if(e instanceof l.google.iam.v1.SetIamPolicyRequest)return e;var t=new l.google.iam.v1.SetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.policy){if("object"!=typeof e.policy)throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected");t.policy=l.google.iam.v1.Policy.fromObject(e.policy)}return t},s.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.resource="",n.policy=null),null!=e.resource&&e.hasOwnProperty("resource")&&(n.resource=e.resource),null!=e.policy&&e.hasOwnProperty("policy")&&(n.policy=l.google.iam.v1.Policy.toObject(e.policy,t)),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},s),t.GetIamPolicyRequest=(u.prototype.resource="",u.prototype.options=null,u.create=function(e){return new u(e)},u.encode=function(e,t){return t=t||i.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.iam.v1.GetPolicyOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},u.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},u.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.GetIamPolicyRequest;e.pos>>3){case 1:o.resource=e.string();break;case 2:o.options=l.google.iam.v1.GetPolicyOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},u.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},u.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.iam.v1.GetPolicyOptions.verify(e.options);if(e)return"options."+e}return null},u.fromObject=function(e){if(e instanceof l.google.iam.v1.GetIamPolicyRequest)return e;var t=new l.google.iam.v1.GetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.iam.v1.GetIamPolicyRequest.options: object expected");t.options=l.google.iam.v1.GetPolicyOptions.fromObject(e.options)}return t},u.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.resource="",n.options=null),null!=e.resource&&e.hasOwnProperty("resource")&&(n.resource=e.resource),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.iam.v1.GetPolicyOptions.toObject(e.options,t)),n},u.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},u),t.TestIamPermissionsRequest=(c.prototype.resource="",c.prototype.permissions=p.emptyArray,c.create=function(e){return new c(e)},c.encode=function(e,t){if(t=t||i.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.permissions&&e.permissions.length)for(var n=0;n>>3){case 1:o.resource=e.string();break;case 2:o.permissions&&o.permissions.length||(o.permissions=[]),o.permissions.push(e.string());break;default:e.skipType(7&r)}}return o},c.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},c.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t>>3==1?(o.permissions&&o.permissions.length||(o.permissions=[]),o.permissions.push(e.string())):e.skipType(7&r)}return o},G.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},G.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t>>3==1?o.requestedPolicyVersion=e.int32():e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},U.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&!p.isInteger(e.requestedPolicyVersion)?"requestedPolicyVersion: integer expected":null},U.fromObject=function(e){var t;return e instanceof l.google.iam.v1.GetPolicyOptions?e:(t=new l.google.iam.v1.GetPolicyOptions,null!=e.requestedPolicyVersion&&(t.requestedPolicyVersion=0|e.requestedPolicyVersion),t)},U.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.requestedPolicyVersion=0),null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&(n.requestedPolicyVersion=e.requestedPolicyVersion),n},U.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},U),t.Policy=(d.prototype.version=0,d.prototype.bindings=p.emptyArray,d.prototype.etag=p.newBuffer([]),d.create=function(e){return new d(e)},d.encode=function(e,t){if(t=t||i.create(),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(8).int32(e.version),null!=e.etag&&Object.hasOwnProperty.call(e,"etag")&&t.uint32(26).bytes(e.etag),null!=e.bindings&&e.bindings.length)for(var n=0;n>>3){case 1:o.version=e.int32();break;case 4:o.bindings&&o.bindings.length||(o.bindings=[]),o.bindings.push(l.google.iam.v1.Binding.decode(e,e.uint32()));break;case 3:o.etag=e.bytes();break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},d.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.version&&e.hasOwnProperty("version")&&!p.isInteger(e.version))return"version: integer expected";if(null!=e.bindings&&e.hasOwnProperty("bindings")){if(!Array.isArray(e.bindings))return"bindings: array expected";for(var t=0;t>>3){case 1:o.role=e.string();break;case 2:o.members&&o.members.length||(o.members=[]),o.members.push(e.string());break;case 3:o.condition=l.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},g.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.role&&e.hasOwnProperty("role")&&!p.isString(e.role))return"role: string expected";if(null!=e.members&&e.hasOwnProperty("members")){if(!Array.isArray(e.members))return"members: array expected";for(var t=0;t>>3){case 1:o.bindingDeltas&&o.bindingDeltas.length||(o.bindingDeltas=[]),o.bindingDeltas.push(l.google.iam.v1.BindingDelta.decode(e,e.uint32()));break;case 2:o.auditConfigDeltas&&o.auditConfigDeltas.length||(o.auditConfigDeltas=[]),o.auditConfigDeltas.push(l.google.iam.v1.AuditConfigDelta.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},M.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.bindingDeltas&&e.hasOwnProperty("bindingDeltas")){if(!Array.isArray(e.bindingDeltas))return"bindingDeltas: array expected";for(var t=0;t>>3){case 1:o.action=e.int32();break;case 2:o.role=e.string();break;case 3:o.member=e.string();break;case 4:o.condition=l.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},f.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}if(null!=e.role&&e.hasOwnProperty("role")&&!p.isString(e.role))return"role: string expected";if(null!=e.member&&e.hasOwnProperty("member")&&!p.isString(e.member))return"member: string expected";if(null!=e.condition&&e.hasOwnProperty("condition")){e=l.google.type.Expr.verify(e.condition);if(e)return"condition."+e}return null},f.fromObject=function(e){if(e instanceof l.google.iam.v1.BindingDelta)return e;var t=new l.google.iam.v1.BindingDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}if(null!=e.role&&(t.role=String(e.role)),null!=e.member&&(t.member=String(e.member)),null!=e.condition){if("object"!=typeof e.condition)throw TypeError(".google.iam.v1.BindingDelta.condition: object expected");t.condition=l.google.type.Expr.fromObject(e.condition)}return t},f.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.action=t.enums===String?"ACTION_UNSPECIFIED":0,n.role="",n.member="",n.condition=null),null!=e.action&&e.hasOwnProperty("action")&&(n.action=t.enums===String?l.google.iam.v1.BindingDelta.Action[e.action]:e.action),null!=e.role&&e.hasOwnProperty("role")&&(n.role=e.role),null!=e.member&&e.hasOwnProperty("member")&&(n.member=e.member),null!=e.condition&&e.hasOwnProperty("condition")&&(n.condition=l.google.type.Expr.toObject(e.condition,t)),n},f.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},f.Action=(e={},(r=Object.create(e))[e[0]="ACTION_UNSPECIFIED"]=0,r[e[1]="ADD"]=1,r[e[2]="REMOVE"]=2,r),f),t.AuditConfigDelta=(y.prototype.action=0,y.prototype.service="",y.prototype.exemptedMember="",y.prototype.logType="",y.create=function(e){return new y(e)},y.encode=function(e,t){return t=t||i.create(),null!=e.action&&Object.hasOwnProperty.call(e,"action")&&t.uint32(8).int32(e.action),null!=e.service&&Object.hasOwnProperty.call(e,"service")&&t.uint32(18).string(e.service),null!=e.exemptedMember&&Object.hasOwnProperty.call(e,"exemptedMember")&&t.uint32(26).string(e.exemptedMember),null!=e.logType&&Object.hasOwnProperty.call(e,"logType")&&t.uint32(34).string(e.logType),t},y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.AuditConfigDelta;e.pos>>3){case 1:o.action=e.int32();break;case 2:o.service=e.string();break;case 3:o.exemptedMember=e.string();break;case 4:o.logType=e.string();break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}return null!=e.service&&e.hasOwnProperty("service")&&!p.isString(e.service)?"service: string expected":null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&!p.isString(e.exemptedMember)?"exemptedMember: string expected":null!=e.logType&&e.hasOwnProperty("logType")&&!p.isString(e.logType)?"logType: string expected":null},y.fromObject=function(e){if(e instanceof l.google.iam.v1.AuditConfigDelta)return e;var t=new l.google.iam.v1.AuditConfigDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}return null!=e.service&&(t.service=String(e.service)),null!=e.exemptedMember&&(t.exemptedMember=String(e.exemptedMember)),null!=e.logType&&(t.logType=String(e.logType)),t},y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.action=t.enums===String?"ACTION_UNSPECIFIED":0,n.service="",n.exemptedMember="",n.logType=""),null!=e.action&&e.hasOwnProperty("action")&&(n.action=t.enums===String?l.google.iam.v1.AuditConfigDelta.Action[e.action]:e.action),null!=e.service&&e.hasOwnProperty("service")&&(n.service=e.service),null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&(n.exemptedMember=e.exemptedMember),null!=e.logType&&e.hasOwnProperty("logType")&&(n.logType=e.logType),n},y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},y.Action=(e={},(r=Object.create(e))[e[0]="ACTION_UNSPECIFIED"]=0,r[e[1]="ADD"]=1,r[e[2]="REMOVE"]=2,r),y),t.logging=((e={}).AuditData=(L.prototype.policyDelta=null,L.create=function(e){return new L(e)},L.encode=function(e,t){return t=t||i.create(),null!=e.policyDelta&&Object.hasOwnProperty.call(e,"policyDelta")&&l.google.iam.v1.PolicyDelta.encode(e.policyDelta,t.uint32(18).fork()).ldelim(),t},L.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},L.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.logging.AuditData;e.pos>>3==2?o.policyDelta=l.google.iam.v1.PolicyDelta.decode(e,e.uint32()):e.skipType(7&r)}return o},L.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},L.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.policyDelta&&e.hasOwnProperty("policyDelta")){e=l.google.iam.v1.PolicyDelta.verify(e.policyDelta);if(e)return"policyDelta."+e}return null},L.fromObject=function(e){if(e instanceof l.google.iam.v1.logging.AuditData)return e;var t=new l.google.iam.v1.logging.AuditData;if(null!=e.policyDelta){if("object"!=typeof e.policyDelta)throw TypeError(".google.iam.v1.logging.AuditData.policyDelta: object expected");t.policyDelta=l.google.iam.v1.PolicyDelta.fromObject(e.policyDelta)}return t},L.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.policyDelta=null),null!=e.policyDelta&&e.hasOwnProperty("policyDelta")&&(n.policyDelta=l.google.iam.v1.PolicyDelta.toObject(e.policyDelta,t)),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},L),e),t),n),F.api=((r={}).Http=(J.prototype.rules=p.emptyArray,J.prototype.fullyDecodeReservedExpansion=!1,J.create=function(e){return new J(e)},J.encode=function(e,t){if(t=t||i.create(),null!=e.rules&&e.rules.length)for(var n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(l.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},J.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=l.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(l.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},h.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!p.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!p.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=l.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!p.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!p.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},_.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},_.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!p.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!p.isString(e.path)?"path: string expected":null},_.fromObject=function(e){var t;return e instanceof l.google.api.CustomHttpPattern?e:(t=new l.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},_.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},_.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},_),r.FieldBehavior=(e={},(t=Object.create(e))[e[0]="FIELD_BEHAVIOR_UNSPECIFIED"]=0,t[e[1]="OPTIONAL"]=1,t[e[2]="REQUIRED"]=2,t[e[3]="OUTPUT_ONLY"]=3,t[e[4]="INPUT_ONLY"]=4,t[e[5]="IMMUTABLE"]=5,t),r.ResourceDescriptor=(b.prototype.type="",b.prototype.pattern=p.emptyArray,b.prototype.nameField="",b.prototype.history=0,b.prototype.plural="",b.prototype.singular="",b.create=function(e){return new b(e)},b.encode=function(e,t){if(t=t||i.create(),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.pattern&&e.pattern.length)for(var n=0;n>>3){case 1:o.type=e.string();break;case 2:o.pattern&&o.pattern.length||(o.pattern=[]),o.pattern.push(e.string());break;case 3:o.nameField=e.string();break;case 4:o.history=e.int32();break;case 5:o.plural=e.string();break;case 6:o.singular=e.string();break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type")&&!p.isString(e.type))return"type: string expected";if(null!=e.pattern&&e.hasOwnProperty("pattern")){if(!Array.isArray(e.pattern))return"pattern: array expected";for(var t=0;t>>3){case 1:o.type=e.string();break;case 2:o.childType=e.string();break;default:e.skipType(7&r)}}return o},H.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},H.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type&&e.hasOwnProperty("type")&&!p.isString(e.type)?"type: string expected":null!=e.childType&&e.hasOwnProperty("childType")&&!p.isString(e.childType)?"childType: string expected":null},H.fromObject=function(e){var t;return e instanceof l.google.api.ResourceReference?e:(t=new l.google.api.ResourceReference,null!=e.type&&(t.type=String(e.type)),null!=e.childType&&(t.childType=String(e.childType)),t)},H.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type="",n.childType=""),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.childType&&e.hasOwnProperty("childType")&&(n.childType=e.childType),n},H.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},H),r),F.protobuf=((n={}).FileDescriptorSet=(q.prototype.file=p.emptyArray,q.create=function(e){return new q(e)},q.encode=function(e,t){if(t=t||i.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(l.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(l.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(l.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(l.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=l.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(l.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=l.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},v.fromObject=function(e){if(e instanceof l.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new l.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=l.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},v.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},v.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},v),O.ReservedRange=(Y.prototype.start=0,Y.prototype.end=0,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){return t=t||i.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},Y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},Y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end)?"end: integer expected":null},Y.fromObject=function(e){var t;return e instanceof l.google.protobuf.DescriptorProto.ReservedRange?e:(t=new l.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},Y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},Y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},Y),O),n.ExtensionRangeOptions=(z.prototype.uninterpretedOption=p.emptyArray,z.create=function(e){return new z(e)},z.encode=function(e,t){if(t=t||i.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=l.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},P.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!p.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";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:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!p.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!p.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!p.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!p.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!p.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},P.fromObject=function(e){if(e instanceof l.google.protobuf.FieldDescriptorProto)return e;var t=new l.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=l.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},P.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?l.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},P.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},P.Type=(e={},(t=Object.create(e))[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t),P.Label=(e={},(t=Object.create(e))[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t),P),n.OneofDescriptorProto=(W.prototype.name="",W.prototype.options=null,W.create=function(e){return new W(e)},W.encode=function(e,t){return t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},W.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},W.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=l.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},W.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},W.fromObject=function(e){if(e instanceof l.google.protobuf.OneofDescriptorProto)return e;var t=new l.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=l.google.protobuf.OneofOptions.fromObject(e.options)}return t},W.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.OneofOptions.toObject(e.options,t)),n},W.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},W),n.EnumDescriptorProto=(w.prototype.name="",w.prototype.value=p.emptyArray,w.prototype.options=null,w.prototype.reservedRange=p.emptyArray,w.prototype.reservedName=p.emptyArray,w.create=function(e){return new w(e)},w.encode=function(e,t){if(t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(l.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=l.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(l.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},X.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},X.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end)?"end: integer expected":null},X.fromObject=function(e){var t;return e instanceof l.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new l.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},X.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},X.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},X),w),n.EnumValueDescriptorProto=(j.prototype.name="",j.prototype.number=0,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){return t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=l.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!p.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},j.fromObject=function(e){if(e instanceof l.google.protobuf.EnumValueDescriptorProto)return e;var t=new l.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=l.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},j.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},j.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},j),n.ServiceDescriptorProto=(D.prototype.name="",D.prototype.method=p.emptyArray,D.prototype.options=null,D.create=function(e){return new D(e)},D.encode=function(e,t){if(t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(l.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=l.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=l.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!p.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!p.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof l.google.protobuf.MethodDescriptorProto)return e;var t=new l.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=l.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),n.FileOptions=(S.prototype.javaPackage="",S.prototype.javaOuterClassname="",S.prototype.javaMultipleFiles=!1,S.prototype.javaGenerateEqualsAndHash=!1,S.prototype.javaStringCheckUtf8=!1,S.prototype.optimizeFor=1,S.prototype.goPackage="",S.prototype.ccGenericServices=!1,S.prototype.javaGenericServices=!1,S.prototype.pyGenericServices=!1,S.prototype.phpGenericServices=!1,S.prototype.deprecated=!1,S.prototype.ccEnableArenas=!0,S.prototype.objcClassPrefix="",S.prototype.csharpNamespace="",S.prototype.swiftPrefix="",S.prototype.phpClassPrefix="",S.prototype.phpNamespace="",S.prototype.phpMetadataNamespace="",S.prototype.rubyPackage="",S.prototype.uninterpretedOption=p.emptyArray,S.prototype[".google.api.resourceDefinition"]=p.emptyArray,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||i.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:o[".google.api.resourceDefinition"]&&o[".google.api.resourceDefinition"].length||(o[".google.api.resourceDefinition"]=[]),o[".google.api.resourceDefinition"].push(l.google.api.ResourceDescriptor.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!p.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!p.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!p.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!p.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!p.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!p.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!p.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!p.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!p.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!p.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:o[".google.api.resource"]=l.google.api.ResourceDescriptor.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1052:if(o[".google.api.fieldBehavior"]&&o[".google.api.fieldBehavior"].length||(o[".google.api.fieldBehavior"]=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},Q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},K.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},K.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:o[".google.api.http"]=l.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(l.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},R.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},R.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(p.Long?(t.negativeIntValue=p.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new p.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?p.base64.decode(e.stringValue,t.stringValue=p.newBuffer(p.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},R.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",p.Long?(n=new p.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,p.Long?(n=new p.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=p.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?p.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new p.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?p.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},R.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},R.NamePart=(Z.prototype.namePart="",Z.prototype.isExtension=!1,Z.create=function(e){return new Z(e)},Z.encode=function(e,t){return(t=t||i.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},Z.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Z.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw p.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw p.ProtocolError("missing required 'isExtension'",{instance:o})},Z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Z.verify=function(e){return"object"!=typeof e||null===e?"object expected":p.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},Z.fromObject=function(e){var t;return e instanceof l.google.protobuf.UninterpretedOption.NamePart?e:(t=new l.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},Z.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},Z.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},Z),R),n.SourceCodeInfo=($.prototype.location=p.emptyArray,$.create=function(e){return new $(e)},$.encode=function(e,t){if(t=t||i.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(l.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},$.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},$.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(l.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},ee.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},ee.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.expression=e.string();break;case 2:o.title=e.string();break;case 3:o.description=e.string();break;case 4:o.location=e.string();break;default:e.skipType(7&r)}}return o},V.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},V.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.expression&&e.hasOwnProperty("expression")&&!p.isString(e.expression)?"expression: string expected":null!=e.title&&e.hasOwnProperty("title")&&!p.isString(e.title)?"title: string expected":null!=e.description&&e.hasOwnProperty("description")&&!p.isString(e.description)?"description: string expected":null!=e.location&&e.hasOwnProperty("location")&&!p.isString(e.location)?"location: string expected":null},V.fromObject=function(e){var t;return e instanceof l.google.type.Expr?e:(t=new l.google.type.Expr,null!=e.expression&&(t.expression=String(e.expression)),null!=e.title&&(t.title=String(e.title)),null!=e.description&&(t.description=String(e.description)),null!=e.location&&(t.location=String(e.location)),t)},V.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.expression="",n.title="",n.description="",n.location=""),null!=e.expression&&e.hasOwnProperty("expression")&&(n.expression=e.expression),null!=e.title&&e.hasOwnProperty("title")&&(n.title=e.title),null!=e.description&&e.hasOwnProperty("description")&&(n.description=e.description),null!=e.location&&e.hasOwnProperty("location")&&(n.location=e.location),n},V.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},V),r),F),l}); \ No newline at end of file diff --git a/dist/protos/iam_service.json b/dist/protos/iam_service.json new file mode 100644 index 0000000..f70405c --- /dev/null +++ b/dist/protos/iam_service.json @@ -0,0 +1 @@ +{"nested":{"google":{"nested":{"iam":{"nested":{"v1":{"options":{"cc_enable_arenas":true,"csharp_namespace":"Google.Cloud.Iam.V1","go_package":"google.golang.org/genproto/googleapis/iam/v1;iam","java_multiple_files":true,"java_outer_classname":"PolicyProto","java_package":"com.google.iam.v1","php_namespace":"Google\\Cloud\\Iam\\V1"},"nested":{"IAMPolicy":{"options":{"(google.api.default_host)":"iam-meta-api.googleapis.com"},"methods":{"SetIamPolicy":{"requestType":"SetIamPolicyRequest","responseType":"Policy","options":{"(google.api.http).post":"/v1/{resource=**}:setIamPolicy","(google.api.http).body":"*"},"parsedOptions":[{"(google.api.http)":{"post":"/v1/{resource=**}:setIamPolicy","body":"*"}}]},"GetIamPolicy":{"requestType":"GetIamPolicyRequest","responseType":"Policy","options":{"(google.api.http).post":"/v1/{resource=**}:getIamPolicy","(google.api.http).body":"*"},"parsedOptions":[{"(google.api.http)":{"post":"/v1/{resource=**}:getIamPolicy","body":"*"}}]},"TestIamPermissions":{"requestType":"TestIamPermissionsRequest","responseType":"TestIamPermissionsResponse","options":{"(google.api.http).post":"/v1/{resource=**}:testIamPermissions","(google.api.http).body":"*"},"parsedOptions":[{"(google.api.http)":{"post":"/v1/{resource=**}:testIamPermissions","body":"*"}}]}}},"SetIamPolicyRequest":{"fields":{"resource":{"type":"string","id":1,"options":{"(google.api.field_behavior)":"REQUIRED","(google.api.resource_reference).type":"*"}},"policy":{"type":"Policy","id":2,"options":{"(google.api.field_behavior)":"REQUIRED"}}}},"GetIamPolicyRequest":{"fields":{"resource":{"type":"string","id":1,"options":{"(google.api.field_behavior)":"REQUIRED","(google.api.resource_reference).type":"*"}},"options":{"type":"GetPolicyOptions","id":2}}},"TestIamPermissionsRequest":{"fields":{"resource":{"type":"string","id":1,"options":{"(google.api.field_behavior)":"REQUIRED","(google.api.resource_reference).type":"*"}},"permissions":{"rule":"repeated","type":"string","id":2,"options":{"(google.api.field_behavior)":"REQUIRED"}}}},"TestIamPermissionsResponse":{"fields":{"permissions":{"rule":"repeated","type":"string","id":1}}},"GetPolicyOptions":{"fields":{"requestedPolicyVersion":{"type":"int32","id":1}}},"Policy":{"fields":{"version":{"type":"int32","id":1},"bindings":{"rule":"repeated","type":"Binding","id":4},"etag":{"type":"bytes","id":3}}},"Binding":{"fields":{"role":{"type":"string","id":1},"members":{"rule":"repeated","type":"string","id":2},"condition":{"type":"google.type.Expr","id":3}}},"PolicyDelta":{"fields":{"bindingDeltas":{"rule":"repeated","type":"BindingDelta","id":1},"auditConfigDeltas":{"rule":"repeated","type":"AuditConfigDelta","id":2}}},"BindingDelta":{"fields":{"action":{"type":"Action","id":1},"role":{"type":"string","id":2},"member":{"type":"string","id":3},"condition":{"type":"google.type.Expr","id":4}},"nested":{"Action":{"values":{"ACTION_UNSPECIFIED":0,"ADD":1,"REMOVE":2}}}},"AuditConfigDelta":{"fields":{"action":{"type":"Action","id":1},"service":{"type":"string","id":2},"exemptedMember":{"type":"string","id":3},"logType":{"type":"string","id":4}},"nested":{"Action":{"values":{"ACTION_UNSPECIFIED":0,"ADD":1,"REMOVE":2}}}},"logging":{"options":{"csharp_namespace":"Google.Cloud.Iam.V1.Logging","go_package":"google.golang.org/genproto/googleapis/iam/v1/logging;logging","java_multiple_files":true,"java_outer_classname":"AuditDataProto","java_package":"com.google.iam.v1.logging"},"nested":{"AuditData":{"fields":{"policyDelta":{"type":"google.iam.v1.PolicyDelta","id":2}}}}}}}}},"api":{"options":{"go_package":"google.golang.org/genproto/googleapis/api/annotations;annotations","java_multiple_files":true,"java_outer_classname":"ResourceProto","java_package":"com.google.api","objc_class_prefix":"GAPI","cc_enable_arenas":true},"nested":{"http":{"type":"HttpRule","id":72295728,"extend":"google.protobuf.MethodOptions"},"Http":{"fields":{"rules":{"rule":"repeated","type":"HttpRule","id":1},"fullyDecodeReservedExpansion":{"type":"bool","id":2}}},"HttpRule":{"oneofs":{"pattern":{"oneof":["get","put","post","delete","patch","custom"]}},"fields":{"selector":{"type":"string","id":1},"get":{"type":"string","id":2},"put":{"type":"string","id":3},"post":{"type":"string","id":4},"delete":{"type":"string","id":5},"patch":{"type":"string","id":6},"custom":{"type":"CustomHttpPattern","id":8},"body":{"type":"string","id":7},"responseBody":{"type":"string","id":12},"additionalBindings":{"rule":"repeated","type":"HttpRule","id":11}}},"CustomHttpPattern":{"fields":{"kind":{"type":"string","id":1},"path":{"type":"string","id":2}}},"methodSignature":{"rule":"repeated","type":"string","id":1051,"extend":"google.protobuf.MethodOptions"},"defaultHost":{"type":"string","id":1049,"extend":"google.protobuf.ServiceOptions"},"oauthScopes":{"type":"string","id":1050,"extend":"google.protobuf.ServiceOptions"},"fieldBehavior":{"rule":"repeated","type":"google.api.FieldBehavior","id":1052,"extend":"google.protobuf.FieldOptions"},"FieldBehavior":{"values":{"FIELD_BEHAVIOR_UNSPECIFIED":0,"OPTIONAL":1,"REQUIRED":2,"OUTPUT_ONLY":3,"INPUT_ONLY":4,"IMMUTABLE":5}},"resourceReference":{"type":"google.api.ResourceReference","id":1055,"extend":"google.protobuf.FieldOptions"},"resourceDefinition":{"rule":"repeated","type":"google.api.ResourceDescriptor","id":1053,"extend":"google.protobuf.FileOptions"},"resource":{"type":"google.api.ResourceDescriptor","id":1053,"extend":"google.protobuf.MessageOptions"},"ResourceDescriptor":{"fields":{"type":{"type":"string","id":1},"pattern":{"rule":"repeated","type":"string","id":2},"nameField":{"type":"string","id":3},"history":{"type":"History","id":4},"plural":{"type":"string","id":5},"singular":{"type":"string","id":6}},"nested":{"History":{"values":{"HISTORY_UNSPECIFIED":0,"ORIGINALLY_SINGLE_PATTERN":1,"FUTURE_MULTI_PATTERN":2}}}},"ResourceReference":{"fields":{"type":{"type":"string","id":1},"childType":{"type":"string","id":2}}}}},"protobuf":{"options":{"go_package":"github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor","java_package":"com.google.protobuf","java_outer_classname":"DescriptorProtos","csharp_namespace":"Google.Protobuf.Reflection","objc_class_prefix":"GPB","cc_enable_arenas":true,"optimize_for":"SPEED"},"nested":{"FileDescriptorSet":{"fields":{"file":{"rule":"repeated","type":"FileDescriptorProto","id":1}}},"FileDescriptorProto":{"fields":{"name":{"type":"string","id":1},"package":{"type":"string","id":2},"dependency":{"rule":"repeated","type":"string","id":3},"publicDependency":{"rule":"repeated","type":"int32","id":10,"options":{"packed":false}},"weakDependency":{"rule":"repeated","type":"int32","id":11,"options":{"packed":false}},"messageType":{"rule":"repeated","type":"DescriptorProto","id":4},"enumType":{"rule":"repeated","type":"EnumDescriptorProto","id":5},"service":{"rule":"repeated","type":"ServiceDescriptorProto","id":6},"extension":{"rule":"repeated","type":"FieldDescriptorProto","id":7},"options":{"type":"FileOptions","id":8},"sourceCodeInfo":{"type":"SourceCodeInfo","id":9},"syntax":{"type":"string","id":12}}},"DescriptorProto":{"fields":{"name":{"type":"string","id":1},"field":{"rule":"repeated","type":"FieldDescriptorProto","id":2},"extension":{"rule":"repeated","type":"FieldDescriptorProto","id":6},"nestedType":{"rule":"repeated","type":"DescriptorProto","id":3},"enumType":{"rule":"repeated","type":"EnumDescriptorProto","id":4},"extensionRange":{"rule":"repeated","type":"ExtensionRange","id":5},"oneofDecl":{"rule":"repeated","type":"OneofDescriptorProto","id":8},"options":{"type":"MessageOptions","id":7},"reservedRange":{"rule":"repeated","type":"ReservedRange","id":9},"reservedName":{"rule":"repeated","type":"string","id":10}},"nested":{"ExtensionRange":{"fields":{"start":{"type":"int32","id":1},"end":{"type":"int32","id":2},"options":{"type":"ExtensionRangeOptions","id":3}}},"ReservedRange":{"fields":{"start":{"type":"int32","id":1},"end":{"type":"int32","id":2}}}}},"ExtensionRangeOptions":{"fields":{"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"FieldDescriptorProto":{"fields":{"name":{"type":"string","id":1},"number":{"type":"int32","id":3},"label":{"type":"Label","id":4},"type":{"type":"Type","id":5},"typeName":{"type":"string","id":6},"extendee":{"type":"string","id":2},"defaultValue":{"type":"string","id":7},"oneofIndex":{"type":"int32","id":9},"jsonName":{"type":"string","id":10},"options":{"type":"FieldOptions","id":8},"proto3Optional":{"type":"bool","id":17}},"nested":{"Type":{"values":{"TYPE_DOUBLE":1,"TYPE_FLOAT":2,"TYPE_INT64":3,"TYPE_UINT64":4,"TYPE_INT32":5,"TYPE_FIXED64":6,"TYPE_FIXED32":7,"TYPE_BOOL":8,"TYPE_STRING":9,"TYPE_GROUP":10,"TYPE_MESSAGE":11,"TYPE_BYTES":12,"TYPE_UINT32":13,"TYPE_ENUM":14,"TYPE_SFIXED32":15,"TYPE_SFIXED64":16,"TYPE_SINT32":17,"TYPE_SINT64":18}},"Label":{"values":{"LABEL_OPTIONAL":1,"LABEL_REQUIRED":2,"LABEL_REPEATED":3}}}},"OneofDescriptorProto":{"fields":{"name":{"type":"string","id":1},"options":{"type":"OneofOptions","id":2}}},"EnumDescriptorProto":{"fields":{"name":{"type":"string","id":1},"value":{"rule":"repeated","type":"EnumValueDescriptorProto","id":2},"options":{"type":"EnumOptions","id":3},"reservedRange":{"rule":"repeated","type":"EnumReservedRange","id":4},"reservedName":{"rule":"repeated","type":"string","id":5}},"nested":{"EnumReservedRange":{"fields":{"start":{"type":"int32","id":1},"end":{"type":"int32","id":2}}}}},"EnumValueDescriptorProto":{"fields":{"name":{"type":"string","id":1},"number":{"type":"int32","id":2},"options":{"type":"EnumValueOptions","id":3}}},"ServiceDescriptorProto":{"fields":{"name":{"type":"string","id":1},"method":{"rule":"repeated","type":"MethodDescriptorProto","id":2},"options":{"type":"ServiceOptions","id":3}}},"MethodDescriptorProto":{"fields":{"name":{"type":"string","id":1},"inputType":{"type":"string","id":2},"outputType":{"type":"string","id":3},"options":{"type":"MethodOptions","id":4},"clientStreaming":{"type":"bool","id":5,"options":{"default":false}},"serverStreaming":{"type":"bool","id":6,"options":{"default":false}}}},"FileOptions":{"fields":{"javaPackage":{"type":"string","id":1},"javaOuterClassname":{"type":"string","id":8},"javaMultipleFiles":{"type":"bool","id":10,"options":{"default":false}},"javaGenerateEqualsAndHash":{"type":"bool","id":20,"options":{"deprecated":true}},"javaStringCheckUtf8":{"type":"bool","id":27,"options":{"default":false}},"optimizeFor":{"type":"OptimizeMode","id":9,"options":{"default":"SPEED"}},"goPackage":{"type":"string","id":11},"ccGenericServices":{"type":"bool","id":16,"options":{"default":false}},"javaGenericServices":{"type":"bool","id":17,"options":{"default":false}},"pyGenericServices":{"type":"bool","id":18,"options":{"default":false}},"phpGenericServices":{"type":"bool","id":42,"options":{"default":false}},"deprecated":{"type":"bool","id":23,"options":{"default":false}},"ccEnableArenas":{"type":"bool","id":31,"options":{"default":true}},"objcClassPrefix":{"type":"string","id":36},"csharpNamespace":{"type":"string","id":37},"swiftPrefix":{"type":"string","id":39},"phpClassPrefix":{"type":"string","id":40},"phpNamespace":{"type":"string","id":41},"phpMetadataNamespace":{"type":"string","id":44},"rubyPackage":{"type":"string","id":45},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[38,38]],"nested":{"OptimizeMode":{"values":{"SPEED":1,"CODE_SIZE":2,"LITE_RUNTIME":3}}}},"MessageOptions":{"fields":{"messageSetWireFormat":{"type":"bool","id":1,"options":{"default":false}},"noStandardDescriptorAccessor":{"type":"bool","id":2,"options":{"default":false}},"deprecated":{"type":"bool","id":3,"options":{"default":false}},"mapEntry":{"type":"bool","id":7},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[8,8],[9,9]]},"FieldOptions":{"fields":{"ctype":{"type":"CType","id":1,"options":{"default":"STRING"}},"packed":{"type":"bool","id":2},"jstype":{"type":"JSType","id":6,"options":{"default":"JS_NORMAL"}},"lazy":{"type":"bool","id":5,"options":{"default":false}},"deprecated":{"type":"bool","id":3,"options":{"default":false}},"weak":{"type":"bool","id":10,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[4,4]],"nested":{"CType":{"values":{"STRING":0,"CORD":1,"STRING_PIECE":2}},"JSType":{"values":{"JS_NORMAL":0,"JS_STRING":1,"JS_NUMBER":2}}}},"OneofOptions":{"fields":{"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"EnumOptions":{"fields":{"allowAlias":{"type":"bool","id":2},"deprecated":{"type":"bool","id":3,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[5,5]]},"EnumValueOptions":{"fields":{"deprecated":{"type":"bool","id":1,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"ServiceOptions":{"fields":{"deprecated":{"type":"bool","id":33,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"MethodOptions":{"fields":{"deprecated":{"type":"bool","id":33,"options":{"default":false}},"idempotencyLevel":{"type":"IdempotencyLevel","id":34,"options":{"default":"IDEMPOTENCY_UNKNOWN"}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"nested":{"IdempotencyLevel":{"values":{"IDEMPOTENCY_UNKNOWN":0,"NO_SIDE_EFFECTS":1,"IDEMPOTENT":2}}}},"UninterpretedOption":{"fields":{"name":{"rule":"repeated","type":"NamePart","id":2},"identifierValue":{"type":"string","id":3},"positiveIntValue":{"type":"uint64","id":4},"negativeIntValue":{"type":"int64","id":5},"doubleValue":{"type":"double","id":6},"stringValue":{"type":"bytes","id":7},"aggregateValue":{"type":"string","id":8}},"nested":{"NamePart":{"fields":{"namePart":{"rule":"required","type":"string","id":1},"isExtension":{"rule":"required","type":"bool","id":2}}}}},"SourceCodeInfo":{"fields":{"location":{"rule":"repeated","type":"Location","id":1}},"nested":{"Location":{"fields":{"path":{"rule":"repeated","type":"int32","id":1},"span":{"rule":"repeated","type":"int32","id":2},"leadingComments":{"type":"string","id":3},"trailingComments":{"type":"string","id":4},"leadingDetachedComments":{"rule":"repeated","type":"string","id":6}}}}},"GeneratedCodeInfo":{"fields":{"annotation":{"rule":"repeated","type":"Annotation","id":1}},"nested":{"Annotation":{"fields":{"path":{"rule":"repeated","type":"int32","id":1},"sourceFile":{"type":"string","id":2},"begin":{"type":"int32","id":3},"end":{"type":"int32","id":4}}}}}}},"type":{"options":{"go_package":"google.golang.org/genproto/googleapis/type/expr;expr","java_multiple_files":true,"java_outer_classname":"ExprProto","java_package":"com.google.type","objc_class_prefix":"GTP"},"nested":{"Expr":{"fields":{"expression":{"type":"string","id":1},"title":{"type":"string","id":2},"description":{"type":"string","id":3},"location":{"type":"string","id":4}}}}}}}}} \ No newline at end of file diff --git a/dist/protos/locations.d.ts b/dist/protos/locations.d.ts new file mode 100644 index 0000000..501ddb2 --- /dev/null +++ b/dist/protos/locations.d.ts @@ -0,0 +1,4060 @@ +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import * as $protobuf from "protobufjs"; +import Long = require('long'); +/** Namespace google. */ +export namespace google { + + /** Namespace cloud. */ + namespace cloud { + + /** Namespace location. */ + namespace location { + + /** Represents a Locations */ + class Locations extends $protobuf.rpc.Service { + + /** + * Constructs a new Locations service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Locations service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Locations; + + /** + * Calls ListLocations. + * @param request ListLocationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListLocationsResponse + */ + public listLocations(request: google.cloud.location.IListLocationsRequest, callback: google.cloud.location.Locations.ListLocationsCallback): void; + + /** + * Calls ListLocations. + * @param request ListLocationsRequest message or plain object + * @returns Promise + */ + public listLocations(request: google.cloud.location.IListLocationsRequest): Promise; + + /** + * Calls GetLocation. + * @param request GetLocationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Location + */ + public getLocation(request: google.cloud.location.IGetLocationRequest, callback: google.cloud.location.Locations.GetLocationCallback): void; + + /** + * Calls GetLocation. + * @param request GetLocationRequest message or plain object + * @returns Promise + */ + public getLocation(request: google.cloud.location.IGetLocationRequest): Promise; + } + + namespace Locations { + + /** + * Callback as used by {@link google.cloud.location.Locations#listLocations}. + * @param error Error, if any + * @param [response] ListLocationsResponse + */ + type ListLocationsCallback = (error: (Error|null), response?: google.cloud.location.ListLocationsResponse) => void; + + /** + * Callback as used by {@link google.cloud.location.Locations#getLocation}. + * @param error Error, if any + * @param [response] Location + */ + type GetLocationCallback = (error: (Error|null), response?: google.cloud.location.Location) => void; + } + + /** Properties of a ListLocationsRequest. */ + interface IListLocationsRequest { + + /** ListLocationsRequest name */ + name?: (string|null); + + /** ListLocationsRequest filter */ + filter?: (string|null); + + /** ListLocationsRequest pageSize */ + pageSize?: (number|null); + + /** ListLocationsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListLocationsRequest. */ + class ListLocationsRequest implements IListLocationsRequest { + + /** + * Constructs a new ListLocationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.location.IListLocationsRequest); + + /** ListLocationsRequest name. */ + public name: string; + + /** ListLocationsRequest filter. */ + public filter: string; + + /** ListLocationsRequest pageSize. */ + public pageSize: number; + + /** ListLocationsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListLocationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListLocationsRequest instance + */ + public static create(properties?: google.cloud.location.IListLocationsRequest): google.cloud.location.ListLocationsRequest; + + /** + * Encodes the specified ListLocationsRequest message. Does not implicitly {@link google.cloud.location.ListLocationsRequest.verify|verify} messages. + * @param message ListLocationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.location.IListLocationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListLocationsRequest message, length delimited. Does not implicitly {@link google.cloud.location.ListLocationsRequest.verify|verify} messages. + * @param message ListLocationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.location.IListLocationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListLocationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListLocationsRequest + * @throws {Error} If the payload is 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.cloud.location.ListLocationsRequest; + + /** + * Decodes a ListLocationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListLocationsRequest + * @throws {Error} If the 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.cloud.location.ListLocationsRequest; + + /** + * Verifies a ListLocationsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListLocationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListLocationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.location.ListLocationsRequest; + + /** + * Creates a plain object from a ListLocationsRequest message. Also converts values to other types if specified. + * @param message ListLocationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.location.ListLocationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListLocationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListLocationsResponse. */ + interface IListLocationsResponse { + + /** ListLocationsResponse locations */ + locations?: (google.cloud.location.ILocation[]|null); + + /** ListLocationsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListLocationsResponse. */ + class ListLocationsResponse implements IListLocationsResponse { + + /** + * Constructs a new ListLocationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.location.IListLocationsResponse); + + /** ListLocationsResponse locations. */ + public locations: google.cloud.location.ILocation[]; + + /** ListLocationsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListLocationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListLocationsResponse instance + */ + public static create(properties?: google.cloud.location.IListLocationsResponse): google.cloud.location.ListLocationsResponse; + + /** + * Encodes the specified ListLocationsResponse message. Does not implicitly {@link google.cloud.location.ListLocationsResponse.verify|verify} messages. + * @param message ListLocationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.location.IListLocationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListLocationsResponse message, length delimited. Does not implicitly {@link google.cloud.location.ListLocationsResponse.verify|verify} messages. + * @param message ListLocationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.location.IListLocationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListLocationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListLocationsResponse + * @throws {Error} If the payload is 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.cloud.location.ListLocationsResponse; + + /** + * Decodes a ListLocationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListLocationsResponse + * @throws {Error} If the 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.cloud.location.ListLocationsResponse; + + /** + * Verifies a ListLocationsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListLocationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListLocationsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.location.ListLocationsResponse; + + /** + * Creates a plain object from a ListLocationsResponse message. Also converts values to other types if specified. + * @param message ListLocationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.location.ListLocationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListLocationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetLocationRequest. */ + interface IGetLocationRequest { + + /** GetLocationRequest name */ + name?: (string|null); + } + + /** Represents a GetLocationRequest. */ + class GetLocationRequest implements IGetLocationRequest { + + /** + * Constructs a new GetLocationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.location.IGetLocationRequest); + + /** GetLocationRequest name. */ + public name: string; + + /** + * Creates a new GetLocationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetLocationRequest instance + */ + public static create(properties?: google.cloud.location.IGetLocationRequest): google.cloud.location.GetLocationRequest; + + /** + * Encodes the specified GetLocationRequest message. Does not implicitly {@link google.cloud.location.GetLocationRequest.verify|verify} messages. + * @param message GetLocationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.location.IGetLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetLocationRequest message, length delimited. Does not implicitly {@link google.cloud.location.GetLocationRequest.verify|verify} messages. + * @param message GetLocationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.location.IGetLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetLocationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetLocationRequest + * @throws {Error} If the payload is 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.cloud.location.GetLocationRequest; + + /** + * Decodes a GetLocationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetLocationRequest + * @throws {Error} If the 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.cloud.location.GetLocationRequest; + + /** + * Verifies a GetLocationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetLocationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetLocationRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.location.GetLocationRequest; + + /** + * Creates a plain object from a GetLocationRequest message. Also converts values to other types if specified. + * @param message GetLocationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.location.GetLocationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetLocationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Location. */ + interface ILocation { + + /** Location name */ + name?: (string|null); + + /** Location locationId */ + locationId?: (string|null); + + /** Location displayName */ + displayName?: (string|null); + + /** Location labels */ + labels?: ({ [k: string]: string }|null); + + /** Location metadata */ + metadata?: (google.protobuf.IAny|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.location.ILocation); + + /** Location name. */ + public name: string; + + /** Location locationId. */ + public locationId: string; + + /** Location displayName. */ + public displayName: string; + + /** Location labels. */ + public labels: { [k: string]: string }; + + /** Location metadata. */ + public metadata?: (google.protobuf.IAny|null); + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.cloud.location.ILocation): google.cloud.location.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.cloud.location.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.location.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.cloud.location.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.location.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.location.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.location.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.cloud.location.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.location.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an Any. */ + interface IAny { + + /** Any type_url */ + type_url?: (string|null); + + /** Any value */ + value?: (Uint8Array|null); + } + + /** Represents an Any. */ + class Any implements IAny { + + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: Uint8Array; + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is 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.Any; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Any + * @throws {Error} If the 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.Any; + + /** + * Verifies an Any message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Any + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Any to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +} diff --git a/dist/protos/locations.js b/dist/protos/locations.js new file mode 100644 index 0000000..17e0dec --- /dev/null +++ b/dist/protos/locations.js @@ -0,0 +1 @@ +(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("protobufjs/minimal")))})(function(o){var e,t,n,F,s=o.Reader,r=o.Writer,u=o.util,c=o.roots.locations_protos||(o.roots.locations_protos={});function L(e,t,n){o.rpc.Service.call(this,e,t,n)}function i(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.name=e.string();break;case 2:o.filter=e.string();break;case 3:o.pageSize=e.int32();break;case 4:o.pageToken=e.string();break;default:e.skipType(7&r)}}return o},i.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!u.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!u.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!u.isString(e.pageToken)?"pageToken: string expected":null},i.fromObject=function(e){var t;return e instanceof c.google.cloud.location.ListLocationsRequest?e:(t=new c.google.cloud.location.ListLocationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},i.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.filter="",n.pageSize=0,n.pageToken=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.filter&&e.hasOwnProperty("filter")&&(n.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(n.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(n.pageToken=e.pageToken),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},i),e.ListLocationsResponse=(a.prototype.locations=u.emptyArray,a.prototype.nextPageToken="",a.create=function(e){return new a(e)},a.encode=function(e,t){if(t=t||r.create(),null!=e.locations&&e.locations.length)for(var n=0;n>>3){case 1:o.locations&&o.locations.length||(o.locations=[]),o.locations.push(c.google.cloud.location.Location.decode(e,e.uint32()));break;case 2:o.nextPageToken=e.string();break;default:e.skipType(7&r)}}return o},a.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},a.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.locations&&e.hasOwnProperty("locations")){if(!Array.isArray(e.locations))return"locations: array expected";for(var t=0;t>>3==1?o.name=e.string():e.skipType(7&r)}return o},G.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},G.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name)?"name: string expected":null},G.fromObject=function(e){var t;return e instanceof c.google.cloud.location.GetLocationRequest?e:(t=new c.google.cloud.location.GetLocationRequest,null!=e.name&&(t.name=String(e.name)),t)},G.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},G.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},G),e.Location=(p.prototype.name="",p.prototype.locationId="",p.prototype.displayName="",p.prototype.labels=u.emptyObject,p.prototype.metadata=null,p.create=function(e){return new p(e)},p.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.labels&&Object.hasOwnProperty.call(e,"labels"))for(var n=Object.keys(e.labels),o=0;o>>3){case 1:o.name=e.string();break;case 4:o.locationId=e.string();break;case 5:o.displayName=e.string();break;case 2:o.labels===u.emptyObject&&(o.labels={});for(var i=e.uint32()+e.pos,a="",p="";e.pos>>3){case 1:a=e.string();break;case 2:p=e.string();break;default:e.skipType(7&l)}}o.labels[a]=p;break;case 3:o.metadata=c.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},p.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},p.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.locationId&&e.hasOwnProperty("locationId")&&!u.isString(e.locationId))return"locationId: string expected";if(null!=e.displayName&&e.hasOwnProperty("displayName")&&!u.isString(e.displayName))return"displayName: string expected";if(null!=e.labels&&e.hasOwnProperty("labels")){if(!u.isObject(e.labels))return"labels: object expected";for(var t=Object.keys(e.labels),n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(c.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},l.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},l.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=c.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(c.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},d.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!u.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!u.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=c.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!u.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!u.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},g.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!u.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!u.isString(e.path)?"path: string expected":null},g.fromObject=function(e){var t;return e instanceof c.google.api.CustomHttpPattern?e:(t=new c.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},g.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},g.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},g),e),F.protobuf=((n={}).FileDescriptorSet=(B.prototype.file=u.emptyArray,B.create=function(e){return new B(e)},B.encode=function(e,t){if(t=t||r.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(c.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},B.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},B.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(c.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(c.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(c.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(c.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(c.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(c.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=c.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(c.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=c.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},h.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},h.fromObject=function(e){if(e instanceof c.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new c.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=c.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},h.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},h.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},h),y.ReservedRange=(b.prototype.start=0,b.prototype.end=0,b.create=function(e){return new b(e)},b.encode=function(e,t){return t=t||r.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},b.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},b.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},b.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end)?"end: integer expected":null},b.fromObject=function(e){var t;return e instanceof c.google.protobuf.DescriptorProto.ReservedRange?e:(t=new c.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},b.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},b.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},b),y),n.ExtensionRangeOptions=(U.prototype.uninterpretedOption=u.emptyArray,U.create=function(e){return new U(e)},U.encode=function(e,t){if(t=t||r.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},U.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=c.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!u.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";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:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!u.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!u.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!u.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!u.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!u.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=c.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},O.fromObject=function(e){if(e instanceof c.google.protobuf.FieldDescriptorProto)return e;var t=new c.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=c.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},O.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?c.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?c.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},O.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},O.Type=(e={},(t=Object.create(e))[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t),O.Label=(e={},(t=Object.create(e))[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t),O),n.OneofDescriptorProto=(m.prototype.name="",m.prototype.options=null,m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&c.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=c.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},m.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},m.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},m.fromObject=function(e){if(e instanceof c.google.protobuf.OneofDescriptorProto)return e;var t=new c.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=c.google.protobuf.OneofOptions.fromObject(e.options)}return t},m.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.OneofOptions.toObject(e.options,t)),n},m.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},m),n.EnumDescriptorProto=(v.prototype.name="",v.prototype.value=u.emptyArray,v.prototype.options=null,v.prototype.reservedRange=u.emptyArray,v.prototype.reservedName=u.emptyArray,v.create=function(e){return new v(e)},v.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(c.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=c.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(c.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},P.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end)?"end: integer expected":null},P.fromObject=function(e){var t;return e instanceof c.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new c.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},P.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},P.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},P),v),n.EnumValueDescriptorProto=(w.prototype.name="",w.prototype.number=0,w.prototype.options=null,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&c.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=c.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!u.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},w.fromObject=function(e){if(e instanceof c.google.protobuf.EnumValueDescriptorProto)return e;var t=new c.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=c.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},w.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},w.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},w),n.ServiceDescriptorProto=(j.prototype.name="",j.prototype.method=u.emptyArray,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(c.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=c.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=c.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!u.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!u.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=c.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof c.google.protobuf.MethodDescriptorProto)return e;var t=new c.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=c.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),n.FileOptions=(S.prototype.javaPackage="",S.prototype.javaOuterClassname="",S.prototype.javaMultipleFiles=!1,S.prototype.javaGenerateEqualsAndHash=!1,S.prototype.javaStringCheckUtf8=!1,S.prototype.optimizeFor=1,S.prototype.goPackage="",S.prototype.ccGenericServices=!1,S.prototype.javaGenericServices=!1,S.prototype.pyGenericServices=!1,S.prototype.phpGenericServices=!1,S.prototype.deprecated=!1,S.prototype.ccEnableArenas=!0,S.prototype.objcClassPrefix="",S.prototype.csharpNamespace="",S.prototype.swiftPrefix="",S.prototype.phpClassPrefix="",S.prototype.phpNamespace="",S.prototype.phpMetadataNamespace="",S.prototype.rubyPackage="",S.prototype.uninterpretedOption=u.emptyArray,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||r.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!u.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!u.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!u.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!u.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!u.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!u.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!u.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!u.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!u.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!u.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},M.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},T.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},T.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:o[".google.api.http"]=c.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(c.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},I.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(u.Long?(t.negativeIntValue=u.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new u.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?u.base64.decode(e.stringValue,t.stringValue=u.newBuffer(u.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},I.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",u.Long?(n=new u.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,u.Long?(n=new u.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=u.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?u.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new u.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?u.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},I.NamePart=(R.prototype.namePart="",R.prototype.isExtension=!1,R.create=function(e){return new R(e)},R.encode=function(e,t){return(t=t||r.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},R.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},R.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw u.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw u.ProtocolError("missing required 'isExtension'",{instance:o})},R.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},R.verify=function(e){return"object"!=typeof e||null===e?"object expected":u.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},R.fromObject=function(e){var t;return e instanceof c.google.protobuf.UninterpretedOption.NamePart?e:(t=new c.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},R.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},R.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},R),I),n.SourceCodeInfo=(_.prototype.location=u.emptyArray,_.create=function(e){return new _(e)},_.encode=function(e,t){if(t=t||r.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(c.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},_.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},_.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(c.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},J.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.type_url=e.string();break;case 2:o.value=e.bytes();break;default:e.skipType(7&r)}}return o},H.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},H.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!u.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||u.isString(e.value))?"value: buffer expected":null},H.fromObject=function(e){var t;return e instanceof c.google.protobuf.Any?e:(t=new c.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?u.base64.decode(e.value,t.value=u.newBuffer(u.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},H.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type_url="",t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=u.newBuffer(n.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(n.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?u.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},H.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},H),n),F),c}); \ No newline at end of file diff --git a/dist/protos/locations.json b/dist/protos/locations.json new file mode 100644 index 0000000..31fd40f --- /dev/null +++ b/dist/protos/locations.json @@ -0,0 +1 @@ +{"nested":{"google":{"nested":{"cloud":{"nested":{"location":{"options":{"cc_enable_arenas":true,"go_package":"google.golang.org/genproto/googleapis/cloud/location;location","java_multiple_files":true,"java_outer_classname":"LocationsProto","java_package":"com.google.cloud.location"},"nested":{"Locations":{"options":{"(google.api.default_host)":"cloud.googleapis.com","(google.api.oauth_scopes)":"https://www.googleapis.com/auth/cloud-platform"},"methods":{"ListLocations":{"requestType":"ListLocationsRequest","responseType":"ListLocationsResponse","options":{"(google.api.http).get":"/v1/{name=locations}","(google.api.http).additional_bindings.get":"/v1/{name=projects/*}/locations"},"parsedOptions":[{"(google.api.http)":{"get":"/v1/{name=locations}","additional_bindings":{"get":"/v1/{name=projects/*}/locations"}}}]},"GetLocation":{"requestType":"GetLocationRequest","responseType":"Location","options":{"(google.api.http).get":"/v1/{name=locations/*}","(google.api.http).additional_bindings.get":"/v1/{name=projects/*/locations/*}"},"parsedOptions":[{"(google.api.http)":{"get":"/v1/{name=locations/*}","additional_bindings":{"get":"/v1/{name=projects/*/locations/*}"}}}]}}},"ListLocationsRequest":{"fields":{"name":{"type":"string","id":1},"filter":{"type":"string","id":2},"pageSize":{"type":"int32","id":3},"pageToken":{"type":"string","id":4}}},"ListLocationsResponse":{"fields":{"locations":{"rule":"repeated","type":"Location","id":1},"nextPageToken":{"type":"string","id":2}}},"GetLocationRequest":{"fields":{"name":{"type":"string","id":1}}},"Location":{"fields":{"name":{"type":"string","id":1},"locationId":{"type":"string","id":4},"displayName":{"type":"string","id":5},"labels":{"keyType":"string","type":"string","id":2},"metadata":{"type":"google.protobuf.Any","id":3}}}}}}},"api":{"options":{"go_package":"google.golang.org/genproto/googleapis/api/annotations;annotations","java_multiple_files":true,"java_outer_classname":"ClientProto","java_package":"com.google.api","objc_class_prefix":"GAPI","cc_enable_arenas":true},"nested":{"http":{"type":"HttpRule","id":72295728,"extend":"google.protobuf.MethodOptions"},"Http":{"fields":{"rules":{"rule":"repeated","type":"HttpRule","id":1},"fullyDecodeReservedExpansion":{"type":"bool","id":2}}},"HttpRule":{"oneofs":{"pattern":{"oneof":["get","put","post","delete","patch","custom"]}},"fields":{"selector":{"type":"string","id":1},"get":{"type":"string","id":2},"put":{"type":"string","id":3},"post":{"type":"string","id":4},"delete":{"type":"string","id":5},"patch":{"type":"string","id":6},"custom":{"type":"CustomHttpPattern","id":8},"body":{"type":"string","id":7},"responseBody":{"type":"string","id":12},"additionalBindings":{"rule":"repeated","type":"HttpRule","id":11}}},"CustomHttpPattern":{"fields":{"kind":{"type":"string","id":1},"path":{"type":"string","id":2}}},"methodSignature":{"rule":"repeated","type":"string","id":1051,"extend":"google.protobuf.MethodOptions"},"defaultHost":{"type":"string","id":1049,"extend":"google.protobuf.ServiceOptions"},"oauthScopes":{"type":"string","id":1050,"extend":"google.protobuf.ServiceOptions"}}},"protobuf":{"options":{"go_package":"google.golang.org/protobuf/types/descriptorpb","java_package":"com.google.protobuf","java_outer_classname":"DescriptorProtos","csharp_namespace":"Google.Protobuf.Reflection","objc_class_prefix":"GPB","cc_enable_arenas":true,"optimize_for":"SPEED"},"nested":{"FileDescriptorSet":{"fields":{"file":{"rule":"repeated","type":"FileDescriptorProto","id":1}}},"FileDescriptorProto":{"fields":{"name":{"type":"string","id":1},"package":{"type":"string","id":2},"dependency":{"rule":"repeated","type":"string","id":3},"publicDependency":{"rule":"repeated","type":"int32","id":10,"options":{"packed":false}},"weakDependency":{"rule":"repeated","type":"int32","id":11,"options":{"packed":false}},"messageType":{"rule":"repeated","type":"DescriptorProto","id":4},"enumType":{"rule":"repeated","type":"EnumDescriptorProto","id":5},"service":{"rule":"repeated","type":"ServiceDescriptorProto","id":6},"extension":{"rule":"repeated","type":"FieldDescriptorProto","id":7},"options":{"type":"FileOptions","id":8},"sourceCodeInfo":{"type":"SourceCodeInfo","id":9},"syntax":{"type":"string","id":12}}},"DescriptorProto":{"fields":{"name":{"type":"string","id":1},"field":{"rule":"repeated","type":"FieldDescriptorProto","id":2},"extension":{"rule":"repeated","type":"FieldDescriptorProto","id":6},"nestedType":{"rule":"repeated","type":"DescriptorProto","id":3},"enumType":{"rule":"repeated","type":"EnumDescriptorProto","id":4},"extensionRange":{"rule":"repeated","type":"ExtensionRange","id":5},"oneofDecl":{"rule":"repeated","type":"OneofDescriptorProto","id":8},"options":{"type":"MessageOptions","id":7},"reservedRange":{"rule":"repeated","type":"ReservedRange","id":9},"reservedName":{"rule":"repeated","type":"string","id":10}},"nested":{"ExtensionRange":{"fields":{"start":{"type":"int32","id":1},"end":{"type":"int32","id":2},"options":{"type":"ExtensionRangeOptions","id":3}}},"ReservedRange":{"fields":{"start":{"type":"int32","id":1},"end":{"type":"int32","id":2}}}}},"ExtensionRangeOptions":{"fields":{"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"FieldDescriptorProto":{"fields":{"name":{"type":"string","id":1},"number":{"type":"int32","id":3},"label":{"type":"Label","id":4},"type":{"type":"Type","id":5},"typeName":{"type":"string","id":6},"extendee":{"type":"string","id":2},"defaultValue":{"type":"string","id":7},"oneofIndex":{"type":"int32","id":9},"jsonName":{"type":"string","id":10},"options":{"type":"FieldOptions","id":8},"proto3Optional":{"type":"bool","id":17}},"nested":{"Type":{"values":{"TYPE_DOUBLE":1,"TYPE_FLOAT":2,"TYPE_INT64":3,"TYPE_UINT64":4,"TYPE_INT32":5,"TYPE_FIXED64":6,"TYPE_FIXED32":7,"TYPE_BOOL":8,"TYPE_STRING":9,"TYPE_GROUP":10,"TYPE_MESSAGE":11,"TYPE_BYTES":12,"TYPE_UINT32":13,"TYPE_ENUM":14,"TYPE_SFIXED32":15,"TYPE_SFIXED64":16,"TYPE_SINT32":17,"TYPE_SINT64":18}},"Label":{"values":{"LABEL_OPTIONAL":1,"LABEL_REQUIRED":2,"LABEL_REPEATED":3}}}},"OneofDescriptorProto":{"fields":{"name":{"type":"string","id":1},"options":{"type":"OneofOptions","id":2}}},"EnumDescriptorProto":{"fields":{"name":{"type":"string","id":1},"value":{"rule":"repeated","type":"EnumValueDescriptorProto","id":2},"options":{"type":"EnumOptions","id":3},"reservedRange":{"rule":"repeated","type":"EnumReservedRange","id":4},"reservedName":{"rule":"repeated","type":"string","id":5}},"nested":{"EnumReservedRange":{"fields":{"start":{"type":"int32","id":1},"end":{"type":"int32","id":2}}}}},"EnumValueDescriptorProto":{"fields":{"name":{"type":"string","id":1},"number":{"type":"int32","id":2},"options":{"type":"EnumValueOptions","id":3}}},"ServiceDescriptorProto":{"fields":{"name":{"type":"string","id":1},"method":{"rule":"repeated","type":"MethodDescriptorProto","id":2},"options":{"type":"ServiceOptions","id":3}}},"MethodDescriptorProto":{"fields":{"name":{"type":"string","id":1},"inputType":{"type":"string","id":2},"outputType":{"type":"string","id":3},"options":{"type":"MethodOptions","id":4},"clientStreaming":{"type":"bool","id":5,"options":{"default":false}},"serverStreaming":{"type":"bool","id":6,"options":{"default":false}}}},"FileOptions":{"fields":{"javaPackage":{"type":"string","id":1},"javaOuterClassname":{"type":"string","id":8},"javaMultipleFiles":{"type":"bool","id":10,"options":{"default":false}},"javaGenerateEqualsAndHash":{"type":"bool","id":20,"options":{"deprecated":true}},"javaStringCheckUtf8":{"type":"bool","id":27,"options":{"default":false}},"optimizeFor":{"type":"OptimizeMode","id":9,"options":{"default":"SPEED"}},"goPackage":{"type":"string","id":11},"ccGenericServices":{"type":"bool","id":16,"options":{"default":false}},"javaGenericServices":{"type":"bool","id":17,"options":{"default":false}},"pyGenericServices":{"type":"bool","id":18,"options":{"default":false}},"phpGenericServices":{"type":"bool","id":42,"options":{"default":false}},"deprecated":{"type":"bool","id":23,"options":{"default":false}},"ccEnableArenas":{"type":"bool","id":31,"options":{"default":true}},"objcClassPrefix":{"type":"string","id":36},"csharpNamespace":{"type":"string","id":37},"swiftPrefix":{"type":"string","id":39},"phpClassPrefix":{"type":"string","id":40},"phpNamespace":{"type":"string","id":41},"phpMetadataNamespace":{"type":"string","id":44},"rubyPackage":{"type":"string","id":45},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[38,38]],"nested":{"OptimizeMode":{"values":{"SPEED":1,"CODE_SIZE":2,"LITE_RUNTIME":3}}}},"MessageOptions":{"fields":{"messageSetWireFormat":{"type":"bool","id":1,"options":{"default":false}},"noStandardDescriptorAccessor":{"type":"bool","id":2,"options":{"default":false}},"deprecated":{"type":"bool","id":3,"options":{"default":false}},"mapEntry":{"type":"bool","id":7},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[8,8],[9,9]]},"FieldOptions":{"fields":{"ctype":{"type":"CType","id":1,"options":{"default":"STRING"}},"packed":{"type":"bool","id":2},"jstype":{"type":"JSType","id":6,"options":{"default":"JS_NORMAL"}},"lazy":{"type":"bool","id":5,"options":{"default":false}},"deprecated":{"type":"bool","id":3,"options":{"default":false}},"weak":{"type":"bool","id":10,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[4,4]],"nested":{"CType":{"values":{"STRING":0,"CORD":1,"STRING_PIECE":2}},"JSType":{"values":{"JS_NORMAL":0,"JS_STRING":1,"JS_NUMBER":2}}}},"OneofOptions":{"fields":{"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"EnumOptions":{"fields":{"allowAlias":{"type":"bool","id":2},"deprecated":{"type":"bool","id":3,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"reserved":[[5,5]]},"EnumValueOptions":{"fields":{"deprecated":{"type":"bool","id":1,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"ServiceOptions":{"fields":{"deprecated":{"type":"bool","id":33,"options":{"default":false}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]]},"MethodOptions":{"fields":{"deprecated":{"type":"bool","id":33,"options":{"default":false}},"idempotencyLevel":{"type":"IdempotencyLevel","id":34,"options":{"default":"IDEMPOTENCY_UNKNOWN"}},"uninterpretedOption":{"rule":"repeated","type":"UninterpretedOption","id":999}},"extensions":[[1e3,536870911]],"nested":{"IdempotencyLevel":{"values":{"IDEMPOTENCY_UNKNOWN":0,"NO_SIDE_EFFECTS":1,"IDEMPOTENT":2}}}},"UninterpretedOption":{"fields":{"name":{"rule":"repeated","type":"NamePart","id":2},"identifierValue":{"type":"string","id":3},"positiveIntValue":{"type":"uint64","id":4},"negativeIntValue":{"type":"int64","id":5},"doubleValue":{"type":"double","id":6},"stringValue":{"type":"bytes","id":7},"aggregateValue":{"type":"string","id":8}},"nested":{"NamePart":{"fields":{"namePart":{"rule":"required","type":"string","id":1},"isExtension":{"rule":"required","type":"bool","id":2}}}}},"SourceCodeInfo":{"fields":{"location":{"rule":"repeated","type":"Location","id":1}},"nested":{"Location":{"fields":{"path":{"rule":"repeated","type":"int32","id":1},"span":{"rule":"repeated","type":"int32","id":2},"leadingComments":{"type":"string","id":3},"trailingComments":{"type":"string","id":4},"leadingDetachedComments":{"rule":"repeated","type":"string","id":6}}}}},"GeneratedCodeInfo":{"fields":{"annotation":{"rule":"repeated","type":"Annotation","id":1}},"nested":{"Annotation":{"fields":{"path":{"rule":"repeated","type":"int32","id":1},"sourceFile":{"type":"string","id":2},"begin":{"type":"int32","id":3},"end":{"type":"int32","id":4}}}}},"Any":{"fields":{"type_url":{"type":"string","id":1},"value":{"type":"bytes","id":2}}}}}}}}} \ No newline at end of file diff --git a/dist/protos/operations.d.ts b/dist/protos/operations.d.ts new file mode 100644 index 0000000..b76e34b --- /dev/null +++ b/dist/protos/operations.d.ts @@ -0,0 +1,4783 @@ +/** + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Long = require('long'); +import * as $protobuf from "protobufjs"; +/** Namespace google. */ +export namespace google { + + /** Namespace longrunning. */ + namespace longrunning { + + /** Represents an Operations */ + class Operations extends $protobuf.rpc.Service { + + /** + * Constructs a new Operations service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Operations service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListOperationsResponse + */ + public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @returns Promise + */ + public listOperations(request: google.longrunning.IListOperationsRequest): Promise; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @returns Promise + */ + public getOperation(request: google.longrunning.IGetOperationRequest): Promise; + + /** + * Calls DeleteOperation. + * @param request DeleteOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void; + + /** + * Calls DeleteOperation. + * @param request DeleteOperationRequest message or plain object + * @returns Promise + */ + public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @returns Promise + */ + public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise; + + /** + * Calls WaitOperation. + * @param request WaitOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void; + + /** + * Calls WaitOperation. + * @param request WaitOperationRequest message or plain object + * @returns Promise + */ + public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise; + } + + namespace Operations { + + /** + * Callback as used by {@link google.longrunning.Operations#listOperations}. + * @param error Error, if any + * @param [response] ListOperationsResponse + */ + type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; + + /** + * Callback as used by {@link google.longrunning.Operations#getOperation}. + * @param error Error, if any + * @param [response] Operation + */ + type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.longrunning.Operations#deleteOperation}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.longrunning.Operations#cancelOperation}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.longrunning.Operations#waitOperation}. + * @param error Error, if any + * @param [response] Operation + */ + type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } + + /** Properties of an Operation. */ + interface IOperation { + + /** Operation name */ + name?: (string|null); + + /** Operation metadata */ + metadata?: (google.protobuf.IAny|null); + + /** Operation done */ + done?: (boolean|null); + + /** Operation error */ + error?: (google.rpc.IStatus|null); + + /** Operation response */ + response?: (google.protobuf.IAny|null); + } + + /** Represents an Operation. */ + class Operation implements IOperation { + + /** + * Constructs a new Operation. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IOperation); + + /** Operation name. */ + public name: string; + + /** Operation metadata. */ + public metadata?: (google.protobuf.IAny|null); + + /** Operation done. */ + public done: boolean; + + /** Operation error. */ + public error?: (google.rpc.IStatus|null); + + /** Operation response. */ + public response?: (google.protobuf.IAny|null); + + /** Operation result. */ + public result?: ("error"|"response"); + + /** + * Creates a new Operation instance using the specified properties. + * @param [properties] Properties to set + * @returns Operation instance + */ + public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operation + * @throws {Error} If the payload is 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.longrunning.Operation; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Operation + * @throws {Error} If the 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.longrunning.Operation; + + /** + * Verifies an Operation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Operation + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.Operation; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @param message Operation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Operation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetOperationRequest. */ + interface IGetOperationRequest { + + /** GetOperationRequest name */ + name?: (string|null); + } + + /** Represents a GetOperationRequest. */ + class GetOperationRequest implements IGetOperationRequest { + + /** + * Constructs a new GetOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IGetOperationRequest); + + /** GetOperationRequest name. */ + public name: string; + + /** + * Creates a new GetOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetOperationRequest instance + */ + public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest; + + /** + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetOperationRequest + * @throws {Error} If the payload is 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.longrunning.GetOperationRequest; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetOperationRequest + * @throws {Error} If the 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.longrunning.GetOperationRequest; + + /** + * Verifies a GetOperationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest; + + /** + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * @param message GetOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListOperationsRequest. */ + interface IListOperationsRequest { + + /** ListOperationsRequest name */ + name?: (string|null); + + /** ListOperationsRequest filter */ + filter?: (string|null); + + /** ListOperationsRequest pageSize */ + pageSize?: (number|null); + + /** ListOperationsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListOperationsRequest. */ + class ListOperationsRequest implements IListOperationsRequest { + + /** + * Constructs a new ListOperationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IListOperationsRequest); + + /** ListOperationsRequest name. */ + public name: string; + + /** ListOperationsRequest filter. */ + public filter: string; + + /** ListOperationsRequest pageSize. */ + public pageSize: number; + + /** ListOperationsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListOperationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsRequest instance + */ + public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest; + + /** + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOperationsRequest + * @throws {Error} If the payload is 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.longrunning.ListOperationsRequest; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOperationsRequest + * @throws {Error} If the 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.longrunning.ListOperationsRequest; + + /** + * Verifies a ListOperationsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOperationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest; + + /** + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * @param message ListOperationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOperationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListOperationsResponse. */ + interface IListOperationsResponse { + + /** ListOperationsResponse operations */ + operations?: (google.longrunning.IOperation[]|null); + + /** ListOperationsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListOperationsResponse. */ + class ListOperationsResponse implements IListOperationsResponse { + + /** + * Constructs a new ListOperationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IListOperationsResponse); + + /** ListOperationsResponse operations. */ + public operations: google.longrunning.IOperation[]; + + /** ListOperationsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListOperationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsResponse instance + */ + public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse; + + /** + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOperationsResponse + * @throws {Error} If the payload is 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.longrunning.ListOperationsResponse; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOperationsResponse + * @throws {Error} If the 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.longrunning.ListOperationsResponse; + + /** + * Verifies a ListOperationsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOperationsResponse + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse; + + /** + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * @param message ListOperationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOperationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CancelOperationRequest. */ + interface ICancelOperationRequest { + + /** CancelOperationRequest name */ + name?: (string|null); + } + + /** Represents a CancelOperationRequest. */ + class CancelOperationRequest implements ICancelOperationRequest { + + /** + * Constructs a new CancelOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.ICancelOperationRequest); + + /** CancelOperationRequest name. */ + public name: string; + + /** + * Creates a new CancelOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelOperationRequest instance + */ + public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest; + + /** + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelOperationRequest + * @throws {Error} If the payload is 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.longrunning.CancelOperationRequest; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelOperationRequest + * @throws {Error} If the 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.longrunning.CancelOperationRequest; + + /** + * Verifies a CancelOperationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest; + + /** + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * @param message CancelOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteOperationRequest. */ + interface IDeleteOperationRequest { + + /** DeleteOperationRequest name */ + name?: (string|null); + } + + /** Represents a DeleteOperationRequest. */ + class DeleteOperationRequest implements IDeleteOperationRequest { + + /** + * Constructs a new DeleteOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IDeleteOperationRequest); + + /** DeleteOperationRequest name. */ + public name: string; + + /** + * Creates a new DeleteOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteOperationRequest instance + */ + public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest; + + /** + * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @param message DeleteOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @param message DeleteOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteOperationRequest + * @throws {Error} If the payload is 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.longrunning.DeleteOperationRequest; + + /** + * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteOperationRequest + * @throws {Error} If the 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.longrunning.DeleteOperationRequest; + + /** + * Verifies a DeleteOperationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest; + + /** + * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified. + * @param message DeleteOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a WaitOperationRequest. */ + interface IWaitOperationRequest { + + /** WaitOperationRequest name */ + name?: (string|null); + + /** WaitOperationRequest timeout */ + timeout?: (google.protobuf.IDuration|null); + } + + /** Represents a WaitOperationRequest. */ + class WaitOperationRequest implements IWaitOperationRequest { + + /** + * Constructs a new WaitOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IWaitOperationRequest); + + /** WaitOperationRequest name. */ + public name: string; + + /** WaitOperationRequest timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** + * Creates a new WaitOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WaitOperationRequest instance + */ + public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest; + + /** + * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @param message WaitOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @param message WaitOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WaitOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WaitOperationRequest + * @throws {Error} If the payload is 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.longrunning.WaitOperationRequest; + + /** + * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WaitOperationRequest + * @throws {Error} If the 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.longrunning.WaitOperationRequest; + + /** + * Verifies a WaitOperationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WaitOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest; + + /** + * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified. + * @param message WaitOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WaitOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an OperationInfo. */ + interface IOperationInfo { + + /** OperationInfo responseType */ + responseType?: (string|null); + + /** OperationInfo metadataType */ + metadataType?: (string|null); + } + + /** Represents an OperationInfo. */ + class OperationInfo implements IOperationInfo { + + /** + * Constructs a new OperationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IOperationInfo); + + /** OperationInfo responseType. */ + public responseType: string; + + /** OperationInfo metadataType. */ + public metadataType: string; + + /** + * Creates a new OperationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationInfo instance + */ + public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo; + + /** + * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @param message OperationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @param message OperationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OperationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationInfo + * @throws {Error} If the payload is 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.longrunning.OperationInfo; + + /** + * Decodes an OperationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationInfo + * @throws {Error} If the 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.longrunning.OperationInfo; + + /** + * Verifies an OperationInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationInfo + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo; + + /** + * Creates a plain object from an OperationInfo message. Also converts values to other types if specified. + * @param message OperationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OperationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.longrunning.operationInfo */ + ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an Any. */ + interface IAny { + + /** Any type_url */ + type_url?: (string|null); + + /** Any value */ + value?: (Uint8Array|null); + } + + /** Represents an Any. */ + class Any implements IAny { + + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: Uint8Array; + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is 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.Any; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Any + * @throws {Error} If the 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.Any; + + /** + * Verifies an Any message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Any + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Any to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (number|Long|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: (number|Long); + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is 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.Duration; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Duration + * @throws {Error} If the 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.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Duration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Duration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Empty. */ + interface IEmpty { + } + + /** Represents an Empty. */ + class Empty implements IEmpty { + + /** + * Constructs a new Empty. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEmpty); + + /** + * Creates a new Empty instance using the specified properties. + * @param [properties] Properties to set + * @returns Empty instance + */ + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Empty + * @throws {Error} If the payload is 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.Empty; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Empty + * @throws {Error} If the 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.Empty; + + /** + * Verifies an Empty message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Empty + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Empty to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace rpc. */ + namespace rpc { + + /** Properties of a Status. */ + interface IStatus { + + /** Status code */ + code?: (number|null); + + /** Status message */ + message?: (string|null); + + /** Status details */ + details?: (google.protobuf.IAny[]|null); + } + + /** Represents a Status. */ + class Status implements IStatus { + + /** + * Constructs a new Status. + * @param [properties] Properties to set + */ + constructor(properties?: google.rpc.IStatus); + + /** Status code. */ + public code: number; + + /** Status message. */ + public message: string; + + /** Status details. */ + public details: google.protobuf.IAny[]; + + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: google.rpc.IStatus): google.rpc.Status; + + /** + * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Status message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status; + + /** + * Verifies a Status message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): google.rpc.Status; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +} diff --git a/dist/protos/operations.js b/dist/protos/operations.js new file mode 100644 index 0000000..808ce91 --- /dev/null +++ b/dist/protos/operations.js @@ -0,0 +1 @@ +(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("protobufjs/minimal")))})(function(o){var e,t,n,F,a=o.Reader,r=o.Writer,i=o.util,p=o.roots.operations_protos||(o.roots.operations_protos={});function G(e,t,n){o.rpc.Service.call(this,e,t,n)}function l(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.name=e.string();break;case 2:o.metadata=p.google.protobuf.Any.decode(e,e.uint32());break;case 3:o.done=e.bool();break;case 4:o.error=p.google.rpc.Status.decode(e,e.uint32());break;case 5:o.response=p.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},l.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},l.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t,n={};if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")&&(t=p.google.protobuf.Any.verify(e.metadata)))return"metadata."+t;if(null!=e.done&&e.hasOwnProperty("done")&&"boolean"!=typeof e.done)return"done: boolean expected";if(null!=e.error&&e.hasOwnProperty("error")&&(n.result=1,t=p.google.rpc.Status.verify(e.error)))return"error."+t;if(null!=e.response&&e.hasOwnProperty("response")){if(1===n.result)return"result: multiple values";if(n.result=1,t=p.google.protobuf.Any.verify(e.response))return"response."+t}return null},l.fromObject=function(e){if(e instanceof p.google.longrunning.Operation)return e;var t=new p.google.longrunning.Operation;if(null!=e.name&&(t.name=String(e.name)),null!=e.metadata){if("object"!=typeof e.metadata)throw TypeError(".google.longrunning.Operation.metadata: object expected");t.metadata=p.google.protobuf.Any.fromObject(e.metadata)}if(null!=e.done&&(t.done=Boolean(e.done)),null!=e.error){if("object"!=typeof e.error)throw TypeError(".google.longrunning.Operation.error: object expected");t.error=p.google.rpc.Status.fromObject(e.error)}if(null!=e.response){if("object"!=typeof e.response)throw TypeError(".google.longrunning.Operation.response: object expected");t.response=p.google.protobuf.Any.fromObject(e.response)}return t},l.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.metadata=null,n.done=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.metadata&&e.hasOwnProperty("metadata")&&(n.metadata=p.google.protobuf.Any.toObject(e.metadata,t)),null!=e.done&&e.hasOwnProperty("done")&&(n.done=e.done),null!=e.error&&e.hasOwnProperty("error")&&(n.error=p.google.rpc.Status.toObject(e.error,t),t.oneofs)&&(n.result="error"),null!=e.response&&e.hasOwnProperty("response")&&(n.response=p.google.protobuf.Any.toObject(e.response,t),t.oneofs)&&(n.result="response"),n},l.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},l),t.GetOperationRequest=(B.prototype.name="",B.create=function(e){return new B(e)},B.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},B.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},B.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.GetOperationRequest;e.pos>>3==1?o.name=e.string():e.skipType(7&r)}return o},B.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},B.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},B.fromObject=function(e){var t;return e instanceof p.google.longrunning.GetOperationRequest?e:(t=new p.google.longrunning.GetOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},B.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},B.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},B),t.ListOperationsRequest=(s.prototype.name="",s.prototype.filter="",s.prototype.pageSize=0,s.prototype.pageToken="",s.create=function(e){return new s(e)},s.encode=function(e,t){return t=t||r.create(),null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&t.uint32(10).string(e.filter),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(34).string(e.name),t},s.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},s.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.ListOperationsRequest;e.pos>>3){case 4:o.name=e.string();break;case 1:o.filter=e.string();break;case 2:o.pageSize=e.int32();break;case 3:o.pageToken=e.string();break;default:e.skipType(7&r)}}return o},s.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},s.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!i.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!i.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!i.isString(e.pageToken)?"pageToken: string expected":null},s.fromObject=function(e){var t;return e instanceof p.google.longrunning.ListOperationsRequest?e:(t=new p.google.longrunning.ListOperationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},s.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.filter="",n.pageSize=0,n.pageToken="",n.name=""),null!=e.filter&&e.hasOwnProperty("filter")&&(n.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(n.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(n.pageToken=e.pageToken),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},s),t.ListOperationsResponse=(u.prototype.operations=i.emptyArray,u.prototype.nextPageToken="",u.create=function(e){return new u(e)},u.encode=function(e,t){if(t=t||r.create(),null!=e.operations&&e.operations.length)for(var n=0;n>>3){case 1:o.operations&&o.operations.length||(o.operations=[]),o.operations.push(p.google.longrunning.Operation.decode(e,e.uint32()));break;case 2:o.nextPageToken=e.string();break;default:e.skipType(7&r)}}return o},u.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},u.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.operations&&e.hasOwnProperty("operations")){if(!Array.isArray(e.operations))return"operations: array expected";for(var t=0;t>>3==1?o.name=e.string():e.skipType(7&r)}return o},L.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},L.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},L.fromObject=function(e){var t;return e instanceof p.google.longrunning.CancelOperationRequest?e:(t=new p.google.longrunning.CancelOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},L.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},L),t.DeleteOperationRequest=(U.prototype.name="",U.create=function(e){return new U(e)},U.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},U.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},U.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.DeleteOperationRequest;e.pos>>3==1?o.name=e.string():e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},U.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},U.fromObject=function(e){var t;return e instanceof p.google.longrunning.DeleteOperationRequest?e:(t=new p.google.longrunning.DeleteOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},U.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},U.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},U),t.WaitOperationRequest=(c.prototype.name="",c.prototype.timeout=null,c.create=function(e){return new c(e)},c.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.timeout&&Object.hasOwnProperty.call(e,"timeout")&&p.google.protobuf.Duration.encode(e.timeout,t.uint32(18).fork()).ldelim(),t},c.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},c.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.WaitOperationRequest;e.pos>>3){case 1:o.name=e.string();break;case 2:o.timeout=p.google.protobuf.Duration.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},c.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},c.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.timeout&&e.hasOwnProperty("timeout")){e=p.google.protobuf.Duration.verify(e.timeout);if(e)return"timeout."+e}return null},c.fromObject=function(e){if(e instanceof p.google.longrunning.WaitOperationRequest)return e;var t=new p.google.longrunning.WaitOperationRequest;if(null!=e.name&&(t.name=String(e.name)),null!=e.timeout){if("object"!=typeof e.timeout)throw TypeError(".google.longrunning.WaitOperationRequest.timeout: object expected");t.timeout=p.google.protobuf.Duration.fromObject(e.timeout)}return t},c.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.timeout=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.timeout&&e.hasOwnProperty("timeout")&&(n.timeout=p.google.protobuf.Duration.toObject(e.timeout,t)),n},c.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},c),t.OperationInfo=(d.prototype.responseType="",d.prototype.metadataType="",d.create=function(e){return new d(e)},d.encode=function(e,t){return t=t||r.create(),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(10).string(e.responseType),null!=e.metadataType&&Object.hasOwnProperty.call(e,"metadataType")&&t.uint32(18).string(e.metadataType),t},d.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},d.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.OperationInfo;e.pos>>3){case 1:o.responseType=e.string();break;case 2:o.metadataType=e.string();break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},d.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.responseType&&e.hasOwnProperty("responseType")&&!i.isString(e.responseType)?"responseType: string expected":null!=e.metadataType&&e.hasOwnProperty("metadataType")&&!i.isString(e.metadataType)?"metadataType: string expected":null},d.fromObject=function(e){var t;return e instanceof p.google.longrunning.OperationInfo?e:(t=new p.google.longrunning.OperationInfo,null!=e.responseType&&(t.responseType=String(e.responseType)),null!=e.metadataType&&(t.metadataType=String(e.metadataType)),t)},d.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.responseType="",n.metadataType=""),null!=e.responseType&&e.hasOwnProperty("responseType")&&(n.responseType=e.responseType),null!=e.metadataType&&e.hasOwnProperty("metadataType")&&(n.metadataType=e.metadataType),n},d.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},d),t),F.api=((n={}).Http=(g.prototype.rules=i.emptyArray,g.prototype.fullyDecodeReservedExpansion=!1,g.create=function(e){return new g(e)},g.encode=function(e,t){if(t=t||r.create(),null!=e.rules&&e.rules.length)for(var n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(p.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},g.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=p.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(p.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},f.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!i.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!i.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=p.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!i.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!i.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!i.isString(e.path)?"path: string expected":null},y.fromObject=function(e){var t;return e instanceof p.google.api.CustomHttpPattern?e:(t=new p.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},y),n),F.protobuf=((t={}).FileDescriptorSet=(J.prototype.file=i.emptyArray,J.create=function(e){return new J(e)},J.encode=function(e,t){if(t=t||r.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(p.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},J.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(p.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(p.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(p.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(p.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=p.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(p.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=p.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},b.fromObject=function(e){if(e instanceof p.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new p.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=p.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},b.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},b.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},b),O.ReservedRange=(m.prototype.start=0,m.prototype.end=0,m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||r.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},m.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},m.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end)?"end: integer expected":null},m.fromObject=function(e){var t;return e instanceof p.google.protobuf.DescriptorProto.ReservedRange?e:(t=new p.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},m.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},m.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},m),O),t.ExtensionRangeOptions=(M.prototype.uninterpretedOption=i.emptyArray,M.create=function(e){return new M(e)},M.encode=function(e,t){if(t=t||r.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},M.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=p.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!i.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";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:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!i.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!i.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!i.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!i.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!i.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},v.fromObject=function(e){if(e instanceof p.google.protobuf.FieldDescriptorProto)return e;var t=new p.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=p.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},v.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?p.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?p.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},v.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},v.Type=(n={},(e=Object.create(n))[n[1]="TYPE_DOUBLE"]=1,e[n[2]="TYPE_FLOAT"]=2,e[n[3]="TYPE_INT64"]=3,e[n[4]="TYPE_UINT64"]=4,e[n[5]="TYPE_INT32"]=5,e[n[6]="TYPE_FIXED64"]=6,e[n[7]="TYPE_FIXED32"]=7,e[n[8]="TYPE_BOOL"]=8,e[n[9]="TYPE_STRING"]=9,e[n[10]="TYPE_GROUP"]=10,e[n[11]="TYPE_MESSAGE"]=11,e[n[12]="TYPE_BYTES"]=12,e[n[13]="TYPE_UINT32"]=13,e[n[14]="TYPE_ENUM"]=14,e[n[15]="TYPE_SFIXED32"]=15,e[n[16]="TYPE_SFIXED64"]=16,e[n[17]="TYPE_SINT32"]=17,e[n[18]="TYPE_SINT64"]=18,e),v.Label=(n={},(e=Object.create(n))[n[1]="LABEL_OPTIONAL"]=1,e[n[2]="LABEL_REQUIRED"]=2,e[n[3]="LABEL_REPEATED"]=3,e),v),t.OneofDescriptorProto=(w.prototype.name="",w.prototype.options=null,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=p.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},w.fromObject=function(e){if(e instanceof p.google.protobuf.OneofDescriptorProto)return e;var t=new p.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=p.google.protobuf.OneofOptions.fromObject(e.options)}return t},w.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.OneofOptions.toObject(e.options,t)),n},w.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},w),t.EnumDescriptorProto=(P.prototype.name="",P.prototype.value=i.emptyArray,P.prototype.options=null,P.prototype.reservedRange=i.emptyArray,P.prototype.reservedName=i.emptyArray,P.create=function(e){return new P(e)},P.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(p.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=p.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(p.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},P.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},_.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},_.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end)?"end: integer expected":null},_.fromObject=function(e){var t;return e instanceof p.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new p.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},_.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},_.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},_),P),t.EnumValueDescriptorProto=(j.prototype.name="",j.prototype.number=0,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=p.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!i.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},j.fromObject=function(e){if(e instanceof p.google.protobuf.EnumValueDescriptorProto)return e;var t=new p.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=p.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},j.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},j.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},j),t.ServiceDescriptorProto=(S.prototype.name="",S.prototype.method=i.emptyArray,S.prototype.options=null,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(p.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=p.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=p.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!i.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!i.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof p.google.protobuf.MethodDescriptorProto)return e;var t=new p.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=p.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),t.FileOptions=(k.prototype.javaPackage="",k.prototype.javaOuterClassname="",k.prototype.javaMultipleFiles=!1,k.prototype.javaGenerateEqualsAndHash=!1,k.prototype.javaStringCheckUtf8=!1,k.prototype.optimizeFor=1,k.prototype.goPackage="",k.prototype.ccGenericServices=!1,k.prototype.javaGenericServices=!1,k.prototype.pyGenericServices=!1,k.prototype.phpGenericServices=!1,k.prototype.deprecated=!1,k.prototype.ccEnableArenas=!0,k.prototype.objcClassPrefix="",k.prototype.csharpNamespace="",k.prototype.swiftPrefix="",k.prototype.phpClassPrefix="",k.prototype.phpNamespace="",k.prototype.phpMetadataNamespace="",k.prototype.rubyPackage="",k.prototype.uninterpretedOption=i.emptyArray,k.create=function(e){return new k(e)},k.encode=function(e,t){if(t=t||r.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!i.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!i.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!i.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!i.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!i.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!i.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!i.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!i.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!i.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!i.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},T.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},T.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},H.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},H.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.longrunning.operationInfo"]=p.google.longrunning.OperationInfo.decode(e,e.uint32());break;case 72295728:o[".google.api.http"]=p.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(p.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},I.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(i.Long?(t.negativeIntValue=i.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new i.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?i.base64.decode(e.stringValue,t.stringValue=i.newBuffer(i.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},I.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",i.Long?(n=new i.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,i.Long?(n=new i.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=i.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?i.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new i.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?i.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},I.NamePart=(q.prototype.namePart="",q.prototype.isExtension=!1,q.create=function(e){return new q(e)},q.encode=function(e,t){return(t=t||r.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw i.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw i.ProtocolError("missing required 'isExtension'",{instance:o})},q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},q.verify=function(e){return"object"!=typeof e||null===e?"object expected":i.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},q.fromObject=function(e){var t;return e instanceof p.google.protobuf.UninterpretedOption.NamePart?e:(t=new p.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},q.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},q.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},q),I),t.SourceCodeInfo=(Y.prototype.location=i.emptyArray,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){if(t=t||r.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(p.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},Y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(p.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},W.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.type_url=e.string();break;case 2:o.value=e.bytes();break;default:e.skipType(7&r)}}return o},X.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},X.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!i.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||i.isString(e.value))?"value: buffer expected":null},X.fromObject=function(e){var t;return e instanceof p.google.protobuf.Any?e:(t=new p.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?i.base64.decode(e.value,t.value=i.newBuffer(i.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},X.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type_url="",t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=i.newBuffer(n.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(n.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?i.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},X.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},X),t.Duration=(K.prototype.seconds=i.Long?i.Long.fromBits(0,0,!1):0,K.prototype.nanos=0,K.create=function(e){return new K(e)},K.encode=function(e,t){return t=t||r.create(),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},K.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},K.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.Duration;e.pos>>3){case 1:o.seconds=e.int64();break;case 2:o.nanos=e.int32();break;default:e.skipType(7&r)}}return o},K.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},K.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.seconds&&e.hasOwnProperty("seconds")&&!(i.isInteger(e.seconds)||e.seconds&&i.isInteger(e.seconds.low)&&i.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&e.hasOwnProperty("nanos")&&!i.isInteger(e.nanos)?"nanos: integer expected":null},K.fromObject=function(e){var t;return e instanceof p.google.protobuf.Duration?e:(t=new p.google.protobuf.Duration,null!=e.seconds&&(i.Long?(t.seconds=i.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t)},K.toObject=function(e,t){var n,o={};return(t=t||{}).defaults&&(i.Long?(n=new i.Long(0,0,!1),o.seconds=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.seconds=t.longs===String?"0":0,o.nanos=0),null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?o.seconds=t.longs===String?String(e.seconds):e.seconds:o.seconds=t.longs===String?i.Long.prototype.toString.call(e.seconds):t.longs===Number?new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(o.nanos=e.nanos),o},K.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},K),t.Empty=(Q.create=function(e){return new Q(e)},Q.encode=function(e,t){return t=t||r.create()},Q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,t=new p.google.protobuf.Empty;e.pos>>3){case 1:o.code=e.int32();break;case 2:o.message=e.string();break;case 3:o.details&&o.details.length||(o.details=[]),o.details.push(p.google.protobuf.Any.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},V.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},V.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.code&&e.hasOwnProperty("code")&&!i.isInteger(e.code))return"code: integer expected";if(null!=e.message&&e.hasOwnProperty("message")&&!i.isString(e.message))return"message: string expected";if(null!=e.details&&e.hasOwnProperty("details")){if(!Array.isArray(e.details))return"details: array expected";for(var t=0;t request_cost = 4; + + // Resource utilization values. Each value is expressed as a fraction of total resources + // available, derived from the latest sample or measurement. + map utilization = 5 + [(validate.rules).map.values.double.gte = 0, (validate.rules).map.values.double.lte = 1]; + + // Total RPS being served by an endpoint. This should cover all services that an endpoint is + // responsible for. + double rps_fractional = 6 [(validate.rules).double.gte = 0]; + + // Total EPS (errors/second) being served by an endpoint. This should cover + // all services that an endpoint is responsible for. + double eps = 7 [(validate.rules).double.gte = 0]; + + // Application specific opaque metrics. + map named_metrics = 8; + + // Application specific utilization expressed as a fraction of available + // resources. For example, an application may report the max of CPU and memory + // utilization for better load balancing if it is both CPU and memory bound. + // This should be derived from the latest sample or measurement. + // The value may be larger than 1.0 when the usage exceeds the reporter + // dependent notion of soft limits. + double application_utilization = 9 [(validate.rules).double.gte = 0]; +} diff --git a/dist/xds/xds/service/orca/v3/orca.proto b/dist/xds/xds/service/orca/v3/orca.proto new file mode 100644 index 0000000..03126cd --- /dev/null +++ b/dist/xds/xds/service/orca/v3/orca.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +package xds.service.orca.v3; + +option java_outer_classname = "OrcaProto"; +option java_multiple_files = true; +option java_package = "com.github.xds.service.orca.v3"; +option go_package = "github.com/cncf/xds/go/xds/service/orca/v3"; + +import "xds/data/orca/v3/orca_load_report.proto"; + +import "google/protobuf/duration.proto"; + +// See section `Out-of-band (OOB) reporting` of the design document in +// :ref:`https://github.com/envoyproxy/envoy/issues/6614`. + +// Out-of-band (OOB) load reporting service for the additional load reporting +// agent that does not sit in the request path. Reports are periodically sampled +// with sufficient frequency to provide temporal association with requests. +// OOB reporting compensates the limitation of in-band reporting in revealing +// costs for backends that do not provide a steady stream of telemetry such as +// long running stream operations and zero QPS services. This is a server +// streaming service, client needs to terminate current RPC and initiate +// a new call to change backend reporting frequency. +service OpenRcaService { + rpc StreamCoreMetrics(OrcaLoadReportRequest) returns (stream xds.data.orca.v3.OrcaLoadReport); +} + +message OrcaLoadReportRequest { + // Interval for generating Open RCA core metric responses. + google.protobuf.Duration report_interval = 1; + // Request costs to collect. If this is empty, all known requests costs tracked by + // the load reporting agent will be returned. This provides an opportunity for + // the client to selectively obtain a subset of tracked costs. + repeated string request_cost_names = 2; +} diff --git a/package-lock.json b/package-lock.json index 5bb8f0d..afaaea9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@actions/core": "^1.10.0", "@actions/github": "^5.1.1", "akeyless": "^3.3.16", - "akeyless-cloud-id": "^2.2.0", + "akeyless-cloud-id": "github:akeylesslabs/akeyless-js-cloud-id#0ff2721ab2a7cb7163b1ea9fecd09e173225fb64", "js-yaml": "^4.1.0" }, "devDependencies": { @@ -21,18 +21,29 @@ } }, "node_modules/@actions/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", - "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz", + "integrity": "sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==", + "license": "MIT", "dependencies": { - "@actions/http-client": "^2.0.1", - "uuid": "^8.3.2" + "@actions/exec": "^1.1.1", + "@actions/http-client": "^2.0.1" + } + }, + "node_modules/@actions/exec": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz", + "integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==", + "license": "MIT", + "dependencies": { + "@actions/io": "^1.0.1" } }, "node_modules/@actions/github": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz", "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==", + "license": "MIT", "dependencies": { "@actions/http-client": "^2.0.1", "@octokit/core": "^3.6.0", @@ -41,33 +52,188 @@ } }, "node_modules/@actions/http-client": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.1.tgz", - "integrity": "sha512-qhrkRMB40bbbLo7gF+0vu+X+UawOvQQqNAA/5Unx774RS8poaOhThDOG6BGmxvAnxhQnDp2BG/ZUm65xZILTpw==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz", + "integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==", + "license": "MIT", + "dependencies": { + "tunnel": "^0.0.6", + "undici": "^5.25.4" + } + }, + "node_modules/@actions/io": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz", + "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==", + "license": "MIT" + }, + "node_modules/@azure/abort-controller": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", + "license": "MIT", "dependencies": { - "tunnel": "^0.0.6" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "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==", + "node_modules/@azure/core-auth": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.10.1.tgz", + "integrity": "sha512-ykRMW8PjVAn+RS6ww5cmK9U2CyH9p4Q88YJwvUslfuMmN98w/2rdGRLPqJYObapBCdzBVeDgYWdJnFPFb7qzpg==", + "license": "MIT", "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@azure/abort-controller": "^2.1.2", + "@azure/core-util": "^1.13.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=6.0.0" + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-client": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.10.1.tgz", + "integrity": "sha512-Nh5PhEOeY6PrnxNPsEHRr9eimxLwgLlpmguQaHKBinFYA/RU9+kOYVOQqOrTsCL+KSxrLLl1gD8Dk5BFW/7l/w==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.10.0", + "@azure/core-rest-pipeline": "^1.22.0", + "@azure/core-tracing": "^1.3.0", + "@azure/core-util": "^1.13.0", + "@azure/logger": "^1.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-rest-pipeline": { + "version": "1.23.0", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.23.0.tgz", + "integrity": "sha512-Evs1INHo+jUjwHi1T6SG6Ua/LHOQBCLuKEEE6efIpt4ZOoNonaT1kP32GoOcdNDbfqsD2445CPri3MubBy5DEQ==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.10.0", + "@azure/core-tracing": "^1.3.0", + "@azure/core-util": "^1.13.0", + "@azure/logger": "^1.3.0", + "@typespec/ts-http-runtime": "^0.3.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-tracing": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.3.1.tgz", + "integrity": "sha512-9MWKevR7Hz8kNzzPLfX4EAtGM2b8mr50HPDBvio96bURP/9C+HjdH3sBlLSNNrvRAr5/k/svoH457gB5IKpmwQ==", + "license": "MIT", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-util": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.13.1.tgz", + "integrity": "sha512-XPArKLzsvl0Hf0CaGyKHUyVgF7oDnhKoP85Xv6M4StF/1AhfORhZudHtOyf2s+FcbuQ9dPRAjB8J2KvRRMUK2A==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@typespec/ts-http-runtime": "^0.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/identity": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.13.0.tgz", + "integrity": "sha512-uWC0fssc+hs1TGGVkkghiaFkkS7NkTxfnCH+Hdg+yTehTpMcehpok4PgUKKdyCH+9ldu6FhiHRv84Ntqj1vVcw==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.0.0", + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", + "@azure/core-rest-pipeline": "^1.17.0", + "@azure/core-tracing": "^1.0.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.0.0", + "@azure/msal-browser": "^4.2.0", + "@azure/msal-node": "^3.5.0", + "open": "^10.1.0", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/logger": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.3.0.tgz", + "integrity": "sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==", + "license": "MIT", + "dependencies": { + "@typespec/ts-http-runtime": "^0.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/msal-browser": { + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.29.1.tgz", + "integrity": "sha512-1Vrt27du1cl4QHkzLc6L4aeXqliPIDIs5l/1I4hWWMXkXccY/EznJT1+pBdoVze0azTAI8sCyq5B4cBVYG1t9w==", + "license": "MIT", + "dependencies": { + "@azure/msal-common": "15.16.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-common": { + "version": "15.16.1", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.16.1.tgz", + "integrity": "sha512-qxUG9TCl+TVSSX58onVDHDWrvT5CE0+NeeUAbkQqaESpSm79u5IePLnPWMMjCUnUR2zJd4+Bt9vioVRzLmJb2g==", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-node": { + "version": "3.8.9", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.9.tgz", + "integrity": "sha512-jZ0pw/BbdEUWGhomCaAiVDfXRI/9K56m5hTNqB/CzcbZEYhXm5qpK1cDngN1iXfwSfmUMorOUQ2FC0dyuQ9uRg==", + "license": "MIT", + "dependencies": { + "@azure/msal-common": "15.16.1", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + }, + "engines": { + "node": ">=16" } }, "node_modules/@babel/cli": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.22.10.tgz", - "integrity": "sha512-rM9ZMmaII630zGvtMtQ3P4GyHs28CHLYE9apLG7L8TgaSqcfoIGrlLSLsh4Q8kDTdZQQEXZm1M0nQtOvU/2heg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.28.6.tgz", + "integrity": "sha512-6EUNcuBbNkj08Oj4gAZ+BUU8yLCgKzgVX4gaTh09Ya2C8ICM4P+G30g4m3akRxSYAp3A/gnWchrNst7px4/nUQ==", + "license": "MIT", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "commander": "^4.0.1", - "convert-source-map": "^1.1.0", + "@jridgewell/trace-mapping": "^0.3.28", + "commander": "^6.2.0", + "convert-source-map": "^2.0.0", "fs-readdir-recursive": "^1.1.0", "glob": "^7.2.0", "make-dir": "^2.1.0", @@ -82,48 +248,52 @@ }, "optionalDependencies": { "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", - "chokidar": "^3.4.0" + "chokidar": "^3.6.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "license": "MIT", "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz", - "integrity": "sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.11.tgz", - "integrity": "sha512-lh7RJrtPdhibbxndr6/xx0w8+CVlY5FJZiaSz908Fpy+G0xkBFTvwLcKJFF4PJxVfGhVWNebikpWGnOoC71juQ==", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.10", - "@babel/generator": "^7.22.10", - "@babel/helper-compilation-targets": "^7.22.10", - "@babel/helper-module-transforms": "^7.22.9", - "@babel/helpers": "^7.22.11", - "@babel/parser": "^7.22.11", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.11", - "@babel/types": "^7.22.11", - "convert-source-map": "^1.7.0", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", @@ -138,27 +308,30 @@ } }, "node_modules/@babel/generator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.3.tgz", - "integrity": "sha512-keeZWAV4LU3tW0qRi19HRpabC/ilM0HRBBzf9/k8FFiG4KVpiv0FIy4hHfLfFQZNhziCTPTmd59zoyv6DNISzg==", + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.23.3", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.10.tgz", - "integrity": "sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==", - "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.5", - "browserslist": "^4.21.9", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -166,58 +339,37 @@ "node": ">=6.9.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==", - "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==", - "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==", - "dependencies": { - "@babel/types": "^7.22.5" - }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", - "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz", - "integrity": "sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.5" + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -227,90 +379,63 @@ } }, "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==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", "dev": true, - "engines": { - "node": ">=6.9.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==", - "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==", - "dependencies": { - "@babel/types": "^7.22.5" - }, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", - "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.11.tgz", - "integrity": "sha512-vyOXC8PBWaGc5h7GMsNx68OH33cypkEDJCHvYVVgVbbxJDROYVtexSk0gK5iCF1xNjRIN2s8ai7hwkWDq5szWg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "license": "MIT", "dependencies": { - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.11", - "@babel/types": "^7.22.11" + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.13.tgz", - "integrity": "sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==", + "node_modules/@babel/parser": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "@babel/types": "^7.29.0" }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.3.tgz", - "integrity": "sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -323,6 +448,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -335,6 +461,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -347,6 +474,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -354,11 +482,44 @@ "@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, + "license": "MIT", + "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-import-attributes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -371,6 +532,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -379,12 +541,13 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", - "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -398,6 +561,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -410,6 +574,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -422,6 +587,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -434,6 +600,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -446,6 +613,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -458,6 +626,7 @@ "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -465,11 +634,28 @@ "@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, + "license": "MIT", + "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, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -481,12 +667,13 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", - "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", + "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -496,46 +683,45 @@ } }, "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.3.tgz", - "integrity": "sha512-+K0yF1/9yR0oHdE0StHuEj3uTPzwwbrLGfNOndVJVV2TqA5+j3oljJUb4nmB954FLGjNem976+B+eDuLIjesiQ==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.3", - "@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.3", - "@babel/types": "^7.23.3", - "debug": "^4.1.0", - "globals": "^11.1.0" + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/types": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.3.tgz", - "integrity": "sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -545,12 +731,23 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/@fastify/busboy": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", + "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", + "license": "MIT", + "engines": { + "node": ">=14" + } }, "node_modules/@google-cloud/iam-credentials": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@google-cloud/iam-credentials/-/iam-credentials-3.0.1.tgz", - "integrity": "sha512-vPLQ59/MBVlakf2s4E3vBY6KzqriFzq7jUsHUQWnDtP8DIuJUsoYG60MfJ4LhTmdBkt9G43KgxtWvHFBoxWLDg==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@google-cloud/iam-credentials/-/iam-credentials-3.3.0.tgz", + "integrity": "sha512-S2v9qbr1QJgC11aIYXQYVZQzpoUs5d06Ed34F4ItAzQssVR59obAdjHGFGmPn8L+oZ2U3cQvz4G58p8Op1I+DQ==", + "license": "Apache-2.0", "dependencies": { "google-gax": "^4.0.3" }, @@ -559,25 +756,45 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.3.tgz", - "integrity": "sha512-b8iWtdrYIeT5fdZdS4Br/6h/kuk0PW5EVBUGk1amSbrpL8DlktJD43CdcCWwRdd6+jgwHhADSbL9CsNnm6EUPA==", + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz", + "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.8.0", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.0.tgz", + "integrity": "sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==", + "license": "Apache-2.0", "dependencies": { - "@grpc/proto-loader": "^0.7.8", - "@types/node": ">=12.12.47" + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.5.3", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" }, "engines": { - "node": "^8.13.0 || >=10.10.0" + "node": ">=6" } }, "node_modules/@grpc/proto-loader": { - "version": "0.7.10", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.10.tgz", - "integrity": "sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ==", + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", + "license": "Apache-2.0", "dependencies": { "lodash.camelcase": "^4.3.0", "long": "^5.0.0", - "protobufjs": "^7.2.4", + "protobufjs": "^7.2.5", "yargs": "^17.7.2" }, "bin": { @@ -592,6 +809,7 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, + "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -608,15 +826,17 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, + "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } }, "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "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" @@ -630,6 +850,7 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -639,6 +860,7 @@ "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -651,81 +873,12 @@ "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/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/@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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -735,6 +888,7 @@ "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/reporters": "^29.7.0", @@ -777,108 +931,41 @@ } } }, - "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==", + "node_modules/@jest/core/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, + "license": "MIT", "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==", + "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, + "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "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==", + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, + "license": "MIT", "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/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/@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.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", - "dev": true, - "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" }, "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" @@ -889,6 +976,7 @@ "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, + "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3" }, @@ -901,6 +989,7 @@ "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@sinonjs/fake-timers": "^10.0.2", @@ -918,6 +1007,7 @@ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -933,6 +1023,7 @@ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, + "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "^29.7.0", @@ -971,81 +1062,12 @@ } } }, - "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/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/@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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -1055,6 +1077,7 @@ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, + "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.27.8" }, @@ -1067,6 +1090,7 @@ "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", @@ -1081,6 +1105,7 @@ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/types": "^29.6.3", @@ -1096,6 +1121,7 @@ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "graceful-fs": "^4.2.9", @@ -1111,6 +1137,7 @@ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1120,6 +1147,7 @@ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.6.3", @@ -1141,87 +1169,12 @@ "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/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/@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/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/@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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -1231,6 +1184,7 @@ "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", @@ -1243,129 +1197,73 @@ "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, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "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, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "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" - }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", "engines": { - "node": ">=7.0.0" + "node": ">=6.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/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" }, - "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, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "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==", - "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.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "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==", - "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==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" } }, "node_modules/@nicolo-ribaudo/chokidar-2": { "version": "2.1.8-no-fsevents.3", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", "integrity": "sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==", + "license": "MIT", "optional": true }, "node_modules/@octokit/auth-token": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3" } @@ -1374,6 +1272,7 @@ "version": "3.6.0", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", + "license": "MIT", "dependencies": { "@octokit/auth-token": "^2.4.4", "@octokit/graphql": "^4.5.8", @@ -1388,6 +1287,7 @@ "version": "6.0.12", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "is-plain-object": "^5.0.0", @@ -1398,6 +1298,7 @@ "version": "4.8.0", "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", + "license": "MIT", "dependencies": { "@octokit/request": "^5.6.0", "@octokit/types": "^6.0.3", @@ -1407,12 +1308,14 @@ "node_modules/@octokit/openapi-types": { "version": "12.11.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", - "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", + "license": "MIT" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "2.21.3", "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", + "license": "MIT", "dependencies": { "@octokit/types": "^6.40.0" }, @@ -1424,6 +1327,7 @@ "version": "5.16.2", "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", + "license": "MIT", "dependencies": { "@octokit/types": "^6.39.0", "deprecation": "^2.3.1" @@ -1436,6 +1340,7 @@ "version": "5.6.3", "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "license": "MIT", "dependencies": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.1.0", @@ -1449,6 +1354,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "deprecation": "^2.0.0", @@ -1459,6 +1365,7 @@ "version": "6.41.0", "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "license": "MIT", "dependencies": { "@octokit/openapi-types": "^12.11.0" } @@ -1466,27 +1373,32 @@ "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" }, "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==" + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -1495,39 +1407,46 @@ "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" }, "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 + "version": "0.27.10", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz", + "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==", + "dev": true, + "license": "MIT" }, "node_modules/@sinonjs/commons": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", - "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -1537,15 +1456,26 @@ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, + "license": "BSD-3-Clause", "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==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, "node_modules/@types/babel__core": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.2.tgz", - "integrity": "sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -1555,62 +1485,75 @@ } }, "node_modules/@types/babel__generator": { - "version": "7.6.5", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.5.tgz", - "integrity": "sha512-h9yIuWbJKdOPLJTbmSpPzkF67e659PbQDba7ifWm5BJ8xTv+sDmS7rFmywkWOvXedGTivCdeGSIIX8WLcRTz8w==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__template": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.2.tgz", - "integrity": "sha512-/AVzPICMhMOMYoSx9MoKpGDKdBRsIXMNByh1PXSZoa+v6ZoLa8xxtsT/uLQ/NJm0XVAWl/BvId4MlDeXJaeIZQ==", + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__traverse": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.2.tgz", - "integrity": "sha512-ojlGK1Hsfce93J0+kn3H5R73elidKUaZonirN33GSmgTUMpzI/MIFfSpF3haANe3G1bEBS9/9/QEqwTzwqFsKw==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.20.7" + "@babel/types": "^7.28.2" } }, + "node_modules/@types/caseless": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz", + "integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==", + "license": "MIT" + }, "node_modules/@types/graceful-fs": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.7.tgz", - "integrity": "sha512-MhzcwU8aUygZroVwL2jeYk6JisJrPl/oov/gsgGCue9mkgl9wjGbzReYQClxiUgFDnib9FuHqTndccKeZKxTRw==", + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, + "license": "MIT", "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 + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" }, "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==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, + "license": "MIT", "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==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" } @@ -1618,38 +1561,79 @@ "node_modules/@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", + "license": "MIT" }, "node_modules/@types/node": { - "version": "20.6.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.6.2.tgz", - "integrity": "sha512-Y+/1vGBHV/cYk6OI1Na/LHzwnlNCAfU3ZNGrc1LdRe/LAIbdDPTTv/HU3M7yXN448aTVDq3eKRm2cg7iKLb8gw==" + "version": "25.5.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.0.tgz", + "integrity": "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==", + "license": "MIT", + "dependencies": { + "undici-types": "~7.18.0" + } + }, + "node_modules/@types/request": { + "version": "2.48.13", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.13.tgz", + "integrity": "sha512-FGJ6udDNUCjd19pp0Q3iTiDkwhYup7J8hpMW9c4k53NrccQFFWKRho6hvtPPEhnXWKvukfwAlB6DbDz4yhH5Gg==", + "license": "MIT", + "dependencies": { + "@types/caseless": "*", + "@types/node": "*", + "@types/tough-cookie": "*", + "form-data": "^2.5.5" + } }, "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 + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "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==", + "license": "MIT" }, "node_modules/@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", "dev": true, + "license": "MIT", "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 + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typespec/ts-http-runtime": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.4.tgz", + "integrity": "sha512-CI0NhTrz4EBaa0U+HaaUZrJhPoso8sG7ZFya8uQoBA57fjzrjRSv87ekCjLZOFExN+gXE/z0xuN2QfH4H2HrLQ==", + "license": "MIT", + "dependencies": { + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", "dependencies": { "event-target-shim": "^5.0.0" }, @@ -1658,52 +1642,43 @@ } }, "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==", - "dependencies": { - "debug": "4" - }, + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", "engines": { - "node": ">= 6.0.0" + "node": ">= 14" } }, "node_modules/akeyless": { - "version": "3.3.16", - "resolved": "https://registry.npmjs.org/akeyless/-/akeyless-3.3.16.tgz", - "integrity": "sha512-cSp3lDXz2cz2oRbt94+f7tUnrrLT8XvyJZ/ilKX56YN6wJS2hB3Rb/TUMVRA/laH400rCKwnDyB+4djksZiYYg==", + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/akeyless/-/akeyless-3.6.3.tgz", + "integrity": "sha512-4htcWzJDS5LLWXbRKxMWJ0brk2XYIak8rcrtyKMp6eIV+bG8DqgjClsuqqXd0yQgMcC7cqY+RU0Nn1+42HIV6Q==", + "license": "Unlicense", "dependencies": { "@babel/cli": "^7.0.0", "superagent": "3.7.0" } }, "node_modules/akeyless-cloud-id": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/akeyless-cloud-id/-/akeyless-cloud-id-2.2.0.tgz", - "integrity": "sha512-qShpWBZMskUNC/TXKYDR8ueRoqeeW6El2avK8qPMn3Dw3DgkgM2fJttvHYtYN41mJw/7iISN3TV+uUfEoTg3Jg==", + "version": "2.5.1", + "resolved": "git+ssh://git@github.com/akeylesslabs/akeyless-js-cloud-id.git#0ff2721ab2a7cb7163b1ea9fecd09e173225fb64", + "integrity": "sha512-jc5vzqeDVqOf3KR9toonUXNNnUExdp0EHmtjvwvWahzZ/uyjfow/L0Xt/ot/+yyhz2m1hLX2qhTQ+Rlwt5zS5w==", + "license": "ISC", "dependencies": { - "@google-cloud/iam-credentials": "^3.0.0", - "akeyless": "^2.0.15", - "aws-sdk": "^2.876.0", + "@azure/identity": "^4.8.0", + "@google-cloud/iam-credentials": "^3.3.0", + "aws-sdk": "^2.1692.0", "aws4": "^1.11.0", - "axios": "^0.21.1", "google-auth-library": "^7.0.3" } }, - "node_modules/akeyless-cloud-id/node_modules/akeyless": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/akeyless/-/akeyless-2.20.3.tgz", - "integrity": "sha512-AP6izFeV4jzsH9L4KVsOOuCiKv0+0Q34mYWNqhl9ikliDg8Wc2cW4PQQVM3j8jT/hfMB+16E2Bs7U5kqlIjkCA==", - "dependencies": { - "@babel/cli": "^7.0.0", - "superagent": "3.7.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, + "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -1718,19 +1693,24 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", "engines": { "node": ">=8" } }, "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==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { @@ -1738,6 +1718,7 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "devOptional": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1749,12 +1730,14 @@ "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==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" }, "node_modules/arrify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "license": "MIT", "engines": { "node": ">=8" } @@ -1762,12 +1745,17 @@ "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" }, "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -1776,9 +1764,12 @@ } }, "node_modules/aws-sdk": { - "version": "2.1460.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1460.0.tgz", - "integrity": "sha512-7K+aTMKtCAyR3cWxyGFd9YP1U4go4IaRsiFO8JLNpy2fSqlGC5XENGyLhmIQQOBwqb2WOwz5e1BftaKycmreWw==", + "version": "2.1693.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1693.0.tgz", + "integrity": "sha512-cJmb8xEnVLT+R6fBS5sn/EFJiX7tUnDaPtOPZ1vFbOJtd0fnZn/Ky2XGgsvvoeliWeH7mL3TWSX5zXXGSQV6gQ==", + "deprecated": "The AWS SDK for JavaScript (v2) has reached end-of-support, and no longer receives updates. Please migrate your code to use AWS SDK for JavaScript (v3). More info https://a.co/cUPnyil", + "hasInstallScript": true, + "license": "Apache-2.0", "dependencies": { "buffer": "4.9.2", "events": "1.1.1", @@ -1789,7 +1780,7 @@ "url": "0.10.3", "util": "^0.12.4", "uuid": "8.0.0", - "xml2js": "0.5.0" + "xml2js": "0.6.2" }, "engines": { "node": ">= 10.0.0" @@ -1799,28 +1790,23 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } }, "node_modules/aws4": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", - "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" - }, - "node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "dependencies": { - "follow-redirects": "^1.14.0" - } + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", + "license": "MIT" }, "node_modules/babel-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", @@ -1837,81 +1823,12 @@ "@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/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/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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -1921,6 +1838,7 @@ "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -1937,6 +1855,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -1953,6 +1872,7 @@ "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", @@ -1964,26 +1884,30 @@ } }, "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==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", "dev": true, + "license": "MIT", "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-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^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.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-top-level-await": "^7.8.3" + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" }, "peerDependencies": { - "@babel/core": "^7.0.0" + "@babel/core": "^7.0.0 || ^8.0.0-0" } }, "node_modules/babel-preset-jest": { @@ -1991,6 +1915,7 @@ "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, + "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" @@ -2005,7 +1930,8 @@ "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==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" }, "node_modules/base64-js": { "version": "1.5.1", @@ -2024,55 +1950,76 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.8", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz", + "integrity": "sha512-PCLz/LXGBsNTErbtB6i5u4eLpHeMfi93aUv5duMmj6caNu6IphS4q6UevDnL36sZQv9lrP11dbPKGMaXPwMKfQ==", + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } }, "node_modules/before-after-hook": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", + "license": "Apache-2.0" }, "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "license": "MIT", "engines": { "node": "*" } }, "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "license": "MIT", "optional": true, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "devOptional": true, + "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, "node_modules/browserslist": { - "version": "4.21.10", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", - "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "funding": [ { "type": "opencollective", @@ -2087,11 +2034,13 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001517", - "electron-to-chromium": "^1.4.477", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.11" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" @@ -2105,6 +2054,7 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } @@ -2113,6 +2063,7 @@ "version": "4.9.2", "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "license": "MIT", "dependencies": { "base64-js": "^1.0.2", "ieee754": "^1.1.4", @@ -2122,21 +2073,73 @@ "node_modules/buffer-equal-constant-time": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" }, "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 + "dev": true, + "license": "MIT" + }, + "node_modules/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "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/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2147,6 +2150,7 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2156,14 +2160,15 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001525", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001525.tgz", - "integrity": "sha512-/3z+wB4icFt3r0USMwxujAqRvaD/B7rvGTsKhbhSQErVrJvkZCLhgNLJxU8MevahQVH6hCU9FsHdNUFbiwmE7Q==", + "version": "1.0.30001779", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001779.tgz", + "integrity": "sha512-U5og2PN7V4DMgF50YPNtnZJGWVLFjjsN3zb6uMT5VGYIewieDj1upwfuVNXf4Kor+89c3iCRJnSzMD5LmTvsfA==", "funding": [ { "type": "opencollective", @@ -2177,19 +2182,24 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "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==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/char-regex": { @@ -2197,20 +2207,16 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "license": "MIT", "optional": true, "dependencies": { "anymatch": "~3.1.2", @@ -2224,14 +2230,17 @@ "engines": { "node": ">= 8.10.0" }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "node_modules/ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", "dev": true, "funding": [ { @@ -2239,20 +2248,23 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], + "license": "MIT", "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 + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true, + "license": "MIT" }, "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==", + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -2267,34 +2279,42 @@ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, + "license": "MIT", "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 + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "dev": true, + "license": "MIT" }, "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==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" }, "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==", + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -2303,43 +2323,53 @@ } }, "node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" }, "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==" + "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==", + "license": "MIT" }, "node_modules/cookiejar": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==" + "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", + "license": "MIT" }, "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" }, "node_modules/create-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -2356,96 +2386,28 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/create-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==", + "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": { - "color-convert": "^2.0.1" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/create-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/create-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/create-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/create-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/create-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/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" + "node": ">= 8" } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -2457,10 +2419,11 @@ } }, "node_modules/dedent": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", - "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz", + "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==", "dev": true, + "license": "MIT", "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -2475,14 +2438,73 @@ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/default-browser": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.0.tgz", + "integrity": "sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==", + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -2490,13 +2512,15 @@ "node_modules/deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "license": "ISC" }, "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, + "license": "MIT", "engines": { "node": ">=8" } @@ -2506,52 +2530,58 @@ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/duplexify": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz", - "integrity": "sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==", + "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": { - "end-of-stream": "^1.4.1", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1", - "stream-shift": "^1.0.0" + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/duplexify/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "license": "MIT", "dependencies": { + "end-of-stream": "^1.4.1", "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" } }, "node_modules/ecdsa-sig-formatter": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" } }, "node_modules/electron-to-chromium": { - "version": "1.4.508", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.508.tgz", - "integrity": "sha512-FFa8QKjQK/A5QuFr2167myhMesGrhlOBD+3cYNxO9/S4XzHEXesyTD/1/xF644gC8buFPz3ca6G1LOQD0tZrrg==" + "version": "1.5.313", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.313.tgz", + "integrity": "sha512-QBMrTWEf00GXZmJyx2lbYD45jpI3TUFnNIzJ5BBc8piGUDwMPa1GV6HJWTZVvY/eiN3fSopl7NRbgGp9sZ9LTA==", + "license": "ISC" }, "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, + "license": "MIT", "engines": { "node": ">=12" }, @@ -2562,39 +2592,90 @@ "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==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" }, "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", "dependencies": { "once": "^1.4.0" } }, "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==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", "dev": true, + "license": "MIT", "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==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", "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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "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, + "license": "MIT", "engines": { - "node": ">=0.8.0" + "node": ">=8" } }, "node_modules/esprima": { @@ -2602,6 +2683,7 @@ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, + "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -2614,6 +2696,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", "engines": { "node": ">=6" } @@ -2622,6 +2705,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", + "license": "MIT", "engines": { "node": ">=0.4.x" } @@ -2631,6 +2715,7 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -2663,6 +2748,7 @@ "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.7.0", "jest-get-type": "^29.6.3", @@ -2677,33 +2763,38 @@ "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" }, "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 + "dev": true, + "license": "MIT" }, "node_modules/fast-text-encoding": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz", - "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==" + "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==", + "license": "Apache-2.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, + "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "devOptional": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2716,6 +2807,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -2724,41 +2816,33 @@ "node": ">=8" } }, - "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "license": "MIT", "dependencies": { - "is-callable": "^1.1.3" + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/form-data": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", - "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz", + "integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35", + "safe-buffer": "^5.2.1" }, "engines": { "node": ">= 0.12" @@ -2769,6 +2853,7 @@ "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.6.tgz", "integrity": "sha512-KcpbcpuLNOwrEjnbpMC0gS+X8ciDoZE1kkqzat4a8vrprf+s9pKNQ/QIwWfbfs4ltgmFl3MD177SNTkve3BwGQ==", "deprecated": "Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau", + "license": "MIT", "funding": { "url": "https://ko-fi.com/tunnckoCore/commissions" } @@ -2776,18 +2861,21 @@ "node_modules/fs-readdir-recursive": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==" + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", + "license": "MIT" }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -2797,14 +2885,19 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "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/gaxios": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-4.3.3.tgz", "integrity": "sha512-gSaYYIO1Y3wUtdfHmjDUZ8LWaxJQpiavzbF5Kq53akSzvmVg0RfyOcFDbO1KJ/KCGRFz2qG+lS81F0nkr7cRJA==", + "license": "Apache-2.0", "dependencies": { "abort-controller": "^3.0.0", "extend": "^3.0.2", @@ -2816,10 +2909,36 @@ "node": ">=10" } }, + "node_modules/gaxios/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==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/gaxios/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==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/gcp-metadata": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.3.1.tgz", "integrity": "sha512-x850LS5N7V1F3UcV7PoupzGsyD6iVwTVvsh3tbXfkctZnBnjW5yu5z1/3k3SehF7TyoTIe78rJs02GMMy+LF+A==", + "license": "Apache-2.0", "dependencies": { "gaxios": "^4.0.0", "json-bigint": "^1.0.0" @@ -2828,10 +2947,20 @@ "node": ">=10" } }, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "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==", + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -2840,19 +2969,30 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "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" @@ -2863,15 +3003,30 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, + "license": "MIT", "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, + "license": "MIT", "engines": { "node": ">=10" }, @@ -2883,6 +3038,8 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -2902,6 +3059,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", "optional": true, "dependencies": { "is-glob": "^4.0.1" @@ -2910,18 +3068,11 @@ "node": ">= 6" } }, - "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==", - "engines": { - "node": ">=4" - } - }, "node_modules/google-auth-library": { "version": "7.14.1", "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-7.14.1.tgz", "integrity": "sha512-5Rk7iLNDFhFeBYc3s8l1CqzbEBcdhwR193RlD4vSNFajIcINKI8W8P0JLmBpwymHqqWbX34pJDQu39cSy/6RsA==", + "license": "Apache-2.0", "dependencies": { "arrify": "^2.0.0", "base64-js": "^1.3.0", @@ -2941,6 +3092,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -2951,60 +3103,56 @@ "node_modules/google-auth-library/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" }, "node_modules/google-gax": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.0.4.tgz", - "integrity": "sha512-Yoey/ABON2HaTUIRUt5tTQAvwQ6E/2etSyFXwHNVcYtIiYDpKix7G4oorZdkp17gFiYovzRCRhRZYrfdCgRK9Q==", + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.6.1.tgz", + "integrity": "sha512-V6eky/xz2mcKfAd1Ioxyd6nmA61gao3n01C+YeuIwu3vzM9EDR6wcVzMSIbLMDXWeoi9SHYctXuKYC5uJUT3eQ==", + "license": "Apache-2.0", "dependencies": { - "@grpc/grpc-js": "~1.9.0", - "@grpc/proto-loader": "^0.7.0", + "@grpc/grpc-js": "^1.10.9", + "@grpc/proto-loader": "^0.7.13", "@types/long": "^4.0.0", "abort-controller": "^3.0.0", "duplexify": "^4.0.0", - "google-auth-library": "^9.0.0", - "node-fetch": "^2.6.1", + "google-auth-library": "^9.3.0", + "node-fetch": "^2.7.0", "object-hash": "^3.0.0", - "proto3-json-serializer": "^2.0.0", - "protobufjs": "7.2.5", - "retry-request": "^6.0.0" + "proto3-json-serializer": "^2.0.2", + "protobufjs": "^7.3.2", + "retry-request": "^7.0.0", + "uuid": "^9.0.1" }, "engines": { "node": ">=14" } }, - "node_modules/google-gax/node_modules/agent-base": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", - "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/google-gax/node_modules/gaxios": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.1.1.tgz", - "integrity": "sha512-bw8smrX+XlAoo9o1JAksBwX+hi/RG15J+NTSxmNPIclKC3ZVK6C2afwY8OSdRvOK0+ZLecUJYtj2MmjOt3Dm0w==", + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz", + "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==", + "license": "Apache-2.0", "dependencies": { "extend": "^3.0.2", "https-proxy-agent": "^7.0.1", "is-stream": "^2.0.0", - "node-fetch": "^2.6.9" + "node-fetch": "^2.6.9", + "uuid": "^9.0.1" }, "engines": { "node": ">=14" } }, "node_modules/google-gax/node_modules/gcp-metadata": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.0.0.tgz", - "integrity": "sha512-Ozxyi23/1Ar51wjUT2RDklK+3HxqDr8TLBNK8rBBFQ7T85iIGnXnVusauj06QyqCXRFZig8LZC+TUddWbndlpQ==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz", + "integrity": "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==", + "license": "Apache-2.0", "dependencies": { - "gaxios": "^6.0.0", + "gaxios": "^6.1.1", + "google-logging-utils": "^0.0.2", "json-bigint": "^1.0.0" }, "engines": { @@ -3012,26 +3160,27 @@ } }, "node_modules/google-gax/node_modules/google-auth-library": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.0.0.tgz", - "integrity": "sha512-IQGjgQoVUAfOk6khqTVMLvWx26R+yPw9uLyb1MNyMQpdKiKt0Fd9sp4NWoINjyGHR8S3iw12hMTYK7O8J07c6Q==", + "version": "9.15.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz", + "integrity": "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==", + "license": "Apache-2.0", "dependencies": { "base64-js": "^1.3.0", "ecdsa-sig-formatter": "^1.0.11", - "gaxios": "^6.0.0", - "gcp-metadata": "^6.0.0", + "gaxios": "^6.1.1", + "gcp-metadata": "^6.1.0", "gtoken": "^7.0.0", - "jws": "^4.0.0", - "lru-cache": "^6.0.0" + "jws": "^4.0.0" }, "engines": { "node": ">=14" } }, "node_modules/google-gax/node_modules/gtoken": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.0.1.tgz", - "integrity": "sha512-KcFVtoP1CVFtQu0aSk3AyAt2og66PFhZAlkUOuWKwzMLoulHXG5W5wE5xAnHb+yl3/wEFoqGW7/cDGMU8igDZQ==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz", + "integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==", + "license": "MIT", "dependencies": { "gaxios": "^6.0.0", "jws": "^4.0.0" @@ -3040,38 +3189,34 @@ "node": ">=14.0.0" } }, - "node_modules/google-gax/node_modules/https-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", - "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" + "node_modules/google-gax/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" } }, - "node_modules/google-gax/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==", - "dependencies": { - "yallist": "^4.0.0" - }, + "node_modules/google-logging-utils": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz", + "integrity": "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==", + "license": "Apache-2.0", "engines": { - "node": ">=10" + "node": ">=14" } }, - "node_modules/google-gax/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/google-p12-pem": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.1.4.tgz", "integrity": "sha512-HHuHmkLgwjdmVRngf5+gSmpkyaRI6QmOg77J8tkNBHhNEI62sGHyw4/+UkgyZEI7h84NbWprXDJ+sa3xOYFvTg==", + "deprecated": "Package is no longer maintained", + "license": "MIT", "dependencies": { "node-forge": "^1.3.1" }, @@ -3083,11 +3228,12 @@ } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" + "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" @@ -3097,12 +3243,14 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/gtoken": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.3.2.tgz", "integrity": "sha512-gkvEKREW7dXWF8NV8pVrKfW7WqReAmjjkMBh6lNCCGOM4ucS0r0YyXXl0r/9Yj8wcW/32ISkfc8h5mPTDbtifQ==", + "license": "MIT", "dependencies": { "gaxios": "^4.0.0", "google-p12-pem": "^3.1.3", @@ -3112,40 +3260,33 @@ "node": ">=10" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "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": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "engines": { - "node": ">= 0.4" + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "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" }, @@ -3154,11 +3295,12 @@ } }, "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "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.2" + "has-symbols": "^1.0.3" }, "engines": { "node": ">= 0.4" @@ -3167,22 +3309,49 @@ "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-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } }, "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==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", "dependencies": { - "agent-base": "6", + "agent-base": "^7.1.2", "debug": "4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/human-signals": { @@ -3190,6 +3359,7 @@ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } @@ -3197,13 +3367,15 @@ "node_modules/ieee754": { "version": "1.1.13", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", + "license": "BSD-3-Clause" }, "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, + "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -3223,6 +3395,7 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -3231,6 +3404,8 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -3239,15 +3414,17 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" }, "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -3260,12 +3437,14 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "license": "MIT", "optional": true, "dependencies": { "binary-extensions": "^2.0.0" @@ -3278,6 +3457,7 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -3286,21 +3466,41 @@ } }, "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, + "license": "MIT", "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", "optional": true, "engines": { "node": ">=0.10.0" @@ -3310,6 +3510,7 @@ "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==", + "license": "MIT", "engines": { "node": ">=8" } @@ -3319,16 +3520,22 @@ "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", + "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -3341,6 +3548,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", "optional": true, "dependencies": { "is-extglob": "^2.1.1" @@ -3349,11 +3557,30 @@ "node": ">=0.10.0" } }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "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==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -3362,14 +3589,34 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "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==", + "license": "MIT", "engines": { "node": ">=8" }, @@ -3378,11 +3625,12 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.11" + "which-typed-array": "^1.1.16" }, "engines": { "node": ">= 0.4" @@ -3391,35 +3639,54 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "dev": true, + "license": "ISC" }, "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==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=8" } }, "node_modules/istanbul-lib-instrument": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.0.tgz", - "integrity": "sha512-x58orMzEVfzPUKqlbLd1hXCnySCxKdDKa6Rjg97CwuLLRI4g3FHTdnExu1OqffVFay6zeMW+T6/DowFLndWnIw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", "istanbul-lib-coverage": "^3.2.0", "semver": "^7.5.4" }, @@ -3427,26 +3694,12 @@ "node": ">=10" } }, - "node_modules/istanbul-lib-instrument/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/istanbul-lib-instrument/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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3454,17 +3707,12 @@ "node": ">=10" } }, - "node_modules/istanbul-lib-instrument/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/istanbul-lib-report": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -3474,32 +3722,12 @@ "node": ">=10" } }, - "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/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/istanbul-lib-report/node_modules/make-dir": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, + "license": "MIT", "dependencies": { "semver": "^7.5.3" }, @@ -3511,13 +3739,11 @@ } }, "node_modules/istanbul-lib-report/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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3525,29 +3751,12 @@ "node": ">=10" } }, - "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-report/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/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, + "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -3558,10 +3767,11 @@ } }, "node_modules/istanbul-reports": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -3575,6 +3785,7 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -3601,6 +3812,7 @@ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, + "license": "MIT", "dependencies": { "execa": "^5.0.0", "jest-util": "^29.7.0", @@ -3615,6 +3827,7 @@ "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -3641,81 +3854,12 @@ "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/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/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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -3725,6 +3869,7 @@ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/test-result": "^29.7.0", @@ -3753,81 +3898,12 @@ } } }, - "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/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-config": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", - "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/test-sequencer": "^29.7.0", @@ -3868,81 +3944,12 @@ } } }, - "node_modules/jest-config/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-config/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-config/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-config/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-config/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-config/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/jest-config/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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -3952,6 +3959,7 @@ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.6.3", @@ -3962,81 +3970,12 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-diff/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-diff/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-diff/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-diff/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-diff/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-diff/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-docblock": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, + "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -4049,6 +3988,7 @@ "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -4060,81 +4000,12 @@ "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/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-node": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -4152,6 +4023,7 @@ "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -4161,6 +4033,7 @@ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/graceful-fs": "^4.1.3", @@ -4186,6 +4059,7 @@ "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, + "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3", "pretty-format": "^29.7.0" @@ -4199,6 +4073,7 @@ "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.7.0", @@ -4209,171 +4084,33 @@ "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==", + "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, + "license": "MIT", "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/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/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" + "@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/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/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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -4383,6 +4120,7 @@ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -4397,6 +4135,7 @@ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" }, @@ -4414,6 +4153,7 @@ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -4423,6 +4163,7 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", @@ -4443,6 +4184,7 @@ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, + "license": "MIT", "dependencies": { "jest-regex-util": "^29.6.3", "jest-snapshot": "^29.7.0" @@ -4451,81 +4193,12 @@ "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/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/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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -4535,6 +4208,7 @@ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/environment": "^29.7.0", @@ -4562,81 +4236,12 @@ "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/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.7.0", "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -4665,81 +4270,12 @@ "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/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/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" - }, + "license": "MIT", "engines": { "node": ">=8" } @@ -4749,6 +4285,7 @@ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", @@ -4767,202 +4304,43 @@ "jest-matcher-utils": "^29.7.0", "jest-message-util": "^29.7.0", "jest-util": "^29.7.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "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/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/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/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" + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.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==", + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "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==", + "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, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "@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": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate": { @@ -4970,6 +4348,7 @@ "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "camelcase": "^6.2.0", @@ -4982,26 +4361,12 @@ "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, + "license": "MIT", "engines": { "node": ">=10" }, @@ -5009,66 +4374,12 @@ "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/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.7.0", "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "@jest/types": "^29.6.3", @@ -5083,81 +4394,12 @@ "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.7.0", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "jest-util": "^29.7.0", @@ -5168,20 +4410,12 @@ "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, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -5196,6 +4430,7 @@ "version": "0.16.0", "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", + "license": "Apache-2.0", "engines": { "node": ">= 0.6.0" } @@ -5203,12 +4438,14 @@ "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==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -5217,20 +4454,22 @@ } }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-bigint": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", "dependencies": { "bignumber.js": "^9.0.0" } @@ -5239,12 +4478,14 @@ "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 + "dev": true, + "license": "MIT" }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -5252,22 +4493,58 @@ "node": ">=6" } }, + "node_modules/jsonwebtoken": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", + "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", + "license": "MIT", + "dependencies": { + "jws": "^4.0.1", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jwa": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", - "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", "dependencies": { - "buffer-equal-constant-time": "1.0.1", + "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "node_modules/jws": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", - "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", "dependencies": { - "jwa": "^2.0.0", + "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, @@ -5276,6 +4553,7 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -5285,6 +4563,7 @@ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -5293,13 +4572,15 @@ "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 + "dev": true, + "license": "MIT" }, "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, + "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -5310,17 +4591,62 @@ "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" }, "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" }, "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==", + "license": "ISC", "dependencies": { "yallist": "^3.0.2" } @@ -5329,6 +4655,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "license": "MIT", "dependencies": { "pify": "^4.0.1", "semver": "^5.6.0" @@ -5341,6 +4668,7 @@ "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "license": "ISC", "bin": { "semver": "bin/semver" } @@ -5350,31 +4678,44 @@ "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } }, + "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/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 + "dev": true, + "license": "MIT" }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, + "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -5385,6 +4726,7 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", "bin": { "mime": "cli.js" }, @@ -5396,6 +4738,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -5404,6 +4747,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -5416,14 +4760,16 @@ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, + "license": "MIT", "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==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -5432,29 +4778,33 @@ } }, "node_modules/mock-fs": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.2.0.tgz", - "integrity": "sha512-2dF2R6YMSZbpip1V1WHKGLNjr/k48uQClqMVb5H3MOvwc9qhYis3/IWbj02qIg/Y8MDXKFF4c5v0rxx2o6xTZw==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.5.0.tgz", + "integrity": "sha512-d/P1M/RacgM3dB0sJ8rjeRNXxtapkPCUnMGmIN0ixJ16F/E4GUZCvWcSGfWGz8eaXYvn1s9baUwNjI4LOPEjiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=12.0.0" } }, "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==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" }, "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 + "dev": true, + "license": "MIT" }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -5471,9 +4821,10 @@ } }, "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.3.tgz", + "integrity": "sha512-rLvcdSyRCyouf6jcOIPe/BgwG/d7hKjzMKOas33/pHEr6gbq18IK9zV7DiPvzsz0oBJPme6qr6H6kGZuI9/DZg==", + "license": "(BSD-3-Clause OR GPL-2.0)", "engines": { "node": ">= 6.13.0" } @@ -5482,18 +4833,21 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true + "dev": true, + "license": "MIT" }, "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==" + "version": "2.0.36", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz", + "integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==", + "license": "MIT" }, "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==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5503,6 +4857,7 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -5514,14 +4869,19 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5530,6 +4890,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", "dependencies": { "wrappy": "1" } @@ -5539,6 +4900,7 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -5549,11 +4911,30 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/open": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", + "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", + "license": "MIT", + "dependencies": { + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "wsl-utils": "^0.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "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, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -5569,6 +4950,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -5581,6 +4963,7 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -5596,6 +4979,7 @@ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -5605,6 +4989,7 @@ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -5623,6 +5008,7 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -5631,6 +5017,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5640,6 +5027,7 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -5648,18 +5036,21 @@ "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 + "dev": true, + "license": "MIT" }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -5671,15 +5062,17 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "license": "MIT", "engines": { "node": ">=6" } }, "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==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -5689,6 +5082,7 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -5696,11 +5090,21 @@ "node": ">=8" } }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "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, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", @@ -5715,6 +5119,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -5725,13 +5130,15 @@ "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" }, "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, + "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -5741,21 +5148,23 @@ } }, "node_modules/proto3-json-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.0.tgz", - "integrity": "sha512-FB/YaNrpiPkyQNSNPilpn8qn0KdEfkgmJ9JP93PQyF/U4bAiXY5BiUdDhiDO4S48uSQ6AesklgVlrKiqZPzegw==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.2.tgz", + "integrity": "sha512-SAzp/O4Yh02jGdRc+uIrGoe87dkN/XtwxfZ4ZyafJHymd79ozp5VG5nyZ7ygqPM5+cpLDjjGnYFUkngonyDPOQ==", + "license": "Apache-2.0", "dependencies": { - "protobufjs": "^7.0.0" + "protobufjs": "^7.2.5" }, "engines": { "node": ">=14.0.0" } }, "node_modules/protobufjs": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", - "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", + "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", "hasInstallScript": true, + "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -5777,12 +5186,13 @@ "node_modules/punycode": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==" + "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", + "license": "MIT" }, "node_modules/pure-rand": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.3.tgz", - "integrity": "sha512-KddyFewCsO0j3+np81IQ+SweXLDnDQTs5s67BOnrYmYe/yNmUhttQyGsYzy8yUnoljGAQ9sl38YB4vH8ur7Y+w==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", "dev": true, "funding": [ { @@ -5793,14 +5203,16 @@ "type": "opencollective", "url": "https://opencollective.com/fast-check" } - ] + ], + "license": "MIT" }, "node_modules/qs": { - "version": "6.11.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", - "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz", + "integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==", + "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" @@ -5819,29 +5231,31 @@ } }, "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 + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" }, "node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "license": "MIT", "optional": true, "dependencies": { "picomatch": "^2.2.1" @@ -5854,23 +5268,28 @@ "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==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { - "version": "1.22.6", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.6.tgz", - "integrity": "sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==", + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", "dev": true, + "license": "MIT", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5880,6 +5299,7 @@ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, + "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -5892,54 +5312,122 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, + "license": "MIT", "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==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/retry-request": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-6.0.0.tgz", - "integrity": "sha512-24kaFMd3wCnT3n4uPnsQh90ZSV8OISpfTFXJ00Wi+/oD2OPrp63EQ8hznk6rhxdlpwx2QBhQSDz2Fg46ki852g==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-7.0.2.tgz", + "integrity": "sha512-dUOvLMJ0/JJYEn8NrpOaGNE7X3vpI5XlZS/u0ANjqtcZVKnIxP7IgCFwrKTxENw29emmwug53awKtaMm4i9g5w==", + "license": "MIT", "dependencies": { - "debug": "^4.1.1", - "extend": "^3.0.2" + "@types/request": "^2.48.8", + "extend": "^3.0.2", + "teeny-request": "^9.0.0" }, "engines": { "node": ">=14" } }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "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==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/sax": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", - "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" + "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==", + "license": "ISC" }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "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, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -5952,18 +5440,78 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5973,18 +5521,21 @@ "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 + "dev": true, + "license": "ISC" }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/slash": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "license": "MIT", "engines": { "node": ">=6" } @@ -5994,6 +5545,7 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -6003,6 +5555,7 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -6012,13 +5565,15 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "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, + "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -6026,26 +5581,28 @@ "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/stream-events": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/stream-events/-/stream-events-1.0.5.tgz", + "integrity": "sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==", + "license": "MIT", + "dependencies": { + "stubs": "^3.0.0" } }, "node_modules/stream-shift": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", - "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "license": "MIT" }, "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" + "safe-buffer": "~5.2.0" } }, "node_modules/string-length": { @@ -6053,6 +5610,7 @@ "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, + "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -6065,6 +5623,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -6078,6 +5637,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -6090,6 +5650,7 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -6099,6 +5660,7 @@ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -6108,6 +5670,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -6115,11 +5678,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/stubs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", + "integrity": "sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==", + "license": "MIT" + }, "node_modules/superagent": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.7.0.tgz", "integrity": "sha512-/8trxO6NbLx4YXb7IeeFTSmsQ35pQBiTBsLNvobZx7qBzBeHYvKCyIIhW2gNcWbLzYxPAjdgFbiepd8ypwC0Gw==", - "deprecated": "Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at .", + "deprecated": "Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net", + "license": "MIT", "dependencies": { "component-emitter": "^1.2.0", "cookiejar": "^2.1.0", @@ -6140,19 +5710,52 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, + "node_modules/superagent/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/superagent/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==", + "license": "MIT" + }, + "node_modules/superagent/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "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==", + "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, + "license": "MIT", "dependencies": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/supports-preserve-symlinks-flag": { @@ -6160,6 +5763,7 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -6167,11 +5771,80 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/teeny-request": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-9.0.0.tgz", + "integrity": "sha512-resvxdc6Mgb7YEThw6G6bExlXKkv6+YbuzGg9xuXxSgxJF7Ozs+o8Y9+2R3sArdWdW8nOokoQb1yrpFB0pQK2g==", + "license": "Apache-2.0", + "dependencies": { + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "node-fetch": "^2.6.9", + "stream-events": "^1.0.5", + "uuid": "^9.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/teeny-request/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==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/teeny-request/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==", + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/teeny-request/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==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/teeny-request/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "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, + "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -6185,21 +5858,15 @@ "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-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "engines": { - "node": ">=4" - } + "dev": true, + "license": "BSD-3-Clause" }, "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==", "devOptional": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -6210,12 +5877,20 @@ "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" }, "node_modules/tunnel": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "license": "MIT", "engines": { "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } @@ -6225,6 +5900,7 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -6234,6 +5910,7 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -6241,15 +5918,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/undici": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", + "integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==", + "license": "MIT", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/undici-types": { + "version": "7.18.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", + "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", + "license": "MIT" + }, "node_modules/universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", + "license": "ISC" }, "node_modules/update-browserslist-db": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", "funding": [ { "type": "opencollective", @@ -6264,9 +5960,10 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -6279,6 +5976,7 @@ "version": "0.10.3", "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", + "license": "MIT", "dependencies": { "punycode": "1.3.2", "querystring": "0.2.0" @@ -6288,6 +5986,7 @@ "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "is-arguments": "^1.0.4", @@ -6299,25 +5998,28 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" }, "node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } }, "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==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, + "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" + "convert-source-map": "^2.0.0" }, "engines": { "node": ">=10.12.0" @@ -6328,6 +6030,7 @@ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } @@ -6335,12 +6038,14 @@ "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -6351,6 +6056,7 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -6362,15 +6068,18 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", - "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", + "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", + "license": "MIT", "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -6383,6 +6092,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -6395,46 +6105,18 @@ "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==", - "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==", - "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==" - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" }, "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, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -6443,10 +6125,26 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, + "node_modules/wsl-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", + "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/xml2js": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", + "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", + "license": "MIT", "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" @@ -6459,6 +6157,7 @@ "version": "11.0.1", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "license": "MIT", "engines": { "node": ">=4.0" } @@ -6467,6 +6166,7 @@ "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", "engines": { "node": ">=10" } @@ -6474,12 +6174,14 @@ "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "license": "ISC" }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -6497,6 +6199,7 @@ "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", "engines": { "node": ">=12" } @@ -6506,6 +6209,7 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, diff --git a/package.json b/package.json index daccffc..a5f3a13 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@actions/core": "^1.10.0", "@actions/github": "^5.1.1", "akeyless": "^3.3.16", - "akeyless-cloud-id": "^2.2.0", + "akeyless-cloud-id": "github:akeylesslabs/akeyless-js-cloud-id#0ff2721ab2a7cb7163b1ea9fecd09e173225fb64", "js-yaml": "^4.1.0" }, "devDependencies": { diff --git a/src/auth.js b/src/auth.js index 322c651..2570540 100644 --- a/src/auth.js +++ b/src/auth.js @@ -6,9 +6,9 @@ const path = require('path'); const akeylessCloud = require('akeyless-cloud-id') function handleActionFail(message, debugMessage) { - core.debug(debugMessage); // Only visible with ACTIONS_RUNNER_DEBUG=true - core.setFailed(message); // Always visible - throw new Error(message); + const fullMessage = debugMessage ? `${message} - ${debugMessage}` : message; + core.setFailed(fullMessage); + throw new Error(fullMessage); } @@ -54,9 +54,16 @@ async function azureLogin(apiUrl, accessId) { async function gcpLogin(apiUrl, accessId) { core.debug('getting gcp cloud id'); - const gcpCloudId = await akeylessCloud.getCloudId('gcp') - const gcpAudience = core.getInput('gcp-audience'); - opts = {'access-id': accessId, 'access-type': 'gcp', 'cloud-id': gcpCloudId, 'gcp-audience': gcpAudience} + const gcpAudience = core.getInput('gcp-audience') || 'akeyless.io'; + let gcpCloudId; + try { + gcpCloudId = await akeylessCloud.getCloudId('gcp', gcpAudience); + } catch (err) { + console.error('akeylessCloud.getCloudId failed:', err); + throw err; + } + console.log('we get the gcpCloudId: ', gcpCloudId); + const opts = {'access-id': accessId, 'access-type': 'gcp', 'cloud-id': gcpCloudId, 'gcp-audience': gcpAudience} return loginHelper(opts, apiUrl) } @@ -95,7 +102,10 @@ async function loginHelper(opts, apiUrl) { const authResult = await api.auth(authBody) return authResult } catch (error) { - handleActionFail('Failed to login to Akeyless', `Failed to login to AKeyless: ${typeof error === 'object' ? JSON.stringify(error) : error}`) + console.error('Akeyless auth error:', error); + const errMsg = error?.response?.body?.error || error?.message || (typeof error === 'object' ? JSON.stringify(error) : String(error)); + core.setFailed(`Failed to login to Akeyless: ${errMsg}`); + throw new Error(`Failed to login to Akeyless: ${errMsg}`); } } @@ -116,7 +126,8 @@ async function akeylessLogin(accessId, accessType, apiUrl) { core.debug('fetch token'); return login[accessType](apiUrl, accessId); } catch (error) { - handleActionFail('failed to fetch token', error.message); + console.error('getCloudId/auth error:', error); + handleActionFail('failed to fetch token', error?.message || String(error)); } }